Showing preview only (1,097K chars total). Download the full file or copy to clipboard to get everything.
Repository: Bogdan-Lyashenko/js-code-to-svg-flowchart
Branch: master
Commit: d320335ecc67
Files: 118
Total size: 1.0 MB
Directory structure:
gitextract_yc8pzj4j/
├── .editorconfig
├── .github/
│ └── workflows/
│ └── codesee-arch-diagram.yml
├── .gitignore
├── .npmignore
├── .nvmrc
├── .prettierrc
├── LICENSE
├── README.md
├── _config.yml
├── babel.config.js
├── cli/
│ └── index.cli.js
├── dist/
│ ├── js2flowchart.js
│ └── js2flowchart.js.LICENSE.txt
├── docs/
│ ├── _config.yml
│ ├── examples/
│ │ ├── blur-shape-branch/
│ │ │ ├── code-sample.js
│ │ │ ├── index.html
│ │ │ └── index.js
│ │ ├── custom-modifier/
│ │ │ ├── code-sample.js
│ │ │ ├── index.html
│ │ │ └── index.js
│ │ ├── debug-rendering/
│ │ │ ├── code-sample.js
│ │ │ ├── index.html
│ │ │ └── index.js
│ │ ├── default/
│ │ │ ├── code-sample.js
│ │ │ ├── index.html
│ │ │ └── index.js
│ │ ├── defined-abstraction-level/
│ │ │ ├── code-sample.js
│ │ │ ├── index.html
│ │ │ └── index.js
│ │ ├── defined-color-theme/
│ │ │ ├── code-sample.js
│ │ │ ├── index.html
│ │ │ └── index.js
│ │ ├── defined-modifier/
│ │ │ ├── code-sample.js
│ │ │ ├── index.html
│ │ │ └── index.js
│ │ ├── dev/
│ │ │ ├── code-sample.js
│ │ │ ├── index.html
│ │ │ └── index.js
│ │ ├── node-destruction/
│ │ │ ├── code-sample.js
│ │ │ ├── index.html
│ │ │ └── index.js
│ │ └── one-module-presentation/
│ │ ├── code-sample.js
│ │ ├── index.html
│ │ └── index.js
│ └── live-editor/
│ ├── index.html
│ ├── index.js
│ └── worker.js
├── index.js
├── package.json
├── samples/
│ ├── blurShapeBranch.js
│ ├── customModifier.js
│ ├── debugRendering.js
│ ├── default.js
│ ├── definedAbstractionLevel.js
│ ├── definedColorTheme.js
│ ├── definedModifier.js
│ ├── dev.js
│ ├── nodeDestruction.js
│ └── oneModulePresentation.js
├── src/
│ ├── builder/
│ │ ├── FlowTreeBuilder.js
│ │ ├── FlowTreeModifier.js
│ │ ├── abstraction-levels/
│ │ │ ├── functionDependencies.js
│ │ │ └── functions.js
│ │ ├── abstractionLevelsConfigurator.js
│ │ ├── astBuilder.js
│ │ ├── astParserConfig.js
│ │ ├── converters/
│ │ │ ├── Harmony.js
│ │ │ └── core.js
│ │ ├── entryDefinitionsMap.js
│ │ └── modifiers/
│ │ └── modifiersFactory.js
│ ├── presentation-generator/
│ │ └── PresentationGenerator.js
│ ├── render/
│ │ └── svg/
│ │ ├── SVGBase.js
│ │ ├── SVGRender.js
│ │ ├── appearance/
│ │ │ ├── StyleThemeFactory.js
│ │ │ ├── TextContentConfigurator.js
│ │ │ └── themes/
│ │ │ ├── BlackAndWhite.js
│ │ │ ├── Blurred.js
│ │ │ ├── DefaultBaseTheme.js
│ │ │ └── Light.js
│ │ ├── connections/
│ │ │ └── ConnectionArrow.js
│ │ ├── shapes/
│ │ │ ├── BaseShape.js
│ │ │ ├── BreakStatement.js
│ │ │ ├── CallExpression.js
│ │ │ ├── CatchClause.js
│ │ │ ├── ClassDeclaration.js
│ │ │ ├── ConditionRhombus.js
│ │ │ ├── ContinueStatement.js
│ │ │ ├── DebuggerStatement.js
│ │ │ ├── DestructedNode.js
│ │ │ ├── ExportDeclaration.js
│ │ │ ├── ImportDeclaration.js
│ │ │ ├── ImportSpecifier.js
│ │ │ ├── LoopRhombus.js
│ │ │ ├── ObjectProperty.js
│ │ │ ├── Rectangle.js
│ │ │ ├── ReturnStatement.js
│ │ │ ├── Rhombus.js
│ │ │ ├── RootCircle.js
│ │ │ ├── SwitchCase.js
│ │ │ ├── SwitchStatement.js
│ │ │ ├── ThrowStatement.js
│ │ │ ├── TryStatement.js
│ │ │ └── VerticalEdgedRectangle.js
│ │ ├── shapesDefinitionsMap.js
│ │ ├── shapesFactory.js
│ │ └── svgObjectsBuilder.js
│ └── shared/
│ ├── constants.js
│ └── utils/
│ ├── composition.js
│ ├── flatten.js
│ ├── geometry.js
│ ├── iteratorBuilder.js
│ ├── logger.js
│ ├── string.js
│ ├── svgPrimitives.js
│ ├── traversal.js
│ ├── traversalWithTreeLevelsPointer.js
│ └── treeLevelsPointer.js
└── webpack.config.js
================================================
FILE CONTENTS
================================================
================================================
FILE: .editorconfig
================================================
root = true
[*]
indent_style = space
indent_size = 4
end_of_line = LF
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
trim_trailing_whitespace = false
================================================
FILE: .github/workflows/codesee-arch-diagram.yml
================================================
on:
push:
branches:
- master
pull_request_target:
types: [opened, synchronize, reopened]
name: CodeSee Map
jobs:
test_map_action:
runs-on: ubuntu-latest
continue-on-error: true
name: Run CodeSee Map Analysis
steps:
- name: checkout
id: checkout
uses: actions/checkout@v2
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 0
# codesee-detect-languages has an output with id languages.
- name: Detect Languages
id: detect-languages
uses: Codesee-io/codesee-detect-languages-action@latest
- name: Configure JDK 16
uses: actions/setup-java@v2
if: ${{ fromJSON(steps.detect-languages.outputs.languages).java }}
with:
java-version: '16'
distribution: 'zulu'
# CodeSee Maps Go support uses a static binary so there's no setup step required.
- name: Configure Node.js 14
uses: actions/setup-node@v2
if: ${{ fromJSON(steps.detect-languages.outputs.languages).javascript }}
with:
node-version: '14'
- name: Configure Python 3.x
uses: actions/setup-python@v2
if: ${{ fromJSON(steps.detect-languages.outputs.languages).python }}
with:
python-version: '3.x'
architecture: 'x64'
- name: Configure Ruby '3.x'
uses: ruby/setup-ruby@v1
if: ${{ fromJSON(steps.detect-languages.outputs.languages).ruby }}
with:
ruby-version: '3.0'
# CodeSee Maps Rust support uses a static binary so there's no setup step required.
- name: Generate Map
id: generate-map
uses: Codesee-io/codesee-map-action@latest
with:
step: map
github_ref: ${{ github.ref }}
languages: ${{ steps.detect-languages.outputs.languages }}
- name: Upload Map
id: upload-map
uses: Codesee-io/codesee-map-action@latest
with:
step: mapUpload
api_token: ${{ secrets.CODESEE_ARCH_DIAG_API_TOKEN }}
github_ref: ${{ github.ref }}
- name: Insights
id: insights
uses: Codesee-io/codesee-map-action@latest
with:
step: insights
api_token: ${{ secrets.CODESEE_ARCH_DIAG_API_TOKEN }}
github_ref: ${{ github.ref }}
================================================
FILE: .gitignore
================================================
# Logs
logs
*.log
build/
# Runtime data
pids
*.pid
*.seed
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# node-waf configuration
.lock-wscript
# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release
# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
node_modules
# Remove some common IDE working directories
.idea
.vscode
.DS_STORE
================================================
FILE: .npmignore
================================================
docs
================================================
FILE: .nvmrc
================================================
v6.10
================================================
FILE: .prettierrc
================================================
{
"printWidth": 100,
"parser": "babylon",
"singleQuote": true,
"tabWidth": 4
}
================================================
FILE: LICENSE
================================================
MIT License
Copyright (c) 2017 Bohdan Liashenko
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.
================================================
FILE: README.md
================================================
> Why? While I've been working on [Under-the-hood-ReactJS](https://github.com/Bogdan-Lyashenko/Under-the-hood-ReactJS) I spent enormous amount of time on creating schemes. Each change in code or flowchart affects all entire scheme instantly, forcing you to move and align 'broken pieces'. Just repeated manual work...
### For multiple files support (and other cool features to simplify codebase learning and documentation) checkout [Codecrumbs project](https://codecrumbs.io/) I am building right now.
Imagine a library which takes any JS code and generate SVG flowchart from it, works on client and server. Allows you easily adjust styles scheme for your context or demonstrate your code logic from different abstractions levels. Highlighting, destructing whole blocks, custom modifiers for your needs etc.
# js2flowchart.js [](https://twitter.com/intent/tweet?text=Generate%20beautiful%20flowcharts%20from%20JavaScript&url=https://github.com/Bogdan-Lyashenko/js-code-to-svg-flowchart&via=bliashenko&hashtags=javascript,flowchart,svg)
[](https://opensource.org/licenses/mit-license.php) [](https://badge.fury.io/js/js2flowchart)
js2flowchart is a tool for generating beautiful SVG flowcharts™ from JavaScript code.
To get started install package from NPM
> yarn add js2flowchart
or try it right away at [codepen sample](https://codepen.io/Bogdan-Lyashenko/pen/XzmzNv), or play with the demo below.
## [Demo](https://bogdan-lyashenko.github.io/js-code-to-svg-flowchart/docs/live-editor/index.html)
Check out live [**code editor**](https://bogdan-lyashenko.github.io/js-code-to-svg-flowchart/docs/live-editor/index.html), paste your code and **download SVG file** of flowchart!
[<img src="/docs/live-editor/demo.gif" width="700">](https://bogdan-lyashenko.github.io/js-code-to-svg-flowchart/docs/live-editor/index.html)
### What does js2flowchart do?
js2flowchart takes your JS code and returns SVG flowchart, works on client/server, support ES6.
Main features:
- **defined abstractions levels** to render only import/exports, classes/function names, function dependencies to learn/explain the code step by step.
- **custom abstractions levels support** create your own one
- **presentation generator** to generate list of SVGs in order to different abstractions levels
- **defined flow tree modifiers** to map well-known APIs like i.e. [].map, [].forEach, [].filter to Loop structure on scheme etc.
- **destruction modifier** to replace block of code with one shape on scheme
- **custom flow tree modifiers support** create your own one
- **flow tree ignore filter** to omit some code nodes completely i.e. log lines
- **focus node or entire code logic branch** to highlight important section on scheme
- **blur node or entire code logic branch** to hide less-important stuff
- **defined styles themes supports** choose one you like
- **custom themes support** create your own one which fits your context colors better
- **custom colors and styles support** provides handy API to change specific styles without boilerplate
Use cases:
- **explain/document** your code by flowcharts
- **learn** other's code by visual understanding
- **create** flowcharts for any process simply described by valid JS syntax
### CLI
You can simply generate SVG files from your local JS files using CLI tool.
Install js2flowchart globally by running:
> yarn global add js2flowchart
Or in a project by running:
> yarn add js2flowchart --dev
Open terminal and navigate to needed directory with JS file you want to visualize (e.g. './my-project/main.js').
Run the command (if you installed it globally)
```cli
js2flowchart main.js
```
Or add this to your _package.json_ file:
```json
{
"scripts": {
"js2flowchart": "js2flowchart"
}
}
```
And run (with either npm or yarn):
```cli
yarn run js2flowchart main.js
```
After script is executed observe log ```SVG file was created: ./js2flowchart/main.js.svg```. SVG file will be placed in new directory '/js2flowchart' near your JS file.
### API and examples
You can find sources for examples explained below in [docs directory](/docs).
**In examples only** js2flowchart library included explicitly, by ```<script>``` tag and accessed by global variable from ```window``` **to make it simpler to run for you without boilerplate**. But feel free to use it through ES6 modules as well, when you have Babel&Webpack local server configured.
```javascript
/**
* Access APIs when js2flowchart injected into HTML page
*/
const {convertCodeToFlowTree, convertFlowTreeToSvg} = window.js2flowchart;
/**
* or import from node_modules
*/
import {convertCodeToFlowTree, convertFlowTreeToSvg} from 'js2flowchart';//way 1
import * as js2flowchart from 'js2flowchart';//way 2
```
#### Default
Here is a code function for classic case Binary search
```javascript
const code = `function indexSearch(list, element) {
let currentIndex,
currentElement,
minIndex = 0,
maxIndex = list.length - 1;
while (minIndex <= maxIndex) {
currentIndex = Math.floor(minIndex + maxIndex) / 2;
currentElement = list[currentIndex];
if (currentElement === element) {
return currentIndex;
}
if (currentElement < element) {
minIndex = currentIndex + 1;
}
if (currentElement > element) {
maxIndex = currentIndex - 1;
}
}
return -1;
}`;
```
let's convert it to SVG(the simplest way):
```javascript
const svg = js2flowchart.convertCodeToSvg(code);
```
Result:

If you need to modify default behavior you can split ```js2flowchart.convertCodeToSvg``` into two building block:
- flow tree building
- shapes printing
```javascript
const {convertCodeToFlowTree, convertFlowTreeToSvg} = js2flowchart;
const flowTree = convertCodeToFlowTree(code);
const svg = convertFlowTreeToSvg(flowTree);//XML string
```
or when you need full control create main instances manually:
```javascript
const {createFlowTreeBuilder, createSVGRender} = js2flowchart;
const flowTreeBuilder = createFlowTreeBuilder(),
svgRender = createSVGRender();
const flowTree = flowTreeBuilder.build(code),
shapesTree = svgRender.buildShapesTree(flowTree);
const svg = shapesTree.print();//XML string
```
See the example running [here](https://bogdan-lyashenko.github.io/js-code-to-svg-flowchart/docs/examples/default/index.html) or check out complete source code [of it](/docs/examples/default/index.html).
#### Defined abstraction level
What is called 'abstraction level'? Let's say you would like to omit some details, like, e.g. for given module you are interested only in what the module ```exports```, or, what classes it contains.
There is a list of defined levels you can do that with. Accessible by ```ABSTRACTION_LEVELS``` interface.
- ```FUNCTION```
- ```FUNCTION_DEPENDENCIES```
- ```CLASS```
- ```IMPORT```
- ```EXPORT```
Let's take example with module imports&exports. Below is the code of some ```print-util.js```.
```javascript
const code = `
import {format, trim} from 'formattier';
import {log} from 'logger';
const data = [];
export default print = (list) => {
list.forEach(i => {
console.log(i);
});
}
export const formatString = (str) => formatter(str);
export const MAX_STR_LENGTH = 15;
`;
```
we need to instantiate ```flowTreeBuilder``` and assign abstraction level on it.
```javascript
const {
ABSTRACTION_LEVELS, createFlowTreeBuilder, convertFlowTreeToSvg
} = js2flowchart;
const flowTreeBuilder = createFlowTreeBuilder();
//you can pass one level or multiple levels
flowTreeBuilder.setAbstractionLevel([
ABSTRACTION_LEVELS.IMPORT,
ABSTRACTION_LEVELS.EXPORT
]);
const flowTree = flowTreeBuilder.build(code);
const svg = convertFlowTreeToSvg(flowTree);
```
Result:

See the example running [here](https://bogdan-lyashenko.github.io/js-code-to-svg-flowchart/docs/examples/defined-abstraction-level/index.html) or check out complete source code [of it](/docs/examples/defined-abstraction-level/index.html).
**Custom abstraction level (label:advanced)**
What if you want your 'own' level? To the same API endpoint ```flowTreeBuilder.setAbstractionLevel``` you can provide configuration object.
For example, have a look at the code of [function dependencies](/src/builder/abstraction-levels/functionDependencies.js) abstraction level.
Check out the export of it
```javascript
export const getFunctionDependenciesLevel = () => ({
defined: [TOKEN_TYPES.CALL_EXPRESSION],
custom: [
getCustomFunctionDeclaration(),
getCustomAssignmentExpression(),
getCustomVariableDeclarator()
]
});
```
It's a format of data you need to pass:
```javascript
flowTreeBuilder.setAbstractionLevel({
defined: [TOKEN_TYPES.CALL_EXPRESSION],
custom: [
getCustomFunctionDeclaration(),
getCustomAssignmentExpression(),
getCustomVariableDeclarator()
]
})
````
And what is behind of ```getCustomAssignmentExpression``` for example?
There is a token parsing config.
```javascript
{
type: 'TokenType', /*see types in TOKEN_TYPES map*/
getName: (path) => {/*extract name from token*/},
ignore: (path) => {/*return true if want to omit entry*/}
body: true /* should it contain nested blocks? */
}
```
Check out more token parsing configs from [source code (entryDefinitionsMap.js)](/src/builder/entryDefinitionsMap.js)
#### Presentation generator
When you learn other's code it's good to go through it by different abstractions levels.
Take a look what module exports, which function and classes contains etc.
There is a sub-module ```createPresentationGenerator``` to generate list of SVGs in order to different abstractions levels.
Let's take the next code for example:
```javascript
const code = `
import {format} from './util/string';
function formatName(name) {
if (!name) return 'no-name';
return format(name);
}
class Animal {
constructor(breed) {
this.breed = breed;
}
getBreed() {
return this.breed;
}
setName(name) {
if (this.nameExist()) {
return;
}
this.name = name;
}
}
class Man extends Animal {
sayName() {
console.log('name', this.name);
}
}
export default Man;
`;
```
pass it to
```javascript
const { createPresentationGenerator } = js2flowchart;
const presentationGenerator = createPresentationGenerator(code);
const slides = presentationGenerator.buildSlides();//array of SVGs
```
Result (one of slides):

You can switch slides by prev-next buttons.
[<img src="/docs/examples/one-module-presentation/slides.gif" width="500">](https://bogdan-lyashenko.github.io/js-code-to-svg-flowchart/docs/examples/one-module-presentation/index.html)
See the example running [here](https://bogdan-lyashenko.github.io/js-code-to-svg-flowchart/docs/examples/one-module-presentation/index.html) or check out complete source code [of it](/docs/examples/one-module-presentation/index.html).
#### Defined colors theme
You can apply different themes to your ```svgRender``` instance. Simply calling e.g. ```svgRender.applyLightTheme()``` to apply light scheme.
There are next predefined color schemes:
- DEFAULT: ```applyDefaultTheme```
- BLACK_AND_WHITE: ```applyBlackAndWhiteTheme```
- BLURRED: ```applyBlurredTheme```
- LIGHT: ```applyLightTheme```
Let's simple code sample of ```switch``` statement from Mozzila Web Docs.
```javascript
const code = `
function switchSampleFromMDN() {
const foo = 0;
switch (foo) {
case -1:
console.log('negative 1');
break;
case 0:
console.log(0);
case 1:
console.log(1);
return 1;
default:
console.log('default');
}
}
`;
```
and apply scheme to render.
```javascript
const {createSVGRender, convertCodeToFlowTree} = js2flowchart;
const flowTree = convertCodeToFlowTree(code),
svgRender = createSVGRender();
//applying another theme for render
svgRender.applyLightTheme();
const svg = svgRender.buildShapesTree(flowTree).print();
```
Result:

See the example running [here](https://bogdan-lyashenko.github.io/js-code-to-svg-flowchart/docs/examples/defined-color-theme/index.html) or check out complete source code [of it](/docs/examples/defined-color-theme/index.html).
#### Custom colors theme
Well, but what if you would like to have different colors? Sure, below is an example of Light theme colors but created manually.
```javascript
svgRender.applyColorBasedTheme({
strokeColor: '#555',
defaultFillColor: '#fff',
textColor: '#333',
arrowFillColor: '#444',
rectangleFillColor: '#bbdefb',
rectangleDotFillColor: '#ede7f6',
functionFillColor: '#c8e6c9',
rootCircleFillColor: '#fff9c4',
loopFillColor: '#d1c4e9',
conditionFillColor: '#e1bee7',
destructedNodeFillColor: '#ffecb3',
classFillColor: '#b2dfdb',
debuggerFillColor: '#ffcdd2',
exportFillColor: '#b3e5fc',
throwFillColor: '#ffccbc',
tryFillColor: '#FFE082',
objectFillColor: '#d1c4e9',
callFillColor: '#dcedc8',
debugModeFillColor: '#666'
});
```
#### Custom styles
What if you need different styles, not only colors? Here it's ```svgRender.applyTheme({})```. You can apply styles above of current theme, overriding only that behaviour you need.
Let's take an example with Return statement.
```javascript
svgRender.applyTheme({
common: {
maxNameLength: 100
},
ReturnStatement: {
fillColor: 'red',
roundBorder: 10
}
});
```
Please check definition of [```DefaultBaseTheme```](/src/render/svg/appearance/themes/DefaultBaseTheme.js) to see all possible shapes names and properties.
#### Shapes tree editor
There is sub-module for modifying shapes tree called 'ShapesTreeEditor'.
It provides next interfaces:
- ```findShape```
- ```applyShapeStyles```
- ```blur```
- ```focus```
- ```blurShapeBranch```
- ```focusShapeBranch```
- ```print```
Let's learn its usage on an example as well. Below is the code with some 'devMode hooks'.
```javascript
const code = `
const doStuff = (stuff) => {
if (stuff) {
if (devFlag) {
log('perf start');
doRecursion();
log('perf end');
return;
}
doRecursion();
end();
} else {
throw new Error('No stuff!');
}
return null;
};
`;
```
what we want here is 'blur' that dev-branch condition, because it interferes code readability.
```javascript
const {
convertCodeToFlowTree,
createSVGRender,
createShapesTreeEditor
} = js2flowchart;
const flowTree = convertCodeToFlowTree(code),
svgRender = createSVGRender();
shapesTree = svgRender.buildShapesTree(flowTree);
const shapesTreeEditor = createShapesTreeEditor(shapesTree);
shapesTreeEditor.blurShapeBranch(
(shape) => shape.getName() === '(devFlag)'
);
const svg = shapesTreeEditor.print();
```
Result:

See the example running [here](https://bogdan-lyashenko.github.io/js-code-to-svg-flowchart/docs/examples/blur-shape-branch/index.html) or check out complete source code [of it](/docs/examples/blur-shape-branch/index.html).
#### Flow tree modifier
There is sub-module for modifying flow tree called 'FlowTreeModifier' which allows you to apply modifiers defined separately to your existing flow tree.
Let's take simple use-case: you want to change 'names'(titles) on tree-nodes, here it is, just define modifier for that. But, actually, there are some behaviours where we already know we need to modify flow tree.
Let's have a look at ES5 Array iterators, like ```forEach```, ```map``` and so on. We all know they behave like a loop, right? Let's treat them as a 'loop' then.
```javascript
const code = `
function print(list) {
const newList = list.map(i => {
return i + 1;
});
newList.forEach(i => {
console.debug('iteration start');
console.log(i);
console.debug('iteration end');
});
}
`;
```
```javascript
const {
createFlowTreeBuilder,
createFlowTreeModifier,
convertFlowTreeToSvg,
MODIFIER_PRESETS
} = js2flowchart;
const flowTreeBuilder = createFlowTreeBuilder(),
flowTree = flowTreeBuilder.build(code);
const flowTreeModifier = createFlowTreeModifier();
flowTreeModifier.setModifier(MODIFIER_PRESETS.es5ArrayIterators);
flowTreeModifier.applyToFlowTree(flowTree);
const svg = convertFlowTreeToSvg(flowTree);
```
Result:
As you can see, both iterators handled as a loop. And ```forEach``` omit function-callback as well.

See the example running [here](https://bogdan-lyashenko.github.io/js-code-to-svg-flowchart/docs/examples/defined-modifier/index.html) or check out complete source code [of it](/docs/examples/defined-modifier/index.html).
There is one more defined modifier for node destruction. It takes a block you specified and destruct it to on block.
```javascript
flowTreeModifier.destructNodeTree((node) => node.name.indexOf('.forEach') !== -1, 'and print list...');
```
What if you want **custom modifier**?
```javascript
flowTreeModifier.registerNewModifier((node)=> node.name.includes('hello'), {
name: 'world'
});
```
#### Debug rendering
What if you want to select a shape for applying special styles and want some unique id selector? Just pass ```debug``` flag to ```print```;
```javascript
const {
convertCodeToFlowTree,
createSVGRender,
createShapesTreeEditor
} = js2flowchart;
const svgRender = createSVGRender();
const shapesTree = svgRender.buildShapesTree(convertCodeToFlowTree(code));
const shapesTreeEditor = createShapesTreeEditor(shapesTree);
shapesTreeEditor.applyShapeStyles(
shape => shape.getNodePathId() === 'NODE-ID:|THIS.NAME=N|TCCP-', {
fillColor: '#90caf9'
});
const svg = shapesTreeEditor.print({debug: true});
```
Result:

See the example running [here](https://bogdan-lyashenko.github.io/js-code-to-svg-flowchart/docs/examples/debug-rendering/index.html) or check out complete source code [of it](/docs/examples/debug-rendering/index.html).
### Tools
Thanks to @LucasBadico we got Visual Studio extension. Check [it out](https://marketplace.visualstudio.com/items?itemName=lucasbadico.code-flowchart).

### Under the hood
Main stages:
- get AST from code, [Babylon](https://github.com/babel/babel/tree/master/packages/babylon) parser is used (develops by Babel team)
- convert AST to FlowTree, remove and combing nodes ([FlowTreeBuilder](src/builder/FlowTreeBuilder.js))
- apply modifiers ([FlowTreeModifier](src/builder/FlowTreeModifier.js))
- create SVG objects based on FlowTree ([SVGRender](src/render/svg/SVGRender.js))
- apply ShapesTreeEditor
- apply theme ([see themes](src/render/svg/appearance/themes))
- print SVG objects to XML string
### Things planned TODO
- Full CLI support
- JSX support
- Flow support
- TypeScript support
- Multi files support
- Webstorm plugin
- Chrome extension for dev-tools
### Contributing
Feel free to file an issue if it doesn't work for your code sample (please add 'breaking' lines of code if it's possible to identify) or for any other things you think can be improved.
Highly appreciated if you can join and help with any TODOs above. Thanks.
### License
MIT license
### Version
First shoot! Take it easy (check version number above in NPM badge)
================================================
FILE: _config.yml
================================================
theme: jekyll-theme-cayman
================================================
FILE: babel.config.js
================================================
module.exports = function(app) {
app.cache(true);
const presets = [
[
'@babel/preset-env',
{
targets: {
browsers: ['last 2 versions']
},
modules: false
}
]
];
return {
presets
};
};
================================================
FILE: cli/index.cli.js
================================================
#!/usr/bin/env node
/**
* @todo Add features from the Non-CLI side of this module such as:
* 2. Custom abstraction level
* 3. Presentation mode
* 4. Defined colour schemes (default, B&W, blurred, light)
* 5. Custom colour scheme
* 6. Custom style
* 7. Flow tree modifications (iterative methods treated as loops, ...)
* 8. Custom modifier
* 9. Debugging
* @todo Continue 3.
*/
const js2flowchart = require('../dist/js2flowchart.js');
const program = require('commander');
const fs = require('fs'),
path = require('path');
const readJsFile = function(file, onComplete, ...callbackArgs) {
fs.readFile(path.relative(process.cwd(), file), 'utf8', function(err, code) {
if (err) {
return console.error(err);
}
onComplete(file, code, ...callbackArgs);
});
};
/**
* @description Write data to the specified file path.
* @param {string} filePath Path of the destination file
* @param {*} data Data to write to the destination
*/
const writeToFile = function(filePath, data) {
fs.writeFile(filePath, data, function(err) {
if (err) {
return console.error(err);
}
console.log(`SVG file was created: ${filePath}`);
});
};
const createSvgFile = function(file, code) {
const svg = js2flowchart.convertCodeToSvg(code),
filePath = `${file}.svg`;
writeToFile(filePath, svg);
};
/**
* @description Create an SVG file with the provided abstraction level
* @param {string} file Name of the JS script
* @param {string} code JS code of the JS script
* @param {...string} abstractionLevel Abstraction levels (function, function dependencies, class, import, export)
* @return undefined
*/
const createAbstractedSvgFile = function(file, code, abstractionLevel) {
const errMsg =
'Please use (case insensitive, without the quotes): "function", "function_dependencies", "class", "import" or "export"';
if (!abstractionLevel) return console.error(`No abstraction level specified`);
const flowTreeBuilder = js2flowchart.createFlowTreeBuilder();
//Check if the abstraction level(s) are valid and process them
let abstractions = abstractionLevel.map(al => {
try {
return js2flowchart.ABSTRACTION_LEVELS[al.toUpperCase()];
} catch (err) {
throw new Error(`The following abstraction level isn't valid: ${al}\n${errMsg}`);
}
});
flowTreeBuilder.setAbstractionLevel(abstractions);
const flowTree = flowTreeBuilder.build(code);
const svg = js2flowchart.convertFlowTreeToSvg(flowTree),
filePath = `${file}.svg`;
writeToFile(filePath, svg);
};
/**
* @description Convert argument lists to arrays.
* @param {string} val Argument lists
* @return {string[]} Array of arguments
*/
const list = val => val.split(',');
program
.arguments('<file>')
.option(
'-a, --abstraction [list]',
'Set the level of details you want to have (e.g: "function,import")',
list
)
.option('-p, --presentation', 'Separating the different abstraction levels')
.action(function(file) {
if (program.abstraction) readJsFile(file, createAbstractedSvgFile, program.abstraction);
else if (program.presentation) console.log('Feature not implemented yet');
else readJsFile(file, createSvgFile);
})
.parse(process.argv);
================================================
FILE: dist/js2flowchart.js
================================================
/*! For license information please see js2flowchart.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("js2flowchart",[],t):"object"==typeof exports?exports.js2flowchart=t():e.js2flowchart=t()}("undefined"!=typeof window?window:this,(()=>(()=>{var e={2509:function(e,t,n){!function(e,t,n,r){"use strict";let i;e.addSegment=void 0,e.addMapping=void 0,e.maybeAddSegment=void 0,e.maybeAddMapping=void 0,e.setSourceContent=void 0,e.toDecodedMap=void 0,e.toEncodedMap=void 0,e.fromMap=void 0,e.allMappings=void 0;class s{constructor({file:e,sourceRoot:n}={}){this._names=new t.SetArray,this._sources=new t.SetArray,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=n}}function a(e,t,n){for(let n=e.length;n>t;n--)e[n]=e[n-1];e[t]=n}function o(e,n){for(let r=0;r<n.length;r++)t.put(e,n[r])}function l(e,t,n){const{generated:r,source:s,original:a,name:o,content:l}=n;if(!s)return i(e,t,r.line-1,r.column,null,null,null,null,null);const c=s;return i(e,t,r.line-1,r.column,c,a.line-1,a.column,o,l)}e.addSegment=(e,t,n,r,s,a,o,l)=>i(!1,e,t,n,r,s,a,o,l),e.maybeAddSegment=(e,t,n,r,s,a,o,l)=>i(!0,e,t,n,r,s,a,o,l),e.addMapping=(e,t)=>l(!1,e,t),e.maybeAddMapping=(e,t)=>l(!0,e,t),e.setSourceContent=(e,n,r)=>{const{_sources:i,_sourcesContent:s}=e;s[t.put(i,n)]=r},e.toDecodedMap=e=>{const{file:t,sourceRoot:n,_mappings:r,_sources:i,_sourcesContent:s,_names:a}=e;return function(e){const{length:t}=e;let n=t;for(let t=n-1;t>=0&&!(e[t].length>0);n=t,t--);n<t&&(e.length=n)}(r),{version:3,file:t||void 0,names:a.array,sourceRoot:n||void 0,sources:i.array,sourcesContent:s,mappings:r}},e.toEncodedMap=t=>{const r=e.toDecodedMap(t);return Object.assign(Object.assign({},r),{mappings:n.encode(r.mappings)})},e.allMappings=e=>{const t=[],{_mappings:n,_sources:r,_names:i}=e;for(let e=0;e<n.length;e++){const s=n[e];for(let n=0;n<s.length;n++){const a=s[n],o={line:e+1,column:a[0]};let l,c,u;1!==a.length&&(l=r.array[a[1]],c={line:a[2]+1,column:a[3]},5===a.length&&(u=i.array[a[4]])),t.push({generated:o,source:l,original:c,name:u})}}return t},e.fromMap=e=>{const t=new r.TraceMap(e),n=new s({file:t.file,sourceRoot:t.sourceRoot});return o(n._names,t.names),o(n._sources,t.sources),n._sourcesContent=t.sourcesContent||t.sources.map((()=>null)),n._mappings=r.decodedMappings(t),n},i=(e,n,r,i,s,o,l,c,u)=>{const{_mappings:p,_sources:h,_sourcesContent:d,_names:f}=n,y=function(e,t){for(let n=e.length;n<=t;n++)e[n]=[];return e[t]}(p,r),m=function(e,t){let n=e.length;for(let r=n-1;r>=0&&!(t>=e[r][0]);n=r--);return n}(y,i);if(!s){if(e&&function(e,t){return 0===t||1===e[t-1].length}(y,m))return;return a(y,m,[i])}const T=t.put(h,s),g=c?t.put(f,c):-1;if(T===d.length&&(d[T]=null!=u?u:null),!e||!function(e,t,n,r,i,s){if(0===t)return!1;const a=e[t-1];return 1!==a.length&&n===a[1]&&r===a[2]&&i===a[3]&&s===(5===a.length?a[4]:-1)}(y,m,T,o,l,g))return a(y,m,c?[i,T,o,l,g]:[i,T,o,l])},e.GenMapping=s,Object.defineProperty(e,"__esModule",{value:!0})}(t,n(2208),n(2297),n(3446))},8435:function(e){e.exports=function(){"use strict";const e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,n=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var r;function i(e){return e.startsWith("/")}function s(e){return/^[.?#]/.test(e)}function a(e){const n=t.exec(e);return o(n[1],n[2]||"",n[3],n[4]||"",n[5]||"/",n[6]||"",n[7]||"")}function o(e,t,n,i,s,a,o){return{scheme:e,user:t,host:n,port:i,path:s,query:a,hash:o,type:r.Absolute}}function l(t){if(function(e){return e.startsWith("//")}(t)){const e=a("http:"+t);return e.scheme="",e.type=r.SchemeRelative,e}if(i(t)){const e=a("http://foo.com"+t);return e.scheme="",e.host="",e.type=r.AbsolutePath,e}if(function(e){return e.startsWith("file:")}(t))return function(e){const t=n.exec(e),r=t[2];return o("file:","",t[1]||"","",i(r)?r:"/"+r,t[3]||"",t[4]||"")}(t);if(function(t){return e.test(t)}(t))return a(t);const s=a("http://foo.com/"+t);return s.scheme="",s.host="",s.type=t?t.startsWith("?")?r.Query:t.startsWith("#")?r.Hash:r.RelativePath:r.Empty,s}function c(e,t){const n=t<=r.RelativePath,i=e.path.split("/");let s=1,a=0,o=!1;for(let e=1;e<i.length;e++){const t=i[e];t?(o=!1,"."!==t&&(".."!==t?(i[s++]=t,a++):a?(o=!0,a--,s--):n&&(i[s++]=t))):o=!0}let l="";for(let e=1;e<s;e++)l+="/"+i[e];(!l||o&&!l.endsWith("/.."))&&(l+="/"),e.path=l}return function(e){e[e.Empty=1]="Empty",e[e.Hash=2]="Hash",e[e.Query=3]="Query",e[e.RelativePath=4]="RelativePath",e[e.AbsolutePath=5]="AbsolutePath",e[e.SchemeRelative=6]="SchemeRelative",e[e.Absolute=7]="Absolute"}(r||(r={})),function(e,t){if(!e&&!t)return"";const n=l(e);let i=n.type;if(t&&i!==r.Absolute){const e=l(t),s=e.type;switch(i){case r.Empty:n.hash=e.hash;case r.Hash:n.query=e.query;case r.Query:case r.RelativePath:!function(e,t){c(t,t.type),"/"===e.path?e.path=t.path:e.path=function(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}(t.path)+e.path}(n,e);case r.AbsolutePath:n.user=e.user,n.host=e.host,n.port=e.port;case r.SchemeRelative:n.scheme=e.scheme}s>i&&(i=s)}c(n,i);const a=n.query+n.hash;switch(i){case r.Hash:case r.Query:return a;case r.RelativePath:{const r=n.path.slice(1);return r?s(t||e)&&!s(r)?"./"+r+a:r+a:a||"."}case r.AbsolutePath:return n.path+a;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+a}}}()},2208:function(e,t){!function(e){"use strict";e.get=void 0,e.put=void 0,e.pop=void 0;e.get=(e,t)=>e._indexes[t],e.put=(t,n)=>{const r=e.get(t,n);if(void 0!==r)return r;const{array:i,_indexes:s}=t;return s[n]=i.push(n)-1},e.pop=e=>{const{array:t,_indexes:n}=e;0!==t.length&&(n[t.pop()]=void 0)},e.SetArray=class{constructor(){this._indexes={__proto__:null},this.array=[]}},Object.defineProperty(e,"__esModule",{value:!0})}(t)},2297:function(e,t,n){var r=n(8764).lW;!function(e){"use strict";const t=",".charCodeAt(0),n=";".charCodeAt(0),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=new Uint8Array(64),a=new Uint8Array(128);for(let e=0;e<64;e++){const t=i.charCodeAt(e);s[e]=t,a[t]=e}const o="undefined"!=typeof TextDecoder?new TextDecoder:void 0!==r?{decode:e=>r.from(e.buffer,e.byteOffset,e.byteLength).toString()}:{decode(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}};function l(e,t){const n=e.indexOf(";",t);return-1===n?e.length:n}function c(e,t,n,r){let i=0,s=0,o=0;do{const n=e.charCodeAt(t++);o=a[n],i|=(31&o)<<s,s+=5}while(32&o);const l=1&i;return i>>>=1,l&&(i=-2147483648|-i),n[r]+=i,t}function u(e,n,r){return!(n>=r)&&e.charCodeAt(n)!==t}function p(e){e.sort(h)}function h(e,t){return e[0]-t[0]}function d(e,t,n,r,i){const a=r[i];let o=a-n[i];n[i]=a,o=o<0?-o<<1|1:o<<1;do{let n=31&o;o>>>=5,o>0&&(n|=32),e[t++]=s[n]}while(o>0);return t}e.decode=function(e){const t=new Int32Array(5),n=[];let r=0;do{const i=l(e,r),s=[];let a=!0,o=0;t[0]=0;for(let n=r;n<i;n++){let r;n=c(e,n,t,0);const l=t[0];l<o&&(a=!1),o=l,u(e,n,i)?(n=c(e,n,t,1),n=c(e,n,t,2),n=c(e,n,t,3),u(e,n,i)?(n=c(e,n,t,4),r=[l,t[1],t[2],t[3],t[4]]):r=[l,t[1],t[2],t[3]]):r=[l],s.push(r)}a||p(s),n.push(s),r=i+1}while(r<=e.length);return n},e.encode=function(e){const r=new Int32Array(5),i=16384,s=16348,a=new Uint8Array(i),l=a.subarray(0,s);let c=0,u="";for(let p=0;p<e.length;p++){const h=e[p];if(p>0&&(c===i&&(u+=o.decode(a),c=0),a[c++]=n),0!==h.length){r[0]=0;for(let e=0;e<h.length;e++){const n=h[e];c>s&&(u+=o.decode(l),a.copyWithin(0,s,c),c-=s),e>0&&(a[c++]=t),c=d(a,c,r,n,0),1!==n.length&&(c=d(a,c,r,n,1),c=d(a,c,r,n,2),c=d(a,c,r,n,3),4!==n.length&&(c=d(a,c,r,n,4)))}}}return u+o.decode(a.subarray(0,c))},Object.defineProperty(e,"__esModule",{value:!0})}(t)},3446:function(e,t,n){!function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=r(n);function s(e,t){return t&&!t.endsWith("/")&&(t+="/"),i.default(e,t)}const a=0,o=1,l=2,c=3,u=4;function p(e,t){for(let n=t;n<e.length;n++)if(!h(e[n]))return n;return e.length}function h(e){for(let t=1;t<e.length;t++)if(e[t][a]<e[t-1][a])return!1;return!0}function d(e,t){return t||(e=e.slice()),e.sort(f)}function f(e,t){return e[a]-t[a]}let y=!1;function m(e,t,n){for(let r=n+1;r<e.length&&e[r][a]===t;n=r++);return n}function T(e,t,n){for(let r=n-1;r>=0&&e[r][a]===t;n=r--);return n}function g(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function b(e,t,n,r){const{lastKey:i,lastNeedle:s,lastIndex:o}=n;let l=0,c=e.length-1;if(r===i){if(t===s)return y=-1!==o&&e[o][a]===t,o;t>=s?l=-1===o?0:o:c=o}return n.lastKey=r,n.lastNeedle=t,n.lastIndex=function(e,t,n,r){for(;n<=r;){const i=n+(r-n>>1),s=e[i][a]-t;if(0===s)return y=!0,i;s<0?n=i+1:r=i-1}return y=!1,n-1}(e,t,l,c)}function E(e,t,n){for(let n=e.length;n>t;n--)e[n]=e[n-1];e[t]=n}function S(){return{__proto__:null}}function P(e,t,n,r,i,s,a,o,l,c){const{sections:u}=e;for(let e=0;e<u.length;e++){const{map:p,offset:h}=u[e];let d=l,f=c;if(e+1<u.length){const t=u[e+1].offset;d=Math.min(l,a+t.line),d===l?f=Math.min(c,o+t.column):d<l&&(f=o+t.column)}x(p,t,n,r,i,s,a+h.line,o+h.column,d,f)}}function x(t,n,r,i,s,p,h,d,f,y){if("sections"in t)return P(...arguments);const m=new O(t,n),T=i.length,g=p.length,b=e.decodedMappings(m),{resolvedSources:E,sourcesContent:S}=m;if(D(i,E),D(p,m.names),S)D(s,S);else for(let e=0;e<E.length;e++)s.push(null);for(let e=0;e<b.length;e++){const t=h+e;if(t>f)return;const n=A(r,t),i=0===e?d:0,s=b[e];for(let e=0;e<s.length;e++){const r=s[e],p=i+r[a];if(t===f&&p>=y)return;if(1===r.length){n.push([p]);continue}const h=T+r[o],d=r[l],m=r[c];n.push(4===r.length?[p,h,d,m]:[p,h,d,m,g+r[u]])}}}function D(e,t){for(let n=0;n<t.length;n++)e.push(t[n])}function A(e,t){for(let n=e.length;n<=t;n++)e[n]=[];return e[t]}const v="`line` must be greater than 0 (lines start at line 1)",C="`column` must be greater than or equal to 0 (columns start at column 0)",w=-1;e.encodedMappings=void 0,e.decodedMappings=void 0,e.traceSegment=void 0,e.originalPositionFor=void 0,e.generatedPositionFor=void 0,e.allGeneratedPositionsFor=void 0,e.eachMapping=void 0,e.sourceContentFor=void 0,e.presortedDecodedMap=void 0,e.decodedMap=void 0,e.encodedMap=void 0;class O{constructor(e,t){const n="string"==typeof e;if(!n&&e._decodedMemo)return e;const r=n?JSON.parse(e):e,{version:i,file:a,names:o,sourceRoot:l,sources:c,sourcesContent:u}=r;this.version=i,this.file=a,this.names=o,this.sourceRoot=l,this.sources=c,this.sourcesContent=u;const h=s(l||"",function(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}(t));this.resolvedSources=c.map((e=>s(e||"",h)));const{mappings:f}=r;"string"==typeof f?(this._encoded=f,this._decoded=void 0):(this._encoded=void 0,this._decoded=function(e,t){const n=p(e,0);if(n===e.length)return e;t||(e=e.slice());for(let r=n;r<e.length;r=p(e,r+1))e[r]=d(e[r],t);return e}(f,n)),this._decodedMemo={lastKey:-1,lastNeedle:-1,lastIndex:-1},this._bySources=void 0,this._bySourceMemos=void 0}}function I(e,t){return{version:e.version,file:e.file,names:e.names,sourceRoot:e.sourceRoot,sources:e.sources,sourcesContent:e.sourcesContent,mappings:t}}function N(e,t,n,r){return{source:e,line:t,column:n,name:r}}function F(e,t){return{line:e,column:t}}function k(e,t,n,r,i){let s=b(e,r,t,n);return y?s=(i===w?m:T)(e,r,s):i===w&&s++,-1===s||s===e.length?-1:s}(()=>{function n(t,n,r,i,s,u){if(--r<0)throw new Error(v);if(i<0)throw new Error(C);const{sources:p,resolvedSources:h}=t;let d=p.indexOf(n);if(-1===d&&(d=h.indexOf(n)),-1===d)return u?[]:F(null,null);const f=(t._bySources||(t._bySources=function(e,t){const n=t.map(S);for(let r=0;r<e.length;r++){const i=e[r];for(let e=0;e<i.length;e++){const s=i[e];if(1===s.length)continue;const u=s[o],p=s[l],h=s[c],d=n[u],f=d[p]||(d[p]=[]),y=t[u],T=m(f,h,b(f,h,y,p));E(f,y.lastIndex=T+1,[h,r,s[a]])}}return n}(e.decodedMappings(t),t._bySourceMemos=p.map(g))))[d][r];if(null==f)return u?[]:F(null,null);const P=t._bySourceMemos[d];if(u)return function(e,t,n,r,i){let s=k(e,t,n,r,1);if(y||i!==w||s++,-1===s||s===e.length)return[];const o=y?r:e[s][a];y||(s=T(e,o,s));const l=m(e,o,s),c=[];for(;s<=l;s++){const t=e[s];c.push(F(t[1]+1,t[2]))}return c}(f,P,r,i,s);const x=k(f,P,r,i,s);if(-1===x)return F(null,null);const D=f[x];return F(D[1]+1,D[2])}e.encodedMappings=e=>{var n;return null!==(n=e._encoded)&&void 0!==n?n:e._encoded=t.encode(e._decoded)},e.decodedMappings=e=>e._decoded||(e._decoded=t.decode(e._encoded)),e.traceSegment=(t,n,r)=>{const i=e.decodedMappings(t);if(n>=i.length)return null;const s=i[n],a=k(s,t._decodedMemo,n,r,1);return-1===a?null:s[a]},e.originalPositionFor=(t,{line:n,column:r,bias:i})=>{if(--n<0)throw new Error(v);if(r<0)throw new Error(C);const s=e.decodedMappings(t);if(n>=s.length)return N(null,null,null,null);const a=s[n],p=k(a,t._decodedMemo,n,r,i||1);if(-1===p)return N(null,null,null,null);const h=a[p];if(1===h.length)return N(null,null,null,null);const{names:d,resolvedSources:f}=t;return N(f[h[o]],h[l]+1,h[c],5===h.length?d[h[u]]:null)},e.allGeneratedPositionsFor=(e,{source:t,line:r,column:i,bias:s})=>n(e,t,r,i,s||w,!0),e.generatedPositionFor=(e,{source:t,line:r,column:i,bias:s})=>n(e,t,r,i,s||1,!1),e.eachMapping=(t,n)=>{const r=e.decodedMappings(t),{names:i,resolvedSources:s}=t;for(let e=0;e<r.length;e++){const t=r[e];for(let r=0;r<t.length;r++){const a=t[r],o=e+1,l=a[0];let c=null,u=null,p=null,h=null;1!==a.length&&(c=s[a[1]],u=a[2]+1,p=a[3]),5===a.length&&(h=i[a[4]]),n({generatedLine:o,generatedColumn:l,source:c,originalLine:u,originalColumn:p,name:h})}}},e.sourceContentFor=(e,t)=>{const{sources:n,resolvedSources:r,sourcesContent:i}=e;if(null==i)return null;let s=n.indexOf(t);return-1===s&&(s=r.indexOf(t)),-1===s?null:i[s]},e.presortedDecodedMap=(e,t)=>{const n=new O(I(e,[]),t);return n._decoded=e.mappings,n},e.decodedMap=t=>I(t,e.decodedMappings(t)),e.encodedMap=t=>I(t,e.encodedMappings(t))})(),e.AnyMap=function(t,n){const r="string"==typeof t?JSON.parse(t):t;if(!("sections"in r))return new O(r,n);const i=[],s=[],a=[],o=[];P(r,n,i,s,a,o,0,0,1/0,1/0);const l={version:3,file:r.file,names:o,sources:s,sourcesContent:a,mappings:i};return e.presortedDecodedMap(l)},e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=w,e.TraceMap=O,Object.defineProperty(e,"__esModule",{value:!0})}(t,n(2297),n(8435))},6434:(e,t,n)=>{"use strict";e=n.nmd(e);const r=n(2085),i=(e,t)=>function(){return`[${e.apply(r,arguments)+t}m`},s=(e,t)=>function(){const n=e.apply(r,arguments);return`[${38+t};5;${n}m`},a=(e,t)=>function(){const n=e.apply(r,arguments);return`[${38+t};2;${n[0]};${n[1]};${n[2]}m`};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.grey=t.color.gray;for(const n of Object.keys(t)){const r=t[n];for(const n of Object.keys(r)){const i=r[n];t[n]={open:`[${i[0]}m`,close:`[${i[1]}m`},r[n]=t[n],e.set(i[0],i[1])}Object.defineProperty(t,n,{value:r,enumerable:!1}),Object.defineProperty(t,"codes",{value:e,enumerable:!1})}const n=e=>e,o=(e,t,n)=>[e,t,n];t.color.close="[39m",t.bgColor.close="[49m",t.color.ansi={ansi:i(n,0)},t.color.ansi256={ansi256:s(n,0)},t.color.ansi16m={rgb:a(o,0)},t.bgColor.ansi={ansi:i(n,10)},t.bgColor.ansi256={ansi256:s(n,10)},t.bgColor.ansi16m={rgb:a(o,10)};for(let e of Object.keys(r)){if("object"!=typeof r[e])continue;const n=r[e];"ansi16"===e&&(e="ansi"),"ansi16"in n&&(t.color.ansi[e]=i(n.ansi16,0),t.bgColor.ansi[e]=i(n.ansi16,10)),"ansi256"in n&&(t.color.ansi256[e]=s(n.ansi256,0),t.bgColor.ansi256[e]=s(n.ansi256,10)),"rgb"in n&&(t.color.ansi16m[e]=a(n.rgb,0),t.bgColor.ansi16m[e]=a(n.rgb,10))}return t}})},9742:(e,t)=>{"use strict";t.byteLength=function(e){var t=o(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,s=o(e),a=s[0],l=s[1],c=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,l)),u=0,p=l>0?a-4:a;for(n=0;n<p;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===l&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t),1===l&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,s=[],a=16383,o=0,c=r-i;o<c;o+=a)s.push(l(e,o,o+a>c?c:o+a));return 1===i?(t=e[r-1],s.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],s.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),s.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=s[a],r[s.charCodeAt(a)]=a;function o(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,r){for(var i,s,a=[],o=t;o<r;o+=3)i=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),a.push(n[(s=i)>>18&63]+n[s>>12&63]+n[s>>6&63]+n[63&s]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},8764:(e,t,n)=>{"use strict";const r=n(9742),i=n(645),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.lW=l,t.h2=50;const a=2147483647;function o(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return p(e)}return c(e,t,n)}function c(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|y(e,t);let r=o(n);const i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if($(e,Uint8Array)){const t=new Uint8Array(e);return d(t.buffer,t.byteOffset,t.byteLength)}return h(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if($(e,ArrayBuffer)||e&&$(e.buffer,ArrayBuffer))return d(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&($(e,SharedArrayBuffer)||e&&$(e.buffer,SharedArrayBuffer)))return d(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return l.from(r,t,n);const i=function(e){if(l.isBuffer(e)){const t=0|f(e.length),n=o(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||G(e.length)?o(0):h(e):"Buffer"===e.type&&Array.isArray(e.data)?h(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function p(e){return u(e),o(e<0?0:0|f(e))}function h(e){const t=e.length<0?0:0|f(e.length),n=o(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function d(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,l.prototype),r}function f(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function y(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||$(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(i)return r?-1:q(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return I(this,t,n);case"utf8":case"utf-8":return v(this,t,n);case"ascii":return w(this,t,n);case"latin1":case"binary":return O(this,t,n);case"base64":return A(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function T(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),G(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){let s,a=1,o=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,o/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let r=-1;for(s=n;s<o;s++)if(c(e,s)===c(t,-1===r?0:s-r)){if(-1===r&&(r=s),s-r+1===l)return r*a}else-1!==r&&(s-=s-r),r=-1}else for(n+l>o&&(n=o-l),s=n;s>=0;s--){let n=!0;for(let r=0;r<l;r++)if(c(e,s+r)!==c(t,r)){n=!1;break}if(n)return s}return-1}function E(e,t,n,r){n=Number(n)||0;const i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;const s=t.length;let a;for(r>s/2&&(r=s/2),a=0;a<r;++a){const r=parseInt(t.substr(2*a,2),16);if(G(r))return a;e[n+a]=r}return a}function S(e,t,n,r){return J(q(t,e.length-n),e,n,r)}function P(e,t,n,r){return J(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function x(e,t,n,r){return J(H(t),e,n,r)}function D(e,t,n,r){return J(function(e,t){let n,r,i;const s=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,i=n%256,s.push(i),s.push(r);return s}(t,e.length-n),e,n,r)}function A(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function v(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i<n;){const t=e[i];let s=null,a=t>239?4:t>223?3:t>191?2:1;if(i+a<=n){let n,r,o,l;switch(a){case 1:t<128&&(s=t);break;case 2:n=e[i+1],128==(192&n)&&(l=(31&t)<<6|63&n,l>127&&(s=l));break;case 3:n=e[i+1],r=e[i+2],128==(192&n)&&128==(192&r)&&(l=(15&t)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(s=l));break;case 4:n=e[i+1],r=e[i+2],o=e[i+3],128==(192&n)&&128==(192&r)&&128==(192&o)&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&o,l>65535&&l<1114112&&(s=l))}}null===s?(s=65533,a=1):s>65535&&(s-=65536,r.push(s>>>10&1023|55296),s=56320|1023&s),r.push(s),i+=a}return function(e){const t=e.length;if(t<=C)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=C));return n}(r)}l.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,n){return function(e,t,n){return u(e),e<=0?o(e):void 0!==t?"string"==typeof n?o(e).fill(t,n):o(e).fill(t):o(e)}(e,t,n)},l.allocUnsafe=function(e){return p(e)},l.allocUnsafeSlow=function(e){return p(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if($(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),$(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,s=Math.min(n,r);i<s;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=l.allocUnsafe(t);let i=0;for(n=0;n<e.length;++n){let t=e[n];if($(t,Uint8Array))i+t.length>r.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},l.byteLength=y,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)T(this,t,t+1);return this},l.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)T(this,t,t+3),T(this,t+1,t+2);return this},l.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)T(this,t,t+7),T(this,t+1,t+6),T(this,t+2,t+5),T(this,t+3,t+4);return this},l.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?v(this,0,e):m.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){let e="";const n=t.h2;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},s&&(l.prototype[s]=l.prototype.inspect),l.prototype.compare=function(e,t,n,r,i){if($(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let s=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const o=Math.min(s,a),c=this.slice(r,i),u=e.slice(t,n);for(let e=0;e<o;++e)if(c[e]!==u[e]){s=c[e],a=u[e];break}return s<a?-1:a<s?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let s=!1;for(;;)switch(r){case"hex":return E(this,e,t,n);case"utf8":case"utf-8":return S(this,e,t,n);case"ascii":case"latin1":case"binary":return P(this,e,t,n);case"base64":return x(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,e,t,n);default:if(s)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),s=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const C=4096;function w(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function O(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function I(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i="";for(let r=t;r<n;++r)i+=z[e[r]];return i}function N(e,t,n){const r=e.slice(t,n);let i="";for(let e=0;e<r.length-1;e+=2)i+=String.fromCharCode(r[e]+256*r[e+1]);return i}function F(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function k(e,t,n,r,i,s){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<s)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function L(e,t,n,r,i){K(t,r,i,e,n,7);let s=Number(t&BigInt(4294967295));e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function _(e,t,n,r,i){K(t,r,i,e,n,7);let s=Number(t&BigInt(4294967295));e[n+7]=s,s>>=8,e[n+6]=s,s>>=8,e[n+5]=s,s>>=8,e[n+4]=s;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function M(e,t,n,r,i,s){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function B(e,t,n,r,s){return t=+t,n>>>=0,s||M(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function j(e,t,n,r,s){return t=+t,n>>>=0,s||M(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,l.prototype),r},l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||F(e,t,this.length);let r=this[e],i=1,s=0;for(;++s<t&&(i*=256);)r+=this[e+s]*i;return r},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||F(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||F(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||F(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||F(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||F(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||F(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=Q((function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||X(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))})),l.prototype.readBigUInt64BE=Q((function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||X(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)})),l.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||F(e,t,this.length);let r=this[e],i=1,s=0;for(;++s<t&&(i*=256);)r+=this[e+s]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||F(e,t,this.length);let r=t,i=1,s=this[e+--r];for(;r>0&&(i*=256);)s+=this[e+--r]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*t)),s},l.prototype.readInt8=function(e,t){return e>>>=0,t||F(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||F(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||F(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||F(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||F(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=Q((function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||X(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),l.prototype.readBigInt64BE=Q((function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||X(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)})),l.prototype.readFloatLE=function(e,t){return e>>>=0,t||F(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||F(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||F(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||F(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||k(this,e,t,n,Math.pow(2,8*n)-1,0);let i=1,s=0;for(this[t]=255&e;++s<n&&(i*=256);)this[t+s]=e/i&255;return t+n},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||k(this,e,t,n,Math.pow(2,8*n)-1,0);let i=n-1,s=1;for(this[t+i]=255&e;--i>=0&&(s*=256);)this[t+i]=e/s&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigUInt64LE=Q((function(e,t=0){return L(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=Q((function(e,t=0){return _(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);k(this,e,t,n,r-1,-r)}let i=0,s=1,a=0;for(this[t]=255&e;++i<n&&(s*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);k(this,e,t,n,r-1,-r)}let i=n-1,s=1,a=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigInt64LE=Q((function(e,t=0){return L(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=Q((function(e,t=0){return _(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(e,t,n){return B(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return B(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return j(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return j(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const i=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{const s=l.isBuffer(e)?e:l.from(e,r),a=s.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=s[i%a]}return this};const R={};function U(e,t,n){R[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function V(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function K(e,t,n,r,i,s){if(e>n||e<t){const r="bigint"==typeof t?"n":"";let i;throw i=s>3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(s+1)}${r}`:`>= -(2${r} ** ${8*(s+1)-1}${r}) and < 2 ** ${8*(s+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new R.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){W(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||X(t,e.length-(n+1))}(r,i,s)}function W(e,t){if("number"!=typeof e)throw new R.ERR_INVALID_ARG_TYPE(t,"number",e)}function X(e,t,n){if(Math.floor(e)!==e)throw W(e,n),new R.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new R.ERR_BUFFER_OUT_OF_BOUNDS;throw new R.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}U("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),U("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),U("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=V(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=V(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r}),RangeError);const Y=/[^+/0-9A-Za-z-_]/g;function q(e,t){let n;t=t||1/0;const r=e.length;let i=null;const s=[];for(let a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&s.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&s.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&s.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;s.push(n)}else if(n<2048){if((t-=2)<0)break;s.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;s.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return s}function H(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(Y,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function J(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function $(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function G(e){return e!=e}const z=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function Q(e){return"undefined"==typeof BigInt?Z:e}function Z(){throw new Error("BigInt not supported")}},2589:(e,t,n)=>{"use strict";var r=n(4155);const i=n(3150),s=n(6434),a=n(8555).stdout,o=n(6864),l="win32"===r.platform&&!(r.env.TERM||"").toLowerCase().startsWith("xterm"),c=["ansi","ansi","ansi256","ansi16m"],u=new Set(["gray"]),p=Object.create(null);function h(e,t){t=t||{};const n=a?a.level:0;e.level=void 0===t.level?n:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function d(e){if(!this||!(this instanceof d)||this.template){const t={};return h(t,e),t.template=function(){const e=[].slice.call(arguments);return T.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,d.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=d,t.template}h(this,e)}l&&(s.blue.open="[94m");for(const e of Object.keys(s))s[e].closeRe=new RegExp(i(s[e].close),"g"),p[e]={get(){const t=s[e];return y.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};p.visible={get(){return y.call(this,this._styles||[],!0,"visible")}},s.color.closeRe=new RegExp(i(s.color.close),"g");for(const e of Object.keys(s.color.ansi))u.has(e)||(p[e]={get(){const t=this.level;return function(){const n={open:s.color[c[t]][e].apply(null,arguments),close:s.color.close,closeRe:s.color.closeRe};return y.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});s.bgColor.closeRe=new RegExp(i(s.bgColor.close),"g");for(const e of Object.keys(s.bgColor.ansi))u.has(e)||(p["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const t=this.level;return function(){const n={open:s.bgColor[c[t]][e].apply(null,arguments),close:s.bgColor.close,closeRe:s.bgColor.closeRe};return y.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});const f=Object.defineProperties((()=>{}),p);function y(e,t,n){const r=function(){return m.apply(r,arguments)};r._styles=e,r._empty=t;const i=this;return Object.defineProperty(r,"level",{enumerable:!0,get:()=>i.level,set(e){i.level=e}}),Object.defineProperty(r,"enabled",{enumerable:!0,get:()=>i.enabled,set(e){i.enabled=e}}),r.hasGrey=this.hasGrey||"gray"===n||"grey"===n,r.__proto__=f,r}function m(){const e=arguments,t=e.length;let n=String(arguments[0]);if(0===t)return"";if(t>1)for(let r=1;r<t;r++)n+=" "+e[r];if(!this.enabled||this.level<=0||!n)return this._empty?"":n;const r=s.dim.open;l&&this.hasGrey&&(s.dim.open="");for(const e of this._styles.slice().reverse())n=e.open+n.replace(e.closeRe,e.open)+e.close,n=n.replace(/\r?\n/g,`${e.close}$&${e.open}`);return s.dim.open=r,n}function T(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");const n=[].slice.call(arguments,2),r=[t.raw[0]];for(let e=1;e<t.length;e++)r.push(String(n[e-1]).replace(/[{}\\]/g,"\\$&")),r.push(String(t.raw[e]));return o(e,r.join(""))}Object.defineProperties(d.prototype,p),e.exports=d(),e.exports.supportsColor=a,e.exports.default=e.exports},6864:e=>{"use strict";const t=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,r=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,i=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,s=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function a(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):s.get(e)||e}function o(e,t){const n=[],s=t.trim().split(/\s*,\s*/g);let o;for(const t of s)if(isNaN(t)){if(!(o=t.match(r)))throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`);n.push(o[2].replace(i,((e,t,n)=>t?a(t):n)))}else n.push(Number(t));return n}function l(e){n.lastIndex=0;const t=[];let r;for(;null!==(r=n.exec(e));){const e=r[1];if(r[2]){const n=o(e,r[2]);t.push([e].concat(n))}else t.push([e])}return t}function c(e,t){const n={};for(const e of t)for(const t of e.styles)n[t[0]]=e.inverse?null:t.slice(1);let r=e;for(const e of Object.keys(n))if(Array.isArray(n[e])){if(!(e in r))throw new Error(`Unknown Chalk style: ${e}`);r=n[e].length>0?r[e].apply(r,n[e]):r[e]}return r}e.exports=(e,n)=>{const r=[],i=[];let s=[];if(n.replace(t,((t,n,o,u,p,h)=>{if(n)s.push(a(n));else if(u){const t=s.join("");s=[],i.push(0===r.length?t:c(e,r)(t)),r.push({inverse:o,styles:l(u)})}else if(p){if(0===r.length)throw new Error("Found extraneous } in Chalk template literal");i.push(c(e,r)(s.join(""))),s=[],r.pop()}else s.push(h)})),i.push(s.join("")),r.length>0){const e=`Chalk template literal is missing ${r.length} closing bracket${1===r.length?"":"s"} (\`}\`)`;throw new Error(e)}return i.join("")}},8168:(e,t,n)=>{var r=n(3515),i={};for(var s in r)r.hasOwnProperty(s)&&(i[r[s]]=s);var a=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var o in a)if(a.hasOwnProperty(o)){if(!("channels"in a[o]))throw new Error("missing channels property: "+o);if(!("labels"in a[o]))throw new Error("missing channel labels property: "+o);if(a[o].labels.length!==a[o].channels)throw new Error("channel and label counts mismatch: "+o);var l=a[o].channels,c=a[o].labels;delete a[o].channels,delete a[o].labels,Object.defineProperty(a[o],"channels",{value:l}),Object.defineProperty(a[o],"labels",{value:c})}a.rgb.hsl=function(e){var t,n,r=e[0]/255,i=e[1]/255,s=e[2]/255,a=Math.min(r,i,s),o=Math.max(r,i,s),l=o-a;return o===a?t=0:r===o?t=(i-s)/l:i===o?t=2+(s-r)/l:s===o&&(t=4+(r-i)/l),(t=Math.min(60*t,360))<0&&(t+=360),n=(a+o)/2,[t,100*(o===a?0:n<=.5?l/(o+a):l/(2-o-a)),100*n]},a.rgb.hsv=function(e){var t,n,r=e[0],i=e[1],s=e[2],a=Math.min(r,i,s),o=Math.max(r,i,s),l=o-a;return n=0===o?0:l/o*1e3/10,o===a?t=0:r===o?t=(i-s)/l:i===o?t=2+(s-r)/l:s===o&&(t=4+(r-i)/l),(t=Math.min(60*t,360))<0&&(t+=360),[t,n,o/255*1e3/10]},a.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2];return[a.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,r))*100,100*(r=1-1/255*Math.max(t,Math.max(n,r)))]},a.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-i)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]},a.rgb.keyword=function(e){var t=i[e];if(t)return t;var n,s,a,o=1/0;for(var l in r)if(r.hasOwnProperty(l)){var c=(s=e,a=r[l],Math.pow(s[0]-a[0],2)+Math.pow(s[1]-a[1],2)+Math.pow(s[2]-a[2],2));c<o&&(o=c,n=l)}return n},a.keyword.rgb=function(e){return r[e]},a.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},a.rgb.lab=function(e){var t=a.rgb.xyz(e),n=t[0],r=t[1],i=t[2];return r/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},a.hsl.rgb=function(e){var t,n,r,i,s,a=e[0]/360,o=e[1]/100,l=e[2]/100;if(0===o)return[s=255*l,s,s];t=2*l-(n=l<.5?l*(1+o):l+o-l*o),i=[0,0,0];for(var c=0;c<3;c++)(r=a+1/3*-(c-1))<0&&r++,r>1&&r--,s=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,i[c]=255*s;return i},a.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,i=n,s=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,i*=s<=1?s:2-s,[t,100*(0===r?2*i/(s+i):2*n/(r+n)),(r+n)/2*100]},a.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,s=t-Math.floor(t),a=255*r*(1-n),o=255*r*(1-n*s),l=255*r*(1-n*(1-s));switch(r*=255,i){case 0:return[r,l,a];case 1:return[o,r,a];case 2:return[a,r,l];case 3:return[a,o,r];case 4:return[l,a,r];case 5:return[r,a,o]}},a.hsv.hsl=function(e){var t,n,r,i=e[0],s=e[1]/100,a=e[2]/100,o=Math.max(a,.01);return r=(2-s)*a,n=s*o,[i,100*(n=(n/=(t=(2-s)*o)<=1?t:2-t)||0),100*(r/=2)]},a.hwb.rgb=function(e){var t,n,r,i,s,a,o,l=e[0]/360,c=e[1]/100,u=e[2]/100,p=c+u;switch(p>1&&(c/=p,u/=p),r=6*l-(t=Math.floor(6*l)),0!=(1&t)&&(r=1-r),i=c+r*((n=1-u)-c),t){default:case 6:case 0:s=n,a=i,o=c;break;case 1:s=i,a=n,o=c;break;case 2:s=c,a=n,o=i;break;case 3:s=c,a=i,o=n;break;case 4:s=i,a=c,o=n;break;case 5:s=n,a=c,o=i}return[255*s,255*a,255*o]},a.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},a.xyz.rgb=function(e){var t,n,r,i=e[0]/100,s=e[1]/100,a=e[2]/100;return n=-.9689*i+1.8758*s+.0415*a,r=.0557*i+-.204*s+1.057*a,t=(t=3.2406*i+-1.5372*s+-.4986*a)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},a.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},a.lab.xyz=function(e){var t,n,r,i=e[0];t=e[1]/500+(n=(i+16)/116),r=n-e[2]/200;var s=Math.pow(n,3),a=Math.pow(t,3),o=Math.pow(r,3);return n=s>.008856?s:(n-16/116)/7.787,t=a>.008856?a:(t-16/116)/7.787,r=o>.008856?o:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},a.lab.lch=function(e){var t,n=e[0],r=e[1],i=e[2];return(t=360*Math.atan2(i,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+i*i),t]},a.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},a.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],i=1 in arguments?arguments[1]:a.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var s=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===i&&(s+=60),s},a.hsv.ansi16=function(e){return a.rgb.ansi16(a.hsv.rgb(e),e[2])},a.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},a.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},a.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},a.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},a.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},a.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255,s=Math.max(Math.max(n,r),i),a=Math.min(Math.min(n,r),i),o=s-a;return t=o<=0?0:s===n?(r-i)/o%6:s===r?2+(i-n)/o:4+(n-r)/o+4,t/=6,[360*(t%=1),100*o,100*(o<1?a/(1-o):0)]},a.hsl.hcg=function(e){var t,n=e[1]/100,r=e[2]/100,i=0;return(t=r<.5?2*n*r:2*n*(1-r))<1&&(i=(r-.5*t)/(1-t)),[e[0],100*t,100*i]},a.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},a.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var i,s=[0,0,0],a=t%1*6,o=a%1,l=1-o;switch(Math.floor(a)){case 0:s[0]=1,s[1]=o,s[2]=0;break;case 1:s[0]=l,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=o;break;case 3:s[0]=0,s[1]=l,s[2]=1;break;case 4:s[0]=o,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=l}return i=(1-n)*r,[255*(n*s[0]+i),255*(n*s[1]+i),255*(n*s[2]+i)]},a.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},a.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},a.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},a.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},a.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},a.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},a.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},a.gray.hsl=a.gray.hsv=function(e){return[0,0,e[0]]},a.gray.hwb=function(e){return[0,100,e[0]]},a.gray.cmyk=function(e){return[0,0,0,e[0]]},a.gray.lab=function(e){return[e[0],0,0]},a.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},a.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},2085:(e,t,n)=>{var r=n(8168),i=n(4111),s={};Object.keys(r).forEach((function(e){s[e]={},Object.defineProperty(s[e],"channels",{value:r[e].channels}),Object.defineProperty(s[e],"labels",{value:r[e].labels});var t=i(e);Object.keys(t).forEach((function(n){var r=t[n];s[e][n]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,i=0;i<r;i++)n[i]=Math.round(n[i]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(r),s[e][n].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))})),e.exports=s},4111:(e,t,n)=>{var r=n(8168);function i(e,t){return function(n){return t(e(n))}}function s(e,t){for(var n=[t[e].parent,e],s=r[t[e].parent][e],a=t[e].parent;t[a].parent;)n.unshift(t[a].parent),s=i(r[t[a].parent][a],s),a=t[a].parent;return s.conversion=n,s}e.exports=function(e){for(var t=function(e){var t=function(){for(var e={},t=Object.keys(r),n=t.length,i=0;i<n;i++)e[t[i]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;)for(var i=n.pop(),s=Object.keys(r[i]),a=s.length,o=0;o<a;o++){var l=s[o],c=t[l];-1===c.distance&&(c.distance=t[i].distance+1,c.parent=i,n.unshift(l))}return t}(e),n={},i=Object.keys(t),a=i.length,o=0;o<a;o++){var l=i[o];null!==t[l].parent&&(n[l]=s(l,t))}return n}},3515:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},1227:(e,t,n)=>{var r=n(4155);t.log=function(...e){return"object"==typeof console&&console.log&&console.log(...e)},t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.exports=n(2447)(t);const{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},2447:(e,t,n)=>{e.exports=function(e){function t(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return r.colors[Math.abs(t)%r.colors.length]}function r(e){let n;function a(...e){if(!a.enabled)return;const t=a,i=Number(new Date),s=i-(n||i);t.diff=s,t.prev=n,t.curr=i,n=i,e[0]=r.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,i)=>{if("%%"===n)return n;o++;const s=r.formatters[i];if("function"==typeof s){const r=e[o];n=s.call(t,r),e.splice(o,1),o--}return n})),r.formatArgs.call(t,e),(t.log||r.log).apply(t,e)}return a.namespace=e,a.enabled=r.enabled(e),a.useColors=r.useColors(),a.color=t(e),a.destroy=i,a.extend=s,"function"==typeof r.init&&r.init(a),r.instances.push(a),a}function i(){const e=r.instances.indexOf(this);return-1!==e&&(r.instances.splice(e,1),!0)}function s(e,t){const n=r(this.namespace+(void 0===t?":":t)+e);return n.log=this.log,n}function a(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return r.debug=r,r.default=r,r.coerce=function(e){return e instanceof Error?e.stack||e.message:e},r.disable=function(){const e=[...r.names.map(a),...r.skips.map(a).map((e=>"-"+e))].join(",");return r.enable(""),e},r.enable=function(e){let t;r.save(e),r.names=[],r.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),i=n.length;for(t=0;t<i;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?r.skips.push(new RegExp("^"+e.substr(1)+"$")):r.names.push(new RegExp("^"+e+"$")));for(t=0;t<r.instances.length;t++){const e=r.instances[t];e.enabled=r.enabled(e.namespace)}},r.enabled=function(e){if("*"===e[e.length-1])return!0;let t,n;for(t=0,n=r.skips.length;t<n;t++)if(r.skips[t].test(e))return!1;for(t=0,n=r.names.length;t<n;t++)if(r.names[t].test(e))return!0;return!1},r.humanize=n(7824),Object.keys(e).forEach((t=>{r[t]=e[t]})),r.instances=[],r.names=[],r.skips=[],r.formatters={},r.selectColor=t,r.enable(r.load()),r}},9996:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?o((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function s(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function a(e,t){try{return t in e}catch(e){return!1}}function o(e,n,l){(l=l||{}).arrayMerge=l.arrayMerge||i,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=r;var c=Array.isArray(n);return c===Array.isArray(e)?c?l.arrayMerge(e,n,l):function(e,t,n){var i={};return n.isMergeableObject(e)&&s(e).forEach((function(t){i[t]=r(e[t],n)})),s(t).forEach((function(s){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,s)||(a(e,s)&&n.isMergeableObject(t[s])?i[s]=function(e,t){if(!t.customMerge)return o;var n=t.customMerge(e);return"function"==typeof n?n:o}(s,n)(e[s],t[s],n):i[s]=r(t[s],n))})),i}(e,n,l):r(n,l)}o.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return o(e,n,t)}),{})};var l=o;e.exports=l},4021:e=>{var t={};function n(e){return e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}e.exports=t,t.eastAsianWidth=function(e){var t=e.charCodeAt(0),n=2==e.length?e.charCodeAt(1):0,r=t;return 55296<=t&&t<=56319&&56320<=n&&n<=57343&&(r=(t&=1023)<<10|(n&=1023),r+=65536),12288==r||65281<=r&&r<=65376||65504<=r&&r<=65510?"F":8361==r||65377<=r&&r<=65470||65474<=r&&r<=65479||65482<=r&&r<=65487||65490<=r&&r<=65495||65498<=r&&r<=65500||65512<=r&&r<=65518?"H":4352<=r&&r<=4447||4515<=r&&r<=4519||4602<=r&&r<=4607||9001<=r&&r<=9002||11904<=r&&r<=11929||11931<=r&&r<=12019||12032<=r&&r<=12245||12272<=r&&r<=12283||12289<=r&&r<=12350||12353<=r&&r<=12438||12441<=r&&r<=12543||12549<=r&&r<=12589||12593<=r&&r<=12686||12688<=r&&r<=12730||12736<=r&&r<=12771||12784<=r&&r<=12830||12832<=r&&r<=12871||12880<=r&&r<=13054||13056<=r&&r<=19903||19968<=r&&r<=42124||42128<=r&&r<=42182||43360<=r&&r<=43388||44032<=r&&r<=55203||55216<=r&&r<=55238||55243<=r&&r<=55291||63744<=r&&r<=64255||65040<=r&&r<=65049||65072<=r&&r<=65106||65108<=r&&r<=65126||65128<=r&&r<=65131||110592<=r&&r<=110593||127488<=r&&r<=127490||127504<=r&&r<=127546||127552<=r&&r<=127560||127568<=r&&r<=127569||131072<=r&&r<=194367||177984<=r&&r<=196605||196608<=r&&r<=262141?"W":32<=r&&r<=126||162<=r&&r<=163||165<=r&&r<=166||172==r||175==r||10214<=r&&r<=10221||10629<=r&&r<=10630?"Na":161==r||164==r||167<=r&&r<=168||170==r||173<=r&&r<=174||176<=r&&r<=180||182<=r&&r<=186||188<=r&&r<=191||198==r||208==r||215<=r&&r<=216||222<=r&&r<=225||230==r||232<=r&&r<=234||236<=r&&r<=237||240==r||242<=r&&r<=243||247<=r&&r<=250||252==r||254==r||257==r||273==r||275==r||283==r||294<=r&&r<=295||299==r||305<=r&&r<=307||312==r||319<=r&&r<=322||324==r||328<=r&&r<=331||333==r||338<=r&&r<=339||358<=r&&r<=359||363==r||462==r||464==r||466==r||468==r||470==r||472==r||474==r||476==r||593==r||609==r||708==r||711==r||713<=r&&r<=715||717==r||720==r||728<=r&&r<=731||733==r||735==r||768<=r&&r<=879||913<=r&&r<=929||931<=r&&r<=937||945<=r&&r<=961||963<=r&&r<=969||1025==r||1040<=r&&r<=1103||1105==r||8208==r||8211<=r&&r<=8214||8216<=r&&r<=8217||8220<=r&&r<=8221||8224<=r&&r<=8226||8228<=r&&r<=8231||8240==r||8242<=r&&r<=8243||8245==r||8251==r||8254==r||8308==r||8319==r||8321<=r&&r<=8324||8364==r||8451==r||8453==r||8457==r||8467==r||8470==r||8481<=r&&r<=8482||8486==r||8491==r||8531<=r&&r<=8532||8539<=r&&r<=8542||8544<=r&&r<=8555||8560<=r&&r<=8569||8585==r||8592<=r&&r<=8601||8632<=r&&r<=8633||8658==r||8660==r||8679==r||8704==r||8706<=r&&r<=8707||8711<=r&&r<=8712||8715==r||8719==r||8721==r||8725==r||8730==r||8733<=r&&r<=8736||8739==r||8741==r||8743<=r&&r<=8748||8750==r||8756<=r&&r<=8759||8764<=r&&r<=8765||8776==r||8780==r||8786==r||8800<=r&&r<=8801||8804<=r&&r<=8807||8810<=r&&r<=8811||8814<=r&&r<=8815||8834<=r&&r<=8835||8838<=r&&r<=8839||8853==r||8857==r||8869==r||8895==r||8978==r||9312<=r&&r<=9449||9451<=r&&r<=9547||9552<=r&&r<=9587||9600<=r&&r<=9615||9618<=r&&r<=9621||9632<=r&&r<=9633||9635<=r&&r<=9641||9650<=r&&r<=9651||9654<=r&&r<=9655||9660<=r&&r<=9661||9664<=r&&r<=9665||9670<=r&&r<=9672||9675==r||9678<=r&&r<=9681||9698<=r&&r<=9701||9711==r||9733<=r&&r<=9734||9737==r||9742<=r&&r<=9743||9748<=r&&r<=9749||9756==r||9758==r||9792==r||9794==r||9824<=r&&r<=9825||9827<=r&&r<=9829||9831<=r&&r<=9834||9836<=r&&r<=9837||9839==r||9886<=r&&r<=9887||9918<=r&&r<=9919||9924<=r&&r<=9933||9935<=r&&r<=9953||9955==r||9960<=r&&r<=9983||10045==r||10071==r||10102<=r&&r<=10111||11093<=r&&r<=11097||12872<=r&&r<=12879||57344<=r&&r<=63743||65024<=r&&r<=65039||65533==r||127232<=r&&r<=127242||127248<=r&&r<=127277||127280<=r&&r<=127337||127344<=r&&r<=127386||917760<=r&&r<=917999||983040<=r&&r<=1048573||1048576<=r&&r<=1114109?"A":"N"},t.characterLength=function(e){var t=this.eastAsianWidth(e);return"F"==t||"W"==t||"A"==t?2:1},t.length=function(e){for(var t=n(e),r=0,i=0;i<t.length;i++)r+=this.characterLength(t[i]);return r},t.slice=function(e,r,i){textLen=t.length(e),i=i||1,(r=r||0)<0&&(r=textLen+r),i<0&&(i=textLen+i);for(var s="",a=0,o=n(e),l=0;l<o.length;l++){var c=o[l],u=t.length(c);if(a>=r-(2==u?1:0)){if(!(a+u<=i))break;s+=c}a+=u}return s}},3150:e=>{"use strict";var t=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(t,"\\$&")}},1272:(e,t,n)=>{"use strict";e.exports=n(8487)},645:(e,t)=>{t.read=function(e,t,n,r,i){var s,a,o=8*i-r-1,l=(1<<o)-1,c=l>>1,u=-7,p=n?i-1:0,h=n?-1:1,d=e[t+p];for(p+=h,s=d&(1<<-u)-1,d>>=-u,u+=o;u>0;s=256*s+e[t+p],p+=h,u-=8);for(a=s&(1<<-u)-1,s>>=-u,u+=r;u>0;a=256*a+e[t+p],p+=h,u-=8);if(0===s)s=1-c;else{if(s===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),s-=c}return(d?-1:1)*a*Math.pow(2,s-r)},t.write=function(e,t,n,r,i,s){var a,o,l,c=8*s-i-1,u=(1<<c)-1,p=u>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:s-1,f=r?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+p>=1?h/l:h*Math.pow(2,1-p))*l>=2&&(a++,l/=2),a+p>=u?(o=0,a=u):a+p>=1?(o=(t*l-1)*Math.pow(2,i),a+=p):(o=t*Math.pow(2,p-1)*Math.pow(2,i),a=0));i>=8;e[n+d]=255&o,d+=f,o/=256,i-=8);for(a=a<<i|o,c+=i;c>0;e[n+d]=255&a,d+=f,a/=256,c-=8);e[n+d-f]|=128*y}},6188:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,t.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}},3312:(e,t,n)=>{"use strict";var r=n(8764).lW;const i={},s=i.hasOwnProperty,a=(e,t)=>{for(const n in e)s.call(e,n)&&t(n,e[n])},o=i.toString,l=Array.isArray,c=r.isBuffer,u={'"':'\\"',"'":"\\'","\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},p=/["'\\\b\f\n\r\t]/,h=/[0-9]/,d=/[ !#-&\(-\[\]-~]/,f=(e,t)=>{const n=()=>{E=b,++t.indentLevel,b=t.indent.repeat(t.indentLevel)},r={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:"\t",indentLevel:0,__inline1__:!1,__inline2__:!1},i=t&&t.json;var s,y;i&&(r.quotes="double",r.wrap=!0),s=r,t=(y=t)?(a(y,((e,t)=>{s[e]=t})),s):s,"single"!=t.quotes&&"double"!=t.quotes&&"backtick"!=t.quotes&&(t.quotes="single");const m="double"==t.quotes?'"':"backtick"==t.quotes?"`":"'",T=t.compact,g=t.lowercaseHex;let b=t.indent.repeat(t.indentLevel),E="";const S=t.__inline1__,P=t.__inline2__,x=T?"":"\n";let D,A=!0;const v="binary"==t.numbers,C="octal"==t.numbers,w="decimal"==t.numbers,O="hexadecimal"==t.numbers;if(i&&e&&"function"==typeof e.toJSON&&(e=e.toJSON()),"string"!=typeof(I=e)&&"[object String]"!=o.call(I)){if((e=>"[object Map]"==o.call(e))(e))return 0==e.size?"new Map()":(T||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+f(Array.from(e),t)+")");if((e=>"[object Set]"==o.call(e))(e))return 0==e.size?"new Set()":"new Set("+f(Array.from(e),t)+")";if(c(e))return 0==e.length?"Buffer.from([])":"Buffer.from("+f(Array.from(e),t)+")";if(l(e))return D=[],t.wrap=!0,S&&(t.__inline1__=!1,t.__inline2__=!0),P||n(),((e,t)=>{const n=e.length;let r=-1;for(;++r<n;)t(e[r])})(e,(e=>{A=!1,P&&(t.__inline2__=!1),D.push((T||P?"":b)+f(e,t))})),A?"[]":P?"["+D.join(", ")+"]":"["+x+D.join(","+x)+x+(T?"":E)+"]";if(!(e=>"number"==typeof e||"[object Number]"==o.call(e))(e))return(e=>"[object Object]"==o.call(e))(e)?(D=[],t.wrap=!0,n(),a(e,((e,n)=>{A=!1,D.push((T?"":b)+f(e,t)+":"+(T?"":" ")+f(n,t))})),A?"{}":"{"+x+D.join(","+x)+x+(T?"":E)+"}"):i?JSON.stringify(e)||"null":String(e);if(i)return JSON.stringify(e);if(w)return String(e);if(O){let t=e.toString(16);return g||(t=t.toUpperCase()),"0x"+t}if(v)return"0b"+e.toString(2);if(C)return"0o"+e.toString(8)}var I;const N=e;let F=-1;const k=N.length;for(D="";++F<k;){const e=N.charAt(F);if(t.es6){const e=N.charCodeAt(F);if(e>=55296&&e<=56319&&k>F+1){const t=N.charCodeAt(F+1);if(t>=56320&&t<=57343){let n=(1024*(e-55296)+t-56320+65536).toString(16);g||(n=n.toUpperCase()),D+="\\u{"+n+"}",++F;continue}}}if(!t.escapeEverything){if(d.test(e)){D+=e;continue}if('"'==e){D+=m==e?'\\"':e;continue}if("`"==e){D+=m==e?"\\`":e;continue}if("'"==e){D+=m==e?"\\'":e;continue}}if("\0"==e&&!i&&!h.test(N.charAt(F+1))){D+="\\0";continue}if(p.test(e)){D+=u[e];continue}const n=e.charCodeAt(0);if(t.minimal&&8232!=n&&8233!=n){D+=e;continue}let r=n.toString(16);g||(r=r.toUpperCase());const s=r.length>2||i,a="\\"+(s?"u":"x")+("0000"+r).slice(s?-4:-2);D+=a}return t.wrap&&(D=m+D+m),"`"==m&&(D=D.replace(/\$\{/g,"\\${")),t.isScriptContext?D.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,i?"\\u003C!--":"\\x3C!--"):D};f.version="2.5.1",e.exports=f},7824:e=>{var t=1e3,n=60*t,r=60*n,i=24*r;function s(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,a){a=a||{};var o,l,c=typeof e;if("string"===c&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(s){var a=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return 6048e5*a;case"days":case"day":case"d":return a*i;case"hours":case"hour":case"hrs":case"hr":case"h":return a*r;case"minutes":case"minute":case"mins":case"min":case"m":return a*n;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}(e);if("number"===c&&isFinite(e))return a.long?(o=e,(l=Math.abs(o))>=i?s(o,l,i,"day"):l>=r?s(o,l,r,"hour"):l>=n?s(o,l,n,"minute"):l>=t?s(o,l,t,"second"):o+" ms"):function(e){var s=Math.abs(e);return s>=i?Math.round(e/i)+"d":s>=r?Math.round(e/r)+"h":s>=n?Math.round(e/n)+"m":s>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},4155:e=>{var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var o,l=[],c=!1,u=-1;function p(){c&&o&&(c=!1,o.length?l=o.concat(l):u=-1,l.length&&h())}function h(){if(!c){var e=a(p);c=!0;for(var t=l.length;t;){for(o=l,l=[];++u<t;)o&&o[u].run();u=-1,t=l.length}o=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function f(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new d(e,t)),1!==l.length||c||a(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=f,r.addListener=f,r.once=f,r.off=f,r.removeListener=f,r.removeAllListeners=f,r.emit=f,r.prependListener=f,r.prependOnceListener=f,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},8555:e=>{"use strict";e.exports={stdout:!1,stderr:!1}},3164:e=>{"use strict";let t=null;function n(e){if(null!==t&&(t.property,1)){const e=t;return t=n.prototype=null,e}return t=n.prototype=null==e?Object.create(null):e,new n}n(),e.exports=function(e){return n(e)}},737:e=>{(e.exports=function e(t,n){var r;if(null!=t)return n=(n||"").replace(/[^&"<>\']/g,""),r="([&\"<>'])".replace(new RegExp("["+n+"]","g"),""),t.replace(new RegExp(r,"g"),(function(t,n){return e.map[n]}))}).map={">":">","<":"<","'":"'",'"':""","&":"&"}},4704:(e,t,n)=>{"use strict";var r=n(4155);Object.defineProperty(t,"__esModule",{value:!0}),t.codeFrameColumns=u,t.default=function(e,t,n,i={}){if(!l){l=!0;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";r.emitWarning?r.emitWarning(e,"DeprecationWarning"):(new Error(e).name="DeprecationWarning",console.warn(new Error(e)))}return u(e,{start:{column:n=Math.max(n,0),line:t}},i)};var i=n(8530),s=function(e,t){if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=a(true);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var o=i?Object.getOwnPropertyDescriptor(e,s):null;o&&(o.get||o.set)?Object.defineProperty(r,s,o):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}(n(2589));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}let o,l=!1;const c=/\r\n|[\n\r\u2028\u2029]/;function u(e,t,n={}){const r=(n.highlightCode||n.forceColor)&&(0,i.shouldHighlight)(n),a=n.forceColor?(null!=o||(o=new s.default.constructor({enabled:!0,level:1})),o):s.default,l=function(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}(a),u=(e,t)=>r?e(t):t,p=e.split(c),{start:h,end:d,markerLines:f}=function(e,t,n){const r=Object.assign({column:0,line:-1},e.start),i=Object.assign({},r,e.end),{linesAbove:s=2,linesBelow:a=3}=n||{},o=r.line,l=r.column,c=i.line,u=i.column;let p=Math.max(o-(s+1),0),h=Math.min(t.length,c+a);-1===o&&(p=0),-1===c&&(h=t.length);const d=c-o,f={};if(d)for(let e=0;e<=d;e++){const n=e+o;if(l)if(0===e){const e=t[n-1].length;f[n]=[l,e-l+1]}else if(e===d)f[n]=[0,u];else{const r=t[n-e].length;f[n]=[0,r]}else f[n]=!0}else f[o]=l===u?!l||[l,0]:[l,u-l];return{start:p,end:h,markerLines:f}}(t,p,n),y=t.start&&"number"==typeof t.start.column,m=String(d).length;let T=(r?(0,i.default)(e,n):e).split(c,d).slice(h,d).map(((e,t)=>{const r=h+1+t,i=` ${` ${r}`.slice(-m)} |`,s=f[r],a=!f[r+1];if(s){let t="";if(Array.isArray(s)){const r=e.slice(0,Math.max(s[0]-1,0)).replace(/[^\t]/g," "),o=s[1]||1;t=["\n ",u(l.gutter,i.replace(/\d/g," "))," ",r,u(l.marker,"^").repeat(o)].join(""),a&&n.message&&(t+=" "+u(l.message,n.message))}return[u(l.marker,">"),u(l.gutter,i),e.length>0?` ${e}`:"",t].join("")}return` ${u(l.gutter,i)}${e.length>0?` ${e}`:""}`})).join("\n");return n.message&&!y&&(T=`${" ".repeat(m+1)}${n.message}\n${T}`),r?a.reset(T):T}},8726:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=class{constructor(e){this._map=null,this._buf="",this._str="",this._appendCount=0,this._last=0,this._queue=[],this._queueCursor=0,this._canMarkIdName=!0,this._position={line:1,column:0},this._sourcePosition={identifierName:void 0,identifierNamePos:void 0,line:void 0,column:void 0,filename:void 0},this._map=e,this._allocQueue()}_allocQueue(){const e=this._queue;for(let t=0;t<16;t++)e.push({char:0,repeat:1,line:void 0,column:void 0,identifierName:void 0,identifierNamePos:void 0,filename:""})}_pushQueue(e,t,n,r,i){const s=this._queueCursor;s===this._queue.length&&this._allocQueue();const a=this._queue[s];a.char=e,a.repeat=t,a.line=n,a.column=r,a.filename=i,this._queueCursor++}_popQueue(){if(0===this._queueCursor)throw new Error("Cannot pop from empty queue");return this._queue[--this._queueCursor]}get(){this._flush();const e=this._map,t={code:(this._buf+this._str).trimRight(),decodedMap:null==e?void 0:e.getDecoded(),get __mergedMap(){return this.map},get map(){const n=e?e.get():null;return t.map=n,n},set map(e){Object.defineProperty(t,"map",{value:e,writable:!0})},get rawMappings(){const n=null==e?void 0:e.getRawMappings();return t.rawMappings=n,n},set rawMappings(e){Object.defineProperty(t,"rawMappings",{value:e,writable:!0})}};return t}append(e,t){this._flush(),this._append(e,this._sourcePosition,t)}appendChar(e){this._flush(),this._appendChar(e,1,this._sourcePosition)}queue(e){if(10===e)for(;0!==this._queueCursor;){const e=this._queue[this._queueCursor-1].char;if(32!==e&&9!==e)break;this._queueCursor--}const t=this._sourcePosition;this._pushQueue(e,1,t.line,t.column,t.filename)}queueIndentation(e,t){this._pushQueue(e,t,void 0,void 0,void 0)}_flush(){const e=this._queueCursor,t=this._queue;for(let n=0;n<e;n++){const e=t[n];this._appendChar(e.char,e.repeat,e)}this._queueCursor=0}_appendChar(e,t,n){this._last=e,this._str+=t>1?String.fromCharCode(e).repeat(t):String.fromCharCode(e),10!==e?(this._mark(n.line,n.column,n.identifierName,n.identifierNamePos,n.filename),this._position.column+=t):(this._position.line++,this._position.column=0),this._canMarkIdName&&(n.identifierName=void 0,n.identifierNamePos=void 0)}_append(e,t,n){const r=e.length,i=this._position;if(this._last=e.charCodeAt(r-1),++this._appendCount>4096?(this._str,this._buf+=this._str,this._str=e,this._appendCount=0):this._str+=e,!n&&!this._map)return void(i.column+=r);const{column:s,identifierName:a,identifierNamePos:o,filename:l}=t;let c=t.line;null==a&&null==o||!this._canMarkIdName||(t.identifierName=void 0,t.identifierNamePos=void 0);let u=e.indexOf("\n"),p=0;for(0!==u&&this._mark(c,s,a,o,l);-1!==u;)i.line++,i.column=0,p=u+1,p<r&&void 0!==c&&this._mark(++c,0,null,null,l),u=e.indexOf("\n",p);i.column+=r-p}_mark(e,t,n,r,i){var s;null==(s=this._map)||s.mark(this._position,e,t,n,r,i)}removeTrailingNewline(){const e=this._queueCursor;0!==e&&10===this._queue[e-1].char&&this._queueCursor--}removeLastSemicolon(){const e=this._queueCursor;0!==e&&59===this._queue[e-1].char&&this._queueCursor--}getLastChar(){const e=this._queueCursor;return 0!==e?this._queue[e-1].char:this._last}getNewlineCount(){const e=this._queueCursor;let t=0;if(0===e)return 10===this._last?1:0;for(let n=e-1;n>=0&&10===this._queue[n].char;n--)t++;return t===e&&10===this._last?t+1:t}endsWithCharAndNewline(){const e=this._queue,t=this._queueCursor;if(0!==t){if(10!==e[t-1].char)return;return t>1?e[t-2].char:this._last}}hasContent(){return 0!==this._queueCursor||!!this._last}exactSource(e,t){if(!this._map)return void t();this.source("start",e);const n=e.identifierName,r=this._sourcePosition;n&&(this._canMarkIdName=!1,r.identifierName=n),t(),n&&(this._canMarkIdName=!0,r.identifierName=void 0,r.identifierNamePos=void 0),this.source("end",e)}source(e,t){this._map&&this._normalizePosition(e,t,0)}sourceWithOffset(e,t,n){this._map&&this._normalizePosition(e,t,n)}withSource(e,t,n){this._map&&this.source(e,t),n()}_normalizePosition(e,t,n){const r=t[e],i=this._sourcePosition;r&&(i.line=r.line,i.column=Math.max(r.column+n,0),i.filename=t.filename)}getCurrentColumn(){const e=this._queue,t=this._queueCursor;let n=-1,r=0;for(let i=0;i<t;i++){const t=e[i];10===t.char&&(n=r),r+=t.repeat}return-1===n?this._position.column+r:r-1-n}getCurrentLine(){let e=0;const t=this._queue;for(let n=0;n<this._queueCursor;n++)10===t[n].char&&e++;return this._position.line+e}}},9230:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlockStatement=function(e){var t;this.tokenChar(123);const n=null==(t=e.directives)?void 0:t.length;if(n){var r;const t=e.body.length?2:1;this.printSequence(e.directives,e,{indent:!0,trailingCommentsLineOffset:t}),null!=(r=e.directives[n-1].trailingComments)&&r.length||this.newline(t)}this.printSequence(e.body,e,{indent:!0}),this.rightBrace(e)},t.Directive=function(e){this.print(e.value,e),this.semicolon()},t.DirectiveLiteral=function(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&void 0!==t)return void this.token(t);const{value:i}=e;if(r.test(i)){if(n.test(i))throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.");this.token(`'${i}'`)}else this.token(`"${i}"`)},t.File=function(e){e.program&&this.print(e.program.interpreter,e),this.print(e.program,e)},t.InterpreterDirective=function(e){this.token(`#!${e.value}`),this.newline(1,!0)},t.Placeholder=function(e){this.token("%%"),this.print(e.name),this.token("%%"),"Statement"===e.expectedNode&&this.semicolon()},t.Program=function(e){var t;this.noIndentInnerCommentsHere(),this.printInnerComments();const n=null==(t=e.directives)?void 0:t.length;if(n){var r;const t=e.body.length?2:1;this.printSequence(e.directives,e,{trailingCommentsLineOffset:t}),null!=(r=e.directives[n-1].trailingComments)&&r.length||this.newline(t)}this.printSequence(e.body,e)};const n=/(?:^|[^\\])(?:\\\\)*'/,r=/(?:^|[^\\])(?:\\\\)*"/},695:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClassAccessorProperty=function(e){var t;this.printJoin(e.decorators,e);const n=null==(t=e.key.loc)||null==(t=t.end)?void 0:t.line;n&&this.catchUp(n),this.tsPrintClassMemberModifiers(e),this.word("accessor",!0),this.space(),e.computed?(this.tokenChar(91),this.print(e.key,e),this.tokenChar(93)):(this._variance(e),this.print(e.key,e)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation,e),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value,e)),this.semicolon()},t.ClassBody=function(e){this.tokenChar(123),0===e.body.length?this.tokenChar(125):(this.newline(),this.printSequence(e.body,e,{indent:!0}),this.endsWith(10)||this.newline(),this.rightBrace(e))},t.ClassExpression=t.ClassDeclaration=function(e,t){(i(t)||s(t))&&this._shouldPrintDecoratorsBeforeExport(t)||this.printJoin(e.decorators,e),e.declare&&(this.word("declare"),this.space()),e.abstract&&(this.word("abstract"),this.space()),this.word("class"),e.id&&(this.space(),this.print(e.id,e)),this.print(e.typeParameters,e),e.superClass&&(this.space(),this.word("extends"),this.space(),this.print(e.superClass,e),this.print(e.superTypeParameters,e)),e.implements&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements,e)),this.space(),this.print(e.body,e)},t.ClassMethod=function(e){this._classMethodHead(e),this.space(),this.print(e.body,e)},t.ClassPrivateMethod=function(e){this._classMethodHead(e),this.space(),this.print(e.body,e)},t.ClassPrivateProperty=function(e){this.printJoin(e.decorators,e),e.static&&(this.word("static"),this.space()),this.print(e.key,e),this.print(e.typeAnnotation,e),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value,e)),this.semicolon()},t.ClassProperty=function(e){var t;this.printJoin(e.decorators,e);const n=null==(t=e.key.loc)||null==(t=t.end)?void 0:t.line;n&&this.catchUp(n),this.tsPrintClassMemberModifiers(e),e.computed?(this.tokenChar(91),this.print(e.key,e),this.tokenChar(93)):(this._variance(e),this.print(e.key,e)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation,e),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value,e)),this.semicolon()},t.StaticBlock=function(e){this.word("static"),this.space(),this.tokenChar(123),0===e.body.length?this.tokenChar(125):(this.newline(),this.printSequence(e.body,e,{indent:!0}),this.rightBrace(e))},t._classMethodHead=function(e){var t;this.printJoin(e.decorators,e);const n=null==(t=e.key.loc)||null==(t=t.end)?void 0:t.line;n&&this.catchUp(n),this.tsPrintClassMemberModifiers(e),this._methodHead(e)};var r=n(6067);const{isExportDefaultDeclaration:i,isExportNamedDeclaration:s}=r},7240:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogicalExpression=t.BinaryExpression=t.AssignmentExpression=function(e,t){const n=this.inForStatementInitCounter&&"in"===e.operator&&!i.needsParens(e,t);n&&this.tokenChar(40),this.print(e.left,e),this.space(),"in"===e.operator||"instanceof"===e.operator?this.word(e.operator):this.token(e.operator),this.space(),this.print(e.right,e),n&&this.tokenChar(41)},t.AssignmentPattern=function(e){this.print(e.left,e),e.left.optional&&this.tokenChar(63),this.print(e.left.typeAnnotation,e),this.space(),this.tokenChar(61),this.space(),this.print(e.right,e)},t.AwaitExpression=function(e){this.word("await"),e.argument&&(this.space(),this.printTerminatorless(e.argument,e,!1))},t.BindExpression=function(e){this.print(e.object,e),this.token("::"),this.print(e.callee,e)},t.CallExpression=function(e){this.print(e.callee,e),this.print(e.typeArguments,e),this.print(e.typeParameters,e),this.tokenChar(40),this.printList(e.arguments,e),this.rightParens(e)},t.ConditionalExpression=function(e){this.print(e.test,e),this.space(),this.tokenChar(63),this.space(),this.print(e.consequent,e),this.space(),this.tokenChar(58),this.space(),this.print(e.alternate,e)},t.Decorator=function(e){this.tokenChar(64);const{expression:t}=e;!function(e){return"ParenthesizedExpression"!==e.type&&!c("CallExpression"===e.type?e.callee:e)}(t)?this.print(t,e):(this.tokenChar(40),this.print(t,e),this.tokenChar(41)),this.newline()},t.DoExpression=function(e){e.async&&(this.word("async",!0),this.space()),this.word("do"),this.space(),this.print(e.body,e)},t.EmptyStatement=function(){this.semicolon(!0)},t.ExpressionStatement=function(e){this.print(e.expression,e),this.semicolon()},t.Import=function(){this.word("import")},t.MemberExpression=function(e){if(this.print(e.object,e),!e.computed&&o(e.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let t=e.computed;a(e.property)&&"number"==typeof e.property.value&&(t=!0),t?(this.tokenChar(91),this.print(e.property,e),this.tokenChar(93)):(this.tokenChar(46),this.print(e.property,e))},t.MetaProperty=function(e){this.print(e.meta,e),this.tokenChar(46),this.print(e.property,e)},t.ModuleExpression=function(e){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();const{body:t}=e;(t.body.length||t.directives.length)&&this.newline(),this.print(t,e),this.dedent(),this.rightBrace(e)},t.NewExpression=function(e,t){this.word("new"),this.space(),this.print(e.callee,e),(!this.format.minified||0!==e.arguments.length||e.optional||s(t,{callee:e})||o(t)||l(t))&&(this.print(e.typeArguments,e),this.print(e.typeParameters,e),e.optional&&this.token("?."),this.tokenChar(40),this.printList(e.arguments,e),this.rightParens(e))},t.OptionalCallExpression=function(e){this.print(e.callee,e),this.print(e.typeParameters,e),e.optional&&this.token("?."),this.print(e.typeArguments,e),this.tokenChar(40),this.printList(e.arguments,e),this.rightParens(e)},t.OptionalMemberExpression=function(e){let{computed:t}=e;const{optional:n,property:r}=e;if(this.print(e.object,e),!t&&o(r))throw new TypeError("Got a MemberExpression for MemberExpression property");a(r)&&"number"==typeof r.value&&(t=!0),n&&this.token("?."),t?(this.tokenChar(91),this.print(r,e),this.tokenChar(93)):(n||this.tokenChar(46),this.print(r,e))},t.ParenthesizedExpression=function(e){this.tokenChar(40),this.print(e.expression,e),this.rightParens(e)},t.PrivateName=function(e){this.tokenChar(35),this.print(e.id,e)},t.SequenceExpression=function(e){this.printList(e.expressions,e)},t.Super=function(){this.word("super")},t.ThisExpression=function(){this.word("this")},t.UnaryExpression=function(e){const{operator:t}=e;"void"===t||"delete"===t||"typeof"===t||"throw"===t?(this.word(t),this.space()):this.token(t),this.print(e.argument,e)},t.UpdateExpression=function(e){e.prefix?(this.token(e.operator),this.print(e.argument,e)):(this.printTerminatorless(e.argument,e,!0),this.token(e.operator))},t.V8IntrinsicIdentifier=function(e){this.tokenChar(37),this.word(e.name)},t.YieldExpression=function(e){this.word("yield",!0),e.delegate?(this.tokenChar(42),e.argument&&(this.space(),this.print(e.argument,e))):e.argument&&(this.space(),this.printTerminatorless(e.argument,e,!1))},t._shouldPrintDecoratorsBeforeExport=function(e){return"boolean"==typeof this.format.decoratorsBeforeExport?this.format.decoratorsBeforeExport:"number"==typeof e.start&&e.start===e.declaration.start};var r=n(6067),i=n(7533);const{isCallExpression:s,isLiteral:a,isMemberExpression:o,isNewExpression:l}=r;function c(e){switch(e.type){case"Identifier":return!0;case"MemberExpression":return!e.computed&&"Identifier"===e.property.type&&c(e.object);default:return!1}}},4735:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnyTypeAnnotation=function(){this.word("any")},t.ArrayTypeAnnotation=function(e){this.print(e.elementType,e,!0),this.tokenChar(91),this.tokenChar(93)},t.BooleanLiteralTypeAnnotation=function(e){this.word(e.value?"true":"false")},t.BooleanTypeAnnotation=function(){this.word("boolean")},t.DeclareClass=function(e,t){a(t)||(this.word("declare"),this.space()),this.word("class"),this.space(),this._interfaceish(e)},t.DeclareExportAllDeclaration=function(e){this.word("declare"),this.space(),i.ExportAllDeclaration.call(this,e)},t.DeclareExportDeclaration=function(e){this.word("declare"),this.space(),this.word("export"),this.space(),e.default&&(this.word("default"),this.space()),p.call(this,e)},t.DeclareFunction=function(e,t){a(t)||(this.word("declare"),this.space()),this.word("function"),this.space(),this.print(e.id,e),this.print(e.id.typeAnnotation.typeAnnotation,e),e.predicate&&(this.space(),this.print(e.predicate,e)),this.semicolon()},t.DeclareInterface=function(e){this.word("declare"),this.space(),this.InterfaceDeclaration(e)},t.DeclareModule=function(e){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(e.id,e),this.space(),this.print(e.body,e)},t.DeclareModuleExports=function(e){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(e.typeAnnotation,e)},t.DeclareOpaqueType=function(e,t){a(t)||(this.word("declare"),this.space()),this.OpaqueType(e)},t.DeclareTypeAlias=function(e){this.word("declare"),this.space(),this.TypeAlias(e)},t.DeclareVariable=function(e,t){a(t)||(this.word("declare"),this.space()),this.word("var"),this.space(),this.print(e.id,e),this.print(e.id.typeAnnotation,e),this.semicolon()},t.DeclaredPredicate=function(e){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(e.value,e),this.tokenChar(41)},t.EmptyTypeAnnotation=function(){this.word("empty")},t.EnumBooleanBody=function(e){const{explicitType:t}=e;l(this,"boolean",t),c(this,e)},t.EnumBooleanMember=function(e){u(this,e)},t.EnumDeclaration=function(e){const{id:t,body:n}=e;this.word("enum"),this.space(),this.print(t,e),this.print(n,e)},t.EnumDefaultedMember=function(e){const{id:t}=e;this.print(t,e),this.tokenChar(44)},t.EnumNumberBody=function(e){const{explicitType:t}=e;l(this,"number",t),c(this,e)},t.EnumNumberMember=function(e){u(this,e)},t.EnumStringBody=function(e){const{explicitType:t}=e;l(this,"string",t),c(this,e)},t.EnumStringMember=function(e){u(this,e)},t.EnumSymbolBody=function(e){l(this,"symbol",!0),c(this,e)},t.ExistsTypeAnnotation=function(){this.tokenChar(42)},t.FunctionTypeAnnotation=function(e,t){this.print(e.typeParameters,e),this.tokenChar(40),e.this&&(this.word("this"),this.tokenChar(58),this.space(),this.print(e.this.typeAnnotation,e),(e.params.length||e.rest)&&(this.tokenChar(44),this.space())),this.printList(e.params,e),e.rest&&(e.params.length&&(this.tokenChar(44),this.space()),this.token("..."),this.print(e.rest,e)),this.tokenChar(41);const n=null==t?void 0:t.type;null!=n&&("ObjectTypeCallProperty"===n||"ObjectTypeInternalSlot"===n||"DeclareFunction"===n||"ObjectTypeProperty"===n&&t.method)?this.tokenChar(58):(this.space(),this.token("=>")),this.space(),this.print(e.returnType,e)},t.FunctionTypeParam=function(e){this.print(e.name,e),e.optional&&this.tokenChar(63),e.name&&(this.tokenChar(58),this.space()),this.print(e.typeAnnotation,e)},t.IndexedAccessType=function(e){this.print(e.objectType,e,!0),this.tokenChar(91),this.print(e.indexType,e),this.tokenChar(93)},t.InferredPredicate=function(){this.tokenChar(37),this.word("checks")},t.InterfaceDeclaration=function(e){this.word("interface"),this.space(),this._interfaceish(e)},t.GenericTypeAnnotation=t.ClassImplements=t.InterfaceExtends=function(e){this.print(e.id,e),this.print(e.typeParameters,e,!0)},t.InterfaceTypeAnnotation=function(e){var t;this.word("interface"),null!=(t=e.extends)&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends,e)),this.space(),this.print(e.body,e)},t.IntersectionTypeAnnotation=function(e){this.printJoin(e.types,e,{separator:h})},t.MixedTypeAnnotation=function(){this.word("mixed")},t.NullLiteralTypeAnnotation=function(){this.word("null")},t.NullableTypeAnnotation=function(e){this.tokenChar(63),this.print(e.typeAnnotation,e)},Object.defineProperty(t,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return s.NumericLiteral}}),t.NumberTypeAnnotation=function(){this.word("number")},t.ObjectTypeAnnotation=function(e){e.exact?this.token("{|"):this.tokenChar(123);const t=[...e.properties,...e.callProperties||[],...e.indexers||[],...e.internalSlots||[]];t.length&&(this.newline(),this.space(),this.printJoin(t,e,{addNewlines(e){if(e&&!t[0])return 1},indent:!0,statement:!0,iterator:()=>{(1!==t.length||e.inexact)&&(this.tokenChar(44),this.space())}}),this.space()),e.inexact&&(this.indent(),this.token("..."),t.length&&this.newline(),this.dedent()),e.exact?this.token("|}"):this.tokenChar(125)},t.ObjectTypeCallProperty=function(e){e.static&&(this.word("static"),this.space()),this.print(e.value,e)},t.ObjectTypeIndexer=function(e){e.static&&(this.word("static"),this.space()),this._variance(e),this.tokenChar(91),e.id&&(this.print(e.id,e),this.tokenChar(58),this.space()),this.print(e.key,e),this.tokenChar(93),this.tokenChar(58),this.space(),this.print(e.value,e)},t.ObjectTypeInternalSlot=function(e){e.static&&(this.word("static"),this.space()),this.tokenChar(91),this.tokenChar(91),this.print(e.id,e),this.tokenChar(93),this.tokenChar(93),e.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value,e)},t.ObjectTypeProperty=function(e){e.proto&&(this.word("proto"),this.space()),e.static&&(this.word("static"),this.space()),"get"!==e.kind&&"set"!==e.kind||(this.word(e.kind),this.space()),this._variance(e),this.print(e.key,e),e.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value,e)},t.ObjectTypeSpreadProperty=function(e){this.token("..."),this.print(e.argument,e)},t.OpaqueType=function(e){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(e.id,e),this.print(e.typeParameters,e),e.supertype&&(this.tokenChar(58),this.space(),this.print(e.supertype,e)),e.impltype&&(this.space(),this.tokenChar(61),this.space(),this.print(e.impltype,e)),this.semicolon()},t.OptionalIndexedAccessType=function(e){this.print(e.objectType,e),e.optional&&this.token("?."),this.tokenChar(91),this.print(e.indexType,e),this.tokenChar(93)},t.QualifiedTypeIdentifier=function(e){this.print(e.qualification,e),this.tokenChar(46),this.print(e.id,e)},Object.defineProperty(t,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return s.StringLiteral}}),t.StringTypeAnnotation=function(){this.word("string")},t.SymbolTypeAnnotation=function(){this.word("symbol")},t.ThisTypeAnnotation=function(){this.word("this")},t.TupleTypeAnnotation=function(e){this.tokenChar(91),this.printList(e.types,e),this.tokenChar(93)},t.TypeAlias=function(e){this.word("type"),this.space(),this.print(e.id,e),this.print(e.typeParameters,e),this.space(),this.tokenChar(61),this.space(),this.print(e.right,e),this.semicolon()},t.TypeAnnotation=function(e){this.tokenChar(58),this.space(),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation,e)},t.TypeCastExpression=function(e){this.tokenChar(40),this.print(e.expression,e),this.print(e.typeAnnotation,e),this.tokenChar(41)},t.TypeParameter=function(e){this._variance(e),this.word(e.name),e.bound&&this.print(e.bound,e),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default,e))},t.TypeParameterDeclaration=t.TypeParameterInstantiation=function(e){this.tokenChar(60),this.printList(e.params,e,{}),this.tokenChar(62)},t.TypeofTypeAnnotation=function(e){this.word("typeof"),this.space(),this.print(e.argument,e)},t.UnionTypeAnnotation=function(e){this.printJoin(e.types,e,{separator:d})},t.Variance=function(e){"plus"===e.kind?this.tokenChar(43):this.tokenChar(45)},t.VoidTypeAnnotation=function(){this.word("void")},t._interfaceish=function(e){var t,n,r;(this.print(e.id,e),this.print(e.typeParameters,e),null!=(t=e.extends)&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends,e)),"DeclareClass"===e.type)&&(null!=(n=e.mixins)&&n.length&&(this.space(),this.word("mixins"),this.space(),this.printList(e.mixins,e)),null!=(r=e.implements)&&r.length&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements,e)));this.space(),this.print(e.body,e)},t._variance=function(e){var t;const n=null==(t=e.variance)?void 0:t.kind;null!=n&&("plus"===n?this.tokenChar(43):"minus"===n&&this.tokenChar(45))};var r=n(6067),i=n(4272),s=n(7585);const{isDeclareExportDeclaration:a,isStatement:o}=r;function l(e,t,n){n&&(e.space(),e.word("of"),e.space(),e.word(t)),e.space()}function c(e,t){const{members:n}=t;e.token("{"),e.indent(),e.newline();for(const r of n)e.print(r,t),e.newline();t.hasUnknownMembers&&(e.token("..."),e.newline()),e.dedent(),e.token("}")}function u(e,t){const{id:n,init:r}=t;e.print(n,t),e.space(),e.token("="),e.space(),e.print(r,t),e.token(",")}function p(e){if(e.declaration){const t=e.declaration;this.print(t,e),o(t)||this.semicolon()}else this.tokenChar(123),e.specifiers.length&&(this.space(),this.printList(e.specifiers,e),this.space()),this.tokenChar(125),e.source&&(this.space(),this.word("from"),this.space(),this.print(e.source,e)),this.semicolon()}function h(){this.space(),this.tokenChar(38),this.space()}function d(){this.space(),this.tokenChar(124),this.space()}},4236:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9716);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}));var i=n(7240);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var s=n(5448);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var a=n(695);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var o=n(7011);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var l=n(4272);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var c=n(7585);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var u=n(4735);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var p=n(9230);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===p[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}}))}));var h=n(7878);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))}));var d=n(5447);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}))},7878:(e,t)=>{"use strict";function n(){this.space()}Object.defineProperty(t,"__esModule",{value:!0}),t.JSXAttribute=function(e){this.print(e.name,e),e.value&&(this.tokenChar(61),this.print(e.value,e))},t.JSXClosingElement=function(e){this.token("</"),this.print(e.name,e),this.tokenChar(62)},t.JSXClosingFragment=function(){this.token("</"),this.tokenChar(62)},t.JSXElement=function(e){const t=e.openingElement;if(this.print(t,e),!t.selfClosing){this.indent();for(const t of e.children)this.print(t,e);this.dedent(),this.print(e.closingElement,e)}},t.JSXEmptyExpression=function(){this.printInnerComments()},t.JSXExpressionContainer=function(e){this.tokenChar(123),this.print(e.expression,e),this.tokenChar(125)},t.JSXFragment=function(e){this.print(e.openingFragment,e),this.indent();for(const t of e.children)this.print(t,e);this.dedent(),this.print(e.closingFragment,e)},t.JSXIdentifier=function(e){this.word(e.name)},t.JSXMemberExpression=function(e){this.print(e.object,e),this.tokenChar(46),this.print(e.property,e)},t.JSXNamespacedName=function(e){this.print(e.namespace,e),this.tokenChar(58),this.print(e.name,e)},t.JSXOpeningElement=function(e){this.tokenChar(60),this.print(e.name,e),this.print(e.typeParameters,e),e.attributes.length>0&&(this.space(),this.printJoin(e.attributes,e,{separator:n})),e.selfClosing?(this.space(),this.token("/>")):this.tokenChar(62)},t.JSXOpeningFragment=function(){this.tokenChar(60),this.tokenChar(62)},t.JSXSpreadAttribute=function(e){this.tokenChar(123),this.token("..."),this.print(e.argument,e),this.tokenChar(125)},t.JSXSpreadChild=function(e){this.tokenChar(123),this.token("..."),this.print(e.expression,e),this.tokenChar(125)},t.JSXText=function(e){const t=this.getPossibleRaw(e);void 0!==t?this.token(t,!0):this.token(e.value,!0)}},7011:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowFunctionExpression=function(e,t){let n;e.async&&(this.word("async",!0),this.space()),this.format.retainLines||1!==e.params.length||!i(n=e.params[0])||function(e,t){var n,r;return!!(e.typeParameters||e.returnType||e.predicate||t.typeAnnotation||t.optional||null!=(n=t.leadingComments)&&n.length||null!=(r=t.trailingComments)&&r.length)}(e,n)?this._params(e,void 0,t):this.print(n,e,!0),this._predicate(e,!0),this.space(),this.printInnerComments(),this.token("=>"),this.space(),this.print(e.body,e)},t.FunctionDeclaration=t.FunctionExpression=function(e,t){this._functionHead(e,t),this.space(),this.print(e.body,e)},t._functionHead=function(e,t){e.async&&(this.word("async"),this._endsWithInnerRaw=!1,this.space()),this.word("function"),e.generator&&(this._endsWithInnerRaw=!1,this.tokenChar(42)),this.space(),e.id&&this.print(e.id,e),this._params(e,e.id,t),"TSDeclareFunction"!==e.type&&this._predicate(e)},t._methodHead=function(e){const t=e.kind,n=e.key;"get"!==t&&"set"!==t||(this.word(t),this.space()),e.async&&(this.word("async",!0),this.space()),"method"!==t&&"init"!==t||e.generator&&this.tokenChar(42),e.computed?(this.tokenChar(91),this.print(n,e),this.tokenChar(93)):this.print(n,e),e.optional&&this.tokenChar(63),this._params(e,e.computed&&"StringLiteral"!==e.key.type?void 0:e.key,void 0)},t._param=function(e,t){this.printJoin(e.decorators,e),this.print(e,t),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation,e)},t._parameters=function(e,t){const n=e.length;for(let r=0;r<n;r++)this._param(e[r],t),r<e.length-1&&(this.tokenChar(44),this.space())},t._params=function(e,t,n){this.print(e.typeParameters,e);const r=s.call(this,t,n);r&&this.sourceIdentifierName(r.name,r.pos),this.tokenChar(40),this._parameters(e.params,e),this.tokenChar(41);const i="ArrowFunctionExpression"===e.type;this.print(e.returnType,e,i),this._noLineTerminator=i},t._predicate=function(e,t){e.predicate&&(e.returnType||this.tokenChar(58),this.space(),this.print(e.predicate,e,t))};var r=n(6067);const{isIdentifier:i}=r;function s(e,t){let n,r=e;if(!r&&t){const e=t.type;"VariableDeclarator"===e?r=t.id:"AssignmentExpression"===e||"AssignmentPattern"===e?r=t.left:"ObjectProperty"===e||"ClassProperty"===e?t.computed&&"StringLiteral"!==t.key.type||(r=t.key):"ClassPrivateProperty"!==e&&"ClassAccessorProperty"!==e||(r=t.key)}if(r){var i,s;if("Identifier"===r.type)n={pos:null==(i=r.loc)?void 0:i.start,name:(null==(s=r.loc)?void 0:s.identifierName)||r.name};else if("PrivateName"===r.type){var a;n={pos:null==(a=r.loc)?void 0:a.start,name:"#"+r.id.name}}else if("StringLiteral"===r.type){var o;n={pos:null==(o=r.loc)?void 0:o.start,name:r.value}}return n}}},4272:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExportAllDeclaration=function(e){var t,n;this.word("export"),this.space(),"type"===e.exportKind&&(this.word("type"),this.space()),this.tokenChar(42),this.space(),this.word("from"),this.space(),null!=(t=e.attributes)&&t.length||null!=(n=e.assertions)&&n.length?(this.print(e.source,e,!0),this.space(),this._printAttributes(e)):this.print(e.source,e),this.semicolon()},t.ExportDefaultDeclaration=function(e){p(this,e),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space();const t=e.declaration;this.print(t,e),c(t)||this.semicolon()},t.ExportDefaultSpecifier=function(e){this.print(e.exported,e)},t.ExportNamedDeclaration=function(e){if(p(this,e),this.word("export"),this.space(),e.declaration){const t=e.declaration;this.print(t,e),c(t)||this.semicolon()}else{"type"===e.exportKind&&(this.word("type"),this.space());const r=e.specifiers.slice(0);let i=!1;for(;;){const t=r[0];if(!s(t)&&!a(t))break;i=!0,this.print(r.shift(),e),r.length&&(this.tokenChar(44),this.space())}var t,n;(r.length||!r.length&&!i)&&(this.tokenChar(123),r.length&&(this.space(),this.printList(r,e),this.space()),this.tokenChar(125)),e.source&&(this.space(),this.word("from"),this.space(),null!=(t=e.attributes)&&t.length||null!=(n=e.assertions)&&n.length?(this.print(e.source,e,!0),this.space(),this._printAttributes(e)):this.print(e.source,e)),this.semicolon()}},t.ExportNamespaceSpecifier=function(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.exported,e)},t.ExportSpecifier=function(e){"type"===e.exportKind&&(this.word("type"),this.space()),this.print(e.local,e),e.exported&&e.local.name!==e.exported.name&&(this.space(),this.word("as"),this.space(),this.print(e.exported,e))},t.ImportAttribute=function(e){this.print(e.key),this.tokenChar(58),this.space(),this.print(e.value)},t.ImportDeclaration=function(e){var t,n;this.word("import"),this.space();const r="type"===e.importKind||"typeof"===e.importKind;r?(this.noIndentInnerCommentsHere(),this.word(e.importKind),this.space()):e.module&&(this.noIndentInnerCommentsHere(),this.word("module"),this.space());const i=e.specifiers.slice(0),s=!!i.length;for(;s;){const t=i[0];if(!o(t)&&!l(t))break;this.print(i.shift(),e),i.length&&(this.tokenChar(44),this.space())}i.length?(this.tokenChar(123),this.space(),this.printList(i,e),this.space(),this.tokenChar(125)):r&&!s&&(this.tokenChar(123),this.tokenChar(125)),(s||r)&&(this.space(),this.word("from"),this.space()),null!=(t=e.attributes)&&t.length||null!=(n=e.assertions)&&n.length?(this.print(e.source,e,!0),this.space(),this._printAttributes(e)):this.print(e.source,e),this.semicolon()},t.ImportDefaultSpecifier=function(e){this.print(e.local,e)},t.ImportNamespaceSpecifier=function(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.local,e)},t.ImportSpecifier=function(e){"type"!==e.importKind&&"typeof"!==e.importKind||(this.word(e.importKind),this.space()),this.print(e.imported,e),e.local&&e.local.name!==e.imported.name&&(this.space(),this.word("as"),this.space(),this.print(e.local,e))},t._printAttributes=function(e){const{importAttributesKeyword:t}=this.format,{attributes:n,assertions:r}=e;!n||t||u||(u=!0,console.warn('You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { type: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n'));const i="assert"===t||!t&&r;this.word(i?"assert":"with"),this.space(),i||"with"===t?(this.tokenChar(123),this.space(),this.printList(n||r,e),this.space(),this.tokenChar(125)):this.printList(n||r,e)};var r=n(6067);const{isClassDeclaration:i,isExportDefaultSpecifier:s,isExportNamespaceSpecifier:a,isImportDefaultSpecifier:o,isImportNamespaceSpecifier:l,isStatement:c}=r;let u=!1;function p(e,t){i(t.declaration)&&e._shouldPrintDecoratorsBeforeExport(t)&&e.printJoin(t.declaration.decorators,t)}},5448:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BreakStatement=function(e){this.word("break"),h(this,e.label,e,!0)},t.CatchClause=function(e){this.word("catch"),this.space(),e.param&&(this.tokenChar(40),this.print(e.param,e),this.print(e.param.typeAnnotation,e),this.tokenChar(41),this.space()),this.print(e.body,e)},t.ContinueStatement=function(e){this.word("continue"),h(this,e.label,e,!0)},t.DebuggerStatement=function(){this.word("debugger"),this.semicolon()},t.DoWhileStatement=function(e){this.word("do"),this.space(),this.print(e.body,e),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(e.test,e),this.tokenChar(41),this.semicolon()},t.ForOfStatement=t.ForInStatement=void 0,t.ForStatement=function(e){this.word("for"),this.space(),this.tokenChar(40),this.inForStatementInitCounter++,this.print(e.init,e),this.inForStatementInitCounter--,this.tokenChar(59),e.test&&(this.space(),this.print(e.test,e)),this.tokenChar(59),e.update&&(this.space(),this.print(e.update,e)),this.tokenChar(41),this.printBlock(e)},t.IfStatement=function(e){this.word("if"),this.space(),this.tokenChar(40),this.print(e.test,e),this.tokenChar(41),this.space();const t=e.alternate&&a(l(e.consequent));t&&(this.tokenChar(123),this.newline(),this.indent()),this.printAndIndentOnComments(e.consequent,e),t&&(this.dedent(),this.newline(),this.tokenChar(125)),e.alternate&&(this.endsWith(125)&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(e.alternate,e))},t.LabeledStatement=function(e){this.print(e.label,e),this.tokenChar(58),this.space(),this.print(e.body,e)},t.ReturnStatement=function(e){this.word("return"),h(this,e.argument,e,!1)},t.SwitchCase=function(e){e.test?(this.word("case"),this.space(),this.print(e.test,e),this.tokenChar(58)):(this.word("default"),this.tokenChar(58)),e.consequent.length&&(this.newline(),this.printSequence(e.consequent,e,{indent:!0}))},t.SwitchStatement=function(e){this.word("switch"),this.space(),this.tokenChar(40),this.print(e.discriminant,e),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(e.cases,e,{indent:!0,addNewlines(t,n){if(!t&&e.cases[e.cases.length-1]===n)return-1}}),this.rightBrace(e)},t.ThrowStatement=function(e){this.word("throw"),h(this,e.argument,e,!1)},t.TryStatement=function(e){this.word("try"),this.space(),this.print(e.block,e),this.space(),e.handlers?this.print(e.handlers[0],e):this.print(e.handler,e),e.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(e.finalizer,e))},t.VariableDeclaration=function(e,t){e.declare&&(this.word("declare"),this.space());const{kind:n}=e;this.word(n,"using"===n||"await using"===n),this.space();let r=!1;if(!i(t))for(const t of e.declarations)t.init&&(r=!0);if(this.printList(e.declarations,e,{separator:r?function(){this.tokenChar(44),this.newline()}:void 0,indent:e.declarations.length>1}),i(t))if(s(t)){if(t.init===e)return}else if(t.left===e)return;this.semicolon()},t.VariableDeclarator=function(e){this.print(e.id,e),e.definite&&this.tokenChar(33),this.print(e.id.typeAnnotation,e),e.init&&(this.space(),this.tokenChar(61),this.space(),this.print(e.init,e))},t.WhileStatement=function(e){this.word("while"),this.space(),this.tokenChar(40),this.print(e.test,e),this.tokenChar(41),this.printBlock(e)},t.WithStatement=function(e){this.word("with"),this.space(),this.tokenChar(40),this.print(e.object,e),this.tokenChar(41),this.printBlock(e)};var r=n(6067);const{isFor:i,isForStatement:s,isIfStatement:a,isStatement:o}=r;function l(e){const{body:t}=e;return!1===o(t)?e:l(t)}function c(e){this.word("for"),this.space();const t="ForOfStatement"===e.type;t&&e.await&&(this.word("await"),this.space()),this.noIndentInnerCommentsHere(),this.tokenChar(40),this.print(e.left,e),this.space(),this.word(t?"of":"in"),this.space(),this.print(e.right,e),this.tokenChar(41),this.printBlock(e)}const u=c;t.ForInStatement=u;const p=c;function h(e,t,n,r){t&&(e.space(),e.printTerminatorless(t,n,r)),e.semicolon()}t.ForOfStatement=p},9716:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaggedTemplateExpression=function(e){this.print(e.tag,e),this.print(e.typeParameters,e),this.print(e.quasi,e)},t.TemplateElement=function(e,t){const n=t.quasis[0]===e,r=t.quasis[t.quasis.length-1]===e,i=(n?"`":"}")+e.value.raw+(r?"`":"${");this.token(i,!0)},t.TemplateLiteral=function(e){const t=e.quasis;for(let n=0;n<t.length;n++)this.print(t[n],e),n+1<t.length&&this.print(e.expressions[n],e)}},7585:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArgumentPlaceholder=function(){this.tokenChar(63)},t.ArrayPattern=t.ArrayExpression=function(e){const t=e.elements,n=t.length;this.tokenChar(91);for(let r=0;r<t.length;r++){const i=t[r];i?(r>0&&this.space(),this.print(i,e),r<n-1&&this.tokenChar(44)):this.tokenChar(44)}this.tokenChar(93)},t.BigIntLiteral=function(e){const t=this.getPossibleRaw(e);this.format.minified||void 0===t?this.word(e.value+"n"):this.word(t)},t.BooleanLiteral=function(e){this.word(e.value?"true":"false")},t.DecimalLiteral=function(e){const t=this.getPossibleRaw(e);this.format.minified||void 0===t?this.word(e.value+"m"):this.word(t)},t.Identifier=function(e){var t;this.sourceIdentifierName((null==(t=e.loc)?void 0:t.identifierName)||e.name),this.word(e.name)},t.NullLiteral=function(){this.word("null")},t.NumericLiteral=function(e){const t=this.getPossibleRaw(e),n=this.format.jsescOption,r=e.value+"";n.numbers?this.number(i(e.value,n)):null==t?this.number(r):this.format.minified?this.number(t.length<r.length?t:r):this.number(t)},t.ObjectPattern=t.ObjectExpression=function(e){const t=e.properties;this.tokenChar(123),t.length&&(this.space(),this.printList(t,e,{indent:!0,statement:!0}),this.space()),this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125)},t.ObjectMethod=function(e){this.printJoin(e.decorators,e),this._methodHead(e),this.space(),this.print(e.body,e)},t.ObjectProperty=function(e){if(this.printJoin(e.decorators,e),e.computed)this.tokenChar(91),this.print(e.key,e),this.tokenChar(93);else{if(s(e.value)&&a(e.key)&&e.key.name===e.value.left.name)return void this.print(e.value,e);if(this.print(e.key,e),e.shorthand&&a(e.key)&&a(e.value)&&e.key.name===e.value.name)return}this.tokenChar(58),this.space(),this.print(e.value,e)},t.PipelineBareFunction=function(e){this.print(e.callee,e)},t.PipelinePrimaryTopicReference=function(){this.tokenChar(35)},t.PipelineTopicExpression=function(e){this.print(e.expression,e)},t.RecordExpression=function(e){const t=e.properties;let n,r;if("bar"===this.format.recordAndTupleSyntaxType)n="{|",r="|}";else{if("hash"!==this.format.recordAndTupleSyntaxType&&null!=this.format.recordAndTupleSyntaxType)throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`);n="#{",r="}"}this.token(n),t.length&&(this.space(),this.printList(t,e,{indent:!0,statement:!0}),this.space()),this.token(r)},t.RegExpLiteral=function(e){this.word(`/${e.pattern}/${e.flags}`)},t.SpreadElement=t.RestElement=function(e){this.token("..."),this.print(e.argument,e)},t.StringLiteral=function(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&void 0!==t)return void this.token(t);const n=i(e.value,this.format.jsescOption);this.token(n)},t.TopicReference=function(){const{topicToken:e}=this.format;if(!o.has(e)){const t=JSON.stringify(e),n=Array.from(o,(e=>JSON.stringify(e)));throw new Error(`The "topicToken" generator option must be one of ${n.join(", ")} (${t} received instead).`)}this.token(e)},t.TupleExpression=function(e){const t=e.elements,n=t.length;let r,i;if("bar"===this.format.recordAndTupleSyntaxType)r="[|",i="|]";else{if("hash"!==this.format.recordAndTupleSyntaxType)throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);r="#[",i="]"}this.token(r);for(let r=0;r<t.length;r++){const i=t[r];i&&(r>0&&this.space(),this.print(i,e),r<n-1&&this.tokenChar(44))}this.token(i)};var r=n(6067),i=n(3312);const{isAssignmentPattern:s,isIdentifier:a}=r,o=new Set(["^^","@@","^","%","#"])},5447:(e,t)=>{"use strict";function n(e,t,n){if(e.token("{"),t.length){e.indent(),e.newline();for(const r of t)e.print(r,n),e.newline();e.dedent()}e.rightBrace(n)}function r(e,t,n){e.printJoin(t.types,t,{separator(){this.space(),this.token(n),this.space()}})}function i(e,t){!0!==t&&e.token(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.TSAnyKeyword=function(){this.word("any")},t.TSArrayType=function(e){this.print(e.elementType,e,!0),this.token("[]")},t.TSSatisfiesExpression=t.TSAsExpression=function(e){var t;const{type:n,expression:r,typeAnnotation:i}=e,s=!(null==(t=r.trailingComments)||!t.length);this.print(r,e,!0,void 0,s),this.space(),this.word("TSAsExpression"===n?"as":"satisfies"),this.space(),this.print(i,e)},t.TSBigIntKeyword=function(){this.word("bigint")},t.TSBooleanKeyword=function(){this.word("boolean")},t.TSCallSignatureDeclaration=function(e){this.tsPrintSignatureDeclarationBase(e),this.tokenChar(59)},t.TSConditionalType=function(e){this.print(e.checkType),this.space(),this.word("extends"),this.space(),this.print(e.extendsType),this.space(),this.tokenChar(63),this.space(),this.print(e.trueType),this.space(),this.tokenChar(58),this.space(),this.print(e.falseType)},t.TSConstructSignatureDeclaration=function(e){this.word("new"),this.space(),this.tsPrintSignatureDeclarationBase(e),this.tokenChar(59)},t.TSConstructorType=function(e){e.abstract&&(this.word("abstract"),this.space()),this.word("new"),this.space(),this.tsPrintFunctionOrConstructorType(e)},t.TSDeclareFunction=function(e,t){e.declare&&(this.word("declare"),this.space()),this._functionHead(e,t),this.tokenChar(59)},t.TSDeclareMethod=function(e){this._classMethodHead(e),this.tokenChar(59)},t.TSEnumDeclaration=function(e){const{declare:t,const:r,id:i,members:s}=e;t&&(this.word("declare"),this.space()),r&&(this.word("const"),this.space()),this.word("enum"),this.space(),this.print(i,e),this.space(),n(this,s,e)},t.TSEnumMember=function(e){const{id:t,initializer:n}=e;this.print(t,e),n&&(this.space(),this.tokenChar(61),this.space(),this.print(n,e)),this.tokenChar(44)},t.TSExportAssignment=function(e){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(e.expression,e),this.tokenChar(59)},t.TSExpressionWithTypeArguments=function(e){this.print(e.expression,e),this.print(e.typeParameters,e)},t.TSExternalModuleReference=function(e){this.token("require("),this.print(e.expression,e),this.tokenChar(41)},t.TSFunctionType=function(e){this.tsPrintFunctionOrConstructorType(e)},t.TSImportEqualsDeclaration=function(e){const{isExport:t,id:n,moduleReference:r}=e;t&&(this.word("export"),this.space()),this.word("import"),this.space(),this.print(n,e),this.space(),this.tokenChar(61),this.space(),this.print(r,e),this.tokenChar(59)},t.TSImportType=function(e){const{argument:t,qualifier:n,typeParameters:r}=e;this.word("import"),this.tokenChar(40),this.print(t,e),this.tokenChar(41),n&&(this.tokenChar(46),this.print(n,e)),r&&this.print(r,e)},t.TSIndexSignature=function(e){const{readonly:t,static:n}=e;n&&(this.word("static"),this.space()),t&&(this.word("readonly"),this.space()),this.tokenChar(91),this._parameters(e.parameters,e),this.tokenChar(93),this.print(e.typeAnnotation,e),this.tokenChar(59)},t.TSIndexedAccessType=function(e){this.print(e.objectType,e,!0),this.tokenChar(91),this.print(e.indexType,e),this.tokenChar(93)},t.TSInferType=function(e){this.token("infer"),this.space(),this.print(e.typeParameter)},t.TSInstantiationExpression=function(e){this.print(e.expression,e),this.print(e.typeParameters,e)},t.TSInterfaceBody=function(e){this.tsPrintTypeLiteralOrInterfaceBody(e.body,e)},t.TSInterfaceDeclaration=function(e){const{declare:t,id:n,typeParameters:r,extends:i,body:s}=e;t&&(this.word("declare"),this.space()),this.word("interface"),this.space(),this.print(n,e),this.print(r,e),null!=i&&i.length&&(this.space(),this.word("extends"),this.space(),this.printList(i,e)),this.space(),this.print(s,e)},t.TSIntersectionType=function(e){r(this,e,"&")},t.TSIntrinsicKeyword=function(){this.word("intrinsic")},t.TSLiteralType=function(e){this.print(e.literal,e)},t.TSMappedType=function(e){const{nameType:t,optional:n,readonly:r,typeParameter:s}=e;this.tokenChar(123),this.space(),r&&(i(this,r),this.word("readonly"),this.space()),this.tokenChar(91),this.word(s.name),this.space(),this.word("in"),this.space(),this.print(s.constraint,s),t&&(this.space(),this.word("as"),this.space(),this.print(t,e)),this.tokenChar(93),n&&(i(this,n),this.tokenChar(63)),this.tokenChar(58),this.space(),this.print(e.typeAnnotation,e),this.space(),this.tokenChar(125)},t.TSMethodSignature=function(e){const{kind:t}=e;"set"!==t&&"get"!==t||(this.word(t),this.space()),this.tsPrintPropertyOrMethodName(e),this.tsPrintSignatureDeclarationBase(e),this.tokenChar(59)},t.TSModuleBlock=function(e){n(this,e.body,e)},t.TSModuleDeclaration=function(e){const{declare:t,id:n}=e;if(t&&(this.word("declare"),this.space()),e.global||(this.word("Identifier"===n.type?"namespace":"module"),this.space()),this.print(n,e),!e.body)return void this.tokenChar(59);let r=e.body;for(;"TSModuleDeclaration"===r.type;)this.tokenChar(46),this.print(r.id,r),r=r.body;this.space(),this.print(r,e)},t.TSNamedTupleMember=function(e){this.print(e.label,e),e.optional&&this.tokenChar(63),this.tokenChar(58),this.space(),this.print(e.elementType,e)},t.TSNamespaceExportDeclaration=function(e){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(e.id,e)},t.TSNeverKeyword=function(){this.word("never")},t.TSNonNullExpression=function(e){this.print(e.expression,e),this.tokenChar(33)},t.TSNullKeyword=function(){this.word("null")},t.TSNumberKeyword=function(){this.word("number")},t.TSObjectKeyword=function(){this.word("object")},t.TSOptionalType=function(e){this.print(e.typeAnnotation,e),this.tokenChar(63)},t.TSParameterProperty=function(e){e.accessibility&&(this.word(e.accessibility),this.space()),e.readonly&&(this.word("readonly"),this.space()),this._param(e.parameter)},t.TSParenthesizedType=function(e){this.tokenChar(40),this.print(e.typeAnnotation,e),this.tokenChar(41)},t.TSPropertySignature=function(e){const{readonly:t,initializer:n}=e;t&&(this.word("readonly"),this.space()),this.tsPrintPropertyOrMethodName(e),this.print(e.typeAnnotation,e),n&&(this.space(),this.tokenChar(61),this.space(),this.print(n,e)),this.tokenChar(59)},t.TSQualifiedName=function(e){this.print(e.left,e),this.tokenChar(46),this.print(e.right,e)},t.TSRestType=function(e){this.token("..."),this.print(e.typeAnnotation,e)},t.TSStringKeyword=function(){this.word("string")},t.TSSymbolKeyword=function(){this.word("symbol")},t.TSThisType=function(){this.word("this")},t.TSTupleType=function(e){this.tokenChar(91),this.printList(e.elementTypes,e),this.tokenChar(93)},t.TSTypeAliasDeclaration=function(e){const{declare:t,id:n,typeParameters:r,typeAnnotation:i}=e;t&&(this.word("declare"),this.space()),this.word("type"),this.space(),this.print(n,e),this.print(r,e),this.space(),this.tokenChar(61),this.space(),this.print(i,e),this.tokenChar(59)},t.TSTypeAnnotation=function(e){this.tokenChar(58),this.space(),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation,e)},t.TSTypeAssertion=function(e){const{typeAnnotation:t,expression:n}=e;this.tokenChar(60),this.print(t,e),this.tokenChar(62),this.space(),this.print(n,e)},t.TSTypeLiteral=function(e){this.tsPrintTypeLiteralOrInterfaceBody(e.members,e)},t.TSTypeOperator=function(e){this.word(e.operator),this.space(),this.print(e.typeAnnotation,e)},t.TSTypeParameter=function(e){e.in&&(this.word("in"),this.space()),e.out&&(this.word("out"),this.space()),this.word(e.name),e.constraint&&(this.space(),this.word("extends"),this.space(),this.print(e.constraint,e)),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default,e))},t.TSTypeParameterDeclaration=t.TSTypeParameterInstantiation=function(e,t){this.tokenChar(60),this.printList(e.params,e,{}),"ArrowFunctionExpression"===t.type&&1===e.params.length&&this.tokenChar(44),this.tokenChar(62)},t.TSTypePredicate=function(e){e.asserts&&(this.word("asserts"),this.space()),this.print(e.parameterName),e.typeAnnotation&&(this.space(),this.word("is"),this.space(),this.print(e.typeAnnotation.typeAnnotation))},t.TSTypeQuery=function(e){this.word("typeof"),this.space(),this.print(e.exprName),e.typeParameters&&this.print(e.typeParameters,e)},t.TSTypeReference=function(e){this.print(e.typeName,e,!0),this.print(e.typeParameters,e,!0)},t.TSUndefinedKeyword=function(){this.word("undefined")},t.TSUnionType=function(e){r(this,e,"|")},t.TSUnknownKeyword=function(){this.word("unknown")},t.TSVoidKeyword=function(){this.word("void")},t.tsPrintClassMemberModifiers=function(e){const t="ClassAccessorProperty"===e.type||"ClassProperty"===e.type;t&&e.declare&&(this.word("declare"),this.space()),e.accessibility&&(this.word(e.accessibility),this.space()),e.static&&(this.word("static"),this.space()),e.override&&(this.word("override"),this.space()),e.abstract&&(this.word("abstract"),this.space()),t&&e.readonly&&(this.word("readonly"),this.space())},t.tsPrintFunctionOrConstructorType=function(e){const{typeParameters:t}=e,n=e.parameters;this.print(t,e),this.tokenChar(40),this._parameters(n,e),this.tokenChar(41),this.space(),this.token("=>"),this.space();const r=e.typeAnnotation;this.print(r.typeAnnotation,e)},t.tsPrintPropertyOrMethodName=function(e){e.computed&&this.tokenChar(91),this.print(e.key,e),e.computed&&this.tokenChar(93),e.optional&&this.tokenChar(63)},t.tsPrintSignatureDeclarationBase=function(e){const{typeParameters:t}=e,n=e.parameters;this.print(t,e),this.tokenChar(40),this._parameters(n,e),this.tokenChar(41);const r=e.typeAnnotation;this.print(r,e)},t.tsPrintTypeLiteralOrInterfaceBody=function(e,t){n(this,e,t)}},7848:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGenerator=void 0,t.default=function(e,t,n){return new s(e,t,n).generate()};var r=n(2564),i=n(516);class s extends i.default{constructor(e,t={},n){const i=function(e,t){var n;const r={auxiliaryCommentBefore:t.auxiliaryCommentBefore,auxiliaryCommentAfter:t.auxiliaryCommentAfter,shouldPrintComment:t.shouldPrintComment,retainLines:t.retainLines,retainFunctionParens:t.retainFunctionParens,comments:null==t.comments||t.comments,compact:t.compact,minified:t.minified,concise:t.concise,indent:{adjustMultilineComment:!0,style:" "},jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},t.jsescOption),recordAndTupleSyntaxType:null!=(n=t.recordAndTupleSyntaxType)?n:"hash",topicToken:t.topicToken,importAttributesKeyword:t.importAttributesKeyword};r.decoratorsBeforeExport=t.decoratorsBeforeExport,r.jsescOption.json=t.jsonCompatibleStrings,r.minified?(r.compact=!0,r.shouldPrintComment=r.shouldPrintComment||(()=>r.comments)):r.shouldPrintComment=r.shouldPrintComment||(e=>r.comments||e.includes("@license")||e.includes("@preserve")),"auto"===r.compact&&(r.compact="string"==typeof e&&e.length>5e5,r.compact&&console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${t.filename} as it exceeds the max of 500KB.`)),r.compact&&(r.indent.adjustMultilineComment=!1);const{auxiliaryCommentBefore:i,auxiliaryCommentAfter:s,shouldPrintComment:a}=r;return i&&!a(i)&&(r.auxiliaryCommentBefore=void 0),s&&!a(s)&&(r.auxiliaryCommentAfter=void 0),r}(n,t);super(i,t.sourceMaps?new r.default(t,n):null),this.ast=void 0,this.ast=e}generate(){return super.generate(this.ast)}}t.CodeGenerator=class{constructor(e,t,n){this._generator=void 0,this._generator=new s(e,t,n)}generate(){return this._generator.generate()}}},7533:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.needsParens=function(e,t,n){return!!t&&(!(!u(t)||t.callee!==e||!y(e))||f(h,e,t,n))},t.needsWhitespace=m,t.needsWhitespaceAfter=function(e,t){return m(e,t,2)},t.needsWhitespaceBefore=function(e,t){return m(e,t,1)};var r=n(9750),i=n(7363),s=n(6067);const{FLIPPED_ALIAS_KEYS:a,isCallExpression:o,isExpressionStatement:l,isMemberExpression:c,isNewExpression:u}=s;function p(e){const t={};function n(e,n){const r=t[e];t[e]=r?function(e,t,i){const s=r(e,t,i);return null==s?n(e,t,i):s}:n}for(const t of Object.keys(e)){const r=a[t];if(r)for(const i of r)n(i,e[t]);else n(t,e[t])}return t}const h=p(i),d=p(r.nodes);function f(e,t,n,r){const i=e[t.type];return i?i(t,n,r):null}function y(e){return!!o(e)||c(e)&&y(e.object)}function m(e,t,n){if(!e)return!1;l(e)&&(e=e.expression);const r=f(d,e,t);return"number"==typeof r&&0!=(r&n)}},7363:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowFunctionExpression=function(e,t){return m(t)||ae(e,t)},t.AssignmentExpression=function(e,t){return!!N(e.left)||ae(e,t)},t.Binary=function(e,t){if("**"===e.operator&&c(t,{operator:"**"}))return t.left===e;if(re(e,t))return!0;if(ie(e,t)||$(t)||o(t))return!0;if(l(t)){const n=t.operator,r=te[n],i=e.operator,s=te[i];if(r===s&&t.right===e&&!C(t)||r>s)return!0}},t.BinaryExpression=function(e,t){return"in"===e.operator&&(z(t)||b(t))},t.ClassExpression=function(e,t,n){return oe(n,5)},t.ConditionalExpression=ae,t.DoExpression=function(e,t,n){return!e.async&&oe(n,1)},t.FunctionExpression=function(e,t,n){return oe(n,5)},t.FunctionTypeAnnotation=function(e,t,n){if(!(n.length<3))return G(t)||v(t)||i(t)||J(t)&&s(n[n.length-3])},t.Identifier=function(e,t,n){var r;return!(null==(r=e.extra)||!r.parenthesized||!a(t,{left:e})||!x(t.right)&&!d(t.right)||null!=t.right.id)||("let"===e.name?oe(n,w(t,{object:e,computed:!0})||k(t,{object:e,computed:!0,optional:!1})?57:32):"async"===e.name&&S(t)&&e===t.left)},t.LogicalExpression=function(e,t){if(ne(t))return!0;switch(e.operator){case"||":return!!C(t)&&("??"===t.operator||"&&"===t.operator);case"&&":return C(t,{operator:"??"});case"??":return C(t)&&"??"!==t.operator}},t.NullableTypeAnnotation=function(e,t){return i(t)},t.ObjectExpression=function(e,t,n){return oe(n,3)},t.OptionalIndexedAccessType=function(e,t){return A(t,{objectType:e})},t.OptionalCallExpression=t.OptionalMemberExpression=function(e,t){return p(t,{callee:e})||w(t,{object:e})},t.SequenceExpression=function(e,t){return!(P(t)||H(t)||L(t)||D(t)&&t.test===e||Q(t)&&t.test===e||E(t)&&t.right===e||M(t)&&t.discriminant===e||g(t)&&t.expression===e)},t.TSTypeAssertion=t.TSSatisfiesExpression=t.TSAsExpression=function(){return!0},t.TSInferType=function(e,t){return B(t)||K(t)},t.TSInstantiationExpression=function(e,t){return(p(t)||F(t)||O(t)||R(t))&&!!t.typeParameters},t.TSIntersectionType=t.TSUnionType=function(e,t){return B(t)||K(t)||U(t)||Y(t)||W(t)},t.UnaryLike=se,t.IntersectionTypeAnnotation=t.UnionTypeAnnotation=function(e,t){return i(t)||I(t)||v(t)||G(t)},t.UpdateExpression=function(e,t){return ie(e,t)||re(e,t)},t.AwaitExpression=t.YieldExpression=function(e,t){return l(t)||$(t)||ie(e,t)||o(t)&&Z(e)||y(t)&&e===t.test||re(e,t)};var r=n(6067);const{isArrayTypeAnnotation:i,isArrowFunctionExpression:s,isAssignmentExpression:a,isAwaitExpression:o,isBinary:l,isBinaryExpression:c,isUpdateExpression:u,isCallExpression:p,isClass:h,isClassExpression:d,isConditional:f,isConditionalExpression:y,isExportDeclaration:m,isExportDefaultDeclaration:T,isExpressionStatement:g,isFor:b,isForInStatement:E,isForOfStatement:S,isForStatement:P,isFunctionExpression:x,isIfStatement:D,isIndexedAccessType:A,isIntersectionTypeAnnotation:v,isLogicalExpression:C,isMemberExpression:w,isNewExpression:O,isNullableTypeAnnotation:I,isObjectPattern:N,isOptionalCallExpression:F,isOptionalMemberExpression:k,isReturnStatement:L,isSequenceExpression:_,isSwitchStatement:M,isTSArrayType:B,isTSAsExpression:j,isTSInstantiationExpression:R,isTSIntersectionType:U,isTSNonNullExpression:V,isTSOptionalType:K,isTSRestType:W,isTSTypeAssertion:X,isTSUnionType:Y,isTaggedTemplateExpression:q,isThrowStatement:H,isTypeAnnotation:J,isUnaryLike:$,isUnionTypeAnnotation:G,isVariableDeclarator:z,isWhileStatement:Q,isYieldExpression:Z,isTSSatisfiesExpression:ee}=r,te={"||":0,"??":0,"|>":0,"&&":1,"|":2,"^":3,"&":4,"==":5,"===":5,"!=":5,"!==":5,"<":6,">":6,"<=":6,">=":6,in:6,instanceof:6,">>":7,"<<":7,">>>":7,"+":8,"-":8,"*":9,"/":9,"%":9,"**":10};function ne(e){return j(e)||ee(e)||X(e)}const re=(e,t)=>h(t,{superClass:e}),ie=(e,t)=>(w(t)||k(t))&&t.object===e||(p(t)||F(t)||O(t))&&t.callee===e||q(t)&&t.tag===e||V(t);function se(e,t){return ie(e,t)||c(t,{operator:"**",left:e})||re(e,t)}function ae(e,t){return!!($(t)||l(t)||y(t,{test:e})||o(t)||ne(t))||se(e,t)}function oe(e,t){const n=1&t,r=2&t,i=4&t,o=8&t,c=16&t,p=32&t;let h=e.length-1;if(h<=0)return;let d=e[h];h--;let y=e[h];for(;h>=0;){if(n&&g(y,{expression:d})||i&&T(y,{declaration:d})||r&&s(y,{body:d})||o&&P(y,{init:d})||c&&E(y,{left:d})||p&&S(y,{left:d}))return!0;if(!(h>0&&(ie(d,y)&&!O(y)||_(y)&&y.expressions[0]===d||u(y)&&!y.prefix||f(y,{test:d})||l(y,{left:d})||a(y,{left:d}))))return!1;d=y,h--,y=e[h]}return!1}},9750:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nodes=void 0;var r=n(6067);const{FLIPPED_ALIAS_KEYS:i,isArrayExpression:s,isAssignmentExpression:a,isBinary:o,isBlockStatement:l,isCallExpression:c,isFunction:u,isIdentifier:p,isLiteral:h,isMemberExpression:d,isObjectExpression:f,isOptionalCallExpression:y,isOptionalMemberExpression:m,isStringLiteral:T}=r;function g(e,t){return e?(d(e)||m(e)?(g(e.object,t),e.computed&&g(e.property,t)):o(e)||a(e)?(g(e.left,t),g(e.right,t)):c(e)||y(e)?(t.hasCall=!0,g(e.callee,t)):u(e)?t.hasFunction=!0:p(e)&&(t.hasHelper=t.hasHelper||e.callee&&E(e.callee)),t):t}function b(e){return g(e,{hasCall:!1,hasFunction:!1,hasHelper:!1})}function E(e){return!!e&&(d(e)?E(e.object)||E(e.property):p(e)?"require"===e.name||95===e.name.charCodeAt(0):c(e)?E(e.callee):!(!o(e)&&!a(e))&&(p(e.left)&&E(e.left)||E(e.right)))}function S(e){return h(e)||f(e)||s(e)||p(e)||d(e)}const P={AssignmentExpression(e){const t=b(e.right);if(t.hasCall&&t.hasHelper||t.hasFunction)return t.hasFunction?3:2},SwitchCase:(e,t)=>(e.consequent.length||t.cases[0]===e?1:0)|(e.consequent.length||t.cases[t.cases.length-1]!==e?0:2),LogicalExpression(e){if(u(e.left)||u(e.right))return 2},Literal(e){if(T(e)&&"use strict"===e.value)return 2},CallExpression(e){if(u(e.callee)||E(e))return 3},OptionalCallExpression(e){if(u(e.callee))return 3},VariableDeclaration(e){for(let t=0;t<e.declarations.length;t++){const n=e.declarations[t];let r=E(n.id)&&!S(n.init);if(!r&&n.init){const e=b(n.init);r=E(n.init)&&e.hasCall||e.hasFunction}if(r)return 3}},IfStatement(e){if(l(e.consequent))return 3}};t.nodes=P,P.ObjectProperty=P.ObjectTypeProperty=P.ObjectMethod=function(e,t){if(t.properties[0]===e)return 1},P.ObjectTypeCallProperty=function(e,t){var n;if(t.callProperties[0]===e&&(null==(n=t.properties)||!n.length))return 1},P.ObjectTypeIndexer=function(e,t){var n,r;if(!(t.indexers[0]!==e||null!=(n=t.properties)&&n.length||null!=(r=t.callProperties)&&r.length))return 1},P.ObjectTypeInternalSlot=function(e,t){var n,r,i;if(!(t.internalSlots[0]!==e||null!=(n=t.properties)&&n.length||null!=(r=t.callProperties)&&r.length||null!=(i=t.indexers)&&i.length))return 1},[["Function",!0],["Class",!0],["Loop",!0],["LabeledStatement",!0],["SwitchStatement",!0],["TryStatement",!0]].forEach((function([e,t]){[e].concat(i[e]||[]).forEach((function(e){const n=t?3:0;P[e]=()=>n}))}))},516:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(8726),i=n(7533),s=n(6067),a=n(4236);const{isFunction:o,isStatement:l,isClassBody:c,isTSInterfaceBody:u,isTSEnumDeclaration:p}=s,h=/e/i,d=/\.0+$/,f=/^0[box]/,y=/^\s*[@#]__PURE__\s*$/,m=/[\n\r\u2028\u2029]/,T=/\*\//,{needsParens:g}=i;class b{constructor(e,t){this.inForStatementInitCounter=0,this._printStack=[],this._indent=0,this._indentChar=0,this._indentRepeat=0,this._insideAux=!1,this._parenPushNewlineState=null,this._noLineTerminator=!1,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new Set,this._endsWithInteger=!1,this._endsWithWord=!1,this._lastCommentLine=0,this._endsWithInnerRaw=!1,this._indentInnerComments=!0,this.format=e,this._buf=new r.default(t),this._indentChar=e.indent.style.charCodeAt(0),this._indentRepeat=e.indent.style.length,this._inputMap=null==t?void 0:t._inputMap}generate(e){return this.print(e),this._maybeAddAuxComment(),this._buf.get()}indent(){this.format.compact||this.format.concise||this._indent++}dedent(){this.format.compact||this.format.concise||this._indent--}semicolon(e=!1){this._maybeAddAuxComment(),e?this._appendChar(59):this._queue(59),this._noLineTerminator=!1}rightBrace(e){this.format.minified&&this._buf.removeLastSemicolon(),this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125)}rightParens(e){this.sourceWithOffset("end",e.loc,-1),this.tokenChar(41)}space(e=!1){if(!this.format.compact)if(e)this._space();else if(this._buf.hasContent()){const e=this.getLastChar();32!==e&&10!==e&&this._space()}}word(e,t=!1){this._maybePrintInnerComments(),(this._endsWithWord||47===e.charCodeAt(0)&&this.endsWith(47))&&this._space(),this._maybeAddAuxComment(),this._append(e,!1),this._endsWithWord=!0,this._noLineTerminator=t}number(e){this.word(e),this._endsWithInteger=Number.isInteger(+e)&&!f.test(e)&&!h.test(e)&&!d.test(e)&&46!==e.charCodeAt(e.length-1)}token(e,t=!1){this._maybePrintInnerComments();const n=this.getLastChar(),r=e.charCodeAt(0);(33===n&&("--"===e||61===r)||43===r&&43===n||45===r&&45===n||46===r&&this._endsWithInteger)&&this._space(),this._maybeAddAuxComment(),this._append(e,t),this._noLineTerminator=!1}tokenChar(e){this._maybePrintInnerComments();const t=this.getLastChar();(43===e&&43===t||45===e&&45===t||46===e&&this._endsWithInteger)&&this._space(),this._maybeAddAuxComment(),this._appendChar(e),this._noLineTerminator=!1}newline(e=1,t){if(!(e<=0)){if(!t){if(this.format.retainLines||this.format.compact)return;if(this.format.concise)return void this.space()}e>2&&(e=2),e-=this._buf.getNewlineCount();for(let t=0;t<e;t++)this._newline()}}endsWith(e){return this.getLastChar()===e}getLastChar(){return this._buf.getLastChar()}endsWithCharAndNewline(){return this._buf.endsWithCharAndNewline()}removeTrailingNewline(){this._buf.removeTrailingNewline()}exactSource(e,t){e?(this._catchUp("start",e),this._buf.exactSource(e,t)):t()}source(e,t){t&&(this._catchUp(e,t),this._buf.source(e,t))}sourceWithOffset(e,t,n){t&&(this._catchUp(e,t),this._buf.sourceWithOffset(e,t,n))}withSource(e,t,n){t?(this._catchUp(e,t),this._buf.withSource(e,t,n)):n()}sourceIdentifierName(e,t){if(!this._buf._canMarkIdName)return;const n=this._buf._sourcePosition;n.identifierNamePos=t,n.identifierName=e}_space(){this._queue(32)}_newline(){this._queue(10)}_append(e,t){this._maybeAddParen(e),this._maybeIndent(e.charCodeAt(0)),this._buf.append(e,t),this._endsWithWord=!1,this._endsWithInteger=!1}_appendChar(e){this._maybeAddParenChar(e),this._maybeIndent(e),this._buf.appendChar(e),this._endsWithWord=!1,this._endsWithInteger=!1}_queue(e){this._maybeAddParenChar(e),this._maybeIndent(e),this._buf.queue(e),this._endsWithWord=!1,this._endsWithInteger=!1}_maybeIndent(e){this._indent&&10!==e&&this.endsWith(10)&&this._buf.queueIndentation(this._indentChar,this._getIndent())}_shouldIndent(e){if(this._indent&&10!==e&&this.endsWith(10))return!0}_maybeAddParenChar(e){const t=this._parenPushNewlineState;t&&32!==e&&(10===e?(this.tokenChar(40),this.indent(),t.printed=!0):this._parenPushNewlineState=null)}_maybeAddParen(e){const t=this._parenPushNewlineState;if(!t)return;const n=e.length;let r;for(r=0;r<n&&32===e.charCodeAt(r);r++)continue;if(r===n)return;const i=e.charCodeAt(r);if(10!==i){if(47!==i||r+1===n)return void(this._parenPushNewlineState=null);const t=e.charCodeAt(r+1);if(42===t){if(y.test(e.slice(r+2,n-2)))return}else if(47!==t)return void(this._parenPushNewlineState=null)}this.tokenChar(40),this.indent(),t.printed=!0}catchUp(e){if(!this.format.retainLines)return;const t=e-this._buf.getCurrentLine();for(let e=0;e<t;e++)this._newline()}_catchUp(e,t){var n;if(!this.format.retainLines)return;const r=null==t||null==(n=t[e])?void 0:n.line;if(null!=r){const e=r-this._buf.getCurrentLine();for(let t=0;t<e;t++)this._newline()}}_getIndent(){return this._indentRepeat*this._indent}printTerminatorless(e,t,n){if(n)this._noLineTerminator=!0,this.print(e,t);else{const n={printed:!1};this._parenPushNewlineState=n,this.print(e,t),n.printed&&(this.dedent(),this.newline(),this.tokenChar(41))}}print(e,t,n,r,i){var s;if(!e)return;this._endsWithInnerRaw=!1;const a=e.type,o=this.format,l=o.concise;e._compact&&(o.concise=!0);const c=this[a];if(void 0===c)throw new ReferenceError(`unknown node of type ${JSON.stringify(a)} with constructor ${JSON.stringify(e.constructor.name)}`);this._printStack.push(e);const u=this._insideAux;this._insideAux=null==e.loc,this._maybeAddAuxComment(this._insideAux&&!u);const p=i||o.retainFunctionParens&&"FunctionExpression"===a&&(null==(s=e.extra)?void 0:s.parenthesized)||g(e,t,this._printStack);p&&(this.tokenChar(40),this._endsWithInnerRaw=!1),this._lastCommentLine=0,this._printLeadingComments(e,t);const h="Program"===a||"File"===a?null:e.loc;this.exactSource(h,c.bind(this,e,t)),p?(this._printTrailingComments(e,t),this.tokenChar(41),this._noLineTerminator=n):n&&!this._noLineTerminator?(this._noLineTerminator=!0,this._printTrailingComments(e,t)):this._printTrailingComments(e,t,r),this._printStack.pop(),o.concise=l,this._insideAux=u,this._endsWithInnerRaw=!1}_maybeAddAuxComment(e){e&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;const e=this.format.auxiliaryCommentBefore;e&&this._printComment({type:"CommentBlock",value:e},0)}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;const e=this.format.auxiliaryCommentAfter;e&&this._printComment({type:"CommentBlock",value:e},0)}getPossibleRaw(e){const t=e.extra;if(null!=(null==t?void 0:t.raw)&&null!=t.rawValue&&e.value===t.rawValue)return t.raw}printJoin(e,t,n={}){if(null==e||!e.length)return;let{indent:r}=n;if(null==r&&this.format.retainLines){var i;const t=null==(i=e[0].loc)?void 0:i.start.line;null!=t&&t!==this._buf.getCurrentLine()&&(r=!0)}r&&this.indent();const s={addNewlines:n.addNewlines,nextNodeStartLine:0},a=n.separator?n.separator.bind(this):null,o=e.length;for(let r=0;r<o;r++){const i=e[r];if(i&&(n.statement&&this._printNewline(0===r,s),this.print(i,t,void 0,n.trailingCommentsLineOffset||0),null==n.iterator||n.iterator(i,r),r<o-1&&(null==a||a()),n.statement))if(r+1===o)this.newline(1);else{var l;const t=e[r+1];s.nextNodeStartLine=(null==(l=t.loc)?void 0:l.start.line)||0,this._printNewline(!0,s)}}r&&this.dedent()}printAndIndentOnComments(e,t){const n=e.leadingComments&&e.leadingComments.length>0;n&&this.indent(),this.print(e,t),n&&this.dedent()}printBlock(e){const t=e.body;"EmptyStatement"!==t.type&&this.space(),this.print(t,e)}_printTrailingComments(e,t,n){const{innerComments:r,trailingComments:i}=e;null!=r&&r.length&&this._printComments(2,r,e,t,n),null!=i&&i.length&&this._printComments(2,i,e,t,n)}_printLeadingComments(e,t){const n=e.leadingComments;null!=n&&n.length&&this._printComments(0,n,e,t)}_maybePrintInnerComments(){this._endsWithInnerRaw&&this.printInnerComments(),this._endsWithInnerRaw=!0,this._indentInnerComments=!0}printInnerComments(){const e=this._printStack[this._printStack.length-1],t=e.innerComments;if(null==t||!t.length)return;const n=this.endsWith(32),r=this._indentInnerComments,i=this._printedComments.size;r&&this.indent(),this._printComments(1,t,e),n&&i!==this._printedComments.size&&this.space(),r&&this.dedent()}noIndentInnerCommentsHere(){this._indentInnerComments=!1}printSequence(e,t,n={}){n.statement=!0,null!=n.indent||(n.indent=!1),this.printJoin(e,t,n)}printList(e,t,n={}){null==n.separator&&(n.separator=S),this.printJoin(e,t,n)}_printNewline(e,t){const n=this.format;if(n.retainLines||n.compact)return;if(n.concise)return void this.space();if(!e)return;const r=t.nextNodeStartLine,i=this._lastCommentLine;if(r>0&&i>0){const e=r-i;if(e>=0)return void this.newline(e||1)}this._buf.hasContent()&&this.newline(1)}_shouldPrintComment(e){return e.ignore||this._printedComments.has(e)?0:this._noLineTerminator&&(m.test(e.value)||T.test(e.value))?2:(this._printedComments.add(e),this.format.shouldPrintComment(e.value)?1:0)}_printComment(e,t){const n=this._noLineTerminator,r="CommentBlock"===e.type,i=r&&1!==t&&!this._noLineTerminator;i&&this._buf.hasContent()&&2!==t&&this.newline(1);const s=this.getLastChar();let a;if(91!==s&&123!==s&&this.space(),r){if(a=`/*${e.value}*/`,this.format.indent.adjustMultilineComment){var o;const t=null==(o=e.loc)?void 0:o.start.column;if(t){const e=new RegExp("\\n\\s{1,"+t+"}","g");a=a.replace(e,"\n")}let n=this.format.retainLines?0:this._buf.getCurrentColumn();(this._shouldIndent(47)||this.format.retainLines)&&(n+=this._getIndent()),a=a.replace(/\n(?!$)/g,`\n${" ".repeat(n)}`)}}else a=n?`/*${e.value}*/`:`//${e.value}`;this.endsWith(47)&&this._space(),this.source("start",e.loc),this._append(a,r),r||n||this.newline(1,!0),i&&3!==t&&this.newline(1)}_printComments(e,t,n,r,i=0){const s=n.loc,a=t.length;let h=!!s;const d=h?s.start.line:0,f=h?s.end.line:0;let y=0,T=0;const g=this._noLineTerminator?function(){}:this.newline.bind(this);for(let s=0;s<a;s++){const b=t[s],E=this._shouldPrintComment(b);if(2===E){h=!1;break}if(h&&b.loc&&1===E){const t=b.loc.start.line,n=b.loc.end.line;if(0===e){let e=0;0===s?!this._buf.hasContent()||"CommentLine"!==b.type&&t==n||(e=T=1):e=t-y,y=n,g(e),this._printComment(b,1),s+1===a&&(g(Math.max(d-y,T)),y=d)}else if(1===e){const e=t-(0===s?d:y);y=n,g(e),this._printComment(b,1),s+1===a&&(g(Math.min(1,f-y)),y=f)}else{const e=t-(0===s?f-i:y);y=n,g(e),this._printComment(b,1)}}else{if(h=!1,1!==E)continue;if(1===a){const t=b.loc?b.loc.start.line===b.loc.end.line:!m.test(b.value),i=t&&!l(n)&&!c(r)&&!u(r)&&!p(r);0===e?this._printComment(b,i&&"ObjectExpression"!==n.type||t&&o(r,{body:n})?1:0):i&&2===e?this._printComment(b,1):this._printComment(b,0)}else 1!==e||"ObjectExpression"===n.type&&n.properties.length>1||"ClassBody"===n.type||"TSInterfaceBody"===n.type?this._printComment(b,0):this._printComment(b,0===s?2:s===a-1?3:0)}}2===e&&h&&y&&(this._lastCommentLine=y)}}Object.assign(b.prototype,a),b.prototype.Noop=function(){};var E=b;function S(){this.tokenChar(44),this.space()}t.default=E},2564:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(2509),i=n(3446);t.default=class{constructor(e,t){var n;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0,this._inputMap=void 0;const s=this._map=new r.GenMapping({sourceRoot:e.sourceRoot});if(this._sourceFileName=null==(n=e.sourceFileName)?void 0:n.replace(/\\/g,"/"),this._rawMappings=void 0,e.inputSourceMap){this._inputMap=new i.TraceMap(e.inputSourceMap);const t=this._inputMap.resolvedSources;if(t.length)for(let e=0;e<t.length;e++){var a;(0,r.setSourceContent)(s,t[e],null==(a=this._inputMap.sourcesContent)?void 0:a[e])}}if("string"!=typeof t||e.inputSourceMap){if("object"==typeof t)for(const e of Object.keys(t))(0,r.setSourceContent)(s,e.replace(/\\/g,"/"),t[e])}else(0,r.setSourceContent)(s,this._sourceFileName,t)}get(){return(0,r.toEncodedMap)(this._map)}getDecoded(){return(0,r.toDecodedMap)(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=(0,r.allMappings)(this._map))}mark(e,t,n,s,a,o){var l;let c;if(this._rawMappings=void 0,null!=t)if(this._inputMap){if(c=(0,i.originalPositionFor)(this._inputMap,{line:t,column:n}),!c.name&&a){const e=(0,i.originalPositionFor)(this._inputMap,a);e.name&&(s=e.name)}}else c={source:(null==o?void 0:o.replace(/\\/g,"/"))||this._sourceFileName,line:t,column:n};(0,r.maybeAddMapping)(this._map,{name:s,generated:e,source:null==(l=c)?void 0:l.source,original:c})}}},4705:(e,t)=>{"use strict";function n(e){const{context:t,node:n}=e;if(n.computed&&t.maybeQueue(e.get("key")),n.decorators)for(const n of e.get("decorators"))t.maybeQueue(n)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.requeueComputedKeyAndDecorators=n,t.skipAllButComputedKey=function(e){e.skip(),e.node.computed&&e.context.maybeQueue(e.get("key"))};var r={FunctionParent(e){e.isArrowFunctionExpression()||(e.skip(),e.isMethod()&&n(e))},Property(e){e.isObjectProperty()||(e.skip(),n(e))}};t.default=r},2023:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({node:e,parent:t,scope:n,id:r},i=!1,D=!1){if(e.id)return;if(!y(t)&&!f(t,{kind:"method"})||t.computed&&!h(t.key)){if(b(t)){if(r=t.id,p(r)&&!i){const t=n.parent.getBinding(r.name);if(t&&t.constant&&n.getBinding(r.name)===t)return e.id=a(r),void(e.id[s]=!0)}}else if(l(t,{operator:"="}))r=t.left;else if(!r)return}else r=t.key;let A;if(r&&h(r)?A=function(e){return d(e)?"null":m(e)?`_${e.pattern}_${e.flags}`:g(e)?e.quasis.map((e=>e.value.raw)).join(""):void 0!==e.value?e.value+"":""}(r):r&&p(r)&&(A=r.name),void 0===A)return;if(!D&&u(e)&&/[\uD800-\uDFFF]/.test(A))return;A=E(A);const v=o(A);return v[s]=!0,function(e,t,n,r){if(e.selfReference){if(!r.hasBinding(n.name)||r.hasGlobal(n.name)){if(!u(t))return;let e=S;t.generator&&(e=P);const i=e({FUNCTION:t,FUNCTION_ID:n,FUNCTION_KEY:r.generateUidIdentifier(n.name)}).expression,s=i.callee.body.body[0].params;for(let e=0,n=function(e){const t=e.params.findIndex((e=>c(e)||T(e)));return-1===t?e.params.length:t}(t);e<n;e++)s.push(r.generateUidIdentifier("x"));return i}r.rename(n.name)}t.id=n,r.getProgramParent().references[n.name]=!0}(function(e,t,n){const r={selfAssignment:!1,selfReference:!1,outerDeclar:n.getBindingIdentifier(t),name:t},i=n.getOwnBinding(t);return i?"param"===i.kind&&(r.selfReference=!0):(r.outerDeclar||n.hasGlobal(t))&&n.traverse(e,x,r),r}(e,A,n),e,v,n)||e};var r=n(6849),i=n(6067);const{NOT_LOCAL_BINDING:s,cloneNode:a,identifier:o,isAssignmentExpression:l,isAssignmentPattern:c,isFunction:u,isIdentifier:p,isLiteral:h,isNullLiteral:d,isObjectMethod:f,isObjectProperty:y,isRegExpLiteral:m,isRestElement:T,isTemplateLiteral:g,isVariableDeclarator:b,toBindingIdentifierName:E}=i,S=r.default.statement("\n (function (FUNCTION_KEY) {\n function FUNCTION_ID() {\n return FUNCTION_KEY.apply(this, arguments);\n }\n\n FUNCTION_ID.toString = function () {\n return FUNCTION_KEY.toString();\n }\n\n return FUNCTION_ID;\n })(FUNCTION)\n"),P=r.default.statement("\n (function (FUNCTION_KEY) {\n function* FUNCTION_ID() {\n return yield* FUNCTION_KEY.apply(this, arguments);\n }\n\n FUNCTION_ID.toString = function () {\n return FUNCTION_KEY.toString();\n };\n\n return FUNCTION_ID;\n })(FUNCTION)\n"),x={"ReferencedIdentifier|BindingIdentifier"(e,t){e.node.name===t.name&&e.scope.getBindingIdentifier(t.name)===t.outerDeclar&&(t.selfReference=!0,e.stop())}}},7438:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n="var"){e.traverse(o,{kind:n,emit:t})};var r=n(6067);const{assignmentExpression:i,expressionStatement:s,identifier:a}=r,o={Scope(e,t){"let"===t.kind&&e.skip()},FunctionParent(e){e.skip()},VariableDeclaration(e,t){if(t.kind&&e.node.kind!==t.kind)return;const n=[],r=e.get("declarations");let o;for(const e of r){o=e.node.id,e.node.init&&n.push(s(i("=",e.node.id,e.node.init)));for(const n of Object.keys(e.getBindingIdentifiers()))t.emit(a(n),n,null!==e.node.init)}e.parentPath.isFor({left:e.node})?e.replaceWith(o):e.replaceWithMultiple(n)}}},3472:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!e.isExportDeclaration()||e.isExportAllDeclaration())throw new Error("Only default and named export declarations can be split.");if(e.isExportDefaultDeclaration()){const t=e.get("declaration"),n=t.isFunctionDeclaration()||t.isClassDeclaration(),r=t.isFunctionExpression()||t.isClassExpression(),u=t.isScope()?t.scope.parent:t.scope;let p=t.node.id,h=!1;p?r&&u.hasBinding(p.name)&&(h=!0,p=u.generateUidIdentifier(p.name)):(h=!0,p=u.generateUidIdentifier("default"),(n||r)&&(t.node.id=i(p)));const d=n?t.node:l("var",[c(i(p),t.node)]),f=s(null,[a(i(p),o("default"))]);return e.insertAfter(f),e.replaceWith(d),h&&u.registerDeclaration(e),e}if(e.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");const t=e.get("declaration"),n=t.getOuterBindingIdentifiers(),r=Object.keys(n).map((e=>a(o(e),o(e)))),u=s(null,r);return e.insertAfter(u),e.replaceWith(t.node),e};var r=n(6067);const{cloneNode:i,exportNamedDeclaration:s,exportSpecifier:a,identifier:o,variableDeclaration:l,variableDeclarator:c}=r},7648:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readCodePoint=c,t.readInt=l,t.readStringContents=function(e,t,n,r,i,o){const l=n,c=r,u=i;let p="",h=null,d=n;const{length:f}=t;for(;;){if(n>=f){o.unterminated(l,c,u),p+=t.slice(d,n);break}const y=t.charCodeAt(n);if(s(e,y,t,n)){p+=t.slice(d,n);break}if(92===y){p+=t.slice(d,n);const s=a(t,n,r,i,"template"===e,o);null!==s.ch||h?p+=s.ch:h={pos:n,lineStart:r,curLine:i},({pos:n,lineStart:r,curLine:i}=s),d=n}else 8232===y||8233===y?(++i,r=++n):10===y||13===y?"template"===e?(p+=t.slice(d,n)+"\n",++n,13===y&&10===t.charCodeAt(n)&&++n,++i,d=r=n):o.unterminated(l,c,u):++n}return{pos:n,str:p,firstInvalidLoc:h,lineStart:r,curLine:i,containsInvalid:!!h}};var n=function(e){return e>=48&&e<=57};const r={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},i={bin:e=>48===e||49===e,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function s(e,t,n,r){return"template"===e?96===t||36===t&&123===n.charCodeAt(r+1):t===("double"===e?34:39)}function a(e,t,n,r,i,s){const a=!i;t++;const l=e=>({pos:t,ch:e,lineStart:n,curLine:r}),u=e.charCodeAt(t++);switch(u){case 110:return l("\n");case 114:return l("\r");case 120:{let i;return({code:i,pos:t}=o(e,t,n,r,2,!1,a,s)),l(null===i?null:String.fromCharCode(i))}case 117:{let i;return({code:i,pos:t}=c(e,t,n,r,a,s)),l(null===i?null:String.fromCodePoint(i))}case 116:return l("\t");case 98:return l("\b");case 118:return l("\v");case 102:return l("\f");case 13:10===e.charCodeAt(t)&&++t;case 10:n=t,++r;case 8232:case 8233:return l("");case 56:case 57:if(i)return l(null);s.strictNumericEscape(t-1,n,r);default:if(u>=48&&u<=55){const a=t-1;let o=e.slice(a,t+2).match(/^[0-7]+/)[0],c=parseInt(o,8);c>255&&(o=o.slice(0,-1),c=parseInt(o,8)),t+=o.length-1;const u=e.charCodeAt(t);if("0"!==o||56===u||57===u){if(i)return l(null);s.strictNumericEscape(a,n,r)}return l(String.fromCharCode(c))}return l(String.fromCharCode(u))}}function o(e,t,n,r,i,s,a,o){const c=t;let u;return({n:u,pos:t}=l(e,t,n,r,16,i,s,!1,o,!a)),null===u&&(a?o.invalidEscapeSequence(c,n,r):t=c-1),{code:u,pos:t}}function l(e,t,s,a,o,l,c,u,p,h){const d=t,f=16===o?r.hex:r.decBinOct,y=16===o?i.hex:10===o?i.dec:8===o?i.oct:i.bin;let m=!1,T=0;for(let r=0,i=null==l?1/0:l;r<i;++r){const r=e.charCodeAt(t);let i;if(95!==r||"bail"===u){if(i=r>=97?r-97+10:r>=65?r-65+10:n(r)?r-48:1/0,i>=o){if(i<=9&&h)return{n:null,pos:t};if(i<=9&&p.invalidDigit(t,s,a,o))i=0;else{if(!c)break;i=0,m=!0}}++t,T=T*o+i}else{const n=e.charCodeAt(t-1),r=e.charCodeAt(t+1);if(u){if(Number.isNaN(r)||!y(r)||f.has(n)||f.has(r)){if(h)return{n:null,pos:t};p.unexpectedNumericSeparator(t,s,a)}}else{if(h)return{n:null,pos:t};p.numericSeparatorInEscapeSequence(t,s,a)}++t}}return t===d||null!=l&&t-d!==l||m?{n:null,pos:t}:{n:T,pos:t}}function c(e,t,n,r,i,s){let a;if(123===e.charCodeAt(t)){if(++t,({code:a,pos:t}=o(e,t,n,r,e.indexOf("}",t)-t,!0,i,s)),++t,null!==a&&a>1114111){if(!i)return{code:null,pos:t};s.invalidCodePoint(t,n,r)}}else({code:a,pos:t}=o(e,t,n,r,4,!1,i,s));return{code:a,pos:t}}},7749:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIdentifierChar=u,t.isIdentifierName=function(e){let t=!0;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(55296==(64512&r)&&n+1<e.length){const t=e.charCodeAt(++n);56320==(64512&t)&&(r=65536+((1023&r)<<10)+(1023&t))}if(t){if(t=!1,!c(r))return!1}else if(!u(r))return!1}return!t},t.isIdentifierStart=c;let n="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",r="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_";const i=new RegExp("["+n+"]"),s=new RegExp("["+n+r+"]");n=r=null;const a=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],o=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function l(e,t){let n=65536;for(let r=0,i=t.length;r<i;r+=2){if(n+=t[r],n>e)return!1;if(n+=t[r+1],n>=e)return!0}return!1}function c(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&i.test(String.fromCharCode(e)):l(e,a)))}function u(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&s.test(String.fromCharCode(e)):l(e,a)||l(e,o))))}},9649:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isIdentifierChar",{enumerable:!0,get:function(){return r.isIdentifierChar}}),Object.defineProperty(t,"isIdentifierName",{enumerable:!0,get:function(){return r.isIdentifierName}}),Object.defineProperty(t,"isIdentifierStart",{enumerable:!0,get:function(){return r.isIdentifierStart}}),Object.defineProperty(t,"isKeyword",{enumerable:!0,get:function(){return i.isKeyword}}),Object.defineProperty(t,"isReservedWord",{enumerable:!0,get:function(){return i.isReservedWord}}),Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return i.isStrictBindOnlyReservedWord}}),Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:!0,get:function(){return i.isStrictBindReservedWord}}),Object.defineProperty(t,"isStrictReservedWord",{enumerable:!0,get:function(){return i.isStrictReservedWord}});var r=n(7749),i=n(5562)},5562:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isKeyword=function(e){return n.has(e)},t.isReservedWord=s,t.isStrictBindOnlyReservedWord=o,t.isStrictBindReservedWord=function(e,t){return a(e,t)||o(e)},t.isStrictReservedWord=a;const n=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),r=new Set(["implements","interface","let","package","private","protected","public","static","yield"]),i=new Set(["eval","arguments"]);function s(e,t){return t&&"await"===e||"enum"===e}function a(e,t){return s(e,t)||r.has(e)}function o(e){return i.has(e)}},8530:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t={}){return""!==e&&h(t)?function(e,t){let n="";for(const{type:r,value:i}of u(t)){const t=e[r];n+=t?i.split(l).map((e=>t(e))).join("\n"):i}return n}({keyword:(n=d(t.forceColor)).cyan,capitalized:n.yellow,jsxIdentifier:n.yellow,punctuator:n.yellow,number:n.magenta,string:n.green,regex:n.magenta,comment:n.grey,invalid:n.white.bgRed.bold},e):e;var n},t.shouldHighlight=h;var r=n(6188),i=n(9649),s=
gitextract_yc8pzj4j/ ├── .editorconfig ├── .github/ │ └── workflows/ │ └── codesee-arch-diagram.yml ├── .gitignore ├── .npmignore ├── .nvmrc ├── .prettierrc ├── LICENSE ├── README.md ├── _config.yml ├── babel.config.js ├── cli/ │ └── index.cli.js ├── dist/ │ ├── js2flowchart.js │ └── js2flowchart.js.LICENSE.txt ├── docs/ │ ├── _config.yml │ ├── examples/ │ │ ├── blur-shape-branch/ │ │ │ ├── code-sample.js │ │ │ ├── index.html │ │ │ └── index.js │ │ ├── custom-modifier/ │ │ │ ├── code-sample.js │ │ │ ├── index.html │ │ │ └── index.js │ │ ├── debug-rendering/ │ │ │ ├── code-sample.js │ │ │ ├── index.html │ │ │ └── index.js │ │ ├── default/ │ │ │ ├── code-sample.js │ │ │ ├── index.html │ │ │ └── index.js │ │ ├── defined-abstraction-level/ │ │ │ ├── code-sample.js │ │ │ ├── index.html │ │ │ └── index.js │ │ ├── defined-color-theme/ │ │ │ ├── code-sample.js │ │ │ ├── index.html │ │ │ └── index.js │ │ ├── defined-modifier/ │ │ │ ├── code-sample.js │ │ │ ├── index.html │ │ │ └── index.js │ │ ├── dev/ │ │ │ ├── code-sample.js │ │ │ ├── index.html │ │ │ └── index.js │ │ ├── node-destruction/ │ │ │ ├── code-sample.js │ │ │ ├── index.html │ │ │ └── index.js │ │ └── one-module-presentation/ │ │ ├── code-sample.js │ │ ├── index.html │ │ └── index.js │ └── live-editor/ │ ├── index.html │ ├── index.js │ └── worker.js ├── index.js ├── package.json ├── samples/ │ ├── blurShapeBranch.js │ ├── customModifier.js │ ├── debugRendering.js │ ├── default.js │ ├── definedAbstractionLevel.js │ ├── definedColorTheme.js │ ├── definedModifier.js │ ├── dev.js │ ├── nodeDestruction.js │ └── oneModulePresentation.js ├── src/ │ ├── builder/ │ │ ├── FlowTreeBuilder.js │ │ ├── FlowTreeModifier.js │ │ ├── abstraction-levels/ │ │ │ ├── functionDependencies.js │ │ │ └── functions.js │ │ ├── abstractionLevelsConfigurator.js │ │ ├── astBuilder.js │ │ ├── astParserConfig.js │ │ ├── converters/ │ │ │ ├── Harmony.js │ │ │ └── core.js │ │ ├── entryDefinitionsMap.js │ │ └── modifiers/ │ │ └── modifiersFactory.js │ ├── presentation-generator/ │ │ └── PresentationGenerator.js │ ├── render/ │ │ └── svg/ │ │ ├── SVGBase.js │ │ ├── SVGRender.js │ │ ├── appearance/ │ │ │ ├── StyleThemeFactory.js │ │ │ ├── TextContentConfigurator.js │ │ │ └── themes/ │ │ │ ├── BlackAndWhite.js │ │ │ ├── Blurred.js │ │ │ ├── DefaultBaseTheme.js │ │ │ └── Light.js │ │ ├── connections/ │ │ │ └── ConnectionArrow.js │ │ ├── shapes/ │ │ │ ├── BaseShape.js │ │ │ ├── BreakStatement.js │ │ │ ├── CallExpression.js │ │ │ ├── CatchClause.js │ │ │ ├── ClassDeclaration.js │ │ │ ├── ConditionRhombus.js │ │ │ ├── ContinueStatement.js │ │ │ ├── DebuggerStatement.js │ │ │ ├── DestructedNode.js │ │ │ ├── ExportDeclaration.js │ │ │ ├── ImportDeclaration.js │ │ │ ├── ImportSpecifier.js │ │ │ ├── LoopRhombus.js │ │ │ ├── ObjectProperty.js │ │ │ ├── Rectangle.js │ │ │ ├── ReturnStatement.js │ │ │ ├── Rhombus.js │ │ │ ├── RootCircle.js │ │ │ ├── SwitchCase.js │ │ │ ├── SwitchStatement.js │ │ │ ├── ThrowStatement.js │ │ │ ├── TryStatement.js │ │ │ └── VerticalEdgedRectangle.js │ │ ├── shapesDefinitionsMap.js │ │ ├── shapesFactory.js │ │ └── svgObjectsBuilder.js │ └── shared/ │ ├── constants.js │ └── utils/ │ ├── composition.js │ ├── flatten.js │ ├── geometry.js │ ├── iteratorBuilder.js │ ├── logger.js │ ├── string.js │ ├── svgPrimitives.js │ ├── traversal.js │ ├── traversalWithTreeLevelsPointer.js │ └── treeLevelsPointer.js └── webpack.config.js
Showing preview only (226K chars total). Download the full file or copy to clipboard to get everything.
SYMBOL INDEX (1621 symbols across 42 files)
FILE: dist/js2flowchart.js
class s (line 2) | class s{constructor({file:e,sourceRoot:n}={}){this._names=new t.SetArray...
method constructor (line 2) | constructor({file:e,sourceRoot:n}={}){this._names=new t.SetArray,this....
method constructor (line 2) | constructor(e,t={},n){const i=function(e,t){var n;const r={auxiliaryCo...
method generate (line 2) | generate(){return super.generate(this.ast)}
function a (line 2) | function a(e,t,n){for(let n=e.length;n>t;n--)e[n]=e[n-1];e[t]=n}
function o (line 2) | function o(e,n){for(let r=0;r<n.length;r++)t.put(e,n[r])}
function l (line 2) | function l(e,t,n){const{generated:r,source:s,original:a,name:o,content:l...
function i (line 2) | function i(e){return e.startsWith("/")}
method constructor (line 2) | constructor(e,t){this.start=void 0,this.end=void 0,this.filename=void ...
function s (line 2) | function s(e){return/^[.?#]/.test(e)}
method constructor (line 2) | constructor({file:e,sourceRoot:n}={}){this._names=new t.SetArray,this....
method constructor (line 2) | constructor(e,t={},n){const i=function(e,t){var n;const r={auxiliaryCo...
method generate (line 2) | generate(){return super.generate(this.ast)}
function a (line 2) | function a(e){const n=t.exec(e);return o(n[1],n[2]||"",n[3],n[4]||"",n[5...
function o (line 2) | function o(e,t,n,i,s,a,o){return{scheme:e,user:t,host:n,port:i,path:s,qu...
function l (line 2) | function l(t){if(function(e){return e.startsWith("//")}(t)){const e=a("h...
function c (line 2) | function c(e,t){const n=t<=r.RelativePath,i=e.path.split("/");let s=1,a=...
method constructor (line 2) | constructor(){this._indexes={__proto__:null},this.array=[]}
method decode (line 2) | decode(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n...
function l (line 2) | function l(e,t){const n=e.indexOf(";",t);return-1===n?e.length:n}
function c (line 2) | function c(e,t,n,r){let i=0,s=0,o=0;do{const n=e.charCodeAt(t++);o=a[n],...
function u (line 2) | function u(e,n,r){return!(n>=r)&&e.charCodeAt(n)!==t}
function p (line 2) | function p(e){e.sort(h)}
function h (line 2) | function h(e,t){return e[0]-t[0]}
function d (line 2) | function d(e,t,n,r,i){const a=r[i];let o=a-n[i];n[i]=a,o=o<0?-o<<1|1:o<<...
function r (line 2) | function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}
method constructor (line 2) | constructor(e,t,n){this.line=void 0,this.column=void 0,this.index=void...
function s (line 2) | function s(e,t){return t&&!t.endsWith("/")&&(t+="/"),i.default(e,t)}
method constructor (line 2) | constructor({file:e,sourceRoot:n}={}){this._names=new t.SetArray,this....
method constructor (line 2) | constructor(e,t={},n){const i=function(e,t){var n;const r={auxiliaryCo...
method generate (line 2) | generate(){return super.generate(this.ast)}
function p (line 2) | function p(e,t){for(let n=t;n<e.length;n++)if(!h(e[n]))return n;return e...
function h (line 2) | function h(e){for(let t=1;t<e.length;t++)if(e[t][a]<e[t-1][a])return!1;r...
function d (line 2) | function d(e,t){return t||(e=e.slice()),e.sort(f)}
function f (line 2) | function f(e,t){return e[a]-t[a]}
function m (line 2) | function m(e,t,n){for(let r=n+1;r<e.length&&e[r][a]===t;n=r++);return n}
function T (line 2) | function T(e,t,n){for(let r=n-1;r>=0&&e[r][a]===t;n=r--);return n}
function g (line 2) | function g(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}
function b (line 2) | function b(e,t,n,r){const{lastKey:i,lastNeedle:s,lastIndex:o}=n;let l=0,...
method constructor (line 2) | constructor(e,t){this.inForStatementInitCounter=0,this._printStack=[],...
method generate (line 2) | generate(e){return this.print(e),this._maybeAddAuxComment(),this._buf....
method indent (line 2) | indent(){this.format.compact||this.format.concise||this._indent++}
method dedent (line 2) | dedent(){this.format.compact||this.format.concise||this._indent--}
method semicolon (line 2) | semicolon(e=!1){this._maybeAddAuxComment(),e?this._appendChar(59):this...
method rightBrace (line 2) | rightBrace(e){this.format.minified&&this._buf.removeLastSemicolon(),th...
method rightParens (line 2) | rightParens(e){this.sourceWithOffset("end",e.loc,-1),this.tokenChar(41)}
method space (line 2) | space(e=!1){if(!this.format.compact)if(e)this._space();else if(this._b...
method word (line 2) | word(e,t=!1){this._maybePrintInnerComments(),(this._endsWithWord||47==...
method number (line 2) | number(e){this.word(e),this._endsWithInteger=Number.isInteger(+e)&&!f....
method token (line 2) | token(e,t=!1){this._maybePrintInnerComments();const n=this.getLastChar...
method tokenChar (line 2) | tokenChar(e){this._maybePrintInnerComments();const t=this.getLastChar(...
method newline (line 2) | newline(e=1,t){if(!(e<=0)){if(!t){if(this.format.retainLines||this.for...
method endsWith (line 2) | endsWith(e){return this.getLastChar()===e}
method getLastChar (line 2) | getLastChar(){return this._buf.getLastChar()}
method endsWithCharAndNewline (line 2) | endsWithCharAndNewline(){return this._buf.endsWithCharAndNewline()}
method removeTrailingNewline (line 2) | removeTrailingNewline(){this._buf.removeTrailingNewline()}
method exactSource (line 2) | exactSource(e,t){e?(this._catchUp("start",e),this._buf.exactSource(e,t...
method source (line 2) | source(e,t){t&&(this._catchUp(e,t),this._buf.source(e,t))}
method sourceWithOffset (line 2) | sourceWithOffset(e,t,n){t&&(this._catchUp(e,t),this._buf.sourceWithOff...
method withSource (line 2) | withSource(e,t,n){t?(this._catchUp(e,t),this._buf.withSource(e,t,n)):n()}
method sourceIdentifierName (line 2) | sourceIdentifierName(e,t){if(!this._buf._canMarkIdName)return;const n=...
method _space (line 2) | _space(){this._queue(32)}
method _newline (line 2) | _newline(){this._queue(10)}
method _append (line 2) | _append(e,t){this._maybeAddParen(e),this._maybeIndent(e.charCodeAt(0))...
method _appendChar (line 2) | _appendChar(e){this._maybeAddParenChar(e),this._maybeIndent(e),this._b...
method _queue (line 2) | _queue(e){this._maybeAddParenChar(e),this._maybeIndent(e),this._buf.qu...
method _maybeIndent (line 2) | _maybeIndent(e){this._indent&&10!==e&&this.endsWith(10)&&this._buf.que...
method _shouldIndent (line 2) | _shouldIndent(e){if(this._indent&&10!==e&&this.endsWith(10))return!0}
method _maybeAddParenChar (line 2) | _maybeAddParenChar(e){const t=this._parenPushNewlineState;t&&32!==e&&(...
method _maybeAddParen (line 2) | _maybeAddParen(e){const t=this._parenPushNewlineState;if(!t)return;con...
method catchUp (line 2) | catchUp(e){if(!this.format.retainLines)return;const t=e-this._buf.getC...
method _catchUp (line 2) | _catchUp(e,t){var n;if(!this.format.retainLines)return;const r=null==t...
method _getIndent (line 2) | _getIndent(){return this._indentRepeat*this._indent}
method printTerminatorless (line 2) | printTerminatorless(e,t,n){if(n)this._noLineTerminator=!0,this.print(e...
method print (line 2) | print(e,t,n,r,i){var s;if(!e)return;this._endsWithInnerRaw=!1;const a=...
method _maybeAddAuxComment (line 2) | _maybeAddAuxComment(e){e&&this._printAuxBeforeComment(),this._insideAu...
method _printAuxBeforeComment (line 2) | _printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;t...
method _printAuxAfterComment (line 2) | _printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;t...
method getPossibleRaw (line 2) | getPossibleRaw(e){const t=e.extra;if(null!=(null==t?void 0:t.raw)&&nul...
method printJoin (line 2) | printJoin(e,t,n={}){if(null==e||!e.length)return;let{indent:r}=n;if(nu...
method printAndIndentOnComments (line 2) | printAndIndentOnComments(e,t){const n=e.leadingComments&&e.leadingComm...
method printBlock (line 2) | printBlock(e){const t=e.body;"EmptyStatement"!==t.type&&this.space(),t...
method _printTrailingComments (line 2) | _printTrailingComments(e,t,n){const{innerComments:r,trailingComments:i...
method _printLeadingComments (line 2) | _printLeadingComments(e,t){const n=e.leadingComments;null!=n&&n.length...
method _maybePrintInnerComments (line 2) | _maybePrintInnerComments(){this._endsWithInnerRaw&&this.printInnerComm...
method printInnerComments (line 2) | printInnerComments(){const e=this._printStack[this._printStack.length-...
method noIndentInnerCommentsHere (line 2) | noIndentInnerCommentsHere(){this._indentInnerComments=!1}
method printSequence (line 2) | printSequence(e,t,n={}){n.statement=!0,null!=n.indent||(n.indent=!1),t...
method printList (line 2) | printList(e,t,n={}){null==n.separator&&(n.separator=S),this.printJoin(...
method _printNewline (line 2) | _printNewline(e,t){const n=this.format;if(n.retainLines||n.compact)ret...
method _shouldPrintComment (line 2) | _shouldPrintComment(e){return e.ignore||this._printedComments.has(e)?0...
method _printComment (line 2) | _printComment(e,t){const n=this._noLineTerminator,r="CommentBlock"===e...
method _printComments (line 2) | _printComments(e,t,n,r,i=0){const s=n.loc,a=t.length;let h=!!s;const d...
function E (line 2) | function E(e,t,n){for(let n=e.length;n>t;n--)e[n]=e[n-1];e[t]=n}
function S (line 2) | function S(){return{__proto__:null}}
function P (line 2) | function P(e,t,n,r,i,s,a,o,l,c){const{sections:u}=e;for(let e=0;e<u.leng...
method constructor (line 2) | constructor(e,t){this.token=void 0,this.preserveSpace=void 0,this.toke...
function x (line 2) | function x(t,n,r,i,s,p,h,d,f,y){if("sections"in t)return P(...arguments)...
function D (line 2) | function D(e,t){for(let n=0;n<t.length;n++)e.push(t[n])}
function A (line 2) | function A(e,t){for(let n=e.length;n<=t;n++)e[n]=[];return e[t]}
method constructor (line 2) | constructor(e,t){this.contexts=[],this.state=null,this.opts=null,this....
method get (line 2) | static get({hub:e,parentPath:t,parent:n,container:r,listKey:i,key:s}){...
method getScope (line 2) | getScope(e){return this.isScope()?new a.default(this):e}
method setData (line 2) | setData(e,t){return null==this.data&&(this.data=Object.create(null)),t...
method getData (line 2) | getData(e,t){null==this.data&&(this.data=Object.create(null));let n=th...
method hasNode (line 2) | hasNode(){return null!=this.node}
method buildCodeFrameError (line 2) | buildCodeFrameError(e,t=SyntaxError){return this.hub.buildError(this.n...
method traverse (line 2) | traverse(e,t){(0,s.default)(this.node,e,this.scope,t,this)}
method set (line 2) | set(e,t){x(this.node,e,t),this.node[e]=t}
method getPathLocation (line 2) | getPathLocation(){const e=[];let t=this;do{let n=t.key;t.inList&&(n=`$...
method debug (line 2) | debug(e){D.enabled&&D(`${this.getPathLocation()} ${this.type}: ${e}`)}
method toString (line 2) | toString(){return(0,u.default)(this.node).code}
method inList (line 2) | get inList(){return!!this.listKey}
method inList (line 2) | set inList(e){e||(this.listKey=null)}
method parentKey (line 2) | get parentKey(){return this.listKey||this.key}
method shouldSkip (line 2) | get shouldSkip(){return!!(4&this._traverseFlags)}
method shouldSkip (line 2) | set shouldSkip(e){e?this._traverseFlags|=4:this._traverseFlags&=-5}
method shouldStop (line 2) | get shouldStop(){return!!(2&this._traverseFlags)}
method shouldStop (line 2) | set shouldStop(e){e?this._traverseFlags|=2:this._traverseFlags&=-3}
method removed (line 2) | get removed(){return!!(1&this._traverseFlags)}
method removed (line 2) | set removed(e){e?this._traverseFlags|=1:this._traverseFlags&=-2}
class O (line 2) | class O{constructor(e,t){const n="string"==typeof e;if(!n&&e._decodedMem...
method constructor (line 2) | constructor(e,t){const n="string"==typeof e;if(!n&&e._decodedMemo)retu...
method constructor (line 2) | constructor(e,t={}){this.label=void 0,this.keyword=void 0,this.beforeE...
function I (line 2) | function I(e,t){return{version:e.version,file:e.file,names:e.names,sourc...
function N (line 2) | function N(e,t,n,r){return{source:e,line:t,column:n,name:r}}
function F (line 2) | function F(e,t){return{line:e,column:t}}
function k (line 2) | function k(e,t,n,r,i){let s=b(e,r,t,n);return y?s=(i===w?m:T)(e,r,s):i==...
function n (line 2) | function n(t,n,r,i,s,u){if(--r<0)throw new Error(v);if(i<0)throw new Err...
function o (line 2) | function o(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. L...
function l (line 2) | function l(e,t,r){for(var i,s,a=[],o=t;o<r;o+=3)i=(e[o]<<16&16711680)+(e...
function o (line 2) | function o(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid ...
function l (line 2) | function l(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new...
function c (line 2) | function c(e,t,n){if("string"==typeof e)return function(e,t){if("string"...
function u (line 2) | function u(e){if("number"!=typeof e)throw new TypeError('"size" argument...
function p (line 2) | function p(e){return u(e),o(e<0?0:0|f(e))}
function h (line 2) | function h(e){const t=e.length<0?0:0|f(e.length),n=o(t);for(let r=0;r<t;...
function d (line 2) | function d(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" ...
function f (line 2) | function f(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer l...
function y (line 2) | function y(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e...
function m (line 2) | function m(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)ret...
function T (line 2) | function T(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}
function g (line 2) | function g(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=...
function b (line 2) | function b(e,t,n,r,i){let s,a=1,o=e.length,l=t.length;if(void 0!==r&&("u...
method constructor (line 2) | constructor(e,t){this.inForStatementInitCounter=0,this._printStack=[],...
method generate (line 2) | generate(e){return this.print(e),this._maybeAddAuxComment(),this._buf....
method indent (line 2) | indent(){this.format.compact||this.format.concise||this._indent++}
method dedent (line 2) | dedent(){this.format.compact||this.format.concise||this._indent--}
method semicolon (line 2) | semicolon(e=!1){this._maybeAddAuxComment(),e?this._appendChar(59):this...
method rightBrace (line 2) | rightBrace(e){this.format.minified&&this._buf.removeLastSemicolon(),th...
method rightParens (line 2) | rightParens(e){this.sourceWithOffset("end",e.loc,-1),this.tokenChar(41)}
method space (line 2) | space(e=!1){if(!this.format.compact)if(e)this._space();else if(this._b...
method word (line 2) | word(e,t=!1){this._maybePrintInnerComments(),(this._endsWithWord||47==...
method number (line 2) | number(e){this.word(e),this._endsWithInteger=Number.isInteger(+e)&&!f....
method token (line 2) | token(e,t=!1){this._maybePrintInnerComments();const n=this.getLastChar...
method tokenChar (line 2) | tokenChar(e){this._maybePrintInnerComments();const t=this.getLastChar(...
method newline (line 2) | newline(e=1,t){if(!(e<=0)){if(!t){if(this.format.retainLines||this.for...
method endsWith (line 2) | endsWith(e){return this.getLastChar()===e}
method getLastChar (line 2) | getLastChar(){return this._buf.getLastChar()}
method endsWithCharAndNewline (line 2) | endsWithCharAndNewline(){return this._buf.endsWithCharAndNewline()}
method removeTrailingNewline (line 2) | removeTrailingNewline(){this._buf.removeTrailingNewline()}
method exactSource (line 2) | exactSource(e,t){e?(this._catchUp("start",e),this._buf.exactSource(e,t...
method source (line 2) | source(e,t){t&&(this._catchUp(e,t),this._buf.source(e,t))}
method sourceWithOffset (line 2) | sourceWithOffset(e,t,n){t&&(this._catchUp(e,t),this._buf.sourceWithOff...
method withSource (line 2) | withSource(e,t,n){t?(this._catchUp(e,t),this._buf.withSource(e,t,n)):n()}
method sourceIdentifierName (line 2) | sourceIdentifierName(e,t){if(!this._buf._canMarkIdName)return;const n=...
method _space (line 2) | _space(){this._queue(32)}
method _newline (line 2) | _newline(){this._queue(10)}
method _append (line 2) | _append(e,t){this._maybeAddParen(e),this._maybeIndent(e.charCodeAt(0))...
method _appendChar (line 2) | _appendChar(e){this._maybeAddParenChar(e),this._maybeIndent(e),this._b...
method _queue (line 2) | _queue(e){this._maybeAddParenChar(e),this._maybeIndent(e),this._buf.qu...
method _maybeIndent (line 2) | _maybeIndent(e){this._indent&&10!==e&&this.endsWith(10)&&this._buf.que...
method _shouldIndent (line 2) | _shouldIndent(e){if(this._indent&&10!==e&&this.endsWith(10))return!0}
method _maybeAddParenChar (line 2) | _maybeAddParenChar(e){const t=this._parenPushNewlineState;t&&32!==e&&(...
method _maybeAddParen (line 2) | _maybeAddParen(e){const t=this._parenPushNewlineState;if(!t)return;con...
method catchUp (line 2) | catchUp(e){if(!this.format.retainLines)return;const t=e-this._buf.getC...
method _catchUp (line 2) | _catchUp(e,t){var n;if(!this.format.retainLines)return;const r=null==t...
method _getIndent (line 2) | _getIndent(){return this._indentRepeat*this._indent}
method printTerminatorless (line 2) | printTerminatorless(e,t,n){if(n)this._noLineTerminator=!0,this.print(e...
method print (line 2) | print(e,t,n,r,i){var s;if(!e)return;this._endsWithInnerRaw=!1;const a=...
method _maybeAddAuxComment (line 2) | _maybeAddAuxComment(e){e&&this._printAuxBeforeComment(),this._insideAu...
method _printAuxBeforeComment (line 2) | _printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;t...
method _printAuxAfterComment (line 2) | _printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;t...
method getPossibleRaw (line 2) | getPossibleRaw(e){const t=e.extra;if(null!=(null==t?void 0:t.raw)&&nul...
method printJoin (line 2) | printJoin(e,t,n={}){if(null==e||!e.length)return;let{indent:r}=n;if(nu...
method printAndIndentOnComments (line 2) | printAndIndentOnComments(e,t){const n=e.leadingComments&&e.leadingComm...
method printBlock (line 2) | printBlock(e){const t=e.body;"EmptyStatement"!==t.type&&this.space(),t...
method _printTrailingComments (line 2) | _printTrailingComments(e,t,n){const{innerComments:r,trailingComments:i...
method _printLeadingComments (line 2) | _printLeadingComments(e,t){const n=e.leadingComments;null!=n&&n.length...
method _maybePrintInnerComments (line 2) | _maybePrintInnerComments(){this._endsWithInnerRaw&&this.printInnerComm...
method printInnerComments (line 2) | printInnerComments(){const e=this._printStack[this._printStack.length-...
method noIndentInnerCommentsHere (line 2) | noIndentInnerCommentsHere(){this._indentInnerComments=!1}
method printSequence (line 2) | printSequence(e,t,n={}){n.statement=!0,null!=n.indent||(n.indent=!1),t...
method printList (line 2) | printList(e,t,n={}){null==n.separator&&(n.separator=S),this.printJoin(...
method _printNewline (line 2) | _printNewline(e,t){const n=this.format;if(n.retainLines||n.compact)ret...
method _shouldPrintComment (line 2) | _shouldPrintComment(e){return e.ignore||this._printedComments.has(e)?0...
method _printComment (line 2) | _printComment(e,t){const n=this._noLineTerminator,r="CommentBlock"===e...
method _printComments (line 2) | _printComments(e,t,n,r,i=0){const s=n.loc,a=t.length;let h=!!s;const d...
function E (line 2) | function E(e,t,n,r){n=Number(n)||0;const i=e.length-n;r?(r=Number(r))>i&...
function S (line 2) | function S(e,t,n,r){return J(q(t,e.length-n),e,n,r)}
function P (line 2) | function P(e,t,n,r){return J(function(e){const t=[];for(let n=0;n<e.leng...
method constructor (line 2) | constructor(e,t){this.token=void 0,this.preserveSpace=void 0,this.toke...
function x (line 2) | function x(e,t,n,r){return J(H(t),e,n,r)}
function D (line 2) | function D(e,t,n,r){return J(function(e,t){let n,r,i;const s=[];for(let ...
function A (line 2) | function A(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromBy...
method constructor (line 2) | constructor(e,t){this.contexts=[],this.state=null,this.opts=null,this....
method get (line 2) | static get({hub:e,parentPath:t,parent:n,container:r,listKey:i,key:s}){...
method getScope (line 2) | getScope(e){return this.isScope()?new a.default(this):e}
method setData (line 2) | setData(e,t){return null==this.data&&(this.data=Object.create(null)),t...
method getData (line 2) | getData(e,t){null==this.data&&(this.data=Object.create(null));let n=th...
method hasNode (line 2) | hasNode(){return null!=this.node}
method buildCodeFrameError (line 2) | buildCodeFrameError(e,t=SyntaxError){return this.hub.buildError(this.n...
method traverse (line 2) | traverse(e,t){(0,s.default)(this.node,e,this.scope,t,this)}
method set (line 2) | set(e,t){x(this.node,e,t),this.node[e]=t}
method getPathLocation (line 2) | getPathLocation(){const e=[];let t=this;do{let n=t.key;t.inList&&(n=`$...
method debug (line 2) | debug(e){D.enabled&&D(`${this.getPathLocation()} ${this.type}: ${e}`)}
method toString (line 2) | toString(){return(0,u.default)(this.node).code}
method inList (line 2) | get inList(){return!!this.listKey}
method inList (line 2) | set inList(e){e||(this.listKey=null)}
method parentKey (line 2) | get parentKey(){return this.listKey||this.key}
method shouldSkip (line 2) | get shouldSkip(){return!!(4&this._traverseFlags)}
method shouldSkip (line 2) | set shouldSkip(e){e?this._traverseFlags|=4:this._traverseFlags&=-5}
method shouldStop (line 2) | get shouldStop(){return!!(2&this._traverseFlags)}
method shouldStop (line 2) | set shouldStop(e){e?this._traverseFlags|=2:this._traverseFlags&=-3}
method removed (line 2) | get removed(){return!!(1&this._traverseFlags)}
method removed (line 2) | set removed(e){e?this._traverseFlags|=1:this._traverseFlags&=-2}
function v (line 2) | function v(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i<n;){c...
function w (line 2) | function w(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+...
function O (line 2) | function O(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+...
method constructor (line 2) | constructor(e,t){const n="string"==typeof e;if(!n&&e._decodedMemo)retu...
method constructor (line 2) | constructor(e,t={}){this.label=void 0,this.keyword=void 0,this.beforeE...
function I (line 2) | function I(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r...
function N (line 2) | function N(e,t,n){const r=e.slice(t,n);let i="";for(let e=0;e<r.length-1...
function F (line 2) | function F(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uin...
function k (line 2) | function k(e,t,n,r,i,s){if(!l.isBuffer(e))throw new TypeError('"buffer" ...
function L (line 2) | function L(e,t,n,r,i){K(t,r,i,e,n,7);let s=Number(t&BigInt(4294967295));...
function _ (line 2) | function _(e,t,n,r,i){K(t,r,i,e,n,7);let s=Number(t&BigInt(4294967295));...
function M (line 2) | function M(e,t,n,r,i,s){if(n+r>e.length)throw new RangeError("Index out ...
function B (line 2) | function B(e,t,n,r,s){return t=+t,n>>>=0,s||M(e,0,n,4),i.write(e,t,n,r,2...
function j (line 2) | function j(e,t,n,r,s){return t=+t,n>>>=0,s||M(e,0,n,8),i.write(e,t,n,r,5...
function U (line 2) | function U(e,t,n){R[e]=class extends n{constructor(){super(),Object.defi...
function V (line 2) | function V(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=...
function K (line 2) | function K(e,t,n,r,i,s){if(e>n||e<t){const r="bigint"==typeof t?"n":"";l...
function W (line 2) | function W(e,t){if("number"!=typeof e)throw new R.ERR_INVALID_ARG_TYPE(t...
function X (line 2) | function X(e,t,n){if(Math.floor(e)!==e)throw W(e,n),new R.ERR_OUT_OF_RAN...
function q (line 2) | function q(e,t){let n;t=t||1/0;const r=e.length;let i=null;const s=[];fo...
function H (line 2) | function H(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0])...
function J (line 2) | function J(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i...
function $ (line 2) | function $(e,t){return e instanceof t||null!=e&&null!=e.constructor&&nul...
function G (line 2) | function G(e){return e!=e}
function Q (line 2) | function Q(e){return"undefined"==typeof BigInt?Z:e}
function Z (line 2) | function Z(){throw new Error("BigInt not supported")}
function h (line 2) | function h(e,t){t=t||{};const n=a?a.level:0;e.level=void 0===t.level?n:t...
function d (line 2) | function d(e){if(!this||!(this instanceof d)||this.template){const t={};...
method get (line 2) | get(){const t=s[e];return y.call(this,this._styles?this._styles.concat(t...
method get (line 2) | get(){return y.call(this,this._styles||[],!0,"visible")}
method get (line 2) | get(){const t=this.level;return function(){const n={open:s.color[c[t]][e...
method get (line 2) | get(){const t=this.level;return function(){const n={open:s.bgColor[c[t]]...
function y (line 2) | function y(e,t,n){const r=function(){return m.apply(r,arguments)};r._sty...
function m (line 2) | function m(){const e=arguments,t=e.length;let n=String(arguments[0]);if(...
function T (line 2) | function T(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).jo...
function a (line 2) | function a(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?S...
function o (line 2) | function o(e,t){const n=[],s=t.trim().split(/\s*,\s*/g);let o;for(const ...
function l (line 2) | function l(e){n.lastIndex=0;const t=[];let r;for(;null!==(r=n.exec(e));)...
function c (line 2) | function c(e,t){const n={};for(const e of t)for(const t of e.styles)n[t[...
function i (line 2) | function i(e,t){return function(n){return t(e(n))}}
method constructor (line 2) | constructor(e,t){this.start=void 0,this.end=void 0,this.filename=void ...
function s (line 2) | function s(e,t){for(var n=[t[e].parent,e],s=r[t[e].parent][e],a=t[e].par...
method constructor (line 2) | constructor({file:e,sourceRoot:n}={}){this._names=new t.SetArray,this....
method constructor (line 2) | constructor(e,t={},n){const i=function(e,t){var n;const r={auxiliaryCo...
method generate (line 2) | generate(){return super.generate(this.ast)}
function t (line 2) | function t(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt...
function r (line 2) | function r(e){let n;function a(...e){if(!a.enabled)return;const t=a,i=Nu...
method constructor (line 2) | constructor(e,t,n){this.line=void 0,this.column=void 0,this.index=void...
function i (line 2) | function i(){const e=r.instances.indexOf(this);return-1!==e&&(r.instance...
method constructor (line 2) | constructor(e,t){this.start=void 0,this.end=void 0,this.filename=void ...
function s (line 2) | function s(e,t){const n=r(this.namespace+(void 0===t?":":t)+e);return n....
method constructor (line 2) | constructor({file:e,sourceRoot:n}={}){this._names=new t.SetArray,this....
method constructor (line 2) | constructor(e,t={},n){const i=function(e,t){var n;const r={auxiliaryCo...
method generate (line 2) | generate(){return super.generate(this.ast)}
function a (line 2) | function a(e){return e.toString().substring(2,e.toString().length-2).rep...
function r (line 2) | function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?o((n=e,Array....
method constructor (line 2) | constructor(e,t,n){this.line=void 0,this.column=void 0,this.index=void...
function i (line 2) | function i(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}
method constructor (line 2) | constructor(e,t){this.start=void 0,this.end=void 0,this.filename=void ...
function s (line 2) | function s(e){return Object.keys(e).concat(function(e){return Object.get...
method constructor (line 2) | constructor({file:e,sourceRoot:n}={}){this._names=new t.SetArray,this....
method constructor (line 2) | constructor(e,t={},n){const i=function(e,t){var n;const r={auxiliaryCo...
method generate (line 2) | generate(){return super.generate(this.ast)}
function a (line 2) | function a(e,t){try{return t in e}catch(e){return!1}}
function o (line 2) | function o(e,n,l){(l=l||{}).arrayMerge=l.arrayMerge||i,l.isMergeableObje...
function n (line 2) | function n(e){return e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\u...
function s (line 2) | function s(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}
method constructor (line 2) | constructor({file:e,sourceRoot:n}={}){this._names=new t.SetArray,this....
method constructor (line 2) | constructor(e,t={},n){const i=function(e,t){var n;const r={auxiliaryCo...
method generate (line 2) | generate(){return super.generate(this.ast)}
function i (line 2) | function i(){throw new Error("setTimeout has not been defined")}
method constructor (line 2) | constructor(e,t){this.start=void 0,this.end=void 0,this.filename=void ...
function s (line 2) | function s(){throw new Error("clearTimeout has not been defined")}
method constructor (line 2) | constructor({file:e,sourceRoot:n}={}){this._names=new t.SetArray,this....
method constructor (line 2) | constructor(e,t={},n){const i=function(e,t){var n;const r={auxiliaryCo...
method generate (line 2) | generate(){return super.generate(this.ast)}
function a (line 2) | function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&s...
function p (line 2) | function p(){c&&o&&(c=!1,o.length?l=o.concat(l):u=-1,l.length&&h())}
function h (line 2) | function h(){if(!c){var e=a(p);c=!0;for(var t=l.length;t;){for(o=l,l=[];...
function d (line 2) | function d(e,t){this.fun=e,this.array=t}
function f (line 2) | function f(){}
function n (line 2) | function n(e){if(null!==t&&(t.property,1)){const e=t;return t=n.prototyp...
function a (line 2) | function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMa...
function u (line 2) | function u(e,t,n={}){const r=(n.highlightCode||n.forceColor)&&(0,i.shoul...
method constructor (line 2) | constructor(e){this._map=null,this._buf="",this._str="",this._appendCoun...
method _allocQueue (line 2) | _allocQueue(){const e=this._queue;for(let t=0;t<16;t++)e.push({char:0,re...
method _pushQueue (line 2) | _pushQueue(e,t,n,r,i){const s=this._queueCursor;s===this._queue.length&&...
method _popQueue (line 2) | _popQueue(){if(0===this._queueCursor)throw new Error("Cannot pop from em...
method get (line 2) | get(){this._flush();const e=this._map,t={code:(this._buf+this._str).trim...
method append (line 2) | append(e,t){this._flush(),this._append(e,this._sourcePosition,t)}
method appendChar (line 2) | appendChar(e){this._flush(),this._appendChar(e,1,this._sourcePosition)}
method queue (line 2) | queue(e){if(10===e)for(;0!==this._queueCursor;){const e=this._queue[this...
method queueIndentation (line 2) | queueIndentation(e,t){this._pushQueue(e,t,void 0,void 0,void 0)}
method _flush (line 2) | _flush(){const e=this._queueCursor,t=this._queue;for(let n=0;n<e;n++){co...
method _appendChar (line 2) | _appendChar(e,t,n){this._last=e,this._str+=t>1?String.fromCharCode(e).re...
method _append (line 2) | _append(e,t,n){const r=e.length,i=this._position;if(this._last=e.charCod...
method _mark (line 2) | _mark(e,t,n,r,i){var s;null==(s=this._map)||s.mark(this._position,e,t,n,...
method removeTrailingNewline (line 2) | removeTrailingNewline(){const e=this._queueCursor;0!==e&&10===this._queu...
method removeLastSemicolon (line 2) | removeLastSemicolon(){const e=this._queueCursor;0!==e&&59===this._queue[...
method getLastChar (line 2) | getLastChar(){const e=this._queueCursor;return 0!==e?this._queue[e-1].ch...
method getNewlineCount (line 2) | getNewlineCount(){const e=this._queueCursor;let t=0;if(0===e)return 10==...
method endsWithCharAndNewline (line 2) | endsWithCharAndNewline(){const e=this._queue,t=this._queueCursor;if(0!==...
method hasContent (line 2) | hasContent(){return 0!==this._queueCursor||!!this._last}
method exactSource (line 2) | exactSource(e,t){if(!this._map)return void t();this.source("start",e);co...
method source (line 2) | source(e,t){this._map&&this._normalizePosition(e,t,0)}
method sourceWithOffset (line 2) | sourceWithOffset(e,t,n){this._map&&this._normalizePosition(e,t,n)}
method withSource (line 2) | withSource(e,t,n){this._map&&this.source(e,t),n()}
method _normalizePosition (line 2) | _normalizePosition(e,t,n){const r=t[e],i=this._sourcePosition;r&&(i.line...
method getCurrentColumn (line 2) | getCurrentColumn(){const e=this._queue,t=this._queueCursor;let n=-1,r=0;...
method getCurrentLine (line 2) | getCurrentLine(){let e=0;const t=this._queue;for(let n=0;n<this._queueCu...
function c (line 2) | function c(e){switch(e.type){case"Identifier":return!0;case"MemberExpres...
method addNewlines (line 2) | addNewlines(e){if(e&&!t[0])return 1}
function l (line 2) | function l(e,t,n){n&&(e.space(),e.word("of"),e.space(),e.word(t)),e.spac...
function c (line 2) | function c(e,t){const{members:n}=t;e.token("{"),e.indent(),e.newline();f...
function u (line 2) | function u(e,t){const{id:n,init:r}=t;e.print(n,t),e.space(),e.token("=")...
function p (line 2) | function p(e){if(e.declaration){const t=e.declaration;this.print(t,e),o(...
function h (line 2) | function h(){this.space(),this.tokenChar(38),this.space()}
function d (line 2) | function d(){this.space(),this.tokenChar(124),this.space()}
function n (line 2) | function n(){this.space()}
function s (line 2) | function s(e,t){let n,r=e;if(!r&&t){const e=t.type;"VariableDeclarator"=...
method constructor (line 2) | constructor({file:e,sourceRoot:n}={}){this._names=new t.SetArray,this....
method constructor (line 2) | constructor(e,t={},n){const i=function(e,t){var n;const r={auxiliaryCo...
method generate (line 2) | generate(){return super.generate(this.ast)}
function p (line 2) | function p(e,t){i(t.declaration)&&e._shouldPrintDecoratorsBeforeExport(t...
method addNewlines (line 2) | addNewlines(t,n){if(!t&&e.cases[e.cases.length-1]===n)return-1}
function l (line 2) | function l(e){const{body:t}=e;return!1===o(t)?e:l(t)}
function c (line 2) | function c(e){this.word("for"),this.space();const t="ForOfStatement"===e...
function h (line 2) | function h(e,t,n,r){t&&(e.space(),e.printTerminatorless(t,n,r)),e.semico...
function n (line 2) | function n(e,t,n){if(e.token("{"),t.length){e.indent(),e.newline();for(c...
function r (line 2) | function r(e,t,n){e.printJoin(t.types,t,{separator(){this.space(),this.t...
method constructor (line 2) | constructor(e,t,n){this.line=void 0,this.column=void 0,this.index=void...
function i (line 2) | function i(e,t){!0!==t&&e.token(t)}
method constructor (line 2) | constructor(e,t){this.start=void 0,this.end=void 0,this.filename=void ...
class s (line 2) | class s extends i.default{constructor(e,t={},n){const i=function(e,t){va...
method constructor (line 2) | constructor({file:e,sourceRoot:n}={}){this._names=new t.SetArray,this....
method constructor (line 2) | constructor(e,t={},n){const i=function(e,t){var n;const r={auxiliaryCo...
method generate (line 2) | generate(){return super.generate(this.ast)}
method constructor (line 2) | constructor(e,t,n){this._generator=void 0,this._generator=new s(e,t,n)}
method generate (line 2) | generate(){return this._generator.generate()}
function p (line 2) | function p(e){const t={};function n(e,n){const r=t[e];t[e]=r?function(e,...
function f (line 2) | function f(e,t,n,r){const i=e[t.type];return i?i(t,n,r):null}
function y (line 2) | function y(e){return!!o(e)||c(e)&&y(e.object)}
function m (line 2) | function m(e,t,n){if(!e)return!1;l(e)&&(e=e.expression);const r=f(d,e,t)...
function ne (line 2) | function ne(e){return j(e)||ee(e)||X(e)}
function se (line 2) | function se(e,t){return ie(e,t)||c(t,{operator:"**",left:e})||re(e,t)}
function ae (line 2) | function ae(e,t){return!!($(t)||l(t)||y(t,{test:e})||o(t)||ne(t))||se(e,t)}
function oe (line 2) | function oe(e,t){const n=1&t,r=2&t,i=4&t,o=8&t,c=16&t,p=32&t;let h=e.len...
function g (line 2) | function g(e,t){return e?(d(e)||m(e)?(g(e.object,t),e.computed&&g(e.prop...
function b (line 2) | function b(e){return g(e,{hasCall:!1,hasFunction:!1,hasHelper:!1})}
method constructor (line 2) | constructor(e,t){this.inForStatementInitCounter=0,this._printStack=[],...
method generate (line 2) | generate(e){return this.print(e),this._maybeAddAuxComment(),this._buf....
method indent (line 2) | indent(){this.format.compact||this.format.concise||this._indent++}
method dedent (line 2) | dedent(){this.format.compact||this.format.concise||this._indent--}
method semicolon (line 2) | semicolon(e=!1){this._maybeAddAuxComment(),e?this._appendChar(59):this...
method rightBrace (line 2) | rightBrace(e){this.format.minified&&this._buf.removeLastSemicolon(),th...
method rightParens (line 2) | rightParens(e){this.sourceWithOffset("end",e.loc,-1),this.tokenChar(41)}
method space (line 2) | space(e=!1){if(!this.format.compact)if(e)this._space();else if(this._b...
method word (line 2) | word(e,t=!1){this._maybePrintInnerComments(),(this._endsWithWord||47==...
method number (line 2) | number(e){this.word(e),this._endsWithInteger=Number.isInteger(+e)&&!f....
method token (line 2) | token(e,t=!1){this._maybePrintInnerComments();const n=this.getLastChar...
method tokenChar (line 2) | tokenChar(e){this._maybePrintInnerComments();const t=this.getLastChar(...
method newline (line 2) | newline(e=1,t){if(!(e<=0)){if(!t){if(this.format.retainLines||this.for...
method endsWith (line 2) | endsWith(e){return this.getLastChar()===e}
method getLastChar (line 2) | getLastChar(){return this._buf.getLastChar()}
method endsWithCharAndNewline (line 2) | endsWithCharAndNewline(){return this._buf.endsWithCharAndNewline()}
method removeTrailingNewline (line 2) | removeTrailingNewline(){this._buf.removeTrailingNewline()}
method exactSource (line 2) | exactSource(e,t){e?(this._catchUp("start",e),this._buf.exactSource(e,t...
method source (line 2) | source(e,t){t&&(this._catchUp(e,t),this._buf.source(e,t))}
method sourceWithOffset (line 2) | sourceWithOffset(e,t,n){t&&(this._catchUp(e,t),this._buf.sourceWithOff...
method withSource (line 2) | withSource(e,t,n){t?(this._catchUp(e,t),this._buf.withSource(e,t,n)):n()}
method sourceIdentifierName (line 2) | sourceIdentifierName(e,t){if(!this._buf._canMarkIdName)return;const n=...
method _space (line 2) | _space(){this._queue(32)}
method _newline (line 2) | _newline(){this._queue(10)}
method _append (line 2) | _append(e,t){this._maybeAddParen(e),this._maybeIndent(e.charCodeAt(0))...
method _appendChar (line 2) | _appendChar(e){this._maybeAddParenChar(e),this._maybeIndent(e),this._b...
method _queue (line 2) | _queue(e){this._maybeAddParenChar(e),this._maybeIndent(e),this._buf.qu...
method _maybeIndent (line 2) | _maybeIndent(e){this._indent&&10!==e&&this.endsWith(10)&&this._buf.que...
method _shouldIndent (line 2) | _shouldIndent(e){if(this._indent&&10!==e&&this.endsWith(10))return!0}
method _maybeAddParenChar (line 2) | _maybeAddParenChar(e){const t=this._parenPushNewlineState;t&&32!==e&&(...
method _maybeAddParen (line 2) | _maybeAddParen(e){const t=this._parenPushNewlineState;if(!t)return;con...
method catchUp (line 2) | catchUp(e){if(!this.format.retainLines)return;const t=e-this._buf.getC...
method _catchUp (line 2) | _catchUp(e,t){var n;if(!this.format.retainLines)return;const r=null==t...
method _getIndent (line 2) | _getIndent(){return this._indentRepeat*this._indent}
method printTerminatorless (line 2) | printTerminatorless(e,t,n){if(n)this._noLineTerminator=!0,this.print(e...
method print (line 2) | print(e,t,n,r,i){var s;if(!e)return;this._endsWithInnerRaw=!1;const a=...
method _maybeAddAuxComment (line 2) | _maybeAddAuxComment(e){e&&this._printAuxBeforeComment(),this._insideAu...
method _printAuxBeforeComment (line 2) | _printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;t...
method _printAuxAfterComment (line 2) | _printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;t...
method getPossibleRaw (line 2) | getPossibleRaw(e){const t=e.extra;if(null!=(null==t?void 0:t.raw)&&nul...
method printJoin (line 2) | printJoin(e,t,n={}){if(null==e||!e.length)return;let{indent:r}=n;if(nu...
method printAndIndentOnComments (line 2) | printAndIndentOnComments(e,t){const n=e.leadingComments&&e.leadingComm...
method printBlock (line 2) | printBlock(e){const t=e.body;"EmptyStatement"!==t.type&&this.space(),t...
method _printTrailingComments (line 2) | _printTrailingComments(e,t,n){const{innerComments:r,trailingComments:i...
method _printLeadingComments (line 2) | _printLeadingComments(e,t){const n=e.leadingComments;null!=n&&n.length...
method _maybePrintInnerComments (line 2) | _maybePrintInnerComments(){this._endsWithInnerRaw&&this.printInnerComm...
method printInnerComments (line 2) | printInnerComments(){const e=this._printStack[this._printStack.length-...
method noIndentInnerCommentsHere (line 2) | noIndentInnerCommentsHere(){this._indentInnerComments=!1}
method printSequence (line 2) | printSequence(e,t,n={}){n.statement=!0,null!=n.indent||(n.indent=!1),t...
method printList (line 2) | printList(e,t,n={}){null==n.separator&&(n.separator=S),this.printJoin(...
method _printNewline (line 2) | _printNewline(e,t){const n=this.format;if(n.retainLines||n.compact)ret...
method _shouldPrintComment (line 2) | _shouldPrintComment(e){return e.ignore||this._printedComments.has(e)?0...
method _printComment (line 2) | _printComment(e,t){const n=this._noLineTerminator,r="CommentBlock"===e...
method _printComments (line 2) | _printComments(e,t,n,r,i=0){const s=n.loc,a=t.length;let h=!!s;const d...
function E (line 2) | function E(e){return!!e&&(d(e)?E(e.object)||E(e.property):p(e)?"require"...
function S (line 2) | function S(e){return h(e)||f(e)||s(e)||p(e)||d(e)}
method AssignmentExpression (line 2) | AssignmentExpression(e){const t=b(e.right);if(t.hasCall&&t.hasHelper||t....
method LogicalExpression (line 2) | LogicalExpression(e){if(u(e.left)||u(e.right))return 2}
method Literal (line 2) | Literal(e){if(T(e)&&"use strict"===e.value)return 2}
method CallExpression (line 2) | CallExpression(e){if(u(e.callee)||E(e))return 3}
method OptionalCallExpression (line 2) | OptionalCallExpression(e){if(u(e.callee))return 3}
method VariableDeclaration (line 2) | VariableDeclaration(e){for(let t=0;t<e.declarations.length;t++){const n=...
method IfStatement (line 2) | IfStatement(e){if(l(e.consequent))return 3}
class b (line 2) | class b{constructor(e,t){this.inForStatementInitCounter=0,this._printSta...
method constructor (line 2) | constructor(e,t){this.inForStatementInitCounter=0,this._printStack=[],...
method generate (line 2) | generate(e){return this.print(e),this._maybeAddAuxComment(),this._buf....
method indent (line 2) | indent(){this.format.compact||this.format.concise||this._indent++}
method dedent (line 2) | dedent(){this.format.compact||this.format.concise||this._indent--}
method semicolon (line 2) | semicolon(e=!1){this._maybeAddAuxComment(),e?this._appendChar(59):this...
method rightBrace (line 2) | rightBrace(e){this.format.minified&&this._buf.removeLastSemicolon(),th...
method rightParens (line 2) | rightParens(e){this.sourceWithOffset("end",e.loc,-1),this.tokenChar(41)}
method space (line 2) | space(e=!1){if(!this.format.compact)if(e)this._space();else if(this._b...
method word (line 2) | word(e,t=!1){this._maybePrintInnerComments(),(this._endsWithWord||47==...
method number (line 2) | number(e){this.word(e),this._endsWithInteger=Number.isInteger(+e)&&!f....
method token (line 2) | token(e,t=!1){this._maybePrintInnerComments();const n=this.getLastChar...
method tokenChar (line 2) | tokenChar(e){this._maybePrintInnerComments();const t=this.getLastChar(...
method newline (line 2) | newline(e=1,t){if(!(e<=0)){if(!t){if(this.format.retainLines||this.for...
method endsWith (line 2) | endsWith(e){return this.getLastChar()===e}
method getLastChar (line 2) | getLastChar(){return this._buf.getLastChar()}
method endsWithCharAndNewline (line 2) | endsWithCharAndNewline(){return this._buf.endsWithCharAndNewline()}
method removeTrailingNewline (line 2) | removeTrailingNewline(){this._buf.removeTrailingNewline()}
method exactSource (line 2) | exactSource(e,t){e?(this._catchUp("start",e),this._buf.exactSource(e,t...
method source (line 2) | source(e,t){t&&(this._catchUp(e,t),this._buf.source(e,t))}
method sourceWithOffset (line 2) | sourceWithOffset(e,t,n){t&&(this._catchUp(e,t),this._buf.sourceWithOff...
method withSource (line 2) | withSource(e,t,n){t?(this._catchUp(e,t),this._buf.withSource(e,t,n)):n()}
method sourceIdentifierName (line 2) | sourceIdentifierName(e,t){if(!this._buf._canMarkIdName)return;const n=...
method _space (line 2) | _space(){this._queue(32)}
method _newline (line 2) | _newline(){this._queue(10)}
method _append (line 2) | _append(e,t){this._maybeAddParen(e),this._maybeIndent(e.charCodeAt(0))...
method _appendChar (line 2) | _appendChar(e){this._maybeAddParenChar(e),this._maybeIndent(e),this._b...
method _queue (line 2) | _queue(e){this._maybeAddParenChar(e),this._maybeIndent(e),this._buf.qu...
method _maybeIndent (line 2) | _maybeIndent(e){this._indent&&10!==e&&this.endsWith(10)&&this._buf.que...
method _shouldIndent (line 2) | _shouldIndent(e){if(this._indent&&10!==e&&this.endsWith(10))return!0}
method _maybeAddParenChar (line 2) | _maybeAddParenChar(e){const t=this._parenPushNewlineState;t&&32!==e&&(...
method _maybeAddParen (line 2) | _maybeAddParen(e){const t=this._parenPushNewlineState;if(!t)return;con...
method catchUp (line 2) | catchUp(e){if(!this.format.retainLines)return;const t=e-this._buf.getC...
method _catchUp (line 2) | _catchUp(e,t){var n;if(!this.format.retainLines)return;const r=null==t...
method _getIndent (line 2) | _getIndent(){return this._indentRepeat*this._indent}
method printTerminatorless (line 2) | printTerminatorless(e,t,n){if(n)this._noLineTerminator=!0,this.print(e...
method print (line 2) | print(e,t,n,r,i){var s;if(!e)return;this._endsWithInnerRaw=!1;const a=...
method _maybeAddAuxComment (line 2) | _maybeAddAuxComment(e){e&&this._printAuxBeforeComment(),this._insideAu...
method _printAuxBeforeComment (line 2) | _printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;t...
method _printAuxAfterComment (line 2) | _printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;t...
method getPossibleRaw (line 2) | getPossibleRaw(e){const t=e.extra;if(null!=(null==t?void 0:t.raw)&&nul...
method printJoin (line 2) | printJoin(e,t,n={}){if(null==e||!e.length)return;let{indent:r}=n;if(nu...
method printAndIndentOnComments (line 2) | printAndIndentOnComments(e,t){const n=e.leadingComments&&e.leadingComm...
method printBlock (line 2) | printBlock(e){const t=e.body;"EmptyStatement"!==t.type&&this.space(),t...
method _printTrailingComments (line 2) | _printTrailingComments(e,t,n){const{innerComments:r,trailingComments:i...
method _printLeadingComments (line 2) | _printLeadingComments(e,t){const n=e.leadingComments;null!=n&&n.length...
method _maybePrintInnerComments (line 2) | _maybePrintInnerComments(){this._endsWithInnerRaw&&this.printInnerComm...
method printInnerComments (line 2) | printInnerComments(){const e=this._printStack[this._printStack.length-...
method noIndentInnerCommentsHere (line 2) | noIndentInnerCommentsHere(){this._indentInnerComments=!1}
method printSequence (line 2) | printSequence(e,t,n={}){n.statement=!0,null!=n.indent||(n.indent=!1),t...
method printList (line 2) | printList(e,t,n={}){null==n.separator&&(n.separator=S),this.printJoin(...
method _printNewline (line 2) | _printNewline(e,t){const n=this.format;if(n.retainLines||n.compact)ret...
method _shouldPrintComment (line 2) | _shouldPrintComment(e){return e.ignore||this._printedComments.has(e)?0...
method _printComment (line 2) | _printComment(e,t){const n=this._noLineTerminator,r="CommentBlock"===e...
method _printComments (line 2) | _printComments(e,t,n,r,i=0){const s=n.loc,a=t.length;let h=!!s;const d...
function S (line 2) | function S(){this.tokenChar(44),this.space()}
method constructor (line 2) | constructor(e,t){var n;this._map=void 0,this._rawMappings=void 0,this._s...
method get (line 2) | get(){return(0,r.toEncodedMap)(this._map)}
method getDecoded (line 2) | getDecoded(){return(0,r.toDecodedMap)(this._map)}
method getRawMappings (line 2) | getRawMappings(){return this._rawMappings||(this._rawMappings=(0,r.allMa...
method mark (line 2) | mark(e,t,n,s,a,o){var l;let c;if(this._rawMappings=void 0,null!=t)if(thi...
function n (line 2) | function n(e){const{context:t,node:n}=e;if(n.computed&&t.maybeQueue(e.ge...
method FunctionParent (line 2) | FunctionParent(e){e.isArrowFunctionExpression()||(e.skip(),e.isMethod()&...
method Property (line 2) | Property(e){e.isObjectProperty()||(e.skip(),n(e))}
method "ReferencedIdentifier|BindingIdentifier" (line 2) | "ReferencedIdentifier|BindingIdentifier"(e,t){e.node.name===t.name&&e.sc...
method Scope (line 2) | Scope(e,t){"let"===t.kind&&e.skip()}
method FunctionParent (line 2) | FunctionParent(e){e.skip()}
method VariableDeclaration (line 2) | VariableDeclaration(e,t){if(t.kind&&e.node.kind!==t.kind)return;const n=...
function s (line 2) | function s(e,t,n,r){return"template"===e?96===t||36===t&&123===n.charCod...
method constructor (line 2) | constructor({file:e,sourceRoot:n}={}){this._names=new t.SetArray,this....
method constructor (line 2) | constructor(e,t={},n){const i=function(e,t){var n;const r={auxiliaryCo...
method generate (line 2) | generate(){return super.generate(this.ast)}
function a (line 2) | function a(e,t,n,r,i,s){const a=!i;t++;const l=e=>({pos:t,ch:e,lineStart...
function o (line 2) | function o(e,t,n,r,i,s,a,o){const c=t;let u;return({n:u,pos:t}=l(e,t,n,r...
function l (line 2) | function l(e,t,s,a,o,l,c,u,p,h){const d=t,f=16===o?r.hex:r.decBinOct,y=1...
function c (line 2) | function c(e,t,n,r,i,s){let a;if(123===e.charCodeAt(t)){if(++t,({code:a,...
function l (line 2) | function l(e,t){let n=65536;for(let r=0,i=t.length;r<i;r+=2){if(n+=t[r],...
function c (line 2) | function c(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e...
function u (line 2) | function u(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=...
function s (line 2) | function s(e,t){return t&&"await"===e||"enum"===e}
method constructor (line 2) | constructor({file:e,sourceRoot:n}={}){this._names=new t.SetArray,this....
method constructor (line 2) | constructor(e,t={},n){const i=function(e,t){var n;const r={auxiliaryCo...
method generate (line 2) | generate(){return super.generate(this.ast)}
function a (line 2) | function a(e,t){return s(e,t)||r.has(e)}
function o (line 2) | function o(e){return i.has(e)}
function a (line 2) | function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMa...
function h (line 2) | function h(e){return s.default.level>0||e.forceColor}
function d (line 2) | function d(e){return e?(null!=p||(p=new s.default.constructor({enabled:!...
function n (line 2) | function n(e,t){if(null==e)return{};var n,r,i={},s=Object.keys(e);for(r=...
class r (line 2) | class r{constructor(e,t,n){this.line=void 0,this.column=void 0,this.inde...
method constructor (line 2) | constructor(e,t,n){this.line=void 0,this.column=void 0,this.index=void...
class i (line 2) | class i{constructor(e,t){this.start=void 0,this.end=void 0,this.filename...
method constructor (line 2) | constructor(e,t){this.start=void 0,this.end=void 0,this.filename=void ...
function s (line 2) | function s(e,t){const{line:n,column:i,index:s}=e;return new r(n,i+t,s+t)}
method constructor (line 2) | constructor({file:e,sourceRoot:n}={}){this._names=new t.SetArray,this....
method constructor (line 2) | constructor(e,t={},n){const i=function(e,t){var n;const r={auxiliaryCo...
method generate (line 2) | generate(){return super.generate(this.ast)}
function y (line 2) | function y(e,t,n){Object.defineProperty(e,t,{enumerable:!1,configurable:...
function m (line 2) | function m(e){let{toMessage:t}=e,i=n(e,d);return function e({loc:n,detai...
function T (line 2) | function T(e,t){if(Array.isArray(e))return t=>T(t,e[0]);const r={};for(c...
function S (line 2) | function S(e){return e.loc.start&&E(e.loc.start,"index"),e.loc.end&&E(e....
class P (line 2) | class P{constructor(e,t){this.token=void 0,this.preserveSpace=void 0,thi...
method constructor (line 2) | constructor(e,t){this.token=void 0,this.preserveSpace=void 0,this.toke...
class O (line 2) | class O{constructor(e,t={}){this.label=void 0,this.keyword=void 0,this.b...
method constructor (line 2) | constructor(e,t){const n="string"==typeof e;if(!n&&e._decodedMemo)retu...
method constructor (line 2) | constructor(e,t={}){this.label=void 0,this.keyword=void 0,this.beforeE...
function N (line 2) | function N(e,t={}){t.keyword=e;const n=U(e,t);return I.set(e,n),n}
function F (line 2) | function F(e,t){return U(e,{beforeExpr:D,binop:t})}
function U (line 2) | function U(e,t={}){var n,r,i,s;return++k,_.push(e),M.push(null!=(n=t.bin...
function V (line 2) | function V(e,t={}){var n,r,i,s;return++k,I.set(e,k),_.push(e),M.push(nul...
function W (line 2) | function W(e){return e>=93&&e<=130}
function X (line 2) | function X(e){return e>=58&&e<=130}
function Y (line 2) | function Y(e){return e>=58&&e<=134}
function q (line 2) | function q(e){return j[e]}
function H (line 2) | function H(e){return e>=127&&e<=129}
function J (line 2) | function J(e){return e>=58&&e<=92}
function $ (line 2) | function $(e){return _[e]}
function G (line 2) | function G(e){return M[e]}
function z (line 2) | function z(e){return e>=24&&e<=25}
function Q (line 2) | function Q(e){return L[e]}
function se (line 2) | function se(e,t){let n=65536;for(let r=0,i=t.length;r<i;r+=2){if(n+=t[r]...
function ae (line 2) | function ae(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?...
function oe (line 2) | function oe(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<...
function pe (line 2) | function pe(e,t){return t&&"await"===e||"enum"===e}
function he (line 2) | function he(e,t){return pe(e,t)||ce.has(e)}
function de (line 2) | function de(e){return ue.has(e)}
function fe (line 2) | function fe(e,t){return he(e,t)||de(e)}
class me (line 2) | class me{constructor(e){this.var=new Set,this.lexical=new Set,this.funct...
method constructor (line 2) | constructor(e){this.var=new Set,this.lexical=new Set,this.functions=ne...
class Te (line 2) | class Te{constructor(e,t){this.parser=void 0,this.scopeStack=[],this.inM...
method constructor (line 2) | constructor(e,t){this.parser=void 0,this.scopeStack=[],this.inModule=v...
method inTopLevel (line 2) | get inTopLevel(){return(1&this.currentScope().flags)>0}
method inFunction (line 2) | get inFunction(){return(2&this.currentVarScopeFlags())>0}
method allowSuper (line 2) | get allowSuper(){return(16&this.currentThisScopeFlags())>0}
method allowDirectSuper (line 2) | get allowDirectSuper(){return(32&this.currentThisScopeFlags())>0}
method inClass (line 2) | get inClass(){return(64&this.currentThisScopeFlags())>0}
method inClassAndNotInNonArrowFunction (line 2) | get inClassAndNotInNonArrowFunction(){const e=this.currentThisScopeFla...
method inStaticBlock (line 2) | get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){const{fla...
method inNonArrowFunction (line 2) | get inNonArrowFunction(){return(2&this.currentThisScopeFlags())>0}
method treatFunctionsAsVar (line 2) | get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this....
method createScope (line 2) | createScope(e){return new me(e)}
method enter (line 2) | enter(e){this.scopeStack.push(this.createScope(e))}
method exit (line 2) | exit(){return this.scopeStack.pop().flags}
method treatFunctionsAsVarInScope (line 2) | treatFunctionsAsVarInScope(e){return!!(130&e.flags||!this.parser.inMod...
method declareName (line 2) | declareName(e,t,n){let r=this.currentScope();if(8&t||16&t)this.checkRe...
method maybeExportDefined (line 2) | maybeExportDefined(e,t){this.parser.inModule&&1&e.flags&&this.undefine...
method checkRedeclarationInScope (line 2) | checkRedeclarationInScope(e,t,n,r){this.isRedeclaredInScope(e,t,n)&&th...
method isRedeclaredInScope (line 2) | isRedeclaredInScope(e,t,n){return!!(1&n)&&(8&n?e.lexical.has(t)||e.fun...
method checkLocalExport (line 2) | checkLocalExport(e){const{name:t}=e,n=this.scopeStack[0];n.lexical.has...
method currentScope (line 2) | currentScope(){return this.scopeStack[this.scopeStack.length-1]}
method currentVarScopeFlags (line 2) | currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){const{...
method currentThisScopeFlags (line 2) | currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){const...
class ge (line 2) | class ge extends me{constructor(...e){super(...e),this.declareFunctions=...
method constructor (line 2) | constructor(...e){super(...e),this.declareFunctions=new Set}
class be (line 2) | class be extends Te{createScope(e){return new ge(e)}declareName(e,t,n){c...
method createScope (line 2) | createScope(e){return new ge(e)}
method declareName (line 2) | declareName(e,t,n){const r=this.currentScope();if(2048&t)return this.c...
method isRedeclaredInScope (line 2) | isRedeclaredInScope(e,t,n){return!!super.isRedeclaredInScope(e,t,n)||!...
method checkLocalExport (line 2) | checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||s...
class Ee (line 2) | class Ee{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDif...
method constructor (line 2) | constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentA...
method hasPlugin (line 2) | hasPlugin(e){if("string"==typeof e)return this.plugins.has(e);{const[t...
method getPluginOption (line 2) | getPluginOption(e,t){var n;return null==(n=this.plugins.get(e))?void 0...
function Se (line 2) | function Se(e,t){void 0===e.trailingComments?e.trailingComments=t:e.trai...
function Pe (line 2) | function Pe(e,t){void 0===e.innerComments?e.innerComments=t:e.innerComme...
function xe (line 2) | function xe(e,t,n){let r=null,i=t.length;for(;null===r&&i>0;)r=t[--i];nu...
class De (line 2) | class De extends Ee{addComment(e){this.filename&&(e.loc.filename=this.fi...
method addComment (line 2) | addComment(e){this.filename&&(e.loc.filename=this.filename),this.state...
method processComment (line 2) | processComment(e){const{commentStack:t}=this.state,n=t.length;if(0===n...
method finalizeComment (line 2) | finalizeComment(e){const{comments:t}=e;if(null!==e.leadingNode||null!=...
method finalizeRemainingComments (line 2) | finalizeRemainingComments(){const{commentStack:e}=this.state;for(let t...
method resetPreviousNodeTrailingComments (line 2) | resetPreviousNodeTrailingComments(e){const{commentStack:t}=this.state,...
method resetPreviousIdentifierLeadingComments (line 2) | resetPreviousIdentifierLeadingComments(e){const{commentStack:t}=this.s...
method takeSurroundingComments (line 2) | takeSurroundingComments(e,t,n){const{commentStack:r}=this.state,i=r.le...
function Ce (line 2) | function Ce(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;de...
function Ne (line 2) | function Ne(e){switch(e){case 9:case 11:case 12:case 32:case 160:case 57...
class Fe (line 2) | class Fe{constructor(){this.strict=void 0,this.curLine=void 0,this.lineS...
method constructor (line 2) | constructor(){this.strict=void 0,this.curLine=void 0,this.lineStart=vo...
method init (line 2) | init({strictMode:e,sourceType:t,startLine:n,startColumn:i}){this.stric...
method curPosition (line 2) | curPosition(){return new r(this.curLine,this.pos-this.lineStart,this.p...
method clone (line 2) | clone(e){const t=new Fe,n=Object.keys(this);for(let r=0,i=n.length;r<i...
function Me (line 2) | function Me(e,t,n,r,i,s){const a=n,o=r,l=i;let c="",u=null,p=n;const{len...
function Be (line 2) | function Be(e,t,n,r){return"template"===e?96===t||36===t&&123===n.charCo...
function je (line 2) | function je(e,t,n,r,i,s){const a=!i;t++;const o=e=>({pos:t,ch:e,lineStar...
function Re (line 2) | function Re(e,t,n,r,i,s,a,o){const l=t;let c;return({n:c,pos:t}=Ue(e,t,n...
function Ue (line 2) | function Ue(e,t,n,r,i,s,a,o,l,c){const u=t,p=16===i?Le.hex:Le.decBinOct,...
function Ve (line 2) | function Ve(e,t,n,r,i,s){let a;if(123===e.charCodeAt(t)){if(++t,({code:a...
function Xe (line 2) | function Xe(e,t,n){return new r(n,e-t,e)}
class qe (line 2) | class qe{constructor(e){this.type=e.type,this.value=e.value,this.start=e...
method constructor (line 2) | constructor(e){this.type=e.type,this.value=e.value,this.start=e.start,...
class He (line 2) | class He extends De{constructor(e,t){super(),this.isLookahead=void 0,thi...
method constructor (line 2) | constructor(e,t){super(),this.isLookahead=void 0,this.tokens=[],this.e...
method pushToken (line 2) | pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.pu...
method next (line 2) | next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(...
method eat (line 2) | eat(e){return!!this.match(e)&&(this.next(),!0)}
method match (line 2) | match(e){return this.state.type===e}
method createLookaheadState (line 2) | createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:...
method lookahead (line 2) | lookahead(){const e=this.state;this.state=this.createLookaheadState(e)...
method nextTokenStart (line 2) | nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}
method nextTokenStartSince (line 2) | nextTokenStartSince(e){return we.lastIndex=e,we.test(this.input)?we.la...
method lookaheadCharCode (line 2) | lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}
method nextTokenInLineStart (line 2) | nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.stat...
method nextTokenInLineStartSince (line 2) | nextTokenInLineStartSince(e){return Oe.lastIndex=e,Oe.test(this.input)...
method lookaheadInLineCharCode (line 2) | lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenI...
method codePointAtPos (line 2) | codePointAtPos(e){let t=this.input.charCodeAt(e);if(55296==(64512&t)&&...
method setStrict (line 2) | setStrict(e){this.state.strict=e,e&&(this.state.strictErrors.forEach((...
method curContext (line 2) | curContext(){return this.state.context[this.state.context.length-1]}
method nextToken (line 2) | nextToken(){this.skipSpace(),this.state.start=this.state.pos,this.isLo...
method skipBlockComment (line 2) | skipBlockComment(e){let t;this.isLookahead||(t=this.state.curPosition(...
method skipLineComment (line 2) | skipLineComment(e){const t=this.state.pos;let n;this.isLookahead||(n=t...
method skipSpace (line 2) | skipSpace(){const e=this.state.pos,t=[];e:for(;this.state.pos<this.len...
method finishToken (line 2) | finishToken(e,t){this.state.end=this.state.pos,this.state.endLoc=this....
method replaceToken (line 2) | replaceToken(e){this.state.type=e,this.updateContext()}
method readToken_numberSign (line 2) | readToken_numberSign(){if(0===this.state.pos&&this.readToken_interpret...
method readToken_dot (line 2) | readToken_dot(){const e=this.input.charCodeAt(this.state.pos+1);e>=48&...
method readToken_slash (line 2) | readToken_slash(){61===this.input.charCodeAt(this.state.pos+1)?this.fi...
method readToken_interpreter (line 2) | readToken_interpreter(){if(0!==this.state.pos||this.length<2)return!1;...
method readToken_mult_modulo (line 2) | readToken_mult_modulo(e){let t=42===e?55:54,n=1,r=this.input.charCodeA...
method readToken_pipe_amp (line 2) | readToken_pipe_amp(e){const t=this.input.charCodeAt(this.state.pos+1);...
method readToken_caret (line 2) | readToken_caret(){const e=this.input.charCodeAt(this.state.pos+1);61!=...
method readToken_atSign (line 2) | readToken_atSign(){64===this.input.charCodeAt(this.state.pos+1)&&this....
method readToken_plus_min (line 2) | readToken_plus_min(e){const t=this.input.charCodeAt(this.state.pos+1);...
method readToken_lt (line 2) | readToken_lt(){const{pos:e}=this.state,t=this.input.charCodeAt(e+1);if...
method readToken_gt (line 2) | readToken_gt(){const{pos:e}=this.state,t=this.input.charCodeAt(e+1);if...
method readToken_eq_excl (line 2) | readToken_eq_excl(e){const t=this.input.charCodeAt(this.state.pos+1);i...
method readToken_question (line 2) | readToken_question(){const e=this.input.charCodeAt(this.state.pos+1),t...
method getTokenFromCode (line 2) | getTokenFromCode(e){switch(e){case 46:return void this.readToken_dot()...
method finishOp (line 2) | finishOp(e,t){const n=this.input.slice(this.state.pos,this.state.pos+t...
method readRegexp (line 2) | readRegexp(){const e=this.state.startLoc,t=this.state.start+1;let n,r,...
method readInt (line 2) | readInt(e,t,n=!1,r=!0){const{n:i,pos:s}=Ue(this.input,this.state.pos,t...
method readRadixNumber (line 2) | readRadixNumber(e){const t=this.state.curPosition();let n=!1;this.stat...
method readNumber (line 2) | readNumber(e){const t=this.state.pos,n=this.state.curPosition();let r=...
method readCodePoint (line 2) | readCodePoint(e){const{code:t,pos:n}=Ve(this.input,this.state.pos,this...
method readString (line 2) | readString(e){const{str:t,pos:n,curLine:r,lineStart:i}=Me(34===e?"doub...
method readTemplateContinuation (line 2) | readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this...
method readTemplateToken (line 2) | readTemplateToken(){const e=this.input[this.state.pos],{str:t,firstInv...
method recordStrictModeErrors (line 2) | recordStrictModeErrors(e,{at:t}){const n=t.index;this.state.strict&&!t...
method readWord1 (line 2) | readWord1(e){this.state.containsEsc=!1;let t="";const n=this.state.pos...
method readWord (line 2) | readWord(e){const t=this.readWord1(e),n=I.get(t);void 0!==n?this.finis...
method checkKeywordEscapes (line 2) | checkKeywordEscapes(){const{type:e}=this.state;J(e)&&this.state.contai...
method raise (line 2) | raise(e,t){const{at:i}=t,s=n(t,Ke),a=e({loc:i instanceof r?i:i.loc.sta...
method raiseOverwrite (line 2) | raiseOverwrite(e,t){const{at:i}=t,s=n(t,We),a=i instanceof r?i:i.loc.s...
method updateContext (line 2) | updateContext(e){}
method unexpected (line 2) | unexpected(e,t){throw this.raise(g.UnexpectedToken,{expected:t?$(t):nu...
method expectPlugin (line 2) | expectPlugin(e,t){if(this.hasPlugin(e))return!0;throw this.raise(g.Mis...
method expectOnePlugin (line 2) | expectOnePlugin(e){if(!e.some((e=>this.hasPlugin(e))))throw this.raise...
method errorBuilder (line 2) | errorBuilder(e){return(t,n,r)=>{this.raise(e,{at:Xe(t,n,r)})}}
class Je (line 2) | class Je{constructor(){this.privateNames=new Set,this.loneAccessors=new ...
method constructor (line 2) | constructor(){this.privateNames=new Set,this.loneAccessors=new Map,thi...
class $e (line 2) | class $e{constructor(e){this.parser=void 0,this.stack=[],this.undefinedP...
method constructor (line 2) | constructor(e){this.parser=void 0,this.stack=[],this.undefinedPrivateN...
method current (line 2) | current(){return this.stack[this.stack.length-1]}
method enter (line 2) | enter(){this.stack.push(new Je)}
method exit (line 2) | exit(){const e=this.stack.pop(),t=this.current();for(const[n,r]of Arra...
method declarePrivateName (line 2) | declarePrivateName(e,t,n){const{privateNames:r,loneAccessors:i,undefin...
method usePrivateName (line 2) | usePrivateName(e,t){let n;for(n of this.stack)if(n.privateNames.has(e)...
class Ge (line 2) | class Ge{constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){r...
method constructor (line 2) | constructor(e=0){this.type=e}
method canBeArrowParameterDeclaration (line 2) | canBeArrowParameterDeclaration(){return 2===this.type||1===this.type}
method isCertainlyParameterDeclaration (line 2) | isCertainlyParameterDeclaration(){return 3===this.type}
class ze (line 2) | class ze extends Ge{constructor(e){super(e),this.declarationErrors=new M...
method constructor (line 2) | constructor(e){super(e),this.declarationErrors=new Map}
method recordDeclarationError (line 2) | recordDeclarationError(e,{at:t}){const n=t.index;this.declarationError...
method clearDeclarationError (line 2) | clearDeclarationError(e){this.declarationErrors.delete(e)}
method iterateErrors (line 2) | iterateErrors(e){this.declarationErrors.forEach(e)}
class Qe (line 2) | class Qe{constructor(e){this.parser=void 0,this.stack=[new Ge],this.pars...
method constructor (line 2) | constructor(e){this.parser=void 0,this.stack=[new Ge],this.parser=e}
method enter (line 2) | enter(e){this.stack.push(e)}
method exit (line 2) | exit(){this.stack.pop()}
method recordParameterInitializerError (line 2) | recordParameterInitializerError(e,{at:t}){const n={at:t.loc.start},{st...
method recordArrowParameterBindingError (line 2) | recordArrowParameterBindingError(e,{at:t}){const{stack:n}=this,r=n[n.l...
method recordAsyncArrowParametersError (line 2) | recordAsyncArrowParametersError({at:e}){const{stack:t}=this;let n=t.le...
method validateAsPattern (line 2) | validateAsPattern(){const{stack:e}=this,t=e[e.length-1];t.canBeArrowPa...
function Ze (line 2) | function Ze(){return new Ge}
class et (line 2) | class et{constructor(){this.stacks=[]}enter(e){this.stacks.push(e)}exit(...
method constructor (line 2) | constructor(){this.stacks=[]}
method enter (line 2) | enter(e){this.stacks.push(e)}
method exit (line 2) | exit(){this.stacks.pop()}
method currentFlags (line 2) | currentFlags(){return this.stacks[this.stacks.length-1]}
method hasAwait (line 2) | get hasAwait(){return(2&this.currentFlags())>0}
method hasYield (line 2) | get hasYield(){return(1&this.currentFlags())>0}
method hasReturn (line 2) | get hasReturn(){return(4&this.currentFlags())>0}
method hasIn (line 2) | get hasIn(){return(8&this.currentFlags())>0}
function tt (line 2) | function tt(e,t){return(e?2:0)|(t?1:0)}
class nt (line 2) | class nt extends He{addExtra(e,t,n,r=!0){if(!e)return;const i=e.extra=e....
method addExtra (line 2) | addExtra(e,t,n,r=!0){if(!e)return;const i=e.extra=e.extra||{};r?i[t]=n...
method isContextual (line 2) | isContextual(e){return this.state.type===e&&!this.state.containsEsc}
method isUnparsedContextual (line 2) | isUnparsedContextual(e,t){const n=e+t.length;if(this.input.slice(e,n)=...
method isLookaheadContextual (line 2) | isLookaheadContextual(e){const t=this.nextTokenStart();return this.isU...
method eatContextual (line 2) | eatContextual(e){return!!this.isContextual(e)&&(this.next(),!0)}
method expectContextual (line 2) | expectContextual(e,t){if(!this.eatContextual(e)){if(null!=t)throw this...
method canInsertSemicolon (line 2) | canInsertSemicolon(){return this.match(137)||this.match(8)||this.hasPr...
method hasPrecedingLineBreak (line 2) | hasPrecedingLineBreak(){return Ae.test(this.input.slice(this.state.las...
method hasFollowingLineBreak (line 2) | hasFollowingLineBreak(){return Ie.lastIndex=this.state.end,Ie.test(thi...
method isLineTerminator (line 2) | isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}
method semicolon (line 2) | semicolon(e=!0){(e?this.isLineTerminator():this.eat(13))||this.raise(g...
method expect (line 2) | expect(e,t){this.eat(e)||this.unexpected(t,e)}
method tryParse (line 2) | tryParse(e,t=this.state.clone()){const n={node:null};try{const r=e(((e...
method checkExpressionErrors (line 2) | checkExpressionErrors(e,t){if(!e)return!1;const{shorthandAssignLoc:n,d...
method isLiteralPropertyName (line 2) | isLiteralPropertyName(){return Y(this.state.type)}
method isPrivateName (line 2) | isPrivateName(e){return"PrivateName"===e.type}
method getPrivateNameSV (line 2) | getPrivateNameSV(e){return e.id.name}
method hasPropertyAsPrivateName (line 2) | hasPropertyAsPrivateName(e){return("MemberExpression"===e.type||"Optio...
method isObjectProperty (line 2) | isObjectProperty(e){return"ObjectProperty"===e.type}
method isObjectMethod (line 2) | isObjectMethod(e){return"ObjectMethod"===e.type}
method initializeScopes (line 2) | initializeScopes(e="module"===this.options.sourceType){const t=this.st...
method enterInitialScopes (line 2) | enterInitialScopes(){let e=0;this.inModule&&(e|=2),this.scope.enter(1)...
method checkDestructuringPrivate (line 2) | checkDestructuringPrivate(e){const{privateKeyLoc:t}=e;null!==t&&this.e...
class rt (line 2) | class rt{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=...
method constructor (line 2) | constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,th...
class it (line 2) | class it{constructor(e,t,n){this.type="",this.start=t,this.end=0,this.lo...
method constructor (line 2) | constructor(e,t,n){this.type="",this.start=t,this.end=0,this.loc=new i...
function at (line 2) | function at(e){const{type:t,start:n,end:r,loc:i,range:s,extra:a,name:o}=...
class ot (line 2) | class ot extends nt{startNode(){return new it(this,this.state.start,this...
method startNode (line 2) | startNode(){return new it(this,this.state.start,this.state.startLoc)}
method startNodeAt (line 2) | startNodeAt(e){return new it(this,e.index,e)}
method startNodeAtNode (line 2) | startNodeAtNode(e){return this.startNodeAt(e.loc.start)}
method finishNode (line 2) | finishNode(e,t){return this.finishNodeAt(e,t,this.state.lastTokEndLoc)}
method finishNodeAt (line 2) | finishNodeAt(e,t,n){return e.type=t,e.end=n.index,e.loc.end=n,this.opt...
method resetStartLocation (line 2) | resetStartLocation(e,t){e.start=t.index,e.loc.start=t,this.options.ran...
method resetEndLocation (line 2) | resetEndLocation(e,t=this.state.lastTokEndLoc){e.end=t.index,e.loc.end...
method resetStartLocationFromNode (line 2) | resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.loc.start)}
function ut (line 2) | function ut(e){return"type"===e.importKind||"typeof"===e.importKind}
function yt (line 2) | function yt(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFra...
function mt (line 2) | function mt(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespac...
class Tt (line 2) | class Tt extends me{constructor(...e){super(...e),this.types=new Set,thi...
method constructor (line 2) | constructor(...e){super(...e),this.types=new Set,this.enums=new Set,th...
class gt (line 2) | class gt extends Te{constructor(...e){super(...e),this.importsStack=[]}c...
method constructor (line 2) | constructor(...e){super(...e),this.importsStack=[]}
method createScope (line 2) | createScope(e){return this.importsStack.push(new Set),new Tt(e)}
method enter (line 2) | enter(e){256==e&&this.importsStack.push(new Set),super.enter(e)}
method exit (line 2) | exit(){const e=super.exit();return 256==e&&this.importsStack.pop(),e}
method hasImport (line 2) | hasImport(e,t){const n=this.importsStack.length;if(this.importsStack[n...
method declareName (line 2) | declareName(e,t,n){if(4096&t)return this.hasImport(e,!0)&&this.parser....
method isRedeclaredInScope (line 2) | isRedeclaredInScope(e,t,n){return e.enums.has(t)?!(256&n)||!!(512&n)!=...
method checkLocalExport (line 2) | checkLocalExport(e){const{name:t}=e;if(!this.hasImport(t)){for(let e=t...
class Et (line 2) | class Et extends ot{toAssignable(e,t=!1){var n,r;let i;switch(("Parenthe...
method toAssignable (line 2) | toAssignable(e,t=!1){var n,r;let i;switch(("ParenthesizedExpression"==...
method toAssignableObjectExpressionProp (line 2) | toAssignableObjectExpressionProp(e,t,n){if("ObjectMethod"===e.type)thi...
method toAssignableList (line 2) | toAssignableList(e,t,n){const r=e.length-1;for(let i=0;i<=r;i++){const...
method isAssignable (line 2) | isAssignable(e,t){switch(e.type){case"Identifier":case"ObjectPattern":...
method toReferencedList (line 2) | toReferencedList(e,t){return e}
method toReferencedListDeep (line 2) | toReferencedListDeep(e,t){this.toReferencedList(e,t);for(const t of e)...
method parseSpread (line 2) | parseSpread(e){const t=this.startNode();return this.next(),t.argument=...
method parseRestBinding (line 2) | parseRestBinding(){const e=this.startNode();return this.next(),e.argum...
method parseBindingAtom (line 2) | parseBindingAtom(){switch(this.state.type){case 0:{const e=this.startN...
method parseBindingList (line 2) | parseBindingList(e,t,n){const r=1&n,i=[];let s=!0;for(;!this.eat(e);)i...
method parseBindingRestProperty (line 2) | parseBindingRestProperty(e){return this.next(),e.argument=this.parseId...
method parseBindingProperty (line 2) | parseBindingProperty(){const e=this.startNode(),{type:t,startLoc:n}=th...
method parseAssignableListItem (line 2) | parseAssignableListItem(e,t){const n=this.parseMaybeDefault();this.par...
method parseAssignableListItemTypes (line 2) | parseAssignableListItemTypes(e,t){return e}
method parseMaybeDefault (line 2) | parseMaybeDefault(e,t){var n;if(null!=e||(e=this.state.startLoc),t=nul...
method isValidLVal (line 2) | isValidLVal(e,t,n){return r={AssignmentPattern:"left",RestElement:"arg...
method checkLVal (line 2) | checkLVal(e,{in:t,binding:n=64,checkClashes:r=!1,strictModeChanged:i=!...
method checkIdentifier (line 2) | checkIdentifier(e,t,n=!1){this.state.strict&&(n?fe(e.name,this.inModul...
method declareNameFromIdentifier (line 2) | declareNameFromIdentifier(e,t){this.scope.declareName(e.name,t,e.loc.s...
method checkToRestConversion (line 2) | checkToRestConversion(e,t){switch(e.type){case"ParenthesizedExpression...
method checkCommaAfterRest (line 2) | checkCommaAfterRest(e){return!!this.match(12)&&(this.raise(this.lookah...
function St (line 2) | function St(e){if(!e)throw new Error("Assert fail")}
function xt (line 2) | function xt(e){return"private"===e||"public"===e||"protected"===e}
function Dt (line 2) | function Dt(e){return"in"===e||"out"===e}
function At (line 2) | function At(e){if("MemberExpression"!==e.type)return!1;const{computed:t,...
function vt (line 2) | function vt(e,t){var n;const{type:r}=e;if(null!=(n=e.extra)&&n.parenthes...
function Ct (line 2) | function Ct(e,t){return t?"Literal"===e.type&&("number"==typeof e.value|...
function wt (line 2) | function wt(e){return"Identifier"===e.type||"MemberExpression"===e.type&...
function It (line 2) | function It(e,t){const[n,r]="string"==typeof t?[t,{}]:t,i=Object.keys(r)...
function Nt (line 2) | function Nt(e,t,n){const r=e.find((e=>Array.isArray(e)?e[0]===t:e===t));...
method parse (line 2) | parse(){const e=S(super.parse());return this.options.tokens&&(e.tokens=e...
method parseRegExpLiteral (line 2) | parseRegExpLiteral({pattern:e,flags:t}){let n=null;try{n=new RegExp(e,t)...
method parseBigIntLiteral (line 2) | parseBigIntLiteral(e){let t;try{t=BigInt(e)}catch(e){t=null}const n=this...
method parseDecimalLiteral (line 2) | parseDecimalLiteral(e){const t=this.estreeParseLiteral(null);return t.de...
method estreeParseLiteral (line 2) | estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}
method parseStringLiteral (line 2) | parseStringLiteral(e){return this.estreeParseLiteral(e)}
method parseNumericLiteral (line 2) | parseNumericLiteral(e){return this.estreeParseLiteral(e)}
method parseNullLiteral (line 2) | parseNullLiteral(){return this.estreeParseLiteral(null)}
method parseBooleanLiteral (line 2) | parseBooleanLiteral(e){return this.estreeParseLiteral(e)}
method directiveToStmt (line 2) | directiveToStmt(e){const t=e.value;delete e.value,t.type="Literal",t.raw...
method initFunction (line 2) | initFunction(e,t){super.initFunction(e,t),e.expression=!1}
method checkDeclaration (line 2) | checkDeclaration(e){null!=e&&this.isObjectProperty(e)?this.checkDeclarat...
method getObjectOrClassMethodParams (line 2) | getObjectOrClassMethodParams(e){return e.value.params}
method isValidDirective (line 2) | isValidDirective(e){var t;return"ExpressionStatement"===e.type&&"Literal...
method parseBlockBody (line 2) | parseBlockBody(e,t,n,r,i){super.parseBlockBody(e,t,n,r,i);const s=e.dire...
method pushClassMethod (line 2) | pushClassMethod(e,t,n,r,i,s){this.parseMethod(t,n,r,i,s,"ClassMethod",!0...
method parsePrivateName (line 2) | parsePrivateName(){const e=super.parsePrivateName();return this.getPlugi...
method convertPrivateNameToPrivateIdentifier (line 2) | convertPrivateNameToPrivateIdentifier(e){const t=super.getPrivateNameSV(...
method isPrivateName (line 2) | isPrivateName(e){return this.getPluginOption("estree","classFeatures")?"...
method getPrivateNameSV (line 2) | getPrivateNameSV(e){return this.getPluginOption("estree","classFeatures"...
method parseLiteral (line 2) | parseLiteral(e,t){const n=super.parseLiteral(e,t);return n.raw=n.extra.r...
method parseFunctionBody (line 2) | parseFunctionBody(e,t,n=!1){super.parseFunctionBody(e,t,n),e.expression=...
method parseMethod (line 2) | parseMethod(e,t,n,r,i,s,a=!1){let o=this.startNode();return o.kind=e.kin...
method parseClassProperty (line 2) | parseClassProperty(...e){const t=super.parseClassProperty(...e);return t...
method parseClassPrivateProperty (line 2) | parseClassPrivateProperty(...e){const t=super.parseClassPrivateProperty(...
method parseObjectMethod (line 2) | parseObjectMethod(e,t,n,r,i){const s=super.parseObjectMethod(e,t,n,r,i);...
method parseObjectProperty (line 2) | parseObjectProperty(e,t,n,r){const i=super.parseObjectProperty(e,t,n,r);...
method isValidLVal (line 2) | isValidLVal(e,t,n){return"Property"===e?"value":super.isValidLVal(e,t,n)}
method isAssignable (line 2) | isAssignable(e,t){return null!=e&&this.isObjectProperty(e)?this.isAssign...
method toAssignable (line 2) | toAssignable(e,t=!1){if(null!=e&&this.isObjectProperty(e)){const{key:n,v...
method toAssignableObjectExpressionProp (line 2) | toAssignableObjectExpressionProp(e,t,n){"get"===e.kind||"set"===e.kind?t...
method finishCallExpression (line 2) | finishCallExpression(e,t){const n=super.finishCallExpression(e,t);var r;...
method toReferencedArguments (line 2) | toReferencedArguments(e){"ImportExpression"!==e.type&&super.toReferenced...
method parseExport (line 2) | parseExport(e,t){const n=this.state.lastTokStartLoc,r=super.parseExport(...
method parseSubscript (line 2) | parseSubscript(e,t,n,r){const i=super.parseSubscript(e,t,n,r);if(r.optio...
method hasPropertyAsPrivateName (line 2) | hasPropertyAsPrivateName(e){return"ChainExpression"===e.type&&(e=e.expre...
method isObjectProperty (line 2) | isObjectProperty(e){return"Property"===e.type&&"init"===e.kind&&!e.method}
method isObjectMethod (line 2) | isObjectMethod(e){return e.method||"get"===e.kind||"set"===e.kind}
method finishNodeAt (line 2) | finishNodeAt(e,t,n){return S(super.finishNodeAt(e,t,n))}
method resetStartLocation (line 2) | resetStartLocation(e,t){super.resetStartLocation(e,t),S(e)}
method resetEndLocation (line 2) | resetEndLocation(e,t=this.state.lastTokEndLoc){super.resetEndLocation(e,...
method jsxReadToken (line 2) | jsxReadToken(){let e="",t=this.state.pos;for(;;){if(this.state.pos>=this...
method jsxReadNewLine (line 2) | jsxReadNewLine(e){const t=this.input.charCodeAt(this.state.pos);let n;re...
method jsxReadString (line 2) | jsxReadString(e){let t="",n=++this.state.pos;for(;;){if(this.state.pos>=...
method jsxReadEntity (line 2) | jsxReadEntity(){const e=++this.state.pos;if(35===this.codePointAtPos(thi...
method jsxReadWord (line 2) | jsxReadWord(){let e;const t=this.state.pos;do{e=this.input.charCodeAt(++...
method jsxParseIdentifier (line 2) | jsxParseIdentifier(){const e=this.startNode();return this.match(138)?e.n...
method jsxParseNamespacedName (line 2) | jsxParseNamespacedName(){const e=this.state.startLoc,t=this.jsxParseIden...
method jsxParseElementName (line 2) | jsxParseElementName(){const e=this.state.startLoc;let t=this.jsxParseNam...
method jsxParseAttributeValue (line 2) | jsxParseAttributeValue(){let e;switch(this.state.type){case 5:return e=t...
method jsxParseEmptyExpression (line 2) | jsxParseEmptyExpression(){const e=this.startNodeAt(this.state.lastTokEnd...
method jsxParseSpreadChild (line 2) | jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpress...
method jsxParseExpressionContainer (line 2) | jsxParseExpressionContainer(e,t){if(this.match(8))e.expression=this.jsxP...
method jsxParseAttribute (line 2) | jsxParseAttribute(){const e=this.startNode();return this.match(5)?(this....
method jsxParseOpeningElementAt (line 2) | jsxParseOpeningElementAt(e){const t=this.startNodeAt(e);return this.eat(...
method jsxParseOpeningElementAfterName (line 2) | jsxParseOpeningElementAfterName(e){const t=[];for(;!this.match(56)&&!thi...
method jsxParseClosingElementAt (line 2) | jsxParseClosingElementAt(e){const t=this.startNodeAt(e);return this.eat(...
method jsxParseElementAt (line 2) | jsxParseElementAt(e){const t=this.startNodeAt(e),n=[],r=this.jsxParseOpe...
method jsxParseElement (line 2) | jsxParseElement(){const e=this.state.startLoc;return this.next(),this.js...
method setContext (line 2) | setContext(e){const{context:t}=this.state;t[t.length-1]=e}
method parseExprAtom (line 2) | parseExprAtom(e){return this.match(139)?this.parseLiteral(this.state.val...
method skipSpace (line 2) | skipSpace(){this.curContext().preserveSpace||super.skipSpace()}
method getTokenFromCode (line 2) | getTokenFromCode(e){const t=this.curContext();if(t!==x.j_expr){if(t===x....
method updateContext (line 2) | updateContext(e){const{context:t,type:n}=this.state;if(56===n&&140===e)t...
method constructor (line 2) | constructor(...e){super(...e),this.flowPragma=void 0}
method getScopeHandler (line 2) | getScopeHandler(){return be}
method shouldParseTypes (line 2) | shouldParseTypes(){return this.getPluginOption("flow","all")||"flow"===t...
method shouldParseEnums (line 2) | shouldParseEnums(){return!!this.getPluginOption("flow","enums")}
method finishToken (line 2) | finishToken(e,t){131!==e&&13!==e&&28!==e&&void 0===this.flowPragma&&(thi...
method addComment (line 2) | addComment(e){if(void 0===this.flowPragma){const t=ht.exec(e.value);if(t...
method flowParseTypeInitialiser (line 2) | flowParseTypeInitialiser(e){const t=this.state.inType;this.state.inType=...
method flowParsePredicate (line 2) | flowParsePredicate(){const e=this.startNode(),t=this.state.startLoc;retu...
method flowParseTypeAndPredicateInitialiser (line 2) | flowParseTypeAndPredicateInitialiser(){const e=this.state.inType;this.st...
method flowParseDeclareClass (line 2) | flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e...
method flowParseDeclareFunction (line 2) | flowParseDeclareFunction(e){this.next();const t=e.id=this.parseIdentifie...
method flowParseDeclare (line 2) | flowParseDeclare(e,t){return this.match(80)?this.flowParseDeclareClass(e...
method flowParseDeclareVariable (line 2) | flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAn...
method flowParseDeclareModule (line 2) | flowParseDeclareModule(e){this.scope.enter(0),this.match(131)?e.id=super...
method flowParseDeclareExportDeclaration (line 2) | flowParseDeclareExportDeclaration(e,t){if(this.expect(82),this.eat(65))r...
method flowParseDeclareModuleExports (line 2) | flowParseDeclareModuleExports(e){return this.next(),this.expectContextua...
method flowParseDeclareTypeAlias (line 2) | flowParseDeclareTypeAlias(e){this.next();const t=this.flowParseTypeAlias...
method flowParseDeclareOpaqueType (line 2) | flowParseDeclareOpaqueType(e){this.next();const t=this.flowParseOpaqueTy...
method flowParseDeclareInterface (line 2) | flowParseDeclareInterface(e){return this.next(),this.flowParseInterfacei...
method flowParseInterfaceish (line 2) | flowParseInterfaceish(e,t){if(e.id=this.flowParseRestrictedIdentifier(!t...
method flowParseInterfaceExtends (line 2) | flowParseInterfaceExtends(){const e=this.startNode();return e.id=this.fl...
method flowParseInterface (line 2) | flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finis...
method checkNotUnderscore (line 2) | checkNotUnderscore(e){"_"===e&&this.raise(ct.UnexpectedReservedUnderscor...
method checkReservedType (line 2) | checkReservedType(e,t,n){lt.has(e)&&this.raise(n?ct.AssignReservedType:c...
method flowParseRestrictedIdentifier (line 2) | flowParseRestrictedIdentifier(e,t){return this.checkReservedType(this.st...
method flowParseTypeAlias (line 2) | flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,...
method flowParseOpaqueType (line 2) | flowParseOpaqueType(e,t){return this.expectContextual(128),e.id=this.flo...
method flowParseTypeParameter (line 2) | flowParseTypeParameter(e=!1){const t=this.state.startLoc,n=this.startNod...
method flowParseTypeParameterDeclaration (line 2) | flowParseTypeParameterDeclaration(){const e=this.state.inType,t=this.sta...
method flowParseTypeParameterInstantiation (line 2) | flowParseTypeParameterInstantiation(){const e=this.startNode(),t=this.st...
method flowParseTypeParameterInstantiationCallOrNew (line 2) | flowParseTypeParameterInstantiationCallOrNew(){const e=this.startNode(),...
method flowParseInterfaceType (line 2) | flowParseInterfaceType(){const e=this.startNode();if(this.expectContextu...
method flowParseObjectPropertyKey (line 2) | flowParseObjectPropertyKey(){return this.match(132)||this.match(131)?sup...
method flowParseObjectTypeIndexer (line 2) | flowParseObjectTypeIndexer(e,t,n){return e.static=t,14===this.lookahead(...
method flowParseObjectTypeInternalSlot (line 2) | flowParseObjectTypeInternalSlot(e,t){return e.static=t,e.id=this.flowPar...
method flowParseObjectTypeMethodish (line 2) | flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParame...
method flowParseObjectTypeCallProperty (line 2) | flowParseObjectTypeCallProperty(e,t){const n=this.startNode();return e.s...
method flowParseObjectType (line 2) | flowParseObjectType({allowStatic:e,allowExact:t,allowSpread:n,allowProto...
method flowParseObjectTypeProperty (line 2) | flowParseObjectTypeProperty(e,t,n,r,i,s,a){if(this.eat(21))return this.m...
method flowCheckGetterSetterParams (line 2) | flowCheckGetterSetterParams(e){const t="get"===e.kind?0:1,n=e.value.para...
method flowObjectTypeSemicolon (line 2) | flowObjectTypeSemicolon(){this.eat(13)||this.eat(12)||this.match(8)||thi...
method flowParseQualifiedTypeIdentifier (line 2) | flowParseQualifiedTypeIdentifier(e,t){null!=e||(e=this.state.startLoc);l...
method flowParseGenericType (line 2) | flowParseGenericType(e,t){const n=this.startNodeAt(e);return n.typeParam...
method flowParseTypeofType (line 2) | flowParseTypeofType(){const e=this.startNode();return this.expect(87),e....
method flowParseTupleType (line 2) | flowParseTupleType(){const e=this.startNode();for(e.types=[],this.expect...
method flowParseFunctionTypeParam (line 2) | flowParseFunctionTypeParam(e){let t=null,n=!1,r=null;const i=this.startN...
method reinterpretTypeAsFunctionTypeParam (line 2) | reinterpretTypeAsFunctionTypeParam(e){const t=this.startNodeAt(e.loc.sta...
method flowParseFunctionTypeParams (line 2) | flowParseFunctionTypeParams(e=[]){let t=null,n=null;for(this.match(78)&&...
method flowIdentToTypeAnnotation (line 2) | flowIdentToTypeAnnotation(e,t,n){switch(n.name){case"any":return this.fi...
method flowParsePrimaryType (line 2) | flowParsePrimaryType(){const e=this.state.startLoc,t=this.startNode();le...
method flowParsePostfixType (line 2) | flowParsePostfixType(){const e=this.state.startLoc;let t=this.flowParseP...
method flowParsePrefixType (line 2) | flowParsePrefixType(){const e=this.startNode();return this.eat(17)?(e.ty...
method flowParseAnonFunctionWithoutParens (line 2) | flowParseAnonFunctionWithoutParens(){const e=this.flowParsePrefixType();...
method flowParseIntersectionType (line 2) | flowParseIntersectionType(){const e=this.startNode();this.eat(45);const ...
method flowParseUnionType (line 2) | flowParseUnionType(){const e=this.startNode();this.eat(43);const t=this....
method flowParseType (line 2) | flowParseType(){const e=this.state.inType;this.state.inType=!0;const t=t...
method flowParseTypeOrImplicitInstantiation (line 2) | flowParseTypeOrImplicitInstantiation(){if(130===this.state.type&&"_"===t...
method flowParseTypeAnnotation (line 2) | flowParseTypeAnnotation(){const e=this.startNode();return e.typeAnnotati...
method flowParseTypeAnnotatableIdentifier (line 2) | flowParseTypeAnnotatableIdentifier(e){const t=e?this.parseIdentifier():t...
method typeCastToParameter (line 2) | typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotati...
method flowParseVariance (line 2) | flowParseVariance(){let e=null;return this.match(53)?(e=this.startNode()...
method parseFunctionBody (line 2) | parseFunctionBody(e,t,n=!1){t?this.forwardNoArrowParamsConversionAt(e,((...
method parseFunctionBodyAndFinish (line 2) | parseFunctionBodyAndFinish(e,t,n=!1){if(this.match(14)){const t=this.sta...
method parseStatementLike (line 2) | parseStatementLike(e){if(this.state.strict&&this.isContextual(127)){if(X...
method parseExpressionStatement (line 2) | parseExpressionStatement(e,t,n){if("Identifier"===t.type)if("declare"===...
method shouldParseExportDeclaration (line 2) | shouldParseExportDeclaration(){const{type:e}=this.state;return H(e)||thi...
method isExportDefaultSpecifier (line 2) | isExportDefaultSpecifier(){const{type:e}=this.state;return H(e)||this.sh...
method parseExportDefaultExpression (line 2) | parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContex...
method parseConditional (line 2) | parseConditional(e,t,n){if(!this.match(17))return e;if(this.state.maybeI...
method tryParseConditionalConsequent (line 2) | tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.pus...
method getArrowLikeExpressions (line 2) | getArrowLikeExpressions(e,t){const n=[e],r=[];for(;0!==n.length;){const ...
method finishArrowValidation (line 2) | finishArrowValidation(e){var t;this.toAssignableList(e.params,null==(t=e...
method forwardNoArrowParamsConversionAt (line 2) | forwardNoArrowParamsConversionAt(e,t){let n;return-1!==this.state.noArro...
method parseParenItem (line 2) | parseParenItem(e,t){if(e=super.parseParenItem(e,t),this.eat(17)&&(e.opti...
method assertModuleNodeAllowed (line 2) | assertModuleNodeAllowed(e){"ImportDeclaration"===e.type&&("type"===e.imp...
method parseExportDeclaration (line 2) | parseExportDeclaration(e){if(this.isContextual(128)){e.exportKind="type"...
method eatExportStar (line 2) | eatExportStar(e){return!!super.eatExportStar(e)||!(!this.isContextual(12...
method maybeParseExportNamespaceSpecifier (line 2) | maybeParseExportNamespaceSpecifier(e){const{startLoc:t}=this.state,n=sup...
method parseClassId (line 2) | parseClassId(e,t,n){super.parseClassId(e,t,n),this.match(47)&&(e.typePar...
method parseClassMember (line 2) | parseClassMember(e,t,n){const{startLoc:r}=this.state;if(this.isContextua...
method isIterator (line 2) | isIterator(e){return"iterator"===e||"asyncIterator"===e}
method readIterator (line 2) | readIterator(){const e=super.readWord1(),t="@@"+e;this.isIterator(e)&&th...
method getTokenFromCode (line 2) | getTokenFromCode(e){const t=this.input.charCodeAt(this.state.pos+1);123=...
method isAssignable (line 2) | isAssignable(e,t){return"TypeCastExpression"===e.type?this.isAssignable(...
method toAssignable (line 2) | toAssignable(e,t=!1){t||"AssignmentExpression"!==e.type||"TypeCastExpres...
method toAssignableList (line 2) | toAssignableList(e,t,n){for(let t=0;t<e.length;t++){const n=e[t];"TypeCa...
method toReferencedList (line 2) | toReferencedList(e,t){for(let r=0;r<e.length;r++){var n;const i=e[r];!i|...
method parseArrayLike (line 2) | parseArrayLike(e,t,n,r){const i=super.parseArrayLike(e,t,n,r);return t&&...
method isValidLVal (line 2) | isValidLVal(e,t,n){return"TypeCastExpression"===e||super.isValidLVal(e,t...
method parseClassProperty (line 2) | parseClassProperty(e){return this.match(14)&&(e.typeAnnotation=this.flow...
method parseClassPrivateProperty (line 2) | parseClassPrivateProperty(e){return this.match(14)&&(e.typeAnnotation=th...
method isClassMethod (line 2) | isClassMethod(){return this.match(47)||super.isClassMethod()}
method isClassProperty (line 2) | isClassProperty(){return this.match(14)||super.isClassProperty()}
method isNonstaticConstructor (line 2) | isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstr...
method pushClassMethod (line 2) | pushClassMethod(e,t,n,r,i,s){if(t.variance&&this.unexpected(t.variance.l...
method pushClassPrivateMethod (line 2) | pushClassPrivateMethod(e,t,n,r){t.variance&&this.unexpected(t.variance.l...
method parseClassSuper (line 2) | parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&this.match(...
method checkGetterSetterParams (line 2) | checkGetterSetterParams(e){super.checkGetterSetterParams(e);const t=this...
method parsePropertyNamePrefixOperator (line 2) | parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}
method parseObjPropValue (line 2) | parseObjPropValue(e,t,n,r,i,s,a){let o;e.variance&&this.unexpected(e.var...
method parseAssignableListItemTypes (line 2) | parseAssignableListItemTypes(e){return this.eat(17)&&("Identifier"!==e.t...
method parseMaybeDefault (line 2) | parseMaybeDefault(e,t){const n=super.parseMaybeDefault(e,t);return"Assig...
method checkImportReflection (line 2) | checkImportReflection(e){super.checkImportReflection(e),e.module&&"value...
method parseImportSpecifierLocal (line 2) | parseImportSpecifierLocal(e,t,n){t.local=ut(e)?this.flowParseRestrictedI...
method isPotentialImportPhase (line 2) | isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if...
method applyImportPhase (line 2) | applyImportPhase(e,t,n,r){if(super.applyImportPhase(e,t,n,r),t){if(!n&&t...
method parseImportSpecifier (line 2) | parseImportSpecifier(e,t,n,r,i){const s=e.imported;let a=null;"Identifie...
method parseBindingAtom (line 2) | parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):...
method parseFunctionParams (line 2) | parseFunctionParams(e,t){const n=e.kind;"get"!==n&&"set"!==n&&this.match...
method parseVarId (line 2) | parseVarId(e,t){super.parseVarId(e,t),this.match(14)&&(e.id.typeAnnotati...
method parseAsyncArrowFromCallExpression (line 2) | parseAsyncArrowFromCallExpression(e,t){if(this.match(14)){const t=this.s...
method shouldParseAsyncArrow (line 2) | shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArr...
method parseMaybeAssign (line 2) | parseMaybeAssign(e,t){var n;let r,i=null;if(this.hasPlugin("jsx")&&(this...
method parseArrow (line 2) | parseArrow(e){if(this.match(14)){const t=this.tryParse((()=>{const t=thi...
method shouldParseArrow (line 2) | shouldParseArrow(e){return this.match(14)||super.shouldParseArrow(e)}
method setArrowFunctionParameters (line 2) | setArrowFunctionParameters(e,t){-1!==this.state.noArrowParamsConversionA...
method checkParams (line 2) | checkParams(e,t,n,r=!0){if(!n||-1===this.state.noArrowParamsConversionAt...
method parseParenAndDistinguishExpression (line 2) | parseParenAndDistinguishExpression(e){return super.parseParenAndDistingu...
method parseSubscripts (line 2) | parseSubscripts(e,t,n){if("Identifier"===e.type&&"async"===e.name&&-1!==...
method parseSubscript (line 2) | parseSubscript(e,t,n,r){if(this.match(18)&&this.isLookaheadToken_lt()){i...
method parseNewCallee (line 2) | parseNewCallee(e){super.parseNewCallee(e);let t=null;this.shouldParseTyp...
method parseAsyncArrowWithTypeParameters (line 2) | parseAsyncArrowWithTypeParameters(e){const t=this.startNodeAt(e);if(this...
method readToken_mult_modulo (line 2) | readToken_mult_modulo(e){const t=this.input.charCodeAt(this.state.pos+1)...
method readToken_pipe_amp (line 2) | readToken_pipe_amp(e){const t=this.input.charCodeAt(this.state.pos+1);12...
method parseTopLevel (line 2) | parseTopLevel(e,t){const n=super.parseTopLevel(e,t);return this.state.ha...
method skipBlockComment (line 2) | skipBlockComment(){if(!this.hasPlugin("flowComments")||!this.skipFlowCom...
method skipFlowComment (line 2) | skipFlowComment(){const{pos:e}=this.state;let t=2;for(;[32,9].includes(t...
method hasFlowCommentCompletion (line 2) | hasFlowCommentCompletion(){if(-1===this.input.indexOf("*/",this.state.po...
method flowEnumErrorBooleanMemberNotInitialized (line 2) | flowEnumErrorBooleanMemberNotInitialized(e,{enumName:t,memberName:n}){th...
method flowEnumErrorInvalidMemberInitializer (line 2) | flowEnumErrorInvalidMemberInitializer(e,t){return this.raise(t.explicitT...
method flowEnumErrorNumberMemberNotInitialized (line 2) | flowEnumErrorNumberMemberNotInitialized(e,{enumName:t,memberName:n}){thi...
method flowEnumErrorStringMemberInconsistentlyInitialized (line 2) | flowEnumErrorStringMemberInconsistentlyInitialized(e,{enumName:t}){this....
method flowEnumMemberInit (line 2) | flowEnumMemberInit(){const e=this.state.startLoc,t=()=>this.match(12)||t...
method flowEnumMemberRaw (line 2) | flowEnumMemberRaw(){const e=this.state.startLoc;return{id:this.parseIden...
method flowEnumCheckExplicitTypeMismatch (line 2) | flowEnumCheckExplicitTypeMismatch(e,t,n){const{explicitType:r}=t;null!==...
method flowEnumMembers (line 2) | flowEnumMembers({enumName:e,explicitType:t}){const n=new Set,r={booleanM...
method flowEnumStringMembers (line 2) | flowEnumStringMembers(e,t,{enumName:n}){if(0===e.length)return t;if(0===...
method flowEnumParseExplicitType (line 2) | flowEnumParseExplicitType({enumName:e}){if(!this.eatContextual(101))retu...
method flowEnumBody (line 2) | flowEnumBody(e,t){const n=t.name,r=t.loc.start,i=this.flowEnumParseExpli...
method flowParseEnumDeclaration (line 2) | flowParseEnumDeclaration(e){const t=this.parseIdentifier();return e.id=t...
method isLookaheadToken_lt (line 2) | isLookaheadToken_lt(){const e=this.nextTokenStart();if(60===this.input.c...
method maybeUnwrapTypeCastExpression (line 2) | maybeUnwrapTypeCastExpression(e){return"TypeCastExpression"===e.type?e.e...
method constructor (line 2) | constructor(...e){super(...e),this.tsParseInOutModifiers=this.tsParseMod...
method getScopeHandler (line 2) | getScopeHandler(){return gt}
method tsIsIdentifier (line 2) | tsIsIdentifier(){return W(this.state.type)}
method tsTokenCanFollowModifier (line 2) | tsTokenCanFollowModifier(){return(this.match(0)||this.match(5)||this.mat...
method tsNextTokenCanFollowModifier (line 2) | tsNextTokenCanFollowModifier(){return this.next(),this.tsTokenCanFollowM...
method tsParseModifier (line 2) | tsParseModifier(e,t){if(!W(this.state.type)&&58!==this.state.type&&75!==...
method tsParseModifiers (line 2) | tsParseModifiers({allowedModifiers:e,disallowedModifiers:t,stopOnStartOf...
method tsIsListTerminator (line 2) | tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":retu...
method tsParseList (line 2) | tsParseList(e,t){const n=[];for(;!this.tsIsListTerminator(e);)n.push(t()...
method tsParseDelimitedList (line 2) | tsParseDelimitedList(e,t,n){return function(e){if(null==e)throw new Erro...
method tsParseDelimitedListWorker (line 2) | tsParseDelimitedListWorker(e,t,n,r){const i=[];let s=-1;for(;!this.tsIsL...
method tsParseBracketedList (line 2) | tsParseBracketedList(e,t,n,r,i){r||(n?this.expect(0):this.expect(47));co...
method tsParseImportType (line 2) | tsParseImportType(){const e=this.startNode();return this.expect(83),this...
method tsParseEntityName (line 2) | tsParseEntityName(e=!0){let t=this.parseIdentifier(e);for(;this.eat(16);...
method tsParseTypeReference (line 2) | tsParseTypeReference(){const e=this.startNode();return e.typeName=this.t...
method tsParseThisTypePredicate (line 2) | tsParseThisTypePredicate(e){this.next();const t=this.startNodeAtNode(e);...
method tsParseThisTypeNode (line 2) | tsParseThisTypeNode(){const e=this.startNode();return this.next(),this.f...
method tsParseTypeQuery (line 2) | tsParseTypeQuery(){const e=this.startNode();return this.expect(87),this....
method tsParseTypeParameter (line 2) | tsParseTypeParameter(e){const t=this.startNode();return e(t),t.name=this...
method tsTryParseTypeParameters (line 2) | tsTryParseTypeParameters(e){if(this.match(47))return this.tsParseTypePar...
method tsParseTypeParameters (line 2) | tsParseTypeParameters(e){const t=this.startNode();this.match(47)||this.m...
method tsFillSignature (line 2) | tsFillSignature(e,t){const n=19===e;t.typeParameters=this.tsTryParseType...
method tsParseBindingListForSignature (line 2) | tsParseBindingListForSignature(){const e=super.parseBindingList(11,41,2)...
method tsParseTypeMemberSemicolon (line 2) | tsParseTypeMemberSemicolon(){this.eat(12)||this.isLineTerminator()||this...
method tsParseSignatureMember (line 2) | tsParseSignatureMember(e,t){return this.tsFillSignature(14,t),this.tsPar...
method tsIsUnambiguouslyIndexSignature (line 2) | tsIsUnambiguouslyIndexSignature(){return this.next(),!!W(this.state.type...
method tsTryParseIndexSignature (line 2) | tsTryParseIndexSignature(e){if(!this.match(0)||!this.tsLookAhead(this.ts...
method tsParsePropertyOrMethodSignature (line 2) | tsParsePropertyOrMethodSignature(e,t){this.eat(17)&&(e.optional=!0);cons...
method tsParseTypeMember (line 2) | tsParseTypeMember(){const e=this.startNode();if(this.match(10)||this.mat...
method tsParseTypeLiteral (line 2) | tsParseTypeLiteral(){const e=this.startNode();return e.members=this.tsPa...
method tsParseObjectTypeMembers (line 2) | tsParseObjectTypeMembers(){this.expect(5);const e=this.tsParseList("Type...
method tsIsStartOfMappedType (line 2) | tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextua...
method tsParseMappedTypeParameter (line 2) | tsParseMappedTypeParameter(){const e=this.startNode();return e.name=this...
method tsParseMappedType (line 2) | tsParseMappedType(){const e=this.startNode();return this.expect(5),this....
method tsParseTupleType (line 2) | tsParseTupleType(){const e=this.startNode();e.elementTypes=this.tsParseB...
method tsParseTupleElementType (line 2) | tsParseTupleElementType(){const{startLoc:e}=this.state,t=this.eat(21);le...
method tsParseParenthesizedType (line 2) | tsParseParenthesizedType(){const e=this.startNode();return this.expect(1...
method tsParseFunctionOrConstructorType (line 2) | tsParseFunctionOrConstructorType(e,t){const n=this.startNode();return"TS...
method tsParseLiteralTypeNode (line 2) | tsParseLiteralTypeNode(){const e=this.startNode();switch(this.state.type...
method tsParseTemplateLiteralType (line 2) | tsParseTemplateLiteralType(){const e=this.startNode();return e.literal=s...
method parseTemplateSubstitution (line 2) | parseTemplateSubstitution(){return this.state.inType?this.tsParseType():...
method tsParseThisTypeOrThisTypePredicate (line 2) | tsParseThisTypeOrThisTypePredicate(){const e=this.tsParseThisTypeNode();...
method tsParseNonArrayType (line 2) | tsParseNonArrayType(){switch(this.state.type){case 131:case 132:case 133...
method tsParseArrayTypeOrHigher (line 2) | tsParseArrayTypeOrHigher(){let e=this.tsParseNonArrayType();for(;!this.h...
method tsParseTypeOperator (line 2) | tsParseTypeOperator(){const e=this.startNode(),t=this.state.value;return...
method tsCheckTypeAnnotationForReadOnly (line 2) | tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"T...
method tsParseInferType (line 2) | tsParseInferType(){const e=this.startNode();this.expectContextual(113);c...
method tsParseConstraintForInferType (line 2) | tsParseConstraintForInferType(){if(this.eat(81)){const e=this.tsInDisall...
method tsParseTypeOperatorOrHigher (line 2) | tsParseTypeOperatorOrHigher(){var e;return(e=this.state.type)>=119&&e<=1...
method tsParseUnionOrIntersectionType (line 2) | tsParseUnionOrIntersectionType(e,t,n){const r=this.startNode(),i=this.ea...
method tsParseIntersectionTypeOrHigher (line 2) | tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersection...
method tsParseUnionTypeOrHigher (line 2) | tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("T...
method tsIsStartOfFunctionType (line 2) | tsIsStartOfFunctionType(){return!!this.match(47)||this.match(10)&&this.t...
method tsSkipParameterStart (line 2) | tsSkipParameterStart(){if(W(this.state.type)||this.match(78))return this...
method tsIsUnambiguouslyStartOfFunctionType (line 2) | tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(11)||th...
method tsParseTypeOrTypePredicateAnnotation (line 2) | tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType((()=>{const...
method tsTryParseTypeOrTypePredicateAnnotation (line 2) | tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this....
method tsTryParseTypeAnnotation (line 2) | tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnno...
method tsTryParseType (line 2) | tsTryParseType(){return this.tsEatThenParseType(14)}
method tsParseTypePredicatePrefix (line 2) | tsParseTypePredicatePrefix(){const e=this.parseIdentifier();if(this.isCo...
method tsParseTypePredicateAsserts (line 2) | tsParseTypePredicateAsserts(){if(107!==this.state.type)return!1;const e=...
method tsParseTypeAnnotation (line 2) | tsParseTypeAnnotation(e=!0,t=this.startNode()){return this.tsInType((()=...
method tsParseType (line 2) | tsParseType(){St(this.state.inType);const e=this.tsParseNonConditionalTy...
method isAbstractConstructorSignature (line 2) | isAbstractConstructorSignature(){return this.isContextual(122)&&77===thi...
method tsParseNonConditionalType (line 2) | tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.t...
method tsParseTypeAssertion (line 2) | tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbigu...
method tsParseHeritageClause (line 2) | tsParseHeritageClause(e){const t=this.state.startLoc,n=this.tsParseDelim...
method tsParseInterfaceDeclaration (line 2) | tsParseInterfaceDeclaration(e,t={}){if(this.hasFollowingLineBreak())retu...
method tsParseTypeAliasDeclaration (line 2) | tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.c...
method tsInNoContext (line 2) | tsInNoContext(e){const t=this.state.context;this.state.context=[t[0]];tr...
method tsInType (line 2) | tsInType(e){const t=this.state.inType;this.state.inType=!0;try{return e(...
method tsInDisallowConditionalTypesContext (line 2) | tsInDisallowConditionalTypesContext(e){const t=this.state.inDisallowCond...
method tsInAllowConditionalTypesContext (line 2) | tsInAllowConditionalTypesContext(e){const t=this.state.inDisallowConditi...
method tsEatThenParseType (line 2) | tsEatThenParseType(e){if(this.match(e))return this.tsNextThenParseType()}
method tsExpectThenParseType (line 2) | tsExpectThenParseType(e){return this.tsInType((()=>(this.expect(e),this....
method tsNextThenParseType (line 2) | tsNextThenParseType(){return this.tsInType((()=>(this.next(),this.tsPars...
method tsParseEnumMember (line 2) | tsParseEnumMember(){const e=this.startNode();return e.id=this.match(131)...
method tsParseEnumDeclaration (line 2) | tsParseEnumDeclaration(e,t={}){return t.const&&(e.const=!0),t.declare&&(...
method tsParseModuleBlock (line 2) | tsParseModuleBlock(){const e=this.startNode();return this.scope.enter(0)...
method tsParseModuleOrNamespaceDeclaration (line 2) | tsParseModuleOrNamespaceDeclaration(e,t=!1){if(e.id=this.parseIdentifier...
method tsParseAmbientExternalModuleDeclaration (line 2) | tsParseAmbientExternalModuleDeclaration(e){return this.isContextual(110)...
method tsParseImportEqualsDeclaration (line 2) | tsParseImportEqualsDeclaration(e,t,n){e.isExport=n||!1,e.id=t||this.pars...
method tsIsExternalModuleReference (line 2) | tsIsExternalModuleReference(){return this.isContextual(117)&&40===this.l...
method tsParseModuleReference (line 2) | tsParseModuleReference(){return this.tsIsExternalModuleReference()?this....
method tsParseExternalModuleReference (line 2) | tsParseExternalModuleReference(){const e=this.startNode();return this.ex...
method tsLookAhead (line 2) | tsLookAhead(e){const t=this.state.clone(),n=e();return this.state=t,n}
method tsTryParseAndCatch (line 2) | tsTryParseAndCatch(e){const t=this.tryParse((t=>e()||t()));if(!t.aborted...
method tsTryParse (line 2) | tsTryParse(e){const t=this.state.clone(),n=e();if(void 0!==n&&!1!==n)ret...
method tsTryParseDeclare (line 2) | tsTryParseDeclare(e){if(this.isLineTerminator())return;let t,n=this.stat...
method tsTryParseExportDeclaration (line 2) | tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startN...
method tsParseExpressionStatement (line 2) | tsParseExpressionStatement(e,t,n){switch(t.name){case"declare":{const t=...
method tsParseDeclaration (line 2) | tsParseDeclaration(e,t,n,r){switch(t){case"abstract":if(this.tsCheckLine...
method tsCheckLineTerminator (line 2) | tsCheckLineTerminator(e){return e?!this.hasFollowingLineBreak()&&(this.n...
method tsTryParseGenericAsyncArrowFunction (line 2) | tsTryParseGenericAsyncArrowFunction(e){if(!this.match(47))return;const t...
method tsParseTypeArgumentsInExpression (line 2) | tsParseTypeArgumentsInExpression(){if(47===this.reScan_lt())return this....
method tsParseTypeArguments (line 2) | tsParseTypeArguments(){const e=this.startNode();return e.params=this.tsI...
method tsIsDeclarationStart (line 2) | tsIsDeclarationStart(){return(e=this.state.type)>=122&&e<=128;var e}
method isExportDefaultSpecifier (line 2) | isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&super.isE...
method parseAssignableListItem (line 2) | parseAssignableListItem(e,t){const n=this.state.startLoc,r={};this.tsPar...
method isSimpleParameter (line 2) | isSimpleParameter(e){return"TSParameterProperty"===e.type&&super.isSimpl...
method tsDisallowOptionalPattern (line 2) | tsDisallowOptionalPattern(e){for(const t of e.params)"Identifier"!==t.ty...
method setArrowFunctionParameters (line 2) | setArrowFunctionParameters(e,t,n){super.setArrowFunctionParameters(e,t,n...
method parseFunctionBodyAndFinish (line 2) | parseFunctionBodyAndFinish(e,t,n=!1){this.match(14)&&(e.returnType=this....
method registerFunctionStatementId (line 2) | registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,1...
method tsCheckForInvalidTypeCasts (line 2) | tsCheckForInvalidTypeCasts(e){e.forEach((e=>{"TSTypeCastExpression"===(n...
method toReferencedList (line 2) | toReferencedList(e,t){return this.tsCheckForInvalidTypeCasts(e),e}
method parseArrayLike (line 2) | parseArrayLike(e,t,n,r){const i=super.parseArrayLike(e,t,n,r);return"Arr...
method parseSubscript (line 2) | parseSubscript(e,t,n,r){if(!this.hasPrecedingLineBreak()&&this.match(35)...
method parseNewCallee (line 2) | parseNewCallee(e){var t;super.parseNewCallee(e);const{callee:n}=e;"TSIns...
method parseExprOp (line 2) | parseExprOp(e,t,n){let r;if(G(58)>n&&!this.hasPrecedingLineBreak()&&(thi...
method checkReservedWord (line 2) | checkReservedWord(e,t,n,r){this.state.isAmbientContext||super.checkReser...
method checkImportReflection (line 2) | checkImportReflection(e){super.checkImportReflection(e),e.module&&"value...
method checkDuplicateExports (line 2) | checkDuplicateExports(){}
method isPotentialImportPhase (line 2) | isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if...
method applyImportPhase (line 2) | applyImportPhase(e,t,n,r){super.applyImportPhase(e,t,n,r),t?e.exportKind...
method parseImport (line 2) | parseImport(e){if(this.match(131))return e.importKind="value",super.pars...
method parseExport (line 2) | parseExport(e,t){if(this.match(83)){this.next();let t=null;return this.i...
method isAbstractClass (line 2) | isAbstractClass(){return this.isContextual(122)&&80===this.lookahead().t...
method parseExportDefaultExpression (line 2) | parseExportDefaultExpression(){if(this.isAbstractClass()){const e=this.s...
method parseVarStatement (line 2) | parseVarStatement(e,t,n=!1){const{isAmbientContext:r}=this.state,i=super...
method parseStatementContent (line 2) | parseStatementContent(e,t){if(this.match(75)&&this.isLookaheadContextual...
method parseAccessModifier (line 2) | parseAccessModifier(){return this.tsParseModifier(["public","protected",...
method tsHasSomeModifiers (line 2) | tsHasSomeModifiers(e,t){return t.some((t=>xt(t)?e.accessibility===t:!!e[...
method tsIsStartOfStaticBlocks (line 2) | tsIsStartOfStaticBlocks(){return this.isContextual(104)&&123===this.look...
method parseClassMember (line 2) | parseClassMember(e,t,n){const r=["declare","private","public","protected...
method parseClassMemberWithIsStatic (line 2) | parseClassMemberWithIsStatic(e,t,n,r){const i=this.tsTryParseIndexSignat...
method parsePostMemberNameModifiers (line 2) | parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly...
method parseExpressionStatement (line 2) | parseExpressionStatement(e,t,n){return("Identifier"===t.type?this.tsPars...
method shouldParseExportDeclaration (line 2) | shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||supe...
method parseConditional (line 2) | parseConditional(e,t,n){if(!this.state.maybeInArrowParameters||!this.mat...
method parseParenItem (line 2) | parseParenItem(e,t){if(e=super.parseParenItem(e,t),this.eat(17)&&(e.opti...
method parseExportDeclaration (line 2) | parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContex...
method parseClassId (line 2) | parseClassId(e,t,n,r){if((!t||n)&&this.isContextual(111))return;super.pa...
method parseClassPropertyAnnotation (line 2) | parseClassPropertyAnnotation(e){e.optional||(this.eat(35)?e.definite=!0:...
method parseClassProperty (line 2) | parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state...
method parseClassPrivateProperty (line 2) | parseClassPrivateProperty(e){return e.abstract&&this.raise(Pt.PrivateEle...
method parseClassAccessorProperty (line 2) | parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e...
method pushClassMethod (line 2) | pushClassMethod(e,t,n,r,i,s){const a=this.tsTryParseTypeParameters(this....
method pushClassPrivateMethod (line 2) | pushClassPrivateMethod(e,t,n,r){const i=this.tsTryParseTypeParameters(th...
method declareClassPrivateMethodInScope (line 2) | declareClassPrivateMethodInScope(e,t){"TSDeclareMethod"!==e.type&&("Meth...
method parseClassSuper (line 2) | parseClassSuper(e){super.parseClassSuper(e),e.superClass&&(this.match(47...
method parseObjPropValue (line 2) | parseObjPropValue(e,t,n,r,i,s,a){const o=this.tsTryParseTypeParameters(t...
method parseFunctionParams (line 2) | parseFunctionParams(e,t){const n=this.tsTryParseTypeParameters(this.tsPa...
method parseVarId (line 2) | parseVarId(e,t){super.parseVarId(e,t),"Identifier"===e.id.type&&!this.ha...
method parseAsyncArrowFromCallExpression (line 2) | parseAsyncArrowFromCallExpression(e,t){return this.match(14)&&(e.returnT...
method parseMaybeAssign (line 2) | parseMaybeAssign(e,t){var n,r,i,s,a;let o,l,c,u;if(this.hasPlugin("jsx")...
method reportReservedArrowTypeParam (line 2) | reportReservedArrowTypeParam(e){var t;1!==e.params.length||e.params[0].c...
method parseMaybeUnary (line 2) | parseMaybeUnary(e,t){return!this.hasPlugin("jsx")&&this.match(47)?this.t...
method parseArrow (line 2) | parseArrow(e){if(this.match(14)){const t=this.tryParse((e=>{const t=this...
method parseAssignableListItemTypes (line 2) | parseAssignableListItemTypes(e,t){if(!(2&t))return e;this.eat(17)&&(e.op...
method isAssignable (line 2) | isAssignable(e,t){switch(e.type){case"TSTypeCastExpression":return this....
method toAssignable (line 2) | toAssignable(e,t=!1){switch(e.type){case"ParenthesizedExpression":this.t...
method toAssignableParenthesizedExpression (line 2) | toAssignableParenthesizedExpression(e,t){switch(e.expression.type){case"...
method checkToRestConversion (line 2) | checkToRestConversion(e,t){switch(e.type){case"TSAsExpression":case"TSSa...
method isValidLVal (line 2) | isValidLVal(e,t,n){return r={TSTypeCastExpression:!0,TSParameterProperty...
method parseBindingAtom (line 2) | parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):...
method parseMaybeDecoratorArguments (line 2) | parseMaybeDecoratorArguments(e){if(this.match(47)||this.match(51)){const...
method checkCommaAfterRest (line 2) | checkCommaAfterRest(e){return this.state.isAmbientContext&&this.match(12...
method isClassMethod (line 2) | isClassMethod(){return this.match(47)||super.isClassMethod()}
method isClassProperty (line 2) | isClassProperty(){return this.match(35)||this.match(14)||super.isClassPr...
method parseMaybeDefault (line 2) | parseMaybeDefault(e,t){const n=super.parseMaybeDefault(e,t);return"Assig...
method getTokenFromCode (line 2) | getTokenFromCode(e){if(this.state.inType){if(62===e)return void this.fin...
method reScan_lt_gt (line 2) | reScan_lt_gt(){const{type:e}=this.state;47===e?(this.state.pos-=1,this.r...
method reScan_lt (line 2) | reScan_lt(){const{type:e}=this.state;return 51===e?(this.state.pos-=2,th...
method toAssignableList (line 2) | toAssignableList(e,t,n){for(let t=0;t<e.length;t++){const n=e[t];"TSType...
method typeCastToParameter (line 2) | typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotati...
method shouldParseArrow (line 2) | shouldParseArrow(e){return this.match(14)?e.every((e=>this.isAssignable(...
method shouldParseAsyncArrow (line 2) | shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArr...
method canHaveLeadingDecorator (line 2) | canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.i...
method jsxParseOpeningElementAfterName (line 2) | jsxParseOpeningElementAfterName(e){if(this.match(47)||this.match(51)){co...
method getGetterSetterExpectedParamCount (line 2) | getGetterSetterExpectedParamCount(e){const t=super.getGetterSetterExpect...
method parseCatchClauseParam (line 2) | parseCatchClauseParam(){const e=super.parseCatchClauseParam(),t=this.tsT...
method tsInAmbientContext (line 2) | tsInAmbientContext(e){const t=this.state.isAmbientContext;this.state.isA...
method parseClass (line 2) | parseClass(e,t,n){const r=this.state.inAbstractClass;this.state.inAbstra...
method tsParseAbstractDeclaration (line 2) | tsParseAbstractDeclaration(e,t){if(this.match(80))return e.abstract=!0,t...
method parseMethod (line 2) | parseMethod(e,t,n,r,i,s,a){const o=super.parseMethod(e,t,n,r,i,s,a);if(o...
method tsParseTypeParameterName (line 2) | tsParseTypeParameterName(){return this.parseIdentifier().name}
method shouldParseAsAmbientContext (line 2) | shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript",...
method parse (line 2) | parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbient...
method getExpression (line 2) | getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.i...
method parseExportSpecifier (line 2) | parseExportSpecifier(e,t,n,r){return!t&&r?(this.parseTypeOnlyImportExpor...
method parseImportSpecifier (line 2) | parseImportSpecifier(e,t,n,r,i){return!t&&r?(this.parseTypeOnlyImportExp...
method parseTypeOnlyImportExportSpecifier (line 2) | parseTypeOnlyImportExportSpecifier(e,t,n){const r=t?"imported":"local",i...
method parseV8Intrinsic (line 2) | parseV8Intrinsic(){if(this.match(54)){const e=this.state.startLoc,t=this...
method parseExprAtom (line 2) | parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}
method parsePlaceholder (line 2) | parsePlaceholder(e){if(this.match(142)){const t=this.startNode();return ...
method finishPlaceholder (line 2) | finishPlaceholder(e,t){const n=!(!e.expectedNode||"Placeholder"!==e.type...
method getTokenFromCode (line 2) | getTokenFromCode(e){37===e&&37===this.input.charCodeAt(this.state.pos+1)...
method parseExprAtom (line 2) | parseExprAtom(e){return this.parsePlaceholder("Expression")||super.parse...
method parseIdentifier (line 2) | parseIdentifier(e){return this.parsePlaceholder("Identifier")||super.par...
method checkReservedWord (line 2) | checkReservedWord(e,t,n,r){void 0!==e&&super.checkReservedWord(e,t,n,r)}
method parseBindingAtom (line 2) | parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseB...
method isValidLVal (line 2) | isValidLVal(e,t,n){return"Placeholder"===e||super.isValidLVal(e,t,n)}
method toAssignable (line 2) | toAssignable(e,t){e&&"Placeholder"===e.type&&"Expression"===e.expectedNo...
method chStartsBindingIdentifier (line 2) | chStartsBindingIdentifier(e,t){return!!super.chStartsBindingIdentifier(e...
method verifyBreakContinue (line 2) | verifyBreakContinue(e,t){e.label&&"Placeholder"===e.label.type||super.ve...
method parseExpressionStatement (line 2) | parseExpressionStatement(e,t){var n;if("Placeholder"!==t.type||null!=(n=...
method parseBlock (line 2) | parseBlock(e,t,n){return this.parsePlaceholder("BlockStatement")||super....
method parseFunctionId (line 2) | parseFunctionId(e){return this.parsePlaceholder("Identifier")||super.par...
method parseClass (line 2) | parseClass(e,t,n){const r=t?"ClassDeclaration":"ClassExpression";this.ne...
method parseExport (line 2) | parseExport(e,t){const n=this.parsePlaceholder("Identifier");if(!n)retur...
method isExportDefaultSpecifier (line 2) | isExportDefaultSpecifier(){if(this.match(65)){const e=this.nextTokenStar...
method maybeParseExportDefaultSpecifier (line 2) | maybeParseExportDefaultSpecifier(e,t){var n;return!(null==(n=e.specifier...
method checkExport (line 2) | checkExport(e){const{specifiers:t}=e;null!=t&&t.length&&(e.specifiers=t....
method parseImport (line 2) | parseImport(e){const t=this.parsePlaceholder("Identifier");if(!t)return ...
method parseImportSource (line 2) | parseImportSource(){return this.parsePlaceholder("StringLiteral")||super...
method assertNoSpace (line 2) | assertNoSpace(){this.state.start>this.state.lastTokEndLoc.index&&this.ra...
class jt (line 2) | class jt extends Et{checkProto(e,t,n,r){if("SpreadElement"===e.type||thi...
method checkProto (line 2) | checkProto(e,t,n,r){if("SpreadElement"===e.type||this.isObjectMethod(e...
method shouldExitDescending (line 2) | shouldExitDescending(e,t){return"ArrowFunctionExpression"===e.type&&e....
method getExpression (line 2) | getExpression(){this.enterInitialScopes(),this.nextToken();const e=thi...
method parseExpression (line 2) | parseExpression(e,t){return e?this.disallowInAnd((()=>this.parseExpres...
method parseExpressionBase (line 2) | parseExpressionBase(e){const t=this.state.startLoc,n=this.parseMaybeAs...
method parseMaybeAssignDisallowIn (line 2) | parseMaybeAssignDisallowIn(e,t){return this.disallowInAnd((()=>this.pa...
method parseMaybeAssignAllowIn (line 2) | parseMaybeAssignAllowIn(e,t){return this.allowInAnd((()=>this.parseMay...
method setOptionalParametersError (line 2) | setOptionalParametersError(e,t){var n;e.optionalParametersLoc=null!=(n...
method parseMaybeAssign (line 2) | parseMaybeAssign(e,t){const n=this.state.startLoc;if(this.isContextual...
method parseMaybeConditional (line 2) | parseMaybeConditional(e){const t=this.state.startLoc,n=this.state.pote...
method parseConditional (line 2) | parseConditional(e,t,n){if(this.eat(17)){const n=this.startNodeAt(t);r...
method parseMaybeUnaryOrPrivate (line 2) | parseMaybeUnaryOrPrivate(e){return this.match(136)?this.parsePrivateNa...
method parseExprOps (line 2) | parseExprOps(e){const t=this.state.startLoc,n=this.state.potentialArro...
method parseExprOp (line 2) | parseExprOp(e,t,n){if(this.isPrivateName(e)){const t=this.getPrivateNa...
method parseExprOpRightExpr (line 2) | parseExprOpRightExpr(e,t){const n=this.state.startLoc;if(39===e)switch...
method parseExprOpBaseRightExpr (line 2) | parseExprOpBaseRightExpr(e,t){const n=this.state.startLoc;return this....
method parseHackPipeBody (line 2) | parseHackPipeBody(){var e;const{startLoc:t}=this.state,n=this.parseMay...
method checkExponentialAfterUnary (line 2) | checkExponentialAfterUnary(e){this.match(57)&&this.raise(g.UnexpectedT...
method parseMaybeUnary (line 2) | parseMaybeUnary(e,t){const n=this.state.startLoc,r=this.isContextual(9...
method parseUpdate (line 2) | parseUpdate(e,t,n){if(t){const t=e;return this.checkLVal(t.argument,{i...
method parseExprSubscripts (line 2) | parseExprSubscripts(e){const t=this.state.startLoc,n=this.state.potent...
method parseSubscripts (line 2) | parseSubscripts(e,t,n){const r={optionalChainMember:!1,maybeAsyncArrow...
method parseSubscript (line 2) | parseSubscript(e,t,n,r){const{type:i}=this.state;if(!n&&15===i)return ...
method parseMember (line 2) | parseMember(e,t,n,r,i){const s=this.startNodeAt(t);return s.object=e,s...
method parseBind (line 2) | parseBind(e,t,n,r){const i=this.startNodeAt(t);return i.object=e,this....
method parseCoverCallAndAsyncArrowHead (line 2) | parseCoverCallAndAsyncArrowHead(e,t,n,r){const i=this.state.maybeInArr...
method toReferencedArguments (line 2) | toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}
method parseTaggedTemplateExpression (line 2) | parseTaggedTemplateExpression(e,t,n){const r=this.startNodeAt(t);retur...
method atPossibleAsyncArrow (line 2) | atPossibleAsyncArrow(e){return"Identifier"===e.type&&"async"===e.name&...
method expectImportAttributesPlugin (line 2) | expectImportAttributesPlugin(){this.hasPlugin("importAssertions")||thi...
method finishCallExpression (line 2) | finishCallExpression(e,t){if("Import"===e.callee.type)if(2===e.argumen...
method parseCallExpressionArguments (line 2) | parseCallExpressionArguments(e,t,n,r,i){const s=[];let a=!0;const o=th...
method shouldParseAsyncArrow (line 2) | shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolo...
method parseAsyncArrowFromCallExpression (line 2) | parseAsyncArrowFromCallExpression(e,t){var n;return this.resetPrevious...
method parseNoCallExpr (line 2) | parseNoCallExpr(){const e=this.state.startLoc;return this.parseSubscri...
method parseExprAtom (line 2) | parseExprAtom(e){let t,n=null;const{type:r}=this.state;switch(r){case ...
method parseTopicReferenceThenEqualsSign (line 2) | parseTopicReferenceThenEqualsSign(e,t){const n=this.getPluginOption("p...
method parseTopicReference (line 2) | parseTopicReference(e){const t=this.startNode(),n=this.state.startLoc,...
method finishTopicReference (line 2) | finishTopicReference(e,t,n,r){if(this.testTopicReferenceConfiguration(...
method testTopicReferenceConfiguration (line 2) | testTopicReferenceConfiguration(e,t,n){switch(e){case"hack":return thi...
method parseAsyncArrowUnaryFunction (line 2) | parseAsyncArrowUnaryFunction(e){this.prodParam.enter(tt(!0,this.prodPa...
method parseDo (line 2) | parseDo(e,t){this.expectPlugin("doExpressions"),t&&this.expectPlugin("...
method parseSuper (line 2) | parseSuper(){const e=this.startNode();return this.next(),!this.match(1...
method parsePrivateName (line 2) | parsePrivateName(){const e=this.startNode(),t=this.startNodeAt(s(this....
method parseFunctionOrFunctionSent (line 2) | parseFunctionOrFunctionSent(){const e=this.startNode();if(this.next(),...
method parseMetaProperty (line 2) | parseMetaProperty(e,t,n){e.meta=t;const r=this.state.containsEsc;retur...
method parseImportMetaProperty (line 2) | parseImportMetaProperty(e){const t=this.createIdentifier(this.startNod...
method parseLiteralAtNode (line 2) | parseLiteralAtNode(e,t,n){return this.addExtra(n,"rawValue",e),this.ad...
method parseLiteral (line 2) | parseLiteral(e,t){const n=this.startNode();return this.parseLiteralAtN...
method parseStringLiteral (line 2) | parseStringLiteral(e){return this.parseLiteral(e,"StringLiteral")}
method parseNumericLiteral (line 2) | parseNumericLiteral(e){return this.parseLiteral(e,"NumericLiteral")}
method parseBigIntLiteral (line 2) | parseBigIntLiteral(e){return this.parseLiteral(e,"BigIntLiteral")}
method parseDecimalLiteral (line 2) | parseDecimalLiteral(e){return this.parseLiteral(e,"DecimalLiteral")}
method parseRegExpLiteral (line 2) | parseRegExpLiteral(e){const t=this.parseLiteral(e.value,"RegExpLiteral...
method parseBooleanLiteral (line 2) | parseBooleanLiteral(e){const t=this.startNode();return t.value=e,this....
method parseNullLiteral (line 2) | parseNullLiteral(){const e=this.startNode();return this.next(),this.fi...
method parseParenAndDistinguishExpression (line 2) | parseParenAndDistinguishExpression(e){const t=this.state.startLoc;let ...
method wrapParenthesis (line 2) | wrapParenthesis(e,t){if(!this.options.createParenthesizedExpressions)r...
method shouldParseArrow (line 2) | shouldParseArrow(e){return!this.canInsertSemicolon()}
method parseArrow (line 2) | parseArrow(e){if(this.eat(19))return e}
method parseParenItem (line 2) | parseParenItem(e,t){return e}
method parseNewOrNewTarget (line 2) | parseNewOrNewTarget(){const e=this.startNode();if(this.next(),this.mat...
method parseNew (line 2) | parseNew(e){if(this.parseNewCallee(e),this.eat(10)){const t=this.parse...
method parseNewCallee (line 2) | parseNewCallee(e){e.callee=this.parseNoCallExpr(),"Import"===e.callee....
method parseTemplateElement (line 2) | parseTemplateElement(e){const{start:t,startLoc:n,end:r,value:i}=this.s...
method parseTemplate (line 2) | parseTemplate(e){const t=this.startNode();t.expressions=[];let n=this....
method parseTemplateSubstitution (line 2) | parseTemplateSubstitution(){return this.parseExpression()}
method parseObjectLike (line 2) | parseObjectLike(e,t,n,r){n&&this.expectPlugin("recordAndTuple");const ...
method addTrailingCommaExtraToNode (line 2) | addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.st...
method maybeAsyncOrAccessorProp (line 2) | maybeAsyncOrAccessorProp(e){return!e.computed&&"Identifier"===e.key.ty...
method parsePropertyDefinition (line 2) | parsePropertyDefinition(e){let t=[];if(this.match(26))for(this.hasPlug...
method getGetterSetterExpectedParamCount (line 2) | getGetterSetterExpectedParamCount(e){return"get"===e.kind?0:1}
method getObjectOrClassMethodParams (line 2) | getObjectOrClassMethodParams(e){return e.params}
method checkGetterSetterParams (line 2) | checkGetterSetterParams(e){var t;const n=this.getGetterSetterExpectedP...
method parseObjectMethod (line 2) | parseObjectMethod(e,t,n,r,i){if(i){const n=this.parseMethod(e,t,!1,!1,...
method parseObjectProperty (line 2) | parseObjectProperty(e,t,n,r){if(e.shorthand=!1,this.eat(14))return e.v...
method parseObjPropValue (line 2) | parseObjPropValue(e,t,n,r,i,s,a){const o=this.parseObjectMethod(e,n,r,...
method parsePropertyName (line 2) | parsePropertyName(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMa...
method initFunction (line 2) | initFunction(e,t){e.id=null,e.generator=!1,e.async=t}
method parseMethod (line 2) | parseMethod(e,t,n,r,i,s,a=!1){this.initFunction(e,n),e.generator=t,thi...
method parseArrayLike (line 2) | parseArrayLike(e,t,n,r){n&&this.expectPlugin("recordAndTuple");const i...
method parseArrowExpression (line 2) | parseArrowExpression(e,t,n,r){this.scope.enter(6);let i=tt(n,!1);!this...
method setArrowFunctionParameters (line 2) | setArrowFunctionParameters(e,t,n){this.toAssignableList(t,n,!1),e.para...
method parseFunctionBodyAndFinish (line 2) | parseFunctionBodyAndFinish(e,t,n=!1){return this.parseFunctionBody(e,!...
method parseFunctionBody (line 2) | parseFunctionBody(e,t,n=!1){const r=t&&!this.match(5);if(this.expressi...
method isSimpleParameter (line 2) | isSimpleParameter(e){return"Identifier"===e.type}
method isSimpleParamList (line 2) | isSimpleParamList(e){for(let t=0,n=e.length;t<n;t++)if(!this.isSimpleP...
method checkParams (line 2) | checkParams(e,t,n,r=!0){const i=!t&&new Set,s={type:"FormalParameters"...
method parseExprList (line 2) | parseExprList(e,t,n,r){const i=[];let s=!0;for(;!this.eat(e);){if(s)s=...
method parseExprListItem (line 2) | parseExprListItem(e,t,n){let r;if(this.match(12))e||this.raise(g.Unexp...
method parseIdentifier (line 2) | parseIdentifier(e){const t=this.startNode(),n=this.parseIdentifierName...
method createIdentifier (line 2) | createIdentifier(e,t){return e.name=t,e.loc.identifierName=t,this.fini...
method parseIdentifierName (line 2) | parseIdentifierName(e){let t;const{startLoc:n,type:r}=this.state;X(r)?...
method checkReservedWord (line 2) | checkReservedWord(e,t,n,r){if(!(e.length>10)&&function(e){return ye.ha...
method isAwaitAllowed (line 2) | isAwaitAllowed(){return!!this.prodParam.hasAwait||!(!this.options.allo...
method parseAwait (line 2) | parseAwait(e){const t=this.startNodeAt(e);return this.expressionScope....
method isAmbiguousAwait (line 2) | isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;const{type...
method parseYield (line 2) | parseYield(){const e=this.startNode();this.expressionScope.recordParam...
method checkPipelineAtInfixOperator (line 2) | checkPipelineAtInfixOperator(e,t){this.hasPlugin(["pipelineOperator",{...
method parseSmartPipelineBodyInStyle (line 2) | parseSmartPipelineBodyInStyle(e,t){if(this.isSimpleReference(e)){const...
method isSimpleReference (line 2) | isSimpleReference(e){switch(e.type){case"MemberExpression":return!e.co...
method checkSmartPipeTopicBodyEarlyErrors (line 2) | checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19))throw this.rai...
method withTopicBindingContext (line 2) | withTopicBindingContext(e){const t=this.state.topicContext;this.state....
method withSmartMixTopicForbiddingContext (line 2) | withSmartMixTopicForbiddingContext(e){if(!this.hasPlugin(["pipelineOpe...
method withSoloAwaitPermittingContext (line 2) | withSoloAwaitPermittingContext(e){const t=this.state.soloAwait;this.st...
method allowInAnd (line 2) | allowInAnd(e){const t=this.prodParam.currentFlags();if(8&~t){this.prod...
method disallowInAnd (line 2) | disallowInAnd(e){const t=this.prodParam.currentFlags();if(8&t){this.pr...
method registerTopicReference (line 2) | registerTopicReference(){this.state.topicContext.maxTopicIndex=0}
method topicReferenceIsAllowedInCurrentContext (line 2) | topicReferenceIsAllowedInCurrentContext(){return this.state.topicConte...
method topicReferenceWasUsedInCurrentContext (line 2) | topicReferenceWasUsedInCurrentContext(){return null!=this.state.topicC...
method parseFSharpPipelineBody (line 2) | parseFSharpPipelineBody(e){const t=this.state.startLoc;this.state.pote...
method parseModuleExpression (line 2) | parseModuleExpression(){this.expectPlugin("moduleBlocks");const e=this...
method parsePropertyNamePrefixOperator (line 2) | parsePropertyNamePrefixOperator(e){}
class Wt (line 2) | class Wt extends jt{parseTopLevel(e,t){return e.program=this.parseProgra...
method parseTopLevel (line 2) | parseTopLevel(e,t){return e.program=this.parseProgram(t),e.comments=th...
method parseProgram (line 2) | parseProgram(e,t=137,n=this.options.sourceType){if(e.sourceType=n,e.in...
method stmtToDirective (line 2) | stmtToDirective(e){const t=e;t.type="Directive",t.value=t.expression,d...
method parseInterpreterDirective (line 2) | parseInterpreterDirective(){if(!this.match(28))return null;const e=thi...
method isLet (line 2) | isLet(){return!!this.isContextual(99)&&this.hasFollowingBindingAtom()}
method chStartsBindingIdentifier (line 2) | chStartsBindingIdentifier(e,t){if(ae(e)){if(Kt.lastIndex=t,Kt.test(thi...
method chStartsBindingPattern (line 2) | chStartsBindingPattern(e){return 91===e||123===e}
method hasFollowingBindingAtom (line 2) | hasFollowingBindingAtom(){const e=this.nextTokenStart(),t=this.codePoi...
method hasInLineFollowingBindingIdentifier (line 2) | hasInLineFollowingBindingIdentifier(){const e=this.nextTokenInLineStar...
method startsUsingForOf (line 2) | startsUsingForOf(){const{type:e,containsEsc:t}=this.lookahead();return...
method startsAwaitUsing (line 2) | startsAwaitUsing(){let e=this.nextTokenInLineStart();if(this.isUnparse...
method parseModuleItem (line 2) | parseModuleItem(){return this.parseStatementLike(15)}
method parseStatementListItem (line 2) | parseStatementListItem(){return this.parseStatementLike(6|(!this.optio...
method parseStatementOrSloppyAnnexBFunctionDeclaration (line 2) | parseStatementOrSloppyAnnexBFunctionDeclaration(e=!1){let t=0;return t...
method parseStatement (line 2) | parseStatement(){return this.parseStatementLike(0)}
method parseStatementLike (line 2) | parseStatementLike(e){let t=null;return this.match(26)&&(t=this.parseD...
method parseStatementContent (line 2) | parseStatementContent(e,t){const n=this.state.type,r=this.startNode(),...
method assertModuleNodeAllowed (line 2) | assertModuleNodeAllowed(e){this.options.allowImportExportEverywhere||t...
method decoratorsEnabledBeforeExport (line 2) | decoratorsEnabledBeforeExport(){return!!this.hasPlugin("decorators-leg...
method maybeTakeDecorators (line 2) | maybeTakeDecorators(e,t,n){return e&&(t.decorators&&t.decorators.lengt...
method canHaveLeadingDecorator (line 2) | canHaveLeadingDecorator(){return this.match(80)}
method parseDecorators (line 2) | parseDecorators(e){const t=[];do{t.push(this.parseDecorator())}while(t...
method parseDecorator (line 2) | parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy...
method parseMaybeDecoratorArguments (line 2) | parseMaybeDecoratorArguments(e){if(this.eat(10)){const t=this.startNod...
method parseBreakContinueStatement (line 2) | parseBreakContinueStatement(e,t){return this.next(),this.isLineTermina...
method verifyBreakContinue (line 2) | verifyBreakContinue(e,t){let n;for(n=0;n<this.state.labels.length;++n)...
method parseDebuggerStatement (line 2) | parseDebuggerStatement(e){return this.next(),this.semicolon(),this.fin...
method parseHeaderExpression (line 2) | parseHeaderExpression(){this.expect(10);const e=this.parseExpression()...
method parseDoWhileStatement (line 2) | parseDoWhileStatement(e){return this.next(),this.state.labels.push(Rt)...
method parseForStatement (line 2) | parseForStatement(e){this.next(),this.state.labels.push(Rt);let t=null...
method parseFunctionStatement (line 2) | parseFunctionStatement(e,t,n){return this.next(),this.parseFunction(e,...
method parseIfStatement (line 2) | parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpressi...
method parseReturnStatement (line 2) | parseReturnStatement(e){return this.prodParam.hasReturn||this.options....
method parseSwitchStatement (line 2) | parseSwitchStatement(e){this.next(),e.discriminant=this.parseHeaderExp...
method parseThrowStatement (line 2) | parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()...
method parseCatchClauseParam (line 2) | parseCatchClauseParam(){const e=this.parseBindingAtom();return this.sc...
method parseTryStatement (line 2) | parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handle...
method parseVarStatement (line 2) | parseVarStatement(e,t,n=!1){return this.next(),this.parseVar(e,!1,t,n)...
method parseWhileStatement (line 2) | parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpre...
method parseWithStatement (line 2) | parseWithStatement(e){return this.state.strict&&this.raise(g.StrictWit...
method parseEmptyStatement (line 2) | parseEmptyStatement(e){return this.next(),this.finishNode(e,"EmptyStat...
method parseLabeledStatement (line 2) | parseLabeledStatement(e,t,n,r){for(const e of this.state.labels)e.name...
method parseExpressionStatement (line 2) | parseExpressionStatement(e,t,n){return e.expression=t,this.semicolon()...
method parseBlock (line 2) | parseBlock(e=!1,t=!0,n){const r=this.startNode();return e&&this.state....
method isValidDirective (line 2) | isValidDirective(e){return"ExpressionStatement"===e.type&&"StringLiter...
method parseBlockBody (line 2) | parseBlockBody(e,t,n,r,i){const s=e.body=[],a=e.directives=[];this.par...
method parseBlockOrModuleBlockBody (line 2) | parseBlockOrModuleBlockBody(e,t,n,r,i){const s=this.state.strict;let a...
method parseFor (line 2) | parseFor(e,t){return e.init=t,this.semicolon(!1),e.test=this.match(13)...
method parseForIn (line 2) | parseForIn(e,t,n){const r=this.match(58);return this.next(),r?null!==n...
method parseVar (line 2) | parseVar(e,t,n,r=!1){const i=e.declarations=[];for(e.kind=n;;){const e...
method parseVarId (line 2) | parseVarId(e,t){const n=this.parseBindingAtom();this.checkLVal(n,{in:{...
method parseAsyncFunctionExpression (line 2) | parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}
method parseFunction (line 2) | parseFunction(e,t=0){const n=2&t,r=!!(1&t),i=r&&!(4&t),s=!!(8&t);this....
method parseFunctionId (line 2) | parseFunctionId(e){return e||W(this.state.type)?this.parseIdentifier()...
method parseFunctionParams (line 2) | parseFunctionParams(e,t){this.expect(10),this.expressionScope.enter(ne...
method registerFunctionStatementId (line 2) | registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,...
method parseClass (line 2) | parseClass(e,t,n){this.next();const r=this.state.strict;return this.st...
method isClassProperty (line 2) | isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}
method isClassMethod (line 2) | isClassMethod(){return this.match(10)}
method isNonstaticConstructor (line 2) | isNonstaticConstructor(e){return!(e.computed||e.static||"constructor"!...
method parseClassBody (line 2) | parseClassBody(e,t){this.classScope.enter();const n={hadConstructor:!1...
method parseClassMemberFromModifier (line 2) | parseClassMemberFromModifier(e,t){const n=this.parseIdentifier(!0);if(...
method parseClassMember (line 2) | parseClassMember(e,t,n){const r=this.isContextual(104);if(r){if(this.p...
method parseClassMemberWithIsStatic (line 2) | parseClassMemberWithIsStatic(e,t,n,r){const i=t,s=t,a=t,o=t,l=t,c=i,u=...
method parseClassElementName (line 2) | parseClassElementName(e){const{type:t,value:n}=this.state;if(130!==t&&...
method parseClassStaticBlock (line 2) | parseClassStaticBlock(e,t){var n;this.scope.enter(208);const r=this.st...
method pushClassProperty (line 2) | pushClassProperty(e,t){t.computed||"constructor"!==t.key.name&&"constr...
method pushClassPrivateProperty (line 2) | pushClassPrivateProperty(e,t){const n=this.parseClassPrivateProperty(t...
method pushClassAccessorProperty (line 2) | pushClassAccessorProperty(e,t,n){if(!n&&!t.computed){const e=t.key;"co...
method pushClassMethod (line 2) | pushClassMethod(e,t,n,r,i,s){e.body.push(this.parseMethod(t,n,r,i,s,"C...
method pushClassPrivateMethod (line 2) | pushClassPrivateMethod(e,t,n,r){const i=this.parseMethod(t,n,r,!1,!1,"...
method declareClassPrivateMethodInScope (line 2) | declareClassPrivateMethodInScope(e,t){this.classScope.declarePrivateNa...
method parsePostMemberNameModifiers (line 2) | parsePostMemberNameModifiers(e){}
method parseClassPrivateProperty (line 2) | parseClassPrivateProperty(e){return this.parseInitializer(e),this.semi...
method parseClassProperty (line 2) | parseClassProperty(e){return this.parseInitializer(e),this.semicolon()...
method parseClassAccessorProperty (line 2) | parseClassAccessorProperty(e){return this.parseInitializer(e),this.sem...
method parseInitializer (line 2) | parseInitializer(e){this.scope.enter(80),this.expressionScope.enter(Ze...
method parseClassId (line 2) | parseClassId(e,t,n,r=8331){if(W(this.state.type))e.id=this.parseIdenti...
method parseClassSuper (line 2) | parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts(...
method parseExport (line 2) | parseExport(e,t){const n=this.parseMaybeImportPhase(e,!0),r=this.maybe...
method eatExportStar (line 2) | eatExportStar(e){return this.eat(55)}
method maybeParseExportDefaultSpecifier (line 2) | maybeParseExportDefaultSpecifier(e,t){if(t||this.isExportDefaultSpecif...
method maybeParseExportNamespaceSpecifier (line 2) | maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){e.spec...
method maybeParseExportNamedSpecifiers (line 2) | maybeParseExportNamedSpecifiers(e){if(this.match(5)){e.specifiers||(e....
method maybeParseExportDeclaration (line 2) | maybeParseExportDeclaration(e){return!!this.shouldParseExportDeclarati...
method isAsyncFunction (line 2) | isAsyncFunction(){if(!this.isContextual(95))return!1;const e=this.next...
method parseExportDefaultExpression (line 2) | parseExportDefaultExpression(){const e=this.startNode();if(this.match(...
method parseExportDeclaration (line 2) | parseExportDeclaration(e){return this.match(80)?this.parseClass(this.s...
method isExportDefaultSpecifier (line 2) | isExportDefaultSpecifier(){const{type:e}=this.state;if(W(e)){if(95===e...
method parseExportFrom (line 2) | parseExportFrom(e,t){this.eatContextual(97)?(e.source=this.parseImport...
method shouldParseExportDeclaration (line 2) | shouldParseExportDeclaration(){const{type:e}=this.state;return 26===e&...
method checkExport (line 2) | checkExport(e,t,n,r){var i;if(t)if(n){if(this.checkDuplicateExports(e,...
method checkDeclaration (line 2) | checkDeclaration(e){if("Identifier"===e.type)this.checkDuplicateExport...
method checkDuplicateExports (line 2) | checkDuplicateExports(e,t){this.exportedIdentifiers.has(t)&&("default"...
method parseExportSpecifiers (line 2) | parseExportSpecifiers(e){const t=[];let n=!0;for(this.expect(5);!this....
method parseExportSpecifier (line 2) | parseExportSpecifier(e,t,n,r){return this.eatContextual(93)?e.exported...
method parseModuleExportName (line 2) | parseModuleExportName(){if(this.match(131)){const e=this.parseStringLi...
method isJSONModuleImport (line 2) | isJSONModuleImport(e){return null!=e.assertions&&e.assertions.some((({...
method checkImportReflection (line 2) | checkImportReflection(e){var t;e.module&&(1===e.specifiers.length&&"Im...
method checkJSONModuleImport (line 2) | checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&"ExportAllDecl...
method isPotentialImportPhase (line 2) | isPotentialImportPhase(e){return!e&&this.isContextual(125)}
method applyImportPhase (line 2) | applyImportPhase(e,t,n,r){t||("module"===n?(this.expectPlugin("importR...
method parseMaybeImportPhase (line 2) | parseMaybeImportPhase(e,t){if(!this.isPotentialImportPhase(t))return t...
method isPrecedingIdImportPhase (line 2) | isPrecedingIdImportPhase(e){const{type:t}=this.state;return W(t)?97!==...
method parseImport (line 2) | parseImport(e){return this.match(131)?this.parseImportSourceAndAttribu...
method parseImportSpecifiersAndAfter (line 2) | parseImportSpecifiersAndAfter(e,t){e.specifiers=[];const n=!this.maybe...
method parseImportSourceAndAttributes (line 2) | parseImportSourceAndAttributes(e){return null!=e.specifiers||(e.specif...
method parseImportSource (line 2) | parseImportSource(){return this.match(131)||this.unexpected(),this.par...
method parseImportSpecifierLocal (line 2) | parseImportSpecifierLocal(e,t,n){t.local=this.parseIdentifier(),e.spec...
method finishImportSpecifier (line 2) | finishImportSpecifier(e,t,n=8201){return this.checkLVal(e.local,{in:{t...
method parseImportAttributes (line 2) | parseImportAttributes(){this.expect(5);const e=[],t=new Set;do{if(this...
method parseModuleAttributes (line 2) | parseModuleAttributes(){const e=[],t=new Set;do{const n=this.startNode...
method maybeParseImportAttributes (line 2) | maybeParseImportAttributes(e){let t,n=!1;if(this.match(76)){if(this.ha...
method maybeParseDefaultImportSpecifier (line 2) | maybeParseDefaultImportSpecifier(e,t){if(t){const n=this.startNodeAtNo...
method maybeParseStarImportSpecifier (line 2) | maybeParseStarImportSpecifier(e){if(this.match(55)){const t=this.start...
method parseNamedImportSpecifiers (line 2) | parseNamedImportSpecifiers(e){let t=!0;for(this.expect(5);!this.eat(8)...
method parseImportSpecifier (line 2) | parseImportSpecifier(e,t,n,r,i){if(this.eatContextual(93))e.local=this...
method isThisParam (line 2) | isThisParam(e){return"Identifier"===e.type&&"this"===e.name}
class Xt (line 2) | class Xt extends Wt{constructor(e,t){super(e=function(e){if(null==e)retu...
method constructor (line 2) | constructor(e,t){super(e=function(e){if(null==e)return Object.assign({...
method getScopeHandler (line 2) | getScopeHandler(){return Te}
method parse (line 2) | parse(){this.enterInitialScopes();const e=this.startNode(),t=this.star...
function qt (line 2) | function qt(e,t){let n=Xt;return null!=e&&e.plugins&&(function(e){if(It(...
function o (line 2) | function o(e){let t="";try{throw new Error}catch(e){e.stack&&(t=e.stack....
function s (line 2) | function s(e){return{code:e=>`/* @babel/template */;\n${e}`,validate:()=...
method constructor (line 2) | constructor({file:e,sourceRoot:n}={}){this._names=new t.SetArray,this....
method constructor (line 2) | constructor(e,t={},n){const i=function(e,t){var n;const r={auxiliaryCo...
method generate (line 2) | generate(){return super.generate(this.ast)}
function g (line 2) | function g(e,t,n){var r;let i,s=n.syntactic.placeholders.length>0;if(h(e...
function i (line 2) | function i(){t.path=n=new WeakMap}
method constructor (line 2) | constructor(e,t){this.start=void 0,this.end=void 0,this.filename=void ...
function s (line 2) | function s(){t.scope=r=new WeakMap}
method constructor (line 2) | constructor({file:e,sourceRoot:n}={}){this._names=new t.SetArray,this....
method constructor (line 2) | constructor(e,t={},n){const i=function(e,t){var n;const r={auxiliaryCo...
method generate (line 2) | generate(){return super.generate(this.ast)}
method constructor (line 2) | constructor(e,t,n,r){this.queue=null,this.priorityQueue=null,this.parent...
method shouldVisit (line 2) | shouldVisit(e){const t=this.opts;if(t.enter||t.exit)return!0;if(t[e.type...
method create (line 2) | create(e,t,n,i){return r.default.get({parentPath:this.parentPath,parent:...
method maybeQueue (line 2) | maybeQueue(e,t){this.queue&&(t?this.queue.push(e):this.priorityQueue.pus...
method visitMultiple (line 2) | visitMultiple(e,t,n){if(0===e.length)return!1;const r=[];for(let i=0;i<e...
method visitSingle (line 2) | visitSingle(e,t){return!!this.shouldVisit(e[t])&&this.visitQueue([this.c...
method visitQueue (line 2) | visitQueue(e){this.queue=e,this.priorityQueue=[];const t=new WeakSet;let...
method visit (line 2) | visit(e,t){const n=e[t];return!!n&&(Array.isArray(n)?this.visitMultiple(...
method getCode (line 2) | getCode(){}
method getScope (line 2) | getScope(){}
method addHelper (line 2) | addHelper(){throw new Error("Helpers are not supported by the default hu...
method buildError (line 2) | buildError(e,t,n=TypeError){return new n(t)}
function d (line 2) | function d(e,t={},n,i,s,o){if(e){if(!t.noScope&&!n&&"Program"!==e.type&&...
function y (line 2) | function y(e,t){e.node.type===t.type&&(t.has=!0,e.stop())}
function a (line 2) | function a(e,t){if(!t)return e;let n=-1;return e.filter((e=>{const r=t.i...
function s (line 2) | function s(e,t){e.context!==t&&(e.context=t,e.state=t.state,e.opts=t.opts)}
method constructor (line 2) | constructor({file:e,sourceRoot:n}={}){this._names=new t.SetArray,this....
method constructor (line 2) | constructor(e,t={},n){const i=function(e,t){var n;const r={auxiliaryCo...
method generate (line 2) | generate(){return super.generate(this.ast)}
method CallExpression (line 2) | CallExpression(e,{allSuperCalls:t}){e.get("callee").isSuper()&&t.push(e)}
function k (line 2) | function k(e,t=!0,n=!0,r=!0){let i,s=e.findParent((e=>e.isArrowFunctionE...
function L (line 2) | function L(e){return e.isClassMethod()&&!!e.parentPath.parentPath.node.s...
method CallExpression (line 2) | CallExpression(e,{supers:t,thisBinding:n}){e.get("callee").isSuper()&&(t...
function M (line 2) | function M(e,t,n){const r="binding:"+t;let i=e.getData(r);if(!i){const s...
method ThisExpression (line 2) | ThisExpression(e,{thisPaths:t}){t.push(e)}
method JSXIdentifier (line 2) | JSXIdentifier(e,{thisPaths:t}){"this"===e.node.name&&(e.parentPath.isJSX...
method CallExpression (line 2) | CallExpression(e,{superCalls:t}){e.get("callee").isSuper()&&t.push(e)}
method MemberExpression (line 2) | MemberExpression(e,{superProps:t}){e.get("object").isSuper()&&t.push(e)}
method Identifier (line 2) | Identifier(e,{argumentsPaths:t}){if(!e.isReferencedIdentifier({name:"arg...
method MetaProperty (line 2) | MetaProperty(e,{newTargetPaths:t}){e.get("meta").isIdentifier({name:"new...
function s (line 2) | function s(e){return r.includes(e)}
method constructor (line 2) | constructor({file:e,sourceRoot:n}={}){this._names=new t.SetArray,this....
method constructor (line 2) | constructor(e,t={},n){const i=function(e,t){var n;const r={auxiliaryCo...
method generate (line 2) | generate(){return super.generate(this.ast)}
function a (line 2) | function a(e,t){t.confident&&(t.deoptPath=e,t.confident=!1)}
function l (line 2) | function l(e,t){const{node:r}=e,{seen:u}=t;if(u.has(r)){const n=u.get(r)...
function c (line 2) | function c(e,t,n,r=!1){let i="",s=0;const a=e.isTemplateLiteral()?e.get(...
function h (line 2) | function h(e,t,n){return e&&t.push(...m(e,n)),t}
function d (line 2) | function d(e){e.forEach((e=>{e.type=p}))}
function f (line 2) | function f(e,t){e.forEach((e=>{e.path.isBreakStatement({label:null})&&(t...
function y (line 2) | function y(e,t){const n=[];if(t.canHaveBreak){let r=[];for(let i=0;i<e.l...
function m (line 2) | function m(e,t){let n=[];if(e.isIfStatement())n=h(e.get("consequent"),n,...
class A (line 2) | class A{constructor(e,t){this.contexts=[],this.state=null,this.opts=null...
method constructor (line 2) | constructor(e,t){this.contexts=[],this.state=null,this.opts=null,this....
method get (line 2) | static get({hub:e,parentPath:t,parent:n,container:r,listKey:i,key:s}){...
method getScope (line 2) | getScope(e){return this.isScope()?new a.default(this):e}
method setData (line 2) | setData(e,t){return null==this.data&&(this.data=Object.create(null)),t...
method getData (line 2) | getData(e,t){null==this.data&&(this.data=Object.create(null));let n=th...
method hasNode (line 2) | hasNode(){return null!=this.node}
method buildCodeFrameError (line 2) | buildCodeFrameError(e,t=SyntaxError){return this.hub.buildError(this.n...
method traverse (line 2) | traverse(e,t){(0,s.default)(this.node,e,this.scope,t,this)}
method set (line 2) | set(e,t){x(this.node,e,t),this.node[e]=t}
method getPathLocation (line 2) | getPathLocation(){const e=[];let t=this;do{let n=t.key;t.inList&&(n=`$...
method debug (line 2) | debug(e){D.enabled&&D(`${this.getPathLocation()} ${this.type}: ${e}`)}
method toString (line 2) | toString(){return(0,u.default)(this.node).code}
method inList (line 2) | get inList(){return!!this.listKey}
method inList (line 2) | set inList(e){e||(this.listKey=null)}
method parentKey (line 2) | get parentKey(){return this.listKey||this.key}
method shouldSkip (line 2) | get shouldSkip(){return!!(4&this._traverseFlags)}
method shouldSkip (line 2) | set shouldSkip(e){e?this._traverseFlags|=4:this._traverseFlags&=-5}
method shouldStop (line 2) | get shouldStop(){return!!(2&this._traverseFlags)}
method shouldStop (line 2) | set shouldStop(e){e?this._traverseFlags|=2:this._traverseFlags&=-3}
method removed (line 2) | get removed(){return!!(1&this._traverseFlags)}
method removed (line 2) | set removed(e){e?this._traverseFlags|=1:this._traverseFlags&=-2}
function v (line 2) | function v(e,t,n){if("string"===e)return y(t);if("number"===e)return f(t...
function c (line 2) | function c(e,t,n){const r=e.constantViolations.slice();return r.unshift(...
function u (line 2) | function u(e,t){const n=t.node.operator,r=t.get("right").resolve(),i=t.g...
function p (line 2) | function p(e,t,n){const r=function(e,t,n){let r;for(;r=t.parentPath;){if...
function D (line 2) | function D(e){return e.typeAnnotation}
function A (line 2) | function A(e){return e.typeAnnotation}
method constructor (line 2) | constructor(e,t){this.contexts=[],this.state=null,this.opts=null,this....
method get (line 2) | static get({hub:e,parentPath:t,parent:n,container:r,listKey:i,key:s}){...
method getScope (line 2) | getScope(e){return this.isScope()?new a.default(this):e}
method setData (line 2) | setData(e,t){return null==this.data&&(this.data=Object.create(null)),t...
method getData (line 2) | getData(e,t){null==this.data&&(this.data=Object.create(null));let n=th...
method hasNode (line 2) | hasNode(){return null!=this.node}
method buildCodeFrameError (line 2) | buildCodeFrameError(e,t=SyntaxError){return this.hub.buildError(this.n...
method traverse (line 2) | traverse(e,t){(0,s.default)(this.node,e,this.scope,t,this)}
method set (line 2) | set(e,t){x(this.node,e,t),this.node[e]=t}
method getPathLocation (line 2) | getPathLocation(){const e=[];let t=this;do{let n=t.key;t.inList&&(n=`$...
method debug (line 2) | debug(e){D.enabled&&D(`${this.getPathLocation()} ${this.type}: ${e}`)}
method toString (line 2) | toString(){return(0,u.default)(this.node).code}
method inList (line 2) | get inList(){return!!this.listKey}
method inList (line 2) | set inList(e){e||(this.listKey=null)}
method parentKey (line 2) | get parentKey(){return this.listKey||this.key}
method shouldSkip (line 2) | get shouldSkip(){return!!(4&this._traverseFlags)}
method shouldSkip (line 2) | set shouldSkip(e){e?this._traverseFlags|=4:this._traverseFlags&=-5}
method shouldStop (line 2) | get shouldStop(){return!!(2&this._traverseFlags)}
method shouldStop (line 2) | set shouldStop(e){e?this._traverseFlags|=2:this._traverseFlags&=-3}
method removed (line 2) | get removed(){return!!(1&this._traverseFlags)}
method removed (line 2) | set removed(e){e?this._traverseFlags|=1:this._traverseFlags&=-2}
function v (line 2) | function v(){return y(m("Array"))}
function C (line 2) | function C(){return v()}
function F (line 2) | function F(e){if((e=e.resolve()).isFunction()){const{node:t}=e;if(t.asyn...
function d (line 2) | function d(e){const t=this.node&&this.node[e];return t&&Array.isArray(t)...
function y (line 2) | function y(e){return e.isProgram()?e:(e.parentPath.scope.getFunctionPare...
function m (line 2) | function m(e,t){switch(e){case"LogicalExpression":case"AssignmentPattern...
function T (line 2) | function T(e,t){for(let n=0;n<t;n++){const t=e[n];if(m(t.parent.type,t.p...
function b (line 2) | function b(e,t,n){const r={this:y(e),target:y(t)};if(r.target.node!==r.t...
method constructor (line 2) | constructor(e,t){this.inForStatementInitCounter=0,this._printStack=[],...
method generate (line 2) | generate(e){return this.print(e),this._maybeAddAuxComment(),this._buf....
method indent (line 2) | indent(){this.format.compact||this.format.concise||this._indent++}
method dedent (line 2) | dedent(){this.format.compact||this.format.concise||this._indent--}
method semicolon (line 2) | semicolon(e=!1){this._maybeAddAuxComment(),e?this._appendChar(59):this...
method rightBrace (line 2) | rightBrace(e){this.format.minified&&this._buf.removeLastSemicolon(),th...
method rightParens (line 2) | rightParens(e){this.sourceWithOffset("end",e.loc,-1),this.tokenChar(41)}
method space (line 2) | space(e=!1){if(!this.format.compact)if(e)this._space();else if(this._b...
method word (line 2) | word(e,t=!1){this._maybePrintInnerComments(),(this._endsWithWord||47==...
method number (line 2) | number(e){this.word(e),this._endsWithInteger=Number.isInteger(+e)&&!f....
method token (line 2) | token(e,t=!1){this._maybePrintInnerComments();const n=this.getLastChar...
method tokenChar (line 2) | tokenChar(e){this._maybePrintInnerComments();const t=this.getLastChar(...
method newline (line 2) | newline(e=1,t){if(!(e<=0)){if(!t){if(this.format.retainLines||this.for...
method endsWith (line 2) | endsWith(e){return this.getLastChar()===e}
method getLastChar (line 2) | getLastChar(){return this._buf.getLastChar()}
method endsWithCharAndNewline (line 2) | endsWithCharAndNewline(){return this._buf.endsWithCharAndNewline()}
method removeTrailingNewline (line 2) | removeTrailingNewline(){this._buf.removeTrailingNewline()}
method exactSource (line 2) | exactSource(e,t){e?(this._catchUp("start",e),this._buf.exactSource(e,t...
method source (line 2) | source(e,t){t&&(this._catchUp(e,t),this._buf.source(e,t))}
method sourceWithOffset (line 2) | sourceWithOffset(e,t,n){t&&(this._catchUp(e,t),this._buf.sourceWithOff...
method withSource (line 2) | withSource(e,t,n){t?(this._catchUp(e,t),this._buf.withSource(e,t,n)):n()}
method sourceIdentifierName (line 2) | sourceIdentifierName(e,t){if(!this._buf._canMarkIdName)return;const n=...
method _space (line 2) | _space(){this._queue(32)}
method _newline (line 2) | _newline(){this._queue(10)}
method _append (line 2) | _append(e,t){this._maybeAddParen(e),this._maybeIndent(e.charCodeAt(0))...
method _appendChar (line 2) | _appendChar(e){this._maybeAddParenChar(e),this._maybeIndent(e),this._b...
method _queue (line 2) | _queue(e){this._maybeAddParenChar(e),this._maybeIndent(e),this._buf.qu...
method _maybeIndent (line 2) | _maybeIndent(e){this._indent&&10!==e&&this.endsWith(10)&&this._buf.que...
method _shouldIndent (line 2) | _shouldIndent(e){if(this._indent&&10!==e&&this.endsWith(10))return!0}
method _maybeAddParenChar (line 2) | _maybeAddParenChar(e){const t=this._parenPushNewlineState;t&&32!==e&&(...
method _maybeAddParen (line 2) | _maybeAddParen(e){const t=this._parenPushNewlineState;if(!t)return;con...
method catchUp (line 2) | catchUp(e){if(!this.format.retainLines)return;const t=e-this._buf.getC...
method _catchUp (line 2) | _catchUp(e,t){var n;if(!this.format.retainLines)return;const r=null==t...
method _getIndent (line 2) | _getIndent(){return this._indentRepeat*this._indent}
method printTerminatorless (line 2) | printTerminatorless(e,t,n){if(n)this._noLineTerminator=!0,this.print(e...
method print (line 2) | print(e,t,n,r,i){var s;if(!e)return;this._endsWithInnerRaw=!1;const a=...
method _maybeAddAuxComment (line 2) | _maybeAddAuxComment(e){e&&this._printAuxBeforeComment(),this._insideAu...
method _printAuxBeforeComment (line 2) | _printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;t...
method _printAuxAfterComment (line 2) | _printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;t...
method getPossibleRaw (line 2) | getPossibleRaw(e){const t=e.extra;if(null!=(null==t?void 0:t.raw)&&nul...
method printJoin (line 2) | printJoin(e,t,n={}){if(null==e||!e.length)return;let{indent:r}=n;if(nu...
method printAndIndentOnComments (line 2) | printAndIndentOnComments(e,t){const n=e.leadingComments&&e.leadingComm...
method printBlock (line 2) | printBlock(e){const t=e.body;"EmptyStatement"!==t.type&&this.space(),t...
method _printTrailingComments (line 2) | _printTrailingComments(e,t,n){const{innerComments:r,trailingComments:i...
method _printLeadingComments (line 2) | _printLeadingComments(e,t){const n=e.leadingComments;null!=n&&n.length...
method _maybePrintInnerComments (line 2) | _maybePrintInnerComments(){this._endsWithInnerRaw&&this.printInnerComm...
method printInnerComments (line 2) | printInnerComments(){const e=this._printStack[this._printStack.length-...
method noIndentInnerCommentsHere (line 2) | noIndentInnerCommentsHere(){this._indentInnerComments=!1}
method printSequence (line 2) | printSequence(e,t,n={}){n.statement=!0,null!=n.indent||(n.indent=!1),t...
method printList (line 2) | printList(e,t,n={}){null==n.separator&&(n.separator=S),this.printJoin(...
method _printNewline (line 2) | _printNewline(e,t){const n=this.format;if(n.retainLines||n.compact)ret...
method _shouldPrintComment (line 2) | _shouldPrintComment(e){return e.ignore||this._printedComments.has(e)?0...
method _printComment (line 2) | _printComment(e,t){const n=this._noLineTerminator,r="CommentBlock"===e...
method _printComments (line 2) | _printComments(e,t,n,r,i=0){const s=n.loc,a=t.length;let h=!!s;const d...
method ReferencedIdentifier (line 2) | ReferencedIdentifier(e,t){if(e.isJSXIdentifier()&&s.isCompatTag(e.node.n...
method constructor (line 2) | constructor(e,t){this.breakOnScopePaths=void 0,this.bindings=void 0,this...
method isCompatibleScope (line 2) | isCompatibleScope(e){for(const t of Object.keys(this.bindings)){const n=...
method getCompatibleScopes (line 2) | getCompatibleScopes(){let e=this.path.scope;do{if(!this.isCompatibleScop...
method getAttachmentPath (line 2) | getAttachmentPath(){let e=this._getAttachmentPath();if(!e)return;let t=e...
method _getAttachmentPath (line 2) | _getAttachmentPath(){const e=this.scopes.pop();if(e)if(e.path.isFunction...
method getNextScopeAttachmentParent (line 2) | getNextScopeAttachmentParent(){const e=this.scopes.pop();if(e)return thi...
method getAttachmentParentForPath (line 2) | getAttachmentParentForPath(e){do{if(!e.parentPath||Array.isArray(e.conta...
method hasOwnParamBindings (line 2) | hasOwnParamBindings(e){for(const t of Object.keys(this.bindings)){if(!e....
method run (line 2) | run(){if(this.path.traverse(u,this),this.mutableBinding)return;this.getC...
function x (line 2) | function x(e){return b(e.parent)&&(P(e.parent.expressions)!==e.node||x(e...
method constructor (line 2) | constructor({identifier:e,scope:t,path:n,kind:r}){this.identifier=void 0...
method deoptValue (line 2) | deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}
method setValue (line 2) | setValue(e){this.hasDeoptedValue||(this.hasValue=!0,this.value=e)}
method clearValue (line 2) | clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}
method reassign (line 2) | reassign(e){this.constant=!1,-1===this.constantViolations.indexOf(e)&&th...
method reference (line 2) | reference(e){-1===this.referencePaths.indexOf(e)&&(this.referenced=!0,th...
method dereference (line 2) | dereference(){this.references--,this.referenced=!!this.references}
function te (line 2) | function te(e,t){switch(null==e?void 0:e.type){default:var n;if(v(e)||ee...
method ForStatement (line 2) | ForStatement(e){const t=e.get("init");if(t.isVar()){const{scope:n}=e;(n....
method Declaration (line 2) | Declaration(e){e.isBlockScoped()||e.isImportDeclaration()||e.isExportDec...
method ImportDeclaration (line 2) | ImportDeclaration(e){e.scope.getBlockParent().registerDeclaration(e)}
method ReferencedIdentifier (line 2) | ReferencedIdentifier(e,t){t.references.push(e)}
method ForXStatement (line 2) | ForXStatement(e,t){const n=e.get("left");if(n.isPattern()||n.isIdentifie...
method exit (line 2) | exit(e){const{node:t,scope:n}=e;if(S(t))return;const r=t.declaration;if(...
method LabeledStatement (line 2) | LabeledStatement(e){e.scope.getBlockParent().registerDeclaration(e)}
method AssignmentExpression (line 2) | AssignmentExpression(e,t){t.assignments.push(e)}
method UpdateExpression (line 2) | UpdateExpression(e,t){t.constantViolations.push(e)}
method UnaryExpression (line 2) | UnaryExpression(e,t){"delete"===e.node.operator&&t.constantViolations.pu...
method BlockScoped (line 2) | BlockScoped(e){let t=e.scope;if(t.path===e&&(t=t.parent),t.getBlockParen...
method CatchClause (line 2) | CatchClause(e){e.scope.registerBinding("let",e)}
method Function (line 2) | Function(e){const t=e.get("params");for(const n of t)e.scope.registerBin...
method ClassExpression (line 2) | ClassExpression(e){e.has("id")&&!e.get("id").node[p]&&e.scope.registerBi...
class ie (line 2) | class ie{constructor(e){this.uid=void 0,this.path=void 0,this.block=void...
method constructor (line 2) | constructor(e){this.uid=void 0,this.path=void 0,this.block=void 0,this...
method parent (line 2) | get parent(){var e;let t,n=this.path;do{const e="key"===n.key||"decora...
method parentBlock (line 2) | get parentBlock(){return this.path.parent}
method hub (line 2) | get hub(){return this.path.hub}
method traverse (line 2) | traverse(e,t,n){(0,i.default)(e,t,this,n,this.path)}
method generateDeclaredUidIdentifier (line 2) | generateDeclaredUidIdentifier(e){const t=this.generateUidIdentifier(e)...
method generateUidIdentifier (line 2) | generateUidIdentifier(e){return y(this.generateUid(e))}
method generateUid (line 2) | generateUid(e="temp"){let t;e=X(e).replace(/^_+/,"").replace(/[0-9]+$/...
method _generateUid (line 2) | _generateUid(e,t){let n=e;return t>1&&(n+=t),`_${n}`}
method generateUidBasedOnNode (line 2) | generateUidBasedOnNode(e,t){const n=[];te(e,n);let r=n.join("$");retur...
method generateUidIdentifierBasedOnNode (line 2) | generateUidIdentifierBasedOnNode(e,t){return y(this.generateUidBasedOn...
method isStatic (line 2) | isStatic(e){if(j(e)||_(e)||z(e))return!0;if(A(e)){const t=this.getBind...
method maybeGenerateMemoised (line 2) | maybeGenerateMemoised(e,t){if(this.isStatic(e))return null;{const n=th...
method checkBlockScopedCollisions (line 2) | checkBlockScopedCollisions(e,t,n,r){if("param"!==t&&"local"!==e.kind&&...
method rename (line 2) | rename(e,t){const n=this.getBinding(e);n&&(t||(t=this.generateUidIdent...
method _renameFromMap (line 2) | _renameFromMap(e,t,n,r){e[t]&&(e[n]=r,e[t]=null)}
method dump (line 2) | dump(){const e="-".repeat(60);console.log(e);let t=this;do{console.log...
method toArray (line 2) | toArray(e,t,n){if(A(e)){const t=this.getBinding(e.name);if(null!=t&&t....
method hasLabel (line 2) | hasLabel(e){return!!this.getLabel(e)}
method getLabel (line 2) | getLabel(e){return this.labels.get(e)}
method registerLabel (line 2) | registerLabel(e){this.labels.set(e.node.label.name,e)}
method registerDeclaration (line 2) | registerDeclaration(e){if(e.isLabeledStatement())this.registerLabel(e)...
method buildUndefinedNode (line 2) | buildUndefinedNode(){return Y("void",W(0),!0)}
method registerConstantViolation (line 2) | registerConstantViolation(e){const t=e.getBindingIdentifiers();for(con...
method registerBinding (line 2) | registerBinding(e,t,n=t){if(!e)throw new ReferenceError("no `kind`");i...
method addGlobal (line 2) | addGlobal(e){this.globals[e.name]=e}
method hasUid (line 2) | hasUid(e){let t=this;do{if(t.uids[e])return!0}while(t=t.parent);return!1}
method hasGlobal (line 2) | hasGlobal(e){let t=this;do{if(t.globals[e])return!0}while(t=t.parent);...
method hasReference (line 2) | hasReference(e){return!!this.getProgramParent().references[e]}
method isPure (line 2) | isPure(e,t){if(A(e)){const n=this.getBinding(e.name);return!!n&&(!t||n...
method setData (line 2) | setData(e,t){return this.data[e]=t}
method getData (line 2) | getData(e){let t=this;do{const n=t.data[e];if(null!=n)return n}while(t...
method removeData (line 2) | removeData(e){let t=this;do{null!=t.data[e]&&(t.data[e]=null)}while(t=...
method init (line 2) | init(){this.inited||(this.inited=!0,this.crawl())}
method crawl (line 2) | crawl(){const e=this.path;this.references=Object.create(null),this.bin...
method push (line 2) | push(e){let t=this.path;t.isPattern()?t=this.getPatternParent().path:t...
method getProgramParent (line 2) | getProgramParent(){let e=this;do{if(e.path.isProgram())return e}while(...
method getFunctionParent (line 2) | getFunctionParent(){let e=this;do{if(e.path.isFunctionParent())return ...
method getBlockParent (line 2) | getBlockParent(){let e=this;do{if(e.path.isBlockParent())return e}whil...
method getPatternParent (line 2) | getPatternParent(){let e=this;do{if(!e.path.isPattern())return e.getBl...
method getAllBindings (line 2) | getAllBindings(){const e=Object.create(null);let t=this;do{for(const n...
method getAllBindingsOfKind (line 2) | getAllBindingsOfKind(...e){const t=Object.create(null);for(const n of ...
method bindingIdentifierEquals (line 2) | bindingIdentifierEquals(e,t){return this.getBindingIdentifier(e)===t}
method getBinding (line 2) | getBinding(e){let t,n=this;do{const i=n.getOwnBinding(e);var r;if(i){i...
method getOwnBinding (line 2) | getOwnBinding(e){return this.bindings[e]}
method getBindingIdentifier (line 2) | getBindingIdentifier(e){var t;return null==(t=this.getBinding(e))?void...
method getOwnBindingIdentifier (line 2) | getOwnBindingIdentifier(e){const t=this.bindings[e];return null==t?voi...
method hasOwnBinding (line 2) | hasOwnBinding(e){return!!this.getOwnBinding(e)}
method hasBinding (line 2) | hasBinding(e,t){var n,r,i;return!(!e||!this.hasOwnBinding(e)&&("boolea...
method parentHasBinding (line 2) | parentHasBinding(e,t){var n;return null==(n=this.parent)?void 0:n.hasB...
method moveBindingTo (line 2) | moveBindingTo(e,t){const n=this.getBinding(e);n&&(n.scope.removeOwnBin...
method removeOwnBinding (line 2) | removeOwnBinding(e){delete this.bindings[e]}
method removeBinding (line 2) | removeBinding(e){var t;null==(t=this.getBinding(e))||t.scope.removeOwn...
method ReferencedIdentifier (line 2) | ReferencedIdentifier({node:e},t){e.name===t.oldName&&(e.name=t.newName)}
method Scope (line 2) | Scope(e,t){e.scope.bindingIdentifierEquals(t.oldName,t.binding.identifie...
method ObjectProperty (line 2) | ObjectProperty({node:e,scope:t},n){const{name:r}=e.key;var i;!e.shorthan...
method "AssignmentExpression|Declaration|VariableDeclarator" (line 2) | "AssignmentExpression|Declaration|VariableDeclarator"(e,t){if(e.isVariab...
method constructor (line 2) | constructor(e,t,n){this.newName=n,this.oldName=t,this.binding=e}
method maybeConvertFromExportDeclaration (line 2) | maybeConvertFromExportDeclaration(e){const t=e.parentPath;if(t.isExportD...
method maybeConvertFromClassFunctionDeclaration (line 2) | maybeConvertFromClassFunctionDeclaration(e){return e}
method maybeConvertFromClassFunctionExpression (line 2) | maybeConvertFromClassFunctionExpression(e){return e}
method rename (line 2) | rename(){const{binding:e,oldName:t,newName:n}=this,{scope:r,path:i}=e,s=...
function u (line 2) | function u(e){return null==e?void 0:e._exploded}
function p (line 2) | function p(e){if(u(e))return e;e._exploded=!0;for(const t of Object.keys...
function h (line 2) | function h(e){if(!e._verified){if("function"==typeof e)throw new Error("...
function d (line 2) | function d(e,t){const n=[].concat(t);for(const t of n)if("function"!=typ...
function f (line 2) | function f(e,t,n){const r={};for(const i of["enter","exit"]){let s=e[i];...
function y (line 2) | function y(e){e.enter&&!Array.isArray(e.enter)&&(e.enter=[e.enter]),e.ex...
function m (line 2) | function m(e,t){const n=function(n){if(n[`is${e}`]())return t.apply(this...
function T (line 2) | function T(e){return"_"===e[0]||"enter"===e||"exit"===e||"shouldSkip"===...
function g (line 2) | function g(e,t){for(const n of["enter","exit"])t[n]&&(e[n]=[].concat(e[n...
function s (line 2) | function s(e,t,n){if(!(0,r.default)(e,t,n))throw new Error(`Expected typ...
method constructor (line 2) | constructor({file:e,sourceRoot:n}={}){this._names=new t.SetArray,this....
method constructor (line 2) | constructor(e,t={},n){const i=function(e,t){var n;const r={auxiliaryCo...
method generate (line 2) | generate(){return super.generate(this.ast)}
function s (line 2) | function s(e){return(0,r.default)({type:"NumericLiteral",value:e})}
method constructor (line 2) | constructor({file:e,sourceRoot:n}={}){this._names=new t.SetArray,this....
method constructor (line 2) | constructor(e,t={},n){const i=function(e,t){var n;const r={auxiliaryCo...
method generate (line 2) | generate(){return super.generate(this.ast)}
function a (line 2) | function a(e,t=""){return(0,r.default)({type:"RegExpLiteral",pattern:e,f...
function o (line 2) | function o(e){return(0,r.default)({type:"RestElement",argument:e})}
function l (line 2) | function l(e){return(0,r.default)({type:"SpreadElement",argument:e})}
function a (line 2) | function a(e,t,n,r){return e&&"string"==typeof e.type?l(e,t,n,r):e}
function o (line 2) | function o(e,t,n,r){return Array.isArray(e)?e.map((e=>a(e,t,n,r))):a(e,t...
function l (line 2) | function l(e,t=!0,n=!1,a){if(!e)return e;const{type:l}=e,u={type:e.type}...
function c (line 2) | function c(e,t,n,r){return e&&t?e.map((e=>{const t=r.get(e);if(t)return ...
function a (line 2) | function a(e,t=e.key){let n;return"method"===e.kind?a.increment()+"":(n=...
method validate (line 2) | validate(e,t,n){if(!r.env.BABEL_TYPES_8_BREAKING)return;const s=/\.(\w+)...
method validate (line 2) | validate(e,t){if(!r.env.BABEL_TYPES_8_BREAKING)return;const n=/(\w+)\[(\...
method validate (line 2) | validate(e,t,n){if(r.env.BABEL_TYPES_8_BREAKING&&(0,i.default)("ForXStat...
method unterminated (line 2) | unterminated(){n=!0}
function i (line 2) | function i(r,i,a){(0,s.default)("UnaryExpression",a)?(t(a,"operator",a.o...
method constructor (line 2) | constructor(e,t){this.start=void 0,this.end=void 0,this.filename=void ...
function t (line 2) | function t(t,n,r){for(const a of e)if(d(r)===a||(0,i.default)(a,r))retur...
function t (line 2) | function t(t,n,r){if(e.indexOf(r)<0)throw new TypeError(`Property ${n} e...
function t (line 2) | function t(t,n,r){const i=[];for(const n of Object.keys(e))try{(0,s.vali...
function d (line 2) | function d(e){return Array.isArray(e)?"array":null===e?"null":typeof e}
function f (line 2) | function f(e){return{validate:e}}
function y (line 2) | function y(e){return"string"==typeof e?b(e):b(...e)}
function m (line 2) | function m(e){return S(E("array"),g(e))}
function T (line 2) | function T(e){return m(y(e))}
function g (line 2) | function g(e){function t(t,n,i){if(Array.isArray(i))for(let a=0;a<i.leng...
function b (line 2) | function b(...e){function t(t,n,r){for(const a of e)if((0,i.default)(a,r...
method constructor (line 2) | constructor(e,t){this.inForStatementInitCounter=0,this._printStack=[],...
method generate (line 2) | generate(e){return this.print(e),this._maybeAddAuxComment(),this._buf....
method indent (line 2) | indent(){this.format.compact||this.format.concise||this._indent++}
method dedent (line 2) | dedent(){this.format.compact||this.format.concise||this._indent--}
method semicolon (line 2) | semicolon(e=!1){this._maybeAddAuxComment(),e?this._appendChar(59):this...
method rightBrace (line 2) | rightBrace(e){this.format.minified&&this._buf.removeLastSemicolon(),th...
method rightParens (line 2) | rightParens(e){this.sourceWithOffset("end",e.loc,-1),this.tokenChar(41)}
method space (line 2) | space(e=!1){if(!this.format.compact)if(e)this._space();else if(this._b...
method word (line 2) | word(e,t=!1){this._maybePrintInnerComments(),(this._endsWithWord||47==...
method number (line 2) | number(e){this.word(e),this._endsWithInteger=Number.isInteger(+e)&&!f....
method token (line 2) | token(e,t=!1){this._maybePrintInnerComments();const n=this.getLastChar...
method tokenChar (line 2) | tokenChar(e){this._maybePrintInnerComments();const t=this.getLastChar(...
method newline (line 2) | newline(e=1,t){if(!(e<=0)){if(!t){if(this.format.retainLines||this.for...
method endsWith (line 2) | endsWith(e){return this.getLastChar()===e}
method getLastChar (line 2) | getLastChar(){return this._buf.getLastChar()}
method endsWithCharAndNewline (line 2) | endsWithCharAndNewline(){return this._buf.endsWithCharAndNewline()}
method removeTrailingNewline (line 2) | removeTrailingNewline(){this._buf.removeTrailingNewline()}
method exactSource (line 2) | exactSource(e,t){e?(this._catchUp("start",e),this._buf.exactSource(e,t...
method source (line 2) | source(e,t){t&&(this._catchUp(e,t),this._buf.source(e,t))}
method sourceWithOffset (line 2) | sourceWithOffset(e,t,n){t&&(this._catchUp(e,t),this._buf.sourceWithOff...
method withSource (line 2) | withSource(e,t,n){t?(this._catchUp(e,t),this._buf.withSource(e,t,n)):n()}
method sourceIdentifierName (line 2) | sourceIdentifierName(e,t){if(!this._buf._canMarkIdName)return;const n=...
method _space (line 2) | _space(){this._queue(32)}
method _newline (line 2) | _newline(){this._queue(10)}
method _append (line 2) | _append(e,t){this._maybeAddParen(e),this._maybeIndent(e.charCodeAt(0))...
method _appendChar (line 2) | _appendChar(e){this._maybeAddParenChar(e),this._maybeIndent(e),this._b...
method _queue (line 2) | _queue(e){this._maybeAddParenChar(e),this._maybeIndent(e),this._buf.qu...
method _maybeIndent (line 2) | _maybeIndent(e){this._indent&&10!==e&&this.endsWith(10)&&this._buf.que...
method _shouldIndent (line 2) | _shouldIndent(e){if(this._indent&&10!==e&&this.endsWith(10))return!0}
method _maybeAddParenChar (line 2) | _maybeAddParenChar(e){const t=this._parenPushNewlineState;t&&32!==e&&(...
method _maybeAddParen (line 2) | _maybeAddParen(e){const t=this._parenPushNewlineState;if(!t)return;con...
method catchUp (line 2) | catchUp(e){if(!this.format.retainLines)return;const t=e-this._buf.getC...
method _catchUp (line 2) | _catchUp(e,t){var n;if(!this.format.retainLines)return;const r=null==t...
method _getIndent (line 2) | _getIndent(){return this._indentRepeat*this._indent}
method printTerminatorless (line 2) | printTerminatorless(e,t,n){if(n)this._noLineTerminator=!0,this.print(e...
method print (line 2) | print(e,t,n,r,i){var s;if(!e)return;this._endsWithInnerRaw=!1;const a=...
method _maybeAddAuxComment (line 2) | _maybeAddAuxComment(e){e&&this._printAuxBeforeComment(),this._insideAu...
method _printAuxBeforeComment (line 2) | _printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;t...
method _printAuxAfterComment (line 2) | _printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;t...
method getPossibleRaw (line 2) | getPossibleRaw(e){const t=e.extra;if(null!=(null==t?void 0:t.raw)&&nul...
method printJoin (line 2) | printJoin(e,t,n={}){if(null==e||!e.length)return;let{indent:r}=n;if(nu...
method printAndIndentOnComments (line 2) | printAndIndentOnComments(e,t){const n=e.leadingComments&&e.leadingComm...
method printBlock (line 2) | printBlock(e){const t=e.body;"EmptyStatement"!==t.type&&this.space(),t...
method _printTrailingComments (line 2) | _printTrailingComments(e,t,n){const{innerComments:r,trailingComments:i...
method _printLeadingComments (line 2) | _printLeadingComments(e,t){const n=e.leadingComments;null!=n&&n.length...
method _maybePrintInnerComments (line 2) | _maybePrintInnerComments(){this._endsWithInnerRaw&&this.printInnerComm...
method printInnerComments (line 2) | printInnerComments(){const e=this._printStack[this._printStack.length-...
method noIndentInnerCommentsHere (line 2) | noIndentInnerCommentsHere(){this._indentInnerComments=!1}
method printSequence (line 2) | printSequence(e,t,n={}){n.statement=!0,null!=n.indent||(n.indent=!1),t...
method printList (line 2) | printList(e,t,n={}){null==n.separator&&(n.separator=S),this.printJoin(...
method _printNewline (line 2) | _printNewline(e,t){const n=this.format;if(n.retainLines||n.compact)ret...
method _shouldPrintComment (line 2) | _shouldPrintComment(e){return e.ignore||this._printedComments.has(e)?0...
method _printComment (line 2) | _printComment(e,t){const n=this._noLineTerminator,r="CommentBlock"===e...
method _printComments (line 2) | _printComments(e,t,n,r,i=0){const s=n.loc,a=t.length;let h=!!s;const d...
function E (line 2) | function E(e){function t(t,n,r){if(d(r)!==e)throw new TypeError(`Propert...
function S (line 2) | function S(...e){function t(...t){for(const n of e)n(...t)}if(t.chainOf=...
function A (line 2) | function A(e,t={}){const n=t.inherits&&D[t.inherits]||{};let r=t.fields;...
method constructor (line 2) | constructor(e,t){this.contexts=[],this.state=null,this.opts=null,this....
method get (line 2) | static get({hub:e,parentPath:t,parent:n,container:r,listKey:i,key:s}){...
method getScope (line 2) | getScope(e){return this.isScope()?new a.default(this):e}
method setData (line 2) | setData(e,t){return null==this.data&&(this.data=Object.create(null)),t...
method getData (line 2) | getData(e,t){null==this.data&&(this.data=Object.create(null));let n=th...
method hasNode (line 2) | hasNode(){return null!=this.node}
method buildCodeFrameError (line 2) | buildCodeFrameError(e,t=SyntaxError){return this.hub.buildError(this.n...
method traverse (line 2) | traverse(e,t){(0,s.default)(this.node,e,this.scope,t,this)}
method set (line 2) | set(e,t){x(this.node,e,t),this.node[e]=t}
method getPathLocation (line 2) | getPathLocation(){const e=[];let t=this;do{let n=t.key;t.inList&&(n=`$...
method debug (line 2) | debug(e){D.enabled&&D(`${this.getPathLocation()} ${this.type}: ${e}`)}
method toString (line 2) | toString(){return(0,u.default)(this.node).code}
method inList (line 2) | get inList(){return!!this.listKey}
method inList (line 2) | set inList(e){e||(this.listKey=null)}
method parentKey (line 2) | get parentKey(){return this.listKey||this.key}
method shouldSkip (line 2) | get shouldSkip(){return!!(4&this._traverseFlags)}
method shouldSkip (line 2) | set shouldSkip(e){e?this._traverseFlags|=4:this._traverseFlags&=-5}
method shouldStop (line 2) | get shouldStop(){return!!(2&this._traverseFlags)}
method shouldStop (line 2) | set shouldStop(e){e?this._traverseFlags|=2:this._traverseFlags&=-3}
method removed (line 2) | get removed(){return!!(1&this._traverseFlags)}
method removed (line 2) | set removed(e){e?this._traverseFlags|=1:this._traverseFlags&=-2}
function i (line 2) | function i(e){return(0,r.isIdentifier)(e)?e.name:`${e.id.name}.${i(e.qua...
method constructor (line 2) | constructor(e,t){this.start=void 0,this.end=void 0,this.filename=void ...
function i (line 2) | function i(e){return(0,r.isIdentifier)(e)?e.name:`${e.right.name}.${i(e....
method constructor (line 2) | constructor(e,t){this.start=void 0,this.end=void 0,this.filename=void ...
function i (line 2) | function i(e,t,n){const s=[].concat(e),a=Object.create(null);for(;s.leng...
method constructor (line 2) | constructor(e,t){this.start=void 0,this.end=void 0,this.filename=void ...
function i (line 2) | function i(e,t,n,s,a){const o=r.VISITOR_KEYS[e.type];if(o){t&&t(e,a,s);f...
method constructor (line 2) | constructor(e,t){this.start=void 0,this.end=void 0,this.filename=void ...
function s (line 2) | function s(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration"...
method constructor (line 2) | constructor({file:e,sourceRoot:n}={}){this._names=new t.SetArray,this....
method constructor (line 2) | constructor(e,t={},n){const i=function(e,t){var n;const r={auxiliaryCo...
method generate (line 2) | generate(){return super.generate(this.ast)}
function i (line 2) | function i(e,t,n,r){null!=r&&r.validate&&(r.optional&&null==n||r.validat...
method constructor (line 2) | constructor(e,t){this.start=void 0,this.end=void 0,this.filename=void ...
function s (line 2) | function s(e,t,n){if(null==n)return;const i=r.NODE_PARENT_VALIDATIONS[n....
method constructor (line 2) | constructor({file:e,sourceRoot:n}={}){this._names=new t.SetArray,this....
method constructor (line 2) | constructor(e,t={},n){const i=function(e,t){var n;const r={auxiliaryCo...
method generate (line 2) | generate(){return super.generate(this.ast)}
function n (line 2) | function n(r){var i=t[r];if(void 0!==i)return i.exports;var s=t[r]={id:r...
function P (line 2) | function P(e){return P="function"==typeof Symbol&&"symbol"==typeof Symbo...
method constructor (line 2) | constructor(e,t){this.token=void 0,this.preserveSpace=void 0,this.toke...
function x (line 2) | function x(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=...
function I (line 2) | function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Ar...
function M (line 2) | function M(e){return M="function"==typeof Symbol&&"symbol"==typeof Symbo...
function B (line 2) | function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){va...
function j (line 2) | function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[...
function H (line 2) | function H(e){return H="function"==typeof Symbol&&"symbol"==typeof Symbo...
function J (line 2) | function J(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){va...
function $ (line 2) | function $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[...
function z (line 2) | function z(e){return z="function"==typeof Symbol&&"symbol"==typeof Symbo...
function Q (line 2) | function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){va...
function Z (line 2) | function Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[...
function te (line 2) | function te(e){return te="function"==typeof Symbol&&"symbol"==typeof Sym...
function ne (line 2) | function ne(e){return function(e){if(Array.isArray(e))return re(e)}(e)||...
function re (line 2) | function re(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new A...
function oe (line 2) | function oe(e){return function(e){if(Array.isArray(e))return le(e)}(e)||...
function le (line 2) | function le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new A...
function de (line 2) | function de(e){return function(e){if(Array.isArray(e))return fe(e)}(e)||...
function fe (line 2) | function fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new A...
function be (line 2) | function be(e){return be="function"==typeof Symbol&&"symbol"==typeof Sym...
method createScope (line 2) | createScope(e){return new ge(e)}
method declareName (line 2) | declareName(e,t,n){const r=this.currentScope();if(2048&t)return this.c...
method isRedeclaredInScope (line 2) | isRedeclaredInScope(e,t,n){return!!super.isRedeclaredInScope(e,t,n)||!...
method checkLocalExport (line 2) | checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||s...
function Ee (line 2) | function Ee(e){return function(e){if(Array.isArray(e))return Se(e)}(e)||...
method constructor (line 2) | constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentA...
method hasPlugin (line 2) | hasPlugin(e){if("string"==typeof e)return this.plugins.has(e);{const[t...
method getPluginOption (line 2) | getPluginOption(e,t){var n;return null==(n=this.plugins.get(e))?void 0...
function Se (line 2) | function Se(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new A...
function Pe (line 2) | function Pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){v...
function xe (line 2) | function xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments...
function ve (line 2) | function ve(e){return ve="function"==typeof Symbol&&"symbol"==typeof Sym...
function Ce (line 2) | function Ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){v...
function we (line 2) | function we(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments...
function Fe (line 2) | function Fe(e){return Fe="function"==typeof Symbol&&"symbol"==typeof Sym...
method constructor (line 2) | constructor(){this.strict=void 0,this.curLine=void 0,this.lineStart=vo...
method init (line 2) | init({strictMode:e,sourceType:t,startLine:n,startColumn:i}){this.stric...
method curPosition (line 2) | curPosition(){return new r(this.curLine,this.pos-this.lineStart,this.p...
method clone (line 2) | clone(e){const t=new Fe,n=Object.keys(this);for(let r=0,i=n.length;r<i...
function ke (line 2) | function ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){v...
function Le (line 2) | function Le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments...
function Ke (line 2) | function Ke(e){return Ke="function"==typeof Symbol&&"symbol"==typeof Sym...
function We (line 2) | function We(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){v...
function Xe (line 2) | function Xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments...
function Ye (line 2) | function Ye(e,t,n){return(t=function(e){var t=function(e,t){if("object"!...
function Pt (line 2) | function Pt(e){return Pt="function"==typeof Symbol&&"symbol"==typeof Sym...
function xt (line 2) | function xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){v...
function Dt (line 2) | function Dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments...
function n (line 2) | function n(n,r,i){return e(vt(n,r,i,t))}
function Vt (line 2) | function Vt(e){return Vt="function"==typeof Symbol&&"symbol"==typeof Sym...
function Kt (line 2) | function Kt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbol
Condensed preview — 118 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (1,114K chars).
[
{
"path": ".editorconfig",
"chars": 188,
"preview": "root = true\n\n[*]\nindent_style = space\nindent_size = 4\nend_of_line = LF\ncharset = utf-8\ntrim_trailing_whitespace = true\ni"
},
{
"path": ".github/workflows/codesee-arch-diagram.yml",
"chars": 2437,
"preview": "on:\n push:\n branches:\n - master\n pull_request_target:\n types: [opened, synchronize, reopened]\n\nname: CodeSe"
},
{
"path": ".gitignore",
"chars": 604,
"preview": "# Logs\nlogs\n*.log\nbuild/\n\n# Runtime data\npids\n*.pid\n*.seed\n\n# Directory for instrumented libs generated by jscoverage/JS"
},
{
"path": ".npmignore",
"chars": 5,
"preview": "docs\n"
},
{
"path": ".nvmrc",
"chars": 6,
"preview": "v6.10\n"
},
{
"path": ".prettierrc",
"chars": 87,
"preview": "{\n \"printWidth\": 100,\n \"parser\": \"babylon\",\n \"singleQuote\": true,\n \"tabWidth\": 4\n}\n"
},
{
"path": "LICENSE",
"chars": 1073,
"preview": "MIT License\n\nCopyright (c) 2017 Bohdan Liashenko\n\nPermission is hereby granted, free of charge, to any person obtaining "
},
{
"path": "README.md",
"chars": 20270,
"preview": "> Why? While I've been working on [Under-the-hood-ReactJS](https://github.com/Bogdan-Lyashenko/Under-the-hood-ReactJS) I"
},
{
"path": "_config.yml",
"chars": 26,
"preview": "theme: jekyll-theme-cayman"
},
{
"path": "babel.config.js",
"chars": 332,
"preview": "module.exports = function(app) {\n app.cache(true);\n\n const presets = [\n [\n '@babel/preset-env',\n"
},
{
"path": "cli/index.cli.js",
"chars": 3374,
"preview": "#!/usr/bin/env node\n/**\n * @todo Add features from the Non-CLI side of this module such as:\n * 2. Custom abstraction lev"
},
{
"path": "dist/js2flowchart.js",
"chars": 899902,
"preview": "/*! For license information please see js2flowchart.js.LICENSE.txt */\n!function(e,t){\"object\"==typeof exports&&\"object\"="
},
{
"path": "dist/js2flowchart.js.LICENSE.txt",
"chars": 225,
"preview": "/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh <https://feross.org>\n * @lic"
},
{
"path": "docs/_config.yml",
"chars": 26,
"preview": "theme: jekyll-theme-cayman"
},
{
"path": "docs/examples/blur-shape-branch/code-sample.js",
"chars": 382,
"preview": "const code = `\n const doStuff = (stuff) => {\n if (stuff) {\n if (devFlag) {\n log('per"
},
{
"path": "docs/examples/blur-shape-branch/index.html",
"chars": 541,
"preview": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <title>Title</title>\n</head>\n<body>\n <iframe s"
},
{
"path": "docs/examples/blur-shape-branch/index.js",
"chars": 480,
"preview": "const {\n convertCodeToFlowTree,\n createSVGRender,\n createShapesTreeEditor\n} = window.js2flowchart;\n\nconst flowT"
},
{
"path": "docs/examples/custom-modifier/code-sample.js",
"chars": 203,
"preview": "const code = `\n const list = [1, 2, 3, 4];\n\n function print(list) {\n newList.forEach(i => {\n if "
},
{
"path": "docs/examples/custom-modifier/index.html",
"chars": 541,
"preview": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <title>Title</title>\n</head>\n<body>\n <iframe s"
},
{
"path": "docs/examples/custom-modifier/index.js",
"chars": 648,
"preview": "const JS2FlowChart = window['js2flowchart'];\n\nconst flowTreeBuilder = JS2FlowChart.createFlowTreeBuilder();\nconst flowTr"
},
{
"path": "docs/examples/debug-rendering/code-sample.js",
"chars": 162,
"preview": "const code = `\n class Man {\n constructor(n) {\n this.name = n;\n }\n\n sayName() {\n "
},
{
"path": "docs/examples/debug-rendering/index.html",
"chars": 513,
"preview": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <title>Title</title>\n</head>\n<body>\n<iframe style"
},
{
"path": "docs/examples/debug-rendering/index.js",
"chars": 519,
"preview": "const {convertCodeToFlowTree, createSVGRender, createShapesTreeEditor} = window.js2flowchart;\n\nconst svgRender = createS"
},
{
"path": "docs/examples/default/code-sample.js",
"chars": 701,
"preview": "const code = `\n class A { b = 1; }\n\n function indexSearch(list, element) {\n let currentIndex,\n c"
},
{
"path": "docs/examples/default/index.html",
"chars": 738,
"preview": "<!doctype html>\n<html class=\"no-js\" lang=\"\">\n <head>\n <meta charset=\"utf-8\">\n <title>Default example</t"
},
{
"path": "docs/examples/default/index.js",
"chars": 130,
"preview": "const {\n convertCodeToSvg\n} = window['js2flowchart'];\n\ndocument.getElementById('svgImage').innerHTML = convertCodeToS"
},
{
"path": "docs/examples/defined-abstraction-level/code-sample.js",
"chars": 327,
"preview": "const code = `\n import {format, trim} from 'formattier';\n import {log} from 'logger';\n\n const data = [];\n\n e"
},
{
"path": "docs/examples/defined-abstraction-level/index.html",
"chars": 562,
"preview": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <title>Defined abstraction level</title>\n</head>\n"
},
{
"path": "docs/examples/defined-abstraction-level/index.js",
"chars": 464,
"preview": "const {\n ABSTRACTION_LEVELS,\n createFlowTreeBuilder,\n convertFlowTreeToSvg\n} = window.js2flowchart;\n\nconst flow"
},
{
"path": "docs/examples/defined-color-theme/code-sample.js",
"chars": 364,
"preview": "const code = `\n function switchSampleFromMDN() {\n const foo = 0;\n\n switch (foo) {\n case -1:\n "
},
{
"path": "docs/examples/defined-color-theme/index.html",
"chars": 784,
"preview": "<!doctype html>\n<html class=\"no-js\" lang=\"\">\n <head>\n <meta charset=\"utf-8\">\n <meta http-equiv=\"x-ua-co"
},
{
"path": "docs/examples/defined-color-theme/index.js",
"chars": 330,
"preview": "const {createSVGRender, convertCodeToFlowTree} = window.js2flowchart;\n\nconst flowTree = convertCodeToFlowTree(code),\n "
},
{
"path": "docs/examples/defined-modifier/code-sample.js",
"chars": 291,
"preview": "const code = `\n function print(list) {\n const newList = list.map(i => {\n return i + 1;\n });\n"
},
{
"path": "docs/examples/defined-modifier/index.html",
"chars": 517,
"preview": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <title>Title</title>\n</head>\n<body>\n <iframe s"
},
{
"path": "docs/examples/defined-modifier/index.js",
"chars": 491,
"preview": "const {\n createFlowTreeBuilder,\n createFlowTreeModifier,\n convertFlowTreeToSvg,\n MODIFIER_PRESETS\n} = window"
},
{
"path": "docs/examples/dev/code-sample.js",
"chars": 6408,
"preview": "const code = `\nimport { complexTraversal } from 'shared/utils/traversalWithTreeLevelsPointer';\nimport { SVGBase } from '"
},
{
"path": "docs/examples/dev/index.html",
"chars": 290,
"preview": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <title>Title</title>\n</head>\n<body>\n\n<div>\n <p"
},
{
"path": "docs/examples/dev/index.js",
"chars": 423,
"preview": "const { createSVGRender, convertCodeToFlowTree } = window.js2flowchart;\n\nconst flowTree = convertCodeToFlowTree(`const l"
},
{
"path": "docs/examples/node-destruction/code-sample.js",
"chars": 255,
"preview": "const code = `\n const list = [1, 2, 3, 4];\n\n function filterAndPrint(list) {\n list = list.filte"
},
{
"path": "docs/examples/node-destruction/index.html",
"chars": 541,
"preview": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <title>Title</title>\n</head>\n<body>\n <iframe s"
},
{
"path": "docs/examples/node-destruction/index.js",
"chars": 490,
"preview": "const {\n createFlowTreeBuilder,\n createFlowTreeModifier,\n convertFlowTreeToSvg\n} = window.js2flowchart;\n\nconst "
},
{
"path": "docs/examples/one-module-presentation/code-sample.js",
"chars": 601,
"preview": "const code = `\n import {format} from './util/string';\n\n function formatName(name) {\n if (!name) return 'no-"
},
{
"path": "docs/examples/one-module-presentation/index.html",
"chars": 1018,
"preview": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <title>Presentation</title>\n <link rel=\"styles"
},
{
"path": "docs/examples/one-module-presentation/index.js",
"chars": 910,
"preview": "const {createPresentationGenerator} = window.js2flowchart;\n\nconst presentationGenerator = createPresentationGenerator(co"
},
{
"path": "docs/live-editor/index.html",
"chars": 3355,
"preview": "<!doctype html>\n<html class=\"no-js\" lang=\"\">\n <head>\n <meta charset=\"utf-8\">\n <title>Live code editor</"
},
{
"path": "docs/live-editor/index.js",
"chars": 943,
"preview": "(function () {\n const worker = new Worker('./worker.js'),\n svgImage = document.getElementById('svgImage'),\n "
},
{
"path": "docs/live-editor/worker.js",
"chars": 427,
"preview": "importScripts('../../dist/js2flowchart.js');\n\nself.onmessage = function(message) {\n const code = message.data.code;\n "
},
{
"path": "index.js",
"chars": 1281,
"preview": "import FlowTreeBuilder, {\n createFlowTreeModifier as createFlowTreeModifierFromBuilder,\n\n ABSTRACTION_LEVELS,\n "
},
{
"path": "package.json",
"chars": 1235,
"preview": "{\n \"name\": \"js2flowchart\",\n \"version\": \"1.3.5\",\n \"author\": \"Bohdan Liashenko\",\n \"license\": \"MIT\",\n \"repository\": {\n"
},
{
"path": "samples/blurShapeBranch.js",
"chars": 300,
"preview": "const doStuff = (stuff) => {\n if (stuff) {\n if (devFlag) {\n log('perf start');\n doRecurs"
},
{
"path": "samples/customModifier.js",
"chars": 150,
"preview": "const list = [1, 2, 3, 4];\nfunction print(list) {\n newList.forEach(i => {\n if (i > 2) return;\n console."
},
{
"path": "samples/debugRendering.js",
"chars": 110,
"preview": "class Man {\n constructor(n) {\n this.name = n;\n }\n sayName() {\n return this.name\n }\n}"
},
{
"path": "samples/default.js",
"chars": 573,
"preview": "function indexSearch(list, element) {\n let currentIndex,\n currentElement,\n minIndex = 0,\n maxInd"
},
{
"path": "samples/definedAbstractionLevel.js",
"chars": 265,
"preview": "import {format, trim} from 'formattier';\nimport {log} from 'logger';\nconst data = [];\nexport default print = (list) => {"
},
{
"path": "samples/definedColorTheme.js",
"chars": 316,
"preview": "function switchSampleFromMDN() {\n const foo = 0;\n switch (foo) {\n case -1:\n console.log('negativ"
},
{
"path": "samples/definedModifier.js",
"chars": 231,
"preview": "function print(list) {\n const newList = list.map(i => {\n return i + 1;\n });\n newList.forEach(i => {\n "
},
{
"path": "samples/dev.js",
"chars": 5892,
"preview": "import { complexTraversal } from 'shared/utils/traversalWithTreeLevelsPointer';\nimport { SVGBase } from './SVGBase';\nimp"
},
{
"path": "samples/nodeDestruction.js",
"chars": 176,
"preview": "const list = [1, 2, 3, 4];\nfunction filterAndPrint(list) {\n list = list.filter((i, b) => a);\n list.forEach(i => co"
},
{
"path": "samples/oneModulePresentation.js",
"chars": 456,
"preview": "import {format} from './util/string';\nfunction formatName(name) {\n if (!name) return 'no-name';\n return format(nam"
},
{
"path": "src/builder/FlowTreeBuilder.js",
"chars": 3036,
"preview": "import traverse from '@babel/traverse';\n\nimport { DefinitionsList } from './entryDefinitionsMap';\nimport { parseCodeToAS"
},
{
"path": "src/builder/FlowTreeModifier.js",
"chars": 1603,
"preview": "import { traversalSearch } from 'shared/utils/traversal';\n\nconst executeApplyFn = (apply, node) => (typeof apply === 'fu"
},
{
"path": "src/builder/abstraction-levels/functionDependencies.js",
"chars": 1370,
"preview": "import { TOKEN_TYPES } from 'shared/constants';\nimport { callExpressionConverter } from 'builder/converters/core';\nimpor"
},
{
"path": "src/builder/abstraction-levels/functions.js",
"chars": 982,
"preview": "import { TOKEN_TYPES } from 'shared/constants';\nimport { DefinitionsMap } from 'builder/entryDefinitionsMap';\n\nexport co"
},
{
"path": "src/builder/abstractionLevelsConfigurator.js",
"chars": 1394,
"preview": "import { TOKEN_TYPES } from 'shared/constants';\nimport { DefinitionsList } from './entryDefinitionsMap';\nimport { getFun"
},
{
"path": "src/builder/astBuilder.js",
"chars": 3230,
"preview": "import * as babelParser from '@babel/parser';\nimport { mergeObjectStructures } from 'shared/utils/composition';\n\nimport "
},
{
"path": "src/builder/astParserConfig.js",
"chars": 335,
"preview": "export default {\n sourceType: 'module',\n plugins: [\n 'objectRestSpread',\n 'jsx',\n 'typescript"
},
{
"path": "src/builder/converters/Harmony.js",
"chars": 1576,
"preview": "import generate from '@babel/generator';\nimport { TOKEN_TYPES } from 'shared/constants';\n\nexport const importDeclaration"
},
{
"path": "src/builder/converters/core.js",
"chars": 9073,
"preview": "import generate from '@babel/generator';\nimport { TOKEN_TYPES, CLASS_FUNCTION_KINDS } from 'shared/constants';\n\nexport c"
},
{
"path": "src/builder/entryDefinitionsMap.js",
"chars": 10596,
"preview": "import { TOKEN_TYPES, TOKEN_KEYS } from 'shared/constants';\nimport {\n idleConverter,\n identifierConverter,\n fun"
},
{
"path": "src/builder/modifiers/modifiersFactory.js",
"chars": 2601,
"preview": "import { TOKEN_TYPES, TOKEN_KEYS, MODIFIED_TYPES } from 'shared/constants';\n\nconst extractNodeName = (node, field) => {\n"
},
{
"path": "src/presentation-generator/PresentationGenerator.js",
"chars": 1993,
"preview": "import { parseCodeToAST } from 'builder/astBuilder';\n\nimport FlowTreeBuilder, {\n ABSTRACTION_LEVELS,\n MODIFIER_PRE"
},
{
"path": "src/render/svg/SVGBase.js",
"chars": 1629,
"preview": "import { calculateShapesBoundaries } from 'shared/utils/geometry';\n\nexport const SVGBase = () => {\n const state = {\n "
},
{
"path": "src/render/svg/SVGRender.js",
"chars": 4684,
"preview": "import {\n getDefaultTheme,\n getBlurredTheme,\n getBlackAndWhiteTheme,\n getLightTheme,\n applyStyleToTheme,\n"
},
{
"path": "src/render/svg/appearance/StyleThemeFactory.js",
"chars": 1526,
"preview": "import { mergeObjectStructures } from 'shared/utils/composition';\n\nimport DEFAULT, { buildTheme } from './themes/Default"
},
{
"path": "src/render/svg/appearance/TextContentConfigurator.js",
"chars": 367,
"preview": "import { buildIterator } from 'shared/utils/iteratorBuilder';\n\nexport const MAX_NAME_STR_LENGTH = 50;\n\nexport const NAME"
},
{
"path": "src/render/svg/appearance/themes/BlackAndWhite.js",
"chars": 306,
"preview": "import { buildTheme, DefaultColors, getAlignedColors } from './DefaultBaseTheme';\n\nexport const Colors = {\n ...getAli"
},
{
"path": "src/render/svg/appearance/themes/Blurred.js",
"chars": 717,
"preview": "import { buildTheme } from './DefaultBaseTheme';\n\nexport const Colors = {\n strokeColor: '#ccc',\n defaultFillColor:"
},
{
"path": "src/render/svg/appearance/themes/DefaultBaseTheme.js",
"chars": 7165,
"preview": "export const DefaultColors = {\n strokeColor: '#444',\n defaultFillColor: '#fff',\n textColor: '#222',\n arrowFi"
},
{
"path": "src/render/svg/appearance/themes/Light.js",
"chars": 717,
"preview": "import { buildTheme } from './DefaultBaseTheme';\n\nexport const Colors = {\n strokeColor: '#555',\n defaultFillColor:"
},
{
"path": "src/render/svg/connections/ConnectionArrow.js",
"chars": 2633,
"preview": "import { assignState, mergeObjectStructures } from 'shared/utils/composition';\nimport { getCurvedPath, getClosedPath } f"
},
{
"path": "src/render/svg/shapes/BaseShape.js",
"chars": 7330,
"preview": "import escape from 'xml-escape';\nimport { mergeObjectStructures } from 'shared/utils/composition';\nimport {\n generate"
},
{
"path": "src/render/svg/shapes/BreakStatement.js",
"chars": 208,
"preview": "import { delegateInit } from './BaseShape';\nimport { ReturnStatement } from './ReturnStatement';\n\nconst ENTITY_FIELD_NAM"
},
{
"path": "src/render/svg/shapes/CallExpression.js",
"chars": 190,
"preview": "import { delegateInit } from './BaseShape';\nimport { Rectangle } from './Rectangle';\n\nconst ENTITY_FIELD_NAME = 'CallExp"
},
{
"path": "src/render/svg/shapes/CatchClause.js",
"chars": 205,
"preview": "import { delegateInit } from './BaseShape';\nimport { ReturnStatement } from './ReturnStatement';\n\nconst ENTITY_FIELD_NAM"
},
{
"path": "src/render/svg/shapes/ClassDeclaration.js",
"chars": 231,
"preview": "import { delegateInit } from './BaseShape';\nimport { VerticalEdgedRectangle } from './VerticalEdgedRectangle';\n\nconst EN"
},
{
"path": "src/render/svg/shapes/ConditionRhombus.js",
"chars": 4223,
"preview": "import { TOKEN_KEYS, TOKEN_TYPES } from 'shared/constants';\nimport { getRhombus, getRoundedRectangle, getText } from 'sh"
},
{
"path": "src/render/svg/shapes/ContinueStatement.js",
"chars": 211,
"preview": "import { delegateInit } from './BaseShape';\nimport { ReturnStatement } from './ReturnStatement';\n\nconst ENTITY_FIELD_NAM"
},
{
"path": "src/render/svg/shapes/DebuggerStatement.js",
"chars": 193,
"preview": "import { delegateInit } from './BaseShape';\nimport { Rectangle } from './Rectangle';\n\nconst ENTITY_FIELD_NAME = 'Debugge"
},
{
"path": "src/render/svg/shapes/DestructedNode.js",
"chars": 2349,
"preview": "import { getRoundedRectangle, getLine, getClosedPath } from 'shared/utils/svgPrimitives';\nimport { assignState } from 's"
},
{
"path": "src/render/svg/shapes/ExportDeclaration.js",
"chars": 211,
"preview": "import { delegateInit } from './BaseShape';\nimport { ReturnStatement } from './ReturnStatement';\n\nconst ENTITY_FIELD_NAM"
},
{
"path": "src/render/svg/shapes/ImportDeclaration.js",
"chars": 232,
"preview": "import { delegateInit } from './BaseShape';\nimport { VerticalEdgedRectangle } from './VerticalEdgedRectangle';\n\nconst EN"
},
{
"path": "src/render/svg/shapes/ImportSpecifier.js",
"chars": 191,
"preview": "import { delegateInit } from './BaseShape';\nimport { Rectangle } from './Rectangle';\n\nconst ENTITY_FIELD_NAME = 'ImportS"
},
{
"path": "src/render/svg/shapes/LoopRhombus.js",
"chars": 3235,
"preview": "import { getRhombus, getRoundedRectangle, getText } from 'shared/utils/svgPrimitives';\nimport { assignState } from 'shar"
},
{
"path": "src/render/svg/shapes/ObjectProperty.js",
"chars": 190,
"preview": "import { delegateInit } from './BaseShape';\nimport { Rectangle } from './Rectangle';\n\nconst ENTITY_FIELD_NAME = 'ObjectP"
},
{
"path": "src/render/svg/shapes/Rectangle.js",
"chars": 1415,
"preview": "import { getRoundedRectangle, getCircle } from 'shared/utils/svgPrimitives';\nimport { assignState } from 'shared/utils/c"
},
{
"path": "src/render/svg/shapes/ReturnStatement.js",
"chars": 2987,
"preview": "import { getRoundedRectangle, getLine, getClosedPath } from 'shared/utils/svgPrimitives';\nimport { assignState } from 's"
},
{
"path": "src/render/svg/shapes/Rhombus.js",
"chars": 755,
"preview": "import {\n calculateWidth as calculateWidthBaseShape,\n calculateHeight as calculateHeightBaseHeight\n} from './BaseS"
},
{
"path": "src/render/svg/shapes/RootCircle.js",
"chars": 1479,
"preview": "import { getCircle, getRectangle } from 'shared/utils/svgPrimitives';\nimport { assignState } from 'shared/utils/composit"
},
{
"path": "src/render/svg/shapes/SwitchCase.js",
"chars": 186,
"preview": "import { delegateInit } from './BaseShape';\nimport { Rectangle } from './Rectangle';\n\nconst ENTITY_FIELD_NAME = 'SwitchC"
},
{
"path": "src/render/svg/shapes/SwitchStatement.js",
"chars": 212,
"preview": "import { delegateInit } from './BaseShape';\nimport { ConditionRhombus } from './ConditionRhombus';\n\nconst ENTITY_FIELD_N"
},
{
"path": "src/render/svg/shapes/ThrowStatement.js",
"chars": 190,
"preview": "import { delegateInit } from './BaseShape';\nimport { Rectangle } from './Rectangle';\n\nconst ENTITY_FIELD_NAME = 'ThrowSt"
},
{
"path": "src/render/svg/shapes/TryStatement.js",
"chars": 188,
"preview": "import { delegateInit } from './BaseShape';\nimport { Rectangle } from './Rectangle';\n\nconst ENTITY_FIELD_NAME = 'TryStat"
},
{
"path": "src/render/svg/shapes/VerticalEdgedRectangle.js",
"chars": 1825,
"preview": "import { getRectangle, getLine } from 'shared/utils/svgPrimitives';\nimport { assignState } from 'shared/utils/compositio"
},
{
"path": "src/render/svg/shapesDefinitionsMap.js",
"chars": 2961,
"preview": "import { TOKEN_TYPES, MODIFIED_TYPES } from 'shared/constants';\n\nimport VerticalEdgedRectangle from './shapes/VerticalEd"
},
{
"path": "src/render/svg/shapesFactory.js",
"chars": 2876,
"preview": "import { ARROW_TYPE } from 'shared/constants';\nimport { getShapeForNode } from './shapesDefinitionsMap';\nimport Connecti"
},
{
"path": "src/render/svg/svgObjectsBuilder.js",
"chars": 5919,
"preview": "import { complexTraversal } from 'shared/utils/traversalWithTreeLevelsPointer';\nimport { SVGBase } from './SVGBase';\nimp"
},
{
"path": "src/shared/constants.js",
"chars": 2703,
"preview": "export const TOKEN_TYPES = {\n FUNCTION: 'Function',\n FUNCTION_EXPRESSION: 'FunctionExpression',\n FUNCTION_DECLA"
},
{
"path": "src/shared/utils/composition.js",
"chars": 273,
"preview": "import merge from 'deepmerge';\n\nexport const assignState = (state, extensionsList) => {\n return Object.assign.apply(n"
},
{
"path": "src/shared/utils/flatten.js",
"chars": 363,
"preview": "export const flatTree = (tree, getBody = node => node.body) => {\n let flatList = [];\n\n [].concat(tree).forEach(nod"
},
{
"path": "src/shared/utils/geometry.js",
"chars": 856,
"preview": "export const calculateShapesBoundaries = list => {\n if (!list || !list.length) {\n throw new Error('List is not"
},
{
"path": "src/shared/utils/iteratorBuilder.js",
"chars": 160,
"preview": "export const buildIterator = list => ({\n index: 0,\n getNext() {\n return list[this.index++];\n },\n rese"
},
{
"path": "src/shared/utils/logger.js",
"chars": 68,
"preview": "export const logError = message => {\n console.error(message);\n};\n"
},
{
"path": "src/shared/utils/string.js",
"chars": 1830,
"preview": "import stringWidth from 'string-width';\n\nexport const generateId = () => {\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxx"
},
{
"path": "src/shared/utils/svgPrimitives.js",
"chars": 4117,
"preview": "const SvgStyleFieldsMap = [\n {\n from: 'fillColor',\n to: 'fill'\n },\n {\n from: 'strokeColor'"
},
{
"path": "src/shared/utils/traversal.js",
"chars": 871,
"preview": "export const levelsTraversal = (tree, stepIn, onNode, stepOut, options = {}) => {\n const getBody = options.getBody ||"
},
{
"path": "src/shared/utils/traversalWithTreeLevelsPointer.js",
"chars": 726,
"preview": "import { levelsTraversal } from './traversal';\nimport { setupPointer } from './treeLevelsPointer';\n\nexport const complex"
},
{
"path": "src/shared/utils/treeLevelsPointer.js",
"chars": 295,
"preview": "export const setupPointer = cache => ({\n list: cache ? [cache] : [],\n\n getCurrent() {\n if (!this.list.lengt"
},
{
"path": "webpack.config.js",
"chars": 1215,
"preview": "/* global __dirname, require, module*/\n\nconst path = require('path');\nconst webpack = require('webpack');\n\nlet libraryNa"
}
]
About this extraction
This page contains the full source code of the Bogdan-Lyashenko/js-code-to-svg-flowchart GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 118 files (1.0 MB), approximately 316.0k tokens, and a symbol index with 1621 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.