0){if(!i.compareByGeneratedPositionsInflated(n,h[f-1]))continue;e+=","}e+=o.encode(n.generatedColumn-s),s=n.generatedColumn,null!=n.source&&(t=this._sources.indexOf(n.source),e+=o.encode(t-g),g=t,e+=o.encode(n.originalLine-1-l),l=n.originalLine-1,e+=o.encode(n.originalColumn-u),u=n.originalColumn,null!=n.name&&(r=this._names.indexOf(n.name),e+=o.encode(r-c),c=r)),p+=e}return p},t.prototype._generateSourcesContent=function(e,n){return e.map(function(e){if(!this._sourcesContents)return null;null!=n&&(e=i.relative(n,e));var r=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)},t.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},t.prototype.toString=function(){return JSON.stringify(this.toJSON())},n.SourceMapGenerator=t},function(e,n,r){function t(e){return e<0?(-e<<1)+1:(e<<1)+0}function o(e){var n=1===(1&e),r=e>>1;return n?-r:r}var i=r(3),s=5,a=1<>>=s,o>0&&(n|=l),r+=i.encode(n);while(o>0);return r},n.decode=function(e,n,r){var t,a,c=e.length,g=0,p=0;do{if(n>=c)throw new Error("Expected more digits in base 64 VLQ value.");if(a=i.decode(e.charCodeAt(n++)),a===-1)throw new Error("Invalid base64 digit: "+e.charAt(n-1));t=!!(a&l),a&=u,g+=a<=0;c--)s=u[c],"."===s?u.splice(c,1):".."===s?l++:l>0&&(""===s?(u.splice(c+1,l),l=0):(u.splice(c,2),l--));return r=u.join("/"),""===r&&(r=a?"/":"."),i?(i.path=r,o(i)):r}function s(e,n){""===e&&(e="."),""===n&&(n=".");var r=t(n),s=t(e);if(s&&(e=s.path||"/"),r&&!r.scheme)return s&&(r.scheme=s.scheme),o(r);if(r||n.match(_))return n;if(s&&!s.host&&!s.path)return s.host=n,o(s);var a="/"===n.charAt(0)?n:i(e.replace(/\/+$/,"")+"/"+n);return s?(s.path=a,o(s)):a}function a(e,n){""===e&&(e="."),e=e.replace(/\/$/,"");for(var r=0;0!==n.indexOf(e+"/");){var t=e.lastIndexOf("/");if(t<0)return n;if(e=e.slice(0,t),e.match(/^([^\/]+:\/)?\/*$/))return n;++r}return Array(r+1).join("../")+n.substr(e.length+1)}function u(e){return e}function l(e){return g(e)?"$"+e:e}function c(e){return g(e)?e.slice(1):e}function g(e){if(!e)return!1;var n=e.length;if(n<9)return!1;if(95!==e.charCodeAt(n-1)||95!==e.charCodeAt(n-2)||111!==e.charCodeAt(n-3)||116!==e.charCodeAt(n-4)||111!==e.charCodeAt(n-5)||114!==e.charCodeAt(n-6)||112!==e.charCodeAt(n-7)||95!==e.charCodeAt(n-8)||95!==e.charCodeAt(n-9))return!1;for(var r=n-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function p(e,n,r){var t=e.source-n.source;return 0!==t?t:(t=e.originalLine-n.originalLine,0!==t?t:(t=e.originalColumn-n.originalColumn,0!==t||r?t:(t=e.generatedColumn-n.generatedColumn,0!==t?t:(t=e.generatedLine-n.generatedLine,0!==t?t:e.name-n.name))))}function h(e,n,r){var t=e.generatedLine-n.generatedLine;return 0!==t?t:(t=e.generatedColumn-n.generatedColumn,0!==t||r?t:(t=e.source-n.source,0!==t?t:(t=e.originalLine-n.originalLine,0!==t?t:(t=e.originalColumn-n.originalColumn,0!==t?t:e.name-n.name))))}function f(e,n){return e===n?0:e>n?1:-1}function d(e,n){var r=e.generatedLine-n.generatedLine;return 0!==r?r:(r=e.generatedColumn-n.generatedColumn,0!==r?r:(r=f(e.source,n.source),0!==r?r:(r=e.originalLine-n.originalLine,0!==r?r:(r=e.originalColumn-n.originalColumn,0!==r?r:f(e.name,n.name)))))}n.getArg=r;var m=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,_=/^data:.+\,.+$/;n.urlParse=t,n.urlGenerate=o,n.normalize=i,n.join=s,n.isAbsolute=function(e){return"/"===e.charAt(0)||!!e.match(m)},n.relative=a;var v=function(){var e=Object.create(null);return!("__proto__"in e)}();n.toSetString=v?u:l,n.fromSetString=v?u:c,n.compareByOriginalPositions=p,n.compareByGeneratedPositionsDeflated=h,n.compareByGeneratedPositionsInflated=d},function(e,n,r){function t(){this._array=[],this._set=s?new Map:Object.create(null)}var o=r(4),i=Object.prototype.hasOwnProperty,s="undefined"!=typeof Map;t.fromArray=function(e,n){for(var r=new t,o=0,i=e.length;o=0)return n}else{var r=o.toSetString(e);if(i.call(this._set,r))return this._set[r]}throw new Error('"'+e+'" is not in the set.')},t.prototype.at=function(e){if(e>=0&&er||t==r&&s>=o||i.compareByGeneratedPositionsInflated(e,n)<=0}function o(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}var i=r(4);o.prototype.unsortedForEach=function(e,n){this._array.forEach(e,n)},o.prototype.add=function(e){t(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},o.prototype.toArray=function(){return this._sorted||(this._array.sort(i.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},n.MappingList=o},function(e,n,r){function t(e){var n=e;return"string"==typeof e&&(n=JSON.parse(e.replace(/^\)\]\}'/,""))),null!=n.sections?new s(n):new o(n)}function o(e){var n=e;"string"==typeof e&&(n=JSON.parse(e.replace(/^\)\]\}'/,"")));var r=a.getArg(n,"version"),t=a.getArg(n,"sources"),o=a.getArg(n,"names",[]),i=a.getArg(n,"sourceRoot",null),s=a.getArg(n,"sourcesContent",null),u=a.getArg(n,"mappings"),c=a.getArg(n,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);t=t.map(String).map(a.normalize).map(function(e){return i&&a.isAbsolute(i)&&a.isAbsolute(e)?a.relative(i,e):e}),this._names=l.fromArray(o.map(String),!0),this._sources=l.fromArray(t,!0),this.sourceRoot=i,this.sourcesContent=s,this._mappings=u,this.file=c}function i(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function s(e){var n=e;"string"==typeof e&&(n=JSON.parse(e.replace(/^\)\]\}'/,"")));var r=a.getArg(n,"version"),o=a.getArg(n,"sections");if(r!=this._version)throw new Error("Unsupported version: "+r);this._sources=new l,this._names=new l;var i={line:-1,column:0};this._sections=o.map(function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var n=a.getArg(e,"offset"),r=a.getArg(n,"line"),o=a.getArg(n,"column");if(r=0){var i=this._originalMappings[o];if(void 0===e.column)for(var s=i.originalLine;i&&i.originalLine===s;)t.push({line:a.getArg(i,"generatedLine",null),column:a.getArg(i,"generatedColumn",null),lastColumn:a.getArg(i,"lastGeneratedColumn",null)}),i=this._originalMappings[++o];else for(var l=i.originalColumn;i&&i.originalLine===n&&i.originalColumn==l;)t.push({line:a.getArg(i,"generatedLine",null),column:a.getArg(i,"generatedColumn",null),lastColumn:a.getArg(i,"lastGeneratedColumn",null)}),i=this._originalMappings[++o]}return t},n.SourceMapConsumer=t,o.prototype=Object.create(t.prototype),o.prototype.consumer=t,o.fromSourceMap=function(e){var n=Object.create(o.prototype),r=n._names=l.fromArray(e._names.toArray(),!0),t=n._sources=l.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file;for(var s=e._mappings.toArray().slice(),u=n.__generatedMappings=[],c=n.__originalMappings=[],p=0,h=s.length;p1&&(r.source=d+o[1],d+=o[1],r.originalLine=h+o[2],h=r.originalLine,r.originalLine+=1,r.originalColumn=f+o[3],f=r.originalColumn,o.length>4&&(r.name=m+o[4],m+=o[4])),S.push(r),"number"==typeof r.originalLine&&A.push(r)}g(S,a.compareByGeneratedPositionsDeflated),this.__generatedMappings=S,g(A,a.compareByOriginalPositions),this.__originalMappings=A},o.prototype._findMapping=function(e,n,r,t,o,i){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[t]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[t]);return u.search(e,n,o,i)},o.prototype.computeColumnSpans=function(){for(var e=0;e=0){var o=this._generatedMappings[r];if(o.generatedLine===n.generatedLine){var i=a.getArg(o,"source",null);null!==i&&(i=this._sources.at(i),null!=this.sourceRoot&&(i=a.join(this.sourceRoot,i)));var s=a.getArg(o,"name",null);return null!==s&&(s=this._names.at(s)),{source:i,line:a.getArg(o,"originalLine",null),column:a.getArg(o,"originalColumn",null),name:s}}}return{source:null,line:null,column:null,name:null}},o.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e}))},o.prototype.sourceContentFor=function(e,n){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=a.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var r;if(null!=this.sourceRoot&&(r=a.urlParse(this.sourceRoot))){var t=e.replace(/^file:\/\//,"");if("file"==r.scheme&&this._sources.has(t))return this.sourcesContent[this._sources.indexOf(t)];if((!r.path||"/"==r.path)&&this._sources.has("/"+e))return this.sourcesContent[this._sources.indexOf("/"+e)]}if(n)return null;throw new Error('"'+e+'" is not in the SourceMap.')},o.prototype.generatedPositionFor=function(e){var n=a.getArg(e,"source");if(null!=this.sourceRoot&&(n=a.relative(this.sourceRoot,n)),!this._sources.has(n))return{line:null,column:null,lastColumn:null};n=this._sources.indexOf(n);var r={source:n,originalLine:a.getArg(e,"line"),originalColumn:a.getArg(e,"column")},o=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",a.compareByOriginalPositions,a.getArg(e,"bias",t.GREATEST_LOWER_BOUND));if(o>=0){var i=this._originalMappings[o];if(i.source===r.source)return{line:a.getArg(i,"generatedLine",null),column:a.getArg(i,"generatedColumn",null),lastColumn:a.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},n.BasicSourceMapConsumer=o,s.prototype=Object.create(t.prototype),s.prototype.constructor=t,s.prototype._version=3,Object.defineProperty(s.prototype,"sources",{get:function(){for(var e=[],n=0;n0?t-u>1?r(u,t,o,i,s,a):a==n.LEAST_UPPER_BOUND?t1?r(e,u,o,i,s,a):a==n.LEAST_UPPER_BOUND?u:e<0?-1:e}n.GREATEST_LOWER_BOUND=1,n.LEAST_UPPER_BOUND=2,n.search=function(e,t,o,i){if(0===t.length)return-1;var s=r(-1,t.length,e,t,o,i||n.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&0===o(t[s],t[s-1],!0);)--s;return s}},function(e,n){function r(e,n,r){var t=e[n];e[n]=e[r],e[r]=t}function t(e,n){return Math.round(e+Math.random()*(n-e))}function o(e,n,i,s){if(i=0;n--)this.prepend(e[n]);else{if(!e[u]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},t.prototype.walk=function(e){for(var n,r=0,t=this.children.length;r0){for(n=[],r=0;r 0 && aGenerated.column >= 0\n\t && !aOriginal && !aSource && !aName) {\n\t // Case 1.\n\t return;\n\t }\n\t else if (aGenerated && 'line' in aGenerated && 'column' in aGenerated\n\t && aOriginal && 'line' in aOriginal && 'column' in aOriginal\n\t && aGenerated.line > 0 && aGenerated.column >= 0\n\t && aOriginal.line > 0 && aOriginal.column >= 0\n\t && aSource) {\n\t // Cases 2 and 3.\n\t return;\n\t }\n\t else {\n\t throw new Error('Invalid mapping: ' + JSON.stringify({\n\t generated: aGenerated,\n\t source: aSource,\n\t original: aOriginal,\n\t name: aName\n\t }));\n\t }\n\t };\n\t\n\t/**\n\t * Serialize the accumulated mappings in to the stream of base 64 VLQs\n\t * specified by the source map format.\n\t */\n\tSourceMapGenerator.prototype._serializeMappings =\n\t function SourceMapGenerator_serializeMappings() {\n\t var previousGeneratedColumn = 0;\n\t var previousGeneratedLine = 1;\n\t var previousOriginalColumn = 0;\n\t var previousOriginalLine = 0;\n\t var previousName = 0;\n\t var previousSource = 0;\n\t var result = '';\n\t var next;\n\t var mapping;\n\t var nameIdx;\n\t var sourceIdx;\n\t\n\t var mappings = this._mappings.toArray();\n\t for (var i = 0, len = mappings.length; i < len; i++) {\n\t mapping = mappings[i];\n\t next = ''\n\t\n\t if (mapping.generatedLine !== previousGeneratedLine) {\n\t previousGeneratedColumn = 0;\n\t while (mapping.generatedLine !== previousGeneratedLine) {\n\t next += ';';\n\t previousGeneratedLine++;\n\t }\n\t }\n\t else {\n\t if (i > 0) {\n\t if (!util.compareByGeneratedPositionsInflated(mapping, mappings[i - 1])) {\n\t continue;\n\t }\n\t next += ',';\n\t }\n\t }\n\t\n\t next += base64VLQ.encode(mapping.generatedColumn\n\t - previousGeneratedColumn);\n\t previousGeneratedColumn = mapping.generatedColumn;\n\t\n\t if (mapping.source != null) {\n\t sourceIdx = this._sources.indexOf(mapping.source);\n\t next += base64VLQ.encode(sourceIdx - previousSource);\n\t previousSource = sourceIdx;\n\t\n\t // lines are stored 0-based in SourceMap spec version 3\n\t next += base64VLQ.encode(mapping.originalLine - 1\n\t - previousOriginalLine);\n\t previousOriginalLine = mapping.originalLine - 1;\n\t\n\t next += base64VLQ.encode(mapping.originalColumn\n\t - previousOriginalColumn);\n\t previousOriginalColumn = mapping.originalColumn;\n\t\n\t if (mapping.name != null) {\n\t nameIdx = this._names.indexOf(mapping.name);\n\t next += base64VLQ.encode(nameIdx - previousName);\n\t previousName = nameIdx;\n\t }\n\t }\n\t\n\t result += next;\n\t }\n\t\n\t return result;\n\t };\n\t\n\tSourceMapGenerator.prototype._generateSourcesContent =\n\t function SourceMapGenerator_generateSourcesContent(aSources, aSourceRoot) {\n\t return aSources.map(function (source) {\n\t if (!this._sourcesContents) {\n\t return null;\n\t }\n\t if (aSourceRoot != null) {\n\t source = util.relative(aSourceRoot, source);\n\t }\n\t var key = util.toSetString(source);\n\t return Object.prototype.hasOwnProperty.call(this._sourcesContents, key)\n\t ? this._sourcesContents[key]\n\t : null;\n\t }, this);\n\t };\n\t\n\t/**\n\t * Externalize the source map.\n\t */\n\tSourceMapGenerator.prototype.toJSON =\n\t function SourceMapGenerator_toJSON() {\n\t var map = {\n\t version: this._version,\n\t sources: this._sources.toArray(),\n\t names: this._names.toArray(),\n\t mappings: this._serializeMappings()\n\t };\n\t if (this._file != null) {\n\t map.file = this._file;\n\t }\n\t if (this._sourceRoot != null) {\n\t map.sourceRoot = this._sourceRoot;\n\t }\n\t if (this._sourcesContents) {\n\t map.sourcesContent = this._generateSourcesContent(map.sources, map.sourceRoot);\n\t }\n\t\n\t return map;\n\t };\n\t\n\t/**\n\t * Render the source map being generated to a string.\n\t */\n\tSourceMapGenerator.prototype.toString =\n\t function SourceMapGenerator_toString() {\n\t return JSON.stringify(this.toJSON());\n\t };\n\t\n\texports.SourceMapGenerator = SourceMapGenerator;\n\n\n/***/ }),\n/* 2 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t/* -*- Mode: js; js-indent-level: 2; -*- */\n\t/*\n\t * Copyright 2011 Mozilla Foundation and contributors\n\t * Licensed under the New BSD license. See LICENSE or:\n\t * http://opensource.org/licenses/BSD-3-Clause\n\t *\n\t * Based on the Base 64 VLQ implementation in Closure Compiler:\n\t * https://code.google.com/p/closure-compiler/source/browse/trunk/src/com/google/debugging/sourcemap/Base64VLQ.java\n\t *\n\t * Copyright 2011 The Closure Compiler Authors. All rights reserved.\n\t * Redistribution and use in source and binary forms, with or without\n\t * modification, are permitted provided that the following conditions are\n\t * met:\n\t *\n\t * * Redistributions of source code must retain the above copyright\n\t * notice, this list of conditions and the following disclaimer.\n\t * * Redistributions in binary form must reproduce the above\n\t * copyright notice, this list of conditions and the following\n\t * disclaimer in the documentation and/or other materials provided\n\t * with the distribution.\n\t * * Neither the name of Google Inc. nor the names of its\n\t * contributors may be used to endorse or promote products derived\n\t * from this software without specific prior written permission.\n\t *\n\t * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\t * \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n\t * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n\t * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n\t * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n\t * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n\t * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n\t * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n\t * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n\t * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n\t * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\t */\n\t\n\tvar base64 = __webpack_require__(3);\n\t\n\t// A single base 64 digit can contain 6 bits of data. For the base 64 variable\n\t// length quantities we use in the source map spec, the first bit is the sign,\n\t// the next four bits are the actual value, and the 6th bit is the\n\t// continuation bit. The continuation bit tells us whether there are more\n\t// digits in this value following this digit.\n\t//\n\t// Continuation\n\t// | Sign\n\t// | |\n\t// V V\n\t// 101011\n\t\n\tvar VLQ_BASE_SHIFT = 5;\n\t\n\t// binary: 100000\n\tvar VLQ_BASE = 1 << VLQ_BASE_SHIFT;\n\t\n\t// binary: 011111\n\tvar VLQ_BASE_MASK = VLQ_BASE - 1;\n\t\n\t// binary: 100000\n\tvar VLQ_CONTINUATION_BIT = VLQ_BASE;\n\t\n\t/**\n\t * Converts from a two-complement value to a value where the sign bit is\n\t * placed in the least significant bit. For example, as decimals:\n\t * 1 becomes 2 (10 binary), -1 becomes 3 (11 binary)\n\t * 2 becomes 4 (100 binary), -2 becomes 5 (101 binary)\n\t */\n\tfunction toVLQSigned(aValue) {\n\t return aValue < 0\n\t ? ((-aValue) << 1) + 1\n\t : (aValue << 1) + 0;\n\t}\n\t\n\t/**\n\t * Converts to a two-complement value from a value where the sign bit is\n\t * placed in the least significant bit. For example, as decimals:\n\t * 2 (10 binary) becomes 1, 3 (11 binary) becomes -1\n\t * 4 (100 binary) becomes 2, 5 (101 binary) becomes -2\n\t */\n\tfunction fromVLQSigned(aValue) {\n\t var isNegative = (aValue & 1) === 1;\n\t var shifted = aValue >> 1;\n\t return isNegative\n\t ? -shifted\n\t : shifted;\n\t}\n\t\n\t/**\n\t * Returns the base 64 VLQ encoded value.\n\t */\n\texports.encode = function base64VLQ_encode(aValue) {\n\t var encoded = \"\";\n\t var digit;\n\t\n\t var vlq = toVLQSigned(aValue);\n\t\n\t do {\n\t digit = vlq & VLQ_BASE_MASK;\n\t vlq >>>= VLQ_BASE_SHIFT;\n\t if (vlq > 0) {\n\t // There are still more digits in this value, so we must make sure the\n\t // continuation bit is marked.\n\t digit |= VLQ_CONTINUATION_BIT;\n\t }\n\t encoded += base64.encode(digit);\n\t } while (vlq > 0);\n\t\n\t return encoded;\n\t};\n\t\n\t/**\n\t * Decodes the next base 64 VLQ value from the given string and returns the\n\t * value and the rest of the string via the out parameter.\n\t */\n\texports.decode = function base64VLQ_decode(aStr, aIndex, aOutParam) {\n\t var strLen = aStr.length;\n\t var result = 0;\n\t var shift = 0;\n\t var continuation, digit;\n\t\n\t do {\n\t if (aIndex >= strLen) {\n\t throw new Error(\"Expected more digits in base 64 VLQ value.\");\n\t }\n\t\n\t digit = base64.decode(aStr.charCodeAt(aIndex++));\n\t if (digit === -1) {\n\t throw new Error(\"Invalid base64 digit: \" + aStr.charAt(aIndex - 1));\n\t }\n\t\n\t continuation = !!(digit & VLQ_CONTINUATION_BIT);\n\t digit &= VLQ_BASE_MASK;\n\t result = result + (digit << shift);\n\t shift += VLQ_BASE_SHIFT;\n\t } while (continuation);\n\t\n\t aOutParam.value = fromVLQSigned(result);\n\t aOutParam.rest = aIndex;\n\t};\n\n\n/***/ }),\n/* 3 */\n/***/ (function(module, exports) {\n\n\t/* -*- Mode: js; js-indent-level: 2; -*- */\n\t/*\n\t * Copyright 2011 Mozilla Foundation and contributors\n\t * Licensed under the New BSD license. See LICENSE or:\n\t * http://opensource.org/licenses/BSD-3-Clause\n\t */\n\t\n\tvar intToCharMap = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split('');\n\t\n\t/**\n\t * Encode an integer in the range of 0 to 63 to a single base 64 digit.\n\t */\n\texports.encode = function (number) {\n\t if (0 <= number && number < intToCharMap.length) {\n\t return intToCharMap[number];\n\t }\n\t throw new TypeError(\"Must be between 0 and 63: \" + number);\n\t};\n\t\n\t/**\n\t * Decode a single base 64 character code digit to an integer. Returns -1 on\n\t * failure.\n\t */\n\texports.decode = function (charCode) {\n\t var bigA = 65; // 'A'\n\t var bigZ = 90; // 'Z'\n\t\n\t var littleA = 97; // 'a'\n\t var littleZ = 122; // 'z'\n\t\n\t var zero = 48; // '0'\n\t var nine = 57; // '9'\n\t\n\t var plus = 43; // '+'\n\t var slash = 47; // '/'\n\t\n\t var littleOffset = 26;\n\t var numberOffset = 52;\n\t\n\t // 0 - 25: ABCDEFGHIJKLMNOPQRSTUVWXYZ\n\t if (bigA <= charCode && charCode <= bigZ) {\n\t return (charCode - bigA);\n\t }\n\t\n\t // 26 - 51: abcdefghijklmnopqrstuvwxyz\n\t if (littleA <= charCode && charCode <= littleZ) {\n\t return (charCode - littleA + littleOffset);\n\t }\n\t\n\t // 52 - 61: 0123456789\n\t if (zero <= charCode && charCode <= nine) {\n\t return (charCode - zero + numberOffset);\n\t }\n\t\n\t // 62: +\n\t if (charCode == plus) {\n\t return 62;\n\t }\n\t\n\t // 63: /\n\t if (charCode == slash) {\n\t return 63;\n\t }\n\t\n\t // Invalid base64 digit.\n\t return -1;\n\t};\n\n\n/***/ }),\n/* 4 */\n/***/ (function(module, exports) {\n\n\t/* -*- Mode: js; js-indent-level: 2; -*- */\n\t/*\n\t * Copyright 2011 Mozilla Foundation and contributors\n\t * Licensed under the New BSD license. See LICENSE or:\n\t * http://opensource.org/licenses/BSD-3-Clause\n\t */\n\t\n\t/**\n\t * This is a helper function for getting values from parameter/options\n\t * objects.\n\t *\n\t * @param args The object we are extracting values from\n\t * @param name The name of the property we are getting.\n\t * @param defaultValue An optional value to return if the property is missing\n\t * from the object. If this is not specified and the property is missing, an\n\t * error will be thrown.\n\t */\n\tfunction getArg(aArgs, aName, aDefaultValue) {\n\t if (aName in aArgs) {\n\t return aArgs[aName];\n\t } else if (arguments.length === 3) {\n\t return aDefaultValue;\n\t } else {\n\t throw new Error('\"' + aName + '\" is a required argument.');\n\t }\n\t}\n\texports.getArg = getArg;\n\t\n\tvar urlRegexp = /^(?:([\\w+\\-.]+):)?\\/\\/(?:(\\w+:\\w+)@)?([\\w.]*)(?::(\\d+))?(\\S*)$/;\n\tvar dataUrlRegexp = /^data:.+\\,.+$/;\n\t\n\tfunction urlParse(aUrl) {\n\t var match = aUrl.match(urlRegexp);\n\t if (!match) {\n\t return null;\n\t }\n\t return {\n\t scheme: match[1],\n\t auth: match[2],\n\t host: match[3],\n\t port: match[4],\n\t path: match[5]\n\t };\n\t}\n\texports.urlParse = urlParse;\n\t\n\tfunction urlGenerate(aParsedUrl) {\n\t var url = '';\n\t if (aParsedUrl.scheme) {\n\t url += aParsedUrl.scheme + ':';\n\t }\n\t url += '//';\n\t if (aParsedUrl.auth) {\n\t url += aParsedUrl.auth + '@';\n\t }\n\t if (aParsedUrl.host) {\n\t url += aParsedUrl.host;\n\t }\n\t if (aParsedUrl.port) {\n\t url += \":\" + aParsedUrl.port\n\t }\n\t if (aParsedUrl.path) {\n\t url += aParsedUrl.path;\n\t }\n\t return url;\n\t}\n\texports.urlGenerate = urlGenerate;\n\t\n\t/**\n\t * Normalizes a path, or the path portion of a URL:\n\t *\n\t * - Replaces consecutive slashes with one slash.\n\t * - Removes unnecessary '.' parts.\n\t * - Removes unnecessary '/..' parts.\n\t *\n\t * Based on code in the Node.js 'path' core module.\n\t *\n\t * @param aPath The path or url to normalize.\n\t */\n\tfunction normalize(aPath) {\n\t var path = aPath;\n\t var url = urlParse(aPath);\n\t if (url) {\n\t if (!url.path) {\n\t return aPath;\n\t }\n\t path = url.path;\n\t }\n\t var isAbsolute = exports.isAbsolute(path);\n\t\n\t var parts = path.split(/\\/+/);\n\t for (var part, up = 0, i = parts.length - 1; i >= 0; i--) {\n\t part = parts[i];\n\t if (part === '.') {\n\t parts.splice(i, 1);\n\t } else if (part === '..') {\n\t up++;\n\t } else if (up > 0) {\n\t if (part === '') {\n\t // The first part is blank if the path is absolute. Trying to go\n\t // above the root is a no-op. Therefore we can remove all '..' parts\n\t // directly after the root.\n\t parts.splice(i + 1, up);\n\t up = 0;\n\t } else {\n\t parts.splice(i, 2);\n\t up--;\n\t }\n\t }\n\t }\n\t path = parts.join('/');\n\t\n\t if (path === '') {\n\t path = isAbsolute ? '/' : '.';\n\t }\n\t\n\t if (url) {\n\t url.path = path;\n\t return urlGenerate(url);\n\t }\n\t return path;\n\t}\n\texports.normalize = normalize;\n\t\n\t/**\n\t * Joins two paths/URLs.\n\t *\n\t * @param aRoot The root path or URL.\n\t * @param aPath The path or URL to be joined with the root.\n\t *\n\t * - If aPath is a URL or a data URI, aPath is returned, unless aPath is a\n\t * scheme-relative URL: Then the scheme of aRoot, if any, is prepended\n\t * first.\n\t * - Otherwise aPath is a path. If aRoot is a URL, then its path portion\n\t * is updated with the result and aRoot is returned. Otherwise the result\n\t * is returned.\n\t * - If aPath is absolute, the result is aPath.\n\t * - Otherwise the two paths are joined with a slash.\n\t * - Joining for example 'http://' and 'www.example.com' is also supported.\n\t */\n\tfunction join(aRoot, aPath) {\n\t if (aRoot === \"\") {\n\t aRoot = \".\";\n\t }\n\t if (aPath === \"\") {\n\t aPath = \".\";\n\t }\n\t var aPathUrl = urlParse(aPath);\n\t var aRootUrl = urlParse(aRoot);\n\t if (aRootUrl) {\n\t aRoot = aRootUrl.path || '/';\n\t }\n\t\n\t // `join(foo, '//www.example.org')`\n\t if (aPathUrl && !aPathUrl.scheme) {\n\t if (aRootUrl) {\n\t aPathUrl.scheme = aRootUrl.scheme;\n\t }\n\t return urlGenerate(aPathUrl);\n\t }\n\t\n\t if (aPathUrl || aPath.match(dataUrlRegexp)) {\n\t return aPath;\n\t }\n\t\n\t // `join('http://', 'www.example.com')`\n\t if (aRootUrl && !aRootUrl.host && !aRootUrl.path) {\n\t aRootUrl.host = aPath;\n\t return urlGenerate(aRootUrl);\n\t }\n\t\n\t var joined = aPath.charAt(0) === '/'\n\t ? aPath\n\t : normalize(aRoot.replace(/\\/+$/, '') + '/' + aPath);\n\t\n\t if (aRootUrl) {\n\t aRootUrl.path = joined;\n\t return urlGenerate(aRootUrl);\n\t }\n\t return joined;\n\t}\n\texports.join = join;\n\t\n\texports.isAbsolute = function (aPath) {\n\t return aPath.charAt(0) === '/' || !!aPath.match(urlRegexp);\n\t};\n\t\n\t/**\n\t * Make a path relative to a URL or another path.\n\t *\n\t * @param aRoot The root path or URL.\n\t * @param aPath The path or URL to be made relative to aRoot.\n\t */\n\tfunction relative(aRoot, aPath) {\n\t if (aRoot === \"\") {\n\t aRoot = \".\";\n\t }\n\t\n\t aRoot = aRoot.replace(/\\/$/, '');\n\t\n\t // It is possible for the path to be above the root. In this case, simply\n\t // checking whether the root is a prefix of the path won't work. Instead, we\n\t // need to remove components from the root one by one, until either we find\n\t // a prefix that fits, or we run out of components to remove.\n\t var level = 0;\n\t while (aPath.indexOf(aRoot + '/') !== 0) {\n\t var index = aRoot.lastIndexOf(\"/\");\n\t if (index < 0) {\n\t return aPath;\n\t }\n\t\n\t // If the only part of the root that is left is the scheme (i.e. http://,\n\t // file:///, etc.), one or more slashes (/), or simply nothing at all, we\n\t // have exhausted all components, so the path is not relative to the root.\n\t aRoot = aRoot.slice(0, index);\n\t if (aRoot.match(/^([^\\/]+:\\/)?\\/*$/)) {\n\t return aPath;\n\t }\n\t\n\t ++level;\n\t }\n\t\n\t // Make sure we add a \"../\" for each component we removed from the root.\n\t return Array(level + 1).join(\"../\") + aPath.substr(aRoot.length + 1);\n\t}\n\texports.relative = relative;\n\t\n\tvar supportsNullProto = (function () {\n\t var obj = Object.create(null);\n\t return !('__proto__' in obj);\n\t}());\n\t\n\tfunction identity (s) {\n\t return s;\n\t}\n\t\n\t/**\n\t * Because behavior goes wacky when you set `__proto__` on objects, we\n\t * have to prefix all the strings in our set with an arbitrary character.\n\t *\n\t * See https://github.com/mozilla/source-map/pull/31 and\n\t * https://github.com/mozilla/source-map/issues/30\n\t *\n\t * @param String aStr\n\t */\n\tfunction toSetString(aStr) {\n\t if (isProtoString(aStr)) {\n\t return '$' + aStr;\n\t }\n\t\n\t return aStr;\n\t}\n\texports.toSetString = supportsNullProto ? identity : toSetString;\n\t\n\tfunction fromSetString(aStr) {\n\t if (isProtoString(aStr)) {\n\t return aStr.slice(1);\n\t }\n\t\n\t return aStr;\n\t}\n\texports.fromSetString = supportsNullProto ? identity : fromSetString;\n\t\n\tfunction isProtoString(s) {\n\t if (!s) {\n\t return false;\n\t }\n\t\n\t var length = s.length;\n\t\n\t if (length < 9 /* \"__proto__\".length */) {\n\t return false;\n\t }\n\t\n\t if (s.charCodeAt(length - 1) !== 95 /* '_' */ ||\n\t s.charCodeAt(length - 2) !== 95 /* '_' */ ||\n\t s.charCodeAt(length - 3) !== 111 /* 'o' */ ||\n\t s.charCodeAt(length - 4) !== 116 /* 't' */ ||\n\t s.charCodeAt(length - 5) !== 111 /* 'o' */ ||\n\t s.charCodeAt(length - 6) !== 114 /* 'r' */ ||\n\t s.charCodeAt(length - 7) !== 112 /* 'p' */ ||\n\t s.charCodeAt(length - 8) !== 95 /* '_' */ ||\n\t s.charCodeAt(length - 9) !== 95 /* '_' */) {\n\t return false;\n\t }\n\t\n\t for (var i = length - 10; i >= 0; i--) {\n\t if (s.charCodeAt(i) !== 36 /* '$' */) {\n\t return false;\n\t }\n\t }\n\t\n\t return true;\n\t}\n\t\n\t/**\n\t * Comparator between two mappings where the original positions are compared.\n\t *\n\t * Optionally pass in `true` as `onlyCompareGenerated` to consider two\n\t * mappings with the same original source/line/column, but different generated\n\t * line and column the same. Useful when searching for a mapping with a\n\t * stubbed out mapping.\n\t */\n\tfunction compareByOriginalPositions(mappingA, mappingB, onlyCompareOriginal) {\n\t var cmp = mappingA.source - mappingB.source;\n\t if (cmp !== 0) {\n\t return cmp;\n\t }\n\t\n\t cmp = mappingA.originalLine - mappingB.originalLine;\n\t if (cmp !== 0) {\n\t return cmp;\n\t }\n\t\n\t cmp = mappingA.originalColumn - mappingB.originalColumn;\n\t if (cmp !== 0 || onlyCompareOriginal) {\n\t return cmp;\n\t }\n\t\n\t cmp = mappingA.generatedColumn - mappingB.generatedColumn;\n\t if (cmp !== 0) {\n\t return cmp;\n\t }\n\t\n\t cmp = mappingA.generatedLine - mappingB.generatedLine;\n\t if (cmp !== 0) {\n\t return cmp;\n\t }\n\t\n\t return mappingA.name - mappingB.name;\n\t}\n\texports.compareByOriginalPositions = compareByOriginalPositions;\n\t\n\t/**\n\t * Comparator between two mappings with deflated source and name indices where\n\t * the generated positions are compared.\n\t *\n\t * Optionally pass in `true` as `onlyCompareGenerated` to consider two\n\t * mappings with the same generated line and column, but different\n\t * source/name/original line and column the same. Useful when searching for a\n\t * mapping with a stubbed out mapping.\n\t */\n\tfunction compareByGeneratedPositionsDeflated(mappingA, mappingB, onlyCompareGenerated) {\n\t var cmp = mappingA.generatedLine - mappingB.generatedLine;\n\t if (cmp !== 0) {\n\t return cmp;\n\t }\n\t\n\t cmp = mappingA.generatedColumn - mappingB.generatedColumn;\n\t if (cmp !== 0 || onlyCompareGenerated) {\n\t return cmp;\n\t }\n\t\n\t cmp = mappingA.source - mappingB.source;\n\t if (cmp !== 0) {\n\t return cmp;\n\t }\n\t\n\t cmp = mappingA.originalLine - mappingB.originalLine;\n\t if (cmp !== 0) {\n\t return cmp;\n\t }\n\t\n\t cmp = mappingA.originalColumn - mappingB.originalColumn;\n\t if (cmp !== 0) {\n\t return cmp;\n\t }\n\t\n\t return mappingA.name - mappingB.name;\n\t}\n\texports.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated;\n\t\n\tfunction strcmp(aStr1, aStr2) {\n\t if (aStr1 === aStr2) {\n\t return 0;\n\t }\n\t\n\t if (aStr1 > aStr2) {\n\t return 1;\n\t }\n\t\n\t return -1;\n\t}\n\t\n\t/**\n\t * Comparator between two mappings with inflated source and name strings where\n\t * the generated positions are compared.\n\t */\n\tfunction compareByGeneratedPositionsInflated(mappingA, mappingB) {\n\t var cmp = mappingA.generatedLine - mappingB.generatedLine;\n\t if (cmp !== 0) {\n\t return cmp;\n\t }\n\t\n\t cmp = mappingA.generatedColumn - mappingB.generatedColumn;\n\t if (cmp !== 0) {\n\t return cmp;\n\t }\n\t\n\t cmp = strcmp(mappingA.source, mappingB.source);\n\t if (cmp !== 0) {\n\t return cmp;\n\t }\n\t\n\t cmp = mappingA.originalLine - mappingB.originalLine;\n\t if (cmp !== 0) {\n\t return cmp;\n\t }\n\t\n\t cmp = mappingA.originalColumn - mappingB.originalColumn;\n\t if (cmp !== 0) {\n\t return cmp;\n\t }\n\t\n\t return strcmp(mappingA.name, mappingB.name);\n\t}\n\texports.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated;\n\n\n/***/ }),\n/* 5 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t/* -*- Mode: js; js-indent-level: 2; -*- */\n\t/*\n\t * Copyright 2011 Mozilla Foundation and contributors\n\t * Licensed under the New BSD license. See LICENSE or:\n\t * http://opensource.org/licenses/BSD-3-Clause\n\t */\n\t\n\tvar util = __webpack_require__(4);\n\tvar has = Object.prototype.hasOwnProperty;\n\tvar hasNativeMap = typeof Map !== \"undefined\";\n\t\n\t/**\n\t * A data structure which is a combination of an array and a set. Adding a new\n\t * member is O(1), testing for membership is O(1), and finding the index of an\n\t * element is O(1). Removing elements from the set is not supported. Only\n\t * strings are supported for membership.\n\t */\n\tfunction ArraySet() {\n\t this._array = [];\n\t this._set = hasNativeMap ? new Map() : Object.create(null);\n\t}\n\t\n\t/**\n\t * Static method for creating ArraySet instances from an existing array.\n\t */\n\tArraySet.fromArray = function ArraySet_fromArray(aArray, aAllowDuplicates) {\n\t var set = new ArraySet();\n\t for (var i = 0, len = aArray.length; i < len; i++) {\n\t set.add(aArray[i], aAllowDuplicates);\n\t }\n\t return set;\n\t};\n\t\n\t/**\n\t * Return how many unique items are in this ArraySet. If duplicates have been\n\t * added, than those do not count towards the size.\n\t *\n\t * @returns Number\n\t */\n\tArraySet.prototype.size = function ArraySet_size() {\n\t return hasNativeMap ? this._set.size : Object.getOwnPropertyNames(this._set).length;\n\t};\n\t\n\t/**\n\t * Add the given string to this set.\n\t *\n\t * @param String aStr\n\t */\n\tArraySet.prototype.add = function ArraySet_add(aStr, aAllowDuplicates) {\n\t var sStr = hasNativeMap ? aStr : util.toSetString(aStr);\n\t var isDuplicate = hasNativeMap ? this.has(aStr) : has.call(this._set, sStr);\n\t var idx = this._array.length;\n\t if (!isDuplicate || aAllowDuplicates) {\n\t this._array.push(aStr);\n\t }\n\t if (!isDuplicate) {\n\t if (hasNativeMap) {\n\t this._set.set(aStr, idx);\n\t } else {\n\t this._set[sStr] = idx;\n\t }\n\t }\n\t};\n\t\n\t/**\n\t * Is the given string a member of this set?\n\t *\n\t * @param String aStr\n\t */\n\tArraySet.prototype.has = function ArraySet_has(aStr) {\n\t if (hasNativeMap) {\n\t return this._set.has(aStr);\n\t } else {\n\t var sStr = util.toSetString(aStr);\n\t return has.call(this._set, sStr);\n\t }\n\t};\n\t\n\t/**\n\t * What is the index of the given string in the array?\n\t *\n\t * @param String aStr\n\t */\n\tArraySet.prototype.indexOf = function ArraySet_indexOf(aStr) {\n\t if (hasNativeMap) {\n\t var idx = this._set.get(aStr);\n\t if (idx >= 0) {\n\t return idx;\n\t }\n\t } else {\n\t var sStr = util.toSetString(aStr);\n\t if (has.call(this._set, sStr)) {\n\t return this._set[sStr];\n\t }\n\t }\n\t\n\t throw new Error('\"' + aStr + '\" is not in the set.');\n\t};\n\t\n\t/**\n\t * What is the element at the given index?\n\t *\n\t * @param Number aIdx\n\t */\n\tArraySet.prototype.at = function ArraySet_at(aIdx) {\n\t if (aIdx >= 0 && aIdx < this._array.length) {\n\t return this._array[aIdx];\n\t }\n\t throw new Error('No element indexed by ' + aIdx);\n\t};\n\t\n\t/**\n\t * Returns the array representation of this set (which has the proper indices\n\t * indicated by indexOf). Note that this is a copy of the internal array used\n\t * for storing the members so that no one can mess with internal state.\n\t */\n\tArraySet.prototype.toArray = function ArraySet_toArray() {\n\t return this._array.slice();\n\t};\n\t\n\texports.ArraySet = ArraySet;\n\n\n/***/ }),\n/* 6 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t/* -*- Mode: js; js-indent-level: 2; -*- */\n\t/*\n\t * Copyright 2014 Mozilla Foundation and contributors\n\t * Licensed under the New BSD license. See LICENSE or:\n\t * http://opensource.org/licenses/BSD-3-Clause\n\t */\n\t\n\tvar util = __webpack_require__(4);\n\t\n\t/**\n\t * Determine whether mappingB is after mappingA with respect to generated\n\t * position.\n\t */\n\tfunction generatedPositionAfter(mappingA, mappingB) {\n\t // Optimized for most common case\n\t var lineA = mappingA.generatedLine;\n\t var lineB = mappingB.generatedLine;\n\t var columnA = mappingA.generatedColumn;\n\t var columnB = mappingB.generatedColumn;\n\t return lineB > lineA || lineB == lineA && columnB >= columnA ||\n\t util.compareByGeneratedPositionsInflated(mappingA, mappingB) <= 0;\n\t}\n\t\n\t/**\n\t * A data structure to provide a sorted view of accumulated mappings in a\n\t * performance conscious manner. It trades a neglibable overhead in general\n\t * case for a large speedup in case of mappings being added in order.\n\t */\n\tfunction MappingList() {\n\t this._array = [];\n\t this._sorted = true;\n\t // Serves as infimum\n\t this._last = {generatedLine: -1, generatedColumn: 0};\n\t}\n\t\n\t/**\n\t * Iterate through internal items. This method takes the same arguments that\n\t * `Array.prototype.forEach` takes.\n\t *\n\t * NOTE: The order of the mappings is NOT guaranteed.\n\t */\n\tMappingList.prototype.unsortedForEach =\n\t function MappingList_forEach(aCallback, aThisArg) {\n\t this._array.forEach(aCallback, aThisArg);\n\t };\n\t\n\t/**\n\t * Add the given source mapping.\n\t *\n\t * @param Object aMapping\n\t */\n\tMappingList.prototype.add = function MappingList_add(aMapping) {\n\t if (generatedPositionAfter(this._last, aMapping)) {\n\t this._last = aMapping;\n\t this._array.push(aMapping);\n\t } else {\n\t this._sorted = false;\n\t this._array.push(aMapping);\n\t }\n\t};\n\t\n\t/**\n\t * Returns the flat, sorted array of mappings. The mappings are sorted by\n\t * generated position.\n\t *\n\t * WARNING: This method returns internal data without copying, for\n\t * performance. The return value must NOT be mutated, and should be treated as\n\t * an immutable borrow. If you want to take ownership, you must make your own\n\t * copy.\n\t */\n\tMappingList.prototype.toArray = function MappingList_toArray() {\n\t if (!this._sorted) {\n\t this._array.sort(util.compareByGeneratedPositionsInflated);\n\t this._sorted = true;\n\t }\n\t return this._array;\n\t};\n\t\n\texports.MappingList = MappingList;\n\n\n/***/ }),\n/* 7 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t/* -*- Mode: js; js-indent-level: 2; -*- */\n\t/*\n\t * Copyright 2011 Mozilla Foundation and contributors\n\t * Licensed under the New BSD license. See LICENSE or:\n\t * http://opensource.org/licenses/BSD-3-Clause\n\t */\n\t\n\tvar util = __webpack_require__(4);\n\tvar binarySearch = __webpack_require__(8);\n\tvar ArraySet = __webpack_require__(5).ArraySet;\n\tvar base64VLQ = __webpack_require__(2);\n\tvar quickSort = __webpack_require__(9).quickSort;\n\t\n\tfunction SourceMapConsumer(aSourceMap) {\n\t var sourceMap = aSourceMap;\n\t if (typeof aSourceMap === 'string') {\n\t sourceMap = JSON.parse(aSourceMap.replace(/^\\)\\]\\}'/, ''));\n\t }\n\t\n\t return sourceMap.sections != null\n\t ? new IndexedSourceMapConsumer(sourceMap)\n\t : new BasicSourceMapConsumer(sourceMap);\n\t}\n\t\n\tSourceMapConsumer.fromSourceMap = function(aSourceMap) {\n\t return BasicSourceMapConsumer.fromSourceMap(aSourceMap);\n\t}\n\t\n\t/**\n\t * The version of the source mapping spec that we are consuming.\n\t */\n\tSourceMapConsumer.prototype._version = 3;\n\t\n\t// `__generatedMappings` and `__originalMappings` are arrays that hold the\n\t// parsed mapping coordinates from the source map's \"mappings\" attribute. They\n\t// are lazily instantiated, accessed via the `_generatedMappings` and\n\t// `_originalMappings` getters respectively, and we only parse the mappings\n\t// and create these arrays once queried for a source location. We jump through\n\t// these hoops because there can be many thousands of mappings, and parsing\n\t// them is expensive, so we only want to do it if we must.\n\t//\n\t// Each object in the arrays is of the form:\n\t//\n\t// {\n\t// generatedLine: The line number in the generated code,\n\t// generatedColumn: The column number in the generated code,\n\t// source: The path to the original source file that generated this\n\t// chunk of code,\n\t// originalLine: The line number in the original source that\n\t// corresponds to this chunk of generated code,\n\t// originalColumn: The column number in the original source that\n\t// corresponds to this chunk of generated code,\n\t// name: The name of the original symbol which generated this chunk of\n\t// code.\n\t// }\n\t//\n\t// All properties except for `generatedLine` and `generatedColumn` can be\n\t// `null`.\n\t//\n\t// `_generatedMappings` is ordered by the generated positions.\n\t//\n\t// `_originalMappings` is ordered by the original positions.\n\t\n\tSourceMapConsumer.prototype.__generatedMappings = null;\n\tObject.defineProperty(SourceMapConsumer.prototype, '_generatedMappings', {\n\t get: function () {\n\t if (!this.__generatedMappings) {\n\t this._parseMappings(this._mappings, this.sourceRoot);\n\t }\n\t\n\t return this.__generatedMappings;\n\t }\n\t});\n\t\n\tSourceMapConsumer.prototype.__originalMappings = null;\n\tObject.defineProperty(SourceMapConsumer.prototype, '_originalMappings', {\n\t get: function () {\n\t if (!this.__originalMappings) {\n\t this._parseMappings(this._mappings, this.sourceRoot);\n\t }\n\t\n\t return this.__originalMappings;\n\t }\n\t});\n\t\n\tSourceMapConsumer.prototype._charIsMappingSeparator =\n\t function SourceMapConsumer_charIsMappingSeparator(aStr, index) {\n\t var c = aStr.charAt(index);\n\t return c === \";\" || c === \",\";\n\t };\n\t\n\t/**\n\t * Parse the mappings in a string in to a data structure which we can easily\n\t * query (the ordered arrays in the `this.__generatedMappings` and\n\t * `this.__originalMappings` properties).\n\t */\n\tSourceMapConsumer.prototype._parseMappings =\n\t function SourceMapConsumer_parseMappings(aStr, aSourceRoot) {\n\t throw new Error(\"Subclasses must implement _parseMappings\");\n\t };\n\t\n\tSourceMapConsumer.GENERATED_ORDER = 1;\n\tSourceMapConsumer.ORIGINAL_ORDER = 2;\n\t\n\tSourceMapConsumer.GREATEST_LOWER_BOUND = 1;\n\tSourceMapConsumer.LEAST_UPPER_BOUND = 2;\n\t\n\t/**\n\t * Iterate over each mapping between an original source/line/column and a\n\t * generated line/column in this source map.\n\t *\n\t * @param Function aCallback\n\t * The function that is called with each mapping.\n\t * @param Object aContext\n\t * Optional. If specified, this object will be the value of `this` every\n\t * time that `aCallback` is called.\n\t * @param aOrder\n\t * Either `SourceMapConsumer.GENERATED_ORDER` or\n\t * `SourceMapConsumer.ORIGINAL_ORDER`. Specifies whether you want to\n\t * iterate over the mappings sorted by the generated file's line/column\n\t * order or the original's source/line/column order, respectively. Defaults to\n\t * `SourceMapConsumer.GENERATED_ORDER`.\n\t */\n\tSourceMapConsumer.prototype.eachMapping =\n\t function SourceMapConsumer_eachMapping(aCallback, aContext, aOrder) {\n\t var context = aContext || null;\n\t var order = aOrder || SourceMapConsumer.GENERATED_ORDER;\n\t\n\t var mappings;\n\t switch (order) {\n\t case SourceMapConsumer.GENERATED_ORDER:\n\t mappings = this._generatedMappings;\n\t break;\n\t case SourceMapConsumer.ORIGINAL_ORDER:\n\t mappings = this._originalMappings;\n\t break;\n\t default:\n\t throw new Error(\"Unknown order of iteration.\");\n\t }\n\t\n\t var sourceRoot = this.sourceRoot;\n\t mappings.map(function (mapping) {\n\t var source = mapping.source === null ? null : this._sources.at(mapping.source);\n\t if (source != null && sourceRoot != null) {\n\t source = util.join(sourceRoot, source);\n\t }\n\t return {\n\t source: source,\n\t generatedLine: mapping.generatedLine,\n\t generatedColumn: mapping.generatedColumn,\n\t originalLine: mapping.originalLine,\n\t originalColumn: mapping.originalColumn,\n\t name: mapping.name === null ? null : this._names.at(mapping.name)\n\t };\n\t }, this).forEach(aCallback, context);\n\t };\n\t\n\t/**\n\t * Returns all generated line and column information for the original source,\n\t * line, and column provided. If no column is provided, returns all mappings\n\t * corresponding to a either the line we are searching for or the next\n\t * closest line that has any mappings. Otherwise, returns all mappings\n\t * corresponding to the given line and either the column we are searching for\n\t * or the next closest column that has any offsets.\n\t *\n\t * The only argument is an object with the following properties:\n\t *\n\t * - source: The filename of the original source.\n\t * - line: The line number in the original source.\n\t * - column: Optional. the column number in the original source.\n\t *\n\t * and an array of objects is returned, each with the following properties:\n\t *\n\t * - line: The line number in the generated source, or null.\n\t * - column: The column number in the generated source, or null.\n\t */\n\tSourceMapConsumer.prototype.allGeneratedPositionsFor =\n\t function SourceMapConsumer_allGeneratedPositionsFor(aArgs) {\n\t var line = util.getArg(aArgs, 'line');\n\t\n\t // When there is no exact match, BasicSourceMapConsumer.prototype._findMapping\n\t // returns the index of the closest mapping less than the needle. By\n\t // setting needle.originalColumn to 0, we thus find the last mapping for\n\t // the given line, provided such a mapping exists.\n\t var needle = {\n\t source: util.getArg(aArgs, 'source'),\n\t originalLine: line,\n\t originalColumn: util.getArg(aArgs, 'column', 0)\n\t };\n\t\n\t if (this.sourceRoot != null) {\n\t needle.source = util.relative(this.sourceRoot, needle.source);\n\t }\n\t if (!this._sources.has(needle.source)) {\n\t return [];\n\t }\n\t needle.source = this._sources.indexOf(needle.source);\n\t\n\t var mappings = [];\n\t\n\t var index = this._findMapping(needle,\n\t this._originalMappings,\n\t \"originalLine\",\n\t \"originalColumn\",\n\t util.compareByOriginalPositions,\n\t binarySearch.LEAST_UPPER_BOUND);\n\t if (index >= 0) {\n\t var mapping = this._originalMappings[index];\n\t\n\t if (aArgs.column === undefined) {\n\t var originalLine = mapping.originalLine;\n\t\n\t // Iterate until either we run out of mappings, or we run into\n\t // a mapping for a different line than the one we found. Since\n\t // mappings are sorted, this is guaranteed to find all mappings for\n\t // the line we found.\n\t while (mapping && mapping.originalLine === originalLine) {\n\t mappings.push({\n\t line: util.getArg(mapping, 'generatedLine', null),\n\t column: util.getArg(mapping, 'generatedColumn', null),\n\t lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null)\n\t });\n\t\n\t mapping = this._originalMappings[++index];\n\t }\n\t } else {\n\t var originalColumn = mapping.originalColumn;\n\t\n\t // Iterate until either we run out of mappings, or we run into\n\t // a mapping for a different line than the one we were searching for.\n\t // Since mappings are sorted, this is guaranteed to find all mappings for\n\t // the line we are searching for.\n\t while (mapping &&\n\t mapping.originalLine === line &&\n\t mapping.originalColumn == originalColumn) {\n\t mappings.push({\n\t line: util.getArg(mapping, 'generatedLine', null),\n\t column: util.getArg(mapping, 'generatedColumn', null),\n\t lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null)\n\t });\n\t\n\t mapping = this._originalMappings[++index];\n\t }\n\t }\n\t }\n\t\n\t return mappings;\n\t };\n\t\n\texports.SourceMapConsumer = SourceMapConsumer;\n\t\n\t/**\n\t * A BasicSourceMapConsumer instance represents a parsed source map which we can\n\t * query for information about the original file positions by giving it a file\n\t * position in the generated source.\n\t *\n\t * The only parameter is the raw source map (either as a JSON string, or\n\t * already parsed to an object). According to the spec, source maps have the\n\t * following attributes:\n\t *\n\t * - version: Which version of the source map spec this map is following.\n\t * - sources: An array of URLs to the original source files.\n\t * - names: An array of identifiers which can be referrenced by individual mappings.\n\t * - sourceRoot: Optional. The URL root from which all sources are relative.\n\t * - sourcesContent: Optional. An array of contents of the original source files.\n\t * - mappings: A string of base64 VLQs which contain the actual mappings.\n\t * - file: Optional. The generated file this source map is associated with.\n\t *\n\t * Here is an example source map, taken from the source map spec[0]:\n\t *\n\t * {\n\t * version : 3,\n\t * file: \"out.js\",\n\t * sourceRoot : \"\",\n\t * sources: [\"foo.js\", \"bar.js\"],\n\t * names: [\"src\", \"maps\", \"are\", \"fun\"],\n\t * mappings: \"AA,AB;;ABCDE;\"\n\t * }\n\t *\n\t * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?pli=1#\n\t */\n\tfunction BasicSourceMapConsumer(aSourceMap) {\n\t var sourceMap = aSourceMap;\n\t if (typeof aSourceMap === 'string') {\n\t sourceMap = JSON.parse(aSourceMap.replace(/^\\)\\]\\}'/, ''));\n\t }\n\t\n\t var version = util.getArg(sourceMap, 'version');\n\t var sources = util.getArg(sourceMap, 'sources');\n\t // Sass 3.3 leaves out the 'names' array, so we deviate from the spec (which\n\t // requires the array) to play nice here.\n\t var names = util.getArg(sourceMap, 'names', []);\n\t var sourceRoot = util.getArg(sourceMap, 'sourceRoot', null);\n\t var sourcesContent = util.getArg(sourceMap, 'sourcesContent', null);\n\t var mappings = util.getArg(sourceMap, 'mappings');\n\t var file = util.getArg(sourceMap, 'file', null);\n\t\n\t // Once again, Sass deviates from the spec and supplies the version as a\n\t // string rather than a number, so we use loose equality checking here.\n\t if (version != this._version) {\n\t throw new Error('Unsupported version: ' + version);\n\t }\n\t\n\t sources = sources\n\t .map(String)\n\t // Some source maps produce relative source paths like \"./foo.js\" instead of\n\t // \"foo.js\". Normalize these first so that future comparisons will succeed.\n\t // See bugzil.la/1090768.\n\t .map(util.normalize)\n\t // Always ensure that absolute sources are internally stored relative to\n\t // the source root, if the source root is absolute. Not doing this would\n\t // be particularly problematic when the source root is a prefix of the\n\t // source (valid, but why??). See github issue #199 and bugzil.la/1188982.\n\t .map(function (source) {\n\t return sourceRoot && util.isAbsolute(sourceRoot) && util.isAbsolute(source)\n\t ? util.relative(sourceRoot, source)\n\t : source;\n\t });\n\t\n\t // Pass `true` below to allow duplicate names and sources. While source maps\n\t // are intended to be compressed and deduplicated, the TypeScript compiler\n\t // sometimes generates source maps with duplicates in them. See Github issue\n\t // #72 and bugzil.la/889492.\n\t this._names = ArraySet.fromArray(names.map(String), true);\n\t this._sources = ArraySet.fromArray(sources, true);\n\t\n\t this.sourceRoot = sourceRoot;\n\t this.sourcesContent = sourcesContent;\n\t this._mappings = mappings;\n\t this.file = file;\n\t}\n\t\n\tBasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype);\n\tBasicSourceMapConsumer.prototype.consumer = SourceMapConsumer;\n\t\n\t/**\n\t * Create a BasicSourceMapConsumer from a SourceMapGenerator.\n\t *\n\t * @param SourceMapGenerator aSourceMap\n\t * The source map that will be consumed.\n\t * @returns BasicSourceMapConsumer\n\t */\n\tBasicSourceMapConsumer.fromSourceMap =\n\t function SourceMapConsumer_fromSourceMap(aSourceMap) {\n\t var smc = Object.create(BasicSourceMapConsumer.prototype);\n\t\n\t var names = smc._names = ArraySet.fromArray(aSourceMap._names.toArray(), true);\n\t var sources = smc._sources = ArraySet.fromArray(aSourceMap._sources.toArray(), true);\n\t smc.sourceRoot = aSourceMap._sourceRoot;\n\t smc.sourcesContent = aSourceMap._generateSourcesContent(smc._sources.toArray(),\n\t smc.sourceRoot);\n\t smc.file = aSourceMap._file;\n\t\n\t // Because we are modifying the entries (by converting string sources and\n\t // names to indices into the sources and names ArraySets), we have to make\n\t // a copy of the entry or else bad things happen. Shared mutable state\n\t // strikes again! See github issue #191.\n\t\n\t var generatedMappings = aSourceMap._mappings.toArray().slice();\n\t var destGeneratedMappings = smc.__generatedMappings = [];\n\t var destOriginalMappings = smc.__originalMappings = [];\n\t\n\t for (var i = 0, length = generatedMappings.length; i < length; i++) {\n\t var srcMapping = generatedMappings[i];\n\t var destMapping = new Mapping;\n\t destMapping.generatedLine = srcMapping.generatedLine;\n\t destMapping.generatedColumn = srcMapping.generatedColumn;\n\t\n\t if (srcMapping.source) {\n\t destMapping.source = sources.indexOf(srcMapping.source);\n\t destMapping.originalLine = srcMapping.originalLine;\n\t destMapping.originalColumn = srcMapping.originalColumn;\n\t\n\t if (srcMapping.name) {\n\t destMapping.name = names.indexOf(srcMapping.name);\n\t }\n\t\n\t destOriginalMappings.push(destMapping);\n\t }\n\t\n\t destGeneratedMappings.push(destMapping);\n\t }\n\t\n\t quickSort(smc.__originalMappings, util.compareByOriginalPositions);\n\t\n\t return smc;\n\t };\n\t\n\t/**\n\t * The version of the source mapping spec that we are consuming.\n\t */\n\tBasicSourceMapConsumer.prototype._version = 3;\n\t\n\t/**\n\t * The list of original sources.\n\t */\n\tObject.defineProperty(BasicSourceMapConsumer.prototype, 'sources', {\n\t get: function () {\n\t return this._sources.toArray().map(function (s) {\n\t return this.sourceRoot != null ? util.join(this.sourceRoot, s) : s;\n\t }, this);\n\t }\n\t});\n\t\n\t/**\n\t * Provide the JIT with a nice shape / hidden class.\n\t */\n\tfunction Mapping() {\n\t this.generatedLine = 0;\n\t this.generatedColumn = 0;\n\t this.source = null;\n\t this.originalLine = null;\n\t this.originalColumn = null;\n\t this.name = null;\n\t}\n\t\n\t/**\n\t * Parse the mappings in a string in to a data structure which we can easily\n\t * query (the ordered arrays in the `this.__generatedMappings` and\n\t * `this.__originalMappings` properties).\n\t */\n\tBasicSourceMapConsumer.prototype._parseMappings =\n\t function SourceMapConsumer_parseMappings(aStr, aSourceRoot) {\n\t var generatedLine = 1;\n\t var previousGeneratedColumn = 0;\n\t var previousOriginalLine = 0;\n\t var previousOriginalColumn = 0;\n\t var previousSource = 0;\n\t var previousName = 0;\n\t var length = aStr.length;\n\t var index = 0;\n\t var cachedSegments = {};\n\t var temp = {};\n\t var originalMappings = [];\n\t var generatedMappings = [];\n\t var mapping, str, segment, end, value;\n\t\n\t while (index < length) {\n\t if (aStr.charAt(index) === ';') {\n\t generatedLine++;\n\t index++;\n\t previousGeneratedColumn = 0;\n\t }\n\t else if (aStr.charAt(index) === ',') {\n\t index++;\n\t }\n\t else {\n\t mapping = new Mapping();\n\t mapping.generatedLine = generatedLine;\n\t\n\t // Because each offset is encoded relative to the previous one,\n\t // many segments often have the same encoding. We can exploit this\n\t // fact by caching the parsed variable length fields of each segment,\n\t // allowing us to avoid a second parse if we encounter the same\n\t // segment again.\n\t for (end = index; end < length; end++) {\n\t if (this._charIsMappingSeparator(aStr, end)) {\n\t break;\n\t }\n\t }\n\t str = aStr.slice(index, end);\n\t\n\t segment = cachedSegments[str];\n\t if (segment) {\n\t index += str.length;\n\t } else {\n\t segment = [];\n\t while (index < end) {\n\t base64VLQ.decode(aStr, index, temp);\n\t value = temp.value;\n\t index = temp.rest;\n\t segment.push(value);\n\t }\n\t\n\t if (segment.length === 2) {\n\t throw new Error('Found a source, but no line and column');\n\t }\n\t\n\t if (segment.length === 3) {\n\t throw new Error('Found a source and line, but no column');\n\t }\n\t\n\t cachedSegments[str] = segment;\n\t }\n\t\n\t // Generated column.\n\t mapping.generatedColumn = previousGeneratedColumn + segment[0];\n\t previousGeneratedColumn = mapping.generatedColumn;\n\t\n\t if (segment.length > 1) {\n\t // Original source.\n\t mapping.source = previousSource + segment[1];\n\t previousSource += segment[1];\n\t\n\t // Original line.\n\t mapping.originalLine = previousOriginalLine + segment[2];\n\t previousOriginalLine = mapping.originalLine;\n\t // Lines are stored 0-based\n\t mapping.originalLine += 1;\n\t\n\t // Original column.\n\t mapping.originalColumn = previousOriginalColumn + segment[3];\n\t previousOriginalColumn = mapping.originalColumn;\n\t\n\t if (segment.length > 4) {\n\t // Original name.\n\t mapping.name = previousName + segment[4];\n\t previousName += segment[4];\n\t }\n\t }\n\t\n\t generatedMappings.push(mapping);\n\t if (typeof mapping.originalLine === 'number') {\n\t originalMappings.push(mapping);\n\t }\n\t }\n\t }\n\t\n\t quickSort(generatedMappings, util.compareByGeneratedPositionsDeflated);\n\t this.__generatedMappings = generatedMappings;\n\t\n\t quickSort(originalMappings, util.compareByOriginalPositions);\n\t this.__originalMappings = originalMappings;\n\t };\n\t\n\t/**\n\t * Find the mapping that best matches the hypothetical \"needle\" mapping that\n\t * we are searching for in the given \"haystack\" of mappings.\n\t */\n\tBasicSourceMapConsumer.prototype._findMapping =\n\t function SourceMapConsumer_findMapping(aNeedle, aMappings, aLineName,\n\t aColumnName, aComparator, aBias) {\n\t // To return the position we are searching for, we must first find the\n\t // mapping for the given position and then return the opposite position it\n\t // points to. Because the mappings are sorted, we can use binary search to\n\t // find the best mapping.\n\t\n\t if (aNeedle[aLineName] <= 0) {\n\t throw new TypeError('Line must be greater than or equal to 1, got '\n\t + aNeedle[aLineName]);\n\t }\n\t if (aNeedle[aColumnName] < 0) {\n\t throw new TypeError('Column must be greater than or equal to 0, got '\n\t + aNeedle[aColumnName]);\n\t }\n\t\n\t return binarySearch.search(aNeedle, aMappings, aComparator, aBias);\n\t };\n\t\n\t/**\n\t * Compute the last column for each generated mapping. The last column is\n\t * inclusive.\n\t */\n\tBasicSourceMapConsumer.prototype.computeColumnSpans =\n\t function SourceMapConsumer_computeColumnSpans() {\n\t for (var index = 0; index < this._generatedMappings.length; ++index) {\n\t var mapping = this._generatedMappings[index];\n\t\n\t // Mappings do not contain a field for the last generated columnt. We\n\t // can come up with an optimistic estimate, however, by assuming that\n\t // mappings are contiguous (i.e. given two consecutive mappings, the\n\t // first mapping ends where the second one starts).\n\t if (index + 1 < this._generatedMappings.length) {\n\t var nextMapping = this._generatedMappings[index + 1];\n\t\n\t if (mapping.generatedLine === nextMapping.generatedLine) {\n\t mapping.lastGeneratedColumn = nextMapping.generatedColumn - 1;\n\t continue;\n\t }\n\t }\n\t\n\t // The last mapping for each line spans the entire line.\n\t mapping.lastGeneratedColumn = Infinity;\n\t }\n\t };\n\t\n\t/**\n\t * Returns the original source, line, and column information for the generated\n\t * source's line and column positions provided. The only argument is an object\n\t * with the following properties:\n\t *\n\t * - line: The line number in the generated source.\n\t * - column: The column number in the generated source.\n\t * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or\n\t * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the\n\t * closest element that is smaller than or greater than the one we are\n\t * searching for, respectively, if the exact element cannot be found.\n\t * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'.\n\t *\n\t * and an object is returned with the following properties:\n\t *\n\t * - source: The original source file, or null.\n\t * - line: The line number in the original source, or null.\n\t * - column: The column number in the original source, or null.\n\t * - name: The original identifier, or null.\n\t */\n\tBasicSourceMapConsumer.prototype.originalPositionFor =\n\t function SourceMapConsumer_originalPositionFor(aArgs) {\n\t var needle = {\n\t generatedLine: util.getArg(aArgs, 'line'),\n\t generatedColumn: util.getArg(aArgs, 'column')\n\t };\n\t\n\t var index = this._findMapping(\n\t needle,\n\t this._generatedMappings,\n\t \"generatedLine\",\n\t \"generatedColumn\",\n\t util.compareByGeneratedPositionsDeflated,\n\t util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND)\n\t );\n\t\n\t if (index >= 0) {\n\t var mapping = this._generatedMappings[index];\n\t\n\t if (mapping.generatedLine === needle.generatedLine) {\n\t var source = util.getArg(mapping, 'source', null);\n\t if (source !== null) {\n\t source = this._sources.at(source);\n\t if (this.sourceRoot != null) {\n\t source = util.join(this.sourceRoot, source);\n\t }\n\t }\n\t var name = util.getArg(mapping, 'name', null);\n\t if (name !== null) {\n\t name = this._names.at(name);\n\t }\n\t return {\n\t source: source,\n\t line: util.getArg(mapping, 'originalLine', null),\n\t column: util.getArg(mapping, 'originalColumn', null),\n\t name: name\n\t };\n\t }\n\t }\n\t\n\t return {\n\t source: null,\n\t line: null,\n\t column: null,\n\t name: null\n\t };\n\t };\n\t\n\t/**\n\t * Return true if we have the source content for every source in the source\n\t * map, false otherwise.\n\t */\n\tBasicSourceMapConsumer.prototype.hasContentsOfAllSources =\n\t function BasicSourceMapConsumer_hasContentsOfAllSources() {\n\t if (!this.sourcesContent) {\n\t return false;\n\t }\n\t return this.sourcesContent.length >= this._sources.size() &&\n\t !this.sourcesContent.some(function (sc) { return sc == null; });\n\t };\n\t\n\t/**\n\t * Returns the original source content. The only argument is the url of the\n\t * original source file. Returns null if no original source content is\n\t * available.\n\t */\n\tBasicSourceMapConsumer.prototype.sourceContentFor =\n\t function SourceMapConsumer_sourceContentFor(aSource, nullOnMissing) {\n\t if (!this.sourcesContent) {\n\t return null;\n\t }\n\t\n\t if (this.sourceRoot != null) {\n\t aSource = util.relative(this.sourceRoot, aSource);\n\t }\n\t\n\t if (this._sources.has(aSource)) {\n\t return this.sourcesContent[this._sources.indexOf(aSource)];\n\t }\n\t\n\t var url;\n\t if (this.sourceRoot != null\n\t && (url = util.urlParse(this.sourceRoot))) {\n\t // XXX: file:// URIs and absolute paths lead to unexpected behavior for\n\t // many users. We can help them out when they expect file:// URIs to\n\t // behave like it would if they were running a local HTTP server. See\n\t // https://bugzilla.mozilla.org/show_bug.cgi?id=885597.\n\t var fileUriAbsPath = aSource.replace(/^file:\\/\\//, \"\");\n\t if (url.scheme == \"file\"\n\t && this._sources.has(fileUriAbsPath)) {\n\t return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)]\n\t }\n\t\n\t if ((!url.path || url.path == \"/\")\n\t && this._sources.has(\"/\" + aSource)) {\n\t return this.sourcesContent[this._sources.indexOf(\"/\" + aSource)];\n\t }\n\t }\n\t\n\t // This function is used recursively from\n\t // IndexedSourceMapConsumer.prototype.sourceContentFor. In that case, we\n\t // don't want to throw if we can't find the source - we just want to\n\t // return null, so we provide a flag to exit gracefully.\n\t if (nullOnMissing) {\n\t return null;\n\t }\n\t else {\n\t throw new Error('\"' + aSource + '\" is not in the SourceMap.');\n\t }\n\t };\n\t\n\t/**\n\t * Returns the generated line and column information for the original source,\n\t * line, and column positions provided. The only argument is an object with\n\t * the following properties:\n\t *\n\t * - source: The filename of the original source.\n\t * - line: The line number in the original source.\n\t * - column: The column number in the original source.\n\t * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or\n\t * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the\n\t * closest element that is smaller than or greater than the one we are\n\t * searching for, respectively, if the exact element cannot be found.\n\t * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'.\n\t *\n\t * and an object is returned with the following properties:\n\t *\n\t * - line: The line number in the generated source, or null.\n\t * - column: The column number in the generated source, or null.\n\t */\n\tBasicSourceMapConsumer.prototype.generatedPositionFor =\n\t function SourceMapConsumer_generatedPositionFor(aArgs) {\n\t var source = util.getArg(aArgs, 'source');\n\t if (this.sourceRoot != null) {\n\t source = util.relative(this.sourceRoot, source);\n\t }\n\t if (!this._sources.has(source)) {\n\t return {\n\t line: null,\n\t column: null,\n\t lastColumn: null\n\t };\n\t }\n\t source = this._sources.indexOf(source);\n\t\n\t var needle = {\n\t source: source,\n\t originalLine: util.getArg(aArgs, 'line'),\n\t originalColumn: util.getArg(aArgs, 'column')\n\t };\n\t\n\t var index = this._findMapping(\n\t needle,\n\t this._originalMappings,\n\t \"originalLine\",\n\t \"originalColumn\",\n\t util.compareByOriginalPositions,\n\t util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND)\n\t );\n\t\n\t if (index >= 0) {\n\t var mapping = this._originalMappings[index];\n\t\n\t if (mapping.source === needle.source) {\n\t return {\n\t line: util.getArg(mapping, 'generatedLine', null),\n\t column: util.getArg(mapping, 'generatedColumn', null),\n\t lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null)\n\t };\n\t }\n\t }\n\t\n\t return {\n\t line: null,\n\t column: null,\n\t lastColumn: null\n\t };\n\t };\n\t\n\texports.BasicSourceMapConsumer = BasicSourceMapConsumer;\n\t\n\t/**\n\t * An IndexedSourceMapConsumer instance represents a parsed source map which\n\t * we can query for information. It differs from BasicSourceMapConsumer in\n\t * that it takes \"indexed\" source maps (i.e. ones with a \"sections\" field) as\n\t * input.\n\t *\n\t * The only parameter is a raw source map (either as a JSON string, or already\n\t * parsed to an object). According to the spec for indexed source maps, they\n\t * have the following attributes:\n\t *\n\t * - version: Which version of the source map spec this map is following.\n\t * - file: Optional. The generated file this source map is associated with.\n\t * - sections: A list of section definitions.\n\t *\n\t * Each value under the \"sections\" field has two fields:\n\t * - offset: The offset into the original specified at which this section\n\t * begins to apply, defined as an object with a \"line\" and \"column\"\n\t * field.\n\t * - map: A source map definition. This source map could also be indexed,\n\t * but doesn't have to be.\n\t *\n\t * Instead of the \"map\" field, it's also possible to have a \"url\" field\n\t * specifying a URL to retrieve a source map from, but that's currently\n\t * unsupported.\n\t *\n\t * Here's an example source map, taken from the source map spec[0], but\n\t * modified to omit a section which uses the \"url\" field.\n\t *\n\t * {\n\t * version : 3,\n\t * file: \"app.js\",\n\t * sections: [{\n\t * offset: {line:100, column:10},\n\t * map: {\n\t * version : 3,\n\t * file: \"section.js\",\n\t * sources: [\"foo.js\", \"bar.js\"],\n\t * names: [\"src\", \"maps\", \"are\", \"fun\"],\n\t * mappings: \"AAAA,E;;ABCDE;\"\n\t * }\n\t * }],\n\t * }\n\t *\n\t * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit#heading=h.535es3xeprgt\n\t */\n\tfunction IndexedSourceMapConsumer(aSourceMap) {\n\t var sourceMap = aSourceMap;\n\t if (typeof aSourceMap === 'string') {\n\t sourceMap = JSON.parse(aSourceMap.replace(/^\\)\\]\\}'/, ''));\n\t }\n\t\n\t var version = util.getArg(sourceMap, 'version');\n\t var sections = util.getArg(sourceMap, 'sections');\n\t\n\t if (version != this._version) {\n\t throw new Error('Unsupported version: ' + version);\n\t }\n\t\n\t this._sources = new ArraySet();\n\t this._names = new ArraySet();\n\t\n\t var lastOffset = {\n\t line: -1,\n\t column: 0\n\t };\n\t this._sections = sections.map(function (s) {\n\t if (s.url) {\n\t // The url field will require support for asynchronicity.\n\t // See https://github.com/mozilla/source-map/issues/16\n\t throw new Error('Support for url field in sections not implemented.');\n\t }\n\t var offset = util.getArg(s, 'offset');\n\t var offsetLine = util.getArg(offset, 'line');\n\t var offsetColumn = util.getArg(offset, 'column');\n\t\n\t if (offsetLine < lastOffset.line ||\n\t (offsetLine === lastOffset.line && offsetColumn < lastOffset.column)) {\n\t throw new Error('Section offsets must be ordered and non-overlapping.');\n\t }\n\t lastOffset = offset;\n\t\n\t return {\n\t generatedOffset: {\n\t // The offset fields are 0-based, but we use 1-based indices when\n\t // encoding/decoding from VLQ.\n\t generatedLine: offsetLine + 1,\n\t generatedColumn: offsetColumn + 1\n\t },\n\t consumer: new SourceMapConsumer(util.getArg(s, 'map'))\n\t }\n\t });\n\t}\n\t\n\tIndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype);\n\tIndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer;\n\t\n\t/**\n\t * The version of the source mapping spec that we are consuming.\n\t */\n\tIndexedSourceMapConsumer.prototype._version = 3;\n\t\n\t/**\n\t * The list of original sources.\n\t */\n\tObject.defineProperty(IndexedSourceMapConsumer.prototype, 'sources', {\n\t get: function () {\n\t var sources = [];\n\t for (var i = 0; i < this._sections.length; i++) {\n\t for (var j = 0; j < this._sections[i].consumer.sources.length; j++) {\n\t sources.push(this._sections[i].consumer.sources[j]);\n\t }\n\t }\n\t return sources;\n\t }\n\t});\n\t\n\t/**\n\t * Returns the original source, line, and column information for the generated\n\t * source's line and column positions provided. The only argument is an object\n\t * with the following properties:\n\t *\n\t * - line: The line number in the generated source.\n\t * - column: The column number in the generated source.\n\t *\n\t * and an object is returned with the following properties:\n\t *\n\t * - source: The original source file, or null.\n\t * - line: The line number in the original source, or null.\n\t * - column: The column number in the original source, or null.\n\t * - name: The original identifier, or null.\n\t */\n\tIndexedSourceMapConsumer.prototype.originalPositionFor =\n\t function IndexedSourceMapConsumer_originalPositionFor(aArgs) {\n\t var needle = {\n\t generatedLine: util.getArg(aArgs, 'line'),\n\t generatedColumn: util.getArg(aArgs, 'column')\n\t };\n\t\n\t // Find the section containing the generated position we're trying to map\n\t // to an original position.\n\t var sectionIndex = binarySearch.search(needle, this._sections,\n\t function(needle, section) {\n\t var cmp = needle.generatedLine - section.generatedOffset.generatedLine;\n\t if (cmp) {\n\t return cmp;\n\t }\n\t\n\t return (needle.generatedColumn -\n\t section.generatedOffset.generatedColumn);\n\t });\n\t var section = this._sections[sectionIndex];\n\t\n\t if (!section) {\n\t return {\n\t source: null,\n\t line: null,\n\t column: null,\n\t name: null\n\t };\n\t }\n\t\n\t return section.consumer.originalPositionFor({\n\t line: needle.generatedLine -\n\t (section.generatedOffset.generatedLine - 1),\n\t column: needle.generatedColumn -\n\t (section.generatedOffset.generatedLine === needle.generatedLine\n\t ? section.generatedOffset.generatedColumn - 1\n\t : 0),\n\t bias: aArgs.bias\n\t });\n\t };\n\t\n\t/**\n\t * Return true if we have the source content for every source in the source\n\t * map, false otherwise.\n\t */\n\tIndexedSourceMapConsumer.prototype.hasContentsOfAllSources =\n\t function IndexedSourceMapConsumer_hasContentsOfAllSources() {\n\t return this._sections.every(function (s) {\n\t return s.consumer.hasContentsOfAllSources();\n\t });\n\t };\n\t\n\t/**\n\t * Returns the original source content. The only argument is the url of the\n\t * original source file. Returns null if no original source content is\n\t * available.\n\t */\n\tIndexedSourceMapConsumer.prototype.sourceContentFor =\n\t function IndexedSourceMapConsumer_sourceContentFor(aSource, nullOnMissing) {\n\t for (var i = 0; i < this._sections.length; i++) {\n\t var section = this._sections[i];\n\t\n\t var content = section.consumer.sourceContentFor(aSource, true);\n\t if (content) {\n\t return content;\n\t }\n\t }\n\t if (nullOnMissing) {\n\t return null;\n\t }\n\t else {\n\t throw new Error('\"' + aSource + '\" is not in the SourceMap.');\n\t }\n\t };\n\t\n\t/**\n\t * Returns the generated line and column information for the original source,\n\t * line, and column positions provided. The only argument is an object with\n\t * the following properties:\n\t *\n\t * - source: The filename of the original source.\n\t * - line: The line number in the original source.\n\t * - column: The column number in the original source.\n\t *\n\t * and an object is returned with the following properties:\n\t *\n\t * - line: The line number in the generated source, or null.\n\t * - column: The column number in the generated source, or null.\n\t */\n\tIndexedSourceMapConsumer.prototype.generatedPositionFor =\n\t function IndexedSourceMapConsumer_generatedPositionFor(aArgs) {\n\t for (var i = 0; i < this._sections.length; i++) {\n\t var section = this._sections[i];\n\t\n\t // Only consider this section if the requested source is in the list of\n\t // sources of the consumer.\n\t if (section.consumer.sources.indexOf(util.getArg(aArgs, 'source')) === -1) {\n\t continue;\n\t }\n\t var generatedPosition = section.consumer.generatedPositionFor(aArgs);\n\t if (generatedPosition) {\n\t var ret = {\n\t line: generatedPosition.line +\n\t (section.generatedOffset.generatedLine - 1),\n\t column: generatedPosition.column +\n\t (section.generatedOffset.generatedLine === generatedPosition.line\n\t ? section.generatedOffset.generatedColumn - 1\n\t : 0)\n\t };\n\t return ret;\n\t }\n\t }\n\t\n\t return {\n\t line: null,\n\t column: null\n\t };\n\t };\n\t\n\t/**\n\t * Parse the mappings in a string in to a data structure which we can easily\n\t * query (the ordered arrays in the `this.__generatedMappings` and\n\t * `this.__originalMappings` properties).\n\t */\n\tIndexedSourceMapConsumer.prototype._parseMappings =\n\t function IndexedSourceMapConsumer_parseMappings(aStr, aSourceRoot) {\n\t this.__generatedMappings = [];\n\t this.__originalMappings = [];\n\t for (var i = 0; i < this._sections.length; i++) {\n\t var section = this._sections[i];\n\t var sectionMappings = section.consumer._generatedMappings;\n\t for (var j = 0; j < sectionMappings.length; j++) {\n\t var mapping = sectionMappings[j];\n\t\n\t var source = section.consumer._sources.at(mapping.source);\n\t if (section.consumer.sourceRoot !== null) {\n\t source = util.join(section.consumer.sourceRoot, source);\n\t }\n\t this._sources.add(source);\n\t source = this._sources.indexOf(source);\n\t\n\t var name = section.consumer._names.at(mapping.name);\n\t this._names.add(name);\n\t name = this._names.indexOf(name);\n\t\n\t // The mappings coming from the consumer for the section have\n\t // generated positions relative to the start of the section, so we\n\t // need to offset them to be relative to the start of the concatenated\n\t // generated file.\n\t var adjustedMapping = {\n\t source: source,\n\t generatedLine: mapping.generatedLine +\n\t (section.generatedOffset.generatedLine - 1),\n\t generatedColumn: mapping.generatedColumn +\n\t (section.generatedOffset.generatedLine === mapping.generatedLine\n\t ? section.generatedOffset.generatedColumn - 1\n\t : 0),\n\t originalLine: mapping.originalLine,\n\t originalColumn: mapping.originalColumn,\n\t name: name\n\t };\n\t\n\t this.__generatedMappings.push(adjustedMapping);\n\t if (typeof adjustedMapping.originalLine === 'number') {\n\t this.__originalMappings.push(adjustedMapping);\n\t }\n\t }\n\t }\n\t\n\t quickSort(this.__generatedMappings, util.compareByGeneratedPositionsDeflated);\n\t quickSort(this.__originalMappings, util.compareByOriginalPositions);\n\t };\n\t\n\texports.IndexedSourceMapConsumer = IndexedSourceMapConsumer;\n\n\n/***/ }),\n/* 8 */\n/***/ (function(module, exports) {\n\n\t/* -*- Mode: js; js-indent-level: 2; -*- */\n\t/*\n\t * Copyright 2011 Mozilla Foundation and contributors\n\t * Licensed under the New BSD license. See LICENSE or:\n\t * http://opensource.org/licenses/BSD-3-Clause\n\t */\n\t\n\texports.GREATEST_LOWER_BOUND = 1;\n\texports.LEAST_UPPER_BOUND = 2;\n\t\n\t/**\n\t * Recursive implementation of binary search.\n\t *\n\t * @param aLow Indices here and lower do not contain the needle.\n\t * @param aHigh Indices here and higher do not contain the needle.\n\t * @param aNeedle The element being searched for.\n\t * @param aHaystack The non-empty array being searched.\n\t * @param aCompare Function which takes two elements and returns -1, 0, or 1.\n\t * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or\n\t * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the\n\t * closest element that is smaller than or greater than the one we are\n\t * searching for, respectively, if the exact element cannot be found.\n\t */\n\tfunction recursiveSearch(aLow, aHigh, aNeedle, aHaystack, aCompare, aBias) {\n\t // This function terminates when one of the following is true:\n\t //\n\t // 1. We find the exact element we are looking for.\n\t //\n\t // 2. We did not find the exact element, but we can return the index of\n\t // the next-closest element.\n\t //\n\t // 3. We did not find the exact element, and there is no next-closest\n\t // element than the one we are searching for, so we return -1.\n\t var mid = Math.floor((aHigh - aLow) / 2) + aLow;\n\t var cmp = aCompare(aNeedle, aHaystack[mid], true);\n\t if (cmp === 0) {\n\t // Found the element we are looking for.\n\t return mid;\n\t }\n\t else if (cmp > 0) {\n\t // Our needle is greater than aHaystack[mid].\n\t if (aHigh - mid > 1) {\n\t // The element is in the upper half.\n\t return recursiveSearch(mid, aHigh, aNeedle, aHaystack, aCompare, aBias);\n\t }\n\t\n\t // The exact needle element was not found in this haystack. Determine if\n\t // we are in termination case (3) or (2) and return the appropriate thing.\n\t if (aBias == exports.LEAST_UPPER_BOUND) {\n\t return aHigh < aHaystack.length ? aHigh : -1;\n\t } else {\n\t return mid;\n\t }\n\t }\n\t else {\n\t // Our needle is less than aHaystack[mid].\n\t if (mid - aLow > 1) {\n\t // The element is in the lower half.\n\t return recursiveSearch(aLow, mid, aNeedle, aHaystack, aCompare, aBias);\n\t }\n\t\n\t // we are in termination case (3) or (2) and return the appropriate thing.\n\t if (aBias == exports.LEAST_UPPER_BOUND) {\n\t return mid;\n\t } else {\n\t return aLow < 0 ? -1 : aLow;\n\t }\n\t }\n\t}\n\t\n\t/**\n\t * This is an implementation of binary search which will always try and return\n\t * the index of the closest element if there is no exact hit. This is because\n\t * mappings between original and generated line/col pairs are single points,\n\t * and there is an implicit region between each of them, so a miss just means\n\t * that you aren't on the very start of a region.\n\t *\n\t * @param aNeedle The element you are looking for.\n\t * @param aHaystack The array that is being searched.\n\t * @param aCompare A function which takes the needle and an element in the\n\t * array and returns -1, 0, or 1 depending on whether the needle is less\n\t * than, equal to, or greater than the element, respectively.\n\t * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or\n\t * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the\n\t * closest element that is smaller than or greater than the one we are\n\t * searching for, respectively, if the exact element cannot be found.\n\t * Defaults to 'binarySearch.GREATEST_LOWER_BOUND'.\n\t */\n\texports.search = function search(aNeedle, aHaystack, aCompare, aBias) {\n\t if (aHaystack.length === 0) {\n\t return -1;\n\t }\n\t\n\t var index = recursiveSearch(-1, aHaystack.length, aNeedle, aHaystack,\n\t aCompare, aBias || exports.GREATEST_LOWER_BOUND);\n\t if (index < 0) {\n\t return -1;\n\t }\n\t\n\t // We have found either the exact element, or the next-closest element than\n\t // the one we are searching for. However, there may be more than one such\n\t // element. Make sure we always return the smallest of these.\n\t while (index - 1 >= 0) {\n\t if (aCompare(aHaystack[index], aHaystack[index - 1], true) !== 0) {\n\t break;\n\t }\n\t --index;\n\t }\n\t\n\t return index;\n\t};\n\n\n/***/ }),\n/* 9 */\n/***/ (function(module, exports) {\n\n\t/* -*- Mode: js; js-indent-level: 2; -*- */\n\t/*\n\t * Copyright 2011 Mozilla Foundation and contributors\n\t * Licensed under the New BSD license. See LICENSE or:\n\t * http://opensource.org/licenses/BSD-3-Clause\n\t */\n\t\n\t// It turns out that some (most?) JavaScript engines don't self-host\n\t// `Array.prototype.sort`. This makes sense because C++ will likely remain\n\t// faster than JS when doing raw CPU-intensive sorting. However, when using a\n\t// custom comparator function, calling back and forth between the VM's C++ and\n\t// JIT'd JS is rather slow *and* loses JIT type information, resulting in\n\t// worse generated code for the comparator function than would be optimal. In\n\t// fact, when sorting with a comparator, these costs outweigh the benefits of\n\t// sorting in C++. By using our own JS-implemented Quick Sort (below), we get\n\t// a ~3500ms mean speed-up in `bench/bench.html`.\n\t\n\t/**\n\t * Swap the elements indexed by `x` and `y` in the array `ary`.\n\t *\n\t * @param {Array} ary\n\t * The array.\n\t * @param {Number} x\n\t * The index of the first item.\n\t * @param {Number} y\n\t * The index of the second item.\n\t */\n\tfunction swap(ary, x, y) {\n\t var temp = ary[x];\n\t ary[x] = ary[y];\n\t ary[y] = temp;\n\t}\n\t\n\t/**\n\t * Returns a random integer within the range `low .. high` inclusive.\n\t *\n\t * @param {Number} low\n\t * The lower bound on the range.\n\t * @param {Number} high\n\t * The upper bound on the range.\n\t */\n\tfunction randomIntInRange(low, high) {\n\t return Math.round(low + (Math.random() * (high - low)));\n\t}\n\t\n\t/**\n\t * The Quick Sort algorithm.\n\t *\n\t * @param {Array} ary\n\t * An array to sort.\n\t * @param {function} comparator\n\t * Function to use to compare two items.\n\t * @param {Number} p\n\t * Start index of the array\n\t * @param {Number} r\n\t * End index of the array\n\t */\n\tfunction doQuickSort(ary, comparator, p, r) {\n\t // If our lower bound is less than our upper bound, we (1) partition the\n\t // array into two pieces and (2) recurse on each half. If it is not, this is\n\t // the empty array and our base case.\n\t\n\t if (p < r) {\n\t // (1) Partitioning.\n\t //\n\t // The partitioning chooses a pivot between `p` and `r` and moves all\n\t // elements that are less than or equal to the pivot to the before it, and\n\t // all the elements that are greater than it after it. The effect is that\n\t // once partition is done, the pivot is in the exact place it will be when\n\t // the array is put in sorted order, and it will not need to be moved\n\t // again. This runs in O(n) time.\n\t\n\t // Always choose a random pivot so that an input array which is reverse\n\t // sorted does not cause O(n^2) running time.\n\t var pivotIndex = randomIntInRange(p, r);\n\t var i = p - 1;\n\t\n\t swap(ary, pivotIndex, r);\n\t var pivot = ary[r];\n\t\n\t // Immediately after `j` is incremented in this loop, the following hold\n\t // true:\n\t //\n\t // * Every element in `ary[p .. i]` is less than or equal to the pivot.\n\t //\n\t // * Every element in `ary[i+1 .. j-1]` is greater than the pivot.\n\t for (var j = p; j < r; j++) {\n\t if (comparator(ary[j], pivot) <= 0) {\n\t i += 1;\n\t swap(ary, i, j);\n\t }\n\t }\n\t\n\t swap(ary, i + 1, j);\n\t var q = i + 1;\n\t\n\t // (2) Recurse on each half.\n\t\n\t doQuickSort(ary, comparator, p, q - 1);\n\t doQuickSort(ary, comparator, q + 1, r);\n\t }\n\t}\n\t\n\t/**\n\t * Sort the given array in-place with the given comparator function.\n\t *\n\t * @param {Array} ary\n\t * An array to sort.\n\t * @param {function} comparator\n\t * Function to use to compare two items.\n\t */\n\texports.quickSort = function (ary, comparator) {\n\t doQuickSort(ary, comparator, 0, ary.length - 1);\n\t};\n\n\n/***/ }),\n/* 10 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\t/* -*- Mode: js; js-indent-level: 2; -*- */\n\t/*\n\t * Copyright 2011 Mozilla Foundation and contributors\n\t * Licensed under the New BSD license. See LICENSE or:\n\t * http://opensource.org/licenses/BSD-3-Clause\n\t */\n\t\n\tvar SourceMapGenerator = __webpack_require__(1).SourceMapGenerator;\n\tvar util = __webpack_require__(4);\n\t\n\t// Matches a Windows-style `\\r\\n` newline or a `\\n` newline used by all other\n\t// operating systems these days (capturing the result).\n\tvar REGEX_NEWLINE = /(\\r?\\n)/;\n\t\n\t// Newline character code for charCodeAt() comparisons\n\tvar NEWLINE_CODE = 10;\n\t\n\t// Private symbol for identifying `SourceNode`s when multiple versions of\n\t// the source-map library are loaded. This MUST NOT CHANGE across\n\t// versions!\n\tvar isSourceNode = \"$$$isSourceNode$$$\";\n\t\n\t/**\n\t * SourceNodes provide a way to abstract over interpolating/concatenating\n\t * snippets of generated JavaScript source code while maintaining the line and\n\t * column information associated with the original source code.\n\t *\n\t * @param aLine The original line number.\n\t * @param aColumn The original column number.\n\t * @param aSource The original source's filename.\n\t * @param aChunks Optional. An array of strings which are snippets of\n\t * generated JS, or other SourceNodes.\n\t * @param aName The original identifier.\n\t */\n\tfunction SourceNode(aLine, aColumn, aSource, aChunks, aName) {\n\t this.children = [];\n\t this.sourceContents = {};\n\t this.line = aLine == null ? null : aLine;\n\t this.column = aColumn == null ? null : aColumn;\n\t this.source = aSource == null ? null : aSource;\n\t this.name = aName == null ? null : aName;\n\t this[isSourceNode] = true;\n\t if (aChunks != null) this.add(aChunks);\n\t}\n\t\n\t/**\n\t * Creates a SourceNode from generated code and a SourceMapConsumer.\n\t *\n\t * @param aGeneratedCode The generated code\n\t * @param aSourceMapConsumer The SourceMap for the generated code\n\t * @param aRelativePath Optional. The path that relative sources in the\n\t * SourceMapConsumer should be relative to.\n\t */\n\tSourceNode.fromStringWithSourceMap =\n\t function SourceNode_fromStringWithSourceMap(aGeneratedCode, aSourceMapConsumer, aRelativePath) {\n\t // The SourceNode we want to fill with the generated code\n\t // and the SourceMap\n\t var node = new SourceNode();\n\t\n\t // All even indices of this array are one line of the generated code,\n\t // while all odd indices are the newlines between two adjacent lines\n\t // (since `REGEX_NEWLINE` captures its match).\n\t // Processed fragments are accessed by calling `shiftNextLine`.\n\t var remainingLines = aGeneratedCode.split(REGEX_NEWLINE);\n\t var remainingLinesIndex = 0;\n\t var shiftNextLine = function() {\n\t var lineContents = getNextLine();\n\t // The last line of a file might not have a newline.\n\t var newLine = getNextLine() || \"\";\n\t return lineContents + newLine;\n\t\n\t function getNextLine() {\n\t return remainingLinesIndex < remainingLines.length ?\n\t remainingLines[remainingLinesIndex++] : undefined;\n\t }\n\t };\n\t\n\t // We need to remember the position of \"remainingLines\"\n\t var lastGeneratedLine = 1, lastGeneratedColumn = 0;\n\t\n\t // The generate SourceNodes we need a code range.\n\t // To extract it current and last mapping is used.\n\t // Here we store the last mapping.\n\t var lastMapping = null;\n\t\n\t aSourceMapConsumer.eachMapping(function (mapping) {\n\t if (lastMapping !== null) {\n\t // We add the code from \"lastMapping\" to \"mapping\":\n\t // First check if there is a new line in between.\n\t if (lastGeneratedLine < mapping.generatedLine) {\n\t // Associate first line with \"lastMapping\"\n\t addMappingWithCode(lastMapping, shiftNextLine());\n\t lastGeneratedLine++;\n\t lastGeneratedColumn = 0;\n\t // The remaining code is added without mapping\n\t } else {\n\t // There is no new line in between.\n\t // Associate the code between \"lastGeneratedColumn\" and\n\t // \"mapping.generatedColumn\" with \"lastMapping\"\n\t var nextLine = remainingLines[remainingLinesIndex];\n\t var code = nextLine.substr(0, mapping.generatedColumn -\n\t lastGeneratedColumn);\n\t remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn -\n\t lastGeneratedColumn);\n\t lastGeneratedColumn = mapping.generatedColumn;\n\t addMappingWithCode(lastMapping, code);\n\t // No more remaining code, continue\n\t lastMapping = mapping;\n\t return;\n\t }\n\t }\n\t // We add the generated code until the first mapping\n\t // to the SourceNode without any mapping.\n\t // Each line is added as separate string.\n\t while (lastGeneratedLine < mapping.generatedLine) {\n\t node.add(shiftNextLine());\n\t lastGeneratedLine++;\n\t }\n\t if (lastGeneratedColumn < mapping.generatedColumn) {\n\t var nextLine = remainingLines[remainingLinesIndex];\n\t node.add(nextLine.substr(0, mapping.generatedColumn));\n\t remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn);\n\t lastGeneratedColumn = mapping.generatedColumn;\n\t }\n\t lastMapping = mapping;\n\t }, this);\n\t // We have processed all mappings.\n\t if (remainingLinesIndex < remainingLines.length) {\n\t if (lastMapping) {\n\t // Associate the remaining code in the current line with \"lastMapping\"\n\t addMappingWithCode(lastMapping, shiftNextLine());\n\t }\n\t // and add the remaining lines without any mapping\n\t node.add(remainingLines.splice(remainingLinesIndex).join(\"\"));\n\t }\n\t\n\t // Copy sourcesContent into SourceNode\n\t aSourceMapConsumer.sources.forEach(function (sourceFile) {\n\t var content = aSourceMapConsumer.sourceContentFor(sourceFile);\n\t if (content != null) {\n\t if (aRelativePath != null) {\n\t sourceFile = util.join(aRelativePath, sourceFile);\n\t }\n\t node.setSourceContent(sourceFile, content);\n\t }\n\t });\n\t\n\t return node;\n\t\n\t function addMappingWithCode(mapping, code) {\n\t if (mapping === null || mapping.source === undefined) {\n\t node.add(code);\n\t } else {\n\t var source = aRelativePath\n\t ? util.join(aRelativePath, mapping.source)\n\t : mapping.source;\n\t node.add(new SourceNode(mapping.originalLine,\n\t mapping.originalColumn,\n\t source,\n\t code,\n\t mapping.name));\n\t }\n\t }\n\t };\n\t\n\t/**\n\t * Add a chunk of generated JS to this source node.\n\t *\n\t * @param aChunk A string snippet of generated JS code, another instance of\n\t * SourceNode, or an array where each member is one of those things.\n\t */\n\tSourceNode.prototype.add = function SourceNode_add(aChunk) {\n\t if (Array.isArray(aChunk)) {\n\t aChunk.forEach(function (chunk) {\n\t this.add(chunk);\n\t }, this);\n\t }\n\t else if (aChunk[isSourceNode] || typeof aChunk === \"string\") {\n\t if (aChunk) {\n\t this.children.push(aChunk);\n\t }\n\t }\n\t else {\n\t throw new TypeError(\n\t \"Expected a SourceNode, string, or an array of SourceNodes and strings. Got \" + aChunk\n\t );\n\t }\n\t return this;\n\t};\n\t\n\t/**\n\t * Add a chunk of generated JS to the beginning of this source node.\n\t *\n\t * @param aChunk A string snippet of generated JS code, another instance of\n\t * SourceNode, or an array where each member is one of those things.\n\t */\n\tSourceNode.prototype.prepend = function SourceNode_prepend(aChunk) {\n\t if (Array.isArray(aChunk)) {\n\t for (var i = aChunk.length-1; i >= 0; i--) {\n\t this.prepend(aChunk[i]);\n\t }\n\t }\n\t else if (aChunk[isSourceNode] || typeof aChunk === \"string\") {\n\t this.children.unshift(aChunk);\n\t }\n\t else {\n\t throw new TypeError(\n\t \"Expected a SourceNode, string, or an array of SourceNodes and strings. Got \" + aChunk\n\t );\n\t }\n\t return this;\n\t};\n\t\n\t/**\n\t * Walk over the tree of JS snippets in this node and its children. The\n\t * walking function is called once for each snippet of JS and is passed that\n\t * snippet and the its original associated source's line/column location.\n\t *\n\t * @param aFn The traversal function.\n\t */\n\tSourceNode.prototype.walk = function SourceNode_walk(aFn) {\n\t var chunk;\n\t for (var i = 0, len = this.children.length; i < len; i++) {\n\t chunk = this.children[i];\n\t if (chunk[isSourceNode]) {\n\t chunk.walk(aFn);\n\t }\n\t else {\n\t if (chunk !== '') {\n\t aFn(chunk, { source: this.source,\n\t line: this.line,\n\t column: this.column,\n\t name: this.name });\n\t }\n\t }\n\t }\n\t};\n\t\n\t/**\n\t * Like `String.prototype.join` except for SourceNodes. Inserts `aStr` between\n\t * each of `this.children`.\n\t *\n\t * @param aSep The separator.\n\t */\n\tSourceNode.prototype.join = function SourceNode_join(aSep) {\n\t var newChildren;\n\t var i;\n\t var len = this.children.length;\n\t if (len > 0) {\n\t newChildren = [];\n\t for (i = 0; i < len-1; i++) {\n\t newChildren.push(this.children[i]);\n\t newChildren.push(aSep);\n\t }\n\t newChildren.push(this.children[i]);\n\t this.children = newChildren;\n\t }\n\t return this;\n\t};\n\t\n\t/**\n\t * Call String.prototype.replace on the very right-most source snippet. Useful\n\t * for trimming whitespace from the end of a source node, etc.\n\t *\n\t * @param aPattern The pattern to replace.\n\t * @param aReplacement The thing to replace the pattern with.\n\t */\n\tSourceNode.prototype.replaceRight = function SourceNode_replaceRight(aPattern, aReplacement) {\n\t var lastChild = this.children[this.children.length - 1];\n\t if (lastChild[isSourceNode]) {\n\t lastChild.replaceRight(aPattern, aReplacement);\n\t }\n\t else if (typeof lastChild === 'string') {\n\t this.children[this.children.length - 1] = lastChild.replace(aPattern, aReplacement);\n\t }\n\t else {\n\t this.children.push(''.replace(aPattern, aReplacement));\n\t }\n\t return this;\n\t};\n\t\n\t/**\n\t * Set the source content for a source file. This will be added to the SourceMapGenerator\n\t * in the sourcesContent field.\n\t *\n\t * @param aSourceFile The filename of the source file\n\t * @param aSourceContent The content of the source file\n\t */\n\tSourceNode.prototype.setSourceContent =\n\t function SourceNode_setSourceContent(aSourceFile, aSourceContent) {\n\t this.sourceContents[util.toSetString(aSourceFile)] = aSourceContent;\n\t };\n\t\n\t/**\n\t * Walk over the tree of SourceNodes. The walking function is called for each\n\t * source file content and is passed the filename and source content.\n\t *\n\t * @param aFn The traversal function.\n\t */\n\tSourceNode.prototype.walkSourceContents =\n\t function SourceNode_walkSourceContents(aFn) {\n\t for (var i = 0, len = this.children.length; i < len; i++) {\n\t if (this.children[i][isSourceNode]) {\n\t this.children[i].walkSourceContents(aFn);\n\t }\n\t }\n\t\n\t var sources = Object.keys(this.sourceContents);\n\t for (var i = 0, len = sources.length; i < len; i++) {\n\t aFn(util.fromSetString(sources[i]), this.sourceContents[sources[i]]);\n\t }\n\t };\n\t\n\t/**\n\t * Return the string representation of this source node. Walks over the tree\n\t * and concatenates all the various snippets together to one string.\n\t */\n\tSourceNode.prototype.toString = function SourceNode_toString() {\n\t var str = \"\";\n\t this.walk(function (chunk) {\n\t str += chunk;\n\t });\n\t return str;\n\t};\n\t\n\t/**\n\t * Returns the string representation of this source node along with a source\n\t * map.\n\t */\n\tSourceNode.prototype.toStringWithSourceMap = function SourceNode_toStringWithSourceMap(aArgs) {\n\t var generated = {\n\t code: \"\",\n\t line: 1,\n\t column: 0\n\t };\n\t var map = new SourceMapGenerator(aArgs);\n\t var sourceMappingActive = false;\n\t var lastOriginalSource = null;\n\t var lastOriginalLine = null;\n\t var lastOriginalColumn = null;\n\t var lastOriginalName = null;\n\t this.walk(function (chunk, original) {\n\t generated.code += chunk;\n\t if (original.source !== null\n\t && original.line !== null\n\t && original.column !== null) {\n\t if(lastOriginalSource !== original.source\n\t || lastOriginalLine !== original.line\n\t || lastOriginalColumn !== original.column\n\t || lastOriginalName !== original.name) {\n\t map.addMapping({\n\t source: original.source,\n\t original: {\n\t line: original.line,\n\t column: original.column\n\t },\n\t generated: {\n\t line: generated.line,\n\t column: generated.column\n\t },\n\t name: original.name\n\t });\n\t }\n\t lastOriginalSource = original.source;\n\t lastOriginalLine = original.line;\n\t lastOriginalColumn = original.column;\n\t lastOriginalName = original.name;\n\t sourceMappingActive = true;\n\t } else if (sourceMappingActive) {\n\t map.addMapping({\n\t generated: {\n\t line: generated.line,\n\t column: generated.column\n\t }\n\t });\n\t lastOriginalSource = null;\n\t sourceMappingActive = false;\n\t }\n\t for (var idx = 0, length = chunk.length; idx < length; idx++) {\n\t if (chunk.charCodeAt(idx) === NEWLINE_CODE) {\n\t generated.line++;\n\t generated.column = 0;\n\t // Mappings end at eol\n\t if (idx + 1 === length) {\n\t lastOriginalSource = null;\n\t sourceMappingActive = false;\n\t } else if (sourceMappingActive) {\n\t map.addMapping({\n\t source: original.source,\n\t original: {\n\t line: original.line,\n\t column: original.column\n\t },\n\t generated: {\n\t line: generated.line,\n\t column: generated.column\n\t },\n\t name: original.name\n\t });\n\t }\n\t } else {\n\t generated.column++;\n\t }\n\t }\n\t });\n\t this.walkSourceContents(function (sourceFile, sourceContent) {\n\t map.setSourceContent(sourceFile, sourceContent);\n\t });\n\t\n\t return { code: generated.code, map: map };\n\t};\n\t\n\texports.SourceNode = SourceNode;\n\n\n/***/ })\n/******/ ])\n});\n;\n\n\n// WEBPACK FOOTER //\n// source-map.min.js"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 42c329f865e32e011afb","/*\n * Copyright 2009-2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE.txt or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\nexports.SourceMapGenerator = require('./lib/source-map-generator').SourceMapGenerator;\nexports.SourceMapConsumer = require('./lib/source-map-consumer').SourceMapConsumer;\nexports.SourceNode = require('./lib/source-node').SourceNode;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./source-map.js\n// module id = 0\n// module chunks = 0","/* -*- Mode: js; js-indent-level: 2; -*- */\n/*\n * Copyright 2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\n\nvar base64VLQ = require('./base64-vlq');\nvar util = require('./util');\nvar ArraySet = require('./array-set').ArraySet;\nvar MappingList = require('./mapping-list').MappingList;\n\n/**\n * An instance of the SourceMapGenerator represents a source map which is\n * being built incrementally. You may pass an object with the following\n * properties:\n *\n * - file: The filename of the generated source.\n * - sourceRoot: A root for all relative URLs in this source map.\n */\nfunction SourceMapGenerator(aArgs) {\n if (!aArgs) {\n aArgs = {};\n }\n this._file = util.getArg(aArgs, 'file', null);\n this._sourceRoot = util.getArg(aArgs, 'sourceRoot', null);\n this._skipValidation = util.getArg(aArgs, 'skipValidation', false);\n this._sources = new ArraySet();\n this._names = new ArraySet();\n this._mappings = new MappingList();\n this._sourcesContents = null;\n}\n\nSourceMapGenerator.prototype._version = 3;\n\n/**\n * Creates a new SourceMapGenerator based on a SourceMapConsumer\n *\n * @param aSourceMapConsumer The SourceMap.\n */\nSourceMapGenerator.fromSourceMap =\n function SourceMapGenerator_fromSourceMap(aSourceMapConsumer) {\n var sourceRoot = aSourceMapConsumer.sourceRoot;\n var generator = new SourceMapGenerator({\n file: aSourceMapConsumer.file,\n sourceRoot: sourceRoot\n });\n aSourceMapConsumer.eachMapping(function (mapping) {\n var newMapping = {\n generated: {\n line: mapping.generatedLine,\n column: mapping.generatedColumn\n }\n };\n\n if (mapping.source != null) {\n newMapping.source = mapping.source;\n if (sourceRoot != null) {\n newMapping.source = util.relative(sourceRoot, newMapping.source);\n }\n\n newMapping.original = {\n line: mapping.originalLine,\n column: mapping.originalColumn\n };\n\n if (mapping.name != null) {\n newMapping.name = mapping.name;\n }\n }\n\n generator.addMapping(newMapping);\n });\n aSourceMapConsumer.sources.forEach(function (sourceFile) {\n var content = aSourceMapConsumer.sourceContentFor(sourceFile);\n if (content != null) {\n generator.setSourceContent(sourceFile, content);\n }\n });\n return generator;\n };\n\n/**\n * Add a single mapping from original source line and column to the generated\n * source's line and column for this source map being created. The mapping\n * object should have the following properties:\n *\n * - generated: An object with the generated line and column positions.\n * - original: An object with the original line and column positions.\n * - source: The original source file (relative to the sourceRoot).\n * - name: An optional original token name for this mapping.\n */\nSourceMapGenerator.prototype.addMapping =\n function SourceMapGenerator_addMapping(aArgs) {\n var generated = util.getArg(aArgs, 'generated');\n var original = util.getArg(aArgs, 'original', null);\n var source = util.getArg(aArgs, 'source', null);\n var name = util.getArg(aArgs, 'name', null);\n\n if (!this._skipValidation) {\n this._validateMapping(generated, original, source, name);\n }\n\n if (source != null) {\n source = String(source);\n if (!this._sources.has(source)) {\n this._sources.add(source);\n }\n }\n\n if (name != null) {\n name = String(name);\n if (!this._names.has(name)) {\n this._names.add(name);\n }\n }\n\n this._mappings.add({\n generatedLine: generated.line,\n generatedColumn: generated.column,\n originalLine: original != null && original.line,\n originalColumn: original != null && original.column,\n source: source,\n name: name\n });\n };\n\n/**\n * Set the source content for a source file.\n */\nSourceMapGenerator.prototype.setSourceContent =\n function SourceMapGenerator_setSourceContent(aSourceFile, aSourceContent) {\n var source = aSourceFile;\n if (this._sourceRoot != null) {\n source = util.relative(this._sourceRoot, source);\n }\n\n if (aSourceContent != null) {\n // Add the source content to the _sourcesContents map.\n // Create a new _sourcesContents map if the property is null.\n if (!this._sourcesContents) {\n this._sourcesContents = Object.create(null);\n }\n this._sourcesContents[util.toSetString(source)] = aSourceContent;\n } else if (this._sourcesContents) {\n // Remove the source file from the _sourcesContents map.\n // If the _sourcesContents map is empty, set the property to null.\n delete this._sourcesContents[util.toSetString(source)];\n if (Object.keys(this._sourcesContents).length === 0) {\n this._sourcesContents = null;\n }\n }\n };\n\n/**\n * Applies the mappings of a sub-source-map for a specific source file to the\n * source map being generated. Each mapping to the supplied source file is\n * rewritten using the supplied source map. Note: The resolution for the\n * resulting mappings is the minimium of this map and the supplied map.\n *\n * @param aSourceMapConsumer The source map to be applied.\n * @param aSourceFile Optional. The filename of the source file.\n * If omitted, SourceMapConsumer's file property will be used.\n * @param aSourceMapPath Optional. The dirname of the path to the source map\n * to be applied. If relative, it is relative to the SourceMapConsumer.\n * This parameter is needed when the two source maps aren't in the same\n * directory, and the source map to be applied contains relative source\n * paths. If so, those relative source paths need to be rewritten\n * relative to the SourceMapGenerator.\n */\nSourceMapGenerator.prototype.applySourceMap =\n function SourceMapGenerator_applySourceMap(aSourceMapConsumer, aSourceFile, aSourceMapPath) {\n var sourceFile = aSourceFile;\n // If aSourceFile is omitted, we will use the file property of the SourceMap\n if (aSourceFile == null) {\n if (aSourceMapConsumer.file == null) {\n throw new Error(\n 'SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, ' +\n 'or the source map\\'s \"file\" property. Both were omitted.'\n );\n }\n sourceFile = aSourceMapConsumer.file;\n }\n var sourceRoot = this._sourceRoot;\n // Make \"sourceFile\" relative if an absolute Url is passed.\n if (sourceRoot != null) {\n sourceFile = util.relative(sourceRoot, sourceFile);\n }\n // Applying the SourceMap can add and remove items from the sources and\n // the names array.\n var newSources = new ArraySet();\n var newNames = new ArraySet();\n\n // Find mappings for the \"sourceFile\"\n this._mappings.unsortedForEach(function (mapping) {\n if (mapping.source === sourceFile && mapping.originalLine != null) {\n // Check if it can be mapped by the source map, then update the mapping.\n var original = aSourceMapConsumer.originalPositionFor({\n line: mapping.originalLine,\n column: mapping.originalColumn\n });\n if (original.source != null) {\n // Copy mapping\n mapping.source = original.source;\n if (aSourceMapPath != null) {\n mapping.source = util.join(aSourceMapPath, mapping.source)\n }\n if (sourceRoot != null) {\n mapping.source = util.relative(sourceRoot, mapping.source);\n }\n mapping.originalLine = original.line;\n mapping.originalColumn = original.column;\n if (original.name != null) {\n mapping.name = original.name;\n }\n }\n }\n\n var source = mapping.source;\n if (source != null && !newSources.has(source)) {\n newSources.add(source);\n }\n\n var name = mapping.name;\n if (name != null && !newNames.has(name)) {\n newNames.add(name);\n }\n\n }, this);\n this._sources = newSources;\n this._names = newNames;\n\n // Copy sourcesContents of applied map.\n aSourceMapConsumer.sources.forEach(function (sourceFile) {\n var content = aSourceMapConsumer.sourceContentFor(sourceFile);\n if (content != null) {\n if (aSourceMapPath != null) {\n sourceFile = util.join(aSourceMapPath, sourceFile);\n }\n if (sourceRoot != null) {\n sourceFile = util.relative(sourceRoot, sourceFile);\n }\n this.setSourceContent(sourceFile, content);\n }\n }, this);\n };\n\n/**\n * A mapping can have one of the three levels of data:\n *\n * 1. Just the generated position.\n * 2. The Generated position, original position, and original source.\n * 3. Generated and original position, original source, as well as a name\n * token.\n *\n * To maintain consistency, we validate that any new mapping being added falls\n * in to one of these categories.\n */\nSourceMapGenerator.prototype._validateMapping =\n function SourceMapGenerator_validateMapping(aGenerated, aOriginal, aSource,\n aName) {\n // When aOriginal is truthy but has empty values for .line and .column,\n // it is most likely a programmer error. In this case we throw a very\n // specific error message to try to guide them the right way.\n // For example: https://github.com/Polymer/polymer-bundler/pull/519\n if (aOriginal && typeof aOriginal.line !== 'number' && typeof aOriginal.column !== 'number') {\n throw new Error(\n 'original.line and original.column are not numbers -- you probably meant to omit ' +\n 'the original mapping entirely and only map the generated position. If so, pass ' +\n 'null for the original mapping instead of an object with empty or null values.'\n );\n }\n\n if (aGenerated && 'line' in aGenerated && 'column' in aGenerated\n && aGenerated.line > 0 && aGenerated.column >= 0\n && !aOriginal && !aSource && !aName) {\n // Case 1.\n return;\n }\n else if (aGenerated && 'line' in aGenerated && 'column' in aGenerated\n && aOriginal && 'line' in aOriginal && 'column' in aOriginal\n && aGenerated.line > 0 && aGenerated.column >= 0\n && aOriginal.line > 0 && aOriginal.column >= 0\n && aSource) {\n // Cases 2 and 3.\n return;\n }\n else {\n throw new Error('Invalid mapping: ' + JSON.stringify({\n generated: aGenerated,\n source: aSource,\n original: aOriginal,\n name: aName\n }));\n }\n };\n\n/**\n * Serialize the accumulated mappings in to the stream of base 64 VLQs\n * specified by the source map format.\n */\nSourceMapGenerator.prototype._serializeMappings =\n function SourceMapGenerator_serializeMappings() {\n var previousGeneratedColumn = 0;\n var previousGeneratedLine = 1;\n var previousOriginalColumn = 0;\n var previousOriginalLine = 0;\n var previousName = 0;\n var previousSource = 0;\n var result = '';\n var next;\n var mapping;\n var nameIdx;\n var sourceIdx;\n\n var mappings = this._mappings.toArray();\n for (var i = 0, len = mappings.length; i < len; i++) {\n mapping = mappings[i];\n next = ''\n\n if (mapping.generatedLine !== previousGeneratedLine) {\n previousGeneratedColumn = 0;\n while (mapping.generatedLine !== previousGeneratedLine) {\n next += ';';\n previousGeneratedLine++;\n }\n }\n else {\n if (i > 0) {\n if (!util.compareByGeneratedPositionsInflated(mapping, mappings[i - 1])) {\n continue;\n }\n next += ',';\n }\n }\n\n next += base64VLQ.encode(mapping.generatedColumn\n - previousGeneratedColumn);\n previousGeneratedColumn = mapping.generatedColumn;\n\n if (mapping.source != null) {\n sourceIdx = this._sources.indexOf(mapping.source);\n next += base64VLQ.encode(sourceIdx - previousSource);\n previousSource = sourceIdx;\n\n // lines are stored 0-based in SourceMap spec version 3\n next += base64VLQ.encode(mapping.originalLine - 1\n - previousOriginalLine);\n previousOriginalLine = mapping.originalLine - 1;\n\n next += base64VLQ.encode(mapping.originalColumn\n - previousOriginalColumn);\n previousOriginalColumn = mapping.originalColumn;\n\n if (mapping.name != null) {\n nameIdx = this._names.indexOf(mapping.name);\n next += base64VLQ.encode(nameIdx - previousName);\n previousName = nameIdx;\n }\n }\n\n result += next;\n }\n\n return result;\n };\n\nSourceMapGenerator.prototype._generateSourcesContent =\n function SourceMapGenerator_generateSourcesContent(aSources, aSourceRoot) {\n return aSources.map(function (source) {\n if (!this._sourcesContents) {\n return null;\n }\n if (aSourceRoot != null) {\n source = util.relative(aSourceRoot, source);\n }\n var key = util.toSetString(source);\n return Object.prototype.hasOwnProperty.call(this._sourcesContents, key)\n ? this._sourcesContents[key]\n : null;\n }, this);\n };\n\n/**\n * Externalize the source map.\n */\nSourceMapGenerator.prototype.toJSON =\n function SourceMapGenerator_toJSON() {\n var map = {\n version: this._version,\n sources: this._sources.toArray(),\n names: this._names.toArray(),\n mappings: this._serializeMappings()\n };\n if (this._file != null) {\n map.file = this._file;\n }\n if (this._sourceRoot != null) {\n map.sourceRoot = this._sourceRoot;\n }\n if (this._sourcesContents) {\n map.sourcesContent = this._generateSourcesContent(map.sources, map.sourceRoot);\n }\n\n return map;\n };\n\n/**\n * Render the source map being generated to a string.\n */\nSourceMapGenerator.prototype.toString =\n function SourceMapGenerator_toString() {\n return JSON.stringify(this.toJSON());\n };\n\nexports.SourceMapGenerator = SourceMapGenerator;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./lib/source-map-generator.js\n// module id = 1\n// module chunks = 0","/* -*- Mode: js; js-indent-level: 2; -*- */\n/*\n * Copyright 2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n *\n * Based on the Base 64 VLQ implementation in Closure Compiler:\n * https://code.google.com/p/closure-compiler/source/browse/trunk/src/com/google/debugging/sourcemap/Base64VLQ.java\n *\n * Copyright 2011 The Closure Compiler Authors. All rights reserved.\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are\n * met:\n *\n * * Redistributions of source code must retain the above copyright\n * notice, this list of conditions and the following disclaimer.\n * * Redistributions in binary form must reproduce the above\n * copyright notice, this list of conditions and the following\n * disclaimer in the documentation and/or other materials provided\n * with the distribution.\n * * Neither the name of Google Inc. nor the names of its\n * contributors may be used to endorse or promote products derived\n * from this software without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n * \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\nvar base64 = require('./base64');\n\n// A single base 64 digit can contain 6 bits of data. For the base 64 variable\n// length quantities we use in the source map spec, the first bit is the sign,\n// the next four bits are the actual value, and the 6th bit is the\n// continuation bit. The continuation bit tells us whether there are more\n// digits in this value following this digit.\n//\n// Continuation\n// | Sign\n// | |\n// V V\n// 101011\n\nvar VLQ_BASE_SHIFT = 5;\n\n// binary: 100000\nvar VLQ_BASE = 1 << VLQ_BASE_SHIFT;\n\n// binary: 011111\nvar VLQ_BASE_MASK = VLQ_BASE - 1;\n\n// binary: 100000\nvar VLQ_CONTINUATION_BIT = VLQ_BASE;\n\n/**\n * Converts from a two-complement value to a value where the sign bit is\n * placed in the least significant bit. For example, as decimals:\n * 1 becomes 2 (10 binary), -1 becomes 3 (11 binary)\n * 2 becomes 4 (100 binary), -2 becomes 5 (101 binary)\n */\nfunction toVLQSigned(aValue) {\n return aValue < 0\n ? ((-aValue) << 1) + 1\n : (aValue << 1) + 0;\n}\n\n/**\n * Converts to a two-complement value from a value where the sign bit is\n * placed in the least significant bit. For example, as decimals:\n * 2 (10 binary) becomes 1, 3 (11 binary) becomes -1\n * 4 (100 binary) becomes 2, 5 (101 binary) becomes -2\n */\nfunction fromVLQSigned(aValue) {\n var isNegative = (aValue & 1) === 1;\n var shifted = aValue >> 1;\n return isNegative\n ? -shifted\n : shifted;\n}\n\n/**\n * Returns the base 64 VLQ encoded value.\n */\nexports.encode = function base64VLQ_encode(aValue) {\n var encoded = \"\";\n var digit;\n\n var vlq = toVLQSigned(aValue);\n\n do {\n digit = vlq & VLQ_BASE_MASK;\n vlq >>>= VLQ_BASE_SHIFT;\n if (vlq > 0) {\n // There are still more digits in this value, so we must make sure the\n // continuation bit is marked.\n digit |= VLQ_CONTINUATION_BIT;\n }\n encoded += base64.encode(digit);\n } while (vlq > 0);\n\n return encoded;\n};\n\n/**\n * Decodes the next base 64 VLQ value from the given string and returns the\n * value and the rest of the string via the out parameter.\n */\nexports.decode = function base64VLQ_decode(aStr, aIndex, aOutParam) {\n var strLen = aStr.length;\n var result = 0;\n var shift = 0;\n var continuation, digit;\n\n do {\n if (aIndex >= strLen) {\n throw new Error(\"Expected more digits in base 64 VLQ value.\");\n }\n\n digit = base64.decode(aStr.charCodeAt(aIndex++));\n if (digit === -1) {\n throw new Error(\"Invalid base64 digit: \" + aStr.charAt(aIndex - 1));\n }\n\n continuation = !!(digit & VLQ_CONTINUATION_BIT);\n digit &= VLQ_BASE_MASK;\n result = result + (digit << shift);\n shift += VLQ_BASE_SHIFT;\n } while (continuation);\n\n aOutParam.value = fromVLQSigned(result);\n aOutParam.rest = aIndex;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./lib/base64-vlq.js\n// module id = 2\n// module chunks = 0","/* -*- Mode: js; js-indent-level: 2; -*- */\n/*\n * Copyright 2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\n\nvar intToCharMap = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split('');\n\n/**\n * Encode an integer in the range of 0 to 63 to a single base 64 digit.\n */\nexports.encode = function (number) {\n if (0 <= number && number < intToCharMap.length) {\n return intToCharMap[number];\n }\n throw new TypeError(\"Must be between 0 and 63: \" + number);\n};\n\n/**\n * Decode a single base 64 character code digit to an integer. Returns -1 on\n * failure.\n */\nexports.decode = function (charCode) {\n var bigA = 65; // 'A'\n var bigZ = 90; // 'Z'\n\n var littleA = 97; // 'a'\n var littleZ = 122; // 'z'\n\n var zero = 48; // '0'\n var nine = 57; // '9'\n\n var plus = 43; // '+'\n var slash = 47; // '/'\n\n var littleOffset = 26;\n var numberOffset = 52;\n\n // 0 - 25: ABCDEFGHIJKLMNOPQRSTUVWXYZ\n if (bigA <= charCode && charCode <= bigZ) {\n return (charCode - bigA);\n }\n\n // 26 - 51: abcdefghijklmnopqrstuvwxyz\n if (littleA <= charCode && charCode <= littleZ) {\n return (charCode - littleA + littleOffset);\n }\n\n // 52 - 61: 0123456789\n if (zero <= charCode && charCode <= nine) {\n return (charCode - zero + numberOffset);\n }\n\n // 62: +\n if (charCode == plus) {\n return 62;\n }\n\n // 63: /\n if (charCode == slash) {\n return 63;\n }\n\n // Invalid base64 digit.\n return -1;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./lib/base64.js\n// module id = 3\n// module chunks = 0","/* -*- Mode: js; js-indent-level: 2; -*- */\n/*\n * Copyright 2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\n\n/**\n * This is a helper function for getting values from parameter/options\n * objects.\n *\n * @param args The object we are extracting values from\n * @param name The name of the property we are getting.\n * @param defaultValue An optional value to return if the property is missing\n * from the object. If this is not specified and the property is missing, an\n * error will be thrown.\n */\nfunction getArg(aArgs, aName, aDefaultValue) {\n if (aName in aArgs) {\n return aArgs[aName];\n } else if (arguments.length === 3) {\n return aDefaultValue;\n } else {\n throw new Error('\"' + aName + '\" is a required argument.');\n }\n}\nexports.getArg = getArg;\n\nvar urlRegexp = /^(?:([\\w+\\-.]+):)?\\/\\/(?:(\\w+:\\w+)@)?([\\w.]*)(?::(\\d+))?(\\S*)$/;\nvar dataUrlRegexp = /^data:.+\\,.+$/;\n\nfunction urlParse(aUrl) {\n var match = aUrl.match(urlRegexp);\n if (!match) {\n return null;\n }\n return {\n scheme: match[1],\n auth: match[2],\n host: match[3],\n port: match[4],\n path: match[5]\n };\n}\nexports.urlParse = urlParse;\n\nfunction urlGenerate(aParsedUrl) {\n var url = '';\n if (aParsedUrl.scheme) {\n url += aParsedUrl.scheme + ':';\n }\n url += '//';\n if (aParsedUrl.auth) {\n url += aParsedUrl.auth + '@';\n }\n if (aParsedUrl.host) {\n url += aParsedUrl.host;\n }\n if (aParsedUrl.port) {\n url += \":\" + aParsedUrl.port\n }\n if (aParsedUrl.path) {\n url += aParsedUrl.path;\n }\n return url;\n}\nexports.urlGenerate = urlGenerate;\n\n/**\n * Normalizes a path, or the path portion of a URL:\n *\n * - Replaces consecutive slashes with one slash.\n * - Removes unnecessary '.' parts.\n * - Removes unnecessary '/..' parts.\n *\n * Based on code in the Node.js 'path' core module.\n *\n * @param aPath The path or url to normalize.\n */\nfunction normalize(aPath) {\n var path = aPath;\n var url = urlParse(aPath);\n if (url) {\n if (!url.path) {\n return aPath;\n }\n path = url.path;\n }\n var isAbsolute = exports.isAbsolute(path);\n\n var parts = path.split(/\\/+/);\n for (var part, up = 0, i = parts.length - 1; i >= 0; i--) {\n part = parts[i];\n if (part === '.') {\n parts.splice(i, 1);\n } else if (part === '..') {\n up++;\n } else if (up > 0) {\n if (part === '') {\n // The first part is blank if the path is absolute. Trying to go\n // above the root is a no-op. Therefore we can remove all '..' parts\n // directly after the root.\n parts.splice(i + 1, up);\n up = 0;\n } else {\n parts.splice(i, 2);\n up--;\n }\n }\n }\n path = parts.join('/');\n\n if (path === '') {\n path = isAbsolute ? '/' : '.';\n }\n\n if (url) {\n url.path = path;\n return urlGenerate(url);\n }\n return path;\n}\nexports.normalize = normalize;\n\n/**\n * Joins two paths/URLs.\n *\n * @param aRoot The root path or URL.\n * @param aPath The path or URL to be joined with the root.\n *\n * - If aPath is a URL or a data URI, aPath is returned, unless aPath is a\n * scheme-relative URL: Then the scheme of aRoot, if any, is prepended\n * first.\n * - Otherwise aPath is a path. If aRoot is a URL, then its path portion\n * is updated with the result and aRoot is returned. Otherwise the result\n * is returned.\n * - If aPath is absolute, the result is aPath.\n * - Otherwise the two paths are joined with a slash.\n * - Joining for example 'http://' and 'www.example.com' is also supported.\n */\nfunction join(aRoot, aPath) {\n if (aRoot === \"\") {\n aRoot = \".\";\n }\n if (aPath === \"\") {\n aPath = \".\";\n }\n var aPathUrl = urlParse(aPath);\n var aRootUrl = urlParse(aRoot);\n if (aRootUrl) {\n aRoot = aRootUrl.path || '/';\n }\n\n // `join(foo, '//www.example.org')`\n if (aPathUrl && !aPathUrl.scheme) {\n if (aRootUrl) {\n aPathUrl.scheme = aRootUrl.scheme;\n }\n return urlGenerate(aPathUrl);\n }\n\n if (aPathUrl || aPath.match(dataUrlRegexp)) {\n return aPath;\n }\n\n // `join('http://', 'www.example.com')`\n if (aRootUrl && !aRootUrl.host && !aRootUrl.path) {\n aRootUrl.host = aPath;\n return urlGenerate(aRootUrl);\n }\n\n var joined = aPath.charAt(0) === '/'\n ? aPath\n : normalize(aRoot.replace(/\\/+$/, '') + '/' + aPath);\n\n if (aRootUrl) {\n aRootUrl.path = joined;\n return urlGenerate(aRootUrl);\n }\n return joined;\n}\nexports.join = join;\n\nexports.isAbsolute = function (aPath) {\n return aPath.charAt(0) === '/' || !!aPath.match(urlRegexp);\n};\n\n/**\n * Make a path relative to a URL or another path.\n *\n * @param aRoot The root path or URL.\n * @param aPath The path or URL to be made relative to aRoot.\n */\nfunction relative(aRoot, aPath) {\n if (aRoot === \"\") {\n aRoot = \".\";\n }\n\n aRoot = aRoot.replace(/\\/$/, '');\n\n // It is possible for the path to be above the root. In this case, simply\n // checking whether the root is a prefix of the path won't work. Instead, we\n // need to remove components from the root one by one, until either we find\n // a prefix that fits, or we run out of components to remove.\n var level = 0;\n while (aPath.indexOf(aRoot + '/') !== 0) {\n var index = aRoot.lastIndexOf(\"/\");\n if (index < 0) {\n return aPath;\n }\n\n // If the only part of the root that is left is the scheme (i.e. http://,\n // file:///, etc.), one or more slashes (/), or simply nothing at all, we\n // have exhausted all components, so the path is not relative to the root.\n aRoot = aRoot.slice(0, index);\n if (aRoot.match(/^([^\\/]+:\\/)?\\/*$/)) {\n return aPath;\n }\n\n ++level;\n }\n\n // Make sure we add a \"../\" for each component we removed from the root.\n return Array(level + 1).join(\"../\") + aPath.substr(aRoot.length + 1);\n}\nexports.relative = relative;\n\nvar supportsNullProto = (function () {\n var obj = Object.create(null);\n return !('__proto__' in obj);\n}());\n\nfunction identity (s) {\n return s;\n}\n\n/**\n * Because behavior goes wacky when you set `__proto__` on objects, we\n * have to prefix all the strings in our set with an arbitrary character.\n *\n * See https://github.com/mozilla/source-map/pull/31 and\n * https://github.com/mozilla/source-map/issues/30\n *\n * @param String aStr\n */\nfunction toSetString(aStr) {\n if (isProtoString(aStr)) {\n return '$' + aStr;\n }\n\n return aStr;\n}\nexports.toSetString = supportsNullProto ? identity : toSetString;\n\nfunction fromSetString(aStr) {\n if (isProtoString(aStr)) {\n return aStr.slice(1);\n }\n\n return aStr;\n}\nexports.fromSetString = supportsNullProto ? identity : fromSetString;\n\nfunction isProtoString(s) {\n if (!s) {\n return false;\n }\n\n var length = s.length;\n\n if (length < 9 /* \"__proto__\".length */) {\n return false;\n }\n\n if (s.charCodeAt(length - 1) !== 95 /* '_' */ ||\n s.charCodeAt(length - 2) !== 95 /* '_' */ ||\n s.charCodeAt(length - 3) !== 111 /* 'o' */ ||\n s.charCodeAt(length - 4) !== 116 /* 't' */ ||\n s.charCodeAt(length - 5) !== 111 /* 'o' */ ||\n s.charCodeAt(length - 6) !== 114 /* 'r' */ ||\n s.charCodeAt(length - 7) !== 112 /* 'p' */ ||\n s.charCodeAt(length - 8) !== 95 /* '_' */ ||\n s.charCodeAt(length - 9) !== 95 /* '_' */) {\n return false;\n }\n\n for (var i = length - 10; i >= 0; i--) {\n if (s.charCodeAt(i) !== 36 /* '$' */) {\n return false;\n }\n }\n\n return true;\n}\n\n/**\n * Comparator between two mappings where the original positions are compared.\n *\n * Optionally pass in `true` as `onlyCompareGenerated` to consider two\n * mappings with the same original source/line/column, but different generated\n * line and column the same. Useful when searching for a mapping with a\n * stubbed out mapping.\n */\nfunction compareByOriginalPositions(mappingA, mappingB, onlyCompareOriginal) {\n var cmp = mappingA.source - mappingB.source;\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.originalLine - mappingB.originalLine;\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.originalColumn - mappingB.originalColumn;\n if (cmp !== 0 || onlyCompareOriginal) {\n return cmp;\n }\n\n cmp = mappingA.generatedColumn - mappingB.generatedColumn;\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.generatedLine - mappingB.generatedLine;\n if (cmp !== 0) {\n return cmp;\n }\n\n return mappingA.name - mappingB.name;\n}\nexports.compareByOriginalPositions = compareByOriginalPositions;\n\n/**\n * Comparator between two mappings with deflated source and name indices where\n * the generated positions are compared.\n *\n * Optionally pass in `true` as `onlyCompareGenerated` to consider two\n * mappings with the same generated line and column, but different\n * source/name/original line and column the same. Useful when searching for a\n * mapping with a stubbed out mapping.\n */\nfunction compareByGeneratedPositionsDeflated(mappingA, mappingB, onlyCompareGenerated) {\n var cmp = mappingA.generatedLine - mappingB.generatedLine;\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.generatedColumn - mappingB.generatedColumn;\n if (cmp !== 0 || onlyCompareGenerated) {\n return cmp;\n }\n\n cmp = mappingA.source - mappingB.source;\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.originalLine - mappingB.originalLine;\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.originalColumn - mappingB.originalColumn;\n if (cmp !== 0) {\n return cmp;\n }\n\n return mappingA.name - mappingB.name;\n}\nexports.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated;\n\nfunction strcmp(aStr1, aStr2) {\n if (aStr1 === aStr2) {\n return 0;\n }\n\n if (aStr1 > aStr2) {\n return 1;\n }\n\n return -1;\n}\n\n/**\n * Comparator between two mappings with inflated source and name strings where\n * the generated positions are compared.\n */\nfunction compareByGeneratedPositionsInflated(mappingA, mappingB) {\n var cmp = mappingA.generatedLine - mappingB.generatedLine;\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.generatedColumn - mappingB.generatedColumn;\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = strcmp(mappingA.source, mappingB.source);\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.originalLine - mappingB.originalLine;\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.originalColumn - mappingB.originalColumn;\n if (cmp !== 0) {\n return cmp;\n }\n\n return strcmp(mappingA.name, mappingB.name);\n}\nexports.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./lib/util.js\n// module id = 4\n// module chunks = 0","/* -*- Mode: js; js-indent-level: 2; -*- */\n/*\n * Copyright 2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\n\nvar util = require('./util');\nvar has = Object.prototype.hasOwnProperty;\nvar hasNativeMap = typeof Map !== \"undefined\";\n\n/**\n * A data structure which is a combination of an array and a set. Adding a new\n * member is O(1), testing for membership is O(1), and finding the index of an\n * element is O(1). Removing elements from the set is not supported. Only\n * strings are supported for membership.\n */\nfunction ArraySet() {\n this._array = [];\n this._set = hasNativeMap ? new Map() : Object.create(null);\n}\n\n/**\n * Static method for creating ArraySet instances from an existing array.\n */\nArraySet.fromArray = function ArraySet_fromArray(aArray, aAllowDuplicates) {\n var set = new ArraySet();\n for (var i = 0, len = aArray.length; i < len; i++) {\n set.add(aArray[i], aAllowDuplicates);\n }\n return set;\n};\n\n/**\n * Return how many unique items are in this ArraySet. If duplicates have been\n * added, than those do not count towards the size.\n *\n * @returns Number\n */\nArraySet.prototype.size = function ArraySet_size() {\n return hasNativeMap ? this._set.size : Object.getOwnPropertyNames(this._set).length;\n};\n\n/**\n * Add the given string to this set.\n *\n * @param String aStr\n */\nArraySet.prototype.add = function ArraySet_add(aStr, aAllowDuplicates) {\n var sStr = hasNativeMap ? aStr : util.toSetString(aStr);\n var isDuplicate = hasNativeMap ? this.has(aStr) : has.call(this._set, sStr);\n var idx = this._array.length;\n if (!isDuplicate || aAllowDuplicates) {\n this._array.push(aStr);\n }\n if (!isDuplicate) {\n if (hasNativeMap) {\n this._set.set(aStr, idx);\n } else {\n this._set[sStr] = idx;\n }\n }\n};\n\n/**\n * Is the given string a member of this set?\n *\n * @param String aStr\n */\nArraySet.prototype.has = function ArraySet_has(aStr) {\n if (hasNativeMap) {\n return this._set.has(aStr);\n } else {\n var sStr = util.toSetString(aStr);\n return has.call(this._set, sStr);\n }\n};\n\n/**\n * What is the index of the given string in the array?\n *\n * @param String aStr\n */\nArraySet.prototype.indexOf = function ArraySet_indexOf(aStr) {\n if (hasNativeMap) {\n var idx = this._set.get(aStr);\n if (idx >= 0) {\n return idx;\n }\n } else {\n var sStr = util.toSetString(aStr);\n if (has.call(this._set, sStr)) {\n return this._set[sStr];\n }\n }\n\n throw new Error('\"' + aStr + '\" is not in the set.');\n};\n\n/**\n * What is the element at the given index?\n *\n * @param Number aIdx\n */\nArraySet.prototype.at = function ArraySet_at(aIdx) {\n if (aIdx >= 0 && aIdx < this._array.length) {\n return this._array[aIdx];\n }\n throw new Error('No element indexed by ' + aIdx);\n};\n\n/**\n * Returns the array representation of this set (which has the proper indices\n * indicated by indexOf). Note that this is a copy of the internal array used\n * for storing the members so that no one can mess with internal state.\n */\nArraySet.prototype.toArray = function ArraySet_toArray() {\n return this._array.slice();\n};\n\nexports.ArraySet = ArraySet;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./lib/array-set.js\n// module id = 5\n// module chunks = 0","/* -*- Mode: js; js-indent-level: 2; -*- */\n/*\n * Copyright 2014 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\n\nvar util = require('./util');\n\n/**\n * Determine whether mappingB is after mappingA with respect to generated\n * position.\n */\nfunction generatedPositionAfter(mappingA, mappingB) {\n // Optimized for most common case\n var lineA = mappingA.generatedLine;\n var lineB = mappingB.generatedLine;\n var columnA = mappingA.generatedColumn;\n var columnB = mappingB.generatedColumn;\n return lineB > lineA || lineB == lineA && columnB >= columnA ||\n util.compareByGeneratedPositionsInflated(mappingA, mappingB) <= 0;\n}\n\n/**\n * A data structure to provide a sorted view of accumulated mappings in a\n * performance conscious manner. It trades a neglibable overhead in general\n * case for a large speedup in case of mappings being added in order.\n */\nfunction MappingList() {\n this._array = [];\n this._sorted = true;\n // Serves as infimum\n this._last = {generatedLine: -1, generatedColumn: 0};\n}\n\n/**\n * Iterate through internal items. This method takes the same arguments that\n * `Array.prototype.forEach` takes.\n *\n * NOTE: The order of the mappings is NOT guaranteed.\n */\nMappingList.prototype.unsortedForEach =\n function MappingList_forEach(aCallback, aThisArg) {\n this._array.forEach(aCallback, aThisArg);\n };\n\n/**\n * Add the given source mapping.\n *\n * @param Object aMapping\n */\nMappingList.prototype.add = function MappingList_add(aMapping) {\n if (generatedPositionAfter(this._last, aMapping)) {\n this._last = aMapping;\n this._array.push(aMapping);\n } else {\n this._sorted = false;\n this._array.push(aMapping);\n }\n};\n\n/**\n * Returns the flat, sorted array of mappings. The mappings are sorted by\n * generated position.\n *\n * WARNING: This method returns internal data without copying, for\n * performance. The return value must NOT be mutated, and should be treated as\n * an immutable borrow. If you want to take ownership, you must make your own\n * copy.\n */\nMappingList.prototype.toArray = function MappingList_toArray() {\n if (!this._sorted) {\n this._array.sort(util.compareByGeneratedPositionsInflated);\n this._sorted = true;\n }\n return this._array;\n};\n\nexports.MappingList = MappingList;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./lib/mapping-list.js\n// module id = 6\n// module chunks = 0","/* -*- Mode: js; js-indent-level: 2; -*- */\n/*\n * Copyright 2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\n\nvar util = require('./util');\nvar binarySearch = require('./binary-search');\nvar ArraySet = require('./array-set').ArraySet;\nvar base64VLQ = require('./base64-vlq');\nvar quickSort = require('./quick-sort').quickSort;\n\nfunction SourceMapConsumer(aSourceMap) {\n var sourceMap = aSourceMap;\n if (typeof aSourceMap === 'string') {\n sourceMap = JSON.parse(aSourceMap.replace(/^\\)\\]\\}'/, ''));\n }\n\n return sourceMap.sections != null\n ? new IndexedSourceMapConsumer(sourceMap)\n : new BasicSourceMapConsumer(sourceMap);\n}\n\nSourceMapConsumer.fromSourceMap = function(aSourceMap) {\n return BasicSourceMapConsumer.fromSourceMap(aSourceMap);\n}\n\n/**\n * The version of the source mapping spec that we are consuming.\n */\nSourceMapConsumer.prototype._version = 3;\n\n// `__generatedMappings` and `__originalMappings` are arrays that hold the\n// parsed mapping coordinates from the source map's \"mappings\" attribute. They\n// are lazily instantiated, accessed via the `_generatedMappings` and\n// `_originalMappings` getters respectively, and we only parse the mappings\n// and create these arrays once queried for a source location. We jump through\n// these hoops because there can be many thousands of mappings, and parsing\n// them is expensive, so we only want to do it if we must.\n//\n// Each object in the arrays is of the form:\n//\n// {\n// generatedLine: The line number in the generated code,\n// generatedColumn: The column number in the generated code,\n// source: The path to the original source file that generated this\n// chunk of code,\n// originalLine: The line number in the original source that\n// corresponds to this chunk of generated code,\n// originalColumn: The column number in the original source that\n// corresponds to this chunk of generated code,\n// name: The name of the original symbol which generated this chunk of\n// code.\n// }\n//\n// All properties except for `generatedLine` and `generatedColumn` can be\n// `null`.\n//\n// `_generatedMappings` is ordered by the generated positions.\n//\n// `_originalMappings` is ordered by the original positions.\n\nSourceMapConsumer.prototype.__generatedMappings = null;\nObject.defineProperty(SourceMapConsumer.prototype, '_generatedMappings', {\n get: function () {\n if (!this.__generatedMappings) {\n this._parseMappings(this._mappings, this.sourceRoot);\n }\n\n return this.__generatedMappings;\n }\n});\n\nSourceMapConsumer.prototype.__originalMappings = null;\nObject.defineProperty(SourceMapConsumer.prototype, '_originalMappings', {\n get: function () {\n if (!this.__originalMappings) {\n this._parseMappings(this._mappings, this.sourceRoot);\n }\n\n return this.__originalMappings;\n }\n});\n\nSourceMapConsumer.prototype._charIsMappingSeparator =\n function SourceMapConsumer_charIsMappingSeparator(aStr, index) {\n var c = aStr.charAt(index);\n return c === \";\" || c === \",\";\n };\n\n/**\n * Parse the mappings in a string in to a data structure which we can easily\n * query (the ordered arrays in the `this.__generatedMappings` and\n * `this.__originalMappings` properties).\n */\nSourceMapConsumer.prototype._parseMappings =\n function SourceMapConsumer_parseMappings(aStr, aSourceRoot) {\n throw new Error(\"Subclasses must implement _parseMappings\");\n };\n\nSourceMapConsumer.GENERATED_ORDER = 1;\nSourceMapConsumer.ORIGINAL_ORDER = 2;\n\nSourceMapConsumer.GREATEST_LOWER_BOUND = 1;\nSourceMapConsumer.LEAST_UPPER_BOUND = 2;\n\n/**\n * Iterate over each mapping between an original source/line/column and a\n * generated line/column in this source map.\n *\n * @param Function aCallback\n * The function that is called with each mapping.\n * @param Object aContext\n * Optional. If specified, this object will be the value of `this` every\n * time that `aCallback` is called.\n * @param aOrder\n * Either `SourceMapConsumer.GENERATED_ORDER` or\n * `SourceMapConsumer.ORIGINAL_ORDER`. Specifies whether you want to\n * iterate over the mappings sorted by the generated file's line/column\n * order or the original's source/line/column order, respectively. Defaults to\n * `SourceMapConsumer.GENERATED_ORDER`.\n */\nSourceMapConsumer.prototype.eachMapping =\n function SourceMapConsumer_eachMapping(aCallback, aContext, aOrder) {\n var context = aContext || null;\n var order = aOrder || SourceMapConsumer.GENERATED_ORDER;\n\n var mappings;\n switch (order) {\n case SourceMapConsumer.GENERATED_ORDER:\n mappings = this._generatedMappings;\n break;\n case SourceMapConsumer.ORIGINAL_ORDER:\n mappings = this._originalMappings;\n break;\n default:\n throw new Error(\"Unknown order of iteration.\");\n }\n\n var sourceRoot = this.sourceRoot;\n mappings.map(function (mapping) {\n var source = mapping.source === null ? null : this._sources.at(mapping.source);\n if (source != null && sourceRoot != null) {\n source = util.join(sourceRoot, source);\n }\n return {\n source: source,\n generatedLine: mapping.generatedLine,\n generatedColumn: mapping.generatedColumn,\n originalLine: mapping.originalLine,\n originalColumn: mapping.originalColumn,\n name: mapping.name === null ? null : this._names.at(mapping.name)\n };\n }, this).forEach(aCallback, context);\n };\n\n/**\n * Returns all generated line and column information for the original source,\n * line, and column provided. If no column is provided, returns all mappings\n * corresponding to a either the line we are searching for or the next\n * closest line that has any mappings. Otherwise, returns all mappings\n * corresponding to the given line and either the column we are searching for\n * or the next closest column that has any offsets.\n *\n * The only argument is an object with the following properties:\n *\n * - source: The filename of the original source.\n * - line: The line number in the original source.\n * - column: Optional. the column number in the original source.\n *\n * and an array of objects is returned, each with the following properties:\n *\n * - line: The line number in the generated source, or null.\n * - column: The column number in the generated source, or null.\n */\nSourceMapConsumer.prototype.allGeneratedPositionsFor =\n function SourceMapConsumer_allGeneratedPositionsFor(aArgs) {\n var line = util.getArg(aArgs, 'line');\n\n // When there is no exact match, BasicSourceMapConsumer.prototype._findMapping\n // returns the index of the closest mapping less than the needle. By\n // setting needle.originalColumn to 0, we thus find the last mapping for\n // the given line, provided such a mapping exists.\n var needle = {\n source: util.getArg(aArgs, 'source'),\n originalLine: line,\n originalColumn: util.getArg(aArgs, 'column', 0)\n };\n\n if (this.sourceRoot != null) {\n needle.source = util.relative(this.sourceRoot, needle.source);\n }\n if (!this._sources.has(needle.source)) {\n return [];\n }\n needle.source = this._sources.indexOf(needle.source);\n\n var mappings = [];\n\n var index = this._findMapping(needle,\n this._originalMappings,\n \"originalLine\",\n \"originalColumn\",\n util.compareByOriginalPositions,\n binarySearch.LEAST_UPPER_BOUND);\n if (index >= 0) {\n var mapping = this._originalMappings[index];\n\n if (aArgs.column === undefined) {\n var originalLine = mapping.originalLine;\n\n // Iterate until either we run out of mappings, or we run into\n // a mapping for a different line than the one we found. Since\n // mappings are sorted, this is guaranteed to find all mappings for\n // the line we found.\n while (mapping && mapping.originalLine === originalLine) {\n mappings.push({\n line: util.getArg(mapping, 'generatedLine', null),\n column: util.getArg(mapping, 'generatedColumn', null),\n lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null)\n });\n\n mapping = this._originalMappings[++index];\n }\n } else {\n var originalColumn = mapping.originalColumn;\n\n // Iterate until either we run out of mappings, or we run into\n // a mapping for a different line than the one we were searching for.\n // Since mappings are sorted, this is guaranteed to find all mappings for\n // the line we are searching for.\n while (mapping &&\n mapping.originalLine === line &&\n mapping.originalColumn == originalColumn) {\n mappings.push({\n line: util.getArg(mapping, 'generatedLine', null),\n column: util.getArg(mapping, 'generatedColumn', null),\n lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null)\n });\n\n mapping = this._originalMappings[++index];\n }\n }\n }\n\n return mappings;\n };\n\nexports.SourceMapConsumer = SourceMapConsumer;\n\n/**\n * A BasicSourceMapConsumer instance represents a parsed source map which we can\n * query for information about the original file positions by giving it a file\n * position in the generated source.\n *\n * The only parameter is the raw source map (either as a JSON string, or\n * already parsed to an object). According to the spec, source maps have the\n * following attributes:\n *\n * - version: Which version of the source map spec this map is following.\n * - sources: An array of URLs to the original source files.\n * - names: An array of identifiers which can be referrenced by individual mappings.\n * - sourceRoot: Optional. The URL root from which all sources are relative.\n * - sourcesContent: Optional. An array of contents of the original source files.\n * - mappings: A string of base64 VLQs which contain the actual mappings.\n * - file: Optional. The generated file this source map is associated with.\n *\n * Here is an example source map, taken from the source map spec[0]:\n *\n * {\n * version : 3,\n * file: \"out.js\",\n * sourceRoot : \"\",\n * sources: [\"foo.js\", \"bar.js\"],\n * names: [\"src\", \"maps\", \"are\", \"fun\"],\n * mappings: \"AA,AB;;ABCDE;\"\n * }\n *\n * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?pli=1#\n */\nfunction BasicSourceMapConsumer(aSourceMap) {\n var sourceMap = aSourceMap;\n if (typeof aSourceMap === 'string') {\n sourceMap = JSON.parse(aSourceMap.replace(/^\\)\\]\\}'/, ''));\n }\n\n var version = util.getArg(sourceMap, 'version');\n var sources = util.getArg(sourceMap, 'sources');\n // Sass 3.3 leaves out the 'names' array, so we deviate from the spec (which\n // requires the array) to play nice here.\n var names = util.getArg(sourceMap, 'names', []);\n var sourceRoot = util.getArg(sourceMap, 'sourceRoot', null);\n var sourcesContent = util.getArg(sourceMap, 'sourcesContent', null);\n var mappings = util.getArg(sourceMap, 'mappings');\n var file = util.getArg(sourceMap, 'file', null);\n\n // Once again, Sass deviates from the spec and supplies the version as a\n // string rather than a number, so we use loose equality checking here.\n if (version != this._version) {\n throw new Error('Unsupported version: ' + version);\n }\n\n sources = sources\n .map(String)\n // Some source maps produce relative source paths like \"./foo.js\" instead of\n // \"foo.js\". Normalize these first so that future comparisons will succeed.\n // See bugzil.la/1090768.\n .map(util.normalize)\n // Always ensure that absolute sources are internally stored relative to\n // the source root, if the source root is absolute. Not doing this would\n // be particularly problematic when the source root is a prefix of the\n // source (valid, but why??). See github issue #199 and bugzil.la/1188982.\n .map(function (source) {\n return sourceRoot && util.isAbsolute(sourceRoot) && util.isAbsolute(source)\n ? util.relative(sourceRoot, source)\n : source;\n });\n\n // Pass `true` below to allow duplicate names and sources. While source maps\n // are intended to be compressed and deduplicated, the TypeScript compiler\n // sometimes generates source maps with duplicates in them. See Github issue\n // #72 and bugzil.la/889492.\n this._names = ArraySet.fromArray(names.map(String), true);\n this._sources = ArraySet.fromArray(sources, true);\n\n this.sourceRoot = sourceRoot;\n this.sourcesContent = sourcesContent;\n this._mappings = mappings;\n this.file = file;\n}\n\nBasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype);\nBasicSourceMapConsumer.prototype.consumer = SourceMapConsumer;\n\n/**\n * Create a BasicSourceMapConsumer from a SourceMapGenerator.\n *\n * @param SourceMapGenerator aSourceMap\n * The source map that will be consumed.\n * @returns BasicSourceMapConsumer\n */\nBasicSourceMapConsumer.fromSourceMap =\n function SourceMapConsumer_fromSourceMap(aSourceMap) {\n var smc = Object.create(BasicSourceMapConsumer.prototype);\n\n var names = smc._names = ArraySet.fromArray(aSourceMap._names.toArray(), true);\n var sources = smc._sources = ArraySet.fromArray(aSourceMap._sources.toArray(), true);\n smc.sourceRoot = aSourceMap._sourceRoot;\n smc.sourcesContent = aSourceMap._generateSourcesContent(smc._sources.toArray(),\n smc.sourceRoot);\n smc.file = aSourceMap._file;\n\n // Because we are modifying the entries (by converting string sources and\n // names to indices into the sources and names ArraySets), we have to make\n // a copy of the entry or else bad things happen. Shared mutable state\n // strikes again! See github issue #191.\n\n var generatedMappings = aSourceMap._mappings.toArray().slice();\n var destGeneratedMappings = smc.__generatedMappings = [];\n var destOriginalMappings = smc.__originalMappings = [];\n\n for (var i = 0, length = generatedMappings.length; i < length; i++) {\n var srcMapping = generatedMappings[i];\n var destMapping = new Mapping;\n destMapping.generatedLine = srcMapping.generatedLine;\n destMapping.generatedColumn = srcMapping.generatedColumn;\n\n if (srcMapping.source) {\n destMapping.source = sources.indexOf(srcMapping.source);\n destMapping.originalLine = srcMapping.originalLine;\n destMapping.originalColumn = srcMapping.originalColumn;\n\n if (srcMapping.name) {\n destMapping.name = names.indexOf(srcMapping.name);\n }\n\n destOriginalMappings.push(destMapping);\n }\n\n destGeneratedMappings.push(destMapping);\n }\n\n quickSort(smc.__originalMappings, util.compareByOriginalPositions);\n\n return smc;\n };\n\n/**\n * The version of the source mapping spec that we are consuming.\n */\nBasicSourceMapConsumer.prototype._version = 3;\n\n/**\n * The list of original sources.\n */\nObject.defineProperty(BasicSourceMapConsumer.prototype, 'sources', {\n get: function () {\n return this._sources.toArray().map(function (s) {\n return this.sourceRoot != null ? util.join(this.sourceRoot, s) : s;\n }, this);\n }\n});\n\n/**\n * Provide the JIT with a nice shape / hidden class.\n */\nfunction Mapping() {\n this.generatedLine = 0;\n this.generatedColumn = 0;\n this.source = null;\n this.originalLine = null;\n this.originalColumn = null;\n this.name = null;\n}\n\n/**\n * Parse the mappings in a string in to a data structure which we can easily\n * query (the ordered arrays in the `this.__generatedMappings` and\n * `this.__originalMappings` properties).\n */\nBasicSourceMapConsumer.prototype._parseMappings =\n function SourceMapConsumer_parseMappings(aStr, aSourceRoot) {\n var generatedLine = 1;\n var previousGeneratedColumn = 0;\n var previousOriginalLine = 0;\n var previousOriginalColumn = 0;\n var previousSource = 0;\n var previousName = 0;\n var length = aStr.length;\n var index = 0;\n var cachedSegments = {};\n var temp = {};\n var originalMappings = [];\n var generatedMappings = [];\n var mapping, str, segment, end, value;\n\n while (index < length) {\n if (aStr.charAt(index) === ';') {\n generatedLine++;\n index++;\n previousGeneratedColumn = 0;\n }\n else if (aStr.charAt(index) === ',') {\n index++;\n }\n else {\n mapping = new Mapping();\n mapping.generatedLine = generatedLine;\n\n // Because each offset is encoded relative to the previous one,\n // many segments often have the same encoding. We can exploit this\n // fact by caching the parsed variable length fields of each segment,\n // allowing us to avoid a second parse if we encounter the same\n // segment again.\n for (end = index; end < length; end++) {\n if (this._charIsMappingSeparator(aStr, end)) {\n break;\n }\n }\n str = aStr.slice(index, end);\n\n segment = cachedSegments[str];\n if (segment) {\n index += str.length;\n } else {\n segment = [];\n while (index < end) {\n base64VLQ.decode(aStr, index, temp);\n value = temp.value;\n index = temp.rest;\n segment.push(value);\n }\n\n if (segment.length === 2) {\n throw new Error('Found a source, but no line and column');\n }\n\n if (segment.length === 3) {\n throw new Error('Found a source and line, but no column');\n }\n\n cachedSegments[str] = segment;\n }\n\n // Generated column.\n mapping.generatedColumn = previousGeneratedColumn + segment[0];\n previousGeneratedColumn = mapping.generatedColumn;\n\n if (segment.length > 1) {\n // Original source.\n mapping.source = previousSource + segment[1];\n previousSource += segment[1];\n\n // Original line.\n mapping.originalLine = previousOriginalLine + segment[2];\n previousOriginalLine = mapping.originalLine;\n // Lines are stored 0-based\n mapping.originalLine += 1;\n\n // Original column.\n mapping.originalColumn = previousOriginalColumn + segment[3];\n previousOriginalColumn = mapping.originalColumn;\n\n if (segment.length > 4) {\n // Original name.\n mapping.name = previousName + segment[4];\n previousName += segment[4];\n }\n }\n\n generatedMappings.push(mapping);\n if (typeof mapping.originalLine === 'number') {\n originalMappings.push(mapping);\n }\n }\n }\n\n quickSort(generatedMappings, util.compareByGeneratedPositionsDeflated);\n this.__generatedMappings = generatedMappings;\n\n quickSort(originalMappings, util.compareByOriginalPositions);\n this.__originalMappings = originalMappings;\n };\n\n/**\n * Find the mapping that best matches the hypothetical \"needle\" mapping that\n * we are searching for in the given \"haystack\" of mappings.\n */\nBasicSourceMapConsumer.prototype._findMapping =\n function SourceMapConsumer_findMapping(aNeedle, aMappings, aLineName,\n aColumnName, aComparator, aBias) {\n // To return the position we are searching for, we must first find the\n // mapping for the given position and then return the opposite position it\n // points to. Because the mappings are sorted, we can use binary search to\n // find the best mapping.\n\n if (aNeedle[aLineName] <= 0) {\n throw new TypeError('Line must be greater than or equal to 1, got '\n + aNeedle[aLineName]);\n }\n if (aNeedle[aColumnName] < 0) {\n throw new TypeError('Column must be greater than or equal to 0, got '\n + aNeedle[aColumnName]);\n }\n\n return binarySearch.search(aNeedle, aMappings, aComparator, aBias);\n };\n\n/**\n * Compute the last column for each generated mapping. The last column is\n * inclusive.\n */\nBasicSourceMapConsumer.prototype.computeColumnSpans =\n function SourceMapConsumer_computeColumnSpans() {\n for (var index = 0; index < this._generatedMappings.length; ++index) {\n var mapping = this._generatedMappings[index];\n\n // Mappings do not contain a field for the last generated columnt. We\n // can come up with an optimistic estimate, however, by assuming that\n // mappings are contiguous (i.e. given two consecutive mappings, the\n // first mapping ends where the second one starts).\n if (index + 1 < this._generatedMappings.length) {\n var nextMapping = this._generatedMappings[index + 1];\n\n if (mapping.generatedLine === nextMapping.generatedLine) {\n mapping.lastGeneratedColumn = nextMapping.generatedColumn - 1;\n continue;\n }\n }\n\n // The last mapping for each line spans the entire line.\n mapping.lastGeneratedColumn = Infinity;\n }\n };\n\n/**\n * Returns the original source, line, and column information for the generated\n * source's line and column positions provided. The only argument is an object\n * with the following properties:\n *\n * - line: The line number in the generated source.\n * - column: The column number in the generated source.\n * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or\n * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the\n * closest element that is smaller than or greater than the one we are\n * searching for, respectively, if the exact element cannot be found.\n * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'.\n *\n * and an object is returned with the following properties:\n *\n * - source: The original source file, or null.\n * - line: The line number in the original source, or null.\n * - column: The column number in the original source, or null.\n * - name: The original identifier, or null.\n */\nBasicSourceMapConsumer.prototype.originalPositionFor =\n function SourceMapConsumer_originalPositionFor(aArgs) {\n var needle = {\n generatedLine: util.getArg(aArgs, 'line'),\n generatedColumn: util.getArg(aArgs, 'column')\n };\n\n var index = this._findMapping(\n needle,\n this._generatedMappings,\n \"generatedLine\",\n \"generatedColumn\",\n util.compareByGeneratedPositionsDeflated,\n util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND)\n );\n\n if (index >= 0) {\n var mapping = this._generatedMappings[index];\n\n if (mapping.generatedLine === needle.generatedLine) {\n var source = util.getArg(mapping, 'source', null);\n if (source !== null) {\n source = this._sources.at(source);\n if (this.sourceRoot != null) {\n source = util.join(this.sourceRoot, source);\n }\n }\n var name = util.getArg(mapping, 'name', null);\n if (name !== null) {\n name = this._names.at(name);\n }\n return {\n source: source,\n line: util.getArg(mapping, 'originalLine', null),\n column: util.getArg(mapping, 'originalColumn', null),\n name: name\n };\n }\n }\n\n return {\n source: null,\n line: null,\n column: null,\n name: null\n };\n };\n\n/**\n * Return true if we have the source content for every source in the source\n * map, false otherwise.\n */\nBasicSourceMapConsumer.prototype.hasContentsOfAllSources =\n function BasicSourceMapConsumer_hasContentsOfAllSources() {\n if (!this.sourcesContent) {\n return false;\n }\n return this.sourcesContent.length >= this._sources.size() &&\n !this.sourcesContent.some(function (sc) { return sc == null; });\n };\n\n/**\n * Returns the original source content. The only argument is the url of the\n * original source file. Returns null if no original source content is\n * available.\n */\nBasicSourceMapConsumer.prototype.sourceContentFor =\n function SourceMapConsumer_sourceContentFor(aSource, nullOnMissing) {\n if (!this.sourcesContent) {\n return null;\n }\n\n if (this.sourceRoot != null) {\n aSource = util.relative(this.sourceRoot, aSource);\n }\n\n if (this._sources.has(aSource)) {\n return this.sourcesContent[this._sources.indexOf(aSource)];\n }\n\n var url;\n if (this.sourceRoot != null\n && (url = util.urlParse(this.sourceRoot))) {\n // XXX: file:// URIs and absolute paths lead to unexpected behavior for\n // many users. We can help them out when they expect file:// URIs to\n // behave like it would if they were running a local HTTP server. See\n // https://bugzilla.mozilla.org/show_bug.cgi?id=885597.\n var fileUriAbsPath = aSource.replace(/^file:\\/\\//, \"\");\n if (url.scheme == \"file\"\n && this._sources.has(fileUriAbsPath)) {\n return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)]\n }\n\n if ((!url.path || url.path == \"/\")\n && this._sources.has(\"/\" + aSource)) {\n return this.sourcesContent[this._sources.indexOf(\"/\" + aSource)];\n }\n }\n\n // This function is used recursively from\n // IndexedSourceMapConsumer.prototype.sourceContentFor. In that case, we\n // don't want to throw if we can't find the source - we just want to\n // return null, so we provide a flag to exit gracefully.\n if (nullOnMissing) {\n return null;\n }\n else {\n throw new Error('\"' + aSource + '\" is not in the SourceMap.');\n }\n };\n\n/**\n * Returns the generated line and column information for the original source,\n * line, and column positions provided. The only argument is an object with\n * the following properties:\n *\n * - source: The filename of the original source.\n * - line: The line number in the original source.\n * - column: The column number in the original source.\n * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or\n * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the\n * closest element that is smaller than or greater than the one we are\n * searching for, respectively, if the exact element cannot be found.\n * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'.\n *\n * and an object is returned with the following properties:\n *\n * - line: The line number in the generated source, or null.\n * - column: The column number in the generated source, or null.\n */\nBasicSourceMapConsumer.prototype.generatedPositionFor =\n function SourceMapConsumer_generatedPositionFor(aArgs) {\n var source = util.getArg(aArgs, 'source');\n if (this.sourceRoot != null) {\n source = util.relative(this.sourceRoot, source);\n }\n if (!this._sources.has(source)) {\n return {\n line: null,\n column: null,\n lastColumn: null\n };\n }\n source = this._sources.indexOf(source);\n\n var needle = {\n source: source,\n originalLine: util.getArg(aArgs, 'line'),\n originalColumn: util.getArg(aArgs, 'column')\n };\n\n var index = this._findMapping(\n needle,\n this._originalMappings,\n \"originalLine\",\n \"originalColumn\",\n util.compareByOriginalPositions,\n util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND)\n );\n\n if (index >= 0) {\n var mapping = this._originalMappings[index];\n\n if (mapping.source === needle.source) {\n return {\n line: util.getArg(mapping, 'generatedLine', null),\n column: util.getArg(mapping, 'generatedColumn', null),\n lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null)\n };\n }\n }\n\n return {\n line: null,\n column: null,\n lastColumn: null\n };\n };\n\nexports.BasicSourceMapConsumer = BasicSourceMapConsumer;\n\n/**\n * An IndexedSourceMapConsumer instance represents a parsed source map which\n * we can query for information. It differs from BasicSourceMapConsumer in\n * that it takes \"indexed\" source maps (i.e. ones with a \"sections\" field) as\n * input.\n *\n * The only parameter is a raw source map (either as a JSON string, or already\n * parsed to an object). According to the spec for indexed source maps, they\n * have the following attributes:\n *\n * - version: Which version of the source map spec this map is following.\n * - file: Optional. The generated file this source map is associated with.\n * - sections: A list of section definitions.\n *\n * Each value under the \"sections\" field has two fields:\n * - offset: The offset into the original specified at which this section\n * begins to apply, defined as an object with a \"line\" and \"column\"\n * field.\n * - map: A source map definition. This source map could also be indexed,\n * but doesn't have to be.\n *\n * Instead of the \"map\" field, it's also possible to have a \"url\" field\n * specifying a URL to retrieve a source map from, but that's currently\n * unsupported.\n *\n * Here's an example source map, taken from the source map spec[0], but\n * modified to omit a section which uses the \"url\" field.\n *\n * {\n * version : 3,\n * file: \"app.js\",\n * sections: [{\n * offset: {line:100, column:10},\n * map: {\n * version : 3,\n * file: \"section.js\",\n * sources: [\"foo.js\", \"bar.js\"],\n * names: [\"src\", \"maps\", \"are\", \"fun\"],\n * mappings: \"AAAA,E;;ABCDE;\"\n * }\n * }],\n * }\n *\n * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit#heading=h.535es3xeprgt\n */\nfunction IndexedSourceMapConsumer(aSourceMap) {\n var sourceMap = aSourceMap;\n if (typeof aSourceMap === 'string') {\n sourceMap = JSON.parse(aSourceMap.replace(/^\\)\\]\\}'/, ''));\n }\n\n var version = util.getArg(sourceMap, 'version');\n var sections = util.getArg(sourceMap, 'sections');\n\n if (version != this._version) {\n throw new Error('Unsupported version: ' + version);\n }\n\n this._sources = new ArraySet();\n this._names = new ArraySet();\n\n var lastOffset = {\n line: -1,\n column: 0\n };\n this._sections = sections.map(function (s) {\n if (s.url) {\n // The url field will require support for asynchronicity.\n // See https://github.com/mozilla/source-map/issues/16\n throw new Error('Support for url field in sections not implemented.');\n }\n var offset = util.getArg(s, 'offset');\n var offsetLine = util.getArg(offset, 'line');\n var offsetColumn = util.getArg(offset, 'column');\n\n if (offsetLine < lastOffset.line ||\n (offsetLine === lastOffset.line && offsetColumn < lastOffset.column)) {\n throw new Error('Section offsets must be ordered and non-overlapping.');\n }\n lastOffset = offset;\n\n return {\n generatedOffset: {\n // The offset fields are 0-based, but we use 1-based indices when\n // encoding/decoding from VLQ.\n generatedLine: offsetLine + 1,\n generatedColumn: offsetColumn + 1\n },\n consumer: new SourceMapConsumer(util.getArg(s, 'map'))\n }\n });\n}\n\nIndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype);\nIndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer;\n\n/**\n * The version of the source mapping spec that we are consuming.\n */\nIndexedSourceMapConsumer.prototype._version = 3;\n\n/**\n * The list of original sources.\n */\nObject.defineProperty(IndexedSourceMapConsumer.prototype, 'sources', {\n get: function () {\n var sources = [];\n for (var i = 0; i < this._sections.length; i++) {\n for (var j = 0; j < this._sections[i].consumer.sources.length; j++) {\n sources.push(this._sections[i].consumer.sources[j]);\n }\n }\n return sources;\n }\n});\n\n/**\n * Returns the original source, line, and column information for the generated\n * source's line and column positions provided. The only argument is an object\n * with the following properties:\n *\n * - line: The line number in the generated source.\n * - column: The column number in the generated source.\n *\n * and an object is returned with the following properties:\n *\n * - source: The original source file, or null.\n * - line: The line number in the original source, or null.\n * - column: The column number in the original source, or null.\n * - name: The original identifier, or null.\n */\nIndexedSourceMapConsumer.prototype.originalPositionFor =\n function IndexedSourceMapConsumer_originalPositionFor(aArgs) {\n var needle = {\n generatedLine: util.getArg(aArgs, 'line'),\n generatedColumn: util.getArg(aArgs, 'column')\n };\n\n // Find the section containing the generated position we're trying to map\n // to an original position.\n var sectionIndex = binarySearch.search(needle, this._sections,\n function(needle, section) {\n var cmp = needle.generatedLine - section.generatedOffset.generatedLine;\n if (cmp) {\n return cmp;\n }\n\n return (needle.generatedColumn -\n section.generatedOffset.generatedColumn);\n });\n var section = this._sections[sectionIndex];\n\n if (!section) {\n return {\n source: null,\n line: null,\n column: null,\n name: null\n };\n }\n\n return section.consumer.originalPositionFor({\n line: needle.generatedLine -\n (section.generatedOffset.generatedLine - 1),\n column: needle.generatedColumn -\n (section.generatedOffset.generatedLine === needle.generatedLine\n ? section.generatedOffset.generatedColumn - 1\n : 0),\n bias: aArgs.bias\n });\n };\n\n/**\n * Return true if we have the source content for every source in the source\n * map, false otherwise.\n */\nIndexedSourceMapConsumer.prototype.hasContentsOfAllSources =\n function IndexedSourceMapConsumer_hasContentsOfAllSources() {\n return this._sections.every(function (s) {\n return s.consumer.hasContentsOfAllSources();\n });\n };\n\n/**\n * Returns the original source content. The only argument is the url of the\n * original source file. Returns null if no original source content is\n * available.\n */\nIndexedSourceMapConsumer.prototype.sourceContentFor =\n function IndexedSourceMapConsumer_sourceContentFor(aSource, nullOnMissing) {\n for (var i = 0; i < this._sections.length; i++) {\n var section = this._sections[i];\n\n var content = section.consumer.sourceContentFor(aSource, true);\n if (content) {\n return content;\n }\n }\n if (nullOnMissing) {\n return null;\n }\n else {\n throw new Error('\"' + aSource + '\" is not in the SourceMap.');\n }\n };\n\n/**\n * Returns the generated line and column information for the original source,\n * line, and column positions provided. The only argument is an object with\n * the following properties:\n *\n * - source: The filename of the original source.\n * - line: The line number in the original source.\n * - column: The column number in the original source.\n *\n * and an object is returned with the following properties:\n *\n * - line: The line number in the generated source, or null.\n * - column: The column number in the generated source, or null.\n */\nIndexedSourceMapConsumer.prototype.generatedPositionFor =\n function IndexedSourceMapConsumer_generatedPositionFor(aArgs) {\n for (var i = 0; i < this._sections.length; i++) {\n var section = this._sections[i];\n\n // Only consider this section if the requested source is in the list of\n // sources of the consumer.\n if (section.consumer.sources.indexOf(util.getArg(aArgs, 'source')) === -1) {\n continue;\n }\n var generatedPosition = section.consumer.generatedPositionFor(aArgs);\n if (generatedPosition) {\n var ret = {\n line: generatedPosition.line +\n (section.generatedOffset.generatedLine - 1),\n column: generatedPosition.column +\n (section.generatedOffset.generatedLine === generatedPosition.line\n ? section.generatedOffset.generatedColumn - 1\n : 0)\n };\n return ret;\n }\n }\n\n return {\n line: null,\n column: null\n };\n };\n\n/**\n * Parse the mappings in a string in to a data structure which we can easily\n * query (the ordered arrays in the `this.__generatedMappings` and\n * `this.__originalMappings` properties).\n */\nIndexedSourceMapConsumer.prototype._parseMappings =\n function IndexedSourceMapConsumer_parseMappings(aStr, aSourceRoot) {\n this.__generatedMappings = [];\n this.__originalMappings = [];\n for (var i = 0; i < this._sections.length; i++) {\n var section = this._sections[i];\n var sectionMappings = section.consumer._generatedMappings;\n for (var j = 0; j < sectionMappings.length; j++) {\n var mapping = sectionMappings[j];\n\n var source = section.consumer._sources.at(mapping.source);\n if (section.consumer.sourceRoot !== null) {\n source = util.join(section.consumer.sourceRoot, source);\n }\n this._sources.add(source);\n source = this._sources.indexOf(source);\n\n var name = section.consumer._names.at(mapping.name);\n this._names.add(name);\n name = this._names.indexOf(name);\n\n // The mappings coming from the consumer for the section have\n // generated positions relative to the start of the section, so we\n // need to offset them to be relative to the start of the concatenated\n // generated file.\n var adjustedMapping = {\n source: source,\n generatedLine: mapping.generatedLine +\n (section.generatedOffset.generatedLine - 1),\n generatedColumn: mapping.generatedColumn +\n (section.generatedOffset.generatedLine === mapping.generatedLine\n ? section.generatedOffset.generatedColumn - 1\n : 0),\n originalLine: mapping.originalLine,\n originalColumn: mapping.originalColumn,\n name: name\n };\n\n this.__generatedMappings.push(adjustedMapping);\n if (typeof adjustedMapping.originalLine === 'number') {\n this.__originalMappings.push(adjustedMapping);\n }\n }\n }\n\n quickSort(this.__generatedMappings, util.compareByGeneratedPositionsDeflated);\n quickSort(this.__originalMappings, util.compareByOriginalPositions);\n };\n\nexports.IndexedSourceMapConsumer = IndexedSourceMapConsumer;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./lib/source-map-consumer.js\n// module id = 7\n// module chunks = 0","/* -*- Mode: js; js-indent-level: 2; -*- */\n/*\n * Copyright 2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\n\nexports.GREATEST_LOWER_BOUND = 1;\nexports.LEAST_UPPER_BOUND = 2;\n\n/**\n * Recursive implementation of binary search.\n *\n * @param aLow Indices here and lower do not contain the needle.\n * @param aHigh Indices here and higher do not contain the needle.\n * @param aNeedle The element being searched for.\n * @param aHaystack The non-empty array being searched.\n * @param aCompare Function which takes two elements and returns -1, 0, or 1.\n * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or\n * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the\n * closest element that is smaller than or greater than the one we are\n * searching for, respectively, if the exact element cannot be found.\n */\nfunction recursiveSearch(aLow, aHigh, aNeedle, aHaystack, aCompare, aBias) {\n // This function terminates when one of the following is true:\n //\n // 1. We find the exact element we are looking for.\n //\n // 2. We did not find the exact element, but we can return the index of\n // the next-closest element.\n //\n // 3. We did not find the exact element, and there is no next-closest\n // element than the one we are searching for, so we return -1.\n var mid = Math.floor((aHigh - aLow) / 2) + aLow;\n var cmp = aCompare(aNeedle, aHaystack[mid], true);\n if (cmp === 0) {\n // Found the element we are looking for.\n return mid;\n }\n else if (cmp > 0) {\n // Our needle is greater than aHaystack[mid].\n if (aHigh - mid > 1) {\n // The element is in the upper half.\n return recursiveSearch(mid, aHigh, aNeedle, aHaystack, aCompare, aBias);\n }\n\n // The exact needle element was not found in this haystack. Determine if\n // we are in termination case (3) or (2) and return the appropriate thing.\n if (aBias == exports.LEAST_UPPER_BOUND) {\n return aHigh < aHaystack.length ? aHigh : -1;\n } else {\n return mid;\n }\n }\n else {\n // Our needle is less than aHaystack[mid].\n if (mid - aLow > 1) {\n // The element is in the lower half.\n return recursiveSearch(aLow, mid, aNeedle, aHaystack, aCompare, aBias);\n }\n\n // we are in termination case (3) or (2) and return the appropriate thing.\n if (aBias == exports.LEAST_UPPER_BOUND) {\n return mid;\n } else {\n return aLow < 0 ? -1 : aLow;\n }\n }\n}\n\n/**\n * This is an implementation of binary search which will always try and return\n * the index of the closest element if there is no exact hit. This is because\n * mappings between original and generated line/col pairs are single points,\n * and there is an implicit region between each of them, so a miss just means\n * that you aren't on the very start of a region.\n *\n * @param aNeedle The element you are looking for.\n * @param aHaystack The array that is being searched.\n * @param aCompare A function which takes the needle and an element in the\n * array and returns -1, 0, or 1 depending on whether the needle is less\n * than, equal to, or greater than the element, respectively.\n * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or\n * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the\n * closest element that is smaller than or greater than the one we are\n * searching for, respectively, if the exact element cannot be found.\n * Defaults to 'binarySearch.GREATEST_LOWER_BOUND'.\n */\nexports.search = function search(aNeedle, aHaystack, aCompare, aBias) {\n if (aHaystack.length === 0) {\n return -1;\n }\n\n var index = recursiveSearch(-1, aHaystack.length, aNeedle, aHaystack,\n aCompare, aBias || exports.GREATEST_LOWER_BOUND);\n if (index < 0) {\n return -1;\n }\n\n // We have found either the exact element, or the next-closest element than\n // the one we are searching for. However, there may be more than one such\n // element. Make sure we always return the smallest of these.\n while (index - 1 >= 0) {\n if (aCompare(aHaystack[index], aHaystack[index - 1], true) !== 0) {\n break;\n }\n --index;\n }\n\n return index;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./lib/binary-search.js\n// module id = 8\n// module chunks = 0","/* -*- Mode: js; js-indent-level: 2; -*- */\n/*\n * Copyright 2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\n\n// It turns out that some (most?) JavaScript engines don't self-host\n// `Array.prototype.sort`. This makes sense because C++ will likely remain\n// faster than JS when doing raw CPU-intensive sorting. However, when using a\n// custom comparator function, calling back and forth between the VM's C++ and\n// JIT'd JS is rather slow *and* loses JIT type information, resulting in\n// worse generated code for the comparator function than would be optimal. In\n// fact, when sorting with a comparator, these costs outweigh the benefits of\n// sorting in C++. By using our own JS-implemented Quick Sort (below), we get\n// a ~3500ms mean speed-up in `bench/bench.html`.\n\n/**\n * Swap the elements indexed by `x` and `y` in the array `ary`.\n *\n * @param {Array} ary\n * The array.\n * @param {Number} x\n * The index of the first item.\n * @param {Number} y\n * The index of the second item.\n */\nfunction swap(ary, x, y) {\n var temp = ary[x];\n ary[x] = ary[y];\n ary[y] = temp;\n}\n\n/**\n * Returns a random integer within the range `low .. high` inclusive.\n *\n * @param {Number} low\n * The lower bound on the range.\n * @param {Number} high\n * The upper bound on the range.\n */\nfunction randomIntInRange(low, high) {\n return Math.round(low + (Math.random() * (high - low)));\n}\n\n/**\n * The Quick Sort algorithm.\n *\n * @param {Array} ary\n * An array to sort.\n * @param {function} comparator\n * Function to use to compare two items.\n * @param {Number} p\n * Start index of the array\n * @param {Number} r\n * End index of the array\n */\nfunction doQuickSort(ary, comparator, p, r) {\n // If our lower bound is less than our upper bound, we (1) partition the\n // array into two pieces and (2) recurse on each half. If it is not, this is\n // the empty array and our base case.\n\n if (p < r) {\n // (1) Partitioning.\n //\n // The partitioning chooses a pivot between `p` and `r` and moves all\n // elements that are less than or equal to the pivot to the before it, and\n // all the elements that are greater than it after it. The effect is that\n // once partition is done, the pivot is in the exact place it will be when\n // the array is put in sorted order, and it will not need to be moved\n // again. This runs in O(n) time.\n\n // Always choose a random pivot so that an input array which is reverse\n // sorted does not cause O(n^2) running time.\n var pivotIndex = randomIntInRange(p, r);\n var i = p - 1;\n\n swap(ary, pivotIndex, r);\n var pivot = ary[r];\n\n // Immediately after `j` is incremented in this loop, the following hold\n // true:\n //\n // * Every element in `ary[p .. i]` is less than or equal to the pivot.\n //\n // * Every element in `ary[i+1 .. j-1]` is greater than the pivot.\n for (var j = p; j < r; j++) {\n if (comparator(ary[j], pivot) <= 0) {\n i += 1;\n swap(ary, i, j);\n }\n }\n\n swap(ary, i + 1, j);\n var q = i + 1;\n\n // (2) Recurse on each half.\n\n doQuickSort(ary, comparator, p, q - 1);\n doQuickSort(ary, comparator, q + 1, r);\n }\n}\n\n/**\n * Sort the given array in-place with the given comparator function.\n *\n * @param {Array} ary\n * An array to sort.\n * @param {function} comparator\n * Function to use to compare two items.\n */\nexports.quickSort = function (ary, comparator) {\n doQuickSort(ary, comparator, 0, ary.length - 1);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./lib/quick-sort.js\n// module id = 9\n// module chunks = 0","/* -*- Mode: js; js-indent-level: 2; -*- */\n/*\n * Copyright 2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\n\nvar SourceMapGenerator = require('./source-map-generator').SourceMapGenerator;\nvar util = require('./util');\n\n// Matches a Windows-style `\\r\\n` newline or a `\\n` newline used by all other\n// operating systems these days (capturing the result).\nvar REGEX_NEWLINE = /(\\r?\\n)/;\n\n// Newline character code for charCodeAt() comparisons\nvar NEWLINE_CODE = 10;\n\n// Private symbol for identifying `SourceNode`s when multiple versions of\n// the source-map library are loaded. This MUST NOT CHANGE across\n// versions!\nvar isSourceNode = \"$$$isSourceNode$$$\";\n\n/**\n * SourceNodes provide a way to abstract over interpolating/concatenating\n * snippets of generated JavaScript source code while maintaining the line and\n * column information associated with the original source code.\n *\n * @param aLine The original line number.\n * @param aColumn The original column number.\n * @param aSource The original source's filename.\n * @param aChunks Optional. An array of strings which are snippets of\n * generated JS, or other SourceNodes.\n * @param aName The original identifier.\n */\nfunction SourceNode(aLine, aColumn, aSource, aChunks, aName) {\n this.children = [];\n this.sourceContents = {};\n this.line = aLine == null ? null : aLine;\n this.column = aColumn == null ? null : aColumn;\n this.source = aSource == null ? null : aSource;\n this.name = aName == null ? null : aName;\n this[isSourceNode] = true;\n if (aChunks != null) this.add(aChunks);\n}\n\n/**\n * Creates a SourceNode from generated code and a SourceMapConsumer.\n *\n * @param aGeneratedCode The generated code\n * @param aSourceMapConsumer The SourceMap for the generated code\n * @param aRelativePath Optional. The path that relative sources in the\n * SourceMapConsumer should be relative to.\n */\nSourceNode.fromStringWithSourceMap =\n function SourceNode_fromStringWithSourceMap(aGeneratedCode, aSourceMapConsumer, aRelativePath) {\n // The SourceNode we want to fill with the generated code\n // and the SourceMap\n var node = new SourceNode();\n\n // All even indices of this array are one line of the generated code,\n // while all odd indices are the newlines between two adjacent lines\n // (since `REGEX_NEWLINE` captures its match).\n // Processed fragments are accessed by calling `shiftNextLine`.\n var remainingLines = aGeneratedCode.split(REGEX_NEWLINE);\n var remainingLinesIndex = 0;\n var shiftNextLine = function() {\n var lineContents = getNextLine();\n // The last line of a file might not have a newline.\n var newLine = getNextLine() || \"\";\n return lineContents + newLine;\n\n function getNextLine() {\n return remainingLinesIndex < remainingLines.length ?\n remainingLines[remainingLinesIndex++] : undefined;\n }\n };\n\n // We need to remember the position of \"remainingLines\"\n var lastGeneratedLine = 1, lastGeneratedColumn = 0;\n\n // The generate SourceNodes we need a code range.\n // To extract it current and last mapping is used.\n // Here we store the last mapping.\n var lastMapping = null;\n\n aSourceMapConsumer.eachMapping(function (mapping) {\n if (lastMapping !== null) {\n // We add the code from \"lastMapping\" to \"mapping\":\n // First check if there is a new line in between.\n if (lastGeneratedLine < mapping.generatedLine) {\n // Associate first line with \"lastMapping\"\n addMappingWithCode(lastMapping, shiftNextLine());\n lastGeneratedLine++;\n lastGeneratedColumn = 0;\n // The remaining code is added without mapping\n } else {\n // There is no new line in between.\n // Associate the code between \"lastGeneratedColumn\" and\n // \"mapping.generatedColumn\" with \"lastMapping\"\n var nextLine = remainingLines[remainingLinesIndex];\n var code = nextLine.substr(0, mapping.generatedColumn -\n lastGeneratedColumn);\n remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn -\n lastGeneratedColumn);\n lastGeneratedColumn = mapping.generatedColumn;\n addMappingWithCode(lastMapping, code);\n // No more remaining code, continue\n lastMapping = mapping;\n return;\n }\n }\n // We add the generated code until the first mapping\n // to the SourceNode without any mapping.\n // Each line is added as separate string.\n while (lastGeneratedLine < mapping.generatedLine) {\n node.add(shiftNextLine());\n lastGeneratedLine++;\n }\n if (lastGeneratedColumn < mapping.generatedColumn) {\n var nextLine = remainingLines[remainingLinesIndex];\n node.add(nextLine.substr(0, mapping.generatedColumn));\n remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn);\n lastGeneratedColumn = mapping.generatedColumn;\n }\n lastMapping = mapping;\n }, this);\n // We have processed all mappings.\n if (remainingLinesIndex < remainingLines.length) {\n if (lastMapping) {\n // Associate the remaining code in the current line with \"lastMapping\"\n addMappingWithCode(lastMapping, shiftNextLine());\n }\n // and add the remaining lines without any mapping\n node.add(remainingLines.splice(remainingLinesIndex).join(\"\"));\n }\n\n // Copy sourcesContent into SourceNode\n aSourceMapConsumer.sources.forEach(function (sourceFile) {\n var content = aSourceMapConsumer.sourceContentFor(sourceFile);\n if (content != null) {\n if (aRelativePath != null) {\n sourceFile = util.join(aRelativePath, sourceFile);\n }\n node.setSourceContent(sourceFile, content);\n }\n });\n\n return node;\n\n function addMappingWithCode(mapping, code) {\n if (mapping === null || mapping.source === undefined) {\n node.add(code);\n } else {\n var source = aRelativePath\n ? util.join(aRelativePath, mapping.source)\n : mapping.source;\n node.add(new SourceNode(mapping.originalLine,\n mapping.originalColumn,\n source,\n code,\n mapping.name));\n }\n }\n };\n\n/**\n * Add a chunk of generated JS to this source node.\n *\n * @param aChunk A string snippet of generated JS code, another instance of\n * SourceNode, or an array where each member is one of those things.\n */\nSourceNode.prototype.add = function SourceNode_add(aChunk) {\n if (Array.isArray(aChunk)) {\n aChunk.forEach(function (chunk) {\n this.add(chunk);\n }, this);\n }\n else if (aChunk[isSourceNode] || typeof aChunk === \"string\") {\n if (aChunk) {\n this.children.push(aChunk);\n }\n }\n else {\n throw new TypeError(\n \"Expected a SourceNode, string, or an array of SourceNodes and strings. Got \" + aChunk\n );\n }\n return this;\n};\n\n/**\n * Add a chunk of generated JS to the beginning of this source node.\n *\n * @param aChunk A string snippet of generated JS code, another instance of\n * SourceNode, or an array where each member is one of those things.\n */\nSourceNode.prototype.prepend = function SourceNode_prepend(aChunk) {\n if (Array.isArray(aChunk)) {\n for (var i = aChunk.length-1; i >= 0; i--) {\n this.prepend(aChunk[i]);\n }\n }\n else if (aChunk[isSourceNode] || typeof aChunk === \"string\") {\n this.children.unshift(aChunk);\n }\n else {\n throw new TypeError(\n \"Expected a SourceNode, string, or an array of SourceNodes and strings. Got \" + aChunk\n );\n }\n return this;\n};\n\n/**\n * Walk over the tree of JS snippets in this node and its children. The\n * walking function is called once for each snippet of JS and is passed that\n * snippet and the its original associated source's line/column location.\n *\n * @param aFn The traversal function.\n */\nSourceNode.prototype.walk = function SourceNode_walk(aFn) {\n var chunk;\n for (var i = 0, len = this.children.length; i < len; i++) {\n chunk = this.children[i];\n if (chunk[isSourceNode]) {\n chunk.walk(aFn);\n }\n else {\n if (chunk !== '') {\n aFn(chunk, { source: this.source,\n line: this.line,\n column: this.column,\n name: this.name });\n }\n }\n }\n};\n\n/**\n * Like `String.prototype.join` except for SourceNodes. Inserts `aStr` between\n * each of `this.children`.\n *\n * @param aSep The separator.\n */\nSourceNode.prototype.join = function SourceNode_join(aSep) {\n var newChildren;\n var i;\n var len = this.children.length;\n if (len > 0) {\n newChildren = [];\n for (i = 0; i < len-1; i++) {\n newChildren.push(this.children[i]);\n newChildren.push(aSep);\n }\n newChildren.push(this.children[i]);\n this.children = newChildren;\n }\n return this;\n};\n\n/**\n * Call String.prototype.replace on the very right-most source snippet. Useful\n * for trimming whitespace from the end of a source node, etc.\n *\n * @param aPattern The pattern to replace.\n * @param aReplacement The thing to replace the pattern with.\n */\nSourceNode.prototype.replaceRight = function SourceNode_replaceRight(aPattern, aReplacement) {\n var lastChild = this.children[this.children.length - 1];\n if (lastChild[isSourceNode]) {\n lastChild.replaceRight(aPattern, aReplacement);\n }\n else if (typeof lastChild === 'string') {\n this.children[this.children.length - 1] = lastChild.replace(aPattern, aReplacement);\n }\n else {\n this.children.push(''.replace(aPattern, aReplacement));\n }\n return this;\n};\n\n/**\n * Set the source content for a source file. This will be added to the SourceMapGenerator\n * in the sourcesContent field.\n *\n * @param aSourceFile The filename of the source file\n * @param aSourceContent The content of the source file\n */\nSourceNode.prototype.setSourceContent =\n function SourceNode_setSourceContent(aSourceFile, aSourceContent) {\n this.sourceContents[util.toSetString(aSourceFile)] = aSourceContent;\n };\n\n/**\n * Walk over the tree of SourceNodes. The walking function is called for each\n * source file content and is passed the filename and source content.\n *\n * @param aFn The traversal function.\n */\nSourceNode.prototype.walkSourceContents =\n function SourceNode_walkSourceContents(aFn) {\n for (var i = 0, len = this.children.length; i < len; i++) {\n if (this.children[i][isSourceNode]) {\n this.children[i].walkSourceContents(aFn);\n }\n }\n\n var sources = Object.keys(this.sourceContents);\n for (var i = 0, len = sources.length; i < len; i++) {\n aFn(util.fromSetString(sources[i]), this.sourceContents[sources[i]]);\n }\n };\n\n/**\n * Return the string representation of this source node. Walks over the tree\n * and concatenates all the various snippets together to one string.\n */\nSourceNode.prototype.toString = function SourceNode_toString() {\n var str = \"\";\n this.walk(function (chunk) {\n str += chunk;\n });\n return str;\n};\n\n/**\n * Returns the string representation of this source node along with a source\n * map.\n */\nSourceNode.prototype.toStringWithSourceMap = function SourceNode_toStringWithSourceMap(aArgs) {\n var generated = {\n code: \"\",\n line: 1,\n column: 0\n };\n var map = new SourceMapGenerator(aArgs);\n var sourceMappingActive = false;\n var lastOriginalSource = null;\n var lastOriginalLine = null;\n var lastOriginalColumn = null;\n var lastOriginalName = null;\n this.walk(function (chunk, original) {\n generated.code += chunk;\n if (original.source !== null\n && original.line !== null\n && original.column !== null) {\n if(lastOriginalSource !== original.source\n || lastOriginalLine !== original.line\n || lastOriginalColumn !== original.column\n || lastOriginalName !== original.name) {\n map.addMapping({\n source: original.source,\n original: {\n line: original.line,\n column: original.column\n },\n generated: {\n line: generated.line,\n column: generated.column\n },\n name: original.name\n });\n }\n lastOriginalSource = original.source;\n lastOriginalLine = original.line;\n lastOriginalColumn = original.column;\n lastOriginalName = original.name;\n sourceMappingActive = true;\n } else if (sourceMappingActive) {\n map.addMapping({\n generated: {\n line: generated.line,\n column: generated.column\n }\n });\n lastOriginalSource = null;\n sourceMappingActive = false;\n }\n for (var idx = 0, length = chunk.length; idx < length; idx++) {\n if (chunk.charCodeAt(idx) === NEWLINE_CODE) {\n generated.line++;\n generated.column = 0;\n // Mappings end at eol\n if (idx + 1 === length) {\n lastOriginalSource = null;\n sourceMappingActive = false;\n } else if (sourceMappingActive) {\n map.addMapping({\n source: original.source,\n original: {\n line: original.line,\n column: original.column\n },\n generated: {\n line: generated.line,\n column: generated.column\n },\n name: original.name\n });\n }\n } else {\n generated.column++;\n }\n }\n });\n this.walkSourceContents(function (sourceFile, sourceContent) {\n map.setSourceContent(sourceFile, sourceContent);\n });\n\n return { code: generated.code, map: map };\n};\n\nexports.SourceNode = SourceNode;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./lib/source-node.js\n// module id = 10\n// module chunks = 0"],"sourceRoot":""}
\ No newline at end of file
diff --git a/node_modules/@babel/generator/node_modules/source-map/lib/array-set.js b/node_modules/@babel/generator/node_modules/source-map/lib/array-set.js
deleted file mode 100644
index fbd5c81c..00000000
--- a/node_modules/@babel/generator/node_modules/source-map/lib/array-set.js
+++ /dev/null
@@ -1,121 +0,0 @@
-/* -*- Mode: js; js-indent-level: 2; -*- */
-/*
- * Copyright 2011 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE or:
- * http://opensource.org/licenses/BSD-3-Clause
- */
-
-var util = require('./util');
-var has = Object.prototype.hasOwnProperty;
-var hasNativeMap = typeof Map !== "undefined";
-
-/**
- * A data structure which is a combination of an array and a set. Adding a new
- * member is O(1), testing for membership is O(1), and finding the index of an
- * element is O(1). Removing elements from the set is not supported. Only
- * strings are supported for membership.
- */
-function ArraySet() {
- this._array = [];
- this._set = hasNativeMap ? new Map() : Object.create(null);
-}
-
-/**
- * Static method for creating ArraySet instances from an existing array.
- */
-ArraySet.fromArray = function ArraySet_fromArray(aArray, aAllowDuplicates) {
- var set = new ArraySet();
- for (var i = 0, len = aArray.length; i < len; i++) {
- set.add(aArray[i], aAllowDuplicates);
- }
- return set;
-};
-
-/**
- * Return how many unique items are in this ArraySet. If duplicates have been
- * added, than those do not count towards the size.
- *
- * @returns Number
- */
-ArraySet.prototype.size = function ArraySet_size() {
- return hasNativeMap ? this._set.size : Object.getOwnPropertyNames(this._set).length;
-};
-
-/**
- * Add the given string to this set.
- *
- * @param String aStr
- */
-ArraySet.prototype.add = function ArraySet_add(aStr, aAllowDuplicates) {
- var sStr = hasNativeMap ? aStr : util.toSetString(aStr);
- var isDuplicate = hasNativeMap ? this.has(aStr) : has.call(this._set, sStr);
- var idx = this._array.length;
- if (!isDuplicate || aAllowDuplicates) {
- this._array.push(aStr);
- }
- if (!isDuplicate) {
- if (hasNativeMap) {
- this._set.set(aStr, idx);
- } else {
- this._set[sStr] = idx;
- }
- }
-};
-
-/**
- * Is the given string a member of this set?
- *
- * @param String aStr
- */
-ArraySet.prototype.has = function ArraySet_has(aStr) {
- if (hasNativeMap) {
- return this._set.has(aStr);
- } else {
- var sStr = util.toSetString(aStr);
- return has.call(this._set, sStr);
- }
-};
-
-/**
- * What is the index of the given string in the array?
- *
- * @param String aStr
- */
-ArraySet.prototype.indexOf = function ArraySet_indexOf(aStr) {
- if (hasNativeMap) {
- var idx = this._set.get(aStr);
- if (idx >= 0) {
- return idx;
- }
- } else {
- var sStr = util.toSetString(aStr);
- if (has.call(this._set, sStr)) {
- return this._set[sStr];
- }
- }
-
- throw new Error('"' + aStr + '" is not in the set.');
-};
-
-/**
- * What is the element at the given index?
- *
- * @param Number aIdx
- */
-ArraySet.prototype.at = function ArraySet_at(aIdx) {
- if (aIdx >= 0 && aIdx < this._array.length) {
- return this._array[aIdx];
- }
- throw new Error('No element indexed by ' + aIdx);
-};
-
-/**
- * Returns the array representation of this set (which has the proper indices
- * indicated by indexOf). Note that this is a copy of the internal array used
- * for storing the members so that no one can mess with internal state.
- */
-ArraySet.prototype.toArray = function ArraySet_toArray() {
- return this._array.slice();
-};
-
-exports.ArraySet = ArraySet;
diff --git a/node_modules/@babel/generator/node_modules/source-map/lib/base64-vlq.js b/node_modules/@babel/generator/node_modules/source-map/lib/base64-vlq.js
deleted file mode 100644
index 612b4040..00000000
--- a/node_modules/@babel/generator/node_modules/source-map/lib/base64-vlq.js
+++ /dev/null
@@ -1,140 +0,0 @@
-/* -*- Mode: js; js-indent-level: 2; -*- */
-/*
- * Copyright 2011 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE or:
- * http://opensource.org/licenses/BSD-3-Clause
- *
- * Based on the Base 64 VLQ implementation in Closure Compiler:
- * https://code.google.com/p/closure-compiler/source/browse/trunk/src/com/google/debugging/sourcemap/Base64VLQ.java
- *
- * Copyright 2011 The Closure Compiler Authors. All rights reserved.
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided
- * with the distribution.
- * * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-var base64 = require('./base64');
-
-// A single base 64 digit can contain 6 bits of data. For the base 64 variable
-// length quantities we use in the source map spec, the first bit is the sign,
-// the next four bits are the actual value, and the 6th bit is the
-// continuation bit. The continuation bit tells us whether there are more
-// digits in this value following this digit.
-//
-// Continuation
-// | Sign
-// | |
-// V V
-// 101011
-
-var VLQ_BASE_SHIFT = 5;
-
-// binary: 100000
-var VLQ_BASE = 1 << VLQ_BASE_SHIFT;
-
-// binary: 011111
-var VLQ_BASE_MASK = VLQ_BASE - 1;
-
-// binary: 100000
-var VLQ_CONTINUATION_BIT = VLQ_BASE;
-
-/**
- * Converts from a two-complement value to a value where the sign bit is
- * placed in the least significant bit. For example, as decimals:
- * 1 becomes 2 (10 binary), -1 becomes 3 (11 binary)
- * 2 becomes 4 (100 binary), -2 becomes 5 (101 binary)
- */
-function toVLQSigned(aValue) {
- return aValue < 0
- ? ((-aValue) << 1) + 1
- : (aValue << 1) + 0;
-}
-
-/**
- * Converts to a two-complement value from a value where the sign bit is
- * placed in the least significant bit. For example, as decimals:
- * 2 (10 binary) becomes 1, 3 (11 binary) becomes -1
- * 4 (100 binary) becomes 2, 5 (101 binary) becomes -2
- */
-function fromVLQSigned(aValue) {
- var isNegative = (aValue & 1) === 1;
- var shifted = aValue >> 1;
- return isNegative
- ? -shifted
- : shifted;
-}
-
-/**
- * Returns the base 64 VLQ encoded value.
- */
-exports.encode = function base64VLQ_encode(aValue) {
- var encoded = "";
- var digit;
-
- var vlq = toVLQSigned(aValue);
-
- do {
- digit = vlq & VLQ_BASE_MASK;
- vlq >>>= VLQ_BASE_SHIFT;
- if (vlq > 0) {
- // There are still more digits in this value, so we must make sure the
- // continuation bit is marked.
- digit |= VLQ_CONTINUATION_BIT;
- }
- encoded += base64.encode(digit);
- } while (vlq > 0);
-
- return encoded;
-};
-
-/**
- * Decodes the next base 64 VLQ value from the given string and returns the
- * value and the rest of the string via the out parameter.
- */
-exports.decode = function base64VLQ_decode(aStr, aIndex, aOutParam) {
- var strLen = aStr.length;
- var result = 0;
- var shift = 0;
- var continuation, digit;
-
- do {
- if (aIndex >= strLen) {
- throw new Error("Expected more digits in base 64 VLQ value.");
- }
-
- digit = base64.decode(aStr.charCodeAt(aIndex++));
- if (digit === -1) {
- throw new Error("Invalid base64 digit: " + aStr.charAt(aIndex - 1));
- }
-
- continuation = !!(digit & VLQ_CONTINUATION_BIT);
- digit &= VLQ_BASE_MASK;
- result = result + (digit << shift);
- shift += VLQ_BASE_SHIFT;
- } while (continuation);
-
- aOutParam.value = fromVLQSigned(result);
- aOutParam.rest = aIndex;
-};
diff --git a/node_modules/@babel/generator/node_modules/source-map/lib/base64.js b/node_modules/@babel/generator/node_modules/source-map/lib/base64.js
deleted file mode 100644
index 8aa86b30..00000000
--- a/node_modules/@babel/generator/node_modules/source-map/lib/base64.js
+++ /dev/null
@@ -1,67 +0,0 @@
-/* -*- Mode: js; js-indent-level: 2; -*- */
-/*
- * Copyright 2011 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE or:
- * http://opensource.org/licenses/BSD-3-Clause
- */
-
-var intToCharMap = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split('');
-
-/**
- * Encode an integer in the range of 0 to 63 to a single base 64 digit.
- */
-exports.encode = function (number) {
- if (0 <= number && number < intToCharMap.length) {
- return intToCharMap[number];
- }
- throw new TypeError("Must be between 0 and 63: " + number);
-};
-
-/**
- * Decode a single base 64 character code digit to an integer. Returns -1 on
- * failure.
- */
-exports.decode = function (charCode) {
- var bigA = 65; // 'A'
- var bigZ = 90; // 'Z'
-
- var littleA = 97; // 'a'
- var littleZ = 122; // 'z'
-
- var zero = 48; // '0'
- var nine = 57; // '9'
-
- var plus = 43; // '+'
- var slash = 47; // '/'
-
- var littleOffset = 26;
- var numberOffset = 52;
-
- // 0 - 25: ABCDEFGHIJKLMNOPQRSTUVWXYZ
- if (bigA <= charCode && charCode <= bigZ) {
- return (charCode - bigA);
- }
-
- // 26 - 51: abcdefghijklmnopqrstuvwxyz
- if (littleA <= charCode && charCode <= littleZ) {
- return (charCode - littleA + littleOffset);
- }
-
- // 52 - 61: 0123456789
- if (zero <= charCode && charCode <= nine) {
- return (charCode - zero + numberOffset);
- }
-
- // 62: +
- if (charCode == plus) {
- return 62;
- }
-
- // 63: /
- if (charCode == slash) {
- return 63;
- }
-
- // Invalid base64 digit.
- return -1;
-};
diff --git a/node_modules/@babel/generator/node_modules/source-map/lib/binary-search.js b/node_modules/@babel/generator/node_modules/source-map/lib/binary-search.js
deleted file mode 100644
index 010ac941..00000000
--- a/node_modules/@babel/generator/node_modules/source-map/lib/binary-search.js
+++ /dev/null
@@ -1,111 +0,0 @@
-/* -*- Mode: js; js-indent-level: 2; -*- */
-/*
- * Copyright 2011 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE or:
- * http://opensource.org/licenses/BSD-3-Clause
- */
-
-exports.GREATEST_LOWER_BOUND = 1;
-exports.LEAST_UPPER_BOUND = 2;
-
-/**
- * Recursive implementation of binary search.
- *
- * @param aLow Indices here and lower do not contain the needle.
- * @param aHigh Indices here and higher do not contain the needle.
- * @param aNeedle The element being searched for.
- * @param aHaystack The non-empty array being searched.
- * @param aCompare Function which takes two elements and returns -1, 0, or 1.
- * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or
- * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the
- * closest element that is smaller than or greater than the one we are
- * searching for, respectively, if the exact element cannot be found.
- */
-function recursiveSearch(aLow, aHigh, aNeedle, aHaystack, aCompare, aBias) {
- // This function terminates when one of the following is true:
- //
- // 1. We find the exact element we are looking for.
- //
- // 2. We did not find the exact element, but we can return the index of
- // the next-closest element.
- //
- // 3. We did not find the exact element, and there is no next-closest
- // element than the one we are searching for, so we return -1.
- var mid = Math.floor((aHigh - aLow) / 2) + aLow;
- var cmp = aCompare(aNeedle, aHaystack[mid], true);
- if (cmp === 0) {
- // Found the element we are looking for.
- return mid;
- }
- else if (cmp > 0) {
- // Our needle is greater than aHaystack[mid].
- if (aHigh - mid > 1) {
- // The element is in the upper half.
- return recursiveSearch(mid, aHigh, aNeedle, aHaystack, aCompare, aBias);
- }
-
- // The exact needle element was not found in this haystack. Determine if
- // we are in termination case (3) or (2) and return the appropriate thing.
- if (aBias == exports.LEAST_UPPER_BOUND) {
- return aHigh < aHaystack.length ? aHigh : -1;
- } else {
- return mid;
- }
- }
- else {
- // Our needle is less than aHaystack[mid].
- if (mid - aLow > 1) {
- // The element is in the lower half.
- return recursiveSearch(aLow, mid, aNeedle, aHaystack, aCompare, aBias);
- }
-
- // we are in termination case (3) or (2) and return the appropriate thing.
- if (aBias == exports.LEAST_UPPER_BOUND) {
- return mid;
- } else {
- return aLow < 0 ? -1 : aLow;
- }
- }
-}
-
-/**
- * This is an implementation of binary search which will always try and return
- * the index of the closest element if there is no exact hit. This is because
- * mappings between original and generated line/col pairs are single points,
- * and there is an implicit region between each of them, so a miss just means
- * that you aren't on the very start of a region.
- *
- * @param aNeedle The element you are looking for.
- * @param aHaystack The array that is being searched.
- * @param aCompare A function which takes the needle and an element in the
- * array and returns -1, 0, or 1 depending on whether the needle is less
- * than, equal to, or greater than the element, respectively.
- * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or
- * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the
- * closest element that is smaller than or greater than the one we are
- * searching for, respectively, if the exact element cannot be found.
- * Defaults to 'binarySearch.GREATEST_LOWER_BOUND'.
- */
-exports.search = function search(aNeedle, aHaystack, aCompare, aBias) {
- if (aHaystack.length === 0) {
- return -1;
- }
-
- var index = recursiveSearch(-1, aHaystack.length, aNeedle, aHaystack,
- aCompare, aBias || exports.GREATEST_LOWER_BOUND);
- if (index < 0) {
- return -1;
- }
-
- // We have found either the exact element, or the next-closest element than
- // the one we are searching for. However, there may be more than one such
- // element. Make sure we always return the smallest of these.
- while (index - 1 >= 0) {
- if (aCompare(aHaystack[index], aHaystack[index - 1], true) !== 0) {
- break;
- }
- --index;
- }
-
- return index;
-};
diff --git a/node_modules/@babel/generator/node_modules/source-map/lib/mapping-list.js b/node_modules/@babel/generator/node_modules/source-map/lib/mapping-list.js
deleted file mode 100644
index 06d1274a..00000000
--- a/node_modules/@babel/generator/node_modules/source-map/lib/mapping-list.js
+++ /dev/null
@@ -1,79 +0,0 @@
-/* -*- Mode: js; js-indent-level: 2; -*- */
-/*
- * Copyright 2014 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE or:
- * http://opensource.org/licenses/BSD-3-Clause
- */
-
-var util = require('./util');
-
-/**
- * Determine whether mappingB is after mappingA with respect to generated
- * position.
- */
-function generatedPositionAfter(mappingA, mappingB) {
- // Optimized for most common case
- var lineA = mappingA.generatedLine;
- var lineB = mappingB.generatedLine;
- var columnA = mappingA.generatedColumn;
- var columnB = mappingB.generatedColumn;
- return lineB > lineA || lineB == lineA && columnB >= columnA ||
- util.compareByGeneratedPositionsInflated(mappingA, mappingB) <= 0;
-}
-
-/**
- * A data structure to provide a sorted view of accumulated mappings in a
- * performance conscious manner. It trades a neglibable overhead in general
- * case for a large speedup in case of mappings being added in order.
- */
-function MappingList() {
- this._array = [];
- this._sorted = true;
- // Serves as infimum
- this._last = {generatedLine: -1, generatedColumn: 0};
-}
-
-/**
- * Iterate through internal items. This method takes the same arguments that
- * `Array.prototype.forEach` takes.
- *
- * NOTE: The order of the mappings is NOT guaranteed.
- */
-MappingList.prototype.unsortedForEach =
- function MappingList_forEach(aCallback, aThisArg) {
- this._array.forEach(aCallback, aThisArg);
- };
-
-/**
- * Add the given source mapping.
- *
- * @param Object aMapping
- */
-MappingList.prototype.add = function MappingList_add(aMapping) {
- if (generatedPositionAfter(this._last, aMapping)) {
- this._last = aMapping;
- this._array.push(aMapping);
- } else {
- this._sorted = false;
- this._array.push(aMapping);
- }
-};
-
-/**
- * Returns the flat, sorted array of mappings. The mappings are sorted by
- * generated position.
- *
- * WARNING: This method returns internal data without copying, for
- * performance. The return value must NOT be mutated, and should be treated as
- * an immutable borrow. If you want to take ownership, you must make your own
- * copy.
- */
-MappingList.prototype.toArray = function MappingList_toArray() {
- if (!this._sorted) {
- this._array.sort(util.compareByGeneratedPositionsInflated);
- this._sorted = true;
- }
- return this._array;
-};
-
-exports.MappingList = MappingList;
diff --git a/node_modules/@babel/generator/node_modules/source-map/lib/quick-sort.js b/node_modules/@babel/generator/node_modules/source-map/lib/quick-sort.js
deleted file mode 100644
index 6a7caadb..00000000
--- a/node_modules/@babel/generator/node_modules/source-map/lib/quick-sort.js
+++ /dev/null
@@ -1,114 +0,0 @@
-/* -*- Mode: js; js-indent-level: 2; -*- */
-/*
- * Copyright 2011 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE or:
- * http://opensource.org/licenses/BSD-3-Clause
- */
-
-// It turns out that some (most?) JavaScript engines don't self-host
-// `Array.prototype.sort`. This makes sense because C++ will likely remain
-// faster than JS when doing raw CPU-intensive sorting. However, when using a
-// custom comparator function, calling back and forth between the VM's C++ and
-// JIT'd JS is rather slow *and* loses JIT type information, resulting in
-// worse generated code for the comparator function than would be optimal. In
-// fact, when sorting with a comparator, these costs outweigh the benefits of
-// sorting in C++. By using our own JS-implemented Quick Sort (below), we get
-// a ~3500ms mean speed-up in `bench/bench.html`.
-
-/**
- * Swap the elements indexed by `x` and `y` in the array `ary`.
- *
- * @param {Array} ary
- * The array.
- * @param {Number} x
- * The index of the first item.
- * @param {Number} y
- * The index of the second item.
- */
-function swap(ary, x, y) {
- var temp = ary[x];
- ary[x] = ary[y];
- ary[y] = temp;
-}
-
-/**
- * Returns a random integer within the range `low .. high` inclusive.
- *
- * @param {Number} low
- * The lower bound on the range.
- * @param {Number} high
- * The upper bound on the range.
- */
-function randomIntInRange(low, high) {
- return Math.round(low + (Math.random() * (high - low)));
-}
-
-/**
- * The Quick Sort algorithm.
- *
- * @param {Array} ary
- * An array to sort.
- * @param {function} comparator
- * Function to use to compare two items.
- * @param {Number} p
- * Start index of the array
- * @param {Number} r
- * End index of the array
- */
-function doQuickSort(ary, comparator, p, r) {
- // If our lower bound is less than our upper bound, we (1) partition the
- // array into two pieces and (2) recurse on each half. If it is not, this is
- // the empty array and our base case.
-
- if (p < r) {
- // (1) Partitioning.
- //
- // The partitioning chooses a pivot between `p` and `r` and moves all
- // elements that are less than or equal to the pivot to the before it, and
- // all the elements that are greater than it after it. The effect is that
- // once partition is done, the pivot is in the exact place it will be when
- // the array is put in sorted order, and it will not need to be moved
- // again. This runs in O(n) time.
-
- // Always choose a random pivot so that an input array which is reverse
- // sorted does not cause O(n^2) running time.
- var pivotIndex = randomIntInRange(p, r);
- var i = p - 1;
-
- swap(ary, pivotIndex, r);
- var pivot = ary[r];
-
- // Immediately after `j` is incremented in this loop, the following hold
- // true:
- //
- // * Every element in `ary[p .. i]` is less than or equal to the pivot.
- //
- // * Every element in `ary[i+1 .. j-1]` is greater than the pivot.
- for (var j = p; j < r; j++) {
- if (comparator(ary[j], pivot) <= 0) {
- i += 1;
- swap(ary, i, j);
- }
- }
-
- swap(ary, i + 1, j);
- var q = i + 1;
-
- // (2) Recurse on each half.
-
- doQuickSort(ary, comparator, p, q - 1);
- doQuickSort(ary, comparator, q + 1, r);
- }
-}
-
-/**
- * Sort the given array in-place with the given comparator function.
- *
- * @param {Array} ary
- * An array to sort.
- * @param {function} comparator
- * Function to use to compare two items.
- */
-exports.quickSort = function (ary, comparator) {
- doQuickSort(ary, comparator, 0, ary.length - 1);
-};
diff --git a/node_modules/@babel/generator/node_modules/source-map/lib/source-map-consumer.js b/node_modules/@babel/generator/node_modules/source-map/lib/source-map-consumer.js
deleted file mode 100644
index 6abcc280..00000000
--- a/node_modules/@babel/generator/node_modules/source-map/lib/source-map-consumer.js
+++ /dev/null
@@ -1,1082 +0,0 @@
-/* -*- Mode: js; js-indent-level: 2; -*- */
-/*
- * Copyright 2011 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE or:
- * http://opensource.org/licenses/BSD-3-Clause
- */
-
-var util = require('./util');
-var binarySearch = require('./binary-search');
-var ArraySet = require('./array-set').ArraySet;
-var base64VLQ = require('./base64-vlq');
-var quickSort = require('./quick-sort').quickSort;
-
-function SourceMapConsumer(aSourceMap) {
- var sourceMap = aSourceMap;
- if (typeof aSourceMap === 'string') {
- sourceMap = JSON.parse(aSourceMap.replace(/^\)\]\}'/, ''));
- }
-
- return sourceMap.sections != null
- ? new IndexedSourceMapConsumer(sourceMap)
- : new BasicSourceMapConsumer(sourceMap);
-}
-
-SourceMapConsumer.fromSourceMap = function(aSourceMap) {
- return BasicSourceMapConsumer.fromSourceMap(aSourceMap);
-}
-
-/**
- * The version of the source mapping spec that we are consuming.
- */
-SourceMapConsumer.prototype._version = 3;
-
-// `__generatedMappings` and `__originalMappings` are arrays that hold the
-// parsed mapping coordinates from the source map's "mappings" attribute. They
-// are lazily instantiated, accessed via the `_generatedMappings` and
-// `_originalMappings` getters respectively, and we only parse the mappings
-// and create these arrays once queried for a source location. We jump through
-// these hoops because there can be many thousands of mappings, and parsing
-// them is expensive, so we only want to do it if we must.
-//
-// Each object in the arrays is of the form:
-//
-// {
-// generatedLine: The line number in the generated code,
-// generatedColumn: The column number in the generated code,
-// source: The path to the original source file that generated this
-// chunk of code,
-// originalLine: The line number in the original source that
-// corresponds to this chunk of generated code,
-// originalColumn: The column number in the original source that
-// corresponds to this chunk of generated code,
-// name: The name of the original symbol which generated this chunk of
-// code.
-// }
-//
-// All properties except for `generatedLine` and `generatedColumn` can be
-// `null`.
-//
-// `_generatedMappings` is ordered by the generated positions.
-//
-// `_originalMappings` is ordered by the original positions.
-
-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(aStr, index) {
- var c = aStr.charAt(index);
- return c === ";" || c === ",";
- };
-
-/**
- * Parse the mappings in a string in to a data structure which we can easily
- * query (the ordered arrays in the `this.__generatedMappings` and
- * `this.__originalMappings` properties).
- */
-SourceMapConsumer.prototype._parseMappings =
- function SourceMapConsumer_parseMappings(aStr, aSourceRoot) {
- 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;
-
-/**
- * Iterate over each mapping between an original source/line/column and a
- * generated line/column in this source map.
- *
- * @param Function aCallback
- * The function that is called with each mapping.
- * @param Object aContext
- * Optional. If specified, this object will be the value of `this` every
- * time that `aCallback` is called.
- * @param aOrder
- * Either `SourceMapConsumer.GENERATED_ORDER` or
- * `SourceMapConsumer.ORIGINAL_ORDER`. Specifies whether you want to
- * iterate over the mappings sorted by the generated file's line/column
- * order or the original's source/line/column order, respectively. Defaults to
- * `SourceMapConsumer.GENERATED_ORDER`.
- */
-SourceMapConsumer.prototype.eachMapping =
- function SourceMapConsumer_eachMapping(aCallback, aContext, aOrder) {
- var context = aContext || null;
- var order = aOrder || SourceMapConsumer.GENERATED_ORDER;
-
- var mappings;
- switch (order) {
- case SourceMapConsumer.GENERATED_ORDER:
- mappings = this._generatedMappings;
- break;
- case SourceMapConsumer.ORIGINAL_ORDER:
- mappings = this._originalMappings;
- break;
- default:
- throw new Error("Unknown order of iteration.");
- }
-
- var sourceRoot = this.sourceRoot;
- mappings.map(function (mapping) {
- var source = mapping.source === null ? null : this._sources.at(mapping.source);
- if (source != null && sourceRoot != null) {
- source = util.join(sourceRoot, source);
- }
- return {
- source: source,
- generatedLine: mapping.generatedLine,
- generatedColumn: mapping.generatedColumn,
- originalLine: mapping.originalLine,
- originalColumn: mapping.originalColumn,
- name: mapping.name === null ? null : this._names.at(mapping.name)
- };
- }, this).forEach(aCallback, context);
- };
-
-/**
- * Returns all generated line and column information for the original source,
- * line, and column provided. If no column is provided, returns all mappings
- * corresponding to a either the line we are searching for or the next
- * closest line that has any mappings. Otherwise, returns all mappings
- * corresponding to the given line and either the column we are searching for
- * or the next closest column that has any offsets.
- *
- * The only argument is an object with the following properties:
- *
- * - source: The filename of the original source.
- * - line: The line number in the original source.
- * - column: Optional. the column number in the original source.
- *
- * and an array of objects is returned, each with the following properties:
- *
- * - line: The line number in the generated source, or null.
- * - column: The column number in the generated source, or null.
- */
-SourceMapConsumer.prototype.allGeneratedPositionsFor =
- function SourceMapConsumer_allGeneratedPositionsFor(aArgs) {
- var line = util.getArg(aArgs, 'line');
-
- // When there is no exact match, BasicSourceMapConsumer.prototype._findMapping
- // returns the index of the closest mapping less than the needle. By
- // setting needle.originalColumn to 0, we thus find the last mapping for
- // the given line, provided such a mapping exists.
- var needle = {
- source: util.getArg(aArgs, 'source'),
- originalLine: line,
- originalColumn: util.getArg(aArgs, 'column', 0)
- };
-
- if (this.sourceRoot != null) {
- needle.source = util.relative(this.sourceRoot, needle.source);
- }
- if (!this._sources.has(needle.source)) {
- return [];
- }
- needle.source = this._sources.indexOf(needle.source);
-
- var mappings = [];
-
- var index = this._findMapping(needle,
- this._originalMappings,
- "originalLine",
- "originalColumn",
- util.compareByOriginalPositions,
- binarySearch.LEAST_UPPER_BOUND);
- if (index >= 0) {
- var mapping = this._originalMappings[index];
-
- if (aArgs.column === undefined) {
- var originalLine = mapping.originalLine;
-
- // Iterate until either we run out of mappings, or we run into
- // a mapping for a different line than the one we found. Since
- // mappings are sorted, this is guaranteed to find all mappings for
- // the line we found.
- while (mapping && mapping.originalLine === originalLine) {
- mappings.push({
- line: util.getArg(mapping, 'generatedLine', null),
- column: util.getArg(mapping, 'generatedColumn', null),
- lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null)
- });
-
- mapping = this._originalMappings[++index];
- }
- } else {
- var originalColumn = mapping.originalColumn;
-
- // Iterate until either we run out of mappings, or we run into
- // a mapping for a different line than the one we were searching for.
- // Since mappings are sorted, this is guaranteed to find all mappings for
- // the line we are searching for.
- while (mapping &&
- mapping.originalLine === line &&
- mapping.originalColumn == originalColumn) {
- mappings.push({
- line: util.getArg(mapping, 'generatedLine', null),
- column: util.getArg(mapping, 'generatedColumn', null),
- lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null)
- });
-
- mapping = this._originalMappings[++index];
- }
- }
- }
-
- return mappings;
- };
-
-exports.SourceMapConsumer = SourceMapConsumer;
-
-/**
- * A BasicSourceMapConsumer instance represents a parsed source map which we can
- * query for information about the original file positions by giving it a file
- * position in the generated source.
- *
- * The only parameter is the raw source map (either as a JSON string, or
- * already parsed to an object). According to the spec, source maps have the
- * following attributes:
- *
- * - version: Which version of the source map spec this map is following.
- * - sources: An array of URLs to the original source files.
- * - names: An array of identifiers which can be referrenced by individual mappings.
- * - sourceRoot: Optional. The URL root from which all sources are relative.
- * - sourcesContent: Optional. An array of contents of the original source files.
- * - mappings: A string of base64 VLQs which contain the actual mappings.
- * - file: Optional. The generated file this source map is associated with.
- *
- * Here is an example source map, taken from the source map spec[0]:
- *
- * {
- * version : 3,
- * file: "out.js",
- * sourceRoot : "",
- * sources: ["foo.js", "bar.js"],
- * names: ["src", "maps", "are", "fun"],
- * mappings: "AA,AB;;ABCDE;"
- * }
- *
- * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?pli=1#
- */
-function BasicSourceMapConsumer(aSourceMap) {
- var sourceMap = aSourceMap;
- if (typeof aSourceMap === 'string') {
- sourceMap = JSON.parse(aSourceMap.replace(/^\)\]\}'/, ''));
- }
-
- var version = util.getArg(sourceMap, 'version');
- var sources = util.getArg(sourceMap, 'sources');
- // Sass 3.3 leaves out the 'names' array, so we deviate from the spec (which
- // requires the array) to play nice here.
- var names = util.getArg(sourceMap, 'names', []);
- var sourceRoot = util.getArg(sourceMap, 'sourceRoot', null);
- var sourcesContent = util.getArg(sourceMap, 'sourcesContent', null);
- var mappings = util.getArg(sourceMap, 'mappings');
- var file = util.getArg(sourceMap, 'file', null);
-
- // Once again, Sass deviates from the spec and supplies the version as a
- // string rather than a number, so we use loose equality checking here.
- if (version != this._version) {
- throw new Error('Unsupported version: ' + version);
- }
-
- sources = sources
- .map(String)
- // Some source maps produce relative source paths like "./foo.js" instead of
- // "foo.js". Normalize these first so that future comparisons will succeed.
- // See bugzil.la/1090768.
- .map(util.normalize)
- // Always ensure that absolute sources are internally stored relative to
- // the source root, if the source root is absolute. Not doing this would
- // be particularly problematic when the source root is a prefix of the
- // source (valid, but why??). See github issue #199 and bugzil.la/1188982.
- .map(function (source) {
- return sourceRoot && util.isAbsolute(sourceRoot) && util.isAbsolute(source)
- ? util.relative(sourceRoot, source)
- : source;
- });
-
- // Pass `true` below to allow duplicate names and sources. While source maps
- // are intended to be compressed and deduplicated, the TypeScript compiler
- // sometimes generates source maps with duplicates in them. See Github issue
- // #72 and bugzil.la/889492.
- this._names = ArraySet.fromArray(names.map(String), true);
- this._sources = ArraySet.fromArray(sources, true);
-
- this.sourceRoot = sourceRoot;
- this.sourcesContent = sourcesContent;
- this._mappings = mappings;
- this.file = file;
-}
-
-BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype);
-BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer;
-
-/**
- * Create a BasicSourceMapConsumer from a SourceMapGenerator.
- *
- * @param SourceMapGenerator aSourceMap
- * The source map that will be consumed.
- * @returns BasicSourceMapConsumer
- */
-BasicSourceMapConsumer.fromSourceMap =
- function SourceMapConsumer_fromSourceMap(aSourceMap) {
- var smc = Object.create(BasicSourceMapConsumer.prototype);
-
- var names = smc._names = ArraySet.fromArray(aSourceMap._names.toArray(), true);
- var sources = smc._sources = ArraySet.fromArray(aSourceMap._sources.toArray(), true);
- smc.sourceRoot = aSourceMap._sourceRoot;
- smc.sourcesContent = aSourceMap._generateSourcesContent(smc._sources.toArray(),
- smc.sourceRoot);
- smc.file = aSourceMap._file;
-
- // Because we are modifying the entries (by converting string sources and
- // names to indices into the sources and names ArraySets), we have to make
- // a copy of the entry or else bad things happen. Shared mutable state
- // strikes again! See github issue #191.
-
- var generatedMappings = aSourceMap._mappings.toArray().slice();
- var destGeneratedMappings = smc.__generatedMappings = [];
- var destOriginalMappings = smc.__originalMappings = [];
-
- for (var i = 0, length = generatedMappings.length; i < length; i++) {
- var srcMapping = generatedMappings[i];
- var destMapping = new Mapping;
- destMapping.generatedLine = srcMapping.generatedLine;
- destMapping.generatedColumn = srcMapping.generatedColumn;
-
- if (srcMapping.source) {
- destMapping.source = sources.indexOf(srcMapping.source);
- destMapping.originalLine = srcMapping.originalLine;
- destMapping.originalColumn = srcMapping.originalColumn;
-
- if (srcMapping.name) {
- destMapping.name = names.indexOf(srcMapping.name);
- }
-
- destOriginalMappings.push(destMapping);
- }
-
- destGeneratedMappings.push(destMapping);
- }
-
- quickSort(smc.__originalMappings, util.compareByOriginalPositions);
-
- return smc;
- };
-
-/**
- * The version of the source mapping spec that we are consuming.
- */
-BasicSourceMapConsumer.prototype._version = 3;
-
-/**
- * The list of original sources.
- */
-Object.defineProperty(BasicSourceMapConsumer.prototype, 'sources', {
- get: function () {
- return this._sources.toArray().map(function (s) {
- return this.sourceRoot != null ? util.join(this.sourceRoot, s) : s;
- }, this);
- }
-});
-
-/**
- * Provide the JIT with a nice shape / hidden class.
- */
-function Mapping() {
- this.generatedLine = 0;
- this.generatedColumn = 0;
- this.source = null;
- this.originalLine = null;
- this.originalColumn = null;
- this.name = null;
-}
-
-/**
- * Parse the mappings in a string in to a data structure which we can easily
- * query (the ordered arrays in the `this.__generatedMappings` and
- * `this.__originalMappings` properties).
- */
-BasicSourceMapConsumer.prototype._parseMappings =
- function SourceMapConsumer_parseMappings(aStr, aSourceRoot) {
- var generatedLine = 1;
- var previousGeneratedColumn = 0;
- var previousOriginalLine = 0;
- var previousOriginalColumn = 0;
- var previousSource = 0;
- var previousName = 0;
- var length = aStr.length;
- var index = 0;
- var cachedSegments = {};
- var temp = {};
- var originalMappings = [];
- var generatedMappings = [];
- var mapping, str, segment, end, value;
-
- while (index < length) {
- if (aStr.charAt(index) === ';') {
- generatedLine++;
- index++;
- previousGeneratedColumn = 0;
- }
- else if (aStr.charAt(index) === ',') {
- index++;
- }
- else {
- mapping = new Mapping();
- mapping.generatedLine = generatedLine;
-
- // Because each offset is encoded relative to the previous one,
- // many segments often have the same encoding. We can exploit this
- // fact by caching the parsed variable length fields of each segment,
- // allowing us to avoid a second parse if we encounter the same
- // segment again.
- for (end = index; end < length; end++) {
- if (this._charIsMappingSeparator(aStr, end)) {
- break;
- }
- }
- str = aStr.slice(index, end);
-
- segment = cachedSegments[str];
- if (segment) {
- index += str.length;
- } else {
- segment = [];
- while (index < end) {
- base64VLQ.decode(aStr, index, temp);
- value = temp.value;
- index = temp.rest;
- segment.push(value);
- }
-
- if (segment.length === 2) {
- throw new Error('Found a source, but no line and column');
- }
-
- if (segment.length === 3) {
- throw new Error('Found a source and line, but no column');
- }
-
- cachedSegments[str] = segment;
- }
-
- // Generated column.
- mapping.generatedColumn = previousGeneratedColumn + segment[0];
- previousGeneratedColumn = mapping.generatedColumn;
-
- if (segment.length > 1) {
- // Original source.
- mapping.source = previousSource + segment[1];
- previousSource += segment[1];
-
- // Original line.
- mapping.originalLine = previousOriginalLine + segment[2];
- previousOriginalLine = mapping.originalLine;
- // Lines are stored 0-based
- mapping.originalLine += 1;
-
- // Original column.
- mapping.originalColumn = previousOriginalColumn + segment[3];
- previousOriginalColumn = mapping.originalColumn;
-
- if (segment.length > 4) {
- // Original name.
- mapping.name = previousName + segment[4];
- previousName += segment[4];
- }
- }
-
- generatedMappings.push(mapping);
- if (typeof mapping.originalLine === 'number') {
- originalMappings.push(mapping);
- }
- }
- }
-
- quickSort(generatedMappings, util.compareByGeneratedPositionsDeflated);
- this.__generatedMappings = generatedMappings;
-
- quickSort(originalMappings, util.compareByOriginalPositions);
- this.__originalMappings = originalMappings;
- };
-
-/**
- * Find the mapping that best matches the hypothetical "needle" mapping that
- * we are searching for in the given "haystack" of mappings.
- */
-BasicSourceMapConsumer.prototype._findMapping =
- function SourceMapConsumer_findMapping(aNeedle, aMappings, aLineName,
- aColumnName, aComparator, aBias) {
- // To return the position we are searching for, we must first find the
- // mapping for the given position and then return the opposite position it
- // points to. Because the mappings are sorted, we can use binary search to
- // find the best mapping.
-
- if (aNeedle[aLineName] <= 0) {
- throw new TypeError('Line must be greater than or equal to 1, got '
- + aNeedle[aLineName]);
- }
- if (aNeedle[aColumnName] < 0) {
- throw new TypeError('Column must be greater than or equal to 0, got '
- + aNeedle[aColumnName]);
- }
-
- return binarySearch.search(aNeedle, aMappings, aComparator, aBias);
- };
-
-/**
- * Compute the last column for each generated mapping. The last column is
- * inclusive.
- */
-BasicSourceMapConsumer.prototype.computeColumnSpans =
- function SourceMapConsumer_computeColumnSpans() {
- for (var index = 0; index < this._generatedMappings.length; ++index) {
- var mapping = this._generatedMappings[index];
-
- // Mappings do not contain a field for the last generated columnt. We
- // can come up with an optimistic estimate, however, by assuming that
- // mappings are contiguous (i.e. given two consecutive mappings, the
- // first mapping ends where the second one starts).
- if (index + 1 < this._generatedMappings.length) {
- var nextMapping = this._generatedMappings[index + 1];
-
- if (mapping.generatedLine === nextMapping.generatedLine) {
- mapping.lastGeneratedColumn = nextMapping.generatedColumn - 1;
- continue;
- }
- }
-
- // The last mapping for each line spans the entire line.
- mapping.lastGeneratedColumn = Infinity;
- }
- };
-
-/**
- * Returns the original source, line, and column information for the generated
- * source's line and column positions provided. The only argument is an object
- * with the following properties:
- *
- * - line: The line number in the generated source.
- * - column: The column number in the generated source.
- * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or
- * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the
- * closest element that is smaller than or greater than the one we are
- * searching for, respectively, if the exact element cannot be found.
- * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'.
- *
- * and an object is returned with the following properties:
- *
- * - source: The original source file, or null.
- * - line: The line number in the original source, or null.
- * - column: The column number in the original source, or null.
- * - name: The original identifier, or null.
- */
-BasicSourceMapConsumer.prototype.originalPositionFor =
- function SourceMapConsumer_originalPositionFor(aArgs) {
- var needle = {
- generatedLine: util.getArg(aArgs, 'line'),
- generatedColumn: util.getArg(aArgs, 'column')
- };
-
- var index = this._findMapping(
- needle,
- this._generatedMappings,
- "generatedLine",
- "generatedColumn",
- util.compareByGeneratedPositionsDeflated,
- util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND)
- );
-
- if (index >= 0) {
- var mapping = this._generatedMappings[index];
-
- if (mapping.generatedLine === needle.generatedLine) {
- var source = util.getArg(mapping, 'source', null);
- if (source !== null) {
- source = this._sources.at(source);
- if (this.sourceRoot != null) {
- source = util.join(this.sourceRoot, source);
- }
- }
- var name = util.getArg(mapping, 'name', null);
- if (name !== null) {
- name = this._names.at(name);
- }
- return {
- source: source,
- line: util.getArg(mapping, 'originalLine', null),
- column: util.getArg(mapping, 'originalColumn', null),
- name: name
- };
- }
- }
-
- return {
- source: null,
- line: null,
- column: null,
- name: null
- };
- };
-
-/**
- * Return true if we have the source content for every source in the source
- * map, false otherwise.
- */
-BasicSourceMapConsumer.prototype.hasContentsOfAllSources =
- function BasicSourceMapConsumer_hasContentsOfAllSources() {
- if (!this.sourcesContent) {
- return false;
- }
- return this.sourcesContent.length >= this._sources.size() &&
- !this.sourcesContent.some(function (sc) { return sc == null; });
- };
-
-/**
- * Returns the original source content. The only argument is the url of the
- * original source file. Returns null if no original source content is
- * available.
- */
-BasicSourceMapConsumer.prototype.sourceContentFor =
- function SourceMapConsumer_sourceContentFor(aSource, nullOnMissing) {
- if (!this.sourcesContent) {
- return null;
- }
-
- if (this.sourceRoot != null) {
- aSource = util.relative(this.sourceRoot, aSource);
- }
-
- if (this._sources.has(aSource)) {
- return this.sourcesContent[this._sources.indexOf(aSource)];
- }
-
- var url;
- if (this.sourceRoot != null
- && (url = util.urlParse(this.sourceRoot))) {
- // XXX: file:// URIs and absolute paths lead to unexpected behavior for
- // many users. We can help them out when they expect file:// URIs to
- // behave like it would if they were running a local HTTP server. See
- // https://bugzilla.mozilla.org/show_bug.cgi?id=885597.
- var fileUriAbsPath = aSource.replace(/^file:\/\//, "");
- if (url.scheme == "file"
- && this._sources.has(fileUriAbsPath)) {
- return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)]
- }
-
- if ((!url.path || url.path == "/")
- && this._sources.has("/" + aSource)) {
- return this.sourcesContent[this._sources.indexOf("/" + aSource)];
- }
- }
-
- // This function is used recursively from
- // IndexedSourceMapConsumer.prototype.sourceContentFor. In that case, we
- // don't want to throw if we can't find the source - we just want to
- // return null, so we provide a flag to exit gracefully.
- if (nullOnMissing) {
- return null;
- }
- else {
- throw new Error('"' + aSource + '" is not in the SourceMap.');
- }
- };
-
-/**
- * Returns the generated line and column information for the original source,
- * line, and column positions provided. The only argument is an object with
- * the following properties:
- *
- * - source: The filename of the original source.
- * - line: The line number in the original source.
- * - column: The column number in the original source.
- * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or
- * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the
- * closest element that is smaller than or greater than the one we are
- * searching for, respectively, if the exact element cannot be found.
- * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'.
- *
- * and an object is returned with the following properties:
- *
- * - line: The line number in the generated source, or null.
- * - column: The column number in the generated source, or null.
- */
-BasicSourceMapConsumer.prototype.generatedPositionFor =
- function SourceMapConsumer_generatedPositionFor(aArgs) {
- var source = util.getArg(aArgs, 'source');
- if (this.sourceRoot != null) {
- source = util.relative(this.sourceRoot, source);
- }
- if (!this._sources.has(source)) {
- return {
- line: null,
- column: null,
- lastColumn: null
- };
- }
- source = this._sources.indexOf(source);
-
- var needle = {
- source: source,
- originalLine: util.getArg(aArgs, 'line'),
- originalColumn: util.getArg(aArgs, 'column')
- };
-
- var index = this._findMapping(
- needle,
- this._originalMappings,
- "originalLine",
- "originalColumn",
- util.compareByOriginalPositions,
- util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND)
- );
-
- if (index >= 0) {
- var mapping = this._originalMappings[index];
-
- if (mapping.source === needle.source) {
- return {
- line: util.getArg(mapping, 'generatedLine', null),
- column: util.getArg(mapping, 'generatedColumn', null),
- lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null)
- };
- }
- }
-
- return {
- line: null,
- column: null,
- lastColumn: null
- };
- };
-
-exports.BasicSourceMapConsumer = BasicSourceMapConsumer;
-
-/**
- * An IndexedSourceMapConsumer instance represents a parsed source map which
- * we can query for information. It differs from BasicSourceMapConsumer in
- * that it takes "indexed" source maps (i.e. ones with a "sections" field) as
- * input.
- *
- * The only parameter is a raw source map (either as a JSON string, or already
- * parsed to an object). According to the spec for indexed source maps, they
- * have the following attributes:
- *
- * - version: Which version of the source map spec this map is following.
- * - file: Optional. The generated file this source map is associated with.
- * - sections: A list of section definitions.
- *
- * Each value under the "sections" field has two fields:
- * - offset: The offset into the original specified at which this section
- * begins to apply, defined as an object with a "line" and "column"
- * field.
- * - map: A source map definition. This source map could also be indexed,
- * but doesn't have to be.
- *
- * Instead of the "map" field, it's also possible to have a "url" field
- * specifying a URL to retrieve a source map from, but that's currently
- * unsupported.
- *
- * Here's an example source map, taken from the source map spec[0], but
- * modified to omit a section which uses the "url" field.
- *
- * {
- * version : 3,
- * file: "app.js",
- * sections: [{
- * offset: {line:100, column:10},
- * map: {
- * version : 3,
- * file: "section.js",
- * sources: ["foo.js", "bar.js"],
- * names: ["src", "maps", "are", "fun"],
- * mappings: "AAAA,E;;ABCDE;"
- * }
- * }],
- * }
- *
- * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit#heading=h.535es3xeprgt
- */
-function IndexedSourceMapConsumer(aSourceMap) {
- var sourceMap = aSourceMap;
- if (typeof aSourceMap === 'string') {
- sourceMap = JSON.parse(aSourceMap.replace(/^\)\]\}'/, ''));
- }
-
- var version = util.getArg(sourceMap, 'version');
- var sections = util.getArg(sourceMap, 'sections');
-
- if (version != this._version) {
- throw new Error('Unsupported version: ' + version);
- }
-
- this._sources = new ArraySet();
- this._names = new ArraySet();
-
- var lastOffset = {
- line: -1,
- column: 0
- };
- this._sections = sections.map(function (s) {
- if (s.url) {
- // The url field will require support for asynchronicity.
- // See https://github.com/mozilla/source-map/issues/16
- throw new Error('Support for url field in sections not implemented.');
- }
- var offset = util.getArg(s, 'offset');
- var offsetLine = util.getArg(offset, 'line');
- var offsetColumn = util.getArg(offset, 'column');
-
- if (offsetLine < lastOffset.line ||
- (offsetLine === lastOffset.line && offsetColumn < lastOffset.column)) {
- throw new Error('Section offsets must be ordered and non-overlapping.');
- }
- lastOffset = offset;
-
- return {
- generatedOffset: {
- // The offset fields are 0-based, but we use 1-based indices when
- // encoding/decoding from VLQ.
- generatedLine: offsetLine + 1,
- generatedColumn: offsetColumn + 1
- },
- consumer: new SourceMapConsumer(util.getArg(s, 'map'))
- }
- });
-}
-
-IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype);
-IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer;
-
-/**
- * The version of the source mapping spec that we are consuming.
- */
-IndexedSourceMapConsumer.prototype._version = 3;
-
-/**
- * The list of original sources.
- */
-Object.defineProperty(IndexedSourceMapConsumer.prototype, 'sources', {
- get: function () {
- var sources = [];
- for (var i = 0; i < this._sections.length; i++) {
- for (var j = 0; j < this._sections[i].consumer.sources.length; j++) {
- sources.push(this._sections[i].consumer.sources[j]);
- }
- }
- return sources;
- }
-});
-
-/**
- * Returns the original source, line, and column information for the generated
- * source's line and column positions provided. The only argument is an object
- * with the following properties:
- *
- * - line: The line number in the generated source.
- * - column: The column number in the generated source.
- *
- * and an object is returned with the following properties:
- *
- * - source: The original source file, or null.
- * - line: The line number in the original source, or null.
- * - column: The column number in the original source, or null.
- * - name: The original identifier, or null.
- */
-IndexedSourceMapConsumer.prototype.originalPositionFor =
- function IndexedSourceMapConsumer_originalPositionFor(aArgs) {
- var needle = {
- generatedLine: util.getArg(aArgs, 'line'),
- generatedColumn: util.getArg(aArgs, 'column')
- };
-
- // Find the section containing the generated position we're trying to map
- // to an original position.
- var sectionIndex = binarySearch.search(needle, this._sections,
- function(needle, section) {
- var cmp = needle.generatedLine - section.generatedOffset.generatedLine;
- if (cmp) {
- return cmp;
- }
-
- return (needle.generatedColumn -
- section.generatedOffset.generatedColumn);
- });
- var section = this._sections[sectionIndex];
-
- if (!section) {
- return {
- source: null,
- line: null,
- column: null,
- name: null
- };
- }
-
- return section.consumer.originalPositionFor({
- line: needle.generatedLine -
- (section.generatedOffset.generatedLine - 1),
- column: needle.generatedColumn -
- (section.generatedOffset.generatedLine === needle.generatedLine
- ? section.generatedOffset.generatedColumn - 1
- : 0),
- bias: aArgs.bias
- });
- };
-
-/**
- * Return true if we have the source content for every source in the source
- * map, false otherwise.
- */
-IndexedSourceMapConsumer.prototype.hasContentsOfAllSources =
- function IndexedSourceMapConsumer_hasContentsOfAllSources() {
- return this._sections.every(function (s) {
- return s.consumer.hasContentsOfAllSources();
- });
- };
-
-/**
- * Returns the original source content. The only argument is the url of the
- * original source file. Returns null if no original source content is
- * available.
- */
-IndexedSourceMapConsumer.prototype.sourceContentFor =
- function IndexedSourceMapConsumer_sourceContentFor(aSource, nullOnMissing) {
- for (var i = 0; i < this._sections.length; i++) {
- var section = this._sections[i];
-
- var content = section.consumer.sourceContentFor(aSource, true);
- if (content) {
- return content;
- }
- }
- if (nullOnMissing) {
- return null;
- }
- else {
- throw new Error('"' + aSource + '" is not in the SourceMap.');
- }
- };
-
-/**
- * Returns the generated line and column information for the original source,
- * line, and column positions provided. The only argument is an object with
- * the following properties:
- *
- * - source: The filename of the original source.
- * - line: The line number in the original source.
- * - column: The column number in the original source.
- *
- * and an object is returned with the following properties:
- *
- * - line: The line number in the generated source, or null.
- * - column: The column number in the generated source, or null.
- */
-IndexedSourceMapConsumer.prototype.generatedPositionFor =
- function IndexedSourceMapConsumer_generatedPositionFor(aArgs) {
- for (var i = 0; i < this._sections.length; i++) {
- var section = this._sections[i];
-
- // Only consider this section if the requested source is in the list of
- // sources of the consumer.
- if (section.consumer.sources.indexOf(util.getArg(aArgs, 'source')) === -1) {
- continue;
- }
- var generatedPosition = section.consumer.generatedPositionFor(aArgs);
- if (generatedPosition) {
- var ret = {
- line: generatedPosition.line +
- (section.generatedOffset.generatedLine - 1),
- column: generatedPosition.column +
- (section.generatedOffset.generatedLine === generatedPosition.line
- ? section.generatedOffset.generatedColumn - 1
- : 0)
- };
- return ret;
- }
- }
-
- return {
- line: null,
- column: null
- };
- };
-
-/**
- * Parse the mappings in a string in to a data structure which we can easily
- * query (the ordered arrays in the `this.__generatedMappings` and
- * `this.__originalMappings` properties).
- */
-IndexedSourceMapConsumer.prototype._parseMappings =
- function IndexedSourceMapConsumer_parseMappings(aStr, aSourceRoot) {
- this.__generatedMappings = [];
- this.__originalMappings = [];
- for (var i = 0; i < this._sections.length; i++) {
- var section = this._sections[i];
- var sectionMappings = section.consumer._generatedMappings;
- for (var j = 0; j < sectionMappings.length; j++) {
- var mapping = sectionMappings[j];
-
- var source = section.consumer._sources.at(mapping.source);
- if (section.consumer.sourceRoot !== null) {
- source = util.join(section.consumer.sourceRoot, source);
- }
- this._sources.add(source);
- source = this._sources.indexOf(source);
-
- var name = section.consumer._names.at(mapping.name);
- this._names.add(name);
- name = this._names.indexOf(name);
-
- // The mappings coming from the consumer for the section have
- // generated positions relative to the start of the section, so we
- // need to offset them to be relative to the start of the concatenated
- // generated file.
- var adjustedMapping = {
- source: source,
- generatedLine: mapping.generatedLine +
- (section.generatedOffset.generatedLine - 1),
- generatedColumn: mapping.generatedColumn +
- (section.generatedOffset.generatedLine === mapping.generatedLine
- ? section.generatedOffset.generatedColumn - 1
- : 0),
- originalLine: mapping.originalLine,
- originalColumn: mapping.originalColumn,
- name: name
- };
-
- this.__generatedMappings.push(adjustedMapping);
- if (typeof adjustedMapping.originalLine === 'number') {
- this.__originalMappings.push(adjustedMapping);
- }
- }
- }
-
- quickSort(this.__generatedMappings, util.compareByGeneratedPositionsDeflated);
- quickSort(this.__originalMappings, util.compareByOriginalPositions);
- };
-
-exports.IndexedSourceMapConsumer = IndexedSourceMapConsumer;
diff --git a/node_modules/@babel/generator/node_modules/source-map/lib/source-map-generator.js b/node_modules/@babel/generator/node_modules/source-map/lib/source-map-generator.js
deleted file mode 100644
index aff1e7fb..00000000
--- a/node_modules/@babel/generator/node_modules/source-map/lib/source-map-generator.js
+++ /dev/null
@@ -1,416 +0,0 @@
-/* -*- Mode: js; js-indent-level: 2; -*- */
-/*
- * Copyright 2011 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE or:
- * http://opensource.org/licenses/BSD-3-Clause
- */
-
-var base64VLQ = require('./base64-vlq');
-var util = require('./util');
-var ArraySet = require('./array-set').ArraySet;
-var MappingList = require('./mapping-list').MappingList;
-
-/**
- * An instance of the SourceMapGenerator represents a source map which is
- * being built incrementally. You may pass an object with the following
- * properties:
- *
- * - file: The filename of the generated source.
- * - sourceRoot: A root for all relative URLs in this source map.
- */
-function SourceMapGenerator(aArgs) {
- if (!aArgs) {
- aArgs = {};
- }
- this._file = util.getArg(aArgs, 'file', null);
- this._sourceRoot = util.getArg(aArgs, 'sourceRoot', null);
- this._skipValidation = util.getArg(aArgs, 'skipValidation', false);
- this._sources = new ArraySet();
- this._names = new ArraySet();
- this._mappings = new MappingList();
- this._sourcesContents = null;
-}
-
-SourceMapGenerator.prototype._version = 3;
-
-/**
- * Creates a new SourceMapGenerator based on a SourceMapConsumer
- *
- * @param aSourceMapConsumer The SourceMap.
- */
-SourceMapGenerator.fromSourceMap =
- function SourceMapGenerator_fromSourceMap(aSourceMapConsumer) {
- var sourceRoot = aSourceMapConsumer.sourceRoot;
- var generator = new SourceMapGenerator({
- file: aSourceMapConsumer.file,
- sourceRoot: sourceRoot
- });
- aSourceMapConsumer.eachMapping(function (mapping) {
- var newMapping = {
- generated: {
- line: mapping.generatedLine,
- column: mapping.generatedColumn
- }
- };
-
- if (mapping.source != null) {
- newMapping.source = mapping.source;
- if (sourceRoot != null) {
- newMapping.source = util.relative(sourceRoot, newMapping.source);
- }
-
- newMapping.original = {
- line: mapping.originalLine,
- column: mapping.originalColumn
- };
-
- if (mapping.name != null) {
- newMapping.name = mapping.name;
- }
- }
-
- generator.addMapping(newMapping);
- });
- aSourceMapConsumer.sources.forEach(function (sourceFile) {
- var content = aSourceMapConsumer.sourceContentFor(sourceFile);
- if (content != null) {
- generator.setSourceContent(sourceFile, content);
- }
- });
- return generator;
- };
-
-/**
- * Add a single mapping from original source line and column to the generated
- * source's line and column for this source map being created. The mapping
- * object should have the following properties:
- *
- * - generated: An object with the generated line and column positions.
- * - original: An object with the original line and column positions.
- * - source: The original source file (relative to the sourceRoot).
- * - name: An optional original token name for this mapping.
- */
-SourceMapGenerator.prototype.addMapping =
- function SourceMapGenerator_addMapping(aArgs) {
- var generated = util.getArg(aArgs, 'generated');
- var original = util.getArg(aArgs, 'original', null);
- var source = util.getArg(aArgs, 'source', null);
- var name = util.getArg(aArgs, 'name', null);
-
- if (!this._skipValidation) {
- this._validateMapping(generated, original, source, name);
- }
-
- if (source != null) {
- source = String(source);
- if (!this._sources.has(source)) {
- this._sources.add(source);
- }
- }
-
- if (name != null) {
- name = String(name);
- if (!this._names.has(name)) {
- this._names.add(name);
- }
- }
-
- this._mappings.add({
- generatedLine: generated.line,
- generatedColumn: generated.column,
- originalLine: original != null && original.line,
- originalColumn: original != null && original.column,
- source: source,
- name: name
- });
- };
-
-/**
- * Set the source content for a source file.
- */
-SourceMapGenerator.prototype.setSourceContent =
- function SourceMapGenerator_setSourceContent(aSourceFile, aSourceContent) {
- var source = aSourceFile;
- if (this._sourceRoot != null) {
- source = util.relative(this._sourceRoot, source);
- }
-
- if (aSourceContent != null) {
- // Add the source content to the _sourcesContents map.
- // Create a new _sourcesContents map if the property is null.
- if (!this._sourcesContents) {
- this._sourcesContents = Object.create(null);
- }
- this._sourcesContents[util.toSetString(source)] = aSourceContent;
- } else if (this._sourcesContents) {
- // Remove the source file from the _sourcesContents map.
- // If the _sourcesContents map is empty, set the property to null.
- delete this._sourcesContents[util.toSetString(source)];
- if (Object.keys(this._sourcesContents).length === 0) {
- this._sourcesContents = null;
- }
- }
- };
-
-/**
- * Applies the mappings of a sub-source-map for a specific source file to the
- * source map being generated. Each mapping to the supplied source file is
- * rewritten using the supplied source map. Note: The resolution for the
- * resulting mappings is the minimium of this map and the supplied map.
- *
- * @param aSourceMapConsumer The source map to be applied.
- * @param aSourceFile Optional. The filename of the source file.
- * If omitted, SourceMapConsumer's file property will be used.
- * @param aSourceMapPath Optional. The dirname of the path to the source map
- * to be applied. If relative, it is relative to the SourceMapConsumer.
- * This parameter is needed when the two source maps aren't in the same
- * directory, and the source map to be applied contains relative source
- * paths. If so, those relative source paths need to be rewritten
- * relative to the SourceMapGenerator.
- */
-SourceMapGenerator.prototype.applySourceMap =
- function SourceMapGenerator_applySourceMap(aSourceMapConsumer, aSourceFile, aSourceMapPath) {
- var sourceFile = aSourceFile;
- // If aSourceFile is omitted, we will use the file property of the SourceMap
- if (aSourceFile == null) {
- if (aSourceMapConsumer.file == null) {
- throw new Error(
- 'SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, ' +
- 'or the source map\'s "file" property. Both were omitted.'
- );
- }
- sourceFile = aSourceMapConsumer.file;
- }
- var sourceRoot = this._sourceRoot;
- // Make "sourceFile" relative if an absolute Url is passed.
- if (sourceRoot != null) {
- sourceFile = util.relative(sourceRoot, sourceFile);
- }
- // Applying the SourceMap can add and remove items from the sources and
- // the names array.
- var newSources = new ArraySet();
- var newNames = new ArraySet();
-
- // Find mappings for the "sourceFile"
- this._mappings.unsortedForEach(function (mapping) {
- if (mapping.source === sourceFile && mapping.originalLine != null) {
- // Check if it can be mapped by the source map, then update the mapping.
- var original = aSourceMapConsumer.originalPositionFor({
- line: mapping.originalLine,
- column: mapping.originalColumn
- });
- if (original.source != null) {
- // Copy mapping
- mapping.source = original.source;
- if (aSourceMapPath != null) {
- mapping.source = util.join(aSourceMapPath, mapping.source)
- }
- if (sourceRoot != null) {
- mapping.source = util.relative(sourceRoot, mapping.source);
- }
- mapping.originalLine = original.line;
- mapping.originalColumn = original.column;
- if (original.name != null) {
- mapping.name = original.name;
- }
- }
- }
-
- var source = mapping.source;
- if (source != null && !newSources.has(source)) {
- newSources.add(source);
- }
-
- var name = mapping.name;
- if (name != null && !newNames.has(name)) {
- newNames.add(name);
- }
-
- }, this);
- this._sources = newSources;
- this._names = newNames;
-
- // Copy sourcesContents of applied map.
- aSourceMapConsumer.sources.forEach(function (sourceFile) {
- var content = aSourceMapConsumer.sourceContentFor(sourceFile);
- if (content != null) {
- if (aSourceMapPath != null) {
- sourceFile = util.join(aSourceMapPath, sourceFile);
- }
- if (sourceRoot != null) {
- sourceFile = util.relative(sourceRoot, sourceFile);
- }
- this.setSourceContent(sourceFile, content);
- }
- }, this);
- };
-
-/**
- * A mapping can have one of the three levels of data:
- *
- * 1. Just the generated position.
- * 2. The Generated position, original position, and original source.
- * 3. Generated and original position, original source, as well as a name
- * token.
- *
- * To maintain consistency, we validate that any new mapping being added falls
- * in to one of these categories.
- */
-SourceMapGenerator.prototype._validateMapping =
- function SourceMapGenerator_validateMapping(aGenerated, aOriginal, aSource,
- aName) {
- // When aOriginal is truthy but has empty values for .line and .column,
- // it is most likely a programmer error. In this case we throw a very
- // specific error message to try to guide them the right way.
- // For example: https://github.com/Polymer/polymer-bundler/pull/519
- if (aOriginal && typeof aOriginal.line !== 'number' && typeof aOriginal.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 (aGenerated && 'line' in aGenerated && 'column' in aGenerated
- && aGenerated.line > 0 && aGenerated.column >= 0
- && !aOriginal && !aSource && !aName) {
- // Case 1.
- return;
- }
- else if (aGenerated && 'line' in aGenerated && 'column' in aGenerated
- && aOriginal && 'line' in aOriginal && 'column' in aOriginal
- && aGenerated.line > 0 && aGenerated.column >= 0
- && aOriginal.line > 0 && aOriginal.column >= 0
- && aSource) {
- // Cases 2 and 3.
- return;
- }
- else {
- throw new Error('Invalid mapping: ' + JSON.stringify({
- generated: aGenerated,
- source: aSource,
- original: aOriginal,
- name: aName
- }));
- }
- };
-
-/**
- * Serialize the accumulated mappings in to the stream of base 64 VLQs
- * specified by the source map format.
- */
-SourceMapGenerator.prototype._serializeMappings =
- function SourceMapGenerator_serializeMappings() {
- var previousGeneratedColumn = 0;
- var previousGeneratedLine = 1;
- var previousOriginalColumn = 0;
- var previousOriginalLine = 0;
- var previousName = 0;
- var previousSource = 0;
- var result = '';
- var next;
- var mapping;
- var nameIdx;
- var sourceIdx;
-
- var mappings = this._mappings.toArray();
- for (var i = 0, len = mappings.length; i < len; i++) {
- mapping = mappings[i];
- next = ''
-
- if (mapping.generatedLine !== previousGeneratedLine) {
- previousGeneratedColumn = 0;
- while (mapping.generatedLine !== previousGeneratedLine) {
- next += ';';
- previousGeneratedLine++;
- }
- }
- else {
- if (i > 0) {
- if (!util.compareByGeneratedPositionsInflated(mapping, mappings[i - 1])) {
- continue;
- }
- next += ',';
- }
- }
-
- next += base64VLQ.encode(mapping.generatedColumn
- - previousGeneratedColumn);
- previousGeneratedColumn = mapping.generatedColumn;
-
- if (mapping.source != null) {
- sourceIdx = this._sources.indexOf(mapping.source);
- next += base64VLQ.encode(sourceIdx - previousSource);
- previousSource = sourceIdx;
-
- // lines are stored 0-based in SourceMap spec version 3
- next += base64VLQ.encode(mapping.originalLine - 1
- - previousOriginalLine);
- previousOriginalLine = mapping.originalLine - 1;
-
- next += base64VLQ.encode(mapping.originalColumn
- - previousOriginalColumn);
- previousOriginalColumn = mapping.originalColumn;
-
- if (mapping.name != null) {
- nameIdx = this._names.indexOf(mapping.name);
- next += base64VLQ.encode(nameIdx - previousName);
- previousName = nameIdx;
- }
- }
-
- result += next;
- }
-
- return result;
- };
-
-SourceMapGenerator.prototype._generateSourcesContent =
- function SourceMapGenerator_generateSourcesContent(aSources, aSourceRoot) {
- return aSources.map(function (source) {
- if (!this._sourcesContents) {
- return null;
- }
- if (aSourceRoot != null) {
- source = util.relative(aSourceRoot, source);
- }
- var key = util.toSetString(source);
- return Object.prototype.hasOwnProperty.call(this._sourcesContents, key)
- ? this._sourcesContents[key]
- : null;
- }, this);
- };
-
-/**
- * Externalize the source map.
- */
-SourceMapGenerator.prototype.toJSON =
- function SourceMapGenerator_toJSON() {
- var map = {
- version: this._version,
- sources: this._sources.toArray(),
- names: this._names.toArray(),
- mappings: this._serializeMappings()
- };
- if (this._file != null) {
- map.file = this._file;
- }
- if (this._sourceRoot != null) {
- map.sourceRoot = this._sourceRoot;
- }
- if (this._sourcesContents) {
- map.sourcesContent = this._generateSourcesContent(map.sources, map.sourceRoot);
- }
-
- return map;
- };
-
-/**
- * Render the source map being generated to a string.
- */
-SourceMapGenerator.prototype.toString =
- function SourceMapGenerator_toString() {
- return JSON.stringify(this.toJSON());
- };
-
-exports.SourceMapGenerator = SourceMapGenerator;
diff --git a/node_modules/@babel/generator/node_modules/source-map/lib/source-node.js b/node_modules/@babel/generator/node_modules/source-map/lib/source-node.js
deleted file mode 100644
index d196a53f..00000000
--- a/node_modules/@babel/generator/node_modules/source-map/lib/source-node.js
+++ /dev/null
@@ -1,413 +0,0 @@
-/* -*- Mode: js; js-indent-level: 2; -*- */
-/*
- * Copyright 2011 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE or:
- * http://opensource.org/licenses/BSD-3-Clause
- */
-
-var SourceMapGenerator = require('./source-map-generator').SourceMapGenerator;
-var util = require('./util');
-
-// Matches a Windows-style `\r\n` newline or a `\n` newline used by all other
-// operating systems these days (capturing the result).
-var REGEX_NEWLINE = /(\r?\n)/;
-
-// Newline character code for charCodeAt() comparisons
-var NEWLINE_CODE = 10;
-
-// Private symbol for identifying `SourceNode`s when multiple versions of
-// the source-map library are loaded. This MUST NOT CHANGE across
-// versions!
-var isSourceNode = "$$$isSourceNode$$$";
-
-/**
- * SourceNodes provide a way to abstract over interpolating/concatenating
- * snippets of generated JavaScript source code while maintaining the line and
- * column information associated with the original source code.
- *
- * @param aLine The original line number.
- * @param aColumn The original column number.
- * @param aSource The original source's filename.
- * @param aChunks Optional. An array of strings which are snippets of
- * generated JS, or other SourceNodes.
- * @param aName The original identifier.
- */
-function SourceNode(aLine, aColumn, aSource, aChunks, aName) {
- this.children = [];
- this.sourceContents = {};
- this.line = aLine == null ? null : aLine;
- this.column = aColumn == null ? null : aColumn;
- this.source = aSource == null ? null : aSource;
- this.name = aName == null ? null : aName;
- this[isSourceNode] = true;
- if (aChunks != null) this.add(aChunks);
-}
-
-/**
- * Creates a SourceNode from generated code and a SourceMapConsumer.
- *
- * @param aGeneratedCode The generated code
- * @param aSourceMapConsumer The SourceMap for the generated code
- * @param aRelativePath Optional. The path that relative sources in the
- * SourceMapConsumer should be relative to.
- */
-SourceNode.fromStringWithSourceMap =
- function SourceNode_fromStringWithSourceMap(aGeneratedCode, aSourceMapConsumer, aRelativePath) {
- // The SourceNode we want to fill with the generated code
- // and the SourceMap
- var node = new SourceNode();
-
- // All even indices of this array are one line of the generated code,
- // while all odd indices are the newlines between two adjacent lines
- // (since `REGEX_NEWLINE` captures its match).
- // Processed fragments are accessed by calling `shiftNextLine`.
- var remainingLines = aGeneratedCode.split(REGEX_NEWLINE);
- var remainingLinesIndex = 0;
- var shiftNextLine = function() {
- var lineContents = getNextLine();
- // The last line of a file might not have a newline.
- var newLine = getNextLine() || "";
- return lineContents + newLine;
-
- function getNextLine() {
- return remainingLinesIndex < remainingLines.length ?
- remainingLines[remainingLinesIndex++] : undefined;
- }
- };
-
- // We need to remember the position of "remainingLines"
- var lastGeneratedLine = 1, lastGeneratedColumn = 0;
-
- // The generate SourceNodes we need a code range.
- // To extract it current and last mapping is used.
- // Here we store the last mapping.
- var lastMapping = null;
-
- aSourceMapConsumer.eachMapping(function (mapping) {
- if (lastMapping !== null) {
- // We add the code from "lastMapping" to "mapping":
- // First check if there is a new line in between.
- if (lastGeneratedLine < mapping.generatedLine) {
- // Associate first line with "lastMapping"
- addMappingWithCode(lastMapping, shiftNextLine());
- lastGeneratedLine++;
- lastGeneratedColumn = 0;
- // The remaining code is added without mapping
- } else {
- // There is no new line in between.
- // Associate the code between "lastGeneratedColumn" and
- // "mapping.generatedColumn" with "lastMapping"
- var nextLine = remainingLines[remainingLinesIndex];
- var code = nextLine.substr(0, mapping.generatedColumn -
- lastGeneratedColumn);
- remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn -
- lastGeneratedColumn);
- lastGeneratedColumn = mapping.generatedColumn;
- addMappingWithCode(lastMapping, code);
- // No more remaining code, continue
- lastMapping = mapping;
- return;
- }
- }
- // We add the generated code until the first mapping
- // to the SourceNode without any mapping.
- // Each line is added as separate string.
- while (lastGeneratedLine < mapping.generatedLine) {
- node.add(shiftNextLine());
- lastGeneratedLine++;
- }
- if (lastGeneratedColumn < mapping.generatedColumn) {
- var nextLine = remainingLines[remainingLinesIndex];
- node.add(nextLine.substr(0, mapping.generatedColumn));
- remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn);
- lastGeneratedColumn = mapping.generatedColumn;
- }
- lastMapping = mapping;
- }, this);
- // We have processed all mappings.
- if (remainingLinesIndex < remainingLines.length) {
- if (lastMapping) {
- // Associate the remaining code in the current line with "lastMapping"
- addMappingWithCode(lastMapping, shiftNextLine());
- }
- // and add the remaining lines without any mapping
- node.add(remainingLines.splice(remainingLinesIndex).join(""));
- }
-
- // Copy sourcesContent into SourceNode
- aSourceMapConsumer.sources.forEach(function (sourceFile) {
- var content = aSourceMapConsumer.sourceContentFor(sourceFile);
- if (content != null) {
- if (aRelativePath != null) {
- sourceFile = util.join(aRelativePath, sourceFile);
- }
- node.setSourceContent(sourceFile, content);
- }
- });
-
- return node;
-
- function addMappingWithCode(mapping, code) {
- if (mapping === null || mapping.source === undefined) {
- node.add(code);
- } else {
- var source = aRelativePath
- ? util.join(aRelativePath, mapping.source)
- : mapping.source;
- node.add(new SourceNode(mapping.originalLine,
- mapping.originalColumn,
- source,
- code,
- mapping.name));
- }
- }
- };
-
-/**
- * Add a chunk of generated JS to this source node.
- *
- * @param aChunk A string snippet of generated JS code, another instance of
- * SourceNode, or an array where each member is one of those things.
- */
-SourceNode.prototype.add = function SourceNode_add(aChunk) {
- if (Array.isArray(aChunk)) {
- aChunk.forEach(function (chunk) {
- this.add(chunk);
- }, this);
- }
- else if (aChunk[isSourceNode] || typeof aChunk === "string") {
- if (aChunk) {
- this.children.push(aChunk);
- }
- }
- else {
- throw new TypeError(
- "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk
- );
- }
- return this;
-};
-
-/**
- * Add a chunk of generated JS to the beginning of this source node.
- *
- * @param aChunk A string snippet of generated JS code, another instance of
- * SourceNode, or an array where each member is one of those things.
- */
-SourceNode.prototype.prepend = function SourceNode_prepend(aChunk) {
- if (Array.isArray(aChunk)) {
- for (var i = aChunk.length-1; i >= 0; i--) {
- this.prepend(aChunk[i]);
- }
- }
- else if (aChunk[isSourceNode] || typeof aChunk === "string") {
- this.children.unshift(aChunk);
- }
- else {
- throw new TypeError(
- "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk
- );
- }
- return this;
-};
-
-/**
- * Walk over the tree of JS snippets in this node and its children. The
- * walking function is called once for each snippet of JS and is passed that
- * snippet and the its original associated source's line/column location.
- *
- * @param aFn The traversal function.
- */
-SourceNode.prototype.walk = function SourceNode_walk(aFn) {
- var chunk;
- for (var i = 0, len = this.children.length; i < len; i++) {
- chunk = this.children[i];
- if (chunk[isSourceNode]) {
- chunk.walk(aFn);
- }
- else {
- if (chunk !== '') {
- aFn(chunk, { source: this.source,
- line: this.line,
- column: this.column,
- name: this.name });
- }
- }
- }
-};
-
-/**
- * Like `String.prototype.join` except for SourceNodes. Inserts `aStr` between
- * each of `this.children`.
- *
- * @param aSep The separator.
- */
-SourceNode.prototype.join = function SourceNode_join(aSep) {
- var newChildren;
- var i;
- var len = this.children.length;
- if (len > 0) {
- newChildren = [];
- for (i = 0; i < len-1; i++) {
- newChildren.push(this.children[i]);
- newChildren.push(aSep);
- }
- newChildren.push(this.children[i]);
- this.children = newChildren;
- }
- return this;
-};
-
-/**
- * Call String.prototype.replace on the very right-most source snippet. Useful
- * for trimming whitespace from the end of a source node, etc.
- *
- * @param aPattern The pattern to replace.
- * @param aReplacement The thing to replace the pattern with.
- */
-SourceNode.prototype.replaceRight = function SourceNode_replaceRight(aPattern, aReplacement) {
- var lastChild = this.children[this.children.length - 1];
- if (lastChild[isSourceNode]) {
- lastChild.replaceRight(aPattern, aReplacement);
- }
- else if (typeof lastChild === 'string') {
- this.children[this.children.length - 1] = lastChild.replace(aPattern, aReplacement);
- }
- else {
- this.children.push(''.replace(aPattern, aReplacement));
- }
- return this;
-};
-
-/**
- * Set the source content for a source file. This will be added to the SourceMapGenerator
- * in the sourcesContent field.
- *
- * @param aSourceFile The filename of the source file
- * @param aSourceContent The content of the source file
- */
-SourceNode.prototype.setSourceContent =
- function SourceNode_setSourceContent(aSourceFile, aSourceContent) {
- this.sourceContents[util.toSetString(aSourceFile)] = aSourceContent;
- };
-
-/**
- * Walk over the tree of SourceNodes. The walking function is called for each
- * source file content and is passed the filename and source content.
- *
- * @param aFn The traversal function.
- */
-SourceNode.prototype.walkSourceContents =
- function SourceNode_walkSourceContents(aFn) {
- for (var i = 0, len = this.children.length; i < len; i++) {
- if (this.children[i][isSourceNode]) {
- this.children[i].walkSourceContents(aFn);
- }
- }
-
- var sources = Object.keys(this.sourceContents);
- for (var i = 0, len = sources.length; i < len; i++) {
- aFn(util.fromSetString(sources[i]), this.sourceContents[sources[i]]);
- }
- };
-
-/**
- * Return the string representation of this source node. Walks over the tree
- * and concatenates all the various snippets together to one string.
- */
-SourceNode.prototype.toString = function SourceNode_toString() {
- var str = "";
- this.walk(function (chunk) {
- str += chunk;
- });
- return str;
-};
-
-/**
- * Returns the string representation of this source node along with a source
- * map.
- */
-SourceNode.prototype.toStringWithSourceMap = function SourceNode_toStringWithSourceMap(aArgs) {
- var generated = {
- code: "",
- line: 1,
- column: 0
- };
- var map = new SourceMapGenerator(aArgs);
- var sourceMappingActive = false;
- var lastOriginalSource = null;
- var lastOriginalLine = null;
- var lastOriginalColumn = null;
- var lastOriginalName = null;
- this.walk(function (chunk, original) {
- generated.code += chunk;
- if (original.source !== null
- && original.line !== null
- && original.column !== null) {
- if(lastOriginalSource !== original.source
- || lastOriginalLine !== original.line
- || lastOriginalColumn !== original.column
- || lastOriginalName !== original.name) {
- map.addMapping({
- source: original.source,
- original: {
- line: original.line,
- column: original.column
- },
- generated: {
- line: generated.line,
- column: generated.column
- },
- name: original.name
- });
- }
- lastOriginalSource = original.source;
- lastOriginalLine = original.line;
- lastOriginalColumn = original.column;
- lastOriginalName = original.name;
- sourceMappingActive = true;
- } else if (sourceMappingActive) {
- map.addMapping({
- generated: {
- line: generated.line,
- column: generated.column
- }
- });
- lastOriginalSource = null;
- sourceMappingActive = false;
- }
- for (var idx = 0, length = chunk.length; idx < length; idx++) {
- if (chunk.charCodeAt(idx) === NEWLINE_CODE) {
- generated.line++;
- generated.column = 0;
- // Mappings end at eol
- if (idx + 1 === length) {
- lastOriginalSource = null;
- sourceMappingActive = false;
- } else if (sourceMappingActive) {
- map.addMapping({
- source: original.source,
- original: {
- line: original.line,
- column: original.column
- },
- generated: {
- line: generated.line,
- column: generated.column
- },
- name: original.name
- });
- }
- } else {
- generated.column++;
- }
- }
- });
- this.walkSourceContents(function (sourceFile, sourceContent) {
- map.setSourceContent(sourceFile, sourceContent);
- });
-
- return { code: generated.code, map: map };
-};
-
-exports.SourceNode = SourceNode;
diff --git a/node_modules/@babel/generator/node_modules/source-map/lib/util.js b/node_modules/@babel/generator/node_modules/source-map/lib/util.js
deleted file mode 100644
index 44e0e452..00000000
--- a/node_modules/@babel/generator/node_modules/source-map/lib/util.js
+++ /dev/null
@@ -1,417 +0,0 @@
-/* -*- Mode: js; js-indent-level: 2; -*- */
-/*
- * Copyright 2011 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE or:
- * http://opensource.org/licenses/BSD-3-Clause
- */
-
-/**
- * This is a helper function for getting values from parameter/options
- * objects.
- *
- * @param args The object we are extracting values from
- * @param name The name of the property we are getting.
- * @param defaultValue An optional value to return if the property is missing
- * from the object. If this is not specified and the property is missing, an
- * error will be thrown.
- */
-function getArg(aArgs, aName, aDefaultValue) {
- if (aName in aArgs) {
- return aArgs[aName];
- } else if (arguments.length === 3) {
- return aDefaultValue;
- } else {
- throw new Error('"' + aName + '" is a required argument.');
- }
-}
-exports.getArg = getArg;
-
-var urlRegexp = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/;
-var dataUrlRegexp = /^data:.+\,.+$/;
-
-function urlParse(aUrl) {
- var match = aUrl.match(urlRegexp);
- if (!match) {
- return null;
- }
- return {
- scheme: match[1],
- auth: match[2],
- host: match[3],
- port: match[4],
- path: match[5]
- };
-}
-exports.urlParse = urlParse;
-
-function urlGenerate(aParsedUrl) {
- var url = '';
- if (aParsedUrl.scheme) {
- url += aParsedUrl.scheme + ':';
- }
- url += '//';
- if (aParsedUrl.auth) {
- url += aParsedUrl.auth + '@';
- }
- if (aParsedUrl.host) {
- url += aParsedUrl.host;
- }
- if (aParsedUrl.port) {
- url += ":" + aParsedUrl.port
- }
- if (aParsedUrl.path) {
- url += aParsedUrl.path;
- }
- return url;
-}
-exports.urlGenerate = urlGenerate;
-
-/**
- * Normalizes a path, or the path portion of a URL:
- *
- * - Replaces consecutive slashes with one slash.
- * - Removes unnecessary '.' parts.
- * - Removes unnecessary '/..' parts.
- *
- * Based on code in the Node.js 'path' core module.
- *
- * @param aPath The path or url to normalize.
- */
-function normalize(aPath) {
- var path = aPath;
- var url = urlParse(aPath);
- if (url) {
- if (!url.path) {
- return aPath;
- }
- path = url.path;
- }
- var isAbsolute = exports.isAbsolute(path);
-
- var parts = path.split(/\/+/);
- for (var part, up = 0, i = parts.length - 1; i >= 0; i--) {
- part = parts[i];
- if (part === '.') {
- parts.splice(i, 1);
- } else if (part === '..') {
- up++;
- } else if (up > 0) {
- if (part === '') {
- // The first part is blank if the path is absolute. Trying to go
- // above the root is a no-op. Therefore we can remove all '..' parts
- // directly after the root.
- parts.splice(i + 1, up);
- up = 0;
- } else {
- parts.splice(i, 2);
- up--;
- }
- }
- }
- path = parts.join('/');
-
- if (path === '') {
- path = isAbsolute ? '/' : '.';
- }
-
- if (url) {
- url.path = path;
- return urlGenerate(url);
- }
- return path;
-}
-exports.normalize = normalize;
-
-/**
- * Joins two paths/URLs.
- *
- * @param aRoot The root path or URL.
- * @param aPath The path or URL to be joined with the root.
- *
- * - If aPath is a URL or a data URI, aPath is returned, unless aPath is a
- * scheme-relative URL: Then the scheme of aRoot, if any, is prepended
- * first.
- * - Otherwise aPath is a path. If aRoot is a URL, then its path portion
- * is updated with the result and aRoot is returned. Otherwise the result
- * is returned.
- * - If aPath is absolute, the result is aPath.
- * - Otherwise the two paths are joined with a slash.
- * - Joining for example 'http://' and 'www.example.com' is also supported.
- */
-function join(aRoot, aPath) {
- if (aRoot === "") {
- aRoot = ".";
- }
- if (aPath === "") {
- aPath = ".";
- }
- var aPathUrl = urlParse(aPath);
- var aRootUrl = urlParse(aRoot);
- if (aRootUrl) {
- aRoot = aRootUrl.path || '/';
- }
-
- // `join(foo, '//www.example.org')`
- if (aPathUrl && !aPathUrl.scheme) {
- if (aRootUrl) {
- aPathUrl.scheme = aRootUrl.scheme;
- }
- return urlGenerate(aPathUrl);
- }
-
- if (aPathUrl || aPath.match(dataUrlRegexp)) {
- return aPath;
- }
-
- // `join('http://', 'www.example.com')`
- if (aRootUrl && !aRootUrl.host && !aRootUrl.path) {
- aRootUrl.host = aPath;
- return urlGenerate(aRootUrl);
- }
-
- var joined = aPath.charAt(0) === '/'
- ? aPath
- : normalize(aRoot.replace(/\/+$/, '') + '/' + aPath);
-
- if (aRootUrl) {
- aRootUrl.path = joined;
- return urlGenerate(aRootUrl);
- }
- return joined;
-}
-exports.join = join;
-
-exports.isAbsolute = function (aPath) {
- return aPath.charAt(0) === '/' || !!aPath.match(urlRegexp);
-};
-
-/**
- * Make a path relative to a URL or another path.
- *
- * @param aRoot The root path or URL.
- * @param aPath The path or URL to be made relative to aRoot.
- */
-function relative(aRoot, aPath) {
- if (aRoot === "") {
- aRoot = ".";
- }
-
- aRoot = aRoot.replace(/\/$/, '');
-
- // It is possible for the path to be above the root. In this case, simply
- // checking whether the root is a prefix of the path won't work. Instead, we
- // need to remove components from the root one by one, until either we find
- // a prefix that fits, or we run out of components to remove.
- var level = 0;
- while (aPath.indexOf(aRoot + '/') !== 0) {
- var index = aRoot.lastIndexOf("/");
- if (index < 0) {
- return aPath;
- }
-
- // If the only part of the root that is left is the scheme (i.e. http://,
- // file:///, etc.), one or more slashes (/), or simply nothing at all, we
- // have exhausted all components, so the path is not relative to the root.
- aRoot = aRoot.slice(0, index);
- if (aRoot.match(/^([^\/]+:\/)?\/*$/)) {
- return aPath;
- }
-
- ++level;
- }
-
- // Make sure we add a "../" for each component we removed from the root.
- return Array(level + 1).join("../") + aPath.substr(aRoot.length + 1);
-}
-exports.relative = relative;
-
-var supportsNullProto = (function () {
- var obj = Object.create(null);
- return !('__proto__' in obj);
-}());
-
-function identity (s) {
- return s;
-}
-
-/**
- * Because behavior goes wacky when you set `__proto__` on objects, we
- * have to prefix all the strings in our set with an arbitrary character.
- *
- * See https://github.com/mozilla/source-map/pull/31 and
- * https://github.com/mozilla/source-map/issues/30
- *
- * @param String aStr
- */
-function toSetString(aStr) {
- if (isProtoString(aStr)) {
- return '$' + aStr;
- }
-
- return aStr;
-}
-exports.toSetString = supportsNullProto ? identity : toSetString;
-
-function fromSetString(aStr) {
- if (isProtoString(aStr)) {
- return aStr.slice(1);
- }
-
- return aStr;
-}
-exports.fromSetString = supportsNullProto ? identity : fromSetString;
-
-function isProtoString(s) {
- if (!s) {
- return false;
- }
-
- var length = s.length;
-
- if (length < 9 /* "__proto__".length */) {
- return false;
- }
-
- if (s.charCodeAt(length - 1) !== 95 /* '_' */ ||
- s.charCodeAt(length - 2) !== 95 /* '_' */ ||
- s.charCodeAt(length - 3) !== 111 /* 'o' */ ||
- s.charCodeAt(length - 4) !== 116 /* 't' */ ||
- s.charCodeAt(length - 5) !== 111 /* 'o' */ ||
- s.charCodeAt(length - 6) !== 114 /* 'r' */ ||
- s.charCodeAt(length - 7) !== 112 /* 'p' */ ||
- s.charCodeAt(length - 8) !== 95 /* '_' */ ||
- s.charCodeAt(length - 9) !== 95 /* '_' */) {
- return false;
- }
-
- for (var i = length - 10; i >= 0; i--) {
- if (s.charCodeAt(i) !== 36 /* '$' */) {
- return false;
- }
- }
-
- return true;
-}
-
-/**
- * Comparator between two mappings where the original positions are compared.
- *
- * Optionally pass in `true` as `onlyCompareGenerated` to consider two
- * mappings with the same original source/line/column, but different generated
- * line and column the same. Useful when searching for a mapping with a
- * stubbed out mapping.
- */
-function compareByOriginalPositions(mappingA, mappingB, onlyCompareOriginal) {
- var cmp = mappingA.source - mappingB.source;
- if (cmp !== 0) {
- return cmp;
- }
-
- cmp = mappingA.originalLine - mappingB.originalLine;
- if (cmp !== 0) {
- return cmp;
- }
-
- cmp = mappingA.originalColumn - mappingB.originalColumn;
- if (cmp !== 0 || onlyCompareOriginal) {
- return cmp;
- }
-
- cmp = mappingA.generatedColumn - mappingB.generatedColumn;
- if (cmp !== 0) {
- return cmp;
- }
-
- cmp = mappingA.generatedLine - mappingB.generatedLine;
- if (cmp !== 0) {
- return cmp;
- }
-
- return mappingA.name - mappingB.name;
-}
-exports.compareByOriginalPositions = compareByOriginalPositions;
-
-/**
- * Comparator between two mappings with deflated source and name indices where
- * the generated positions are compared.
- *
- * Optionally pass in `true` as `onlyCompareGenerated` to consider two
- * mappings with the same generated line and column, but different
- * source/name/original line and column the same. Useful when searching for a
- * mapping with a stubbed out mapping.
- */
-function compareByGeneratedPositionsDeflated(mappingA, mappingB, onlyCompareGenerated) {
- var cmp = mappingA.generatedLine - mappingB.generatedLine;
- if (cmp !== 0) {
- return cmp;
- }
-
- cmp = mappingA.generatedColumn - mappingB.generatedColumn;
- if (cmp !== 0 || onlyCompareGenerated) {
- return cmp;
- }
-
- cmp = mappingA.source - mappingB.source;
- if (cmp !== 0) {
- return cmp;
- }
-
- cmp = mappingA.originalLine - mappingB.originalLine;
- if (cmp !== 0) {
- return cmp;
- }
-
- cmp = mappingA.originalColumn - mappingB.originalColumn;
- if (cmp !== 0) {
- return cmp;
- }
-
- return mappingA.name - mappingB.name;
-}
-exports.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated;
-
-function strcmp(aStr1, aStr2) {
- if (aStr1 === aStr2) {
- return 0;
- }
-
- if (aStr1 > aStr2) {
- return 1;
- }
-
- return -1;
-}
-
-/**
- * Comparator between two mappings with inflated source and name strings where
- * the generated positions are compared.
- */
-function compareByGeneratedPositionsInflated(mappingA, mappingB) {
- var cmp = mappingA.generatedLine - mappingB.generatedLine;
- if (cmp !== 0) {
- return cmp;
- }
-
- cmp = mappingA.generatedColumn - mappingB.generatedColumn;
- if (cmp !== 0) {
- return cmp;
- }
-
- cmp = strcmp(mappingA.source, mappingB.source);
- if (cmp !== 0) {
- return cmp;
- }
-
- cmp = mappingA.originalLine - mappingB.originalLine;
- if (cmp !== 0) {
- return cmp;
- }
-
- cmp = mappingA.originalColumn - mappingB.originalColumn;
- if (cmp !== 0) {
- return cmp;
- }
-
- return strcmp(mappingA.name, mappingB.name);
-}
-exports.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated;
diff --git a/node_modules/@babel/generator/node_modules/source-map/package.json b/node_modules/@babel/generator/node_modules/source-map/package.json
deleted file mode 100644
index b1ef1cc0..00000000
--- a/node_modules/@babel/generator/node_modules/source-map/package.json
+++ /dev/null
@@ -1,214 +0,0 @@
-{
- "_args": [
- [
- "source-map@0.5.7",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "source-map@0.5.7",
- "_id": "source-map@0.5.7",
- "_inBundle": false,
- "_integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=",
- "_location": "/@babel/generator/source-map",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "source-map@0.5.7",
- "name": "source-map",
- "escapedName": "source-map",
- "rawSpec": "0.5.7",
- "saveSpec": null,
- "fetchSpec": "0.5.7"
- },
- "_requiredBy": [
- "/@babel/generator"
- ],
- "_resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz",
- "_spec": "0.5.7",
- "_where": "E:\\python\\setup-php",
- "author": {
- "name": "Nick Fitzgerald",
- "email": "nfitzgerald@mozilla.com"
- },
- "bugs": {
- "url": "https://github.com/mozilla/source-map/issues"
- },
- "contributors": [
- {
- "name": "Tobias Koppers",
- "email": "tobias.koppers@googlemail.com"
- },
- {
- "name": "Duncan Beevers",
- "email": "duncan@dweebd.com"
- },
- {
- "name": "Stephen Crane",
- "email": "scrane@mozilla.com"
- },
- {
- "name": "Ryan Seddon",
- "email": "seddon.ryan@gmail.com"
- },
- {
- "name": "Miles Elam",
- "email": "miles.elam@deem.com"
- },
- {
- "name": "Mihai Bazon",
- "email": "mihai.bazon@gmail.com"
- },
- {
- "name": "Michael Ficarra",
- "email": "github.public.email@michael.ficarra.me"
- },
- {
- "name": "Todd Wolfson",
- "email": "todd@twolfson.com"
- },
- {
- "name": "Alexander Solovyov",
- "email": "alexander@solovyov.net"
- },
- {
- "name": "Felix Gnass",
- "email": "fgnass@gmail.com"
- },
- {
- "name": "Conrad Irwin",
- "email": "conrad.irwin@gmail.com"
- },
- {
- "name": "usrbincc",
- "email": "usrbincc@yahoo.com"
- },
- {
- "name": "David Glasser",
- "email": "glasser@davidglasser.net"
- },
- {
- "name": "Chase Douglas",
- "email": "chase@newrelic.com"
- },
- {
- "name": "Evan Wallace",
- "email": "evan.exe@gmail.com"
- },
- {
- "name": "Heather Arthur",
- "email": "fayearthur@gmail.com"
- },
- {
- "name": "Hugh Kennedy",
- "email": "hughskennedy@gmail.com"
- },
- {
- "name": "David Glasser",
- "email": "glasser@davidglasser.net"
- },
- {
- "name": "Simon Lydell",
- "email": "simon.lydell@gmail.com"
- },
- {
- "name": "Jmeas Smith",
- "email": "jellyes2@gmail.com"
- },
- {
- "name": "Michael Z Goddard",
- "email": "mzgoddard@gmail.com"
- },
- {
- "name": "azu",
- "email": "azu@users.noreply.github.com"
- },
- {
- "name": "John Gozde",
- "email": "john@gozde.ca"
- },
- {
- "name": "Adam Kirkton",
- "email": "akirkton@truefitinnovation.com"
- },
- {
- "name": "Chris Montgomery",
- "email": "christopher.montgomery@dowjones.com"
- },
- {
- "name": "J. Ryan Stinnett",
- "email": "jryans@gmail.com"
- },
- {
- "name": "Jack Herrington",
- "email": "jherrington@walmartlabs.com"
- },
- {
- "name": "Chris Truter",
- "email": "jeffpalentine@gmail.com"
- },
- {
- "name": "Daniel Espeset",
- "email": "daniel@danielespeset.com"
- },
- {
- "name": "Jamie Wong",
- "email": "jamie.lf.wong@gmail.com"
- },
- {
- "name": "Eddy Bruël",
- "email": "ejpbruel@mozilla.com"
- },
- {
- "name": "Hawken Rives",
- "email": "hawkrives@gmail.com"
- },
- {
- "name": "Gilad Peleg",
- "email": "giladp007@gmail.com"
- },
- {
- "name": "djchie",
- "email": "djchie.dev@gmail.com"
- },
- {
- "name": "Gary Ye",
- "email": "garysye@gmail.com"
- },
- {
- "name": "Nicolas Lalevée",
- "email": "nicolas.lalevee@hibnet.org"
- }
- ],
- "description": "Generates and consumes source maps",
- "devDependencies": {
- "doctoc": "^0.15.0",
- "webpack": "^1.12.0"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "source-map.js",
- "lib/",
- "dist/source-map.debug.js",
- "dist/source-map.js",
- "dist/source-map.min.js",
- "dist/source-map.min.js.map"
- ],
- "homepage": "https://github.com/mozilla/source-map",
- "license": "BSD-3-Clause",
- "main": "./source-map.js",
- "name": "source-map",
- "repository": {
- "type": "git",
- "url": "git+ssh://git@github.com/mozilla/source-map.git"
- },
- "scripts": {
- "build": "webpack --color",
- "test": "npm run build && node test/run-tests.js",
- "toc": "doctoc --title '## Table of Contents' README.md && doctoc --title '## Table of Contents' CONTRIBUTING.md"
- },
- "typings": "source-map",
- "version": "0.5.7"
-}
diff --git a/node_modules/@babel/generator/node_modules/source-map/source-map.js b/node_modules/@babel/generator/node_modules/source-map/source-map.js
deleted file mode 100644
index bc88fe82..00000000
--- a/node_modules/@babel/generator/node_modules/source-map/source-map.js
+++ /dev/null
@@ -1,8 +0,0 @@
-/*
- * Copyright 2009-2011 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE.txt or:
- * http://opensource.org/licenses/BSD-3-Clause
- */
-exports.SourceMapGenerator = require('./lib/source-map-generator').SourceMapGenerator;
-exports.SourceMapConsumer = require('./lib/source-map-consumer').SourceMapConsumer;
-exports.SourceNode = require('./lib/source-node').SourceNode;
diff --git a/node_modules/@babel/generator/package.json b/node_modules/@babel/generator/package.json
deleted file mode 100644
index ce41eebc..00000000
--- a/node_modules/@babel/generator/package.json
+++ /dev/null
@@ -1,65 +0,0 @@
-{
- "_args": [
- [
- "@babel/generator@7.5.5",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/generator@7.5.5",
- "_id": "@babel/generator@7.5.5",
- "_inBundle": false,
- "_integrity": "sha512-ETI/4vyTSxTzGnU2c49XHv2zhExkv9JHLTwDAFz85kmcwuShvYG2H08FwgIguQf4JC75CBnXAUM5PqeF4fj0nQ==",
- "_location": "/@babel/generator",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/generator@7.5.5",
- "name": "@babel/generator",
- "escapedName": "@babel%2fgenerator",
- "scope": "@babel",
- "rawSpec": "7.5.5",
- "saveSpec": null,
- "fetchSpec": "7.5.5"
- },
- "_requiredBy": [
- "/@babel/core",
- "/@babel/traverse",
- "/istanbul-lib-instrument"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.5.5.tgz",
- "_spec": "7.5.5",
- "_where": "E:\\python\\setup-php",
- "author": {
- "name": "Sebastian McKenzie",
- "email": "sebmck@gmail.com"
- },
- "dependencies": {
- "@babel/types": "^7.5.5",
- "jsesc": "^2.5.1",
- "lodash": "^4.17.13",
- "source-map": "^0.5.0",
- "trim-right": "^1.0.1"
- },
- "description": "Turns an AST into code.",
- "devDependencies": {
- "@babel/helper-fixtures": "^7.5.5",
- "@babel/parser": "^7.5.5"
- },
- "files": [
- "lib"
- ],
- "gitHead": "0407f034f09381b95e9cabefbf6b176c76485a43",
- "homepage": "https://babeljs.io/",
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/generator",
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-generator"
- },
- "version": "7.5.5"
-}
diff --git a/node_modules/@babel/helper-annotate-as-pure/LICENSE b/node_modules/@babel/helper-annotate-as-pure/LICENSE
deleted file mode 100644
index 620366eb..00000000
--- a/node_modules/@babel/helper-annotate-as-pure/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-2018 Sebastian McKenzie
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/helper-annotate-as-pure/README.md b/node_modules/@babel/helper-annotate-as-pure/README.md
deleted file mode 100644
index 82931e4f..00000000
--- a/node_modules/@babel/helper-annotate-as-pure/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/helper-annotate-as-pure
-
-> Helper function to annotate paths and nodes with #__PURE__ comment
-
-See our website [@babel/helper-annotate-as-pure](https://babeljs.io/docs/en/next/babel-helper-annotate-as-pure.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/helper-annotate-as-pure
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/helper-annotate-as-pure --dev
-```
diff --git a/node_modules/@babel/helper-annotate-as-pure/lib/index.js b/node_modules/@babel/helper-annotate-as-pure/lib/index.js
deleted file mode 100644
index 9920e9be..00000000
--- a/node_modules/@babel/helper-annotate-as-pure/lib/index.js
+++ /dev/null
@@ -1,34 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = annotateAsPure;
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-const PURE_ANNOTATION = "#__PURE__";
-
-const isPureAnnotated = ({
- leadingComments
-}) => !!leadingComments && leadingComments.some(comment => /[@#]__PURE__/.test(comment.value));
-
-function annotateAsPure(pathOrNode) {
- const node = pathOrNode.node || pathOrNode;
-
- if (isPureAnnotated(node)) {
- return;
- }
-
- t().addComment(node, "leading", PURE_ANNOTATION);
-}
\ No newline at end of file
diff --git a/node_modules/@babel/helper-annotate-as-pure/package.json b/node_modules/@babel/helper-annotate-as-pure/package.json
deleted file mode 100644
index 5c38d908..00000000
--- a/node_modules/@babel/helper-annotate-as-pure/package.json
+++ /dev/null
@@ -1,45 +0,0 @@
-{
- "_args": [
- [
- "@babel/helper-annotate-as-pure@7.0.0",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/helper-annotate-as-pure@7.0.0",
- "_id": "@babel/helper-annotate-as-pure@7.0.0",
- "_inBundle": false,
- "_integrity": "sha512-3UYcJUj9kvSLbLbUIfQTqzcy5VX7GRZ/CCDrnOaZorFFM01aXp1+GJwuFGV4NDDoAS+mOUyHcO6UD/RfqOks3Q==",
- "_location": "/@babel/helper-annotate-as-pure",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/helper-annotate-as-pure@7.0.0",
- "name": "@babel/helper-annotate-as-pure",
- "escapedName": "@babel%2fhelper-annotate-as-pure",
- "scope": "@babel",
- "rawSpec": "7.0.0",
- "saveSpec": null,
- "fetchSpec": "7.0.0"
- },
- "_requiredBy": [
- "/@babel/helper-remap-async-to-generator",
- "/@babel/plugin-transform-classes",
- "/@babel/plugin-transform-template-literals"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.0.0.tgz",
- "_spec": "7.0.0",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/types": "^7.0.0"
- },
- "description": "Helper function to annotate paths and nodes with #__PURE__ comment",
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/helper-annotate-as-pure",
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-helper-annotate-as-pure"
- },
- "version": "7.0.0"
-}
diff --git a/node_modules/@babel/helper-builder-binary-assignment-operator-visitor/LICENSE b/node_modules/@babel/helper-builder-binary-assignment-operator-visitor/LICENSE
deleted file mode 100644
index a06ec0e7..00000000
--- a/node_modules/@babel/helper-builder-binary-assignment-operator-visitor/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-2018 Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/helper-builder-binary-assignment-operator-visitor/README.md b/node_modules/@babel/helper-builder-binary-assignment-operator-visitor/README.md
deleted file mode 100644
index 6c0b5b39..00000000
--- a/node_modules/@babel/helper-builder-binary-assignment-operator-visitor/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/helper-builder-binary-assignment-operator-visitor
-
-> Helper function to build binary assignment operator visitors
-
-See our website [@babel/helper-builder-binary-assignment-operator-visitor](https://babeljs.io/docs/en/next/babel-helper-builder-binary-assignment-operator-visitor.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/helper-builder-binary-assignment-operator-visitor
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/helper-builder-binary-assignment-operator-visitor --dev
-```
diff --git a/node_modules/@babel/helper-builder-binary-assignment-operator-visitor/lib/index.js b/node_modules/@babel/helper-builder-binary-assignment-operator-visitor/lib/index.js
deleted file mode 100644
index f3562ef4..00000000
--- a/node_modules/@babel/helper-builder-binary-assignment-operator-visitor/lib/index.js
+++ /dev/null
@@ -1,61 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = _default;
-
-function _helperExplodeAssignableExpression() {
- const data = _interopRequireDefault(require("@babel/helper-explode-assignable-expression"));
-
- _helperExplodeAssignableExpression = function () {
- return data;
- };
-
- return data;
-}
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function _default(opts) {
- const {
- build,
- operator
- } = opts;
- return {
- AssignmentExpression(path) {
- const {
- node,
- scope
- } = path;
- if (node.operator !== operator + "=") return;
- const nodes = [];
- const exploded = (0, _helperExplodeAssignableExpression().default)(node.left, nodes, this, scope);
- nodes.push(t().assignmentExpression("=", exploded.ref, build(exploded.uid, node.right)));
- path.replaceWith(t().sequenceExpression(nodes));
- },
-
- BinaryExpression(path) {
- const {
- node
- } = path;
-
- if (node.operator === operator) {
- path.replaceWith(build(node.left, node.right));
- }
- }
-
- };
-}
\ No newline at end of file
diff --git a/node_modules/@babel/helper-builder-binary-assignment-operator-visitor/package.json b/node_modules/@babel/helper-builder-binary-assignment-operator-visitor/package.json
deleted file mode 100644
index 8d4a09b9..00000000
--- a/node_modules/@babel/helper-builder-binary-assignment-operator-visitor/package.json
+++ /dev/null
@@ -1,47 +0,0 @@
-{
- "_args": [
- [
- "@babel/helper-builder-binary-assignment-operator-visitor@7.1.0",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/helper-builder-binary-assignment-operator-visitor@7.1.0",
- "_id": "@babel/helper-builder-binary-assignment-operator-visitor@7.1.0",
- "_inBundle": false,
- "_integrity": "sha512-qNSR4jrmJ8M1VMM9tibvyRAHXQs2PmaksQF7c1CGJNipfe3D8p+wgNwgso/P2A2r2mdgBWAXljNWR0QRZAMW8w==",
- "_location": "/@babel/helper-builder-binary-assignment-operator-visitor",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/helper-builder-binary-assignment-operator-visitor@7.1.0",
- "name": "@babel/helper-builder-binary-assignment-operator-visitor",
- "escapedName": "@babel%2fhelper-builder-binary-assignment-operator-visitor",
- "scope": "@babel",
- "rawSpec": "7.1.0",
- "saveSpec": null,
- "fetchSpec": "7.1.0"
- },
- "_requiredBy": [
- "/@babel/plugin-transform-exponentiation-operator"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.1.0.tgz",
- "_spec": "7.1.0",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-explode-assignable-expression": "^7.1.0",
- "@babel/types": "^7.0.0"
- },
- "description": "Helper function to build binary assignment operator visitors",
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/helper-builder-binary-assignment-operator-visitor",
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-helper-builder-binary-assignment-operator-visitor"
- },
- "version": "7.1.0"
-}
diff --git a/node_modules/@babel/helper-call-delegate/LICENSE b/node_modules/@babel/helper-call-delegate/LICENSE
deleted file mode 100644
index f31575ec..00000000
--- a/node_modules/@babel/helper-call-delegate/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-present Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/helper-call-delegate/README.md b/node_modules/@babel/helper-call-delegate/README.md
deleted file mode 100644
index 468c95b7..00000000
--- a/node_modules/@babel/helper-call-delegate/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/helper-call-delegate
-
-> Helper function to call delegate
-
-See our website [@babel/helper-call-delegate](https://babeljs.io/docs/en/next/babel-helper-call-delegate.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/helper-call-delegate
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/helper-call-delegate --dev
-```
diff --git a/node_modules/@babel/helper-call-delegate/lib/index.js b/node_modules/@babel/helper-call-delegate/lib/index.js
deleted file mode 100644
index 23be55f6..00000000
--- a/node_modules/@babel/helper-call-delegate/lib/index.js
+++ /dev/null
@@ -1,84 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = _default;
-
-function _helperHoistVariables() {
- const data = _interopRequireDefault(require("@babel/helper-hoist-variables"));
-
- _helperHoistVariables = function () {
- return data;
- };
-
- return data;
-}
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-const visitor = {
- enter(path, state) {
- if (path.isThisExpression()) {
- state.foundThis = true;
- }
-
- if (path.isReferencedIdentifier({
- name: "arguments"
- })) {
- state.foundArguments = true;
- }
- },
-
- Function(path) {
- path.skip();
- }
-
-};
-
-function _default(path, scope = path.scope) {
- const {
- node
- } = path;
- const container = t().functionExpression(null, [], node.body, node.generator, node.async);
- let callee = container;
- let args = [];
- (0, _helperHoistVariables().default)(path, id => scope.push({
- id
- }));
- const state = {
- foundThis: false,
- foundArguments: false
- };
- path.traverse(visitor, state);
-
- if (state.foundArguments || state.foundThis) {
- callee = t().memberExpression(container, t().identifier("apply"));
- args = [];
-
- if (state.foundThis) {
- args.push(t().thisExpression());
- }
-
- if (state.foundArguments) {
- if (!state.foundThis) args.push(t().nullLiteral());
- args.push(t().identifier("arguments"));
- }
- }
-
- let call = t().callExpression(callee, args);
- if (node.generator) call = t().yieldExpression(call, true);
- return t().returnStatement(call);
-}
\ No newline at end of file
diff --git a/node_modules/@babel/helper-call-delegate/package.json b/node_modules/@babel/helper-call-delegate/package.json
deleted file mode 100644
index 9fa02c11..00000000
--- a/node_modules/@babel/helper-call-delegate/package.json
+++ /dev/null
@@ -1,49 +0,0 @@
-{
- "_args": [
- [
- "@babel/helper-call-delegate@7.4.4",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/helper-call-delegate@7.4.4",
- "_id": "@babel/helper-call-delegate@7.4.4",
- "_inBundle": false,
- "_integrity": "sha512-l79boDFJ8S1c5hvQvG+rc+wHw6IuH7YldmRKsYtpbawsxURu/paVy57FZMomGK22/JckepaikOkY0MoAmdyOlQ==",
- "_location": "/@babel/helper-call-delegate",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/helper-call-delegate@7.4.4",
- "name": "@babel/helper-call-delegate",
- "escapedName": "@babel%2fhelper-call-delegate",
- "scope": "@babel",
- "rawSpec": "7.4.4",
- "saveSpec": null,
- "fetchSpec": "7.4.4"
- },
- "_requiredBy": [
- "/@babel/plugin-transform-parameters"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/helper-call-delegate/-/helper-call-delegate-7.4.4.tgz",
- "_spec": "7.4.4",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-hoist-variables": "^7.4.4",
- "@babel/traverse": "^7.4.4",
- "@babel/types": "^7.4.4"
- },
- "description": "Helper function to call delegate",
- "gitHead": "2c88694388831b1e5b88e4bbed6781eb2be1edba",
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/helper-call-delegate",
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-helper-call-delegate"
- },
- "version": "7.4.4"
-}
diff --git a/node_modules/@babel/helper-define-map/LICENSE b/node_modules/@babel/helper-define-map/LICENSE
deleted file mode 100644
index f31575ec..00000000
--- a/node_modules/@babel/helper-define-map/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-present Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/helper-define-map/README.md b/node_modules/@babel/helper-define-map/README.md
deleted file mode 100644
index b0bde3a8..00000000
--- a/node_modules/@babel/helper-define-map/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/helper-define-map
-
-> Helper function to define a map
-
-See our website [@babel/helper-define-map](https://babeljs.io/docs/en/next/babel-helper-define-map.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/helper-define-map
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/helper-define-map --dev
-```
diff --git a/node_modules/@babel/helper-define-map/lib/index.js b/node_modules/@babel/helper-define-map/lib/index.js
deleted file mode 100644
index 676bc249..00000000
--- a/node_modules/@babel/helper-define-map/lib/index.js
+++ /dev/null
@@ -1,165 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.push = push;
-exports.hasComputed = hasComputed;
-exports.toComputedObjectFromClass = toComputedObjectFromClass;
-exports.toClassObject = toClassObject;
-exports.toDefineObject = toDefineObject;
-
-function _helperFunctionName() {
- const data = _interopRequireDefault(require("@babel/helper-function-name"));
-
- _helperFunctionName = function () {
- return data;
- };
-
- return data;
-}
-
-function _has() {
- const data = _interopRequireDefault(require("lodash/has"));
-
- _has = function () {
- return data;
- };
-
- return data;
-}
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function toKind(node) {
- if (t().isClassMethod(node) || t().isObjectMethod(node)) {
- if (node.kind === "get" || node.kind === "set") {
- return node.kind;
- }
- }
-
- return "value";
-}
-
-function push(mutatorMap, node, kind, file, scope) {
- const alias = t().toKeyAlias(node);
- let map = {};
- if ((0, _has().default)(mutatorMap, alias)) map = mutatorMap[alias];
- mutatorMap[alias] = map;
- map._inherits = map._inherits || [];
-
- map._inherits.push(node);
-
- map._key = node.key;
-
- if (node.computed) {
- map._computed = true;
- }
-
- if (node.decorators) {
- const decorators = map.decorators = map.decorators || t().arrayExpression([]);
- decorators.elements = decorators.elements.concat(node.decorators.map(dec => dec.expression).reverse());
- }
-
- if (map.value || map.initializer) {
- throw file.buildCodeFrameError(node, "Key conflict with sibling node");
- }
-
- let key, value;
-
- if (t().isObjectProperty(node) || t().isObjectMethod(node) || t().isClassMethod(node)) {
- key = t().toComputedKey(node, node.key);
- }
-
- if (t().isProperty(node)) {
- value = node.value;
- } else if (t().isObjectMethod(node) || t().isClassMethod(node)) {
- value = t().functionExpression(null, node.params, node.body, node.generator, node.async);
- value.returnType = node.returnType;
- }
-
- const inheritedKind = toKind(node);
-
- if (!kind || inheritedKind !== "value") {
- kind = inheritedKind;
- }
-
- if (scope && t().isStringLiteral(key) && (kind === "value" || kind === "initializer") && t().isFunctionExpression(value)) {
- value = (0, _helperFunctionName().default)({
- id: key,
- node: value,
- scope
- });
- }
-
- if (value) {
- t().inheritsComments(value, node);
- map[kind] = value;
- }
-
- return map;
-}
-
-function hasComputed(mutatorMap) {
- for (const key of Object.keys(mutatorMap)) {
- if (mutatorMap[key]._computed) {
- return true;
- }
- }
-
- return false;
-}
-
-function toComputedObjectFromClass(obj) {
- const objExpr = t().arrayExpression([]);
-
- for (let i = 0; i < obj.properties.length; i++) {
- const prop = obj.properties[i];
- const val = prop.value;
- val.properties.unshift(t().objectProperty(t().identifier("key"), t().toComputedKey(prop)));
- objExpr.elements.push(val);
- }
-
- return objExpr;
-}
-
-function toClassObject(mutatorMap) {
- const objExpr = t().objectExpression([]);
- Object.keys(mutatorMap).forEach(function (mutatorMapKey) {
- const map = mutatorMap[mutatorMapKey];
- const mapNode = t().objectExpression([]);
- const propNode = t().objectProperty(map._key, mapNode, map._computed);
- Object.keys(map).forEach(function (key) {
- const node = map[key];
- if (key[0] === "_") return;
- const prop = t().objectProperty(t().identifier(key), node);
- t().inheritsComments(prop, node);
- t().removeComments(node);
- mapNode.properties.push(prop);
- });
- objExpr.properties.push(propNode);
- });
- return objExpr;
-}
-
-function toDefineObject(mutatorMap) {
- Object.keys(mutatorMap).forEach(function (key) {
- const map = mutatorMap[key];
- if (map.value) map.writable = t().booleanLiteral(true);
- map.configurable = t().booleanLiteral(true);
- map.enumerable = t().booleanLiteral(true);
- });
- return toClassObject(mutatorMap);
-}
\ No newline at end of file
diff --git a/node_modules/@babel/helper-define-map/package.json b/node_modules/@babel/helper-define-map/package.json
deleted file mode 100644
index c90893ec..00000000
--- a/node_modules/@babel/helper-define-map/package.json
+++ /dev/null
@@ -1,49 +0,0 @@
-{
- "_args": [
- [
- "@babel/helper-define-map@7.5.5",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/helper-define-map@7.5.5",
- "_id": "@babel/helper-define-map@7.5.5",
- "_inBundle": false,
- "_integrity": "sha512-fTfxx7i0B5NJqvUOBBGREnrqbTxRh7zinBANpZXAVDlsZxYdclDp467G1sQ8VZYMnAURY3RpBUAgOYT9GfzHBg==",
- "_location": "/@babel/helper-define-map",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/helper-define-map@7.5.5",
- "name": "@babel/helper-define-map",
- "escapedName": "@babel%2fhelper-define-map",
- "scope": "@babel",
- "rawSpec": "7.5.5",
- "saveSpec": null,
- "fetchSpec": "7.5.5"
- },
- "_requiredBy": [
- "/@babel/plugin-transform-classes"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/helper-define-map/-/helper-define-map-7.5.5.tgz",
- "_spec": "7.5.5",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-function-name": "^7.1.0",
- "@babel/types": "^7.5.5",
- "lodash": "^4.17.13"
- },
- "description": "Helper function to define a map",
- "gitHead": "0407f034f09381b95e9cabefbf6b176c76485a43",
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/helper-define-map",
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-helper-define-map"
- },
- "version": "7.5.5"
-}
diff --git a/node_modules/@babel/helper-explode-assignable-expression/LICENSE b/node_modules/@babel/helper-explode-assignable-expression/LICENSE
deleted file mode 100644
index a06ec0e7..00000000
--- a/node_modules/@babel/helper-explode-assignable-expression/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-2018 Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/helper-explode-assignable-expression/README.md b/node_modules/@babel/helper-explode-assignable-expression/README.md
deleted file mode 100644
index 9bb5ab93..00000000
--- a/node_modules/@babel/helper-explode-assignable-expression/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/helper-explode-assignable-expression
-
-> Helper function to explode an assignable expression
-
-See our website [@babel/helper-explode-assignable-expression](https://babeljs.io/docs/en/next/babel-helper-explode-assignable-expression.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/helper-explode-assignable-expression
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/helper-explode-assignable-expression --dev
-```
diff --git a/node_modules/@babel/helper-explode-assignable-expression/lib/index.js b/node_modules/@babel/helper-explode-assignable-expression/lib/index.js
deleted file mode 100644
index 7f1b1104..00000000
--- a/node_modules/@babel/helper-explode-assignable-expression/lib/index.js
+++ /dev/null
@@ -1,86 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = _default;
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function getObjRef(node, nodes, file, scope) {
- let ref;
-
- if (t().isSuper(node)) {
- return node;
- } else if (t().isIdentifier(node)) {
- if (scope.hasBinding(node.name)) {
- return node;
- } else {
- ref = node;
- }
- } else if (t().isMemberExpression(node)) {
- ref = node.object;
-
- if (t().isSuper(ref) || t().isIdentifier(ref) && scope.hasBinding(ref.name)) {
- return ref;
- }
- } else {
- throw new Error(`We can't explode this node type ${node.type}`);
- }
-
- const temp = scope.generateUidIdentifierBasedOnNode(ref);
- scope.push({
- id: temp
- });
- nodes.push(t().assignmentExpression("=", t().cloneNode(temp), t().cloneNode(ref)));
- return temp;
-}
-
-function getPropRef(node, nodes, file, scope) {
- const prop = node.property;
- const key = t().toComputedKey(node, prop);
- if (t().isLiteral(key) && t().isPureish(key)) return key;
- const temp = scope.generateUidIdentifierBasedOnNode(prop);
- scope.push({
- id: temp
- });
- nodes.push(t().assignmentExpression("=", t().cloneNode(temp), t().cloneNode(prop)));
- return temp;
-}
-
-function _default(node, nodes, file, scope, allowedSingleIdent) {
- let obj;
-
- if (t().isIdentifier(node) && allowedSingleIdent) {
- obj = node;
- } else {
- obj = getObjRef(node, nodes, file, scope);
- }
-
- let ref, uid;
-
- if (t().isIdentifier(node)) {
- ref = t().cloneNode(node);
- uid = obj;
- } else {
- const prop = getPropRef(node, nodes, file, scope);
- const computed = node.computed || t().isLiteral(prop);
- uid = t().memberExpression(t().cloneNode(obj), t().cloneNode(prop), computed);
- ref = t().memberExpression(t().cloneNode(obj), t().cloneNode(prop), computed);
- }
-
- return {
- uid: uid,
- ref: ref
- };
-}
\ No newline at end of file
diff --git a/node_modules/@babel/helper-explode-assignable-expression/package.json b/node_modules/@babel/helper-explode-assignable-expression/package.json
deleted file mode 100644
index f2028744..00000000
--- a/node_modules/@babel/helper-explode-assignable-expression/package.json
+++ /dev/null
@@ -1,47 +0,0 @@
-{
- "_args": [
- [
- "@babel/helper-explode-assignable-expression@7.1.0",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/helper-explode-assignable-expression@7.1.0",
- "_id": "@babel/helper-explode-assignable-expression@7.1.0",
- "_inBundle": false,
- "_integrity": "sha512-NRQpfHrJ1msCHtKjbzs9YcMmJZOg6mQMmGRB+hbamEdG5PNpaSm95275VD92DvJKuyl0s2sFiDmMZ+EnnvufqA==",
- "_location": "/@babel/helper-explode-assignable-expression",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/helper-explode-assignable-expression@7.1.0",
- "name": "@babel/helper-explode-assignable-expression",
- "escapedName": "@babel%2fhelper-explode-assignable-expression",
- "scope": "@babel",
- "rawSpec": "7.1.0",
- "saveSpec": null,
- "fetchSpec": "7.1.0"
- },
- "_requiredBy": [
- "/@babel/helper-builder-binary-assignment-operator-visitor"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.1.0.tgz",
- "_spec": "7.1.0",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/traverse": "^7.1.0",
- "@babel/types": "^7.0.0"
- },
- "description": "Helper function to explode an assignable expression",
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/helper-explode-assignable-expression",
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-helper-explode-assignable-expression"
- },
- "version": "7.1.0"
-}
diff --git a/node_modules/@babel/helper-function-name/LICENSE b/node_modules/@babel/helper-function-name/LICENSE
deleted file mode 100644
index a06ec0e7..00000000
--- a/node_modules/@babel/helper-function-name/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-2018 Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/helper-function-name/README.md b/node_modules/@babel/helper-function-name/README.md
deleted file mode 100644
index a8a6809a..00000000
--- a/node_modules/@babel/helper-function-name/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/helper-function-name
-
-> Helper function to change the property 'name' of every function
-
-See our website [@babel/helper-function-name](https://babeljs.io/docs/en/next/babel-helper-function-name.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/helper-function-name
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/helper-function-name --dev
-```
diff --git a/node_modules/@babel/helper-function-name/lib/index.js b/node_modules/@babel/helper-function-name/lib/index.js
deleted file mode 100644
index c6dd4afb..00000000
--- a/node_modules/@babel/helper-function-name/lib/index.js
+++ /dev/null
@@ -1,198 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = _default;
-
-function _helperGetFunctionArity() {
- const data = _interopRequireDefault(require("@babel/helper-get-function-arity"));
-
- _helperGetFunctionArity = function () {
- return data;
- };
-
- return data;
-}
-
-function _template() {
- const data = _interopRequireDefault(require("@babel/template"));
-
- _template = function () {
- return data;
- };
-
- return data;
-}
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-const buildPropertyMethodAssignmentWrapper = (0, _template().default)(`
- (function (FUNCTION_KEY) {
- function FUNCTION_ID() {
- return FUNCTION_KEY.apply(this, arguments);
- }
-
- FUNCTION_ID.toString = function () {
- return FUNCTION_KEY.toString();
- }
-
- return FUNCTION_ID;
- })(FUNCTION)
-`);
-const buildGeneratorPropertyMethodAssignmentWrapper = (0, _template().default)(`
- (function (FUNCTION_KEY) {
- function* FUNCTION_ID() {
- return yield* FUNCTION_KEY.apply(this, arguments);
- }
-
- FUNCTION_ID.toString = function () {
- return FUNCTION_KEY.toString();
- };
-
- return FUNCTION_ID;
- })(FUNCTION)
-`);
-const visitor = {
- "ReferencedIdentifier|BindingIdentifier"(path, state) {
- if (path.node.name !== state.name) return;
- const localDeclar = path.scope.getBindingIdentifier(state.name);
- if (localDeclar !== state.outerDeclar) return;
- state.selfReference = true;
- path.stop();
- }
-
-};
-
-function getNameFromLiteralId(id) {
- if (t().isNullLiteral(id)) {
- return "null";
- }
-
- if (t().isRegExpLiteral(id)) {
- return `_${id.pattern}_${id.flags}`;
- }
-
- if (t().isTemplateLiteral(id)) {
- return id.quasis.map(quasi => quasi.value.raw).join("");
- }
-
- if (id.value !== undefined) {
- return id.value + "";
- }
-
- return "";
-}
-
-function wrap(state, method, id, scope) {
- if (state.selfReference) {
- if (scope.hasBinding(id.name) && !scope.hasGlobal(id.name)) {
- scope.rename(id.name);
- } else {
- if (!t().isFunction(method)) return;
- let build = buildPropertyMethodAssignmentWrapper;
-
- if (method.generator) {
- build = buildGeneratorPropertyMethodAssignmentWrapper;
- }
-
- const template = build({
- FUNCTION: method,
- FUNCTION_ID: id,
- FUNCTION_KEY: scope.generateUidIdentifier(id.name)
- }).expression;
- const params = template.callee.body.body[0].params;
-
- for (let i = 0, len = (0, _helperGetFunctionArity().default)(method); i < len; i++) {
- params.push(scope.generateUidIdentifier("x"));
- }
-
- return template;
- }
- }
-
- method.id = id;
- scope.getProgramParent().references[id.name] = true;
-}
-
-function visit(node, name, scope) {
- const state = {
- selfAssignment: false,
- selfReference: false,
- outerDeclar: scope.getBindingIdentifier(name),
- references: [],
- name: name
- };
- const binding = scope.getOwnBinding(name);
-
- if (binding) {
- if (binding.kind === "param") {
- state.selfReference = true;
- } else {}
- } else if (state.outerDeclar || scope.hasGlobal(name)) {
- scope.traverse(node, visitor, state);
- }
-
- return state;
-}
-
-function _default({
- node,
- parent,
- scope,
- id
-}, localBinding = false) {
- if (node.id) return;
-
- if ((t().isObjectProperty(parent) || t().isObjectMethod(parent, {
- kind: "method"
- })) && (!parent.computed || t().isLiteral(parent.key))) {
- id = parent.key;
- } else if (t().isVariableDeclarator(parent)) {
- id = parent.id;
-
- if (t().isIdentifier(id) && !localBinding) {
- const binding = scope.parent.getBinding(id.name);
-
- if (binding && binding.constant && scope.getBinding(id.name) === binding) {
- node.id = t().cloneNode(id);
- node.id[t().NOT_LOCAL_BINDING] = true;
- return;
- }
- }
- } else if (t().isAssignmentExpression(parent)) {
- id = parent.left;
- } else if (!id) {
- return;
- }
-
- let name;
-
- if (id && t().isLiteral(id)) {
- name = getNameFromLiteralId(id);
- } else if (id && t().isIdentifier(id)) {
- name = id.name;
- }
-
- if (name === undefined) {
- return;
- }
-
- name = t().toBindingIdentifierName(name);
- id = t().identifier(name);
- id[t().NOT_LOCAL_BINDING] = true;
- const state = visit(node, name, scope);
- return wrap(state, node, id, scope) || node;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/helper-function-name/package.json b/node_modules/@babel/helper-function-name/package.json
deleted file mode 100644
index 7ad1323f..00000000
--- a/node_modules/@babel/helper-function-name/package.json
+++ /dev/null
@@ -1,52 +0,0 @@
-{
- "_args": [
- [
- "@babel/helper-function-name@7.1.0",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/helper-function-name@7.1.0",
- "_id": "@babel/helper-function-name@7.1.0",
- "_inBundle": false,
- "_integrity": "sha512-A95XEoCpb3TO+KZzJ4S/5uW5fNe26DjBGqf1o9ucyLyCmi1dXq/B3c8iaWTfBk3VvetUxl16e8tIrd5teOCfGw==",
- "_location": "/@babel/helper-function-name",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/helper-function-name@7.1.0",
- "name": "@babel/helper-function-name",
- "escapedName": "@babel%2fhelper-function-name",
- "scope": "@babel",
- "rawSpec": "7.1.0",
- "saveSpec": null,
- "fetchSpec": "7.1.0"
- },
- "_requiredBy": [
- "/@babel/helper-define-map",
- "/@babel/helper-wrap-function",
- "/@babel/plugin-transform-classes",
- "/@babel/plugin-transform-function-name",
- "/@babel/traverse"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.1.0.tgz",
- "_spec": "7.1.0",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-get-function-arity": "^7.0.0",
- "@babel/template": "^7.1.0",
- "@babel/types": "^7.0.0"
- },
- "description": "Helper function to change the property 'name' of every function",
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/helper-function-name",
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-helper-function-name"
- },
- "version": "7.1.0"
-}
diff --git a/node_modules/@babel/helper-get-function-arity/LICENSE b/node_modules/@babel/helper-get-function-arity/LICENSE
deleted file mode 100644
index 620366eb..00000000
--- a/node_modules/@babel/helper-get-function-arity/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-2018 Sebastian McKenzie
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/helper-get-function-arity/README.md b/node_modules/@babel/helper-get-function-arity/README.md
deleted file mode 100644
index 1de8084f..00000000
--- a/node_modules/@babel/helper-get-function-arity/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/helper-get-function-arity
-
-> Helper function to get function arity
-
-See our website [@babel/helper-get-function-arity](https://babeljs.io/docs/en/next/babel-helper-get-function-arity.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/helper-get-function-arity
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/helper-get-function-arity --dev
-```
diff --git a/node_modules/@babel/helper-get-function-arity/lib/index.js b/node_modules/@babel/helper-get-function-arity/lib/index.js
deleted file mode 100644
index 5723401d..00000000
--- a/node_modules/@babel/helper-get-function-arity/lib/index.js
+++ /dev/null
@@ -1,32 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = _default;
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function _default(node) {
- const params = node.params;
-
- for (let i = 0; i < params.length; i++) {
- const param = params[i];
-
- if (t().isAssignmentPattern(param) || t().isRestElement(param)) {
- return i;
- }
- }
-
- return params.length;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/helper-get-function-arity/package.json b/node_modules/@babel/helper-get-function-arity/package.json
deleted file mode 100644
index 89e607be..00000000
--- a/node_modules/@babel/helper-get-function-arity/package.json
+++ /dev/null
@@ -1,44 +0,0 @@
-{
- "_args": [
- [
- "@babel/helper-get-function-arity@7.0.0",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/helper-get-function-arity@7.0.0",
- "_id": "@babel/helper-get-function-arity@7.0.0",
- "_inBundle": false,
- "_integrity": "sha512-r2DbJeg4svYvt3HOS74U4eWKsUAMRH01Z1ds1zx8KNTPtpTL5JAsdFv8BNyOpVqdFhHkkRDIg5B4AsxmkjAlmQ==",
- "_location": "/@babel/helper-get-function-arity",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/helper-get-function-arity@7.0.0",
- "name": "@babel/helper-get-function-arity",
- "escapedName": "@babel%2fhelper-get-function-arity",
- "scope": "@babel",
- "rawSpec": "7.0.0",
- "saveSpec": null,
- "fetchSpec": "7.0.0"
- },
- "_requiredBy": [
- "/@babel/helper-function-name",
- "/@babel/plugin-transform-parameters"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0.tgz",
- "_spec": "7.0.0",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/types": "^7.0.0"
- },
- "description": "Helper function to get function arity",
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/helper-get-function-arity",
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-helper-get-function-arity"
- },
- "version": "7.0.0"
-}
diff --git a/node_modules/@babel/helper-hoist-variables/LICENSE b/node_modules/@babel/helper-hoist-variables/LICENSE
deleted file mode 100644
index f31575ec..00000000
--- a/node_modules/@babel/helper-hoist-variables/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-present Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/helper-hoist-variables/README.md b/node_modules/@babel/helper-hoist-variables/README.md
deleted file mode 100644
index a6454d32..00000000
--- a/node_modules/@babel/helper-hoist-variables/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/helper-hoist-variables
-
-> Helper function to hoist variables
-
-See our website [@babel/helper-hoist-variables](https://babeljs.io/docs/en/next/babel-helper-hoist-variables.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/helper-hoist-variables
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/helper-hoist-variables --dev
-```
diff --git a/node_modules/@babel/helper-hoist-variables/lib/index.js b/node_modules/@babel/helper-hoist-variables/lib/index.js
deleted file mode 100644
index dd5238ec..00000000
--- a/node_modules/@babel/helper-hoist-variables/lib/index.js
+++ /dev/null
@@ -1,63 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = _default;
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-const visitor = {
- Scope(path, state) {
- if (state.kind === "let") path.skip();
- },
-
- Function(path) {
- path.skip();
- },
-
- VariableDeclaration(path, state) {
- if (state.kind && path.node.kind !== state.kind) return;
- const nodes = [];
- const declarations = path.get("declarations");
- let firstId;
-
- for (const declar of declarations) {
- firstId = declar.node.id;
-
- if (declar.node.init) {
- nodes.push(t().expressionStatement(t().assignmentExpression("=", declar.node.id, declar.node.init)));
- }
-
- for (const name of Object.keys(declar.getBindingIdentifiers())) {
- state.emit(t().identifier(name), name, declar.node.init !== null);
- }
- }
-
- if (path.parentPath.isFor({
- left: path.node
- })) {
- path.replaceWith(firstId);
- } else {
- path.replaceWithMultiple(nodes);
- }
- }
-
-};
-
-function _default(path, emit, kind = "var") {
- path.traverse(visitor, {
- kind,
- emit
- });
-}
\ No newline at end of file
diff --git a/node_modules/@babel/helper-hoist-variables/package.json b/node_modules/@babel/helper-hoist-variables/package.json
deleted file mode 100644
index 6b08acfc..00000000
--- a/node_modules/@babel/helper-hoist-variables/package.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "_args": [
- [
- "@babel/helper-hoist-variables@7.4.4",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/helper-hoist-variables@7.4.4",
- "_id": "@babel/helper-hoist-variables@7.4.4",
- "_inBundle": false,
- "_integrity": "sha512-VYk2/H/BnYbZDDg39hr3t2kKyifAm1W6zHRfhx8jGjIHpQEBv9dry7oQ2f3+J703TLu69nYdxsovl0XYfcnK4w==",
- "_location": "/@babel/helper-hoist-variables",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/helper-hoist-variables@7.4.4",
- "name": "@babel/helper-hoist-variables",
- "escapedName": "@babel%2fhelper-hoist-variables",
- "scope": "@babel",
- "rawSpec": "7.4.4",
- "saveSpec": null,
- "fetchSpec": "7.4.4"
- },
- "_requiredBy": [
- "/@babel/helper-call-delegate",
- "/@babel/plugin-transform-modules-systemjs"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.4.4.tgz",
- "_spec": "7.4.4",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/types": "^7.4.4"
- },
- "description": "Helper function to hoist variables",
- "gitHead": "2c88694388831b1e5b88e4bbed6781eb2be1edba",
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/helper-hoist-variables",
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-helper-hoist-variables"
- },
- "version": "7.4.4"
-}
diff --git a/node_modules/@babel/helper-member-expression-to-functions/LICENSE b/node_modules/@babel/helper-member-expression-to-functions/LICENSE
deleted file mode 100644
index f31575ec..00000000
--- a/node_modules/@babel/helper-member-expression-to-functions/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-present Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/helper-member-expression-to-functions/README.md b/node_modules/@babel/helper-member-expression-to-functions/README.md
deleted file mode 100644
index 1e3eb536..00000000
--- a/node_modules/@babel/helper-member-expression-to-functions/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/helper-member-expression-to-functions
-
-> Helper function to replace certain member expressions with function calls
-
-See our website [@babel/helper-member-expression-to-functions](https://babeljs.io/docs/en/next/babel-helper-member-expression-to-functions.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/helper-member-expression-to-functions
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/helper-member-expression-to-functions --dev
-```
diff --git a/node_modules/@babel/helper-member-expression-to-functions/lib/index.js b/node_modules/@babel/helper-member-expression-to-functions/lib/index.js
deleted file mode 100644
index 8a57d27b..00000000
--- a/node_modules/@babel/helper-member-expression-to-functions/lib/index.js
+++ /dev/null
@@ -1,142 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = memberExpressionToFunctions;
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-class AssignmentMemoiser {
- constructor() {
- this._map = new WeakMap();
- }
-
- has(key) {
- return this._map.has(key);
- }
-
- get(key) {
- if (!this.has(key)) return;
-
- const record = this._map.get(key);
-
- const {
- value
- } = record;
- record.count--;
-
- if (record.count === 0) {
- return t().assignmentExpression("=", value, key);
- }
-
- return value;
- }
-
- set(key, value, count) {
- return this._map.set(key, {
- count,
- value
- });
- }
-
-}
-
-const handle = {
- memoise() {},
-
- handle(member) {
- const {
- node,
- parent,
- parentPath
- } = member;
-
- if (parentPath.isUpdateExpression({
- argument: node
- })) {
- const {
- operator,
- prefix
- } = parent;
- this.memoise(member, 2);
- const value = t().binaryExpression(operator[0], t().unaryExpression("+", this.get(member)), t().numericLiteral(1));
-
- if (prefix) {
- parentPath.replaceWith(this.set(member, value));
- } else {
- const {
- scope
- } = member;
- const ref = scope.generateUidIdentifierBasedOnNode(node);
- scope.push({
- id: ref
- });
- value.left = t().assignmentExpression("=", t().cloneNode(ref), value.left);
- parentPath.replaceWith(t().sequenceExpression([this.set(member, value), t().cloneNode(ref)]));
- }
-
- return;
- }
-
- if (parentPath.isAssignmentExpression({
- left: node
- })) {
- const {
- operator,
- right
- } = parent;
- let value = right;
-
- if (operator !== "=") {
- this.memoise(member, 2);
- value = t().binaryExpression(operator.slice(0, -1), this.get(member), value);
- }
-
- parentPath.replaceWith(this.set(member, value));
- return;
- }
-
- if (parentPath.isCallExpression({
- callee: node
- })) {
- const {
- arguments: args
- } = parent;
- parentPath.replaceWith(this.call(member, args));
- return;
- }
-
- if (parentPath.isObjectProperty({
- value: node
- }) && parentPath.parentPath.isObjectPattern() || parentPath.isAssignmentPattern({
- left: node
- }) && parentPath.parentPath.isObjectProperty({
- value: parent
- }) && parentPath.parentPath.parentPath.isObjectPattern() || parentPath.isArrayPattern() || parentPath.isAssignmentPattern({
- left: node
- }) && parentPath.parentPath.isArrayPattern() || parentPath.isRestElement()) {
- member.replaceWith(this.destructureSet(member));
- return;
- }
-
- member.replaceWith(this.get(member));
- }
-
-};
-
-function memberExpressionToFunctions(path, visitor, state) {
- path.traverse(visitor, Object.assign({}, handle, state, {
- memoiser: new AssignmentMemoiser()
- }));
-}
\ No newline at end of file
diff --git a/node_modules/@babel/helper-member-expression-to-functions/package.json b/node_modules/@babel/helper-member-expression-to-functions/package.json
deleted file mode 100644
index c327de0e..00000000
--- a/node_modules/@babel/helper-member-expression-to-functions/package.json
+++ /dev/null
@@ -1,51 +0,0 @@
-{
- "_args": [
- [
- "@babel/helper-member-expression-to-functions@7.5.5",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/helper-member-expression-to-functions@7.5.5",
- "_id": "@babel/helper-member-expression-to-functions@7.5.5",
- "_inBundle": false,
- "_integrity": "sha512-5qZ3D1uMclSNqYcXqiHoA0meVdv+xUEex9em2fqMnrk/scphGlGgg66zjMrPJESPwrFJ6sbfFQYUSa0Mz7FabA==",
- "_location": "/@babel/helper-member-expression-to-functions",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/helper-member-expression-to-functions@7.5.5",
- "name": "@babel/helper-member-expression-to-functions",
- "escapedName": "@babel%2fhelper-member-expression-to-functions",
- "scope": "@babel",
- "rawSpec": "7.5.5",
- "saveSpec": null,
- "fetchSpec": "7.5.5"
- },
- "_requiredBy": [
- "/@babel/helper-replace-supers"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.5.5.tgz",
- "_spec": "7.5.5",
- "_where": "E:\\python\\setup-php",
- "author": {
- "name": "Justin Ridgewell",
- "email": "justin@ridgewell.name"
- },
- "dependencies": {
- "@babel/types": "^7.5.5"
- },
- "description": "Helper function to replace certain member expressions with function calls",
- "gitHead": "0407f034f09381b95e9cabefbf6b176c76485a43",
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/helper-member-expression-to-functions",
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-helper-member-expression-to-functions"
- },
- "version": "7.5.5"
-}
diff --git a/node_modules/@babel/helper-module-imports/LICENSE b/node_modules/@babel/helper-module-imports/LICENSE
deleted file mode 100644
index 620366eb..00000000
--- a/node_modules/@babel/helper-module-imports/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-2018 Sebastian McKenzie
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/helper-module-imports/README.md b/node_modules/@babel/helper-module-imports/README.md
deleted file mode 100644
index c1b21e61..00000000
--- a/node_modules/@babel/helper-module-imports/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/helper-module-imports
-
-> Babel helper functions for inserting module loads
-
-See our website [@babel/helper-module-imports](https://babeljs.io/docs/en/next/babel-helper-module-imports.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/helper-module-imports
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/helper-module-imports --dev
-```
diff --git a/node_modules/@babel/helper-module-imports/lib/import-builder.js b/node_modules/@babel/helper-module-imports/lib/import-builder.js
deleted file mode 100644
index 2f460da9..00000000
--- a/node_modules/@babel/helper-module-imports/lib/import-builder.js
+++ /dev/null
@@ -1,153 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _assert() {
- const data = _interopRequireDefault(require("assert"));
-
- _assert = function () {
- return data;
- };
-
- return data;
-}
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-class ImportBuilder {
- constructor(importedSource, scope, hub) {
- this._statements = [];
- this._resultName = null;
- this._scope = null;
- this._hub = null;
- this._scope = scope;
- this._hub = hub;
- this._importedSource = importedSource;
- }
-
- done() {
- return {
- statements: this._statements,
- resultName: this._resultName
- };
- }
-
- import() {
- this._statements.push(t().importDeclaration([], t().stringLiteral(this._importedSource)));
-
- return this;
- }
-
- require() {
- this._statements.push(t().expressionStatement(t().callExpression(t().identifier("require"), [t().stringLiteral(this._importedSource)])));
-
- return this;
- }
-
- namespace(name = "namespace") {
- name = this._scope.generateUidIdentifier(name);
- const statement = this._statements[this._statements.length - 1];
- (0, _assert().default)(statement.type === "ImportDeclaration");
- (0, _assert().default)(statement.specifiers.length === 0);
- statement.specifiers = [t().importNamespaceSpecifier(name)];
- this._resultName = t().cloneNode(name);
- return this;
- }
-
- default(name) {
- name = this._scope.generateUidIdentifier(name);
- const statement = this._statements[this._statements.length - 1];
- (0, _assert().default)(statement.type === "ImportDeclaration");
- (0, _assert().default)(statement.specifiers.length === 0);
- statement.specifiers = [t().importDefaultSpecifier(name)];
- this._resultName = t().cloneNode(name);
- return this;
- }
-
- named(name, importName) {
- if (importName === "default") return this.default(name);
- name = this._scope.generateUidIdentifier(name);
- const statement = this._statements[this._statements.length - 1];
- (0, _assert().default)(statement.type === "ImportDeclaration");
- (0, _assert().default)(statement.specifiers.length === 0);
- statement.specifiers = [t().importSpecifier(name, t().identifier(importName))];
- this._resultName = t().cloneNode(name);
- return this;
- }
-
- var(name) {
- name = this._scope.generateUidIdentifier(name);
- let statement = this._statements[this._statements.length - 1];
-
- if (statement.type !== "ExpressionStatement") {
- (0, _assert().default)(this._resultName);
- statement = t().expressionStatement(this._resultName);
-
- this._statements.push(statement);
- }
-
- this._statements[this._statements.length - 1] = t().variableDeclaration("var", [t().variableDeclarator(name, statement.expression)]);
- this._resultName = t().cloneNode(name);
- return this;
- }
-
- defaultInterop() {
- return this._interop(this._hub.addHelper("interopRequireDefault"));
- }
-
- wildcardInterop() {
- return this._interop(this._hub.addHelper("interopRequireWildcard"));
- }
-
- _interop(callee) {
- const statement = this._statements[this._statements.length - 1];
-
- if (statement.type === "ExpressionStatement") {
- statement.expression = t().callExpression(callee, [statement.expression]);
- } else if (statement.type === "VariableDeclaration") {
- (0, _assert().default)(statement.declarations.length === 1);
- statement.declarations[0].init = t().callExpression(callee, [statement.declarations[0].init]);
- } else {
- _assert().default.fail("Unexpected type.");
- }
-
- return this;
- }
-
- prop(name) {
- const statement = this._statements[this._statements.length - 1];
-
- if (statement.type === "ExpressionStatement") {
- statement.expression = t().memberExpression(statement.expression, t().identifier(name));
- } else if (statement.type === "VariableDeclaration") {
- (0, _assert().default)(statement.declarations.length === 1);
- statement.declarations[0].init = t().memberExpression(statement.declarations[0].init, t().identifier(name));
- } else {
- _assert().default.fail("Unexpected type:" + statement.type);
- }
-
- return this;
- }
-
- read(name) {
- this._resultName = t().memberExpression(this._resultName, t().identifier(name));
- }
-
-}
-
-exports.default = ImportBuilder;
\ No newline at end of file
diff --git a/node_modules/@babel/helper-module-imports/lib/import-injector.js b/node_modules/@babel/helper-module-imports/lib/import-injector.js
deleted file mode 100644
index 7ab01807..00000000
--- a/node_modules/@babel/helper-module-imports/lib/import-injector.js
+++ /dev/null
@@ -1,285 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _assert() {
- const data = _interopRequireDefault(require("assert"));
-
- _assert = function () {
- return data;
- };
-
- return data;
-}
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-var _importBuilder = _interopRequireDefault(require("./import-builder"));
-
-var _isModule = _interopRequireDefault(require("./is-module"));
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-class ImportInjector {
- constructor(path, importedSource, opts) {
- this._defaultOpts = {
- importedSource: null,
- importedType: "commonjs",
- importedInterop: "babel",
- importingInterop: "babel",
- ensureLiveReference: false,
- ensureNoContext: false
- };
- const programPath = path.find(p => p.isProgram());
- this._programPath = programPath;
- this._programScope = programPath.scope;
- this._hub = programPath.hub;
- this._defaultOpts = this._applyDefaults(importedSource, opts, true);
- }
-
- addDefault(importedSourceIn, opts) {
- return this.addNamed("default", importedSourceIn, opts);
- }
-
- addNamed(importName, importedSourceIn, opts) {
- (0, _assert().default)(typeof importName === "string");
- return this._generateImport(this._applyDefaults(importedSourceIn, opts), importName);
- }
-
- addNamespace(importedSourceIn, opts) {
- return this._generateImport(this._applyDefaults(importedSourceIn, opts), null);
- }
-
- addSideEffect(importedSourceIn, opts) {
- return this._generateImport(this._applyDefaults(importedSourceIn, opts), false);
- }
-
- _applyDefaults(importedSource, opts, isInit = false) {
- const optsList = [];
-
- if (typeof importedSource === "string") {
- optsList.push({
- importedSource
- });
- optsList.push(opts);
- } else {
- (0, _assert().default)(!opts, "Unexpected secondary arguments.");
- optsList.push(importedSource);
- }
-
- const newOpts = Object.assign({}, this._defaultOpts);
-
- for (const opts of optsList) {
- if (!opts) continue;
- Object.keys(newOpts).forEach(key => {
- if (opts[key] !== undefined) newOpts[key] = opts[key];
- });
-
- if (!isInit) {
- if (opts.nameHint !== undefined) newOpts.nameHint = opts.nameHint;
- if (opts.blockHoist !== undefined) newOpts.blockHoist = opts.blockHoist;
- }
- }
-
- return newOpts;
- }
-
- _generateImport(opts, importName) {
- const isDefault = importName === "default";
- const isNamed = !!importName && !isDefault;
- const isNamespace = importName === null;
- const {
- importedSource,
- importedType,
- importedInterop,
- importingInterop,
- ensureLiveReference,
- ensureNoContext,
- nameHint,
- blockHoist
- } = opts;
- let name = nameHint || importName;
- const isMod = (0, _isModule.default)(this._programPath);
- const isModuleForNode = isMod && importingInterop === "node";
- const isModuleForBabel = isMod && importingInterop === "babel";
- const builder = new _importBuilder.default(importedSource, this._programScope, this._hub);
-
- if (importedType === "es6") {
- if (!isModuleForNode && !isModuleForBabel) {
- throw new Error("Cannot import an ES6 module from CommonJS");
- }
-
- builder.import();
-
- if (isNamespace) {
- builder.namespace(nameHint || importedSource);
- } else if (isDefault || isNamed) {
- builder.named(name, importName);
- }
- } else if (importedType !== "commonjs") {
- throw new Error(`Unexpected interopType "${importedType}"`);
- } else if (importedInterop === "babel") {
- if (isModuleForNode) {
- name = name !== "default" ? name : importedSource;
- const es6Default = `${importedSource}$es6Default`;
- builder.import();
-
- if (isNamespace) {
- builder.default(es6Default).var(name || importedSource).wildcardInterop();
- } else if (isDefault) {
- if (ensureLiveReference) {
- builder.default(es6Default).var(name || importedSource).defaultInterop().read("default");
- } else {
- builder.default(es6Default).var(name).defaultInterop().prop(importName);
- }
- } else if (isNamed) {
- builder.default(es6Default).read(importName);
- }
- } else if (isModuleForBabel) {
- builder.import();
-
- if (isNamespace) {
- builder.namespace(name || importedSource);
- } else if (isDefault || isNamed) {
- builder.named(name, importName);
- }
- } else {
- builder.require();
-
- if (isNamespace) {
- builder.var(name || importedSource).wildcardInterop();
- } else if ((isDefault || isNamed) && ensureLiveReference) {
- if (isDefault) {
- name = name !== "default" ? name : importedSource;
- builder.var(name).read(importName);
- builder.defaultInterop();
- } else {
- builder.var(importedSource).read(importName);
- }
- } else if (isDefault) {
- builder.var(name).defaultInterop().prop(importName);
- } else if (isNamed) {
- builder.var(name).prop(importName);
- }
- }
- } else if (importedInterop === "compiled") {
- if (isModuleForNode) {
- builder.import();
-
- if (isNamespace) {
- builder.default(name || importedSource);
- } else if (isDefault || isNamed) {
- builder.default(importedSource).read(name);
- }
- } else if (isModuleForBabel) {
- builder.import();
-
- if (isNamespace) {
- builder.namespace(name || importedSource);
- } else if (isDefault || isNamed) {
- builder.named(name, importName);
- }
- } else {
- builder.require();
-
- if (isNamespace) {
- builder.var(name || importedSource);
- } else if (isDefault || isNamed) {
- if (ensureLiveReference) {
- builder.var(importedSource).read(name);
- } else {
- builder.prop(importName).var(name);
- }
- }
- }
- } else if (importedInterop === "uncompiled") {
- if (isDefault && ensureLiveReference) {
- throw new Error("No live reference for commonjs default");
- }
-
- if (isModuleForNode) {
- builder.import();
-
- if (isNamespace) {
- builder.default(name || importedSource);
- } else if (isDefault) {
- builder.default(name);
- } else if (isNamed) {
- builder.default(importedSource).read(name);
- }
- } else if (isModuleForBabel) {
- builder.import();
-
- if (isNamespace) {
- builder.default(name || importedSource);
- } else if (isDefault) {
- builder.default(name);
- } else if (isNamed) {
- builder.named(name, importName);
- }
- } else {
- builder.require();
-
- if (isNamespace) {
- builder.var(name || importedSource);
- } else if (isDefault) {
- builder.var(name);
- } else if (isNamed) {
- if (ensureLiveReference) {
- builder.var(importedSource).read(name);
- } else {
- builder.var(name).prop(importName);
- }
- }
- }
- } else {
- throw new Error(`Unknown importedInterop "${importedInterop}".`);
- }
-
- const {
- statements,
- resultName
- } = builder.done();
-
- this._insertStatements(statements, blockHoist);
-
- if ((isDefault || isNamed) && ensureNoContext && resultName.type !== "Identifier") {
- return t().sequenceExpression([t().numericLiteral(0), resultName]);
- }
-
- return resultName;
- }
-
- _insertStatements(statements, blockHoist = 3) {
- statements.forEach(node => {
- node._blockHoist = blockHoist;
- });
-
- const targetPath = this._programPath.get("body").filter(p => {
- const val = p.node._blockHoist;
- return Number.isFinite(val) && val < 4;
- })[0];
-
- if (targetPath) {
- targetPath.insertBefore(statements);
- } else {
- this._programPath.unshiftContainer("body", statements);
- }
- }
-
-}
-
-exports.default = ImportInjector;
\ No newline at end of file
diff --git a/node_modules/@babel/helper-module-imports/lib/index.js b/node_modules/@babel/helper-module-imports/lib/index.js
deleted file mode 100644
index 50e1e980..00000000
--- a/node_modules/@babel/helper-module-imports/lib/index.js
+++ /dev/null
@@ -1,43 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.addDefault = addDefault;
-exports.addNamed = addNamed;
-exports.addNamespace = addNamespace;
-exports.addSideEffect = addSideEffect;
-Object.defineProperty(exports, "ImportInjector", {
- enumerable: true,
- get: function () {
- return _importInjector.default;
- }
-});
-Object.defineProperty(exports, "isModule", {
- enumerable: true,
- get: function () {
- return _isModule.default;
- }
-});
-
-var _importInjector = _interopRequireDefault(require("./import-injector"));
-
-var _isModule = _interopRequireDefault(require("./is-module"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function addDefault(path, importedSource, opts) {
- return new _importInjector.default(path).addDefault(importedSource, opts);
-}
-
-function addNamed(path, name, importedSource, opts) {
- return new _importInjector.default(path).addNamed(name, importedSource, opts);
-}
-
-function addNamespace(path, importedSource, opts) {
- return new _importInjector.default(path).addNamespace(importedSource, opts);
-}
-
-function addSideEffect(path, importedSource, opts) {
- return new _importInjector.default(path).addSideEffect(importedSource, opts);
-}
\ No newline at end of file
diff --git a/node_modules/@babel/helper-module-imports/lib/is-module.js b/node_modules/@babel/helper-module-imports/lib/is-module.js
deleted file mode 100644
index ad9e3995..00000000
--- a/node_modules/@babel/helper-module-imports/lib/is-module.js
+++ /dev/null
@@ -1,18 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = isModule;
-
-function isModule(path) {
- const {
- sourceType
- } = path.node;
-
- if (sourceType !== "module" && sourceType !== "script") {
- throw path.buildCodeFrameError(`Unknown sourceType "${sourceType}", cannot transform.`);
- }
-
- return path.node.sourceType === "module";
-}
\ No newline at end of file
diff --git a/node_modules/@babel/helper-module-imports/package.json b/node_modules/@babel/helper-module-imports/package.json
deleted file mode 100644
index c8d824f1..00000000
--- a/node_modules/@babel/helper-module-imports/package.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "_args": [
- [
- "@babel/helper-module-imports@7.0.0",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/helper-module-imports@7.0.0",
- "_id": "@babel/helper-module-imports@7.0.0",
- "_inBundle": false,
- "_integrity": "sha512-aP/hlLq01DWNEiDg4Jn23i+CXxW/owM4WpDLFUbpjxe4NS3BhLVZQ5i7E0ZrxuQ/vwekIeciyamgB1UIYxxM6A==",
- "_location": "/@babel/helper-module-imports",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/helper-module-imports@7.0.0",
- "name": "@babel/helper-module-imports",
- "escapedName": "@babel%2fhelper-module-imports",
- "scope": "@babel",
- "rawSpec": "7.0.0",
- "saveSpec": null,
- "fetchSpec": "7.0.0"
- },
- "_requiredBy": [
- "/@babel/helper-module-transforms",
- "/@babel/plugin-transform-async-to-generator",
- "/@babel/preset-env"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.0.0.tgz",
- "_spec": "7.0.0",
- "_where": "E:\\python\\setup-php",
- "author": {
- "name": "Logan Smyth",
- "email": "loganfsmyth@gmail.com"
- },
- "dependencies": {
- "@babel/types": "^7.0.0"
- },
- "description": "Babel helper functions for inserting module loads",
- "devDependencies": {
- "@babel/core": "^7.0.0"
- },
- "homepage": "https://babeljs.io/",
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/helper-module-imports",
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-helper-module-imports"
- },
- "version": "7.0.0"
-}
diff --git a/node_modules/@babel/helper-module-transforms/LICENSE b/node_modules/@babel/helper-module-transforms/LICENSE
deleted file mode 100644
index f31575ec..00000000
--- a/node_modules/@babel/helper-module-transforms/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-present Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/helper-module-transforms/README.md b/node_modules/@babel/helper-module-transforms/README.md
deleted file mode 100644
index 8dfc1bda..00000000
--- a/node_modules/@babel/helper-module-transforms/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/helper-module-transforms
-
-> Babel helper functions for implementing ES6 module transformations
-
-See our website [@babel/helper-module-transforms](https://babeljs.io/docs/en/next/babel-helper-module-transforms.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/helper-module-transforms
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/helper-module-transforms --dev
-```
diff --git a/node_modules/@babel/helper-module-transforms/lib/index.js b/node_modules/@babel/helper-module-transforms/lib/index.js
deleted file mode 100644
index 4d2a8f93..00000000
--- a/node_modules/@babel/helper-module-transforms/lib/index.js
+++ /dev/null
@@ -1,340 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.rewriteModuleStatementsAndPrepareHeader = rewriteModuleStatementsAndPrepareHeader;
-exports.ensureStatementsHoisted = ensureStatementsHoisted;
-exports.wrapInterop = wrapInterop;
-exports.buildNamespaceInitStatements = buildNamespaceInitStatements;
-Object.defineProperty(exports, "isModule", {
- enumerable: true,
- get: function () {
- return _helperModuleImports().isModule;
- }
-});
-Object.defineProperty(exports, "hasExports", {
- enumerable: true,
- get: function () {
- return _normalizeAndLoadMetadata.hasExports;
- }
-});
-Object.defineProperty(exports, "isSideEffectImport", {
- enumerable: true,
- get: function () {
- return _normalizeAndLoadMetadata.isSideEffectImport;
- }
-});
-
-function _assert() {
- const data = _interopRequireDefault(require("assert"));
-
- _assert = function () {
- return data;
- };
-
- return data;
-}
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _template() {
- const data = _interopRequireDefault(require("@babel/template"));
-
- _template = function () {
- return data;
- };
-
- return data;
-}
-
-function _chunk() {
- const data = _interopRequireDefault(require("lodash/chunk"));
-
- _chunk = function () {
- return data;
- };
-
- return data;
-}
-
-function _helperModuleImports() {
- const data = require("@babel/helper-module-imports");
-
- _helperModuleImports = function () {
- return data;
- };
-
- return data;
-}
-
-var _rewriteThis = _interopRequireDefault(require("./rewrite-this"));
-
-var _rewriteLiveReferences = _interopRequireDefault(require("./rewrite-live-references"));
-
-var _normalizeAndLoadMetadata = _interopRequireWildcard(require("./normalize-and-load-metadata"));
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function rewriteModuleStatementsAndPrepareHeader(path, {
- exportName,
- strict,
- allowTopLevelThis,
- strictMode,
- loose,
- noInterop,
- lazy,
- esNamespaceOnly
-}) {
- (0, _assert().default)((0, _helperModuleImports().isModule)(path), "Cannot process module statements in a script");
- path.node.sourceType = "script";
- const meta = (0, _normalizeAndLoadMetadata.default)(path, exportName, {
- noInterop,
- loose,
- lazy,
- esNamespaceOnly
- });
-
- if (!allowTopLevelThis) {
- (0, _rewriteThis.default)(path);
- }
-
- (0, _rewriteLiveReferences.default)(path, meta);
-
- if (strictMode !== false) {
- const hasStrict = path.node.directives.some(directive => {
- return directive.value.value === "use strict";
- });
-
- if (!hasStrict) {
- path.unshiftContainer("directives", t().directive(t().directiveLiteral("use strict")));
- }
- }
-
- const headers = [];
-
- if ((0, _normalizeAndLoadMetadata.hasExports)(meta) && !strict) {
- headers.push(buildESModuleHeader(meta, loose));
- }
-
- const nameList = buildExportNameListDeclaration(path, meta);
-
- if (nameList) {
- meta.exportNameListName = nameList.name;
- headers.push(nameList.statement);
- }
-
- headers.push(...buildExportInitializationStatements(path, meta, loose));
- return {
- meta,
- headers
- };
-}
-
-function ensureStatementsHoisted(statements) {
- statements.forEach(header => {
- header._blockHoist = 3;
- });
-}
-
-function wrapInterop(programPath, expr, type) {
- if (type === "none") {
- return null;
- }
-
- let helper;
-
- if (type === "default") {
- helper = "interopRequireDefault";
- } else if (type === "namespace") {
- helper = "interopRequireWildcard";
- } else {
- throw new Error(`Unknown interop: ${type}`);
- }
-
- return t().callExpression(programPath.hub.addHelper(helper), [expr]);
-}
-
-function buildNamespaceInitStatements(metadata, sourceMetadata, loose = false) {
- const statements = [];
- let srcNamespace = t().identifier(sourceMetadata.name);
- if (sourceMetadata.lazy) srcNamespace = t().callExpression(srcNamespace, []);
-
- for (const localName of sourceMetadata.importsNamespace) {
- if (localName === sourceMetadata.name) continue;
- statements.push(_template().default.statement`var NAME = SOURCE;`({
- NAME: localName,
- SOURCE: t().cloneNode(srcNamespace)
- }));
- }
-
- if (loose) {
- statements.push(...buildReexportsFromMeta(metadata, sourceMetadata, loose));
- }
-
- for (const exportName of sourceMetadata.reexportNamespace) {
- statements.push((sourceMetadata.lazy ? _template().default.statement`
- Object.defineProperty(EXPORTS, "NAME", {
- enumerable: true,
- get: function() {
- return NAMESPACE;
- }
- });
- ` : _template().default.statement`EXPORTS.NAME = NAMESPACE;`)({
- EXPORTS: metadata.exportName,
- NAME: exportName,
- NAMESPACE: t().cloneNode(srcNamespace)
- }));
- }
-
- if (sourceMetadata.reexportAll) {
- const statement = buildNamespaceReexport(metadata, t().cloneNode(srcNamespace), loose);
- statement.loc = sourceMetadata.reexportAll.loc;
- statements.push(statement);
- }
-
- return statements;
-}
-
-const getTemplateForReexport = loose => {
- return loose ? _template().default.statement`EXPORTS.EXPORT_NAME = NAMESPACE.IMPORT_NAME;` : _template().default`
- Object.defineProperty(EXPORTS, "EXPORT_NAME", {
- enumerable: true,
- get: function() {
- return NAMESPACE.IMPORT_NAME;
- },
- });
- `;
-};
-
-const buildReexportsFromMeta = (meta, metadata, loose) => {
- const namespace = metadata.lazy ? t().callExpression(t().identifier(metadata.name), []) : t().identifier(metadata.name);
- const templateForCurrentMode = getTemplateForReexport(loose);
- return Array.from(metadata.reexports, ([exportName, importName]) => templateForCurrentMode({
- EXPORTS: meta.exportName,
- EXPORT_NAME: exportName,
- NAMESPACE: t().cloneNode(namespace),
- IMPORT_NAME: importName
- }));
-};
-
-function buildESModuleHeader(metadata, enumerable = false) {
- return (enumerable ? _template().default.statement`
- EXPORTS.__esModule = true;
- ` : _template().default.statement`
- Object.defineProperty(EXPORTS, "__esModule", {
- value: true,
- });
- `)({
- EXPORTS: metadata.exportName
- });
-}
-
-function buildNamespaceReexport(metadata, namespace, loose) {
- return (loose ? _template().default.statement`
- Object.keys(NAMESPACE).forEach(function(key) {
- if (key === "default" || key === "__esModule") return;
- VERIFY_NAME_LIST;
-
- EXPORTS[key] = NAMESPACE[key];
- });
- ` : _template().default.statement`
- Object.keys(NAMESPACE).forEach(function(key) {
- if (key === "default" || key === "__esModule") return;
- VERIFY_NAME_LIST;
-
- Object.defineProperty(EXPORTS, key, {
- enumerable: true,
- get: function() {
- return NAMESPACE[key];
- },
- });
- });
- `)({
- NAMESPACE: namespace,
- EXPORTS: metadata.exportName,
- VERIFY_NAME_LIST: metadata.exportNameListName ? _template().default`
- if (Object.prototype.hasOwnProperty.call(EXPORTS_LIST, key)) return;
- `({
- EXPORTS_LIST: metadata.exportNameListName
- }) : null
- });
-}
-
-function buildExportNameListDeclaration(programPath, metadata) {
- const exportedVars = Object.create(null);
-
- for (const data of metadata.local.values()) {
- for (const name of data.names) {
- exportedVars[name] = true;
- }
- }
-
- let hasReexport = false;
-
- for (const data of metadata.source.values()) {
- for (const exportName of data.reexports.keys()) {
- exportedVars[exportName] = true;
- }
-
- for (const exportName of data.reexportNamespace) {
- exportedVars[exportName] = true;
- }
-
- hasReexport = hasReexport || data.reexportAll;
- }
-
- if (!hasReexport || Object.keys(exportedVars).length === 0) return null;
- const name = programPath.scope.generateUidIdentifier("exportNames");
- delete exportedVars.default;
- return {
- name: name.name,
- statement: t().variableDeclaration("var", [t().variableDeclarator(name, t().valueToNode(exportedVars))])
- };
-}
-
-function buildExportInitializationStatements(programPath, metadata, loose = false) {
- const initStatements = [];
- const exportNames = [];
-
- for (const [localName, data] of metadata.local) {
- if (data.kind === "import") {} else if (data.kind === "hoisted") {
- initStatements.push(buildInitStatement(metadata, data.names, t().identifier(localName)));
- } else {
- exportNames.push(...data.names);
- }
- }
-
- for (const data of metadata.source.values()) {
- if (!loose) {
- initStatements.push(...buildReexportsFromMeta(metadata, data, loose));
- }
-
- for (const exportName of data.reexportNamespace) {
- exportNames.push(exportName);
- }
- }
-
- initStatements.push(...(0, _chunk().default)(exportNames, 100).map(members => {
- return buildInitStatement(metadata, members, programPath.scope.buildUndefinedNode());
- }));
- return initStatements;
-}
-
-function buildInitStatement(metadata, exportNames, initExpr) {
- return t().expressionStatement(exportNames.reduce((acc, exportName) => _template().default.expression`EXPORTS.NAME = VALUE`({
- EXPORTS: metadata.exportName,
- NAME: exportName,
- VALUE: acc
- }), initExpr));
-}
\ No newline at end of file
diff --git a/node_modules/@babel/helper-module-transforms/lib/normalize-and-load-metadata.js b/node_modules/@babel/helper-module-transforms/lib/normalize-and-load-metadata.js
deleted file mode 100644
index 39f0129e..00000000
--- a/node_modules/@babel/helper-module-transforms/lib/normalize-and-load-metadata.js
+++ /dev/null
@@ -1,362 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.hasExports = hasExports;
-exports.isSideEffectImport = isSideEffectImport;
-exports.default = normalizeModuleAndLoadMetadata;
-
-function _path() {
- const data = require("path");
-
- _path = function () {
- return data;
- };
-
- return data;
-}
-
-function _helperSplitExportDeclaration() {
- const data = _interopRequireDefault(require("@babel/helper-split-export-declaration"));
-
- _helperSplitExportDeclaration = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function hasExports(metadata) {
- return metadata.hasExports;
-}
-
-function isSideEffectImport(source) {
- return source.imports.size === 0 && source.importsNamespace.size === 0 && source.reexports.size === 0 && source.reexportNamespace.size === 0 && !source.reexportAll;
-}
-
-function normalizeModuleAndLoadMetadata(programPath, exportName, {
- noInterop = false,
- loose = false,
- lazy = false,
- esNamespaceOnly = false
-} = {}) {
- if (!exportName) {
- exportName = programPath.scope.generateUidIdentifier("exports").name;
- }
-
- nameAnonymousExports(programPath);
- const {
- local,
- source,
- hasExports
- } = getModuleMetadata(programPath, {
- loose,
- lazy
- });
- removeModuleDeclarations(programPath);
-
- for (const [, metadata] of source) {
- if (metadata.importsNamespace.size > 0) {
- metadata.name = metadata.importsNamespace.values().next().value;
- }
-
- if (noInterop) metadata.interop = "none";else if (esNamespaceOnly) {
- if (metadata.interop === "namespace") {
- metadata.interop = "default";
- }
- }
- }
-
- return {
- exportName,
- exportNameListName: null,
- hasExports,
- local,
- source
- };
-}
-
-function getModuleMetadata(programPath, {
- loose,
- lazy
-}) {
- const localData = getLocalExportMetadata(programPath, loose);
- const sourceData = new Map();
-
- const getData = sourceNode => {
- const source = sourceNode.value;
- let data = sourceData.get(source);
-
- if (!data) {
- data = {
- name: programPath.scope.generateUidIdentifier((0, _path().basename)(source, (0, _path().extname)(source))).name,
- interop: "none",
- loc: null,
- imports: new Map(),
- importsNamespace: new Set(),
- reexports: new Map(),
- reexportNamespace: new Set(),
- reexportAll: null,
- lazy: false
- };
- sourceData.set(source, data);
- }
-
- return data;
- };
-
- let hasExports = false;
- programPath.get("body").forEach(child => {
- if (child.isImportDeclaration()) {
- const data = getData(child.node.source);
- if (!data.loc) data.loc = child.node.loc;
- child.get("specifiers").forEach(spec => {
- if (spec.isImportDefaultSpecifier()) {
- const localName = spec.get("local").node.name;
- data.imports.set(localName, "default");
- const reexport = localData.get(localName);
-
- if (reexport) {
- localData.delete(localName);
- reexport.names.forEach(name => {
- data.reexports.set(name, "default");
- });
- }
- } else if (spec.isImportNamespaceSpecifier()) {
- const localName = spec.get("local").node.name;
- data.importsNamespace.add(localName);
- const reexport = localData.get(localName);
-
- if (reexport) {
- localData.delete(localName);
- reexport.names.forEach(name => {
- data.reexportNamespace.add(name);
- });
- }
- } else if (spec.isImportSpecifier()) {
- const importName = spec.get("imported").node.name;
- const localName = spec.get("local").node.name;
- data.imports.set(localName, importName);
- const reexport = localData.get(localName);
-
- if (reexport) {
- localData.delete(localName);
- reexport.names.forEach(name => {
- data.reexports.set(name, importName);
- });
- }
- }
- });
- } else if (child.isExportAllDeclaration()) {
- hasExports = true;
- const data = getData(child.node.source);
- if (!data.loc) data.loc = child.node.loc;
- data.reexportAll = {
- loc: child.node.loc
- };
- } else if (child.isExportNamedDeclaration() && child.node.source) {
- hasExports = true;
- const data = getData(child.node.source);
- if (!data.loc) data.loc = child.node.loc;
- child.get("specifiers").forEach(spec => {
- if (!spec.isExportSpecifier()) {
- throw spec.buildCodeFrameError("Unexpected export specifier type");
- }
-
- const importName = spec.get("local").node.name;
- const exportName = spec.get("exported").node.name;
- data.reexports.set(exportName, importName);
-
- if (exportName === "__esModule") {
- throw exportName.buildCodeFrameError('Illegal export "__esModule".');
- }
- });
- } else if (child.isExportNamedDeclaration() || child.isExportDefaultDeclaration()) {
- hasExports = true;
- }
- });
-
- for (const metadata of sourceData.values()) {
- let needsDefault = false;
- let needsNamed = false;
-
- if (metadata.importsNamespace.size > 0) {
- needsDefault = true;
- needsNamed = true;
- }
-
- if (metadata.reexportAll) {
- needsNamed = true;
- }
-
- for (const importName of metadata.imports.values()) {
- if (importName === "default") needsDefault = true;else needsNamed = true;
- }
-
- for (const importName of metadata.reexports.values()) {
- if (importName === "default") needsDefault = true;else needsNamed = true;
- }
-
- if (needsDefault && needsNamed) {
- metadata.interop = "namespace";
- } else if (needsDefault) {
- metadata.interop = "default";
- }
- }
-
- for (const [source, metadata] of sourceData) {
- if (lazy !== false && !(isSideEffectImport(metadata) || metadata.reexportAll)) {
- if (lazy === true) {
- metadata.lazy = !/\./.test(source);
- } else if (Array.isArray(lazy)) {
- metadata.lazy = lazy.indexOf(source) !== -1;
- } else if (typeof lazy === "function") {
- metadata.lazy = lazy(source);
- } else {
- throw new Error(`.lazy must be a boolean, string array, or function`);
- }
- }
- }
-
- return {
- hasExports,
- local: localData,
- source: sourceData
- };
-}
-
-function getLocalExportMetadata(programPath, loose) {
- const bindingKindLookup = new Map();
- programPath.get("body").forEach(child => {
- let kind;
-
- if (child.isImportDeclaration()) {
- kind = "import";
- } else {
- if (child.isExportDefaultDeclaration()) child = child.get("declaration");
-
- if (child.isExportNamedDeclaration()) {
- if (child.node.declaration) {
- child = child.get("declaration");
- } else if (loose && child.node.source && child.get("source").isStringLiteral()) {
- child.node.specifiers.forEach(specifier => {
- bindingKindLookup.set(specifier.local.name, "block");
- });
- return;
- }
- }
-
- if (child.isFunctionDeclaration()) {
- kind = "hoisted";
- } else if (child.isClassDeclaration()) {
- kind = "block";
- } else if (child.isVariableDeclaration({
- kind: "var"
- })) {
- kind = "var";
- } else if (child.isVariableDeclaration()) {
- kind = "block";
- } else {
- return;
- }
- }
-
- Object.keys(child.getOuterBindingIdentifiers()).forEach(name => {
- bindingKindLookup.set(name, kind);
- });
- });
- const localMetadata = new Map();
-
- const getLocalMetadata = idPath => {
- const localName = idPath.node.name;
- let metadata = localMetadata.get(localName);
-
- if (!metadata) {
- const kind = bindingKindLookup.get(localName);
-
- if (kind === undefined) {
- throw idPath.buildCodeFrameError(`Exporting local "${localName}", which is not declared.`);
- }
-
- metadata = {
- names: [],
- kind
- };
- localMetadata.set(localName, metadata);
- }
-
- return metadata;
- };
-
- programPath.get("body").forEach(child => {
- if (child.isExportNamedDeclaration() && (loose || !child.node.source)) {
- if (child.node.declaration) {
- const declaration = child.get("declaration");
- const ids = declaration.getOuterBindingIdentifierPaths();
- Object.keys(ids).forEach(name => {
- if (name === "__esModule") {
- throw declaration.buildCodeFrameError('Illegal export "__esModule".');
- }
-
- getLocalMetadata(ids[name]).names.push(name);
- });
- } else {
- child.get("specifiers").forEach(spec => {
- const local = spec.get("local");
- const exported = spec.get("exported");
-
- if (exported.node.name === "__esModule") {
- throw exported.buildCodeFrameError('Illegal export "__esModule".');
- }
-
- getLocalMetadata(local).names.push(exported.node.name);
- });
- }
- } else if (child.isExportDefaultDeclaration()) {
- const declaration = child.get("declaration");
-
- if (declaration.isFunctionDeclaration() || declaration.isClassDeclaration()) {
- getLocalMetadata(declaration.get("id")).names.push("default");
- } else {
- throw declaration.buildCodeFrameError("Unexpected default expression export.");
- }
- }
- });
- return localMetadata;
-}
-
-function nameAnonymousExports(programPath) {
- programPath.get("body").forEach(child => {
- if (!child.isExportDefaultDeclaration()) return;
- (0, _helperSplitExportDeclaration().default)(child);
- });
-}
-
-function removeModuleDeclarations(programPath) {
- programPath.get("body").forEach(child => {
- if (child.isImportDeclaration()) {
- child.remove();
- } else if (child.isExportNamedDeclaration()) {
- if (child.node.declaration) {
- child.node.declaration._blockHoist = child.node._blockHoist;
- child.replaceWith(child.node.declaration);
- } else {
- child.remove();
- }
- } else if (child.isExportDefaultDeclaration()) {
- const declaration = child.get("declaration");
-
- if (declaration.isFunctionDeclaration() || declaration.isClassDeclaration()) {
- declaration._blockHoist = child.node._blockHoist;
- child.replaceWith(declaration);
- } else {
- throw declaration.buildCodeFrameError("Unexpected default expression export.");
- }
- } else if (child.isExportAllDeclaration()) {
- child.remove();
- }
- });
-}
\ No newline at end of file
diff --git a/node_modules/@babel/helper-module-transforms/lib/rewrite-live-references.js b/node_modules/@babel/helper-module-transforms/lib/rewrite-live-references.js
deleted file mode 100644
index 48f717cf..00000000
--- a/node_modules/@babel/helper-module-transforms/lib/rewrite-live-references.js
+++ /dev/null
@@ -1,284 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = rewriteLiveReferences;
-
-function _assert() {
- const data = _interopRequireDefault(require("assert"));
-
- _assert = function () {
- return data;
- };
-
- return data;
-}
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _template() {
- const data = _interopRequireDefault(require("@babel/template"));
-
- _template = function () {
- return data;
- };
-
- return data;
-}
-
-function _helperSimpleAccess() {
- const data = _interopRequireDefault(require("@babel/helper-simple-access"));
-
- _helperSimpleAccess = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function rewriteLiveReferences(programPath, metadata) {
- const imported = new Map();
- const exported = new Map();
-
- const requeueInParent = path => {
- programPath.requeue(path);
- };
-
- for (const [source, data] of metadata.source) {
- for (const [localName, importName] of data.imports) {
- imported.set(localName, [source, importName, null]);
- }
-
- for (const localName of data.importsNamespace) {
- imported.set(localName, [source, null, localName]);
- }
- }
-
- for (const [local, data] of metadata.local) {
- let exportMeta = exported.get(local);
-
- if (!exportMeta) {
- exportMeta = [];
- exported.set(local, exportMeta);
- }
-
- exportMeta.push(...data.names);
- }
-
- programPath.traverse(rewriteBindingInitVisitor, {
- metadata,
- requeueInParent,
- scope: programPath.scope,
- exported
- });
- (0, _helperSimpleAccess().default)(programPath, new Set([...Array.from(imported.keys()), ...Array.from(exported.keys())]));
- programPath.traverse(rewriteReferencesVisitor, {
- seen: new WeakSet(),
- metadata,
- requeueInParent,
- scope: programPath.scope,
- imported,
- exported,
- buildImportReference: ([source, importName, localName], identNode) => {
- const meta = metadata.source.get(source);
-
- if (localName) {
- if (meta.lazy) identNode = t().callExpression(identNode, []);
- return identNode;
- }
-
- let namespace = t().identifier(meta.name);
- if (meta.lazy) namespace = t().callExpression(namespace, []);
- return t().memberExpression(namespace, t().identifier(importName));
- }
- });
-}
-
-const rewriteBindingInitVisitor = {
- ClassProperty(path) {
- path.skip();
- },
-
- Function(path) {
- path.skip();
- },
-
- ClassDeclaration(path) {
- const {
- requeueInParent,
- exported,
- metadata
- } = this;
- const {
- id
- } = path.node;
- if (!id) throw new Error("Expected class to have a name");
- const localName = id.name;
- const exportNames = exported.get(localName) || [];
-
- if (exportNames.length > 0) {
- const statement = t().expressionStatement(buildBindingExportAssignmentExpression(metadata, exportNames, t().identifier(localName)));
- statement._blockHoist = path.node._blockHoist;
- requeueInParent(path.insertAfter(statement)[0]);
- }
- },
-
- VariableDeclaration(path) {
- const {
- requeueInParent,
- exported,
- metadata
- } = this;
- Object.keys(path.getOuterBindingIdentifiers()).forEach(localName => {
- const exportNames = exported.get(localName) || [];
-
- if (exportNames.length > 0) {
- const statement = t().expressionStatement(buildBindingExportAssignmentExpression(metadata, exportNames, t().identifier(localName)));
- statement._blockHoist = path.node._blockHoist;
- requeueInParent(path.insertAfter(statement)[0]);
- }
- });
- }
-
-};
-
-const buildBindingExportAssignmentExpression = (metadata, exportNames, localExpr) => {
- return (exportNames || []).reduce((expr, exportName) => {
- return t().assignmentExpression("=", t().memberExpression(t().identifier(metadata.exportName), t().identifier(exportName)), expr);
- }, localExpr);
-};
-
-const buildImportThrow = localName => {
- return _template().default.expression.ast`
- (function() {
- throw new Error('"' + '${localName}' + '" is read-only.');
- })()
- `;
-};
-
-const rewriteReferencesVisitor = {
- ReferencedIdentifier(path) {
- const {
- seen,
- buildImportReference,
- scope,
- imported,
- requeueInParent
- } = this;
- if (seen.has(path.node)) return;
- seen.add(path.node);
- const localName = path.node.name;
- const localBinding = path.scope.getBinding(localName);
- const rootBinding = scope.getBinding(localName);
- if (rootBinding !== localBinding) return;
- const importData = imported.get(localName);
-
- if (importData) {
- const ref = buildImportReference(importData, path.node);
- ref.loc = path.node.loc;
-
- if (path.parentPath.isCallExpression({
- callee: path.node
- }) && t().isMemberExpression(ref)) {
- path.replaceWith(t().sequenceExpression([t().numericLiteral(0), ref]));
- } else if (path.isJSXIdentifier() && t().isMemberExpression(ref)) {
- const {
- object,
- property
- } = ref;
- path.replaceWith(t().JSXMemberExpression(t().JSXIdentifier(object.name), t().JSXIdentifier(property.name)));
- } else {
- path.replaceWith(ref);
- }
-
- requeueInParent(path);
- path.skip();
- }
- },
-
- AssignmentExpression: {
- exit(path) {
- const {
- scope,
- seen,
- imported,
- exported,
- requeueInParent,
- buildImportReference
- } = this;
- if (seen.has(path.node)) return;
- seen.add(path.node);
- const left = path.get("left");
-
- if (left.isIdentifier()) {
- const localName = left.node.name;
-
- if (scope.getBinding(localName) !== path.scope.getBinding(localName)) {
- return;
- }
-
- const exportedNames = exported.get(localName) || [];
- const importData = imported.get(localName);
-
- if (exportedNames.length > 0 || importData) {
- (0, _assert().default)(path.node.operator === "=", "Path was not simplified");
- const assignment = path.node;
-
- if (importData) {
- assignment.left = buildImportReference(importData, assignment.left);
- assignment.right = t().sequenceExpression([assignment.right, buildImportThrow(localName)]);
- }
-
- path.replaceWith(buildBindingExportAssignmentExpression(this.metadata, exportedNames, assignment));
- requeueInParent(path);
- }
- } else if (left.isMemberExpression()) {} else {
- const ids = left.getOuterBindingIdentifiers();
- const id = Object.keys(ids).filter(localName => imported.has(localName)).pop();
-
- if (id) {
- path.node.right = t().sequenceExpression([path.node.right, buildImportThrow(id)]);
- }
-
- const items = [];
- Object.keys(ids).forEach(localName => {
- if (scope.getBinding(localName) !== path.scope.getBinding(localName)) {
- return;
- }
-
- const exportedNames = exported.get(localName) || [];
-
- if (exportedNames.length > 0) {
- items.push(buildBindingExportAssignmentExpression(this.metadata, exportedNames, t().identifier(localName)));
- }
- });
-
- if (items.length > 0) {
- let node = t().sequenceExpression(items);
-
- if (path.parentPath.isExpressionStatement()) {
- node = t().expressionStatement(node);
- node._blockHoist = path.parentPath.node._blockHoist;
- }
-
- const statement = path.insertAfter(node)[0];
- requeueInParent(statement);
- }
- }
- }
-
- }
-};
\ No newline at end of file
diff --git a/node_modules/@babel/helper-module-transforms/lib/rewrite-this.js b/node_modules/@babel/helper-module-transforms/lib/rewrite-this.js
deleted file mode 100644
index b3c4cbe3..00000000
--- a/node_modules/@babel/helper-module-transforms/lib/rewrite-this.js
+++ /dev/null
@@ -1,29 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = rewriteThis;
-
-function rewriteThis(programPath) {
- programPath.traverse(rewriteThisVisitor);
-}
-
-const rewriteThisVisitor = {
- ThisExpression(path) {
- path.replaceWith(path.scope.buildUndefinedNode());
- },
-
- Function(path) {
- if (!path.isArrowFunctionExpression()) path.skip();
- },
-
- ClassProperty(path) {
- path.skip();
- },
-
- ClassPrivateProperty(path) {
- path.skip();
- }
-
-};
\ No newline at end of file
diff --git a/node_modules/@babel/helper-module-transforms/package.json b/node_modules/@babel/helper-module-transforms/package.json
deleted file mode 100644
index b06afdbb..00000000
--- a/node_modules/@babel/helper-module-transforms/package.json
+++ /dev/null
@@ -1,59 +0,0 @@
-{
- "_args": [
- [
- "@babel/helper-module-transforms@7.5.5",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/helper-module-transforms@7.5.5",
- "_id": "@babel/helper-module-transforms@7.5.5",
- "_inBundle": false,
- "_integrity": "sha512-jBeCvETKuJqeiaCdyaheF40aXnnU1+wkSiUs/IQg3tB85up1LyL8x77ClY8qJpuRJUcXQo+ZtdNESmZl4j56Pw==",
- "_location": "/@babel/helper-module-transforms",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/helper-module-transforms@7.5.5",
- "name": "@babel/helper-module-transforms",
- "escapedName": "@babel%2fhelper-module-transforms",
- "scope": "@babel",
- "rawSpec": "7.5.5",
- "saveSpec": null,
- "fetchSpec": "7.5.5"
- },
- "_requiredBy": [
- "/@babel/plugin-transform-modules-amd",
- "/@babel/plugin-transform-modules-commonjs",
- "/@babel/plugin-transform-modules-umd"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.5.5.tgz",
- "_spec": "7.5.5",
- "_where": "E:\\python\\setup-php",
- "author": {
- "name": "Logan Smyth",
- "email": "loganfsmyth@gmail.com"
- },
- "dependencies": {
- "@babel/helper-module-imports": "^7.0.0",
- "@babel/helper-simple-access": "^7.1.0",
- "@babel/helper-split-export-declaration": "^7.4.4",
- "@babel/template": "^7.4.4",
- "@babel/types": "^7.5.5",
- "lodash": "^4.17.13"
- },
- "description": "Babel helper functions for implementing ES6 module transformations",
- "gitHead": "0407f034f09381b95e9cabefbf6b176c76485a43",
- "homepage": "https://babeljs.io/",
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/helper-module-transforms",
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-helper-module-transforms"
- },
- "version": "7.5.5"
-}
diff --git a/node_modules/@babel/helper-optimise-call-expression/LICENSE b/node_modules/@babel/helper-optimise-call-expression/LICENSE
deleted file mode 100644
index 620366eb..00000000
--- a/node_modules/@babel/helper-optimise-call-expression/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-2018 Sebastian McKenzie
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/helper-optimise-call-expression/README.md b/node_modules/@babel/helper-optimise-call-expression/README.md
deleted file mode 100644
index b232ac9c..00000000
--- a/node_modules/@babel/helper-optimise-call-expression/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/helper-optimise-call-expression
-
-> Helper function to optimise call expression
-
-See our website [@babel/helper-optimise-call-expression](https://babeljs.io/docs/en/next/babel-helper-optimise-call-expression.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/helper-optimise-call-expression
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/helper-optimise-call-expression --dev
-```
diff --git a/node_modules/@babel/helper-optimise-call-expression/lib/index.js b/node_modules/@babel/helper-optimise-call-expression/lib/index.js
deleted file mode 100644
index c7bf5288..00000000
--- a/node_modules/@babel/helper-optimise-call-expression/lib/index.js
+++ /dev/null
@@ -1,28 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = _default;
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function _default(callee, thisNode, args) {
- if (args.length === 1 && t().isSpreadElement(args[0]) && t().isIdentifier(args[0].argument, {
- name: "arguments"
- })) {
- return t().callExpression(t().memberExpression(callee, t().identifier("apply")), [thisNode, args[0].argument]);
- } else {
- return t().callExpression(t().memberExpression(callee, t().identifier("call")), [thisNode, ...args]);
- }
-}
\ No newline at end of file
diff --git a/node_modules/@babel/helper-optimise-call-expression/package.json b/node_modules/@babel/helper-optimise-call-expression/package.json
deleted file mode 100644
index 24d3113d..00000000
--- a/node_modules/@babel/helper-optimise-call-expression/package.json
+++ /dev/null
@@ -1,44 +0,0 @@
-{
- "_args": [
- [
- "@babel/helper-optimise-call-expression@7.0.0",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/helper-optimise-call-expression@7.0.0",
- "_id": "@babel/helper-optimise-call-expression@7.0.0",
- "_inBundle": false,
- "_integrity": "sha512-u8nd9NQePYNQV8iPWu/pLLYBqZBa4ZaY1YWRFMuxrid94wKI1QNt67NEZ7GAe5Kc/0LLScbim05xZFWkAdrj9g==",
- "_location": "/@babel/helper-optimise-call-expression",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/helper-optimise-call-expression@7.0.0",
- "name": "@babel/helper-optimise-call-expression",
- "escapedName": "@babel%2fhelper-optimise-call-expression",
- "scope": "@babel",
- "rawSpec": "7.0.0",
- "saveSpec": null,
- "fetchSpec": "7.0.0"
- },
- "_requiredBy": [
- "/@babel/helper-replace-supers",
- "/@babel/plugin-transform-classes"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.0.0.tgz",
- "_spec": "7.0.0",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/types": "^7.0.0"
- },
- "description": "Helper function to optimise call expression",
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/helper-optimise-call-expression",
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-helper-optimise-call-expression"
- },
- "version": "7.0.0"
-}
diff --git a/node_modules/@babel/helper-plugin-utils/LICENSE b/node_modules/@babel/helper-plugin-utils/LICENSE
deleted file mode 100644
index 620366eb..00000000
--- a/node_modules/@babel/helper-plugin-utils/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-2018 Sebastian McKenzie
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/helper-plugin-utils/README.md b/node_modules/@babel/helper-plugin-utils/README.md
deleted file mode 100644
index 4e6303e0..00000000
--- a/node_modules/@babel/helper-plugin-utils/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/helper-plugin-utils
-
-> General utilities for plugins to use
-
-See our website [@babel/helper-plugin-utils](https://babeljs.io/docs/en/next/babel-helper-plugin-utils.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/helper-plugin-utils
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/helper-plugin-utils --dev
-```
diff --git a/node_modules/@babel/helper-plugin-utils/lib/index.js b/node_modules/@babel/helper-plugin-utils/lib/index.js
deleted file mode 100644
index adb0656f..00000000
--- a/node_modules/@babel/helper-plugin-utils/lib/index.js
+++ /dev/null
@@ -1,77 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.declare = declare;
-
-function declare(builder) {
- return (api, options, dirname) => {
- if (!api.assertVersion) {
- api = Object.assign(copyApiObject(api), {
- assertVersion(range) {
- throwVersionError(range, api.version);
- }
-
- });
- }
-
- return builder(api, options || {}, dirname);
- };
-}
-
-function copyApiObject(api) {
- let proto = null;
-
- if (typeof api.version === "string" && /^7\./.test(api.version)) {
- proto = Object.getPrototypeOf(api);
-
- if (proto && (!has(proto, "version") || !has(proto, "transform") || !has(proto, "template") || !has(proto, "types"))) {
- proto = null;
- }
- }
-
- return Object.assign({}, proto, api);
-}
-
-function has(obj, key) {
- return Object.prototype.hasOwnProperty.call(obj, key);
-}
-
-function throwVersionError(range, version) {
- if (typeof range === "number") {
- if (!Number.isInteger(range)) {
- throw new Error("Expected string or integer value.");
- }
-
- range = `^${range}.0.0-0`;
- }
-
- if (typeof range !== "string") {
- throw new Error("Expected string or integer value.");
- }
-
- const limit = Error.stackTraceLimit;
-
- if (typeof limit === "number" && limit < 25) {
- Error.stackTraceLimit = 25;
- }
-
- let err;
-
- if (version.slice(0, 2) === "7.") {
- err = new Error(`Requires Babel "^7.0.0-beta.41", but was loaded with "${version}". ` + `You'll need to update your @babel/core version.`);
- } else {
- err = new Error(`Requires Babel "${range}", but was loaded with "${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 limit === "number") {
- Error.stackTraceLimit = limit;
- }
-
- throw Object.assign(err, {
- code: "BABEL_VERSION_UNSUPPORTED",
- version,
- range
- });
-}
\ No newline at end of file
diff --git a/node_modules/@babel/helper-plugin-utils/package.json b/node_modules/@babel/helper-plugin-utils/package.json
deleted file mode 100644
index b672fe05..00000000
--- a/node_modules/@babel/helper-plugin-utils/package.json
+++ /dev/null
@@ -1,86 +0,0 @@
-{
- "_args": [
- [
- "@babel/helper-plugin-utils@7.0.0",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/helper-plugin-utils@7.0.0",
- "_id": "@babel/helper-plugin-utils@7.0.0",
- "_inBundle": false,
- "_integrity": "sha512-CYAOUCARwExnEixLdB6sDm2dIJ/YgEAKDM1MOeMeZu9Ld/bDgVo8aiWrXwcY7OBh+1Ea2uUcVRcxKk0GJvW7QA==",
- "_location": "/@babel/helper-plugin-utils",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/helper-plugin-utils@7.0.0",
- "name": "@babel/helper-plugin-utils",
- "escapedName": "@babel%2fhelper-plugin-utils",
- "scope": "@babel",
- "rawSpec": "7.0.0",
- "saveSpec": null,
- "fetchSpec": "7.0.0"
- },
- "_requiredBy": [
- "/@babel/plugin-proposal-async-generator-functions",
- "/@babel/plugin-proposal-dynamic-import",
- "/@babel/plugin-proposal-json-strings",
- "/@babel/plugin-proposal-object-rest-spread",
- "/@babel/plugin-proposal-optional-catch-binding",
- "/@babel/plugin-proposal-unicode-property-regex",
- "/@babel/plugin-syntax-async-generators",
- "/@babel/plugin-syntax-dynamic-import",
- "/@babel/plugin-syntax-json-strings",
- "/@babel/plugin-syntax-object-rest-spread",
- "/@babel/plugin-syntax-optional-catch-binding",
- "/@babel/plugin-transform-arrow-functions",
- "/@babel/plugin-transform-async-to-generator",
- "/@babel/plugin-transform-block-scoped-functions",
- "/@babel/plugin-transform-block-scoping",
- "/@babel/plugin-transform-classes",
- "/@babel/plugin-transform-computed-properties",
- "/@babel/plugin-transform-destructuring",
- "/@babel/plugin-transform-dotall-regex",
- "/@babel/plugin-transform-duplicate-keys",
- "/@babel/plugin-transform-exponentiation-operator",
- "/@babel/plugin-transform-for-of",
- "/@babel/plugin-transform-function-name",
- "/@babel/plugin-transform-literals",
- "/@babel/plugin-transform-member-expression-literals",
- "/@babel/plugin-transform-modules-amd",
- "/@babel/plugin-transform-modules-commonjs",
- "/@babel/plugin-transform-modules-systemjs",
- "/@babel/plugin-transform-modules-umd",
- "/@babel/plugin-transform-new-target",
- "/@babel/plugin-transform-object-super",
- "/@babel/plugin-transform-parameters",
- "/@babel/plugin-transform-property-literals",
- "/@babel/plugin-transform-reserved-words",
- "/@babel/plugin-transform-shorthand-properties",
- "/@babel/plugin-transform-spread",
- "/@babel/plugin-transform-sticky-regex",
- "/@babel/plugin-transform-template-literals",
- "/@babel/plugin-transform-typeof-symbol",
- "/@babel/plugin-transform-unicode-regex",
- "/@babel/preset-env",
- "/babel-plugin-istanbul"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.0.0.tgz",
- "_spec": "7.0.0",
- "_where": "E:\\python\\setup-php",
- "author": {
- "name": "Logan Smyth",
- "email": "loganfsmyth@gmail.com"
- },
- "description": "General utilities for plugins to use",
- "homepage": "https://babeljs.io/",
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/helper-plugin-utils",
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-helper-plugin-utils"
- },
- "version": "7.0.0"
-}
diff --git a/node_modules/@babel/helper-plugin-utils/src/index.js b/node_modules/@babel/helper-plugin-utils/src/index.js
deleted file mode 100644
index f0ecb83a..00000000
--- a/node_modules/@babel/helper-plugin-utils/src/index.js
+++ /dev/null
@@ -1,95 +0,0 @@
-export function declare(builder) {
- return (api, options, dirname) => {
- if (!api.assertVersion) {
- // Inject a custom version of 'assertVersion' for Babel 6 and early
- // versions of Babel 7's beta that didn't have it.
- api = Object.assign(copyApiObject(api), {
- assertVersion(range) {
- throwVersionError(range, api.version);
- },
- });
- }
-
- return builder(api, options || {}, dirname);
- };
-}
-
-function copyApiObject(api) {
- // Babel >= 7 <= beta.41 passed the API as a new object that had
- // babel/core as the prototype. While slightly faster, it also
- // means that the Object.assign copy below fails. Rather than
- // keep complexity, the Babel 6 behavior has been reverted and this
- // normalizes all that for Babel 7.
- let proto = null;
- if (typeof api.version === "string" && /^7\./.test(api.version)) {
- proto = Object.getPrototypeOf(api);
- if (
- proto &&
- (!has(proto, "version") ||
- !has(proto, "transform") ||
- !has(proto, "template") ||
- !has(proto, "types"))
- ) {
- proto = null;
- }
- }
-
- return {
- ...proto,
- ...api,
- };
-}
-
-function has(obj, key) {
- return Object.prototype.hasOwnProperty.call(obj, key);
-}
-
-function throwVersionError(range, version) {
- if (typeof range === "number") {
- if (!Number.isInteger(range)) {
- throw new Error("Expected string or integer value.");
- }
- range = `^${range}.0.0-0`;
- }
- if (typeof range !== "string") {
- throw new Error("Expected string or integer value.");
- }
-
- const limit = Error.stackTraceLimit;
-
- if (typeof limit === "number" && limit < 25) {
- // Bump up the limit if needed so that users are more likely
- // to be able to see what is calling Babel.
- Error.stackTraceLimit = 25;
- }
-
- let err;
- if (version.slice(0, 2) === "7.") {
- err = new Error(
- `Requires Babel "^7.0.0-beta.41", but was loaded with "${version}". ` +
- `You'll need to update your @babel/core version.`,
- );
- } else {
- err = new Error(
- `Requires Babel "${range}", but was loaded with "${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 limit === "number") {
- Error.stackTraceLimit = limit;
- }
-
- throw Object.assign(
- err,
- ({
- code: "BABEL_VERSION_UNSUPPORTED",
- version,
- range,
- }: any),
- );
-}
diff --git a/node_modules/@babel/helper-regex/LICENSE b/node_modules/@babel/helper-regex/LICENSE
deleted file mode 100644
index f31575ec..00000000
--- a/node_modules/@babel/helper-regex/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-present Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/helper-regex/README.md b/node_modules/@babel/helper-regex/README.md
deleted file mode 100644
index 7ccff97a..00000000
--- a/node_modules/@babel/helper-regex/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/helper-regex
-
-> Helper function to check for literal RegEx
-
-See our website [@babel/helper-regex](https://babeljs.io/docs/en/next/babel-helper-regex.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/helper-regex
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/helper-regex --dev
-```
diff --git a/node_modules/@babel/helper-regex/lib/index.js b/node_modules/@babel/helper-regex/lib/index.js
deleted file mode 100644
index 9d046475..00000000
--- a/node_modules/@babel/helper-regex/lib/index.js
+++ /dev/null
@@ -1,30 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.is = is;
-exports.pullFlag = pullFlag;
-
-function _pull() {
- const data = _interopRequireDefault(require("lodash/pull"));
-
- _pull = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function is(node, flag) {
- return node.type === "RegExpLiteral" && node.flags.indexOf(flag) >= 0;
-}
-
-function pullFlag(node, flag) {
- const flags = node.flags.split("");
- if (node.flags.indexOf(flag) < 0) return;
- (0, _pull().default)(flags, flag);
- node.flags = flags.join("");
-}
\ No newline at end of file
diff --git a/node_modules/@babel/helper-regex/package.json b/node_modules/@babel/helper-regex/package.json
deleted file mode 100644
index 3922c38a..00000000
--- a/node_modules/@babel/helper-regex/package.json
+++ /dev/null
@@ -1,50 +0,0 @@
-{
- "_args": [
- [
- "@babel/helper-regex@7.5.5",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/helper-regex@7.5.5",
- "_id": "@babel/helper-regex@7.5.5",
- "_inBundle": false,
- "_integrity": "sha512-CkCYQLkfkiugbRDO8eZn6lRuR8kzZoGXCg3149iTk5se7g6qykSpy3+hELSwquhu+TgHn8nkLiBwHvNX8Hofcw==",
- "_location": "/@babel/helper-regex",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/helper-regex@7.5.5",
- "name": "@babel/helper-regex",
- "escapedName": "@babel%2fhelper-regex",
- "scope": "@babel",
- "rawSpec": "7.5.5",
- "saveSpec": null,
- "fetchSpec": "7.5.5"
- },
- "_requiredBy": [
- "/@babel/plugin-proposal-unicode-property-regex",
- "/@babel/plugin-transform-dotall-regex",
- "/@babel/plugin-transform-sticky-regex",
- "/@babel/plugin-transform-unicode-regex"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/helper-regex/-/helper-regex-7.5.5.tgz",
- "_spec": "7.5.5",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "lodash": "^4.17.13"
- },
- "description": "Helper function to check for literal RegEx",
- "gitHead": "0407f034f09381b95e9cabefbf6b176c76485a43",
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/helper-regex",
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-helper-regex"
- },
- "version": "7.5.5"
-}
diff --git a/node_modules/@babel/helper-remap-async-to-generator/LICENSE b/node_modules/@babel/helper-remap-async-to-generator/LICENSE
deleted file mode 100644
index a06ec0e7..00000000
--- a/node_modules/@babel/helper-remap-async-to-generator/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-2018 Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/helper-remap-async-to-generator/README.md b/node_modules/@babel/helper-remap-async-to-generator/README.md
deleted file mode 100644
index 39a453cd..00000000
--- a/node_modules/@babel/helper-remap-async-to-generator/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/helper-remap-async-to-generator
-
-> Helper function to remap async functions to generators
-
-See our website [@babel/helper-remap-async-to-generator](https://babeljs.io/docs/en/next/babel-helper-remap-async-to-generator.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/helper-remap-async-to-generator
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/helper-remap-async-to-generator --dev
-```
diff --git a/node_modules/@babel/helper-remap-async-to-generator/lib/index.js b/node_modules/@babel/helper-remap-async-to-generator/lib/index.js
deleted file mode 100644
index feca8850..00000000
--- a/node_modules/@babel/helper-remap-async-to-generator/lib/index.js
+++ /dev/null
@@ -1,100 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = _default;
-
-function _helperWrapFunction() {
- const data = _interopRequireDefault(require("@babel/helper-wrap-function"));
-
- _helperWrapFunction = function () {
- return data;
- };
-
- return data;
-}
-
-function _helperAnnotateAsPure() {
- const data = _interopRequireDefault(require("@babel/helper-annotate-as-pure"));
-
- _helperAnnotateAsPure = function () {
- return data;
- };
-
- return data;
-}
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-const awaitVisitor = {
- Function(path) {
- path.skip();
- },
-
- AwaitExpression(path, {
- wrapAwait
- }) {
- const argument = path.get("argument");
-
- if (path.parentPath.isYieldExpression()) {
- path.replaceWith(argument.node);
- return;
- }
-
- path.replaceWith(t().yieldExpression(wrapAwait ? t().callExpression(t().cloneNode(wrapAwait), [argument.node]) : argument.node));
- }
-
-};
-
-function _default(path, helpers) {
- path.traverse(awaitVisitor, {
- wrapAwait: helpers.wrapAwait
- });
- const isIIFE = checkIsIIFE(path);
- path.node.async = false;
- path.node.generator = true;
- (0, _helperWrapFunction().default)(path, t().cloneNode(helpers.wrapAsync));
- const isProperty = path.isObjectMethod() || path.isClassMethod() || path.parentPath.isObjectProperty() || path.parentPath.isClassProperty();
-
- if (!isProperty && !isIIFE && path.isExpression()) {
- (0, _helperAnnotateAsPure().default)(path);
- }
-
- function checkIsIIFE(path) {
- if (path.parentPath.isCallExpression({
- callee: path.node
- })) {
- return true;
- }
-
- const {
- parentPath
- } = path;
-
- if (parentPath.isMemberExpression() && t().isIdentifier(parentPath.node.property, {
- name: "bind"
- })) {
- const {
- parentPath: bindCall
- } = parentPath;
- return bindCall.isCallExpression() && bindCall.node.arguments.length === 1 && t().isThisExpression(bindCall.node.arguments[0]) && bindCall.parentPath.isCallExpression({
- callee: bindCall.node
- });
- }
-
- return false;
- }
-}
\ No newline at end of file
diff --git a/node_modules/@babel/helper-remap-async-to-generator/package.json b/node_modules/@babel/helper-remap-async-to-generator/package.json
deleted file mode 100644
index 68f87953..00000000
--- a/node_modules/@babel/helper-remap-async-to-generator/package.json
+++ /dev/null
@@ -1,51 +0,0 @@
-{
- "_args": [
- [
- "@babel/helper-remap-async-to-generator@7.1.0",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/helper-remap-async-to-generator@7.1.0",
- "_id": "@babel/helper-remap-async-to-generator@7.1.0",
- "_inBundle": false,
- "_integrity": "sha512-3fOK0L+Fdlg8S5al8u/hWE6vhufGSn0bN09xm2LXMy//REAF8kDCrYoOBKYmA8m5Nom+sV9LyLCwrFynA8/slg==",
- "_location": "/@babel/helper-remap-async-to-generator",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/helper-remap-async-to-generator@7.1.0",
- "name": "@babel/helper-remap-async-to-generator",
- "escapedName": "@babel%2fhelper-remap-async-to-generator",
- "scope": "@babel",
- "rawSpec": "7.1.0",
- "saveSpec": null,
- "fetchSpec": "7.1.0"
- },
- "_requiredBy": [
- "/@babel/plugin-proposal-async-generator-functions",
- "/@babel/plugin-transform-async-to-generator"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.1.0.tgz",
- "_spec": "7.1.0",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-annotate-as-pure": "^7.0.0",
- "@babel/helper-wrap-function": "^7.1.0",
- "@babel/template": "^7.1.0",
- "@babel/traverse": "^7.1.0",
- "@babel/types": "^7.0.0"
- },
- "description": "Helper function to remap async functions to generators",
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/helper-remap-async-to-generator",
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-helper-remap-async-to-generator"
- },
- "version": "7.1.0"
-}
diff --git a/node_modules/@babel/helper-replace-supers/LICENSE b/node_modules/@babel/helper-replace-supers/LICENSE
deleted file mode 100644
index f31575ec..00000000
--- a/node_modules/@babel/helper-replace-supers/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-present Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/helper-replace-supers/README.md b/node_modules/@babel/helper-replace-supers/README.md
deleted file mode 100644
index 60ec4cca..00000000
--- a/node_modules/@babel/helper-replace-supers/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/helper-replace-supers
-
-> Helper function to replace supers
-
-See our website [@babel/helper-replace-supers](https://babeljs.io/docs/en/next/babel-helper-replace-supers.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/helper-replace-supers
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/helper-replace-supers --dev
-```
diff --git a/node_modules/@babel/helper-replace-supers/lib/index.js b/node_modules/@babel/helper-replace-supers/lib/index.js
deleted file mode 100644
index 2fd91a7f..00000000
--- a/node_modules/@babel/helper-replace-supers/lib/index.js
+++ /dev/null
@@ -1,241 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = exports.environmentVisitor = void 0;
-
-function _traverse() {
- const data = _interopRequireDefault(require("@babel/traverse"));
-
- _traverse = function () {
- return data;
- };
-
- return data;
-}
-
-function _helperMemberExpressionToFunctions() {
- const data = _interopRequireDefault(require("@babel/helper-member-expression-to-functions"));
-
- _helperMemberExpressionToFunctions = function () {
- return data;
- };
-
- return data;
-}
-
-function _helperOptimiseCallExpression() {
- const data = _interopRequireDefault(require("@babel/helper-optimise-call-expression"));
-
- _helperOptimiseCallExpression = function () {
- return data;
- };
-
- return data;
-}
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function getPrototypeOfExpression(objectRef, isStatic, file, isPrivateMethod) {
- objectRef = t().cloneNode(objectRef);
- const targetRef = isStatic || isPrivateMethod ? objectRef : t().memberExpression(objectRef, t().identifier("prototype"));
- return t().callExpression(file.addHelper("getPrototypeOf"), [targetRef]);
-}
-
-function skipAllButComputedKey(path) {
- if (!path.node.computed) {
- path.skip();
- return;
- }
-
- const keys = t().VISITOR_KEYS[path.type];
-
- for (const key of keys) {
- if (key !== "key") path.skipKey(key);
- }
-}
-
-const environmentVisitor = {
- TypeAnnotation(path) {
- path.skip();
- },
-
- Function(path) {
- if (path.isMethod()) return;
- if (path.isArrowFunctionExpression()) return;
- path.skip();
- },
-
- "Method|ClassProperty|ClassPrivateProperty"(path) {
- skipAllButComputedKey(path);
- }
-
-};
-exports.environmentVisitor = environmentVisitor;
-
-const visitor = _traverse().default.visitors.merge([environmentVisitor, {
- Super(path, state) {
- const {
- node,
- parentPath
- } = path;
- if (!parentPath.isMemberExpression({
- object: node
- })) return;
- state.handle(parentPath);
- }
-
-}]);
-
-const specHandlers = {
- memoise(superMember, count) {
- const {
- scope,
- node
- } = superMember;
- const {
- computed,
- property
- } = node;
-
- if (!computed) {
- return;
- }
-
- const memo = scope.maybeGenerateMemoised(property);
-
- if (!memo) {
- return;
- }
-
- this.memoiser.set(property, memo, count);
- },
-
- prop(superMember) {
- const {
- computed,
- property
- } = superMember.node;
-
- if (this.memoiser.has(property)) {
- return t().cloneNode(this.memoiser.get(property));
- }
-
- if (computed) {
- return t().cloneNode(property);
- }
-
- return t().stringLiteral(property.name);
- },
-
- get(superMember) {
- return t().callExpression(this.file.addHelper("get"), [getPrototypeOfExpression(this.getObjectRef(), this.isStatic, this.file, this.isPrivateMethod), this.prop(superMember), t().thisExpression()]);
- },
-
- set(superMember, value) {
- return t().callExpression(this.file.addHelper("set"), [getPrototypeOfExpression(this.getObjectRef(), this.isStatic, this.file, this.isPrivateMethod), this.prop(superMember), value, t().thisExpression(), t().booleanLiteral(superMember.isInStrictMode())]);
- },
-
- destructureSet(superMember) {
- throw superMember.buildCodeFrameError(`Destructuring to a super field is not supported yet.`);
- },
-
- call(superMember, args) {
- return (0, _helperOptimiseCallExpression().default)(this.get(superMember), t().thisExpression(), args);
- }
-
-};
-const looseHandlers = Object.assign({}, specHandlers, {
- prop(superMember) {
- const {
- property
- } = superMember.node;
-
- if (this.memoiser.has(property)) {
- return t().cloneNode(this.memoiser.get(property));
- }
-
- return t().cloneNode(property);
- },
-
- get(superMember) {
- const {
- isStatic,
- superRef
- } = this;
- const {
- computed
- } = superMember.node;
- const prop = this.prop(superMember);
- let object;
-
- if (isStatic) {
- object = superRef ? t().cloneNode(superRef) : t().memberExpression(t().identifier("Function"), t().identifier("prototype"));
- } else {
- object = superRef ? t().memberExpression(t().cloneNode(superRef), t().identifier("prototype")) : t().memberExpression(t().identifier("Object"), t().identifier("prototype"));
- }
-
- return t().memberExpression(object, prop, computed);
- },
-
- set(superMember, value) {
- const {
- computed
- } = superMember.node;
- const prop = this.prop(superMember);
- return t().assignmentExpression("=", t().memberExpression(t().thisExpression(), prop, computed), value);
- },
-
- destructureSet(superMember) {
- const {
- computed
- } = superMember.node;
- const prop = this.prop(superMember);
- return t().memberExpression(t().thisExpression(), prop, computed);
- }
-
-});
-
-class ReplaceSupers {
- constructor(opts) {
- const path = opts.methodPath;
- this.methodPath = path;
- this.isStatic = path.isObjectMethod() || path.node.static;
- this.isPrivateMethod = path.isPrivate() && path.isMethod();
- this.file = opts.file;
- this.superRef = opts.superRef;
- this.isLoose = opts.isLoose;
- this.opts = opts;
- }
-
- getObjectRef() {
- return t().cloneNode(this.opts.objectRef || this.opts.getObjectRef());
- }
-
- replace() {
- const handler = this.isLoose ? looseHandlers : specHandlers;
- (0, _helperMemberExpressionToFunctions().default)(this.methodPath, visitor, Object.assign({
- file: this.file,
- isStatic: this.isStatic,
- isPrivateMethod: this.isPrivateMethod,
- getObjectRef: this.getObjectRef.bind(this),
- superRef: this.superRef
- }, handler));
- }
-
-}
-
-exports.default = ReplaceSupers;
\ No newline at end of file
diff --git a/node_modules/@babel/helper-replace-supers/package.json b/node_modules/@babel/helper-replace-supers/package.json
deleted file mode 100644
index 148244fe..00000000
--- a/node_modules/@babel/helper-replace-supers/package.json
+++ /dev/null
@@ -1,51 +0,0 @@
-{
- "_args": [
- [
- "@babel/helper-replace-supers@7.5.5",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/helper-replace-supers@7.5.5",
- "_id": "@babel/helper-replace-supers@7.5.5",
- "_inBundle": false,
- "_integrity": "sha512-XvRFWrNnlsow2u7jXDuH4jDDctkxbS7gXssrP4q2nUD606ukXHRvydj346wmNg+zAgpFx4MWf4+usfC93bElJg==",
- "_location": "/@babel/helper-replace-supers",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/helper-replace-supers@7.5.5",
- "name": "@babel/helper-replace-supers",
- "escapedName": "@babel%2fhelper-replace-supers",
- "scope": "@babel",
- "rawSpec": "7.5.5",
- "saveSpec": null,
- "fetchSpec": "7.5.5"
- },
- "_requiredBy": [
- "/@babel/plugin-transform-classes",
- "/@babel/plugin-transform-object-super"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.5.5.tgz",
- "_spec": "7.5.5",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-member-expression-to-functions": "^7.5.5",
- "@babel/helper-optimise-call-expression": "^7.0.0",
- "@babel/traverse": "^7.5.5",
- "@babel/types": "^7.5.5"
- },
- "description": "Helper function to replace supers",
- "gitHead": "0407f034f09381b95e9cabefbf6b176c76485a43",
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/helper-replace-supers",
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-helper-replace-supers"
- },
- "version": "7.5.5"
-}
diff --git a/node_modules/@babel/helper-simple-access/LICENSE b/node_modules/@babel/helper-simple-access/LICENSE
deleted file mode 100644
index a06ec0e7..00000000
--- a/node_modules/@babel/helper-simple-access/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-2018 Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/helper-simple-access/README.md b/node_modules/@babel/helper-simple-access/README.md
deleted file mode 100644
index 206436ca..00000000
--- a/node_modules/@babel/helper-simple-access/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/helper-simple-access
-
-> Babel helper for ensuring that access to a given value is performed through simple accesses
-
-See our website [@babel/helper-simple-access](https://babeljs.io/docs/en/next/babel-helper-simple-access.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/helper-simple-access
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/helper-simple-access --dev
-```
diff --git a/node_modules/@babel/helper-simple-access/lib/index.js b/node_modules/@babel/helper-simple-access/lib/index.js
deleted file mode 100644
index e6af96e0..00000000
--- a/node_modules/@babel/helper-simple-access/lib/index.js
+++ /dev/null
@@ -1,85 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = simplifyAccess;
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function simplifyAccess(path, bindingNames) {
- path.traverse(simpleAssignmentVisitor, {
- scope: path.scope,
- bindingNames,
- seen: new WeakSet()
- });
-}
-
-const simpleAssignmentVisitor = {
- UpdateExpression: {
- exit(path) {
- const {
- scope,
- bindingNames
- } = this;
- const arg = path.get("argument");
- if (!arg.isIdentifier()) return;
- const localName = arg.node.name;
- if (!bindingNames.has(localName)) return;
-
- if (scope.getBinding(localName) !== path.scope.getBinding(localName)) {
- return;
- }
-
- if (path.parentPath.isExpressionStatement() && !path.isCompletionRecord()) {
- const operator = path.node.operator == "++" ? "+=" : "-=";
- path.replaceWith(t().assignmentExpression(operator, arg.node, t().numericLiteral(1)));
- } else if (path.node.prefix) {
- path.replaceWith(t().assignmentExpression("=", t().identifier(localName), t().binaryExpression(path.node.operator[0], t().unaryExpression("+", arg.node), t().numericLiteral(1))));
- } else {
- const old = path.scope.generateUidIdentifierBasedOnNode(arg.node, "old");
- const varName = old.name;
- path.scope.push({
- id: old
- });
- const binary = t().binaryExpression(path.node.operator[0], t().identifier(varName), t().numericLiteral(1));
- path.replaceWith(t().sequenceExpression([t().assignmentExpression("=", t().identifier(varName), t().unaryExpression("+", arg.node)), t().assignmentExpression("=", t().cloneNode(arg.node), binary), t().identifier(varName)]));
- }
- }
-
- },
- AssignmentExpression: {
- exit(path) {
- const {
- scope,
- seen,
- bindingNames
- } = this;
- if (path.node.operator === "=") return;
- if (seen.has(path.node)) return;
- seen.add(path.node);
- const left = path.get("left");
- if (!left.isIdentifier()) return;
- const localName = left.node.name;
- if (!bindingNames.has(localName)) return;
-
- if (scope.getBinding(localName) !== path.scope.getBinding(localName)) {
- return;
- }
-
- path.node.right = t().binaryExpression(path.node.operator.slice(0, -1), t().cloneNode(path.node.left), path.node.right);
- path.node.operator = "=";
- }
-
- }
-};
\ No newline at end of file
diff --git a/node_modules/@babel/helper-simple-access/package.json b/node_modules/@babel/helper-simple-access/package.json
deleted file mode 100644
index 1cbab91a..00000000
--- a/node_modules/@babel/helper-simple-access/package.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "_args": [
- [
- "@babel/helper-simple-access@7.1.0",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/helper-simple-access@7.1.0",
- "_id": "@babel/helper-simple-access@7.1.0",
- "_inBundle": false,
- "_integrity": "sha512-Vk+78hNjRbsiu49zAPALxTb+JUQCz1aolpd8osOF16BGnLtseD21nbHgLPGUwrXEurZgiCOUmvs3ExTu4F5x6w==",
- "_location": "/@babel/helper-simple-access",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/helper-simple-access@7.1.0",
- "name": "@babel/helper-simple-access",
- "escapedName": "@babel%2fhelper-simple-access",
- "scope": "@babel",
- "rawSpec": "7.1.0",
- "saveSpec": null,
- "fetchSpec": "7.1.0"
- },
- "_requiredBy": [
- "/@babel/helper-module-transforms",
- "/@babel/plugin-transform-modules-commonjs"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.1.0.tgz",
- "_spec": "7.1.0",
- "_where": "E:\\python\\setup-php",
- "author": {
- "name": "Logan Smyth",
- "email": "loganfsmyth@gmail.com"
- },
- "dependencies": {
- "@babel/template": "^7.1.0",
- "@babel/types": "^7.0.0"
- },
- "description": "Babel helper for ensuring that access to a given value is performed through simple accesses",
- "homepage": "https://babeljs.io/",
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/helper-simple-access",
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-helper-simple-access"
- },
- "version": "7.1.0"
-}
diff --git a/node_modules/@babel/helper-split-export-declaration/LICENSE b/node_modules/@babel/helper-split-export-declaration/LICENSE
deleted file mode 100644
index f31575ec..00000000
--- a/node_modules/@babel/helper-split-export-declaration/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-present Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/helper-split-export-declaration/README.md b/node_modules/@babel/helper-split-export-declaration/README.md
deleted file mode 100644
index d241fee0..00000000
--- a/node_modules/@babel/helper-split-export-declaration/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/helper-split-export-declaration
-
->
-
-See our website [@babel/helper-split-export-declaration](https://babeljs.io/docs/en/next/babel-helper-split-export-declaration.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/helper-split-export-declaration
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/helper-split-export-declaration --dev
-```
diff --git a/node_modules/@babel/helper-split-export-declaration/lib/index.js b/node_modules/@babel/helper-split-export-declaration/lib/index.js
deleted file mode 100644
index ddb34bc3..00000000
--- a/node_modules/@babel/helper-split-export-declaration/lib/index.js
+++ /dev/null
@@ -1,68 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = splitExportDeclaration;
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function splitExportDeclaration(exportDeclaration) {
- if (!exportDeclaration.isExportDeclaration()) {
- throw new Error("Only export declarations can be splitted.");
- }
-
- const isDefault = exportDeclaration.isExportDefaultDeclaration();
- const declaration = exportDeclaration.get("declaration");
- const isClassDeclaration = declaration.isClassDeclaration();
-
- if (isDefault) {
- const standaloneDeclaration = declaration.isFunctionDeclaration() || isClassDeclaration;
- const scope = declaration.isScope() ? declaration.scope.parent : declaration.scope;
- let id = declaration.node.id;
- let needBindingRegistration = false;
-
- if (!id) {
- needBindingRegistration = true;
- id = scope.generateUidIdentifier("default");
-
- if (standaloneDeclaration || declaration.isFunctionExpression() || declaration.isClassExpression()) {
- declaration.node.id = t().cloneNode(id);
- }
- }
-
- const updatedDeclaration = standaloneDeclaration ? declaration : t().variableDeclaration("var", [t().variableDeclarator(t().cloneNode(id), declaration.node)]);
- const updatedExportDeclaration = t().exportNamedDeclaration(null, [t().exportSpecifier(t().cloneNode(id), t().identifier("default"))]);
- exportDeclaration.insertAfter(updatedExportDeclaration);
- exportDeclaration.replaceWith(updatedDeclaration);
-
- if (needBindingRegistration) {
- scope.registerDeclaration(exportDeclaration);
- }
-
- return exportDeclaration;
- }
-
- if (exportDeclaration.get("specifiers").length > 0) {
- throw new Error("It doesn't make sense to split exported specifiers.");
- }
-
- const bindingIdentifiers = declaration.getOuterBindingIdentifiers();
- const specifiers = Object.keys(bindingIdentifiers).map(name => {
- return t().exportSpecifier(t().identifier(name), t().identifier(name));
- });
- const aliasDeclar = t().exportNamedDeclaration(null, specifiers);
- exportDeclaration.insertAfter(aliasDeclar);
- exportDeclaration.replaceWith(declaration.node);
- return exportDeclaration;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/helper-split-export-declaration/package.json b/node_modules/@babel/helper-split-export-declaration/package.json
deleted file mode 100644
index 23bcbce0..00000000
--- a/node_modules/@babel/helper-split-export-declaration/package.json
+++ /dev/null
@@ -1,49 +0,0 @@
-{
- "_args": [
- [
- "@babel/helper-split-export-declaration@7.4.4",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/helper-split-export-declaration@7.4.4",
- "_id": "@babel/helper-split-export-declaration@7.4.4",
- "_inBundle": false,
- "_integrity": "sha512-Ro/XkzLf3JFITkW6b+hNxzZ1n5OQ80NvIUdmHspih1XAhtN3vPTuUFT4eQnela+2MaZ5ulH+iyP513KJrxbN7Q==",
- "_location": "/@babel/helper-split-export-declaration",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/helper-split-export-declaration@7.4.4",
- "name": "@babel/helper-split-export-declaration",
- "escapedName": "@babel%2fhelper-split-export-declaration",
- "scope": "@babel",
- "rawSpec": "7.4.4",
- "saveSpec": null,
- "fetchSpec": "7.4.4"
- },
- "_requiredBy": [
- "/@babel/helper-module-transforms",
- "/@babel/plugin-transform-classes",
- "/@babel/traverse"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.4.4.tgz",
- "_spec": "7.4.4",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/types": "^7.4.4"
- },
- "description": ">",
- "gitHead": "2c88694388831b1e5b88e4bbed6781eb2be1edba",
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/helper-split-export-declaration",
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-helper-split-export-declaration"
- },
- "version": "7.4.4"
-}
diff --git a/node_modules/@babel/helper-wrap-function/LICENSE b/node_modules/@babel/helper-wrap-function/LICENSE
deleted file mode 100644
index a06ec0e7..00000000
--- a/node_modules/@babel/helper-wrap-function/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-2018 Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/helper-wrap-function/README.md b/node_modules/@babel/helper-wrap-function/README.md
deleted file mode 100644
index cf102947..00000000
--- a/node_modules/@babel/helper-wrap-function/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/helper-wrap-function
-
-> Helper to wrap functions inside a function call.
-
-See our website [@babel/helper-wrap-function](https://babeljs.io/docs/en/next/babel-helper-wrap-function.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/helper-wrap-function
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/helper-wrap-function --dev
-```
diff --git a/node_modules/@babel/helper-wrap-function/lib/index.js b/node_modules/@babel/helper-wrap-function/lib/index.js
deleted file mode 100644
index 6a916f77..00000000
--- a/node_modules/@babel/helper-wrap-function/lib/index.js
+++ /dev/null
@@ -1,142 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = wrapFunction;
-
-function _helperFunctionName() {
- const data = _interopRequireDefault(require("@babel/helper-function-name"));
-
- _helperFunctionName = function () {
- return data;
- };
-
- return data;
-}
-
-function _template() {
- const data = _interopRequireDefault(require("@babel/template"));
-
- _template = function () {
- return data;
- };
-
- return data;
-}
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-const buildAnonymousExpressionWrapper = _template().default.expression(`
- (function () {
- var REF = FUNCTION;
- return function NAME(PARAMS) {
- return REF.apply(this, arguments);
- };
- })()
-`);
-
-const buildNamedExpressionWrapper = _template().default.expression(`
- (function () {
- var REF = FUNCTION;
- function NAME(PARAMS) {
- return REF.apply(this, arguments);
- }
- return NAME;
- })()
-`);
-
-const buildDeclarationWrapper = (0, _template().default)(`
- function NAME(PARAMS) { return REF.apply(this, arguments); }
- function REF() {
- REF = FUNCTION;
- return REF.apply(this, arguments);
- }
-`);
-
-function classOrObjectMethod(path, callId) {
- const node = path.node;
- const body = node.body;
- const container = t().functionExpression(null, [], t().blockStatement(body.body), true);
- body.body = [t().returnStatement(t().callExpression(t().callExpression(callId, [container]), []))];
- node.async = false;
- node.generator = false;
- path.get("body.body.0.argument.callee.arguments.0").unwrapFunctionEnvironment();
-}
-
-function plainFunction(path, callId) {
- const node = path.node;
- const isDeclaration = path.isFunctionDeclaration();
- const functionId = node.id;
- const wrapper = isDeclaration ? buildDeclarationWrapper : functionId ? buildNamedExpressionWrapper : buildAnonymousExpressionWrapper;
-
- if (path.isArrowFunctionExpression()) {
- path.arrowFunctionToExpression();
- }
-
- node.id = null;
-
- if (isDeclaration) {
- node.type = "FunctionExpression";
- }
-
- const built = t().callExpression(callId, [node]);
- const container = wrapper({
- NAME: functionId || null,
- REF: path.scope.generateUidIdentifier(functionId ? functionId.name : "ref"),
- FUNCTION: built,
- PARAMS: node.params.reduce((acc, param) => {
- acc.done = acc.done || t().isAssignmentPattern(param) || t().isRestElement(param);
-
- if (!acc.done) {
- acc.params.push(path.scope.generateUidIdentifier("x"));
- }
-
- return acc;
- }, {
- params: [],
- done: false
- }).params
- });
-
- if (isDeclaration) {
- path.replaceWith(container[0]);
- path.insertAfter(container[1]);
- } else {
- const retFunction = container.callee.body.body[1].argument;
-
- if (!functionId) {
- (0, _helperFunctionName().default)({
- node: retFunction,
- parent: path.parent,
- scope: path.scope
- });
- }
-
- if (!retFunction || retFunction.id || node.params.length) {
- path.replaceWith(container);
- } else {
- path.replaceWith(built);
- }
- }
-}
-
-function wrapFunction(path, callId) {
- if (path.isClassMethod() || path.isObjectMethod()) {
- classOrObjectMethod(path, callId);
- } else {
- plainFunction(path, callId);
- }
-}
\ No newline at end of file
diff --git a/node_modules/@babel/helper-wrap-function/package.json b/node_modules/@babel/helper-wrap-function/package.json
deleted file mode 100644
index e48703da..00000000
--- a/node_modules/@babel/helper-wrap-function/package.json
+++ /dev/null
@@ -1,49 +0,0 @@
-{
- "_args": [
- [
- "@babel/helper-wrap-function@7.2.0",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/helper-wrap-function@7.2.0",
- "_id": "@babel/helper-wrap-function@7.2.0",
- "_inBundle": false,
- "_integrity": "sha512-o9fP1BZLLSrYlxYEYyl2aS+Flun5gtjTIG8iln+XuEzQTs0PLagAGSXUcqruJwD5fM48jzIEggCKpIfWTcR7pQ==",
- "_location": "/@babel/helper-wrap-function",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/helper-wrap-function@7.2.0",
- "name": "@babel/helper-wrap-function",
- "escapedName": "@babel%2fhelper-wrap-function",
- "scope": "@babel",
- "rawSpec": "7.2.0",
- "saveSpec": null,
- "fetchSpec": "7.2.0"
- },
- "_requiredBy": [
- "/@babel/helper-remap-async-to-generator"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.2.0.tgz",
- "_spec": "7.2.0",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-function-name": "^7.1.0",
- "@babel/template": "^7.1.0",
- "@babel/traverse": "^7.1.0",
- "@babel/types": "^7.2.0"
- },
- "description": "Helper to wrap functions inside a function call.",
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/helper-wrap-function",
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-helper-wrap-function"
- },
- "version": "7.2.0"
-}
diff --git a/node_modules/@babel/highlight/LICENSE b/node_modules/@babel/highlight/LICENSE
deleted file mode 100644
index f31575ec..00000000
--- a/node_modules/@babel/highlight/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-present Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/highlight/README.md b/node_modules/@babel/highlight/README.md
deleted file mode 100644
index 72dae609..00000000
--- a/node_modules/@babel/highlight/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/highlight
-
-> Syntax highlight JavaScript strings for output in terminals.
-
-See our website [@babel/highlight](https://babeljs.io/docs/en/next/babel-highlight.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/highlight
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/highlight --dev
-```
diff --git a/node_modules/@babel/highlight/lib/index.js b/node_modules/@babel/highlight/lib/index.js
deleted file mode 100644
index 6ac5b4a3..00000000
--- a/node_modules/@babel/highlight/lib/index.js
+++ /dev/null
@@ -1,129 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.shouldHighlight = shouldHighlight;
-exports.getChalk = getChalk;
-exports.default = highlight;
-
-function _jsTokens() {
- const data = _interopRequireWildcard(require("js-tokens"));
-
- _jsTokens = function () {
- return data;
- };
-
- return data;
-}
-
-function _esutils() {
- const data = _interopRequireDefault(require("esutils"));
-
- _esutils = function () {
- return data;
- };
-
- return data;
-}
-
-function _chalk() {
- const data = _interopRequireDefault(require("chalk"));
-
- _chalk = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function getDefs(chalk) {
- return {
- keyword: chalk.cyan,
- capitalized: chalk.yellow,
- jsx_tag: chalk.yellow,
- punctuator: chalk.yellow,
- number: chalk.magenta,
- string: chalk.green,
- regex: chalk.magenta,
- comment: chalk.grey,
- invalid: chalk.white.bgRed.bold
- };
-}
-
-const NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
-const JSX_TAG = /^[a-z][\w-]*$/i;
-const BRACKET = /^[()[\]{}]$/;
-
-function getTokenType(match) {
- const [offset, text] = match.slice(-2);
- const token = (0, _jsTokens().matchToToken)(match);
-
- if (token.type === "name") {
- if (_esutils().default.keyword.isReservedWordES6(token.value)) {
- return "keyword";
- }
-
- if (JSX_TAG.test(token.value) && (text[offset - 1] === "<" || text.substr(offset - 2, 2) == "")) {
- return "jsx_tag";
- }
-
- if (token.value[0] !== token.value[0].toLowerCase()) {
- return "capitalized";
- }
- }
-
- if (token.type === "punctuator" && BRACKET.test(token.value)) {
- return "bracket";
- }
-
- if (token.type === "invalid" && (token.value === "@" || token.value === "#")) {
- return "punctuator";
- }
-
- return token.type;
-}
-
-function highlightTokens(defs, text) {
- return text.replace(_jsTokens().default, function (...args) {
- const type = getTokenType(args);
- const colorize = defs[type];
-
- if (colorize) {
- return args[0].split(NEWLINE).map(str => colorize(str)).join("\n");
- } else {
- return args[0];
- }
- });
-}
-
-function shouldHighlight(options) {
- return _chalk().default.supportsColor || options.forceColor;
-}
-
-function getChalk(options) {
- let chalk = _chalk().default;
-
- if (options.forceColor) {
- chalk = new (_chalk().default.constructor)({
- enabled: true,
- level: 1
- });
- }
-
- return chalk;
-}
-
-function highlight(code, options = {}) {
- if (shouldHighlight(options)) {
- const chalk = getChalk(options);
- const defs = getDefs(chalk);
- return highlightTokens(defs, code);
- } else {
- return code;
- }
-}
\ No newline at end of file
diff --git a/node_modules/@babel/highlight/package.json b/node_modules/@babel/highlight/package.json
deleted file mode 100644
index 4897236d..00000000
--- a/node_modules/@babel/highlight/package.json
+++ /dev/null
@@ -1,57 +0,0 @@
-{
- "_args": [
- [
- "@babel/highlight@7.5.0",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/highlight@7.5.0",
- "_id": "@babel/highlight@7.5.0",
- "_inBundle": false,
- "_integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==",
- "_location": "/@babel/highlight",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/highlight@7.5.0",
- "name": "@babel/highlight",
- "escapedName": "@babel%2fhighlight",
- "scope": "@babel",
- "rawSpec": "7.5.0",
- "saveSpec": null,
- "fetchSpec": "7.5.0"
- },
- "_requiredBy": [
- "/@babel/code-frame"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz",
- "_spec": "7.5.0",
- "_where": "E:\\python\\setup-php",
- "author": {
- "name": "suchipi",
- "email": "me@suchipi.com"
- },
- "dependencies": {
- "chalk": "^2.0.0",
- "esutils": "^2.0.2",
- "js-tokens": "^4.0.0"
- },
- "description": "Syntax highlight JavaScript strings for output in terminals.",
- "devDependencies": {
- "strip-ansi": "^4.0.0"
- },
- "gitHead": "49da9a07c81156e997e60146eb001ea77b7044c4",
- "homepage": "https://babeljs.io/",
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/highlight",
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-highlight"
- },
- "version": "7.5.0"
-}
diff --git a/node_modules/@babel/parser/CHANGELOG.md b/node_modules/@babel/parser/CHANGELOG.md
deleted file mode 100644
index 6ddd17fb..00000000
--- a/node_modules/@babel/parser/CHANGELOG.md
+++ /dev/null
@@ -1,1073 +0,0 @@
-# Changelog
-
-> **Tags:**
-> - :boom: [Breaking Change]
-> - :eyeglasses: [Spec Compliancy]
-> - :rocket: [New Feature]
-> - :bug: [Bug Fix]
-> - :memo: [Documentation]
-> - :house: [Internal]
-> - :nail_care: [Polish]
-
-> Semver Policy: https://github.com/babel/babel/tree/master/packages/babel-parser#semver
-
-_Note: Gaps between patch versions are faulty, broken or test releases._
-
-See the [Babel Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md) for the pre-6.8.0 version Changelog.
-
-## 6.17.1 (2017-05-10)
-
-### :bug: Bug Fix
- * Fix typo in flow spread operator error (Brian Ng)
- * Fixed invalid number literal parsing ([#473](https://github.com/babel/babylon/pull/473)) (Alex Kuzmenko)
- * Fix number parser ([#433](https://github.com/babel/babylon/pull/433)) (Alex Kuzmenko)
- * Ensure non pattern shorthand props are checked for reserved words ([#479](https://github.com/babel/babylon/pull/479)) (Brian Ng)
- * Remove jsx context when parsing arrow functions ([#475](https://github.com/babel/babylon/pull/475)) (Brian Ng)
- * Allow super in class properties ([#499](https://github.com/babel/babylon/pull/499)) (Brian Ng)
- * Allow flow class field to be named constructor ([#510](https://github.com/babel/babylon/pull/510)) (Brian Ng)
-
-## 6.17.0 (2017-04-20)
-
-### :bug: Bug Fix
- * Cherry-pick #418 to 6.x ([#476](https://github.com/babel/babylon/pull/476)) (Sebastian McKenzie)
- * Add support for invalid escapes in tagged templates ([#274](https://github.com/babel/babylon/pull/274)) (Kevin Gibbons)
- * Throw error if new.target is used outside of a function ([#402](https://github.com/babel/babylon/pull/402)) (Brian Ng)
- * Fix parsing of class properties ([#351](https://github.com/babel/babylon/pull/351)) (Kevin Gibbons)
- * Fix parsing yield with dynamicImport ([#383](https://github.com/babel/babylon/pull/383)) (Brian Ng)
- * Ensure consistent start args for parseParenItem ([#386](https://github.com/babel/babylon/pull/386)) (Brian Ng)
-
-## 7.0.0-beta.8 (2017-04-04)
-
-### New Feature
-* Add support for flow type spread (#418) (Conrad Buck)
-* Allow statics in flow interfaces (#427) (Brian Ng)
-
-### Bug Fix
-* Fix predicate attachment to match flow parser (#428) (Brian Ng)
-* Add extra.raw back to JSXText and JSXAttribute (#344) (Alex Rattray)
-* Fix rest parameters with array and objects (#424) (Brian Ng)
-* Fix number parser (#433) (Alex Kuzmenko)
-
-### Docs
-* Fix CONTRIBUTING.md [skip ci] (#432) (Alex Kuzmenko)
-
-### Internal
-* Use babel-register script when running babel smoke tests (#442) (Brian Ng)
-
-## 7.0.0-beta.7 (2017-03-22)
-
-### Spec Compliancy
-* Remove babylon plugin for template revision since it's stage-4 (#426) (Henry Zhu)
-
-### Bug Fix
-
-* Fix push-pop logic in flow (#405) (Daniel Tschinder)
-
-## 7.0.0-beta.6 (2017-03-21)
-
-### New Feature
-* Add support for invalid escapes in tagged templates (#274) (Kevin Gibbons)
-
-### Polish
-* Improves error message when super is called outside of constructor (#408) (Arshabh Kumar Agarwal)
-
-### Docs
-
-* [7.0] Moved value field in spec from ObjectMember to ObjectProperty as ObjectMethod's don't have it (#415) [skip ci] (James Browning)
-
-## 7.0.0-beta.5 (2017-03-21)
-
-### Bug Fix
-* Throw error if new.target is used outside of a function (#402) (Brian Ng)
-* Fix parsing of class properties (#351) (Kevin Gibbons)
-
-### Other
- * Test runner: Detect extra property in 'actual' but not in 'expected'. (#407) (Andy)
- * Optimize travis builds (#419) (Daniel Tschinder)
- * Update codecov to 2.0 (#412) (Daniel Tschinder)
- * Fix spec for ClassMethod: It doesn't have a function, it *is* a function. (#406) [skip ci] (Andy)
- * Changed Non-existent RestPattern to RestElement which is what is actually parsed (#409) [skip ci] (James Browning)
- * Upgrade flow to 0.41 (Daniel Tschinder)
- * Fix watch command (#403) (Brian Ng)
- * Update yarn lock (Daniel Tschinder)
- * Fix watch command (#403) (Brian Ng)
- * chore(package): update flow-bin to version 0.41.0 (#395) (greenkeeper[bot])
- * Add estree test for correct order of directives (Daniel Tschinder)
- * Add DoExpression to spec (#364) (Alex Kuzmenko)
- * Mention cloning of repository in CONTRIBUTING.md (#391) [skip ci] (Sumedh Nimkarde)
- * Explain how to run only one test (#389) [skip ci] (Aaron Ang)
-
- ## 7.0.0-beta.4 (2017-03-01)
-
-* Don't consume async when checking for async func decl (#377) (Brian Ng)
-* add `ranges` option [skip ci] (Henry Zhu)
-* Don't parse class properties without initializers when classProperties is disabled and Flow is enabled (#300) (Andrew Levine)
-
-## 7.0.0-beta.3 (2017-02-28)
-
-- [7.0] Change RestProperty/SpreadProperty to RestElement/SpreadElement (#384)
-- Merge changes from 6.x
-
-## 7.0.0-beta.2 (2017-02-20)
-
-- estree: correctly change literals in all cases (#368) (Daniel Tschinder)
-
-## 7.0.0-beta.1 (2017-02-20)
-
-- Fix negative number literal typeannotations (#366) (Daniel Tschinder)
-- Update contributing with more test info [skip ci] (#355) (Brian Ng)
-
-## 7.0.0-beta.0 (2017-02-15)
-
-- Reintroduce Variance node (#333) (Daniel Tschinder)
-- Rename NumericLiteralTypeAnnotation to NumberLiteralTypeAnnotation (#332) (Charles Pick)
-- [7.0] Remove ForAwaitStatement, add await flag to ForOfStatement (#349) (Brandon Dail)
-- chore(package): update ava to version 0.18.0 (#345) (greenkeeper[bot])
-- chore(package): update babel-plugin-istanbul to version 4.0.0 (#350) (greenkeeper[bot])
-- Change location of ObjectTypeIndexer to match flow (#228) (Daniel Tschinder)
-- Rename flow AST Type ExistentialTypeParam to ExistsTypeAnnotation (#322) (Toru Kobayashi)
-- Revert "Temporary rollback for erroring on trailing comma with spread (#154)" (#290) (Daniel Tschinder)
-- Remove classConstructorCall plugin (#291) (Brian Ng)
-- Update yarn.lock (Daniel Tschinder)
-- Update cross-env to 3.x (Daniel Tschinder)
-- [7.0] Remove node 0.10, 0.12 and 5 from Travis (#284) (Sergey Rubanov)
-- Remove `String.fromCodePoint` shim (#279) (Mathias Bynens)
-
-## 6.16.1 (2017-02-23)
-
-### :bug: Regression
-
-- Revert "Fix export default async function to be FunctionDeclaration" ([#375](https://github.com/babel/babylon/pull/375))
-
-Need to modify Babel for this AST node change, so moving to 7.0.
-
-- Revert "Don't parse class properties without initializers when classProperties plugin is disabled, and Flow is enabled" ([#376](https://github.com/babel/babylon/pull/376))
-
-[react-native](https://github.com/facebook/react-native/issues/12542) broke with this so we reverted.
-
-## 6.16.0 (2017-02-23)
-
-### :rocket: New Feature
-
-***ESTree*** compatibility as plugin ([#277](https://github.com/babel/babylon/pull/277)) (Daniel Tschinder)
-
-We finally introduce a new compatibility layer for ESTree. To put babylon into ESTree-compatible mode the new plugin `estree` can be enabled. In this mode the parser will output an AST that is compliant to the specs of [ESTree](https://github.com/estree/estree/)
-
-We highly recommend everyone who uses babylon outside of babel to use this plugin. This will make it much easier for users to switch between different ESTree-compatible parsers. We so far tested several projects with different parsers and exchanged their parser to babylon and in nearly all cases it worked out of the box. Some other estree-compatible parsers include `acorn`, `esprima`, `espree`, `flow-parser`, etc.
-
-To enable `estree` mode simply add the plugin in the config:
-```json
-{
- "plugins": [ "estree" ]
-}
-```
-
-If you want to migrate your project from non-ESTree mode to ESTree, have a look at our [Readme](https://github.com/babel/babylon/#output), where all deviations are mentioned.
-
-Add a parseExpression public method ([#213](https://github.com/babel/babylon/pull/213)) (jeromew)
-
-Babylon exports a new function to parse a single expression
-
-```js
-import { parseExpression } from 'babylon';
-
-const ast = parseExpression('x || y && z', options);
-```
-
-The returned AST will only consist of the expression. The options are the same as for `parse()`
-
-Add startLine option ([#346](https://github.com/babel/babylon/pull/346)) (Raphael Mu)
-
-A new option was added to babylon allowing to change the initial linenumber for the first line which is usually `1`.
-Changing this for example to `100` will make line `1` of the input source to be marked as line `100`, line `2` as `101`, line `3` as `102`, ...
-
-Function predicate declaration ([#103](https://github.com/babel/babylon/pull/103)) (Panagiotis Vekris)
-
-Added support for function predicates which flow introduced in version 0.33.0
-
-```js
-declare function is_number(x: mixed): boolean %checks(typeof x === "number");
-```
-
-Allow imports in declare module ([#315](https://github.com/babel/babylon/pull/315)) (Daniel Tschinder)
-
-Added support for imports within module declarations which flow introduced in version 0.37.0
-
-```js
-declare module "C" {
- import type { DT } from "D";
- declare export type CT = { D: DT };
-}
-```
-
-### :eyeglasses: Spec Compliancy
-
-Forbid semicolons after decorators in classes ([#352](https://github.com/babel/babylon/pull/352)) (Kevin Gibbons)
-
-This example now correctly throws an error when there is a semicolon after the decorator:
-
-```js
-class A {
-@a;
-foo(){}
-}
-```
-
-Keywords are not allowed as local specifier ([#307](https://github.com/babel/babylon/pull/307)) (Daniel Tschinder)
-
-Using keywords in imports is not allowed anymore:
-
-```js
-import { default } from "foo";
-import { a as debugger } from "foo";
-```
-
-Do not allow overwritting of primitive types ([#314](https://github.com/babel/babylon/pull/314)) (Daniel Tschinder)
-
-In flow it is now forbidden to overwrite the primitive types `"any"`, `"mixed"`, `"empty"`, `"bool"`, `"boolean"`, `"number"`, `"string"`, `"void"` and `"null"` with your own type declaration.
-
-Disallow import type { type a } from … ([#305](https://github.com/babel/babylon/pull/305)) (Daniel Tschinder)
-
-The following code now correctly throws an error
-
-```js
-import type { type a } from "foo";
-```
-
-Don't parse class properties without initializers when classProperties is disabled and Flow is enabled ([#300](https://github.com/babel/babylon/pull/300)) (Andrew Levine)
-
-Ensure that you enable the `classProperties` plugin in order to enable correct parsing of class properties. Prior to this version it was possible to parse them by enabling the `flow` plugin but this was not intended the behaviour.
-
-If you enable the flow plugin you can only define the type of the class properties, but not initialize them.
-
-Fix export default async function to be FunctionDeclaration ([#324](https://github.com/babel/babylon/pull/324)) (Daniel Tschinder)
-
-Parsing the following code now returns a `FunctionDeclaration` AST node instead of `FunctionExpression`.
-
-```js
-export default async function bar() {};
-```
-
-### :nail_care: Polish
-
-Improve error message on attempt to destructure named import ([#288](https://github.com/babel/babylon/pull/288)) (Brian Ng)
-
-### :bug: Bug Fix
-
-Fix negative number literal typeannotations ([#366](https://github.com/babel/babylon/pull/366)) (Daniel Tschinder)
-
-Ensure takeDecorators is called on exported class ([#358](https://github.com/babel/babylon/pull/358)) (Brian Ng)
-
-ESTree: correctly change literals in all cases ([#368](https://github.com/babel/babylon/pull/368)) (Daniel Tschinder)
-
-Correctly convert RestProperty to Assignable ([#339](https://github.com/babel/babylon/pull/339)) (Daniel Tschinder)
-
-Fix #321 by allowing question marks in type params ([#338](https://github.com/babel/babylon/pull/338)) (Daniel Tschinder)
-
-Fix #336 by correctly setting arrow-param ([#337](https://github.com/babel/babylon/pull/337)) (Daniel Tschinder)
-
-Fix parse error when destructuring `set` with default value ([#317](https://github.com/babel/babylon/pull/317)) (Brian Ng)
-
-Fix ObjectTypeCallProperty static ([#298](https://github.com/babel/babylon/pull/298)) (Dan Harper)
-
-
-### :house: Internal
-
-Fix generator-method-with-computed-name spec ([#360](https://github.com/babel/babylon/pull/360)) (Alex Rattray)
-
-Fix flow type-parameter-declaration test with unintended semantic ([#361](https://github.com/babel/babylon/pull/361)) (Alex Rattray)
-
-Cleanup and splitup parser functions ([#295](https://github.com/babel/babylon/pull/295)) (Daniel Tschinder)
-
-chore(package): update flow-bin to version 0.38.0 ([#313](https://github.com/babel/babylon/pull/313)) (greenkeeper[bot])
-
-Call inner function instead of 1:1 copy to plugin ([#294](https://github.com/babel/babylon/pull/294)) (Daniel Tschinder)
-
-Update eslint-config-babel to the latest version 🚀 ([#299](https://github.com/babel/babylon/pull/299)) (greenkeeper[bot])
-
-Update eslint-config-babel to the latest version 🚀 ([#293](https://github.com/babel/babylon/pull/293)) (greenkeeper[bot])
-
-devDeps: remove eslint-plugin-babel ([#292](https://github.com/babel/babylon/pull/292)) (Kai Cataldo)
-
-Correct indent eslint rule config ([#276](https://github.com/babel/babylon/pull/276)) (Daniel Tschinder)
-
-Fail tests that have expected.json and throws-option ([#285](https://github.com/babel/babylon/pull/285)) (Daniel Tschinder)
-
-### :memo: Documentation
-
-Update contributing with more test info [skip ci] ([#355](https://github.com/babel/babylon/pull/355)) (Brian Ng)
-
-Update API documentation ([#330](https://github.com/babel/babylon/pull/330)) (Timothy Gu)
-
-Added keywords to package.json ([#323](https://github.com/babel/babylon/pull/323)) (Dmytro)
-
-AST spec: fix casing of `RegExpLiteral` ([#318](https://github.com/babel/babylon/pull/318)) (Mathias Bynens)
-
-## 6.15.0 (2017-01-10)
-
-### :eyeglasses: Spec Compliancy
-
-Add support for Flow shorthand import type ([#267](https://github.com/babel/babylon/pull/267)) (Jeff Morrison)
-
-This change implements flows new shorthand import syntax
-and where previously you had to write this code:
-
-```js
-import {someValue} from "blah";
-import type {someType} from "blah";
-import typeof {someOtherValue} from "blah";
-```
-
-you can now write it like this:
-
-```js
-import {
- someValue,
- type someType,
- typeof someOtherValue,
-} from "blah";
-```
-
-For more information look at [this](https://github.com/facebook/flow/pull/2890) pull request.
-
-flow: allow leading pipes in all positions ([#256](https://github.com/babel/babylon/pull/256)) (Vladimir Kurchatkin)
-
-This change now allows a leading pipe everywhere types can be used:
-```js
-var f = (x): | 1 | 2 => 1;
-```
-
-Throw error when exporting non-declaration ([#241](https://github.com/babel/babylon/pull/241)) (Kai Cataldo)
-
-Previously babylon parsed the following exports, although they are not valid:
-```js
-export typeof foo;
-export new Foo();
-export function() {};
-export for (;;);
-export while(foo);
-```
-
-### :bug: Bug Fix
-
-Don't set inType flag when parsing property names ([#266](https://github.com/babel/babylon/pull/266)) (Vladimir Kurchatkin)
-
-This fixes parsing of this case:
-
-```js
-const map = {
- [age <= 17] : 'Too young'
-};
-```
-
-Fix source location for JSXEmptyExpression nodes (fixes #248) ([#249](https://github.com/babel/babylon/pull/249)) (James Long)
-
-The following case produced an invalid AST
-```js
-{/* foo */}
-```
-
-Use fromCodePoint to convert high value unicode entities ([#243](https://github.com/babel/babylon/pull/243)) (Ryan Duffy)
-
-When high value unicode entities (e.g. 💩) were used in the input source code they are now correctly encoded in the resulting AST.
-
-Rename folder to avoid Windows-illegal characters ([#281](https://github.com/babel/babylon/pull/281)) (Ryan Plant)
-
-Allow this.state.clone() when parsing decorators ([#262](https://github.com/babel/babylon/pull/262)) (Alex Rattray)
-
-### :house: Internal
-
-User external-helpers ([#254](https://github.com/babel/babylon/pull/254)) (Daniel Tschinder)
-
-Add watch script for dev ([#234](https://github.com/babel/babylon/pull/234)) (Kai Cataldo)
-
-Freeze current plugins list for "*" option, and remove from README.md ([#245](https://github.com/babel/babylon/pull/245)) (Andrew Levine)
-
-Prepare tests for multiple fixture runners. ([#240](https://github.com/babel/babylon/pull/240)) (Daniel Tschinder)
-
-Add some test coverage for decorators stage-0 plugin ([#250](https://github.com/babel/babylon/pull/250)) (Andrew Levine)
-
-Refactor tokenizer types file ([#263](https://github.com/babel/babylon/pull/263)) (Sven SAULEAU)
-
-Update eslint-config-babel to the latest version 🚀 ([#273](https://github.com/babel/babylon/pull/273)) (greenkeeper[bot])
-
-chore(package): update rollup to version 0.41.0 ([#272](https://github.com/babel/babylon/pull/272)) (greenkeeper[bot])
-
-chore(package): update flow-bin to version 0.37.0 ([#255](https://github.com/babel/babylon/pull/255)) (greenkeeper[bot])
-
-## 6.14.1 (2016-11-17)
-
-### :bug: Bug Fix
-
-Allow `"plugins": ["*"]` ([#229](https://github.com/babel/babylon/pull/229)) (Daniel Tschinder)
-
-```js
-{
- "plugins": ["*"]
-}
-```
-
-Will include all parser plugins instead of specifying each one individually. Useful for tools like babel-eslint, jscodeshift, and ast-explorer.
-
-## 6.14.0 (2016-11-16)
-
-### :eyeglasses: Spec Compliancy
-
-Throw error for reserved words `enum` and `await` ([#195](https://github.com/babel/babylon/pull/195)) (Kai Cataldo)
-
-[11.6.2.2 Future Reserved Words](http://www.ecma-international.org/ecma-262/6.0/#sec-future-reserved-words)
-
-Babylon will throw for more reserved words such as `enum` or `await` (in strict mode).
-
-```
-class enum {} // throws
-class await {} // throws in strict mode (module)
-```
-
-Optional names for function types and object type indexers ([#197](https://github.com/babel/babylon/pull/197)) (Gabe Levi)
-
-So where you used to have to write
-
-```js
-type A = (x: string, y: boolean) => number;
-type B = (z: string) => number;
-type C = { [key: string]: number };
-```
-
-you can now write (with flow 0.34.0)
-
-```js
-type A = (string, boolean) => number;
-type B = string => number;
-type C = { [string]: number };
-```
-
-Parse flow nested array type annotations like `number[][]` ([#219](https://github.com/babel/babylon/pull/219)) (Bernhard Häussner)
-
-Supports these form now of specifying array types:
-
-```js
-var a: number[][][][];
-var b: string[][];
-```
-
-### :bug: Bug Fix
-
-Correctly eat semicolon at the end of `DelcareModuleExports` ([#223](https://github.com/babel/babylon/pull/223)) (Daniel Tschinder)
-
-```
-declare module "foo" { declare module.exports: number }
-declare module "foo" { declare module.exports: number; } // also allowed now
-```
-
-### :house: Internal
-
- * Count Babel tests towards Babylon code coverage ([#182](https://github.com/babel/babylon/pull/182)) (Moti Zilberman)
- * Fix strange line endings ([#214](https://github.com/babel/babylon/pull/214)) (Thomas Grainger)
- * Add node 7 (Daniel Tschinder)
- * chore(package): update flow-bin to version 0.34.0 ([#204](https://github.com/babel/babylon/pull/204)) (Greenkeeper)
-
-## v6.13.1 (2016-10-26)
-
-### :nail_care: Polish
-
-- Use rollup for bundling to speed up startup time ([#190](https://github.com/babel/babylon/pull/190)) ([@drewml](https://github.com/DrewML))
-
-```js
-const babylon = require('babylon');
-const ast = babylon.parse('var foo = "lol";');
-```
-
-With that test case, there was a ~95ms savings by removing the need for node to build/traverse the dependency graph.
-
-**Without bundling**
-![image](https://cloud.githubusercontent.com/assets/5233399/19420264/3133497e-93ad-11e6-9a6a-2da59c4f5c13.png)
-
-**With bundling**
-![image](https://cloud.githubusercontent.com/assets/5233399/19420267/388f556e-93ad-11e6-813e-7c5c396be322.png)
-
-- add clean command [skip ci] ([#201](https://github.com/babel/babylon/pull/201)) (Henry Zhu)
-- add ForAwaitStatement (async generator already added) [skip ci] ([#196](https://github.com/babel/babylon/pull/196)) (Henry Zhu)
-
-## v6.13.0 (2016-10-21)
-
-### :eyeglasses: Spec Compliancy
-
-Property variance type annotations for Flow plugin ([#161](https://github.com/babel/babylon/pull/161)) (Sam Goldman)
-
-> See https://flowtype.org/docs/variance.html for more information
-
-```js
-type T = { +p: T };
-interface T { -p: T };
-declare class T { +[k:K]: V };
-class T { -[k:K]: V };
-class C2 { +p: T = e };
-```
-
-Raise error on duplicate definition of __proto__ ([#183](https://github.com/babel/babylon/pull/183)) (Moti Zilberman)
-
-```js
-({ __proto__: 1, __proto__: 2 }) // Throws an error now
-```
-
-### :bug: Bug Fix
-
-Flow: Allow class properties to be named `static` ([#184](https://github.com/babel/babylon/pull/184)) (Moti Zilberman)
-
-```js
-declare class A {
- static: T;
-}
-```
-
-Allow "async" as identifier for object literal property shorthand ([#187](https://github.com/babel/babylon/pull/187)) (Andrew Levine)
-
-```js
-var foo = { async, bar };
-```
-
-### :nail_care: Polish
-
-Fix flowtype and add inType to state ([#189](https://github.com/babel/babylon/pull/189)) (Daniel Tschinder)
-
-> This improves the performance slightly (because of hidden classes)
-
-### :house: Internal
-
-Fix .gitattributes line ending setting ([#191](https://github.com/babel/babylon/pull/191)) (Moti Zilberman)
-
-Increase test coverage ([#175](https://github.com/babel/babylon/pull/175) (Moti Zilberman)
-
-Readd missin .eslinignore for IDEs (Daniel Tschinder)
-
-Error on missing expected.json fixture in CI ([#188](https://github.com/babel/babylon/pull/188)) (Moti Zilberman)
-
-Add .gitattributes and .editorconfig for LF line endings ([#179](https://github.com/babel/babylon/pull/179)) (Moti Zilberman)
-
-Fixes two tests that are failing after the merge of #172 ([#177](https://github.com/babel/babylon/pull/177)) (Moti Zilberman)
-
-## v6.12.0 (2016-10-14)
-
-### :eyeglasses: Spec Compliancy
-
-Implement import() syntax ([#163](https://github.com/babel/babylon/pull/163)) (Jordan Gensler)
-
-#### Dynamic Import
-
-- Proposal Repo: https://github.com/domenic/proposal-dynamic-import
-- Championed by [@domenic](https://github.com/domenic)
-- stage-2
-- [sept-28 tc39 notes](https://github.com/rwaldron/tc39-notes/blob/master/es7/2016-09/sept-28.md#113a-import)
-
-> This repository contains a proposal for adding a "function-like" import() module loading syntactic form to JavaScript
-
-```js
-import(`./section-modules/${link.dataset.entryModule}.js`)
-.then(module => {
- module.loadPageInto(main);
-})
-```
-
-Add EmptyTypeAnnotation ([#171](https://github.com/babel/babylon/pull/171)) (Sam Goldman)
-
-#### EmptyTypeAnnotation
-
-Just wasn't covered before.
-
-```js
-type T = empty;
-```
-
-### :bug: Bug Fix
-
-Fix crash when exporting with destructuring and sparse array ([#170](https://github.com/babel/babylon/pull/170)) (Jeroen Engels)
-
-```js
-// was failing due to sparse array
-export const { foo: [ ,, qux7 ] } = bar;
-```
-
-Allow keyword in Flow object declaration property names with type parameters ([#146](https://github.com/babel/babylon/pull/146)) (Dan Harper)
-
-```js
-declare class X {
- foobar(): void;
- static foobar(): void;
-}
-```
-
-Allow keyword in object/class property names with Flow type parameters ([#145](https://github.com/babel/babylon/pull/145)) (Dan Harper)
-
-```js
-class Foo {
- delete(item: T): T {
- return item;
- }
-}
-```
-
-Allow typeAnnotations for yield expressions ([#174](https://github.com/babel/babylon/pull/174))) (Daniel Tschinder)
-
-```js
-function *foo() {
- const x = (yield 5: any);
-}
-```
-
-### :nail_care: Polish
-
-Annotate more errors with expected token ([#172](https://github.com/babel/babylon/pull/172))) (Moti Zilberman)
-
-```js
-// Unexpected token, expected ; (1:6)
-{ set 1 }
-```
-
-### :house: Internal
-
-Remove kcheck ([#173](https://github.com/babel/babylon/pull/173))) (Daniel Tschinder)
-
-Also run flow, linting, babel tests on separate instances (add back node 0.10)
-
-## v6.11.6 (2016-10-12)
-
-### :bug: Bug Fix/Regression
-
-Fix crash when exporting with destructuring and sparse array ([#170](https://github.com/babel/babylon/pull/170)) (Jeroen Engels)
-
-```js
-// was failing with `Cannot read property 'type' of null` because of null identifiers
-export const { foo: [ ,, qux7 ] } = bar;
-```
-
-## v6.11.5 (2016-10-12)
-
-### :eyeglasses: Spec Compliancy
-
-Fix: Check for duplicate named exports in exported destructuring assignments ([#144](https://github.com/babel/babylon/pull/144)) (Kai Cataldo)
-
-```js
-// `foo` has already been exported. Exported identifiers must be unique. (2:20)
-export function foo() {};
-export const { a: [{foo}] } = bar;
-```
-
-Fix: Check for duplicate named exports in exported rest elements/properties ([#164](https://github.com/babel/babylon/pull/164)) (Kai Cataldo)
-
-```js
-// `foo` has already been exported. Exported identifiers must be unique. (2:22)
-export const foo = 1;
-export const [bar, ...foo] = baz;
-```
-
-### :bug: Bug Fix
-
-Fix: Allow identifier `async` for default param in arrow expression ([#165](https://github.com/babel/babylon/pull/165)) (Kai Cataldo)
-
-```js
-// this is ok now
-const test = ({async = true}) => {};
-```
-
-### :nail_care: Polish
-
-Babylon will now print out the token it's expecting if there's a `SyntaxError` ([#150](https://github.com/babel/babylon/pull/150)) (Daniel Tschinder)
-
-```bash
-# So in the case of a missing ending curly (`}`)
-Module build failed: SyntaxError: Unexpected token, expected } (30:0)
- 28 | }
- 29 |
-> 30 |
- | ^
-```
-
-## v6.11.4 (2016-10-03)
-
-Temporary rollback for erroring on trailing comma with spread (#154) (Henry Zhu)
-
-## v6.11.3 (2016-10-01)
-
-### :eyeglasses: Spec Compliancy
-
-Add static errors for object rest (#149) ([@danez](https://github.com/danez))
-
-> https://github.com/sebmarkbage/ecmascript-rest-spread
-
-Object rest copies the *rest* of properties from the right hand side `obj` starting from the left to right.
-
-```js
-let { x, y, ...z } = { x: 1, y: 2, z: 3 };
-// x = 1
-// y = 2
-// z = { z: 3 }
-```
-
-#### New Syntax Errors:
-
-**SyntaxError**: The rest element has to be the last element when destructuring (1:10)
-```bash
-> 1 | let { ...x, y, z } = { x: 1, y: 2, z: 3};
- | ^
-# Previous behavior:
-# x = { x: 1, y: 2, z: 3 }
-# y = 2
-# z = 3
-```
-
-Before, this was just a more verbose way of shallow copying `obj` since it doesn't actually do what you think.
-
-**SyntaxError**: Cannot have multiple rest elements when destructuring (1:13)
-
-```bash
-> 1 | let { x, ...y, ...z } = { x: 1, y: 2, z: 3};
- | ^
-# Previous behavior:
-# x = 1
-# y = { y: 2, z: 3 }
-# z = { y: 2, z: 3 }
-```
-
-Before y and z would just be the same value anyway so there is no reason to need to have both.
-
-**SyntaxError**: A trailing comma is not permitted after the rest element (1:16)
-
-```js
-let { x, y, ...z, } = obj;
-```
-
-The rationale for this is that the use case for trailing comma is that you can add something at the end without affecting the line above. Since a RestProperty always has to be the last property it doesn't make sense.
-
----
-
-get / set are valid property names in default assignment (#142) ([@jezell](https://github.com/jezell))
-
-```js
-// valid
-function something({ set = null, get = null }) {}
-```
-
-## v6.11.2 (2016-09-23)
-
-### Bug Fix
-
-- [#139](https://github.com/babel/babylon/issues/139) Don't do the duplicate check if not an identifier (#140) @hzoo
-
-```js
-// regression with duplicate export check
-SyntaxError: ./typography.js: `undefined` has already been exported. Exported identifiers must be unique. (22:13)
- 20 |
- 21 | export const { rhythm } = typography;
-> 22 | export const { TypographyStyle } = typography
-```
-
-Bail out for now, and make a change to account for destructuring in the next release.
-
-## 6.11.1 (2016-09-22)
-
-### Bug Fix
-- [#137](https://github.com/babel/babylon/pull/137) - Fix a regression with duplicate exports - it was erroring on all keys in `Object.prototype`. @danez
-
-```javascript
-export toString from './toString';
-```
-
-```bash
-`toString` has already been exported. Exported identifiers must be unique. (1:7)
-> 1 | export toString from './toString';
- | ^
- 2 |
-```
-
-## 6.11.0 (2016-09-22)
-
-### Spec Compliancy (will break CI)
-
-- Disallow duplicate named exports ([#107](https://github.com/babel/babylon/pull/107)) @kaicataldo
-
-```js
-// Only one default export allowed per module. (2:9)
-export default function() {};
-export { foo as default };
-
-// Only one default export allowed per module. (2:0)
-export default {};
-export default function() {};
-
-// `Foo` has already been exported. Exported identifiers must be unique. (2:0)
-export { Foo };
-export class Foo {};
-```
-
-### New Feature (Syntax)
-
-- Add support for computed class property names ([#121](https://github.com/babel/babylon/pull/121)) @motiz88
-
-```js
-// AST
-interface ClassProperty <: Node {
- type: "ClassProperty";
- key: Identifier;
- value: Expression;
- computed: boolean; // added
-}
-```
-
-```js
-// with "plugins": ["classProperties"]
-class Foo {
- [x]
- ['y']
-}
-
-class Bar {
- [p]
- [m] () {}
-}
- ```
-
-### Bug Fix
-
-- Fix `static` property falling through in the declare class Flow AST ([#135](https://github.com/babel/babylon/pull/135)) @danharper
-
-```js
-declare class X {
- a: number;
- static b: number; // static
- c: number; // this was being marked as static in the AST as well
-}
-```
-
-### Polish
-
-- Rephrase "assigning/binding to rvalue" errors to include context ([#119](https://github.com/babel/babylon/pull/119)) @motiz88
-
-```js
-// Used to error with:
-// SyntaxError: Assigning to rvalue (1:0)
-
-// Now:
-// Invalid left-hand side in assignment expression (1:0)
-3 = 4
-
-// Invalid left-hand side in for-in statement (1:5)
-for (+i in {});
-```
-
-### Internal
-
-- Fix call to `this.parseMaybeAssign` with correct arguments ([#133](https://github.com/babel/babylon/pull/133)) @danez
-- Add semver note to changelog ([#131](https://github.com/babel/babylon/pull/131)) @hzoo
-
-## 6.10.0 (2016-09-19)
-
-> We plan to include some spec compliancy bugs in patch versions. An example was the multiple default exports issue.
-
-### Spec Compliancy
-
-* Implement ES2016 check for simple parameter list in strict mode ([#106](https://github.com/babel/babylon/pull/106)) (Timothy Gu)
-
-> It is a Syntax Error if ContainsUseStrict of FunctionBody is true and IsSimpleParameterList of FormalParameters is false. https://tc39.github.io/ecma262/2016/#sec-function-definitions-static-semantics-early-errors
-
-More Context: [tc39-notes](https://github.com/rwaldron/tc39-notes/blob/master/es7/2015-07/july-29.md#611-the-scope-of-use-strict-with-respect-to-destructuring-in-parameter-lists)
-
-For example:
-
-```js
-// this errors because it uses destructuring and default parameters
-// in a function with a "use strict" directive
-function a([ option1, option2 ] = []) {
- "use strict";
-}
- ```
-
-The solution would be to use a top level "use strict" or to remove the destructuring or default parameters when using a function + "use strict" or to.
-
-### New Feature
-
-* Exact object type annotations for Flow plugin ([#104](https://github.com/babel/babylon/pull/104)) (Basil Hosmer)
-
-Added to flow in https://github.com/facebook/flow/commit/c710c40aa2a115435098d6c0dfeaadb023cd39b8
-
-Looks like:
-
-```js
-var a : {| x: number, y: string |} = { x: 0, y: 'foo' };
-```
-
-### Bug Fixes
-
-* Include `typeParameter` location in `ArrowFunctionExpression` ([#126](https://github.com/babel/babylon/pull/126)) (Daniel Tschinder)
-* Error on invalid flow type annotation with default assignment ([#122](https://github.com/babel/babylon/pull/122)) (Dan Harper)
-* Fix Flow return types on arrow functions ([#124](https://github.com/babel/babylon/pull/124)) (Dan Harper)
-
-### Misc
-
-* Add tests for export extensions ([#127](https://github.com/babel/babylon/pull/127)) (Daniel Tschinder)
-* Fix Contributing guidelines [skip ci] (Daniel Tschinder)
-
-## 6.9.2 (2016-09-09)
-
-The only change is to remove the `babel-runtime` dependency by compiling with Babel's ES2015 loose mode. So using babylon standalone should be smaller.
-
-## 6.9.1 (2016-08-23)
-
-This release contains mainly small bugfixes but also updates babylons default mode to es2017. The features for `exponentiationOperator`, `asyncFunctions` and `trailingFunctionCommas` which previously needed to be activated via plugin are now enabled by default and the plugins are now no-ops.
-
-### Bug Fixes
-
-- Fix issues with default object params in async functions ([#96](https://github.com/babel/babylon/pull/96)) @danez
-- Fix issues with flow-types and async function ([#95](https://github.com/babel/babylon/pull/95)) @danez
-- Fix arrow functions with destructuring, types & default value ([#94](https://github.com/babel/babylon/pull/94)) @danharper
-- Fix declare class with qualified type identifier ([#97](https://github.com/babel/babylon/pull/97)) @danez
-- Remove exponentiationOperator, asyncFunctions, trailingFunctionCommas plugins and enable them by default ([#98](https://github.com/babel/babylon/pull/98)) @danez
-
-## 6.9.0 (2016-08-16)
-
-### New syntax support
-
-- Add JSX spread children ([#42](https://github.com/babel/babylon/pull/42)) @calebmer
-
-(Be aware that React is not going to support this syntax)
-
-```js
-
- {...todos.map(todo => )}
-
-```
-
-- Add support for declare module.exports ([#72](https://github.com/babel/babylon/pull/72)) @danez
-
-```js
-declare module "foo" {
- declare module.exports: {}
-}
-```
-
-### New Features
-
-- If supplied, attach filename property to comment node loc. ([#80](https://github.com/babel/babylon/pull/80)) @divmain
-- Add identifier name to node loc field ([#90](https://github.com/babel/babylon/pull/90)) @kittens
-
-### Bug Fixes
-
-- Fix exponential operator to behave according to spec ([#75](https://github.com/babel/babylon/pull/75)) @danez
-- Fix lookahead to not add comments to arrays which are not cloned ([#76](https://github.com/babel/babylon/pull/76)) @danez
-- Fix accidental fall-through in Flow type parsing. ([#82](https://github.com/babel/babylon/pull/82)) @xiemaisi
-- Only allow declares inside declare module ([#73](https://github.com/babel/babylon/pull/73)) @danez
-- Small fix for parsing type parameter declarations ([#83](https://github.com/babel/babylon/pull/83)) @gabelevi
-- Fix arrow param locations with flow types ([#57](https://github.com/babel/babylon/pull/57)) @danez
-- Fixes SyntaxError position with flow optional type ([#65](https://github.com/babel/babylon/pull/65)) @danez
-
-### Internal
-
-- Add codecoverage to tests @danez
-- Fix tests to not save expected output if we expect the test to fail @danez
-- Make a shallow clone of babel for testing @danez
-- chore(package): update cross-env to version 2.0.0 ([#77](https://github.com/babel/babylon/pull/77)) @greenkeeperio-bot
-- chore(package): update ava to version 0.16.0 ([#86](https://github.com/babel/babylon/pull/86)) @greenkeeperio-bot
-- chore(package): update babel-plugin-istanbul to version 2.0.0 ([#89](https://github.com/babel/babylon/pull/89)) @greenkeeperio-bot
-- chore(package): update nyc to version 8.0.0 ([#88](https://github.com/babel/babylon/pull/88)) @greenkeeperio-bot
-
-## 6.8.4 (2016-07-06)
-
-### Bug Fixes
-
-- Fix the location of params, when flow and default value used ([#68](https://github.com/babel/babylon/pull/68)) @danez
-
-## 6.8.3 (2016-07-02)
-
-### Bug Fixes
-
-- Fix performance regression introduced in 6.8.2 with conditionals ([#63](https://github.com/babel/babylon/pull/63)) @danez
-
-## 6.8.2 (2016-06-24)
-
-### Bug Fixes
-
-- Fix parse error with yielding jsx elements in generators `function* it() { yield ; }` ([#31](https://github.com/babel/babylon/pull/31)) @eldereal
-- When cloning nodes do not clone its comments ([#24](https://github.com/babel/babylon/pull/24)) @danez
-- Fix parse errors when using arrow functions with an spread element and return type `(...props): void => {}` ([#10](https://github.com/babel/babylon/pull/10)) @danez
-- Fix leading comments added from previous node ([#23](https://github.com/babel/babylon/pull/23)) @danez
-- Fix parse errors with flow's optional arguments `(arg?) => {}` ([#19](https://github.com/babel/babylon/pull/19)) @danez
-- Support negative numeric type literals @kittens
-- Remove line terminator restriction after await keyword @kittens
-- Remove grouped type arrow restriction as it seems flow no longer has it @kittens
-- Fix parse error with generic methods that have the name `get` or `set` `class foo { get() {} }` ([#55](https://github.com/babel/babylon/pull/55)) @vkurchatkin
-- Fix parse error with arrow functions that have flow type parameter declarations `(x: T): T => x;` ([#54](https://github.com/babel/babylon/pull/54)) @gabelevi
-
-### Documentation
-
-- Document AST differences from ESTree ([#41](https://github.com/babel/babylon/pull/41)) @nene
-- Move ast spec from babel/babel ([#46](https://github.com/babel/babylon/pull/46)) @hzoo
-
-### Internal
-
-- Enable skipped tests ([#16](https://github.com/babel/babylon/pull/16)) @danez
-- Add script to test latest version of babylon with babel ([#21](https://github.com/babel/babylon/pull/21)) @danez
-- Upgrade test runner ava @kittens
-- Add missing generate-identifier-regex script @kittens
-- Rename parser context types @kittens
-- Add node v6 to travis testing @hzoo
-- Update to Unicode v9 ([#45](https://github.com/babel/babylon/pull/45)) @mathiasbynens
-
-## 6.8.1 (2016-06-06)
-
-### New Feature
-
-- Parse type parameter declarations with defaults like `type Foo = T`
-
-### Bug Fixes
-- Type parameter declarations need 1 or more type parameters.
-- The existential type `*` is not a valid type parameter.
-- The existential type `*` is a primary type
-
-### Spec Compliancy
-- The param list for type parameter declarations now consists of `TypeParameter` nodes
-- New `TypeParameter` AST Node (replaces using the `Identifier` node before)
-
-```
-interface TypeParameter <: Node {
- bound: TypeAnnotation;
- default: TypeAnnotation;
- name: string;
- variance: "plus" | "minus";
-}
-```
-
-## 6.8.0 (2016-05-02)
-
-#### New Feature
-
-##### Parse Method Parameter Decorators ([#12](https://github.com/babel/babylon/pull/12))
-
-> [Method Parameter Decorators](https://goo.gl/8MmCMG) is now a TC39 [stage 0 proposal](https://github.com/tc39/ecma262/blob/master/stage0.md).
-
-Examples:
-
-```js
-class Foo {
- constructor(@foo() x, @bar({ a: 123 }) @baz() y) {}
-}
-
-export default function func(@foo() x, @bar({ a: 123 }) @baz() y) {}
-
-var obj = {
- method(@foo() x, @bar({ a: 123 }) @baz() y) {}
-};
-```
-
-##### Parse for-await statements (w/ `asyncGenerators` plugin) ([#17](https://github.com/babel/babylon/pull/17))
-
-There is also a new node type, `ForAwaitStatement`.
-
-> [Async generators and for-await](https://github.com/tc39/proposal-async-iteration) are now a [stage 2 proposal](https://github.com/tc39/ecma262#current-proposals).
-
-Example:
-
-```js
-async function f() {
- for await (let x of y);
-}
-```
diff --git a/node_modules/@babel/parser/LICENSE b/node_modules/@babel/parser/LICENSE
deleted file mode 100644
index d4c7fc58..00000000
--- a/node_modules/@babel/parser/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (C) 2012-2014 by various contributors (see AUTHORS)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/@babel/parser/README.md b/node_modules/@babel/parser/README.md
deleted file mode 100644
index 65092a05..00000000
--- a/node_modules/@babel/parser/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/parser
-
-> A JavaScript parser
-
-See our website [@babel/parser](https://babeljs.io/docs/en/next/babel-parser.html) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A+parser+%28babylon%29%22+is%3Aopen) associated with this package.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/parser
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/parser --dev
-```
diff --git a/node_modules/@babel/parser/bin/babel-parser.js b/node_modules/@babel/parser/bin/babel-parser.js
deleted file mode 100644
index 58f00b84..00000000
--- a/node_modules/@babel/parser/bin/babel-parser.js
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/usr/bin/env node
-/* eslint no-var: 0 */
-
-var parser = require("..");
-var fs = require("fs");
-
-var filename = process.argv[2];
-if (!filename) {
- console.error("no filename specified");
- process.exit(0);
-}
-
-var file = fs.readFileSync(filename, "utf8");
-var ast = parser.parse(file);
-
-console.log(JSON.stringify(ast, null, " "));
diff --git a/node_modules/@babel/parser/lib/index.js b/node_modules/@babel/parser/lib/index.js
deleted file mode 100644
index 81b6994d..00000000
--- a/node_modules/@babel/parser/lib/index.js
+++ /dev/null
@@ -1,11353 +0,0 @@
-'use strict';
-
-Object.defineProperty(exports, '__esModule', { value: true });
-
-const beforeExpr = true;
-const startsExpr = true;
-const isLoop = true;
-const isAssign = true;
-const prefix = true;
-const postfix = true;
-class TokenType {
- constructor(label, conf = {}) {
- this.label = label;
- this.keyword = conf.keyword;
- this.beforeExpr = !!conf.beforeExpr;
- this.startsExpr = !!conf.startsExpr;
- this.rightAssociative = !!conf.rightAssociative;
- this.isLoop = !!conf.isLoop;
- this.isAssign = !!conf.isAssign;
- this.prefix = !!conf.prefix;
- this.postfix = !!conf.postfix;
- this.binop = conf.binop != null ? conf.binop : null;
- this.updateContext = null;
- }
-
-}
-const keywords = new Map();
-
-function createKeyword(name, options = {}) {
- options.keyword = name;
- const token = new TokenType(name, options);
- keywords.set(name, token);
- return token;
-}
-
-function createBinop(name, binop) {
- return new TokenType(name, {
- beforeExpr,
- binop
- });
-}
-
-const types = {
- num: new TokenType("num", {
- startsExpr
- }),
- bigint: new TokenType("bigint", {
- startsExpr
- }),
- regexp: new TokenType("regexp", {
- startsExpr
- }),
- string: new TokenType("string", {
- startsExpr
- }),
- name: new TokenType("name", {
- startsExpr
- }),
- eof: new TokenType("eof"),
- bracketL: new TokenType("[", {
- beforeExpr,
- startsExpr
- }),
- bracketR: new TokenType("]"),
- braceL: new TokenType("{", {
- beforeExpr,
- startsExpr
- }),
- braceBarL: new TokenType("{|", {
- beforeExpr,
- startsExpr
- }),
- braceR: new TokenType("}"),
- braceBarR: new TokenType("|}"),
- parenL: new TokenType("(", {
- beforeExpr,
- startsExpr
- }),
- parenR: new TokenType(")"),
- comma: new TokenType(",", {
- beforeExpr
- }),
- semi: new TokenType(";", {
- beforeExpr
- }),
- colon: new TokenType(":", {
- beforeExpr
- }),
- doubleColon: new TokenType("::", {
- beforeExpr
- }),
- dot: new TokenType("."),
- question: new TokenType("?", {
- beforeExpr
- }),
- questionDot: new TokenType("?."),
- arrow: new TokenType("=>", {
- beforeExpr
- }),
- template: new TokenType("template"),
- ellipsis: new TokenType("...", {
- beforeExpr
- }),
- backQuote: new TokenType("`", {
- startsExpr
- }),
- dollarBraceL: new TokenType("${", {
- beforeExpr,
- startsExpr
- }),
- at: new TokenType("@"),
- hash: new TokenType("#", {
- startsExpr
- }),
- interpreterDirective: new TokenType("#!..."),
- eq: new TokenType("=", {
- beforeExpr,
- isAssign
- }),
- assign: new TokenType("_=", {
- beforeExpr,
- isAssign
- }),
- incDec: new TokenType("++/--", {
- prefix,
- postfix,
- startsExpr
- }),
- bang: new TokenType("!", {
- beforeExpr,
- prefix,
- startsExpr
- }),
- tilde: new TokenType("~", {
- beforeExpr,
- prefix,
- startsExpr
- }),
- 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: new TokenType("+/-", {
- beforeExpr,
- binop: 9,
- prefix,
- startsExpr
- }),
- modulo: createBinop("%", 10),
- star: createBinop("*", 10),
- slash: createBinop("/", 10),
- exponent: new TokenType("**", {
- beforeExpr,
- binop: 11,
- rightAssociative: true
- }),
- _break: createKeyword("break"),
- _case: createKeyword("case", {
- beforeExpr
- }),
- _catch: createKeyword("catch"),
- _continue: createKeyword("continue"),
- _debugger: createKeyword("debugger"),
- _default: createKeyword("default", {
- beforeExpr
- }),
- _do: createKeyword("do", {
- isLoop,
- beforeExpr
- }),
- _else: createKeyword("else", {
- beforeExpr
- }),
- _finally: createKeyword("finally"),
- _for: createKeyword("for", {
- isLoop
- }),
- _function: createKeyword("function", {
- startsExpr
- }),
- _if: createKeyword("if"),
- _return: createKeyword("return", {
- beforeExpr
- }),
- _switch: createKeyword("switch"),
- _throw: createKeyword("throw", {
- beforeExpr,
- prefix,
- startsExpr
- }),
- _try: createKeyword("try"),
- _var: createKeyword("var"),
- _const: createKeyword("const"),
- _while: createKeyword("while", {
- isLoop
- }),
- _with: createKeyword("with"),
- _new: createKeyword("new", {
- beforeExpr,
- startsExpr
- }),
- _this: createKeyword("this", {
- startsExpr
- }),
- _super: createKeyword("super", {
- startsExpr
- }),
- _class: createKeyword("class", {
- startsExpr
- }),
- _extends: createKeyword("extends", {
- beforeExpr
- }),
- _export: createKeyword("export"),
- _import: createKeyword("import", {
- startsExpr
- }),
- _null: createKeyword("null", {
- startsExpr
- }),
- _true: createKeyword("true", {
- startsExpr
- }),
- _false: createKeyword("false", {
- startsExpr
- }),
- _in: createKeyword("in", {
- beforeExpr,
- binop: 7
- }),
- _instanceof: createKeyword("instanceof", {
- beforeExpr,
- binop: 7
- }),
- _typeof: createKeyword("typeof", {
- beforeExpr,
- prefix,
- startsExpr
- }),
- _void: createKeyword("void", {
- beforeExpr,
- prefix,
- startsExpr
- }),
- _delete: createKeyword("delete", {
- beforeExpr,
- prefix,
- startsExpr
- })
-};
-
-const SCOPE_OTHER = 0b000000000,
- SCOPE_PROGRAM = 0b000000001,
- SCOPE_FUNCTION = 0b000000010,
- SCOPE_ASYNC = 0b000000100,
- SCOPE_GENERATOR = 0b000001000,
- SCOPE_ARROW = 0b000010000,
- SCOPE_SIMPLE_CATCH = 0b000100000,
- SCOPE_SUPER = 0b001000000,
- SCOPE_DIRECT_SUPER = 0b010000000,
- SCOPE_CLASS = 0b100000000,
- SCOPE_VAR = SCOPE_PROGRAM | SCOPE_FUNCTION;
-function functionFlags(isAsync, isGenerator) {
- return SCOPE_FUNCTION | (isAsync ? SCOPE_ASYNC : 0) | (isGenerator ? SCOPE_GENERATOR : 0);
-}
-const BIND_KIND_VALUE = 0b00000000001,
- BIND_KIND_TYPE = 0b00000000010,
- BIND_SCOPE_VAR = 0b00000000100,
- BIND_SCOPE_LEXICAL = 0b00000001000,
- BIND_SCOPE_FUNCTION = 0b00000010000,
- BIND_FLAGS_NONE = 0b00001000000,
- BIND_FLAGS_CLASS = 0b00010000000,
- BIND_FLAGS_TS_ENUM = 0b00100000000,
- BIND_FLAGS_TS_CONST_ENUM = 0b01000000000,
- BIND_FLAGS_TS_EXPORT_ONLY = 0b10000000000;
-const BIND_CLASS = BIND_KIND_VALUE | BIND_KIND_TYPE | BIND_SCOPE_LEXICAL | BIND_FLAGS_CLASS,
- BIND_LEXICAL = BIND_KIND_VALUE | 0 | BIND_SCOPE_LEXICAL | 0,
- BIND_VAR = BIND_KIND_VALUE | 0 | BIND_SCOPE_VAR | 0,
- BIND_FUNCTION = BIND_KIND_VALUE | 0 | BIND_SCOPE_FUNCTION | 0,
- BIND_TS_INTERFACE = 0 | BIND_KIND_TYPE | 0 | BIND_FLAGS_CLASS,
- BIND_TS_TYPE = 0 | BIND_KIND_TYPE | 0 | 0,
- BIND_TS_ENUM = BIND_KIND_VALUE | BIND_KIND_TYPE | BIND_SCOPE_LEXICAL | BIND_FLAGS_TS_ENUM,
- BIND_TS_FN_TYPE = 0 | 0 | 0 | BIND_FLAGS_TS_EXPORT_ONLY,
- BIND_NONE = 0 | 0 | 0 | BIND_FLAGS_NONE,
- BIND_OUTSIDE = BIND_KIND_VALUE | 0 | 0 | BIND_FLAGS_NONE,
- BIND_TS_CONST_ENUM = BIND_TS_ENUM | BIND_FLAGS_TS_CONST_ENUM,
- BIND_TS_NAMESPACE = BIND_TS_FN_TYPE;
-
-function isSimpleProperty(node) {
- return node != null && node.type === "Property" && node.kind === "init" && node.method === false;
-}
-
-var estree = (superClass => class extends superClass {
- estreeParseRegExpLiteral({
- pattern,
- flags
- }) {
- let regex = null;
-
- try {
- regex = new RegExp(pattern, flags);
- } catch (e) {}
-
- const node = this.estreeParseLiteral(regex);
- node.regex = {
- pattern,
- flags
- };
- return node;
- }
-
- estreeParseLiteral(value) {
- return this.parseLiteral(value, "Literal");
- }
-
- directiveToStmt(directive) {
- const directiveLiteral = directive.value;
- const stmt = this.startNodeAt(directive.start, directive.loc.start);
- const expression = this.startNodeAt(directiveLiteral.start, directiveLiteral.loc.start);
- expression.value = directiveLiteral.value;
- expression.raw = directiveLiteral.extra.raw;
- stmt.expression = this.finishNodeAt(expression, "Literal", directiveLiteral.end, directiveLiteral.loc.end);
- stmt.directive = directiveLiteral.extra.raw.slice(1, -1);
- return this.finishNodeAt(stmt, "ExpressionStatement", directive.end, directive.loc.end);
- }
-
- initFunction(node, isAsync) {
- super.initFunction(node, isAsync);
- node.expression = false;
- }
-
- checkDeclaration(node) {
- if (isSimpleProperty(node)) {
- this.checkDeclaration(node.value);
- } else {
- super.checkDeclaration(node);
- }
- }
-
- checkGetterSetterParams(method) {
- const prop = method;
- const paramCount = prop.kind === "get" ? 0 : 1;
- const start = prop.start;
-
- if (prop.value.params.length !== paramCount) {
- if (prop.kind === "get") {
- this.raise(start, "getter must not have any formal parameters");
- } else {
- this.raise(start, "setter must have exactly one formal parameter");
- }
- }
-
- if (prop.kind === "set" && prop.value.params[0].type === "RestElement") {
- this.raise(start, "setter function argument must not be a rest parameter");
- }
- }
-
- checkLVal(expr, bindingType = BIND_NONE, checkClashes, contextDescription) {
- switch (expr.type) {
- case "ObjectPattern":
- expr.properties.forEach(prop => {
- this.checkLVal(prop.type === "Property" ? prop.value : prop, bindingType, checkClashes, "object destructuring pattern");
- });
- break;
-
- default:
- super.checkLVal(expr, bindingType, checkClashes, contextDescription);
- }
- }
-
- checkPropClash(prop, propHash) {
- if (prop.type === "SpreadElement" || prop.computed || prop.method || prop.shorthand) {
- return;
- }
-
- const key = prop.key;
- const name = key.type === "Identifier" ? key.name : String(key.value);
-
- if (name === "__proto__" && prop.kind === "init") {
- if (propHash.proto) {
- this.raise(key.start, "Redefinition of __proto__ property");
- }
-
- propHash.proto = true;
- }
- }
-
- isStrictBody(node) {
- const isBlockStatement = node.body.type === "BlockStatement";
-
- if (isBlockStatement && node.body.body.length > 0) {
- for (let _i = 0, _node$body$body = node.body.body; _i < _node$body$body.length; _i++) {
- const directive = _node$body$body[_i];
-
- if (directive.type === "ExpressionStatement" && directive.expression.type === "Literal") {
- if (directive.expression.value === "use strict") return true;
- } else {
- break;
- }
- }
- }
-
- return false;
- }
-
- isValidDirective(stmt) {
- return stmt.type === "ExpressionStatement" && stmt.expression.type === "Literal" && typeof stmt.expression.value === "string" && (!stmt.expression.extra || !stmt.expression.extra.parenthesized);
- }
-
- stmtToDirective(stmt) {
- const directive = super.stmtToDirective(stmt);
- const value = stmt.expression.value;
- directive.value.value = value;
- return directive;
- }
-
- parseBlockBody(node, allowDirectives, topLevel, end) {
- super.parseBlockBody(node, allowDirectives, topLevel, end);
- const directiveStatements = node.directives.map(d => this.directiveToStmt(d));
- node.body = directiveStatements.concat(node.body);
- delete node.directives;
- }
-
- pushClassMethod(classBody, method, isGenerator, isAsync, isConstructor, allowsDirectSuper) {
- this.parseMethod(method, isGenerator, isAsync, isConstructor, allowsDirectSuper, "ClassMethod", true);
-
- if (method.typeParameters) {
- method.value.typeParameters = method.typeParameters;
- delete method.typeParameters;
- }
-
- classBody.body.push(method);
- }
-
- parseExprAtom(refShorthandDefaultPos) {
- switch (this.state.type) {
- case types.regexp:
- return this.estreeParseRegExpLiteral(this.state.value);
-
- case types.num:
- case types.string:
- return this.estreeParseLiteral(this.state.value);
-
- case types._null:
- return this.estreeParseLiteral(null);
-
- case types._true:
- return this.estreeParseLiteral(true);
-
- case types._false:
- return this.estreeParseLiteral(false);
-
- default:
- return super.parseExprAtom(refShorthandDefaultPos);
- }
- }
-
- parseLiteral(value, type, startPos, startLoc) {
- const node = super.parseLiteral(value, type, startPos, startLoc);
- node.raw = node.extra.raw;
- delete node.extra;
- return node;
- }
-
- parseFunctionBody(node, allowExpression, isMethod = false) {
- super.parseFunctionBody(node, allowExpression, isMethod);
- node.expression = node.body.type !== "BlockStatement";
- }
-
- parseMethod(node, isGenerator, isAsync, isConstructor, allowDirectSuper, type, inClassScope = false) {
- let funcNode = this.startNode();
- funcNode.kind = node.kind;
- funcNode = super.parseMethod(funcNode, isGenerator, isAsync, isConstructor, allowDirectSuper, type, inClassScope);
- funcNode.type = "FunctionExpression";
- delete funcNode.kind;
- node.value = funcNode;
- type = type === "ClassMethod" ? "MethodDefinition" : type;
- return this.finishNode(node, type);
- }
-
- parseObjectMethod(prop, isGenerator, isAsync, isPattern, containsEsc) {
- const node = super.parseObjectMethod(prop, isGenerator, isAsync, isPattern, containsEsc);
-
- if (node) {
- node.type = "Property";
- if (node.kind === "method") node.kind = "init";
- node.shorthand = false;
- }
-
- return node;
- }
-
- parseObjectProperty(prop, startPos, startLoc, isPattern, refShorthandDefaultPos) {
- const node = super.parseObjectProperty(prop, startPos, startLoc, isPattern, refShorthandDefaultPos);
-
- if (node) {
- node.kind = "init";
- node.type = "Property";
- }
-
- return node;
- }
-
- toAssignable(node, isBinding, contextDescription) {
- if (isSimpleProperty(node)) {
- this.toAssignable(node.value, isBinding, contextDescription);
- return node;
- }
-
- return super.toAssignable(node, isBinding, contextDescription);
- }
-
- toAssignableObjectExpressionProp(prop, isBinding, isLast) {
- if (prop.kind === "get" || prop.kind === "set") {
- this.raise(prop.key.start, "Object pattern can't contain getter or setter");
- } else if (prop.method) {
- this.raise(prop.key.start, "Object pattern can't contain methods");
- } else {
- super.toAssignableObjectExpressionProp(prop, isBinding, isLast);
- }
- }
-
-});
-
-const lineBreak = /\r\n?|[\n\u2028\u2029]/;
-const lineBreakG = new RegExp(lineBreak.source, "g");
-function isNewLine(code) {
- switch (code) {
- case 10:
- case 13:
- case 8232:
- case 8233:
- return true;
-
- default:
- return false;
- }
-}
-const skipWhiteSpace = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;
-function isWhitespace(code) {
- switch (code) {
- case 0x0009:
- case 0x000b:
- case 0x000c:
- case 32:
- case 160:
- case 5760:
- case 0x2000:
- case 0x2001:
- case 0x2002:
- case 0x2003:
- case 0x2004:
- case 0x2005:
- case 0x2006:
- case 0x2007:
- case 0x2008:
- case 0x2009:
- case 0x200a:
- case 0x202f:
- case 0x205f:
- case 0x3000:
- case 0xfeff:
- return true;
-
- default:
- return false;
- }
-}
-
-class TokContext {
- constructor(token, isExpr, preserveSpace, override) {
- this.token = token;
- this.isExpr = !!isExpr;
- this.preserveSpace = !!preserveSpace;
- this.override = override;
- }
-
-}
-const types$1 = {
- braceStatement: new TokContext("{", false),
- braceExpression: new TokContext("{", true),
- templateQuasi: new TokContext("${", false),
- parenStatement: new TokContext("(", false),
- parenExpression: new TokContext("(", true),
- template: new TokContext("`", true, true, p => p.readTmplToken()),
- functionExpression: new TokContext("function", true),
- functionStatement: new TokContext("function", false)
-};
-
-types.parenR.updateContext = types.braceR.updateContext = function () {
- if (this.state.context.length === 1) {
- this.state.exprAllowed = true;
- return;
- }
-
- let out = this.state.context.pop();
-
- if (out === types$1.braceStatement && this.curContext().token === "function") {
- out = this.state.context.pop();
- }
-
- this.state.exprAllowed = !out.isExpr;
-};
-
-types.name.updateContext = function (prevType) {
- let allowed = false;
-
- if (prevType !== types.dot) {
- if (this.state.value === "of" && !this.state.exprAllowed || this.state.value === "yield" && this.scope.inGenerator) {
- allowed = true;
- }
- }
-
- this.state.exprAllowed = allowed;
-
- if (this.state.isIterator) {
- this.state.isIterator = false;
- }
-};
-
-types.braceL.updateContext = function (prevType) {
- this.state.context.push(this.braceIsBlock(prevType) ? types$1.braceStatement : types$1.braceExpression);
- this.state.exprAllowed = true;
-};
-
-types.dollarBraceL.updateContext = function () {
- this.state.context.push(types$1.templateQuasi);
- this.state.exprAllowed = true;
-};
-
-types.parenL.updateContext = function (prevType) {
- const statementParens = prevType === types._if || prevType === types._for || prevType === types._with || prevType === types._while;
- this.state.context.push(statementParens ? types$1.parenStatement : types$1.parenExpression);
- this.state.exprAllowed = true;
-};
-
-types.incDec.updateContext = function () {};
-
-types._function.updateContext = types._class.updateContext = function (prevType) {
- if (prevType.beforeExpr && prevType !== types.semi && prevType !== types._else && !(prevType === types._return && lineBreak.test(this.input.slice(this.state.lastTokEnd, this.state.start))) && !((prevType === types.colon || prevType === types.braceL) && this.curContext() === types$1.b_stat)) {
- this.state.context.push(types$1.functionExpression);
- } else {
- this.state.context.push(types$1.functionStatement);
- }
-
- this.state.exprAllowed = false;
-};
-
-types.backQuote.updateContext = function () {
- if (this.curContext() === types$1.template) {
- this.state.context.pop();
- } else {
- this.state.context.push(types$1.template);
- }
-
- this.state.exprAllowed = false;
-};
-
-const reservedWords = {
- strict: ["implements", "interface", "let", "package", "private", "protected", "public", "static", "yield"],
- strictBind: ["eval", "arguments"]
-};
-const reservedWordsStrictSet = new Set(reservedWords.strict);
-const reservedWordsStrictBindSet = new Set(reservedWords.strict.concat(reservedWords.strictBind));
-const isReservedWord = (word, inModule) => {
- return inModule && word === "await" || word === "enum";
-};
-function isStrictReservedWord(word, inModule) {
- return isReservedWord(word, inModule) || reservedWordsStrictSet.has(word);
-}
-function isStrictBindReservedWord(word, inModule) {
- return isReservedWord(word, inModule) || reservedWordsStrictBindSet.has(word);
-}
-function isKeyword(word) {
- return keywords.has(word);
-}
-const keywordRelationalOperator = /^in(stanceof)?$/;
-let nonASCIIidentifierStartChars = "\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\u0560-\u0588\u05d0-\u05ea\u05ef-\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\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\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-\u1878\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\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u1cfa\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-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua8fe\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-\uab67\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";
-let nonASCIIidentifierChars = "\u200c\u200d\xb7\u0300-\u036f\u0387\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u0669\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u06f0-\u06f9\u0711\u0730-\u074a\u07a6-\u07b0\u07c0-\u07c9\u07eb-\u07f3\u07fd\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08d3-\u08e1\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u09e6-\u09ef\u09fe\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0ae6-\u0aef\u0afa-\u0aff\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c00-\u0c04\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c66-\u0c6f\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0ce6-\u0cef\u0d00-\u0d03\u0d3b\u0d3c\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d66-\u0d6f\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0e50-\u0e59\u0eb1\u0eb4-\u0ebc\u0ec8-\u0ecd\u0ed0-\u0ed9\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1040-\u1049\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f-\u109d\u135d-\u135f\u1369-\u1371\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u17e0-\u17e9\u180b-\u180d\u1810-\u1819\u18a9\u1920-\u192b\u1930-\u193b\u1946-\u194f\u19d0-\u19da\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1ab0-\u1abd\u1b00-\u1b04\u1b34-\u1b44\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1bb0-\u1bb9\u1be6-\u1bf3\u1c24-\u1c37\u1c40-\u1c49\u1c50-\u1c59\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf4\u1cf7-\u1cf9\u1dc0-\u1df9\u1dfb-\u1dff\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua620-\ua629\ua66f\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f1\ua8ff-\ua909\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9d0-\ua9d9\ua9e5\ua9f0-\ua9f9\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa50-\uaa59\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\uabf0-\uabf9\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f\ufe33\ufe34\ufe4d-\ufe4f\uff10-\uff19\uff3f";
-const nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]");
-const nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]");
-nonASCIIidentifierStartChars = nonASCIIidentifierChars = null;
-const astralIdentifierStartCodes = [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, 157, 310, 10, 21, 11, 7, 153, 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, 477, 28, 11, 0, 9, 21, 155, 22, 13, 52, 76, 44, 33, 24, 27, 35, 30, 0, 12, 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, 0, 33, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 230, 43, 117, 63, 32, 0, 161, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 35, 56, 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, 270, 921, 103, 110, 18, 195, 2749, 1070, 4050, 582, 8634, 568, 8, 30, 114, 29, 19, 47, 17, 3, 32, 20, 6, 18, 689, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 754, 9486, 286, 50, 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, 2357, 44, 11, 6, 17, 0, 370, 43, 1301, 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, 42710, 42, 4148, 12, 221, 3, 5761, 15, 7472, 3104, 541];
-const astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 525, 10, 176, 2, 54, 14, 32, 9, 16, 3, 46, 10, 54, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 4, 9, 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, 232, 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, 135, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 19723, 1, 5319, 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, 419, 13, 1495, 6, 110, 6, 6, 9, 792487, 239];
-
-function isInAstralSet(code, set) {
- let pos = 0x10000;
-
- for (let i = 0, length = set.length; i < length; i += 2) {
- pos += set[i];
- if (pos > code) return false;
- pos += set[i + 1];
- if (pos >= code) return true;
- }
-
- return false;
-}
-
-function isIdentifierStart(code) {
- if (code < 65) return code === 36;
- if (code <= 90) return true;
- if (code < 97) return code === 95;
- if (code <= 122) return true;
-
- if (code <= 0xffff) {
- return code >= 0xaa && nonASCIIidentifierStart.test(String.fromCharCode(code));
- }
-
- return isInAstralSet(code, astralIdentifierStartCodes);
-}
-function isIteratorStart(current, next) {
- return current === 64 && next === 64;
-}
-function isIdentifierChar(code) {
- if (code < 48) return code === 36;
- if (code < 58) return true;
- if (code < 65) return false;
- if (code <= 90) return true;
- if (code < 97) return code === 95;
- if (code <= 122) return true;
-
- if (code <= 0xffff) {
- return code >= 0xaa && nonASCIIidentifier.test(String.fromCharCode(code));
- }
-
- return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes);
-}
-
-const reservedTypes = ["any", "bool", "boolean", "empty", "false", "mixed", "null", "number", "static", "string", "true", "typeof", "void", "interface", "extends", "_"];
-
-function isEsModuleType(bodyElement) {
- return bodyElement.type === "DeclareExportAllDeclaration" || bodyElement.type === "DeclareExportDeclaration" && (!bodyElement.declaration || bodyElement.declaration.type !== "TypeAlias" && bodyElement.declaration.type !== "InterfaceDeclaration");
-}
-
-function hasTypeImportKind(node) {
- return node.importKind === "type" || node.importKind === "typeof";
-}
-
-function isMaybeDefaultImport(state) {
- return (state.type === types.name || !!state.type.keyword) && state.value !== "from";
-}
-
-const exportSuggestions = {
- const: "declare export var",
- let: "declare export var",
- type: "export type",
- interface: "export interface"
-};
-
-function partition(list, test) {
- const list1 = [];
- const list2 = [];
-
- for (let i = 0; i < list.length; i++) {
- (test(list[i], i, list) ? list1 : list2).push(list[i]);
- }
-
- return [list1, list2];
-}
-
-const FLOW_PRAGMA_REGEX = /\*?\s*@((?:no)?flow)\b/;
-var flow = (superClass => class extends superClass {
- constructor(options, input) {
- super(options, input);
- this.flowPragma = undefined;
- }
-
- shouldParseTypes() {
- return this.getPluginOption("flow", "all") || this.flowPragma === "flow";
- }
-
- finishToken(type, val) {
- if (type !== types.string && type !== types.semi && type !== types.interpreterDirective) {
- if (this.flowPragma === undefined) {
- this.flowPragma = null;
- }
- }
-
- return super.finishToken(type, val);
- }
-
- addComment(comment) {
- if (this.flowPragma === undefined) {
- const matches = FLOW_PRAGMA_REGEX.exec(comment.value);
-
- if (!matches) ; else if (matches[1] === "flow") {
- this.flowPragma = "flow";
- } else if (matches[1] === "noflow") {
- this.flowPragma = "noflow";
- } else {
- throw new Error("Unexpected flow pragma");
- }
- }
-
- return super.addComment(comment);
- }
-
- flowParseTypeInitialiser(tok) {
- const oldInType = this.state.inType;
- this.state.inType = true;
- this.expect(tok || types.colon);
- const type = this.flowParseType();
- this.state.inType = oldInType;
- return type;
- }
-
- flowParsePredicate() {
- const node = this.startNode();
- const moduloLoc = this.state.startLoc;
- const moduloPos = this.state.start;
- this.expect(types.modulo);
- const checksLoc = this.state.startLoc;
- this.expectContextual("checks");
-
- if (moduloLoc.line !== checksLoc.line || moduloLoc.column !== checksLoc.column - 1) {
- this.raise(moduloPos, "Spaces between ´%´ and ´checks´ are not allowed here.");
- }
-
- if (this.eat(types.parenL)) {
- node.value = this.parseExpression();
- this.expect(types.parenR);
- return this.finishNode(node, "DeclaredPredicate");
- } else {
- return this.finishNode(node, "InferredPredicate");
- }
- }
-
- flowParseTypeAndPredicateInitialiser() {
- const oldInType = this.state.inType;
- this.state.inType = true;
- this.expect(types.colon);
- let type = null;
- let predicate = null;
-
- if (this.match(types.modulo)) {
- this.state.inType = oldInType;
- predicate = this.flowParsePredicate();
- } else {
- type = this.flowParseType();
- this.state.inType = oldInType;
-
- if (this.match(types.modulo)) {
- predicate = this.flowParsePredicate();
- }
- }
-
- return [type, predicate];
- }
-
- flowParseDeclareClass(node) {
- this.next();
- this.flowParseInterfaceish(node, true);
- return this.finishNode(node, "DeclareClass");
- }
-
- flowParseDeclareFunction(node) {
- this.next();
- const id = node.id = this.parseIdentifier();
- const typeNode = this.startNode();
- const typeContainer = this.startNode();
-
- if (this.isRelational("<")) {
- typeNode.typeParameters = this.flowParseTypeParameterDeclaration();
- } else {
- typeNode.typeParameters = null;
- }
-
- this.expect(types.parenL);
- const tmp = this.flowParseFunctionTypeParams();
- typeNode.params = tmp.params;
- typeNode.rest = tmp.rest;
- this.expect(types.parenR);
- [typeNode.returnType, node.predicate] = this.flowParseTypeAndPredicateInitialiser();
- typeContainer.typeAnnotation = this.finishNode(typeNode, "FunctionTypeAnnotation");
- id.typeAnnotation = this.finishNode(typeContainer, "TypeAnnotation");
- this.resetEndLocation(id);
- this.semicolon();
- return this.finishNode(node, "DeclareFunction");
- }
-
- flowParseDeclare(node, insideModule) {
- if (this.match(types._class)) {
- return this.flowParseDeclareClass(node);
- } else if (this.match(types._function)) {
- return this.flowParseDeclareFunction(node);
- } else if (this.match(types._var)) {
- return this.flowParseDeclareVariable(node);
- } else if (this.eatContextual("module")) {
- if (this.match(types.dot)) {
- return this.flowParseDeclareModuleExports(node);
- } else {
- if (insideModule) {
- this.unexpected(this.state.lastTokStart, "`declare module` cannot be used inside another `declare module`");
- }
-
- return this.flowParseDeclareModule(node);
- }
- } else if (this.isContextual("type")) {
- return this.flowParseDeclareTypeAlias(node);
- } else if (this.isContextual("opaque")) {
- return this.flowParseDeclareOpaqueType(node);
- } else if (this.isContextual("interface")) {
- return this.flowParseDeclareInterface(node);
- } else if (this.match(types._export)) {
- return this.flowParseDeclareExportDeclaration(node, insideModule);
- } else {
- throw this.unexpected();
- }
- }
-
- flowParseDeclareVariable(node) {
- this.next();
- node.id = this.flowParseTypeAnnotatableIdentifier(true);
- this.semicolon();
- return this.finishNode(node, "DeclareVariable");
- }
-
- flowParseDeclareModule(node) {
- this.scope.enter(SCOPE_OTHER);
-
- if (this.match(types.string)) {
- node.id = this.parseExprAtom();
- } else {
- node.id = this.parseIdentifier();
- }
-
- const bodyNode = node.body = this.startNode();
- const body = bodyNode.body = [];
- this.expect(types.braceL);
-
- while (!this.match(types.braceR)) {
- let bodyNode = this.startNode();
-
- if (this.match(types._import)) {
- this.next();
-
- if (!this.isContextual("type") && !this.match(types._typeof)) {
- this.unexpected(this.state.lastTokStart, "Imports within a `declare module` body must always be `import type` or `import typeof`");
- }
-
- this.parseImport(bodyNode);
- } else {
- this.expectContextual("declare", "Only declares and type imports are allowed inside declare module");
- bodyNode = this.flowParseDeclare(bodyNode, true);
- }
-
- body.push(bodyNode);
- }
-
- this.scope.exit();
- this.expect(types.braceR);
- this.finishNode(bodyNode, "BlockStatement");
- let kind = null;
- let hasModuleExport = false;
- const errorMessage = "Found both `declare module.exports` and `declare export` in the same module. " + "Modules can only have 1 since they are either an ES module or they are a CommonJS module";
- body.forEach(bodyElement => {
- if (isEsModuleType(bodyElement)) {
- if (kind === "CommonJS") {
- this.unexpected(bodyElement.start, errorMessage);
- }
-
- kind = "ES";
- } else if (bodyElement.type === "DeclareModuleExports") {
- if (hasModuleExport) {
- this.unexpected(bodyElement.start, "Duplicate `declare module.exports` statement");
- }
-
- if (kind === "ES") this.unexpected(bodyElement.start, errorMessage);
- kind = "CommonJS";
- hasModuleExport = true;
- }
- });
- node.kind = kind || "CommonJS";
- return this.finishNode(node, "DeclareModule");
- }
-
- flowParseDeclareExportDeclaration(node, insideModule) {
- this.expect(types._export);
-
- if (this.eat(types._default)) {
- if (this.match(types._function) || this.match(types._class)) {
- node.declaration = this.flowParseDeclare(this.startNode());
- } else {
- node.declaration = this.flowParseType();
- this.semicolon();
- }
-
- node.default = true;
- return this.finishNode(node, "DeclareExportDeclaration");
- } else {
- if (this.match(types._const) || this.isLet() || (this.isContextual("type") || this.isContextual("interface")) && !insideModule) {
- const label = this.state.value;
- const suggestion = exportSuggestions[label];
- this.unexpected(this.state.start, `\`declare export ${label}\` is not supported. Use \`${suggestion}\` instead`);
- }
-
- if (this.match(types._var) || this.match(types._function) || this.match(types._class) || this.isContextual("opaque")) {
- node.declaration = this.flowParseDeclare(this.startNode());
- node.default = false;
- return this.finishNode(node, "DeclareExportDeclaration");
- } else if (this.match(types.star) || this.match(types.braceL) || this.isContextual("interface") || this.isContextual("type") || this.isContextual("opaque")) {
- node = this.parseExport(node);
-
- if (node.type === "ExportNamedDeclaration") {
- node.type = "ExportDeclaration";
- node.default = false;
- delete node.exportKind;
- }
-
- node.type = "Declare" + node.type;
- return node;
- }
- }
-
- throw this.unexpected();
- }
-
- flowParseDeclareModuleExports(node) {
- this.next();
- this.expectContextual("exports");
- node.typeAnnotation = this.flowParseTypeAnnotation();
- this.semicolon();
- return this.finishNode(node, "DeclareModuleExports");
- }
-
- flowParseDeclareTypeAlias(node) {
- this.next();
- this.flowParseTypeAlias(node);
- node.type = "DeclareTypeAlias";
- return node;
- }
-
- flowParseDeclareOpaqueType(node) {
- this.next();
- this.flowParseOpaqueType(node, true);
- node.type = "DeclareOpaqueType";
- return node;
- }
-
- flowParseDeclareInterface(node) {
- this.next();
- this.flowParseInterfaceish(node);
- return this.finishNode(node, "DeclareInterface");
- }
-
- flowParseInterfaceish(node, isClass = false) {
- node.id = this.flowParseRestrictedIdentifier(!isClass);
-
- if (this.isRelational("<")) {
- node.typeParameters = this.flowParseTypeParameterDeclaration();
- } else {
- node.typeParameters = null;
- }
-
- node.extends = [];
- node.implements = [];
- node.mixins = [];
-
- if (this.eat(types._extends)) {
- do {
- node.extends.push(this.flowParseInterfaceExtends());
- } while (!isClass && this.eat(types.comma));
- }
-
- if (this.isContextual("mixins")) {
- this.next();
-
- do {
- node.mixins.push(this.flowParseInterfaceExtends());
- } while (this.eat(types.comma));
- }
-
- if (this.isContextual("implements")) {
- this.next();
-
- do {
- node.implements.push(this.flowParseInterfaceExtends());
- } while (this.eat(types.comma));
- }
-
- node.body = this.flowParseObjectType({
- allowStatic: isClass,
- allowExact: false,
- allowSpread: false,
- allowProto: isClass,
- allowInexact: false
- });
- }
-
- flowParseInterfaceExtends() {
- const node = this.startNode();
- node.id = this.flowParseQualifiedTypeIdentifier();
-
- if (this.isRelational("<")) {
- node.typeParameters = this.flowParseTypeParameterInstantiation();
- } else {
- node.typeParameters = null;
- }
-
- return this.finishNode(node, "InterfaceExtends");
- }
-
- flowParseInterface(node) {
- this.flowParseInterfaceish(node);
- return this.finishNode(node, "InterfaceDeclaration");
- }
-
- checkNotUnderscore(word) {
- if (word === "_") {
- throw this.unexpected(null, "`_` is only allowed as a type argument to call or new");
- }
- }
-
- checkReservedType(word, startLoc) {
- if (reservedTypes.indexOf(word) > -1) {
- this.raise(startLoc, `Cannot overwrite reserved type ${word}`);
- }
- }
-
- flowParseRestrictedIdentifier(liberal) {
- this.checkReservedType(this.state.value, this.state.start);
- return this.parseIdentifier(liberal);
- }
-
- flowParseTypeAlias(node) {
- node.id = this.flowParseRestrictedIdentifier();
- this.scope.declareName(node.id.name, BIND_LEXICAL, node.id.start);
-
- if (this.isRelational("<")) {
- node.typeParameters = this.flowParseTypeParameterDeclaration();
- } else {
- node.typeParameters = null;
- }
-
- node.right = this.flowParseTypeInitialiser(types.eq);
- this.semicolon();
- return this.finishNode(node, "TypeAlias");
- }
-
- flowParseOpaqueType(node, declare) {
- this.expectContextual("type");
- node.id = this.flowParseRestrictedIdentifier(true);
- this.scope.declareName(node.id.name, BIND_LEXICAL, node.id.start);
-
- if (this.isRelational("<")) {
- node.typeParameters = this.flowParseTypeParameterDeclaration();
- } else {
- node.typeParameters = null;
- }
-
- node.supertype = null;
-
- if (this.match(types.colon)) {
- node.supertype = this.flowParseTypeInitialiser(types.colon);
- }
-
- node.impltype = null;
-
- if (!declare) {
- node.impltype = this.flowParseTypeInitialiser(types.eq);
- }
-
- this.semicolon();
- return this.finishNode(node, "OpaqueType");
- }
-
- flowParseTypeParameter(requireDefault = false) {
- const nodeStart = this.state.start;
- const node = this.startNode();
- const variance = this.flowParseVariance();
- const ident = this.flowParseTypeAnnotatableIdentifier();
- node.name = ident.name;
- node.variance = variance;
- node.bound = ident.typeAnnotation;
-
- if (this.match(types.eq)) {
- this.eat(types.eq);
- node.default = this.flowParseType();
- } else {
- if (requireDefault) {
- this.unexpected(nodeStart, "Type parameter declaration needs a default, since a preceding type parameter declaration has a default.");
- }
- }
-
- return this.finishNode(node, "TypeParameter");
- }
-
- flowParseTypeParameterDeclaration() {
- const oldInType = this.state.inType;
- const node = this.startNode();
- node.params = [];
- this.state.inType = true;
-
- if (this.isRelational("<") || this.match(types.jsxTagStart)) {
- this.next();
- } else {
- this.unexpected();
- }
-
- let defaultRequired = false;
-
- do {
- const typeParameter = this.flowParseTypeParameter(defaultRequired);
- node.params.push(typeParameter);
-
- if (typeParameter.default) {
- defaultRequired = true;
- }
-
- if (!this.isRelational(">")) {
- this.expect(types.comma);
- }
- } while (!this.isRelational(">"));
-
- this.expectRelational(">");
- this.state.inType = oldInType;
- return this.finishNode(node, "TypeParameterDeclaration");
- }
-
- flowParseTypeParameterInstantiation() {
- const node = this.startNode();
- const oldInType = this.state.inType;
- node.params = [];
- this.state.inType = true;
- this.expectRelational("<");
- const oldNoAnonFunctionType = this.state.noAnonFunctionType;
- this.state.noAnonFunctionType = false;
-
- while (!this.isRelational(">")) {
- node.params.push(this.flowParseType());
-
- if (!this.isRelational(">")) {
- this.expect(types.comma);
- }
- }
-
- this.state.noAnonFunctionType = oldNoAnonFunctionType;
- this.expectRelational(">");
- this.state.inType = oldInType;
- return this.finishNode(node, "TypeParameterInstantiation");
- }
-
- flowParseTypeParameterInstantiationCallOrNew() {
- const node = this.startNode();
- const oldInType = this.state.inType;
- node.params = [];
- this.state.inType = true;
- this.expectRelational("<");
-
- while (!this.isRelational(">")) {
- node.params.push(this.flowParseTypeOrImplicitInstantiation());
-
- if (!this.isRelational(">")) {
- this.expect(types.comma);
- }
- }
-
- this.expectRelational(">");
- this.state.inType = oldInType;
- return this.finishNode(node, "TypeParameterInstantiation");
- }
-
- flowParseInterfaceType() {
- const node = this.startNode();
- this.expectContextual("interface");
- node.extends = [];
-
- if (this.eat(types._extends)) {
- do {
- node.extends.push(this.flowParseInterfaceExtends());
- } while (this.eat(types.comma));
- }
-
- node.body = this.flowParseObjectType({
- allowStatic: false,
- allowExact: false,
- allowSpread: false,
- allowProto: false,
- allowInexact: false
- });
- return this.finishNode(node, "InterfaceTypeAnnotation");
- }
-
- flowParseObjectPropertyKey() {
- return this.match(types.num) || this.match(types.string) ? this.parseExprAtom() : this.parseIdentifier(true);
- }
-
- flowParseObjectTypeIndexer(node, isStatic, variance) {
- node.static = isStatic;
-
- if (this.lookahead().type === types.colon) {
- node.id = this.flowParseObjectPropertyKey();
- node.key = this.flowParseTypeInitialiser();
- } else {
- node.id = null;
- node.key = this.flowParseType();
- }
-
- this.expect(types.bracketR);
- node.value = this.flowParseTypeInitialiser();
- node.variance = variance;
- return this.finishNode(node, "ObjectTypeIndexer");
- }
-
- flowParseObjectTypeInternalSlot(node, isStatic) {
- node.static = isStatic;
- node.id = this.flowParseObjectPropertyKey();
- this.expect(types.bracketR);
- this.expect(types.bracketR);
-
- if (this.isRelational("<") || this.match(types.parenL)) {
- node.method = true;
- node.optional = false;
- node.value = this.flowParseObjectTypeMethodish(this.startNodeAt(node.start, node.loc.start));
- } else {
- node.method = false;
-
- if (this.eat(types.question)) {
- node.optional = true;
- }
-
- node.value = this.flowParseTypeInitialiser();
- }
-
- return this.finishNode(node, "ObjectTypeInternalSlot");
- }
-
- flowParseObjectTypeMethodish(node) {
- node.params = [];
- node.rest = null;
- node.typeParameters = null;
-
- if (this.isRelational("<")) {
- node.typeParameters = this.flowParseTypeParameterDeclaration();
- }
-
- this.expect(types.parenL);
-
- while (!this.match(types.parenR) && !this.match(types.ellipsis)) {
- node.params.push(this.flowParseFunctionTypeParam());
-
- if (!this.match(types.parenR)) {
- this.expect(types.comma);
- }
- }
-
- if (this.eat(types.ellipsis)) {
- node.rest = this.flowParseFunctionTypeParam();
- }
-
- this.expect(types.parenR);
- node.returnType = this.flowParseTypeInitialiser();
- return this.finishNode(node, "FunctionTypeAnnotation");
- }
-
- flowParseObjectTypeCallProperty(node, isStatic) {
- const valueNode = this.startNode();
- node.static = isStatic;
- node.value = this.flowParseObjectTypeMethodish(valueNode);
- return this.finishNode(node, "ObjectTypeCallProperty");
- }
-
- flowParseObjectType({
- allowStatic,
- allowExact,
- allowSpread,
- allowProto,
- allowInexact
- }) {
- const oldInType = this.state.inType;
- this.state.inType = true;
- const nodeStart = this.startNode();
- nodeStart.callProperties = [];
- nodeStart.properties = [];
- nodeStart.indexers = [];
- nodeStart.internalSlots = [];
- let endDelim;
- let exact;
- let inexact = false;
-
- if (allowExact && this.match(types.braceBarL)) {
- this.expect(types.braceBarL);
- endDelim = types.braceBarR;
- exact = true;
- } else {
- this.expect(types.braceL);
- endDelim = types.braceR;
- exact = false;
- }
-
- nodeStart.exact = exact;
-
- while (!this.match(endDelim)) {
- let isStatic = false;
- let protoStart = null;
- const node = this.startNode();
-
- if (allowProto && this.isContextual("proto")) {
- const lookahead = this.lookahead();
-
- if (lookahead.type !== types.colon && lookahead.type !== types.question) {
- this.next();
- protoStart = this.state.start;
- allowStatic = false;
- }
- }
-
- if (allowStatic && this.isContextual("static")) {
- const lookahead = this.lookahead();
-
- if (lookahead.type !== types.colon && lookahead.type !== types.question) {
- this.next();
- isStatic = true;
- }
- }
-
- const variance = this.flowParseVariance();
-
- if (this.eat(types.bracketL)) {
- if (protoStart != null) {
- this.unexpected(protoStart);
- }
-
- if (this.eat(types.bracketL)) {
- if (variance) {
- this.unexpected(variance.start);
- }
-
- nodeStart.internalSlots.push(this.flowParseObjectTypeInternalSlot(node, isStatic));
- } else {
- nodeStart.indexers.push(this.flowParseObjectTypeIndexer(node, isStatic, variance));
- }
- } else if (this.match(types.parenL) || this.isRelational("<")) {
- if (protoStart != null) {
- this.unexpected(protoStart);
- }
-
- if (variance) {
- this.unexpected(variance.start);
- }
-
- nodeStart.callProperties.push(this.flowParseObjectTypeCallProperty(node, isStatic));
- } else {
- let kind = "init";
-
- if (this.isContextual("get") || this.isContextual("set")) {
- const lookahead = this.lookahead();
-
- if (lookahead.type === types.name || lookahead.type === types.string || lookahead.type === types.num) {
- kind = this.state.value;
- this.next();
- }
- }
-
- const propOrInexact = this.flowParseObjectTypeProperty(node, isStatic, protoStart, variance, kind, allowSpread, allowInexact);
-
- if (propOrInexact === null) {
- inexact = true;
- } else {
- nodeStart.properties.push(propOrInexact);
- }
- }
-
- this.flowObjectTypeSemicolon();
- }
-
- this.expect(endDelim);
-
- if (allowSpread) {
- nodeStart.inexact = inexact;
- }
-
- const out = this.finishNode(nodeStart, "ObjectTypeAnnotation");
- this.state.inType = oldInType;
- return out;
- }
-
- flowParseObjectTypeProperty(node, isStatic, protoStart, variance, kind, allowSpread, allowInexact) {
- if (this.match(types.ellipsis)) {
- if (!allowSpread) {
- this.unexpected(null, "Spread operator cannot appear in class or interface definitions");
- }
-
- if (protoStart != null) {
- this.unexpected(protoStart);
- }
-
- if (variance) {
- this.unexpected(variance.start, "Spread properties cannot have variance");
- }
-
- this.expect(types.ellipsis);
- const isInexactToken = this.eat(types.comma) || this.eat(types.semi);
-
- if (this.match(types.braceR)) {
- if (allowInexact) return null;
- this.unexpected(null, "Explicit inexact syntax is only allowed inside inexact objects");
- }
-
- if (this.match(types.braceBarR)) {
- this.unexpected(null, "Explicit inexact syntax cannot appear inside an explicit exact object type");
- }
-
- if (isInexactToken) {
- this.unexpected(null, "Explicit inexact syntax must appear at the end of an inexact object");
- }
-
- node.argument = this.flowParseType();
- return this.finishNode(node, "ObjectTypeSpreadProperty");
- } else {
- node.key = this.flowParseObjectPropertyKey();
- node.static = isStatic;
- node.proto = protoStart != null;
- node.kind = kind;
- let optional = false;
-
- if (this.isRelational("<") || this.match(types.parenL)) {
- node.method = true;
-
- if (protoStart != null) {
- this.unexpected(protoStart);
- }
-
- if (variance) {
- this.unexpected(variance.start);
- }
-
- node.value = this.flowParseObjectTypeMethodish(this.startNodeAt(node.start, node.loc.start));
-
- if (kind === "get" || kind === "set") {
- this.flowCheckGetterSetterParams(node);
- }
- } else {
- if (kind !== "init") this.unexpected();
- node.method = false;
-
- if (this.eat(types.question)) {
- optional = true;
- }
-
- node.value = this.flowParseTypeInitialiser();
- node.variance = variance;
- }
-
- node.optional = optional;
- return this.finishNode(node, "ObjectTypeProperty");
- }
- }
-
- flowCheckGetterSetterParams(property) {
- const paramCount = property.kind === "get" ? 0 : 1;
- const start = property.start;
- const length = property.value.params.length + (property.value.rest ? 1 : 0);
-
- if (length !== paramCount) {
- if (property.kind === "get") {
- this.raise(start, "getter must not have any formal parameters");
- } else {
- this.raise(start, "setter must have exactly one formal parameter");
- }
- }
-
- if (property.kind === "set" && property.value.rest) {
- this.raise(start, "setter function argument must not be a rest parameter");
- }
- }
-
- flowObjectTypeSemicolon() {
- if (!this.eat(types.semi) && !this.eat(types.comma) && !this.match(types.braceR) && !this.match(types.braceBarR)) {
- this.unexpected();
- }
- }
-
- flowParseQualifiedTypeIdentifier(startPos, startLoc, id) {
- startPos = startPos || this.state.start;
- startLoc = startLoc || this.state.startLoc;
- let node = id || this.parseIdentifier();
-
- while (this.eat(types.dot)) {
- const node2 = this.startNodeAt(startPos, startLoc);
- node2.qualification = node;
- node2.id = this.parseIdentifier();
- node = this.finishNode(node2, "QualifiedTypeIdentifier");
- }
-
- return node;
- }
-
- flowParseGenericType(startPos, startLoc, id) {
- const node = this.startNodeAt(startPos, startLoc);
- node.typeParameters = null;
- node.id = this.flowParseQualifiedTypeIdentifier(startPos, startLoc, id);
-
- if (this.isRelational("<")) {
- node.typeParameters = this.flowParseTypeParameterInstantiation();
- }
-
- return this.finishNode(node, "GenericTypeAnnotation");
- }
-
- flowParseTypeofType() {
- const node = this.startNode();
- this.expect(types._typeof);
- node.argument = this.flowParsePrimaryType();
- return this.finishNode(node, "TypeofTypeAnnotation");
- }
-
- flowParseTupleType() {
- const node = this.startNode();
- node.types = [];
- this.expect(types.bracketL);
-
- while (this.state.pos < this.length && !this.match(types.bracketR)) {
- node.types.push(this.flowParseType());
- if (this.match(types.bracketR)) break;
- this.expect(types.comma);
- }
-
- this.expect(types.bracketR);
- return this.finishNode(node, "TupleTypeAnnotation");
- }
-
- flowParseFunctionTypeParam() {
- let name = null;
- let optional = false;
- let typeAnnotation = null;
- const node = this.startNode();
- const lh = this.lookahead();
-
- if (lh.type === types.colon || lh.type === types.question) {
- name = this.parseIdentifier();
-
- if (this.eat(types.question)) {
- optional = true;
- }
-
- typeAnnotation = this.flowParseTypeInitialiser();
- } else {
- typeAnnotation = this.flowParseType();
- }
-
- node.name = name;
- node.optional = optional;
- node.typeAnnotation = typeAnnotation;
- return this.finishNode(node, "FunctionTypeParam");
- }
-
- reinterpretTypeAsFunctionTypeParam(type) {
- const node = this.startNodeAt(type.start, type.loc.start);
- node.name = null;
- node.optional = false;
- node.typeAnnotation = type;
- return this.finishNode(node, "FunctionTypeParam");
- }
-
- flowParseFunctionTypeParams(params = []) {
- let rest = null;
-
- while (!this.match(types.parenR) && !this.match(types.ellipsis)) {
- params.push(this.flowParseFunctionTypeParam());
-
- if (!this.match(types.parenR)) {
- this.expect(types.comma);
- }
- }
-
- if (this.eat(types.ellipsis)) {
- rest = this.flowParseFunctionTypeParam();
- }
-
- return {
- params,
- rest
- };
- }
-
- flowIdentToTypeAnnotation(startPos, startLoc, node, id) {
- switch (id.name) {
- case "any":
- return this.finishNode(node, "AnyTypeAnnotation");
-
- case "bool":
- case "boolean":
- return this.finishNode(node, "BooleanTypeAnnotation");
-
- case "mixed":
- return this.finishNode(node, "MixedTypeAnnotation");
-
- case "empty":
- return this.finishNode(node, "EmptyTypeAnnotation");
-
- case "number":
- return this.finishNode(node, "NumberTypeAnnotation");
-
- case "string":
- return this.finishNode(node, "StringTypeAnnotation");
-
- default:
- this.checkNotUnderscore(id.name);
- return this.flowParseGenericType(startPos, startLoc, id);
- }
- }
-
- flowParsePrimaryType() {
- const startPos = this.state.start;
- const startLoc = this.state.startLoc;
- const node = this.startNode();
- let tmp;
- let type;
- let isGroupedType = false;
- const oldNoAnonFunctionType = this.state.noAnonFunctionType;
-
- switch (this.state.type) {
- case types.name:
- if (this.isContextual("interface")) {
- return this.flowParseInterfaceType();
- }
-
- return this.flowIdentToTypeAnnotation(startPos, startLoc, node, this.parseIdentifier());
-
- case types.braceL:
- return this.flowParseObjectType({
- allowStatic: false,
- allowExact: false,
- allowSpread: true,
- allowProto: false,
- allowInexact: true
- });
-
- case types.braceBarL:
- return this.flowParseObjectType({
- allowStatic: false,
- allowExact: true,
- allowSpread: true,
- allowProto: false,
- allowInexact: false
- });
-
- case types.bracketL:
- this.state.noAnonFunctionType = false;
- type = this.flowParseTupleType();
- this.state.noAnonFunctionType = oldNoAnonFunctionType;
- return type;
-
- case types.relational:
- if (this.state.value === "<") {
- node.typeParameters = this.flowParseTypeParameterDeclaration();
- this.expect(types.parenL);
- tmp = this.flowParseFunctionTypeParams();
- node.params = tmp.params;
- node.rest = tmp.rest;
- this.expect(types.parenR);
- this.expect(types.arrow);
- node.returnType = this.flowParseType();
- return this.finishNode(node, "FunctionTypeAnnotation");
- }
-
- break;
-
- case types.parenL:
- this.next();
-
- if (!this.match(types.parenR) && !this.match(types.ellipsis)) {
- if (this.match(types.name)) {
- const token = this.lookahead().type;
- isGroupedType = token !== types.question && token !== types.colon;
- } else {
- isGroupedType = true;
- }
- }
-
- if (isGroupedType) {
- this.state.noAnonFunctionType = false;
- type = this.flowParseType();
- this.state.noAnonFunctionType = oldNoAnonFunctionType;
-
- if (this.state.noAnonFunctionType || !(this.match(types.comma) || this.match(types.parenR) && this.lookahead().type === types.arrow)) {
- this.expect(types.parenR);
- return type;
- } else {
- this.eat(types.comma);
- }
- }
-
- if (type) {
- tmp = this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(type)]);
- } else {
- tmp = this.flowParseFunctionTypeParams();
- }
-
- node.params = tmp.params;
- node.rest = tmp.rest;
- this.expect(types.parenR);
- this.expect(types.arrow);
- node.returnType = this.flowParseType();
- node.typeParameters = null;
- return this.finishNode(node, "FunctionTypeAnnotation");
-
- case types.string:
- return this.parseLiteral(this.state.value, "StringLiteralTypeAnnotation");
-
- case types._true:
- case types._false:
- node.value = this.match(types._true);
- this.next();
- return this.finishNode(node, "BooleanLiteralTypeAnnotation");
-
- case types.plusMin:
- if (this.state.value === "-") {
- this.next();
-
- if (this.match(types.num)) {
- return this.parseLiteral(-this.state.value, "NumberLiteralTypeAnnotation", node.start, node.loc.start);
- }
-
- if (this.match(types.bigint)) {
- return this.parseLiteral(-this.state.value, "BigIntLiteralTypeAnnotation", node.start, node.loc.start);
- }
-
- this.unexpected(null, `Unexpected token, expected "number" or "bigint"`);
- }
-
- this.unexpected();
-
- case types.num:
- return this.parseLiteral(this.state.value, "NumberLiteralTypeAnnotation");
-
- case types.bigint:
- return this.parseLiteral(this.state.value, "BigIntLiteralTypeAnnotation");
-
- case types._void:
- this.next();
- return this.finishNode(node, "VoidTypeAnnotation");
-
- case types._null:
- this.next();
- return this.finishNode(node, "NullLiteralTypeAnnotation");
-
- case types._this:
- this.next();
- return this.finishNode(node, "ThisTypeAnnotation");
-
- case types.star:
- this.next();
- return this.finishNode(node, "ExistsTypeAnnotation");
-
- default:
- if (this.state.type.keyword === "typeof") {
- return this.flowParseTypeofType();
- } else if (this.state.type.keyword) {
- const label = this.state.type.label;
- this.next();
- return super.createIdentifier(node, label);
- }
-
- }
-
- throw this.unexpected();
- }
-
- flowParsePostfixType() {
- const startPos = this.state.start,
- startLoc = this.state.startLoc;
- let type = this.flowParsePrimaryType();
-
- while (this.match(types.bracketL) && !this.canInsertSemicolon()) {
- const node = this.startNodeAt(startPos, startLoc);
- node.elementType = type;
- this.expect(types.bracketL);
- this.expect(types.bracketR);
- type = this.finishNode(node, "ArrayTypeAnnotation");
- }
-
- return type;
- }
-
- flowParsePrefixType() {
- const node = this.startNode();
-
- if (this.eat(types.question)) {
- node.typeAnnotation = this.flowParsePrefixType();
- return this.finishNode(node, "NullableTypeAnnotation");
- } else {
- return this.flowParsePostfixType();
- }
- }
-
- flowParseAnonFunctionWithoutParens() {
- const param = this.flowParsePrefixType();
-
- if (!this.state.noAnonFunctionType && this.eat(types.arrow)) {
- const node = this.startNodeAt(param.start, param.loc.start);
- node.params = [this.reinterpretTypeAsFunctionTypeParam(param)];
- node.rest = null;
- node.returnType = this.flowParseType();
- node.typeParameters = null;
- return this.finishNode(node, "FunctionTypeAnnotation");
- }
-
- return param;
- }
-
- flowParseIntersectionType() {
- const node = this.startNode();
- this.eat(types.bitwiseAND);
- const type = this.flowParseAnonFunctionWithoutParens();
- node.types = [type];
-
- while (this.eat(types.bitwiseAND)) {
- node.types.push(this.flowParseAnonFunctionWithoutParens());
- }
-
- return node.types.length === 1 ? type : this.finishNode(node, "IntersectionTypeAnnotation");
- }
-
- flowParseUnionType() {
- const node = this.startNode();
- this.eat(types.bitwiseOR);
- const type = this.flowParseIntersectionType();
- node.types = [type];
-
- while (this.eat(types.bitwiseOR)) {
- node.types.push(this.flowParseIntersectionType());
- }
-
- return node.types.length === 1 ? type : this.finishNode(node, "UnionTypeAnnotation");
- }
-
- flowParseType() {
- const oldInType = this.state.inType;
- this.state.inType = true;
- const type = this.flowParseUnionType();
- this.state.inType = oldInType;
- this.state.exprAllowed = this.state.exprAllowed || this.state.noAnonFunctionType;
- return type;
- }
-
- flowParseTypeOrImplicitInstantiation() {
- if (this.state.type === types.name && this.state.value === "_") {
- const startPos = this.state.start;
- const startLoc = this.state.startLoc;
- const node = this.parseIdentifier();
- return this.flowParseGenericType(startPos, startLoc, node);
- } else {
- return this.flowParseType();
- }
- }
-
- flowParseTypeAnnotation() {
- const node = this.startNode();
- node.typeAnnotation = this.flowParseTypeInitialiser();
- return this.finishNode(node, "TypeAnnotation");
- }
-
- flowParseTypeAnnotatableIdentifier(allowPrimitiveOverride) {
- const ident = allowPrimitiveOverride ? this.parseIdentifier() : this.flowParseRestrictedIdentifier();
-
- if (this.match(types.colon)) {
- ident.typeAnnotation = this.flowParseTypeAnnotation();
- this.resetEndLocation(ident);
- }
-
- return ident;
- }
-
- typeCastToParameter(node) {
- node.expression.typeAnnotation = node.typeAnnotation;
- this.resetEndLocation(node.expression, node.typeAnnotation.end, node.typeAnnotation.loc.end);
- return node.expression;
- }
-
- flowParseVariance() {
- let variance = null;
-
- if (this.match(types.plusMin)) {
- variance = this.startNode();
-
- if (this.state.value === "+") {
- variance.kind = "plus";
- } else {
- variance.kind = "minus";
- }
-
- this.next();
- this.finishNode(variance, "Variance");
- }
-
- return variance;
- }
-
- parseFunctionBody(node, allowExpressionBody, isMethod = false) {
- if (allowExpressionBody) {
- return this.forwardNoArrowParamsConversionAt(node, () => super.parseFunctionBody(node, true, isMethod));
- }
-
- return super.parseFunctionBody(node, false, isMethod);
- }
-
- parseFunctionBodyAndFinish(node, type, isMethod = false) {
- if (this.match(types.colon)) {
- const typeNode = this.startNode();
- [typeNode.typeAnnotation, node.predicate] = this.flowParseTypeAndPredicateInitialiser();
- node.returnType = typeNode.typeAnnotation ? this.finishNode(typeNode, "TypeAnnotation") : null;
- }
-
- super.parseFunctionBodyAndFinish(node, type, isMethod);
- }
-
- parseStatement(context, topLevel) {
- if (this.state.strict && this.match(types.name) && this.state.value === "interface") {
- const node = this.startNode();
- this.next();
- return this.flowParseInterface(node);
- } else {
- const stmt = super.parseStatement(context, topLevel);
-
- if (this.flowPragma === undefined && !this.isValidDirective(stmt)) {
- this.flowPragma = null;
- }
-
- return stmt;
- }
- }
-
- parseExpressionStatement(node, expr) {
- if (expr.type === "Identifier") {
- if (expr.name === "declare") {
- if (this.match(types._class) || this.match(types.name) || this.match(types._function) || this.match(types._var) || this.match(types._export)) {
- return this.flowParseDeclare(node);
- }
- } else if (this.match(types.name)) {
- if (expr.name === "interface") {
- return this.flowParseInterface(node);
- } else if (expr.name === "type") {
- return this.flowParseTypeAlias(node);
- } else if (expr.name === "opaque") {
- return this.flowParseOpaqueType(node, false);
- }
- }
- }
-
- return super.parseExpressionStatement(node, expr);
- }
-
- shouldParseExportDeclaration() {
- return this.isContextual("type") || this.isContextual("interface") || this.isContextual("opaque") || super.shouldParseExportDeclaration();
- }
-
- isExportDefaultSpecifier() {
- if (this.match(types.name) && (this.state.value === "type" || this.state.value === "interface" || this.state.value === "opaque")) {
- return false;
- }
-
- return super.isExportDefaultSpecifier();
- }
-
- parseConditional(expr, noIn, startPos, startLoc, refNeedsArrowPos) {
- if (!this.match(types.question)) return expr;
-
- if (refNeedsArrowPos) {
- const state = this.state.clone();
-
- try {
- return super.parseConditional(expr, noIn, startPos, startLoc);
- } catch (err) {
- if (err instanceof SyntaxError) {
- this.state = state;
- refNeedsArrowPos.start = err.pos || this.state.start;
- return expr;
- } else {
- throw err;
- }
- }
- }
-
- this.expect(types.question);
- const state = this.state.clone();
- const originalNoArrowAt = this.state.noArrowAt;
- const node = this.startNodeAt(startPos, startLoc);
- let {
- consequent,
- failed
- } = this.tryParseConditionalConsequent();
- let [valid, invalid] = this.getArrowLikeExpressions(consequent);
-
- if (failed || invalid.length > 0) {
- const noArrowAt = [...originalNoArrowAt];
-
- if (invalid.length > 0) {
- this.state = state;
- this.state.noArrowAt = noArrowAt;
-
- for (let i = 0; i < invalid.length; i++) {
- noArrowAt.push(invalid[i].start);
- }
-
- ({
- consequent,
- failed
- } = this.tryParseConditionalConsequent());
- [valid, invalid] = this.getArrowLikeExpressions(consequent);
- }
-
- if (failed && valid.length > 1) {
- this.raise(state.start, "Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.");
- }
-
- if (failed && valid.length === 1) {
- this.state = state;
- this.state.noArrowAt = noArrowAt.concat(valid[0].start);
- ({
- consequent,
- failed
- } = this.tryParseConditionalConsequent());
- }
-
- this.getArrowLikeExpressions(consequent, true);
- }
-
- this.state.noArrowAt = originalNoArrowAt;
- this.expect(types.colon);
- node.test = expr;
- node.consequent = consequent;
- node.alternate = this.forwardNoArrowParamsConversionAt(node, () => this.parseMaybeAssign(noIn, undefined, undefined, undefined));
- return this.finishNode(node, "ConditionalExpression");
- }
-
- tryParseConditionalConsequent() {
- this.state.noArrowParamsConversionAt.push(this.state.start);
- const consequent = this.parseMaybeAssign();
- const failed = !this.match(types.colon);
- this.state.noArrowParamsConversionAt.pop();
- return {
- consequent,
- failed
- };
- }
-
- getArrowLikeExpressions(node, disallowInvalid) {
- const stack = [node];
- const arrows = [];
-
- while (stack.length !== 0) {
- const node = stack.pop();
-
- if (node.type === "ArrowFunctionExpression") {
- if (node.typeParameters || !node.returnType) {
- this.toAssignableList(node.params, true, "arrow function parameters");
- this.scope.enter(functionFlags(false, false) | SCOPE_ARROW);
- super.checkParams(node, false, true);
- this.scope.exit();
- } else {
- arrows.push(node);
- }
-
- stack.push(node.body);
- } else if (node.type === "ConditionalExpression") {
- stack.push(node.consequent);
- stack.push(node.alternate);
- }
- }
-
- if (disallowInvalid) {
- for (let i = 0; i < arrows.length; i++) {
- this.toAssignableList(node.params, true, "arrow function parameters");
- }
-
- return [arrows, []];
- }
-
- return partition(arrows, node => {
- try {
- this.toAssignableList(node.params, true, "arrow function parameters");
- return true;
- } catch (err) {
- return false;
- }
- });
- }
-
- forwardNoArrowParamsConversionAt(node, parse) {
- let result;
-
- if (this.state.noArrowParamsConversionAt.indexOf(node.start) !== -1) {
- this.state.noArrowParamsConversionAt.push(this.state.start);
- result = parse();
- this.state.noArrowParamsConversionAt.pop();
- } else {
- result = parse();
- }
-
- return result;
- }
-
- parseParenItem(node, startPos, startLoc) {
- node = super.parseParenItem(node, startPos, startLoc);
-
- if (this.eat(types.question)) {
- node.optional = true;
- this.resetEndLocation(node);
- }
-
- if (this.match(types.colon)) {
- const typeCastNode = this.startNodeAt(startPos, startLoc);
- typeCastNode.expression = node;
- typeCastNode.typeAnnotation = this.flowParseTypeAnnotation();
- return this.finishNode(typeCastNode, "TypeCastExpression");
- }
-
- return node;
- }
-
- assertModuleNodeAllowed(node) {
- if (node.type === "ImportDeclaration" && (node.importKind === "type" || node.importKind === "typeof") || node.type === "ExportNamedDeclaration" && node.exportKind === "type" || node.type === "ExportAllDeclaration" && node.exportKind === "type") {
- return;
- }
-
- super.assertModuleNodeAllowed(node);
- }
-
- parseExport(node) {
- const decl = super.parseExport(node);
-
- if (decl.type === "ExportNamedDeclaration" || decl.type === "ExportAllDeclaration") {
- decl.exportKind = decl.exportKind || "value";
- }
-
- return decl;
- }
-
- parseExportDeclaration(node) {
- if (this.isContextual("type")) {
- node.exportKind = "type";
- const declarationNode = this.startNode();
- this.next();
-
- if (this.match(types.braceL)) {
- node.specifiers = this.parseExportSpecifiers();
- this.parseExportFrom(node);
- return null;
- } else {
- return this.flowParseTypeAlias(declarationNode);
- }
- } else if (this.isContextual("opaque")) {
- node.exportKind = "type";
- const declarationNode = this.startNode();
- this.next();
- return this.flowParseOpaqueType(declarationNode, false);
- } else if (this.isContextual("interface")) {
- node.exportKind = "type";
- const declarationNode = this.startNode();
- this.next();
- return this.flowParseInterface(declarationNode);
- } else {
- return super.parseExportDeclaration(node);
- }
- }
-
- eatExportStar(node) {
- if (super.eatExportStar(...arguments)) return true;
-
- if (this.isContextual("type") && this.lookahead().type === types.star) {
- node.exportKind = "type";
- this.next();
- this.next();
- return true;
- }
-
- return false;
- }
-
- maybeParseExportNamespaceSpecifier(node) {
- const pos = this.state.start;
- const hasNamespace = super.maybeParseExportNamespaceSpecifier(node);
-
- if (hasNamespace && node.exportKind === "type") {
- this.unexpected(pos);
- }
-
- return hasNamespace;
- }
-
- parseClassId(node, isStatement, optionalId) {
- super.parseClassId(node, isStatement, optionalId);
-
- if (this.isRelational("<")) {
- node.typeParameters = this.flowParseTypeParameterDeclaration();
- }
- }
-
- getTokenFromCode(code) {
- const next = this.input.charCodeAt(this.state.pos + 1);
-
- if (code === 123 && next === 124) {
- return this.finishOp(types.braceBarL, 2);
- } else if (this.state.inType && (code === 62 || code === 60)) {
- return this.finishOp(types.relational, 1);
- } else if (isIteratorStart(code, next)) {
- this.state.isIterator = true;
- return super.readWord();
- } else {
- return super.getTokenFromCode(code);
- }
- }
-
- toAssignable(node, isBinding, contextDescription) {
- if (node.type === "TypeCastExpression") {
- return super.toAssignable(this.typeCastToParameter(node), isBinding, contextDescription);
- } else {
- return super.toAssignable(node, isBinding, contextDescription);
- }
- }
-
- toAssignableList(exprList, isBinding, contextDescription) {
- for (let i = 0; i < exprList.length; i++) {
- const expr = exprList[i];
-
- if (expr && expr.type === "TypeCastExpression") {
- exprList[i] = this.typeCastToParameter(expr);
- }
- }
-
- return super.toAssignableList(exprList, isBinding, contextDescription);
- }
-
- toReferencedList(exprList, isParenthesizedExpr) {
- for (let i = 0; i < exprList.length; i++) {
- const expr = exprList[i];
-
- if (expr && expr.type === "TypeCastExpression" && (!expr.extra || !expr.extra.parenthesized) && (exprList.length > 1 || !isParenthesizedExpr)) {
- this.raise(expr.typeAnnotation.start, "The type cast expression is expected to be wrapped with parenthesis");
- }
- }
-
- return exprList;
- }
-
- checkLVal(expr, bindingType = BIND_NONE, checkClashes, contextDescription) {
- if (expr.type !== "TypeCastExpression") {
- return super.checkLVal(expr, bindingType, checkClashes, contextDescription);
- }
- }
-
- parseClassProperty(node) {
- if (this.match(types.colon)) {
- node.typeAnnotation = this.flowParseTypeAnnotation();
- }
-
- return super.parseClassProperty(node);
- }
-
- parseClassPrivateProperty(node) {
- if (this.match(types.colon)) {
- node.typeAnnotation = this.flowParseTypeAnnotation();
- }
-
- return super.parseClassPrivateProperty(node);
- }
-
- isClassMethod() {
- return this.isRelational("<") || super.isClassMethod();
- }
-
- isClassProperty() {
- return this.match(types.colon) || super.isClassProperty();
- }
-
- isNonstaticConstructor(method) {
- return !this.match(types.colon) && super.isNonstaticConstructor(method);
- }
-
- pushClassMethod(classBody, method, isGenerator, isAsync, isConstructor, allowsDirectSuper) {
- if (method.variance) {
- this.unexpected(method.variance.start);
- }
-
- delete method.variance;
-
- if (this.isRelational("<")) {
- method.typeParameters = this.flowParseTypeParameterDeclaration();
- }
-
- super.pushClassMethod(classBody, method, isGenerator, isAsync, isConstructor, allowsDirectSuper);
- }
-
- pushClassPrivateMethod(classBody, method, isGenerator, isAsync) {
- if (method.variance) {
- this.unexpected(method.variance.start);
- }
-
- delete method.variance;
-
- if (this.isRelational("<")) {
- method.typeParameters = this.flowParseTypeParameterDeclaration();
- }
-
- super.pushClassPrivateMethod(classBody, method, isGenerator, isAsync);
- }
-
- parseClassSuper(node) {
- super.parseClassSuper(node);
-
- if (node.superClass && this.isRelational("<")) {
- node.superTypeParameters = this.flowParseTypeParameterInstantiation();
- }
-
- if (this.isContextual("implements")) {
- this.next();
- const implemented = node.implements = [];
-
- do {
- const node = this.startNode();
- node.id = this.flowParseRestrictedIdentifier(true);
-
- if (this.isRelational("<")) {
- node.typeParameters = this.flowParseTypeParameterInstantiation();
- } else {
- node.typeParameters = null;
- }
-
- implemented.push(this.finishNode(node, "ClassImplements"));
- } while (this.eat(types.comma));
- }
- }
-
- parsePropertyName(node) {
- const variance = this.flowParseVariance();
- const key = super.parsePropertyName(node);
- node.variance = variance;
- return key;
- }
-
- parseObjPropValue(prop, startPos, startLoc, isGenerator, isAsync, isPattern, refShorthandDefaultPos, containsEsc) {
- if (prop.variance) {
- this.unexpected(prop.variance.start);
- }
-
- delete prop.variance;
- let typeParameters;
-
- if (this.isRelational("<")) {
- typeParameters = this.flowParseTypeParameterDeclaration();
- if (!this.match(types.parenL)) this.unexpected();
- }
-
- super.parseObjPropValue(prop, startPos, startLoc, isGenerator, isAsync, isPattern, refShorthandDefaultPos, containsEsc);
-
- if (typeParameters) {
- (prop.value || prop).typeParameters = typeParameters;
- }
- }
-
- parseAssignableListItemTypes(param) {
- if (this.eat(types.question)) {
- if (param.type !== "Identifier") {
- throw this.raise(param.start, "A binding pattern parameter cannot be optional in an implementation signature.");
- }
-
- param.optional = true;
- }
-
- if (this.match(types.colon)) {
- param.typeAnnotation = this.flowParseTypeAnnotation();
- }
-
- this.resetEndLocation(param);
- return param;
- }
-
- parseMaybeDefault(startPos, startLoc, left) {
- const node = super.parseMaybeDefault(startPos, startLoc, left);
-
- if (node.type === "AssignmentPattern" && node.typeAnnotation && node.right.start < node.typeAnnotation.start) {
- this.raise(node.typeAnnotation.start, "Type annotations must come before default assignments, " + "e.g. instead of `age = 25: number` use `age: number = 25`");
- }
-
- return node;
- }
-
- shouldParseDefaultImport(node) {
- if (!hasTypeImportKind(node)) {
- return super.shouldParseDefaultImport(node);
- }
-
- return isMaybeDefaultImport(this.state);
- }
-
- parseImportSpecifierLocal(node, specifier, type, contextDescription) {
- specifier.local = hasTypeImportKind(node) ? this.flowParseRestrictedIdentifier(true) : this.parseIdentifier();
- this.checkLVal(specifier.local, BIND_LEXICAL, undefined, contextDescription);
- node.specifiers.push(this.finishNode(specifier, type));
- }
-
- maybeParseDefaultImportSpecifier(node) {
- node.importKind = "value";
- let kind = null;
-
- if (this.match(types._typeof)) {
- kind = "typeof";
- } else if (this.isContextual("type")) {
- kind = "type";
- }
-
- if (kind) {
- const lh = this.lookahead();
-
- if (kind === "type" && lh.type === types.star) {
- this.unexpected(lh.start);
- }
-
- if (isMaybeDefaultImport(lh) || lh.type === types.braceL || lh.type === types.star) {
- this.next();
- node.importKind = kind;
- }
- }
-
- return super.maybeParseDefaultImportSpecifier(node);
- }
-
- parseImportSpecifier(node) {
- const specifier = this.startNode();
- const firstIdentLoc = this.state.start;
- const firstIdent = this.parseIdentifier(true);
- let specifierTypeKind = null;
-
- if (firstIdent.name === "type") {
- specifierTypeKind = "type";
- } else if (firstIdent.name === "typeof") {
- specifierTypeKind = "typeof";
- }
-
- let isBinding = false;
-
- if (this.isContextual("as") && !this.isLookaheadContextual("as")) {
- const as_ident = this.parseIdentifier(true);
-
- if (specifierTypeKind !== null && !this.match(types.name) && !this.state.type.keyword) {
- specifier.imported = as_ident;
- specifier.importKind = specifierTypeKind;
- specifier.local = as_ident.__clone();
- } else {
- specifier.imported = firstIdent;
- specifier.importKind = null;
- specifier.local = this.parseIdentifier();
- }
- } else if (specifierTypeKind !== null && (this.match(types.name) || this.state.type.keyword)) {
- specifier.imported = this.parseIdentifier(true);
- specifier.importKind = specifierTypeKind;
-
- if (this.eatContextual("as")) {
- specifier.local = this.parseIdentifier();
- } else {
- isBinding = true;
- specifier.local = specifier.imported.__clone();
- }
- } else {
- isBinding = true;
- specifier.imported = firstIdent;
- specifier.importKind = null;
- specifier.local = specifier.imported.__clone();
- }
-
- const nodeIsTypeImport = hasTypeImportKind(node);
- const specifierIsTypeImport = hasTypeImportKind(specifier);
-
- if (nodeIsTypeImport && specifierIsTypeImport) {
- this.raise(firstIdentLoc, "The `type` and `typeof` keywords on named imports can only be used on regular " + "`import` statements. It cannot be used with `import type` or `import typeof` statements");
- }
-
- if (nodeIsTypeImport || specifierIsTypeImport) {
- this.checkReservedType(specifier.local.name, specifier.local.start);
- }
-
- if (isBinding && !nodeIsTypeImport && !specifierIsTypeImport) {
- this.checkReservedWord(specifier.local.name, specifier.start, true, true);
- }
-
- this.checkLVal(specifier.local, BIND_LEXICAL, undefined, "import specifier");
- node.specifiers.push(this.finishNode(specifier, "ImportSpecifier"));
- }
-
- parseFunctionParams(node, allowModifiers) {
- const kind = node.kind;
-
- if (kind !== "get" && kind !== "set" && this.isRelational("<")) {
- node.typeParameters = this.flowParseTypeParameterDeclaration();
- }
-
- super.parseFunctionParams(node, allowModifiers);
- }
-
- parseVarId(decl, kind) {
- super.parseVarId(decl, kind);
-
- if (this.match(types.colon)) {
- decl.id.typeAnnotation = this.flowParseTypeAnnotation();
- this.resetEndLocation(decl.id);
- }
- }
-
- parseAsyncArrowFromCallExpression(node, call) {
- if (this.match(types.colon)) {
- const oldNoAnonFunctionType = this.state.noAnonFunctionType;
- this.state.noAnonFunctionType = true;
- node.returnType = this.flowParseTypeAnnotation();
- this.state.noAnonFunctionType = oldNoAnonFunctionType;
- }
-
- return super.parseAsyncArrowFromCallExpression(node, call);
- }
-
- shouldParseAsyncArrow() {
- return this.match(types.colon) || super.shouldParseAsyncArrow();
- }
-
- parseMaybeAssign(noIn, refShorthandDefaultPos, afterLeftParse, refNeedsArrowPos) {
- let jsxError = null;
-
- if (this.hasPlugin("jsx") && (this.match(types.jsxTagStart) || this.isRelational("<"))) {
- const state = this.state.clone();
-
- try {
- return super.parseMaybeAssign(noIn, refShorthandDefaultPos, afterLeftParse, refNeedsArrowPos);
- } catch (err) {
- if (err instanceof SyntaxError) {
- this.state = state;
- const cLength = this.state.context.length;
-
- if (this.state.context[cLength - 1] === types$1.j_oTag) {
- this.state.context.length -= 2;
- }
-
- jsxError = err;
- } else {
- throw err;
- }
- }
- }
-
- if (jsxError != null || this.isRelational("<")) {
- let arrowExpression;
- let typeParameters;
-
- try {
- typeParameters = this.flowParseTypeParameterDeclaration();
- arrowExpression = this.forwardNoArrowParamsConversionAt(typeParameters, () => super.parseMaybeAssign(noIn, refShorthandDefaultPos, afterLeftParse, refNeedsArrowPos));
- arrowExpression.typeParameters = typeParameters;
- this.resetStartLocationFromNode(arrowExpression, typeParameters);
- } catch (err) {
- throw jsxError || err;
- }
-
- if (arrowExpression.type === "ArrowFunctionExpression") {
- return arrowExpression;
- } else if (jsxError != null) {
- throw jsxError;
- } else {
- this.raise(typeParameters.start, "Expected an arrow function after this type parameter declaration");
- }
- }
-
- return super.parseMaybeAssign(noIn, refShorthandDefaultPos, afterLeftParse, refNeedsArrowPos);
- }
-
- parseArrow(node) {
- if (this.match(types.colon)) {
- const state = this.state.clone();
-
- try {
- const oldNoAnonFunctionType = this.state.noAnonFunctionType;
- this.state.noAnonFunctionType = true;
- const typeNode = this.startNode();
- [typeNode.typeAnnotation, node.predicate] = this.flowParseTypeAndPredicateInitialiser();
- this.state.noAnonFunctionType = oldNoAnonFunctionType;
- if (this.canInsertSemicolon()) this.unexpected();
- if (!this.match(types.arrow)) this.unexpected();
- node.returnType = typeNode.typeAnnotation ? this.finishNode(typeNode, "TypeAnnotation") : null;
- } catch (err) {
- if (err instanceof SyntaxError) {
- this.state = state;
- } else {
- throw err;
- }
- }
- }
-
- return super.parseArrow(node);
- }
-
- shouldParseArrow() {
- return this.match(types.colon) || super.shouldParseArrow();
- }
-
- setArrowFunctionParameters(node, params) {
- if (this.state.noArrowParamsConversionAt.indexOf(node.start) !== -1) {
- node.params = params;
- } else {
- super.setArrowFunctionParameters(node, params);
- }
- }
-
- checkParams(node, allowDuplicates, isArrowFunction) {
- if (isArrowFunction && this.state.noArrowParamsConversionAt.indexOf(node.start) !== -1) {
- return;
- }
-
- return super.checkParams(node, allowDuplicates, isArrowFunction);
- }
-
- parseParenAndDistinguishExpression(canBeArrow) {
- return super.parseParenAndDistinguishExpression(canBeArrow && this.state.noArrowAt.indexOf(this.state.start) === -1);
- }
-
- parseSubscripts(base, startPos, startLoc, noCalls) {
- if (base.type === "Identifier" && base.name === "async" && this.state.noArrowAt.indexOf(startPos) !== -1) {
- this.next();
- const node = this.startNodeAt(startPos, startLoc);
- node.callee = base;
- node.arguments = this.parseCallExpressionArguments(types.parenR, false);
- base = this.finishNode(node, "CallExpression");
- } else if (base.type === "Identifier" && base.name === "async" && this.isRelational("<")) {
- const state = this.state.clone();
- let error;
-
- try {
- const node = this.parseAsyncArrowWithTypeParameters(startPos, startLoc);
- if (node) return node;
- } catch (e) {
- error = e;
- }
-
- this.state = state;
-
- try {
- return super.parseSubscripts(base, startPos, startLoc, noCalls);
- } catch (e) {
- throw error || e;
- }
- }
-
- return super.parseSubscripts(base, startPos, startLoc, noCalls);
- }
-
- parseSubscript(base, startPos, startLoc, noCalls, subscriptState, maybeAsyncArrow) {
- if (this.match(types.questionDot) && this.isLookaheadRelational("<")) {
- this.expectPlugin("optionalChaining");
- subscriptState.optionalChainMember = true;
-
- if (noCalls) {
- subscriptState.stop = true;
- return base;
- }
-
- this.next();
- const node = this.startNodeAt(startPos, startLoc);
- node.callee = base;
- node.typeArguments = this.flowParseTypeParameterInstantiation();
- this.expect(types.parenL);
- node.arguments = this.parseCallExpressionArguments(types.parenR, false);
- node.optional = true;
- return this.finishNode(node, "OptionalCallExpression");
- } else if (!noCalls && this.shouldParseTypes() && this.isRelational("<")) {
- const node = this.startNodeAt(startPos, startLoc);
- node.callee = base;
- const state = this.state.clone();
-
- try {
- node.typeArguments = this.flowParseTypeParameterInstantiationCallOrNew();
- this.expect(types.parenL);
- node.arguments = this.parseCallExpressionArguments(types.parenR, false);
-
- if (subscriptState.optionalChainMember) {
- node.optional = false;
- return this.finishNode(node, "OptionalCallExpression");
- }
-
- return this.finishNode(node, "CallExpression");
- } catch (e) {
- if (e instanceof SyntaxError) {
- this.state = state;
- } else {
- throw e;
- }
- }
- }
-
- return super.parseSubscript(base, startPos, startLoc, noCalls, subscriptState, maybeAsyncArrow);
- }
-
- parseNewArguments(node) {
- let targs = null;
-
- if (this.shouldParseTypes() && this.isRelational("<")) {
- const state = this.state.clone();
-
- try {
- targs = this.flowParseTypeParameterInstantiationCallOrNew();
- } catch (e) {
- if (e instanceof SyntaxError) {
- this.state = state;
- } else {
- throw e;
- }
- }
- }
-
- node.typeArguments = targs;
- super.parseNewArguments(node);
- }
-
- parseAsyncArrowWithTypeParameters(startPos, startLoc) {
- const node = this.startNodeAt(startPos, startLoc);
- this.parseFunctionParams(node);
- if (!this.parseArrow(node)) return;
- return this.parseArrowExpression(node, undefined, true);
- }
-
- readToken_mult_modulo(code) {
- const next = this.input.charCodeAt(this.state.pos + 1);
-
- if (code === 42 && next === 47 && this.state.hasFlowComment) {
- this.state.hasFlowComment = false;
- this.state.pos += 2;
- this.nextToken();
- return;
- }
-
- super.readToken_mult_modulo(code);
- }
-
- readToken_pipe_amp(code) {
- const next = this.input.charCodeAt(this.state.pos + 1);
-
- if (code === 124 && next === 125) {
- this.finishOp(types.braceBarR, 2);
- return;
- }
-
- super.readToken_pipe_amp(code);
- }
-
- parseTopLevel(file, program) {
- const fileNode = super.parseTopLevel(file, program);
-
- if (this.state.hasFlowComment) {
- this.unexpected(null, "Unterminated flow-comment");
- }
-
- return fileNode;
- }
-
- skipBlockComment() {
- if (this.hasPlugin("flowComments") && this.skipFlowComment()) {
- if (this.state.hasFlowComment) {
- this.unexpected(null, "Cannot have a flow comment inside another flow comment");
- }
-
- this.hasFlowCommentCompletion();
- this.state.pos += this.skipFlowComment();
- this.state.hasFlowComment = true;
- return;
- }
-
- if (this.state.hasFlowComment) {
- const end = this.input.indexOf("*-/", this.state.pos += 2);
- if (end === -1) this.raise(this.state.pos - 2, "Unterminated comment");
- this.state.pos = end + 3;
- return;
- }
-
- super.skipBlockComment();
- }
-
- skipFlowComment() {
- const {
- pos
- } = this.state;
- let shiftToFirstNonWhiteSpace = 2;
-
- while ([32, 9].includes(this.input.charCodeAt(pos + shiftToFirstNonWhiteSpace))) {
- shiftToFirstNonWhiteSpace++;
- }
-
- const ch2 = this.input.charCodeAt(shiftToFirstNonWhiteSpace + pos);
- const ch3 = this.input.charCodeAt(shiftToFirstNonWhiteSpace + pos + 1);
-
- if (ch2 === 58 && ch3 === 58) {
- return shiftToFirstNonWhiteSpace + 2;
- }
-
- if (this.input.slice(shiftToFirstNonWhiteSpace + pos, shiftToFirstNonWhiteSpace + pos + 12) === "flow-include") {
- return shiftToFirstNonWhiteSpace + 12;
- }
-
- if (ch2 === 58 && ch3 !== 58) {
- return shiftToFirstNonWhiteSpace;
- }
-
- return false;
- }
-
- hasFlowCommentCompletion() {
- const end = this.input.indexOf("*/", this.state.pos);
-
- if (end === -1) {
- this.raise(this.state.pos, "Unterminated comment");
- }
- }
-
-});
-
-const entities = {
- quot: "\u0022",
- amp: "&",
- apos: "\u0027",
- lt: "<",
- gt: ">",
- nbsp: "\u00A0",
- iexcl: "\u00A1",
- cent: "\u00A2",
- pound: "\u00A3",
- curren: "\u00A4",
- yen: "\u00A5",
- brvbar: "\u00A6",
- sect: "\u00A7",
- uml: "\u00A8",
- copy: "\u00A9",
- ordf: "\u00AA",
- laquo: "\u00AB",
- not: "\u00AC",
- shy: "\u00AD",
- reg: "\u00AE",
- macr: "\u00AF",
- deg: "\u00B0",
- plusmn: "\u00B1",
- sup2: "\u00B2",
- sup3: "\u00B3",
- acute: "\u00B4",
- micro: "\u00B5",
- para: "\u00B6",
- middot: "\u00B7",
- cedil: "\u00B8",
- sup1: "\u00B9",
- ordm: "\u00BA",
- raquo: "\u00BB",
- frac14: "\u00BC",
- frac12: "\u00BD",
- frac34: "\u00BE",
- iquest: "\u00BF",
- Agrave: "\u00C0",
- Aacute: "\u00C1",
- Acirc: "\u00C2",
- Atilde: "\u00C3",
- Auml: "\u00C4",
- Aring: "\u00C5",
- AElig: "\u00C6",
- Ccedil: "\u00C7",
- Egrave: "\u00C8",
- Eacute: "\u00C9",
- Ecirc: "\u00CA",
- Euml: "\u00CB",
- Igrave: "\u00CC",
- Iacute: "\u00CD",
- Icirc: "\u00CE",
- Iuml: "\u00CF",
- ETH: "\u00D0",
- Ntilde: "\u00D1",
- Ograve: "\u00D2",
- Oacute: "\u00D3",
- Ocirc: "\u00D4",
- Otilde: "\u00D5",
- Ouml: "\u00D6",
- times: "\u00D7",
- Oslash: "\u00D8",
- Ugrave: "\u00D9",
- Uacute: "\u00DA",
- Ucirc: "\u00DB",
- Uuml: "\u00DC",
- Yacute: "\u00DD",
- THORN: "\u00DE",
- szlig: "\u00DF",
- agrave: "\u00E0",
- aacute: "\u00E1",
- acirc: "\u00E2",
- atilde: "\u00E3",
- auml: "\u00E4",
- aring: "\u00E5",
- aelig: "\u00E6",
- ccedil: "\u00E7",
- egrave: "\u00E8",
- eacute: "\u00E9",
- ecirc: "\u00EA",
- euml: "\u00EB",
- igrave: "\u00EC",
- iacute: "\u00ED",
- icirc: "\u00EE",
- iuml: "\u00EF",
- eth: "\u00F0",
- ntilde: "\u00F1",
- ograve: "\u00F2",
- oacute: "\u00F3",
- ocirc: "\u00F4",
- otilde: "\u00F5",
- ouml: "\u00F6",
- divide: "\u00F7",
- oslash: "\u00F8",
- ugrave: "\u00F9",
- uacute: "\u00FA",
- ucirc: "\u00FB",
- uuml: "\u00FC",
- yacute: "\u00FD",
- thorn: "\u00FE",
- yuml: "\u00FF",
- OElig: "\u0152",
- oelig: "\u0153",
- Scaron: "\u0160",
- scaron: "\u0161",
- Yuml: "\u0178",
- fnof: "\u0192",
- circ: "\u02C6",
- tilde: "\u02DC",
- Alpha: "\u0391",
- Beta: "\u0392",
- Gamma: "\u0393",
- Delta: "\u0394",
- Epsilon: "\u0395",
- Zeta: "\u0396",
- Eta: "\u0397",
- Theta: "\u0398",
- Iota: "\u0399",
- Kappa: "\u039A",
- Lambda: "\u039B",
- Mu: "\u039C",
- Nu: "\u039D",
- Xi: "\u039E",
- Omicron: "\u039F",
- Pi: "\u03A0",
- Rho: "\u03A1",
- Sigma: "\u03A3",
- Tau: "\u03A4",
- Upsilon: "\u03A5",
- Phi: "\u03A6",
- Chi: "\u03A7",
- Psi: "\u03A8",
- Omega: "\u03A9",
- alpha: "\u03B1",
- beta: "\u03B2",
- gamma: "\u03B3",
- delta: "\u03B4",
- epsilon: "\u03B5",
- zeta: "\u03B6",
- eta: "\u03B7",
- theta: "\u03B8",
- iota: "\u03B9",
- kappa: "\u03BA",
- lambda: "\u03BB",
- mu: "\u03BC",
- nu: "\u03BD",
- xi: "\u03BE",
- omicron: "\u03BF",
- pi: "\u03C0",
- rho: "\u03C1",
- sigmaf: "\u03C2",
- sigma: "\u03C3",
- tau: "\u03C4",
- upsilon: "\u03C5",
- phi: "\u03C6",
- chi: "\u03C7",
- psi: "\u03C8",
- omega: "\u03C9",
- thetasym: "\u03D1",
- upsih: "\u03D2",
- piv: "\u03D6",
- ensp: "\u2002",
- emsp: "\u2003",
- thinsp: "\u2009",
- zwnj: "\u200C",
- zwj: "\u200D",
- lrm: "\u200E",
- rlm: "\u200F",
- ndash: "\u2013",
- mdash: "\u2014",
- lsquo: "\u2018",
- rsquo: "\u2019",
- sbquo: "\u201A",
- ldquo: "\u201C",
- rdquo: "\u201D",
- bdquo: "\u201E",
- dagger: "\u2020",
- Dagger: "\u2021",
- bull: "\u2022",
- hellip: "\u2026",
- permil: "\u2030",
- prime: "\u2032",
- Prime: "\u2033",
- lsaquo: "\u2039",
- rsaquo: "\u203A",
- oline: "\u203E",
- frasl: "\u2044",
- euro: "\u20AC",
- image: "\u2111",
- weierp: "\u2118",
- real: "\u211C",
- trade: "\u2122",
- alefsym: "\u2135",
- larr: "\u2190",
- uarr: "\u2191",
- rarr: "\u2192",
- darr: "\u2193",
- harr: "\u2194",
- crarr: "\u21B5",
- lArr: "\u21D0",
- uArr: "\u21D1",
- rArr: "\u21D2",
- dArr: "\u21D3",
- hArr: "\u21D4",
- forall: "\u2200",
- part: "\u2202",
- exist: "\u2203",
- empty: "\u2205",
- nabla: "\u2207",
- isin: "\u2208",
- notin: "\u2209",
- ni: "\u220B",
- prod: "\u220F",
- sum: "\u2211",
- minus: "\u2212",
- lowast: "\u2217",
- radic: "\u221A",
- prop: "\u221D",
- infin: "\u221E",
- ang: "\u2220",
- and: "\u2227",
- or: "\u2228",
- cap: "\u2229",
- cup: "\u222A",
- int: "\u222B",
- there4: "\u2234",
- sim: "\u223C",
- cong: "\u2245",
- asymp: "\u2248",
- ne: "\u2260",
- equiv: "\u2261",
- le: "\u2264",
- ge: "\u2265",
- sub: "\u2282",
- sup: "\u2283",
- nsub: "\u2284",
- sube: "\u2286",
- supe: "\u2287",
- oplus: "\u2295",
- otimes: "\u2297",
- perp: "\u22A5",
- sdot: "\u22C5",
- lceil: "\u2308",
- rceil: "\u2309",
- lfloor: "\u230A",
- rfloor: "\u230B",
- lang: "\u2329",
- rang: "\u232A",
- loz: "\u25CA",
- spades: "\u2660",
- clubs: "\u2663",
- hearts: "\u2665",
- diams: "\u2666"
-};
-
-const HEX_NUMBER = /^[\da-fA-F]+$/;
-const DECIMAL_NUMBER = /^\d+$/;
-types$1.j_oTag = new TokContext("...", true, true);
-types.jsxName = new TokenType("jsxName");
-types.jsxText = new TokenType("jsxText", {
- beforeExpr: true
-});
-types.jsxTagStart = new TokenType("jsxTagStart", {
- startsExpr: true
-});
-types.jsxTagEnd = new TokenType("jsxTagEnd");
-
-types.jsxTagStart.updateContext = function () {
- this.state.context.push(types$1.j_expr);
- this.state.context.push(types$1.j_oTag);
- this.state.exprAllowed = false;
-};
-
-types.jsxTagEnd.updateContext = function (prevType) {
- const out = this.state.context.pop();
-
- if (out === types$1.j_oTag && prevType === types.slash || out === types$1.j_cTag) {
- this.state.context.pop();
- this.state.exprAllowed = this.curContext() === types$1.j_expr;
- } else {
- this.state.exprAllowed = true;
- }
-};
-
-function isFragment(object) {
- return object ? object.type === "JSXOpeningFragment" || object.type === "JSXClosingFragment" : false;
-}
-
-function getQualifiedJSXName(object) {
- if (object.type === "JSXIdentifier") {
- return object.name;
- }
-
- if (object.type === "JSXNamespacedName") {
- return object.namespace.name + ":" + object.name.name;
- }
-
- if (object.type === "JSXMemberExpression") {
- return getQualifiedJSXName(object.object) + "." + getQualifiedJSXName(object.property);
- }
-
- throw new Error("Node had unexpected type: " + object.type);
-}
-
-var jsx = (superClass => class extends superClass {
- jsxReadToken() {
- let out = "";
- let chunkStart = this.state.pos;
-
- for (;;) {
- if (this.state.pos >= this.length) {
- this.raise(this.state.start, "Unterminated JSX contents");
- }
-
- const ch = this.input.charCodeAt(this.state.pos);
-
- switch (ch) {
- case 60:
- case 123:
- if (this.state.pos === this.state.start) {
- if (ch === 60 && this.state.exprAllowed) {
- ++this.state.pos;
- return this.finishToken(types.jsxTagStart);
- }
-
- return super.getTokenFromCode(ch);
- }
-
- out += this.input.slice(chunkStart, this.state.pos);
- return this.finishToken(types.jsxText, out);
-
- case 38:
- out += this.input.slice(chunkStart, this.state.pos);
- out += this.jsxReadEntity();
- chunkStart = this.state.pos;
- break;
-
- default:
- if (isNewLine(ch)) {
- out += this.input.slice(chunkStart, this.state.pos);
- out += this.jsxReadNewLine(true);
- chunkStart = this.state.pos;
- } else {
- ++this.state.pos;
- }
-
- }
- }
- }
-
- jsxReadNewLine(normalizeCRLF) {
- const ch = this.input.charCodeAt(this.state.pos);
- let out;
- ++this.state.pos;
-
- if (ch === 13 && this.input.charCodeAt(this.state.pos) === 10) {
- ++this.state.pos;
- out = normalizeCRLF ? "\n" : "\r\n";
- } else {
- out = String.fromCharCode(ch);
- }
-
- ++this.state.curLine;
- this.state.lineStart = this.state.pos;
- return out;
- }
-
- jsxReadString(quote) {
- let out = "";
- let chunkStart = ++this.state.pos;
-
- for (;;) {
- if (this.state.pos >= this.length) {
- this.raise(this.state.start, "Unterminated string constant");
- }
-
- const ch = this.input.charCodeAt(this.state.pos);
- if (ch === quote) break;
-
- if (ch === 38) {
- out += this.input.slice(chunkStart, this.state.pos);
- out += this.jsxReadEntity();
- chunkStart = this.state.pos;
- } else if (isNewLine(ch)) {
- out += this.input.slice(chunkStart, this.state.pos);
- out += this.jsxReadNewLine(false);
- chunkStart = this.state.pos;
- } else {
- ++this.state.pos;
- }
- }
-
- out += this.input.slice(chunkStart, this.state.pos++);
- return this.finishToken(types.string, out);
- }
-
- jsxReadEntity() {
- let str = "";
- let count = 0;
- let entity;
- let ch = this.input[this.state.pos];
- const startPos = ++this.state.pos;
-
- while (this.state.pos < this.length && count++ < 10) {
- ch = this.input[this.state.pos++];
-
- if (ch === ";") {
- if (str[0] === "#") {
- if (str[1] === "x") {
- str = str.substr(2);
-
- if (HEX_NUMBER.test(str)) {
- entity = String.fromCodePoint(parseInt(str, 16));
- }
- } else {
- str = str.substr(1);
-
- if (DECIMAL_NUMBER.test(str)) {
- entity = String.fromCodePoint(parseInt(str, 10));
- }
- }
- } else {
- entity = entities[str];
- }
-
- break;
- }
-
- str += ch;
- }
-
- if (!entity) {
- this.state.pos = startPos;
- return "&";
- }
-
- return entity;
- }
-
- jsxReadWord() {
- let ch;
- const start = this.state.pos;
-
- do {
- ch = this.input.charCodeAt(++this.state.pos);
- } while (isIdentifierChar(ch) || ch === 45);
-
- return this.finishToken(types.jsxName, this.input.slice(start, this.state.pos));
- }
-
- jsxParseIdentifier() {
- const node = this.startNode();
-
- if (this.match(types.jsxName)) {
- node.name = this.state.value;
- } else if (this.state.type.keyword) {
- node.name = this.state.type.keyword;
- } else {
- this.unexpected();
- }
-
- this.next();
- return this.finishNode(node, "JSXIdentifier");
- }
-
- jsxParseNamespacedName() {
- const startPos = this.state.start;
- const startLoc = this.state.startLoc;
- const name = this.jsxParseIdentifier();
- if (!this.eat(types.colon)) return name;
- const node = this.startNodeAt(startPos, startLoc);
- node.namespace = name;
- node.name = this.jsxParseIdentifier();
- return this.finishNode(node, "JSXNamespacedName");
- }
-
- jsxParseElementName() {
- const startPos = this.state.start;
- const startLoc = this.state.startLoc;
- let node = this.jsxParseNamespacedName();
-
- while (this.eat(types.dot)) {
- const newNode = this.startNodeAt(startPos, startLoc);
- newNode.object = node;
- newNode.property = this.jsxParseIdentifier();
- node = this.finishNode(newNode, "JSXMemberExpression");
- }
-
- return node;
- }
-
- jsxParseAttributeValue() {
- let node;
-
- switch (this.state.type) {
- case types.braceL:
- node = this.startNode();
- this.next();
- node = this.jsxParseExpressionContainer(node);
-
- if (node.expression.type === "JSXEmptyExpression") {
- throw this.raise(node.start, "JSX attributes must only be assigned a non-empty expression");
- } else {
- return node;
- }
-
- case types.jsxTagStart:
- case types.string:
- return this.parseExprAtom();
-
- default:
- throw this.raise(this.state.start, "JSX value should be either an expression or a quoted JSX text");
- }
- }
-
- jsxParseEmptyExpression() {
- const node = this.startNodeAt(this.state.lastTokEnd, this.state.lastTokEndLoc);
- return this.finishNodeAt(node, "JSXEmptyExpression", this.state.start, this.state.startLoc);
- }
-
- jsxParseSpreadChild(node) {
- this.next();
- node.expression = this.parseExpression();
- this.expect(types.braceR);
- return this.finishNode(node, "JSXSpreadChild");
- }
-
- jsxParseExpressionContainer(node) {
- if (this.match(types.braceR)) {
- node.expression = this.jsxParseEmptyExpression();
- } else {
- node.expression = this.parseExpression();
- }
-
- this.expect(types.braceR);
- return this.finishNode(node, "JSXExpressionContainer");
- }
-
- jsxParseAttribute() {
- const node = this.startNode();
-
- if (this.eat(types.braceL)) {
- this.expect(types.ellipsis);
- node.argument = this.parseMaybeAssign();
- this.expect(types.braceR);
- return this.finishNode(node, "JSXSpreadAttribute");
- }
-
- node.name = this.jsxParseNamespacedName();
- node.value = this.eat(types.eq) ? this.jsxParseAttributeValue() : null;
- return this.finishNode(node, "JSXAttribute");
- }
-
- jsxParseOpeningElementAt(startPos, startLoc) {
- const node = this.startNodeAt(startPos, startLoc);
-
- if (this.match(types.jsxTagEnd)) {
- this.expect(types.jsxTagEnd);
- return this.finishNode(node, "JSXOpeningFragment");
- }
-
- node.name = this.jsxParseElementName();
- return this.jsxParseOpeningElementAfterName(node);
- }
-
- jsxParseOpeningElementAfterName(node) {
- const attributes = [];
-
- while (!this.match(types.slash) && !this.match(types.jsxTagEnd)) {
- attributes.push(this.jsxParseAttribute());
- }
-
- node.attributes = attributes;
- node.selfClosing = this.eat(types.slash);
- this.expect(types.jsxTagEnd);
- return this.finishNode(node, "JSXOpeningElement");
- }
-
- jsxParseClosingElementAt(startPos, startLoc) {
- const node = this.startNodeAt(startPos, startLoc);
-
- if (this.match(types.jsxTagEnd)) {
- this.expect(types.jsxTagEnd);
- return this.finishNode(node, "JSXClosingFragment");
- }
-
- node.name = this.jsxParseElementName();
- this.expect(types.jsxTagEnd);
- return this.finishNode(node, "JSXClosingElement");
- }
-
- jsxParseElementAt(startPos, startLoc) {
- const node = this.startNodeAt(startPos, startLoc);
- const children = [];
- const openingElement = this.jsxParseOpeningElementAt(startPos, startLoc);
- let closingElement = null;
-
- if (!openingElement.selfClosing) {
- contents: for (;;) {
- switch (this.state.type) {
- case types.jsxTagStart:
- startPos = this.state.start;
- startLoc = this.state.startLoc;
- this.next();
-
- if (this.eat(types.slash)) {
- closingElement = this.jsxParseClosingElementAt(startPos, startLoc);
- break contents;
- }
-
- children.push(this.jsxParseElementAt(startPos, startLoc));
- break;
-
- case types.jsxText:
- children.push(this.parseExprAtom());
- break;
-
- case types.braceL:
- {
- const node = this.startNode();
- this.next();
-
- if (this.match(types.ellipsis)) {
- children.push(this.jsxParseSpreadChild(node));
- } else {
- children.push(this.jsxParseExpressionContainer(node));
- }
-
- break;
- }
-
- default:
- throw this.unexpected();
- }
- }
-
- if (isFragment(openingElement) && !isFragment(closingElement)) {
- this.raise(closingElement.start, "Expected corresponding JSX closing tag for <>");
- } else if (!isFragment(openingElement) && isFragment(closingElement)) {
- this.raise(closingElement.start, "Expected corresponding JSX closing tag for <" + getQualifiedJSXName(openingElement.name) + ">");
- } else if (!isFragment(openingElement) && !isFragment(closingElement)) {
- if (getQualifiedJSXName(closingElement.name) !== getQualifiedJSXName(openingElement.name)) {
- this.raise(closingElement.start, "Expected corresponding JSX closing tag for <" + getQualifiedJSXName(openingElement.name) + ">");
- }
- }
- }
-
- if (isFragment(openingElement)) {
- node.openingFragment = openingElement;
- node.closingFragment = closingElement;
- } else {
- node.openingElement = openingElement;
- node.closingElement = closingElement;
- }
-
- node.children = children;
-
- if (this.match(types.relational) && this.state.value === "<") {
- this.raise(this.state.start, "Adjacent JSX elements must be wrapped in an enclosing tag. " + "Did you want a JSX fragment <>...>?");
- }
-
- return isFragment(openingElement) ? this.finishNode(node, "JSXFragment") : this.finishNode(node, "JSXElement");
- }
-
- jsxParseElement() {
- const startPos = this.state.start;
- const startLoc = this.state.startLoc;
- this.next();
- return this.jsxParseElementAt(startPos, startLoc);
- }
-
- parseExprAtom(refShortHandDefaultPos) {
- if (this.match(types.jsxText)) {
- return this.parseLiteral(this.state.value, "JSXText");
- } else if (this.match(types.jsxTagStart)) {
- return this.jsxParseElement();
- } else if (this.isRelational("<") && this.input.charCodeAt(this.state.pos) !== 33) {
- this.finishToken(types.jsxTagStart);
- return this.jsxParseElement();
- } else {
- return super.parseExprAtom(refShortHandDefaultPos);
- }
- }
-
- getTokenFromCode(code) {
- if (this.state.inPropertyName) return super.getTokenFromCode(code);
- const context = this.curContext();
-
- if (context === types$1.j_expr) {
- return this.jsxReadToken();
- }
-
- if (context === types$1.j_oTag || context === types$1.j_cTag) {
- if (isIdentifierStart(code)) {
- return this.jsxReadWord();
- }
-
- if (code === 62) {
- ++this.state.pos;
- return this.finishToken(types.jsxTagEnd);
- }
-
- if ((code === 34 || code === 39) && context === types$1.j_oTag) {
- return this.jsxReadString(code);
- }
- }
-
- if (code === 60 && this.state.exprAllowed && this.input.charCodeAt(this.state.pos + 1) !== 33) {
- ++this.state.pos;
- return this.finishToken(types.jsxTagStart);
- }
-
- return super.getTokenFromCode(code);
- }
-
- updateContext(prevType) {
- if (this.match(types.braceL)) {
- const curContext = this.curContext();
-
- if (curContext === types$1.j_oTag) {
- this.state.context.push(types$1.braceExpression);
- } else if (curContext === types$1.j_expr) {
- this.state.context.push(types$1.templateQuasi);
- } else {
- super.updateContext(prevType);
- }
-
- this.state.exprAllowed = true;
- } else if (this.match(types.slash) && prevType === types.jsxTagStart) {
- this.state.context.length -= 2;
- this.state.context.push(types$1.j_cTag);
- this.state.exprAllowed = false;
- } else {
- return super.updateContext(prevType);
- }
- }
-
-});
-
-class Scope {
- constructor(flags) {
- this.var = [];
- this.lexical = [];
- this.functions = [];
- this.flags = flags;
- }
-
-}
-class ScopeHandler {
- constructor(raise, inModule) {
- this.scopeStack = [];
- this.undefinedExports = new Map();
- this.raise = raise;
- this.inModule = inModule;
- }
-
- get inFunction() {
- return (this.currentVarScope().flags & SCOPE_FUNCTION) > 0;
- }
-
- get inGenerator() {
- return (this.currentVarScope().flags & SCOPE_GENERATOR) > 0;
- }
-
- get inAsync() {
- return (this.currentVarScope().flags & SCOPE_ASYNC) > 0;
- }
-
- get allowSuper() {
- return (this.currentThisScope().flags & SCOPE_SUPER) > 0;
- }
-
- get allowDirectSuper() {
- return (this.currentThisScope().flags & SCOPE_DIRECT_SUPER) > 0;
- }
-
- get inNonArrowFunction() {
- return (this.currentThisScope().flags & SCOPE_FUNCTION) > 0;
- }
-
- get treatFunctionsAsVar() {
- return this.treatFunctionsAsVarInScope(this.currentScope());
- }
-
- createScope(flags) {
- return new Scope(flags);
- }
-
- enter(flags) {
- this.scopeStack.push(this.createScope(flags));
- }
-
- exit() {
- this.scopeStack.pop();
- }
-
- treatFunctionsAsVarInScope(scope) {
- return !!(scope.flags & SCOPE_FUNCTION || !this.inModule && scope.flags & SCOPE_PROGRAM);
- }
-
- declareName(name, bindingType, pos) {
- let scope = this.currentScope();
-
- if (bindingType & BIND_SCOPE_LEXICAL || bindingType & BIND_SCOPE_FUNCTION) {
- this.checkRedeclarationInScope(scope, name, bindingType, pos);
-
- if (bindingType & BIND_SCOPE_FUNCTION) {
- scope.functions.push(name);
- } else {
- scope.lexical.push(name);
- }
-
- if (bindingType & BIND_SCOPE_LEXICAL) {
- this.maybeExportDefined(scope, name);
- }
- } else if (bindingType & BIND_SCOPE_VAR) {
- for (let i = this.scopeStack.length - 1; i >= 0; --i) {
- scope = this.scopeStack[i];
- this.checkRedeclarationInScope(scope, name, bindingType, pos);
- scope.var.push(name);
- this.maybeExportDefined(scope, name);
- if (scope.flags & SCOPE_VAR) break;
- }
- }
-
- if (this.inModule && scope.flags & SCOPE_PROGRAM) {
- this.undefinedExports.delete(name);
- }
- }
-
- maybeExportDefined(scope, name) {
- if (this.inModule && scope.flags & SCOPE_PROGRAM) {
- this.undefinedExports.delete(name);
- }
- }
-
- checkRedeclarationInScope(scope, name, bindingType, pos) {
- if (this.isRedeclaredInScope(scope, name, bindingType)) {
- this.raise(pos, `Identifier '${name}' has already been declared`);
- }
- }
-
- isRedeclaredInScope(scope, name, bindingType) {
- if (!(bindingType & BIND_KIND_VALUE)) return false;
-
- if (bindingType & BIND_SCOPE_LEXICAL) {
- return scope.lexical.indexOf(name) > -1 || scope.functions.indexOf(name) > -1 || scope.var.indexOf(name) > -1;
- }
-
- if (bindingType & BIND_SCOPE_FUNCTION) {
- return scope.lexical.indexOf(name) > -1 || !this.treatFunctionsAsVarInScope(scope) && scope.var.indexOf(name) > -1;
- }
-
- return scope.lexical.indexOf(name) > -1 && !(scope.flags & SCOPE_SIMPLE_CATCH && scope.lexical[0] === name) || !this.treatFunctionsAsVarInScope(scope) && scope.functions.indexOf(name) > -1;
- }
-
- checkLocalExport(id) {
- if (this.scopeStack[0].lexical.indexOf(id.name) === -1 && this.scopeStack[0].var.indexOf(id.name) === -1 && this.scopeStack[0].functions.indexOf(id.name) === -1) {
- this.undefinedExports.set(id.name, id.start);
- }
- }
-
- currentScope() {
- return this.scopeStack[this.scopeStack.length - 1];
- }
-
- currentVarScope() {
- for (let i = this.scopeStack.length - 1;; i--) {
- const scope = this.scopeStack[i];
-
- if (scope.flags & SCOPE_VAR) {
- return scope;
- }
- }
- }
-
- currentThisScope() {
- for (let i = this.scopeStack.length - 1;; i--) {
- const scope = this.scopeStack[i];
-
- if ((scope.flags & SCOPE_VAR || scope.flags & SCOPE_CLASS) && !(scope.flags & SCOPE_ARROW)) {
- return scope;
- }
- }
- }
-
-}
-
-class TypeScriptScope extends Scope {
- constructor(...args) {
- super(...args);
- this.types = [];
- this.enums = [];
- this.constEnums = [];
- this.classes = [];
- this.exportOnlyBindings = [];
- }
-
-}
-
-class TypeScriptScopeHandler extends ScopeHandler {
- createScope(flags) {
- return new TypeScriptScope(flags);
- }
-
- declareName(name, bindingType, pos) {
- const scope = this.currentScope();
-
- if (bindingType & BIND_FLAGS_TS_EXPORT_ONLY) {
- this.maybeExportDefined(scope, name);
- scope.exportOnlyBindings.push(name);
- return;
- }
-
- super.declareName(...arguments);
-
- if (bindingType & BIND_KIND_TYPE) {
- if (!(bindingType & BIND_KIND_VALUE)) {
- this.checkRedeclarationInScope(scope, name, bindingType, pos);
- this.maybeExportDefined(scope, name);
- }
-
- scope.types.push(name);
- }
-
- if (bindingType & BIND_FLAGS_TS_ENUM) scope.enums.push(name);
- if (bindingType & BIND_FLAGS_TS_CONST_ENUM) scope.constEnums.push(name);
- if (bindingType & BIND_FLAGS_CLASS) scope.classes.push(name);
- }
-
- isRedeclaredInScope(scope, name, bindingType) {
- if (scope.enums.indexOf(name) > -1) {
- if (bindingType & BIND_FLAGS_TS_ENUM) {
- const isConst = !!(bindingType & BIND_FLAGS_TS_CONST_ENUM);
- const wasConst = scope.constEnums.indexOf(name) > -1;
- return isConst !== wasConst;
- }
-
- return true;
- }
-
- if (bindingType & BIND_FLAGS_CLASS && scope.classes.indexOf(name) > -1) {
- if (scope.lexical.indexOf(name) > -1) {
- return !!(bindingType & BIND_KIND_VALUE);
- } else {
- return false;
- }
- }
-
- if (bindingType & BIND_KIND_TYPE && scope.types.indexOf(name) > -1) {
- return true;
- }
-
- return super.isRedeclaredInScope(...arguments);
- }
-
- checkLocalExport(id) {
- if (this.scopeStack[0].types.indexOf(id.name) === -1 && this.scopeStack[0].exportOnlyBindings.indexOf(id.name) === -1) {
- super.checkLocalExport(id);
- }
- }
-
-}
-
-function nonNull(x) {
- if (x == null) {
- throw new Error(`Unexpected ${x} value.`);
- }
-
- return x;
-}
-
-function assert(x) {
- if (!x) {
- throw new Error("Assert fail");
- }
-}
-
-function keywordTypeFromName(value) {
- switch (value) {
- case "any":
- return "TSAnyKeyword";
-
- case "boolean":
- return "TSBooleanKeyword";
-
- case "bigint":
- return "TSBigIntKeyword";
-
- case "never":
- return "TSNeverKeyword";
-
- case "number":
- return "TSNumberKeyword";
-
- case "object":
- return "TSObjectKeyword";
-
- case "string":
- return "TSStringKeyword";
-
- case "symbol":
- return "TSSymbolKeyword";
-
- case "undefined":
- return "TSUndefinedKeyword";
-
- case "unknown":
- return "TSUnknownKeyword";
-
- default:
- return undefined;
- }
-}
-
-var typescript = (superClass => class extends superClass {
- getScopeHandler() {
- return TypeScriptScopeHandler;
- }
-
- tsIsIdentifier() {
- return this.match(types.name);
- }
-
- tsNextTokenCanFollowModifier() {
- this.next();
- return !this.hasPrecedingLineBreak() && !this.match(types.parenL) && !this.match(types.parenR) && !this.match(types.colon) && !this.match(types.eq) && !this.match(types.question) && !this.match(types.bang);
- }
-
- tsParseModifier(allowedModifiers) {
- if (!this.match(types.name)) {
- return undefined;
- }
-
- const modifier = this.state.value;
-
- if (allowedModifiers.indexOf(modifier) !== -1 && this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this))) {
- return modifier;
- }
-
- return undefined;
- }
-
- tsIsListTerminator(kind) {
- switch (kind) {
- case "EnumMembers":
- case "TypeMembers":
- return this.match(types.braceR);
-
- case "HeritageClauseElement":
- return this.match(types.braceL);
-
- case "TupleElementTypes":
- return this.match(types.bracketR);
-
- case "TypeParametersOrArguments":
- return this.isRelational(">");
- }
-
- throw new Error("Unreachable");
- }
-
- tsParseList(kind, parseElement) {
- const result = [];
-
- while (!this.tsIsListTerminator(kind)) {
- result.push(parseElement());
- }
-
- return result;
- }
-
- tsParseDelimitedList(kind, parseElement) {
- return nonNull(this.tsParseDelimitedListWorker(kind, parseElement, true));
- }
-
- tsParseDelimitedListWorker(kind, parseElement, expectSuccess) {
- const result = [];
-
- while (true) {
- if (this.tsIsListTerminator(kind)) {
- break;
- }
-
- const element = parseElement();
-
- if (element == null) {
- return undefined;
- }
-
- result.push(element);
-
- if (this.eat(types.comma)) {
- continue;
- }
-
- if (this.tsIsListTerminator(kind)) {
- break;
- }
-
- if (expectSuccess) {
- this.expect(types.comma);
- }
-
- return undefined;
- }
-
- return result;
- }
-
- tsParseBracketedList(kind, parseElement, bracket, skipFirstToken) {
- if (!skipFirstToken) {
- if (bracket) {
- this.expect(types.bracketL);
- } else {
- this.expectRelational("<");
- }
- }
-
- const result = this.tsParseDelimitedList(kind, parseElement);
-
- if (bracket) {
- this.expect(types.bracketR);
- } else {
- this.expectRelational(">");
- }
-
- return result;
- }
-
- tsParseImportType() {
- const node = this.startNode();
- this.expect(types._import);
- this.expect(types.parenL);
-
- if (!this.match(types.string)) {
- throw this.unexpected(null, "Argument in a type import must be a string literal");
- }
-
- node.argument = this.parseExprAtom();
- this.expect(types.parenR);
-
- if (this.eat(types.dot)) {
- node.qualifier = this.tsParseEntityName(true);
- }
-
- if (this.isRelational("<")) {
- node.typeParameters = this.tsParseTypeArguments();
- }
-
- return this.finishNode(node, "TSImportType");
- }
-
- tsParseEntityName(allowReservedWords) {
- let entity = this.parseIdentifier();
-
- while (this.eat(types.dot)) {
- const node = this.startNodeAtNode(entity);
- node.left = entity;
- node.right = this.parseIdentifier(allowReservedWords);
- entity = this.finishNode(node, "TSQualifiedName");
- }
-
- return entity;
- }
-
- tsParseTypeReference() {
- const node = this.startNode();
- node.typeName = this.tsParseEntityName(false);
-
- if (!this.hasPrecedingLineBreak() && this.isRelational("<")) {
- node.typeParameters = this.tsParseTypeArguments();
- }
-
- return this.finishNode(node, "TSTypeReference");
- }
-
- tsParseThisTypePredicate(lhs) {
- this.next();
- const node = this.startNodeAtNode(lhs);
- node.parameterName = lhs;
- node.typeAnnotation = this.tsParseTypeAnnotation(false);
- return this.finishNode(node, "TSTypePredicate");
- }
-
- tsParseThisTypeNode() {
- const node = this.startNode();
- this.next();
- return this.finishNode(node, "TSThisType");
- }
-
- tsParseTypeQuery() {
- const node = this.startNode();
- this.expect(types._typeof);
-
- if (this.match(types._import)) {
- node.exprName = this.tsParseImportType();
- } else {
- node.exprName = this.tsParseEntityName(true);
- }
-
- return this.finishNode(node, "TSTypeQuery");
- }
-
- tsParseTypeParameter() {
- const node = this.startNode();
- node.name = this.parseIdentifierName(node.start);
- node.constraint = this.tsEatThenParseType(types._extends);
- node.default = this.tsEatThenParseType(types.eq);
- return this.finishNode(node, "TSTypeParameter");
- }
-
- tsTryParseTypeParameters() {
- if (this.isRelational("<")) {
- return this.tsParseTypeParameters();
- }
- }
-
- tsParseTypeParameters() {
- const node = this.startNode();
-
- if (this.isRelational("<") || this.match(types.jsxTagStart)) {
- this.next();
- } else {
- this.unexpected();
- }
-
- node.params = this.tsParseBracketedList("TypeParametersOrArguments", this.tsParseTypeParameter.bind(this), false, true);
- return this.finishNode(node, "TSTypeParameterDeclaration");
- }
-
- tsTryNextParseConstantContext() {
- if (this.lookahead().type === types._const) {
- this.next();
- return this.tsParseTypeReference();
- }
-
- return null;
- }
-
- tsFillSignature(returnToken, signature) {
- const returnTokenRequired = returnToken === types.arrow;
- signature.typeParameters = this.tsTryParseTypeParameters();
- this.expect(types.parenL);
- signature.parameters = this.tsParseBindingListForSignature();
-
- if (returnTokenRequired) {
- signature.typeAnnotation = this.tsParseTypeOrTypePredicateAnnotation(returnToken);
- } else if (this.match(returnToken)) {
- signature.typeAnnotation = this.tsParseTypeOrTypePredicateAnnotation(returnToken);
- }
- }
-
- tsParseBindingListForSignature() {
- return this.parseBindingList(types.parenR).map(pattern => {
- if (pattern.type !== "Identifier" && pattern.type !== "RestElement" && pattern.type !== "ObjectPattern" && pattern.type !== "ArrayPattern") {
- throw this.unexpected(pattern.start, `Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${pattern.type}`);
- }
-
- return pattern;
- });
- }
-
- tsParseTypeMemberSemicolon() {
- if (!this.eat(types.comma)) {
- this.semicolon();
- }
- }
-
- tsParseSignatureMember(kind, node) {
- this.tsFillSignature(types.colon, node);
- this.tsParseTypeMemberSemicolon();
- return this.finishNode(node, kind);
- }
-
- tsIsUnambiguouslyIndexSignature() {
- this.next();
- return this.eat(types.name) && this.match(types.colon);
- }
-
- tsTryParseIndexSignature(node) {
- if (!(this.match(types.bracketL) && this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))) {
- return undefined;
- }
-
- this.expect(types.bracketL);
- const id = this.parseIdentifier();
- id.typeAnnotation = this.tsParseTypeAnnotation();
- this.resetEndLocation(id);
- this.expect(types.bracketR);
- node.parameters = [id];
- const type = this.tsTryParseTypeAnnotation();
- if (type) node.typeAnnotation = type;
- this.tsParseTypeMemberSemicolon();
- return this.finishNode(node, "TSIndexSignature");
- }
-
- tsParsePropertyOrMethodSignature(node, readonly) {
- if (this.eat(types.question)) node.optional = true;
- const nodeAny = node;
-
- if (!readonly && (this.match(types.parenL) || this.isRelational("<"))) {
- const method = nodeAny;
- this.tsFillSignature(types.colon, method);
- this.tsParseTypeMemberSemicolon();
- return this.finishNode(method, "TSMethodSignature");
- } else {
- const property = nodeAny;
- if (readonly) property.readonly = true;
- const type = this.tsTryParseTypeAnnotation();
- if (type) property.typeAnnotation = type;
- this.tsParseTypeMemberSemicolon();
- return this.finishNode(property, "TSPropertySignature");
- }
- }
-
- tsParseTypeMember() {
- const node = this.startNode();
-
- if (this.match(types.parenL) || this.isRelational("<")) {
- return this.tsParseSignatureMember("TSCallSignatureDeclaration", node);
- }
-
- if (this.match(types._new)) {
- const id = this.startNode();
- this.next();
-
- if (this.match(types.parenL) || this.isRelational("<")) {
- return this.tsParseSignatureMember("TSConstructSignatureDeclaration", node);
- } else {
- node.key = this.createIdentifier(id, "new");
- return this.tsParsePropertyOrMethodSignature(node, false);
- }
- }
-
- const readonly = !!this.tsParseModifier(["readonly"]);
- const idx = this.tsTryParseIndexSignature(node);
-
- if (idx) {
- if (readonly) node.readonly = true;
- return idx;
- }
-
- this.parsePropertyName(node);
- return this.tsParsePropertyOrMethodSignature(node, readonly);
- }
-
- tsParseTypeLiteral() {
- const node = this.startNode();
- node.members = this.tsParseObjectTypeMembers();
- return this.finishNode(node, "TSTypeLiteral");
- }
-
- tsParseObjectTypeMembers() {
- this.expect(types.braceL);
- const members = this.tsParseList("TypeMembers", this.tsParseTypeMember.bind(this));
- this.expect(types.braceR);
- return members;
- }
-
- tsIsStartOfMappedType() {
- this.next();
-
- if (this.eat(types.plusMin)) {
- return this.isContextual("readonly");
- }
-
- if (this.isContextual("readonly")) {
- this.next();
- }
-
- if (!this.match(types.bracketL)) {
- return false;
- }
-
- this.next();
-
- if (!this.tsIsIdentifier()) {
- return false;
- }
-
- this.next();
- return this.match(types._in);
- }
-
- tsParseMappedTypeParameter() {
- const node = this.startNode();
- node.name = this.parseIdentifierName(node.start);
- node.constraint = this.tsExpectThenParseType(types._in);
- return this.finishNode(node, "TSTypeParameter");
- }
-
- tsParseMappedType() {
- const node = this.startNode();
- this.expect(types.braceL);
-
- if (this.match(types.plusMin)) {
- node.readonly = this.state.value;
- this.next();
- this.expectContextual("readonly");
- } else if (this.eatContextual("readonly")) {
- node.readonly = true;
- }
-
- this.expect(types.bracketL);
- node.typeParameter = this.tsParseMappedTypeParameter();
- this.expect(types.bracketR);
-
- if (this.match(types.plusMin)) {
- node.optional = this.state.value;
- this.next();
- this.expect(types.question);
- } else if (this.eat(types.question)) {
- node.optional = true;
- }
-
- node.typeAnnotation = this.tsTryParseType();
- this.semicolon();
- this.expect(types.braceR);
- return this.finishNode(node, "TSMappedType");
- }
-
- tsParseTupleType() {
- const node = this.startNode();
- node.elementTypes = this.tsParseBracketedList("TupleElementTypes", this.tsParseTupleElementType.bind(this), true, false);
- let seenOptionalElement = false;
- node.elementTypes.forEach(elementNode => {
- if (elementNode.type === "TSOptionalType") {
- seenOptionalElement = true;
- } else if (seenOptionalElement && elementNode.type !== "TSRestType") {
- this.raise(elementNode.start, "A required element cannot follow an optional element.");
- }
- });
- return this.finishNode(node, "TSTupleType");
- }
-
- tsParseTupleElementType() {
- if (this.match(types.ellipsis)) {
- const restNode = this.startNode();
- this.next();
- restNode.typeAnnotation = this.tsParseType();
- this.checkCommaAfterRest();
- return this.finishNode(restNode, "TSRestType");
- }
-
- const type = this.tsParseType();
-
- if (this.eat(types.question)) {
- const optionalTypeNode = this.startNodeAtNode(type);
- optionalTypeNode.typeAnnotation = type;
- return this.finishNode(optionalTypeNode, "TSOptionalType");
- }
-
- return type;
- }
-
- tsParseParenthesizedType() {
- const node = this.startNode();
- this.expect(types.parenL);
- node.typeAnnotation = this.tsParseType();
- this.expect(types.parenR);
- return this.finishNode(node, "TSParenthesizedType");
- }
-
- tsParseFunctionOrConstructorType(type) {
- const node = this.startNode();
-
- if (type === "TSConstructorType") {
- this.expect(types._new);
- }
-
- this.tsFillSignature(types.arrow, node);
- return this.finishNode(node, type);
- }
-
- tsParseLiteralTypeNode() {
- const node = this.startNode();
-
- node.literal = (() => {
- switch (this.state.type) {
- case types.num:
- case types.string:
- case types._true:
- case types._false:
- return this.parseExprAtom();
-
- default:
- throw this.unexpected();
- }
- })();
-
- return this.finishNode(node, "TSLiteralType");
- }
-
- tsParseTemplateLiteralType() {
- const node = this.startNode();
- const templateNode = this.parseTemplate(false);
-
- if (templateNode.expressions.length > 0) {
- throw this.raise(templateNode.expressions[0].start, "Template literal types cannot have any substitution");
- }
-
- node.literal = templateNode;
- return this.finishNode(node, "TSLiteralType");
- }
-
- tsParseNonArrayType() {
- switch (this.state.type) {
- case types.name:
- case types._void:
- case types._null:
- {
- const type = this.match(types._void) ? "TSVoidKeyword" : this.match(types._null) ? "TSNullKeyword" : keywordTypeFromName(this.state.value);
-
- if (type !== undefined && this.lookahead().type !== types.dot) {
- const node = this.startNode();
- this.next();
- return this.finishNode(node, type);
- }
-
- return this.tsParseTypeReference();
- }
-
- case types.string:
- case types.num:
- case types._true:
- case types._false:
- return this.tsParseLiteralTypeNode();
-
- case types.plusMin:
- if (this.state.value === "-") {
- const node = this.startNode();
-
- if (this.lookahead().type !== types.num) {
- throw this.unexpected();
- }
-
- node.literal = this.parseMaybeUnary();
- return this.finishNode(node, "TSLiteralType");
- }
-
- break;
-
- case types._this:
- {
- const thisKeyword = this.tsParseThisTypeNode();
-
- if (this.isContextual("is") && !this.hasPrecedingLineBreak()) {
- return this.tsParseThisTypePredicate(thisKeyword);
- } else {
- return thisKeyword;
- }
- }
-
- case types._typeof:
- return this.tsParseTypeQuery();
-
- case types._import:
- return this.tsParseImportType();
-
- case types.braceL:
- return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this)) ? this.tsParseMappedType() : this.tsParseTypeLiteral();
-
- case types.bracketL:
- return this.tsParseTupleType();
-
- case types.parenL:
- return this.tsParseParenthesizedType();
-
- case types.backQuote:
- return this.tsParseTemplateLiteralType();
- }
-
- throw this.unexpected();
- }
-
- tsParseArrayTypeOrHigher() {
- let type = this.tsParseNonArrayType();
-
- while (!this.hasPrecedingLineBreak() && this.eat(types.bracketL)) {
- if (this.match(types.bracketR)) {
- const node = this.startNodeAtNode(type);
- node.elementType = type;
- this.expect(types.bracketR);
- type = this.finishNode(node, "TSArrayType");
- } else {
- const node = this.startNodeAtNode(type);
- node.objectType = type;
- node.indexType = this.tsParseType();
- this.expect(types.bracketR);
- type = this.finishNode(node, "TSIndexedAccessType");
- }
- }
-
- return type;
- }
-
- tsParseTypeOperator(operator) {
- const node = this.startNode();
- this.expectContextual(operator);
- node.operator = operator;
- node.typeAnnotation = this.tsParseTypeOperatorOrHigher();
-
- if (operator === "readonly") {
- this.tsCheckTypeAnnotationForReadOnly(node);
- }
-
- return this.finishNode(node, "TSTypeOperator");
- }
-
- tsCheckTypeAnnotationForReadOnly(node) {
- switch (node.typeAnnotation.type) {
- case "TSTupleType":
- case "TSArrayType":
- return;
-
- default:
- this.raise(node.start, "'readonly' type modifier is only permitted on array and tuple literal types.");
- }
- }
-
- tsParseInferType() {
- const node = this.startNode();
- this.expectContextual("infer");
- const typeParameter = this.startNode();
- typeParameter.name = this.parseIdentifierName(typeParameter.start);
- node.typeParameter = this.finishNode(typeParameter, "TSTypeParameter");
- return this.finishNode(node, "TSInferType");
- }
-
- tsParseTypeOperatorOrHigher() {
- const operator = ["keyof", "unique", "readonly"].find(kw => this.isContextual(kw));
- return operator ? this.tsParseTypeOperator(operator) : this.isContextual("infer") ? this.tsParseInferType() : this.tsParseArrayTypeOrHigher();
- }
-
- tsParseUnionOrIntersectionType(kind, parseConstituentType, operator) {
- this.eat(operator);
- let type = parseConstituentType();
-
- if (this.match(operator)) {
- const types = [type];
-
- while (this.eat(operator)) {
- types.push(parseConstituentType());
- }
-
- const node = this.startNodeAtNode(type);
- node.types = types;
- type = this.finishNode(node, kind);
- }
-
- return type;
- }
-
- tsParseIntersectionTypeOrHigher() {
- return this.tsParseUnionOrIntersectionType("TSIntersectionType", this.tsParseTypeOperatorOrHigher.bind(this), types.bitwiseAND);
- }
-
- tsParseUnionTypeOrHigher() {
- return this.tsParseUnionOrIntersectionType("TSUnionType", this.tsParseIntersectionTypeOrHigher.bind(this), types.bitwiseOR);
- }
-
- tsIsStartOfFunctionType() {
- if (this.isRelational("<")) {
- return true;
- }
-
- return this.match(types.parenL) && this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this));
- }
-
- tsSkipParameterStart() {
- if (this.match(types.name) || this.match(types._this)) {
- this.next();
- return true;
- }
-
- if (this.match(types.braceL)) {
- let braceStackCounter = 1;
- this.next();
-
- while (braceStackCounter > 0) {
- if (this.match(types.braceL)) {
- ++braceStackCounter;
- } else if (this.match(types.braceR)) {
- --braceStackCounter;
- }
-
- this.next();
- }
-
- return true;
- }
-
- if (this.match(types.bracketL)) {
- let braceStackCounter = 1;
- this.next();
-
- while (braceStackCounter > 0) {
- if (this.match(types.bracketL)) {
- ++braceStackCounter;
- } else if (this.match(types.bracketR)) {
- --braceStackCounter;
- }
-
- this.next();
- }
-
- return true;
- }
-
- return false;
- }
-
- tsIsUnambiguouslyStartOfFunctionType() {
- this.next();
-
- if (this.match(types.parenR) || this.match(types.ellipsis)) {
- return true;
- }
-
- if (this.tsSkipParameterStart()) {
- if (this.match(types.colon) || this.match(types.comma) || this.match(types.question) || this.match(types.eq)) {
- return true;
- }
-
- if (this.match(types.parenR)) {
- this.next();
-
- if (this.match(types.arrow)) {
- return true;
- }
- }
- }
-
- return false;
- }
-
- tsParseTypeOrTypePredicateAnnotation(returnToken) {
- return this.tsInType(() => {
- const t = this.startNode();
- this.expect(returnToken);
- const typePredicateVariable = this.tsIsIdentifier() && this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));
-
- if (!typePredicateVariable) {
- return this.tsParseTypeAnnotation(false, t);
- }
-
- const type = this.tsParseTypeAnnotation(false);
- const node = this.startNodeAtNode(typePredicateVariable);
- node.parameterName = typePredicateVariable;
- node.typeAnnotation = type;
- t.typeAnnotation = this.finishNode(node, "TSTypePredicate");
- return this.finishNode(t, "TSTypeAnnotation");
- });
- }
-
- tsTryParseTypeOrTypePredicateAnnotation() {
- return this.match(types.colon) ? this.tsParseTypeOrTypePredicateAnnotation(types.colon) : undefined;
- }
-
- tsTryParseTypeAnnotation() {
- return this.match(types.colon) ? this.tsParseTypeAnnotation() : undefined;
- }
-
- tsTryParseType() {
- return this.tsEatThenParseType(types.colon);
- }
-
- tsParseTypePredicatePrefix() {
- const id = this.parseIdentifier();
-
- if (this.isContextual("is") && !this.hasPrecedingLineBreak()) {
- this.next();
- return id;
- }
- }
-
- tsParseTypeAnnotation(eatColon = true, t = this.startNode()) {
- this.tsInType(() => {
- if (eatColon) this.expect(types.colon);
- t.typeAnnotation = this.tsParseType();
- });
- return this.finishNode(t, "TSTypeAnnotation");
- }
-
- tsParseType() {
- assert(this.state.inType);
- const type = this.tsParseNonConditionalType();
-
- if (this.hasPrecedingLineBreak() || !this.eat(types._extends)) {
- return type;
- }
-
- const node = this.startNodeAtNode(type);
- node.checkType = type;
- node.extendsType = this.tsParseNonConditionalType();
- this.expect(types.question);
- node.trueType = this.tsParseType();
- this.expect(types.colon);
- node.falseType = this.tsParseType();
- return this.finishNode(node, "TSConditionalType");
- }
-
- tsParseNonConditionalType() {
- if (this.tsIsStartOfFunctionType()) {
- return this.tsParseFunctionOrConstructorType("TSFunctionType");
- }
-
- if (this.match(types._new)) {
- return this.tsParseFunctionOrConstructorType("TSConstructorType");
- }
-
- return this.tsParseUnionTypeOrHigher();
- }
-
- tsParseTypeAssertion() {
- const node = this.startNode();
-
- const _const = this.tsTryNextParseConstantContext();
-
- node.typeAnnotation = _const || this.tsNextThenParseType();
- this.expectRelational(">");
- node.expression = this.parseMaybeUnary();
- return this.finishNode(node, "TSTypeAssertion");
- }
-
- tsParseHeritageClause(descriptor) {
- const originalStart = this.state.start;
- const delimitedList = this.tsParseDelimitedList("HeritageClauseElement", this.tsParseExpressionWithTypeArguments.bind(this));
-
- if (!delimitedList.length) {
- this.raise(originalStart, `'${descriptor}' list cannot be empty.`);
- }
-
- return delimitedList;
- }
-
- tsParseExpressionWithTypeArguments() {
- const node = this.startNode();
- node.expression = this.tsParseEntityName(false);
-
- if (this.isRelational("<")) {
- node.typeParameters = this.tsParseTypeArguments();
- }
-
- return this.finishNode(node, "TSExpressionWithTypeArguments");
- }
-
- tsParseInterfaceDeclaration(node) {
- node.id = this.parseIdentifier();
- this.checkLVal(node.id, BIND_TS_INTERFACE, undefined, "typescript interface declaration");
- node.typeParameters = this.tsTryParseTypeParameters();
-
- if (this.eat(types._extends)) {
- node.extends = this.tsParseHeritageClause("extends");
- }
-
- const body = this.startNode();
- body.body = this.tsInType(this.tsParseObjectTypeMembers.bind(this));
- node.body = this.finishNode(body, "TSInterfaceBody");
- return this.finishNode(node, "TSInterfaceDeclaration");
- }
-
- tsParseTypeAliasDeclaration(node) {
- node.id = this.parseIdentifier();
- this.checkLVal(node.id, BIND_TS_TYPE, undefined, "typescript type alias");
- node.typeParameters = this.tsTryParseTypeParameters();
- node.typeAnnotation = this.tsExpectThenParseType(types.eq);
- this.semicolon();
- return this.finishNode(node, "TSTypeAliasDeclaration");
- }
-
- tsInNoContext(cb) {
- const oldContext = this.state.context;
- this.state.context = [oldContext[0]];
-
- try {
- return cb();
- } finally {
- this.state.context = oldContext;
- }
- }
-
- tsInType(cb) {
- const oldInType = this.state.inType;
- this.state.inType = true;
-
- try {
- return cb();
- } finally {
- this.state.inType = oldInType;
- }
- }
-
- tsEatThenParseType(token) {
- return !this.match(token) ? undefined : this.tsNextThenParseType();
- }
-
- tsExpectThenParseType(token) {
- return this.tsDoThenParseType(() => this.expect(token));
- }
-
- tsNextThenParseType() {
- return this.tsDoThenParseType(() => this.next());
- }
-
- tsDoThenParseType(cb) {
- return this.tsInType(() => {
- cb();
- return this.tsParseType();
- });
- }
-
- tsParseEnumMember() {
- const node = this.startNode();
- node.id = this.match(types.string) ? this.parseExprAtom() : this.parseIdentifier(true);
-
- if (this.eat(types.eq)) {
- node.initializer = this.parseMaybeAssign();
- }
-
- return this.finishNode(node, "TSEnumMember");
- }
-
- tsParseEnumDeclaration(node, isConst) {
- if (isConst) node.const = true;
- node.id = this.parseIdentifier();
- this.checkLVal(node.id, isConst ? BIND_TS_CONST_ENUM : BIND_TS_ENUM, undefined, "typescript enum declaration");
- this.expect(types.braceL);
- node.members = this.tsParseDelimitedList("EnumMembers", this.tsParseEnumMember.bind(this));
- this.expect(types.braceR);
- return this.finishNode(node, "TSEnumDeclaration");
- }
-
- tsParseModuleBlock() {
- const node = this.startNode();
- this.scope.enter(SCOPE_OTHER);
- this.expect(types.braceL);
- this.parseBlockOrModuleBlockBody(node.body = [], undefined, true, types.braceR);
- this.scope.exit();
- return this.finishNode(node, "TSModuleBlock");
- }
-
- tsParseModuleOrNamespaceDeclaration(node, nested = false) {
- node.id = this.parseIdentifier();
-
- if (!nested) {
- this.checkLVal(node.id, BIND_TS_NAMESPACE, null, "module or namespace declaration");
- }
-
- if (this.eat(types.dot)) {
- const inner = this.startNode();
- this.tsParseModuleOrNamespaceDeclaration(inner, true);
- node.body = inner;
- } else {
- node.body = this.tsParseModuleBlock();
- }
-
- return this.finishNode(node, "TSModuleDeclaration");
- }
-
- tsParseAmbientExternalModuleDeclaration(node) {
- if (this.isContextual("global")) {
- node.global = true;
- node.id = this.parseIdentifier();
- } else if (this.match(types.string)) {
- node.id = this.parseExprAtom();
- } else {
- this.unexpected();
- }
-
- if (this.match(types.braceL)) {
- node.body = this.tsParseModuleBlock();
- } else {
- this.semicolon();
- }
-
- return this.finishNode(node, "TSModuleDeclaration");
- }
-
- tsParseImportEqualsDeclaration(node, isExport) {
- node.isExport = isExport || false;
- node.id = this.parseIdentifier();
- this.expect(types.eq);
- node.moduleReference = this.tsParseModuleReference();
- this.semicolon();
- return this.finishNode(node, "TSImportEqualsDeclaration");
- }
-
- tsIsExternalModuleReference() {
- return this.isContextual("require") && this.lookahead().type === types.parenL;
- }
-
- tsParseModuleReference() {
- return this.tsIsExternalModuleReference() ? this.tsParseExternalModuleReference() : this.tsParseEntityName(false);
- }
-
- tsParseExternalModuleReference() {
- const node = this.startNode();
- this.expectContextual("require");
- this.expect(types.parenL);
-
- if (!this.match(types.string)) {
- throw this.unexpected();
- }
-
- node.expression = this.parseExprAtom();
- this.expect(types.parenR);
- return this.finishNode(node, "TSExternalModuleReference");
- }
-
- tsLookAhead(f) {
- const state = this.state.clone();
- const res = f();
- this.state = state;
- return res;
- }
-
- tsTryParseAndCatch(f) {
- const state = this.state.clone();
-
- try {
- return f();
- } catch (e) {
- if (e instanceof SyntaxError) {
- this.state = state;
- return undefined;
- }
-
- throw e;
- }
- }
-
- tsTryParse(f) {
- const state = this.state.clone();
- const result = f();
-
- if (result !== undefined && result !== false) {
- return result;
- } else {
- this.state = state;
- return undefined;
- }
- }
-
- tsTryParseDeclare(nany) {
- if (this.isLineTerminator()) {
- return;
- }
-
- let starttype = this.state.type;
- let kind;
-
- if (this.isContextual("let")) {
- starttype = types._var;
- kind = "let";
- }
-
- switch (starttype) {
- case types._function:
- return this.parseFunctionStatement(nany, false, true);
-
- case types._class:
- return this.parseClass(nany, true, false);
-
- case types._const:
- if (this.match(types._const) && this.isLookaheadContextual("enum")) {
- this.expect(types._const);
- this.expectContextual("enum");
- return this.tsParseEnumDeclaration(nany, true);
- }
-
- case types._var:
- kind = kind || this.state.value;
- return this.parseVarStatement(nany, kind);
-
- case types.name:
- {
- const value = this.state.value;
-
- if (value === "global") {
- return this.tsParseAmbientExternalModuleDeclaration(nany);
- } else {
- return this.tsParseDeclaration(nany, value, true);
- }
- }
- }
- }
-
- tsTryParseExportDeclaration() {
- return this.tsParseDeclaration(this.startNode(), this.state.value, true);
- }
-
- tsParseExpressionStatement(node, expr) {
- switch (expr.name) {
- case "declare":
- {
- const declaration = this.tsTryParseDeclare(node);
-
- if (declaration) {
- declaration.declare = true;
- return declaration;
- }
-
- break;
- }
-
- case "global":
- if (this.match(types.braceL)) {
- const mod = node;
- mod.global = true;
- mod.id = expr;
- mod.body = this.tsParseModuleBlock();
- return this.finishNode(mod, "TSModuleDeclaration");
- }
-
- break;
-
- default:
- return this.tsParseDeclaration(node, expr.name, false);
- }
- }
-
- tsParseDeclaration(node, value, next) {
- switch (value) {
- case "abstract":
- if (this.tsCheckLineTerminatorAndMatch(types._class, next)) {
- const cls = node;
- cls.abstract = true;
-
- if (next) {
- this.next();
-
- if (!this.match(types._class)) {
- this.unexpected(null, types._class);
- }
- }
-
- return this.parseClass(cls, true, false);
- }
-
- break;
-
- case "enum":
- if (next || this.match(types.name)) {
- if (next) this.next();
- return this.tsParseEnumDeclaration(node, false);
- }
-
- break;
-
- case "interface":
- if (this.tsCheckLineTerminatorAndMatch(types.name, next)) {
- if (next) this.next();
- return this.tsParseInterfaceDeclaration(node);
- }
-
- break;
-
- case "module":
- if (next) this.next();
-
- if (this.match(types.string)) {
- return this.tsParseAmbientExternalModuleDeclaration(node);
- } else if (this.tsCheckLineTerminatorAndMatch(types.name, next)) {
- return this.tsParseModuleOrNamespaceDeclaration(node);
- }
-
- break;
-
- case "namespace":
- if (this.tsCheckLineTerminatorAndMatch(types.name, next)) {
- if (next) this.next();
- return this.tsParseModuleOrNamespaceDeclaration(node);
- }
-
- break;
-
- case "type":
- if (this.tsCheckLineTerminatorAndMatch(types.name, next)) {
- if (next) this.next();
- return this.tsParseTypeAliasDeclaration(node);
- }
-
- break;
- }
- }
-
- tsCheckLineTerminatorAndMatch(tokenType, next) {
- return (next || this.match(tokenType)) && !this.isLineTerminator();
- }
-
- tsTryParseGenericAsyncArrowFunction(startPos, startLoc) {
- if (!this.isRelational("<")) {
- return undefined;
- }
-
- const res = this.tsTryParseAndCatch(() => {
- const node = this.startNodeAt(startPos, startLoc);
- node.typeParameters = this.tsParseTypeParameters();
- super.parseFunctionParams(node);
- node.returnType = this.tsTryParseTypeOrTypePredicateAnnotation();
- this.expect(types.arrow);
- return node;
- });
-
- if (!res) {
- return undefined;
- }
-
- return this.parseArrowExpression(res, null, true);
- }
-
- tsParseTypeArguments() {
- const node = this.startNode();
- node.params = this.tsInType(() => this.tsInNoContext(() => {
- this.expectRelational("<");
- return this.tsParseDelimitedList("TypeParametersOrArguments", this.tsParseType.bind(this));
- }));
- this.state.exprAllowed = false;
- this.expectRelational(">");
- return this.finishNode(node, "TSTypeParameterInstantiation");
- }
-
- tsIsDeclarationStart() {
- if (this.match(types.name)) {
- 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(allowModifiers, decorators) {
- const startPos = this.state.start;
- const startLoc = this.state.startLoc;
- let accessibility;
- let readonly = false;
-
- if (allowModifiers) {
- accessibility = this.parseAccessModifier();
- readonly = !!this.tsParseModifier(["readonly"]);
- }
-
- const left = this.parseMaybeDefault();
- this.parseAssignableListItemTypes(left);
- const elt = this.parseMaybeDefault(left.start, left.loc.start, left);
-
- if (accessibility || readonly) {
- const pp = this.startNodeAt(startPos, startLoc);
-
- if (decorators.length) {
- pp.decorators = decorators;
- }
-
- if (accessibility) pp.accessibility = accessibility;
- if (readonly) pp.readonly = readonly;
-
- if (elt.type !== "Identifier" && elt.type !== "AssignmentPattern") {
- throw this.raise(pp.start, "A parameter property may not be declared using a binding pattern.");
- }
-
- pp.parameter = elt;
- return this.finishNode(pp, "TSParameterProperty");
- }
-
- if (decorators.length) {
- left.decorators = decorators;
- }
-
- return elt;
- }
-
- parseFunctionBodyAndFinish(node, type, isMethod = false) {
- if (this.match(types.colon)) {
- node.returnType = this.tsParseTypeOrTypePredicateAnnotation(types.colon);
- }
-
- const bodilessType = type === "FunctionDeclaration" ? "TSDeclareFunction" : type === "ClassMethod" ? "TSDeclareMethod" : undefined;
-
- if (bodilessType && !this.match(types.braceL) && this.isLineTerminator()) {
- this.finishNode(node, bodilessType);
- return;
- }
-
- super.parseFunctionBodyAndFinish(node, type, isMethod);
- }
-
- checkFunctionStatementId(node) {
- if (!node.body && node.id) {
- this.checkLVal(node.id, BIND_TS_FN_TYPE, null, "function name");
- } else {
- super.checkFunctionStatementId(...arguments);
- }
- }
-
- parseSubscript(base, startPos, startLoc, noCalls, state, maybeAsyncArrow) {
- if (!this.hasPrecedingLineBreak() && this.match(types.bang)) {
- this.state.exprAllowed = false;
- this.next();
- const nonNullExpression = this.startNodeAt(startPos, startLoc);
- nonNullExpression.expression = base;
- return this.finishNode(nonNullExpression, "TSNonNullExpression");
- }
-
- if (this.isRelational("<")) {
- const result = this.tsTryParseAndCatch(() => {
- if (!noCalls && this.atPossibleAsync(base)) {
- const asyncArrowFn = this.tsTryParseGenericAsyncArrowFunction(startPos, startLoc);
-
- if (asyncArrowFn) {
- return asyncArrowFn;
- }
- }
-
- const node = this.startNodeAt(startPos, startLoc);
- node.callee = base;
- const typeArguments = this.tsParseTypeArguments();
-
- if (typeArguments) {
- if (!noCalls && this.eat(types.parenL)) {
- node.arguments = this.parseCallExpressionArguments(types.parenR, false);
- node.typeParameters = typeArguments;
- return this.finishCallExpression(node);
- } else if (this.match(types.backQuote)) {
- return this.parseTaggedTemplateExpression(startPos, startLoc, base, state, typeArguments);
- }
- }
-
- this.unexpected();
- });
- if (result) return result;
- }
-
- return super.parseSubscript(base, startPos, startLoc, noCalls, state, maybeAsyncArrow);
- }
-
- parseNewArguments(node) {
- if (this.isRelational("<")) {
- const typeParameters = this.tsTryParseAndCatch(() => {
- const args = this.tsParseTypeArguments();
- if (!this.match(types.parenL)) this.unexpected();
- return args;
- });
-
- if (typeParameters) {
- node.typeParameters = typeParameters;
- }
- }
-
- super.parseNewArguments(node);
- }
-
- parseExprOp(left, leftStartPos, leftStartLoc, minPrec, noIn) {
- if (nonNull(types._in.binop) > minPrec && !this.hasPrecedingLineBreak() && this.isContextual("as")) {
- const node = this.startNodeAt(leftStartPos, leftStartLoc);
- node.expression = left;
-
- const _const = this.tsTryNextParseConstantContext();
-
- if (_const) {
- node.typeAnnotation = _const;
- } else {
- node.typeAnnotation = this.tsNextThenParseType();
- }
-
- this.finishNode(node, "TSAsExpression");
- return this.parseExprOp(node, leftStartPos, leftStartLoc, minPrec, noIn);
- }
-
- return super.parseExprOp(left, leftStartPos, leftStartLoc, minPrec, noIn);
- }
-
- checkReservedWord(word, startLoc, checkKeywords, isBinding) {}
-
- checkDuplicateExports() {}
-
- parseImport(node) {
- if (this.match(types.name) && this.lookahead().type === types.eq) {
- return this.tsParseImportEqualsDeclaration(node);
- }
-
- return super.parseImport(node);
- }
-
- parseExport(node) {
- if (this.match(types._import)) {
- this.expect(types._import);
- return this.tsParseImportEqualsDeclaration(node, true);
- } else if (this.eat(types.eq)) {
- const assign = node;
- assign.expression = this.parseExpression();
- this.semicolon();
- return this.finishNode(assign, "TSExportAssignment");
- } else if (this.eatContextual("as")) {
- const decl = node;
- this.expectContextual("namespace");
- decl.id = this.parseIdentifier();
- this.semicolon();
- return this.finishNode(decl, "TSNamespaceExportDeclaration");
- } else {
- return super.parseExport(node);
- }
- }
-
- isAbstractClass() {
- return this.isContextual("abstract") && this.lookahead().type === types._class;
- }
-
- parseExportDefaultExpression() {
- if (this.isAbstractClass()) {
- const cls = this.startNode();
- this.next();
- this.parseClass(cls, true, true);
- cls.abstract = true;
- return cls;
- }
-
- if (this.state.value === "interface") {
- const result = this.tsParseDeclaration(this.startNode(), this.state.value, true);
- if (result) return result;
- }
-
- return super.parseExportDefaultExpression();
- }
-
- parseStatementContent(context, topLevel) {
- if (this.state.type === types._const) {
- const ahead = this.lookahead();
-
- if (ahead.type === types.name && ahead.value === "enum") {
- const node = this.startNode();
- this.expect(types._const);
- this.expectContextual("enum");
- return this.tsParseEnumDeclaration(node, true);
- }
- }
-
- return super.parseStatementContent(context, topLevel);
- }
-
- parseAccessModifier() {
- return this.tsParseModifier(["public", "protected", "private"]);
- }
-
- parseClassMember(classBody, member, state, constructorAllowsSuper) {
- const accessibility = this.parseAccessModifier();
- if (accessibility) member.accessibility = accessibility;
- super.parseClassMember(classBody, member, state, constructorAllowsSuper);
- }
-
- parseClassMemberWithIsStatic(classBody, member, state, isStatic, constructorAllowsSuper) {
- const methodOrProp = member;
- const prop = member;
- const propOrIdx = member;
- let abstract = false,
- readonly = false;
- const mod = this.tsParseModifier(["abstract", "readonly"]);
-
- switch (mod) {
- case "readonly":
- readonly = true;
- abstract = !!this.tsParseModifier(["abstract"]);
- break;
-
- case "abstract":
- abstract = true;
- readonly = !!this.tsParseModifier(["readonly"]);
- break;
- }
-
- if (abstract) methodOrProp.abstract = true;
- if (readonly) propOrIdx.readonly = true;
-
- if (!abstract && !isStatic && !methodOrProp.accessibility) {
- const idx = this.tsTryParseIndexSignature(member);
-
- if (idx) {
- classBody.body.push(idx);
- return;
- }
- }
-
- if (readonly) {
- methodOrProp.static = isStatic;
- this.parseClassPropertyName(prop);
- this.parsePostMemberNameModifiers(methodOrProp);
- this.pushClassProperty(classBody, prop);
- return;
- }
-
- super.parseClassMemberWithIsStatic(classBody, member, state, isStatic, constructorAllowsSuper);
- }
-
- parsePostMemberNameModifiers(methodOrProp) {
- const optional = this.eat(types.question);
- if (optional) methodOrProp.optional = true;
- }
-
- parseExpressionStatement(node, expr) {
- const decl = expr.type === "Identifier" ? this.tsParseExpressionStatement(node, expr) : undefined;
- return decl || super.parseExpressionStatement(node, expr);
- }
-
- shouldParseExportDeclaration() {
- if (this.tsIsDeclarationStart()) return true;
- return super.shouldParseExportDeclaration();
- }
-
- parseConditional(expr, noIn, startPos, startLoc, refNeedsArrowPos) {
- if (!refNeedsArrowPos || !this.match(types.question)) {
- return super.parseConditional(expr, noIn, startPos, startLoc, refNeedsArrowPos);
- }
-
- const state = this.state.clone();
-
- try {
- return super.parseConditional(expr, noIn, startPos, startLoc);
- } catch (err) {
- if (!(err instanceof SyntaxError)) {
- throw err;
- }
-
- this.state = state;
- refNeedsArrowPos.start = err.pos || this.state.start;
- return expr;
- }
- }
-
- parseParenItem(node, startPos, startLoc) {
- node = super.parseParenItem(node, startPos, startLoc);
-
- if (this.eat(types.question)) {
- node.optional = true;
- this.resetEndLocation(node);
- }
-
- if (this.match(types.colon)) {
- const typeCastNode = this.startNodeAt(startPos, startLoc);
- typeCastNode.expression = node;
- typeCastNode.typeAnnotation = this.tsParseTypeAnnotation();
- return this.finishNode(typeCastNode, "TSTypeCastExpression");
- }
-
- return node;
- }
-
- parseExportDeclaration(node) {
- const startPos = this.state.start;
- const startLoc = this.state.startLoc;
- const isDeclare = this.eatContextual("declare");
- let declaration;
-
- if (this.match(types.name)) {
- declaration = this.tsTryParseExportDeclaration();
- }
-
- if (!declaration) {
- declaration = super.parseExportDeclaration(node);
- }
-
- if (declaration && isDeclare) {
- this.resetStartLocation(declaration, startPos, startLoc);
- declaration.declare = true;
- }
-
- return declaration;
- }
-
- parseClassId(node, isStatement, optionalId) {
- if ((!isStatement || optionalId) && this.isContextual("implements")) {
- return;
- }
-
- super.parseClassId(...arguments);
- const typeParameters = this.tsTryParseTypeParameters();
- if (typeParameters) node.typeParameters = typeParameters;
- }
-
- parseClassProperty(node) {
- if (!node.optional && this.eat(types.bang)) {
- node.definite = true;
- }
-
- const type = this.tsTryParseTypeAnnotation();
- if (type) node.typeAnnotation = type;
- return super.parseClassProperty(node);
- }
-
- pushClassMethod(classBody, method, isGenerator, isAsync, isConstructor, allowsDirectSuper) {
- const typeParameters = this.tsTryParseTypeParameters();
- if (typeParameters) method.typeParameters = typeParameters;
- super.pushClassMethod(classBody, method, isGenerator, isAsync, isConstructor, allowsDirectSuper);
- }
-
- pushClassPrivateMethod(classBody, method, isGenerator, isAsync) {
- const typeParameters = this.tsTryParseTypeParameters();
- if (typeParameters) method.typeParameters = typeParameters;
- super.pushClassPrivateMethod(classBody, method, isGenerator, isAsync);
- }
-
- parseClassSuper(node) {
- super.parseClassSuper(node);
-
- if (node.superClass && this.isRelational("<")) {
- node.superTypeParameters = this.tsParseTypeArguments();
- }
-
- if (this.eatContextual("implements")) {
- node.implements = this.tsParseHeritageClause("implements");
- }
- }
-
- parseObjPropValue(prop, ...args) {
- const typeParameters = this.tsTryParseTypeParameters();
- if (typeParameters) prop.typeParameters = typeParameters;
- super.parseObjPropValue(prop, ...args);
- }
-
- parseFunctionParams(node, allowModifiers) {
- const typeParameters = this.tsTryParseTypeParameters();
- if (typeParameters) node.typeParameters = typeParameters;
- super.parseFunctionParams(node, allowModifiers);
- }
-
- parseVarId(decl, kind) {
- super.parseVarId(decl, kind);
-
- if (decl.id.type === "Identifier" && this.eat(types.bang)) {
- decl.definite = true;
- }
-
- const type = this.tsTryParseTypeAnnotation();
-
- if (type) {
- decl.id.typeAnnotation = type;
- this.resetEndLocation(decl.id);
- }
- }
-
- parseAsyncArrowFromCallExpression(node, call) {
- if (this.match(types.colon)) {
- node.returnType = this.tsParseTypeAnnotation();
- }
-
- return super.parseAsyncArrowFromCallExpression(node, call);
- }
-
- parseMaybeAssign(...args) {
- let jsxError;
-
- if (this.match(types.jsxTagStart)) {
- const context = this.curContext();
- assert(context === types$1.j_oTag);
- assert(this.state.context[this.state.context.length - 2] === types$1.j_expr);
- const state = this.state.clone();
-
- try {
- return super.parseMaybeAssign(...args);
- } catch (err) {
- if (!(err instanceof SyntaxError)) {
- throw err;
- }
-
- this.state = state;
- assert(this.curContext() === types$1.j_oTag);
- this.state.context.pop();
- assert(this.curContext() === types$1.j_expr);
- this.state.context.pop();
- jsxError = err;
- }
- }
-
- if (jsxError === undefined && !this.isRelational("<")) {
- return super.parseMaybeAssign(...args);
- }
-
- let arrowExpression;
- let typeParameters;
- const state = this.state.clone();
-
- try {
- typeParameters = this.tsParseTypeParameters();
- arrowExpression = super.parseMaybeAssign(...args);
-
- if (arrowExpression.type !== "ArrowFunctionExpression" || arrowExpression.extra && arrowExpression.extra.parenthesized) {
- this.unexpected();
- }
- } catch (err) {
- if (!(err instanceof SyntaxError)) {
- throw err;
- }
-
- if (jsxError) {
- throw jsxError;
- }
-
- assert(!this.hasPlugin("jsx"));
- this.state = state;
- return super.parseMaybeAssign(...args);
- }
-
- if (typeParameters && typeParameters.params.length !== 0) {
- this.resetStartLocationFromNode(arrowExpression, typeParameters);
- }
-
- arrowExpression.typeParameters = typeParameters;
- return arrowExpression;
- }
-
- parseMaybeUnary(refShorthandDefaultPos) {
- if (!this.hasPlugin("jsx") && this.isRelational("<")) {
- return this.tsParseTypeAssertion();
- } else {
- return super.parseMaybeUnary(refShorthandDefaultPos);
- }
- }
-
- parseArrow(node) {
- if (this.match(types.colon)) {
- const state = this.state.clone();
-
- try {
- const returnType = this.tsParseTypeOrTypePredicateAnnotation(types.colon);
-
- if (this.canInsertSemicolon() || !this.match(types.arrow)) {
- this.state = state;
- return undefined;
- }
-
- node.returnType = returnType;
- } catch (err) {
- if (err instanceof SyntaxError) {
- this.state = state;
- } else {
- throw err;
- }
- }
- }
-
- return super.parseArrow(node);
- }
-
- parseAssignableListItemTypes(param) {
- if (this.eat(types.question)) {
- if (param.type !== "Identifier") {
- throw this.raise(param.start, "A binding pattern parameter cannot be optional in an implementation signature.");
- }
-
- param.optional = true;
- }
-
- const type = this.tsTryParseTypeAnnotation();
- if (type) param.typeAnnotation = type;
- this.resetEndLocation(param);
- return param;
- }
-
- toAssignable(node, isBinding, contextDescription) {
- switch (node.type) {
- case "TSTypeCastExpression":
- return super.toAssignable(this.typeCastToParameter(node), isBinding, contextDescription);
-
- case "TSParameterProperty":
- return super.toAssignable(node, isBinding, contextDescription);
-
- case "TSAsExpression":
- case "TSNonNullExpression":
- case "TSTypeAssertion":
- node.expression = this.toAssignable(node.expression, isBinding, contextDescription);
- return node;
-
- default:
- return super.toAssignable(node, isBinding, contextDescription);
- }
- }
-
- checkLVal(expr, bindingType = BIND_NONE, checkClashes, contextDescription) {
- switch (expr.type) {
- case "TSTypeCastExpression":
- return;
-
- case "TSParameterProperty":
- this.checkLVal(expr.parameter, bindingType, checkClashes, "parameter property");
- return;
-
- case "TSAsExpression":
- case "TSNonNullExpression":
- case "TSTypeAssertion":
- this.checkLVal(expr.expression, bindingType, checkClashes, contextDescription);
- return;
-
- default:
- super.checkLVal(expr, bindingType, checkClashes, contextDescription);
- return;
- }
- }
-
- parseBindingAtom() {
- switch (this.state.type) {
- case types._this:
- return this.parseIdentifier(true);
-
- default:
- return super.parseBindingAtom();
- }
- }
-
- parseMaybeDecoratorArguments(expr) {
- if (this.isRelational("<")) {
- const typeArguments = this.tsParseTypeArguments();
-
- if (this.match(types.parenL)) {
- const call = super.parseMaybeDecoratorArguments(expr);
- call.typeParameters = typeArguments;
- return call;
- }
-
- this.unexpected(this.state.start, types.parenL);
- }
-
- return super.parseMaybeDecoratorArguments(expr);
- }
-
- isClassMethod() {
- return this.isRelational("<") || super.isClassMethod();
- }
-
- isClassProperty() {
- return this.match(types.bang) || this.match(types.colon) || super.isClassProperty();
- }
-
- parseMaybeDefault(...args) {
- const node = super.parseMaybeDefault(...args);
-
- if (node.type === "AssignmentPattern" && node.typeAnnotation && node.right.start < node.typeAnnotation.start) {
- this.raise(node.typeAnnotation.start, "Type annotations must come before default assignments, " + "e.g. instead of `age = 25: number` use `age: number = 25`");
- }
-
- return node;
- }
-
- getTokenFromCode(code) {
- if (this.state.inType && (code === 62 || code === 60)) {
- return this.finishOp(types.relational, 1);
- } else {
- return super.getTokenFromCode(code);
- }
- }
-
- toAssignableList(exprList, isBinding, contextDescription) {
- for (let i = 0; i < exprList.length; i++) {
- const expr = exprList[i];
- if (!expr) continue;
-
- switch (expr.type) {
- case "TSTypeCastExpression":
- exprList[i] = this.typeCastToParameter(expr);
- break;
-
- case "TSAsExpression":
- case "TSTypeAssertion":
- this.raise(expr.start, "Unexpected type cast in parameter position.");
- break;
- }
- }
-
- return super.toAssignableList(exprList, isBinding, contextDescription);
- }
-
- typeCastToParameter(node) {
- node.expression.typeAnnotation = node.typeAnnotation;
- this.resetEndLocation(node.expression, node.typeAnnotation.end, node.typeAnnotation.loc.end);
- return node.expression;
- }
-
- toReferencedList(exprList, isInParens) {
- for (let i = 0; i < exprList.length; i++) {
- const expr = exprList[i];
-
- if (expr && expr._exprListItem && expr.type === "TsTypeCastExpression") {
- this.raise(expr.start, "Did not expect a type annotation here.");
- }
- }
-
- return exprList;
- }
-
- shouldParseArrow() {
- return this.match(types.colon) || super.shouldParseArrow();
- }
-
- shouldParseAsyncArrow() {
- return this.match(types.colon) || super.shouldParseAsyncArrow();
- }
-
- canHaveLeadingDecorator() {
- return super.canHaveLeadingDecorator() || this.isAbstractClass();
- }
-
- jsxParseOpeningElementAfterName(node) {
- if (this.isRelational("<")) {
- const typeArguments = this.tsTryParseAndCatch(() => this.tsParseTypeArguments());
- if (typeArguments) node.typeParameters = typeArguments;
- }
-
- return super.jsxParseOpeningElementAfterName(node);
- }
-
- getGetterSetterExpectedParamCount(method) {
- const baseCount = super.getGetterSetterExpectedParamCount(method);
- const firstParam = method.params[0];
- const hasContextParam = firstParam && firstParam.type === "Identifier" && firstParam.name === "this";
- return hasContextParam ? baseCount + 1 : baseCount;
- }
-
-});
-
-types.placeholder = new TokenType("%%", {
- startsExpr: true
-});
-var placeholders = (superClass => class extends superClass {
- parsePlaceholder(expectedNode) {
- if (this.match(types.placeholder)) {
- const node = this.startNode();
- this.next();
- this.assertNoSpace("Unexpected space in placeholder.");
- node.name = super.parseIdentifier(true);
- this.assertNoSpace("Unexpected space in placeholder.");
- this.expect(types.placeholder);
- return this.finishPlaceholder(node, expectedNode);
- }
- }
-
- finishPlaceholder(node, expectedNode) {
- const isFinished = !!(node.expectedNode && node.type === "Placeholder");
- node.expectedNode = expectedNode;
- return isFinished ? node : this.finishNode(node, "Placeholder");
- }
-
- getTokenFromCode(code) {
- if (code === 37 && this.input.charCodeAt(this.state.pos + 1) === 37) {
- return this.finishOp(types.placeholder, 2);
- }
-
- return super.getTokenFromCode(...arguments);
- }
-
- parseExprAtom() {
- return this.parsePlaceholder("Expression") || super.parseExprAtom(...arguments);
- }
-
- parseIdentifier() {
- return this.parsePlaceholder("Identifier") || super.parseIdentifier(...arguments);
- }
-
- checkReservedWord(word) {
- if (word !== undefined) super.checkReservedWord(...arguments);
- }
-
- parseBindingAtom() {
- return this.parsePlaceholder("Pattern") || super.parseBindingAtom(...arguments);
- }
-
- checkLVal(expr) {
- if (expr.type !== "Placeholder") super.checkLVal(...arguments);
- }
-
- toAssignable(node) {
- if (node && node.type === "Placeholder" && node.expectedNode === "Expression") {
- node.expectedNode = "Pattern";
- return node;
- }
-
- return super.toAssignable(...arguments);
- }
-
- verifyBreakContinue(node) {
- if (node.label && node.label.type === "Placeholder") return;
- super.verifyBreakContinue(...arguments);
- }
-
- parseExpressionStatement(node, expr) {
- if (expr.type !== "Placeholder" || expr.extra && expr.extra.parenthesized) {
- return super.parseExpressionStatement(...arguments);
- }
-
- if (this.match(types.colon)) {
- const stmt = node;
- stmt.label = this.finishPlaceholder(expr, "Identifier");
- this.next();
- stmt.body = this.parseStatement("label");
- return this.finishNode(stmt, "LabeledStatement");
- }
-
- this.semicolon();
- node.name = expr.name;
- return this.finishPlaceholder(node, "Statement");
- }
-
- parseBlock() {
- return this.parsePlaceholder("BlockStatement") || super.parseBlock(...arguments);
- }
-
- parseFunctionId() {
- return this.parsePlaceholder("Identifier") || super.parseFunctionId(...arguments);
- }
-
- parseClass(node, isStatement, optionalId) {
- const type = isStatement ? "ClassDeclaration" : "ClassExpression";
- this.next();
- this.takeDecorators(node);
- const placeholder = this.parsePlaceholder("Identifier");
-
- if (placeholder) {
- if (this.match(types._extends) || this.match(types.placeholder) || this.match(types.braceL)) {
- node.id = placeholder;
- } else if (optionalId || !isStatement) {
- node.id = null;
- node.body = this.finishPlaceholder(placeholder, "ClassBody");
- return this.finishNode(node, type);
- } else {
- this.unexpected(null, "A class name is required");
- }
- } else {
- this.parseClassId(node, isStatement, optionalId);
- }
-
- this.parseClassSuper(node);
- node.body = this.parsePlaceholder("ClassBody") || this.parseClassBody(!!node.superClass);
- return this.finishNode(node, type);
- }
-
- parseExport(node) {
- const placeholder = this.parsePlaceholder("Identifier");
- if (!placeholder) return super.parseExport(...arguments);
-
- if (!this.isContextual("from") && !this.match(types.comma)) {
- node.specifiers = [];
- node.source = null;
- node.declaration = this.finishPlaceholder(placeholder, "Declaration");
- return this.finishNode(node, "ExportNamedDeclaration");
- }
-
- this.expectPlugin("exportDefaultFrom");
- const specifier = this.startNode();
- specifier.exported = placeholder;
- node.specifiers = [this.finishNode(specifier, "ExportDefaultSpecifier")];
- return super.parseExport(node);
- }
-
- maybeParseExportDefaultSpecifier(node) {
- if (node.specifiers && node.specifiers.length > 0) {
- return true;
- }
-
- return super.maybeParseExportDefaultSpecifier(...arguments);
- }
-
- checkExport(node) {
- const {
- specifiers
- } = node;
-
- if (specifiers && specifiers.length) {
- node.specifiers = specifiers.filter(node => node.exported.type === "Placeholder");
- }
-
- super.checkExport(node);
- node.specifiers = specifiers;
- }
-
- parseImport(node) {
- const placeholder = this.parsePlaceholder("Identifier");
- if (!placeholder) return super.parseImport(...arguments);
- node.specifiers = [];
-
- if (!this.isContextual("from") && !this.match(types.comma)) {
- node.source = this.finishPlaceholder(placeholder, "StringLiteral");
- this.semicolon();
- return this.finishNode(node, "ImportDeclaration");
- }
-
- const specifier = this.startNodeAtNode(placeholder);
- specifier.local = placeholder;
- this.finishNode(specifier, "ImportDefaultSpecifier");
- node.specifiers.push(specifier);
-
- if (this.eat(types.comma)) {
- const hasStarImport = this.maybeParseStarImportSpecifier(node);
- if (!hasStarImport) this.parseNamedImportSpecifiers(node);
- }
-
- this.expectContextual("from");
- node.source = this.parseImportSource();
- this.semicolon();
- return this.finishNode(node, "ImportDeclaration");
- }
-
- parseImportSource() {
- return this.parsePlaceholder("StringLiteral") || super.parseImportSource(...arguments);
- }
-
-});
-
-function hasPlugin(plugins, name) {
- return plugins.some(plugin => {
- if (Array.isArray(plugin)) {
- return plugin[0] === name;
- } else {
- return plugin === name;
- }
- });
-}
-function getPluginOption(plugins, name, option) {
- const plugin = plugins.find(plugin => {
- if (Array.isArray(plugin)) {
- return plugin[0] === name;
- } else {
- return plugin === name;
- }
- });
-
- if (plugin && Array.isArray(plugin)) {
- return plugin[1][option];
- }
-
- return null;
-}
-const PIPELINE_PROPOSALS = ["minimal", "smart", "fsharp"];
-function validatePlugins(plugins) {
- if (hasPlugin(plugins, "decorators")) {
- if (hasPlugin(plugins, "decorators-legacy")) {
- throw new Error("Cannot use the decorators and decorators-legacy plugin together");
- }
-
- const decoratorsBeforeExport = getPluginOption(plugins, "decorators", "decoratorsBeforeExport");
-
- if (decoratorsBeforeExport == 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 decoratorsBeforeExport !== "boolean") {
- throw new Error("'decoratorsBeforeExport' must be a boolean.");
- }
- }
-
- if (hasPlugin(plugins, "flow") && hasPlugin(plugins, "typescript")) {
- throw new Error("Cannot combine flow and typescript plugins.");
- }
-
- if (hasPlugin(plugins, "pipelineOperator") && !PIPELINE_PROPOSALS.includes(getPluginOption(plugins, "pipelineOperator", "proposal"))) {
- throw new Error("'pipelineOperator' requires 'proposal' option whose value should be one of: " + PIPELINE_PROPOSALS.map(p => `'${p}'`).join(", "));
- }
-}
-const mixinPlugins = {
- estree,
- jsx,
- flow,
- typescript,
- placeholders
-};
-const mixinPluginNames = Object.keys(mixinPlugins);
-
-const defaultOptions = {
- 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
-};
-function getOptions(opts) {
- const options = {};
-
- for (let _i = 0, _Object$keys = Object.keys(defaultOptions); _i < _Object$keys.length; _i++) {
- const key = _Object$keys[_i];
- options[key] = opts && opts[key] != null ? opts[key] : defaultOptions[key];
- }
-
- return options;
-}
-
-class Position {
- constructor(line, col) {
- this.line = line;
- this.column = col;
- }
-
-}
-class SourceLocation {
- constructor(start, end) {
- this.start = start;
- this.end = end;
- }
-
-}
-function getLineInfo(input, offset) {
- let line = 1;
- let lineStart = 0;
- let match;
- lineBreakG.lastIndex = 0;
-
- while ((match = lineBreakG.exec(input)) && match.index < offset) {
- line++;
- lineStart = lineBreakG.lastIndex;
- }
-
- return new Position(line, offset - lineStart);
-}
-
-class BaseParser {
- constructor() {
- this.sawUnambiguousESM = false;
- }
-
- hasPlugin(name) {
- return this.plugins.has(name);
- }
-
- getPluginOption(plugin, name) {
- if (this.hasPlugin(plugin)) return this.plugins.get(plugin)[name];
- }
-
-}
-
-function last(stack) {
- return stack[stack.length - 1];
-}
-
-class CommentsParser extends BaseParser {
- addComment(comment) {
- if (this.filename) comment.loc.filename = this.filename;
- this.state.trailingComments.push(comment);
- this.state.leadingComments.push(comment);
- }
-
- processComment(node) {
- if (node.type === "Program" && node.body.length > 0) return;
- const stack = this.state.commentStack;
- let firstChild, lastChild, trailingComments, i, j;
-
- if (this.state.trailingComments.length > 0) {
- if (this.state.trailingComments[0].start >= node.end) {
- trailingComments = this.state.trailingComments;
- this.state.trailingComments = [];
- } else {
- this.state.trailingComments.length = 0;
- }
- } else if (stack.length > 0) {
- const lastInStack = last(stack);
-
- if (lastInStack.trailingComments && lastInStack.trailingComments[0].start >= node.end) {
- trailingComments = lastInStack.trailingComments;
- delete lastInStack.trailingComments;
- }
- }
-
- if (stack.length > 0 && last(stack).start >= node.start) {
- firstChild = stack.pop();
- }
-
- while (stack.length > 0 && last(stack).start >= node.start) {
- lastChild = stack.pop();
- }
-
- if (!lastChild && firstChild) lastChild = firstChild;
-
- if (firstChild && this.state.leadingComments.length > 0) {
- const lastComment = last(this.state.leadingComments);
-
- if (firstChild.type === "ObjectProperty") {
- if (lastComment.start >= node.start) {
- if (this.state.commentPreviousNode) {
- for (j = 0; j < this.state.leadingComments.length; j++) {
- if (this.state.leadingComments[j].end < this.state.commentPreviousNode.end) {
- this.state.leadingComments.splice(j, 1);
- j--;
- }
- }
-
- if (this.state.leadingComments.length > 0) {
- firstChild.trailingComments = this.state.leadingComments;
- this.state.leadingComments = [];
- }
- }
- }
- } else if (node.type === "CallExpression" && node.arguments && node.arguments.length) {
- const lastArg = last(node.arguments);
-
- if (lastArg && lastComment.start >= lastArg.start && lastComment.end <= node.end) {
- if (this.state.commentPreviousNode) {
- for (j = 0; j < this.state.leadingComments.length; j++) {
- if (this.state.leadingComments[j].end < this.state.commentPreviousNode.end) {
- this.state.leadingComments.splice(j, 1);
- j--;
- }
- }
-
- if (this.state.leadingComments.length > 0) {
- lastArg.trailingComments = this.state.leadingComments;
- this.state.leadingComments = [];
- }
- }
- }
- }
- }
-
- if (lastChild) {
- if (lastChild.leadingComments) {
- if (lastChild !== node && lastChild.leadingComments.length > 0 && last(lastChild.leadingComments).end <= node.start) {
- node.leadingComments = lastChild.leadingComments;
- delete lastChild.leadingComments;
- } else {
- for (i = lastChild.leadingComments.length - 2; i >= 0; --i) {
- if (lastChild.leadingComments[i].end <= node.start) {
- node.leadingComments = lastChild.leadingComments.splice(0, i + 1);
- break;
- }
- }
- }
- }
- } else if (this.state.leadingComments.length > 0) {
- if (last(this.state.leadingComments).end <= node.start) {
- if (this.state.commentPreviousNode) {
- for (j = 0; j < this.state.leadingComments.length; j++) {
- if (this.state.leadingComments[j].end < this.state.commentPreviousNode.end) {
- this.state.leadingComments.splice(j, 1);
- j--;
- }
- }
- }
-
- if (this.state.leadingComments.length > 0) {
- node.leadingComments = this.state.leadingComments;
- this.state.leadingComments = [];
- }
- } else {
- for (i = 0; i < this.state.leadingComments.length; i++) {
- if (this.state.leadingComments[i].end > node.start) {
- break;
- }
- }
-
- const leadingComments = this.state.leadingComments.slice(0, i);
-
- if (leadingComments.length) {
- node.leadingComments = leadingComments;
- }
-
- trailingComments = this.state.leadingComments.slice(i);
-
- if (trailingComments.length === 0) {
- trailingComments = null;
- }
- }
- }
-
- this.state.commentPreviousNode = node;
-
- if (trailingComments) {
- if (trailingComments.length && trailingComments[0].start >= node.start && last(trailingComments).end <= node.end) {
- node.innerComments = trailingComments;
- } else {
- node.trailingComments = trailingComments;
- }
- }
-
- stack.push(node);
- }
-
-}
-
-class LocationParser extends CommentsParser {
- getLocationForPosition(pos) {
- let loc;
- if (pos === this.state.start) loc = this.state.startLoc;else if (pos === this.state.lastTokStart) loc = this.state.lastTokStartLoc;else if (pos === this.state.end) loc = this.state.endLoc;else if (pos === this.state.lastTokEnd) loc = this.state.lastTokEndLoc;else loc = getLineInfo(this.input, pos);
- return loc;
- }
-
- raise(pos, message, {
- missingPluginNames,
- code
- } = {}) {
- const loc = this.getLocationForPosition(pos);
- message += ` (${loc.line}:${loc.column})`;
- const err = new SyntaxError(message);
- err.pos = pos;
- err.loc = loc;
-
- if (missingPluginNames) {
- err.missingPlugin = missingPluginNames;
- }
-
- if (code !== undefined) {
- err.code = code;
- }
-
- throw err;
- }
-
-}
-
-class State {
- constructor() {
- this.potentialArrowAt = -1;
- this.noArrowAt = [];
- this.noArrowParamsConversionAt = [];
- this.commaAfterSpreadAt = -1;
- this.inParameters = false;
- this.maybeInArrowParameters = false;
- this.inPipeline = false;
- this.inType = false;
- this.noAnonFunctionType = false;
- this.inPropertyName = false;
- this.inClassProperty = false;
- this.hasFlowComment = false;
- this.isIterator = false;
- this.topicContext = {
- maxNumOfResolvableTopics: 0,
- maxTopicIndex: null
- };
- this.soloAwait = false;
- this.inFSharpPipelineDirectBody = false;
- this.classLevel = 0;
- this.labels = [];
- this.decoratorStack = [[]];
- this.yieldPos = 0;
- this.awaitPos = 0;
- this.tokens = [];
- this.comments = [];
- this.trailingComments = [];
- this.leadingComments = [];
- this.commentStack = [];
- this.commentPreviousNode = null;
- this.pos = 0;
- this.lineStart = 0;
- this.type = types.eof;
- this.value = null;
- this.start = 0;
- this.end = 0;
- this.lastTokEndLoc = null;
- this.lastTokStartLoc = null;
- this.lastTokStart = 0;
- this.lastTokEnd = 0;
- this.context = [types$1.braceStatement];
- this.exprAllowed = true;
- this.containsEsc = false;
- this.containsOctal = false;
- this.octalPosition = null;
- this.exportedIdentifiers = [];
- this.invalidTemplateEscapePosition = null;
- }
-
- init(options) {
- this.strict = options.strictMode === false ? false : options.sourceType === "module";
- this.curLine = options.startLine;
- this.startLoc = this.endLoc = this.curPosition();
- }
-
- curPosition() {
- return new Position(this.curLine, this.pos - this.lineStart);
- }
-
- clone(skipArrays) {
- const state = new State();
- const keys = Object.keys(this);
-
- for (let i = 0, length = keys.length; i < length; i++) {
- const key = keys[i];
- let val = this[key];
-
- if (!skipArrays && Array.isArray(val)) {
- val = val.slice();
- }
-
- state[key] = val;
- }
-
- return state;
- }
-
-}
-
-var _isDigit = function isDigit(code) {
- return code >= 48 && code <= 57;
-};
-const VALID_REGEX_FLAGS = new Set(["g", "m", "s", "i", "y", "u"]);
-const forbiddenNumericSeparatorSiblings = {
- decBinOct: [46, 66, 69, 79, 95, 98, 101, 111],
- hex: [46, 88, 95, 120]
-};
-const allowedNumericSeparatorSiblings = {};
-allowedNumericSeparatorSiblings.bin = [48, 49];
-allowedNumericSeparatorSiblings.oct = [...allowedNumericSeparatorSiblings.bin, 50, 51, 52, 53, 54, 55];
-allowedNumericSeparatorSiblings.dec = [...allowedNumericSeparatorSiblings.oct, 56, 57];
-allowedNumericSeparatorSiblings.hex = [...allowedNumericSeparatorSiblings.dec, 65, 66, 67, 68, 69, 70, 97, 98, 99, 100, 101, 102];
-class Token {
- constructor(state) {
- this.type = state.type;
- this.value = state.value;
- this.start = state.start;
- this.end = state.end;
- this.loc = new SourceLocation(state.startLoc, state.endLoc);
- }
-
-}
-class Tokenizer extends LocationParser {
- constructor(options, input) {
- super();
- this.state = new State();
- this.state.init(options);
- this.input = input;
- this.length = input.length;
- this.isLookahead = false;
- }
-
- next() {
- if (this.options.tokens && !this.isLookahead) {
- this.state.tokens.push(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(type) {
- if (this.match(type)) {
- this.next();
- return true;
- } else {
- return false;
- }
- }
-
- match(type) {
- return this.state.type === type;
- }
-
- lookahead() {
- const old = this.state;
- this.state = old.clone(true);
- this.isLookahead = true;
- this.next();
- this.isLookahead = false;
- const curr = this.state;
- this.state = old;
- return curr;
- }
-
- setStrict(strict) {
- this.state.strict = strict;
- if (!this.match(types.num) && !this.match(types.string)) return;
- this.state.pos = this.state.start;
-
- while (this.state.pos < this.state.lineStart) {
- this.state.lineStart = this.input.lastIndexOf("\n", this.state.lineStart - 2) + 1;
- --this.state.curLine;
- }
-
- this.nextToken();
- }
-
- curContext() {
- return this.state.context[this.state.context.length - 1];
- }
-
- nextToken() {
- const curContext = this.curContext();
- if (!curContext || !curContext.preserveSpace) this.skipSpace();
- this.state.containsOctal = false;
- this.state.octalPosition = null;
- this.state.start = this.state.pos;
- this.state.startLoc = this.state.curPosition();
-
- if (this.state.pos >= this.length) {
- this.finishToken(types.eof);
- return;
- }
-
- if (curContext.override) {
- curContext.override(this);
- } else {
- this.getTokenFromCode(this.input.codePointAt(this.state.pos));
- }
- }
-
- pushComment(block, text, start, end, startLoc, endLoc) {
- const comment = {
- type: block ? "CommentBlock" : "CommentLine",
- value: text,
- start: start,
- end: end,
- loc: new SourceLocation(startLoc, endLoc)
- };
- if (this.options.tokens) this.state.tokens.push(comment);
- this.state.comments.push(comment);
- this.addComment(comment);
- }
-
- skipBlockComment() {
- const startLoc = this.state.curPosition();
- const start = this.state.pos;
- const end = this.input.indexOf("*/", this.state.pos += 2);
- if (end === -1) this.raise(this.state.pos - 2, "Unterminated comment");
- this.state.pos = end + 2;
- lineBreakG.lastIndex = start;
- let match;
-
- while ((match = lineBreakG.exec(this.input)) && match.index < this.state.pos) {
- ++this.state.curLine;
- this.state.lineStart = match.index + match[0].length;
- }
-
- if (this.isLookahead) return;
- this.pushComment(true, this.input.slice(start + 2, end), start, this.state.pos, startLoc, this.state.curPosition());
- }
-
- skipLineComment(startSkip) {
- const start = this.state.pos;
- const startLoc = this.state.curPosition();
- let ch = this.input.charCodeAt(this.state.pos += startSkip);
-
- if (this.state.pos < this.length) {
- while (ch !== 10 && ch !== 13 && ch !== 8232 && ch !== 8233 && ++this.state.pos < this.length) {
- ch = this.input.charCodeAt(this.state.pos);
- }
- }
-
- if (this.isLookahead) return;
- this.pushComment(false, this.input.slice(start + startSkip, this.state.pos), start, this.state.pos, startLoc, this.state.curPosition());
- }
-
- skipSpace() {
- loop: while (this.state.pos < this.length) {
- const ch = this.input.charCodeAt(this.state.pos);
-
- switch (ch) {
- case 32:
- case 160:
- case 9:
- ++this.state.pos;
- break;
-
- case 13:
- if (this.input.charCodeAt(this.state.pos + 1) === 10) {
- ++this.state.pos;
- }
-
- case 10:
- case 8232:
- case 8233:
- ++this.state.pos;
- ++this.state.curLine;
- this.state.lineStart = this.state.pos;
- break;
-
- case 47:
- switch (this.input.charCodeAt(this.state.pos + 1)) {
- case 42:
- this.skipBlockComment();
- break;
-
- case 47:
- this.skipLineComment(2);
- break;
-
- default:
- break loop;
- }
-
- break;
-
- default:
- if (isWhitespace(ch)) {
- ++this.state.pos;
- } else {
- break loop;
- }
-
- }
- }
- }
-
- finishToken(type, val) {
- this.state.end = this.state.pos;
- this.state.endLoc = this.state.curPosition();
- const prevType = this.state.type;
- this.state.type = type;
- this.state.value = val;
- if (!this.isLookahead) this.updateContext(prevType);
- }
-
- readToken_numberSign() {
- if (this.state.pos === 0 && this.readToken_interpreter()) {
- return;
- }
-
- const nextPos = this.state.pos + 1;
- const next = this.input.charCodeAt(nextPos);
-
- if (next >= 48 && next <= 57) {
- this.raise(this.state.pos, "Unexpected digit after hash token");
- }
-
- if ((this.hasPlugin("classPrivateProperties") || this.hasPlugin("classPrivateMethods")) && this.state.classLevel > 0) {
- ++this.state.pos;
- this.finishToken(types.hash);
- return;
- } else if (this.getPluginOption("pipelineOperator", "proposal") === "smart") {
- this.finishOp(types.hash, 1);
- } else {
- this.raise(this.state.pos, "Unexpected character '#'");
- }
- }
-
- readToken_dot() {
- const next = this.input.charCodeAt(this.state.pos + 1);
-
- if (next >= 48 && next <= 57) {
- this.readNumber(true);
- return;
- }
-
- const next2 = this.input.charCodeAt(this.state.pos + 2);
-
- if (next === 46 && next2 === 46) {
- this.state.pos += 3;
- this.finishToken(types.ellipsis);
- } else {
- ++this.state.pos;
- this.finishToken(types.dot);
- }
- }
-
- readToken_slash() {
- if (this.state.exprAllowed && !this.state.inType) {
- ++this.state.pos;
- this.readRegexp();
- return;
- }
-
- const next = this.input.charCodeAt(this.state.pos + 1);
-
- if (next === 61) {
- this.finishOp(types.assign, 2);
- } else {
- this.finishOp(types.slash, 1);
- }
- }
-
- readToken_interpreter() {
- if (this.state.pos !== 0 || this.length < 2) return false;
- const start = this.state.pos;
- this.state.pos += 1;
- let ch = this.input.charCodeAt(this.state.pos);
- if (ch !== 33) return false;
-
- while (ch !== 10 && ch !== 13 && ch !== 8232 && ch !== 8233 && ++this.state.pos < this.length) {
- ch = this.input.charCodeAt(this.state.pos);
- }
-
- const value = this.input.slice(start + 2, this.state.pos);
- this.finishToken(types.interpreterDirective, value);
- return true;
- }
-
- readToken_mult_modulo(code) {
- let type = code === 42 ? types.star : types.modulo;
- let width = 1;
- let next = this.input.charCodeAt(this.state.pos + 1);
- const exprAllowed = this.state.exprAllowed;
-
- if (code === 42 && next === 42) {
- width++;
- next = this.input.charCodeAt(this.state.pos + 2);
- type = types.exponent;
- }
-
- if (next === 61 && !exprAllowed) {
- width++;
- type = types.assign;
- }
-
- this.finishOp(type, width);
- }
-
- readToken_pipe_amp(code) {
- const next = this.input.charCodeAt(this.state.pos + 1);
-
- if (next === code) {
- if (this.input.charCodeAt(this.state.pos + 2) === 61) {
- this.finishOp(types.assign, 3);
- } else {
- this.finishOp(code === 124 ? types.logicalOR : types.logicalAND, 2);
- }
-
- return;
- }
-
- if (code === 124) {
- if (next === 62) {
- this.finishOp(types.pipeline, 2);
- return;
- }
- }
-
- if (next === 61) {
- this.finishOp(types.assign, 2);
- return;
- }
-
- this.finishOp(code === 124 ? types.bitwiseOR : types.bitwiseAND, 1);
- }
-
- readToken_caret() {
- const next = this.input.charCodeAt(this.state.pos + 1);
-
- if (next === 61) {
- this.finishOp(types.assign, 2);
- } else {
- this.finishOp(types.bitwiseXOR, 1);
- }
- }
-
- readToken_plus_min(code) {
- const next = this.input.charCodeAt(this.state.pos + 1);
-
- if (next === code) {
- if (next === 45 && !this.inModule && this.input.charCodeAt(this.state.pos + 2) === 62 && (this.state.lastTokEnd === 0 || lineBreak.test(this.input.slice(this.state.lastTokEnd, this.state.pos)))) {
- this.skipLineComment(3);
- this.skipSpace();
- this.nextToken();
- return;
- }
-
- this.finishOp(types.incDec, 2);
- return;
- }
-
- if (next === 61) {
- this.finishOp(types.assign, 2);
- } else {
- this.finishOp(types.plusMin, 1);
- }
- }
-
- readToken_lt_gt(code) {
- const next = this.input.charCodeAt(this.state.pos + 1);
- let size = 1;
-
- if (next === code) {
- size = code === 62 && this.input.charCodeAt(this.state.pos + 2) === 62 ? 3 : 2;
-
- if (this.input.charCodeAt(this.state.pos + size) === 61) {
- this.finishOp(types.assign, size + 1);
- return;
- }
-
- this.finishOp(types.bitShift, size);
- return;
- }
-
- if (next === 33 && code === 60 && !this.inModule && this.input.charCodeAt(this.state.pos + 2) === 45 && this.input.charCodeAt(this.state.pos + 3) === 45) {
- this.skipLineComment(4);
- this.skipSpace();
- this.nextToken();
- return;
- }
-
- if (next === 61) {
- size = 2;
- }
-
- this.finishOp(types.relational, size);
- }
-
- readToken_eq_excl(code) {
- const next = this.input.charCodeAt(this.state.pos + 1);
-
- if (next === 61) {
- this.finishOp(types.equality, this.input.charCodeAt(this.state.pos + 2) === 61 ? 3 : 2);
- return;
- }
-
- if (code === 61 && next === 62) {
- this.state.pos += 2;
- this.finishToken(types.arrow);
- return;
- }
-
- this.finishOp(code === 61 ? types.eq : types.bang, 1);
- }
-
- readToken_question() {
- const next = this.input.charCodeAt(this.state.pos + 1);
- const next2 = this.input.charCodeAt(this.state.pos + 2);
-
- if (next === 63 && !this.state.inType) {
- if (next2 === 61) {
- this.finishOp(types.assign, 3);
- } else {
- this.finishOp(types.nullishCoalescing, 2);
- }
- } else if (next === 46 && !(next2 >= 48 && next2 <= 57)) {
- this.state.pos += 2;
- this.finishToken(types.questionDot);
- } else {
- ++this.state.pos;
- this.finishToken(types.question);
- }
- }
-
- getTokenFromCode(code) {
- switch (code) {
- case 46:
- this.readToken_dot();
- return;
-
- case 40:
- ++this.state.pos;
- this.finishToken(types.parenL);
- return;
-
- case 41:
- ++this.state.pos;
- this.finishToken(types.parenR);
- return;
-
- case 59:
- ++this.state.pos;
- this.finishToken(types.semi);
- return;
-
- case 44:
- ++this.state.pos;
- this.finishToken(types.comma);
- return;
-
- case 91:
- ++this.state.pos;
- this.finishToken(types.bracketL);
- return;
-
- case 93:
- ++this.state.pos;
- this.finishToken(types.bracketR);
- return;
-
- case 123:
- ++this.state.pos;
- this.finishToken(types.braceL);
- return;
-
- case 125:
- ++this.state.pos;
- this.finishToken(types.braceR);
- return;
-
- case 58:
- if (this.hasPlugin("functionBind") && this.input.charCodeAt(this.state.pos + 1) === 58) {
- this.finishOp(types.doubleColon, 2);
- } else {
- ++this.state.pos;
- this.finishToken(types.colon);
- }
-
- return;
-
- case 63:
- this.readToken_question();
- return;
-
- case 96:
- ++this.state.pos;
- this.finishToken(types.backQuote);
- return;
-
- case 48:
- {
- const next = this.input.charCodeAt(this.state.pos + 1);
-
- if (next === 120 || next === 88) {
- this.readRadixNumber(16);
- return;
- }
-
- if (next === 111 || next === 79) {
- this.readRadixNumber(8);
- return;
- }
-
- if (next === 98 || next === 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(code);
- return;
-
- case 47:
- this.readToken_slash();
- return;
-
- case 37:
- case 42:
- this.readToken_mult_modulo(code);
- return;
-
- case 124:
- case 38:
- this.readToken_pipe_amp(code);
- return;
-
- case 94:
- this.readToken_caret();
- return;
-
- case 43:
- case 45:
- this.readToken_plus_min(code);
- return;
-
- case 60:
- case 62:
- this.readToken_lt_gt(code);
- return;
-
- case 61:
- case 33:
- this.readToken_eq_excl(code);
- return;
-
- case 126:
- this.finishOp(types.tilde, 1);
- return;
-
- case 64:
- ++this.state.pos;
- this.finishToken(types.at);
- return;
-
- case 35:
- this.readToken_numberSign();
- return;
-
- case 92:
- this.readWord();
- return;
-
- default:
- if (isIdentifierStart(code)) {
- this.readWord();
- return;
- }
-
- }
-
- this.raise(this.state.pos, `Unexpected character '${String.fromCodePoint(code)}'`);
- }
-
- finishOp(type, size) {
- const str = this.input.slice(this.state.pos, this.state.pos + size);
- this.state.pos += size;
- this.finishToken(type, str);
- }
-
- readRegexp() {
- const start = this.state.pos;
- let escaped, inClass;
-
- for (;;) {
- if (this.state.pos >= this.length) {
- this.raise(start, "Unterminated regular expression");
- }
-
- const ch = this.input.charAt(this.state.pos);
-
- if (lineBreak.test(ch)) {
- this.raise(start, "Unterminated regular expression");
- }
-
- if (escaped) {
- escaped = false;
- } else {
- if (ch === "[") {
- inClass = true;
- } else if (ch === "]" && inClass) {
- inClass = false;
- } else if (ch === "/" && !inClass) {
- break;
- }
-
- escaped = ch === "\\";
- }
-
- ++this.state.pos;
- }
-
- const content = this.input.slice(start, this.state.pos);
- ++this.state.pos;
- let mods = "";
-
- while (this.state.pos < this.length) {
- const char = this.input[this.state.pos];
- const charCode = this.input.codePointAt(this.state.pos);
-
- if (VALID_REGEX_FLAGS.has(char)) {
- if (mods.indexOf(char) > -1) {
- this.raise(this.state.pos + 1, "Duplicate regular expression flag");
- }
-
- ++this.state.pos;
- mods += char;
- } else if (isIdentifierChar(charCode) || charCode === 92) {
- this.raise(this.state.pos + 1, "Invalid regular expression flag");
- } else {
- break;
- }
- }
-
- this.finishToken(types.regexp, {
- pattern: content,
- flags: mods
- });
- }
-
- readInt(radix, len) {
- const start = this.state.pos;
- const forbiddenSiblings = radix === 16 ? forbiddenNumericSeparatorSiblings.hex : forbiddenNumericSeparatorSiblings.decBinOct;
- const allowedSiblings = radix === 16 ? allowedNumericSeparatorSiblings.hex : radix === 10 ? allowedNumericSeparatorSiblings.dec : radix === 8 ? allowedNumericSeparatorSiblings.oct : allowedNumericSeparatorSiblings.bin;
- let total = 0;
-
- for (let i = 0, e = len == null ? Infinity : len; i < e; ++i) {
- const code = this.input.charCodeAt(this.state.pos);
- let val;
-
- if (this.hasPlugin("numericSeparator")) {
- const prev = this.input.charCodeAt(this.state.pos - 1);
- const next = this.input.charCodeAt(this.state.pos + 1);
-
- if (code === 95) {
- if (allowedSiblings.indexOf(next) === -1) {
- this.raise(this.state.pos, "Invalid or unexpected token");
- }
-
- if (forbiddenSiblings.indexOf(prev) > -1 || forbiddenSiblings.indexOf(next) > -1 || Number.isNaN(next)) {
- this.raise(this.state.pos, "Invalid or unexpected token");
- }
-
- ++this.state.pos;
- continue;
- }
- }
-
- if (code >= 97) {
- val = code - 97 + 10;
- } else if (code >= 65) {
- val = code - 65 + 10;
- } else if (_isDigit(code)) {
- val = code - 48;
- } else {
- val = Infinity;
- }
-
- if (val >= radix) break;
- ++this.state.pos;
- total = total * radix + val;
- }
-
- if (this.state.pos === start || len != null && this.state.pos - start !== len) {
- return null;
- }
-
- return total;
- }
-
- readRadixNumber(radix) {
- const start = this.state.pos;
- let isBigInt = false;
- this.state.pos += 2;
- const val = this.readInt(radix);
-
- if (val == null) {
- this.raise(this.state.start + 2, "Expected number in radix " + radix);
- }
-
- if (this.hasPlugin("bigInt")) {
- if (this.input.charCodeAt(this.state.pos) === 110) {
- ++this.state.pos;
- isBigInt = true;
- }
- }
-
- if (isIdentifierStart(this.input.codePointAt(this.state.pos))) {
- this.raise(this.state.pos, "Identifier directly after number");
- }
-
- if (isBigInt) {
- const str = this.input.slice(start, this.state.pos).replace(/[_n]/g, "");
- this.finishToken(types.bigint, str);
- return;
- }
-
- this.finishToken(types.num, val);
- }
-
- readNumber(startsWithDot) {
- const start = this.state.pos;
- let isFloat = false;
- let isBigInt = false;
-
- if (!startsWithDot && this.readInt(10) === null) {
- this.raise(start, "Invalid number");
- }
-
- let octal = this.state.pos - start >= 2 && this.input.charCodeAt(start) === 48;
-
- if (octal) {
- if (this.state.strict) {
- this.raise(start, "Legacy octal literals are not allowed in strict mode");
- }
-
- if (/[89]/.test(this.input.slice(start, this.state.pos))) {
- octal = false;
- }
- }
-
- let next = this.input.charCodeAt(this.state.pos);
-
- if (next === 46 && !octal) {
- ++this.state.pos;
- this.readInt(10);
- isFloat = true;
- next = this.input.charCodeAt(this.state.pos);
- }
-
- if ((next === 69 || next === 101) && !octal) {
- next = this.input.charCodeAt(++this.state.pos);
-
- if (next === 43 || next === 45) {
- ++this.state.pos;
- }
-
- if (this.readInt(10) === null) this.raise(start, "Invalid number");
- isFloat = true;
- next = this.input.charCodeAt(this.state.pos);
- }
-
- if (this.hasPlugin("bigInt")) {
- if (next === 110) {
- if (isFloat || octal) this.raise(start, "Invalid BigIntLiteral");
- ++this.state.pos;
- isBigInt = true;
- }
- }
-
- if (isIdentifierStart(this.input.codePointAt(this.state.pos))) {
- this.raise(this.state.pos, "Identifier directly after number");
- }
-
- const str = this.input.slice(start, this.state.pos).replace(/[_n]/g, "");
-
- if (isBigInt) {
- this.finishToken(types.bigint, str);
- return;
- }
-
- const val = octal ? parseInt(str, 8) : parseFloat(str);
- this.finishToken(types.num, val);
- }
-
- readCodePoint(throwOnInvalid) {
- const ch = this.input.charCodeAt(this.state.pos);
- let code;
-
- if (ch === 123) {
- const codePos = ++this.state.pos;
- code = this.readHexChar(this.input.indexOf("}", this.state.pos) - this.state.pos, throwOnInvalid);
- ++this.state.pos;
-
- if (code === null) {
- --this.state.invalidTemplateEscapePosition;
- } else if (code > 0x10ffff) {
- if (throwOnInvalid) {
- this.raise(codePos, "Code point out of bounds");
- } else {
- this.state.invalidTemplateEscapePosition = codePos - 2;
- return null;
- }
- }
- } else {
- code = this.readHexChar(4, throwOnInvalid);
- }
-
- return code;
- }
-
- readString(quote) {
- let out = "",
- chunkStart = ++this.state.pos;
-
- for (;;) {
- if (this.state.pos >= this.length) {
- this.raise(this.state.start, "Unterminated string constant");
- }
-
- const ch = this.input.charCodeAt(this.state.pos);
- if (ch === quote) break;
-
- if (ch === 92) {
- out += this.input.slice(chunkStart, this.state.pos);
- out += this.readEscapedChar(false);
- chunkStart = this.state.pos;
- } else if (ch === 8232 || ch === 8233) {
- ++this.state.pos;
- ++this.state.curLine;
- } else if (isNewLine(ch)) {
- this.raise(this.state.start, "Unterminated string constant");
- } else {
- ++this.state.pos;
- }
- }
-
- out += this.input.slice(chunkStart, this.state.pos++);
- this.finishToken(types.string, out);
- }
-
- readTmplToken() {
- let out = "",
- chunkStart = this.state.pos,
- containsInvalid = false;
-
- for (;;) {
- if (this.state.pos >= this.length) {
- this.raise(this.state.start, "Unterminated template");
- }
-
- const ch = this.input.charCodeAt(this.state.pos);
-
- if (ch === 96 || ch === 36 && this.input.charCodeAt(this.state.pos + 1) === 123) {
- if (this.state.pos === this.state.start && this.match(types.template)) {
- if (ch === 36) {
- this.state.pos += 2;
- this.finishToken(types.dollarBraceL);
- return;
- } else {
- ++this.state.pos;
- this.finishToken(types.backQuote);
- return;
- }
- }
-
- out += this.input.slice(chunkStart, this.state.pos);
- this.finishToken(types.template, containsInvalid ? null : out);
- return;
- }
-
- if (ch === 92) {
- out += this.input.slice(chunkStart, this.state.pos);
- const escaped = this.readEscapedChar(true);
-
- if (escaped === null) {
- containsInvalid = true;
- } else {
- out += escaped;
- }
-
- chunkStart = this.state.pos;
- } else if (isNewLine(ch)) {
- out += this.input.slice(chunkStart, this.state.pos);
- ++this.state.pos;
-
- switch (ch) {
- case 13:
- if (this.input.charCodeAt(this.state.pos) === 10) {
- ++this.state.pos;
- }
-
- case 10:
- out += "\n";
- break;
-
- default:
- out += String.fromCharCode(ch);
- break;
- }
-
- ++this.state.curLine;
- this.state.lineStart = this.state.pos;
- chunkStart = this.state.pos;
- } else {
- ++this.state.pos;
- }
- }
- }
-
- readEscapedChar(inTemplate) {
- const throwOnInvalid = !inTemplate;
- const ch = this.input.charCodeAt(++this.state.pos);
- ++this.state.pos;
-
- switch (ch) {
- case 110:
- return "\n";
-
- case 114:
- return "\r";
-
- case 120:
- {
- const code = this.readHexChar(2, throwOnInvalid);
- return code === null ? null : String.fromCharCode(code);
- }
-
- case 117:
- {
- const code = this.readCodePoint(throwOnInvalid);
- return code === null ? null : String.fromCodePoint(code);
- }
-
- case 116:
- return "\t";
-
- case 98:
- return "\b";
-
- case 118:
- return "\u000b";
-
- 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 "";
-
- default:
- if (ch >= 48 && ch <= 55) {
- const codePos = this.state.pos - 1;
- let octalStr = this.input.substr(this.state.pos - 1, 3).match(/^[0-7]+/)[0];
- let octal = parseInt(octalStr, 8);
-
- if (octal > 255) {
- octalStr = octalStr.slice(0, -1);
- octal = parseInt(octalStr, 8);
- }
-
- this.state.pos += octalStr.length - 1;
- const next = this.input.charCodeAt(this.state.pos);
-
- if (octalStr !== "0" || next === 56 || next === 57) {
- if (inTemplate) {
- this.state.invalidTemplateEscapePosition = codePos;
- return null;
- } else if (this.state.strict) {
- this.raise(codePos, "Octal literal in strict mode");
- } else if (!this.state.containsOctal) {
- this.state.containsOctal = true;
- this.state.octalPosition = codePos;
- }
- }
-
- return String.fromCharCode(octal);
- }
-
- return String.fromCharCode(ch);
- }
- }
-
- readHexChar(len, throwOnInvalid) {
- const codePos = this.state.pos;
- const n = this.readInt(16, len);
-
- if (n === null) {
- if (throwOnInvalid) {
- this.raise(codePos, "Bad character escape sequence");
- } else {
- this.state.pos = codePos - 1;
- this.state.invalidTemplateEscapePosition = codePos - 1;
- }
- }
-
- return n;
- }
-
- readWord1() {
- let word = "";
- this.state.containsEsc = false;
- const start = this.state.pos;
- let chunkStart = this.state.pos;
-
- while (this.state.pos < this.length) {
- const ch = this.input.codePointAt(this.state.pos);
-
- if (isIdentifierChar(ch)) {
- this.state.pos += ch <= 0xffff ? 1 : 2;
- } else if (this.state.isIterator && ch === 64) {
- ++this.state.pos;
- } else if (ch === 92) {
- this.state.containsEsc = true;
- word += this.input.slice(chunkStart, this.state.pos);
- const escStart = this.state.pos;
- const identifierCheck = this.state.pos === start ? isIdentifierStart : isIdentifierChar;
-
- if (this.input.charCodeAt(++this.state.pos) !== 117) {
- this.raise(this.state.pos, "Expecting Unicode escape sequence \\uXXXX");
- }
-
- ++this.state.pos;
- const esc = this.readCodePoint(true);
-
- if (!identifierCheck(esc, true)) {
- this.raise(escStart, "Invalid Unicode escape");
- }
-
- word += String.fromCodePoint(esc);
- chunkStart = this.state.pos;
- } else {
- break;
- }
- }
-
- return word + this.input.slice(chunkStart, this.state.pos);
- }
-
- isIterator(word) {
- return word === "@@iterator" || word === "@@asyncIterator";
- }
-
- readWord() {
- const word = this.readWord1();
- const type = keywords.get(word) || types.name;
-
- if (type.keyword && this.state.containsEsc) {
- this.raise(this.state.pos, `Escape sequence in keyword ${word}`);
- }
-
- if (this.state.isIterator && (!this.isIterator(word) || !this.state.inType)) {
- this.raise(this.state.pos, `Invalid identifier ${word}`);
- }
-
- this.finishToken(type, word);
- }
-
- braceIsBlock(prevType) {
- const parent = this.curContext();
-
- if (parent === types$1.functionExpression || parent === types$1.functionStatement) {
- return true;
- }
-
- if (prevType === types.colon && (parent === types$1.braceStatement || parent === types$1.braceExpression)) {
- return !parent.isExpr;
- }
-
- if (prevType === types._return || prevType === types.name && this.state.exprAllowed) {
- return lineBreak.test(this.input.slice(this.state.lastTokEnd, this.state.start));
- }
-
- if (prevType === types._else || prevType === types.semi || prevType === types.eof || prevType === types.parenR || prevType === types.arrow) {
- return true;
- }
-
- if (prevType === types.braceL) {
- return parent === types$1.braceStatement;
- }
-
- if (prevType === types._var || prevType === types._const || prevType === types.name) {
- return false;
- }
-
- if (prevType === types.relational) {
- return true;
- }
-
- return !this.state.exprAllowed;
- }
-
- updateContext(prevType) {
- const type = this.state.type;
- let update;
-
- if (type.keyword && (prevType === types.dot || prevType === types.questionDot)) {
- this.state.exprAllowed = false;
- } else if (update = type.updateContext) {
- update.call(this, prevType);
- } else {
- this.state.exprAllowed = type.beforeExpr;
- }
- }
-
-}
-
-const literal = /^('|")((?:\\?.)*?)\1/;
-class UtilParser extends Tokenizer {
- addExtra(node, key, val) {
- if (!node) return;
- const extra = node.extra = node.extra || {};
- extra[key] = val;
- }
-
- isRelational(op) {
- return this.match(types.relational) && this.state.value === op;
- }
-
- isLookaheadRelational(op) {
- const l = this.lookahead();
- return l.type === types.relational && l.value === op;
- }
-
- expectRelational(op) {
- if (this.isRelational(op)) {
- this.next();
- } else {
- this.unexpected(null, types.relational);
- }
- }
-
- eatRelational(op) {
- if (this.isRelational(op)) {
- this.next();
- return true;
- }
-
- return false;
- }
-
- isContextual(name) {
- return this.match(types.name) && this.state.value === name && !this.state.containsEsc;
- }
-
- isLookaheadContextual(name) {
- const l = this.lookahead();
- return l.type === types.name && l.value === name;
- }
-
- eatContextual(name) {
- return this.isContextual(name) && this.eat(types.name);
- }
-
- expectContextual(name, message) {
- if (!this.eatContextual(name)) this.unexpected(null, message);
- }
-
- canInsertSemicolon() {
- return this.match(types.eof) || this.match(types.braceR) || this.hasPrecedingLineBreak();
- }
-
- hasPrecedingLineBreak() {
- return lineBreak.test(this.input.slice(this.state.lastTokEnd, this.state.start));
- }
-
- isLineTerminator() {
- return this.eat(types.semi) || this.canInsertSemicolon();
- }
-
- semicolon() {
- if (!this.isLineTerminator()) this.unexpected(null, types.semi);
- }
-
- expect(type, pos) {
- this.eat(type) || this.unexpected(pos, type);
- }
-
- assertNoSpace(message = "Unexpected space.") {
- if (this.state.start > this.state.lastTokEnd) {
- this.raise(this.state.lastTokEnd, message);
- }
- }
-
- unexpected(pos, messageOrType = "Unexpected token") {
- if (typeof messageOrType !== "string") {
- messageOrType = `Unexpected token, expected "${messageOrType.label}"`;
- }
-
- throw this.raise(pos != null ? pos : this.state.start, messageOrType);
- }
-
- expectPlugin(name, pos) {
- if (!this.hasPlugin(name)) {
- throw this.raise(pos != null ? pos : this.state.start, `This experimental syntax requires enabling the parser plugin: '${name}'`, {
- missingPluginNames: [name]
- });
- }
-
- return true;
- }
-
- expectOnePlugin(names, pos) {
- if (!names.some(n => this.hasPlugin(n))) {
- throw this.raise(pos != null ? pos : this.state.start, `This experimental syntax requires enabling one of the following parser plugin(s): '${names.join(", ")}'`, {
- missingPluginNames: names
- });
- }
- }
-
- checkYieldAwaitInDefaultParams() {
- if (this.state.yieldPos && (!this.state.awaitPos || this.state.yieldPos < this.state.awaitPos)) {
- this.raise(this.state.yieldPos, "Yield cannot be used as name inside a generator function");
- }
-
- if (this.state.awaitPos) {
- this.raise(this.state.awaitPos, "Await cannot be used as name inside an async function");
- }
- }
-
- strictDirective(start) {
- for (;;) {
- skipWhiteSpace.lastIndex = start;
- start += skipWhiteSpace.exec(this.input)[0].length;
- const match = literal.exec(this.input.slice(start));
- if (!match) break;
- if (match[2] === "use strict") return true;
- start += match[0].length;
- skipWhiteSpace.lastIndex = start;
- start += skipWhiteSpace.exec(this.input)[0].length;
-
- if (this.input[start] === ";") {
- start++;
- }
- }
-
- return false;
- }
-
-}
-
-class Node {
- constructor(parser, pos, loc) {
- this.type = "";
- this.start = pos;
- this.end = 0;
- this.loc = new SourceLocation(loc);
- if (parser && parser.options.ranges) this.range = [pos, 0];
- if (parser && parser.filename) this.loc.filename = parser.filename;
- }
-
- __clone() {
- const newNode = new Node();
- const keys = Object.keys(this);
-
- for (let i = 0, length = keys.length; i < length; i++) {
- const key = keys[i];
-
- if (key !== "leadingComments" && key !== "trailingComments" && key !== "innerComments") {
- newNode[key] = this[key];
- }
- }
-
- return newNode;
- }
-
-}
-
-class NodeUtils extends UtilParser {
- startNode() {
- return new Node(this, this.state.start, this.state.startLoc);
- }
-
- startNodeAt(pos, loc) {
- return new Node(this, pos, loc);
- }
-
- startNodeAtNode(type) {
- return this.startNodeAt(type.start, type.loc.start);
- }
-
- finishNode(node, type) {
- return this.finishNodeAt(node, type, this.state.lastTokEnd, this.state.lastTokEndLoc);
- }
-
- finishNodeAt(node, type, pos, loc) {
-
- node.type = type;
- node.end = pos;
- node.loc.end = loc;
- if (this.options.ranges) node.range[1] = pos;
- this.processComment(node);
- return node;
- }
-
- resetStartLocation(node, start, startLoc) {
- node.start = start;
- node.loc.start = startLoc;
- if (this.options.ranges) node.range[0] = start;
- }
-
- resetEndLocation(node, end = this.state.lastTokEnd, endLoc = this.state.lastTokEndLoc) {
- node.end = end;
- node.loc.end = endLoc;
- if (this.options.ranges) node.range[1] = end;
- }
-
- resetStartLocationFromNode(node, locationNode) {
- this.resetStartLocation(node, locationNode.start, locationNode.loc.start);
- }
-
-}
-
-class LValParser extends NodeUtils {
- toAssignable(node, isBinding, contextDescription) {
- if (node) {
- switch (node.type) {
- case "Identifier":
- case "ObjectPattern":
- case "ArrayPattern":
- case "AssignmentPattern":
- break;
-
- case "ObjectExpression":
- node.type = "ObjectPattern";
-
- for (let i = 0, length = node.properties.length, last = length - 1; i < length; i++) {
- const prop = node.properties[i];
- const isLast = i === last;
- this.toAssignableObjectExpressionProp(prop, isBinding, isLast);
- }
-
- break;
-
- case "ObjectProperty":
- this.toAssignable(node.value, isBinding, contextDescription);
- break;
-
- case "SpreadElement":
- {
- this.checkToRestConversion(node);
- node.type = "RestElement";
- const arg = node.argument;
- this.toAssignable(arg, isBinding, contextDescription);
- break;
- }
-
- case "ArrayExpression":
- node.type = "ArrayPattern";
- this.toAssignableList(node.elements, isBinding, contextDescription);
- break;
-
- case "AssignmentExpression":
- if (node.operator === "=") {
- node.type = "AssignmentPattern";
- delete node.operator;
- } else {
- this.raise(node.left.end, "Only '=' operator can be used for specifying default value.");
- }
-
- break;
-
- case "ParenthesizedExpression":
- node.expression = this.toAssignable(node.expression, isBinding, contextDescription);
- break;
-
- case "MemberExpression":
- if (!isBinding) break;
-
- default:
- {
- const message = "Invalid left-hand side" + (contextDescription ? " in " + contextDescription : "expression");
- this.raise(node.start, message);
- }
- }
- }
-
- return node;
- }
-
- toAssignableObjectExpressionProp(prop, isBinding, isLast) {
- if (prop.type === "ObjectMethod") {
- const error = prop.kind === "get" || prop.kind === "set" ? "Object pattern can't contain getter or setter" : "Object pattern can't contain methods";
- this.raise(prop.key.start, error);
- } else if (prop.type === "SpreadElement" && !isLast) {
- this.raiseRestNotLast(prop.start);
- } else {
- this.toAssignable(prop, isBinding, "object destructuring pattern");
- }
- }
-
- toAssignableList(exprList, isBinding, contextDescription) {
- let end = exprList.length;
-
- if (end) {
- const last = exprList[end - 1];
-
- if (last && last.type === "RestElement") {
- --end;
- } else if (last && last.type === "SpreadElement") {
- last.type = "RestElement";
- const arg = last.argument;
- this.toAssignable(arg, isBinding, contextDescription);
-
- if (arg.type !== "Identifier" && arg.type !== "MemberExpression" && arg.type !== "ArrayPattern" && arg.type !== "ObjectPattern") {
- this.unexpected(arg.start);
- }
-
- --end;
- }
- }
-
- for (let i = 0; i < end; i++) {
- const elt = exprList[i];
-
- if (elt) {
- this.toAssignable(elt, isBinding, contextDescription);
-
- if (elt.type === "RestElement") {
- this.raiseRestNotLast(elt.start);
- }
- }
- }
-
- return exprList;
- }
-
- toReferencedList(exprList, isParenthesizedExpr) {
- return exprList;
- }
-
- toReferencedListDeep(exprList, isParenthesizedExpr) {
- this.toReferencedList(exprList, isParenthesizedExpr);
-
- for (let _i = 0; _i < exprList.length; _i++) {
- const expr = exprList[_i];
-
- if (expr && expr.type === "ArrayExpression") {
- this.toReferencedListDeep(expr.elements);
- }
- }
-
- return exprList;
- }
-
- parseSpread(refShorthandDefaultPos, refNeedsArrowPos) {
- const node = this.startNode();
- this.next();
- node.argument = this.parseMaybeAssign(false, refShorthandDefaultPos, undefined, refNeedsArrowPos);
-
- if (this.state.commaAfterSpreadAt === -1 && this.match(types.comma)) {
- this.state.commaAfterSpreadAt = this.state.start;
- }
-
- return this.finishNode(node, "SpreadElement");
- }
-
- parseRestBinding() {
- const node = this.startNode();
- this.next();
- node.argument = this.parseBindingAtom();
- return this.finishNode(node, "RestElement");
- }
-
- parseBindingAtom() {
- switch (this.state.type) {
- case types.bracketL:
- {
- const node = this.startNode();
- this.next();
- node.elements = this.parseBindingList(types.bracketR, true);
- return this.finishNode(node, "ArrayPattern");
- }
-
- case types.braceL:
- return this.parseObj(true);
- }
-
- return this.parseIdentifier();
- }
-
- parseBindingList(close, allowEmpty, allowModifiers) {
- const elts = [];
- let first = true;
-
- while (!this.eat(close)) {
- if (first) {
- first = false;
- } else {
- this.expect(types.comma);
- }
-
- if (allowEmpty && this.match(types.comma)) {
- elts.push(null);
- } else if (this.eat(close)) {
- break;
- } else if (this.match(types.ellipsis)) {
- elts.push(this.parseAssignableListItemTypes(this.parseRestBinding()));
- this.checkCommaAfterRest();
- this.expect(close);
- break;
- } else {
- const decorators = [];
-
- if (this.match(types.at) && this.hasPlugin("decorators")) {
- this.raise(this.state.start, "Stage 2 decorators cannot be used to decorate parameters");
- }
-
- while (this.match(types.at)) {
- decorators.push(this.parseDecorator());
- }
-
- elts.push(this.parseAssignableListItem(allowModifiers, decorators));
- }
- }
-
- return elts;
- }
-
- parseAssignableListItem(allowModifiers, decorators) {
- const left = this.parseMaybeDefault();
- this.parseAssignableListItemTypes(left);
- const elt = this.parseMaybeDefault(left.start, left.loc.start, left);
-
- if (decorators.length) {
- left.decorators = decorators;
- }
-
- return elt;
- }
-
- parseAssignableListItemTypes(param) {
- return param;
- }
-
- parseMaybeDefault(startPos, startLoc, left) {
- startLoc = startLoc || this.state.startLoc;
- startPos = startPos || this.state.start;
- left = left || this.parseBindingAtom();
- if (!this.eat(types.eq)) return left;
- const node = this.startNodeAt(startPos, startLoc);
- node.left = left;
- node.right = this.parseMaybeAssign();
- return this.finishNode(node, "AssignmentPattern");
- }
-
- checkLVal(expr, bindingType = BIND_NONE, checkClashes, contextDescription) {
- switch (expr.type) {
- case "Identifier":
- if (this.state.strict && isStrictBindReservedWord(expr.name, this.inModule)) {
- this.raise(expr.start, `${bindingType === BIND_NONE ? "Assigning to" : "Binding"} '${expr.name}' in strict mode`);
- }
-
- if (checkClashes) {
- const key = `_${expr.name}`;
-
- if (checkClashes[key]) {
- this.raise(expr.start, "Argument name clash");
- } else {
- checkClashes[key] = true;
- }
- }
-
- if (bindingType === BIND_LEXICAL && expr.name === "let") {
- this.raise(expr.start, "'let' is not allowed to be used as a name in 'let' or 'const' declarations.");
- }
-
- if (!(bindingType & BIND_NONE)) {
- this.scope.declareName(expr.name, bindingType, expr.start);
- }
-
- break;
-
- case "MemberExpression":
- if (bindingType !== BIND_NONE) {
- this.raise(expr.start, "Binding member expression");
- }
-
- break;
-
- case "ObjectPattern":
- for (let _i2 = 0, _expr$properties = expr.properties; _i2 < _expr$properties.length; _i2++) {
- let prop = _expr$properties[_i2];
- if (prop.type === "ObjectProperty") prop = prop.value;
- this.checkLVal(prop, bindingType, checkClashes, "object destructuring pattern");
- }
-
- break;
-
- case "ArrayPattern":
- for (let _i3 = 0, _expr$elements = expr.elements; _i3 < _expr$elements.length; _i3++) {
- const elem = _expr$elements[_i3];
-
- if (elem) {
- this.checkLVal(elem, bindingType, checkClashes, "array destructuring pattern");
- }
- }
-
- break;
-
- case "AssignmentPattern":
- this.checkLVal(expr.left, bindingType, checkClashes, "assignment pattern");
- break;
-
- case "RestElement":
- this.checkLVal(expr.argument, bindingType, checkClashes, "rest element");
- break;
-
- case "ParenthesizedExpression":
- this.checkLVal(expr.expression, bindingType, checkClashes, "parenthesized expression");
- break;
-
- default:
- {
- const message = (bindingType === BIND_NONE ? "Invalid" : "Binding invalid") + " left-hand side" + (contextDescription ? " in " + contextDescription : "expression");
- this.raise(expr.start, message);
- }
- }
- }
-
- checkToRestConversion(node) {
- if (node.argument.type !== "Identifier" && node.argument.type !== "MemberExpression") {
- this.raise(node.argument.start, "Invalid rest operator's argument");
- }
- }
-
- checkCommaAfterRest() {
- if (this.match(types.comma)) {
- this.raiseRestNotLast(this.state.start);
- }
- }
-
- checkCommaAfterRestFromSpread() {
- if (this.state.commaAfterSpreadAt > -1) {
- this.raiseRestNotLast(this.state.commaAfterSpreadAt);
- }
- }
-
- raiseRestNotLast(pos) {
- this.raise(pos, `Rest element must be last element`);
- }
-
-}
-
-const unwrapParenthesizedExpression = node => {
- return node.type === "ParenthesizedExpression" ? unwrapParenthesizedExpression(node.expression) : node;
-};
-
-class ExpressionParser extends LValParser {
- checkPropClash(prop, propHash) {
- if (prop.type === "SpreadElement" || prop.computed || prop.kind || prop.shorthand) {
- return;
- }
-
- const key = prop.key;
- const name = key.type === "Identifier" ? key.name : String(key.value);
-
- if (name === "__proto__") {
- if (propHash.proto) {
- this.raise(key.start, "Redefinition of __proto__ property");
- }
-
- propHash.proto = true;
- }
- }
-
- getExpression() {
- this.scope.enter(SCOPE_PROGRAM);
- this.nextToken();
- const expr = this.parseExpression();
-
- if (!this.match(types.eof)) {
- this.unexpected();
- }
-
- expr.comments = this.state.comments;
- return expr;
- }
-
- parseExpression(noIn, refShorthandDefaultPos) {
- const startPos = this.state.start;
- const startLoc = this.state.startLoc;
- const expr = this.parseMaybeAssign(noIn, refShorthandDefaultPos);
-
- if (this.match(types.comma)) {
- const node = this.startNodeAt(startPos, startLoc);
- node.expressions = [expr];
-
- while (this.eat(types.comma)) {
- node.expressions.push(this.parseMaybeAssign(noIn, refShorthandDefaultPos));
- }
-
- this.toReferencedList(node.expressions);
- return this.finishNode(node, "SequenceExpression");
- }
-
- return expr;
- }
-
- parseMaybeAssign(noIn, refShorthandDefaultPos, afterLeftParse, refNeedsArrowPos) {
- const startPos = this.state.start;
- const startLoc = this.state.startLoc;
-
- if (this.isContextual("yield")) {
- if (this.scope.inGenerator) {
- let left = this.parseYield(noIn);
-
- if (afterLeftParse) {
- left = afterLeftParse.call(this, left, startPos, startLoc);
- }
-
- return left;
- } else {
- this.state.exprAllowed = false;
- }
- }
-
- const oldCommaAfterSpreadAt = this.state.commaAfterSpreadAt;
- this.state.commaAfterSpreadAt = -1;
- let failOnShorthandAssign;
-
- if (refShorthandDefaultPos) {
- failOnShorthandAssign = false;
- } else {
- refShorthandDefaultPos = {
- start: 0
- };
- failOnShorthandAssign = true;
- }
-
- if (this.match(types.parenL) || this.match(types.name)) {
- this.state.potentialArrowAt = this.state.start;
- }
-
- let left = this.parseMaybeConditional(noIn, refShorthandDefaultPos, refNeedsArrowPos);
-
- if (afterLeftParse) {
- left = afterLeftParse.call(this, left, startPos, startLoc);
- }
-
- if (this.state.type.isAssign) {
- const node = this.startNodeAt(startPos, startLoc);
- const operator = this.state.value;
- node.operator = operator;
-
- if (operator === "??=") {
- this.expectPlugin("nullishCoalescingOperator");
- this.expectPlugin("logicalAssignment");
- }
-
- if (operator === "||=" || operator === "&&=") {
- this.expectPlugin("logicalAssignment");
- }
-
- node.left = this.match(types.eq) ? this.toAssignable(left, undefined, "assignment expression") : left;
- refShorthandDefaultPos.start = 0;
- this.checkLVal(left, undefined, undefined, "assignment expression");
- const maybePattern = unwrapParenthesizedExpression(left);
- let patternErrorMsg;
-
- if (maybePattern.type === "ObjectPattern") {
- patternErrorMsg = "`({a}) = 0` use `({a} = 0)`";
- } else if (maybePattern.type === "ArrayPattern") {
- patternErrorMsg = "`([a]) = 0` use `([a] = 0)`";
- }
-
- if (patternErrorMsg && (left.extra && left.extra.parenthesized || left.type === "ParenthesizedExpression")) {
- this.raise(maybePattern.start, `You're trying to assign to a parenthesized expression, eg. instead of ${patternErrorMsg}`);
- }
-
- if (patternErrorMsg) this.checkCommaAfterRestFromSpread();
- this.state.commaAfterSpreadAt = oldCommaAfterSpreadAt;
- this.next();
- node.right = this.parseMaybeAssign(noIn);
- return this.finishNode(node, "AssignmentExpression");
- } else if (failOnShorthandAssign && refShorthandDefaultPos.start) {
- this.unexpected(refShorthandDefaultPos.start);
- }
-
- this.state.commaAfterSpreadAt = oldCommaAfterSpreadAt;
- return left;
- }
-
- parseMaybeConditional(noIn, refShorthandDefaultPos, refNeedsArrowPos) {
- const startPos = this.state.start;
- const startLoc = this.state.startLoc;
- const potentialArrowAt = this.state.potentialArrowAt;
- const expr = this.parseExprOps(noIn, refShorthandDefaultPos);
-
- if (expr.type === "ArrowFunctionExpression" && expr.start === potentialArrowAt) {
- return expr;
- }
-
- if (refShorthandDefaultPos && refShorthandDefaultPos.start) return expr;
- return this.parseConditional(expr, noIn, startPos, startLoc, refNeedsArrowPos);
- }
-
- parseConditional(expr, noIn, startPos, startLoc, refNeedsArrowPos) {
- if (this.eat(types.question)) {
- const node = this.startNodeAt(startPos, startLoc);
- node.test = expr;
- node.consequent = this.parseMaybeAssign();
- this.expect(types.colon);
- node.alternate = this.parseMaybeAssign(noIn);
- return this.finishNode(node, "ConditionalExpression");
- }
-
- return expr;
- }
-
- parseExprOps(noIn, refShorthandDefaultPos) {
- const startPos = this.state.start;
- const startLoc = this.state.startLoc;
- const potentialArrowAt = this.state.potentialArrowAt;
- const expr = this.parseMaybeUnary(refShorthandDefaultPos);
-
- if (expr.type === "ArrowFunctionExpression" && expr.start === potentialArrowAt) {
- return expr;
- }
-
- if (refShorthandDefaultPos && refShorthandDefaultPos.start) {
- return expr;
- }
-
- return this.parseExprOp(expr, startPos, startLoc, -1, noIn);
- }
-
- parseExprOp(left, leftStartPos, leftStartLoc, minPrec, noIn) {
- const prec = this.state.type.binop;
-
- if (prec != null && (!noIn || !this.match(types._in))) {
- if (prec > minPrec) {
- const operator = this.state.value;
-
- if (operator === "|>" && this.state.inFSharpPipelineDirectBody) {
- return left;
- }
-
- const node = this.startNodeAt(leftStartPos, leftStartLoc);
- node.left = left;
- node.operator = operator;
-
- if (operator === "**" && left.type === "UnaryExpression" && (this.options.createParenthesizedExpressions || !(left.extra && left.extra.parenthesized))) {
- this.raise(left.argument.start, "Illegal expression. Wrap left hand side or entire exponentiation in parentheses.");
- }
-
- const op = this.state.type;
-
- if (op === types.pipeline) {
- this.expectPlugin("pipelineOperator");
- this.state.inPipeline = true;
- this.checkPipelineAtInfixOperator(left, leftStartPos);
- } else if (op === types.nullishCoalescing) {
- this.expectPlugin("nullishCoalescingOperator");
- }
-
- this.next();
-
- if (op === types.pipeline && this.getPluginOption("pipelineOperator", "proposal") === "minimal") {
- if (this.match(types.name) && this.state.value === "await" && this.scope.inAsync) {
- throw this.raise(this.state.start, `Unexpected "await" after pipeline body; await must have parentheses in minimal proposal`);
- }
- }
-
- node.right = this.parseExprOpRightExpr(op, prec, noIn);
- this.finishNode(node, op === types.logicalOR || op === types.logicalAND || op === types.nullishCoalescing ? "LogicalExpression" : "BinaryExpression");
- return this.parseExprOp(node, leftStartPos, leftStartLoc, minPrec, noIn);
- }
- }
-
- return left;
- }
-
- parseExprOpRightExpr(op, prec, noIn) {
- const startPos = this.state.start;
- const startLoc = this.state.startLoc;
-
- switch (op) {
- case types.pipeline:
- switch (this.getPluginOption("pipelineOperator", "proposal")) {
- case "smart":
- return this.withTopicPermittingContext(() => {
- return this.parseSmartPipelineBody(this.parseExprOpBaseRightExpr(op, prec, noIn), startPos, startLoc);
- });
-
- case "fsharp":
- return this.withSoloAwaitPermittingContext(() => {
- return this.parseFSharpPipelineBody(prec, noIn);
- });
- }
-
- default:
- return this.parseExprOpBaseRightExpr(op, prec, noIn);
- }
- }
-
- parseExprOpBaseRightExpr(op, prec, noIn) {
- const startPos = this.state.start;
- const startLoc = this.state.startLoc;
- return this.parseExprOp(this.parseMaybeUnary(), startPos, startLoc, op.rightAssociative ? prec - 1 : prec, noIn);
- }
-
- parseMaybeUnary(refShorthandDefaultPos) {
- if (this.isContextual("await") && (this.scope.inAsync || !this.scope.inFunction && this.options.allowAwaitOutsideFunction)) {
- return this.parseAwait();
- } else if (this.state.type.prefix) {
- const node = this.startNode();
- const update = this.match(types.incDec);
- node.operator = this.state.value;
- node.prefix = true;
-
- if (node.operator === "throw") {
- this.expectPlugin("throwExpressions");
- }
-
- this.next();
- node.argument = this.parseMaybeUnary();
-
- if (refShorthandDefaultPos && refShorthandDefaultPos.start) {
- this.unexpected(refShorthandDefaultPos.start);
- }
-
- if (update) {
- this.checkLVal(node.argument, undefined, undefined, "prefix operation");
- } else if (this.state.strict && node.operator === "delete") {
- const arg = node.argument;
-
- if (arg.type === "Identifier") {
- this.raise(node.start, "Deleting local variable in strict mode");
- } else if (arg.type === "MemberExpression" && arg.property.type === "PrivateName") {
- this.raise(node.start, "Deleting a private field is not allowed");
- }
- }
-
- return this.finishNode(node, update ? "UpdateExpression" : "UnaryExpression");
- }
-
- const startPos = this.state.start;
- const startLoc = this.state.startLoc;
- let expr = this.parseExprSubscripts(refShorthandDefaultPos);
- if (refShorthandDefaultPos && refShorthandDefaultPos.start) return expr;
-
- while (this.state.type.postfix && !this.canInsertSemicolon()) {
- const node = this.startNodeAt(startPos, startLoc);
- node.operator = this.state.value;
- node.prefix = false;
- node.argument = expr;
- this.checkLVal(expr, undefined, undefined, "postfix operation");
- this.next();
- expr = this.finishNode(node, "UpdateExpression");
- }
-
- return expr;
- }
-
- parseExprSubscripts(refShorthandDefaultPos) {
- const startPos = this.state.start;
- const startLoc = this.state.startLoc;
- const potentialArrowAt = this.state.potentialArrowAt;
- const expr = this.parseExprAtom(refShorthandDefaultPos);
-
- if (expr.type === "ArrowFunctionExpression" && expr.start === potentialArrowAt) {
- return expr;
- }
-
- if (refShorthandDefaultPos && refShorthandDefaultPos.start) {
- return expr;
- }
-
- return this.parseSubscripts(expr, startPos, startLoc);
- }
-
- parseSubscripts(base, startPos, startLoc, noCalls) {
- const maybeAsyncArrow = this.atPossibleAsync(base);
- const state = {
- optionalChainMember: false,
- stop: false
- };
-
- do {
- base = this.parseSubscript(base, startPos, startLoc, noCalls, state, maybeAsyncArrow);
- } while (!state.stop);
-
- return base;
- }
-
- parseSubscript(base, startPos, startLoc, noCalls, state, maybeAsyncArrow) {
- if (!noCalls && this.eat(types.doubleColon)) {
- const node = this.startNodeAt(startPos, startLoc);
- node.object = base;
- node.callee = this.parseNoCallExpr();
- state.stop = true;
- return this.parseSubscripts(this.finishNode(node, "BindExpression"), startPos, startLoc, noCalls);
- } else if (this.match(types.questionDot)) {
- this.expectPlugin("optionalChaining");
- state.optionalChainMember = true;
-
- if (noCalls && this.lookahead().type === types.parenL) {
- state.stop = true;
- return base;
- }
-
- this.next();
- const node = this.startNodeAt(startPos, startLoc);
-
- if (this.eat(types.bracketL)) {
- node.object = base;
- node.property = this.parseExpression();
- node.computed = true;
- node.optional = true;
- this.expect(types.bracketR);
- return this.finishNode(node, "OptionalMemberExpression");
- } else if (this.eat(types.parenL)) {
- node.callee = base;
- node.arguments = this.parseCallExpressionArguments(types.parenR, false);
- node.optional = true;
- return this.finishNode(node, "OptionalCallExpression");
- } else {
- node.object = base;
- node.property = this.parseIdentifier(true);
- node.computed = false;
- node.optional = true;
- return this.finishNode(node, "OptionalMemberExpression");
- }
- } else if (this.eat(types.dot)) {
- const node = this.startNodeAt(startPos, startLoc);
- node.object = base;
- node.property = this.parseMaybePrivateName();
- node.computed = false;
-
- if (state.optionalChainMember) {
- node.optional = false;
- return this.finishNode(node, "OptionalMemberExpression");
- }
-
- return this.finishNode(node, "MemberExpression");
- } else if (this.eat(types.bracketL)) {
- const node = this.startNodeAt(startPos, startLoc);
- node.object = base;
- node.property = this.parseExpression();
- node.computed = true;
- this.expect(types.bracketR);
-
- if (state.optionalChainMember) {
- node.optional = false;
- return this.finishNode(node, "OptionalMemberExpression");
- }
-
- return this.finishNode(node, "MemberExpression");
- } else if (!noCalls && this.match(types.parenL)) {
- const oldMaybeInArrowParameters = this.state.maybeInArrowParameters;
- const oldYieldPos = this.state.yieldPos;
- const oldAwaitPos = this.state.awaitPos;
- this.state.maybeInArrowParameters = true;
- this.state.yieldPos = 0;
- this.state.awaitPos = 0;
- this.next();
- let node = this.startNodeAt(startPos, startLoc);
- node.callee = base;
- const oldCommaAfterSpreadAt = this.state.commaAfterSpreadAt;
- this.state.commaAfterSpreadAt = -1;
- node.arguments = this.parseCallExpressionArguments(types.parenR, maybeAsyncArrow, base.type === "Import", base.type !== "Super");
-
- if (!state.optionalChainMember) {
- this.finishCallExpression(node);
- } else {
- this.finishOptionalCallExpression(node);
- }
-
- if (maybeAsyncArrow && this.shouldParseAsyncArrow()) {
- state.stop = true;
- this.checkCommaAfterRestFromSpread();
- node = this.parseAsyncArrowFromCallExpression(this.startNodeAt(startPos, startLoc), node);
- this.checkYieldAwaitInDefaultParams();
- this.state.yieldPos = oldYieldPos;
- this.state.awaitPos = oldAwaitPos;
- } else {
- this.toReferencedListDeep(node.arguments);
- this.state.yieldPos = oldYieldPos || this.state.yieldPos;
- this.state.awaitPos = oldAwaitPos || this.state.awaitPos;
- }
-
- this.state.maybeInArrowParameters = oldMaybeInArrowParameters;
- this.state.commaAfterSpreadAt = oldCommaAfterSpreadAt;
- return node;
- } else if (this.match(types.backQuote)) {
- return this.parseTaggedTemplateExpression(startPos, startLoc, base, state);
- } else {
- state.stop = true;
- return base;
- }
- }
-
- parseTaggedTemplateExpression(startPos, startLoc, base, state, typeArguments) {
- const node = this.startNodeAt(startPos, startLoc);
- node.tag = base;
- node.quasi = this.parseTemplate(true);
- if (typeArguments) node.typeParameters = typeArguments;
-
- if (state.optionalChainMember) {
- this.raise(startPos, "Tagged Template Literals are not allowed in optionalChain");
- }
-
- return this.finishNode(node, "TaggedTemplateExpression");
- }
-
- atPossibleAsync(base) {
- return base.type === "Identifier" && base.name === "async" && this.state.lastTokEnd === base.end && !this.canInsertSemicolon() && this.input.slice(base.start, base.end) === "async";
- }
-
- finishCallExpression(node) {
- if (node.callee.type === "Import") {
- if (node.arguments.length !== 1) {
- this.raise(node.start, "import() requires exactly one argument");
- }
-
- const importArg = node.arguments[0];
-
- if (importArg && importArg.type === "SpreadElement") {
- this.raise(importArg.start, "... is not allowed in import()");
- }
- }
-
- return this.finishNode(node, "CallExpression");
- }
-
- finishOptionalCallExpression(node) {
- if (node.callee.type === "Import") {
- if (node.arguments.length !== 1) {
- this.raise(node.start, "import() requires exactly one argument");
- }
-
- const importArg = node.arguments[0];
-
- if (importArg && importArg.type === "SpreadElement") {
- this.raise(importArg.start, "... is not allowed in import()");
- }
- }
-
- return this.finishNode(node, "OptionalCallExpression");
- }
-
- parseCallExpressionArguments(close, possibleAsyncArrow, dynamicImport, allowPlaceholder) {
- const elts = [];
- let innerParenStart;
- let first = true;
- const oldInFSharpPipelineDirectBody = this.state.inFSharpPipelineDirectBody;
- this.state.inFSharpPipelineDirectBody = false;
-
- while (!this.eat(close)) {
- if (first) {
- first = false;
- } else {
- this.expect(types.comma);
-
- if (this.eat(close)) {
- if (dynamicImport) {
- this.raise(this.state.lastTokStart, "Trailing comma is disallowed inside import(...) arguments");
- }
-
- break;
- }
- }
-
- if (this.match(types.parenL) && !innerParenStart) {
- innerParenStart = this.state.start;
- }
-
- elts.push(this.parseExprListItem(false, possibleAsyncArrow ? {
- start: 0
- } : undefined, possibleAsyncArrow ? {
- start: 0
- } : undefined, allowPlaceholder));
- }
-
- if (possibleAsyncArrow && innerParenStart && this.shouldParseAsyncArrow()) {
- this.unexpected();
- }
-
- this.state.inFSharpPipelineDirectBody = oldInFSharpPipelineDirectBody;
- return elts;
- }
-
- shouldParseAsyncArrow() {
- return this.match(types.arrow) && !this.canInsertSemicolon();
- }
-
- parseAsyncArrowFromCallExpression(node, call) {
- this.expect(types.arrow);
- this.parseArrowExpression(node, call.arguments, true);
- return node;
- }
-
- parseNoCallExpr() {
- const startPos = this.state.start;
- const startLoc = this.state.startLoc;
- return this.parseSubscripts(this.parseExprAtom(), startPos, startLoc, true);
- }
-
- parseExprAtom(refShorthandDefaultPos) {
- if (this.state.type === types.slash) this.readRegexp();
- const canBeArrow = this.state.potentialArrowAt === this.state.start;
- let node;
-
- switch (this.state.type) {
- case types._super:
- if (!this.scope.allowSuper && !this.options.allowSuperOutsideMethod) {
- this.raise(this.state.start, "super is only allowed in object methods and classes");
- }
-
- node = this.startNode();
- this.next();
-
- if (this.match(types.parenL) && !this.scope.allowDirectSuper && !this.options.allowSuperOutsideMethod) {
- this.raise(node.start, "super() is only valid inside a class constructor of a subclass. " + "Maybe a typo in the method name ('constructor') or not extending another class?");
- }
-
- if (!this.match(types.parenL) && !this.match(types.bracketL) && !this.match(types.dot)) {
- this.unexpected();
- }
-
- return this.finishNode(node, "Super");
-
- case types._import:
- node = this.startNode();
- this.next();
-
- if (this.match(types.dot)) {
- return this.parseImportMetaProperty(node);
- }
-
- this.expectPlugin("dynamicImport", node.start);
-
- if (!this.match(types.parenL)) {
- this.unexpected(null, types.parenL);
- }
-
- return this.finishNode(node, "Import");
-
- case types._this:
- node = this.startNode();
- this.next();
- return this.finishNode(node, "ThisExpression");
-
- case types.name:
- {
- node = this.startNode();
- const containsEsc = this.state.containsEsc;
- const id = this.parseIdentifier();
-
- if (!containsEsc && id.name === "async" && this.match(types._function) && !this.canInsertSemicolon()) {
- this.next();
- return this.parseFunction(node, undefined, true);
- } else if (canBeArrow && !containsEsc && id.name === "async" && this.match(types.name) && !this.canInsertSemicolon()) {
- const params = [this.parseIdentifier()];
- this.expect(types.arrow);
- this.parseArrowExpression(node, params, true);
- return node;
- }
-
- if (canBeArrow && this.match(types.arrow) && !this.canInsertSemicolon()) {
- this.next();
- this.parseArrowExpression(node, [id], false);
- return node;
- }
-
- return id;
- }
-
- case types._do:
- {
- this.expectPlugin("doExpressions");
- const node = this.startNode();
- this.next();
- const oldLabels = this.state.labels;
- this.state.labels = [];
- node.body = this.parseBlock();
- this.state.labels = oldLabels;
- return this.finishNode(node, "DoExpression");
- }
-
- case types.regexp:
- {
- const value = this.state.value;
- node = this.parseLiteral(value.value, "RegExpLiteral");
- node.pattern = value.pattern;
- node.flags = value.flags;
- return node;
- }
-
- case types.num:
- return this.parseLiteral(this.state.value, "NumericLiteral");
-
- case types.bigint:
- return this.parseLiteral(this.state.value, "BigIntLiteral");
-
- case types.string:
- return this.parseLiteral(this.state.value, "StringLiteral");
-
- case types._null:
- node = this.startNode();
- this.next();
- return this.finishNode(node, "NullLiteral");
-
- case types._true:
- case types._false:
- return this.parseBooleanLiteral();
-
- case types.parenL:
- return this.parseParenAndDistinguishExpression(canBeArrow);
-
- case types.bracketL:
- {
- const oldInFSharpPipelineDirectBody = this.state.inFSharpPipelineDirectBody;
- this.state.inFSharpPipelineDirectBody = false;
- node = this.startNode();
- this.next();
- node.elements = this.parseExprList(types.bracketR, true, refShorthandDefaultPos);
-
- if (!this.state.maybeInArrowParameters) {
- this.toReferencedList(node.elements);
- }
-
- this.state.inFSharpPipelineDirectBody = oldInFSharpPipelineDirectBody;
- return this.finishNode(node, "ArrayExpression");
- }
-
- case types.braceL:
- {
- const oldInFSharpPipelineDirectBody = this.state.inFSharpPipelineDirectBody;
- this.state.inFSharpPipelineDirectBody = false;
- const ret = this.parseObj(false, refShorthandDefaultPos);
- this.state.inFSharpPipelineDirectBody = oldInFSharpPipelineDirectBody;
- return ret;
- }
-
- case types._function:
- return this.parseFunctionExpression();
-
- case types.at:
- this.parseDecorators();
-
- case types._class:
- node = this.startNode();
- this.takeDecorators(node);
- return this.parseClass(node, false);
-
- case types._new:
- return this.parseNew();
-
- case types.backQuote:
- return this.parseTemplate(false);
-
- case types.doubleColon:
- {
- node = this.startNode();
- this.next();
- node.object = null;
- const callee = node.callee = this.parseNoCallExpr();
-
- if (callee.type === "MemberExpression") {
- return this.finishNode(node, "BindExpression");
- } else {
- throw this.raise(callee.start, "Binding should be performed on object property.");
- }
- }
-
- case types.hash:
- {
- if (this.state.inPipeline) {
- node = this.startNode();
-
- if (this.getPluginOption("pipelineOperator", "proposal") !== "smart") {
- this.raise(node.start, "Primary Topic Reference found but pipelineOperator not passed 'smart' for 'proposal' option.");
- }
-
- this.next();
-
- if (this.primaryTopicReferenceIsAllowedInCurrentTopicContext()) {
- this.registerTopicReference();
- return this.finishNode(node, "PipelinePrimaryTopicReference");
- } else {
- throw this.raise(node.start, `Topic reference was used in a lexical context without topic binding`);
- }
- }
- }
-
- default:
- throw this.unexpected();
- }
- }
-
- parseBooleanLiteral() {
- const node = this.startNode();
- node.value = this.match(types._true);
- this.next();
- return this.finishNode(node, "BooleanLiteral");
- }
-
- parseMaybePrivateName() {
- const isPrivate = this.match(types.hash);
-
- if (isPrivate) {
- this.expectOnePlugin(["classPrivateProperties", "classPrivateMethods"]);
- const node = this.startNode();
- this.next();
- this.assertNoSpace("Unexpected space between # and identifier");
- node.id = this.parseIdentifier(true);
- return this.finishNode(node, "PrivateName");
- } else {
- return this.parseIdentifier(true);
- }
- }
-
- parseFunctionExpression() {
- const node = this.startNode();
- let meta = this.startNode();
- this.next();
- meta = this.createIdentifier(meta, "function");
-
- if (this.scope.inGenerator && this.eat(types.dot)) {
- return this.parseMetaProperty(node, meta, "sent");
- }
-
- return this.parseFunction(node);
- }
-
- parseMetaProperty(node, meta, propertyName) {
- node.meta = meta;
-
- if (meta.name === "function" && propertyName === "sent") {
- if (this.isContextual(propertyName)) {
- this.expectPlugin("functionSent");
- } else if (!this.hasPlugin("functionSent")) {
- this.unexpected();
- }
- }
-
- const containsEsc = this.state.containsEsc;
- node.property = this.parseIdentifier(true);
-
- if (node.property.name !== propertyName || containsEsc) {
- this.raise(node.property.start, `The only valid meta property for ${meta.name} is ${meta.name}.${propertyName}`);
- }
-
- return this.finishNode(node, "MetaProperty");
- }
-
- parseImportMetaProperty(node) {
- const id = this.createIdentifier(this.startNodeAtNode(node), "import");
- this.expect(types.dot);
-
- if (this.isContextual("meta")) {
- this.expectPlugin("importMeta");
- } else if (!this.hasPlugin("importMeta")) {
- this.raise(id.start, `Dynamic imports require a parameter: import('a.js')`);
- }
-
- if (!this.inModule) {
- this.raise(id.start, `import.meta may appear only with 'sourceType: "module"'`, {
- code: "BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"
- });
- }
-
- this.sawUnambiguousESM = true;
- return this.parseMetaProperty(node, id, "meta");
- }
-
- parseLiteral(value, type, startPos, startLoc) {
- startPos = startPos || this.state.start;
- startLoc = startLoc || this.state.startLoc;
- const node = this.startNodeAt(startPos, startLoc);
- this.addExtra(node, "rawValue", value);
- this.addExtra(node, "raw", this.input.slice(startPos, this.state.end));
- node.value = value;
- this.next();
- return this.finishNode(node, type);
- }
-
- parseParenAndDistinguishExpression(canBeArrow) {
- const startPos = this.state.start;
- const startLoc = this.state.startLoc;
- let val;
- this.expect(types.parenL);
- const oldMaybeInArrowParameters = this.state.maybeInArrowParameters;
- const oldYieldPos = this.state.yieldPos;
- const oldAwaitPos = this.state.awaitPos;
- const oldInFSharpPipelineDirectBody = this.state.inFSharpPipelineDirectBody;
- this.state.maybeInArrowParameters = true;
- this.state.yieldPos = 0;
- this.state.awaitPos = 0;
- this.state.inFSharpPipelineDirectBody = false;
- const innerStartPos = this.state.start;
- const innerStartLoc = this.state.startLoc;
- const exprList = [];
- const refShorthandDefaultPos = {
- start: 0
- };
- const refNeedsArrowPos = {
- start: 0
- };
- let first = true;
- let spreadStart;
- let optionalCommaStart;
-
- while (!this.match(types.parenR)) {
- if (first) {
- first = false;
- } else {
- this.expect(types.comma, refNeedsArrowPos.start || null);
-
- if (this.match(types.parenR)) {
- optionalCommaStart = this.state.start;
- break;
- }
- }
-
- if (this.match(types.ellipsis)) {
- const spreadNodeStartPos = this.state.start;
- const spreadNodeStartLoc = this.state.startLoc;
- spreadStart = this.state.start;
- exprList.push(this.parseParenItem(this.parseRestBinding(), spreadNodeStartPos, spreadNodeStartLoc));
- this.checkCommaAfterRest();
- break;
- } else {
- exprList.push(this.parseMaybeAssign(false, refShorthandDefaultPos, this.parseParenItem, refNeedsArrowPos));
- }
- }
-
- const innerEndPos = this.state.start;
- const innerEndLoc = this.state.startLoc;
- this.expect(types.parenR);
- this.state.maybeInArrowParameters = oldMaybeInArrowParameters;
- this.state.inFSharpPipelineDirectBody = oldInFSharpPipelineDirectBody;
- let arrowNode = this.startNodeAt(startPos, startLoc);
-
- if (canBeArrow && this.shouldParseArrow() && (arrowNode = this.parseArrow(arrowNode))) {
- this.checkYieldAwaitInDefaultParams();
- this.state.yieldPos = oldYieldPos;
- this.state.awaitPos = oldAwaitPos;
-
- for (let _i = 0; _i < exprList.length; _i++) {
- const param = exprList[_i];
-
- if (param.extra && param.extra.parenthesized) {
- this.unexpected(param.extra.parenStart);
- }
- }
-
- this.parseArrowExpression(arrowNode, exprList, false);
- return arrowNode;
- }
-
- this.state.yieldPos = oldYieldPos || this.state.yieldPos;
- this.state.awaitPos = oldAwaitPos || this.state.awaitPos;
-
- if (!exprList.length) {
- this.unexpected(this.state.lastTokStart);
- }
-
- if (optionalCommaStart) this.unexpected(optionalCommaStart);
- if (spreadStart) this.unexpected(spreadStart);
-
- if (refShorthandDefaultPos.start) {
- this.unexpected(refShorthandDefaultPos.start);
- }
-
- if (refNeedsArrowPos.start) this.unexpected(refNeedsArrowPos.start);
- this.toReferencedListDeep(exprList, true);
-
- if (exprList.length > 1) {
- val = this.startNodeAt(innerStartPos, innerStartLoc);
- val.expressions = exprList;
- this.finishNodeAt(val, "SequenceExpression", innerEndPos, innerEndLoc);
- } else {
- val = exprList[0];
- }
-
- if (!this.options.createParenthesizedExpressions) {
- this.addExtra(val, "parenthesized", true);
- this.addExtra(val, "parenStart", startPos);
- return val;
- }
-
- const parenExpression = this.startNodeAt(startPos, startLoc);
- parenExpression.expression = val;
- this.finishNode(parenExpression, "ParenthesizedExpression");
- return parenExpression;
- }
-
- shouldParseArrow() {
- return !this.canInsertSemicolon();
- }
-
- parseArrow(node) {
- if (this.eat(types.arrow)) {
- return node;
- }
- }
-
- parseParenItem(node, startPos, startLoc) {
- return node;
- }
-
- parseNew() {
- const node = this.startNode();
- const meta = this.parseIdentifier(true);
-
- if (this.eat(types.dot)) {
- const metaProp = this.parseMetaProperty(node, meta, "target");
-
- if (!this.scope.inNonArrowFunction && !this.state.inClassProperty) {
- let error = "new.target can only be used in functions";
-
- if (this.hasPlugin("classProperties")) {
- error += " or class properties";
- }
-
- this.raise(metaProp.start, error);
- }
-
- return metaProp;
- }
-
- node.callee = this.parseNoCallExpr();
-
- if (node.callee.type === "Import") {
- this.raise(node.callee.start, "Cannot use new with import(...)");
- } else if (node.callee.type === "OptionalMemberExpression" || node.callee.type === "OptionalCallExpression") {
- this.raise(this.state.lastTokEnd, "constructors in/after an Optional Chain are not allowed");
- } else if (this.eat(types.questionDot)) {
- this.raise(this.state.start, "constructors in/after an Optional Chain are not allowed");
- }
-
- this.parseNewArguments(node);
- return this.finishNode(node, "NewExpression");
- }
-
- parseNewArguments(node) {
- if (this.eat(types.parenL)) {
- const args = this.parseExprList(types.parenR);
- this.toReferencedList(args);
- node.arguments = args;
- } else {
- node.arguments = [];
- }
- }
-
- parseTemplateElement(isTagged) {
- const elem = this.startNode();
-
- if (this.state.value === null) {
- if (!isTagged) {
- this.raise(this.state.invalidTemplateEscapePosition || 0, "Invalid escape sequence in template");
- } else {
- this.state.invalidTemplateEscapePosition = null;
- }
- }
-
- elem.value = {
- raw: this.input.slice(this.state.start, this.state.end).replace(/\r\n?/g, "\n"),
- cooked: this.state.value
- };
- this.next();
- elem.tail = this.match(types.backQuote);
- return this.finishNode(elem, "TemplateElement");
- }
-
- parseTemplate(isTagged) {
- const node = this.startNode();
- this.next();
- node.expressions = [];
- let curElt = this.parseTemplateElement(isTagged);
- node.quasis = [curElt];
-
- while (!curElt.tail) {
- this.expect(types.dollarBraceL);
- node.expressions.push(this.parseExpression());
- this.expect(types.braceR);
- node.quasis.push(curElt = this.parseTemplateElement(isTagged));
- }
-
- this.next();
- return this.finishNode(node, "TemplateLiteral");
- }
-
- parseObj(isPattern, refShorthandDefaultPos) {
- const propHash = Object.create(null);
- let first = true;
- const node = this.startNode();
- node.properties = [];
- this.next();
-
- while (!this.eat(types.braceR)) {
- if (first) {
- first = false;
- } else {
- this.expect(types.comma);
- if (this.eat(types.braceR)) break;
- }
-
- const prop = this.parseObjectMember(isPattern, refShorthandDefaultPos);
- if (!isPattern) this.checkPropClash(prop, propHash);
-
- if (prop.shorthand) {
- this.addExtra(prop, "shorthand", true);
- }
-
- node.properties.push(prop);
- }
-
- return this.finishNode(node, isPattern ? "ObjectPattern" : "ObjectExpression");
- }
-
- isAsyncProp(prop) {
- return !prop.computed && prop.key.type === "Identifier" && prop.key.name === "async" && (this.match(types.name) || this.match(types.num) || this.match(types.string) || this.match(types.bracketL) || this.state.type.keyword || this.match(types.star)) && !this.hasPrecedingLineBreak();
- }
-
- parseObjectMember(isPattern, refShorthandDefaultPos) {
- let decorators = [];
-
- if (this.match(types.at)) {
- if (this.hasPlugin("decorators")) {
- this.raise(this.state.start, "Stage 2 decorators disallow object literal property decorators");
- } else {
- while (this.match(types.at)) {
- decorators.push(this.parseDecorator());
- }
- }
- }
-
- const prop = this.startNode();
- let isGenerator = false;
- let isAsync = false;
- let startPos;
- let startLoc;
-
- if (this.match(types.ellipsis)) {
- if (decorators.length) this.unexpected();
-
- if (isPattern) {
- this.next();
- prop.argument = this.parseIdentifier();
- this.checkCommaAfterRest();
- return this.finishNode(prop, "RestElement");
- }
-
- return this.parseSpread();
- }
-
- if (decorators.length) {
- prop.decorators = decorators;
- decorators = [];
- }
-
- prop.method = false;
-
- if (isPattern || refShorthandDefaultPos) {
- startPos = this.state.start;
- startLoc = this.state.startLoc;
- }
-
- if (!isPattern) {
- isGenerator = this.eat(types.star);
- }
-
- const containsEsc = this.state.containsEsc;
- this.parsePropertyName(prop);
-
- if (!isPattern && !containsEsc && !isGenerator && this.isAsyncProp(prop)) {
- isAsync = true;
- isGenerator = this.eat(types.star);
- this.parsePropertyName(prop);
- } else {
- isAsync = false;
- }
-
- this.parseObjPropValue(prop, startPos, startLoc, isGenerator, isAsync, isPattern, refShorthandDefaultPos, containsEsc);
- return prop;
- }
-
- isGetterOrSetterMethod(prop, isPattern) {
- return !isPattern && !prop.computed && prop.key.type === "Identifier" && (prop.key.name === "get" || prop.key.name === "set") && (this.match(types.string) || this.match(types.num) || this.match(types.bracketL) || this.match(types.name) || !!this.state.type.keyword);
- }
-
- getGetterSetterExpectedParamCount(method) {
- return method.kind === "get" ? 0 : 1;
- }
-
- checkGetterSetterParams(method) {
- const paramCount = this.getGetterSetterExpectedParamCount(method);
- const start = method.start;
-
- if (method.params.length !== paramCount) {
- if (method.kind === "get") {
- this.raise(start, "getter must not have any formal parameters");
- } else {
- this.raise(start, "setter must have exactly one formal parameter");
- }
- }
-
- if (method.kind === "set" && method.params[method.params.length - 1].type === "RestElement") {
- this.raise(start, "setter function argument must not be a rest parameter");
- }
- }
-
- parseObjectMethod(prop, isGenerator, isAsync, isPattern, containsEsc) {
- if (isAsync || isGenerator || this.match(types.parenL)) {
- if (isPattern) this.unexpected();
- prop.kind = "method";
- prop.method = true;
- return this.parseMethod(prop, isGenerator, isAsync, false, false, "ObjectMethod");
- }
-
- if (!containsEsc && this.isGetterOrSetterMethod(prop, isPattern)) {
- if (isGenerator || isAsync) this.unexpected();
- prop.kind = prop.key.name;
- this.parsePropertyName(prop);
- this.parseMethod(prop, false, false, false, false, "ObjectMethod");
- this.checkGetterSetterParams(prop);
- return prop;
- }
- }
-
- parseObjectProperty(prop, startPos, startLoc, isPattern, refShorthandDefaultPos) {
- prop.shorthand = false;
-
- if (this.eat(types.colon)) {
- prop.value = isPattern ? this.parseMaybeDefault(this.state.start, this.state.startLoc) : this.parseMaybeAssign(false, refShorthandDefaultPos);
- return this.finishNode(prop, "ObjectProperty");
- }
-
- if (!prop.computed && prop.key.type === "Identifier") {
- this.checkReservedWord(prop.key.name, prop.key.start, true, true);
-
- if (isPattern) {
- prop.value = this.parseMaybeDefault(startPos, startLoc, prop.key.__clone());
- } else if (this.match(types.eq) && refShorthandDefaultPos) {
- if (!refShorthandDefaultPos.start) {
- refShorthandDefaultPos.start = this.state.start;
- }
-
- prop.value = this.parseMaybeDefault(startPos, startLoc, prop.key.__clone());
- } else {
- prop.value = prop.key.__clone();
- }
-
- prop.shorthand = true;
- return this.finishNode(prop, "ObjectProperty");
- }
- }
-
- parseObjPropValue(prop, startPos, startLoc, isGenerator, isAsync, isPattern, refShorthandDefaultPos, containsEsc) {
- const node = this.parseObjectMethod(prop, isGenerator, isAsync, isPattern, containsEsc) || this.parseObjectProperty(prop, startPos, startLoc, isPattern, refShorthandDefaultPos);
- if (!node) this.unexpected();
- return node;
- }
-
- parsePropertyName(prop) {
- if (this.eat(types.bracketL)) {
- prop.computed = true;
- prop.key = this.parseMaybeAssign();
- this.expect(types.bracketR);
- } else {
- const oldInPropertyName = this.state.inPropertyName;
- this.state.inPropertyName = true;
- prop.key = this.match(types.num) || this.match(types.string) ? this.parseExprAtom() : this.parseMaybePrivateName();
-
- if (prop.key.type !== "PrivateName") {
- prop.computed = false;
- }
-
- this.state.inPropertyName = oldInPropertyName;
- }
-
- return prop.key;
- }
-
- initFunction(node, isAsync) {
- node.id = null;
- node.generator = false;
- node.async = !!isAsync;
- }
-
- parseMethod(node, isGenerator, isAsync, isConstructor, allowDirectSuper, type, inClassScope = false) {
- const oldYieldPos = this.state.yieldPos;
- const oldAwaitPos = this.state.awaitPos;
- this.state.yieldPos = 0;
- this.state.awaitPos = 0;
- this.initFunction(node, isAsync);
- node.generator = !!isGenerator;
- const allowModifiers = isConstructor;
- this.scope.enter(functionFlags(isAsync, node.generator) | SCOPE_SUPER | (inClassScope ? SCOPE_CLASS : 0) | (allowDirectSuper ? SCOPE_DIRECT_SUPER : 0));
- this.parseFunctionParams(node, allowModifiers);
- this.checkYieldAwaitInDefaultParams();
- this.parseFunctionBodyAndFinish(node, type, true);
- this.scope.exit();
- this.state.yieldPos = oldYieldPos;
- this.state.awaitPos = oldAwaitPos;
- return node;
- }
-
- parseArrowExpression(node, params, isAsync) {
- this.scope.enter(functionFlags(isAsync, false) | SCOPE_ARROW);
- this.initFunction(node, isAsync);
- const oldMaybeInArrowParameters = this.state.maybeInArrowParameters;
- const oldYieldPos = this.state.yieldPos;
- const oldAwaitPos = this.state.awaitPos;
- this.state.maybeInArrowParameters = false;
- this.state.yieldPos = 0;
- this.state.awaitPos = 0;
- if (params) this.setArrowFunctionParameters(node, params);
- this.parseFunctionBody(node, true);
- this.scope.exit();
- this.state.maybeInArrowParameters = oldMaybeInArrowParameters;
- this.state.yieldPos = oldYieldPos;
- this.state.awaitPos = oldAwaitPos;
- return this.finishNode(node, "ArrowFunctionExpression");
- }
-
- setArrowFunctionParameters(node, params) {
- node.params = this.toAssignableList(params, true, "arrow function parameters");
- }
-
- isStrictBody(node) {
- const isBlockStatement = node.body.type === "BlockStatement";
-
- if (isBlockStatement && node.body.directives.length) {
- for (let _i2 = 0, _node$body$directives = node.body.directives; _i2 < _node$body$directives.length; _i2++) {
- const directive = _node$body$directives[_i2];
-
- if (directive.value.value === "use strict") {
- return true;
- }
- }
- }
-
- return false;
- }
-
- parseFunctionBodyAndFinish(node, type, isMethod = false) {
- this.parseFunctionBody(node, false, isMethod);
- this.finishNode(node, type);
- }
-
- parseFunctionBody(node, allowExpression, isMethod = false) {
- const isExpression = allowExpression && !this.match(types.braceL);
- const oldStrict = this.state.strict;
- let useStrict = false;
- const oldInParameters = this.state.inParameters;
- this.state.inParameters = false;
-
- if (isExpression) {
- node.body = this.parseMaybeAssign();
- this.checkParams(node, false, allowExpression);
- } else {
- const nonSimple = !this.isSimpleParamList(node.params);
-
- if (!oldStrict || nonSimple) {
- useStrict = this.strictDirective(this.state.end);
-
- if (useStrict && nonSimple) {
- const errorPos = (node.kind === "method" || node.kind === "constructor") && !!node.key ? node.key.end : node.start;
- this.raise(errorPos, "Illegal 'use strict' directive in function with non-simple parameter list");
- }
- }
-
- const oldLabels = this.state.labels;
- this.state.labels = [];
- if (useStrict) this.state.strict = true;
- this.checkParams(node, !oldStrict && !useStrict && !allowExpression && !isMethod && !nonSimple, allowExpression);
- node.body = this.parseBlock(true, false);
- this.state.labels = oldLabels;
- }
-
- this.state.inParameters = oldInParameters;
-
- if (this.state.strict && node.id) {
- this.checkLVal(node.id, BIND_OUTSIDE, undefined, "function name");
- }
-
- this.state.strict = oldStrict;
- }
-
- isSimpleParamList(params) {
- for (let i = 0, len = params.length; i < len; i++) {
- if (params[i].type !== "Identifier") return false;
- }
-
- return true;
- }
-
- checkParams(node, allowDuplicates, isArrowFunction) {
- const nameHash = Object.create(null);
-
- for (let i = 0; i < node.params.length; i++) {
- this.checkLVal(node.params[i], BIND_VAR, allowDuplicates ? null : nameHash, "function paramter list");
- }
- }
-
- parseExprList(close, allowEmpty, refShorthandDefaultPos) {
- const elts = [];
- let first = true;
-
- while (!this.eat(close)) {
- if (first) {
- first = false;
- } else {
- this.expect(types.comma);
- if (this.eat(close)) break;
- }
-
- elts.push(this.parseExprListItem(allowEmpty, refShorthandDefaultPos));
- }
-
- return elts;
- }
-
- parseExprListItem(allowEmpty, refShorthandDefaultPos, refNeedsArrowPos, allowPlaceholder) {
- let elt;
-
- if (allowEmpty && this.match(types.comma)) {
- elt = null;
- } else if (this.match(types.ellipsis)) {
- const spreadNodeStartPos = this.state.start;
- const spreadNodeStartLoc = this.state.startLoc;
- elt = this.parseParenItem(this.parseSpread(refShorthandDefaultPos, refNeedsArrowPos), spreadNodeStartPos, spreadNodeStartLoc);
- } else if (this.match(types.question)) {
- this.expectPlugin("partialApplication");
-
- if (!allowPlaceholder) {
- this.raise(this.state.start, "Unexpected argument placeholder");
- }
-
- const node = this.startNode();
- this.next();
- elt = this.finishNode(node, "ArgumentPlaceholder");
- } else {
- elt = this.parseMaybeAssign(false, refShorthandDefaultPos, this.parseParenItem, refNeedsArrowPos);
- }
-
- return elt;
- }
-
- parseIdentifier(liberal) {
- const node = this.startNode();
- const name = this.parseIdentifierName(node.start, liberal);
- return this.createIdentifier(node, name);
- }
-
- createIdentifier(node, name) {
- node.name = name;
- node.loc.identifierName = name;
- return this.finishNode(node, "Identifier");
- }
-
- parseIdentifierName(pos, liberal) {
- let name;
-
- if (this.match(types.name)) {
- name = this.state.value;
- } else if (this.state.type.keyword) {
- name = this.state.type.keyword;
-
- if ((name === "class" || name === "function") && (this.state.lastTokEnd !== this.state.lastTokStart + 1 || this.input.charCodeAt(this.state.lastTokStart) !== 46)) {
- this.state.context.pop();
- }
- } else {
- throw this.unexpected();
- }
-
- if (!liberal) {
- this.checkReservedWord(name, this.state.start, !!this.state.type.keyword, false);
- }
-
- this.next();
- return name;
- }
-
- checkReservedWord(word, startLoc, checkKeywords, isBinding) {
- if (this.scope.inGenerator && word === "yield") {
- this.raise(startLoc, "Can not use 'yield' as identifier inside a generator");
- }
-
- if (this.scope.inAsync && word === "await") {
- this.raise(startLoc, "Can not use 'await' as identifier inside an async function");
- }
-
- if (this.state.inClassProperty && word === "arguments") {
- this.raise(startLoc, "'arguments' is not allowed in class field initializer");
- }
-
- if (checkKeywords && isKeyword(word)) {
- this.raise(startLoc, `Unexpected keyword '${word}'`);
- }
-
- const reservedTest = !this.state.strict ? isReservedWord : isBinding ? isStrictBindReservedWord : isStrictReservedWord;
-
- if (reservedTest(word, this.inModule)) {
- if (!this.scope.inAsync && word === "await") {
- this.raise(startLoc, "Can not use keyword 'await' outside an async function");
- }
-
- this.raise(startLoc, `Unexpected reserved word '${word}'`);
- }
- }
-
- parseAwait() {
- if (!this.state.awaitPos) {
- this.state.awaitPos = this.state.start;
- }
-
- const node = this.startNode();
- this.next();
-
- if (this.state.inParameters) {
- this.raise(node.start, "await is not allowed in async function parameters");
- }
-
- if (this.match(types.star)) {
- this.raise(node.start, "await* has been removed from the async functions proposal. Use Promise.all() instead.");
- }
-
- if (!this.state.soloAwait) {
- node.argument = this.parseMaybeUnary();
- }
-
- return this.finishNode(node, "AwaitExpression");
- }
-
- parseYield(noIn) {
- if (!this.state.yieldPos) {
- this.state.yieldPos = this.state.start;
- }
-
- const node = this.startNode();
-
- if (this.state.inParameters) {
- this.raise(node.start, "yield is not allowed in generator parameters");
- }
-
- this.next();
-
- if (this.match(types.semi) || !this.match(types.star) && !this.state.type.startsExpr || this.canInsertSemicolon()) {
- node.delegate = false;
- node.argument = null;
- } else {
- node.delegate = this.eat(types.star);
- node.argument = this.parseMaybeAssign(noIn);
- }
-
- return this.finishNode(node, "YieldExpression");
- }
-
- checkPipelineAtInfixOperator(left, leftStartPos) {
- if (this.getPluginOption("pipelineOperator", "proposal") === "smart") {
- if (left.type === "SequenceExpression") {
- throw this.raise(leftStartPos, `Pipeline head should not be a comma-separated sequence expression`);
- }
- }
- }
-
- parseSmartPipelineBody(childExpression, startPos, startLoc) {
- const pipelineStyle = this.checkSmartPipelineBodyStyle(childExpression);
- this.checkSmartPipelineBodyEarlyErrors(childExpression, pipelineStyle, startPos);
- return this.parseSmartPipelineBodyInStyle(childExpression, pipelineStyle, startPos, startLoc);
- }
-
- checkSmartPipelineBodyEarlyErrors(childExpression, pipelineStyle, startPos) {
- if (this.match(types.arrow)) {
- throw this.raise(this.state.start, `Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized`);
- } else if (pipelineStyle === "PipelineTopicExpression" && childExpression.type === "SequenceExpression") {
- throw this.raise(startPos, `Pipeline body may not be a comma-separated sequence expression`);
- }
- }
-
- parseSmartPipelineBodyInStyle(childExpression, pipelineStyle, startPos, startLoc) {
- const bodyNode = this.startNodeAt(startPos, startLoc);
-
- switch (pipelineStyle) {
- case "PipelineBareFunction":
- bodyNode.callee = childExpression;
- break;
-
- case "PipelineBareConstructor":
- bodyNode.callee = childExpression.callee;
- break;
-
- case "PipelineBareAwaitedFunction":
- bodyNode.callee = childExpression.argument;
- break;
-
- case "PipelineTopicExpression":
- if (!this.topicReferenceWasUsedInCurrentTopicContext()) {
- throw this.raise(startPos, `Pipeline is in topic style but does not use topic reference`);
- }
-
- bodyNode.expression = childExpression;
- break;
-
- default:
- throw this.raise(startPos, `Unknown pipeline style ${pipelineStyle}`);
- }
-
- return this.finishNode(bodyNode, pipelineStyle);
- }
-
- checkSmartPipelineBodyStyle(expression) {
- switch (expression.type) {
- default:
- return this.isSimpleReference(expression) ? "PipelineBareFunction" : "PipelineTopicExpression";
- }
- }
-
- isSimpleReference(expression) {
- switch (expression.type) {
- case "MemberExpression":
- return !expression.computed && this.isSimpleReference(expression.object);
-
- case "Identifier":
- return true;
-
- default:
- return false;
- }
- }
-
- withTopicPermittingContext(callback) {
- const outerContextTopicState = this.state.topicContext;
- this.state.topicContext = {
- maxNumOfResolvableTopics: 1,
- maxTopicIndex: null
- };
-
- try {
- return callback();
- } finally {
- this.state.topicContext = outerContextTopicState;
- }
- }
-
- withTopicForbiddingContext(callback) {
- const outerContextTopicState = this.state.topicContext;
- this.state.topicContext = {
- maxNumOfResolvableTopics: 0,
- maxTopicIndex: null
- };
-
- try {
- return callback();
- } finally {
- this.state.topicContext = outerContextTopicState;
- }
- }
-
- withSoloAwaitPermittingContext(callback) {
- const outerContextSoloAwaitState = this.state.soloAwait;
- this.state.soloAwait = true;
-
- try {
- return callback();
- } finally {
- this.state.soloAwait = outerContextSoloAwaitState;
- }
- }
-
- registerTopicReference() {
- this.state.topicContext.maxTopicIndex = 0;
- }
-
- primaryTopicReferenceIsAllowedInCurrentTopicContext() {
- return this.state.topicContext.maxNumOfResolvableTopics >= 1;
- }
-
- topicReferenceWasUsedInCurrentTopicContext() {
- return this.state.topicContext.maxTopicIndex != null && this.state.topicContext.maxTopicIndex >= 0;
- }
-
- parseFSharpPipelineBody(prec, noIn) {
- const startPos = this.state.start;
- const startLoc = this.state.startLoc;
- this.state.potentialArrowAt = this.state.start;
- const oldInFSharpPipelineDirectBody = this.state.inFSharpPipelineDirectBody;
- this.state.inFSharpPipelineDirectBody = true;
- const ret = this.parseExprOp(this.parseMaybeUnary(), startPos, startLoc, prec, noIn);
- this.state.inFSharpPipelineDirectBody = oldInFSharpPipelineDirectBody;
- return ret;
- }
-
-}
-
-const loopLabel = {
- kind: "loop"
-},
- switchLabel = {
- kind: "switch"
-};
-const FUNC_NO_FLAGS = 0b000,
- FUNC_STATEMENT = 0b001,
- FUNC_HANGING_STATEMENT = 0b010,
- FUNC_NULLABLE_ID = 0b100;
-class StatementParser extends ExpressionParser {
- parseTopLevel(file, program) {
- program.sourceType = this.options.sourceType;
- program.interpreter = this.parseInterpreterDirective();
- this.parseBlockBody(program, true, true, types.eof);
-
- if (this.inModule && !this.options.allowUndeclaredExports && this.scope.undefinedExports.size > 0) {
- for (let _i = 0, _Array$from = Array.from(this.scope.undefinedExports); _i < _Array$from.length; _i++) {
- const [name] = _Array$from[_i];
- const pos = this.scope.undefinedExports.get(name);
- this.raise(pos, `Export '${name}' is not defined`);
- }
- }
-
- file.program = this.finishNode(program, "Program");
- file.comments = this.state.comments;
- if (this.options.tokens) file.tokens = this.state.tokens;
- return this.finishNode(file, "File");
- }
-
- stmtToDirective(stmt) {
- const expr = stmt.expression;
- const directiveLiteral = this.startNodeAt(expr.start, expr.loc.start);
- const directive = this.startNodeAt(stmt.start, stmt.loc.start);
- const raw = this.input.slice(expr.start, expr.end);
- const val = directiveLiteral.value = raw.slice(1, -1);
- this.addExtra(directiveLiteral, "raw", raw);
- this.addExtra(directiveLiteral, "rawValue", val);
- directive.value = this.finishNodeAt(directiveLiteral, "DirectiveLiteral", expr.end, expr.loc.end);
- return this.finishNodeAt(directive, "Directive", stmt.end, stmt.loc.end);
- }
-
- parseInterpreterDirective() {
- if (!this.match(types.interpreterDirective)) {
- return null;
- }
-
- const node = this.startNode();
- node.value = this.state.value;
- this.next();
- return this.finishNode(node, "InterpreterDirective");
- }
-
- isLet(context) {
- if (!this.isContextual("let")) {
- return false;
- }
-
- skipWhiteSpace.lastIndex = this.state.pos;
- const skip = skipWhiteSpace.exec(this.input);
- const next = this.state.pos + skip[0].length;
- const nextCh = this.input.charCodeAt(next);
- if (nextCh === 91) return true;
- if (context) return false;
- if (nextCh === 123) return true;
-
- if (isIdentifierStart(nextCh)) {
- let pos = next + 1;
-
- while (isIdentifierChar(this.input.charCodeAt(pos))) {
- ++pos;
- }
-
- const ident = this.input.slice(next, pos);
- if (!keywordRelationalOperator.test(ident)) return true;
- }
-
- return false;
- }
-
- parseStatement(context, topLevel) {
- if (this.match(types.at)) {
- this.parseDecorators(true);
- }
-
- return this.parseStatementContent(context, topLevel);
- }
-
- parseStatementContent(context, topLevel) {
- let starttype = this.state.type;
- const node = this.startNode();
- let kind;
-
- if (this.isLet(context)) {
- starttype = types._var;
- kind = "let";
- }
-
- switch (starttype) {
- case types._break:
- case types._continue:
- return this.parseBreakContinueStatement(node, starttype.keyword);
-
- case types._debugger:
- return this.parseDebuggerStatement(node);
-
- case types._do:
- return this.parseDoStatement(node);
-
- case types._for:
- return this.parseForStatement(node);
-
- case types._function:
- if (this.lookahead().type === types.dot) break;
-
- if (context) {
- if (this.state.strict) {
- this.raise(this.state.start, "In strict mode code, functions can only be declared at top level or inside a block");
- } else if (context !== "if" && context !== "label") {
- this.raise(this.state.start, "In non-strict mode code, functions can only be declared at top level, " + "inside a block, or as the body of an if statement");
- }
- }
-
- return this.parseFunctionStatement(node, false, !context);
-
- case types._class:
- if (context) this.unexpected();
- return this.parseClass(node, true);
-
- case types._if:
- return this.parseIfStatement(node);
-
- case types._return:
- return this.parseReturnStatement(node);
-
- case types._switch:
- return this.parseSwitchStatement(node);
-
- case types._throw:
- return this.parseThrowStatement(node);
-
- case types._try:
- return this.parseTryStatement(node);
-
- case types._const:
- case types._var:
- kind = kind || this.state.value;
-
- if (context && kind !== "var") {
- this.unexpected(this.state.start, "Lexical declaration cannot appear in a single-statement context");
- }
-
- return this.parseVarStatement(node, kind);
-
- case types._while:
- return this.parseWhileStatement(node);
-
- case types._with:
- return this.parseWithStatement(node);
-
- case types.braceL:
- return this.parseBlock();
-
- case types.semi:
- return this.parseEmptyStatement(node);
-
- case types._export:
- case types._import:
- {
- const nextToken = this.lookahead();
-
- if (nextToken.type === types.parenL || nextToken.type === types.dot) {
- break;
- }
-
- if (!this.options.allowImportExportEverywhere && !topLevel) {
- this.raise(this.state.start, "'import' and 'export' may only appear at the top level");
- }
-
- this.next();
- let result;
-
- if (starttype === types._import) {
- result = this.parseImport(node);
-
- if (result.type === "ImportDeclaration" && (!result.importKind || result.importKind === "value")) {
- this.sawUnambiguousESM = true;
- }
- } else {
- result = this.parseExport(node);
-
- if (result.type === "ExportNamedDeclaration" && (!result.exportKind || result.exportKind === "value") || result.type === "ExportAllDeclaration" && (!result.exportKind || result.exportKind === "value") || result.type === "ExportDefaultDeclaration") {
- this.sawUnambiguousESM = true;
- }
- }
-
- this.assertModuleNodeAllowed(node);
- return result;
- }
-
- default:
- {
- if (this.isAsyncFunction()) {
- if (context) {
- this.unexpected(null, "Async functions can only be declared at the top level or inside a block");
- }
-
- this.next();
- return this.parseFunctionStatement(node, true, !context);
- }
- }
- }
-
- const maybeName = this.state.value;
- const expr = this.parseExpression();
-
- if (starttype === types.name && expr.type === "Identifier" && this.eat(types.colon)) {
- return this.parseLabeledStatement(node, maybeName, expr, context);
- } else {
- return this.parseExpressionStatement(node, expr);
- }
- }
-
- assertModuleNodeAllowed(node) {
- if (!this.options.allowImportExportEverywhere && !this.inModule) {
- this.raise(node.start, `'import' and 'export' may appear only with 'sourceType: "module"'`, {
- code: "BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"
- });
- }
- }
-
- takeDecorators(node) {
- const decorators = this.state.decoratorStack[this.state.decoratorStack.length - 1];
-
- if (decorators.length) {
- node.decorators = decorators;
- this.resetStartLocationFromNode(node, decorators[0]);
- this.state.decoratorStack[this.state.decoratorStack.length - 1] = [];
- }
- }
-
- canHaveLeadingDecorator() {
- return this.match(types._class);
- }
-
- parseDecorators(allowExport) {
- const currentContextDecorators = this.state.decoratorStack[this.state.decoratorStack.length - 1];
-
- while (this.match(types.at)) {
- const decorator = this.parseDecorator();
- currentContextDecorators.push(decorator);
- }
-
- if (this.match(types._export)) {
- if (!allowExport) {
- this.unexpected();
- }
-
- if (this.hasPlugin("decorators") && !this.getPluginOption("decorators", "decoratorsBeforeExport")) {
- this.raise(this.state.start, "Using the export keyword between a decorator and a class is not allowed. " + "Please use `export @dec class` instead.");
- }
- } else if (!this.canHaveLeadingDecorator()) {
- this.raise(this.state.start, "Leading decorators must be attached to a class declaration");
- }
- }
-
- parseDecorator() {
- this.expectOnePlugin(["decorators-legacy", "decorators"]);
- const node = this.startNode();
- this.next();
-
- if (this.hasPlugin("decorators")) {
- this.state.decoratorStack.push([]);
- const startPos = this.state.start;
- const startLoc = this.state.startLoc;
- let expr;
-
- if (this.eat(types.parenL)) {
- expr = this.parseExpression();
- this.expect(types.parenR);
- } else {
- expr = this.parseIdentifier(false);
-
- while (this.eat(types.dot)) {
- const node = this.startNodeAt(startPos, startLoc);
- node.object = expr;
- node.property = this.parseIdentifier(true);
- node.computed = false;
- expr = this.finishNode(node, "MemberExpression");
- }
- }
-
- node.expression = this.parseMaybeDecoratorArguments(expr);
- this.state.decoratorStack.pop();
- } else {
- node.expression = this.parseExprSubscripts();
- }
-
- return this.finishNode(node, "Decorator");
- }
-
- parseMaybeDecoratorArguments(expr) {
- if (this.eat(types.parenL)) {
- const node = this.startNodeAtNode(expr);
- node.callee = expr;
- node.arguments = this.parseCallExpressionArguments(types.parenR, false);
- this.toReferencedList(node.arguments);
- return this.finishNode(node, "CallExpression");
- }
-
- return expr;
- }
-
- parseBreakContinueStatement(node, keyword) {
- const isBreak = keyword === "break";
- this.next();
-
- if (this.isLineTerminator()) {
- node.label = null;
- } else {
- node.label = this.parseIdentifier();
- this.semicolon();
- }
-
- this.verifyBreakContinue(node, keyword);
- return this.finishNode(node, isBreak ? "BreakStatement" : "ContinueStatement");
- }
-
- verifyBreakContinue(node, keyword) {
- const isBreak = keyword === "break";
- let i;
-
- for (i = 0; i < this.state.labels.length; ++i) {
- const lab = this.state.labels[i];
-
- if (node.label == null || lab.name === node.label.name) {
- if (lab.kind != null && (isBreak || lab.kind === "loop")) break;
- if (node.label && isBreak) break;
- }
- }
-
- if (i === this.state.labels.length) {
- this.raise(node.start, "Unsyntactic " + keyword);
- }
- }
-
- parseDebuggerStatement(node) {
- this.next();
- this.semicolon();
- return this.finishNode(node, "DebuggerStatement");
- }
-
- parseHeaderExpression() {
- this.expect(types.parenL);
- const val = this.parseExpression();
- this.expect(types.parenR);
- return val;
- }
-
- parseDoStatement(node) {
- this.next();
- this.state.labels.push(loopLabel);
- node.body = this.withTopicForbiddingContext(() => this.parseStatement("do"));
- this.state.labels.pop();
- this.expect(types._while);
- node.test = this.parseHeaderExpression();
- this.eat(types.semi);
- return this.finishNode(node, "DoWhileStatement");
- }
-
- parseForStatement(node) {
- this.next();
- this.state.labels.push(loopLabel);
- let awaitAt = -1;
-
- if ((this.scope.inAsync || !this.scope.inFunction && this.options.allowAwaitOutsideFunction) && this.eatContextual("await")) {
- awaitAt = this.state.lastTokStart;
- }
-
- this.scope.enter(SCOPE_OTHER);
- this.expect(types.parenL);
-
- if (this.match(types.semi)) {
- if (awaitAt > -1) {
- this.unexpected(awaitAt);
- }
-
- return this.parseFor(node, null);
- }
-
- const isLet = this.isLet();
-
- if (this.match(types._var) || this.match(types._const) || isLet) {
- const init = this.startNode();
- const kind = isLet ? "let" : this.state.value;
- this.next();
- this.parseVar(init, true, kind);
- this.finishNode(init, "VariableDeclaration");
-
- if ((this.match(types._in) || this.isContextual("of")) && init.declarations.length === 1) {
- return this.parseForIn(node, init, awaitAt);
- }
-
- if (awaitAt > -1) {
- this.unexpected(awaitAt);
- }
-
- return this.parseFor(node, init);
- }
-
- const refShorthandDefaultPos = {
- start: 0
- };
- const init = this.parseExpression(true, refShorthandDefaultPos);
-
- if (this.match(types._in) || this.isContextual("of")) {
- const description = this.isContextual("of") ? "for-of statement" : "for-in statement";
- this.toAssignable(init, undefined, description);
- this.checkLVal(init, undefined, undefined, description);
- return this.parseForIn(node, init, awaitAt);
- } else if (refShorthandDefaultPos.start) {
- this.unexpected(refShorthandDefaultPos.start);
- }
-
- if (awaitAt > -1) {
- this.unexpected(awaitAt);
- }
-
- return this.parseFor(node, init);
- }
-
- parseFunctionStatement(node, isAsync, declarationPosition) {
- this.next();
- return this.parseFunction(node, FUNC_STATEMENT | (declarationPosition ? 0 : FUNC_HANGING_STATEMENT), isAsync);
- }
-
- parseIfStatement(node) {
- this.next();
- node.test = this.parseHeaderExpression();
- node.consequent = this.parseStatement("if");
- node.alternate = this.eat(types._else) ? this.parseStatement("if") : null;
- return this.finishNode(node, "IfStatement");
- }
-
- parseReturnStatement(node) {
- if (!this.scope.inFunction && !this.options.allowReturnOutsideFunction) {
- this.raise(this.state.start, "'return' outside of function");
- }
-
- this.next();
-
- if (this.isLineTerminator()) {
- node.argument = null;
- } else {
- node.argument = this.parseExpression();
- this.semicolon();
- }
-
- return this.finishNode(node, "ReturnStatement");
- }
-
- parseSwitchStatement(node) {
- this.next();
- node.discriminant = this.parseHeaderExpression();
- const cases = node.cases = [];
- this.expect(types.braceL);
- this.state.labels.push(switchLabel);
- this.scope.enter(SCOPE_OTHER);
- let cur;
-
- for (let sawDefault; !this.match(types.braceR);) {
- if (this.match(types._case) || this.match(types._default)) {
- const isCase = this.match(types._case);
- if (cur) this.finishNode(cur, "SwitchCase");
- cases.push(cur = this.startNode());
- cur.consequent = [];
- this.next();
-
- if (isCase) {
- cur.test = this.parseExpression();
- } else {
- if (sawDefault) {
- this.raise(this.state.lastTokStart, "Multiple default clauses");
- }
-
- sawDefault = true;
- cur.test = null;
- }
-
- this.expect(types.colon);
- } else {
- if (cur) {
- cur.consequent.push(this.parseStatement(null));
- } else {
- this.unexpected();
- }
- }
- }
-
- this.scope.exit();
- if (cur) this.finishNode(cur, "SwitchCase");
- this.next();
- this.state.labels.pop();
- return this.finishNode(node, "SwitchStatement");
- }
-
- parseThrowStatement(node) {
- this.next();
-
- if (lineBreak.test(this.input.slice(this.state.lastTokEnd, this.state.start))) {
- this.raise(this.state.lastTokEnd, "Illegal newline after throw");
- }
-
- node.argument = this.parseExpression();
- this.semicolon();
- return this.finishNode(node, "ThrowStatement");
- }
-
- parseTryStatement(node) {
- this.next();
- node.block = this.parseBlock();
- node.handler = null;
-
- if (this.match(types._catch)) {
- const clause = this.startNode();
- this.next();
-
- if (this.match(types.parenL)) {
- this.expect(types.parenL);
- clause.param = this.parseBindingAtom();
- const simple = clause.param.type === "Identifier";
- this.scope.enter(simple ? SCOPE_SIMPLE_CATCH : 0);
- this.checkLVal(clause.param, BIND_LEXICAL, null, "catch clause");
- this.expect(types.parenR);
- } else {
- clause.param = null;
- this.scope.enter(SCOPE_OTHER);
- }
-
- clause.body = this.withTopicForbiddingContext(() => this.parseBlock(false, false));
- this.scope.exit();
- node.handler = this.finishNode(clause, "CatchClause");
- }
-
- node.finalizer = this.eat(types._finally) ? this.parseBlock() : null;
-
- if (!node.handler && !node.finalizer) {
- this.raise(node.start, "Missing catch or finally clause");
- }
-
- return this.finishNode(node, "TryStatement");
- }
-
- parseVarStatement(node, kind) {
- this.next();
- this.parseVar(node, false, kind);
- this.semicolon();
- return this.finishNode(node, "VariableDeclaration");
- }
-
- parseWhileStatement(node) {
- this.next();
- node.test = this.parseHeaderExpression();
- this.state.labels.push(loopLabel);
- node.body = this.withTopicForbiddingContext(() => this.parseStatement("while"));
- this.state.labels.pop();
- return this.finishNode(node, "WhileStatement");
- }
-
- parseWithStatement(node) {
- if (this.state.strict) {
- this.raise(this.state.start, "'with' in strict mode");
- }
-
- this.next();
- node.object = this.parseHeaderExpression();
- node.body = this.withTopicForbiddingContext(() => this.parseStatement("with"));
- return this.finishNode(node, "WithStatement");
- }
-
- parseEmptyStatement(node) {
- this.next();
- return this.finishNode(node, "EmptyStatement");
- }
-
- parseLabeledStatement(node, maybeName, expr, context) {
- for (let _i2 = 0, _this$state$labels = this.state.labels; _i2 < _this$state$labels.length; _i2++) {
- const label = _this$state$labels[_i2];
-
- if (label.name === maybeName) {
- this.raise(expr.start, `Label '${maybeName}' is already declared`);
- }
- }
-
- const kind = this.state.type.isLoop ? "loop" : this.match(types._switch) ? "switch" : null;
-
- for (let i = this.state.labels.length - 1; i >= 0; i--) {
- const label = this.state.labels[i];
-
- if (label.statementStart === node.start) {
- label.statementStart = this.state.start;
- label.kind = kind;
- } else {
- break;
- }
- }
-
- this.state.labels.push({
- name: maybeName,
- kind: kind,
- statementStart: this.state.start
- });
- node.body = this.parseStatement(context ? context.indexOf("label") === -1 ? context + "label" : context : "label");
- this.state.labels.pop();
- node.label = expr;
- return this.finishNode(node, "LabeledStatement");
- }
-
- parseExpressionStatement(node, expr) {
- node.expression = expr;
- this.semicolon();
- return this.finishNode(node, "ExpressionStatement");
- }
-
- parseBlock(allowDirectives = false, createNewLexicalScope = true) {
- const node = this.startNode();
- this.expect(types.braceL);
-
- if (createNewLexicalScope) {
- this.scope.enter(SCOPE_OTHER);
- }
-
- this.parseBlockBody(node, allowDirectives, false, types.braceR);
-
- if (createNewLexicalScope) {
- this.scope.exit();
- }
-
- return this.finishNode(node, "BlockStatement");
- }
-
- isValidDirective(stmt) {
- return stmt.type === "ExpressionStatement" && stmt.expression.type === "StringLiteral" && !stmt.expression.extra.parenthesized;
- }
-
- parseBlockBody(node, allowDirectives, topLevel, end) {
- const body = node.body = [];
- const directives = node.directives = [];
- this.parseBlockOrModuleBlockBody(body, allowDirectives ? directives : undefined, topLevel, end);
- }
-
- parseBlockOrModuleBlockBody(body, directives, topLevel, end) {
- let parsedNonDirective = false;
- let oldStrict;
- let octalPosition;
-
- while (!this.eat(end)) {
- if (!parsedNonDirective && this.state.containsOctal && !octalPosition) {
- octalPosition = this.state.octalPosition;
- }
-
- const stmt = this.parseStatement(null, topLevel);
-
- if (directives && !parsedNonDirective && this.isValidDirective(stmt)) {
- const directive = this.stmtToDirective(stmt);
- directives.push(directive);
-
- if (oldStrict === undefined && directive.value.value === "use strict") {
- oldStrict = this.state.strict;
- this.setStrict(true);
-
- if (octalPosition) {
- this.raise(octalPosition, "Octal literal in strict mode");
- }
- }
-
- continue;
- }
-
- parsedNonDirective = true;
- body.push(stmt);
- }
-
- if (oldStrict === false) {
- this.setStrict(false);
- }
- }
-
- parseFor(node, init) {
- node.init = init;
- this.expect(types.semi);
- node.test = this.match(types.semi) ? null : this.parseExpression();
- this.expect(types.semi);
- node.update = this.match(types.parenR) ? null : this.parseExpression();
- this.expect(types.parenR);
- node.body = this.withTopicForbiddingContext(() => this.parseStatement("for"));
- this.scope.exit();
- this.state.labels.pop();
- return this.finishNode(node, "ForStatement");
- }
-
- parseForIn(node, init, awaitAt) {
- const isForIn = this.match(types._in);
- this.next();
-
- if (isForIn) {
- if (awaitAt > -1) this.unexpected(awaitAt);
- } else {
- node.await = awaitAt > -1;
- }
-
- if (init.type === "VariableDeclaration" && init.declarations[0].init != null && (!isForIn || this.state.strict || init.kind !== "var" || init.declarations[0].id.type !== "Identifier")) {
- this.raise(init.start, `${isForIn ? "for-in" : "for-of"} loop variable declaration may not have an initializer`);
- } else if (init.type === "AssignmentPattern") {
- this.raise(init.start, "Invalid left-hand side in for-loop");
- }
-
- node.left = init;
- node.right = isForIn ? this.parseExpression() : this.parseMaybeAssign();
- this.expect(types.parenR);
- node.body = this.withTopicForbiddingContext(() => this.parseStatement("for"));
- this.scope.exit();
- this.state.labels.pop();
- return this.finishNode(node, isForIn ? "ForInStatement" : "ForOfStatement");
- }
-
- parseVar(node, isFor, kind) {
- const declarations = node.declarations = [];
- const isTypescript = this.hasPlugin("typescript");
- node.kind = kind;
-
- for (;;) {
- const decl = this.startNode();
- this.parseVarId(decl, kind);
-
- if (this.eat(types.eq)) {
- decl.init = this.parseMaybeAssign(isFor);
- } else {
- if (kind === "const" && !(this.match(types._in) || this.isContextual("of"))) {
- if (!isTypescript) {
- this.unexpected();
- }
- } else if (decl.id.type !== "Identifier" && !(isFor && (this.match(types._in) || this.isContextual("of")))) {
- this.raise(this.state.lastTokEnd, "Complex binding patterns require an initialization value");
- }
-
- decl.init = null;
- }
-
- declarations.push(this.finishNode(decl, "VariableDeclarator"));
- if (!this.eat(types.comma)) break;
- }
-
- return node;
- }
-
- parseVarId(decl, kind) {
- decl.id = this.parseBindingAtom();
- this.checkLVal(decl.id, kind === "var" ? BIND_VAR : BIND_LEXICAL, undefined, "variable declaration");
- }
-
- parseFunction(node, statement = FUNC_NO_FLAGS, isAsync = false) {
- const isStatement = statement & FUNC_STATEMENT;
- const isHangingStatement = statement & FUNC_HANGING_STATEMENT;
- const requireId = !!isStatement && !(statement & FUNC_NULLABLE_ID);
- this.initFunction(node, isAsync);
-
- if (this.match(types.star) && isHangingStatement) {
- this.unexpected(this.state.start, "Generators can only be declared at the top level or inside a block");
- }
-
- node.generator = this.eat(types.star);
-
- if (isStatement) {
- node.id = this.parseFunctionId(requireId);
- }
-
- const oldInClassProperty = this.state.inClassProperty;
- const oldYieldPos = this.state.yieldPos;
- const oldAwaitPos = this.state.awaitPos;
- this.state.inClassProperty = false;
- this.state.yieldPos = 0;
- this.state.awaitPos = 0;
- this.scope.enter(functionFlags(node.async, node.generator));
-
- if (!isStatement) {
- node.id = this.parseFunctionId();
- }
-
- this.parseFunctionParams(node);
- this.withTopicForbiddingContext(() => {
- this.parseFunctionBodyAndFinish(node, isStatement ? "FunctionDeclaration" : "FunctionExpression");
- });
- this.scope.exit();
-
- if (isStatement && !isHangingStatement) {
- this.checkFunctionStatementId(node);
- }
-
- this.state.inClassProperty = oldInClassProperty;
- this.state.yieldPos = oldYieldPos;
- this.state.awaitPos = oldAwaitPos;
- return node;
- }
-
- parseFunctionId(requireId) {
- return requireId || this.match(types.name) ? this.parseIdentifier() : null;
- }
-
- parseFunctionParams(node, allowModifiers) {
- const oldInParameters = this.state.inParameters;
- this.state.inParameters = true;
- this.expect(types.parenL);
- node.params = this.parseBindingList(types.parenR, false, allowModifiers);
- this.state.inParameters = oldInParameters;
- this.checkYieldAwaitInDefaultParams();
- }
-
- checkFunctionStatementId(node) {
- if (!node.id) return;
- this.checkLVal(node.id, this.state.strict || node.generator || node.async ? this.scope.treatFunctionsAsVar ? BIND_VAR : BIND_LEXICAL : BIND_FUNCTION, null, "function name");
- }
-
- parseClass(node, isStatement, optionalId) {
- this.next();
- this.takeDecorators(node);
- const oldStrict = this.state.strict;
- this.state.strict = true;
- this.parseClassId(node, isStatement, optionalId);
- this.parseClassSuper(node);
- node.body = this.parseClassBody(!!node.superClass);
- this.state.strict = oldStrict;
- return this.finishNode(node, isStatement ? "ClassDeclaration" : "ClassExpression");
- }
-
- isClassProperty() {
- return this.match(types.eq) || this.match(types.semi) || this.match(types.braceR);
- }
-
- isClassMethod() {
- return this.match(types.parenL);
- }
-
- isNonstaticConstructor(method) {
- return !method.computed && !method.static && (method.key.name === "constructor" || method.key.value === "constructor");
- }
-
- parseClassBody(constructorAllowsSuper) {
- this.state.classLevel++;
- const state = {
- hadConstructor: false
- };
- let decorators = [];
- const classBody = this.startNode();
- classBody.body = [];
- this.expect(types.braceL);
- this.withTopicForbiddingContext(() => {
- while (!this.eat(types.braceR)) {
- if (this.eat(types.semi)) {
- if (decorators.length > 0) {
- this.raise(this.state.lastTokEnd, "Decorators must not be followed by a semicolon");
- }
-
- continue;
- }
-
- if (this.match(types.at)) {
- decorators.push(this.parseDecorator());
- continue;
- }
-
- const member = this.startNode();
-
- if (decorators.length) {
- member.decorators = decorators;
- this.resetStartLocationFromNode(member, decorators[0]);
- decorators = [];
- }
-
- this.parseClassMember(classBody, member, state, constructorAllowsSuper);
-
- if (member.kind === "constructor" && member.decorators && member.decorators.length > 0) {
- this.raise(member.start, "Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?");
- }
- }
- });
-
- if (decorators.length) {
- this.raise(this.state.start, "You have trailing decorators with no method");
- }
-
- this.state.classLevel--;
- return this.finishNode(classBody, "ClassBody");
- }
-
- parseClassMember(classBody, member, state, constructorAllowsSuper) {
- let isStatic = false;
- const containsEsc = this.state.containsEsc;
-
- if (this.match(types.name) && this.state.value === "static") {
- const key = this.parseIdentifier(true);
-
- if (this.isClassMethod()) {
- const method = member;
- method.kind = "method";
- method.computed = false;
- method.key = key;
- method.static = false;
- this.pushClassMethod(classBody, method, false, false, false, false);
- return;
- } else if (this.isClassProperty()) {
- const prop = member;
- prop.computed = false;
- prop.key = key;
- prop.static = false;
- classBody.body.push(this.parseClassProperty(prop));
- return;
- } else if (containsEsc) {
- throw this.unexpected();
- }
-
- isStatic = true;
- }
-
- this.parseClassMemberWithIsStatic(classBody, member, state, isStatic, constructorAllowsSuper);
- }
-
- parseClassMemberWithIsStatic(classBody, member, state, isStatic, constructorAllowsSuper) {
- const publicMethod = member;
- const privateMethod = member;
- const publicProp = member;
- const privateProp = member;
- const method = publicMethod;
- const publicMember = publicMethod;
- member.static = isStatic;
-
- if (this.eat(types.star)) {
- method.kind = "method";
- this.parseClassPropertyName(method);
-
- if (method.key.type === "PrivateName") {
- this.pushClassPrivateMethod(classBody, privateMethod, true, false);
- return;
- }
-
- if (this.isNonstaticConstructor(publicMethod)) {
- this.raise(publicMethod.key.start, "Constructor can't be a generator");
- }
-
- this.pushClassMethod(classBody, publicMethod, true, false, false, false);
- return;
- }
-
- const containsEsc = this.state.containsEsc;
- const key = this.parseClassPropertyName(member);
- const isPrivate = key.type === "PrivateName";
- const isSimple = key.type === "Identifier";
- this.parsePostMemberNameModifiers(publicMember);
-
- if (this.isClassMethod()) {
- method.kind = "method";
-
- if (isPrivate) {
- this.pushClassPrivateMethod(classBody, privateMethod, false, false);
- return;
- }
-
- const isConstructor = this.isNonstaticConstructor(publicMethod);
- let allowsDirectSuper = false;
-
- if (isConstructor) {
- publicMethod.kind = "constructor";
-
- if (publicMethod.decorators) {
- this.raise(publicMethod.start, "You can't attach decorators to a class constructor");
- }
-
- if (state.hadConstructor && !this.hasPlugin("typescript")) {
- this.raise(key.start, "Duplicate constructor in the same class");
- }
-
- state.hadConstructor = true;
- allowsDirectSuper = constructorAllowsSuper;
- }
-
- this.pushClassMethod(classBody, publicMethod, false, false, isConstructor, allowsDirectSuper);
- } else if (this.isClassProperty()) {
- if (isPrivate) {
- this.pushClassPrivateProperty(classBody, privateProp);
- } else {
- this.pushClassProperty(classBody, publicProp);
- }
- } else if (isSimple && key.name === "async" && !containsEsc && !this.isLineTerminator()) {
- const isGenerator = this.eat(types.star);
- method.kind = "method";
- this.parseClassPropertyName(method);
-
- if (method.key.type === "PrivateName") {
- this.pushClassPrivateMethod(classBody, privateMethod, isGenerator, true);
- } else {
- if (this.isNonstaticConstructor(publicMethod)) {
- this.raise(publicMethod.key.start, "Constructor can't be an async function");
- }
-
- this.pushClassMethod(classBody, publicMethod, isGenerator, true, false, false);
- }
- } else if (isSimple && (key.name === "get" || key.name === "set") && !containsEsc && !(this.match(types.star) && this.isLineTerminator())) {
- method.kind = key.name;
- this.parseClassPropertyName(publicMethod);
-
- if (method.key.type === "PrivateName") {
- this.pushClassPrivateMethod(classBody, privateMethod, false, false);
- } else {
- if (this.isNonstaticConstructor(publicMethod)) {
- this.raise(publicMethod.key.start, "Constructor can't have get/set modifier");
- }
-
- this.pushClassMethod(classBody, publicMethod, false, false, false, false);
- }
-
- this.checkGetterSetterParams(publicMethod);
- } else if (this.isLineTerminator()) {
- if (isPrivate) {
- this.pushClassPrivateProperty(classBody, privateProp);
- } else {
- this.pushClassProperty(classBody, publicProp);
- }
- } else {
- this.unexpected();
- }
- }
-
- parseClassPropertyName(member) {
- const key = this.parsePropertyName(member);
-
- if (!member.computed && member.static && (key.name === "prototype" || key.value === "prototype")) {
- this.raise(key.start, "Classes may not have static property named prototype");
- }
-
- if (key.type === "PrivateName" && key.id.name === "constructor") {
- this.raise(key.start, "Classes may not have a private field named '#constructor'");
- }
-
- return key;
- }
-
- pushClassProperty(classBody, prop) {
- if (this.isNonstaticConstructor(prop)) {
- this.raise(prop.key.start, "Classes may not have a non-static field named 'constructor'");
- }
-
- classBody.body.push(this.parseClassProperty(prop));
- }
-
- pushClassPrivateProperty(classBody, prop) {
- this.expectPlugin("classPrivateProperties", prop.key.start);
- classBody.body.push(this.parseClassPrivateProperty(prop));
- }
-
- pushClassMethod(classBody, method, isGenerator, isAsync, isConstructor, allowsDirectSuper) {
- classBody.body.push(this.parseMethod(method, isGenerator, isAsync, isConstructor, allowsDirectSuper, "ClassMethod", true));
- }
-
- pushClassPrivateMethod(classBody, method, isGenerator, isAsync) {
- this.expectPlugin("classPrivateMethods", method.key.start);
- classBody.body.push(this.parseMethod(method, isGenerator, isAsync, false, false, "ClassPrivateMethod", true));
- }
-
- parsePostMemberNameModifiers(methodOrProp) {}
-
- parseAccessModifier() {
- return undefined;
- }
-
- parseClassPrivateProperty(node) {
- this.state.inClassProperty = true;
- this.scope.enter(SCOPE_CLASS | SCOPE_SUPER);
- node.value = this.eat(types.eq) ? this.parseMaybeAssign() : null;
- this.semicolon();
- this.state.inClassProperty = false;
- this.scope.exit();
- return this.finishNode(node, "ClassPrivateProperty");
- }
-
- parseClassProperty(node) {
- if (!node.typeAnnotation) {
- this.expectPlugin("classProperties");
- }
-
- this.state.inClassProperty = true;
- this.scope.enter(SCOPE_CLASS | SCOPE_SUPER);
-
- if (this.match(types.eq)) {
- this.expectPlugin("classProperties");
- this.next();
- node.value = this.parseMaybeAssign();
- } else {
- node.value = null;
- }
-
- this.semicolon();
- this.state.inClassProperty = false;
- this.scope.exit();
- return this.finishNode(node, "ClassProperty");
- }
-
- parseClassId(node, isStatement, optionalId) {
- if (this.match(types.name)) {
- node.id = this.parseIdentifier();
-
- if (isStatement) {
- this.checkLVal(node.id, BIND_CLASS, undefined, "class name");
- }
- } else {
- if (optionalId || !isStatement) {
- node.id = null;
- } else {
- this.unexpected(null, "A class name is required");
- }
- }
- }
-
- parseClassSuper(node) {
- node.superClass = this.eat(types._extends) ? this.parseExprSubscripts() : null;
- }
-
- parseExport(node) {
- const hasDefault = this.maybeParseExportDefaultSpecifier(node);
- const parseAfterDefault = !hasDefault || this.eat(types.comma);
- const hasStar = parseAfterDefault && this.eatExportStar(node);
- const hasNamespace = hasStar && this.maybeParseExportNamespaceSpecifier(node);
- const parseAfterNamespace = parseAfterDefault && (!hasNamespace || this.eat(types.comma));
- const isFromRequired = hasDefault || hasStar;
-
- if (hasStar && !hasNamespace) {
- if (hasDefault) this.unexpected();
- this.parseExportFrom(node, true);
- return this.finishNode(node, "ExportAllDeclaration");
- }
-
- const hasSpecifiers = this.maybeParseExportNamedSpecifiers(node);
-
- if (hasDefault && parseAfterDefault && !hasStar && !hasSpecifiers || hasNamespace && parseAfterNamespace && !hasSpecifiers) {
- throw this.unexpected(null, types.braceL);
- }
-
- let hasDeclaration;
-
- if (isFromRequired || hasSpecifiers) {
- hasDeclaration = false;
- this.parseExportFrom(node, isFromRequired);
- } else {
- hasDeclaration = this.maybeParseExportDeclaration(node);
- }
-
- if (isFromRequired || hasSpecifiers || hasDeclaration) {
- this.checkExport(node, true, false, !!node.source);
- return this.finishNode(node, "ExportNamedDeclaration");
- }
-
- if (this.eat(types._default)) {
- node.declaration = this.parseExportDefaultExpression();
- this.checkExport(node, true, true);
- return this.finishNode(node, "ExportDefaultDeclaration");
- }
-
- throw this.unexpected(null, types.braceL);
- }
-
- eatExportStar(node) {
- return this.eat(types.star);
- }
-
- maybeParseExportDefaultSpecifier(node) {
- if (this.isExportDefaultSpecifier()) {
- this.expectPlugin("exportDefaultFrom");
- const specifier = this.startNode();
- specifier.exported = this.parseIdentifier(true);
- node.specifiers = [this.finishNode(specifier, "ExportDefaultSpecifier")];
- return true;
- }
-
- return false;
- }
-
- maybeParseExportNamespaceSpecifier(node) {
- if (this.isContextual("as")) {
- if (!node.specifiers) node.specifiers = [];
- this.expectPlugin("exportNamespaceFrom");
- const specifier = this.startNodeAt(this.state.lastTokStart, this.state.lastTokStartLoc);
- this.next();
- specifier.exported = this.parseIdentifier(true);
- node.specifiers.push(this.finishNode(specifier, "ExportNamespaceSpecifier"));
- return true;
- }
-
- return false;
- }
-
- maybeParseExportNamedSpecifiers(node) {
- if (this.match(types.braceL)) {
- if (!node.specifiers) node.specifiers = [];
- node.specifiers.push(...this.parseExportSpecifiers());
- node.source = null;
- node.declaration = null;
- return true;
- }
-
- return false;
- }
-
- maybeParseExportDeclaration(node) {
- if (this.shouldParseExportDeclaration()) {
- if (this.isContextual("async")) {
- const next = this.lookahead();
-
- if (next.type !== types._function) {
- this.unexpected(next.start, `Unexpected token, expected "function"`);
- }
- }
-
- node.specifiers = [];
- node.source = null;
- node.declaration = this.parseExportDeclaration(node);
- return true;
- }
-
- return false;
- }
-
- isAsyncFunction() {
- if (!this.isContextual("async")) return false;
- const {
- pos
- } = this.state;
- skipWhiteSpace.lastIndex = pos;
- const skip = skipWhiteSpace.exec(this.input);
- if (!skip || !skip.length) return false;
- const next = pos + skip[0].length;
- return !lineBreak.test(this.input.slice(pos, next)) && this.input.slice(next, next + 8) === "function" && (next + 8 === this.length || !isIdentifierChar(this.input.charCodeAt(next + 8)));
- }
-
- parseExportDefaultExpression() {
- const expr = this.startNode();
- const isAsync = this.isAsyncFunction();
-
- if (this.match(types._function) || isAsync) {
- this.next();
-
- if (isAsync) {
- this.next();
- }
-
- return this.parseFunction(expr, FUNC_STATEMENT | FUNC_NULLABLE_ID, isAsync);
- } else if (this.match(types._class)) {
- return this.parseClass(expr, true, true);
- } else if (this.match(types.at)) {
- if (this.hasPlugin("decorators") && this.getPluginOption("decorators", "decoratorsBeforeExport")) {
- this.unexpected(this.state.start, "Decorators must be placed *before* the 'export' keyword." + " You can set the 'decoratorsBeforeExport' option to false to use" + " the 'export @decorator class {}' syntax");
- }
-
- this.parseDecorators(false);
- return this.parseClass(expr, true, true);
- } else if (this.match(types._const) || this.match(types._var) || this.isLet()) {
- return this.raise(this.state.start, "Only expressions, functions or classes are allowed as the `default` export.");
- } else {
- const res = this.parseMaybeAssign();
- this.semicolon();
- return res;
- }
- }
-
- parseExportDeclaration(node) {
- return this.parseStatement(null);
- }
-
- isExportDefaultSpecifier() {
- if (this.match(types.name)) {
- return this.state.value !== "async" && this.state.value !== "let";
- }
-
- if (!this.match(types._default)) {
- return false;
- }
-
- const lookahead = this.lookahead();
- return lookahead.type === types.comma || lookahead.type === types.name && lookahead.value === "from";
- }
-
- parseExportFrom(node, expect) {
- if (this.eatContextual("from")) {
- node.source = this.parseImportSource();
- this.checkExport(node);
- } else {
- if (expect) {
- this.unexpected();
- } else {
- node.source = null;
- }
- }
-
- this.semicolon();
- }
-
- shouldParseExportDeclaration() {
- if (this.match(types.at)) {
- this.expectOnePlugin(["decorators", "decorators-legacy"]);
-
- if (this.hasPlugin("decorators")) {
- if (this.getPluginOption("decorators", "decoratorsBeforeExport")) {
- this.unexpected(this.state.start, "Decorators must be placed *before* the 'export' keyword." + " You can set the 'decoratorsBeforeExport' option to false to use" + " the 'export @decorator class {}' syntax");
- } else {
- return true;
- }
- }
- }
-
- return this.state.type.keyword === "var" || this.state.type.keyword === "const" || this.state.type.keyword === "function" || this.state.type.keyword === "class" || this.isLet() || this.isAsyncFunction();
- }
-
- checkExport(node, checkNames, isDefault, isFrom) {
- if (checkNames) {
- if (isDefault) {
- this.checkDuplicateExports(node, "default");
- } else if (node.specifiers && node.specifiers.length) {
- for (let _i3 = 0, _node$specifiers = node.specifiers; _i3 < _node$specifiers.length; _i3++) {
- const specifier = _node$specifiers[_i3];
- this.checkDuplicateExports(specifier, specifier.exported.name);
-
- if (!isFrom && specifier.local) {
- this.checkReservedWord(specifier.local.name, specifier.local.start, true, false);
- this.scope.checkLocalExport(specifier.local);
- }
- }
- } else if (node.declaration) {
- if (node.declaration.type === "FunctionDeclaration" || node.declaration.type === "ClassDeclaration") {
- const id = node.declaration.id;
- if (!id) throw new Error("Assertion failure");
- this.checkDuplicateExports(node, id.name);
- } else if (node.declaration.type === "VariableDeclaration") {
- for (let _i4 = 0, _node$declaration$dec = node.declaration.declarations; _i4 < _node$declaration$dec.length; _i4++) {
- const declaration = _node$declaration$dec[_i4];
- this.checkDeclaration(declaration.id);
- }
- }
- }
- }
-
- const currentContextDecorators = this.state.decoratorStack[this.state.decoratorStack.length - 1];
-
- if (currentContextDecorators.length) {
- const isClass = node.declaration && (node.declaration.type === "ClassDeclaration" || node.declaration.type === "ClassExpression");
-
- if (!node.declaration || !isClass) {
- throw this.raise(node.start, "You can only use decorators on an export when exporting a class");
- }
-
- this.takeDecorators(node.declaration);
- }
- }
-
- checkDeclaration(node) {
- if (node.type === "Identifier") {
- this.checkDuplicateExports(node, node.name);
- } else if (node.type === "ObjectPattern") {
- for (let _i5 = 0, _node$properties = node.properties; _i5 < _node$properties.length; _i5++) {
- const prop = _node$properties[_i5];
- this.checkDeclaration(prop);
- }
- } else if (node.type === "ArrayPattern") {
- for (let _i6 = 0, _node$elements = node.elements; _i6 < _node$elements.length; _i6++) {
- const elem = _node$elements[_i6];
-
- if (elem) {
- this.checkDeclaration(elem);
- }
- }
- } else if (node.type === "ObjectProperty") {
- this.checkDeclaration(node.value);
- } else if (node.type === "RestElement") {
- this.checkDeclaration(node.argument);
- } else if (node.type === "AssignmentPattern") {
- this.checkDeclaration(node.left);
- }
- }
-
- checkDuplicateExports(node, name) {
- if (this.state.exportedIdentifiers.indexOf(name) > -1) {
- throw this.raise(node.start, name === "default" ? "Only one default export allowed per module." : `\`${name}\` has already been exported. Exported identifiers must be unique.`);
- }
-
- this.state.exportedIdentifiers.push(name);
- }
-
- parseExportSpecifiers() {
- const nodes = [];
- let first = true;
- this.expect(types.braceL);
-
- while (!this.eat(types.braceR)) {
- if (first) {
- first = false;
- } else {
- this.expect(types.comma);
- if (this.eat(types.braceR)) break;
- }
-
- const node = this.startNode();
- node.local = this.parseIdentifier(true);
- node.exported = this.eatContextual("as") ? this.parseIdentifier(true) : node.local.__clone();
- nodes.push(this.finishNode(node, "ExportSpecifier"));
- }
-
- return nodes;
- }
-
- parseImport(node) {
- node.specifiers = [];
-
- if (!this.match(types.string)) {
- const hasDefault = this.maybeParseDefaultImportSpecifier(node);
- const parseNext = !hasDefault || this.eat(types.comma);
- const hasStar = parseNext && this.maybeParseStarImportSpecifier(node);
- if (parseNext && !hasStar) this.parseNamedImportSpecifiers(node);
- this.expectContextual("from");
- }
-
- node.source = this.parseImportSource();
- this.semicolon();
- return this.finishNode(node, "ImportDeclaration");
- }
-
- parseImportSource() {
- if (!this.match(types.string)) this.unexpected();
- return this.parseExprAtom();
- }
-
- shouldParseDefaultImport(node) {
- return this.match(types.name);
- }
-
- parseImportSpecifierLocal(node, specifier, type, contextDescription) {
- specifier.local = this.parseIdentifier();
- this.checkLVal(specifier.local, BIND_LEXICAL, undefined, contextDescription);
- node.specifiers.push(this.finishNode(specifier, type));
- }
-
- maybeParseDefaultImportSpecifier(node) {
- if (this.shouldParseDefaultImport(node)) {
- this.parseImportSpecifierLocal(node, this.startNode(), "ImportDefaultSpecifier", "default import specifier");
- return true;
- }
-
- return false;
- }
-
- maybeParseStarImportSpecifier(node) {
- if (this.match(types.star)) {
- const specifier = this.startNode();
- this.next();
- this.expectContextual("as");
- this.parseImportSpecifierLocal(node, specifier, "ImportNamespaceSpecifier", "import namespace specifier");
- return true;
- }
-
- return false;
- }
-
- parseNamedImportSpecifiers(node) {
- let first = true;
- this.expect(types.braceL);
-
- while (!this.eat(types.braceR)) {
- if (first) {
- first = false;
- } else {
- if (this.eat(types.colon)) {
- this.unexpected(null, "ES2015 named imports do not destructure. " + "Use another statement for destructuring after the import.");
- }
-
- this.expect(types.comma);
- if (this.eat(types.braceR)) break;
- }
-
- this.parseImportSpecifier(node);
- }
- }
-
- parseImportSpecifier(node) {
- const specifier = this.startNode();
- specifier.imported = this.parseIdentifier(true);
-
- if (this.eatContextual("as")) {
- specifier.local = this.parseIdentifier();
- } else {
- this.checkReservedWord(specifier.imported.name, specifier.start, true, true);
- specifier.local = specifier.imported.__clone();
- }
-
- this.checkLVal(specifier.local, BIND_LEXICAL, undefined, "import specifier");
- node.specifiers.push(this.finishNode(specifier, "ImportSpecifier"));
- }
-
-}
-
-class Parser extends StatementParser {
- constructor(options, input) {
- options = getOptions(options);
- super(options, input);
- const ScopeHandler = this.getScopeHandler();
- this.options = options;
- this.inModule = this.options.sourceType === "module";
- this.scope = new ScopeHandler(this.raise.bind(this), this.inModule);
- this.plugins = pluginsMap(this.options.plugins);
- this.filename = options.sourceFilename;
- }
-
- getScopeHandler() {
- return ScopeHandler;
- }
-
- parse() {
- this.scope.enter(SCOPE_PROGRAM);
- const file = this.startNode();
- const program = this.startNode();
- this.nextToken();
- return this.parseTopLevel(file, program);
- }
-
-}
-
-function pluginsMap(plugins) {
- const pluginMap = new Map();
-
- for (let _i = 0; _i < plugins.length; _i++) {
- const plugin = plugins[_i];
- const [name, options] = Array.isArray(plugin) ? plugin : [plugin, {}];
- if (!pluginMap.has(name)) pluginMap.set(name, options || {});
- }
-
- return pluginMap;
-}
-
-function parse(input, options) {
- if (options && options.sourceType === "unambiguous") {
- options = Object.assign({}, options);
-
- try {
- options.sourceType = "module";
- const parser = getParser(options, input);
- const ast = parser.parse();
- if (!parser.sawUnambiguousESM) ast.program.sourceType = "script";
- return ast;
- } catch (moduleError) {
- try {
- options.sourceType = "script";
- return getParser(options, input).parse();
- } catch (scriptError) {}
-
- throw moduleError;
- }
- } else {
- return getParser(options, input).parse();
- }
-}
-function parseExpression(input, options) {
- const parser = getParser(options, input);
-
- if (parser.options.strictMode) {
- parser.state.strict = true;
- }
-
- return parser.getExpression();
-}
-
-function getParser(options, input) {
- let cls = Parser;
-
- if (options && options.plugins) {
- validatePlugins(options.plugins);
- cls = getParserClass(options.plugins);
- }
-
- return new cls(options, input);
-}
-
-const parserClassCache = {};
-
-function getParserClass(pluginsFromOptions) {
- const pluginList = mixinPluginNames.filter(name => hasPlugin(pluginsFromOptions, name));
- const key = pluginList.join("/");
- let cls = parserClassCache[key];
-
- if (!cls) {
- cls = Parser;
-
- for (let _i = 0; _i < pluginList.length; _i++) {
- const plugin = pluginList[_i];
- cls = mixinPlugins[plugin](cls);
- }
-
- parserClassCache[key] = cls;
- }
-
- return cls;
-}
-
-exports.parse = parse;
-exports.parseExpression = parseExpression;
-exports.tokTypes = types;
diff --git a/node_modules/@babel/parser/package.json b/node_modules/@babel/parser/package.json
deleted file mode 100644
index 07f7554b..00000000
--- a/node_modules/@babel/parser/package.json
+++ /dev/null
@@ -1,80 +0,0 @@
-{
- "_args": [
- [
- "@babel/parser@7.5.5",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/parser@7.5.5",
- "_id": "@babel/parser@7.5.5",
- "_inBundle": false,
- "_integrity": "sha512-E5BN68cqR7dhKan1SfqgPGhQ178bkVKpXTPEXnFJBrEt8/DKRZlybmy+IgYLTeN7tp1R5Ccmbm2rBk17sHYU3g==",
- "_location": "/@babel/parser",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/parser@7.5.5",
- "name": "@babel/parser",
- "escapedName": "@babel%2fparser",
- "scope": "@babel",
- "rawSpec": "7.5.5",
- "saveSpec": null,
- "fetchSpec": "7.5.5"
- },
- "_requiredBy": [
- "/@babel/core",
- "/@babel/template",
- "/@babel/traverse",
- "/@types/babel__core",
- "/@types/babel__template",
- "/istanbul-lib-instrument"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.5.5.tgz",
- "_spec": "7.5.5",
- "_where": "E:\\python\\setup-php",
- "author": {
- "name": "Sebastian McKenzie",
- "email": "sebmck@gmail.com"
- },
- "bin": {
- "parser": "./bin/babel-parser.js"
- },
- "description": "A JavaScript parser",
- "devDependencies": {
- "@babel/code-frame": "^7.5.5",
- "@babel/helper-fixtures": "^7.5.5",
- "charcodes": "^0.2.0",
- "unicode-12.0.0": "^0.7.9"
- },
- "engines": {
- "node": ">=6.0.0"
- },
- "files": [
- "bin",
- "lib",
- "typings"
- ],
- "gitHead": "0407f034f09381b95e9cabefbf6b176c76485a43",
- "homepage": "https://babeljs.io/",
- "keywords": [
- "babel",
- "javascript",
- "parser",
- "tc39",
- "ecmascript",
- "@babel/parser"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/parser",
- "publishConfig": {
- "tag": "next"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-parser"
- },
- "types": "typings/babel-parser.d.ts",
- "version": "7.5.5"
-}
diff --git a/node_modules/@babel/parser/typings/babel-parser.d.ts b/node_modules/@babel/parser/typings/babel-parser.d.ts
deleted file mode 100644
index deba6be0..00000000
--- a/node_modules/@babel/parser/typings/babel-parser.d.ts
+++ /dev/null
@@ -1,135 +0,0 @@
-// Type definitions for @babel/parser
-// Project: https://github.com/babel/babel/tree/master/packages/babel-parser
-// Definitions by: Troy Gerwien
-// Marvin Hagemeister
-// Avi Vahl
-// TypeScript Version: 2.9
-
-/**
- * Parse the provided code as an entire ECMAScript program.
- */
-export function parse(input: string, options?: ParserOptions): import('@babel/types').File;
-
-/**
- * Parse the provided code as a single expression.
- */
-export function parseExpression(input: string, options?: ParserOptions): import('@babel/types').Expression;
-
-export interface ParserOptions {
- /**
- * By default, import and export declarations can only appear at a program's top level.
- * Setting this option to true allows them anywhere where a statement is allowed.
- */
- allowImportExportEverywhere?: boolean;
-
- /**
- * By default, await use is not allowed outside of an async function.
- * Set this to true to accept such code.
- */
- allowAwaitOutsideFunction?: boolean;
-
- /**
- * By default, a return statement at the top level raises an error.
- * Set this to true to accept such code.
- */
- allowReturnOutsideFunction?: boolean;
-
- allowSuperOutsideMethod?: boolean;
-
- /**
- * Indicate the mode the code should be parsed in.
- * Can be one of "script", "module", or "unambiguous". Defaults to "script".
- * "unambiguous" will make @babel/parser attempt to guess, based on the presence
- * of ES6 import or export statements.
- * Files with ES6 imports and exports are considered "module" and are otherwise "script".
- */
- sourceType?: 'script' | 'module' | 'unambiguous';
-
- /**
- * Correlate output AST nodes with their source filename.
- * Useful when generating code and source maps from the ASTs of multiple input files.
- */
- sourceFilename?: string;
-
- /**
- * By default, the first line of code parsed is treated as line 1.
- * You can provide a line number to alternatively start with.
- * Useful for integration with other source tools.
- */
- startLine?: number;
-
- /**
- * Array containing the plugins that you want to enable.
- */
- plugins?: ParserPlugin[];
-
- /**
- * Should the parser work in strict mode.
- * Defaults to true if sourceType === 'module'. Otherwise, false.
- */
- strictMode?: boolean;
-
- /**
- * Adds a ranges property to each node: [node.start, node.end]
- */
- ranges?: boolean;
-
- /**
- * Adds all parsed tokens to a tokens property on the File node.
- */
- tokens?: boolean;
-
- /**
- * By default, the parser adds information about parentheses by setting
- * `extra.parenthesized` to `true` as needed.
- * When this option is `true` the parser creates `ParenthesizedExpression`
- * AST nodes instead of using the `extra` property.
- */
- createParenthesizedExpressions?: boolean;
-}
-
-export type ParserPlugin =
- 'estree' |
- 'jsx' |
- 'flow' |
- 'flowComments' |
- 'typescript' |
- 'doExpressions' |
- 'objectRestSpread' |
- 'decorators' |
- 'decorators-legacy' |
- 'classProperties' |
- 'classPrivateProperties' |
- 'classPrivateMethods' |
- 'exportDefaultFrom' |
- 'exportNamespaceFrom' |
- 'asyncGenerators' |
- 'functionBind' |
- 'functionSent' |
- 'dynamicImport' |
- 'numericSeparator' |
- 'optionalChaining' |
- 'importMeta' |
- 'bigInt' |
- 'optionalCatchBinding' |
- 'throwExpressions' |
- 'pipelineOperator' |
- 'nullishCoalescingOperator' |
- ParserPluginWithOptions;
-
-export type ParserPluginWithOptions =
- ['decorators', DecoratorsPluginOptions] |
- ['pipelineOperator', PipelineOperatorPluginOptions] |
- ['flow', FlowPluginOptions];
-
-export interface DecoratorsPluginOptions {
- decoratorsBeforeExport?: boolean;
-}
-
-export interface PipelineOperatorPluginOptions {
- proposal: 'minimal' | 'smart';
-}
-
-export interface FlowPluginOptions {
- all?: boolean;
-}
diff --git a/node_modules/@babel/plugin-proposal-async-generator-functions/LICENSE b/node_modules/@babel/plugin-proposal-async-generator-functions/LICENSE
deleted file mode 100644
index a06ec0e7..00000000
--- a/node_modules/@babel/plugin-proposal-async-generator-functions/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-2018 Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/plugin-proposal-async-generator-functions/README.md b/node_modules/@babel/plugin-proposal-async-generator-functions/README.md
deleted file mode 100644
index f4649ae6..00000000
--- a/node_modules/@babel/plugin-proposal-async-generator-functions/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/plugin-proposal-async-generator-functions
-
-> Turn async generator functions into ES2015 generators
-
-See our website [@babel/plugin-proposal-async-generator-functions](https://babeljs.io/docs/en/next/babel-plugin-proposal-async-generator-functions.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/plugin-proposal-async-generator-functions
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/plugin-proposal-async-generator-functions --dev
-```
diff --git a/node_modules/@babel/plugin-proposal-async-generator-functions/lib/for-await.js b/node_modules/@babel/plugin-proposal-async-generator-functions/lib/for-await.js
deleted file mode 100644
index fadf4936..00000000
--- a/node_modules/@babel/plugin-proposal-async-generator-functions/lib/for-await.js
+++ /dev/null
@@ -1,97 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = _default;
-
-function _core() {
- const data = require("@babel/core");
-
- _core = function () {
- return data;
- };
-
- return data;
-}
-
-const buildForAwait = (0, _core().template)(`
- async function wrapper() {
- var ITERATOR_COMPLETION = true;
- var ITERATOR_HAD_ERROR_KEY = false;
- var ITERATOR_ERROR_KEY;
- try {
- for (
- var ITERATOR_KEY = GET_ITERATOR(OBJECT), STEP_KEY, STEP_VALUE;
- (
- STEP_KEY = await ITERATOR_KEY.next(),
- ITERATOR_COMPLETION = STEP_KEY.done,
- STEP_VALUE = await STEP_KEY.value,
- !ITERATOR_COMPLETION
- );
- ITERATOR_COMPLETION = true) {
- }
- } catch (err) {
- ITERATOR_HAD_ERROR_KEY = true;
- ITERATOR_ERROR_KEY = err;
- } finally {
- try {
- if (!ITERATOR_COMPLETION && ITERATOR_KEY.return != null) {
- await ITERATOR_KEY.return();
- }
- } finally {
- if (ITERATOR_HAD_ERROR_KEY) {
- throw ITERATOR_ERROR_KEY;
- }
- }
- }
- }
-`);
-
-function _default(path, {
- getAsyncIterator
-}) {
- const {
- node,
- scope,
- parent
- } = path;
- const stepKey = scope.generateUidIdentifier("step");
- const stepValue = scope.generateUidIdentifier("value");
- const left = node.left;
- let declar;
-
- if (_core().types.isIdentifier(left) || _core().types.isPattern(left) || _core().types.isMemberExpression(left)) {
- declar = _core().types.expressionStatement(_core().types.assignmentExpression("=", left, stepValue));
- } else if (_core().types.isVariableDeclaration(left)) {
- declar = _core().types.variableDeclaration(left.kind, [_core().types.variableDeclarator(left.declarations[0].id, stepValue)]);
- }
-
- let template = buildForAwait({
- ITERATOR_HAD_ERROR_KEY: scope.generateUidIdentifier("didIteratorError"),
- ITERATOR_COMPLETION: scope.generateUidIdentifier("iteratorNormalCompletion"),
- ITERATOR_ERROR_KEY: scope.generateUidIdentifier("iteratorError"),
- ITERATOR_KEY: scope.generateUidIdentifier("iterator"),
- GET_ITERATOR: getAsyncIterator,
- OBJECT: node.right,
- STEP_VALUE: stepValue,
- STEP_KEY: stepKey
- });
- template = template.body.body;
-
- const isLabeledParent = _core().types.isLabeledStatement(parent);
-
- const tryBody = template[3].block.body;
- const loop = tryBody[0];
-
- if (isLabeledParent) {
- tryBody[0] = _core().types.labeledStatement(parent.label, loop);
- }
-
- return {
- replaceParent: isLabeledParent,
- node: template,
- declar,
- loop
- };
-}
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-proposal-async-generator-functions/lib/index.js b/node_modules/@babel/plugin-proposal-async-generator-functions/lib/index.js
deleted file mode 100644
index ca559632..00000000
--- a/node_modules/@babel/plugin-proposal-async-generator-functions/lib/index.js
+++ /dev/null
@@ -1,133 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _helperPluginUtils() {
- const data = require("@babel/helper-plugin-utils");
-
- _helperPluginUtils = function () {
- return data;
- };
-
- return data;
-}
-
-function _helperRemapAsyncToGenerator() {
- const data = _interopRequireDefault(require("@babel/helper-remap-async-to-generator"));
-
- _helperRemapAsyncToGenerator = function () {
- return data;
- };
-
- return data;
-}
-
-function _pluginSyntaxAsyncGenerators() {
- const data = _interopRequireDefault(require("@babel/plugin-syntax-async-generators"));
-
- _pluginSyntaxAsyncGenerators = function () {
- return data;
- };
-
- return data;
-}
-
-function _core() {
- const data = require("@babel/core");
-
- _core = function () {
- return data;
- };
-
- return data;
-}
-
-var _forAwait = _interopRequireDefault(require("./for-await"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-var _default = (0, _helperPluginUtils().declare)(api => {
- api.assertVersion(7);
- const yieldStarVisitor = {
- Function(path) {
- path.skip();
- },
-
- YieldExpression({
- node
- }, state) {
- if (!node.delegate) return;
- const callee = state.addHelper("asyncGeneratorDelegate");
- node.argument = _core().types.callExpression(callee, [_core().types.callExpression(state.addHelper("asyncIterator"), [node.argument]), state.addHelper("awaitAsyncGenerator")]);
- }
-
- };
- const forAwaitVisitor = {
- Function(path) {
- path.skip();
- },
-
- ForOfStatement(path, {
- file
- }) {
- const {
- node
- } = path;
- if (!node.await) return;
- const build = (0, _forAwait.default)(path, {
- getAsyncIterator: file.addHelper("asyncIterator")
- });
- const {
- declar,
- loop
- } = build;
- const block = loop.body;
- path.ensureBlock();
-
- if (declar) {
- block.body.push(declar);
- }
-
- block.body = block.body.concat(node.body.body);
-
- _core().types.inherits(loop, node);
-
- _core().types.inherits(loop.body, node.body);
-
- if (build.replaceParent) {
- path.parentPath.replaceWithMultiple(build.node);
- } else {
- path.replaceWithMultiple(build.node);
- }
- }
-
- };
- const visitor = {
- Function(path, state) {
- if (!path.node.async) return;
- path.traverse(forAwaitVisitor, state);
- if (!path.node.generator) return;
- path.traverse(yieldStarVisitor, state);
- (0, _helperRemapAsyncToGenerator().default)(path, {
- wrapAsync: state.addHelper("wrapAsyncGenerator"),
- wrapAwait: state.addHelper("awaitAsyncGenerator")
- });
- }
-
- };
- return {
- name: "proposal-async-generator-functions",
- inherits: _pluginSyntaxAsyncGenerators().default,
- visitor: {
- Program(path, state) {
- path.traverse(visitor, state);
- }
-
- }
- };
-});
-
-exports.default = _default;
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-proposal-async-generator-functions/package.json b/node_modules/@babel/plugin-proposal-async-generator-functions/package.json
deleted file mode 100644
index a51d9c02..00000000
--- a/node_modules/@babel/plugin-proposal-async-generator-functions/package.json
+++ /dev/null
@@ -1,58 +0,0 @@
-{
- "_args": [
- [
- "@babel/plugin-proposal-async-generator-functions@7.2.0",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/plugin-proposal-async-generator-functions@7.2.0",
- "_id": "@babel/plugin-proposal-async-generator-functions@7.2.0",
- "_inBundle": false,
- "_integrity": "sha512-+Dfo/SCQqrwx48ptLVGLdE39YtWRuKc/Y9I5Fy0P1DDBB9lsAHpjcEJQt+4IifuSOSTLBKJObJqMvaO1pIE8LQ==",
- "_location": "/@babel/plugin-proposal-async-generator-functions",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/plugin-proposal-async-generator-functions@7.2.0",
- "name": "@babel/plugin-proposal-async-generator-functions",
- "escapedName": "@babel%2fplugin-proposal-async-generator-functions",
- "scope": "@babel",
- "rawSpec": "7.2.0",
- "saveSpec": null,
- "fetchSpec": "7.2.0"
- },
- "_requiredBy": [
- "/@babel/preset-env"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.2.0.tgz",
- "_spec": "7.2.0",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-plugin-utils": "^7.0.0",
- "@babel/helper-remap-async-to-generator": "^7.1.0",
- "@babel/plugin-syntax-async-generators": "^7.2.0"
- },
- "description": "Turn async generator functions into ES2015 generators",
- "devDependencies": {
- "@babel/core": "^7.2.0",
- "@babel/helper-plugin-test-runner": "^7.0.0"
- },
- "keywords": [
- "babel-plugin"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/plugin-proposal-async-generator-functions",
- "peerDependencies": {
- "@babel/core": "^7.0.0-0"
- },
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-async-generator-functions"
- },
- "version": "7.2.0"
-}
diff --git a/node_modules/@babel/plugin-proposal-dynamic-import/LICENSE b/node_modules/@babel/plugin-proposal-dynamic-import/LICENSE
deleted file mode 100644
index f31575ec..00000000
--- a/node_modules/@babel/plugin-proposal-dynamic-import/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-present Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/plugin-proposal-dynamic-import/README.md b/node_modules/@babel/plugin-proposal-dynamic-import/README.md
deleted file mode 100644
index 0f49cf45..00000000
--- a/node_modules/@babel/plugin-proposal-dynamic-import/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/plugin-proposal-dynamic-import
-
-> Transform import() expressions
-
-See our website [@babel/plugin-proposal-dynamic-import](https://babeljs.io/docs/en/next/babel-plugin-proposal-dynamic-import.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/plugin-proposal-dynamic-import
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/plugin-proposal-dynamic-import --dev
-```
diff --git a/node_modules/@babel/plugin-proposal-dynamic-import/lib/index.js b/node_modules/@babel/plugin-proposal-dynamic-import/lib/index.js
deleted file mode 100644
index 0f0d1b72..00000000
--- a/node_modules/@babel/plugin-proposal-dynamic-import/lib/index.js
+++ /dev/null
@@ -1,69 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _helperPluginUtils() {
- const data = require("@babel/helper-plugin-utils");
-
- _helperPluginUtils = function () {
- return data;
- };
-
- return data;
-}
-
-function _pluginSyntaxDynamicImport() {
- const data = _interopRequireDefault(require("@babel/plugin-syntax-dynamic-import"));
-
- _pluginSyntaxDynamicImport = function () {
- return data;
- };
-
- return data;
-}
-
-var _package = require("../package.json");
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-const SUPPORTED_MODULES = ["commonjs", "amd", "systemjs"];
-const MODULES_NOT_FOUND = `\
-@babel/plugin-proposal-dynamic-import depends on a modules
-transform plugin. Supported plugins are:
- - @babel/plugin-transform-modules-commonjs ^7.4.0
- - @babel/plugin-transform-modules-amd ^7.4.0
- - @babel/plugin-transform-modules-systemjs ^7.4.0
-
-If you are using Webpack or Rollup and thus don't want
-Babel to transpile your imports and exports, you can use
-the @babel/plugin-syntax-dynamic-import plugin and let your
-bundler handle dynamic imports.
-`;
-
-var _default = (0, _helperPluginUtils().declare)(api => {
- api.assertVersion(7);
- return {
- name: "proposal-dynamic-import",
- inherits: _pluginSyntaxDynamicImport().default,
-
- pre() {
- this.file.set("@babel/plugin-proposal-dynamic-import", _package.version);
- },
-
- visitor: {
- Program() {
- const modules = this.file.get("@babel/plugin-transform-modules-*");
-
- if (!SUPPORTED_MODULES.includes(modules)) {
- throw new Error(MODULES_NOT_FOUND);
- }
- }
-
- }
- };
-});
-
-exports.default = _default;
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-proposal-dynamic-import/package.json b/node_modules/@babel/plugin-proposal-dynamic-import/package.json
deleted file mode 100644
index e9534213..00000000
--- a/node_modules/@babel/plugin-proposal-dynamic-import/package.json
+++ /dev/null
@@ -1,58 +0,0 @@
-{
- "_args": [
- [
- "@babel/plugin-proposal-dynamic-import@7.5.0",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/plugin-proposal-dynamic-import@7.5.0",
- "_id": "@babel/plugin-proposal-dynamic-import@7.5.0",
- "_inBundle": false,
- "_integrity": "sha512-x/iMjggsKTFHYC6g11PL7Qy58IK8H5zqfm9e6hu4z1iH2IRyAp9u9dL80zA6R76yFovETFLKz2VJIC2iIPBuFw==",
- "_location": "/@babel/plugin-proposal-dynamic-import",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/plugin-proposal-dynamic-import@7.5.0",
- "name": "@babel/plugin-proposal-dynamic-import",
- "escapedName": "@babel%2fplugin-proposal-dynamic-import",
- "scope": "@babel",
- "rawSpec": "7.5.0",
- "saveSpec": null,
- "fetchSpec": "7.5.0"
- },
- "_requiredBy": [
- "/@babel/preset-env"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.5.0.tgz",
- "_spec": "7.5.0",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-plugin-utils": "^7.0.0",
- "@babel/plugin-syntax-dynamic-import": "^7.2.0"
- },
- "description": "Transform import() expressions",
- "devDependencies": {
- "@babel/core": "^7.5.0",
- "@babel/helper-plugin-test-runner": "^7.0.0"
- },
- "gitHead": "49da9a07c81156e997e60146eb001ea77b7044c4",
- "keywords": [
- "babel-plugin"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/plugin-proposal-dynamic-import",
- "peerDependencies": {
- "@babel/core": "^7.0.0-0"
- },
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-dynamic-import"
- },
- "version": "7.5.0"
-}
diff --git a/node_modules/@babel/plugin-proposal-json-strings/LICENSE b/node_modules/@babel/plugin-proposal-json-strings/LICENSE
deleted file mode 100644
index a06ec0e7..00000000
--- a/node_modules/@babel/plugin-proposal-json-strings/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-2018 Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/plugin-proposal-json-strings/README.md b/node_modules/@babel/plugin-proposal-json-strings/README.md
deleted file mode 100644
index 800dc7f7..00000000
--- a/node_modules/@babel/plugin-proposal-json-strings/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/plugin-proposal-json-strings
-
-> Escape U+2028 LINE SEPARATOR and U+2029 PARAGRAPH SEPARATOR in JS strings
-
-See our website [@babel/plugin-proposal-json-strings](https://babeljs.io/docs/en/next/babel-plugin-proposal-json-strings.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/plugin-proposal-json-strings
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/plugin-proposal-json-strings --dev
-```
diff --git a/node_modules/@babel/plugin-proposal-json-strings/lib/index.js b/node_modules/@babel/plugin-proposal-json-strings/lib/index.js
deleted file mode 100644
index f4b80940..00000000
--- a/node_modules/@babel/plugin-proposal-json-strings/lib/index.js
+++ /dev/null
@@ -1,58 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _helperPluginUtils() {
- const data = require("@babel/helper-plugin-utils");
-
- _helperPluginUtils = function () {
- return data;
- };
-
- return data;
-}
-
-function _pluginSyntaxJsonStrings() {
- const data = _interopRequireDefault(require("@babel/plugin-syntax-json-strings"));
-
- _pluginSyntaxJsonStrings = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-var _default = (0, _helperPluginUtils().declare)(api => {
- api.assertVersion(7);
- const regex = /(\\*)([\u2028\u2029])/g;
-
- function replace(match, escapes, separator) {
- const isEscaped = escapes.length % 2 === 1;
- if (isEscaped) return match;
- return `${escapes}\\u${separator.charCodeAt(0).toString(16)}`;
- }
-
- return {
- name: "proposal-json-strings",
- inherits: _pluginSyntaxJsonStrings().default,
- visitor: {
- "DirectiveLiteral|StringLiteral"({
- node
- }) {
- const {
- extra
- } = node;
- if (!extra || !extra.raw) return;
- extra.raw = extra.raw.replace(regex, replace);
- }
-
- }
- };
-});
-
-exports.default = _default;
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-proposal-json-strings/package.json b/node_modules/@babel/plugin-proposal-json-strings/package.json
deleted file mode 100644
index b212d9cd..00000000
--- a/node_modules/@babel/plugin-proposal-json-strings/package.json
+++ /dev/null
@@ -1,57 +0,0 @@
-{
- "_args": [
- [
- "@babel/plugin-proposal-json-strings@7.2.0",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/plugin-proposal-json-strings@7.2.0",
- "_id": "@babel/plugin-proposal-json-strings@7.2.0",
- "_inBundle": false,
- "_integrity": "sha512-MAFV1CA/YVmYwZG0fBQyXhmj0BHCB5egZHCKWIFVv/XCxAeVGIHfos3SwDck4LvCllENIAg7xMKOG5kH0dzyUg==",
- "_location": "/@babel/plugin-proposal-json-strings",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/plugin-proposal-json-strings@7.2.0",
- "name": "@babel/plugin-proposal-json-strings",
- "escapedName": "@babel%2fplugin-proposal-json-strings",
- "scope": "@babel",
- "rawSpec": "7.2.0",
- "saveSpec": null,
- "fetchSpec": "7.2.0"
- },
- "_requiredBy": [
- "/@babel/preset-env"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.2.0.tgz",
- "_spec": "7.2.0",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-plugin-utils": "^7.0.0",
- "@babel/plugin-syntax-json-strings": "^7.2.0"
- },
- "description": "Escape U+2028 LINE SEPARATOR and U+2029 PARAGRAPH SEPARATOR in JS strings",
- "devDependencies": {
- "@babel/core": "^7.2.0",
- "@babel/helper-plugin-test-runner": "^7.0.0"
- },
- "keywords": [
- "babel-plugin"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/plugin-proposal-json-strings",
- "peerDependencies": {
- "@babel/core": "^7.0.0-0"
- },
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-json-strings"
- },
- "version": "7.2.0"
-}
diff --git a/node_modules/@babel/plugin-proposal-object-rest-spread/LICENSE b/node_modules/@babel/plugin-proposal-object-rest-spread/LICENSE
deleted file mode 100644
index f31575ec..00000000
--- a/node_modules/@babel/plugin-proposal-object-rest-spread/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-present Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/plugin-proposal-object-rest-spread/README.md b/node_modules/@babel/plugin-proposal-object-rest-spread/README.md
deleted file mode 100644
index 375d3db4..00000000
--- a/node_modules/@babel/plugin-proposal-object-rest-spread/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/plugin-proposal-object-rest-spread
-
-> Compile object rest and spread to ES5
-
-See our website [@babel/plugin-proposal-object-rest-spread](https://babeljs.io/docs/en/next/babel-plugin-proposal-object-rest-spread.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/plugin-proposal-object-rest-spread
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/plugin-proposal-object-rest-spread --dev
-```
diff --git a/node_modules/@babel/plugin-proposal-object-rest-spread/lib/index.js b/node_modules/@babel/plugin-proposal-object-rest-spread/lib/index.js
deleted file mode 100644
index b2ab89fb..00000000
--- a/node_modules/@babel/plugin-proposal-object-rest-spread/lib/index.js
+++ /dev/null
@@ -1,394 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _helperPluginUtils() {
- const data = require("@babel/helper-plugin-utils");
-
- _helperPluginUtils = function () {
- return data;
- };
-
- return data;
-}
-
-function _pluginSyntaxObjectRestSpread() {
- const data = _interopRequireDefault(require("@babel/plugin-syntax-object-rest-spread"));
-
- _pluginSyntaxObjectRestSpread = function () {
- return data;
- };
-
- return data;
-}
-
-function _core() {
- const data = require("@babel/core");
-
- _core = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-const ZERO_REFS = (() => {
- const node = _core().types.identifier("a");
-
- const property = _core().types.objectProperty(_core().types.identifier("key"), node);
-
- const pattern = _core().types.objectPattern([property]);
-
- return _core().types.isReferenced(node, property, pattern) ? 1 : 0;
-})();
-
-var _default = (0, _helperPluginUtils().declare)((api, opts) => {
- api.assertVersion(7);
- const {
- useBuiltIns = false,
- loose = false
- } = opts;
-
- if (typeof loose !== "boolean") {
- throw new Error(".loose must be a boolean, or undefined");
- }
-
- function getExtendsHelper(file) {
- return useBuiltIns ? _core().types.memberExpression(_core().types.identifier("Object"), _core().types.identifier("assign")) : file.addHelper("extends");
- }
-
- function hasRestElement(path) {
- let foundRestElement = false;
- visitRestElements(path, () => {
- foundRestElement = true;
- path.stop();
- });
- return foundRestElement;
- }
-
- function visitRestElements(path, visitor) {
- path.traverse({
- Expression(path) {
- const parentType = path.parent.type;
-
- if (parentType === "AssignmentPattern" && path.key === "right" || parentType === "ObjectProperty" && path.parent.computed && path.key === "key") {
- path.skip();
- }
- },
-
- RestElement: visitor
- });
- }
-
- function hasSpread(node) {
- for (const prop of node.properties) {
- if (_core().types.isSpreadElement(prop)) {
- return true;
- }
- }
-
- return false;
- }
-
- function extractNormalizedKeys(path) {
- const props = path.node.properties;
- const keys = [];
- let allLiteral = true;
-
- for (const prop of props) {
- if (_core().types.isIdentifier(prop.key) && !prop.computed) {
- keys.push(_core().types.stringLiteral(prop.key.name));
- } else if (_core().types.isTemplateLiteral(prop.key)) {
- keys.push(_core().types.cloneNode(prop.key));
- } else if (_core().types.isLiteral(prop.key)) {
- keys.push(_core().types.stringLiteral(String(prop.key.value)));
- } else {
- keys.push(_core().types.cloneNode(prop.key));
- allLiteral = false;
- }
- }
-
- return {
- keys,
- allLiteral
- };
- }
-
- function replaceImpureComputedKeys(path) {
- const impureComputedPropertyDeclarators = [];
-
- for (const propPath of path.get("properties")) {
- const key = propPath.get("key");
-
- if (propPath.node.computed && !key.isPure()) {
- const name = path.scope.generateUidBasedOnNode(key.node);
-
- const declarator = _core().types.variableDeclarator(_core().types.identifier(name), key.node);
-
- impureComputedPropertyDeclarators.push(declarator);
- key.replaceWith(_core().types.identifier(name));
- }
- }
-
- return impureComputedPropertyDeclarators;
- }
-
- function removeUnusedExcludedKeys(path) {
- const bindings = path.getOuterBindingIdentifierPaths();
- Object.keys(bindings).forEach(bindingName => {
- const bindingParentPath = bindings[bindingName].parentPath;
-
- if (path.scope.getBinding(bindingName).references > ZERO_REFS || !bindingParentPath.isObjectProperty()) {
- return;
- }
-
- bindingParentPath.remove();
- });
- }
-
- function createObjectSpread(path, file, objRef) {
- const props = path.get("properties");
- const last = props[props.length - 1];
-
- _core().types.assertRestElement(last.node);
-
- const restElement = _core().types.cloneNode(last.node);
-
- last.remove();
- const impureComputedPropertyDeclarators = replaceImpureComputedKeys(path);
- const {
- keys,
- allLiteral
- } = extractNormalizedKeys(path);
-
- if (keys.length === 0) {
- return [impureComputedPropertyDeclarators, restElement.argument, _core().types.callExpression(getExtendsHelper(file), [_core().types.objectExpression([]), _core().types.cloneNode(objRef)])];
- }
-
- let keyExpression;
-
- if (!allLiteral) {
- keyExpression = _core().types.callExpression(_core().types.memberExpression(_core().types.arrayExpression(keys), _core().types.identifier("map")), [file.addHelper("toPropertyKey")]);
- } else {
- keyExpression = _core().types.arrayExpression(keys);
- }
-
- return [impureComputedPropertyDeclarators, restElement.argument, _core().types.callExpression(file.addHelper(`objectWithoutProperties${loose ? "Loose" : ""}`), [_core().types.cloneNode(objRef), keyExpression])];
- }
-
- function replaceRestElement(parentPath, paramPath, i, numParams) {
- if (paramPath.isAssignmentPattern()) {
- replaceRestElement(parentPath, paramPath.get("left"), i, numParams);
- return;
- }
-
- if (paramPath.isArrayPattern() && hasRestElement(paramPath)) {
- const elements = paramPath.get("elements");
-
- for (let i = 0; i < elements.length; i++) {
- replaceRestElement(parentPath, elements[i], i, elements.length);
- }
- }
-
- if (paramPath.isObjectPattern() && hasRestElement(paramPath)) {
- const uid = parentPath.scope.generateUidIdentifier("ref");
-
- const declar = _core().types.variableDeclaration("let", [_core().types.variableDeclarator(paramPath.node, uid)]);
-
- parentPath.ensureBlock();
- parentPath.get("body").unshiftContainer("body", declar);
- paramPath.replaceWith(_core().types.cloneNode(uid));
- }
- }
-
- return {
- name: "proposal-object-rest-spread",
- inherits: _pluginSyntaxObjectRestSpread().default,
- visitor: {
- Function(path) {
- const params = path.get("params");
-
- for (let i = params.length - 1; i >= 0; i--) {
- replaceRestElement(params[i].parentPath, params[i], i, params.length);
- }
- },
-
- VariableDeclarator(path, file) {
- if (!path.get("id").isObjectPattern()) {
- return;
- }
-
- let insertionPath = path;
- const originalPath = path;
- visitRestElements(path.get("id"), path => {
- if (!path.parentPath.isObjectPattern()) {
- return;
- }
-
- if (originalPath.node.id.properties.length > 1 && !_core().types.isIdentifier(originalPath.node.init)) {
- const initRef = path.scope.generateUidIdentifierBasedOnNode(originalPath.node.init, "ref");
- originalPath.insertBefore(_core().types.variableDeclarator(initRef, originalPath.node.init));
- originalPath.replaceWith(_core().types.variableDeclarator(originalPath.node.id, _core().types.cloneNode(initRef)));
- return;
- }
-
- let ref = originalPath.node.init;
- const refPropertyPath = [];
- let kind;
- path.findParent(path => {
- if (path.isObjectProperty()) {
- refPropertyPath.unshift(path.node.key.name);
- } else if (path.isVariableDeclarator()) {
- kind = path.parentPath.node.kind;
- return true;
- }
- });
-
- if (refPropertyPath.length) {
- refPropertyPath.forEach(prop => {
- ref = _core().types.memberExpression(ref, _core().types.identifier(prop));
- });
- }
-
- const objectPatternPath = path.findParent(path => path.isObjectPattern());
- const [impureComputedPropertyDeclarators, argument, callExpression] = createObjectSpread(objectPatternPath, file, ref);
-
- if (loose) {
- removeUnusedExcludedKeys(objectPatternPath);
- }
-
- _core().types.assertIdentifier(argument);
-
- insertionPath.insertBefore(impureComputedPropertyDeclarators);
- insertionPath.insertAfter(_core().types.variableDeclarator(argument, callExpression));
- insertionPath = insertionPath.getSibling(insertionPath.key + 1);
- path.scope.registerBinding(kind, insertionPath);
-
- if (objectPatternPath.node.properties.length === 0) {
- objectPatternPath.findParent(path => path.isObjectProperty() || path.isVariableDeclarator()).remove();
- }
- });
- },
-
- ExportNamedDeclaration(path) {
- const declaration = path.get("declaration");
- if (!declaration.isVariableDeclaration()) return;
- const hasRest = declaration.get("declarations").some(path => hasRestElement(path.get("id")));
- if (!hasRest) return;
- const specifiers = [];
-
- for (const name of Object.keys(path.getOuterBindingIdentifiers(path))) {
- specifiers.push(_core().types.exportSpecifier(_core().types.identifier(name), _core().types.identifier(name)));
- }
-
- path.replaceWith(declaration.node);
- path.insertAfter(_core().types.exportNamedDeclaration(null, specifiers));
- },
-
- CatchClause(path) {
- const paramPath = path.get("param");
- replaceRestElement(paramPath.parentPath, paramPath);
- },
-
- AssignmentExpression(path, file) {
- const leftPath = path.get("left");
-
- if (leftPath.isObjectPattern() && hasRestElement(leftPath)) {
- const nodes = [];
- const refName = path.scope.generateUidBasedOnNode(path.node.right, "ref");
- nodes.push(_core().types.variableDeclaration("var", [_core().types.variableDeclarator(_core().types.identifier(refName), path.node.right)]));
- const [impureComputedPropertyDeclarators, argument, callExpression] = createObjectSpread(leftPath, file, _core().types.identifier(refName));
-
- if (impureComputedPropertyDeclarators.length > 0) {
- nodes.push(_core().types.variableDeclaration("var", impureComputedPropertyDeclarators));
- }
-
- const nodeWithoutSpread = _core().types.cloneNode(path.node);
-
- nodeWithoutSpread.right = _core().types.identifier(refName);
- nodes.push(_core().types.expressionStatement(nodeWithoutSpread));
- nodes.push(_core().types.toStatement(_core().types.assignmentExpression("=", argument, callExpression)));
- nodes.push(_core().types.expressionStatement(_core().types.identifier(refName)));
- path.replaceWithMultiple(nodes);
- }
- },
-
- ForXStatement(path) {
- const {
- node,
- scope
- } = path;
- const leftPath = path.get("left");
- const left = node.left;
-
- if (_core().types.isObjectPattern(left) && hasRestElement(leftPath)) {
- const temp = scope.generateUidIdentifier("ref");
- node.left = _core().types.variableDeclaration("var", [_core().types.variableDeclarator(temp)]);
- path.ensureBlock();
-
- if (node.body.body.length === 0 && path.isCompletionRecord()) {
- node.body.body.unshift(_core().types.expressionStatement(scope.buildUndefinedNode()));
- }
-
- node.body.body.unshift(_core().types.expressionStatement(_core().types.assignmentExpression("=", left, _core().types.cloneNode(temp))));
- return;
- }
-
- if (!_core().types.isVariableDeclaration(left)) return;
- const pattern = left.declarations[0].id;
- if (!_core().types.isObjectPattern(pattern)) return;
- const key = scope.generateUidIdentifier("ref");
- node.left = _core().types.variableDeclaration(left.kind, [_core().types.variableDeclarator(key, null)]);
- path.ensureBlock();
- node.body.body.unshift(_core().types.variableDeclaration(node.left.kind, [_core().types.variableDeclarator(pattern, _core().types.cloneNode(key))]));
- },
-
- ObjectExpression(path, file) {
- if (!hasSpread(path.node)) return;
- const args = [];
- let props = [];
-
- function push() {
- args.push(_core().types.objectExpression(props));
- props = [];
- }
-
- for (const prop of path.node.properties) {
- if (_core().types.isSpreadElement(prop)) {
- push();
- args.push(prop.argument);
- } else {
- props.push(prop);
- }
- }
-
- if (props.length) {
- push();
- }
-
- let helper;
-
- if (loose) {
- helper = getExtendsHelper(file);
- } else {
- try {
- helper = file.addHelper("objectSpread2");
- } catch (_unused) {
- this.file.declarations["objectSpread2"] = null;
- helper = file.addHelper("objectSpread");
- }
- }
-
- path.replaceWith(_core().types.callExpression(helper, args));
- }
-
- }
- };
-});
-
-exports.default = _default;
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-proposal-object-rest-spread/package.json b/node_modules/@babel/plugin-proposal-object-rest-spread/package.json
deleted file mode 100644
index 60a333f9..00000000
--- a/node_modules/@babel/plugin-proposal-object-rest-spread/package.json
+++ /dev/null
@@ -1,58 +0,0 @@
-{
- "_args": [
- [
- "@babel/plugin-proposal-object-rest-spread@7.5.5",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/plugin-proposal-object-rest-spread@7.5.5",
- "_id": "@babel/plugin-proposal-object-rest-spread@7.5.5",
- "_inBundle": false,
- "_integrity": "sha512-F2DxJJSQ7f64FyTVl5cw/9MWn6naXGdk3Q3UhDbFEEHv+EilCPoeRD3Zh/Utx1CJz4uyKlQ4uH+bJPbEhMV7Zw==",
- "_location": "/@babel/plugin-proposal-object-rest-spread",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/plugin-proposal-object-rest-spread@7.5.5",
- "name": "@babel/plugin-proposal-object-rest-spread",
- "escapedName": "@babel%2fplugin-proposal-object-rest-spread",
- "scope": "@babel",
- "rawSpec": "7.5.5",
- "saveSpec": null,
- "fetchSpec": "7.5.5"
- },
- "_requiredBy": [
- "/@babel/preset-env"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.5.5.tgz",
- "_spec": "7.5.5",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-plugin-utils": "^7.0.0",
- "@babel/plugin-syntax-object-rest-spread": "^7.2.0"
- },
- "description": "Compile object rest and spread to ES5",
- "devDependencies": {
- "@babel/core": "^7.5.5",
- "@babel/helper-plugin-test-runner": "^7.0.0"
- },
- "gitHead": "0407f034f09381b95e9cabefbf6b176c76485a43",
- "keywords": [
- "babel-plugin"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/plugin-proposal-object-rest-spread",
- "peerDependencies": {
- "@babel/core": "^7.0.0-0"
- },
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-object-rest-spread"
- },
- "version": "7.5.5"
-}
diff --git a/node_modules/@babel/plugin-proposal-optional-catch-binding/LICENSE b/node_modules/@babel/plugin-proposal-optional-catch-binding/LICENSE
deleted file mode 100644
index a06ec0e7..00000000
--- a/node_modules/@babel/plugin-proposal-optional-catch-binding/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-2018 Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/plugin-proposal-optional-catch-binding/README.md b/node_modules/@babel/plugin-proposal-optional-catch-binding/README.md
deleted file mode 100644
index 79e45f67..00000000
--- a/node_modules/@babel/plugin-proposal-optional-catch-binding/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/plugin-proposal-optional-catch-binding
-
-> Compile optional catch bindings
-
-See our website [@babel/plugin-proposal-optional-catch-binding](https://babeljs.io/docs/en/next/babel-plugin-proposal-optional-catch-binding.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/plugin-proposal-optional-catch-binding
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/plugin-proposal-optional-catch-binding --dev
-```
diff --git a/node_modules/@babel/plugin-proposal-optional-catch-binding/lib/index.js b/node_modules/@babel/plugin-proposal-optional-catch-binding/lib/index.js
deleted file mode 100644
index 8ece7a7e..00000000
--- a/node_modules/@babel/plugin-proposal-optional-catch-binding/lib/index.js
+++ /dev/null
@@ -1,48 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _helperPluginUtils() {
- const data = require("@babel/helper-plugin-utils");
-
- _helperPluginUtils = function () {
- return data;
- };
-
- return data;
-}
-
-function _pluginSyntaxOptionalCatchBinding() {
- const data = _interopRequireDefault(require("@babel/plugin-syntax-optional-catch-binding"));
-
- _pluginSyntaxOptionalCatchBinding = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-var _default = (0, _helperPluginUtils().declare)(api => {
- api.assertVersion(7);
- return {
- name: "proposal-optional-catch-binding",
- inherits: _pluginSyntaxOptionalCatchBinding().default,
- visitor: {
- CatchClause(path) {
- if (!path.node.param) {
- const uid = path.scope.generateUidIdentifier("unused");
- const paramPath = path.get("param");
- paramPath.replaceWith(uid);
- }
- }
-
- }
- };
-});
-
-exports.default = _default;
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-proposal-optional-catch-binding/package.json b/node_modules/@babel/plugin-proposal-optional-catch-binding/package.json
deleted file mode 100644
index 8921bf90..00000000
--- a/node_modules/@babel/plugin-proposal-optional-catch-binding/package.json
+++ /dev/null
@@ -1,57 +0,0 @@
-{
- "_args": [
- [
- "@babel/plugin-proposal-optional-catch-binding@7.2.0",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/plugin-proposal-optional-catch-binding@7.2.0",
- "_id": "@babel/plugin-proposal-optional-catch-binding@7.2.0",
- "_inBundle": false,
- "_integrity": "sha512-mgYj3jCcxug6KUcX4OBoOJz3CMrwRfQELPQ5560F70YQUBZB7uac9fqaWamKR1iWUzGiK2t0ygzjTScZnVz75g==",
- "_location": "/@babel/plugin-proposal-optional-catch-binding",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/plugin-proposal-optional-catch-binding@7.2.0",
- "name": "@babel/plugin-proposal-optional-catch-binding",
- "escapedName": "@babel%2fplugin-proposal-optional-catch-binding",
- "scope": "@babel",
- "rawSpec": "7.2.0",
- "saveSpec": null,
- "fetchSpec": "7.2.0"
- },
- "_requiredBy": [
- "/@babel/preset-env"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.2.0.tgz",
- "_spec": "7.2.0",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-plugin-utils": "^7.0.0",
- "@babel/plugin-syntax-optional-catch-binding": "^7.2.0"
- },
- "description": "Compile optional catch bindings",
- "devDependencies": {
- "@babel/core": "^7.2.0",
- "@babel/helper-plugin-test-runner": "^7.0.0"
- },
- "keywords": [
- "babel-plugin"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/plugin-proposal-optional-catch-binding",
- "peerDependencies": {
- "@babel/core": "^7.0.0-0"
- },
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-optional-catch-binding"
- },
- "version": "7.2.0"
-}
diff --git a/node_modules/@babel/plugin-proposal-unicode-property-regex/LICENSE b/node_modules/@babel/plugin-proposal-unicode-property-regex/LICENSE
deleted file mode 100644
index f31575ec..00000000
--- a/node_modules/@babel/plugin-proposal-unicode-property-regex/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-present Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/plugin-proposal-unicode-property-regex/README.md b/node_modules/@babel/plugin-proposal-unicode-property-regex/README.md
deleted file mode 100644
index d0f773a6..00000000
--- a/node_modules/@babel/plugin-proposal-unicode-property-regex/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/plugin-proposal-unicode-property-regex
-
-> Compile Unicode property escapes in Unicode regular expressions to ES5.
-
-See our website [@babel/plugin-proposal-unicode-property-regex](https://babeljs.io/docs/en/next/babel-plugin-proposal-unicode-property-regex.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/plugin-proposal-unicode-property-regex
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/plugin-proposal-unicode-property-regex --dev
-```
diff --git a/node_modules/@babel/plugin-proposal-unicode-property-regex/lib/index.js b/node_modules/@babel/plugin-proposal-unicode-property-regex/lib/index.js
deleted file mode 100644
index 5621825b..00000000
--- a/node_modules/@babel/plugin-proposal-unicode-property-regex/lib/index.js
+++ /dev/null
@@ -1,76 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _helperPluginUtils() {
- const data = require("@babel/helper-plugin-utils");
-
- _helperPluginUtils = function () {
- return data;
- };
-
- return data;
-}
-
-function _regexpuCore() {
- const data = _interopRequireDefault(require("regexpu-core"));
-
- _regexpuCore = function () {
- return data;
- };
-
- return data;
-}
-
-function regex() {
- const data = _interopRequireWildcard(require("@babel/helper-regex"));
-
- regex = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-var _default = (0, _helperPluginUtils().declare)((api, options) => {
- api.assertVersion(7);
- const {
- useUnicodeFlag = true
- } = options;
-
- if (typeof useUnicodeFlag !== "boolean") {
- throw new Error(".useUnicodeFlag must be a boolean, or undefined");
- }
-
- return {
- name: "proposal-unicode-property-regex",
- visitor: {
- RegExpLiteral(path) {
- const node = path.node;
-
- if (!regex().is(node, "u")) {
- return;
- }
-
- node.pattern = (0, _regexpuCore().default)(node.pattern, node.flags, {
- unicodePropertyEscape: true,
- useUnicodeFlag
- });
-
- if (!useUnicodeFlag) {
- regex().pullFlag(node, "u");
- }
- }
-
- }
- };
-});
-
-exports.default = _default;
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-proposal-unicode-property-regex/package.json b/node_modules/@babel/plugin-proposal-unicode-property-regex/package.json
deleted file mode 100644
index 09b332eb..00000000
--- a/node_modules/@babel/plugin-proposal-unicode-property-regex/package.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "_args": [
- [
- "@babel/plugin-proposal-unicode-property-regex@7.4.4",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/plugin-proposal-unicode-property-regex@7.4.4",
- "_id": "@babel/plugin-proposal-unicode-property-regex@7.4.4",
- "_inBundle": false,
- "_integrity": "sha512-j1NwnOqMG9mFUOH58JTFsA/+ZYzQLUZ/drqWUqxCYLGeu2JFZL8YrNC9hBxKmWtAuOCHPcRpgv7fhap09Fb4kA==",
- "_location": "/@babel/plugin-proposal-unicode-property-regex",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/plugin-proposal-unicode-property-regex@7.4.4",
- "name": "@babel/plugin-proposal-unicode-property-regex",
- "escapedName": "@babel%2fplugin-proposal-unicode-property-regex",
- "scope": "@babel",
- "rawSpec": "7.4.4",
- "saveSpec": null,
- "fetchSpec": "7.4.4"
- },
- "_requiredBy": [
- "/@babel/preset-env"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.4.4.tgz",
- "_spec": "7.4.4",
- "_where": "E:\\python\\setup-php",
- "bugs": {
- "url": "https://github.com/babel/babel/issues"
- },
- "dependencies": {
- "@babel/helper-plugin-utils": "^7.0.0",
- "@babel/helper-regex": "^7.4.4",
- "regexpu-core": "^4.5.4"
- },
- "description": "Compile Unicode property escapes in Unicode regular expressions to ES5.",
- "devDependencies": {
- "@babel/core": "^7.4.4",
- "@babel/helper-plugin-test-runner": "^7.0.0"
- },
- "engines": {
- "node": ">=4"
- },
- "gitHead": "2c88694388831b1e5b88e4bbed6781eb2be1edba",
- "homepage": "https://babeljs.io/",
- "keywords": [
- "babel-plugin",
- "regex",
- "regexp",
- "regular expressions",
- "unicode properties",
- "unicode"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/plugin-proposal-unicode-property-regex",
- "peerDependencies": {
- "@babel/core": "^7.0.0-0"
- },
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-unicode-property-regex"
- },
- "version": "7.4.4"
-}
diff --git a/node_modules/@babel/plugin-proposal-unicode-property-regex/src/index.js b/node_modules/@babel/plugin-proposal-unicode-property-regex/src/index.js
deleted file mode 100644
index b0245892..00000000
--- a/node_modules/@babel/plugin-proposal-unicode-property-regex/src/index.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import { declare } from "@babel/helper-plugin-utils";
-import rewritePattern from "regexpu-core";
-import * as regex from "@babel/helper-regex";
-
-export default declare((api, options) => {
- api.assertVersion(7);
-
- const { useUnicodeFlag = true } = options;
- if (typeof useUnicodeFlag !== "boolean") {
- throw new Error(".useUnicodeFlag must be a boolean, or undefined");
- }
-
- return {
- name: "proposal-unicode-property-regex",
-
- visitor: {
- RegExpLiteral(path) {
- const node = path.node;
- if (!regex.is(node, "u")) {
- return;
- }
- node.pattern = rewritePattern(node.pattern, node.flags, {
- unicodePropertyEscape: true,
- useUnicodeFlag,
- });
- if (!useUnicodeFlag) {
- regex.pullFlag(node, "u");
- }
- },
- },
- };
-});
diff --git a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/with-unicode-flag/options.json b/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/with-unicode-flag/options.json
deleted file mode 100644
index 09f2f73a..00000000
--- a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/with-unicode-flag/options.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "plugins": [
- [
- "proposal-unicode-property-regex",
- {
- "useUnicodeFlag": true
- }
- ]
- ]
-}
diff --git a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/with-unicode-flag/script-extensions/input.js b/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/with-unicode-flag/script-extensions/input.js
deleted file mode 100644
index 9edf9daa..00000000
--- a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/with-unicode-flag/script-extensions/input.js
+++ /dev/null
@@ -1 +0,0 @@
-var regex = /\p{Script_Extensions=Anatolian_Hieroglyphs}/u;
diff --git a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/with-unicode-flag/script-extensions/output.js b/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/with-unicode-flag/script-extensions/output.js
deleted file mode 100644
index 25dfc454..00000000
--- a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/with-unicode-flag/script-extensions/output.js
+++ /dev/null
@@ -1 +0,0 @@
-var regex = /[\u{14400}-\u{14646}]/u;
diff --git a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/with-unicode-flag/simple/input.js b/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/with-unicode-flag/simple/input.js
deleted file mode 100644
index 7770f8ea..00000000
--- a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/with-unicode-flag/simple/input.js
+++ /dev/null
@@ -1 +0,0 @@
-var regex = /\p{ASCII_Hex_Digit}/u;
diff --git a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/with-unicode-flag/simple/output.js b/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/with-unicode-flag/simple/output.js
deleted file mode 100644
index cea790a2..00000000
--- a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/with-unicode-flag/simple/output.js
+++ /dev/null
@@ -1 +0,0 @@
-var regex = /[0-9A-Fa-f]/u;
diff --git a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/with-unicode-flag/unicode-10/input.js b/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/with-unicode-flag/unicode-10/input.js
deleted file mode 100644
index 3af0a331..00000000
--- a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/with-unicode-flag/unicode-10/input.js
+++ /dev/null
@@ -1 +0,0 @@
-var regex = /\p{Regional_Indicator}/u;
diff --git a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/with-unicode-flag/unicode-10/output.js b/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/with-unicode-flag/unicode-10/output.js
deleted file mode 100644
index 6e60a4f5..00000000
--- a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/with-unicode-flag/unicode-10/output.js
+++ /dev/null
@@ -1 +0,0 @@
-var regex = /[\u{1F1E6}-\u{1F1FF}]/u;
diff --git a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/with-unicode-flag/unicode-11/input.js b/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/with-unicode-flag/unicode-11/input.js
deleted file mode 100644
index 0de116d6..00000000
--- a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/with-unicode-flag/unicode-11/input.js
+++ /dev/null
@@ -1 +0,0 @@
-var regex = /\p{Script_Extensions=Makasar}/u;
diff --git a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/with-unicode-flag/unicode-11/output.js b/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/with-unicode-flag/unicode-11/output.js
deleted file mode 100644
index f94cd44c..00000000
--- a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/with-unicode-flag/unicode-11/output.js
+++ /dev/null
@@ -1 +0,0 @@
-var regex = /[\u{11EE0}-\u{11EF8}]/u;
diff --git a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/with-unicode-flag/unicode-12/input.js b/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/with-unicode-flag/unicode-12/input.js
deleted file mode 100644
index 711dde94..00000000
--- a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/with-unicode-flag/unicode-12/input.js
+++ /dev/null
@@ -1 +0,0 @@
-var regex = /[\u{1E2C0}-\u{1E2F9}\u{1E2FF}]/u;
diff --git a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/with-unicode-flag/unicode-12/output.js b/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/with-unicode-flag/unicode-12/output.js
deleted file mode 100644
index 711dde94..00000000
--- a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/with-unicode-flag/unicode-12/output.js
+++ /dev/null
@@ -1 +0,0 @@
-var regex = /[\u{1E2C0}-\u{1E2F9}\u{1E2FF}]/u;
diff --git a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/without-unicode-flag/options.json b/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/without-unicode-flag/options.json
deleted file mode 100644
index a78ced44..00000000
--- a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/without-unicode-flag/options.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "plugins": [
- [
- "proposal-unicode-property-regex",
- {
- "useUnicodeFlag": false
- }
- ]
- ]
-}
diff --git a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/without-unicode-flag/script-extensions/input.js b/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/without-unicode-flag/script-extensions/input.js
deleted file mode 100644
index 9edf9daa..00000000
--- a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/without-unicode-flag/script-extensions/input.js
+++ /dev/null
@@ -1 +0,0 @@
-var regex = /\p{Script_Extensions=Anatolian_Hieroglyphs}/u;
diff --git a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/without-unicode-flag/script-extensions/output.js b/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/without-unicode-flag/script-extensions/output.js
deleted file mode 100644
index f9bb33a7..00000000
--- a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/without-unicode-flag/script-extensions/output.js
+++ /dev/null
@@ -1 +0,0 @@
-var regex = /(?:\uD811[\uDC00-\uDE46])/;
diff --git a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/without-unicode-flag/simple/input.js b/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/without-unicode-flag/simple/input.js
deleted file mode 100644
index 7770f8ea..00000000
--- a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/without-unicode-flag/simple/input.js
+++ /dev/null
@@ -1 +0,0 @@
-var regex = /\p{ASCII_Hex_Digit}/u;
diff --git a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/without-unicode-flag/simple/output.js b/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/without-unicode-flag/simple/output.js
deleted file mode 100644
index 5b17db17..00000000
--- a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/without-unicode-flag/simple/output.js
+++ /dev/null
@@ -1 +0,0 @@
-var regex = /[0-9A-Fa-f]/;
diff --git a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/without-unicode-flag/unicode-10/input.js b/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/without-unicode-flag/unicode-10/input.js
deleted file mode 100644
index 3af0a331..00000000
--- a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/without-unicode-flag/unicode-10/input.js
+++ /dev/null
@@ -1 +0,0 @@
-var regex = /\p{Regional_Indicator}/u;
diff --git a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/without-unicode-flag/unicode-10/output.js b/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/without-unicode-flag/unicode-10/output.js
deleted file mode 100644
index 8339aeef..00000000
--- a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/without-unicode-flag/unicode-10/output.js
+++ /dev/null
@@ -1 +0,0 @@
-var regex = /(?:\uD83C[\uDDE6-\uDDFF])/;
diff --git a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/without-unicode-flag/unicode-11/input.js b/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/without-unicode-flag/unicode-11/input.js
deleted file mode 100644
index 0de116d6..00000000
--- a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/without-unicode-flag/unicode-11/input.js
+++ /dev/null
@@ -1 +0,0 @@
-var regex = /\p{Script_Extensions=Makasar}/u;
diff --git a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/without-unicode-flag/unicode-11/output.js b/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/without-unicode-flag/unicode-11/output.js
deleted file mode 100644
index 90501318..00000000
--- a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/without-unicode-flag/unicode-11/output.js
+++ /dev/null
@@ -1 +0,0 @@
-var regex = /(?:\uD807[\uDEE0-\uDEF8])/;
diff --git a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/without-unicode-flag/unicode-12/input.js b/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/without-unicode-flag/unicode-12/input.js
deleted file mode 100644
index f563d323..00000000
--- a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/without-unicode-flag/unicode-12/input.js
+++ /dev/null
@@ -1 +0,0 @@
-var regex = /\p{Script_Extensions=Wancho}/u;
diff --git a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/without-unicode-flag/unicode-12/output.js b/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/without-unicode-flag/unicode-12/output.js
deleted file mode 100644
index 941a22ba..00000000
--- a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/fixtures/without-unicode-flag/unicode-12/output.js
+++ /dev/null
@@ -1 +0,0 @@
-var regex = /(?:\uD838[\uDEC0-\uDEF9\uDEFF])/;
diff --git a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/index.js b/node_modules/@babel/plugin-proposal-unicode-property-regex/test/index.js
deleted file mode 100644
index 8c71ab59..00000000
--- a/node_modules/@babel/plugin-proposal-unicode-property-regex/test/index.js
+++ /dev/null
@@ -1,2 +0,0 @@
-import runner from "@babel/helper-plugin-test-runner";
-runner(__dirname);
diff --git a/node_modules/@babel/plugin-syntax-async-generators/LICENSE b/node_modules/@babel/plugin-syntax-async-generators/LICENSE
deleted file mode 100644
index a06ec0e7..00000000
--- a/node_modules/@babel/plugin-syntax-async-generators/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-2018 Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/plugin-syntax-async-generators/README.md b/node_modules/@babel/plugin-syntax-async-generators/README.md
deleted file mode 100644
index 4fdb68df..00000000
--- a/node_modules/@babel/plugin-syntax-async-generators/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/plugin-syntax-async-generators
-
-> Allow parsing of async generator functions
-
-See our website [@babel/plugin-syntax-async-generators](https://babeljs.io/docs/en/next/babel-plugin-syntax-async-generators.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/plugin-syntax-async-generators
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/plugin-syntax-async-generators --dev
-```
diff --git a/node_modules/@babel/plugin-syntax-async-generators/lib/index.js b/node_modules/@babel/plugin-syntax-async-generators/lib/index.js
deleted file mode 100644
index 4cc712cf..00000000
--- a/node_modules/@babel/plugin-syntax-async-generators/lib/index.js
+++ /dev/null
@@ -1,30 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _helperPluginUtils() {
- const data = require("@babel/helper-plugin-utils");
-
- _helperPluginUtils = function () {
- return data;
- };
-
- return data;
-}
-
-var _default = (0, _helperPluginUtils().declare)(api => {
- api.assertVersion(7);
- return {
- name: "syntax-async-generators",
-
- manipulateOptions(opts, parserOpts) {
- parserOpts.plugins.push("asyncGenerators");
- }
-
- };
-});
-
-exports.default = _default;
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-syntax-async-generators/package.json b/node_modules/@babel/plugin-syntax-async-generators/package.json
deleted file mode 100644
index 0d77f4c4..00000000
--- a/node_modules/@babel/plugin-syntax-async-generators/package.json
+++ /dev/null
@@ -1,56 +0,0 @@
-{
- "_args": [
- [
- "@babel/plugin-syntax-async-generators@7.2.0",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/plugin-syntax-async-generators@7.2.0",
- "_id": "@babel/plugin-syntax-async-generators@7.2.0",
- "_inBundle": false,
- "_integrity": "sha512-1ZrIRBv2t0GSlcwVoQ6VgSLpLgiN/FVQUzt9znxo7v2Ov4jJrs8RY8tv0wvDmFN3qIdMKWrmMMW6yZ0G19MfGg==",
- "_location": "/@babel/plugin-syntax-async-generators",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/plugin-syntax-async-generators@7.2.0",
- "name": "@babel/plugin-syntax-async-generators",
- "escapedName": "@babel%2fplugin-syntax-async-generators",
- "scope": "@babel",
- "rawSpec": "7.2.0",
- "saveSpec": null,
- "fetchSpec": "7.2.0"
- },
- "_requiredBy": [
- "/@babel/plugin-proposal-async-generator-functions",
- "/@babel/preset-env"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.2.0.tgz",
- "_spec": "7.2.0",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-plugin-utils": "^7.0.0"
- },
- "description": "Allow parsing of async generator functions",
- "devDependencies": {
- "@babel/core": "^7.2.0"
- },
- "keywords": [
- "babel-plugin"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/plugin-syntax-async-generators",
- "peerDependencies": {
- "@babel/core": "^7.0.0-0"
- },
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-async-generators"
- },
- "version": "7.2.0"
-}
diff --git a/node_modules/@babel/plugin-syntax-dynamic-import/LICENSE b/node_modules/@babel/plugin-syntax-dynamic-import/LICENSE
deleted file mode 100644
index a06ec0e7..00000000
--- a/node_modules/@babel/plugin-syntax-dynamic-import/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-2018 Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/plugin-syntax-dynamic-import/README.md b/node_modules/@babel/plugin-syntax-dynamic-import/README.md
deleted file mode 100644
index 12790350..00000000
--- a/node_modules/@babel/plugin-syntax-dynamic-import/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/plugin-syntax-dynamic-import
-
-> Allow parsing of import()
-
-See our website [@babel/plugin-syntax-dynamic-import](https://babeljs.io/docs/en/next/babel-plugin-syntax-dynamic-import.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/plugin-syntax-dynamic-import
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/plugin-syntax-dynamic-import --dev
-```
diff --git a/node_modules/@babel/plugin-syntax-dynamic-import/lib/index.js b/node_modules/@babel/plugin-syntax-dynamic-import/lib/index.js
deleted file mode 100644
index 1a6f4338..00000000
--- a/node_modules/@babel/plugin-syntax-dynamic-import/lib/index.js
+++ /dev/null
@@ -1,30 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _helperPluginUtils() {
- const data = require("@babel/helper-plugin-utils");
-
- _helperPluginUtils = function () {
- return data;
- };
-
- return data;
-}
-
-var _default = (0, _helperPluginUtils().declare)(api => {
- api.assertVersion(7);
- return {
- name: "syntax-dynamic-import",
-
- manipulateOptions(opts, parserOpts) {
- parserOpts.plugins.push("dynamicImport");
- }
-
- };
-});
-
-exports.default = _default;
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-syntax-dynamic-import/package.json b/node_modules/@babel/plugin-syntax-dynamic-import/package.json
deleted file mode 100644
index 32be4d6b..00000000
--- a/node_modules/@babel/plugin-syntax-dynamic-import/package.json
+++ /dev/null
@@ -1,56 +0,0 @@
-{
- "_args": [
- [
- "@babel/plugin-syntax-dynamic-import@7.2.0",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/plugin-syntax-dynamic-import@7.2.0",
- "_id": "@babel/plugin-syntax-dynamic-import@7.2.0",
- "_inBundle": false,
- "_integrity": "sha512-mVxuJ0YroI/h/tbFTPGZR8cv6ai+STMKNBq0f8hFxsxWjl94qqhsb+wXbpNMDPU3cfR1TIsVFzU3nXyZMqyK4w==",
- "_location": "/@babel/plugin-syntax-dynamic-import",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/plugin-syntax-dynamic-import@7.2.0",
- "name": "@babel/plugin-syntax-dynamic-import",
- "escapedName": "@babel%2fplugin-syntax-dynamic-import",
- "scope": "@babel",
- "rawSpec": "7.2.0",
- "saveSpec": null,
- "fetchSpec": "7.2.0"
- },
- "_requiredBy": [
- "/@babel/plugin-proposal-dynamic-import",
- "/@babel/preset-env"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.2.0.tgz",
- "_spec": "7.2.0",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-plugin-utils": "^7.0.0"
- },
- "description": "Allow parsing of import()",
- "devDependencies": {
- "@babel/core": "^7.2.0"
- },
- "keywords": [
- "babel-plugin"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/plugin-syntax-dynamic-import",
- "peerDependencies": {
- "@babel/core": "^7.0.0-0"
- },
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-dynamic-import"
- },
- "version": "7.2.0"
-}
diff --git a/node_modules/@babel/plugin-syntax-json-strings/LICENSE b/node_modules/@babel/plugin-syntax-json-strings/LICENSE
deleted file mode 100644
index a06ec0e7..00000000
--- a/node_modules/@babel/plugin-syntax-json-strings/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-2018 Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/plugin-syntax-json-strings/README.md b/node_modules/@babel/plugin-syntax-json-strings/README.md
deleted file mode 100644
index 03c00a2d..00000000
--- a/node_modules/@babel/plugin-syntax-json-strings/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/plugin-syntax-json-strings
-
-> Allow parsing of the U+2028 LINE SEPARATOR and U+2029 PARAGRAPH SEPARATOR in JS strings
-
-See our website [@babel/plugin-syntax-json-strings](https://babeljs.io/docs/en/next/babel-plugin-syntax-json-strings.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/plugin-syntax-json-strings
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/plugin-syntax-json-strings --dev
-```
diff --git a/node_modules/@babel/plugin-syntax-json-strings/lib/index.js b/node_modules/@babel/plugin-syntax-json-strings/lib/index.js
deleted file mode 100644
index bd95a0ea..00000000
--- a/node_modules/@babel/plugin-syntax-json-strings/lib/index.js
+++ /dev/null
@@ -1,30 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _helperPluginUtils() {
- const data = require("@babel/helper-plugin-utils");
-
- _helperPluginUtils = function () {
- return data;
- };
-
- return data;
-}
-
-var _default = (0, _helperPluginUtils().declare)(api => {
- api.assertVersion(7);
- return {
- name: "syntax-json-strings",
-
- manipulateOptions(opts, parserOpts) {
- parserOpts.plugins.push("jsonStrings");
- }
-
- };
-});
-
-exports.default = _default;
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-syntax-json-strings/package.json b/node_modules/@babel/plugin-syntax-json-strings/package.json
deleted file mode 100644
index 24717ff3..00000000
--- a/node_modules/@babel/plugin-syntax-json-strings/package.json
+++ /dev/null
@@ -1,56 +0,0 @@
-{
- "_args": [
- [
- "@babel/plugin-syntax-json-strings@7.2.0",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/plugin-syntax-json-strings@7.2.0",
- "_id": "@babel/plugin-syntax-json-strings@7.2.0",
- "_inBundle": false,
- "_integrity": "sha512-5UGYnMSLRE1dqqZwug+1LISpA403HzlSfsg6P9VXU6TBjcSHeNlw4DxDx7LgpF+iKZoOG/+uzqoRHTdcUpiZNg==",
- "_location": "/@babel/plugin-syntax-json-strings",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/plugin-syntax-json-strings@7.2.0",
- "name": "@babel/plugin-syntax-json-strings",
- "escapedName": "@babel%2fplugin-syntax-json-strings",
- "scope": "@babel",
- "rawSpec": "7.2.0",
- "saveSpec": null,
- "fetchSpec": "7.2.0"
- },
- "_requiredBy": [
- "/@babel/plugin-proposal-json-strings",
- "/@babel/preset-env"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.2.0.tgz",
- "_spec": "7.2.0",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-plugin-utils": "^7.0.0"
- },
- "description": "Allow parsing of the U+2028 LINE SEPARATOR and U+2029 PARAGRAPH SEPARATOR in JS strings",
- "devDependencies": {
- "@babel/core": "^7.2.0"
- },
- "keywords": [
- "babel-plugin"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/plugin-syntax-json-strings",
- "peerDependencies": {
- "@babel/core": "^7.0.0-0"
- },
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-json-strings"
- },
- "version": "7.2.0"
-}
diff --git a/node_modules/@babel/plugin-syntax-object-rest-spread/LICENSE b/node_modules/@babel/plugin-syntax-object-rest-spread/LICENSE
deleted file mode 100644
index a06ec0e7..00000000
--- a/node_modules/@babel/plugin-syntax-object-rest-spread/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-2018 Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/plugin-syntax-object-rest-spread/README.md b/node_modules/@babel/plugin-syntax-object-rest-spread/README.md
deleted file mode 100644
index 95c4472e..00000000
--- a/node_modules/@babel/plugin-syntax-object-rest-spread/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/plugin-syntax-object-rest-spread
-
-> Allow parsing of object rest/spread
-
-See our website [@babel/plugin-syntax-object-rest-spread](https://babeljs.io/docs/en/next/babel-plugin-syntax-object-rest-spread.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/plugin-syntax-object-rest-spread
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/plugin-syntax-object-rest-spread --dev
-```
diff --git a/node_modules/@babel/plugin-syntax-object-rest-spread/lib/index.js b/node_modules/@babel/plugin-syntax-object-rest-spread/lib/index.js
deleted file mode 100644
index a7f33bdd..00000000
--- a/node_modules/@babel/plugin-syntax-object-rest-spread/lib/index.js
+++ /dev/null
@@ -1,30 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _helperPluginUtils() {
- const data = require("@babel/helper-plugin-utils");
-
- _helperPluginUtils = function () {
- return data;
- };
-
- return data;
-}
-
-var _default = (0, _helperPluginUtils().declare)(api => {
- api.assertVersion(7);
- return {
- name: "syntax-object-rest-spread",
-
- manipulateOptions(opts, parserOpts) {
- parserOpts.plugins.push("objectRestSpread");
- }
-
- };
-});
-
-exports.default = _default;
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-syntax-object-rest-spread/package.json b/node_modules/@babel/plugin-syntax-object-rest-spread/package.json
deleted file mode 100644
index 092674ed..00000000
--- a/node_modules/@babel/plugin-syntax-object-rest-spread/package.json
+++ /dev/null
@@ -1,57 +0,0 @@
-{
- "_args": [
- [
- "@babel/plugin-syntax-object-rest-spread@7.2.0",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/plugin-syntax-object-rest-spread@7.2.0",
- "_id": "@babel/plugin-syntax-object-rest-spread@7.2.0",
- "_inBundle": false,
- "_integrity": "sha512-t0JKGgqk2We+9may3t0xDdmneaXmyxq0xieYcKHxIsrJO64n1OiMWNUtc5gQK1PA0NpdCRrtZp4z+IUaKugrSA==",
- "_location": "/@babel/plugin-syntax-object-rest-spread",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/plugin-syntax-object-rest-spread@7.2.0",
- "name": "@babel/plugin-syntax-object-rest-spread",
- "escapedName": "@babel%2fplugin-syntax-object-rest-spread",
- "scope": "@babel",
- "rawSpec": "7.2.0",
- "saveSpec": null,
- "fetchSpec": "7.2.0"
- },
- "_requiredBy": [
- "/@babel/plugin-proposal-object-rest-spread",
- "/@babel/preset-env",
- "/babel-preset-jest"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.2.0.tgz",
- "_spec": "7.2.0",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-plugin-utils": "^7.0.0"
- },
- "description": "Allow parsing of object rest/spread",
- "devDependencies": {
- "@babel/core": "^7.2.0"
- },
- "keywords": [
- "babel-plugin"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/plugin-syntax-object-rest-spread",
- "peerDependencies": {
- "@babel/core": "^7.0.0-0"
- },
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-object-rest-spread"
- },
- "version": "7.2.0"
-}
diff --git a/node_modules/@babel/plugin-syntax-optional-catch-binding/LICENSE b/node_modules/@babel/plugin-syntax-optional-catch-binding/LICENSE
deleted file mode 100644
index a06ec0e7..00000000
--- a/node_modules/@babel/plugin-syntax-optional-catch-binding/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-2018 Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/plugin-syntax-optional-catch-binding/README.md b/node_modules/@babel/plugin-syntax-optional-catch-binding/README.md
deleted file mode 100644
index 9085f918..00000000
--- a/node_modules/@babel/plugin-syntax-optional-catch-binding/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/plugin-syntax-optional-catch-binding
-
-> Allow parsing of optional catch bindings
-
-See our website [@babel/plugin-syntax-optional-catch-binding](https://babeljs.io/docs/en/next/babel-plugin-syntax-optional-catch-binding.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/plugin-syntax-optional-catch-binding
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/plugin-syntax-optional-catch-binding --dev
-```
diff --git a/node_modules/@babel/plugin-syntax-optional-catch-binding/lib/index.js b/node_modules/@babel/plugin-syntax-optional-catch-binding/lib/index.js
deleted file mode 100644
index ded7b905..00000000
--- a/node_modules/@babel/plugin-syntax-optional-catch-binding/lib/index.js
+++ /dev/null
@@ -1,30 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _helperPluginUtils() {
- const data = require("@babel/helper-plugin-utils");
-
- _helperPluginUtils = function () {
- return data;
- };
-
- return data;
-}
-
-var _default = (0, _helperPluginUtils().declare)(api => {
- api.assertVersion(7);
- return {
- name: "syntax-optional-catch-binding",
-
- manipulateOptions(opts, parserOpts) {
- parserOpts.plugins.push("optionalCatchBinding");
- }
-
- };
-});
-
-exports.default = _default;
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-syntax-optional-catch-binding/package.json b/node_modules/@babel/plugin-syntax-optional-catch-binding/package.json
deleted file mode 100644
index 7baee7fb..00000000
--- a/node_modules/@babel/plugin-syntax-optional-catch-binding/package.json
+++ /dev/null
@@ -1,56 +0,0 @@
-{
- "_args": [
- [
- "@babel/plugin-syntax-optional-catch-binding@7.2.0",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/plugin-syntax-optional-catch-binding@7.2.0",
- "_id": "@babel/plugin-syntax-optional-catch-binding@7.2.0",
- "_inBundle": false,
- "_integrity": "sha512-bDe4xKNhb0LI7IvZHiA13kff0KEfaGX/Hv4lMA9+7TEc63hMNvfKo6ZFpXhKuEp+II/q35Gc4NoMeDZyaUbj9w==",
- "_location": "/@babel/plugin-syntax-optional-catch-binding",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/plugin-syntax-optional-catch-binding@7.2.0",
- "name": "@babel/plugin-syntax-optional-catch-binding",
- "escapedName": "@babel%2fplugin-syntax-optional-catch-binding",
- "scope": "@babel",
- "rawSpec": "7.2.0",
- "saveSpec": null,
- "fetchSpec": "7.2.0"
- },
- "_requiredBy": [
- "/@babel/plugin-proposal-optional-catch-binding",
- "/@babel/preset-env"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.2.0.tgz",
- "_spec": "7.2.0",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-plugin-utils": "^7.0.0"
- },
- "description": "Allow parsing of optional catch bindings",
- "devDependencies": {
- "@babel/core": "^7.2.0"
- },
- "keywords": [
- "babel-plugin"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/plugin-syntax-optional-catch-binding",
- "peerDependencies": {
- "@babel/core": "^7.0.0-0"
- },
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-optional-catch-binding"
- },
- "version": "7.2.0"
-}
diff --git a/node_modules/@babel/plugin-transform-arrow-functions/LICENSE b/node_modules/@babel/plugin-transform-arrow-functions/LICENSE
deleted file mode 100644
index a06ec0e7..00000000
--- a/node_modules/@babel/plugin-transform-arrow-functions/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-2018 Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/plugin-transform-arrow-functions/README.md b/node_modules/@babel/plugin-transform-arrow-functions/README.md
deleted file mode 100644
index fd3fbee7..00000000
--- a/node_modules/@babel/plugin-transform-arrow-functions/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/plugin-transform-arrow-functions
-
-> Compile ES2015 arrow functions to ES5
-
-See our website [@babel/plugin-transform-arrow-functions](https://babeljs.io/docs/en/next/babel-plugin-transform-arrow-functions.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/plugin-transform-arrow-functions
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/plugin-transform-arrow-functions --dev
-```
diff --git a/node_modules/@babel/plugin-transform-arrow-functions/lib/index.js b/node_modules/@babel/plugin-transform-arrow-functions/lib/index.js
deleted file mode 100644
index 0d65d601..00000000
--- a/node_modules/@babel/plugin-transform-arrow-functions/lib/index.js
+++ /dev/null
@@ -1,38 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _helperPluginUtils() {
- const data = require("@babel/helper-plugin-utils");
-
- _helperPluginUtils = function () {
- return data;
- };
-
- return data;
-}
-
-var _default = (0, _helperPluginUtils().declare)((api, options) => {
- api.assertVersion(7);
- const {
- spec
- } = options;
- return {
- name: "transform-arrow-functions",
- visitor: {
- ArrowFunctionExpression(path) {
- if (!path.isArrowFunctionExpression()) return;
- path.arrowFunctionToExpression({
- allowInsertArrow: false,
- specCompliant: !!spec
- });
- }
-
- }
- };
-});
-
-exports.default = _default;
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-transform-arrow-functions/package.json b/node_modules/@babel/plugin-transform-arrow-functions/package.json
deleted file mode 100644
index 8e723419..00000000
--- a/node_modules/@babel/plugin-transform-arrow-functions/package.json
+++ /dev/null
@@ -1,57 +0,0 @@
-{
- "_args": [
- [
- "@babel/plugin-transform-arrow-functions@7.2.0",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/plugin-transform-arrow-functions@7.2.0",
- "_id": "@babel/plugin-transform-arrow-functions@7.2.0",
- "_inBundle": false,
- "_integrity": "sha512-ER77Cax1+8/8jCB9fo4Ud161OZzWN5qawi4GusDuRLcDbDG+bIGYY20zb2dfAFdTRGzrfq2xZPvF0R64EHnimg==",
- "_location": "/@babel/plugin-transform-arrow-functions",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/plugin-transform-arrow-functions@7.2.0",
- "name": "@babel/plugin-transform-arrow-functions",
- "escapedName": "@babel%2fplugin-transform-arrow-functions",
- "scope": "@babel",
- "rawSpec": "7.2.0",
- "saveSpec": null,
- "fetchSpec": "7.2.0"
- },
- "_requiredBy": [
- "/@babel/preset-env"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.2.0.tgz",
- "_spec": "7.2.0",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-plugin-utils": "^7.0.0"
- },
- "description": "Compile ES2015 arrow functions to ES5",
- "devDependencies": {
- "@babel/core": "^7.2.0",
- "@babel/helper-plugin-test-runner": "^7.0.0",
- "@babel/traverse": "^7.0.0"
- },
- "keywords": [
- "babel-plugin"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/plugin-transform-arrow-functions",
- "peerDependencies": {
- "@babel/core": "^7.0.0-0"
- },
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-arrow-functions"
- },
- "version": "7.2.0"
-}
diff --git a/node_modules/@babel/plugin-transform-async-to-generator/LICENSE b/node_modules/@babel/plugin-transform-async-to-generator/LICENSE
deleted file mode 100644
index f31575ec..00000000
--- a/node_modules/@babel/plugin-transform-async-to-generator/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-present Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/plugin-transform-async-to-generator/README.md b/node_modules/@babel/plugin-transform-async-to-generator/README.md
deleted file mode 100644
index a8ca0a38..00000000
--- a/node_modules/@babel/plugin-transform-async-to-generator/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/plugin-transform-async-to-generator
-
-> Turn async functions into ES2015 generators
-
-See our website [@babel/plugin-transform-async-to-generator](https://babeljs.io/docs/en/next/babel-plugin-transform-async-to-generator.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/plugin-transform-async-to-generator
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/plugin-transform-async-to-generator --dev
-```
diff --git a/node_modules/@babel/plugin-transform-async-to-generator/lib/index.js b/node_modules/@babel/plugin-transform-async-to-generator/lib/index.js
deleted file mode 100644
index 36ea144a..00000000
--- a/node_modules/@babel/plugin-transform-async-to-generator/lib/index.js
+++ /dev/null
@@ -1,94 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _helperPluginUtils() {
- const data = require("@babel/helper-plugin-utils");
-
- _helperPluginUtils = function () {
- return data;
- };
-
- return data;
-}
-
-function _helperRemapAsyncToGenerator() {
- const data = _interopRequireDefault(require("@babel/helper-remap-async-to-generator"));
-
- _helperRemapAsyncToGenerator = function () {
- return data;
- };
-
- return data;
-}
-
-function _helperModuleImports() {
- const data = require("@babel/helper-module-imports");
-
- _helperModuleImports = function () {
- return data;
- };
-
- return data;
-}
-
-function _core() {
- const data = require("@babel/core");
-
- _core = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-var _default = (0, _helperPluginUtils().declare)((api, options) => {
- api.assertVersion(7);
- const {
- method,
- module
- } = options;
-
- if (method && module) {
- return {
- name: "transform-async-to-generator",
- visitor: {
- Function(path, state) {
- if (!path.node.async || path.node.generator) return;
- let wrapAsync = state.methodWrapper;
-
- if (wrapAsync) {
- wrapAsync = _core().types.cloneNode(wrapAsync);
- } else {
- wrapAsync = state.methodWrapper = (0, _helperModuleImports().addNamed)(path, method, module);
- }
-
- (0, _helperRemapAsyncToGenerator().default)(path, {
- wrapAsync
- });
- }
-
- }
- };
- }
-
- return {
- name: "transform-async-to-generator",
- visitor: {
- Function(path, state) {
- if (!path.node.async || path.node.generator) return;
- (0, _helperRemapAsyncToGenerator().default)(path, {
- wrapAsync: state.addHelper("asyncToGenerator")
- });
- }
-
- }
- };
-});
-
-exports.default = _default;
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-transform-async-to-generator/package.json b/node_modules/@babel/plugin-transform-async-to-generator/package.json
deleted file mode 100644
index 0d1bea70..00000000
--- a/node_modules/@babel/plugin-transform-async-to-generator/package.json
+++ /dev/null
@@ -1,59 +0,0 @@
-{
- "_args": [
- [
- "@babel/plugin-transform-async-to-generator@7.5.0",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/plugin-transform-async-to-generator@7.5.0",
- "_id": "@babel/plugin-transform-async-to-generator@7.5.0",
- "_inBundle": false,
- "_integrity": "sha512-mqvkzwIGkq0bEF1zLRRiTdjfomZJDV33AH3oQzHVGkI2VzEmXLpKKOBvEVaFZBJdN0XTyH38s9j/Kiqr68dggg==",
- "_location": "/@babel/plugin-transform-async-to-generator",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/plugin-transform-async-to-generator@7.5.0",
- "name": "@babel/plugin-transform-async-to-generator",
- "escapedName": "@babel%2fplugin-transform-async-to-generator",
- "scope": "@babel",
- "rawSpec": "7.5.0",
- "saveSpec": null,
- "fetchSpec": "7.5.0"
- },
- "_requiredBy": [
- "/@babel/preset-env"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.5.0.tgz",
- "_spec": "7.5.0",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-module-imports": "^7.0.0",
- "@babel/helper-plugin-utils": "^7.0.0",
- "@babel/helper-remap-async-to-generator": "^7.1.0"
- },
- "description": "Turn async functions into ES2015 generators",
- "devDependencies": {
- "@babel/core": "^7.5.0",
- "@babel/helper-plugin-test-runner": "^7.0.0"
- },
- "gitHead": "49da9a07c81156e997e60146eb001ea77b7044c4",
- "keywords": [
- "babel-plugin"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/plugin-transform-async-to-generator",
- "peerDependencies": {
- "@babel/core": "^7.0.0-0"
- },
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-async-to-generator"
- },
- "version": "7.5.0"
-}
diff --git a/node_modules/@babel/plugin-transform-block-scoped-functions/LICENSE b/node_modules/@babel/plugin-transform-block-scoped-functions/LICENSE
deleted file mode 100644
index a06ec0e7..00000000
--- a/node_modules/@babel/plugin-transform-block-scoped-functions/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-2018 Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/plugin-transform-block-scoped-functions/README.md b/node_modules/@babel/plugin-transform-block-scoped-functions/README.md
deleted file mode 100644
index c45cbeed..00000000
--- a/node_modules/@babel/plugin-transform-block-scoped-functions/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/plugin-transform-block-scoped-functions
-
-> Babel plugin to ensure function declarations at the block level are block scoped
-
-See our website [@babel/plugin-transform-block-scoped-functions](https://babeljs.io/docs/en/next/babel-plugin-transform-block-scoped-functions.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/plugin-transform-block-scoped-functions
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/plugin-transform-block-scoped-functions --dev
-```
diff --git a/node_modules/@babel/plugin-transform-block-scoped-functions/lib/index.js b/node_modules/@babel/plugin-transform-block-scoped-functions/lib/index.js
deleted file mode 100644
index 4cd265f3..00000000
--- a/node_modules/@babel/plugin-transform-block-scoped-functions/lib/index.js
+++ /dev/null
@@ -1,72 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _helperPluginUtils() {
- const data = require("@babel/helper-plugin-utils");
-
- _helperPluginUtils = function () {
- return data;
- };
-
- return data;
-}
-
-function _core() {
- const data = require("@babel/core");
-
- _core = function () {
- return data;
- };
-
- return data;
-}
-
-var _default = (0, _helperPluginUtils().declare)(api => {
- api.assertVersion(7);
-
- function statementList(key, path) {
- const paths = path.get(key);
-
- for (const path of paths) {
- const func = path.node;
- if (!path.isFunctionDeclaration()) continue;
-
- const declar = _core().types.variableDeclaration("let", [_core().types.variableDeclarator(func.id, _core().types.toExpression(func))]);
-
- declar._blockHoist = 2;
- func.id = null;
- path.replaceWith(declar);
- }
- }
-
- return {
- name: "transform-block-scoped-functions",
- visitor: {
- BlockStatement(path) {
- const {
- node,
- parent
- } = path;
-
- if (_core().types.isFunction(parent, {
- body: node
- }) || _core().types.isExportDeclaration(parent)) {
- return;
- }
-
- statementList("body", path);
- },
-
- SwitchCase(path) {
- statementList("consequent", path);
- }
-
- }
- };
-});
-
-exports.default = _default;
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-transform-block-scoped-functions/package.json b/node_modules/@babel/plugin-transform-block-scoped-functions/package.json
deleted file mode 100644
index 705fefad..00000000
--- a/node_modules/@babel/plugin-transform-block-scoped-functions/package.json
+++ /dev/null
@@ -1,56 +0,0 @@
-{
- "_args": [
- [
- "@babel/plugin-transform-block-scoped-functions@7.2.0",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/plugin-transform-block-scoped-functions@7.2.0",
- "_id": "@babel/plugin-transform-block-scoped-functions@7.2.0",
- "_inBundle": false,
- "_integrity": "sha512-ntQPR6q1/NKuphly49+QiQiTN0O63uOwjdD6dhIjSWBI5xlrbUFh720TIpzBhpnrLfv2tNH/BXvLIab1+BAI0w==",
- "_location": "/@babel/plugin-transform-block-scoped-functions",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/plugin-transform-block-scoped-functions@7.2.0",
- "name": "@babel/plugin-transform-block-scoped-functions",
- "escapedName": "@babel%2fplugin-transform-block-scoped-functions",
- "scope": "@babel",
- "rawSpec": "7.2.0",
- "saveSpec": null,
- "fetchSpec": "7.2.0"
- },
- "_requiredBy": [
- "/@babel/preset-env"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.2.0.tgz",
- "_spec": "7.2.0",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-plugin-utils": "^7.0.0"
- },
- "description": "Babel plugin to ensure function declarations at the block level are block scoped",
- "devDependencies": {
- "@babel/core": "^7.2.0",
- "@babel/helper-plugin-test-runner": "^7.0.0"
- },
- "keywords": [
- "babel-plugin"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/plugin-transform-block-scoped-functions",
- "peerDependencies": {
- "@babel/core": "^7.0.0-0"
- },
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-block-scoped-functions"
- },
- "version": "7.2.0"
-}
diff --git a/node_modules/@babel/plugin-transform-block-scoping/LICENSE b/node_modules/@babel/plugin-transform-block-scoping/LICENSE
deleted file mode 100644
index f31575ec..00000000
--- a/node_modules/@babel/plugin-transform-block-scoping/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-present Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/plugin-transform-block-scoping/README.md b/node_modules/@babel/plugin-transform-block-scoping/README.md
deleted file mode 100644
index 4895b93d..00000000
--- a/node_modules/@babel/plugin-transform-block-scoping/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/plugin-transform-block-scoping
-
-> Compile ES2015 block scoping (const and let) to ES5
-
-See our website [@babel/plugin-transform-block-scoping](https://babeljs.io/docs/en/next/babel-plugin-transform-block-scoping.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/plugin-transform-block-scoping
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/plugin-transform-block-scoping --dev
-```
diff --git a/node_modules/@babel/plugin-transform-block-scoping/lib/index.js b/node_modules/@babel/plugin-transform-block-scoping/lib/index.js
deleted file mode 100644
index 8918ea31..00000000
--- a/node_modules/@babel/plugin-transform-block-scoping/lib/index.js
+++ /dev/null
@@ -1,762 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _helperPluginUtils() {
- const data = require("@babel/helper-plugin-utils");
-
- _helperPluginUtils = function () {
- return data;
- };
-
- return data;
-}
-
-var _tdz = require("./tdz");
-
-function _values() {
- const data = _interopRequireDefault(require("lodash/values"));
-
- _values = function () {
- return data;
- };
-
- return data;
-}
-
-function _extend() {
- const data = _interopRequireDefault(require("lodash/extend"));
-
- _extend = function () {
- return data;
- };
-
- return data;
-}
-
-function _core() {
- const data = require("@babel/core");
-
- _core = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-const DONE = new WeakSet();
-
-var _default = (0, _helperPluginUtils().declare)((api, opts) => {
- api.assertVersion(7);
- const {
- throwIfClosureRequired = false,
- tdz: tdzEnabled = false
- } = opts;
-
- if (typeof throwIfClosureRequired !== "boolean") {
- throw new Error(`.throwIfClosureRequired must be a boolean, or undefined`);
- }
-
- if (typeof tdzEnabled !== "boolean") {
- throw new Error(`.tdz must be a boolean, or undefined`);
- }
-
- return {
- name: "transform-block-scoping",
- visitor: {
- VariableDeclaration(path) {
- const {
- node,
- parent,
- scope
- } = path;
- if (!isBlockScoped(node)) return;
- convertBlockScopedToVar(path, null, parent, scope, true);
-
- if (node._tdzThis) {
- const nodes = [node];
-
- for (let i = 0; i < node.declarations.length; i++) {
- const decl = node.declarations[i];
-
- const assign = _core().types.assignmentExpression("=", decl.id, decl.init || scope.buildUndefinedNode());
-
- assign._ignoreBlockScopingTDZ = true;
- nodes.push(_core().types.expressionStatement(assign));
- decl.init = this.addHelper("temporalUndefined");
- }
-
- node._blockHoist = 2;
-
- if (path.isCompletionRecord()) {
- nodes.push(_core().types.expressionStatement(scope.buildUndefinedNode()));
- }
-
- path.replaceWithMultiple(nodes);
- }
- },
-
- Loop(path, state) {
- const {
- parent,
- scope
- } = path;
- path.ensureBlock();
- const blockScoping = new BlockScoping(path, path.get("body"), parent, scope, throwIfClosureRequired, tdzEnabled, state);
- const replace = blockScoping.run();
- if (replace) path.replaceWith(replace);
- },
-
- CatchClause(path, state) {
- const {
- parent,
- scope
- } = path;
- const blockScoping = new BlockScoping(null, path.get("body"), parent, scope, throwIfClosureRequired, tdzEnabled, state);
- blockScoping.run();
- },
-
- "BlockStatement|SwitchStatement|Program"(path, state) {
- if (!ignoreBlock(path)) {
- const blockScoping = new BlockScoping(null, path, path.parent, path.scope, throwIfClosureRequired, tdzEnabled, state);
- blockScoping.run();
- }
- }
-
- }
- };
-});
-
-exports.default = _default;
-
-function ignoreBlock(path) {
- return _core().types.isLoop(path.parent) || _core().types.isCatchClause(path.parent);
-}
-
-const buildRetCheck = (0, _core().template)(`
- if (typeof RETURN === "object") return RETURN.v;
-`);
-
-function isBlockScoped(node) {
- if (!_core().types.isVariableDeclaration(node)) return false;
- if (node[_core().types.BLOCK_SCOPED_SYMBOL]) return true;
- if (node.kind !== "let" && node.kind !== "const") return false;
- return true;
-}
-
-function isInLoop(path) {
- const loopOrFunctionParent = path.find(path => path.isLoop() || path.isFunction());
- return loopOrFunctionParent && loopOrFunctionParent.isLoop();
-}
-
-function convertBlockScopedToVar(path, node, parent, scope, moveBindingsToParent = false) {
- if (!node) {
- node = path.node;
- }
-
- if (isInLoop(path) && !_core().types.isFor(parent)) {
- for (let i = 0; i < node.declarations.length; i++) {
- const declar = node.declarations[i];
- declar.init = declar.init || scope.buildUndefinedNode();
- }
- }
-
- node[_core().types.BLOCK_SCOPED_SYMBOL] = true;
- node.kind = "var";
-
- if (moveBindingsToParent) {
- const parentScope = scope.getFunctionParent() || scope.getProgramParent();
-
- for (const name of Object.keys(path.getBindingIdentifiers())) {
- const binding = scope.getOwnBinding(name);
- if (binding) binding.kind = "var";
- scope.moveBindingTo(name, parentScope);
- }
- }
-}
-
-function isVar(node) {
- return _core().types.isVariableDeclaration(node, {
- kind: "var"
- }) && !isBlockScoped(node);
-}
-
-const letReferenceBlockVisitor = _core().traverse.visitors.merge([{
- Loop: {
- enter(path, state) {
- state.loopDepth++;
- },
-
- exit(path, state) {
- state.loopDepth--;
- }
-
- },
-
- Function(path, state) {
- if (state.loopDepth > 0) {
- path.traverse(letReferenceFunctionVisitor, state);
- } else {
- path.traverse(_tdz.visitor, state);
- }
-
- return path.skip();
- }
-
-}, _tdz.visitor]);
-
-const letReferenceFunctionVisitor = _core().traverse.visitors.merge([{
- ReferencedIdentifier(path, state) {
- const ref = state.letReferences[path.node.name];
- if (!ref) return;
- const localBinding = path.scope.getBindingIdentifier(path.node.name);
- if (localBinding && localBinding !== ref) return;
- state.closurify = true;
- }
-
-}, _tdz.visitor]);
-
-const hoistVarDeclarationsVisitor = {
- enter(path, self) {
- const {
- node,
- parent
- } = path;
-
- if (path.isForStatement()) {
- if (isVar(node.init, node)) {
- const nodes = self.pushDeclar(node.init);
-
- if (nodes.length === 1) {
- node.init = nodes[0];
- } else {
- node.init = _core().types.sequenceExpression(nodes);
- }
- }
- } else if (path.isFor()) {
- if (isVar(node.left, node)) {
- self.pushDeclar(node.left);
- node.left = node.left.declarations[0].id;
- }
- } else if (isVar(node, parent)) {
- path.replaceWithMultiple(self.pushDeclar(node).map(expr => _core().types.expressionStatement(expr)));
- } else if (path.isFunction()) {
- return path.skip();
- }
- }
-
-};
-const loopLabelVisitor = {
- LabeledStatement({
- node
- }, state) {
- state.innerLabels.push(node.label.name);
- }
-
-};
-const continuationVisitor = {
- enter(path, state) {
- if (path.isAssignmentExpression() || path.isUpdateExpression()) {
- for (const name of Object.keys(path.getBindingIdentifiers())) {
- if (state.outsideReferences[name] !== path.scope.getBindingIdentifier(name)) {
- continue;
- }
-
- state.reassignments[name] = true;
- }
- } else if (path.isReturnStatement()) {
- state.returnStatements.push(path);
- }
- }
-
-};
-
-function loopNodeTo(node) {
- if (_core().types.isBreakStatement(node)) {
- return "break";
- } else if (_core().types.isContinueStatement(node)) {
- return "continue";
- }
-}
-
-const loopVisitor = {
- Loop(path, state) {
- const oldIgnoreLabeless = state.ignoreLabeless;
- state.ignoreLabeless = true;
- path.traverse(loopVisitor, state);
- state.ignoreLabeless = oldIgnoreLabeless;
- path.skip();
- },
-
- Function(path) {
- path.skip();
- },
-
- SwitchCase(path, state) {
- const oldInSwitchCase = state.inSwitchCase;
- state.inSwitchCase = true;
- path.traverse(loopVisitor, state);
- state.inSwitchCase = oldInSwitchCase;
- path.skip();
- },
-
- "BreakStatement|ContinueStatement|ReturnStatement"(path, state) {
- const {
- node,
- scope
- } = path;
- if (node[this.LOOP_IGNORE]) return;
- let replace;
- let loopText = loopNodeTo(node);
-
- if (loopText) {
- if (node.label) {
- if (state.innerLabels.indexOf(node.label.name) >= 0) {
- return;
- }
-
- loopText = `${loopText}|${node.label.name}`;
- } else {
- if (state.ignoreLabeless) return;
- if (_core().types.isBreakStatement(node) && state.inSwitchCase) return;
- }
-
- state.hasBreakContinue = true;
- state.map[loopText] = node;
- replace = _core().types.stringLiteral(loopText);
- }
-
- if (path.isReturnStatement()) {
- state.hasReturn = true;
- replace = _core().types.objectExpression([_core().types.objectProperty(_core().types.identifier("v"), node.argument || scope.buildUndefinedNode())]);
- }
-
- if (replace) {
- replace = _core().types.returnStatement(replace);
- replace[this.LOOP_IGNORE] = true;
- path.skip();
- path.replaceWith(_core().types.inherits(replace, node));
- }
- }
-
-};
-
-class BlockScoping {
- constructor(loopPath, blockPath, parent, scope, throwIfClosureRequired, tdzEnabled, state) {
- this.parent = parent;
- this.scope = scope;
- this.state = state;
- this.throwIfClosureRequired = throwIfClosureRequired;
- this.tdzEnabled = tdzEnabled;
- this.blockPath = blockPath;
- this.block = blockPath.node;
- this.outsideLetReferences = Object.create(null);
- this.hasLetReferences = false;
- this.letReferences = Object.create(null);
- this.body = [];
-
- if (loopPath) {
- this.loopParent = loopPath.parent;
- this.loopLabel = _core().types.isLabeledStatement(this.loopParent) && this.loopParent.label;
- this.loopPath = loopPath;
- this.loop = loopPath.node;
- }
- }
-
- run() {
- const block = this.block;
- if (DONE.has(block)) return;
- DONE.add(block);
- const needsClosure = this.getLetReferences();
- this.checkConstants();
-
- if (_core().types.isFunction(this.parent) || _core().types.isProgram(this.block)) {
- this.updateScopeInfo();
- return;
- }
-
- if (!this.hasLetReferences) return;
-
- if (needsClosure) {
- this.wrapClosure();
- } else {
- this.remap();
- }
-
- this.updateScopeInfo(needsClosure);
-
- if (this.loopLabel && !_core().types.isLabeledStatement(this.loopParent)) {
- return _core().types.labeledStatement(this.loopLabel, this.loop);
- }
- }
-
- checkConstants() {
- const scope = this.scope;
- const state = this.state;
-
- for (const name of Object.keys(scope.bindings)) {
- const binding = scope.bindings[name];
- if (binding.kind !== "const") continue;
-
- for (const violation of binding.constantViolations) {
- const readOnlyError = state.addHelper("readOnlyError");
-
- const throwNode = _core().types.callExpression(readOnlyError, [_core().types.stringLiteral(name)]);
-
- if (violation.isAssignmentExpression()) {
- violation.get("right").replaceWith(_core().types.sequenceExpression([throwNode, violation.get("right").node]));
- } else if (violation.isUpdateExpression()) {
- violation.replaceWith(_core().types.sequenceExpression([throwNode, violation.node]));
- } else if (violation.isForXStatement()) {
- violation.ensureBlock();
- violation.node.body.body.unshift(_core().types.expressionStatement(throwNode));
- }
- }
- }
- }
-
- updateScopeInfo(wrappedInClosure) {
- const scope = this.scope;
- const parentScope = scope.getFunctionParent() || scope.getProgramParent();
- const letRefs = this.letReferences;
-
- for (const key of Object.keys(letRefs)) {
- const ref = letRefs[key];
- const binding = scope.getBinding(ref.name);
- if (!binding) continue;
-
- if (binding.kind === "let" || binding.kind === "const") {
- binding.kind = "var";
-
- if (wrappedInClosure) {
- scope.removeBinding(ref.name);
- } else {
- scope.moveBindingTo(ref.name, parentScope);
- }
- }
- }
- }
-
- remap() {
- const letRefs = this.letReferences;
- const outsideLetRefs = this.outsideLetReferences;
- const scope = this.scope;
- const blockPathScope = this.blockPath.scope;
-
- for (const key of Object.keys(letRefs)) {
- const ref = letRefs[key];
-
- if (scope.parentHasBinding(key) || scope.hasGlobal(key)) {
- if (scope.hasOwnBinding(key)) {
- scope.rename(ref.name);
- }
-
- if (blockPathScope.hasOwnBinding(key)) {
- blockPathScope.rename(ref.name);
- }
- }
- }
-
- for (const key of Object.keys(outsideLetRefs)) {
- const ref = letRefs[key];
-
- if (isInLoop(this.blockPath) && blockPathScope.hasOwnBinding(key)) {
- blockPathScope.rename(ref.name);
- }
- }
- }
-
- wrapClosure() {
- if (this.throwIfClosureRequired) {
- throw this.blockPath.buildCodeFrameError("Compiling let/const in this block would add a closure " + "(throwIfClosureRequired).");
- }
-
- const block = this.block;
- const outsideRefs = this.outsideLetReferences;
-
- if (this.loop) {
- for (const name of Object.keys(outsideRefs)) {
- const id = outsideRefs[name];
-
- if (this.scope.hasGlobal(id.name) || this.scope.parentHasBinding(id.name)) {
- delete outsideRefs[id.name];
- delete this.letReferences[id.name];
- this.scope.rename(id.name);
- this.letReferences[id.name] = id;
- outsideRefs[id.name] = id;
- }
- }
- }
-
- this.has = this.checkLoop();
- this.hoistVarDeclarations();
- const args = (0, _values().default)(outsideRefs).map(id => _core().types.cloneNode(id));
- const params = args.map(id => _core().types.cloneNode(id));
- const isSwitch = this.blockPath.isSwitchStatement();
-
- const fn = _core().types.functionExpression(null, params, _core().types.blockStatement(isSwitch ? [block] : block.body));
-
- this.addContinuations(fn);
-
- let call = _core().types.callExpression(_core().types.nullLiteral(), args);
-
- let basePath = ".callee";
-
- const hasYield = _core().traverse.hasType(fn.body, "YieldExpression", _core().types.FUNCTION_TYPES);
-
- if (hasYield) {
- fn.generator = true;
- call = _core().types.yieldExpression(call, true);
- basePath = ".argument" + basePath;
- }
-
- const hasAsync = _core().traverse.hasType(fn.body, "AwaitExpression", _core().types.FUNCTION_TYPES);
-
- if (hasAsync) {
- fn.async = true;
- call = _core().types.awaitExpression(call);
- basePath = ".argument" + basePath;
- }
-
- let placeholderPath;
- let index;
-
- if (this.has.hasReturn || this.has.hasBreakContinue) {
- const ret = this.scope.generateUid("ret");
- this.body.push(_core().types.variableDeclaration("var", [_core().types.variableDeclarator(_core().types.identifier(ret), call)]));
- placeholderPath = "declarations.0.init" + basePath;
- index = this.body.length - 1;
- this.buildHas(ret);
- } else {
- this.body.push(_core().types.expressionStatement(call));
- placeholderPath = "expression" + basePath;
- index = this.body.length - 1;
- }
-
- let callPath;
-
- if (isSwitch) {
- const {
- parentPath,
- listKey,
- key
- } = this.blockPath;
- this.blockPath.replaceWithMultiple(this.body);
- callPath = parentPath.get(listKey)[key + index];
- } else {
- block.body = this.body;
- callPath = this.blockPath.get("body")[index];
- }
-
- const placeholder = callPath.get(placeholderPath);
- let fnPath;
-
- if (this.loop) {
- const loopId = this.scope.generateUid("loop");
- const p = this.loopPath.insertBefore(_core().types.variableDeclaration("var", [_core().types.variableDeclarator(_core().types.identifier(loopId), fn)]));
- placeholder.replaceWith(_core().types.identifier(loopId));
- fnPath = p[0].get("declarations.0.init");
- } else {
- placeholder.replaceWith(fn);
- fnPath = placeholder;
- }
-
- fnPath.unwrapFunctionEnvironment();
- }
-
- addContinuations(fn) {
- const state = {
- reassignments: {},
- returnStatements: [],
- outsideReferences: this.outsideLetReferences
- };
- this.scope.traverse(fn, continuationVisitor, state);
-
- for (let i = 0; i < fn.params.length; i++) {
- const param = fn.params[i];
- if (!state.reassignments[param.name]) continue;
- const paramName = param.name;
- const newParamName = this.scope.generateUid(param.name);
- fn.params[i] = _core().types.identifier(newParamName);
- this.scope.rename(paramName, newParamName, fn);
- state.returnStatements.forEach(returnStatement => {
- returnStatement.insertBefore(_core().types.expressionStatement(_core().types.assignmentExpression("=", _core().types.identifier(paramName), _core().types.identifier(newParamName))));
- });
- fn.body.body.push(_core().types.expressionStatement(_core().types.assignmentExpression("=", _core().types.identifier(paramName), _core().types.identifier(newParamName))));
- }
- }
-
- getLetReferences() {
- const block = this.block;
- let declarators = [];
-
- if (this.loop) {
- const init = this.loop.left || this.loop.init;
-
- if (isBlockScoped(init)) {
- declarators.push(init);
- (0, _extend().default)(this.outsideLetReferences, _core().types.getBindingIdentifiers(init));
- }
- }
-
- const addDeclarationsFromChild = (path, node) => {
- node = node || path.node;
-
- if (_core().types.isClassDeclaration(node) || _core().types.isFunctionDeclaration(node) || isBlockScoped(node)) {
- if (isBlockScoped(node)) {
- convertBlockScopedToVar(path, node, block, this.scope);
- }
-
- declarators = declarators.concat(node.declarations || node);
- }
-
- if (_core().types.isLabeledStatement(node)) {
- addDeclarationsFromChild(path.get("body"), node.body);
- }
- };
-
- if (block.body) {
- const declarPaths = this.blockPath.get("body");
-
- for (let i = 0; i < block.body.length; i++) {
- addDeclarationsFromChild(declarPaths[i]);
- }
- }
-
- if (block.cases) {
- const declarPaths = this.blockPath.get("cases");
-
- for (let i = 0; i < block.cases.length; i++) {
- const consequents = block.cases[i].consequent;
-
- for (let j = 0; j < consequents.length; j++) {
- const declar = consequents[j];
- addDeclarationsFromChild(declarPaths[i], declar);
- }
- }
- }
-
- for (let i = 0; i < declarators.length; i++) {
- const declar = declarators[i];
-
- const keys = _core().types.getBindingIdentifiers(declar, false, true);
-
- (0, _extend().default)(this.letReferences, keys);
- this.hasLetReferences = true;
- }
-
- if (!this.hasLetReferences) return;
- const state = {
- letReferences: this.letReferences,
- closurify: false,
- loopDepth: 0,
- tdzEnabled: this.tdzEnabled,
- addHelper: name => this.state.addHelper(name)
- };
-
- if (isInLoop(this.blockPath)) {
- state.loopDepth++;
- }
-
- this.blockPath.traverse(letReferenceBlockVisitor, state);
- return state.closurify;
- }
-
- checkLoop() {
- const state = {
- hasBreakContinue: false,
- ignoreLabeless: false,
- inSwitchCase: false,
- innerLabels: [],
- hasReturn: false,
- isLoop: !!this.loop,
- map: {},
- LOOP_IGNORE: Symbol()
- };
- this.blockPath.traverse(loopLabelVisitor, state);
- this.blockPath.traverse(loopVisitor, state);
- return state;
- }
-
- hoistVarDeclarations() {
- this.blockPath.traverse(hoistVarDeclarationsVisitor, this);
- }
-
- pushDeclar(node) {
- const declars = [];
-
- const names = _core().types.getBindingIdentifiers(node);
-
- for (const name of Object.keys(names)) {
- declars.push(_core().types.variableDeclarator(names[name]));
- }
-
- this.body.push(_core().types.variableDeclaration(node.kind, declars));
- const replace = [];
-
- for (let i = 0; i < node.declarations.length; i++) {
- const declar = node.declarations[i];
- if (!declar.init) continue;
-
- const expr = _core().types.assignmentExpression("=", _core().types.cloneNode(declar.id), _core().types.cloneNode(declar.init));
-
- replace.push(_core().types.inherits(expr, declar));
- }
-
- return replace;
- }
-
- buildHas(ret) {
- const body = this.body;
- let retCheck;
- const has = this.has;
- const cases = [];
-
- if (has.hasReturn) {
- retCheck = buildRetCheck({
- RETURN: _core().types.identifier(ret)
- });
- }
-
- if (has.hasBreakContinue) {
- for (const key of Object.keys(has.map)) {
- cases.push(_core().types.switchCase(_core().types.stringLiteral(key), [has.map[key]]));
- }
-
- if (has.hasReturn) {
- cases.push(_core().types.switchCase(null, [retCheck]));
- }
-
- if (cases.length === 1) {
- const single = cases[0];
- body.push(_core().types.ifStatement(_core().types.binaryExpression("===", _core().types.identifier(ret), single.test), single.consequent[0]));
- } else {
- if (this.loop) {
- for (let i = 0; i < cases.length; i++) {
- const caseConsequent = cases[i].consequent[0];
-
- if (_core().types.isBreakStatement(caseConsequent) && !caseConsequent.label) {
- if (!this.loopLabel) {
- this.loopLabel = this.scope.generateUidIdentifier("loop");
- }
-
- caseConsequent.label = _core().types.cloneNode(this.loopLabel);
- }
- }
- }
-
- body.push(_core().types.switchStatement(_core().types.identifier(ret), cases));
- }
- } else {
- if (has.hasReturn) {
- body.push(retCheck);
- }
- }
- }
-
-}
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-transform-block-scoping/lib/tdz.js b/node_modules/@babel/plugin-transform-block-scoping/lib/tdz.js
deleted file mode 100644
index f32cb8f0..00000000
--- a/node_modules/@babel/plugin-transform-block-scoping/lib/tdz.js
+++ /dev/null
@@ -1,100 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.visitor = void 0;
-
-function _core() {
- const data = require("@babel/core");
-
- _core = function () {
- return data;
- };
-
- return data;
-}
-
-function getTDZStatus(refPath, bindingPath) {
- const executionStatus = bindingPath._guessExecutionStatusRelativeTo(refPath);
-
- if (executionStatus === "before") {
- return "outside";
- } else if (executionStatus === "after") {
- return "inside";
- } else {
- return "maybe";
- }
-}
-
-function buildTDZAssert(node, state) {
- return _core().types.callExpression(state.addHelper("temporalRef"), [node, _core().types.stringLiteral(node.name)]);
-}
-
-function isReference(node, scope, state) {
- const declared = state.letReferences[node.name];
- if (!declared) return false;
- return scope.getBindingIdentifier(node.name) === declared;
-}
-
-const visitor = {
- ReferencedIdentifier(path, state) {
- if (!state.tdzEnabled) return;
- const {
- node,
- parent,
- scope
- } = path;
- if (path.parentPath.isFor({
- left: node
- })) return;
- if (!isReference(node, scope, state)) return;
- const bindingPath = scope.getBinding(node.name).path;
- if (bindingPath.isFunctionDeclaration()) return;
- const status = getTDZStatus(path, bindingPath);
- if (status === "outside") return;
-
- if (status === "maybe") {
- const assert = buildTDZAssert(node, state);
- bindingPath.parent._tdzThis = true;
- path.skip();
-
- if (path.parentPath.isUpdateExpression()) {
- if (parent._ignoreBlockScopingTDZ) return;
- path.parentPath.replaceWith(_core().types.sequenceExpression([assert, parent]));
- } else {
- path.replaceWith(assert);
- }
- } else if (status === "inside") {
- path.replaceWith(_core().template.ast`${state.addHelper("tdz")}("${node.name}")`);
- }
- },
-
- AssignmentExpression: {
- exit(path, state) {
- if (!state.tdzEnabled) return;
- const {
- node
- } = path;
- if (node._ignoreBlockScopingTDZ) return;
- const nodes = [];
- const ids = path.getBindingIdentifiers();
-
- for (const name of Object.keys(ids)) {
- const id = ids[name];
-
- if (isReference(id, path.scope, state)) {
- nodes.push(id);
- }
- }
-
- if (nodes.length) {
- node._ignoreBlockScopingTDZ = true;
- nodes.push(node);
- path.replaceWithMultiple(nodes.map(n => _core().types.expressionStatement(n)));
- }
- }
-
- }
-};
-exports.visitor = visitor;
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-transform-block-scoping/package.json b/node_modules/@babel/plugin-transform-block-scoping/package.json
deleted file mode 100644
index b917fc63..00000000
--- a/node_modules/@babel/plugin-transform-block-scoping/package.json
+++ /dev/null
@@ -1,58 +0,0 @@
-{
- "_args": [
- [
- "@babel/plugin-transform-block-scoping@7.6.0",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/plugin-transform-block-scoping@7.6.0",
- "_id": "@babel/plugin-transform-block-scoping@7.6.0",
- "_inBundle": false,
- "_integrity": "sha512-tIt4E23+kw6TgL/edACZwP1OUKrjOTyMrFMLoT5IOFrfMRabCgekjqFd5o6PaAMildBu46oFkekIdMuGkkPEpA==",
- "_location": "/@babel/plugin-transform-block-scoping",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/plugin-transform-block-scoping@7.6.0",
- "name": "@babel/plugin-transform-block-scoping",
- "escapedName": "@babel%2fplugin-transform-block-scoping",
- "scope": "@babel",
- "rawSpec": "7.6.0",
- "saveSpec": null,
- "fetchSpec": "7.6.0"
- },
- "_requiredBy": [
- "/@babel/preset-env"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.6.0.tgz",
- "_spec": "7.6.0",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-plugin-utils": "^7.0.0",
- "lodash": "^4.17.13"
- },
- "description": "Compile ES2015 block scoping (const and let) to ES5",
- "devDependencies": {
- "@babel/core": "^7.6.0",
- "@babel/helper-plugin-test-runner": "^7.0.0"
- },
- "gitHead": "cbd5a26e57758e3f748174ff84aa570e8780e85d",
- "keywords": [
- "babel-plugin"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/plugin-transform-block-scoping",
- "peerDependencies": {
- "@babel/core": "^7.0.0-0"
- },
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-block-scoping"
- },
- "version": "7.6.0"
-}
diff --git a/node_modules/@babel/plugin-transform-classes/LICENSE b/node_modules/@babel/plugin-transform-classes/LICENSE
deleted file mode 100644
index f31575ec..00000000
--- a/node_modules/@babel/plugin-transform-classes/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-present Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/plugin-transform-classes/README.md b/node_modules/@babel/plugin-transform-classes/README.md
deleted file mode 100644
index 34f47af4..00000000
--- a/node_modules/@babel/plugin-transform-classes/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/plugin-transform-classes
-
-> Compile ES2015 classes to ES5
-
-See our website [@babel/plugin-transform-classes](https://babeljs.io/docs/en/next/babel-plugin-transform-classes.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/plugin-transform-classes
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/plugin-transform-classes --dev
-```
diff --git a/node_modules/@babel/plugin-transform-classes/lib/index.js b/node_modules/@babel/plugin-transform-classes/lib/index.js
deleted file mode 100644
index 56bdd273..00000000
--- a/node_modules/@babel/plugin-transform-classes/lib/index.js
+++ /dev/null
@@ -1,126 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _helperPluginUtils() {
- const data = require("@babel/helper-plugin-utils");
-
- _helperPluginUtils = function () {
- return data;
- };
-
- return data;
-}
-
-function _helperAnnotateAsPure() {
- const data = _interopRequireDefault(require("@babel/helper-annotate-as-pure"));
-
- _helperAnnotateAsPure = function () {
- return data;
- };
-
- return data;
-}
-
-function _helperFunctionName() {
- const data = _interopRequireDefault(require("@babel/helper-function-name"));
-
- _helperFunctionName = function () {
- return data;
- };
-
- return data;
-}
-
-function _helperSplitExportDeclaration() {
- const data = _interopRequireDefault(require("@babel/helper-split-export-declaration"));
-
- _helperSplitExportDeclaration = function () {
- return data;
- };
-
- return data;
-}
-
-function _core() {
- const data = require("@babel/core");
-
- _core = function () {
- return data;
- };
-
- return data;
-}
-
-function _globals() {
- const data = _interopRequireDefault(require("globals"));
-
- _globals = function () {
- return data;
- };
-
- return data;
-}
-
-var _transformClass = _interopRequireDefault(require("./transformClass"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-const getBuiltinClasses = category => Object.keys(_globals().default[category]).filter(name => /^[A-Z]/.test(name));
-
-const builtinClasses = new Set([...getBuiltinClasses("builtin"), ...getBuiltinClasses("browser")]);
-
-var _default = (0, _helperPluginUtils().declare)((api, options) => {
- api.assertVersion(7);
- const {
- loose
- } = options;
- const VISITED = Symbol();
- return {
- name: "transform-classes",
- visitor: {
- ExportDefaultDeclaration(path) {
- if (!path.get("declaration").isClassDeclaration()) return;
- (0, _helperSplitExportDeclaration().default)(path);
- },
-
- ClassDeclaration(path) {
- const {
- node
- } = path;
- const ref = node.id || path.scope.generateUidIdentifier("class");
- path.replaceWith(_core().types.variableDeclaration("let", [_core().types.variableDeclarator(ref, _core().types.toExpression(node))]));
- },
-
- ClassExpression(path, state) {
- const {
- node
- } = path;
- if (node[VISITED]) return;
- const inferred = (0, _helperFunctionName().default)(path);
-
- if (inferred && inferred !== node) {
- path.replaceWith(inferred);
- return;
- }
-
- node[VISITED] = true;
- path.replaceWith((0, _transformClass.default)(path, state.file, builtinClasses, loose));
-
- if (path.isCallExpression()) {
- (0, _helperAnnotateAsPure().default)(path);
-
- if (path.get("callee").isArrowFunctionExpression()) {
- path.get("callee").arrowFunctionToExpression();
- }
- }
- }
-
- }
- };
-});
-
-exports.default = _default;
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-transform-classes/lib/transformClass.js b/node_modules/@babel/plugin-transform-classes/lib/transformClass.js
deleted file mode 100644
index 65c98d07..00000000
--- a/node_modules/@babel/plugin-transform-classes/lib/transformClass.js
+++ /dev/null
@@ -1,602 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = transformClass;
-
-function _helperFunctionName() {
- const data = _interopRequireDefault(require("@babel/helper-function-name"));
-
- _helperFunctionName = function () {
- return data;
- };
-
- return data;
-}
-
-function _helperReplaceSupers() {
- const data = _interopRequireWildcard(require("@babel/helper-replace-supers"));
-
- _helperReplaceSupers = function () {
- return data;
- };
-
- return data;
-}
-
-function _helperOptimiseCallExpression() {
- const data = _interopRequireDefault(require("@babel/helper-optimise-call-expression"));
-
- _helperOptimiseCallExpression = function () {
- return data;
- };
-
- return data;
-}
-
-function defineMap() {
- const data = _interopRequireWildcard(require("@babel/helper-define-map"));
-
- defineMap = function () {
- return data;
- };
-
- return data;
-}
-
-function _core() {
- const data = require("@babel/core");
-
- _core = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function buildConstructor(classRef, constructorBody, node) {
- const func = _core().types.functionDeclaration(_core().types.cloneNode(classRef), [], constructorBody);
-
- _core().types.inherits(func, node);
-
- return func;
-}
-
-function transformClass(path, file, builtinClasses, isLoose) {
- const classState = {
- parent: undefined,
- scope: undefined,
- node: undefined,
- path: undefined,
- file: undefined,
- classId: undefined,
- classRef: undefined,
- superName: undefined,
- superReturns: [],
- isDerived: false,
- extendsNative: false,
- construct: undefined,
- constructorBody: undefined,
- userConstructor: undefined,
- userConstructorPath: undefined,
- hasConstructor: false,
- instancePropBody: [],
- instancePropRefs: {},
- staticPropBody: [],
- body: [],
- superThises: [],
- pushedConstructor: false,
- pushedInherits: false,
- protoAlias: null,
- isLoose: false,
- hasInstanceDescriptors: false,
- hasStaticDescriptors: false,
- instanceMutatorMap: {},
- staticMutatorMap: {}
- };
-
- const setState = newState => {
- Object.assign(classState, newState);
- };
-
- const findThisesVisitor = _core().traverse.visitors.merge([_helperReplaceSupers().environmentVisitor, {
- ThisExpression(path) {
- classState.superThises.push(path);
- }
-
- }]);
-
- function pushToMap(node, enumerable, kind = "value", scope) {
- let mutatorMap;
-
- if (node.static) {
- setState({
- hasStaticDescriptors: true
- });
- mutatorMap = classState.staticMutatorMap;
- } else {
- setState({
- hasInstanceDescriptors: true
- });
- mutatorMap = classState.instanceMutatorMap;
- }
-
- const map = defineMap().push(mutatorMap, node, kind, classState.file, scope);
-
- if (enumerable) {
- map.enumerable = _core().types.booleanLiteral(true);
- }
-
- return map;
- }
-
- function maybeCreateConstructor() {
- let hasConstructor = false;
- const paths = classState.path.get("body.body");
-
- for (const path of paths) {
- hasConstructor = path.equals("kind", "constructor");
- if (hasConstructor) break;
- }
-
- if (hasConstructor) return;
- let params, body;
-
- if (classState.isDerived) {
- const constructor = _core().template.expression.ast`
- (function () {
- super(...arguments);
- })
- `;
- params = constructor.params;
- body = constructor.body;
- } else {
- params = [];
- body = _core().types.blockStatement([]);
- }
-
- classState.path.get("body").unshiftContainer("body", _core().types.classMethod("constructor", _core().types.identifier("constructor"), params, body));
- }
-
- function buildBody() {
- maybeCreateConstructor();
- pushBody();
- verifyConstructor();
-
- if (classState.userConstructor) {
- const {
- constructorBody,
- userConstructor,
- construct
- } = classState;
- constructorBody.body = constructorBody.body.concat(userConstructor.body.body);
-
- _core().types.inherits(construct, userConstructor);
-
- _core().types.inherits(constructorBody, userConstructor.body);
- }
-
- pushDescriptors();
- }
-
- function pushBody() {
- const classBodyPaths = classState.path.get("body.body");
-
- for (const path of classBodyPaths) {
- const node = path.node;
-
- if (path.isClassProperty()) {
- throw path.buildCodeFrameError("Missing class properties transform.");
- }
-
- if (node.decorators) {
- throw path.buildCodeFrameError("Method has decorators, put the decorator plugin before the classes one.");
- }
-
- if (_core().types.isClassMethod(node)) {
- const isConstructor = node.kind === "constructor";
- const replaceSupers = new (_helperReplaceSupers().default)({
- methodPath: path,
- objectRef: classState.classRef,
- superRef: classState.superName,
- isLoose: classState.isLoose,
- file: classState.file
- });
- replaceSupers.replace();
- const superReturns = [];
- path.traverse(_core().traverse.visitors.merge([_helperReplaceSupers().environmentVisitor, {
- ReturnStatement(path) {
- if (!path.getFunctionParent().isArrowFunctionExpression()) {
- superReturns.push(path);
- }
- }
-
- }]));
-
- if (isConstructor) {
- pushConstructor(superReturns, node, path);
- } else {
- pushMethod(node, path);
- }
- }
- }
- }
-
- function clearDescriptors() {
- setState({
- hasInstanceDescriptors: false,
- hasStaticDescriptors: false,
- instanceMutatorMap: {},
- staticMutatorMap: {}
- });
- }
-
- function pushDescriptors() {
- pushInheritsToBody();
- const {
- body
- } = classState;
- let instanceProps;
- let staticProps;
-
- if (classState.hasInstanceDescriptors) {
- instanceProps = defineMap().toClassObject(classState.instanceMutatorMap);
- }
-
- if (classState.hasStaticDescriptors) {
- staticProps = defineMap().toClassObject(classState.staticMutatorMap);
- }
-
- if (instanceProps || staticProps) {
- if (instanceProps) {
- instanceProps = defineMap().toComputedObjectFromClass(instanceProps);
- }
-
- if (staticProps) {
- staticProps = defineMap().toComputedObjectFromClass(staticProps);
- }
-
- let args = [_core().types.cloneNode(classState.classRef), _core().types.nullLiteral(), _core().types.nullLiteral()];
- if (instanceProps) args[1] = instanceProps;
- if (staticProps) args[2] = staticProps;
- let lastNonNullIndex = 0;
-
- for (let i = 0; i < args.length; i++) {
- if (!_core().types.isNullLiteral(args[i])) lastNonNullIndex = i;
- }
-
- args = args.slice(0, lastNonNullIndex + 1);
- body.push(_core().types.expressionStatement(_core().types.callExpression(classState.file.addHelper("createClass"), args)));
- }
-
- clearDescriptors();
- }
-
- function wrapSuperCall(bareSuper, superRef, thisRef, body) {
- let bareSuperNode = bareSuper.node;
- let call;
-
- if (classState.isLoose) {
- bareSuperNode.arguments.unshift(_core().types.thisExpression());
-
- if (bareSuperNode.arguments.length === 2 && _core().types.isSpreadElement(bareSuperNode.arguments[1]) && _core().types.isIdentifier(bareSuperNode.arguments[1].argument, {
- name: "arguments"
- })) {
- bareSuperNode.arguments[1] = bareSuperNode.arguments[1].argument;
- bareSuperNode.callee = _core().types.memberExpression(_core().types.cloneNode(superRef), _core().types.identifier("apply"));
- } else {
- bareSuperNode.callee = _core().types.memberExpression(_core().types.cloneNode(superRef), _core().types.identifier("call"));
- }
-
- call = _core().types.logicalExpression("||", bareSuperNode, _core().types.thisExpression());
- } else {
- bareSuperNode = (0, _helperOptimiseCallExpression().default)(_core().types.callExpression(classState.file.addHelper("getPrototypeOf"), [_core().types.cloneNode(classState.classRef)]), _core().types.thisExpression(), bareSuperNode.arguments);
- call = _core().types.callExpression(classState.file.addHelper("possibleConstructorReturn"), [_core().types.thisExpression(), bareSuperNode]);
- }
-
- if (bareSuper.parentPath.isExpressionStatement() && bareSuper.parentPath.container === body.node.body && body.node.body.length - 1 === bareSuper.parentPath.key) {
- if (classState.superThises.length) {
- call = _core().types.assignmentExpression("=", thisRef(), call);
- }
-
- bareSuper.parentPath.replaceWith(_core().types.returnStatement(call));
- } else {
- bareSuper.replaceWith(_core().types.assignmentExpression("=", thisRef(), call));
- }
- }
-
- function verifyConstructor() {
- if (!classState.isDerived) return;
- const path = classState.userConstructorPath;
- const body = path.get("body");
- path.traverse(findThisesVisitor);
-
- let thisRef = function () {
- const ref = path.scope.generateDeclaredUidIdentifier("this");
-
- thisRef = () => _core().types.cloneNode(ref);
-
- return ref;
- };
-
- for (const thisPath of classState.superThises) {
- const {
- node,
- parentPath
- } = thisPath;
-
- if (parentPath.isMemberExpression({
- object: node
- })) {
- thisPath.replaceWith(thisRef());
- continue;
- }
-
- thisPath.replaceWith(_core().types.callExpression(classState.file.addHelper("assertThisInitialized"), [thisRef()]));
- }
-
- const bareSupers = new Set();
- path.traverse(_core().traverse.visitors.merge([_helperReplaceSupers().environmentVisitor, {
- Super(path) {
- const {
- node,
- parentPath
- } = path;
-
- if (parentPath.isCallExpression({
- callee: node
- })) {
- bareSupers.add(parentPath);
- }
- }
-
- }]));
- let guaranteedSuperBeforeFinish = !!bareSupers.size;
-
- for (const bareSuper of bareSupers) {
- wrapSuperCall(bareSuper, classState.superName, thisRef, body);
-
- if (guaranteedSuperBeforeFinish) {
- bareSuper.find(function (parentPath) {
- if (parentPath === path) {
- return true;
- }
-
- if (parentPath.isLoop() || parentPath.isConditional() || parentPath.isArrowFunctionExpression()) {
- guaranteedSuperBeforeFinish = false;
- return true;
- }
- });
- }
- }
-
- let wrapReturn;
-
- if (classState.isLoose) {
- wrapReturn = returnArg => {
- const thisExpr = _core().types.callExpression(classState.file.addHelper("assertThisInitialized"), [thisRef()]);
-
- return returnArg ? _core().types.logicalExpression("||", returnArg, thisExpr) : thisExpr;
- };
- } else {
- wrapReturn = returnArg => _core().types.callExpression(classState.file.addHelper("possibleConstructorReturn"), [thisRef()].concat(returnArg || []));
- }
-
- const bodyPaths = body.get("body");
-
- if (!bodyPaths.length || !bodyPaths.pop().isReturnStatement()) {
- body.pushContainer("body", _core().types.returnStatement(guaranteedSuperBeforeFinish ? thisRef() : wrapReturn()));
- }
-
- for (const returnPath of classState.superReturns) {
- returnPath.get("argument").replaceWith(wrapReturn(returnPath.node.argument));
- }
- }
-
- function pushMethod(node, path) {
- const scope = path ? path.scope : classState.scope;
-
- if (node.kind === "method") {
- if (processMethod(node, scope)) return;
- }
-
- pushToMap(node, false, null, scope);
- }
-
- function processMethod(node, scope) {
- if (classState.isLoose && !node.decorators) {
- let {
- classRef
- } = classState;
-
- if (!node.static) {
- insertProtoAliasOnce();
- classRef = classState.protoAlias;
- }
-
- const methodName = _core().types.memberExpression(_core().types.cloneNode(classRef), node.key, node.computed || _core().types.isLiteral(node.key));
-
- let func = _core().types.functionExpression(null, node.params, node.body, node.generator, node.async);
-
- _core().types.inherits(func, node);
-
- const key = _core().types.toComputedKey(node, node.key);
-
- if (_core().types.isStringLiteral(key)) {
- func = (0, _helperFunctionName().default)({
- node: func,
- id: key,
- scope
- });
- }
-
- const expr = _core().types.expressionStatement(_core().types.assignmentExpression("=", methodName, func));
-
- _core().types.inheritsComments(expr, node);
-
- classState.body.push(expr);
- return true;
- }
-
- return false;
- }
-
- function insertProtoAliasOnce() {
- if (classState.protoAlias === null) {
- setState({
- protoAlias: classState.scope.generateUidIdentifier("proto")
- });
-
- const classProto = _core().types.memberExpression(classState.classRef, _core().types.identifier("prototype"));
-
- const protoDeclaration = _core().types.variableDeclaration("var", [_core().types.variableDeclarator(classState.protoAlias, classProto)]);
-
- classState.body.push(protoDeclaration);
- }
- }
-
- function pushConstructor(superReturns, method, path) {
- if (path.scope.hasOwnBinding(classState.classRef.name)) {
- path.scope.rename(classState.classRef.name);
- }
-
- setState({
- userConstructorPath: path,
- userConstructor: method,
- hasConstructor: true,
- superReturns
- });
- const {
- construct
- } = classState;
-
- _core().types.inheritsComments(construct, method);
-
- construct.params = method.params;
-
- _core().types.inherits(construct.body, method.body);
-
- construct.body.directives = method.body.directives;
- pushConstructorToBody();
- }
-
- function pushConstructorToBody() {
- if (classState.pushedConstructor) return;
- classState.pushedConstructor = true;
-
- if (classState.hasInstanceDescriptors || classState.hasStaticDescriptors) {
- pushDescriptors();
- }
-
- classState.body.push(classState.construct);
- pushInheritsToBody();
- }
-
- function pushInheritsToBody() {
- if (!classState.isDerived || classState.pushedInherits) return;
- setState({
- pushedInherits: true
- });
- classState.body.unshift(_core().types.expressionStatement(_core().types.callExpression(classState.file.addHelper(classState.isLoose ? "inheritsLoose" : "inherits"), [_core().types.cloneNode(classState.classRef), _core().types.cloneNode(classState.superName)])));
- }
-
- function setupClosureParamsArgs() {
- const {
- superName
- } = classState;
- const closureParams = [];
- const closureArgs = [];
-
- if (classState.isDerived) {
- const arg = classState.extendsNative ? _core().types.callExpression(classState.file.addHelper("wrapNativeSuper"), [_core().types.cloneNode(superName)]) : _core().types.cloneNode(superName);
- const param = classState.scope.generateUidIdentifierBasedOnNode(superName);
- closureParams.push(param);
- closureArgs.push(arg);
- setState({
- superName: _core().types.cloneNode(param)
- });
- }
-
- return {
- closureParams,
- closureArgs
- };
- }
-
- function classTransformer(path, file, builtinClasses, isLoose) {
- setState({
- parent: path.parent,
- scope: path.scope,
- node: path.node,
- path,
- file,
- isLoose
- });
- setState({
- classId: classState.node.id,
- classRef: classState.node.id ? _core().types.identifier(classState.node.id.name) : classState.scope.generateUidIdentifier("class"),
- superName: classState.node.superClass,
- isDerived: !!classState.node.superClass,
- constructorBody: _core().types.blockStatement([])
- });
- setState({
- extendsNative: classState.isDerived && builtinClasses.has(classState.superName.name) && !classState.scope.hasBinding(classState.superName.name, true)
- });
- const {
- classRef,
- node,
- constructorBody
- } = classState;
- setState({
- construct: buildConstructor(classRef, constructorBody, node)
- });
- let {
- body
- } = classState;
- const {
- closureParams,
- closureArgs
- } = setupClosureParamsArgs();
- buildBody();
-
- if (!classState.isLoose) {
- constructorBody.body.unshift(_core().types.expressionStatement(_core().types.callExpression(classState.file.addHelper("classCallCheck"), [_core().types.thisExpression(), _core().types.cloneNode(classState.classRef)])));
- }
-
- body = body.concat(classState.staticPropBody.map(fn => fn(_core().types.cloneNode(classState.classRef))));
- const isStrict = path.isInStrictMode();
- let constructorOnly = classState.classId && body.length === 1;
-
- if (constructorOnly && !isStrict) {
- for (const param of classState.construct.params) {
- if (!_core().types.isIdentifier(param)) {
- constructorOnly = false;
- break;
- }
- }
- }
-
- const directives = constructorOnly ? body[0].body.directives : [];
-
- if (!isStrict) {
- directives.push(_core().types.directive(_core().types.directiveLiteral("use strict")));
- }
-
- if (constructorOnly) {
- return _core().types.toExpression(body[0]);
- }
-
- body.push(_core().types.returnStatement(_core().types.cloneNode(classState.classRef)));
-
- const container = _core().types.arrowFunctionExpression(closureParams, _core().types.blockStatement(body, directives));
-
- return _core().types.callExpression(container, closureArgs);
- }
-
- return classTransformer(path, file, builtinClasses, isLoose);
-}
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-transform-classes/package.json b/node_modules/@babel/plugin-transform-classes/package.json
deleted file mode 100644
index 89b078da..00000000
--- a/node_modules/@babel/plugin-transform-classes/package.json
+++ /dev/null
@@ -1,64 +0,0 @@
-{
- "_args": [
- [
- "@babel/plugin-transform-classes@7.5.5",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/plugin-transform-classes@7.5.5",
- "_id": "@babel/plugin-transform-classes@7.5.5",
- "_inBundle": false,
- "_integrity": "sha512-U2htCNK/6e9K7jGyJ++1p5XRU+LJjrwtoiVn9SzRlDT2KubcZ11OOwy3s24TjHxPgxNwonCYP7U2K51uVYCMDg==",
- "_location": "/@babel/plugin-transform-classes",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/plugin-transform-classes@7.5.5",
- "name": "@babel/plugin-transform-classes",
- "escapedName": "@babel%2fplugin-transform-classes",
- "scope": "@babel",
- "rawSpec": "7.5.5",
- "saveSpec": null,
- "fetchSpec": "7.5.5"
- },
- "_requiredBy": [
- "/@babel/preset-env"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.5.5.tgz",
- "_spec": "7.5.5",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-annotate-as-pure": "^7.0.0",
- "@babel/helper-define-map": "^7.5.5",
- "@babel/helper-function-name": "^7.1.0",
- "@babel/helper-optimise-call-expression": "^7.0.0",
- "@babel/helper-plugin-utils": "^7.0.0",
- "@babel/helper-replace-supers": "^7.5.5",
- "@babel/helper-split-export-declaration": "^7.4.4",
- "globals": "^11.1.0"
- },
- "description": "Compile ES2015 classes to ES5",
- "devDependencies": {
- "@babel/core": "^7.5.5",
- "@babel/helper-plugin-test-runner": "^7.0.0"
- },
- "gitHead": "0407f034f09381b95e9cabefbf6b176c76485a43",
- "keywords": [
- "babel-plugin"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/plugin-transform-classes",
- "peerDependencies": {
- "@babel/core": "^7.0.0-0"
- },
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-classes"
- },
- "version": "7.5.5"
-}
diff --git a/node_modules/@babel/plugin-transform-computed-properties/LICENSE b/node_modules/@babel/plugin-transform-computed-properties/LICENSE
deleted file mode 100644
index a06ec0e7..00000000
--- a/node_modules/@babel/plugin-transform-computed-properties/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-2018 Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/plugin-transform-computed-properties/README.md b/node_modules/@babel/plugin-transform-computed-properties/README.md
deleted file mode 100644
index e6fd70ab..00000000
--- a/node_modules/@babel/plugin-transform-computed-properties/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/plugin-transform-computed-properties
-
-> Compile ES2015 computed properties to ES5
-
-See our website [@babel/plugin-transform-computed-properties](https://babeljs.io/docs/en/next/babel-plugin-transform-computed-properties.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/plugin-transform-computed-properties
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/plugin-transform-computed-properties --dev
-```
diff --git a/node_modules/@babel/plugin-transform-computed-properties/lib/index.js b/node_modules/@babel/plugin-transform-computed-properties/lib/index.js
deleted file mode 100644
index 07ea0952..00000000
--- a/node_modules/@babel/plugin-transform-computed-properties/lib/index.js
+++ /dev/null
@@ -1,191 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _helperPluginUtils() {
- const data = require("@babel/helper-plugin-utils");
-
- _helperPluginUtils = function () {
- return data;
- };
-
- return data;
-}
-
-function _core() {
- const data = require("@babel/core");
-
- _core = function () {
- return data;
- };
-
- return data;
-}
-
-var _default = (0, _helperPluginUtils().declare)((api, options) => {
- api.assertVersion(7);
- const {
- loose
- } = options;
- const pushComputedProps = loose ? pushComputedPropsLoose : pushComputedPropsSpec;
- const buildMutatorMapAssign = (0, _core().template)(`
- MUTATOR_MAP_REF[KEY] = MUTATOR_MAP_REF[KEY] || {};
- MUTATOR_MAP_REF[KEY].KIND = VALUE;
- `);
-
- function getValue(prop) {
- if (_core().types.isObjectProperty(prop)) {
- return prop.value;
- } else if (_core().types.isObjectMethod(prop)) {
- return _core().types.functionExpression(null, prop.params, prop.body, prop.generator, prop.async);
- }
- }
-
- function pushAssign(objId, prop, body) {
- if (prop.kind === "get" && prop.kind === "set") {
- pushMutatorDefine(objId, prop, body);
- } else {
- body.push(_core().types.expressionStatement(_core().types.assignmentExpression("=", _core().types.memberExpression(_core().types.cloneNode(objId), prop.key, prop.computed || _core().types.isLiteral(prop.key)), getValue(prop))));
- }
- }
-
- function pushMutatorDefine({
- body,
- getMutatorId,
- scope
- }, prop) {
- let key = !prop.computed && _core().types.isIdentifier(prop.key) ? _core().types.stringLiteral(prop.key.name) : prop.key;
- const maybeMemoise = scope.maybeGenerateMemoised(key);
-
- if (maybeMemoise) {
- body.push(_core().types.expressionStatement(_core().types.assignmentExpression("=", maybeMemoise, key)));
- key = maybeMemoise;
- }
-
- body.push(...buildMutatorMapAssign({
- MUTATOR_MAP_REF: getMutatorId(),
- KEY: _core().types.cloneNode(key),
- VALUE: getValue(prop),
- KIND: _core().types.identifier(prop.kind)
- }));
- }
-
- function pushComputedPropsLoose(info) {
- for (const prop of info.computedProps) {
- if (prop.kind === "get" || prop.kind === "set") {
- pushMutatorDefine(info, prop);
- } else {
- pushAssign(_core().types.cloneNode(info.objId), prop, info.body);
- }
- }
- }
-
- function pushComputedPropsSpec(info) {
- const {
- objId,
- body,
- computedProps,
- state
- } = info;
-
- for (const prop of computedProps) {
- const key = _core().types.toComputedKey(prop);
-
- if (prop.kind === "get" || prop.kind === "set") {
- pushMutatorDefine(info, prop);
- } else if (_core().types.isStringLiteral(key, {
- value: "__proto__"
- })) {
- pushAssign(objId, prop, body);
- } else {
- if (computedProps.length === 1) {
- return _core().types.callExpression(state.addHelper("defineProperty"), [info.initPropExpression, key, getValue(prop)]);
- } else {
- body.push(_core().types.expressionStatement(_core().types.callExpression(state.addHelper("defineProperty"), [_core().types.cloneNode(objId), key, getValue(prop)])));
- }
- }
- }
- }
-
- return {
- name: "transform-computed-properties",
- visitor: {
- ObjectExpression: {
- exit(path, state) {
- const {
- node,
- parent,
- scope
- } = path;
- let hasComputed = false;
-
- for (const prop of node.properties) {
- hasComputed = prop.computed === true;
- if (hasComputed) break;
- }
-
- if (!hasComputed) return;
- const initProps = [];
- const computedProps = [];
- let foundComputed = false;
-
- for (const prop of node.properties) {
- if (prop.computed) {
- foundComputed = true;
- }
-
- if (foundComputed) {
- computedProps.push(prop);
- } else {
- initProps.push(prop);
- }
- }
-
- const objId = scope.generateUidIdentifierBasedOnNode(parent);
-
- const initPropExpression = _core().types.objectExpression(initProps);
-
- const body = [];
- body.push(_core().types.variableDeclaration("var", [_core().types.variableDeclarator(objId, initPropExpression)]));
- let mutatorRef;
-
- const getMutatorId = function () {
- if (!mutatorRef) {
- mutatorRef = scope.generateUidIdentifier("mutatorMap");
- body.push(_core().types.variableDeclaration("var", [_core().types.variableDeclarator(mutatorRef, _core().types.objectExpression([]))]));
- }
-
- return _core().types.cloneNode(mutatorRef);
- };
-
- const single = pushComputedProps({
- scope,
- objId,
- body,
- computedProps,
- initPropExpression,
- getMutatorId,
- state
- });
-
- if (mutatorRef) {
- body.push(_core().types.expressionStatement(_core().types.callExpression(state.addHelper("defineEnumerableProperties"), [_core().types.cloneNode(objId), _core().types.cloneNode(mutatorRef)])));
- }
-
- if (single) {
- path.replaceWith(single);
- } else {
- body.push(_core().types.expressionStatement(_core().types.cloneNode(objId)));
- path.replaceWithMultiple(body);
- }
- }
-
- }
- }
- };
-});
-
-exports.default = _default;
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-transform-computed-properties/package.json b/node_modules/@babel/plugin-transform-computed-properties/package.json
deleted file mode 100644
index 411c6568..00000000
--- a/node_modules/@babel/plugin-transform-computed-properties/package.json
+++ /dev/null
@@ -1,56 +0,0 @@
-{
- "_args": [
- [
- "@babel/plugin-transform-computed-properties@7.2.0",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/plugin-transform-computed-properties@7.2.0",
- "_id": "@babel/plugin-transform-computed-properties@7.2.0",
- "_inBundle": false,
- "_integrity": "sha512-kP/drqTxY6Xt3NNpKiMomfgkNn4o7+vKxK2DDKcBG9sHj51vHqMBGy8wbDS/J4lMxnqs153/T3+DmCEAkC5cpA==",
- "_location": "/@babel/plugin-transform-computed-properties",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/plugin-transform-computed-properties@7.2.0",
- "name": "@babel/plugin-transform-computed-properties",
- "escapedName": "@babel%2fplugin-transform-computed-properties",
- "scope": "@babel",
- "rawSpec": "7.2.0",
- "saveSpec": null,
- "fetchSpec": "7.2.0"
- },
- "_requiredBy": [
- "/@babel/preset-env"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.2.0.tgz",
- "_spec": "7.2.0",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-plugin-utils": "^7.0.0"
- },
- "description": "Compile ES2015 computed properties to ES5",
- "devDependencies": {
- "@babel/core": "^7.2.0",
- "@babel/helper-plugin-test-runner": "^7.0.0"
- },
- "keywords": [
- "babel-plugin"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/plugin-transform-computed-properties",
- "peerDependencies": {
- "@babel/core": "^7.0.0-0"
- },
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-computed-properties"
- },
- "version": "7.2.0"
-}
diff --git a/node_modules/@babel/plugin-transform-destructuring/LICENSE b/node_modules/@babel/plugin-transform-destructuring/LICENSE
deleted file mode 100644
index f31575ec..00000000
--- a/node_modules/@babel/plugin-transform-destructuring/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-present Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/plugin-transform-destructuring/README.md b/node_modules/@babel/plugin-transform-destructuring/README.md
deleted file mode 100644
index 4c866eab..00000000
--- a/node_modules/@babel/plugin-transform-destructuring/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/plugin-transform-destructuring
-
-> Compile ES2015 destructuring to ES5
-
-See our website [@babel/plugin-transform-destructuring](https://babeljs.io/docs/en/next/babel-plugin-transform-destructuring.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/plugin-transform-destructuring
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/plugin-transform-destructuring --dev
-```
diff --git a/node_modules/@babel/plugin-transform-destructuring/lib/index.js b/node_modules/@babel/plugin-transform-destructuring/lib/index.js
deleted file mode 100644
index 70e54678..00000000
--- a/node_modules/@babel/plugin-transform-destructuring/lib/index.js
+++ /dev/null
@@ -1,563 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _helperPluginUtils() {
- const data = require("@babel/helper-plugin-utils");
-
- _helperPluginUtils = function () {
- return data;
- };
-
- return data;
-}
-
-function _core() {
- const data = require("@babel/core");
-
- _core = function () {
- return data;
- };
-
- return data;
-}
-
-var _default = (0, _helperPluginUtils().declare)((api, options) => {
- api.assertVersion(7);
- const {
- loose = false,
- useBuiltIns = false
- } = options;
-
- if (typeof loose !== "boolean") {
- throw new Error(`.loose must be a boolean or undefined`);
- }
-
- const arrayOnlySpread = loose;
-
- function getExtendsHelper(file) {
- return useBuiltIns ? _core().types.memberExpression(_core().types.identifier("Object"), _core().types.identifier("assign")) : file.addHelper("extends");
- }
-
- function variableDeclarationHasPattern(node) {
- for (const declar of node.declarations) {
- if (_core().types.isPattern(declar.id)) {
- return true;
- }
- }
-
- return false;
- }
-
- function hasRest(pattern) {
- for (const elem of pattern.elements) {
- if (_core().types.isRestElement(elem)) {
- return true;
- }
- }
-
- return false;
- }
-
- function hasObjectRest(pattern) {
- for (const elem of pattern.properties) {
- if (_core().types.isRestElement(elem)) {
- return true;
- }
- }
-
- return false;
- }
-
- const STOP_TRAVERSAL = {};
-
- const arrayUnpackVisitor = (node, ancestors, state) => {
- if (!ancestors.length) {
- return;
- }
-
- if (_core().types.isIdentifier(node) && _core().types.isReferenced(node, ancestors[ancestors.length - 1]) && state.bindings[node.name]) {
- state.deopt = true;
- throw STOP_TRAVERSAL;
- }
- };
-
- class DestructuringTransformer {
- constructor(opts) {
- this.blockHoist = opts.blockHoist;
- this.operator = opts.operator;
- this.arrays = {};
- this.nodes = opts.nodes || [];
- this.scope = opts.scope;
- this.kind = opts.kind;
- this.arrayOnlySpread = opts.arrayOnlySpread;
- this.addHelper = opts.addHelper;
- }
-
- buildVariableAssignment(id, init) {
- let op = this.operator;
- if (_core().types.isMemberExpression(id)) op = "=";
- let node;
-
- if (op) {
- node = _core().types.expressionStatement(_core().types.assignmentExpression(op, id, _core().types.cloneNode(init) || this.scope.buildUndefinedNode()));
- } else {
- node = _core().types.variableDeclaration(this.kind, [_core().types.variableDeclarator(id, _core().types.cloneNode(init))]);
- }
-
- node._blockHoist = this.blockHoist;
- return node;
- }
-
- buildVariableDeclaration(id, init) {
- const declar = _core().types.variableDeclaration("var", [_core().types.variableDeclarator(_core().types.cloneNode(id), _core().types.cloneNode(init))]);
-
- declar._blockHoist = this.blockHoist;
- return declar;
- }
-
- push(id, _init) {
- const init = _core().types.cloneNode(_init);
-
- if (_core().types.isObjectPattern(id)) {
- this.pushObjectPattern(id, init);
- } else if (_core().types.isArrayPattern(id)) {
- this.pushArrayPattern(id, init);
- } else if (_core().types.isAssignmentPattern(id)) {
- this.pushAssignmentPattern(id, init);
- } else {
- this.nodes.push(this.buildVariableAssignment(id, init));
- }
- }
-
- toArray(node, count) {
- if (this.arrayOnlySpread || _core().types.isIdentifier(node) && this.arrays[node.name]) {
- return node;
- } else {
- return this.scope.toArray(node, count);
- }
- }
-
- pushAssignmentPattern({
- left,
- right
- }, valueRef) {
- const tempId = this.scope.generateUidIdentifierBasedOnNode(valueRef);
- this.nodes.push(this.buildVariableDeclaration(tempId, valueRef));
-
- const tempConditional = _core().types.conditionalExpression(_core().types.binaryExpression("===", _core().types.cloneNode(tempId), this.scope.buildUndefinedNode()), right, _core().types.cloneNode(tempId));
-
- if (_core().types.isPattern(left)) {
- let patternId;
- let node;
-
- if (this.kind === "const") {
- patternId = this.scope.generateUidIdentifier(tempId.name);
- node = this.buildVariableDeclaration(patternId, tempConditional);
- } else {
- patternId = tempId;
- node = _core().types.expressionStatement(_core().types.assignmentExpression("=", _core().types.cloneNode(tempId), tempConditional));
- }
-
- this.nodes.push(node);
- this.push(left, patternId);
- } else {
- this.nodes.push(this.buildVariableAssignment(left, tempConditional));
- }
- }
-
- pushObjectRest(pattern, objRef, spreadProp, spreadPropIndex) {
- const keys = [];
- let allLiteral = true;
-
- for (let i = 0; i < pattern.properties.length; i++) {
- const prop = pattern.properties[i];
- if (i >= spreadPropIndex) break;
- if (_core().types.isRestElement(prop)) continue;
- const key = prop.key;
-
- if (_core().types.isIdentifier(key) && !prop.computed) {
- keys.push(_core().types.stringLiteral(key.name));
- } else if (_core().types.isTemplateLiteral(prop.key)) {
- keys.push(_core().types.cloneNode(prop.key));
- } else if (_core().types.isLiteral(key)) {
- keys.push(_core().types.stringLiteral(String(key.value)));
- } else {
- keys.push(_core().types.cloneNode(key));
- allLiteral = false;
- }
- }
-
- let value;
-
- if (keys.length === 0) {
- value = _core().types.callExpression(getExtendsHelper(this), [_core().types.objectExpression([]), _core().types.cloneNode(objRef)]);
- } else {
- let keyExpression = _core().types.arrayExpression(keys);
-
- if (!allLiteral) {
- keyExpression = _core().types.callExpression(_core().types.memberExpression(keyExpression, _core().types.identifier("map")), [this.addHelper("toPropertyKey")]);
- }
-
- value = _core().types.callExpression(this.addHelper(`objectWithoutProperties${loose ? "Loose" : ""}`), [_core().types.cloneNode(objRef), keyExpression]);
- }
-
- this.nodes.push(this.buildVariableAssignment(spreadProp.argument, value));
- }
-
- pushObjectProperty(prop, propRef) {
- if (_core().types.isLiteral(prop.key)) prop.computed = true;
- const pattern = prop.value;
-
- const objRef = _core().types.memberExpression(_core().types.cloneNode(propRef), prop.key, prop.computed);
-
- if (_core().types.isPattern(pattern)) {
- this.push(pattern, objRef);
- } else {
- this.nodes.push(this.buildVariableAssignment(pattern, objRef));
- }
- }
-
- pushObjectPattern(pattern, objRef) {
- if (!pattern.properties.length) {
- this.nodes.push(_core().types.expressionStatement(_core().types.callExpression(this.addHelper("objectDestructuringEmpty"), [objRef])));
- }
-
- if (pattern.properties.length > 1 && !this.scope.isStatic(objRef)) {
- const temp = this.scope.generateUidIdentifierBasedOnNode(objRef);
- this.nodes.push(this.buildVariableDeclaration(temp, objRef));
- objRef = temp;
- }
-
- if (hasObjectRest(pattern)) {
- let copiedPattern;
-
- for (let i = 0; i < pattern.properties.length; i++) {
- const prop = pattern.properties[i];
-
- if (_core().types.isRestElement(prop)) {
- break;
- }
-
- const key = prop.key;
-
- if (prop.computed && !this.scope.isPure(key)) {
- const name = this.scope.generateUidIdentifierBasedOnNode(key);
- this.nodes.push(this.buildVariableDeclaration(name, key));
-
- if (!copiedPattern) {
- copiedPattern = pattern = Object.assign({}, pattern, {
- properties: pattern.properties.slice()
- });
- }
-
- copiedPattern.properties[i] = Object.assign({}, copiedPattern.properties[i], {
- key: name
- });
- }
- }
- }
-
- for (let i = 0; i < pattern.properties.length; i++) {
- const prop = pattern.properties[i];
-
- if (_core().types.isRestElement(prop)) {
- this.pushObjectRest(pattern, objRef, prop, i);
- } else {
- this.pushObjectProperty(prop, objRef);
- }
- }
- }
-
- canUnpackArrayPattern(pattern, arr) {
- if (!_core().types.isArrayExpression(arr)) return false;
- if (pattern.elements.length > arr.elements.length) return;
-
- if (pattern.elements.length < arr.elements.length && !hasRest(pattern)) {
- return false;
- }
-
- for (const elem of pattern.elements) {
- if (!elem) return false;
- if (_core().types.isMemberExpression(elem)) return false;
- }
-
- for (const elem of arr.elements) {
- if (_core().types.isSpreadElement(elem)) return false;
- if (_core().types.isCallExpression(elem)) return false;
- if (_core().types.isMemberExpression(elem)) return false;
- }
-
- const bindings = _core().types.getBindingIdentifiers(pattern);
-
- const state = {
- deopt: false,
- bindings
- };
-
- try {
- _core().types.traverse(arr, arrayUnpackVisitor, state);
- } catch (e) {
- if (e !== STOP_TRAVERSAL) throw e;
- }
-
- return !state.deopt;
- }
-
- pushUnpackedArrayPattern(pattern, arr) {
- for (let i = 0; i < pattern.elements.length; i++) {
- const elem = pattern.elements[i];
-
- if (_core().types.isRestElement(elem)) {
- this.push(elem.argument, _core().types.arrayExpression(arr.elements.slice(i)));
- } else {
- this.push(elem, arr.elements[i]);
- }
- }
- }
-
- pushArrayPattern(pattern, arrayRef) {
- if (!pattern.elements) return;
-
- if (this.canUnpackArrayPattern(pattern, arrayRef)) {
- return this.pushUnpackedArrayPattern(pattern, arrayRef);
- }
-
- const count = !hasRest(pattern) && pattern.elements.length;
- const toArray = this.toArray(arrayRef, count);
-
- if (_core().types.isIdentifier(toArray)) {
- arrayRef = toArray;
- } else {
- arrayRef = this.scope.generateUidIdentifierBasedOnNode(arrayRef);
- this.arrays[arrayRef.name] = true;
- this.nodes.push(this.buildVariableDeclaration(arrayRef, toArray));
- }
-
- for (let i = 0; i < pattern.elements.length; i++) {
- let elem = pattern.elements[i];
- if (!elem) continue;
- let elemRef;
-
- if (_core().types.isRestElement(elem)) {
- elemRef = this.toArray(arrayRef);
- elemRef = _core().types.callExpression(_core().types.memberExpression(elemRef, _core().types.identifier("slice")), [_core().types.numericLiteral(i)]);
- elem = elem.argument;
- } else {
- elemRef = _core().types.memberExpression(arrayRef, _core().types.numericLiteral(i), true);
- }
-
- this.push(elem, elemRef);
- }
- }
-
- init(pattern, ref) {
- if (!_core().types.isArrayExpression(ref) && !_core().types.isMemberExpression(ref)) {
- const memo = this.scope.maybeGenerateMemoised(ref, true);
-
- if (memo) {
- this.nodes.push(this.buildVariableDeclaration(memo, _core().types.cloneNode(ref)));
- ref = memo;
- }
- }
-
- this.push(pattern, ref);
- return this.nodes;
- }
-
- }
-
- return {
- name: "transform-destructuring",
- visitor: {
- ExportNamedDeclaration(path) {
- const declaration = path.get("declaration");
- if (!declaration.isVariableDeclaration()) return;
- if (!variableDeclarationHasPattern(declaration.node)) return;
- const specifiers = [];
-
- for (const name of Object.keys(path.getOuterBindingIdentifiers(path))) {
- specifiers.push(_core().types.exportSpecifier(_core().types.identifier(name), _core().types.identifier(name)));
- }
-
- path.replaceWith(declaration.node);
- path.insertAfter(_core().types.exportNamedDeclaration(null, specifiers));
- },
-
- ForXStatement(path) {
- const {
- node,
- scope
- } = path;
- const left = node.left;
-
- if (_core().types.isPattern(left)) {
- const temp = scope.generateUidIdentifier("ref");
- node.left = _core().types.variableDeclaration("var", [_core().types.variableDeclarator(temp)]);
- path.ensureBlock();
-
- if (node.body.body.length === 0 && path.isCompletionRecord()) {
- node.body.body.unshift(_core().types.expressionStatement(scope.buildUndefinedNode()));
- }
-
- node.body.body.unshift(_core().types.expressionStatement(_core().types.assignmentExpression("=", left, temp)));
- return;
- }
-
- if (!_core().types.isVariableDeclaration(left)) return;
- const pattern = left.declarations[0].id;
- if (!_core().types.isPattern(pattern)) return;
- const key = scope.generateUidIdentifier("ref");
- node.left = _core().types.variableDeclaration(left.kind, [_core().types.variableDeclarator(key, null)]);
- const nodes = [];
- const destructuring = new DestructuringTransformer({
- kind: left.kind,
- scope: scope,
- nodes: nodes,
- arrayOnlySpread,
- addHelper: name => this.addHelper(name)
- });
- destructuring.init(pattern, key);
- path.ensureBlock();
- const block = node.body;
- block.body = nodes.concat(block.body);
- },
-
- CatchClause({
- node,
- scope
- }) {
- const pattern = node.param;
- if (!_core().types.isPattern(pattern)) return;
- const ref = scope.generateUidIdentifier("ref");
- node.param = ref;
- const nodes = [];
- const destructuring = new DestructuringTransformer({
- kind: "let",
- scope: scope,
- nodes: nodes,
- arrayOnlySpread,
- addHelper: name => this.addHelper(name)
- });
- destructuring.init(pattern, ref);
- node.body.body = nodes.concat(node.body.body);
- },
-
- AssignmentExpression(path) {
- const {
- node,
- scope
- } = path;
- if (!_core().types.isPattern(node.left)) return;
- const nodes = [];
- const destructuring = new DestructuringTransformer({
- operator: node.operator,
- scope: scope,
- nodes: nodes,
- arrayOnlySpread,
- addHelper: name => this.addHelper(name)
- });
- let ref;
-
- if (path.isCompletionRecord() || !path.parentPath.isExpressionStatement()) {
- ref = scope.generateUidIdentifierBasedOnNode(node.right, "ref");
- nodes.push(_core().types.variableDeclaration("var", [_core().types.variableDeclarator(ref, node.right)]));
-
- if (_core().types.isArrayExpression(node.right)) {
- destructuring.arrays[ref.name] = true;
- }
- }
-
- destructuring.init(node.left, ref || node.right);
-
- if (ref) {
- if (path.parentPath.isArrowFunctionExpression()) {
- path.replaceWith(_core().types.blockStatement([]));
- nodes.push(_core().types.returnStatement(_core().types.cloneNode(ref)));
- } else {
- nodes.push(_core().types.expressionStatement(_core().types.cloneNode(ref)));
- }
- }
-
- path.replaceWithMultiple(nodes);
- },
-
- VariableDeclaration(path) {
- const {
- node,
- scope,
- parent
- } = path;
- if (_core().types.isForXStatement(parent)) return;
- if (!parent || !path.container) return;
- if (!variableDeclarationHasPattern(node)) return;
- const nodeKind = node.kind;
- const nodes = [];
- let declar;
-
- for (let i = 0; i < node.declarations.length; i++) {
- declar = node.declarations[i];
- const patternId = declar.init;
- const pattern = declar.id;
- const destructuring = new DestructuringTransformer({
- blockHoist: node._blockHoist,
- nodes: nodes,
- scope: scope,
- kind: node.kind,
- arrayOnlySpread,
- addHelper: name => this.addHelper(name)
- });
-
- if (_core().types.isPattern(pattern)) {
- destructuring.init(pattern, patternId);
-
- if (+i !== node.declarations.length - 1) {
- _core().types.inherits(nodes[nodes.length - 1], declar);
- }
- } else {
- nodes.push(_core().types.inherits(destructuring.buildVariableAssignment(declar.id, _core().types.cloneNode(declar.init)), declar));
- }
- }
-
- let tail = null;
- const nodesOut = [];
-
- for (const node of nodes) {
- if (tail !== null && _core().types.isVariableDeclaration(node)) {
- tail.declarations.push(...node.declarations);
- } else {
- node.kind = nodeKind;
- nodesOut.push(node);
- tail = _core().types.isVariableDeclaration(node) ? node : null;
- }
- }
-
- for (const nodeOut of nodesOut) {
- if (!nodeOut.declarations) continue;
-
- for (const declaration of nodeOut.declarations) {
- const {
- name
- } = declaration.id;
-
- if (scope.bindings[name]) {
- scope.bindings[name].kind = nodeOut.kind;
- }
- }
- }
-
- if (nodesOut.length === 1) {
- path.replaceWith(nodesOut[0]);
- } else {
- path.replaceWithMultiple(nodesOut);
- }
- }
-
- }
- };
-});
-
-exports.default = _default;
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-transform-destructuring/package.json b/node_modules/@babel/plugin-transform-destructuring/package.json
deleted file mode 100644
index 8f8508f7..00000000
--- a/node_modules/@babel/plugin-transform-destructuring/package.json
+++ /dev/null
@@ -1,57 +0,0 @@
-{
- "_args": [
- [
- "@babel/plugin-transform-destructuring@7.6.0",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/plugin-transform-destructuring@7.6.0",
- "_id": "@babel/plugin-transform-destructuring@7.6.0",
- "_inBundle": false,
- "_integrity": "sha512-2bGIS5P1v4+sWTCnKNDZDxbGvEqi0ijeqM/YqHtVGrvG2y0ySgnEEhXErvE9dA0bnIzY9bIzdFK0jFA46ASIIQ==",
- "_location": "/@babel/plugin-transform-destructuring",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/plugin-transform-destructuring@7.6.0",
- "name": "@babel/plugin-transform-destructuring",
- "escapedName": "@babel%2fplugin-transform-destructuring",
- "scope": "@babel",
- "rawSpec": "7.6.0",
- "saveSpec": null,
- "fetchSpec": "7.6.0"
- },
- "_requiredBy": [
- "/@babel/preset-env"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.6.0.tgz",
- "_spec": "7.6.0",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-plugin-utils": "^7.0.0"
- },
- "description": "Compile ES2015 destructuring to ES5",
- "devDependencies": {
- "@babel/core": "^7.6.0",
- "@babel/helper-plugin-test-runner": "^7.0.0"
- },
- "gitHead": "cbd5a26e57758e3f748174ff84aa570e8780e85d",
- "keywords": [
- "babel-plugin"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/plugin-transform-destructuring",
- "peerDependencies": {
- "@babel/core": "^7.0.0-0"
- },
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-destructuring"
- },
- "version": "7.6.0"
-}
diff --git a/node_modules/@babel/plugin-transform-dotall-regex/LICENSE b/node_modules/@babel/plugin-transform-dotall-regex/LICENSE
deleted file mode 100644
index f31575ec..00000000
--- a/node_modules/@babel/plugin-transform-dotall-regex/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-present Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/plugin-transform-dotall-regex/README.md b/node_modules/@babel/plugin-transform-dotall-regex/README.md
deleted file mode 100644
index 6c501d91..00000000
--- a/node_modules/@babel/plugin-transform-dotall-regex/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/plugin-transform-dotall-regex
-
-> Compile regular expressions using the `s` (`dotAll`) flag to ES5.
-
-See our website [@babel/plugin-transform-dotall-regex](https://babeljs.io/docs/en/next/babel-plugin-transform-dotall-regex.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/plugin-transform-dotall-regex
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/plugin-transform-dotall-regex --dev
-```
diff --git a/node_modules/@babel/plugin-transform-dotall-regex/lib/index.js b/node_modules/@babel/plugin-transform-dotall-regex/lib/index.js
deleted file mode 100644
index d0f6d163..00000000
--- a/node_modules/@babel/plugin-transform-dotall-regex/lib/index.js
+++ /dev/null
@@ -1,65 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _helperPluginUtils() {
- const data = require("@babel/helper-plugin-utils");
-
- _helperPluginUtils = function () {
- return data;
- };
-
- return data;
-}
-
-function _regexpuCore() {
- const data = _interopRequireDefault(require("regexpu-core"));
-
- _regexpuCore = function () {
- return data;
- };
-
- return data;
-}
-
-function regex() {
- const data = _interopRequireWildcard(require("@babel/helper-regex"));
-
- regex = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-var _default = (0, _helperPluginUtils().declare)(api => {
- api.assertVersion(7);
- return {
- name: "transform-dotall-regex",
- visitor: {
- RegExpLiteral(path) {
- const node = path.node;
-
- if (!regex().is(node, "s")) {
- return;
- }
-
- node.pattern = (0, _regexpuCore().default)(node.pattern, node.flags, {
- dotAllFlag: true,
- useUnicodeFlag: regex().is(node, "u")
- });
- regex().pullFlag(node, "s");
- }
-
- }
- };
-});
-
-exports.default = _default;
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-transform-dotall-regex/package.json b/node_modules/@babel/plugin-transform-dotall-regex/package.json
deleted file mode 100644
index 8274567a..00000000
--- a/node_modules/@babel/plugin-transform-dotall-regex/package.json
+++ /dev/null
@@ -1,70 +0,0 @@
-{
- "_args": [
- [
- "@babel/plugin-transform-dotall-regex@7.4.4",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/plugin-transform-dotall-regex@7.4.4",
- "_id": "@babel/plugin-transform-dotall-regex@7.4.4",
- "_inBundle": false,
- "_integrity": "sha512-P05YEhRc2h53lZDjRPk/OektxCVevFzZs2Gfjd545Wde3k+yFDbXORgl2e0xpbq8mLcKJ7Idss4fAg0zORN/zg==",
- "_location": "/@babel/plugin-transform-dotall-regex",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/plugin-transform-dotall-regex@7.4.4",
- "name": "@babel/plugin-transform-dotall-regex",
- "escapedName": "@babel%2fplugin-transform-dotall-regex",
- "scope": "@babel",
- "rawSpec": "7.4.4",
- "saveSpec": null,
- "fetchSpec": "7.4.4"
- },
- "_requiredBy": [
- "/@babel/preset-env"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.4.4.tgz",
- "_spec": "7.4.4",
- "_where": "E:\\python\\setup-php",
- "bugs": {
- "url": "https://github.com/babel/babel/issues"
- },
- "dependencies": {
- "@babel/helper-plugin-utils": "^7.0.0",
- "@babel/helper-regex": "^7.4.4",
- "regexpu-core": "^4.5.4"
- },
- "description": "Compile regular expressions using the `s` (`dotAll`) flag to ES5.",
- "devDependencies": {
- "@babel/core": "^7.4.4",
- "@babel/helper-plugin-test-runner": "^7.0.0"
- },
- "engines": {
- "node": ">=4"
- },
- "gitHead": "2c88694388831b1e5b88e4bbed6781eb2be1edba",
- "homepage": "https://babeljs.io/",
- "keywords": [
- "babel-plugin",
- "regex",
- "regexp",
- "regular expressions",
- "dotall"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/plugin-transform-dotall-regex",
- "peerDependencies": {
- "@babel/core": "^7.0.0-0"
- },
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-dotall-regex"
- },
- "version": "7.4.4"
-}
diff --git a/node_modules/@babel/plugin-transform-dotall-regex/src/index.js b/node_modules/@babel/plugin-transform-dotall-regex/src/index.js
deleted file mode 100644
index af11660e..00000000
--- a/node_modules/@babel/plugin-transform-dotall-regex/src/index.js
+++ /dev/null
@@ -1,25 +0,0 @@
-import { declare } from "@babel/helper-plugin-utils";
-import rewritePattern from "regexpu-core";
-import * as regex from "@babel/helper-regex";
-
-export default declare(api => {
- api.assertVersion(7);
-
- return {
- name: "transform-dotall-regex",
-
- visitor: {
- RegExpLiteral(path) {
- const node = path.node;
- if (!regex.is(node, "s")) {
- return;
- }
- node.pattern = rewritePattern(node.pattern, node.flags, {
- dotAllFlag: true,
- useUnicodeFlag: regex.is(node, "u"),
- });
- regex.pullFlag(node, "s");
- },
- },
- };
-});
diff --git a/node_modules/@babel/plugin-transform-dotall-regex/test/fixtures/dotall-regex/options.json b/node_modules/@babel/plugin-transform-dotall-regex/test/fixtures/dotall-regex/options.json
deleted file mode 100644
index 971351e1..00000000
--- a/node_modules/@babel/plugin-transform-dotall-regex/test/fixtures/dotall-regex/options.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "plugins": ["transform-dotall-regex"]
-}
diff --git a/node_modules/@babel/plugin-transform-dotall-regex/test/fixtures/dotall-regex/simple/input.js b/node_modules/@babel/plugin-transform-dotall-regex/test/fixtures/dotall-regex/simple/input.js
deleted file mode 100644
index bf124396..00000000
--- a/node_modules/@babel/plugin-transform-dotall-regex/test/fixtures/dotall-regex/simple/input.js
+++ /dev/null
@@ -1,2 +0,0 @@
-var a = /./;
-var b = /./s;
diff --git a/node_modules/@babel/plugin-transform-dotall-regex/test/fixtures/dotall-regex/simple/output.js b/node_modules/@babel/plugin-transform-dotall-regex/test/fixtures/dotall-regex/simple/output.js
deleted file mode 100644
index dec34325..00000000
--- a/node_modules/@babel/plugin-transform-dotall-regex/test/fixtures/dotall-regex/simple/output.js
+++ /dev/null
@@ -1,2 +0,0 @@
-var a = /./;
-var b = /[\0-\uFFFF]/;
diff --git a/node_modules/@babel/plugin-transform-dotall-regex/test/fixtures/dotall-regex/with-unicode-flag/input.js b/node_modules/@babel/plugin-transform-dotall-regex/test/fixtures/dotall-regex/with-unicode-flag/input.js
deleted file mode 100644
index 9ca7da3e..00000000
--- a/node_modules/@babel/plugin-transform-dotall-regex/test/fixtures/dotall-regex/with-unicode-flag/input.js
+++ /dev/null
@@ -1,2 +0,0 @@
-var a = /./u;
-var b = /./su;
diff --git a/node_modules/@babel/plugin-transform-dotall-regex/test/fixtures/dotall-regex/with-unicode-flag/output.js b/node_modules/@babel/plugin-transform-dotall-regex/test/fixtures/dotall-regex/with-unicode-flag/output.js
deleted file mode 100644
index bb1b222a..00000000
--- a/node_modules/@babel/plugin-transform-dotall-regex/test/fixtures/dotall-regex/with-unicode-flag/output.js
+++ /dev/null
@@ -1,2 +0,0 @@
-var a = /./u;
-var b = /[\0-\u{10FFFF}]/u;
diff --git a/node_modules/@babel/plugin-transform-dotall-regex/test/index.js b/node_modules/@babel/plugin-transform-dotall-regex/test/index.js
deleted file mode 100644
index 8c71ab59..00000000
--- a/node_modules/@babel/plugin-transform-dotall-regex/test/index.js
+++ /dev/null
@@ -1,2 +0,0 @@
-import runner from "@babel/helper-plugin-test-runner";
-runner(__dirname);
diff --git a/node_modules/@babel/plugin-transform-duplicate-keys/LICENSE b/node_modules/@babel/plugin-transform-duplicate-keys/LICENSE
deleted file mode 100644
index f31575ec..00000000
--- a/node_modules/@babel/plugin-transform-duplicate-keys/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-present Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/plugin-transform-duplicate-keys/README.md b/node_modules/@babel/plugin-transform-duplicate-keys/README.md
deleted file mode 100644
index 5c4d4f66..00000000
--- a/node_modules/@babel/plugin-transform-duplicate-keys/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/plugin-transform-duplicate-keys
-
-> Compile objects with duplicate keys to valid strict ES5
-
-See our website [@babel/plugin-transform-duplicate-keys](https://babeljs.io/docs/en/next/babel-plugin-transform-duplicate-keys.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/plugin-transform-duplicate-keys
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/plugin-transform-duplicate-keys --dev
-```
diff --git a/node_modules/@babel/plugin-transform-duplicate-keys/lib/index.js b/node_modules/@babel/plugin-transform-duplicate-keys/lib/index.js
deleted file mode 100644
index f5d47fb4..00000000
--- a/node_modules/@babel/plugin-transform-duplicate-keys/lib/index.js
+++ /dev/null
@@ -1,90 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _helperPluginUtils() {
- const data = require("@babel/helper-plugin-utils");
-
- _helperPluginUtils = function () {
- return data;
- };
-
- return data;
-}
-
-function _core() {
- const data = require("@babel/core");
-
- _core = function () {
- return data;
- };
-
- return data;
-}
-
-function getName(key) {
- if (_core().types.isIdentifier(key)) {
- return key.name;
- }
-
- return key.value.toString();
-}
-
-var _default = (0, _helperPluginUtils().declare)(api => {
- api.assertVersion(7);
- return {
- name: "transform-duplicate-keys",
- visitor: {
- ObjectExpression(path) {
- const {
- node
- } = path;
- const plainProps = node.properties.filter(prop => !_core().types.isSpreadElement(prop) && !prop.computed);
- const alreadySeenData = Object.create(null);
- const alreadySeenGetters = Object.create(null);
- const alreadySeenSetters = Object.create(null);
-
- for (const prop of plainProps) {
- const name = getName(prop.key);
- let isDuplicate = false;
-
- switch (prop.kind) {
- case "get":
- if (alreadySeenData[name] || alreadySeenGetters[name]) {
- isDuplicate = true;
- }
-
- alreadySeenGetters[name] = true;
- break;
-
- case "set":
- if (alreadySeenData[name] || alreadySeenSetters[name]) {
- isDuplicate = true;
- }
-
- alreadySeenSetters[name] = true;
- break;
-
- default:
- if (alreadySeenData[name] || alreadySeenGetters[name] || alreadySeenSetters[name]) {
- isDuplicate = true;
- }
-
- alreadySeenData[name] = true;
- }
-
- if (isDuplicate) {
- prop.computed = true;
- prop.key = _core().types.stringLiteral(name);
- }
- }
- }
-
- }
- };
-});
-
-exports.default = _default;
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-transform-duplicate-keys/package.json b/node_modules/@babel/plugin-transform-duplicate-keys/package.json
deleted file mode 100644
index bd368483..00000000
--- a/node_modules/@babel/plugin-transform-duplicate-keys/package.json
+++ /dev/null
@@ -1,57 +0,0 @@
-{
- "_args": [
- [
- "@babel/plugin-transform-duplicate-keys@7.5.0",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/plugin-transform-duplicate-keys@7.5.0",
- "_id": "@babel/plugin-transform-duplicate-keys@7.5.0",
- "_inBundle": false,
- "_integrity": "sha512-igcziksHizyQPlX9gfSjHkE2wmoCH3evvD2qR5w29/Dk0SMKE/eOI7f1HhBdNhR/zxJDqrgpoDTq5YSLH/XMsQ==",
- "_location": "/@babel/plugin-transform-duplicate-keys",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/plugin-transform-duplicate-keys@7.5.0",
- "name": "@babel/plugin-transform-duplicate-keys",
- "escapedName": "@babel%2fplugin-transform-duplicate-keys",
- "scope": "@babel",
- "rawSpec": "7.5.0",
- "saveSpec": null,
- "fetchSpec": "7.5.0"
- },
- "_requiredBy": [
- "/@babel/preset-env"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.5.0.tgz",
- "_spec": "7.5.0",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-plugin-utils": "^7.0.0"
- },
- "description": "Compile objects with duplicate keys to valid strict ES5",
- "devDependencies": {
- "@babel/core": "^7.5.0",
- "@babel/helper-plugin-test-runner": "^7.0.0"
- },
- "gitHead": "49da9a07c81156e997e60146eb001ea77b7044c4",
- "keywords": [
- "babel-plugin"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/plugin-transform-duplicate-keys",
- "peerDependencies": {
- "@babel/core": "^7.0.0-0"
- },
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-duplicate-keys"
- },
- "version": "7.5.0"
-}
diff --git a/node_modules/@babel/plugin-transform-exponentiation-operator/LICENSE b/node_modules/@babel/plugin-transform-exponentiation-operator/LICENSE
deleted file mode 100644
index a06ec0e7..00000000
--- a/node_modules/@babel/plugin-transform-exponentiation-operator/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-2018 Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/plugin-transform-exponentiation-operator/README.md b/node_modules/@babel/plugin-transform-exponentiation-operator/README.md
deleted file mode 100644
index a59cc829..00000000
--- a/node_modules/@babel/plugin-transform-exponentiation-operator/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/plugin-transform-exponentiation-operator
-
-> Compile exponentiation operator to ES5
-
-See our website [@babel/plugin-transform-exponentiation-operator](https://babeljs.io/docs/en/next/babel-plugin-transform-exponentiation-operator.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/plugin-transform-exponentiation-operator
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/plugin-transform-exponentiation-operator --dev
-```
diff --git a/node_modules/@babel/plugin-transform-exponentiation-operator/lib/index.js b/node_modules/@babel/plugin-transform-exponentiation-operator/lib/index.js
deleted file mode 100644
index 25fc55ea..00000000
--- a/node_modules/@babel/plugin-transform-exponentiation-operator/lib/index.js
+++ /dev/null
@@ -1,55 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _helperPluginUtils() {
- const data = require("@babel/helper-plugin-utils");
-
- _helperPluginUtils = function () {
- return data;
- };
-
- return data;
-}
-
-function _helperBuilderBinaryAssignmentOperatorVisitor() {
- const data = _interopRequireDefault(require("@babel/helper-builder-binary-assignment-operator-visitor"));
-
- _helperBuilderBinaryAssignmentOperatorVisitor = function () {
- return data;
- };
-
- return data;
-}
-
-function _core() {
- const data = require("@babel/core");
-
- _core = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-var _default = (0, _helperPluginUtils().declare)(api => {
- api.assertVersion(7);
- return {
- name: "transform-exponentiation-operator",
- visitor: (0, _helperBuilderBinaryAssignmentOperatorVisitor().default)({
- operator: "**",
-
- build(left, right) {
- return _core().types.callExpression(_core().types.memberExpression(_core().types.identifier("Math"), _core().types.identifier("pow")), [left, right]);
- }
-
- })
- };
-});
-
-exports.default = _default;
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-transform-exponentiation-operator/package.json b/node_modules/@babel/plugin-transform-exponentiation-operator/package.json
deleted file mode 100644
index ffdc5a06..00000000
--- a/node_modules/@babel/plugin-transform-exponentiation-operator/package.json
+++ /dev/null
@@ -1,57 +0,0 @@
-{
- "_args": [
- [
- "@babel/plugin-transform-exponentiation-operator@7.2.0",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/plugin-transform-exponentiation-operator@7.2.0",
- "_id": "@babel/plugin-transform-exponentiation-operator@7.2.0",
- "_inBundle": false,
- "_integrity": "sha512-umh4hR6N7mu4Elq9GG8TOu9M0bakvlsREEC+ialrQN6ABS4oDQ69qJv1VtR3uxlKMCQMCvzk7vr17RHKcjx68A==",
- "_location": "/@babel/plugin-transform-exponentiation-operator",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/plugin-transform-exponentiation-operator@7.2.0",
- "name": "@babel/plugin-transform-exponentiation-operator",
- "escapedName": "@babel%2fplugin-transform-exponentiation-operator",
- "scope": "@babel",
- "rawSpec": "7.2.0",
- "saveSpec": null,
- "fetchSpec": "7.2.0"
- },
- "_requiredBy": [
- "/@babel/preset-env"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.2.0.tgz",
- "_spec": "7.2.0",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-builder-binary-assignment-operator-visitor": "^7.1.0",
- "@babel/helper-plugin-utils": "^7.0.0"
- },
- "description": "Compile exponentiation operator to ES5",
- "devDependencies": {
- "@babel/core": "^7.2.0",
- "@babel/helper-plugin-test-runner": "^7.0.0"
- },
- "keywords": [
- "babel-plugin"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/plugin-transform-exponentiation-operator",
- "peerDependencies": {
- "@babel/core": "^7.0.0-0"
- },
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-exponentiation-operator"
- },
- "version": "7.2.0"
-}
diff --git a/node_modules/@babel/plugin-transform-for-of/LICENSE b/node_modules/@babel/plugin-transform-for-of/LICENSE
deleted file mode 100644
index f31575ec..00000000
--- a/node_modules/@babel/plugin-transform-for-of/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-present Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/plugin-transform-for-of/README.md b/node_modules/@babel/plugin-transform-for-of/README.md
deleted file mode 100644
index 6e599cfe..00000000
--- a/node_modules/@babel/plugin-transform-for-of/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/plugin-transform-for-of
-
-> Compile ES2015 for...of to ES5
-
-See our website [@babel/plugin-transform-for-of](https://babeljs.io/docs/en/next/babel-plugin-transform-for-of.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/plugin-transform-for-of
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/plugin-transform-for-of --dev
-```
diff --git a/node_modules/@babel/plugin-transform-for-of/lib/index.js b/node_modules/@babel/plugin-transform-for-of/lib/index.js
deleted file mode 100644
index 85f14655..00000000
--- a/node_modules/@babel/plugin-transform-for-of/lib/index.js
+++ /dev/null
@@ -1,310 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _helperPluginUtils() {
- const data = require("@babel/helper-plugin-utils");
-
- _helperPluginUtils = function () {
- return data;
- };
-
- return data;
-}
-
-function _core() {
- const data = require("@babel/core");
-
- _core = function () {
- return data;
- };
-
- return data;
-}
-
-var _default = (0, _helperPluginUtils().declare)((api, options) => {
- api.assertVersion(7);
- const {
- loose,
- assumeArray
- } = options;
-
- if (loose === true && assumeArray === true) {
- throw new Error(`The loose and assumeArray options cannot be used together in @babel/plugin-transform-for-of`);
- }
-
- if (assumeArray) {
- return {
- name: "transform-for-of",
- visitor: {
- ForOfStatement(path) {
- const {
- scope
- } = path;
- const {
- left,
- right,
- body
- } = path.node;
- const i = scope.generateUidIdentifier("i");
- let array = scope.maybeGenerateMemoised(right, true);
- const inits = [_core().types.variableDeclarator(i, _core().types.numericLiteral(0))];
-
- if (array) {
- inits.push(_core().types.variableDeclarator(array, right));
- } else {
- array = right;
- }
-
- const item = _core().types.memberExpression(_core().types.cloneNode(array), _core().types.cloneNode(i), true);
-
- let assignment;
-
- if (_core().types.isVariableDeclaration(left)) {
- assignment = left;
- assignment.declarations[0].init = item;
- } else {
- assignment = _core().types.expressionStatement(_core().types.assignmentExpression("=", left, item));
- }
-
- const block = _core().types.toBlock(body);
-
- block.body.unshift(assignment);
- path.replaceWith(_core().types.forStatement(_core().types.variableDeclaration("let", inits), _core().types.binaryExpression("<", _core().types.cloneNode(i), _core().types.memberExpression(_core().types.cloneNode(array), _core().types.identifier("length"))), _core().types.updateExpression("++", _core().types.cloneNode(i)), block));
- }
-
- }
- };
- }
-
- const pushComputedProps = loose ? pushComputedPropsLoose : pushComputedPropsSpec;
- const buildForOfArray = (0, _core().template)(`
- for (var KEY = 0, NAME = ARR; KEY < NAME.length; KEY++) BODY;
- `);
- const buildForOfLoose = (0, _core().template)(`
- for (var LOOP_OBJECT = OBJECT,
- IS_ARRAY = Array.isArray(LOOP_OBJECT),
- INDEX = 0,
- LOOP_OBJECT = IS_ARRAY ? LOOP_OBJECT : LOOP_OBJECT[Symbol.iterator]();;) {
- INTERMEDIATE;
- if (IS_ARRAY) {
- if (INDEX >= LOOP_OBJECT.length) break;
- ID = LOOP_OBJECT[INDEX++];
- } else {
- INDEX = LOOP_OBJECT.next();
- if (INDEX.done) break;
- ID = INDEX.value;
- }
- }
- `);
- const buildForOf = (0, _core().template)(`
- var ITERATOR_COMPLETION = true;
- var ITERATOR_HAD_ERROR_KEY = false;
- var ITERATOR_ERROR_KEY = undefined;
- try {
- for (
- var ITERATOR_KEY = OBJECT[Symbol.iterator](), STEP_KEY;
- !(ITERATOR_COMPLETION = (STEP_KEY = ITERATOR_KEY.next()).done);
- ITERATOR_COMPLETION = true
- ) {}
- } catch (err) {
- ITERATOR_HAD_ERROR_KEY = true;
- ITERATOR_ERROR_KEY = err;
- } finally {
- try {
- if (!ITERATOR_COMPLETION && ITERATOR_KEY.return != null) {
- ITERATOR_KEY.return();
- }
- } finally {
- if (ITERATOR_HAD_ERROR_KEY) {
- throw ITERATOR_ERROR_KEY;
- }
- }
- }
- `);
-
- function _ForOfStatementArray(path) {
- const {
- node,
- scope
- } = path;
- const right = scope.generateUidIdentifierBasedOnNode(node.right, "arr");
- const iterationKey = scope.generateUidIdentifier("i");
- let loop = buildForOfArray({
- BODY: node.body,
- KEY: iterationKey,
- NAME: right,
- ARR: node.right
- });
-
- _core().types.inherits(loop, node);
-
- _core().types.ensureBlock(loop);
-
- const iterationValue = _core().types.memberExpression(_core().types.cloneNode(right), _core().types.cloneNode(iterationKey), true);
-
- const left = node.left;
-
- if (_core().types.isVariableDeclaration(left)) {
- left.declarations[0].init = iterationValue;
- loop.body.body.unshift(left);
- } else {
- loop.body.body.unshift(_core().types.expressionStatement(_core().types.assignmentExpression("=", left, iterationValue)));
- }
-
- if (path.parentPath.isLabeledStatement()) {
- loop = _core().types.labeledStatement(path.parentPath.node.label, loop);
- }
-
- return [loop];
- }
-
- function replaceWithArray(path) {
- if (path.parentPath.isLabeledStatement()) {
- path.parentPath.replaceWithMultiple(_ForOfStatementArray(path));
- } else {
- path.replaceWithMultiple(_ForOfStatementArray(path));
- }
- }
-
- return {
- name: "transform-for-of",
- visitor: {
- ForOfStatement(path, state) {
- const right = path.get("right");
-
- if (right.isArrayExpression() || right.isGenericType("Array") || _core().types.isArrayTypeAnnotation(right.getTypeAnnotation())) {
- replaceWithArray(path);
- return;
- }
-
- const {
- node
- } = path;
- const build = pushComputedProps(path, state);
- const declar = build.declar;
- const loop = build.loop;
- const block = loop.body;
- path.ensureBlock();
-
- if (declar) {
- block.body.push(declar);
- }
-
- block.body = block.body.concat(node.body.body);
-
- _core().types.inherits(loop, node);
-
- _core().types.inherits(loop.body, node.body);
-
- if (build.replaceParent) {
- path.parentPath.replaceWithMultiple(build.node);
- path.remove();
- } else {
- path.replaceWithMultiple(build.node);
- }
- }
-
- }
- };
-
- function pushComputedPropsLoose(path, file) {
- const {
- node,
- scope,
- parent
- } = path;
- const {
- left
- } = node;
- let declar, id, intermediate;
-
- if (_core().types.isIdentifier(left) || _core().types.isPattern(left) || _core().types.isMemberExpression(left)) {
- id = left;
- intermediate = null;
- } else if (_core().types.isVariableDeclaration(left)) {
- id = scope.generateUidIdentifier("ref");
- declar = _core().types.variableDeclaration(left.kind, [_core().types.variableDeclarator(left.declarations[0].id, _core().types.identifier(id.name))]);
- intermediate = _core().types.variableDeclaration("var", [_core().types.variableDeclarator(_core().types.identifier(id.name))]);
- } else {
- throw file.buildCodeFrameError(left, `Unknown node type ${left.type} in ForStatement`);
- }
-
- const iteratorKey = scope.generateUidIdentifier("iterator");
- const isArrayKey = scope.generateUidIdentifier("isArray");
- const loop = buildForOfLoose({
- LOOP_OBJECT: iteratorKey,
- IS_ARRAY: isArrayKey,
- OBJECT: node.right,
- INDEX: scope.generateUidIdentifier("i"),
- ID: id,
- INTERMEDIATE: intermediate
- });
-
- const isLabeledParent = _core().types.isLabeledStatement(parent);
-
- let labeled;
-
- if (isLabeledParent) {
- labeled = _core().types.labeledStatement(parent.label, loop);
- }
-
- return {
- replaceParent: isLabeledParent,
- declar: declar,
- node: labeled || loop,
- loop: loop
- };
- }
-
- function pushComputedPropsSpec(path, file) {
- const {
- node,
- scope,
- parent
- } = path;
- const left = node.left;
- let declar;
- const stepKey = scope.generateUid("step");
-
- const stepValue = _core().types.memberExpression(_core().types.identifier(stepKey), _core().types.identifier("value"));
-
- if (_core().types.isIdentifier(left) || _core().types.isPattern(left) || _core().types.isMemberExpression(left)) {
- declar = _core().types.expressionStatement(_core().types.assignmentExpression("=", left, stepValue));
- } else if (_core().types.isVariableDeclaration(left)) {
- declar = _core().types.variableDeclaration(left.kind, [_core().types.variableDeclarator(left.declarations[0].id, stepValue)]);
- } else {
- throw file.buildCodeFrameError(left, `Unknown node type ${left.type} in ForStatement`);
- }
-
- const template = buildForOf({
- ITERATOR_HAD_ERROR_KEY: scope.generateUidIdentifier("didIteratorError"),
- ITERATOR_COMPLETION: scope.generateUidIdentifier("iteratorNormalCompletion"),
- ITERATOR_ERROR_KEY: scope.generateUidIdentifier("iteratorError"),
- ITERATOR_KEY: scope.generateUidIdentifier("iterator"),
- STEP_KEY: _core().types.identifier(stepKey),
- OBJECT: node.right
- });
-
- const isLabeledParent = _core().types.isLabeledStatement(parent);
-
- const tryBody = template[3].block.body;
- const loop = tryBody[0];
-
- if (isLabeledParent) {
- tryBody[0] = _core().types.labeledStatement(parent.label, loop);
- }
-
- return {
- replaceParent: isLabeledParent,
- declar: declar,
- loop: loop,
- node: template
- };
- }
-});
-
-exports.default = _default;
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-transform-for-of/package.json b/node_modules/@babel/plugin-transform-for-of/package.json
deleted file mode 100644
index d4d95e0b..00000000
--- a/node_modules/@babel/plugin-transform-for-of/package.json
+++ /dev/null
@@ -1,57 +0,0 @@
-{
- "_args": [
- [
- "@babel/plugin-transform-for-of@7.4.4",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/plugin-transform-for-of@7.4.4",
- "_id": "@babel/plugin-transform-for-of@7.4.4",
- "_inBundle": false,
- "_integrity": "sha512-9T/5Dlr14Z9TIEXLXkt8T1DU7F24cbhwhMNUziN3hB1AXoZcdzPcTiKGRn/6iOymDqtTKWnr/BtRKN9JwbKtdQ==",
- "_location": "/@babel/plugin-transform-for-of",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/plugin-transform-for-of@7.4.4",
- "name": "@babel/plugin-transform-for-of",
- "escapedName": "@babel%2fplugin-transform-for-of",
- "scope": "@babel",
- "rawSpec": "7.4.4",
- "saveSpec": null,
- "fetchSpec": "7.4.4"
- },
- "_requiredBy": [
- "/@babel/preset-env"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.4.4.tgz",
- "_spec": "7.4.4",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-plugin-utils": "^7.0.0"
- },
- "description": "Compile ES2015 for...of to ES5",
- "devDependencies": {
- "@babel/core": "^7.4.4",
- "@babel/helper-plugin-test-runner": "^7.0.0"
- },
- "gitHead": "2c88694388831b1e5b88e4bbed6781eb2be1edba",
- "keywords": [
- "babel-plugin"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/plugin-transform-for-of",
- "peerDependencies": {
- "@babel/core": "^7.0.0-0"
- },
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-for-of"
- },
- "version": "7.4.4"
-}
diff --git a/node_modules/@babel/plugin-transform-function-name/LICENSE b/node_modules/@babel/plugin-transform-function-name/LICENSE
deleted file mode 100644
index f31575ec..00000000
--- a/node_modules/@babel/plugin-transform-function-name/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-present Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/plugin-transform-function-name/README.md b/node_modules/@babel/plugin-transform-function-name/README.md
deleted file mode 100644
index 11c7f9a8..00000000
--- a/node_modules/@babel/plugin-transform-function-name/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/plugin-transform-function-name
-
-> Apply ES2015 function.name semantics to all functions
-
-See our website [@babel/plugin-transform-function-name](https://babeljs.io/docs/en/next/babel-plugin-transform-function-name.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/plugin-transform-function-name
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/plugin-transform-function-name --dev
-```
diff --git a/node_modules/@babel/plugin-transform-function-name/lib/index.js b/node_modules/@babel/plugin-transform-function-name/lib/index.js
deleted file mode 100644
index f90f11b0..00000000
--- a/node_modules/@babel/plugin-transform-function-name/lib/index.js
+++ /dev/null
@@ -1,58 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _helperPluginUtils() {
- const data = require("@babel/helper-plugin-utils");
-
- _helperPluginUtils = function () {
- return data;
- };
-
- return data;
-}
-
-function _helperFunctionName() {
- const data = _interopRequireDefault(require("@babel/helper-function-name"));
-
- _helperFunctionName = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-var _default = (0, _helperPluginUtils().declare)(api => {
- api.assertVersion(7);
- return {
- name: "transform-function-name",
- visitor: {
- FunctionExpression: {
- exit(path) {
- if (path.key !== "value" && !path.parentPath.isObjectProperty()) {
- const replacement = (0, _helperFunctionName().default)(path);
- if (replacement) path.replaceWith(replacement);
- }
- }
-
- },
-
- ObjectProperty(path) {
- const value = path.get("value");
-
- if (value.isFunction()) {
- const newNode = (0, _helperFunctionName().default)(value);
- if (newNode) value.replaceWith(newNode);
- }
- }
-
- }
- };
-});
-
-exports.default = _default;
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-transform-function-name/package.json b/node_modules/@babel/plugin-transform-function-name/package.json
deleted file mode 100644
index 30bbc687..00000000
--- a/node_modules/@babel/plugin-transform-function-name/package.json
+++ /dev/null
@@ -1,58 +0,0 @@
-{
- "_args": [
- [
- "@babel/plugin-transform-function-name@7.4.4",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/plugin-transform-function-name@7.4.4",
- "_id": "@babel/plugin-transform-function-name@7.4.4",
- "_inBundle": false,
- "_integrity": "sha512-iU9pv7U+2jC9ANQkKeNF6DrPy4GBa4NWQtl6dHB4Pb3izX2JOEvDTFarlNsBj/63ZEzNNIAMs3Qw4fNCcSOXJA==",
- "_location": "/@babel/plugin-transform-function-name",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/plugin-transform-function-name@7.4.4",
- "name": "@babel/plugin-transform-function-name",
- "escapedName": "@babel%2fplugin-transform-function-name",
- "scope": "@babel",
- "rawSpec": "7.4.4",
- "saveSpec": null,
- "fetchSpec": "7.4.4"
- },
- "_requiredBy": [
- "/@babel/preset-env"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.4.4.tgz",
- "_spec": "7.4.4",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-function-name": "^7.1.0",
- "@babel/helper-plugin-utils": "^7.0.0"
- },
- "description": "Apply ES2015 function.name semantics to all functions",
- "devDependencies": {
- "@babel/core": "^7.4.4",
- "@babel/helper-plugin-test-runner": "^7.0.0"
- },
- "gitHead": "2c88694388831b1e5b88e4bbed6781eb2be1edba",
- "keywords": [
- "babel-plugin"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/plugin-transform-function-name",
- "peerDependencies": {
- "@babel/core": "^7.0.0-0"
- },
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-function-name"
- },
- "version": "7.4.4"
-}
diff --git a/node_modules/@babel/plugin-transform-literals/LICENSE b/node_modules/@babel/plugin-transform-literals/LICENSE
deleted file mode 100644
index a06ec0e7..00000000
--- a/node_modules/@babel/plugin-transform-literals/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-2018 Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/plugin-transform-literals/README.md b/node_modules/@babel/plugin-transform-literals/README.md
deleted file mode 100644
index a226d234..00000000
--- a/node_modules/@babel/plugin-transform-literals/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/plugin-transform-literals
-
-> Compile ES2015 unicode string and number literals to ES5
-
-See our website [@babel/plugin-transform-literals](https://babeljs.io/docs/en/next/babel-plugin-transform-literals.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/plugin-transform-literals
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/plugin-transform-literals --dev
-```
diff --git a/node_modules/@babel/plugin-transform-literals/lib/index.js b/node_modules/@babel/plugin-transform-literals/lib/index.js
deleted file mode 100644
index 23c25e44..00000000
--- a/node_modules/@babel/plugin-transform-literals/lib/index.js
+++ /dev/null
@@ -1,43 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _helperPluginUtils() {
- const data = require("@babel/helper-plugin-utils");
-
- _helperPluginUtils = function () {
- return data;
- };
-
- return data;
-}
-
-var _default = (0, _helperPluginUtils().declare)(api => {
- api.assertVersion(7);
- return {
- name: "transform-literals",
- visitor: {
- NumericLiteral({
- node
- }) {
- if (node.extra && /^0[ob]/i.test(node.extra.raw)) {
- node.extra = undefined;
- }
- },
-
- StringLiteral({
- node
- }) {
- if (node.extra && /\\[u]/gi.test(node.extra.raw)) {
- node.extra = undefined;
- }
- }
-
- }
- };
-});
-
-exports.default = _default;
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-transform-literals/package.json b/node_modules/@babel/plugin-transform-literals/package.json
deleted file mode 100644
index efde9b94..00000000
--- a/node_modules/@babel/plugin-transform-literals/package.json
+++ /dev/null
@@ -1,56 +0,0 @@
-{
- "_args": [
- [
- "@babel/plugin-transform-literals@7.2.0",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/plugin-transform-literals@7.2.0",
- "_id": "@babel/plugin-transform-literals@7.2.0",
- "_inBundle": false,
- "_integrity": "sha512-2ThDhm4lI4oV7fVQ6pNNK+sx+c/GM5/SaML0w/r4ZB7sAneD/piDJtwdKlNckXeyGK7wlwg2E2w33C/Hh+VFCg==",
- "_location": "/@babel/plugin-transform-literals",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/plugin-transform-literals@7.2.0",
- "name": "@babel/plugin-transform-literals",
- "escapedName": "@babel%2fplugin-transform-literals",
- "scope": "@babel",
- "rawSpec": "7.2.0",
- "saveSpec": null,
- "fetchSpec": "7.2.0"
- },
- "_requiredBy": [
- "/@babel/preset-env"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.2.0.tgz",
- "_spec": "7.2.0",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-plugin-utils": "^7.0.0"
- },
- "description": "Compile ES2015 unicode string and number literals to ES5",
- "devDependencies": {
- "@babel/core": "^7.2.0",
- "@babel/helper-plugin-test-runner": "^7.0.0"
- },
- "keywords": [
- "babel-plugin"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/plugin-transform-literals",
- "peerDependencies": {
- "@babel/core": "^7.0.0-0"
- },
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-literals"
- },
- "version": "7.2.0"
-}
diff --git a/node_modules/@babel/plugin-transform-member-expression-literals/LICENSE b/node_modules/@babel/plugin-transform-member-expression-literals/LICENSE
deleted file mode 100644
index a06ec0e7..00000000
--- a/node_modules/@babel/plugin-transform-member-expression-literals/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-2018 Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/plugin-transform-member-expression-literals/README.md b/node_modules/@babel/plugin-transform-member-expression-literals/README.md
deleted file mode 100644
index 8e125ebc..00000000
--- a/node_modules/@babel/plugin-transform-member-expression-literals/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/plugin-transform-member-expression-literals
-
-> Ensure that reserved words are quoted in property accesses
-
-See our website [@babel/plugin-transform-member-expression-literals](https://babeljs.io/docs/en/next/babel-plugin-transform-member-expression-literals.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/plugin-transform-member-expression-literals
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/plugin-transform-member-expression-literals --dev
-```
diff --git a/node_modules/@babel/plugin-transform-member-expression-literals/lib/index.js b/node_modules/@babel/plugin-transform-member-expression-literals/lib/index.js
deleted file mode 100644
index e68cad0d..00000000
--- a/node_modules/@babel/plugin-transform-member-expression-literals/lib/index.js
+++ /dev/null
@@ -1,50 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _helperPluginUtils() {
- const data = require("@babel/helper-plugin-utils");
-
- _helperPluginUtils = function () {
- return data;
- };
-
- return data;
-}
-
-function _core() {
- const data = require("@babel/core");
-
- _core = function () {
- return data;
- };
-
- return data;
-}
-
-var _default = (0, _helperPluginUtils().declare)(api => {
- api.assertVersion(7);
- return {
- name: "transform-member-expression-literals",
- visitor: {
- MemberExpression: {
- exit({
- node
- }) {
- const prop = node.property;
-
- if (!node.computed && _core().types.isIdentifier(prop) && !_core().types.isValidES3Identifier(prop.name)) {
- node.property = _core().types.stringLiteral(prop.name);
- node.computed = true;
- }
- }
-
- }
- }
- };
-});
-
-exports.default = _default;
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-transform-member-expression-literals/package.json b/node_modules/@babel/plugin-transform-member-expression-literals/package.json
deleted file mode 100644
index a5644cef..00000000
--- a/node_modules/@babel/plugin-transform-member-expression-literals/package.json
+++ /dev/null
@@ -1,56 +0,0 @@
-{
- "_args": [
- [
- "@babel/plugin-transform-member-expression-literals@7.2.0",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/plugin-transform-member-expression-literals@7.2.0",
- "_id": "@babel/plugin-transform-member-expression-literals@7.2.0",
- "_inBundle": false,
- "_integrity": "sha512-HiU3zKkSU6scTidmnFJ0bMX8hz5ixC93b4MHMiYebmk2lUVNGOboPsqQvx5LzooihijUoLR/v7Nc1rbBtnc7FA==",
- "_location": "/@babel/plugin-transform-member-expression-literals",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/plugin-transform-member-expression-literals@7.2.0",
- "name": "@babel/plugin-transform-member-expression-literals",
- "escapedName": "@babel%2fplugin-transform-member-expression-literals",
- "scope": "@babel",
- "rawSpec": "7.2.0",
- "saveSpec": null,
- "fetchSpec": "7.2.0"
- },
- "_requiredBy": [
- "/@babel/preset-env"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.2.0.tgz",
- "_spec": "7.2.0",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-plugin-utils": "^7.0.0"
- },
- "description": "Ensure that reserved words are quoted in property accesses",
- "devDependencies": {
- "@babel/core": "^7.2.0",
- "@babel/helper-plugin-test-runner": "^7.0.0"
- },
- "keywords": [
- "babel-plugin"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/plugin-transform-member-expression-literals",
- "peerDependencies": {
- "@babel/core": "^7.0.0-0"
- },
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-member-expression-literals"
- },
- "version": "7.2.0"
-}
diff --git a/node_modules/@babel/plugin-transform-modules-amd/LICENSE b/node_modules/@babel/plugin-transform-modules-amd/LICENSE
deleted file mode 100644
index f31575ec..00000000
--- a/node_modules/@babel/plugin-transform-modules-amd/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-present Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/plugin-transform-modules-amd/README.md b/node_modules/@babel/plugin-transform-modules-amd/README.md
deleted file mode 100644
index 10506fef..00000000
--- a/node_modules/@babel/plugin-transform-modules-amd/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/plugin-transform-modules-amd
-
-> This plugin transforms ES2015 modules to AMD
-
-See our website [@babel/plugin-transform-modules-amd](https://babeljs.io/docs/en/next/babel-plugin-transform-modules-amd.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/plugin-transform-modules-amd
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/plugin-transform-modules-amd --dev
-```
diff --git a/node_modules/@babel/plugin-transform-modules-amd/lib/index.js b/node_modules/@babel/plugin-transform-modules-amd/lib/index.js
deleted file mode 100644
index b06f0887..00000000
--- a/node_modules/@babel/plugin-transform-modules-amd/lib/index.js
+++ /dev/null
@@ -1,193 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _helperPluginUtils() {
- const data = require("@babel/helper-plugin-utils");
-
- _helperPluginUtils = function () {
- return data;
- };
-
- return data;
-}
-
-function _helperModuleTransforms() {
- const data = require("@babel/helper-module-transforms");
-
- _helperModuleTransforms = function () {
- return data;
- };
-
- return data;
-}
-
-function _core() {
- const data = require("@babel/core");
-
- _core = function () {
- return data;
- };
-
- return data;
-}
-
-function _utils() {
- const data = require("babel-plugin-dynamic-import-node/utils");
-
- _utils = function () {
- return data;
- };
-
- return data;
-}
-
-const buildWrapper = (0, _core().template)(`
- define(MODULE_NAME, AMD_ARGUMENTS, function(IMPORT_NAMES) {
- })
-`);
-const buildAnonymousWrapper = (0, _core().template)(`
- define(["require"], function(REQUIRE) {
- })
-`);
-
-function injectWrapper(path, wrapper) {
- const {
- body,
- directives
- } = path.node;
- path.node.directives = [];
- path.node.body = [];
- const amdWrapper = path.pushContainer("body", wrapper)[0];
- const amdFactory = amdWrapper.get("expression.arguments").filter(arg => arg.isFunctionExpression())[0].get("body");
- amdFactory.pushContainer("directives", directives);
- amdFactory.pushContainer("body", body);
-}
-
-var _default = (0, _helperPluginUtils().declare)((api, options) => {
- api.assertVersion(7);
- const {
- loose,
- allowTopLevelThis,
- strict,
- strictMode,
- noInterop
- } = options;
- return {
- name: "transform-modules-amd",
-
- pre() {
- this.file.set("@babel/plugin-transform-modules-*", "amd");
- },
-
- visitor: {
- CallExpression(path, state) {
- if (!this.file.has("@babel/plugin-proposal-dynamic-import")) return;
- if (!path.get("callee").isImport()) return;
- let {
- requireId,
- resolveId,
- rejectId
- } = state;
-
- if (!requireId) {
- requireId = path.scope.generateUidIdentifier("require");
- state.requireId = requireId;
- }
-
- if (!resolveId || !rejectId) {
- resolveId = path.scope.generateUidIdentifier("resolve");
- rejectId = path.scope.generateUidIdentifier("reject");
- state.resolveId = resolveId;
- state.rejectId = rejectId;
- }
-
- let result = _core().types.identifier("imported");
-
- if (!noInterop) result = (0, _helperModuleTransforms().wrapInterop)(path, result, "namespace");
- path.replaceWith(_core().template.expression.ast`
- new Promise((${resolveId}, ${rejectId}) =>
- ${requireId}(
- [${(0, _utils().getImportSource)(_core().types, path.node)}],
- imported => ${resolveId}(${result}),
- ${rejectId}
- )
- )`);
- },
-
- Program: {
- exit(path, {
- requireId
- }) {
- if (!(0, _helperModuleTransforms().isModule)(path)) {
- if (requireId) {
- injectWrapper(path, buildAnonymousWrapper({
- REQUIRE: requireId
- }));
- }
-
- return;
- }
-
- const amdArgs = [];
- const importNames = [];
-
- if (requireId) {
- amdArgs.push(_core().types.stringLiteral("require"));
- importNames.push(requireId);
- }
-
- let moduleName = this.getModuleName();
- if (moduleName) moduleName = _core().types.stringLiteral(moduleName);
- const {
- meta,
- headers
- } = (0, _helperModuleTransforms().rewriteModuleStatementsAndPrepareHeader)(path, {
- loose,
- strict,
- strictMode,
- allowTopLevelThis,
- noInterop
- });
-
- if ((0, _helperModuleTransforms().hasExports)(meta)) {
- amdArgs.push(_core().types.stringLiteral("exports"));
- importNames.push(_core().types.identifier(meta.exportName));
- }
-
- for (const [source, metadata] of meta.source) {
- amdArgs.push(_core().types.stringLiteral(source));
- importNames.push(_core().types.identifier(metadata.name));
-
- if (!(0, _helperModuleTransforms().isSideEffectImport)(metadata)) {
- const interop = (0, _helperModuleTransforms().wrapInterop)(path, _core().types.identifier(metadata.name), metadata.interop);
-
- if (interop) {
- const header = _core().types.expressionStatement(_core().types.assignmentExpression("=", _core().types.identifier(metadata.name), interop));
-
- header.loc = metadata.loc;
- headers.push(header);
- }
- }
-
- headers.push(...(0, _helperModuleTransforms().buildNamespaceInitStatements)(meta, metadata, loose));
- }
-
- (0, _helperModuleTransforms().ensureStatementsHoisted)(headers);
- path.unshiftContainer("body", headers);
- injectWrapper(path, buildWrapper({
- MODULE_NAME: moduleName,
- AMD_ARGUMENTS: _core().types.arrayExpression(amdArgs),
- IMPORT_NAMES: importNames
- }));
- }
-
- }
- }
- };
-});
-
-exports.default = _default;
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-transform-modules-amd/package.json b/node_modules/@babel/plugin-transform-modules-amd/package.json
deleted file mode 100644
index 70269e74..00000000
--- a/node_modules/@babel/plugin-transform-modules-amd/package.json
+++ /dev/null
@@ -1,59 +0,0 @@
-{
- "_args": [
- [
- "@babel/plugin-transform-modules-amd@7.5.0",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/plugin-transform-modules-amd@7.5.0",
- "_id": "@babel/plugin-transform-modules-amd@7.5.0",
- "_inBundle": false,
- "_integrity": "sha512-n20UsQMKnWrltocZZm24cRURxQnWIvsABPJlw/fvoy9c6AgHZzoelAIzajDHAQrDpuKFFPPcFGd7ChsYuIUMpg==",
- "_location": "/@babel/plugin-transform-modules-amd",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/plugin-transform-modules-amd@7.5.0",
- "name": "@babel/plugin-transform-modules-amd",
- "escapedName": "@babel%2fplugin-transform-modules-amd",
- "scope": "@babel",
- "rawSpec": "7.5.0",
- "saveSpec": null,
- "fetchSpec": "7.5.0"
- },
- "_requiredBy": [
- "/@babel/preset-env"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.5.0.tgz",
- "_spec": "7.5.0",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-module-transforms": "^7.1.0",
- "@babel/helper-plugin-utils": "^7.0.0",
- "babel-plugin-dynamic-import-node": "^2.3.0"
- },
- "description": "This plugin transforms ES2015 modules to AMD",
- "devDependencies": {
- "@babel/core": "^7.5.0",
- "@babel/helper-plugin-test-runner": "^7.0.0"
- },
- "gitHead": "49da9a07c81156e997e60146eb001ea77b7044c4",
- "keywords": [
- "babel-plugin"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/plugin-transform-modules-amd",
- "peerDependencies": {
- "@babel/core": "^7.0.0-0"
- },
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-modules-amd"
- },
- "version": "7.5.0"
-}
diff --git a/node_modules/@babel/plugin-transform-modules-commonjs/LICENSE b/node_modules/@babel/plugin-transform-modules-commonjs/LICENSE
deleted file mode 100644
index f31575ec..00000000
--- a/node_modules/@babel/plugin-transform-modules-commonjs/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-present Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/plugin-transform-modules-commonjs/README.md b/node_modules/@babel/plugin-transform-modules-commonjs/README.md
deleted file mode 100644
index c6b66c11..00000000
--- a/node_modules/@babel/plugin-transform-modules-commonjs/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/plugin-transform-modules-commonjs
-
-> This plugin transforms ES2015 modules to CommonJS
-
-See our website [@babel/plugin-transform-modules-commonjs](https://babeljs.io/docs/en/next/babel-plugin-transform-modules-commonjs.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/plugin-transform-modules-commonjs
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/plugin-transform-modules-commonjs --dev
-```
diff --git a/node_modules/@babel/plugin-transform-modules-commonjs/lib/index.js b/node_modules/@babel/plugin-transform-modules-commonjs/lib/index.js
deleted file mode 100644
index 70945f1b..00000000
--- a/node_modules/@babel/plugin-transform-modules-commonjs/lib/index.js
+++ /dev/null
@@ -1,236 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _helperPluginUtils() {
- const data = require("@babel/helper-plugin-utils");
-
- _helperPluginUtils = function () {
- return data;
- };
-
- return data;
-}
-
-function _helperModuleTransforms() {
- const data = require("@babel/helper-module-transforms");
-
- _helperModuleTransforms = function () {
- return data;
- };
-
- return data;
-}
-
-function _helperSimpleAccess() {
- const data = _interopRequireDefault(require("@babel/helper-simple-access"));
-
- _helperSimpleAccess = function () {
- return data;
- };
-
- return data;
-}
-
-function _core() {
- const data = require("@babel/core");
-
- _core = function () {
- return data;
- };
-
- return data;
-}
-
-function _utils() {
- const data = require("babel-plugin-dynamic-import-node/utils");
-
- _utils = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-var _default = (0, _helperPluginUtils().declare)((api, options) => {
- api.assertVersion(7);
- const transformImportCall = (0, _utils().createDynamicImportTransform)(api);
- const {
- loose,
- strictNamespace = false,
- mjsStrictNamespace = true,
- allowTopLevelThis,
- strict,
- strictMode,
- noInterop,
- lazy = false,
- allowCommonJSExports = true
- } = options;
-
- if (typeof lazy !== "boolean" && typeof lazy !== "function" && (!Array.isArray(lazy) || !lazy.every(item => typeof item === "string"))) {
- throw new Error(`.lazy must be a boolean, array of strings, or a function`);
- }
-
- if (typeof strictNamespace !== "boolean") {
- throw new Error(`.strictNamespace must be a boolean, or undefined`);
- }
-
- if (typeof mjsStrictNamespace !== "boolean") {
- throw new Error(`.mjsStrictNamespace must be a boolean, or undefined`);
- }
-
- const getAssertion = localName => _core().template.expression.ast`
- (function(){
- throw new Error(
- "The CommonJS '" + "${localName}" + "' variable is not available in ES6 modules." +
- "Consider setting setting sourceType:script or sourceType:unambiguous in your " +
- "Babel config for this file.");
- })()
- `;
-
- const moduleExportsVisitor = {
- ReferencedIdentifier(path) {
- const localName = path.node.name;
- if (localName !== "module" && localName !== "exports") return;
- const localBinding = path.scope.getBinding(localName);
- const rootBinding = this.scope.getBinding(localName);
-
- if (rootBinding !== localBinding || path.parentPath.isObjectProperty({
- value: path.node
- }) && path.parentPath.parentPath.isObjectPattern() || path.parentPath.isAssignmentExpression({
- left: path.node
- }) || path.isAssignmentExpression({
- left: path.node
- })) {
- return;
- }
-
- path.replaceWith(getAssertion(localName));
- },
-
- AssignmentExpression(path) {
- const left = path.get("left");
-
- if (left.isIdentifier()) {
- const localName = path.node.name;
- if (localName !== "module" && localName !== "exports") return;
- const localBinding = path.scope.getBinding(localName);
- const rootBinding = this.scope.getBinding(localName);
- if (rootBinding !== localBinding) return;
- const right = path.get("right");
- right.replaceWith(_core().types.sequenceExpression([right.node, getAssertion(localName)]));
- } else if (left.isPattern()) {
- const ids = left.getOuterBindingIdentifiers();
- const localName = Object.keys(ids).filter(localName => {
- if (localName !== "module" && localName !== "exports") return false;
- return this.scope.getBinding(localName) === path.scope.getBinding(localName);
- })[0];
-
- if (localName) {
- const right = path.get("right");
- right.replaceWith(_core().types.sequenceExpression([right.node, getAssertion(localName)]));
- }
- }
- }
-
- };
- return {
- name: "transform-modules-commonjs",
-
- pre() {
- this.file.set("@babel/plugin-transform-modules-*", "commonjs");
- },
-
- visitor: {
- CallExpression(path) {
- if (!this.file.has("@babel/plugin-proposal-dynamic-import")) return;
- if (!path.get("callee").isImport()) return;
- let {
- scope
- } = path;
-
- do {
- scope.rename("require");
- } while (scope = scope.parent);
-
- transformImportCall(this, path.get("callee"));
- },
-
- Program: {
- exit(path, state) {
- if (!(0, _helperModuleTransforms().isModule)(path)) return;
- path.scope.rename("exports");
- path.scope.rename("module");
- path.scope.rename("require");
- path.scope.rename("__filename");
- path.scope.rename("__dirname");
-
- if (!allowCommonJSExports) {
- (0, _helperSimpleAccess().default)(path, new Set(["module", "exports"]));
- path.traverse(moduleExportsVisitor, {
- scope: path.scope
- });
- }
-
- let moduleName = this.getModuleName();
- if (moduleName) moduleName = _core().types.stringLiteral(moduleName);
- const {
- meta,
- headers
- } = (0, _helperModuleTransforms().rewriteModuleStatementsAndPrepareHeader)(path, {
- exportName: "exports",
- loose,
- strict,
- strictMode,
- allowTopLevelThis,
- noInterop,
- lazy,
- esNamespaceOnly: typeof state.filename === "string" && /\.mjs$/.test(state.filename) ? mjsStrictNamespace : strictNamespace
- });
-
- for (const [source, metadata] of meta.source) {
- const loadExpr = _core().types.callExpression(_core().types.identifier("require"), [_core().types.stringLiteral(source)]);
-
- let header;
-
- if ((0, _helperModuleTransforms().isSideEffectImport)(metadata)) {
- if (metadata.lazy) throw new Error("Assertion failure");
- header = _core().types.expressionStatement(loadExpr);
- } else {
- const init = (0, _helperModuleTransforms().wrapInterop)(path, loadExpr, metadata.interop) || loadExpr;
-
- if (metadata.lazy) {
- header = _core().template.ast`
- function ${metadata.name}() {
- const data = ${init};
- ${metadata.name} = function(){ return data; };
- return data;
- }
- `;
- } else {
- header = _core().template.ast`
- var ${metadata.name} = ${init};
- `;
- }
- }
-
- header.loc = metadata.loc;
- headers.push(header);
- headers.push(...(0, _helperModuleTransforms().buildNamespaceInitStatements)(meta, metadata, loose));
- }
-
- (0, _helperModuleTransforms().ensureStatementsHoisted)(headers);
- path.unshiftContainer("body", headers);
- }
-
- }
- }
- };
-});
-
-exports.default = _default;
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-transform-modules-commonjs/package.json b/node_modules/@babel/plugin-transform-modules-commonjs/package.json
deleted file mode 100644
index b8b024ef..00000000
--- a/node_modules/@babel/plugin-transform-modules-commonjs/package.json
+++ /dev/null
@@ -1,61 +0,0 @@
-{
- "_args": [
- [
- "@babel/plugin-transform-modules-commonjs@7.6.0",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/plugin-transform-modules-commonjs@7.6.0",
- "_id": "@babel/plugin-transform-modules-commonjs@7.6.0",
- "_inBundle": false,
- "_integrity": "sha512-Ma93Ix95PNSEngqomy5LSBMAQvYKVe3dy+JlVJSHEXZR5ASL9lQBedMiCyVtmTLraIDVRE3ZjTZvmXXD2Ozw3g==",
- "_location": "/@babel/plugin-transform-modules-commonjs",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/plugin-transform-modules-commonjs@7.6.0",
- "name": "@babel/plugin-transform-modules-commonjs",
- "escapedName": "@babel%2fplugin-transform-modules-commonjs",
- "scope": "@babel",
- "rawSpec": "7.6.0",
- "saveSpec": null,
- "fetchSpec": "7.6.0"
- },
- "_requiredBy": [
- "/@babel/preset-env"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.6.0.tgz",
- "_spec": "7.6.0",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-module-transforms": "^7.4.4",
- "@babel/helper-plugin-utils": "^7.0.0",
- "@babel/helper-simple-access": "^7.1.0",
- "babel-plugin-dynamic-import-node": "^2.3.0"
- },
- "description": "This plugin transforms ES2015 modules to CommonJS",
- "devDependencies": {
- "@babel/core": "^7.6.0",
- "@babel/helper-plugin-test-runner": "^7.0.0",
- "@babel/plugin-syntax-object-rest-spread": "^7.2.0"
- },
- "gitHead": "cbd5a26e57758e3f748174ff84aa570e8780e85d",
- "keywords": [
- "babel-plugin"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/plugin-transform-modules-commonjs",
- "peerDependencies": {
- "@babel/core": "^7.0.0-0"
- },
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-modules-commonjs"
- },
- "version": "7.6.0"
-}
diff --git a/node_modules/@babel/plugin-transform-modules-systemjs/LICENSE b/node_modules/@babel/plugin-transform-modules-systemjs/LICENSE
deleted file mode 100644
index f31575ec..00000000
--- a/node_modules/@babel/plugin-transform-modules-systemjs/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-present Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/plugin-transform-modules-systemjs/README.md b/node_modules/@babel/plugin-transform-modules-systemjs/README.md
deleted file mode 100644
index 06be3581..00000000
--- a/node_modules/@babel/plugin-transform-modules-systemjs/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/plugin-transform-modules-systemjs
-
-> This plugin transforms ES2015 modules to SystemJS
-
-See our website [@babel/plugin-transform-modules-systemjs](https://babeljs.io/docs/en/next/babel-plugin-transform-modules-systemjs.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/plugin-transform-modules-systemjs
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/plugin-transform-modules-systemjs --dev
-```
diff --git a/node_modules/@babel/plugin-transform-modules-systemjs/lib/index.js b/node_modules/@babel/plugin-transform-modules-systemjs/lib/index.js
deleted file mode 100644
index ffedefa4..00000000
--- a/node_modules/@babel/plugin-transform-modules-systemjs/lib/index.js
+++ /dev/null
@@ -1,435 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _helperPluginUtils() {
- const data = require("@babel/helper-plugin-utils");
-
- _helperPluginUtils = function () {
- return data;
- };
-
- return data;
-}
-
-function _helperHoistVariables() {
- const data = _interopRequireDefault(require("@babel/helper-hoist-variables"));
-
- _helperHoistVariables = function () {
- return data;
- };
-
- return data;
-}
-
-function _core() {
- const data = require("@babel/core");
-
- _core = function () {
- return data;
- };
-
- return data;
-}
-
-function _utils() {
- const data = require("babel-plugin-dynamic-import-node/utils");
-
- _utils = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-const buildTemplate = (0, _core().template)(`
- SYSTEM_REGISTER(MODULE_NAME, SOURCES, function (EXPORT_IDENTIFIER, CONTEXT_IDENTIFIER) {
- "use strict";
- BEFORE_BODY;
- return {
- setters: SETTERS,
- execute: function () {
- BODY;
- }
- };
- });
-`);
-const buildExportAll = (0, _core().template)(`
- for (var KEY in TARGET) {
- if (KEY !== "default" && KEY !== "__esModule") EXPORT_OBJ[KEY] = TARGET[KEY];
- }
-`);
-const MISSING_PLUGIN_WARNING = `\
-WARNING: Dynamic import() transformation must be enabled using the
- @babel/plugin-proposal-dynamic-import plugin. Babel 8 will
- no longer transform import() without using that plugin.
-`;
-
-function constructExportCall(path, exportIdent, exportNames, exportValues, exportStarTarget) {
- const statements = [];
-
- if (exportNames.length === 1) {
- statements.push(_core().types.expressionStatement(_core().types.callExpression(exportIdent, [_core().types.stringLiteral(exportNames[0]), exportValues[0]])));
- } else if (!exportStarTarget) {
- const objectProperties = [];
-
- for (let i = 0; i < exportNames.length; i++) {
- const exportName = exportNames[i];
- const exportValue = exportValues[i];
- objectProperties.push(_core().types.objectProperty(_core().types.identifier(exportName), exportValue));
- }
-
- statements.push(_core().types.expressionStatement(_core().types.callExpression(exportIdent, [_core().types.objectExpression(objectProperties)])));
- } else {
- const exportObj = path.scope.generateUid("exportObj");
- statements.push(_core().types.variableDeclaration("var", [_core().types.variableDeclarator(_core().types.identifier(exportObj), _core().types.objectExpression([]))]));
- statements.push(buildExportAll({
- KEY: path.scope.generateUidIdentifier("key"),
- EXPORT_OBJ: _core().types.identifier(exportObj),
- TARGET: exportStarTarget
- }));
-
- for (let i = 0; i < exportNames.length; i++) {
- const exportName = exportNames[i];
- const exportValue = exportValues[i];
- statements.push(_core().types.expressionStatement(_core().types.assignmentExpression("=", _core().types.memberExpression(_core().types.identifier(exportObj), _core().types.identifier(exportName)), exportValue)));
- }
-
- statements.push(_core().types.expressionStatement(_core().types.callExpression(exportIdent, [_core().types.identifier(exportObj)])));
- }
-
- return statements;
-}
-
-var _default = (0, _helperPluginUtils().declare)((api, options) => {
- api.assertVersion(7);
- const {
- systemGlobal = "System"
- } = options;
- const IGNORE_REASSIGNMENT_SYMBOL = Symbol();
- const reassignmentVisitor = {
- "AssignmentExpression|UpdateExpression"(path) {
- if (path.node[IGNORE_REASSIGNMENT_SYMBOL]) return;
- path.node[IGNORE_REASSIGNMENT_SYMBOL] = true;
- const arg = path.get(path.isAssignmentExpression() ? "left" : "argument");
-
- if (arg.isObjectPattern() || arg.isArrayPattern()) {
- const exprs = [path.node];
-
- for (const name of Object.keys(arg.getBindingIdentifiers())) {
- if (this.scope.getBinding(name) !== path.scope.getBinding(name)) {
- return;
- }
-
- const exportedNames = this.exports[name];
- if (!exportedNames) return;
-
- for (const exportedName of exportedNames) {
- exprs.push(this.buildCall(exportedName, _core().types.identifier(name)).expression);
- }
- }
-
- path.replaceWith(_core().types.sequenceExpression(exprs));
- return;
- }
-
- if (!arg.isIdentifier()) return;
- const name = arg.node.name;
- if (this.scope.getBinding(name) !== path.scope.getBinding(name)) return;
- const exportedNames = this.exports[name];
- if (!exportedNames) return;
- let node = path.node;
- const isPostUpdateExpression = path.isUpdateExpression({
- prefix: false
- });
-
- if (isPostUpdateExpression) {
- node = _core().types.binaryExpression(node.operator[0], _core().types.unaryExpression("+", _core().types.cloneNode(node.argument)), _core().types.numericLiteral(1));
- }
-
- for (const exportedName of exportedNames) {
- node = this.buildCall(exportedName, node).expression;
- }
-
- if (isPostUpdateExpression) {
- node = _core().types.sequenceExpression([node, path.node]);
- }
-
- path.replaceWith(node);
- }
-
- };
- return {
- name: "transform-modules-systemjs",
-
- pre() {
- this.file.set("@babel/plugin-transform-modules-*", "systemjs");
- },
-
- visitor: {
- CallExpression(path, state) {
- if (_core().types.isImport(path.node.callee)) {
- if (!this.file.has("@babel/plugin-proposal-dynamic-import")) {
- console.warn(MISSING_PLUGIN_WARNING);
- }
-
- path.replaceWith(_core().types.callExpression(_core().types.memberExpression(_core().types.identifier(state.contextIdent), _core().types.identifier("import")), [(0, _utils().getImportSource)(_core().types, path.node)]));
- }
- },
-
- MetaProperty(path, state) {
- if (path.node.meta.name === "import" && path.node.property.name === "meta") {
- path.replaceWith(_core().types.memberExpression(_core().types.identifier(state.contextIdent), _core().types.identifier("meta")));
- }
- },
-
- ReferencedIdentifier(path, state) {
- if (path.node.name === "__moduleName" && !path.scope.hasBinding("__moduleName")) {
- path.replaceWith(_core().types.memberExpression(_core().types.identifier(state.contextIdent), _core().types.identifier("id")));
- }
- },
-
- Program: {
- enter(path, state) {
- state.contextIdent = path.scope.generateUid("context");
- },
-
- exit(path, state) {
- const undefinedIdent = path.scope.buildUndefinedNode();
- const exportIdent = path.scope.generateUid("export");
- const contextIdent = state.contextIdent;
- const exportMap = Object.create(null);
- const modules = [];
- let beforeBody = [];
- const setters = [];
- const sources = [];
- const variableIds = [];
- const removedPaths = [];
-
- function addExportName(key, val) {
- exportMap[key] = exportMap[key] || [];
- exportMap[key].push(val);
- }
-
- function pushModule(source, key, specifiers) {
- let module;
- modules.forEach(function (m) {
- if (m.key === source) {
- module = m;
- }
- });
-
- if (!module) {
- modules.push(module = {
- key: source,
- imports: [],
- exports: []
- });
- }
-
- module[key] = module[key].concat(specifiers);
- }
-
- function buildExportCall(name, val) {
- return _core().types.expressionStatement(_core().types.callExpression(_core().types.identifier(exportIdent), [_core().types.stringLiteral(name), val]));
- }
-
- const exportNames = [];
- const exportValues = [];
- const body = path.get("body");
-
- for (const path of body) {
- if (path.isFunctionDeclaration()) {
- beforeBody.push(path.node);
- removedPaths.push(path);
- } else if (path.isClassDeclaration()) {
- variableIds.push(path.node.id);
- path.replaceWith(_core().types.expressionStatement(_core().types.assignmentExpression("=", _core().types.cloneNode(path.node.id), _core().types.toExpression(path.node))));
- } else if (path.isImportDeclaration()) {
- const source = path.node.source.value;
- pushModule(source, "imports", path.node.specifiers);
-
- for (const name of Object.keys(path.getBindingIdentifiers())) {
- path.scope.removeBinding(name);
- variableIds.push(_core().types.identifier(name));
- }
-
- path.remove();
- } else if (path.isExportAllDeclaration()) {
- pushModule(path.node.source.value, "exports", path.node);
- path.remove();
- } else if (path.isExportDefaultDeclaration()) {
- const declar = path.get("declaration");
- const id = declar.node.id;
-
- if (declar.isClassDeclaration()) {
- if (id) {
- exportNames.push("default");
- exportValues.push(undefinedIdent);
- variableIds.push(id);
- addExportName(id.name, "default");
- path.replaceWith(_core().types.expressionStatement(_core().types.assignmentExpression("=", _core().types.cloneNode(id), _core().types.toExpression(declar.node))));
- } else {
- exportNames.push("default");
- exportValues.push(_core().types.toExpression(declar.node));
- removedPaths.push(path);
- }
- } else if (declar.isFunctionDeclaration()) {
- if (id) {
- beforeBody.push(declar.node);
- exportNames.push("default");
- exportValues.push(_core().types.cloneNode(id));
- addExportName(id.name, "default");
- } else {
- exportNames.push("default");
- exportValues.push(_core().types.toExpression(declar.node));
- }
-
- removedPaths.push(path);
- } else {
- path.replaceWith(buildExportCall("default", declar.node));
- }
- } else if (path.isExportNamedDeclaration()) {
- const declar = path.get("declaration");
-
- if (declar.node) {
- path.replaceWith(declar);
-
- if (path.isFunction()) {
- const node = declar.node;
- const name = node.id.name;
- addExportName(name, name);
- beforeBody.push(node);
- exportNames.push(name);
- exportValues.push(_core().types.cloneNode(node.id));
- removedPaths.push(path);
- } else if (path.isClass()) {
- const name = declar.node.id.name;
- exportNames.push(name);
- exportValues.push(undefinedIdent);
- variableIds.push(declar.node.id);
- path.replaceWith(_core().types.expressionStatement(_core().types.assignmentExpression("=", _core().types.cloneNode(declar.node.id), _core().types.toExpression(declar.node))));
- addExportName(name, name);
- } else {
- for (const name of Object.keys(declar.getBindingIdentifiers())) {
- addExportName(name, name);
- }
- }
- } else {
- const specifiers = path.node.specifiers;
-
- if (specifiers && specifiers.length) {
- if (path.node.source) {
- pushModule(path.node.source.value, "exports", specifiers);
- path.remove();
- } else {
- const nodes = [];
-
- for (const specifier of specifiers) {
- const binding = path.scope.getBinding(specifier.local.name);
-
- if (binding && _core().types.isFunctionDeclaration(binding.path.node)) {
- exportNames.push(specifier.exported.name);
- exportValues.push(_core().types.cloneNode(specifier.local));
- } else if (!binding) {
- nodes.push(buildExportCall(specifier.exported.name, specifier.local));
- }
-
- addExportName(specifier.local.name, specifier.exported.name);
- }
-
- path.replaceWithMultiple(nodes);
- }
- }
- }
- }
- }
-
- modules.forEach(function (specifiers) {
- let setterBody = [];
- const target = path.scope.generateUid(specifiers.key);
-
- for (let specifier of specifiers.imports) {
- if (_core().types.isImportNamespaceSpecifier(specifier)) {
- setterBody.push(_core().types.expressionStatement(_core().types.assignmentExpression("=", specifier.local, _core().types.identifier(target))));
- } else if (_core().types.isImportDefaultSpecifier(specifier)) {
- specifier = _core().types.importSpecifier(specifier.local, _core().types.identifier("default"));
- }
-
- if (_core().types.isImportSpecifier(specifier)) {
- setterBody.push(_core().types.expressionStatement(_core().types.assignmentExpression("=", specifier.local, _core().types.memberExpression(_core().types.identifier(target), specifier.imported))));
- }
- }
-
- if (specifiers.exports.length) {
- const exportNames = [];
- const exportValues = [];
- let hasExportStar = false;
-
- for (const node of specifiers.exports) {
- if (_core().types.isExportAllDeclaration(node)) {
- hasExportStar = true;
- } else if (_core().types.isExportSpecifier(node)) {
- exportNames.push(node.exported.name);
- exportValues.push(_core().types.memberExpression(_core().types.identifier(target), node.local));
- } else {}
- }
-
- setterBody = setterBody.concat(constructExportCall(path, _core().types.identifier(exportIdent), exportNames, exportValues, hasExportStar ? _core().types.identifier(target) : null));
- }
-
- sources.push(_core().types.stringLiteral(specifiers.key));
- setters.push(_core().types.functionExpression(null, [_core().types.identifier(target)], _core().types.blockStatement(setterBody)));
- });
- let moduleName = this.getModuleName();
- if (moduleName) moduleName = _core().types.stringLiteral(moduleName);
- (0, _helperHoistVariables().default)(path, (id, name, hasInit) => {
- variableIds.push(id);
-
- if (!hasInit) {
- exportNames.push(name);
- exportValues.push(undefinedIdent);
- }
- }, null);
-
- if (variableIds.length) {
- beforeBody.unshift(_core().types.variableDeclaration("var", variableIds.map(id => _core().types.variableDeclarator(id))));
- }
-
- if (exportNames.length) {
- beforeBody = beforeBody.concat(constructExportCall(path, _core().types.identifier(exportIdent), exportNames, exportValues, null));
- }
-
- path.traverse(reassignmentVisitor, {
- exports: exportMap,
- buildCall: buildExportCall,
- scope: path.scope
- });
-
- for (const path of removedPaths) {
- path.remove();
- }
-
- path.node.body = [buildTemplate({
- SYSTEM_REGISTER: _core().types.memberExpression(_core().types.identifier(systemGlobal), _core().types.identifier("register")),
- BEFORE_BODY: beforeBody,
- MODULE_NAME: moduleName,
- SETTERS: _core().types.arrayExpression(setters),
- SOURCES: _core().types.arrayExpression(sources),
- BODY: path.node.body,
- EXPORT_IDENTIFIER: _core().types.identifier(exportIdent),
- CONTEXT_IDENTIFIER: _core().types.identifier(contextIdent)
- })];
- }
-
- }
- }
- };
-});
-
-exports.default = _default;
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-transform-modules-systemjs/package.json b/node_modules/@babel/plugin-transform-modules-systemjs/package.json
deleted file mode 100644
index 49c0ac9e..00000000
--- a/node_modules/@babel/plugin-transform-modules-systemjs/package.json
+++ /dev/null
@@ -1,60 +0,0 @@
-{
- "_args": [
- [
- "@babel/plugin-transform-modules-systemjs@7.5.0",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/plugin-transform-modules-systemjs@7.5.0",
- "_id": "@babel/plugin-transform-modules-systemjs@7.5.0",
- "_inBundle": false,
- "_integrity": "sha512-Q2m56tyoQWmuNGxEtUyeEkm6qJYFqs4c+XyXH5RAuYxObRNz9Zgj/1g2GMnjYp2EUyEy7YTrxliGCXzecl/vJg==",
- "_location": "/@babel/plugin-transform-modules-systemjs",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/plugin-transform-modules-systemjs@7.5.0",
- "name": "@babel/plugin-transform-modules-systemjs",
- "escapedName": "@babel%2fplugin-transform-modules-systemjs",
- "scope": "@babel",
- "rawSpec": "7.5.0",
- "saveSpec": null,
- "fetchSpec": "7.5.0"
- },
- "_requiredBy": [
- "/@babel/preset-env"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.5.0.tgz",
- "_spec": "7.5.0",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-hoist-variables": "^7.4.4",
- "@babel/helper-plugin-utils": "^7.0.0",
- "babel-plugin-dynamic-import-node": "^2.3.0"
- },
- "description": "This plugin transforms ES2015 modules to SystemJS",
- "devDependencies": {
- "@babel/core": "^7.5.0",
- "@babel/helper-plugin-test-runner": "^7.0.0",
- "@babel/plugin-syntax-dynamic-import": "^7.2.0"
- },
- "gitHead": "49da9a07c81156e997e60146eb001ea77b7044c4",
- "keywords": [
- "babel-plugin"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/plugin-transform-modules-systemjs",
- "peerDependencies": {
- "@babel/core": "^7.0.0-0"
- },
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-modules-systemjs"
- },
- "version": "7.5.0"
-}
diff --git a/node_modules/@babel/plugin-transform-modules-umd/LICENSE b/node_modules/@babel/plugin-transform-modules-umd/LICENSE
deleted file mode 100644
index a06ec0e7..00000000
--- a/node_modules/@babel/plugin-transform-modules-umd/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-2018 Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/plugin-transform-modules-umd/README.md b/node_modules/@babel/plugin-transform-modules-umd/README.md
deleted file mode 100644
index 9f31e109..00000000
--- a/node_modules/@babel/plugin-transform-modules-umd/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/plugin-transform-modules-umd
-
-> This plugin transforms ES2015 modules to UMD
-
-See our website [@babel/plugin-transform-modules-umd](https://babeljs.io/docs/en/next/babel-plugin-transform-modules-umd.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/plugin-transform-modules-umd
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/plugin-transform-modules-umd --dev
-```
diff --git a/node_modules/@babel/plugin-transform-modules-umd/lib/index.js b/node_modules/@babel/plugin-transform-modules-umd/lib/index.js
deleted file mode 100644
index 9b4454bf..00000000
--- a/node_modules/@babel/plugin-transform-modules-umd/lib/index.js
+++ /dev/null
@@ -1,202 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _helperPluginUtils() {
- const data = require("@babel/helper-plugin-utils");
-
- _helperPluginUtils = function () {
- return data;
- };
-
- return data;
-}
-
-function _path() {
- const data = require("path");
-
- _path = function () {
- return data;
- };
-
- return data;
-}
-
-function _helperModuleTransforms() {
- const data = require("@babel/helper-module-transforms");
-
- _helperModuleTransforms = function () {
- return data;
- };
-
- return data;
-}
-
-function _core() {
- const data = require("@babel/core");
-
- _core = function () {
- return data;
- };
-
- return data;
-}
-
-const buildPrerequisiteAssignment = (0, _core().template)(`
- GLOBAL_REFERENCE = GLOBAL_REFERENCE || {}
-`);
-const buildWrapper = (0, _core().template)(`
- (function (global, factory) {
- if (typeof define === "function" && define.amd) {
- define(MODULE_NAME, AMD_ARGUMENTS, factory);
- } else if (typeof exports !== "undefined") {
- factory(COMMONJS_ARGUMENTS);
- } else {
- var mod = { exports: {} };
- factory(BROWSER_ARGUMENTS);
-
- GLOBAL_TO_ASSIGN;
- }
- })(this, function(IMPORT_NAMES) {
- })
-`);
-
-var _default = (0, _helperPluginUtils().declare)((api, options) => {
- api.assertVersion(7);
- const {
- globals,
- exactGlobals,
- loose,
- allowTopLevelThis,
- strict,
- strictMode,
- noInterop
- } = options;
-
- function buildBrowserInit(browserGlobals, exactGlobals, filename, moduleName) {
- const moduleNameOrBasename = moduleName ? moduleName.value : (0, _path().basename)(filename, (0, _path().extname)(filename));
-
- let globalToAssign = _core().types.memberExpression(_core().types.identifier("global"), _core().types.identifier(_core().types.toIdentifier(moduleNameOrBasename)));
-
- let initAssignments = [];
-
- if (exactGlobals) {
- const globalName = browserGlobals[moduleNameOrBasename];
-
- if (globalName) {
- initAssignments = [];
- const members = globalName.split(".");
- globalToAssign = members.slice(1).reduce((accum, curr) => {
- initAssignments.push(buildPrerequisiteAssignment({
- GLOBAL_REFERENCE: _core().types.cloneNode(accum)
- }));
- return _core().types.memberExpression(accum, _core().types.identifier(curr));
- }, _core().types.memberExpression(_core().types.identifier("global"), _core().types.identifier(members[0])));
- }
- }
-
- initAssignments.push(_core().types.expressionStatement(_core().types.assignmentExpression("=", globalToAssign, _core().types.memberExpression(_core().types.identifier("mod"), _core().types.identifier("exports")))));
- return initAssignments;
- }
-
- function buildBrowserArg(browserGlobals, exactGlobals, source) {
- let memberExpression;
-
- if (exactGlobals) {
- const globalRef = browserGlobals[source];
-
- if (globalRef) {
- memberExpression = globalRef.split(".").reduce((accum, curr) => _core().types.memberExpression(accum, _core().types.identifier(curr)), _core().types.identifier("global"));
- } else {
- memberExpression = _core().types.memberExpression(_core().types.identifier("global"), _core().types.identifier(_core().types.toIdentifier(source)));
- }
- } else {
- const requireName = (0, _path().basename)(source, (0, _path().extname)(source));
- const globalName = browserGlobals[requireName] || requireName;
- memberExpression = _core().types.memberExpression(_core().types.identifier("global"), _core().types.identifier(_core().types.toIdentifier(globalName)));
- }
-
- return memberExpression;
- }
-
- return {
- name: "transform-modules-umd",
- visitor: {
- Program: {
- exit(path) {
- if (!(0, _helperModuleTransforms().isModule)(path)) return;
- const browserGlobals = globals || {};
- let moduleName = this.getModuleName();
- if (moduleName) moduleName = _core().types.stringLiteral(moduleName);
- const {
- meta,
- headers
- } = (0, _helperModuleTransforms().rewriteModuleStatementsAndPrepareHeader)(path, {
- loose,
- strict,
- strictMode,
- allowTopLevelThis,
- noInterop
- });
- const amdArgs = [];
- const commonjsArgs = [];
- const browserArgs = [];
- const importNames = [];
-
- if ((0, _helperModuleTransforms().hasExports)(meta)) {
- amdArgs.push(_core().types.stringLiteral("exports"));
- commonjsArgs.push(_core().types.identifier("exports"));
- browserArgs.push(_core().types.memberExpression(_core().types.identifier("mod"), _core().types.identifier("exports")));
- importNames.push(_core().types.identifier(meta.exportName));
- }
-
- for (const [source, metadata] of meta.source) {
- amdArgs.push(_core().types.stringLiteral(source));
- commonjsArgs.push(_core().types.callExpression(_core().types.identifier("require"), [_core().types.stringLiteral(source)]));
- browserArgs.push(buildBrowserArg(browserGlobals, exactGlobals, source));
- importNames.push(_core().types.identifier(metadata.name));
-
- if (!(0, _helperModuleTransforms().isSideEffectImport)(metadata)) {
- const interop = (0, _helperModuleTransforms().wrapInterop)(path, _core().types.identifier(metadata.name), metadata.interop);
-
- if (interop) {
- const header = _core().types.expressionStatement(_core().types.assignmentExpression("=", _core().types.identifier(metadata.name), interop));
-
- header.loc = meta.loc;
- headers.push(header);
- }
- }
-
- headers.push(...(0, _helperModuleTransforms().buildNamespaceInitStatements)(meta, metadata, loose));
- }
-
- (0, _helperModuleTransforms().ensureStatementsHoisted)(headers);
- path.unshiftContainer("body", headers);
- const {
- body,
- directives
- } = path.node;
- path.node.directives = [];
- path.node.body = [];
- const umdWrapper = path.pushContainer("body", [buildWrapper({
- MODULE_NAME: moduleName,
- AMD_ARGUMENTS: _core().types.arrayExpression(amdArgs),
- COMMONJS_ARGUMENTS: commonjsArgs,
- BROWSER_ARGUMENTS: browserArgs,
- IMPORT_NAMES: importNames,
- GLOBAL_TO_ASSIGN: buildBrowserInit(browserGlobals, exactGlobals, this.filename || "unknown", moduleName)
- })])[0];
- const umdFactory = umdWrapper.get("expression.arguments")[1].get("body");
- umdFactory.pushContainer("directives", directives);
- umdFactory.pushContainer("body", body);
- }
-
- }
- }
- };
-});
-
-exports.default = _default;
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-transform-modules-umd/package.json b/node_modules/@babel/plugin-transform-modules-umd/package.json
deleted file mode 100644
index ea9c11ca..00000000
--- a/node_modules/@babel/plugin-transform-modules-umd/package.json
+++ /dev/null
@@ -1,57 +0,0 @@
-{
- "_args": [
- [
- "@babel/plugin-transform-modules-umd@7.2.0",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/plugin-transform-modules-umd@7.2.0",
- "_id": "@babel/plugin-transform-modules-umd@7.2.0",
- "_inBundle": false,
- "_integrity": "sha512-BV3bw6MyUH1iIsGhXlOK6sXhmSarZjtJ/vMiD9dNmpY8QXFFQTj+6v92pcfy1iqa8DeAfJFwoxcrS/TUZda6sw==",
- "_location": "/@babel/plugin-transform-modules-umd",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/plugin-transform-modules-umd@7.2.0",
- "name": "@babel/plugin-transform-modules-umd",
- "escapedName": "@babel%2fplugin-transform-modules-umd",
- "scope": "@babel",
- "rawSpec": "7.2.0",
- "saveSpec": null,
- "fetchSpec": "7.2.0"
- },
- "_requiredBy": [
- "/@babel/preset-env"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.2.0.tgz",
- "_spec": "7.2.0",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-module-transforms": "^7.1.0",
- "@babel/helper-plugin-utils": "^7.0.0"
- },
- "description": "This plugin transforms ES2015 modules to UMD",
- "devDependencies": {
- "@babel/core": "^7.2.0",
- "@babel/helper-plugin-test-runner": "^7.0.0"
- },
- "keywords": [
- "babel-plugin"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/plugin-transform-modules-umd",
- "peerDependencies": {
- "@babel/core": "^7.0.0-0"
- },
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-modules-umd"
- },
- "version": "7.2.0"
-}
diff --git a/node_modules/@babel/plugin-transform-named-capturing-groups-regex/LICENSE b/node_modules/@babel/plugin-transform-named-capturing-groups-regex/LICENSE
deleted file mode 100644
index f31575ec..00000000
--- a/node_modules/@babel/plugin-transform-named-capturing-groups-regex/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-present Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/plugin-transform-named-capturing-groups-regex/README.md b/node_modules/@babel/plugin-transform-named-capturing-groups-regex/README.md
deleted file mode 100644
index a04992d5..00000000
--- a/node_modules/@babel/plugin-transform-named-capturing-groups-regex/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/plugin-transform-named-capturing-groups-regex
-
-> Compile regular expressions using named groups to ES5.
-
-See our website [@babel/plugin-transform-named-capturing-groups-regex](https://babeljs.io/docs/en/next/babel-plugin-transform-named-capturing-groups-regex.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/plugin-transform-named-capturing-groups-regex
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/plugin-transform-named-capturing-groups-regex --dev
-```
diff --git a/node_modules/@babel/plugin-transform-named-capturing-groups-regex/lib/index.js b/node_modules/@babel/plugin-transform-named-capturing-groups-regex/lib/index.js
deleted file mode 100644
index 4eb617ad..00000000
--- a/node_modules/@babel/plugin-transform-named-capturing-groups-regex/lib/index.js
+++ /dev/null
@@ -1,67 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = _default;
-
-function _regexpTree() {
- const data = _interopRequireDefault(require("regexp-tree"));
-
- _regexpTree = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function _default({
- types: t
-}, options) {
- const {
- runtime = true
- } = options;
-
- if (typeof runtime !== "boolean") {
- throw new Error("The 'runtime' option must be boolean");
- }
-
- return {
- name: "transform-named-capturing-groups-regex",
- visitor: {
- RegExpLiteral(path) {
- const node = path.node;
-
- if (!/\(\?<(?![=!])/.test(node.pattern)) {
- return;
- }
-
- const result = _regexpTree().default.compatTranspile(node.extra.raw, ["namedCapturingGroups"]);
-
- const {
- namedCapturingGroups
- } = result.getExtra();
-
- if (namedCapturingGroups && Object.keys(namedCapturingGroups).length > 0) {
- node.pattern = result.getSource();
-
- if (runtime && !isRegExpTest(path)) {
- path.replaceWith(t.callExpression(this.addHelper("wrapRegExp"), [node, t.valueToNode(namedCapturingGroups)]));
- }
- }
- }
-
- }
- };
-}
-
-function isRegExpTest(path) {
- return path.parentPath.isMemberExpression({
- object: path.node,
- computed: false
- }) && path.parentPath.get("property").isIdentifier({
- name: "test"
- });
-}
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-transform-named-capturing-groups-regex/package.json b/node_modules/@babel/plugin-transform-named-capturing-groups-regex/package.json
deleted file mode 100644
index 7d7a06c6..00000000
--- a/node_modules/@babel/plugin-transform-named-capturing-groups-regex/package.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "_args": [
- [
- "@babel/plugin-transform-named-capturing-groups-regex@7.6.0",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/plugin-transform-named-capturing-groups-regex@7.6.0",
- "_id": "@babel/plugin-transform-named-capturing-groups-regex@7.6.0",
- "_inBundle": false,
- "_integrity": "sha512-jem7uytlmrRl3iCAuQyw8BpB4c4LWvSpvIeXKpMb+7j84lkx4m4mYr5ErAcmN5KM7B6BqrAvRGjBIbbzqCczew==",
- "_location": "/@babel/plugin-transform-named-capturing-groups-regex",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/plugin-transform-named-capturing-groups-regex@7.6.0",
- "name": "@babel/plugin-transform-named-capturing-groups-regex",
- "escapedName": "@babel%2fplugin-transform-named-capturing-groups-regex",
- "scope": "@babel",
- "rawSpec": "7.6.0",
- "saveSpec": null,
- "fetchSpec": "7.6.0"
- },
- "_requiredBy": [
- "/@babel/preset-env"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.6.0.tgz",
- "_spec": "7.6.0",
- "_where": "E:\\python\\setup-php",
- "bugs": {
- "url": "https://github.com/babel/babel/issues"
- },
- "dependencies": {
- "regexp-tree": "^0.1.13"
- },
- "description": "Compile regular expressions using named groups to ES5.",
- "devDependencies": {
- "@babel/core": "^7.6.0",
- "@babel/helper-plugin-test-runner": "^7.0.0",
- "core-js-pure": "^3.0.0"
- },
- "gitHead": "cbd5a26e57758e3f748174ff84aa570e8780e85d",
- "homepage": "https://babeljs.io/",
- "keywords": [
- "babel-plugin",
- "regex",
- "regexp",
- "regular expressions"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/plugin-transform-named-capturing-groups-regex",
- "peerDependencies": {
- "@babel/core": "^7.0.0"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-named-capturing-groups-regex"
- },
- "version": "7.6.0"
-}
diff --git a/node_modules/@babel/plugin-transform-new-target/LICENSE b/node_modules/@babel/plugin-transform-new-target/LICENSE
deleted file mode 100644
index f31575ec..00000000
--- a/node_modules/@babel/plugin-transform-new-target/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-present Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/plugin-transform-new-target/README.md b/node_modules/@babel/plugin-transform-new-target/README.md
deleted file mode 100644
index 63d8aae3..00000000
--- a/node_modules/@babel/plugin-transform-new-target/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/plugin-transform-new-target
-
-> Transforms new.target meta property
-
-See our website [@babel/plugin-transform-new-target](https://babeljs.io/docs/en/next/babel-plugin-transform-new-target.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/plugin-transform-new-target
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/plugin-transform-new-target --dev
-```
diff --git a/node_modules/@babel/plugin-transform-new-target/lib/index.js b/node_modules/@babel/plugin-transform-new-target/lib/index.js
deleted file mode 100644
index 357d639f..00000000
--- a/node_modules/@babel/plugin-transform-new-target/lib/index.js
+++ /dev/null
@@ -1,93 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _helperPluginUtils() {
- const data = require("@babel/helper-plugin-utils");
-
- _helperPluginUtils = function () {
- return data;
- };
-
- return data;
-}
-
-function _core() {
- const data = require("@babel/core");
-
- _core = function () {
- return data;
- };
-
- return data;
-}
-
-var _default = (0, _helperPluginUtils().declare)(api => {
- api.assertVersion(7);
- return {
- name: "transform-new-target",
- visitor: {
- MetaProperty(path) {
- const meta = path.get("meta");
- const property = path.get("property");
- const {
- scope
- } = path;
-
- if (meta.isIdentifier({
- name: "new"
- }) && property.isIdentifier({
- name: "target"
- })) {
- const func = path.findParent(path => {
- if (path.isClass()) return true;
-
- if (path.isFunction() && !path.isArrowFunctionExpression()) {
- if (path.isClassMethod({
- kind: "constructor"
- })) {
- return false;
- }
-
- return true;
- }
-
- return false;
- });
-
- if (!func) {
- throw path.buildCodeFrameError("new.target must be under a (non-arrow) function or a class.");
- }
-
- const {
- node
- } = func;
-
- if (!node.id) {
- if (func.isMethod()) {
- path.replaceWith(scope.buildUndefinedNode());
- return;
- }
-
- node.id = scope.generateUidIdentifier("target");
- }
-
- const constructor = _core().types.memberExpression(_core().types.thisExpression(), _core().types.identifier("constructor"));
-
- if (func.isClass()) {
- path.replaceWith(constructor);
- return;
- }
-
- path.replaceWith(_core().types.conditionalExpression(_core().types.binaryExpression("instanceof", _core().types.thisExpression(), _core().types.cloneNode(node.id)), constructor, scope.buildUndefinedNode()));
- }
- }
-
- }
- };
-});
-
-exports.default = _default;
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-transform-new-target/package.json b/node_modules/@babel/plugin-transform-new-target/package.json
deleted file mode 100644
index 7b147a5b..00000000
--- a/node_modules/@babel/plugin-transform-new-target/package.json
+++ /dev/null
@@ -1,59 +0,0 @@
-{
- "_args": [
- [
- "@babel/plugin-transform-new-target@7.4.4",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/plugin-transform-new-target@7.4.4",
- "_id": "@babel/plugin-transform-new-target@7.4.4",
- "_inBundle": false,
- "_integrity": "sha512-r1z3T2DNGQwwe2vPGZMBNjioT2scgWzK9BCnDEh+46z8EEwXBq24uRzd65I7pjtugzPSj921aM15RpESgzsSuA==",
- "_location": "/@babel/plugin-transform-new-target",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/plugin-transform-new-target@7.4.4",
- "name": "@babel/plugin-transform-new-target",
- "escapedName": "@babel%2fplugin-transform-new-target",
- "scope": "@babel",
- "rawSpec": "7.4.4",
- "saveSpec": null,
- "fetchSpec": "7.4.4"
- },
- "_requiredBy": [
- "/@babel/preset-env"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.4.4.tgz",
- "_spec": "7.4.4",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-plugin-utils": "^7.0.0"
- },
- "description": "Transforms new.target meta property",
- "devDependencies": {
- "@babel/core": "^7.4.4",
- "@babel/helper-plugin-test-runner": "^7.0.0",
- "@babel/plugin-proposal-class-properties": "^7.4.4",
- "@babel/plugin-transform-arrow-functions": "^7.0.0"
- },
- "gitHead": "2c88694388831b1e5b88e4bbed6781eb2be1edba",
- "keywords": [
- "babel-plugin"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/plugin-transform-new-target",
- "peerDependencies": {
- "@babel/core": "^7.0.0-0"
- },
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-new-target"
- },
- "version": "7.4.4"
-}
diff --git a/node_modules/@babel/plugin-transform-object-super/LICENSE b/node_modules/@babel/plugin-transform-object-super/LICENSE
deleted file mode 100644
index f31575ec..00000000
--- a/node_modules/@babel/plugin-transform-object-super/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-present Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/plugin-transform-object-super/README.md b/node_modules/@babel/plugin-transform-object-super/README.md
deleted file mode 100644
index 55cb4fca..00000000
--- a/node_modules/@babel/plugin-transform-object-super/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/plugin-transform-object-super
-
-> Compile ES2015 object super to ES5
-
-See our website [@babel/plugin-transform-object-super](https://babeljs.io/docs/en/next/babel-plugin-transform-object-super.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/plugin-transform-object-super
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/plugin-transform-object-super --dev
-```
diff --git a/node_modules/@babel/plugin-transform-object-super/lib/index.js b/node_modules/@babel/plugin-transform-object-super/lib/index.js
deleted file mode 100644
index 981894a7..00000000
--- a/node_modules/@babel/plugin-transform-object-super/lib/index.js
+++ /dev/null
@@ -1,76 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _helperPluginUtils() {
- const data = require("@babel/helper-plugin-utils");
-
- _helperPluginUtils = function () {
- return data;
- };
-
- return data;
-}
-
-function _helperReplaceSupers() {
- const data = _interopRequireDefault(require("@babel/helper-replace-supers"));
-
- _helperReplaceSupers = function () {
- return data;
- };
-
- return data;
-}
-
-function _core() {
- const data = require("@babel/core");
-
- _core = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function replacePropertySuper(path, getObjectRef, file) {
- const replaceSupers = new (_helperReplaceSupers().default)({
- getObjectRef: getObjectRef,
- methodPath: path,
- file: file
- });
- replaceSupers.replace();
-}
-
-var _default = (0, _helperPluginUtils().declare)(api => {
- api.assertVersion(7);
- return {
- name: "transform-object-super",
- visitor: {
- ObjectExpression(path, state) {
- let objectRef;
-
- const getObjectRef = () => objectRef = objectRef || path.scope.generateUidIdentifier("obj");
-
- path.get("properties").forEach(propPath => {
- if (!propPath.isMethod()) return;
- replacePropertySuper(propPath, getObjectRef, state);
- });
-
- if (objectRef) {
- path.scope.push({
- id: _core().types.cloneNode(objectRef)
- });
- path.replaceWith(_core().types.assignmentExpression("=", _core().types.cloneNode(objectRef), path.node));
- }
- }
-
- }
- };
-});
-
-exports.default = _default;
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-transform-object-super/package.json b/node_modules/@babel/plugin-transform-object-super/package.json
deleted file mode 100644
index 5134098c..00000000
--- a/node_modules/@babel/plugin-transform-object-super/package.json
+++ /dev/null
@@ -1,58 +0,0 @@
-{
- "_args": [
- [
- "@babel/plugin-transform-object-super@7.5.5",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/plugin-transform-object-super@7.5.5",
- "_id": "@babel/plugin-transform-object-super@7.5.5",
- "_inBundle": false,
- "_integrity": "sha512-un1zJQAhSosGFBduPgN/YFNvWVpRuHKU7IHBglLoLZsGmruJPOo6pbInneflUdmq7YvSVqhpPs5zdBvLnteltQ==",
- "_location": "/@babel/plugin-transform-object-super",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/plugin-transform-object-super@7.5.5",
- "name": "@babel/plugin-transform-object-super",
- "escapedName": "@babel%2fplugin-transform-object-super",
- "scope": "@babel",
- "rawSpec": "7.5.5",
- "saveSpec": null,
- "fetchSpec": "7.5.5"
- },
- "_requiredBy": [
- "/@babel/preset-env"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.5.5.tgz",
- "_spec": "7.5.5",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-plugin-utils": "^7.0.0",
- "@babel/helper-replace-supers": "^7.5.5"
- },
- "description": "Compile ES2015 object super to ES5",
- "devDependencies": {
- "@babel/core": "^7.5.5",
- "@babel/helper-plugin-test-runner": "^7.0.0"
- },
- "gitHead": "0407f034f09381b95e9cabefbf6b176c76485a43",
- "keywords": [
- "babel-plugin"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/plugin-transform-object-super",
- "peerDependencies": {
- "@babel/core": "^7.0.0-0"
- },
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-object-super"
- },
- "version": "7.5.5"
-}
diff --git a/node_modules/@babel/plugin-transform-parameters/LICENSE b/node_modules/@babel/plugin-transform-parameters/LICENSE
deleted file mode 100644
index f31575ec..00000000
--- a/node_modules/@babel/plugin-transform-parameters/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-present Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/plugin-transform-parameters/README.md b/node_modules/@babel/plugin-transform-parameters/README.md
deleted file mode 100644
index 2d06e83e..00000000
--- a/node_modules/@babel/plugin-transform-parameters/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/plugin-transform-parameters
-
-> Compile ES2015 default and rest parameters to ES5
-
-See our website [@babel/plugin-transform-parameters](https://babeljs.io/docs/en/next/babel-plugin-transform-parameters.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/plugin-transform-parameters
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/plugin-transform-parameters --dev
-```
diff --git a/node_modules/@babel/plugin-transform-parameters/lib/index.js b/node_modules/@babel/plugin-transform-parameters/lib/index.js
deleted file mode 100644
index dd2efd38..00000000
--- a/node_modules/@babel/plugin-transform-parameters/lib/index.js
+++ /dev/null
@@ -1,49 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _helperPluginUtils() {
- const data = require("@babel/helper-plugin-utils");
-
- _helperPluginUtils = function () {
- return data;
- };
-
- return data;
-}
-
-var _params = _interopRequireDefault(require("./params"));
-
-var _rest = _interopRequireDefault(require("./rest"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-var _default = (0, _helperPluginUtils().declare)((api, options) => {
- api.assertVersion(7);
- const {
- loose
- } = options;
- return {
- name: "transform-parameters",
- visitor: {
- Function(path) {
- if (path.isArrowFunctionExpression() && path.get("params").some(param => param.isRestElement() || param.isAssignmentPattern())) {
- path.arrowFunctionToExpression();
- }
-
- const convertedRest = (0, _rest.default)(path);
- const convertedParams = (0, _params.default)(path, loose);
-
- if (convertedRest || convertedParams) {
- path.scope.crawl();
- }
- }
-
- }
- };
-});
-
-exports.default = _default;
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-transform-parameters/lib/params.js b/node_modules/@babel/plugin-transform-parameters/lib/params.js
deleted file mode 100644
index ec03b591..00000000
--- a/node_modules/@babel/plugin-transform-parameters/lib/params.js
+++ /dev/null
@@ -1,167 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = convertFunctionParams;
-
-function _helperCallDelegate() {
- const data = _interopRequireDefault(require("@babel/helper-call-delegate"));
-
- _helperCallDelegate = function () {
- return data;
- };
-
- return data;
-}
-
-function _core() {
- const data = require("@babel/core");
-
- _core = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-const buildDefaultParam = (0, _core().template)(`
- let VARIABLE_NAME =
- arguments.length > ARGUMENT_KEY && arguments[ARGUMENT_KEY] !== undefined ?
- arguments[ARGUMENT_KEY]
- :
- DEFAULT_VALUE;
-`);
-const buildLooseDefaultParam = (0, _core().template)(`
- if (ASSIGNMENT_IDENTIFIER === UNDEFINED) {
- ASSIGNMENT_IDENTIFIER = DEFAULT_VALUE;
- }
-`);
-const buildLooseDestructuredDefaultParam = (0, _core().template)(`
- let ASSIGNMENT_IDENTIFIER = PARAMETER_NAME === UNDEFINED ? DEFAULT_VALUE : PARAMETER_NAME ;
-`);
-const buildSafeArgumentsAccess = (0, _core().template)(`
- let $0 = arguments.length > $1 ? arguments[$1] : undefined;
-`);
-
-function isSafeBinding(scope, node) {
- if (!scope.hasOwnBinding(node.name)) return true;
- const {
- kind
- } = scope.getOwnBinding(node.name);
- return kind === "param" || kind === "local";
-}
-
-const iifeVisitor = {
- ReferencedIdentifier(path, state) {
- const {
- scope,
- node
- } = path;
-
- if (node.name === "eval" || !isSafeBinding(scope, node)) {
- state.iife = true;
- path.stop();
- }
- },
-
- Scope(path) {
- path.skip();
- }
-
-};
-
-function convertFunctionParams(path, loose) {
- const {
- node,
- scope
- } = path;
- const state = {
- iife: false,
- scope: scope
- };
- const body = [];
- const params = path.get("params");
- let firstOptionalIndex = null;
-
- for (let i = 0; i < params.length; i++) {
- const param = params[i];
- const paramIsAssignmentPattern = param.isAssignmentPattern();
-
- if (paramIsAssignmentPattern && (loose || node.kind === "set")) {
- const left = param.get("left");
- const right = param.get("right");
- const undefinedNode = scope.buildUndefinedNode();
-
- if (left.isIdentifier()) {
- body.push(buildLooseDefaultParam({
- ASSIGNMENT_IDENTIFIER: _core().types.cloneNode(left.node),
- DEFAULT_VALUE: right.node,
- UNDEFINED: undefinedNode
- }));
- param.replaceWith(left.node);
- } else if (left.isObjectPattern() || left.isArrayPattern()) {
- const paramName = scope.generateUidIdentifier();
- body.push(buildLooseDestructuredDefaultParam({
- ASSIGNMENT_IDENTIFIER: left.node,
- DEFAULT_VALUE: right.node,
- PARAMETER_NAME: _core().types.cloneNode(paramName),
- UNDEFINED: undefinedNode
- }));
- param.replaceWith(paramName);
- }
- } else if (paramIsAssignmentPattern) {
- if (firstOptionalIndex === null) firstOptionalIndex = i;
- const left = param.get("left");
- const right = param.get("right");
-
- if (!state.iife) {
- if (right.isIdentifier() && !isSafeBinding(scope, right.node)) {
- state.iife = true;
- } else {
- right.traverse(iifeVisitor, state);
- }
- }
-
- const defNode = buildDefaultParam({
- VARIABLE_NAME: left.node,
- DEFAULT_VALUE: right.node,
- ARGUMENT_KEY: _core().types.numericLiteral(i)
- });
- body.push(defNode);
- } else if (firstOptionalIndex !== null) {
- const defNode = buildSafeArgumentsAccess([param.node, _core().types.numericLiteral(i)]);
- body.push(defNode);
- } else if (param.isObjectPattern() || param.isArrayPattern()) {
- const uid = path.scope.generateUidIdentifier("ref");
-
- const defNode = _core().types.variableDeclaration("let", [_core().types.variableDeclarator(param.node, uid)]);
-
- body.push(defNode);
- param.replaceWith(_core().types.cloneNode(uid));
- }
-
- if (!state.iife && !param.isIdentifier()) {
- param.traverse(iifeVisitor, state);
- }
- }
-
- if (body.length === 0) return false;
-
- if (firstOptionalIndex !== null) {
- node.params = node.params.slice(0, firstOptionalIndex);
- }
-
- path.ensureBlock();
-
- if (state.iife) {
- body.push((0, _helperCallDelegate().default)(path, scope));
- path.set("body", _core().types.blockStatement(body));
- } else {
- path.get("body").unshiftContainer("body", body);
- }
-
- return true;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-transform-parameters/lib/rest.js b/node_modules/@babel/plugin-transform-parameters/lib/rest.js
deleted file mode 100644
index 85aa77b7..00000000
--- a/node_modules/@babel/plugin-transform-parameters/lib/rest.js
+++ /dev/null
@@ -1,302 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = convertFunctionRest;
-
-function _core() {
- const data = require("@babel/core");
-
- _core = function () {
- return data;
- };
-
- return data;
-}
-
-const buildRest = (0, _core().template)(`
- for (var LEN = ARGUMENTS.length,
- ARRAY = new Array(ARRAY_LEN),
- KEY = START;
- KEY < LEN;
- KEY++) {
- ARRAY[ARRAY_KEY] = ARGUMENTS[KEY];
- }
-`);
-const restIndex = (0, _core().template)(`
- (INDEX < OFFSET || ARGUMENTS.length <= INDEX) ? undefined : ARGUMENTS[INDEX]
-`);
-const restIndexImpure = (0, _core().template)(`
- REF = INDEX, (REF < OFFSET || ARGUMENTS.length <= REF) ? undefined : ARGUMENTS[REF]
-`);
-const restLength = (0, _core().template)(`
- ARGUMENTS.length <= OFFSET ? 0 : ARGUMENTS.length - OFFSET
-`);
-
-function referencesRest(path, state) {
- if (path.node.name === state.name) {
- return path.scope.bindingIdentifierEquals(state.name, state.outerBinding);
- }
-
- return false;
-}
-
-const memberExpressionOptimisationVisitor = {
- Scope(path, state) {
- if (!path.scope.bindingIdentifierEquals(state.name, state.outerBinding)) {
- path.skip();
- }
- },
-
- Flow(path) {
- if (path.isTypeCastExpression()) return;
- path.skip();
- },
-
- Function(path, state) {
- const oldNoOptimise = state.noOptimise;
- state.noOptimise = true;
- path.traverse(memberExpressionOptimisationVisitor, state);
- state.noOptimise = oldNoOptimise;
- path.skip();
- },
-
- ReferencedIdentifier(path, state) {
- const {
- node
- } = path;
-
- if (node.name === "arguments") {
- state.deopted = true;
- }
-
- if (!referencesRest(path, state)) return;
-
- if (state.noOptimise) {
- state.deopted = true;
- } else {
- const {
- parentPath
- } = path;
-
- if (parentPath.listKey === "params" && parentPath.key < state.offset) {
- return;
- }
-
- if (parentPath.isMemberExpression({
- object: node
- })) {
- const grandparentPath = parentPath.parentPath;
- const argsOptEligible = !state.deopted && !(grandparentPath.isAssignmentExpression() && parentPath.node === grandparentPath.node.left || grandparentPath.isLVal() || grandparentPath.isForXStatement() || grandparentPath.isUpdateExpression() || grandparentPath.isUnaryExpression({
- operator: "delete"
- }) || (grandparentPath.isCallExpression() || grandparentPath.isNewExpression()) && parentPath.node === grandparentPath.node.callee);
-
- if (argsOptEligible) {
- if (parentPath.node.computed) {
- if (parentPath.get("property").isBaseType("number")) {
- state.candidates.push({
- cause: "indexGetter",
- path
- });
- return;
- }
- } else if (parentPath.node.property.name === "length") {
- state.candidates.push({
- cause: "lengthGetter",
- path
- });
- return;
- }
- }
- }
-
- if (state.offset === 0 && parentPath.isSpreadElement()) {
- const call = parentPath.parentPath;
-
- if (call.isCallExpression() && call.node.arguments.length === 1) {
- state.candidates.push({
- cause: "argSpread",
- path
- });
- return;
- }
- }
-
- state.references.push(path);
- }
- },
-
- BindingIdentifier(path, state) {
- if (referencesRest(path, state)) {
- state.deopted = true;
- }
- }
-
-};
-
-function hasRest(node) {
- const length = node.params.length;
- return length > 0 && _core().types.isRestElement(node.params[length - 1]);
-}
-
-function optimiseIndexGetter(path, argsId, offset) {
- const offsetLiteral = _core().types.numericLiteral(offset);
-
- let index;
-
- if (_core().types.isNumericLiteral(path.parent.property)) {
- index = _core().types.numericLiteral(path.parent.property.value + offset);
- } else if (offset === 0) {
- index = path.parent.property;
- } else {
- index = _core().types.binaryExpression("+", path.parent.property, _core().types.cloneNode(offsetLiteral));
- }
-
- const {
- scope
- } = path;
-
- if (!scope.isPure(index)) {
- const temp = scope.generateUidIdentifierBasedOnNode(index);
- scope.push({
- id: temp,
- kind: "var"
- });
- path.parentPath.replaceWith(restIndexImpure({
- ARGUMENTS: argsId,
- OFFSET: offsetLiteral,
- INDEX: index,
- REF: _core().types.cloneNode(temp)
- }));
- } else {
- const parentPath = path.parentPath;
- parentPath.replaceWith(restIndex({
- ARGUMENTS: argsId,
- OFFSET: offsetLiteral,
- INDEX: index
- }));
- const offsetTestPath = parentPath.get("test").get("left");
- const valRes = offsetTestPath.evaluate();
-
- if (valRes.confident) {
- if (valRes.value === true) {
- parentPath.replaceWith(parentPath.scope.buildUndefinedNode());
- } else {
- parentPath.get("test").replaceWith(parentPath.get("test").get("right"));
- }
- }
- }
-}
-
-function optimiseLengthGetter(path, argsId, offset) {
- if (offset) {
- path.parentPath.replaceWith(restLength({
- ARGUMENTS: argsId,
- OFFSET: _core().types.numericLiteral(offset)
- }));
- } else {
- path.replaceWith(argsId);
- }
-}
-
-function convertFunctionRest(path) {
- const {
- node,
- scope
- } = path;
- if (!hasRest(node)) return false;
- let rest = node.params.pop().argument;
-
- const argsId = _core().types.identifier("arguments");
-
- if (_core().types.isPattern(rest)) {
- const pattern = rest;
- rest = scope.generateUidIdentifier("ref");
-
- const declar = _core().types.variableDeclaration("let", [_core().types.variableDeclarator(pattern, rest)]);
-
- node.body.body.unshift(declar);
- }
-
- const state = {
- references: [],
- offset: node.params.length,
- argumentsNode: argsId,
- outerBinding: scope.getBindingIdentifier(rest.name),
- candidates: [],
- name: rest.name,
- deopted: false
- };
- path.traverse(memberExpressionOptimisationVisitor, state);
-
- if (!state.deopted && !state.references.length) {
- for (const _ref of state.candidates) {
- const {
- path,
- cause
- } = _ref;
-
- const clonedArgsId = _core().types.cloneNode(argsId);
-
- switch (cause) {
- case "indexGetter":
- optimiseIndexGetter(path, clonedArgsId, state.offset);
- break;
-
- case "lengthGetter":
- optimiseLengthGetter(path, clonedArgsId, state.offset);
- break;
-
- default:
- path.replaceWith(clonedArgsId);
- }
- }
-
- return true;
- }
-
- state.references = state.references.concat(state.candidates.map(({
- path
- }) => path));
-
- const start = _core().types.numericLiteral(node.params.length);
-
- const key = scope.generateUidIdentifier("key");
- const len = scope.generateUidIdentifier("len");
- let arrKey, arrLen;
-
- if (node.params.length) {
- arrKey = _core().types.binaryExpression("-", _core().types.cloneNode(key), _core().types.cloneNode(start));
- arrLen = _core().types.conditionalExpression(_core().types.binaryExpression(">", _core().types.cloneNode(len), _core().types.cloneNode(start)), _core().types.binaryExpression("-", _core().types.cloneNode(len), _core().types.cloneNode(start)), _core().types.numericLiteral(0));
- } else {
- arrKey = _core().types.identifier(key.name);
- arrLen = _core().types.identifier(len.name);
- }
-
- const loop = buildRest({
- ARGUMENTS: argsId,
- ARRAY_KEY: arrKey,
- ARRAY_LEN: arrLen,
- START: start,
- ARRAY: rest,
- KEY: key,
- LEN: len
- });
-
- if (state.deopted) {
- node.body.body.unshift(loop);
- } else {
- let target = path.getEarliestCommonAncestorFrom(state.references).getStatementParent();
- target.findParent(path => {
- if (path.isLoop()) {
- target = path;
- } else {
- return path.isFunction();
- }
- });
- target.insertBefore(loop);
- }
-
- return true;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-transform-parameters/package.json b/node_modules/@babel/plugin-transform-parameters/package.json
deleted file mode 100644
index b5cdd7a9..00000000
--- a/node_modules/@babel/plugin-transform-parameters/package.json
+++ /dev/null
@@ -1,59 +0,0 @@
-{
- "_args": [
- [
- "@babel/plugin-transform-parameters@7.4.4",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/plugin-transform-parameters@7.4.4",
- "_id": "@babel/plugin-transform-parameters@7.4.4",
- "_inBundle": false,
- "_integrity": "sha512-oMh5DUO1V63nZcu/ZVLQFqiihBGo4OpxJxR1otF50GMeCLiRx5nUdtokd+u9SuVJrvvuIh9OosRFPP4pIPnwmw==",
- "_location": "/@babel/plugin-transform-parameters",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/plugin-transform-parameters@7.4.4",
- "name": "@babel/plugin-transform-parameters",
- "escapedName": "@babel%2fplugin-transform-parameters",
- "scope": "@babel",
- "rawSpec": "7.4.4",
- "saveSpec": null,
- "fetchSpec": "7.4.4"
- },
- "_requiredBy": [
- "/@babel/preset-env"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.4.4.tgz",
- "_spec": "7.4.4",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-call-delegate": "^7.4.4",
- "@babel/helper-get-function-arity": "^7.0.0",
- "@babel/helper-plugin-utils": "^7.0.0"
- },
- "description": "Compile ES2015 default and rest parameters to ES5",
- "devDependencies": {
- "@babel/core": "^7.4.4",
- "@babel/helper-plugin-test-runner": "^7.0.0"
- },
- "gitHead": "2c88694388831b1e5b88e4bbed6781eb2be1edba",
- "keywords": [
- "babel-plugin"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/plugin-transform-parameters",
- "peerDependencies": {
- "@babel/core": "^7.0.0-0"
- },
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-parameters"
- },
- "version": "7.4.4"
-}
diff --git a/node_modules/@babel/plugin-transform-property-literals/LICENSE b/node_modules/@babel/plugin-transform-property-literals/LICENSE
deleted file mode 100644
index a06ec0e7..00000000
--- a/node_modules/@babel/plugin-transform-property-literals/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-2018 Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/plugin-transform-property-literals/README.md b/node_modules/@babel/plugin-transform-property-literals/README.md
deleted file mode 100644
index 2f71c295..00000000
--- a/node_modules/@babel/plugin-transform-property-literals/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/plugin-transform-property-literals
-
-> Ensure that reserved words are quoted in object property keys
-
-See our website [@babel/plugin-transform-property-literals](https://babeljs.io/docs/en/next/babel-plugin-transform-property-literals.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/plugin-transform-property-literals
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/plugin-transform-property-literals --dev
-```
diff --git a/node_modules/@babel/plugin-transform-property-literals/lib/index.js b/node_modules/@babel/plugin-transform-property-literals/lib/index.js
deleted file mode 100644
index af218283..00000000
--- a/node_modules/@babel/plugin-transform-property-literals/lib/index.js
+++ /dev/null
@@ -1,49 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _helperPluginUtils() {
- const data = require("@babel/helper-plugin-utils");
-
- _helperPluginUtils = function () {
- return data;
- };
-
- return data;
-}
-
-function _core() {
- const data = require("@babel/core");
-
- _core = function () {
- return data;
- };
-
- return data;
-}
-
-var _default = (0, _helperPluginUtils().declare)(api => {
- api.assertVersion(7);
- return {
- name: "transform-property-literals",
- visitor: {
- ObjectProperty: {
- exit({
- node
- }) {
- const key = node.key;
-
- if (!node.computed && _core().types.isIdentifier(key) && !_core().types.isValidES3Identifier(key.name)) {
- node.key = _core().types.stringLiteral(key.name);
- }
- }
-
- }
- }
- };
-});
-
-exports.default = _default;
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-transform-property-literals/package.json b/node_modules/@babel/plugin-transform-property-literals/package.json
deleted file mode 100644
index 867c44e9..00000000
--- a/node_modules/@babel/plugin-transform-property-literals/package.json
+++ /dev/null
@@ -1,56 +0,0 @@
-{
- "_args": [
- [
- "@babel/plugin-transform-property-literals@7.2.0",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/plugin-transform-property-literals@7.2.0",
- "_id": "@babel/plugin-transform-property-literals@7.2.0",
- "_inBundle": false,
- "_integrity": "sha512-9q7Dbk4RhgcLp8ebduOpCbtjh7C0itoLYHXd9ueASKAG/is5PQtMR5VJGka9NKqGhYEGn5ITahd4h9QeBMylWQ==",
- "_location": "/@babel/plugin-transform-property-literals",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/plugin-transform-property-literals@7.2.0",
- "name": "@babel/plugin-transform-property-literals",
- "escapedName": "@babel%2fplugin-transform-property-literals",
- "scope": "@babel",
- "rawSpec": "7.2.0",
- "saveSpec": null,
- "fetchSpec": "7.2.0"
- },
- "_requiredBy": [
- "/@babel/preset-env"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.2.0.tgz",
- "_spec": "7.2.0",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-plugin-utils": "^7.0.0"
- },
- "description": "Ensure that reserved words are quoted in object property keys",
- "devDependencies": {
- "@babel/core": "^7.2.0",
- "@babel/helper-plugin-test-runner": "^7.0.0"
- },
- "keywords": [
- "babel-plugin"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/plugin-transform-property-literals",
- "peerDependencies": {
- "@babel/core": "^7.0.0-0"
- },
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-property-literals"
- },
- "version": "7.2.0"
-}
diff --git a/node_modules/@babel/plugin-transform-regenerator/LICENSE b/node_modules/@babel/plugin-transform-regenerator/LICENSE
deleted file mode 100644
index f31575ec..00000000
--- a/node_modules/@babel/plugin-transform-regenerator/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-present Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/plugin-transform-regenerator/README.md b/node_modules/@babel/plugin-transform-regenerator/README.md
deleted file mode 100644
index b10e3139..00000000
--- a/node_modules/@babel/plugin-transform-regenerator/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/plugin-transform-regenerator
-
-> Explode async and generator functions into a state machine.
-
-See our website [@babel/plugin-transform-regenerator](https://babeljs.io/docs/en/next/babel-plugin-transform-regenerator.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/plugin-transform-regenerator
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/plugin-transform-regenerator --dev
-```
diff --git a/node_modules/@babel/plugin-transform-regenerator/lib/index.js b/node_modules/@babel/plugin-transform-regenerator/lib/index.js
deleted file mode 100644
index 83a2a881..00000000
--- a/node_modules/@babel/plugin-transform-regenerator/lib/index.js
+++ /dev/null
@@ -1,23 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-Object.defineProperty(exports, "default", {
- enumerable: true,
- get: function () {
- return _regeneratorTransform().default;
- }
-});
-
-function _regeneratorTransform() {
- const data = _interopRequireDefault(require("regenerator-transform"));
-
- _regeneratorTransform = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-transform-regenerator/package.json b/node_modules/@babel/plugin-transform-regenerator/package.json
deleted file mode 100644
index 97e22206..00000000
--- a/node_modules/@babel/plugin-transform-regenerator/package.json
+++ /dev/null
@@ -1,59 +0,0 @@
-{
- "_args": [
- [
- "@babel/plugin-transform-regenerator@7.4.5",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/plugin-transform-regenerator@7.4.5",
- "_id": "@babel/plugin-transform-regenerator@7.4.5",
- "_inBundle": false,
- "_integrity": "sha512-gBKRh5qAaCWntnd09S8QC7r3auLCqq5DI6O0DlfoyDjslSBVqBibrMdsqO+Uhmx3+BlOmE/Kw1HFxmGbv0N9dA==",
- "_location": "/@babel/plugin-transform-regenerator",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/plugin-transform-regenerator@7.4.5",
- "name": "@babel/plugin-transform-regenerator",
- "escapedName": "@babel%2fplugin-transform-regenerator",
- "scope": "@babel",
- "rawSpec": "7.4.5",
- "saveSpec": null,
- "fetchSpec": "7.4.5"
- },
- "_requiredBy": [
- "/@babel/preset-env"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.4.5.tgz",
- "_spec": "7.4.5",
- "_where": "E:\\python\\setup-php",
- "author": {
- "name": "Ben Newman",
- "email": "bn@cs.stanford.edu"
- },
- "dependencies": {
- "regenerator-transform": "^0.14.0"
- },
- "description": "Explode async and generator functions into a state machine.",
- "devDependencies": {
- "@babel/core": "^7.4.5",
- "@babel/helper-plugin-test-runner": "^7.0.0"
- },
- "gitHead": "33ab4f166117e2380de3955a0842985f578b01b8",
- "homepage": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-regenerator",
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/plugin-transform-regenerator",
- "peerDependencies": {
- "@babel/core": "^7.0.0-0"
- },
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-regenerator"
- },
- "version": "7.4.5"
-}
diff --git a/node_modules/@babel/plugin-transform-reserved-words/LICENSE b/node_modules/@babel/plugin-transform-reserved-words/LICENSE
deleted file mode 100644
index a06ec0e7..00000000
--- a/node_modules/@babel/plugin-transform-reserved-words/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-2018 Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/plugin-transform-reserved-words/README.md b/node_modules/@babel/plugin-transform-reserved-words/README.md
deleted file mode 100644
index 0b4a0d7b..00000000
--- a/node_modules/@babel/plugin-transform-reserved-words/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/plugin-transform-reserved-words
-
-> Ensure that no reserved words are used.
-
-See our website [@babel/plugin-transform-reserved-words](https://babeljs.io/docs/en/next/babel-plugin-transform-reserved-words.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/plugin-transform-reserved-words
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/plugin-transform-reserved-words --dev
-```
diff --git a/node_modules/@babel/plugin-transform-reserved-words/lib/index.js b/node_modules/@babel/plugin-transform-reserved-words/lib/index.js
deleted file mode 100644
index 535870e6..00000000
--- a/node_modules/@babel/plugin-transform-reserved-words/lib/index.js
+++ /dev/null
@@ -1,43 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _helperPluginUtils() {
- const data = require("@babel/helper-plugin-utils");
-
- _helperPluginUtils = function () {
- return data;
- };
-
- return data;
-}
-
-function _core() {
- const data = require("@babel/core");
-
- _core = function () {
- return data;
- };
-
- return data;
-}
-
-var _default = (0, _helperPluginUtils().declare)(api => {
- api.assertVersion(7);
- return {
- name: "transform-reserved-words",
- visitor: {
- "BindingIdentifier|ReferencedIdentifier"(path) {
- if (!_core().types.isValidES3Identifier(path.node.name)) {
- path.scope.rename(path.node.name);
- }
- }
-
- }
- };
-});
-
-exports.default = _default;
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-transform-reserved-words/package.json b/node_modules/@babel/plugin-transform-reserved-words/package.json
deleted file mode 100644
index b200c8d0..00000000
--- a/node_modules/@babel/plugin-transform-reserved-words/package.json
+++ /dev/null
@@ -1,56 +0,0 @@
-{
- "_args": [
- [
- "@babel/plugin-transform-reserved-words@7.2.0",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/plugin-transform-reserved-words@7.2.0",
- "_id": "@babel/plugin-transform-reserved-words@7.2.0",
- "_inBundle": false,
- "_integrity": "sha512-fz43fqW8E1tAB3DKF19/vxbpib1fuyCwSPE418ge5ZxILnBhWyhtPgz8eh1RCGGJlwvksHkyxMxh0eenFi+kFw==",
- "_location": "/@babel/plugin-transform-reserved-words",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/plugin-transform-reserved-words@7.2.0",
- "name": "@babel/plugin-transform-reserved-words",
- "escapedName": "@babel%2fplugin-transform-reserved-words",
- "scope": "@babel",
- "rawSpec": "7.2.0",
- "saveSpec": null,
- "fetchSpec": "7.2.0"
- },
- "_requiredBy": [
- "/@babel/preset-env"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.2.0.tgz",
- "_spec": "7.2.0",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-plugin-utils": "^7.0.0"
- },
- "description": "Ensure that no reserved words are used.",
- "devDependencies": {
- "@babel/core": "^7.2.0",
- "@babel/helper-plugin-test-runner": "^7.0.0"
- },
- "keywords": [
- "babel-plugin"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/plugin-transform-reserved-words",
- "peerDependencies": {
- "@babel/core": "^7.0.0-0"
- },
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-reserved-words"
- },
- "version": "7.2.0"
-}
diff --git a/node_modules/@babel/plugin-transform-shorthand-properties/LICENSE b/node_modules/@babel/plugin-transform-shorthand-properties/LICENSE
deleted file mode 100644
index a06ec0e7..00000000
--- a/node_modules/@babel/plugin-transform-shorthand-properties/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-2018 Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/plugin-transform-shorthand-properties/README.md b/node_modules/@babel/plugin-transform-shorthand-properties/README.md
deleted file mode 100644
index c9be6586..00000000
--- a/node_modules/@babel/plugin-transform-shorthand-properties/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/plugin-transform-shorthand-properties
-
-> Compile ES2015 shorthand properties to ES5
-
-See our website [@babel/plugin-transform-shorthand-properties](https://babeljs.io/docs/en/next/babel-plugin-transform-shorthand-properties.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/plugin-transform-shorthand-properties
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/plugin-transform-shorthand-properties --dev
-```
diff --git a/node_modules/@babel/plugin-transform-shorthand-properties/lib/index.js b/node_modules/@babel/plugin-transform-shorthand-properties/lib/index.js
deleted file mode 100644
index 96ab00d7..00000000
--- a/node_modules/@babel/plugin-transform-shorthand-properties/lib/index.js
+++ /dev/null
@@ -1,58 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _helperPluginUtils() {
- const data = require("@babel/helper-plugin-utils");
-
- _helperPluginUtils = function () {
- return data;
- };
-
- return data;
-}
-
-function _core() {
- const data = require("@babel/core");
-
- _core = function () {
- return data;
- };
-
- return data;
-}
-
-var _default = (0, _helperPluginUtils().declare)(api => {
- api.assertVersion(7);
- return {
- name: "transform-shorthand-properties",
- visitor: {
- ObjectMethod(path) {
- const {
- node
- } = path;
-
- if (node.kind === "method") {
- const func = _core().types.functionExpression(null, node.params, node.body, node.generator, node.async);
-
- func.returnType = node.returnType;
- path.replaceWith(_core().types.objectProperty(node.key, func, node.computed));
- }
- },
-
- ObjectProperty({
- node
- }) {
- if (node.shorthand) {
- node.shorthand = false;
- }
- }
-
- }
- };
-});
-
-exports.default = _default;
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-transform-shorthand-properties/package.json b/node_modules/@babel/plugin-transform-shorthand-properties/package.json
deleted file mode 100644
index 462e9d79..00000000
--- a/node_modules/@babel/plugin-transform-shorthand-properties/package.json
+++ /dev/null
@@ -1,56 +0,0 @@
-{
- "_args": [
- [
- "@babel/plugin-transform-shorthand-properties@7.2.0",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/plugin-transform-shorthand-properties@7.2.0",
- "_id": "@babel/plugin-transform-shorthand-properties@7.2.0",
- "_inBundle": false,
- "_integrity": "sha512-QP4eUM83ha9zmYtpbnyjTLAGKQritA5XW/iG9cjtuOI8s1RuL/3V6a3DeSHfKutJQ+ayUfeZJPcnCYEQzaPQqg==",
- "_location": "/@babel/plugin-transform-shorthand-properties",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/plugin-transform-shorthand-properties@7.2.0",
- "name": "@babel/plugin-transform-shorthand-properties",
- "escapedName": "@babel%2fplugin-transform-shorthand-properties",
- "scope": "@babel",
- "rawSpec": "7.2.0",
- "saveSpec": null,
- "fetchSpec": "7.2.0"
- },
- "_requiredBy": [
- "/@babel/preset-env"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.2.0.tgz",
- "_spec": "7.2.0",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-plugin-utils": "^7.0.0"
- },
- "description": "Compile ES2015 shorthand properties to ES5",
- "devDependencies": {
- "@babel/core": "^7.2.0",
- "@babel/helper-plugin-test-runner": "^7.0.0"
- },
- "keywords": [
- "babel-plugin"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/plugin-transform-shorthand-properties",
- "peerDependencies": {
- "@babel/core": "^7.0.0-0"
- },
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-shorthand-properties"
- },
- "version": "7.2.0"
-}
diff --git a/node_modules/@babel/plugin-transform-spread/LICENSE b/node_modules/@babel/plugin-transform-spread/LICENSE
deleted file mode 100644
index a06ec0e7..00000000
--- a/node_modules/@babel/plugin-transform-spread/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-2018 Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/plugin-transform-spread/README.md b/node_modules/@babel/plugin-transform-spread/README.md
deleted file mode 100644
index cb007b36..00000000
--- a/node_modules/@babel/plugin-transform-spread/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/plugin-transform-spread
-
-> Compile ES2015 spread to ES5
-
-See our website [@babel/plugin-transform-spread](https://babeljs.io/docs/en/next/babel-plugin-transform-spread.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/plugin-transform-spread
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/plugin-transform-spread --dev
-```
diff --git a/node_modules/@babel/plugin-transform-spread/lib/index.js b/node_modules/@babel/plugin-transform-spread/lib/index.js
deleted file mode 100644
index 97b03b99..00000000
--- a/node_modules/@babel/plugin-transform-spread/lib/index.js
+++ /dev/null
@@ -1,178 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _helperPluginUtils() {
- const data = require("@babel/helper-plugin-utils");
-
- _helperPluginUtils = function () {
- return data;
- };
-
- return data;
-}
-
-function _core() {
- const data = require("@babel/core");
-
- _core = function () {
- return data;
- };
-
- return data;
-}
-
-var _default = (0, _helperPluginUtils().declare)((api, options) => {
- api.assertVersion(7);
- const {
- loose
- } = options;
-
- function getSpreadLiteral(spread, scope) {
- if (loose && !_core().types.isIdentifier(spread.argument, {
- name: "arguments"
- })) {
- return spread.argument;
- } else {
- return scope.toArray(spread.argument, true);
- }
- }
-
- function hasSpread(nodes) {
- for (let i = 0; i < nodes.length; i++) {
- if (_core().types.isSpreadElement(nodes[i])) {
- return true;
- }
- }
-
- return false;
- }
-
- function push(_props, nodes) {
- if (!_props.length) return _props;
- nodes.push(_core().types.arrayExpression(_props));
- return [];
- }
-
- function build(props, scope) {
- const nodes = [];
- let _props = [];
-
- for (const prop of props) {
- if (_core().types.isSpreadElement(prop)) {
- _props = push(_props, nodes);
- nodes.push(getSpreadLiteral(prop, scope));
- } else {
- _props.push(prop);
- }
- }
-
- push(_props, nodes);
- return nodes;
- }
-
- return {
- name: "transform-spread",
- visitor: {
- ArrayExpression(path) {
- const {
- node,
- scope
- } = path;
- const elements = node.elements;
- if (!hasSpread(elements)) return;
- const nodes = build(elements, scope);
- let first = nodes[0];
-
- if (nodes.length === 1 && first !== elements[0].argument) {
- path.replaceWith(first);
- return;
- }
-
- if (!_core().types.isArrayExpression(first)) {
- first = _core().types.arrayExpression([]);
- } else {
- nodes.shift();
- }
-
- path.replaceWith(_core().types.callExpression(_core().types.memberExpression(first, _core().types.identifier("concat")), nodes));
- },
-
- CallExpression(path) {
- const {
- node,
- scope
- } = path;
- const args = node.arguments;
- if (!hasSpread(args)) return;
- const calleePath = path.get("callee");
- if (calleePath.isSuper()) return;
- let contextLiteral = scope.buildUndefinedNode();
- node.arguments = [];
- let nodes;
-
- if (args.length === 1 && args[0].argument.name === "arguments") {
- nodes = [args[0].argument];
- } else {
- nodes = build(args, scope);
- }
-
- const first = nodes.shift();
-
- if (nodes.length) {
- node.arguments.push(_core().types.callExpression(_core().types.memberExpression(first, _core().types.identifier("concat")), nodes));
- } else {
- node.arguments.push(first);
- }
-
- const callee = node.callee;
-
- if (calleePath.isMemberExpression()) {
- const temp = scope.maybeGenerateMemoised(callee.object);
-
- if (temp) {
- callee.object = _core().types.assignmentExpression("=", temp, callee.object);
- contextLiteral = temp;
- } else {
- contextLiteral = _core().types.cloneNode(callee.object);
- }
-
- _core().types.appendToMemberExpression(callee, _core().types.identifier("apply"));
- } else {
- node.callee = _core().types.memberExpression(node.callee, _core().types.identifier("apply"));
- }
-
- if (_core().types.isSuper(contextLiteral)) {
- contextLiteral = _core().types.thisExpression();
- }
-
- node.arguments.unshift(_core().types.cloneNode(contextLiteral));
- },
-
- NewExpression(path) {
- const {
- node,
- scope
- } = path;
- let args = node.arguments;
- if (!hasSpread(args)) return;
- const nodes = build(args, scope);
- const first = nodes.shift();
-
- if (nodes.length) {
- args = _core().types.callExpression(_core().types.memberExpression(first, _core().types.identifier("concat")), nodes);
- } else {
- args = first;
- }
-
- path.replaceWith(_core().types.callExpression(path.hub.addHelper("construct"), [node.callee, args]));
- }
-
- }
- };
-});
-
-exports.default = _default;
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-transform-spread/package.json b/node_modules/@babel/plugin-transform-spread/package.json
deleted file mode 100644
index 15b5cec7..00000000
--- a/node_modules/@babel/plugin-transform-spread/package.json
+++ /dev/null
@@ -1,56 +0,0 @@
-{
- "_args": [
- [
- "@babel/plugin-transform-spread@7.2.2",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/plugin-transform-spread@7.2.2",
- "_id": "@babel/plugin-transform-spread@7.2.2",
- "_inBundle": false,
- "_integrity": "sha512-KWfky/58vubwtS0hLqEnrWJjsMGaOeSBn90Ezn5Jeg9Z8KKHmELbP1yGylMlm5N6TPKeY9A2+UaSYLdxahg01w==",
- "_location": "/@babel/plugin-transform-spread",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/plugin-transform-spread@7.2.2",
- "name": "@babel/plugin-transform-spread",
- "escapedName": "@babel%2fplugin-transform-spread",
- "scope": "@babel",
- "rawSpec": "7.2.2",
- "saveSpec": null,
- "fetchSpec": "7.2.2"
- },
- "_requiredBy": [
- "/@babel/preset-env"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.2.2.tgz",
- "_spec": "7.2.2",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-plugin-utils": "^7.0.0"
- },
- "description": "Compile ES2015 spread to ES5",
- "devDependencies": {
- "@babel/core": "^7.2.2",
- "@babel/helper-plugin-test-runner": "^7.0.0"
- },
- "keywords": [
- "babel-plugin"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/plugin-transform-spread",
- "peerDependencies": {
- "@babel/core": "^7.0.0-0"
- },
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-spread"
- },
- "version": "7.2.2"
-}
diff --git a/node_modules/@babel/plugin-transform-sticky-regex/LICENSE b/node_modules/@babel/plugin-transform-sticky-regex/LICENSE
deleted file mode 100644
index a06ec0e7..00000000
--- a/node_modules/@babel/plugin-transform-sticky-regex/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-2018 Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/plugin-transform-sticky-regex/README.md b/node_modules/@babel/plugin-transform-sticky-regex/README.md
deleted file mode 100644
index 227fb84d..00000000
--- a/node_modules/@babel/plugin-transform-sticky-regex/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/plugin-transform-sticky-regex
-
-> Compile ES2015 sticky regex to an ES5 RegExp constructor
-
-See our website [@babel/plugin-transform-sticky-regex](https://babeljs.io/docs/en/next/babel-plugin-transform-sticky-regex.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/plugin-transform-sticky-regex
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/plugin-transform-sticky-regex --dev
-```
diff --git a/node_modules/@babel/plugin-transform-sticky-regex/lib/index.js b/node_modules/@babel/plugin-transform-sticky-regex/lib/index.js
deleted file mode 100644
index c867f947..00000000
--- a/node_modules/@babel/plugin-transform-sticky-regex/lib/index.js
+++ /dev/null
@@ -1,57 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _helperPluginUtils() {
- const data = require("@babel/helper-plugin-utils");
-
- _helperPluginUtils = function () {
- return data;
- };
-
- return data;
-}
-
-function regex() {
- const data = _interopRequireWildcard(require("@babel/helper-regex"));
-
- regex = function () {
- return data;
- };
-
- return data;
-}
-
-function _core() {
- const data = require("@babel/core");
-
- _core = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-var _default = (0, _helperPluginUtils().declare)(api => {
- api.assertVersion(7);
- return {
- name: "transform-sticky-regex",
- visitor: {
- RegExpLiteral(path) {
- const {
- node
- } = path;
- if (!regex().is(node, "y")) return;
- path.replaceWith(_core().types.newExpression(_core().types.identifier("RegExp"), [_core().types.stringLiteral(node.pattern), _core().types.stringLiteral(node.flags)]));
- }
-
- }
- };
-});
-
-exports.default = _default;
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-transform-sticky-regex/package.json b/node_modules/@babel/plugin-transform-sticky-regex/package.json
deleted file mode 100644
index 1bc48e56..00000000
--- a/node_modules/@babel/plugin-transform-sticky-regex/package.json
+++ /dev/null
@@ -1,57 +0,0 @@
-{
- "_args": [
- [
- "@babel/plugin-transform-sticky-regex@7.2.0",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/plugin-transform-sticky-regex@7.2.0",
- "_id": "@babel/plugin-transform-sticky-regex@7.2.0",
- "_inBundle": false,
- "_integrity": "sha512-KKYCoGaRAf+ckH8gEL3JHUaFVyNHKe3ASNsZ+AlktgHevvxGigoIttrEJb8iKN03Q7Eazlv1s6cx2B2cQ3Jabw==",
- "_location": "/@babel/plugin-transform-sticky-regex",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/plugin-transform-sticky-regex@7.2.0",
- "name": "@babel/plugin-transform-sticky-regex",
- "escapedName": "@babel%2fplugin-transform-sticky-regex",
- "scope": "@babel",
- "rawSpec": "7.2.0",
- "saveSpec": null,
- "fetchSpec": "7.2.0"
- },
- "_requiredBy": [
- "/@babel/preset-env"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.2.0.tgz",
- "_spec": "7.2.0",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-plugin-utils": "^7.0.0",
- "@babel/helper-regex": "^7.0.0"
- },
- "description": "Compile ES2015 sticky regex to an ES5 RegExp constructor",
- "devDependencies": {
- "@babel/core": "^7.2.0",
- "@babel/helper-plugin-test-runner": "^7.0.0"
- },
- "keywords": [
- "babel-plugin"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/plugin-transform-sticky-regex",
- "peerDependencies": {
- "@babel/core": "^7.0.0-0"
- },
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-sticky-regex"
- },
- "version": "7.2.0"
-}
diff --git a/node_modules/@babel/plugin-transform-template-literals/LICENSE b/node_modules/@babel/plugin-transform-template-literals/LICENSE
deleted file mode 100644
index f31575ec..00000000
--- a/node_modules/@babel/plugin-transform-template-literals/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-present Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/plugin-transform-template-literals/README.md b/node_modules/@babel/plugin-transform-template-literals/README.md
deleted file mode 100644
index fb89fe17..00000000
--- a/node_modules/@babel/plugin-transform-template-literals/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/plugin-transform-template-literals
-
-> Compile ES2015 template literals to ES5
-
-See our website [@babel/plugin-transform-template-literals](https://babeljs.io/docs/en/next/babel-plugin-transform-template-literals.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/plugin-transform-template-literals
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/plugin-transform-template-literals --dev
-```
diff --git a/node_modules/@babel/plugin-transform-template-literals/lib/index.js b/node_modules/@babel/plugin-transform-template-literals/lib/index.js
deleted file mode 100644
index f151263b..00000000
--- a/node_modules/@babel/plugin-transform-template-literals/lib/index.js
+++ /dev/null
@@ -1,148 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _helperPluginUtils() {
- const data = require("@babel/helper-plugin-utils");
-
- _helperPluginUtils = function () {
- return data;
- };
-
- return data;
-}
-
-function _core() {
- const data = require("@babel/core");
-
- _core = function () {
- return data;
- };
-
- return data;
-}
-
-var _default = (0, _helperPluginUtils().declare)((api, options) => {
- api.assertVersion(7);
- const {
- loose
- } = options;
- let helperName = "taggedTemplateLiteral";
- if (loose) helperName += "Loose";
-
- function buildConcatCallExpressions(items) {
- let avail = true;
- return items.reduce(function (left, right) {
- let canBeInserted = _core().types.isLiteral(right);
-
- if (!canBeInserted && avail) {
- canBeInserted = true;
- avail = false;
- }
-
- if (canBeInserted && _core().types.isCallExpression(left)) {
- left.arguments.push(right);
- return left;
- }
-
- return _core().types.callExpression(_core().types.memberExpression(left, _core().types.identifier("concat")), [right]);
- });
- }
-
- return {
- name: "transform-template-literals",
- visitor: {
- TaggedTemplateExpression(path) {
- const {
- node
- } = path;
- const {
- quasi
- } = node;
- const strings = [];
- const raws = [];
- let isStringsRawEqual = true;
-
- for (const elem of quasi.quasis) {
- const {
- raw,
- cooked
- } = elem.value;
- const value = cooked == null ? path.scope.buildUndefinedNode() : _core().types.stringLiteral(cooked);
- strings.push(value);
- raws.push(_core().types.stringLiteral(raw));
-
- if (raw !== cooked) {
- isStringsRawEqual = false;
- }
- }
-
- const scope = path.scope.getProgramParent();
- const templateObject = scope.generateUidIdentifier("templateObject");
- const helperId = this.addHelper(helperName);
- const callExpressionInput = [_core().types.arrayExpression(strings)];
-
- if (!isStringsRawEqual) {
- callExpressionInput.push(_core().types.arrayExpression(raws));
- }
-
- const lazyLoad = _core().template.ast`
- function ${templateObject}() {
- const data = ${_core().types.callExpression(helperId, callExpressionInput)};
- ${templateObject} = function() { return data };
- return data;
- }
- `;
- scope.path.unshiftContainer("body", lazyLoad);
- path.replaceWith(_core().types.callExpression(node.tag, [_core().types.callExpression(_core().types.cloneNode(templateObject), []), ...quasi.expressions]));
- },
-
- TemplateLiteral(path) {
- const nodes = [];
- const expressions = path.get("expressions");
- let index = 0;
-
- for (const elem of path.node.quasis) {
- if (elem.value.cooked) {
- nodes.push(_core().types.stringLiteral(elem.value.cooked));
- }
-
- if (index < expressions.length) {
- const expr = expressions[index++];
- const node = expr.node;
-
- if (!_core().types.isStringLiteral(node, {
- value: ""
- })) {
- nodes.push(node);
- }
- }
- }
-
- const considerSecondNode = !loose || !_core().types.isStringLiteral(nodes[1]);
-
- if (!_core().types.isStringLiteral(nodes[0]) && considerSecondNode) {
- nodes.unshift(_core().types.stringLiteral(""));
- }
-
- let root = nodes[0];
-
- if (loose) {
- for (let i = 1; i < nodes.length; i++) {
- root = _core().types.binaryExpression("+", root, nodes[i]);
- }
- } else if (nodes.length > 1) {
- root = buildConcatCallExpressions(nodes);
- }
-
- path.replaceWith(root);
- }
-
- }
- };
-});
-
-exports.default = _default;
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-transform-template-literals/package.json b/node_modules/@babel/plugin-transform-template-literals/package.json
deleted file mode 100644
index d9f43b4c..00000000
--- a/node_modules/@babel/plugin-transform-template-literals/package.json
+++ /dev/null
@@ -1,58 +0,0 @@
-{
- "_args": [
- [
- "@babel/plugin-transform-template-literals@7.4.4",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/plugin-transform-template-literals@7.4.4",
- "_id": "@babel/plugin-transform-template-literals@7.4.4",
- "_inBundle": false,
- "_integrity": "sha512-mQrEC4TWkhLN0z8ygIvEL9ZEToPhG5K7KDW3pzGqOfIGZ28Jb0POUkeWcoz8HnHvhFy6dwAT1j8OzqN8s804+g==",
- "_location": "/@babel/plugin-transform-template-literals",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/plugin-transform-template-literals@7.4.4",
- "name": "@babel/plugin-transform-template-literals",
- "escapedName": "@babel%2fplugin-transform-template-literals",
- "scope": "@babel",
- "rawSpec": "7.4.4",
- "saveSpec": null,
- "fetchSpec": "7.4.4"
- },
- "_requiredBy": [
- "/@babel/preset-env"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.4.4.tgz",
- "_spec": "7.4.4",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-annotate-as-pure": "^7.0.0",
- "@babel/helper-plugin-utils": "^7.0.0"
- },
- "description": "Compile ES2015 template literals to ES5",
- "devDependencies": {
- "@babel/core": "^7.4.4",
- "@babel/helper-plugin-test-runner": "^7.0.0"
- },
- "gitHead": "2c88694388831b1e5b88e4bbed6781eb2be1edba",
- "keywords": [
- "babel-plugin"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/plugin-transform-template-literals",
- "peerDependencies": {
- "@babel/core": "^7.0.0-0"
- },
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-template-literals"
- },
- "version": "7.4.4"
-}
diff --git a/node_modules/@babel/plugin-transform-typeof-symbol/LICENSE b/node_modules/@babel/plugin-transform-typeof-symbol/LICENSE
deleted file mode 100644
index a06ec0e7..00000000
--- a/node_modules/@babel/plugin-transform-typeof-symbol/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-2018 Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/plugin-transform-typeof-symbol/README.md b/node_modules/@babel/plugin-transform-typeof-symbol/README.md
deleted file mode 100644
index 1ad64fd3..00000000
--- a/node_modules/@babel/plugin-transform-typeof-symbol/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/plugin-transform-typeof-symbol
-
-> This transformer wraps all typeof expressions with a method that replicates native behaviour. (ie. returning “symbol” for symbols)
-
-See our website [@babel/plugin-transform-typeof-symbol](https://babeljs.io/docs/en/next/babel-plugin-transform-typeof-symbol.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/plugin-transform-typeof-symbol
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/plugin-transform-typeof-symbol --dev
-```
diff --git a/node_modules/@babel/plugin-transform-typeof-symbol/lib/index.js b/node_modules/@babel/plugin-transform-typeof-symbol/lib/index.js
deleted file mode 100644
index b8b8e3c4..00000000
--- a/node_modules/@babel/plugin-transform-typeof-symbol/lib/index.js
+++ /dev/null
@@ -1,84 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _helperPluginUtils() {
- const data = require("@babel/helper-plugin-utils");
-
- _helperPluginUtils = function () {
- return data;
- };
-
- return data;
-}
-
-function _core() {
- const data = require("@babel/core");
-
- _core = function () {
- return data;
- };
-
- return data;
-}
-
-var _default = (0, _helperPluginUtils().declare)(api => {
- api.assertVersion(7);
- return {
- name: "transform-typeof-symbol",
- visitor: {
- Scope({
- scope
- }) {
- if (!scope.getBinding("Symbol")) {
- return;
- }
-
- scope.rename("Symbol");
- },
-
- UnaryExpression(path) {
- const {
- node,
- parent
- } = path;
- if (node.operator !== "typeof") return;
-
- if (path.parentPath.isBinaryExpression() && _core().types.EQUALITY_BINARY_OPERATORS.indexOf(parent.operator) >= 0) {
- const opposite = path.getOpposite();
-
- if (opposite.isLiteral() && opposite.node.value !== "symbol" && opposite.node.value !== "object") {
- return;
- }
- }
-
- const helper = this.addHelper("typeof");
- const isUnderHelper = path.findParent(path => {
- return path.isVariableDeclarator() && path.node.id === helper || path.isFunctionDeclaration() && path.node.id && path.node.id.name === helper.name;
- });
-
- if (isUnderHelper) {
- return;
- }
-
- const call = _core().types.callExpression(helper, [node.argument]);
-
- const arg = path.get("argument");
-
- if (arg.isIdentifier() && !path.scope.hasBinding(arg.node.name, true)) {
- const unary = _core().types.unaryExpression("typeof", _core().types.cloneNode(node.argument));
-
- path.replaceWith(_core().types.conditionalExpression(_core().types.binaryExpression("===", unary, _core().types.stringLiteral("undefined")), _core().types.stringLiteral("undefined"), call));
- } else {
- path.replaceWith(call);
- }
- }
-
- }
- };
-});
-
-exports.default = _default;
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-transform-typeof-symbol/package.json b/node_modules/@babel/plugin-transform-typeof-symbol/package.json
deleted file mode 100644
index 9a2aba5c..00000000
--- a/node_modules/@babel/plugin-transform-typeof-symbol/package.json
+++ /dev/null
@@ -1,56 +0,0 @@
-{
- "_args": [
- [
- "@babel/plugin-transform-typeof-symbol@7.2.0",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/plugin-transform-typeof-symbol@7.2.0",
- "_id": "@babel/plugin-transform-typeof-symbol@7.2.0",
- "_inBundle": false,
- "_integrity": "sha512-2LNhETWYxiYysBtrBTqL8+La0jIoQQnIScUJc74OYvUGRmkskNY4EzLCnjHBzdmb38wqtTaixpo1NctEcvMDZw==",
- "_location": "/@babel/plugin-transform-typeof-symbol",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/plugin-transform-typeof-symbol@7.2.0",
- "name": "@babel/plugin-transform-typeof-symbol",
- "escapedName": "@babel%2fplugin-transform-typeof-symbol",
- "scope": "@babel",
- "rawSpec": "7.2.0",
- "saveSpec": null,
- "fetchSpec": "7.2.0"
- },
- "_requiredBy": [
- "/@babel/preset-env"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.2.0.tgz",
- "_spec": "7.2.0",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-plugin-utils": "^7.0.0"
- },
- "description": "This transformer wraps all typeof expressions with a method that replicates native behaviour. (ie. returning “symbol” for symbols)",
- "devDependencies": {
- "@babel/core": "^7.2.0",
- "@babel/helper-plugin-test-runner": "^7.0.0"
- },
- "keywords": [
- "babel-plugin"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/plugin-transform-typeof-symbol",
- "peerDependencies": {
- "@babel/core": "^7.0.0-0"
- },
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-typeof-symbol"
- },
- "version": "7.2.0"
-}
diff --git a/node_modules/@babel/plugin-transform-unicode-regex/LICENSE b/node_modules/@babel/plugin-transform-unicode-regex/LICENSE
deleted file mode 100644
index f31575ec..00000000
--- a/node_modules/@babel/plugin-transform-unicode-regex/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-present Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/plugin-transform-unicode-regex/README.md b/node_modules/@babel/plugin-transform-unicode-regex/README.md
deleted file mode 100644
index 8cc2585b..00000000
--- a/node_modules/@babel/plugin-transform-unicode-regex/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/plugin-transform-unicode-regex
-
-> Compile ES2015 Unicode regex to ES5
-
-See our website [@babel/plugin-transform-unicode-regex](https://babeljs.io/docs/en/next/babel-plugin-transform-unicode-regex.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/plugin-transform-unicode-regex
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/plugin-transform-unicode-regex --dev
-```
diff --git a/node_modules/@babel/plugin-transform-unicode-regex/lib/index.js b/node_modules/@babel/plugin-transform-unicode-regex/lib/index.js
deleted file mode 100644
index 0c1473eb..00000000
--- a/node_modules/@babel/plugin-transform-unicode-regex/lib/index.js
+++ /dev/null
@@ -1,59 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _helperPluginUtils() {
- const data = require("@babel/helper-plugin-utils");
-
- _helperPluginUtils = function () {
- return data;
- };
-
- return data;
-}
-
-function _regexpuCore() {
- const data = _interopRequireDefault(require("regexpu-core"));
-
- _regexpuCore = function () {
- return data;
- };
-
- return data;
-}
-
-function regex() {
- const data = _interopRequireWildcard(require("@babel/helper-regex"));
-
- regex = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-var _default = (0, _helperPluginUtils().declare)(api => {
- api.assertVersion(7);
- return {
- name: "transform-unicode-regex",
- visitor: {
- RegExpLiteral({
- node
- }) {
- if (!regex().is(node, "u")) return;
- node.pattern = (0, _regexpuCore().default)(node.pattern, node.flags);
- regex().pullFlag(node, "u");
- }
-
- }
- };
-});
-
-exports.default = _default;
\ No newline at end of file
diff --git a/node_modules/@babel/plugin-transform-unicode-regex/package.json b/node_modules/@babel/plugin-transform-unicode-regex/package.json
deleted file mode 100644
index 8c818caf..00000000
--- a/node_modules/@babel/plugin-transform-unicode-regex/package.json
+++ /dev/null
@@ -1,59 +0,0 @@
-{
- "_args": [
- [
- "@babel/plugin-transform-unicode-regex@7.4.4",
- "E:\\python\\setup-php"
- ]
- ],
- "_from": "@babel/plugin-transform-unicode-regex@7.4.4",
- "_id": "@babel/plugin-transform-unicode-regex@7.4.4",
- "_inBundle": false,
- "_integrity": "sha512-il+/XdNw01i93+M9J9u4T7/e/Ue/vWfNZE4IRUQjplu2Mqb/AFTDimkw2tdEdSH50wuQXZAbXSql0UphQke+vA==",
- "_location": "/@babel/plugin-transform-unicode-regex",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/plugin-transform-unicode-regex@7.4.4",
- "name": "@babel/plugin-transform-unicode-regex",
- "escapedName": "@babel%2fplugin-transform-unicode-regex",
- "scope": "@babel",
- "rawSpec": "7.4.4",
- "saveSpec": null,
- "fetchSpec": "7.4.4"
- },
- "_requiredBy": [
- "/@babel/preset-env"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.4.4.tgz",
- "_spec": "7.4.4",
- "_where": "E:\\python\\setup-php",
- "dependencies": {
- "@babel/helper-plugin-utils": "^7.0.0",
- "@babel/helper-regex": "^7.4.4",
- "regexpu-core": "^4.5.4"
- },
- "description": "Compile ES2015 Unicode regex to ES5",
- "devDependencies": {
- "@babel/core": "^7.4.4",
- "@babel/helper-plugin-test-runner": "^7.0.0"
- },
- "gitHead": "2c88694388831b1e5b88e4bbed6781eb2be1edba",
- "keywords": [
- "babel-plugin"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/plugin-transform-unicode-regex",
- "peerDependencies": {
- "@babel/core": "^7.0.0-0"
- },
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-unicode-regex"
- },
- "version": "7.4.4"
-}
diff --git a/node_modules/@babel/preset-env/CONTRIBUTING.md b/node_modules/@babel/preset-env/CONTRIBUTING.md
deleted file mode 100644
index de861d99..00000000
--- a/node_modules/@babel/preset-env/CONTRIBUTING.md
+++ /dev/null
@@ -1,103 +0,0 @@
-# Contributing
-
-## Adding a new plugin or polyfill to support (when approved in the next ECMAScript version)
-
-### Update [`plugin-features.js`](https://github.com/babel/babel/blob/master/packages/babel-preset-env/data/plugin-features.js)
-
-*Example:*
-
-If you were going to add `**` which is in ES2016:
-
-Find the relevant entries on [compat-table](https://kangax.github.io/compat-table/es2016plus/#test-exponentiation_(**)_operator):
-
-`exponentiation (**) operator`
-
-Find the corresponding babel plugin:
-
-`@babel/plugin-transform-exponentiation-operator`
-
-And add them in this structure:
-
-```js
-// es2016
-"@babel/plugin-transform-exponentiation-operator": {
- features: [
- "exponentiation (**) operator",
- ],
-},
-```
-
-### Update data for `core-js@2` polyfilling
-
-*Example:*
-
-In case you want to add `Object.values` which is in ES2017:
-
-Find the relevant feature and subfeature on [compat-table](https://kangax.github.io/compat-table/es2016plus/#test-Object_static_methods_Object.values)
-and split it with `/`:
-
-`Object static methods / Object.values`
-
-Find the corresponding module on [`core-js@2`](https://github.com/zloirock/core-js/tree/v2/modules):
-
-`es7.object.values.js`
-
-Find required ES version in [`corejs2-built-in-features.js`](https://github.com/babel/babel/blob/master/packages/babel-preset-env/data/corejs2-built-in-features.js) and add the new feature:
-
-```js
-const es = {
- //...
- "es7.object.values": "Object static methods / Object.values"
-}
-```
-
-If you wan to transform a new built-in by `useBuiltIns: 'usage'`, add mapping to related `core-js` modules to [this file](https://github.com/babel/babel/blob/master/packages/babel-preset-env/polyfills/corejs2/built-in-definitions.js).
-
-### Update data for `core-js@3` polyfilling
-
-Just update the version of [`core-js-compat`](https://github.com/zloirock/core-js/tree/master/packages/core-js-compat) in dependencies.
-
-If you wan to transform a new built-in by `useBuiltIns: 'usage'`, add mapping to related [`core-js`](https://github.com/zloirock/core-js/tree/master/packages/core-js/modules) modules to [this file](https://github.com/babel/babel/blob/master/packages/babel-preset-env/polyfills/corejs3/built-in-definitions.js).
-
-If you want to mark a new proposal as shipped, add it to [this list](https://github.com/babel/babel/blob/master/packages/babel-preset-env/polyfills/corejs3/shipped-proposals.js).
-
-### Update [`plugins.json`](https://github.com/babel/babel/blob/master/packages/babel-preset-env/data/plugins.json)
-
-Until `compat-table` is a standalone npm module for data we are using the git url
-
-`"compat-table": "kangax/compat-table#[latest-commit-hash]"`,
-
-So we update and then run `npm run build-data`. If there are no changes, then `plugins.json` will be the same.
-
-## Tests
-
-### Running tests locally
-
-```bash
-npm test
-```
-
-### Checking code coverage locally
-
-```bash
-npm run coverage
-```
-
-### Writing tests
-
-#### General
-
-All the tests for `@babel/preset-env` exist in the `test/fixtures` folder. The
-test setup and conventions are exactly the same as testing a Babel plugin, so
-please read our [documentation on writing tests](https://github.com/babel/babel/blob/master/CONTRIBUTING.md#babel-plugin-x).
-
-#### Testing the `debug` option
-
-Testing debug output to `stdout` is similar. Under the `test/debug-fixtures`,
-create a folder with a descriptive name of your test, and add the following:
-
-* Add a `options.json` file (just as the other tests, this is essentially a
-`.babelrc`) with the desired test configuration (required)
-* Add a `stdout.txt` file with the expected debug output. For added
-convenience, if there is no `stdout.txt` present, the test runner will
-generate one for you.
diff --git a/node_modules/@babel/preset-env/LICENSE b/node_modules/@babel/preset-env/LICENSE
deleted file mode 100644
index f31575ec..00000000
--- a/node_modules/@babel/preset-env/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-present Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/preset-env/README.md b/node_modules/@babel/preset-env/README.md
deleted file mode 100644
index 5d226b38..00000000
--- a/node_modules/@babel/preset-env/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/preset-env
-
-> A Babel preset for each environment.
-
-See our website [@babel/preset-env](https://babeljs.io/docs/en/next/babel-preset-env.html) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20preset-env%22+is%3Aopen) associated with this package.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/preset-env
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/preset-env --dev
-```
diff --git a/node_modules/@babel/preset-env/data/built-in-modules.json b/node_modules/@babel/preset-env/data/built-in-modules.json
deleted file mode 100644
index 5bada5f5..00000000
--- a/node_modules/@babel/preset-env/data/built-in-modules.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "es6.module": {
- "edge": "16",
- "firefox": "60",
- "chrome": "61",
- "safari": "10.1",
- "opera": "48",
- "ios_saf": "10.3",
- "and_chr": "71",
- "and_ff": "64"
- }
-}
diff --git a/node_modules/@babel/preset-env/data/built-ins.json.js b/node_modules/@babel/preset-env/data/built-ins.json.js
deleted file mode 100644
index 38f8a09a..00000000
--- a/node_modules/@babel/preset-env/data/built-ins.json.js
+++ /dev/null
@@ -1,4 +0,0 @@
-// TODO: Remove in Babel 8
-// https://github.com/vuejs/vue-cli/issues/3671
-
-module.exports = require("./corejs2-built-ins.json");
diff --git a/node_modules/@babel/preset-env/data/corejs2-built-in-features.js b/node_modules/@babel/preset-env/data/corejs2-built-in-features.js
deleted file mode 100644
index f18244b4..00000000
--- a/node_modules/@babel/preset-env/data/corejs2-built-in-features.js
+++ /dev/null
@@ -1,335 +0,0 @@
-const typedArrayMethods = [
- "typed arrays / %TypedArray%.from",
- "typed arrays / %TypedArray%.of",
- "typed arrays / %TypedArray%.prototype.subarray",
- "typed arrays / %TypedArray%.prototype.join",
- "typed arrays / %TypedArray%.prototype.indexOf",
- "typed arrays / %TypedArray%.prototype.lastIndexOf",
- "typed arrays / %TypedArray%.prototype.slice",
- "typed arrays / %TypedArray%.prototype.every",
- "typed arrays / %TypedArray%.prototype.filter",
- "typed arrays / %TypedArray%.prototype.forEach",
- "typed arrays / %TypedArray%.prototype.map",
- "typed arrays / %TypedArray%.prototype.reduce",
- "typed arrays / %TypedArray%.prototype.reduceRight",
- "typed arrays / %TypedArray%.prototype.reverse",
- "typed arrays / %TypedArray%.prototype.some",
- "typed arrays / %TypedArray%.prototype.sort",
- "typed arrays / %TypedArray%.prototype.copyWithin",
- "typed arrays / %TypedArray%.prototype.find",
- "typed arrays / %TypedArray%.prototype.findIndex",
- "typed arrays / %TypedArray%.prototype.fill",
- "typed arrays / %TypedArray%.prototype.keys",
- "typed arrays / %TypedArray%.prototype.values",
- "typed arrays / %TypedArray%.prototype.entries",
- "typed arrays / %TypedArray%.prototype[Symbol.iterator]",
- "typed arrays / %TypedArray%[Symbol.species]",
-];
-
-const es = {
- // compat-table missing babel6 mapping
- // "es6.array.concat": {
- // features: [
- // "well-known symbols / Symbol.isConcatSpreadable",
- // "well-known symbols / Symbol.species, Array.prototype.concat",
- // ]
- // },
- "es6.array.copy-within": "Array.prototype methods / Array.prototype.copyWithin",
- "es6.array.every": "Array methods / Array.prototype.every",
- "es6.array.fill": "Array.prototype methods / Array.prototype.fill",
- "es6.array.filter": {
- features: [
- "Array methods / Array.prototype.filter",
- // compat-table missing babel6 mapping
- // "well-known symbols / Symbol.species, Array.prototype.filter",
- ],
- },
- "es6.array.find": "Array.prototype methods / Array.prototype.find",
- "es6.array.find-index": "Array.prototype methods / Array.prototype.findIndex",
- "es7.array.flat-map": "Array.prototype.{flat, flatMap} / Array.prototype.flatMap",
- "es6.array.for-each": "Array methods / Array.prototype.forEach",
- "es6.array.from": "Array static methods / Array.from",
- "es7.array.includes": "Array.prototype.includes",
- "es6.array.index-of": "Array methods / Array.prototype.indexOf",
- "es6.array.is-array": "Array methods / Array.isArray",
- // "es.array.join": "", required tests for that
- "es6.array.iterator": {
- features: [
- "Array.prototype methods / Array.prototype.keys",
- // can use Symbol.iterator, not implemented in many environments
- // "Array.prototype methods / Array.prototype.values",
- "Array.prototype methods / Array.prototype.entries",
- ],
- },
- "es6.array.last-index-of": "Array methods / Array.prototype.lastIndexOf",
- "es6.array.map": {
- features: [
- "Array methods / Array.prototype.map",
- // compat-table missing babel6 mapping
- // "well-known symbols / Symbol.species, Array.prototype.map",
- ],
- },
- "es6.array.of": "Array static methods / Array.of",
- "es6.array.reduce": "Array methods / Array.prototype.reduce",
- "es6.array.reduce-right": "Array methods / Array.prototype.reduceRight",
- // compat-table missing babel6 mapping
- // "es6.array.slice": "well-known symbols / Symbol.species, Array.prototype.slice",
- "es6.array.some": "Array methods / Array.prototype.some",
- "es6.array.sort": "Array methods / Array.prototype.sort",
- "es6.array.species": "Array static methods / Array[Symbol.species]",
- // compat-table missing babel6 mapping
- //"es6.array.splice": "well-known symbols / Symbol.species, Array.prototype.splice",
-
- "es6.date.now": "Date methods / Date.now",
- "es6.date.to-iso-string": "Date methods / Date.prototype.toISOString",
- "es6.date.to-json": "Date methods / Date.prototype.toJSON",
- "es6.date.to-primitive": "Date.prototype[Symbol.toPrimitive]",
- "es6.date.to-string": "miscellaneous / Invalid Date",
-
- "es6.function.bind": "Function.prototype.bind",
- "es6.function.has-instance": "well-known symbols / Symbol.hasInstance",
- "es6.function.name": {
- features: [
- "function \"name\" property / function statements",
- "function \"name\" property / function expressions",
- ],
- },
-
- "es6.map": "Map",
-
- "es6.math.acosh": "Math methods / Math.acosh",
- "es6.math.asinh": "Math methods / Math.asinh",
- "es6.math.atanh": "Math methods / Math.atanh",
- "es6.math.cbrt": "Math methods / Math.cbrt",
- "es6.math.clz32": "Math methods / Math.clz32",
- "es6.math.cosh": "Math methods / Math.cosh",
- "es6.math.expm1": "Math methods / Math.expm1",
- "es6.math.fround": "Math methods / Math.fround",
- "es6.math.hypot": "Math methods / Math.hypot",
- "es6.math.imul": "Math methods / Math.imul",
- "es6.math.log1p": "Math methods / Math.log1p",
- "es6.math.log10": "Math methods / Math.log10",
- "es6.math.log2": "Math methods / Math.log2",
- "es6.math.sign": "Math methods / Math.sign",
- "es6.math.sinh": "Math methods / Math.sinh",
- "es6.math.tanh": "Math methods / Math.tanh",
- "es6.math.trunc": "Math methods / Math.trunc",
-
- "es6.number.constructor": {
- features: [
- "octal and binary literals / octal supported by Number()",
- "octal and binary literals / binary supported by Number()",
- ],
- },
- "es6.number.epsilon": "Number properties / Number.EPSILON",
- "es6.number.is-finite": "Number properties / Number.isFinite",
- "es6.number.is-integer": "Number properties / Number.isInteger",
- "es6.number.is-nan": "Number properties / Number.isNaN",
- "es6.number.is-safe-integer": "Number properties / Number.isSafeInteger",
- "es6.number.max-safe-integer": "Number properties / Number.MAX_SAFE_INTEGER",
- "es6.number.min-safe-integer": "Number properties / Number.MIN_SAFE_INTEGER",
- "es6.number.parse-float": "Number properties / Number.parseFloat",
- "es6.number.parse-int": "Number properties / Number.parseInt",
-
- "es6.object.assign": {
- features: ["Object static methods / Object.assign", "Symbol"],
- },
- "es6.object.create": "Object static methods / Object.create",
- "es7.object.define-getter": {
- features: [
- "Object.prototype getter/setter methods / __defineGetter__",
- "Object.prototype getter/setter methods / __defineGetter__, symbols",
- "Object.prototype getter/setter methods / __defineGetter__, ToObject(this)",
- ],
- },
- "es7.object.define-setter": {
- features: [
- "Object.prototype getter/setter methods / __defineSetter__",
- "Object.prototype getter/setter methods / __defineSetter__, symbols",
- "Object.prototype getter/setter methods / __defineSetter__, ToObject(this)",
- ],
- },
- "es6.object.define-property": "Object static methods / Object.defineProperty",
- "es6.object.define-properties": "Object static methods / Object.defineProperties",
- "es7.object.entries": "Object static methods / Object.entries",
- "es6.object.freeze": "Object static methods accept primitives / Object.freeze",
- "es6.object.get-own-property-descriptor": "Object static methods accept primitives / Object.getOwnPropertyDescriptor",
- "es7.object.get-own-property-descriptors": "Object static methods / Object.getOwnPropertyDescriptors",
- "es6.object.get-own-property-names": "Object static methods accept primitives / Object.getOwnPropertyNames",
- "es6.object.get-prototype-of": "Object static methods accept primitives / Object.getPrototypeOf",
- "es7.object.lookup-getter": {
- features: [
- "Object.prototype getter/setter methods / __lookupGetter__",
- "Object.prototype getter/setter methods / __lookupGetter__, prototype chain",
- "Object.prototype getter/setter methods / __lookupGetter__, symbols",
- "Object.prototype getter/setter methods / __lookupGetter__, ToObject(this)",
- "Object.prototype getter/setter methods / __lookupGetter__, data properties can shadow accessors",
- ],
- },
- "es7.object.lookup-setter": {
- features: [
- "Object.prototype getter/setter methods / __lookupSetter__",
- "Object.prototype getter/setter methods / __lookupSetter__, prototype chain",
- "Object.prototype getter/setter methods / __lookupSetter__, symbols",
- "Object.prototype getter/setter methods / __lookupSetter__, ToObject(this)",
- "Object.prototype getter/setter methods / __lookupSetter__, data properties can shadow accessors",
- ],
- },
- "es6.object.prevent-extensions": "Object static methods accept primitives / Object.preventExtensions",
- "es6.object.to-string": "well-known symbols / Symbol.toStringTag",
- "es6.object.is": "Object static methods / Object.is",
- "es6.object.is-frozen": "Object static methods accept primitives / Object.isFrozen",
- "es6.object.is-sealed": "Object static methods accept primitives / Object.isSealed",
- "es6.object.is-extensible": "Object static methods accept primitives / Object.isExtensible",
- "es6.object.keys": "Object static methods accept primitives / Object.keys",
- "es6.object.seal": "Object static methods accept primitives / Object.seal",
- "es6.object.set-prototype-of": "Object static methods / Object.setPrototypeOf",
- "es7.object.values": "Object static methods / Object.values",
-
- "es6.promise": {
- features: [
- // required unhandled rejection tracking tests
- "Promise",
- "well-known symbols / Symbol.species, Promise.prototype.then",
- ],
- },
- "es7.promise.finally": "Promise.prototype.finally",
-
- "es6.reflect.apply": "Reflect / Reflect.apply",
- "es6.reflect.construct": "Reflect / Reflect.construct",
- "es6.reflect.define-property": "Reflect / Reflect.defineProperty",
- "es6.reflect.delete-property": "Reflect / Reflect.deleteProperty",
- "es6.reflect.get": "Reflect / Reflect.get",
- "es6.reflect.get-own-property-descriptor": "Reflect / Reflect.getOwnPropertyDescriptor",
- "es6.reflect.get-prototype-of": "Reflect / Reflect.getPrototypeOf",
- "es6.reflect.has": "Reflect / Reflect.has",
- "es6.reflect.is-extensible": "Reflect / Reflect.isExtensible",
- "es6.reflect.own-keys": "Reflect / Reflect.ownKeys",
- "es6.reflect.prevent-extensions": "Reflect / Reflect.preventExtensions",
- "es6.reflect.set": "Reflect / Reflect.set",
- "es6.reflect.set-prototype-of": "Reflect / Reflect.setPrototypeOf",
-
- "es6.regexp.constructor": {
- features: [
- "miscellaneous / RegExp constructor can alter flags",
- "well-known symbols / Symbol.match, RegExp constructor",
- ],
- },
- "es6.regexp.flags": "RegExp.prototype properties / RegExp.prototype.flags",
- "es6.regexp.match": "RegExp.prototype properties / RegExp.prototype[Symbol.match]",
- "es6.regexp.replace": "RegExp.prototype properties / RegExp.prototype[Symbol.replace]",
- "es6.regexp.split": "RegExp.prototype properties / RegExp.prototype[Symbol.split]",
- "es6.regexp.search": "RegExp.prototype properties / RegExp.prototype[Symbol.search]",
- "es6.regexp.to-string": "miscellaneous / RegExp.prototype.toString generic and uses \"flags\" property",
-
- // This is explicit due to prevent the stage-1 Set proposals under the
- // category "Set methods" from being included.
- "es6.set": {
- features: [
- "Set / basic functionality",
- "Set / constructor arguments",
- "Set / constructor requires new",
- "Set / constructor accepts null",
- "Set / constructor invokes add",
- "Set / iterator closing",
- "Set / Set.prototype.add returns this",
- "Set / -0 key converts to +0",
- "Set / Set.prototype.size",
- "Set / Set.prototype.delete",
- "Set / Set.prototype.clear",
- "Set / Set.prototype.forEach",
- "Set / Set.prototype.keys",
- "Set / Set.prototype.values",
- "Set / Set.prototype.entries",
- "Set / Set.prototype[Symbol.iterator]",
- "Set / Set.prototype isn't an instance",
- "Set / Set iterator prototype chain",
- "Set / Set[Symbol.species]",
- ],
- },
-
- "es6.symbol": {
- features: [
- "Symbol",
- "Object static methods / Object.getOwnPropertySymbols",
- "well-known symbols / Symbol.hasInstance",
- "well-known symbols / Symbol.isConcatSpreadable",
- "well-known symbols / Symbol.iterator",
- "well-known symbols / Symbol.match",
- "well-known symbols / Symbol.replace",
- "well-known symbols / Symbol.search",
- "well-known symbols / Symbol.species",
- "well-known symbols / Symbol.split",
- "well-known symbols / Symbol.toPrimitive",
- "well-known symbols / Symbol.toStringTag",
- "well-known symbols / Symbol.unscopables",
- ],
- },
- "es7.symbol.async-iterator": "Asynchronous Iterators",
-
- "es6.string.anchor": "String.prototype HTML methods",
- "es6.string.big": "String.prototype HTML methods",
- "es6.string.blink": "String.prototype HTML methods",
- "es6.string.bold": "String.prototype HTML methods",
- "es6.string.code-point-at": "String.prototype methods / String.prototype.codePointAt",
- "es6.string.ends-with": "String.prototype methods / String.prototype.endsWith",
- "es6.string.fixed": "String.prototype HTML methods",
- "es6.string.fontcolor": "String.prototype HTML methods",
- "es6.string.fontsize": "String.prototype HTML methods",
- "es6.string.from-code-point": "String static methods / String.fromCodePoint",
- "es6.string.includes": "String.prototype methods / String.prototype.includes",
- "es6.string.italics": "String.prototype HTML methods",
- "es6.string.iterator": "String.prototype methods / String.prototype[Symbol.iterator]",
- "es6.string.link": "String.prototype HTML methods",
- // "String.prototype methods / String.prototype.normalize" not implemented
- "es7.string.pad-start": "String padding / String.prototype.padStart",
- "es7.string.pad-end": "String padding / String.prototype.padEnd",
- "es6.string.raw": "String static methods / String.raw",
- "es6.string.repeat": "String.prototype methods / String.prototype.repeat",
- "es6.string.small": "String.prototype HTML methods",
- "es6.string.starts-with": "String.prototype methods / String.prototype.startsWith",
- "es6.string.strike": "String.prototype HTML methods",
- "es6.string.sub": "String.prototype HTML methods",
- "es6.string.sup": "String.prototype HTML methods",
- "es6.string.trim": "String properties and methods / String.prototype.trim",
- "es7.string.trim-left": "string trimming / String.prototype.trimStart",
- "es7.string.trim-right": "string trimming / String.prototype.trimEnd",
-
- "es6.typed.array-buffer": "typed arrays / ArrayBuffer[Symbol.species]",
- "es6.typed.data-view": "typed arrays / DataView",
- "es6.typed.int8-array": {
- features: ["typed arrays / Int8Array"].concat(typedArrayMethods),
- },
- "es6.typed.uint8-array": {
- features: ["typed arrays / Uint8Array"].concat(typedArrayMethods),
- },
- "es6.typed.uint8-clamped-array": {
- features: ["typed arrays / Uint8ClampedArray"].concat(typedArrayMethods),
- },
- "es6.typed.int16-array": {
- features: ["typed arrays / Int16Array"].concat(typedArrayMethods),
- },
- "es6.typed.uint16-array": {
- features: ["typed arrays / Uint16Array"].concat(typedArrayMethods),
- },
- "es6.typed.int32-array": {
- features: ["typed arrays / Int32Array"].concat(typedArrayMethods),
- },
- "es6.typed.uint32-array": {
- features: ["typed arrays / Uint32Array"].concat(typedArrayMethods),
- },
- "es6.typed.float32-array": {
- features: ["typed arrays / Float32Array"].concat(typedArrayMethods),
- },
- "es6.typed.float64-array": {
- features: ["typed arrays / Float64Array"].concat(typedArrayMethods),
- },
-
- "es6.weak-map": "WeakMap",
-
- "es6.weak-set": "WeakSet",
-};
-
-const proposals = require("./shipped-proposals").builtIns;
-
-module.exports = Object.assign({}, es, proposals);
diff --git a/node_modules/@babel/preset-env/data/corejs2-built-ins.json b/node_modules/@babel/preset-env/data/corejs2-built-ins.json
deleted file mode 100644
index 2079f1c3..00000000
--- a/node_modules/@babel/preset-env/data/corejs2-built-ins.json
+++ /dev/null
@@ -1,1657 +0,0 @@
-{
- "es6.array.copy-within": {
- "chrome": "45",
- "edge": "12",
- "firefox": "32",
- "safari": "9",
- "node": "4",
- "ios": "9",
- "samsung": "5",
- "opera": "32",
- "electron": "0.35"
- },
- "es6.array.every": {
- "chrome": "5",
- "opera": "10.10",
- "edge": "12",
- "firefox": "2",
- "safari": "3.1",
- "node": "0.10",
- "ie": "9",
- "android": "4",
- "ios": "6",
- "phantom": "2",
- "samsung": "2.1",
- "electron": "1.1"
- },
- "es6.array.fill": {
- "chrome": "45",
- "edge": "12",
- "firefox": "31",
- "safari": "7.1",
- "node": "4",
- "ios": "8",
- "samsung": "5",
- "opera": "32",
- "electron": "0.35"
- },
- "es6.array.filter": {
- "chrome": "5",
- "opera": "10.10",
- "edge": "12",
- "firefox": "2",
- "safari": "3.1",
- "node": "0.10",
- "ie": "9",
- "android": "4",
- "ios": "6",
- "phantom": "2",
- "samsung": "2.1",
- "electron": "1.1"
- },
- "es6.array.find": {
- "chrome": "45",
- "edge": "12",
- "firefox": "25",
- "safari": "7.1",
- "node": "4",
- "ios": "8",
- "samsung": "5",
- "opera": "32",
- "electron": "0.35"
- },
- "es6.array.find-index": {
- "chrome": "45",
- "edge": "12",
- "firefox": "25",
- "safari": "7.1",
- "node": "4",
- "ios": "8",
- "samsung": "5",
- "opera": "32",
- "electron": "0.35"
- },
- "es7.array.flat-map": {
- "chrome": "69",
- "firefox": "62",
- "safari": "12",
- "node": "11",
- "ios": "12",
- "opera": "56",
- "electron": "4"
- },
- "es6.array.for-each": {
- "chrome": "5",
- "opera": "10.10",
- "edge": "12",
- "firefox": "2",
- "safari": "3.1",
- "node": "0.10",
- "ie": "9",
- "android": "4",
- "ios": "6",
- "phantom": "2",
- "samsung": "2.1",
- "electron": "1.1"
- },
- "es6.array.from": {
- "chrome": "51",
- "edge": "15",
- "firefox": "36",
- "safari": "10",
- "node": "6.5",
- "ios": "10",
- "samsung": "5",
- "opera": "38",
- "electron": "1.2"
- },
- "es7.array.includes": {
- "chrome": "47",
- "edge": "14",
- "firefox": "43",
- "safari": "10",
- "node": "6",
- "ios": "10",
- "samsung": "5",
- "opera": "34",
- "electron": "0.36"
- },
- "es6.array.index-of": {
- "chrome": "5",
- "opera": "10.10",
- "edge": "12",
- "firefox": "2",
- "safari": "3.1",
- "node": "0.10",
- "ie": "9",
- "android": "4",
- "ios": "6",
- "phantom": "2",
- "samsung": "2.1",
- "electron": "1.1"
- },
- "es6.array.is-array": {
- "chrome": "5",
- "opera": "10.50",
- "edge": "12",
- "firefox": "4",
- "safari": "4",
- "node": "0.10",
- "ie": "9",
- "android": "4",
- "ios": "6",
- "phantom": "2",
- "samsung": "2.1",
- "electron": "1.1"
- },
- "es6.array.iterator": {
- "chrome": "38",
- "edge": "12",
- "firefox": "28",
- "safari": "7.1",
- "node": "0.12",
- "ios": "8",
- "samsung": "3",
- "opera": "25",
- "electron": "0.2"
- },
- "es6.array.last-index-of": {
- "chrome": "5",
- "opera": "10.10",
- "edge": "12",
- "firefox": "2",
- "safari": "3.1",
- "node": "0.10",
- "ie": "9",
- "android": "4",
- "ios": "6",
- "phantom": "2",
- "samsung": "2.1",
- "electron": "1.1"
- },
- "es6.array.map": {
- "chrome": "5",
- "opera": "10.10",
- "edge": "12",
- "firefox": "2",
- "safari": "3.1",
- "node": "0.10",
- "ie": "9",
- "android": "4",
- "ios": "6",
- "phantom": "2",
- "samsung": "2.1",
- "electron": "1.1"
- },
- "es6.array.of": {
- "chrome": "45",
- "edge": "12",
- "firefox": "25",
- "safari": "9",
- "node": "4",
- "ios": "9",
- "samsung": "5",
- "opera": "32",
- "electron": "0.35"
- },
- "es6.array.reduce": {
- "chrome": "5",
- "opera": "10.50",
- "edge": "12",
- "firefox": "3",
- "safari": "4",
- "node": "0.10",
- "ie": "9",
- "android": "4",
- "ios": "6",
- "phantom": "2",
- "samsung": "2.1",
- "electron": "1.1"
- },
- "es6.array.reduce-right": {
- "chrome": "5",
- "opera": "10.50",
- "edge": "12",
- "firefox": "3",
- "safari": "4",
- "node": "0.10",
- "ie": "9",
- "android": "4",
- "ios": "6",
- "phantom": "2",
- "samsung": "2.1",
- "electron": "1.1"
- },
- "es6.array.some": {
- "chrome": "5",
- "opera": "10.10",
- "edge": "12",
- "firefox": "2",
- "safari": "3.1",
- "node": "0.10",
- "ie": "9",
- "android": "4",
- "ios": "6",
- "phantom": "2",
- "samsung": "2.1",
- "electron": "1.1"
- },
- "es6.array.sort": {
- "chrome": "63",
- "opera": "50",
- "edge": "12",
- "firefox": "5",
- "safari": "12",
- "node": "10",
- "ie": "9",
- "ios": "12",
- "samsung": "8.2",
- "electron": "3.1"
- },
- "es6.array.species": {
- "chrome": "51",
- "edge": "13",
- "firefox": "48",
- "safari": "10",
- "node": "6.5",
- "ios": "10",
- "samsung": "5",
- "opera": "38",
- "electron": "1.2"
- },
- "es6.date.now": {
- "chrome": "5",
- "opera": "10.50",
- "edge": "12",
- "firefox": "2",
- "safari": "4",
- "node": "0.10",
- "ie": "9",
- "android": "4",
- "ios": "6",
- "phantom": "2",
- "samsung": "2.1",
- "electron": "1.1"
- },
- "es6.date.to-iso-string": {
- "chrome": "5",
- "opera": "10.50",
- "edge": "12",
- "firefox": "3.5",
- "safari": "4",
- "node": "0.10",
- "ie": "9",
- "android": "4",
- "ios": "6",
- "phantom": "2",
- "samsung": "2.1",
- "electron": "1.1"
- },
- "es6.date.to-json": {
- "chrome": "5",
- "opera": "12.10",
- "edge": "12",
- "firefox": "4",
- "safari": "10",
- "node": "0.10",
- "ie": "9",
- "android": "4",
- "ios": "10",
- "samsung": "2.1",
- "electron": "1.1"
- },
- "es6.date.to-primitive": {
- "chrome": "47",
- "edge": "15",
- "firefox": "44",
- "safari": "10",
- "node": "6",
- "ios": "10",
- "samsung": "5",
- "opera": "34",
- "electron": "0.36"
- },
- "es6.date.to-string": {
- "chrome": "5",
- "opera": "10.50",
- "edge": "12",
- "firefox": "2",
- "safari": "3.1",
- "node": "0.10",
- "ie": "10",
- "android": "4",
- "ios": "6",
- "phantom": "2",
- "samsung": "2.1",
- "electron": "1.1"
- },
- "es6.function.bind": {
- "chrome": "7",
- "opera": "12",
- "edge": "12",
- "firefox": "4",
- "safari": "5.1",
- "node": "0.10",
- "ie": "9",
- "android": "4",
- "ios": "6",
- "phantom": "2",
- "samsung": "2.1",
- "electron": "5"
- },
- "es6.function.has-instance": {
- "chrome": "51",
- "edge": "15",
- "firefox": "50",
- "safari": "10",
- "node": "6.5",
- "ios": "10",
- "samsung": "5",
- "opera": "38",
- "electron": "1.2"
- },
- "es6.function.name": {
- "chrome": "5",
- "opera": "10.50",
- "edge": "14",
- "firefox": "2",
- "safari": "4",
- "node": "0.10",
- "android": "4",
- "ios": "6",
- "phantom": "2",
- "samsung": "2.1",
- "electron": "1.1"
- },
- "es6.map": {
- "chrome": "51",
- "edge": "15",
- "firefox": "53",
- "safari": "10",
- "node": "6.5",
- "ios": "10",
- "samsung": "5",
- "opera": "38",
- "electron": "1.2"
- },
- "es6.math.acosh": {
- "chrome": "38",
- "edge": "12",
- "firefox": "25",
- "safari": "7.1",
- "node": "0.12",
- "ios": "8",
- "samsung": "3",
- "opera": "25",
- "electron": "0.2"
- },
- "es6.math.asinh": {
- "chrome": "38",
- "edge": "12",
- "firefox": "25",
- "safari": "7.1",
- "node": "0.12",
- "ios": "8",
- "samsung": "3",
- "opera": "25",
- "electron": "0.2"
- },
- "es6.math.atanh": {
- "chrome": "38",
- "edge": "12",
- "firefox": "25",
- "safari": "7.1",
- "node": "0.12",
- "ios": "8",
- "samsung": "3",
- "opera": "25",
- "electron": "0.2"
- },
- "es6.math.cbrt": {
- "chrome": "38",
- "edge": "12",
- "firefox": "25",
- "safari": "7.1",
- "node": "0.12",
- "ios": "8",
- "samsung": "3",
- "opera": "25",
- "electron": "0.2"
- },
- "es6.math.clz32": {
- "chrome": "38",
- "edge": "12",
- "firefox": "31",
- "safari": "9",
- "node": "0.12",
- "ios": "9",
- "samsung": "3",
- "opera": "25",
- "electron": "0.2"
- },
- "es6.math.cosh": {
- "chrome": "38",
- "edge": "12",
- "firefox": "25",
- "safari": "7.1",
- "node": "0.12",
- "ios": "8",
- "samsung": "3",
- "opera": "25",
- "electron": "0.2"
- },
- "es6.math.expm1": {
- "chrome": "38",
- "edge": "12",
- "firefox": "25",
- "safari": "7.1",
- "node": "0.12",
- "ios": "8",
- "samsung": "3",
- "opera": "25",
- "electron": "0.2"
- },
- "es6.math.fround": {
- "chrome": "38",
- "edge": "12",
- "firefox": "26",
- "safari": "7.1",
- "node": "0.12",
- "ios": "8",
- "samsung": "3",
- "opera": "25",
- "electron": "0.2"
- },
- "es6.math.hypot": {
- "chrome": "38",
- "edge": "12",
- "firefox": "27",
- "safari": "7.1",
- "node": "0.12",
- "ios": "8",
- "samsung": "3",
- "opera": "25",
- "electron": "0.2"
- },
- "es6.math.imul": {
- "chrome": "30",
- "edge": "12",
- "firefox": "23",
- "safari": "7",
- "node": "0.12",
- "android": "4.4",
- "ios": "7",
- "samsung": "2.1",
- "opera": "17",
- "electron": "0.2"
- },
- "es6.math.log1p": {
- "chrome": "38",
- "edge": "12",
- "firefox": "25",
- "safari": "7.1",
- "node": "0.12",
- "ios": "8",
- "samsung": "3",
- "opera": "25",
- "electron": "0.2"
- },
- "es6.math.log10": {
- "chrome": "38",
- "edge": "12",
- "firefox": "25",
- "safari": "7.1",
- "node": "0.12",
- "ios": "8",
- "samsung": "3",
- "opera": "25",
- "electron": "0.2"
- },
- "es6.math.log2": {
- "chrome": "38",
- "edge": "12",
- "firefox": "25",
- "safari": "7.1",
- "node": "0.12",
- "ios": "8",
- "samsung": "3",
- "opera": "25",
- "electron": "0.2"
- },
- "es6.math.sign": {
- "chrome": "38",
- "edge": "12",
- "firefox": "25",
- "safari": "9",
- "node": "0.12",
- "ios": "9",
- "samsung": "3",
- "opera": "25",
- "electron": "0.2"
- },
- "es6.math.sinh": {
- "chrome": "38",
- "edge": "12",
- "firefox": "25",
- "safari": "7.1",
- "node": "0.12",
- "ios": "8",
- "samsung": "3",
- "opera": "25",
- "electron": "0.2"
- },
- "es6.math.tanh": {
- "chrome": "38",
- "edge": "12",
- "firefox": "25",
- "safari": "7.1",
- "node": "0.12",
- "ios": "8",
- "samsung": "3",
- "opera": "25",
- "electron": "0.2"
- },
- "es6.math.trunc": {
- "chrome": "38",
- "edge": "12",
- "firefox": "25",
- "safari": "7.1",
- "node": "0.12",
- "ios": "8",
- "samsung": "3",
- "opera": "25",
- "electron": "0.2"
- },
- "es6.number.constructor": {
- "chrome": "41",
- "edge": "12",
- "firefox": "36",
- "safari": "9",
- "node": "4",
- "ios": "9",
- "samsung": "3.4",
- "opera": "28",
- "electron": "0.24"
- },
- "es6.number.epsilon": {
- "chrome": "34",
- "edge": "12",
- "firefox": "25",
- "safari": "9",
- "node": "0.12",
- "ios": "9",
- "samsung": "2.1",
- "opera": "21",
- "electron": "0.2"
- },
- "es6.number.is-finite": {
- "chrome": "19",
- "edge": "12",
- "firefox": "16",
- "safari": "9",
- "node": "0.12",
- "android": "4.1",
- "ios": "9",
- "samsung": "2.1",
- "electron": "0.2"
- },
- "es6.number.is-integer": {
- "chrome": "34",
- "edge": "12",
- "firefox": "16",
- "safari": "9",
- "node": "0.12",
- "ios": "9",
- "samsung": "2.1",
- "opera": "21",
- "electron": "0.2"
- },
- "es6.number.is-nan": {
- "chrome": "19",
- "edge": "12",
- "firefox": "15",
- "safari": "9",
- "node": "0.12",
- "android": "4.1",
- "ios": "9",
- "samsung": "2.1",
- "electron": "0.2"
- },
- "es6.number.is-safe-integer": {
- "chrome": "34",
- "edge": "12",
- "firefox": "32",
- "safari": "9",
- "node": "0.12",
- "ios": "9",
- "samsung": "2.1",
- "opera": "21",
- "electron": "0.2"
- },
- "es6.number.max-safe-integer": {
- "chrome": "34",
- "edge": "12",
- "firefox": "31",
- "safari": "9",
- "node": "0.12",
- "ios": "9",
- "samsung": "2.1",
- "opera": "21",
- "electron": "0.2"
- },
- "es6.number.min-safe-integer": {
- "chrome": "34",
- "edge": "12",
- "firefox": "31",
- "safari": "9",
- "node": "0.12",
- "ios": "9",
- "samsung": "2.1",
- "opera": "21",
- "electron": "0.2"
- },
- "es6.number.parse-float": {
- "chrome": "34",
- "edge": "12",
- "firefox": "25",
- "safari": "9",
- "node": "0.12",
- "ios": "9",
- "samsung": "2.1",
- "opera": "21",
- "electron": "0.2"
- },
- "es6.number.parse-int": {
- "chrome": "34",
- "edge": "12",
- "firefox": "25",
- "safari": "9",
- "node": "0.12",
- "ios": "9",
- "samsung": "2.1",
- "opera": "21",
- "electron": "0.2"
- },
- "es6.object.assign": {
- "chrome": "49",
- "edge": "13",
- "firefox": "36",
- "safari": "10",
- "node": "6",
- "ios": "10",
- "samsung": "5",
- "opera": "36",
- "electron": "1"
- },
- "es6.object.create": {
- "chrome": "5",
- "opera": "12",
- "edge": "12",
- "firefox": "4",
- "safari": "4",
- "node": "0.10",
- "ie": "9",
- "android": "4",
- "ios": "6",
- "phantom": "2",
- "samsung": "2.1",
- "electron": "1.1"
- },
- "es7.object.define-getter": {
- "chrome": "62",
- "edge": "16",
- "firefox": "48",
- "safari": "9",
- "node": "8.10",
- "ios": "9",
- "samsung": "8.2",
- "opera": "49",
- "electron": "3.1"
- },
- "es7.object.define-setter": {
- "chrome": "62",
- "edge": "16",
- "firefox": "48",
- "safari": "9",
- "node": "8.10",
- "ios": "9",
- "samsung": "8.2",
- "opera": "49",
- "electron": "3.1"
- },
- "es6.object.define-property": {
- "chrome": "5",
- "opera": "12",
- "edge": "12",
- "firefox": "4",
- "safari": "5.1",
- "node": "0.10",
- "ie": "9",
- "android": "4",
- "ios": "6",
- "phantom": "2",
- "samsung": "2.1",
- "electron": "1.1"
- },
- "es6.object.define-properties": {
- "chrome": "5",
- "opera": "12",
- "edge": "12",
- "firefox": "4",
- "safari": "4",
- "node": "0.10",
- "ie": "9",
- "android": "4",
- "ios": "6",
- "phantom": "2",
- "samsung": "2.1",
- "electron": "1.1"
- },
- "es7.object.entries": {
- "chrome": "54",
- "edge": "14",
- "firefox": "47",
- "safari": "10.1",
- "node": "7",
- "ios": "10.3",
- "samsung": "6.2",
- "opera": "41",
- "electron": "1.5"
- },
- "es6.object.freeze": {
- "chrome": "44",
- "edge": "12",
- "firefox": "35",
- "safari": "9",
- "node": "4",
- "ios": "9",
- "samsung": "4",
- "opera": "31",
- "electron": "0.31"
- },
- "es6.object.get-own-property-descriptor": {
- "chrome": "44",
- "edge": "12",
- "firefox": "35",
- "safari": "9",
- "node": "4",
- "ios": "9",
- "samsung": "4",
- "opera": "31",
- "electron": "0.31"
- },
- "es7.object.get-own-property-descriptors": {
- "chrome": "54",
- "edge": "15",
- "firefox": "50",
- "safari": "10.1",
- "node": "7",
- "ios": "10.3",
- "samsung": "6.2",
- "opera": "41",
- "electron": "1.5"
- },
- "es6.object.get-own-property-names": {
- "chrome": "40",
- "edge": "12",
- "firefox": "33",
- "safari": "9",
- "node": "4",
- "ios": "9",
- "samsung": "3.4",
- "opera": "27",
- "electron": "0.21"
- },
- "es6.object.get-prototype-of": {
- "chrome": "44",
- "edge": "12",
- "firefox": "35",
- "safari": "9",
- "node": "4",
- "ios": "9",
- "samsung": "4",
- "opera": "31",
- "electron": "0.31"
- },
- "es7.object.lookup-getter": {
- "chrome": "62",
- "firefox": "36",
- "safari": "9",
- "node": "8.10",
- "ios": "9",
- "samsung": "8.2",
- "opera": "49",
- "electron": "3.1"
- },
- "es7.object.lookup-setter": {
- "chrome": "62",
- "firefox": "36",
- "safari": "9",
- "node": "8.10",
- "ios": "9",
- "samsung": "8.2",
- "opera": "49",
- "electron": "3.1"
- },
- "es6.object.prevent-extensions": {
- "chrome": "44",
- "edge": "12",
- "firefox": "35",
- "safari": "9",
- "node": "4",
- "ios": "9",
- "samsung": "4",
- "opera": "31",
- "electron": "0.31"
- },
- "es6.object.to-string": {
- "chrome": "57",
- "edge": "15",
- "firefox": "51",
- "safari": "10",
- "node": "8",
- "ios": "10",
- "samsung": "7.2",
- "opera": "44",
- "electron": "1.7"
- },
- "es6.object.is": {
- "chrome": "19",
- "edge": "12",
- "firefox": "22",
- "safari": "9",
- "node": "0.12",
- "android": "4.1",
- "ios": "9",
- "samsung": "2.1",
- "electron": "0.2"
- },
- "es6.object.is-frozen": {
- "chrome": "44",
- "edge": "12",
- "firefox": "35",
- "safari": "9",
- "node": "4",
- "ios": "9",
- "samsung": "4",
- "opera": "31",
- "electron": "0.31"
- },
- "es6.object.is-sealed": {
- "chrome": "44",
- "edge": "12",
- "firefox": "35",
- "safari": "9",
- "node": "4",
- "ios": "9",
- "samsung": "4",
- "opera": "31",
- "electron": "0.31"
- },
- "es6.object.is-extensible": {
- "chrome": "44",
- "edge": "12",
- "firefox": "35",
- "safari": "9",
- "node": "4",
- "ios": "9",
- "samsung": "4",
- "opera": "31",
- "electron": "0.31"
- },
- "es6.object.keys": {
- "chrome": "40",
- "edge": "12",
- "firefox": "35",
- "safari": "9",
- "node": "4",
- "ios": "9",
- "samsung": "3.4",
- "opera": "27",
- "electron": "0.21"
- },
- "es6.object.seal": {
- "chrome": "44",
- "edge": "12",
- "firefox": "35",
- "safari": "9",
- "node": "4",
- "ios": "9",
- "samsung": "4",
- "opera": "31",
- "electron": "0.31"
- },
- "es6.object.set-prototype-of": {
- "chrome": "34",
- "edge": "12",
- "firefox": "31",
- "safari": "9",
- "node": "0.12",
- "ie": "11",
- "ios": "9",
- "samsung": "2.1",
- "opera": "21",
- "electron": "0.2"
- },
- "es7.object.values": {
- "chrome": "54",
- "edge": "14",
- "firefox": "47",
- "safari": "10.1",
- "node": "7",
- "ios": "10.3",
- "samsung": "6.2",
- "opera": "41",
- "electron": "1.5"
- },
- "es6.promise": {
- "chrome": "51",
- "edge": "14",
- "firefox": "45",
- "safari": "10",
- "node": "6.5",
- "ios": "10",
- "samsung": "5",
- "opera": "38",
- "electron": "1.2"
- },
- "es7.promise.finally": {
- "chrome": "63",
- "edge": "18",
- "firefox": "58",
- "safari": "11.1",
- "node": "10",
- "ios": "11.3",
- "samsung": "8.2",
- "opera": "50",
- "electron": "3.1"
- },
- "es6.reflect.apply": {
- "chrome": "49",
- "edge": "12",
- "firefox": "42",
- "safari": "10",
- "node": "6",
- "ios": "10",
- "samsung": "5",
- "opera": "36",
- "electron": "1"
- },
- "es6.reflect.construct": {
- "chrome": "49",
- "edge": "13",
- "firefox": "49",
- "safari": "10",
- "node": "6",
- "ios": "10",
- "samsung": "5",
- "opera": "36",
- "electron": "1"
- },
- "es6.reflect.define-property": {
- "chrome": "49",
- "edge": "13",
- "firefox": "42",
- "safari": "10",
- "node": "6",
- "ios": "10",
- "samsung": "5",
- "opera": "36",
- "electron": "1"
- },
- "es6.reflect.delete-property": {
- "chrome": "49",
- "edge": "12",
- "firefox": "42",
- "safari": "10",
- "node": "6",
- "ios": "10",
- "samsung": "5",
- "opera": "36",
- "electron": "1"
- },
- "es6.reflect.get": {
- "chrome": "49",
- "edge": "12",
- "firefox": "42",
- "safari": "10",
- "node": "6",
- "ios": "10",
- "samsung": "5",
- "opera": "36",
- "electron": "1"
- },
- "es6.reflect.get-own-property-descriptor": {
- "chrome": "49",
- "edge": "12",
- "firefox": "42",
- "safari": "10",
- "node": "6",
- "ios": "10",
- "samsung": "5",
- "opera": "36",
- "electron": "1"
- },
- "es6.reflect.get-prototype-of": {
- "chrome": "49",
- "edge": "12",
- "firefox": "42",
- "safari": "10",
- "node": "6",
- "ios": "10",
- "samsung": "5",
- "opera": "36",
- "electron": "1"
- },
- "es6.reflect.has": {
- "chrome": "49",
- "edge": "12",
- "firefox": "42",
- "safari": "10",
- "node": "6",
- "ios": "10",
- "samsung": "5",
- "opera": "36",
- "electron": "1"
- },
- "es6.reflect.is-extensible": {
- "chrome": "49",
- "edge": "12",
- "firefox": "42",
- "safari": "10",
- "node": "6",
- "ios": "10",
- "samsung": "5",
- "opera": "36",
- "electron": "1"
- },
- "es6.reflect.own-keys": {
- "chrome": "49",
- "edge": "12",
- "firefox": "42",
- "safari": "10",
- "node": "6",
- "ios": "10",
- "samsung": "5",
- "opera": "36",
- "electron": "1"
- },
- "es6.reflect.prevent-extensions": {
- "chrome": "49",
- "edge": "12",
- "firefox": "42",
- "safari": "10",
- "node": "6",
- "ios": "10",
- "samsung": "5",
- "opera": "36",
- "electron": "1"
- },
- "es6.reflect.set": {
- "chrome": "49",
- "edge": "12",
- "firefox": "42",
- "safari": "10",
- "node": "6",
- "ios": "10",
- "samsung": "5",
- "opera": "36",
- "electron": "1"
- },
- "es6.reflect.set-prototype-of": {
- "chrome": "49",
- "edge": "12",
- "firefox": "42",
- "safari": "10",
- "node": "6",
- "ios": "10",
- "samsung": "5",
- "opera": "36",
- "electron": "1"
- },
- "es6.regexp.constructor": {
- "chrome": "50",
- "firefox": "40",
- "safari": "10",
- "node": "6",
- "ios": "10",
- "samsung": "5",
- "opera": "37",
- "electron": "1.1"
- },
- "es6.regexp.flags": {
- "chrome": "49",
- "firefox": "37",
- "safari": "9",
- "node": "6",
- "ios": "9",
- "samsung": "5",
- "opera": "36",
- "electron": "1"
- },
- "es6.regexp.match": {
- "chrome": "50",
- "firefox": "49",
- "safari": "10",
- "node": "6",
- "ios": "10",
- "samsung": "5",
- "opera": "37",
- "electron": "1.1"
- },
- "es6.regexp.replace": {
- "chrome": "50",
- "firefox": "49",
- "safari": "10",
- "node": "6",
- "ios": "10",
- "samsung": "5",
- "opera": "37",
- "electron": "1.1"
- },
- "es6.regexp.split": {
- "chrome": "50",
- "firefox": "49",
- "safari": "10",
- "node": "6",
- "ios": "10",
- "samsung": "5",
- "opera": "37",
- "electron": "1.1"
- },
- "es6.regexp.search": {
- "chrome": "50",
- "firefox": "49",
- "safari": "10",
- "node": "6",
- "ios": "10",
- "samsung": "5",
- "opera": "37",
- "electron": "1.1"
- },
- "es6.regexp.to-string": {
- "chrome": "50",
- "firefox": "39",
- "safari": "10",
- "node": "6",
- "ios": "10",
- "samsung": "5",
- "opera": "37",
- "electron": "1.1"
- },
- "es6.set": {
- "chrome": "51",
- "edge": "15",
- "firefox": "53",
- "safari": "10",
- "node": "6.5",
- "ios": "10",
- "samsung": "5",
- "opera": "38",
- "electron": "1.2"
- },
- "es6.symbol": {
- "chrome": "51",
- "firefox": "51",
- "safari": "10",
- "node": "6.5",
- "ios": "10",
- "samsung": "5",
- "opera": "38",
- "electron": "1.2"
- },
- "es7.symbol.async-iterator": {
- "chrome": "63",
- "firefox": "57",
- "safari": "12",
- "node": "10",
- "ios": "12",
- "samsung": "8.2",
- "opera": "50",
- "electron": "3.1"
- },
- "es6.string.anchor": {
- "chrome": "5",
- "edge": "12",
- "firefox": "17",
- "safari": "6",
- "node": "0.10",
- "android": "4",
- "ios": "7",
- "phantom": "2",
- "samsung": "2.1",
- "electron": "1.1"
- },
- "es6.string.big": {
- "chrome": "5",
- "edge": "12",
- "firefox": "17",
- "safari": "6",
- "node": "0.10",
- "android": "4",
- "ios": "7",
- "phantom": "2",
- "samsung": "2.1",
- "electron": "1.1"
- },
- "es6.string.blink": {
- "chrome": "5",
- "edge": "12",
- "firefox": "17",
- "safari": "6",
- "node": "0.10",
- "android": "4",
- "ios": "7",
- "phantom": "2",
- "samsung": "2.1",
- "electron": "1.1"
- },
- "es6.string.bold": {
- "chrome": "5",
- "edge": "12",
- "firefox": "17",
- "safari": "6",
- "node": "0.10",
- "android": "4",
- "ios": "7",
- "phantom": "2",
- "samsung": "2.1",
- "electron": "1.1"
- },
- "es6.string.code-point-at": {
- "chrome": "41",
- "edge": "12",
- "firefox": "29",
- "safari": "9",
- "node": "4",
- "ios": "9",
- "samsung": "3.4",
- "opera": "28",
- "electron": "0.24"
- },
- "es6.string.ends-with": {
- "chrome": "41",
- "edge": "12",
- "firefox": "29",
- "safari": "9",
- "node": "4",
- "ios": "9",
- "samsung": "3.4",
- "opera": "28",
- "electron": "0.24"
- },
- "es6.string.fixed": {
- "chrome": "5",
- "edge": "12",
- "firefox": "17",
- "safari": "6",
- "node": "0.10",
- "android": "4",
- "ios": "7",
- "phantom": "2",
- "samsung": "2.1",
- "electron": "1.1"
- },
- "es6.string.fontcolor": {
- "chrome": "5",
- "edge": "12",
- "firefox": "17",
- "safari": "6",
- "node": "0.10",
- "android": "4",
- "ios": "7",
- "phantom": "2",
- "samsung": "2.1",
- "electron": "1.1"
- },
- "es6.string.fontsize": {
- "chrome": "5",
- "edge": "12",
- "firefox": "17",
- "safari": "6",
- "node": "0.10",
- "android": "4",
- "ios": "7",
- "phantom": "2",
- "samsung": "2.1",
- "electron": "1.1"
- },
- "es6.string.from-code-point": {
- "chrome": "41",
- "edge": "12",
- "firefox": "29",
- "safari": "9",
- "node": "4",
- "ios": "9",
- "samsung": "3.4",
- "opera": "28",
- "electron": "0.24"
- },
- "es6.string.includes": {
- "chrome": "41",
- "edge": "12",
- "firefox": "40",
- "safari": "9",
- "node": "4",
- "ios": "9",
- "samsung": "3.4",
- "opera": "28",
- "electron": "0.24"
- },
- "es6.string.italics": {
- "chrome": "5",
- "edge": "12",
- "firefox": "17",
- "safari": "6",
- "node": "0.10",
- "android": "4",
- "ios": "7",
- "phantom": "2",
- "samsung": "2.1",
- "electron": "1.1"
- },
- "es6.string.iterator": {
- "chrome": "38",
- "edge": "12",
- "firefox": "36",
- "safari": "9",
- "node": "0.12",
- "ios": "9",
- "samsung": "3",
- "opera": "25",
- "electron": "0.2"
- },
- "es6.string.link": {
- "chrome": "5",
- "edge": "12",
- "firefox": "17",
- "safari": "6",
- "node": "0.10",
- "android": "4",
- "ios": "7",
- "phantom": "2",
- "samsung": "2.1",
- "electron": "1.1"
- },
- "es7.string.pad-start": {
- "chrome": "57",
- "edge": "15",
- "firefox": "48",
- "safari": "10",
- "node": "8",
- "ios": "10",
- "samsung": "7.2",
- "opera": "44",
- "electron": "1.7"
- },
- "es7.string.pad-end": {
- "chrome": "57",
- "edge": "15",
- "firefox": "48",
- "safari": "10",
- "node": "8",
- "ios": "10",
- "samsung": "7.2",
- "opera": "44",
- "electron": "1.7"
- },
- "es6.string.raw": {
- "chrome": "41",
- "edge": "12",
- "firefox": "34",
- "safari": "9",
- "node": "4",
- "ios": "9",
- "samsung": "3.4",
- "opera": "28",
- "electron": "0.24"
- },
- "es6.string.repeat": {
- "chrome": "41",
- "edge": "12",
- "firefox": "24",
- "safari": "9",
- "node": "4",
- "ios": "9",
- "samsung": "3.4",
- "opera": "28",
- "electron": "0.24"
- },
- "es6.string.small": {
- "chrome": "5",
- "edge": "12",
- "firefox": "17",
- "safari": "6",
- "node": "0.10",
- "android": "4",
- "ios": "7",
- "phantom": "2",
- "samsung": "2.1",
- "electron": "1.1"
- },
- "es6.string.starts-with": {
- "chrome": "41",
- "edge": "12",
- "firefox": "29",
- "safari": "9",
- "node": "4",
- "ios": "9",
- "samsung": "3.4",
- "opera": "28",
- "electron": "0.24"
- },
- "es6.string.strike": {
- "chrome": "5",
- "edge": "12",
- "firefox": "17",
- "safari": "6",
- "node": "0.10",
- "android": "4",
- "ios": "7",
- "phantom": "2",
- "samsung": "2.1",
- "electron": "1.1"
- },
- "es6.string.sub": {
- "chrome": "5",
- "edge": "12",
- "firefox": "17",
- "safari": "6",
- "node": "0.10",
- "android": "4",
- "ios": "7",
- "phantom": "2",
- "samsung": "2.1",
- "electron": "1.1"
- },
- "es6.string.sup": {
- "chrome": "5",
- "edge": "12",
- "firefox": "17",
- "safari": "6",
- "node": "0.10",
- "android": "4",
- "ios": "7",
- "phantom": "2",
- "samsung": "2.1",
- "electron": "1.1"
- },
- "es6.string.trim": {
- "chrome": "5",
- "opera": "10.50",
- "edge": "12",
- "firefox": "3.5",
- "safari": "4",
- "node": "0.10",
- "ie": "9",
- "android": "4",
- "ios": "6",
- "phantom": "2",
- "samsung": "2.1",
- "electron": "1.1"
- },
- "es7.string.trim-left": {
- "chrome": "66",
- "firefox": "61",
- "safari": "12",
- "node": "10",
- "ios": "12",
- "opera": "53",
- "electron": "3.1"
- },
- "es7.string.trim-right": {
- "chrome": "66",
- "firefox": "61",
- "safari": "12",
- "node": "10",
- "ios": "12",
- "opera": "53",
- "electron": "3.1"
- },
- "es6.typed.array-buffer": {
- "chrome": "51",
- "edge": "13",
- "firefox": "48",
- "safari": "10",
- "node": "6.5",
- "ios": "10",
- "samsung": "5",
- "opera": "38",
- "electron": "1.2"
- },
- "es6.typed.data-view": {
- "chrome": "5",
- "opera": "12",
- "edge": "12",
- "firefox": "15",
- "safari": "5.1",
- "node": "0.10",
- "ie": "10",
- "android": "4",
- "ios": "6",
- "phantom": "2",
- "samsung": "2.1",
- "electron": "1.1"
- },
- "es6.typed.int8-array": {
- "chrome": "51",
- "edge": "13",
- "firefox": "48",
- "safari": "10",
- "node": "6.5",
- "ios": "10",
- "samsung": "5",
- "opera": "38",
- "electron": "1.2"
- },
- "es6.typed.uint8-array": {
- "chrome": "51",
- "edge": "13",
- "firefox": "48",
- "safari": "10",
- "node": "6.5",
- "ios": "10",
- "samsung": "5",
- "opera": "38",
- "electron": "1.2"
- },
- "es6.typed.uint8-clamped-array": {
- "chrome": "51",
- "edge": "13",
- "firefox": "48",
- "safari": "10",
- "node": "6.5",
- "ios": "10",
- "samsung": "5",
- "opera": "38",
- "electron": "1.2"
- },
- "es6.typed.int16-array": {
- "chrome": "51",
- "edge": "13",
- "firefox": "48",
- "safari": "10",
- "node": "6.5",
- "ios": "10",
- "samsung": "5",
- "opera": "38",
- "electron": "1.2"
- },
- "es6.typed.uint16-array": {
- "chrome": "51",
- "edge": "13",
- "firefox": "48",
- "safari": "10",
- "node": "6.5",
- "ios": "10",
- "samsung": "5",
- "opera": "38",
- "electron": "1.2"
- },
- "es6.typed.int32-array": {
- "chrome": "51",
- "edge": "13",
- "firefox": "48",
- "safari": "10",
- "node": "6.5",
- "ios": "10",
- "samsung": "5",
- "opera": "38",
- "electron": "1.2"
- },
- "es6.typed.uint32-array": {
- "chrome": "51",
- "edge": "13",
- "firefox": "48",
- "safari": "10",
- "node": "6.5",
- "ios": "10",
- "samsung": "5",
- "opera": "38",
- "electron": "1.2"
- },
- "es6.typed.float32-array": {
- "chrome": "51",
- "edge": "13",
- "firefox": "48",
- "safari": "10",
- "node": "6.5",
- "ios": "10",
- "samsung": "5",
- "opera": "38",
- "electron": "1.2"
- },
- "es6.typed.float64-array": {
- "chrome": "51",
- "edge": "13",
- "firefox": "48",
- "safari": "10",
- "node": "6.5",
- "ios": "10",
- "samsung": "5",
- "opera": "38",
- "electron": "1.2"
- },
- "es6.weak-map": {
- "chrome": "51",
- "edge": "15",
- "firefox": "53",
- "safari": "9",
- "node": "6.5",
- "ios": "9",
- "samsung": "5",
- "opera": "38",
- "electron": "1.2"
- },
- "es6.weak-set": {
- "chrome": "51",
- "edge": "15",
- "firefox": "53",
- "safari": "9",
- "node": "6.5",
- "ios": "9",
- "samsung": "5",
- "opera": "38",
- "electron": "1.2"
- }
-}
diff --git a/node_modules/@babel/preset-env/data/plugin-features.js b/node_modules/@babel/preset-env/data/plugin-features.js
deleted file mode 100644
index 3a84be38..00000000
--- a/node_modules/@babel/preset-env/data/plugin-features.js
+++ /dev/null
@@ -1,108 +0,0 @@
-const es = {
- "transform-template-literals": {
- features: ["template literals"],
- },
- "transform-literals": {
- features: ["Unicode code point escapes"],
- },
- "transform-function-name": {
- features: ['function "name" property'],
- },
- "transform-arrow-functions": {
- features: ["arrow functions"],
- },
- "transform-block-scoped-functions": {
- features: ["block-level function declaration"],
- },
- "transform-classes": {
- features: ["class", "super"],
- },
- "transform-object-super": {
- features: ["super"],
- },
- "transform-shorthand-properties": {
- features: ["object literal extensions / shorthand properties"],
- },
- "transform-duplicate-keys": {
- features: ["miscellaneous / duplicate property names in strict mode"],
- },
- "transform-computed-properties": {
- features: ["object literal extensions / computed properties"],
- },
- "transform-for-of": {
- features: ["for..of loops"],
- },
- "transform-sticky-regex": {
- features: [
- 'RegExp "y" and "u" flags / "y" flag, lastIndex',
- 'RegExp "y" and "u" flags / "y" flag',
- ],
- },
-
- // We want to apply this prior to unicode regex so that "." and "u"
- // are properly handled.
- //
- // Ref: https://github.com/babel/babel/pull/7065#issuecomment-395959112
- "transform-dotall-regex": "s (dotAll) flag for regular expressions",
-
- "transform-unicode-regex": {
- features: [
- 'RegExp "y" and "u" flags / "u" flag, case folding',
- 'RegExp "y" and "u" flags / "u" flag, Unicode code point escapes',
- 'RegExp "y" and "u" flags / "u" flag, non-BMP Unicode characters',
- 'RegExp "y" and "u" flags / "u" flag',
- ],
- },
-
- "transform-spread": {
- features: "spread syntax for iterable objects",
- },
- "transform-parameters": {
- features: [
- "default function parameters",
- "rest parameters",
- "destructuring, parameters / defaults, arrow function",
- ],
- },
- "transform-destructuring": {
- features: [
- "destructuring, assignment",
- "destructuring, declarations",
- ],
- },
- "transform-block-scoping": {
- features: ["const", "let"],
- },
- "transform-typeof-symbol": {
- features: ["Symbol / typeof support"],
- },
- "transform-new-target": {
- features: ["new.target"],
- },
- "transform-regenerator": {
- features: ["generators"],
- },
-
- "transform-exponentiation-operator": {
- features: ["exponentiation (**) operator"],
- },
-
- "transform-async-to-generator": {
- features: ["async functions"],
- },
-
- "proposal-async-generator-functions": "Asynchronous Iterators",
- "proposal-object-rest-spread": "object rest/spread properties",
- "proposal-unicode-property-regex": "RegExp Unicode Property Escapes",
-
- "proposal-json-strings": "JSON superset",
- "proposal-optional-catch-binding": "optional catch binding",
- "transform-named-capturing-groups-regex": "RegExp named capture groups",
- "transform-member-expression-literals": "Object/array literal extensions / Reserved words as property names",
- "transform-property-literals": "Object/array literal extensions / Reserved words as property names",
- "transform-reserved-words": "Miscellaneous / Unreserved words",
-};
-
-const proposals = require("./shipped-proposals").features;
-
-module.exports = Object.assign({}, es, proposals);
diff --git a/node_modules/@babel/preset-env/data/plugins.json b/node_modules/@babel/preset-env/data/plugins.json
deleted file mode 100644
index 382a5139..00000000
--- a/node_modules/@babel/preset-env/data/plugins.json
+++ /dev/null
@@ -1,347 +0,0 @@
-{
- "transform-template-literals": {
- "chrome": "41",
- "edge": "13",
- "firefox": "34",
- "node": "4",
- "samsung": "3.4",
- "opera": "28",
- "electron": "0.24"
- },
- "transform-literals": {
- "chrome": "44",
- "edge": "12",
- "firefox": "53",
- "safari": "9",
- "node": "4",
- "ios": "9",
- "samsung": "4",
- "opera": "31",
- "electron": "0.31"
- },
- "transform-function-name": {
- "chrome": "51",
- "firefox": "53",
- "safari": "10",
- "node": "6.5",
- "ios": "10",
- "samsung": "5",
- "opera": "38",
- "electron": "1.2"
- },
- "transform-arrow-functions": {
- "chrome": "47",
- "edge": "13",
- "firefox": "45",
- "safari": "10",
- "node": "6",
- "ios": "10",
- "samsung": "5",
- "opera": "34",
- "electron": "0.36"
- },
- "transform-block-scoped-functions": {
- "chrome": "41",
- "edge": "12",
- "firefox": "46",
- "safari": "10",
- "node": "4",
- "ie": "11",
- "ios": "10",
- "samsung": "3.4",
- "opera": "28",
- "electron": "0.24"
- },
- "transform-classes": {
- "chrome": "46",
- "edge": "13",
- "firefox": "45",
- "safari": "10",
- "node": "5",
- "ios": "10",
- "samsung": "5",
- "opera": "33",
- "electron": "0.36"
- },
- "transform-object-super": {
- "chrome": "46",
- "edge": "13",
- "firefox": "45",
- "safari": "10",
- "node": "5",
- "ios": "10",
- "samsung": "5",
- "opera": "33",
- "electron": "0.36"
- },
- "transform-shorthand-properties": {
- "chrome": "43",
- "edge": "12",
- "firefox": "33",
- "safari": "9",
- "node": "4",
- "ios": "9",
- "samsung": "4",
- "opera": "30",
- "electron": "0.29"
- },
- "transform-duplicate-keys": {
- "chrome": "42",
- "edge": "12",
- "firefox": "34",
- "safari": "9",
- "node": "4",
- "ios": "9",
- "samsung": "3.4",
- "opera": "29",
- "electron": "0.27"
- },
- "transform-computed-properties": {
- "chrome": "44",
- "edge": "12",
- "firefox": "34",
- "safari": "7.1",
- "node": "4",
- "ios": "8",
- "samsung": "4",
- "opera": "31",
- "electron": "0.31"
- },
- "transform-for-of": {
- "chrome": "51",
- "edge": "15",
- "firefox": "53",
- "safari": "10",
- "node": "6.5",
- "ios": "10",
- "samsung": "5",
- "opera": "38",
- "electron": "1.2"
- },
- "transform-sticky-regex": {
- "chrome": "49",
- "edge": "13",
- "firefox": "3",
- "safari": "10",
- "node": "6",
- "ios": "10",
- "samsung": "5",
- "opera": "36",
- "electron": "1"
- },
- "transform-dotall-regex": {
- "chrome": "62",
- "safari": "11.1",
- "node": "8.10",
- "ios": "11.3",
- "samsung": "8.2",
- "opera": "49",
- "electron": "3.1"
- },
- "transform-unicode-regex": {
- "chrome": "50",
- "edge": "13",
- "firefox": "46",
- "safari": "12",
- "node": "6",
- "ios": "12",
- "samsung": "5",
- "opera": "37",
- "electron": "1.1"
- },
- "transform-spread": {
- "chrome": "46",
- "edge": "13",
- "firefox": "36",
- "safari": "10",
- "node": "5",
- "ios": "10",
- "samsung": "5",
- "opera": "33",
- "electron": "0.36"
- },
- "transform-parameters": {
- "chrome": "49",
- "edge": "18",
- "firefox": "53",
- "safari": "10",
- "node": "6",
- "ios": "10",
- "samsung": "5",
- "opera": "36",
- "electron": "1"
- },
- "transform-destructuring": {
- "chrome": "51",
- "edge": "15",
- "firefox": "53",
- "safari": "10",
- "node": "6.5",
- "ios": "10",
- "samsung": "5",
- "opera": "38",
- "electron": "1.2"
- },
- "transform-block-scoping": {
- "chrome": "49",
- "edge": "14",
- "firefox": "51",
- "safari": "11",
- "node": "6",
- "ios": "11",
- "samsung": "5",
- "opera": "36",
- "electron": "1"
- },
- "transform-typeof-symbol": {
- "chrome": "38",
- "edge": "12",
- "firefox": "36",
- "safari": "9",
- "node": "0.12",
- "ios": "9",
- "samsung": "3",
- "opera": "25",
- "electron": "0.2"
- },
- "transform-new-target": {
- "chrome": "46",
- "edge": "14",
- "firefox": "41",
- "safari": "10",
- "node": "5",
- "ios": "10",
- "samsung": "5",
- "opera": "33",
- "electron": "0.36"
- },
- "transform-regenerator": {
- "chrome": "50",
- "edge": "13",
- "firefox": "53",
- "safari": "10",
- "node": "6",
- "ios": "10",
- "samsung": "5",
- "opera": "37",
- "electron": "1.1"
- },
- "transform-exponentiation-operator": {
- "chrome": "52",
- "edge": "14",
- "firefox": "52",
- "safari": "10.1",
- "node": "7",
- "ios": "10.3",
- "samsung": "6.2",
- "opera": "39",
- "electron": "1.3"
- },
- "transform-async-to-generator": {
- "chrome": "55",
- "edge": "15",
- "firefox": "52",
- "safari": "11",
- "node": "7.6",
- "ios": "11",
- "samsung": "6.2",
- "opera": "42",
- "electron": "1.6"
- },
- "proposal-async-generator-functions": {
- "chrome": "63",
- "firefox": "57",
- "safari": "12",
- "node": "10",
- "ios": "12",
- "samsung": "8.2",
- "opera": "50",
- "electron": "3.1"
- },
- "proposal-object-rest-spread": {
- "chrome": "60",
- "firefox": "55",
- "safari": "11.1",
- "node": "8.3",
- "ios": "11.3",
- "samsung": "8.2",
- "opera": "47",
- "electron": "2.1"
- },
- "proposal-unicode-property-regex": {
- "chrome": "64",
- "safari": "11.1",
- "node": "10",
- "ios": "11.3",
- "opera": "51",
- "electron": "3.1"
- },
- "proposal-json-strings": {
- "chrome": "66",
- "firefox": "62",
- "safari": "12",
- "node": "10",
- "ios": "12",
- "opera": "53",
- "electron": "3.1"
- },
- "proposal-optional-catch-binding": {
- "chrome": "66",
- "firefox": "58",
- "safari": "11.1",
- "node": "10",
- "ios": "11.3",
- "opera": "53",
- "electron": "3.1"
- },
- "transform-named-capturing-groups-regex": {
- "chrome": "64",
- "safari": "11.1",
- "node": "10",
- "ios": "11.3",
- "opera": "51",
- "electron": "3.1"
- },
- "transform-member-expression-literals": {
- "chrome": "7",
- "opera": "12",
- "edge": "12",
- "firefox": "2",
- "safari": "5.1",
- "node": "0.10",
- "ie": "9",
- "android": "4",
- "ios": "6",
- "phantom": "2",
- "samsung": "2.1",
- "electron": "5"
- },
- "transform-property-literals": {
- "chrome": "7",
- "opera": "12",
- "edge": "12",
- "firefox": "2",
- "safari": "5.1",
- "node": "0.10",
- "ie": "9",
- "android": "4",
- "ios": "6",
- "phantom": "2",
- "samsung": "2.1",
- "electron": "5"
- },
- "transform-reserved-words": {
- "chrome": "13",
- "opera": "10.50",
- "edge": "12",
- "firefox": "2",
- "safari": "3.1",
- "node": "0.10",
- "ie": "9",
- "android": "4.4",
- "ios": "6",
- "phantom": "2",
- "samsung": "2.1",
- "electron": "0.2"
- }
-}
diff --git a/node_modules/@babel/preset-env/data/shipped-proposals.js b/node_modules/@babel/preset-env/data/shipped-proposals.js
deleted file mode 100644
index 90864b6c..00000000
--- a/node_modules/@babel/preset-env/data/shipped-proposals.js
+++ /dev/null
@@ -1,14 +0,0 @@
-// These mappings represent the syntax proposals that have been
-// shipped by browsers, and are enabled by the `shippedProposals` option.
-
-const proposalPlugins = {};
-
-const pluginSyntaxMap = new Map([
- ["proposal-async-generator-functions", "syntax-async-generators"],
- ["proposal-object-rest-spread", "syntax-object-rest-spread"],
- ["proposal-optional-catch-binding", "syntax-optional-catch-binding"],
- ["proposal-unicode-property-regex", null],
- ["proposal-json-strings", "syntax-json-strings"],
-]);
-
-module.exports = { proposalPlugins, pluginSyntaxMap };
diff --git a/node_modules/@babel/preset-env/data/unreleased-labels.js b/node_modules/@babel/preset-env/data/unreleased-labels.js
deleted file mode 100644
index bc513056..00000000
--- a/node_modules/@babel/preset-env/data/unreleased-labels.js
+++ /dev/null
@@ -1,3 +0,0 @@
-module.exports = {
- safari: "tp",
-};
diff --git a/node_modules/@babel/preset-env/lib/available-plugins.js b/node_modules/@babel/preset-env/lib/available-plugins.js
deleted file mode 100644
index dc042285..00000000
--- a/node_modules/@babel/preset-env/lib/available-plugins.js
+++ /dev/null
@@ -1,51 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-var _default = {
- "syntax-async-generators": require("@babel/plugin-syntax-async-generators"),
- "syntax-dynamic-import": require("@babel/plugin-syntax-dynamic-import"),
- "syntax-json-strings": require("@babel/plugin-syntax-json-strings"),
- "syntax-object-rest-spread": require("@babel/plugin-syntax-object-rest-spread"),
- "syntax-optional-catch-binding": require("@babel/plugin-syntax-optional-catch-binding"),
- "transform-async-to-generator": require("@babel/plugin-transform-async-to-generator"),
- "proposal-async-generator-functions": require("@babel/plugin-proposal-async-generator-functions"),
- "proposal-dynamic-import": require("@babel/plugin-proposal-dynamic-import"),
- "proposal-json-strings": require("@babel/plugin-proposal-json-strings"),
- "transform-arrow-functions": require("@babel/plugin-transform-arrow-functions"),
- "transform-block-scoped-functions": require("@babel/plugin-transform-block-scoped-functions"),
- "transform-block-scoping": require("@babel/plugin-transform-block-scoping"),
- "transform-classes": require("@babel/plugin-transform-classes"),
- "transform-computed-properties": require("@babel/plugin-transform-computed-properties"),
- "transform-destructuring": require("@babel/plugin-transform-destructuring"),
- "transform-dotall-regex": require("@babel/plugin-transform-dotall-regex"),
- "transform-duplicate-keys": require("@babel/plugin-transform-duplicate-keys"),
- "transform-for-of": require("@babel/plugin-transform-for-of"),
- "transform-function-name": require("@babel/plugin-transform-function-name"),
- "transform-literals": require("@babel/plugin-transform-literals"),
- "transform-member-expression-literals": require("@babel/plugin-transform-member-expression-literals"),
- "transform-modules-amd": require("@babel/plugin-transform-modules-amd"),
- "transform-modules-commonjs": require("@babel/plugin-transform-modules-commonjs"),
- "transform-modules-systemjs": require("@babel/plugin-transform-modules-systemjs"),
- "transform-modules-umd": require("@babel/plugin-transform-modules-umd"),
- "transform-named-capturing-groups-regex": require("@babel/plugin-transform-named-capturing-groups-regex"),
- "transform-object-super": require("@babel/plugin-transform-object-super"),
- "transform-parameters": require("@babel/plugin-transform-parameters"),
- "transform-property-literals": require("@babel/plugin-transform-property-literals"),
- "transform-reserved-words": require("@babel/plugin-transform-reserved-words"),
- "transform-shorthand-properties": require("@babel/plugin-transform-shorthand-properties"),
- "transform-spread": require("@babel/plugin-transform-spread"),
- "transform-sticky-regex": require("@babel/plugin-transform-sticky-regex"),
- "transform-template-literals": require("@babel/plugin-transform-template-literals"),
- "transform-typeof-symbol": require("@babel/plugin-transform-typeof-symbol"),
- "transform-unicode-regex": require("@babel/plugin-transform-unicode-regex"),
- "transform-exponentiation-operator": require("@babel/plugin-transform-exponentiation-operator"),
- "transform-new-target": require("@babel/plugin-transform-new-target"),
- "proposal-object-rest-spread": require("@babel/plugin-proposal-object-rest-spread"),
- "proposal-optional-catch-binding": require("@babel/plugin-proposal-optional-catch-binding"),
- "transform-regenerator": require("@babel/plugin-transform-regenerator"),
- "proposal-unicode-property-regex": require("@babel/plugin-proposal-unicode-property-regex")
-};
-exports.default = _default;
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/lib/debug.js b/node_modules/@babel/preset-env/lib/debug.js
deleted file mode 100644
index 16f62c79..00000000
--- a/node_modules/@babel/preset-env/lib/debug.js
+++ /dev/null
@@ -1,84 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.logUsagePolyfills = exports.logEntryPolyfills = exports.logPluginOrPolyfill = void 0;
-
-function _semver() {
- const data = _interopRequireDefault(require("semver"));
-
- _semver = function () {
- return data;
- };
-
- return data;
-}
-
-var _utils = require("./utils");
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-const wordEnds = size => {
- return size > 1 ? "s" : "";
-};
-
-const logPluginOrPolyfill = (item, targetVersions, list) => {
- const minVersions = list[item] || {};
- const filteredList = Object.keys(targetVersions).reduce((result, env) => {
- const minVersion = minVersions[env];
- const targetVersion = targetVersions[env];
-
- if (!minVersion) {
- result[env] = (0, _utils.prettifyVersion)(targetVersion);
- } else {
- const minIsUnreleased = (0, _utils.isUnreleasedVersion)(minVersion, env);
- const targetIsUnreleased = (0, _utils.isUnreleasedVersion)(targetVersion, env);
-
- if (!targetIsUnreleased && (minIsUnreleased || _semver().default.lt(targetVersion.toString(), (0, _utils.semverify)(minVersion)))) {
- result[env] = (0, _utils.prettifyVersion)(targetVersion);
- }
- }
-
- return result;
- }, {});
- const formattedTargets = JSON.stringify(filteredList).replace(/,/g, ", ").replace(/^\{"/, '{ "').replace(/"\}$/, '" }');
- console.log(` ${item} ${formattedTargets}`);
-};
-
-exports.logPluginOrPolyfill = logPluginOrPolyfill;
-
-const logEntryPolyfills = (polyfillName, importPolyfillIncluded, polyfills, filename, polyfillTargets, allBuiltInsList) => {
- if (!importPolyfillIncluded) {
- console.log(`\n[${filename}] Import of ${polyfillName} was not found.`);
- return;
- }
-
- if (!polyfills.size) {
- console.log(`\n[${filename}] Based on your targets, polyfills were not added.`);
- return;
- }
-
- console.log(`\n[${filename}] Replaced ${polyfillName} entries with the following polyfill${wordEnds(polyfills.size)}:`);
-
- for (const polyfill of polyfills) {
- logPluginOrPolyfill(polyfill, polyfillTargets, allBuiltInsList);
- }
-};
-
-exports.logEntryPolyfills = logEntryPolyfills;
-
-const logUsagePolyfills = (polyfills, filename, polyfillTargets, allBuiltInsList) => {
- if (!polyfills.size) {
- console.log(`\n[${filename}] Based on your code and targets, core-js polyfills were not added.`);
- return;
- }
-
- console.log(`\n[${filename}] Added following core-js polyfill${wordEnds(polyfills.size)}:`);
-
- for (const polyfill of polyfills) {
- logPluginOrPolyfill(polyfill, polyfillTargets, allBuiltInsList);
- }
-};
-
-exports.logUsagePolyfills = logUsagePolyfills;
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/lib/filter-items.js b/node_modules/@babel/preset-env/lib/filter-items.js
deleted file mode 100644
index 92fe1f79..00000000
--- a/node_modules/@babel/preset-env/lib/filter-items.js
+++ /dev/null
@@ -1,79 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.isPluginRequired = isPluginRequired;
-exports.default = _default;
-
-function _semver() {
- const data = _interopRequireDefault(require("semver"));
-
- _semver = function () {
- return data;
- };
-
- return data;
-}
-
-var _utils = require("./utils");
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function isPluginRequired(supportedEnvironments, plugin) {
- const targetEnvironments = Object.keys(supportedEnvironments);
-
- if (targetEnvironments.length === 0) {
- return true;
- }
-
- const isRequiredForEnvironments = targetEnvironments.filter(environment => {
- if (!plugin[environment]) {
- return true;
- }
-
- const lowestImplementedVersion = plugin[environment];
- const lowestTargetedVersion = supportedEnvironments[environment];
-
- if ((0, _utils.isUnreleasedVersion)(lowestTargetedVersion, environment)) {
- return false;
- }
-
- if ((0, _utils.isUnreleasedVersion)(lowestImplementedVersion, environment)) {
- return true;
- }
-
- if (!_semver().default.valid(lowestTargetedVersion.toString())) {
- throw new Error(`Invalid version passed for target "${environment}": "${lowestTargetedVersion}". ` + "Versions must be in semver format (major.minor.patch)");
- }
-
- return _semver().default.gt((0, _utils.semverify)(lowestImplementedVersion), lowestTargetedVersion.toString());
- });
- return isRequiredForEnvironments.length > 0;
-}
-
-function _default(list, includes, excludes, targets, defaultIncludes, defaultExcludes, pluginSyntaxMap) {
- const result = new Set();
-
- for (const item in list) {
- if (!excludes.has(item) && (isPluginRequired(targets, list[item]) || includes.has(item))) {
- result.add(item);
- } else if (pluginSyntaxMap) {
- const shippedProposalsSyntax = pluginSyntaxMap.get(item);
-
- if (shippedProposalsSyntax) {
- result.add(shippedProposalsSyntax);
- }
- }
- }
-
- if (defaultIncludes) {
- defaultIncludes.forEach(item => !excludes.has(item) && result.add(item));
- }
-
- if (defaultExcludes) {
- defaultExcludes.forEach(item => !includes.has(item) && result.delete(item));
- }
-
- return result;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/lib/get-option-specific-excludes.js b/node_modules/@babel/preset-env/lib/get-option-specific-excludes.js
deleted file mode 100644
index d46fc68b..00000000
--- a/node_modules/@babel/preset-env/lib/get-option-specific-excludes.js
+++ /dev/null
@@ -1,13 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = _default;
-const defaultExcludesForLooseMode = ["transform-typeof-symbol"];
-
-function _default({
- loose
-}) {
- return loose ? defaultExcludesForLooseMode : null;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/lib/index.js b/node_modules/@babel/preset-env/lib/index.js
deleted file mode 100644
index 5797a8ee..00000000
--- a/node_modules/@babel/preset-env/lib/index.js
+++ /dev/null
@@ -1,284 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-Object.defineProperty(exports, "isPluginRequired", {
- enumerable: true,
- get: function () {
- return _filterItems.isPluginRequired;
- }
-});
-exports.default = exports.getPolyfillPlugins = exports.getModulesPluginNames = exports.transformIncludesAndExcludes = void 0;
-
-function _semver() {
- const data = require("semver");
-
- _semver = function () {
- return data;
- };
-
- return data;
-}
-
-var _debug = require("./debug");
-
-var _getOptionSpecificExcludes = _interopRequireDefault(require("./get-option-specific-excludes"));
-
-var _filterItems = _interopRequireWildcard(require("./filter-items"));
-
-var _moduleTransformations = _interopRequireDefault(require("./module-transformations"));
-
-var _normalizeOptions = _interopRequireDefault(require("./normalize-options"));
-
-var _plugins = _interopRequireDefault(require("../data/plugins.json"));
-
-var _shippedProposals = require("../data/shipped-proposals");
-
-var _usagePlugin = _interopRequireDefault(require("./polyfills/corejs2/usage-plugin"));
-
-var _usagePlugin2 = _interopRequireDefault(require("./polyfills/corejs3/usage-plugin"));
-
-var _usagePlugin3 = _interopRequireDefault(require("./polyfills/regenerator/usage-plugin"));
-
-var _entryPlugin = _interopRequireDefault(require("./polyfills/corejs2/entry-plugin"));
-
-var _entryPlugin2 = _interopRequireDefault(require("./polyfills/corejs3/entry-plugin"));
-
-var _entryPlugin3 = _interopRequireDefault(require("./polyfills/regenerator/entry-plugin"));
-
-var _targetsParser = _interopRequireDefault(require("./targets-parser"));
-
-var _availablePlugins = _interopRequireDefault(require("./available-plugins"));
-
-var _utils = require("./utils");
-
-function _helperPluginUtils() {
- const data = require("@babel/helper-plugin-utils");
-
- _helperPluginUtils = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-const pluginListWithoutProposals = (0, _utils.filterStageFromList)(_plugins.default, _shippedProposals.proposalPlugins);
-
-const getPlugin = pluginName => {
- const plugin = _availablePlugins.default[pluginName];
-
- if (!plugin) {
- throw new Error(`Could not find plugin "${pluginName}". Ensure there is an entry in ./available-plugins.js for it.`);
- }
-
- return plugin;
-};
-
-const transformIncludesAndExcludes = opts => {
- return opts.reduce((result, opt) => {
- const target = opt.match(/^(es|es6|es7|esnext|web)\./) ? "builtIns" : "plugins";
- result[target].add(opt);
- return result;
- }, {
- all: opts,
- plugins: new Set(),
- builtIns: new Set()
- });
-};
-
-exports.transformIncludesAndExcludes = transformIncludesAndExcludes;
-
-const getModulesPluginNames = ({
- modules,
- transformations,
- shouldTransformESM,
- shouldTransformDynamicImport
-}) => {
- const modulesPluginNames = [];
-
- if (modules !== false && transformations[modules]) {
- if (shouldTransformESM) {
- modulesPluginNames.push(transformations[modules]);
- }
-
- if (shouldTransformDynamicImport && shouldTransformESM && modules !== "umd") {
- modulesPluginNames.push("proposal-dynamic-import");
- } else {
- if (shouldTransformDynamicImport) {
- console.warn("Dynamic import can only be supported when transforming ES modules" + " to AMD, CommonJS or SystemJS. Only the parser plugin will be enabled.");
- }
-
- modulesPluginNames.push("syntax-dynamic-import");
- }
- } else {
- modulesPluginNames.push("syntax-dynamic-import");
- }
-
- return modulesPluginNames;
-};
-
-exports.getModulesPluginNames = getModulesPluginNames;
-
-const getPolyfillPlugins = ({
- useBuiltIns,
- corejs,
- polyfillTargets,
- include,
- exclude,
- proposals,
- shippedProposals,
- regenerator,
- debug
-}) => {
- const polyfillPlugins = [];
-
- if (useBuiltIns === "usage" || useBuiltIns === "entry") {
- const pluginOptions = {
- corejs,
- polyfillTargets,
- include,
- exclude,
- proposals,
- shippedProposals,
- regenerator,
- debug
- };
-
- if (corejs) {
- if (useBuiltIns === "usage") {
- if (corejs.major === 2) {
- polyfillPlugins.push([_usagePlugin.default, pluginOptions]);
- } else {
- polyfillPlugins.push([_usagePlugin2.default, pluginOptions]);
- }
-
- if (regenerator) {
- polyfillPlugins.push([_usagePlugin3.default, pluginOptions]);
- }
- } else {
- if (corejs.major === 2) {
- polyfillPlugins.push([_entryPlugin.default, pluginOptions]);
- } else {
- polyfillPlugins.push([_entryPlugin2.default, pluginOptions]);
-
- if (!regenerator) {
- polyfillPlugins.push([_entryPlugin3.default, pluginOptions]);
- }
- }
- }
- }
- }
-
- return polyfillPlugins;
-};
-
-exports.getPolyfillPlugins = getPolyfillPlugins;
-
-function supportsStaticESM(caller) {
- return !!(caller && caller.supportsStaticESM);
-}
-
-function supportsDynamicImport(caller) {
- return !!(caller && caller.supportsDynamicImport);
-}
-
-var _default = (0, _helperPluginUtils().declare)((api, opts) => {
- api.assertVersion(7);
- const {
- configPath,
- debug,
- exclude: optionsExclude,
- forceAllTransforms,
- ignoreBrowserslistConfig,
- include: optionsInclude,
- loose,
- modules,
- shippedProposals,
- spec,
- targets: optionsTargets,
- useBuiltIns,
- corejs: {
- version: corejs,
- proposals
- }
- } = (0, _normalizeOptions.default)(opts);
- let hasUglifyTarget = false;
-
- if (optionsTargets && optionsTargets.uglify) {
- hasUglifyTarget = true;
- delete optionsTargets.uglify;
- console.log("");
- console.log("The uglify target has been deprecated. Set the top level");
- console.log("option `forceAllTransforms: true` instead.");
- console.log("");
- }
-
- if (optionsTargets && optionsTargets.esmodules && optionsTargets.browsers) {
- console.log("");
- console.log("@babel/preset-env: esmodules and browsers targets have been specified together.");
- console.log(`\`browsers\` target, \`${optionsTargets.browsers}\` will be ignored.`);
- console.log("");
- }
-
- const targets = (0, _targetsParser.default)(optionsTargets, {
- ignoreBrowserslistConfig,
- configPath
- });
- const include = transformIncludesAndExcludes(optionsInclude);
- const exclude = transformIncludesAndExcludes(optionsExclude);
- const transformTargets = forceAllTransforms || hasUglifyTarget ? {} : targets;
- const modulesPluginNames = getModulesPluginNames({
- modules,
- transformations: _moduleTransformations.default,
- shouldTransformESM: modules !== "auto" || !api.caller || !api.caller(supportsStaticESM),
- shouldTransformDynamicImport: modules !== "auto" || !api.caller || !api.caller(supportsDynamicImport)
- });
- const pluginNames = (0, _filterItems.default)(shippedProposals ? _plugins.default : pluginListWithoutProposals, include.plugins, exclude.plugins, transformTargets, modulesPluginNames, (0, _getOptionSpecificExcludes.default)({
- loose
- }), _shippedProposals.pluginSyntaxMap);
- const polyfillPlugins = getPolyfillPlugins({
- useBuiltIns,
- corejs,
- polyfillTargets: targets,
- include: include.builtIns,
- exclude: exclude.builtIns,
- proposals,
- shippedProposals,
- regenerator: pluginNames.has("transform-regenerator"),
- debug
- });
- const pluginUseBuiltIns = useBuiltIns !== false;
- const plugins = Array.from(pluginNames).map(pluginName => [getPlugin(pluginName), {
- spec,
- loose,
- useBuiltIns: pluginUseBuiltIns
- }]).concat(polyfillPlugins);
-
- if (debug) {
- console.log("@babel/preset-env: `DEBUG` option");
- console.log("\nUsing targets:");
- console.log(JSON.stringify((0, _utils.prettifyTargets)(targets), null, 2));
- console.log(`\nUsing modules transform: ${modules.toString()}`);
- console.log("\nUsing plugins:");
- pluginNames.forEach(pluginName => {
- (0, _debug.logPluginOrPolyfill)(pluginName, targets, _plugins.default);
- });
-
- if (!useBuiltIns) {
- console.log("\nUsing polyfills: No polyfills were added, since the `useBuiltIns` option was not set.");
- } else {
- console.log(`\nUsing polyfills with \`${useBuiltIns}\` option:`);
- }
- }
-
- return {
- plugins
- };
-});
-
-exports.default = _default;
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/lib/module-transformations.js b/node_modules/@babel/preset-env/lib/module-transformations.js
deleted file mode 100644
index 6730c016..00000000
--- a/node_modules/@babel/preset-env/lib/module-transformations.js
+++ /dev/null
@@ -1,15 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-var _default = {
- auto: "transform-modules-commonjs",
- amd: "transform-modules-amd",
- commonjs: "transform-modules-commonjs",
- cjs: "transform-modules-commonjs",
- systemjs: "transform-modules-systemjs",
- umd: "transform-modules-umd"
-};
-exports.default = _default;
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/lib/normalize-options.js b/node_modules/@babel/preset-env/lib/normalize-options.js
deleted file mode 100644
index 48c300f4..00000000
--- a/node_modules/@babel/preset-env/lib/normalize-options.js
+++ /dev/null
@@ -1,212 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.normalizeCoreJSOption = normalizeCoreJSOption;
-exports.default = normalizeOptions;
-exports.validateUseBuiltInsOption = exports.validateModulesOption = exports.validateIgnoreBrowserslistConfig = exports.validateBoolOption = exports.validateConfigPathOption = exports.checkDuplicateIncludeExcludes = exports.normalizePluginName = void 0;
-
-function _data() {
- const data = _interopRequireDefault(require("core-js-compat/data"));
-
- _data = function () {
- return data;
- };
-
- return data;
-}
-
-function _invariant() {
- const data = _interopRequireDefault(require("invariant"));
-
- _invariant = function () {
- return data;
- };
-
- return data;
-}
-
-function _semver() {
- const data = require("semver");
-
- _semver = function () {
- return data;
- };
-
- return data;
-}
-
-var _corejs2BuiltIns = _interopRequireDefault(require("../data/corejs2-built-ins.json"));
-
-var _plugins = _interopRequireDefault(require("../data/plugins.json"));
-
-var _moduleTransformations = _interopRequireDefault(require("./module-transformations"));
-
-var _options = require("./options");
-
-var _getPlatformSpecificDefault = require("./polyfills/corejs2/get-platform-specific-default");
-
-var _targetsParser = require("./targets-parser");
-
-var _utils = require("./utils");
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-const validateTopLevelOptions = options => {
- const validOptions = Object.keys(_options.TopLevelOptions);
-
- for (const option in options) {
- if (!_options.TopLevelOptions[option]) {
- throw new Error(`Invalid Option: ${option} is not a valid top-level option.
- Maybe you meant to use '${(0, _utils.findSuggestion)(validOptions, option)}'?`);
- }
- }
-};
-
-const allPluginsList = Object.keys(_plugins.default);
-const modulePlugins = ["proposal-dynamic-import", ...Object.keys(_moduleTransformations.default).map(m => _moduleTransformations.default[m])];
-
-const getValidIncludesAndExcludes = (type, corejs) => new Set([...allPluginsList, ...(type === "exclude" ? modulePlugins : []), ...(corejs ? corejs == 2 ? [...Object.keys(_corejs2BuiltIns.default), ..._getPlatformSpecificDefault.defaultWebIncludes] : Object.keys(_data().default) : [])]);
-
-const pluginToRegExp = plugin => {
- if (plugin instanceof RegExp) return plugin;
-
- try {
- return new RegExp(`^${normalizePluginName(plugin)}$`);
- } catch (e) {
- return null;
- }
-};
-
-const selectPlugins = (regexp, type, corejs) => Array.from(getValidIncludesAndExcludes(type, corejs)).filter(item => regexp instanceof RegExp && regexp.test(item));
-
-const flatten = array => [].concat(...array);
-
-const expandIncludesAndExcludes = (plugins = [], type, corejs) => {
- if (plugins.length === 0) return [];
- const selectedPlugins = plugins.map(plugin => selectPlugins(pluginToRegExp(plugin), type, corejs));
- const invalidRegExpList = plugins.filter((p, i) => selectedPlugins[i].length === 0);
- (0, _invariant().default)(invalidRegExpList.length === 0, `Invalid Option: The plugins/built-ins '${invalidRegExpList.join(", ")}' passed to the '${type}' option are not
- valid. Please check data/[plugin-features|built-in-features].js in babel-preset-env`);
- return flatten(selectedPlugins);
-};
-
-const normalizePluginName = plugin => plugin.replace(/^(@babel\/|babel-)(plugin-)?/, "");
-
-exports.normalizePluginName = normalizePluginName;
-
-const checkDuplicateIncludeExcludes = (include = [], exclude = []) => {
- const duplicates = include.filter(opt => exclude.indexOf(opt) >= 0);
- (0, _invariant().default)(duplicates.length === 0, `Invalid Option: The plugins/built-ins '${duplicates.join(", ")}' were found in both the "include" and
- "exclude" options.`);
-};
-
-exports.checkDuplicateIncludeExcludes = checkDuplicateIncludeExcludes;
-
-const normalizeTargets = targets => {
- if ((0, _targetsParser.isBrowsersQueryValid)(targets)) {
- return {
- browsers: targets
- };
- }
-
- return Object.assign({}, targets);
-};
-
-const validateConfigPathOption = (configPath = process.cwd()) => {
- (0, _invariant().default)(typeof configPath === "string", `Invalid Option: The configPath option '${configPath}' is invalid, only strings are allowed.`);
- return configPath;
-};
-
-exports.validateConfigPathOption = validateConfigPathOption;
-
-const validateBoolOption = (name, value, defaultValue) => {
- if (typeof value === "undefined") {
- value = defaultValue;
- }
-
- if (typeof value !== "boolean") {
- throw new Error(`Preset env: '${name}' option must be a boolean.`);
- }
-
- return value;
-};
-
-exports.validateBoolOption = validateBoolOption;
-
-const validateIgnoreBrowserslistConfig = ignoreBrowserslistConfig => validateBoolOption(_options.TopLevelOptions.ignoreBrowserslistConfig, ignoreBrowserslistConfig, false);
-
-exports.validateIgnoreBrowserslistConfig = validateIgnoreBrowserslistConfig;
-
-const validateModulesOption = (modulesOpt = _options.ModulesOption.auto) => {
- (0, _invariant().default)(_options.ModulesOption[modulesOpt.toString()] || _options.ModulesOption[modulesOpt.toString()] === _options.ModulesOption.false, `Invalid Option: The 'modules' option must be one of \n` + ` - 'false' to indicate no module processing\n` + ` - a specific module type: 'commonjs', 'amd', 'umd', 'systemjs'` + ` - 'auto' (default) which will automatically select 'false' if the current\n` + ` process is known to support ES module syntax, or "commonjs" otherwise\n`);
- return modulesOpt;
-};
-
-exports.validateModulesOption = validateModulesOption;
-
-const validateUseBuiltInsOption = (builtInsOpt = false) => {
- (0, _invariant().default)(_options.UseBuiltInsOption[builtInsOpt.toString()] || _options.UseBuiltInsOption[builtInsOpt.toString()] === _options.UseBuiltInsOption.false, `Invalid Option: The 'useBuiltIns' option must be either
- 'false' (default) to indicate no polyfill,
- '"entry"' to indicate replacing the entry polyfill, or
- '"usage"' to import only used polyfills per file`);
- return builtInsOpt;
-};
-
-exports.validateUseBuiltInsOption = validateUseBuiltInsOption;
-
-function normalizeCoreJSOption(corejs, useBuiltIns) {
- let proposals = false;
- let rawVersion;
-
- if (useBuiltIns && corejs === undefined) {
- rawVersion = 2;
- console.warn("\nWARNING: We noticed you're using the `useBuiltIns` option without declaring a " + "core-js version. Currently, we assume version 2.x when no version " + "is passed. Since this default version will likely change in future " + "versions of Babel, we recommend explicitly setting the core-js version " + "you are using via the `corejs` option.\n" + "\nYou should also be sure that the version you pass to the `corejs` " + "option matches the version specified in your `package.json`'s " + "`dependencies` section. If it doesn't, you need to run one of the " + "following commands:\n\n" + " npm install --save core-js@2 npm install --save core-js@3\n" + " yarn add core-js@2 yarn add core-js@3\n");
- } else if (typeof corejs === "object" && corejs !== null) {
- rawVersion = corejs.version;
- proposals = Boolean(corejs.proposals);
- } else {
- rawVersion = corejs;
- }
-
- const version = rawVersion ? (0, _semver().coerce)(String(rawVersion)) : false;
-
- if (!useBuiltIns && version) {
- console.log("\nThe `corejs` option only has an effect when the `useBuiltIns` option is not `false`\n");
- }
-
- if (useBuiltIns && (!version || version.major < 2 || version.major > 3)) {
- throw new RangeError("Invalid Option: The version passed to `corejs` is invalid. Currently, " + "only core-js@2 and core-js@3 are supported.");
- }
-
- return {
- version,
- proposals
- };
-}
-
-function normalizeOptions(opts) {
- validateTopLevelOptions(opts);
- const useBuiltIns = validateUseBuiltInsOption(opts.useBuiltIns);
- const corejs = normalizeCoreJSOption(opts.corejs, useBuiltIns);
- const include = expandIncludesAndExcludes(opts.include, _options.TopLevelOptions.include, !!corejs.version && corejs.version.major);
- const exclude = expandIncludesAndExcludes(opts.exclude, _options.TopLevelOptions.exclude, !!corejs.version && corejs.version.major);
- checkDuplicateIncludeExcludes(include, exclude);
- const shippedProposals = validateBoolOption(_options.TopLevelOptions.shippedProposals, opts.shippedProposals, false) || corejs.proposals;
- return {
- configPath: validateConfigPathOption(opts.configPath),
- corejs,
- debug: validateBoolOption(_options.TopLevelOptions.debug, opts.debug, false),
- include,
- exclude,
- forceAllTransforms: validateBoolOption(_options.TopLevelOptions.forceAllTransforms, opts.forceAllTransforms, false),
- ignoreBrowserslistConfig: validateIgnoreBrowserslistConfig(opts.ignoreBrowserslistConfig),
- loose: validateBoolOption(_options.TopLevelOptions.loose, opts.loose, false),
- modules: validateModulesOption(opts.modules),
- shippedProposals,
- spec: validateBoolOption(_options.TopLevelOptions.spec, opts.spec, false),
- targets: normalizeTargets(opts.targets),
- useBuiltIns: useBuiltIns
- };
-}
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/lib/options.js b/node_modules/@babel/preset-env/lib/options.js
deleted file mode 100644
index af34e706..00000000
--- a/node_modules/@babel/preset-env/lib/options.js
+++ /dev/null
@@ -1,55 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.TargetNames = exports.UseBuiltInsOption = exports.ModulesOption = exports.TopLevelOptions = void 0;
-const TopLevelOptions = {
- configPath: "configPath",
- corejs: "corejs",
- debug: "debug",
- exclude: "exclude",
- forceAllTransforms: "forceAllTransforms",
- ignoreBrowserslistConfig: "ignoreBrowserslistConfig",
- include: "include",
- loose: "loose",
- modules: "modules",
- shippedProposals: "shippedProposals",
- spec: "spec",
- targets: "targets",
- useBuiltIns: "useBuiltIns"
-};
-exports.TopLevelOptions = TopLevelOptions;
-const ModulesOption = {
- false: false,
- auto: "auto",
- amd: "amd",
- commonjs: "commonjs",
- cjs: "cjs",
- systemjs: "systemjs",
- umd: "umd"
-};
-exports.ModulesOption = ModulesOption;
-const UseBuiltInsOption = {
- false: false,
- entry: "entry",
- usage: "usage"
-};
-exports.UseBuiltInsOption = UseBuiltInsOption;
-const TargetNames = {
- esmodules: "esmodules",
- node: "node",
- browsers: "browsers",
- chrome: "chrome",
- opera: "opera",
- edge: "edge",
- firefox: "firefox",
- safari: "safari",
- ie: "ie",
- ios: "ios",
- android: "android",
- electron: "electron",
- samsung: "samsung",
- uglify: "uglify"
-};
-exports.TargetNames = TargetNames;
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/lib/polyfills/corejs2/built-in-definitions.js b/node_modules/@babel/preset-env/lib/polyfills/corejs2/built-in-definitions.js
deleted file mode 100644
index 9d8bea51..00000000
--- a/node_modules/@babel/preset-env/lib/polyfills/corejs2/built-in-definitions.js
+++ /dev/null
@@ -1,175 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.StaticProperties = exports.InstanceProperties = exports.BuiltIns = void 0;
-const ArrayNatureIterators = ["es6.object.to-string", "es6.array.iterator", "web.dom.iterable"];
-const CommonIterators = ["es6.string.iterator", ...ArrayNatureIterators];
-const PromiseDependencies = ["es6.object.to-string", "es6.promise"];
-const BuiltIns = {
- DataView: "es6.typed.data-view",
- Float32Array: "es6.typed.float32-array",
- Float64Array: "es6.typed.float64-array",
- Int8Array: "es6.typed.int8-array",
- Int16Array: "es6.typed.int16-array",
- Int32Array: "es6.typed.int32-array",
- Map: ["es6.map", ...CommonIterators],
- Number: "es6.number.constructor",
- Promise: PromiseDependencies,
- RegExp: ["es6.regexp.constructor"],
- Set: ["es6.set", ...CommonIterators],
- Symbol: ["es6.symbol", "es7.symbol.async-iterator"],
- Uint8Array: "es6.typed.uint8-array",
- Uint8ClampedArray: "es6.typed.uint8-clamped-array",
- Uint16Array: "es6.typed.uint16-array",
- Uint32Array: "es6.typed.uint32-array",
- WeakMap: ["es6.weak-map", ...CommonIterators],
- WeakSet: ["es6.weak-set", ...CommonIterators]
-};
-exports.BuiltIns = BuiltIns;
-const InstanceProperties = {
- __defineGetter__: ["es7.object.define-getter"],
- __defineSetter__: ["es7.object.define-setter"],
- __lookupGetter__: ["es7.object.lookup-getter"],
- __lookupSetter__: ["es7.object.lookup-setter"],
- anchor: ["es6.string.anchor"],
- big: ["es6.string.big"],
- bind: ["es6.function.bind"],
- blink: ["es6.string.blink"],
- bold: ["es6.string.bold"],
- codePointAt: ["es6.string.code-point-at"],
- copyWithin: ["es6.array.copy-within"],
- endsWith: ["es6.string.ends-with"],
- entries: ArrayNatureIterators,
- every: ["es6.array.is-array"],
- fill: ["es6.array.fill"],
- filter: ["es6.array.filter"],
- finally: ["es7.promise.finally", ...PromiseDependencies],
- find: ["es6.array.find"],
- findIndex: ["es6.array.find-index"],
- fixed: ["es6.string.fixed"],
- flags: ["es6.regexp.flags"],
- flatMap: ["es7.array.flat-map"],
- fontcolor: ["es6.string.fontcolor"],
- fontsize: ["es6.string.fontsize"],
- forEach: ["es6.array.for-each"],
- includes: ["es6.string.includes", "es7.array.includes"],
- indexOf: ["es6.array.index-of"],
- italics: ["es6.string.italics"],
- keys: ArrayNatureIterators,
- lastIndexOf: ["es6.array.last-index-of"],
- link: ["es6.string.link"],
- map: ["es6.array.map"],
- match: ["es6.regexp.match"],
- name: ["es6.function.name"],
- padStart: ["es7.string.pad-start"],
- padEnd: ["es7.string.pad-end"],
- reduce: ["es6.array.reduce"],
- reduceRight: ["es6.array.reduce-right"],
- repeat: ["es6.string.repeat"],
- replace: ["es6.regexp.replace"],
- search: ["es6.regexp.search"],
- slice: ["es6.array.slice"],
- small: ["es6.string.small"],
- some: ["es6.array.some"],
- sort: ["es6.array.sort"],
- split: ["es6.regexp.split"],
- startsWith: ["es6.string.starts-with"],
- strike: ["es6.string.strike"],
- sub: ["es6.string.sub"],
- sup: ["es6.string.sup"],
- toISOString: ["es6.date.to-iso-string"],
- toJSON: ["es6.date.to-json"],
- toString: ["es6.object.to-string", "es6.date.to-string", "es6.regexp.to-string"],
- trim: ["es6.string.trim"],
- trimEnd: ["es7.string.trim-right"],
- trimLeft: ["es7.string.trim-left"],
- trimRight: ["es7.string.trim-right"],
- trimStart: ["es7.string.trim-left"],
- values: ArrayNatureIterators
-};
-exports.InstanceProperties = InstanceProperties;
-const StaticProperties = {
- Array: {
- from: ["es6.array.from", "es6.string.iterator"],
- isArray: "es6.array.is-array",
- of: "es6.array.of"
- },
- Date: {
- now: "es6.date.now"
- },
- Object: {
- assign: "es6.object.assign",
- create: "es6.object.create",
- defineProperty: "es6.object.define-property",
- defineProperties: "es6.object.define-properties",
- entries: "es7.object.entries",
- freeze: "es6.object.freeze",
- getOwnPropertyDescriptors: "es7.object.get-own-property-descriptors",
- getOwnPropertySymbols: "es6.symbol",
- is: "es6.object.is",
- isExtensible: "es6.object.is-extensible",
- isFrozen: "es6.object.is-frozen",
- isSealed: "es6.object.is-sealed",
- keys: "es6.object.keys",
- preventExtensions: "es6.object.prevent-extensions",
- seal: "es6.object.seal",
- setPrototypeOf: "es6.object.set-prototype-of",
- values: "es7.object.values"
- },
- Math: {
- acosh: "es6.math.acosh",
- asinh: "es6.math.asinh",
- atanh: "es6.math.atanh",
- cbrt: "es6.math.cbrt",
- clz32: "es6.math.clz32",
- cosh: "es6.math.cosh",
- expm1: "es6.math.expm1",
- fround: "es6.math.fround",
- hypot: "es6.math.hypot",
- imul: "es6.math.imul",
- log1p: "es6.math.log1p",
- log10: "es6.math.log10",
- log2: "es6.math.log2",
- sign: "es6.math.sign",
- sinh: "es6.math.sinh",
- tanh: "es6.math.tanh",
- trunc: "es6.math.trunc"
- },
- String: {
- fromCodePoint: "es6.string.from-code-point",
- raw: "es6.string.raw"
- },
- Number: {
- EPSILON: "es6.number.epsilon",
- MIN_SAFE_INTEGER: "es6.number.min-safe-integer",
- MAX_SAFE_INTEGER: "es6.number.max-safe-integer",
- isFinite: "es6.number.is-finite",
- isInteger: "es6.number.is-integer",
- isSafeInteger: "es6.number.is-safe-integer",
- isNaN: "es6.number.is-nan",
- parseFloat: "es6.number.parse-float",
- parseInt: "es6.number.parse-int"
- },
- Promise: {
- all: CommonIterators,
- race: CommonIterators
- },
- Reflect: {
- apply: "es6.reflect.apply",
- construct: "es6.reflect.construct",
- defineProperty: "es6.reflect.define-property",
- deleteProperty: "es6.reflect.delete-property",
- get: "es6.reflect.get",
- getOwnPropertyDescriptor: "es6.reflect.get-own-property-descriptor",
- getPrototypeOf: "es6.reflect.get-prototype-of",
- has: "es6.reflect.has",
- isExtensible: "es6.reflect.is-extensible",
- ownKeys: "es6.reflect.own-keys",
- preventExtensions: "es6.reflect.prevent-extensions",
- set: "es6.reflect.set",
- setPrototypeOf: "es6.reflect.set-prototype-of"
- }
-};
-exports.StaticProperties = StaticProperties;
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/lib/polyfills/corejs2/entry-plugin.js b/node_modules/@babel/preset-env/lib/polyfills/corejs2/entry-plugin.js
deleted file mode 100644
index 19ae5183..00000000
--- a/node_modules/@babel/preset-env/lib/polyfills/corejs2/entry-plugin.js
+++ /dev/null
@@ -1,75 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = _default;
-
-var _corejs2BuiltIns = _interopRequireDefault(require("../../../data/corejs2-built-ins.json"));
-
-var _getPlatformSpecificDefault = _interopRequireDefault(require("./get-platform-specific-default"));
-
-var _filterItems = _interopRequireDefault(require("../../filter-items"));
-
-var _utils = require("../../utils");
-
-var _debug = require("../../debug");
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function _default(_, {
- include,
- exclude,
- polyfillTargets,
- regenerator,
- debug
-}) {
- const polyfills = (0, _filterItems.default)(_corejs2BuiltIns.default, include, exclude, polyfillTargets, (0, _getPlatformSpecificDefault.default)(polyfillTargets));
- const isPolyfillImport = {
- ImportDeclaration(path) {
- if ((0, _utils.isPolyfillSource)((0, _utils.getImportSource)(path))) {
- this.replaceBySeparateModulesImport(path);
- }
- },
-
- Program(path) {
- path.get("body").forEach(bodyPath => {
- if ((0, _utils.isPolyfillSource)((0, _utils.getRequireSource)(bodyPath))) {
- this.replaceBySeparateModulesImport(bodyPath);
- }
- });
- }
-
- };
- return {
- name: "corejs2-entry",
- visitor: isPolyfillImport,
-
- pre() {
- this.importPolyfillIncluded = false;
-
- this.replaceBySeparateModulesImport = function (path) {
- this.importPolyfillIncluded = true;
-
- if (regenerator) {
- (0, _utils.createImport)(path, "regenerator-runtime");
- }
-
- const modules = Array.from(polyfills).reverse();
-
- for (const module of modules) {
- (0, _utils.createImport)(path, module);
- }
-
- path.remove();
- };
- },
-
- post() {
- if (debug) {
- (0, _debug.logEntryPolyfills)("@babel/polyfill", this.importPolyfillIncluded, polyfills, this.file.opts.filename, polyfillTargets, _corejs2BuiltIns.default);
- }
- }
-
- };
-}
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/lib/polyfills/corejs2/get-platform-specific-default.js b/node_modules/@babel/preset-env/lib/polyfills/corejs2/get-platform-specific-default.js
deleted file mode 100644
index d6d684ca..00000000
--- a/node_modules/@babel/preset-env/lib/polyfills/corejs2/get-platform-specific-default.js
+++ /dev/null
@@ -1,16 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = _default;
-exports.defaultWebIncludes = void 0;
-const defaultWebIncludes = ["web.timers", "web.immediate", "web.dom.iterable"];
-exports.defaultWebIncludes = defaultWebIncludes;
-
-function _default(targets) {
- const targetNames = Object.keys(targets);
- const isAnyTarget = !targetNames.length;
- const isWebTarget = targetNames.some(name => name !== "node");
- return isAnyTarget || isWebTarget ? defaultWebIncludes : null;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/lib/polyfills/corejs2/usage-plugin.js b/node_modules/@babel/preset-env/lib/polyfills/corejs2/usage-plugin.js
deleted file mode 100644
index c03ddb55..00000000
--- a/node_modules/@babel/preset-env/lib/polyfills/corejs2/usage-plugin.js
+++ /dev/null
@@ -1,219 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = _default;
-
-var _corejs2BuiltIns = _interopRequireDefault(require("../../../data/corejs2-built-ins.json"));
-
-var _getPlatformSpecificDefault = _interopRequireDefault(require("./get-platform-specific-default"));
-
-var _filterItems = _interopRequireDefault(require("../../filter-items"));
-
-var _builtInDefinitions = require("./built-in-definitions");
-
-var _utils = require("../../utils");
-
-var _debug = require("../../debug");
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-const NO_DIRECT_POLYFILL_IMPORT = `
- When setting \`useBuiltIns: 'usage'\`, polyfills are automatically imported when needed.
- Please remove the \`import '@babel/polyfill'\` call or use \`useBuiltIns: 'entry'\` instead.`;
-
-function _default({
- types: t
-}, {
- include,
- exclude,
- polyfillTargets,
- debug
-}) {
- const polyfills = (0, _filterItems.default)(_corejs2BuiltIns.default, include, exclude, polyfillTargets, (0, _getPlatformSpecificDefault.default)(polyfillTargets));
- const addAndRemovePolyfillImports = {
- ImportDeclaration(path) {
- if ((0, _utils.isPolyfillSource)((0, _utils.getImportSource)(path))) {
- console.warn(NO_DIRECT_POLYFILL_IMPORT);
- path.remove();
- }
- },
-
- Program(path) {
- path.get("body").forEach(bodyPath => {
- if ((0, _utils.isPolyfillSource)((0, _utils.getRequireSource)(bodyPath))) {
- console.warn(NO_DIRECT_POLYFILL_IMPORT);
- bodyPath.remove();
- }
- });
- },
-
- ReferencedIdentifier({
- node: {
- name
- },
- parent,
- scope
- }) {
- if (t.isMemberExpression(parent)) return;
- if (!(0, _utils.has)(_builtInDefinitions.BuiltIns, name)) return;
- if (scope.getBindingIdentifier(name)) return;
- const BuiltInDependencies = _builtInDefinitions.BuiltIns[name];
- this.addUnsupported(BuiltInDependencies);
- },
-
- CallExpression(path) {
- if (path.node.arguments.length) return;
- const callee = path.node.callee;
- if (!t.isMemberExpression(callee)) return;
- if (!callee.computed) return;
-
- if (!path.get("callee.property").matchesPattern("Symbol.iterator")) {
- return;
- }
-
- this.addImport("web.dom.iterable");
- },
-
- BinaryExpression(path) {
- if (path.node.operator !== "in") return;
- if (!path.get("left").matchesPattern("Symbol.iterator")) return;
- this.addImport("web.dom.iterable");
- },
-
- YieldExpression(path) {
- if (path.node.delegate) {
- this.addImport("web.dom.iterable");
- }
- },
-
- MemberExpression: {
- enter(path) {
- const {
- node
- } = path;
- const {
- object,
- property
- } = node;
- if ((0, _utils.isNamespaced)(path.get("object"))) return;
- let evaluatedPropType = object.name;
- let propertyName = "";
- let instanceType = "";
-
- if (node.computed) {
- if (t.isStringLiteral(property)) {
- propertyName = property.value;
- } else {
- const result = path.get("property").evaluate();
-
- if (result.confident && result.value) {
- propertyName = result.value;
- }
- }
- } else {
- propertyName = property.name;
- }
-
- if (path.scope.getBindingIdentifier(object.name)) {
- const result = path.get("object").evaluate();
-
- if (result.value) {
- instanceType = (0, _utils.getType)(result.value);
- } else if (result.deopt && result.deopt.isIdentifier()) {
- evaluatedPropType = result.deopt.node.name;
- }
- }
-
- if ((0, _utils.has)(_builtInDefinitions.StaticProperties, evaluatedPropType)) {
- const BuiltInProperties = _builtInDefinitions.StaticProperties[evaluatedPropType];
-
- if ((0, _utils.has)(BuiltInProperties, propertyName)) {
- const StaticPropertyDependencies = BuiltInProperties[propertyName];
- this.addUnsupported(StaticPropertyDependencies);
- }
- }
-
- if ((0, _utils.has)(_builtInDefinitions.InstanceProperties, propertyName)) {
- let InstancePropertyDependencies = _builtInDefinitions.InstanceProperties[propertyName];
-
- if (instanceType) {
- InstancePropertyDependencies = InstancePropertyDependencies.filter(module => module.includes(instanceType));
- }
-
- this.addUnsupported(InstancePropertyDependencies);
- }
- },
-
- exit(path) {
- const {
- name
- } = path.node.object;
- if (!(0, _utils.has)(_builtInDefinitions.BuiltIns, name)) return;
- if (path.scope.getBindingIdentifier(name)) return;
- const BuiltInDependencies = _builtInDefinitions.BuiltIns[name];
- this.addUnsupported(BuiltInDependencies);
- }
-
- },
-
- VariableDeclarator(path) {
- const {
- node
- } = path;
- const {
- id,
- init
- } = node;
- if (!t.isObjectPattern(id)) return;
- if (init && path.scope.getBindingIdentifier(init.name)) return;
-
- for (const _ref of id.properties) {
- const {
- key
- } = _ref;
-
- if (!node.computed && t.isIdentifier(key) && (0, _utils.has)(_builtInDefinitions.InstanceProperties, key.name)) {
- const InstancePropertyDependencies = _builtInDefinitions.InstanceProperties[key.name];
- this.addUnsupported(InstancePropertyDependencies);
- }
- }
- }
-
- };
- return {
- name: "corejs2-usage",
-
- pre({
- path
- }) {
- this.polyfillsSet = new Set();
-
- this.addImport = function (builtIn) {
- if (!this.polyfillsSet.has(builtIn)) {
- this.polyfillsSet.add(builtIn);
- (0, _utils.createImport)(path, builtIn);
- }
- };
-
- this.addUnsupported = function (builtIn) {
- const modules = Array.isArray(builtIn) ? builtIn : [builtIn];
-
- for (const module of modules) {
- if (polyfills.has(module)) {
- this.addImport(module);
- }
- }
- };
- },
-
- post() {
- if (debug) {
- (0, _debug.logUsagePolyfills)(this.polyfillsSet, this.file.opts.filename, polyfillTargets, _corejs2BuiltIns.default);
- }
- },
-
- visitor: addAndRemovePolyfillImports
- };
-}
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/lib/polyfills/corejs3/built-in-definitions.js b/node_modules/@babel/preset-env/lib/polyfills/corejs3/built-in-definitions.js
deleted file mode 100644
index a6dd9e31..00000000
--- a/node_modules/@babel/preset-env/lib/polyfills/corejs3/built-in-definitions.js
+++ /dev/null
@@ -1,304 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.PossibleGlobalObjects = exports.CommonInstanceDependencies = exports.StaticProperties = exports.InstanceProperties = exports.BuiltIns = exports.PromiseDependencies = exports.CommonIterators = void 0;
-const ArrayNatureIterators = ["es.array.iterator", "web.dom-collections.iterator"];
-const CommonIterators = ["es.string.iterator", ...ArrayNatureIterators];
-exports.CommonIterators = CommonIterators;
-const ArrayNatureIteratorsWithTag = ["es.object.to-string", ...ArrayNatureIterators];
-const CommonIteratorsWithTag = ["es.object.to-string", ...CommonIterators];
-const TypedArrayDependencies = ["es.typed-array.copy-within", "es.typed-array.every", "es.typed-array.fill", "es.typed-array.filter", "es.typed-array.find", "es.typed-array.find-index", "es.typed-array.for-each", "es.typed-array.includes", "es.typed-array.index-of", "es.typed-array.iterator", "es.typed-array.join", "es.typed-array.last-index-of", "es.typed-array.map", "es.typed-array.reduce", "es.typed-array.reduce-right", "es.typed-array.reverse", "es.typed-array.set", "es.typed-array.slice", "es.typed-array.some", "es.typed-array.sort", "es.typed-array.subarray", "es.typed-array.to-locale-string", "es.typed-array.to-string", "es.object.to-string", "es.array.iterator", "es.array-buffer.slice"];
-const TypedArrayStaticMethods = {
- from: "es.typed-array.from",
- of: "es.typed-array.of"
-};
-const PromiseDependencies = ["es.promise", "es.object.to-string"];
-exports.PromiseDependencies = PromiseDependencies;
-const PromiseDependenciesWithIterators = [...PromiseDependencies, ...CommonIterators];
-const SymbolDependencies = ["es.symbol", "es.symbol.description", "es.object.to-string"];
-const MapDependencies = ["es.map", "esnext.map.delete-all", "esnext.map.every", "esnext.map.filter", "esnext.map.find", "esnext.map.find-key", "esnext.map.includes", "esnext.map.key-of", "esnext.map.map-keys", "esnext.map.map-values", "esnext.map.merge", "esnext.map.reduce", "esnext.map.some", "esnext.map.update", ...CommonIteratorsWithTag];
-const SetDependencies = ["es.set", "esnext.set.add-all", "esnext.set.delete-all", "esnext.set.difference", "esnext.set.every", "esnext.set.filter", "esnext.set.find", "esnext.set.intersection", "esnext.set.is-disjoint-from", "esnext.set.is-subset-of", "esnext.set.is-superset-of", "esnext.set.join", "esnext.set.map", "esnext.set.reduce", "esnext.set.some", "esnext.set.symmetric-difference", "esnext.set.union", ...CommonIteratorsWithTag];
-const WeakMapDependencies = ["es.weak-map", "esnext.weak-map.delete-all", ...CommonIteratorsWithTag];
-const WeakSetDependencies = ["es.weak-set", "esnext.weak-set.add-all", "esnext.weak-set.delete-all", ...CommonIteratorsWithTag];
-const URLSearchParamsDependencies = ["web.url", ...CommonIteratorsWithTag];
-const BuiltIns = {
- AggregateError: ["esnext.aggregate-error", ...CommonIterators],
- ArrayBuffer: ["es.array-buffer.constructor", "es.array-buffer.slice", "es.object.to-string"],
- DataView: ["es.data-view", "es.array-buffer.slice", "es.object.to-string"],
- Date: ["es.date.to-string"],
- Float32Array: ["es.typed-array.float32-array", ...TypedArrayDependencies],
- Float64Array: ["es.typed-array.float64-array", ...TypedArrayDependencies],
- Int8Array: ["es.typed-array.int8-array", ...TypedArrayDependencies],
- Int16Array: ["es.typed-array.int16-array", ...TypedArrayDependencies],
- Int32Array: ["es.typed-array.int32-array", ...TypedArrayDependencies],
- Uint8Array: ["es.typed-array.uint8-array", ...TypedArrayDependencies],
- Uint8ClampedArray: ["es.typed-array.uint8-clamped-array", ...TypedArrayDependencies],
- Uint16Array: ["es.typed-array.uint16-array", ...TypedArrayDependencies],
- Uint32Array: ["es.typed-array.uint32-array", ...TypedArrayDependencies],
- Map: MapDependencies,
- Number: ["es.number.constructor"],
- Observable: ["esnext.observable", "esnext.symbol.observable", "es.object.to-string", ...CommonIteratorsWithTag],
- Promise: PromiseDependencies,
- RegExp: ["es.regexp.constructor", "es.regexp.exec", "es.regexp.to-string"],
- Set: SetDependencies,
- Symbol: SymbolDependencies,
- URL: ["web.url", ...URLSearchParamsDependencies],
- URLSearchParams: URLSearchParamsDependencies,
- WeakMap: WeakMapDependencies,
- WeakSet: WeakSetDependencies,
- clearImmediate: ["web.immediate"],
- compositeKey: ["esnext.composite-key"],
- compositeSymbol: ["esnext.composite-symbol", ...SymbolDependencies],
- fetch: PromiseDependencies,
- globalThis: ["esnext.global-this"],
- parseFloat: ["es.parse-float"],
- parseInt: ["es.parse-int"],
- queueMicrotask: ["web.queue-microtask"],
- setTimeout: ["web.timers"],
- setInterval: ["web.timers"],
- setImmediate: ["web.immediate"]
-};
-exports.BuiltIns = BuiltIns;
-const InstanceProperties = {
- at: ["esnext.string.at"],
- anchor: ["es.string.anchor"],
- big: ["es.string.big"],
- bind: ["es.function.bind"],
- blink: ["es.string.blink"],
- bold: ["es.string.bold"],
- codePointAt: ["es.string.code-point-at"],
- codePoints: ["esnext.string.code-points"],
- concat: ["es.array.concat"],
- copyWithin: ["es.array.copy-within"],
- description: ["es.symbol", "es.symbol.description"],
- endsWith: ["es.string.ends-with"],
- entries: ArrayNatureIteratorsWithTag,
- every: ["es.array.every"],
- exec: ["es.regexp.exec"],
- fill: ["es.array.fill"],
- filter: ["es.array.filter"],
- finally: ["es.promise.finally", ...PromiseDependencies],
- find: ["es.array.find"],
- findIndex: ["es.array.find-index"],
- fixed: ["es.string.fixed"],
- flags: ["es.regexp.flags"],
- flat: ["es.array.flat", "es.array.unscopables.flat"],
- flatMap: ["es.array.flat-map", "es.array.unscopables.flat-map"],
- fontcolor: ["es.string.fontcolor"],
- fontsize: ["es.string.fontsize"],
- forEach: ["es.array.for-each", "web.dom-collections.for-each"],
- includes: ["es.array.includes", "es.string.includes"],
- indexOf: ["es.array.index-of"],
- italic: ["es.string.italics"],
- join: ["es.array.join"],
- keys: ArrayNatureIteratorsWithTag,
- lastIndex: ["esnext.array.last-index"],
- lastIndexOf: ["es.array.last-index-of"],
- lastItem: ["esnext.array.last-item"],
- link: ["es.string.link"],
- match: ["es.string.match", "es.regexp.exec"],
- matchAll: ["esnext.string.match-all"],
- map: ["es.array.map"],
- name: ["es.function.name"],
- padEnd: ["es.string.pad-end"],
- padStart: ["es.string.pad-start"],
- reduce: ["es.array.reduce"],
- reduceRight: ["es.array.reduce-right"],
- repeat: ["es.string.repeat"],
- replace: ["es.string.replace", "es.regexp.exec"],
- replaceAll: ["esnext.string.replace-all"],
- reverse: ["es.array.reverse"],
- search: ["es.string.search", "es.regexp.exec"],
- slice: ["es.array.slice"],
- small: ["es.string.small"],
- some: ["es.array.some"],
- sort: ["es.array.sort"],
- splice: ["es.array.splice"],
- split: ["es.string.split", "es.regexp.exec"],
- startsWith: ["es.string.starts-with"],
- strike: ["es.string.strike"],
- sub: ["es.string.sub"],
- sup: ["es.string.sup"],
- toFixed: ["es.number.to-fixed"],
- toISOString: ["es.date.to-iso-string"],
- toJSON: ["es.date.to-json", "web.url.to-json"],
- toPrecision: ["es.number.to-precision"],
- toString: ["es.object.to-string", "es.regexp.to-string", "es.date.to-string"],
- trim: ["es.string.trim"],
- trimEnd: ["es.string.trim-end"],
- trimLeft: ["es.string.trim-start"],
- trimRight: ["es.string.trim-end"],
- trimStart: ["es.string.trim-start"],
- values: ArrayNatureIteratorsWithTag,
- __defineGetter__: ["es.object.define-getter"],
- __defineSetter__: ["es.object.define-setter"],
- __lookupGetter__: ["es.object.lookup-getter"],
- __lookupSetter__: ["es.object.lookup-setter"]
-};
-exports.InstanceProperties = InstanceProperties;
-const StaticProperties = {
- Array: {
- from: ["es.array.from", "es.string.iterator"],
- isArray: ["es.array.is-array"],
- of: ["es.array.of"]
- },
- Date: {
- now: "es.date.now"
- },
- Object: {
- assign: "es.object.assign",
- create: "es.object.create",
- defineProperty: "es.object.define-property",
- defineProperties: "es.object.define-properties",
- entries: "es.object.entries",
- freeze: "es.object.freeze",
- fromEntries: ["es.object.from-entries", "es.array.iterator"],
- getOwnPropertyDescriptor: "es.object.get-own-property-descriptor",
- getOwnPropertyDescriptors: "es.object.get-own-property-descriptors",
- getOwnPropertyNames: "es.object.get-own-property-names",
- getOwnPropertySymbols: "es.symbol",
- getPrototypeOf: "es.object.get-prototype-of",
- is: "es.object.is",
- isExtensible: "es.object.is-extensible",
- isFrozen: "es.object.is-frozen",
- isSealed: "es.object.is-sealed",
- keys: "es.object.keys",
- preventExtensions: "es.object.prevent-extensions",
- seal: "es.object.seal",
- setPrototypeOf: "es.object.set-prototype-of",
- values: "es.object.values"
- },
- Math: {
- DEG_PER_RAD: "esnext.math.deg-per-rad",
- RAD_PER_DEG: "esnext.math.rad-per-deg",
- acosh: "es.math.acosh",
- asinh: "es.math.asinh",
- atanh: "es.math.atanh",
- cbrt: "es.math.cbrt",
- clamp: "esnext.math.clamp",
- clz32: "es.math.clz32",
- cosh: "es.math.cosh",
- degrees: "esnext.math.degrees",
- expm1: "es.math.expm1",
- fround: "es.math.fround",
- fscale: "esnext.math.fscale",
- hypot: "es.math.hypot",
- iaddh: "esnext.math.iaddh",
- imul: "es.math.imul",
- imulh: "esnext.math.imulh",
- isubh: "esnext.math.isubh",
- log1p: "es.math.log1p",
- log10: "es.math.log10",
- log2: "es.math.log2",
- radians: "esnext.math.radians",
- scale: "esnext.math.scale",
- seededPRNG: "esnext.math.seeded-prng",
- sign: "es.math.sign",
- signbit: "esnext.math.signbit",
- sinh: "es.math.sinh",
- tanh: "es.math.tanh",
- trunc: "es.math.trunc",
- umulh: "esnext.math.umulh"
- },
- String: {
- fromCodePoint: "es.string.from-code-point",
- raw: "es.string.raw"
- },
- Number: {
- EPSILON: "es.number.epsilon",
- MIN_SAFE_INTEGER: "es.number.min-safe-integer",
- MAX_SAFE_INTEGER: "es.number.max-safe-integer",
- fromString: "esnext.number.from-string",
- isFinite: "es.number.is-finite",
- isInteger: "es.number.is-integer",
- isSafeInteger: "es.number.is-safe-integer",
- isNaN: "es.number.is-nan",
- parseFloat: "es.number.parse-float",
- parseInt: "es.number.parse-int"
- },
- Map: {
- from: ["esnext.map.from", ...MapDependencies],
- groupBy: ["esnext.map.group-by", ...MapDependencies],
- keyBy: ["esnext.map.key-by", ...MapDependencies],
- of: ["esnext.map.of", ...MapDependencies]
- },
- Set: {
- from: ["esnext.set.from", ...SetDependencies],
- of: ["esnext.set.of", ...SetDependencies]
- },
- WeakMap: {
- from: ["esnext.weak-map.from", ...WeakMapDependencies],
- of: ["esnext.weak-map.of", ...WeakMapDependencies]
- },
- WeakSet: {
- from: ["esnext.weak-set.from", ...WeakSetDependencies],
- of: ["esnext.weak-set.of", ...WeakSetDependencies]
- },
- Promise: {
- all: PromiseDependenciesWithIterators,
- allSettled: ["esnext.promise.all-settled", ...PromiseDependenciesWithIterators],
- any: ["esnext.promise.any", ...PromiseDependenciesWithIterators],
- race: PromiseDependenciesWithIterators,
- try: ["esnext.promise.try", ...PromiseDependenciesWithIterators]
- },
- Reflect: {
- apply: "es.reflect.apply",
- construct: "es.reflect.construct",
- defineMetadata: "esnext.reflect.define-metadata",
- defineProperty: "es.reflect.define-property",
- deleteMetadata: "esnext.reflect.delete-metadata",
- deleteProperty: "es.reflect.delete-property",
- get: "es.reflect.get",
- getMetadata: "esnext.reflect.get-metadata",
- getMetadataKeys: "esnext.reflect.get-metadata-keys",
- getOwnMetadata: "esnext.reflect.get-own-metadata",
- getOwnMetadataKeys: "esnext.reflect.get-own-metadata-keys",
- getOwnPropertyDescriptor: "es.reflect.get-own-property-descriptor",
- getPrototypeOf: "es.reflect.get-prototype-of",
- has: "es.reflect.has",
- hasMetadata: "esnext.reflect.has-metadata",
- hasOwnMetadata: "esnext.reflect.has-own-metadata",
- isExtensible: "es.reflect.is-extensible",
- metadata: "esnext.reflect.metadata",
- ownKeys: "es.reflect.own-keys",
- preventExtensions: "es.reflect.prevent-extensions",
- set: "es.reflect.set",
- setPrototypeOf: "es.reflect.set-prototype-of"
- },
- Symbol: {
- asyncIterator: ["es.symbol.async-iterator"],
- dispose: ["esnext.symbol.dispose"],
- hasInstance: ["es.symbol.has-instance", "es.function.has-instance"],
- isConcatSpreadable: ["es.symbol.is-concat-spreadable", "es.array.concat"],
- iterator: ["es.symbol.iterator", ...CommonIteratorsWithTag],
- match: ["es.symbol.match", "es.string.match"],
- observable: ["esnext.symbol.observable"],
- patternMatch: ["esnext.symbol.pattern-match"],
- replace: ["es.symbol.replace", "es.string.replace"],
- search: ["es.symbol.search", "es.string.search"],
- species: ["es.symbol.species", "es.array.species"],
- split: ["es.symbol.split", "es.string.split"],
- toPrimitive: ["es.symbol.to-primitive", "es.date.to-primitive"],
- toStringTag: ["es.symbol.to-string-tag", "es.object.to-string", "es.math.to-string-tag", "es.json.to-string-tag"],
- unscopables: ["es.symbol.unscopables"]
- },
- ArrayBuffer: {
- isView: ["es.array-buffer.is-view"]
- },
- Int8Array: TypedArrayStaticMethods,
- Uint8Array: TypedArrayStaticMethods,
- Uint8ClampedArray: TypedArrayStaticMethods,
- Int16Array: TypedArrayStaticMethods,
- Uint16Array: TypedArrayStaticMethods,
- Int32Array: TypedArrayStaticMethods,
- Uint32Array: TypedArrayStaticMethods,
- Float32Array: TypedArrayStaticMethods,
- Float64Array: TypedArrayStaticMethods
-};
-exports.StaticProperties = StaticProperties;
-const CommonInstanceDependencies = new Set(["es.object.to-string", "es.object.define-getter", "es.object.define-setter", "es.object.lookup-getter", "es.object.lookup-setter", "es.regexp.exec"]);
-exports.CommonInstanceDependencies = CommonInstanceDependencies;
-const PossibleGlobalObjects = new Set(["global", "globalThis", "self", "window"]);
-exports.PossibleGlobalObjects = PossibleGlobalObjects;
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/lib/polyfills/corejs3/entry-plugin.js b/node_modules/@babel/preset-env/lib/polyfills/corejs3/entry-plugin.js
deleted file mode 100644
index 8421607c..00000000
--- a/node_modules/@babel/preset-env/lib/polyfills/corejs3/entry-plugin.js
+++ /dev/null
@@ -1,137 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = _default;
-
-function _data() {
- const data = _interopRequireDefault(require("core-js-compat/data"));
-
- _data = function () {
- return data;
- };
-
- return data;
-}
-
-function _entries() {
- const data = _interopRequireDefault(require("core-js-compat/entries"));
-
- _entries = function () {
- return data;
- };
-
- return data;
-}
-
-function _getModulesListForTargetVersion() {
- const data = _interopRequireDefault(require("core-js-compat/get-modules-list-for-target-version"));
-
- _getModulesListForTargetVersion = function () {
- return data;
- };
-
- return data;
-}
-
-var _filterItems = _interopRequireDefault(require("../../filter-items"));
-
-var _utils = require("../../utils");
-
-var _debug = require("../../debug");
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function isBabelPolyfillSource(source) {
- return source === "@babel/polyfill" || source === "babel-polyfill";
-}
-
-function isCoreJSSource(source) {
- if (typeof source === "string") {
- source = source.replace(/\\/g, "/").replace(/(\/(index)?)?(\.js)?$/i, "").toLowerCase();
- }
-
- return (0, _utils.has)(_entries().default, source) && _entries().default[source];
-}
-
-const BABEL_POLYFILL_DEPRECATION = `
- \`@babel/polyfill\` is deprecated. Please, use required parts of \`core-js\`
- and \`regenerator-runtime/runtime\` separately`;
-
-function _default(_, {
- corejs,
- include,
- exclude,
- polyfillTargets,
- debug
-}) {
- const polyfills = (0, _filterItems.default)(_data().default, include, exclude, polyfillTargets, null);
- const available = new Set((0, _getModulesListForTargetVersion().default)(corejs.version));
- const isPolyfillImport = {
- ImportDeclaration(path) {
- const source = (0, _utils.getImportSource)(path);
- if (!source) return;
-
- if (isBabelPolyfillSource(source)) {
- console.warn(BABEL_POLYFILL_DEPRECATION);
- } else {
- const modules = isCoreJSSource(source);
-
- if (modules) {
- this.replaceBySeparateModulesImport(path, modules);
- }
- }
- },
-
- Program(path) {
- path.get("body").forEach(bodyPath => {
- const source = (0, _utils.getRequireSource)(bodyPath);
- if (!source) return;
-
- if (isBabelPolyfillSource(source)) {
- console.warn(BABEL_POLYFILL_DEPRECATION);
- } else {
- const modules = isCoreJSSource(source);
-
- if (modules) {
- this.replaceBySeparateModulesImport(bodyPath, modules);
- }
- }
- });
- }
-
- };
- return {
- name: "corejs3-entry",
- visitor: isPolyfillImport,
-
- pre() {
- this.polyfillsSet = new Set();
-
- this.replaceBySeparateModulesImport = function (path, modules) {
- for (const module of modules) {
- this.polyfillsSet.add(module);
- }
-
- path.remove();
- };
- },
-
- post({
- path
- }) {
- const filtered = (0, _utils.intersection)(polyfills, this.polyfillsSet, available);
- const reversed = Array.from(filtered).reverse();
-
- for (const module of reversed) {
- (0, _utils.createImport)(path, module);
- }
-
- if (debug) {
- (0, _debug.logEntryPolyfills)("core-js", this.polyfillsSet.size > 0, filtered, this.file.opts.filename, polyfillTargets, _data().default);
- }
- }
-
- };
-}
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/lib/polyfills/corejs3/shipped-proposals.js b/node_modules/@babel/preset-env/lib/polyfills/corejs3/shipped-proposals.js
deleted file mode 100644
index 9cb69150..00000000
--- a/node_modules/@babel/preset-env/lib/polyfills/corejs3/shipped-proposals.js
+++ /dev/null
@@ -1,8 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-var _default = ["esnext.global-this", "esnext.string.match-all"];
-exports.default = _default;
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/lib/polyfills/corejs3/usage-plugin.js b/node_modules/@babel/preset-env/lib/polyfills/corejs3/usage-plugin.js
deleted file mode 100644
index fe3fb085..00000000
--- a/node_modules/@babel/preset-env/lib/polyfills/corejs3/usage-plugin.js
+++ /dev/null
@@ -1,288 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = _default;
-
-function _data() {
- const data = _interopRequireDefault(require("core-js-compat/data"));
-
- _data = function () {
- return data;
- };
-
- return data;
-}
-
-var _shippedProposals = _interopRequireDefault(require("./shipped-proposals"));
-
-function _getModulesListForTargetVersion() {
- const data = _interopRequireDefault(require("core-js-compat/get-modules-list-for-target-version"));
-
- _getModulesListForTargetVersion = function () {
- return data;
- };
-
- return data;
-}
-
-var _filterItems = _interopRequireDefault(require("../../filter-items"));
-
-var _builtInDefinitions = require("./built-in-definitions");
-
-var _utils = require("../../utils");
-
-var _debug = require("../../debug");
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-const NO_DIRECT_POLYFILL_IMPORT = `
- When setting \`useBuiltIns: 'usage'\`, polyfills are automatically imported when needed.
- Please remove the direct import of \`core-js\` or use \`useBuiltIns: 'entry'\` instead.`;
-const corejs3PolyfillsWithoutProposals = Object.keys(_data().default).filter(name => !name.startsWith("esnext.")).reduce((memo, key) => {
- memo[key] = _data().default[key];
- return memo;
-}, {});
-
-const corejs3PolyfillsWithShippedProposals = _shippedProposals.default.reduce((memo, key) => {
- memo[key] = _data().default[key];
- return memo;
-}, Object.assign({}, corejs3PolyfillsWithoutProposals));
-
-function _default(_, {
- corejs,
- include,
- exclude,
- polyfillTargets,
- proposals,
- shippedProposals,
- debug
-}) {
- const polyfills = (0, _filterItems.default)(proposals ? _data().default : shippedProposals ? corejs3PolyfillsWithShippedProposals : corejs3PolyfillsWithoutProposals, include, exclude, polyfillTargets, null);
- const available = new Set((0, _getModulesListForTargetVersion().default)(corejs.version));
-
- function resolveKey(path, computed) {
- const {
- node,
- parent,
- scope
- } = path;
- if (path.isStringLiteral()) return node.value;
- const {
- name
- } = node;
- const isIdentifier = path.isIdentifier();
- if (isIdentifier && !(computed || parent.computed)) return name;
-
- if (!isIdentifier || scope.getBindingIdentifier(name)) {
- const {
- value
- } = path.evaluate();
- if (typeof value === "string") return value;
- }
- }
-
- function resolveSource(path) {
- const {
- node,
- scope
- } = path;
- let builtIn, instanceType;
-
- if (node) {
- builtIn = node.name;
-
- if (!path.isIdentifier() || scope.getBindingIdentifier(builtIn)) {
- const {
- deopt,
- value
- } = path.evaluate();
-
- if (value !== undefined) {
- instanceType = (0, _utils.getType)(value);
- } else if (deopt && deopt.isIdentifier()) {
- builtIn = deopt.node.name;
- }
- }
- }
-
- return {
- builtIn,
- instanceType,
- isNamespaced: (0, _utils.isNamespaced)(path)
- };
- }
-
- const addAndRemovePolyfillImports = {
- ImportDeclaration(path) {
- if ((0, _utils.isPolyfillSource)((0, _utils.getImportSource)(path))) {
- console.warn(NO_DIRECT_POLYFILL_IMPORT);
- path.remove();
- }
- },
-
- Program(path) {
- path.get("body").forEach(bodyPath => {
- if ((0, _utils.isPolyfillSource)((0, _utils.getRequireSource)(bodyPath))) {
- console.warn(NO_DIRECT_POLYFILL_IMPORT);
- bodyPath.remove();
- }
- });
- },
-
- Import() {
- this.addUnsupported(_builtInDefinitions.PromiseDependencies);
- },
-
- Function({
- node
- }) {
- if (node.async) {
- this.addUnsupported(_builtInDefinitions.PromiseDependencies);
- }
- },
-
- "ForOfStatement|ArrayPattern"() {
- this.addUnsupported(_builtInDefinitions.CommonIterators);
- },
-
- SpreadElement({
- parentPath
- }) {
- if (!parentPath.isObjectExpression()) {
- this.addUnsupported(_builtInDefinitions.CommonIterators);
- }
- },
-
- YieldExpression({
- node
- }) {
- if (node.delegate) {
- this.addUnsupported(_builtInDefinitions.CommonIterators);
- }
- },
-
- ReferencedIdentifier({
- node: {
- name
- },
- scope
- }) {
- if (scope.getBindingIdentifier(name)) return;
- this.addBuiltInDependencies(name);
- },
-
- MemberExpression(path) {
- const source = resolveSource(path.get("object"));
- const key = resolveKey(path.get("property"));
- this.addPropertyDependencies(source, key);
- },
-
- ObjectPattern(path) {
- const {
- parentPath,
- parent,
- key
- } = path;
- let source;
-
- if (parentPath.isVariableDeclarator()) {
- source = resolveSource(parentPath.get("init"));
- } else if (parentPath.isAssignmentExpression()) {
- source = resolveSource(parentPath.get("right"));
- } else if (parentPath.isFunctionExpression()) {
- const grand = parentPath.parentPath;
-
- if (grand.isCallExpression() || grand.isNewExpression()) {
- if (grand.node.callee === parent) {
- source = resolveSource(grand.get("arguments")[key]);
- }
- }
- }
-
- for (const property of path.get("properties")) {
- if (property.isObjectProperty()) {
- const key = resolveKey(property.get("key"));
- this.addPropertyDependencies(source, key);
- }
- }
- },
-
- BinaryExpression(path) {
- if (path.node.operator !== "in") return;
- const source = resolveSource(path.get("right"));
- const key = resolveKey(path.get("left"), true);
- this.addPropertyDependencies(source, key);
- }
-
- };
- return {
- name: "corejs3-usage",
-
- pre() {
- this.polyfillsSet = new Set();
-
- this.addUnsupported = function (builtIn) {
- const modules = Array.isArray(builtIn) ? builtIn : [builtIn];
-
- for (const module of modules) {
- this.polyfillsSet.add(module);
- }
- };
-
- this.addBuiltInDependencies = function (builtIn) {
- if ((0, _utils.has)(_builtInDefinitions.BuiltIns, builtIn)) {
- const BuiltInDependencies = _builtInDefinitions.BuiltIns[builtIn];
- this.addUnsupported(BuiltInDependencies);
- }
- };
-
- this.addPropertyDependencies = function (source = {}, key) {
- const {
- builtIn,
- instanceType,
- isNamespaced
- } = source;
- if (isNamespaced) return;
-
- if (_builtInDefinitions.PossibleGlobalObjects.has(builtIn)) {
- this.addBuiltInDependencies(key);
- } else if ((0, _utils.has)(_builtInDefinitions.StaticProperties, builtIn)) {
- const BuiltInProperties = _builtInDefinitions.StaticProperties[builtIn];
-
- if ((0, _utils.has)(BuiltInProperties, key)) {
- const StaticPropertyDependencies = BuiltInProperties[key];
- return this.addUnsupported(StaticPropertyDependencies);
- }
- }
-
- if (!(0, _utils.has)(_builtInDefinitions.InstanceProperties, key)) return;
- let InstancePropertyDependencies = _builtInDefinitions.InstanceProperties[key];
-
- if (instanceType) {
- InstancePropertyDependencies = InstancePropertyDependencies.filter(m => m.includes(instanceType) || _builtInDefinitions.CommonInstanceDependencies.has(m));
- }
-
- this.addUnsupported(InstancePropertyDependencies);
- };
- },
-
- post({
- path
- }) {
- const filtered = (0, _utils.intersection)(polyfills, this.polyfillsSet, available);
- const reversed = Array.from(filtered).reverse();
-
- for (const module of reversed) {
- (0, _utils.createImport)(path, module);
- }
-
- if (debug) {
- (0, _debug.logUsagePolyfills)(filtered, this.file.opts.filename, polyfillTargets, _data().default);
- }
- },
-
- visitor: addAndRemovePolyfillImports
- };
-}
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/lib/polyfills/regenerator/entry-plugin.js b/node_modules/@babel/preset-env/lib/polyfills/regenerator/entry-plugin.js
deleted file mode 100644
index c5290736..00000000
--- a/node_modules/@babel/preset-env/lib/polyfills/regenerator/entry-plugin.js
+++ /dev/null
@@ -1,48 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = _default;
-
-var _utils = require("../../utils");
-
-function isRegeneratorSource(source) {
- return source === "regenerator-runtime/runtime";
-}
-
-function _default() {
- const visitor = {
- ImportDeclaration(path) {
- if (isRegeneratorSource((0, _utils.getImportSource)(path))) {
- this.regeneratorImportExcluded = true;
- path.remove();
- }
- },
-
- Program(path) {
- path.get("body").forEach(bodyPath => {
- if (isRegeneratorSource((0, _utils.getRequireSource)(bodyPath))) {
- this.regeneratorImportExcluded = true;
- bodyPath.remove();
- }
- });
- }
-
- };
- return {
- name: "regenerator-entry",
- visitor,
-
- pre() {
- this.regeneratorImportExcluded = false;
- },
-
- post() {
- if (this.opts.debug && this.regeneratorImportExcluded) {
- console.log(`\n[${this.file.opts.filename}] Based on your targets, regenerator-runtime import excluded.`);
- }
- }
-
- };
-}
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/lib/polyfills/regenerator/usage-plugin.js b/node_modules/@babel/preset-env/lib/polyfills/regenerator/usage-plugin.js
deleted file mode 100644
index a5fb16f1..00000000
--- a/node_modules/@babel/preset-env/lib/polyfills/regenerator/usage-plugin.js
+++ /dev/null
@@ -1,39 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = _default;
-
-var _utils = require("../../utils");
-
-function _default() {
- return {
- name: "regenerator-usage",
-
- pre() {
- this.usesRegenerator = false;
- },
-
- visitor: {
- Function(path) {
- const {
- node
- } = path;
-
- if (!this.usesRegenerator && (node.generator || node.async)) {
- this.usesRegenerator = true;
- (0, _utils.createImport)(path, "regenerator-runtime");
- }
- }
-
- },
-
- post() {
- if (this.opts.debug && this.usesRegenerator) {
- console.log(`\n[${this.file.opts.filename}] Based on your code and targets, added regenerator-runtime.`);
- }
- }
-
- };
-}
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/lib/targets-parser.js b/node_modules/@babel/preset-env/lib/targets-parser.js
deleted file mode 100644
index 07120043..00000000
--- a/node_modules/@babel/preset-env/lib/targets-parser.js
+++ /dev/null
@@ -1,242 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = exports.semverMin = exports.isBrowsersQueryValid = void 0;
-
-function _browserslist() {
- const data = _interopRequireDefault(require("browserslist"));
-
- _browserslist = function () {
- return data;
- };
-
- return data;
-}
-
-function _invariant() {
- const data = _interopRequireDefault(require("invariant"));
-
- _invariant = function () {
- return data;
- };
-
- return data;
-}
-
-function _semver() {
- const data = _interopRequireDefault(require("semver"));
-
- _semver = function () {
- return data;
- };
-
- return data;
-}
-
-var _utils = require("./utils");
-
-var _builtInModules = _interopRequireDefault(require("../data/built-in-modules.json"));
-
-var _options = require("./options");
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-const browserslistDefaults = _browserslist().default.defaults;
-
-const validBrowserslistTargets = [...Object.keys(_browserslist().default.data), ...Object.keys(_browserslist().default.aliases)];
-
-const objectToBrowserslist = object => {
- return Object.keys(object).reduce((list, targetName) => {
- if (validBrowserslistTargets.indexOf(targetName) >= 0) {
- const targetVersion = object[targetName];
- return list.concat(`${targetName} ${targetVersion}`);
- }
-
- return list;
- }, []);
-};
-
-const validateTargetNames = targets => {
- const validTargets = Object.keys(_options.TargetNames);
-
- for (const target in targets) {
- if (!_options.TargetNames[target]) {
- throw new Error(`Invalid Option: '${target}' is not a valid target
- Maybe you meant to use '${(0, _utils.findSuggestion)(validTargets, target)}'?`);
- }
- }
-};
-
-const 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",
- op_mob: "opera",
- opera: "opera",
- safari: "safari",
- samsung: "samsung"
-};
-
-const isBrowsersQueryValid = browsers => typeof browsers === "string" || Array.isArray(browsers);
-
-exports.isBrowsersQueryValid = isBrowsersQueryValid;
-
-const validateBrowsers = browsers => {
- (0, _invariant().default)(typeof browsers === "undefined" || isBrowsersQueryValid(browsers), `Invalid Option: '${browsers}' is not a valid browserslist query`);
- return browsers;
-};
-
-const semverMin = (first, second) => {
- return first && _semver().default.lt(first, second) ? first : second;
-};
-
-exports.semverMin = semverMin;
-
-const mergeBrowsers = (fromQuery, fromTarget) => {
- return Object.keys(fromTarget).reduce((queryObj, targKey) => {
- if (targKey !== _options.TargetNames.browsers) {
- queryObj[targKey] = fromTarget[targKey];
- }
-
- return queryObj;
- }, fromQuery);
-};
-
-const getLowestVersions = browsers => {
- return browsers.reduce((all, browser) => {
- const [browserName, browserVersion] = browser.split(" ");
- const normalizedBrowserName = browserNameMap[browserName];
-
- if (!normalizedBrowserName) {
- return all;
- }
-
- try {
- const splitVersion = browserVersion.split("-")[0].toLowerCase();
- const isSplitUnreleased = (0, _utils.isUnreleasedVersion)(splitVersion, browserName);
-
- if (!all[normalizedBrowserName]) {
- all[normalizedBrowserName] = isSplitUnreleased ? splitVersion : (0, _utils.semverify)(splitVersion);
- return all;
- }
-
- const version = all[normalizedBrowserName];
- const isUnreleased = (0, _utils.isUnreleasedVersion)(version, browserName);
-
- if (isUnreleased && isSplitUnreleased) {
- all[normalizedBrowserName] = (0, _utils.getLowestUnreleased)(version, splitVersion, browserName);
- } else if (isUnreleased) {
- all[normalizedBrowserName] = (0, _utils.semverify)(splitVersion);
- } else if (!isUnreleased && !isSplitUnreleased) {
- const parsedBrowserVersion = (0, _utils.semverify)(splitVersion);
- all[normalizedBrowserName] = semverMin(version, parsedBrowserVersion);
- }
- } catch (e) {}
-
- return all;
- }, {});
-};
-
-const outputDecimalWarning = decimalTargets => {
- if (!decimalTargets || !decimalTargets.length) {
- return;
- }
-
- console.log("Warning, the following targets are using a decimal version:");
- console.log("");
- decimalTargets.forEach(({
- target,
- value
- }) => console.log(` ${target}: ${value}`));
- console.log("");
- console.log("We recommend using a string for minor/patch versions to avoid numbers like 6.10");
- console.log("getting parsed as 6.1, which can lead to unexpected behavior.");
- console.log("");
-};
-
-const semverifyTarget = (target, value) => {
- try {
- return (0, _utils.semverify)(value);
- } catch (error) {
- throw new Error(`Invalid Option: '${value}' is not a valid value for 'targets.${target}'.`);
- }
-};
-
-const targetParserMap = {
- __default: (target, value) => {
- const version = (0, _utils.isUnreleasedVersion)(value, target) ? value.toLowerCase() : semverifyTarget(target, value);
- return [target, version];
- },
- node: (target, value) => {
- const parsed = value === true || value === "current" ? process.versions.node : semverifyTarget(target, value);
- return [target, parsed];
- }
-};
-
-const getTargets = (targets = {}, options = {}) => {
- const targetOpts = {};
- validateTargetNames(targets);
-
- if (targets.esmodules) {
- const supportsESModules = _builtInModules.default["es6.module"];
- targets.browsers = Object.keys(supportsESModules).map(browser => `${browser} ${supportsESModules[browser]}`).join(", ");
- }
-
- const browsersquery = validateBrowsers(targets.browsers);
- const hasTargets = Object.keys(targets).length > 0;
- const shouldParseBrowsers = !!targets.browsers;
- const shouldSearchForConfig = !options.ignoreBrowserslistConfig && !hasTargets;
-
- if (shouldParseBrowsers || shouldSearchForConfig) {
- if (!hasTargets) {
- _browserslist().default.defaults = objectToBrowserslist(targets);
- }
-
- const browsers = (0, _browserslist().default)(browsersquery, {
- path: options.configPath,
- mobileToDesktop: true
- });
- const queryBrowsers = getLowestVersions(browsers);
- targets = mergeBrowsers(queryBrowsers, targets);
- _browserslist().default.defaults = browserslistDefaults;
- }
-
- const parsed = Object.keys(targets).filter(value => value !== _options.TargetNames.esmodules).sort().reduce((results, target) => {
- if (target !== _options.TargetNames.browsers) {
- const value = targets[target];
-
- if (typeof value === "number" && value % 1 !== 0) {
- results.decimalWarnings.push({
- target,
- value
- });
- }
-
- const parser = targetParserMap[target] || targetParserMap.__default;
- const [parsedTarget, parsedValue] = parser(target, value);
-
- if (parsedValue) {
- results.targets[parsedTarget] = parsedValue;
- }
- }
-
- return results;
- }, {
- targets: targetOpts,
- decimalWarnings: []
- });
- outputDecimalWarning(parsed.decimalWarnings);
- return parsed.targets;
-};
-
-var _default = getTargets;
-exports.default = _default;
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/lib/utils.js b/node_modules/@babel/preset-env/lib/utils.js
deleted file mode 100644
index 339cdc9f..00000000
--- a/node_modules/@babel/preset-env/lib/utils.js
+++ /dev/null
@@ -1,229 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.getType = getType;
-exports.semverify = semverify;
-exports.intersection = intersection;
-exports.findSuggestion = findSuggestion;
-exports.prettifyVersion = prettifyVersion;
-exports.prettifyTargets = prettifyTargets;
-exports.isUnreleasedVersion = isUnreleasedVersion;
-exports.getLowestUnreleased = getLowestUnreleased;
-exports.filterStageFromList = filterStageFromList;
-exports.getImportSource = getImportSource;
-exports.getRequireSource = getRequireSource;
-exports.isPolyfillSource = isPolyfillSource;
-exports.getModulePath = getModulePath;
-exports.createImport = createImport;
-exports.isNamespaced = isNamespaced;
-exports.has = void 0;
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _invariant() {
- const data = _interopRequireDefault(require("invariant"));
-
- _invariant = function () {
- return data;
- };
-
- return data;
-}
-
-function _semver() {
- const data = _interopRequireDefault(require("semver"));
-
- _semver = function () {
- return data;
- };
-
- return data;
-}
-
-function _jsLevenshtein() {
- const data = _interopRequireDefault(require("js-levenshtein"));
-
- _jsLevenshtein = function () {
- return data;
- };
-
- return data;
-}
-
-function _helperModuleImports() {
- const data = require("@babel/helper-module-imports");
-
- _helperModuleImports = function () {
- return data;
- };
-
- return data;
-}
-
-var _unreleasedLabels = _interopRequireDefault(require("../data/unreleased-labels"));
-
-var _targetsParser = require("./targets-parser");
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-const has = Object.hasOwnProperty.call.bind(Object.hasOwnProperty);
-exports.has = has;
-
-function getType(target) {
- return Object.prototype.toString.call(target).slice(8, -1).toLowerCase();
-}
-
-const versionRegExp = /^(\d+|\d+.\d+)$/;
-
-function semverify(version) {
- if (typeof version === "string" && _semver().default.valid(version)) {
- return version;
- }
-
- (0, _invariant().default)(typeof version === "number" || typeof version === "string" && versionRegExp.test(version), `'${version}' is not a valid version`);
- const split = version.toString().split(".");
-
- while (split.length < 3) {
- split.push("0");
- }
-
- return split.join(".");
-}
-
-function intersection(first, second, third) {
- const result = new Set();
-
- for (const el of first) {
- if (second.has(el) && third.has(el)) result.add(el);
- }
-
- return result;
-}
-
-function findSuggestion(options, option) {
- let levenshteinValue = Infinity;
- return options.reduce((suggestion, validOption) => {
- const value = (0, _jsLevenshtein().default)(validOption, option);
-
- if (value < levenshteinValue) {
- levenshteinValue = value;
- return validOption;
- }
-
- return suggestion;
- }, undefined);
-}
-
-function prettifyVersion(version) {
- if (typeof version !== "string") {
- return version;
- }
-
- const parts = [_semver().default.major(version)];
-
- const minor = _semver().default.minor(version);
-
- const patch = _semver().default.patch(version);
-
- if (minor || patch) {
- parts.push(minor);
- }
-
- if (patch) {
- parts.push(patch);
- }
-
- return parts.join(".");
-}
-
-function prettifyTargets(targets) {
- return Object.keys(targets).reduce((results, target) => {
- let value = targets[target];
- const unreleasedLabel = _unreleasedLabels.default[target];
-
- if (typeof value === "string" && unreleasedLabel !== value) {
- value = prettifyVersion(value);
- }
-
- results[target] = value;
- return results;
- }, {});
-}
-
-function isUnreleasedVersion(version, env) {
- const unreleasedLabel = _unreleasedLabels.default[env];
- return !!unreleasedLabel && unreleasedLabel === version.toString().toLowerCase();
-}
-
-function getLowestUnreleased(a, b, env) {
- const unreleasedLabel = _unreleasedLabels.default[env];
- const hasUnreleased = [a, b].some(item => item === unreleasedLabel);
-
- if (hasUnreleased) {
- return a === hasUnreleased ? b : a || b;
- }
-
- return (0, _targetsParser.semverMin)(a, b);
-}
-
-function filterStageFromList(list, stageList) {
- return Object.keys(list).reduce((result, item) => {
- if (!stageList[item]) {
- result[item] = list[item];
- }
-
- return result;
- }, {});
-}
-
-function getImportSource({
- node
-}) {
- if (node.specifiers.length === 0) return node.source.value;
-}
-
-function getRequireSource({
- node
-}) {
- if (!t().isExpressionStatement(node)) return;
- const {
- expression
- } = node;
- const isRequire = t().isCallExpression(expression) && t().isIdentifier(expression.callee) && expression.callee.name === "require" && expression.arguments.length === 1 && t().isStringLiteral(expression.arguments[0]);
- if (isRequire) return expression.arguments[0].value;
-}
-
-function isPolyfillSource(source) {
- return source === "@babel/polyfill" || source === "core-js";
-}
-
-const modulePathMap = {
- "regenerator-runtime": "regenerator-runtime/runtime"
-};
-
-function getModulePath(mod) {
- return modulePathMap[mod] || `core-js/modules/${mod}`;
-}
-
-function createImport(path, mod) {
- return (0, _helperModuleImports().addSideEffect)(path, getModulePath(mod));
-}
-
-function isNamespaced(path) {
- if (!path.node) return false;
- const binding = path.scope.getBinding(path.node.name);
- if (!binding) return false;
- return binding.path.isImportNamespaceSpecifier();
-}
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/node_modules/.bin/semver b/node_modules/@babel/preset-env/node_modules/.bin/semver
deleted file mode 100644
index d592e693..00000000
--- a/node_modules/@babel/preset-env/node_modules/.bin/semver
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
-
-case `uname` in
- *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
-esac
-
-if [ -x "$basedir/node" ]; then
- "$basedir/node" "$basedir/../semver/bin/semver" "$@"
- ret=$?
-else
- node "$basedir/../semver/bin/semver" "$@"
- ret=$?
-fi
-exit $ret
diff --git a/node_modules/@babel/preset-env/node_modules/.bin/semver.cmd b/node_modules/@babel/preset-env/node_modules/.bin/semver.cmd
deleted file mode 100644
index 37c00a46..00000000
--- a/node_modules/@babel/preset-env/node_modules/.bin/semver.cmd
+++ /dev/null
@@ -1,7 +0,0 @@
-@IF EXIST "%~dp0\node.exe" (
- "%~dp0\node.exe" "%~dp0\..\semver\bin\semver" %*
-) ELSE (
- @SETLOCAL
- @SET PATHEXT=%PATHEXT:;.JS;=;%
- node "%~dp0\..\semver\bin\semver" %*
-)
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/LICENSE b/node_modules/@babel/preset-env/node_modules/@babel/types/LICENSE
deleted file mode 100644
index f31575ec..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-present Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/README.md b/node_modules/@babel/preset-env/node_modules/@babel/types/README.md
deleted file mode 100644
index 8d33374d..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/types
-
-> Babel Types is a Lodash-esque utility library for AST nodes
-
-See our website [@babel/types](https://babeljs.io/docs/en/next/babel-types.html) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20types%22+is%3Aopen) associated with this package.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/types
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/types --dev
-```
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/asserts/assertNode.js b/node_modules/@babel/preset-env/node_modules/@babel/types/lib/asserts/assertNode.js
deleted file mode 100644
index 194ec716..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/asserts/assertNode.js
+++ /dev/null
@@ -1,17 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = assertNode;
-
-var _isNode = _interopRequireDefault(require("../validators/isNode"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function assertNode(node) {
- if (!(0, _isNode.default)(node)) {
- const type = node && node.type || JSON.stringify(node);
- throw new TypeError(`Not a valid node of type "${type}"`);
- }
-}
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/asserts/generated/index.js b/node_modules/@babel/preset-env/node_modules/@babel/types/lib/asserts/generated/index.js
deleted file mode 100644
index 12723bdd..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/asserts/generated/index.js
+++ /dev/null
@@ -1,1374 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.assertArrayExpression = assertArrayExpression;
-exports.assertAssignmentExpression = assertAssignmentExpression;
-exports.assertBinaryExpression = assertBinaryExpression;
-exports.assertInterpreterDirective = assertInterpreterDirective;
-exports.assertDirective = assertDirective;
-exports.assertDirectiveLiteral = assertDirectiveLiteral;
-exports.assertBlockStatement = assertBlockStatement;
-exports.assertBreakStatement = assertBreakStatement;
-exports.assertCallExpression = assertCallExpression;
-exports.assertCatchClause = assertCatchClause;
-exports.assertConditionalExpression = assertConditionalExpression;
-exports.assertContinueStatement = assertContinueStatement;
-exports.assertDebuggerStatement = assertDebuggerStatement;
-exports.assertDoWhileStatement = assertDoWhileStatement;
-exports.assertEmptyStatement = assertEmptyStatement;
-exports.assertExpressionStatement = assertExpressionStatement;
-exports.assertFile = assertFile;
-exports.assertForInStatement = assertForInStatement;
-exports.assertForStatement = assertForStatement;
-exports.assertFunctionDeclaration = assertFunctionDeclaration;
-exports.assertFunctionExpression = assertFunctionExpression;
-exports.assertIdentifier = assertIdentifier;
-exports.assertIfStatement = assertIfStatement;
-exports.assertLabeledStatement = assertLabeledStatement;
-exports.assertStringLiteral = assertStringLiteral;
-exports.assertNumericLiteral = assertNumericLiteral;
-exports.assertNullLiteral = assertNullLiteral;
-exports.assertBooleanLiteral = assertBooleanLiteral;
-exports.assertRegExpLiteral = assertRegExpLiteral;
-exports.assertLogicalExpression = assertLogicalExpression;
-exports.assertMemberExpression = assertMemberExpression;
-exports.assertNewExpression = assertNewExpression;
-exports.assertProgram = assertProgram;
-exports.assertObjectExpression = assertObjectExpression;
-exports.assertObjectMethod = assertObjectMethod;
-exports.assertObjectProperty = assertObjectProperty;
-exports.assertRestElement = assertRestElement;
-exports.assertReturnStatement = assertReturnStatement;
-exports.assertSequenceExpression = assertSequenceExpression;
-exports.assertParenthesizedExpression = assertParenthesizedExpression;
-exports.assertSwitchCase = assertSwitchCase;
-exports.assertSwitchStatement = assertSwitchStatement;
-exports.assertThisExpression = assertThisExpression;
-exports.assertThrowStatement = assertThrowStatement;
-exports.assertTryStatement = assertTryStatement;
-exports.assertUnaryExpression = assertUnaryExpression;
-exports.assertUpdateExpression = assertUpdateExpression;
-exports.assertVariableDeclaration = assertVariableDeclaration;
-exports.assertVariableDeclarator = assertVariableDeclarator;
-exports.assertWhileStatement = assertWhileStatement;
-exports.assertWithStatement = assertWithStatement;
-exports.assertAssignmentPattern = assertAssignmentPattern;
-exports.assertArrayPattern = assertArrayPattern;
-exports.assertArrowFunctionExpression = assertArrowFunctionExpression;
-exports.assertClassBody = assertClassBody;
-exports.assertClassDeclaration = assertClassDeclaration;
-exports.assertClassExpression = assertClassExpression;
-exports.assertExportAllDeclaration = assertExportAllDeclaration;
-exports.assertExportDefaultDeclaration = assertExportDefaultDeclaration;
-exports.assertExportNamedDeclaration = assertExportNamedDeclaration;
-exports.assertExportSpecifier = assertExportSpecifier;
-exports.assertForOfStatement = assertForOfStatement;
-exports.assertImportDeclaration = assertImportDeclaration;
-exports.assertImportDefaultSpecifier = assertImportDefaultSpecifier;
-exports.assertImportNamespaceSpecifier = assertImportNamespaceSpecifier;
-exports.assertImportSpecifier = assertImportSpecifier;
-exports.assertMetaProperty = assertMetaProperty;
-exports.assertClassMethod = assertClassMethod;
-exports.assertObjectPattern = assertObjectPattern;
-exports.assertSpreadElement = assertSpreadElement;
-exports.assertSuper = assertSuper;
-exports.assertTaggedTemplateExpression = assertTaggedTemplateExpression;
-exports.assertTemplateElement = assertTemplateElement;
-exports.assertTemplateLiteral = assertTemplateLiteral;
-exports.assertYieldExpression = assertYieldExpression;
-exports.assertAnyTypeAnnotation = assertAnyTypeAnnotation;
-exports.assertArrayTypeAnnotation = assertArrayTypeAnnotation;
-exports.assertBooleanTypeAnnotation = assertBooleanTypeAnnotation;
-exports.assertBooleanLiteralTypeAnnotation = assertBooleanLiteralTypeAnnotation;
-exports.assertNullLiteralTypeAnnotation = assertNullLiteralTypeAnnotation;
-exports.assertClassImplements = assertClassImplements;
-exports.assertDeclareClass = assertDeclareClass;
-exports.assertDeclareFunction = assertDeclareFunction;
-exports.assertDeclareInterface = assertDeclareInterface;
-exports.assertDeclareModule = assertDeclareModule;
-exports.assertDeclareModuleExports = assertDeclareModuleExports;
-exports.assertDeclareTypeAlias = assertDeclareTypeAlias;
-exports.assertDeclareOpaqueType = assertDeclareOpaqueType;
-exports.assertDeclareVariable = assertDeclareVariable;
-exports.assertDeclareExportDeclaration = assertDeclareExportDeclaration;
-exports.assertDeclareExportAllDeclaration = assertDeclareExportAllDeclaration;
-exports.assertDeclaredPredicate = assertDeclaredPredicate;
-exports.assertExistsTypeAnnotation = assertExistsTypeAnnotation;
-exports.assertFunctionTypeAnnotation = assertFunctionTypeAnnotation;
-exports.assertFunctionTypeParam = assertFunctionTypeParam;
-exports.assertGenericTypeAnnotation = assertGenericTypeAnnotation;
-exports.assertInferredPredicate = assertInferredPredicate;
-exports.assertInterfaceExtends = assertInterfaceExtends;
-exports.assertInterfaceDeclaration = assertInterfaceDeclaration;
-exports.assertInterfaceTypeAnnotation = assertInterfaceTypeAnnotation;
-exports.assertIntersectionTypeAnnotation = assertIntersectionTypeAnnotation;
-exports.assertMixedTypeAnnotation = assertMixedTypeAnnotation;
-exports.assertEmptyTypeAnnotation = assertEmptyTypeAnnotation;
-exports.assertNullableTypeAnnotation = assertNullableTypeAnnotation;
-exports.assertNumberLiteralTypeAnnotation = assertNumberLiteralTypeAnnotation;
-exports.assertNumberTypeAnnotation = assertNumberTypeAnnotation;
-exports.assertObjectTypeAnnotation = assertObjectTypeAnnotation;
-exports.assertObjectTypeInternalSlot = assertObjectTypeInternalSlot;
-exports.assertObjectTypeCallProperty = assertObjectTypeCallProperty;
-exports.assertObjectTypeIndexer = assertObjectTypeIndexer;
-exports.assertObjectTypeProperty = assertObjectTypeProperty;
-exports.assertObjectTypeSpreadProperty = assertObjectTypeSpreadProperty;
-exports.assertOpaqueType = assertOpaqueType;
-exports.assertQualifiedTypeIdentifier = assertQualifiedTypeIdentifier;
-exports.assertStringLiteralTypeAnnotation = assertStringLiteralTypeAnnotation;
-exports.assertStringTypeAnnotation = assertStringTypeAnnotation;
-exports.assertThisTypeAnnotation = assertThisTypeAnnotation;
-exports.assertTupleTypeAnnotation = assertTupleTypeAnnotation;
-exports.assertTypeofTypeAnnotation = assertTypeofTypeAnnotation;
-exports.assertTypeAlias = assertTypeAlias;
-exports.assertTypeAnnotation = assertTypeAnnotation;
-exports.assertTypeCastExpression = assertTypeCastExpression;
-exports.assertTypeParameter = assertTypeParameter;
-exports.assertTypeParameterDeclaration = assertTypeParameterDeclaration;
-exports.assertTypeParameterInstantiation = assertTypeParameterInstantiation;
-exports.assertUnionTypeAnnotation = assertUnionTypeAnnotation;
-exports.assertVariance = assertVariance;
-exports.assertVoidTypeAnnotation = assertVoidTypeAnnotation;
-exports.assertJSXAttribute = assertJSXAttribute;
-exports.assertJSXClosingElement = assertJSXClosingElement;
-exports.assertJSXElement = assertJSXElement;
-exports.assertJSXEmptyExpression = assertJSXEmptyExpression;
-exports.assertJSXExpressionContainer = assertJSXExpressionContainer;
-exports.assertJSXSpreadChild = assertJSXSpreadChild;
-exports.assertJSXIdentifier = assertJSXIdentifier;
-exports.assertJSXMemberExpression = assertJSXMemberExpression;
-exports.assertJSXNamespacedName = assertJSXNamespacedName;
-exports.assertJSXOpeningElement = assertJSXOpeningElement;
-exports.assertJSXSpreadAttribute = assertJSXSpreadAttribute;
-exports.assertJSXText = assertJSXText;
-exports.assertJSXFragment = assertJSXFragment;
-exports.assertJSXOpeningFragment = assertJSXOpeningFragment;
-exports.assertJSXClosingFragment = assertJSXClosingFragment;
-exports.assertNoop = assertNoop;
-exports.assertPlaceholder = assertPlaceholder;
-exports.assertV8IntrinsicIdentifier = assertV8IntrinsicIdentifier;
-exports.assertArgumentPlaceholder = assertArgumentPlaceholder;
-exports.assertAwaitExpression = assertAwaitExpression;
-exports.assertBindExpression = assertBindExpression;
-exports.assertClassProperty = assertClassProperty;
-exports.assertOptionalMemberExpression = assertOptionalMemberExpression;
-exports.assertPipelineTopicExpression = assertPipelineTopicExpression;
-exports.assertPipelineBareFunction = assertPipelineBareFunction;
-exports.assertPipelinePrimaryTopicReference = assertPipelinePrimaryTopicReference;
-exports.assertOptionalCallExpression = assertOptionalCallExpression;
-exports.assertClassPrivateProperty = assertClassPrivateProperty;
-exports.assertClassPrivateMethod = assertClassPrivateMethod;
-exports.assertImport = assertImport;
-exports.assertDecorator = assertDecorator;
-exports.assertDoExpression = assertDoExpression;
-exports.assertExportDefaultSpecifier = assertExportDefaultSpecifier;
-exports.assertExportNamespaceSpecifier = assertExportNamespaceSpecifier;
-exports.assertPrivateName = assertPrivateName;
-exports.assertBigIntLiteral = assertBigIntLiteral;
-exports.assertTSParameterProperty = assertTSParameterProperty;
-exports.assertTSDeclareFunction = assertTSDeclareFunction;
-exports.assertTSDeclareMethod = assertTSDeclareMethod;
-exports.assertTSQualifiedName = assertTSQualifiedName;
-exports.assertTSCallSignatureDeclaration = assertTSCallSignatureDeclaration;
-exports.assertTSConstructSignatureDeclaration = assertTSConstructSignatureDeclaration;
-exports.assertTSPropertySignature = assertTSPropertySignature;
-exports.assertTSMethodSignature = assertTSMethodSignature;
-exports.assertTSIndexSignature = assertTSIndexSignature;
-exports.assertTSAnyKeyword = assertTSAnyKeyword;
-exports.assertTSBooleanKeyword = assertTSBooleanKeyword;
-exports.assertTSBigIntKeyword = assertTSBigIntKeyword;
-exports.assertTSNeverKeyword = assertTSNeverKeyword;
-exports.assertTSNullKeyword = assertTSNullKeyword;
-exports.assertTSNumberKeyword = assertTSNumberKeyword;
-exports.assertTSObjectKeyword = assertTSObjectKeyword;
-exports.assertTSStringKeyword = assertTSStringKeyword;
-exports.assertTSSymbolKeyword = assertTSSymbolKeyword;
-exports.assertTSUndefinedKeyword = assertTSUndefinedKeyword;
-exports.assertTSUnknownKeyword = assertTSUnknownKeyword;
-exports.assertTSVoidKeyword = assertTSVoidKeyword;
-exports.assertTSThisType = assertTSThisType;
-exports.assertTSFunctionType = assertTSFunctionType;
-exports.assertTSConstructorType = assertTSConstructorType;
-exports.assertTSTypeReference = assertTSTypeReference;
-exports.assertTSTypePredicate = assertTSTypePredicate;
-exports.assertTSTypeQuery = assertTSTypeQuery;
-exports.assertTSTypeLiteral = assertTSTypeLiteral;
-exports.assertTSArrayType = assertTSArrayType;
-exports.assertTSTupleType = assertTSTupleType;
-exports.assertTSOptionalType = assertTSOptionalType;
-exports.assertTSRestType = assertTSRestType;
-exports.assertTSUnionType = assertTSUnionType;
-exports.assertTSIntersectionType = assertTSIntersectionType;
-exports.assertTSConditionalType = assertTSConditionalType;
-exports.assertTSInferType = assertTSInferType;
-exports.assertTSParenthesizedType = assertTSParenthesizedType;
-exports.assertTSTypeOperator = assertTSTypeOperator;
-exports.assertTSIndexedAccessType = assertTSIndexedAccessType;
-exports.assertTSMappedType = assertTSMappedType;
-exports.assertTSLiteralType = assertTSLiteralType;
-exports.assertTSExpressionWithTypeArguments = assertTSExpressionWithTypeArguments;
-exports.assertTSInterfaceDeclaration = assertTSInterfaceDeclaration;
-exports.assertTSInterfaceBody = assertTSInterfaceBody;
-exports.assertTSTypeAliasDeclaration = assertTSTypeAliasDeclaration;
-exports.assertTSAsExpression = assertTSAsExpression;
-exports.assertTSTypeAssertion = assertTSTypeAssertion;
-exports.assertTSEnumDeclaration = assertTSEnumDeclaration;
-exports.assertTSEnumMember = assertTSEnumMember;
-exports.assertTSModuleDeclaration = assertTSModuleDeclaration;
-exports.assertTSModuleBlock = assertTSModuleBlock;
-exports.assertTSImportType = assertTSImportType;
-exports.assertTSImportEqualsDeclaration = assertTSImportEqualsDeclaration;
-exports.assertTSExternalModuleReference = assertTSExternalModuleReference;
-exports.assertTSNonNullExpression = assertTSNonNullExpression;
-exports.assertTSExportAssignment = assertTSExportAssignment;
-exports.assertTSNamespaceExportDeclaration = assertTSNamespaceExportDeclaration;
-exports.assertTSTypeAnnotation = assertTSTypeAnnotation;
-exports.assertTSTypeParameterInstantiation = assertTSTypeParameterInstantiation;
-exports.assertTSTypeParameterDeclaration = assertTSTypeParameterDeclaration;
-exports.assertTSTypeParameter = assertTSTypeParameter;
-exports.assertExpression = assertExpression;
-exports.assertBinary = assertBinary;
-exports.assertScopable = assertScopable;
-exports.assertBlockParent = assertBlockParent;
-exports.assertBlock = assertBlock;
-exports.assertStatement = assertStatement;
-exports.assertTerminatorless = assertTerminatorless;
-exports.assertCompletionStatement = assertCompletionStatement;
-exports.assertConditional = assertConditional;
-exports.assertLoop = assertLoop;
-exports.assertWhile = assertWhile;
-exports.assertExpressionWrapper = assertExpressionWrapper;
-exports.assertFor = assertFor;
-exports.assertForXStatement = assertForXStatement;
-exports.assertFunction = assertFunction;
-exports.assertFunctionParent = assertFunctionParent;
-exports.assertPureish = assertPureish;
-exports.assertDeclaration = assertDeclaration;
-exports.assertPatternLike = assertPatternLike;
-exports.assertLVal = assertLVal;
-exports.assertTSEntityName = assertTSEntityName;
-exports.assertLiteral = assertLiteral;
-exports.assertImmutable = assertImmutable;
-exports.assertUserWhitespacable = assertUserWhitespacable;
-exports.assertMethod = assertMethod;
-exports.assertObjectMember = assertObjectMember;
-exports.assertProperty = assertProperty;
-exports.assertUnaryLike = assertUnaryLike;
-exports.assertPattern = assertPattern;
-exports.assertClass = assertClass;
-exports.assertModuleDeclaration = assertModuleDeclaration;
-exports.assertExportDeclaration = assertExportDeclaration;
-exports.assertModuleSpecifier = assertModuleSpecifier;
-exports.assertFlow = assertFlow;
-exports.assertFlowType = assertFlowType;
-exports.assertFlowBaseAnnotation = assertFlowBaseAnnotation;
-exports.assertFlowDeclaration = assertFlowDeclaration;
-exports.assertFlowPredicate = assertFlowPredicate;
-exports.assertJSX = assertJSX;
-exports.assertPrivate = assertPrivate;
-exports.assertTSTypeElement = assertTSTypeElement;
-exports.assertTSType = assertTSType;
-exports.assertNumberLiteral = assertNumberLiteral;
-exports.assertRegexLiteral = assertRegexLiteral;
-exports.assertRestProperty = assertRestProperty;
-exports.assertSpreadProperty = assertSpreadProperty;
-
-var _is = _interopRequireDefault(require("../../validators/is"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function assert(type, node, opts) {
- if (!(0, _is.default)(type, node, opts)) {
- throw new Error(`Expected type "${type}" with option ${JSON.stringify(opts)}, ` + `but instead got "${node.type}".`);
- }
-}
-
-function assertArrayExpression(node, opts = {}) {
- assert("ArrayExpression", node, opts);
-}
-
-function assertAssignmentExpression(node, opts = {}) {
- assert("AssignmentExpression", node, opts);
-}
-
-function assertBinaryExpression(node, opts = {}) {
- assert("BinaryExpression", node, opts);
-}
-
-function assertInterpreterDirective(node, opts = {}) {
- assert("InterpreterDirective", node, opts);
-}
-
-function assertDirective(node, opts = {}) {
- assert("Directive", node, opts);
-}
-
-function assertDirectiveLiteral(node, opts = {}) {
- assert("DirectiveLiteral", node, opts);
-}
-
-function assertBlockStatement(node, opts = {}) {
- assert("BlockStatement", node, opts);
-}
-
-function assertBreakStatement(node, opts = {}) {
- assert("BreakStatement", node, opts);
-}
-
-function assertCallExpression(node, opts = {}) {
- assert("CallExpression", node, opts);
-}
-
-function assertCatchClause(node, opts = {}) {
- assert("CatchClause", node, opts);
-}
-
-function assertConditionalExpression(node, opts = {}) {
- assert("ConditionalExpression", node, opts);
-}
-
-function assertContinueStatement(node, opts = {}) {
- assert("ContinueStatement", node, opts);
-}
-
-function assertDebuggerStatement(node, opts = {}) {
- assert("DebuggerStatement", node, opts);
-}
-
-function assertDoWhileStatement(node, opts = {}) {
- assert("DoWhileStatement", node, opts);
-}
-
-function assertEmptyStatement(node, opts = {}) {
- assert("EmptyStatement", node, opts);
-}
-
-function assertExpressionStatement(node, opts = {}) {
- assert("ExpressionStatement", node, opts);
-}
-
-function assertFile(node, opts = {}) {
- assert("File", node, opts);
-}
-
-function assertForInStatement(node, opts = {}) {
- assert("ForInStatement", node, opts);
-}
-
-function assertForStatement(node, opts = {}) {
- assert("ForStatement", node, opts);
-}
-
-function assertFunctionDeclaration(node, opts = {}) {
- assert("FunctionDeclaration", node, opts);
-}
-
-function assertFunctionExpression(node, opts = {}) {
- assert("FunctionExpression", node, opts);
-}
-
-function assertIdentifier(node, opts = {}) {
- assert("Identifier", node, opts);
-}
-
-function assertIfStatement(node, opts = {}) {
- assert("IfStatement", node, opts);
-}
-
-function assertLabeledStatement(node, opts = {}) {
- assert("LabeledStatement", node, opts);
-}
-
-function assertStringLiteral(node, opts = {}) {
- assert("StringLiteral", node, opts);
-}
-
-function assertNumericLiteral(node, opts = {}) {
- assert("NumericLiteral", node, opts);
-}
-
-function assertNullLiteral(node, opts = {}) {
- assert("NullLiteral", node, opts);
-}
-
-function assertBooleanLiteral(node, opts = {}) {
- assert("BooleanLiteral", node, opts);
-}
-
-function assertRegExpLiteral(node, opts = {}) {
- assert("RegExpLiteral", node, opts);
-}
-
-function assertLogicalExpression(node, opts = {}) {
- assert("LogicalExpression", node, opts);
-}
-
-function assertMemberExpression(node, opts = {}) {
- assert("MemberExpression", node, opts);
-}
-
-function assertNewExpression(node, opts = {}) {
- assert("NewExpression", node, opts);
-}
-
-function assertProgram(node, opts = {}) {
- assert("Program", node, opts);
-}
-
-function assertObjectExpression(node, opts = {}) {
- assert("ObjectExpression", node, opts);
-}
-
-function assertObjectMethod(node, opts = {}) {
- assert("ObjectMethod", node, opts);
-}
-
-function assertObjectProperty(node, opts = {}) {
- assert("ObjectProperty", node, opts);
-}
-
-function assertRestElement(node, opts = {}) {
- assert("RestElement", node, opts);
-}
-
-function assertReturnStatement(node, opts = {}) {
- assert("ReturnStatement", node, opts);
-}
-
-function assertSequenceExpression(node, opts = {}) {
- assert("SequenceExpression", node, opts);
-}
-
-function assertParenthesizedExpression(node, opts = {}) {
- assert("ParenthesizedExpression", node, opts);
-}
-
-function assertSwitchCase(node, opts = {}) {
- assert("SwitchCase", node, opts);
-}
-
-function assertSwitchStatement(node, opts = {}) {
- assert("SwitchStatement", node, opts);
-}
-
-function assertThisExpression(node, opts = {}) {
- assert("ThisExpression", node, opts);
-}
-
-function assertThrowStatement(node, opts = {}) {
- assert("ThrowStatement", node, opts);
-}
-
-function assertTryStatement(node, opts = {}) {
- assert("TryStatement", node, opts);
-}
-
-function assertUnaryExpression(node, opts = {}) {
- assert("UnaryExpression", node, opts);
-}
-
-function assertUpdateExpression(node, opts = {}) {
- assert("UpdateExpression", node, opts);
-}
-
-function assertVariableDeclaration(node, opts = {}) {
- assert("VariableDeclaration", node, opts);
-}
-
-function assertVariableDeclarator(node, opts = {}) {
- assert("VariableDeclarator", node, opts);
-}
-
-function assertWhileStatement(node, opts = {}) {
- assert("WhileStatement", node, opts);
-}
-
-function assertWithStatement(node, opts = {}) {
- assert("WithStatement", node, opts);
-}
-
-function assertAssignmentPattern(node, opts = {}) {
- assert("AssignmentPattern", node, opts);
-}
-
-function assertArrayPattern(node, opts = {}) {
- assert("ArrayPattern", node, opts);
-}
-
-function assertArrowFunctionExpression(node, opts = {}) {
- assert("ArrowFunctionExpression", node, opts);
-}
-
-function assertClassBody(node, opts = {}) {
- assert("ClassBody", node, opts);
-}
-
-function assertClassDeclaration(node, opts = {}) {
- assert("ClassDeclaration", node, opts);
-}
-
-function assertClassExpression(node, opts = {}) {
- assert("ClassExpression", node, opts);
-}
-
-function assertExportAllDeclaration(node, opts = {}) {
- assert("ExportAllDeclaration", node, opts);
-}
-
-function assertExportDefaultDeclaration(node, opts = {}) {
- assert("ExportDefaultDeclaration", node, opts);
-}
-
-function assertExportNamedDeclaration(node, opts = {}) {
- assert("ExportNamedDeclaration", node, opts);
-}
-
-function assertExportSpecifier(node, opts = {}) {
- assert("ExportSpecifier", node, opts);
-}
-
-function assertForOfStatement(node, opts = {}) {
- assert("ForOfStatement", node, opts);
-}
-
-function assertImportDeclaration(node, opts = {}) {
- assert("ImportDeclaration", node, opts);
-}
-
-function assertImportDefaultSpecifier(node, opts = {}) {
- assert("ImportDefaultSpecifier", node, opts);
-}
-
-function assertImportNamespaceSpecifier(node, opts = {}) {
- assert("ImportNamespaceSpecifier", node, opts);
-}
-
-function assertImportSpecifier(node, opts = {}) {
- assert("ImportSpecifier", node, opts);
-}
-
-function assertMetaProperty(node, opts = {}) {
- assert("MetaProperty", node, opts);
-}
-
-function assertClassMethod(node, opts = {}) {
- assert("ClassMethod", node, opts);
-}
-
-function assertObjectPattern(node, opts = {}) {
- assert("ObjectPattern", node, opts);
-}
-
-function assertSpreadElement(node, opts = {}) {
- assert("SpreadElement", node, opts);
-}
-
-function assertSuper(node, opts = {}) {
- assert("Super", node, opts);
-}
-
-function assertTaggedTemplateExpression(node, opts = {}) {
- assert("TaggedTemplateExpression", node, opts);
-}
-
-function assertTemplateElement(node, opts = {}) {
- assert("TemplateElement", node, opts);
-}
-
-function assertTemplateLiteral(node, opts = {}) {
- assert("TemplateLiteral", node, opts);
-}
-
-function assertYieldExpression(node, opts = {}) {
- assert("YieldExpression", node, opts);
-}
-
-function assertAnyTypeAnnotation(node, opts = {}) {
- assert("AnyTypeAnnotation", node, opts);
-}
-
-function assertArrayTypeAnnotation(node, opts = {}) {
- assert("ArrayTypeAnnotation", node, opts);
-}
-
-function assertBooleanTypeAnnotation(node, opts = {}) {
- assert("BooleanTypeAnnotation", node, opts);
-}
-
-function assertBooleanLiteralTypeAnnotation(node, opts = {}) {
- assert("BooleanLiteralTypeAnnotation", node, opts);
-}
-
-function assertNullLiteralTypeAnnotation(node, opts = {}) {
- assert("NullLiteralTypeAnnotation", node, opts);
-}
-
-function assertClassImplements(node, opts = {}) {
- assert("ClassImplements", node, opts);
-}
-
-function assertDeclareClass(node, opts = {}) {
- assert("DeclareClass", node, opts);
-}
-
-function assertDeclareFunction(node, opts = {}) {
- assert("DeclareFunction", node, opts);
-}
-
-function assertDeclareInterface(node, opts = {}) {
- assert("DeclareInterface", node, opts);
-}
-
-function assertDeclareModule(node, opts = {}) {
- assert("DeclareModule", node, opts);
-}
-
-function assertDeclareModuleExports(node, opts = {}) {
- assert("DeclareModuleExports", node, opts);
-}
-
-function assertDeclareTypeAlias(node, opts = {}) {
- assert("DeclareTypeAlias", node, opts);
-}
-
-function assertDeclareOpaqueType(node, opts = {}) {
- assert("DeclareOpaqueType", node, opts);
-}
-
-function assertDeclareVariable(node, opts = {}) {
- assert("DeclareVariable", node, opts);
-}
-
-function assertDeclareExportDeclaration(node, opts = {}) {
- assert("DeclareExportDeclaration", node, opts);
-}
-
-function assertDeclareExportAllDeclaration(node, opts = {}) {
- assert("DeclareExportAllDeclaration", node, opts);
-}
-
-function assertDeclaredPredicate(node, opts = {}) {
- assert("DeclaredPredicate", node, opts);
-}
-
-function assertExistsTypeAnnotation(node, opts = {}) {
- assert("ExistsTypeAnnotation", node, opts);
-}
-
-function assertFunctionTypeAnnotation(node, opts = {}) {
- assert("FunctionTypeAnnotation", node, opts);
-}
-
-function assertFunctionTypeParam(node, opts = {}) {
- assert("FunctionTypeParam", node, opts);
-}
-
-function assertGenericTypeAnnotation(node, opts = {}) {
- assert("GenericTypeAnnotation", node, opts);
-}
-
-function assertInferredPredicate(node, opts = {}) {
- assert("InferredPredicate", node, opts);
-}
-
-function assertInterfaceExtends(node, opts = {}) {
- assert("InterfaceExtends", node, opts);
-}
-
-function assertInterfaceDeclaration(node, opts = {}) {
- assert("InterfaceDeclaration", node, opts);
-}
-
-function assertInterfaceTypeAnnotation(node, opts = {}) {
- assert("InterfaceTypeAnnotation", node, opts);
-}
-
-function assertIntersectionTypeAnnotation(node, opts = {}) {
- assert("IntersectionTypeAnnotation", node, opts);
-}
-
-function assertMixedTypeAnnotation(node, opts = {}) {
- assert("MixedTypeAnnotation", node, opts);
-}
-
-function assertEmptyTypeAnnotation(node, opts = {}) {
- assert("EmptyTypeAnnotation", node, opts);
-}
-
-function assertNullableTypeAnnotation(node, opts = {}) {
- assert("NullableTypeAnnotation", node, opts);
-}
-
-function assertNumberLiteralTypeAnnotation(node, opts = {}) {
- assert("NumberLiteralTypeAnnotation", node, opts);
-}
-
-function assertNumberTypeAnnotation(node, opts = {}) {
- assert("NumberTypeAnnotation", node, opts);
-}
-
-function assertObjectTypeAnnotation(node, opts = {}) {
- assert("ObjectTypeAnnotation", node, opts);
-}
-
-function assertObjectTypeInternalSlot(node, opts = {}) {
- assert("ObjectTypeInternalSlot", node, opts);
-}
-
-function assertObjectTypeCallProperty(node, opts = {}) {
- assert("ObjectTypeCallProperty", node, opts);
-}
-
-function assertObjectTypeIndexer(node, opts = {}) {
- assert("ObjectTypeIndexer", node, opts);
-}
-
-function assertObjectTypeProperty(node, opts = {}) {
- assert("ObjectTypeProperty", node, opts);
-}
-
-function assertObjectTypeSpreadProperty(node, opts = {}) {
- assert("ObjectTypeSpreadProperty", node, opts);
-}
-
-function assertOpaqueType(node, opts = {}) {
- assert("OpaqueType", node, opts);
-}
-
-function assertQualifiedTypeIdentifier(node, opts = {}) {
- assert("QualifiedTypeIdentifier", node, opts);
-}
-
-function assertStringLiteralTypeAnnotation(node, opts = {}) {
- assert("StringLiteralTypeAnnotation", node, opts);
-}
-
-function assertStringTypeAnnotation(node, opts = {}) {
- assert("StringTypeAnnotation", node, opts);
-}
-
-function assertThisTypeAnnotation(node, opts = {}) {
- assert("ThisTypeAnnotation", node, opts);
-}
-
-function assertTupleTypeAnnotation(node, opts = {}) {
- assert("TupleTypeAnnotation", node, opts);
-}
-
-function assertTypeofTypeAnnotation(node, opts = {}) {
- assert("TypeofTypeAnnotation", node, opts);
-}
-
-function assertTypeAlias(node, opts = {}) {
- assert("TypeAlias", node, opts);
-}
-
-function assertTypeAnnotation(node, opts = {}) {
- assert("TypeAnnotation", node, opts);
-}
-
-function assertTypeCastExpression(node, opts = {}) {
- assert("TypeCastExpression", node, opts);
-}
-
-function assertTypeParameter(node, opts = {}) {
- assert("TypeParameter", node, opts);
-}
-
-function assertTypeParameterDeclaration(node, opts = {}) {
- assert("TypeParameterDeclaration", node, opts);
-}
-
-function assertTypeParameterInstantiation(node, opts = {}) {
- assert("TypeParameterInstantiation", node, opts);
-}
-
-function assertUnionTypeAnnotation(node, opts = {}) {
- assert("UnionTypeAnnotation", node, opts);
-}
-
-function assertVariance(node, opts = {}) {
- assert("Variance", node, opts);
-}
-
-function assertVoidTypeAnnotation(node, opts = {}) {
- assert("VoidTypeAnnotation", node, opts);
-}
-
-function assertJSXAttribute(node, opts = {}) {
- assert("JSXAttribute", node, opts);
-}
-
-function assertJSXClosingElement(node, opts = {}) {
- assert("JSXClosingElement", node, opts);
-}
-
-function assertJSXElement(node, opts = {}) {
- assert("JSXElement", node, opts);
-}
-
-function assertJSXEmptyExpression(node, opts = {}) {
- assert("JSXEmptyExpression", node, opts);
-}
-
-function assertJSXExpressionContainer(node, opts = {}) {
- assert("JSXExpressionContainer", node, opts);
-}
-
-function assertJSXSpreadChild(node, opts = {}) {
- assert("JSXSpreadChild", node, opts);
-}
-
-function assertJSXIdentifier(node, opts = {}) {
- assert("JSXIdentifier", node, opts);
-}
-
-function assertJSXMemberExpression(node, opts = {}) {
- assert("JSXMemberExpression", node, opts);
-}
-
-function assertJSXNamespacedName(node, opts = {}) {
- assert("JSXNamespacedName", node, opts);
-}
-
-function assertJSXOpeningElement(node, opts = {}) {
- assert("JSXOpeningElement", node, opts);
-}
-
-function assertJSXSpreadAttribute(node, opts = {}) {
- assert("JSXSpreadAttribute", node, opts);
-}
-
-function assertJSXText(node, opts = {}) {
- assert("JSXText", node, opts);
-}
-
-function assertJSXFragment(node, opts = {}) {
- assert("JSXFragment", node, opts);
-}
-
-function assertJSXOpeningFragment(node, opts = {}) {
- assert("JSXOpeningFragment", node, opts);
-}
-
-function assertJSXClosingFragment(node, opts = {}) {
- assert("JSXClosingFragment", node, opts);
-}
-
-function assertNoop(node, opts = {}) {
- assert("Noop", node, opts);
-}
-
-function assertPlaceholder(node, opts = {}) {
- assert("Placeholder", node, opts);
-}
-
-function assertV8IntrinsicIdentifier(node, opts = {}) {
- assert("V8IntrinsicIdentifier", node, opts);
-}
-
-function assertArgumentPlaceholder(node, opts = {}) {
- assert("ArgumentPlaceholder", node, opts);
-}
-
-function assertAwaitExpression(node, opts = {}) {
- assert("AwaitExpression", node, opts);
-}
-
-function assertBindExpression(node, opts = {}) {
- assert("BindExpression", node, opts);
-}
-
-function assertClassProperty(node, opts = {}) {
- assert("ClassProperty", node, opts);
-}
-
-function assertOptionalMemberExpression(node, opts = {}) {
- assert("OptionalMemberExpression", node, opts);
-}
-
-function assertPipelineTopicExpression(node, opts = {}) {
- assert("PipelineTopicExpression", node, opts);
-}
-
-function assertPipelineBareFunction(node, opts = {}) {
- assert("PipelineBareFunction", node, opts);
-}
-
-function assertPipelinePrimaryTopicReference(node, opts = {}) {
- assert("PipelinePrimaryTopicReference", node, opts);
-}
-
-function assertOptionalCallExpression(node, opts = {}) {
- assert("OptionalCallExpression", node, opts);
-}
-
-function assertClassPrivateProperty(node, opts = {}) {
- assert("ClassPrivateProperty", node, opts);
-}
-
-function assertClassPrivateMethod(node, opts = {}) {
- assert("ClassPrivateMethod", node, opts);
-}
-
-function assertImport(node, opts = {}) {
- assert("Import", node, opts);
-}
-
-function assertDecorator(node, opts = {}) {
- assert("Decorator", node, opts);
-}
-
-function assertDoExpression(node, opts = {}) {
- assert("DoExpression", node, opts);
-}
-
-function assertExportDefaultSpecifier(node, opts = {}) {
- assert("ExportDefaultSpecifier", node, opts);
-}
-
-function assertExportNamespaceSpecifier(node, opts = {}) {
- assert("ExportNamespaceSpecifier", node, opts);
-}
-
-function assertPrivateName(node, opts = {}) {
- assert("PrivateName", node, opts);
-}
-
-function assertBigIntLiteral(node, opts = {}) {
- assert("BigIntLiteral", node, opts);
-}
-
-function assertTSParameterProperty(node, opts = {}) {
- assert("TSParameterProperty", node, opts);
-}
-
-function assertTSDeclareFunction(node, opts = {}) {
- assert("TSDeclareFunction", node, opts);
-}
-
-function assertTSDeclareMethod(node, opts = {}) {
- assert("TSDeclareMethod", node, opts);
-}
-
-function assertTSQualifiedName(node, opts = {}) {
- assert("TSQualifiedName", node, opts);
-}
-
-function assertTSCallSignatureDeclaration(node, opts = {}) {
- assert("TSCallSignatureDeclaration", node, opts);
-}
-
-function assertTSConstructSignatureDeclaration(node, opts = {}) {
- assert("TSConstructSignatureDeclaration", node, opts);
-}
-
-function assertTSPropertySignature(node, opts = {}) {
- assert("TSPropertySignature", node, opts);
-}
-
-function assertTSMethodSignature(node, opts = {}) {
- assert("TSMethodSignature", node, opts);
-}
-
-function assertTSIndexSignature(node, opts = {}) {
- assert("TSIndexSignature", node, opts);
-}
-
-function assertTSAnyKeyword(node, opts = {}) {
- assert("TSAnyKeyword", node, opts);
-}
-
-function assertTSBooleanKeyword(node, opts = {}) {
- assert("TSBooleanKeyword", node, opts);
-}
-
-function assertTSBigIntKeyword(node, opts = {}) {
- assert("TSBigIntKeyword", node, opts);
-}
-
-function assertTSNeverKeyword(node, opts = {}) {
- assert("TSNeverKeyword", node, opts);
-}
-
-function assertTSNullKeyword(node, opts = {}) {
- assert("TSNullKeyword", node, opts);
-}
-
-function assertTSNumberKeyword(node, opts = {}) {
- assert("TSNumberKeyword", node, opts);
-}
-
-function assertTSObjectKeyword(node, opts = {}) {
- assert("TSObjectKeyword", node, opts);
-}
-
-function assertTSStringKeyword(node, opts = {}) {
- assert("TSStringKeyword", node, opts);
-}
-
-function assertTSSymbolKeyword(node, opts = {}) {
- assert("TSSymbolKeyword", node, opts);
-}
-
-function assertTSUndefinedKeyword(node, opts = {}) {
- assert("TSUndefinedKeyword", node, opts);
-}
-
-function assertTSUnknownKeyword(node, opts = {}) {
- assert("TSUnknownKeyword", node, opts);
-}
-
-function assertTSVoidKeyword(node, opts = {}) {
- assert("TSVoidKeyword", node, opts);
-}
-
-function assertTSThisType(node, opts = {}) {
- assert("TSThisType", node, opts);
-}
-
-function assertTSFunctionType(node, opts = {}) {
- assert("TSFunctionType", node, opts);
-}
-
-function assertTSConstructorType(node, opts = {}) {
- assert("TSConstructorType", node, opts);
-}
-
-function assertTSTypeReference(node, opts = {}) {
- assert("TSTypeReference", node, opts);
-}
-
-function assertTSTypePredicate(node, opts = {}) {
- assert("TSTypePredicate", node, opts);
-}
-
-function assertTSTypeQuery(node, opts = {}) {
- assert("TSTypeQuery", node, opts);
-}
-
-function assertTSTypeLiteral(node, opts = {}) {
- assert("TSTypeLiteral", node, opts);
-}
-
-function assertTSArrayType(node, opts = {}) {
- assert("TSArrayType", node, opts);
-}
-
-function assertTSTupleType(node, opts = {}) {
- assert("TSTupleType", node, opts);
-}
-
-function assertTSOptionalType(node, opts = {}) {
- assert("TSOptionalType", node, opts);
-}
-
-function assertTSRestType(node, opts = {}) {
- assert("TSRestType", node, opts);
-}
-
-function assertTSUnionType(node, opts = {}) {
- assert("TSUnionType", node, opts);
-}
-
-function assertTSIntersectionType(node, opts = {}) {
- assert("TSIntersectionType", node, opts);
-}
-
-function assertTSConditionalType(node, opts = {}) {
- assert("TSConditionalType", node, opts);
-}
-
-function assertTSInferType(node, opts = {}) {
- assert("TSInferType", node, opts);
-}
-
-function assertTSParenthesizedType(node, opts = {}) {
- assert("TSParenthesizedType", node, opts);
-}
-
-function assertTSTypeOperator(node, opts = {}) {
- assert("TSTypeOperator", node, opts);
-}
-
-function assertTSIndexedAccessType(node, opts = {}) {
- assert("TSIndexedAccessType", node, opts);
-}
-
-function assertTSMappedType(node, opts = {}) {
- assert("TSMappedType", node, opts);
-}
-
-function assertTSLiteralType(node, opts = {}) {
- assert("TSLiteralType", node, opts);
-}
-
-function assertTSExpressionWithTypeArguments(node, opts = {}) {
- assert("TSExpressionWithTypeArguments", node, opts);
-}
-
-function assertTSInterfaceDeclaration(node, opts = {}) {
- assert("TSInterfaceDeclaration", node, opts);
-}
-
-function assertTSInterfaceBody(node, opts = {}) {
- assert("TSInterfaceBody", node, opts);
-}
-
-function assertTSTypeAliasDeclaration(node, opts = {}) {
- assert("TSTypeAliasDeclaration", node, opts);
-}
-
-function assertTSAsExpression(node, opts = {}) {
- assert("TSAsExpression", node, opts);
-}
-
-function assertTSTypeAssertion(node, opts = {}) {
- assert("TSTypeAssertion", node, opts);
-}
-
-function assertTSEnumDeclaration(node, opts = {}) {
- assert("TSEnumDeclaration", node, opts);
-}
-
-function assertTSEnumMember(node, opts = {}) {
- assert("TSEnumMember", node, opts);
-}
-
-function assertTSModuleDeclaration(node, opts = {}) {
- assert("TSModuleDeclaration", node, opts);
-}
-
-function assertTSModuleBlock(node, opts = {}) {
- assert("TSModuleBlock", node, opts);
-}
-
-function assertTSImportType(node, opts = {}) {
- assert("TSImportType", node, opts);
-}
-
-function assertTSImportEqualsDeclaration(node, opts = {}) {
- assert("TSImportEqualsDeclaration", node, opts);
-}
-
-function assertTSExternalModuleReference(node, opts = {}) {
- assert("TSExternalModuleReference", node, opts);
-}
-
-function assertTSNonNullExpression(node, opts = {}) {
- assert("TSNonNullExpression", node, opts);
-}
-
-function assertTSExportAssignment(node, opts = {}) {
- assert("TSExportAssignment", node, opts);
-}
-
-function assertTSNamespaceExportDeclaration(node, opts = {}) {
- assert("TSNamespaceExportDeclaration", node, opts);
-}
-
-function assertTSTypeAnnotation(node, opts = {}) {
- assert("TSTypeAnnotation", node, opts);
-}
-
-function assertTSTypeParameterInstantiation(node, opts = {}) {
- assert("TSTypeParameterInstantiation", node, opts);
-}
-
-function assertTSTypeParameterDeclaration(node, opts = {}) {
- assert("TSTypeParameterDeclaration", node, opts);
-}
-
-function assertTSTypeParameter(node, opts = {}) {
- assert("TSTypeParameter", node, opts);
-}
-
-function assertExpression(node, opts = {}) {
- assert("Expression", node, opts);
-}
-
-function assertBinary(node, opts = {}) {
- assert("Binary", node, opts);
-}
-
-function assertScopable(node, opts = {}) {
- assert("Scopable", node, opts);
-}
-
-function assertBlockParent(node, opts = {}) {
- assert("BlockParent", node, opts);
-}
-
-function assertBlock(node, opts = {}) {
- assert("Block", node, opts);
-}
-
-function assertStatement(node, opts = {}) {
- assert("Statement", node, opts);
-}
-
-function assertTerminatorless(node, opts = {}) {
- assert("Terminatorless", node, opts);
-}
-
-function assertCompletionStatement(node, opts = {}) {
- assert("CompletionStatement", node, opts);
-}
-
-function assertConditional(node, opts = {}) {
- assert("Conditional", node, opts);
-}
-
-function assertLoop(node, opts = {}) {
- assert("Loop", node, opts);
-}
-
-function assertWhile(node, opts = {}) {
- assert("While", node, opts);
-}
-
-function assertExpressionWrapper(node, opts = {}) {
- assert("ExpressionWrapper", node, opts);
-}
-
-function assertFor(node, opts = {}) {
- assert("For", node, opts);
-}
-
-function assertForXStatement(node, opts = {}) {
- assert("ForXStatement", node, opts);
-}
-
-function assertFunction(node, opts = {}) {
- assert("Function", node, opts);
-}
-
-function assertFunctionParent(node, opts = {}) {
- assert("FunctionParent", node, opts);
-}
-
-function assertPureish(node, opts = {}) {
- assert("Pureish", node, opts);
-}
-
-function assertDeclaration(node, opts = {}) {
- assert("Declaration", node, opts);
-}
-
-function assertPatternLike(node, opts = {}) {
- assert("PatternLike", node, opts);
-}
-
-function assertLVal(node, opts = {}) {
- assert("LVal", node, opts);
-}
-
-function assertTSEntityName(node, opts = {}) {
- assert("TSEntityName", node, opts);
-}
-
-function assertLiteral(node, opts = {}) {
- assert("Literal", node, opts);
-}
-
-function assertImmutable(node, opts = {}) {
- assert("Immutable", node, opts);
-}
-
-function assertUserWhitespacable(node, opts = {}) {
- assert("UserWhitespacable", node, opts);
-}
-
-function assertMethod(node, opts = {}) {
- assert("Method", node, opts);
-}
-
-function assertObjectMember(node, opts = {}) {
- assert("ObjectMember", node, opts);
-}
-
-function assertProperty(node, opts = {}) {
- assert("Property", node, opts);
-}
-
-function assertUnaryLike(node, opts = {}) {
- assert("UnaryLike", node, opts);
-}
-
-function assertPattern(node, opts = {}) {
- assert("Pattern", node, opts);
-}
-
-function assertClass(node, opts = {}) {
- assert("Class", node, opts);
-}
-
-function assertModuleDeclaration(node, opts = {}) {
- assert("ModuleDeclaration", node, opts);
-}
-
-function assertExportDeclaration(node, opts = {}) {
- assert("ExportDeclaration", node, opts);
-}
-
-function assertModuleSpecifier(node, opts = {}) {
- assert("ModuleSpecifier", node, opts);
-}
-
-function assertFlow(node, opts = {}) {
- assert("Flow", node, opts);
-}
-
-function assertFlowType(node, opts = {}) {
- assert("FlowType", node, opts);
-}
-
-function assertFlowBaseAnnotation(node, opts = {}) {
- assert("FlowBaseAnnotation", node, opts);
-}
-
-function assertFlowDeclaration(node, opts = {}) {
- assert("FlowDeclaration", node, opts);
-}
-
-function assertFlowPredicate(node, opts = {}) {
- assert("FlowPredicate", node, opts);
-}
-
-function assertJSX(node, opts = {}) {
- assert("JSX", node, opts);
-}
-
-function assertPrivate(node, opts = {}) {
- assert("Private", node, opts);
-}
-
-function assertTSTypeElement(node, opts = {}) {
- assert("TSTypeElement", node, opts);
-}
-
-function assertTSType(node, opts = {}) {
- assert("TSType", node, opts);
-}
-
-function assertNumberLiteral(node, opts) {
- console.trace("The node type NumberLiteral has been renamed to NumericLiteral");
- assert("NumberLiteral", node, opts);
-}
-
-function assertRegexLiteral(node, opts) {
- console.trace("The node type RegexLiteral has been renamed to RegExpLiteral");
- assert("RegexLiteral", node, opts);
-}
-
-function assertRestProperty(node, opts) {
- console.trace("The node type RestProperty has been renamed to RestElement");
- assert("RestProperty", node, opts);
-}
-
-function assertSpreadProperty(node, opts) {
- console.trace("The node type SpreadProperty has been renamed to SpreadElement");
- assert("SpreadProperty", node, opts);
-}
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/builders/builder.js b/node_modules/@babel/preset-env/node_modules/@babel/types/lib/builders/builder.js
deleted file mode 100644
index b42fac2f..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/builders/builder.js
+++ /dev/null
@@ -1,50 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = builder;
-
-function _clone() {
- const data = _interopRequireDefault(require("lodash/clone"));
-
- _clone = function () {
- return data;
- };
-
- return data;
-}
-
-var _definitions = require("../definitions");
-
-var _validate = _interopRequireDefault(require("../validators/validate"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function builder(type, ...args) {
- const keys = _definitions.BUILDER_KEYS[type];
- const countArgs = args.length;
-
- if (countArgs > keys.length) {
- throw new Error(`${type}: Too many arguments passed. Received ${countArgs} but can receive no more than ${keys.length}`);
- }
-
- const node = {
- type
- };
- let i = 0;
- keys.forEach(key => {
- const field = _definitions.NODE_FIELDS[type][key];
- let arg;
- if (i < countArgs) arg = args[i];
- if (arg === undefined) arg = (0, _clone().default)(field.default);
- node[key] = arg;
- i++;
- });
-
- for (const key of Object.keys(node)) {
- (0, _validate.default)(node, key, node[key]);
- }
-
- return node;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js b/node_modules/@babel/preset-env/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js
deleted file mode 100644
index 4724335f..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js
+++ /dev/null
@@ -1,28 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = createTypeAnnotationBasedOnTypeof;
-
-var _generated = require("../generated");
-
-function createTypeAnnotationBasedOnTypeof(type) {
- if (type === "string") {
- return (0, _generated.stringTypeAnnotation)();
- } else if (type === "number") {
- return (0, _generated.numberTypeAnnotation)();
- } else if (type === "undefined") {
- return (0, _generated.voidTypeAnnotation)();
- } else if (type === "boolean") {
- return (0, _generated.booleanTypeAnnotation)();
- } else if (type === "function") {
- return (0, _generated.genericTypeAnnotation)((0, _generated.identifier)("Function"));
- } else if (type === "object") {
- return (0, _generated.genericTypeAnnotation)((0, _generated.identifier)("Object"));
- } else if (type === "symbol") {
- return (0, _generated.genericTypeAnnotation)((0, _generated.identifier)("Symbol"));
- } else {
- throw new Error("Invalid typeof value");
- }
-}
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/builders/flow/createUnionTypeAnnotation.js b/node_modules/@babel/preset-env/node_modules/@babel/types/lib/builders/flow/createUnionTypeAnnotation.js
deleted file mode 100644
index df76b010..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/builders/flow/createUnionTypeAnnotation.js
+++ /dev/null
@@ -1,22 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = createUnionTypeAnnotation;
-
-var _generated = require("../generated");
-
-var _removeTypeDuplicates = _interopRequireDefault(require("../../modifications/flow/removeTypeDuplicates"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function createUnionTypeAnnotation(types) {
- const flattened = (0, _removeTypeDuplicates.default)(types);
-
- if (flattened.length === 1) {
- return flattened[0];
- } else {
- return (0, _generated.unionTypeAnnotation)(flattened);
- }
-}
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/builders/generated/index.js b/node_modules/@babel/preset-env/node_modules/@babel/types/lib/builders/generated/index.js
deleted file mode 100644
index 936a4f3c..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/builders/generated/index.js
+++ /dev/null
@@ -1,1158 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.arrayExpression = exports.ArrayExpression = ArrayExpression;
-exports.assignmentExpression = exports.AssignmentExpression = AssignmentExpression;
-exports.binaryExpression = exports.BinaryExpression = BinaryExpression;
-exports.interpreterDirective = exports.InterpreterDirective = InterpreterDirective;
-exports.directive = exports.Directive = Directive;
-exports.directiveLiteral = exports.DirectiveLiteral = DirectiveLiteral;
-exports.blockStatement = exports.BlockStatement = BlockStatement;
-exports.breakStatement = exports.BreakStatement = BreakStatement;
-exports.callExpression = exports.CallExpression = CallExpression;
-exports.catchClause = exports.CatchClause = CatchClause;
-exports.conditionalExpression = exports.ConditionalExpression = ConditionalExpression;
-exports.continueStatement = exports.ContinueStatement = ContinueStatement;
-exports.debuggerStatement = exports.DebuggerStatement = DebuggerStatement;
-exports.doWhileStatement = exports.DoWhileStatement = DoWhileStatement;
-exports.emptyStatement = exports.EmptyStatement = EmptyStatement;
-exports.expressionStatement = exports.ExpressionStatement = ExpressionStatement;
-exports.file = exports.File = File;
-exports.forInStatement = exports.ForInStatement = ForInStatement;
-exports.forStatement = exports.ForStatement = ForStatement;
-exports.functionDeclaration = exports.FunctionDeclaration = FunctionDeclaration;
-exports.functionExpression = exports.FunctionExpression = FunctionExpression;
-exports.identifier = exports.Identifier = Identifier;
-exports.ifStatement = exports.IfStatement = IfStatement;
-exports.labeledStatement = exports.LabeledStatement = LabeledStatement;
-exports.stringLiteral = exports.StringLiteral = StringLiteral;
-exports.numericLiteral = exports.NumericLiteral = NumericLiteral;
-exports.nullLiteral = exports.NullLiteral = NullLiteral;
-exports.booleanLiteral = exports.BooleanLiteral = BooleanLiteral;
-exports.regExpLiteral = exports.RegExpLiteral = RegExpLiteral;
-exports.logicalExpression = exports.LogicalExpression = LogicalExpression;
-exports.memberExpression = exports.MemberExpression = MemberExpression;
-exports.newExpression = exports.NewExpression = NewExpression;
-exports.program = exports.Program = Program;
-exports.objectExpression = exports.ObjectExpression = ObjectExpression;
-exports.objectMethod = exports.ObjectMethod = ObjectMethod;
-exports.objectProperty = exports.ObjectProperty = ObjectProperty;
-exports.restElement = exports.RestElement = RestElement;
-exports.returnStatement = exports.ReturnStatement = ReturnStatement;
-exports.sequenceExpression = exports.SequenceExpression = SequenceExpression;
-exports.parenthesizedExpression = exports.ParenthesizedExpression = ParenthesizedExpression;
-exports.switchCase = exports.SwitchCase = SwitchCase;
-exports.switchStatement = exports.SwitchStatement = SwitchStatement;
-exports.thisExpression = exports.ThisExpression = ThisExpression;
-exports.throwStatement = exports.ThrowStatement = ThrowStatement;
-exports.tryStatement = exports.TryStatement = TryStatement;
-exports.unaryExpression = exports.UnaryExpression = UnaryExpression;
-exports.updateExpression = exports.UpdateExpression = UpdateExpression;
-exports.variableDeclaration = exports.VariableDeclaration = VariableDeclaration;
-exports.variableDeclarator = exports.VariableDeclarator = VariableDeclarator;
-exports.whileStatement = exports.WhileStatement = WhileStatement;
-exports.withStatement = exports.WithStatement = WithStatement;
-exports.assignmentPattern = exports.AssignmentPattern = AssignmentPattern;
-exports.arrayPattern = exports.ArrayPattern = ArrayPattern;
-exports.arrowFunctionExpression = exports.ArrowFunctionExpression = ArrowFunctionExpression;
-exports.classBody = exports.ClassBody = ClassBody;
-exports.classDeclaration = exports.ClassDeclaration = ClassDeclaration;
-exports.classExpression = exports.ClassExpression = ClassExpression;
-exports.exportAllDeclaration = exports.ExportAllDeclaration = ExportAllDeclaration;
-exports.exportDefaultDeclaration = exports.ExportDefaultDeclaration = ExportDefaultDeclaration;
-exports.exportNamedDeclaration = exports.ExportNamedDeclaration = ExportNamedDeclaration;
-exports.exportSpecifier = exports.ExportSpecifier = ExportSpecifier;
-exports.forOfStatement = exports.ForOfStatement = ForOfStatement;
-exports.importDeclaration = exports.ImportDeclaration = ImportDeclaration;
-exports.importDefaultSpecifier = exports.ImportDefaultSpecifier = ImportDefaultSpecifier;
-exports.importNamespaceSpecifier = exports.ImportNamespaceSpecifier = ImportNamespaceSpecifier;
-exports.importSpecifier = exports.ImportSpecifier = ImportSpecifier;
-exports.metaProperty = exports.MetaProperty = MetaProperty;
-exports.classMethod = exports.ClassMethod = ClassMethod;
-exports.objectPattern = exports.ObjectPattern = ObjectPattern;
-exports.spreadElement = exports.SpreadElement = SpreadElement;
-exports.super = exports.Super = Super;
-exports.taggedTemplateExpression = exports.TaggedTemplateExpression = TaggedTemplateExpression;
-exports.templateElement = exports.TemplateElement = TemplateElement;
-exports.templateLiteral = exports.TemplateLiteral = TemplateLiteral;
-exports.yieldExpression = exports.YieldExpression = YieldExpression;
-exports.anyTypeAnnotation = exports.AnyTypeAnnotation = AnyTypeAnnotation;
-exports.arrayTypeAnnotation = exports.ArrayTypeAnnotation = ArrayTypeAnnotation;
-exports.booleanTypeAnnotation = exports.BooleanTypeAnnotation = BooleanTypeAnnotation;
-exports.booleanLiteralTypeAnnotation = exports.BooleanLiteralTypeAnnotation = BooleanLiteralTypeAnnotation;
-exports.nullLiteralTypeAnnotation = exports.NullLiteralTypeAnnotation = NullLiteralTypeAnnotation;
-exports.classImplements = exports.ClassImplements = ClassImplements;
-exports.declareClass = exports.DeclareClass = DeclareClass;
-exports.declareFunction = exports.DeclareFunction = DeclareFunction;
-exports.declareInterface = exports.DeclareInterface = DeclareInterface;
-exports.declareModule = exports.DeclareModule = DeclareModule;
-exports.declareModuleExports = exports.DeclareModuleExports = DeclareModuleExports;
-exports.declareTypeAlias = exports.DeclareTypeAlias = DeclareTypeAlias;
-exports.declareOpaqueType = exports.DeclareOpaqueType = DeclareOpaqueType;
-exports.declareVariable = exports.DeclareVariable = DeclareVariable;
-exports.declareExportDeclaration = exports.DeclareExportDeclaration = DeclareExportDeclaration;
-exports.declareExportAllDeclaration = exports.DeclareExportAllDeclaration = DeclareExportAllDeclaration;
-exports.declaredPredicate = exports.DeclaredPredicate = DeclaredPredicate;
-exports.existsTypeAnnotation = exports.ExistsTypeAnnotation = ExistsTypeAnnotation;
-exports.functionTypeAnnotation = exports.FunctionTypeAnnotation = FunctionTypeAnnotation;
-exports.functionTypeParam = exports.FunctionTypeParam = FunctionTypeParam;
-exports.genericTypeAnnotation = exports.GenericTypeAnnotation = GenericTypeAnnotation;
-exports.inferredPredicate = exports.InferredPredicate = InferredPredicate;
-exports.interfaceExtends = exports.InterfaceExtends = InterfaceExtends;
-exports.interfaceDeclaration = exports.InterfaceDeclaration = InterfaceDeclaration;
-exports.interfaceTypeAnnotation = exports.InterfaceTypeAnnotation = InterfaceTypeAnnotation;
-exports.intersectionTypeAnnotation = exports.IntersectionTypeAnnotation = IntersectionTypeAnnotation;
-exports.mixedTypeAnnotation = exports.MixedTypeAnnotation = MixedTypeAnnotation;
-exports.emptyTypeAnnotation = exports.EmptyTypeAnnotation = EmptyTypeAnnotation;
-exports.nullableTypeAnnotation = exports.NullableTypeAnnotation = NullableTypeAnnotation;
-exports.numberLiteralTypeAnnotation = exports.NumberLiteralTypeAnnotation = NumberLiteralTypeAnnotation;
-exports.numberTypeAnnotation = exports.NumberTypeAnnotation = NumberTypeAnnotation;
-exports.objectTypeAnnotation = exports.ObjectTypeAnnotation = ObjectTypeAnnotation;
-exports.objectTypeInternalSlot = exports.ObjectTypeInternalSlot = ObjectTypeInternalSlot;
-exports.objectTypeCallProperty = exports.ObjectTypeCallProperty = ObjectTypeCallProperty;
-exports.objectTypeIndexer = exports.ObjectTypeIndexer = ObjectTypeIndexer;
-exports.objectTypeProperty = exports.ObjectTypeProperty = ObjectTypeProperty;
-exports.objectTypeSpreadProperty = exports.ObjectTypeSpreadProperty = ObjectTypeSpreadProperty;
-exports.opaqueType = exports.OpaqueType = OpaqueType;
-exports.qualifiedTypeIdentifier = exports.QualifiedTypeIdentifier = QualifiedTypeIdentifier;
-exports.stringLiteralTypeAnnotation = exports.StringLiteralTypeAnnotation = StringLiteralTypeAnnotation;
-exports.stringTypeAnnotation = exports.StringTypeAnnotation = StringTypeAnnotation;
-exports.thisTypeAnnotation = exports.ThisTypeAnnotation = ThisTypeAnnotation;
-exports.tupleTypeAnnotation = exports.TupleTypeAnnotation = TupleTypeAnnotation;
-exports.typeofTypeAnnotation = exports.TypeofTypeAnnotation = TypeofTypeAnnotation;
-exports.typeAlias = exports.TypeAlias = TypeAlias;
-exports.typeAnnotation = exports.TypeAnnotation = TypeAnnotation;
-exports.typeCastExpression = exports.TypeCastExpression = TypeCastExpression;
-exports.typeParameter = exports.TypeParameter = TypeParameter;
-exports.typeParameterDeclaration = exports.TypeParameterDeclaration = TypeParameterDeclaration;
-exports.typeParameterInstantiation = exports.TypeParameterInstantiation = TypeParameterInstantiation;
-exports.unionTypeAnnotation = exports.UnionTypeAnnotation = UnionTypeAnnotation;
-exports.variance = exports.Variance = Variance;
-exports.voidTypeAnnotation = exports.VoidTypeAnnotation = VoidTypeAnnotation;
-exports.jSXAttribute = exports.jsxAttribute = exports.JSXAttribute = JSXAttribute;
-exports.jSXClosingElement = exports.jsxClosingElement = exports.JSXClosingElement = JSXClosingElement;
-exports.jSXElement = exports.jsxElement = exports.JSXElement = JSXElement;
-exports.jSXEmptyExpression = exports.jsxEmptyExpression = exports.JSXEmptyExpression = JSXEmptyExpression;
-exports.jSXExpressionContainer = exports.jsxExpressionContainer = exports.JSXExpressionContainer = JSXExpressionContainer;
-exports.jSXSpreadChild = exports.jsxSpreadChild = exports.JSXSpreadChild = JSXSpreadChild;
-exports.jSXIdentifier = exports.jsxIdentifier = exports.JSXIdentifier = JSXIdentifier;
-exports.jSXMemberExpression = exports.jsxMemberExpression = exports.JSXMemberExpression = JSXMemberExpression;
-exports.jSXNamespacedName = exports.jsxNamespacedName = exports.JSXNamespacedName = JSXNamespacedName;
-exports.jSXOpeningElement = exports.jsxOpeningElement = exports.JSXOpeningElement = JSXOpeningElement;
-exports.jSXSpreadAttribute = exports.jsxSpreadAttribute = exports.JSXSpreadAttribute = JSXSpreadAttribute;
-exports.jSXText = exports.jsxText = exports.JSXText = JSXText;
-exports.jSXFragment = exports.jsxFragment = exports.JSXFragment = JSXFragment;
-exports.jSXOpeningFragment = exports.jsxOpeningFragment = exports.JSXOpeningFragment = JSXOpeningFragment;
-exports.jSXClosingFragment = exports.jsxClosingFragment = exports.JSXClosingFragment = JSXClosingFragment;
-exports.noop = exports.Noop = Noop;
-exports.placeholder = exports.Placeholder = Placeholder;
-exports.v8IntrinsicIdentifier = exports.V8IntrinsicIdentifier = V8IntrinsicIdentifier;
-exports.argumentPlaceholder = exports.ArgumentPlaceholder = ArgumentPlaceholder;
-exports.awaitExpression = exports.AwaitExpression = AwaitExpression;
-exports.bindExpression = exports.BindExpression = BindExpression;
-exports.classProperty = exports.ClassProperty = ClassProperty;
-exports.optionalMemberExpression = exports.OptionalMemberExpression = OptionalMemberExpression;
-exports.pipelineTopicExpression = exports.PipelineTopicExpression = PipelineTopicExpression;
-exports.pipelineBareFunction = exports.PipelineBareFunction = PipelineBareFunction;
-exports.pipelinePrimaryTopicReference = exports.PipelinePrimaryTopicReference = PipelinePrimaryTopicReference;
-exports.optionalCallExpression = exports.OptionalCallExpression = OptionalCallExpression;
-exports.classPrivateProperty = exports.ClassPrivateProperty = ClassPrivateProperty;
-exports.classPrivateMethod = exports.ClassPrivateMethod = ClassPrivateMethod;
-exports.import = exports.Import = Import;
-exports.decorator = exports.Decorator = Decorator;
-exports.doExpression = exports.DoExpression = DoExpression;
-exports.exportDefaultSpecifier = exports.ExportDefaultSpecifier = ExportDefaultSpecifier;
-exports.exportNamespaceSpecifier = exports.ExportNamespaceSpecifier = ExportNamespaceSpecifier;
-exports.privateName = exports.PrivateName = PrivateName;
-exports.bigIntLiteral = exports.BigIntLiteral = BigIntLiteral;
-exports.tSParameterProperty = exports.tsParameterProperty = exports.TSParameterProperty = TSParameterProperty;
-exports.tSDeclareFunction = exports.tsDeclareFunction = exports.TSDeclareFunction = TSDeclareFunction;
-exports.tSDeclareMethod = exports.tsDeclareMethod = exports.TSDeclareMethod = TSDeclareMethod;
-exports.tSQualifiedName = exports.tsQualifiedName = exports.TSQualifiedName = TSQualifiedName;
-exports.tSCallSignatureDeclaration = exports.tsCallSignatureDeclaration = exports.TSCallSignatureDeclaration = TSCallSignatureDeclaration;
-exports.tSConstructSignatureDeclaration = exports.tsConstructSignatureDeclaration = exports.TSConstructSignatureDeclaration = TSConstructSignatureDeclaration;
-exports.tSPropertySignature = exports.tsPropertySignature = exports.TSPropertySignature = TSPropertySignature;
-exports.tSMethodSignature = exports.tsMethodSignature = exports.TSMethodSignature = TSMethodSignature;
-exports.tSIndexSignature = exports.tsIndexSignature = exports.TSIndexSignature = TSIndexSignature;
-exports.tSAnyKeyword = exports.tsAnyKeyword = exports.TSAnyKeyword = TSAnyKeyword;
-exports.tSBooleanKeyword = exports.tsBooleanKeyword = exports.TSBooleanKeyword = TSBooleanKeyword;
-exports.tSBigIntKeyword = exports.tsBigIntKeyword = exports.TSBigIntKeyword = TSBigIntKeyword;
-exports.tSNeverKeyword = exports.tsNeverKeyword = exports.TSNeverKeyword = TSNeverKeyword;
-exports.tSNullKeyword = exports.tsNullKeyword = exports.TSNullKeyword = TSNullKeyword;
-exports.tSNumberKeyword = exports.tsNumberKeyword = exports.TSNumberKeyword = TSNumberKeyword;
-exports.tSObjectKeyword = exports.tsObjectKeyword = exports.TSObjectKeyword = TSObjectKeyword;
-exports.tSStringKeyword = exports.tsStringKeyword = exports.TSStringKeyword = TSStringKeyword;
-exports.tSSymbolKeyword = exports.tsSymbolKeyword = exports.TSSymbolKeyword = TSSymbolKeyword;
-exports.tSUndefinedKeyword = exports.tsUndefinedKeyword = exports.TSUndefinedKeyword = TSUndefinedKeyword;
-exports.tSUnknownKeyword = exports.tsUnknownKeyword = exports.TSUnknownKeyword = TSUnknownKeyword;
-exports.tSVoidKeyword = exports.tsVoidKeyword = exports.TSVoidKeyword = TSVoidKeyword;
-exports.tSThisType = exports.tsThisType = exports.TSThisType = TSThisType;
-exports.tSFunctionType = exports.tsFunctionType = exports.TSFunctionType = TSFunctionType;
-exports.tSConstructorType = exports.tsConstructorType = exports.TSConstructorType = TSConstructorType;
-exports.tSTypeReference = exports.tsTypeReference = exports.TSTypeReference = TSTypeReference;
-exports.tSTypePredicate = exports.tsTypePredicate = exports.TSTypePredicate = TSTypePredicate;
-exports.tSTypeQuery = exports.tsTypeQuery = exports.TSTypeQuery = TSTypeQuery;
-exports.tSTypeLiteral = exports.tsTypeLiteral = exports.TSTypeLiteral = TSTypeLiteral;
-exports.tSArrayType = exports.tsArrayType = exports.TSArrayType = TSArrayType;
-exports.tSTupleType = exports.tsTupleType = exports.TSTupleType = TSTupleType;
-exports.tSOptionalType = exports.tsOptionalType = exports.TSOptionalType = TSOptionalType;
-exports.tSRestType = exports.tsRestType = exports.TSRestType = TSRestType;
-exports.tSUnionType = exports.tsUnionType = exports.TSUnionType = TSUnionType;
-exports.tSIntersectionType = exports.tsIntersectionType = exports.TSIntersectionType = TSIntersectionType;
-exports.tSConditionalType = exports.tsConditionalType = exports.TSConditionalType = TSConditionalType;
-exports.tSInferType = exports.tsInferType = exports.TSInferType = TSInferType;
-exports.tSParenthesizedType = exports.tsParenthesizedType = exports.TSParenthesizedType = TSParenthesizedType;
-exports.tSTypeOperator = exports.tsTypeOperator = exports.TSTypeOperator = TSTypeOperator;
-exports.tSIndexedAccessType = exports.tsIndexedAccessType = exports.TSIndexedAccessType = TSIndexedAccessType;
-exports.tSMappedType = exports.tsMappedType = exports.TSMappedType = TSMappedType;
-exports.tSLiteralType = exports.tsLiteralType = exports.TSLiteralType = TSLiteralType;
-exports.tSExpressionWithTypeArguments = exports.tsExpressionWithTypeArguments = exports.TSExpressionWithTypeArguments = TSExpressionWithTypeArguments;
-exports.tSInterfaceDeclaration = exports.tsInterfaceDeclaration = exports.TSInterfaceDeclaration = TSInterfaceDeclaration;
-exports.tSInterfaceBody = exports.tsInterfaceBody = exports.TSInterfaceBody = TSInterfaceBody;
-exports.tSTypeAliasDeclaration = exports.tsTypeAliasDeclaration = exports.TSTypeAliasDeclaration = TSTypeAliasDeclaration;
-exports.tSAsExpression = exports.tsAsExpression = exports.TSAsExpression = TSAsExpression;
-exports.tSTypeAssertion = exports.tsTypeAssertion = exports.TSTypeAssertion = TSTypeAssertion;
-exports.tSEnumDeclaration = exports.tsEnumDeclaration = exports.TSEnumDeclaration = TSEnumDeclaration;
-exports.tSEnumMember = exports.tsEnumMember = exports.TSEnumMember = TSEnumMember;
-exports.tSModuleDeclaration = exports.tsModuleDeclaration = exports.TSModuleDeclaration = TSModuleDeclaration;
-exports.tSModuleBlock = exports.tsModuleBlock = exports.TSModuleBlock = TSModuleBlock;
-exports.tSImportType = exports.tsImportType = exports.TSImportType = TSImportType;
-exports.tSImportEqualsDeclaration = exports.tsImportEqualsDeclaration = exports.TSImportEqualsDeclaration = TSImportEqualsDeclaration;
-exports.tSExternalModuleReference = exports.tsExternalModuleReference = exports.TSExternalModuleReference = TSExternalModuleReference;
-exports.tSNonNullExpression = exports.tsNonNullExpression = exports.TSNonNullExpression = TSNonNullExpression;
-exports.tSExportAssignment = exports.tsExportAssignment = exports.TSExportAssignment = TSExportAssignment;
-exports.tSNamespaceExportDeclaration = exports.tsNamespaceExportDeclaration = exports.TSNamespaceExportDeclaration = TSNamespaceExportDeclaration;
-exports.tSTypeAnnotation = exports.tsTypeAnnotation = exports.TSTypeAnnotation = TSTypeAnnotation;
-exports.tSTypeParameterInstantiation = exports.tsTypeParameterInstantiation = exports.TSTypeParameterInstantiation = TSTypeParameterInstantiation;
-exports.tSTypeParameterDeclaration = exports.tsTypeParameterDeclaration = exports.TSTypeParameterDeclaration = TSTypeParameterDeclaration;
-exports.tSTypeParameter = exports.tsTypeParameter = exports.TSTypeParameter = TSTypeParameter;
-exports.numberLiteral = exports.NumberLiteral = NumberLiteral;
-exports.regexLiteral = exports.RegexLiteral = RegexLiteral;
-exports.restProperty = exports.RestProperty = RestProperty;
-exports.spreadProperty = exports.SpreadProperty = SpreadProperty;
-
-var _builder = _interopRequireDefault(require("../builder"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function ArrayExpression(...args) {
- return (0, _builder.default)("ArrayExpression", ...args);
-}
-
-function AssignmentExpression(...args) {
- return (0, _builder.default)("AssignmentExpression", ...args);
-}
-
-function BinaryExpression(...args) {
- return (0, _builder.default)("BinaryExpression", ...args);
-}
-
-function InterpreterDirective(...args) {
- return (0, _builder.default)("InterpreterDirective", ...args);
-}
-
-function Directive(...args) {
- return (0, _builder.default)("Directive", ...args);
-}
-
-function DirectiveLiteral(...args) {
- return (0, _builder.default)("DirectiveLiteral", ...args);
-}
-
-function BlockStatement(...args) {
- return (0, _builder.default)("BlockStatement", ...args);
-}
-
-function BreakStatement(...args) {
- return (0, _builder.default)("BreakStatement", ...args);
-}
-
-function CallExpression(...args) {
- return (0, _builder.default)("CallExpression", ...args);
-}
-
-function CatchClause(...args) {
- return (0, _builder.default)("CatchClause", ...args);
-}
-
-function ConditionalExpression(...args) {
- return (0, _builder.default)("ConditionalExpression", ...args);
-}
-
-function ContinueStatement(...args) {
- return (0, _builder.default)("ContinueStatement", ...args);
-}
-
-function DebuggerStatement(...args) {
- return (0, _builder.default)("DebuggerStatement", ...args);
-}
-
-function DoWhileStatement(...args) {
- return (0, _builder.default)("DoWhileStatement", ...args);
-}
-
-function EmptyStatement(...args) {
- return (0, _builder.default)("EmptyStatement", ...args);
-}
-
-function ExpressionStatement(...args) {
- return (0, _builder.default)("ExpressionStatement", ...args);
-}
-
-function File(...args) {
- return (0, _builder.default)("File", ...args);
-}
-
-function ForInStatement(...args) {
- return (0, _builder.default)("ForInStatement", ...args);
-}
-
-function ForStatement(...args) {
- return (0, _builder.default)("ForStatement", ...args);
-}
-
-function FunctionDeclaration(...args) {
- return (0, _builder.default)("FunctionDeclaration", ...args);
-}
-
-function FunctionExpression(...args) {
- return (0, _builder.default)("FunctionExpression", ...args);
-}
-
-function Identifier(...args) {
- return (0, _builder.default)("Identifier", ...args);
-}
-
-function IfStatement(...args) {
- return (0, _builder.default)("IfStatement", ...args);
-}
-
-function LabeledStatement(...args) {
- return (0, _builder.default)("LabeledStatement", ...args);
-}
-
-function StringLiteral(...args) {
- return (0, _builder.default)("StringLiteral", ...args);
-}
-
-function NumericLiteral(...args) {
- return (0, _builder.default)("NumericLiteral", ...args);
-}
-
-function NullLiteral(...args) {
- return (0, _builder.default)("NullLiteral", ...args);
-}
-
-function BooleanLiteral(...args) {
- return (0, _builder.default)("BooleanLiteral", ...args);
-}
-
-function RegExpLiteral(...args) {
- return (0, _builder.default)("RegExpLiteral", ...args);
-}
-
-function LogicalExpression(...args) {
- return (0, _builder.default)("LogicalExpression", ...args);
-}
-
-function MemberExpression(...args) {
- return (0, _builder.default)("MemberExpression", ...args);
-}
-
-function NewExpression(...args) {
- return (0, _builder.default)("NewExpression", ...args);
-}
-
-function Program(...args) {
- return (0, _builder.default)("Program", ...args);
-}
-
-function ObjectExpression(...args) {
- return (0, _builder.default)("ObjectExpression", ...args);
-}
-
-function ObjectMethod(...args) {
- return (0, _builder.default)("ObjectMethod", ...args);
-}
-
-function ObjectProperty(...args) {
- return (0, _builder.default)("ObjectProperty", ...args);
-}
-
-function RestElement(...args) {
- return (0, _builder.default)("RestElement", ...args);
-}
-
-function ReturnStatement(...args) {
- return (0, _builder.default)("ReturnStatement", ...args);
-}
-
-function SequenceExpression(...args) {
- return (0, _builder.default)("SequenceExpression", ...args);
-}
-
-function ParenthesizedExpression(...args) {
- return (0, _builder.default)("ParenthesizedExpression", ...args);
-}
-
-function SwitchCase(...args) {
- return (0, _builder.default)("SwitchCase", ...args);
-}
-
-function SwitchStatement(...args) {
- return (0, _builder.default)("SwitchStatement", ...args);
-}
-
-function ThisExpression(...args) {
- return (0, _builder.default)("ThisExpression", ...args);
-}
-
-function ThrowStatement(...args) {
- return (0, _builder.default)("ThrowStatement", ...args);
-}
-
-function TryStatement(...args) {
- return (0, _builder.default)("TryStatement", ...args);
-}
-
-function UnaryExpression(...args) {
- return (0, _builder.default)("UnaryExpression", ...args);
-}
-
-function UpdateExpression(...args) {
- return (0, _builder.default)("UpdateExpression", ...args);
-}
-
-function VariableDeclaration(...args) {
- return (0, _builder.default)("VariableDeclaration", ...args);
-}
-
-function VariableDeclarator(...args) {
- return (0, _builder.default)("VariableDeclarator", ...args);
-}
-
-function WhileStatement(...args) {
- return (0, _builder.default)("WhileStatement", ...args);
-}
-
-function WithStatement(...args) {
- return (0, _builder.default)("WithStatement", ...args);
-}
-
-function AssignmentPattern(...args) {
- return (0, _builder.default)("AssignmentPattern", ...args);
-}
-
-function ArrayPattern(...args) {
- return (0, _builder.default)("ArrayPattern", ...args);
-}
-
-function ArrowFunctionExpression(...args) {
- return (0, _builder.default)("ArrowFunctionExpression", ...args);
-}
-
-function ClassBody(...args) {
- return (0, _builder.default)("ClassBody", ...args);
-}
-
-function ClassDeclaration(...args) {
- return (0, _builder.default)("ClassDeclaration", ...args);
-}
-
-function ClassExpression(...args) {
- return (0, _builder.default)("ClassExpression", ...args);
-}
-
-function ExportAllDeclaration(...args) {
- return (0, _builder.default)("ExportAllDeclaration", ...args);
-}
-
-function ExportDefaultDeclaration(...args) {
- return (0, _builder.default)("ExportDefaultDeclaration", ...args);
-}
-
-function ExportNamedDeclaration(...args) {
- return (0, _builder.default)("ExportNamedDeclaration", ...args);
-}
-
-function ExportSpecifier(...args) {
- return (0, _builder.default)("ExportSpecifier", ...args);
-}
-
-function ForOfStatement(...args) {
- return (0, _builder.default)("ForOfStatement", ...args);
-}
-
-function ImportDeclaration(...args) {
- return (0, _builder.default)("ImportDeclaration", ...args);
-}
-
-function ImportDefaultSpecifier(...args) {
- return (0, _builder.default)("ImportDefaultSpecifier", ...args);
-}
-
-function ImportNamespaceSpecifier(...args) {
- return (0, _builder.default)("ImportNamespaceSpecifier", ...args);
-}
-
-function ImportSpecifier(...args) {
- return (0, _builder.default)("ImportSpecifier", ...args);
-}
-
-function MetaProperty(...args) {
- return (0, _builder.default)("MetaProperty", ...args);
-}
-
-function ClassMethod(...args) {
- return (0, _builder.default)("ClassMethod", ...args);
-}
-
-function ObjectPattern(...args) {
- return (0, _builder.default)("ObjectPattern", ...args);
-}
-
-function SpreadElement(...args) {
- return (0, _builder.default)("SpreadElement", ...args);
-}
-
-function Super(...args) {
- return (0, _builder.default)("Super", ...args);
-}
-
-function TaggedTemplateExpression(...args) {
- return (0, _builder.default)("TaggedTemplateExpression", ...args);
-}
-
-function TemplateElement(...args) {
- return (0, _builder.default)("TemplateElement", ...args);
-}
-
-function TemplateLiteral(...args) {
- return (0, _builder.default)("TemplateLiteral", ...args);
-}
-
-function YieldExpression(...args) {
- return (0, _builder.default)("YieldExpression", ...args);
-}
-
-function AnyTypeAnnotation(...args) {
- return (0, _builder.default)("AnyTypeAnnotation", ...args);
-}
-
-function ArrayTypeAnnotation(...args) {
- return (0, _builder.default)("ArrayTypeAnnotation", ...args);
-}
-
-function BooleanTypeAnnotation(...args) {
- return (0, _builder.default)("BooleanTypeAnnotation", ...args);
-}
-
-function BooleanLiteralTypeAnnotation(...args) {
- return (0, _builder.default)("BooleanLiteralTypeAnnotation", ...args);
-}
-
-function NullLiteralTypeAnnotation(...args) {
- return (0, _builder.default)("NullLiteralTypeAnnotation", ...args);
-}
-
-function ClassImplements(...args) {
- return (0, _builder.default)("ClassImplements", ...args);
-}
-
-function DeclareClass(...args) {
- return (0, _builder.default)("DeclareClass", ...args);
-}
-
-function DeclareFunction(...args) {
- return (0, _builder.default)("DeclareFunction", ...args);
-}
-
-function DeclareInterface(...args) {
- return (0, _builder.default)("DeclareInterface", ...args);
-}
-
-function DeclareModule(...args) {
- return (0, _builder.default)("DeclareModule", ...args);
-}
-
-function DeclareModuleExports(...args) {
- return (0, _builder.default)("DeclareModuleExports", ...args);
-}
-
-function DeclareTypeAlias(...args) {
- return (0, _builder.default)("DeclareTypeAlias", ...args);
-}
-
-function DeclareOpaqueType(...args) {
- return (0, _builder.default)("DeclareOpaqueType", ...args);
-}
-
-function DeclareVariable(...args) {
- return (0, _builder.default)("DeclareVariable", ...args);
-}
-
-function DeclareExportDeclaration(...args) {
- return (0, _builder.default)("DeclareExportDeclaration", ...args);
-}
-
-function DeclareExportAllDeclaration(...args) {
- return (0, _builder.default)("DeclareExportAllDeclaration", ...args);
-}
-
-function DeclaredPredicate(...args) {
- return (0, _builder.default)("DeclaredPredicate", ...args);
-}
-
-function ExistsTypeAnnotation(...args) {
- return (0, _builder.default)("ExistsTypeAnnotation", ...args);
-}
-
-function FunctionTypeAnnotation(...args) {
- return (0, _builder.default)("FunctionTypeAnnotation", ...args);
-}
-
-function FunctionTypeParam(...args) {
- return (0, _builder.default)("FunctionTypeParam", ...args);
-}
-
-function GenericTypeAnnotation(...args) {
- return (0, _builder.default)("GenericTypeAnnotation", ...args);
-}
-
-function InferredPredicate(...args) {
- return (0, _builder.default)("InferredPredicate", ...args);
-}
-
-function InterfaceExtends(...args) {
- return (0, _builder.default)("InterfaceExtends", ...args);
-}
-
-function InterfaceDeclaration(...args) {
- return (0, _builder.default)("InterfaceDeclaration", ...args);
-}
-
-function InterfaceTypeAnnotation(...args) {
- return (0, _builder.default)("InterfaceTypeAnnotation", ...args);
-}
-
-function IntersectionTypeAnnotation(...args) {
- return (0, _builder.default)("IntersectionTypeAnnotation", ...args);
-}
-
-function MixedTypeAnnotation(...args) {
- return (0, _builder.default)("MixedTypeAnnotation", ...args);
-}
-
-function EmptyTypeAnnotation(...args) {
- return (0, _builder.default)("EmptyTypeAnnotation", ...args);
-}
-
-function NullableTypeAnnotation(...args) {
- return (0, _builder.default)("NullableTypeAnnotation", ...args);
-}
-
-function NumberLiteralTypeAnnotation(...args) {
- return (0, _builder.default)("NumberLiteralTypeAnnotation", ...args);
-}
-
-function NumberTypeAnnotation(...args) {
- return (0, _builder.default)("NumberTypeAnnotation", ...args);
-}
-
-function ObjectTypeAnnotation(...args) {
- return (0, _builder.default)("ObjectTypeAnnotation", ...args);
-}
-
-function ObjectTypeInternalSlot(...args) {
- return (0, _builder.default)("ObjectTypeInternalSlot", ...args);
-}
-
-function ObjectTypeCallProperty(...args) {
- return (0, _builder.default)("ObjectTypeCallProperty", ...args);
-}
-
-function ObjectTypeIndexer(...args) {
- return (0, _builder.default)("ObjectTypeIndexer", ...args);
-}
-
-function ObjectTypeProperty(...args) {
- return (0, _builder.default)("ObjectTypeProperty", ...args);
-}
-
-function ObjectTypeSpreadProperty(...args) {
- return (0, _builder.default)("ObjectTypeSpreadProperty", ...args);
-}
-
-function OpaqueType(...args) {
- return (0, _builder.default)("OpaqueType", ...args);
-}
-
-function QualifiedTypeIdentifier(...args) {
- return (0, _builder.default)("QualifiedTypeIdentifier", ...args);
-}
-
-function StringLiteralTypeAnnotation(...args) {
- return (0, _builder.default)("StringLiteralTypeAnnotation", ...args);
-}
-
-function StringTypeAnnotation(...args) {
- return (0, _builder.default)("StringTypeAnnotation", ...args);
-}
-
-function ThisTypeAnnotation(...args) {
- return (0, _builder.default)("ThisTypeAnnotation", ...args);
-}
-
-function TupleTypeAnnotation(...args) {
- return (0, _builder.default)("TupleTypeAnnotation", ...args);
-}
-
-function TypeofTypeAnnotation(...args) {
- return (0, _builder.default)("TypeofTypeAnnotation", ...args);
-}
-
-function TypeAlias(...args) {
- return (0, _builder.default)("TypeAlias", ...args);
-}
-
-function TypeAnnotation(...args) {
- return (0, _builder.default)("TypeAnnotation", ...args);
-}
-
-function TypeCastExpression(...args) {
- return (0, _builder.default)("TypeCastExpression", ...args);
-}
-
-function TypeParameter(...args) {
- return (0, _builder.default)("TypeParameter", ...args);
-}
-
-function TypeParameterDeclaration(...args) {
- return (0, _builder.default)("TypeParameterDeclaration", ...args);
-}
-
-function TypeParameterInstantiation(...args) {
- return (0, _builder.default)("TypeParameterInstantiation", ...args);
-}
-
-function UnionTypeAnnotation(...args) {
- return (0, _builder.default)("UnionTypeAnnotation", ...args);
-}
-
-function Variance(...args) {
- return (0, _builder.default)("Variance", ...args);
-}
-
-function VoidTypeAnnotation(...args) {
- return (0, _builder.default)("VoidTypeAnnotation", ...args);
-}
-
-function JSXAttribute(...args) {
- return (0, _builder.default)("JSXAttribute", ...args);
-}
-
-function JSXClosingElement(...args) {
- return (0, _builder.default)("JSXClosingElement", ...args);
-}
-
-function JSXElement(...args) {
- return (0, _builder.default)("JSXElement", ...args);
-}
-
-function JSXEmptyExpression(...args) {
- return (0, _builder.default)("JSXEmptyExpression", ...args);
-}
-
-function JSXExpressionContainer(...args) {
- return (0, _builder.default)("JSXExpressionContainer", ...args);
-}
-
-function JSXSpreadChild(...args) {
- return (0, _builder.default)("JSXSpreadChild", ...args);
-}
-
-function JSXIdentifier(...args) {
- return (0, _builder.default)("JSXIdentifier", ...args);
-}
-
-function JSXMemberExpression(...args) {
- return (0, _builder.default)("JSXMemberExpression", ...args);
-}
-
-function JSXNamespacedName(...args) {
- return (0, _builder.default)("JSXNamespacedName", ...args);
-}
-
-function JSXOpeningElement(...args) {
- return (0, _builder.default)("JSXOpeningElement", ...args);
-}
-
-function JSXSpreadAttribute(...args) {
- return (0, _builder.default)("JSXSpreadAttribute", ...args);
-}
-
-function JSXText(...args) {
- return (0, _builder.default)("JSXText", ...args);
-}
-
-function JSXFragment(...args) {
- return (0, _builder.default)("JSXFragment", ...args);
-}
-
-function JSXOpeningFragment(...args) {
- return (0, _builder.default)("JSXOpeningFragment", ...args);
-}
-
-function JSXClosingFragment(...args) {
- return (0, _builder.default)("JSXClosingFragment", ...args);
-}
-
-function Noop(...args) {
- return (0, _builder.default)("Noop", ...args);
-}
-
-function Placeholder(...args) {
- return (0, _builder.default)("Placeholder", ...args);
-}
-
-function V8IntrinsicIdentifier(...args) {
- return (0, _builder.default)("V8IntrinsicIdentifier", ...args);
-}
-
-function ArgumentPlaceholder(...args) {
- return (0, _builder.default)("ArgumentPlaceholder", ...args);
-}
-
-function AwaitExpression(...args) {
- return (0, _builder.default)("AwaitExpression", ...args);
-}
-
-function BindExpression(...args) {
- return (0, _builder.default)("BindExpression", ...args);
-}
-
-function ClassProperty(...args) {
- return (0, _builder.default)("ClassProperty", ...args);
-}
-
-function OptionalMemberExpression(...args) {
- return (0, _builder.default)("OptionalMemberExpression", ...args);
-}
-
-function PipelineTopicExpression(...args) {
- return (0, _builder.default)("PipelineTopicExpression", ...args);
-}
-
-function PipelineBareFunction(...args) {
- return (0, _builder.default)("PipelineBareFunction", ...args);
-}
-
-function PipelinePrimaryTopicReference(...args) {
- return (0, _builder.default)("PipelinePrimaryTopicReference", ...args);
-}
-
-function OptionalCallExpression(...args) {
- return (0, _builder.default)("OptionalCallExpression", ...args);
-}
-
-function ClassPrivateProperty(...args) {
- return (0, _builder.default)("ClassPrivateProperty", ...args);
-}
-
-function ClassPrivateMethod(...args) {
- return (0, _builder.default)("ClassPrivateMethod", ...args);
-}
-
-function Import(...args) {
- return (0, _builder.default)("Import", ...args);
-}
-
-function Decorator(...args) {
- return (0, _builder.default)("Decorator", ...args);
-}
-
-function DoExpression(...args) {
- return (0, _builder.default)("DoExpression", ...args);
-}
-
-function ExportDefaultSpecifier(...args) {
- return (0, _builder.default)("ExportDefaultSpecifier", ...args);
-}
-
-function ExportNamespaceSpecifier(...args) {
- return (0, _builder.default)("ExportNamespaceSpecifier", ...args);
-}
-
-function PrivateName(...args) {
- return (0, _builder.default)("PrivateName", ...args);
-}
-
-function BigIntLiteral(...args) {
- return (0, _builder.default)("BigIntLiteral", ...args);
-}
-
-function TSParameterProperty(...args) {
- return (0, _builder.default)("TSParameterProperty", ...args);
-}
-
-function TSDeclareFunction(...args) {
- return (0, _builder.default)("TSDeclareFunction", ...args);
-}
-
-function TSDeclareMethod(...args) {
- return (0, _builder.default)("TSDeclareMethod", ...args);
-}
-
-function TSQualifiedName(...args) {
- return (0, _builder.default)("TSQualifiedName", ...args);
-}
-
-function TSCallSignatureDeclaration(...args) {
- return (0, _builder.default)("TSCallSignatureDeclaration", ...args);
-}
-
-function TSConstructSignatureDeclaration(...args) {
- return (0, _builder.default)("TSConstructSignatureDeclaration", ...args);
-}
-
-function TSPropertySignature(...args) {
- return (0, _builder.default)("TSPropertySignature", ...args);
-}
-
-function TSMethodSignature(...args) {
- return (0, _builder.default)("TSMethodSignature", ...args);
-}
-
-function TSIndexSignature(...args) {
- return (0, _builder.default)("TSIndexSignature", ...args);
-}
-
-function TSAnyKeyword(...args) {
- return (0, _builder.default)("TSAnyKeyword", ...args);
-}
-
-function TSBooleanKeyword(...args) {
- return (0, _builder.default)("TSBooleanKeyword", ...args);
-}
-
-function TSBigIntKeyword(...args) {
- return (0, _builder.default)("TSBigIntKeyword", ...args);
-}
-
-function TSNeverKeyword(...args) {
- return (0, _builder.default)("TSNeverKeyword", ...args);
-}
-
-function TSNullKeyword(...args) {
- return (0, _builder.default)("TSNullKeyword", ...args);
-}
-
-function TSNumberKeyword(...args) {
- return (0, _builder.default)("TSNumberKeyword", ...args);
-}
-
-function TSObjectKeyword(...args) {
- return (0, _builder.default)("TSObjectKeyword", ...args);
-}
-
-function TSStringKeyword(...args) {
- return (0, _builder.default)("TSStringKeyword", ...args);
-}
-
-function TSSymbolKeyword(...args) {
- return (0, _builder.default)("TSSymbolKeyword", ...args);
-}
-
-function TSUndefinedKeyword(...args) {
- return (0, _builder.default)("TSUndefinedKeyword", ...args);
-}
-
-function TSUnknownKeyword(...args) {
- return (0, _builder.default)("TSUnknownKeyword", ...args);
-}
-
-function TSVoidKeyword(...args) {
- return (0, _builder.default)("TSVoidKeyword", ...args);
-}
-
-function TSThisType(...args) {
- return (0, _builder.default)("TSThisType", ...args);
-}
-
-function TSFunctionType(...args) {
- return (0, _builder.default)("TSFunctionType", ...args);
-}
-
-function TSConstructorType(...args) {
- return (0, _builder.default)("TSConstructorType", ...args);
-}
-
-function TSTypeReference(...args) {
- return (0, _builder.default)("TSTypeReference", ...args);
-}
-
-function TSTypePredicate(...args) {
- return (0, _builder.default)("TSTypePredicate", ...args);
-}
-
-function TSTypeQuery(...args) {
- return (0, _builder.default)("TSTypeQuery", ...args);
-}
-
-function TSTypeLiteral(...args) {
- return (0, _builder.default)("TSTypeLiteral", ...args);
-}
-
-function TSArrayType(...args) {
- return (0, _builder.default)("TSArrayType", ...args);
-}
-
-function TSTupleType(...args) {
- return (0, _builder.default)("TSTupleType", ...args);
-}
-
-function TSOptionalType(...args) {
- return (0, _builder.default)("TSOptionalType", ...args);
-}
-
-function TSRestType(...args) {
- return (0, _builder.default)("TSRestType", ...args);
-}
-
-function TSUnionType(...args) {
- return (0, _builder.default)("TSUnionType", ...args);
-}
-
-function TSIntersectionType(...args) {
- return (0, _builder.default)("TSIntersectionType", ...args);
-}
-
-function TSConditionalType(...args) {
- return (0, _builder.default)("TSConditionalType", ...args);
-}
-
-function TSInferType(...args) {
- return (0, _builder.default)("TSInferType", ...args);
-}
-
-function TSParenthesizedType(...args) {
- return (0, _builder.default)("TSParenthesizedType", ...args);
-}
-
-function TSTypeOperator(...args) {
- return (0, _builder.default)("TSTypeOperator", ...args);
-}
-
-function TSIndexedAccessType(...args) {
- return (0, _builder.default)("TSIndexedAccessType", ...args);
-}
-
-function TSMappedType(...args) {
- return (0, _builder.default)("TSMappedType", ...args);
-}
-
-function TSLiteralType(...args) {
- return (0, _builder.default)("TSLiteralType", ...args);
-}
-
-function TSExpressionWithTypeArguments(...args) {
- return (0, _builder.default)("TSExpressionWithTypeArguments", ...args);
-}
-
-function TSInterfaceDeclaration(...args) {
- return (0, _builder.default)("TSInterfaceDeclaration", ...args);
-}
-
-function TSInterfaceBody(...args) {
- return (0, _builder.default)("TSInterfaceBody", ...args);
-}
-
-function TSTypeAliasDeclaration(...args) {
- return (0, _builder.default)("TSTypeAliasDeclaration", ...args);
-}
-
-function TSAsExpression(...args) {
- return (0, _builder.default)("TSAsExpression", ...args);
-}
-
-function TSTypeAssertion(...args) {
- return (0, _builder.default)("TSTypeAssertion", ...args);
-}
-
-function TSEnumDeclaration(...args) {
- return (0, _builder.default)("TSEnumDeclaration", ...args);
-}
-
-function TSEnumMember(...args) {
- return (0, _builder.default)("TSEnumMember", ...args);
-}
-
-function TSModuleDeclaration(...args) {
- return (0, _builder.default)("TSModuleDeclaration", ...args);
-}
-
-function TSModuleBlock(...args) {
- return (0, _builder.default)("TSModuleBlock", ...args);
-}
-
-function TSImportType(...args) {
- return (0, _builder.default)("TSImportType", ...args);
-}
-
-function TSImportEqualsDeclaration(...args) {
- return (0, _builder.default)("TSImportEqualsDeclaration", ...args);
-}
-
-function TSExternalModuleReference(...args) {
- return (0, _builder.default)("TSExternalModuleReference", ...args);
-}
-
-function TSNonNullExpression(...args) {
- return (0, _builder.default)("TSNonNullExpression", ...args);
-}
-
-function TSExportAssignment(...args) {
- return (0, _builder.default)("TSExportAssignment", ...args);
-}
-
-function TSNamespaceExportDeclaration(...args) {
- return (0, _builder.default)("TSNamespaceExportDeclaration", ...args);
-}
-
-function TSTypeAnnotation(...args) {
- return (0, _builder.default)("TSTypeAnnotation", ...args);
-}
-
-function TSTypeParameterInstantiation(...args) {
- return (0, _builder.default)("TSTypeParameterInstantiation", ...args);
-}
-
-function TSTypeParameterDeclaration(...args) {
- return (0, _builder.default)("TSTypeParameterDeclaration", ...args);
-}
-
-function TSTypeParameter(...args) {
- return (0, _builder.default)("TSTypeParameter", ...args);
-}
-
-function NumberLiteral(...args) {
- console.trace("The node type NumberLiteral has been renamed to NumericLiteral");
- return NumberLiteral("NumberLiteral", ...args);
-}
-
-function RegexLiteral(...args) {
- console.trace("The node type RegexLiteral has been renamed to RegExpLiteral");
- return RegexLiteral("RegexLiteral", ...args);
-}
-
-function RestProperty(...args) {
- console.trace("The node type RestProperty has been renamed to RestElement");
- return RestProperty("RestProperty", ...args);
-}
-
-function SpreadProperty(...args) {
- console.trace("The node type SpreadProperty has been renamed to SpreadElement");
- return SpreadProperty("SpreadProperty", ...args);
-}
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/builders/react/buildChildren.js b/node_modules/@babel/preset-env/node_modules/@babel/types/lib/builders/react/buildChildren.js
deleted file mode 100644
index 91e7cbd9..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/builders/react/buildChildren.js
+++ /dev/null
@@ -1,31 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = buildChildren;
-
-var _generated = require("../../validators/generated");
-
-var _cleanJSXElementLiteralChild = _interopRequireDefault(require("../../utils/react/cleanJSXElementLiteralChild"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function buildChildren(node) {
- const elements = [];
-
- for (let i = 0; i < node.children.length; i++) {
- let child = node.children[i];
-
- if ((0, _generated.isJSXText)(child)) {
- (0, _cleanJSXElementLiteralChild.default)(child, elements);
- continue;
- }
-
- if ((0, _generated.isJSXExpressionContainer)(child)) child = child.expression;
- if ((0, _generated.isJSXEmptyExpression)(child)) continue;
- elements.push(child);
- }
-
- return elements;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/clone/clone.js b/node_modules/@babel/preset-env/node_modules/@babel/types/lib/clone/clone.js
deleted file mode 100644
index 9595f6e2..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/clone/clone.js
+++ /dev/null
@@ -1,14 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = clone;
-
-var _cloneNode = _interopRequireDefault(require("./cloneNode"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function clone(node) {
- return (0, _cloneNode.default)(node, false);
-}
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/clone/cloneDeep.js b/node_modules/@babel/preset-env/node_modules/@babel/types/lib/clone/cloneDeep.js
deleted file mode 100644
index eb29c536..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/clone/cloneDeep.js
+++ /dev/null
@@ -1,14 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = cloneDeep;
-
-var _cloneNode = _interopRequireDefault(require("./cloneNode"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function cloneDeep(node) {
- return (0, _cloneNode.default)(node);
-}
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/clone/cloneNode.js b/node_modules/@babel/preset-env/node_modules/@babel/types/lib/clone/cloneNode.js
deleted file mode 100644
index ce9cb8c1..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/clone/cloneNode.js
+++ /dev/null
@@ -1,78 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = cloneNode;
-
-var _definitions = require("../definitions");
-
-const has = Function.call.bind(Object.prototype.hasOwnProperty);
-
-function cloneIfNode(obj, deep) {
- if (obj && typeof obj.type === "string" && obj.type !== "CommentLine" && obj.type !== "CommentBlock") {
- return cloneNode(obj, deep);
- }
-
- return obj;
-}
-
-function cloneIfNodeOrArray(obj, deep) {
- if (Array.isArray(obj)) {
- return obj.map(node => cloneIfNode(node, deep));
- }
-
- return cloneIfNode(obj, deep);
-}
-
-function cloneNode(node, deep = true) {
- if (!node) return node;
- const {
- type
- } = node;
- const newNode = {
- type
- };
-
- if (type === "Identifier") {
- newNode.name = node.name;
-
- if (has(node, "optional") && typeof node.optional === "boolean") {
- newNode.optional = node.optional;
- }
-
- if (has(node, "typeAnnotation")) {
- newNode.typeAnnotation = deep ? cloneIfNodeOrArray(node.typeAnnotation, true) : node.typeAnnotation;
- }
- } else if (!has(_definitions.NODE_FIELDS, type)) {
- throw new Error(`Unknown node type: "${type}"`);
- } else {
- for (const field of Object.keys(_definitions.NODE_FIELDS[type])) {
- if (has(node, field)) {
- newNode[field] = deep ? cloneIfNodeOrArray(node[field], true) : node[field];
- }
- }
- }
-
- if (has(node, "loc")) {
- newNode.loc = node.loc;
- }
-
- if (has(node, "leadingComments")) {
- newNode.leadingComments = node.leadingComments;
- }
-
- if (has(node, "innerComments")) {
- newNode.innerComments = node.innerComments;
- }
-
- if (has(node, "trailingComments")) {
- newNode.trailingComments = node.trailingComments;
- }
-
- if (has(node, "extra")) {
- newNode.extra = Object.assign({}, node.extra);
- }
-
- return newNode;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js b/node_modules/@babel/preset-env/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js
deleted file mode 100644
index 5622af7b..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js
+++ /dev/null
@@ -1,16 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = cloneWithoutLoc;
-
-var _clone = _interopRequireDefault(require("./clone"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function cloneWithoutLoc(node) {
- const newNode = (0, _clone.default)(node);
- newNode.loc = null;
- return newNode;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/comments/addComment.js b/node_modules/@babel/preset-env/node_modules/@babel/types/lib/comments/addComment.js
deleted file mode 100644
index ff586514..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/comments/addComment.js
+++ /dev/null
@@ -1,17 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = addComment;
-
-var _addComments = _interopRequireDefault(require("./addComments"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function addComment(node, type, content, line) {
- return (0, _addComments.default)(node, type, [{
- type: line ? "CommentLine" : "CommentBlock",
- value: content
- }]);
-}
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/comments/addComments.js b/node_modules/@babel/preset-env/node_modules/@babel/types/lib/comments/addComments.js
deleted file mode 100644
index f3a61df7..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/comments/addComments.js
+++ /dev/null
@@ -1,23 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = addComments;
-
-function addComments(node, type, comments) {
- if (!comments || !node) return node;
- const key = `${type}Comments`;
-
- if (node[key]) {
- if (type === "leading") {
- node[key] = comments.concat(node[key]);
- } else {
- node[key] = node[key].concat(comments);
- }
- } else {
- node[key] = comments;
- }
-
- return node;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/comments/inheritInnerComments.js b/node_modules/@babel/preset-env/node_modules/@babel/types/lib/comments/inheritInnerComments.js
deleted file mode 100644
index fbe59dec..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/comments/inheritInnerComments.js
+++ /dev/null
@@ -1,14 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = inheritInnerComments;
-
-var _inherit = _interopRequireDefault(require("../utils/inherit"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function inheritInnerComments(child, parent) {
- (0, _inherit.default)("innerComments", child, parent);
-}
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/comments/inheritLeadingComments.js b/node_modules/@babel/preset-env/node_modules/@babel/types/lib/comments/inheritLeadingComments.js
deleted file mode 100644
index ccb02ec5..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/comments/inheritLeadingComments.js
+++ /dev/null
@@ -1,14 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = inheritLeadingComments;
-
-var _inherit = _interopRequireDefault(require("../utils/inherit"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function inheritLeadingComments(child, parent) {
- (0, _inherit.default)("leadingComments", child, parent);
-}
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/comments/inheritTrailingComments.js b/node_modules/@babel/preset-env/node_modules/@babel/types/lib/comments/inheritTrailingComments.js
deleted file mode 100644
index bce1e2d9..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/comments/inheritTrailingComments.js
+++ /dev/null
@@ -1,14 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = inheritTrailingComments;
-
-var _inherit = _interopRequireDefault(require("../utils/inherit"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function inheritTrailingComments(child, parent) {
- (0, _inherit.default)("trailingComments", child, parent);
-}
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/comments/inheritsComments.js b/node_modules/@babel/preset-env/node_modules/@babel/types/lib/comments/inheritsComments.js
deleted file mode 100644
index fd942d86..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/comments/inheritsComments.js
+++ /dev/null
@@ -1,21 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = inheritsComments;
-
-var _inheritTrailingComments = _interopRequireDefault(require("./inheritTrailingComments"));
-
-var _inheritLeadingComments = _interopRequireDefault(require("./inheritLeadingComments"));
-
-var _inheritInnerComments = _interopRequireDefault(require("./inheritInnerComments"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function inheritsComments(child, parent) {
- (0, _inheritTrailingComments.default)(child, parent);
- (0, _inheritLeadingComments.default)(child, parent);
- (0, _inheritInnerComments.default)(child, parent);
- return child;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/comments/removeComments.js b/node_modules/@babel/preset-env/node_modules/@babel/types/lib/comments/removeComments.js
deleted file mode 100644
index fe34f1a8..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/comments/removeComments.js
+++ /dev/null
@@ -1,16 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = removeComments;
-
-var _constants = require("../constants");
-
-function removeComments(node) {
- _constants.COMMENT_KEYS.forEach(key => {
- node[key] = null;
- });
-
- return node;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/constants/generated/index.js b/node_modules/@babel/preset-env/node_modules/@babel/types/lib/constants/generated/index.js
deleted file mode 100644
index 6072495e..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/constants/generated/index.js
+++ /dev/null
@@ -1,93 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.TSTYPE_TYPES = exports.TSTYPEELEMENT_TYPES = exports.PRIVATE_TYPES = exports.JSX_TYPES = exports.FLOWPREDICATE_TYPES = exports.FLOWDECLARATION_TYPES = exports.FLOWBASEANNOTATION_TYPES = exports.FLOWTYPE_TYPES = exports.FLOW_TYPES = exports.MODULESPECIFIER_TYPES = exports.EXPORTDECLARATION_TYPES = exports.MODULEDECLARATION_TYPES = exports.CLASS_TYPES = exports.PATTERN_TYPES = exports.UNARYLIKE_TYPES = exports.PROPERTY_TYPES = exports.OBJECTMEMBER_TYPES = exports.METHOD_TYPES = exports.USERWHITESPACABLE_TYPES = exports.IMMUTABLE_TYPES = exports.LITERAL_TYPES = exports.TSENTITYNAME_TYPES = exports.LVAL_TYPES = exports.PATTERNLIKE_TYPES = exports.DECLARATION_TYPES = exports.PUREISH_TYPES = exports.FUNCTIONPARENT_TYPES = exports.FUNCTION_TYPES = exports.FORXSTATEMENT_TYPES = exports.FOR_TYPES = exports.EXPRESSIONWRAPPER_TYPES = exports.WHILE_TYPES = exports.LOOP_TYPES = exports.CONDITIONAL_TYPES = exports.COMPLETIONSTATEMENT_TYPES = exports.TERMINATORLESS_TYPES = exports.STATEMENT_TYPES = exports.BLOCK_TYPES = exports.BLOCKPARENT_TYPES = exports.SCOPABLE_TYPES = exports.BINARY_TYPES = exports.EXPRESSION_TYPES = void 0;
-
-var _definitions = require("../../definitions");
-
-const EXPRESSION_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Expression"];
-exports.EXPRESSION_TYPES = EXPRESSION_TYPES;
-const BINARY_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Binary"];
-exports.BINARY_TYPES = BINARY_TYPES;
-const SCOPABLE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Scopable"];
-exports.SCOPABLE_TYPES = SCOPABLE_TYPES;
-const BLOCKPARENT_TYPES = _definitions.FLIPPED_ALIAS_KEYS["BlockParent"];
-exports.BLOCKPARENT_TYPES = BLOCKPARENT_TYPES;
-const BLOCK_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Block"];
-exports.BLOCK_TYPES = BLOCK_TYPES;
-const STATEMENT_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Statement"];
-exports.STATEMENT_TYPES = STATEMENT_TYPES;
-const TERMINATORLESS_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Terminatorless"];
-exports.TERMINATORLESS_TYPES = TERMINATORLESS_TYPES;
-const COMPLETIONSTATEMENT_TYPES = _definitions.FLIPPED_ALIAS_KEYS["CompletionStatement"];
-exports.COMPLETIONSTATEMENT_TYPES = COMPLETIONSTATEMENT_TYPES;
-const CONDITIONAL_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Conditional"];
-exports.CONDITIONAL_TYPES = CONDITIONAL_TYPES;
-const LOOP_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Loop"];
-exports.LOOP_TYPES = LOOP_TYPES;
-const WHILE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["While"];
-exports.WHILE_TYPES = WHILE_TYPES;
-const EXPRESSIONWRAPPER_TYPES = _definitions.FLIPPED_ALIAS_KEYS["ExpressionWrapper"];
-exports.EXPRESSIONWRAPPER_TYPES = EXPRESSIONWRAPPER_TYPES;
-const FOR_TYPES = _definitions.FLIPPED_ALIAS_KEYS["For"];
-exports.FOR_TYPES = FOR_TYPES;
-const FORXSTATEMENT_TYPES = _definitions.FLIPPED_ALIAS_KEYS["ForXStatement"];
-exports.FORXSTATEMENT_TYPES = FORXSTATEMENT_TYPES;
-const FUNCTION_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Function"];
-exports.FUNCTION_TYPES = FUNCTION_TYPES;
-const FUNCTIONPARENT_TYPES = _definitions.FLIPPED_ALIAS_KEYS["FunctionParent"];
-exports.FUNCTIONPARENT_TYPES = FUNCTIONPARENT_TYPES;
-const PUREISH_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Pureish"];
-exports.PUREISH_TYPES = PUREISH_TYPES;
-const DECLARATION_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Declaration"];
-exports.DECLARATION_TYPES = DECLARATION_TYPES;
-const PATTERNLIKE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["PatternLike"];
-exports.PATTERNLIKE_TYPES = PATTERNLIKE_TYPES;
-const LVAL_TYPES = _definitions.FLIPPED_ALIAS_KEYS["LVal"];
-exports.LVAL_TYPES = LVAL_TYPES;
-const TSENTITYNAME_TYPES = _definitions.FLIPPED_ALIAS_KEYS["TSEntityName"];
-exports.TSENTITYNAME_TYPES = TSENTITYNAME_TYPES;
-const LITERAL_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Literal"];
-exports.LITERAL_TYPES = LITERAL_TYPES;
-const IMMUTABLE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Immutable"];
-exports.IMMUTABLE_TYPES = IMMUTABLE_TYPES;
-const USERWHITESPACABLE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["UserWhitespacable"];
-exports.USERWHITESPACABLE_TYPES = USERWHITESPACABLE_TYPES;
-const METHOD_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Method"];
-exports.METHOD_TYPES = METHOD_TYPES;
-const OBJECTMEMBER_TYPES = _definitions.FLIPPED_ALIAS_KEYS["ObjectMember"];
-exports.OBJECTMEMBER_TYPES = OBJECTMEMBER_TYPES;
-const PROPERTY_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Property"];
-exports.PROPERTY_TYPES = PROPERTY_TYPES;
-const UNARYLIKE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["UnaryLike"];
-exports.UNARYLIKE_TYPES = UNARYLIKE_TYPES;
-const PATTERN_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Pattern"];
-exports.PATTERN_TYPES = PATTERN_TYPES;
-const CLASS_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Class"];
-exports.CLASS_TYPES = CLASS_TYPES;
-const MODULEDECLARATION_TYPES = _definitions.FLIPPED_ALIAS_KEYS["ModuleDeclaration"];
-exports.MODULEDECLARATION_TYPES = MODULEDECLARATION_TYPES;
-const EXPORTDECLARATION_TYPES = _definitions.FLIPPED_ALIAS_KEYS["ExportDeclaration"];
-exports.EXPORTDECLARATION_TYPES = EXPORTDECLARATION_TYPES;
-const MODULESPECIFIER_TYPES = _definitions.FLIPPED_ALIAS_KEYS["ModuleSpecifier"];
-exports.MODULESPECIFIER_TYPES = MODULESPECIFIER_TYPES;
-const FLOW_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Flow"];
-exports.FLOW_TYPES = FLOW_TYPES;
-const FLOWTYPE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["FlowType"];
-exports.FLOWTYPE_TYPES = FLOWTYPE_TYPES;
-const FLOWBASEANNOTATION_TYPES = _definitions.FLIPPED_ALIAS_KEYS["FlowBaseAnnotation"];
-exports.FLOWBASEANNOTATION_TYPES = FLOWBASEANNOTATION_TYPES;
-const FLOWDECLARATION_TYPES = _definitions.FLIPPED_ALIAS_KEYS["FlowDeclaration"];
-exports.FLOWDECLARATION_TYPES = FLOWDECLARATION_TYPES;
-const FLOWPREDICATE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["FlowPredicate"];
-exports.FLOWPREDICATE_TYPES = FLOWPREDICATE_TYPES;
-const JSX_TYPES = _definitions.FLIPPED_ALIAS_KEYS["JSX"];
-exports.JSX_TYPES = JSX_TYPES;
-const PRIVATE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Private"];
-exports.PRIVATE_TYPES = PRIVATE_TYPES;
-const TSTYPEELEMENT_TYPES = _definitions.FLIPPED_ALIAS_KEYS["TSTypeElement"];
-exports.TSTYPEELEMENT_TYPES = TSTYPEELEMENT_TYPES;
-const TSTYPE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["TSType"];
-exports.TSTYPE_TYPES = TSTYPE_TYPES;
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/constants/index.js b/node_modules/@babel/preset-env/node_modules/@babel/types/lib/constants/index.js
deleted file mode 100644
index a60b106f..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/constants/index.js
+++ /dev/null
@@ -1,47 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.NOT_LOCAL_BINDING = exports.BLOCK_SCOPED_SYMBOL = exports.INHERIT_KEYS = exports.UNARY_OPERATORS = exports.STRING_UNARY_OPERATORS = exports.NUMBER_UNARY_OPERATORS = exports.BOOLEAN_UNARY_OPERATORS = exports.BINARY_OPERATORS = exports.NUMBER_BINARY_OPERATORS = exports.BOOLEAN_BINARY_OPERATORS = exports.COMPARISON_BINARY_OPERATORS = exports.EQUALITY_BINARY_OPERATORS = exports.BOOLEAN_NUMBER_BINARY_OPERATORS = exports.UPDATE_OPERATORS = exports.LOGICAL_OPERATORS = exports.COMMENT_KEYS = exports.FOR_INIT_KEYS = exports.FLATTENABLE_KEYS = exports.STATEMENT_OR_BLOCK_KEYS = void 0;
-const STATEMENT_OR_BLOCK_KEYS = ["consequent", "body", "alternate"];
-exports.STATEMENT_OR_BLOCK_KEYS = STATEMENT_OR_BLOCK_KEYS;
-const FLATTENABLE_KEYS = ["body", "expressions"];
-exports.FLATTENABLE_KEYS = FLATTENABLE_KEYS;
-const FOR_INIT_KEYS = ["left", "init"];
-exports.FOR_INIT_KEYS = FOR_INIT_KEYS;
-const COMMENT_KEYS = ["leadingComments", "trailingComments", "innerComments"];
-exports.COMMENT_KEYS = COMMENT_KEYS;
-const LOGICAL_OPERATORS = ["||", "&&", "??"];
-exports.LOGICAL_OPERATORS = LOGICAL_OPERATORS;
-const UPDATE_OPERATORS = ["++", "--"];
-exports.UPDATE_OPERATORS = UPDATE_OPERATORS;
-const BOOLEAN_NUMBER_BINARY_OPERATORS = [">", "<", ">=", "<="];
-exports.BOOLEAN_NUMBER_BINARY_OPERATORS = BOOLEAN_NUMBER_BINARY_OPERATORS;
-const EQUALITY_BINARY_OPERATORS = ["==", "===", "!=", "!=="];
-exports.EQUALITY_BINARY_OPERATORS = EQUALITY_BINARY_OPERATORS;
-const COMPARISON_BINARY_OPERATORS = [...EQUALITY_BINARY_OPERATORS, "in", "instanceof"];
-exports.COMPARISON_BINARY_OPERATORS = COMPARISON_BINARY_OPERATORS;
-const BOOLEAN_BINARY_OPERATORS = [...COMPARISON_BINARY_OPERATORS, ...BOOLEAN_NUMBER_BINARY_OPERATORS];
-exports.BOOLEAN_BINARY_OPERATORS = BOOLEAN_BINARY_OPERATORS;
-const NUMBER_BINARY_OPERATORS = ["-", "/", "%", "*", "**", "&", "|", ">>", ">>>", "<<", "^"];
-exports.NUMBER_BINARY_OPERATORS = NUMBER_BINARY_OPERATORS;
-const BINARY_OPERATORS = ["+", ...NUMBER_BINARY_OPERATORS, ...BOOLEAN_BINARY_OPERATORS];
-exports.BINARY_OPERATORS = BINARY_OPERATORS;
-const BOOLEAN_UNARY_OPERATORS = ["delete", "!"];
-exports.BOOLEAN_UNARY_OPERATORS = BOOLEAN_UNARY_OPERATORS;
-const NUMBER_UNARY_OPERATORS = ["+", "-", "~"];
-exports.NUMBER_UNARY_OPERATORS = NUMBER_UNARY_OPERATORS;
-const STRING_UNARY_OPERATORS = ["typeof"];
-exports.STRING_UNARY_OPERATORS = STRING_UNARY_OPERATORS;
-const UNARY_OPERATORS = ["void", "throw", ...BOOLEAN_UNARY_OPERATORS, ...NUMBER_UNARY_OPERATORS, ...STRING_UNARY_OPERATORS];
-exports.UNARY_OPERATORS = UNARY_OPERATORS;
-const INHERIT_KEYS = {
- optional: ["typeAnnotation", "typeParameters", "returnType"],
- force: ["start", "loc", "end"]
-};
-exports.INHERIT_KEYS = INHERIT_KEYS;
-const BLOCK_SCOPED_SYMBOL = Symbol.for("var used to be block scoped");
-exports.BLOCK_SCOPED_SYMBOL = BLOCK_SCOPED_SYMBOL;
-const NOT_LOCAL_BINDING = Symbol.for("should not be considered a local binding");
-exports.NOT_LOCAL_BINDING = NOT_LOCAL_BINDING;
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/converters/ensureBlock.js b/node_modules/@babel/preset-env/node_modules/@babel/types/lib/converters/ensureBlock.js
deleted file mode 100644
index 2836b365..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/converters/ensureBlock.js
+++ /dev/null
@@ -1,14 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = ensureBlock;
-
-var _toBlock = _interopRequireDefault(require("./toBlock"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function ensureBlock(node, key = "body") {
- return node[key] = (0, _toBlock.default)(node[key], node);
-}
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js b/node_modules/@babel/preset-env/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js
deleted file mode 100644
index fadd0f04..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js
+++ /dev/null
@@ -1,73 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = gatherSequenceExpressions;
-
-var _getBindingIdentifiers = _interopRequireDefault(require("../retrievers/getBindingIdentifiers"));
-
-var _generated = require("../validators/generated");
-
-var _generated2 = require("../builders/generated");
-
-var _cloneNode = _interopRequireDefault(require("../clone/cloneNode"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function gatherSequenceExpressions(nodes, scope, declars) {
- const exprs = [];
- let ensureLastUndefined = true;
-
- for (const node of nodes) {
- ensureLastUndefined = false;
-
- if ((0, _generated.isExpression)(node)) {
- exprs.push(node);
- } else if ((0, _generated.isExpressionStatement)(node)) {
- exprs.push(node.expression);
- } else if ((0, _generated.isVariableDeclaration)(node)) {
- if (node.kind !== "var") return;
-
- for (const declar of node.declarations) {
- const bindings = (0, _getBindingIdentifiers.default)(declar);
-
- for (const key of Object.keys(bindings)) {
- declars.push({
- kind: node.kind,
- id: (0, _cloneNode.default)(bindings[key])
- });
- }
-
- if (declar.init) {
- exprs.push((0, _generated2.assignmentExpression)("=", declar.id, declar.init));
- }
- }
-
- ensureLastUndefined = true;
- } else if ((0, _generated.isIfStatement)(node)) {
- const consequent = node.consequent ? gatherSequenceExpressions([node.consequent], scope, declars) : scope.buildUndefinedNode();
- const alternate = node.alternate ? gatherSequenceExpressions([node.alternate], scope, declars) : scope.buildUndefinedNode();
- if (!consequent || !alternate) return;
- exprs.push((0, _generated2.conditionalExpression)(node.test, consequent, alternate));
- } else if ((0, _generated.isBlockStatement)(node)) {
- const body = gatherSequenceExpressions(node.body, scope, declars);
- if (!body) return;
- exprs.push(body);
- } else if ((0, _generated.isEmptyStatement)(node)) {
- ensureLastUndefined = true;
- } else {
- return;
- }
- }
-
- if (ensureLastUndefined) {
- exprs.push(scope.buildUndefinedNode());
- }
-
- if (exprs.length === 1) {
- return exprs[0];
- } else {
- return (0, _generated2.sequenceExpression)(exprs);
- }
-}
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js b/node_modules/@babel/preset-env/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js
deleted file mode 100644
index b9d165b6..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js
+++ /dev/null
@@ -1,16 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = toBindingIdentifierName;
-
-var _toIdentifier = _interopRequireDefault(require("./toIdentifier"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function toBindingIdentifierName(name) {
- name = (0, _toIdentifier.default)(name);
- if (name === "eval" || name === "arguments") name = "_" + name;
- return name;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/converters/toBlock.js b/node_modules/@babel/preset-env/node_modules/@babel/types/lib/converters/toBlock.js
deleted file mode 100644
index 19886833..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/converters/toBlock.js
+++ /dev/null
@@ -1,34 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = toBlock;
-
-var _generated = require("../validators/generated");
-
-var _generated2 = require("../builders/generated");
-
-function toBlock(node, parent) {
- if ((0, _generated.isBlockStatement)(node)) {
- return node;
- }
-
- let blockNodes = [];
-
- if ((0, _generated.isEmptyStatement)(node)) {
- blockNodes = [];
- } else {
- if (!(0, _generated.isStatement)(node)) {
- if ((0, _generated.isFunction)(parent)) {
- node = (0, _generated2.returnStatement)(node);
- } else {
- node = (0, _generated2.expressionStatement)(node);
- }
- }
-
- blockNodes = [node];
- }
-
- return (0, _generated2.blockStatement)(blockNodes);
-}
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/converters/toComputedKey.js b/node_modules/@babel/preset-env/node_modules/@babel/types/lib/converters/toComputedKey.js
deleted file mode 100644
index 31e6770f..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/converters/toComputedKey.js
+++ /dev/null
@@ -1,15 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = toComputedKey;
-
-var _generated = require("../validators/generated");
-
-var _generated2 = require("../builders/generated");
-
-function toComputedKey(node, key = node.key || node.property) {
- if (!node.computed && (0, _generated.isIdentifier)(key)) key = (0, _generated2.stringLiteral)(key.name);
- return key;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/converters/toExpression.js b/node_modules/@babel/preset-env/node_modules/@babel/types/lib/converters/toExpression.js
deleted file mode 100644
index 6e58b0de..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/converters/toExpression.js
+++ /dev/null
@@ -1,30 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = toExpression;
-
-var _generated = require("../validators/generated");
-
-function toExpression(node) {
- if ((0, _generated.isExpressionStatement)(node)) {
- node = node.expression;
- }
-
- if ((0, _generated.isExpression)(node)) {
- return node;
- }
-
- if ((0, _generated.isClass)(node)) {
- node.type = "ClassExpression";
- } else if ((0, _generated.isFunction)(node)) {
- node.type = "FunctionExpression";
- }
-
- if (!(0, _generated.isExpression)(node)) {
- throw new Error(`cannot turn ${node.type} to an expression`);
- }
-
- return node;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/converters/toIdentifier.js b/node_modules/@babel/preset-env/node_modules/@babel/types/lib/converters/toIdentifier.js
deleted file mode 100644
index e55db41f..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/converters/toIdentifier.js
+++ /dev/null
@@ -1,25 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = toIdentifier;
-
-var _isValidIdentifier = _interopRequireDefault(require("../validators/isValidIdentifier"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function toIdentifier(name) {
- name = name + "";
- name = name.replace(/[^a-zA-Z0-9$_]/g, "-");
- name = name.replace(/^[-0-9]+/, "");
- name = name.replace(/[-\s]+(.)?/g, function (match, c) {
- return c ? c.toUpperCase() : "";
- });
-
- if (!(0, _isValidIdentifier.default)(name)) {
- name = `_${name}`;
- }
-
- return name || "_";
-}
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/converters/toKeyAlias.js b/node_modules/@babel/preset-env/node_modules/@babel/types/lib/converters/toKeyAlias.js
deleted file mode 100644
index c48fd0e7..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/converters/toKeyAlias.js
+++ /dev/null
@@ -1,48 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = toKeyAlias;
-
-var _generated = require("../validators/generated");
-
-var _cloneNode = _interopRequireDefault(require("../clone/cloneNode"));
-
-var _removePropertiesDeep = _interopRequireDefault(require("../modifications/removePropertiesDeep"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function toKeyAlias(node, key = node.key) {
- let alias;
-
- if (node.kind === "method") {
- return toKeyAlias.increment() + "";
- } else if ((0, _generated.isIdentifier)(key)) {
- alias = key.name;
- } else if ((0, _generated.isStringLiteral)(key)) {
- alias = JSON.stringify(key.value);
- } else {
- alias = JSON.stringify((0, _removePropertiesDeep.default)((0, _cloneNode.default)(key)));
- }
-
- if (node.computed) {
- alias = `[${alias}]`;
- }
-
- if (node.static) {
- alias = `static:${alias}`;
- }
-
- return alias;
-}
-
-toKeyAlias.uid = 0;
-
-toKeyAlias.increment = function () {
- if (toKeyAlias.uid >= Number.MAX_SAFE_INTEGER) {
- return toKeyAlias.uid = 0;
- } else {
- return toKeyAlias.uid++;
- }
-};
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/converters/toSequenceExpression.js b/node_modules/@babel/preset-env/node_modules/@babel/types/lib/converters/toSequenceExpression.js
deleted file mode 100644
index 2e221db4..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/converters/toSequenceExpression.js
+++ /dev/null
@@ -1,23 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = toSequenceExpression;
-
-var _gatherSequenceExpressions = _interopRequireDefault(require("./gatherSequenceExpressions"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function toSequenceExpression(nodes, scope) {
- if (!nodes || !nodes.length) return;
- const declars = [];
- const result = (0, _gatherSequenceExpressions.default)(nodes, scope, declars);
- if (!result) return;
-
- for (const declar of declars) {
- scope.push(declar);
- }
-
- return result;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/converters/toStatement.js b/node_modules/@babel/preset-env/node_modules/@babel/types/lib/converters/toStatement.js
deleted file mode 100644
index 69b22ae0..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/converters/toStatement.js
+++ /dev/null
@@ -1,44 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = toStatement;
-
-var _generated = require("../validators/generated");
-
-var _generated2 = require("../builders/generated");
-
-function toStatement(node, ignore) {
- if ((0, _generated.isStatement)(node)) {
- return node;
- }
-
- let mustHaveId = false;
- let newType;
-
- if ((0, _generated.isClass)(node)) {
- mustHaveId = true;
- newType = "ClassDeclaration";
- } else if ((0, _generated.isFunction)(node)) {
- mustHaveId = true;
- newType = "FunctionDeclaration";
- } else if ((0, _generated.isAssignmentExpression)(node)) {
- return (0, _generated2.expressionStatement)(node);
- }
-
- if (mustHaveId && !node.id) {
- newType = false;
- }
-
- if (!newType) {
- if (ignore) {
- return false;
- } else {
- throw new Error(`cannot turn ${node.type} to a statement`);
- }
- }
-
- node.type = newType;
- return node;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/converters/valueToNode.js b/node_modules/@babel/preset-env/node_modules/@babel/types/lib/converters/valueToNode.js
deleted file mode 100644
index 9e19dbfa..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/converters/valueToNode.js
+++ /dev/null
@@ -1,104 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = valueToNode;
-
-function _isPlainObject() {
- const data = _interopRequireDefault(require("lodash/isPlainObject"));
-
- _isPlainObject = function () {
- return data;
- };
-
- return data;
-}
-
-function _isRegExp() {
- const data = _interopRequireDefault(require("lodash/isRegExp"));
-
- _isRegExp = function () {
- return data;
- };
-
- return data;
-}
-
-var _isValidIdentifier = _interopRequireDefault(require("../validators/isValidIdentifier"));
-
-var _generated = require("../builders/generated");
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function valueToNode(value) {
- if (value === undefined) {
- return (0, _generated.identifier)("undefined");
- }
-
- if (value === true || value === false) {
- return (0, _generated.booleanLiteral)(value);
- }
-
- if (value === null) {
- return (0, _generated.nullLiteral)();
- }
-
- if (typeof value === "string") {
- return (0, _generated.stringLiteral)(value);
- }
-
- if (typeof value === "number") {
- let result;
-
- if (Number.isFinite(value)) {
- result = (0, _generated.numericLiteral)(Math.abs(value));
- } else {
- let numerator;
-
- if (Number.isNaN(value)) {
- numerator = (0, _generated.numericLiteral)(0);
- } else {
- numerator = (0, _generated.numericLiteral)(1);
- }
-
- result = (0, _generated.binaryExpression)("/", numerator, (0, _generated.numericLiteral)(0));
- }
-
- if (value < 0 || Object.is(value, -0)) {
- result = (0, _generated.unaryExpression)("-", result);
- }
-
- return result;
- }
-
- if ((0, _isRegExp().default)(value)) {
- const pattern = value.source;
- const flags = value.toString().match(/\/([a-z]+|)$/)[1];
- return (0, _generated.regExpLiteral)(pattern, flags);
- }
-
- if (Array.isArray(value)) {
- return (0, _generated.arrayExpression)(value.map(valueToNode));
- }
-
- if ((0, _isPlainObject().default)(value)) {
- const props = [];
-
- for (const key of Object.keys(value)) {
- let nodeKey;
-
- if ((0, _isValidIdentifier.default)(key)) {
- nodeKey = (0, _generated.identifier)(key);
- } else {
- nodeKey = (0, _generated.stringLiteral)(key);
- }
-
- props.push((0, _generated.objectProperty)(nodeKey, valueToNode(value[key])));
- }
-
- return (0, _generated.objectExpression)(props);
- }
-
- throw new Error("don't know how to turn this value into a node");
-}
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/definitions/core.js b/node_modules/@babel/preset-env/node_modules/@babel/types/lib/definitions/core.js
deleted file mode 100644
index b5d537fa..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/definitions/core.js
+++ /dev/null
@@ -1,725 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.patternLikeCommon = exports.functionDeclarationCommon = exports.functionTypeAnnotationCommon = exports.functionCommon = void 0;
-
-var _isValidIdentifier = _interopRequireDefault(require("../validators/isValidIdentifier"));
-
-var _constants = require("../constants");
-
-var _utils = _interopRequireWildcard(require("./utils"));
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-(0, _utils.default)("ArrayExpression", {
- fields: {
- elements: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeOrValueType)("null", "Expression", "SpreadElement"))),
- default: []
- }
- },
- visitor: ["elements"],
- aliases: ["Expression"]
-});
-(0, _utils.default)("AssignmentExpression", {
- fields: {
- operator: {
- validate: (0, _utils.assertValueType)("string")
- },
- left: {
- validate: (0, _utils.assertNodeType)("LVal")
- },
- right: {
- validate: (0, _utils.assertNodeType)("Expression")
- }
- },
- builder: ["operator", "left", "right"],
- visitor: ["left", "right"],
- aliases: ["Expression"]
-});
-(0, _utils.default)("BinaryExpression", {
- builder: ["operator", "left", "right"],
- fields: {
- operator: {
- validate: (0, _utils.assertOneOf)(..._constants.BINARY_OPERATORS)
- },
- left: {
- validate: (0, _utils.assertNodeType)("Expression")
- },
- right: {
- validate: (0, _utils.assertNodeType)("Expression")
- }
- },
- visitor: ["left", "right"],
- aliases: ["Binary", "Expression"]
-});
-(0, _utils.default)("InterpreterDirective", {
- builder: ["value"],
- fields: {
- value: {
- validate: (0, _utils.assertValueType)("string")
- }
- }
-});
-(0, _utils.default)("Directive", {
- visitor: ["value"],
- fields: {
- value: {
- validate: (0, _utils.assertNodeType)("DirectiveLiteral")
- }
- }
-});
-(0, _utils.default)("DirectiveLiteral", {
- builder: ["value"],
- fields: {
- value: {
- validate: (0, _utils.assertValueType)("string")
- }
- }
-});
-(0, _utils.default)("BlockStatement", {
- builder: ["body", "directives"],
- visitor: ["directives", "body"],
- fields: {
- directives: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Directive"))),
- default: []
- },
- body: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Statement")))
- }
- },
- aliases: ["Scopable", "BlockParent", "Block", "Statement"]
-});
-(0, _utils.default)("BreakStatement", {
- visitor: ["label"],
- fields: {
- label: {
- validate: (0, _utils.assertNodeType)("Identifier"),
- optional: true
- }
- },
- aliases: ["Statement", "Terminatorless", "CompletionStatement"]
-});
-(0, _utils.default)("CallExpression", {
- visitor: ["callee", "arguments", "typeParameters", "typeArguments"],
- builder: ["callee", "arguments"],
- aliases: ["Expression"],
- fields: {
- callee: {
- validate: (0, _utils.assertNodeType)("Expression", "V8IntrinsicIdentifier")
- },
- arguments: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Expression", "SpreadElement", "JSXNamespacedName", "ArgumentPlaceholder")))
- },
- optional: {
- validate: (0, _utils.assertOneOf)(true, false),
- optional: true
- },
- typeArguments: {
- validate: (0, _utils.assertNodeType)("TypeParameterInstantiation"),
- optional: true
- },
- typeParameters: {
- validate: (0, _utils.assertNodeType)("TSTypeParameterInstantiation"),
- optional: true
- }
- }
-});
-(0, _utils.default)("CatchClause", {
- visitor: ["param", "body"],
- fields: {
- param: {
- validate: (0, _utils.assertNodeType)("Identifier"),
- optional: true
- },
- body: {
- validate: (0, _utils.assertNodeType)("BlockStatement")
- }
- },
- aliases: ["Scopable", "BlockParent"]
-});
-(0, _utils.default)("ConditionalExpression", {
- visitor: ["test", "consequent", "alternate"],
- fields: {
- test: {
- validate: (0, _utils.assertNodeType)("Expression")
- },
- consequent: {
- validate: (0, _utils.assertNodeType)("Expression")
- },
- alternate: {
- validate: (0, _utils.assertNodeType)("Expression")
- }
- },
- aliases: ["Expression", "Conditional"]
-});
-(0, _utils.default)("ContinueStatement", {
- visitor: ["label"],
- fields: {
- label: {
- validate: (0, _utils.assertNodeType)("Identifier"),
- optional: true
- }
- },
- aliases: ["Statement", "Terminatorless", "CompletionStatement"]
-});
-(0, _utils.default)("DebuggerStatement", {
- aliases: ["Statement"]
-});
-(0, _utils.default)("DoWhileStatement", {
- visitor: ["test", "body"],
- fields: {
- test: {
- validate: (0, _utils.assertNodeType)("Expression")
- },
- body: {
- validate: (0, _utils.assertNodeType)("Statement")
- }
- },
- aliases: ["Statement", "BlockParent", "Loop", "While", "Scopable"]
-});
-(0, _utils.default)("EmptyStatement", {
- aliases: ["Statement"]
-});
-(0, _utils.default)("ExpressionStatement", {
- visitor: ["expression"],
- fields: {
- expression: {
- validate: (0, _utils.assertNodeType)("Expression")
- }
- },
- aliases: ["Statement", "ExpressionWrapper"]
-});
-(0, _utils.default)("File", {
- builder: ["program", "comments", "tokens"],
- visitor: ["program"],
- fields: {
- program: {
- validate: (0, _utils.assertNodeType)("Program")
- }
- }
-});
-(0, _utils.default)("ForInStatement", {
- visitor: ["left", "right", "body"],
- aliases: ["Scopable", "Statement", "For", "BlockParent", "Loop", "ForXStatement"],
- fields: {
- left: {
- validate: (0, _utils.assertNodeType)("VariableDeclaration", "LVal")
- },
- right: {
- validate: (0, _utils.assertNodeType)("Expression")
- },
- body: {
- validate: (0, _utils.assertNodeType)("Statement")
- }
- }
-});
-(0, _utils.default)("ForStatement", {
- visitor: ["init", "test", "update", "body"],
- aliases: ["Scopable", "Statement", "For", "BlockParent", "Loop"],
- fields: {
- init: {
- validate: (0, _utils.assertNodeType)("VariableDeclaration", "Expression"),
- optional: true
- },
- test: {
- validate: (0, _utils.assertNodeType)("Expression"),
- optional: true
- },
- update: {
- validate: (0, _utils.assertNodeType)("Expression"),
- optional: true
- },
- body: {
- validate: (0, _utils.assertNodeType)("Statement")
- }
- }
-});
-const functionCommon = {
- params: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Identifier", "Pattern", "RestElement", "TSParameterProperty")))
- },
- generator: {
- default: false,
- validate: (0, _utils.assertValueType)("boolean")
- },
- async: {
- validate: (0, _utils.assertValueType)("boolean"),
- default: false
- }
-};
-exports.functionCommon = functionCommon;
-const functionTypeAnnotationCommon = {
- returnType: {
- validate: (0, _utils.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"),
- optional: true
- },
- typeParameters: {
- validate: (0, _utils.assertNodeType)("TypeParameterDeclaration", "TSTypeParameterDeclaration", "Noop"),
- optional: true
- }
-};
-exports.functionTypeAnnotationCommon = functionTypeAnnotationCommon;
-const functionDeclarationCommon = Object.assign({}, functionCommon, {
- declare: {
- validate: (0, _utils.assertValueType)("boolean"),
- optional: true
- },
- id: {
- validate: (0, _utils.assertNodeType)("Identifier"),
- optional: true
- }
-});
-exports.functionDeclarationCommon = functionDeclarationCommon;
-(0, _utils.default)("FunctionDeclaration", {
- builder: ["id", "params", "body", "generator", "async"],
- visitor: ["id", "params", "body", "returnType", "typeParameters"],
- fields: Object.assign({}, functionDeclarationCommon, {}, functionTypeAnnotationCommon, {
- body: {
- validate: (0, _utils.assertNodeType)("BlockStatement")
- }
- }),
- aliases: ["Scopable", "Function", "BlockParent", "FunctionParent", "Statement", "Pureish", "Declaration"]
-});
-(0, _utils.default)("FunctionExpression", {
- inherits: "FunctionDeclaration",
- aliases: ["Scopable", "Function", "BlockParent", "FunctionParent", "Expression", "Pureish"],
- fields: Object.assign({}, functionCommon, {}, functionTypeAnnotationCommon, {
- id: {
- validate: (0, _utils.assertNodeType)("Identifier"),
- optional: true
- },
- body: {
- validate: (0, _utils.assertNodeType)("BlockStatement")
- }
- })
-});
-const patternLikeCommon = {
- typeAnnotation: {
- validate: (0, _utils.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"),
- optional: true
- },
- decorators: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator")))
- }
-};
-exports.patternLikeCommon = patternLikeCommon;
-(0, _utils.default)("Identifier", {
- builder: ["name"],
- visitor: ["typeAnnotation", "decorators"],
- aliases: ["Expression", "PatternLike", "LVal", "TSEntityName"],
- fields: Object.assign({}, patternLikeCommon, {
- name: {
- validate: (0, _utils.chain)(function (node, key, val) {
- if (!(0, _isValidIdentifier.default)(val)) {}
- }, (0, _utils.assertValueType)("string"))
- },
- optional: {
- validate: (0, _utils.assertValueType)("boolean"),
- optional: true
- }
- })
-});
-(0, _utils.default)("IfStatement", {
- visitor: ["test", "consequent", "alternate"],
- aliases: ["Statement", "Conditional"],
- fields: {
- test: {
- validate: (0, _utils.assertNodeType)("Expression")
- },
- consequent: {
- validate: (0, _utils.assertNodeType)("Statement")
- },
- alternate: {
- optional: true,
- validate: (0, _utils.assertNodeType)("Statement")
- }
- }
-});
-(0, _utils.default)("LabeledStatement", {
- visitor: ["label", "body"],
- aliases: ["Statement"],
- fields: {
- label: {
- validate: (0, _utils.assertNodeType)("Identifier")
- },
- body: {
- validate: (0, _utils.assertNodeType)("Statement")
- }
- }
-});
-(0, _utils.default)("StringLiteral", {
- builder: ["value"],
- fields: {
- value: {
- validate: (0, _utils.assertValueType)("string")
- }
- },
- aliases: ["Expression", "Pureish", "Literal", "Immutable"]
-});
-(0, _utils.default)("NumericLiteral", {
- builder: ["value"],
- deprecatedAlias: "NumberLiteral",
- fields: {
- value: {
- validate: (0, _utils.assertValueType)("number")
- }
- },
- aliases: ["Expression", "Pureish", "Literal", "Immutable"]
-});
-(0, _utils.default)("NullLiteral", {
- aliases: ["Expression", "Pureish", "Literal", "Immutable"]
-});
-(0, _utils.default)("BooleanLiteral", {
- builder: ["value"],
- fields: {
- value: {
- validate: (0, _utils.assertValueType)("boolean")
- }
- },
- aliases: ["Expression", "Pureish", "Literal", "Immutable"]
-});
-(0, _utils.default)("RegExpLiteral", {
- builder: ["pattern", "flags"],
- deprecatedAlias: "RegexLiteral",
- aliases: ["Expression", "Literal"],
- fields: {
- pattern: {
- validate: (0, _utils.assertValueType)("string")
- },
- flags: {
- validate: (0, _utils.assertValueType)("string"),
- default: ""
- }
- }
-});
-(0, _utils.default)("LogicalExpression", {
- builder: ["operator", "left", "right"],
- visitor: ["left", "right"],
- aliases: ["Binary", "Expression"],
- fields: {
- operator: {
- validate: (0, _utils.assertOneOf)(..._constants.LOGICAL_OPERATORS)
- },
- left: {
- validate: (0, _utils.assertNodeType)("Expression")
- },
- right: {
- validate: (0, _utils.assertNodeType)("Expression")
- }
- }
-});
-(0, _utils.default)("MemberExpression", {
- builder: ["object", "property", "computed", "optional"],
- visitor: ["object", "property"],
- aliases: ["Expression", "LVal"],
- fields: {
- object: {
- validate: (0, _utils.assertNodeType)("Expression")
- },
- property: {
- validate: function () {
- const normal = (0, _utils.assertNodeType)("Identifier", "PrivateName");
- const computed = (0, _utils.assertNodeType)("Expression");
- return function (node, key, val) {
- const validator = node.computed ? computed : normal;
- validator(node, key, val);
- };
- }()
- },
- computed: {
- default: false
- },
- optional: {
- validate: (0, _utils.assertOneOf)(true, false),
- optional: true
- }
- }
-});
-(0, _utils.default)("NewExpression", {
- inherits: "CallExpression"
-});
-(0, _utils.default)("Program", {
- visitor: ["directives", "body"],
- builder: ["body", "directives", "sourceType", "interpreter"],
- fields: {
- sourceFile: {
- validate: (0, _utils.assertValueType)("string")
- },
- sourceType: {
- validate: (0, _utils.assertOneOf)("script", "module"),
- default: "script"
- },
- interpreter: {
- validate: (0, _utils.assertNodeType)("InterpreterDirective"),
- default: null,
- optional: true
- },
- directives: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Directive"))),
- default: []
- },
- body: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Statement")))
- }
- },
- aliases: ["Scopable", "BlockParent", "Block"]
-});
-(0, _utils.default)("ObjectExpression", {
- visitor: ["properties"],
- aliases: ["Expression"],
- fields: {
- properties: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("ObjectMethod", "ObjectProperty", "SpreadElement")))
- }
- }
-});
-(0, _utils.default)("ObjectMethod", {
- builder: ["kind", "key", "params", "body", "computed"],
- fields: Object.assign({}, functionCommon, {}, functionTypeAnnotationCommon, {
- kind: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("string"), (0, _utils.assertOneOf)("method", "get", "set")),
- default: "method"
- },
- computed: {
- validate: (0, _utils.assertValueType)("boolean"),
- default: false
- },
- key: {
- validate: function () {
- const normal = (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral");
- const computed = (0, _utils.assertNodeType)("Expression");
- return function (node, key, val) {
- const validator = node.computed ? computed : normal;
- validator(node, key, val);
- };
- }()
- },
- decorators: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator")))
- },
- body: {
- validate: (0, _utils.assertNodeType)("BlockStatement")
- }
- }),
- visitor: ["key", "params", "body", "decorators", "returnType", "typeParameters"],
- aliases: ["UserWhitespacable", "Function", "Scopable", "BlockParent", "FunctionParent", "Method", "ObjectMember"]
-});
-(0, _utils.default)("ObjectProperty", {
- builder: ["key", "value", "computed", "shorthand", "decorators"],
- fields: {
- computed: {
- validate: (0, _utils.assertValueType)("boolean"),
- default: false
- },
- key: {
- validate: function () {
- const normal = (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral");
- const computed = (0, _utils.assertNodeType)("Expression");
- return function (node, key, val) {
- const validator = node.computed ? computed : normal;
- validator(node, key, val);
- };
- }()
- },
- value: {
- validate: (0, _utils.assertNodeType)("Expression", "PatternLike")
- },
- shorthand: {
- validate: (0, _utils.assertValueType)("boolean"),
- default: false
- },
- decorators: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))),
- optional: true
- }
- },
- visitor: ["key", "value", "decorators"],
- aliases: ["UserWhitespacable", "Property", "ObjectMember"]
-});
-(0, _utils.default)("RestElement", {
- visitor: ["argument", "typeAnnotation"],
- builder: ["argument"],
- aliases: ["LVal", "PatternLike"],
- deprecatedAlias: "RestProperty",
- fields: Object.assign({}, patternLikeCommon, {
- argument: {
- validate: (0, _utils.assertNodeType)("LVal")
- }
- })
-});
-(0, _utils.default)("ReturnStatement", {
- visitor: ["argument"],
- aliases: ["Statement", "Terminatorless", "CompletionStatement"],
- fields: {
- argument: {
- validate: (0, _utils.assertNodeType)("Expression"),
- optional: true
- }
- }
-});
-(0, _utils.default)("SequenceExpression", {
- visitor: ["expressions"],
- fields: {
- expressions: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Expression")))
- }
- },
- aliases: ["Expression"]
-});
-(0, _utils.default)("ParenthesizedExpression", {
- visitor: ["expression"],
- aliases: ["Expression", "ExpressionWrapper"],
- fields: {
- expression: {
- validate: (0, _utils.assertNodeType)("Expression")
- }
- }
-});
-(0, _utils.default)("SwitchCase", {
- visitor: ["test", "consequent"],
- fields: {
- test: {
- validate: (0, _utils.assertNodeType)("Expression"),
- optional: true
- },
- consequent: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Statement")))
- }
- }
-});
-(0, _utils.default)("SwitchStatement", {
- visitor: ["discriminant", "cases"],
- aliases: ["Statement", "BlockParent", "Scopable"],
- fields: {
- discriminant: {
- validate: (0, _utils.assertNodeType)("Expression")
- },
- cases: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("SwitchCase")))
- }
- }
-});
-(0, _utils.default)("ThisExpression", {
- aliases: ["Expression"]
-});
-(0, _utils.default)("ThrowStatement", {
- visitor: ["argument"],
- aliases: ["Statement", "Terminatorless", "CompletionStatement"],
- fields: {
- argument: {
- validate: (0, _utils.assertNodeType)("Expression")
- }
- }
-});
-(0, _utils.default)("TryStatement", {
- visitor: ["block", "handler", "finalizer"],
- aliases: ["Statement"],
- fields: {
- block: {
- validate: (0, _utils.assertNodeType)("BlockStatement")
- },
- handler: {
- optional: true,
- validate: (0, _utils.assertNodeType)("CatchClause")
- },
- finalizer: {
- optional: true,
- validate: (0, _utils.assertNodeType)("BlockStatement")
- }
- }
-});
-(0, _utils.default)("UnaryExpression", {
- builder: ["operator", "argument", "prefix"],
- fields: {
- prefix: {
- default: true
- },
- argument: {
- validate: (0, _utils.assertNodeType)("Expression")
- },
- operator: {
- validate: (0, _utils.assertOneOf)(..._constants.UNARY_OPERATORS)
- }
- },
- visitor: ["argument"],
- aliases: ["UnaryLike", "Expression"]
-});
-(0, _utils.default)("UpdateExpression", {
- builder: ["operator", "argument", "prefix"],
- fields: {
- prefix: {
- default: false
- },
- argument: {
- validate: (0, _utils.assertNodeType)("Expression")
- },
- operator: {
- validate: (0, _utils.assertOneOf)(..._constants.UPDATE_OPERATORS)
- }
- },
- visitor: ["argument"],
- aliases: ["Expression"]
-});
-(0, _utils.default)("VariableDeclaration", {
- builder: ["kind", "declarations"],
- visitor: ["declarations"],
- aliases: ["Statement", "Declaration"],
- fields: {
- declare: {
- validate: (0, _utils.assertValueType)("boolean"),
- optional: true
- },
- kind: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("string"), (0, _utils.assertOneOf)("var", "let", "const"))
- },
- declarations: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("VariableDeclarator")))
- }
- }
-});
-(0, _utils.default)("VariableDeclarator", {
- visitor: ["id", "init"],
- fields: {
- id: {
- validate: (0, _utils.assertNodeType)("LVal")
- },
- definite: {
- optional: true,
- validate: (0, _utils.assertValueType)("boolean")
- },
- init: {
- optional: true,
- validate: (0, _utils.assertNodeType)("Expression")
- }
- }
-});
-(0, _utils.default)("WhileStatement", {
- visitor: ["test", "body"],
- aliases: ["Statement", "BlockParent", "Loop", "While", "Scopable"],
- fields: {
- test: {
- validate: (0, _utils.assertNodeType)("Expression")
- },
- body: {
- validate: (0, _utils.assertNodeType)("BlockStatement", "Statement")
- }
- }
-});
-(0, _utils.default)("WithStatement", {
- visitor: ["object", "body"],
- aliases: ["Statement"],
- fields: {
- object: {
- validate: (0, _utils.assertNodeType)("Expression")
- },
- body: {
- validate: (0, _utils.assertNodeType)("BlockStatement", "Statement")
- }
- }
-});
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/definitions/es2015.js b/node_modules/@babel/preset-env/node_modules/@babel/types/lib/definitions/es2015.js
deleted file mode 100644
index 5c9ebc00..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/definitions/es2015.js
+++ /dev/null
@@ -1,401 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.classMethodOrDeclareMethodCommon = exports.classMethodOrPropertyCommon = void 0;
-
-var _utils = _interopRequireWildcard(require("./utils"));
-
-var _core = require("./core");
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-(0, _utils.default)("AssignmentPattern", {
- visitor: ["left", "right", "decorators"],
- builder: ["left", "right"],
- aliases: ["Pattern", "PatternLike", "LVal"],
- fields: Object.assign({}, _core.patternLikeCommon, {
- left: {
- validate: (0, _utils.assertNodeType)("Identifier", "ObjectPattern", "ArrayPattern", "MemberExpression")
- },
- right: {
- validate: (0, _utils.assertNodeType)("Expression")
- },
- decorators: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator")))
- }
- })
-});
-(0, _utils.default)("ArrayPattern", {
- visitor: ["elements", "typeAnnotation"],
- builder: ["elements"],
- aliases: ["Pattern", "PatternLike", "LVal"],
- fields: Object.assign({}, _core.patternLikeCommon, {
- elements: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("PatternLike")))
- },
- decorators: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator")))
- }
- })
-});
-(0, _utils.default)("ArrowFunctionExpression", {
- builder: ["params", "body", "async"],
- visitor: ["params", "body", "returnType", "typeParameters"],
- aliases: ["Scopable", "Function", "BlockParent", "FunctionParent", "Expression", "Pureish"],
- fields: Object.assign({}, _core.functionCommon, {}, _core.functionTypeAnnotationCommon, {
- expression: {
- validate: (0, _utils.assertValueType)("boolean")
- },
- body: {
- validate: (0, _utils.assertNodeType)("BlockStatement", "Expression")
- }
- })
-});
-(0, _utils.default)("ClassBody", {
- visitor: ["body"],
- fields: {
- body: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("ClassMethod", "ClassPrivateMethod", "ClassProperty", "ClassPrivateProperty", "TSDeclareMethod", "TSIndexSignature")))
- }
- }
-});
-const classCommon = {
- typeParameters: {
- validate: (0, _utils.assertNodeType)("TypeParameterDeclaration", "TSTypeParameterDeclaration", "Noop"),
- optional: true
- },
- body: {
- validate: (0, _utils.assertNodeType)("ClassBody")
- },
- superClass: {
- optional: true,
- validate: (0, _utils.assertNodeType)("Expression")
- },
- superTypeParameters: {
- validate: (0, _utils.assertNodeType)("TypeParameterInstantiation", "TSTypeParameterInstantiation"),
- optional: true
- },
- implements: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("TSExpressionWithTypeArguments", "ClassImplements"))),
- optional: true
- }
-};
-(0, _utils.default)("ClassDeclaration", {
- builder: ["id", "superClass", "body", "decorators"],
- visitor: ["id", "body", "superClass", "mixins", "typeParameters", "superTypeParameters", "implements", "decorators"],
- aliases: ["Scopable", "Class", "Statement", "Declaration", "Pureish"],
- fields: Object.assign({}, classCommon, {
- declare: {
- validate: (0, _utils.assertValueType)("boolean"),
- optional: true
- },
- abstract: {
- validate: (0, _utils.assertValueType)("boolean"),
- optional: true
- },
- id: {
- validate: (0, _utils.assertNodeType)("Identifier"),
- optional: true
- },
- decorators: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))),
- optional: true
- }
- })
-});
-(0, _utils.default)("ClassExpression", {
- inherits: "ClassDeclaration",
- aliases: ["Scopable", "Class", "Expression", "Pureish"],
- fields: Object.assign({}, classCommon, {
- id: {
- optional: true,
- validate: (0, _utils.assertNodeType)("Identifier")
- },
- body: {
- validate: (0, _utils.assertNodeType)("ClassBody")
- },
- superClass: {
- optional: true,
- validate: (0, _utils.assertNodeType)("Expression")
- },
- decorators: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))),
- optional: true
- }
- })
-});
-(0, _utils.default)("ExportAllDeclaration", {
- visitor: ["source"],
- aliases: ["Statement", "Declaration", "ModuleDeclaration", "ExportDeclaration"],
- fields: {
- source: {
- validate: (0, _utils.assertNodeType)("StringLiteral")
- }
- }
-});
-(0, _utils.default)("ExportDefaultDeclaration", {
- visitor: ["declaration"],
- aliases: ["Statement", "Declaration", "ModuleDeclaration", "ExportDeclaration"],
- fields: {
- declaration: {
- validate: (0, _utils.assertNodeType)("FunctionDeclaration", "TSDeclareFunction", "ClassDeclaration", "Expression")
- }
- }
-});
-(0, _utils.default)("ExportNamedDeclaration", {
- visitor: ["declaration", "specifiers", "source"],
- aliases: ["Statement", "Declaration", "ModuleDeclaration", "ExportDeclaration"],
- fields: {
- declaration: {
- validate: (0, _utils.assertNodeType)("Declaration"),
- optional: true
- },
- specifiers: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("ExportSpecifier", "ExportDefaultSpecifier", "ExportNamespaceSpecifier")))
- },
- source: {
- validate: (0, _utils.assertNodeType)("StringLiteral"),
- optional: true
- },
- exportKind: (0, _utils.validateOptional)((0, _utils.assertOneOf)("type", "value"))
- }
-});
-(0, _utils.default)("ExportSpecifier", {
- visitor: ["local", "exported"],
- aliases: ["ModuleSpecifier"],
- fields: {
- local: {
- validate: (0, _utils.assertNodeType)("Identifier")
- },
- exported: {
- validate: (0, _utils.assertNodeType)("Identifier")
- }
- }
-});
-(0, _utils.default)("ForOfStatement", {
- visitor: ["left", "right", "body"],
- aliases: ["Scopable", "Statement", "For", "BlockParent", "Loop", "ForXStatement"],
- fields: {
- left: {
- validate: (0, _utils.assertNodeType)("VariableDeclaration", "LVal")
- },
- right: {
- validate: (0, _utils.assertNodeType)("Expression")
- },
- body: {
- validate: (0, _utils.assertNodeType)("Statement")
- },
- await: {
- default: false,
- validate: (0, _utils.assertValueType)("boolean")
- }
- }
-});
-(0, _utils.default)("ImportDeclaration", {
- visitor: ["specifiers", "source"],
- aliases: ["Statement", "Declaration", "ModuleDeclaration"],
- fields: {
- specifiers: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("ImportSpecifier", "ImportDefaultSpecifier", "ImportNamespaceSpecifier")))
- },
- source: {
- validate: (0, _utils.assertNodeType)("StringLiteral")
- },
- importKind: {
- validate: (0, _utils.assertOneOf)("type", "typeof", "value"),
- optional: true
- }
- }
-});
-(0, _utils.default)("ImportDefaultSpecifier", {
- visitor: ["local"],
- aliases: ["ModuleSpecifier"],
- fields: {
- local: {
- validate: (0, _utils.assertNodeType)("Identifier")
- }
- }
-});
-(0, _utils.default)("ImportNamespaceSpecifier", {
- visitor: ["local"],
- aliases: ["ModuleSpecifier"],
- fields: {
- local: {
- validate: (0, _utils.assertNodeType)("Identifier")
- }
- }
-});
-(0, _utils.default)("ImportSpecifier", {
- visitor: ["local", "imported"],
- aliases: ["ModuleSpecifier"],
- fields: {
- local: {
- validate: (0, _utils.assertNodeType)("Identifier")
- },
- imported: {
- validate: (0, _utils.assertNodeType)("Identifier")
- },
- importKind: {
- validate: (0, _utils.assertOneOf)("type", "typeof"),
- optional: true
- }
- }
-});
-(0, _utils.default)("MetaProperty", {
- visitor: ["meta", "property"],
- aliases: ["Expression"],
- fields: {
- meta: {
- validate: (0, _utils.assertNodeType)("Identifier")
- },
- property: {
- validate: (0, _utils.assertNodeType)("Identifier")
- }
- }
-});
-const classMethodOrPropertyCommon = {
- abstract: {
- validate: (0, _utils.assertValueType)("boolean"),
- optional: true
- },
- accessibility: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("string"), (0, _utils.assertOneOf)("public", "private", "protected")),
- optional: true
- },
- static: {
- default: false,
- validate: (0, _utils.assertValueType)("boolean")
- },
- computed: {
- default: false,
- validate: (0, _utils.assertValueType)("boolean")
- },
- optional: {
- validate: (0, _utils.assertValueType)("boolean"),
- optional: true
- },
- key: {
- validate: (0, _utils.chain)(function () {
- const normal = (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral");
- const computed = (0, _utils.assertNodeType)("Expression");
- return function (node, key, val) {
- const validator = node.computed ? computed : normal;
- validator(node, key, val);
- };
- }(), (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "Expression"))
- }
-};
-exports.classMethodOrPropertyCommon = classMethodOrPropertyCommon;
-const classMethodOrDeclareMethodCommon = Object.assign({}, _core.functionCommon, {}, classMethodOrPropertyCommon, {
- kind: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("string"), (0, _utils.assertOneOf)("get", "set", "method", "constructor")),
- default: "method"
- },
- access: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("string"), (0, _utils.assertOneOf)("public", "private", "protected")),
- optional: true
- },
- decorators: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))),
- optional: true
- }
-});
-exports.classMethodOrDeclareMethodCommon = classMethodOrDeclareMethodCommon;
-(0, _utils.default)("ClassMethod", {
- aliases: ["Function", "Scopable", "BlockParent", "FunctionParent", "Method"],
- builder: ["kind", "key", "params", "body", "computed", "static"],
- visitor: ["key", "params", "body", "decorators", "returnType", "typeParameters"],
- fields: Object.assign({}, classMethodOrDeclareMethodCommon, {}, _core.functionTypeAnnotationCommon, {
- body: {
- validate: (0, _utils.assertNodeType)("BlockStatement")
- }
- })
-});
-(0, _utils.default)("ObjectPattern", {
- visitor: ["properties", "typeAnnotation", "decorators"],
- builder: ["properties"],
- aliases: ["Pattern", "PatternLike", "LVal"],
- fields: Object.assign({}, _core.patternLikeCommon, {
- properties: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("RestElement", "ObjectProperty")))
- }
- })
-});
-(0, _utils.default)("SpreadElement", {
- visitor: ["argument"],
- aliases: ["UnaryLike"],
- deprecatedAlias: "SpreadProperty",
- fields: {
- argument: {
- validate: (0, _utils.assertNodeType)("Expression")
- }
- }
-});
-(0, _utils.default)("Super", {
- aliases: ["Expression"]
-});
-(0, _utils.default)("TaggedTemplateExpression", {
- visitor: ["tag", "quasi"],
- aliases: ["Expression"],
- fields: {
- tag: {
- validate: (0, _utils.assertNodeType)("Expression")
- },
- quasi: {
- validate: (0, _utils.assertNodeType)("TemplateLiteral")
- },
- typeParameters: {
- validate: (0, _utils.assertNodeType)("TypeParameterInstantiation", "TSTypeParameterInstantiation"),
- optional: true
- }
- }
-});
-(0, _utils.default)("TemplateElement", {
- builder: ["value", "tail"],
- fields: {
- value: {
- validate: (0, _utils.assertShape)({
- raw: {
- validate: (0, _utils.assertValueType)("string")
- },
- cooked: {
- validate: (0, _utils.assertValueType)("string"),
- optional: true
- }
- })
- },
- tail: {
- validate: (0, _utils.assertValueType)("boolean"),
- default: false
- }
- }
-});
-(0, _utils.default)("TemplateLiteral", {
- visitor: ["quasis", "expressions"],
- aliases: ["Expression", "Literal"],
- fields: {
- quasis: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("TemplateElement")))
- },
- expressions: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Expression")))
- }
- }
-});
-(0, _utils.default)("YieldExpression", {
- builder: ["argument", "delegate"],
- visitor: ["argument"],
- aliases: ["Expression", "Terminatorless"],
- fields: {
- delegate: {
- validate: (0, _utils.assertValueType)("boolean"),
- default: false
- },
- argument: {
- optional: true,
- validate: (0, _utils.assertNodeType)("Expression")
- }
- }
-});
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/definitions/experimental.js b/node_modules/@babel/preset-env/node_modules/@babel/types/lib/definitions/experimental.js
deleted file mode 100644
index 0b32a37c..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/definitions/experimental.js
+++ /dev/null
@@ -1,209 +0,0 @@
-"use strict";
-
-var _utils = _interopRequireWildcard(require("./utils"));
-
-var _es = require("./es2015");
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-(0, _utils.default)("ArgumentPlaceholder", {});
-(0, _utils.default)("AwaitExpression", {
- builder: ["argument"],
- visitor: ["argument"],
- aliases: ["Expression", "Terminatorless"],
- fields: {
- argument: {
- validate: (0, _utils.assertNodeType)("Expression")
- }
- }
-});
-(0, _utils.default)("BindExpression", {
- visitor: ["object", "callee"],
- aliases: ["Expression"],
- fields: {}
-});
-(0, _utils.default)("ClassProperty", {
- visitor: ["key", "value", "typeAnnotation", "decorators"],
- builder: ["key", "value", "typeAnnotation", "decorators", "computed", "static"],
- aliases: ["Property"],
- fields: Object.assign({}, _es.classMethodOrPropertyCommon, {
- value: {
- validate: (0, _utils.assertNodeType)("Expression"),
- optional: true
- },
- definite: {
- validate: (0, _utils.assertValueType)("boolean"),
- optional: true
- },
- typeAnnotation: {
- validate: (0, _utils.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"),
- optional: true
- },
- decorators: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))),
- optional: true
- },
- readonly: {
- validate: (0, _utils.assertValueType)("boolean"),
- optional: true
- }
- })
-});
-(0, _utils.default)("OptionalMemberExpression", {
- builder: ["object", "property", "computed", "optional"],
- visitor: ["object", "property"],
- aliases: ["Expression"],
- fields: {
- object: {
- validate: (0, _utils.assertNodeType)("Expression")
- },
- property: {
- validate: function () {
- const normal = (0, _utils.assertNodeType)("Identifier");
- const computed = (0, _utils.assertNodeType)("Expression");
- return function (node, key, val) {
- const validator = node.computed ? computed : normal;
- validator(node, key, val);
- };
- }()
- },
- computed: {
- default: false
- },
- optional: {
- validate: (0, _utils.assertValueType)("boolean")
- }
- }
-});
-(0, _utils.default)("PipelineTopicExpression", {
- builder: ["expression"],
- visitor: ["expression"],
- fields: {
- expression: {
- validate: (0, _utils.assertNodeType)("Expression")
- }
- }
-});
-(0, _utils.default)("PipelineBareFunction", {
- builder: ["callee"],
- visitor: ["callee"],
- fields: {
- callee: {
- validate: (0, _utils.assertNodeType)("Expression")
- }
- }
-});
-(0, _utils.default)("PipelinePrimaryTopicReference", {
- aliases: ["Expression"]
-});
-(0, _utils.default)("OptionalCallExpression", {
- visitor: ["callee", "arguments", "typeParameters", "typeArguments"],
- builder: ["callee", "arguments", "optional"],
- aliases: ["Expression"],
- fields: {
- callee: {
- validate: (0, _utils.assertNodeType)("Expression")
- },
- arguments: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Expression", "SpreadElement", "JSXNamespacedName")))
- },
- optional: {
- validate: (0, _utils.assertValueType)("boolean")
- },
- typeArguments: {
- validate: (0, _utils.assertNodeType)("TypeParameterInstantiation"),
- optional: true
- },
- typeParameters: {
- validate: (0, _utils.assertNodeType)("TSTypeParameterInstantiation"),
- optional: true
- }
- }
-});
-(0, _utils.default)("ClassPrivateProperty", {
- visitor: ["key", "value", "decorators"],
- builder: ["key", "value", "decorators"],
- aliases: ["Property", "Private"],
- fields: {
- key: {
- validate: (0, _utils.assertNodeType)("PrivateName")
- },
- value: {
- validate: (0, _utils.assertNodeType)("Expression"),
- optional: true
- },
- decorators: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))),
- optional: true
- }
- }
-});
-(0, _utils.default)("ClassPrivateMethod", {
- builder: ["kind", "key", "params", "body", "static"],
- visitor: ["key", "params", "body", "decorators", "returnType", "typeParameters"],
- aliases: ["Function", "Scopable", "BlockParent", "FunctionParent", "Method", "Private"],
- fields: Object.assign({}, _es.classMethodOrDeclareMethodCommon, {
- key: {
- validate: (0, _utils.assertNodeType)("PrivateName")
- },
- body: {
- validate: (0, _utils.assertNodeType)("BlockStatement")
- }
- })
-});
-(0, _utils.default)("Import", {
- aliases: ["Expression"]
-});
-(0, _utils.default)("Decorator", {
- visitor: ["expression"],
- fields: {
- expression: {
- validate: (0, _utils.assertNodeType)("Expression")
- }
- }
-});
-(0, _utils.default)("DoExpression", {
- visitor: ["body"],
- aliases: ["Expression"],
- fields: {
- body: {
- validate: (0, _utils.assertNodeType)("BlockStatement")
- }
- }
-});
-(0, _utils.default)("ExportDefaultSpecifier", {
- visitor: ["exported"],
- aliases: ["ModuleSpecifier"],
- fields: {
- exported: {
- validate: (0, _utils.assertNodeType)("Identifier")
- }
- }
-});
-(0, _utils.default)("ExportNamespaceSpecifier", {
- visitor: ["exported"],
- aliases: ["ModuleSpecifier"],
- fields: {
- exported: {
- validate: (0, _utils.assertNodeType)("Identifier")
- }
- }
-});
-(0, _utils.default)("PrivateName", {
- visitor: ["id"],
- aliases: ["Private"],
- fields: {
- id: {
- validate: (0, _utils.assertNodeType)("Identifier")
- }
- }
-});
-(0, _utils.default)("BigIntLiteral", {
- builder: ["value"],
- fields: {
- value: {
- validate: (0, _utils.assertValueType)("string")
- }
- },
- aliases: ["Expression", "Pureish", "Literal", "Immutable"]
-});
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/definitions/flow.js b/node_modules/@babel/preset-env/node_modules/@babel/types/lib/definitions/flow.js
deleted file mode 100644
index 07db5e38..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/definitions/flow.js
+++ /dev/null
@@ -1,386 +0,0 @@
-"use strict";
-
-var _utils = _interopRequireWildcard(require("./utils"));
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-const defineInterfaceishType = (name, typeParameterType = "TypeParameterDeclaration") => {
- (0, _utils.default)(name, {
- builder: ["id", "typeParameters", "extends", "body"],
- visitor: ["id", "typeParameters", "extends", "mixins", "implements", "body"],
- aliases: ["Flow", "FlowDeclaration", "Statement", "Declaration"],
- fields: {
- id: (0, _utils.validateType)("Identifier"),
- typeParameters: (0, _utils.validateOptionalType)(typeParameterType),
- extends: (0, _utils.validateOptional)((0, _utils.arrayOfType)("InterfaceExtends")),
- mixins: (0, _utils.validateOptional)((0, _utils.arrayOfType)("InterfaceExtends")),
- implements: (0, _utils.validateOptional)((0, _utils.arrayOfType)("ClassImplements")),
- body: (0, _utils.validateType)("ObjectTypeAnnotation")
- }
- });
-};
-
-(0, _utils.default)("AnyTypeAnnotation", {
- aliases: ["Flow", "FlowType", "FlowBaseAnnotation"]
-});
-(0, _utils.default)("ArrayTypeAnnotation", {
- visitor: ["elementType"],
- aliases: ["Flow", "FlowType"],
- fields: {
- elementType: (0, _utils.validateType)("FlowType")
- }
-});
-(0, _utils.default)("BooleanTypeAnnotation", {
- aliases: ["Flow", "FlowType", "FlowBaseAnnotation"]
-});
-(0, _utils.default)("BooleanLiteralTypeAnnotation", {
- builder: ["value"],
- aliases: ["Flow", "FlowType"],
- fields: {
- value: (0, _utils.validate)((0, _utils.assertValueType)("boolean"))
- }
-});
-(0, _utils.default)("NullLiteralTypeAnnotation", {
- aliases: ["Flow", "FlowType", "FlowBaseAnnotation"]
-});
-(0, _utils.default)("ClassImplements", {
- visitor: ["id", "typeParameters"],
- aliases: ["Flow"],
- fields: {
- id: (0, _utils.validateType)("Identifier"),
- typeParameters: (0, _utils.validateOptionalType)("TypeParameterInstantiation")
- }
-});
-defineInterfaceishType("DeclareClass");
-(0, _utils.default)("DeclareFunction", {
- visitor: ["id"],
- aliases: ["Flow", "FlowDeclaration", "Statement", "Declaration"],
- fields: {
- id: (0, _utils.validateType)("Identifier"),
- predicate: (0, _utils.validateOptionalType)("DeclaredPredicate")
- }
-});
-defineInterfaceishType("DeclareInterface");
-(0, _utils.default)("DeclareModule", {
- builder: ["id", "body", "kind"],
- visitor: ["id", "body"],
- aliases: ["Flow", "FlowDeclaration", "Statement", "Declaration"],
- fields: {
- id: (0, _utils.validateType)(["Identifier", "StringLiteral"]),
- body: (0, _utils.validateType)("BlockStatement"),
- kind: (0, _utils.validateOptional)((0, _utils.assertOneOf)("CommonJS", "ES"))
- }
-});
-(0, _utils.default)("DeclareModuleExports", {
- visitor: ["typeAnnotation"],
- aliases: ["Flow", "FlowDeclaration", "Statement", "Declaration"],
- fields: {
- typeAnnotation: (0, _utils.validateType)("TypeAnnotation")
- }
-});
-(0, _utils.default)("DeclareTypeAlias", {
- visitor: ["id", "typeParameters", "right"],
- aliases: ["Flow", "FlowDeclaration", "Statement", "Declaration"],
- fields: {
- id: (0, _utils.validateType)("Identifier"),
- typeParameters: (0, _utils.validateOptionalType)("TypeParameterDeclaration"),
- right: (0, _utils.validateType)("FlowType")
- }
-});
-(0, _utils.default)("DeclareOpaqueType", {
- visitor: ["id", "typeParameters", "supertype"],
- aliases: ["Flow", "FlowDeclaration", "Statement", "Declaration"],
- fields: {
- id: (0, _utils.validateType)("Identifier"),
- typeParameters: (0, _utils.validateOptionalType)("TypeParameterDeclaration"),
- supertype: (0, _utils.validateOptionalType)("FlowType")
- }
-});
-(0, _utils.default)("DeclareVariable", {
- visitor: ["id"],
- aliases: ["Flow", "FlowDeclaration", "Statement", "Declaration"],
- fields: {
- id: (0, _utils.validateType)("Identifier")
- }
-});
-(0, _utils.default)("DeclareExportDeclaration", {
- visitor: ["declaration", "specifiers", "source"],
- aliases: ["Flow", "FlowDeclaration", "Statement", "Declaration"],
- fields: {
- declaration: (0, _utils.validateOptionalType)("Flow"),
- specifiers: (0, _utils.validateOptional)((0, _utils.arrayOfType)(["ExportSpecifier", "ExportNamespaceSpecifier"])),
- source: (0, _utils.validateOptionalType)("StringLiteral"),
- default: (0, _utils.validateOptional)((0, _utils.assertValueType)("boolean"))
- }
-});
-(0, _utils.default)("DeclareExportAllDeclaration", {
- visitor: ["source"],
- aliases: ["Flow", "FlowDeclaration", "Statement", "Declaration"],
- fields: {
- source: (0, _utils.validateType)("StringLiteral"),
- exportKind: (0, _utils.validateOptional)((0, _utils.assertOneOf)("type", "value"))
- }
-});
-(0, _utils.default)("DeclaredPredicate", {
- visitor: ["value"],
- aliases: ["Flow", "FlowPredicate"],
- fields: {
- value: (0, _utils.validateType)("Flow")
- }
-});
-(0, _utils.default)("ExistsTypeAnnotation", {
- aliases: ["Flow", "FlowType"]
-});
-(0, _utils.default)("FunctionTypeAnnotation", {
- visitor: ["typeParameters", "params", "rest", "returnType"],
- aliases: ["Flow", "FlowType"],
- fields: {
- typeParameters: (0, _utils.validateOptionalType)("TypeParameterDeclaration"),
- params: (0, _utils.validate)((0, _utils.arrayOfType)("FunctionTypeParam")),
- rest: (0, _utils.validateOptionalType)("FunctionTypeParam"),
- returnType: (0, _utils.validateType)("FlowType")
- }
-});
-(0, _utils.default)("FunctionTypeParam", {
- visitor: ["name", "typeAnnotation"],
- aliases: ["Flow"],
- fields: {
- name: (0, _utils.validateOptionalType)("Identifier"),
- typeAnnotation: (0, _utils.validateType)("FlowType"),
- optional: (0, _utils.validateOptional)((0, _utils.assertValueType)("boolean"))
- }
-});
-(0, _utils.default)("GenericTypeAnnotation", {
- visitor: ["id", "typeParameters"],
- aliases: ["Flow", "FlowType"],
- fields: {
- id: (0, _utils.validateType)(["Identifier", "QualifiedTypeIdentifier"]),
- typeParameters: (0, _utils.validateOptionalType)("TypeParameterInstantiation")
- }
-});
-(0, _utils.default)("InferredPredicate", {
- aliases: ["Flow", "FlowPredicate"]
-});
-(0, _utils.default)("InterfaceExtends", {
- visitor: ["id", "typeParameters"],
- aliases: ["Flow"],
- fields: {
- id: (0, _utils.validateType)(["Identifier", "QualifiedTypeIdentifier"]),
- typeParameters: (0, _utils.validateOptionalType)("TypeParameterInstantiation")
- }
-});
-defineInterfaceishType("InterfaceDeclaration");
-(0, _utils.default)("InterfaceTypeAnnotation", {
- visitor: ["extends", "body"],
- aliases: ["Flow", "FlowType"],
- fields: {
- extends: (0, _utils.validateOptional)((0, _utils.arrayOfType)("InterfaceExtends")),
- body: (0, _utils.validateType)("ObjectTypeAnnotation")
- }
-});
-(0, _utils.default)("IntersectionTypeAnnotation", {
- visitor: ["types"],
- aliases: ["Flow", "FlowType"],
- fields: {
- types: (0, _utils.validate)((0, _utils.arrayOfType)("FlowType"))
- }
-});
-(0, _utils.default)("MixedTypeAnnotation", {
- aliases: ["Flow", "FlowType", "FlowBaseAnnotation"]
-});
-(0, _utils.default)("EmptyTypeAnnotation", {
- aliases: ["Flow", "FlowType", "FlowBaseAnnotation"]
-});
-(0, _utils.default)("NullableTypeAnnotation", {
- visitor: ["typeAnnotation"],
- aliases: ["Flow", "FlowType"],
- fields: {
- typeAnnotation: (0, _utils.validateType)("FlowType")
- }
-});
-(0, _utils.default)("NumberLiteralTypeAnnotation", {
- builder: ["value"],
- aliases: ["Flow", "FlowType"],
- fields: {
- value: (0, _utils.validate)((0, _utils.assertValueType)("number"))
- }
-});
-(0, _utils.default)("NumberTypeAnnotation", {
- aliases: ["Flow", "FlowType", "FlowBaseAnnotation"]
-});
-(0, _utils.default)("ObjectTypeAnnotation", {
- visitor: ["properties", "indexers", "callProperties", "internalSlots"],
- aliases: ["Flow", "FlowType"],
- builder: ["properties", "indexers", "callProperties", "internalSlots", "exact"],
- fields: {
- properties: (0, _utils.validate)((0, _utils.arrayOfType)(["ObjectTypeProperty", "ObjectTypeSpreadProperty"])),
- indexers: (0, _utils.validateOptional)((0, _utils.arrayOfType)("ObjectTypeIndexer")),
- callProperties: (0, _utils.validateOptional)((0, _utils.arrayOfType)("ObjectTypeCallProperty")),
- internalSlots: (0, _utils.validateOptional)((0, _utils.arrayOfType)("ObjectTypeInternalSlot")),
- exact: {
- validate: (0, _utils.assertValueType)("boolean"),
- default: false
- },
- inexact: (0, _utils.validateOptional)((0, _utils.assertValueType)("boolean"))
- }
-});
-(0, _utils.default)("ObjectTypeInternalSlot", {
- visitor: ["id", "value", "optional", "static", "method"],
- aliases: ["Flow", "UserWhitespacable"],
- fields: {
- id: (0, _utils.validateType)("Identifier"),
- value: (0, _utils.validateType)("FlowType"),
- optional: (0, _utils.validate)((0, _utils.assertValueType)("boolean")),
- static: (0, _utils.validate)((0, _utils.assertValueType)("boolean")),
- method: (0, _utils.validate)((0, _utils.assertValueType)("boolean"))
- }
-});
-(0, _utils.default)("ObjectTypeCallProperty", {
- visitor: ["value"],
- aliases: ["Flow", "UserWhitespacable"],
- fields: {
- value: (0, _utils.validateType)("FlowType"),
- static: (0, _utils.validate)((0, _utils.assertValueType)("boolean"))
- }
-});
-(0, _utils.default)("ObjectTypeIndexer", {
- visitor: ["id", "key", "value", "variance"],
- aliases: ["Flow", "UserWhitespacable"],
- fields: {
- id: (0, _utils.validateOptionalType)("Identifier"),
- key: (0, _utils.validateType)("FlowType"),
- value: (0, _utils.validateType)("FlowType"),
- static: (0, _utils.validate)((0, _utils.assertValueType)("boolean")),
- variance: (0, _utils.validateOptionalType)("Variance")
- }
-});
-(0, _utils.default)("ObjectTypeProperty", {
- visitor: ["key", "value", "variance"],
- aliases: ["Flow", "UserWhitespacable"],
- fields: {
- key: (0, _utils.validateType)(["Identifier", "StringLiteral"]),
- value: (0, _utils.validateType)("FlowType"),
- kind: (0, _utils.validate)((0, _utils.assertOneOf)("init", "get", "set")),
- static: (0, _utils.validate)((0, _utils.assertValueType)("boolean")),
- proto: (0, _utils.validate)((0, _utils.assertValueType)("boolean")),
- optional: (0, _utils.validate)((0, _utils.assertValueType)("boolean")),
- variance: (0, _utils.validateOptionalType)("Variance")
- }
-});
-(0, _utils.default)("ObjectTypeSpreadProperty", {
- visitor: ["argument"],
- aliases: ["Flow", "UserWhitespacable"],
- fields: {
- argument: (0, _utils.validateType)("FlowType")
- }
-});
-(0, _utils.default)("OpaqueType", {
- visitor: ["id", "typeParameters", "supertype", "impltype"],
- aliases: ["Flow", "FlowDeclaration", "Statement", "Declaration"],
- fields: {
- id: (0, _utils.validateType)("Identifier"),
- typeParameters: (0, _utils.validateOptionalType)("TypeParameterDeclaration"),
- supertype: (0, _utils.validateOptionalType)("FlowType"),
- impltype: (0, _utils.validateType)("FlowType")
- }
-});
-(0, _utils.default)("QualifiedTypeIdentifier", {
- visitor: ["id", "qualification"],
- aliases: ["Flow"],
- fields: {
- id: (0, _utils.validateType)("Identifier"),
- qualification: (0, _utils.validateType)(["Identifier", "QualifiedTypeIdentifier"])
- }
-});
-(0, _utils.default)("StringLiteralTypeAnnotation", {
- builder: ["value"],
- aliases: ["Flow", "FlowType"],
- fields: {
- value: (0, _utils.validate)((0, _utils.assertValueType)("string"))
- }
-});
-(0, _utils.default)("StringTypeAnnotation", {
- aliases: ["Flow", "FlowType", "FlowBaseAnnotation"]
-});
-(0, _utils.default)("ThisTypeAnnotation", {
- aliases: ["Flow", "FlowType", "FlowBaseAnnotation"]
-});
-(0, _utils.default)("TupleTypeAnnotation", {
- visitor: ["types"],
- aliases: ["Flow", "FlowType"],
- fields: {
- types: (0, _utils.validate)((0, _utils.arrayOfType)("FlowType"))
- }
-});
-(0, _utils.default)("TypeofTypeAnnotation", {
- visitor: ["argument"],
- aliases: ["Flow", "FlowType"],
- fields: {
- argument: (0, _utils.validateType)("FlowType")
- }
-});
-(0, _utils.default)("TypeAlias", {
- visitor: ["id", "typeParameters", "right"],
- aliases: ["Flow", "FlowDeclaration", "Statement", "Declaration"],
- fields: {
- id: (0, _utils.validateType)("Identifier"),
- typeParameters: (0, _utils.validateOptionalType)("TypeParameterDeclaration"),
- right: (0, _utils.validateType)("FlowType")
- }
-});
-(0, _utils.default)("TypeAnnotation", {
- aliases: ["Flow"],
- visitor: ["typeAnnotation"],
- fields: {
- typeAnnotation: (0, _utils.validateType)("FlowType")
- }
-});
-(0, _utils.default)("TypeCastExpression", {
- visitor: ["expression", "typeAnnotation"],
- aliases: ["Flow", "ExpressionWrapper", "Expression"],
- fields: {
- expression: (0, _utils.validateType)("Expression"),
- typeAnnotation: (0, _utils.validateType)("TypeAnnotation")
- }
-});
-(0, _utils.default)("TypeParameter", {
- aliases: ["Flow"],
- visitor: ["bound", "default", "variance"],
- fields: {
- name: (0, _utils.validate)((0, _utils.assertValueType)("string")),
- bound: (0, _utils.validateOptionalType)("TypeAnnotation"),
- default: (0, _utils.validateOptionalType)("FlowType"),
- variance: (0, _utils.validateOptionalType)("Variance")
- }
-});
-(0, _utils.default)("TypeParameterDeclaration", {
- aliases: ["Flow"],
- visitor: ["params"],
- fields: {
- params: (0, _utils.validate)((0, _utils.arrayOfType)("TypeParameter"))
- }
-});
-(0, _utils.default)("TypeParameterInstantiation", {
- aliases: ["Flow"],
- visitor: ["params"],
- fields: {
- params: (0, _utils.validate)((0, _utils.arrayOfType)("FlowType"))
- }
-});
-(0, _utils.default)("UnionTypeAnnotation", {
- visitor: ["types"],
- aliases: ["Flow", "FlowType"],
- fields: {
- types: (0, _utils.validate)((0, _utils.arrayOfType)("FlowType"))
- }
-});
-(0, _utils.default)("Variance", {
- aliases: ["Flow"],
- builder: ["kind"],
- fields: {
- kind: (0, _utils.validate)((0, _utils.assertOneOf)("minus", "plus"))
- }
-});
-(0, _utils.default)("VoidTypeAnnotation", {
- aliases: ["Flow", "FlowType", "FlowBaseAnnotation"]
-});
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/definitions/index.js b/node_modules/@babel/preset-env/node_modules/@babel/types/lib/definitions/index.js
deleted file mode 100644
index 7f28569f..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/definitions/index.js
+++ /dev/null
@@ -1,101 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-Object.defineProperty(exports, "VISITOR_KEYS", {
- enumerable: true,
- get: function () {
- return _utils.VISITOR_KEYS;
- }
-});
-Object.defineProperty(exports, "ALIAS_KEYS", {
- enumerable: true,
- get: function () {
- return _utils.ALIAS_KEYS;
- }
-});
-Object.defineProperty(exports, "FLIPPED_ALIAS_KEYS", {
- enumerable: true,
- get: function () {
- return _utils.FLIPPED_ALIAS_KEYS;
- }
-});
-Object.defineProperty(exports, "NODE_FIELDS", {
- enumerable: true,
- get: function () {
- return _utils.NODE_FIELDS;
- }
-});
-Object.defineProperty(exports, "BUILDER_KEYS", {
- enumerable: true,
- get: function () {
- return _utils.BUILDER_KEYS;
- }
-});
-Object.defineProperty(exports, "DEPRECATED_KEYS", {
- enumerable: true,
- get: function () {
- return _utils.DEPRECATED_KEYS;
- }
-});
-Object.defineProperty(exports, "PLACEHOLDERS", {
- enumerable: true,
- get: function () {
- return _placeholders.PLACEHOLDERS;
- }
-});
-Object.defineProperty(exports, "PLACEHOLDERS_ALIAS", {
- enumerable: true,
- get: function () {
- return _placeholders.PLACEHOLDERS_ALIAS;
- }
-});
-Object.defineProperty(exports, "PLACEHOLDERS_FLIPPED_ALIAS", {
- enumerable: true,
- get: function () {
- return _placeholders.PLACEHOLDERS_FLIPPED_ALIAS;
- }
-});
-exports.TYPES = void 0;
-
-function _toFastProperties() {
- const data = _interopRequireDefault(require("to-fast-properties"));
-
- _toFastProperties = function () {
- return data;
- };
-
- return data;
-}
-
-require("./core");
-
-require("./es2015");
-
-require("./flow");
-
-require("./jsx");
-
-require("./misc");
-
-require("./experimental");
-
-require("./typescript");
-
-var _utils = require("./utils");
-
-var _placeholders = require("./placeholders");
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-(0, _toFastProperties().default)(_utils.VISITOR_KEYS);
-(0, _toFastProperties().default)(_utils.ALIAS_KEYS);
-(0, _toFastProperties().default)(_utils.FLIPPED_ALIAS_KEYS);
-(0, _toFastProperties().default)(_utils.NODE_FIELDS);
-(0, _toFastProperties().default)(_utils.BUILDER_KEYS);
-(0, _toFastProperties().default)(_utils.DEPRECATED_KEYS);
-(0, _toFastProperties().default)(_placeholders.PLACEHOLDERS_ALIAS);
-(0, _toFastProperties().default)(_placeholders.PLACEHOLDERS_FLIPPED_ALIAS);
-const TYPES = Object.keys(_utils.VISITOR_KEYS).concat(Object.keys(_utils.FLIPPED_ALIAS_KEYS)).concat(Object.keys(_utils.DEPRECATED_KEYS));
-exports.TYPES = TYPES;
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/definitions/jsx.js b/node_modules/@babel/preset-env/node_modules/@babel/types/lib/definitions/jsx.js
deleted file mode 100644
index 8d1fda9b..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/definitions/jsx.js
+++ /dev/null
@@ -1,160 +0,0 @@
-"use strict";
-
-var _utils = _interopRequireWildcard(require("./utils"));
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-(0, _utils.default)("JSXAttribute", {
- visitor: ["name", "value"],
- aliases: ["JSX", "Immutable"],
- fields: {
- name: {
- validate: (0, _utils.assertNodeType)("JSXIdentifier", "JSXNamespacedName")
- },
- value: {
- optional: true,
- validate: (0, _utils.assertNodeType)("JSXElement", "JSXFragment", "StringLiteral", "JSXExpressionContainer")
- }
- }
-});
-(0, _utils.default)("JSXClosingElement", {
- visitor: ["name"],
- aliases: ["JSX", "Immutable"],
- fields: {
- name: {
- validate: (0, _utils.assertNodeType)("JSXIdentifier", "JSXMemberExpression", "JSXNamespacedName")
- }
- }
-});
-(0, _utils.default)("JSXElement", {
- builder: ["openingElement", "closingElement", "children", "selfClosing"],
- visitor: ["openingElement", "children", "closingElement"],
- aliases: ["JSX", "Immutable", "Expression"],
- fields: {
- openingElement: {
- validate: (0, _utils.assertNodeType)("JSXOpeningElement")
- },
- closingElement: {
- optional: true,
- validate: (0, _utils.assertNodeType)("JSXClosingElement")
- },
- children: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("JSXText", "JSXExpressionContainer", "JSXSpreadChild", "JSXElement", "JSXFragment")))
- }
- }
-});
-(0, _utils.default)("JSXEmptyExpression", {
- aliases: ["JSX"]
-});
-(0, _utils.default)("JSXExpressionContainer", {
- visitor: ["expression"],
- aliases: ["JSX", "Immutable"],
- fields: {
- expression: {
- validate: (0, _utils.assertNodeType)("Expression", "JSXEmptyExpression")
- }
- }
-});
-(0, _utils.default)("JSXSpreadChild", {
- visitor: ["expression"],
- aliases: ["JSX", "Immutable"],
- fields: {
- expression: {
- validate: (0, _utils.assertNodeType)("Expression")
- }
- }
-});
-(0, _utils.default)("JSXIdentifier", {
- builder: ["name"],
- aliases: ["JSX"],
- fields: {
- name: {
- validate: (0, _utils.assertValueType)("string")
- }
- }
-});
-(0, _utils.default)("JSXMemberExpression", {
- visitor: ["object", "property"],
- aliases: ["JSX"],
- fields: {
- object: {
- validate: (0, _utils.assertNodeType)("JSXMemberExpression", "JSXIdentifier")
- },
- property: {
- validate: (0, _utils.assertNodeType)("JSXIdentifier")
- }
- }
-});
-(0, _utils.default)("JSXNamespacedName", {
- visitor: ["namespace", "name"],
- aliases: ["JSX"],
- fields: {
- namespace: {
- validate: (0, _utils.assertNodeType)("JSXIdentifier")
- },
- name: {
- validate: (0, _utils.assertNodeType)("JSXIdentifier")
- }
- }
-});
-(0, _utils.default)("JSXOpeningElement", {
- builder: ["name", "attributes", "selfClosing"],
- visitor: ["name", "attributes"],
- aliases: ["JSX", "Immutable"],
- fields: {
- name: {
- validate: (0, _utils.assertNodeType)("JSXIdentifier", "JSXMemberExpression", "JSXNamespacedName")
- },
- selfClosing: {
- default: false,
- validate: (0, _utils.assertValueType)("boolean")
- },
- attributes: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("JSXAttribute", "JSXSpreadAttribute")))
- },
- typeParameters: {
- validate: (0, _utils.assertNodeType)("TypeParameterInstantiation", "TSTypeParameterInstantiation"),
- optional: true
- }
- }
-});
-(0, _utils.default)("JSXSpreadAttribute", {
- visitor: ["argument"],
- aliases: ["JSX"],
- fields: {
- argument: {
- validate: (0, _utils.assertNodeType)("Expression")
- }
- }
-});
-(0, _utils.default)("JSXText", {
- aliases: ["JSX", "Immutable"],
- builder: ["value"],
- fields: {
- value: {
- validate: (0, _utils.assertValueType)("string")
- }
- }
-});
-(0, _utils.default)("JSXFragment", {
- builder: ["openingFragment", "closingFragment", "children"],
- visitor: ["openingFragment", "children", "closingFragment"],
- aliases: ["JSX", "Immutable", "Expression"],
- fields: {
- openingFragment: {
- validate: (0, _utils.assertNodeType)("JSXOpeningFragment")
- },
- closingFragment: {
- validate: (0, _utils.assertNodeType)("JSXClosingFragment")
- },
- children: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("JSXText", "JSXExpressionContainer", "JSXSpreadChild", "JSXElement", "JSXFragment")))
- }
- }
-});
-(0, _utils.default)("JSXOpeningFragment", {
- aliases: ["JSX", "Immutable"]
-});
-(0, _utils.default)("JSXClosingFragment", {
- aliases: ["JSX", "Immutable"]
-});
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/definitions/misc.js b/node_modules/@babel/preset-env/node_modules/@babel/types/lib/definitions/misc.js
deleted file mode 100644
index 6568d83b..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/definitions/misc.js
+++ /dev/null
@@ -1,31 +0,0 @@
-"use strict";
-
-var _utils = _interopRequireWildcard(require("./utils"));
-
-var _placeholders = require("./placeholders");
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-(0, _utils.default)("Noop", {
- visitor: []
-});
-(0, _utils.default)("Placeholder", {
- visitor: [],
- builder: ["expectedNode", "name"],
- fields: {
- name: {
- validate: (0, _utils.assertNodeType)("Identifier")
- },
- expectedNode: {
- validate: (0, _utils.assertOneOf)(..._placeholders.PLACEHOLDERS)
- }
- }
-});
-(0, _utils.default)("V8IntrinsicIdentifier", {
- builder: ["name"],
- fields: {
- name: {
- validate: (0, _utils.assertValueType)("string")
- }
- }
-});
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/definitions/placeholders.js b/node_modules/@babel/preset-env/node_modules/@babel/types/lib/definitions/placeholders.js
deleted file mode 100644
index 0edf7b2e..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/definitions/placeholders.js
+++ /dev/null
@@ -1,33 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.PLACEHOLDERS_FLIPPED_ALIAS = exports.PLACEHOLDERS_ALIAS = exports.PLACEHOLDERS = void 0;
-
-var _utils = require("./utils");
-
-const PLACEHOLDERS = ["Identifier", "StringLiteral", "Expression", "Statement", "Declaration", "BlockStatement", "ClassBody", "Pattern"];
-exports.PLACEHOLDERS = PLACEHOLDERS;
-const PLACEHOLDERS_ALIAS = {
- Declaration: ["Statement"],
- Pattern: ["PatternLike", "LVal"]
-};
-exports.PLACEHOLDERS_ALIAS = PLACEHOLDERS_ALIAS;
-
-for (const type of PLACEHOLDERS) {
- const alias = _utils.ALIAS_KEYS[type];
- if (alias && alias.length) PLACEHOLDERS_ALIAS[type] = alias;
-}
-
-const PLACEHOLDERS_FLIPPED_ALIAS = {};
-exports.PLACEHOLDERS_FLIPPED_ALIAS = PLACEHOLDERS_FLIPPED_ALIAS;
-Object.keys(PLACEHOLDERS_ALIAS).forEach(type => {
- PLACEHOLDERS_ALIAS[type].forEach(alias => {
- if (!Object.hasOwnProperty.call(PLACEHOLDERS_FLIPPED_ALIAS, alias)) {
- PLACEHOLDERS_FLIPPED_ALIAS[alias] = [];
- }
-
- PLACEHOLDERS_FLIPPED_ALIAS[alias].push(type);
- });
-});
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/definitions/typescript.js b/node_modules/@babel/preset-env/node_modules/@babel/types/lib/definitions/typescript.js
deleted file mode 100644
index 0550ee75..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/definitions/typescript.js
+++ /dev/null
@@ -1,413 +0,0 @@
-"use strict";
-
-var _utils = _interopRequireWildcard(require("./utils"));
-
-var _core = require("./core");
-
-var _es = require("./es2015");
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-const bool = (0, _utils.assertValueType)("boolean");
-const tSFunctionTypeAnnotationCommon = {
- returnType: {
- validate: (0, _utils.assertNodeType)("TSTypeAnnotation", "Noop"),
- optional: true
- },
- typeParameters: {
- validate: (0, _utils.assertNodeType)("TSTypeParameterDeclaration", "Noop"),
- optional: true
- }
-};
-(0, _utils.default)("TSParameterProperty", {
- aliases: ["LVal"],
- visitor: ["parameter"],
- fields: {
- accessibility: {
- validate: (0, _utils.assertOneOf)("public", "private", "protected"),
- optional: true
- },
- readonly: {
- validate: (0, _utils.assertValueType)("boolean"),
- optional: true
- },
- parameter: {
- validate: (0, _utils.assertNodeType)("Identifier", "AssignmentPattern")
- }
- }
-});
-(0, _utils.default)("TSDeclareFunction", {
- aliases: ["Statement", "Declaration"],
- visitor: ["id", "typeParameters", "params", "returnType"],
- fields: Object.assign({}, _core.functionDeclarationCommon, {}, tSFunctionTypeAnnotationCommon)
-});
-(0, _utils.default)("TSDeclareMethod", {
- visitor: ["decorators", "key", "typeParameters", "params", "returnType"],
- fields: Object.assign({}, _es.classMethodOrDeclareMethodCommon, {}, tSFunctionTypeAnnotationCommon)
-});
-(0, _utils.default)("TSQualifiedName", {
- aliases: ["TSEntityName"],
- visitor: ["left", "right"],
- fields: {
- left: (0, _utils.validateType)("TSEntityName"),
- right: (0, _utils.validateType)("Identifier")
- }
-});
-const signatureDeclarationCommon = {
- typeParameters: (0, _utils.validateOptionalType)("TSTypeParameterDeclaration"),
- parameters: (0, _utils.validateArrayOfType)(["Identifier", "RestElement"]),
- typeAnnotation: (0, _utils.validateOptionalType)("TSTypeAnnotation")
-};
-const callConstructSignatureDeclaration = {
- aliases: ["TSTypeElement"],
- visitor: ["typeParameters", "parameters", "typeAnnotation"],
- fields: signatureDeclarationCommon
-};
-(0, _utils.default)("TSCallSignatureDeclaration", callConstructSignatureDeclaration);
-(0, _utils.default)("TSConstructSignatureDeclaration", callConstructSignatureDeclaration);
-const namedTypeElementCommon = {
- key: (0, _utils.validateType)("Expression"),
- computed: (0, _utils.validate)(bool),
- optional: (0, _utils.validateOptional)(bool)
-};
-(0, _utils.default)("TSPropertySignature", {
- aliases: ["TSTypeElement"],
- visitor: ["key", "typeAnnotation", "initializer"],
- fields: Object.assign({}, namedTypeElementCommon, {
- readonly: (0, _utils.validateOptional)(bool),
- typeAnnotation: (0, _utils.validateOptionalType)("TSTypeAnnotation"),
- initializer: (0, _utils.validateOptionalType)("Expression")
- })
-});
-(0, _utils.default)("TSMethodSignature", {
- aliases: ["TSTypeElement"],
- visitor: ["key", "typeParameters", "parameters", "typeAnnotation"],
- fields: Object.assign({}, signatureDeclarationCommon, {}, namedTypeElementCommon)
-});
-(0, _utils.default)("TSIndexSignature", {
- aliases: ["TSTypeElement"],
- visitor: ["parameters", "typeAnnotation"],
- fields: {
- readonly: (0, _utils.validateOptional)(bool),
- parameters: (0, _utils.validateArrayOfType)("Identifier"),
- typeAnnotation: (0, _utils.validateOptionalType)("TSTypeAnnotation")
- }
-});
-const tsKeywordTypes = ["TSAnyKeyword", "TSBooleanKeyword", "TSBigIntKeyword", "TSNeverKeyword", "TSNullKeyword", "TSNumberKeyword", "TSObjectKeyword", "TSStringKeyword", "TSSymbolKeyword", "TSUndefinedKeyword", "TSUnknownKeyword", "TSVoidKeyword"];
-
-for (const type of tsKeywordTypes) {
- (0, _utils.default)(type, {
- aliases: ["TSType"],
- visitor: [],
- fields: {}
- });
-}
-
-(0, _utils.default)("TSThisType", {
- aliases: ["TSType"],
- visitor: [],
- fields: {}
-});
-const fnOrCtr = {
- aliases: ["TSType"],
- visitor: ["typeParameters", "parameters", "typeAnnotation"],
- fields: signatureDeclarationCommon
-};
-(0, _utils.default)("TSFunctionType", fnOrCtr);
-(0, _utils.default)("TSConstructorType", fnOrCtr);
-(0, _utils.default)("TSTypeReference", {
- aliases: ["TSType"],
- visitor: ["typeName", "typeParameters"],
- fields: {
- typeName: (0, _utils.validateType)("TSEntityName"),
- typeParameters: (0, _utils.validateOptionalType)("TSTypeParameterInstantiation")
- }
-});
-(0, _utils.default)("TSTypePredicate", {
- aliases: ["TSType"],
- visitor: ["parameterName", "typeAnnotation"],
- fields: {
- parameterName: (0, _utils.validateType)(["Identifier", "TSThisType"]),
- typeAnnotation: (0, _utils.validateType)("TSTypeAnnotation")
- }
-});
-(0, _utils.default)("TSTypeQuery", {
- aliases: ["TSType"],
- visitor: ["exprName"],
- fields: {
- exprName: (0, _utils.validateType)(["TSEntityName", "TSImportType"])
- }
-});
-(0, _utils.default)("TSTypeLiteral", {
- aliases: ["TSType"],
- visitor: ["members"],
- fields: {
- members: (0, _utils.validateArrayOfType)("TSTypeElement")
- }
-});
-(0, _utils.default)("TSArrayType", {
- aliases: ["TSType"],
- visitor: ["elementType"],
- fields: {
- elementType: (0, _utils.validateType)("TSType")
- }
-});
-(0, _utils.default)("TSTupleType", {
- aliases: ["TSType"],
- visitor: ["elementTypes"],
- fields: {
- elementTypes: (0, _utils.validateArrayOfType)("TSType")
- }
-});
-(0, _utils.default)("TSOptionalType", {
- aliases: ["TSType"],
- visitor: ["typeAnnotation"],
- fields: {
- typeAnnotation: (0, _utils.validateType)("TSType")
- }
-});
-(0, _utils.default)("TSRestType", {
- aliases: ["TSType"],
- visitor: ["typeAnnotation"],
- fields: {
- typeAnnotation: (0, _utils.validateType)("TSType")
- }
-});
-const unionOrIntersection = {
- aliases: ["TSType"],
- visitor: ["types"],
- fields: {
- types: (0, _utils.validateArrayOfType)("TSType")
- }
-};
-(0, _utils.default)("TSUnionType", unionOrIntersection);
-(0, _utils.default)("TSIntersectionType", unionOrIntersection);
-(0, _utils.default)("TSConditionalType", {
- aliases: ["TSType"],
- visitor: ["checkType", "extendsType", "trueType", "falseType"],
- fields: {
- checkType: (0, _utils.validateType)("TSType"),
- extendsType: (0, _utils.validateType)("TSType"),
- trueType: (0, _utils.validateType)("TSType"),
- falseType: (0, _utils.validateType)("TSType")
- }
-});
-(0, _utils.default)("TSInferType", {
- aliases: ["TSType"],
- visitor: ["typeParameter"],
- fields: {
- typeParameter: (0, _utils.validateType)("TSTypeParameter")
- }
-});
-(0, _utils.default)("TSParenthesizedType", {
- aliases: ["TSType"],
- visitor: ["typeAnnotation"],
- fields: {
- typeAnnotation: (0, _utils.validateType)("TSType")
- }
-});
-(0, _utils.default)("TSTypeOperator", {
- aliases: ["TSType"],
- visitor: ["typeAnnotation"],
- fields: {
- operator: (0, _utils.validate)((0, _utils.assertValueType)("string")),
- typeAnnotation: (0, _utils.validateType)("TSType")
- }
-});
-(0, _utils.default)("TSIndexedAccessType", {
- aliases: ["TSType"],
- visitor: ["objectType", "indexType"],
- fields: {
- objectType: (0, _utils.validateType)("TSType"),
- indexType: (0, _utils.validateType)("TSType")
- }
-});
-(0, _utils.default)("TSMappedType", {
- aliases: ["TSType"],
- visitor: ["typeParameter", "typeAnnotation"],
- fields: {
- readonly: (0, _utils.validateOptional)(bool),
- typeParameter: (0, _utils.validateType)("TSTypeParameter"),
- optional: (0, _utils.validateOptional)(bool),
- typeAnnotation: (0, _utils.validateOptionalType)("TSType")
- }
-});
-(0, _utils.default)("TSLiteralType", {
- aliases: ["TSType"],
- visitor: ["literal"],
- fields: {
- literal: (0, _utils.validateType)(["NumericLiteral", "StringLiteral", "BooleanLiteral"])
- }
-});
-(0, _utils.default)("TSExpressionWithTypeArguments", {
- aliases: ["TSType"],
- visitor: ["expression", "typeParameters"],
- fields: {
- expression: (0, _utils.validateType)("TSEntityName"),
- typeParameters: (0, _utils.validateOptionalType)("TSTypeParameterInstantiation")
- }
-});
-(0, _utils.default)("TSInterfaceDeclaration", {
- aliases: ["Statement", "Declaration"],
- visitor: ["id", "typeParameters", "extends", "body"],
- fields: {
- declare: (0, _utils.validateOptional)(bool),
- id: (0, _utils.validateType)("Identifier"),
- typeParameters: (0, _utils.validateOptionalType)("TSTypeParameterDeclaration"),
- extends: (0, _utils.validateOptional)((0, _utils.arrayOfType)("TSExpressionWithTypeArguments")),
- body: (0, _utils.validateType)("TSInterfaceBody")
- }
-});
-(0, _utils.default)("TSInterfaceBody", {
- visitor: ["body"],
- fields: {
- body: (0, _utils.validateArrayOfType)("TSTypeElement")
- }
-});
-(0, _utils.default)("TSTypeAliasDeclaration", {
- aliases: ["Statement", "Declaration"],
- visitor: ["id", "typeParameters", "typeAnnotation"],
- fields: {
- declare: (0, _utils.validateOptional)(bool),
- id: (0, _utils.validateType)("Identifier"),
- typeParameters: (0, _utils.validateOptionalType)("TSTypeParameterDeclaration"),
- typeAnnotation: (0, _utils.validateType)("TSType")
- }
-});
-(0, _utils.default)("TSAsExpression", {
- aliases: ["Expression"],
- visitor: ["expression", "typeAnnotation"],
- fields: {
- expression: (0, _utils.validateType)("Expression"),
- typeAnnotation: (0, _utils.validateType)("TSType")
- }
-});
-(0, _utils.default)("TSTypeAssertion", {
- aliases: ["Expression"],
- visitor: ["typeAnnotation", "expression"],
- fields: {
- typeAnnotation: (0, _utils.validateType)("TSType"),
- expression: (0, _utils.validateType)("Expression")
- }
-});
-(0, _utils.default)("TSEnumDeclaration", {
- aliases: ["Statement", "Declaration"],
- visitor: ["id", "members"],
- fields: {
- declare: (0, _utils.validateOptional)(bool),
- const: (0, _utils.validateOptional)(bool),
- id: (0, _utils.validateType)("Identifier"),
- members: (0, _utils.validateArrayOfType)("TSEnumMember"),
- initializer: (0, _utils.validateOptionalType)("Expression")
- }
-});
-(0, _utils.default)("TSEnumMember", {
- visitor: ["id", "initializer"],
- fields: {
- id: (0, _utils.validateType)(["Identifier", "StringLiteral"]),
- initializer: (0, _utils.validateOptionalType)("Expression")
- }
-});
-(0, _utils.default)("TSModuleDeclaration", {
- aliases: ["Statement", "Declaration"],
- visitor: ["id", "body"],
- fields: {
- declare: (0, _utils.validateOptional)(bool),
- global: (0, _utils.validateOptional)(bool),
- id: (0, _utils.validateType)(["Identifier", "StringLiteral"]),
- body: (0, _utils.validateType)(["TSModuleBlock", "TSModuleDeclaration"])
- }
-});
-(0, _utils.default)("TSModuleBlock", {
- aliases: ["Scopable", "Block", "BlockParent"],
- visitor: ["body"],
- fields: {
- body: (0, _utils.validateArrayOfType)("Statement")
- }
-});
-(0, _utils.default)("TSImportType", {
- aliases: ["TSType"],
- visitor: ["argument", "qualifier", "typeParameters"],
- fields: {
- argument: (0, _utils.validateType)("StringLiteral"),
- qualifier: (0, _utils.validateOptionalType)("TSEntityName"),
- typeParameters: (0, _utils.validateOptionalType)("TSTypeParameterInstantiation")
- }
-});
-(0, _utils.default)("TSImportEqualsDeclaration", {
- aliases: ["Statement"],
- visitor: ["id", "moduleReference"],
- fields: {
- isExport: (0, _utils.validate)(bool),
- id: (0, _utils.validateType)("Identifier"),
- moduleReference: (0, _utils.validateType)(["TSEntityName", "TSExternalModuleReference"])
- }
-});
-(0, _utils.default)("TSExternalModuleReference", {
- visitor: ["expression"],
- fields: {
- expression: (0, _utils.validateType)("StringLiteral")
- }
-});
-(0, _utils.default)("TSNonNullExpression", {
- aliases: ["Expression"],
- visitor: ["expression"],
- fields: {
- expression: (0, _utils.validateType)("Expression")
- }
-});
-(0, _utils.default)("TSExportAssignment", {
- aliases: ["Statement"],
- visitor: ["expression"],
- fields: {
- expression: (0, _utils.validateType)("Expression")
- }
-});
-(0, _utils.default)("TSNamespaceExportDeclaration", {
- aliases: ["Statement"],
- visitor: ["id"],
- fields: {
- id: (0, _utils.validateType)("Identifier")
- }
-});
-(0, _utils.default)("TSTypeAnnotation", {
- visitor: ["typeAnnotation"],
- fields: {
- typeAnnotation: {
- validate: (0, _utils.assertNodeType)("TSType")
- }
- }
-});
-(0, _utils.default)("TSTypeParameterInstantiation", {
- visitor: ["params"],
- fields: {
- params: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("TSType")))
- }
- }
-});
-(0, _utils.default)("TSTypeParameterDeclaration", {
- visitor: ["params"],
- fields: {
- params: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("TSTypeParameter")))
- }
- }
-});
-(0, _utils.default)("TSTypeParameter", {
- builder: ["constraint", "default", "name"],
- visitor: ["constraint", "default"],
- fields: {
- name: {
- validate: (0, _utils.assertValueType)("string")
- },
- constraint: {
- validate: (0, _utils.assertNodeType)("TSType"),
- optional: true
- },
- default: {
- validate: (0, _utils.assertNodeType)("TSType"),
- optional: true
- }
- }
-});
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/definitions/utils.js b/node_modules/@babel/preset-env/node_modules/@babel/types/lib/definitions/utils.js
deleted file mode 100644
index 95ba9740..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/definitions/utils.js
+++ /dev/null
@@ -1,249 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.validate = validate;
-exports.typeIs = typeIs;
-exports.validateType = validateType;
-exports.validateOptional = validateOptional;
-exports.validateOptionalType = validateOptionalType;
-exports.arrayOf = arrayOf;
-exports.arrayOfType = arrayOfType;
-exports.validateArrayOfType = validateArrayOfType;
-exports.assertEach = assertEach;
-exports.assertOneOf = assertOneOf;
-exports.assertNodeType = assertNodeType;
-exports.assertNodeOrValueType = assertNodeOrValueType;
-exports.assertValueType = assertValueType;
-exports.assertShape = assertShape;
-exports.chain = chain;
-exports.default = defineType;
-exports.DEPRECATED_KEYS = exports.BUILDER_KEYS = exports.NODE_FIELDS = exports.FLIPPED_ALIAS_KEYS = exports.ALIAS_KEYS = exports.VISITOR_KEYS = void 0;
-
-var _is = _interopRequireDefault(require("../validators/is"));
-
-var _validate = require("../validators/validate");
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-const VISITOR_KEYS = {};
-exports.VISITOR_KEYS = VISITOR_KEYS;
-const ALIAS_KEYS = {};
-exports.ALIAS_KEYS = ALIAS_KEYS;
-const FLIPPED_ALIAS_KEYS = {};
-exports.FLIPPED_ALIAS_KEYS = FLIPPED_ALIAS_KEYS;
-const NODE_FIELDS = {};
-exports.NODE_FIELDS = NODE_FIELDS;
-const BUILDER_KEYS = {};
-exports.BUILDER_KEYS = BUILDER_KEYS;
-const DEPRECATED_KEYS = {};
-exports.DEPRECATED_KEYS = DEPRECATED_KEYS;
-
-function getType(val) {
- if (Array.isArray(val)) {
- return "array";
- } else if (val === null) {
- return "null";
- } else if (val === undefined) {
- return "undefined";
- } else {
- return typeof val;
- }
-}
-
-function validate(validate) {
- return {
- validate
- };
-}
-
-function typeIs(typeName) {
- return typeof typeName === "string" ? assertNodeType(typeName) : assertNodeType(...typeName);
-}
-
-function validateType(typeName) {
- return validate(typeIs(typeName));
-}
-
-function validateOptional(validate) {
- return {
- validate,
- optional: true
- };
-}
-
-function validateOptionalType(typeName) {
- return {
- validate: typeIs(typeName),
- optional: true
- };
-}
-
-function arrayOf(elementType) {
- return chain(assertValueType("array"), assertEach(elementType));
-}
-
-function arrayOfType(typeName) {
- return arrayOf(typeIs(typeName));
-}
-
-function validateArrayOfType(typeName) {
- return validate(arrayOfType(typeName));
-}
-
-function assertEach(callback) {
- function validator(node, key, val) {
- if (!Array.isArray(val)) return;
-
- for (let i = 0; i < val.length; i++) {
- callback(node, `${key}[${i}]`, val[i]);
- }
- }
-
- validator.each = callback;
- return validator;
-}
-
-function assertOneOf(...values) {
- function validate(node, key, val) {
- if (values.indexOf(val) < 0) {
- throw new TypeError(`Property ${key} expected value to be one of ${JSON.stringify(values)} but got ${JSON.stringify(val)}`);
- }
- }
-
- validate.oneOf = values;
- return validate;
-}
-
-function assertNodeType(...types) {
- function validate(node, key, val) {
- let valid = false;
-
- for (const type of types) {
- if ((0, _is.default)(type, val)) {
- valid = true;
- break;
- }
- }
-
- if (!valid) {
- throw new TypeError(`Property ${key} of ${node.type} expected node to be of a type ${JSON.stringify(types)} ` + `but instead got ${JSON.stringify(val && val.type)}`);
- }
- }
-
- validate.oneOfNodeTypes = types;
- return validate;
-}
-
-function assertNodeOrValueType(...types) {
- function validate(node, key, val) {
- let valid = false;
-
- for (const type of types) {
- if (getType(val) === type || (0, _is.default)(type, val)) {
- valid = true;
- break;
- }
- }
-
- if (!valid) {
- throw new TypeError(`Property ${key} of ${node.type} expected node to be of a type ${JSON.stringify(types)} ` + `but instead got ${JSON.stringify(val && val.type)}`);
- }
- }
-
- validate.oneOfNodeOrValueTypes = types;
- return validate;
-}
-
-function assertValueType(type) {
- function validate(node, key, val) {
- const valid = getType(val) === type;
-
- if (!valid) {
- throw new TypeError(`Property ${key} expected type of ${type} but got ${getType(val)}`);
- }
- }
-
- validate.type = type;
- return validate;
-}
-
-function assertShape(shape) {
- function validate(node, key, val) {
- const errors = [];
-
- for (const property of Object.keys(shape)) {
- try {
- (0, _validate.validateField)(node, property, val[property], shape[property]);
- } catch (error) {
- if (error instanceof TypeError) {
- errors.push(error.message);
- continue;
- }
-
- throw error;
- }
- }
-
- if (errors.length) {
- throw new TypeError(`Property ${key} of ${node.type} expected to have the following:\n${errors.join("\n")}`);
- }
- }
-
- validate.shapeOf = shape;
- return validate;
-}
-
-function chain(...fns) {
- function validate(...args) {
- for (const fn of fns) {
- fn(...args);
- }
- }
-
- validate.chainOf = fns;
- return validate;
-}
-
-function defineType(type, opts = {}) {
- const inherits = opts.inherits && store[opts.inherits] || {};
- const fields = opts.fields || inherits.fields || {};
- const visitor = opts.visitor || inherits.visitor || [];
- const aliases = opts.aliases || inherits.aliases || [];
- const builder = opts.builder || inherits.builder || opts.visitor || [];
-
- if (opts.deprecatedAlias) {
- DEPRECATED_KEYS[opts.deprecatedAlias] = type;
- }
-
- for (const key of visitor.concat(builder)) {
- fields[key] = fields[key] || {};
- }
-
- for (const key of Object.keys(fields)) {
- const field = fields[key];
-
- if (builder.indexOf(key) === -1) {
- field.optional = true;
- }
-
- if (field.default === undefined) {
- field.default = null;
- } else if (!field.validate) {
- field.validate = assertValueType(getType(field.default));
- }
- }
-
- VISITOR_KEYS[type] = opts.visitor = visitor;
- BUILDER_KEYS[type] = opts.builder = builder;
- NODE_FIELDS[type] = opts.fields = fields;
- ALIAS_KEYS[type] = opts.aliases = aliases;
- aliases.forEach(alias => {
- FLIPPED_ALIAS_KEYS[alias] = FLIPPED_ALIAS_KEYS[alias] || [];
- FLIPPED_ALIAS_KEYS[alias].push(type);
- });
- store[type] = opts;
-}
-
-const store = {};
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/index.d.ts b/node_modules/@babel/preset-env/node_modules/@babel/types/lib/index.d.ts
deleted file mode 100644
index 99810bfa..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/index.d.ts
+++ /dev/null
@@ -1,2108 +0,0 @@
-// NOTE: This file is autogenerated. Do not modify.
-// See packages/babel-types/scripts/generators/typescript.js for script used.
-
-interface BaseComment {
- value: string;
- start: number;
- end: number;
- loc: SourceLocation;
- type: "CommentBlock" | "CommentLine";
-}
-
-export interface CommentBlock extends BaseComment {
- type: "CommentBlock";
-}
-
-export interface CommentLine extends BaseComment {
- type: "CommentLine";
-}
-
-export type Comment = CommentBlock | CommentLine;
-
-export interface SourceLocation {
- start: {
- line: number;
- column: number;
- };
-
- end: {
- line: number;
- column: number;
- };
-}
-
-interface BaseNode {
- leadingComments: ReadonlyArray | null;
- innerComments: ReadonlyArray | null;
- trailingComments: ReadonlyArray | null;
- start: number | null;
- end: number | null;
- loc: SourceLocation | null;
- type: Node["type"];
-}
-
-export type Node = AnyTypeAnnotation | ArgumentPlaceholder | ArrayExpression | ArrayPattern | ArrayTypeAnnotation | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BigIntLiteral | Binary | BinaryExpression | BindExpression | Block | BlockParent | BlockStatement | BooleanLiteral | BooleanLiteralTypeAnnotation | BooleanTypeAnnotation | BreakStatement | CallExpression | CatchClause | Class | ClassBody | ClassDeclaration | ClassExpression | ClassImplements | ClassMethod | ClassPrivateMethod | ClassPrivateProperty | ClassProperty | CompletionStatement | Conditional | ConditionalExpression | ContinueStatement | DebuggerStatement | Declaration | DeclareClass | DeclareExportAllDeclaration | DeclareExportDeclaration | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareOpaqueType | DeclareTypeAlias | DeclareVariable | DeclaredPredicate | Decorator | Directive | DirectiveLiteral | DoExpression | DoWhileStatement | EmptyStatement | EmptyTypeAnnotation | ExistsTypeAnnotation | ExportAllDeclaration | ExportDeclaration | ExportDefaultDeclaration | ExportDefaultSpecifier | ExportNamedDeclaration | ExportNamespaceSpecifier | ExportSpecifier | Expression | ExpressionStatement | ExpressionWrapper | File | Flow | FlowBaseAnnotation | FlowDeclaration | FlowPredicate | FlowType | For | ForInStatement | ForOfStatement | ForStatement | ForXStatement | Function | FunctionDeclaration | FunctionExpression | FunctionParent | FunctionTypeAnnotation | FunctionTypeParam | GenericTypeAnnotation | Identifier | IfStatement | Immutable | Import | ImportDeclaration | ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier | InferredPredicate | InterfaceDeclaration | InterfaceExtends | InterfaceTypeAnnotation | InterpreterDirective | IntersectionTypeAnnotation | JSX | JSXAttribute | JSXClosingElement | JSXClosingFragment | JSXElement | JSXEmptyExpression | JSXExpressionContainer | JSXFragment | JSXIdentifier | JSXMemberExpression | JSXNamespacedName | JSXOpeningElement | JSXOpeningFragment | JSXSpreadAttribute | JSXSpreadChild | JSXText | LVal | LabeledStatement | Literal | LogicalExpression | Loop | MemberExpression | MetaProperty | Method | MixedTypeAnnotation | ModuleDeclaration | ModuleSpecifier | NewExpression | Noop | NullLiteral | NullLiteralTypeAnnotation | NullableTypeAnnotation | NumberLiteral | NumberLiteralTypeAnnotation | NumberTypeAnnotation | NumericLiteral | ObjectExpression | ObjectMember | ObjectMethod | ObjectPattern | ObjectProperty | ObjectTypeAnnotation | ObjectTypeCallProperty | ObjectTypeIndexer | ObjectTypeInternalSlot | ObjectTypeProperty | ObjectTypeSpreadProperty | OpaqueType | OptionalCallExpression | OptionalMemberExpression | ParenthesizedExpression | Pattern | PatternLike | PipelineBareFunction | PipelinePrimaryTopicReference | PipelineTopicExpression | Placeholder | Private | PrivateName | Program | Property | Pureish | QualifiedTypeIdentifier | RegExpLiteral | RegexLiteral | RestElement | RestProperty | ReturnStatement | Scopable | SequenceExpression | SpreadElement | SpreadProperty | Statement | StringLiteral | StringLiteralTypeAnnotation | StringTypeAnnotation | Super | SwitchCase | SwitchStatement | TSAnyKeyword | TSArrayType | TSAsExpression | TSBigIntKeyword | TSBooleanKeyword | TSCallSignatureDeclaration | TSConditionalType | TSConstructSignatureDeclaration | TSConstructorType | TSDeclareFunction | TSDeclareMethod | TSEntityName | TSEnumDeclaration | TSEnumMember | TSExportAssignment | TSExpressionWithTypeArguments | TSExternalModuleReference | TSFunctionType | TSImportEqualsDeclaration | TSImportType | TSIndexSignature | TSIndexedAccessType | TSInferType | TSInterfaceBody | TSInterfaceDeclaration | TSIntersectionType | TSLiteralType | TSMappedType | TSMethodSignature | TSModuleBlock | TSModuleDeclaration | TSNamespaceExportDeclaration | TSNeverKeyword | TSNonNullExpression | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSOptionalType | TSParameterProperty | TSParenthesizedType | TSPropertySignature | TSQualifiedName | TSRestType | TSStringKeyword | TSSymbolKeyword | TSThisType | TSTupleType | TSType | TSTypeAliasDeclaration | TSTypeAnnotation | TSTypeAssertion | TSTypeElement | TSTypeLiteral | TSTypeOperator | TSTypeParameter | TSTypeParameterDeclaration | TSTypeParameterInstantiation | TSTypePredicate | TSTypeQuery | TSTypeReference | TSUndefinedKeyword | TSUnionType | TSUnknownKeyword | TSVoidKeyword | TaggedTemplateExpression | TemplateElement | TemplateLiteral | Terminatorless | ThisExpression | ThisTypeAnnotation | ThrowStatement | TryStatement | TupleTypeAnnotation | TypeAlias | TypeAnnotation | TypeCastExpression | TypeParameter | TypeParameterDeclaration | TypeParameterInstantiation | TypeofTypeAnnotation | UnaryExpression | UnaryLike | UnionTypeAnnotation | UpdateExpression | UserWhitespacable | V8IntrinsicIdentifier | VariableDeclaration | VariableDeclarator | Variance | VoidTypeAnnotation | While | WhileStatement | WithStatement | YieldExpression;
-
-export interface ArrayExpression extends BaseNode {
- type: "ArrayExpression";
- elements: Array;
-}
-
-export interface AssignmentExpression extends BaseNode {
- type: "AssignmentExpression";
- operator: string;
- left: LVal;
- right: Expression;
-}
-
-export interface BinaryExpression extends BaseNode {
- type: "BinaryExpression";
- operator: "+" | "-" | "/" | "%" | "*" | "**" | "&" | "|" | ">>" | ">>>" | "<<" | "^" | "==" | "===" | "!=" | "!==" | "in" | "instanceof" | ">" | "<" | ">=" | "<=";
- left: Expression;
- right: Expression;
-}
-
-export interface InterpreterDirective extends BaseNode {
- type: "InterpreterDirective";
- value: string;
-}
-
-export interface Directive extends BaseNode {
- type: "Directive";
- value: DirectiveLiteral;
-}
-
-export interface DirectiveLiteral extends BaseNode {
- type: "DirectiveLiteral";
- value: string;
-}
-
-export interface BlockStatement extends BaseNode {
- type: "BlockStatement";
- body: Array;
- directives: Array;
-}
-
-export interface BreakStatement extends BaseNode {
- type: "BreakStatement";
- label: Identifier | null;
-}
-
-export interface CallExpression extends BaseNode {
- type: "CallExpression";
- callee: Expression | V8IntrinsicIdentifier;
- arguments: Array;
- optional: true | false | null;
- typeArguments: TypeParameterInstantiation | null;
- typeParameters: TSTypeParameterInstantiation | null;
-}
-
-export interface CatchClause extends BaseNode {
- type: "CatchClause";
- param: Identifier | null;
- body: BlockStatement;
-}
-
-export interface ConditionalExpression extends BaseNode {
- type: "ConditionalExpression";
- test: Expression;
- consequent: Expression;
- alternate: Expression;
-}
-
-export interface ContinueStatement extends BaseNode {
- type: "ContinueStatement";
- label: Identifier | null;
-}
-
-export interface DebuggerStatement extends BaseNode {
- type: "DebuggerStatement";
-}
-
-export interface DoWhileStatement extends BaseNode {
- type: "DoWhileStatement";
- test: Expression;
- body: Statement;
-}
-
-export interface EmptyStatement extends BaseNode {
- type: "EmptyStatement";
-}
-
-export interface ExpressionStatement extends BaseNode {
- type: "ExpressionStatement";
- expression: Expression;
-}
-
-export interface File extends BaseNode {
- type: "File";
- program: Program;
- comments: any;
- tokens: any;
-}
-
-export interface ForInStatement extends BaseNode {
- type: "ForInStatement";
- left: VariableDeclaration | LVal;
- right: Expression;
- body: Statement;
-}
-
-export interface ForStatement extends BaseNode {
- type: "ForStatement";
- init: VariableDeclaration | Expression | null;
- test: Expression | null;
- update: Expression | null;
- body: Statement;
-}
-
-export interface FunctionDeclaration extends BaseNode {
- type: "FunctionDeclaration";
- id: Identifier | null;
- params: Array;
- body: BlockStatement;
- generator: boolean;
- async: boolean;
- declare: boolean | null;
- returnType: TypeAnnotation | TSTypeAnnotation | Noop | null;
- typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
-}
-
-export interface FunctionExpression extends BaseNode {
- type: "FunctionExpression";
- id: Identifier | null;
- params: Array;
- body: BlockStatement;
- generator: boolean;
- async: boolean;
- returnType: TypeAnnotation | TSTypeAnnotation | Noop | null;
- typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
-}
-
-export interface Identifier extends BaseNode {
- type: "Identifier";
- name: string;
- decorators: Array | null;
- optional: boolean | null;
- typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
-}
-
-export interface IfStatement extends BaseNode {
- type: "IfStatement";
- test: Expression;
- consequent: Statement;
- alternate: Statement | null;
-}
-
-export interface LabeledStatement extends BaseNode {
- type: "LabeledStatement";
- label: Identifier;
- body: Statement;
-}
-
-export interface StringLiteral extends BaseNode {
- type: "StringLiteral";
- value: string;
-}
-
-export interface NumericLiteral extends BaseNode {
- type: "NumericLiteral";
- value: number;
-}
-
-export interface NullLiteral extends BaseNode {
- type: "NullLiteral";
-}
-
-export interface BooleanLiteral extends BaseNode {
- type: "BooleanLiteral";
- value: boolean;
-}
-
-export interface RegExpLiteral extends BaseNode {
- type: "RegExpLiteral";
- pattern: string;
- flags: string;
-}
-
-export interface LogicalExpression extends BaseNode {
- type: "LogicalExpression";
- operator: "||" | "&&" | "??";
- left: Expression;
- right: Expression;
-}
-
-export interface MemberExpression extends BaseNode {
- type: "MemberExpression";
- object: Expression;
- property: any;
- computed: boolean;
- optional: true | false | null;
-}
-
-export interface NewExpression extends BaseNode {
- type: "NewExpression";
- callee: Expression | V8IntrinsicIdentifier;
- arguments: Array;
- optional: true | false | null;
- typeArguments: TypeParameterInstantiation | null;
- typeParameters: TSTypeParameterInstantiation | null;
-}
-
-export interface Program extends BaseNode {
- type: "Program";
- body: Array;
- directives: Array;
- sourceType: "script" | "module";
- interpreter: InterpreterDirective | null;
- sourceFile: string | null;
-}
-
-export interface ObjectExpression extends BaseNode {
- type: "ObjectExpression";
- properties: Array;
-}
-
-export interface ObjectMethod extends BaseNode {
- type: "ObjectMethod";
- kind: "method" | "get" | "set";
- key: any;
- params: Array;
- body: BlockStatement;
- computed: boolean;
- async: boolean;
- decorators: Array | null;
- generator: boolean;
- returnType: TypeAnnotation | TSTypeAnnotation | Noop | null;
- typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
-}
-
-export interface ObjectProperty extends BaseNode {
- type: "ObjectProperty";
- key: any;
- value: Expression | PatternLike;
- computed: boolean;
- shorthand: boolean;
- decorators: Array | null;
-}
-
-export interface RestElement extends BaseNode {
- type: "RestElement";
- argument: LVal;
- decorators: Array | null;
- typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
-}
-
-export interface ReturnStatement extends BaseNode {
- type: "ReturnStatement";
- argument: Expression | null;
-}
-
-export interface SequenceExpression extends BaseNode {
- type: "SequenceExpression";
- expressions: Array;
-}
-
-export interface ParenthesizedExpression extends BaseNode {
- type: "ParenthesizedExpression";
- expression: Expression;
-}
-
-export interface SwitchCase extends BaseNode {
- type: "SwitchCase";
- test: Expression | null;
- consequent: Array;
-}
-
-export interface SwitchStatement extends BaseNode {
- type: "SwitchStatement";
- discriminant: Expression;
- cases: Array;
-}
-
-export interface ThisExpression extends BaseNode {
- type: "ThisExpression";
-}
-
-export interface ThrowStatement extends BaseNode {
- type: "ThrowStatement";
- argument: Expression;
-}
-
-export interface TryStatement extends BaseNode {
- type: "TryStatement";
- block: BlockStatement;
- handler: CatchClause | null;
- finalizer: BlockStatement | null;
-}
-
-export interface UnaryExpression extends BaseNode {
- type: "UnaryExpression";
- operator: "void" | "throw" | "delete" | "!" | "+" | "-" | "~" | "typeof";
- argument: Expression;
- prefix: boolean;
-}
-
-export interface UpdateExpression extends BaseNode {
- type: "UpdateExpression";
- operator: "++" | "--";
- argument: Expression;
- prefix: boolean;
-}
-
-export interface VariableDeclaration extends BaseNode {
- type: "VariableDeclaration";
- kind: "var" | "let" | "const";
- declarations: Array;
- declare: boolean | null;
-}
-
-export interface VariableDeclarator extends BaseNode {
- type: "VariableDeclarator";
- id: LVal;
- init: Expression | null;
- definite: boolean | null;
-}
-
-export interface WhileStatement extends BaseNode {
- type: "WhileStatement";
- test: Expression;
- body: BlockStatement | Statement;
-}
-
-export interface WithStatement extends BaseNode {
- type: "WithStatement";
- object: Expression;
- body: BlockStatement | Statement;
-}
-
-export interface AssignmentPattern extends BaseNode {
- type: "AssignmentPattern";
- left: Identifier | ObjectPattern | ArrayPattern | MemberExpression;
- right: Expression;
- decorators: Array | null;
- typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
-}
-
-export interface ArrayPattern extends BaseNode {
- type: "ArrayPattern";
- elements: Array;
- decorators: Array | null;
- typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
-}
-
-export interface ArrowFunctionExpression extends BaseNode {
- type: "ArrowFunctionExpression";
- params: Array;
- body: BlockStatement | Expression;
- async: boolean;
- expression: boolean | null;
- generator: boolean;
- returnType: TypeAnnotation | TSTypeAnnotation | Noop | null;
- typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
-}
-
-export interface ClassBody extends BaseNode {
- type: "ClassBody";
- body: Array;
-}
-
-export interface ClassDeclaration extends BaseNode {
- type: "ClassDeclaration";
- id: Identifier | null;
- superClass: Expression | null;
- body: ClassBody;
- decorators: Array | null;
- abstract: boolean | null;
- declare: boolean | null;
- implements: Array | null;
- mixins: any | null;
- superTypeParameters: TypeParameterInstantiation | TSTypeParameterInstantiation | null;
- typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
-}
-
-export interface ClassExpression extends BaseNode {
- type: "ClassExpression";
- id: Identifier | null;
- superClass: Expression | null;
- body: ClassBody;
- decorators: Array | null;
- implements: Array | null;
- mixins: any | null;
- superTypeParameters: TypeParameterInstantiation | TSTypeParameterInstantiation | null;
- typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
-}
-
-export interface ExportAllDeclaration extends BaseNode {
- type: "ExportAllDeclaration";
- source: StringLiteral;
-}
-
-export interface ExportDefaultDeclaration extends BaseNode {
- type: "ExportDefaultDeclaration";
- declaration: FunctionDeclaration | TSDeclareFunction | ClassDeclaration | Expression;
-}
-
-export interface ExportNamedDeclaration extends BaseNode {
- type: "ExportNamedDeclaration";
- declaration: Declaration | null;
- specifiers: Array;
- source: StringLiteral | null;
- exportKind: "type" | "value" | null;
-}
-
-export interface ExportSpecifier extends BaseNode {
- type: "ExportSpecifier";
- local: Identifier;
- exported: Identifier;
-}
-
-export interface ForOfStatement extends BaseNode {
- type: "ForOfStatement";
- left: VariableDeclaration | LVal;
- right: Expression;
- body: Statement;
- await: boolean;
-}
-
-export interface ImportDeclaration extends BaseNode {
- type: "ImportDeclaration";
- specifiers: Array;
- source: StringLiteral;
- importKind: "type" | "typeof" | "value" | null;
-}
-
-export interface ImportDefaultSpecifier extends BaseNode {
- type: "ImportDefaultSpecifier";
- local: Identifier;
-}
-
-export interface ImportNamespaceSpecifier extends BaseNode {
- type: "ImportNamespaceSpecifier";
- local: Identifier;
-}
-
-export interface ImportSpecifier extends BaseNode {
- type: "ImportSpecifier";
- local: Identifier;
- imported: Identifier;
- importKind: "type" | "typeof" | null;
-}
-
-export interface MetaProperty extends BaseNode {
- type: "MetaProperty";
- meta: Identifier;
- property: Identifier;
-}
-
-export interface ClassMethod extends BaseNode {
- type: "ClassMethod";
- kind: "get" | "set" | "method" | "constructor";
- key: Identifier | StringLiteral | NumericLiteral | Expression;
- params: Array;
- body: BlockStatement;
- computed: boolean;
- static: boolean;
- abstract: boolean | null;
- access: "public" | "private" | "protected" | null;
- accessibility: "public" | "private" | "protected" | null;
- async: boolean;
- decorators: Array | null;
- generator: boolean;
- optional: boolean | null;
- returnType: TypeAnnotation | TSTypeAnnotation | Noop | null;
- typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
-}
-
-export interface ObjectPattern extends BaseNode {
- type: "ObjectPattern";
- properties: Array;
- decorators: Array | null;
- typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
-}
-
-export interface SpreadElement extends BaseNode {
- type: "SpreadElement";
- argument: Expression;
-}
-
-export interface Super extends BaseNode {
- type: "Super";
-}
-
-export interface TaggedTemplateExpression extends BaseNode {
- type: "TaggedTemplateExpression";
- tag: Expression;
- quasi: TemplateLiteral;
- typeParameters: TypeParameterInstantiation | TSTypeParameterInstantiation | null;
-}
-
-export interface TemplateElement extends BaseNode {
- type: "TemplateElement";
- value: { raw: string, cooked?: string };
- tail: boolean;
-}
-
-export interface TemplateLiteral extends BaseNode {
- type: "TemplateLiteral";
- quasis: Array;
- expressions: Array;
-}
-
-export interface YieldExpression extends BaseNode {
- type: "YieldExpression";
- argument: Expression | null;
- delegate: boolean;
-}
-
-export interface AnyTypeAnnotation extends BaseNode {
- type: "AnyTypeAnnotation";
-}
-
-export interface ArrayTypeAnnotation extends BaseNode {
- type: "ArrayTypeAnnotation";
- elementType: FlowType;
-}
-
-export interface BooleanTypeAnnotation extends BaseNode {
- type: "BooleanTypeAnnotation";
-}
-
-export interface BooleanLiteralTypeAnnotation extends BaseNode {
- type: "BooleanLiteralTypeAnnotation";
- value: boolean;
-}
-
-export interface NullLiteralTypeAnnotation extends BaseNode {
- type: "NullLiteralTypeAnnotation";
-}
-
-export interface ClassImplements extends BaseNode {
- type: "ClassImplements";
- id: Identifier;
- typeParameters: TypeParameterInstantiation | null;
-}
-
-export interface DeclareClass extends BaseNode {
- type: "DeclareClass";
- id: Identifier;
- typeParameters: TypeParameterDeclaration | null;
- extends: Array | null;
- body: ObjectTypeAnnotation;
- implements: Array | null;
- mixins: Array | null;
-}
-
-export interface DeclareFunction extends BaseNode {
- type: "DeclareFunction";
- id: Identifier;
- predicate: DeclaredPredicate | null;
-}
-
-export interface DeclareInterface extends BaseNode {
- type: "DeclareInterface";
- id: Identifier;
- typeParameters: TypeParameterDeclaration | null;
- extends: Array | null;
- body: ObjectTypeAnnotation;
- implements: Array | null;
- mixins: Array | null;
-}
-
-export interface DeclareModule extends BaseNode {
- type: "DeclareModule";
- id: Identifier | StringLiteral;
- body: BlockStatement;
- kind: "CommonJS" | "ES" | null;
-}
-
-export interface DeclareModuleExports extends BaseNode {
- type: "DeclareModuleExports";
- typeAnnotation: TypeAnnotation;
-}
-
-export interface DeclareTypeAlias extends BaseNode {
- type: "DeclareTypeAlias";
- id: Identifier;
- typeParameters: TypeParameterDeclaration | null;
- right: FlowType;
-}
-
-export interface DeclareOpaqueType extends BaseNode {
- type: "DeclareOpaqueType";
- id: Identifier;
- typeParameters: TypeParameterDeclaration | null;
- supertype: FlowType | null;
-}
-
-export interface DeclareVariable extends BaseNode {
- type: "DeclareVariable";
- id: Identifier;
-}
-
-export interface DeclareExportDeclaration extends BaseNode {
- type: "DeclareExportDeclaration";
- declaration: Flow | null;
- specifiers: Array | null;
- source: StringLiteral | null;
- default: boolean | null;
-}
-
-export interface DeclareExportAllDeclaration extends BaseNode {
- type: "DeclareExportAllDeclaration";
- source: StringLiteral;
- exportKind: "type" | "value" | null;
-}
-
-export interface DeclaredPredicate extends BaseNode {
- type: "DeclaredPredicate";
- value: Flow;
-}
-
-export interface ExistsTypeAnnotation extends BaseNode {
- type: "ExistsTypeAnnotation";
-}
-
-export interface FunctionTypeAnnotation extends BaseNode {
- type: "FunctionTypeAnnotation";
- typeParameters: TypeParameterDeclaration | null;
- params: Array;
- rest: FunctionTypeParam | null;
- returnType: FlowType;
-}
-
-export interface FunctionTypeParam extends BaseNode {
- type: "FunctionTypeParam";
- name: Identifier | null;
- typeAnnotation: FlowType;
- optional: boolean | null;
-}
-
-export interface GenericTypeAnnotation extends BaseNode {
- type: "GenericTypeAnnotation";
- id: Identifier | QualifiedTypeIdentifier;
- typeParameters: TypeParameterInstantiation | null;
-}
-
-export interface InferredPredicate extends BaseNode {
- type: "InferredPredicate";
-}
-
-export interface InterfaceExtends extends BaseNode {
- type: "InterfaceExtends";
- id: Identifier | QualifiedTypeIdentifier;
- typeParameters: TypeParameterInstantiation | null;
-}
-
-export interface InterfaceDeclaration extends BaseNode {
- type: "InterfaceDeclaration";
- id: Identifier;
- typeParameters: TypeParameterDeclaration | null;
- extends: Array | null;
- body: ObjectTypeAnnotation;
- implements: Array | null;
- mixins: Array | null;
-}
-
-export interface InterfaceTypeAnnotation extends BaseNode {
- type: "InterfaceTypeAnnotation";
- extends: Array | null;
- body: ObjectTypeAnnotation;
-}
-
-export interface IntersectionTypeAnnotation extends BaseNode {
- type: "IntersectionTypeAnnotation";
- types: Array;
-}
-
-export interface MixedTypeAnnotation extends BaseNode {
- type: "MixedTypeAnnotation";
-}
-
-export interface EmptyTypeAnnotation extends BaseNode {
- type: "EmptyTypeAnnotation";
-}
-
-export interface NullableTypeAnnotation extends BaseNode {
- type: "NullableTypeAnnotation";
- typeAnnotation: FlowType;
-}
-
-export interface NumberLiteralTypeAnnotation extends BaseNode {
- type: "NumberLiteralTypeAnnotation";
- value: number;
-}
-
-export interface NumberTypeAnnotation extends BaseNode {
- type: "NumberTypeAnnotation";
-}
-
-export interface ObjectTypeAnnotation extends BaseNode {
- type: "ObjectTypeAnnotation";
- properties: Array;
- indexers: Array | null;
- callProperties: Array | null;
- internalSlots: Array | null;
- exact: boolean;
- inexact: boolean | null;
-}
-
-export interface ObjectTypeInternalSlot extends BaseNode {
- type: "ObjectTypeInternalSlot";
- id: Identifier;
- value: FlowType;
- optional: boolean;
- static: boolean;
- method: boolean;
-}
-
-export interface ObjectTypeCallProperty extends BaseNode {
- type: "ObjectTypeCallProperty";
- value: FlowType;
- static: boolean | null;
-}
-
-export interface ObjectTypeIndexer extends BaseNode {
- type: "ObjectTypeIndexer";
- id: Identifier | null;
- key: FlowType;
- value: FlowType;
- variance: Variance | null;
- static: boolean | null;
-}
-
-export interface ObjectTypeProperty extends BaseNode {
- type: "ObjectTypeProperty";
- key: Identifier | StringLiteral;
- value: FlowType;
- variance: Variance | null;
- kind: "init" | "get" | "set" | null;
- optional: boolean | null;
- proto: boolean | null;
- static: boolean | null;
-}
-
-export interface ObjectTypeSpreadProperty extends BaseNode {
- type: "ObjectTypeSpreadProperty";
- argument: FlowType;
-}
-
-export interface OpaqueType extends BaseNode {
- type: "OpaqueType";
- id: Identifier;
- typeParameters: TypeParameterDeclaration | null;
- supertype: FlowType | null;
- impltype: FlowType;
-}
-
-export interface QualifiedTypeIdentifier extends BaseNode {
- type: "QualifiedTypeIdentifier";
- id: Identifier;
- qualification: Identifier | QualifiedTypeIdentifier;
-}
-
-export interface StringLiteralTypeAnnotation extends BaseNode {
- type: "StringLiteralTypeAnnotation";
- value: string;
-}
-
-export interface StringTypeAnnotation extends BaseNode {
- type: "StringTypeAnnotation";
-}
-
-export interface ThisTypeAnnotation extends BaseNode {
- type: "ThisTypeAnnotation";
-}
-
-export interface TupleTypeAnnotation extends BaseNode {
- type: "TupleTypeAnnotation";
- types: Array;
-}
-
-export interface TypeofTypeAnnotation extends BaseNode {
- type: "TypeofTypeAnnotation";
- argument: FlowType;
-}
-
-export interface TypeAlias extends BaseNode {
- type: "TypeAlias";
- id: Identifier;
- typeParameters: TypeParameterDeclaration | null;
- right: FlowType;
-}
-
-export interface TypeAnnotation extends BaseNode {
- type: "TypeAnnotation";
- typeAnnotation: FlowType;
-}
-
-export interface TypeCastExpression extends BaseNode {
- type: "TypeCastExpression";
- expression: Expression;
- typeAnnotation: TypeAnnotation;
-}
-
-export interface TypeParameter extends BaseNode {
- type: "TypeParameter";
- bound: TypeAnnotation | null;
- default: FlowType | null;
- variance: Variance | null;
- name: string | null;
-}
-
-export interface TypeParameterDeclaration extends BaseNode {
- type: "TypeParameterDeclaration";
- params: Array;
-}
-
-export interface TypeParameterInstantiation extends BaseNode {
- type: "TypeParameterInstantiation";
- params: Array;
-}
-
-export interface UnionTypeAnnotation extends BaseNode {
- type: "UnionTypeAnnotation";
- types: Array;
-}
-
-export interface Variance extends BaseNode {
- type: "Variance";
- kind: "minus" | "plus";
-}
-
-export interface VoidTypeAnnotation extends BaseNode {
- type: "VoidTypeAnnotation";
-}
-
-export interface JSXAttribute extends BaseNode {
- type: "JSXAttribute";
- name: JSXIdentifier | JSXNamespacedName;
- value: JSXElement | JSXFragment | StringLiteral | JSXExpressionContainer | null;
-}
-
-export interface JSXClosingElement extends BaseNode {
- type: "JSXClosingElement";
- name: JSXIdentifier | JSXMemberExpression | JSXNamespacedName;
-}
-
-export interface JSXElement extends BaseNode {
- type: "JSXElement";
- openingElement: JSXOpeningElement;
- closingElement: JSXClosingElement | null;
- children: Array;
- selfClosing: any;
-}
-
-export interface JSXEmptyExpression extends BaseNode {
- type: "JSXEmptyExpression";
-}
-
-export interface JSXExpressionContainer extends BaseNode {
- type: "JSXExpressionContainer";
- expression: Expression | JSXEmptyExpression;
-}
-
-export interface JSXSpreadChild extends BaseNode {
- type: "JSXSpreadChild";
- expression: Expression;
-}
-
-export interface JSXIdentifier extends BaseNode {
- type: "JSXIdentifier";
- name: string;
-}
-
-export interface JSXMemberExpression extends BaseNode {
- type: "JSXMemberExpression";
- object: JSXMemberExpression | JSXIdentifier;
- property: JSXIdentifier;
-}
-
-export interface JSXNamespacedName extends BaseNode {
- type: "JSXNamespacedName";
- namespace: JSXIdentifier;
- name: JSXIdentifier;
-}
-
-export interface JSXOpeningElement extends BaseNode {
- type: "JSXOpeningElement";
- name: JSXIdentifier | JSXMemberExpression | JSXNamespacedName;
- attributes: Array;
- selfClosing: boolean;
- typeParameters: TypeParameterInstantiation | TSTypeParameterInstantiation | null;
-}
-
-export interface JSXSpreadAttribute extends BaseNode {
- type: "JSXSpreadAttribute";
- argument: Expression;
-}
-
-export interface JSXText extends BaseNode {
- type: "JSXText";
- value: string;
-}
-
-export interface JSXFragment extends BaseNode {
- type: "JSXFragment";
- openingFragment: JSXOpeningFragment;
- closingFragment: JSXClosingFragment;
- children: Array;
-}
-
-export interface JSXOpeningFragment extends BaseNode {
- type: "JSXOpeningFragment";
-}
-
-export interface JSXClosingFragment extends BaseNode {
- type: "JSXClosingFragment";
-}
-
-export interface Noop extends BaseNode {
- type: "Noop";
-}
-
-export interface Placeholder extends BaseNode {
- type: "Placeholder";
- expectedNode: "Identifier" | "StringLiteral" | "Expression" | "Statement" | "Declaration" | "BlockStatement" | "ClassBody" | "Pattern";
- name: Identifier;
-}
-
-export interface V8IntrinsicIdentifier extends BaseNode {
- type: "V8IntrinsicIdentifier";
- name: string;
-}
-
-export interface ArgumentPlaceholder extends BaseNode {
- type: "ArgumentPlaceholder";
-}
-
-export interface AwaitExpression extends BaseNode {
- type: "AwaitExpression";
- argument: Expression;
-}
-
-export interface BindExpression extends BaseNode {
- type: "BindExpression";
- object: any;
- callee: any;
-}
-
-export interface ClassProperty extends BaseNode {
- type: "ClassProperty";
- key: Identifier | StringLiteral | NumericLiteral | Expression;
- value: Expression | null;
- typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
- decorators: Array | null;
- computed: boolean;
- static: boolean;
- abstract: boolean | null;
- accessibility: "public" | "private" | "protected" | null;
- definite: boolean | null;
- optional: boolean | null;
- readonly: boolean | null;
-}
-
-export interface OptionalMemberExpression extends BaseNode {
- type: "OptionalMemberExpression";
- object: Expression;
- property: any;
- computed: boolean;
- optional: boolean;
-}
-
-export interface PipelineTopicExpression extends BaseNode {
- type: "PipelineTopicExpression";
- expression: Expression;
-}
-
-export interface PipelineBareFunction extends BaseNode {
- type: "PipelineBareFunction";
- callee: Expression;
-}
-
-export interface PipelinePrimaryTopicReference extends BaseNode {
- type: "PipelinePrimaryTopicReference";
-}
-
-export interface OptionalCallExpression extends BaseNode {
- type: "OptionalCallExpression";
- callee: Expression;
- arguments: Array;
- optional: boolean;
- typeArguments: TypeParameterInstantiation | null;
- typeParameters: TSTypeParameterInstantiation | null;
-}
-
-export interface ClassPrivateProperty extends BaseNode {
- type: "ClassPrivateProperty";
- key: PrivateName;
- value: Expression | null;
- decorators: Array | null;
-}
-
-export interface ClassPrivateMethod extends BaseNode {
- type: "ClassPrivateMethod";
- kind: "get" | "set" | "method" | "constructor";
- key: PrivateName;
- params: Array;
- body: BlockStatement;
- static: boolean;
- abstract: boolean | null;
- access: "public" | "private" | "protected" | null;
- accessibility: "public" | "private" | "protected" | null;
- async: boolean;
- computed: boolean;
- decorators: Array | null;
- generator: boolean;
- optional: boolean | null;
- returnType: any | null;
- typeParameters: any | null;
-}
-
-export interface Import extends BaseNode {
- type: "Import";
-}
-
-export interface Decorator extends BaseNode {
- type: "Decorator";
- expression: Expression;
-}
-
-export interface DoExpression extends BaseNode {
- type: "DoExpression";
- body: BlockStatement;
-}
-
-export interface ExportDefaultSpecifier extends BaseNode {
- type: "ExportDefaultSpecifier";
- exported: Identifier;
-}
-
-export interface ExportNamespaceSpecifier extends BaseNode {
- type: "ExportNamespaceSpecifier";
- exported: Identifier;
-}
-
-export interface PrivateName extends BaseNode {
- type: "PrivateName";
- id: Identifier;
-}
-
-export interface BigIntLiteral extends BaseNode {
- type: "BigIntLiteral";
- value: string;
-}
-
-export interface TSParameterProperty extends BaseNode {
- type: "TSParameterProperty";
- parameter: Identifier | AssignmentPattern;
- accessibility: "public" | "private" | "protected" | null;
- readonly: boolean | null;
-}
-
-export interface TSDeclareFunction extends BaseNode {
- type: "TSDeclareFunction";
- id: Identifier | null;
- typeParameters: TSTypeParameterDeclaration | Noop | null;
- params: Array;
- returnType: TSTypeAnnotation | Noop | null;
- async: boolean;
- declare: boolean | null;
- generator: boolean;
-}
-
-export interface TSDeclareMethod extends BaseNode {
- type: "TSDeclareMethod";
- decorators: Array | null;
- key: Identifier | StringLiteral | NumericLiteral | Expression;
- typeParameters: TSTypeParameterDeclaration | Noop | null;
- params: Array;
- returnType: TSTypeAnnotation | Noop | null;
- abstract: boolean | null;
- access: "public" | "private" | "protected" | null;
- accessibility: "public" | "private" | "protected" | null;
- async: boolean;
- computed: boolean;
- generator: boolean;
- kind: "get" | "set" | "method" | "constructor";
- optional: boolean | null;
- static: boolean;
-}
-
-export interface TSQualifiedName extends BaseNode {
- type: "TSQualifiedName";
- left: TSEntityName;
- right: Identifier;
-}
-
-export interface TSCallSignatureDeclaration extends BaseNode {
- type: "TSCallSignatureDeclaration";
- typeParameters: TSTypeParameterDeclaration | null;
- parameters: Array;
- typeAnnotation: TSTypeAnnotation | null;
-}
-
-export interface TSConstructSignatureDeclaration extends BaseNode {
- type: "TSConstructSignatureDeclaration";
- typeParameters: TSTypeParameterDeclaration | null;
- parameters: Array;
- typeAnnotation: TSTypeAnnotation | null;
-}
-
-export interface TSPropertySignature extends BaseNode {
- type: "TSPropertySignature";
- key: Expression;
- typeAnnotation: TSTypeAnnotation | null;
- initializer: Expression | null;
- computed: boolean | null;
- optional: boolean | null;
- readonly: boolean | null;
-}
-
-export interface TSMethodSignature extends BaseNode {
- type: "TSMethodSignature";
- key: Expression;
- typeParameters: TSTypeParameterDeclaration | null;
- parameters: Array;
- typeAnnotation: TSTypeAnnotation | null;
- computed: boolean | null;
- optional: boolean | null;
-}
-
-export interface TSIndexSignature extends BaseNode {
- type: "TSIndexSignature";
- parameters: Array;
- typeAnnotation: TSTypeAnnotation | null;
- readonly: boolean | null;
-}
-
-export interface TSAnyKeyword extends BaseNode {
- type: "TSAnyKeyword";
-}
-
-export interface TSBooleanKeyword extends BaseNode {
- type: "TSBooleanKeyword";
-}
-
-export interface TSBigIntKeyword extends BaseNode {
- type: "TSBigIntKeyword";
-}
-
-export interface TSNeverKeyword extends BaseNode {
- type: "TSNeverKeyword";
-}
-
-export interface TSNullKeyword extends BaseNode {
- type: "TSNullKeyword";
-}
-
-export interface TSNumberKeyword extends BaseNode {
- type: "TSNumberKeyword";
-}
-
-export interface TSObjectKeyword extends BaseNode {
- type: "TSObjectKeyword";
-}
-
-export interface TSStringKeyword extends BaseNode {
- type: "TSStringKeyword";
-}
-
-export interface TSSymbolKeyword extends BaseNode {
- type: "TSSymbolKeyword";
-}
-
-export interface TSUndefinedKeyword extends BaseNode {
- type: "TSUndefinedKeyword";
-}
-
-export interface TSUnknownKeyword extends BaseNode {
- type: "TSUnknownKeyword";
-}
-
-export interface TSVoidKeyword extends BaseNode {
- type: "TSVoidKeyword";
-}
-
-export interface TSThisType extends BaseNode {
- type: "TSThisType";
-}
-
-export interface TSFunctionType extends BaseNode {
- type: "TSFunctionType";
- typeParameters: TSTypeParameterDeclaration | null;
- parameters: Array;
- typeAnnotation: TSTypeAnnotation | null;
-}
-
-export interface TSConstructorType extends BaseNode {
- type: "TSConstructorType";
- typeParameters: TSTypeParameterDeclaration | null;
- parameters: Array;
- typeAnnotation: TSTypeAnnotation | null;
-}
-
-export interface TSTypeReference extends BaseNode {
- type: "TSTypeReference";
- typeName: TSEntityName;
- typeParameters: TSTypeParameterInstantiation | null;
-}
-
-export interface TSTypePredicate extends BaseNode {
- type: "TSTypePredicate";
- parameterName: Identifier | TSThisType;
- typeAnnotation: TSTypeAnnotation;
-}
-
-export interface TSTypeQuery extends BaseNode {
- type: "TSTypeQuery";
- exprName: TSEntityName | TSImportType;
-}
-
-export interface TSTypeLiteral extends BaseNode {
- type: "TSTypeLiteral";
- members: Array;
-}
-
-export interface TSArrayType extends BaseNode {
- type: "TSArrayType";
- elementType: TSType;
-}
-
-export interface TSTupleType extends BaseNode {
- type: "TSTupleType";
- elementTypes: Array;
-}
-
-export interface TSOptionalType extends BaseNode {
- type: "TSOptionalType";
- typeAnnotation: TSType;
-}
-
-export interface TSRestType extends BaseNode {
- type: "TSRestType";
- typeAnnotation: TSType;
-}
-
-export interface TSUnionType extends BaseNode {
- type: "TSUnionType";
- types: Array;
-}
-
-export interface TSIntersectionType extends BaseNode {
- type: "TSIntersectionType";
- types: Array;
-}
-
-export interface TSConditionalType extends BaseNode {
- type: "TSConditionalType";
- checkType: TSType;
- extendsType: TSType;
- trueType: TSType;
- falseType: TSType;
-}
-
-export interface TSInferType extends BaseNode {
- type: "TSInferType";
- typeParameter: TSTypeParameter;
-}
-
-export interface TSParenthesizedType extends BaseNode {
- type: "TSParenthesizedType";
- typeAnnotation: TSType;
-}
-
-export interface TSTypeOperator extends BaseNode {
- type: "TSTypeOperator";
- typeAnnotation: TSType;
- operator: string | null;
-}
-
-export interface TSIndexedAccessType extends BaseNode {
- type: "TSIndexedAccessType";
- objectType: TSType;
- indexType: TSType;
-}
-
-export interface TSMappedType extends BaseNode {
- type: "TSMappedType";
- typeParameter: TSTypeParameter;
- typeAnnotation: TSType | null;
- optional: boolean | null;
- readonly: boolean | null;
-}
-
-export interface TSLiteralType extends BaseNode {
- type: "TSLiteralType";
- literal: NumericLiteral | StringLiteral | BooleanLiteral;
-}
-
-export interface TSExpressionWithTypeArguments extends BaseNode {
- type: "TSExpressionWithTypeArguments";
- expression: TSEntityName;
- typeParameters: TSTypeParameterInstantiation | null;
-}
-
-export interface TSInterfaceDeclaration extends BaseNode {
- type: "TSInterfaceDeclaration";
- id: Identifier;
- typeParameters: TSTypeParameterDeclaration | null;
- extends: Array | null;
- body: TSInterfaceBody;
- declare: boolean | null;
-}
-
-export interface TSInterfaceBody extends BaseNode {
- type: "TSInterfaceBody";
- body: Array;
-}
-
-export interface TSTypeAliasDeclaration extends BaseNode {
- type: "TSTypeAliasDeclaration";
- id: Identifier;
- typeParameters: TSTypeParameterDeclaration | null;
- typeAnnotation: TSType;
- declare: boolean | null;
-}
-
-export interface TSAsExpression extends BaseNode {
- type: "TSAsExpression";
- expression: Expression;
- typeAnnotation: TSType;
-}
-
-export interface TSTypeAssertion extends BaseNode {
- type: "TSTypeAssertion";
- typeAnnotation: TSType;
- expression: Expression;
-}
-
-export interface TSEnumDeclaration extends BaseNode {
- type: "TSEnumDeclaration";
- id: Identifier;
- members: Array;
- const: boolean | null;
- declare: boolean | null;
- initializer: Expression | null;
-}
-
-export interface TSEnumMember extends BaseNode {
- type: "TSEnumMember";
- id: Identifier | StringLiteral;
- initializer: Expression | null;
-}
-
-export interface TSModuleDeclaration extends BaseNode {
- type: "TSModuleDeclaration";
- id: Identifier | StringLiteral;
- body: TSModuleBlock | TSModuleDeclaration;
- declare: boolean | null;
- global: boolean | null;
-}
-
-export interface TSModuleBlock extends BaseNode {
- type: "TSModuleBlock";
- body: Array;
-}
-
-export interface TSImportType extends BaseNode {
- type: "TSImportType";
- argument: StringLiteral;
- qualifier: TSEntityName | null;
- typeParameters: TSTypeParameterInstantiation | null;
-}
-
-export interface TSImportEqualsDeclaration extends BaseNode {
- type: "TSImportEqualsDeclaration";
- id: Identifier;
- moduleReference: TSEntityName | TSExternalModuleReference;
- isExport: boolean | null;
-}
-
-export interface TSExternalModuleReference extends BaseNode {
- type: "TSExternalModuleReference";
- expression: StringLiteral;
-}
-
-export interface TSNonNullExpression extends BaseNode {
- type: "TSNonNullExpression";
- expression: Expression;
-}
-
-export interface TSExportAssignment extends BaseNode {
- type: "TSExportAssignment";
- expression: Expression;
-}
-
-export interface TSNamespaceExportDeclaration extends BaseNode {
- type: "TSNamespaceExportDeclaration";
- id: Identifier;
-}
-
-export interface TSTypeAnnotation extends BaseNode {
- type: "TSTypeAnnotation";
- typeAnnotation: TSType;
-}
-
-export interface TSTypeParameterInstantiation extends BaseNode {
- type: "TSTypeParameterInstantiation";
- params: Array;
-}
-
-export interface TSTypeParameterDeclaration extends BaseNode {
- type: "TSTypeParameterDeclaration";
- params: Array;
-}
-
-export interface TSTypeParameter extends BaseNode {
- type: "TSTypeParameter";
- constraint: TSType | null;
- default: TSType | null;
- name: string;
-}
-
-/**
- * @deprecated Use `NumericLiteral`
- */
-export type NumberLiteral = NumericLiteral;
-
-/**
- * @deprecated Use `RegExpLiteral`
- */
-export type RegexLiteral = RegExpLiteral;
-
-/**
- * @deprecated Use `RestElement`
- */
-export type RestProperty = RestElement;
-
-/**
- * @deprecated Use `SpreadElement`
- */
-export type SpreadProperty = SpreadElement;
-
-export type Expression = ArrayExpression | AssignmentExpression | BinaryExpression | CallExpression | ConditionalExpression | FunctionExpression | Identifier | StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | RegExpLiteral | LogicalExpression | MemberExpression | NewExpression | ObjectExpression | SequenceExpression | ParenthesizedExpression | ThisExpression | UnaryExpression | UpdateExpression | ArrowFunctionExpression | ClassExpression | MetaProperty | Super | TaggedTemplateExpression | TemplateLiteral | YieldExpression | TypeCastExpression | JSXElement | JSXFragment | AwaitExpression | BindExpression | OptionalMemberExpression | PipelinePrimaryTopicReference | OptionalCallExpression | Import | DoExpression | BigIntLiteral | TSAsExpression | TSTypeAssertion | TSNonNullExpression;
-export type Binary = BinaryExpression | LogicalExpression;
-export type Scopable = BlockStatement | CatchClause | DoWhileStatement | ForInStatement | ForStatement | FunctionDeclaration | FunctionExpression | Program | ObjectMethod | SwitchStatement | WhileStatement | ArrowFunctionExpression | ClassDeclaration | ClassExpression | ForOfStatement | ClassMethod | ClassPrivateMethod | TSModuleBlock;
-export type BlockParent = BlockStatement | CatchClause | DoWhileStatement | ForInStatement | ForStatement | FunctionDeclaration | FunctionExpression | Program | ObjectMethod | SwitchStatement | WhileStatement | ArrowFunctionExpression | ForOfStatement | ClassMethod | ClassPrivateMethod | TSModuleBlock;
-export type Block = BlockStatement | Program | TSModuleBlock;
-export type Statement = BlockStatement | BreakStatement | ContinueStatement | DebuggerStatement | DoWhileStatement | EmptyStatement | ExpressionStatement | ForInStatement | ForStatement | FunctionDeclaration | IfStatement | LabeledStatement | ReturnStatement | SwitchStatement | ThrowStatement | TryStatement | VariableDeclaration | WhileStatement | WithStatement | ClassDeclaration | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ForOfStatement | ImportDeclaration | DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareTypeAlias | DeclareOpaqueType | DeclareVariable | DeclareExportDeclaration | DeclareExportAllDeclaration | InterfaceDeclaration | OpaqueType | TypeAlias | TSDeclareFunction | TSInterfaceDeclaration | TSTypeAliasDeclaration | TSEnumDeclaration | TSModuleDeclaration | TSImportEqualsDeclaration | TSExportAssignment | TSNamespaceExportDeclaration;
-export type Terminatorless = BreakStatement | ContinueStatement | ReturnStatement | ThrowStatement | YieldExpression | AwaitExpression;
-export type CompletionStatement = BreakStatement | ContinueStatement | ReturnStatement | ThrowStatement;
-export type Conditional = ConditionalExpression | IfStatement;
-export type Loop = DoWhileStatement | ForInStatement | ForStatement | WhileStatement | ForOfStatement;
-export type While = DoWhileStatement | WhileStatement;
-export type ExpressionWrapper = ExpressionStatement | ParenthesizedExpression | TypeCastExpression;
-export type For = ForInStatement | ForStatement | ForOfStatement;
-export type ForXStatement = ForInStatement | ForOfStatement;
-export type Function = FunctionDeclaration | FunctionExpression | ObjectMethod | ArrowFunctionExpression | ClassMethod | ClassPrivateMethod;
-export type FunctionParent = FunctionDeclaration | FunctionExpression | ObjectMethod | ArrowFunctionExpression | ClassMethod | ClassPrivateMethod;
-export type Pureish = FunctionDeclaration | FunctionExpression | StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | ArrowFunctionExpression | ClassDeclaration | ClassExpression | BigIntLiteral;
-export type Declaration = FunctionDeclaration | VariableDeclaration | ClassDeclaration | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ImportDeclaration | DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareTypeAlias | DeclareOpaqueType | DeclareVariable | DeclareExportDeclaration | DeclareExportAllDeclaration | InterfaceDeclaration | OpaqueType | TypeAlias | TSDeclareFunction | TSInterfaceDeclaration | TSTypeAliasDeclaration | TSEnumDeclaration | TSModuleDeclaration;
-export type PatternLike = Identifier | RestElement | AssignmentPattern | ArrayPattern | ObjectPattern;
-export type LVal = Identifier | MemberExpression | RestElement | AssignmentPattern | ArrayPattern | ObjectPattern | TSParameterProperty;
-export type TSEntityName = Identifier | TSQualifiedName;
-export type Literal = StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | RegExpLiteral | TemplateLiteral | BigIntLiteral;
-export type Immutable = StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | JSXAttribute | JSXClosingElement | JSXElement | JSXExpressionContainer | JSXSpreadChild | JSXOpeningElement | JSXText | JSXFragment | JSXOpeningFragment | JSXClosingFragment | BigIntLiteral;
-export type UserWhitespacable = ObjectMethod | ObjectProperty | ObjectTypeInternalSlot | ObjectTypeCallProperty | ObjectTypeIndexer | ObjectTypeProperty | ObjectTypeSpreadProperty;
-export type Method = ObjectMethod | ClassMethod | ClassPrivateMethod;
-export type ObjectMember = ObjectMethod | ObjectProperty;
-export type Property = ObjectProperty | ClassProperty | ClassPrivateProperty;
-export type UnaryLike = UnaryExpression | SpreadElement;
-export type Pattern = AssignmentPattern | ArrayPattern | ObjectPattern;
-export type Class = ClassDeclaration | ClassExpression;
-export type ModuleDeclaration = ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ImportDeclaration;
-export type ExportDeclaration = ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration;
-export type ModuleSpecifier = ExportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier | ExportDefaultSpecifier | ExportNamespaceSpecifier;
-export type Flow = AnyTypeAnnotation | ArrayTypeAnnotation | BooleanTypeAnnotation | BooleanLiteralTypeAnnotation | NullLiteralTypeAnnotation | ClassImplements | DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareTypeAlias | DeclareOpaqueType | DeclareVariable | DeclareExportDeclaration | DeclareExportAllDeclaration | DeclaredPredicate | ExistsTypeAnnotation | FunctionTypeAnnotation | FunctionTypeParam | GenericTypeAnnotation | InferredPredicate | InterfaceExtends | InterfaceDeclaration | InterfaceTypeAnnotation | IntersectionTypeAnnotation | MixedTypeAnnotation | EmptyTypeAnnotation | NullableTypeAnnotation | NumberLiteralTypeAnnotation | NumberTypeAnnotation | ObjectTypeAnnotation | ObjectTypeInternalSlot | ObjectTypeCallProperty | ObjectTypeIndexer | ObjectTypeProperty | ObjectTypeSpreadProperty | OpaqueType | QualifiedTypeIdentifier | StringLiteralTypeAnnotation | StringTypeAnnotation | ThisTypeAnnotation | TupleTypeAnnotation | TypeofTypeAnnotation | TypeAlias | TypeAnnotation | TypeCastExpression | TypeParameter | TypeParameterDeclaration | TypeParameterInstantiation | UnionTypeAnnotation | Variance | VoidTypeAnnotation;
-export type FlowType = AnyTypeAnnotation | ArrayTypeAnnotation | BooleanTypeAnnotation | BooleanLiteralTypeAnnotation | NullLiteralTypeAnnotation | ExistsTypeAnnotation | FunctionTypeAnnotation | GenericTypeAnnotation | InterfaceTypeAnnotation | IntersectionTypeAnnotation | MixedTypeAnnotation | EmptyTypeAnnotation | NullableTypeAnnotation | NumberLiteralTypeAnnotation | NumberTypeAnnotation | ObjectTypeAnnotation | StringLiteralTypeAnnotation | StringTypeAnnotation | ThisTypeAnnotation | TupleTypeAnnotation | TypeofTypeAnnotation | UnionTypeAnnotation | VoidTypeAnnotation;
-export type FlowBaseAnnotation = AnyTypeAnnotation | BooleanTypeAnnotation | NullLiteralTypeAnnotation | MixedTypeAnnotation | EmptyTypeAnnotation | NumberTypeAnnotation | StringTypeAnnotation | ThisTypeAnnotation | VoidTypeAnnotation;
-export type FlowDeclaration = DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareTypeAlias | DeclareOpaqueType | DeclareVariable | DeclareExportDeclaration | DeclareExportAllDeclaration | InterfaceDeclaration | OpaqueType | TypeAlias;
-export type FlowPredicate = DeclaredPredicate | InferredPredicate;
-export type JSX = JSXAttribute | JSXClosingElement | JSXElement | JSXEmptyExpression | JSXExpressionContainer | JSXSpreadChild | JSXIdentifier | JSXMemberExpression | JSXNamespacedName | JSXOpeningElement | JSXSpreadAttribute | JSXText | JSXFragment | JSXOpeningFragment | JSXClosingFragment;
-export type Private = ClassPrivateProperty | ClassPrivateMethod | PrivateName;
-export type TSTypeElement = TSCallSignatureDeclaration | TSConstructSignatureDeclaration | TSPropertySignature | TSMethodSignature | TSIndexSignature;
-export type TSType = TSAnyKeyword | TSBooleanKeyword | TSBigIntKeyword | TSNeverKeyword | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSStringKeyword | TSSymbolKeyword | TSUndefinedKeyword | TSUnknownKeyword | TSVoidKeyword | TSThisType | TSFunctionType | TSConstructorType | TSTypeReference | TSTypePredicate | TSTypeQuery | TSTypeLiteral | TSArrayType | TSTupleType | TSOptionalType | TSRestType | TSUnionType | TSIntersectionType | TSConditionalType | TSInferType | TSParenthesizedType | TSTypeOperator | TSIndexedAccessType | TSMappedType | TSLiteralType | TSExpressionWithTypeArguments | TSImportType;
-
-export interface Aliases {
- Expression: Expression;
- Binary: Binary;
- Scopable: Scopable;
- BlockParent: BlockParent;
- Block: Block;
- Statement: Statement;
- Terminatorless: Terminatorless;
- CompletionStatement: CompletionStatement;
- Conditional: Conditional;
- Loop: Loop;
- While: While;
- ExpressionWrapper: ExpressionWrapper;
- For: For;
- ForXStatement: ForXStatement;
- Function: Function;
- FunctionParent: FunctionParent;
- Pureish: Pureish;
- Declaration: Declaration;
- PatternLike: PatternLike;
- LVal: LVal;
- TSEntityName: TSEntityName;
- Literal: Literal;
- Immutable: Immutable;
- UserWhitespacable: UserWhitespacable;
- Method: Method;
- ObjectMember: ObjectMember;
- Property: Property;
- UnaryLike: UnaryLike;
- Pattern: Pattern;
- Class: Class;
- ModuleDeclaration: ModuleDeclaration;
- ExportDeclaration: ExportDeclaration;
- ModuleSpecifier: ModuleSpecifier;
- Flow: Flow;
- FlowType: FlowType;
- FlowBaseAnnotation: FlowBaseAnnotation;
- FlowDeclaration: FlowDeclaration;
- FlowPredicate: FlowPredicate;
- JSX: JSX;
- Private: Private;
- TSTypeElement: TSTypeElement;
- TSType: TSType;
-}
-
-export function arrayExpression(elements?: Array): ArrayExpression;
-export function assignmentExpression(operator: string, left: LVal, right: Expression): AssignmentExpression;
-export function binaryExpression(operator: "+" | "-" | "/" | "%" | "*" | "**" | "&" | "|" | ">>" | ">>>" | "<<" | "^" | "==" | "===" | "!=" | "!==" | "in" | "instanceof" | ">" | "<" | ">=" | "<=", left: Expression, right: Expression): BinaryExpression;
-export function interpreterDirective(value: string): InterpreterDirective;
-export function directive(value: DirectiveLiteral): Directive;
-export function directiveLiteral(value: string): DirectiveLiteral;
-export function blockStatement(body: Array, directives?: Array): BlockStatement;
-export function breakStatement(label?: Identifier | null): BreakStatement;
-export function callExpression(callee: Expression | V8IntrinsicIdentifier, _arguments: Array, optional?: true | false | null, typeArguments?: TypeParameterInstantiation | null, typeParameters?: TSTypeParameterInstantiation | null): CallExpression;
-export function catchClause(param: Identifier | null | undefined, body: BlockStatement): CatchClause;
-export function conditionalExpression(test: Expression, consequent: Expression, alternate: Expression): ConditionalExpression;
-export function continueStatement(label?: Identifier | null): ContinueStatement;
-export function debuggerStatement(): DebuggerStatement;
-export function doWhileStatement(test: Expression, body: Statement): DoWhileStatement;
-export function emptyStatement(): EmptyStatement;
-export function expressionStatement(expression: Expression): ExpressionStatement;
-export function file(program: Program, comments: any, tokens: any): File;
-export function forInStatement(left: VariableDeclaration | LVal, right: Expression, body: Statement): ForInStatement;
-export function forStatement(init: VariableDeclaration | Expression | null | undefined, test: Expression | null | undefined, update: Expression | null | undefined, body: Statement): ForStatement;
-export function functionDeclaration(id: Identifier | null | undefined, params: Array, body: BlockStatement, generator?: boolean, async?: boolean, declare?: boolean | null, returnType?: TypeAnnotation | TSTypeAnnotation | Noop | null, typeParameters?: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null): FunctionDeclaration;
-export function functionExpression(id: Identifier | null | undefined, params: Array, body: BlockStatement, generator?: boolean, async?: boolean, returnType?: TypeAnnotation | TSTypeAnnotation | Noop | null, typeParameters?: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null): FunctionExpression;
-export function identifier(name: string, decorators?: Array | null, optional?: boolean | null, typeAnnotation?: TypeAnnotation | TSTypeAnnotation | Noop | null): Identifier;
-export function ifStatement(test: Expression, consequent: Statement, alternate?: Statement | null): IfStatement;
-export function labeledStatement(label: Identifier, body: Statement): LabeledStatement;
-export function stringLiteral(value: string): StringLiteral;
-export function numericLiteral(value: number): NumericLiteral;
-export function nullLiteral(): NullLiteral;
-export function booleanLiteral(value: boolean): BooleanLiteral;
-export function regExpLiteral(pattern: string, flags?: string): RegExpLiteral;
-export function logicalExpression(operator: "||" | "&&" | "??", left: Expression, right: Expression): LogicalExpression;
-export function memberExpression(object: Expression, property: any, computed?: boolean, optional?: true | false | null): MemberExpression;
-export function newExpression(callee: Expression | V8IntrinsicIdentifier, _arguments: Array, optional?: true | false | null, typeArguments?: TypeParameterInstantiation | null, typeParameters?: TSTypeParameterInstantiation | null): NewExpression;
-export function program(body: Array, directives?: Array, sourceType?: "script" | "module", interpreter?: InterpreterDirective | null, sourceFile?: string | null): Program;
-export function objectExpression(properties: Array): ObjectExpression;
-export function objectMethod(kind: "method" | "get" | "set" | undefined, key: any, params: Array, body: BlockStatement, computed?: boolean, async?: boolean, decorators?: Array | null, generator?: boolean, returnType?: TypeAnnotation | TSTypeAnnotation | Noop | null, typeParameters?: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null): ObjectMethod;
-export function objectProperty(key: any, value: Expression | PatternLike, computed?: boolean, shorthand?: boolean, decorators?: Array | null): ObjectProperty;
-export function restElement(argument: LVal, decorators?: Array | null, typeAnnotation?: TypeAnnotation | TSTypeAnnotation | Noop | null): RestElement;
-export function returnStatement(argument?: Expression | null): ReturnStatement;
-export function sequenceExpression(expressions: Array): SequenceExpression;
-export function parenthesizedExpression(expression: Expression): ParenthesizedExpression;
-export function switchCase(test: Expression | null | undefined, consequent: Array): SwitchCase;
-export function switchStatement(discriminant: Expression, cases: Array): SwitchStatement;
-export function thisExpression(): ThisExpression;
-export function throwStatement(argument: Expression): ThrowStatement;
-export function tryStatement(block: BlockStatement, handler?: CatchClause | null, finalizer?: BlockStatement | null): TryStatement;
-export function unaryExpression(operator: "void" | "throw" | "delete" | "!" | "+" | "-" | "~" | "typeof", argument: Expression, prefix?: boolean): UnaryExpression;
-export function updateExpression(operator: "++" | "--", argument: Expression, prefix?: boolean): UpdateExpression;
-export function variableDeclaration(kind: "var" | "let" | "const", declarations: Array, declare?: boolean | null): VariableDeclaration;
-export function variableDeclarator(id: LVal, init?: Expression | null, definite?: boolean | null): VariableDeclarator;
-export function whileStatement(test: Expression, body: BlockStatement | Statement): WhileStatement;
-export function withStatement(object: Expression, body: BlockStatement | Statement): WithStatement;
-export function assignmentPattern(left: Identifier | ObjectPattern | ArrayPattern | MemberExpression, right: Expression, decorators?: Array | null, typeAnnotation?: TypeAnnotation | TSTypeAnnotation | Noop | null): AssignmentPattern;
-export function arrayPattern(elements: Array, decorators?: Array | null, typeAnnotation?: TypeAnnotation | TSTypeAnnotation | Noop | null): ArrayPattern;
-export function arrowFunctionExpression(params: Array, body: BlockStatement | Expression, async?: boolean, expression?: boolean | null, generator?: boolean, returnType?: TypeAnnotation | TSTypeAnnotation | Noop | null, typeParameters?: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null): ArrowFunctionExpression;
-export function classBody(body: Array): ClassBody;
-export function classDeclaration(id: Identifier | null | undefined, superClass: Expression | null | undefined, body: ClassBody, decorators?: Array | null, abstract?: boolean | null, declare?: boolean | null, _implements?: Array | null, mixins?: any | null, superTypeParameters?: TypeParameterInstantiation | TSTypeParameterInstantiation | null, typeParameters?: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null): ClassDeclaration;
-export function classExpression(id: Identifier | null | undefined, superClass: Expression | null | undefined, body: ClassBody, decorators?: Array | null, _implements?: Array | null, mixins?: any | null, superTypeParameters?: TypeParameterInstantiation | TSTypeParameterInstantiation | null, typeParameters?: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null): ClassExpression;
-export function exportAllDeclaration(source: StringLiteral): ExportAllDeclaration;
-export function exportDefaultDeclaration(declaration: FunctionDeclaration | TSDeclareFunction | ClassDeclaration | Expression): ExportDefaultDeclaration;
-export function exportNamedDeclaration(declaration: Declaration | null | undefined, specifiers: Array, source?: StringLiteral | null, exportKind?: "type" | "value" | null): ExportNamedDeclaration;
-export function exportSpecifier(local: Identifier, exported: Identifier): ExportSpecifier;
-export function forOfStatement(left: VariableDeclaration | LVal, right: Expression, body: Statement, _await?: boolean): ForOfStatement;
-export function importDeclaration(specifiers: Array, source: StringLiteral, importKind?: "type" | "typeof" | "value" | null): ImportDeclaration;
-export function importDefaultSpecifier(local: Identifier): ImportDefaultSpecifier;
-export function importNamespaceSpecifier(local: Identifier): ImportNamespaceSpecifier;
-export function importSpecifier(local: Identifier, imported: Identifier, importKind?: "type" | "typeof" | null): ImportSpecifier;
-export function metaProperty(meta: Identifier, property: Identifier): MetaProperty;
-export function classMethod(kind: "get" | "set" | "method" | "constructor" | undefined, key: Identifier | StringLiteral | NumericLiteral | Expression, params: Array, body: BlockStatement, computed?: boolean, _static?: boolean, abstract?: boolean | null, access?: "public" | "private" | "protected" | null, accessibility?: "public" | "private" | "protected" | null, async?: boolean, decorators?: Array | null, generator?: boolean, optional?: boolean | null, returnType?: TypeAnnotation | TSTypeAnnotation | Noop | null, typeParameters?: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null): ClassMethod;
-export function objectPattern(properties: Array, decorators?: Array | null, typeAnnotation?: TypeAnnotation | TSTypeAnnotation | Noop | null): ObjectPattern;
-export function spreadElement(argument: Expression): SpreadElement;
-declare function _super(): Super;
-export { _super as super}
-export function taggedTemplateExpression(tag: Expression, quasi: TemplateLiteral, typeParameters?: TypeParameterInstantiation | TSTypeParameterInstantiation | null): TaggedTemplateExpression;
-export function templateElement(value: { raw: string, cooked?: string }, tail?: boolean): TemplateElement;
-export function templateLiteral(quasis: Array, expressions: Array): TemplateLiteral;
-export function yieldExpression(argument?: Expression | null, delegate?: boolean): YieldExpression;
-export function anyTypeAnnotation(): AnyTypeAnnotation;
-export function arrayTypeAnnotation(elementType: FlowType): ArrayTypeAnnotation;
-export function booleanTypeAnnotation(): BooleanTypeAnnotation;
-export function booleanLiteralTypeAnnotation(value: boolean): BooleanLiteralTypeAnnotation;
-export function nullLiteralTypeAnnotation(): NullLiteralTypeAnnotation;
-export function classImplements(id: Identifier, typeParameters?: TypeParameterInstantiation | null): ClassImplements;
-export function declareClass(id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, _extends: Array | null | undefined, body: ObjectTypeAnnotation, _implements?: Array | null, mixins?: Array | null): DeclareClass;
-export function declareFunction(id: Identifier, predicate?: DeclaredPredicate | null): DeclareFunction;
-export function declareInterface(id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, _extends: Array | null | undefined, body: ObjectTypeAnnotation, _implements?: Array | null, mixins?: Array | null): DeclareInterface;
-export function declareModule(id: Identifier | StringLiteral, body: BlockStatement, kind?: "CommonJS" | "ES" | null): DeclareModule;
-export function declareModuleExports(typeAnnotation: TypeAnnotation): DeclareModuleExports;
-export function declareTypeAlias(id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, right: FlowType): DeclareTypeAlias;
-export function declareOpaqueType(id: Identifier, typeParameters?: TypeParameterDeclaration | null, supertype?: FlowType | null): DeclareOpaqueType;
-export function declareVariable(id: Identifier): DeclareVariable;
-export function declareExportDeclaration(declaration?: Flow | null, specifiers?: Array | null, source?: StringLiteral | null, _default?: boolean | null): DeclareExportDeclaration;
-export function declareExportAllDeclaration(source: StringLiteral, exportKind?: "type" | "value" | null): DeclareExportAllDeclaration;
-export function declaredPredicate(value: Flow): DeclaredPredicate;
-export function existsTypeAnnotation(): ExistsTypeAnnotation;
-export function functionTypeAnnotation(typeParameters: TypeParameterDeclaration | null | undefined, params: Array, rest: FunctionTypeParam | null | undefined, returnType: FlowType): FunctionTypeAnnotation;
-export function functionTypeParam(name: Identifier | null | undefined, typeAnnotation: FlowType, optional?: boolean | null): FunctionTypeParam;
-export function genericTypeAnnotation(id: Identifier | QualifiedTypeIdentifier, typeParameters?: TypeParameterInstantiation | null): GenericTypeAnnotation;
-export function inferredPredicate(): InferredPredicate;
-export function interfaceExtends(id: Identifier | QualifiedTypeIdentifier, typeParameters?: TypeParameterInstantiation | null): InterfaceExtends;
-export function interfaceDeclaration(id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, _extends: Array | null | undefined, body: ObjectTypeAnnotation, _implements?: Array | null, mixins?: Array | null): InterfaceDeclaration;
-export function interfaceTypeAnnotation(_extends: Array | null | undefined, body: ObjectTypeAnnotation): InterfaceTypeAnnotation;
-export function intersectionTypeAnnotation(types: Array): IntersectionTypeAnnotation;
-export function mixedTypeAnnotation(): MixedTypeAnnotation;
-export function emptyTypeAnnotation(): EmptyTypeAnnotation;
-export function nullableTypeAnnotation(typeAnnotation: FlowType): NullableTypeAnnotation;
-export function numberLiteralTypeAnnotation(value: number): NumberLiteralTypeAnnotation;
-export function numberTypeAnnotation(): NumberTypeAnnotation;
-export function objectTypeAnnotation(properties: Array, indexers?: Array | null, callProperties?: Array | null, internalSlots?: Array | null, exact?: boolean, inexact?: boolean | null): ObjectTypeAnnotation;
-export function objectTypeInternalSlot(id: Identifier, value: FlowType, optional: boolean, _static: boolean, method: boolean): ObjectTypeInternalSlot;
-export function objectTypeCallProperty(value: FlowType, _static?: boolean | null): ObjectTypeCallProperty;
-export function objectTypeIndexer(id: Identifier | null | undefined, key: FlowType, value: FlowType, variance?: Variance | null, _static?: boolean | null): ObjectTypeIndexer;
-export function objectTypeProperty(key: Identifier | StringLiteral, value: FlowType, variance?: Variance | null, kind?: "init" | "get" | "set" | null, optional?: boolean | null, proto?: boolean | null, _static?: boolean | null): ObjectTypeProperty;
-export function objectTypeSpreadProperty(argument: FlowType): ObjectTypeSpreadProperty;
-export function opaqueType(id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, supertype: FlowType | null | undefined, impltype: FlowType): OpaqueType;
-export function qualifiedTypeIdentifier(id: Identifier, qualification: Identifier | QualifiedTypeIdentifier): QualifiedTypeIdentifier;
-export function stringLiteralTypeAnnotation(value: string): StringLiteralTypeAnnotation;
-export function stringTypeAnnotation(): StringTypeAnnotation;
-export function thisTypeAnnotation(): ThisTypeAnnotation;
-export function tupleTypeAnnotation(types: Array): TupleTypeAnnotation;
-export function typeofTypeAnnotation(argument: FlowType): TypeofTypeAnnotation;
-export function typeAlias(id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, right: FlowType): TypeAlias;
-export function typeAnnotation(typeAnnotation: FlowType): TypeAnnotation;
-export function typeCastExpression(expression: Expression, typeAnnotation: TypeAnnotation): TypeCastExpression;
-export function typeParameter(bound?: TypeAnnotation | null, _default?: FlowType | null, variance?: Variance | null, name?: string | null): TypeParameter;
-export function typeParameterDeclaration(params: Array): TypeParameterDeclaration;
-export function typeParameterInstantiation(params: Array): TypeParameterInstantiation;
-export function unionTypeAnnotation(types: Array): UnionTypeAnnotation;
-export function variance(kind: "minus" | "plus"): Variance;
-export function voidTypeAnnotation(): VoidTypeAnnotation;
-export function jsxAttribute(name: JSXIdentifier | JSXNamespacedName, value?: JSXElement | JSXFragment | StringLiteral | JSXExpressionContainer | null): JSXAttribute;
-export function jsxClosingElement(name: JSXIdentifier | JSXMemberExpression | JSXNamespacedName): JSXClosingElement;
-export function jsxElement(openingElement: JSXOpeningElement, closingElement: JSXClosingElement | null | undefined, children: Array, selfClosing: any): JSXElement;
-export function jsxEmptyExpression(): JSXEmptyExpression;
-export function jsxExpressionContainer(expression: Expression | JSXEmptyExpression): JSXExpressionContainer;
-export function jsxSpreadChild(expression: Expression): JSXSpreadChild;
-export function jsxIdentifier(name: string): JSXIdentifier;
-export function jsxMemberExpression(object: JSXMemberExpression | JSXIdentifier, property: JSXIdentifier): JSXMemberExpression;
-export function jsxNamespacedName(namespace: JSXIdentifier, name: JSXIdentifier): JSXNamespacedName;
-export function jsxOpeningElement(name: JSXIdentifier | JSXMemberExpression | JSXNamespacedName, attributes: Array, selfClosing?: boolean, typeParameters?: TypeParameterInstantiation | TSTypeParameterInstantiation | null): JSXOpeningElement;
-export function jsxSpreadAttribute(argument: Expression): JSXSpreadAttribute;
-export function jsxText(value: string): JSXText;
-export function jsxFragment(openingFragment: JSXOpeningFragment, closingFragment: JSXClosingFragment, children: Array): JSXFragment;
-export function jsxOpeningFragment(): JSXOpeningFragment;
-export function jsxClosingFragment(): JSXClosingFragment;
-export function noop(): Noop;
-export function placeholder(expectedNode: "Identifier" | "StringLiteral" | "Expression" | "Statement" | "Declaration" | "BlockStatement" | "ClassBody" | "Pattern", name: Identifier): Placeholder;
-export function v8IntrinsicIdentifier(name: string): V8IntrinsicIdentifier;
-export function argumentPlaceholder(): ArgumentPlaceholder;
-export function awaitExpression(argument: Expression): AwaitExpression;
-export function bindExpression(object: any, callee: any): BindExpression;
-export function classProperty(key: Identifier | StringLiteral | NumericLiteral | Expression, value?: Expression | null, typeAnnotation?: TypeAnnotation | TSTypeAnnotation | Noop | null, decorators?: Array | null, computed?: boolean, _static?: boolean, abstract?: boolean | null, accessibility?: "public" | "private" | "protected" | null, definite?: boolean | null, optional?: boolean | null, readonly?: boolean | null): ClassProperty;
-export function optionalMemberExpression(object: Expression, property: any, computed: boolean | undefined, optional: boolean): OptionalMemberExpression;
-export function pipelineTopicExpression(expression: Expression): PipelineTopicExpression;
-export function pipelineBareFunction(callee: Expression): PipelineBareFunction;
-export function pipelinePrimaryTopicReference(): PipelinePrimaryTopicReference;
-export function optionalCallExpression(callee: Expression, _arguments: Array, optional: boolean, typeArguments?: TypeParameterInstantiation | null, typeParameters?: TSTypeParameterInstantiation | null): OptionalCallExpression;
-export function classPrivateProperty(key: PrivateName, value?: Expression | null, decorators?: Array | null): ClassPrivateProperty;
-export function classPrivateMethod(kind: "get" | "set" | "method" | "constructor" | undefined, key: PrivateName, params: Array, body: BlockStatement, _static?: boolean, abstract?: boolean | null, access?: "public" | "private" | "protected" | null, accessibility?: "public" | "private" | "protected" | null, async?: boolean, computed?: boolean, decorators?: Array | null, generator?: boolean, optional?: boolean | null, returnType?: any | null, typeParameters?: any | null): ClassPrivateMethod;
-declare function _import(): Import;
-export { _import as import}
-export function decorator(expression: Expression): Decorator;
-export function doExpression(body: BlockStatement): DoExpression;
-export function exportDefaultSpecifier(exported: Identifier): ExportDefaultSpecifier;
-export function exportNamespaceSpecifier(exported: Identifier): ExportNamespaceSpecifier;
-export function privateName(id: Identifier): PrivateName;
-export function bigIntLiteral(value: string): BigIntLiteral;
-export function tsParameterProperty(parameter: Identifier | AssignmentPattern, accessibility?: "public" | "private" | "protected" | null, readonly?: boolean | null): TSParameterProperty;
-export function tsDeclareFunction(id: Identifier | null | undefined, typeParameters: TSTypeParameterDeclaration | Noop | null | undefined, params: Array, returnType?: TSTypeAnnotation | Noop | null, async?: boolean, declare?: boolean | null, generator?: boolean): TSDeclareFunction;
-export function tsDeclareMethod(decorators: Array | null | undefined, key: Identifier | StringLiteral | NumericLiteral | Expression, typeParameters: TSTypeParameterDeclaration | Noop | null | undefined, params: Array, returnType?: TSTypeAnnotation | Noop | null, abstract?: boolean | null, access?: "public" | "private" | "protected" | null, accessibility?: "public" | "private" | "protected" | null, async?: boolean, computed?: boolean, generator?: boolean, kind?: "get" | "set" | "method" | "constructor", optional?: boolean | null, _static?: boolean): TSDeclareMethod;
-export function tsQualifiedName(left: TSEntityName, right: Identifier): TSQualifiedName;
-export function tsCallSignatureDeclaration(typeParameters: TSTypeParameterDeclaration | null | undefined, parameters: Array, typeAnnotation?: TSTypeAnnotation | null): TSCallSignatureDeclaration;
-export function tsConstructSignatureDeclaration(typeParameters: TSTypeParameterDeclaration | null | undefined, parameters: Array, typeAnnotation?: TSTypeAnnotation | null): TSConstructSignatureDeclaration;
-export function tsPropertySignature(key: Expression, typeAnnotation?: TSTypeAnnotation | null, initializer?: Expression | null, computed?: boolean | null, optional?: boolean | null, readonly?: boolean | null): TSPropertySignature;
-export function tsMethodSignature(key: Expression, typeParameters: TSTypeParameterDeclaration | null | undefined, parameters: Array, typeAnnotation?: TSTypeAnnotation | null, computed?: boolean | null, optional?: boolean | null): TSMethodSignature;
-export function tsIndexSignature(parameters: Array, typeAnnotation?: TSTypeAnnotation | null, readonly?: boolean | null): TSIndexSignature;
-export function tsAnyKeyword(): TSAnyKeyword;
-export function tsBooleanKeyword(): TSBooleanKeyword;
-export function tsBigIntKeyword(): TSBigIntKeyword;
-export function tsNeverKeyword(): TSNeverKeyword;
-export function tsNullKeyword(): TSNullKeyword;
-export function tsNumberKeyword(): TSNumberKeyword;
-export function tsObjectKeyword(): TSObjectKeyword;
-export function tsStringKeyword(): TSStringKeyword;
-export function tsSymbolKeyword(): TSSymbolKeyword;
-export function tsUndefinedKeyword(): TSUndefinedKeyword;
-export function tsUnknownKeyword(): TSUnknownKeyword;
-export function tsVoidKeyword(): TSVoidKeyword;
-export function tsThisType(): TSThisType;
-export function tsFunctionType(typeParameters: TSTypeParameterDeclaration | null | undefined, parameters: Array, typeAnnotation?: TSTypeAnnotation | null): TSFunctionType;
-export function tsConstructorType(typeParameters: TSTypeParameterDeclaration | null | undefined, parameters: Array, typeAnnotation?: TSTypeAnnotation | null): TSConstructorType;
-export function tsTypeReference(typeName: TSEntityName, typeParameters?: TSTypeParameterInstantiation | null): TSTypeReference;
-export function tsTypePredicate(parameterName: Identifier | TSThisType, typeAnnotation: TSTypeAnnotation): TSTypePredicate;
-export function tsTypeQuery(exprName: TSEntityName | TSImportType): TSTypeQuery;
-export function tsTypeLiteral(members: Array): TSTypeLiteral;
-export function tsArrayType(elementType: TSType): TSArrayType;
-export function tsTupleType(elementTypes: Array): TSTupleType;
-export function tsOptionalType(typeAnnotation: TSType): TSOptionalType;
-export function tsRestType(typeAnnotation: TSType): TSRestType;
-export function tsUnionType(types: Array): TSUnionType;
-export function tsIntersectionType(types: Array): TSIntersectionType;
-export function tsConditionalType(checkType: TSType, extendsType: TSType, trueType: TSType, falseType: TSType): TSConditionalType;
-export function tsInferType(typeParameter: TSTypeParameter): TSInferType;
-export function tsParenthesizedType(typeAnnotation: TSType): TSParenthesizedType;
-export function tsTypeOperator(typeAnnotation: TSType, operator?: string | null): TSTypeOperator;
-export function tsIndexedAccessType(objectType: TSType, indexType: TSType): TSIndexedAccessType;
-export function tsMappedType(typeParameter: TSTypeParameter, typeAnnotation?: TSType | null, optional?: boolean | null, readonly?: boolean | null): TSMappedType;
-export function tsLiteralType(literal: NumericLiteral | StringLiteral | BooleanLiteral): TSLiteralType;
-export function tsExpressionWithTypeArguments(expression: TSEntityName, typeParameters?: TSTypeParameterInstantiation | null): TSExpressionWithTypeArguments;
-export function tsInterfaceDeclaration(id: Identifier, typeParameters: TSTypeParameterDeclaration | null | undefined, _extends: Array | null | undefined, body: TSInterfaceBody, declare?: boolean | null): TSInterfaceDeclaration;
-export function tsInterfaceBody(body: Array): TSInterfaceBody;
-export function tsTypeAliasDeclaration(id: Identifier, typeParameters: TSTypeParameterDeclaration | null | undefined, typeAnnotation: TSType, declare?: boolean | null): TSTypeAliasDeclaration;
-export function tsAsExpression(expression: Expression, typeAnnotation: TSType): TSAsExpression;
-export function tsTypeAssertion(typeAnnotation: TSType, expression: Expression): TSTypeAssertion;
-export function tsEnumDeclaration(id: Identifier, members: Array, _const?: boolean | null, declare?: boolean | null, initializer?: Expression | null): TSEnumDeclaration;
-export function tsEnumMember(id: Identifier | StringLiteral, initializer?: Expression | null): TSEnumMember;
-export function tsModuleDeclaration(id: Identifier | StringLiteral, body: TSModuleBlock | TSModuleDeclaration, declare?: boolean | null, global?: boolean | null): TSModuleDeclaration;
-export function tsModuleBlock(body: Array): TSModuleBlock;
-export function tsImportType(argument: StringLiteral, qualifier?: TSEntityName | null, typeParameters?: TSTypeParameterInstantiation | null): TSImportType;
-export function tsImportEqualsDeclaration(id: Identifier, moduleReference: TSEntityName | TSExternalModuleReference, isExport?: boolean | null): TSImportEqualsDeclaration;
-export function tsExternalModuleReference(expression: StringLiteral): TSExternalModuleReference;
-export function tsNonNullExpression(expression: Expression): TSNonNullExpression;
-export function tsExportAssignment(expression: Expression): TSExportAssignment;
-export function tsNamespaceExportDeclaration(id: Identifier): TSNamespaceExportDeclaration;
-export function tsTypeAnnotation(typeAnnotation: TSType): TSTypeAnnotation;
-export function tsTypeParameterInstantiation(params: Array): TSTypeParameterInstantiation;
-export function tsTypeParameterDeclaration(params: Array): TSTypeParameterDeclaration;
-export function tsTypeParameter(constraint: TSType | null | undefined, _default: TSType | null | undefined, name: string): TSTypeParameter;
-export function isAnyTypeAnnotation(node: object | null | undefined, opts?: object | null): node is AnyTypeAnnotation;
-export function isArgumentPlaceholder(node: object | null | undefined, opts?: object | null): node is ArgumentPlaceholder;
-export function isArrayExpression(node: object | null | undefined, opts?: object | null): node is ArrayExpression;
-export function isArrayPattern(node: object | null | undefined, opts?: object | null): node is ArrayPattern;
-export function isArrayTypeAnnotation(node: object | null | undefined, opts?: object | null): node is ArrayTypeAnnotation;
-export function isArrowFunctionExpression(node: object | null | undefined, opts?: object | null): node is ArrowFunctionExpression;
-export function isAssignmentExpression(node: object | null | undefined, opts?: object | null): node is AssignmentExpression;
-export function isAssignmentPattern(node: object | null | undefined, opts?: object | null): node is AssignmentPattern;
-export function isAwaitExpression(node: object | null | undefined, opts?: object | null): node is AwaitExpression;
-export function isBigIntLiteral(node: object | null | undefined, opts?: object | null): node is BigIntLiteral;
-export function isBinary(node: object | null | undefined, opts?: object | null): node is Binary;
-export function isBinaryExpression(node: object | null | undefined, opts?: object | null): node is BinaryExpression;
-export function isBindExpression(node: object | null | undefined, opts?: object | null): node is BindExpression;
-export function isBlock(node: object | null | undefined, opts?: object | null): node is Block;
-export function isBlockParent(node: object | null | undefined, opts?: object | null): node is BlockParent;
-export function isBlockStatement(node: object | null | undefined, opts?: object | null): node is BlockStatement;
-export function isBooleanLiteral(node: object | null | undefined, opts?: object | null): node is BooleanLiteral;
-export function isBooleanLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): node is BooleanLiteralTypeAnnotation;
-export function isBooleanTypeAnnotation(node: object | null | undefined, opts?: object | null): node is BooleanTypeAnnotation;
-export function isBreakStatement(node: object | null | undefined, opts?: object | null): node is BreakStatement;
-export function isCallExpression(node: object | null | undefined, opts?: object | null): node is CallExpression;
-export function isCatchClause(node: object | null | undefined, opts?: object | null): node is CatchClause;
-export function isClass(node: object | null | undefined, opts?: object | null): node is Class;
-export function isClassBody(node: object | null | undefined, opts?: object | null): node is ClassBody;
-export function isClassDeclaration(node: object | null | undefined, opts?: object | null): node is ClassDeclaration;
-export function isClassExpression(node: object | null | undefined, opts?: object | null): node is ClassExpression;
-export function isClassImplements(node: object | null | undefined, opts?: object | null): node is ClassImplements;
-export function isClassMethod(node: object | null | undefined, opts?: object | null): node is ClassMethod;
-export function isClassPrivateMethod(node: object | null | undefined, opts?: object | null): node is ClassPrivateMethod;
-export function isClassPrivateProperty(node: object | null | undefined, opts?: object | null): node is ClassPrivateProperty;
-export function isClassProperty(node: object | null | undefined, opts?: object | null): node is ClassProperty;
-export function isCompletionStatement(node: object | null | undefined, opts?: object | null): node is CompletionStatement;
-export function isConditional(node: object | null | undefined, opts?: object | null): node is Conditional;
-export function isConditionalExpression(node: object | null | undefined, opts?: object | null): node is ConditionalExpression;
-export function isContinueStatement(node: object | null | undefined, opts?: object | null): node is ContinueStatement;
-export function isDebuggerStatement(node: object | null | undefined, opts?: object | null): node is DebuggerStatement;
-export function isDeclaration(node: object | null | undefined, opts?: object | null): node is Declaration;
-export function isDeclareClass(node: object | null | undefined, opts?: object | null): node is DeclareClass;
-export function isDeclareExportAllDeclaration(node: object | null | undefined, opts?: object | null): node is DeclareExportAllDeclaration;
-export function isDeclareExportDeclaration(node: object | null | undefined, opts?: object | null): node is DeclareExportDeclaration;
-export function isDeclareFunction(node: object | null | undefined, opts?: object | null): node is DeclareFunction;
-export function isDeclareInterface(node: object | null | undefined, opts?: object | null): node is DeclareInterface;
-export function isDeclareModule(node: object | null | undefined, opts?: object | null): node is DeclareModule;
-export function isDeclareModuleExports(node: object | null | undefined, opts?: object | null): node is DeclareModuleExports;
-export function isDeclareOpaqueType(node: object | null | undefined, opts?: object | null): node is DeclareOpaqueType;
-export function isDeclareTypeAlias(node: object | null | undefined, opts?: object | null): node is DeclareTypeAlias;
-export function isDeclareVariable(node: object | null | undefined, opts?: object | null): node is DeclareVariable;
-export function isDeclaredPredicate(node: object | null | undefined, opts?: object | null): node is DeclaredPredicate;
-export function isDecorator(node: object | null | undefined, opts?: object | null): node is Decorator;
-export function isDirective(node: object | null | undefined, opts?: object | null): node is Directive;
-export function isDirectiveLiteral(node: object | null | undefined, opts?: object | null): node is DirectiveLiteral;
-export function isDoExpression(node: object | null | undefined, opts?: object | null): node is DoExpression;
-export function isDoWhileStatement(node: object | null | undefined, opts?: object | null): node is DoWhileStatement;
-export function isEmptyStatement(node: object | null | undefined, opts?: object | null): node is EmptyStatement;
-export function isEmptyTypeAnnotation(node: object | null | undefined, opts?: object | null): node is EmptyTypeAnnotation;
-export function isExistsTypeAnnotation(node: object | null | undefined, opts?: object | null): node is ExistsTypeAnnotation;
-export function isExportAllDeclaration(node: object | null | undefined, opts?: object | null): node is ExportAllDeclaration;
-export function isExportDeclaration(node: object | null | undefined, opts?: object | null): node is ExportDeclaration;
-export function isExportDefaultDeclaration(node: object | null | undefined, opts?: object | null): node is ExportDefaultDeclaration;
-export function isExportDefaultSpecifier(node: object | null | undefined, opts?: object | null): node is ExportDefaultSpecifier;
-export function isExportNamedDeclaration(node: object | null | undefined, opts?: object | null): node is ExportNamedDeclaration;
-export function isExportNamespaceSpecifier(node: object | null | undefined, opts?: object | null): node is ExportNamespaceSpecifier;
-export function isExportSpecifier(node: object | null | undefined, opts?: object | null): node is ExportSpecifier;
-export function isExpression(node: object | null | undefined, opts?: object | null): node is Expression;
-export function isExpressionStatement(node: object | null | undefined, opts?: object | null): node is ExpressionStatement;
-export function isExpressionWrapper(node: object | null | undefined, opts?: object | null): node is ExpressionWrapper;
-export function isFile(node: object | null | undefined, opts?: object | null): node is File;
-export function isFlow(node: object | null | undefined, opts?: object | null): node is Flow;
-export function isFlowBaseAnnotation(node: object | null | undefined, opts?: object | null): node is FlowBaseAnnotation;
-export function isFlowDeclaration(node: object | null | undefined, opts?: object | null): node is FlowDeclaration;
-export function isFlowPredicate(node: object | null | undefined, opts?: object | null): node is FlowPredicate;
-export function isFlowType(node: object | null | undefined, opts?: object | null): node is FlowType;
-export function isFor(node: object | null | undefined, opts?: object | null): node is For;
-export function isForInStatement(node: object | null | undefined, opts?: object | null): node is ForInStatement;
-export function isForOfStatement(node: object | null | undefined, opts?: object | null): node is ForOfStatement;
-export function isForStatement(node: object | null | undefined, opts?: object | null): node is ForStatement;
-export function isForXStatement(node: object | null | undefined, opts?: object | null): node is ForXStatement;
-export function isFunction(node: object | null | undefined, opts?: object | null): node is Function;
-export function isFunctionDeclaration(node: object | null | undefined, opts?: object | null): node is FunctionDeclaration;
-export function isFunctionExpression(node: object | null | undefined, opts?: object | null): node is FunctionExpression;
-export function isFunctionParent(node: object | null | undefined, opts?: object | null): node is FunctionParent;
-export function isFunctionTypeAnnotation(node: object | null | undefined, opts?: object | null): node is FunctionTypeAnnotation;
-export function isFunctionTypeParam(node: object | null | undefined, opts?: object | null): node is FunctionTypeParam;
-export function isGenericTypeAnnotation(node: object | null | undefined, opts?: object | null): node is GenericTypeAnnotation;
-export function isIdentifier(node: object | null | undefined, opts?: object | null): node is Identifier;
-export function isIfStatement(node: object | null | undefined, opts?: object | null): node is IfStatement;
-export function isImmutable(node: object | null | undefined, opts?: object | null): node is Immutable;
-export function isImport(node: object | null | undefined, opts?: object | null): node is Import;
-export function isImportDeclaration(node: object | null | undefined, opts?: object | null): node is ImportDeclaration;
-export function isImportDefaultSpecifier(node: object | null | undefined, opts?: object | null): node is ImportDefaultSpecifier;
-export function isImportNamespaceSpecifier(node: object | null | undefined, opts?: object | null): node is ImportNamespaceSpecifier;
-export function isImportSpecifier(node: object | null | undefined, opts?: object | null): node is ImportSpecifier;
-export function isInferredPredicate(node: object | null | undefined, opts?: object | null): node is InferredPredicate;
-export function isInterfaceDeclaration(node: object | null | undefined, opts?: object | null): node is InterfaceDeclaration;
-export function isInterfaceExtends(node: object | null | undefined, opts?: object | null): node is InterfaceExtends;
-export function isInterfaceTypeAnnotation(node: object | null | undefined, opts?: object | null): node is InterfaceTypeAnnotation;
-export function isInterpreterDirective(node: object | null | undefined, opts?: object | null): node is InterpreterDirective;
-export function isIntersectionTypeAnnotation(node: object | null | undefined, opts?: object | null): node is IntersectionTypeAnnotation;
-export function isJSX(node: object | null | undefined, opts?: object | null): node is JSX;
-export function isJSXAttribute(node: object | null | undefined, opts?: object | null): node is JSXAttribute;
-export function isJSXClosingElement(node: object | null | undefined, opts?: object | null): node is JSXClosingElement;
-export function isJSXClosingFragment(node: object | null | undefined, opts?: object | null): node is JSXClosingFragment;
-export function isJSXElement(node: object | null | undefined, opts?: object | null): node is JSXElement;
-export function isJSXEmptyExpression(node: object | null | undefined, opts?: object | null): node is JSXEmptyExpression;
-export function isJSXExpressionContainer(node: object | null | undefined, opts?: object | null): node is JSXExpressionContainer;
-export function isJSXFragment(node: object | null | undefined, opts?: object | null): node is JSXFragment;
-export function isJSXIdentifier(node: object | null | undefined, opts?: object | null): node is JSXIdentifier;
-export function isJSXMemberExpression(node: object | null | undefined, opts?: object | null): node is JSXMemberExpression;
-export function isJSXNamespacedName(node: object | null | undefined, opts?: object | null): node is JSXNamespacedName;
-export function isJSXOpeningElement(node: object | null | undefined, opts?: object | null): node is JSXOpeningElement;
-export function isJSXOpeningFragment(node: object | null | undefined, opts?: object | null): node is JSXOpeningFragment;
-export function isJSXSpreadAttribute(node: object | null | undefined, opts?: object | null): node is JSXSpreadAttribute;
-export function isJSXSpreadChild(node: object | null | undefined, opts?: object | null): node is JSXSpreadChild;
-export function isJSXText(node: object | null | undefined, opts?: object | null): node is JSXText;
-export function isLVal(node: object | null | undefined, opts?: object | null): node is LVal;
-export function isLabeledStatement(node: object | null | undefined, opts?: object | null): node is LabeledStatement;
-export function isLiteral(node: object | null | undefined, opts?: object | null): node is Literal;
-export function isLogicalExpression(node: object | null | undefined, opts?: object | null): node is LogicalExpression;
-export function isLoop(node: object | null | undefined, opts?: object | null): node is Loop;
-export function isMemberExpression(node: object | null | undefined, opts?: object | null): node is MemberExpression;
-export function isMetaProperty(node: object | null | undefined, opts?: object | null): node is MetaProperty;
-export function isMethod(node: object | null | undefined, opts?: object | null): node is Method;
-export function isMixedTypeAnnotation(node: object | null | undefined, opts?: object | null): node is MixedTypeAnnotation;
-export function isModuleDeclaration(node: object | null | undefined, opts?: object | null): node is ModuleDeclaration;
-export function isModuleSpecifier(node: object | null | undefined, opts?: object | null): node is ModuleSpecifier;
-export function isNewExpression(node: object | null | undefined, opts?: object | null): node is NewExpression;
-export function isNoop(node: object | null | undefined, opts?: object | null): node is Noop;
-export function isNullLiteral(node: object | null | undefined, opts?: object | null): node is NullLiteral;
-export function isNullLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): node is NullLiteralTypeAnnotation;
-export function isNullableTypeAnnotation(node: object | null | undefined, opts?: object | null): node is NullableTypeAnnotation;
-export function isNumberLiteral(node: object | null | undefined, opts?: object | null): boolean;
-export function isNumberLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): node is NumberLiteralTypeAnnotation;
-export function isNumberTypeAnnotation(node: object | null | undefined, opts?: object | null): node is NumberTypeAnnotation;
-export function isNumericLiteral(node: object | null | undefined, opts?: object | null): node is NumericLiteral;
-export function isObjectExpression(node: object | null | undefined, opts?: object | null): node is ObjectExpression;
-export function isObjectMember(node: object | null | undefined, opts?: object | null): node is ObjectMember;
-export function isObjectMethod(node: object | null | undefined, opts?: object | null): node is ObjectMethod;
-export function isObjectPattern(node: object | null | undefined, opts?: object | null): node is ObjectPattern;
-export function isObjectProperty(node: object | null | undefined, opts?: object | null): node is ObjectProperty;
-export function isObjectTypeAnnotation(node: object | null | undefined, opts?: object | null): node is ObjectTypeAnnotation;
-export function isObjectTypeCallProperty(node: object | null | undefined, opts?: object | null): node is ObjectTypeCallProperty;
-export function isObjectTypeIndexer(node: object | null | undefined, opts?: object | null): node is ObjectTypeIndexer;
-export function isObjectTypeInternalSlot(node: object | null | undefined, opts?: object | null): node is ObjectTypeInternalSlot;
-export function isObjectTypeProperty(node: object | null | undefined, opts?: object | null): node is ObjectTypeProperty;
-export function isObjectTypeSpreadProperty(node: object | null | undefined, opts?: object | null): node is ObjectTypeSpreadProperty;
-export function isOpaqueType(node: object | null | undefined, opts?: object | null): node is OpaqueType;
-export function isOptionalCallExpression(node: object | null | undefined, opts?: object | null): node is OptionalCallExpression;
-export function isOptionalMemberExpression(node: object | null | undefined, opts?: object | null): node is OptionalMemberExpression;
-export function isParenthesizedExpression(node: object | null | undefined, opts?: object | null): node is ParenthesizedExpression;
-export function isPattern(node: object | null | undefined, opts?: object | null): node is Pattern;
-export function isPatternLike(node: object | null | undefined, opts?: object | null): node is PatternLike;
-export function isPipelineBareFunction(node: object | null | undefined, opts?: object | null): node is PipelineBareFunction;
-export function isPipelinePrimaryTopicReference(node: object | null | undefined, opts?: object | null): node is PipelinePrimaryTopicReference;
-export function isPipelineTopicExpression(node: object | null | undefined, opts?: object | null): node is PipelineTopicExpression;
-export function isPlaceholder(node: object | null | undefined, opts?: object | null): node is Placeholder;
-export function isPrivate(node: object | null | undefined, opts?: object | null): node is Private;
-export function isPrivateName(node: object | null | undefined, opts?: object | null): node is PrivateName;
-export function isProgram(node: object | null | undefined, opts?: object | null): node is Program;
-export function isProperty(node: object | null | undefined, opts?: object | null): node is Property;
-export function isPureish(node: object | null | undefined, opts?: object | null): node is Pureish;
-export function isQualifiedTypeIdentifier(node: object | null | undefined, opts?: object | null): node is QualifiedTypeIdentifier;
-export function isRegExpLiteral(node: object | null | undefined, opts?: object | null): node is RegExpLiteral;
-export function isRegexLiteral(node: object | null | undefined, opts?: object | null): boolean;
-export function isRestElement(node: object | null | undefined, opts?: object | null): node is RestElement;
-export function isRestProperty(node: object | null | undefined, opts?: object | null): boolean;
-export function isReturnStatement(node: object | null | undefined, opts?: object | null): node is ReturnStatement;
-export function isScopable(node: object | null | undefined, opts?: object | null): node is Scopable;
-export function isSequenceExpression(node: object | null | undefined, opts?: object | null): node is SequenceExpression;
-export function isSpreadElement(node: object | null | undefined, opts?: object | null): node is SpreadElement;
-export function isSpreadProperty(node: object | null | undefined, opts?: object | null): boolean;
-export function isStatement(node: object | null | undefined, opts?: object | null): node is Statement;
-export function isStringLiteral(node: object | null | undefined, opts?: object | null): node is StringLiteral;
-export function isStringLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): node is StringLiteralTypeAnnotation;
-export function isStringTypeAnnotation(node: object | null | undefined, opts?: object | null): node is StringTypeAnnotation;
-export function isSuper(node: object | null | undefined, opts?: object | null): node is Super;
-export function isSwitchCase(node: object | null | undefined, opts?: object | null): node is SwitchCase;
-export function isSwitchStatement(node: object | null | undefined, opts?: object | null): node is SwitchStatement;
-export function isTSAnyKeyword(node: object | null | undefined, opts?: object | null): node is TSAnyKeyword;
-export function isTSArrayType(node: object | null | undefined, opts?: object | null): node is TSArrayType;
-export function isTSAsExpression(node: object | null | undefined, opts?: object | null): node is TSAsExpression;
-export function isTSBigIntKeyword(node: object | null | undefined, opts?: object | null): node is TSBigIntKeyword;
-export function isTSBooleanKeyword(node: object | null | undefined, opts?: object | null): node is TSBooleanKeyword;
-export function isTSCallSignatureDeclaration(node: object | null | undefined, opts?: object | null): node is TSCallSignatureDeclaration;
-export function isTSConditionalType(node: object | null | undefined, opts?: object | null): node is TSConditionalType;
-export function isTSConstructSignatureDeclaration(node: object | null | undefined, opts?: object | null): node is TSConstructSignatureDeclaration;
-export function isTSConstructorType(node: object | null | undefined, opts?: object | null): node is TSConstructorType;
-export function isTSDeclareFunction(node: object | null | undefined, opts?: object | null): node is TSDeclareFunction;
-export function isTSDeclareMethod(node: object | null | undefined, opts?: object | null): node is TSDeclareMethod;
-export function isTSEntityName(node: object | null | undefined, opts?: object | null): node is TSEntityName;
-export function isTSEnumDeclaration(node: object | null | undefined, opts?: object | null): node is TSEnumDeclaration;
-export function isTSEnumMember(node: object | null | undefined, opts?: object | null): node is TSEnumMember;
-export function isTSExportAssignment(node: object | null | undefined, opts?: object | null): node is TSExportAssignment;
-export function isTSExpressionWithTypeArguments(node: object | null | undefined, opts?: object | null): node is TSExpressionWithTypeArguments;
-export function isTSExternalModuleReference(node: object | null | undefined, opts?: object | null): node is TSExternalModuleReference;
-export function isTSFunctionType(node: object | null | undefined, opts?: object | null): node is TSFunctionType;
-export function isTSImportEqualsDeclaration(node: object | null | undefined, opts?: object | null): node is TSImportEqualsDeclaration;
-export function isTSImportType(node: object | null | undefined, opts?: object | null): node is TSImportType;
-export function isTSIndexSignature(node: object | null | undefined, opts?: object | null): node is TSIndexSignature;
-export function isTSIndexedAccessType(node: object | null | undefined, opts?: object | null): node is TSIndexedAccessType;
-export function isTSInferType(node: object | null | undefined, opts?: object | null): node is TSInferType;
-export function isTSInterfaceBody(node: object | null | undefined, opts?: object | null): node is TSInterfaceBody;
-export function isTSInterfaceDeclaration(node: object | null | undefined, opts?: object | null): node is TSInterfaceDeclaration;
-export function isTSIntersectionType(node: object | null | undefined, opts?: object | null): node is TSIntersectionType;
-export function isTSLiteralType(node: object | null | undefined, opts?: object | null): node is TSLiteralType;
-export function isTSMappedType(node: object | null | undefined, opts?: object | null): node is TSMappedType;
-export function isTSMethodSignature(node: object | null | undefined, opts?: object | null): node is TSMethodSignature;
-export function isTSModuleBlock(node: object | null | undefined, opts?: object | null): node is TSModuleBlock;
-export function isTSModuleDeclaration(node: object | null | undefined, opts?: object | null): node is TSModuleDeclaration;
-export function isTSNamespaceExportDeclaration(node: object | null | undefined, opts?: object | null): node is TSNamespaceExportDeclaration;
-export function isTSNeverKeyword(node: object | null | undefined, opts?: object | null): node is TSNeverKeyword;
-export function isTSNonNullExpression(node: object | null | undefined, opts?: object | null): node is TSNonNullExpression;
-export function isTSNullKeyword(node: object | null | undefined, opts?: object | null): node is TSNullKeyword;
-export function isTSNumberKeyword(node: object | null | undefined, opts?: object | null): node is TSNumberKeyword;
-export function isTSObjectKeyword(node: object | null | undefined, opts?: object | null): node is TSObjectKeyword;
-export function isTSOptionalType(node: object | null | undefined, opts?: object | null): node is TSOptionalType;
-export function isTSParameterProperty(node: object | null | undefined, opts?: object | null): node is TSParameterProperty;
-export function isTSParenthesizedType(node: object | null | undefined, opts?: object | null): node is TSParenthesizedType;
-export function isTSPropertySignature(node: object | null | undefined, opts?: object | null): node is TSPropertySignature;
-export function isTSQualifiedName(node: object | null | undefined, opts?: object | null): node is TSQualifiedName;
-export function isTSRestType(node: object | null | undefined, opts?: object | null): node is TSRestType;
-export function isTSStringKeyword(node: object | null | undefined, opts?: object | null): node is TSStringKeyword;
-export function isTSSymbolKeyword(node: object | null | undefined, opts?: object | null): node is TSSymbolKeyword;
-export function isTSThisType(node: object | null | undefined, opts?: object | null): node is TSThisType;
-export function isTSTupleType(node: object | null | undefined, opts?: object | null): node is TSTupleType;
-export function isTSType(node: object | null | undefined, opts?: object | null): node is TSType;
-export function isTSTypeAliasDeclaration(node: object | null | undefined, opts?: object | null): node is TSTypeAliasDeclaration;
-export function isTSTypeAnnotation(node: object | null | undefined, opts?: object | null): node is TSTypeAnnotation;
-export function isTSTypeAssertion(node: object | null | undefined, opts?: object | null): node is TSTypeAssertion;
-export function isTSTypeElement(node: object | null | undefined, opts?: object | null): node is TSTypeElement;
-export function isTSTypeLiteral(node: object | null | undefined, opts?: object | null): node is TSTypeLiteral;
-export function isTSTypeOperator(node: object | null | undefined, opts?: object | null): node is TSTypeOperator;
-export function isTSTypeParameter(node: object | null | undefined, opts?: object | null): node is TSTypeParameter;
-export function isTSTypeParameterDeclaration(node: object | null | undefined, opts?: object | null): node is TSTypeParameterDeclaration;
-export function isTSTypeParameterInstantiation(node: object | null | undefined, opts?: object | null): node is TSTypeParameterInstantiation;
-export function isTSTypePredicate(node: object | null | undefined, opts?: object | null): node is TSTypePredicate;
-export function isTSTypeQuery(node: object | null | undefined, opts?: object | null): node is TSTypeQuery;
-export function isTSTypeReference(node: object | null | undefined, opts?: object | null): node is TSTypeReference;
-export function isTSUndefinedKeyword(node: object | null | undefined, opts?: object | null): node is TSUndefinedKeyword;
-export function isTSUnionType(node: object | null | undefined, opts?: object | null): node is TSUnionType;
-export function isTSUnknownKeyword(node: object | null | undefined, opts?: object | null): node is TSUnknownKeyword;
-export function isTSVoidKeyword(node: object | null | undefined, opts?: object | null): node is TSVoidKeyword;
-export function isTaggedTemplateExpression(node: object | null | undefined, opts?: object | null): node is TaggedTemplateExpression;
-export function isTemplateElement(node: object | null | undefined, opts?: object | null): node is TemplateElement;
-export function isTemplateLiteral(node: object | null | undefined, opts?: object | null): node is TemplateLiteral;
-export function isTerminatorless(node: object | null | undefined, opts?: object | null): node is Terminatorless;
-export function isThisExpression(node: object | null | undefined, opts?: object | null): node is ThisExpression;
-export function isThisTypeAnnotation(node: object | null | undefined, opts?: object | null): node is ThisTypeAnnotation;
-export function isThrowStatement(node: object | null | undefined, opts?: object | null): node is ThrowStatement;
-export function isTryStatement(node: object | null | undefined, opts?: object | null): node is TryStatement;
-export function isTupleTypeAnnotation(node: object | null | undefined, opts?: object | null): node is TupleTypeAnnotation;
-export function isTypeAlias(node: object | null | undefined, opts?: object | null): node is TypeAlias;
-export function isTypeAnnotation(node: object | null | undefined, opts?: object | null): node is TypeAnnotation;
-export function isTypeCastExpression(node: object | null | undefined, opts?: object | null): node is TypeCastExpression;
-export function isTypeParameter(node: object | null | undefined, opts?: object | null): node is TypeParameter;
-export function isTypeParameterDeclaration(node: object | null | undefined, opts?: object | null): node is TypeParameterDeclaration;
-export function isTypeParameterInstantiation(node: object | null | undefined, opts?: object | null): node is TypeParameterInstantiation;
-export function isTypeofTypeAnnotation(node: object | null | undefined, opts?: object | null): node is TypeofTypeAnnotation;
-export function isUnaryExpression(node: object | null | undefined, opts?: object | null): node is UnaryExpression;
-export function isUnaryLike(node: object | null | undefined, opts?: object | null): node is UnaryLike;
-export function isUnionTypeAnnotation(node: object | null | undefined, opts?: object | null): node is UnionTypeAnnotation;
-export function isUpdateExpression(node: object | null | undefined, opts?: object | null): node is UpdateExpression;
-export function isUserWhitespacable(node: object | null | undefined, opts?: object | null): node is UserWhitespacable;
-export function isV8IntrinsicIdentifier(node: object | null | undefined, opts?: object | null): node is V8IntrinsicIdentifier;
-export function isVariableDeclaration(node: object | null | undefined, opts?: object | null): node is VariableDeclaration;
-export function isVariableDeclarator(node: object | null | undefined, opts?: object | null): node is VariableDeclarator;
-export function isVariance(node: object | null | undefined, opts?: object | null): node is Variance;
-export function isVoidTypeAnnotation(node: object | null | undefined, opts?: object | null): node is VoidTypeAnnotation;
-export function isWhile(node: object | null | undefined, opts?: object | null): node is While;
-export function isWhileStatement(node: object | null | undefined, opts?: object | null): node is WhileStatement;
-export function isWithStatement(node: object | null | undefined, opts?: object | null): node is WithStatement;
-export function isYieldExpression(node: object | null | undefined, opts?: object | null): node is YieldExpression;
-export function validate(n: Node, key: string, value: any): void;
-export function clone(n: T): T;
-export function cloneDeep(n: T): T;
-export function cloneNode(n: T, deep?: boolean): T;
-export function removeProperties(
- n: Node,
- opts?: { preserveComments: boolean } | null
-): void;
-export function removePropertiesDeep(
- n: T,
- opts?: { preserveComments: boolean } | null
-): T;
-export type TraversalAncestors = ReadonlyArray<{
- node: Node,
- key: string,
- index?: number,
-}>;
-export type TraversalHandler = (node: Node, parent: TraversalAncestors, type: T) => void;
-export type TraversalHandlers = {
- enter?: TraversalHandler,
- exit?: TraversalHandler,
-};
-export function traverse(n: Node, h: TraversalHandler | TraversalHandlers, state?: T): void;
-export function is(type: string, n: Node, opts: object): boolean;
-export function isBinding(node: Node, parent: Node, grandparent?: Node): boolean
-export function isBlockScoped(node: Node): boolean
-export function isImmutable(node: Node): boolean
-export function isLet(node: Node): boolean
-export function isNode(node: object | null | undefined): boolean
-export function isNodesEquivalent(a: any, b: any): boolean
-export function isPlaceholderType(placeholderType: string, targetType: string): boolean
-export function isReferenced(node: Node, parent: Node, grandparent?: Node): boolean
-export function isScope(node: Node, parent: Node): boolean
-export function isSpecifierDefault(specifier: ModuleSpecifier): boolean
-export function isType(nodetype: string | null | undefined, targetType: string): boolean
-export function isValidES3Identifier(name: string): boolean
-export function isValidES3Identifier(name: string): boolean
-export function isValidIdentifier(name: string): boolean
-export function isVar(node: Node): boolean
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/index.js b/node_modules/@babel/preset-env/node_modules/@babel/types/lib/index.js
deleted file mode 100644
index f5bb66b0..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/index.js
+++ /dev/null
@@ -1,579 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-var _exportNames = {
- react: true,
- assertNode: true,
- createTypeAnnotationBasedOnTypeof: true,
- createUnionTypeAnnotation: true,
- cloneNode: true,
- clone: true,
- cloneDeep: true,
- cloneWithoutLoc: true,
- addComment: true,
- addComments: true,
- inheritInnerComments: true,
- inheritLeadingComments: true,
- inheritsComments: true,
- inheritTrailingComments: true,
- removeComments: true,
- ensureBlock: true,
- toBindingIdentifierName: true,
- toBlock: true,
- toComputedKey: true,
- toExpression: true,
- toIdentifier: true,
- toKeyAlias: true,
- toSequenceExpression: true,
- toStatement: true,
- valueToNode: true,
- appendToMemberExpression: true,
- inherits: true,
- prependToMemberExpression: true,
- removeProperties: true,
- removePropertiesDeep: true,
- removeTypeDuplicates: true,
- getBindingIdentifiers: true,
- getOuterBindingIdentifiers: true,
- traverse: true,
- traverseFast: true,
- shallowEqual: true,
- is: true,
- isBinding: true,
- isBlockScoped: true,
- isImmutable: true,
- isLet: true,
- isNode: true,
- isNodesEquivalent: true,
- isPlaceholderType: true,
- isReferenced: true,
- isScope: true,
- isSpecifierDefault: true,
- isType: true,
- isValidES3Identifier: true,
- isValidIdentifier: true,
- isVar: true,
- matchesPattern: true,
- validate: true,
- buildMatchMemberExpression: true
-};
-Object.defineProperty(exports, "assertNode", {
- enumerable: true,
- get: function () {
- return _assertNode.default;
- }
-});
-Object.defineProperty(exports, "createTypeAnnotationBasedOnTypeof", {
- enumerable: true,
- get: function () {
- return _createTypeAnnotationBasedOnTypeof.default;
- }
-});
-Object.defineProperty(exports, "createUnionTypeAnnotation", {
- enumerable: true,
- get: function () {
- return _createUnionTypeAnnotation.default;
- }
-});
-Object.defineProperty(exports, "cloneNode", {
- enumerable: true,
- get: function () {
- return _cloneNode.default;
- }
-});
-Object.defineProperty(exports, "clone", {
- enumerable: true,
- get: function () {
- return _clone.default;
- }
-});
-Object.defineProperty(exports, "cloneDeep", {
- enumerable: true,
- get: function () {
- return _cloneDeep.default;
- }
-});
-Object.defineProperty(exports, "cloneWithoutLoc", {
- enumerable: true,
- get: function () {
- return _cloneWithoutLoc.default;
- }
-});
-Object.defineProperty(exports, "addComment", {
- enumerable: true,
- get: function () {
- return _addComment.default;
- }
-});
-Object.defineProperty(exports, "addComments", {
- enumerable: true,
- get: function () {
- return _addComments.default;
- }
-});
-Object.defineProperty(exports, "inheritInnerComments", {
- enumerable: true,
- get: function () {
- return _inheritInnerComments.default;
- }
-});
-Object.defineProperty(exports, "inheritLeadingComments", {
- enumerable: true,
- get: function () {
- return _inheritLeadingComments.default;
- }
-});
-Object.defineProperty(exports, "inheritsComments", {
- enumerable: true,
- get: function () {
- return _inheritsComments.default;
- }
-});
-Object.defineProperty(exports, "inheritTrailingComments", {
- enumerable: true,
- get: function () {
- return _inheritTrailingComments.default;
- }
-});
-Object.defineProperty(exports, "removeComments", {
- enumerable: true,
- get: function () {
- return _removeComments.default;
- }
-});
-Object.defineProperty(exports, "ensureBlock", {
- enumerable: true,
- get: function () {
- return _ensureBlock.default;
- }
-});
-Object.defineProperty(exports, "toBindingIdentifierName", {
- enumerable: true,
- get: function () {
- return _toBindingIdentifierName.default;
- }
-});
-Object.defineProperty(exports, "toBlock", {
- enumerable: true,
- get: function () {
- return _toBlock.default;
- }
-});
-Object.defineProperty(exports, "toComputedKey", {
- enumerable: true,
- get: function () {
- return _toComputedKey.default;
- }
-});
-Object.defineProperty(exports, "toExpression", {
- enumerable: true,
- get: function () {
- return _toExpression.default;
- }
-});
-Object.defineProperty(exports, "toIdentifier", {
- enumerable: true,
- get: function () {
- return _toIdentifier.default;
- }
-});
-Object.defineProperty(exports, "toKeyAlias", {
- enumerable: true,
- get: function () {
- return _toKeyAlias.default;
- }
-});
-Object.defineProperty(exports, "toSequenceExpression", {
- enumerable: true,
- get: function () {
- return _toSequenceExpression.default;
- }
-});
-Object.defineProperty(exports, "toStatement", {
- enumerable: true,
- get: function () {
- return _toStatement.default;
- }
-});
-Object.defineProperty(exports, "valueToNode", {
- enumerable: true,
- get: function () {
- return _valueToNode.default;
- }
-});
-Object.defineProperty(exports, "appendToMemberExpression", {
- enumerable: true,
- get: function () {
- return _appendToMemberExpression.default;
- }
-});
-Object.defineProperty(exports, "inherits", {
- enumerable: true,
- get: function () {
- return _inherits.default;
- }
-});
-Object.defineProperty(exports, "prependToMemberExpression", {
- enumerable: true,
- get: function () {
- return _prependToMemberExpression.default;
- }
-});
-Object.defineProperty(exports, "removeProperties", {
- enumerable: true,
- get: function () {
- return _removeProperties.default;
- }
-});
-Object.defineProperty(exports, "removePropertiesDeep", {
- enumerable: true,
- get: function () {
- return _removePropertiesDeep.default;
- }
-});
-Object.defineProperty(exports, "removeTypeDuplicates", {
- enumerable: true,
- get: function () {
- return _removeTypeDuplicates.default;
- }
-});
-Object.defineProperty(exports, "getBindingIdentifiers", {
- enumerable: true,
- get: function () {
- return _getBindingIdentifiers.default;
- }
-});
-Object.defineProperty(exports, "getOuterBindingIdentifiers", {
- enumerable: true,
- get: function () {
- return _getOuterBindingIdentifiers.default;
- }
-});
-Object.defineProperty(exports, "traverse", {
- enumerable: true,
- get: function () {
- return _traverse.default;
- }
-});
-Object.defineProperty(exports, "traverseFast", {
- enumerable: true,
- get: function () {
- return _traverseFast.default;
- }
-});
-Object.defineProperty(exports, "shallowEqual", {
- enumerable: true,
- get: function () {
- return _shallowEqual.default;
- }
-});
-Object.defineProperty(exports, "is", {
- enumerable: true,
- get: function () {
- return _is.default;
- }
-});
-Object.defineProperty(exports, "isBinding", {
- enumerable: true,
- get: function () {
- return _isBinding.default;
- }
-});
-Object.defineProperty(exports, "isBlockScoped", {
- enumerable: true,
- get: function () {
- return _isBlockScoped.default;
- }
-});
-Object.defineProperty(exports, "isImmutable", {
- enumerable: true,
- get: function () {
- return _isImmutable.default;
- }
-});
-Object.defineProperty(exports, "isLet", {
- enumerable: true,
- get: function () {
- return _isLet.default;
- }
-});
-Object.defineProperty(exports, "isNode", {
- enumerable: true,
- get: function () {
- return _isNode.default;
- }
-});
-Object.defineProperty(exports, "isNodesEquivalent", {
- enumerable: true,
- get: function () {
- return _isNodesEquivalent.default;
- }
-});
-Object.defineProperty(exports, "isPlaceholderType", {
- enumerable: true,
- get: function () {
- return _isPlaceholderType.default;
- }
-});
-Object.defineProperty(exports, "isReferenced", {
- enumerable: true,
- get: function () {
- return _isReferenced.default;
- }
-});
-Object.defineProperty(exports, "isScope", {
- enumerable: true,
- get: function () {
- return _isScope.default;
- }
-});
-Object.defineProperty(exports, "isSpecifierDefault", {
- enumerable: true,
- get: function () {
- return _isSpecifierDefault.default;
- }
-});
-Object.defineProperty(exports, "isType", {
- enumerable: true,
- get: function () {
- return _isType.default;
- }
-});
-Object.defineProperty(exports, "isValidES3Identifier", {
- enumerable: true,
- get: function () {
- return _isValidES3Identifier.default;
- }
-});
-Object.defineProperty(exports, "isValidIdentifier", {
- enumerable: true,
- get: function () {
- return _isValidIdentifier.default;
- }
-});
-Object.defineProperty(exports, "isVar", {
- enumerable: true,
- get: function () {
- return _isVar.default;
- }
-});
-Object.defineProperty(exports, "matchesPattern", {
- enumerable: true,
- get: function () {
- return _matchesPattern.default;
- }
-});
-Object.defineProperty(exports, "validate", {
- enumerable: true,
- get: function () {
- return _validate.default;
- }
-});
-Object.defineProperty(exports, "buildMatchMemberExpression", {
- enumerable: true,
- get: function () {
- return _buildMatchMemberExpression.default;
- }
-});
-exports.react = void 0;
-
-var _isReactComponent = _interopRequireDefault(require("./validators/react/isReactComponent"));
-
-var _isCompatTag = _interopRequireDefault(require("./validators/react/isCompatTag"));
-
-var _buildChildren = _interopRequireDefault(require("./builders/react/buildChildren"));
-
-var _assertNode = _interopRequireDefault(require("./asserts/assertNode"));
-
-var _generated = require("./asserts/generated");
-
-Object.keys(_generated).forEach(function (key) {
- if (key === "default" || key === "__esModule") return;
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
- Object.defineProperty(exports, key, {
- enumerable: true,
- get: function () {
- return _generated[key];
- }
- });
-});
-
-var _createTypeAnnotationBasedOnTypeof = _interopRequireDefault(require("./builders/flow/createTypeAnnotationBasedOnTypeof"));
-
-var _createUnionTypeAnnotation = _interopRequireDefault(require("./builders/flow/createUnionTypeAnnotation"));
-
-var _generated2 = require("./builders/generated");
-
-Object.keys(_generated2).forEach(function (key) {
- if (key === "default" || key === "__esModule") return;
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
- Object.defineProperty(exports, key, {
- enumerable: true,
- get: function () {
- return _generated2[key];
- }
- });
-});
-
-var _cloneNode = _interopRequireDefault(require("./clone/cloneNode"));
-
-var _clone = _interopRequireDefault(require("./clone/clone"));
-
-var _cloneDeep = _interopRequireDefault(require("./clone/cloneDeep"));
-
-var _cloneWithoutLoc = _interopRequireDefault(require("./clone/cloneWithoutLoc"));
-
-var _addComment = _interopRequireDefault(require("./comments/addComment"));
-
-var _addComments = _interopRequireDefault(require("./comments/addComments"));
-
-var _inheritInnerComments = _interopRequireDefault(require("./comments/inheritInnerComments"));
-
-var _inheritLeadingComments = _interopRequireDefault(require("./comments/inheritLeadingComments"));
-
-var _inheritsComments = _interopRequireDefault(require("./comments/inheritsComments"));
-
-var _inheritTrailingComments = _interopRequireDefault(require("./comments/inheritTrailingComments"));
-
-var _removeComments = _interopRequireDefault(require("./comments/removeComments"));
-
-var _generated3 = require("./constants/generated");
-
-Object.keys(_generated3).forEach(function (key) {
- if (key === "default" || key === "__esModule") return;
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
- Object.defineProperty(exports, key, {
- enumerable: true,
- get: function () {
- return _generated3[key];
- }
- });
-});
-
-var _constants = require("./constants");
-
-Object.keys(_constants).forEach(function (key) {
- if (key === "default" || key === "__esModule") return;
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
- Object.defineProperty(exports, key, {
- enumerable: true,
- get: function () {
- return _constants[key];
- }
- });
-});
-
-var _ensureBlock = _interopRequireDefault(require("./converters/ensureBlock"));
-
-var _toBindingIdentifierName = _interopRequireDefault(require("./converters/toBindingIdentifierName"));
-
-var _toBlock = _interopRequireDefault(require("./converters/toBlock"));
-
-var _toComputedKey = _interopRequireDefault(require("./converters/toComputedKey"));
-
-var _toExpression = _interopRequireDefault(require("./converters/toExpression"));
-
-var _toIdentifier = _interopRequireDefault(require("./converters/toIdentifier"));
-
-var _toKeyAlias = _interopRequireDefault(require("./converters/toKeyAlias"));
-
-var _toSequenceExpression = _interopRequireDefault(require("./converters/toSequenceExpression"));
-
-var _toStatement = _interopRequireDefault(require("./converters/toStatement"));
-
-var _valueToNode = _interopRequireDefault(require("./converters/valueToNode"));
-
-var _definitions = require("./definitions");
-
-Object.keys(_definitions).forEach(function (key) {
- if (key === "default" || key === "__esModule") return;
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
- Object.defineProperty(exports, key, {
- enumerable: true,
- get: function () {
- return _definitions[key];
- }
- });
-});
-
-var _appendToMemberExpression = _interopRequireDefault(require("./modifications/appendToMemberExpression"));
-
-var _inherits = _interopRequireDefault(require("./modifications/inherits"));
-
-var _prependToMemberExpression = _interopRequireDefault(require("./modifications/prependToMemberExpression"));
-
-var _removeProperties = _interopRequireDefault(require("./modifications/removeProperties"));
-
-var _removePropertiesDeep = _interopRequireDefault(require("./modifications/removePropertiesDeep"));
-
-var _removeTypeDuplicates = _interopRequireDefault(require("./modifications/flow/removeTypeDuplicates"));
-
-var _getBindingIdentifiers = _interopRequireDefault(require("./retrievers/getBindingIdentifiers"));
-
-var _getOuterBindingIdentifiers = _interopRequireDefault(require("./retrievers/getOuterBindingIdentifiers"));
-
-var _traverse = _interopRequireDefault(require("./traverse/traverse"));
-
-var _traverseFast = _interopRequireDefault(require("./traverse/traverseFast"));
-
-var _shallowEqual = _interopRequireDefault(require("./utils/shallowEqual"));
-
-var _is = _interopRequireDefault(require("./validators/is"));
-
-var _isBinding = _interopRequireDefault(require("./validators/isBinding"));
-
-var _isBlockScoped = _interopRequireDefault(require("./validators/isBlockScoped"));
-
-var _isImmutable = _interopRequireDefault(require("./validators/isImmutable"));
-
-var _isLet = _interopRequireDefault(require("./validators/isLet"));
-
-var _isNode = _interopRequireDefault(require("./validators/isNode"));
-
-var _isNodesEquivalent = _interopRequireDefault(require("./validators/isNodesEquivalent"));
-
-var _isPlaceholderType = _interopRequireDefault(require("./validators/isPlaceholderType"));
-
-var _isReferenced = _interopRequireDefault(require("./validators/isReferenced"));
-
-var _isScope = _interopRequireDefault(require("./validators/isScope"));
-
-var _isSpecifierDefault = _interopRequireDefault(require("./validators/isSpecifierDefault"));
-
-var _isType = _interopRequireDefault(require("./validators/isType"));
-
-var _isValidES3Identifier = _interopRequireDefault(require("./validators/isValidES3Identifier"));
-
-var _isValidIdentifier = _interopRequireDefault(require("./validators/isValidIdentifier"));
-
-var _isVar = _interopRequireDefault(require("./validators/isVar"));
-
-var _matchesPattern = _interopRequireDefault(require("./validators/matchesPattern"));
-
-var _validate = _interopRequireDefault(require("./validators/validate"));
-
-var _buildMatchMemberExpression = _interopRequireDefault(require("./validators/buildMatchMemberExpression"));
-
-var _generated4 = require("./validators/generated");
-
-Object.keys(_generated4).forEach(function (key) {
- if (key === "default" || key === "__esModule") return;
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
- Object.defineProperty(exports, key, {
- enumerable: true,
- get: function () {
- return _generated4[key];
- }
- });
-});
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-const react = {
- isReactComponent: _isReactComponent.default,
- isCompatTag: _isCompatTag.default,
- buildChildren: _buildChildren.default
-};
-exports.react = react;
\ No newline at end of file
diff --git a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/index.js.flow b/node_modules/@babel/preset-env/node_modules/@babel/types/lib/index.js.flow
deleted file mode 100644
index 5398d99d..00000000
--- a/node_modules/@babel/preset-env/node_modules/@babel/types/lib/index.js.flow
+++ /dev/null
@@ -1,2010 +0,0 @@
-// NOTE: This file is autogenerated. Do not modify.
-// See packages/babel-types/scripts/generators/flow.js for script used.
-
-declare class BabelNodeComment {
- value: string;
- start: number;
- end: number;
- loc: BabelNodeSourceLocation;
-}
-
-declare class BabelNodeCommentBlock extends BabelNodeComment {
- type: "CommentBlock";
-}
-
-declare class BabelNodeCommentLine extends BabelNodeComment {
- type: "CommentLine";
-}
-
-declare class BabelNodeSourceLocation {
- start: {
- line: number;
- column: number;
- };
-
- end: {
- line: number;
- column: number;
- };
-}
-
-declare class BabelNode {
- leadingComments?: Array;
- innerComments?: Array;
- trailingComments?: Array;
- start: ?number;
- end: ?number;
- loc: ?BabelNodeSourceLocation;
-}
-
-declare class BabelNodeArrayExpression extends BabelNode {
- type: "ArrayExpression";
- elements?: Array;
-}
-
-declare class BabelNodeAssignmentExpression extends BabelNode {
- type: "AssignmentExpression";
- operator: string;
- left: BabelNodeLVal;
- right: BabelNodeExpression;
-}
-
-declare class BabelNodeBinaryExpression extends BabelNode {
- type: "BinaryExpression";
- operator: "+" | "-" | "/" | "%" | "*" | "**" | "&" | "|" | ">>" | ">>>" | "<<" | "^" | "==" | "===" | "!=" | "!==" | "in" | "instanceof" | ">" | "<" | ">=" | "<=";
- left: BabelNodeExpression;
- right: BabelNodeExpression;
-}
-
-declare class BabelNodeInterpreterDirective extends BabelNode {
- type: "InterpreterDirective";
- value: string;
-}
-
-declare class BabelNodeDirective extends BabelNode {
- type: "Directive";
- value: BabelNodeDirectiveLiteral;
-}
-
-declare class BabelNodeDirectiveLiteral extends BabelNode {
- type: "DirectiveLiteral";
- value: string;
-}
-
-declare class BabelNodeBlockStatement extends BabelNode {
- type: "BlockStatement";
- body: Array;
- directives?: Array;
-}
-
-declare class BabelNodeBreakStatement extends BabelNode {
- type: "BreakStatement";
- label?: BabelNodeIdentifier;
-}
-
-declare class BabelNodeCallExpression extends BabelNode {
- type: "CallExpression";
- callee: BabelNodeExpression | BabelNodeV8IntrinsicIdentifier;
- arguments: Array;
- optional?: true | false;
- typeArguments?: BabelNodeTypeParameterInstantiation;
- typeParameters?: BabelNodeTSTypeParameterInstantiation;
-}
-
-declare class BabelNodeCatchClause extends BabelNode {
- type: "CatchClause";
- param?: BabelNodeIdentifier;
- body: BabelNodeBlockStatement;
-}
-
-declare class BabelNodeConditionalExpression extends BabelNode {
- type: "ConditionalExpression";
- test: BabelNodeExpression;
- consequent: BabelNodeExpression;
- alternate: BabelNodeExpression;
-}
-
-declare class BabelNodeContinueStatement extends BabelNode {
- type: "ContinueStatement";
- label?: BabelNodeIdentifier;
-}
-
-declare class BabelNodeDebuggerStatement extends BabelNode {
- type: "DebuggerStatement";
-}
-
-declare class BabelNodeDoWhileStatement extends BabelNode {
- type: "DoWhileStatement";
- test: BabelNodeExpression;
- body: BabelNodeStatement;
-}
-
-declare class BabelNodeEmptyStatement extends BabelNode {
- type: "EmptyStatement";
-}
-
-declare class BabelNodeExpressionStatement extends BabelNode {
- type: "ExpressionStatement";
- expression: BabelNodeExpression;
-}
-
-declare class BabelNodeFile extends BabelNode {
- type: "File";
- program: BabelNodeProgram;
- comments: any;
- tokens: any;
-}
-
-declare class BabelNodeForInStatement extends BabelNode {
- type: "ForInStatement";
- left: BabelNodeVariableDeclaration | BabelNodeLVal;
- right: BabelNodeExpression;
- body: BabelNodeStatement;
-}
-
-declare class BabelNodeForStatement extends BabelNode {
- type: "ForStatement";
- init?: BabelNodeVariableDeclaration | BabelNodeExpression;
- test?: BabelNodeExpression;
- update?: BabelNodeExpression;
- body: BabelNodeStatement;
-}
-
-declare class BabelNodeFunctionDeclaration extends BabelNode {
- type: "FunctionDeclaration";
- id?: BabelNodeIdentifier;
- params: Array;
- body: BabelNodeBlockStatement;
- generator?: boolean;
- async?: boolean;
- declare?: boolean;
- returnType?: BabelNodeTypeAnnotation | BabelNodeTSTypeAnnotation | BabelNodeNoop;
- typeParameters?: BabelNodeTypeParameterDeclaration | BabelNodeTSTypeParameterDeclaration | BabelNodeNoop;
-}
-
-declare class BabelNodeFunctionExpression extends BabelNode {
- type: "FunctionExpression";
- id?: BabelNodeIdentifier;
- params: Array;
- body: BabelNodeBlockStatement;
- generator?: boolean;
- async?: boolean;
- returnType?: BabelNodeTypeAnnotation | BabelNodeTSTypeAnnotation | BabelNodeNoop;
- typeParameters?: BabelNodeTypeParameterDeclaration | BabelNodeTSTypeParameterDeclaration | BabelNodeNoop;
-}
-
-declare class BabelNodeIdentifier extends BabelNode {
- type: "Identifier";
- name: string;
- decorators?: Array;
- optional?: boolean;
- typeAnnotation?: BabelNodeTypeAnnotation | BabelNodeTSTypeAnnotation | BabelNodeNoop;
-}
-
-declare class BabelNodeIfStatement extends BabelNode {
- type: "IfStatement";
- test: BabelNodeExpression;
- consequent: BabelNodeStatement;
- alternate?: BabelNodeStatement;
-}
-
-declare class BabelNodeLabeledStatement extends BabelNode {
- type: "LabeledStatement";
- label: BabelNodeIdentifier;
- body: BabelNodeStatement;
-}
-
-declare class BabelNodeStringLiteral extends BabelNode {
- type: "StringLiteral";
- value: string;
-}
-
-declare class BabelNodeNumericLiteral extends BabelNode {
- type: "NumericLiteral";
- value: number;
-}
-
-declare class BabelNodeNullLiteral extends BabelNode {
- type: "NullLiteral";
-}
-
-declare class BabelNodeBooleanLiteral extends BabelNode {
- type: "BooleanLiteral";
- value: boolean;
-}
-
-declare class BabelNodeRegExpLiteral extends BabelNode {
- type: "RegExpLiteral";
- pattern: string;
- flags?: string;
-}
-
-declare class BabelNodeLogicalExpression extends BabelNode {
- type: "LogicalExpression";
- operator: "||" | "&&" | "??";
- left: BabelNodeExpression;
- right: BabelNodeExpression;
-}
-
-declare class BabelNodeMemberExpression extends BabelNode {
- type: "MemberExpression";
- object: BabelNodeExpression;
- property: any;
- computed?: boolean;
- optional?: true | false;
-}
-
-declare class BabelNodeNewExpression extends BabelNode {
- type: "NewExpression";
- callee: BabelNodeExpression | BabelNodeV8IntrinsicIdentifier;
- arguments: Array;
- optional?: true | false;
- typeArguments?: BabelNodeTypeParameterInstantiation;
- typeParameters?: BabelNodeTSTypeParameterInstantiation;
-}
-
-declare class BabelNodeProgram extends BabelNode {
- type: "Program";
- body: Array;
- directives?: Array;
- sourceType?: "script" | "module";
- interpreter?: BabelNodeInterpreterDirective;
- sourceFile?: string;
-}
-
-declare class BabelNodeObjectExpression extends BabelNode {
- type: "ObjectExpression";
- properties: Array;
-}
-
-declare class BabelNodeObjectMethod extends BabelNode {
- type: "ObjectMethod";
- kind?: "method" | "get" | "set";
- key: any;
- params: Array;
- body: BabelNodeBlockStatement;
- computed?: boolean;
- async?: boolean;
- decorators?: Array;
- generator?: boolean;
- returnType?: BabelNodeTypeAnnotation | BabelNodeTSTypeAnnotation | BabelNodeNoop;
- typeParameters?: BabelNodeTypeParameterDeclaration | BabelNodeTSTypeParameterDeclaration | BabelNodeNoop;
-}
-
-declare class BabelNodeObjectProperty extends BabelNode {
- type: "ObjectProperty";
- key: any;
- value: BabelNodeExpression | BabelNodePatternLike;
- computed?: boolean;
- shorthand?: boolean;
- decorators?: Array;
-}
-
-declare class BabelNodeRestElement extends BabelNode {
- type: "RestElement";
- argument: BabelNodeLVal;
- decorators?: Array;
- typeAnnotation?: BabelNodeTypeAnnotation | BabelNodeTSTypeAnnotation | BabelNodeNoop;
-}
-
-declare class BabelNodeReturnStatement extends BabelNode {
- type: "ReturnStatement";
- argument?: BabelNodeExpression;
-}
-
-declare class BabelNodeSequenceExpression extends BabelNode {
- type: "SequenceExpression";
- expressions: Array;
-}
-
-declare class BabelNodeParenthesizedExpression extends BabelNode {
- type: "ParenthesizedExpression";
- expression: BabelNodeExpression;
-}
-
-declare class BabelNodeSwitchCase extends BabelNode {
- type: "SwitchCase";
- test?: BabelNodeExpression;
- consequent: Array;
-}
-
-declare class BabelNodeSwitchStatement extends BabelNode {
- type: "SwitchStatement";
- discriminant: BabelNodeExpression;
- cases: Array;
-}
-
-declare class BabelNodeThisExpression extends BabelNode {
- type: "ThisExpression";
-}
-
-declare class BabelNodeThrowStatement extends BabelNode {
- type: "ThrowStatement";
- argument: BabelNodeExpression;
-}
-
-declare class BabelNodeTryStatement extends BabelNode {
- type: "TryStatement";
- block: BabelNodeBlockStatement;
- handler?: BabelNodeCatchClause;
- finalizer?: BabelNodeBlockStatement;
-}
-
-declare class BabelNodeUnaryExpression extends BabelNode {
- type: "UnaryExpression";
- operator: "void" | "throw" | "delete" | "!" | "+" | "-" | "~" | "typeof";
- argument: BabelNodeExpression;
- prefix?: boolean;
-}
-
-declare class BabelNodeUpdateExpression extends BabelNode {
- type: "UpdateExpression";
- operator: "++" | "--";
- argument: BabelNodeExpression;
- prefix?: boolean;
-}
-
-declare class BabelNodeVariableDeclaration extends BabelNode {
- type: "VariableDeclaration";
- kind: "var" | "let" | "const";
- declarations: Array;
- declare?: boolean;
-}
-
-declare class BabelNodeVariableDeclarator extends BabelNode {
- type: "VariableDeclarator";
- id: BabelNodeLVal;
- init?: BabelNodeExpression;
- definite?: boolean;
-}
-
-declare class BabelNodeWhileStatement extends BabelNode {
- type: "WhileStatement";
- test: BabelNodeExpression;
- body: BabelNodeBlockStatement | BabelNodeStatement;
-}
-
-declare class BabelNodeWithStatement extends BabelNode {
- type: "WithStatement";
- object: BabelNodeExpression;
- body: BabelNodeBlockStatement | BabelNodeStatement;
-}
-
-declare class BabelNodeAssignmentPattern extends BabelNode {
- type: "AssignmentPattern";
- left: BabelNodeIdentifier | BabelNodeObjectPattern | BabelNodeArrayPattern | BabelNodeMemberExpression;
- right: BabelNodeExpression;
- decorators?: Array;
- typeAnnotation?: BabelNodeTypeAnnotation | BabelNodeTSTypeAnnotation | BabelNodeNoop;
-}
-
-declare class BabelNodeArrayPattern extends BabelNode {
- type: "ArrayPattern";
- elements: Array;
- decorators?: Array;
- typeAnnotation?: BabelNodeTypeAnnotation | BabelNodeTSTypeAnnotation | BabelNodeNoop;
-}
-
-declare class BabelNodeArrowFunctionExpression extends BabelNode {
- type: "ArrowFunctionExpression";
- params: Array;
- body: BabelNodeBlockStatement | BabelNodeExpression;
- async?: boolean;
- expression?: boolean;
- generator?: boolean;
- returnType?: BabelNodeTypeAnnotation | BabelNodeTSTypeAnnotation | BabelNodeNoop;
- typeParameters?: BabelNodeTypeParameterDeclaration | BabelNodeTSTypeParameterDeclaration | BabelNodeNoop;
-}
-
-declare class BabelNodeClassBody extends BabelNode {
- type: "ClassBody";
- body: Array;
-}
-
-declare class BabelNodeClassDeclaration extends BabelNode {
- type: "ClassDeclaration";
- id?: BabelNodeIdentifier;
- superClass?: BabelNodeExpression;
- body: BabelNodeClassBody;
- decorators?: Array;
- abstract?: boolean;
- declare?: boolean;
- mixins?: any;
- superTypeParameters?: BabelNodeTypeParameterInstantiation | BabelNodeTSTypeParameterInstantiation;
- typeParameters?: BabelNodeTypeParameterDeclaration | BabelNodeTSTypeParameterDeclaration | BabelNodeNoop;
-}
-
-declare class BabelNodeClassExpression extends BabelNode {
- type: "ClassExpression";
- id?: BabelNodeIdentifier;
- superClass?: BabelNodeExpression;
- body: BabelNodeClassBody;
- decorators?: Array;
- mixins?: any;
- superTypeParameters?: BabelNodeTypeParameterInstantiation | BabelNodeTSTypeParameterInstantiation;
- typeParameters?: BabelNodeTypeParameterDeclaration | BabelNodeTSTypeParameterDeclaration | BabelNodeNoop;
-}
-
-declare class BabelNodeExportAllDeclaration extends BabelNode {
- type: "ExportAllDeclaration";
- source: BabelNodeStringLiteral;
-}
-
-declare class BabelNodeExportDefaultDeclaration extends BabelNode {
- type: "ExportDefaultDeclaration";
- declaration: BabelNodeFunctionDeclaration | BabelNodeTSDeclareFunction | BabelNodeClassDeclaration | BabelNodeExpression;
-}
-
-declare class BabelNodeExportNamedDeclaration extends BabelNode {
- type: "ExportNamedDeclaration";
- declaration?: BabelNodeDeclaration;
- specifiers: Array;
- source?: BabelNodeStringLiteral;
- exportKind?: "type" | "value";
-}
-
-declare class BabelNodeExportSpecifier extends BabelNode {
- type: "ExportSpecifier";
- local: BabelNodeIdentifier;
- exported: BabelNodeIdentifier;
-}
-
-declare class BabelNodeForOfStatement extends BabelNode {
- type: "ForOfStatement";
- left: BabelNodeVariableDeclaration | BabelNodeLVal;
- right: BabelNodeExpression;
- body: BabelNodeStatement;
-}
-
-declare class BabelNodeImportDeclaration extends BabelNode {
- type: "ImportDeclaration";
- specifiers: Array;
- source: BabelNodeStringLiteral;
- importKind?: "type" | "typeof" | "value";
-}
-
-declare class BabelNodeImportDefaultSpecifier extends BabelNode {
- type: "ImportDefaultSpecifier";
- local: BabelNodeIdentifier;
-}
-
-declare class BabelNodeImportNamespaceSpecifier extends BabelNode {
- type: "ImportNamespaceSpecifier";
- local: BabelNodeIdentifier;
-}
-
-declare class BabelNodeImportSpecifier extends BabelNode {
- type: "ImportSpecifier";
- local: BabelNodeIdentifier;
- imported: BabelNodeIdentifier;
- importKind?: "type" | "typeof";
-}
-
-declare class BabelNodeMetaProperty extends BabelNode {
- type: "MetaProperty";
- meta: BabelNodeIdentifier;
- property: BabelNodeIdentifier;
-}
-
-declare class BabelNodeClassMethod extends BabelNode {
- type: "ClassMethod";
- kind?: "get" | "set" | "method" | "constructor";
- key: BabelNodeIdentifier | BabelNodeStringLiteral | BabelNodeNumericLiteral | BabelNodeExpression;
- params: Array;
- body: BabelNodeBlockStatement;
- computed?: boolean;
- abstract?: boolean;
- access?: "public" | "private" | "protected";
- accessibility?: "public" | "private" | "protected";
- async?: boolean;
- decorators?: Array;
- generator?: boolean;
- optional?: boolean;
- returnType?: BabelNodeTypeAnnotation | BabelNodeTSTypeAnnotation | BabelNodeNoop;
- typeParameters?: BabelNodeTypeParameterDeclaration | BabelNodeTSTypeParameterDeclaration | BabelNodeNoop;
-}
-
-declare class BabelNodeObjectPattern extends BabelNode {
- type: "ObjectPattern";
- properties: Array;
- decorators?: Array;
- typeAnnotation?: BabelNodeTypeAnnotation | BabelNodeTSTypeAnnotation | BabelNodeNoop;
-}
-
-declare class BabelNodeSpreadElement extends BabelNode {
- type: "SpreadElement";
- argument: BabelNodeExpression;
-}
-
-declare class BabelNodeSuper extends BabelNode {
- type: "Super";
-}
-
-declare class BabelNodeTaggedTemplateExpression extends BabelNode {
- type: "TaggedTemplateExpression";
- tag: BabelNodeExpression;
- quasi: BabelNodeTemplateLiteral;
- typeParameters?: BabelNodeTypeParameterInstantiation | BabelNodeTSTypeParameterInstantiation;
-}
-
-declare class BabelNodeTemplateElement extends BabelNode {
- type: "TemplateElement";
- value: { raw: string, cooked?: string };
- tail?: boolean;
-}
-
-declare class BabelNodeTemplateLiteral extends BabelNode {
- type: "TemplateLiteral";
- quasis: Array;
- expressions: Array;
-}
-
-declare class BabelNodeYieldExpression extends BabelNode {
- type: "YieldExpression";
- argument?: BabelNodeExpression;
- delegate?: boolean;
-}
-
-declare class BabelNodeAnyTypeAnnotation extends BabelNode {
- type: "AnyTypeAnnotation";
-}
-
-declare class BabelNodeArrayTypeAnnotation extends BabelNode {
- type: "ArrayTypeAnnotation";
- elementType: BabelNodeFlowType;
-}
-
-declare class BabelNodeBooleanTypeAnnotation extends BabelNode {
- type: "BooleanTypeAnnotation";
-}
-
-declare class BabelNodeBooleanLiteralTypeAnnotation extends BabelNode {
- type: "BooleanLiteralTypeAnnotation";
- value: boolean;
-}
-
-declare class BabelNodeNullLiteralTypeAnnotation extends BabelNode {
- type: "NullLiteralTypeAnnotation";
-}
-
-declare class BabelNodeClassImplements extends BabelNode {
- type: "ClassImplements";
- id: BabelNodeIdentifier;
- typeParameters?: BabelNodeTypeParameterInstantiation;
-}
-
-declare class BabelNodeDeclareClass extends BabelNode {
- type: "DeclareClass";
- id: BabelNodeIdentifier;
- typeParameters?: BabelNodeTypeParameterDeclaration;
- body: BabelNodeObjectTypeAnnotation;
- mixins?: Array;
-}
-
-declare class BabelNodeDeclareFunction extends BabelNode {
- type: "DeclareFunction";
- id: BabelNodeIdentifier;
- predicate?: BabelNodeDeclaredPredicate;
-}
-
-declare class BabelNodeDeclareInterface extends BabelNode {
- type: "DeclareInterface";
- id: BabelNodeIdentifier;
- typeParameters?: BabelNodeTypeParameterDeclaration;
- body: BabelNodeObjectTypeAnnotation;
- mixins?: Array;
-}
-
-declare class BabelNodeDeclareModule extends BabelNode {
- type: "DeclareModule";
- id: BabelNodeIdentifier | BabelNodeStringLiteral;
- body: BabelNodeBlockStatement;
- kind?: "CommonJS" | "ES";
-}
-
-declare class BabelNodeDeclareModuleExports extends BabelNode {
- type: "DeclareModuleExports";
- typeAnnotation: BabelNodeTypeAnnotation;
-}
-
-declare class BabelNodeDeclareTypeAlias extends BabelNode {
- type: "DeclareTypeAlias";
- id: BabelNodeIdentifier;
- typeParameters?: BabelNodeTypeParameterDeclaration;
- right: BabelNodeFlowType;
-}
-
-declare class BabelNodeDeclareOpaqueType extends BabelNode {
- type: "DeclareOpaqueType";
- id: BabelNodeIdentifier;
- typeParameters?: BabelNodeTypeParameterDeclaration;
- supertype?: BabelNodeFlowType;
-}
-
-declare class BabelNodeDeclareVariable extends BabelNode {
- type: "DeclareVariable";
- id: BabelNodeIdentifier;
-}
-
-declare class BabelNodeDeclareExportDeclaration extends BabelNode {
- type: "DeclareExportDeclaration";
- declaration?: BabelNodeFlow;
- specifiers?: Array;
- source?: BabelNodeStringLiteral;
-}
-
-declare class BabelNodeDeclareExportAllDeclaration extends BabelNode {
- type: "DeclareExportAllDeclaration";
- source: BabelNodeStringLiteral;
- exportKind?: "type" | "value";
-}
-
-declare class BabelNodeDeclaredPredicate extends BabelNode {
- type: "DeclaredPredicate";
- value: BabelNodeFlow;
-}
-
-declare class BabelNodeExistsTypeAnnotation extends BabelNode {
- type: "ExistsTypeAnnotation";
-}
-
-declare class BabelNodeFunctionTypeAnnotation extends BabelNode {
- type: "FunctionTypeAnnotation";
- typeParameters?: BabelNodeTypeParameterDeclaration;
- params: Array;
- rest?: BabelNodeFunctionTypeParam;
- returnType: BabelNodeFlowType;
-}
-
-declare class BabelNodeFunctionTypeParam extends BabelNode {
- type: "FunctionTypeParam";
- name?: BabelNodeIdentifier;
- typeAnnotation: BabelNodeFlowType;
- optional?: boolean;
-}
-
-declare class BabelNodeGenericTypeAnnotation extends BabelNode {
- type: "GenericTypeAnnotation";
- id: BabelNodeIdentifier | BabelNodeQualifiedTypeIdentifier;
- typeParameters?: BabelNodeTypeParameterInstantiation;
-}
-
-declare class BabelNodeInferredPredicate extends BabelNode {
- type: "InferredPredicate";
-}
-
-declare class BabelNodeInterfaceExtends extends BabelNode {
- type: "InterfaceExtends";
- id: BabelNodeIdentifier | BabelNodeQualifiedTypeIdentifier;
- typeParameters?: BabelNodeTypeParameterInstantiation;
-}
-
-declare class BabelNodeInterfaceDeclaration extends BabelNode {
- type: "InterfaceDeclaration";
- id: BabelNodeIdentifier;
- typeParameters?: BabelNodeTypeParameterDeclaration;
- body: BabelNodeObjectTypeAnnotation;
- mixins?: Array;
-}
-
-declare class BabelNodeInterfaceTypeAnnotation extends BabelNode {
- type: "InterfaceTypeAnnotation";
- body: BabelNodeObjectTypeAnnotation;
-}
-
-declare class BabelNodeIntersectionTypeAnnotation extends BabelNode {
- type: "IntersectionTypeAnnotation";
- types: Array;
-}
-
-declare class BabelNodeMixedTypeAnnotation extends BabelNode {
- type: "MixedTypeAnnotation";
-}
-
-declare class BabelNodeEmptyTypeAnnotation extends BabelNode {
- type: "EmptyTypeAnnotation";
-}
-
-declare class BabelNodeNullableTypeAnnotation extends BabelNode {
- type: "NullableTypeAnnotation";
- typeAnnotation: BabelNodeFlowType;
-}
-
-declare class BabelNodeNumberLiteralTypeAnnotation extends BabelNode {
- type: "NumberLiteralTypeAnnotation";
- value: number;
-}
-
-declare class BabelNodeNumberTypeAnnotation extends BabelNode {
- type: "NumberTypeAnnotation";
-}
-
-declare class BabelNodeObjectTypeAnnotation extends BabelNode {
- type: "ObjectTypeAnnotation";
- properties: Array