django-handyhelpers 0.3.20__py3-none-any.whl → 0.3.36__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- {django_handyhelpers-0.3.20.dist-info → django_handyhelpers-0.3.36.dist-info}/METADATA +16 -6
- {django_handyhelpers-0.3.20.dist-info → django_handyhelpers-0.3.36.dist-info}/RECORD +562 -75
- {django_handyhelpers-0.3.20.dist-info → django_handyhelpers-0.3.36.dist-info}/WHEEL +1 -1
- handyhelpers/__init__.py +6 -6
- handyhelpers/forms.py +9 -1
- handyhelpers/mixins/form_mixins.py +61 -0
- handyhelpers/mixins/model_mixins.py +21 -0
- handyhelpers/mixins/serializer_mixins.py +35 -0
- handyhelpers/mixins/view_mixins.py +5 -2
- handyhelpers/serializers.py +23 -3
- handyhelpers/static/handyhelpers/css/table_sortable.css +17 -0
- handyhelpers/static/handyhelpers/js/sidebar.js +8 -4
- handyhelpers/static/handyhelpers/js/table_sortable.js +119 -0
- handyhelpers/static/node_modules/.bin/acorn +4 -0
- handyhelpers/static/node_modules/.bin/css-b64-images +13 -0
- handyhelpers/static/node_modules/.bin/esbuild +0 -0
- handyhelpers/static/node_modules/.bin/html-minifier-terser +308 -0
- handyhelpers/static/node_modules/.bin/minify +98 -0
- handyhelpers/static/node_modules/.bin/terser +21 -0
- handyhelpers/static/node_modules/.bin/uglifyjs +624 -0
- handyhelpers/static/node_modules/.package-lock.json +750 -0
- handyhelpers/static/node_modules/@esbuild/linux-x64/README.md +3 -0
- handyhelpers/static/node_modules/@esbuild/linux-x64/bin/esbuild +0 -0
- handyhelpers/static/node_modules/@esbuild/linux-x64/package.json +20 -0
- handyhelpers/static/node_modules/@jridgewell/gen-mapping/LICENSE +19 -0
- handyhelpers/static/node_modules/@jridgewell/gen-mapping/README.md +227 -0
- handyhelpers/static/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs +230 -0
- handyhelpers/static/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs.map +1 -0
- handyhelpers/static/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js +246 -0
- handyhelpers/static/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js.map +1 -0
- handyhelpers/static/node_modules/@jridgewell/gen-mapping/dist/types/gen-mapping.d.ts +88 -0
- handyhelpers/static/node_modules/@jridgewell/gen-mapping/dist/types/sourcemap-segment.d.ts +12 -0
- handyhelpers/static/node_modules/@jridgewell/gen-mapping/dist/types/types.d.ts +36 -0
- handyhelpers/static/node_modules/@jridgewell/gen-mapping/package.json +76 -0
- handyhelpers/static/node_modules/@jridgewell/resolve-uri/LICENSE +19 -0
- handyhelpers/static/node_modules/@jridgewell/resolve-uri/README.md +40 -0
- handyhelpers/static/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs +232 -0
- handyhelpers/static/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs.map +1 -0
- handyhelpers/static/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js +240 -0
- handyhelpers/static/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js.map +1 -0
- handyhelpers/static/node_modules/@jridgewell/resolve-uri/dist/types/resolve-uri.d.ts +4 -0
- handyhelpers/static/node_modules/@jridgewell/resolve-uri/package.json +69 -0
- handyhelpers/static/node_modules/@jridgewell/set-array/LICENSE +19 -0
- handyhelpers/static/node_modules/@jridgewell/set-array/README.md +37 -0
- handyhelpers/static/node_modules/@jridgewell/set-array/dist/set-array.mjs +69 -0
- handyhelpers/static/node_modules/@jridgewell/set-array/dist/set-array.mjs.map +1 -0
- handyhelpers/static/node_modules/@jridgewell/set-array/dist/set-array.umd.js +83 -0
- handyhelpers/static/node_modules/@jridgewell/set-array/dist/set-array.umd.js.map +1 -0
- handyhelpers/static/node_modules/@jridgewell/set-array/dist/types/set-array.d.ts +32 -0
- handyhelpers/static/node_modules/@jridgewell/set-array/package.json +65 -0
- handyhelpers/static/node_modules/@jridgewell/source-map/LICENSE +19 -0
- handyhelpers/static/node_modules/@jridgewell/source-map/README.md +184 -0
- handyhelpers/static/node_modules/@jridgewell/source-map/dist/source-map.cjs +95 -0
- handyhelpers/static/node_modules/@jridgewell/source-map/dist/source-map.cjs.map +1 -0
- handyhelpers/static/node_modules/@jridgewell/source-map/dist/source-map.mjs +90 -0
- handyhelpers/static/node_modules/@jridgewell/source-map/dist/source-map.mjs.map +1 -0
- handyhelpers/static/node_modules/@jridgewell/source-map/dist/source-map.umd.js +1242 -0
- handyhelpers/static/node_modules/@jridgewell/source-map/dist/source-map.umd.js.map +1 -0
- handyhelpers/static/node_modules/@jridgewell/source-map/dist/types/source-map.d.ts +35 -0
- handyhelpers/static/node_modules/@jridgewell/source-map/package.json +71 -0
- handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/LICENSE +21 -0
- handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/README.md +264 -0
- handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +424 -0
- handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +1 -0
- handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +439 -0
- handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map +1 -0
- handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/dist/types/scopes.d.ts +49 -0
- handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/dist/types/sourcemap-codec.d.ts +8 -0
- handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/dist/types/strings.d.ts +15 -0
- handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/dist/types/vlq.d.ts +6 -0
- handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/package.json +75 -0
- handyhelpers/static/node_modules/@jridgewell/trace-mapping/LICENSE +19 -0
- handyhelpers/static/node_modules/@jridgewell/trace-mapping/README.md +257 -0
- handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs +580 -0
- handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs.map +1 -0
- handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js +600 -0
- handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js.map +1 -0
- handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/any-map.d.ts +8 -0
- handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/binary-search.d.ts +32 -0
- handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/by-source.d.ts +7 -0
- handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/resolve.d.ts +1 -0
- handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/sort.d.ts +2 -0
- handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/sourcemap-segment.d.ts +16 -0
- handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/strip-filename.d.ts +4 -0
- handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/trace-mapping.d.ts +79 -0
- handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/types.d.ts +99 -0
- handyhelpers/static/node_modules/@jridgewell/trace-mapping/package.json +77 -0
- handyhelpers/static/node_modules/@popperjs/core/dist/cjs/enums.js +1 -1
- handyhelpers/static/node_modules/@popperjs/core/dist/cjs/popper-base.js +12 -170
- handyhelpers/static/node_modules/@popperjs/core/dist/cjs/popper-base.js.map +1 -1
- handyhelpers/static/node_modules/@popperjs/core/dist/cjs/popper-lite.js +14 -184
- handyhelpers/static/node_modules/@popperjs/core/dist/cjs/popper-lite.js.map +1 -1
- handyhelpers/static/node_modules/@popperjs/core/dist/cjs/popper.js +14 -197
- handyhelpers/static/node_modules/@popperjs/core/dist/cjs/popper.js.map +1 -1
- handyhelpers/static/node_modules/@popperjs/core/dist/esm/createPopper.js +6 -66
- handyhelpers/static/node_modules/@popperjs/core/dist/esm/modifiers/arrow.js +1 -12
- handyhelpers/static/node_modules/@popperjs/core/dist/esm/modifiers/computeStyles.js +2 -14
- handyhelpers/static/node_modules/@popperjs/core/dist/esm/utils/computeAutoPlacement.js +0 -4
- handyhelpers/static/node_modules/@popperjs/core/dist/esm/utils/userAgent.js +1 -1
- handyhelpers/static/node_modules/@popperjs/core/dist/umd/enums.js +1 -1
- handyhelpers/static/node_modules/@popperjs/core/dist/umd/enums.min.js +1 -1
- handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper-base.js +12 -170
- handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper-base.js.map +1 -1
- handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper-base.min.js +2 -2
- handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper-base.min.js.map +1 -1
- handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper-lite.js +14 -184
- handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper-lite.js.map +1 -1
- handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper-lite.min.js +2 -2
- handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper-lite.min.js.map +1 -1
- handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper.js +14 -197
- handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper.js.map +1 -1
- handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper.min.js +2 -2
- handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper.min.js.map +1 -1
- handyhelpers/static/node_modules/@popperjs/core/lib/createPopper.js +6 -66
- handyhelpers/static/node_modules/@popperjs/core/lib/createPopper.js.flow +2 -80
- handyhelpers/static/node_modules/@popperjs/core/lib/modifiers/arrow.js +1 -12
- handyhelpers/static/node_modules/@popperjs/core/lib/modifiers/arrow.js.flow +0 -22
- handyhelpers/static/node_modules/@popperjs/core/lib/modifiers/computeStyles.js +2 -14
- handyhelpers/static/node_modules/@popperjs/core/lib/modifiers/computeStyles.js.flow +3 -33
- handyhelpers/static/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js +0 -4
- handyhelpers/static/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js.flow +0 -12
- handyhelpers/static/node_modules/@popperjs/core/lib/utils/userAgent.js +1 -1
- handyhelpers/static/node_modules/@popperjs/core/lib/utils/userAgent.js.flow +1 -1
- handyhelpers/static/node_modules/@popperjs/core/package.json +1 -1
- handyhelpers/static/node_modules/@putout/minify/LICENSE +21 -0
- handyhelpers/static/node_modules/@putout/minify/README.md +110 -0
- handyhelpers/static/node_modules/@putout/minify/bundle/minify.min.js +52 -0
- handyhelpers/static/node_modules/@putout/minify/package.json +112 -0
- handyhelpers/static/node_modules/@swc/core/Visitor.d.ts +218 -0
- handyhelpers/static/node_modules/@swc/core/Visitor.js +1407 -0
- handyhelpers/static/node_modules/@swc/core/binding.d.ts +56 -0
- handyhelpers/static/node_modules/@swc/core/binding.js +351 -0
- handyhelpers/static/node_modules/@swc/core/index.d.ts +118 -0
- handyhelpers/static/node_modules/@swc/core/index.js +439 -0
- handyhelpers/static/node_modules/@swc/core/package.json +114 -0
- handyhelpers/static/node_modules/@swc/core/postinstall.js +148 -0
- handyhelpers/static/node_modules/@swc/core/spack.d.ts +51 -0
- handyhelpers/static/node_modules/@swc/core/spack.js +87 -0
- handyhelpers/static/node_modules/@swc/core/util.d.ts +1 -0
- handyhelpers/static/node_modules/@swc/core/util.js +104 -0
- handyhelpers/static/node_modules/@swc/core-linux-x64-gnu/README.md +3 -0
- handyhelpers/static/node_modules/@swc/core-linux-x64-gnu/package.json +45 -0
- handyhelpers/static/node_modules/@swc/core-linux-x64-gnu/swc.linux-x64-gnu.node +0 -0
- handyhelpers/static/node_modules/@swc/counter/CHANGELOG.md +7 -0
- handyhelpers/static/node_modules/@swc/counter/README.md +7 -0
- handyhelpers/static/node_modules/@swc/counter/index.js +1 -0
- handyhelpers/static/node_modules/@swc/counter/package.json +27 -0
- handyhelpers/static/node_modules/@swc/types/LICENSE +201 -0
- handyhelpers/static/node_modules/@swc/types/README.md +4 -0
- handyhelpers/static/node_modules/@swc/types/assumptions.d.ts +92 -0
- handyhelpers/static/node_modules/@swc/types/assumptions.js +2 -0
- handyhelpers/static/node_modules/@swc/types/index.d.ts +1977 -0
- handyhelpers/static/node_modules/@swc/types/index.js +2 -0
- handyhelpers/static/node_modules/@swc/types/package.json +39 -0
- handyhelpers/static/node_modules/acorn/CHANGELOG.md +928 -0
- handyhelpers/static/node_modules/acorn/LICENSE +21 -0
- handyhelpers/static/node_modules/acorn/README.md +282 -0
- handyhelpers/static/node_modules/acorn/bin/acorn +4 -0
- handyhelpers/static/node_modules/acorn/dist/acorn.d.mts +866 -0
- handyhelpers/static/node_modules/acorn/dist/acorn.d.ts +866 -0
- handyhelpers/static/node_modules/acorn/dist/acorn.js +6174 -0
- handyhelpers/static/node_modules/acorn/dist/acorn.mjs +6145 -0
- handyhelpers/static/node_modules/acorn/dist/bin.js +90 -0
- handyhelpers/static/node_modules/acorn/package.json +50 -0
- handyhelpers/static/node_modules/buffer-from/LICENSE +21 -0
- handyhelpers/static/node_modules/buffer-from/index.js +72 -0
- handyhelpers/static/node_modules/buffer-from/package.json +19 -0
- handyhelpers/static/node_modules/buffer-from/readme.md +69 -0
- handyhelpers/static/node_modules/camel-case/LICENSE +21 -0
- handyhelpers/static/node_modules/camel-case/README.md +47 -0
- handyhelpers/static/node_modules/camel-case/dist/index.d.ts +5 -0
- handyhelpers/static/node_modules/camel-case/dist/index.js +23 -0
- handyhelpers/static/node_modules/camel-case/dist/index.js.map +1 -0
- handyhelpers/static/node_modules/camel-case/dist/index.spec.d.ts +1 -0
- handyhelpers/static/node_modules/camel-case/dist/index.spec.js +26 -0
- handyhelpers/static/node_modules/camel-case/dist/index.spec.js.map +1 -0
- handyhelpers/static/node_modules/camel-case/dist.es2015/index.d.ts +5 -0
- handyhelpers/static/node_modules/camel-case/dist.es2015/index.js +17 -0
- handyhelpers/static/node_modules/camel-case/dist.es2015/index.js.map +1 -0
- handyhelpers/static/node_modules/camel-case/dist.es2015/index.spec.d.ts +1 -0
- handyhelpers/static/node_modules/camel-case/dist.es2015/index.spec.js +24 -0
- handyhelpers/static/node_modules/camel-case/dist.es2015/index.spec.js.map +1 -0
- handyhelpers/static/node_modules/camel-case/package.json +89 -0
- handyhelpers/static/node_modules/clean-css/History.md +1504 -0
- handyhelpers/static/node_modules/clean-css/LICENSE +19 -0
- handyhelpers/static/node_modules/clean-css/README.md +987 -0
- handyhelpers/static/node_modules/clean-css/index.js +1 -0
- handyhelpers/static/node_modules/clean-css/package.json +48 -0
- handyhelpers/static/node_modules/commander/LICENSE +22 -0
- handyhelpers/static/node_modules/commander/Readme.md +1134 -0
- handyhelpers/static/node_modules/commander/esm.mjs +16 -0
- handyhelpers/static/node_modules/commander/index.js +27 -0
- handyhelpers/static/node_modules/commander/package-support.json +16 -0
- handyhelpers/static/node_modules/commander/package.json +80 -0
- handyhelpers/static/node_modules/commander/typings/index.d.ts +889 -0
- handyhelpers/static/node_modules/css-b64-images/.npmignore +15 -0
- handyhelpers/static/node_modules/css-b64-images/.travis.yml +5 -0
- handyhelpers/static/node_modules/css-b64-images/README.md +78 -0
- handyhelpers/static/node_modules/css-b64-images/bin/css-b64-images +13 -0
- handyhelpers/static/node_modules/css-b64-images/draft.png +0 -0
- handyhelpers/static/node_modules/css-b64-images/draft.xcf +0 -0
- handyhelpers/static/node_modules/css-b64-images/package.json +30 -0
- handyhelpers/static/node_modules/css-b64-images/test/css-b64-images-test.js +38 -0
- handyhelpers/static/node_modules/css-b64-images/test/fixture/css/style.css +52 -0
- handyhelpers/static/node_modules/css-b64-images/test/fixture/fonts/callunasansregular-webfont.eot +0 -0
- handyhelpers/static/node_modules/css-b64-images/test/fixture/fonts/callunasansregular-webfont.svg +248 -0
- handyhelpers/static/node_modules/css-b64-images/test/fixture/fonts/callunasansregular-webfont.ttf +0 -0
- handyhelpers/static/node_modules/css-b64-images/test/fixture/fonts/callunasansregular-webfont.woff +0 -0
- handyhelpers/static/node_modules/css-b64-images/test/fixture/fonts/maven_pro_medium-webfont.eot +0 -0
- handyhelpers/static/node_modules/css-b64-images/test/fixture/fonts/maven_pro_medium-webfont.svg +245 -0
- handyhelpers/static/node_modules/css-b64-images/test/fixture/fonts/maven_pro_medium-webfont.ttf +0 -0
- handyhelpers/static/node_modules/css-b64-images/test/fixture/fonts/maven_pro_medium-webfont.woff +0 -0
- handyhelpers/static/node_modules/css-b64-images/test/fixture/img/background-pattern.gif +0 -0
- handyhelpers/static/node_modules/css-b64-images/test/fixture/img/dots.svg +6 -0
- handyhelpers/static/node_modules/css-b64-images/test/fixture/img/mixit-banner.png +0 -0
- handyhelpers/static/node_modules/debug/LICENSE +20 -0
- handyhelpers/static/node_modules/debug/README.md +481 -0
- handyhelpers/static/node_modules/debug/package.json +65 -0
- handyhelpers/static/node_modules/debug/src/browser.js +272 -0
- handyhelpers/static/node_modules/debug/src/common.js +292 -0
- handyhelpers/static/node_modules/debug/src/index.js +10 -0
- handyhelpers/static/node_modules/debug/src/node.js +263 -0
- handyhelpers/static/node_modules/dot-case/LICENSE +21 -0
- handyhelpers/static/node_modules/dot-case/README.md +37 -0
- handyhelpers/static/node_modules/dot-case/dist/index.d.ts +3 -0
- handyhelpers/static/node_modules/dot-case/dist/index.js +11 -0
- handyhelpers/static/node_modules/dot-case/dist/index.js.map +1 -0
- handyhelpers/static/node_modules/dot-case/dist/index.spec.d.ts +1 -0
- handyhelpers/static/node_modules/dot-case/dist/index.spec.js +26 -0
- handyhelpers/static/node_modules/dot-case/dist/index.spec.js.map +1 -0
- handyhelpers/static/node_modules/dot-case/dist.es2015/index.d.ts +3 -0
- handyhelpers/static/node_modules/dot-case/dist.es2015/index.js +7 -0
- handyhelpers/static/node_modules/dot-case/dist.es2015/index.js.map +1 -0
- handyhelpers/static/node_modules/dot-case/dist.es2015/index.spec.d.ts +1 -0
- handyhelpers/static/node_modules/dot-case/dist.es2015/index.spec.js +24 -0
- handyhelpers/static/node_modules/dot-case/dist.es2015/index.spec.js.map +1 -0
- handyhelpers/static/node_modules/dot-case/package.json +89 -0
- handyhelpers/static/node_modules/entities/LICENSE +11 -0
- handyhelpers/static/node_modules/entities/package.json +90 -0
- handyhelpers/static/node_modules/entities/readme.md +122 -0
- handyhelpers/static/node_modules/esbuild/LICENSE.md +21 -0
- handyhelpers/static/node_modules/esbuild/README.md +3 -0
- handyhelpers/static/node_modules/esbuild/bin/esbuild +0 -0
- handyhelpers/static/node_modules/esbuild/install.js +286 -0
- handyhelpers/static/node_modules/esbuild/package.json +47 -0
- handyhelpers/static/node_modules/find-up/index.d.ts +247 -0
- handyhelpers/static/node_modules/find-up/index.js +107 -0
- handyhelpers/static/node_modules/find-up/license +9 -0
- handyhelpers/static/node_modules/find-up/package.json +61 -0
- handyhelpers/static/node_modules/find-up/readme.md +160 -0
- handyhelpers/static/node_modules/fun-effects/LICENSE +674 -0
- handyhelpers/static/node_modules/fun-effects/README.md +10 -0
- handyhelpers/static/node_modules/fun-effects/dist/css/background_icons.min.css +1 -0
- handyhelpers/static/node_modules/fun-effects/dist/css/blur_group.min.css +1 -0
- handyhelpers/static/node_modules/fun-effects/dist/css/fades.min.css +1 -0
- handyhelpers/static/node_modules/fun-effects/dist/css/marquee.min.css +1 -0
- handyhelpers/static/node_modules/fun-effects/dist/css/scroller.min.css +1 -0
- handyhelpers/static/node_modules/fun-effects/dist/index.js +15 -0
- handyhelpers/static/node_modules/fun-effects/dist/js/background_icons.min.js +1 -0
- handyhelpers/static/node_modules/fun-effects/dist/js/marquee.min.js +1 -0
- handyhelpers/static/node_modules/fun-effects/dist/js/scroller.min.js +1 -0
- handyhelpers/static/node_modules/fun-effects/package.json +39 -0
- handyhelpers/static/node_modules/fun-effects/src/css/background_icons.css +39 -0
- handyhelpers/static/node_modules/fun-effects/src/css/blur_group.css +22 -0
- handyhelpers/static/node_modules/fun-effects/src/css/fades.css +94 -0
- handyhelpers/static/node_modules/fun-effects/src/css/marquee.css +45 -0
- handyhelpers/static/node_modules/fun-effects/src/css/scroller.css +144 -0
- handyhelpers/static/node_modules/fun-effects/src/index.js +15 -0
- handyhelpers/static/node_modules/fun-effects/src/js/background_icons.js +101 -0
- handyhelpers/static/node_modules/fun-effects/src/js/marquee.js +81 -0
- handyhelpers/static/node_modules/fun-effects/src/js/scroller.js +37 -0
- handyhelpers/static/node_modules/html-minifier-terser/LICENSE +22 -0
- handyhelpers/static/node_modules/html-minifier-terser/README.md +168 -0
- handyhelpers/static/node_modules/html-minifier-terser/cli.js +308 -0
- handyhelpers/static/node_modules/html-minifier-terser/dist/htmlminifier.cjs +1857 -0
- handyhelpers/static/node_modules/html-minifier-terser/dist/htmlminifier.esm.bundle.js +57509 -0
- handyhelpers/static/node_modules/html-minifier-terser/dist/htmlminifier.umd.bundle.js +57520 -0
- handyhelpers/static/node_modules/html-minifier-terser/dist/htmlminifier.umd.bundle.min.js +9 -0
- handyhelpers/static/node_modules/html-minifier-terser/package.json +105 -0
- handyhelpers/static/node_modules/html-minifier-terser/src/htmlminifier.js +1366 -0
- handyhelpers/static/node_modules/html-minifier-terser/src/htmlparser.js +565 -0
- handyhelpers/static/node_modules/html-minifier-terser/src/tokenchain.js +68 -0
- handyhelpers/static/node_modules/html-minifier-terser/src/utils.js +11 -0
- handyhelpers/static/node_modules/jju/LICENSE +21 -0
- handyhelpers/static/node_modules/jju/Makefile +20 -0
- handyhelpers/static/node_modules/jju/README.md +249 -0
- handyhelpers/static/node_modules/jju/index.js +32 -0
- handyhelpers/static/node_modules/jju/package.json +34 -0
- handyhelpers/static/node_modules/jju/package.yaml +36 -0
- handyhelpers/static/node_modules/locate-path/index.d.ts +92 -0
- handyhelpers/static/node_modules/locate-path/index.js +77 -0
- handyhelpers/static/node_modules/locate-path/license +9 -0
- handyhelpers/static/node_modules/locate-path/package.json +48 -0
- handyhelpers/static/node_modules/locate-path/readme.md +123 -0
- handyhelpers/static/node_modules/lower-case/LICENSE +21 -0
- handyhelpers/static/node_modules/lower-case/README.md +35 -0
- handyhelpers/static/node_modules/lower-case/dist/index.d.ts +8 -0
- handyhelpers/static/node_modules/lower-case/dist/index.js +53 -0
- handyhelpers/static/node_modules/lower-case/dist/index.js.map +1 -0
- handyhelpers/static/node_modules/lower-case/dist/index.spec.d.ts +1 -0
- handyhelpers/static/node_modules/lower-case/dist/index.spec.js +36 -0
- handyhelpers/static/node_modules/lower-case/dist/index.spec.js.map +1 -0
- handyhelpers/static/node_modules/lower-case/dist.es2015/index.d.ts +8 -0
- handyhelpers/static/node_modules/lower-case/dist.es2015/index.js +48 -0
- handyhelpers/static/node_modules/lower-case/dist.es2015/index.js.map +1 -0
- handyhelpers/static/node_modules/lower-case/dist.es2015/index.spec.d.ts +1 -0
- handyhelpers/static/node_modules/lower-case/dist.es2015/index.spec.js +34 -0
- handyhelpers/static/node_modules/lower-case/dist.es2015/index.spec.js.map +1 -0
- handyhelpers/static/node_modules/lower-case/package.json +87 -0
- handyhelpers/static/node_modules/minify/ChangeLog +1307 -0
- handyhelpers/static/node_modules/minify/LICENSE +22 -0
- handyhelpers/static/node_modules/minify/README.md +177 -0
- handyhelpers/static/node_modules/minify/bin/minify.js +98 -0
- handyhelpers/static/node_modules/minify/deno.json +5 -0
- handyhelpers/static/node_modules/minify/help.json +8 -0
- handyhelpers/static/node_modules/minify/package.json +65 -0
- handyhelpers/static/node_modules/ms/index.js +162 -0
- handyhelpers/static/node_modules/ms/license.md +21 -0
- handyhelpers/static/node_modules/ms/package.json +38 -0
- handyhelpers/static/node_modules/ms/readme.md +59 -0
- handyhelpers/static/node_modules/no-case/LICENSE +21 -0
- handyhelpers/static/node_modules/no-case/README.md +37 -0
- handyhelpers/static/node_modules/no-case/dist/index.d.ts +10 -0
- handyhelpers/static/node_modules/no-case/dist/index.js +35 -0
- handyhelpers/static/node_modules/no-case/dist/index.js.map +1 -0
- handyhelpers/static/node_modules/no-case/dist/index.spec.d.ts +1 -0
- handyhelpers/static/node_modules/no-case/dist/index.spec.js +59 -0
- handyhelpers/static/node_modules/no-case/dist/index.spec.js.map +1 -0
- handyhelpers/static/node_modules/no-case/dist.es2015/index.d.ts +10 -0
- handyhelpers/static/node_modules/no-case/dist.es2015/index.js +31 -0
- handyhelpers/static/node_modules/no-case/dist.es2015/index.js.map +1 -0
- handyhelpers/static/node_modules/no-case/dist.es2015/index.spec.d.ts +1 -0
- handyhelpers/static/node_modules/no-case/dist.es2015/index.spec.js +57 -0
- handyhelpers/static/node_modules/no-case/dist.es2015/index.spec.js.map +1 -0
- handyhelpers/static/node_modules/no-case/package.json +85 -0
- handyhelpers/static/node_modules/p-limit/index.d.ts +40 -0
- handyhelpers/static/node_modules/p-limit/index.js +68 -0
- handyhelpers/static/node_modules/p-limit/license +9 -0
- handyhelpers/static/node_modules/p-limit/package.json +54 -0
- handyhelpers/static/node_modules/p-limit/readme.md +99 -0
- handyhelpers/static/node_modules/p-locate/index.d.ts +49 -0
- handyhelpers/static/node_modules/p-locate/index.js +48 -0
- handyhelpers/static/node_modules/p-locate/license +9 -0
- handyhelpers/static/node_modules/p-locate/package.json +56 -0
- handyhelpers/static/node_modules/p-locate/readme.md +91 -0
- handyhelpers/static/node_modules/param-case/LICENSE +21 -0
- handyhelpers/static/node_modules/param-case/README.md +37 -0
- handyhelpers/static/node_modules/param-case/dist/index.d.ts +3 -0
- handyhelpers/static/node_modules/param-case/dist/index.js +11 -0
- handyhelpers/static/node_modules/param-case/dist/index.js.map +1 -0
- handyhelpers/static/node_modules/param-case/dist/index.spec.d.ts +1 -0
- handyhelpers/static/node_modules/param-case/dist/index.spec.js +24 -0
- handyhelpers/static/node_modules/param-case/dist/index.spec.js.map +1 -0
- handyhelpers/static/node_modules/param-case/dist.es2015/index.d.ts +3 -0
- handyhelpers/static/node_modules/param-case/dist.es2015/index.js +7 -0
- handyhelpers/static/node_modules/param-case/dist.es2015/index.js.map +1 -0
- handyhelpers/static/node_modules/param-case/dist.es2015/index.spec.d.ts +1 -0
- handyhelpers/static/node_modules/param-case/dist.es2015/index.spec.js +22 -0
- handyhelpers/static/node_modules/param-case/dist.es2015/index.spec.js.map +1 -0
- handyhelpers/static/node_modules/param-case/package.json +91 -0
- handyhelpers/static/node_modules/pascal-case/LICENSE +21 -0
- handyhelpers/static/node_modules/pascal-case/README.md +47 -0
- handyhelpers/static/node_modules/pascal-case/dist/index.d.ts +5 -0
- handyhelpers/static/node_modules/pascal-case/dist/index.js +24 -0
- handyhelpers/static/node_modules/pascal-case/dist/index.js.map +1 -0
- handyhelpers/static/node_modules/pascal-case/dist/index.spec.d.ts +1 -0
- handyhelpers/static/node_modules/pascal-case/dist/index.spec.js +25 -0
- handyhelpers/static/node_modules/pascal-case/dist/index.spec.js.map +1 -0
- handyhelpers/static/node_modules/pascal-case/dist.es2015/index.d.ts +5 -0
- handyhelpers/static/node_modules/pascal-case/dist.es2015/index.js +18 -0
- handyhelpers/static/node_modules/pascal-case/dist.es2015/index.js.map +1 -0
- handyhelpers/static/node_modules/pascal-case/dist.es2015/index.spec.d.ts +1 -0
- handyhelpers/static/node_modules/pascal-case/dist.es2015/index.spec.js +23 -0
- handyhelpers/static/node_modules/pascal-case/dist.es2015/index.spec.js.map +1 -0
- handyhelpers/static/node_modules/pascal-case/package.json +90 -0
- handyhelpers/static/node_modules/path-exists/index.d.ts +31 -0
- handyhelpers/static/node_modules/path-exists/index.js +19 -0
- handyhelpers/static/node_modules/path-exists/license +9 -0
- handyhelpers/static/node_modules/path-exists/package.json +41 -0
- handyhelpers/static/node_modules/path-exists/readme.md +52 -0
- handyhelpers/static/node_modules/readjson/ChangeLog +110 -0
- handyhelpers/static/node_modules/readjson/LICENSE +21 -0
- handyhelpers/static/node_modules/readjson/README.md +36 -0
- handyhelpers/static/node_modules/readjson/package.json +46 -0
- handyhelpers/static/node_modules/relateurl/README.md +159 -0
- handyhelpers/static/node_modules/relateurl/license +21 -0
- handyhelpers/static/node_modules/relateurl/package.json +46 -0
- handyhelpers/static/node_modules/simport/ChangeLog +77 -0
- handyhelpers/static/node_modules/simport/LICENSE +21 -0
- handyhelpers/static/node_modules/simport/README.md +81 -0
- handyhelpers/static/node_modules/simport/fixture/context.js +3 -0
- handyhelpers/static/node_modules/simport/fixture/default-frozen-function.mjs +2 -0
- handyhelpers/static/node_modules/simport/fixture/default-frozen-object.mjs +2 -0
- handyhelpers/static/node_modules/simport/package.json +65 -0
- handyhelpers/static/node_modules/simport/simport.js +84 -0
- handyhelpers/static/node_modules/simport/simport.mjs +22 -0
- handyhelpers/static/node_modules/source-map/CHANGELOG.md +301 -0
- handyhelpers/static/node_modules/source-map/LICENSE +28 -0
- handyhelpers/static/node_modules/source-map/README.md +742 -0
- handyhelpers/static/node_modules/source-map/dist/source-map.debug.js +3234 -0
- handyhelpers/static/node_modules/source-map/dist/source-map.js +3233 -0
- handyhelpers/static/node_modules/source-map/dist/source-map.min.js +2 -0
- handyhelpers/static/node_modules/source-map/dist/source-map.min.js.map +1 -0
- handyhelpers/static/node_modules/source-map/package.json +73 -0
- handyhelpers/static/node_modules/source-map/source-map.d.ts +98 -0
- handyhelpers/static/node_modules/source-map/source-map.js +8 -0
- handyhelpers/static/node_modules/source-map-support/LICENSE.md +21 -0
- handyhelpers/static/node_modules/source-map-support/README.md +284 -0
- handyhelpers/static/node_modules/source-map-support/browser-source-map-support.js +114 -0
- handyhelpers/static/node_modules/source-map-support/package.json +31 -0
- handyhelpers/static/node_modules/source-map-support/register-hook-require.js +1 -0
- handyhelpers/static/node_modules/source-map-support/register.js +1 -0
- handyhelpers/static/node_modules/source-map-support/source-map-support.js +625 -0
- handyhelpers/static/node_modules/terser/CHANGELOG.md +783 -0
- handyhelpers/static/node_modules/terser/LICENSE +27 -0
- handyhelpers/static/node_modules/terser/PATRONS.md +15 -0
- handyhelpers/static/node_modules/terser/README.md +1421 -0
- handyhelpers/static/node_modules/terser/bin/package.json +10 -0
- handyhelpers/static/node_modules/terser/bin/terser +21 -0
- handyhelpers/static/node_modules/terser/bin/uglifyjs +10 -0
- handyhelpers/static/node_modules/terser/dist/.gitkeep +0 -0
- handyhelpers/static/node_modules/terser/dist/bundle.min.js +32962 -0
- handyhelpers/static/node_modules/terser/dist/package.json +10 -0
- handyhelpers/static/node_modules/terser/main.js +27 -0
- handyhelpers/static/node_modules/terser/node_modules/commander/CHANGELOG.md +419 -0
- handyhelpers/static/node_modules/terser/node_modules/commander/LICENSE +22 -0
- handyhelpers/static/node_modules/terser/node_modules/commander/Readme.md +428 -0
- handyhelpers/static/node_modules/terser/node_modules/commander/index.js +1224 -0
- handyhelpers/static/node_modules/terser/node_modules/commander/package.json +38 -0
- handyhelpers/static/node_modules/terser/node_modules/commander/typings/index.d.ts +310 -0
- handyhelpers/static/node_modules/terser/package.json +153 -0
- handyhelpers/static/node_modules/terser/tools/domprops.js +9026 -0
- handyhelpers/static/node_modules/terser/tools/exit.cjs +7 -0
- handyhelpers/static/node_modules/terser/tools/props.html +68 -0
- handyhelpers/static/node_modules/terser/tools/terser.d.ts +216 -0
- handyhelpers/static/node_modules/tippy.js/LICENSE +21 -0
- handyhelpers/static/node_modules/tippy.js/README.md +63 -0
- handyhelpers/static/node_modules/tippy.js/animations/perspective-extreme.css +1 -0
- handyhelpers/static/node_modules/tippy.js/animations/perspective-subtle.css +1 -0
- handyhelpers/static/node_modules/tippy.js/animations/perspective.css +1 -0
- handyhelpers/static/node_modules/tippy.js/animations/scale-extreme.css +1 -0
- handyhelpers/static/node_modules/tippy.js/animations/scale-subtle.css +1 -0
- handyhelpers/static/node_modules/tippy.js/animations/scale.css +1 -0
- handyhelpers/static/node_modules/tippy.js/animations/shift-away-extreme.css +1 -0
- handyhelpers/static/node_modules/tippy.js/animations/shift-away-subtle.css +1 -0
- handyhelpers/static/node_modules/tippy.js/animations/shift-away.css +1 -0
- handyhelpers/static/node_modules/tippy.js/animations/shift-toward-extreme.css +1 -0
- handyhelpers/static/node_modules/tippy.js/animations/shift-toward-subtle.css +1 -0
- handyhelpers/static/node_modules/tippy.js/animations/shift-toward.css +1 -0
- handyhelpers/static/node_modules/tippy.js/dist/backdrop.css +1 -0
- handyhelpers/static/node_modules/tippy.js/dist/border.css +1 -0
- handyhelpers/static/node_modules/tippy.js/dist/svg-arrow.css +1 -0
- handyhelpers/static/node_modules/tippy.js/dist/tippy-bundle.umd.js +2516 -0
- handyhelpers/static/node_modules/tippy.js/dist/tippy-bundle.umd.js.map +1 -0
- handyhelpers/static/node_modules/tippy.js/dist/tippy-bundle.umd.min.js +2 -0
- handyhelpers/static/node_modules/tippy.js/dist/tippy-bundle.umd.min.js.map +1 -0
- handyhelpers/static/node_modules/tippy.js/dist/tippy.cjs.js +2497 -0
- handyhelpers/static/node_modules/tippy.js/dist/tippy.cjs.js.map +1 -0
- handyhelpers/static/node_modules/tippy.js/dist/tippy.css +1 -0
- handyhelpers/static/node_modules/tippy.js/dist/tippy.esm.js +2486 -0
- handyhelpers/static/node_modules/tippy.js/dist/tippy.esm.js.map +1 -0
- handyhelpers/static/node_modules/tippy.js/dist/tippy.umd.js +2496 -0
- handyhelpers/static/node_modules/tippy.js/dist/tippy.umd.js.map +1 -0
- handyhelpers/static/node_modules/tippy.js/dist/tippy.umd.min.js +2 -0
- handyhelpers/static/node_modules/tippy.js/dist/tippy.umd.min.js.map +1 -0
- handyhelpers/static/node_modules/tippy.js/headless/dist/tippy-headless.cjs.js +2388 -0
- handyhelpers/static/node_modules/tippy.js/headless/dist/tippy-headless.cjs.js.map +1 -0
- handyhelpers/static/node_modules/tippy.js/headless/dist/tippy-headless.esm.js +2377 -0
- handyhelpers/static/node_modules/tippy.js/headless/dist/tippy-headless.esm.js.map +1 -0
- handyhelpers/static/node_modules/tippy.js/headless/dist/tippy-headless.umd.js +2382 -0
- handyhelpers/static/node_modules/tippy.js/headless/dist/tippy-headless.umd.js.map +1 -0
- handyhelpers/static/node_modules/tippy.js/headless/dist/tippy-headless.umd.min.js +2 -0
- handyhelpers/static/node_modules/tippy.js/headless/dist/tippy-headless.umd.min.js.map +1 -0
- handyhelpers/static/node_modules/tippy.js/headless/package.json +16 -0
- handyhelpers/static/node_modules/tippy.js/index.d.ts +260 -0
- handyhelpers/static/node_modules/tippy.js/package.json +157 -0
- handyhelpers/static/node_modules/tippy.js/themes/light-border.css +1 -0
- handyhelpers/static/node_modules/tippy.js/themes/light.css +1 -0
- handyhelpers/static/node_modules/tippy.js/themes/material.css +1 -0
- handyhelpers/static/node_modules/tippy.js/themes/translucent.css +1 -0
- handyhelpers/static/node_modules/try-catch/ChangeLog +55 -0
- handyhelpers/static/node_modules/try-catch/LICENSE +21 -0
- handyhelpers/static/node_modules/try-catch/README.md +38 -0
- handyhelpers/static/node_modules/try-catch/package.json +34 -0
- handyhelpers/static/node_modules/try-to-catch/ChangeLog +64 -0
- handyhelpers/static/node_modules/try-to-catch/LICENSE +21 -0
- handyhelpers/static/node_modules/try-to-catch/README.md +74 -0
- handyhelpers/static/node_modules/try-to-catch/package.json +47 -0
- handyhelpers/static/node_modules/tslib/CopyrightNotice.txt +15 -0
- handyhelpers/static/node_modules/tslib/LICENSE.txt +12 -0
- handyhelpers/static/node_modules/tslib/README.md +164 -0
- handyhelpers/static/node_modules/tslib/SECURITY.md +41 -0
- handyhelpers/static/node_modules/tslib/modules/index.d.ts +38 -0
- handyhelpers/static/node_modules/tslib/modules/index.js +70 -0
- handyhelpers/static/node_modules/tslib/modules/package.json +3 -0
- handyhelpers/static/node_modules/tslib/package.json +47 -0
- handyhelpers/static/node_modules/tslib/tslib.d.ts +460 -0
- handyhelpers/static/node_modules/tslib/tslib.es6.html +1 -0
- handyhelpers/static/node_modules/tslib/tslib.es6.js +402 -0
- handyhelpers/static/node_modules/tslib/tslib.es6.mjs +401 -0
- handyhelpers/static/node_modules/tslib/tslib.html +1 -0
- handyhelpers/static/node_modules/tslib/tslib.js +484 -0
- handyhelpers/static/node_modules/uglify-js/LICENSE +29 -0
- handyhelpers/static/node_modules/uglify-js/README.md +1479 -0
- handyhelpers/static/node_modules/uglify-js/bin/uglifyjs +624 -0
- handyhelpers/static/node_modules/uglify-js/package.json +56 -0
- handyhelpers/static/node_modules/uglify-js/tools/domprops.html +456 -0
- handyhelpers/static/node_modules/uglify-js/tools/domprops.json +8327 -0
- handyhelpers/static/node_modules/uglify-js/tools/exports.js +8 -0
- handyhelpers/static/node_modules/uglify-js/tools/node.js +115 -0
- handyhelpers/static/node_modules/uglify-js/tools/tty.js +22 -0
- handyhelpers/static/node_modules/unicorn-magic/default.js +14 -0
- handyhelpers/static/node_modules/unicorn-magic/index.d.ts +29 -0
- handyhelpers/static/node_modules/unicorn-magic/license +9 -0
- handyhelpers/static/node_modules/unicorn-magic/node.js +7 -0
- handyhelpers/static/node_modules/unicorn-magic/package.json +49 -0
- handyhelpers/static/node_modules/unicorn-magic/readme.md +25 -0
- handyhelpers/static/node_modules/yocto-queue/index.d.ts +61 -0
- handyhelpers/static/node_modules/yocto-queue/index.js +78 -0
- handyhelpers/static/node_modules/yocto-queue/license +9 -0
- handyhelpers/static/node_modules/yocto-queue/package.json +48 -0
- handyhelpers/static/node_modules/yocto-queue/readme.md +70 -0
- handyhelpers/static/package.json +3 -1
- handyhelpers/static/yarn.lock +393 -20
- handyhelpers/templates/handyhelpers/generic/bs5/generic_index.html +5 -8
- handyhelpers/templates/handyhelpers/handyhelpers_base_bs5.htm +5 -1
- handyhelpers/templates/handyhelpers/handyhelpers_with_sidebar.htm +50 -3
- handyhelpers/templates/handyhelpers/htmx/bs5/filter_form/generic_modal_swap.htm +48 -0
- handyhelpers/templates/handyhelpers/htmx/bs5/form/form_wrapper.htm +48 -0
- handyhelpers/templates/handyhelpers/htmx/bs5/form/inline_form.htm +166 -0
- handyhelpers/templates/handyhelpers/htmx/bs5/form/inline_form_disabled.htm +125 -0
- handyhelpers/templates/handyhelpers/htmx/bs5/generic_modal_swap.htm +2 -3
- handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/content_title.htm +38 -0
- handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/controls.htm +21 -0
- handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/examples/card.htm +17 -0
- handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/examples/list.htm +11 -0
- handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/examples/table.htm +21 -0
- handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/filter_form_modal_swap.htm +48 -0
- handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/full.html +6 -0
- handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/wrapper_card.htm +7 -0
- handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/wrapper_list.htm +7 -0
- handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/wrapper_minimal.htm +7 -0
- handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/wrapper_table.htm +18 -0
- handyhelpers/templates/handyhelpers/htmx/bs5/index.htm +34 -0
- handyhelpers/templates/handyhelpers/report/annual_stats.html +6 -0
- handyhelpers/templates/handyhelpers/report/annual_stats_content.htm +43 -0
- handyhelpers/templates/handyhelpers/report/chartjs/annual_progress_chart.htm +1 -1
- handyhelpers/templates/handyhelpers/report/chartjs/annual_progress_content.htm +40 -39
- handyhelpers/templates/handyhelpers/report/chartjs/annual_stats.html +25 -36
- handyhelpers/templates/handyhelpers/report/chartjs/annual_trends_content.htm +35 -34
- handyhelpers/templates/handyhelpers/report/chartjs/day_count_chart.htm +1 -1
- handyhelpers/templates/handyhelpers/report/chartjs/month_count_chart.htm +1 -1
- handyhelpers/templates/handyhelpers/report/chartjs/week_count_chart.htm +1 -1
- handyhelpers/templates/handyhelpers/report/chartjs/year_count_chart.htm +1 -1
- handyhelpers/templatetags/form_tags.py +47 -0
- handyhelpers/templatetags/htmx_tags.py +21 -0
- handyhelpers/views/action.py +3 -1
- handyhelpers/views/calendar.py +33 -14
- handyhelpers/views/htmx.py +396 -4
- handyhelpers/views/report.py +12 -5
- handyhelpers/management/commands/generate_admin.py +0 -110
- handyhelpers/static/node_modules/@popperjs/core/dist/esm/utils/format.js +0 -9
- handyhelpers/static/node_modules/@popperjs/core/dist/esm/utils/validateModifiers.js +0 -81
- handyhelpers/static/node_modules/@popperjs/core/lib/utils/format.d.ts +0 -1
- handyhelpers/static/node_modules/@popperjs/core/lib/utils/format.js +0 -9
- handyhelpers/static/node_modules/@popperjs/core/lib/utils/format.js.flow +0 -5
- handyhelpers/static/node_modules/@popperjs/core/lib/utils/validateModifiers.d.ts +0 -1
- handyhelpers/static/node_modules/@popperjs/core/lib/utils/validateModifiers.js +0 -81
- handyhelpers/static/node_modules/@popperjs/core/lib/utils/validateModifiers.js.flow +0 -151
- {django_handyhelpers-0.3.20.dist-info → django_handyhelpers-0.3.36.dist-info}/LICENSE +0 -0
- {django_handyhelpers-0.3.20.dist-info → django_handyhelpers-0.3.36.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,52 @@
|
|
1
|
+
import e from"node:events";var t,r,n,i,a,s,o,u,l,c,p,d,f,h,m,y,v,g,b,S,x,T,E,_,P,A,k,C,w,I,N,O,D,L,M,F,B,R,j,U,V,W,q,J,X,G,K,H,z,$,Y,Q,Z,ee,et,er,en,ei,ea,es="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function eo(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var eu={},el={},ec=e=>{let t={value:e};return(...e)=>{let[r]=e;return e.length?(t.value=r,r):t.value}},ep="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function ed(){throw Error("setTimeout has not been defined")}function ef(){throw Error("clearTimeout has not been defined")}var eh=ed,em=ef;function ey(e){if(eh===setTimeout)return setTimeout(e,0);if((eh===ed||!eh)&&setTimeout)return eh=setTimeout,setTimeout(e,0);try{return eh(e,0)}catch(t){try{return eh.call(null,e,0)}catch(t){return eh.call(this,e,0)}}}"function"==typeof ep.setTimeout&&(eh=setTimeout),"function"==typeof ep.clearTimeout&&(em=clearTimeout);var ev=[],eg=!1,eb=-1;function eS(){eg&&lI&&(eg=!1,lI.length?ev=lI.concat(ev):eb=-1,ev.length&&ex())}function ex(){if(!eg){var e=ey(eS);eg=!0;for(var t=ev.length;t;){for(lI=ev,ev=[];++eb<t;)lI&&lI[eb].run();eb=-1,t=ev.length}lI=null,eg=!1,function(e){if(em===clearTimeout)return clearTimeout(e);if((em===ef||!em)&&clearTimeout)return em=clearTimeout,clearTimeout(e);try{em(e)}catch(t){try{return em.call(null,e)}catch(t){return em.call(this,e)}}}(e)}}function eT(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];ev.push(new eE(e,t)),1!==ev.length||eg||ey(ex)}function eE(e,t){this.fun=e,this.array=t}eE.prototype.run=function(){this.fun.apply(null,this.array)};var e_="browser",eP="browser",eA={},ek=[],eC={},ew={},eI={};function eN(){}function eO(e){throw Error("process.binding is not supported")}function eD(){return"/"}function eL(e){throw Error("process.chdir is not supported")}function eM(){return 0}var eF=ep.performance||{},eB=eF.now||eF.mozNow||eF.msNow||eF.oNow||eF.webkitNow||function(){return new Date().getTime()};function eR(e){var t=.001*eB.call(eF),r=Math.floor(t),n=Math.floor(t%1*1e9);return e&&(r-=e[0],(n-=e[1])<0&&(r--,n+=1e9)),[r,n]}var ej=new Date;function eU(){return(new Date-ej)/1e3}var eV={nextTick:eT,title:e_,browser:!0,env:eA,argv:ek,version:"",versions:eC,on:eN,addListener:eN,once:eN,off:eN,removeListener:eN,removeAllListeners:eN,emit:eN,binding:eO,cwd:eD,chdir:eL,umask:eM,hrtime:eR,platform:eP,release:ew,config:eI,uptime:eU},eW=/*#__PURE__*/Object.freeze({__proto__:null,addListener:eN,argv:ek,binding:eO,browser:!0,chdir:eL,config:eI,cwd:eD,default:eV,emit:eN,env:eA,hrtime:eR,nextTick:eT,off:eN,on:eN,once:eN,platform:eP,release:ew,removeAllListeners:eN,removeListener:eN,title:e_,umask:eM,uptime:eU,version:"",versions:eC}),eq=[],eJ=[],eX="undefined"!=typeof Uint8Array?Uint8Array:Array,eG=!1;function eK(){eG=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,r=e.length;t<r;++t)eq[t]=e[t],eJ[e.charCodeAt(t)]=t;eJ["-".charCodeAt(0)]=62,eJ["_".charCodeAt(0)]=63}function eH(e){eG||eK();for(var t,r=e.length,n=r%3,i="",a=[],s=0,o=r-n;s<o;s+=16383)a.push(function(e,t,r){for(var n,i=[],a=t;a<r;a+=3)i.push(eq[(n=(e[a]<<16)+(e[a+1]<<8)+e[a+2])>>18&63]+eq[n>>12&63]+eq[n>>6&63]+eq[63&n]);return i.join("")}(e,s,s+16383>o?o:s+16383));return 1===n?i+=eq[(t=e[r-1])>>2]+eq[t<<4&63]+"==":2===n&&(i+=eq[(t=(e[r-2]<<8)+e[r-1])>>10]+eq[t>>4&63]+eq[t<<2&63]+"="),a.push(i),a.join("")}function ez(e,t,r,n,i){var a,s,o=8*i-n-1,u=(1<<o)-1,l=u>>1,c=-7,p=r?i-1:0,d=r?-1:1,f=e[t+p];for(p+=d,a=f&(1<<-c)-1,f>>=-c,c+=o;c>0;a=256*a+e[t+p],p+=d,c-=8);for(s=a&(1<<-c)-1,a>>=-c,c+=n;c>0;s=256*s+e[t+p],p+=d,c-=8);if(0===a)a=1-l;else{if(a===u)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,n),a-=l}return(f?-1:1)*s*Math.pow(2,a-n)}function e$(e,t,r,n,i,a){var s,o,u,l=8*a-i-1,c=(1<<l)-1,p=c>>1,d=23===i?5960464477539062e-23:0,f=n?0:a-1,h=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(o=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+p>=1?t+=d/u:t+=d*Math.pow(2,1-p),t*u>=2&&(s++,u/=2),s+p>=c?(o=0,s=c):s+p>=1?(o=(t*u-1)*Math.pow(2,i),s+=p):(o=t*Math.pow(2,p-1)*Math.pow(2,i),s=0));i>=8;e[r+f]=255&o,f+=h,o/=256,i-=8);for(s=s<<i|o,l+=i;l>0;e[r+f]=255&s,f+=h,s/=256,l-=8);e[r+f-h]|=128*m}var eY={}.toString,eQ=Array.isArray||function(e){return"[object Array]"==eY.call(e)};function eZ(){return e1.TYPED_ARRAY_SUPPORT?0x7fffffff:0x3fffffff}function e0(e,t){if(eZ()<t)throw RangeError("Invalid typed array length");return e1.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=e1.prototype:(null===e&&(e=new e1(t)),e.length=t),e}function e1(e,t,r){if(!e1.TYPED_ARRAY_SUPPORT&&!(this instanceof e1))return new e1(e,t,r);if("number"==typeof e){if("string"==typeof t)throw Error("If encoding is specified then the first argument must be a string");return e4(this,e)}return e2(this,e,t,r)}function e2(e,t,r,n){if("number"==typeof t)throw TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw RangeError("'length' is out of bounds");return t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n),e1.TYPED_ARRAY_SUPPORT?(e=t).__proto__=e1.prototype:e=e5(e,t),e}(e,t,r,n):"string"==typeof t?function(e,t,r){if(("string"!=typeof r||""===r)&&(r="utf8"),!e1.isEncoding(r))throw TypeError('"encoding" must be a valid string encoding');var n=0|e9(t,r),i=(e=e0(e,n)).write(t,r);return i!==n&&(e=e.slice(0,i)),e}(e,t,r):function(e,t){if(e6(t)){var r,n=0|e8(t.length);return 0===(e=e0(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?e0(e,0):e5(e,t);if("Buffer"===t.type&&eQ(t.data))return e5(e,t.data)}throw TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function e3(e){if("number"!=typeof e)throw TypeError('"size" argument must be a number');if(e<0)throw RangeError('"size" argument must not be negative')}function e4(e,t){if(e3(t),e=e0(e,t<0?0:0|e8(t)),!e1.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function e5(e,t){var r=t.length<0?0:0|e8(t.length);e=e0(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function e8(e){if(e>=eZ())throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+eZ().toString(16)+" bytes");return 0|e}function e6(e){return!!(null!=e&&e._isBuffer)}function e9(e,t){if(e6(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return td(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return th(e).length;default:if(n)return td(e).length;t=(""+t).toLowerCase(),n=!0}}function e7(e,t,r){var n,i,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n,i=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>i)&&(r=i);for(var a="",s=t;s<r;++s)a+=(n=e[s])<16?"0"+n.toString(16):n.toString(16);return a}(this,t,r);case"utf8":case"utf-8":return tn(this,t,r);case"ascii":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}(this,t,r);case"base64":return n=t,i=r,0===n&&i===this.length?eH(this):eH(this.slice(n,i));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var n=e.slice(t,r),i="",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}(this,t,r);default:if(a)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function te(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function tt(e,t,r,n,i){if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),isNaN(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof t&&(t=e1.from(t,n)),e6(t))return 0===t.length?-1:tr(e,t,r,n,i);if("number"==typeof t)return(t&=255,e1.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):tr(e,[t],r,n,i);throw TypeError("val must be string, number or Buffer")}function tr(e,t,r,n,i){var a,s=1,o=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;s=2,o/=2,u/=2,r/=2}function l(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var c=-1;for(a=r;a<o;a++)if(l(e,a)===l(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===u)return c*s}else -1!==c&&(a-=a-c),c=-1}else for(r+u>o&&(r=o-u),a=r;a>=0;a--){for(var p=!0,d=0;d<u;d++)if(l(e,a+d)!==l(t,d)){p=!1;break}if(p)return a}return -1}function tn(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var a,s,o,u,l=e[i],c=null,p=l>239?4:l>223?3:l>191?2:1;if(i+p<=r)switch(p){case 1:l<128&&(c=l);break;case 2:(192&(a=e[i+1]))==128&&(u=(31&l)<<6|63&a)>127&&(c=u);break;case 3:a=e[i+1],s=e[i+2],(192&a)==128&&(192&s)==128&&(u=(15&l)<<12|(63&a)<<6|63&s)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:a=e[i+1],s=e[i+2],o=e[i+3],(192&a)==128&&(192&s)==128&&(192&o)==128&&(u=(15&l)<<18|(63&a)<<12|(63&s)<<6|63&o)>65535&&u<1114112&&(c=u)}null===c?(c=65533,p=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=p}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return r}(n)}function ti(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function ta(e,t,r,n,i,a){if(!e6(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function ts(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-r,2);i<a;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>(n?i:1-i)*8}function to(e,t,r,n){t<0&&(t=0xffffffff+t+1);for(var i=0,a=Math.min(e.length-r,4);i<a;++i)e[r+i]=t>>>(n?i:3-i)*8&255}function tu(e,t,r,n,i,a){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function tl(e,t,r,n,i){return i||tu(e,t,r,4),e$(e,t,r,n,23,4),r+4}function tc(e,t,r,n,i){return i||tu(e,t,r,8),e$(e,t,r,n,52,8),r+8}e1.TYPED_ARRAY_SUPPORT=void 0===ep.TYPED_ARRAY_SUPPORT||ep.TYPED_ARRAY_SUPPORT,eZ(),e1.poolSize=8192,e1._augment=function(e){return e.__proto__=e1.prototype,e},e1.from=function(e,t,r){return e2(null,e,t,r)},e1.TYPED_ARRAY_SUPPORT&&(e1.prototype.__proto__=Uint8Array.prototype,e1.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&e1[Symbol.species]),e1.alloc=function(e,t,r){return(e3(e),e<=0)?e0(null,e):void 0!==t?"string"==typeof r?e0(null,e).fill(t,r):e0(null,e).fill(t):e0(null,e)},e1.allocUnsafe=function(e){return e4(null,e)},e1.allocUnsafeSlow=function(e){return e4(null,e)},e1.isBuffer=function(e){return null!=e&&(!!e._isBuffer||ty(e)||"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&ty(e.slice(0,0)))},e1.compare=function(e,t){if(!e6(e)||!e6(t))throw TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i<a;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},e1.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}},e1.concat=function(e,t){if(!eQ(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return e1.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=e1.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var a=e[r];if(!e6(a))throw TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},e1.byteLength=e9,e1.prototype._isBuffer=!0,e1.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)te(this,t,t+1);return this},e1.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)te(this,t,t+3),te(this,t+1,t+2);return this},e1.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)te(this,t,t+7),te(this,t+1,t+6),te(this,t+2,t+5),te(this,t+3,t+4);return this},e1.prototype.toString=function(){var e=0|this.length;return 0===e?"":0==arguments.length?tn(this,0,e):e7.apply(this,arguments)},e1.prototype.equals=function(e){if(!e6(e))throw TypeError("Argument must be a Buffer");return this===e||0===e1.compare(this,e)},e1.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},e1.prototype.compare=function(e,t,r,n,i){if(!e6(e))throw TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var a=i-n,s=r-t,o=Math.min(a,s),u=this.slice(n,i),l=e.slice(t,r),c=0;c<o;++c)if(u[c]!==l[c]){a=u[c],s=l[c];break}return a<s?-1:s<a?1:0},e1.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},e1.prototype.indexOf=function(e,t,r){return tt(this,e,t,r,!0)},e1.prototype.lastIndexOf=function(e,t,r){return tt(this,e,t,r,!1)},e1.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,a,s,o,u,l,c,p,d,f,h,m,y=this.length-t;if((void 0===r||r>y)&&(r=y),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var v=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var a=t.length;if(a%2!=0)throw TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var s=0;s<n;++s){var o=parseInt(t.substr(2*s,2),16);if(isNaN(o))break;e[r+s]=o}return s}(this,e,t,r);case"utf8":case"utf-8":return u=t,l=r,tm(td(e,this.length-u),this,u,l);case"ascii":return c=t,p=r,tm(tf(e),this,c,p);case"latin1":case"binary":return i=this,a=e,s=t,o=r,tm(tf(a),i,s,o);case"base64":return d=t,f=r,tm(th(e),this,d,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h=t,m=r,tm(function(e,t){for(var r,n,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,i.push(r%256),i.push(n);return i}(e,this.length-h),this,h,m);default:if(v)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),v=!0}},e1.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},e1.prototype.slice=function(e,t){var r,n=this.length;if(e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),e1.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=e1.prototype;else{var i=t-e;r=new e1(i,void 0);for(var a=0;a<i;++a)r[a]=this[a+e]}return r},e1.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||ti(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n},e1.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||ti(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},e1.prototype.readUInt8=function(e,t){return t||ti(e,1,this.length),this[e]},e1.prototype.readUInt16LE=function(e,t){return t||ti(e,2,this.length),this[e]|this[e+1]<<8},e1.prototype.readUInt16BE=function(e,t){return t||ti(e,2,this.length),this[e]<<8|this[e+1]},e1.prototype.readUInt32LE=function(e,t){return t||ti(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},e1.prototype.readUInt32BE=function(e,t){return t||ti(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},e1.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||ti(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},e1.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||ti(e,t,this.length);for(var n=t,i=1,a=this[e+--n];n>0&&(i*=256);)a+=this[e+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},e1.prototype.readInt8=function(e,t){return(t||ti(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},e1.prototype.readInt16LE=function(e,t){t||ti(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},e1.prototype.readInt16BE=function(e,t){t||ti(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},e1.prototype.readInt32LE=function(e,t){return t||ti(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},e1.prototype.readInt32BE=function(e,t){return t||ti(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},e1.prototype.readFloatLE=function(e,t){return t||ti(e,4,this.length),ez(this,e,!0,23,4)},e1.prototype.readFloatBE=function(e,t){return t||ti(e,4,this.length),ez(this,e,!1,23,4)},e1.prototype.readDoubleLE=function(e,t){return t||ti(e,8,this.length),ez(this,e,!0,52,8)},e1.prototype.readDoubleBE=function(e,t){return t||ti(e,8,this.length),ez(this,e,!1,52,8)},e1.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t|=0,r|=0,!n){var i=Math.pow(2,8*r)-1;ta(this,e,t,r,i,0)}var a=1,s=0;for(this[t]=255&e;++s<r&&(a*=256);)this[t+s]=e/a&255;return t+r},e1.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t|=0,r|=0,!n){var i=Math.pow(2,8*r)-1;ta(this,e,t,r,i,0)}var a=r-1,s=1;for(this[t+a]=255&e;--a>=0&&(s*=256);)this[t+a]=e/s&255;return t+r},e1.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||ta(this,e,t,1,255,0),e1.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},e1.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||ta(this,e,t,2,65535,0),e1.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):ts(this,e,t,!0),t+2},e1.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||ta(this,e,t,2,65535,0),e1.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):ts(this,e,t,!1),t+2},e1.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||ta(this,e,t,4,0xffffffff,0),e1.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):to(this,e,t,!0),t+4},e1.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||ta(this,e,t,4,0xffffffff,0),e1.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):to(this,e,t,!1),t+4},e1.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);ta(this,e,t,r,i-1,-i)}var a=0,s=1,o=0;for(this[t]=255&e;++a<r&&(s*=256);)e<0&&0===o&&0!==this[t+a-1]&&(o=1),this[t+a]=(e/s>>0)-o&255;return t+r},e1.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);ta(this,e,t,r,i-1,-i)}var a=r-1,s=1,o=0;for(this[t+a]=255&e;--a>=0&&(s*=256);)e<0&&0===o&&0!==this[t+a+1]&&(o=1),this[t+a]=(e/s>>0)-o&255;return t+r},e1.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||ta(this,e,t,1,127,-128),e1.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},e1.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||ta(this,e,t,2,32767,-32768),e1.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):ts(this,e,t,!0),t+2},e1.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||ta(this,e,t,2,32767,-32768),e1.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):ts(this,e,t,!1),t+2},e1.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||ta(this,e,t,4,0x7fffffff,-0x80000000),e1.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):to(this,e,t,!0),t+4},e1.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||ta(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),e1.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):to(this,e,t,!1),t+4},e1.prototype.writeFloatLE=function(e,t,r){return tl(this,e,t,!0,r)},e1.prototype.writeFloatBE=function(e,t,r){return tl(this,e,t,!1,r)},e1.prototype.writeDoubleLE=function(e,t,r){return tc(this,e,t,!0,r)},e1.prototype.writeDoubleBE=function(e,t,r){return tc(this,e,t,!1,r)},e1.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("sourceStart out of bounds");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i,a=n-r;if(this===e&&r<t&&t<n)for(i=a-1;i>=0;--i)e[i+t]=this[i+r];else if(a<1e3||!e1.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+a),t);return a},e1.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var i,a=e.charCodeAt(0);a<256&&(e=a)}if(void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!e1.isEncoding(n))throw TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var s=e6(e)?e:td(new e1(e,n).toString()),o=s.length;for(i=0;i<r-t;++i)this[i+t]=s[i%o]}return this};var tp=/[^+\/0-9A-Za-z-_]/g;function td(e,t){t=t||1/0;for(var r,n=e.length,i=null,a=[],s=0;s<n;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319||s+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return a}function tf(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function th(e){return function(e){eG||eK();var t,r,n,i,a,s,o=e.length;if(o%4>0)throw Error("Invalid string. Length must be a multiple of 4");a="="===e[o-2]?2:"="===e[o-1]?1:0,s=new eX(3*o/4-a),n=a>0?o-4:o;var u=0;for(t=0,r=0;t<n;t+=4,r+=3)i=eJ[e.charCodeAt(t)]<<18|eJ[e.charCodeAt(t+1)]<<12|eJ[e.charCodeAt(t+2)]<<6|eJ[e.charCodeAt(t+3)],s[u++]=i>>16&255,s[u++]=i>>8&255,s[u++]=255&i;return 2===a?(i=eJ[e.charCodeAt(t)]<<2|eJ[e.charCodeAt(t+1)]>>4,s[u++]=255&i):1===a&&(i=eJ[e.charCodeAt(t)]<<10|eJ[e.charCodeAt(t+1)]<<4|eJ[e.charCodeAt(t+2)]>>2,s[u++]=i>>8&255,s[u++]=255&i),s}(function(e){var t;if((e=((t=e).trim?t.trim():t.replace(/^\s+|\s+$/g,"")).replace(tp,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function tm(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function ty(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function tv(){if(void 0===lN){var e=new ArrayBuffer(2),t=new Uint8Array(e),r=new Uint16Array(e);if(t[0]=1,t[1]=2,258===r[0])lN="BE";else if(513===r[0])lN="LE";else throw Error("unable to figure out endianess")}return lN}function tg(){return void 0!==ep.location?ep.location.hostname:""}function tb(){return[]}function tS(){return 0}function tx(){return Number.MAX_VALUE}function tT(){return Number.MAX_VALUE}function tE(){return[]}function t_(){return"Browser"}function tP(){return void 0!==ep.navigator?ep.navigator.appVersion:""}function tA(){return{}}function tk(){return{}}function tC(){return"javascript"}function tw(){return"browser"}function tI(){return"/tmp"}function tN(){return"$HOME"}var tO=/*@__PURE__*/eo(/*#__PURE__*/Object.freeze({__proto__:null,EOL:"\n",arch:tC,cpus:tE,default:{homedir:tN,EOL:"\n",arch:tC,platform:tw,tmpdir:tI,tmpDir:tI,networkInterfaces:tA,getNetworkInterfaces:tk,release:tP,type:t_,cpus:tE,totalmem:tT,freemem:tx,uptime:tS,loadavg:tb,hostname:tg,endianness:tv},endianness:tv,freemem:tx,getNetworkInterfaces:tk,homedir:tN,hostname:tg,loadavg:tb,networkInterfaces:tA,platform:tw,release:tP,tmpDir:tI,tmpdir:tI,totalmem:tT,type:t_,uptime:tS}));function tD(){return!1}function tL(){throw Error("tty.ReadStream is not implemented")}function tM(){throw Error("tty.ReadStream is not implemented")}var tF=/*@__PURE__*/eo(/*#__PURE__*/Object.freeze({__proto__:null,ReadStream:tL,WriteStream:tM,default:{isatty:tD,ReadStream:tL,WriteStream:tM},isatty:tD}));lO="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e};var tB=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},tR=/%[sdj%]/g;function tj(e){if(!t0(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(tq(arguments[r]));return t.join(" ")}for(var r=1,n=arguments,i=n.length,a=String(e).replace(tR,function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),s=n[r];r<i;s=n[++r])tY(s)||!t4(s)?a+=" "+s:a+=" "+tq(s);return a}function tU(e,t){if(t2(ep.process))return function(){return tU(e,t).apply(this,arguments)};if(!0===eV.noDeprecation)return e;var r=!1;return function(){if(!r){if(eV.throwDeprecation)throw Error(t);eV.traceDeprecation?console.trace(t):console.error(t),r=!0}return e.apply(this,arguments)}}var tV={};function tW(e){return t2(lD)&&(lD=eV.env.NODE_DEBUG||""),tV[e=e.toUpperCase()]||(RegExp("\\b"+e+"\\b","i").test(lD)?tV[e]=function(){var t=tj.apply(null,arguments);console.error("%s %d: %s",e,0,t)}:tV[e]=function(){}),tV[e]}function tq(e,t){var r={seen:[],stylize:tX};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),t$(t)?r.showHidden=t:t&&ri(r,t),t2(r.showHidden)&&(r.showHidden=!1),t2(r.depth)&&(r.depth=2),t2(r.colors)&&(r.colors=!1),t2(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=tJ),tG(r,e,r.depth)}function tJ(e,t){var r=tq.styles[t];return r?"\x1b["+tq.colors[r][0]+"m"+e+"\x1b["+tq.colors[r][1]+"m":e}function tX(e,t){return e}function tG(e,t,r){if(e.customInspect&&t&&t6(t.inspect)&&t.inspect!==tq&&!(t.constructor&&t.constructor.prototype===t)){var n,i,a,s,o=t.inspect(r,e);return t0(o)||(o=tG(e,o,r)),o}var u=function(e,t){if(t2(t))return e.stylize("undefined","undefined");if(t0(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return tZ(t)?e.stylize(""+t,"number"):t$(t)?e.stylize(""+t,"boolean"):tY(t)?e.stylize("null","null"):void 0}(e,t);if(u)return u;var l=Object.keys(t),c=(a={},l.forEach(function(e,t){a[e]=!0}),a);if(e.showHidden&&(l=Object.getOwnPropertyNames(t)),t8(t)&&(l.indexOf("message")>=0||l.indexOf("description")>=0))return tK(t);if(0===l.length){if(t6(t)){var p=t.name?": "+t.name:"";return e.stylize("[Function"+p+"]","special")}if(t3(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(t5(t))return e.stylize(Date.prototype.toString.call(t),"date");if(t8(t))return tK(t)}var d="",f=!1,h=["{","}"];return(tz(t)&&(f=!0,h=["[","]"]),t6(t)&&(d=" [Function"+(t.name?": "+t.name:"")+"]"),t3(t)&&(d=" "+RegExp.prototype.toString.call(t)),t5(t)&&(d=" "+Date.prototype.toUTCString.call(t)),t8(t)&&(d=" "+tK(t)),0!==l.length||f&&0!=t.length)?r<0?t3(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),s=f?function(e,t,r,n,i){for(var a=[],s=0,o=t.length;s<o;++s)ra(t,String(s))?a.push(tH(e,t,r,n,String(s),!0)):a.push("");return i.forEach(function(i){i.match(/^\d+$/)||a.push(tH(e,t,r,n,i,!0))}),a}(e,t,r,c,l):l.map(function(n){return tH(e,t,r,c,n,f)}),e.seen.pop(),n=d,i=h,s.reduce(function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?i[0]+(""===n?"":n+"\n ")+" "+s.join(",\n ")+" "+i[1]:i[0]+n+" "+s.join(", ")+" "+i[1]):h[0]+d+h[1]}function tK(e){return"["+Error.prototype.toString.call(e)+"]"}function tH(e,t,r,n,i,a){var s,o,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?o=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(o=e.stylize("[Setter]","special")),ra(n,i)||(s="["+i+"]"),!o&&(0>e.seen.indexOf(u.value)?(o=tY(r)?tG(e,u.value,null):tG(e,u.value,r-1)).indexOf("\n")>-1&&(o=a?o.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+o.split("\n").map(function(e){return" "+e}).join("\n")):o=e.stylize("[Circular]","special")),t2(s)){if(a&&i.match(/^\d+$/))return o;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+o}function tz(e){return Array.isArray(e)}function t$(e){return"boolean"==typeof e}function tY(e){return null===e}function tQ(e){return null==e}function tZ(e){return"number"==typeof e}function t0(e){return"string"==typeof e}function t1(e){return"symbol"==typeof e}function t2(e){return void 0===e}function t3(e){return t4(e)&&"[object RegExp]"===re(e)}function t4(e){return"object"==typeof e&&null!==e}function t5(e){return t4(e)&&"[object Date]"===re(e)}function t8(e){return t4(e)&&("[object Error]"===re(e)||e instanceof Error)}function t6(e){return"function"==typeof e}function t9(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function t7(e){return Array.isArray(e)}function re(e){return Object.prototype.toString.call(e)}function rt(e){return e<10?"0"+e.toString(10):e.toString(10)}tq.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},tq.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var rr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function rn(){var e,t;console.log("%s - %s",(t=[rt((e=new Date).getHours()),rt(e.getMinutes()),rt(e.getSeconds())].join(":"),[e.getDate(),rr[e.getMonth()],t].join(" ")),tj.apply(null,arguments))}function ri(e,t){if(!t||!t4(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}function ra(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var rs="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function ro(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');if(rs&&e[rs]){var t=e[rs];if("function"!=typeof t)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,rs,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),i=[],a=0;a<arguments.length;a++)i.push(arguments[a]);i.push(function(e,n){e?r(e):t(n)});try{e.apply(this,i)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),rs&&Object.defineProperty(t,rs,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,tB(e))}function ru(e,t){if(!e){var r=Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}function rl(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var n=t.pop();if("function"!=typeof n)throw TypeError("The last argument must be of type Function");var i=this,a=function(){return n.apply(i,arguments)};e.apply(this,t).then(function(e){eV.nextTick(a.bind(null,null,e))},function(e){eV.nextTick(ru.bind(null,e,a))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,tB(e)),t}ro.custom=rs;var rc=/*@__PURE__*/eo(/*#__PURE__*/Object.freeze({__proto__:null,_extend:ri,callbackify:rl,debuglog:tW,default:{inherits:lO,_extend:ri,log:rn,isBuffer:t7,isPrimitive:t9,isFunction:t6,isError:t8,isDate:t5,isObject:t4,isRegExp:t3,isUndefined:t2,isSymbol:t1,isString:t0,isNumber:tZ,isNullOrUndefined:tQ,isNull:tY,isBoolean:t$,isArray:tz,inspect:tq,deprecate:tU,format:tj,debuglog:tW,promisify:ro,callbackify:rl},deprecate:tU,format:tj,inherits:lO,inspect:tq,isArray:tz,isBoolean:t$,isBuffer:t7,isDate:t5,isError:t8,isFunction:t6,isNull:tY,isNullOrUndefined:tQ,isNumber:tZ,isObject:t4,isPrimitive:t9,isRegExp:t3,isString:t0,isSymbol:t1,isUndefined:t2,log:rn,promisify:ro}));function rp(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function rd(e,t,r){var n;return t=rg(t),(n=rk()?Reflect.construct(t,r||[],rg(e).constructor):t.apply(e,r))&&("object"===rP(n)||"function"==typeof n)?n:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function rf(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function rh(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function rm(e,t,r){return t&&rh(e.prototype,t),r&&rh(e,r),e}function ry(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rv(e,t,r){return(rv="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=rg(e)););return e}(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(r||e):i.value}})(e,t,r||e)}function rg(e){return(rg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function rb(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&rx(e,t)}function rS(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function rx(e,t){return(rx=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function rT(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],s=!0,o=!1;try{for(i=i.call(e);!(s=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);s=!0);}catch(e){o=!0,n=e}finally{try{s||null==i.return||i.return()}finally{if(o)throw n}}return a}}(e,t)||rA(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rE(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function r_(e){return function(e){if(Array.isArray(e))return rp(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||rA(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rP(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function rA(e,t){if(e){if("string"==typeof e)return rp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rp(e,t)}}function rk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(rk=function(){return!!e})()}function rC(e,t){var r,n,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(a){return function(o){return function(a){if(r)throw TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],n=0}finally{r=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,o])}}}function rw(){var e=rE(["pipelineOperator"]);return rw=function(){return e},e}function rI(){var e=rE(["flow"]);return rI=function(){return e},e}function rN(){var e=rE(["jsx"]);return rN=function(){return e},e}function rO(){var e=rE(["typescript"]);return rO=function(){return e},e}function rD(){var e=rE(["placeholders"]);return rD=function(){return e},e}function rL(){var e=rE(["\n (function (",") {\n function ","(",") {\n return ",".apply(this, arguments);\n }\n\n ",".toString = function () {\n return ",".toString();\n }\n\n return ",";\n })(",")\n "]);return rL=function(){return e},e}var rM=Object.create,rF=Object.defineProperty,rB=Object.getOwnPropertyDescriptor,rR=Object.getOwnPropertyNames,rj=Object.getPrototypeOf,rU=Object.prototype.hasOwnProperty,rV=function(e,t){return function(){return t||(0,e[rR(e)[0]])((t={exports:{}}).exports,t),t.exports}},rW=function(e,t){for(var r in t)rF(e,r,{get:t[r],enumerable:!0})},rq=function(e,t,r,n){if(t&&(void 0===t?"undefined":rP(t))==="object"||"function"==typeof t){var i=!0,a=!1,s=void 0;try{for(var o,u=rR(t)[Symbol.iterator]();!(i=(o=u.next()).done);i=!0)!function(){var i=o.value;rU.call(e,i)||i===r||rF(e,i,{get:function(){return t[i]},enumerable:!(n=rB(t,i))||n.enumerable})}()}catch(e){a=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(a)throw s}}}return e},rJ=function(e,t,r){return rq(rF(null!=e?rM(rj(e)):{},"default",{value:e,enumerable:!0}),e)},rX=function(e,t,r){var n;return(n=(void 0===t?"undefined":rP(t))!=="symbol"?t+"":t)in e?rF(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},rG=rV({"node_modules/picocolors/picocolors.js":function(e,t){var r=eV.argv||[],n=eV.env||{},i=!(n.NO_COLOR||r.includes("--no-color"))&&(!!n.FORCE_COLOR||r.includes("--color")||"win32"===eV.platform||(eV.stdout||{}).isTTY&&"dumb"!==n.TERM||!!n.CI),a=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e;return function(n){var i=""+n,a=i.indexOf(t,e.length);return~a?e+s(i,t,r,a)+t:e+i+t}},s=function(e,t,r,n){var i="",a=0;do i+=e.substring(a,n)+r,a=n+t.length,n=e.indexOf(t,a);while(~n);return i+e.substring(a)},o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i,t=e?a:function(){return String};return{isColorSupported:e,reset:t("\x1b[0m","\x1b[0m"),bold:t("\x1b[1m","\x1b[22m","\x1b[22m\x1b[1m"),dim:t("\x1b[2m","\x1b[22m","\x1b[22m\x1b[2m"),italic:t("\x1b[3m","\x1b[23m"),underline:t("\x1b[4m","\x1b[24m"),inverse:t("\x1b[7m","\x1b[27m"),hidden:t("\x1b[8m","\x1b[28m"),strikethrough:t("\x1b[9m","\x1b[29m"),black:t("\x1b[30m","\x1b[39m"),red:t("\x1b[31m","\x1b[39m"),green:t("\x1b[32m","\x1b[39m"),yellow:t("\x1b[33m","\x1b[39m"),blue:t("\x1b[34m","\x1b[39m"),magenta:t("\x1b[35m","\x1b[39m"),cyan:t("\x1b[36m","\x1b[39m"),white:t("\x1b[37m","\x1b[39m"),gray:t("\x1b[90m","\x1b[39m"),bgBlack:t("\x1b[40m","\x1b[49m"),bgRed:t("\x1b[41m","\x1b[49m"),bgGreen:t("\x1b[42m","\x1b[49m"),bgYellow:t("\x1b[43m","\x1b[49m"),bgBlue:t("\x1b[44m","\x1b[49m"),bgMagenta:t("\x1b[45m","\x1b[49m"),bgCyan:t("\x1b[46m","\x1b[49m"),bgWhite:t("\x1b[47m","\x1b[49m"),blackBright:t("\x1b[90m","\x1b[39m"),redBright:t("\x1b[91m","\x1b[39m"),greenBright:t("\x1b[92m","\x1b[39m"),yellowBright:t("\x1b[93m","\x1b[39m"),blueBright:t("\x1b[94m","\x1b[39m"),magentaBright:t("\x1b[95m","\x1b[39m"),cyanBright:t("\x1b[96m","\x1b[39m"),whiteBright:t("\x1b[97m","\x1b[39m"),bgBlackBright:t("\x1b[100m","\x1b[49m"),bgRedBright:t("\x1b[101m","\x1b[49m"),bgGreenBright:t("\x1b[102m","\x1b[49m"),bgYellowBright:t("\x1b[103m","\x1b[49m"),bgBlueBright:t("\x1b[104m","\x1b[49m"),bgMagentaBright:t("\x1b[105m","\x1b[49m"),bgCyanBright:t("\x1b[106m","\x1b[49m"),bgWhiteBright:t("\x1b[107m","\x1b[49m")}};t.exports=o(),t.exports.createColors=o}}),rK=rV({"node_modules/js-tokens/index.js":function(e,t){var r,n,i,a,s,o,u,l,c,p,d,f,h,m,y,v,g,b,S;h=RegExp("\\/(?![*\\/])(?:\\[(?:[^\\]\\\\\\n\\r\\u2028\\u2029]+|\\\\.)*\\]|[^\\/\\\\\\n\\r\\u2028\\u2029]+|\\\\.)*(\\/[$_\\u200C\\u200D\\p{ID_Continue}]*|\\\\)?","yu"),f=RegExp("--|\\+\\+|=>|\\.{3}|\\??\\.(?!\\d)|(?:&&|\\|\\||\\?\\?|[+\\-%&|^]|\\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\\/(?![\\/*]))=?|[?~,:;[\\](){}]","y"),r=RegExp("(\\x23?)(?=[$_\\p{ID_Start}\\\\])(?:[$_\\u200C\\u200D\\p{ID_Continue}]+|\\\\u[\\da-fA-F]{4}|\\\\u\\{[\\da-fA-F]+\\})+","yu"),y=RegExp("(['\"])(?:[^'\"\\\\\\n\\r]+|(?!\\1)['\"]|\\\\(?:\\r\\n|[^]))*(\\1)?","y"),d=RegExp("(?:0[xX][\\da-fA-F](?:_?[\\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\\d)*n|(?:(?:0(?!\\d)|0\\d*[89]\\d*|[1-9](?:_?\\d)*)(?:\\.(?:\\d(?:_?\\d)*)?)?|\\.\\d(?:_?\\d)*)(?:[eE][+-]?\\d(?:_?\\d)*)?|0[0-7]+","y"),v=RegExp("[`}](?:[^`\\\\$]+|\\\\[^]|\\$(?!\\{))*(`|\\$\\{)?","y"),S=RegExp("[\\t\\v\\f\\ufeff\\p{Zs}]+","yu"),l=RegExp("\\r?\\n|[\\r\\u2028\\u2029]","y"),c=RegExp("\\/\\*(?:[^*]+|\\*(?!\\/))*(\\*\\/)?","y"),m=RegExp("\\/\\/.*","y"),i=RegExp("[<>.:={}]|\\/(?![\\/*])","y"),n=RegExp("[$_\\p{ID_Start}][$_\\u200C\\u200D\\p{ID_Continue}-]*","yu"),a=RegExp("(['\"])(?:[^'\"]+|(?!\\1)['\"])*(\\1)?","y"),s=RegExp("[^<>{}]+","y"),b=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,g=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,o=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,u=/^(?:return|throw|yield)$/,p=RegExp(l.source),t.exports=function(e){var t,x,T,E,_,P,A,k,C,w,I,N,O,D,L,M,F=arguments;return rC(this,function(B){switch(B.label){case 0:x=void 0!==(t=(F.length>1&&void 0!==F[1]?F[1]:{}).jsx)&&t,k=e.length,P=0,A="",M=[{tag:"JS"}],T=[],O=0,D=!1,B.label=1;case 1:if(!(P<k))return[3,62];switch((w=M[M.length-1]).tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":return[3,2];case"JSXTag":case"JSXTagEnd":return[3,38];case"JSXChildren":return[3,45]}return[3,52];case 2:if(!("/"===e[P]&&(b.test(A)||o.test(A)))||(h.lastIndex=P,!(C=h.exec(e))))return[3,4];return P=h.lastIndex,A=C[0],D=!0,[4,{type:"RegularExpressionLiteral",value:C[0],closed:void 0!==C[1]&&"\\"!==C[1]}];case 3:return B.sent(),[3,1];case 4:if(f.lastIndex=P,!(C=f.exec(e)))return[3,26];switch(L=C[0],I=f.lastIndex,N=L,L){case"(":return[3,5];case")":return[3,6];case"{":return[3,7];case"}":return[3,8];case"]":return[3,18];case"++":case"--":return[3,19];case"<":return[3,20]}return[3,23];case 5:return"?NonExpressionParenKeyword"===A&&M.push({tag:"JSNonExpressionParen",nesting:O}),O++,D=!1,[3,24];case 6:return O--,D=!0,"JSNonExpressionParen"===w.tag&&O===w.nesting&&(M.pop(),N="?NonExpressionParenEnd",D=!1),[3,24];case 7:return f.lastIndex=0,_=!g.test(A)&&(b.test(A)||o.test(A)),T.push(_),D=!1,[3,24];case 8:switch(w.tag){case"InterpolationInTemplate":return[3,9];case"InterpolationInJSX":return[3,15]}return[3,17];case 9:if(T.length!==w.nesting)return[3,14];if(v.lastIndex=P,C=v.exec(e),P=v.lastIndex,A=C[0],"${"!==C[1])return[3,11];return A="?InterpolationInTemplate",D=!1,[4,{type:"TemplateMiddle",value:C[0]}];case 10:return B.sent(),[3,13];case 11:return M.pop(),D=!0,[4,{type:"TemplateTail",value:C[0],closed:"`"===C[1]}];case 12:B.sent(),B.label=13;case 13:return[3,1];case 14:return[3,17];case 15:if(T.length!==w.nesting)return[3,17];return M.pop(),P+=1,A="}",[4,{type:"JSXPunctuator",value:"}"}];case 16:case 21:return B.sent(),[3,1];case 17:return N=(D=T.pop())?"?ExpressionBraceEnd":"}",[3,24];case 18:return D=!0,[3,24];case 19:return N=D?"?PostfixIncDec":"?UnaryIncDec",[3,24];case 20:if(!(x&&(b.test(A)||o.test(A))))return[3,22];return M.push({tag:"JSXTag"}),P+=1,A="<",[4,{type:"JSXPunctuator",value:L}];case 22:return D=!1,[3,24];case 23:D=!1,B.label=24;case 24:return P=I,A=N,[4,{type:"Punctuator",value:L}];case 25:case 27:case 29:case 31:return B.sent(),[3,1];case 26:if(r.lastIndex=P,!(C=r.exec(e)))return[3,28];switch(P=r.lastIndex,N=C[0],C[0]){case"for":case"if":case"while":case"with":"."!==A&&"?."!==A&&(N="?NonExpressionParenKeyword")}return A=N,D=!o.test(C[0]),[4,{type:"#"===C[1]?"PrivateIdentifier":"IdentifierName",value:C[0]}];case 28:if(y.lastIndex=P,!(C=y.exec(e)))return[3,30];return P=y.lastIndex,A=C[0],D=!0,[4,{type:"StringLiteral",value:C[0],closed:void 0!==C[2]}];case 30:if(d.lastIndex=P,!(C=d.exec(e)))return[3,32];return P=d.lastIndex,A=C[0],D=!0,[4,{type:"NumericLiteral",value:C[0]}];case 32:if(v.lastIndex=P,!(C=v.exec(e)))return[3,37];if(P=v.lastIndex,A=C[0],"${"!==C[1])return[3,34];return A="?InterpolationInTemplate",M.push({tag:"InterpolationInTemplate",nesting:T.length}),D=!1,[4,{type:"TemplateHead",value:C[0]}];case 33:return B.sent(),[3,36];case 34:return D=!0,[4,{type:"NoSubstitutionTemplate",value:C[0],closed:"`"===C[1]}];case 35:B.sent(),B.label=36;case 36:return[3,1];case 37:case 44:return[3,52];case 38:if(i.lastIndex=P,!(C=i.exec(e)))return[3,40];switch(P=i.lastIndex,N=C[0],C[0]){case"<":M.push({tag:"JSXTag"});break;case">":M.pop(),"/"===A||"JSXTagEnd"===w.tag?(N="?JSX",D=!0):M.push({tag:"JSXChildren"});break;case"{":M.push({tag:"InterpolationInJSX",nesting:T.length}),N="?InterpolationInJSX",D=!1;break;case"/":"<"===A&&(M.pop(),"JSXChildren"===M[M.length-1].tag&&M.pop(),M.push({tag:"JSXTagEnd"}))}return A=N,[4,{type:"JSXPunctuator",value:C[0]}];case 39:case 41:case 43:case 46:case 49:case 51:case 53:case 55:case 57:case 59:case 61:return B.sent(),[3,1];case 40:if(n.lastIndex=P,!(C=n.exec(e)))return[3,42];return P=n.lastIndex,A=C[0],[4,{type:"JSXIdentifier",value:C[0]}];case 42:if(a.lastIndex=P,!(C=a.exec(e)))return[3,44];return P=a.lastIndex,A=C[0],[4,{type:"JSXString",value:C[0],closed:void 0!==C[2]}];case 45:if(s.lastIndex=P,!(C=s.exec(e)))return[3,47];return P=s.lastIndex,A=C[0],[4,{type:"JSXText",value:C[0]}];case 47:switch(e[P]){case"<":return[3,48];case"{":return[3,50]}return[3,52];case 48:return M.push({tag:"JSXTag"}),P++,A="<",[4,{type:"JSXPunctuator",value:"<"}];case 50:return M.push({tag:"InterpolationInJSX",nesting:T.length}),P++,A="?InterpolationInJSX",D=!1,[4,{type:"JSXPunctuator",value:"{"}];case 52:if(S.lastIndex=P,!(C=S.exec(e)))return[3,54];return P=S.lastIndex,[4,{type:"WhiteSpace",value:C[0]}];case 54:if(l.lastIndex=P,!(C=l.exec(e)))return[3,56];return P=l.lastIndex,D=!1,u.test(A)&&(A="?NoLineTerminatorHere"),[4,{type:"LineTerminatorSequence",value:C[0]}];case 56:if(c.lastIndex=P,!(C=c.exec(e)))return[3,58];return P=c.lastIndex,p.test(C[0])&&(D=!1,u.test(A)&&(A="?NoLineTerminatorHere")),[4,{type:"MultiLineComment",value:C[0],closed:void 0!==C[1]}];case 58:if(m.lastIndex=P,!(C=m.exec(e)))return[3,60];return P=m.lastIndex,D=!1,[4,{type:"SingleLineComment",value:C[0]}];case 60:return E=String.fromCodePoint(e.codePointAt(P)),P+=E.length,A=E,D=!1,[4,{type:w.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:E}];case 62:return[2,void 0]}})}}}),rH=rV({"node_modules/jsesc/jsesc.js":function(e,t){var r={},n=r.hasOwnProperty,i=function(e,t){for(var r in e)n.call(e,r)&&t(r,e[r])},a=function(e,t){for(var r=e.length,n=-1;++n<r;)t(e[n])},s=function(e){return"\\u"+("0000"+e).slice(-4)},o=function(e,t){var r=e.toString(16);return t?r:r.toUpperCase()},u=r.toString,l=Array.isArray,c=function(e){return(void 0===e?"undefined":rP(e))=="bigint"},p={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},d=/[\\\b\f\n\r\t]/,f=/[0-9]/,h=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,m=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,y=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,v=function(e,t){var r=function(){E=T,++t.indentLevel,T=t.indent.repeat(t.indentLevel)},n={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:!1,__inline2__:!1},g=t&&t.json;g&&(n.quotes="double",n.wrap=!0),"single"!=((O=t)&&i(O,function(e,t){n[e]=t}),t=n).quotes&&"double"!=t.quotes&&"backtick"!=t.quotes&&(t.quotes="single");var b="double"==t.quotes?'"':"backtick"==t.quotes?"`":"'",S=t.compact,x=t.lowercaseHex,T=t.indent.repeat(t.indentLevel),E="",_=t.__inline1__,P=t.__inline2__,A=S?"":"\n",k=!0,C="binary"==t.numbers,w="octal"==t.numbers,I="decimal"==t.numbers,N="hexadecimal"==t.numbers;if(g&&e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!("string"==typeof(D=e)||"[object String]"==u.call(D))){if(M=e,"[object Map]"==u.call(M))return 0==e.size?"new Map()":(S||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+v(Array.from(e),t)+")");if(F=e,"[object Set]"==u.call(F))return 0==e.size?"new Set()":"new Set("+v(Array.from(e),t)+")";if(Array.isArray(e))return 0==e.length?"Buffer.from([])":"Buffer.from("+v(Array.from(e),t)+")";if(l(e))return(R=[],t.wrap=!0,_&&(t.__inline1__=!1,t.__inline2__=!0),P||r(),a(e,function(e){k=!1,P&&(t.__inline2__=!1),R.push((S||P?"":T)+v(e,t))}),k)?"[]":P?"["+R.join(", ")+"]":"["+A+R.join(","+A)+A+(S?"":E)+"]";if("number"==typeof(B=e)||"[object Number]"==u.call(B)||c(e)){if(g)return JSON.stringify(Number(e));if(I)j=String(e);else if(N){var O,D,L,M,F,B,R,j,U=e.toString(16);x||(U=U.toUpperCase()),j="0x"+U}else C?j="0b"+e.toString(2):w&&(j="0o"+e.toString(8));return c(e)?j+"n":j}return c(e)?g?JSON.stringify(Number(e)):e+"n":(L=e,"[object Object]"==u.call(L))?(R=[],t.wrap=!0,r(),i(e,function(e,r){k=!1,R.push((S?"":T)+v(e,t)+":"+(S?"":" ")+v(r,t))}),k)?"{}":"{"+A+R.join(","+A)+A+(S?"":E)+"}":g?JSON.stringify(e)||"null":String(e)}var V=t.escapeEverything?m:y;return R=e.replace(V,function(e,r,n,i,a,u){if(r){if(t.minimal)return r;var l=r.charCodeAt(0),c=r.charCodeAt(1);return t.es6?"\\u{"+o((l-55296)*1024+c-56320+65536,x)+"}":s(o(l,x))+s(o(c,x))}if(n)return s(o(n.charCodeAt(0),x));if("\0"==e&&!g&&!f.test(u.charAt(a+1)))return"\\0";if(i)return i==b||t.escapeEverything?"\\"+i:i;if(d.test(e))return p[e];if(t.minimal&&!h.test(e))return e;var m=o(e.charCodeAt(0),x);return g||m.length>2?s(m):"\\x"+("00"+m).slice(-2)}),"`"==b&&(R=R.replace(/\$\{/g,"\\${")),t.isScriptContext&&(R=R.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,g?"\\u003C!--":"\\x3C!--")),t.wrap&&(R=b+R+b),R};v.version="3.0.2",t.exports=v}}),rz=rV({"node_modules/ms/index.js":function(e,t){function r(e,t,r,n){return Math.round(e/r)+" "+n+(t>=1.5*r?"s":"")}t.exports=function(e,t){t=t||{};var n,i,a=void 0===e?"undefined":rP(e);if("string"===a&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^(-?(?:\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(t){var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*r;case"weeks":case"week":case"w":return 6048e5*r;case"days":case"day":case"d":return 864e5*r;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*r;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*r;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}(e);if("number"===a&&isFinite(e))return t.long?(n=Math.abs(e))>=864e5?r(e,n,864e5,"day"):n>=36e5?r(e,n,36e5,"hour"):n>=6e4?r(e,n,6e4,"minute"):n>=1e3?r(e,n,1e3,"second"):e+" ms":(i=Math.abs(e))>=864e5?Math.round(e/864e5)+"d":i>=36e5?Math.round(e/36e5)+"h":i>=6e4?Math.round(e/6e4)+"m":i>=1e3?Math.round(e/1e3)+"s":e+"ms";throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}}}),r$=rV({"node_modules/debug/src/common.js":function(e,t){t.exports=function(e){function t(e){var n,i,a,s=null;function o(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];if(o.enabled){var a=Number(/* @__PURE__ */new Date),s=a-(n||a);o.diff=s,o.prev=n,o.curr=a,n=a,r[0]=t.coerce(r[0]),"string"!=typeof r[0]&&r.unshift("%O");var u=0;r[0]=r[0].replace(/%([a-zA-Z%])/g,function(e,n){if("%%"===e)return"%";u++;var i=t.formatters[n];if("function"==typeof i){var a=r[u];e=i.call(o,a),r.splice(u,1),u--}return e}),t.formatArgs.call(o,r),(o.log||t.log).apply(o,r)}}return o.namespace=e,o.useColors=t.useColors(),o.color=t.selectColor(e),o.extend=r,o.destroy=t.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:function(){return null!==s?s:(i!==t.namespaces&&(i=t.namespaces,a=t.enabled(e)),a)},set:function(e){s=e}}),"function"==typeof t.init&&t.init(o),o}function r(e,r){var n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function n(e,t){for(var r=0,n=0,i=-1,a=0;r<e.length;)if(n<t.length&&(t[n]===e[r]||"*"===t[n]))"*"===t[n]?(i=n,a=r):r++,n++;else{if(-1===i)return!1;n=i+1,r=++a}for(;n<t.length&&"*"===t[n];)n++;return n===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return rS(e,Error)?e.stack||e.message:e},t.disable=function(){var e=r_(t.names).concat(r_(t.skips.map(function(e){return"-"+e}))).join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];var r=("string"==typeof e?e:"").trim().replace(" ",",").split(",").filter(Boolean),n=!0,i=!1,a=void 0;try{for(var s,o=r[Symbol.iterator]();!(n=(s=o.next()).done);n=!0){var u=s.value;"-"===u[0]?t.skips.push(u.slice(1)):t.names.push(u)}}catch(e){i=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}},t.enabled=function(e){var r=!0,i=!1,a=void 0;try{for(var s,o=t.skips[Symbol.iterator]();!(r=(s=o.next()).done);r=!0){var u=s.value;if(n(e,u))return!1}}catch(e){i=!0,a=e}finally{try{r||null==o.return||o.return()}finally{if(i)throw a}}var l=!0,c=!1,p=void 0;try{for(var d,f=t.names[Symbol.iterator]();!(l=(d=f.next()).done);l=!0){var h=d.value;if(n(e,h))return!0}}catch(e){c=!0,p=e}finally{try{l||null==f.return||f.return()}finally{if(c)throw p}}return!1},t.humanize=rz(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(function(r){t[r]=e[r]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){for(var r=0,n=0;n<e.length;n++)r=(r<<5)-r+e.charCodeAt(n)|0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}}}),rY=rV({"node_modules/debug/src/browser.js":function(e,t){var r;e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),this.useColors){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var n=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(n++,"%c"===e&&(i=n))}),e.splice(i,0,r)}},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(e){}},e.load=function(){var t;try{t=e.storage.getItem("debug")}catch(e){}return!t&&void 0!==eV&&"env"in eV&&(t=eV.env.DEBUG),t},e.useColors=function(){var e;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&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},e.storage=function(){try{return localStorage}catch(e){}}(),e.destroy=(r=!1,function(){r||(r=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}),e.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.log=console.debug||console.log||function(){},t.exports=r$()(e),t.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}}),rQ=rV({"node_modules/has-flag/index.js":function(e,t){t.exports=function(e,t){t=t||eV.argv;var r=e.startsWith("-")?"":1===e.length?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return -1!==n&&(-1===i||n<i)}}}),rZ=rV({"node_modules/supports-color/index.js":function(e,t){var r,n=rQ(),i={};function a(e){var t;return 0!==(t=function(e){if(!1===r)return 0;if(n("color=16m")||n("color=full")||n("color=truecolor"))return 3;if(n("color=256"))return 2;if(e&&!e.isTTY&&!0!==r)return 0;var t=r?1:0;if("CI"in i)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(e){return e in i})||"codeship"===i.CI_NAME?1:t;if("TEAMCITY_VERSION"in i)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0;if("truecolor"===i.COLORTERM)return 3;if("TERM_PROGRAM"in i){var a=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(i.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)||"COLORTERM"in i?1:(i.TERM,t)}(e))&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}n("no-color")||n("no-colors")||n("color=false")?r=!1:(n("color")||n("colors")||n("color=true")||n("color=always"))&&(r=!0),"FORCE_COLOR"in i&&(r=0===i.FORCE_COLOR.length||0!==parseInt(i.FORCE_COLOR,10)),t.exports={supportsColor:a,stdout:a(eV.stdout),stderr:a(eV.stderr)}}}),r0=rV({"node_modules/debug/src/node.js":function(e,t){e.init=function(t){t.inspectOpts={};for(var r=Object.keys(e.inspectOpts),n=0;n<r.length;n++)t.inspectOpts[r[n]]=e.inspectOpts[r[n]]},e.log=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return eV.stderr.write(rc.formatWithOptions.apply(rc,[e.inspectOpts].concat(r_(r)))+"\n")},e.formatArgs=function(r){var n=this.namespace;if(this.useColors){var i=this.color,a="\x1b[3"+(i<8?i:"8;5;"+i),s=" ".concat(a,";1m").concat(n," \x1b[0m");r[0]=s+r[0].split("\n").join("\n"+s),r.push(a+"m+"+t.exports.humanize(this.diff)+"\x1b[0m")}else r[0]=(e.inspectOpts.hideDate?"":/* @__PURE__ */new Date().toISOString()+" ")+n+" "+r[0]},e.save=function(e){e?eV.env.DEBUG=e:delete eV.env.DEBUG},e.load=function(){return eV.env.DEBUG},e.useColors=function(){return"colors"in e.inspectOpts?!!e.inspectOpts.colors:tF.isatty(eV.stderr.fd)},e.destroy=rc.deprecate(function(){},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),e.colors=[6,2,3,4,5,1];try{var r=rZ();r&&(r.stderr||r).level>=2&&(e.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}e.inspectOpts=[].filter(function(e){return/^debug_/i.test(e)}).reduce(function(e,t){var r=t.substring(6).toLowerCase().replace(/_([a-z])/g,function(e,t){return t.toUpperCase()}),n={}[t];return n=!!/^(yes|on|true|enabled)$/i.test(n)||!/^(no|off|false|disabled)$/i.test(n)&&("null"===n?null:Number(n)),e[r]=n,e},{}),t.exports=r$()(e);var n=t.exports.formatters;n.o=function(e){return this.inspectOpts.colors=this.useColors,rc.inspect(e,this.inspectOpts).split("\n").map(function(e){return e.trim()}).join(" ")},n.O=function(e){return this.inspectOpts.colors=this.useColors,rc.inspect(e,this.inspectOpts)}}}),r1=rV({"node_modules/debug/src/index.js":function(e,t){void 0===eV||"renderer"===eV.type||!0===eV.browser||eV.__nwjs?t.exports=rY():t.exports=r0()}}),r2=rV({"node_modules/globals/globals.json":function(e,t){t.exports={amd:{define:!1,require:!1},applescript:{$:!1,Application:!1,Automation:!1,console:!1,delay:!1,Library:!1,ObjC:!1,ObjectSpecifier:!1,Path:!1,Progress:!1,Ref:!1},atomtest:{advanceClock:!1,atom:!1,fakeClearInterval:!1,fakeClearTimeout:!1,fakeSetInterval:!1,fakeSetTimeout:!1,resetTimeouts:!1,waitsForPromise:!1},browser:{AbortController:!1,AbortSignal:!1,AbsoluteOrientationSensor:!1,AbstractRange:!1,Accelerometer:!1,addEventListener:!1,ai:!1,AI:!1,AITextSession:!1,alert:!1,AnalyserNode:!1,Animation:!1,AnimationEffect:!1,AnimationEvent:!1,AnimationPlaybackEvent:!1,AnimationTimeline:!1,atob:!1,Attr:!1,Audio:!1,AudioBuffer:!1,AudioBufferSourceNode:!1,AudioContext:!1,AudioData:!1,AudioDecoder:!1,AudioDestinationNode:!1,AudioEncoder:!1,AudioListener:!1,AudioNode:!1,AudioParam:!1,AudioParamMap:!1,AudioProcessingEvent:!1,AudioScheduledSourceNode:!1,AudioSinkInfo:!1,AudioWorklet:!1,AudioWorkletGlobalScope:!1,AudioWorkletNode:!1,AudioWorkletProcessor:!1,AuthenticatorAssertionResponse:!1,AuthenticatorAttestationResponse:!1,AuthenticatorResponse:!1,BackgroundFetchManager:!1,BackgroundFetchRecord:!1,BackgroundFetchRegistration:!1,BarcodeDetector:!1,BarProp:!1,BaseAudioContext:!1,BatteryManager:!1,BeforeUnloadEvent:!1,BiquadFilterNode:!1,Blob:!1,BlobEvent:!1,Bluetooth:!1,BluetoothCharacteristicProperties:!1,BluetoothDevice:!1,BluetoothRemoteGATTCharacteristic:!1,BluetoothRemoteGATTDescriptor:!1,BluetoothRemoteGATTServer:!1,BluetoothRemoteGATTService:!1,BluetoothUUID:!1,blur:!1,BroadcastChannel:!1,BrowserCaptureMediaStreamTrack:!1,btoa:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,CacheStorage:!1,cancelAnimationFrame:!1,cancelIdleCallback:!1,CanvasCaptureMediaStream:!1,CanvasCaptureMediaStreamTrack:!1,CanvasGradient:!1,CanvasPattern:!1,CanvasRenderingContext2D:!1,CaptureController:!1,CaretPosition:!1,CDATASection:!1,ChannelMergerNode:!1,ChannelSplitterNode:!1,ChapterInformation:!1,CharacterBoundsUpdateEvent:!1,CharacterData:!1,clearInterval:!1,clearTimeout:!1,clientInformation:!1,Clipboard:!1,ClipboardEvent:!1,ClipboardItem:!1,close:!1,closed:!1,CloseEvent:!1,CloseWatcher:!1,Comment:!1,CompositionEvent:!1,CompressionStream:!1,confirm:!1,console:!1,ConstantSourceNode:!1,ContentVisibilityAutoStateChangeEvent:!1,ConvolverNode:!1,CookieChangeEvent:!1,CookieDeprecationLabel:!1,cookieStore:!1,CookieStore:!1,CookieStoreManager:!1,CountQueuingStrategy:!1,createImageBitmap:!1,Credential:!1,credentialless:!1,CredentialsContainer:!1,CropTarget:!1,crossOriginIsolated:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CSS:!1,CSSAnimation:!1,CSSConditionRule:!1,CSSContainerRule:!1,CSSCounterStyleRule:!1,CSSFontFaceRule:!1,CSSFontFeatureValuesRule:!1,CSSFontPaletteValuesRule:!1,CSSGroupingRule:!1,CSSImageValue:!1,CSSImportRule:!1,CSSKeyframeRule:!1,CSSKeyframesRule:!1,CSSKeywordValue:!1,CSSLayerBlockRule:!1,CSSLayerStatementRule:!1,CSSMarginRule:!1,CSSMathClamp:!1,CSSMathInvert:!1,CSSMathMax:!1,CSSMathMin:!1,CSSMathNegate:!1,CSSMathProduct:!1,CSSMathSum:!1,CSSMathValue:!1,CSSMatrixComponent:!1,CSSMediaRule:!1,CSSNamespaceRule:!1,CSSNestedDeclarations:!1,CSSNumericArray:!1,CSSNumericValue:!1,CSSPageDescriptors:!1,CSSPageRule:!1,CSSPerspective:!1,CSSPositionTryDescriptors:!1,CSSPositionTryRule:!1,CSSPositionValue:!1,CSSPropertyRule:!1,CSSRotate:!1,CSSRule:!1,CSSRuleList:!1,CSSScale:!1,CSSScopeRule:!1,CSSSkew:!1,CSSSkewX:!1,CSSSkewY:!1,CSSStartingStyleRule:!1,CSSStyleDeclaration:!1,CSSStyleRule:!1,CSSStyleSheet:!1,CSSStyleValue:!1,CSSSupportsRule:!1,CSSTransformComponent:!1,CSSTransformValue:!1,CSSTransition:!1,CSSTranslate:!1,CSSUnitValue:!1,CSSUnparsedValue:!1,CSSVariableReferenceValue:!1,CSSViewTransitionRule:!1,currentFrame:!1,currentTime:!1,CustomElementRegistry:!1,customElements:!1,CustomEvent:!1,CustomStateSet:!1,DataTransfer:!1,DataTransferItem:!1,DataTransferItemList:!1,DecompressionStream:!1,DelayNode:!1,DelegatedInkTrailPresenter:!1,DeviceMotionEvent:!1,DeviceMotionEventAcceleration:!1,DeviceMotionEventRotationRate:!1,DeviceOrientationEvent:!1,devicePixelRatio:!1,dispatchEvent:!1,document:!1,Document:!1,DocumentFragment:!1,documentPictureInPicture:!1,DocumentPictureInPicture:!1,DocumentPictureInPictureEvent:!1,DocumentTimeline:!1,DocumentType:!1,DOMError:!1,DOMException:!1,DOMImplementation:!1,DOMMatrix:!1,DOMMatrixReadOnly:!1,DOMParser:!1,DOMPoint:!1,DOMPointReadOnly:!1,DOMQuad:!1,DOMRect:!1,DOMRectList:!1,DOMRectReadOnly:!1,DOMStringList:!1,DOMStringMap:!1,DOMTokenList:!1,DragEvent:!1,DynamicsCompressorNode:!1,EditContext:!1,Element:!1,ElementInternals:!1,EncodedAudioChunk:!1,EncodedVideoChunk:!1,ErrorEvent:!1,event:!1,Event:!1,EventCounts:!1,EventSource:!1,EventTarget:!1,external:!1,External:!1,EyeDropper:!1,FeaturePolicy:!1,FederatedCredential:!1,fence:!1,Fence:!1,FencedFrameConfig:!1,fetch:!1,fetchLater:!1,FetchLaterResult:!1,File:!1,FileList:!1,FileReader:!1,FileSystem:!1,FileSystemDirectoryEntry:!1,FileSystemDirectoryHandle:!1,FileSystemDirectoryReader:!1,FileSystemEntry:!1,FileSystemFileEntry:!1,FileSystemFileHandle:!1,FileSystemHandle:!1,FileSystemWritableFileStream:!1,find:!1,Float16Array:!1,focus:!1,FocusEvent:!1,FontData:!1,FontFace:!1,FontFaceSet:!1,FontFaceSetLoadEvent:!1,FormData:!1,FormDataEvent:!1,FragmentDirective:!1,frameElement:!1,frames:!1,GainNode:!1,Gamepad:!1,GamepadAxisMoveEvent:!1,GamepadButton:!1,GamepadButtonEvent:!1,GamepadEvent:!1,GamepadHapticActuator:!1,GamepadPose:!1,Geolocation:!1,GeolocationCoordinates:!1,GeolocationPosition:!1,GeolocationPositionError:!1,getComputedStyle:!1,getScreenDetails:!1,getSelection:!1,GPU:!1,GPUAdapter:!1,GPUAdapterInfo:!1,GPUBindGroup:!1,GPUBindGroupLayout:!1,GPUBuffer:!1,GPUBufferUsage:!1,GPUCanvasContext:!1,GPUColorWrite:!1,GPUCommandBuffer:!1,GPUCommandEncoder:!1,GPUCompilationInfo:!1,GPUCompilationMessage:!1,GPUComputePassEncoder:!1,GPUComputePipeline:!1,GPUDevice:!1,GPUDeviceLostInfo:!1,GPUError:!1,GPUExternalTexture:!1,GPUInternalError:!1,GPUMapMode:!1,GPUOutOfMemoryError:!1,GPUPipelineError:!1,GPUPipelineLayout:!1,GPUQuerySet:!1,GPUQueue:!1,GPURenderBundle:!1,GPURenderBundleEncoder:!1,GPURenderPassEncoder:!1,GPURenderPipeline:!1,GPUSampler:!1,GPUShaderModule:!1,GPUShaderStage:!1,GPUSupportedFeatures:!1,GPUSupportedLimits:!1,GPUTexture:!1,GPUTextureUsage:!1,GPUTextureView:!1,GPUUncapturedErrorEvent:!1,GPUValidationError:!1,GravitySensor:!1,Gyroscope:!1,HashChangeEvent:!1,Headers:!1,HID:!1,HIDConnectionEvent:!1,HIDDevice:!1,HIDInputReportEvent:!1,Highlight:!1,HighlightRegistry:!1,history:!1,History:!1,HTMLAllCollection:!1,HTMLAnchorElement:!1,HTMLAreaElement:!1,HTMLAudioElement:!1,HTMLBaseElement:!1,HTMLBodyElement:!1,HTMLBRElement:!1,HTMLButtonElement:!1,HTMLCanvasElement:!1,HTMLCollection:!1,HTMLDataElement:!1,HTMLDataListElement:!1,HTMLDetailsElement:!1,HTMLDialogElement:!1,HTMLDirectoryElement:!1,HTMLDivElement:!1,HTMLDListElement:!1,HTMLDocument:!1,HTMLElement:!1,HTMLEmbedElement:!1,HTMLFencedFrameElement:!1,HTMLFieldSetElement:!1,HTMLFontElement:!1,HTMLFormControlsCollection:!1,HTMLFormElement:!1,HTMLFrameElement:!1,HTMLFrameSetElement:!1,HTMLHeadElement:!1,HTMLHeadingElement:!1,HTMLHRElement:!1,HTMLHtmlElement:!1,HTMLIFrameElement:!1,HTMLImageElement:!1,HTMLInputElement:!1,HTMLLabelElement:!1,HTMLLegendElement:!1,HTMLLIElement:!1,HTMLLinkElement:!1,HTMLMapElement:!1,HTMLMarqueeElement:!1,HTMLMediaElement:!1,HTMLMenuElement:!1,HTMLMetaElement:!1,HTMLMeterElement:!1,HTMLModElement:!1,HTMLObjectElement:!1,HTMLOListElement:!1,HTMLOptGroupElement:!1,HTMLOptionElement:!1,HTMLOptionsCollection:!1,HTMLOutputElement:!1,HTMLParagraphElement:!1,HTMLParamElement:!1,HTMLPictureElement:!1,HTMLPreElement:!1,HTMLProgressElement:!1,HTMLQuoteElement:!1,HTMLScriptElement:!1,HTMLSelectElement:!1,HTMLSlotElement:!1,HTMLSourceElement:!1,HTMLSpanElement:!1,HTMLStyleElement:!1,HTMLTableCaptionElement:!1,HTMLTableCellElement:!1,HTMLTableColElement:!1,HTMLTableElement:!1,HTMLTableRowElement:!1,HTMLTableSectionElement:!1,HTMLTemplateElement:!1,HTMLTextAreaElement:!1,HTMLTimeElement:!1,HTMLTitleElement:!1,HTMLTrackElement:!1,HTMLUListElement:!1,HTMLUnknownElement:!1,HTMLVideoElement:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,IdentityCredential:!1,IdentityCredentialError:!1,IdentityProvider:!1,IdleDeadline:!1,IdleDetector:!1,IIRFilterNode:!1,Image:!1,ImageBitmap:!1,ImageBitmapRenderingContext:!1,ImageCapture:!1,ImageData:!1,ImageDecoder:!1,ImageTrack:!1,ImageTrackList:!1,indexedDB:!1,Ink:!1,innerHeight:!1,innerWidth:!1,InputDeviceCapabilities:!1,InputDeviceInfo:!1,InputEvent:!1,IntersectionObserver:!1,IntersectionObserverEntry:!1,isSecureContext:!1,Keyboard:!1,KeyboardEvent:!1,KeyboardLayoutMap:!1,KeyframeEffect:!1,LargestContentfulPaint:!1,LaunchParams:!1,launchQueue:!1,LaunchQueue:!1,LayoutShift:!1,LayoutShiftAttribution:!1,length:!1,LinearAccelerationSensor:!1,localStorage:!1,location:!0,Location:!1,locationbar:!1,Lock:!1,LockManager:!1,matchMedia:!1,MathMLElement:!1,MediaCapabilities:!1,MediaCapabilitiesInfo:!1,MediaDeviceInfo:!1,MediaDevices:!1,MediaElementAudioSourceNode:!1,MediaEncryptedEvent:!1,MediaError:!1,MediaKeyError:!1,MediaKeyMessageEvent:!1,MediaKeys:!1,MediaKeySession:!1,MediaKeyStatusMap:!1,MediaKeySystemAccess:!1,MediaList:!1,MediaMetadata:!1,MediaQueryList:!1,MediaQueryListEvent:!1,MediaRecorder:!1,MediaRecorderErrorEvent:!1,MediaSession:!1,MediaSource:!1,MediaSourceHandle:!1,MediaStream:!1,MediaStreamAudioDestinationNode:!1,MediaStreamAudioSourceNode:!1,MediaStreamEvent:!1,MediaStreamTrack:!1,MediaStreamTrackAudioSourceNode:!1,MediaStreamTrackAudioStats:!1,MediaStreamTrackEvent:!1,MediaStreamTrackGenerator:!1,MediaStreamTrackProcessor:!1,MediaStreamTrackVideoStats:!1,menubar:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,MIDIAccess:!1,MIDIConnectionEvent:!1,MIDIInput:!1,MIDIInputMap:!1,MIDIMessageEvent:!1,MIDIOutput:!1,MIDIOutputMap:!1,MIDIPort:!1,MimeType:!1,MimeTypeArray:!1,model:!1,ModelGenericSession:!1,ModelManager:!1,MouseEvent:!1,moveBy:!1,moveTo:!1,MutationEvent:!1,MutationObserver:!1,MutationRecord:!1,name:!1,NamedNodeMap:!1,NavigateEvent:!1,navigation:!1,Navigation:!1,NavigationActivation:!1,NavigationCurrentEntryChangeEvent:!1,NavigationDestination:!1,NavigationHistoryEntry:!1,NavigationPreloadManager:!1,NavigationTransition:!1,navigator:!1,Navigator:!1,NavigatorLogin:!1,NavigatorManagedData:!1,NavigatorUAData:!1,NetworkInformation:!1,Node:!1,NodeFilter:!1,NodeIterator:!1,NodeList:!1,Notification:!1,NotifyPaintEvent:!1,NotRestoredReasonDetails:!1,NotRestoredReasons:!1,OfflineAudioCompletionEvent:!1,OfflineAudioContext:!1,offscreenBuffering:!1,OffscreenCanvas:!1,OffscreenCanvasRenderingContext2D:!1,onabort:!0,onafterprint:!0,onanimationcancel:!0,onanimationend:!0,onanimationiteration:!0,onanimationstart:!0,onappinstalled:!0,onauxclick:!0,onbeforeinput:!0,onbeforeinstallprompt:!0,onbeforematch:!0,onbeforeprint:!0,onbeforetoggle:!0,onbeforeunload:!0,onbeforexrselect:!0,onblur:!0,oncancel:!0,oncanplay:!0,oncanplaythrough:!0,onchange:!0,onclick:!0,onclose:!0,oncontentvisibilityautostatechange:!0,oncontextlost:!0,oncontextmenu:!0,oncontextrestored:!0,oncopy:!0,oncuechange:!0,oncut:!0,ondblclick:!0,ondevicemotion:!0,ondeviceorientation:!0,ondeviceorientationabsolute:!0,ondrag:!0,ondragend:!0,ondragenter:!0,ondragleave:!0,ondragover:!0,ondragstart:!0,ondrop:!0,ondurationchange:!0,onemptied:!0,onended:!0,onerror:!0,onfocus:!0,onformdata:!0,ongamepadconnected:!0,ongamepaddisconnected:!0,ongotpointercapture:!0,onhashchange:!0,oninput:!0,oninvalid:!0,onkeydown:!0,onkeypress:!0,onkeyup:!0,onlanguagechange:!0,onload:!0,onloadeddata:!0,onloadedmetadata:!0,onloadstart:!0,onlostpointercapture:!0,onmessage:!0,onmessageerror:!0,onmousedown:!0,onmouseenter:!0,onmouseleave:!0,onmousemove:!0,onmouseout:!0,onmouseover:!0,onmouseup:!0,onmousewheel:!0,onoffline:!0,ononline:!0,onpagehide:!0,onpagereveal:!0,onpageshow:!0,onpageswap:!0,onpaste:!0,onpause:!0,onplay:!0,onplaying:!0,onpointercancel:!0,onpointerdown:!0,onpointerenter:!0,onpointerleave:!0,onpointermove:!0,onpointerout:!0,onpointerover:!0,onpointerrawupdate:!0,onpointerup:!0,onpopstate:!0,onprogress:!0,onratechange:!0,onrejectionhandled:!0,onreset:!0,onresize:!0,onscroll:!0,onscrollend:!0,onscrollsnapchange:!0,onscrollsnapchanging:!0,onsearch:!0,onsecuritypolicyviolation:!0,onseeked:!0,onseeking:!0,onselect:!0,onselectionchange:!0,onselectstart:!0,onslotchange:!0,onstalled:!0,onstorage:!0,onsubmit:!0,onsuspend:!0,ontimeupdate:!0,ontoggle:!0,ontransitioncancel:!0,ontransitionend:!0,ontransitionrun:!0,ontransitionstart:!0,onunhandledrejection:!0,onunload:!0,onvolumechange:!0,onwaiting:!0,onwheel:!0,open:!1,opener:!1,Option:!1,OrientationSensor:!1,origin:!1,originAgentCluster:!1,OscillatorNode:!1,OTPCredential:!1,outerHeight:!1,outerWidth:!1,OverconstrainedError:!1,PageRevealEvent:!1,PageSwapEvent:!1,PageTransitionEvent:!1,pageXOffset:!1,pageYOffset:!1,PannerNode:!1,parent:!1,PasswordCredential:!1,Path2D:!1,PaymentAddress:!1,PaymentManager:!1,PaymentMethodChangeEvent:!1,PaymentRequest:!1,PaymentRequestUpdateEvent:!1,PaymentResponse:!1,performance:!1,Performance:!1,PerformanceElementTiming:!1,PerformanceEntry:!1,PerformanceEventTiming:!1,PerformanceLongAnimationFrameTiming:!1,PerformanceLongTaskTiming:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceNavigationTiming:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformancePaintTiming:!1,PerformanceResourceTiming:!1,PerformanceScriptTiming:!1,PerformanceServerTiming:!1,PerformanceTiming:!1,PeriodicSyncManager:!1,PeriodicWave:!1,Permissions:!1,PermissionStatus:!1,PERSISTENT:!1,personalbar:!1,PictureInPictureEvent:!1,PictureInPictureWindow:!1,Plugin:!1,PluginArray:!1,PointerEvent:!1,PopStateEvent:!1,postMessage:!1,Presentation:!1,PresentationAvailability:!1,PresentationConnection:!1,PresentationConnectionAvailableEvent:!1,PresentationConnectionCloseEvent:!1,PresentationConnectionList:!1,PresentationReceiver:!1,PresentationRequest:!1,PressureObserver:!1,PressureRecord:!1,print:!1,ProcessingInstruction:!1,Profiler:!1,ProgressEvent:!1,PromiseRejectionEvent:!1,prompt:!1,ProtectedAudience:!1,PublicKeyCredential:!1,PushManager:!1,PushSubscription:!1,PushSubscriptionOptions:!1,queryLocalFonts:!1,queueMicrotask:!1,RadioNodeList:!1,Range:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,registerProcessor:!1,RelativeOrientationSensor:!1,RemotePlayback:!1,removeEventListener:!1,reportError:!1,ReportingObserver:!1,Request:!1,requestAnimationFrame:!1,requestIdleCallback:!1,resizeBy:!1,ResizeObserver:!1,ResizeObserverEntry:!1,ResizeObserverSize:!1,resizeTo:!1,Response:!1,RTCCertificate:!1,RTCDataChannel:!1,RTCDataChannelEvent:!1,RTCDtlsTransport:!1,RTCDTMFSender:!1,RTCDTMFToneChangeEvent:!1,RTCEncodedAudioFrame:!1,RTCEncodedVideoFrame:!1,RTCError:!1,RTCErrorEvent:!1,RTCIceCandidate:!1,RTCIceTransport:!1,RTCPeerConnection:!1,RTCPeerConnectionIceErrorEvent:!1,RTCPeerConnectionIceEvent:!1,RTCRtpReceiver:!1,RTCRtpScriptTransform:!1,RTCRtpSender:!1,RTCRtpTransceiver:!1,RTCSctpTransport:!1,RTCSessionDescription:!1,RTCStatsReport:!1,RTCTrackEvent:!1,sampleRate:!1,scheduler:!1,Scheduler:!1,Scheduling:!1,screen:!1,Screen:!1,ScreenDetailed:!1,ScreenDetails:!1,screenLeft:!1,ScreenOrientation:!1,screenTop:!1,screenX:!1,screenY:!1,ScriptProcessorNode:!1,scroll:!1,scrollbars:!1,scrollBy:!1,ScrollTimeline:!1,scrollTo:!1,scrollX:!1,scrollY:!1,SecurityPolicyViolationEvent:!1,Selection:!1,self:!1,Sensor:!1,SensorErrorEvent:!1,Serial:!1,SerialPort:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerRegistration:!1,sessionStorage:!1,setInterval:!1,setTimeout:!1,ShadowRoot:!1,sharedStorage:!1,SharedStorage:!1,SharedStorageWorklet:!1,SharedWorker:!1,showDirectoryPicker:!1,showOpenFilePicker:!1,showSaveFilePicker:!1,SnapEvent:!1,SourceBuffer:!1,SourceBufferList:!1,speechSynthesis:!1,SpeechSynthesis:!1,SpeechSynthesisErrorEvent:!1,SpeechSynthesisEvent:!1,SpeechSynthesisUtterance:!1,SpeechSynthesisVoice:!1,StaticRange:!1,status:!1,statusbar:!1,StereoPannerNode:!1,stop:!1,Storage:!1,StorageBucket:!1,StorageBucketManager:!1,StorageEvent:!1,StorageManager:!1,structuredClone:!1,styleMedia:!1,StylePropertyMap:!1,StylePropertyMapReadOnly:!1,StyleSheet:!1,StyleSheetList:!1,SubmitEvent:!1,SubtleCrypto:!1,SVGAElement:!1,SVGAngle:!1,SVGAnimatedAngle:!1,SVGAnimatedBoolean:!1,SVGAnimatedEnumeration:!1,SVGAnimatedInteger:!1,SVGAnimatedLength:!1,SVGAnimatedLengthList:!1,SVGAnimatedNumber:!1,SVGAnimatedNumberList:!1,SVGAnimatedPreserveAspectRatio:!1,SVGAnimatedRect:!1,SVGAnimatedString:!1,SVGAnimatedTransformList:!1,SVGAnimateElement:!1,SVGAnimateMotionElement:!1,SVGAnimateTransformElement:!1,SVGAnimationElement:!1,SVGCircleElement:!1,SVGClipPathElement:!1,SVGComponentTransferFunctionElement:!1,SVGDefsElement:!1,SVGDescElement:!1,SVGElement:!1,SVGEllipseElement:!1,SVGFEBlendElement:!1,SVGFEColorMatrixElement:!1,SVGFEComponentTransferElement:!1,SVGFECompositeElement:!1,SVGFEConvolveMatrixElement:!1,SVGFEDiffuseLightingElement:!1,SVGFEDisplacementMapElement:!1,SVGFEDistantLightElement:!1,SVGFEDropShadowElement:!1,SVGFEFloodElement:!1,SVGFEFuncAElement:!1,SVGFEFuncBElement:!1,SVGFEFuncGElement:!1,SVGFEFuncRElement:!1,SVGFEGaussianBlurElement:!1,SVGFEImageElement:!1,SVGFEMergeElement:!1,SVGFEMergeNodeElement:!1,SVGFEMorphologyElement:!1,SVGFEOffsetElement:!1,SVGFEPointLightElement:!1,SVGFESpecularLightingElement:!1,SVGFESpotLightElement:!1,SVGFETileElement:!1,SVGFETurbulenceElement:!1,SVGFilterElement:!1,SVGForeignObjectElement:!1,SVGGElement:!1,SVGGeometryElement:!1,SVGGradientElement:!1,SVGGraphicsElement:!1,SVGImageElement:!1,SVGLength:!1,SVGLengthList:!1,SVGLinearGradientElement:!1,SVGLineElement:!1,SVGMarkerElement:!1,SVGMaskElement:!1,SVGMatrix:!1,SVGMetadataElement:!1,SVGMPathElement:!1,SVGNumber:!1,SVGNumberList:!1,SVGPathElement:!1,SVGPatternElement:!1,SVGPoint:!1,SVGPointList:!1,SVGPolygonElement:!1,SVGPolylineElement:!1,SVGPreserveAspectRatio:!1,SVGRadialGradientElement:!1,SVGRect:!1,SVGRectElement:!1,SVGScriptElement:!1,SVGSetElement:!1,SVGStopElement:!1,SVGStringList:!1,SVGStyleElement:!1,SVGSVGElement:!1,SVGSwitchElement:!1,SVGSymbolElement:!1,SVGTextContentElement:!1,SVGTextElement:!1,SVGTextPathElement:!1,SVGTextPositioningElement:!1,SVGTitleElement:!1,SVGTransform:!1,SVGTransformList:!1,SVGTSpanElement:!1,SVGUnitTypes:!1,SVGUseElement:!1,SVGViewElement:!1,SyncManager:!1,TaskAttributionTiming:!1,TaskController:!1,TaskPriorityChangeEvent:!1,TaskSignal:!1,TEMPORARY:!1,Text:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TextEvent:!1,TextFormat:!1,TextFormatUpdateEvent:!1,TextMetrics:!1,TextTrack:!1,TextTrackCue:!1,TextTrackCueList:!1,TextTrackList:!1,TextUpdateEvent:!1,TimeEvent:!1,TimeRanges:!1,ToggleEvent:!1,toolbar:!1,top:!1,Touch:!1,TouchEvent:!1,TouchList:!1,TrackEvent:!1,TransformStream:!1,TransformStreamDefaultController:!1,TransitionEvent:!1,TreeWalker:!1,TrustedHTML:!1,TrustedScript:!1,TrustedScriptURL:!1,TrustedTypePolicy:!1,TrustedTypePolicyFactory:!1,trustedTypes:!1,UIEvent:!1,URL:!1,URLPattern:!1,URLSearchParams:!1,USB:!1,USBAlternateInterface:!1,USBConfiguration:!1,USBConnectionEvent:!1,USBDevice:!1,USBEndpoint:!1,USBInterface:!1,USBInTransferResult:!1,USBIsochronousInTransferPacket:!1,USBIsochronousInTransferResult:!1,USBIsochronousOutTransferPacket:!1,USBIsochronousOutTransferResult:!1,USBOutTransferResult:!1,UserActivation:!1,ValidityState:!1,VideoColorSpace:!1,VideoDecoder:!1,VideoEncoder:!1,VideoFrame:!1,VideoPlaybackQuality:!1,ViewTimeline:!1,ViewTransition:!1,ViewTransitionTypeSet:!1,VirtualKeyboard:!1,VirtualKeyboardGeometryChangeEvent:!1,VisibilityStateEntry:!1,visualViewport:!1,VisualViewport:!1,VTTCue:!1,VTTRegion:!1,WakeLock:!1,WakeLockSentinel:!1,WaveShaperNode:!1,WebAssembly:!1,WebGL2RenderingContext:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLObject:!1,WebGLProgram:!1,WebGLQuery:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLSampler:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLSync:!1,WebGLTexture:!1,WebGLTransformFeedback:!1,WebGLUniformLocation:!1,WebGLVertexArrayObject:!1,WebSocket:!1,WebSocketError:!1,WebSocketStream:!1,WebTransport:!1,WebTransportBidirectionalStream:!1,WebTransportDatagramDuplexStream:!1,WebTransportError:!1,WebTransportReceiveStream:!1,WebTransportSendStream:!1,WGSLLanguageFeatures:!1,WheelEvent:!1,window:!1,Window:!1,WindowControlsOverlay:!1,WindowControlsOverlayGeometryChangeEvent:!1,Worker:!1,Worklet:!1,WorkletGlobalScope:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1,XMLDocument:!1,XMLHttpRequest:!1,XMLHttpRequestEventTarget:!1,XMLHttpRequestUpload:!1,XMLSerializer:!1,XPathEvaluator:!1,XPathExpression:!1,XPathResult:!1,XRAnchor:!1,XRAnchorSet:!1,XRBoundedReferenceSpace:!1,XRCamera:!1,XRCPUDepthInformation:!1,XRDepthInformation:!1,XRDOMOverlayState:!1,XRFrame:!1,XRHand:!1,XRHitTestResult:!1,XRHitTestSource:!1,XRInputSource:!1,XRInputSourceArray:!1,XRInputSourceEvent:!1,XRInputSourcesChangeEvent:!1,XRJointPose:!1,XRJointSpace:!1,XRLayer:!1,XRLightEstimate:!1,XRLightProbe:!1,XRPose:!1,XRRay:!1,XRReferenceSpace:!1,XRReferenceSpaceEvent:!1,XRRenderState:!1,XRRigidTransform:!1,XRSession:!1,XRSessionEvent:!1,XRSpace:!1,XRSystem:!1,XRTransientInputHitTestResult:!1,XRTransientInputHitTestSource:!1,XRView:!1,XRViewerPose:!1,XRViewport:!1,XRWebGLBinding:!1,XRWebGLDepthInformation:!1,XRWebGLLayer:!1,XSLTProcessor:!1},builtin:{AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,Iterator:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},chai:{assert:!0,expect:!0,should:!0},commonjs:{exports:!0,global:!1,module:!1,require:!1},couch:{emit:!1,exports:!1,getRow:!1,log:!1,module:!1,provides:!1,require:!1,respond:!1,send:!1,start:!1,sum:!1},devtools:{$:!1,$_:!1,$$:!1,$0:!1,$1:!1,$2:!1,$3:!1,$4:!1,$x:!1,chrome:!1,clear:!1,copy:!1,debug:!1,dir:!1,dirxml:!1,getEventListeners:!1,inspect:!1,keys:!1,monitor:!1,monitorEvents:!1,profile:!1,profileEnd:!1,queryObjects:!1,table:!1,undebug:!1,unmonitor:!1,unmonitorEvents:!1,values:!1},embertest:{andThen:!1,click:!1,currentPath:!1,currentRouteName:!1,currentURL:!1,fillIn:!1,find:!1,findAll:!1,findWithAssert:!1,keyEvent:!1,pauseTest:!1,resumeTest:!1,triggerEvent:!1,visit:!1,wait:!1},es2015:{Array:!1,ArrayBuffer:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakSet:!1},es2016:{Array:!1,ArrayBuffer:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakSet:!1},es2017:{Array:!1,ArrayBuffer:!1,Atomics:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakSet:!1},es2018:{Array:!1,ArrayBuffer:!1,Atomics:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakSet:!1},es2019:{Array:!1,ArrayBuffer:!1,Atomics:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakSet:!1},es2020:{Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakSet:!1},es2021:{AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},es2022:{AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},es2023:{AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},es2024:{AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},es2025:{AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,Iterator:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},es3:{Array:!1,Boolean:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Function:!1,Infinity:!1,isFinite:!1,isNaN:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,TypeError:!1,undefined:!1,unescape:!1,URIError:!1},es5:{Array:!1,Boolean:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Function:!1,Infinity:!1,isFinite:!1,isNaN:!1,JSON:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,TypeError:!1,undefined:!1,unescape:!1,URIError:!1},greasemonkey:{cloneInto:!1,createObjectIn:!1,exportFunction:!1,GM:!1,GM_addElement:!1,GM_addStyle:!1,GM_addValueChangeListener:!1,GM_deleteValue:!1,GM_download:!1,GM_getResourceText:!1,GM_getResourceURL:!1,GM_getTab:!1,GM_getTabs:!1,GM_getValue:!1,GM_info:!1,GM_listValues:!1,GM_log:!1,GM_notification:!1,GM_openInTab:!1,GM_registerMenuCommand:!1,GM_removeValueChangeListener:!1,GM_saveTab:!1,GM_setClipboard:!1,GM_setValue:!1,GM_unregisterMenuCommand:!1,GM_xmlhttpRequest:!1,unsafeWindow:!1},jasmine:{afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,expectAsync:!1,fail:!1,fdescribe:!1,fit:!1,it:!1,jasmine:!1,pending:!1,runs:!1,spyOn:!1,spyOnAllFunctions:!1,spyOnProperty:!1,waits:!1,waitsFor:!1,xdescribe:!1,xit:!1},jest:{afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,fit:!1,it:!1,jest:!1,test:!1,xdescribe:!1,xit:!1,xtest:!1},jquery:{$:!1,jQuery:!1},meteor:{$:!1,Accounts:!1,AccountsClient:!1,AccountsCommon:!1,AccountsServer:!1,App:!1,Assets:!1,Blaze:!1,check:!1,Cordova:!1,DDP:!1,DDPRateLimiter:!1,DDPServer:!1,Deps:!1,EJSON:!1,Email:!1,HTTP:!1,Log:!1,Match:!1,Meteor:!1,Mongo:!1,MongoInternals:!1,Npm:!1,Package:!1,Plugin:!1,process:!1,Random:!1,ReactiveDict:!1,ReactiveVar:!1,Router:!1,ServiceConfiguration:!1,Session:!1,share:!1,Spacebars:!1,Template:!1,Tinytest:!1,Tracker:!1,UI:!1,Utils:!1,WebApp:!1,WebAppInternals:!1},mocha:{after:!1,afterEach:!1,before:!1,beforeEach:!1,context:!1,describe:!1,it:!1,mocha:!1,run:!1,setup:!1,specify:!1,suite:!1,suiteSetup:!1,suiteTeardown:!1,teardown:!1,test:!1,xcontext:!1,xdescribe:!1,xit:!1,xspecify:!1},mongo:{_isWindows:!1,_rand:!1,BulkWriteResult:!1,cat:!1,cd:!1,connect:!1,db:!1,getHostName:!1,getMemInfo:!1,hostname:!1,ISODate:!1,listFiles:!1,load:!1,ls:!1,md5sumFile:!1,mkdir:!1,Mongo:!1,NumberInt:!1,NumberLong:!1,ObjectId:!1,PlanCache:!1,print:!1,printjson:!1,pwd:!1,quit:!1,removeFile:!1,rs:!1,sh:!1,UUID:!1,version:!1,WriteResult:!1},nashorn:{__DIR__:!1,__FILE__:!1,__LINE__:!1,com:!1,edu:!1,exit:!1,java:!1,Java:!1,javafx:!1,JavaImporter:!1,javax:!1,JSAdapter:!1,load:!1,loadWithNewGlobal:!1,org:!1,Packages:!1,print:!1,quit:!1},node:{__dirname:!1,__filename:!1,AbortController:!1,AbortSignal:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Buffer:!1,ByteLengthQueuingStrategy:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,CloseEvent:!1,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,DOMException:!1,Event:!1,EventTarget:!1,exports:!0,fetch:!1,File:!1,FormData:!1,global:!1,Headers:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,module:!1,navigator:!1,Navigator:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,process:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,Request:!1,require:!1,Response:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,structuredClone:!1,SubtleCrypto:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLSearchParams:!1,WebAssembly:!1,WebSocket:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1},nodeBuiltin:{AbortController:!1,AbortSignal:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Buffer:!1,ByteLengthQueuingStrategy:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,CloseEvent:!1,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,DOMException:!1,Event:!1,EventTarget:!1,fetch:!1,File:!1,FormData:!1,global:!1,Headers:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,navigator:!1,Navigator:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,process:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,Request:!1,Response:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,structuredClone:!1,SubtleCrypto:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLSearchParams:!1,WebAssembly:!1,WebSocket:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1},phantomjs:{console:!0,exports:!0,phantom:!0,require:!0,WebPage:!0},prototypejs:{$:!1,$$:!1,$A:!1,$break:!1,$continue:!1,$F:!1,$H:!1,$R:!1,$w:!1,Abstract:!1,Ajax:!1,Autocompleter:!1,Builder:!1,Class:!1,Control:!1,Draggable:!1,Draggables:!1,Droppables:!1,Effect:!1,Element:!1,Enumerable:!1,Event:!1,Field:!1,Form:!1,Hash:!1,Insertion:!1,ObjectRange:!1,PeriodicalExecuter:!1,Position:!1,Prototype:!1,Scriptaculous:!1,Selector:!1,Sortable:!1,SortableObserver:!1,Sound:!1,Template:!1,Toggle:!1,Try:!1},protractor:{$:!1,$$:!1,browser:!1,by:!1,By:!1,DartObject:!1,element:!1,protractor:!1},qunit:{asyncTest:!1,deepEqual:!1,equal:!1,expect:!1,module:!1,notDeepEqual:!1,notEqual:!1,notOk:!1,notPropEqual:!1,notStrictEqual:!1,ok:!1,propEqual:!1,QUnit:!1,raises:!1,start:!1,stop:!1,strictEqual:!1,test:!1,throws:!1},rhino:{defineClass:!1,deserialize:!1,gc:!1,help:!1,importClass:!1,importPackage:!1,java:!1,load:!1,loadClass:!1,Packages:!1,print:!1,quit:!1,readFile:!1,readUrl:!1,runCommand:!1,seal:!1,serialize:!1,spawn:!1,sync:!1,toint32:!1,version:!1},serviceworker:{addEventListener:!1,applicationCache:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,CacheStorage:!1,clearInterval:!1,clearTimeout:!1,Client:!1,clients:!1,Clients:!1,close:!0,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,ErrorEvent:!1,Event:!1,ExtendableEvent:!1,ExtendableMessageEvent:!1,fetch:!1,FetchEvent:!1,File:!1,FileReaderSync:!1,FormData:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageData:!1,importScripts:!1,indexedDB:!1,location:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,name:!1,navigator:!1,Notification:!1,onclose:!0,onconnect:!0,onerror:!0,onfetch:!0,oninstall:!0,onlanguagechange:!0,onmessage:!0,onmessageerror:!0,onnotificationclick:!0,onnotificationclose:!0,onoffline:!0,ononline:!0,onpush:!0,onpushsubscriptionchange:!0,onrejectionhandled:!0,onsync:!0,onunhandledrejection:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,postMessage:!0,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,registration:!1,removeEventListener:!1,Request:!1,Response:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerGlobalScope:!1,ServiceWorkerMessageEvent:!1,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,skipWaiting:!1,SubtleCrypto:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLSearchParams:!1,WebAssembly:!1,WebSocket:!1,WindowClient:!1,Worker:!1,WorkerGlobalScope:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1,XMLHttpRequest:!1},"shared-node-browser":{AbortController:!1,AbortSignal:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,ByteLengthQueuingStrategy:!1,clearInterval:!1,clearTimeout:!1,CloseEvent:!1,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,DOMException:!1,Event:!1,EventTarget:!1,fetch:!1,File:!1,FormData:!1,Headers:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,navigator:!1,Navigator:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,Request:!1,Response:!1,setInterval:!1,setTimeout:!1,structuredClone:!1,SubtleCrypto:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLSearchParams:!1,WebAssembly:!1,WebSocket:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1},shelljs:{cat:!1,cd:!1,chmod:!1,config:!1,cp:!1,dirs:!1,echo:!1,env:!1,error:!1,exec:!1,exit:!1,find:!1,grep:!1,head:!1,ln:!1,ls:!1,mkdir:!1,mv:!1,popd:!1,pushd:!1,pwd:!1,rm:!1,sed:!1,set:!1,ShellString:!1,sort:!1,tail:!1,tempdir:!1,test:!1,touch:!1,uniq:!1,which:!1},webextensions:{browser:!1,chrome:!1,opr:!1},worker:{AbortController:!1,AbortSignal:!1,addEventListener:!1,ai:!1,atob:!1,AudioData:!1,AudioDecoder:!1,AudioEncoder:!1,BackgroundFetchManager:!1,BackgroundFetchRecord:!1,BackgroundFetchRegistration:!1,BarcodeDetector:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,CacheStorage:!1,cancelAnimationFrame:!1,CanvasGradient:!1,CanvasPattern:!1,clearInterval:!1,clearTimeout:!1,close:!1,CloseEvent:!1,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,createImageBitmap:!1,CropTarget:!1,crossOriginIsolated:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CSSSkewX:!1,CSSSkewY:!1,CustomEvent:!1,DecompressionStream:!1,DedicatedWorkerGlobalScope:!1,dispatchEvent:!1,DOMException:!1,DOMMatrix:!1,DOMMatrixReadOnly:!1,DOMPoint:!1,DOMPointReadOnly:!1,DOMQuad:!1,DOMRect:!1,DOMRectReadOnly:!1,DOMStringList:!1,EncodedAudioChunk:!1,EncodedVideoChunk:!1,ErrorEvent:!1,Event:!1,EventSource:!1,EventTarget:!1,fetch:!1,File:!1,FileList:!1,FileReader:!1,FileReaderSync:!1,FileSystemDirectoryHandle:!1,FileSystemFileHandle:!1,FileSystemHandle:!1,FileSystemSyncAccessHandle:!1,FileSystemWritableFileStream:!1,FontFace:!1,fonts:!1,FormData:!1,GPU:!1,GPUAdapter:!1,GPUAdapterInfo:!1,GPUBindGroup:!1,GPUBindGroupLayout:!1,GPUBuffer:!1,GPUBufferUsage:!1,GPUCanvasContext:!1,GPUColorWrite:!1,GPUCommandBuffer:!1,GPUCommandEncoder:!1,GPUCompilationInfo:!1,GPUCompilationMessage:!1,GPUComputePassEncoder:!1,GPUComputePipeline:!1,GPUDevice:!1,GPUDeviceLostInfo:!1,GPUError:!1,GPUExternalTexture:!1,GPUInternalError:!1,GPUMapMode:!1,GPUOutOfMemoryError:!1,GPUPipelineError:!1,GPUPipelineLayout:!1,GPUQuerySet:!1,GPUQueue:!1,GPURenderBundle:!1,GPURenderBundleEncoder:!1,GPURenderPassEncoder:!1,GPURenderPipeline:!1,GPUSampler:!1,GPUShaderModule:!1,GPUShaderStage:!1,GPUSupportedFeatures:!1,GPUSupportedLimits:!1,GPUTexture:!1,GPUTextureUsage:!1,GPUTextureView:!1,GPUUncapturedErrorEvent:!1,GPUValidationError:!1,Headers:!1,HID:!1,HIDConnectionEvent:!1,HIDDevice:!1,HIDInputReportEvent:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,IdleDetector:!1,ImageBitmap:!1,ImageBitmapRenderingContext:!1,ImageData:!1,ImageDecoder:!1,ImageTrack:!1,ImageTrackList:!1,importScripts:!1,indexedDB:!1,isSecureContext:!1,location:!1,Lock:!1,LockManager:!1,MediaCapabilities:!1,MediaSource:!1,MediaSourceHandle:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,name:!1,NavigationPreloadManager:!1,navigator:!1,NavigatorUAData:!1,NetworkInformation:!1,Notification:!1,OffscreenCanvas:!1,OffscreenCanvasRenderingContext2D:!1,onerror:!0,onlanguagechange:!0,onmessage:!0,onmessageerror:!0,onrejectionhandled:!0,onunhandledrejection:!0,origin:!1,Path2D:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,PerformanceServerTiming:!1,PeriodicSyncManager:!1,Permissions:!1,PermissionStatus:!1,PERSISTENT:!1,postMessage:!1,PressureObserver:!1,PressureRecord:!1,ProgressEvent:!1,PromiseRejectionEvent:!1,PushManager:!1,PushSubscription:!1,PushSubscriptionOptions:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,removeEventListener:!1,reportError:!1,ReportingObserver:!1,Request:!1,requestAnimationFrame:!1,Response:!1,RTCDataChannel:!1,RTCEncodedAudioFrame:!1,RTCEncodedVideoFrame:!1,scheduler:!1,Scheduler:!1,SecurityPolicyViolationEvent:!1,self:!1,Serial:!1,SerialPort:!1,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,SourceBuffer:!1,SourceBufferList:!1,StorageBucket:!1,StorageBucketManager:!1,StorageManager:!1,structuredClone:!1,SubtleCrypto:!1,SyncManager:!1,TaskController:!1,TaskPriorityChangeEvent:!1,TaskSignal:!1,TEMPORARY:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TextMetrics:!1,TransformStream:!1,TransformStreamDefaultController:!1,TrustedHTML:!1,TrustedScript:!1,TrustedScriptURL:!1,TrustedTypePolicy:!1,TrustedTypePolicyFactory:!1,trustedTypes:!1,URL:!1,URLPattern:!1,URLSearchParams:!1,USB:!1,USBAlternateInterface:!1,USBConfiguration:!1,USBConnectionEvent:!1,USBDevice:!1,USBEndpoint:!1,USBInterface:!1,USBInTransferResult:!1,USBIsochronousInTransferPacket:!1,USBIsochronousInTransferResult:!1,USBIsochronousOutTransferPacket:!1,USBIsochronousOutTransferResult:!1,USBOutTransferResult:!1,UserActivation:!1,VideoColorSpace:!1,VideoDecoder:!1,VideoEncoder:!1,VideoFrame:!1,WebAssembly:!1,WebGL2RenderingContext:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLObject:!1,WebGLProgram:!1,WebGLQuery:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLSampler:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLSync:!1,WebGLTexture:!1,WebGLTransformFeedback:!1,WebGLUniformLocation:!1,WebGLVertexArrayObject:!1,webkitRequestFileSystem:!1,webkitRequestFileSystemSync:!1,webkitResolveLocalFileSystemSyncURL:!1,webkitResolveLocalFileSystemURL:!1,WebSocket:!1,WebSocketError:!1,WebSocketStream:!1,WebTransport:!1,WebTransportBidirectionalStream:!1,WebTransportDatagramDuplexStream:!1,WebTransportError:!1,WGSLLanguageFeatures:!1,Worker:!1,WorkerGlobalScope:!1,WorkerLocation:!1,WorkerNavigator:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1,XMLHttpRequest:!1,XMLHttpRequestEventTarget:!1,XMLHttpRequestUpload:!1},wsh:{ActiveXObject:!1,CollectGarbage:!1,Debug:!1,Enumerator:!1,GetObject:!1,RuntimeObject:!1,ScriptEngine:!1,ScriptEngineBuildVersion:!1,ScriptEngineMajorVersion:!1,ScriptEngineMinorVersion:!1,VBArray:!1,WScript:!1,WSH:!1},yui:{YAHOO:!1,YAHOO_config:!1,YUI:!1,YUI_config:!1}}}}),r3=rV({"node_modules/globals/index.js":function(e,t){t.exports=r2()}}),r4={};rW(r4,{codeFrameColumns:function(){return TD},generate:function(){return P4},parse:function(){return Tv},parseExpression:function(){return Tg},template:function(){return Eh},tokTypes:function(){return Tb},traverse:function(){return Nh},types:function(){return r8}});var r5=rq(rF({},"__esModule",{value:!0}),r4),r8={};rW(r8,{ACCESSOR_TYPES:function(){return bW},ALIAS_KEYS:function(){return uP},ASSIGNMENT_OPERATORS:function(){return uy},AnyTypeAnnotation:function(){return pP},ArgumentPlaceholder:function(){return dJ},ArrayExpression:function(){return ct},ArrayPattern:function(){return cZ},ArrayTypeAnnotation:function(){return pA},ArrowFunctionExpression:function(){return c0},AssignmentExpression:function(){return cr},AssignmentPattern:function(){return cQ},AwaitExpression:function(){return pf},BINARY_OPERATORS:function(){return um},BINARY_TYPES:function(){return bc},BLOCKPARENT_TYPES:function(){return bd},BLOCK_SCOPED_SYMBOL:function(){return uT},BLOCK_TYPES:function(){return bf},BOOLEAN_BINARY_OPERATORS:function(){return uf},BOOLEAN_NUMBER_BINARY_OPERATORS:function(){return uc},BOOLEAN_UNARY_OPERATORS:function(){return uv},BUILDER_KEYS:function(){return uC},BigIntLiteral:function(){return pm},BinaryExpression:function(){return cn},BindExpression:function(){return dX},BlockStatement:function(){return co},BooleanLiteral:function(){return cC},BooleanLiteralTypeAnnotation:function(){return pC},BooleanTypeAnnotation:function(){return pk},BreakStatement:function(){return cu},CLASS_TYPES:function(){return bR},COMMENT_KEYS:function(){return uo},COMPARISON_BINARY_OPERATORS:function(){return ud},COMPLETIONSTATEMENT_TYPES:function(){return by},CONDITIONAL_TYPES:function(){return bv},CallExpression:function(){return cl},CatchClause:function(){return cc},ClassAccessorProperty:function(){return pS},ClassBody:function(){return c1},ClassDeclaration:function(){return c3},ClassExpression:function(){return c2},ClassImplements:function(){return pI},ClassMethod:function(){return pa},ClassPrivateMethod:function(){return pT},ClassPrivateProperty:function(){return px},ClassProperty:function(){return pb},ConditionalExpression:function(){return cp},ContinueStatement:function(){return cd},DECLARATION_TYPES:function(){return bA},DEPRECATED_ALIASES:function(){return l4},DEPRECATED_KEYS:function(){return uw},DebuggerStatement:function(){return cf},DeclareClass:function(){return pN},DeclareExportAllDeclaration:function(){return pU},DeclareExportDeclaration:function(){return pj},DeclareFunction:function(){return pO},DeclareInterface:function(){return pD},DeclareModule:function(){return pL},DeclareModuleExports:function(){return pM},DeclareOpaqueType:function(){return pB},DeclareTypeAlias:function(){return pF},DeclareVariable:function(){return pR},DeclaredPredicate:function(){return pV},Decorator:function(){return dK},Directive:function(){return ca},DirectiveLiteral:function(){return cs},DoExpression:function(){return dH},DoWhileStatement:function(){return ch},ENUMBODY_TYPES:function(){return bz},ENUMMEMBER_TYPES:function(){return b$},EQUALITY_BINARY_OPERATORS:function(){return up},EXPORTDECLARATION_TYPES:function(){return bU},EXPRESSIONWRAPPER_TYPES:function(){return bS},EXPRESSION_TYPES:function(){return bl},EmptyStatement:function(){return cm},EmptyTypeAnnotation:function(){return pQ},EnumBooleanBody:function(){return dv},EnumBooleanMember:function(){return dx},EnumDeclaration:function(){return dy},EnumDefaultedMember:function(){return d_},EnumNumberBody:function(){return dg},EnumNumberMember:function(){return dT},EnumStringBody:function(){return db},EnumStringMember:function(){return dE},EnumSymbolBody:function(){return dS},ExistsTypeAnnotation:function(){return pW},ExportAllDeclaration:function(){return c4},ExportDefaultDeclaration:function(){return c5},ExportDefaultSpecifier:function(){return dz},ExportNamedDeclaration:function(){return c8},ExportNamespaceSpecifier:function(){return py},ExportSpecifier:function(){return c6},ExpressionStatement:function(){return cy},FLATTENABLE_KEYS:function(){return ua},FLIPPED_ALIAS_KEYS:function(){return uA},FLOWBASEANNOTATION_TYPES:function(){return bG},FLOWDECLARATION_TYPES:function(){return bK},FLOWPREDICATE_TYPES:function(){return bH},FLOWTYPE_TYPES:function(){return bX},FLOW_TYPES:function(){return bJ},FORXSTATEMENT_TYPES:function(){return bT},FOR_INIT_KEYS:function(){return us},FOR_TYPES:function(){return bx},FUNCTIONPARENT_TYPES:function(){return b_},FUNCTION_TYPES:function(){return bE},File:function(){return cv},ForInStatement:function(){return cg},ForOfStatement:function(){return c9},ForStatement:function(){return cb},FunctionDeclaration:function(){return cS},FunctionExpression:function(){return cx},FunctionTypeAnnotation:function(){return pq},FunctionTypeParam:function(){return pJ},GenericTypeAnnotation:function(){return pX},IMMUTABLE_TYPES:function(){return bN},IMPORTOREXPORTDECLARATION_TYPES:function(){return bj},INHERIT_KEYS:function(){return ux},Identifier:function(){return cT},IfStatement:function(){return cE},Import:function(){return ph},ImportAttribute:function(){return dG},ImportDeclaration:function(){return c7},ImportDefaultSpecifier:function(){return pe},ImportExpression:function(){return pn},ImportNamespaceSpecifier:function(){return pt},ImportSpecifier:function(){return pr},IndexedAccessType:function(){return dP},InferredPredicate:function(){return pG},InterfaceDeclaration:function(){return pH},InterfaceExtends:function(){return pK},InterfaceTypeAnnotation:function(){return pz},InterpreterDirective:function(){return ci},IntersectionTypeAnnotation:function(){return p$},JSXAttribute:function(){return dk},JSXClosingElement:function(){return dC},JSXClosingFragment:function(){return dV},JSXElement:function(){return dw},JSXEmptyExpression:function(){return dI},JSXExpressionContainer:function(){return dN},JSXFragment:function(){return dj},JSXIdentifier:function(){return dD},JSXMemberExpression:function(){return dL},JSXNamespacedName:function(){return dM},JSXOpeningElement:function(){return dF},JSXOpeningFragment:function(){return dU},JSXSpreadAttribute:function(){return dB},JSXSpreadChild:function(){return dO},JSXText:function(){return dR},JSX_TYPES:function(){return bY},LITERAL_TYPES:function(){return bI},LOGICAL_OPERATORS:function(){return uu},LOOP_TYPES:function(){return bg},LVAL_TYPES:function(){return bC},LabeledStatement:function(){return c_},LogicalExpression:function(){return cI},METHOD_TYPES:function(){return bD},MISCELLANEOUS_TYPES:function(){return bQ},MODULEDECLARATION_TYPES:function(){return b3},MODULESPECIFIER_TYPES:function(){return bV},MemberExpression:function(){return cN},MetaProperty:function(){return pi},MixedTypeAnnotation:function(){return pY},ModuleExpression:function(){return dQ},NODE_FIELDS:function(){return uk},NODE_PARENT_VALIDATIONS:function(){return uI},NOT_LOCAL_BINDING:function(){return uE},NUMBER_BINARY_OPERATORS:function(){return uh},NUMBER_UNARY_OPERATORS:function(){return ug},NewExpression:function(){return cO},NullLiteral:function(){return ck},NullLiteralTypeAnnotation:function(){return pw},NullableTypeAnnotation:function(){return pZ},NumberLiteral:function(){return f5},NumberLiteralTypeAnnotation:function(){return p0},NumberTypeAnnotation:function(){return p1},NumericLiteral:function(){return cA},OBJECTMEMBER_TYPES:function(){return bL},ObjectExpression:function(){return cL},ObjectMethod:function(){return cM},ObjectPattern:function(){return ps},ObjectProperty:function(){return cF},ObjectTypeAnnotation:function(){return p2},ObjectTypeCallProperty:function(){return p4},ObjectTypeIndexer:function(){return p5},ObjectTypeInternalSlot:function(){return p3},ObjectTypeProperty:function(){return p8},ObjectTypeSpreadProperty:function(){return p6},OpaqueType:function(){return p9},OptionalCallExpression:function(){return pg},OptionalIndexedAccessType:function(){return dA},OptionalMemberExpression:function(){return pv},PATTERNLIKE_TYPES:function(){return bk},PATTERN_TYPES:function(){return bB},PLACEHOLDERS:function(){return le},PLACEHOLDERS_ALIAS:function(){return lt},PLACEHOLDERS_FLIPPED_ALIAS:function(){return lU},PRIVATE_TYPES:function(){return bq},PROPERTY_TYPES:function(){return bM},PUREISH_TYPES:function(){return bP},ParenthesizedExpression:function(){return cU},PipelineBareFunction:function(){return d1},PipelinePrimaryTopicReference:function(){return d2},PipelineTopicExpression:function(){return d0},Placeholder:function(){return dW},PrivateName:function(){return pE},Program:function(){return cD},QualifiedTypeIdentifier:function(){return p7},RecordExpression:function(){return d$},RegExpLiteral:function(){return cw},RegexLiteral:function(){return f8},RestElement:function(){return cB},RestProperty:function(){return f6},ReturnStatement:function(){return cR},SCOPABLE_TYPES:function(){return bp},STANDARDIZED_TYPES:function(){return bu},STATEMENT_OR_BLOCK_KEYS:function(){return ui},STATEMENT_TYPES:function(){return bh},STRING_UNARY_OPERATORS:function(){return ub},SequenceExpression:function(){return cj},SpreadElement:function(){return po},SpreadProperty:function(){return f9},StaticBlock:function(){return p_},StringLiteral:function(){return cP},StringLiteralTypeAnnotation:function(){return de},StringTypeAnnotation:function(){return dt},Super:function(){return pu},SwitchCase:function(){return cV},SwitchStatement:function(){return cW},SymbolTypeAnnotation:function(){return dr},TERMINATORLESS_TYPES:function(){return bm},TSAnyKeyword:function(){return fr},TSArrayType:function(){return fT},TSAsExpression:function(){return fW},TSBASETYPE_TYPES:function(){return b2},TSBigIntKeyword:function(){return fi},TSBooleanKeyword:function(){return fn},TSCallSignatureDeclaration:function(){return d6},TSClassImplements:function(){return fF},TSConditionalType:function(){return fw},TSConstructSignatureDeclaration:function(){return d9},TSConstructorType:function(){return fv},TSDeclareFunction:function(){return d4},TSDeclareMethod:function(){return d5},TSENTITYNAME_TYPES:function(){return bw},TSEnumDeclaration:function(){return fX},TSEnumMember:function(){return fG},TSExportAssignment:function(){return fZ},TSExternalModuleReference:function(){return fY},TSFunctionType:function(){return fy},TSImportEqualsDeclaration:function(){return f$},TSImportType:function(){return fz},TSIndexSignature:function(){return ft},TSIndexedAccessType:function(){return fD},TSInferType:function(){return fI},TSInstantiationExpression:function(){return fV},TSInterfaceBody:function(){return fj},TSInterfaceDeclaration:function(){return fR},TSInterfaceHeritage:function(){return fB},TSIntersectionType:function(){return fC},TSIntrinsicKeyword:function(){return fa},TSLiteralType:function(){return fM},TSMappedType:function(){return fL},TSMethodSignature:function(){return fe},TSModuleBlock:function(){return fH},TSModuleDeclaration:function(){return fK},TSNamedTupleMember:function(){return fA},TSNamespaceExportDeclaration:function(){return f0},TSNeverKeyword:function(){return fs},TSNonNullExpression:function(){return fQ},TSNullKeyword:function(){return fo},TSNumberKeyword:function(){return fu},TSObjectKeyword:function(){return fl},TSOptionalType:function(){return f_},TSParameterProperty:function(){return d3},TSParenthesizedType:function(){return fN},TSPropertySignature:function(){return d7},TSQualifiedName:function(){return d8},TSRestType:function(){return fP},TSSatisfiesExpression:function(){return fq},TSStringKeyword:function(){return fc},TSSymbolKeyword:function(){return fp},TSTYPEELEMENT_TYPES:function(){return b0},TSTYPE_TYPES:function(){return b1},TSThisType:function(){return fm},TSTupleType:function(){return fE},TSTypeAliasDeclaration:function(){return fU},TSTypeAnnotation:function(){return f1},TSTypeAssertion:function(){return fJ},TSTypeLiteral:function(){return fx},TSTypeOperator:function(){return fO},TSTypeParameter:function(){return f4},TSTypeParameterDeclaration:function(){return f3},TSTypeParameterInstantiation:function(){return f2},TSTypePredicate:function(){return fb},TSTypeQuery:function(){return fS},TSTypeReference:function(){return fg},TSUndefinedKeyword:function(){return fd},TSUnionType:function(){return fk},TSUnknownKeyword:function(){return ff},TSVoidKeyword:function(){return fh},TYPES:function(){return l5},TYPESCRIPT_TYPES:function(){return bZ},TaggedTemplateExpression:function(){return pl},TemplateElement:function(){return pc},TemplateLiteral:function(){return pp},ThisExpression:function(){return cq},ThisTypeAnnotation:function(){return dn},ThrowStatement:function(){return cJ},TopicReference:function(){return dZ},TryStatement:function(){return cX},TupleExpression:function(){return dY},TupleTypeAnnotation:function(){return di},TypeAlias:function(){return ds},TypeAnnotation:function(){return du},TypeCastExpression:function(){return dl},TypeParameter:function(){return dc},TypeParameterDeclaration:function(){return dp},TypeParameterInstantiation:function(){return dd},TypeofTypeAnnotation:function(){return da},UNARYLIKE_TYPES:function(){return bF},UNARY_OPERATORS:function(){return uS},UPDATE_OPERATORS:function(){return ul},USERWHITESPACABLE_TYPES:function(){return bO},UnaryExpression:function(){return cG},UnionTypeAnnotation:function(){return df},UpdateExpression:function(){return cK},V8IntrinsicIdentifier:function(){return dq},VISITOR_KEYS:function(){return u_},VariableDeclaration:function(){return cH},VariableDeclarator:function(){return cz},Variance:function(){return dh},VoidTypeAnnotation:function(){return dm},WHILE_TYPES:function(){return bb},WhileStatement:function(){return c$},WithStatement:function(){return cY},YieldExpression:function(){return pd},__internal__deprecationWarning:function(){return nd},addComment:function(){return bt},addComments:function(){return be},anyTypeAnnotation:function(){return pP},appendToMemberExpression:function(){return Su},argumentPlaceholder:function(){return dJ},arrayExpression:function(){return ct},arrayPattern:function(){return cZ},arrayTypeAnnotation:function(){return pA},arrowFunctionExpression:function(){return c0},assertAccessor:function(){return gw},assertAnyTypeAnnotation:function(){return mA},assertArgumentPlaceholder:function(){return yJ},assertArrayExpression:function(){return hr},assertArrayPattern:function(){return h0},assertArrayTypeAnnotation:function(){return mk},assertArrowFunctionExpression:function(){return h1},assertAssignmentExpression:function(){return hn},assertAssignmentPattern:function(){return hZ},assertAwaitExpression:function(){return mh},assertBigIntLiteral:function(){return my},assertBinary:function(){return v6},assertBinaryExpression:function(){return hi},assertBindExpression:function(){return yX},assertBlock:function(){return ge},assertBlockParent:function(){return v7},assertBlockStatement:function(){return hu},assertBooleanLiteral:function(){return hw},assertBooleanLiteralTypeAnnotation:function(){return mw},assertBooleanTypeAnnotation:function(){return mC},assertBreakStatement:function(){return hl},assertCallExpression:function(){return hc},assertCatchClause:function(){return hp},assertClass:function(){return gP},assertClassAccessorProperty:function(){return mx},assertClassBody:function(){return h2},assertClassDeclaration:function(){return h4},assertClassExpression:function(){return h3},assertClassImplements:function(){return mN},assertClassMethod:function(){return ms},assertClassPrivateMethod:function(){return mE},assertClassPrivateProperty:function(){return mT},assertClassProperty:function(){return mS},assertCompletionStatement:function(){return gn},assertConditional:function(){return gi},assertConditionalExpression:function(){return hd},assertContinueStatement:function(){return hf},assertDebuggerStatement:function(){return hh},assertDeclaration:function(){return gf},assertDeclareClass:function(){return mO},assertDeclareExportAllDeclaration:function(){return mV},assertDeclareExportDeclaration:function(){return mU},assertDeclareFunction:function(){return mD},assertDeclareInterface:function(){return mL},assertDeclareModule:function(){return mM},assertDeclareModuleExports:function(){return mF},assertDeclareOpaqueType:function(){return mR},assertDeclareTypeAlias:function(){return mB},assertDeclareVariable:function(){return mj},assertDeclaredPredicate:function(){return mW},assertDecorator:function(){return yK},assertDirective:function(){return hs},assertDirectiveLiteral:function(){return ho},assertDoExpression:function(){return yH},assertDoWhileStatement:function(){return hm},assertEmptyStatement:function(){return hy},assertEmptyTypeAnnotation:function(){return mZ},assertEnumBody:function(){return gF},assertEnumBooleanBody:function(){return yv},assertEnumBooleanMember:function(){return yx},assertEnumDeclaration:function(){return yy},assertEnumDefaultedMember:function(){return y_},assertEnumMember:function(){return gB},assertEnumNumberBody:function(){return yg},assertEnumNumberMember:function(){return yT},assertEnumStringBody:function(){return yb},assertEnumStringMember:function(){return yE},assertEnumSymbolBody:function(){return yS},assertExistsTypeAnnotation:function(){return mq},assertExportAllDeclaration:function(){return h5},assertExportDeclaration:function(){return gk},assertExportDefaultDeclaration:function(){return h8},assertExportDefaultSpecifier:function(){return yz},assertExportNamedDeclaration:function(){return h6},assertExportNamespaceSpecifier:function(){return mv},assertExportSpecifier:function(){return h9},assertExpression:function(){return v8},assertExpressionStatement:function(){return hv},assertExpressionWrapper:function(){return go},assertFile:function(){return hg},assertFlow:function(){return gN},assertFlowBaseAnnotation:function(){return gD},assertFlowDeclaration:function(){return gL},assertFlowPredicate:function(){return gM},assertFlowType:function(){return gO},assertFor:function(){return gu},assertForInStatement:function(){return hb},assertForOfStatement:function(){return h7},assertForStatement:function(){return hS},assertForXStatement:function(){return gl},assertFunction:function(){return gc},assertFunctionDeclaration:function(){return hx},assertFunctionExpression:function(){return hT},assertFunctionParent:function(){return gp},assertFunctionTypeAnnotation:function(){return mJ},assertFunctionTypeParam:function(){return mX},assertGenericTypeAnnotation:function(){return mG},assertIdentifier:function(){return hE},assertIfStatement:function(){return h_},assertImmutable:function(){return gg},assertImport:function(){return mm},assertImportAttribute:function(){return yG},assertImportDeclaration:function(){return me},assertImportDefaultSpecifier:function(){return mt},assertImportExpression:function(){return mi},assertImportNamespaceSpecifier:function(){return mr},assertImportOrExportDeclaration:function(){return gA},assertImportSpecifier:function(){return mn},assertIndexedAccessType:function(){return yP},assertInferredPredicate:function(){return mK},assertInterfaceDeclaration:function(){return mz},assertInterfaceExtends:function(){return mH},assertInterfaceTypeAnnotation:function(){return m$},assertInterpreterDirective:function(){return ha},assertIntersectionTypeAnnotation:function(){return mY},assertJSX:function(){return gR},assertJSXAttribute:function(){return yk},assertJSXClosingElement:function(){return yC},assertJSXClosingFragment:function(){return yV},assertJSXElement:function(){return yw},assertJSXEmptyExpression:function(){return yI},assertJSXExpressionContainer:function(){return yN},assertJSXFragment:function(){return yj},assertJSXIdentifier:function(){return yD},assertJSXMemberExpression:function(){return yL},assertJSXNamespacedName:function(){return yM},assertJSXOpeningElement:function(){return yF},assertJSXOpeningFragment:function(){return yU},assertJSXSpreadAttribute:function(){return yB},assertJSXSpreadChild:function(){return yO},assertJSXText:function(){return yR},assertLVal:function(){return gm},assertLabeledStatement:function(){return hP},assertLiteral:function(){return gv},assertLogicalExpression:function(){return hN},assertLoop:function(){return ga},assertMemberExpression:function(){return hO},assertMetaProperty:function(){return ma},assertMethod:function(){return gS},assertMiscellaneous:function(){return gj},assertMixedTypeAnnotation:function(){return mQ},assertModuleDeclaration:function(){return gH},assertModuleExpression:function(){return yQ},assertModuleSpecifier:function(){return gC},assertNewExpression:function(){return hD},assertNode:function(){return he},assertNullLiteral:function(){return hC},assertNullLiteralTypeAnnotation:function(){return mI},assertNullableTypeAnnotation:function(){return m0},assertNumberLiteral:function(){return gJ},assertNumberLiteralTypeAnnotation:function(){return m1},assertNumberTypeAnnotation:function(){return m2},assertNumericLiteral:function(){return hk},assertObjectExpression:function(){return hM},assertObjectMember:function(){return gx},assertObjectMethod:function(){return hF},assertObjectPattern:function(){return mo},assertObjectProperty:function(){return hB},assertObjectTypeAnnotation:function(){return m3},assertObjectTypeCallProperty:function(){return m5},assertObjectTypeIndexer:function(){return m8},assertObjectTypeInternalSlot:function(){return m4},assertObjectTypeProperty:function(){return m6},assertObjectTypeSpreadProperty:function(){return m9},assertOpaqueType:function(){return m7},assertOptionalCallExpression:function(){return mb},assertOptionalIndexedAccessType:function(){return yA},assertOptionalMemberExpression:function(){return mg},assertParenthesizedExpression:function(){return hV},assertPattern:function(){return g_},assertPatternLike:function(){return gh},assertPipelineBareFunction:function(){return y1},assertPipelinePrimaryTopicReference:function(){return y2},assertPipelineTopicExpression:function(){return y0},assertPlaceholder:function(){return yW},assertPrivate:function(){return gI},assertPrivateName:function(){return m_},assertProgram:function(){return hL},assertProperty:function(){return gT},assertPureish:function(){return gd},assertQualifiedTypeIdentifier:function(){return ye},assertRecordExpression:function(){return y$},assertRegExpLiteral:function(){return hI},assertRegexLiteral:function(){return gX},assertRestElement:function(){return hR},assertRestProperty:function(){return gG},assertReturnStatement:function(){return hj},assertScopable:function(){return v9},assertSequenceExpression:function(){return hU},assertSpreadElement:function(){return mu},assertSpreadProperty:function(){return gK},assertStandardized:function(){return v5},assertStatement:function(){return gt},assertStaticBlock:function(){return mP},assertStringLiteral:function(){return hA},assertStringLiteralTypeAnnotation:function(){return yt},assertStringTypeAnnotation:function(){return yr},assertSuper:function(){return ml},assertSwitchCase:function(){return hW},assertSwitchStatement:function(){return hq},assertSymbolTypeAnnotation:function(){return yn},assertTSAnyKeyword:function(){return vr},assertTSArrayType:function(){return vT},assertTSAsExpression:function(){return vW},assertTSBaseType:function(){return gq},assertTSBigIntKeyword:function(){return vi},assertTSBooleanKeyword:function(){return vn},assertTSCallSignatureDeclaration:function(){return y6},assertTSClassImplements:function(){return vF},assertTSConditionalType:function(){return vw},assertTSConstructSignatureDeclaration:function(){return y9},assertTSConstructorType:function(){return vv},assertTSDeclareFunction:function(){return y4},assertTSDeclareMethod:function(){return y5},assertTSEntityName:function(){return gy},assertTSEnumDeclaration:function(){return vX},assertTSEnumMember:function(){return vG},assertTSExportAssignment:function(){return vZ},assertTSExternalModuleReference:function(){return vY},assertTSFunctionType:function(){return vy},assertTSImportEqualsDeclaration:function(){return v$},assertTSImportType:function(){return vz},assertTSIndexSignature:function(){return vt},assertTSIndexedAccessType:function(){return vD},assertTSInferType:function(){return vI},assertTSInstantiationExpression:function(){return vV},assertTSInterfaceBody:function(){return vj},assertTSInterfaceDeclaration:function(){return vR},assertTSInterfaceHeritage:function(){return vB},assertTSIntersectionType:function(){return vC},assertTSIntrinsicKeyword:function(){return va},assertTSLiteralType:function(){return vM},assertTSMappedType:function(){return vL},assertTSMethodSignature:function(){return ve},assertTSModuleBlock:function(){return vH},assertTSModuleDeclaration:function(){return vK},assertTSNamedTupleMember:function(){return vA},assertTSNamespaceExportDeclaration:function(){return v0},assertTSNeverKeyword:function(){return vs},assertTSNonNullExpression:function(){return vQ},assertTSNullKeyword:function(){return vo},assertTSNumberKeyword:function(){return vu},assertTSObjectKeyword:function(){return vl},assertTSOptionalType:function(){return v_},assertTSParameterProperty:function(){return y3},assertTSParenthesizedType:function(){return vN},assertTSPropertySignature:function(){return y7},assertTSQualifiedName:function(){return y8},assertTSRestType:function(){return vP},assertTSSatisfiesExpression:function(){return vq},assertTSStringKeyword:function(){return vc},assertTSSymbolKeyword:function(){return vp},assertTSThisType:function(){return vm},assertTSTupleType:function(){return vE},assertTSType:function(){return gW},assertTSTypeAliasDeclaration:function(){return vU},assertTSTypeAnnotation:function(){return v1},assertTSTypeAssertion:function(){return vJ},assertTSTypeElement:function(){return gV},assertTSTypeLiteral:function(){return vx},assertTSTypeOperator:function(){return vO},assertTSTypeParameter:function(){return v4},assertTSTypeParameterDeclaration:function(){return v3},assertTSTypeParameterInstantiation:function(){return v2},assertTSTypePredicate:function(){return vb},assertTSTypeQuery:function(){return vS},assertTSTypeReference:function(){return vg},assertTSUndefinedKeyword:function(){return vd},assertTSUnionType:function(){return vk},assertTSUnknownKeyword:function(){return vf},assertTSVoidKeyword:function(){return vh},assertTaggedTemplateExpression:function(){return mc},assertTemplateElement:function(){return mp},assertTemplateLiteral:function(){return md},assertTerminatorless:function(){return gr},assertThisExpression:function(){return hJ},assertThisTypeAnnotation:function(){return yi},assertThrowStatement:function(){return hX},assertTopicReference:function(){return yZ},assertTryStatement:function(){return hG},assertTupleExpression:function(){return yY},assertTupleTypeAnnotation:function(){return ya},assertTypeAlias:function(){return yo},assertTypeAnnotation:function(){return yu},assertTypeCastExpression:function(){return yl},assertTypeParameter:function(){return yc},assertTypeParameterDeclaration:function(){return yp},assertTypeParameterInstantiation:function(){return yd},assertTypeScript:function(){return gU},assertTypeofTypeAnnotation:function(){return ys},assertUnaryExpression:function(){return hK},assertUnaryLike:function(){return gE},assertUnionTypeAnnotation:function(){return yf},assertUpdateExpression:function(){return hH},assertUserWhitespacable:function(){return gb},assertV8IntrinsicIdentifier:function(){return yq},assertVariableDeclaration:function(){return hz},assertVariableDeclarator:function(){return h$},assertVariance:function(){return yh},assertVoidTypeAnnotation:function(){return ym},assertWhile:function(){return gs},assertWhileStatement:function(){return hY},assertWithStatement:function(){return hQ},assertYieldExpression:function(){return mf},assignmentExpression:function(){return cr},assignmentPattern:function(){return cQ},awaitExpression:function(){return pf},bigIntLiteral:function(){return pm},binaryExpression:function(){return cn},bindExpression:function(){return dX},blockStatement:function(){return co},booleanLiteral:function(){return cC},booleanLiteralTypeAnnotation:function(){return pC},booleanTypeAnnotation:function(){return pk},breakStatement:function(){return cu},buildMatchMemberExpression:function(){return o9},buildUndefinedNode:function(){return gZ},callExpression:function(){return cl},catchClause:function(){return cc},classAccessorProperty:function(){return pS},classBody:function(){return c1},classDeclaration:function(){return c3},classExpression:function(){return c2},classImplements:function(){return pI},classMethod:function(){return pa},classPrivateMethod:function(){return pT},classPrivateProperty:function(){return px},classProperty:function(){return pb},clone:function(){return g8},cloneDeep:function(){return g6},cloneDeepWithoutLoc:function(){return g9},cloneNode:function(){return g3},cloneWithoutLoc:function(){return g7},conditionalExpression:function(){return cp},continueStatement:function(){return cd},createFlowUnionType:function(){return gY},createTSUnionType:function(){return gQ},createTypeAnnotationBasedOnTypeof:function(){return gz},createUnionTypeAnnotation:function(){return gY},debuggerStatement:function(){return cf},declareClass:function(){return pN},declareExportAllDeclaration:function(){return pU},declareExportDeclaration:function(){return pj},declareFunction:function(){return pO},declareInterface:function(){return pD},declareModule:function(){return pL},declareModuleExports:function(){return pM},declareOpaqueType:function(){return pB},declareTypeAlias:function(){return pF},declareVariable:function(){return pR},declaredPredicate:function(){return pV},decorator:function(){return dK},directive:function(){return ca},directiveLiteral:function(){return cs},doExpression:function(){return dH},doWhileStatement:function(){return ch},emptyStatement:function(){return cm},emptyTypeAnnotation:function(){return pQ},ensureBlock:function(){return b5},enumBooleanBody:function(){return dv},enumBooleanMember:function(){return dx},enumDeclaration:function(){return dy},enumDefaultedMember:function(){return d_},enumNumberBody:function(){return dg},enumNumberMember:function(){return dT},enumStringBody:function(){return db},enumStringMember:function(){return dE},enumSymbolBody:function(){return dS},existsTypeAnnotation:function(){return pW},exportAllDeclaration:function(){return c4},exportDefaultDeclaration:function(){return c5},exportDefaultSpecifier:function(){return dz},exportNamedDeclaration:function(){return c8},exportNamespaceSpecifier:function(){return py},exportSpecifier:function(){return c6},expressionStatement:function(){return cy},file:function(){return cv},forInStatement:function(){return cg},forOfStatement:function(){return c9},forStatement:function(){return cb},functionDeclaration:function(){return cS},functionExpression:function(){return cx},functionTypeAnnotation:function(){return pq},functionTypeParam:function(){return pJ},genericTypeAnnotation:function(){return pX},getAssignmentIdentifiers:function(){return Sp},getBindingIdentifiers:function(){return Sd},getFunctionName:function(){return Sm},getOuterBindingIdentifiers:function(){return Sf},identifier:function(){return cT},ifStatement:function(){return cE},import:function(){return ph},importAttribute:function(){return dG},importDeclaration:function(){return c7},importDefaultSpecifier:function(){return pe},importExpression:function(){return pn},importNamespaceSpecifier:function(){return pt},importSpecifier:function(){return pr},indexedAccessType:function(){return dP},inferredPredicate:function(){return pG},inheritInnerComments:function(){return bn},inheritLeadingComments:function(){return bi},inheritTrailingComments:function(){return ba},inherits:function(){return Sl},inheritsComments:function(){return bs},interfaceDeclaration:function(){return pH},interfaceExtends:function(){return pK},interfaceTypeAnnotation:function(){return pz},interpreterDirective:function(){return ci},intersectionTypeAnnotation:function(){return p$},is:function(){return ur},isAccessor:function(){return oV},isAnyTypeAnnotation:function(){return ij},isArgumentPlaceholder:function(){return a3},isArrayExpression:function(){return nf},isArrayPattern:function(){return it},isArrayTypeAnnotation:function(){return iU},isArrowFunctionExpression:function(){return ir},isAssignmentExpression:function(){return nh},isAssignmentPattern:function(){return ie},isAwaitExpression:function(){return ik},isBigIntLiteral:function(){return iw},isBinary:function(){return oc},isBinaryExpression:function(){return nm},isBindExpression:function(){return a4},isBinding:function(){return Sv},isBlock:function(){return of},isBlockParent:function(){return od},isBlockScoped:function(){return Sb},isBlockStatement:function(){return nb},isBooleanLiteral:function(){return nU},isBooleanLiteralTypeAnnotation:function(){return iW},isBooleanTypeAnnotation:function(){return iV},isBreakStatement:function(){return nS},isCallExpression:function(){return nx},isCatchClause:function(){return nT},isClass:function(){return oB},isClassAccessorProperty:function(){return iL},isClassBody:function(){return ii},isClassDeclaration:function(){return is},isClassExpression:function(){return ia},isClassImplements:function(){return iJ},isClassMethod:function(){return ib},isClassPrivateMethod:function(){return iF},isClassPrivateProperty:function(){return iM},isClassProperty:function(){return iD},isCompletionStatement:function(){return oy},isConditional:function(){return ov},isConditionalExpression:function(){return nE},isContinueStatement:function(){return n_},isDebuggerStatement:function(){return nP},isDeclaration:function(){return oA},isDeclareClass:function(){return iX},isDeclareExportAllDeclaration:function(){return i0},isDeclareExportDeclaration:function(){return iZ},isDeclareFunction:function(){return iG},isDeclareInterface:function(){return iK},isDeclareModule:function(){return iH},isDeclareModuleExports:function(){return iz},isDeclareOpaqueType:function(){return iY},isDeclareTypeAlias:function(){return i$},isDeclareVariable:function(){return iQ},isDeclaredPredicate:function(){return i1},isDecorator:function(){return a8},isDirective:function(){return nv},isDirectiveLiteral:function(){return ng},isDoExpression:function(){return a6},isDoWhileStatement:function(){return nA},isEmptyStatement:function(){return nk},isEmptyTypeAnnotation:function(){return ar},isEnumBody:function(){return oH},isEnumBooleanBody:function(){return aI},isEnumBooleanMember:function(){return aL},isEnumDeclaration:function(){return aw},isEnumDefaultedMember:function(){return aB},isEnumMember:function(){return oz},isEnumNumberBody:function(){return aN},isEnumNumberMember:function(){return aM},isEnumStringBody:function(){return aO},isEnumStringMember:function(){return aF},isEnumSymbolBody:function(){return aD},isExistsTypeAnnotation:function(){return i2},isExportAllDeclaration:function(){return io},isExportDeclaration:function(){return oj},isExportDefaultDeclaration:function(){return iu},isExportDefaultSpecifier:function(){return a9},isExportNamedDeclaration:function(){return il},isExportNamespaceSpecifier:function(){return iI},isExportSpecifier:function(){return ic},isExpression:function(){return ol},isExpressionStatement:function(){return nC},isExpressionWrapper:function(){return oS},isFile:function(){return nw},isFlow:function(){return oq},isFlowBaseAnnotation:function(){return oX},isFlowDeclaration:function(){return oG},isFlowPredicate:function(){return oK},isFlowType:function(){return oJ},isFor:function(){return ox},isForInStatement:function(){return nI},isForOfStatement:function(){return ip},isForStatement:function(){return nN},isForXStatement:function(){return oT},isFunction:function(){return oE},isFunctionDeclaration:function(){return nO},isFunctionExpression:function(){return nD},isFunctionParent:function(){return o_},isFunctionTypeAnnotation:function(){return i3},isFunctionTypeParam:function(){return i4},isGenericTypeAnnotation:function(){return i5},isIdentifier:function(){return nL},isIfStatement:function(){return nM},isImmutable:function(){return SS},isImport:function(){return iC},isImportAttribute:function(){return a5},isImportDeclaration:function(){return id},isImportDefaultSpecifier:function(){return ih},isImportExpression:function(){return iv},isImportNamespaceSpecifier:function(){return im},isImportOrExportDeclaration:function(){return oR},isImportSpecifier:function(){return iy},isIndexedAccessType:function(){return aR},isInferredPredicate:function(){return i8},isInterfaceDeclaration:function(){return i9},isInterfaceExtends:function(){return i6},isInterfaceTypeAnnotation:function(){return i7},isInterpreterDirective:function(){return ny},isIntersectionTypeAnnotation:function(){return ae},isJSX:function(){return o$},isJSXAttribute:function(){return aU},isJSXClosingElement:function(){return aV},isJSXClosingFragment:function(){return a0},isJSXElement:function(){return aW},isJSXEmptyExpression:function(){return aq},isJSXExpressionContainer:function(){return aJ},isJSXFragment:function(){return aQ},isJSXIdentifier:function(){return aG},isJSXMemberExpression:function(){return aK},isJSXNamespacedName:function(){return aH},isJSXOpeningElement:function(){return az},isJSXOpeningFragment:function(){return aZ},isJSXSpreadAttribute:function(){return a$},isJSXSpreadChild:function(){return aX},isJSXText:function(){return aY},isLVal:function(){return oC},isLabeledStatement:function(){return nF},isLet:function(){return Sg},isLiteral:function(){return oI},isLogicalExpression:function(){return nW},isLoop:function(){return og},isMemberExpression:function(){return nq},isMetaProperty:function(){return ig},isMethod:function(){return oO},isMiscellaneous:function(){return oY},isMixedTypeAnnotation:function(){return at},isModuleDeclaration:function(){return o8},isModuleExpression:function(){return st},isModuleSpecifier:function(){return oU},isNewExpression:function(){return nJ},isNode:function(){return f7},isNodesEquivalent:function(){return function e(t,r){if((void 0===t?"undefined":rP(t))!=="object"||(void 0===r?"undefined":rP(r))!=="object"||null==t||null==r)return t===r;if(t.type!==r.type)return!1;var n=Object.keys(uk[t.type]||t.type),i=u_[t.type],a=!0,s=!1,o=void 0;try{for(var u,l=n[Symbol.iterator]();!(a=(u=l.next()).done);a=!0){var c=u.value,p=t[c],d=r[c];if((void 0===p?"undefined":rP(p))!==(void 0===d?"undefined":rP(d)))return!1;if(null!=p||null!=d){if(null==p||null==d)return!1;if(Array.isArray(p)){if(!Array.isArray(d)||p.length!==d.length)return!1;for(var f=0;f<p.length;f++)if(!e(p[f],d[f]))return!1;continue}if((void 0===p?"undefined":rP(p))==="object"&&!(null==i?void 0:i.includes(c))){var h=!0,m=!1,y=void 0;try{for(var v,g=Object.keys(p)[Symbol.iterator]();!(h=(v=g.next()).done);h=!0){var b=v.value;if(p[b]!==d[b])return!1}}catch(e){m=!0,y=e}finally{try{h||null==g.return||g.return()}finally{if(m)throw y}}continue}if(!e(p,d))return!1}}}catch(e){s=!0,o=e}finally{try{a||null==l.return||l.return()}finally{if(s)throw o}}return!0}},isNullLiteral:function(){return nj},isNullLiteralTypeAnnotation:function(){return iq},isNullableTypeAnnotation:function(){return an},isNumberLiteral:function(){return o2},isNumberLiteralTypeAnnotation:function(){return ai},isNumberTypeAnnotation:function(){return aa},isNumericLiteral:function(){return nR},isObjectExpression:function(){return nG},isObjectMember:function(){return oD},isObjectMethod:function(){return nK},isObjectPattern:function(){return iS},isObjectProperty:function(){return nH},isObjectTypeAnnotation:function(){return as},isObjectTypeCallProperty:function(){return au},isObjectTypeIndexer:function(){return al},isObjectTypeInternalSlot:function(){return ao},isObjectTypeProperty:function(){return ac},isObjectTypeSpreadProperty:function(){return ap},isOpaqueType:function(){return ad},isOptionalCallExpression:function(){return iO},isOptionalIndexedAccessType:function(){return aj},isOptionalMemberExpression:function(){return iN},isParenthesizedExpression:function(){return nQ},isPattern:function(){return oF},isPatternLike:function(){return ok},isPipelineBareFunction:function(){return si},isPipelinePrimaryTopicReference:function(){return sa},isPipelineTopicExpression:function(){return sn},isPlaceholder:function(){return a1},isPlaceholderType:function(){return ut},isPrivate:function(){return oW},isPrivateName:function(){return iB},isProgram:function(){return nX},isProperty:function(){return oL},isPureish:function(){return oP},isQualifiedTypeIdentifier:function(){return af},isRecordExpression:function(){return a7},isReferenced:function(){return Sx},isRegExpLiteral:function(){return nV},isRegexLiteral:function(){return o3},isRestElement:function(){return nz},isRestProperty:function(){return o4},isReturnStatement:function(){return n$},isScopable:function(){return op},isScope:function(){return ST},isSequenceExpression:function(){return nY},isSpecifierDefault:function(){return SE},isSpreadElement:function(){return ix},isSpreadProperty:function(){return o5},isStandardized:function(){return ou},isStatement:function(){return oh},isStaticBlock:function(){return iR},isStringLiteral:function(){return nB},isStringLiteralTypeAnnotation:function(){return ah},isStringTypeAnnotation:function(){return am},isSuper:function(){return iT},isSwitchCase:function(){return nZ},isSwitchStatement:function(){return n0},isSymbolTypeAnnotation:function(){return ay},isTSAnyKeyword:function(){return sm},isTSArrayType:function(){return sM},isTSAsExpression:function(){return s1},isTSBaseType:function(){return o1},isTSBigIntKeyword:function(){return sv},isTSBooleanKeyword:function(){return sy},isTSCallSignatureDeclaration:function(){return sc},isTSClassImplements:function(){return sz},isTSConditionalType:function(){return sW},isTSConstructSignatureDeclaration:function(){return sp},isTSConstructorType:function(){return sI},isTSDeclareFunction:function(){return so},isTSDeclareMethod:function(){return su},isTSEntityName:function(){return ow},isTSEnumDeclaration:function(){return s4},isTSEnumMember:function(){return s5},isTSExportAssignment:function(){return or},isTSExternalModuleReference:function(){return oe},isTSFunctionType:function(){return sw},isTSImportEqualsDeclaration:function(){return s7},isTSImportType:function(){return s9},isTSIndexSignature:function(){return sh},isTSIndexedAccessType:function(){return sG},isTSInferType:function(){return sq},isTSInstantiationExpression:function(){return s0},isTSInterfaceBody:function(){return sQ},isTSInterfaceDeclaration:function(){return sY},isTSInterfaceHeritage:function(){return s$},isTSIntersectionType:function(){return sV},isTSIntrinsicKeyword:function(){return sg},isTSLiteralType:function(){return sH},isTSMappedType:function(){return sK},isTSMethodSignature:function(){return sf},isTSModuleBlock:function(){return s6},isTSModuleDeclaration:function(){return s8},isTSNamedTupleMember:function(){return sj},isTSNamespaceExportDeclaration:function(){return on},isTSNeverKeyword:function(){return sb},isTSNonNullExpression:function(){return ot},isTSNullKeyword:function(){return sS},isTSNumberKeyword:function(){return sx},isTSObjectKeyword:function(){return sT},isTSOptionalType:function(){return sB},isTSParameterProperty:function(){return ss},isTSParenthesizedType:function(){return sJ},isTSPropertySignature:function(){return sd},isTSQualifiedName:function(){return sl},isTSRestType:function(){return sR},isTSSatisfiesExpression:function(){return s2},isTSStringKeyword:function(){return sE},isTSSymbolKeyword:function(){return s_},isTSThisType:function(){return sC},isTSTupleType:function(){return sF},isTSType:function(){return o0},isTSTypeAliasDeclaration:function(){return sZ},isTSTypeAnnotation:function(){return oi},isTSTypeAssertion:function(){return s3},isTSTypeElement:function(){return oZ},isTSTypeLiteral:function(){return sL},isTSTypeOperator:function(){return sX},isTSTypeParameter:function(){return oo},isTSTypeParameterDeclaration:function(){return os},isTSTypeParameterInstantiation:function(){return oa},isTSTypePredicate:function(){return sO},isTSTypeQuery:function(){return sD},isTSTypeReference:function(){return sN},isTSUndefinedKeyword:function(){return sP},isTSUnionType:function(){return sU},isTSUnknownKeyword:function(){return sA},isTSVoidKeyword:function(){return sk},isTaggedTemplateExpression:function(){return iE},isTemplateElement:function(){return i_},isTemplateLiteral:function(){return iP},isTerminatorless:function(){return om},isThisExpression:function(){return n1},isThisTypeAnnotation:function(){return av},isThrowStatement:function(){return n2},isTopicReference:function(){return sr},isTryStatement:function(){return n3},isTupleExpression:function(){return se},isTupleTypeAnnotation:function(){return ag},isType:function(){return ue},isTypeAlias:function(){return aS},isTypeAnnotation:function(){return ax},isTypeCastExpression:function(){return aT},isTypeParameter:function(){return aE},isTypeParameterDeclaration:function(){return a_},isTypeParameterInstantiation:function(){return aP},isTypeScript:function(){return oQ},isTypeofTypeAnnotation:function(){return ab},isUnaryExpression:function(){return n4},isUnaryLike:function(){return oM},isUnionTypeAnnotation:function(){return aA},isUpdateExpression:function(){return n5},isUserWhitespacable:function(){return oN},isV8IntrinsicIdentifier:function(){return a2},isValidES3Identifier:function(){return SP},isValidIdentifier:function(){return un},isVar:function(){return SA},isVariableDeclaration:function(){return n8},isVariableDeclarator:function(){return n6},isVariance:function(){return ak},isVoidTypeAnnotation:function(){return aC},isWhile:function(){return ob},isWhileStatement:function(){return n9},isWithStatement:function(){return n7},isYieldExpression:function(){return iA},jsxAttribute:function(){return dk},jsxClosingElement:function(){return dC},jsxClosingFragment:function(){return dV},jsxElement:function(){return dw},jsxEmptyExpression:function(){return dI},jsxExpressionContainer:function(){return dN},jsxFragment:function(){return dj},jsxIdentifier:function(){return dD},jsxMemberExpression:function(){return dL},jsxNamespacedName:function(){return dM},jsxOpeningElement:function(){return dF},jsxOpeningFragment:function(){return dU},jsxSpreadAttribute:function(){return dB},jsxSpreadChild:function(){return dO},jsxText:function(){return dR},labeledStatement:function(){return c_},logicalExpression:function(){return cI},matchesPattern:function(){return o6},memberExpression:function(){return cN},metaProperty:function(){return pi},mixedTypeAnnotation:function(){return pY},moduleExpression:function(){return dQ},newExpression:function(){return cO},nullLiteral:function(){return ck},nullLiteralTypeAnnotation:function(){return pw},nullableTypeAnnotation:function(){return pZ},numberLiteral:function(){return f5},numberLiteralTypeAnnotation:function(){return p0},numberTypeAnnotation:function(){return p1},numericLiteral:function(){return cA},objectExpression:function(){return cL},objectMethod:function(){return cM},objectPattern:function(){return ps},objectProperty:function(){return cF},objectTypeAnnotation:function(){return p2},objectTypeCallProperty:function(){return p4},objectTypeIndexer:function(){return p5},objectTypeInternalSlot:function(){return p3},objectTypeProperty:function(){return p8},objectTypeSpreadProperty:function(){return p6},opaqueType:function(){return p9},optionalCallExpression:function(){return pg},optionalIndexedAccessType:function(){return dA},optionalMemberExpression:function(){return pv},parenthesizedExpression:function(){return cU},pipelineBareFunction:function(){return d1},pipelinePrimaryTopicReference:function(){return d2},pipelineTopicExpression:function(){return d0},placeholder:function(){return dW},prependToMemberExpression:function(){return Sc},privateName:function(){return pE},program:function(){return cD},qualifiedTypeIdentifier:function(){return p7},react:function(){return Sk},recordExpression:function(){return d$},regExpLiteral:function(){return cw},regexLiteral:function(){return f8},removeComments:function(){return bo},removeProperties:function(){return Sn},removePropertiesDeep:function(){return Si},removeTypeDuplicates:function(){return g$},restElement:function(){return cB},restProperty:function(){return f6},returnStatement:function(){return cR},sequenceExpression:function(){return cj},shallowEqual:function(){return nc},spreadElement:function(){return po},spreadProperty:function(){return f9},staticBlock:function(){return p_},stringLiteral:function(){return cP},stringLiteralTypeAnnotation:function(){return de},stringTypeAnnotation:function(){return dt},super:function(){return pu},switchCase:function(){return cV},switchStatement:function(){return cW},symbolTypeAnnotation:function(){return dr},taggedTemplateExpression:function(){return pl},templateElement:function(){return pc},templateLiteral:function(){return pp},thisExpression:function(){return cq},thisTypeAnnotation:function(){return dn},throwStatement:function(){return cJ},toBindingIdentifierName:function(){return b6},toBlock:function(){return b4},toComputedKey:function(){return b9},toExpression:function(){return b7},toIdentifier:function(){return b8},toKeyAlias:function(){return Sa},toStatement:function(){return Ss},topicReference:function(){return dZ},traverse:function(){return Sy},traverseFast:function(){return Se},tryStatement:function(){return cX},tsAnyKeyword:function(){return fr},tsArrayType:function(){return fT},tsAsExpression:function(){return fW},tsBigIntKeyword:function(){return fi},tsBooleanKeyword:function(){return fn},tsCallSignatureDeclaration:function(){return d6},tsClassImplements:function(){return fF},tsConditionalType:function(){return fw},tsConstructSignatureDeclaration:function(){return d9},tsConstructorType:function(){return fv},tsDeclareFunction:function(){return d4},tsDeclareMethod:function(){return d5},tsEnumDeclaration:function(){return fX},tsEnumMember:function(){return fG},tsExportAssignment:function(){return fZ},tsExternalModuleReference:function(){return fY},tsFunctionType:function(){return fy},tsImportEqualsDeclaration:function(){return f$},tsImportType:function(){return fz},tsIndexSignature:function(){return ft},tsIndexedAccessType:function(){return fD},tsInferType:function(){return fI},tsInstantiationExpression:function(){return fV},tsInterfaceBody:function(){return fj},tsInterfaceDeclaration:function(){return fR},tsInterfaceHeritage:function(){return fB},tsIntersectionType:function(){return fC},tsIntrinsicKeyword:function(){return fa},tsLiteralType:function(){return fM},tsMappedType:function(){return fL},tsMethodSignature:function(){return fe},tsModuleBlock:function(){return fH},tsModuleDeclaration:function(){return fK},tsNamedTupleMember:function(){return fA},tsNamespaceExportDeclaration:function(){return f0},tsNeverKeyword:function(){return fs},tsNonNullExpression:function(){return fQ},tsNullKeyword:function(){return fo},tsNumberKeyword:function(){return fu},tsObjectKeyword:function(){return fl},tsOptionalType:function(){return f_},tsParameterProperty:function(){return d3},tsParenthesizedType:function(){return fN},tsPropertySignature:function(){return d7},tsQualifiedName:function(){return d8},tsRestType:function(){return fP},tsSatisfiesExpression:function(){return fq},tsStringKeyword:function(){return fc},tsSymbolKeyword:function(){return fp},tsThisType:function(){return fm},tsTupleType:function(){return fE},tsTypeAliasDeclaration:function(){return fU},tsTypeAnnotation:function(){return f1},tsTypeAssertion:function(){return fJ},tsTypeLiteral:function(){return fx},tsTypeOperator:function(){return fO},tsTypeParameter:function(){return f4},tsTypeParameterDeclaration:function(){return f3},tsTypeParameterInstantiation:function(){return f2},tsTypePredicate:function(){return fb},tsTypeQuery:function(){return fS},tsTypeReference:function(){return fg},tsUndefinedKeyword:function(){return fd},tsUnionType:function(){return fk},tsUnknownKeyword:function(){return ff},tsVoidKeyword:function(){return fh},tupleExpression:function(){return dY},tupleTypeAnnotation:function(){return di},typeAlias:function(){return ds},typeAnnotation:function(){return du},typeCastExpression:function(){return dl},typeParameter:function(){return dc},typeParameterDeclaration:function(){return dp},typeParameterInstantiation:function(){return dd},typeofTypeAnnotation:function(){return da},unaryExpression:function(){return cG},unionTypeAnnotation:function(){return df},updateExpression:function(){return cK},v8IntrinsicIdentifier:function(){return dq},validate:function(){return l8},valueToNode:function(){return function e(t){if(void 0===t)return cT("undefined");if(!0===t||!1===t)return cC(t);if(null===t)return ck();if("string"==typeof t)return cP(t);if("number"==typeof t){var r;return r=Number.isFinite(t)?cA(Math.abs(t)):cn("/",Number.isNaN(t)?cA(0):cA(1),cA(0)),(t<0||Object.is(t,-0))&&(r=cG("-",r)),r}if("[object RegExp]"===So(t))return cw(t.source,/\/([a-z]*)$/.exec(t.toString())[1]);if(Array.isArray(t))return ct(t.map(e));if(function(e){if((void 0===e?"undefined":rP(e))!=="object"||null===e||"[object Object]"!==Object.prototype.toString.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}(t)){var n=[],i=!0,a=!1,s=void 0;try{for(var o,u=Object.keys(t)[Symbol.iterator]();!(i=(o=u.next()).done);i=!0){var l=o.value,c=void 0;c=un(l)?cT(l):cP(l),n.push(cF(c,e(t[l])))}}catch(e){a=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(a)throw s}}return cL(n)}throw Error("don't know how to turn this value into a node")}},variableDeclaration:function(){return cH},variableDeclarator:function(){return cz},variance:function(){return dh},voidTypeAnnotation:function(){return dm},whileStatement:function(){return c$},withStatement:function(){return cY},yieldExpression:function(){return pd}});var r6="\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",r9="\xb7̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",r7=RegExp("["+r6+"]"),ne=RegExp("["+r6+r9+"]");r6=r9=null;var nt=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],nr=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function nn(e,t){for(var r=65536,n=0,i=t.length;n<i&&!((r+=t[n])>e);n+=2)if((r+=t[n+1])>=e)return!0;return!1}function ni(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&ne.test(String.fromCharCode(e)):nn(e,nt)||nn(e,nr))))}var na=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"]),ns=new Set(["implements","interface","let","package","private","protected","public","static","yield"]);function no(e,t){return t&&"await"===e||"enum"===e}function nu(e,t){return no(e,t)||ns.has(e)}function nl(e,t,r,n,i,a,s,o){var u,l,c=t;return u=(l=function(e,t,r,n,i,a,s,o,u,l){for(var c=t,p=!1,d=0,f=0,h=null==a?1/0:a;f<h;++f){var m=e.charCodeAt(t),y=void 0;if(95===m&&"bail"!==o)return e.charCodeAt(t-1),e.charCodeAt(t+1),{n:null,pos:t};if((y=m>=97?m-97+10:m>=65?m-65+10:m>=48&&m<=57?m-48:1/0)>=16){if(y<=9&&l)return{n:null,pos:t};if(y<=9&&u.invalidDigit(t,r,n,16))y=0;else if(s)y=0,p=!0;else break}++t,d=d*i+y}return t===c||null!=a&&t-c!==a||p?{n:null,pos:t}:{n:d,pos:t}}(e,t,r,n,16,i,a,!1,o,!s)).n,t=l.pos,null===u&&(t=c-1),{code:u,pos:t}}function nc(e,t){var r=Object.keys(t),n=!0,i=!1,a=void 0;try{for(var s,o=r[Symbol.iterator]();!(n=(s=o.next()).done);n=!0){var u=s.value;if(e[u]!==t[u])return!1}}catch(e){i=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}return!0}var np=/* @__PURE__ */new Set;function nd(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!np.has(e)){np.add(e);var n=function(e,t){var r,n=Error.stackTraceLimit,i=Error.prepareStackTrace;if(Error.stackTraceLimit=4,Error.prepareStackTrace=function(e,t){r=t},Error().stack,Error.stackTraceLimit=n,Error.prepareStackTrace=i,!r)return{internal:!1,trace:""};var a=r.slice(2,1+e+2);return{internal:/[\\/]@babel[\\/]/.test(a[1].getFileName()),trace:a.map(function(e){return" at ".concat(e)}).join("\n")}}(1,2),i=n.internal,a=n.trace;if(i)return;console.warn("".concat(r,"`").concat(e,"` has been deprecated, please migrate to `").concat(t,"`\n").concat(a))}}function nf(e,t){return!!e&&"ArrayExpression"===e.type&&(null==t||nc(e,t))}function nh(e,t){return!!e&&"AssignmentExpression"===e.type&&(null==t||nc(e,t))}function nm(e,t){return!!e&&"BinaryExpression"===e.type&&(null==t||nc(e,t))}function ny(e,t){return!!e&&"InterpreterDirective"===e.type&&(null==t||nc(e,t))}function nv(e,t){return!!e&&"Directive"===e.type&&(null==t||nc(e,t))}function ng(e,t){return!!e&&"DirectiveLiteral"===e.type&&(null==t||nc(e,t))}function nb(e,t){return!!e&&"BlockStatement"===e.type&&(null==t||nc(e,t))}function nS(e,t){return!!e&&"BreakStatement"===e.type&&(null==t||nc(e,t))}function nx(e,t){return!!e&&"CallExpression"===e.type&&(null==t||nc(e,t))}function nT(e,t){return!!e&&"CatchClause"===e.type&&(null==t||nc(e,t))}function nE(e,t){return!!e&&"ConditionalExpression"===e.type&&(null==t||nc(e,t))}function n_(e,t){return!!e&&"ContinueStatement"===e.type&&(null==t||nc(e,t))}function nP(e,t){return!!e&&"DebuggerStatement"===e.type&&(null==t||nc(e,t))}function nA(e,t){return!!e&&"DoWhileStatement"===e.type&&(null==t||nc(e,t))}function nk(e,t){return!!e&&"EmptyStatement"===e.type&&(null==t||nc(e,t))}function nC(e,t){return!!e&&"ExpressionStatement"===e.type&&(null==t||nc(e,t))}function nw(e,t){return!!e&&"File"===e.type&&(null==t||nc(e,t))}function nI(e,t){return!!e&&"ForInStatement"===e.type&&(null==t||nc(e,t))}function nN(e,t){return!!e&&"ForStatement"===e.type&&(null==t||nc(e,t))}function nO(e,t){return!!e&&"FunctionDeclaration"===e.type&&(null==t||nc(e,t))}function nD(e,t){return!!e&&"FunctionExpression"===e.type&&(null==t||nc(e,t))}function nL(e,t){return!!e&&"Identifier"===e.type&&(null==t||nc(e,t))}function nM(e,t){return!!e&&"IfStatement"===e.type&&(null==t||nc(e,t))}function nF(e,t){return!!e&&"LabeledStatement"===e.type&&(null==t||nc(e,t))}function nB(e,t){return!!e&&"StringLiteral"===e.type&&(null==t||nc(e,t))}function nR(e,t){return!!e&&"NumericLiteral"===e.type&&(null==t||nc(e,t))}function nj(e,t){return!!e&&"NullLiteral"===e.type&&(null==t||nc(e,t))}function nU(e,t){return!!e&&"BooleanLiteral"===e.type&&(null==t||nc(e,t))}function nV(e,t){return!!e&&"RegExpLiteral"===e.type&&(null==t||nc(e,t))}function nW(e,t){return!!e&&"LogicalExpression"===e.type&&(null==t||nc(e,t))}function nq(e,t){return!!e&&"MemberExpression"===e.type&&(null==t||nc(e,t))}function nJ(e,t){return!!e&&"NewExpression"===e.type&&(null==t||nc(e,t))}function nX(e,t){return!!e&&"Program"===e.type&&(null==t||nc(e,t))}function nG(e,t){return!!e&&"ObjectExpression"===e.type&&(null==t||nc(e,t))}function nK(e,t){return!!e&&"ObjectMethod"===e.type&&(null==t||nc(e,t))}function nH(e,t){return!!e&&"ObjectProperty"===e.type&&(null==t||nc(e,t))}function nz(e,t){return!!e&&"RestElement"===e.type&&(null==t||nc(e,t))}function n$(e,t){return!!e&&"ReturnStatement"===e.type&&(null==t||nc(e,t))}function nY(e,t){return!!e&&"SequenceExpression"===e.type&&(null==t||nc(e,t))}function nQ(e,t){return!!e&&"ParenthesizedExpression"===e.type&&(null==t||nc(e,t))}function nZ(e,t){return!!e&&"SwitchCase"===e.type&&(null==t||nc(e,t))}function n0(e,t){return!!e&&"SwitchStatement"===e.type&&(null==t||nc(e,t))}function n1(e,t){return!!e&&"ThisExpression"===e.type&&(null==t||nc(e,t))}function n2(e,t){return!!e&&"ThrowStatement"===e.type&&(null==t||nc(e,t))}function n3(e,t){return!!e&&"TryStatement"===e.type&&(null==t||nc(e,t))}function n4(e,t){return!!e&&"UnaryExpression"===e.type&&(null==t||nc(e,t))}function n5(e,t){return!!e&&"UpdateExpression"===e.type&&(null==t||nc(e,t))}function n8(e,t){return!!e&&"VariableDeclaration"===e.type&&(null==t||nc(e,t))}function n6(e,t){return!!e&&"VariableDeclarator"===e.type&&(null==t||nc(e,t))}function n9(e,t){return!!e&&"WhileStatement"===e.type&&(null==t||nc(e,t))}function n7(e,t){return!!e&&"WithStatement"===e.type&&(null==t||nc(e,t))}function ie(e,t){return!!e&&"AssignmentPattern"===e.type&&(null==t||nc(e,t))}function it(e,t){return!!e&&"ArrayPattern"===e.type&&(null==t||nc(e,t))}function ir(e,t){return!!e&&"ArrowFunctionExpression"===e.type&&(null==t||nc(e,t))}function ii(e,t){return!!e&&"ClassBody"===e.type&&(null==t||nc(e,t))}function ia(e,t){return!!e&&"ClassExpression"===e.type&&(null==t||nc(e,t))}function is(e,t){return!!e&&"ClassDeclaration"===e.type&&(null==t||nc(e,t))}function io(e,t){return!!e&&"ExportAllDeclaration"===e.type&&(null==t||nc(e,t))}function iu(e,t){return!!e&&"ExportDefaultDeclaration"===e.type&&(null==t||nc(e,t))}function il(e,t){return!!e&&"ExportNamedDeclaration"===e.type&&(null==t||nc(e,t))}function ic(e,t){return!!e&&"ExportSpecifier"===e.type&&(null==t||nc(e,t))}function ip(e,t){return!!e&&"ForOfStatement"===e.type&&(null==t||nc(e,t))}function id(e,t){return!!e&&"ImportDeclaration"===e.type&&(null==t||nc(e,t))}function ih(e,t){return!!e&&"ImportDefaultSpecifier"===e.type&&(null==t||nc(e,t))}function im(e,t){return!!e&&"ImportNamespaceSpecifier"===e.type&&(null==t||nc(e,t))}function iy(e,t){return!!e&&"ImportSpecifier"===e.type&&(null==t||nc(e,t))}function iv(e,t){return!!e&&"ImportExpression"===e.type&&(null==t||nc(e,t))}function ig(e,t){return!!e&&"MetaProperty"===e.type&&(null==t||nc(e,t))}function ib(e,t){return!!e&&"ClassMethod"===e.type&&(null==t||nc(e,t))}function iS(e,t){return!!e&&"ObjectPattern"===e.type&&(null==t||nc(e,t))}function ix(e,t){return!!e&&"SpreadElement"===e.type&&(null==t||nc(e,t))}function iT(e,t){return!!e&&"Super"===e.type&&(null==t||nc(e,t))}function iE(e,t){return!!e&&"TaggedTemplateExpression"===e.type&&(null==t||nc(e,t))}function i_(e,t){return!!e&&"TemplateElement"===e.type&&(null==t||nc(e,t))}function iP(e,t){return!!e&&"TemplateLiteral"===e.type&&(null==t||nc(e,t))}function iA(e,t){return!!e&&"YieldExpression"===e.type&&(null==t||nc(e,t))}function ik(e,t){return!!e&&"AwaitExpression"===e.type&&(null==t||nc(e,t))}function iC(e,t){return!!e&&"Import"===e.type&&(null==t||nc(e,t))}function iw(e,t){return!!e&&"BigIntLiteral"===e.type&&(null==t||nc(e,t))}function iI(e,t){return!!e&&"ExportNamespaceSpecifier"===e.type&&(null==t||nc(e,t))}function iN(e,t){return!!e&&"OptionalMemberExpression"===e.type&&(null==t||nc(e,t))}function iO(e,t){return!!e&&"OptionalCallExpression"===e.type&&(null==t||nc(e,t))}function iD(e,t){return!!e&&"ClassProperty"===e.type&&(null==t||nc(e,t))}function iL(e,t){return!!e&&"ClassAccessorProperty"===e.type&&(null==t||nc(e,t))}function iM(e,t){return!!e&&"ClassPrivateProperty"===e.type&&(null==t||nc(e,t))}function iF(e,t){return!!e&&"ClassPrivateMethod"===e.type&&(null==t||nc(e,t))}function iB(e,t){return!!e&&"PrivateName"===e.type&&(null==t||nc(e,t))}function iR(e,t){return!!e&&"StaticBlock"===e.type&&(null==t||nc(e,t))}function ij(e,t){return!!e&&"AnyTypeAnnotation"===e.type&&(null==t||nc(e,t))}function iU(e,t){return!!e&&"ArrayTypeAnnotation"===e.type&&(null==t||nc(e,t))}function iV(e,t){return!!e&&"BooleanTypeAnnotation"===e.type&&(null==t||nc(e,t))}function iW(e,t){return!!e&&"BooleanLiteralTypeAnnotation"===e.type&&(null==t||nc(e,t))}function iq(e,t){return!!e&&"NullLiteralTypeAnnotation"===e.type&&(null==t||nc(e,t))}function iJ(e,t){return!!e&&"ClassImplements"===e.type&&(null==t||nc(e,t))}function iX(e,t){return!!e&&"DeclareClass"===e.type&&(null==t||nc(e,t))}function iG(e,t){return!!e&&"DeclareFunction"===e.type&&(null==t||nc(e,t))}function iK(e,t){return!!e&&"DeclareInterface"===e.type&&(null==t||nc(e,t))}function iH(e,t){return!!e&&"DeclareModule"===e.type&&(null==t||nc(e,t))}function iz(e,t){return!!e&&"DeclareModuleExports"===e.type&&(null==t||nc(e,t))}function i$(e,t){return!!e&&"DeclareTypeAlias"===e.type&&(null==t||nc(e,t))}function iY(e,t){return!!e&&"DeclareOpaqueType"===e.type&&(null==t||nc(e,t))}function iQ(e,t){return!!e&&"DeclareVariable"===e.type&&(null==t||nc(e,t))}function iZ(e,t){return!!e&&"DeclareExportDeclaration"===e.type&&(null==t||nc(e,t))}function i0(e,t){return!!e&&"DeclareExportAllDeclaration"===e.type&&(null==t||nc(e,t))}function i1(e,t){return!!e&&"DeclaredPredicate"===e.type&&(null==t||nc(e,t))}function i2(e,t){return!!e&&"ExistsTypeAnnotation"===e.type&&(null==t||nc(e,t))}function i3(e,t){return!!e&&"FunctionTypeAnnotation"===e.type&&(null==t||nc(e,t))}function i4(e,t){return!!e&&"FunctionTypeParam"===e.type&&(null==t||nc(e,t))}function i5(e,t){return!!e&&"GenericTypeAnnotation"===e.type&&(null==t||nc(e,t))}function i8(e,t){return!!e&&"InferredPredicate"===e.type&&(null==t||nc(e,t))}function i6(e,t){return!!e&&"InterfaceExtends"===e.type&&(null==t||nc(e,t))}function i9(e,t){return!!e&&"InterfaceDeclaration"===e.type&&(null==t||nc(e,t))}function i7(e,t){return!!e&&"InterfaceTypeAnnotation"===e.type&&(null==t||nc(e,t))}function ae(e,t){return!!e&&"IntersectionTypeAnnotation"===e.type&&(null==t||nc(e,t))}function at(e,t){return!!e&&"MixedTypeAnnotation"===e.type&&(null==t||nc(e,t))}function ar(e,t){return!!e&&"EmptyTypeAnnotation"===e.type&&(null==t||nc(e,t))}function an(e,t){return!!e&&"NullableTypeAnnotation"===e.type&&(null==t||nc(e,t))}function ai(e,t){return!!e&&"NumberLiteralTypeAnnotation"===e.type&&(null==t||nc(e,t))}function aa(e,t){return!!e&&"NumberTypeAnnotation"===e.type&&(null==t||nc(e,t))}function as(e,t){return!!e&&"ObjectTypeAnnotation"===e.type&&(null==t||nc(e,t))}function ao(e,t){return!!e&&"ObjectTypeInternalSlot"===e.type&&(null==t||nc(e,t))}function au(e,t){return!!e&&"ObjectTypeCallProperty"===e.type&&(null==t||nc(e,t))}function al(e,t){return!!e&&"ObjectTypeIndexer"===e.type&&(null==t||nc(e,t))}function ac(e,t){return!!e&&"ObjectTypeProperty"===e.type&&(null==t||nc(e,t))}function ap(e,t){return!!e&&"ObjectTypeSpreadProperty"===e.type&&(null==t||nc(e,t))}function ad(e,t){return!!e&&"OpaqueType"===e.type&&(null==t||nc(e,t))}function af(e,t){return!!e&&"QualifiedTypeIdentifier"===e.type&&(null==t||nc(e,t))}function ah(e,t){return!!e&&"StringLiteralTypeAnnotation"===e.type&&(null==t||nc(e,t))}function am(e,t){return!!e&&"StringTypeAnnotation"===e.type&&(null==t||nc(e,t))}function ay(e,t){return!!e&&"SymbolTypeAnnotation"===e.type&&(null==t||nc(e,t))}function av(e,t){return!!e&&"ThisTypeAnnotation"===e.type&&(null==t||nc(e,t))}function ag(e,t){return!!e&&"TupleTypeAnnotation"===e.type&&(null==t||nc(e,t))}function ab(e,t){return!!e&&"TypeofTypeAnnotation"===e.type&&(null==t||nc(e,t))}function aS(e,t){return!!e&&"TypeAlias"===e.type&&(null==t||nc(e,t))}function ax(e,t){return!!e&&"TypeAnnotation"===e.type&&(null==t||nc(e,t))}function aT(e,t){return!!e&&"TypeCastExpression"===e.type&&(null==t||nc(e,t))}function aE(e,t){return!!e&&"TypeParameter"===e.type&&(null==t||nc(e,t))}function a_(e,t){return!!e&&"TypeParameterDeclaration"===e.type&&(null==t||nc(e,t))}function aP(e,t){return!!e&&"TypeParameterInstantiation"===e.type&&(null==t||nc(e,t))}function aA(e,t){return!!e&&"UnionTypeAnnotation"===e.type&&(null==t||nc(e,t))}function ak(e,t){return!!e&&"Variance"===e.type&&(null==t||nc(e,t))}function aC(e,t){return!!e&&"VoidTypeAnnotation"===e.type&&(null==t||nc(e,t))}function aw(e,t){return!!e&&"EnumDeclaration"===e.type&&(null==t||nc(e,t))}function aI(e,t){return!!e&&"EnumBooleanBody"===e.type&&(null==t||nc(e,t))}function aN(e,t){return!!e&&"EnumNumberBody"===e.type&&(null==t||nc(e,t))}function aO(e,t){return!!e&&"EnumStringBody"===e.type&&(null==t||nc(e,t))}function aD(e,t){return!!e&&"EnumSymbolBody"===e.type&&(null==t||nc(e,t))}function aL(e,t){return!!e&&"EnumBooleanMember"===e.type&&(null==t||nc(e,t))}function aM(e,t){return!!e&&"EnumNumberMember"===e.type&&(null==t||nc(e,t))}function aF(e,t){return!!e&&"EnumStringMember"===e.type&&(null==t||nc(e,t))}function aB(e,t){return!!e&&"EnumDefaultedMember"===e.type&&(null==t||nc(e,t))}function aR(e,t){return!!e&&"IndexedAccessType"===e.type&&(null==t||nc(e,t))}function aj(e,t){return!!e&&"OptionalIndexedAccessType"===e.type&&(null==t||nc(e,t))}function aU(e,t){return!!e&&"JSXAttribute"===e.type&&(null==t||nc(e,t))}function aV(e,t){return!!e&&"JSXClosingElement"===e.type&&(null==t||nc(e,t))}function aW(e,t){return!!e&&"JSXElement"===e.type&&(null==t||nc(e,t))}function aq(e,t){return!!e&&"JSXEmptyExpression"===e.type&&(null==t||nc(e,t))}function aJ(e,t){return!!e&&"JSXExpressionContainer"===e.type&&(null==t||nc(e,t))}function aX(e,t){return!!e&&"JSXSpreadChild"===e.type&&(null==t||nc(e,t))}function aG(e,t){return!!e&&"JSXIdentifier"===e.type&&(null==t||nc(e,t))}function aK(e,t){return!!e&&"JSXMemberExpression"===e.type&&(null==t||nc(e,t))}function aH(e,t){return!!e&&"JSXNamespacedName"===e.type&&(null==t||nc(e,t))}function az(e,t){return!!e&&"JSXOpeningElement"===e.type&&(null==t||nc(e,t))}function a$(e,t){return!!e&&"JSXSpreadAttribute"===e.type&&(null==t||nc(e,t))}function aY(e,t){return!!e&&"JSXText"===e.type&&(null==t||nc(e,t))}function aQ(e,t){return!!e&&"JSXFragment"===e.type&&(null==t||nc(e,t))}function aZ(e,t){return!!e&&"JSXOpeningFragment"===e.type&&(null==t||nc(e,t))}function a0(e,t){return!!e&&"JSXClosingFragment"===e.type&&(null==t||nc(e,t))}function a1(e,t){return!!e&&"Placeholder"===e.type&&(null==t||nc(e,t))}function a2(e,t){return!!e&&"V8IntrinsicIdentifier"===e.type&&(null==t||nc(e,t))}function a3(e,t){return!!e&&"ArgumentPlaceholder"===e.type&&(null==t||nc(e,t))}function a4(e,t){return!!e&&"BindExpression"===e.type&&(null==t||nc(e,t))}function a5(e,t){return!!e&&"ImportAttribute"===e.type&&(null==t||nc(e,t))}function a8(e,t){return!!e&&"Decorator"===e.type&&(null==t||nc(e,t))}function a6(e,t){return!!e&&"DoExpression"===e.type&&(null==t||nc(e,t))}function a9(e,t){return!!e&&"ExportDefaultSpecifier"===e.type&&(null==t||nc(e,t))}function a7(e,t){return!!e&&"RecordExpression"===e.type&&(null==t||nc(e,t))}function se(e,t){return!!e&&"TupleExpression"===e.type&&(null==t||nc(e,t))}function st(e,t){return!!e&&"ModuleExpression"===e.type&&(null==t||nc(e,t))}function sr(e,t){return!!e&&"TopicReference"===e.type&&(null==t||nc(e,t))}function sn(e,t){return!!e&&"PipelineTopicExpression"===e.type&&(null==t||nc(e,t))}function si(e,t){return!!e&&"PipelineBareFunction"===e.type&&(null==t||nc(e,t))}function sa(e,t){return!!e&&"PipelinePrimaryTopicReference"===e.type&&(null==t||nc(e,t))}function ss(e,t){return!!e&&"TSParameterProperty"===e.type&&(null==t||nc(e,t))}function so(e,t){return!!e&&"TSDeclareFunction"===e.type&&(null==t||nc(e,t))}function su(e,t){return!!e&&"TSDeclareMethod"===e.type&&(null==t||nc(e,t))}function sl(e,t){return!!e&&"TSQualifiedName"===e.type&&(null==t||nc(e,t))}function sc(e,t){return!!e&&"TSCallSignatureDeclaration"===e.type&&(null==t||nc(e,t))}function sp(e,t){return!!e&&"TSConstructSignatureDeclaration"===e.type&&(null==t||nc(e,t))}function sd(e,t){return!!e&&"TSPropertySignature"===e.type&&(null==t||nc(e,t))}function sf(e,t){return!!e&&"TSMethodSignature"===e.type&&(null==t||nc(e,t))}function sh(e,t){return!!e&&"TSIndexSignature"===e.type&&(null==t||nc(e,t))}function sm(e,t){return!!e&&"TSAnyKeyword"===e.type&&(null==t||nc(e,t))}function sy(e,t){return!!e&&"TSBooleanKeyword"===e.type&&(null==t||nc(e,t))}function sv(e,t){return!!e&&"TSBigIntKeyword"===e.type&&(null==t||nc(e,t))}function sg(e,t){return!!e&&"TSIntrinsicKeyword"===e.type&&(null==t||nc(e,t))}function sb(e,t){return!!e&&"TSNeverKeyword"===e.type&&(null==t||nc(e,t))}function sS(e,t){return!!e&&"TSNullKeyword"===e.type&&(null==t||nc(e,t))}function sx(e,t){return!!e&&"TSNumberKeyword"===e.type&&(null==t||nc(e,t))}function sT(e,t){return!!e&&"TSObjectKeyword"===e.type&&(null==t||nc(e,t))}function sE(e,t){return!!e&&"TSStringKeyword"===e.type&&(null==t||nc(e,t))}function s_(e,t){return!!e&&"TSSymbolKeyword"===e.type&&(null==t||nc(e,t))}function sP(e,t){return!!e&&"TSUndefinedKeyword"===e.type&&(null==t||nc(e,t))}function sA(e,t){return!!e&&"TSUnknownKeyword"===e.type&&(null==t||nc(e,t))}function sk(e,t){return!!e&&"TSVoidKeyword"===e.type&&(null==t||nc(e,t))}function sC(e,t){return!!e&&"TSThisType"===e.type&&(null==t||nc(e,t))}function sw(e,t){return!!e&&"TSFunctionType"===e.type&&(null==t||nc(e,t))}function sI(e,t){return!!e&&"TSConstructorType"===e.type&&(null==t||nc(e,t))}function sN(e,t){return!!e&&"TSTypeReference"===e.type&&(null==t||nc(e,t))}function sO(e,t){return!!e&&"TSTypePredicate"===e.type&&(null==t||nc(e,t))}function sD(e,t){return!!e&&"TSTypeQuery"===e.type&&(null==t||nc(e,t))}function sL(e,t){return!!e&&"TSTypeLiteral"===e.type&&(null==t||nc(e,t))}function sM(e,t){return!!e&&"TSArrayType"===e.type&&(null==t||nc(e,t))}function sF(e,t){return!!e&&"TSTupleType"===e.type&&(null==t||nc(e,t))}function sB(e,t){return!!e&&"TSOptionalType"===e.type&&(null==t||nc(e,t))}function sR(e,t){return!!e&&"TSRestType"===e.type&&(null==t||nc(e,t))}function sj(e,t){return!!e&&"TSNamedTupleMember"===e.type&&(null==t||nc(e,t))}function sU(e,t){return!!e&&"TSUnionType"===e.type&&(null==t||nc(e,t))}function sV(e,t){return!!e&&"TSIntersectionType"===e.type&&(null==t||nc(e,t))}function sW(e,t){return!!e&&"TSConditionalType"===e.type&&(null==t||nc(e,t))}function sq(e,t){return!!e&&"TSInferType"===e.type&&(null==t||nc(e,t))}function sJ(e,t){return!!e&&"TSParenthesizedType"===e.type&&(null==t||nc(e,t))}function sX(e,t){return!!e&&"TSTypeOperator"===e.type&&(null==t||nc(e,t))}function sG(e,t){return!!e&&"TSIndexedAccessType"===e.type&&(null==t||nc(e,t))}function sK(e,t){return!!e&&"TSMappedType"===e.type&&(null==t||nc(e,t))}function sH(e,t){return!!e&&"TSLiteralType"===e.type&&(null==t||nc(e,t))}function sz(e,t){return!!e&&"TSClassImplements"===e.type&&(null==t||nc(e,t))}function s$(e,t){return!!e&&"TSInterfaceHeritage"===e.type&&(null==t||nc(e,t))}function sY(e,t){return!!e&&"TSInterfaceDeclaration"===e.type&&(null==t||nc(e,t))}function sQ(e,t){return!!e&&"TSInterfaceBody"===e.type&&(null==t||nc(e,t))}function sZ(e,t){return!!e&&"TSTypeAliasDeclaration"===e.type&&(null==t||nc(e,t))}function s0(e,t){return!!e&&"TSInstantiationExpression"===e.type&&(null==t||nc(e,t))}function s1(e,t){return!!e&&"TSAsExpression"===e.type&&(null==t||nc(e,t))}function s2(e,t){return!!e&&"TSSatisfiesExpression"===e.type&&(null==t||nc(e,t))}function s3(e,t){return!!e&&"TSTypeAssertion"===e.type&&(null==t||nc(e,t))}function s4(e,t){return!!e&&"TSEnumDeclaration"===e.type&&(null==t||nc(e,t))}function s5(e,t){return!!e&&"TSEnumMember"===e.type&&(null==t||nc(e,t))}function s8(e,t){return!!e&&"TSModuleDeclaration"===e.type&&(null==t||nc(e,t))}function s6(e,t){return!!e&&"TSModuleBlock"===e.type&&(null==t||nc(e,t))}function s9(e,t){return!!e&&"TSImportType"===e.type&&(null==t||nc(e,t))}function s7(e,t){return!!e&&"TSImportEqualsDeclaration"===e.type&&(null==t||nc(e,t))}function oe(e,t){return!!e&&"TSExternalModuleReference"===e.type&&(null==t||nc(e,t))}function ot(e,t){return!!e&&"TSNonNullExpression"===e.type&&(null==t||nc(e,t))}function or(e,t){return!!e&&"TSExportAssignment"===e.type&&(null==t||nc(e,t))}function on(e,t){return!!e&&"TSNamespaceExportDeclaration"===e.type&&(null==t||nc(e,t))}function oi(e,t){return!!e&&"TSTypeAnnotation"===e.type&&(null==t||nc(e,t))}function oa(e,t){return!!e&&"TSTypeParameterInstantiation"===e.type&&(null==t||nc(e,t))}function os(e,t){return!!e&&"TSTypeParameterDeclaration"===e.type&&(null==t||nc(e,t))}function oo(e,t){return!!e&&"TSTypeParameter"===e.type&&(null==t||nc(e,t))}function ou(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"InterpreterDirective":case"Directive":case"DirectiveLiteral":case"BlockStatement":case"BreakStatement":case"CallExpression":case"CatchClause":case"ConditionalExpression":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"File":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Identifier":case"IfStatement":case"LabeledStatement":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"Program":case"ObjectExpression":case"ObjectMethod":case"ObjectProperty":case"RestElement":case"ReturnStatement":case"SequenceExpression":case"ParenthesizedExpression":case"SwitchCase":case"SwitchStatement":case"ThisExpression":case"ThrowStatement":case"TryStatement":case"UnaryExpression":case"UpdateExpression":case"VariableDeclaration":case"VariableDeclarator":case"WhileStatement":case"WithStatement":case"AssignmentPattern":case"ArrayPattern":case"ArrowFunctionExpression":case"ClassBody":case"ClassExpression":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportSpecifier":case"ForOfStatement":case"ImportDeclaration":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportExpression":case"MetaProperty":case"ClassMethod":case"ObjectPattern":case"SpreadElement":case"Super":case"TaggedTemplateExpression":case"TemplateElement":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"ExportNamespaceSpecifier":case"OptionalMemberExpression":case"OptionalCallExpression":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":case"StaticBlock":break;case"Placeholder":switch(e.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return!1}break;default:return!1}return null==t||nc(e,t)}function ol(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ParenthesizedExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":case"ArrowFunctionExpression":case"ClassExpression":case"ImportExpression":case"MetaProperty":case"TaggedTemplateExpression":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"OptionalMemberExpression":case"OptionalCallExpression":case"TypeCastExpression":case"JSXElement":case"JSXFragment":case"BindExpression":case"DoExpression":case"RecordExpression":case"TupleExpression":case"ModuleExpression":case"TopicReference":case"PipelineTopicExpression":case"PipelineBareFunction":case"PipelinePrimaryTopicReference":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return!1}break;default:return!1}return null==t||nc(e,t)}function oc(e,t){if(!e)return!1;switch(e.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return null==t||nc(e,t)}function op(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ClassExpression":case"ClassDeclaration":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"===e.expectedNode)break;default:return!1}return null==t||nc(e,t)}function od(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"===e.expectedNode)break;default:return!1}return null==t||nc(e,t)}function of(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"===e.expectedNode)break;default:return!1}return null==t||nc(e,t)}function oh(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ForOfStatement":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":case"TSExportAssignment":case"TSNamespaceExportDeclaration":break;case"Placeholder":switch(e.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return!1}break;default:return!1}return null==t||nc(e,t)}function om(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return!1}return null==t||nc(e,t)}function oy(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return!1}return null==t||nc(e,t)}function ov(e,t){if(!e)return!1;switch(e.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return null==t||nc(e,t)}function og(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return!1}return null==t||nc(e,t)}function ob(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return null==t||nc(e,t)}function oS(e,t){if(!e)return!1;switch(e.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return null==t||nc(e,t)}function ox(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return null==t||nc(e,t)}function oT(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return null==t||nc(e,t)}function oE(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return null==t||nc(e,t)}function o_(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return!1}return null==t||nc(e,t)}function oP(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"ArrowFunctionExpression":case"BigIntLiteral":break;case"Placeholder":if("StringLiteral"===e.expectedNode)break;default:return!1}return null==t||nc(e,t)}function oA(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"VariableDeclaration":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":break;case"Placeholder":if("Declaration"===e.expectedNode)break;default:return!1}return null==t||nc(e,t)}function ok(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return null==t||nc(e,t)}function oC(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSParameterProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return null==t||nc(e,t)}function ow(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if("Identifier"===e.expectedNode)break;default:return!1}return null==t||nc(e,t)}function oI(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":break;case"Placeholder":if("StringLiteral"===e.expectedNode)break;default:return!1}return null==t||nc(e,t)}function oN(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return!1}return null==t||nc(e,t)}function oO(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return null==t||nc(e,t)}function oD(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return null==t||nc(e,t)}function oL(e,t){if(!e)return!1;switch(e.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return!1}return null==t||nc(e,t)}function oM(e,t){if(!e)return!1;switch(e.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return null==t||nc(e,t)}function oF(e,t){if(!e)return!1;switch(e.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":break;case"Placeholder":if("Pattern"===e.expectedNode)break;default:return!1}return null==t||nc(e,t)}function oB(e,t){if(!e)return!1;switch(e.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return null==t||nc(e,t)}function oR(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return!1}return null==t||nc(e,t)}function oj(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return null==t||nc(e,t)}function oU(e,t){if(!e)return!1;switch(e.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return!1}return null==t||nc(e,t)}function oV(e,t){return!!e&&"ClassAccessorProperty"===e.type&&(null==t||nc(e,t))}function oW(e,t){if(!e)return!1;switch(e.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return null==t||nc(e,t)}function oq(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ClassImplements":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"DeclaredPredicate":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"FunctionTypeParam":case"GenericTypeAnnotation":case"InferredPredicate":case"InterfaceExtends":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":case"OpaqueType":case"QualifiedTypeIdentifier":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"TypeAlias":case"TypeAnnotation":case"TypeCastExpression":case"TypeParameter":case"TypeParameterDeclaration":case"TypeParameterInstantiation":case"UnionTypeAnnotation":case"Variance":case"VoidTypeAnnotation":case"EnumDeclaration":case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return null==t||nc(e,t)}function oJ(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"UnionTypeAnnotation":case"VoidTypeAnnotation":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return null==t||nc(e,t)}function oX(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"BooleanTypeAnnotation":case"NullLiteralTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NumberTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"VoidTypeAnnotation":break;default:return!1}return null==t||nc(e,t)}function oG(e,t){if(!e)return!1;switch(e.type){case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":break;default:return!1}return null==t||nc(e,t)}function oK(e,t){if(!e)return!1;switch(e.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return!1}return null==t||nc(e,t)}function oH(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return!1}return null==t||nc(e,t)}function oz(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return!1}return null==t||nc(e,t)}function o$(e,t){if(!e)return!1;switch(e.type){case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXEmptyExpression":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXIdentifier":case"JSXMemberExpression":case"JSXNamespacedName":case"JSXOpeningElement":case"JSXSpreadAttribute":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":break;default:return!1}return null==t||nc(e,t)}function oY(e,t){if(!e)return!1;switch(e.type){case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return null==t||nc(e,t)}function oQ(e,t){if(!e)return!1;switch(e.type){case"TSParameterProperty":case"TSDeclareFunction":case"TSDeclareMethod":case"TSQualifiedName":case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSNamedTupleMember":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSLiteralType":case"TSClassImplements":case"TSInterfaceHeritage":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSEnumDeclaration":case"TSEnumMember":case"TSModuleDeclaration":case"TSModuleBlock":case"TSImportType":case"TSImportEqualsDeclaration":case"TSExternalModuleReference":case"TSNonNullExpression":case"TSExportAssignment":case"TSNamespaceExportDeclaration":case"TSTypeAnnotation":case"TSTypeParameterInstantiation":case"TSTypeParameterDeclaration":case"TSTypeParameter":break;default:return!1}return null==t||nc(e,t)}function oZ(e,t){if(!e)return!1;switch(e.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return!1}return null==t||nc(e,t)}function o0(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSLiteralType":case"TSClassImplements":case"TSInterfaceHeritage":case"TSImportType":break;default:return!1}return null==t||nc(e,t)}function o1(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSLiteralType":break;default:return!1}return null==t||nc(e,t)}function o2(e,t){return nd("isNumberLiteral","isNumericLiteral"),!!e&&"NumberLiteral"===e.type&&(null==t||nc(e,t))}function o3(e,t){return nd("isRegexLiteral","isRegExpLiteral"),!!e&&"RegexLiteral"===e.type&&(null==t||nc(e,t))}function o4(e,t){return nd("isRestProperty","isRestElement"),!!e&&"RestProperty"===e.type&&(null==t||nc(e,t))}function o5(e,t){return nd("isSpreadProperty","isSpreadElement"),!!e&&"SpreadProperty"===e.type&&(null==t||nc(e,t))}function o8(e,t){return nd("isModuleDeclaration","isImportOrExportDeclaration"),oR(e,t)}function o6(e,t,r){if(!nq(e))return!1;var n,i=Array.isArray(t)?t:t.split("."),a=[];for(n=e;nq(n);n=n.object)a.push(n.property);if(a.push(n),a.length<i.length||!r&&a.length>i.length)return!1;for(var s=0,o=a.length-1;s<i.length;s++,o--){var u=a[o],l=void 0;if(nL(u))l=u.name;else if(nB(u))l=u.value;else{if(!n1(u))return!1;l="this"}if(i[s]!==l)return!1}return!0}function o9(e,t){var r=e.split(".");return function(e){return o6(e,r,t)}}var o7=o9("React.Component");function ue(e,t){if(e===t)return!0;if(null==e||uP[t])return!1;var r=uA[t];if(r){if(r[0]===e)return!0;var n=!0,i=!1,a=void 0;try{for(var s,o=r[Symbol.iterator]();!(n=(s=o.next()).done);n=!0){var u=s.value;if(e===u)return!0}}catch(e){i=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}}return!1}function ut(e,t){if(e===t)return!0;var r=lt[e];if(r){var n=!0,i=!1,a=void 0;try{for(var s,o=r[Symbol.iterator]();!(n=(s=o.next()).done);n=!0){var u=s.value;if(t===u)return!0}}catch(e){i=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}}return!1}function ur(e,t,r){return!!t&&(ue(t.type,e)?void 0===r||nc(t,r):!r&&"Placeholder"===t.type&&e in uA&&ut(t.expectedNode,e))}function un(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return!("string"!=typeof e||t&&(na.has(e)||nu(e,!0)))&&function(e){for(var t=!0,r=0;r<e.length;r++){var n,i=e.charCodeAt(r);if((64512&i)==55296&&r+1<e.length){var a=e.charCodeAt(++r);(64512&a)==56320&&(i=65536+((1023&i)<<10)+(1023&a))}if(t){if(t=!1,!((n=i)<65?36===n:n<=90||(n<97?95===n:n<=122||(n<=65535?n>=170&&r7.test(String.fromCharCode(n)):nn(n,nt)))))return!1}else if(!ni(i))return!1}return!t}(e)}var ui=["consequent","body","alternate"],ua=["body","expressions"],us=["left","init"],uo=["leadingComments","trailingComments","innerComments"],uu=["||","&&","??"],ul=["++","--"],uc=[">","<",">=","<="],up=["==","===","!=","!=="],ud=r_(up).concat(["in","instanceof"]),uf=r_(ud).concat(r_(uc)),uh=["-","/","%","*","**","&","|",">>",">>>","<<","^"],um=["+"].concat(r_(uh),r_(uf),["|>"]),uy=["=","+="].concat(r_(uh.map(function(e){return e+"="})),r_(uu.map(function(e){return e+"="}))),uv=["delete","!"],ug=["+","-","~"],ub=["typeof"],uS=["void","throw"].concat(r_(uv),r_(ug),r_(ub)),ux={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]},uT=Symbol.for("var used to be block scoped"),uE=Symbol.for("should not be considered a local binding"),u_={},uP={},uA={},uk={},uC={},uw={},uI={};function uN(e){return Array.isArray(e)?"array":null===e?"null":void 0===e?"undefined":rP(e)}function uO(e){return{validate:e}}function uD(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return uO(uV.apply(void 0,r_(t)))}function uL(e){return{validate:e,optional:!0}}function uM(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return{validate:uV.apply(void 0,r_(t)),optional:!0}}function uF(e){return uG(uq("array"),uj(e))}function uB(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return uF(uV.apply(void 0,r_(t)))}function uR(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return uO(uB.apply(void 0,r_(t)))}function uj(e){var t=eV.env.BABEL_TYPES_8_BREAKING?l9:function(){};function r(r,n,i){if(Array.isArray(i))for(var a=0;a<i.length;a++){var s="".concat(n,"[").concat(a,"]"),o=i[a];e(r,s,o),t(r,s,o)}}return r.each=e,r}function uU(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];function n(e,r,n){if(!t.includes(n))throw TypeError("Property ".concat(r," expected value to be one of ").concat(JSON.stringify(t)," but got ").concat(JSON.stringify(n)))}return n.oneOf=t,n}function uV(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];function n(e,r,n){var i=!0,a=!1,s=void 0;try{for(var o,u=t[Symbol.iterator]();!(i=(o=u.next()).done);i=!0){var l=o.value;if(ur(l,n)){l9(e,r,n);return}}}catch(e){a=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(a)throw s}}throw TypeError("Property ".concat(r," of ").concat(e.type," expected node to be of a type ").concat(JSON.stringify(t)," but instead got ").concat(JSON.stringify(null==n?void 0:n.type)))}return n.oneOfNodeTypes=t,n}function uW(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];function n(e,r,n){var i=!0,a=!1,s=void 0;try{for(var o,u=t[Symbol.iterator]();!(i=(o=u.next()).done);i=!0){var l=o.value;if(uN(n)===l||ur(l,n)){l9(e,r,n);return}}}catch(e){a=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(a)throw s}}throw TypeError("Property ".concat(r," of ").concat(e.type," expected node to be of a type ").concat(JSON.stringify(t)," but instead got ").concat(JSON.stringify(null==n?void 0:n.type)))}return n.oneOfNodeOrValueTypes=t,n}function uq(e){function t(t,r,n){if(uN(n)!==e)throw TypeError("Property ".concat(r," expected type of ").concat(e," but got ").concat(uN(n)))}return t.type=e,t}function uJ(e){function t(t,r,n){var i=[],a=!0,s=!1,o=void 0;try{for(var u,l=Object.keys(e)[Symbol.iterator]();!(a=(u=l.next()).done);a=!0){var c=u.value;try{l6(t,c,n[c],e[c])}catch(e){if(rS(e,TypeError)){i.push(e.message);continue}throw e}}}catch(e){s=!0,o=e}finally{try{a||null==l.return||l.return()}finally{if(s)throw o}}if(i.length)throw TypeError("Property ".concat(r," of ").concat(t.type," expected to have the following:\n").concat(i.join("\n")))}return t.shapeOf=e,t}function uX(){return function(e){for(var t=e;e;){var r=t.type;if("OptionalCallExpression"===r){if(t.optional)return;t=t.callee;continue}if("OptionalMemberExpression"===r){if(t.optional)return;t=t.object;continue}break}throw TypeError("Non-optional ".concat(e.type," must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ").concat(null==t?void 0:t.type))}}function uG(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];function n(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];var i=!0,a=!1,s=void 0;try{for(var o,u=t[Symbol.iterator]();!(i=(o=u.next()).done);i=!0)o.value.apply(void 0,r_(r))}catch(e){a=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(a)throw s}}}if(n.chainOf=t,t.length>=2&&"type"in t[0]&&"array"===t[0].type&&!("each"in t[1]))throw Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return n}var uK=/* @__PURE__ */new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"]),uH=/* @__PURE__ */new Set(["default","optional","deprecated","validate"]),uz={};function u$(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){var r,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.aliases;a||(i.inherits&&(a=null===(n=uz[i.inherits].aliases)||void 0===n?void 0:n.slice()),null!=a||(a=[]),i.aliases=a);var s=t.filter(function(e){return!a.includes(e)});(r=a).unshift.apply(r,r_(s)),uY(e,i)}}function uY(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.inherits&&uz[t.inherits]||{},n=t.fields;if(!n&&(n={},r.fields)){var i=Object.getOwnPropertyNames(r.fields),a=!0,s=!1,o=void 0;try{for(var u,l=i[Symbol.iterator]();!(a=(u=l.next()).done);a=!0){var c=u.value,p=r.fields[c],d=p.default;if(Array.isArray(d)?d.length>0:d&&(void 0===d?"undefined":rP(d))==="object")throw Error("field defaults can only be primitives or empty arrays currently");n[c]={default:Array.isArray(d)?[]:d,optional:p.optional,deprecated:p.deprecated,validate:p.validate}}}catch(e){s=!0,o=e}finally{try{a||null==l.return||l.return()}finally{if(s)throw o}}}var f=t.visitor||r.visitor||[],h=t.aliases||r.aliases||[],m=t.builder||r.builder||t.visitor||[],y=!0,v=!1,g=void 0;try{for(var b,S=Object.keys(t)[Symbol.iterator]();!(y=(b=S.next()).done);y=!0){var x=b.value;if(!uK.has(x))throw Error('Unknown type option "'.concat(x,'" on ').concat(e))}}catch(e){v=!0,g=e}finally{try{y||null==S.return||S.return()}finally{if(v)throw g}}t.deprecatedAlias&&(uw[t.deprecatedAlias]=e);var T=!0,E=!1,_=void 0;try{for(var P,A=f.concat(m)[Symbol.iterator]();!(T=(P=A.next()).done);T=!0){var k=P.value;n[k]=n[k]||{}}}catch(e){E=!0,_=e}finally{try{T||null==A.return||A.return()}finally{if(E)throw _}}var C=!0,w=!1,I=void 0;try{for(var N,O=Object.keys(n)[Symbol.iterator]();!(C=(N=O.next()).done);C=!0){var D=N.value,L=n[D];void 0===L.default||m.includes(D)||(L.optional=!0),void 0===L.default?L.default=null:L.validate||null==L.default||(L.validate=uq(uN(L.default)));var M=!0,F=!1,B=void 0;try{for(var R,j=Object.keys(L)[Symbol.iterator]();!(M=(R=j.next()).done);M=!0){var U=R.value;if(!uH.has(U))throw Error('Unknown field key "'.concat(U,'" on ').concat(e,".").concat(D))}}catch(e){F=!0,B=e}finally{try{M||null==j.return||j.return()}finally{if(F)throw B}}}}catch(e){w=!0,I=e}finally{try{C||null==O.return||O.return()}finally{if(w)throw I}}u_[e]=t.visitor=f,uC[e]=t.builder=m,uk[e]=t.fields=n,uP[e]=t.aliases=h,h.forEach(function(t){uA[t]=uA[t]||[],uA[t].push(e)}),t.validate&&(uI[e]=t.validate),uz[e]=t}var uQ=/* @__PURE__ */Object.freeze({__proto__:null,ALIAS_KEYS:uP,BUILDER_KEYS:uC,DEPRECATED_KEYS:uw,FLIPPED_ALIAS_KEYS:uA,NODE_FIELDS:uk,NODE_PARENT_VALIDATIONS:uI,VISITOR_KEYS:u_,arrayOf:uF,arrayOfType:uB,assertEach:uj,assertNodeOrValueType:uW,assertNodeType:uV,assertOneOf:uU,assertOptionalChainStart:uX,assertShape:uJ,assertValueType:uq,chain:uG,default:uY,defineAliasedType:u$,validate:uO,validateArrayOfType:uR,validateOptional:uL,validateOptionalType:uM,validateType:uD}),uZ=u$("Standardized");uZ("ArrayExpression",{fields:{elements:{validate:uF(uW("null","Expression","SpreadElement")),default:void 0}},visitor:["elements"],aliases:["Expression"]}),uZ("AssignmentExpression",{fields:{operator:{validate:Object.assign((la=uU.apply(void 0,r_(uy)),ls=uU("="),function(e,t,r){(ur("Pattern",e.left)?ls:la)(e,t,r)}),{type:"string"})},left:{validate:uV("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:uV("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]}),uZ("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:uU.apply(void 0,r_(um))},left:{validate:(lo=uV("Expression"),lu=uV("Expression","PrivateName"),Object.assign(function(e,t,r){("in"===e.operator?lu:lo)(e,t,r)},{oneOfNodeTypes:["Expression","PrivateName"]}))},right:{validate:uV("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]}),uZ("InterpreterDirective",{builder:["value"],fields:{value:{validate:uq("string")}}}),uZ("Directive",{visitor:["value"],fields:{value:{validate:uV("DirectiveLiteral")}}}),uZ("DirectiveLiteral",{builder:["value"],fields:{value:{validate:uq("string")}}}),uZ("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:uB("Directive"),default:[]},body:uR("Statement")},aliases:["Scopable","BlockParent","Block","Statement"]}),uZ("BreakStatement",{visitor:["label"],fields:{label:{validate:uV("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),uZ("CallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:uV("Expression","Super","V8IntrinsicIdentifier")},arguments:uR("Expression","SpreadElement","ArgumentPlaceholder")},{},{typeArguments:{validate:uV("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:uV("TSTypeParameterInstantiation"),optional:!0}})}),uZ("CatchClause",{visitor:["param","body"],fields:{param:{validate:uV("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:uV("BlockStatement")}},aliases:["Scopable","BlockParent"]}),uZ("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:uV("Expression")},consequent:{validate:uV("Expression")},alternate:{validate:uV("Expression")}},aliases:["Expression","Conditional"]}),uZ("ContinueStatement",{visitor:["label"],fields:{label:{validate:uV("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),uZ("DebuggerStatement",{aliases:["Statement"]}),uZ("DoWhileStatement",{builder:["test","body"],visitor:["body","test"],fields:{test:{validate:uV("Expression")},body:{validate:uV("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]}),uZ("EmptyStatement",{aliases:["Statement"]}),uZ("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:uV("Expression")}},aliases:["Statement","ExpressionWrapper"]}),uZ("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:uV("Program")},comments:{validate:uj(uV("CommentBlock","CommentLine")),optional:!0},tokens:{validate:uj(Object.assign(function(){},{type:"any"})),optional:!0}}}),uZ("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:uV("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:uV("Expression")},body:{validate:uV("Statement")}}}),uZ("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:uV("VariableDeclaration","Expression"),optional:!0},test:{validate:uV("Expression"),optional:!0},update:{validate:uV("Expression"),optional:!0},body:{validate:uV("Statement")}}});var u0=function(){return{params:uR("Identifier","Pattern","RestElement"),generator:{default:!1},async:{default:!1}}},u1=function(){return{returnType:{validate:uV("TypeAnnotation","TSTypeAnnotation"),optional:!0},typeParameters:{validate:uV("TypeParameterDeclaration","TSTypeParameterDeclaration"),optional:!0}}},u2=function(){return Object.assign({},u0(),{declare:{validate:uq("boolean"),optional:!0},id:{validate:uV("Identifier"),optional:!0}})};uZ("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","typeParameters","params","returnType","body"],fields:Object.assign({},u2(),u1(),{body:{validate:uV("BlockStatement")},predicate:{validate:uV("DeclaredPredicate","InferredPredicate"),optional:!0}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:(ll=uV("Identifier"),function(e,t,r){ur("ExportDefaultDeclaration",e)||ll(r,"id",r.id)})}),uZ("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},u0(),u1(),{id:{validate:uV("Identifier"),optional:!0},body:{validate:uV("BlockStatement")},predicate:{validate:uV("DeclaredPredicate","InferredPredicate"),optional:!0}})});var u3=function(){return{typeAnnotation:{validate:uV("TypeAnnotation","TSTypeAnnotation"),optional:!0},optional:{validate:uq("boolean"),optional:!0},decorators:{validate:uB("Decorator"),optional:!0}}};uZ("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","PatternLike","LVal","TSEntityName"],fields:Object.assign({},u3(),{name:{validate:uG(uq("string"),Object.assign(function(e,t,r){if(!un(r,!1))throw TypeError('"'.concat(r,'" is not a valid identifier name'))},{type:"string"}))}}),validate:function(e,t,r){var n=/\.(\w+)$/.exec(t);if(n){var i,a=rT(n,2)[1],s={computed:!1};if("property"===a){if(ur("MemberExpression",e,s)||ur("OptionalMemberExpression",e,s))return}else if("key"===a){if(ur("Property",e,s)||ur("Method",e,s))return}else if("exported"===a){if(ur("ExportSpecifier",e))return}else if("imported"===a){if(ur("ImportSpecifier",e,{imported:r}))return}else if("meta"===a&&ur("MetaProperty",e,{meta:r}))return;if(i=r.name,(na.has(i)||no(r.name,!1))&&"this"!==r.name)throw TypeError('"'.concat(r.name,'" is not a valid identifier'))}}}),uZ("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:uV("Expression")},consequent:{validate:uV("Statement")},alternate:{optional:!0,validate:uV("Statement")}}}),uZ("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:uV("Identifier")},body:{validate:uV("Statement")}}}),uZ("StringLiteral",{builder:["value"],fields:{value:{validate:uq("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),uZ("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:uG(uq("number"),Object.assign(function(e,t,r){if(1/r<0||!Number.isFinite(r)){var n=Error("NumericLiterals must be non-negative finite numbers. You can use t.valueToNode(".concat(r,") instead."));if(!Error().stack.includes("regenerator"))throw n}},{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]}),uZ("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]}),uZ("BooleanLiteral",{builder:["value"],fields:{value:{validate:uq("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]}),uZ("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:uq("string")},flags:{validate:uG(uq("string"),Object.assign(function(e,t,r){var n=/[^gimsuy]/.exec(r);if(n)throw TypeError('"'.concat(n[0],'" is not a valid RegExp flag'))},{type:"string"})),default:""}}}),uZ("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:uU.apply(void 0,r_(uu))},left:{validate:uV("Expression")},right:{validate:uV("Expression")}}}),uZ("MemberExpression",{builder:["object","property","computed"].concat(r_([])),visitor:["object","property"],aliases:["Expression","LVal"],fields:Object.assign({object:{validate:uV("Expression","Super")},property:{validate:(lc=uV("Identifier","PrivateName"),lp=uV("Expression"),(ld=function(e,t,r){(e.computed?lp:lc)(e,t,r)}).oneOfNodeTypes=["Expression","Identifier","PrivateName"],ld)},computed:{default:!1}},{})}),uZ("NewExpression",{inherits:"CallExpression"}),uZ("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:uU("script","module"),default:"script"},interpreter:{validate:uV("InterpreterDirective"),default:null,optional:!0},directives:{validate:uB("Directive"),default:[]},body:uR("Statement")},aliases:["Scopable","BlockParent","Block"]}),uZ("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:uR("ObjectMethod","ObjectProperty","SpreadElement")}}),uZ("ObjectMethod",{builder:["kind","key","params","body","computed","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"],fields:Object.assign({},u0(),u1(),{kind:Object.assign({validate:uU("method","get","set")},{}),computed:{default:!1},key:{validate:(lf=uV("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),lh=uV("Expression"),(lm=function(e,t,r){(e.computed?lh:lf)(e,t,r)}).oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"],lm)},decorators:{validate:uB("Decorator"),optional:!0},body:{validate:uV("BlockStatement")}}),aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]}),uZ("ObjectProperty",{builder:["key","value","computed","shorthand"].concat(r_([])),fields:{computed:{default:!1},key:{validate:(ly=uV("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),lv=uV("Expression"),Object.assign(function(e,t,r){(e.computed?lv:ly)(e,t,r)},{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"]}))},value:{validate:uV("Expression","PatternLike")},shorthand:{validate:uG(uq("boolean"),Object.assign(function(e,t,r){if(r){if(e.computed)throw TypeError("Property shorthand of ObjectProperty cannot be true if computed is true");if(!ur("Identifier",e.key))throw TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")}},{type:"boolean"})),default:!1},decorators:{validate:uB("Decorator"),optional:!0}},visitor:["key","value","decorators"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:(lg=uV("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),lb=uV("Expression"),function(e,t,r){(ur("ObjectPattern",e)?lg:lb)(r,"value",r.value)})}),uZ("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["LVal","PatternLike"],deprecatedAlias:"RestProperty",fields:Object.assign({},u3(),{argument:{validate:uV("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")}}),validate:function(e,t){var r=/(\w+)\[(\d+)\]/.exec(t);if(!r)throw Error("Internal Babel error: malformed key.");var n=rT(r,3),i=n[1],a=n[2];if(e[i].length>+a+1)throw TypeError("RestElement must be last element of ".concat(i))}}),uZ("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:uV("Expression"),optional:!0}}}),uZ("SequenceExpression",{visitor:["expressions"],fields:{expressions:uR("Expression")},aliases:["Expression"]}),uZ("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:uV("Expression")}}}),uZ("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:uV("Expression"),optional:!0},consequent:uR("Statement")}}),uZ("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:uV("Expression")},cases:uR("SwitchCase")}}),uZ("ThisExpression",{aliases:["Expression"]}),uZ("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:uV("Expression")}}}),uZ("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:uG(uV("BlockStatement"),Object.assign(function(e){if(!e.handler&&!e.finalizer)throw TypeError("TryStatement expects either a handler or finalizer, or both")},{oneOfNodeTypes:["BlockStatement"]}))},handler:{optional:!0,validate:uV("CatchClause")},finalizer:{optional:!0,validate:uV("BlockStatement")}}}),uZ("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:uV("Expression")},operator:{validate:uU.apply(void 0,r_(uS))}},visitor:["argument"],aliases:["UnaryLike","Expression"]}),uZ("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:uV("Identifier","MemberExpression")},operator:{validate:uU.apply(void 0,r_(ul))}},visitor:["argument"],aliases:["Expression"]}),uZ("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:uq("boolean"),optional:!0},kind:{validate:uU("var","let","const","using","await using")},declarations:uR("VariableDeclarator")},validate:(lS=uV("Identifier"),function(e,t,r){if(ur("ForXStatement",e,{left:r})){if(1!==r.declarations.length)throw TypeError("Exactly one VariableDeclarator is required in the VariableDeclaration of a ".concat(e.type))}else r.declarations.forEach(function(e){e.init||lS(e,"id",e.id)})})}),uZ("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:uV("Identifier","ArrayPattern","ObjectPattern")},definite:{optional:!0,validate:uq("boolean")},init:{optional:!0,validate:uV("Expression")}}}),uZ("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:uV("Expression")},body:{validate:uV("Statement")}}}),uZ("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:uV("Expression")},body:{validate:uV("Statement")}}}),uZ("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},u3(),{left:{validate:uV("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:uV("Expression")},decorators:{validate:uB("Decorator"),optional:!0}})}),uZ("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},u3(),{elements:{validate:uG(uq("array"),uj(uW("null","PatternLike","LVal")))}})}),uZ("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},u0(),u1(),{expression:{validate:uq("boolean")},body:{validate:uV("BlockStatement","Expression")},predicate:{validate:uV("DeclaredPredicate","InferredPredicate"),optional:!0}})}),uZ("ClassBody",{visitor:["body"],fields:{body:uR("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}}),uZ("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:(ry(lL={id:{validate:uV("Identifier"),optional:!0},typeParameters:{validate:uV("TypeParameterDeclaration","TSTypeParameterDeclaration"),optional:!0},body:{validate:uV("ClassBody")},superClass:{optional:!0,validate:uV("Expression")}},"superTypeArguments",{validate:uV("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}),ry(lL,"implements",{validate:uB("TSClassImplements","ClassImplements"),optional:!0}),ry(lL,"decorators",{validate:uB("Decorator"),optional:!0}),ry(lL,"mixins",{validate:uV("InterfaceExtends"),optional:!0}),lL)}),uZ("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:(ry(lM={id:{validate:uV("Identifier"),optional:!0},typeParameters:{validate:uV("TypeParameterDeclaration","TSTypeParameterDeclaration"),optional:!0},body:{validate:uV("ClassBody")},superClass:{optional:!0,validate:uV("Expression")}},"superTypeArguments",{validate:uV("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}),ry(lM,"implements",{validate:uB("TSClassImplements","ClassImplements"),optional:!0}),ry(lM,"decorators",{validate:uB("Decorator"),optional:!0}),ry(lM,"mixins",{validate:uV("InterfaceExtends"),optional:!0}),ry(lM,"declare",{validate:uq("boolean"),optional:!0}),ry(lM,"abstract",{validate:uq("boolean"),optional:!0}),lM),validate:(lx=uV("Identifier"),function(e,t,r){ur("ExportDefaultDeclaration",e)||lx(r,"id",r.id)})});var u4={attributes:{optional:!0,validate:uB("ImportAttribute")},assertions:{deprecated:!0,optional:!0,validate:uB("ImportAttribute")}};uZ("ExportAllDeclaration",{builder:["source"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({source:{validate:uV("StringLiteral")},exportKind:uL(uU("type","value"))},u4)}),uZ("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:uD("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression"),exportKind:uL(uU("value"))}}),uZ("ExportNamedDeclaration",{builder:["declaration","specifiers","source"],visitor:["declaration","specifiers","source","attributes"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({declaration:{optional:!0,validate:uG(uV("Declaration"),Object.assign(function(e,t,r){if(r&&e.specifiers.length)throw TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");if(r&&e.source)throw TypeError("Cannot export a declaration from a source")},{oneOfNodeTypes:["Declaration"]}))}},u4,{specifiers:{default:[],validate:uF((lT=uV("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),lE=uV("ExportSpecifier"),Object.assign(function(e,t,r){(e.source?lT:lE)(e,t,r)},{oneOfNodeTypes:["ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"]})))},source:{validate:uV("StringLiteral"),optional:!0},exportKind:uL(uU("type","value"))})}),uZ("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:uV("Identifier")},exported:{validate:uV("Identifier","StringLiteral")},exportKind:{validate:uU("type","value"),optional:!0}}}),uZ("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:(l_=uV("VariableDeclaration"),lP=uV("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"),Object.assign(function(e,t,r){ur("VariableDeclaration",r)?l_(e,t,r):lP(e,t,r)},{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]}))},right:{validate:uV("Expression")},body:{validate:uV("Statement")},await:{default:!1}}}),uZ("ImportDeclaration",{builder:["specifiers","source"],visitor:["specifiers","source","attributes"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:Object.assign({},u4,{module:{optional:!0,validate:uq("boolean")},phase:{default:null,validate:uU("source","defer")},specifiers:uR("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier"),source:{validate:uV("StringLiteral")},importKind:{validate:uU("type","typeof","value"),optional:!0}})}),uZ("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:uV("Identifier")}}}),uZ("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:uV("Identifier")}}}),uZ("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:uV("Identifier")},imported:{validate:uV("Identifier","StringLiteral")},importKind:{validate:uU("type","typeof","value"),optional:!0}}}),uZ("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:uU("source","defer")},source:{validate:uV("Expression")},options:{validate:uV("Expression"),optional:!0}}}),uZ("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:uG(uV("Identifier"),Object.assign(function(e,t,r){var n;switch(r.name){case"function":n="sent";break;case"new":n="target";break;case"import":n="meta"}if(!ur("Identifier",e.property,{name:n}))throw TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]}))},property:{validate:uV("Identifier")}}});var u5=function(){var e,t;return{abstract:{validate:uq("boolean"),optional:!0},accessibility:{validate:uU("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:uq("boolean"),optional:!0},key:{validate:uG((e=uV("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=uV("Expression"),function(r,n,i){(r.computed?t:e)(r,n,i)}),uV("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}}},u8=function(){return Object.assign({},u0(),u5(),{params:uR("Identifier","Pattern","RestElement","TSParameterProperty"),kind:{validate:uU("get","set","method","constructor"),default:"method"},access:{validate:uG(uq("string"),uU("public","private","protected")),optional:!0},decorators:{validate:uB("Decorator"),optional:!0}})};uZ("ClassMethod",{aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"],fields:Object.assign({},u8(),u1(),{body:{validate:uV("BlockStatement")}})}),uZ("ObjectPattern",{visitor:["properties","typeAnnotation","decorators"],builder:["properties"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},u3(),{properties:uR("RestElement","ObjectProperty")})}),uZ("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:uV("Expression")}}}),uZ("Super",void 0),uZ("TaggedTemplateExpression",{visitor:["tag","typeParameters","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:uV("Expression")},quasi:{validate:uV("TemplateLiteral")},typeParameters:{validate:uV("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),uZ("TemplateElement",{builder:["value","tail"],fields:{value:{validate:uG(uJ({raw:{validate:uq("string")},cooked:{validate:uq("string"),optional:!0}}),function(e){var t=e.value.raw,r=!1,n=function(){throw Error("Internal @babel/types error.")},i=function(e,t,r,n,i,a){for(var s=r,o=n,u=i,l="",c=null,p=r,d=t.length;;){if(r>=d){a.unterminated(s,o,u),l+=t.slice(p,r);break}var f,h=t.charCodeAt(r);if(f=r,96===h||36===h&&123===t.charCodeAt(f+1)){l+=t.slice(p,r);break}if(92===h){l+=t.slice(p,r);var m=function(e,t,r,n,i,a){var s,o,u,l,c=!i;t++;var p=function(e){return{pos:t,ch:e,lineStart:r,curLine:n}},d=e.charCodeAt(t++);switch(d){case 110:return p("\n");case 114:return p("\r");case 120:return s=(o=nl(e,t,r,n,2,!1,c,a)).code,t=o.pos,p(null===s?null:String.fromCharCode(s));case 117:return u=(l=function(e,t,r,n,i,a){var s,o,u;if(123===e.charCodeAt(t)){if(s=(o=nl(e,++t,r,n,e.indexOf("}",t)-t,!0,i,a)).code,t=o.pos,++t,null!==s&&s>1114111)return{code:null,pos:t}}else s=(u=nl(e,t,r,n,4,!1,i,a)).code,t=u.pos;return{code:s,pos:t}}(e,t,r,n,c,a)).code,t=l.pos,p(null===u?null:String.fromCodePoint(u));case 116:return p(" ");case 98:return p("\b");case 118:return p("\v");case 102:return p("\f");case 13:10===e.charCodeAt(t)&&++t;case 10:r=t,++n;case 8232:case 8233:return p("");case 56:case 57:return p(null);default:if(d>=48&&d<=55){var f=t-1,h=/^[0-7]+/.exec(e.slice(f,t+2))[0],m=parseInt(h,8);m>255&&(m=parseInt(h=h.slice(0,-1),8)),t+=h.length-1;var y=e.charCodeAt(t);if("0"!==h||56===y||57===y)return p(null);return p(String.fromCharCode(m))}return p(String.fromCharCode(d))}}(t,r,n,i,"template"===e,a);null!==m.ch||c?l+=m.ch:c={pos:r,lineStart:n,curLine:i},r=m.pos,n=m.lineStart,i=m.curLine,p=r}else 8232===h||8233===h?(++r,++i,n=r):10===h||13===h?(l+=t.slice(p,r)+"\n",++r,13===h&&10===t.charCodeAt(r)&&++r,++i,p=n=r):++r}return{pos:r,str:l,firstInvalidLoc:c,lineStart:n,curLine:i}}("template",t,0,0,0,{unterminated:function(){r=!0},strictNumericEscape:n,invalidEscapeSequence:n,numericSeparatorInEscapeSequence:n,unexpectedNumericSeparator:n,invalidDigit:n,invalidCodePoint:n}),a=i.str,s=i.firstInvalidLoc;if(!r)throw Error("Invalid raw");e.value.cooked=s?null:a})},tail:{default:!1}}}),uZ("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:uR("TemplateElement"),expressions:{validate:uG(uq("array"),uj(uV("Expression","TSType")),function(e,t,r){if(e.quasis.length!==r.length+1)throw TypeError("Number of ".concat(e.type," quasis should be exactly one more than the number of expressions.\nExpected ").concat(r.length+1," quasis but got ").concat(e.quasis.length))})}}}),uZ("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:uG(uq("boolean"),Object.assign(function(e,t,r){if(r&&!e.argument)throw TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})),default:!1},argument:{optional:!0,validate:uV("Expression")}}}),uZ("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:uV("Expression")}}}),uZ("Import",{aliases:["Expression"]}),uZ("BigIntLiteral",{builder:["value"],fields:{value:{validate:uq("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),uZ("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:uV("Identifier")}}}),uZ("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:uV("Expression")},property:{validate:(lA=uV("Identifier"),lk=uV("Expression"),Object.assign(function(e,t,r){(e.computed?lk:lA)(e,t,r)},{oneOfNodeTypes:["Expression","Identifier"]}))},computed:{default:!1},optional:{validate:uG(uq("boolean"),uX())}}}),uZ("OptionalCallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:{callee:{validate:uV("Expression")},arguments:uR("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:uG(uq("boolean"),uX())},typeArguments:{validate:uV("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:uV("TSTypeParameterInstantiation"),optional:!0}}}),uZ("ClassProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},u5(),{value:{validate:uV("Expression"),optional:!0},definite:{validate:uq("boolean"),optional:!0},typeAnnotation:{validate:uV("TypeAnnotation","TSTypeAnnotation"),optional:!0},decorators:{validate:uB("Decorator"),optional:!0},readonly:{validate:uq("boolean"),optional:!0},declare:{validate:uq("boolean"),optional:!0},variance:{validate:uV("Variance"),optional:!0}})}),uZ("ClassAccessorProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"],fields:Object.assign({},u5(),{key:{validate:uG((lC=uV("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),lw=uV("Expression"),function(e,t,r){(e.computed?lw:lC)(e,t,r)}),uV("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:uV("Expression"),optional:!0},definite:{validate:uq("boolean"),optional:!0},typeAnnotation:{validate:uV("TypeAnnotation","TSTypeAnnotation"),optional:!0},decorators:{validate:uB("Decorator"),optional:!0},readonly:{validate:uq("boolean"),optional:!0},declare:{validate:uq("boolean"),optional:!0},variance:{validate:uV("Variance"),optional:!0}})}),uZ("ClassPrivateProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:uV("PrivateName")},value:{validate:uV("Expression"),optional:!0},typeAnnotation:{validate:uV("TypeAnnotation","TSTypeAnnotation"),optional:!0},decorators:{validate:uB("Decorator"),optional:!0},static:{validate:uq("boolean"),default:!1},readonly:{validate:uq("boolean"),optional:!0},definite:{validate:uq("boolean"),optional:!0},variance:{validate:uV("Variance"),optional:!0}}}),uZ("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},u8(),u1(),{kind:{validate:uU("get","set","method"),default:"method"},key:{validate:uV("PrivateName")},body:{validate:uV("BlockStatement")}})}),uZ("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:uV("Identifier")}}}),uZ("StaticBlock",{visitor:["body"],fields:{body:uR("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]});var u6=u$("Flow"),u9=function(e){var t="DeclareClass"===e;u6(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends"].concat(r_(t?["mixins","implements"]:[]),["body"]),aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:uD("Identifier"),typeParameters:uM("TypeParameterDeclaration"),extends:uL(uB("InterfaceExtends"))},t?{mixins:uL(uB("InterfaceExtends")),implements:uL(uB("ClassImplements"))}:{},{body:uD("ObjectTypeAnnotation")})})};u6("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),u6("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:uD("FlowType")}}),u6("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),u6("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:uO(uq("boolean"))}}),u6("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),u6("ClassImplements",{visitor:["id","typeParameters"],fields:{id:uD("Identifier"),typeParameters:uM("TypeParameterInstantiation")}}),u9("DeclareClass"),u6("DeclareFunction",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:uD("Identifier"),predicate:uM("DeclaredPredicate")}}),u9("DeclareInterface"),u6("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:uD("Identifier","StringLiteral"),body:uD("BlockStatement"),kind:uL(uU("CommonJS","ES"))}}),u6("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:uD("TypeAnnotation")}}),u6("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:uD("Identifier"),typeParameters:uM("TypeParameterDeclaration"),right:uD("FlowType")}}),u6("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:uD("Identifier"),typeParameters:uM("TypeParameterDeclaration"),supertype:uM("FlowType"),impltype:uM("FlowType")}}),u6("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:uD("Identifier")}}),u6("DeclareExportDeclaration",{visitor:["declaration","specifiers","source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({declaration:uM("Flow"),specifiers:uL(uB("ExportSpecifier","ExportNamespaceSpecifier")),source:uM("StringLiteral"),default:uL(uq("boolean"))},u4)}),u6("DeclareExportAllDeclaration",{visitor:["source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({source:uD("StringLiteral"),exportKind:uL(uU("type","value"))},u4)}),u6("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:uD("Flow")}}),u6("ExistsTypeAnnotation",{aliases:["FlowType"]}),u6("FunctionTypeAnnotation",{visitor:["typeParameters","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:uM("TypeParameterDeclaration"),params:uR("FunctionTypeParam"),rest:uM("FunctionTypeParam"),this:uM("FunctionTypeParam"),returnType:uD("FlowType")}}),u6("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:uM("Identifier"),typeAnnotation:uD("FlowType"),optional:uL(uq("boolean"))}}),u6("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:uD("Identifier","QualifiedTypeIdentifier"),typeParameters:uM("TypeParameterInstantiation")}}),u6("InferredPredicate",{aliases:["FlowPredicate"]}),u6("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:uD("Identifier","QualifiedTypeIdentifier"),typeParameters:uM("TypeParameterInstantiation")}}),u9("InterfaceDeclaration"),u6("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:uL(uB("InterfaceExtends")),body:uD("ObjectTypeAnnotation")}}),u6("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:uO(uB("FlowType"))}}),u6("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),u6("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),u6("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:uD("FlowType")}}),u6("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:uO(uq("number"))}}),u6("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),u6("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:uO(uB("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:uB("ObjectTypeIndexer"),optional:!1,default:[]},callProperties:{validate:uB("ObjectTypeCallProperty"),optional:!1,default:[]},internalSlots:{validate:uB("ObjectTypeInternalSlot"),optional:!1,default:[]},exact:{validate:uq("boolean"),default:!1},inexact:uL(uq("boolean"))}}),u6("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:uD("Identifier"),value:uD("FlowType"),optional:uO(uq("boolean")),static:uO(uq("boolean")),method:uO(uq("boolean"))}}),u6("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:uD("FlowType"),static:uO(uq("boolean"))}}),u6("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:uM("Identifier"),key:uD("FlowType"),value:uD("FlowType"),static:uO(uq("boolean")),variance:uM("Variance")}}),u6("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:uD("Identifier","StringLiteral"),value:uD("FlowType"),kind:uO(uU("init","get","set")),static:uO(uq("boolean")),proto:uO(uq("boolean")),optional:uO(uq("boolean")),variance:uM("Variance"),method:uO(uq("boolean"))}}),u6("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:uD("FlowType")}}),u6("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:uD("Identifier"),typeParameters:uM("TypeParameterDeclaration"),supertype:uM("FlowType"),impltype:uD("FlowType")}}),u6("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:uD("Identifier"),qualification:uD("Identifier","QualifiedTypeIdentifier")}}),u6("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:uO(uq("string"))}}),u6("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),u6("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),u6("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),u6("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:uO(uB("FlowType"))}}),u6("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:uD("FlowType")}}),u6("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:uD("Identifier"),typeParameters:uM("TypeParameterDeclaration"),right:uD("FlowType")}}),u6("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:uD("FlowType")}}),u6("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:uD("Expression"),typeAnnotation:uD("TypeAnnotation")}}),u6("TypeParameter",{visitor:["bound","default","variance"],fields:{name:uO(uq("string")),bound:uM("TypeAnnotation"),default:uM("FlowType"),variance:uM("Variance")}}),u6("TypeParameterDeclaration",{visitor:["params"],fields:{params:uO(uB("TypeParameter"))}}),u6("TypeParameterInstantiation",{visitor:["params"],fields:{params:uO(uB("FlowType"))}}),u6("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:uO(uB("FlowType"))}}),u6("Variance",{builder:["kind"],fields:{kind:uO(uU("minus","plus"))}}),u6("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),u6("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:uD("Identifier"),body:uD("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}}),u6("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:uO(uq("boolean")),members:uR("EnumBooleanMember"),hasUnknownMembers:uO(uq("boolean"))}}),u6("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:uO(uq("boolean")),members:uR("EnumNumberMember"),hasUnknownMembers:uO(uq("boolean"))}}),u6("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:uO(uq("boolean")),members:uR("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:uO(uq("boolean"))}}),u6("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:uR("EnumDefaultedMember"),hasUnknownMembers:uO(uq("boolean"))}}),u6("EnumBooleanMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:uD("Identifier"),init:uD("BooleanLiteral")}}),u6("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:uD("Identifier"),init:uD("NumericLiteral")}}),u6("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:uD("Identifier"),init:uD("StringLiteral")}}),u6("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:uD("Identifier")}}),u6("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:uD("FlowType"),indexType:uD("FlowType")}}),u6("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:uD("FlowType"),indexType:uD("FlowType"),optional:uO(uq("boolean"))}});var u7=u$("JSX");u7("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:uV("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:uV("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}}),u7("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:uV("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}}),u7("JSXElement",{builder:["openingElement","closingElement","children"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:uV("JSXOpeningElement")},closingElement:{optional:!0,validate:uV("JSXClosingElement")},children:uR("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{})}),u7("JSXEmptyExpression",{}),u7("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:uV("Expression","JSXEmptyExpression")}}}),u7("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:uV("Expression")}}}),u7("JSXIdentifier",{builder:["name"],fields:{name:{validate:uq("string")}}}),u7("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:uV("JSXMemberExpression","JSXIdentifier")},property:{validate:uV("JSXIdentifier")}}}),u7("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:uV("JSXIdentifier")},name:{validate:uV("JSXIdentifier")}}}),u7("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","attributes"],aliases:["Immutable"],fields:{name:{validate:uV("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:uR("JSXAttribute","JSXSpreadAttribute"),typeParameters:{validate:uV("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),u7("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:uV("Expression")}}}),u7("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:uq("string")}}}),u7("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:uV("JSXOpeningFragment")},closingFragment:{validate:uV("JSXClosingFragment")},children:uR("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}}),u7("JSXOpeningFragment",{aliases:["Immutable"]}),u7("JSXClosingFragment",{aliases:["Immutable"]});var le=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],lt={Declaration:["Statement"],Pattern:["PatternLike","LVal"]},lr=!0,ln=!1,li=void 0;try{for(var la,ls,lo,lu,ll,lc,lp,ld,lf,lh,lm,ly,lv,lg,lb,lS,lx,lT,lE,l_,lP,lA,lk,lC,lw,lI,lN,lO,lD,lL,lM,lF,lB=le[Symbol.iterator]();!(lr=(lF=lB.next()).done);lr=!0){var lR=lF.value,lj=uP[lR];(null==lj?void 0:lj.length)&&(lt[lR]=lj)}}catch(e){ln=!0,li=e}finally{try{lr||null==lB.return||lB.return()}finally{if(ln)throw li}}var lU={};Object.keys(lt).forEach(function(e){lt[e].forEach(function(t){Object.hasOwn(lU,t)||(lU[t]=[]),lU[t].push(e)})});var lV=u$("Miscellaneous");lV("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:Object.assign({name:{validate:uV("Identifier")},expectedNode:{validate:uU.apply(void 0,r_(le))}},u3())}),lV("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:uq("string")}}}),uY("ArgumentPlaceholder",{}),uY("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:{object:{validate:uV("Expression")},callee:{validate:uV("Expression")}}}),uY("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:uV("Identifier","StringLiteral")},value:{validate:uV("StringLiteral")}}}),uY("Decorator",{visitor:["expression"],fields:{expression:{validate:uV("Expression")}}}),uY("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:uV("BlockStatement")},async:{validate:uq("boolean"),default:!1}}}),uY("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:uV("Identifier")}}}),uY("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:uR("ObjectProperty","SpreadElement")}}),uY("TupleExpression",{fields:{elements:{validate:uB("Expression","SpreadElement"),default:[]}},visitor:["elements"],aliases:["Expression"]}),uY("ModuleExpression",{visitor:["body"],fields:{body:{validate:uV("Program")}},aliases:["Expression"]}),uY("TopicReference",{aliases:["Expression"]}),uY("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:uV("Expression")}},aliases:["Expression"]}),uY("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:uV("Expression")}},aliases:["Expression"]}),uY("PipelinePrimaryTopicReference",{aliases:["Expression"]});var lW=u$("TypeScript"),lq=uq("boolean"),lJ=function(){return{returnType:{validate:uV("TSTypeAnnotation"),optional:!0},typeParameters:{validate:uV("TSTypeParameterDeclaration"),optional:!0}}};lW("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:uU("public","private","protected"),optional:!0},readonly:{validate:uq("boolean"),optional:!0},parameter:{validate:uV("Identifier","AssignmentPattern")},override:{validate:uq("boolean"),optional:!0},decorators:{validate:uB("Decorator"),optional:!0}}}),lW("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},u2(),lJ())}),lW("TSDeclareMethod",{visitor:["decorators","key","typeParameters","params","returnType"],fields:Object.assign({},u8(),lJ())}),lW("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:uD("TSEntityName"),right:uD("Identifier")}});var lX=function(){var e;return ry(e={typeParameters:uM("TSTypeParameterDeclaration")},"params",uR("ArrayPattern","Identifier","ObjectPattern","RestElement")),ry(e,"returnType",uM("TSTypeAnnotation")),e},lG={aliases:["TSTypeElement"],visitor:["typeParameters","params","returnType"],fields:lX()};lW("TSCallSignatureDeclaration",lG),lW("TSConstructSignatureDeclaration",lG);var lK=function(){return{key:uD("Expression"),computed:{default:!1},optional:uL(lq)}};lW("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},lK(),{readonly:uL(lq),typeAnnotation:uM("TSTypeAnnotation"),kind:{validate:uU("get","set")}})}),lW("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","params","returnType"],fields:Object.assign({},lX(),lK(),{kind:{validate:uU("method","get","set")}})}),lW("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:uL(lq),static:uL(lq),parameters:uR("Identifier"),typeAnnotation:uM("TSTypeAnnotation")}});var lH=!0,lz=!1,l$=void 0;try{for(var lY,lQ=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"][Symbol.iterator]();!(lH=(lY=lQ.next()).done);lH=!0){var lZ=lY.value;lW(lZ,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}})}}catch(e){lz=!0,l$=e}finally{try{lH||null==lQ.return||lQ.return()}finally{if(lz)throw l$}}lW("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});var l0={aliases:["TSType"],visitor:["typeParameters","params","returnType"]};lW("TSFunctionType",Object.assign({},l0,{fields:lX()})),lW("TSConstructorType",Object.assign({},l0,{fields:Object.assign({},lX(),{abstract:uL(lq)})})),lW("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeArguments"],fields:ry({typeName:uD("TSEntityName")},"typeArguments",uM("TSTypeParameterInstantiation"))}),lW("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:uD("Identifier","TSThisType"),typeAnnotation:uM("TSTypeAnnotation"),asserts:uL(lq)}}),lW("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:uD("TSEntityName","TSImportType"),typeParameters:uM("TSTypeParameterInstantiation")}}),lW("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:uR("TSTypeElement")}}),lW("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:uD("TSType")}}),lW("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:uR("TSType","TSNamedTupleMember")}}),lW("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:uD("TSType")}}),lW("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:uD("TSType")}}),lW("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:uD("Identifier"),optional:{validate:lq,default:!1},elementType:uD("TSType")}});var l1={aliases:["TSType"],visitor:["types"],fields:{types:uR("TSType")}};lW("TSUnionType",l1),lW("TSIntersectionType",l1),lW("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:uD("TSType"),extendsType:uD("TSType"),trueType:uD("TSType"),falseType:uD("TSType")}}),lW("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:uD("TSTypeParameter")}}),lW("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:uD("TSType")}}),lW("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{operator:uO(uq("string")),typeAnnotation:uD("TSType")}}),lW("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:uD("TSType"),indexType:uD("TSType")}}),lW("TSMappedType",{aliases:["TSType"],visitor:["key","constraint","nameType","typeAnnotation"],builder:["key","constraint","nameType","typeAnnotation"],fields:Object.assign({},{key:uD("Identifier"),constraint:uD("TSType")},{readonly:uL(uU(!0,!1,"+","-")),optional:uL(uU(!0,!1,"+","-")),typeAnnotation:uM("TSType"),nameType:uM("TSType")})}),lW("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:function(){var e=uV("NumericLiteral","BigIntLiteral"),t=uU("-"),r=uV("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral");function n(n,i,a){ur("UnaryExpression",a)?(t(a,"operator",a.operator),e(a,"argument",a.argument)):r(n,i,a)}return n.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],n}()}}});var l2={aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:uD("TSEntityName"),typeParameters:uM("TSTypeParameterInstantiation")}};lW("TSClassImplements",l2),lW("TSInterfaceHeritage",l2),lW("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:uL(lq),id:uD("Identifier"),typeParameters:uM("TSTypeParameterDeclaration"),extends:uL(uB("TSClassImplements")),body:uD("TSInterfaceBody")}}),lW("TSInterfaceBody",{visitor:["body"],fields:{body:uR("TSTypeElement")}}),lW("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:uL(lq),id:uD("Identifier"),typeParameters:uM("TSTypeParameterDeclaration"),typeAnnotation:uD("TSType")}}),lW("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:uD("Expression"),typeParameters:uM("TSTypeParameterInstantiation")}});var l3={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:uD("Expression"),typeAnnotation:uD("TSType")}};lW("TSAsExpression",l3),lW("TSSatisfiesExpression",l3),lW("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:uD("TSType"),expression:uD("Expression")}}),lW("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:uL(lq),const:uL(lq),id:uD("Identifier"),members:uR("TSEnumMember"),initializer:uM("Expression")}}),lW("TSEnumMember",{visitor:["id","initializer"],fields:{id:uD("Identifier","StringLiteral"),initializer:uM("Expression")}}),lW("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:Object.assign({kind:{validate:uU("global","module","namespace")},declare:uL(lq)},!1,{id:uD("TSEntityName","StringLiteral"),body:uD("TSModuleBlock")})}),lW("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:uR("Statement")}}),lW("TSImportType",{aliases:["TSType"],visitor:["argument","qualifier","typeParameters"],fields:{argument:uD("StringLiteral"),qualifier:uM("TSEntityName"),typeParameters:uM("TSTypeParameterInstantiation"),options:{validate:uV("Expression"),optional:!0}}}),lW("TSImportEqualsDeclaration",{aliases:["Statement"],visitor:["id","moduleReference"],fields:{isExport:uO(lq),id:uD("Identifier"),moduleReference:uD("TSEntityName","TSExternalModuleReference"),importKind:{validate:uU("type","value"),optional:!0}}}),lW("TSExternalModuleReference",{visitor:["expression"],fields:{expression:uD("StringLiteral")}}),lW("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:uD("Expression")}}),lW("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:uD("Expression")}}),lW("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:uD("Identifier")}}),lW("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:uV("TSType")}}}),lW("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:uR("TSType")}}),lW("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:uR("TSTypeParameter")}}),lW("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:uV("Identifier")},in:{validate:uq("boolean"),optional:!0},out:{validate:uq("boolean"),optional:!0},const:{validate:uq("boolean"),optional:!0},constraint:{validate:uV("TSType"),optional:!0},default:{validate:uV("TSType"),optional:!0}}});var l4={ModuleDeclaration:"ImportOrExportDeclaration"};Object.keys(l4).forEach(function(e){uA[e]=uA[l4[e]]});var l5=[].concat(Object.keys(u_),Object.keys(uA),Object.keys(uw));function l8(e,t,r){if(e){var n=uk[e.type];if(n){var i=n[t];l6(e,t,r,i),l9(e,t,r)}}}function l6(e,t,r,n){(null==n?void 0:n.validate)&&(n.optional&&null==r||n.validate(e,t,r))}function l9(e,t,r){var n,i=null==r?void 0:r.type;null!=i&&(null===(n=uI[i])||void 0===n||n.call(uI,e,t,r))}var l7=/* @__PURE__ */Object.freeze({__proto__:null,default:l8,validateChild:l9,validateField:l6,validateInternal:function(e,t,r,n,i){if((null==e?void 0:e.validate)&&(!e.optional||null!=n)&&(e.validate(t,r,n),i)){var a,s=n.type;null!=s&&(null===(a=uI[s])||void 0===a||a.call(uI,t,r,n))}}}).validateInternal,ce=uQ.NODE_FIELDS;function ct(e){var t={type:"ArrayExpression",elements:e};return l7(ce.ArrayExpression.elements,t,"elements",e,1),t}function cr(e,t,r){var n={type:"AssignmentExpression",operator:e,left:t,right:r},i=ce.AssignmentExpression;return l7(i.operator,n,"operator",e),l7(i.left,n,"left",t,1),l7(i.right,n,"right",r,1),n}function cn(e,t,r){var n={type:"BinaryExpression",operator:e,left:t,right:r},i=ce.BinaryExpression;return l7(i.operator,n,"operator",e),l7(i.left,n,"left",t,1),l7(i.right,n,"right",r,1),n}function ci(e){var t={type:"InterpreterDirective",value:e};return l7(ce.InterpreterDirective.value,t,"value",e),t}function ca(e){var t={type:"Directive",value:e};return l7(ce.Directive.value,t,"value",e,1),t}function cs(e){var t={type:"DirectiveLiteral",value:e};return l7(ce.DirectiveLiteral.value,t,"value",e),t}function co(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r={type:"BlockStatement",body:e,directives:t},n=ce.BlockStatement;return l7(n.body,r,"body",e,1),l7(n.directives,r,"directives",t,1),r}function cu(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t={type:"BreakStatement",label:e};return l7(ce.BreakStatement.label,t,"label",e,1),t}function cl(e,t){var r={type:"CallExpression",callee:e,arguments:t},n=ce.CallExpression;return l7(n.callee,r,"callee",e,1),l7(n.arguments,r,"arguments",t,1),r}function cc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r={type:"CatchClause",param:e,body:t},n=ce.CatchClause;return l7(n.param,r,"param",e,1),l7(n.body,r,"body",t,1),r}function cp(e,t,r){var n={type:"ConditionalExpression",test:e,consequent:t,alternate:r},i=ce.ConditionalExpression;return l7(i.test,n,"test",e,1),l7(i.consequent,n,"consequent",t,1),l7(i.alternate,n,"alternate",r,1),n}function cd(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t={type:"ContinueStatement",label:e};return l7(ce.ContinueStatement.label,t,"label",e,1),t}function cf(){return{type:"DebuggerStatement"}}function ch(e,t){var r={type:"DoWhileStatement",test:e,body:t},n=ce.DoWhileStatement;return l7(n.test,r,"test",e,1),l7(n.body,r,"body",t,1),r}function cm(){return{type:"EmptyStatement"}}function cy(e){var t={type:"ExpressionStatement",expression:e};return l7(ce.ExpressionStatement.expression,t,"expression",e,1),t}function cv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n={type:"File",program:e,comments:t,tokens:r},i=ce.File;return l7(i.program,n,"program",e,1),l7(i.comments,n,"comments",t,1),l7(i.tokens,n,"tokens",r),n}function cg(e,t,r){var n={type:"ForInStatement",left:e,right:t,body:r},i=ce.ForInStatement;return l7(i.left,n,"left",e,1),l7(i.right,n,"right",t,1),l7(i.body,n,"body",r,1),n}function cb(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0,i={type:"ForStatement",init:e,test:t,update:r,body:n},a=ce.ForStatement;return l7(a.init,i,"init",e,1),l7(a.test,i,"test",t,1),l7(a.update,i,"update",r,1),l7(a.body,i,"body",n,1),i}function cS(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a={type:"FunctionDeclaration",id:e,params:t,body:r,generator:n,async:i},s=ce.FunctionDeclaration;return l7(s.id,a,"id",e,1),l7(s.params,a,"params",t,1),l7(s.body,a,"body",r,1),l7(s.generator,a,"generator",n),l7(s.async,a,"async",i),a}function cx(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a={type:"FunctionExpression",id:e,params:t,body:r,generator:n,async:i},s=ce.FunctionExpression;return l7(s.id,a,"id",e,1),l7(s.params,a,"params",t,1),l7(s.body,a,"body",r,1),l7(s.generator,a,"generator",n),l7(s.async,a,"async",i),a}function cT(e){var t={type:"Identifier",name:e};return l7(ce.Identifier.name,t,"name",e),t}function cE(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n={type:"IfStatement",test:e,consequent:t,alternate:r},i=ce.IfStatement;return l7(i.test,n,"test",e,1),l7(i.consequent,n,"consequent",t,1),l7(i.alternate,n,"alternate",r,1),n}function c_(e,t){var r={type:"LabeledStatement",label:e,body:t},n=ce.LabeledStatement;return l7(n.label,r,"label",e,1),l7(n.body,r,"body",t,1),r}function cP(e){var t={type:"StringLiteral",value:e};return l7(ce.StringLiteral.value,t,"value",e),t}function cA(e){var t={type:"NumericLiteral",value:e};return l7(ce.NumericLiteral.value,t,"value",e),t}function ck(){return{type:"NullLiteral"}}function cC(e){var t={type:"BooleanLiteral",value:e};return l7(ce.BooleanLiteral.value,t,"value",e),t}function cw(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r={type:"RegExpLiteral",pattern:e,flags:t},n=ce.RegExpLiteral;return l7(n.pattern,r,"pattern",e),l7(n.flags,r,"flags",t),r}function cI(e,t,r){var n={type:"LogicalExpression",operator:e,left:t,right:r},i=ce.LogicalExpression;return l7(i.operator,n,"operator",e),l7(i.left,n,"left",t,1),l7(i.right,n,"right",r,1),n}function cN(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n={type:"MemberExpression",object:e,property:t,computed:r},i=ce.MemberExpression;return l7(i.object,n,"object",e,1),l7(i.property,n,"property",t,1),l7(i.computed,n,"computed",r),n}function cO(e,t){var r={type:"NewExpression",callee:e,arguments:t},n=ce.NewExpression;return l7(n.callee,r,"callee",e,1),l7(n.arguments,r,"arguments",t,1),r}function cD(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"script",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i={type:"Program",body:e,directives:t,sourceType:r,interpreter:n},a=ce.Program;return l7(a.body,i,"body",e,1),l7(a.directives,i,"directives",t,1),l7(a.sourceType,i,"sourceType",r),l7(a.interpreter,i,"interpreter",n,1),i}function cL(e){var t={type:"ObjectExpression",properties:e};return l7(ce.ObjectExpression.properties,t,"properties",e,1),t}function cM(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=arguments.length>6&&void 0!==arguments[6]&&arguments[6],o={type:"ObjectMethod",kind:e,key:t,params:r,body:n,computed:i,generator:a,async:s},u=ce.ObjectMethod;return l7(u.kind,o,"kind",e),l7(u.key,o,"key",t,1),l7(u.params,o,"params",r,1),l7(u.body,o,"body",n,1),l7(u.computed,o,"computed",i),l7(u.generator,o,"generator",a),l7(u.async,o,"async",s),o}function cF(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i={type:"ObjectProperty",key:e,value:t,computed:r,shorthand:n},a=ce.ObjectProperty;return l7(a.key,i,"key",e,1),l7(a.value,i,"value",t,1),l7(a.computed,i,"computed",r),l7(a.shorthand,i,"shorthand",n),i}function cB(e){var t={type:"RestElement",argument:e};return l7(ce.RestElement.argument,t,"argument",e,1),t}function cR(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t={type:"ReturnStatement",argument:e};return l7(ce.ReturnStatement.argument,t,"argument",e,1),t}function cj(e){var t={type:"SequenceExpression",expressions:e};return l7(ce.SequenceExpression.expressions,t,"expressions",e,1),t}function cU(e){var t={type:"ParenthesizedExpression",expression:e};return l7(ce.ParenthesizedExpression.expression,t,"expression",e,1),t}function cV(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r={type:"SwitchCase",test:e,consequent:t},n=ce.SwitchCase;return l7(n.test,r,"test",e,1),l7(n.consequent,r,"consequent",t,1),r}function cW(e,t){var r={type:"SwitchStatement",discriminant:e,cases:t},n=ce.SwitchStatement;return l7(n.discriminant,r,"discriminant",e,1),l7(n.cases,r,"cases",t,1),r}function cq(){return{type:"ThisExpression"}}function cJ(e){var t={type:"ThrowStatement",argument:e};return l7(ce.ThrowStatement.argument,t,"argument",e,1),t}function cX(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n={type:"TryStatement",block:e,handler:t,finalizer:r},i=ce.TryStatement;return l7(i.block,n,"block",e,1),l7(i.handler,n,"handler",t,1),l7(i.finalizer,n,"finalizer",r,1),n}function cG(e,t){var r=!(arguments.length>2)||void 0===arguments[2]||arguments[2],n={type:"UnaryExpression",operator:e,argument:t,prefix:r},i=ce.UnaryExpression;return l7(i.operator,n,"operator",e),l7(i.argument,n,"argument",t,1),l7(i.prefix,n,"prefix",r),n}function cK(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n={type:"UpdateExpression",operator:e,argument:t,prefix:r},i=ce.UpdateExpression;return l7(i.operator,n,"operator",e),l7(i.argument,n,"argument",t,1),l7(i.prefix,n,"prefix",r),n}function cH(e,t){var r={type:"VariableDeclaration",kind:e,declarations:t},n=ce.VariableDeclaration;return l7(n.kind,r,"kind",e),l7(n.declarations,r,"declarations",t,1),r}function cz(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={type:"VariableDeclarator",id:e,init:t},n=ce.VariableDeclarator;return l7(n.id,r,"id",e,1),l7(n.init,r,"init",t,1),r}function c$(e,t){var r={type:"WhileStatement",test:e,body:t},n=ce.WhileStatement;return l7(n.test,r,"test",e,1),l7(n.body,r,"body",t,1),r}function cY(e,t){var r={type:"WithStatement",object:e,body:t},n=ce.WithStatement;return l7(n.object,r,"object",e,1),l7(n.body,r,"body",t,1),r}function cQ(e,t){var r={type:"AssignmentPattern",left:e,right:t},n=ce.AssignmentPattern;return l7(n.left,r,"left",e,1),l7(n.right,r,"right",t,1),r}function cZ(e){var t={type:"ArrayPattern",elements:e};return l7(ce.ArrayPattern.elements,t,"elements",e,1),t}function c0(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n={type:"ArrowFunctionExpression",params:e,body:t,async:r,expression:null},i=ce.ArrowFunctionExpression;return l7(i.params,n,"params",e,1),l7(i.body,n,"body",t,1),l7(i.async,n,"async",r),n}function c1(e){var t={type:"ClassBody",body:e};return l7(ce.ClassBody.body,t,"body",e,1),t}function c2(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i={type:"ClassExpression",id:e,superClass:t,body:r,decorators:n},a=ce.ClassExpression;return l7(a.id,i,"id",e,1),l7(a.superClass,i,"superClass",t,1),l7(a.body,i,"body",r,1),l7(a.decorators,i,"decorators",n,1),i}function c3(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i={type:"ClassDeclaration",id:e,superClass:t,body:r,decorators:n},a=ce.ClassDeclaration;return l7(a.id,i,"id",e,1),l7(a.superClass,i,"superClass",t,1),l7(a.body,i,"body",r,1),l7(a.decorators,i,"decorators",n,1),i}function c4(e){var t={type:"ExportAllDeclaration",source:e};return l7(ce.ExportAllDeclaration.source,t,"source",e,1),t}function c5(e){var t={type:"ExportDefaultDeclaration",declaration:e};return l7(ce.ExportDefaultDeclaration.declaration,t,"declaration",e,1),t}function c8(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n={type:"ExportNamedDeclaration",declaration:e,specifiers:t,source:r},i=ce.ExportNamedDeclaration;return l7(i.declaration,n,"declaration",e,1),l7(i.specifiers,n,"specifiers",t,1),l7(i.source,n,"source",r,1),n}function c6(e,t){var r={type:"ExportSpecifier",local:e,exported:t},n=ce.ExportSpecifier;return l7(n.local,r,"local",e,1),l7(n.exported,r,"exported",t,1),r}function c9(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i={type:"ForOfStatement",left:e,right:t,body:r,await:n},a=ce.ForOfStatement;return l7(a.left,i,"left",e,1),l7(a.right,i,"right",t,1),l7(a.body,i,"body",r,1),l7(a.await,i,"await",n),i}function c7(e,t){var r={type:"ImportDeclaration",specifiers:e,source:t},n=ce.ImportDeclaration;return l7(n.specifiers,r,"specifiers",e,1),l7(n.source,r,"source",t,1),r}function pe(e){var t={type:"ImportDefaultSpecifier",local:e};return l7(ce.ImportDefaultSpecifier.local,t,"local",e,1),t}function pt(e){var t={type:"ImportNamespaceSpecifier",local:e};return l7(ce.ImportNamespaceSpecifier.local,t,"local",e,1),t}function pr(e,t){var r={type:"ImportSpecifier",local:e,imported:t},n=ce.ImportSpecifier;return l7(n.local,r,"local",e,1),l7(n.imported,r,"imported",t,1),r}function pn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={type:"ImportExpression",source:e,options:t},n=ce.ImportExpression;return l7(n.source,r,"source",e,1),l7(n.options,r,"options",t,1),r}function pi(e,t){var r={type:"MetaProperty",meta:e,property:t},n=ce.MetaProperty;return l7(n.meta,r,"meta",e,1),l7(n.property,r,"property",t,1),r}function pa(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"method",t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=arguments.length>6&&void 0!==arguments[6]&&arguments[6],o=arguments.length>7&&void 0!==arguments[7]&&arguments[7],u={type:"ClassMethod",kind:e,key:t,params:r,body:n,computed:i,static:a,generator:s,async:o},l=ce.ClassMethod;return l7(l.kind,u,"kind",e),l7(l.key,u,"key",t,1),l7(l.params,u,"params",r,1),l7(l.body,u,"body",n,1),l7(l.computed,u,"computed",i),l7(l.static,u,"static",a),l7(l.generator,u,"generator",s),l7(l.async,u,"async",o),u}function ps(e){var t={type:"ObjectPattern",properties:e};return l7(ce.ObjectPattern.properties,t,"properties",e,1),t}function po(e){var t={type:"SpreadElement",argument:e};return l7(ce.SpreadElement.argument,t,"argument",e,1),t}function pu(){return{type:"Super"}}function pl(e,t){var r={type:"TaggedTemplateExpression",tag:e,quasi:t},n=ce.TaggedTemplateExpression;return l7(n.tag,r,"tag",e,1),l7(n.quasi,r,"quasi",t,1),r}function pc(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={type:"TemplateElement",value:e,tail:t},n=ce.TemplateElement;return l7(n.value,r,"value",e),l7(n.tail,r,"tail",t),r}function pp(e,t){var r={type:"TemplateLiteral",quasis:e,expressions:t},n=ce.TemplateLiteral;return l7(n.quasis,r,"quasis",e,1),l7(n.expressions,r,"expressions",t,1),r}function pd(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={type:"YieldExpression",argument:e,delegate:t},n=ce.YieldExpression;return l7(n.argument,r,"argument",e,1),l7(n.delegate,r,"delegate",t),r}function pf(e){var t={type:"AwaitExpression",argument:e};return l7(ce.AwaitExpression.argument,t,"argument",e,1),t}function ph(){return{type:"Import"}}function pm(e){var t={type:"BigIntLiteral",value:e};return l7(ce.BigIntLiteral.value,t,"value",e),t}function py(e){var t={type:"ExportNamespaceSpecifier",exported:e};return l7(ce.ExportNamespaceSpecifier.exported,t,"exported",e,1),t}function pv(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3?arguments[3]:void 0,i={type:"OptionalMemberExpression",object:e,property:t,computed:r,optional:n},a=ce.OptionalMemberExpression;return l7(a.object,i,"object",e,1),l7(a.property,i,"property",t,1),l7(a.computed,i,"computed",r),l7(a.optional,i,"optional",n),i}function pg(e,t,r){var n={type:"OptionalCallExpression",callee:e,arguments:t,optional:r},i=ce.OptionalCallExpression;return l7(i.callee,n,"callee",e,1),l7(i.arguments,n,"arguments",t,1),l7(i.optional,n,"optional",r),n}function pb(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s={type:"ClassProperty",key:e,value:t,typeAnnotation:r,decorators:n,computed:i,static:a},o=ce.ClassProperty;return l7(o.key,s,"key",e,1),l7(o.value,s,"value",t,1),l7(o.typeAnnotation,s,"typeAnnotation",r,1),l7(o.decorators,s,"decorators",n,1),l7(o.computed,s,"computed",i),l7(o.static,s,"static",a),s}function pS(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s={type:"ClassAccessorProperty",key:e,value:t,typeAnnotation:r,decorators:n,computed:i,static:a},o=ce.ClassAccessorProperty;return l7(o.key,s,"key",e,1),l7(o.value,s,"value",t,1),l7(o.typeAnnotation,s,"typeAnnotation",r,1),l7(o.decorators,s,"decorators",n,1),l7(o.computed,s,"computed",i),l7(o.static,s,"static",a),s}function px(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i={type:"ClassPrivateProperty",key:e,value:t,decorators:r,static:n},a=ce.ClassPrivateProperty;return l7(a.key,i,"key",e,1),l7(a.value,i,"value",t,1),l7(a.decorators,i,"decorators",r,1),l7(a.static,i,"static",n),i}function pT(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"method",t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a={type:"ClassPrivateMethod",kind:e,key:t,params:r,body:n,static:i},s=ce.ClassPrivateMethod;return l7(s.kind,a,"kind",e),l7(s.key,a,"key",t,1),l7(s.params,a,"params",r,1),l7(s.body,a,"body",n,1),l7(s.static,a,"static",i),a}function pE(e){var t={type:"PrivateName",id:e};return l7(ce.PrivateName.id,t,"id",e,1),t}function p_(e){var t={type:"StaticBlock",body:e};return l7(ce.StaticBlock.body,t,"body",e,1),t}function pP(){return{type:"AnyTypeAnnotation"}}function pA(e){var t={type:"ArrayTypeAnnotation",elementType:e};return l7(ce.ArrayTypeAnnotation.elementType,t,"elementType",e,1),t}function pk(){return{type:"BooleanTypeAnnotation"}}function pC(e){var t={type:"BooleanLiteralTypeAnnotation",value:e};return l7(ce.BooleanLiteralTypeAnnotation.value,t,"value",e),t}function pw(){return{type:"NullLiteralTypeAnnotation"}}function pI(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={type:"ClassImplements",id:e,typeParameters:t},n=ce.ClassImplements;return l7(n.id,r,"id",e,1),l7(n.typeParameters,r,"typeParameters",t,1),r}function pN(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0,i={type:"DeclareClass",id:e,typeParameters:t,extends:r,body:n},a=ce.DeclareClass;return l7(a.id,i,"id",e,1),l7(a.typeParameters,i,"typeParameters",t,1),l7(a.extends,i,"extends",r,1),l7(a.body,i,"body",n,1),i}function pO(e){var t={type:"DeclareFunction",id:e};return l7(ce.DeclareFunction.id,t,"id",e,1),t}function pD(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0,i={type:"DeclareInterface",id:e,typeParameters:t,extends:r,body:n},a=ce.DeclareInterface;return l7(a.id,i,"id",e,1),l7(a.typeParameters,i,"typeParameters",t,1),l7(a.extends,i,"extends",r,1),l7(a.body,i,"body",n,1),i}function pL(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n={type:"DeclareModule",id:e,body:t,kind:r},i=ce.DeclareModule;return l7(i.id,n,"id",e,1),l7(i.body,n,"body",t,1),l7(i.kind,n,"kind",r),n}function pM(e){var t={type:"DeclareModuleExports",typeAnnotation:e};return l7(ce.DeclareModuleExports.typeAnnotation,t,"typeAnnotation",e,1),t}function pF(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0,n={type:"DeclareTypeAlias",id:e,typeParameters:t,right:r},i=ce.DeclareTypeAlias;return l7(i.id,n,"id",e,1),l7(i.typeParameters,n,"typeParameters",t,1),l7(i.right,n,"right",r,1),n}function pB(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n={type:"DeclareOpaqueType",id:e,typeParameters:t,supertype:r},i=ce.DeclareOpaqueType;return l7(i.id,n,"id",e,1),l7(i.typeParameters,n,"typeParameters",t,1),l7(i.supertype,n,"supertype",r,1),n}function pR(e){var t={type:"DeclareVariable",id:e};return l7(ce.DeclareVariable.id,t,"id",e,1),t}function pj(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i={type:"DeclareExportDeclaration",declaration:e,specifiers:t,source:r,attributes:n},a=ce.DeclareExportDeclaration;return l7(a.declaration,i,"declaration",e,1),l7(a.specifiers,i,"specifiers",t,1),l7(a.source,i,"source",r,1),l7(a.attributes,i,"attributes",n,1),i}function pU(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={type:"DeclareExportAllDeclaration",source:e,attributes:t},n=ce.DeclareExportAllDeclaration;return l7(n.source,r,"source",e,1),l7(n.attributes,r,"attributes",t,1),r}function pV(e){var t={type:"DeclaredPredicate",value:e};return l7(ce.DeclaredPredicate.value,t,"value",e,1),t}function pW(){return{type:"ExistsTypeAnnotation"}}function pq(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0,i={type:"FunctionTypeAnnotation",typeParameters:e,params:t,rest:r,returnType:n},a=ce.FunctionTypeAnnotation;return l7(a.typeParameters,i,"typeParameters",e,1),l7(a.params,i,"params",t,1),l7(a.rest,i,"rest",r,1),l7(a.returnType,i,"returnType",n,1),i}function pJ(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r={type:"FunctionTypeParam",name:e,typeAnnotation:t},n=ce.FunctionTypeParam;return l7(n.name,r,"name",e,1),l7(n.typeAnnotation,r,"typeAnnotation",t,1),r}function pX(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={type:"GenericTypeAnnotation",id:e,typeParameters:t},n=ce.GenericTypeAnnotation;return l7(n.id,r,"id",e,1),l7(n.typeParameters,r,"typeParameters",t,1),r}function pG(){return{type:"InferredPredicate"}}function pK(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={type:"InterfaceExtends",id:e,typeParameters:t},n=ce.InterfaceExtends;return l7(n.id,r,"id",e,1),l7(n.typeParameters,r,"typeParameters",t,1),r}function pH(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0,i={type:"InterfaceDeclaration",id:e,typeParameters:t,extends:r,body:n},a=ce.InterfaceDeclaration;return l7(a.id,i,"id",e,1),l7(a.typeParameters,i,"typeParameters",t,1),l7(a.extends,i,"extends",r,1),l7(a.body,i,"body",n,1),i}function pz(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r={type:"InterfaceTypeAnnotation",extends:e,body:t},n=ce.InterfaceTypeAnnotation;return l7(n.extends,r,"extends",e,1),l7(n.body,r,"body",t,1),r}function p$(e){var t={type:"IntersectionTypeAnnotation",types:e};return l7(ce.IntersectionTypeAnnotation.types,t,"types",e,1),t}function pY(){return{type:"MixedTypeAnnotation"}}function pQ(){return{type:"EmptyTypeAnnotation"}}function pZ(e){var t={type:"NullableTypeAnnotation",typeAnnotation:e};return l7(ce.NullableTypeAnnotation.typeAnnotation,t,"typeAnnotation",e,1),t}function p0(e){var t={type:"NumberLiteralTypeAnnotation",value:e};return l7(ce.NumberLiteralTypeAnnotation.value,t,"value",e),t}function p1(){return{type:"NumberTypeAnnotation"}}function p2(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a={type:"ObjectTypeAnnotation",properties:e,indexers:t,callProperties:r,internalSlots:n,exact:i},s=ce.ObjectTypeAnnotation;return l7(s.properties,a,"properties",e,1),l7(s.indexers,a,"indexers",t,1),l7(s.callProperties,a,"callProperties",r,1),l7(s.internalSlots,a,"internalSlots",n,1),l7(s.exact,a,"exact",i),a}function p3(e,t,r,n,i){var a={type:"ObjectTypeInternalSlot",id:e,value:t,optional:r,static:n,method:i},s=ce.ObjectTypeInternalSlot;return l7(s.id,a,"id",e,1),l7(s.value,a,"value",t,1),l7(s.optional,a,"optional",r),l7(s.static,a,"static",n),l7(s.method,a,"method",i),a}function p4(e){var t={type:"ObjectTypeCallProperty",value:e,static:null};return l7(ce.ObjectTypeCallProperty.value,t,"value",e,1),t}function p5(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i={type:"ObjectTypeIndexer",id:e,key:t,value:r,variance:n,static:null},a=ce.ObjectTypeIndexer;return l7(a.id,i,"id",e,1),l7(a.key,i,"key",t,1),l7(a.value,i,"value",r,1),l7(a.variance,i,"variance",n,1),i}function p8(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n={type:"ObjectTypeProperty",key:e,value:t,variance:r,kind:null,method:null,optional:null,proto:null,static:null},i=ce.ObjectTypeProperty;return l7(i.key,n,"key",e,1),l7(i.value,n,"value",t,1),l7(i.variance,n,"variance",r,1),n}function p6(e){var t={type:"ObjectTypeSpreadProperty",argument:e};return l7(ce.ObjectTypeSpreadProperty.argument,t,"argument",e,1),t}function p9(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0,i={type:"OpaqueType",id:e,typeParameters:t,supertype:r,impltype:n},a=ce.OpaqueType;return l7(a.id,i,"id",e,1),l7(a.typeParameters,i,"typeParameters",t,1),l7(a.supertype,i,"supertype",r,1),l7(a.impltype,i,"impltype",n,1),i}function p7(e,t){var r={type:"QualifiedTypeIdentifier",id:e,qualification:t},n=ce.QualifiedTypeIdentifier;return l7(n.id,r,"id",e,1),l7(n.qualification,r,"qualification",t,1),r}function de(e){var t={type:"StringLiteralTypeAnnotation",value:e};return l7(ce.StringLiteralTypeAnnotation.value,t,"value",e),t}function dt(){return{type:"StringTypeAnnotation"}}function dr(){return{type:"SymbolTypeAnnotation"}}function dn(){return{type:"ThisTypeAnnotation"}}function di(e){var t={type:"TupleTypeAnnotation",types:e};return l7(ce.TupleTypeAnnotation.types,t,"types",e,1),t}function da(e){var t={type:"TypeofTypeAnnotation",argument:e};return l7(ce.TypeofTypeAnnotation.argument,t,"argument",e,1),t}function ds(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0,n={type:"TypeAlias",id:e,typeParameters:t,right:r},i=ce.TypeAlias;return l7(i.id,n,"id",e,1),l7(i.typeParameters,n,"typeParameters",t,1),l7(i.right,n,"right",r,1),n}function du(e){var t={type:"TypeAnnotation",typeAnnotation:e};return l7(ce.TypeAnnotation.typeAnnotation,t,"typeAnnotation",e,1),t}function dl(e,t){var r={type:"TypeCastExpression",expression:e,typeAnnotation:t},n=ce.TypeCastExpression;return l7(n.expression,r,"expression",e,1),l7(n.typeAnnotation,r,"typeAnnotation",t,1),r}function dc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n={type:"TypeParameter",bound:e,default:t,variance:r,name:null},i=ce.TypeParameter;return l7(i.bound,n,"bound",e,1),l7(i.default,n,"default",t,1),l7(i.variance,n,"variance",r,1),n}function dp(e){var t={type:"TypeParameterDeclaration",params:e};return l7(ce.TypeParameterDeclaration.params,t,"params",e,1),t}function dd(e){var t={type:"TypeParameterInstantiation",params:e};return l7(ce.TypeParameterInstantiation.params,t,"params",e,1),t}function df(e){var t={type:"UnionTypeAnnotation",types:e};return l7(ce.UnionTypeAnnotation.types,t,"types",e,1),t}function dh(e){var t={type:"Variance",kind:e};return l7(ce.Variance.kind,t,"kind",e),t}function dm(){return{type:"VoidTypeAnnotation"}}function dy(e,t){var r={type:"EnumDeclaration",id:e,body:t},n=ce.EnumDeclaration;return l7(n.id,r,"id",e,1),l7(n.body,r,"body",t,1),r}function dv(e){var t={type:"EnumBooleanBody",members:e,explicitType:null,hasUnknownMembers:null};return l7(ce.EnumBooleanBody.members,t,"members",e,1),t}function dg(e){var t={type:"EnumNumberBody",members:e,explicitType:null,hasUnknownMembers:null};return l7(ce.EnumNumberBody.members,t,"members",e,1),t}function db(e){var t={type:"EnumStringBody",members:e,explicitType:null,hasUnknownMembers:null};return l7(ce.EnumStringBody.members,t,"members",e,1),t}function dS(e){var t={type:"EnumSymbolBody",members:e,hasUnknownMembers:null};return l7(ce.EnumSymbolBody.members,t,"members",e,1),t}function dx(e){var t={type:"EnumBooleanMember",id:e,init:null};return l7(ce.EnumBooleanMember.id,t,"id",e,1),t}function dT(e,t){var r={type:"EnumNumberMember",id:e,init:t},n=ce.EnumNumberMember;return l7(n.id,r,"id",e,1),l7(n.init,r,"init",t,1),r}function dE(e,t){var r={type:"EnumStringMember",id:e,init:t},n=ce.EnumStringMember;return l7(n.id,r,"id",e,1),l7(n.init,r,"init",t,1),r}function d_(e){var t={type:"EnumDefaultedMember",id:e};return l7(ce.EnumDefaultedMember.id,t,"id",e,1),t}function dP(e,t){var r={type:"IndexedAccessType",objectType:e,indexType:t},n=ce.IndexedAccessType;return l7(n.objectType,r,"objectType",e,1),l7(n.indexType,r,"indexType",t,1),r}function dA(e,t){var r={type:"OptionalIndexedAccessType",objectType:e,indexType:t,optional:null},n=ce.OptionalIndexedAccessType;return l7(n.objectType,r,"objectType",e,1),l7(n.indexType,r,"indexType",t,1),r}function dk(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={type:"JSXAttribute",name:e,value:t},n=ce.JSXAttribute;return l7(n.name,r,"name",e,1),l7(n.value,r,"value",t,1),r}function dC(e){var t={type:"JSXClosingElement",name:e};return l7(ce.JSXClosingElement.name,t,"name",e,1),t}function dw(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0,n={type:"JSXElement",openingElement:e,closingElement:t,children:r},i=ce.JSXElement;return l7(i.openingElement,n,"openingElement",e,1),l7(i.closingElement,n,"closingElement",t,1),l7(i.children,n,"children",r,1),n}function dI(){return{type:"JSXEmptyExpression"}}function dN(e){var t={type:"JSXExpressionContainer",expression:e};return l7(ce.JSXExpressionContainer.expression,t,"expression",e,1),t}function dO(e){var t={type:"JSXSpreadChild",expression:e};return l7(ce.JSXSpreadChild.expression,t,"expression",e,1),t}function dD(e){var t={type:"JSXIdentifier",name:e};return l7(ce.JSXIdentifier.name,t,"name",e),t}function dL(e,t){var r={type:"JSXMemberExpression",object:e,property:t},n=ce.JSXMemberExpression;return l7(n.object,r,"object",e,1),l7(n.property,r,"property",t,1),r}function dM(e,t){var r={type:"JSXNamespacedName",namespace:e,name:t},n=ce.JSXNamespacedName;return l7(n.namespace,r,"namespace",e,1),l7(n.name,r,"name",t,1),r}function dF(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n={type:"JSXOpeningElement",name:e,attributes:t,selfClosing:r},i=ce.JSXOpeningElement;return l7(i.name,n,"name",e,1),l7(i.attributes,n,"attributes",t,1),l7(i.selfClosing,n,"selfClosing",r),n}function dB(e){var t={type:"JSXSpreadAttribute",argument:e};return l7(ce.JSXSpreadAttribute.argument,t,"argument",e,1),t}function dR(e){var t={type:"JSXText",value:e};return l7(ce.JSXText.value,t,"value",e),t}function dj(e,t,r){var n={type:"JSXFragment",openingFragment:e,closingFragment:t,children:r},i=ce.JSXFragment;return l7(i.openingFragment,n,"openingFragment",e,1),l7(i.closingFragment,n,"closingFragment",t,1),l7(i.children,n,"children",r,1),n}function dU(){return{type:"JSXOpeningFragment"}}function dV(){return{type:"JSXClosingFragment"}}function dW(e,t){var r={type:"Placeholder",expectedNode:e,name:t},n=ce.Placeholder;return l7(n.expectedNode,r,"expectedNode",e),l7(n.name,r,"name",t,1),r}function dq(e){var t={type:"V8IntrinsicIdentifier",name:e};return l7(ce.V8IntrinsicIdentifier.name,t,"name",e),t}function dJ(){return{type:"ArgumentPlaceholder"}}function dX(e,t){var r={type:"BindExpression",object:e,callee:t},n=ce.BindExpression;return l7(n.object,r,"object",e,1),l7(n.callee,r,"callee",t,1),r}function dG(e,t){var r={type:"ImportAttribute",key:e,value:t},n=ce.ImportAttribute;return l7(n.key,r,"key",e,1),l7(n.value,r,"value",t,1),r}function dK(e){var t={type:"Decorator",expression:e};return l7(ce.Decorator.expression,t,"expression",e,1),t}function dH(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={type:"DoExpression",body:e,async:t},n=ce.DoExpression;return l7(n.body,r,"body",e,1),l7(n.async,r,"async",t),r}function dz(e){var t={type:"ExportDefaultSpecifier",exported:e};return l7(ce.ExportDefaultSpecifier.exported,t,"exported",e,1),t}function d$(e){var t={type:"RecordExpression",properties:e};return l7(ce.RecordExpression.properties,t,"properties",e,1),t}function dY(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t={type:"TupleExpression",elements:e};return l7(ce.TupleExpression.elements,t,"elements",e,1),t}function dQ(e){var t={type:"ModuleExpression",body:e};return l7(ce.ModuleExpression.body,t,"body",e,1),t}function dZ(){return{type:"TopicReference"}}function d0(e){var t={type:"PipelineTopicExpression",expression:e};return l7(ce.PipelineTopicExpression.expression,t,"expression",e,1),t}function d1(e){var t={type:"PipelineBareFunction",callee:e};return l7(ce.PipelineBareFunction.callee,t,"callee",e,1),t}function d2(){return{type:"PipelinePrimaryTopicReference"}}function d3(e){var t={type:"TSParameterProperty",parameter:e};return l7(ce.TSParameterProperty.parameter,t,"parameter",e,1),t}function d4(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i={type:"TSDeclareFunction",id:e,typeParameters:t,params:r,returnType:n},a=ce.TSDeclareFunction;return l7(a.id,i,"id",e,1),l7(a.typeParameters,i,"typeParameters",t,1),l7(a.params,i,"params",r,1),l7(a.returnType,i,"returnType",n,1),i}function d5(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a={type:"TSDeclareMethod",decorators:e,key:t,typeParameters:r,params:n,returnType:i},s=ce.TSDeclareMethod;return l7(s.decorators,a,"decorators",e,1),l7(s.key,a,"key",t,1),l7(s.typeParameters,a,"typeParameters",r,1),l7(s.params,a,"params",n,1),l7(s.returnType,a,"returnType",i,1),a}function d8(e,t){var r={type:"TSQualifiedName",left:e,right:t},n=ce.TSQualifiedName;return l7(n.left,r,"left",e,1),l7(n.right,r,"right",t,1),r}function d6(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n={type:"TSCallSignatureDeclaration",typeParameters:e,params:t,returnType:r},i=ce.TSCallSignatureDeclaration;return l7(i.typeParameters,n,"typeParameters",e,1),l7(i.params,n,"params",t,1),l7(i.returnType,n,"returnType",r,1),n}function d9(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n={type:"TSConstructSignatureDeclaration",typeParameters:e,params:t,returnType:r},i=ce.TSConstructSignatureDeclaration;return l7(i.typeParameters,n,"typeParameters",e,1),l7(i.params,n,"params",t,1),l7(i.returnType,n,"returnType",r,1),n}function d7(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={type:"TSPropertySignature",key:e,typeAnnotation:t,kind:null},n=ce.TSPropertySignature;return l7(n.key,r,"key",e,1),l7(n.typeAnnotation,r,"typeAnnotation",t,1),r}function fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i={type:"TSMethodSignature",key:e,typeParameters:t,params:r,returnType:n,kind:null},a=ce.TSMethodSignature;return l7(a.key,i,"key",e,1),l7(a.typeParameters,i,"typeParameters",t,1),l7(a.params,i,"params",r,1),l7(a.returnType,i,"returnType",n,1),i}function ft(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={type:"TSIndexSignature",parameters:e,typeAnnotation:t},n=ce.TSIndexSignature;return l7(n.parameters,r,"parameters",e,1),l7(n.typeAnnotation,r,"typeAnnotation",t,1),r}function fr(){return{type:"TSAnyKeyword"}}function fn(){return{type:"TSBooleanKeyword"}}function fi(){return{type:"TSBigIntKeyword"}}function fa(){return{type:"TSIntrinsicKeyword"}}function fs(){return{type:"TSNeverKeyword"}}function fo(){return{type:"TSNullKeyword"}}function fu(){return{type:"TSNumberKeyword"}}function fl(){return{type:"TSObjectKeyword"}}function fc(){return{type:"TSStringKeyword"}}function fp(){return{type:"TSSymbolKeyword"}}function fd(){return{type:"TSUndefinedKeyword"}}function ff(){return{type:"TSUnknownKeyword"}}function fh(){return{type:"TSVoidKeyword"}}function fm(){return{type:"TSThisType"}}function fy(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n={type:"TSFunctionType",typeParameters:e,params:t,returnType:r},i=ce.TSFunctionType;return l7(i.typeParameters,n,"typeParameters",e,1),l7(i.params,n,"params",t,1),l7(i.returnType,n,"returnType",r,1),n}function fv(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n={type:"TSConstructorType",typeParameters:e,params:t,returnType:r},i=ce.TSConstructorType;return l7(i.typeParameters,n,"typeParameters",e,1),l7(i.params,n,"params",t,1),l7(i.returnType,n,"returnType",r,1),n}function fg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={type:"TSTypeReference",typeName:e,typeArguments:t},n=ce.TSTypeReference;return l7(n.typeName,r,"typeName",e,1),l7(n.typeArguments,r,"typeArguments",t,1),r}function fb(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n={type:"TSTypePredicate",parameterName:e,typeAnnotation:t,asserts:r},i=ce.TSTypePredicate;return l7(i.parameterName,n,"parameterName",e,1),l7(i.typeAnnotation,n,"typeAnnotation",t,1),l7(i.asserts,n,"asserts",r),n}function fS(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={type:"TSTypeQuery",exprName:e,typeParameters:t},n=ce.TSTypeQuery;return l7(n.exprName,r,"exprName",e,1),l7(n.typeParameters,r,"typeParameters",t,1),r}function fx(e){var t={type:"TSTypeLiteral",members:e};return l7(ce.TSTypeLiteral.members,t,"members",e,1),t}function fT(e){var t={type:"TSArrayType",elementType:e};return l7(ce.TSArrayType.elementType,t,"elementType",e,1),t}function fE(e){var t={type:"TSTupleType",elementTypes:e};return l7(ce.TSTupleType.elementTypes,t,"elementTypes",e,1),t}function f_(e){var t={type:"TSOptionalType",typeAnnotation:e};return l7(ce.TSOptionalType.typeAnnotation,t,"typeAnnotation",e,1),t}function fP(e){var t={type:"TSRestType",typeAnnotation:e};return l7(ce.TSRestType.typeAnnotation,t,"typeAnnotation",e,1),t}function fA(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n={type:"TSNamedTupleMember",label:e,elementType:t,optional:r},i=ce.TSNamedTupleMember;return l7(i.label,n,"label",e,1),l7(i.elementType,n,"elementType",t,1),l7(i.optional,n,"optional",r),n}function fk(e){var t={type:"TSUnionType",types:e};return l7(ce.TSUnionType.types,t,"types",e,1),t}function fC(e){var t={type:"TSIntersectionType",types:e};return l7(ce.TSIntersectionType.types,t,"types",e,1),t}function fw(e,t,r,n){var i={type:"TSConditionalType",checkType:e,extendsType:t,trueType:r,falseType:n},a=ce.TSConditionalType;return l7(a.checkType,i,"checkType",e,1),l7(a.extendsType,i,"extendsType",t,1),l7(a.trueType,i,"trueType",r,1),l7(a.falseType,i,"falseType",n,1),i}function fI(e){var t={type:"TSInferType",typeParameter:e};return l7(ce.TSInferType.typeParameter,t,"typeParameter",e,1),t}function fN(e){var t={type:"TSParenthesizedType",typeAnnotation:e};return l7(ce.TSParenthesizedType.typeAnnotation,t,"typeAnnotation",e,1),t}function fO(e){var t={type:"TSTypeOperator",typeAnnotation:e,operator:null};return l7(ce.TSTypeOperator.typeAnnotation,t,"typeAnnotation",e,1),t}function fD(e,t){var r={type:"TSIndexedAccessType",objectType:e,indexType:t},n=ce.TSIndexedAccessType;return l7(n.objectType,r,"objectType",e,1),l7(n.indexType,r,"indexType",t,1),r}function fL(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i={type:"TSMappedType",key:e,constraint:t,nameType:r,typeAnnotation:n},a=ce.TSMappedType;return l7(a.key,i,"key",e,1),l7(a.constraint,i,"constraint",t,1),l7(a.nameType,i,"nameType",r,1),l7(a.typeAnnotation,i,"typeAnnotation",n,1),i}function fM(e){var t={type:"TSLiteralType",literal:e};return l7(ce.TSLiteralType.literal,t,"literal",e,1),t}function fF(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={type:"TSClassImplements",expression:e,typeParameters:t},n=ce.TSClassImplements;return l7(n.expression,r,"expression",e,1),l7(n.typeParameters,r,"typeParameters",t,1),r}function fB(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={type:"TSInterfaceHeritage",expression:e,typeParameters:t},n=ce.TSInterfaceHeritage;return l7(n.expression,r,"expression",e,1),l7(n.typeParameters,r,"typeParameters",t,1),r}function fR(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0,i={type:"TSInterfaceDeclaration",id:e,typeParameters:t,extends:r,body:n},a=ce.TSInterfaceDeclaration;return l7(a.id,i,"id",e,1),l7(a.typeParameters,i,"typeParameters",t,1),l7(a.extends,i,"extends",r,1),l7(a.body,i,"body",n,1),i}function fj(e){var t={type:"TSInterfaceBody",body:e};return l7(ce.TSInterfaceBody.body,t,"body",e,1),t}function fU(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0,n={type:"TSTypeAliasDeclaration",id:e,typeParameters:t,typeAnnotation:r},i=ce.TSTypeAliasDeclaration;return l7(i.id,n,"id",e,1),l7(i.typeParameters,n,"typeParameters",t,1),l7(i.typeAnnotation,n,"typeAnnotation",r,1),n}function fV(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={type:"TSInstantiationExpression",expression:e,typeParameters:t},n=ce.TSInstantiationExpression;return l7(n.expression,r,"expression",e,1),l7(n.typeParameters,r,"typeParameters",t,1),r}function fW(e,t){var r={type:"TSAsExpression",expression:e,typeAnnotation:t},n=ce.TSAsExpression;return l7(n.expression,r,"expression",e,1),l7(n.typeAnnotation,r,"typeAnnotation",t,1),r}function fq(e,t){var r={type:"TSSatisfiesExpression",expression:e,typeAnnotation:t},n=ce.TSSatisfiesExpression;return l7(n.expression,r,"expression",e,1),l7(n.typeAnnotation,r,"typeAnnotation",t,1),r}function fJ(e,t){var r={type:"TSTypeAssertion",typeAnnotation:e,expression:t},n=ce.TSTypeAssertion;return l7(n.typeAnnotation,r,"typeAnnotation",e,1),l7(n.expression,r,"expression",t,1),r}function fX(e,t){var r={type:"TSEnumDeclaration",id:e,members:t},n=ce.TSEnumDeclaration;return l7(n.id,r,"id",e,1),l7(n.members,r,"members",t,1),r}function fG(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={type:"TSEnumMember",id:e,initializer:t},n=ce.TSEnumMember;return l7(n.id,r,"id",e,1),l7(n.initializer,r,"initializer",t,1),r}function fK(e,t){var r={type:"TSModuleDeclaration",id:e,body:t,kind:null},n=ce.TSModuleDeclaration;return l7(n.id,r,"id",e,1),l7(n.body,r,"body",t,1),r}function fH(e){var t={type:"TSModuleBlock",body:e};return l7(ce.TSModuleBlock.body,t,"body",e,1),t}function fz(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n={type:"TSImportType",argument:e,qualifier:t,typeParameters:r},i=ce.TSImportType;return l7(i.argument,n,"argument",e,1),l7(i.qualifier,n,"qualifier",t,1),l7(i.typeParameters,n,"typeParameters",r,1),n}function f$(e,t){var r={type:"TSImportEqualsDeclaration",id:e,moduleReference:t,isExport:null},n=ce.TSImportEqualsDeclaration;return l7(n.id,r,"id",e,1),l7(n.moduleReference,r,"moduleReference",t,1),r}function fY(e){var t={type:"TSExternalModuleReference",expression:e};return l7(ce.TSExternalModuleReference.expression,t,"expression",e,1),t}function fQ(e){var t={type:"TSNonNullExpression",expression:e};return l7(ce.TSNonNullExpression.expression,t,"expression",e,1),t}function fZ(e){var t={type:"TSExportAssignment",expression:e};return l7(ce.TSExportAssignment.expression,t,"expression",e,1),t}function f0(e){var t={type:"TSNamespaceExportDeclaration",id:e};return l7(ce.TSNamespaceExportDeclaration.id,t,"id",e,1),t}function f1(e){var t={type:"TSTypeAnnotation",typeAnnotation:e};return l7(ce.TSTypeAnnotation.typeAnnotation,t,"typeAnnotation",e,1),t}function f2(e){var t={type:"TSTypeParameterInstantiation",params:e};return l7(ce.TSTypeParameterInstantiation.params,t,"params",e,1),t}function f3(e){var t={type:"TSTypeParameterDeclaration",params:e};return l7(ce.TSTypeParameterDeclaration.params,t,"params",e,1),t}function f4(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0,n={type:"TSTypeParameter",constraint:e,default:t,name:r},i=ce.TSTypeParameter;return l7(i.constraint,n,"constraint",e,1),l7(i.default,n,"default",t,1),l7(i.name,n,"name",r,1),n}function f5(e){return nd("NumberLiteral","NumericLiteral","The node type "),cA(e)}function f8(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return nd("RegexLiteral","RegExpLiteral","The node type "),cw(e,t)}function f6(e){return nd("RestProperty","RestElement","The node type "),cB(e)}function f9(e){return nd("SpreadProperty","SpreadElement","The node type "),po(e)}function f7(e){return!!(e&&u_[e.type])}function he(e){if(!f7(e)){var t,r=null!==(t=null==e?void 0:e.type)&&void 0!==t?t:JSON.stringify(e);throw TypeError('Not a valid node of type "'.concat(r,'"'))}}function ht(e,t,r){if(!ur(e,t,r))throw Error('Expected type "'.concat(e,'" with option ').concat(JSON.stringify(r),', but instead got "').concat(t.type,'".'))}function hr(e,t){ht("ArrayExpression",e,t)}function hn(e,t){ht("AssignmentExpression",e,t)}function hi(e,t){ht("BinaryExpression",e,t)}function ha(e,t){ht("InterpreterDirective",e,t)}function hs(e,t){ht("Directive",e,t)}function ho(e,t){ht("DirectiveLiteral",e,t)}function hu(e,t){ht("BlockStatement",e,t)}function hl(e,t){ht("BreakStatement",e,t)}function hc(e,t){ht("CallExpression",e,t)}function hp(e,t){ht("CatchClause",e,t)}function hd(e,t){ht("ConditionalExpression",e,t)}function hf(e,t){ht("ContinueStatement",e,t)}function hh(e,t){ht("DebuggerStatement",e,t)}function hm(e,t){ht("DoWhileStatement",e,t)}function hy(e,t){ht("EmptyStatement",e,t)}function hv(e,t){ht("ExpressionStatement",e,t)}function hg(e,t){ht("File",e,t)}function hb(e,t){ht("ForInStatement",e,t)}function hS(e,t){ht("ForStatement",e,t)}function hx(e,t){ht("FunctionDeclaration",e,t)}function hT(e,t){ht("FunctionExpression",e,t)}function hE(e,t){ht("Identifier",e,t)}function h_(e,t){ht("IfStatement",e,t)}function hP(e,t){ht("LabeledStatement",e,t)}function hA(e,t){ht("StringLiteral",e,t)}function hk(e,t){ht("NumericLiteral",e,t)}function hC(e,t){ht("NullLiteral",e,t)}function hw(e,t){ht("BooleanLiteral",e,t)}function hI(e,t){ht("RegExpLiteral",e,t)}function hN(e,t){ht("LogicalExpression",e,t)}function hO(e,t){ht("MemberExpression",e,t)}function hD(e,t){ht("NewExpression",e,t)}function hL(e,t){ht("Program",e,t)}function hM(e,t){ht("ObjectExpression",e,t)}function hF(e,t){ht("ObjectMethod",e,t)}function hB(e,t){ht("ObjectProperty",e,t)}function hR(e,t){ht("RestElement",e,t)}function hj(e,t){ht("ReturnStatement",e,t)}function hU(e,t){ht("SequenceExpression",e,t)}function hV(e,t){ht("ParenthesizedExpression",e,t)}function hW(e,t){ht("SwitchCase",e,t)}function hq(e,t){ht("SwitchStatement",e,t)}function hJ(e,t){ht("ThisExpression",e,t)}function hX(e,t){ht("ThrowStatement",e,t)}function hG(e,t){ht("TryStatement",e,t)}function hK(e,t){ht("UnaryExpression",e,t)}function hH(e,t){ht("UpdateExpression",e,t)}function hz(e,t){ht("VariableDeclaration",e,t)}function h$(e,t){ht("VariableDeclarator",e,t)}function hY(e,t){ht("WhileStatement",e,t)}function hQ(e,t){ht("WithStatement",e,t)}function hZ(e,t){ht("AssignmentPattern",e,t)}function h0(e,t){ht("ArrayPattern",e,t)}function h1(e,t){ht("ArrowFunctionExpression",e,t)}function h2(e,t){ht("ClassBody",e,t)}function h3(e,t){ht("ClassExpression",e,t)}function h4(e,t){ht("ClassDeclaration",e,t)}function h5(e,t){ht("ExportAllDeclaration",e,t)}function h8(e,t){ht("ExportDefaultDeclaration",e,t)}function h6(e,t){ht("ExportNamedDeclaration",e,t)}function h9(e,t){ht("ExportSpecifier",e,t)}function h7(e,t){ht("ForOfStatement",e,t)}function me(e,t){ht("ImportDeclaration",e,t)}function mt(e,t){ht("ImportDefaultSpecifier",e,t)}function mr(e,t){ht("ImportNamespaceSpecifier",e,t)}function mn(e,t){ht("ImportSpecifier",e,t)}function mi(e,t){ht("ImportExpression",e,t)}function ma(e,t){ht("MetaProperty",e,t)}function ms(e,t){ht("ClassMethod",e,t)}function mo(e,t){ht("ObjectPattern",e,t)}function mu(e,t){ht("SpreadElement",e,t)}function ml(e,t){ht("Super",e,t)}function mc(e,t){ht("TaggedTemplateExpression",e,t)}function mp(e,t){ht("TemplateElement",e,t)}function md(e,t){ht("TemplateLiteral",e,t)}function mf(e,t){ht("YieldExpression",e,t)}function mh(e,t){ht("AwaitExpression",e,t)}function mm(e,t){ht("Import",e,t)}function my(e,t){ht("BigIntLiteral",e,t)}function mv(e,t){ht("ExportNamespaceSpecifier",e,t)}function mg(e,t){ht("OptionalMemberExpression",e,t)}function mb(e,t){ht("OptionalCallExpression",e,t)}function mS(e,t){ht("ClassProperty",e,t)}function mx(e,t){ht("ClassAccessorProperty",e,t)}function mT(e,t){ht("ClassPrivateProperty",e,t)}function mE(e,t){ht("ClassPrivateMethod",e,t)}function m_(e,t){ht("PrivateName",e,t)}function mP(e,t){ht("StaticBlock",e,t)}function mA(e,t){ht("AnyTypeAnnotation",e,t)}function mk(e,t){ht("ArrayTypeAnnotation",e,t)}function mC(e,t){ht("BooleanTypeAnnotation",e,t)}function mw(e,t){ht("BooleanLiteralTypeAnnotation",e,t)}function mI(e,t){ht("NullLiteralTypeAnnotation",e,t)}function mN(e,t){ht("ClassImplements",e,t)}function mO(e,t){ht("DeclareClass",e,t)}function mD(e,t){ht("DeclareFunction",e,t)}function mL(e,t){ht("DeclareInterface",e,t)}function mM(e,t){ht("DeclareModule",e,t)}function mF(e,t){ht("DeclareModuleExports",e,t)}function mB(e,t){ht("DeclareTypeAlias",e,t)}function mR(e,t){ht("DeclareOpaqueType",e,t)}function mj(e,t){ht("DeclareVariable",e,t)}function mU(e,t){ht("DeclareExportDeclaration",e,t)}function mV(e,t){ht("DeclareExportAllDeclaration",e,t)}function mW(e,t){ht("DeclaredPredicate",e,t)}function mq(e,t){ht("ExistsTypeAnnotation",e,t)}function mJ(e,t){ht("FunctionTypeAnnotation",e,t)}function mX(e,t){ht("FunctionTypeParam",e,t)}function mG(e,t){ht("GenericTypeAnnotation",e,t)}function mK(e,t){ht("InferredPredicate",e,t)}function mH(e,t){ht("InterfaceExtends",e,t)}function mz(e,t){ht("InterfaceDeclaration",e,t)}function m$(e,t){ht("InterfaceTypeAnnotation",e,t)}function mY(e,t){ht("IntersectionTypeAnnotation",e,t)}function mQ(e,t){ht("MixedTypeAnnotation",e,t)}function mZ(e,t){ht("EmptyTypeAnnotation",e,t)}function m0(e,t){ht("NullableTypeAnnotation",e,t)}function m1(e,t){ht("NumberLiteralTypeAnnotation",e,t)}function m2(e,t){ht("NumberTypeAnnotation",e,t)}function m3(e,t){ht("ObjectTypeAnnotation",e,t)}function m4(e,t){ht("ObjectTypeInternalSlot",e,t)}function m5(e,t){ht("ObjectTypeCallProperty",e,t)}function m8(e,t){ht("ObjectTypeIndexer",e,t)}function m6(e,t){ht("ObjectTypeProperty",e,t)}function m9(e,t){ht("ObjectTypeSpreadProperty",e,t)}function m7(e,t){ht("OpaqueType",e,t)}function ye(e,t){ht("QualifiedTypeIdentifier",e,t)}function yt(e,t){ht("StringLiteralTypeAnnotation",e,t)}function yr(e,t){ht("StringTypeAnnotation",e,t)}function yn(e,t){ht("SymbolTypeAnnotation",e,t)}function yi(e,t){ht("ThisTypeAnnotation",e,t)}function ya(e,t){ht("TupleTypeAnnotation",e,t)}function ys(e,t){ht("TypeofTypeAnnotation",e,t)}function yo(e,t){ht("TypeAlias",e,t)}function yu(e,t){ht("TypeAnnotation",e,t)}function yl(e,t){ht("TypeCastExpression",e,t)}function yc(e,t){ht("TypeParameter",e,t)}function yp(e,t){ht("TypeParameterDeclaration",e,t)}function yd(e,t){ht("TypeParameterInstantiation",e,t)}function yf(e,t){ht("UnionTypeAnnotation",e,t)}function yh(e,t){ht("Variance",e,t)}function ym(e,t){ht("VoidTypeAnnotation",e,t)}function yy(e,t){ht("EnumDeclaration",e,t)}function yv(e,t){ht("EnumBooleanBody",e,t)}function yg(e,t){ht("EnumNumberBody",e,t)}function yb(e,t){ht("EnumStringBody",e,t)}function yS(e,t){ht("EnumSymbolBody",e,t)}function yx(e,t){ht("EnumBooleanMember",e,t)}function yT(e,t){ht("EnumNumberMember",e,t)}function yE(e,t){ht("EnumStringMember",e,t)}function y_(e,t){ht("EnumDefaultedMember",e,t)}function yP(e,t){ht("IndexedAccessType",e,t)}function yA(e,t){ht("OptionalIndexedAccessType",e,t)}function yk(e,t){ht("JSXAttribute",e,t)}function yC(e,t){ht("JSXClosingElement",e,t)}function yw(e,t){ht("JSXElement",e,t)}function yI(e,t){ht("JSXEmptyExpression",e,t)}function yN(e,t){ht("JSXExpressionContainer",e,t)}function yO(e,t){ht("JSXSpreadChild",e,t)}function yD(e,t){ht("JSXIdentifier",e,t)}function yL(e,t){ht("JSXMemberExpression",e,t)}function yM(e,t){ht("JSXNamespacedName",e,t)}function yF(e,t){ht("JSXOpeningElement",e,t)}function yB(e,t){ht("JSXSpreadAttribute",e,t)}function yR(e,t){ht("JSXText",e,t)}function yj(e,t){ht("JSXFragment",e,t)}function yU(e,t){ht("JSXOpeningFragment",e,t)}function yV(e,t){ht("JSXClosingFragment",e,t)}function yW(e,t){ht("Placeholder",e,t)}function yq(e,t){ht("V8IntrinsicIdentifier",e,t)}function yJ(e,t){ht("ArgumentPlaceholder",e,t)}function yX(e,t){ht("BindExpression",e,t)}function yG(e,t){ht("ImportAttribute",e,t)}function yK(e,t){ht("Decorator",e,t)}function yH(e,t){ht("DoExpression",e,t)}function yz(e,t){ht("ExportDefaultSpecifier",e,t)}function y$(e,t){ht("RecordExpression",e,t)}function yY(e,t){ht("TupleExpression",e,t)}function yQ(e,t){ht("ModuleExpression",e,t)}function yZ(e,t){ht("TopicReference",e,t)}function y0(e,t){ht("PipelineTopicExpression",e,t)}function y1(e,t){ht("PipelineBareFunction",e,t)}function y2(e,t){ht("PipelinePrimaryTopicReference",e,t)}function y3(e,t){ht("TSParameterProperty",e,t)}function y4(e,t){ht("TSDeclareFunction",e,t)}function y5(e,t){ht("TSDeclareMethod",e,t)}function y8(e,t){ht("TSQualifiedName",e,t)}function y6(e,t){ht("TSCallSignatureDeclaration",e,t)}function y9(e,t){ht("TSConstructSignatureDeclaration",e,t)}function y7(e,t){ht("TSPropertySignature",e,t)}function ve(e,t){ht("TSMethodSignature",e,t)}function vt(e,t){ht("TSIndexSignature",e,t)}function vr(e,t){ht("TSAnyKeyword",e,t)}function vn(e,t){ht("TSBooleanKeyword",e,t)}function vi(e,t){ht("TSBigIntKeyword",e,t)}function va(e,t){ht("TSIntrinsicKeyword",e,t)}function vs(e,t){ht("TSNeverKeyword",e,t)}function vo(e,t){ht("TSNullKeyword",e,t)}function vu(e,t){ht("TSNumberKeyword",e,t)}function vl(e,t){ht("TSObjectKeyword",e,t)}function vc(e,t){ht("TSStringKeyword",e,t)}function vp(e,t){ht("TSSymbolKeyword",e,t)}function vd(e,t){ht("TSUndefinedKeyword",e,t)}function vf(e,t){ht("TSUnknownKeyword",e,t)}function vh(e,t){ht("TSVoidKeyword",e,t)}function vm(e,t){ht("TSThisType",e,t)}function vy(e,t){ht("TSFunctionType",e,t)}function vv(e,t){ht("TSConstructorType",e,t)}function vg(e,t){ht("TSTypeReference",e,t)}function vb(e,t){ht("TSTypePredicate",e,t)}function vS(e,t){ht("TSTypeQuery",e,t)}function vx(e,t){ht("TSTypeLiteral",e,t)}function vT(e,t){ht("TSArrayType",e,t)}function vE(e,t){ht("TSTupleType",e,t)}function v_(e,t){ht("TSOptionalType",e,t)}function vP(e,t){ht("TSRestType",e,t)}function vA(e,t){ht("TSNamedTupleMember",e,t)}function vk(e,t){ht("TSUnionType",e,t)}function vC(e,t){ht("TSIntersectionType",e,t)}function vw(e,t){ht("TSConditionalType",e,t)}function vI(e,t){ht("TSInferType",e,t)}function vN(e,t){ht("TSParenthesizedType",e,t)}function vO(e,t){ht("TSTypeOperator",e,t)}function vD(e,t){ht("TSIndexedAccessType",e,t)}function vL(e,t){ht("TSMappedType",e,t)}function vM(e,t){ht("TSLiteralType",e,t)}function vF(e,t){ht("TSClassImplements",e,t)}function vB(e,t){ht("TSInterfaceHeritage",e,t)}function vR(e,t){ht("TSInterfaceDeclaration",e,t)}function vj(e,t){ht("TSInterfaceBody",e,t)}function vU(e,t){ht("TSTypeAliasDeclaration",e,t)}function vV(e,t){ht("TSInstantiationExpression",e,t)}function vW(e,t){ht("TSAsExpression",e,t)}function vq(e,t){ht("TSSatisfiesExpression",e,t)}function vJ(e,t){ht("TSTypeAssertion",e,t)}function vX(e,t){ht("TSEnumDeclaration",e,t)}function vG(e,t){ht("TSEnumMember",e,t)}function vK(e,t){ht("TSModuleDeclaration",e,t)}function vH(e,t){ht("TSModuleBlock",e,t)}function vz(e,t){ht("TSImportType",e,t)}function v$(e,t){ht("TSImportEqualsDeclaration",e,t)}function vY(e,t){ht("TSExternalModuleReference",e,t)}function vQ(e,t){ht("TSNonNullExpression",e,t)}function vZ(e,t){ht("TSExportAssignment",e,t)}function v0(e,t){ht("TSNamespaceExportDeclaration",e,t)}function v1(e,t){ht("TSTypeAnnotation",e,t)}function v2(e,t){ht("TSTypeParameterInstantiation",e,t)}function v3(e,t){ht("TSTypeParameterDeclaration",e,t)}function v4(e,t){ht("TSTypeParameter",e,t)}function v5(e,t){ht("Standardized",e,t)}function v8(e,t){ht("Expression",e,t)}function v6(e,t){ht("Binary",e,t)}function v9(e,t){ht("Scopable",e,t)}function v7(e,t){ht("BlockParent",e,t)}function ge(e,t){ht("Block",e,t)}function gt(e,t){ht("Statement",e,t)}function gr(e,t){ht("Terminatorless",e,t)}function gn(e,t){ht("CompletionStatement",e,t)}function gi(e,t){ht("Conditional",e,t)}function ga(e,t){ht("Loop",e,t)}function gs(e,t){ht("While",e,t)}function go(e,t){ht("ExpressionWrapper",e,t)}function gu(e,t){ht("For",e,t)}function gl(e,t){ht("ForXStatement",e,t)}function gc(e,t){ht("Function",e,t)}function gp(e,t){ht("FunctionParent",e,t)}function gd(e,t){ht("Pureish",e,t)}function gf(e,t){ht("Declaration",e,t)}function gh(e,t){ht("PatternLike",e,t)}function gm(e,t){ht("LVal",e,t)}function gy(e,t){ht("TSEntityName",e,t)}function gv(e,t){ht("Literal",e,t)}function gg(e,t){ht("Immutable",e,t)}function gb(e,t){ht("UserWhitespacable",e,t)}function gS(e,t){ht("Method",e,t)}function gx(e,t){ht("ObjectMember",e,t)}function gT(e,t){ht("Property",e,t)}function gE(e,t){ht("UnaryLike",e,t)}function g_(e,t){ht("Pattern",e,t)}function gP(e,t){ht("Class",e,t)}function gA(e,t){ht("ImportOrExportDeclaration",e,t)}function gk(e,t){ht("ExportDeclaration",e,t)}function gC(e,t){ht("ModuleSpecifier",e,t)}function gw(e,t){ht("Accessor",e,t)}function gI(e,t){ht("Private",e,t)}function gN(e,t){ht("Flow",e,t)}function gO(e,t){ht("FlowType",e,t)}function gD(e,t){ht("FlowBaseAnnotation",e,t)}function gL(e,t){ht("FlowDeclaration",e,t)}function gM(e,t){ht("FlowPredicate",e,t)}function gF(e,t){ht("EnumBody",e,t)}function gB(e,t){ht("EnumMember",e,t)}function gR(e,t){ht("JSX",e,t)}function gj(e,t){ht("Miscellaneous",e,t)}function gU(e,t){ht("TypeScript",e,t)}function gV(e,t){ht("TSTypeElement",e,t)}function gW(e,t){ht("TSType",e,t)}function gq(e,t){ht("TSBaseType",e,t)}function gJ(e,t){nd("assertNumberLiteral","assertNumericLiteral"),ht("NumberLiteral",e,t)}function gX(e,t){nd("assertRegexLiteral","assertRegExpLiteral"),ht("RegexLiteral",e,t)}function gG(e,t){nd("assertRestProperty","assertRestElement"),ht("RestProperty",e,t)}function gK(e,t){nd("assertSpreadProperty","assertSpreadElement"),ht("SpreadProperty",e,t)}function gH(e,t){nd("assertModuleDeclaration","assertImportOrExportDeclaration"),ht("ModuleDeclaration",e,t)}function gz(e){switch(e){case"string":return dt();case"number":return p1();case"undefined":return dm();case"boolean":return pk();case"function":return pX(cT("Function"));case"object":return pX(cT("Object"));case"symbol":return pX(cT("Symbol"));case"bigint":return pP()}throw Error("Invalid typeof value: "+e)}function g$(e){for(var t=Array.from(e),r=/* @__PURE__ */new Map,n=/* @__PURE__ */new Map,i=/* @__PURE__ */new Set,a=[],s=0;s<t.length;s++){var o=t[s];if(o){if(a.includes(o))continue;if(ij(o))return[o];if(oX(o)){n.set(o.type,o);continue}if(aA(o)){i.has(o.types)||(t.push.apply(t,r_(o.types)),i.add(o.types));continue}if(i5(o)){var u=function e(t){return nL(t)?t.name:"".concat(t.id.name,".").concat(e(t.qualification))}(o.id);if(r.has(u)){var l,c=r.get(u);c.typeParameters?o.typeParameters&&((l=c.typeParameters.params).push.apply(l,r_(o.typeParameters.params)),c.typeParameters.params=g$(c.typeParameters.params)):c=o.typeParameters}else r.set(u,o);continue}a.push(o)}}var p=!0,d=!1,f=void 0;try{for(var h,m=n[Symbol.iterator]();!(p=(h=m.next()).done);p=!0){var y=rT(h.value,2)[1];a.push(y)}}catch(e){d=!0,f=e}finally{try{p||null==m.return||m.return()}finally{if(d)throw f}}var v=!0,g=!1,b=void 0;try{for(var S,x=r[Symbol.iterator]();!(v=(S=x.next()).done);v=!0){var T=rT(S.value,2)[1];a.push(T)}}catch(e){g=!0,b=e}finally{try{v||null==x.return||x.return()}finally{if(g)throw b}}return a}function gY(e){var t=g$(e);return 1===t.length?t[0]:df(t)}function gQ(e){var t=function e(t){for(var r=Array.from(t),n=/* @__PURE__ */new Map,i=/* @__PURE__ */new Map,a=/* @__PURE__ */new Set,s=[],o=0;o<r.length;o++){var u=r[o];if(u){if(s.includes(u))continue;if(sm(u))return[u];if(o1(u)){i.set(u.type,u);continue}if(sU(u)){a.has(u.types)||(r.push.apply(r,r_(u.types)),a.add(u.types));continue}var l="typeArguments";if(sN(u)&&u[l]){var c=u[l],p=function e(t){return nL(t)?t.name:"".concat(t.right.name,".").concat(e(t.left))}(u.typeName);if(n.has(p)){var d,f=n.get(p),h=f[l];h?((d=h.params).push.apply(d,r_(c.params)),h.params=e(h.params)):f=c}else n.set(p,u);continue}s.push(u)}}var m=!0,y=!1,v=void 0;try{for(var g,b=i[Symbol.iterator]();!(m=(g=b.next()).done);m=!0){var S=rT(g.value,2)[1];s.push(S)}}catch(e){y=!0,v=e}finally{try{m||null==b.return||b.return()}finally{if(y)throw v}}var x=!0,T=!1,E=void 0;try{for(var _,P=n[Symbol.iterator]();!(x=(_=P.next()).done);x=!0){var A=rT(_.value,2)[1];s.push(A)}}catch(e){T=!0,E=e}finally{try{x||null==P.return||P.return()}finally{if(T)throw E}}return s}(e.map(function(e){return oi(e)?e.typeAnnotation:e}));return 1===t.length?t[0]:fk(t)}function gZ(){return cG("void",cA(0),!0)}var g0=Object.hasOwn;function g1(e,t,r,n){return e&&"string"==typeof e.type?g4(e,t,r,n):e}function g2(e,t,r,n){return Array.isArray(e)?e.map(function(e){return g1(e,t,r,n)}):g1(e,t,r,n)}function g3(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return g4(e,t,r,/* @__PURE__ */new Map)}function g4(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3?arguments[3]:void 0;if(!e)return e;var i=e.type,a={type:e.type};if(nL(e))a.name=e.name,g0(e,"optional")&&"boolean"==typeof e.optional&&(a.optional=e.optional),g0(e,"typeAnnotation")&&(a.typeAnnotation=t?g2(e.typeAnnotation,!0,r,n):e.typeAnnotation),g0(e,"decorators")&&(a.decorators=t?g2(e.decorators,!0,r,n):e.decorators);else if(g0(uk,i)){var s=!0,o=!1,u=void 0;try{for(var l,c=Object.keys(uk[i])[Symbol.iterator]();!(s=(l=c.next()).done);s=!0){var p=l.value;g0(e,p)&&(t?a[p]=nw(e)&&"comments"===p?g5(e.comments,t,r,n):g2(e[p],!0,r,n):a[p]=e[p])}}catch(e){o=!0,u=e}finally{try{s||null==c.return||c.return()}finally{if(o)throw u}}}else throw Error('Unknown node type: "'.concat(i,'"'));return g0(e,"loc")&&(r?a.loc=null:a.loc=e.loc),g0(e,"leadingComments")&&(a.leadingComments=g5(e.leadingComments,t,r,n)),g0(e,"innerComments")&&(a.innerComments=g5(e.innerComments,t,r,n)),g0(e,"trailingComments")&&(a.trailingComments=g5(e.trailingComments,t,r,n)),g0(e,"extra")&&(a.extra=Object.assign({},e.extra)),a}function g5(e,t,r,n){return e&&t?e.map(function(e){var t=n.get(e);if(t)return t;var i={type:e.type,value:e.value,loc:e.loc};return r&&(i.loc=null),n.set(e,i),i}):e}function g8(e){return g3(e,!1)}function g6(e){return g3(e)}function g9(e){return g3(e,!0,!0)}function g7(e){return g3(e,!1,!0)}function be(e,t,r){if(!r||!e)return e;var n,i="".concat(t,"Comments");return e[i]?"leading"===t?e[i]=r.concat(e[i]):(n=e[i]).push.apply(n,r_(r)):e[i]=r,e}function bt(e,t,r,n){return be(e,t,[{type:n?"CommentLine":"CommentBlock",value:r}])}function br(e,t,r){t&&r&&(t[e]=Array.from(new Set([].concat(t[e],r[e]).filter(Boolean))))}function bn(e,t){br("innerComments",e,t)}function bi(e,t){br("leadingComments",e,t)}function ba(e,t){br("trailingComments",e,t)}function bs(e,t){return ba(e,t),bi(e,t),bn(e,t),e}function bo(e){return uo.forEach(function(t){e[t]=null}),e}var bu=uA.Standardized,bl=uA.Expression,bc=uA.Binary,bp=uA.Scopable,bd=uA.BlockParent,bf=uA.Block,bh=uA.Statement,bm=uA.Terminatorless,by=uA.CompletionStatement,bv=uA.Conditional,bg=uA.Loop,bb=uA.While,bS=uA.ExpressionWrapper,bx=uA.For,bT=uA.ForXStatement,bE=uA.Function,b_=uA.FunctionParent,bP=uA.Pureish,bA=uA.Declaration,bk=uA.PatternLike,bC=uA.LVal,bw=uA.TSEntityName,bI=uA.Literal,bN=uA.Immutable,bO=uA.UserWhitespacable,bD=uA.Method,bL=uA.ObjectMember,bM=uA.Property,bF=uA.UnaryLike,bB=uA.Pattern,bR=uA.Class,bj=uA.ImportOrExportDeclaration,bU=uA.ExportDeclaration,bV=uA.ModuleSpecifier,bW=uA.Accessor,bq=uA.Private,bJ=uA.Flow,bX=uA.FlowType,bG=uA.FlowBaseAnnotation,bK=uA.FlowDeclaration,bH=uA.FlowPredicate,bz=uA.EnumBody,b$=uA.EnumMember,bY=uA.JSX,bQ=uA.Miscellaneous,bZ=uA.TypeScript,b0=uA.TSTypeElement,b1=uA.TSType,b2=uA.TSBaseType,b3=bj;function b4(e,t){if(nb(e))return e;var r=[];return nk(e)?r=[]:(oh(e)||(e=oE(t)?cR(e):cy(e)),r=[e]),co(r)}function b5(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",r=b4(e[t],e);return e[t]=r,r}function b8(e){e+="";var t="",r=!0,n=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var o=a.value;t+=ni(o.codePointAt(0))?o:"-"}}catch(e){n=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw i}}return un(t=(t=t.replace(/^[-0-9]+/,"")).replace(/[-\s]+(.)?/g,function(e,t){return t?t.toUpperCase():""}))||(t="_".concat(t)),t||"_"}function b6(e){return("eval"===(e=b8(e))||"arguments"===e)&&(e="_"+e),e}function b9(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.key||e.property;return!e.computed&&nL(t)&&(t=cP(t.name)),t}function b7(e){if(nC(e)&&(e=e.expression),ol(e))return e;if(oB(e)?e.type="ClassExpression":oE(e)&&(e.type="FunctionExpression"),!ol(e))throw Error("cannot turn ".concat(e.type," to an expression"));return e}function Se(e,t,r){if(e){var n=u_[e.type];if(n){t(e,r=r||{});var i=!0,a=!1,s=void 0;try{for(var o,u=n[Symbol.iterator]();!(i=(o=u.next()).done);i=!0){var l=e[o.value];if(Array.isArray(l)){var c=!0,p=!1,d=void 0;try{for(var f,h=l[Symbol.iterator]();!(c=(f=h.next()).done);c=!0){var m=f.value;Se(m,t,r)}}catch(e){p=!0,d=e}finally{try{c||null==h.return||h.return()}finally{if(p)throw d}}}else Se(l,t,r)}}catch(e){a=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(a)throw s}}}}}var St=["tokens","start","end","loc","raw","rawValue"],Sr=r_(uo).concat(["comments"],r_(St));function Sn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.preserveComments?St:Sr,n=!0,i=!1,a=void 0;try{for(var s,o=r[Symbol.iterator]();!(n=(s=o.next()).done);n=!0){var u=s.value;null!=e[u]&&(e[u]=void 0)}}catch(e){i=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}var l=!0,c=!1,p=void 0;try{for(var d,f=Object.keys(e)[Symbol.iterator]();!(l=(d=f.next()).done);l=!0){var h=d.value;"_"===h[0]&&null!=e[h]&&(e[h]=void 0)}}catch(e){c=!0,p=e}finally{try{l||null==f.return||f.return()}finally{if(c)throw p}}var m=Object.getOwnPropertySymbols(e),y=!0,v=!1,g=void 0;try{for(var b,S=m[Symbol.iterator]();!(y=(b=S.next()).done);y=!0)e[b.value]=null}catch(e){v=!0,g=e}finally{try{y||null==S.return||S.return()}finally{if(v)throw g}}}function Si(e,t){return Se(e,Sn,t),e}function Sa(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.key;return"method"===e.kind?Sa.increment()+"":(t=nL(r)?r.name:nB(r)?JSON.stringify(r.value):JSON.stringify(Si(g3(r))),e.computed&&(t="[".concat(t,"]")),e.static&&(t="static:".concat(t)),t)}function Ss(e,t){if(oh(e))return e;var r,n=!1;if(oB(e))n=!0,r="ClassDeclaration";else if(oE(e))n=!0,r="FunctionDeclaration";else if(nh(e))return cy(e);if(n&&!e.id&&(r=!1),!r){if(t)return!1;throw Error("cannot turn ".concat(e.type," to a statement"))}return e.type=r,e}Sa.uid=0,Sa.increment=function(){return Sa.uid>=Number.MAX_SAFE_INTEGER?Sa.uid=0:Sa.uid++};var So=Function.call.bind(Object.prototype.toString);function Su(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.object=cN(e.object,e.property,e.computed),e.property=t,e.computed=!!r,e}function Sl(e,t){if(!e||!t)return e;var r=!0,n=!1,i=void 0;try{for(var a,s=ux.optional[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var o=a.value;null==e[o]&&(e[o]=t[o])}}catch(e){n=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw i}}var u=!0,l=!1,c=void 0;try{for(var p,d=Object.keys(t)[Symbol.iterator]();!(u=(p=d.next()).done);u=!0){var f=p.value;"_"===f[0]&&"__clone"!==f&&(e[f]=t[f])}}catch(e){l=!0,c=e}finally{try{u||null==d.return||d.return()}finally{if(l)throw c}}var h=!0,m=!1,y=void 0;try{for(var v,g=ux.force[Symbol.iterator]();!(h=(v=g.next()).done);h=!0){var b=v.value;e[b]=t[b]}}catch(e){m=!0,y=e}finally{try{h||null==g.return||g.return()}finally{if(m)throw y}}return bs(e,t),e}function Sc(e,t){if(iT(e.object))throw Error("Cannot prepend node to super property access (`super.foo`).");return e.object=cN(t,e.object),e}function Sp(e){for(var t=[].concat(e),r=/* @__PURE__ */Object.create(null);t.length;){var n=t.pop();if(n)switch(n.type){case"ArrayPattern":t.push.apply(t,r_(n.elements));break;case"AssignmentExpression":case"AssignmentPattern":case"ForInStatement":case"ForOfStatement":t.push(n.left);break;case"ObjectPattern":t.push.apply(t,r_(n.properties));break;case"ObjectProperty":t.push(n.value);break;case"RestElement":case"UpdateExpression":t.push(n.argument);break;case"UnaryExpression":"delete"===n.operator&&t.push(n.argument);break;case"Identifier":r[n.name]=n}}return r}function Sd(e,t,r,n){for(var i=[].concat(e),a=/* @__PURE__ */Object.create(null);i.length;){var s=i.shift();if(!(!s||n&&(nh(s)||n4(s)||n5(s)))){if(nL(s)){t?(a[s.name]=a[s.name]||[]).push(s):a[s.name]=s;continue}if(oj(s)&&!io(s)){oA(s.declaration)&&i.push(s.declaration);continue}if(r){if(nO(s)){i.push(s.id);continue}if(nD(s)||ia(s))continue}var o=Sd.keys[s.type];if(o)for(var u=0;u<o.length;u++){var l=s[o[u]];l&&(Array.isArray(l)?i.push.apply(i,r_(l)):i.push(l))}}}return a}function Sf(e,t){return Sd(e,t,!0)}function Sh(e){if(!e.computed||oI(e.key))return e.key}function Sm(e,t){if("id"in e&&e.id)return{name:e.id.name,originalNode:e.id};var r,n,i="";if(nH(t,{value:e})?n=Sh(t):nK(e)||ib(e)?(n=Sh(e),"get"===e.kind?i="get ":"set"===e.kind&&(i="set ")):n6(t,{init:e})?n=t.id:nh(t,{operator:"=",right:e})&&(n=t.left),!n)return null;var a=oI(n)?nj(r=n)?"null":nV(r)?"/".concat(r.pattern,"/").concat(r.flags):iP(r)?r.quasis.map(function(e){return e.value.raw}).join(""):void 0!==r.value?String(r.value):null:nL(n)?n.name:iB(n)?n.id.name:null;return null==a?null:{name:i+a,originalNode:n}}function Sy(e,t,r){"function"==typeof t&&(t={enter:t}),function e(t,r,n,i,a){var s=u_[t.type];if(s){r&&r(t,a,i);var o=!0,u=!1,l=void 0;try{for(var c,p=s[Symbol.iterator]();!(o=(c=p.next()).done);o=!0){var d=c.value,f=t[d];if(Array.isArray(f))for(var h=0;h<f.length;h++){var m=f[h];m&&(a.push({node:t,key:d,index:h}),e(m,r,n,i,a),a.pop())}else f&&(a.push({node:t,key:d}),e(f,r,n,i,a),a.pop())}}catch(e){u=!0,l=e}finally{try{o||null==p.return||p.return()}finally{if(u)throw l}}n&&n(t,a,i)}}(e,t.enter,t.exit,r,[])}function Sv(e,t,r){if(r&&"Identifier"===e.type&&"ObjectProperty"===t.type&&"ObjectExpression"===r.type)return!1;var n=Sd.keys[t.type];if(n)for(var i=0;i<n.length;i++){var a=t[n[i]];if(Array.isArray(a)){if(a.includes(e))return!0}else if(a===e)return!0}return!1}function Sg(e){return n8(e)&&("var"!==e.kind||e[uT])}function Sb(e){return nO(e)||is(e)||Sg(e)}function SS(e){return!!(ue(e.type,"Immutable")||nL(e)&&"undefined"===e.name)}function Sx(e,t,r){switch(t.type){case"MemberExpression":case"OptionalMemberExpression":if(t.property===e)return!!t.computed;return t.object===e;case"JSXMemberExpression":return t.object===e;case"VariableDeclarator":return t.init===e;case"ArrowFunctionExpression":return t.body===e;case"PrivateName":case"LabeledStatement":case"CatchClause":case"RestElement":case"BreakStatement":case"ContinueStatement":case"FunctionDeclaration":case"FunctionExpression":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportAttribute":case"JSXAttribute":case"ObjectPattern":case"ArrayPattern":case"MetaProperty":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":if(t.key===e)return!!t.computed;return!1;case"ObjectProperty":if(t.key===e)return!!t.computed;return!r||"ObjectPattern"!==r.type;case"ClassProperty":case"ClassAccessorProperty":case"TSPropertySignature":if(t.key===e)return!!t.computed;break;case"ClassPrivateProperty":case"ObjectTypeProperty":return t.key!==e;case"ClassDeclaration":case"ClassExpression":return t.superClass===e;case"AssignmentExpression":case"AssignmentPattern":return t.right===e;case"ExportSpecifier":if(null==r?void 0:r.source)return!1;return t.local===e;case"TSEnumMember":return t.id!==e}return!0}function ST(e,t){return!(nb(e)&&(oE(t)||nT(t)))&&(!!(oF(e)&&(oE(t)||nT(t)))||op(e))}function SE(e){return ih(e)||nL(e.imported||e.exported,{name:"default"})}Sd.keys={DeclareClass:["id"],DeclareFunction:["id"],DeclareModule:["id"],DeclareVariable:["id"],DeclareInterface:["id"],DeclareTypeAlias:["id"],DeclareOpaqueType:["id"],InterfaceDeclaration:["id"],TypeAlias:["id"],OpaqueType:["id"],CatchClause:["param"],LabeledStatement:["label"],UnaryExpression:["argument"],AssignmentExpression:["left"],ImportSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportDefaultSpecifier:["local"],ImportDeclaration:["specifiers"],ExportSpecifier:["exported"],ExportNamespaceSpecifier:["exported"],ExportDefaultSpecifier:["exported"],FunctionDeclaration:["id","params"],FunctionExpression:["id","params"],ArrowFunctionExpression:["params"],ObjectMethod:["params"],ClassMethod:["params"],ClassPrivateMethod:["params"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]};var S_=/* @__PURE__ */new Set(["abstract","boolean","byte","char","double","enum","final","float","goto","implements","int","interface","long","native","package","private","protected","public","short","static","synchronized","throws","transient","volatile"]);function SP(e){return un(e)&&!S_.has(e)}function SA(e){return n8(e,{kind:"var"})&&!e[uT]}var Sk={isReactComponent:o7,isCompatTag:function(e){return!!e&&/^[a-z]/.test(e)},buildChildren:function(e){for(var t=[],r=0;r<e.children.length;r++){var n=e.children[r];if(aY(n)){!function(e,t){for(var r=e.value.split(/\r\n|\n|\r/),n=0,i=0;i<r.length;i++)/[^ \t]/.exec(r[i])&&(n=i);for(var a="",s=0;s<r.length;s++){var o=r[s],u=0===s,l=s===r.length-1,c=s===n,p=o.replace(/\t/g," ");u||(p=p.replace(/^ +/,"")),l||(p=p.replace(/ +$/,"")),p&&(c||(p+=" "),a+=p)}a&&t.push(Sl(cP(a),e))}(n,t);continue}aJ(n)&&(n=n.expression),aq(n)||t.push(n)}return t}},SC=function e(t,r,n){rf(this,e),rX(this,"line"),rX(this,"column"),rX(this,"index"),this.line=t,this.column=r,this.index=n},Sw=function e(t,r){rf(this,e),rX(this,"start"),rX(this,"end"),rX(this,"filename"),rX(this,"identifierName"),this.start=t,this.end=r};function SI(e,t){return new SC(e.line,e.column+t,e.index+t)}var SN="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",SO={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},SD=function(e){return"UpdateExpression"===e.type?SO.UpdateExpression["".concat(e.prefix)]:SO[e.type]},SL=/* @__PURE__ */new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),SM=["message"];function SF(e,t,r){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:r})}function SB(e,t){if(Array.isArray(e))return function(t){return SB(t,e[0])};var r={},n=!0,i=!1,a=void 0;try{for(var s,o=Object.keys(e)[Symbol.iterator]();!(n=(s=o.next()).done);n=!0)!function(){var n,i,a,o,u,l,c=s.value,p=e[c],d="string"==typeof p?{message:function(){return p}}:"function"==typeof p?{message:p}:p,f=d.message,h=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(d,SM);r[c]=(i=(n=Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:c,toMessage:"string"==typeof f?function(){return f}:f},t?{syntaxPlugin:t}:{},h)).toMessage,a=n.code,o=n.reasonCode,u=n.syntaxPlugin,l="MissingPlugin"===o||"MissingOneOfPlugins"===o,function e(t,r){var n=SyntaxError();return n.code=a,n.reasonCode=o,n.loc=t,n.pos=t.index,n.syntaxPlugin=u,l&&(n.missingPlugin=r.missingPlugin),SF(n,"clone",function(){var n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=null!==(n=i.loc)&&void 0!==n?n:t;return e(new SC(a.line,a.column,a.index),Object.assign({},r,i.details))}),SF(n,"details",r),Object.defineProperty(n,"message",{configurable:!0,get:function(){var e="".concat(i(r)," (").concat(t.line,":").concat(t.column,")");return this.message=e,e},set:function(e){Object.defineProperty(this,"message",{value:e,writable:!0})}}),n})}()}catch(e){i=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}return r}var SR=Object.assign({},SB({ImportMetaOutsideModule:{message:"import.meta may appear only with 'sourceType: \"module\"'",code:SN},ImportOutsideModule:{message:"'import' and 'export' may appear only with 'sourceType: \"module\"'",code:SN}}),SB({AccessorIsGenerator:function(e){var t=e.kind;return"A ".concat(t,"ter cannot be a generator.")},ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:function(e){var t=e.kind;return"Missing initializer in ".concat(t," declaration.")},DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:function(e){var t=e.exportName;return"`".concat(t,"` has already been exported. Exported identifiers must be unique.")},DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:function(e){var t=e.phase;return"'import.".concat(t,"(...)' can only be parsed when using the 'createImportExpressions' option.")},ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:function(e){var t=e.localName,r=e.exportName;return"A string literal cannot be used as an exported binding without `from`.\n- Did you mean `export { '".concat(t,"' as '").concat(r,"' } from 'some-module'`?")},ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:function(e){var t=e.type;return"'".concat("ForInStatement"===t?"for-in":"for-of","' loop variable declaration may not have an initializer.")},ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:function(e){var t=e.type;return"Unsyntactic ".concat("BreakStatement"===t?"break":"continue",".")},IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:function(e){var t=e.importName;return'A string literal cannot be used as an imported binding.\n- Did you mean `import { "'.concat(t,'" as foo }`?')},ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:function(e){var t=e.radix;return"Expected number in radix ".concat(t,".")},InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:function(e){var t=e.reservedWord;return"Escape sequence in keyword ".concat(t,".")},InvalidIdentifier:function(e){var t=e.identifierName;return"Invalid identifier ".concat(t,".")},InvalidLhs:function(e){var t=e.ancestor;return"Invalid left-hand side in ".concat(SD(t),".")},InvalidLhsBinding:function(e){var t=e.ancestor;return"Binding invalid left-hand side in ".concat(SD(t),".")},InvalidLhsOptionalChaining:function(e){var t=e.ancestor;return"Invalid optional chaining in the left-hand side of ".concat(SD(t),".")},InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:function(e){var t=e.unexpected;return"Unexpected character '".concat(t,"'.")},InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:function(e){var t=e.identifierName;return"Private name #".concat(t," is not defined.")},InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:function(e){var t=e.labelName;return"Label '".concat(t,"' is already declared.")},LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:function(e){var t=e.missingPlugin;return"This experimental syntax requires enabling the parser plugin: ".concat(t.map(function(e){return JSON.stringify(e)}).join(", "),".")},MissingOneOfPlugins:function(e){var t=e.missingPlugin;return"This experimental syntax requires enabling one of the following parser plugin(s): ".concat(t.map(function(e){return JSON.stringify(e)}).join(", "),".")},MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:function(e){var t=e.key;return'Duplicate key "'.concat(t,'" is not allowed in module attributes.')},ModuleExportNameHasLoneSurrogate:function(e){var t=e.surrogateCharCode;return"An export name cannot include a lone surrogate, found '\\u".concat(t.toString(16),"'.")},ModuleExportUndefined:function(e){var t=e.localName;return"Export '".concat(t,"' is not defined.")},MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:function(e){var t=e.identifierName;return"Private names are only allowed in property accesses (`obj.#".concat(t,"`) or in `in` expressions (`#").concat(t," in obj`).")},PrivateNameRedeclaration:function(e){var t=e.identifierName;return"Duplicate private name #".concat(t,".")},RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:function(e){var t=e.keyword;return"Unexpected keyword '".concat(t,"'.")},UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:function(e){var t=e.reservedWord;return"Unexpected reserved word '".concat(t,"'.")},UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:function(e){var t=e.expected,r=e.unexpected;return"Unexpected token".concat(r?" '".concat(r,"'."):"").concat(t?', expected "'.concat(t,'"'):"")},UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:function(e){var t=e.target,r=e.onlyValidPropertyName;return"The only valid meta property for ".concat(t," is ").concat(t,".").concat(r,".")},UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:function(e){var t=e.identifierName;return"Identifier '".concat(t,"' has already been declared.")},YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."}),SB({StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:function(e){var t=e.referenceName;return"Assigning to '".concat(t,"' in strict mode.")},StrictEvalArgumentsBinding:function(e){var t=e.bindingName;return"Binding '".concat(t,"' in strict mode.")},StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."}),SB(rw())({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:function(e){var t=e.token;return"Invalid topic token ".concat(t,". In order to use ").concat(t,' as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "').concat(t,'" }.')},PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:function(e){var t=e.type;return"Hack-style pipe body cannot be an unparenthesized ".concat(SD({type:t}),"; please wrap it in parentheses.")},PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'})),Sj=Object.defineProperty,SU=function(e,t){e&&Sj(e,t,{enumerable:!1,value:e[t]})};function SV(e){return SU(e.loc.start,"index"),SU(e.loc.end,"index"),e}var SW=function e(t,r){rf(this,e),rX(this,"token"),rX(this,"preserveSpace"),this.token=t,this.preserveSpace=!!r},Sq={brace:new SW("{"),j_oTag:new SW("<tag"),j_cTag:new SW("</tag"),j_expr:new SW("<tag>...</tag>",!0)},SJ=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};rf(this,e),rX(this,"label"),rX(this,"keyword"),rX(this,"beforeExpr"),rX(this,"startsExpr"),rX(this,"rightAssociative"),rX(this,"isLoop"),rX(this,"isAssign"),rX(this,"prefix"),rX(this,"postfix"),rX(this,"binop"),this.label=t,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.rightAssociative=!!r.rightAssociative,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=null!=r.binop?r.binop:null},SX=/* @__PURE__ */new Map;function SG(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.keyword=e;var r=S1(e,t);return SX.set(e,r),r}function SK(e,t){return S1(e,{beforeExpr:!0,binop:t})}var SH=-1,Sz=[],S$=[],SY=[],SQ=[],SZ=[],S0=[];function S1(e){var t,r,n,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return++SH,S$.push(e),SY.push(null!==(t=a.binop)&&void 0!==t?t:-1),SQ.push(null!==(r=a.beforeExpr)&&void 0!==r&&r),SZ.push(null!==(n=a.startsExpr)&&void 0!==n&&n),S0.push(null!==(i=a.prefix)&&void 0!==i&&i),Sz.push(new SJ(e,a)),SH}function S2(e){var t,r,n,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return++SH,SX.set(e,SH),S$.push(e),SY.push(null!==(t=a.binop)&&void 0!==t?t:-1),SQ.push(null!==(r=a.beforeExpr)&&void 0!==r&&r),SZ.push(null!==(n=a.startsExpr)&&void 0!==n&&n),S0.push(null!==(i=a.prefix)&&void 0!==i&&i),Sz.push(new SJ("name",a)),SH}var S3={bracketL:S1("[",{beforeExpr:!0,startsExpr:!0}),bracketHashL:S1("#[",{beforeExpr:!0,startsExpr:!0}),bracketBarL:S1("[|",{beforeExpr:!0,startsExpr:!0}),bracketR:S1("]"),bracketBarR:S1("|]"),braceL:S1("{",{beforeExpr:!0,startsExpr:!0}),braceBarL:S1("{|",{beforeExpr:!0,startsExpr:!0}),braceHashL:S1("#{",{beforeExpr:!0,startsExpr:!0}),braceR:S1("}"),braceBarR:S1("|}"),parenL:S1("(",{beforeExpr:!0,startsExpr:!0}),parenR:S1(")"),comma:S1(",",{beforeExpr:!0}),semi:S1(";",{beforeExpr:!0}),colon:S1(":",{beforeExpr:!0}),doubleColon:S1("::",{beforeExpr:!0}),dot:S1("."),question:S1("?",{beforeExpr:!0}),questionDot:S1("?."),arrow:S1("=>",{beforeExpr:!0}),template:S1("template"),ellipsis:S1("...",{beforeExpr:!0}),backQuote:S1("`",{startsExpr:!0}),dollarBraceL:S1("${",{beforeExpr:!0,startsExpr:!0}),templateTail:S1("...`",{startsExpr:!0}),templateNonTail:S1("...${",{beforeExpr:!0,startsExpr:!0}),at:S1("@"),hash:S1("#",{startsExpr:!0}),interpreterDirective:S1("#!..."),eq:S1("=",{beforeExpr:!0,isAssign:!0}),assign:S1("_=",{beforeExpr:!0,isAssign:!0}),slashAssign:S1("_=",{beforeExpr:!0,isAssign:!0}),xorAssign:S1("_=",{beforeExpr:!0,isAssign:!0}),moduloAssign:S1("_=",{beforeExpr:!0,isAssign:!0}),incDec:S1("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),bang:S1("!",{beforeExpr:!0,prefix:!0,startsExpr:!0}),tilde:S1("~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),doubleCaret:S1("^^",{startsExpr:!0}),doubleAt:S1("@@",{startsExpr:!0}),pipeline:SK("|>",0),nullishCoalescing:SK("??",1),logicalOR:SK("||",1),logicalAND:SK("&&",2),bitwiseOR:SK("|",3),bitwiseXOR:SK("^",4),bitwiseAND:SK("&",5),equality:SK("==/!=/===/!==",6),lt:SK("</>/<=/>=",7),gt:SK("</>/<=/>=",7),relational:SK("</>/<=/>=",7),bitShift:SK("<</>>/>>>",8),bitShiftL:SK("<</>>/>>>",8),bitShiftR:SK("<</>>/>>>",8),plusMin:S1("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:S1("%",{binop:10,startsExpr:!0}),star:S1("*",{binop:10}),slash:SK("/",10),exponent:S1("**",{beforeExpr:!0,binop:11,rightAssociative:!0}),_in:SG("in",{beforeExpr:!0,binop:7}),_instanceof:SG("instanceof",{beforeExpr:!0,binop:7}),_break:SG("break"),_case:SG("case",{beforeExpr:!0}),_catch:SG("catch"),_continue:SG("continue"),_debugger:SG("debugger"),_default:SG("default",{beforeExpr:!0}),_else:SG("else",{beforeExpr:!0}),_finally:SG("finally"),_function:SG("function",{startsExpr:!0}),_if:SG("if"),_return:SG("return",{beforeExpr:!0}),_switch:SG("switch"),_throw:SG("throw",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_try:SG("try"),_var:SG("var"),_const:SG("const"),_with:SG("with"),_new:SG("new",{beforeExpr:!0,startsExpr:!0}),_this:SG("this",{startsExpr:!0}),_super:SG("super",{startsExpr:!0}),_class:SG("class",{startsExpr:!0}),_extends:SG("extends",{beforeExpr:!0}),_export:SG("export"),_import:SG("import",{startsExpr:!0}),_null:SG("null",{startsExpr:!0}),_true:SG("true",{startsExpr:!0}),_false:SG("false",{startsExpr:!0}),_typeof:SG("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:SG("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:SG("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_do:SG("do",{isLoop:!0,beforeExpr:!0}),_for:SG("for",{isLoop:!0}),_while:SG("while",{isLoop:!0}),_as:S2("as",{startsExpr:!0}),_assert:S2("assert",{startsExpr:!0}),_async:S2("async",{startsExpr:!0}),_await:S2("await",{startsExpr:!0}),_defer:S2("defer",{startsExpr:!0}),_from:S2("from",{startsExpr:!0}),_get:S2("get",{startsExpr:!0}),_let:S2("let",{startsExpr:!0}),_meta:S2("meta",{startsExpr:!0}),_of:S2("of",{startsExpr:!0}),_sent:S2("sent",{startsExpr:!0}),_set:S2("set",{startsExpr:!0}),_source:S2("source",{startsExpr:!0}),_static:S2("static",{startsExpr:!0}),_using:S2("using",{startsExpr:!0}),_yield:S2("yield",{startsExpr:!0}),_asserts:S2("asserts",{startsExpr:!0}),_checks:S2("checks",{startsExpr:!0}),_exports:S2("exports",{startsExpr:!0}),_global:S2("global",{startsExpr:!0}),_implements:S2("implements",{startsExpr:!0}),_intrinsic:S2("intrinsic",{startsExpr:!0}),_infer:S2("infer",{startsExpr:!0}),_is:S2("is",{startsExpr:!0}),_mixins:S2("mixins",{startsExpr:!0}),_proto:S2("proto",{startsExpr:!0}),_require:S2("require",{startsExpr:!0}),_satisfies:S2("satisfies",{startsExpr:!0}),_keyof:S2("keyof",{startsExpr:!0}),_readonly:S2("readonly",{startsExpr:!0}),_unique:S2("unique",{startsExpr:!0}),_abstract:S2("abstract",{startsExpr:!0}),_declare:S2("declare",{startsExpr:!0}),_enum:S2("enum",{startsExpr:!0}),_module:S2("module",{startsExpr:!0}),_namespace:S2("namespace",{startsExpr:!0}),_interface:S2("interface",{startsExpr:!0}),_type:S2("type",{startsExpr:!0}),_opaque:S2("opaque",{startsExpr:!0}),name:S1("name",{startsExpr:!0}),placeholder:S1("%%",{startsExpr:!0}),string:S1("string",{startsExpr:!0}),num:S1("num",{startsExpr:!0}),bigint:S1("bigint",{startsExpr:!0}),decimal:S1("decimal",{startsExpr:!0}),regexp:S1("regexp",{startsExpr:!0}),privateName:S1("#name",{startsExpr:!0}),eof:S1("eof"),jsxName:S1("jsxName"),jsxText:S1("jsxText",{beforeExpr:!0}),jsxTagStart:S1("jsxTagStart",{startsExpr:!0}),jsxTagEnd:S1("jsxTagEnd")};function S4(e){return e>=93&&e<=133}function S5(e){return e>=58&&e<=133}function S8(e){return e>=58&&e<=137}function S6(e){return e>=129&&e<=131}function S9(e){return e>=58&&e<=92}function S7(e){return e>=24&&e<=25}var xe="\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",xt="\xb7̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",xr=RegExp("["+xe+"]"),xn=RegExp("["+xe+xt+"]");xe=xt=null;var xi=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],xa=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function xs(e,t){for(var r=65536,n=0,i=t.length;n<i&&!((r+=t[n])>e);n+=2)if((r+=t[n+1])>=e)return!0;return!1}function xo(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&xr.test(String.fromCharCode(e)):xs(e,xi)))}function xu(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&xn.test(String.fromCharCode(e)):xs(e,xi)||xs(e,xa))))}var xl=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"]),xc=new Set(["implements","interface","let","package","private","protected","public","static","yield"]),xp=new Set(["eval","arguments"]);function xd(e,t){return t&&"await"===e||"enum"===e}function xf(e,t){return xd(e,t)||xc.has(e)}function xh(e,t){return xf(e,t)||xp.has(e)}var xm=/* @__PURE__ */new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]),xy=function e(t){rf(this,e),rX(this,"flags",0),rX(this,"names",/* @__PURE__ */new Map),rX(this,"firstLexicalName",""),this.flags=t},xv=/*#__PURE__*/function(){function e(t,r){rf(this,e),rX(this,"parser"),rX(this,"scopeStack",[]),rX(this,"inModule"),rX(this,"undefinedExports",/* @__PURE__ */new Map),this.parser=t,this.inModule=r}return rm(e,[{key:"inTopLevel",get:function(){return(1&this.currentScope().flags)>0}},{key:"inFunction",get:function(){return(2&this.currentVarScopeFlags())>0}},{key:"allowSuper",get:function(){return(16&this.currentThisScopeFlags())>0}},{key:"allowDirectSuper",get:function(){return(32&this.currentThisScopeFlags())>0}},{key:"inClass",get:function(){return(64&this.currentThisScopeFlags())>0}},{key:"inClassAndNotInNonArrowFunction",get:function(){var e=this.currentThisScopeFlags();return(64&e)>0&&(2&e)==0}},{key:"inStaticBlock",get:function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e].flags;if(128&t)return!0;if(451&t)return!1}}},{key:"inNonArrowFunction",get:function(){return(2&this.currentThisScopeFlags())>0}},{key:"treatFunctionsAsVar",get:function(){return this.treatFunctionsAsVarInScope(this.currentScope())}},{key:"createScope",value:function(e){return new xy(e)}},{key:"enter",value:function(e){this.scopeStack.push(this.createScope(e))}},{key:"exit",value:function(){return this.scopeStack.pop().flags}},{key:"treatFunctionsAsVarInScope",value:function(e){return!!(130&e.flags||!this.parser.inModule&&1&e.flags)}},{key:"declareName",value:function(e,t,r){var n=this.currentScope();if(8&t||16&t){this.checkRedeclarationInScope(n,e,t,r);var i=n.names.get(e)||0;16&t?i|=4:(n.firstLexicalName||(n.firstLexicalName=e),i|=2),n.names.set(e,i),8&t&&this.maybeExportDefined(n,e)}else if(4&t)for(var a=this.scopeStack.length-1;a>=0&&(n=this.scopeStack[a],this.checkRedeclarationInScope(n,e,t,r),n.names.set(e,1|(n.names.get(e)||0)),this.maybeExportDefined(n,e),!(387&n.flags));--a);this.parser.inModule&&1&n.flags&&this.undefinedExports.delete(e)}},{key:"maybeExportDefined",value:function(e,t){this.parser.inModule&&1&e.flags&&this.undefinedExports.delete(t)}},{key:"checkRedeclarationInScope",value:function(e,t,r,n){this.isRedeclaredInScope(e,t,r)&&this.parser.raise(SR.VarRedeclaration,n,{identifierName:t})}},{key:"isRedeclaredInScope",value:function(e,t,r){if(!(1&r))return!1;if(8&r)return e.names.has(t);var n=e.names.get(t);return 16&r?(2&n)>0||!this.treatFunctionsAsVarInScope(e)&&(1&n)>0:(2&n)>0&&!(8&e.flags&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(4&n)>0}},{key:"checkLocalExport",value:function(e){var t=e.name;this.scopeStack[0].names.has(t)||this.undefinedExports.set(t,e.loc.start)}},{key:"currentScope",value:function(){return this.scopeStack[this.scopeStack.length-1]}},{key:"currentVarScopeFlags",value:function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e].flags;if(387&t)return t}}},{key:"currentThisScopeFlags",value:function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e].flags;if(451&t&&!(4&t))return t}}}]),e}(),xg=/*#__PURE__*/function(e){function t(){var e;return rf(this,t),e=rd(this,t,arguments),rX(e,"declareFunctions",/* @__PURE__ */new Set),e}return rb(t,e),t}(xy),xb=/*#__PURE__*/function(e){function t(){return rf(this,t),rd(this,t,arguments)}return rb(t,e),rm(t,[{key:"createScope",value:function(e){return new xg(e)}},{key:"declareName",value:function(e,r,n){var i=this.currentScope();if(2048&r){this.checkRedeclarationInScope(i,e,r,n),this.maybeExportDefined(i,e),i.declareFunctions.add(e);return}rv(rg(t.prototype),"declareName",this).call(this,e,r,n)}},{key:"isRedeclaredInScope",value:function(e,r,n){if(rv(rg(t.prototype),"isRedeclaredInScope",this).call(this,e,r,n))return!0;if(2048&n&&!e.declareFunctions.has(r)){var i=e.names.get(r);return(4&i)>0||(2&i)>0}return!1}},{key:"checkLocalExport",value:function(e){this.scopeStack[0].declareFunctions.has(e.name)||rv(rg(t.prototype),"checkLocalExport",this).call(this,e)}}]),t}(xv);function xS(e,t){if(void 0===e.trailingComments)e.trailingComments=t;else{var r;(r=e.trailingComments).unshift.apply(r,r_(t))}}function xx(e,t){if(void 0===e.innerComments)e.innerComments=t;else{var r;(r=e.innerComments).unshift.apply(r,r_(t))}}function xT(e,t,r){for(var n=null,i=t.length;null===n&&i>0;)n=t[--i];null===n||n.start>r.start?xx(e,r.comments):xS(n,r.comments)}var xE=/*#__PURE__*/function(e){function t(){return rf(this,t),rd(this,t,arguments)}return rb(t,e),rm(t,[{key:"addComment",value:function(e){this.filename&&(e.loc.filename=this.filename);var t=this.state.commentsLen;this.comments.length!==t&&(this.comments.length=t),this.comments.push(e),this.state.commentsLen++}},{key:"processComment",value:function(e){var t=this.state.commentStack,r=t.length;if(0!==r){var n=r-1,i=t[n];i.start===e.end&&(i.leadingNode=e,n--);for(var a=e.start;n>=0;n--){var s=t[n],o=s.end;if(o>a)s.containingNode=e,this.finalizeComment(s),t.splice(n,1);else{o===a&&(s.trailingNode=e);break}}}}},{key:"finalizeComment",value:function(e){var t=e.comments;if(null!==e.leadingNode||null!==e.trailingNode)null!==e.leadingNode&&xS(e.leadingNode,t),null!==e.trailingNode&&function(e,t){if(void 0===e.leadingComments)e.leadingComments=t;else{var r;(r=e.leadingComments).unshift.apply(r,r_(t))}}(e.trailingNode,t);else{var r=e.containingNode,n=e.start;if(44===this.input.charCodeAt(this.offsetToSourcePos(n)-1))switch(r.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":xT(r,r.properties,e);break;case"CallExpression":case"OptionalCallExpression":xT(r,r.arguments,e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":xT(r,r.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":xT(r,r.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":xT(r,r.specifiers,e);break;default:xx(r,t)}else xx(r,t)}}},{key:"finalizeRemainingComments",value:function(){for(var e=this.state.commentStack,t=e.length-1;t>=0;t--)this.finalizeComment(e[t]);this.state.commentStack=[]}},{key:"resetPreviousNodeTrailingComments",value:function(e){var t=this.state.commentStack,r=t.length;if(0!==r){var n=t[r-1];n.leadingNode===e&&(n.leadingNode=null)}}},{key:"resetPreviousIdentifierLeadingComments",value:function(e){var t=this.state.commentStack,r=t.length;0!==r&&(t[r-1].trailingNode===e?t[r-1].trailingNode=null:r>=2&&t[r-2].trailingNode===e&&(t[r-2].trailingNode=null))}},{key:"takeSurroundingComments",value:function(e,t,r){var n=this.state.commentStack,i=n.length;if(0!==i)for(var a=i-1;a>=0;a--){var s=n[a],o=s.end;if(s.start===r)s.leadingNode=e;else if(o===t)s.trailingNode=e;else if(o<t)break}}}]),t}(/*#__PURE__*/function(){function e(){rf(this,e),rX(this,"sawUnambiguousESM",!1),rX(this,"ambiguousScriptDifferentAst",!1)}return rm(e,[{key:"sourceToOffsetPos",value:function(e){return e+this.startIndex}},{key:"offsetToSourcePos",value:function(e){return e-this.startIndex}},{key:"hasPlugin",value:function(e){if("string"==typeof e)return this.plugins.has(e);var t=rT(e,2),r=t[0],n=t[1];if(!this.hasPlugin(r))return!1;var i=this.plugins.get(r),a=!0,s=!1,o=void 0;try{for(var u,l=Object.keys(n)[Symbol.iterator]();!(a=(u=l.next()).done);a=!0){var c=u.value;if((null==i?void 0:i[c])!==n[c])return!1}}catch(e){s=!0,o=e}finally{try{a||null==l.return||l.return()}finally{if(s)throw o}}return!0}},{key:"getPluginOption",value:function(e,t){var r;return null===(r=this.plugins.get(e))||void 0===r?void 0:r[t]}}]),e}()),x_=RegExp(/\r\n|[\r\n\u2028\u2029]/.source,"g");function xP(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function xA(e,t,r){for(var n=t;n<r;n++)if(xP(e.charCodeAt(n)))return!0;return!1}var xk=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,xC=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g,xw=/*#__PURE__*/function(){function e(){rf(this,e),rX(this,"flags",1024),rX(this,"startIndex"),rX(this,"curLine"),rX(this,"lineStart"),rX(this,"startLoc"),rX(this,"endLoc"),rX(this,"errors",[]),rX(this,"potentialArrowAt",-1),rX(this,"noArrowAt",[]),rX(this,"noArrowParamsConversionAt",[]),rX(this,"topicContext",{maxNumOfResolvableTopics:0,maxTopicIndex:null}),rX(this,"labels",[]),rX(this,"commentsLen",0),rX(this,"commentStack",[]),rX(this,"pos",0),rX(this,"type",140),rX(this,"value",null),rX(this,"start",0),rX(this,"end",0),rX(this,"lastTokEndLoc",null),rX(this,"lastTokStartLoc",null),rX(this,"context",[Sq.brace]),rX(this,"firstInvalidTemplateEscapePos",null),rX(this,"strictErrors",/* @__PURE__ */new Map),rX(this,"tokensLength",0)}return rm(e,[{key:"strict",get:function(){return(1&this.flags)>0},set:function(e){e?this.flags|=1:this.flags&=-2}},{key:"init",value:function(e){var t=e.strictMode,r=e.sourceType,n=e.startIndex,i=e.startLine,a=e.startColumn;this.strict=!1!==t&&(!0===t||"module"===r),this.startIndex=n,this.curLine=i,this.lineStart=-a,this.startLoc=this.endLoc=new SC(i,a,n)}},{key:"maybeInArrowParameters",get:function(){return(2&this.flags)>0},set:function(e){e?this.flags|=2:this.flags&=-3}},{key:"inType",get:function(){return(4&this.flags)>0},set:function(e){e?this.flags|=4:this.flags&=-5}},{key:"noAnonFunctionType",get:function(){return(8&this.flags)>0},set:function(e){e?this.flags|=8:this.flags&=-9}},{key:"hasFlowComment",get:function(){return(16&this.flags)>0},set:function(e){e?this.flags|=16:this.flags&=-17}},{key:"isAmbientContext",get:function(){return(32&this.flags)>0},set:function(e){e?this.flags|=32:this.flags&=-33}},{key:"inAbstractClass",get:function(){return(64&this.flags)>0},set:function(e){e?this.flags|=64:this.flags&=-65}},{key:"inDisallowConditionalTypesContext",get:function(){return(128&this.flags)>0},set:function(e){e?this.flags|=128:this.flags&=-129}},{key:"soloAwait",get:function(){return(256&this.flags)>0},set:function(e){e?this.flags|=256:this.flags&=-257}},{key:"inFSharpPipelineDirectBody",get:function(){return(512&this.flags)>0},set:function(e){e?this.flags|=512:this.flags&=-513}},{key:"canStartJSXElement",get:function(){return(1024&this.flags)>0},set:function(e){e?this.flags|=1024:this.flags&=-1025}},{key:"containsEsc",get:function(){return(2048&this.flags)>0},set:function(e){e?this.flags|=2048:this.flags&=-2049}},{key:"hasTopLevelAwait",get:function(){return(4096&this.flags)>0},set:function(e){e?this.flags|=4096:this.flags&=-4097}},{key:"curPosition",value:function(){return new SC(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}},{key:"clone",value:function(){var t=new e;return t.flags=this.flags,t.startIndex=this.startIndex,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.potentialArrowAt=this.potentialArrowAt,t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.topicContext=this.topicContext,t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}}]),e}(),xI={decBinOct:/* @__PURE__ */new Set([46,66,69,79,95,98,101,111]),hex:/* @__PURE__ */new Set([46,88,95,120])},xN={bin:function(e){return 48===e||49===e},oct:function(e){return e>=48&&e<=55},dec:function(e){return e>=48&&e<=57},hex:function(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}};function xO(e,t,r,n,i,a){for(var s=r,o=n,u=i,l="",c=null,p=r,d=t.length;;){if(r>=d){a.unterminated(s,o,u),l+=t.slice(p,r);break}var f,h=t.charCodeAt(r);if(f=r,"template"===e?96===h||36===h&&123===t.charCodeAt(f+1):h===("double"===e?34:39)){l+=t.slice(p,r);break}if(92===h){l+=t.slice(p,r);var m=function(e,t,r,n,i,a){var s,o,u,l,c=!i;t++;var p=function(e){return{pos:t,ch:e,lineStart:r,curLine:n}},d=e.charCodeAt(t++);switch(d){case 110:return p("\n");case 114:return p("\r");case 120:return s=(o=xD(e,t,r,n,2,!1,c,a)).code,t=o.pos,p(null===s?null:String.fromCharCode(s));case 117:return u=(l=xM(e,t,r,n,c,a)).code,t=l.pos,p(null===u?null:String.fromCodePoint(u));case 116:return p(" ");case 98:return p("\b");case 118:return p("\v");case 102:return p("\f");case 13:10===e.charCodeAt(t)&&++t;case 10:r=t,++n;case 8232:case 8233:return p("");case 56:case 57:if(i)return p(null);a.strictNumericEscape(t-1,r,n);default:if(d>=48&&d<=55){var f=t-1,h=/^[0-7]+/.exec(e.slice(f,t+2))[0],m=parseInt(h,8);m>255&&(m=parseInt(h=h.slice(0,-1),8)),t+=h.length-1;var y=e.charCodeAt(t);if("0"!==h||56===y||57===y){if(i)return p(null);a.strictNumericEscape(f,r,n)}return p(String.fromCharCode(m))}return p(String.fromCharCode(d))}}(t,r,n,i,"template"===e,a);null!==m.ch||c?l+=m.ch:c={pos:r,lineStart:n,curLine:i},r=m.pos,n=m.lineStart,i=m.curLine,p=r}else 8232===h||8233===h?(++r,++i,n=r):10===h||13===h?"template"===e?(l+=t.slice(p,r)+"\n",++r,13===h&&10===t.charCodeAt(r)&&++r,++i,p=n=r):a.unterminated(s,o,u):++r}return{pos:r,str:l,firstInvalidLoc:c,lineStart:n,curLine:i}}function xD(e,t,r,n,i,a,s,o){var u,l,c=t;return u=(l=xL(e,t,r,n,16,i,a,!1,o,!s)).n,t=l.pos,null===u&&(s?o.invalidEscapeSequence(c,r,n):t=c-1),{code:u,pos:t}}function xL(e,t,r,n,i,a,s,o,u,l){for(var c=t,p=16===i?xI.hex:xI.decBinOct,d=16===i?xN.hex:10===i?xN.dec:8===i?xN.oct:xN.bin,f=!1,h=0,m=0,y=null==a?1/0:a;m<y;++m){var v=e.charCodeAt(t),g=void 0;if(95===v&&"bail"!==o){var b=e.charCodeAt(t-1),S=e.charCodeAt(t+1);if(o){if(Number.isNaN(S)||!d(S)||p.has(b)||p.has(S)){if(l)return{n:null,pos:t};u.unexpectedNumericSeparator(t,r,n)}}else{if(l)return{n:null,pos:t};u.numericSeparatorInEscapeSequence(t,r,n)}++t;continue}if((g=v>=97?v-97+10:v>=65?v-65+10:v>=48&&v<=57?v-48:1/0)>=i){if(g<=9&&l)return{n:null,pos:t};if(g<=9&&u.invalidDigit(t,r,n,i))g=0;else if(s)g=0,f=!0;else break}++t,h=h*i+g}return t===c||null!=a&&t-c!==a||f?{n:null,pos:t}:{n:h,pos:t}}function xM(e,t,r,n,i,a){var s,o,u;if(123===e.charCodeAt(t)){if(s=(o=xD(e,++t,r,n,e.indexOf("}",t)-t,!0,i,a)).code,t=o.pos,++t,null!==s&&s>1114111){if(!i)return{code:null,pos:t};a.invalidCodePoint(t,r,n)}}else s=(u=xD(e,t,r,n,4,!1,i,a)).code,t=u.pos;return{code:s,pos:t}}function xF(e,t,r){return new SC(r,e-t,e)}var xB=/* @__PURE__ */new Set([103,109,115,105,121,117,100,118]),xR=function e(t){rf(this,e);var r=t.startIndex||0;this.type=t.type,this.value=t.value,this.start=r+t.start,this.end=r+t.end,this.loc=new Sw(t.startLoc,t.endLoc)},xj=/*#__PURE__*/function(e){function t(e,r){var n;return rf(this,t),rX(n=rd(this,t),"isLookahead"),rX(n,"tokens",[]),rX(n,"errorHandlers_readInt",{invalidDigit:function(e,t,r,i){return!!n.options.errorRecovery&&(n.raise(SR.InvalidDigit,xF(e,t,r),{radix:i}),!0)},numericSeparatorInEscapeSequence:n.errorBuilder(SR.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:n.errorBuilder(SR.UnexpectedNumericSeparator)}),rX(n,"errorHandlers_readCodePoint",Object.assign({},n.errorHandlers_readInt,{invalidEscapeSequence:n.errorBuilder(SR.InvalidEscapeSequence),invalidCodePoint:n.errorBuilder(SR.InvalidCodePoint)})),rX(n,"errorHandlers_readStringContents_string",Object.assign({},n.errorHandlers_readCodePoint,{strictNumericEscape:function(e,t,r){n.recordStrictModeErrors(SR.StrictNumericEscape,xF(e,t,r))},unterminated:function(e,t,r){throw n.raise(SR.UnterminatedString,xF(e-1,t,r))}})),rX(n,"errorHandlers_readStringContents_template",Object.assign({},n.errorHandlers_readCodePoint,{strictNumericEscape:n.errorBuilder(SR.StrictNumericEscape),unterminated:function(e,t,r){throw n.raise(SR.UnterminatedTemplate,xF(e,t,r))}})),n.state=new xw,n.state.init(e),n.input=r,n.length=r.length,n.comments=[],n.isLookahead=!1,n}return rb(t,e),rm(t,[{key:"pushToken",value:function(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}},{key:"next",value:function(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new xR(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}},{key:"eat",value:function(e){return!!this.match(e)&&(this.next(),!0)}},{key:"match",value:function(e){return this.state.type===e}},{key:"createLookaheadState",value:function(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}},{key:"lookahead",value:function(){var e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;var t=this.state;return this.state=e,t}},{key:"nextTokenStart",value:function(){return this.nextTokenStartSince(this.state.pos)}},{key:"nextTokenStartSince",value:function(e){return xk.lastIndex=e,xk.test(this.input)?xk.lastIndex:e}},{key:"lookaheadCharCode",value:function(){return this.input.charCodeAt(this.nextTokenStart())}},{key:"nextTokenInLineStart",value:function(){return this.nextTokenInLineStartSince(this.state.pos)}},{key:"nextTokenInLineStartSince",value:function(e){return xC.lastIndex=e,xC.test(this.input)?xC.lastIndex:e}},{key:"lookaheadInLineCharCode",value:function(){return this.input.charCodeAt(this.nextTokenInLineStart())}},{key:"codePointAtPos",value:function(e){var t=this.input.charCodeAt(e);if((64512&t)==55296&&++e<this.input.length){var r=this.input.charCodeAt(e);(64512&r)==56320&&(t=65536+((1023&t)<<10)+(1023&r))}return t}},{key:"setStrict",value:function(e){var t=this;this.state.strict=e,e&&(this.state.strictErrors.forEach(function(e){var r=rT(e,2),n=r[0],i=r[1];return t.raise(n,i)}),this.state.strictErrors.clear())}},{key:"curContext",value:function(){return this.state.context[this.state.context.length-1]}},{key:"nextToken",value:function(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}},{key:"skipBlockComment",value:function(e){this.isLookahead||(t=this.state.curPosition());var t,r=this.state.pos,n=this.input.indexOf(e,r+2);if(-1===n)throw this.raise(SR.UnterminatedComment,this.state.curPosition());for(this.state.pos=n+e.length,x_.lastIndex=r+2;x_.test(this.input)&&x_.lastIndex<=n;)++this.state.curLine,this.state.lineStart=x_.lastIndex;if(!this.isLookahead){var i={type:"CommentBlock",value:this.input.slice(r+2,n),start:this.sourceToOffsetPos(r),end:this.sourceToOffsetPos(n+e.length),loc:new Sw(t,this.state.curPosition())};return this.options.tokens&&this.pushToken(i),i}}},{key:"skipLineComment",value:function(e){var t,r=this.state.pos;this.isLookahead||(t=this.state.curPosition());var n=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!xP(n)&&++this.state.pos<this.length;)n=this.input.charCodeAt(this.state.pos);if(!this.isLookahead){var i=this.state.pos,a={type:"CommentLine",value:this.input.slice(r+e,i),start:this.sourceToOffsetPos(r),end:this.sourceToOffsetPos(i),loc:new Sw(t,this.state.curPosition())};return this.options.tokens&&this.pushToken(a),a}}},{key:"skipSpace",value:function(){var e=this.state.pos,t=[];e:for(;this.state.pos<this.length;){var r=this.input.charCodeAt(this.state.pos);switch(r){case 32:case 160:case 9:++this.state.pos;break;case 13:10===this.input.charCodeAt(this.state.pos+1)&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:var n=this.skipBlockComment("*/");void 0!==n&&(this.addComment(n),this.options.attachComment&&t.push(n));break;case 47:var i=this.skipLineComment(2);void 0!==i&&(this.addComment(i),this.options.attachComment&&t.push(i));break;default:break e}break;default:if(function(e){switch(e){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}(r))++this.state.pos;else if(45===r&&!this.inModule&&this.options.annexB){var a=this.state.pos;if(45===this.input.charCodeAt(a+1)&&62===this.input.charCodeAt(a+2)&&(0===e||this.state.lineStart>e)){var s=this.skipLineComment(3);void 0!==s&&(this.addComment(s),this.options.attachComment&&t.push(s))}else break e}else if(60===r&&!this.inModule&&this.options.annexB){var o=this.state.pos;if(33===this.input.charCodeAt(o+1)&&45===this.input.charCodeAt(o+2)&&45===this.input.charCodeAt(o+3)){var u=this.skipLineComment(4);void 0!==u&&(this.addComment(u),this.options.attachComment&&t.push(u))}else break e}else break e}}if(t.length>0){var l=this.state.pos,c={start:this.sourceToOffsetPos(e),end:this.sourceToOffsetPos(l),comments:t,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(c)}}},{key:"finishToken",value:function(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();var r=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||this.updateContext(r)}},{key:"replaceToken",value:function(e){this.state.type=e,this.updateContext()}},{key:"readToken_numberSign",value:function(){if(!(0===this.state.pos&&this.readToken_interpreter())){var e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(SR.UnexpectedDigitAfterHash,this.state.curPosition());123===t||91===t&&this.hasPlugin("recordAndTuple")?(this.expectPlugin("recordAndTuple"),this.state.pos+=2,123===t?this.finishToken(7):this.finishToken(1)):xo(t)?(++this.state.pos,this.finishToken(139,this.readWord1(t))):92===t?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}}},{key:"readToken_dot",value:function(){var e=this.input.charCodeAt(this.state.pos+1);if(e>=48&&e<=57){this.readNumber(!0);return}46===e&&46===this.input.charCodeAt(this.state.pos+2)?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}},{key:"readToken_slash",value:function(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(31,2):this.finishOp(56,1)}},{key:"readToken_interpreter",value:function(){if(0!==this.state.pos||this.length<2)return!1;var e=this.input.charCodeAt(this.state.pos+1);if(33!==e)return!1;var t=this.state.pos;for(this.state.pos+=1;!xP(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);var r=this.input.slice(t+2,this.state.pos);return this.finishToken(28,r),!0}},{key:"readToken_mult_modulo",value:function(e){var t=42===e?55:54,r=1,n=this.input.charCodeAt(this.state.pos+1);42===e&&42===n&&(r++,n=this.input.charCodeAt(this.state.pos+2),t=57),61!==n||this.state.inType||(r++,t=37===e?33:30),this.finishOp(t,r)}},{key:"readToken_pipe_amp",value:function(e){var t=this.input.charCodeAt(this.state.pos+1);if(t===e){61===this.input.charCodeAt(this.state.pos+2)?this.finishOp(30,3):this.finishOp(124===e?41:42,2);return}if(124===e&&62===t){this.finishOp(39,2);return}if(61===t){this.finishOp(30,2);return}this.finishOp(124===e?43:45,1)}},{key:"readToken_caret",value:function(){var e=this.input.charCodeAt(this.state.pos+1);61!==e||this.state.inType?94===e&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),94===this.input.codePointAt(this.state.pos)&&this.unexpected()):this.finishOp(44,1):this.finishOp(32,2)}},{key:"readToken_atSign",value:function(){64===this.input.charCodeAt(this.state.pos+1)&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}},{key:"readToken_plus_min",value:function(e){var t=this.input.charCodeAt(this.state.pos+1);if(t===e){this.finishOp(34,2);return}61===t?this.finishOp(30,2):this.finishOp(53,1)}},{key:"readToken_lt",value:function(){var e=this.state.pos,t=this.input.charCodeAt(e+1);if(60===t){if(61===this.input.charCodeAt(e+2)){this.finishOp(30,3);return}this.finishOp(51,2);return}if(61===t){this.finishOp(49,2);return}this.finishOp(47,1)}},{key:"readToken_gt",value:function(){var e=this.state.pos,t=this.input.charCodeAt(e+1);if(62===t){var r=62===this.input.charCodeAt(e+2)?3:2;if(61===this.input.charCodeAt(e+r)){this.finishOp(30,r+1);return}this.finishOp(52,r);return}if(61===t){this.finishOp(49,2);return}this.finishOp(48,1)}},{key:"readToken_eq_excl",value:function(e){var t=this.input.charCodeAt(this.state.pos+1);if(61===t){this.finishOp(46,61===this.input.charCodeAt(this.state.pos+2)?3:2);return}if(61===e&&62===t){this.state.pos+=2,this.finishToken(19);return}this.finishOp(61===e?29:35,1)}},{key:"readToken_question",value:function(){var e=this.input.charCodeAt(this.state.pos+1),t=this.input.charCodeAt(this.state.pos+2);63===e?61===t?this.finishOp(30,3):this.finishOp(40,2):46!==e||t>=48&&t<=57?(++this.state.pos,this.finishToken(17)):(this.state.pos+=2,this.finishToken(18))}},{key:"getTokenFromCode",value:function(e){switch(e){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:var t=this.input.charCodeAt(this.state.pos+1);if(120===t||88===t){this.readRadixNumber(16);return}if(111===t||79===t){this.readRadixNumber(8);return}if(98===t||66===t){this.readRadixNumber(2);return}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(e);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(e);return;case 124:case 38:this.readToken_pipe_amp(e);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(e);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(e);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(xo(e)){this.readWord(e);return}}throw this.raise(SR.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}},{key:"finishOp",value:function(e,t){var r=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,r)}},{key:"readRegexp",value:function(){for(var e,t,r=this.state.startLoc,n=this.state.start+1,i=this.state.pos;;++i){if(i>=this.length)throw this.raise(SR.UnterminatedRegExp,SI(r,1));var a=this.input.charCodeAt(i);if(xP(a))throw this.raise(SR.UnterminatedRegExp,SI(r,1));if(e)e=!1;else{if(91===a)t=!0;else if(93===a&&t)t=!1;else if(47===a&&!t)break;e=92===a}}var s=this.input.slice(n,i);++i;for(var o="",u=function(){return SI(r,i+2-n)};i<this.length;){var l=this.codePointAtPos(i),c=String.fromCharCode(l);if(xB.has(l))118===l?o.includes("u")&&this.raise(SR.IncompatibleRegExpUVFlags,u()):117===l&&o.includes("v")&&this.raise(SR.IncompatibleRegExpUVFlags,u()),o.includes(c)&&this.raise(SR.DuplicateRegExpFlags,u());else if(xu(l)||92===l)this.raise(SR.MalformedRegExpFlags,u());else break;++i,o+=c}this.state.pos=i,this.finishToken(138,{pattern:s,flags:o})}},{key:"readInt",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!(arguments.length>3)||void 0===arguments[3]||arguments[3],i=xL(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,t,r,n,this.errorHandlers_readInt,!1),a=i.n,s=i.pos;return this.state.pos=s,a}},{key:"readRadixNumber",value:function(e){var t=this.state.pos,r=this.state.curPosition(),n=!1;this.state.pos+=2;var i=this.readInt(e);null==i&&this.raise(SR.InvalidDigit,SI(r,2),{radix:e});var a=this.input.charCodeAt(this.state.pos);if(110===a)++this.state.pos,n=!0;else if(109===a)throw this.raise(SR.InvalidDecimal,r);if(xo(this.codePointAtPos(this.state.pos)))throw this.raise(SR.NumberIdentifier,this.state.curPosition());if(n){var s=this.input.slice(t,this.state.pos).replace(/[_n]/g,"");this.finishToken(136,s);return}this.finishToken(135,i)}},{key:"readNumber",value:function(e){var t=this.state.pos,r=this.state.curPosition(),n=!1,i=!1,a=!1;e||null!==this.readInt(10)||this.raise(SR.InvalidNumber,this.state.curPosition());var s=this.state.pos-t>=2&&48===this.input.charCodeAt(t);if(s){var o=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(SR.StrictOctalLiteral,r),!this.state.strict){var u=o.indexOf("_");u>0&&this.raise(SR.ZeroDigitNumericSeparator,SI(r,u))}a=s&&!/[89]/.test(o)}var l=this.input.charCodeAt(this.state.pos);if(46!==l||a||(++this.state.pos,this.readInt(10),n=!0,l=this.input.charCodeAt(this.state.pos)),69!==l&&101!==l||a||((43===(l=this.input.charCodeAt(++this.state.pos))||45===l)&&++this.state.pos,null===this.readInt(10)&&this.raise(SR.InvalidOrMissingExponent,r),n=!0,l=this.input.charCodeAt(this.state.pos)),110===l&&((n||s)&&this.raise(SR.InvalidBigIntLiteral,r),++this.state.pos,i=!0),xo(this.codePointAtPos(this.state.pos)))throw this.raise(SR.NumberIdentifier,this.state.curPosition());var c=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(i){this.finishToken(136,c);return}var p=a?parseInt(c,8):parseFloat(c);this.finishToken(135,p)}},{key:"readCodePoint",value:function(e){var t=xM(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint),r=t.code,n=t.pos;return this.state.pos=n,r}},{key:"readString",value:function(e){var t=xO(34===e?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string),r=t.str,n=t.pos,i=t.curLine,a=t.lineStart;this.state.pos=n+1,this.state.lineStart=a,this.state.curLine=i,this.finishToken(134,r)}},{key:"readTemplateContinuation",value:function(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}},{key:"readTemplateToken",value:function(){var e=this.input[this.state.pos],t=xO("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template),r=t.str,n=t.firstInvalidLoc,i=t.pos,a=t.curLine,s=t.lineStart;this.state.pos=i+1,this.state.lineStart=s,this.state.curLine=a,n&&(this.state.firstInvalidTemplateEscapePos=new SC(n.curLine,n.pos-n.lineStart,this.sourceToOffsetPos(n.pos))),96===this.input.codePointAt(i)?this.finishToken(24,n?null:e+r+"`"):(this.state.pos++,this.finishToken(25,n?null:e+r+"${"))}},{key:"recordStrictModeErrors",value:function(e,t){var r=t.index;this.state.strict&&!this.state.strictErrors.has(r)?this.raise(e,t):this.state.strictErrors.set(r,[e,t])}},{key:"readWord1",value:function(e){this.state.containsEsc=!1;var t="",r=this.state.pos,n=this.state.pos;for(void 0!==e&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){var i=this.codePointAtPos(this.state.pos);if(xu(i))this.state.pos+=i<=65535?1:2;else if(92===i){this.state.containsEsc=!0,t+=this.input.slice(n,this.state.pos);var a=this.state.curPosition(),s=this.state.pos===r?xo:xu;if(117!==this.input.charCodeAt(++this.state.pos)){this.raise(SR.MissingUnicodeEscape,this.state.curPosition()),n=this.state.pos-1;continue}++this.state.pos;var o=this.readCodePoint(!0);null!==o&&(s(o)||this.raise(SR.EscapedCharNotAnIdentifier,a),t+=String.fromCodePoint(o)),n=this.state.pos}else break}return t+this.input.slice(n,this.state.pos)}},{key:"readWord",value:function(e){var t=this.readWord1(e),r=SX.get(t);void 0!==r?this.finishToken(r,S$[r]):this.finishToken(132,t)}},{key:"checkKeywordEscapes",value:function(){var e=this.state.type;S9(e)&&this.state.containsEsc&&this.raise(SR.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:S$[e]})}},{key:"raise",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=e(rS(t,SC)?t:t.loc.start,r);if(!this.options.errorRecovery)throw n;return this.isLookahead||this.state.errors.push(n),n}},{key:"raiseOverwrite",value:function(e,t){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=rS(t,SC)?t:t.loc.start,i=n.index,a=this.state.errors,s=a.length-1;s>=0;s--){var o=a[s];if(o.loc.index===i)return a[s]=e(n,r);if(o.loc.index<i)break}return this.raise(e,t,r)}},{key:"updateContext",value:function(e){}},{key:"unexpected",value:function(e,t){throw this.raise(SR.UnexpectedToken,null!=e?e:this.state.startLoc,{expected:t?S$[t]:null})}},{key:"expectPlugin",value:function(e,t){if(this.hasPlugin(e))return!0;throw this.raise(SR.MissingPlugin,null!=t?t:this.state.startLoc,{missingPlugin:[e]})}},{key:"expectOnePlugin",value:function(e){var t=this;if(!e.some(function(e){return t.hasPlugin(e)}))throw this.raise(SR.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}},{key:"errorBuilder",value:function(e){var t=this;return function(r,n,i){t.raise(e,xF(r,n,i))}}}]),t}(xE),xU=function e(){rf(this,e),rX(this,"privateNames",/* @__PURE__ */new Set),rX(this,"loneAccessors",/* @__PURE__ */new Map),rX(this,"undefinedPrivateNames",/* @__PURE__ */new Map)},xV=/*#__PURE__*/function(){function e(t){rf(this,e),rX(this,"parser"),rX(this,"stack",[]),rX(this,"undefinedPrivateNames",/* @__PURE__ */new Map),this.parser=t}return rm(e,[{key:"current",value:function(){return this.stack[this.stack.length-1]}},{key:"enter",value:function(){this.stack.push(new xU)}},{key:"exit",value:function(){var e=this.stack.pop(),t=this.current(),r=!0,n=!1,i=void 0;try{for(var a,s=Array.from(e.undefinedPrivateNames)[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var o=rT(a.value,2),u=o[0],l=o[1];t?t.undefinedPrivateNames.has(u)||t.undefinedPrivateNames.set(u,l):this.parser.raise(SR.InvalidPrivateFieldResolution,l,{identifierName:u})}}catch(e){n=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw i}}}},{key:"declarePrivateName",value:function(e,t,r){var n=this.current(),i=n.privateNames,a=n.loneAccessors,s=n.undefinedPrivateNames,o=i.has(e);if(3&t){var u=o&&a.get(e);if(u){var l=4&t;(o=(3&u)==(3&t)||(4&u)!==l)||a.delete(e)}else o||a.set(e,t)}o&&this.parser.raise(SR.PrivateNameRedeclaration,r,{identifierName:e}),i.add(e),s.delete(e)}},{key:"usePrivateName",value:function(e,t){var r=!0,n=!1,i=void 0;try{for(var a,s,o=this.stack[Symbol.iterator]();!(r=(s=o.next()).done);r=!0)if((a=s.value).privateNames.has(e))return}catch(e){n=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw i}}a?a.undefinedPrivateNames.set(e,t):this.parser.raise(SR.InvalidPrivateFieldResolution,t,{identifierName:e})}}]),e}(),xW=/*#__PURE__*/function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;rf(this,e),this.type=t}return rm(e,[{key:"canBeArrowParameterDeclaration",value:function(){return 2===this.type||1===this.type}},{key:"isCertainlyParameterDeclaration",value:function(){return 3===this.type}}]),e}(),xq=/*#__PURE__*/function(e){function t(e){var r;return rf(this,t),rX(r=rd(this,t,[e]),"declarationErrors",/* @__PURE__ */new Map),r}return rb(t,e),rm(t,[{key:"recordDeclarationError",value:function(e,t){var r=t.index;this.declarationErrors.set(r,[e,t])}},{key:"clearDeclarationError",value:function(e){this.declarationErrors.delete(e)}},{key:"iterateErrors",value:function(e){this.declarationErrors.forEach(e)}}]),t}(xW),xJ=/*#__PURE__*/function(){function e(t){rf(this,e),rX(this,"parser"),rX(this,"stack",[new xW]),this.parser=t}return rm(e,[{key:"enter",value:function(e){this.stack.push(e)}},{key:"exit",value:function(){this.stack.pop()}},{key:"recordParameterInitializerError",value:function(e,t){for(var r=t.loc.start,n=this.stack,i=n.length-1,a=n[i];!a.isCertainlyParameterDeclaration();){if(!a.canBeArrowParameterDeclaration())return;a.recordDeclarationError(e,r),a=n[--i]}this.parser.raise(e,r)}},{key:"recordArrowParameterBindingError",value:function(e,t){var r=this.stack,n=r[r.length-1],i=t.loc.start;if(n.isCertainlyParameterDeclaration())this.parser.raise(e,i);else{if(!n.canBeArrowParameterDeclaration())return;n.recordDeclarationError(e,i)}}},{key:"recordAsyncArrowParametersError",value:function(e){for(var t=this.stack,r=t.length-1,n=t[r];n.canBeArrowParameterDeclaration();)2===n.type&&n.recordDeclarationError(SR.AwaitBindingIdentifier,e),n=t[--r]}},{key:"validateAsPattern",value:function(){var e=this,t=this.stack,r=t[t.length-1];r.canBeArrowParameterDeclaration()&&r.iterateErrors(function(r){var n=rT(r,2),i=n[0],a=n[1];e.parser.raise(i,a);for(var s=t.length-2,o=t[s];o.canBeArrowParameterDeclaration();)o.clearDeclarationError(a.index),o=t[--s]})}}]),e}(),xX=/*#__PURE__*/function(){function e(){rf(this,e),rX(this,"stacks",[])}return rm(e,[{key:"enter",value:function(e){this.stacks.push(e)}},{key:"exit",value:function(){this.stacks.pop()}},{key:"currentFlags",value:function(){return this.stacks[this.stacks.length-1]}},{key:"hasAwait",get:function(){return(2&this.currentFlags())>0}},{key:"hasYield",get:function(){return(1&this.currentFlags())>0}},{key:"hasReturn",get:function(){return(4&this.currentFlags())>0}},{key:"hasIn",get:function(){return(8&this.currentFlags())>0}}]),e}();function xG(e,t){return(e?2:0)|(t?1:0)}var xK=/*#__PURE__*/function(e){function t(){return rf(this,t),rd(this,t,arguments)}return rb(t,e),rm(t,[{key:"addExtra",value:function(e,t,r){var n=!(arguments.length>3)||void 0===arguments[3]||arguments[3];if(e){var i=e.extra;null==i&&(i={},e.extra=i),n?i[t]=r:Object.defineProperty(i,t,{enumerable:n,value:r})}}},{key:"isContextual",value:function(e){return this.state.type===e&&!this.state.containsEsc}},{key:"isUnparsedContextual",value:function(e,t){var r=e+t.length;if(this.input.slice(e,r)===t){var n=this.input.charCodeAt(r);return!(xu(n)||(64512&n)==55296)}return!1}},{key:"isLookaheadContextual",value:function(e){var t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}},{key:"eatContextual",value:function(e){return!!this.isContextual(e)&&(this.next(),!0)}},{key:"expectContextual",value:function(e,t){if(!this.eatContextual(e)){if(null!=t)throw this.raise(t,this.state.startLoc);this.unexpected(null,e)}}},{key:"canInsertSemicolon",value:function(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}},{key:"hasPrecedingLineBreak",value:function(){return xA(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}},{key:"hasFollowingLineBreak",value:function(){return xA(this.input,this.state.end,this.nextTokenStart())}},{key:"isLineTerminator",value:function(){return this.eat(13)||this.canInsertSemicolon()}},{key:"semicolon",value:function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];(e?this.isLineTerminator():this.eat(13))||this.raise(SR.MissingSemicolon,this.state.lastTokEndLoc)}},{key:"expect",value:function(e,t){this.eat(e)||this.unexpected(t,e)}},{key:"tryParse",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state.clone(),r={node:null};try{var n=e(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;throw r.node=e,r});if(this.state.errors.length>t.errors.length){var i=this.state;return this.state=t,this.state.tokensLength=i.tokensLength,{node:n,error:i.errors[t.errors.length],thrown:!1,aborted:!1,failState:i}}return{node:n,error:null,thrown:!1,aborted:!1,failState:null}}catch(e){var a=this.state;if(this.state=t,rS(e,SyntaxError))return{node:null,error:e,thrown:!0,aborted:!1,failState:a};if(e===r)return{node:r.node,error:null,thrown:!1,aborted:!0,failState:a};throw e}}},{key:"checkExpressionErrors",value:function(e,t){if(!e)return!1;var r=e.shorthandAssignLoc,n=e.doubleProtoLoc,i=e.privateKeyLoc,a=e.optionalParametersLoc,s=!!r||!!n||!!a||!!i;if(!t)return s;null!=r&&this.raise(SR.InvalidCoverInitializedName,r),null!=n&&this.raise(SR.DuplicateProto,n),null!=i&&this.raise(SR.UnexpectedPrivateField,i),null!=a&&this.unexpected(a)}},{key:"isLiteralPropertyName",value:function(){return S8(this.state.type)}},{key:"isPrivateName",value:function(e){return"PrivateName"===e.type}},{key:"getPrivateNameSV",value:function(e){return e.id.name}},{key:"hasPropertyAsPrivateName",value:function(e){return("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)&&this.isPrivateName(e.property)}},{key:"isObjectProperty",value:function(e){return"ObjectProperty"===e.type}},{key:"isObjectMethod",value:function(e){return"ObjectMethod"===e.type}},{key:"initializeScopes",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"module"===this.options.sourceType,r=this.state.labels;this.state.labels=[];var n=this.exportedIdentifiers;this.exportedIdentifiers=/* @__PURE__ */new Set;var i=this.inModule;this.inModule=t;var a=this.scope,s=this.getScopeHandler();this.scope=new s(this,t);var o=this.prodParam;this.prodParam=new xX;var u=this.classScope;this.classScope=new xV(this);var l=this.expressionScope;return this.expressionScope=new xJ(this),function(){e.state.labels=r,e.exportedIdentifiers=n,e.inModule=i,e.scope=a,e.prodParam=o,e.classScope=u,e.expressionScope=l}}},{key:"enterInitialScopes",value:function(){var e=0;this.inModule&&(e|=2),this.scope.enter(1),this.prodParam.enter(e)}},{key:"checkDestructuringPrivate",value:function(e){var t=e.privateKeyLoc;null!==t&&this.expectPlugin("destructuringPrivate",t)}}]),t}(xj),xH=function e(){rf(this,e),rX(this,"shorthandAssignLoc",null),rX(this,"doubleProtoLoc",null),rX(this,"privateKeyLoc",null),rX(this,"optionalParametersLoc",null)},xz=function e(t,r,n){rf(this,e),rX(this,"type",""),this.start=r,this.end=0,this.loc=new Sw(n),(null==t?void 0:t.options.ranges)&&(this.range=[r,0]),(null==t?void 0:t.filename)&&(this.loc.filename=t.filename)},x$=xz.prototype;function xY(e){var t=e.type,r=e.start,n=e.end,i=e.loc,a=e.range,s=e.extra,o=e.name,u=Object.create(x$);return u.type=t,u.start=r,u.end=n,u.loc=i,u.range=a,u.extra=s,u.name=o,"Placeholder"===t&&(u.expectedNode=e.expectedNode),u}var xQ=/*#__PURE__*/function(e){function t(){return rf(this,t),rd(this,t,arguments)}return rb(t,e),rm(t,[{key:"startNode",value:function(){var e=this.state.startLoc;return new xz(this,e.index,e)}},{key:"startNodeAt",value:function(e){return new xz(this,e.index,e)}},{key:"startNodeAtNode",value:function(e){return this.startNodeAt(e.loc.start)}},{key:"finishNode",value:function(e,t){return this.finishNodeAt(e,t,this.state.lastTokEndLoc)}},{key:"finishNodeAt",value:function(e,t,r){return e.type=t,e.end=r.index,e.loc.end=r,this.options.ranges&&(e.range[1]=r.index),this.options.attachComment&&this.processComment(e),e}},{key:"resetStartLocation",value:function(e,t){e.start=t.index,e.loc.start=t,this.options.ranges&&(e.range[0]=t.index)}},{key:"resetEndLocation",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state.lastTokEndLoc;e.end=t.index,e.loc.end=t,this.options.ranges&&(e.range[1]=t.index)}},{key:"resetStartLocationFromNode",value:function(e,t){this.resetStartLocation(e,t.loc.start)}}]),t}(xK),xZ=/* @__PURE__ */new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),x0=SB(rI())({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:function(e){var t=e.reservedType;return"Cannot overwrite reserved type ".concat(t,".")},DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:function(e){var t=e.memberName,r=e.enumName;return"Boolean enum members need to be initialized. Use either `".concat(t," = true,` or `").concat(t," = false,` in enum `").concat(r,"`.")},EnumDuplicateMemberName:function(e){var t=e.memberName,r=e.enumName;return"Enum member names need to be unique, but the name `".concat(t,"` has already been used before in enum `").concat(r,"`.")},EnumInconsistentMemberValues:function(e){var t=e.enumName;return"Enum `".concat(t,"` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.")},EnumInvalidExplicitType:function(e){var t=e.invalidEnumType,r=e.enumName;return"Enum type `".concat(t,"` is not valid. Use one of `boolean`, `number`, `string`, or `symbol` in enum `").concat(r,"`.")},EnumInvalidExplicitTypeUnknownSupplied:function(e){var t=e.enumName;return"Supplied enum type is not valid. Use one of `boolean`, `number`, `string`, or `symbol` in enum `".concat(t,"`.")},EnumInvalidMemberInitializerPrimaryType:function(e){var t=e.enumName,r=e.memberName,n=e.explicitType;return"Enum `".concat(t,"` has type `").concat(n,"`, so the initializer of `").concat(r,"` needs to be a ").concat(n," literal.")},EnumInvalidMemberInitializerSymbolType:function(e){var t=e.enumName,r=e.memberName;return"Symbol enum members cannot be initialized. Use `".concat(r,",` in enum `").concat(t,"`.")},EnumInvalidMemberInitializerUnknownType:function(e){var t=e.enumName,r=e.memberName;return"The enum member initializer for `".concat(r,"` needs to be a literal (either a boolean, number, or string) in enum `").concat(t,"`.")},EnumInvalidMemberName:function(e){var t=e.enumName,r=e.memberName,n=e.suggestion;return"Enum member names cannot start with lowercase 'a' through 'z'. Instead of using `".concat(r,"`, consider using `").concat(n,"`, in enum `").concat(t,"`.")},EnumNumberMemberNotInitialized:function(e){var t=e.enumName,r=e.memberName;return"Number enum members need to be initialized, e.g. `".concat(r," = 1` in enum `").concat(t,"`.")},EnumStringMemberInconsistentlyInitialized:function(e){var t=e.enumName;return"String enum members need to consistently either all use initializers, or use no initializers, in enum `".concat(t,"`.")},GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:function(e){var t=e.reservedType;return"Unexpected reserved type ".concat(t,".")},UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:function(e){var t=e.unsupportedExportKind,r=e.suggestion;return"`declare export ".concat(t,"` is not supported. Use `").concat(r,"` instead.")},UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function x1(e){return"type"===e.importKind||"typeof"===e.importKind}var x2={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"},x3=/\*?\s*@((?:no)?flow)\b/,x4={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},x5=SB(rN())({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:function(e){var t=e.openingTagName;return"Expected corresponding JSX closing tag for <".concat(t,">.")},MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:function(e){var t=e.unexpected,r=e.HTMLEntity;return"Unexpected token `".concat(t,"`. Did you mean `").concat(r,"` or `{'").concat(t,"'}`?")},UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function x8(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function x6(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return x6(e.object)+"."+x6(e.property);throw Error("Node had unexpected type: "+e.type)}var x9=/*#__PURE__*/function(e){function t(){var e;return rf(this,t),e=rd(this,t,arguments),rX(e,"tsNames",/* @__PURE__ */new Map),e}return rb(t,e),t}(xy),x7=/*#__PURE__*/function(e){function t(){var e;return rf(this,t),e=rd(this,t,arguments),rX(e,"importsStack",[]),e}return rb(t,e),rm(t,[{key:"createScope",value:function(e){return this.importsStack.push(/* @__PURE__ */new Set),new x9(e)}},{key:"enter",value:function(e){256===e&&this.importsStack.push(/* @__PURE__ */new Set),rv(rg(t.prototype),"enter",this).call(this,e)}},{key:"exit",value:function(){var e=rv(rg(t.prototype),"exit",this).call(this);return 256===e&&this.importsStack.pop(),e}},{key:"hasImport",value:function(e,t){var r=this.importsStack.length;if(this.importsStack[r-1].has(e))return!0;if(!t&&r>1){for(var n=0;n<r-1;n++)if(this.importsStack[n].has(e))return!0}return!1}},{key:"declareName",value:function(e,r,n){if(4096&r){this.hasImport(e,!0)&&this.parser.raise(SR.VarRedeclaration,n,{identifierName:e}),this.importsStack[this.importsStack.length-1].add(e);return}var i=this.currentScope(),a=i.tsNames.get(e)||0;if(1024&r){this.maybeExportDefined(i,e),i.tsNames.set(e,16|a);return}rv(rg(t.prototype),"declareName",this).call(this,e,r,n),2&r&&(1&r||(this.checkRedeclarationInScope(i,e,r,n),this.maybeExportDefined(i,e)),a|=1),256&r&&(a|=2),512&r&&(a|=4),128&r&&(a|=8),a&&i.tsNames.set(e,a)}},{key:"isRedeclaredInScope",value:function(e,r,n){var i=e.tsNames.get(r);return(2&i)>0?!(256&n)||!!(512&n)!=(4&i)>0:128&n&&(8&i)>0?!!(2&e.names.get(r))&&!!(1&n):!!(2&n)&&(1&i)>0||rv(rg(t.prototype),"isRedeclaredInScope",this).call(this,e,r,n)}},{key:"checkLocalExport",value:function(e){var r=e.name;if(!this.hasImport(r)){for(var n=this.scopeStack.length,i=n-1;i>=0;i--){var a=this.scopeStack[i].tsNames.get(r);if((1&a)>0||(16&a)>0)return}rv(rg(t.prototype),"checkLocalExport",this).call(this,e)}}}]),t}(xv),Te=function(e){return"ParenthesizedExpression"===e.type?Te(e.expression):e},Tt=/*#__PURE__*/function(e){function t(){return rf(this,t),rd(this,t,arguments)}return rb(t,e),rm(t,[{key:"toAssignable",value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=void 0;switch(("ParenthesizedExpression"===e.type||(null===(o=e.extra)||void 0===o?void 0:o.parenthesized))&&(n=Te(e),r?"Identifier"===n.type?this.expressionScope.recordArrowParameterBindingError(SR.InvalidParenthesizedAssignment,e):"MemberExpression"===n.type||this.isOptionalMemberExpression(n)||this.raise(SR.InvalidParenthesizedAssignment,e):this.raise(SR.InvalidParenthesizedAssignment,e)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern";for(var i=0,a=e.properties.length,s=a-1;i<a;i++){var o,u,l=e.properties[i],c=i===s;this.toAssignableObjectExpressionProp(l,c,r),c&&"RestElement"===l.type&&(null===(u=e.extra)||void 0===u?void 0:u.trailingCommaLoc)&&this.raise(SR.RestTrailingComma,e.extra.trailingCommaLoc)}break;case"ObjectProperty":var p=e.key,d=e.value;this.isPrivateName(p)&&this.classScope.usePrivateName(this.getPrivateNameSV(p),p.loc.start),this.toAssignable(d,r);break;case"SpreadElement":throw Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":e.type="ArrayPattern",this.toAssignableList(e.elements,null===(t=e.extra)||void 0===t?void 0:t.trailingCommaLoc,r);break;case"AssignmentExpression":"="!==e.operator&&this.raise(SR.MissingEqInAssignment,e.left.loc.end),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,r);break;case"ParenthesizedExpression":this.toAssignable(n,r)}}},{key:"toAssignableObjectExpressionProp",value:function(e,t,r){if("ObjectMethod"===e.type)this.raise("get"===e.kind||"set"===e.kind?SR.PatternHasAccessor:SR.PatternHasMethod,e.key);else if("SpreadElement"===e.type){e.type="RestElement";var n=e.argument;this.checkToRestConversion(n,!1),this.toAssignable(n,r),t||this.raise(SR.RestTrailingComma,e)}else this.toAssignable(e,r)}},{key:"toAssignableList",value:function(e,t,r){for(var n=e.length-1,i=0;i<=n;i++){var a=e[i];if(a){if("SpreadElement"===a.type){a.type="RestElement";var s=a.argument;this.checkToRestConversion(s,!0),this.toAssignable(s,r)}else this.toAssignable(a,r);"RestElement"===a.type&&(i<n?this.raise(SR.RestTrailingComma,a):t&&this.raise(SR.RestTrailingComma,t))}}}},{key:"isAssignable",value:function(e,t){var r=this;switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":var n=e.properties.length-1;return e.properties.every(function(e,t){return"ObjectMethod"!==e.type&&(t===n||"SpreadElement"!==e.type)&&r.isAssignable(e)});case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every(function(e){return null===e||r.isAssignable(e)});case"AssignmentExpression":return"="===e.operator;case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!t;default:return!1}}},{key:"toReferencedList",value:function(e,t){return e}},{key:"toReferencedListDeep",value:function(e,t){this.toReferencedList(e,t);var r=!0,n=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var o=a.value;(null==o?void 0:o.type)==="ArrayExpression"&&this.toReferencedListDeep(o.elements)}}catch(e){n=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw i}}}},{key:"parseSpread",value:function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(t,"SpreadElement")}},{key:"parseRestBinding",value:function(){var e=this.startNode();return this.next(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")}},{key:"parseBindingAtom",value:function(){switch(this.state.type){case 0:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(3,93,1),this.finishNode(e,"ArrayPattern");case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}},{key:"parseBindingList",value:function(e,t,r){for(var n=1&r,i=[],a=!0;!this.eat(e);)if(a?a=!1:this.expect(12),n&&this.match(12))i.push(null);else if(this.eat(e))break;else if(this.match(21)){var s=this.parseRestBinding();if(2&r&&(s=this.parseFunctionParamType(s)),i.push(s),!this.checkCommaAfterRest(t)){this.expect(e);break}}else{var o=[];for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(SR.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)o.push(this.parseDecorator());i.push(this.parseAssignableListItem(r,o))}return i}},{key:"parseBindingRestProperty",value:function(e){return this.next(),e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}},{key:"parseBindingProperty",value:function(){var e=this.state,t=e.type,r=e.startLoc;if(21===t)return this.parseBindingRestProperty(this.startNode());var n=this.startNode();return 139===t?(this.expectPlugin("destructuringPrivate",r),this.classScope.usePrivateName(this.state.value,r),n.key=this.parsePrivateName()):this.parsePropertyName(n),n.method=!1,this.parseObjPropValue(n,r,!1,!1,!0,!1)}},{key:"parseAssignableListItem",value:function(e,t){var r=this.parseMaybeDefault();2&e&&this.parseFunctionParamType(r);var n=this.parseMaybeDefault(r.loc.start,r);return t.length&&(r.decorators=t),n}},{key:"parseFunctionParamType",value:function(e){return e}},{key:"parseMaybeDefault",value:function(e,t){if(null!=e||(e=this.state.startLoc),t=null!=t?t:this.parseBindingAtom(),!this.eat(29))return t;var r=this.startNodeAt(e);return r.left=t,r.right=this.parseMaybeAssignAllowIn(),this.finishNode(r,"AssignmentPattern")}},{key:"isValidLVal",value:function(e,t,r){switch(e){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties"}return!1}},{key:"isOptionalMemberExpression",value:function(e){return"OptionalMemberExpression"===e.type}},{key:"checkLVal",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:64,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=e.type;if(!this.isObjectMethod(e)){var o=this.isOptionalMemberExpression(e);if(o||"MemberExpression"===s){o&&(this.expectPlugin("optionalChainingAssign",e.loc.start),"AssignmentExpression"!==t.type&&this.raise(SR.InvalidLhsOptionalChaining,e,{ancestor:t})),64!==r&&this.raise(SR.InvalidPropertyBindingPattern,e);return}if("Identifier"===s){this.checkIdentifier(e,r,i);var u=e.name;n&&(n.has(u)?this.raise(SR.ParamDupe,e):n.add(u));return}var l=this.isValidLVal(s,!(a||(null===(y=e.extra)||void 0===y?void 0:y.parenthesized))&&"AssignmentExpression"===t.type,r);if(!0!==l){if(!1===l){var c=64===r?SR.InvalidLhs:SR.InvalidLhsBinding;this.raise(c,e,{ancestor:t});return}"string"==typeof l?(v=l,g="ParenthesizedExpression"===s):(v=(b=rT(l,2))[0],g=b[1]);var p="ArrayPattern"===s||"ObjectPattern"===s?{type:s}:t,d=e[v];if(Array.isArray(d)){var f=!0,h=!1,m=void 0;try{for(var y,v,g,b,S,x=d[Symbol.iterator]();!(f=(S=x.next()).done);f=!0){var T=S.value;T&&this.checkLVal(T,p,r,n,i,g)}}catch(e){h=!0,m=e}finally{try{f||null==x.return||x.return()}finally{if(h)throw m}}}else d&&this.checkLVal(d,p,r,n,i,g)}}}},{key:"checkIdentifier",value:function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.state.strict&&(n?xh(e.name,this.inModule):(r=e.name,xp.has(r)))&&(64===t?this.raise(SR.StrictEvalArguments,e,{referenceName:e.name}):this.raise(SR.StrictEvalArgumentsBinding,e,{bindingName:e.name})),8192&t&&"let"===e.name&&this.raise(SR.LetInLexicalBinding,e),64&t||this.declareNameFromIdentifier(e,t)}},{key:"declareNameFromIdentifier",value:function(e,t){this.scope.declareName(e.name,t,e.loc.start)}},{key:"checkToRestConversion",value:function(e,t){switch(e.type){case"ParenthesizedExpression":this.checkToRestConversion(e.expression,t);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(t)break;default:this.raise(SR.InvalidRestAssignmentPattern,e)}}},{key:"checkCommaAfterRest",value:function(e){return!!this.match(12)&&(this.raise(this.lookaheadCharCode()===e?SR.RestTrailingComma:SR.ElementAfterRest,this.state.startLoc),!0)}}]),t}(xQ);function Tr(e){if(!e)throw Error("Assert fail")}var Tn=SB(rO())({AbstractMethodHasImplementation:function(e){var t=e.methodName;return"Method '".concat(t,"' cannot have an implementation because it is marked abstract.")},AbstractPropertyHasInitializer:function(e){var t=e.propertyName;return"Property '".concat(t,"' cannot have an initializer because it is marked abstract.")},AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:function(e){var t=e.kind;return"'declare' is not allowed in ".concat(t,"ters.")},DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:function(e){return e.modifier,"Accessibility modifier already seen."},DuplicateModifier:function(e){var t=e.modifier;return"Duplicate modifier: '".concat(t,"'.")},EmptyHeritageClauseType:function(e){var t=e.token;return"'".concat(t,"' list cannot be empty.")},EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:function(e){var t=e.modifiers;return"'".concat(t[0],"' modifier cannot be used with '").concat(t[1],"' modifier.")},IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:function(e){var t=e.modifier;return"Index signatures cannot have an accessibility modifier ('".concat(t,"').")},IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:function(e){var t=e.modifier;return"'".concat(t,"' modifier cannot appear on a type member.")},InvalidModifierOnTypeParameter:function(e){var t=e.modifier;return"'".concat(t,"' modifier cannot appear on a type parameter.")},InvalidModifierOnTypeParameterPositions:function(e){var t=e.modifier;return"'".concat(t,"' modifier can only appear on a type parameter of a class, interface or type alias.")},InvalidModifiersOrder:function(e){var t=e.orderedModifiers;return"'".concat(t[0],"' modifier must precede '").concat(t[1],"' modifier.")},InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:function(e){var t=e.modifier;return"Private elements cannot have an accessibility modifier ('".concat(t,"').")},ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:function(e){var t=e.typeParameterName;return"Single type parameter ".concat(t," should have a trailing comma. Example usage: <").concat(t,",>.")},StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:function(e){var t=e.type;return"Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ".concat(t,".")}});function Ti(e){return"private"===e||"public"===e||"protected"===e}function Ta(e,t){return t?"Literal"===e.type&&("number"==typeof e.value||"bigint"in e):"NumericLiteral"===e.type||"BigIntLiteral"===e.type}var Ts=SB(rD())({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),To=["fsharp","hack"],Tu=["^^","@@","^","%","#"],Tl={estree:function(e){return /*#__PURE__*/function(e){function t(){return rf(this,t),rd(this,t,arguments)}return rb(t,e),rm(t,[{key:"parse",value:function(){var e=SV(rv(rg(t.prototype),"parse",this).call(this));return this.options.tokens&&(e.tokens=e.tokens.map(SV)),e}},{key:"parseRegExpLiteral",value:function(e){var t=e.pattern,r=e.flags,n=null;try{n=new RegExp(t,r)}catch(e){}var i=this.estreeParseLiteral(n);return i.regex={pattern:t,flags:r},i}},{key:"parseBigIntLiteral",value:function(e){try{t=BigInt(e)}catch(e){t=null}var t,r=this.estreeParseLiteral(t);return r.bigint=String(r.value||e),r}},{key:"parseDecimalLiteral",value:function(e){var t=this.estreeParseLiteral(null);return t.decimal=String(t.value||e),t}},{key:"estreeParseLiteral",value:function(e){return this.parseLiteral(e,"Literal")}},{key:"parseStringLiteral",value:function(e){return this.estreeParseLiteral(e)}},{key:"parseNumericLiteral",value:function(e){return this.estreeParseLiteral(e)}},{key:"parseNullLiteral",value:function(){return this.estreeParseLiteral(null)}},{key:"parseBooleanLiteral",value:function(e){return this.estreeParseLiteral(e)}},{key:"directiveToStmt",value:function(e){var t=e.value;return delete e.value,t.type="Literal",t.raw=t.extra.raw,t.value=t.extra.expressionValue,e.type="ExpressionStatement",e.expression=t,e.directive=t.extra.rawValue,delete t.extra,e}},{key:"initFunction",value:function(e,r){rv(rg(t.prototype),"initFunction",this).call(this,e,r),e.expression=!1}},{key:"checkDeclaration",value:function(e){null!=e&&this.isObjectProperty(e)?this.checkDeclaration(e.value):rv(rg(t.prototype),"checkDeclaration",this).call(this,e)}},{key:"getObjectOrClassMethodParams",value:function(e){return e.value.params}},{key:"isValidDirective",value:function(e){var t;return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&!(null===(t=e.expression.extra)||void 0===t?void 0:t.parenthesized)}},{key:"parseBlockBody",value:function(e,r,n,i,a){var s=this;rv(rg(t.prototype),"parseBlockBody",this).call(this,e,r,n,i,a);var o=e.directives.map(function(e){return s.directiveToStmt(e)});e.body=o.concat(e.body),delete e.directives}},{key:"pushClassMethod",value:function(e,t,r,n,i,a){this.parseMethod(t,r,n,i,a,"ClassMethod",!0);var s=t.typeParameters;if(s){delete t.typeParameters;var o=t.value;o.typeParameters=s,o.start=s.start,o.loc.start=s.loc.start}e.body.push(t)}},{key:"parsePrivateName",value:function(){var e=rv(rg(t.prototype),"parsePrivateName",this).call(this);return this.convertPrivateNameToPrivateIdentifier(e)}},{key:"convertPrivateNameToPrivateIdentifier",value:function(e){var r=rv(rg(t.prototype),"getPrivateNameSV",this).call(this,e);return delete e.id,e.name=r,e.type="PrivateIdentifier",e}},{key:"isPrivateName",value:function(e){return"PrivateIdentifier"===e.type}},{key:"getPrivateNameSV",value:function(e){return e.name}},{key:"parseLiteral",value:function(e,r){var n=rv(rg(t.prototype),"parseLiteral",this).call(this,e,r);return n.raw=n.extra.raw,delete n.extra,n}},{key:"parseFunctionBody",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];rv(rg(t.prototype),"parseFunctionBody",this).call(this,e,r,n),e.expression="BlockStatement"!==e.body.type}},{key:"parseMethod",value:function(e,r,n,i,a,s){var o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],u=this.startNode();return u.kind=e.kind,(u=rv(rg(t.prototype),"parseMethod",this).call(this,u,r,n,i,a,s,o)).type="FunctionExpression",delete u.kind,e.value=u,"ClassPrivateMethod"===s&&(e.computed=!1),this.finishNode(e,"MethodDefinition")}},{key:"nameIsConstructor",value:function(e){return"Literal"===e.type?"constructor"===e.value:rv(rg(t.prototype),"nameIsConstructor",this).call(this,e)}},{key:"parseClassProperty",value:function(){for(var e,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];var a=(e=rv(rg(t.prototype),"parseClassProperty",this)).call.apply(e,[this].concat(r_(n)));return a.type="PropertyDefinition",a}},{key:"parseClassPrivateProperty",value:function(){for(var e,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];var a=(e=rv(rg(t.prototype),"parseClassPrivateProperty",this)).call.apply(e,[this].concat(r_(n)));return a.type="PropertyDefinition",a.computed=!1,a}},{key:"parseObjectMethod",value:function(e,r,n,i,a){var s=rv(rg(t.prototype),"parseObjectMethod",this).call(this,e,r,n,i,a);return s&&(s.type="Property","method"===s.kind&&(s.kind="init"),s.shorthand=!1),s}},{key:"parseObjectProperty",value:function(e,r,n,i){var a=rv(rg(t.prototype),"parseObjectProperty",this).call(this,e,r,n,i);return a&&(a.kind="init",a.type="Property"),a}},{key:"isValidLVal",value:function(e,r,n){return"Property"===e?"value":rv(rg(t.prototype),"isValidLVal",this).call(this,e,r,n)}},{key:"isAssignable",value:function(e,r){return null!=e&&this.isObjectProperty(e)?this.isAssignable(e.value,r):rv(rg(t.prototype),"isAssignable",this).call(this,e,r)}},{key:"toAssignable",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null!=e&&this.isObjectProperty(e)){var n=e.key,i=e.value;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.loc.start),this.toAssignable(i,r)}else rv(rg(t.prototype),"toAssignable",this).call(this,e,r)}},{key:"toAssignableObjectExpressionProp",value:function(e,r,n){"Property"===e.type&&("get"===e.kind||"set"===e.kind)?this.raise(SR.PatternHasAccessor,e.key):"Property"===e.type&&e.method?this.raise(SR.PatternHasMethod,e.key):rv(rg(t.prototype),"toAssignableObjectExpressionProp",this).call(this,e,r,n)}},{key:"finishCallExpression",value:function(e,r){var n,i,a=rv(rg(t.prototype),"finishCallExpression",this).call(this,e,r);return"Import"===a.callee.type&&(a.type="ImportExpression",a.source=a.arguments[0],a.options=null!==(n=a.arguments[1])&&void 0!==n?n:null,a.attributes=null!==(i=a.arguments[1])&&void 0!==i?i:null,delete a.arguments,delete a.callee),a}},{key:"toReferencedArguments",value:function(e){"ImportExpression"!==e.type&&rv(rg(t.prototype),"toReferencedArguments",this).call(this,e)}},{key:"parseExport",value:function(e,r){var n=this.state.lastTokStartLoc,i=rv(rg(t.prototype),"parseExport",this).call(this,e,r);switch(i.type){case"ExportAllDeclaration":i.exported=null;break;case"ExportNamedDeclaration":1===i.specifiers.length&&"ExportNamespaceSpecifier"===i.specifiers[0].type&&(i.type="ExportAllDeclaration",i.exported=i.specifiers[0].exported,delete i.specifiers);case"ExportDefaultDeclaration":var a,s=i.declaration;(null==s?void 0:s.type)==="ClassDeclaration"&&(null===(a=s.decorators)||void 0===a?void 0:a.length)>0&&s.start===i.start&&this.resetStartLocation(i,n)}return i}},{key:"parseSubscript",value:function(e,r,n,i){var a=rv(rg(t.prototype),"parseSubscript",this).call(this,e,r,n,i);if(i.optionalChainMember){if(("OptionalMemberExpression"===a.type||"OptionalCallExpression"===a.type)&&(a.type=a.type.substring(8)),i.stop){var s=this.startNodeAtNode(a);return s.expression=a,this.finishNode(s,"ChainExpression")}}else("MemberExpression"===a.type||"CallExpression"===a.type)&&(a.optional=!1);return a}},{key:"isOptionalMemberExpression",value:function(e){return"ChainExpression"===e.type?"MemberExpression"===e.expression.type:rv(rg(t.prototype),"isOptionalMemberExpression",this).call(this,e)}},{key:"hasPropertyAsPrivateName",value:function(e){return"ChainExpression"===e.type&&(e=e.expression),rv(rg(t.prototype),"hasPropertyAsPrivateName",this).call(this,e)}},{key:"isObjectProperty",value:function(e){return"Property"===e.type&&"init"===e.kind&&!e.method}},{key:"isObjectMethod",value:function(e){return"Property"===e.type&&(e.method||"get"===e.kind||"set"===e.kind)}},{key:"finishNodeAt",value:function(e,r,n){return SV(rv(rg(t.prototype),"finishNodeAt",this).call(this,e,r,n))}},{key:"resetStartLocation",value:function(e,r){rv(rg(t.prototype),"resetStartLocation",this).call(this,e,r),SV(e)}},{key:"resetEndLocation",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state.lastTokEndLoc;rv(rg(t.prototype),"resetEndLocation",this).call(this,e,r),SV(e)}}]),t}(e)},jsx:function(e){return /*#__PURE__*/function(e){function t(){return rf(this,t),rd(this,t,arguments)}return rb(t,e),rm(t,[{key:"jsxReadToken",value:function(){for(var e="",r=this.state.pos;;){if(this.state.pos>=this.length)throw this.raise(x5.UnterminatedJsxContent,this.state.startLoc);var n=this.input.charCodeAt(this.state.pos);switch(n){case 60:case 123:if(this.state.pos===this.state.start){60===n&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):rv(rg(t.prototype),"getTokenFromCode",this).call(this,n);return}e+=this.input.slice(r,this.state.pos),this.finishToken(142,e);return;case 38:e+=this.input.slice(r,this.state.pos)+this.jsxReadEntity(),r=this.state.pos;break;case 62:case 125:this.raise(x5.UnexpectedToken,this.state.curPosition(),{unexpected:this.input[this.state.pos],HTMLEntity:125===n?"}":">"});default:xP(n)?(e+=this.input.slice(r,this.state.pos)+this.jsxReadNewLine(!0),r=this.state.pos):++this.state.pos}}}},{key:"jsxReadNewLine",value:function(e){var t,r=this.input.charCodeAt(this.state.pos);return++this.state.pos,13===r&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,t=e?"\n":"\r\n"):t=String.fromCharCode(r),++this.state.curLine,this.state.lineStart=this.state.pos,t}},{key:"jsxReadString",value:function(e){for(var t="",r=++this.state.pos;;){if(this.state.pos>=this.length)throw this.raise(SR.UnterminatedString,this.state.startLoc);var n=this.input.charCodeAt(this.state.pos);if(n===e)break;38===n?(t+=this.input.slice(r,this.state.pos)+this.jsxReadEntity(),r=this.state.pos):xP(n)?(t+=this.input.slice(r,this.state.pos)+this.jsxReadNewLine(!1),r=this.state.pos):++this.state.pos}t+=this.input.slice(r,this.state.pos++),this.finishToken(134,t)}},{key:"jsxReadEntity",value:function(){var e=++this.state.pos;if(35===this.codePointAtPos(this.state.pos)){++this.state.pos;var t=10;120===this.codePointAtPos(this.state.pos)&&(t=16,++this.state.pos);var r=this.readInt(t,void 0,!1,"bail");if(null!==r&&59===this.codePointAtPos(this.state.pos))return++this.state.pos,String.fromCodePoint(r)}else{for(var n=0,i=!1;n++<10&&this.state.pos<this.length&&!(i=59===this.codePointAtPos(this.state.pos));)++this.state.pos;if(i){var a=x4[this.input.slice(e,this.state.pos)];if(++this.state.pos,a)return a}}return this.state.pos=e,"&"}},{key:"jsxReadWord",value:function(){var e,t=this.state.pos;do e=this.input.charCodeAt(++this.state.pos);while(xu(e)||45===e);this.finishToken(141,this.input.slice(t,this.state.pos))}},{key:"jsxParseIdentifier",value:function(){var e=this.startNode();return this.match(141)?e.name=this.state.value:S9(this.state.type)?e.name=S$[this.state.type]:this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}},{key:"jsxParseNamespacedName",value:function(){var e=this.state.startLoc,t=this.jsxParseIdentifier();if(!this.eat(14))return t;var r=this.startNodeAt(e);return r.namespace=t,r.name=this.jsxParseIdentifier(),this.finishNode(r,"JSXNamespacedName")}},{key:"jsxParseElementName",value:function(){var e=this.state.startLoc,t=this.jsxParseNamespacedName();if("JSXNamespacedName"===t.type)return t;for(;this.eat(16);){var r=this.startNodeAt(e);r.object=t,r.property=this.jsxParseIdentifier(),t=this.finishNode(r,"JSXMemberExpression")}return t}},{key:"jsxParseAttributeValue",value:function(){var e;switch(this.state.type){case 5:return e=this.startNode(),this.setContext(Sq.brace),this.next(),"JSXEmptyExpression"===(e=this.jsxParseExpressionContainer(e,Sq.j_oTag)).expression.type&&this.raise(x5.AttributeIsEmpty,e),e;case 143:case 134:return this.parseExprAtom();default:throw this.raise(x5.UnsupportedJsxValue,this.state.startLoc)}}},{key:"jsxParseEmptyExpression",value:function(){var e=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.state.startLoc)}},{key:"jsxParseSpreadChild",value:function(e){return this.next(),e.expression=this.parseExpression(),this.setContext(Sq.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadChild")}},{key:"jsxParseExpressionContainer",value:function(e,t){if(this.match(8))e.expression=this.jsxParseEmptyExpression();else{var r,n=this.parseExpression();"SequenceExpression"!==n.type||(null===(r=n.extra)||void 0===r?void 0:r.parenthesized)||this.raise(x5.UnexpectedSequenceExpression,n.expressions[1]),e.expression=n}return this.setContext(t),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXExpressionContainer")}},{key:"jsxParseAttribute",value:function(){var e=this.startNode();return this.match(5)?(this.setContext(Sq.brace),this.next(),this.expect(21),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(Sq.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}},{key:"jsxParseOpeningElementAt",value:function(e){var t=this.startNodeAt(e);return this.eat(144)?this.finishNode(t,"JSXOpeningFragment"):(t.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(t))}},{key:"jsxParseOpeningElementAfterName",value:function(e){for(var t=[];!this.match(56)&&!this.match(144);)t.push(this.jsxParseAttribute());return e.attributes=t,e.selfClosing=this.eat(56),this.expect(144),this.finishNode(e,"JSXOpeningElement")}},{key:"jsxParseClosingElementAt",value:function(e){var t=this.startNodeAt(e);return this.eat(144)?this.finishNode(t,"JSXClosingFragment"):(t.name=this.jsxParseElementName(),this.expect(144),this.finishNode(t,"JSXClosingElement"))}},{key:"jsxParseElementAt",value:function(e){var t=this.startNodeAt(e),r=[],n=this.jsxParseOpeningElementAt(e),i=null;if(!n.selfClosing){t:for(;;)switch(this.state.type){case 143:if(e=this.state.startLoc,this.next(),this.eat(56)){i=this.jsxParseClosingElementAt(e);break t}r.push(this.jsxParseElementAt(e));break;case 142:r.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:var a=this.startNode();this.setContext(Sq.brace),this.next(),this.match(21)?r.push(this.jsxParseSpreadChild(a)):r.push(this.jsxParseExpressionContainer(a,Sq.j_expr));break;default:this.unexpected()}x8(n)&&!x8(i)&&null!==i?this.raise(x5.MissingClosingTagFragment,i):!x8(n)&&x8(i)?this.raise(x5.MissingClosingTagElement,i,{openingTagName:x6(n.name)}):x8(n)||x8(i)||x6(i.name)===x6(n.name)||this.raise(x5.MissingClosingTagElement,i,{openingTagName:x6(n.name)})}if(x8(n)?(t.openingFragment=n,t.closingFragment=i):(t.openingElement=n,t.closingElement=i),t.children=r,this.match(47))throw this.raise(x5.UnwrappedAdjacentJSXElements,this.state.startLoc);return x8(n)?this.finishNode(t,"JSXFragment"):this.finishNode(t,"JSXElement")}},{key:"jsxParseElement",value:function(){var e=this.state.startLoc;return this.next(),this.jsxParseElementAt(e)}},{key:"setContext",value:function(e){var t=this.state.context;t[t.length-1]=e}},{key:"parseExprAtom",value:function(e){return this.match(143)?this.jsxParseElement():this.match(47)&&33!==this.input.charCodeAt(this.state.pos)?(this.replaceToken(143),this.jsxParseElement()):rv(rg(t.prototype),"parseExprAtom",this).call(this,e)}},{key:"skipSpace",value:function(){this.curContext().preserveSpace||rv(rg(t.prototype),"skipSpace",this).call(this)}},{key:"getTokenFromCode",value:function(e){var r=this.curContext();if(r===Sq.j_expr){this.jsxReadToken();return}if(r===Sq.j_oTag||r===Sq.j_cTag){if(xo(e)){this.jsxReadWord();return}if(62===e){++this.state.pos,this.finishToken(144);return}if((34===e||39===e)&&r===Sq.j_oTag){this.jsxReadString(e);return}}if(60===e&&this.state.canStartJSXElement&&33!==this.input.charCodeAt(this.state.pos+1)){++this.state.pos,this.finishToken(143);return}rv(rg(t.prototype),"getTokenFromCode",this).call(this,e)}},{key:"updateContext",value:function(e){var t=this.state,r=t.context,n=t.type;if(56===n&&143===e)r.splice(-2,2,Sq.j_cTag),this.state.canStartJSXElement=!1;else if(143===n)r.push(Sq.j_oTag);else if(144===n){var i=r[r.length-1];i===Sq.j_oTag&&56===e||i===Sq.j_cTag?(r.pop(),this.state.canStartJSXElement=r[r.length-1]===Sq.j_expr):(this.setContext(Sq.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=SQ[n]}}]),t}(e)},flow:function(e){return /*#__PURE__*/function(e){function t(){var e;return rf(this,t),e=rd(this,t,arguments),rX(e,"flowPragma"),e}return rb(t,e),rm(t,[{key:"getScopeHandler",value:function(){return xb}},{key:"shouldParseTypes",value:function(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma}},{key:"finishToken",value:function(e,r){134!==e&&13!==e&&28!==e&&void 0===this.flowPragma&&(this.flowPragma=null),rv(rg(t.prototype),"finishToken",this).call(this,e,r)}},{key:"addComment",value:function(e){if(void 0===this.flowPragma){var r=x3.exec(e.value);if(r){if("flow"===r[1])this.flowPragma="flow";else if("noflow"===r[1])this.flowPragma="noflow";else throw Error("Unexpected flow pragma")}}rv(rg(t.prototype),"addComment",this).call(this,e)}},{key:"flowParseTypeInitialiser",value:function(e){var t=this.state.inType;this.state.inType=!0,this.expect(e||14);var r=this.flowParseType();return this.state.inType=t,r}},{key:"flowParsePredicate",value:function(){var e=this.startNode(),r=this.state.startLoc;return(this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>r.index+1&&this.raise(x0.UnexpectedSpaceBetweenModuloChecks,r),this.eat(10))?(e.value=rv(rg(t.prototype),"parseExpression",this).call(this),this.expect(11),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}},{key:"flowParseTypeAndPredicateInitialiser",value:function(){var e=this.state.inType;this.state.inType=!0,this.expect(14);var t=null,r=null;return this.match(54)?(this.state.inType=e,r=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(54)&&(r=this.flowParsePredicate())),[t,r]}},{key:"flowParseDeclareClass",value:function(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}},{key:"flowParseDeclareFunction",value:function(e){this.next();var t,r=e.id=this.parseIdentifier(),n=this.startNode(),i=this.startNode();this.match(47)?n.typeParameters=this.flowParseTypeParameterDeclaration():n.typeParameters=null,this.expect(10);var a=this.flowParseFunctionTypeParams();return n.params=a.params,n.rest=a.rest,n.this=a._this,this.expect(11),t=rT(this.flowParseTypeAndPredicateInitialiser(),2),n.returnType=t[0],e.predicate=t[1],i.typeAnnotation=this.finishNode(n,"FunctionTypeAnnotation"),r.typeAnnotation=this.finishNode(i,"TypeAnnotation"),this.resetEndLocation(r),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.loc.start),this.finishNode(e,"DeclareFunction")}},{key:"flowParseDeclare",value:function(e,t){return this.match(80)?this.flowParseDeclareClass(e):this.match(68)?this.flowParseDeclareFunction(e):this.match(74)?this.flowParseDeclareVariable(e):this.eatContextual(127)?this.match(16)?this.flowParseDeclareModuleExports(e):(t&&this.raise(x0.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(e)):this.isContextual(130)?this.flowParseDeclareTypeAlias(e):this.isContextual(131)?this.flowParseDeclareOpaqueType(e):this.isContextual(129)?this.flowParseDeclareInterface(e):this.match(82)?this.flowParseDeclareExportDeclaration(e,t):void this.unexpected()}},{key:"flowParseDeclareVariable",value:function(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.loc.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}},{key:"flowParseDeclareModule",value:function(e){var r=this;this.scope.enter(0),this.match(134)?e.id=rv(rg(t.prototype),"parseExprAtom",this).call(this):e.id=this.parseIdentifier();var n=e.body=this.startNode(),i=n.body=[];for(this.expect(5);!this.match(8);){var a=this.startNode();this.match(83)?(this.next(),this.isContextual(130)||this.match(87)||this.raise(x0.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),rv(rg(t.prototype),"parseImport",this).call(this,a)):(this.expectContextual(125,x0.UnsupportedStatementInDeclareModule),a=this.flowParseDeclare(a,!0)),i.push(a)}this.scope.exit(),this.expect(8),this.finishNode(n,"BlockStatement");var s=null,o=!1;return i.forEach(function(e){"DeclareExportAllDeclaration"!==e.type&&("DeclareExportDeclaration"!==e.type||e.declaration&&("TypeAlias"===e.declaration.type||"InterfaceDeclaration"===e.declaration.type))?"DeclareModuleExports"===e.type&&(o&&r.raise(x0.DuplicateDeclareModuleExports,e),"ES"===s&&r.raise(x0.AmbiguousDeclareModuleKind,e),s="CommonJS",o=!0):("CommonJS"===s&&r.raise(x0.AmbiguousDeclareModuleKind,e),s="ES")}),e.kind=s||"CommonJS",this.finishNode(e,"DeclareModule")}},{key:"flowParseDeclareExportDeclaration",value:function(e,t){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!t){var r=this.state.value;throw this.raise(x0.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:r,suggestion:x2[r]})}return this.match(74)||this.match(68)||this.match(80)||this.isContextual(131)?(e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration")):this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131)?("ExportNamedDeclaration"===(e=this.parseExport(e,null)).type&&(e.type="ExportDeclaration",e.default=!1,delete e.exportKind),e.type="Declare"+e.type,e):void this.unexpected()}},{key:"flowParseDeclareModuleExports",value:function(e){return this.next(),this.expectContextual(111),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}},{key:"flowParseDeclareTypeAlias",value:function(e){this.next();var t=this.flowParseTypeAlias(e);return t.type="DeclareTypeAlias",t}},{key:"flowParseDeclareOpaqueType",value:function(e){this.next();var t=this.flowParseOpaqueType(e,!0);return t.type="DeclareOpaqueType",t}},{key:"flowParseDeclareInterface",value:function(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,"DeclareInterface")}},{key:"flowParseInterfaceish",value:function(e,t){if(e.id=this.flowParseRestrictedIdentifier(!t,!0),this.scope.declareName(e.id.name,t?17:8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(!t&&this.eat(12));if(t){if(e.implements=[],e.mixins=[],this.eatContextual(117))do e.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do e.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:t,allowExact:!1,allowSpread:!1,allowProto:t,allowInexact:!1})}},{key:"flowParseInterfaceExtends",value:function(){var e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}},{key:"flowParseInterface",value:function(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")}},{key:"checkNotUnderscore",value:function(e){"_"===e&&this.raise(x0.UnexpectedReservedUnderscore,this.state.startLoc)}},{key:"checkReservedType",value:function(e,t,r){xZ.has(e)&&this.raise(r?x0.AssignReservedType:x0.UnexpectedReservedType,t,{reservedType:e})}},{key:"flowParseRestrictedIdentifier",value:function(e,t){return this.checkReservedType(this.state.value,this.state.startLoc,t),this.parseIdentifier(e)}},{key:"flowParseTypeAlias",value:function(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,"TypeAlias")}},{key:"flowParseOpaqueType",value:function(e,t){return this.expectContextual(130),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,"OpaqueType")}},{key:"flowParseTypeParameter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.state.startLoc,r=this.startNode(),n=this.flowParseVariance(),i=this.flowParseTypeAnnotatableIdentifier();return r.name=i.name,r.variance=n,r.bound=i.typeAnnotation,this.match(29)?(this.eat(29),r.default=this.flowParseType()):e&&this.raise(x0.MissingTypeParamDefault,t),this.finishNode(r,"TypeParameter")}},{key:"flowParseTypeParameterDeclaration",value:function(){var e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();var r=!1;do{var n=this.flowParseTypeParameter(r);t.params.push(n),n.default&&(r=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(t,"TypeParameterDeclaration")}},{key:"flowParseTypeParameterInstantiation",value:function(){var e=this.startNode(),t=this.state.inType;e.params=[],this.state.inType=!0,this.expect(47);var r=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=r,this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}},{key:"flowParseTypeParameterInstantiationCallOrNew",value:function(){var e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}},{key:"flowParseInterfaceType",value:function(){var e=this.startNode();if(this.expectContextual(129),e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}},{key:"flowParseObjectPropertyKey",value:function(){return this.match(135)||this.match(134)?rv(rg(t.prototype),"parseExprAtom",this).call(this):this.parseIdentifier(!0)}},{key:"flowParseObjectTypeIndexer",value:function(e,t,r){return e.static=t,14===this.lookahead().type?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=r,this.finishNode(e,"ObjectTypeIndexer")}},{key:"flowParseObjectTypeInternalSlot",value:function(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}},{key:"flowParseObjectTypeMethodish",value:function(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}},{key:"flowParseObjectTypeCallProperty",value:function(e,t){var r=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(r),this.finishNode(e,"ObjectTypeCallProperty")}},{key:"flowParseObjectType",value:function(e){var t,r,n=e.allowStatic,i=e.allowExact,a=e.allowSpread,s=e.allowProto,o=e.allowInexact,u=this.state.inType;this.state.inType=!0;var l=this.startNode();l.callProperties=[],l.properties=[],l.indexers=[],l.internalSlots=[];var c=!1;for(i&&this.match(6)?(this.expect(6),t=9,r=!0):(this.expect(5),t=8,r=!1),l.exact=r;!this.match(t);){var p=!1,d=null,f=null,h=this.startNode();if(s&&this.isContextual(118)){var m=this.lookahead();14!==m.type&&17!==m.type&&(this.next(),d=this.state.startLoc,n=!1)}if(n&&this.isContextual(106)){var y=this.lookahead();14!==y.type&&17!==y.type&&(this.next(),p=!0)}var v=this.flowParseVariance();if(this.eat(0))null!=d&&this.unexpected(d),this.eat(0)?(v&&this.unexpected(v.loc.start),l.internalSlots.push(this.flowParseObjectTypeInternalSlot(h,p))):l.indexers.push(this.flowParseObjectTypeIndexer(h,p,v));else if(this.match(10)||this.match(47))null!=d&&this.unexpected(d),v&&this.unexpected(v.loc.start),l.callProperties.push(this.flowParseObjectTypeCallProperty(h,p));else{var g="init";(this.isContextual(99)||this.isContextual(104))&&S8(this.lookahead().type)&&(g=this.state.value,this.next());var b=this.flowParseObjectTypeProperty(h,p,d,v,g,a,null!=o?o:!r);null===b?(c=!0,f=this.state.lastTokStartLoc):l.properties.push(b)}this.flowObjectTypeSemicolon(),!f||this.match(8)||this.match(9)||this.raise(x0.UnexpectedExplicitInexactInObject,f)}this.expect(t),a&&(l.inexact=c);var S=this.finishNode(l,"ObjectTypeAnnotation");return this.state.inType=u,S}},{key:"flowParseObjectTypeProperty",value:function(e,t,r,n,i,a,s){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(a?s||this.raise(x0.InexactInsideExact,this.state.lastTokStartLoc):this.raise(x0.InexactInsideNonObject,this.state.lastTokStartLoc),n&&this.raise(x0.InexactVariance,n),null):(a||this.raise(x0.UnexpectedSpreadType,this.state.lastTokStartLoc),null!=r&&this.unexpected(r),n&&this.raise(x0.SpreadVariance,n),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=null!=r,e.kind=i;var o=!1;return this.match(47)||this.match(10)?(e.method=!0,null!=r&&this.unexpected(r),n&&this.unexpected(n.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),("get"===i||"set"===i)&&this.flowCheckGetterSetterParams(e),!a&&"constructor"===e.key.name&&e.value.this&&this.raise(x0.ThisParamBannedInConstructor,e.value.this)):("init"!==i&&this.unexpected(),e.method=!1,this.eat(17)&&(o=!0),e.value=this.flowParseTypeInitialiser(),e.variance=n),e.optional=o,this.finishNode(e,"ObjectTypeProperty")}},{key:"flowCheckGetterSetterParams",value:function(e){var t="get"===e.kind?0:1,r=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise("get"===e.kind?x0.GetterMayNotHaveThisParam:x0.SetterMayNotHaveThisParam,e.value.this),r!==t&&this.raise("get"===e.kind?SR.BadGetterArity:SR.BadSetterArity,e),"set"===e.kind&&e.value.rest&&this.raise(SR.BadSetterRestParameter,e)}},{key:"flowObjectTypeSemicolon",value:function(){this.eat(13)||this.eat(12)||this.match(8)||this.match(9)||this.unexpected()}},{key:"flowParseQualifiedTypeIdentifier",value:function(e,t){null!=e||(e=this.state.startLoc);for(var r=t||this.flowParseRestrictedIdentifier(!0);this.eat(16);){var n=this.startNodeAt(e);n.qualification=r,n.id=this.flowParseRestrictedIdentifier(!0),r=this.finishNode(n,"QualifiedTypeIdentifier")}return r}},{key:"flowParseGenericType",value:function(e,t){var r=this.startNodeAt(e);return r.typeParameters=null,r.id=this.flowParseQualifiedTypeIdentifier(e,t),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(r,"GenericTypeAnnotation")}},{key:"flowParseTypeofType",value:function(){var e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}},{key:"flowParseTupleType",value:function(){var e=this.startNode();for(e.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(e.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(e,"TupleTypeAnnotation")}},{key:"flowParseFunctionTypeParam",value:function(e){var t=null,r=!1,n=null,i=this.startNode(),a=this.lookahead(),s=78===this.state.type;return 14===a.type||17===a.type?(s&&!e&&this.raise(x0.ThisParamMustBeFirst,i),t=this.parseIdentifier(s),this.eat(17)&&(r=!0,s&&this.raise(x0.ThisParamMayNotBeOptional,i)),n=this.flowParseTypeInitialiser()):n=this.flowParseType(),i.name=t,i.optional=r,i.typeAnnotation=n,this.finishNode(i,"FunctionTypeParam")}},{key:"reinterpretTypeAsFunctionTypeParam",value:function(e){var t=this.startNodeAt(e.loc.start);return t.name=null,t.optional=!1,t.typeAnnotation=e,this.finishNode(t,"FunctionTypeParam")}},{key:"flowParseFunctionTypeParams",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=null,r=null;for(this.match(78)&&((r=this.flowParseFunctionTypeParam(!0)).name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(t=this.flowParseFunctionTypeParam(!1)),{params:e,rest:t,_this:r}}},{key:"flowIdentToTypeAnnotation",value:function(e,t,r){switch(r.name){case"any":return this.finishNode(t,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(t,"BooleanTypeAnnotation");case"mixed":return this.finishNode(t,"MixedTypeAnnotation");case"empty":return this.finishNode(t,"EmptyTypeAnnotation");case"number":return this.finishNode(t,"NumberTypeAnnotation");case"string":return this.finishNode(t,"StringTypeAnnotation");case"symbol":return this.finishNode(t,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(r.name),this.flowParseGenericType(e,r)}}},{key:"flowParsePrimaryType",value:function(){var e,r,n=this.state.startLoc,i=this.startNode(),a=!1,s=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,r=this.flowParseTupleType(),this.state.noAnonFunctionType=s,r;case 47:var o=this.startNode();return o.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),e=this.flowParseFunctionTypeParams(),o.params=e.params,o.rest=e.rest,o.this=e._this,this.expect(11),this.expect(19),o.returnType=this.flowParseType(),this.finishNode(o,"FunctionTypeAnnotation");case 10:var u=this.startNode();if(this.next(),!this.match(11)&&!this.match(21)){if(S4(this.state.type)||this.match(78)){var l=this.lookahead().type;a=17!==l&&14!==l}else a=!0}if(a){if(this.state.noAnonFunctionType=!1,r=this.flowParseType(),this.state.noAnonFunctionType=s,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&19===this.lookahead().type))return this.expect(11),r;this.eat(12)}return e=r?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(r)]):this.flowParseFunctionTypeParams(),u.params=e.params,u.rest=e.rest,u.this=e._this,this.expect(11),this.expect(19),u.returnType=this.flowParseType(),u.typeParameters=null,this.finishNode(u,"FunctionTypeAnnotation");case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return i.value=this.match(85),this.next(),this.finishNode(i,"BooleanLiteralTypeAnnotation");case 53:if("-"===this.state.value){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",i);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",i);throw this.raise(x0.UnexpectedSubtractionOperand,this.state.startLoc)}this.unexpected();return;case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(i,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(i,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(i,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(i,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(S9(this.state.type)){var c=S$[this.state.type];return this.next(),rv(rg(t.prototype),"createIdentifier",this).call(this,i,c)}if(S4(this.state.type)){if(this.isContextual(129))return this.flowParseInterfaceType();return this.flowIdentToTypeAnnotation(n,i,this.parseIdentifier())}}this.unexpected()}},{key:"flowParsePostfixType",value:function(){for(var e=this.state.startLoc,t=this.flowParsePrimaryType(),r=!1;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){var n=this.startNodeAt(e),i=this.eat(18);r=r||i,this.expect(0),!i&&this.match(3)?(n.elementType=t,this.next(),t=this.finishNode(n,"ArrayTypeAnnotation")):(n.objectType=t,n.indexType=this.flowParseType(),this.expect(3),r?(n.optional=i,t=this.finishNode(n,"OptionalIndexedAccessType")):t=this.finishNode(n,"IndexedAccessType"))}return t}},{key:"flowParsePrefixType",value:function(){var e=this.startNode();return this.eat(17)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()}},{key:"flowParseAnonFunctionWithoutParens",value:function(){var e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){var t=this.startNodeAt(e.loc.start);return t.params=[this.reinterpretTypeAsFunctionTypeParam(e)],t.rest=null,t.this=null,t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,"FunctionTypeAnnotation")}return e}},{key:"flowParseIntersectionType",value:function(){var e=this.startNode();this.eat(45);var t=this.flowParseAnonFunctionWithoutParens();for(e.types=[t];this.eat(45);)e.types.push(this.flowParseAnonFunctionWithoutParens());return 1===e.types.length?t:this.finishNode(e,"IntersectionTypeAnnotation")}},{key:"flowParseUnionType",value:function(){var e=this.startNode();this.eat(43);var t=this.flowParseIntersectionType();for(e.types=[t];this.eat(43);)e.types.push(this.flowParseIntersectionType());return 1===e.types.length?t:this.finishNode(e,"UnionTypeAnnotation")}},{key:"flowParseType",value:function(){var e=this.state.inType;this.state.inType=!0;var t=this.flowParseUnionType();return this.state.inType=e,t}},{key:"flowParseTypeOrImplicitInstantiation",value:function(){if(132!==this.state.type||"_"!==this.state.value)return this.flowParseType();var e=this.state.startLoc,t=this.parseIdentifier();return this.flowParseGenericType(e,t)}},{key:"flowParseTypeAnnotation",value:function(){var e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,"TypeAnnotation")}},{key:"flowParseTypeAnnotatableIdentifier",value:function(e){var t=e?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(t)),t}},{key:"typeCastToParameter",value:function(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}},{key:"flowParseVariance",value:function(){var e=null;return this.match(53)?(e=this.startNode(),"+"===this.state.value?e.kind="plus":e.kind="minus",this.next(),this.finishNode(e,"Variance")):e}},{key:"parseFunctionBody",value:function(e,r){var n=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(r){this.forwardNoArrowParamsConversionAt(e,function(){return rv(rg(t.prototype),"parseFunctionBody",n).call(n,e,!0,i)});return}rv(rg(t.prototype),"parseFunctionBody",this).call(this,e,!1,i)}},{key:"parseFunctionBodyAndFinish",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.match(14)){var i,a=this.startNode();i=rT(this.flowParseTypeAndPredicateInitialiser(),2),a.typeAnnotation=i[0],e.predicate=i[1],e.returnType=a.typeAnnotation?this.finishNode(a,"TypeAnnotation"):null}return rv(rg(t.prototype),"parseFunctionBodyAndFinish",this).call(this,e,r,n)}},{key:"parseStatementLike",value:function(e){if(this.state.strict&&this.isContextual(129)){if(S5(this.lookahead().type)){var r=this.startNode();return this.next(),this.flowParseInterface(r)}}else if(this.isContextual(126)){var n=this.startNode();return this.next(),this.flowParseEnumDeclaration(n)}var i=rv(rg(t.prototype),"parseStatementLike",this).call(this,e);return void 0!==this.flowPragma||this.isValidDirective(i)||(this.flowPragma=null),i}},{key:"parseExpressionStatement",value:function(e,r,n){if("Identifier"===r.type){if("declare"===r.name){if(this.match(80)||S4(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(S4(this.state.type)){if("interface"===r.name)return this.flowParseInterface(e);if("type"===r.name)return this.flowParseTypeAlias(e);if("opaque"===r.name)return this.flowParseOpaqueType(e,!1)}}return rv(rg(t.prototype),"parseExpressionStatement",this).call(this,e,r,n)}},{key:"shouldParseExportDeclaration",value:function(){var e=this.state.type;return 126===e||S6(e)?!this.state.containsEsc:rv(rg(t.prototype),"shouldParseExportDeclaration",this).call(this)}},{key:"isExportDefaultSpecifier",value:function(){var e=this.state.type;return 126===e||S6(e)?this.state.containsEsc:rv(rg(t.prototype),"isExportDefaultSpecifier",this).call(this)}},{key:"parseExportDefaultExpression",value:function(){if(this.isContextual(126)){var e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return rv(rg(t.prototype),"parseExportDefaultExpression",this).call(this)}},{key:"parseConditional",value:function(e,t,r){var n=this;if(!this.match(17))return e;if(this.state.maybeInArrowParameters){var i=this.lookaheadCharCode();if(44===i||61===i||58===i||41===i)return this.setOptionalParametersError(r),e}this.expect(17);var a=this.state.clone(),s=this.state.noArrowAt,o=this.startNodeAt(t),u=this.tryParseConditionalConsequent(),l=u.consequent,c=u.failed,p=rT(this.getArrowLikeExpressions(l),2),d=p[0],f=p[1];if(c||f.length>0){var h,m=r_(s);if(f.length>0){this.state=a,this.state.noArrowAt=m;for(var y,v,g=0;g<f.length;g++)m.push(f[g].start);l=(y=this.tryParseConditionalConsequent()).consequent,c=y.failed,d=(v=rT(this.getArrowLikeExpressions(l),2))[0],f=v[1]}c&&d.length>1&&this.raise(x0.AmbiguousConditionalArrow,a.startLoc),c&&1===d.length&&(this.state=a,m.push(d[0].start),this.state.noArrowAt=m,l=(h=this.tryParseConditionalConsequent()).consequent,c=h.failed)}return this.getArrowLikeExpressions(l,!0),this.state.noArrowAt=s,this.expect(14),o.test=e,o.consequent=l,o.alternate=this.forwardNoArrowParamsConversionAt(o,function(){return n.parseMaybeAssign(void 0,void 0)}),this.finishNode(o,"ConditionalExpression")}},{key:"tryParseConditionalConsequent",value:function(){this.state.noArrowParamsConversionAt.push(this.state.start);var e=this.parseMaybeAssignAllowIn(),t=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}}},{key:"getArrowLikeExpressions",value:function(e,t){for(var r=this,n=[e],i=[];0!==n.length;){var a=n.pop();"ArrowFunctionExpression"===a.type&&"BlockStatement"!==a.body.type?(a.typeParameters||!a.returnType?this.finishArrowValidation(a):i.push(a),n.push(a.body)):"ConditionalExpression"===a.type&&(n.push(a.consequent),n.push(a.alternate))}return t?(i.forEach(function(e){return r.finishArrowValidation(e)}),[i,[]]):function(e,t){for(var r=[],n=[],i=0;i<e.length;i++)(t(e[i],i,e)?r:n).push(e[i]);return[r,n]}(i,function(e){return e.params.every(function(e){return r.isAssignable(e,!0)})})}},{key:"finishArrowValidation",value:function(e){var r;this.toAssignableList(e.params,null===(r=e.extra)||void 0===r?void 0:r.trailingCommaLoc,!1),this.scope.enter(6),rv(rg(t.prototype),"checkParams",this).call(this,e,!1,!0),this.scope.exit()}},{key:"forwardNoArrowParamsConversionAt",value:function(e,t){var r;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),r=t(),this.state.noArrowParamsConversionAt.pop()):r=t(),r}},{key:"parseParenItem",value:function(e,r){var n=rv(rg(t.prototype),"parseParenItem",this).call(this,e,r);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(e)),this.match(14)){var i=this.startNodeAt(r);return i.expression=n,i.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(i,"TypeCastExpression")}return n}},{key:"assertModuleNodeAllowed",value:function(e){("ImportDeclaration"!==e.type||"type"!==e.importKind&&"typeof"!==e.importKind)&&("ExportNamedDeclaration"!==e.type||"type"!==e.exportKind)&&("ExportAllDeclaration"!==e.type||"type"!==e.exportKind)&&rv(rg(t.prototype),"assertModuleNodeAllowed",this).call(this,e)}},{key:"parseExportDeclaration",value:function(e){if(this.isContextual(130)){e.exportKind="type";var r=this.startNode();return(this.next(),this.match(5))?(e.specifiers=this.parseExportSpecifiers(!0),rv(rg(t.prototype),"parseExportFrom",this).call(this,e),null):this.flowParseTypeAlias(r)}if(this.isContextual(131)){e.exportKind="type";var n=this.startNode();return this.next(),this.flowParseOpaqueType(n,!1)}if(this.isContextual(129)){e.exportKind="type";var i=this.startNode();return this.next(),this.flowParseInterface(i)}if(!this.isContextual(126))return rv(rg(t.prototype),"parseExportDeclaration",this).call(this,e);e.exportKind="value";var a=this.startNode();return this.next(),this.flowParseEnumDeclaration(a)}},{key:"eatExportStar",value:function(e){return!!rv(rg(t.prototype),"eatExportStar",this).call(this,e)||!!this.isContextual(130)&&55===this.lookahead().type&&(e.exportKind="type",this.next(),this.next(),!0)}},{key:"maybeParseExportNamespaceSpecifier",value:function(e){var r=this.state.startLoc,n=rv(rg(t.prototype),"maybeParseExportNamespaceSpecifier",this).call(this,e);return n&&"type"===e.exportKind&&this.unexpected(r),n}},{key:"parseClassId",value:function(e,r,n){rv(rg(t.prototype),"parseClassId",this).call(this,e,r,n),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}},{key:"parseClassMember",value:function(e,r,n){var i=this.state.startLoc;if(this.isContextual(125)){if(rv(rg(t.prototype),"parseClassMemberFromModifier",this).call(this,e,r))return;r.declare=!0}rv(rg(t.prototype),"parseClassMember",this).call(this,e,r,n),r.declare&&("ClassProperty"!==r.type&&"ClassPrivateProperty"!==r.type&&"PropertyDefinition"!==r.type?this.raise(x0.DeclareClassElement,i):r.value&&this.raise(x0.DeclareClassFieldInitializer,r.value))}},{key:"isIterator",value:function(e){return"iterator"===e||"asyncIterator"===e}},{key:"readIterator",value:function(){var e=rv(rg(t.prototype),"readWord1",this).call(this),r="@@"+e;this.isIterator(e)&&this.state.inType||this.raise(SR.InvalidIdentifier,this.state.curPosition(),{identifierName:r}),this.finishToken(132,r)}},{key:"getTokenFromCode",value:function(e){var r,n=this.input.charCodeAt(this.state.pos+1);123===e&&124===n?this.finishOp(6,2):this.state.inType&&(62===e||60===e)?this.finishOp(62===e?48:47,1):this.state.inType&&63===e?46===n?this.finishOp(18,2):this.finishOp(17,1):(r=this.input.charCodeAt(this.state.pos+2),64===e&&64===n&&xo(r))?(this.state.pos+=2,this.readIterator()):rv(rg(t.prototype),"getTokenFromCode",this).call(this,e)}},{key:"isAssignable",value:function(e,r){return"TypeCastExpression"===e.type?this.isAssignable(e.expression,r):rv(rg(t.prototype),"isAssignable",this).call(this,e,r)}},{key:"toAssignable",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r||"AssignmentExpression"!==e.type||"TypeCastExpression"!==e.left.type||(e.left=this.typeCastToParameter(e.left)),rv(rg(t.prototype),"toAssignable",this).call(this,e,r)}},{key:"toAssignableList",value:function(e,r,n){for(var i=0;i<e.length;i++){var a=e[i];(null==a?void 0:a.type)==="TypeCastExpression"&&(e[i]=this.typeCastToParameter(a))}rv(rg(t.prototype),"toAssignableList",this).call(this,e,r,n)}},{key:"toReferencedList",value:function(e,t){for(var r=0;r<e.length;r++){var n,i=e[r];!i||"TypeCastExpression"!==i.type||(null===(n=i.extra)||void 0===n?void 0:n.parenthesized)||!(e.length>1)&&t||this.raise(x0.TypeCastInPattern,i.typeAnnotation)}return e}},{key:"parseArrayLike",value:function(e,r,n,i){var a=rv(rg(t.prototype),"parseArrayLike",this).call(this,e,r,n,i);return r&&!this.state.maybeInArrowParameters&&this.toReferencedList(a.elements),a}},{key:"isValidLVal",value:function(e,r,n){return"TypeCastExpression"===e||rv(rg(t.prototype),"isValidLVal",this).call(this,e,r,n)}},{key:"parseClassProperty",value:function(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),rv(rg(t.prototype),"parseClassProperty",this).call(this,e)}},{key:"parseClassPrivateProperty",value:function(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),rv(rg(t.prototype),"parseClassPrivateProperty",this).call(this,e)}},{key:"isClassMethod",value:function(){return this.match(47)||rv(rg(t.prototype),"isClassMethod",this).call(this)}},{key:"isClassProperty",value:function(){return this.match(14)||rv(rg(t.prototype),"isClassProperty",this).call(this)}},{key:"isNonstaticConstructor",value:function(e){return!this.match(14)&&rv(rg(t.prototype),"isNonstaticConstructor",this).call(this,e)}},{key:"pushClassMethod",value:function(e,r,n,i,a,s){if(r.variance&&this.unexpected(r.variance.loc.start),delete r.variance,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),rv(rg(t.prototype),"pushClassMethod",this).call(this,e,r,n,i,a,s),r.params&&a){var o=r.params;o.length>0&&this.isThisParam(o[0])&&this.raise(x0.ThisParamBannedInConstructor,r)}else if("MethodDefinition"===r.type&&a&&r.value.params){var u=r.value.params;u.length>0&&this.isThisParam(u[0])&&this.raise(x0.ThisParamBannedInConstructor,r)}}},{key:"pushClassPrivateMethod",value:function(e,r,n,i){r.variance&&this.unexpected(r.variance.loc.start),delete r.variance,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),rv(rg(t.prototype),"pushClassPrivateMethod",this).call(this,e,r,n,i)}},{key:"parseClassSuper",value:function(e){if(rv(rg(t.prototype),"parseClassSuper",this).call(this,e),e.superClass&&this.match(47)&&(e.superTypeArguments=this.flowParseTypeParameterInstantiation()),this.isContextual(113)){this.next();var r=e.implements=[];do{var n=this.startNode();n.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?n.typeParameters=this.flowParseTypeParameterInstantiation():n.typeParameters=null,r.push(this.finishNode(n,"ClassImplements"))}while(this.eat(12))}}},{key:"checkGetterSetterParams",value:function(e){rv(rg(t.prototype),"checkGetterSetterParams",this).call(this,e);var r=this.getObjectOrClassMethodParams(e);if(r.length>0){var n=r[0];this.isThisParam(n)&&"get"===e.kind?this.raise(x0.GetterMayNotHaveThisParam,n):this.isThisParam(n)&&this.raise(x0.SetterMayNotHaveThisParam,n)}}},{key:"parsePropertyNamePrefixOperator",value:function(e){e.variance=this.flowParseVariance()}},{key:"parseObjPropValue",value:function(e,r,n,i,a,s,o){e.variance&&this.unexpected(e.variance.loc.start),delete e.variance,!this.match(47)||s||(u=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());var u,l=rv(rg(t.prototype),"parseObjPropValue",this).call(this,e,r,n,i,a,s,o);return u&&((l.value||l).typeParameters=u),l}},{key:"parseFunctionParamType",value:function(e){return this.eat(17)&&("Identifier"!==e.type&&this.raise(x0.PatternIsOptional,e),this.isThisParam(e)&&this.raise(x0.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(x0.ThisParamAnnotationRequired,e),this.match(29)&&this.isThisParam(e)&&this.raise(x0.ThisParamNoDefault,e),this.resetEndLocation(e),e}},{key:"parseMaybeDefault",value:function(e,r){var n=rv(rg(t.prototype),"parseMaybeDefault",this).call(this,e,r);return"AssignmentPattern"===n.type&&n.typeAnnotation&&n.right.start<n.typeAnnotation.start&&this.raise(x0.TypeBeforeInitializer,n.typeAnnotation),n}},{key:"checkImportReflection",value:function(e){rv(rg(t.prototype),"checkImportReflection",this).call(this,e),e.module&&"value"!==e.importKind&&this.raise(x0.ImportReflectionHasImportType,e.specifiers[0].loc.start)}},{key:"parseImportSpecifierLocal",value:function(e,t,r){t.local=x1(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,r))}},{key:"isPotentialImportPhase",value:function(e){if(rv(rg(t.prototype),"isPotentialImportPhase",this).call(this,e))return!0;if(this.isContextual(130)){if(!e)return!0;var r=this.lookaheadCharCode();return 123===r||42===r}return!e&&this.isContextual(87)}},{key:"applyImportPhase",value:function(e,r,n,i){(rv(rg(t.prototype),"applyImportPhase",this).call(this,e,r,n,i),r)?!n&&this.match(65)||(e.exportKind="type"===n?n:"value"):("type"===n&&this.match(55)&&this.unexpected(),e.importKind="type"===n||"typeof"===n?n:"value")}},{key:"parseImportSpecifier",value:function(e,t,r,n,i){var a=e.imported,s=null;"Identifier"===a.type&&("type"===a.name?s="type":"typeof"===a.name&&(s="typeof"));var o=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){var u=this.parseIdentifier(!0);null===s||S5(this.state.type)?(e.imported=a,e.importKind=null,e.local=this.parseIdentifier()):(e.imported=u,e.importKind=s,e.local=xY(u))}else{if(null!==s&&S5(this.state.type))e.imported=this.parseIdentifier(!0),e.importKind=s;else{if(t)throw this.raise(SR.ImportBindingIsString,e,{importName:a.value});e.imported=a,e.importKind=null}this.eatContextual(93)?e.local=this.parseIdentifier():(o=!0,e.local=xY(e.imported))}var l=x1(e);return r&&l&&this.raise(x0.ImportTypeShorthandOnlyInPureImport,e),(r||l)&&this.checkReservedType(e.local.name,e.local.loc.start,!0),!o||r||l||this.checkReservedWord(e.local.name,e.loc.start,!0,!0),this.finishImportSpecifier(e,"ImportSpecifier")}},{key:"parseBindingAtom",value:function(){return 78===this.state.type?this.parseIdentifier(!0):rv(rg(t.prototype),"parseBindingAtom",this).call(this)}},{key:"parseFunctionParams",value:function(e,r){var n=e.kind;"get"!==n&&"set"!==n&&this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),rv(rg(t.prototype),"parseFunctionParams",this).call(this,e,r)}},{key:"parseVarId",value:function(e,r){rv(rg(t.prototype),"parseVarId",this).call(this,e,r),this.match(14)&&(e.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e.id))}},{key:"parseAsyncArrowFromCallExpression",value:function(e,r){if(this.match(14)){var n=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,e.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=n}return rv(rg(t.prototype),"parseAsyncArrowFromCallExpression",this).call(this,e,r)}},{key:"shouldParseAsyncArrow",value:function(){return this.match(14)||rv(rg(t.prototype),"shouldParseAsyncArrow",this).call(this)}},{key:"parseMaybeAssign",value:function(e,r){var n=this,i=null;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(i=this.state.clone(),!(o=this.tryParse(function(){return rv(rg(t.prototype),"parseMaybeAssign",n).call(n,e,r)},i)).error)return o.node;var a=this.state.context,s=a[a.length-1];(s===Sq.j_oTag||s===Sq.j_expr)&&a.pop()}if((null==o?void 0:o.error)||this.match(47)){i=i||this.state.clone();var o,u,l=this.tryParse(function(i){u=n.flowParseTypeParameterDeclaration();var a,s=n.forwardNoArrowParamsConversionAt(u,function(){var i=rv(rg(t.prototype),"parseMaybeAssign",n).call(n,e,r);return n.resetStartLocationFromNode(i,u),i});(null===(a=s.extra)||void 0===a?void 0:a.parenthesized)&&i();var o=n.maybeUnwrapTypeCastExpression(s);return"ArrowFunctionExpression"!==o.type&&i(),o.typeParameters=u,n.resetStartLocationFromNode(o,u),s},i),c=null;if(l.node&&"ArrowFunctionExpression"===this.maybeUnwrapTypeCastExpression(l.node).type){if(!l.error&&!l.aborted)return l.node.async&&this.raise(x0.UnexpectedTypeParameterBeforeAsyncArrowFunction,u),l.node;c=l.node}if(null==o?void 0:o.node)return this.state=o.failState,o.node;if(c)return this.state=l.failState,c;if(null==o?void 0:o.thrown)throw o.error;if(l.thrown)throw l.error;throw this.raise(x0.UnexpectedTokenAfterTypeParameter,u)}return rv(rg(t.prototype),"parseMaybeAssign",this).call(this,e,r)}},{key:"parseArrow",value:function(e){var r=this;if(this.match(14)){var n=this.tryParse(function(){var t,n=r.state.noAnonFunctionType;r.state.noAnonFunctionType=!0;var i=r.startNode();return t=rT(r.flowParseTypeAndPredicateInitialiser(),2),i.typeAnnotation=t[0],e.predicate=t[1],r.state.noAnonFunctionType=n,r.canInsertSemicolon()&&r.unexpected(),r.match(19)||r.unexpected(),i});if(n.thrown)return null;n.error&&(this.state=n.failState),e.returnType=n.node.typeAnnotation?this.finishNode(n.node,"TypeAnnotation"):null}return rv(rg(t.prototype),"parseArrow",this).call(this,e)}},{key:"shouldParseArrow",value:function(e){return this.match(14)||rv(rg(t.prototype),"shouldParseArrow",this).call(this,e)}},{key:"setArrowFunctionParameters",value:function(e,r){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?e.params=r:rv(rg(t.prototype),"setArrowFunctionParameters",this).call(this,e,r)}},{key:"checkParams",value:function(e,r,n){var i=!(arguments.length>3)||void 0===arguments[3]||arguments[3];if(!(n&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start)))){for(var a=0;a<e.params.length;a++)this.isThisParam(e.params[a])&&a>0&&this.raise(x0.ThisParamMustBeFirst,e.params[a]);rv(rg(t.prototype),"checkParams",this).call(this,e,r,n,i)}}},{key:"parseParenAndDistinguishExpression",value:function(e){return rv(rg(t.prototype),"parseParenAndDistinguishExpression",this).call(this,e&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}},{key:"parseSubscripts",value:function(e,r,n){var i=this;if("Identifier"===e.type&&"async"===e.name&&this.state.noArrowAt.includes(r.index)){this.next();var a=this.startNodeAt(r);a.callee=e,a.arguments=rv(rg(t.prototype),"parseCallExpressionArguments",this).call(this,11),e=this.finishNode(a,"CallExpression")}else if("Identifier"===e.type&&"async"===e.name&&this.match(47)){var s=this.state.clone(),o=this.tryParse(function(e){return i.parseAsyncArrowWithTypeParameters(r)||e()},s);if(!o.error&&!o.aborted)return o.node;var u=this.tryParse(function(){return rv(rg(t.prototype),"parseSubscripts",i).call(i,e,r,n)},s);if(u.node&&!u.error)return u.node;if(o.node)return this.state=o.failState,o.node;if(u.node)return this.state=u.failState,u.node;throw o.error||u.error}return rv(rg(t.prototype),"parseSubscripts",this).call(this,e,r,n)}},{key:"parseSubscript",value:function(e,r,n,i){var a=this;if(this.match(18)&&this.isLookaheadToken_lt()){if(i.optionalChainMember=!0,n)return i.stop=!0,e;this.next();var s=this.startNodeAt(r);return s.callee=e,s.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),s.arguments=this.parseCallExpressionArguments(11),s.optional=!0,this.finishCallExpression(s,!0)}if(!n&&this.shouldParseTypes()&&this.match(47)){var o=this.startNodeAt(r);o.callee=e;var u=this.tryParse(function(){return o.typeArguments=a.flowParseTypeParameterInstantiationCallOrNew(),a.expect(10),o.arguments=rv(rg(t.prototype),"parseCallExpressionArguments",a).call(a,11),i.optionalChainMember&&(o.optional=!1),a.finishCallExpression(o,i.optionalChainMember)});if(u.node)return u.error&&(this.state=u.failState),u.node}return rv(rg(t.prototype),"parseSubscript",this).call(this,e,r,n,i)}},{key:"parseNewCallee",value:function(e){var r=this;rv(rg(t.prototype),"parseNewCallee",this).call(this,e);var n=null;this.shouldParseTypes()&&this.match(47)&&(n=this.tryParse(function(){return r.flowParseTypeParameterInstantiationCallOrNew()}).node),e.typeArguments=n}},{key:"parseAsyncArrowWithTypeParameters",value:function(e){var r=this.startNodeAt(e);if(this.parseFunctionParams(r,!1),this.parseArrow(r))return rv(rg(t.prototype),"parseArrowExpression",this).call(this,r,void 0,!0)}},{key:"readToken_mult_modulo",value:function(e){var r=this.input.charCodeAt(this.state.pos+1);if(42===e&&47===r&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}rv(rg(t.prototype),"readToken_mult_modulo",this).call(this,e)}},{key:"readToken_pipe_amp",value:function(e){var r=this.input.charCodeAt(this.state.pos+1);if(124===e&&125===r){this.finishOp(9,2);return}rv(rg(t.prototype),"readToken_pipe_amp",this).call(this,e)}},{key:"parseTopLevel",value:function(e,r){var n=rv(rg(t.prototype),"parseTopLevel",this).call(this,e,r);return this.state.hasFlowComment&&this.raise(x0.UnterminatedFlowComment,this.state.curPosition()),n}},{key:"skipBlockComment",value:function(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(x0.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();var e=this.skipFlowComment();e&&(this.state.pos+=e,this.state.hasFlowComment=!0);return}return rv(rg(t.prototype),"skipBlockComment",this).call(this,this.state.hasFlowComment?"*-/":"*/")}},{key:"skipFlowComment",value:function(){for(var e=this.state.pos,t=2;[32,9].includes(this.input.charCodeAt(e+t));)t++;var r=this.input.charCodeAt(t+e),n=this.input.charCodeAt(t+e+1);return 58===r&&58===n?t+2:"flow-include"===this.input.slice(t+e,t+e+12)?t+12:58===r&&58!==n&&t}},{key:"hasFlowCommentCompletion",value:function(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(SR.UnterminatedComment,this.state.curPosition())}},{key:"flowEnumErrorBooleanMemberNotInitialized",value:function(e,t){var r=t.enumName,n=t.memberName;this.raise(x0.EnumBooleanMemberNotInitialized,e,{memberName:n,enumName:r})}},{key:"flowEnumErrorInvalidMemberInitializer",value:function(e,t){return this.raise(t.explicitType?"symbol"===t.explicitType?x0.EnumInvalidMemberInitializerSymbolType:x0.EnumInvalidMemberInitializerPrimaryType:x0.EnumInvalidMemberInitializerUnknownType,e,t)}},{key:"flowEnumErrorNumberMemberNotInitialized",value:function(e,t){this.raise(x0.EnumNumberMemberNotInitialized,e,t)}},{key:"flowEnumErrorStringMemberInconsistentlyInitialized",value:function(e,t){this.raise(x0.EnumStringMemberInconsistentlyInitialized,e,t)}},{key:"flowEnumMemberInit",value:function(){var e=this,t=this.state.startLoc,r=function(){return e.match(12)||e.match(8)};switch(this.state.type){case 135:var n=this.parseNumericLiteral(this.state.value);if(r())return{type:"number",loc:n.loc.start,value:n};return{type:"invalid",loc:t};case 134:var i=this.parseStringLiteral(this.state.value);if(r())return{type:"string",loc:i.loc.start,value:i};return{type:"invalid",loc:t};case 85:case 86:var a=this.parseBooleanLiteral(this.match(85));if(r())return{type:"boolean",loc:a.loc.start,value:a};return{type:"invalid",loc:t};default:return{type:"invalid",loc:t}}}},{key:"flowEnumMemberRaw",value:function(){var e=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e}}}},{key:"flowEnumCheckExplicitTypeMismatch",value:function(e,t,r){var n=t.explicitType;null!==n&&n!==r&&this.flowEnumErrorInvalidMemberInitializer(e,t)}},{key:"flowEnumMembers",value:function(e){for(var t=e.enumName,r=e.explicitType,n=/* @__PURE__ */new Set,i={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},a=!1;!this.match(8);){if(this.eat(21)){a=!0;break}var s=this.startNode(),o=this.flowEnumMemberRaw(),u=o.id,l=o.init,c=u.name;if(""!==c){/^[a-z]/.test(c)&&this.raise(x0.EnumInvalidMemberName,u,{memberName:c,suggestion:c[0].toUpperCase()+c.slice(1),enumName:t}),n.has(c)&&this.raise(x0.EnumDuplicateMemberName,u,{memberName:c,enumName:t}),n.add(c);var p={enumName:t,explicitType:r,memberName:c};switch(s.id=u,l.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(l.loc,p,"boolean"),s.init=l.value,i.booleanMembers.push(this.finishNode(s,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(l.loc,p,"number"),s.init=l.value,i.numberMembers.push(this.finishNode(s,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(l.loc,p,"string"),s.init=l.value,i.stringMembers.push(this.finishNode(s,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(l.loc,p);case"none":switch(r){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(l.loc,p);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(l.loc,p);break;default:i.defaultedMembers.push(this.finishNode(s,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}}return{members:i,hasUnknownMembers:a}}},{key:"flowEnumStringMembers",value:function(e,t,r){var n=r.enumName;if(0===e.length)return t;if(0===t.length)return e;if(t.length>e.length){var i=!0,a=!1,s=void 0;try{for(var o,u=e[Symbol.iterator]();!(i=(o=u.next()).done);i=!0){var l=o.value;this.flowEnumErrorStringMemberInconsistentlyInitialized(l,{enumName:n})}}catch(e){a=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(a)throw s}}return t}var c=!0,p=!1,d=void 0;try{for(var f,h=t[Symbol.iterator]();!(c=(f=h.next()).done);c=!0){var m=f.value;this.flowEnumErrorStringMemberInconsistentlyInitialized(m,{enumName:n})}}catch(e){p=!0,d=e}finally{try{c||null==h.return||h.return()}finally{if(p)throw d}}return e}},{key:"flowEnumParseExplicitType",value:function(e){var t=e.enumName;if(!this.eatContextual(102))return null;if(!S4(this.state.type))throw this.raise(x0.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:t});var r=this.state.value;return this.next(),"boolean"!==r&&"number"!==r&&"string"!==r&&"symbol"!==r&&this.raise(x0.EnumInvalidExplicitType,this.state.startLoc,{enumName:t,invalidEnumType:r}),r}},{key:"flowEnumBody",value:function(e,t){var r=this,n=t.name,i=t.loc.start,a=this.flowEnumParseExplicitType({enumName:n});this.expect(5);var s=this.flowEnumMembers({enumName:n,explicitType:a}),o=s.members,u=s.hasUnknownMembers;switch(e.hasUnknownMembers=u,a){case"boolean":return e.explicitType=!0,e.members=o.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=o.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=o.defaultedMembers,this.expect(8),this.finishNode(e,"EnumSymbolBody");default:var l=function(){return e.members=[],r.expect(8),r.finishNode(e,"EnumStringBody")};e.explicitType=!1;var c=o.booleanMembers.length,p=o.numberMembers.length,d=o.stringMembers.length,f=o.defaultedMembers.length;if(!c&&!p&&!d&&!f)return l();if(!c&&!p)return e.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(e,"EnumStringBody");if(p||d||!(c>=f)){if(c||d||!(p>=f))return this.raise(x0.EnumInconsistentMemberValues,i,{enumName:n}),l();var h=!0,m=!1,y=void 0;try{for(var v,g=o.defaultedMembers[Symbol.iterator]();!(h=(v=g.next()).done);h=!0){var b=v.value;this.flowEnumErrorNumberMemberNotInitialized(b.loc.start,{enumName:n,memberName:b.id.name})}}catch(e){m=!0,y=e}finally{try{h||null==g.return||g.return()}finally{if(m)throw y}}return e.members=o.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}var S=!0,x=!1,T=void 0;try{for(var E,_=o.defaultedMembers[Symbol.iterator]();!(S=(E=_.next()).done);S=!0){var P=E.value;this.flowEnumErrorBooleanMemberNotInitialized(P.loc.start,{enumName:n,memberName:P.id.name})}}catch(e){x=!0,T=e}finally{try{S||null==_.return||_.return()}finally{if(x)throw T}}return e.members=o.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody")}}},{key:"flowParseEnumDeclaration",value:function(e){var t=this.parseIdentifier();return e.id=t,e.body=this.flowEnumBody(this.startNode(),t),this.finishNode(e,"EnumDeclaration")}},{key:"isLookaheadToken_lt",value:function(){var e=this.nextTokenStart();if(60===this.input.charCodeAt(e)){var t=this.input.charCodeAt(e+1);return 60!==t&&61!==t}return!1}},{key:"maybeUnwrapTypeCastExpression",value:function(e){return"TypeCastExpression"===e.type?e.expression:e}}]),t}(e)},typescript:function(e){return /*#__PURE__*/function(e){function t(){var e;return rf(this,t),e=rd(this,t,arguments),rX(e,"tsParseInOutModifiers",e.tsParseModifiers.bind(e,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:Tn.InvalidModifierOnTypeParameter})),rX(e,"tsParseConstModifier",e.tsParseModifiers.bind(e,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:Tn.InvalidModifierOnTypeParameterPositions})),rX(e,"tsParseInOutConstModifiers",e.tsParseModifiers.bind(e,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:Tn.InvalidModifierOnTypeParameter})),e}return rb(t,e),rm(t,[{key:"getScopeHandler",value:function(){return x7}},{key:"tsIsIdentifier",value:function(){return S4(this.state.type)}},{key:"tsTokenCanFollowModifier",value:function(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}},{key:"tsNextTokenOnSameLineAndCanFollowModifier",value:function(){return this.next(),!this.hasPrecedingLineBreak()&&this.tsTokenCanFollowModifier()}},{key:"tsNextTokenCanFollowModifier",value:function(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}},{key:"tsParseModifier",value:function(e,t){if(S4(this.state.type)||58===this.state.type||75===this.state.type){var r=this.state.value;if(e.includes(r)){if(t&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return r}}}},{key:"tsParseModifiers",value:function(e,t){for(var r=this,n=e.allowedModifiers,i=e.disallowedModifiers,a=e.stopOnStartOfClassStaticBlock,s=e.errorTemplate,o=void 0===s?Tn.InvalidModifierOnTypeMember:s,u=function(e,n,i,a){n===i&&t[a]&&r.raise(Tn.InvalidModifiersOrder,e,{orderedModifiers:[i,a]})},l=function(e,n,i,a){(t[i]&&n===a||t[a]&&n===i)&&r.raise(Tn.IncompatibleModifiers,e,{modifiers:[i,a]})};;){var c=this.state.startLoc,p=this.tsParseModifier(n.concat(null!=i?i:[]),a);if(!p)break;Ti(p)?t.accessibility?this.raise(Tn.DuplicateAccessibilityModifier,c,{modifier:p}):(u(c,p,p,"override"),u(c,p,p,"static"),u(c,p,p,"readonly"),t.accessibility=p):"in"===p||"out"===p?(t[p]&&this.raise(Tn.DuplicateModifier,c,{modifier:p}),t[p]=!0,u(c,p,"in","out")):(Object.hasOwn(t,p)?this.raise(Tn.DuplicateModifier,c,{modifier:p}):(u(c,p,"static","readonly"),u(c,p,"static","override"),u(c,p,"override","readonly"),u(c,p,"abstract","override"),l(c,p,"declare","override"),l(c,p,"static","abstract")),t[p]=!0),(null==i?void 0:i.includes(p))&&this.raise(o,c,{modifier:p})}}},{key:"tsIsListTerminator",value:function(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}},{key:"tsParseList",value:function(e,t){for(var r=[];!this.tsIsListTerminator(e);)r.push(t());return r}},{key:"tsParseDelimitedList",value:function(e,t,r){return function(e){if(null==e)throw Error("Unexpected ".concat(e," value."));return e}(this.tsParseDelimitedListWorker(e,t,!0,r))}},{key:"tsParseDelimitedListWorker",value:function(e,t,r,n){for(var i=[],a=-1;!this.tsIsListTerminator(e);){a=-1;var s=t();if(null==s)return;if(i.push(s),this.eat(12)){a=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(e))break;r&&this.expect(12);return}return n&&(n.value=a),i}},{key:"tsParseBracketedList",value:function(e,t,r,n,i){n||(r?this.expect(0):this.expect(47));var a=this.tsParseDelimitedList(e,t,i);return r?this.expect(3):this.expect(48),a}},{key:"tsParseImportType",value:function(){var e=this.startNode();return this.expect(83),this.expect(10),this.match(134)||this.raise(Tn.UnsupportedImportTypeArgument,this.state.startLoc),e.argument=rv(rg(t.prototype),"parseExprAtom",this).call(this),this.eat(12)&&!this.match(11)?(e.options=rv(rg(t.prototype),"parseMaybeAssignAllowIn",this).call(this),this.eat(12)):e.options=null,this.expect(11),this.eat(16)&&(e.qualifier=this.tsParseEntityName()),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}},{key:"tsParseEntityName",value:function(){for(var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=this.parseIdentifier(e);this.eat(16);){var r=this.startNodeAtNode(t);r.left=t,r.right=this.parseIdentifier(e),t=this.finishNode(r,"TSQualifiedName")}return t}},{key:"tsParseTypeReference",value:function(){var e=this.startNode();return e.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeArguments=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}},{key:"tsParseThisTypePredicate",value:function(e){this.next();var t=this.startNodeAtNode(e);return t.parameterName=e,t.typeAnnotation=this.tsParseTypeAnnotation(!1),t.asserts=!1,this.finishNode(t,"TSTypePredicate")}},{key:"tsParseThisTypeNode",value:function(){var e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}},{key:"tsParseTypeQuery",value:function(){var e=this.startNode();return this.expect(87),this.match(83)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeQuery")}},{key:"tsParseTypeParameter",value:function(e){var t=this.startNode();return e(t),t.name=this.tsParseTypeParameterName(),t.constraint=this.tsEatThenParseType(81),t.default=this.tsEatThenParseType(29),this.finishNode(t,"TSTypeParameter")}},{key:"tsTryParseTypeParameters",value:function(e){if(this.match(47))return this.tsParseTypeParameters(e)}},{key:"tsParseTypeParameters",value:function(e){var t=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();var r={value:-1};return t.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,r),0===t.params.length&&this.raise(Tn.EmptyTypeParameters,t),-1!==r.value&&this.addExtra(t,"trailingComma",r.value),this.finishNode(t,"TSTypeParameterDeclaration")}},{key:"tsFillSignature",value:function(e,t){var r=19===e,n="returnType";t.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),t.params=this.tsParseBindingListForSignature(),r?t[n]=this.tsParseTypeOrTypePredicateAnnotation(e):this.match(e)&&(t[n]=this.tsParseTypeOrTypePredicateAnnotation(e))}},{key:"tsParseBindingListForSignature",value:function(){var e=rv(rg(t.prototype),"parseBindingList",this).call(this,11,41,2),r=!0,n=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var o=a.value,u=o.type;("AssignmentPattern"===u||"TSParameterProperty"===u)&&this.raise(Tn.UnsupportedSignatureParameterKind,o,{type:u})}}catch(e){n=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw i}}return e}},{key:"tsParseTypeMemberSemicolon",value:function(){this.eat(12)||this.isLineTerminator()||this.expect(13)}},{key:"tsParseSignatureMember",value:function(e,t){return this.tsFillSignature(14,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)}},{key:"tsIsUnambiguouslyIndexSignature",value:function(){return this.next(),!!S4(this.state.type)&&(this.next(),this.match(14))}},{key:"tsTryParseIndexSignature",value:function(e){if(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))){this.expect(0);var t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(t),this.expect(3),e.parameters=[t];var r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}}},{key:"tsParsePropertyOrMethodSignature",value:function(e,t){if(this.eat(17)&&(e.optional=!0),this.match(10)||this.match(47)){t&&this.raise(Tn.ReadonlyForMethodSignature,e),e.kind&&this.match(47)&&this.raise(Tn.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,e),this.tsParseTypeMemberSemicolon();var r="params",n="returnType";if("get"===e.kind)e[r].length>0&&(this.raise(SR.BadGetterArity,this.state.curPosition()),this.isThisParam(e[r][0])&&this.raise(Tn.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if("set"===e.kind){if(1!==e[r].length)this.raise(SR.BadSetterArity,this.state.curPosition());else{var i=e[r][0];this.isThisParam(i)&&this.raise(Tn.AccessorCannotDeclareThisParameter,this.state.curPosition()),"Identifier"===i.type&&i.optional&&this.raise(Tn.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),"RestElement"===i.type&&this.raise(Tn.SetAccessorCannotHaveRestParameter,this.state.curPosition())}e[n]&&this.raise(Tn.SetAccessorCannotHaveReturnType,e[n])}else e.kind="method";return this.finishNode(e,"TSMethodSignature")}t&&(e.readonly=!0);var a=this.tsTryParseTypeAnnotation();return a&&(e.typeAnnotation=a),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSPropertySignature")}},{key:"tsParseTypeMember",value:function(){var e=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(77)){var r=this.startNode();return(this.next(),this.match(10)||this.match(47))?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(r,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}return this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},e),this.tsTryParseIndexSignature(e)||(rv(rg(t.prototype),"parsePropertyName",this).call(this,e),!e.computed&&"Identifier"===e.key.type&&("get"===e.key.name||"set"===e.key.name)&&this.tsTokenCanFollowModifier()&&(e.kind=e.key.name,rv(rg(t.prototype),"parsePropertyName",this).call(this,e)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}},{key:"tsParseTypeLiteral",value:function(){var e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}},{key:"tsParseObjectTypeMembers",value:function(){this.expect(5);var e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),e}},{key:"tsIsStartOfMappedType",value:function(){return(this.next(),this.eat(53))?this.isContextual(122):(this.isContextual(122)&&this.next(),!!this.match(0)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(58))))}},{key:"tsParseMappedType",value:function(){var e=this.startNode();return this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(e.readonly=!0),this.expect(0),e.key=this.tsParseTypeParameterName(),e.constraint=this.tsExpectThenParseType(58),e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,"TSMappedType")}},{key:"tsParseTupleType",value:function(){var e=this,t=this.startNode();t.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);var r=!1;return t.elementTypes.forEach(function(t){var n=t.type;r&&"TSRestType"!==n&&"TSOptionalType"!==n&&!("TSNamedTupleMember"===n&&t.optional)&&e.raise(Tn.OptionalTypeBeforeRequired,t),r||(r="TSNamedTupleMember"===n&&t.optional||"TSOptionalType"===n)}),this.finishNode(t,"TSTupleType")}},{key:"tsParseTupleElementType",value:function(){var e,t,r,n,i,a=this.state.startLoc,s=this.eat(21),o=S5(this.state.type)?this.lookaheadCharCode():null;if(58===o)e=!0,r=!1,t=this.parseIdentifier(!0),this.expect(14),n=this.tsParseType();else if(63===o){r=!0;var u=this.state.startLoc,l=this.state.value,c=this.tsParseNonArrayType();58===this.lookaheadCharCode()?(e=!0,t=this.createIdentifier(this.startNodeAt(u),l),this.expect(17),this.expect(14),n=this.tsParseType()):(e=!1,n=c,this.expect(17))}else n=this.tsParseType(),r=this.eat(17),e=this.eat(14);if(e)t?((i=this.startNodeAtNode(t)).optional=r,i.label=t,i.elementType=n,this.eat(17)&&(i.optional=!0,this.raise(Tn.TupleOptionalAfterType,this.state.lastTokStartLoc))):((i=this.startNodeAtNode(n)).optional=r,this.raise(Tn.InvalidTupleMemberLabel,n),i.label=n,i.elementType=this.tsParseType()),n=this.finishNode(i,"TSNamedTupleMember");else if(r){var p=this.startNodeAtNode(n);p.typeAnnotation=n,n=this.finishNode(p,"TSOptionalType")}if(s){var d=this.startNodeAt(a);d.typeAnnotation=n,n=this.finishNode(d,"TSRestType")}return n}},{key:"tsParseParenthesizedType",value:function(){var e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,"TSParenthesizedType")}},{key:"tsParseFunctionOrConstructorType",value:function(e,t){var r=this,n=this.startNode();return"TSConstructorType"===e&&(n.abstract=!!t,t&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(function(){return r.tsFillSignature(19,n)}),this.finishNode(n,e)}},{key:"tsParseLiteralTypeNode",value:function(){var e=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:e.literal=rv(rg(t.prototype),"parseExprAtom",this).call(this);break;default:this.unexpected()}return this.finishNode(e,"TSLiteralType")}},{key:"tsParseTemplateLiteralType",value:function(){var e=this.startNode();return e.literal=rv(rg(t.prototype),"parseTemplate",this).call(this,!1),this.finishNode(e,"TSLiteralType")}},{key:"parseTemplateSubstitution",value:function(){return this.state.inType?this.tsParseType():rv(rg(t.prototype),"parseTemplateSubstitution",this).call(this)}},{key:"tsParseThisTypeOrThisTypePredicate",value:function(){var e=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}},{key:"tsParseNonArrayType",value:function(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if("-"===this.state.value){var e=this.startNode(),t=this.lookahead();return 135!==t.type&&136!==t.type&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:if(!this.options.createParenthesizedExpressions){var r=this.state.startLoc;this.next();var n=this.tsParseType();return this.expect(11),this.addExtra(n,"parenthesized",!0),this.addExtra(n,"parenStart",r.index),n}return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:var i=this.state.type;if(S4(i)||88===i||84===i){var a=88===i?"TSVoidKeyword":84===i?"TSNullKeyword":function(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}(this.state.value);if(void 0!==a&&46!==this.lookaheadCharCode()){var s=this.startNode();return this.next(),this.finishNode(s,a)}return this.tsParseTypeReference()}}this.unexpected()}},{key:"tsParseArrayTypeOrHigher",value:function(){for(var e=this.tsParseNonArrayType();!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){var t=this.startNodeAtNode(e);t.elementType=e,this.expect(3),e=this.finishNode(t,"TSArrayType")}else{var r=this.startNodeAtNode(e);r.objectType=e,r.indexType=this.tsParseType(),this.expect(3),e=this.finishNode(r,"TSIndexedAccessType")}return e}},{key:"tsParseTypeOperator",value:function(){var e=this.startNode(),t=this.state.value;return this.next(),e.operator=t,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===t&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")}},{key:"tsCheckTypeAnnotationForReadOnly",value:function(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(Tn.UnexpectedReadonly,e)}}},{key:"tsParseInferType",value:function(){var e=this,t=this.startNode();this.expectContextual(115);var r=this.startNode();return r.name=this.tsParseTypeParameterName(),r.constraint=this.tsTryParse(function(){return e.tsParseConstraintForInferType()}),t.typeParameter=this.finishNode(r,"TSTypeParameter"),this.finishNode(t,"TSInferType")}},{key:"tsParseConstraintForInferType",value:function(){var e=this;if(this.eat(81)){var t=this.tsInDisallowConditionalTypesContext(function(){return e.tsParseType()});if(this.state.inDisallowConditionalTypesContext||!this.match(17))return t}}},{key:"tsParseTypeOperatorOrHigher",value:function(){var e,t=this;return(e=this.state.type)>=121&&e<=123&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(function(){return t.tsParseArrayTypeOrHigher()})}},{key:"tsParseUnionOrIntersectionType",value:function(e,t,r){var n=this.startNode(),i=this.eat(r),a=[];do a.push(t());while(this.eat(r));return 1!==a.length||i?(n.types=a,this.finishNode(n,e)):a[0]}},{key:"tsParseIntersectionTypeOrHigher",value:function(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}},{key:"tsParseUnionTypeOrHigher",value:function(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}},{key:"tsIsStartOfFunctionType",value:function(){return!!this.match(47)||this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}},{key:"tsSkipParameterStart",value:function(){if(S4(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){var e=this.state.errors,r=e.length;try{return this.parseObjectLike(8,!0),e.length===r}catch(e){return!1}}if(this.match(0)){this.next();var n=this.state.errors,i=n.length;try{return rv(rg(t.prototype),"parseBindingList",this).call(this,3,93,1),n.length===i}catch(e){}}return!1}},{key:"tsIsUnambiguouslyStartOfFunctionType",value:function(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}},{key:"tsParseTypeOrTypePredicateAnnotation",value:function(e){var t=this;return this.tsInType(function(){var r=t.startNode();t.expect(e);var n=t.startNode(),i=!!t.tsTryParse(t.tsParseTypePredicateAsserts.bind(t));if(i&&t.match(78)){var a=t.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===a.type?(n.parameterName=a,n.asserts=!0,n.typeAnnotation=null,a=t.finishNode(n,"TSTypePredicate")):(t.resetStartLocationFromNode(a,n),a.asserts=!0),r.typeAnnotation=a,t.finishNode(r,"TSTypeAnnotation")}var s=t.tsIsIdentifier()&&t.tsTryParse(t.tsParseTypePredicatePrefix.bind(t));if(!s)return i?(n.parameterName=t.parseIdentifier(),n.asserts=i,n.typeAnnotation=null,r.typeAnnotation=t.finishNode(n,"TSTypePredicate"),t.finishNode(r,"TSTypeAnnotation")):t.tsParseTypeAnnotation(!1,r);var o=t.tsParseTypeAnnotation(!1);return n.parameterName=s,n.typeAnnotation=o,n.asserts=i,r.typeAnnotation=t.finishNode(n,"TSTypePredicate"),t.finishNode(r,"TSTypeAnnotation")})}},{key:"tsTryParseTypeOrTypePredicateAnnotation",value:function(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}},{key:"tsTryParseTypeAnnotation",value:function(){if(this.match(14))return this.tsParseTypeAnnotation()}},{key:"tsTryParseType",value:function(){return this.tsEatThenParseType(14)}},{key:"tsParseTypePredicatePrefix",value:function(){var e=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),e}},{key:"tsParseTypePredicateAsserts",value:function(){if(109!==this.state.type)return!1;var e=this.state.containsEsc;return this.next(),!!(S4(this.state.type)||this.match(78))&&(e&&this.raise(SR.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}},{key:"tsParseTypeAnnotation",value:function(){var e=this,t=!(arguments.length>0)||void 0===arguments[0]||arguments[0],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.startNode();return this.tsInType(function(){t&&e.expect(14),r.typeAnnotation=e.tsParseType()}),this.finishNode(r,"TSTypeAnnotation")}},{key:"tsParseType",value:function(){var e=this;Tr(this.state.inType);var t=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return t;var r=this.startNodeAtNode(t);return r.checkType=t,r.extendsType=this.tsInDisallowConditionalTypesContext(function(){return e.tsParseNonConditionalType()}),this.expect(17),r.trueType=this.tsInAllowConditionalTypesContext(function(){return e.tsParseType()}),this.expect(14),r.falseType=this.tsInAllowConditionalTypesContext(function(){return e.tsParseType()}),this.finishNode(r,"TSConditionalType")}},{key:"isAbstractConstructorSignature",value:function(){return this.isContextual(124)&&77===this.lookahead().type}},{key:"tsParseNonConditionalType",value:function(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}},{key:"tsParseTypeAssertion",value:function(){var e=this;this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(Tn.ReservedTypeAssertion,this.state.startLoc);var t=this.startNode();return t.typeAnnotation=this.tsInType(function(){return e.next(),e.match(75)?e.tsParseTypeReference():e.tsParseType()}),this.expect(48),t.expression=this.parseMaybeUnary(),this.finishNode(t,"TSTypeAssertion")}},{key:"tsParseHeritageClause",value:function(e){var t=this,r=this.state.startLoc,n=this.tsParseDelimitedList("HeritageClauseElement",function(){var r=t.startNode();return r.expression=t.tsParseEntityName(),t.match(47)&&(r.typeParameters=t.tsParseTypeArguments()),t.finishNode(r,"extends"===e?"TSInterfaceHeritage":"TSClassImplements")});return n.length||this.raise(Tn.EmptyHeritageClauseType,r,{token:e}),n}},{key:"tsParseInterfaceDeclaration",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.hasFollowingLineBreak())return null;this.expectContextual(129),t.declare&&(e.declare=!0),S4(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise(Tn.MissingInterfaceName,this.state.startLoc)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause("extends"));var r=this.startNode();return r.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(r,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}},{key:"tsParseTypeAliasDeclaration",value:function(e){var t=this;return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,2),e.typeAnnotation=this.tsInType(function(){if(e.typeParameters=t.tsTryParseTypeParameters(t.tsParseInOutModifiers),t.expect(29),t.isContextual(114)&&16!==t.lookahead().type){var r=t.startNode();return t.next(),t.finishNode(r,"TSIntrinsicKeyword")}return t.tsParseType()}),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}},{key:"tsInNoContext",value:function(e){var t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}},{key:"tsInType",value:function(e){var t=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=t}}},{key:"tsInDisallowConditionalTypesContext",value:function(e){var t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}},{key:"tsInAllowConditionalTypesContext",value:function(e){var t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}},{key:"tsEatThenParseType",value:function(e){if(this.match(e))return this.tsNextThenParseType()}},{key:"tsExpectThenParseType",value:function(e){var t=this;return this.tsInType(function(){return t.expect(e),t.tsParseType()})}},{key:"tsNextThenParseType",value:function(){var e=this;return this.tsInType(function(){return e.next(),e.tsParseType()})}},{key:"tsParseEnumMember",value:function(){var e=this.startNode();return e.id=this.match(134)?rv(rg(t.prototype),"parseStringLiteral",this).call(this,this.state.value):this.parseIdentifier(!0),this.eat(29)&&(e.initializer=rv(rg(t.prototype),"parseMaybeAssignAllowIn",this).call(this)),this.finishNode(e,"TSEnumMember")}},{key:"tsParseEnumDeclaration",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.const&&(e.const=!0),t.declare&&(e.declare=!0),this.expectContextual(126),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?8971:8459),this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumDeclaration")}},{key:"tsParseModuleBlock",value:function(){var e=this.startNode();return this.scope.enter(0),this.expect(5),rv(rg(t.prototype),"parseBlockOrModuleBlockBody",this).call(this,e.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}},{key:"tsParseModuleOrNamespaceDeclaration",value:function(e){return e.id=this.tsParseEntityName(),"Identifier"===e.id.type&&this.checkIdentifier(e.id,1024),this.scope.enter(256),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit(),this.finishNode(e,"TSModuleDeclaration")}},{key:"tsParseAmbientExternalModuleDeclaration",value:function(e){return this.isContextual(112)?(e.kind="global",e.id=this.parseIdentifier()):this.match(134)?(e.kind="module",e.id=rv(rg(t.prototype),"parseStringLiteral",this).call(this,this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(256),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}},{key:"tsParseImportEqualsDeclaration",value:function(e,t,r){e.isExport=r||!1,e.id=t||this.parseIdentifier(),this.checkIdentifier(e.id,4096),this.expect(29);var n=this.tsParseModuleReference();return"type"===e.importKind&&"TSExternalModuleReference"!==n.type&&this.raise(Tn.ImportAliasHasImportType,n),e.moduleReference=n,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}},{key:"tsIsExternalModuleReference",value:function(){return this.isContextual(119)&&40===this.lookaheadCharCode()}},{key:"tsParseModuleReference",value:function(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}},{key:"tsParseExternalModuleReference",value:function(){var e=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),e.expression=rv(rg(t.prototype),"parseExprAtom",this).call(this),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(e,"TSExternalModuleReference")}},{key:"tsLookAhead",value:function(e){var t=this.state.clone(),r=e();return this.state=t,r}},{key:"tsTryParseAndCatch",value:function(e){var t=this.tryParse(function(t){return e()||t()});if(!t.aborted&&t.node)return t.error&&(this.state=t.failState),t.node}},{key:"tsTryParse",value:function(e){var t=this.state.clone(),r=e();if(void 0!==r&&!1!==r)return r;this.state=t}},{key:"tsTryParseDeclare",value:function(e){var r,n=this;if(!this.isLineTerminator()){var i=this.state.type;return this.isContextual(100)&&(i=74,r="let"),this.tsInAmbientContext(function(){switch(i){case 68:return e.declare=!0,rv(rg(t.prototype),"parseFunctionStatement",n).call(n,e,!1,!1);case 80:return e.declare=!0,n.parseClass(e,!0,!1);case 126:return n.tsParseEnumDeclaration(e,{declare:!0});case 112:return n.tsParseAmbientExternalModuleDeclaration(e);case 75:case 74:if(!n.match(75)||!n.isLookaheadContextual("enum"))return e.declare=!0,n.parseVarStatement(e,r||n.state.value,!0);return n.expect(75),n.tsParseEnumDeclaration(e,{const:!0,declare:!0});case 129:var a=n.tsParseInterfaceDeclaration(e,{declare:!0});if(a)return a;default:if(S4(i))return n.tsParseDeclaration(e,n.state.value,!0,null)}})}}},{key:"tsTryParseExportDeclaration",value:function(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}},{key:"tsParseExpressionStatement",value:function(e,t,r){switch(t.name){case"declare":var n=this.tsTryParseDeclare(e);return n&&(n.declare=!0),n;case"global":if(this.match(5))return this.scope.enter(256),this.prodParam.enter(0),e.kind="global",e.id=t,e.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(e,"TSModuleDeclaration");break;default:return this.tsParseDeclaration(e,t.name,!1,r)}}},{key:"tsParseDeclaration",value:function(e,t,r,n){switch(t){case"abstract":if(this.tsCheckLineTerminator(r)&&(this.match(80)||S4(this.state.type)))return this.tsParseAbstractDeclaration(e,n);break;case"module":if(this.tsCheckLineTerminator(r)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(e);if(S4(this.state.type))return e.kind="module",this.tsParseModuleOrNamespaceDeclaration(e)}break;case"namespace":if(this.tsCheckLineTerminator(r)&&S4(this.state.type))return e.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminator(r)&&S4(this.state.type))return this.tsParseTypeAliasDeclaration(e)}}},{key:"tsCheckLineTerminator",value:function(e){return e?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()}},{key:"tsTryParseGenericAsyncArrowFunction",value:function(e){var r=this;if(this.match(47)){var n=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;var i=this.tsTryParseAndCatch(function(){var n=r.startNodeAt(e);return n.typeParameters=r.tsParseTypeParameters(r.tsParseConstModifier),rv(rg(t.prototype),"parseFunctionParams",r).call(r,n),n.returnType=r.tsTryParseTypeOrTypePredicateAnnotation(),r.expect(19),n});if(this.state.maybeInArrowParameters=n,i)return rv(rg(t.prototype),"parseArrowExpression",this).call(this,i,null,!0)}}},{key:"tsParseTypeArgumentsInExpression",value:function(){if(47===this.reScan_lt())return this.tsParseTypeArguments()}},{key:"tsParseTypeArguments",value:function(){var e=this,t=this.startNode();return t.params=this.tsInType(function(){return e.tsInNoContext(function(){return e.expect(47),e.tsParseDelimitedList("TypeParametersOrArguments",e.tsParseType.bind(e))})}),0===t.params.length?this.raise(Tn.EmptyTypeArguments,t):this.state.inType||this.curContext()!==Sq.brace||this.reScan_lt_gt(),this.expect(48),this.finishNode(t,"TSTypeParameterInstantiation")}},{key:"tsIsDeclarationStart",value:function(){var e;return(e=this.state.type)>=124&&e<=130}},{key:"isExportDefaultSpecifier",value:function(){return!this.tsIsDeclarationStart()&&rv(rg(t.prototype),"isExportDefaultSpecifier",this).call(this)}},{key:"parseAssignableListItem",value:function(e,t){var r=this.state.startLoc,n={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},n);var i=n.accessibility,a=n.override,s=n.readonly;!(4&e)&&(i||s||a)&&this.raise(Tn.UnexpectedParameterModifier,r);var o=this.parseMaybeDefault();2&e&&this.parseFunctionParamType(o);var u=this.parseMaybeDefault(o.loc.start,o);if(i||s||a){var l=this.startNodeAt(r);return t.length&&(l.decorators=t),i&&(l.accessibility=i),s&&(l.readonly=s),a&&(l.override=a),"Identifier"!==u.type&&"AssignmentPattern"!==u.type&&this.raise(Tn.UnsupportedParameterPropertyKind,l),l.parameter=u,this.finishNode(l,"TSParameterProperty")}return t.length&&(o.decorators=t),u}},{key:"isSimpleParameter",value:function(e){return"TSParameterProperty"===e.type&&rv(rg(t.prototype),"isSimpleParameter",this).call(this,e.parameter)||rv(rg(t.prototype),"isSimpleParameter",this).call(this,e)}},{key:"tsDisallowOptionalPattern",value:function(e){var t=!0,r=!1,n=void 0;try{for(var i,a=e.params[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var s=i.value;"Identifier"!==s.type&&s.optional&&!this.state.isAmbientContext&&this.raise(Tn.PatternIsOptional,s)}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}}},{key:"setArrowFunctionParameters",value:function(e,r,n){rv(rg(t.prototype),"setArrowFunctionParameters",this).call(this,e,r,n),this.tsDisallowOptionalPattern(e)}},{key:"parseFunctionBodyAndFinish",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));var i="FunctionDeclaration"===r?"TSDeclareFunction":"ClassMethod"===r||"ClassPrivateMethod"===r?"TSDeclareMethod":void 0;return i&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,i):"TSDeclareFunction"===i&&this.state.isAmbientContext&&(this.raise(Tn.DeclareFunctionHasImplementation,e),e.declare)?rv(rg(t.prototype),"parseFunctionBodyAndFinish",this).call(this,e,i,n):(this.tsDisallowOptionalPattern(e),rv(rg(t.prototype),"parseFunctionBodyAndFinish",this).call(this,e,r,n))}},{key:"registerFunctionStatementId",value:function(e){!e.body&&e.id?this.checkIdentifier(e.id,1024):rv(rg(t.prototype),"registerFunctionStatementId",this).call(this,e)}},{key:"tsCheckForInvalidTypeCasts",value:function(e){var t=this;e.forEach(function(e){(null==e?void 0:e.type)==="TSTypeCastExpression"&&t.raise(Tn.UnexpectedTypeAnnotation,e.typeAnnotation)})}},{key:"toReferencedList",value:function(e,t){return this.tsCheckForInvalidTypeCasts(e),e}},{key:"parseArrayLike",value:function(e,r,n,i){var a=rv(rg(t.prototype),"parseArrayLike",this).call(this,e,r,n,i);return"ArrayExpression"===a.type&&this.tsCheckForInvalidTypeCasts(a.elements),a}},{key:"parseSubscript",value:function(e,r,n,i){var a=this;if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();var s=this.startNodeAt(r);return s.expression=e,this.finishNode(s,"TSNonNullExpression")}var o=!1;if(this.match(18)&&60===this.lookaheadCharCode()){if(n)return i.stop=!0,e;i.optionalChainMember=o=!0,this.next()}if(this.match(47)||this.match(51)){var u,l=this.tsTryParseAndCatch(function(){if(!n&&a.atPossibleAsyncArrow(e)){var s=a.tsTryParseGenericAsyncArrowFunction(r);if(s)return s}var l=a.tsParseTypeArgumentsInExpression();if(l){if(o&&!a.match(10)){u=a.state.curPosition();return}if(S7(a.state.type)){var c=rv(rg(t.prototype),"parseTaggedTemplateExpression",a).call(a,e,r,i);return c.typeParameters=l,c}if(!n&&a.eat(10)){var p=a.startNodeAt(r);return p.callee=e,p.arguments=a.parseCallExpressionArguments(11),a.tsCheckForInvalidTypeCasts(p.arguments),p.typeParameters=l,i.optionalChainMember&&(p.optional=o),a.finishCallExpression(p,i.optionalChainMember)}var d=a.state.type;if(48===d||52===d||10!==d&&SZ[d]&&!a.hasPrecedingLineBreak())return;var f=a.startNodeAt(r);return f.expression=e,f.typeParameters=l,a.finishNode(f,"TSInstantiationExpression")}});if(u&&this.unexpected(u,10),l)return"TSInstantiationExpression"===l.type&&(this.match(16)||this.match(18)&&40!==this.lookaheadCharCode())&&this.raise(Tn.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),l}return rv(rg(t.prototype),"parseSubscript",this).call(this,e,r,n,i)}},{key:"parseNewCallee",value:function(e){rv(rg(t.prototype),"parseNewCallee",this).call(this,e);var r,n=e.callee;"TSInstantiationExpression"!==n.type||(null===(r=n.extra)||void 0===r?void 0:r.parenthesized)||(e.typeParameters=n.typeParameters,e.callee=n.expression)}},{key:"parseExprOp",value:function(e,r,n){var i,a=this;if(SY[58]>n&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(i=this.isContextual(120)))){var s=this.startNodeAt(r);return s.expression=e,s.typeAnnotation=this.tsInType(function(){return(a.next(),a.match(75))?(i&&a.raise(SR.UnexpectedKeyword,a.state.startLoc,{keyword:"const"}),a.tsParseTypeReference()):a.tsParseType()}),this.finishNode(s,i?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(s,r,n)}return rv(rg(t.prototype),"parseExprOp",this).call(this,e,r,n)}},{key:"checkReservedWord",value:function(e,r,n,i){this.state.isAmbientContext||rv(rg(t.prototype),"checkReservedWord",this).call(this,e,r,n,i)}},{key:"checkImportReflection",value:function(e){rv(rg(t.prototype),"checkImportReflection",this).call(this,e),e.module&&"value"!==e.importKind&&this.raise(Tn.ImportReflectionHasImportType,e.specifiers[0].loc.start)}},{key:"checkDuplicateExports",value:function(){}},{key:"isPotentialImportPhase",value:function(e){if(rv(rg(t.prototype),"isPotentialImportPhase",this).call(this,e))return!0;if(this.isContextual(130)){var r=this.lookaheadCharCode();return e?123===r||42===r:61!==r}return!e&&this.isContextual(87)}},{key:"applyImportPhase",value:function(e,r,n,i){rv(rg(t.prototype),"applyImportPhase",this).call(this,e,r,n,i),r?e.exportKind="type"===n?"type":"value":e.importKind="type"===n||"typeof"===n?n:"value"}},{key:"parseImport",value:function(e){if(this.match(134))return e.importKind="value",rv(rg(t.prototype),"parseImport",this).call(this,e);if(S4(this.state.type)&&61===this.lookaheadCharCode())return e.importKind="value",this.tsParseImportEqualsDeclaration(e);if(this.isContextual(130)){var r,n=this.parseMaybeImportPhase(e,!1);if(61===this.lookaheadCharCode())return this.tsParseImportEqualsDeclaration(e,n);r=rv(rg(t.prototype),"parseImportSpecifiersAndAfter",this).call(this,e,n)}else r=rv(rg(t.prototype),"parseImport",this).call(this,e);return"type"===r.importKind&&r.specifiers.length>1&&"ImportDefaultSpecifier"===r.specifiers[0].type&&this.raise(Tn.TypeImportCannotSpecifyDefaultAndNamed,r),r}},{key:"parseExport",value:function(e,r){if(this.match(83)){this.next();var n=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?n=this.parseMaybeImportPhase(e,!1):e.importKind="value",this.tsParseImportEqualsDeclaration(e,n,!0)}return this.eat(29)?(e.expression=rv(rg(t.prototype),"parseExpression",this).call(this),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(e,"TSExportAssignment")):this.eatContextual(93)?(this.expectContextual(128),e.id=this.parseIdentifier(),this.semicolon(),this.finishNode(e,"TSNamespaceExportDeclaration")):rv(rg(t.prototype),"parseExport",this).call(this,e,r)}},{key:"isAbstractClass",value:function(){return this.isContextual(124)&&80===this.lookahead().type}},{key:"parseExportDefaultExpression",value:function(){if(this.isAbstractClass()){var e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(129)){var r=this.tsParseInterfaceDeclaration(this.startNode());if(r)return r}return rv(rg(t.prototype),"parseExportDefaultExpression",this).call(this)}},{key:"parseVarStatement",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.state.isAmbientContext,a=rv(rg(t.prototype),"parseVarStatement",this).call(this,e,r,n||i);if(!i)return a;var s=!0,o=!1,u=void 0;try{for(var l,c=a.declarations[Symbol.iterator]();!(s=(l=c.next()).done);s=!0){var p=l.value,d=p.id,f=p.init;f&&("const"!==r||d.typeAnnotation?this.raise(Tn.InitializerNotAllowedInAmbientContext,f):!function(e,t){var r,n=e.type;if(null===(r=e.extra)||void 0===r?void 0:r.parenthesized)return!1;if(t){if("Literal"===n){var i=e.value;if("string"==typeof i||"boolean"==typeof i)return!0}}else if("StringLiteral"===n||"BooleanLiteral"===n)return!0;return!!(Ta(e,t)||function(e,t){if("UnaryExpression"===e.type){var r=e.operator,n=e.argument;if("-"===r&&Ta(n,t))return!0}return!1}(e,t)||"TemplateLiteral"===n&&0===e.expressions.length||function(e){if("MemberExpression"!==e.type)return!1;var t=e.computed,r=e.property;return(!t||"StringLiteral"===r.type||"TemplateLiteral"===r.type&&!(r.expressions.length>0))&&function e(t){return"Identifier"===t.type||"MemberExpression"===t.type&&!t.computed&&e(t.object)}(e.object)}(e))}(f,this.hasPlugin("estree"))&&this.raise(Tn.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,f))}}catch(e){o=!0,u=e}finally{try{s||null==c.return||c.return()}finally{if(o)throw u}}return a}},{key:"parseStatementContent",value:function(e,r){if(this.match(75)&&this.isLookaheadContextual("enum")){var n=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(n,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){var i=this.tsParseInterfaceDeclaration(this.startNode());if(i)return i}return rv(rg(t.prototype),"parseStatementContent",this).call(this,e,r)}},{key:"parseAccessModifier",value:function(){return this.tsParseModifier(["public","protected","private"])}},{key:"tsHasSomeModifiers",value:function(e,t){return t.some(function(t){return Ti(t)?e.accessibility===t:!!e[t]})}},{key:"tsIsStartOfStaticBlocks",value:function(){return this.isContextual(106)&&123===this.lookaheadCharCode()}},{key:"parseClassMember",value:function(e,r,n){var i=this,a=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:a,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:Tn.InvalidModifierOnTypeParameterPositions},r);var s=function(){i.tsIsStartOfStaticBlocks()?(i.next(),i.next(),i.tsHasSomeModifiers(r,a)&&i.raise(Tn.StaticBlockCannotHaveModifier,i.state.curPosition()),rv(rg(t.prototype),"parseClassStaticBlock",i).call(i,e,r)):i.parseClassMemberWithIsStatic(e,r,n,!!r.static)};r.declare?this.tsInAmbientContext(s):s()}},{key:"parseClassMemberWithIsStatic",value:function(e,r,n,i){var a=this.tsTryParseIndexSignature(r);if(a){e.body.push(a),r.abstract&&this.raise(Tn.IndexSignatureHasAbstract,r),r.accessibility&&this.raise(Tn.IndexSignatureHasAccessibility,r,{modifier:r.accessibility}),r.declare&&this.raise(Tn.IndexSignatureHasDeclare,r),r.override&&this.raise(Tn.IndexSignatureHasOverride,r);return}!this.state.inAbstractClass&&r.abstract&&this.raise(Tn.NonAbstractClassHasAbstractMethod,r),r.override&&!n.hadSuperClass&&this.raise(Tn.OverrideNotInSubClass,r),rv(rg(t.prototype),"parseClassMemberWithIsStatic",this).call(this,e,r,n,i)}},{key:"parsePostMemberNameModifiers",value:function(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(Tn.ClassMethodHasReadonly,e),e.declare&&this.match(10)&&this.raise(Tn.ClassMethodHasDeclare,e)}},{key:"parseExpressionStatement",value:function(e,r,n){return("Identifier"===r.type?this.tsParseExpressionStatement(e,r,n):void 0)||rv(rg(t.prototype),"parseExpressionStatement",this).call(this,e,r,n)}},{key:"shouldParseExportDeclaration",value:function(){return!!this.tsIsDeclarationStart()||rv(rg(t.prototype),"shouldParseExportDeclaration",this).call(this)}},{key:"parseConditional",value:function(e,r,n){var i=this;if(!this.state.maybeInArrowParameters||!this.match(17))return rv(rg(t.prototype),"parseConditional",this).call(this,e,r,n);var a=this.tryParse(function(){return rv(rg(t.prototype),"parseConditional",i).call(i,e,r)});return a.node?(a.error&&(this.state=a.failState),a.node):(a.error&&rv(rg(t.prototype),"setOptionalParametersError",this).call(this,n,a.error),e)}},{key:"parseParenItem",value:function(e,r){var n=rv(rg(t.prototype),"parseParenItem",this).call(this,e,r);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(e)),this.match(14)){var i=this.startNodeAt(r);return i.expression=e,i.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(i,"TSTypeCastExpression")}return e}},{key:"parseExportDeclaration",value:function(e){var r=this;if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(function(){return r.parseExportDeclaration(e)});var n=this.state.startLoc,i=this.eatContextual(125);if(i&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(Tn.ExpectedAmbientAfterExportDeclare,this.state.startLoc);var a=S4(this.state.type)&&this.tsTryParseExportDeclaration()||rv(rg(t.prototype),"parseExportDeclaration",this).call(this,e);return a?(("TSInterfaceDeclaration"===a.type||"TSTypeAliasDeclaration"===a.type||i)&&(e.exportKind="type"),i&&(this.resetStartLocation(a,n),a.declare=!0),a):null}},{key:"parseClassId",value:function(e,r,n,i){if(!((!r||n)&&this.isContextual(113))){rv(rg(t.prototype),"parseClassId",this).call(this,e,r,n,e.declare?1024:8331);var a=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);a&&(e.typeParameters=a)}}},{key:"parseClassPropertyAnnotation",value:function(e){!e.optional&&(this.eat(35)?e.definite=!0:this.eat(17)&&(e.optional=!0));var t=this.tsTryParseTypeAnnotation();t&&(e.typeAnnotation=t)}},{key:"parseClassProperty",value:function(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&!(e.readonly&&!e.typeAnnotation)&&this.match(29)&&this.raise(Tn.DeclareClassFieldHasInitializer,this.state.startLoc),e.abstract&&this.match(29)){var r=e.key;this.raise(Tn.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:"Identifier"!==r.type||e.computed?"[".concat(this.input.slice(this.offsetToSourcePos(r.start),this.offsetToSourcePos(r.end)),"]"):r.name})}return rv(rg(t.prototype),"parseClassProperty",this).call(this,e)}},{key:"parseClassPrivateProperty",value:function(e){return e.abstract&&this.raise(Tn.PrivateElementHasAbstract,e),e.accessibility&&this.raise(Tn.PrivateElementHasAccessibility,e,{modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),rv(rg(t.prototype),"parseClassPrivateProperty",this).call(this,e)}},{key:"parseClassAccessorProperty",value:function(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(Tn.AccessorCannotBeOptional,e),rv(rg(t.prototype),"parseClassAccessorProperty",this).call(this,e)}},{key:"pushClassMethod",value:function(e,r,n,i,a,s){var o=this.tsTryParseTypeParameters(this.tsParseConstModifier);o&&a&&this.raise(Tn.ConstructorHasTypeParameters,o);var u=r.declare,l=r.kind;void 0!==u&&u&&("get"===l||"set"===l)&&this.raise(Tn.DeclareAccessor,r,{kind:l}),o&&(r.typeParameters=o),rv(rg(t.prototype),"pushClassMethod",this).call(this,e,r,n,i,a,s)}},{key:"pushClassPrivateMethod",value:function(e,r,n,i){var a=this.tsTryParseTypeParameters(this.tsParseConstModifier);a&&(r.typeParameters=a),rv(rg(t.prototype),"pushClassPrivateMethod",this).call(this,e,r,n,i)}},{key:"declareClassPrivateMethodInScope",value:function(e,r){"TSDeclareMethod"!==e.type&&("MethodDefinition"!==e.type||Object.hasOwn(e.value,"body"))&&rv(rg(t.prototype),"declareClassPrivateMethodInScope",this).call(this,e,r)}},{key:"parseClassSuper",value:function(e){rv(rg(t.prototype),"parseClassSuper",this).call(this,e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeArguments=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(e.implements=this.tsParseHeritageClause("implements"))}},{key:"parseObjPropValue",value:function(e,r,n,i,a,s,o){var u=this.tsTryParseTypeParameters(this.tsParseConstModifier);return u&&(e.typeParameters=u),rv(rg(t.prototype),"parseObjPropValue",this).call(this,e,r,n,i,a,s,o)}},{key:"parseFunctionParams",value:function(e,r){var n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(e.typeParameters=n),rv(rg(t.prototype),"parseFunctionParams",this).call(this,e,r)}},{key:"parseVarId",value:function(e,r){rv(rg(t.prototype),"parseVarId",this).call(this,e,r),"Identifier"===e.id.type&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);var n=this.tsTryParseTypeAnnotation();n&&(e.id.typeAnnotation=n,this.resetEndLocation(e.id))}},{key:"parseAsyncArrowFromCallExpression",value:function(e,r){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),rv(rg(t.prototype),"parseAsyncArrowFromCallExpression",this).call(this,e,r)}},{key:"parseMaybeAssign",value:function(e,r){var n,i,a,s,o=this;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(n=this.state.clone(),!(i=this.tryParse(function(){return rv(rg(t.prototype),"parseMaybeAssign",o).call(o,e,r)},n)).error)return i.node;var u=this.state.context,l=u[u.length-1];(l===Sq.j_oTag||l===Sq.j_expr)&&u.pop()}if(!(null==i?void 0:i.error)&&!this.match(47))return rv(rg(t.prototype),"parseMaybeAssign",this).call(this,e,r);n&&n!==this.state||(n=this.state.clone());var c=this.tryParse(function(n){s=o.tsParseTypeParameters(o.tsParseConstModifier);var i,a,u=rv(rg(t.prototype),"parseMaybeAssign",o).call(o,e,r);if(("ArrowFunctionExpression"!==u.type||(null===(i=u.extra)||void 0===i?void 0:i.parenthesized))&&n(),(null==s?void 0:s.params.length)!==0&&o.resetStartLocationFromNode(u,s),u.typeParameters=s,o.hasPlugin("jsx")&&1===u.typeParameters.params.length&&!(null===(a=u.typeParameters.extra)||void 0===a?void 0:a.trailingComma)){var l=u.typeParameters.params[0];l.constraint||o.raise(Tn.SingleTypeParameterWithoutTrailingComma,SI(l.loc.end,1),{typeParameterName:l.name.name})}return u},n);if(!c.error&&!c.aborted)return s&&this.reportReservedArrowTypeParam(s),c.node;if(!i&&(Tr(!this.hasPlugin("jsx")),!(a=this.tryParse(function(){return rv(rg(t.prototype),"parseMaybeAssign",o).call(o,e,r)},n)).error))return a.node;if(null==i?void 0:i.node)return this.state=i.failState,i.node;if(c.node)return this.state=c.failState,s&&this.reportReservedArrowTypeParam(s),c.node;if(null==a?void 0:a.node)return this.state=a.failState,a.node;throw(null==i?void 0:i.error)||c.error||(null==a?void 0:a.error)}},{key:"reportReservedArrowTypeParam",value:function(e){var t;1===e.params.length&&!e.params[0].constraint&&!(null===(t=e.extra)||void 0===t?void 0:t.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(Tn.ReservedArrowTypeParam,e)}},{key:"parseMaybeUnary",value:function(e,r){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():rv(rg(t.prototype),"parseMaybeUnary",this).call(this,e,r)}},{key:"parseArrow",value:function(e){var r=this;if(this.match(14)){var n=this.tryParse(function(e){var t=r.tsParseTypeOrTypePredicateAnnotation(14);return(r.canInsertSemicolon()||!r.match(19))&&e(),t});if(n.aborted)return;n.thrown||(n.error&&(this.state=n.failState),e.returnType=n.node)}return rv(rg(t.prototype),"parseArrow",this).call(this,e)}},{key:"parseFunctionParamType",value:function(e){this.eat(17)&&(e.optional=!0);var t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t),this.resetEndLocation(e),e}},{key:"isAssignable",value:function(e,r){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,r);case"TSParameterProperty":return!0;default:return rv(rg(t.prototype),"isAssignable",this).call(this,e,r)}}},{key:"toAssignable",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];switch(e.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(e,r);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":r?this.expressionScope.recordArrowParameterBindingError(Tn.UnexpectedTypeCastInParameter,e):this.raise(Tn.UnexpectedTypeCastInParameter,e),this.toAssignable(e.expression,r);break;case"AssignmentExpression":r||"TSTypeCastExpression"!==e.left.type||(e.left=this.typeCastToParameter(e.left));default:rv(rg(t.prototype),"toAssignable",this).call(this,e,r)}}},{key:"toAssignableParenthesizedExpression",value:function(e,r){switch(e.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(e.expression,r);break;default:rv(rg(t.prototype),"toAssignable",this).call(this,e,r)}}},{key:"checkToRestConversion",value:function(e,r){switch(e.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(e.expression,!1);break;default:rv(rg(t.prototype),"checkToRestConversion",this).call(this,e,r)}}},{key:"isValidLVal",value:function(e,r,n){switch(e){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":case"TSInstantiationExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(64!==n||!r)&&["expression",!0];default:return rv(rg(t.prototype),"isValidLVal",this).call(this,e,r,n)}}},{key:"parseBindingAtom",value:function(){return 78===this.state.type?this.parseIdentifier(!0):rv(rg(t.prototype),"parseBindingAtom",this).call(this)}},{key:"parseMaybeDecoratorArguments",value:function(e){if(this.match(47)||this.match(51)){var r=this.tsParseTypeArgumentsInExpression();if(this.match(10)){var n=rv(rg(t.prototype),"parseMaybeDecoratorArguments",this).call(this,e);return n.typeParameters=r,n}this.unexpected(null,10)}return rv(rg(t.prototype),"parseMaybeDecoratorArguments",this).call(this,e)}},{key:"checkCommaAfterRest",value:function(e){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e?(this.next(),!1):rv(rg(t.prototype),"checkCommaAfterRest",this).call(this,e)}},{key:"isClassMethod",value:function(){return this.match(47)||rv(rg(t.prototype),"isClassMethod",this).call(this)}},{key:"isClassProperty",value:function(){return this.match(35)||this.match(14)||rv(rg(t.prototype),"isClassProperty",this).call(this)}},{key:"parseMaybeDefault",value:function(e,r){var n=rv(rg(t.prototype),"parseMaybeDefault",this).call(this,e,r);return"AssignmentPattern"===n.type&&n.typeAnnotation&&n.right.start<n.typeAnnotation.start&&this.raise(Tn.TypeAnnotationAfterAssign,n.typeAnnotation),n}},{key:"getTokenFromCode",value:function(e){if(this.state.inType){if(62===e){this.finishOp(48,1);return}if(60===e){this.finishOp(47,1);return}}rv(rg(t.prototype),"getTokenFromCode",this).call(this,e)}},{key:"reScan_lt_gt",value:function(){var e=this.state.type;47===e?(this.state.pos-=1,this.readToken_lt()):48===e&&(this.state.pos-=1,this.readToken_gt())}},{key:"reScan_lt",value:function(){var e=this.state.type;return 51===e?(this.state.pos-=2,this.finishOp(47,1),47):e}},{key:"toAssignableList",value:function(e,r,n){for(var i=0;i<e.length;i++){var a=e[i];(null==a?void 0:a.type)==="TSTypeCastExpression"&&(e[i]=this.typeCastToParameter(a))}rv(rg(t.prototype),"toAssignableList",this).call(this,e,r,n)}},{key:"typeCastToParameter",value:function(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}},{key:"shouldParseArrow",value:function(e){var r=this;return this.match(14)?e.every(function(e){return r.isAssignable(e,!0)}):rv(rg(t.prototype),"shouldParseArrow",this).call(this,e)}},{key:"shouldParseAsyncArrow",value:function(){return this.match(14)||rv(rg(t.prototype),"shouldParseAsyncArrow",this).call(this)}},{key:"canHaveLeadingDecorator",value:function(){return rv(rg(t.prototype),"canHaveLeadingDecorator",this).call(this)||this.isAbstractClass()}},{key:"jsxParseOpeningElementAfterName",value:function(e){var r=this;if(this.match(47)||this.match(51)){var n=this.tsTryParseAndCatch(function(){return r.tsParseTypeArgumentsInExpression()});n&&(e.typeParameters=n)}return rv(rg(t.prototype),"jsxParseOpeningElementAfterName",this).call(this,e)}},{key:"getGetterSetterExpectedParamCount",value:function(e){var r=rv(rg(t.prototype),"getGetterSetterExpectedParamCount",this).call(this,e),n=this.getObjectOrClassMethodParams(e)[0];return n&&this.isThisParam(n)?r+1:r}},{key:"parseCatchClauseParam",value:function(){var e=rv(rg(t.prototype),"parseCatchClauseParam",this).call(this),r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r,this.resetEndLocation(e)),e}},{key:"tsInAmbientContext",value:function(e){var t=this.state,r=t.isAmbientContext,n=t.strict;this.state.isAmbientContext=!0,this.state.strict=!1;try{return e()}finally{this.state.isAmbientContext=r,this.state.strict=n}}},{key:"parseClass",value:function(e,r,n){var i=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return rv(rg(t.prototype),"parseClass",this).call(this,e,r,n)}finally{this.state.inAbstractClass=i}}},{key:"tsParseAbstractDeclaration",value:function(e,t){if(this.match(80))return e.abstract=!0,this.maybeTakeDecorators(t,this.parseClass(e,!0,!1));if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return e.abstract=!0,this.raise(Tn.NonClassMethodPropertyHasAbstractModifer,e),this.tsParseInterfaceDeclaration(e)}else this.unexpected(null,80)}},{key:"parseMethod",value:function(e,r,n,i,a,s,o){var u=rv(rg(t.prototype),"parseMethod",this).call(this,e,r,n,i,a,s,o);if(u.abstract&&(this.hasPlugin("estree")?!!u.value.body:!!u.body)){var l=u.key;this.raise(Tn.AbstractMethodHasImplementation,u,{methodName:"Identifier"!==l.type||u.computed?"[".concat(this.input.slice(this.offsetToSourcePos(l.start),this.offsetToSourcePos(l.end)),"]"):l.name})}return u}},{key:"tsParseTypeParameterName",value:function(){return this.parseIdentifier()}},{key:"shouldParseAsAmbientContext",value:function(){return!!this.getPluginOption("typescript","dts")}},{key:"parse",value:function(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),rv(rg(t.prototype),"parse",this).call(this)}},{key:"getExpression",value:function(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),rv(rg(t.prototype),"getExpression",this).call(this)}},{key:"parseExportSpecifier",value:function(e,r,n,i){return!r&&i?(this.parseTypeOnlyImportExportSpecifier(e,!1,n),this.finishNode(e,"ExportSpecifier")):(e.exportKind="value",rv(rg(t.prototype),"parseExportSpecifier",this).call(this,e,r,n,i))}},{key:"parseImportSpecifier",value:function(e,r,n,i,a){return!r&&i?(this.parseTypeOnlyImportExportSpecifier(e,!0,n),this.finishNode(e,"ImportSpecifier")):(e.importKind="value",rv(rg(t.prototype),"parseImportSpecifier",this).call(this,e,r,n,i,n?4098:4096))}},{key:"parseTypeOnlyImportExportSpecifier",value:function(e,t,r){var n,i=t?"imported":"local",a=t?"local":"exported",s=e[i],o=!1,u=!0,l=s.loc.start;if(this.isContextual(93)){var c=this.parseIdentifier();if(this.isContextual(93)){var p=this.parseIdentifier();S5(this.state.type)?(o=!0,s=c,n=t?this.parseIdentifier():this.parseModuleExportName()):n=p,u=!1}else S5(this.state.type)?(u=!1,n=t?this.parseIdentifier():this.parseModuleExportName()):(o=!0,s=c)}else S5(this.state.type)&&(o=!0,t?(s=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(s.name,s.loc.start,!0,!0)):s=this.parseModuleExportName());o&&r&&this.raise(t?Tn.TypeModifierIsUsedInTypeImports:Tn.TypeModifierIsUsedInTypeExports,l),e[i]=s,e[a]=n,e[t?"importKind":"exportKind"]=o?"type":"value",u&&this.eatContextual(93)&&(e[a]=t?this.parseIdentifier():this.parseModuleExportName()),e[a]||(e[a]=xY(e[i])),t&&this.checkIdentifier(e[a],o?4098:4096)}}]),t}(e)},v8intrinsic:function(e){return /*#__PURE__*/function(e){function t(){return rf(this,t),rd(this,t,arguments)}return rb(t,e),rm(t,[{key:"parseV8Intrinsic",value:function(){if(this.match(54)){var e=this.state.startLoc,t=this.startNode();if(this.next(),S4(this.state.type)){var r=this.parseIdentifierName(),n=this.createIdentifier(t,r);if(n.type="V8IntrinsicIdentifier",this.match(10))return n}this.unexpected(e)}}},{key:"parseExprAtom",value:function(e){return this.parseV8Intrinsic()||rv(rg(t.prototype),"parseExprAtom",this).call(this,e)}}]),t}(e)},placeholders:function(e){return /*#__PURE__*/function(e){function t(){return rf(this,t),rd(this,t,arguments)}return rb(t,e),rm(t,[{key:"parsePlaceholder",value:function(e){if(this.match(133)){var r=this.startNode();return this.next(),this.assertNoSpace(),r.name=rv(rg(t.prototype),"parseIdentifier",this).call(this,!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(r,e)}}},{key:"finishPlaceholder",value:function(e,t){var r=e;return r.expectedNode&&r.type||(r=this.finishNode(r,"Placeholder")),r.expectedNode=t,r}},{key:"getTokenFromCode",value:function(e){37===e&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(133,2):rv(rg(t.prototype),"getTokenFromCode",this).call(this,e)}},{key:"parseExprAtom",value:function(e){return this.parsePlaceholder("Expression")||rv(rg(t.prototype),"parseExprAtom",this).call(this,e)}},{key:"parseIdentifier",value:function(e){return this.parsePlaceholder("Identifier")||rv(rg(t.prototype),"parseIdentifier",this).call(this,e)}},{key:"checkReservedWord",value:function(e,r,n,i){void 0!==e&&rv(rg(t.prototype),"checkReservedWord",this).call(this,e,r,n,i)}},{key:"parseBindingAtom",value:function(){return this.parsePlaceholder("Pattern")||rv(rg(t.prototype),"parseBindingAtom",this).call(this)}},{key:"isValidLVal",value:function(e,r,n){return"Placeholder"===e||rv(rg(t.prototype),"isValidLVal",this).call(this,e,r,n)}},{key:"toAssignable",value:function(e,r){e&&"Placeholder"===e.type&&"Expression"===e.expectedNode?e.expectedNode="Pattern":rv(rg(t.prototype),"toAssignable",this).call(this,e,r)}},{key:"chStartsBindingIdentifier",value:function(e,r){return!!rv(rg(t.prototype),"chStartsBindingIdentifier",this).call(this,e,r)||133===this.lookahead().type}},{key:"verifyBreakContinue",value:function(e,r){e.label&&"Placeholder"===e.label.type||rv(rg(t.prototype),"verifyBreakContinue",this).call(this,e,r)}},{key:"parseExpressionStatement",value:function(e,r){if("Placeholder"!==r.type||(null===(n=r.extra)||void 0===n?void 0:n.parenthesized))return rv(rg(t.prototype),"parseExpressionStatement",this).call(this,e,r);if(this.match(14)){var n;return e.label=this.finishPlaceholder(r,"Identifier"),this.next(),e.body=rv(rg(t.prototype),"parseStatementOrSloppyAnnexBFunctionDeclaration",this).call(this),this.finishNode(e,"LabeledStatement")}return this.semicolon(),e.name=r.name,this.finishPlaceholder(e,"Statement")}},{key:"parseBlock",value:function(e,r,n){return this.parsePlaceholder("BlockStatement")||rv(rg(t.prototype),"parseBlock",this).call(this,e,r,n)}},{key:"parseFunctionId",value:function(e){return this.parsePlaceholder("Identifier")||rv(rg(t.prototype),"parseFunctionId",this).call(this,e)}},{key:"parseClass",value:function(e,r,n){var i=r?"ClassDeclaration":"ClassExpression";this.next();var a=this.state.strict,s=this.parsePlaceholder("Identifier");if(s){if(this.match(81)||this.match(133)||this.match(5))e.id=s;else if(n||!r)return e.id=null,e.body=this.finishPlaceholder(s,"ClassBody"),this.finishNode(e,i);else throw this.raise(Ts.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(e,r,n);return rv(rg(t.prototype),"parseClassSuper",this).call(this,e),e.body=this.parsePlaceholder("ClassBody")||rv(rg(t.prototype),"parseClassBody",this).call(this,!!e.superClass,a),this.finishNode(e,i)}},{key:"parseExport",value:function(e,r){var n=this.parsePlaceholder("Identifier");if(!n)return rv(rg(t.prototype),"parseExport",this).call(this,e,r);if(!this.isContextual(98)&&!this.match(12))return e.specifiers=[],e.source=null,e.declaration=this.finishPlaceholder(n,"Declaration"),this.finishNode(e,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");var i=this.startNode();return i.exported=n,e.specifiers=[this.finishNode(i,"ExportDefaultSpecifier")],rv(rg(t.prototype),"parseExport",this).call(this,e,r)}},{key:"isExportDefaultSpecifier",value:function(){if(this.match(65)){var e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(S$[133],this.nextTokenStartSince(e+4)))return!0}return rv(rg(t.prototype),"isExportDefaultSpecifier",this).call(this)}},{key:"maybeParseExportDefaultSpecifier",value:function(e,r){var n;return null!==(n=e.specifiers)&&void 0!==n&&!!n.length||rv(rg(t.prototype),"maybeParseExportDefaultSpecifier",this).call(this,e,r)}},{key:"checkExport",value:function(e){var r=e.specifiers;(null==r?void 0:r.length)&&(e.specifiers=r.filter(function(e){return"Placeholder"===e.exported.type})),rv(rg(t.prototype),"checkExport",this).call(this,e),e.specifiers=r}},{key:"parseImport",value:function(e){var r=this.parsePlaceholder("Identifier");if(!r)return rv(rg(t.prototype),"parseImport",this).call(this,e);if(e.specifiers=[],!this.isContextual(98)&&!this.match(12))return e.source=this.finishPlaceholder(r,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");var n=this.startNodeAtNode(r);return n.local=r,e.specifiers.push(this.finishNode(n,"ImportDefaultSpecifier")),this.eat(12)&&!this.maybeParseStarImportSpecifier(e)&&this.parseNamedImportSpecifiers(e),this.expectContextual(98),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}},{key:"parseImportSource",value:function(){return this.parsePlaceholder("StringLiteral")||rv(rg(t.prototype),"parseImportSource",this).call(this)}},{key:"assertNoSpace",value:function(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(Ts.UnexpectedSpace,this.state.lastTokEndLoc)}}]),t}(e)}},Tc=Object.keys(Tl),Tp=/*#__PURE__*/function(e){function t(){return rf(this,t),rd(this,t,arguments)}return rb(t,e),rm(t,[{key:"checkProto",value:function(e,t,r,n){if(!("SpreadElement"===e.type||this.isObjectMethod(e))&&!e.computed&&!e.shorthand){var i=e.key;if("__proto__"===("Identifier"===i.type?i.name:i.value)){if(t){this.raise(SR.RecordNoProto,i);return}r.used&&(n?null===n.doubleProtoLoc&&(n.doubleProtoLoc=i.loc.start):this.raise(SR.DuplicateProto,i)),r.used=!0}}}},{key:"shouldExitDescending",value:function(e,t){return"ArrowFunctionExpression"===e.type&&this.offsetToSourcePos(e.start)===t}},{key:"getExpression",value:function(){this.enterInitialScopes(),this.nextToken();var e=this.parseExpression();return this.match(140)||this.unexpected(),this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,this.options.tokens&&(e.tokens=this.tokens),e}},{key:"parseExpression",value:function(e,t){var r=this;return e?this.disallowInAnd(function(){return r.parseExpressionBase(t)}):this.allowInAnd(function(){return r.parseExpressionBase(t)})}},{key:"parseExpressionBase",value:function(e){var t=this.state.startLoc,r=this.parseMaybeAssign(e);if(this.match(12)){var n=this.startNodeAt(t);for(n.expressions=[r];this.eat(12);)n.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(n.expressions),this.finishNode(n,"SequenceExpression")}return r}},{key:"parseMaybeAssignDisallowIn",value:function(e,t){var r=this;return this.disallowInAnd(function(){return r.parseMaybeAssign(e,t)})}},{key:"parseMaybeAssignAllowIn",value:function(e,t){var r=this;return this.allowInAnd(function(){return r.parseMaybeAssign(e,t)})}},{key:"setOptionalParametersError",value:function(e,t){var r;e.optionalParametersLoc=null!==(r=null==t?void 0:t.loc)&&void 0!==r?r:this.state.startLoc}},{key:"parseMaybeAssign",value:function(e,t){var r,n,i=this.state.startLoc;if(this.isContextual(108)&&this.prodParam.hasYield){var a=this.parseYield();return t&&(a=t.call(this,a,i)),a}e?n=!1:(e=new xH,n=!0);var s=this.state.type;(10===s||S4(s))&&(this.state.potentialArrowAt=this.state.start);var o=this.parseMaybeConditional(e);if(t&&(o=t.call(this,o,i)),(r=this.state.type)>=29&&r<=33){var u=this.startNodeAt(i),l=this.state.value;if(u.operator=l,this.match(29)){this.toAssignable(o,!0),u.left=o;var c=i.index;null!=e.doubleProtoLoc&&e.doubleProtoLoc.index>=c&&(e.doubleProtoLoc=null),null!=e.shorthandAssignLoc&&e.shorthandAssignLoc.index>=c&&(e.shorthandAssignLoc=null),null!=e.privateKeyLoc&&e.privateKeyLoc.index>=c&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null)}else u.left=o;return this.next(),u.right=this.parseMaybeAssign(),this.checkLVal(o,this.finishNode(u,"AssignmentExpression")),u}return n&&this.checkExpressionErrors(e,!0),o}},{key:"parseMaybeConditional",value:function(e){var t=this.state.startLoc,r=this.state.potentialArrowAt,n=this.parseExprOps(e);return this.shouldExitDescending(n,r)?n:this.parseConditional(n,t,e)}},{key:"parseConditional",value:function(e,t,r){if(this.eat(17)){var n=this.startNodeAt(t);return n.test=e,n.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),n.alternate=this.parseMaybeAssign(),this.finishNode(n,"ConditionalExpression")}return e}},{key:"parseMaybeUnaryOrPrivate",value:function(e){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(e)}},{key:"parseExprOps",value:function(e){var t=this.state.startLoc,r=this.state.potentialArrowAt,n=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(n,r)?n:this.parseExprOp(n,t,-1)}},{key:"parseExprOp",value:function(e,t,r){if(this.isPrivateName(e)){var n=this.getPrivateNameSV(e);!(r>=SY[58])&&this.prodParam.hasIn&&this.match(58)||this.raise(SR.PrivateInExpectedIn,e,{identifierName:n}),this.classScope.usePrivateName(n,e.loc.start)}var i=this.state.type;if(i>=39&&i<=59&&(this.prodParam.hasIn||!this.match(58))){var a=SY[i];if(a>r){if(39===i){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}var s=this.startNodeAt(t);s.left=e,s.operator=this.state.value;var o=41===i||42===i,u=40===i;if(u&&(a=SY[42]),this.next(),39===i&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&96===this.state.type&&this.prodParam.hasAwait)throw this.raise(SR.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);s.right=this.parseExprOpRightExpr(i,a);var l=this.finishNode(s,o||u?"LogicalExpression":"BinaryExpression"),c=this.state.type;if(u&&(41===c||42===c)||o&&40===c)throw this.raise(SR.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(l,t,r)}}return e}},{key:"parseExprOpRightExpr",value:function(e,t){var r=this,n=this.state.startLoc;if(39===e)switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(function(){return r.parseHackPipeBody()});case"smart":return this.withTopicBindingContext(function(){if(r.prodParam.hasYield&&r.isContextual(108))throw r.raise(SR.PipeBodyIsTighter,r.state.startLoc);return r.parseSmartPipelineBodyInStyle(r.parseExprOpBaseRightExpr(e,t),n)});case"fsharp":return this.withSoloAwaitPermittingContext(function(){return r.parseFSharpPipelineBody(t)})}return this.parseExprOpBaseRightExpr(e,t)}},{key:"parseExprOpBaseRightExpr",value:function(e,t){var r=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,57===e?t-1:t)}},{key:"parseHackPipeBody",value:function(){var e,t=this.state.startLoc,r=this.parseMaybeAssign();return!SL.has(r.type)||(null===(e=r.extra)||void 0===e?void 0:e.parenthesized)||this.raise(SR.PipeUnparenthesizedBody,t,{type:r.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(SR.PipeTopicUnused,t),r}},{key:"checkExponentialAfterUnary",value:function(e){this.match(57)&&this.raise(SR.UnexpectedTokenUnaryExponentiation,e.argument)}},{key:"parseMaybeUnary",value:function(e,t){var r=this.state.startLoc,n=this.isContextual(96);if(n&&this.recordAwaitIfAllowed()){this.next();var i=this.parseAwait(r);return t||this.checkExponentialAfterUnary(i),i}var a=this.match(34),s=this.startNode();if(S0[this.state.type]){s.operator=this.state.value,s.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");var o=this.match(89);if(this.next(),s.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&o){var u=s.argument;"Identifier"===u.type?this.raise(SR.StrictDelete,s):this.hasPropertyAsPrivateName(u)&&this.raise(SR.DeletePrivateField,s)}if(!a)return t||this.checkExponentialAfterUnary(s),this.finishNode(s,"UnaryExpression")}var l=this.parseUpdate(s,a,e);if(n){var c=this.state.type;if((this.hasPlugin("v8intrinsic")?SZ[c]:SZ[c]&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(SR.AwaitNotInAsyncContext,r),this.parseAwait(r)}return l}},{key:"parseUpdate",value:function(e,t,r){if(t)return this.checkLVal(e.argument,this.finishNode(e,"UpdateExpression")),e;var n=this.state.startLoc,i=this.parseExprSubscripts(r);if(this.checkExpressionErrors(r,!1))return i;for(;34===this.state.type&&!this.canInsertSemicolon();){var a=this.startNodeAt(n);a.operator=this.state.value,a.prefix=!1,a.argument=i,this.next(),this.checkLVal(i,i=this.finishNode(a,"UpdateExpression"))}return i}},{key:"parseExprSubscripts",value:function(e){var t=this.state.startLoc,r=this.state.potentialArrowAt,n=this.parseExprAtom(e);return this.shouldExitDescending(n,r)?n:this.parseSubscripts(n,t)}},{key:"parseSubscripts",value:function(e,t,r){var n={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do e=this.parseSubscript(e,t,r,n),n.maybeAsyncArrow=!1;while(!n.stop);return e}},{key:"parseSubscript",value:function(e,t,r,n){var i=this.state.type;if(!r&&15===i)return this.parseBind(e,t,r,n);if(S7(i))return this.parseTaggedTemplateExpression(e,t,n);var a=!1;if(18===i){if(r&&(this.raise(SR.OptionalChainingNoNew,this.state.startLoc),40===this.lookaheadCharCode()))return n.stop=!0,e;n.optionalChainMember=a=!0,this.next()}if(!r&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,n,a);var s=this.eat(0);return s||a||this.eat(16)?this.parseMember(e,t,n,s,a):(n.stop=!0,e)}},{key:"parseMember",value:function(e,t,r,n,i){var a=this.startNodeAt(t);return(a.object=e,a.computed=n,n?(a.property=this.parseExpression(),this.expect(3)):this.match(139)?("Super"===e.type&&this.raise(SR.SuperPrivateField,t),this.classScope.usePrivateName(this.state.value,this.state.startLoc),a.property=this.parsePrivateName()):a.property=this.parseIdentifier(!0),r.optionalChainMember)?(a.optional=i,this.finishNode(a,"OptionalMemberExpression")):this.finishNode(a,"MemberExpression")}},{key:"parseBind",value:function(e,t,r,n){var i=this.startNodeAt(t);return i.object=e,this.next(),i.callee=this.parseNoCallExpr(),n.stop=!0,this.parseSubscripts(this.finishNode(i,"BindExpression"),t,r)}},{key:"parseCoverCallAndAsyncArrowHead",value:function(e,t,r,n){var i=this.state.maybeInArrowParameters,a=null;this.state.maybeInArrowParameters=!0,this.next();var s=this.startNodeAt(t);s.callee=e;var o=r.maybeAsyncArrow,u=r.optionalChainMember;o&&(this.expressionScope.enter(new xq(2)),a=new xH),u&&(s.optional=n),n?s.arguments=this.parseCallExpressionArguments(11):s.arguments=this.parseCallExpressionArguments(11,"Super"!==e.type,s,a);var l=this.finishCallExpression(s,u);return o&&this.shouldParseAsyncArrow()&&!n?(r.stop=!0,this.checkDestructuringPrivate(a),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),l=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),l)):(o&&(this.checkExpressionErrors(a,!0),this.expressionScope.exit()),this.toReferencedArguments(l)),this.state.maybeInArrowParameters=i,l}},{key:"toReferencedArguments",value:function(e,t){this.toReferencedListDeep(e.arguments,t)}},{key:"parseTaggedTemplateExpression",value:function(e,t,r){var n=this.startNodeAt(t);return n.tag=e,n.quasi=this.parseTemplate(!0),r.optionalChainMember&&this.raise(SR.OptionalChainingNoTemplate,t),this.finishNode(n,"TaggedTemplateExpression")}},{key:"atPossibleAsyncArrow",value:function(e){return"Identifier"===e.type&&"async"===e.name&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&this.offsetToSourcePos(e.start)===this.state.potentialArrowAt}},{key:"finishCallExpression",value:function(e,t){if("Import"===e.callee.type){if(0===e.arguments.length||e.arguments.length>2)this.raise(SR.ImportCallArity,e);else{var r=!0,n=!1,i=void 0;try{for(var a,s=e.arguments[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var o=a.value;"SpreadElement"===o.type&&this.raise(SR.ImportCallSpreadArgument,o)}}catch(e){n=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw i}}}}return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}},{key:"parseCallExpressionArguments",value:function(e,t,r,n){var i=[],a=!0,s=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(e);){if(a)a=!1;else if(this.expect(12),this.match(e)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}i.push(this.parseExprListItem(!1,n,t))}return this.state.inFSharpPipelineDirectBody=s,i}},{key:"shouldParseAsyncArrow",value:function(){return this.match(19)&&!this.canInsertSemicolon()}},{key:"parseAsyncArrowFromCallExpression",value:function(e,t){var r;return this.resetPreviousNodeTrailingComments(t),this.expect(19),this.parseArrowExpression(e,t.arguments,!0,null===(r=t.extra)||void 0===r?void 0:r.trailingCommaLoc),t.innerComments&&xx(e,t.innerComments),t.callee.trailingComments&&xx(e,t.callee.trailingComments),e}},{key:"parseNoCallExpr",value:function(){var e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}},{key:"parseExprAtom",value:function(e){var t,r=null,n=this.state.type;switch(n){case 79:return this.parseSuper();case 83:if(t=this.startNode(),this.next(),this.match(16))return this.parseImportMetaProperty(t);if(!this.match(10))return this.raise(SR.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(t,"Import");if(this.options.createImportExpressions)return this.parseImportCall(t);return this.finishNode(t,"Import");case 78:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:var i=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(i);case 2:case 1:return this.parseArrayLike(2===this.state.type?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,e);case 6:case 7:return this.parseObjectLike(6===this.state.type?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,e);case 68:return this.parseFunctionOrFunctionSent();case 26:r=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(r,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:t=this.startNode(),this.next(),t.object=null;var a=t.callee=this.parseNoCallExpr();if("MemberExpression"===a.type)return this.finishNode(t,"BindExpression");throw this.raise(SR.UnsupportedBind,a);case 139:return this.raise(SR.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:var s=this.getPluginOption("pipelineOperator","proposal");if(s)return this.parseTopicReference(s);this.unexpected();break;case 47:var o=this.input.codePointAt(this.nextTokenStart());xo(o)||62===o?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break;default:if(S4(n)){if(this.isContextual(127)&&123===this.lookaheadInLineCharCode())return this.parseModuleExpression();var u=this.state.potentialArrowAt===this.state.start,l=this.state.containsEsc,c=this.parseIdentifier();if(!l&&"async"===c.name&&!this.canInsertSemicolon()){var p=this.state.type;if(68===p)return this.resetPreviousNodeTrailingComments(c),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(c));if(S4(p)){if(61===this.lookaheadCharCode())return this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(c));return c}if(90===p)return this.resetPreviousNodeTrailingComments(c),this.parseDo(this.startNodeAtNode(c),!0)}if(u&&this.match(19)&&!this.canInsertSemicolon())return this.next(),this.parseArrowExpression(this.startNodeAtNode(c),[c],!1);return c}this.unexpected()}}},{key:"parseTopicReferenceThenEqualsSign",value:function(e,t){var r=this.getPluginOption("pipelineOperator","proposal");if(r)return this.state.type=e,this.state.value=t,this.state.pos--,this.state.end--,this.state.endLoc=SI(this.state.endLoc,-1),this.parseTopicReference(r);this.unexpected()}},{key:"parseTopicReference",value:function(e){var t=this.startNode(),r=this.state.startLoc,n=this.state.type;return this.next(),this.finishTopicReference(t,r,e,n)}},{key:"finishTopicReference",value:function(e,t,r,n){if(this.testTopicReferenceConfiguration(r,t,n))return this.topicReferenceIsAllowedInCurrentContext()||this.raise("smart"===r?SR.PrimaryTopicNotAllowed:SR.PipeTopicUnbound,t),this.registerTopicReference(),this.finishNode(e,"smart"===r?"PipelinePrimaryTopicReference":"TopicReference");throw this.raise(SR.PipeTopicUnconfiguredToken,t,{token:S$[n]})}},{key:"testTopicReferenceConfiguration",value:function(e,t,r){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:S$[r]}]);case"smart":return 27===r;default:throw this.raise(SR.PipeTopicRequiresHackPipes,t)}}},{key:"parseAsyncArrowUnaryFunction",value:function(e){this.prodParam.enter(xG(!0,this.prodParam.hasYield));var t=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(SR.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(e,t,!0)}},{key:"parseDo",value:function(e,t){this.expectPlugin("doExpressions"),t&&this.expectPlugin("asyncDoExpressions"),e.async=t,this.next();var r=this.state.labels;return this.state.labels=[],t?(this.prodParam.enter(2),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=r,this.finishNode(e,"DoExpression")}},{key:"parseSuper",value:function(){var e=this.startNode();return this.next(),!this.match(10)||this.scope.allowDirectSuper||this.options.allowSuperOutsideMethod?this.scope.allowSuper||this.options.allowSuperOutsideMethod||this.raise(SR.UnexpectedSuper,e):this.raise(SR.SuperNotAllowed,e),this.match(10)||this.match(0)||this.match(16)||this.raise(SR.UnsupportedSuper,e),this.finishNode(e,"Super")}},{key:"parsePrivateName",value:function(){var e=this.startNode(),t=this.startNodeAt(SI(this.state.startLoc,1)),r=this.state.value;return this.next(),e.id=this.createIdentifier(t,r),this.finishNode(e,"PrivateName")}},{key:"parseFunctionOrFunctionSent",value:function(){var e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){var t=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(e,t,"sent")}return this.parseFunction(e)}},{key:"parseMetaProperty",value:function(e,t,r){e.meta=t;var n=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==r||n)&&this.raise(SR.UnsupportedMetaProperty,e.property,{target:t.name,onlyValidPropertyName:r}),this.finishNode(e,"MetaProperty")}},{key:"parseImportMetaProperty",value:function(e){var t=this.createIdentifier(this.startNodeAtNode(e),"import");if(this.next(),this.isContextual(101))this.inModule||this.raise(SR.ImportMetaOutsideModule,t),this.sawUnambiguousESM=!0;else if(this.isContextual(105)||this.isContextual(97)){var r=this.isContextual(105);if(this.expectPlugin(r?"sourcePhaseImports":"deferredImportEvaluation"),!this.options.createImportExpressions)throw this.raise(SR.DynamicImportPhaseRequiresImportExpressions,this.state.startLoc,{phase:this.state.value});return this.next(),e.phase=r?"source":"defer",this.parseImportCall(e)}return this.parseMetaProperty(e,t,"meta")}},{key:"parseLiteralAtNode",value:function(e,t,r){return this.addExtra(r,"rawValue",e),this.addExtra(r,"raw",this.input.slice(this.offsetToSourcePos(r.start),this.state.end)),r.value=e,this.next(),this.finishNode(r,t)}},{key:"parseLiteral",value:function(e,t){var r=this.startNode();return this.parseLiteralAtNode(e,t,r)}},{key:"parseStringLiteral",value:function(e){return this.parseLiteral(e,"StringLiteral")}},{key:"parseNumericLiteral",value:function(e){return this.parseLiteral(e,"NumericLiteral")}},{key:"parseBigIntLiteral",value:function(e){return this.parseLiteral(e,"BigIntLiteral")}},{key:"parseDecimalLiteral",value:function(e){return this.parseLiteral(e,"DecimalLiteral")}},{key:"parseRegExpLiteral",value:function(e){var t=this.startNode();return this.addExtra(t,"raw",this.input.slice(this.offsetToSourcePos(t.start),this.state.end)),t.pattern=e.pattern,t.flags=e.flags,this.next(),this.finishNode(t,"RegExpLiteral")}},{key:"parseBooleanLiteral",value:function(e){var t=this.startNode();return t.value=e,this.next(),this.finishNode(t,"BooleanLiteral")}},{key:"parseNullLiteral",value:function(){var e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}},{key:"parseParenAndDistinguishExpression",value:function(e){var t,r,n,i=this.state.startLoc;this.next(),this.expressionScope.enter(new xq(1));var a=this.state.maybeInArrowParameters,s=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;for(var o=this.state.startLoc,u=[],l=new xH,c=!0;!this.match(11);){if(c)c=!1;else if(this.expect(12,null===l.optionalParametersLoc?null:l.optionalParametersLoc),this.match(11)){n=this.state.startLoc;break}if(this.match(21)){var p=this.state.startLoc;if(r=this.state.startLoc,u.push(this.parseParenItem(this.parseRestBinding(),p)),!this.checkCommaAfterRest(41))break}else u.push(this.parseMaybeAssignAllowIn(l,this.parseParenItem))}var d=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=a,this.state.inFSharpPipelineDirectBody=s;var f=this.startNodeAt(i);return e&&this.shouldParseArrow(u)&&(f=this.parseArrow(f))?(this.checkDestructuringPrivate(l),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(f,u,!1),f):(this.expressionScope.exit(),u.length||this.unexpected(this.state.lastTokStartLoc),n&&this.unexpected(n),r&&this.unexpected(r),this.checkExpressionErrors(l,!0),this.toReferencedListDeep(u,!0),u.length>1?((t=this.startNodeAt(o)).expressions=u,this.finishNode(t,"SequenceExpression"),this.resetEndLocation(t,d)):t=u[0],this.wrapParenthesis(i,t))}},{key:"wrapParenthesis",value:function(e,t){if(!this.options.createParenthesizedExpressions)return this.addExtra(t,"parenthesized",!0),this.addExtra(t,"parenStart",e.index),this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index),t;var r=this.startNodeAt(e);return r.expression=t,this.finishNode(r,"ParenthesizedExpression")}},{key:"shouldParseArrow",value:function(e){return!this.canInsertSemicolon()}},{key:"parseArrow",value:function(e){if(this.eat(19))return e}},{key:"parseParenItem",value:function(e,t){return e}},{key:"parseNewOrNewTarget",value:function(){var e=this.startNode();if(this.next(),this.match(16)){var t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();var r=this.parseMetaProperty(e,t,"target");return this.scope.inNonArrowFunction||this.scope.inClass||this.options.allowNewTargetOutsideFunction||this.raise(SR.UnexpectedNewTarget,r),r}return this.parseNew(e)}},{key:"parseNew",value:function(e){if(this.parseNewCallee(e),this.eat(10)){var t=this.parseExprList(11);this.toReferencedList(t),e.arguments=t}else e.arguments=[];return this.finishNode(e,"NewExpression")}},{key:"parseNewCallee",value:function(e){var t=this.match(83),r=this.parseNoCallExpr();e.callee=r,t&&("Import"===r.type||"ImportExpression"===r.type)&&this.raise(SR.ImportCallNotNewExpression,r)}},{key:"parseTemplateElement",value:function(e){var t=this.state,r=t.start,n=t.startLoc,i=t.end,a=t.value,s=this.startNodeAt(SI(n,1));null!==a||e||this.raise(SR.InvalidEscapeSequenceTemplate,SI(this.state.firstInvalidTemplateEscapePos,1));var o=this.match(24),u=o?-1:-2,l=i+u;s.value={raw:this.input.slice(r+1,l).replace(/\r\n?/g,"\n"),cooked:null===a?null:a.slice(1,u)},s.tail=o,this.next();var c=this.finishNode(s,"TemplateElement");return this.resetEndLocation(c,SI(this.state.lastTokEndLoc,u)),c}},{key:"parseTemplate",value:function(e){for(var t=this.startNode(),r=this.parseTemplateElement(e),n=[r],i=[];!r.tail;)i.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),n.push(r=this.parseTemplateElement(e));return t.expressions=i,t.quasis=n,this.finishNode(t,"TemplateLiteral")}},{key:"parseTemplateSubstitution",value:function(){return this.parseExpression()}},{key:"parseObjectLike",value:function(e,t,r,n){r&&this.expectPlugin("recordAndTuple");var i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;var a=/* @__PURE__ */Object.create(null),s=!0,o=this.startNode();for(o.properties=[],this.next();!this.match(e);){if(s)s=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(o);break}var u=void 0;t?u=this.parseBindingProperty():(u=this.parsePropertyDefinition(n),this.checkProto(u,r,a,n)),r&&!this.isObjectProperty(u)&&"SpreadElement"!==u.type&&this.raise(SR.InvalidRecordProperty,u),o.properties.push(u)}this.next(),this.state.inFSharpPipelineDirectBody=i;var l="ObjectExpression";return t?l="ObjectPattern":r&&(l="RecordExpression"),this.finishNode(o,l)}},{key:"addTrailingCommaExtraToNode",value:function(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}},{key:"maybeAsyncOrAccessorProp",value:function(e){return!e.computed&&"Identifier"===e.key.type&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}},{key:"parsePropertyDefinition",value:function(e){var t,r=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(SR.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)r.push(this.parseDecorator());var n=this.startNode(),i=!1,a=!1;if(this.match(21))return r.length&&this.unexpected(),this.parseSpread();r.length&&(n.decorators=r,r=[]),n.method=!1,e&&(t=this.state.startLoc);var s=this.eat(55);this.parsePropertyNamePrefixOperator(n);var o=this.state.containsEsc;if(this.parsePropertyName(n,e),!s&&!o&&this.maybeAsyncOrAccessorProp(n)){var u=n.key,l=u.name;"async"!==l||this.hasPrecedingLineBreak()||(i=!0,this.resetPreviousNodeTrailingComments(u),s=this.eat(55),this.parsePropertyName(n)),("get"===l||"set"===l)&&(a=!0,this.resetPreviousNodeTrailingComments(u),n.kind=l,this.match(55)&&(s=!0,this.raise(SR.AccessorIsGenerator,this.state.curPosition(),{kind:l}),this.next()),this.parsePropertyName(n))}return this.parseObjPropValue(n,t,s,i,!1,a,e)}},{key:"getGetterSetterExpectedParamCount",value:function(e){return"get"===e.kind?0:1}},{key:"getObjectOrClassMethodParams",value:function(e){return e.params}},{key:"checkGetterSetterParams",value:function(e){var t,r=this.getGetterSetterExpectedParamCount(e),n=this.getObjectOrClassMethodParams(e);n.length!==r&&this.raise("get"===e.kind?SR.BadGetterArity:SR.BadSetterArity,e),"set"===e.kind&&(null===(t=n[n.length-1])||void 0===t?void 0:t.type)==="RestElement"&&this.raise(SR.BadSetterRestParameter,e)}},{key:"parseObjectMethod",value:function(e,t,r,n,i){if(i){var a=this.parseMethod(e,t,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(a),a}if(r||t||this.match(10))return n&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,r,!1,!1,"ObjectMethod")}},{key:"parseObjectProperty",value:function(e,t,r,n){if(e.shorthand=!1,this.eat(14))return e.value=r?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(n),this.finishNode(e,"ObjectProperty");if(!e.computed&&"Identifier"===e.key.type){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),r)e.value=this.parseMaybeDefault(t,xY(e.key));else if(this.match(29)){var i=this.state.startLoc;null!=n?null===n.shorthandAssignLoc&&(n.shorthandAssignLoc=i):this.raise(SR.InvalidCoverInitializedName,i),e.value=this.parseMaybeDefault(t,xY(e.key))}else e.value=xY(e.key);return e.shorthand=!0,this.finishNode(e,"ObjectProperty")}}},{key:"parseObjPropValue",value:function(e,t,r,n,i,a,s){var o=this.parseObjectMethod(e,r,n,i,a)||this.parseObjectProperty(e,t,i,s);return o||this.unexpected(),o}},{key:"parsePropertyName",value:function(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{var r,n=this.state,i=n.type,a=n.value;if(S5(i))r=this.parseIdentifier(!0);else switch(i){case 135:r=this.parseNumericLiteral(a);break;case 134:r=this.parseStringLiteral(a);break;case 136:r=this.parseBigIntLiteral(a);break;case 139:var s=this.state.startLoc;null!=t?null===t.privateKeyLoc&&(t.privateKeyLoc=s):this.raise(SR.UnexpectedPrivateField,s),r=this.parsePrivateName();break;default:this.unexpected()}e.key=r,139!==i&&(e.computed=!1)}}},{key:"initFunction",value:function(e,t){e.id=null,e.generator=!1,e.async=t}},{key:"parseMethod",value:function(e,t,r,n,i,a){var s=arguments.length>6&&void 0!==arguments[6]&&arguments[6];this.initFunction(e,r),e.generator=t,this.scope.enter(18|(s?64:0)|(i?32:0)),this.prodParam.enter(xG(r,e.generator)),this.parseFunctionParams(e,n);var o=this.parseFunctionBodyAndFinish(e,a,!0);return this.prodParam.exit(),this.scope.exit(),o}},{key:"parseArrayLike",value:function(e,t,r,n){r&&this.expectPlugin("recordAndTuple");var i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;var a=this.startNode();return this.next(),a.elements=this.parseExprList(e,!r,n,a),this.state.inFSharpPipelineDirectBody=i,this.finishNode(a,r?"TupleExpression":"ArrayExpression")}},{key:"parseArrowExpression",value:function(e,t,r,n){this.scope.enter(6);var i=xG(r,!1);!this.match(5)&&this.prodParam.hasIn&&(i|=8),this.prodParam.enter(i),this.initFunction(e,r);var a=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,n)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=a,this.finishNode(e,"ArrowFunctionExpression")}},{key:"setArrowFunctionParameters",value:function(e,t,r){this.toAssignableList(t,r,!1),e.params=t}},{key:"parseFunctionBodyAndFinish",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.parseFunctionBody(e,!1,r),this.finishNode(e,t)}},{key:"parseFunctionBody",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t&&!this.match(5);if(this.expressionScope.enter(new xW),i)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{var a=this.state.strict,s=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),e.body=this.parseBlock(!0,!1,function(i){var s=!r.isSimpleParamList(e.params);i&&s&&r.raise(SR.IllegalLanguageModeDirective,("method"===e.kind||"constructor"===e.kind)&&e.key?e.key.loc.end:e);var o=!a&&r.state.strict;r.checkParams(e,!r.state.strict&&!t&&!n&&!s,t,o),r.state.strict&&e.id&&r.checkIdentifier(e.id,65,o)}),this.prodParam.exit(),this.state.labels=s}this.expressionScope.exit()}},{key:"isSimpleParameter",value:function(e){return"Identifier"===e.type}},{key:"isSimpleParamList",value:function(e){for(var t=0,r=e.length;t<r;t++)if(!this.isSimpleParameter(e[t]))return!1;return!0}},{key:"checkParams",value:function(e,t,r){var n=!(arguments.length>3)||void 0===arguments[3]||arguments[3],i=!t&&/* @__PURE__ */new Set,a={type:"FormalParameters"},s=!0,o=!1,u=void 0;try{for(var l,c=e.params[Symbol.iterator]();!(s=(l=c.next()).done);s=!0){var p=l.value;this.checkLVal(p,a,5,i,n)}}catch(e){o=!0,u=e}finally{try{s||null==c.return||c.return()}finally{if(o)throw u}}}},{key:"parseExprList",value:function(e,t,r,n){for(var i=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(12),this.match(e)){n&&this.addTrailingCommaExtraToNode(n),this.next();break}i.push(this.parseExprListItem(t,r))}return i}},{key:"parseExprListItem",value:function(e,t,r){var n;if(this.match(12))e||this.raise(SR.UnexpectedToken,this.state.curPosition(),{unexpected:","}),n=null;else if(this.match(21)){var i=this.state.startLoc;n=this.parseParenItem(this.parseSpread(t),i)}else if(this.match(17)){this.expectPlugin("partialApplication"),r||this.raise(SR.UnexpectedArgumentPlaceholder,this.state.startLoc);var a=this.startNode();this.next(),n=this.finishNode(a,"ArgumentPlaceholder")}else n=this.parseMaybeAssignAllowIn(t,this.parseParenItem);return n}},{key:"parseIdentifier",value:function(e){var t=this.startNode(),r=this.parseIdentifierName(e);return this.createIdentifier(t,r)}},{key:"createIdentifier",value:function(e,t){return e.name=t,e.loc.identifierName=t,this.finishNode(e,"Identifier")}},{key:"parseIdentifierName",value:function(e){var t,r=this.state,n=r.startLoc,i=r.type;S5(i)?t=this.state.value:this.unexpected();var a=i<=92;return e?a&&this.replaceToken(132):this.checkReservedWord(t,n,a,!1),this.next(),t}},{key:"checkReservedWord",value:function(e,t,r,n){if(!(e.length>10)&&xm.has(e)){if(r&&xl.has(e)){this.raise(SR.UnexpectedKeyword,t,{keyword:e});return}if((this.state.strict?n?xh:xf:xd)(e,this.inModule)){this.raise(SR.UnexpectedReservedWord,t,{reservedWord:e});return}if("yield"===e){if(this.prodParam.hasYield){this.raise(SR.YieldBindingIdentifier,t);return}}else if("await"===e){if(this.prodParam.hasAwait){this.raise(SR.AwaitBindingIdentifier,t);return}if(this.scope.inStaticBlock){this.raise(SR.AwaitBindingIdentifierInStaticBlock,t);return}this.expressionScope.recordAsyncArrowParametersError(t)}else if("arguments"===e&&this.scope.inClassAndNotInNonArrowFunction){this.raise(SR.ArgumentsInClass,t);return}}}},{key:"recordAwaitIfAllowed",value:function(){var e=this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction;return e&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),e}},{key:"parseAwait",value:function(e){var t=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(SR.AwaitExpressionFormalParameter,t),this.eat(55)&&this.raise(SR.ObsoleteAwaitStar,t),this.scope.inFunction||this.options.allowAwaitOutsideFunction||(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(t.argument=this.parseMaybeUnary(null,!0)),this.finishNode(t,"AwaitExpression")}},{key:"isAmbiguousAwait",value:function(){if(this.hasPrecedingLineBreak())return!0;var e=this.state.type;return 53===e||10===e||0===e||S7(e)||102===e&&!this.state.containsEsc||138===e||56===e||this.hasPlugin("v8intrinsic")&&54===e}},{key:"parseYield",value:function(){var e=this.startNode();this.expressionScope.recordParameterInitializerError(SR.YieldInParameter,e),this.next();var t=!1,r=null;if(!this.hasPrecedingLineBreak())switch(t=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!t)break;default:r=this.parseMaybeAssign()}return e.delegate=t,e.argument=r,this.finishNode(e,"YieldExpression")}},{key:"parseImportCall",value:function(e){if(this.next(),e.source=this.parseMaybeAssignAllowIn(),e.options=null,this.eat(12)&&!this.match(11)&&(e.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&!this.match(11))){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(SR.ImportCallArity,e)}return this.expect(11),this.finishNode(e,"ImportExpression")}},{key:"checkPipelineAtInfixOperator",value:function(e,t){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&"SequenceExpression"===e.type&&this.raise(SR.PipelineHeadSequenceExpression,t)}},{key:"parseSmartPipelineBodyInStyle",value:function(e,t){if(this.isSimpleReference(e)){var r=this.startNodeAt(t);return r.callee=e,this.finishNode(r,"PipelineBareFunction")}var n=this.startNodeAt(t);return this.checkSmartPipeTopicBodyEarlyErrors(t),n.expression=e,this.finishNode(n,"PipelineTopicExpression")}},{key:"isSimpleReference",value:function(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}}},{key:"checkSmartPipeTopicBodyEarlyErrors",value:function(e){if(this.match(19))throw this.raise(SR.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(SR.PipelineTopicUnused,e)}},{key:"withTopicBindingContext",value:function(e){var t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}},{key:"withSmartMixTopicForbiddingContext",value:function(e){if(!this.hasPlugin(["pipelineOperator",{proposal:"smart"}]))return e();var t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}},{key:"withSoloAwaitPermittingContext",value:function(e){var t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}}},{key:"allowInAnd",value:function(e){var t=this.prodParam.currentFlags();if(8&~t){this.prodParam.enter(8|t);try{return e()}finally{this.prodParam.exit()}}return e()}},{key:"disallowInAnd",value:function(e){var t=this.prodParam.currentFlags();if(8&t){this.prodParam.enter(-9&t);try{return e()}finally{this.prodParam.exit()}}return e()}},{key:"registerTopicReference",value:function(){this.state.topicContext.maxTopicIndex=0}},{key:"topicReferenceIsAllowedInCurrentContext",value:function(){return this.state.topicContext.maxNumOfResolvableTopics>=1}},{key:"topicReferenceWasUsedInCurrentContext",value:function(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}},{key:"parseFSharpPipelineBody",value:function(e){var t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;var r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;var n=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=r,n}},{key:"parseModuleExpression",value:function(){this.expectPlugin("moduleBlocks");var e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);var t=this.startNodeAt(this.state.endLoc);this.next();var r=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,"module")}finally{r()}return this.finishNode(e,"ModuleExpression")}},{key:"parsePropertyNamePrefixOperator",value:function(e){}}]),t}(Tt),Td={kind:1},Tf={kind:2},Th=RegExp("[\uD800-\uDFFF]","u"),Tm=RegExp("in(?:stanceof)?","y"),Ty=/*#__PURE__*/function(e){function t(e,r,n){var i;return rf(this,t),(i=rd(this,t,[e=function(e){var t={sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!0,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};if(null==e)return t;if(null!=e.annexB&&!1!==e.annexB)throw Error("The `annexB` option can only be set to `false`.");var r=!0,n=!1,i=void 0;try{for(var a,s=Object.keys(t)[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var o=a.value;null!=e[o]&&(t[o]=e[o])}}catch(e){n=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw i}}if(1===t.startLine)null==e.startIndex&&t.startColumn>0?t.startIndex=t.startColumn:null==e.startColumn&&t.startIndex>0&&(t.startColumn=t.startIndex);else if(null==e.startColumn||null==e.startIndex)throw Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");return t}(e),r])).options=e,i.initializeScopes(),i.plugins=n,i.filename=e.sourceFilename,i.startIndex=e.startIndex,i}return rb(t,e),rm(t,[{key:"getScopeHandler",value:function(){return xv}},{key:"parse",value:function(){this.enterInitialScopes();var e=this.startNode(),t=this.startNode();return this.nextToken(),e.errors=null,this.parseTopLevel(e,t),e.errors=this.state.errors,e.comments.length=this.state.commentsLen,e}}]),t}(/*#__PURE__*/function(e){function t(){return rf(this,t),rd(this,t,arguments)}return rb(t,e),rm(t,[{key:"parseTopLevel",value:function(e,t){return e.program=this.parseProgram(t),e.comments=this.comments,this.options.tokens&&(e.tokens=function(e,t,r){for(var n=0;n<e.length;n++){var i=e[n],a=i.type;"number"==typeof a&&(i.type=Sz[a])}return e}(this.tokens,this.input,this.startIndex)),this.finishNode(e,"File")}},{key:"parseProgram",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:140,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.options.sourceType;if(e.sourceType=r,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,t),this.inModule){if(!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0){var n=!0,i=!1,a=void 0;try{for(var s,o=Array.from(this.scope.undefinedExports)[Symbol.iterator]();!(n=(s=o.next()).done);n=!0){var u=rT(s.value,2),l=u[0],c=u[1];this.raise(SR.ModuleExportUndefined,c,{localName:l})}}catch(e){i=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}}this.addExtra(e,"topLevelAwait",this.state.hasTopLevelAwait)}return 140===t?this.finishNode(e,"Program"):this.finishNodeAt(e,"Program",SI(this.state.startLoc,-1))}},{key:"stmtToDirective",value:function(e){e.type="Directive",e.value=e.expression,delete e.expression;var t=e.value,r=t.value,n=this.input.slice(this.offsetToSourcePos(t.start),this.offsetToSourcePos(t.end)),i=t.value=n.slice(1,-1);return this.addExtra(t,"raw",n),this.addExtra(t,"rawValue",i),this.addExtra(t,"expressionValue",r),t.type="DirectiveLiteral",e}},{key:"parseInterpreterDirective",value:function(){if(!this.match(28))return null;var e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}},{key:"isLet",value:function(){return!!this.isContextual(100)&&this.hasFollowingBindingAtom()}},{key:"chStartsBindingIdentifier",value:function(e,t){if(xo(e)){if(Tm.lastIndex=t,Tm.test(this.input)){var r=this.codePointAtPos(Tm.lastIndex);if(!xu(r)&&92!==r)return!1}return!0}return 92===e}},{key:"chStartsBindingPattern",value:function(e){return 91===e||123===e}},{key:"hasFollowingBindingAtom",value:function(){var e=this.nextTokenStart(),t=this.codePointAtPos(e);return this.chStartsBindingPattern(t)||this.chStartsBindingIdentifier(t,e)}},{key:"hasInLineFollowingBindingIdentifierOrBrace",value:function(){var e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return 123===t||this.chStartsBindingIdentifier(t,e)}},{key:"startsUsingForOf",value:function(){var e=this.lookahead(),t=e.type,r=e.containsEsc;return(102!==t||!!r)&&(S4(t)&&!this.hasFollowingLineBreak()?(this.expectPlugin("explicitResourceManagement"),!0):void 0)}},{key:"startsAwaitUsing",value:function(){var e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,"using")){e=this.nextTokenInLineStartSince(e+5);var t=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(t,e))return this.expectPlugin("explicitResourceManagement"),!0}return!1}},{key:"parseModuleItem",value:function(){return this.parseStatementLike(15)}},{key:"parseStatementListItem",value:function(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}},{key:"parseStatementOrSloppyAnnexBFunctionDeclaration",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return this.options.annexB&&!this.state.strict&&(t|=4,e&&(t|=8)),this.parseStatementLike(t)}},{key:"parseStatement",value:function(){return this.parseStatementLike(0)}},{key:"parseStatementLike",value:function(e){var t=null;return this.match(26)&&(t=this.parseDecorators(!0)),this.parseStatementContent(e,t)}},{key:"parseStatementContent",value:function(e,t){var r,n=this.state.type,i=this.startNode(),a=!!(2&e),s=!!(4&e),o=1&e;switch(n){case 60:return this.parseBreakContinueStatement(i,!0);case 63:return this.parseBreakContinueStatement(i,!1);case 64:return this.parseDebuggerStatement(i);case 90:return this.parseDoWhileStatement(i);case 91:return this.parseForStatement(i);case 68:if(46===this.lookaheadCharCode())break;return s||this.raise(this.state.strict?SR.StrictFunction:this.options.annexB?SR.SloppyFunctionAnnexB:SR.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(i,!1,!a&&s);case 80:return a||this.unexpected(),this.parseClass(this.maybeTakeDecorators(t,i),!0);case 69:return this.parseIfStatement(i);case 70:return this.parseReturnStatement(i);case 71:return this.parseSwitchStatement(i);case 72:return this.parseThrowStatement(i);case 73:return this.parseTryStatement(i);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing())return this.recordAwaitIfAllowed()?a||this.raise(SR.UnexpectedLexicalDeclaration,i):this.raise(SR.AwaitUsingNotInAsyncContext,i),this.next(),this.parseVarStatement(i,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel?this.raise(SR.UnexpectedUsingDeclaration,this.state.startLoc):a||this.raise(SR.UnexpectedLexicalDeclaration,this.state.startLoc),this.parseVarStatement(i,"using");case 100:if(this.state.containsEsc)break;var u=this.nextTokenStart(),l=this.codePointAtPos(u);if(91!==l&&(!a&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(l,u)&&123!==l))break;case 75:a||this.raise(SR.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:var c=this.state.value;return this.parseVarStatement(i,c);case 92:return this.parseWhileStatement(i);case 76:return this.parseWithStatement(i);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(i);case 83:var p=this.lookaheadCharCode();if(40===p||46===p)break;case 82:return this.options.allowImportExportEverywhere||o||this.raise(SR.UnexpectedImportExport,this.state.startLoc),this.next(),83===n?"ImportDeclaration"!==(r=this.parseImport(i)).type||r.importKind&&"value"!==r.importKind||(this.sawUnambiguousESM=!0):("ExportNamedDeclaration"!==(r=this.parseExport(i,t)).type||r.exportKind&&"value"!==r.exportKind)&&("ExportAllDeclaration"!==r.type||r.exportKind&&"value"!==r.exportKind)&&"ExportDefaultDeclaration"!==r.type||(this.sawUnambiguousESM=!0),this.assertModuleNodeAllowed(r),r;default:if(this.isAsyncFunction())return a||this.raise(SR.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(i,!0,!a&&s)}var d=this.state.value,f=this.parseExpression();return S4(n)&&"Identifier"===f.type&&this.eat(14)?this.parseLabeledStatement(i,d,f,e):this.parseExpressionStatement(i,f,t)}},{key:"assertModuleNodeAllowed",value:function(e){this.options.allowImportExportEverywhere||this.inModule||this.raise(SR.ImportOutsideModule,e)}},{key:"decoratorsEnabledBeforeExport",value:function(){return!!this.hasPlugin("decorators-legacy")||this.hasPlugin("decorators")&&!1!==this.getPluginOption("decorators","decoratorsBeforeExport")}},{key:"maybeTakeDecorators",value:function(e,t,r){if(e){if(t.decorators&&t.decorators.length>0){var n;"boolean"!=typeof this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(SR.DecoratorsBeforeAfterExport,t.decorators[0]),(n=t.decorators).unshift.apply(n,r_(e))}else t.decorators=e;this.resetStartLocationFromNode(t,e[0]),r&&this.resetStartLocationFromNode(r,t)}return t}},{key:"canHaveLeadingDecorator",value:function(){return this.match(80)}},{key:"parseDecorators",value:function(e){var t=[];do t.push(this.parseDecorator());while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(SR.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(SR.UnexpectedLeadingDecorator,this.state.startLoc);return t}},{key:"parseDecorator",value:function(){this.expectOnePlugin(["decorators","decorators-legacy"]);var e=this.startNode();if(this.next(),this.hasPlugin("decorators")){var t,r=this.state.startLoc;if(this.match(10)){var n=this.state.startLoc;this.next(),t=this.parseExpression(),this.expect(11),t=this.wrapParenthesis(n,t);var i=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(t),!1===this.getPluginOption("decorators","allowCallParenthesized")&&e.expression!==t&&this.raise(SR.DecoratorArgumentsOutsideParentheses,i)}else{for(t=this.parseIdentifier(!1);this.eat(16);){var a=this.startNodeAt(r);a.object=t,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),a.property=this.parsePrivateName()):a.property=this.parseIdentifier(!0),a.computed=!1,t=this.finishNode(a,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(t)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}},{key:"parseMaybeDecoratorArguments",value:function(e){if(this.eat(10)){var t=this.startNodeAtNode(e);return t.callee=e,t.arguments=this.parseCallExpressionArguments(11),this.toReferencedList(t.arguments),this.finishNode(t,"CallExpression")}return e}},{key:"parseBreakContinueStatement",value:function(e,t){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,t),this.finishNode(e,t?"BreakStatement":"ContinueStatement")}},{key:"verifyBreakContinue",value:function(e,t){var r;for(r=0;r<this.state.labels.length;++r){var n=this.state.labels[r];if((null==e.label||n.name===e.label.name)&&(null!=n.kind&&(t||1===n.kind)||e.label&&t))break}r===this.state.labels.length&&this.raise(SR.IllegalBreakContinue,e,{type:t?"BreakStatement":"ContinueStatement"})}},{key:"parseDebuggerStatement",value:function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")}},{key:"parseHeaderExpression",value:function(){this.expect(10);var e=this.parseExpression();return this.expect(11),e}},{key:"parseDoWhileStatement",value:function(e){var t=this;return this.next(),this.state.labels.push(Td),e.body=this.withSmartMixTopicForbiddingContext(function(){return t.parseStatement()}),this.state.labels.pop(),this.expect(92),e.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(e,"DoWhileStatement")}},{key:"parseForStatement",value:function(e){this.next(),this.state.labels.push(Td);var t=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(t=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return null!==t&&this.unexpected(t),this.parseFor(e,null);var r=this.isContextual(100),n=this.isContextual(96)&&this.startsAwaitUsing(),i=n||this.isContextual(107)&&this.startsUsingForOf(),a=r&&this.hasFollowingBindingAtom()||i;if(this.match(74)||this.match(75)||a){var s,o=this.startNode();n?(s="await using",this.recordAwaitIfAllowed()||this.raise(SR.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):s=this.state.value,this.next(),this.parseVar(o,!0,s);var u=this.finishNode(o,"VariableDeclaration"),l=this.match(58);return(l&&i&&this.raise(SR.ForInUsing,u),(l||this.isContextual(102))&&1===u.declarations.length)?this.parseForIn(e,u,t):(null!==t&&this.unexpected(t),this.parseFor(e,u))}var c=this.isContextual(95),p=new xH,d=this.parseExpression(!0,p),f=this.isContextual(102);return(f&&(r&&this.raise(SR.ForOfLet,d),null===t&&c&&"Identifier"===d.type&&this.raise(SR.ForOfAsync,d)),f||this.match(58))?(this.checkDestructuringPrivate(p),this.toAssignable(d,!0),this.checkLVal(d,{type:f?"ForOfStatement":"ForInStatement"}),this.parseForIn(e,d,t)):(this.checkExpressionErrors(p,!0),null!==t&&this.unexpected(t),this.parseFor(e,d))}},{key:"parseFunctionStatement",value:function(e,t,r){return this.next(),this.parseFunction(e,1|(r?2:0)|(t?8:0))}},{key:"parseIfStatement",value:function(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),e.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(e,"IfStatement")}},{key:"parseReturnStatement",value:function(e){return this.prodParam.hasReturn||this.options.allowReturnOutsideFunction||this.raise(SR.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")}},{key:"parseSwitchStatement",value:function(e){this.next(),e.discriminant=this.parseHeaderExpression();var t,r,n=e.cases=[];for(this.expect(5),this.state.labels.push(Tf),this.scope.enter(0);!this.match(8);)if(this.match(61)||this.match(65)){var i=this.match(61);t&&this.finishNode(t,"SwitchCase"),n.push(t=this.startNode()),t.consequent=[],this.next(),i?t.test=this.parseExpression():(r&&this.raise(SR.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),r=!0,t.test=null),this.expect(14)}else t?t.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}},{key:"parseThrowStatement",value:function(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(SR.NewlineAfterThrow,this.state.lastTokEndLoc),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}},{key:"parseCatchClauseParam",value:function(){var e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&"Identifier"===e.type?8:0),this.checkLVal(e,{type:"CatchClause"},9),e}},{key:"parseTryStatement",value:function(e){var t=this;if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(62)){var r=this.startNode();this.next(),this.match(10)?(this.expect(10),r.param=this.parseCatchClauseParam(),this.expect(11)):(r.param=null,this.scope.enter(0)),r.body=this.withSmartMixTopicForbiddingContext(function(){return t.parseBlock(!1,!1)}),this.scope.exit(),e.handler=this.finishNode(r,"CatchClause")}return e.finalizer=this.eat(67)?this.parseBlock():null,e.handler||e.finalizer||this.raise(SR.NoCatchOrFinally,e),this.finishNode(e,"TryStatement")}},{key:"parseVarStatement",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.next(),this.parseVar(e,!1,t,r),this.semicolon(),this.finishNode(e,"VariableDeclaration")}},{key:"parseWhileStatement",value:function(e){var t=this;return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(Td),e.body=this.withSmartMixTopicForbiddingContext(function(){return t.parseStatement()}),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}},{key:"parseWithStatement",value:function(e){var t=this;return this.state.strict&&this.raise(SR.StrictWith,this.state.startLoc),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withSmartMixTopicForbiddingContext(function(){return t.parseStatement()}),this.finishNode(e,"WithStatement")}},{key:"parseEmptyStatement",value:function(e){return this.next(),this.finishNode(e,"EmptyStatement")}},{key:"parseLabeledStatement",value:function(e,t,r,n){var i,a=!0,s=!1,o=void 0;try{for(var u,l=this.state.labels[Symbol.iterator]();!(a=(u=l.next()).done);a=!0)u.value.name===t&&this.raise(SR.LabelRedeclaration,r,{labelName:t})}catch(e){s=!0,o=e}finally{try{a||null==l.return||l.return()}finally{if(s)throw o}}for(var c=(i=this.state.type)>=90&&i<=92?1:this.match(71)?2:null,p=this.state.labels.length-1;p>=0;p--){var d=this.state.labels[p];if(d.statementStart===e.start)d.statementStart=this.sourceToOffsetPos(this.state.start),d.kind=c;else break}return this.state.labels.push({name:t,kind:c,statementStart:this.sourceToOffsetPos(this.state.start)}),e.body=8&n?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")}},{key:"parseExpressionStatement",value:function(e,t,r){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")}},{key:"parseBlock",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=arguments.length>2?arguments[2]:void 0,n=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),t&&this.scope.enter(0),this.parseBlockBody(n,e,!1,8,r),t&&this.scope.exit(),this.finishNode(n,"BlockStatement")}},{key:"isValidDirective",value:function(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized}},{key:"parseBlockBody",value:function(e,t,r,n,i){var a=e.body=[],s=e.directives=[];this.parseBlockOrModuleBlockBody(a,t?s:void 0,r,n,i)}},{key:"parseBlockOrModuleBlockBody",value:function(e,t,r,n,i){for(var a=this.state.strict,s=!1,o=!1;!this.match(n);){var u=r?this.parseModuleItem():this.parseStatementListItem();if(t&&!o){if(this.isValidDirective(u)){var l=this.stmtToDirective(u);t.push(l),s||"use strict"!==l.value.value||(s=!0,this.setStrict(!0));continue}o=!0,this.state.strictErrors.clear()}e.push(u)}null==i||i.call(this,s),a||this.setStrict(!1),this.next()}},{key:"parseFor",value:function(e,t){var r=this;return e.init=t,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(function(){return r.parseStatement()}),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}},{key:"parseForIn",value:function(e,t,r){var n=this,i=this.match(58);return this.next(),i?null!==r&&this.unexpected(r):e.await=null!==r,"VariableDeclaration"!==t.type||null==t.declarations[0].init||i&&this.options.annexB&&!this.state.strict&&"var"===t.kind&&"Identifier"===t.declarations[0].id.type||this.raise(SR.ForInOfLoopInitializer,t,{type:i?"ForInStatement":"ForOfStatement"}),"AssignmentPattern"===t.type&&this.raise(SR.InvalidLhs,t,{ancestor:{type:"ForStatement"}}),e.left=t,e.right=i?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(function(){return n.parseStatement()}),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,i?"ForInStatement":"ForOfStatement")}},{key:"parseVar",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=e.declarations=[];for(e.kind=r;;){var a=this.startNode();if(this.parseVarId(a,r),a.init=this.eat(29)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,null!==a.init||n||("Identifier"===a.id.type||t&&(this.match(58)||this.isContextual(102))?"const"!==r&&"using"!==r&&"await using"!==r||this.match(58)||this.isContextual(102)||this.raise(SR.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:r}):this.raise(SR.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"})),i.push(this.finishNode(a,"VariableDeclarator")),!this.eat(12))break}return e}},{key:"parseVarId",value:function(e,t){var r=this.parseBindingAtom();("using"===t||"await using"===t)&&("ArrayPattern"===r.type||"ObjectPattern"===r.type)&&this.raise(SR.UsingDeclarationHasBindingPattern,r.loc.start),this.checkLVal(r,{type:"VariableDeclarator"},"var"===t?5:8201),e.id=r}},{key:"parseAsyncFunctionExpression",value:function(e){return this.parseFunction(e,8)}},{key:"parseFunction",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=2&r,i=!!(1&r),a=!!(8&r);this.initFunction(e,a),this.match(55)&&(n&&this.raise(SR.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),i&&(e.id=this.parseFunctionId(i&&!(4&r)));var s=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(xG(a,e.generator)),i||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext(function(){t.parseFunctionBodyAndFinish(e,i?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),i&&!n&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=s,e}},{key:"parseFunctionId",value:function(e){return e||S4(this.state.type)?this.parseIdentifier():null}},{key:"parseFunctionParams",value:function(e,t){this.expect(10),this.expressionScope.enter(new xW(3)),e.params=this.parseBindingList(11,41,2|(t?4:0)),this.expressionScope.exit()}},{key:"registerFunctionStatementId",value:function(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:8201:17,e.id.loc.start)}},{key:"parseClass",value:function(e,t,r){this.next();var n=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,r),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,n),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}},{key:"isClassProperty",value:function(){return this.match(29)||this.match(13)||this.match(8)}},{key:"isClassMethod",value:function(){return this.match(10)}},{key:"nameIsConstructor",value:function(e){return"Identifier"===e.type&&"constructor"===e.name||"StringLiteral"===e.type&&"constructor"===e.value}},{key:"isNonstaticConstructor",value:function(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)}},{key:"parseClassBody",value:function(e,t){var r=this;this.classScope.enter();var n={hadConstructor:!1,hadSuperClass:e},i=[],a=this.startNode();if(a.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(function(){for(;!r.match(8);){if(r.eat(13)){if(i.length>0)throw r.raise(SR.DecoratorSemicolon,r.state.lastTokEndLoc);continue}if(r.match(26)){i.push(r.parseDecorator());continue}var e=r.startNode();i.length&&(e.decorators=i,r.resetStartLocationFromNode(e,i[0]),i=[]),r.parseClassMember(a,e,n),"constructor"===e.kind&&e.decorators&&e.decorators.length>0&&r.raise(SR.DecoratorConstructor,e)}}),this.state.strict=t,this.next(),i.length)throw this.raise(SR.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(a,"ClassBody")}},{key:"parseClassMemberFromModifier",value:function(e,t){var r=this.parseIdentifier(!0);return this.isClassMethod()?(t.kind="method",t.computed=!1,t.key=r,t.static=!1,this.pushClassMethod(e,t,!1,!1,!1,!1),!0):this.isClassProperty()?(t.computed=!1,t.key=r,t.static=!1,e.body.push(this.parseClassProperty(t)),!0):(this.resetPreviousNodeTrailingComments(r),!1)}},{key:"parseClassMember",value:function(e,t,r){var n=this.isContextual(106);if(n){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5)){this.parseClassStaticBlock(e,t);return}}this.parseClassMemberWithIsStatic(e,t,r,n)}},{key:"parseClassMemberWithIsStatic",value:function(e,t,r,n){if(t.static=n,this.parsePropertyNamePrefixOperator(t),this.eat(55)){t.kind="method";var i=this.match(139);if(this.parseClassElementName(t),i){this.pushClassPrivateMethod(e,t,!0,!1);return}this.isNonstaticConstructor(t)&&this.raise(SR.ConstructorIsGenerator,t.key),this.pushClassMethod(e,t,!0,!1,!1,!1);return}var a=!this.state.containsEsc&&S4(this.state.type),s=this.parseClassElementName(t),o=a?s.name:null,u=this.isPrivateName(s),l=this.state.startLoc;if(this.parsePostMemberNameModifiers(t),this.isClassMethod()){if(t.kind="method",u){this.pushClassPrivateMethod(e,t,!1,!1);return}var c=this.isNonstaticConstructor(t),p=!1;c&&(t.kind="constructor",r.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(SR.DuplicateConstructor,s),c&&this.hasPlugin("typescript")&&t.override&&this.raise(SR.OverrideOnConstructor,s),r.hadConstructor=!0,p=r.hadSuperClass),this.pushClassMethod(e,t,!1,!1,c,p)}else if(this.isClassProperty())u?this.pushClassPrivateProperty(e,t):this.pushClassProperty(e,t);else if("async"!==o||this.isLineTerminator()){if("get"!==o&&"set"!==o||this.match(55)&&this.isLineTerminator()){if("accessor"!==o||this.isLineTerminator())this.isLineTerminator()?u?this.pushClassPrivateProperty(e,t):this.pushClassProperty(e,t):this.unexpected();else{this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(s);var d=this.match(139);this.parseClassElementName(t),this.pushClassAccessorProperty(e,t,d)}}else{this.resetPreviousNodeTrailingComments(s),t.kind=o;var f=this.match(139);this.parseClassElementName(t),f?this.pushClassPrivateMethod(e,t,!1,!1):(this.isNonstaticConstructor(t)&&this.raise(SR.ConstructorIsAccessor,t.key),this.pushClassMethod(e,t,!1,!1,!1,!1)),this.checkGetterSetterParams(t)}}else{this.resetPreviousNodeTrailingComments(s);var h=this.eat(55);t.optional&&this.unexpected(l),t.kind="method";var m=this.match(139);this.parseClassElementName(t),this.parsePostMemberNameModifiers(t),m?this.pushClassPrivateMethod(e,t,h,!0):(this.isNonstaticConstructor(t)&&this.raise(SR.ConstructorIsAsync,t.key),this.pushClassMethod(e,t,h,!0,!1,!1))}}},{key:"parseClassElementName",value:function(e){var t=this.state,r=t.type,n=t.value;if((132===r||134===r)&&e.static&&"prototype"===n&&this.raise(SR.StaticPrototype,this.state.startLoc),139===r){"constructor"===n&&this.raise(SR.ConstructorClassPrivateField,this.state.startLoc);var i=this.parsePrivateName();return e.key=i,i}return this.parsePropertyName(e),e.key}},{key:"parseClassStaticBlock",value:function(e,t){this.scope.enter(208);var r,n=this.state.labels;this.state.labels=[],this.prodParam.enter(0);var i=t.body=[];this.parseBlockOrModuleBlockBody(i,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=n,e.body.push(this.finishNode(t,"StaticBlock")),(null===(r=t.decorators)||void 0===r?void 0:r.length)&&this.raise(SR.DecoratorStaticBlock,t)}},{key:"pushClassProperty",value:function(e,t){!t.computed&&this.nameIsConstructor(t.key)&&this.raise(SR.ConstructorClassField,t.key),e.body.push(this.parseClassProperty(t))}},{key:"pushClassPrivateProperty",value:function(e,t){var r=this.parseClassPrivateProperty(t);e.body.push(r),this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.loc.start)}},{key:"pushClassAccessorProperty",value:function(e,t,r){!r&&!t.computed&&this.nameIsConstructor(t.key)&&this.raise(SR.ConstructorClassField,t.key);var n=this.parseClassAccessorProperty(t);e.body.push(n),r&&this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.loc.start)}},{key:"pushClassMethod",value:function(e,t,r,n,i,a){e.body.push(this.parseMethod(t,r,n,i,a,"ClassMethod",!0))}},{key:"pushClassPrivateMethod",value:function(e,t,r,n){var i=this.parseMethod(t,r,n,!1,!1,"ClassPrivateMethod",!0);e.body.push(i);var a="get"===i.kind?i.static?6:2:"set"===i.kind?i.static?5:1:0;this.declareClassPrivateMethodInScope(i,a)}},{key:"declareClassPrivateMethodInScope",value:function(e,t){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),t,e.key.loc.start)}},{key:"parsePostMemberNameModifiers",value:function(e){}},{key:"parseClassPrivateProperty",value:function(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")}},{key:"parseClassProperty",value:function(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")}},{key:"parseClassAccessorProperty",value:function(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassAccessorProperty")}},{key:"parseInitializer",value:function(e){this.scope.enter(80),this.expressionScope.enter(new xW),this.prodParam.enter(0),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}},{key:"parseClassId",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:8331;if(S4(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,n);else if(r||!t)e.id=null;else throw this.raise(SR.MissingClassName,this.state.startLoc)}},{key:"parseClassSuper",value:function(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}},{key:"parseExport",value:function(e,t){var r,n,i=this.parseMaybeImportPhase(e,!0),a=this.maybeParseExportDefaultSpecifier(e,i),s=!a||this.eat(12),o=s&&this.eatExportStar(e),u=o&&this.maybeParseExportNamespaceSpecifier(e),l=s&&(!u||this.eat(12)),c=a||o;if(o&&!u){if(a&&this.unexpected(),t)throw this.raise(SR.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.finishNode(e,"ExportAllDeclaration")}var p=this.maybeParseExportNamedSpecifiers(e);if(a&&s&&!o&&!p&&this.unexpected(null,5),u&&l&&this.unexpected(null,98),c||p){if(r=!1,t)throw this.raise(SR.UnsupportedDecoratorExport,e);this.parseExportFrom(e,c)}else r=this.maybeParseExportDeclaration(e);if(c||p||r){if(this.checkExport(e,!0,!1,!!e.source),(null===(n=e.declaration)||void 0===n?void 0:n.type)==="ClassDeclaration")this.maybeTakeDecorators(t,e.declaration,e);else if(t)throw this.raise(SR.UnsupportedDecoratorExport,e);return this.finishNode(e,"ExportNamedDeclaration")}if(this.eat(65)){var d=this.parseExportDefaultExpression();if(e.declaration=d,"ClassDeclaration"===d.type)this.maybeTakeDecorators(t,d,e);else if(t)throw this.raise(SR.UnsupportedDecoratorExport,e);return this.checkExport(e,!0,!0),this.finishNode(e,"ExportDefaultDeclaration")}this.unexpected(null,5)}},{key:"eatExportStar",value:function(e){return this.eat(55)}},{key:"maybeParseExportDefaultSpecifier",value:function(e,t){if(t||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",null==t?void 0:t.loc.start);var r=t||this.parseIdentifier(!0),n=this.startNodeAtNode(r);return n.exported=r,e.specifiers=[this.finishNode(n,"ExportDefaultSpecifier")],!0}return!1}},{key:"maybeParseExportNamespaceSpecifier",value:function(e){if(this.isContextual(93)){null!==(t=e.specifiers)&&void 0!==t||(e.specifiers=[]);var t,r=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),r.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(r,"ExportNamespaceSpecifier")),!0}return!1}},{key:"maybeParseExportNamedSpecifiers",value:function(e){if(this.match(5)){e.specifiers||(e.specifiers=[]);var t,r="type"===e.exportKind;return(t=e.specifiers).push.apply(t,r_(this.parseExportSpecifiers(r))),e.source=null,e.declaration=null,!0}return!1}},{key:"maybeParseExportDeclaration",value:function(e){return!!this.shouldParseExportDeclaration()&&(e.specifiers=[],e.source=null,e.declaration=this.parseExportDeclaration(e),!0)}},{key:"isAsyncFunction",value:function(){if(!this.isContextual(95))return!1;var e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")}},{key:"parseExportDefaultExpression",value:function(){var e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,13);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(SR.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(SR.UnsupportedDefaultExport,this.state.startLoc);var t=this.parseMaybeAssignAllowIn();return this.semicolon(),t}},{key:"parseExportDeclaration",value:function(e){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}},{key:"isExportDefaultSpecifier",value:function(){var e=this.state.type;if(S4(e)){if(95===e&&!this.state.containsEsc||100===e)return!1;if((130===e||129===e)&&!this.state.containsEsc){var t=this.lookahead().type;if(S4(t)&&98!==t||5===t)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;var r=this.nextTokenStart(),n=this.isUnparsedContextual(r,"from");if(44===this.input.charCodeAt(r)||S4(this.state.type)&&n)return!0;if(this.match(65)&&n){var i=this.input.charCodeAt(this.nextTokenStartSince(r+4));return 34===i||39===i}return!1}},{key:"parseExportFrom",value:function(e,t){this.eatContextual(98)?(e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e)):t&&this.unexpected(),this.semicolon()}},{key:"shouldParseExportDeclaration",value:function(){var e=this.state.type;return 26===e&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(SR.DecoratorBeforeExport,this.state.startLoc),!0):this.isContextual(107)||this.isContextual(96)&&this.startsAwaitUsing()?(this.raise(SR.UsingDeclarationExport,this.state.startLoc),!0):74===e||75===e||68===e||80===e||this.isLet()||this.isAsyncFunction()}},{key:"checkExport",value:function(e,t,r,n){if(t){var i;if(r){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var a,s=e.declaration;"Identifier"!==s.type||"from"!==s.name||s.end-s.start!=4||(null===(a=s.extra)||void 0===a?void 0:a.parenthesized)||this.raise(SR.ExportDefaultFromAsIdentifier,s)}}else if(null===(i=e.specifiers)||void 0===i?void 0:i.length){var o=!0,u=!1,l=void 0;try{for(var c,p=e.specifiers[Symbol.iterator]();!(o=(c=p.next()).done);o=!0){var d=c.value,f=d.exported,h="Identifier"===f.type?f.name:f.value;if(this.checkDuplicateExports(d,h),!n&&d.local){var m=d.local;"Identifier"!==m.type?this.raise(SR.ExportBindingIsString,d,{localName:m.value,exportName:h}):(this.checkReservedWord(m.name,m.loc.start,!0,!1),this.scope.checkLocalExport(m))}}}catch(e){u=!0,l=e}finally{try{o||null==p.return||p.return()}finally{if(u)throw l}}}else if(e.declaration){var y=e.declaration;if("FunctionDeclaration"===y.type||"ClassDeclaration"===y.type){var v=y.id;if(!v)throw Error("Assertion failure");this.checkDuplicateExports(e,v.name)}else if("VariableDeclaration"===y.type){var g=!0,b=!1,S=void 0;try{for(var x,T=y.declarations[Symbol.iterator]();!(g=(x=T.next()).done);g=!0){var E=x.value;this.checkDeclaration(E.id)}}catch(e){b=!0,S=e}finally{try{g||null==T.return||T.return()}finally{if(b)throw S}}}}}}},{key:"checkDeclaration",value:function(e){if("Identifier"===e.type)this.checkDuplicateExports(e,e.name);else if("ObjectPattern"===e.type){var t=!0,r=!1,n=void 0;try{for(var i,a=e.properties[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var s=i.value;this.checkDeclaration(s)}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}}else if("ArrayPattern"===e.type){var o=!0,u=!1,l=void 0;try{for(var c,p=e.elements[Symbol.iterator]();!(o=(c=p.next()).done);o=!0){var d=c.value;d&&this.checkDeclaration(d)}}catch(e){u=!0,l=e}finally{try{o||null==p.return||p.return()}finally{if(u)throw l}}}else"ObjectProperty"===e.type?this.checkDeclaration(e.value):"RestElement"===e.type?this.checkDeclaration(e.argument):"AssignmentPattern"===e.type&&this.checkDeclaration(e.left)}},{key:"checkDuplicateExports",value:function(e,t){this.exportedIdentifiers.has(t)&&("default"===t?this.raise(SR.DuplicateDefaultExport,e):this.raise(SR.DuplicateExport,e,{exportName:t})),this.exportedIdentifiers.add(t)}},{key:"parseExportSpecifiers",value:function(e){var t=[],r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else if(this.expect(12),this.eat(8))break;var n=this.isContextual(130),i=this.match(134),a=this.startNode();a.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(a,i,e,n))}return t}},{key:"parseExportSpecifier",value:function(e,t,r,n){return this.eatContextual(93)?e.exported=this.parseModuleExportName():t?e.exported=function(e){var t=e.type,r=e.start,n=e.end,i=e.loc,a=e.range,s=e.extra;if("Placeholder"===t)return xY(e);var o=Object.create(x$);return o.type=t,o.start=r,o.end=n,o.loc=i,o.range=a,void 0!==e.raw?o.raw=e.raw:o.extra=s,o.value=e.value,o}(e.local):e.exported||(e.exported=xY(e.local)),this.finishNode(e,"ExportSpecifier")}},{key:"parseModuleExportName",value:function(){if(this.match(134)){var e=this.parseStringLiteral(this.state.value),t=Th.exec(e.value);return t&&this.raise(SR.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:t[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}},{key:"isJSONModuleImport",value:function(e){return null!=e.assertions&&e.assertions.some(function(e){var t=e.key;return"json"===e.value.value&&("Identifier"===t.type?"type"===t.name:"type"===t.value)})}},{key:"checkImportReflection",value:function(e){var t,r=e.specifiers,n=1===r.length?r[0].type:null;"source"===e.phase?"ImportDefaultSpecifier"!==n&&this.raise(SR.SourcePhaseImportRequiresDefault,r[0].loc.start):"defer"===e.phase?"ImportNamespaceSpecifier"!==n&&this.raise(SR.DeferImportRequiresNamespace,r[0].loc.start):e.module&&("ImportDefaultSpecifier"!==n&&this.raise(SR.ImportReflectionNotBinding,r[0].loc.start),(null===(t=e.assertions)||void 0===t?void 0:t.length)>0&&this.raise(SR.ImportReflectionHasAssertion,r[0].loc.start))}},{key:"checkJSONModuleImport",value:function(e){if(this.isJSONModuleImport(e)&&"ExportAllDeclaration"!==e.type){var t=e.specifiers;if(null!=t){var r=t.find(function(e){var t;if("ExportSpecifier"===e.type?t=e.local:"ImportSpecifier"===e.type&&(t=e.imported),void 0!==t)return"Identifier"===t.type?"default"!==t.name:"default"!==t.value});void 0!==r&&this.raise(SR.ImportJSONBindingNotDefault,r.loc.start)}}}},{key:"isPotentialImportPhase",value:function(e){return!e&&(this.isContextual(105)||this.isContextual(97))}},{key:"applyImportPhase",value:function(e,t,r,n){!t&&(this.hasPlugin("importReflection")&&(e.module=!1),"source"===r?(this.expectPlugin("sourcePhaseImports",n),e.phase="source"):"defer"===r?(this.expectPlugin("deferredImportEvaluation",n),e.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(e.phase=null))}},{key:"parseMaybeImportPhase",value:function(e,t){if(!this.isPotentialImportPhase(t))return this.applyImportPhase(e,t,null),null;var r=this.parseIdentifier(!0),n=this.state.type;return(S5(n)?98!==n||102===this.lookaheadCharCode():12!==n)?(this.resetPreviousIdentifierLeadingComments(r),this.applyImportPhase(e,t,r.name,r.loc.start),null):(this.applyImportPhase(e,t,null),r)}},{key:"isPrecedingIdImportPhase",value:function(e){var t=this.state.type;return S4(t)?98!==t||102===this.lookaheadCharCode():12!==t}},{key:"parseImport",value:function(e){return this.match(134)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}},{key:"parseImportSpecifiersAndAfter",value:function(e,t){e.specifiers=[];var r=!this.maybeParseDefaultImportSpecifier(e,t)||this.eat(12),n=r&&this.maybeParseStarImportSpecifier(e);return r&&!n&&this.parseNamedImportSpecifiers(e),this.expectContextual(98),this.parseImportSourceAndAttributes(e)}},{key:"parseImportSourceAndAttributes",value:function(e){var t;return null!==(t=e.specifiers)&&void 0!==t||(e.specifiers=[]),e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.finishNode(e,"ImportDeclaration")}},{key:"parseImportSource",value:function(){return this.match(134)||this.unexpected(),this.parseExprAtom()}},{key:"parseImportSpecifierLocal",value:function(e,t,r){t.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,r))}},{key:"finishImportSpecifier",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8201;return this.checkLVal(e.local,{type:t},r),this.finishNode(e,t)}},{key:"parseImportAttributes",value:function(){this.expect(5);var e=[],t=/* @__PURE__ */new Set;do{if(this.match(8))break;var r=this.startNode(),n=this.state.value;if(t.has(n)&&this.raise(SR.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:n}),t.add(n),this.match(134)?r.key=this.parseStringLiteral(n):r.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(SR.ModuleAttributeInvalidValue,this.state.startLoc);r.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return this.expect(8),e}},{key:"parseModuleAttributes",value:function(){var e=[],t=/* @__PURE__ */new Set;do{var r=this.startNode();if(r.key=this.parseIdentifier(!0),"type"!==r.key.name&&this.raise(SR.ModuleAttributeDifferentFromType,r.key),t.has(r.key.name)&&this.raise(SR.ModuleAttributesWithDuplicateKeys,r.key,{key:r.key.name}),t.add(r.key.name),this.expect(14),!this.match(134))throw this.raise(SR.ModuleAttributeInvalidValue,this.state.startLoc);r.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return e}},{key:"maybeParseImportAttributes",value:function(e){var t;if(this.match(76)){if(this.hasPrecedingLineBreak()&&40===this.lookaheadCharCode())return;this.next(),t=this.parseImportAttributes()}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(this.hasPlugin("deprecatedImportAssert")||this.raise(SR.ImportAttributesUseAssert,this.state.startLoc),this.addExtra(e,"deprecatedAssertSyntax",!0),this.next(),t=this.parseImportAttributes()):t=[];e.attributes=t}},{key:"maybeParseDefaultImportSpecifier",value:function(e,t){if(t){var r=this.startNodeAtNode(t);return r.local=t,e.specifiers.push(this.finishImportSpecifier(r,"ImportDefaultSpecifier")),!0}return!!S5(this.state.type)&&(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0)}},{key:"maybeParseStarImportSpecifier",value:function(e){if(this.match(55)){var t=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier"),!0}return!1}},{key:"parseNamedImportSpecifiers",value:function(e){var t=!0;for(this.expect(5);!this.eat(8);){if(t)t=!1;else{if(this.eat(14))throw this.raise(SR.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}var r=this.startNode(),n=this.match(134),i=this.isContextual(130);r.imported=this.parseModuleExportName();var a=this.parseImportSpecifier(r,n,"type"===e.importKind||"typeof"===e.importKind,i,void 0);e.specifiers.push(a)}}},{key:"parseImportSpecifier",value:function(e,t,r,n,i){if(this.eatContextual(93))e.local=this.parseIdentifier();else{var a=e.imported;if(t)throw this.raise(SR.ImportBindingIsString,e,{importName:a.value});this.checkReservedWord(a.name,e.loc.start,!0,!0),e.local||(e.local=xY(a))}return this.finishImportSpecifier(e,"ImportSpecifier",i)}},{key:"isThisParam",value:function(e){return"Identifier"===e.type&&"this"===e.name}}]),t}(Tp));function Tv(e,t){if((null==t?void 0:t.sourceType)!=="unambiguous")return TS(t,e).parse();t=Object.assign({},t);try{t.sourceType="module";var r=TS(t,e),n=r.parse();if(r.sawUnambiguousESM)return n;if(r.ambiguousScriptDifferentAst)try{return t.sourceType="script",TS(t,e).parse()}catch(e){}else n.program.sourceType="script";return n}catch(r){try{return t.sourceType="script",TS(t,e).parse()}catch(e){}throw r}}function Tg(e,t){var r=TS(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()}var Tb=function(e){var t={},r=!0,n=!1,i=void 0;try{for(var a,s=Object.keys(e)[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var o=a.value;t[o]=Sz[e[o]]}}catch(e){n=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw i}}return t}(S3);function TS(e,t){var r=Ty,n=/* @__PURE__ */new Map;if(null==e?void 0:e.plugins){var i=!0,a=!1,s=void 0;try{for(var o,u=e.plugins[Symbol.iterator]();!(i=(o=u.next()).done);i=!0){var l,c=o.value,p=void 0,d=void 0;"string"==typeof c?p=c:(p=(l=rT(c,2))[0],d=l[1]),n.has(p)||n.set(p,d||{})}}catch(e){a=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(a)throw s}}!function(e){if(e.has("decorators")){if(e.has("decorators-legacy"))throw Error("Cannot use the decorators and decorators-legacy plugin together");var t=e.get("decorators").decoratorsBeforeExport;if(null!=t&&"boolean"!=typeof t)throw Error("'decoratorsBeforeExport' must be a boolean, if specified.");var r=e.get("decorators").allowCallParenthesized;if(null!=r&&"boolean"!=typeof r)throw Error("'allowCallParenthesized' must be a boolean.")}if(e.has("flow")&&e.has("typescript"))throw Error("Cannot combine flow and typescript plugins.");if(e.has("placeholders")&&e.has("v8intrinsic"))throw Error("Cannot combine placeholders and v8intrinsic plugins.");if(e.has("pipelineOperator")){var n=e.get("pipelineOperator").proposal;if(!To.includes(n)){var i=To.map(function(e){return'"'.concat(e,'"')}).join(", ");throw Error('"pipelineOperator" requires "proposal" option whose value must be one of: '.concat(i,"."))}var a=e.has("recordAndTuple");if("hack"===n){if(e.has("placeholders"))throw Error("Cannot combine placeholders plugin and Hack-style pipes.");if(e.has("v8intrinsic"))throw Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");var s=e.get("pipelineOperator").topicToken;if(!Tu.includes(s)){var o=Tu.map(function(e){return'"'.concat(e,'"')}).join(", ");throw Error('"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: '.concat(o,"."))}if("#"===s&&a)throw Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `'.concat(JSON.stringify(["recordAndTuple",e.get("recordAndTuple")]),"`."))}else if("smart"===n&&a)throw Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `'.concat(JSON.stringify(["recordAndTuple",e.get("recordAndTuple")]),"`."))}if(e.has("moduleAttributes"))throw Error("`moduleAttributes` has been removed in Babel 8, please migrate to import attributes instead.");if(e.has("importAssertions"))throw Error("`importAssertions` has been removed in Babel 8, please use import attributes instead. To use the non-standard `assert` syntax you can enable the `deprecatedImportAssert` parser plugin.");if(!e.has("deprecatedImportAssert")&&e.has("importAttributes")&&e.get("importAttributes").deprecatedAssertSyntax)throw Error("The 'importAttributes' plugin has been removed in Babel 8. If you need to enable support for the deprecated `assert` syntax, you can enable the `deprecatedImportAssert` parser plugin.");if(e.has("recordAndTuple")){var u=e.get("recordAndTuple").syntaxType;if(null!=u){if("hash"===u)throw Error('The syntaxType option is no longer required in Babel 8. You can safely remove { syntaxType: "hash" } from the recordAndTuple config.');throw Error('The syntaxType option is no longer required in Babel 8. Please remove { syntaxType: "bar" } from the recordAndTuple config and migrate to the hash syntax #{} and #[].')}}if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){var l=Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw l.missingPlugins="doExpressions",l}if(e.has("optionalChainingAssign")&&"2023-07"!==e.get("optionalChainingAssign").version)throw Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");if(e.has("decimal"))throw Error("The 'decimal' plugin has been removed in Babel 8. Please remove it from your configuration.");if(e.has("importReflection"))throw Error("The 'importReflection' plugin has been removed in Babel 8. Use 'sourcePhaseImports' instead, and replace 'import module' with 'import source' in your code.")}(n),r=function(e){var t=[],r=!0,n=!1,i=void 0;try{for(var a,s=Tc[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var o=a.value;e.has(o)&&t.push(o)}}catch(e){n=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw i}}var u=t.join("|"),l=Tx.get(u);if(!l){l=Ty;var c=!0,p=!1,d=void 0;try{for(var f,h=t[Symbol.iterator]();!(c=(f=h.next()).done);c=!0)l=Tl[f.value](l)}catch(e){p=!0,d=e}finally{try{c||null==h.return||h.return()}finally{if(p)throw d}}Tx.set(u,l)}return l}(n)}return new r(e,t,n)}var Tx=/* @__PURE__ */new Map,TT=rJ(rG()),TE=rJ(rK()),T_=function(e,t){return function(r){return e(t(r))}};function TP(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:T_(T_(e.white,e.bgRed),e.bold),gutter:e.gray,marker:T_(e.red,e.bold),message:T_(e.red,e.bold),reset:e.reset}}var TA=TP((0,TT.createColors)(!0)),Tk=TP((0,TT.createColors)(!1)),TC=/* @__PURE__ */new Set(["as","async","from","get","of","set"]),Tw=/\r\n|[\n\r\u2028\u2029]/,TI=/^[()[\]{}]$/,TN=function(e){if("IdentifierName"===e.type){var t;if(t=e.value,na.has(t)||nu(e.value,!0)||TC.has(e.value))return"keyword";if(e.value[0]!==e.value[0].toLowerCase())return"capitalized"}if("Punctuator"===e.type&&TI.test(e.value))return"uncolored";if("Invalid"===e.type&&"@"===e.value)return"punctuator";switch(e.type){case"NumericLiteral":return"number";case"StringLiteral":case"JSXString":case"NoSubstitutionTemplate":return"string";case"RegularExpressionLiteral":return"regex";case"Punctuator":case"JSXPunctuator":return"punctuator";case"MultiLineComment":case"SingleLineComment":return"comment";case"Invalid":case"JSXInvalid":return"invalid";case"JSXIdentifier":return"jsxIdentifier";default:return"uncolored"}};Iz=function(e){var t,r,n,i,a,s,o;return rC(this,function(u){switch(u.label){case 0:t=!0,r=!1,n=void 0,u.label=1;case 1:u.trys.push([1,17,18,19]),i=(0,TE.default)(e,{jsx:!0})[Symbol.iterator](),u.label=2;case 2:if(t=(a=i.next()).done)return[3,16];switch((s=a.value).type){case"TemplateHead":return[3,3];case"TemplateMiddle":return[3,6];case"TemplateTail":return[3,10]}return[3,13];case 3:return[4,{type:"string",value:s.value.slice(0,-2)}];case 4:case 8:return u.sent(),[4,{type:"punctuator",value:"${"}];case 5:case 9:case 12:return u.sent(),[3,15];case 6:case 10:return[4,{type:"punctuator",value:"}"}];case 7:return u.sent(),[4,{type:"string",value:s.value.slice(1,-2)}];case 11:return u.sent(),[4,{type:"string",value:s.value.slice(1)}];case 13:return[4,{type:TN(s),value:s.value}];case 14:u.sent(),u.label=15;case 15:return t=!0,[3,2];case 16:return[3,19];case 17:return o=u.sent(),r=!0,n=o,[3,19];case 18:try{t||null==i.return||i.return()}finally{if(r)throw n}return[7];case 19:return[2]}})};var TO=/\r\n|[\n\r\u2028\u2029]/;function TD(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.forceColor||((void 0===eV?"undefined":rP(eV))!=="object"||"0"!==eV.env.FORCE_COLOR&&"false"!==eV.env.FORCE_COLOR)&&TT.default.isColorSupported&&r.highlightCode,i=n?TA:Tk,a=function(e,t,r){var n=Object.assign({column:0,line:-1},e.start),i=Object.assign({},n,e.end),a=r||{},s=a.linesAbove,o=a.linesBelow,u=n.line,l=n.column,c=i.line,p=i.column,d=Math.max(u-((void 0===s?2:s)+1),0),f=Math.min(t.length,c+(void 0===o?3:o));-1===u&&(d=0),-1===c&&(f=t.length);var h=c-u,m={};if(h)for(var y=0;y<=h;y++){var v=y+u;if(l){if(0===y){var g=t[v-1].length;m[v]=[l,g-l+1]}else if(y===h)m[v]=[0,p];else{var b=t[v-y].length;m[v]=[0,b]}}else m[v]=!0}else l===p?l?m[u]=[l,0]:m[u]=!0:m[u]=[l,p-l];return{start:d,end:f,markerLines:m}}(t,e.split(TO),r),s=a.start,o=a.end,u=a.markerLines,l=t.start&&"number"==typeof t.start.column,c=String(o).length,p=(n?function(e){if(""===e)return"";var t="",r=!0,n=!1,i=void 0;try{for(var a,s=Iz(e)[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)!function(){var e=a.value,r=e.type,n=e.value;r in TA?t+=n.split(Tw).map(function(e){return TA[r](e)}).join("\n"):t+=n}()}catch(e){n=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw i}}return t}(e):e).split(TO,o).slice(s,o).map(function(e,t){var n=s+1+t,a=" ".concat(n).slice(-c),o=" ".concat(a," |"),l=u[n],p=!u[n+1];if(!l)return" ".concat(i.gutter(o)).concat(e.length>0?" ".concat(e):"");var d="";if(Array.isArray(l)){var f=e.slice(0,Math.max(l[0]-1,0)).replace(/[^\t]/g," "),h=l[1]||1;d=["\n ",i.gutter(o.replace(/\d/g," "))," ",f,i.marker("^").repeat(h)].join(""),p&&r.message&&(d+=" "+i.message(r.message))}return[i.marker(">"),i.gutter(o),e.length>0?" ".concat(e):"",d].join("")}).join("\n");return(r.message&&!l&&(p="".concat(" ".repeat(c+1)).concat(r.message,"\n").concat(p)),n)?i.reset(p):p}var TL=r8.assertExpressionStatement;function TM(e){return{code:function(e){return"/* @babel/template */;\n".concat(e)},validate:function(){},unwrap:function(t){return e(t.program.body.slice(1))}}}var TF=TM(function(e){return e.length>1?e:e[0]}),TB=TM(function(e){return e}),TR=TM(function(e){if(0===e.length)throw Error("Found nothing to return.");if(e.length>1)throw Error("Found multiple statements but wanted one");return e[0]}),Tj={code:function(e){return"(\n".concat(e,"\n)")},validate:function(e){if(e.program.body.length>1)throw Error("Found multiple statements but wanted one");if(0===Tj.unwrap(e).start)throw Error("Parse result included parens.")},unwrap:function(e){var t=rT(e.program.body,1)[0];return TL(t),t.expression}},TU=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"];function TV(e,t){var r=t.placeholderWhitelist,n=void 0===r?e.placeholderWhitelist:r,i=t.placeholderPattern,a=void 0===i?e.placeholderPattern:i,s=t.preserveComments,o=void 0===s?e.preserveComments:s,u=t.syntacticPlaceholders,l=void 0===u?e.syntacticPlaceholders:u;return{parser:Object.assign({},e.parser,t.parser),placeholderWhitelist:n,placeholderPattern:a,preserveComments:o,syntacticPlaceholders:l}}function TW(e){if(null!=e&&(void 0===e?"undefined":rP(e))!=="object")throw Error("Unknown template options.");var t=e||{},r=t.placeholderWhitelist,n=t.placeholderPattern,i=t.preserveComments,a=t.syntacticPlaceholders,s=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(t,TU);if(null!=r&&!rS(r,Set))throw Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(null!=n&&!rS(n,RegExp)&&!1!==n)throw Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(null!=i&&"boolean"!=typeof i)throw Error("'.preserveComments' must be a boolean, null, or undefined");if(null!=a&&"boolean"!=typeof a)throw Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(!0===a&&(null!=r||null!=n))throw Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return{parser:s,placeholderWhitelist:r||void 0,placeholderPattern:null==n?void 0:n,preserveComments:null==i?void 0:i,syntacticPlaceholders:null==a?void 0:a}}function Tq(e){if(Array.isArray(e))return e.reduce(function(e,t,r){return e["$"+r]=t,e},{});if((void 0===e?"undefined":rP(e))==="object"||null==e)return e||void 0;throw Error("Template replacements must be an array, object, null, or undefined")}var TJ=r8.isCallExpression,TX=r8.isExpressionStatement,TG=r8.isFunction,TK=r8.isIdentifier,TH=r8.isJSXIdentifier,Tz=r8.isNewExpression,T$=r8.isPlaceholder,TY=r8.isStatement,TQ=r8.isStringLiteral,TZ=r8.removePropertiesDeep,T0=r8.traverse,T1=/^[_$A-Z0-9]+$/;function T2(e,t,r){var n=r.placeholderWhitelist,i=r.placeholderPattern,a=r.preserveComments,s=r.syntacticPlaceholders,o=function(e,t,r){var n=(t.plugins||[]).slice();!1!==r&&n.push("placeholders"),t=Object.assign({allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,sourceType:"module"},t,{plugins:n});try{return Tv(e,t)}catch(t){var i=t.loc;throw i&&(t.message+="\n"+TD(e,{start:i}),t.code="BABEL_TEMPLATE_PARSE_ERROR"),t}}(t,r.parser,s);TZ(o,{preserveComments:a}),e.validate(o);var u={syntactic:{placeholders:[],placeholderNames:/* @__PURE__ */new Set},legacy:{placeholders:[],placeholderNames:/* @__PURE__ */new Set},placeholderWhitelist:n,placeholderPattern:i,syntacticPlaceholders:s};return T0(o,T3,u),Object.assign({ast:o},u.syntactic.placeholders.length?u.syntactic:u.legacy)}function T3(e,t,r){var n,i,a,s=r.syntactic.placeholders.length>0;if(T$(e)){if(!1===r.syntacticPlaceholders)throw Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");i=e.name.name,s=!0}else if(s||r.syntacticPlaceholders)return;else if(TK(e)||TH(e))i=e.name;else{if(!TQ(e))return;i=e.value}if(s&&(null!=r.placeholderPattern||null!=r.placeholderWhitelist))throw Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(s||!1!==r.placeholderPattern&&(r.placeholderPattern||T1).test(i)||(null===(n=r.placeholderWhitelist)||void 0===n?void 0:n.has(i))){var o=(t=t.slice())[t.length-1],u=o.node,l=o.key;TQ(e)||T$(e,{expectedNode:"StringLiteral"})?a="string":Tz(u)&&"arguments"===l||TJ(u)&&"arguments"===l||TG(u)&&"params"===l?a="param":TX(u)&&!T$(e)?(a="statement",t=t.slice(0,-1)):a=TY(e)&&T$(e)?"statement":"other";var c=s?r.syntactic:r.legacy,p=c.placeholders,d=c.placeholderNames;p.push({name:i,type:a,resolve:function(e){return function(e,t){for(var r=e,n=0;n<t.length-1;n++){var i=t[n],a=i.key,s=i.index;r=void 0===s?r[a]:r[a][s]}var o=t[t.length-1];return{parent:r,key:o.key,index:o.index}}(e,t)},isDuplicate:d.has(i)}),d.add(i)}}var T4=r8.blockStatement,T5=r8.cloneNode,T8=r8.emptyStatement,T6=r8.expressionStatement,T9=r8.identifier,T7=r8.isStatement,Ee=r8.isStringLiteral,Et=r8.stringLiteral,Er=r8.validate;function En(e,t){var r=T5(e.ast);return t&&(e.placeholders.forEach(function(e){if(!Object.hasOwn(t,e.name)){var r=e.name;throw Error('Error: No substitution given for "'.concat(r,"\". If this is not meant to be a\n placeholder you may want to consider passing one of the following options to @babel/template:\n - { placeholderPattern: false, placeholderWhitelist: new Set(['").concat(r,"'])}\n - { placeholderPattern: /^").concat(r,"$/ }"))}}),Object.keys(t).forEach(function(t){if(!e.placeholderNames.has(t))throw Error('Unknown substitution "'.concat(t,'" given'))})),e.placeholders.slice().reverse().forEach(function(e){try{(function(e,t,r){e.isDuplicate&&(Array.isArray(r)?r=r.map(function(e){return T5(e)}):(void 0===r?"undefined":rP(r))==="object"&&(r=T5(r)));var n=e.resolve(t),i=n.parent,a=n.key,s=n.index;if("string"===e.type){if("string"==typeof r&&(r=Et(r)),!r||!Ee(r))throw Error("Expected string substitution")}else if("statement"===e.type)void 0===s?r?Array.isArray(r)?r=T4(r):"string"==typeof r?r=T6(T9(r)):T7(r)||(r=T6(r)):r=T8():!r||Array.isArray(r)||("string"==typeof r&&(r=T9(r)),T7(r)||(r=T6(r)));else if("param"===e.type){if("string"==typeof r&&(r=T9(r)),void 0===s)throw Error("Assertion failure.")}else if("string"==typeof r&&(r=T9(r)),Array.isArray(r))throw Error("Cannot replace single expression with an array.");function o(e,t,r){var n=e[t];e[t]=r,("Identifier"===n.type||"Placeholder"===n.type)&&(n.typeAnnotation&&(r.typeAnnotation=n.typeAnnotation),n.optional&&(r.optional=n.optional),n.decorators&&(r.decorators=n.decorators))}if(void 0===s)Er(i,a,r),o(i,a,r);else{var u=i[a].slice();"statement"===e.type||"param"===e.type?null==r?u.splice(s,1):Array.isArray(r)?u.splice.apply(u,[s,1].concat(r_(r))):o(u,s,r):o(u,s,r),Er(i,a,u),i[a]=u}})(e,r,t&&t[e.name]||null)}catch(t){throw t.message='@babel/template placeholder "'.concat(e.name,'": ').concat(t.message),t}}),r}function Ei(e,t,r){var n;return t=e.code(t),function(i){var a=Tq(i);return n||(n=T2(e,t,r)),e.unwrap(En(n,a))}}function Ea(e,t,r){var n=function(e,t,r){var n="BABEL_TPL$",i=t.join("");do n="$$"+n;while(i.includes(n));var a=function(e,t){for(var r=[],n=e[0],i=1;i<e.length;i++){var a="".concat(t).concat(i-1);r.push(a),n+=a+e[i]}return{names:r,code:n}}(t,n),s=a.names,o=a.code;return{metadata:T2(e,e.code(o),{parser:r.parser,placeholderWhitelist:new Set(s.concat(r.placeholderWhitelist?Array.from(r.placeholderWhitelist):[])),placeholderPattern:r.placeholderPattern,preserveComments:r.preserveComments,syntacticPlaceholders:r.syntacticPlaceholders}),names:s}}(e,t,r),i=n.metadata,a=n.names;return function(t){var r={};return t.forEach(function(e,t){r[a[t]]=e}),function(t){var n=Tq(t);return n&&Object.keys(n).forEach(function(e){if(Object.hasOwn(r,e))throw Error("Unexpected replacement overlap.")}),e.unwrap(En(i,n?Object.assign(n,r):r))}}}var Es=TW({placeholderPattern:!1});function Eo(e,t){var r=/* @__PURE__ */new WeakMap,n=/* @__PURE__ */new WeakMap,i=t||TW(null);return Object.assign(function(t){for(var n=arguments.length,a=Array(n>1?n-1:0),s=1;s<n;s++)a[s-1]=arguments[s];if("string"==typeof t){if(a.length>1)throw Error("Unexpected extra params.");return Eu(Ei(e,t,TV(i,TW(a[0]))))}if(Array.isArray(t)){var o=r.get(t);return o||(o=Ea(e,t,i),r.set(t,o)),Eu(o(a))}if((void 0===t?"undefined":rP(t))==="object"&&t){if(a.length>0)throw Error("Unexpected extra params.");return Eo(e,TV(i,TW(t)))}throw Error("Unexpected template param ".concat(void 0===t?"undefined":rP(t)))},{ast:function(t){for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];if("string"==typeof t){if(a.length>1)throw Error("Unexpected extra params.");return Ei(e,t,TV(TV(i,TW(a[0])),Es))()}if(Array.isArray(t)){var o=n.get(t);return o||(o=Ea(e,t,TV(i,Es)),n.set(t,o)),o(a)()}throw Error("Unexpected template param ".concat(void 0===t?"undefined":rP(t)))}})}function Eu(e){var t="";try{throw Error()}catch(e){e.stack&&(t=e.stack.split("\n").slice(3).join("\n"))}return function(r){try{return e(r)}catch(e){throw e.stack+="\n =============\n".concat(t),e}}}var El=Eo(TF),Ec=Eo(TR),Ep=Eo(TB),Ed=Eo(Tj),Ef=Eo({code:function(e){return e},validate:function(){},unwrap:function(e){return e.program}}),Eh=Object.assign(El.bind(void 0),{smart:El,statement:Ec,statements:Ep,expression:Ed,program:Ef,ast:El.ast}),Em=function e(){rf(this,e),this._indexes={__proto__:null},this.array=[]};function Ey(e,t){var r=e._indexes[t];if(void 0!==r)return r;var n=e.array,i=e._indexes,a=n.push(t);return i[t]=a-1}for(var Ev="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Eg=new Uint8Array(64),Eb=new Uint8Array(128),ES=0;ES<Ev.length;ES++){var Ex=Ev.charCodeAt(ES);Eg[ES]=Ex,Eb[Ex]=ES}function ET(e,t){var r=0,n=0,i=0;do r|=(31&(i=Eb[e.next()]))<<n,n+=5;while(32&i);var a=1&r;return r>>>=1,a&&(r=-0x80000000|-r),t+r}function EE(e,t,r){var n=t-r;n=n<0?-n<<1|1:n<<1;do{var i=31&n;(n>>>=5)>0&&(i|=32),e.write(Eg[i])}while(n>0);return t}function E_(e,t){return!(e.pos>=t)&&44!==e.peek()}var EP="undefined"!=typeof TextDecoder?/* @__PURE__ */new TextDecoder:{decode:function(e){return e1.from(e.buffer,e.byteOffset,e.byteLength).toString()}},EA=/*#__PURE__*/function(){function e(){rf(this,e),this.pos=0,this.out="",this.buffer=new Uint8Array(16384)}return rm(e,[{key:"write",value:function(e){var t=this.buffer;t[this.pos++]=e,16384===this.pos&&(this.out+=EP.decode(t),this.pos=0)}},{key:"flush",value:function(){var e=this.buffer,t=this.out,r=this.pos;return r>0?t+EP.decode(e.subarray(0,r)):t}}]),e}(),Ek=/*#__PURE__*/function(){function e(t){rf(this,e),this.pos=0,this.buffer=t}return rm(e,[{key:"next",value:function(){return this.buffer.charCodeAt(this.pos++)}},{key:"peek",value:function(){return this.buffer.charCodeAt(this.pos)}},{key:"indexOf",value:function(e){var t=this.buffer,r=this.pos,n=t.indexOf(e,r);return -1===n?t.length:n}}]),e}();function EC(e,t){return e[0]-t[0]}var Ew=/^[\w+.-]+:\/\//,EI=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,EN=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function EO(e){return e.startsWith("/")}function ED(e){return/^[.?#]/.test(e)}function EL(e){var t=EI.exec(e);return EM(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}function EM(e,t,r,n,i,a,s){return{scheme:e,user:t,host:r,port:n,path:i,query:a,hash:s,type:7}}function EF(e){if(e.startsWith("//")){var t,r,n=EL("http:"+e);return n.scheme="",n.type=6,n}if(EO(e)){var i=EL("http://foo.com"+e);return i.scheme="",i.host="",i.type=5,i}if(e.startsWith("file:"))return r=(t=EN.exec(e))[2],EM("file:","",t[1]||"","",EO(r)?r:"/"+r,t[3]||"",t[4]||"");if(Ew.test(e))return EL(e);var a=EL("http://foo.com/"+e);return a.scheme="",a.host="",a.type=e?e.startsWith("?")?3:e.startsWith("#")?2:4:1,a}function EB(e,t){for(var r=t<=4,n=e.path.split("/"),i=1,a=0,s=!1,o=1;o<n.length;o++){var u=n[o];if(!u){s=!0;continue}if(s=!1,"."!==u){if(".."===u){a?(s=!0,a--,i--):r&&(n[i++]=u);continue}n[i++]=u,a++}}for(var l="",c=1;c<i;c++)l+="/"+n[c];l&&(!s||l.endsWith("/.."))||(l+="/"),e.path=l}function ER(e,t){return t&&!t.endsWith("/")&&(t+="/"),function(e,t){if(!e&&!t)return"";var r=EF(e),n=r.type;if(t&&7!==n){var i=EF(t),a=i.type;switch(n){case 1:r.hash=i.hash;case 2:r.query=i.query;case 3:case 4:EB(i,i.type),"/"===r.path?r.path=i.path:r.path=function(e){if(e.endsWith("/.."))return e;var t=e.lastIndexOf("/");return e.slice(0,t+1)}(i.path)+r.path;case 5:r.user=i.user,r.host=i.host,r.port=i.port;case 6:r.scheme=i.scheme}a>n&&(n=a)}EB(r,n);var s=r.query+r.hash;switch(n){case 2:case 3:return s;case 4:var o=r.path.slice(1);if(!o)return s||".";if(ED(t||e)&&!ED(o))return"./"+o+s;return o+s;case 5:return r.path+s;default:return r.scheme+"//"+r.user+r.host+r.port+r.path+s}}(e,t)}function Ej(e,t){for(var r=t;r<e.length;r++)if(!function(e){for(var t=1;t<e.length;t++)if(e[t][0]<e[t-1][0])return!1;return!0}(e[r]))return r;return e.length}function EU(e,t){return e[0]-t[0]}var EV=!1,EW=function e(t,r){rf(this,e);var n="string"==typeof t;if(!n&&t._decodedMemo)return t;var i=n?JSON.parse(t):t,a=i.version,s=i.file,o=i.names,u=i.sourceRoot,l=i.sources,c=i.sourcesContent;this.version=a,this.file=s,this.names=o||[],this.sourceRoot=u,this.sources=l,this.sourcesContent=c,this.ignoreList=i.ignoreList||i.x_google_ignoreList||void 0;var p=ER(u||"",function(e){if(!e)return"";var t=e.lastIndexOf("/");return e.slice(0,t+1)}(r));this.resolvedSources=l.map(function(e){return ER(e||"",p)});var d=i.mappings;"string"==typeof d?(this._encoded=d,this._decoded=void 0):(this._encoded=void 0,this._decoded=function(e,t){var r,n=Ej(e,0);if(n===e.length)return e;t||(e=e.slice());for(var i=n;i<e.length;i=Ej(e,i+1))e[i]=(r=e[i],t||(r=r.slice()),r.sort(EU));return e}(d,n)),this._decodedMemo={lastKey:-1,lastNeedle:-1,lastIndex:-1},this._bySources=void 0,this._bySourceMemos=void 0};function Eq(e,t){var r,n,i,a,s=t.line,o=t.column,u=t.bias;if(--s<0)throw Error("`line` must be greater than 0 (lines start at line 1)");if(o<0)throw Error("`column` must be greater than or equal to 0 (columns start at column 0)");var l=e._decoded||(e._decoded=function(e){var t=e.length,r=new Ek(e),n=[],i=0,a=0,s=0,o=0,u=0;do{var l=r.indexOf(";"),c=[],p=!0,d=0;for(i=0;r.pos<l;){var f=void 0;(i=ET(r,i))<d&&(p=!1),d=i,E_(r,l)?(a=ET(r,a),s=ET(r,s),o=ET(r,o),f=E_(r,l)?[i,a,s,o,u=ET(r,u)]:[i,a,s,o]):f=[i],c.push(f),r.pos++}p||function(e){e.sort(EC)}(c),n.push(c),r.pos=l+1}while(r.pos<=t);return n}(e._encoded));if(s>=l.length)return EJ(null,null,null,null);var c=l[s],p=(r=e._decodedMemo,n=s,i=u||1,a=function(e,t,r,n){var i=r.lastKey,a=r.lastNeedle,s=r.lastIndex,o=0,u=e.length-1;if(n===i){if(t===a)return EV=-1!==s&&e[s][0]===t,s;t>=a?o=-1===s?0:s:u=s}return r.lastKey=n,r.lastNeedle=t,r.lastIndex=function(e,t,r,n){for(;r<=n;){var i=r+(n-r>>1),a=e[i][0]-t;if(0===a)return EV=!0,i;a<0?r=i+1:n=i-1}return EV=!1,r-1}(e,t,o,u)}(c,o,r,n),(EV?a=(-1===i?function(e,t,r){for(var n=r+1;n<e.length&&e[n][0]===t;r=n++);return r}:function(e,t,r){for(var n=r-1;n>=0&&e[n][0]===t;r=n--);return r})(c,o,a):-1===i&&a++,-1===a||a===c.length)?-1:a);if(-1===p)return EJ(null,null,null,null);var d=c[p];if(1===d.length)return EJ(null,null,null,null);var f=e.names;return EJ(e.resolvedSources[d[1]],d[2]+1,d[3],5===d.length?f[d[4]]:null)}function EJ(e,t,r,n){return{source:e,line:t,column:r,name:n}}var EX=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.file,n=t.sourceRoot;rf(this,e),this._names=new Em,this._sources=new Em,this._sourcesContent=[],this._mappings=[],this.file=r,this.sourceRoot=n,this._ignoreList=new Em};function EG(e,t,r){var n=e._sources;e._sourcesContent[Ey(n,t)]=r}function EK(e){var t=e._mappings,r=e._sources,n=e._sourcesContent,i=e._names,a=e._ignoreList;return function(e){for(var t=e.length,r=t,n=r-1;n>=0&&!(e[n].length>0);r=n,n--);r<t&&(e.length=r)}(t),{version:3,file:e.file||void 0,names:i.array,sourceRoot:e.sourceRoot||void 0,sources:r.array,sourcesContent:n,mappings:t,ignoreList:a.array}}function EH(e,t,r,n,i,a,s,o,u){var l=t._mappings,c=t._sources,p=t._sourcesContent,d=t._names,f=function(e,t){for(var r=e.length;r<=t;r++)e[r]=[];return e[t]}(l,r),h=function(e,t){for(var r=e.length,n=r-1;n>=0&&!(t>=e[n][0]);r=n--);return r}(f,n);if(!i){if(0===h||1===f[h-1].length)return;return Ez(f,h,[n])}var m=Ey(c,i),y=o?Ey(d,o):-1;if(m===p.length&&(p[m]=null!=u?u:null),!function(e,t,r,n,i,a){if(0===t)return!1;var s=e[t-1];return 1!==s.length&&r===s[1]&&n===s[2]&&i===s[3]&&a===(5===s.length?s[4]:-1)}(f,h,m,a,s,y))return Ez(f,h,o?[n,m,a,s,y]:[n,m,a,s])}function Ez(e,t,r){for(var n=e.length;n>t;n--)e[n]=e[n-1];e[t]=r}var E$=rJ(rH()),EY=/*#__PURE__*/function(){function e(t,r){rf(this,e),rX(this,"_map"),rX(this,"_rawMappings"),rX(this,"_sourceFileName"),rX(this,"_lastGenLine",0),rX(this,"_lastSourceLine",0),rX(this,"_lastSourceColumn",0),rX(this,"_inputMap");var n=this._map=new EX({sourceRoot:t.sourceRoot});if(this._sourceFileName=null===(a=t.sourceFileName)||void 0===a?void 0:a.replace(/\\/g,"/"),this._rawMappings=void 0,t.inputSourceMap){this._inputMap=new EW(t.inputSourceMap);var i=this._inputMap.resolvedSources;if(i.length)for(var a,s,o=0;o<i.length;o++)EG(n,i[o],null===(s=this._inputMap.sourcesContent)||void 0===s?void 0:s[o])}if("string"!=typeof r||t.inputSourceMap){if((void 0===r?"undefined":rP(r))==="object"){var u=!0,l=!1,c=void 0;try{for(var p,d=Object.keys(r)[Symbol.iterator]();!(u=(p=d.next()).done);u=!0){var f=p.value;EG(n,f.replace(/\\/g,"/"),r[f])}}catch(e){l=!0,c=e}finally{try{u||null==d.return||d.return()}finally{if(l)throw c}}}}else EG(n,this._sourceFileName,r)}return rm(e,[{key:"get",value:function(){var e;return Object.assign(Object.assign({},e=EK(this._map)),{mappings:function(e){for(var t=new EA,r=0,n=0,i=0,a=0,s=0;s<e.length;s++){var o=e[s];if(s>0&&t.write(59),0!==o.length)for(var u=0,l=0;l<o.length;l++){var c=o[l];l>0&&t.write(44),u=EE(t,c[0],u),1!==c.length&&(r=EE(t,c[1],r),n=EE(t,c[2],n),i=EE(t,c[3],i),4!==c.length&&(a=EE(t,c[4],a)))}}return t.flush()}(e.mappings)})}},{key:"getDecoded",value:function(){return EK(this._map)}},{key:"getRawMappings",value:function(){return this._rawMappings||(this._rawMappings=function(e){for(var t=[],r=e._mappings,n=e._sources,i=e._names,a=0;a<r.length;a++)for(var s=r[a],o=0;o<s.length;o++){var u=s[o],l={line:a+1,column:u[0]},c=void 0,p=void 0,d=void 0;1!==u.length&&(c=n.array[u[1]],p={line:u[2]+1,column:u[3]},5===u.length&&(d=i.array[u[4]])),t.push({generated:l,source:c,original:p,name:d})}return t}(this._map))}},{key:"mark",value:function(e,t,r,n,i,a){if(this._rawMappings=void 0,null!=t){if(this._inputMap){if(!(f=Eq(this._inputMap,{line:t,column:r})).name&&i){var s,o,u,l,c,p,d,f,h=Eq(this._inputMap,i);h.name&&(n=h.name)}}else f={source:(null==a?void 0:a.replace(/\\/g,"/"))||this._sourceFileName,line:t,column:r}}d=this._map,o=(s={name:n,generated:e,source:null==f?void 0:f.source,original:f}).generated,u=s.source,l=s.original,c=s.name,p=s.content,u?EH(!0,d,o.line-1,o.column,u,l.line-1,l.column,c,p):EH(!0,d,o.line-1,o.column,null,null,null,null,null)}}]),e}(),EQ=/*#__PURE__*/function(){function e(t,r){rf(this,e),rX(this,"_map",null),rX(this,"_buf",""),rX(this,"_str",""),rX(this,"_appendCount",0),rX(this,"_last",0),rX(this,"_queue",[]),rX(this,"_queueCursor",0),rX(this,"_canMarkIdName",!0),rX(this,"_indentChar",""),rX(this,"_fastIndentations",[]),rX(this,"_position",{line:1,column:0}),rX(this,"_sourcePosition",{identifierName:void 0,identifierNamePos:void 0,line:void 0,column:void 0,filename:void 0}),this._map=t,this._indentChar=r;for(var n=0;n<64;n++)this._fastIndentations.push(r.repeat(n));this._allocQueue()}return rm(e,[{key:"_allocQueue",value:function(){for(var e=this._queue,t=0;t<16;t++)e.push({char:0,repeat:1,line:void 0,column:void 0,identifierName:void 0,identifierNamePos:void 0,filename:""})}},{key:"_pushQueue",value:function(e,t,r,n,i){var a=this._queueCursor;a===this._queue.length&&this._allocQueue();var s=this._queue[a];s.char=e,s.repeat=t,s.line=r,s.column=n,s.filename=i,this._queueCursor++}},{key:"_popQueue",value:function(){if(0===this._queueCursor)throw Error("Cannot pop from empty queue");return this._queue[--this._queueCursor]}},{key:"get",value:function(){this._flush();var e=this._map,t={code:(this._buf+this._str).trimRight(),decodedMap:null==e?void 0:e.getDecoded(),get __mergedMap(){return this.map},get map(){var r=e?e.get():null;return t.map=r,r},set map(value){Object.defineProperty(t,"map",{value:value,writable:!0})},get rawMappings(){var n=null==e?void 0:e.getRawMappings();return t.rawMappings=n,n},set rawMappings(value){Object.defineProperty(t,"rawMappings",{value:value,writable:!0})}};return t}},{key:"append",value:function(e,t){this._flush(),this._append(e,this._sourcePosition,t)}},{key:"appendChar",value:function(e){this._flush(),this._appendChar(e,1,this._sourcePosition)}},{key:"queue",value:function(e){if(10===e)for(;0!==this._queueCursor;){var t=this._queue[this._queueCursor-1].char;if(32!==t&&9!==t)break;this._queueCursor--}var r=this._sourcePosition;this._pushQueue(e,1,r.line,r.column,r.filename)}},{key:"queueIndentation",value:function(e){0!==e&&this._pushQueue(-1,e,void 0,void 0,void 0)}},{key:"_flush",value:function(){for(var e=this._queueCursor,t=this._queue,r=0;r<e;r++){var n=t[r];this._appendChar(n.char,n.repeat,n)}this._queueCursor=0}},{key:"_appendChar",value:function(e,t,r){if(this._last=e,-1===e){var n=this._fastIndentations[t];void 0!==n?this._str+=n:this._str+=t>1?this._indentChar.repeat(t):this._indentChar}else this._str+=t>1?String.fromCharCode(e).repeat(t):String.fromCharCode(e);10!==e?(this._mark(r.line,r.column,r.identifierName,r.identifierNamePos,r.filename),this._position.column+=t):(this._position.line++,this._position.column=0),this._canMarkIdName&&(r.identifierName=void 0,r.identifierNamePos=void 0)}},{key:"_append",value:function(e,t,r){var n=e.length,i=this._position;if(this._last=e.charCodeAt(n-1),++this._appendCount>4096?(this._str,this._buf+=this._str,this._str=e,this._appendCount=0):this._str+=e,!r&&!this._map){i.column+=n;return}var a=t.column,s=t.identifierName,o=t.identifierNamePos,u=t.filename,l=t.line;(null!=s||null!=o)&&this._canMarkIdName&&(t.identifierName=void 0,t.identifierNamePos=void 0);var c=e.indexOf("\n"),p=0;for(0!==c&&this._mark(l,a,s,o,u);-1!==c;)i.line++,i.column=0,(p=c+1)<n&&void 0!==l&&this._mark(++l,0,null,null,u),c=e.indexOf("\n",p);i.column+=n-p}},{key:"_mark",value:function(e,t,r,n,i){var a;null===(a=this._map)||void 0===a||a.mark(this._position,e,t,r,n,i)}},{key:"removeTrailingNewline",value:function(){var e=this._queueCursor;0!==e&&10===this._queue[e-1].char&&this._queueCursor--}},{key:"removeLastSemicolon",value:function(){var e=this._queueCursor;0!==e&&59===this._queue[e-1].char&&this._queueCursor--}},{key:"getLastChar",value:function(){var e=this._queueCursor;return 0!==e?this._queue[e-1].char:this._last}},{key:"getNewlineCount",value:function(){var e=this._queueCursor,t=0;if(0===e)return 10===this._last?1:0;for(var r=e-1;r>=0&&10===this._queue[r].char;r--)t++;return t===e&&10===this._last?t+1:t}},{key:"endsWithCharAndNewline",value:function(){var e=this._queue,t=this._queueCursor;if(0!==t)return 10!==e[t-1].char?void 0:t>1?e[t-2].char:this._last}},{key:"hasContent",value:function(){return 0!==this._queueCursor||!!this._last}},{key:"exactSource",value:function(e,t){if(!this._map){t();return}this.source("start",e);var r=e.identifierName,n=this._sourcePosition;r&&(this._canMarkIdName=!1,n.identifierName=r),t(),r&&(this._canMarkIdName=!0,n.identifierName=void 0,n.identifierNamePos=void 0),this.source("end",e)}},{key:"source",value:function(e,t){this._map&&this._normalizePosition(e,t,0)}},{key:"sourceWithOffset",value:function(e,t,r){this._map&&this._normalizePosition(e,t,r)}},{key:"_normalizePosition",value:function(e,t,r){var n=t[e],i=this._sourcePosition;n&&(i.line=n.line,i.column=Math.max(n.column+r,0),i.filename=t.filename)}},{key:"getCurrentColumn",value:function(){for(var e=this._queue,t=this._queueCursor,r=-1,n=0,i=0;i<t;i++){var a=e[i];10===a.char&&(r=n),n+=a.repeat}return -1===r?this._position.column+n:n-1-r}},{key:"getCurrentLine",value:function(){for(var e=0,t=this._queue,r=0;r<this._queueCursor;r++)10===t[r].char&&e++;return this._position.line+e}}]),e}(),EZ=r8.FLIPPED_ALIAS_KEYS,E0=r8.isArrayExpression,E1=r8.isAssignmentExpression,E2=r8.isBinary,E3=r8.isBlockStatement,E4=r8.isCallExpression,E5=r8.isFunction,E8=r8.isIdentifier,E6=r8.isLiteral,E9=r8.isMemberExpression,E7=r8.isObjectExpression,_e=r8.isOptionalCallExpression,_t=r8.isOptionalMemberExpression,_r=r8.isStringLiteral;function _n(e){return function e(t,r){return t&&(E9(t)||_t(t)?(e(t.object,r),t.computed&&e(t.property,r)):E2(t)||E1(t)?(e(t.left,r),e(t.right,r)):E4(t)||_e(t)?(r.hasCall=!0,e(t.callee,r)):E5(t)?r.hasFunction=!0:E8(t)&&(r.hasHelper=r.hasHelper||t.callee&&_i(t.callee))),r}(e,{hasCall:!1,hasFunction:!1,hasHelper:!1})}function _i(e){return!!e&&(E9(e)?_i(e.object)||_i(e.property):E8(e)?"require"===e.name||95===e.name.charCodeAt(0):E4(e)?_i(e.callee):!!(E2(e)||E1(e))&&(E8(e.left)&&_i(e.left)||_i(e.right)))}var _a={AssignmentExpression:function(e){var t=_n(e.right);if(t.hasCall&&t.hasHelper||t.hasFunction)return t.hasFunction?3:2},SwitchCase:function(e,t){return(e.consequent.length||t.cases[0]===e?1:0)|(e.consequent.length||t.cases[t.cases.length-1]!==e?0:2)},LogicalExpression:function(e){if(E5(e.left)||E5(e.right))return 2},Literal:function(e){if(_r(e)&&"use strict"===e.value)return 2},CallExpression:function(e){if(E5(e.callee)||_i(e))return 3},OptionalCallExpression:function(e){if(E5(e.callee))return 3},VariableDeclaration:function(e){for(var t=0;t<e.declarations.length;t++){var r,n=e.declarations[t],i=_i(n.id)&&!(E6(r=n.init)||E7(r)||E0(r)||E8(r)||E9(r));if(!i&&n.init){var a=_n(n.init);i=_i(n.init)&&a.hasCall||a.hasFunction}if(i)return 3}},IfStatement:function(e){if(E3(e.consequent))return 3}};_a.ObjectProperty=_a.ObjectTypeProperty=_a.ObjectMethod=function(e,t){if(t.properties[0]===e)return 1},_a.ObjectTypeCallProperty=function(e,t){var r;if(t.callProperties[0]===e&&!(null===(r=t.properties)||void 0===r?void 0:r.length))return 1},_a.ObjectTypeIndexer=function(e,t){var r,n;if(t.indexers[0]===e&&!(null===(r=t.properties)||void 0===r?void 0:r.length)&&!(null===(n=t.callProperties)||void 0===n?void 0:n.length))return 1},_a.ObjectTypeInternalSlot=function(e,t){var r,n,i;if(t.internalSlots[0]===e&&!(null===(r=t.properties)||void 0===r?void 0:r.length)&&!(null===(n=t.callProperties)||void 0===n?void 0:n.length)&&!(null===(i=t.indexers)||void 0===i?void 0:i.length))return 1},[["Function",!0],["Class",!0],["Loop",!0],["LabeledStatement",!0],["SwitchStatement",!0],["TryStatement",!0]].forEach(function(e){var t=rT(e,2),r=t[0],n=t[1];[r].concat(EZ[r]||[]).forEach(function(e){var t=n?3:0;_a[e]=function(){return t}})});var _s=r8.isArrayTypeAnnotation,_o=r8.isBinaryExpression,_u=r8.isCallExpression,_l=r8.isForOfStatement,_c=r8.isIndexedAccessType,_p=r8.isMemberExpression,_d=r8.isObjectPattern,_f=r8.isOptionalMemberExpression,_h=r8.isYieldExpression,_m=r8.isStatement,_y=/* @__PURE__ */new Map([["||",0],["??",0],["|>",0],["&&",1],["|",2],["^",3],["&",4],["==",5],["===",5],["!=",5],["!==",5],["<",6],[">",6],["<=",6],[">=",6],["in",6],["instanceof",6],[">>",7],["<<",7],[">>>",7],["+",8],["-",8],["*",9],["/",9],["%",9],["**",10]]);function _v(e,t){return"BinaryExpression"===t||"LogicalExpression"===t?_y.get(e.operator):"TSAsExpression"===t||"TSSatisfiesExpression"===t?_y.get("in"):void 0}function _g(e){return"TSAsExpression"===e||"TSSatisfiesExpression"===e||"TSTypeAssertion"===e}var _b=function(e,t){var r=t.type;return("ClassDeclaration"===r||"ClassExpression"===r)&&t.superClass===e},_S=function(e,t){var r=t.type;return("MemberExpression"===r||"OptionalMemberExpression"===r)&&t.object===e||("CallExpression"===r||"OptionalCallExpression"===r||"NewExpression"===r)&&t.callee===e||"TaggedTemplateExpression"===r&&t.tag===e||"TSNonNullExpression"===r};function _x(e){return!!(e&(_j.expressionStatement|_j.arrowBody))}function _T(e,t){var r=t.type;if("BinaryExpression"===e.type&&"**"===e.operator&&"BinaryExpression"===r&&"**"===t.operator)return t.left===e;if(_b(e,t)||_S(e,t)||"UnaryExpression"===r||"SpreadElement"===r||"AwaitExpression"===r)return!0;var n=_v(t,r);if(null!=n){var i=_v(e,e.type);if(n===i&&"BinaryExpression"===r&&t.right===e||n>i)return!0}}function _E(e,t){var r=t.type;return"ArrayTypeAnnotation"===r||"NullableTypeAnnotation"===r||"IntersectionTypeAnnotation"===r||"UnionTypeAnnotation"===r}function __(e,t){return("AssignmentExpression"===t.type||"AssignmentPattern"===t.type)&&t.left===e||"BinaryExpression"===t.type&&("|"===t.operator||"&"===t.operator)&&e===t.left||_T(e,t)}function _P(e,t){var r=t.type;return"TSArrayType"===r||"TSOptionalType"===r||"TSIntersectionType"===r||"TSRestType"===r}function _A(e,t){var r=t.type;return"BinaryExpression"===r||"LogicalExpression"===r||"UnaryExpression"===r||"SpreadElement"===r||_S(e,t)||"AwaitExpression"===r&&_h(e)||"ConditionalExpression"===r&&e===t.test||_b(e,t)||_g(r)}function _k(e,t){return _S(e,t)||_o(t)&&"**"===t.operator&&t.left===e||_b(e,t)}function _C(e,t){var r=t.type;return!!("UnaryExpression"===r||"SpreadElement"===r||"BinaryExpression"===r||"LogicalExpression"===r||"ConditionalExpression"===r&&t.test===e||"AwaitExpression"===r||_g(r))||_k(e,t)}function _w(e,t){return _u(t)&&t.callee===e||_p(t)&&t.object===e}var _I=/* @__PURE__ */Object.freeze({__proto__:null,ArrowFunctionExpression:_C,AssignmentExpression:function(e,t,r){return!!(_x(r)&&_d(e.left))||_C(e,t)},AwaitExpression:_A,Binary:_T,BinaryExpression:function(e,t,r,n){return"in"===e.operator&&n},ClassExpression:function(e,t,r){return!!(r&(_j.expressionStatement|_j.exportDefault))},ConditionalExpression:_C,DoExpression:function(e,t,r){return!e.async&&!!(r&_j.expressionStatement)},FunctionExpression:function(e,t,r){return!!(r&(_j.expressionStatement|_j.exportDefault))},FunctionTypeAnnotation:function(e,t,r){var n=t.type;return"UnionTypeAnnotation"===n||"IntersectionTypeAnnotation"===n||"ArrayTypeAnnotation"===n||!!(r&_j.arrowFlowReturnType)},Identifier:function(e,t,r,n,i){var a,s=t.type;if((null===(a=e.extra)||void 0===a?void 0:a.parenthesized)&&"AssignmentExpression"===s&&t.left===e){var o=t.right.type;if(("FunctionExpression"===o||"ClassExpression"===o)&&null==t.right.id)return!0}return(!i||i(e)===e.name)&&("let"===e.name?!!(_p(t,{object:e,computed:!0})||_f(t,{object:e,computed:!0,optional:!1}))&&!!(r&(_j.expressionStatement|_j.forHead|_j.forInHead))||!!(r&_j.forOfHead):"async"===e.name&&_l(t,{left:e,await:!1}))},IntersectionTypeAnnotation:_E,LogicalExpression:function(e,t){var r=t.type;if(_g(r))return!0;if("LogicalExpression"!==r)return!1;switch(e.operator){case"||":return"??"===t.operator||"&&"===t.operator;case"&&":return"??"===t.operator;case"??":return"??"!==t.operator}},NullableTypeAnnotation:function(e,t){return _s(t)},ObjectExpression:function(e,t,r){return _x(r)},OptionalCallExpression:_w,OptionalIndexedAccessType:function(e,t){return _c(t)&&t.objectType===e},OptionalMemberExpression:_w,SequenceExpression:function(e,t){var r=t.type;return"SequenceExpression"!==r&&"ParenthesizedExpression"!==r&&("MemberExpression"!==r||t.property!==e)&&("OptionalMemberExpression"!==r||t.property!==e)&&"TemplateLiteral"!==r&&("ClassDeclaration"===r||("ForOfStatement"===r?t.right===e:"ExportDefaultDeclaration"===r||!_m(t)))},TSAsExpression:__,TSInferType:function(e,t){var r=t.type;return"TSArrayType"===r||"TSOptionalType"===r},TSInstantiationExpression:function(e,t){var r=t.type;return("CallExpression"===r||"OptionalCallExpression"===r||"NewExpression"===r||"TSInstantiationExpression"===r)&&!!t.typeParameters},TSIntersectionType:_P,TSSatisfiesExpression:__,TSTypeAssertion:_k,TSUnionType:_P,UnaryLike:_k,UnionTypeAnnotation:_E,UpdateExpression:function(e,t){return _S(e,t)||_b(e,t)},YieldExpression:_A}),_N=r8.FLIPPED_ALIAS_KEYS,_O=r8.VISITOR_KEYS,_D=r8.isCallExpression,_L=r8.isDecorator,_M=r8.isExpressionStatement,_F=r8.isMemberExpression,_B=r8.isNewExpression,_R=r8.isParenthesizedExpression,_j={expressionStatement:1,arrowBody:2,exportDefault:4,forHead:8,forInHead:16,forOfHead:32,arrowFlowReturnType:64};function _U(e){var t=/* @__PURE__ */new Map;function r(e,r){var n=t.get(e);t.set(e,n?function(e,t,i,a,s){var o;return null!==(o=n(e,t,i,a,s))&&void 0!==o?o:r(e,t,i,a,s)}:r)}var n=!0,i=!1,a=void 0;try{for(var s,o=Object.keys(e)[Symbol.iterator]();!(n=(s=o.next()).done);n=!0){var u=s.value,l=_N[u];if(l){var c=!0,p=!1,d=void 0;try{for(var f,h=l[Symbol.iterator]();!(c=(f=h.next()).done);c=!0){var m=f.value;r(m,e[u])}}catch(e){p=!0,d=e}finally{try{c||null==h.return||h.return()}finally{if(p)throw d}}}else r(u,e[u])}}catch(e){i=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}return t}var _V=_U(_I),_W=_U(_a);function _q(e,t,r){if(!e)return!1;_M(e)&&(e=e.expression);var n,i=null===(n=_W.get(e.type))||void 0===n?void 0:n(e,t);return"number"==typeof i&&(i&r)!=0}function _J(e){switch(e.type){case"Identifier":return!0;case"MemberExpression":return!e.computed&&"Identifier"===e.property.type&&_J(e.object);default:return!1}}function _X(e,t){for(var r=_O[e.type],n=r.length-1;n>=0;n--){var i=e[r[n]];if(i===t)return!0;if(Array.isArray(i)){for(var a=i.length-1;a>=0&&null===i[a];)a--;return a>=0&&i[a]===t}if(i)break}return!1}var _G=/* @__PURE__ */Object.freeze({__proto__:null,TokenContext:_j,isLastChild:_X,needsParens:function(e,t,r,n,i){var a;return!!t&&(!!(_B(t)&&t.callee===e&&function e(t){return!!_D(t)||_F(t)&&e(t.object)}(e))||(_L(t)?!_J(e)&&!(_D(e)&&_J(e.callee))&&!_R(e):null===(a=_V.get(e.type))||void 0===a?void 0:a(e,t,r,n,i)))},needsWhitespace:_q,needsWhitespaceAfter:function(e,t){return _q(e,t,2)},needsWhitespaceBefore:function(e,t){return _q(e,t,1)}}),_K=r8.traverseFast,_H=r8.VISITOR_KEYS,_z=/*#__PURE__*/function(){function e(t,r,n){var i=this;rf(this,e),rX(this,"_tokens"),rX(this,"_source"),rX(this,"_nodesToTokenIndexes",/* @__PURE__ */new Map),rX(this,"_nodesOccurrencesCountCache",/* @__PURE__ */new Map),rX(this,"_tokensCache",/* @__PURE__ */new Map),this._tokens=r,this._source=n,_K(t,function(e){var t=i._getTokensIndexesOfNode(e);t.length>0&&i._nodesToTokenIndexes.set(e,t)}),this._tokensCache=null}return rm(e,[{key:"has",value:function(e){return this._nodesToTokenIndexes.has(e)}},{key:"getIndexes",value:function(e){return this._nodesToTokenIndexes.get(e)}},{key:"find",value:function(e,t){var r=this._nodesToTokenIndexes.get(e);if(r)for(var n=0;n<r.length;n++){var i=r[n],a=this._tokens[i];if(t(a,i))return a}return null}},{key:"findLastIndex",value:function(e,t){var r=this._nodesToTokenIndexes.get(e);if(r)for(var n=r.length-1;n>=0;n--){var i=r[n];if(t(this._tokens[i],i))return i}return -1}},{key:"findMatching",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=this._nodesToTokenIndexes.get(e);if(n){var i=0,a=r;if(a>1){var s=this._nodesOccurrencesCountCache.get(e);s&&s.test===t&&s.count<a&&(i=s.i+1,r-=s.count+1)}for(;i<n.length;i++){var o=this._tokens[n[i]];if(this.matchesOriginal(o,t)){if(0===r)return a>0&&this._nodesOccurrencesCountCache.set(e,{test:t,count:a,i:i}),o;r--}}}return null}},{key:"matchesOriginal",value:function(e,t){return e.end-e.start===t.length&&(null!=e.value?e.value===t:this._source.startsWith(t,e.start))}},{key:"startMatches",value:function(e,t){var r=this._nodesToTokenIndexes.get(e);if(!r)return!1;var n=this._tokens[r[0]];return n.start===e.start&&this.matchesOriginal(n,t)}},{key:"endMatches",value:function(e,t){var r=this._nodesToTokenIndexes.get(e);if(!r)return!1;var n=this._tokens[r[r.length-1]];return n.end===e.end&&this.matchesOriginal(n,t)}},{key:"_getTokensIndexesOfNode",value:function(e){if(null==e.start||null==e.end)return[];var t=this._findTokensOfNode(e,0,this._tokens.length-1),r=t.first,n=t.last,i=r,a=function(e){var t,r,n,i,a,s,o,u,l;return rC(this,function(c){switch(c.label){case 0:if("TemplateLiteral"!==e.type)return[3,7];return[4,e.quasis[0]];case 1:c.sent(),t=1,c.label=2;case 2:if(!(t<e.quasis.length))return[3,6];return[4,e.expressions[t-1]];case 3:return c.sent(),[4,e.quasis[t]];case 4:c.sent(),c.label=5;case 5:return t++,[3,2];case 6:return[2];case 7:r=_H[e.type],n=!0,i=!1,a=void 0,c.label=8;case 8:c.trys.push([8,15,16,17]),s=r[Symbol.iterator](),c.label=9;case 9:if(n=(o=s.next()).done)return[3,14];if(!(u=e[o.value]))return[3,13];if(!Array.isArray(u))return[3,11];return[5,function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(u)];case 10:return c.sent(),[3,13];case 11:return[4,u];case 12:c.sent(),c.label=13;case 13:return n=!0,[3,9];case 14:return[3,17];case 15:return l=c.sent(),i=!0,a=l,[3,17];case 16:try{n||null==s.return||s.return()}finally{if(i)throw a}return[7];case 17:return[2]}})}(e);("ExportNamedDeclaration"===e.type||"ExportDefaultDeclaration"===e.type)&&e.declaration&&"ClassDeclaration"===e.declaration.type&&a.next();var s=[],o=!0,u=!1,l=void 0;try{for(var c,p=a[Symbol.iterator]();!(o=(c=p.next()).done);o=!0){var d=c.value;if(null!=d&&null!=d.start&&null!=d.end){for(var f=this._findTokensOfNode(d,i,n),h=f.first,m=i;m<h;m++)s.push(m);i=f.last+1}}}catch(e){u=!0,l=e}finally{try{o||null==p.return||p.return()}finally{if(u)throw l}}for(var y=i;y<=n;y++)s.push(y);return s}},{key:"_findTokensOfNode",value:function(e,t,r){var n=this._tokensCache.get(e);if(n)return n;var i=this._findFirstTokenOfNode(e.start,t,r),a=this._findLastTokenOfNode(e.end,i,r);return this._tokensCache.set(e,{first:i,last:a}),{first:i,last:a}}},{key:"_findFirstTokenOfNode",value:function(e,t,r){for(;t<=r;){var n=r+t>>1;if(e<this._tokens[n].start)r=n-1;else{if(!(e>this._tokens[n].start))return n;t=n+1}}return t}},{key:"_findLastTokenOfNode",value:function(e,t,r){for(;t<=r;){var n=r+t>>1;if(e<this._tokens[n].end)r=n-1;else{if(!(e>this._tokens[n].end))return n;t=n+1}}return r}}]),e}(),_$=r8.isCallExpression,_Y=r8.isLiteral,_Q=r8.isMemberExpression,_Z=r8.isNewExpression,_0=r8.isPattern;function _1(e){this.print(e.left),this.space(),"in"===e.operator||"instanceof"===e.operator?this.word(e.operator):(this.token(e.operator),this._endsWithDiv="/"===e.operator),this.space(),this.print(e.right)}var _2=r8.isFor,_3=r8.isForStatement,_4=r8.isIfStatement,_5=r8.isStatement;function _8(e){this.word("for"),this.space();var t="ForOfStatement"===e.type;t&&e.await&&(this.word("await"),this.space()),this.noIndentInnerCommentsHere(),this.tokenChar(40);var r=t?null:this.enterForStatementInit();this.tokenContext|=t?_j.forOfHead:_j.forInHead,this.print(e.left),null==r||r(),this.space(),this.word(t?"of":"in"),this.space(),this.print(e.right),this.tokenChar(41),this.printBlock(e)}function _6(e,t){t&&(e.space(),e.printTerminatorless(t)),e.semicolon()}var _9=r8.isExportDefaultDeclaration,_7=r8.isExportNamedDeclaration;function Pe(e,t){(_9(t)||_7(t))&&this._shouldPrintDecoratorsBeforeExport(t)||this.printJoin(e.decorators),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)),this.print(e.typeParameters),e.superClass&&(this.space(),this.word("extends"),this.space(),this.print(e.superClass),this.print(e.superTypeArguments)),e.implements&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements)),this.space(),this.print(e.body)}var Pt=r8.isIdentifier;function Pr(e,t){this._functionHead(e,t),this.space(),this.print(e.body)}function Pn(e,t){var r,n,i,a,s,o=e;if(!o&&t){var u=t.type;"VariableDeclarator"===u?o=t.id:"AssignmentExpression"===u||"AssignmentPattern"===u?o=t.left:"ObjectProperty"===u||"ClassProperty"===u?t.computed&&"StringLiteral"!==t.key.type||(o=t.key):("ClassPrivateProperty"===u||"ClassAccessorProperty"===u)&&(o=t.key)}if(o)return"Identifier"===o.type?r={pos:null===(n=o.loc)||void 0===n?void 0:n.start,name:(null===(i=o.loc)||void 0===i?void 0:i.identifierName)||o.name}:"PrivateName"===o.type?r={pos:null===(a=o.loc)||void 0===a?void 0:a.start,name:"#"+o.id.name}:"StringLiteral"===o.type&&(r={pos:null===(s=o.loc)||void 0===s?void 0:s.start,name:o.value}),r}var Pi=r8.isClassDeclaration,Pa=r8.isExportDefaultSpecifier,Ps=r8.isExportNamespaceSpecifier,Po=r8.isImportDefaultSpecifier,Pu=r8.isImportNamespaceSpecifier,Pl=r8.isStatement;function Pc(e){var t,r;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)||void 0===t?void 0:t.length)||(null===(r=e.assertions)||void 0===r?void 0:r.length)?(this.print(e.source,!0),this.space(),this._printAttributes(e,!1)):this.print(e.source),this.semicolon()}function Pp(e,t){Pi(t.declaration)&&e._shouldPrintDecoratorsBeforeExport(t)&&e.printJoin(t.declaration.decorators)}var Pd=r8.isAssignmentPattern,Pf=r8.isIdentifier,Ph=null,Pm="";function Py(e){this.token("..."),this.print(e.argument)}function Pv(e){var t=e.properties;if(this.tokenChar(123),t.length){var r=this.enterDelimited();this.space(),this.printList(t,this.shouldPrintTrailingComma("}"),!0,!0),this.space(),r()}this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125)}function Pg(e){var t=e.elements,r=t.length;this.tokenChar(91);for(var n=this.enterDelimited(),i=0;i<t.length;i++){var a=t[i];a?(i>0&&this.space(),this.print(a),(i<r-1||this.shouldPrintTrailingComma("]"))&&this.token(",",!1,i)):this.token(",",!1,i)}n(),this.tokenChar(93)}function Pb(e){var t=this.getPossibleRaw(e),r=this.format.jsescOption,n=e.value,i=n+"";r.numbers?this.number((0,E$.default)(n,r),n):null==t?this.number(i,n):this.format.minified?this.number(t.length<i.length?t:i,n):this.number(t,n)}function PS(e){var t=this.getPossibleRaw(e);if(!this.format.minified&&void 0!==t){this.token(t);return}var r=(0,E$.default)(e.value,this.format.jsescOption);this.token(r)}var Px=/* @__PURE__ */new Set(["^^","@@","^","%","#"]),PT=r8.isDeclareExportDeclaration,PE=r8.isStatement;function P_(e,t,r){r&&(e.space(),e.word("of"),e.space(),e.word(t)),e.space()}function PP(e,t){var r=t.members;e.token("{"),e.indent(),e.newline();var n=!0,i=!1,a=void 0;try{for(var s,o=r[Symbol.iterator]();!(n=(s=o.next()).done);n=!0){var u=s.value;e.print(u),e.newline()}}catch(e){i=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}t.hasUnknownMembers&&(e.token("..."),e.newline()),e.dedent(),e.token("}")}function PA(e,t){e.print(t.id),e.space(),e.token("="),e.space(),e.print(t.init),e.token(",")}function Pk(e){if(e.declaration){var t=e.declaration;this.print(t),PE(t)||this.semicolon()}else this.tokenChar(123),e.specifiers.length&&(this.space(),this.printList(e.specifiers),this.space()),this.tokenChar(125),e.source&&(this.space(),this.word("from"),this.space(),this.print(e.source)),this.semicolon()}function PC(e){this.print(e.id),this.print(e.typeParameters,!0)}function Pw(e){this.space(),this.token("&",!1,e),this.space()}function PI(e){this.tokenChar(60),this.printList(e.params),this.tokenChar(62)}function PN(e){this.space(),this.token("|",!1,e),this.space()}var PO=/(?:^|[^\\])(?:\\\\)*'/,PD=/(?:^|[^\\])(?:\\\\)*"/;function PL(){this.space()}function PM(e,t){var r=this;this.tokenChar(60);var n="ArrowFunctionExpression"===t.type&&1===e.params.length;this.tokenMap&&null!=e.start&&null!=e.end&&(n&&(n=!!this.tokenMap.find(e,function(e){return r.tokenMap.matchesOriginal(e,",")})),n||(n=this.shouldPrintTrailingComma(">"))),this.printList(e.params,n),this.tokenChar(62)}function PF(e,t){if(!e.tokenMap||!t.start||!t.end){e.semicolon();return}e.tokenMap.endMatches(t,",")?e.token(","):e.tokenMap.endMatches(t,";")&&e.semicolon()}function PB(e,t,r){var n,i=0;(null===(n=e.tokenMap)||void 0===n?void 0:n.startMatches(t,r))&&(i=1,e.token(r)),e.printJoin(t.types,void 0,void 0,function(e){this.space(),this.token(r,null,e+i),this.space()})}function PR(e,t){!0!==t&&e.token(t)}function Pj(e){this.print(e.expression),this.print(e.typeParameters)}function PU(e){var t=e.type,r=e.expression,n=e.typeAnnotation;this.print(r,!0),this.space(),this.word("TSAsExpression"===t?"as":"satisfies"),this.space(),this.print(n)}function PV(e,t,r){e.token("{");var n=e.enterDelimited();r(),n(),e.rightBrace(t)}function PW(e,t,r){var n=/* @__PURE__ */new Set,i=!0,a=!1,s=void 0;try{for(var o,u,l=r[Symbol.iterator]();!(i=(u=l.next()).done);i=!0){var c=u.value;c&&n.add(c)}}catch(e){a=!0,s=e}finally{try{i||null==l.return||l.return()}finally{if(a)throw s}}null===(o=e.tokenMap)||void 0===o||o.find(t,function(t){if(n.has(t.value))return e.token(t.value),e.space(),n.delete(t.value),0===n.size});var p=!0,d=!1,f=void 0;try{for(var h,m=n[Symbol.iterator]();!(p=(h=m.next()).done);p=!0){var y=h.value;e.word(y),e.space()}}catch(e){d=!0,f=e}finally{try{p||null==m.return||m.return()}finally{if(d)throw f}}}var Pq=/* @__PURE__ */Object.freeze({__proto__:null,AnyTypeAnnotation:function(){this.word("any")},ArgumentPlaceholder:function(){this.tokenChar(63)},ArrayExpression:Pg,ArrayPattern:Pg,ArrayTypeAnnotation:function(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)},ArrowFunctionExpression:function(e,t){e.async&&(this.word("async",!0),this.space()),this._shouldPrintArrowParamsParens(e)?this._params(e,void 0,t):this.print(e.params[0],!0),this._predicate(e,!0),this.space(),this.printInnerComments(),this.token("=>"),this.space(),this.tokenContext|=_j.arrowBody,this.print(e.body)},AssignmentExpression:_1,AssignmentPattern:function(e){this.print(e.left),("Identifier"===e.left.type||_0(e.left))&&(e.left.optional&&this.tokenChar(63),this.print(e.left.typeAnnotation)),this.space(),this.tokenChar(61),this.space(),this.print(e.right)},AwaitExpression:function(e){this.word("await"),e.argument&&(this.space(),this.printTerminatorless(e.argument))},BigIntLiteral:function(e){var t=this.getPossibleRaw(e);if(!this.format.minified&&void 0!==t){this.word(t);return}this.word(e.value+"n")},BinaryExpression:_1,BindExpression:function(e){this.print(e.object),this.token("::"),this.print(e.callee)},BlockStatement:function(e){this.tokenChar(123);var t=this.enterDelimited(),r=null===(n=e.directives)||void 0===n?void 0:n.length;if(r){var n,i,a=e.body.length?2:1;this.printSequence(e.directives,!0,a),(null===(i=e.directives[r-1].trailingComments)||void 0===i?void 0:i.length)||this.newline(a)}this.printSequence(e.body,!0),t(),this.rightBrace(e)},BooleanLiteral:function(e){this.word(e.value?"true":"false")},BooleanLiteralTypeAnnotation:function(e){this.word(e.value?"true":"false")},BooleanTypeAnnotation:function(){this.word("boolean")},BreakStatement:function(e){this.word("break"),_6(this,e.label)},CallExpression:function(e){this.print(e.callee),this.print(e.typeArguments),this.print(e.typeParameters),this.tokenChar(40);var t=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")")),t(),this.rightParens(e)},CatchClause:function(e){this.word("catch"),this.space(),e.param&&(this.tokenChar(40),this.print(e.param),this.print(e.param.typeAnnotation),this.tokenChar(41),this.space()),this.print(e.body)},ClassAccessorProperty:function(e){this.printJoin(e.decorators);var t,r,n=null===(r=e.key.loc)||void 0===r?void 0:null===(t=r.end)||void 0===t?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),this.tokenChar(93)):(this._variance(e),this.print(e.key)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()},ClassBody:function(e){if(this.tokenChar(123),0===e.body.length)this.tokenChar(125);else{this.newline();var t=function(e,t){if(!e.tokenMap||null==t.start||null==t.end)return null;var r=e.tokenMap.getIndexes(t);if(!r)return null;var n=1,i=0,a=0,s=function(){for(;a<t.body.length&&null==t.body[a].start;)a++};return s(),function(o){a<=o&&(a=o+1,s());for(var u,l=a===t.body.length?t.end:t.body[a].start;n<r.length&&e.tokenMap.matchesOriginal(u=e._tokens[r[n]],";")&&u.start<l;)e.token(";",void 0,i++),n++}}(this,e);null==t||t(-1);var r=this.enterDelimited();this.printJoin(e.body,!0,!0,t,!0),r(),this.endsWith(10)||this.newline(),this.rightBrace(e)}},ClassDeclaration:Pe,ClassExpression:Pe,ClassImplements:PC,ClassMethod:function(e){this._classMethodHead(e),this.space(),this.print(e.body)},ClassPrivateMethod:function(e){this._classMethodHead(e),this.space(),this.print(e.body)},ClassPrivateProperty:function(e){this.printJoin(e.decorators),e.static&&(this.word("static"),this.space()),this.print(e.key),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()},ClassProperty:function(e){if(this.printJoin(e.decorators),!e.static&&!this.format.preserveFormat){var t,r,n=null===(r=e.key.loc)||void 0===r?void 0:null===(t=r.end)||void 0===t?void 0:t.line;n&&this.catchUp(n)}this.tsPrintClassMemberModifiers(e),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(this._variance(e),this.print(e.key)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()},ConditionalExpression:function(e){this.print(e.test),this.space(),this.tokenChar(63),this.space(),this.print(e.consequent),this.space(),this.tokenChar(58),this.space(),this.print(e.alternate)},ContinueStatement:function(e){this.word("continue"),_6(this,e.label)},DebuggerStatement:function(){this.word("debugger"),this.semicolon()},DecimalLiteral:function(e){var t=this.getPossibleRaw(e);if(!this.format.minified&&void 0!==t){this.word(t);return}this.word(e.value+"m")},DeclareClass:function(e,t){PT(t)||(this.word("declare"),this.space()),this.word("class"),this.space(),this._interfaceish(e)},DeclareExportAllDeclaration:function(e){this.word("declare"),this.space(),Pc.call(this,e)},DeclareExportDeclaration:function(e){this.word("declare"),this.space(),this.word("export"),this.space(),e.default&&(this.word("default"),this.space()),Pk.call(this,e)},DeclareFunction:function(e,t){PT(t)||(this.word("declare"),this.space()),this.word("function"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation.typeAnnotation),e.predicate&&(this.space(),this.print(e.predicate)),this.semicolon()},DeclareInterface:function(e){this.word("declare"),this.space(),this.InterfaceDeclaration(e)},DeclareModule:function(e){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(e.id),this.space(),this.print(e.body)},DeclareModuleExports:function(e){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(e.typeAnnotation)},DeclareOpaqueType:function(e,t){PT(t)||(this.word("declare"),this.space()),this.OpaqueType(e)},DeclareTypeAlias:function(e){this.word("declare"),this.space(),this.TypeAlias(e)},DeclareVariable:function(e,t){PT(t)||(this.word("declare"),this.space()),this.word("var"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation),this.semicolon()},DeclaredPredicate:function(e){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(e.value),this.tokenChar(41)},Decorator:function(e){this.tokenChar(64),this.print(e.expression),this.newline()},Directive:function(e){this.print(e.value),this.semicolon()},DirectiveLiteral:function(e){var t=this.getPossibleRaw(e);if(!this.format.minified&&void 0!==t){this.token(t);return}var r=e.value;if(PD.test(r)){if(PO.test(r))throw Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.");this.token("'".concat(r,"'"))}else this.token('"'.concat(r,'"'))},DoExpression:function(e){e.async&&(this.word("async",!0),this.space()),this.word("do"),this.space(),this.print(e.body)},DoWhileStatement:function(e){this.word("do"),this.space(),this.print(e.body),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.semicolon()},EmptyStatement:function(){this.semicolon(!0)},EmptyTypeAnnotation:function(){this.word("empty")},EnumBooleanBody:function(e){P_(this,"boolean",e.explicitType),PP(this,e)},EnumBooleanMember:function(e){PA(this,e)},EnumDeclaration:function(e){var t=e.id,r=e.body;this.word("enum"),this.space(),this.print(t),this.print(r)},EnumDefaultedMember:function(e){var t=e.id;this.print(t),this.tokenChar(44)},EnumNumberBody:function(e){P_(this,"number",e.explicitType),PP(this,e)},EnumNumberMember:function(e){PA(this,e)},EnumStringBody:function(e){P_(this,"string",e.explicitType),PP(this,e)},EnumStringMember:function(e){PA(this,e)},EnumSymbolBody:function(e){P_(this,"symbol",!0),PP(this,e)},ExistsTypeAnnotation:function(){this.tokenChar(42)},ExportAllDeclaration:Pc,ExportDefaultDeclaration:function(e){Pp(this,e),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=_j.exportDefault;var t=e.declaration;this.print(t),Pl(t)||this.semicolon()},ExportDefaultSpecifier:function(e){this.print(e.exported)},ExportNamedDeclaration:function(e){if(Pp(this,e),this.word("export"),this.space(),e.declaration){var t=e.declaration;this.print(t),Pl(t)||this.semicolon()}else{"type"===e.exportKind&&(this.word("type"),this.space());for(var r,n,i=e.specifiers.slice(0),a=!1;;){var s=i[0];if(Pa(s)||Ps(s))a=!0,this.print(i.shift()),i.length&&(this.tokenChar(44),this.space());else break}var o=!1;!i.length&&(i.length||a)||(o=!0,this.tokenChar(123),i.length&&(this.space(),this.printList(i,this.shouldPrintTrailingComma("}")),this.space()),this.tokenChar(125)),e.source&&(this.space(),this.word("from"),this.space(),(null===(r=e.attributes)||void 0===r?void 0:r.length)||(null===(n=e.assertions)||void 0===n?void 0:n.length)?(this.print(e.source,!0),this.space(),this._printAttributes(e,o)):this.print(e.source)),this.semicolon()}},ExportNamespaceSpecifier:function(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.exported)},ExportSpecifier:function(e){"type"===e.exportKind&&(this.word("type"),this.space()),this.print(e.local),e.exported&&e.local.name!==e.exported.name&&(this.space(),this.word("as"),this.space(),this.print(e.exported))},ExpressionStatement:function(e){this.tokenContext|=_j.expressionStatement,this.print(e.expression),this.semicolon()},File:function(e){e.program&&this.print(e.program.interpreter),this.print(e.program)},ForInStatement:_8,ForOfStatement:_8,ForStatement:function(e){this.word("for"),this.space(),this.tokenChar(40);var t=this.enterForStatementInit();this.tokenContext|=_j.forHead,this.print(e.init),t(),this.tokenChar(59),e.test&&(this.space(),this.print(e.test)),this.token(";",!1,1),e.update&&(this.space(),this.print(e.update)),this.tokenChar(41),this.printBlock(e)},FunctionDeclaration:Pr,FunctionExpression:Pr,FunctionTypeAnnotation:function(e,t){this.print(e.typeParameters),this.tokenChar(40),e.this&&(this.word("this"),this.tokenChar(58),this.space(),this.print(e.this.typeAnnotation),(e.params.length||e.rest)&&(this.tokenChar(44),this.space())),this.printList(e.params),e.rest&&(e.params.length&&(this.tokenChar(44),this.space()),this.token("..."),this.print(e.rest)),this.tokenChar(41);var r=null==t?void 0:t.type;null!=r&&("ObjectTypeCallProperty"===r||"ObjectTypeInternalSlot"===r||"DeclareFunction"===r||"ObjectTypeProperty"===r&&t.method)?this.tokenChar(58):(this.space(),this.token("=>")),this.space(),this.print(e.returnType)},FunctionTypeParam:function(e){this.print(e.name),e.optional&&this.tokenChar(63),e.name&&(this.tokenChar(58),this.space()),this.print(e.typeAnnotation)},GenericTypeAnnotation:PC,Identifier:function(e){var t;this.sourceIdentifierName((null===(t=e.loc)||void 0===t?void 0:t.identifierName)||e.name),this.word(this.tokenMap?this._getRawIdentifier(e):e.name)},IfStatement:function(e){this.word("if"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.space();var t=e.alternate&&_4(function e(t){var r=t.body;return!1===_5(r)?t:e(r)}(e.consequent));t&&(this.tokenChar(123),this.newline(),this.indent()),this.printAndIndentOnComments(e.consequent),t&&(this.dedent(),this.newline(),this.tokenChar(125)),e.alternate&&(this.endsWith(125)&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(e.alternate))},Import:function(){this.word("import")},ImportAttribute:function(e){this.print(e.key),this.tokenChar(58),this.space(),this.print(e.value)},ImportDeclaration:function(e){this.word("import"),this.space();var t,r,n="type"===e.importKind||"typeof"===e.importKind;n?(this.noIndentInnerCommentsHere(),this.word(e.importKind),this.space()):e.module?(this.noIndentInnerCommentsHere(),this.word("module"),this.space()):e.phase&&(this.noIndentInnerCommentsHere(),this.word(e.phase),this.space());for(var i=e.specifiers.slice(0),a=!!i.length;a;){var s=i[0];if(Po(s)||Pu(s))this.print(i.shift()),i.length&&(this.tokenChar(44),this.space());else break}var o=!1;i.length?(o=!0,this.tokenChar(123),this.space(),this.printList(i,this.shouldPrintTrailingComma("}")),this.space(),this.tokenChar(125)):n&&!a&&(o=!0,this.tokenChar(123),this.tokenChar(125)),(a||n)&&(this.space(),this.word("from"),this.space()),(null===(t=e.attributes)||void 0===t?void 0:t.length)||(null===(r=e.assertions)||void 0===r?void 0:r.length)?(this.print(e.source,!0),this.space(),this._printAttributes(e,o)):this.print(e.source),this.semicolon()},ImportDefaultSpecifier:function(e){this.print(e.local)},ImportExpression:function(e){this.word("import"),e.phase&&(this.tokenChar(46),this.word(e.phase)),this.tokenChar(40),this.print(e.source),null!=e.options&&(this.tokenChar(44),this.space(),this.print(e.options)),this.tokenChar(41)},ImportNamespaceSpecifier:function(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.local)},ImportSpecifier:function(e){("type"===e.importKind||"typeof"===e.importKind)&&(this.word(e.importKind),this.space()),this.print(e.imported),e.local&&e.local.name!==e.imported.name&&(this.space(),this.word("as"),this.space(),this.print(e.local))},IndexedAccessType:function(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},InferredPredicate:function(){this.tokenChar(37),this.word("checks")},InterfaceDeclaration:function(e){this.word("interface"),this.space(),this._interfaceish(e)},InterfaceExtends:PC,InterfaceTypeAnnotation:function(e){var t;this.word("interface"),(null===(t=e.extends)||void 0===t?void 0:t.length)&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends)),this.space(),this.print(e.body)},InterpreterDirective:function(e){this.token("#!".concat(e.value)),this.newline(1,!0)},IntersectionTypeAnnotation:function(e){this.printJoin(e.types,void 0,void 0,Pw)},JSXAttribute:function(e){this.print(e.name),e.value&&(this.tokenChar(61),this.print(e.value))},JSXClosingElement:function(e){this.tokenChar(60),this.tokenChar(47),this.print(e.name),this.tokenChar(62)},JSXClosingFragment:function(){this.token("</"),this.tokenChar(62)},JSXElement:function(e){var t=e.openingElement;if(this.print(t),!t.selfClosing){this.indent();var r=!0,n=!1,i=void 0;try{for(var a,s=e.children[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var o=a.value;this.print(o)}}catch(e){n=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw i}}this.dedent(),this.print(e.closingElement)}},JSXEmptyExpression:function(){this.printInnerComments()},JSXExpressionContainer:function(e){this.tokenChar(123),this.print(e.expression),this.rightBrace(e)},JSXFragment:function(e){this.print(e.openingFragment),this.indent();var t=!0,r=!1,n=void 0;try{for(var i,a=e.children[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var s=i.value;this.print(s)}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}this.dedent(),this.print(e.closingFragment)},JSXIdentifier:function(e){this.word(e.name)},JSXMemberExpression:function(e){this.print(e.object),this.tokenChar(46),this.print(e.property)},JSXNamespacedName:function(e){this.print(e.namespace),this.tokenChar(58),this.print(e.name)},JSXOpeningElement:function(e){this.tokenChar(60),this.print(e.name),this.print(e.typeParameters),e.attributes.length>0&&(this.space(),this.printJoin(e.attributes,void 0,void 0,PL)),e.selfClosing&&(this.space(),this.tokenChar(47)),this.tokenChar(62)},JSXOpeningFragment:function(){this.tokenChar(60),this.tokenChar(62)},JSXSpreadAttribute:function(e){this.tokenChar(123),this.token("..."),this.print(e.argument),this.rightBrace(e)},JSXSpreadChild:function(e){this.tokenChar(123),this.token("..."),this.print(e.expression),this.rightBrace(e)},JSXText:function(e){var t=this.getPossibleRaw(e);void 0!==t?this.token(t,!0):this.token(e.value,!0)},LabeledStatement:function(e){this.print(e.label),this.tokenChar(58),this.space(),this.print(e.body)},LogicalExpression:_1,MemberExpression:function(e){if(this.print(e.object),!e.computed&&_Q(e.property))throw TypeError("Got a MemberExpression for MemberExpression property");var t=e.computed;if(_Y(e.property)&&"number"==typeof e.property.value&&(t=!0),t){var r=this.enterDelimited();this.tokenChar(91),this.print(e.property),this.tokenChar(93),r()}else this.tokenChar(46),this.print(e.property)},MetaProperty:function(e){this.print(e.meta),this.tokenChar(46),this.print(e.property)},MixedTypeAnnotation:function(){this.word("mixed")},ModuleExpression:function(e){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();var t=e.body;(t.body.length||t.directives.length)&&this.newline(),this.print(t),this.dedent(),this.rightBrace(e)},NewExpression:function(e,t){if(this.word("new"),this.space(),this.print(e.callee),(!this.format.minified||0!==e.arguments.length||e.optional||_$(t,{callee:e})||_Q(t)||_Z(t))&&(this.print(e.typeArguments),this.print(e.typeParameters),e.optional&&this.token("?."),0!==e.arguments.length||!this.tokenMap||this.tokenMap.endMatches(e,")"))){this.tokenChar(40);var r=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")")),r(),this.rightParens(e)}},NullLiteral:function(){this.word("null")},NullLiteralTypeAnnotation:function(){this.word("null")},NullableTypeAnnotation:function(e){this.tokenChar(63),this.print(e.typeAnnotation)},NumberLiteralTypeAnnotation:Pb,NumberTypeAnnotation:function(){this.word("number")},NumericLiteral:Pb,ObjectExpression:Pv,ObjectMethod:function(e){this.printJoin(e.decorators),this._methodHead(e),this.space(),this.print(e.body)},ObjectPattern:Pv,ObjectProperty:function(e){if(this.printJoin(e.decorators),e.computed)this.tokenChar(91),this.print(e.key),this.tokenChar(93);else{if(Pd(e.value)&&Pf(e.key)&&e.key.name===e.value.left.name){this.print(e.value);return}if(this.print(e.key),e.shorthand&&Pf(e.key)&&Pf(e.value)&&e.key.name===e.value.name)return}this.tokenChar(58),this.space(),this.print(e.value)},ObjectTypeAnnotation:function(e){var t=this;e.exact?this.token("{|"):this.tokenChar(123);var r=r_(e.properties).concat(r_(e.callProperties||[]),r_(e.indexers||[]),r_(e.internalSlots||[]));r.length&&(this.newline(),this.space(),this.printJoin(r,!0,!0,void 0,void 0,function(e){if(e&&!r[0])return 1},function(){(1!==r.length||e.inexact)&&(t.tokenChar(44),t.space())}),this.space()),e.inexact&&(this.indent(),this.token("..."),r.length&&this.newline(),this.dedent()),e.exact?this.token("|}"):this.tokenChar(125)},ObjectTypeCallProperty:function(e){e.static&&(this.word("static"),this.space()),this.print(e.value)},ObjectTypeIndexer:function(e){e.static&&(this.word("static"),this.space()),this._variance(e),this.tokenChar(91),e.id&&(this.print(e.id),this.tokenChar(58),this.space()),this.print(e.key),this.tokenChar(93),this.tokenChar(58),this.space(),this.print(e.value)},ObjectTypeInternalSlot:function(e){e.static&&(this.word("static"),this.space()),this.tokenChar(91),this.tokenChar(91),this.print(e.id),this.tokenChar(93),this.tokenChar(93),e.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value)},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.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value)},ObjectTypeSpreadProperty:function(e){this.token("..."),this.print(e.argument)},OpaqueType:function(e){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),e.supertype&&(this.tokenChar(58),this.space(),this.print(e.supertype)),e.impltype&&(this.space(),this.tokenChar(61),this.space(),this.print(e.impltype)),this.semicolon()},OptionalCallExpression:function(e){this.print(e.callee),this.print(e.typeParameters),e.optional&&this.token("?."),this.print(e.typeArguments),this.tokenChar(40);var t=this.enterDelimited();this.printList(e.arguments),t(),this.rightParens(e)},OptionalIndexedAccessType:function(e){this.print(e.objectType),e.optional&&this.token("?."),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},OptionalMemberExpression:function(e){var t=e.computed,r=e.optional,n=e.property;if(this.print(e.object),!t&&_Q(n))throw TypeError("Got a MemberExpression for MemberExpression property");_Y(n)&&"number"==typeof n.value&&(t=!0),r&&this.token("?."),t?(this.tokenChar(91),this.print(n),this.tokenChar(93)):(r||this.tokenChar(46),this.print(n))},ParenthesizedExpression:function(e){this.tokenChar(40);var t=this.enterDelimited();this.print(e.expression),t(),this.rightParens(e)},PipelineBareFunction:function(e){this.print(e.callee)},PipelinePrimaryTopicReference:function(){this.tokenChar(35)},PipelineTopicExpression:function(e){this.print(e.expression)},Placeholder:function(e){this.token("%%"),this.print(e.name),this.token("%%"),"Statement"===e.expectedNode&&this.semicolon()},PrivateName:function(e){this.tokenChar(35),this.print(e.id)},Program:function(e){this.noIndentInnerCommentsHere(),this.printInnerComments();var t=null===(r=e.directives)||void 0===r?void 0:r.length;if(t){var r,n,i=e.body.length?2:1;this.printSequence(e.directives,void 0,i),(null===(n=e.directives[t-1].trailingComments)||void 0===n?void 0:n.length)||this.newline(i)}this.printSequence(e.body)},QualifiedTypeIdentifier:function(e){this.print(e.qualification),this.tokenChar(46),this.print(e.id)},RecordExpression:function(e){var t=e.properties;this.token("#{"),t.length&&(this.space(),this.printList(t,this.shouldPrintTrailingComma("}"),!0,!0),this.space()),this.token("}")},RegExpLiteral:function(e){this.word("/".concat(e.pattern,"/").concat(e.flags))},RestElement:Py,ReturnStatement:function(e){this.word("return"),_6(this,e.argument)},SequenceExpression:function(e){this.printList(e.expressions)},SpreadElement:Py,StaticBlock:function(e){this.word("static"),this.space(),this.tokenChar(123),0===e.body.length?this.tokenChar(125):(this.newline(),this.printSequence(e.body,!0),this.rightBrace(e))},StringLiteral:PS,StringLiteralTypeAnnotation:PS,StringTypeAnnotation:function(){this.word("string")},Super:function(){this.word("super")},SwitchCase:function(e){e.test?(this.word("case"),this.space(),this.print(e.test)):this.word("default"),this.tokenChar(58),e.consequent.length&&(this.newline(),this.printSequence(e.consequent,!0))},SwitchStatement:function(e){this.word("switch"),this.space(),this.tokenChar(40),this.print(e.discriminant),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(e.cases,!0,void 0,function(t,r){if(!t&&e.cases[e.cases.length-1]===r)return -1}),this.rightBrace(e)},SymbolTypeAnnotation:function(){this.word("symbol")},TSAnyKeyword:function(){this.word("any")},TSArrayType:function(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)},TSAsExpression:PU,TSBigIntKeyword:function(){this.word("bigint")},TSBooleanKeyword:function(){this.word("boolean")},TSCallSignatureDeclaration:function(e){this.tsPrintSignatureDeclarationBase(e),PF(this,e)},TSClassImplements:Pj,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)},TSConstructSignatureDeclaration:function(e){this.word("new"),this.space(),this.tsPrintSignatureDeclarationBase(e),PF(this,e)},TSConstructorType:function(e){e.abstract&&(this.word("abstract"),this.space()),this.word("new"),this.space(),this.tsPrintFunctionOrConstructorType(e)},TSDeclareFunction:function(e,t){e.declare&&(this.word("declare"),this.space()),this._functionHead(e,t),this.semicolon()},TSDeclareMethod:function(e){this._classMethodHead(e),this.semicolon()},TSEnumDeclaration:function(e){var t=this,r=e.declare,n=e.const,i=e.id,a=e.members;r&&(this.word("declare"),this.space()),n&&(this.word("const"),this.space()),this.word("enum"),this.space(),this.print(i),this.space(),PV(this,e,function(){var e;return t.printList(a,null===(e=t.shouldPrintTrailingComma("}"))||void 0===e||e,!0,!0)})},TSEnumMember:function(e){var t=e.id,r=e.initializer;this.print(t),r&&(this.space(),this.tokenChar(61),this.space(),this.print(r))},TSExportAssignment:function(e){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(e.expression),this.semicolon()},TSExpressionWithTypeArguments:Pj,TSExternalModuleReference:function(e){this.token("require("),this.print(e.expression),this.tokenChar(41)},TSFunctionType:function(e){this.tsPrintFunctionOrConstructorType(e)},TSImportEqualsDeclaration:function(e){var t=e.isExport,r=e.id,n=e.moduleReference;t&&(this.word("export"),this.space()),this.word("import"),this.space(),this.print(r),this.space(),this.tokenChar(61),this.space(),this.print(n),this.semicolon()},TSImportType:function(e){var t=e.argument,r=e.qualifier,n=e.typeParameters;this.word("import"),this.tokenChar(40),this.print(t),this.tokenChar(41),r&&(this.tokenChar(46),this.print(r)),n&&this.print(n)},TSIndexSignature:function(e){var t=e.readonly;e.static&&(this.word("static"),this.space()),t&&(this.word("readonly"),this.space()),this.tokenChar(91),this._parameters(e.parameters,"]"),this.print(e.typeAnnotation),PF(this,e)},TSIndexedAccessType:function(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},TSInferType:function(e){this.word("infer"),this.print(e.typeParameter)},TSInstantiationExpression:function(e){this.print(e.expression),this.print(e.typeParameters)},TSInterfaceBody:function(e){var t=this;PV(this,e,function(){return t.printJoin(e.body,!0,!0)})},TSInterfaceDeclaration:function(e){var t=e.declare,r=e.id,n=e.typeParameters,i=e.extends,a=e.body;t&&(this.word("declare"),this.space()),this.word("interface"),this.space(),this.print(r),this.print(n),(null==i?void 0:i.length)&&(this.space(),this.word("extends"),this.space(),this.printList(i)),this.space(),this.print(a)},TSInterfaceHeritage:Pj,TSIntersectionType:function(e){PB(this,e,"&")},TSIntrinsicKeyword:function(){this.word("intrinsic")},TSLiteralType:function(e){this.print(e.literal)},TSMappedType:function(e){var t=e.nameType,r=e.optional,n=e.readonly,i=e.typeAnnotation;this.tokenChar(123);var a=this.enterDelimited();this.space(),n&&(PR(this,n),this.word("readonly"),this.space()),this.tokenChar(91),this.word(e.key.name),this.space(),this.word("in"),this.space(),this.print(e.constraint),t&&(this.space(),this.word("as"),this.space(),this.print(t)),this.tokenChar(93),r&&(PR(this,r),this.tokenChar(63)),i&&(this.tokenChar(58),this.space(),this.print(i)),this.space(),a(),this.tokenChar(125)},TSMethodSignature:function(e){var t=e.kind;("set"===t||"get"===t)&&(this.word(t),this.space()),this.tsPrintPropertyOrMethodName(e),this.tsPrintSignatureDeclarationBase(e),PF(this,e)},TSModuleBlock:function(e){var t=this;PV(this,e,function(){return t.printSequence(e.body,!0)})},TSModuleDeclaration:function(e){var t=e.declare;e.id;var r=e.kind;if(t&&(this.word("declare"),this.space()),"global"!==r&&(this.word(r),this.space()),this.print(e.id),!e.body){this.semicolon();return}this.space(),this.print(e.body)},TSNamedTupleMember:function(e){this.print(e.label),e.optional&&this.tokenChar(63),this.tokenChar(58),this.space(),this.print(e.elementType)},TSNamespaceExportDeclaration:function(e){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(e.id),this.semicolon()},TSNeverKeyword:function(){this.word("never")},TSNonNullExpression:function(e){this.print(e.expression),this.tokenChar(33)},TSNullKeyword:function(){this.word("null")},TSNumberKeyword:function(){this.word("number")},TSObjectKeyword:function(){this.word("object")},TSOptionalType:function(e){this.print(e.typeAnnotation),this.tokenChar(63)},TSParameterProperty:function(e){e.accessibility&&(this.word(e.accessibility),this.space()),e.readonly&&(this.word("readonly"),this.space()),this._param(e.parameter)},TSParenthesizedType:function(e){this.tokenChar(40),this.print(e.typeAnnotation),this.tokenChar(41)},TSPropertySignature:function(e){e.readonly&&(this.word("readonly"),this.space()),this.tsPrintPropertyOrMethodName(e),this.print(e.typeAnnotation),PF(this,e)},TSQualifiedName:function(e){this.print(e.left),this.tokenChar(46),this.print(e.right)},TSRestType:function(e){this.token("..."),this.print(e.typeAnnotation)},TSSatisfiesExpression:PU,TSStringKeyword:function(){this.word("string")},TSSymbolKeyword:function(){this.word("symbol")},TSThisType:function(){this.word("this")},TSTupleType:function(e){this.tokenChar(91),this.printList(e.elementTypes,this.shouldPrintTrailingComma("]")),this.tokenChar(93)},TSTypeAliasDeclaration:function(e){var t=e.declare,r=e.id,n=e.typeParameters,i=e.typeAnnotation;t&&(this.word("declare"),this.space()),this.word("type"),this.space(),this.print(r),this.print(n),this.space(),this.tokenChar(61),this.space(),this.print(i),this.semicolon()},TSTypeAnnotation:function(e,t){this.token(("TSFunctionType"===t.type||"TSConstructorType"===t.type)&&t.returnType===e?"=>":":"),this.space(),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)},TSTypeAssertion:function(e){var t=e.typeAnnotation,r=e.expression;this.tokenChar(60),this.print(t),this.tokenChar(62),this.space(),this.print(r)},TSTypeLiteral:function(e){var t=this;PV(this,e,function(){return t.printJoin(e.members,!0,!0)})},TSTypeOperator:function(e){this.word(e.operator),this.space(),this.print(e.typeAnnotation)},TSTypeParameter:function(e){e.in&&(this.word("in"),this.space()),e.out&&(this.word("out"),this.space()),this.word(e.name.name),e.constraint&&(this.space(),this.word("extends"),this.space(),this.print(e.constraint)),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default))},TSTypeParameterDeclaration:PM,TSTypeParameterInstantiation:PM,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))},TSTypeQuery:function(e){this.word("typeof"),this.space(),this.print(e.exprName),e.typeParameters&&this.print(e.typeParameters)},TSTypeReference:function(e){var t=e.typeArguments;this.print(e.typeName,!!t),this.print(t)},TSUndefinedKeyword:function(){this.word("undefined")},TSUnionType:function(e){PB(this,e,"|")},TSUnknownKeyword:function(){this.word("unknown")},TSVoidKeyword:function(){this.word("void")},TaggedTemplateExpression:function(e){this.print(e.tag),this.print(e.typeParameters),this.print(e.quasi)},TemplateElement:function(){throw Error("TemplateElement printing is handled in TemplateLiteral")},TemplateLiteral:function(e){for(var t=e.quasis,r="`",n=0;n<t.length;n++)r+=t[n].value.raw,n+1<t.length&&(this.token(r+"${",!0),this.print(e.expressions[n]),r="}");this.token(r+"`",!0)},ThisExpression:function(){this.word("this")},ThisTypeAnnotation:function(){this.word("this")},ThrowStatement:function(e){this.word("throw"),_6(this,e.argument)},TopicReference:function(){var e=this.format.topicToken;if(Px.has(e))this.token(e);else{var t=JSON.stringify(e),r=Array.from(Px,function(e){return JSON.stringify(e)});throw Error('The "topicToken" generator option must be one of '.concat(r.join(", ")," (").concat(t," received instead)."))}},TryStatement:function(e){this.word("try"),this.space(),this.print(e.block),this.space(),e.handlers?this.print(e.handlers[0]):this.print(e.handler),e.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(e.finalizer))},TupleExpression:function(e){var t=e.elements,r=t.length;this.token("#[");for(var n=0;n<t.length;n++){var i=t[n];i&&(n>0&&this.space(),this.print(i),(n<r-1||this.shouldPrintTrailingComma("]"))&&this.token(",",!1,n))}this.token("]")},TupleTypeAnnotation:function(e){this.tokenChar(91),this.printList(e.types),this.tokenChar(93)},TypeAlias:function(e){this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),this.space(),this.tokenChar(61),this.space(),this.print(e.right),this.semicolon()},TypeAnnotation:function(e,t){this.tokenChar(58),this.space(),"ArrowFunctionExpression"===t.type?this.tokenContext|=_j.arrowFlowReturnType:e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)},TypeCastExpression:function(e){this.tokenChar(40),this.print(e.expression),this.print(e.typeAnnotation),this.tokenChar(41)},TypeParameter:function(e){this._variance(e),this.word(e.name),e.bound&&this.print(e.bound),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default))},TypeParameterDeclaration:PI,TypeParameterInstantiation:PI,TypeofTypeAnnotation:function(e){this.word("typeof"),this.space(),this.print(e.argument)},UnaryExpression:function(e){var t=e.operator;"void"===t||"delete"===t||"typeof"===t||"throw"===t?(this.word(t),this.space()):this.token(t),this.print(e.argument)},UnionTypeAnnotation:function(e){this.printJoin(e.types,void 0,void 0,PN)},UpdateExpression:function(e){e.prefix?(this.token(e.operator),this.print(e.argument)):(this.print(e.argument,!0),this.token(e.operator))},V8IntrinsicIdentifier:function(e){this.tokenChar(37),this.word(e.name)},VariableDeclaration:function(e,t){e.declare&&(this.word("declare"),this.space());var r=e.kind;"await using"===r?(this.word("await"),this.space(),this.word("using",!0)):this.word(r,"using"===r),this.space();var n=!1;if(!_2(t)){var i=!0,a=!1,s=void 0;try{for(var o,u=e.declarations[Symbol.iterator]();!(i=(o=u.next()).done);i=!0)o.value.init&&(n=!0)}catch(e){a=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(a)throw s}}}if(this.printList(e.declarations,void 0,void 0,e.declarations.length>1,n?function(e){this.token(",",!1,e),this.newline()}:void 0),_2(t)){if(_3(t)){if(t.init===e)return}else if(t.left===e)return}this.semicolon()},VariableDeclarator:function(e){this.print(e.id),e.definite&&this.tokenChar(33),this.print(e.id.typeAnnotation),e.init&&(this.space(),this.tokenChar(61),this.space(),this.print(e.init))},Variance:function(e){"plus"===e.kind?this.tokenChar(43):this.tokenChar(45)},VoidTypeAnnotation:function(){this.word("void")},WhileStatement:function(e){this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.printBlock(e)},WithStatement:function(e){this.word("with"),this.space(),this.tokenChar(40),this.print(e.object),this.tokenChar(41),this.printBlock(e)},YieldExpression:function(e){this.word("yield",!0),e.delegate?(this.tokenChar(42),e.argument&&(this.space(),this.print(e.argument))):e.argument&&(this.space(),this.printTerminatorless(e.argument))},_classMethodHead:function(e){if(this.printJoin(e.decorators),!this.format.preserveFormat){var t,r,n=null===(r=e.key.loc)||void 0===r?void 0:null===(t=r.end)||void 0===t?void 0:t.line;n&&this.catchUp(n)}this.tsPrintClassMemberModifiers(e),this._methodHead(e)},_functionHead:function(e,t){e.async&&(this.word("async"),this.format.preserveFormat||(this._endsWithInnerRaw=!1),this.space()),this.word("function"),e.generator&&(this.format.preserveFormat||(this._endsWithInnerRaw=!1),this.tokenChar(42)),this.space(),e.id&&this.print(e.id),this._params(e,e.id,t),"TSDeclareFunction"!==e.type&&this._predicate(e)},_getRawIdentifier:function(e){if(e===Ph)return Pm;Ph=e;var t=e.name,r=this.tokenMap.find(e,function(e){return e.value===t});return Pm=r?this._originalCode.slice(r.start,r.end):e.name},_interfaceish:function(e){var t,r,n;this.print(e.id),this.print(e.typeParameters),(null===(t=e.extends)||void 0===t?void 0:t.length)&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends)),"DeclareClass"===e.type&&((null===(r=e.mixins)||void 0===r?void 0:r.length)&&(this.space(),this.word("mixins"),this.space(),this.printList(e.mixins)),(null===(n=e.implements)||void 0===n?void 0:n.length)&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements))),this.space(),this.print(e.body)},_methodHead:function(e){var t=e.kind,r=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(r),this.tokenChar(93)):this.print(r),e.optional&&this.tokenChar(63),this._params(e,e.computed&&"StringLiteral"!==e.key.type?void 0:e.key,void 0)},_param:function(e){this.printJoin(e.decorators),this.print(e),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)},_parameters:function(e,t){for(var r=this.enterDelimited(),n=this.shouldPrintTrailingComma(t),i=e.length,a=0;a<i;a++)this._param(e[a]),(n||a<i-1)&&(this.token(",",null,a),this.space());this.token(t),r()},_params:function(e,t,r){this.print(e.typeParameters);var n=Pn.call(this,t,r);n&&this.sourceIdentifierName(n.name,n.pos),this.tokenChar(40),this._parameters(e.params,")");var i="ArrowFunctionExpression"===e.type;this.print(e.returnType,i),this._noLineTerminator=i},_predicate:function(e,t){e.predicate&&(e.returnType||this.tokenChar(58),this.space(),this.print(e.predicate,t))},_printAttributes:function(e,t){var r=this.format.importAttributesKeyword,n=e.attributes,i=e.assertions,a="assert"===r||!r&&i;this.word(a?"assert":"with"),this.space();var s=t?1:0;this.token("{",null,s),this.space(),this.printList(n||i,this.shouldPrintTrailingComma("}")),this.space(),this.token("}",null,s)},_shouldPrintArrowParamsParens:function(e){if(1!==e.params.length||e.typeParameters||e.returnType||e.predicate)return!0;var t,r,n=e.params[0];if(!Pt(n)||n.typeAnnotation||n.optional||(null===(t=n.leadingComments)||void 0===t?void 0:t.length)||(null===(r=n.trailingComments)||void 0===r?void 0:r.length))return!0;if(this.tokenMap){if(null==e.loc||null!==this.tokenMap.findMatching(e,"("))return!0;var i=this.tokenMap.findMatching(e,"=>");return(null==i?void 0:i.loc)==null||i.loc.start.line!==e.loc.start.line}return!!this.format.retainLines},_shouldPrintDecoratorsBeforeExport:function(e){return"boolean"==typeof this.format.decoratorsBeforeExport?this.format.decoratorsBeforeExport:"number"==typeof e.start&&e.start===e.declaration.start},_variance:function(e){var t,r=null===(t=e.variance)||void 0===t?void 0:t.kind;null!=r&&("plus"===r?this.tokenChar(43):"minus"===r&&this.tokenChar(45))},tsPrintClassMemberModifiers:function(e){var t="ClassAccessorProperty"===e.type||"ClassProperty"===e.type;PW(this,e,[t&&e.declare&&"declare",e.accessibility]),e.static&&(this.word("static"),this.space()),PW(this,e,[e.override&&"override",e.abstract&&"abstract",t&&e.readonly&&"readonly"])},tsPrintFunctionOrConstructorType:function(e){var t=e.typeParameters,r=e.params;this.print(t),this.tokenChar(40),this._parameters(r,")"),this.space();var n=e.returnType;this.print(n)},tsPrintPropertyOrMethodName:function(e){e.computed&&this.tokenChar(91),this.print(e.key),e.computed&&this.tokenChar(93),e.optional&&this.tokenChar(63)},tsPrintSignatureDeclarationBase:function(e){var t=e.typeParameters,r=e.params;this.print(t),this.tokenChar(40),this._parameters(r,")");var n=e.returnType;this.print(n)}}),PJ=r8.isExpression,PX=r8.isFunction,PG=r8.isStatement,PK=r8.isClassBody,PH=r8.isTSInterfaceBody,Pz=r8.isTSEnumDeclaration,P$=/e/i,PY=/\.0+$/,PQ=/[\n\r\u2028\u2029]/,PZ=/[\n\r\u2028\u2029]|\*\//;function P0(e){return"CommentLine"===e.type||PQ.test(e.value)}var P1=_G.needsParens,P2=/*#__PURE__*/function(){function e(t,r,n,i){rf(this,e),rX(this,"inForStatementInit",!1),rX(this,"tokenContext",0),rX(this,"_tokens",null),rX(this,"_originalCode",null),rX(this,"_currentNode",null),rX(this,"_indent",0),rX(this,"_indentRepeat",0),rX(this,"_insideAux",!1),rX(this,"_noLineTerminator",!1),rX(this,"_noLineTerminatorAfterNode",null),rX(this,"_printAuxAfterOnNextUserNode",!1),rX(this,"_printedComments",/* @__PURE__ */new Set),rX(this,"_endsWithInteger",!1),rX(this,"_endsWithWord",!1),rX(this,"_endsWithDiv",!1),rX(this,"_lastCommentLine",0),rX(this,"_endsWithInnerRaw",!1),rX(this,"_indentInnerComments",!0),rX(this,"tokenMap",null),rX(this,"_boundGetRawIdentifier",this._getRawIdentifier.bind(this)),rX(this,"_printSemicolonBeforeNextNode",-1),rX(this,"_printSemicolonBeforeNextToken",-1),this.format=t,this._tokens=n,this._originalCode=i,this._indentRepeat=t.indent.style.length,this._inputMap=null==r?void 0:r._inputMap,this._buf=new EQ(r,t.indent.style[0])}return rm(e,[{key:"enterForStatementInit",value:function(){var e=this;return this.inForStatementInit?function(){}:(this.inForStatementInit=!0,function(){e.inForStatementInit=!1})}},{key:"enterDelimited",value:function(){var e=this,t=this.inForStatementInit,r=this._noLineTerminatorAfterNode;return!1===t&&null===r?function(){}:(this.inForStatementInit=!1,this._noLineTerminatorAfterNode=null,function(){e.inForStatementInit=t,e._noLineTerminatorAfterNode=r})}},{key:"generate",value:function(e){return this.format.preserveFormat&&(this.tokenMap=new _z(e,this._tokens,this._originalCode)),this.print(e),this._maybeAddAuxComment(),this._buf.get()}},{key:"indent",value:function(){var e=this.format;!e.preserveFormat&&!e.compact&&!e.concise&&this._indent++}},{key:"dedent",value:function(){var e=this.format;!e.preserveFormat&&!e.compact&&!e.concise&&this._indent--}},{key:"semicolon",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._maybeAddAuxComment(),e){this._appendChar(59),this._noLineTerminator=!1;return}if(this.tokenMap){var t=this._currentNode;if(null!=t.start&&null!=t.end){if(!this.tokenMap.endMatches(t,";")){this._printSemicolonBeforeNextNode=this._buf.getCurrentLine();return}var r=this.tokenMap.getIndexes(this._currentNode);this._catchUpTo(this._tokens[r[r.length-1]].loc.start)}}this._queue(59),this._noLineTerminator=!1}},{key:"rightBrace",value:function(e){this.format.minified&&this._buf.removeLastSemicolon(),this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125)}},{key:"rightParens",value:function(e){this.sourceWithOffset("end",e.loc,-1),this.tokenChar(41)}},{key:"space",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.format;if(!t.compact&&!t.preserveFormat){if(e)this._space();else if(this._buf.hasContent()){var r=this.getLastChar();32!==r&&10!==r&&this._space()}}}},{key:"word",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.tokenContext=0,this._maybePrintInnerComments(e),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(e),(this._endsWithWord||this._endsWithDiv&&47===e.charCodeAt(0))&&this._space(),this._append(e,!1),this._endsWithWord=!0,this._noLineTerminator=t}},{key:"number",value:function(e,t){this.word(e),this._endsWithInteger=Number.isInteger(t)&&!function(e){if(e.length>2&&48===e.charCodeAt(0)){var t=e.charCodeAt(1);return 98===t||111===t||120===t}return!1}(e)&&!P$.test(e)&&!PY.test(e)&&46!==e.charCodeAt(e.length-1)}},{key:"token",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.tokenContext=0,this._maybePrintInnerComments(e,r),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(e,r);var n=this.getLastChar(),i=e.charCodeAt(0);(33===n&&("--"===e||61===i)||43===i&&43===n||45===i&&45===n||46===i&&this._endsWithInteger)&&this._space(),this._append(e,t),this._noLineTerminator=!1}},{key:"tokenChar",value:function(e){this.tokenContext=0;var t=String.fromCharCode(e);this._maybePrintInnerComments(t),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(t);var r=this.getLastChar();(43===e&&43===r||45===e&&45===r||46===e&&this._endsWithInteger)&&this._space(),this._appendChar(e),this._noLineTerminator=!1}},{key:"newline",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1?arguments[1]:void 0;if(!(e<=0)){if(!t){if(this.format.retainLines||this.format.compact)return;if(this.format.concise){this.space();return}}e>2&&(e=2),e-=this._buf.getNewlineCount();for(var r=0;r<e;r++)this._newline()}}},{key:"endsWith",value:function(e){return this.getLastChar()===e}},{key:"getLastChar",value:function(){return this._buf.getLastChar()}},{key:"endsWithCharAndNewline",value:function(){return this._buf.endsWithCharAndNewline()}},{key:"removeTrailingNewline",value:function(){this._buf.removeTrailingNewline()}},{key:"exactSource",value:function(e,t){if(!e){t();return}this._catchUp("start",e),this._buf.exactSource(e,t)}},{key:"source",value:function(e,t){t&&(this._catchUp(e,t),this._buf.source(e,t))}},{key:"sourceWithOffset",value:function(e,t,r){t&&!this.format.preserveFormat&&(this._catchUp(e,t),this._buf.sourceWithOffset(e,t,r))}},{key:"sourceIdentifierName",value:function(e,t){if(this._buf._canMarkIdName){var r=this._buf._sourcePosition;r.identifierNamePos=t,r.identifierName=e}}},{key:"_space",value:function(){this._queue(32)}},{key:"_newline",value:function(){this._queue(10)}},{key:"_catchUpToCurrentToken",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.tokenMap.findMatching(this._currentNode,e,t);r&&this._catchUpTo(r.loc.start),-1!==this._printSemicolonBeforeNextToken&&this._printSemicolonBeforeNextToken===this._buf.getCurrentLine()&&(this._buf.appendChar(59),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1),this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1}},{key:"_append",value:function(e,t){this._maybeIndent(e.charCodeAt(0)),this._buf.append(e,t),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1}},{key:"_appendChar",value:function(e){this._maybeIndent(e),this._buf.appendChar(e),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1}},{key:"_queue",value:function(e){this._maybeIndent(e),this._buf.queue(e),this._endsWithWord=!1,this._endsWithInteger=!1}},{key:"_maybeIndent",value:function(e){this._indent&&10!==e&&this.endsWith(10)&&this._buf.queueIndentation(this._getIndent())}},{key:"_shouldIndent",value:function(e){if(this._indent&&10!==e&&this.endsWith(10))return!0}},{key:"catchUp",value:function(e){if(this.format.retainLines)for(var t=e-this._buf.getCurrentLine(),r=0;r<t;r++)this._newline()}},{key:"_catchUp",value:function(e,t){var r=this.format;if(!r.preserveFormat){r.retainLines&&(null==t?void 0:t[e])&&this.catchUp(t[e].line);return}var n=null==t?void 0:t[e];null!=n&&this._catchUpTo(n)}},{key:"_catchUpTo",value:function(e){var t=e.line,r=e.column,n=e.index,i=t-this._buf.getCurrentLine();if(!(i>0)||!this._noLineTerminator){for(var a=0;a<i;a++)this._newline();var s=i>0?r:r-this._buf.getCurrentColumn();if(s>0){var o=this._originalCode?this._originalCode.slice(n-s,n).replace(RegExp("[^\\t\\v\\f\\uFEFF\\p{Space_Separator}]","gu")," "):" ".repeat(s);this._append(o,!1)}}}},{key:"_getIndent",value:function(){return this._indentRepeat*this._indent}},{key:"printTerminatorless",value:function(e){this._noLineTerminator=!0,this.print(e)}},{key:"print",value:function(e,t,r){if(e){this._endsWithInnerRaw=!1;var n,i,a,s,o,u,l=e.type,c=this.format,p=c.concise;e._compact&&(c.concise=!0);var d=this[l];if(void 0===d)throw ReferenceError("unknown node of type ".concat(JSON.stringify(l)," with constructor ").concat(JSON.stringify(e.constructor.name)));var f=this._currentNode;this._currentNode=e,this.tokenMap&&(this._printSemicolonBeforeNextToken=this._printSemicolonBeforeNextNode);var h=this._insideAux;this._insideAux=null==e.loc,this._maybeAddAuxComment(this._insideAux&&!h);var m=null===(n=e.extra)||void 0===n?void 0:n.parenthesized,y=m&&c.preserveFormat||m&&c.retainFunctionParens&&"FunctionExpression"===l||P1(e,f,this.tokenContext,this.inForStatementInit,c.preserveFormat?this._boundGetRawIdentifier:void 0);if(!y&&m&&(null===(i=e.leadingComments)||void 0===i?void 0:i.length)&&"CommentBlock"===e.leadingComments[0].type)switch(null==f?void 0:f.type){case"ExpressionStatement":case"VariableDeclarator":case"AssignmentExpression":case"ReturnStatement":break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":if(f.callee!==e)break;default:y=!0}var v=!1;!y&&this._noLineTerminator&&((null===(a=e.leadingComments)||void 0===a?void 0:a.some(P0))||this.format.retainLines&&e.loc&&e.loc.start.line>this._buf.getCurrentLine())&&(y=!0,v=!0),!y&&(t||(t=f&&this._noLineTerminatorAfterNode===f&&_X(f,e)),t&&((null===(u=e.trailingComments)||void 0===u?void 0:u.some(P0))?PJ(e)&&(y=!0):(s=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=e))),y&&(this.tokenChar(40),v&&this.indent(),this._endsWithInnerRaw=!1,this.inForStatementInit&&(o=!0,this.inForStatementInit=!1),s=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=null),this._lastCommentLine=0,this._printLeadingComments(e,f);var g="Program"===l||"File"===l?null:e.loc;this.exactSource(g,d.bind(this,e,f)),y?(this._printTrailingComments(e,f),v&&(this.dedent(),this.newline()),this.tokenChar(41),this._noLineTerminator=t,o&&(this.inForStatementInit=!0)):t&&!this._noLineTerminator?(this._noLineTerminator=!0,this._printTrailingComments(e,f)):this._printTrailingComments(e,f,r),this._currentNode=f,c.concise=p,this._insideAux=h,void 0!==s&&(this._noLineTerminatorAfterNode=s),this._endsWithInnerRaw=!1}}},{key:"_maybeAddAuxComment",value:function(e){e&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment()}},{key:"_printAuxBeforeComment",value:function(){if(!this._printAuxAfterOnNextUserNode){this._printAuxAfterOnNextUserNode=!0;var e=this.format.auxiliaryCommentBefore;e&&this._printComment({type:"CommentBlock",value:e},0)}}},{key:"_printAuxAfterComment",value:function(){if(this._printAuxAfterOnNextUserNode){this._printAuxAfterOnNextUserNode=!1;var e=this.format.auxiliaryCommentAfter;e&&this._printComment({type:"CommentBlock",value:e},0)}}},{key:"getPossibleRaw",value:function(e){var t=e.extra;if((null==t?void 0:t.raw)!=null&&null!=t.rawValue&&e.value===t.rawValue)return t.raw}},{key:"printJoin",value:function(e,t,r,n,i,a,s,o){if(null==e?void 0:e.length){if(null==r&&this.format.retainLines){var u,l=null===(u=e[0].loc)||void 0===u?void 0:u.start.line;null!=l&&l!==this._buf.getCurrentLine()&&(r=!0)}r&&this.indent();for(var c={addNewlines:a,nextNodeStartLine:0},p=null==n?void 0:n.bind(this),d=e.length,f=0;f<d;f++){var h=e[f];if(h&&(t&&this._printNewline(0===f,c),this.print(h,void 0,o||0),null==s||s(h,f),null!=p&&(f<d-1?p(f,!1):i&&p(f,!0)),t)){if((null===(m=h.trailingComments)||void 0===m?void 0:m.length)||(this._lastCommentLine=0),f+1===d)this.newline(1);else{var m,y,v=e[f+1];c.nextNodeStartLine=(null===(y=v.loc)||void 0===y?void 0:y.start.line)||0,this._printNewline(!0,c)}}}r&&this.dedent()}}},{key:"printAndIndentOnComments",value:function(e){var t=e.leadingComments&&e.leadingComments.length>0;t&&this.indent(),this.print(e),t&&this.dedent()}},{key:"printBlock",value:function(e){var t=e.body;"EmptyStatement"!==t.type&&this.space(),this.print(t)}},{key:"_printTrailingComments",value:function(e,t,r){var n=e.innerComments,i=e.trailingComments;(null==n?void 0:n.length)&&this._printComments(2,n,e,t,r),(null==i?void 0:i.length)&&this._printComments(2,i,e,t,r)}},{key:"_printLeadingComments",value:function(e,t){var r=e.leadingComments;(null==r?void 0:r.length)&&this._printComments(0,r,e,t)}},{key:"_maybePrintInnerComments",value:function(e,t){if(this._endsWithInnerRaw){var r;this.printInnerComments(null===(r=this.tokenMap)||void 0===r?void 0:r.findMatching(this._currentNode,e,t))}this._endsWithInnerRaw=!0,this._indentInnerComments=!0}},{key:"printInnerComments",value:function(e){var t=this._currentNode,r=t.innerComments;if(null==r?void 0:r.length){var n=this.endsWith(32),i=this._indentInnerComments,a=this._printedComments.size;i&&this.indent(),this._printComments(1,r,t,void 0,void 0,e),n&&a!==this._printedComments.size&&this.space(),i&&this.dedent()}}},{key:"noIndentInnerCommentsHere",value:function(){this._indentInnerComments=!1}},{key:"printSequence",value:function(e,t,r,n){this.printJoin(e,!0,null!=t&&t,void 0,void 0,n,void 0,r)}},{key:"printList",value:function(e,t,r,n,i,a){this.printJoin(e,r,n,null!=i?i:P3,t,void 0,a)}},{key:"shouldPrintTrailingComma",value:function(e){var t=this;if(!this.tokenMap)return null;var r=this.tokenMap.findLastIndex(this._currentNode,function(r){return t.tokenMap.matchesOriginal(r,e)});return r<=0?null:this.tokenMap.matchesOriginal(this._tokens[r-1],",")}},{key:"_printNewline",value:function(e,t){var r=this.format;if(!r.retainLines&&!r.compact){if(r.concise){this.space();return}if(!e)return;var n=t.nextNodeStartLine,i=this._lastCommentLine;if(n>0&&i>0){var a=n-i;if(a>=0){this.newline(a||1);return}}this._buf.hasContent()&&this.newline(1)}}},{key:"_shouldPrintComment",value:function(e,t){if(e.ignore||this._printedComments.has(e))return 0;if(this._noLineTerminator&&PZ.test(e.value))return 2;if(t&&this.tokenMap){var r=this.tokenMap.find(this._currentNode,function(t){return t.value===e.value});if(r&&r.start>t.start)return 2}return(this._printedComments.add(e),this.format.shouldPrintComment(e.value))?1:0}},{key:"_printComment",value:function(e,t){var r=this._noLineTerminator,n="CommentBlock"===e.type,i=n&&1!==t&&!this._noLineTerminator;i&&this._buf.hasContent()&&2!==t&&this.newline(1);var a=this.getLastChar();if(91!==a&&123!==a&&40!==a&&this.space(),n){if(s="/*".concat(e.value,"*/"),this.format.indent.adjustMultilineComment){var s,o,u=null===(o=e.loc)||void 0===o?void 0:o.start.column;if(u){var l=RegExp("\\n\\s{1,"+u+"}","g");s=s.replace(l,"\n")}if(this.format.concise)s=s.replace(/\n(?!$)/g,"\n");else{var c=this.format.retainLines?0:this._buf.getCurrentColumn();(this._shouldIndent(47)||this.format.retainLines)&&(c+=this._getIndent()),s=s.replace(/\n(?!$)/g,"\n".concat(" ".repeat(c)))}}}else s=r?"/*".concat(e.value,"*/"):"//".concat(e.value);if(this._endsWithDiv&&this._space(),this.tokenMap){var p=this._printSemicolonBeforeNextToken,d=this._printSemicolonBeforeNextNode;this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1,this.source("start",e.loc),this._append(s,n),this._printSemicolonBeforeNextNode=d,this._printSemicolonBeforeNextToken=p}else this.source("start",e.loc),this._append(s,n);n||r||this.newline(1,!0),i&&3!==t&&this.newline(1)}},{key:"_printComments",value:function(e,t,r,n){for(var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5?arguments[5]:void 0,s=r.loc,o=t.length,u=!!s,l=u?s.start.line:0,c=u?s.end.line:0,p=0,d=0,f=this._noLineTerminator?function(){}:this.newline.bind(this),h=0;h<o;h++){var m=t[h],y=this._shouldPrintComment(m,a);if(2===y){u=!1;break}if(u&&m.loc&&1===y){var v=m.loc.start.line,g=m.loc.end.line;if(0===e){var b=0;0===h?this._buf.hasContent()&&("CommentLine"===m.type||v!==g)&&(b=d=1):b=v-p,p=g,f(b),this._printComment(m,1),h+1===o&&(f(Math.max(l-p,d)),p=l)}else if(1===e){var S=v-(0===h?l:p);p=g,f(S),this._printComment(m,1),h+1===o&&(f(Math.min(1,c-p)),p=c)}else{var x=v-(0===h?c-i:p);p=g,f(x),this._printComment(m,1)}}else{if(u=!1,1!==y)continue;if(1===o){var T=m.loc?m.loc.start.line===m.loc.end.line:!PQ.test(m.value),E=T&&!PG(r)&&!PK(n)&&!PH(n)&&!Pz(n);0===e?this._printComment(m,E&&"ObjectExpression"!==r.type||T&&PX(n,{body:r})?1:0):E&&2===e?this._printComment(m,1):this._printComment(m,0)}else 1!==e||"ObjectExpression"===r.type&&r.properties.length>1||"ClassBody"===r.type||"TSInterfaceBody"===r.type?this._printComment(m,0):this._printComment(m,0===h?2:h===o-1?3:0)}}2===e&&u&&p&&(this._lastCommentLine=p)}}]),e}();function P3(e,t){this.token(",",!1,e),t||this.space()}function P4(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return new P2(function(e,t,r){if(t.experimental_preserveFormat){if("string"!=typeof e)throw Error("`experimental_preserveFormat` requires the original `code` to be passed to @babel/generator as a string");if(!t.retainLines)throw Error("`experimental_preserveFormat` requires `retainLines` to be set to `true`");if(t.compact&&"auto"!==t.compact)throw Error("`experimental_preserveFormat` is not compatible with the `compact` option");if(t.minified)throw Error("`experimental_preserveFormat` is not compatible with the `minified` option");if(t.jsescOption)throw Error("`experimental_preserveFormat` is not compatible with the `jsescOption` option");if(!Array.isArray(r.tokens))throw Error("`experimental_preserveFormat` requires the AST to have attatched the token of the input code. Make sure to enable the `tokens: true` parser option.")}var n={auxiliaryCommentBefore:t.auxiliaryCommentBefore,auxiliaryCommentAfter:t.auxiliaryCommentAfter,shouldPrintComment:t.shouldPrintComment,preserveFormat:t.experimental_preserveFormat,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:!0},t.jsescOption),topicToken:t.topicToken,importAttributesKeyword:t.importAttributesKeyword};n.minified?(n.compact=!0,n.shouldPrintComment=n.shouldPrintComment||function(){return n.comments}):n.shouldPrintComment=n.shouldPrintComment||function(e){return n.comments||e.includes("@license")||e.includes("@preserve")},"auto"===n.compact&&(n.compact="string"==typeof e&&e.length>5e5,n.compact&&console.error("[BABEL] Note: The code generator has deoptimised the styling of ".concat(t.filename," as it exceeds the max of ","500KB","."))),(n.compact||n.preserveFormat)&&(n.indent.adjustMultilineComment=!1);var i=n.auxiliaryCommentBefore,a=n.auxiliaryCommentAfter,s=n.shouldPrintComment;return i&&!s(i)&&(n.auxiliaryCommentBefore=void 0),a&&!s(a)&&(n.auxiliaryCommentAfter=void 0),n}(r,t,e),t.sourceMaps?new EY(t,r):null,e.tokens,"string"==typeof r?r:null).generate(e)}Object.assign(P2.prototype,Pq);var P5=rJ(r1()),P8=rJ(r3()),P6=/* @__PURE__ */Object.freeze({__proto__:null,BindingIdentifier:["Identifier"],BlockScoped:null,ExistentialTypeParam:["ExistsTypeAnnotation"],Expression:["Expression"],Flow:["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],ForAwaitStatement:["ForOfStatement"],Generated:null,NumericLiteralTypeAnnotation:["NumberLiteralTypeAnnotation"],Pure:null,Referenced:null,ReferencedIdentifier:["Identifier","JSXIdentifier"],ReferencedMemberExpression:["MemberExpression"],RestProperty:["RestElement"],Scope:["Scopable","Pattern"],SpreadProperty:["RestElement"],Statement:["Statement"],User:null,Var:["VariableDeclaration"]}),P9=r8.isBinding,P7=r8.isBlockScoped,Ae=r8.isExportDeclaration,At=r8.isExpression,Ar=r8.isFlow,An=r8.isForStatement,Ai=r8.isForXStatement,Aa=r8.isIdentifier,As=r8.isImportDeclaration,Ao=r8.isImportSpecifier,Au=r8.isJSXIdentifier,Al=r8.isJSXMemberExpression,Ac=r8.isMemberExpression,Ap=r8.isRestElement,Ad=r8.isReferenced,Af=r8.isScope,Ah=r8.isStatement,Am=r8.isVar,Ay=r8.isVariableDeclaration,Av=r8.react,Ag=r8.isForOfStatement,Ab=Av.isCompatTag,AS=/* @__PURE__ */Object.freeze({__proto__:null,isBindingIdentifier:function(){var e=this.node,t=this.parent,r=this.parentPath.parent;return Aa(e)&&P9(e,t,r)},isBlockScoped:function(){return P7(this.node)},isExpression:function(){return this.isIdentifier()?this.isReferencedIdentifier():At(this.node)},isFlow:function(){var e=this.node;return!!Ar(e)||(As(e)?"type"===e.importKind||"typeof"===e.importKind:Ae(e)?"type"===e.exportKind:!!Ao(e)&&("type"===e.importKind||"typeof"===e.importKind))},isForAwaitStatement:function(){return Ag(this.node,{await:!0})},isGenerated:function(){return!this.isUser()},isPure:function(e){return this.scope.isPure(this.node,e)},isReferenced:function(){return Ad(this.node,this.parent)},isReferencedIdentifier:function(e){var t=this.node,r=this.parent;return!(!Aa(t,e)&&!Al(r,e)&&(!Au(t,e)||Ab(t.name)))&&Ad(t,r,this.parentPath.parent)},isReferencedMemberExpression:function(){var e=this.node,t=this.parent;return Ac(e)&&Ad(e,t)},isRestProperty:function(){var e;return Ap(this.node)&&(null===(e=this.parentPath)||void 0===e?void 0:e.isObjectPattern())},isScope:function(){return Af(this.node,this.parent)},isSpreadProperty:function(){var e;return Ap(this.node)&&(null===(e=this.parentPath)||void 0===e?void 0:e.isObjectExpression())},isStatement:function(){var e=this.node,t=this.parent;return!!Ah(e)&&!(Ay(e)&&(Ai(t,{left:e})||An(t,{init:e})))},isUser:function(){return this.node&&!!this.node.loc},isVar:function(){return Am(this.node)}}),Ax=r8.DEPRECATED_KEYS,AT=r8.DEPRECATED_ALIASES,AE=r8.FLIPPED_ALIAS_KEYS,A_=r8.TYPES,AP=r8.__internal__deprecationWarning;function AA(e){return null==e?void 0:e._exploded}function Ak(e){if(AA(e))return e;e._exploded=!0;var t=!0,r=!1,n=void 0;try{for(var i,a=Object.keys(e)[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var s=i.value;if(!AD(s)){var o=s.split("|");if(1!==o.length){var u=e[s];delete e[s];var l=!0,c=!1,p=void 0;try{for(var d,f=o[Symbol.iterator]();!(l=(d=f.next()).done);l=!0)e[d.value]=u}catch(e){c=!0,p=e}finally{try{l||null==f.return||f.return()}finally{if(c)throw p}}}}}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}AC(e),delete e.__esModule,function(e){var t=!0,r=!1,n=void 0;try{for(var i,a=Object.keys(e)[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var s=i.value;if(!AD(s)){var o=e[s];"function"==typeof o&&(e[s]={enter:o})}}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}}(e),AO(e);var h=!0,m=!1,y=void 0;try{for(var v,g=Object.keys(e)[Symbol.iterator]();!(h=(v=g.next()).done);h=!0){var b=v.value;if(!AD(b)&&b in P6){var S=e[b],x=!0,T=!1,E=void 0;try{for(var _,P=Object.keys(S)[Symbol.iterator]();!(x=(_=P.next()).done);x=!0){var A=_.value;S[A]=function(e,t){var r=AS["is".concat(e)],n=function(e){if(r.call(e))return t.apply(this,arguments)};return n.toString=function(){return t.toString()},n}(b,S[A])}}catch(e){T=!0,E=e}finally{try{x||null==P.return||P.return()}finally{if(T)throw E}}delete e[b];var k=P6[b];if(null!==k){var C=!0,w=!1,I=void 0;try{for(var N,O=k[Symbol.iterator]();!(C=(N=O.next()).done);C=!0){var D=N.value;e[D]?AL(e[D],S):e[D]=S}}catch(e){w=!0,I=e}finally{try{C||null==O.return||O.return()}finally{if(w)throw I}}}else AL(e,S)}}}catch(e){m=!0,y=e}finally{try{h||null==g.return||g.return()}finally{if(m)throw y}}var L=!0,M=!1,F=void 0;try{for(var B,R=Object.keys(e)[Symbol.iterator]();!(L=(B=R.next()).done);L=!0){var j=B.value;if(!AD(j)){var U=AE[j];if(j in Ax){var V=Ax[j];AP(j,V,"Visitor "),U=[V]}else if(j in AT){var W=AT[j];AP(j,W,"Visitor "),U=AE[W]}if(U){var q=e[j];delete e[j];var J=!0,X=!1,G=void 0;try{for(var K,H=U[Symbol.iterator]();!(J=(K=H.next()).done);J=!0){var z=K.value,$=e[z];$?AL($,q):e[z]=Object.assign({},q)}}catch(e){X=!0,G=e}finally{try{J||null==H.return||H.return()}finally{if(X)throw G}}}}}}catch(e){M=!0,F=e}finally{try{L||null==R.return||R.return()}finally{if(M)throw F}}var Y=!0,Q=!1,Z=void 0;try{for(var ee,et=Object.keys(e)[Symbol.iterator]();!(Y=(ee=et.next()).done);Y=!0){var er=ee.value;AD(er)||AO(e[er])}}catch(e){Q=!0,Z=e}finally{try{Y||null==et.return||et.return()}finally{if(Q)throw Z}}return e}function AC(e){if(!e._verified){if("function"==typeof e)throw Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");var t=!0,r=!1,n=void 0;try{for(var i,a=Object.keys(e)[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var s=i.value;if(("enter"===s||"exit"===s)&&Aw(s,e[s]),!AD(s)){if(!A_.includes(s))throw Error("You gave us a visitor for the node type ".concat(s," but it's not a valid type in @babel/traverse ","8.0.0-alpha.14"));var o=e[s];if((void 0===o?"undefined":rP(o))==="object"){var u=!0,l=!1,c=void 0;try{for(var p,d=Object.keys(o)[Symbol.iterator]();!(u=(p=d.next()).done);u=!0){var f=p.value;if("enter"===f||"exit"===f)Aw("".concat(s,".").concat(f),o[f]);else throw Error("You passed `traverse()` a visitor object with the property ".concat(s," that has the invalid property ").concat(f))}}catch(e){l=!0,c=e}finally{try{u||null==d.return||d.return()}finally{if(l)throw c}}}}}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}e._verified=!0}}function Aw(e,t){var r=[].concat(t),n=!0,i=!1,a=void 0;try{for(var s,o=r[Symbol.iterator]();!(n=(s=o.next()).done);n=!0){var u=s.value;if("function"!=typeof u)throw TypeError("Non-function found defined in ".concat(e," with type ").concat(void 0===u?"undefined":rP(u)))}}catch(e){i=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}}function AI(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,n={_verified:!0,_exploded:!0},i=0;i<e.length;i++){var a=Ak(e[i]),s=t[i],o=a;(s||r)&&(o=AN(o,s,r)),AL(n,o);var u=!0,l=!1,c=void 0;try{for(var p,d=Object.keys(a)[Symbol.iterator]();!(u=(p=d.next()).done);u=!0){var f=p.value;if(!AD(f)){var h=a[f];(s||r)&&(h=AN(h,s,r));var m=n[f]||(n[f]={});AL(m,h)}}}catch(e){l=!0,c=e}finally{try{u||null==d.return||d.return()}finally{if(l)throw c}}}return n}function AN(e,t,r){for(var n={},i=0,a=["enter","exit"];i<a.length;i++)!function(i,a){var s=a[i],o=e[s];Array.isArray(o)&&(o=o.map(function(e){var n=e;return t&&(n=function(r){e.call(t,r,t)}),r&&(n=r(null==t?void 0:t.key,s,n)),n!==e&&(n.toString=function(){return e.toString()}),n}),n[s]=o)}(i,a);return n}function AO(e){e.enter&&!Array.isArray(e.enter)&&(e.enter=[e.enter]),e.exit&&!Array.isArray(e.exit)&&(e.exit=[e.exit])}function AD(e){return"_"===e[0]||"enter"===e||"exit"===e||"shouldSkip"===e||"denylist"===e||"noScope"===e||"skipKeys"===e}function AL(e,t){for(var r=0,n=["enter","exit"];r<n.length;r++){var i=n[r];t[i]&&(e[i]=[].concat(e[i]||[],t[i]))}}var AM={FunctionParent:function(e){!e.isArrowFunctionExpression()&&(e.skip(),e.isMethod()&&e.requeueComputedKeyAndDecorators())},Property:function(e){e.isObjectProperty()||(e.skip(),e.requeueComputedKeyAndDecorators())}};function AF(e){return AI([AM,e])}var AB=/* @__PURE__ */Object.freeze({__proto__:null,environmentVisitor:AF,explode:Ak,isExplodedVisitor:AA,merge:AI,verify:AC}),AR=r8.getAssignmentIdentifiers,Aj={ReferencedIdentifier:function(e,t){var r=e.node;r.name===t.oldName&&(r.name=t.newName)},Scope:function(e,t){!e.scope.bindingIdentifierEquals(t.oldName,t.binding.identifier)&&(e.skip(),e.isMethod()&&e.requeueComputedKeyAndDecorators())},ObjectProperty:function(e,t){var r=e.node,n=e.scope,i=r.key.name;r.shorthand&&(i===t.oldName||i===t.newName)&&n.getBindingIdentifier(i)===t.binding.identifier&&(r.shorthand=!1)},"AssignmentExpression|Declaration|VariableDeclarator":function(e,t){if(!e.isVariableDeclaration()){var r=e.isAssignmentExpression()?AR(e.node):e.getOuterBindingIdentifiers();for(var n in r)n===t.oldName&&(r[n].name=t.newName)}}},AU=/*#__PURE__*/function(){function e(t,r,n){rf(this,e),this.newName=n,this.oldName=r,this.binding=t}return rm(e,[{key:"maybeConvertFromExportDeclaration",value:function(e){var t=e.parentPath;if(t.isExportDeclaration()){if(t.isExportDefaultDeclaration()){var r=t.node.declaration;if(oA(r)&&!r.id)return}t.isExportAllDeclaration()||t.splitExportDeclaration()}}},{key:"maybeConvertFromClassFunctionDeclaration",value:function(e){return e}},{key:"maybeConvertFromClassFunctionExpression",value:function(e){return e}},{key:"rename",value:function(){var e=this.binding,t=this.oldName,r=this.newName,n=e.scope,i=e.path,a=i.find(function(e){return e.isDeclaration()||e.isFunctionExpression()||e.isClassExpression()});a&&a.getOuterBindingIdentifiers()[t]===e.identifier&&this.maybeConvertFromExportDeclaration(a);var s=n.block,o={discriminant:!0};oO(s)&&(s.computed&&(o.key=!0),nK(s)||(o.decorators=!0)),I6(s,Ak(Aj),n,this,n.path,o),n.removeOwnBinding(t),n.bindings[r]=e,this.binding.identifier.name=r,a&&(this.maybeConvertFromClassFunctionDeclaration(i),this.maybeConvertFromClassFunctionExpression(i))}}]),e}(),AV=/*#__PURE__*/function(){function e(t){var r=t.identifier,n=t.scope,i=t.path,a=t.kind;rf(this,e),rX(this,"identifier"),rX(this,"scope"),rX(this,"path"),rX(this,"kind"),rX(this,"constantViolations",[]),rX(this,"constant",!0),rX(this,"referencePaths",[]),rX(this,"referenced",!1),rX(this,"references",0),this.identifier=r,this.scope=n,this.path=i,this.kind=a,("var"===a||"hoisted"===a)&&function(e){for(var t,r=e.parentPath,n=e.key;r&&!r.isFunctionParent();r=(t=r).parentPath,n=t.key,t)if(r.isWhile()||r.isForXStatement()||r.isForStatement()&&"body"===n)return!0;return!1}(i)&&this.reassign(i),this.clearValue()}return rm(e,[{key:"deoptValue",value:function(){this.clearValue(),this.hasDeoptedValue=!0}},{key:"setValue",value:function(e){this.hasDeoptedValue||(this.hasValue=!0,this.value=e)}},{key:"clearValue",value:function(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}},{key:"reassign",value:function(e){this.constant=!1,this.constantViolations.includes(e)||this.constantViolations.push(e)}},{key:"reference",value:function(e){this.referencePaths.includes(e)||(this.referenced=!0,this.references++,this.referencePaths.push(e))}},{key:"dereference",value:function(){this.references--,this.referenced=!!this.references}}]),e}(),AW=/* @__PURE__ */new WeakMap,Aq=/* @__PURE__ */new WeakMap;function AJ(){AW=/* @__PURE__ */new WeakMap}function AX(){Aq=/* @__PURE__ */new WeakMap}var AG=Object.freeze({});function AK(e,t){var r;return null===(r=AW.get(null!=e?e:AG))||void 0===r?void 0:r.get(t)}function AH(e,t){var r=AW.get(null!=e?e:AG);r||AW.set(null!=e?e:AG,r=/* @__PURE__ */new WeakMap);var n=r.get(t);return n||r.set(t,n=/* @__PURE__ */new Map),n}var Az=/* @__PURE__ */Object.freeze({__proto__:null,clear:function(){AJ(),AX()},clearPath:AJ,clearScope:AX,getCachedPaths:AK,getOrCreateCachedPaths:AH,get path(){return AW},get scope(){return Aq}}),A$=r8.NOT_LOCAL_BINDING,AY=r8.assignmentExpression;r8.callExpression;var AQ=r8.cloneNode,AZ=r8.getBindingIdentifiers,A0=r8.identifier,A1=r8.isArrayExpression,A2=r8.isBinary,A3=r8.isCallExpression,A4=r8.isClass,A5=r8.isClassBody,A8=r8.isClassDeclaration,A6=r8.isExportAllDeclaration,A9=r8.isExportDefaultDeclaration,A7=r8.isExportNamedDeclaration,ke=r8.isFunctionDeclaration,kt=r8.isIdentifier,kr=r8.isImportDeclaration,kn=r8.isLiteral,ki=r8.isMemberExpression,ka=r8.isMethod,ks=r8.isModuleSpecifier,ko=r8.isNullLiteral,ku=r8.isObjectExpression,kl=r8.isProperty,kc=r8.isPureish,kp=r8.isRegExpLiteral,kd=r8.isSuper,kf=r8.isTaggedTemplateExpression,kh=r8.isTemplateLiteral,km=r8.isThisExpression,ky=r8.isUnaryExpression,kv=r8.isVariableDeclaration,kg=r8.expressionStatement,kb=r8.matchesPattern;r8.memberExpression,r8.numericLiteral;var kS=r8.toIdentifier,kx=r8.variableDeclaration,kT=r8.variableDeclarator,kE=r8.isRecordExpression,k_=r8.isTupleExpression,kP=r8.isObjectProperty,kA=r8.isTopicReference,kk=r8.isMetaProperty,kC=r8.isPrivateName,kw=r8.isExportDeclaration,kI=r8.buildUndefinedNode,kN=r8.sequenceExpression,kO={ForStatement:function(e){var t=e.get("init");if(t.isVar()){var r=e.scope;(r.getFunctionParent()||r.getProgramParent()).registerBinding("var",t)}},Declaration:function(e){!(e.isBlockScoped()||e.isImportDeclaration())&&(e.isExportDeclaration()||(e.scope.getFunctionParent()||e.scope.getProgramParent()).registerDeclaration(e))},ImportDeclaration:function(e){e.scope.getBlockParent().registerDeclaration(e)},ReferencedIdentifier:function(e,t){t.references.push(e)},ForXStatement:function(e,t){var r=e.get("left");if(r.isPattern()||r.isIdentifier())t.constantViolations.push(e);else if(r.isVar()){var n=e.scope;(n.getFunctionParent()||n.getProgramParent()).registerBinding("var",r)}},ExportDeclaration:{exit:function(e){var t=e.node,r=e.scope;if(!A6(t)){var n=t.declaration;if(A8(n)||ke(n)){var i=n.id;if(!i)return;var a=r.getBinding(i.name);null==a||a.reference(e)}else if(kv(n)){var s=!0,o=!1,u=void 0;try{for(var l,c=n.declarations[Symbol.iterator]();!(s=(l=c.next()).done);s=!0){var p=l.value,d=!0,f=!1,h=void 0;try{for(var m,y=Object.keys(AZ(p))[Symbol.iterator]();!(d=(m=y.next()).done);d=!0){var v=m.value,g=r.getBinding(v);null==g||g.reference(e)}}catch(e){f=!0,h=e}finally{try{d||null==y.return||y.return()}finally{if(f)throw h}}}}catch(e){o=!0,u=e}finally{try{s||null==c.return||c.return()}finally{if(o)throw u}}}}}},LabeledStatement:function(e){e.scope.getBlockParent().registerDeclaration(e)},AssignmentExpression:function(e,t){t.assignments.push(e)},UpdateExpression:function(e,t){t.constantViolations.push(e)},UnaryExpression:function(e,t){"delete"===e.node.operator&&t.constantViolations.push(e)},BlockScoped:function(e){var t=e.scope;if(t.path===e&&(t=t.parent),t.getBlockParent().registerDeclaration(e),e.isClassDeclaration()&&e.node.id){var r=e.node.id.name;e.scope.bindings[r]=e.scope.parent.getBinding(r)}},CatchClause:function(e){e.scope.registerBinding("let",e)},Function:function(e){var t=e.get("params"),r=!0,n=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var o=a.value;e.scope.registerBinding("param",o)}}catch(e){n=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw i}}e.isFunctionExpression()&&e.node.id&&!e.node.id[A$]&&e.scope.registerBinding("local",e.get("id"),e)},ClassExpression:function(e){e.node.id&&!e.node.id[A$]&&e.scope.registerBinding("local",e.get("id"),e)},TSTypeAnnotation:function(e){e.skip()}},kD=0,kL=/*#__PURE__*/function(){function e(t){rf(this,e),rX(this,"uid"),rX(this,"path"),rX(this,"block"),rX(this,"inited"),rX(this,"labels"),rX(this,"bindings"),rX(this,"references"),rX(this,"globals"),rX(this,"uids"),rX(this,"data"),rX(this,"crawling");var r=t.node,n=Aq.get(r);if((null==n?void 0:n.path)===t)return n;Aq.set(r,this),this.uid=kD++,this.block=r,this.path=t,this.labels=/* @__PURE__ */new Map,this.inited=!1}return rm(e,[{key:"parent",get:function(){var e,t=this.path;do{var r="key"===t.key||"decorators"===t.listKey;t=t.parentPath,r&&t.isMethod()&&(t=t.parentPath),(null==t?void 0:t.isScope())&&(e=t)}while(t&&!e);return null==e?void 0:e.scope}},{key:"generateDeclaredUidIdentifier",value:function(e){var t=this.generateUidIdentifier(e);return this.push({id:t}),AQ(t)}},{key:"generateUidIdentifier",value:function(e){return A0(this.generateUid(e))}},{key:"generateUid",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"temp";t=kS(t).replace(/^_+/,"").replace(/\d+$/g,"");var r=1;do e="_".concat(t),r>1&&(e+=r),r++;while(this.hasLabel(e)||this.hasBinding(e)||this.hasGlobal(e)||this.hasReference(e));var n=this.getProgramParent();return n.references[e]=!0,n.uids[e]=!0,e}},{key:"generateUidBasedOnNode",value:function(e,t){var r=[];!function e(t,r){switch(null==t?void 0:t.type){default:if(kr(t)||kw(t)){var n;if((A6(t)||A7(t)||kr(t))&&t.source)e(t.source,r);else if((A7(t)||kr(t))&&(null===(n=t.specifiers)||void 0===n?void 0:n.length)){var i=!0,a=!1,s=void 0;try{for(var o,u=t.specifiers[Symbol.iterator]();!(i=(o=u.next()).done);i=!0){var l=o.value;e(l,r)}}catch(e){a=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(a)throw s}}}else(A9(t)||A7(t))&&t.declaration&&e(t.declaration,r)}else ks(t)?e(t.local,r):!kn(t)||ko(t)||kp(t)||kh(t)||r.push(t.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":e(t.object,r),e(t.property,r);break;case"Identifier":case"JSXIdentifier":r.push(t.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":e(t.callee,r);break;case"ObjectExpression":case"ObjectPattern":var c=!0,p=!1,d=void 0;try{for(var f,h=t.properties[Symbol.iterator]();!(c=(f=h.next()).done);c=!0){var m=f.value;e(m,r)}}catch(e){p=!0,d=e}finally{try{c||null==h.return||h.return()}finally{if(p)throw d}}break;case"SpreadElement":case"RestElement":case"UnaryExpression":case"UpdateExpression":e(t.argument,r);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":e(t.key,r);break;case"ThisExpression":r.push("this");break;case"Super":r.push("super");break;case"Import":r.push("import");break;case"DoExpression":r.push("do");break;case"YieldExpression":r.push("yield"),e(t.argument,r);break;case"AwaitExpression":r.push("await"),e(t.argument,r);break;case"AssignmentExpression":e(t.left,r);break;case"VariableDeclarator":case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":case"PrivateName":e(t.id,r);break;case"ParenthesizedExpression":e(t.expression,r);break;case"MetaProperty":e(t.meta,r),e(t.property,r);break;case"JSXElement":e(t.openingElement,r);break;case"JSXOpeningElement":e(t.name,r);break;case"JSXFragment":e(t.openingFragment,r);break;case"JSXOpeningFragment":r.push("Fragment");break;case"JSXNamespacedName":e(t.namespace,r),e(t.name,r)}}(e,r);var n=r.join("$");return n=n.replace(/^_/,"")||t||"ref",this.generateUid(n.slice(0,20))}},{key:"generateUidIdentifierBasedOnNode",value:function(e,t){return A0(this.generateUidBasedOnNode(e,t))}},{key:"isStatic",value:function(e){if(km(e)||kd(e)||kA(e))return!0;if(kt(e)){var t=this.getBinding(e.name);return t?t.constant:this.hasBinding(e.name)}return!1}},{key:"maybeGenerateMemoised",value:function(e,t){if(this.isStatic(e))return null;var r=this.generateUidIdentifierBasedOnNode(e);return t?r:(this.push({id:r}),AQ(r))}},{key:"checkBlockScopedCollisions",value:function(e,t,r,n){if("param"!==t&&"local"!==e.kind&&("let"===t||"let"===e.kind||"const"===e.kind||"module"===e.kind||"param"===e.kind&&"const"===t))throw this.path.hub.buildError(n,'Duplicate declaration "'.concat(r,'"'),TypeError)}},{key:"rename",value:function(e,t){var r=this.getBinding(e);r&&(t||(t=this.generateUidIdentifier(e).name),new AU(r,e,t).rename())}},{key:"dump",value:function(){var e="-".repeat(60);console.log(e);var t=this;do{console.log("#",t.block.type);var r=!0,n=!1,i=void 0;try{for(var a,s=Object.keys(t.bindings)[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var o=a.value,u=t.bindings[o];console.log(" -",o,{constant:u.constant,references:u.references,violations:u.constantViolations.length,kind:u.kind})}}catch(e){n=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw i}}}while(t=t.parent);console.log(e)}},{key:"hasLabel",value:function(e){return!!this.getLabel(e)}},{key:"getLabel",value:function(e){return this.labels.get(e)}},{key:"registerLabel",value:function(e){this.labels.set(e.node.label.name,e)}},{key:"registerDeclaration",value:function(e){if(e.isLabeledStatement())this.registerLabel(e);else if(e.isFunctionDeclaration())this.registerBinding("hoisted",e.get("id"),e);else if(e.isVariableDeclaration()){var t=e.get("declarations"),r=e.node.kind,n=!0,i=!1,a=void 0;try{for(var s,o=t[Symbol.iterator]();!(n=(s=o.next()).done);n=!0){var u=s.value;this.registerBinding("using"===r||"await using"===r?"const":r,u)}}catch(e){i=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}}else if(e.isClassDeclaration()){if(e.node.declare)return;this.registerBinding("let",e)}else if(e.isImportDeclaration()){var l="type"===e.node.importKind||"typeof"===e.node.importKind,c=e.get("specifiers"),p=!0,d=!1,f=void 0;try{for(var h,m=c[Symbol.iterator]();!(p=(h=m.next()).done);p=!0){var y=h.value,v=l||y.isImportSpecifier()&&("type"===y.node.importKind||"typeof"===y.node.importKind);this.registerBinding(v?"unknown":"module",y)}}catch(e){d=!0,f=e}finally{try{p||null==m.return||m.return()}finally{if(d)throw f}}}else if(e.isExportDeclaration()){var g=e.get("declaration");(g.isClassDeclaration()||g.isFunctionDeclaration()||g.isVariableDeclaration())&&this.registerDeclaration(g)}else this.registerBinding("unknown",e)}},{key:"buildUndefinedNode",value:function(){return kI()}},{key:"registerConstantViolation",value:function(e){var t=e.getAssignmentIdentifiers(),r=!0,n=!1,i=void 0;try{for(var a,s=Object.keys(t)[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var o,u=a.value;null===(o=this.getBinding(u))||void 0===o||o.reassign(e)}}catch(e){n=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw i}}}},{key:"registerBinding",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;if(!e)throw ReferenceError("no `kind`");if(t.isVariableDeclaration()){var n=t.get("declarations"),i=!0,a=!1,s=void 0;try{for(var o,u=n[Symbol.iterator]();!(i=(o=u.next()).done);i=!0){var l=o.value;this.registerBinding(e,l)}}catch(e){a=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(a)throw s}}return}var c=this.getProgramParent(),p=t.getOuterBindingIdentifiers(!0),d=!0,f=!1,h=void 0;try{for(var m,y=Object.keys(p)[Symbol.iterator]();!(d=(m=y.next()).done);d=!0){var v=m.value;c.references[v]=!0;var g=!0,b=!1,S=void 0;try{for(var x,T=p[v][Symbol.iterator]();!(g=(x=T.next()).done);g=!0){var E=x.value,_=this.getOwnBinding(v);if(_){if(_.identifier===E)continue;this.checkBlockScopedCollisions(_,e,v,E)}_?_.reassign(r):this.bindings[v]=new AV({identifier:E,scope:this,path:r,kind:e})}}catch(e){b=!0,S=e}finally{try{g||null==T.return||T.return()}finally{if(b)throw S}}}}catch(e){f=!0,h=e}finally{try{d||null==y.return||y.return()}finally{if(f)throw h}}}},{key:"addGlobal",value:function(e){this.globals[e.name]=e}},{key:"hasUid",value:function(e){var t=this;do if(t.uids[e])return!0;while(t=t.parent);return!1}},{key:"hasGlobal",value:function(e){var t=this;do if(t.globals[e])return!0;while(t=t.parent);return!1}},{key:"hasReference",value:function(e){return!!this.getProgramParent().references[e]}},{key:"isPure",value:function(e,t){if(kt(e)){var r=this.getBinding(e.name);return!!r&&(!t||r.constant)}if(km(e)||kk(e)||kA(e)||kC(e))return!0;if(A4(e))return(!e.superClass||!!this.isPure(e.superClass,t))&&!((null===(s=e.decorators)||void 0===s?void 0:s.length)>0)&&this.isPure(e.body,t);if(A5(e)){var n=!0,i=!1,a=void 0;try{for(var s,o,u=e.body[Symbol.iterator]();!(n=(o=u.next()).done);n=!0){var l=o.value;if(!this.isPure(l,t))return!1}}catch(e){i=!0,a=e}finally{try{n||null==u.return||u.return()}finally{if(i)throw a}}return!0}if(A2(e))return this.isPure(e.left,t)&&this.isPure(e.right,t);if(A1(e)||k_(e)){var c=!0,p=!1,d=void 0;try{for(var f,h=e.elements[Symbol.iterator]();!(c=(f=h.next()).done);c=!0){var m=f.value;if(null!==m&&!this.isPure(m,t))return!1}}catch(e){p=!0,d=e}finally{try{c||null==h.return||h.return()}finally{if(p)throw d}}return!0}if(ku(e)||kE(e)){var y=!0,v=!1,g=void 0;try{for(var b,S=e.properties[Symbol.iterator]();!(y=(b=S.next()).done);y=!0){var x=b.value;if(!this.isPure(x,t))return!1}}catch(e){v=!0,g=e}finally{try{y||null==S.return||S.return()}finally{if(v)throw g}}return!0}else if(ka(e))return(!e.computed||!!this.isPure(e.key,t))&&!((null===(P=e.decorators)||void 0===P?void 0:P.length)>0);else if(kl(e))return!(e.computed&&!this.isPure(e.key,t)||(null===(A=e.decorators)||void 0===A?void 0:A.length)>0||(kP(e)||e.static)&&null!==e.value&&!this.isPure(e.value,t));else if(ky(e))return this.isPure(e.argument,t);else if(kh(e)){var T=!0,E=!1,_=void 0;try{for(var P,A,k,C=e.expressions[Symbol.iterator]();!(T=(k=C.next()).done);T=!0){var w=k.value;if(!this.isPure(w,t))return!1}}catch(e){E=!0,_=e}finally{try{T||null==C.return||C.return()}finally{if(E)throw _}}return!0}else if(kf(e))return kb(e.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(e.quasi,t);else if(ki(e))return!e.computed&&kt(e.object)&&"Symbol"===e.object.name&&kt(e.property)&&"for"!==e.property.name&&!this.hasBinding("Symbol",{noGlobals:!0});else if(A3(e))return kb(e.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&1===e.arguments.length&&nB(e.arguments[0]);else return kc(e)}},{key:"setData",value:function(e,t){return this.data[e]=t}},{key:"getData",value:function(e){var t=this;do{var r=t.data[e];if(null!=r)return r}while(t=t.parent)}},{key:"removeData",value:function(e){var t=this;do null!=t.data[e]&&(t.data[e]=null);while(t=t.parent)}},{key:"init",value:function(){this.inited||(this.inited=!0,this.crawl())}},{key:"crawl",value:function(){var e=this.path;this.references=/* @__PURE__ */Object.create(null),this.bindings=/* @__PURE__ */Object.create(null),this.globals=/* @__PURE__ */Object.create(null),this.uids=/* @__PURE__ */Object.create(null),this.data=/* @__PURE__ */Object.create(null);var t=this;do{if(t.crawling)return;if(t.path.isProgram())break}while(t=t.parent);var r=t,n={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,"Program"!==e.type&&AA(kO)){var i=!0,a=!1,s=void 0;try{for(var o,u=kO.enter[Symbol.iterator]();!(i=(o=u.next()).done);i=!0)o.value.call(n,e,n)}catch(e){a=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(a)throw s}}var l=kO[e.type];if(l){var c=!0,p=!1,d=void 0;try{for(var f,h=l.enter[Symbol.iterator]();!(c=(f=h.next()).done);c=!0)f.value.call(n,e,n)}catch(e){p=!0,d=e}finally{try{c||null==h.return||h.return()}finally{if(p)throw d}}}}e.traverse(kO,n),this.crawling=!1;var m=!0,y=!1,v=void 0;try{for(var g,b=n.assignments[Symbol.iterator]();!(m=(g=b.next()).done);m=!0){var S=g.value,x=S.getAssignmentIdentifiers(),T=!0,E=!1,_=void 0;try{for(var P,A=Object.keys(x)[Symbol.iterator]();!(T=(P=A.next()).done);T=!0){var k=P.value;S.scope.getBinding(k)||r.addGlobal(x[k])}}catch(e){E=!0,_=e}finally{try{T||null==A.return||A.return()}finally{if(E)throw _}}S.scope.registerConstantViolation(S)}}catch(e){y=!0,v=e}finally{try{m||null==b.return||b.return()}finally{if(y)throw v}}var C=!0,w=!1,I=void 0;try{for(var N,O=n.references[Symbol.iterator]();!(C=(N=O.next()).done);C=!0){var D=N.value,L=D.scope.getBinding(D.node.name);L?L.reference(D):r.addGlobal(D.node)}}catch(e){w=!0,I=e}finally{try{C||null==O.return||O.return()}finally{if(w)throw I}}var M=!0,F=!1,B=void 0;try{for(var R,j=n.constantViolations[Symbol.iterator]();!(M=(R=j.next()).done);M=!0){var U=R.value;U.scope.registerConstantViolation(U)}}catch(e){F=!0,B=e}finally{try{M||null==j.return||j.return()}finally{if(F)throw B}}}},{key:"push",value:function(e){var t=this.path;t.isPattern()?t=this.getPatternParent().path:t.isBlockStatement()||t.isProgram()||(t=this.getBlockParent().path),t.isSwitchStatement()&&(t=(this.getFunctionParent()||this.getProgramParent()).path);var r=e.init,n=e.unique,i=e.kind,a=void 0===i?"var":i,s=e.id;if(!r&&!n&&("var"===a||"let"===a)&&t.isFunction()&&!t.node.name&&A3(t.parent,{callee:t.node})&&t.parent.arguments.length<=t.node.params.length&&kt(s)){t.pushContainer("params",s),t.scope.registerBinding("param",t.get("params")[t.node.params.length-1]);return}(t.isLoop()||t.isCatchClause()||t.isFunction())&&(t.ensureBlock(),t=t.get("body"));var o=null==e._blockHoist?2:e._blockHoist,u="declaration:".concat(a,":").concat(o),l=!n&&t.getData(u);if(!l){var c=kx(a,[]);c._blockHoist=o,l=rT(t.unshiftContainer("body",[c]),1)[0],n||t.setData(u,l)}var p=kT(s,r),d=l.node.declarations.push(p);t.scope.registerBinding(a,l.get("declarations")[d-1])}},{key:"getProgramParent",value:function(){var e=this;do if(e.path.isProgram())return e;while(e=e.parent);throw Error("Couldn't find a Program")}},{key:"getFunctionParent",value:function(){var e=this;do if(e.path.isFunctionParent())return e;while(e=e.parent);return null}},{key:"getBlockParent",value:function(){var e=this;do if(e.path.isBlockParent())return e;while(e=e.parent);throw Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}},{key:"getPatternParent",value:function(){var e=this;do if(!e.path.isPattern())return e.getBlockParent();while(e=e.parent.parent);throw Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}},{key:"getAllBindings",value:function(){var e=/* @__PURE__ */Object.create(null),t=this;do{var r=!0,n=!1,i=void 0;try{for(var a,s=Object.keys(t.bindings)[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var o=a.value;o in e==!1&&(e[o]=t.bindings[o])}}catch(e){n=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw i}}t=t.parent}while(t);return e}},{key:"bindingIdentifierEquals",value:function(e,t){return this.getBindingIdentifier(e)===t}},{key:"getBinding",value:function(e){var t,r=this;do{var n=r.getOwnBinding(e);if(n){if(null==t||!t.isPattern()||"param"===n.kind||"local"===n.kind)return n}else if(!n&&"arguments"===e&&r.path.isFunction()&&!r.path.isArrowFunctionExpression())break;t=r.path}while(r=r.parent)}},{key:"getOwnBinding",value:function(e){return this.bindings[e]}},{key:"getBindingIdentifier",value:function(e){var t;return null===(t=this.getBinding(e))||void 0===t?void 0:t.identifier}},{key:"getOwnBindingIdentifier",value:function(e){var t=this.bindings[e];return null==t?void 0:t.identifier}},{key:"hasOwnBinding",value:function(e){return!!this.getOwnBinding(e)}},{key:"hasBinding",value:function(t,r){if(!t)return!1;var n,i,a=this;do if(a.hasOwnBinding(t))return!0;while(a=a.parent);return(void 0===r?"undefined":rP(r))==="object"?(n=r.noGlobals,i=r.noUids):"boolean"==typeof r&&(n=r),!!(!i&&this.hasUid(t)||!n&&e.globals.includes(t)||!n&&e.contextVariables.includes(t))}},{key:"parentHasBinding",value:function(e,t){var r;return null===(r=this.parent)||void 0===r?void 0:r.hasBinding(e,t)}},{key:"moveBindingTo",value:function(e,t){var r=this.getBinding(e);r&&(r.scope.removeOwnBinding(e),r.scope=t,t.bindings[e]=r)}},{key:"removeOwnBinding",value:function(e){delete this.bindings[e]}},{key:"removeBinding",value:function(e){null===(t=this.getBinding(e))||void 0===t||t.scope.removeOwnBinding(e);var t,r=this;do r.uids[e]&&(r.uids[e]=!1);while(r=r.parent)}},{key:"hoistVariables",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(t){return e.push({id:t})};this.crawl();var r=/* @__PURE__ */new Set,n=!0,i=!1,a=void 0;try{for(var s,o=Object.keys(this.bindings)[Symbol.iterator]();!(n=(s=o.next()).done);n=!0){var u=s.value,l=this.bindings[u];if(l){var c=l.path;if(c.isVariableDeclarator()){var p=c.parent,d=c.parentPath;if(!("var"!==p.kind||r.has(p))){r.add(c.parent);var f=void 0,h=[],m=!0,y=!1,v=void 0;try{for(var g,b=p.declarations[Symbol.iterator]();!(m=(g=b.next()).done);m=!0){var S=g.value;null!=f||(f=S.id),S.init&&h.push(AY("=",S.id,S.init));var x=Object.keys(AZ(S,!1,!0,!0)),T=!0,E=!1,_=void 0;try{for(var P,A=x[Symbol.iterator]();!(T=(P=A.next()).done);T=!0){var k=P.value;t(A0(k),null!=S.init)}}catch(e){E=!0,_=e}finally{try{T||null==A.return||A.return()}finally{if(E)throw _}}}}catch(e){y=!0,v=e}finally{try{m||null==b.return||b.return()}finally{if(y)throw v}}if(d.parentPath.isFor({left:p}))d.replaceWith(f);else if(0===h.length)d.remove();else{var C=1===h.length?h[0]:kN(h);d.parentPath.isForStatement({init:p})?d.replaceWith(C):d.replaceWith(kg(C))}}}}}}catch(e){i=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}}}]),e}();rX(kL,"globals",Object.keys(P8.default.builtin)),rX(kL,"contextVariables",["arguments","undefined","Infinity","NaN"]);var kM=r8.VISITOR_KEYS,kF=r8.createFlowUnionType,kB=r8.createTSUnionType;r8.createUnionTypeAnnotation;var kR=r8.isFlowType,kj=r8.isTSType;function kU(e){return e.every(function(e){return kR(e)})?kF(e):e.every(function(e){return kj(e)})?kB(e):void 0}var kV=r8.BOOLEAN_NUMBER_BINARY_OPERATORS,kW=r8.createTypeAnnotationBasedOnTypeof,kq=r8.numberTypeAnnotation,kJ=r8.voidTypeAnnotation;function kX(e,t,r){var n=e.constantViolations.slice();return n.unshift(e.path),n.filter(function(e){var n=(e=e.resolve())._guessExecutionStatusRelativeTo(t);return r&&"unknown"===n&&r.push(e),"before"===n})}var kG=r8.BOOLEAN_BINARY_OPERATORS,kK=r8.BOOLEAN_UNARY_OPERATORS,kH=r8.NUMBER_BINARY_OPERATORS,kz=r8.NUMBER_UNARY_OPERATORS,k$=r8.STRING_UNARY_OPERATORS,kY=r8.anyTypeAnnotation,kQ=r8.arrayTypeAnnotation,kZ=r8.booleanTypeAnnotation,k0=r8.buildMatchMemberExpression,k1=r8.genericTypeAnnotation,k2=r8.identifier,k3=r8.nullLiteralTypeAnnotation,k4=r8.numberTypeAnnotation,k5=r8.stringTypeAnnotation,k8=r8.tupleTypeAnnotation,k6=r8.unionTypeAnnotation,k9=r8.voidTypeAnnotation,k7=r8.isIdentifier;function Ce(e){return e.typeAnnotation}function Ct(e){return e.typeAnnotation}function Cr(){return k1(k2("Array"))}function Cn(){return Cr()}function Ci(){return k1(k2("Function"))}Ce.validParent=!0,Ct.validParent=!0,Cn.validParent=!0;var Ca=k0("Array.from"),Cs=k0("Object.keys"),Co=k0("Object.values"),Cu=k0("Object.entries");function Cl(e){if((e=e.resolve()).isFunction()){var t=e.node;if(t.async)return t.generator?k1(k2("AsyncIterator")):k1(k2("Promise"));if(t.generator)return k1(k2("Iterator"));if(e.node.returnType)return e.node.returnType}}var Cc=/* @__PURE__ */Object.freeze({__proto__:null,ArrayExpression:Cr,ArrowFunctionExpression:Ci,AssignmentExpression:function(){return this.get("right").getTypeAnnotation()},BinaryExpression:function(e){var t=e.operator;if(kH.includes(t))return k4();if(kG.includes(t))return kZ();if("+"===t){var r=this.get("right"),n=this.get("left");return n.isBaseType("number")&&r.isBaseType("number")?k4():n.isBaseType("string")||r.isBaseType("string")?k5():k6([k5(),k4()])}},BooleanLiteral:function(){return kZ()},CallExpression:function(){var e=this.node.callee;return Cs(e)?kQ(k5()):Ca(e)||Co(e)||k7(e,{name:"Array"})?kQ(kY()):Cu(e)?kQ(k8([k5(),kY()])):Cl(this.get("callee"))},ClassDeclaration:Ci,ClassExpression:Ci,ConditionalExpression:function(){return kU([this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()])},FunctionDeclaration:Ci,FunctionExpression:Ci,Identifier:function(e){if(this.isReferenced()){var t=this.scope.getBinding(e.name);if(t)return t.identifier.typeAnnotation?t.identifier.typeAnnotation:function(e,t,r){var n=[],i=[],a=kX(e,t,i),s=function e(t,r,n){var i=function(e,t,r){for(var n;n=t.parentPath;){if(n.isIfStatement()||n.isConditionalExpression()){if("test"===t.key)return;return n}if(n.isFunction()&&n.parentPath.scope.getBinding(r)!==e)return;t=n}}(t,r,n);if(i){for(var a=[i.get("test")],s=[],o=0;o<a.length;o++){var u=a[o];if(u.isLogicalExpression())"&&"===u.node.operator&&(a.push(u.get("left")),a.push(u.get("right")));else if(u.isBinaryExpression()){var l=function(e,t){var r,n,i,a=t.node.operator,s=t.get("right").resolve(),o=t.get("left").resolve();if(o.isIdentifier({name:e})?r=s:s.isIdentifier({name:e})&&(r=o),r)return"==="===a?r.getTypeAnnotation():kV.includes(a)?kq():void 0;if(("==="===a||"=="===a)&&(o.isUnaryExpression({operator:"typeof"})?(n=o,i=s):s.isUnaryExpression({operator:"typeof"})&&(n=s,i=o),n&&n.get("argument").isIdentifier({name:e})&&(i=i.resolve()).isLiteral())){var u=i.node.value;if("string"==typeof u)return kW(u)}}(n,u);l&&s.push(l)}}return s.length?{typeAnnotation:kU(s),ifStatement:i}:e(t,i,n)}}(e,t,r);if(s){var o=kX(e,s.ifStatement);a=a.filter(function(e){return!o.includes(e)}),n.push(s.typeAnnotation)}if(a.length){(p=a).push.apply(p,r_(i));var u=!0,l=!1,c=void 0;try{for(var p,d,f=a[Symbol.iterator]();!(u=(d=f.next()).done);u=!0){var h=d.value;n.push(h.getTypeAnnotation())}}catch(e){l=!0,c=e}finally{try{u||null==f.return||f.return()}finally{if(l)throw c}}}if(n.length)return kU(n)}(t,this,e.name);if("undefined"===e.name)return kJ();if("NaN"===e.name||"Infinity"===e.name)return kq();e.name}},LogicalExpression:function(){return kU([this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()])},NewExpression:function(e){if("Identifier"===e.callee.type)return k1(e.callee)},NullLiteral:function(){return k3()},NumericLiteral:function(){return k4()},ObjectExpression:function(){return k1(k2("Object"))},ParenthesizedExpression:function(){return this.get("expression").getTypeAnnotation()},RegExpLiteral:function(){return k1(k2("RegExp"))},RestElement:Cn,SequenceExpression:function(){return this.get("expressions").pop().getTypeAnnotation()},StringLiteral:function(){return k5()},TSAsExpression:Ct,TSNonNullExpression:function(){return this.get("expression").getTypeAnnotation()},TaggedTemplateExpression:function(){return Cl(this.get("tag"))},TemplateLiteral:function(){return k5()},TypeCastExpression:Ce,UnaryExpression:function(e){var t=e.operator;return"void"===t?k9():kz.includes(t)?k4():k$.includes(t)?k5():kK.includes(t)?kZ():void 0},UpdateExpression:function(e){var t=e.operator;if("++"===t||"--"===t)return k4()},VariableDeclarator:function(){if(this.get("id").isIdentifier())return this.get("init").getTypeAnnotation()}}),Cp=r8.anyTypeAnnotation,Cd=r8.isAnyTypeAnnotation,Cf=r8.isArrayTypeAnnotation,Ch=r8.isBooleanTypeAnnotation,Cm=r8.isEmptyTypeAnnotation,Cy=r8.isFlowBaseAnnotation,Cv=r8.isGenericTypeAnnotation,Cg=r8.isIdentifier,Cb=r8.isMixedTypeAnnotation,CS=r8.isNumberTypeAnnotation,Cx=r8.isStringTypeAnnotation,CT=r8.isTSArrayType,CE=r8.isTSTypeAnnotation,C_=r8.isTSTypeReference,CP=r8.isTupleTypeAnnotation,CA=r8.isTypeAnnotation,Ck=r8.isUnionTypeAnnotation,CC=r8.isVoidTypeAnnotation,Cw=r8.stringTypeAnnotation,CI=r8.voidTypeAnnotation,CN=/* @__PURE__ */new WeakSet;function CO(){var e=this.node;if(!e){if(!("init"===this.key&&this.parentPath.isVariableDeclarator()))return;var t=this.parentPath.parentPath,r=t.parentPath;return"left"===t.key&&r.isForInStatement()?Cw():"left"===t.key&&r.isForOfStatement()?Cp():CI()}if(e.typeAnnotation)return e.typeAnnotation;if(!CN.has(e)){CN.add(e);try{var n=Cc[e.type];if(n)return n.call(this,e);if(null==(n=Cc[this.parentPath.type])?void 0:n.validParent)return this.parentPath.getTypeAnnotation()}finally{CN.delete(e)}}}function CD(e,t,r){if("string"===e)return Cx(t);if("number"===e)return CS(t);if("boolean"===e)return Ch(t);if("any"===e)return Cd(t);if("mixed"===e)return Cb(t);if("empty"===e)return Cm(t);if("void"===e)return CC(t);if(r)return!1;throw Error("Unknown base type ".concat(e))}var CL=[function(e,t){if("test"===e.key&&(t.isWhile()||t.isSwitchCase())||"declaration"===e.key&&t.isExportDeclaration()||"body"===e.key&&t.isLabeledStatement()||"declarations"===e.listKey&&t.isVariableDeclaration()&&1===t.node.declarations.length||"expression"===e.key&&t.isExpressionStatement())return t.remove(),!0},function(e,t){if(t.isSequenceExpression()&&1===t.node.expressions.length)return t.replaceWith(t.node.expressions[0]),!0},function(e,t){if(t.isBinary())return"left"===e.key?t.replaceWith(t.node.right):t.replaceWith(t.node.left),!0},function(e,t){if(t.isIfStatement()&&"consequent"===e.key||"body"===e.key&&(t.isLoop()||t.isArrowFunctionExpression()))return e.replaceWith({type:"BlockStatement",body:[]}),!0}],CM=r8.getBindingIdentifiers;function CF(){var e=this;Object.keys(CM(this.node,!1,!1,!0)).forEach(function(t){return e.scope.removeBinding(t)})}function CB(){if(this.parentPath){var e=!0,t=!1,r=void 0;try{for(var n,i=CL[Symbol.iterator]();!(e=(n=i.next()).done);e=!0)if((0,n.value)(this,this.parentPath))return!0}catch(e){t=!0,r=e}finally{try{e||null==i.return||i.return()}finally{if(t)throw r}}}}function CR(){Array.isArray(this.container)?(this.container.splice(this.key,1),C8.call(this,this.key,-1)):wA.call(this,null)}function Cj(){this._traverseFlags|=IJ|Iq,this.parent&&AK(this.hub,this.parent).delete(this.node),this.node=null}function CU(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")}var CV=r8.arrowFunctionExpression,CW=r8.assertExpression,Cq=r8.assignmentExpression,CJ=r8.blockStatement,CX=r8.callExpression,CG=r8.cloneNode,CK=r8.expressionStatement,CH=r8.isAssignmentExpression,Cz=r8.isCallExpression,C$=r8.isExportNamedDeclaration,CY=r8.isExpression,CQ=r8.isIdentifier,CZ=r8.isSequenceExpression,C0=r8.isSuper,C1=r8.thisExpression;function C2(e,t){C8.call(this,e,t.length);var r=[];(i=this.container).splice.apply(i,[e,0].concat(r_(t)));for(var n=0;n<t.length;n++){var i,a,s=e+n,o=this.getSibling(s);r.push(o),(null===(a=this.context)||void 0===a?void 0:a.queue)&&No.call(o,this.context)}var u=Nc.call(this),l=!0,c=!1,p=void 0;try{for(var d,f=r[Symbol.iterator]();!(l=(d=f.next()).done);l=!0){var h=d.value;Nt.call(h),h.debug("Inserted.");var m=!0,y=!1,v=void 0;try{for(var g,b=u[Symbol.iterator]();!(m=(g=b.next()).done);m=!0)g.value.maybeQueue(h,!0)}catch(e){y=!0,v=e}finally{try{m||null==b.return||b.return()}finally{if(y)throw v}}}}catch(e){c=!0,p=e}finally{try{l||null==f.return||f.return()}finally{if(c)throw p}}return r}function C3(e){return C2.call(this,this.key,e)}function C4(e){return C2.call(this,this.key+1,e)}var C5=function(e){return e[e.length-1]};function C8(e,t){if(this.parent){var r=AK(this.hub,this.parent)||[],n=!0,i=!1,a=void 0;try{for(var s,o=r[Symbol.iterator]();!(n=(s=o.next()).done);n=!0){var u=rT(s.value,2)[1];"number"==typeof u.key&&u.container===this.container&&u.key>=e&&(u.key+=t)}}catch(e){i=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}}}function C6(e){if(!e)return[];Array.isArray(e)||(e=[e]);for(var t=0;t<e.length;t++){var r=e[t],n=void 0;if(r?(void 0===r?"undefined":rP(r))!=="object"?n="contains a non-object node":r.type?rS(r,IX)&&(n="has a NodePath when it expected a raw object"):n="without a type":n="has falsy node",n){var i=Array.isArray(r)?"array":void 0===r?"undefined":rP(r);throw Error("Node list ".concat(n," with the index of ").concat(t," and type of ").concat(i))}}return e}var C9=r8.FUNCTION_TYPES,C7=r8.arrowFunctionExpression,we=r8.assignmentExpression,wt=r8.awaitExpression,wr=r8.blockStatement,wn=r8.buildUndefinedNode,wi=r8.callExpression,wa=r8.cloneNode,ws=r8.conditionalExpression,wo=r8.expressionStatement,wu=r8.getBindingIdentifiers,wl=r8.identifier,wc=r8.inheritLeadingComments,wp=r8.inheritTrailingComments,wd=r8.inheritsComments,wf=r8.isBlockStatement,wh=r8.isEmptyStatement,wm=r8.isExpression,wy=r8.isExpressionStatement,wv=r8.isIfStatement,wg=r8.isProgram,wb=r8.isStatement,wS=r8.isVariableDeclaration,wx=r8.removeComments,wT=r8.returnStatement,wE=r8.sequenceExpression,w_=r8.validate,wP=r8.yieldExpression;function wA(e){var t;if(!this.container)throw ReferenceError("Container is falsy");this.inList?w_(this.parent,this.key,[e]):w_(this.parent,this.key,e),this.debug("Replace with ".concat(null==e?void 0:e.type)),null===(t=AK(this.hub,this.parent))||void 0===t||t.set(e,this).delete(this.node),this.node=this.container[this.key]=e}var wk=["Number","String","Math"],wC=["isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","btoa","atob"],ww=["random"];function wI(e){return wk.includes(e)}function wN(e,t){t.confident&&(t.deoptPath=e,t.confident=!1)}var wO=/* @__PURE__ */new Map([["undefined",void 0],["Infinity",1/0],["NaN",NaN]]);function wD(e,t){var r=e.node,n=t.seen;if(n.has(r)){var i=n.get(r);return i.resolved?i.value:void wN(e,t)}var a={resolved:!1};n.set(r,a);var s=function(e,t){if(t.confident){if(e.isSequenceExpression()){var r=e.get("expressions");return wD(r[r.length-1],t)}if(e.isStringLiteral()||e.isNumericLiteral()||e.isBooleanLiteral())return e.node.value;if(e.isNullLiteral())return null;if(e.isTemplateLiteral())return wL(e,e.node.quasis,t);if(e.isTaggedTemplateExpression()&&e.get("tag").isMemberExpression()){var n=e.get("tag.object"),i=n.node.name,a=e.get("tag.property");if(n.isIdentifier()&&"String"===i&&!e.scope.getBinding(i)&&a.isIdentifier()&&"raw"===a.node.name)return wL(e,e.node.quasi.quasis,t,!0)}if(e.isConditionalExpression()){var s=wD(e.get("test"),t);return t.confident?s?wD(e.get("consequent"),t):wD(e.get("alternate"),t):void 0}if(e.isExpressionWrapper())return wD(e.get("expression"),t);if(e.isMemberExpression()&&!e.parentPath.isCallExpression({callee:e.node})){var o=e.get("property"),u=e.get("object");if(u.isLiteral()){var l=u.node.value,c=void 0===l?"undefined":rP(l),p=null;if(e.node.computed){if(p=wD(o,t),!t.confident)return}else o.isIdentifier()&&(p=o.node.name);if(("number"===c||"string"===c)&&null!=p&&("number"==typeof p||"string"==typeof p))return l[p]}}if(e.isReferencedIdentifier()){var d=e.scope.getBinding(e.node.name);if(d){if(d.constantViolations.length>0||e.node.start<d.path.node.end){wN(d.path,t);return}if(d.hasValue)return d.value}var f=e.node.name;if(wO.has(f))return d?void wN(d.path,t):wO.get(f);var h=e.resolve();return h!==e?wD(h,t):void wN(e,t)}if(e.isUnaryExpression({prefix:!0})){if("void"===e.node.operator)return;var m=e.get("argument");if("typeof"===e.node.operator&&(m.isFunction()||m.isClass()))return"function";var y=wD(m,t);if(!t.confident)return;switch(e.node.operator){case"!":return!y;case"+":return+y;case"-":return-y;case"~":return~y;case"typeof":return void 0===y?"undefined":rP(y)}}if(e.isArrayExpression()){var v=[],g=e.get("elements"),b=!0,S=!1,x=void 0;try{for(var T,E=g[Symbol.iterator]();!(b=(T=E.next()).done);b=!0){var _=T.value.evaluate();if(_.confident)v.push(_.value);else{wN(_.deopt,t);return}}}catch(e){S=!0,x=e}finally{try{b||null==E.return||E.return()}finally{if(S)throw x}}return v}if(e.isObjectExpression()){var P={},A=e.get("properties"),k=!0,C=!1,w=void 0;try{for(var I,N=A[Symbol.iterator]();!(k=(I=N.next()).done);k=!0){var O=I.value;if(O.isObjectMethod()||O.isSpreadElement()){wN(O,t);return}var D=O.get("key"),L=void 0;if(O.node.computed){if(!(L=D.evaluate()).confident){wN(L.deopt,t);return}L=L.value}else L=D.isIdentifier()?D.node.name:D.node.value;var M=O.get("value").evaluate();if(!M.confident){wN(M.deopt,t);return}M=M.value,P[L]=M}}catch(e){C=!0,w=e}finally{try{k||null==N.return||N.return()}finally{if(C)throw w}}return P}if(e.isLogicalExpression()){var F=t.confident,B=wD(e.get("left"),t),R=t.confident;t.confident=F;var j=wD(e.get("right"),t),U=t.confident;switch(e.node.operator){case"||":if(t.confident=R&&(!!B||U),!t.confident)return;return B||j;case"&&":if(t.confident=R&&(!B||U),!t.confident)return;return B&&j;case"??":if(t.confident=R&&(null!=B||U),!t.confident)return;return null!=B?B:j}}if(e.isBinaryExpression()){var V=wD(e.get("left"),t);if(!t.confident)return;var W=wD(e.get("right"),t);if(!t.confident)return;switch(e.node.operator){case"-":return V-W;case"+":return V+W;case"/":return V/W;case"*":return V*W;case"%":return V%W;case"**":return Math.pow(V,W);case"<":return V<W;case">":return V>W;case"<=":return V<=W;case">=":return V>=W;case"==":return V==W;case"!=":return V!=W;case"===":return V===W;case"!==":return V!==W;case"|":return V|W;case"&":return V&W;case"^":return V^W;case"<<":return V<<W;case">>":return V>>W;case">>>":return V>>>W}}if(e.isCallExpression()){var q,J,X=e.get("callee");if(X.isIdentifier()&&!e.scope.getBinding(X.node.name)&&(wI(X.node.name)||(G=X.node.name,wC.includes(G)))&&(J=es[X.node.name]),X.isMemberExpression()){var G,K,H=X.get("object"),z=X.get("property");if(H.isIdentifier()&&z.isIdentifier()&&wI(H.node.name)&&(K=z.node.name,!ww.includes(K))){q=es[H.node.name];var $=z.node.name;Object.hasOwn(q,$)&&(J=q[$])}if(H.isLiteral()&&z.isIdentifier()){var Y=rP(H.node.value);("string"===Y||"number"===Y)&&(J=(q=H.node.value)[z.node.name])}}if(J){var Q=e.get("arguments").map(function(e){return wD(e,t)});if(!t.confident)return;return J.apply(q,Q)}}wN(e,t)}}(e,t);return t.confident&&(a.resolved=!0,a.value=s),s}function wL(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i="",a=0,s=e.isTemplateLiteral()?e.get("expressions"):e.get("quasi.expressions"),o=!0,u=!1,l=void 0;try{for(var c,p=t[Symbol.iterator]();!(o=(c=p.next()).done);o=!0){var d=c.value;if(!r.confident)break;i+=n?d.value.raw:d.value.cooked;var f=s[a++];f&&(i+=String(wD(f,r)))}}catch(e){u=!0,l=e}finally{try{o||null==p.return||p.return()}finally{if(u)throw l}}if(r.confident)return i}var wM=r8.arrowFunctionExpression,wF=r8.assignmentExpression,wB=r8.binaryExpression,wR=r8.blockStatement,wj=r8.callExpression,wU=r8.conditionalExpression,wV=r8.expressionStatement,wW=r8.identifier,wq=r8.isIdentifier,wJ=r8.jsxIdentifier,wX=r8.logicalExpression,wG=r8.LOGICAL_OPERATORS,wK=r8.memberExpression,wH=r8.metaProperty,wz=r8.numericLiteral,w$=r8.objectExpression,wY=r8.restElement,wQ=r8.returnStatement,wZ=r8.sequenceExpression,w0=r8.spreadElement,w1=r8.stringLiteral,w2=r8.super,w3=r8.thisExpression,w4=r8.toExpression,w5=r8.unaryExpression,w8=r8.toBindingIdentifierName,w6=r8.isFunction,w9=r8.isAssignmentPattern,w7=r8.isRestElement,Ie=r8.getFunctionName,It=r8.cloneNode,Ir=r8.variableDeclaration,In=r8.variableDeclarator,Ii=r8.exportNamedDeclaration,Ia=r8.exportSpecifier,Is=r8.inherits,Io=AF({CallExpression:function(e,t){var r=t.allSuperCalls;e.get("callee").isSuper()&&r.push(e)}});function Iu(e){var t,r,n,i=!(arguments.length>1)||void 0===arguments[1]||arguments[1],a=!(arguments.length>2)||void 0===arguments[2]||arguments[2],s=!(arguments.length>3)||void 0===arguments[3]||arguments[3],o=e.findParent(function(e){return e.isArrowFunctionExpression()?(null!=r||(r=e),!1):e.isFunction()||e.isProgram()||e.isClassProperty({static:!1})||e.isClassPrivateProperty({static:!1})}),u=o.isClassMethod({kind:"constructor"});if(o.isClassProperty()||o.isClassPrivateProperty()){if(r)o=r;else if(a)e.replaceWith(wj(wM([],w4(e.node)),[])),e=(o=e.get("callee")).get("body");else throw e.buildCodeFrameError("Unable to transform arrow inside class property")}var l=(m=[],y=[],v=[],g=[],b=[],e.traverse(Id,{thisPaths:m,argumentsPaths:y,newTargetPaths:v,superProps:g,superCalls:b}),{thisPaths:m,argumentsPaths:y,newTargetPaths:v,superProps:g,superCalls:b}),c=l.thisPaths,p=l.argumentsPaths,d=l.newTargetPaths,f=l.superProps,h=l.superCalls;if(u&&h.length>0){if(!a)throw h[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super()` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");if(!s)throw h[0].buildCodeFrameError("When using '@babel/plugin-transform-parameters', it's not possible to compile `super()` in an arrow function with default or rest parameters without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");var m,y,v,g,b,S,x=[];o.traverse(Io,{allSuperCalls:x});var T=Ip(S=o,"supercall",function(){var e=S.scope.generateUidIdentifier("args");return wM([wY(e)],wj(w2(),[w0(wW(e.name))]))});x.forEach(function(e){var t=wW(T);t.loc=e.node.callee.loc,e.get("callee").replaceWith(t)})}if(p.length>0){var E=Ip(o,"arguments",function(){var e=function(){return wW("arguments")};return o.scope.path.isProgram()?wU(wB("===",w5("typeof",e()),w1("undefined")),o.scope.buildUndefinedNode(),e()):e()});p.forEach(function(e){var t=wW(E);t.loc=e.node.loc,e.replaceWith(t)})}if(d.length>0){var _=Ip(o,"newtarget",function(){return wH(wW("new"),wW("target"))});d.forEach(function(e){var t=wW(_);t.loc=e.node.loc,e.replaceWith(t)})}if(f.length>0){if(!a)throw f[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super.prop` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");f.reduce(function(e,t){return e.concat(function(e){if(e.parentPath.isAssignmentExpression()&&"="!==e.parentPath.node.operator){var t=e.parentPath,r=t.node.operator.slice(0,-1),n=t.node.right,i=wG.includes(r);if(e.node.computed){var a=e.scope.generateDeclaredUidIdentifier("tmp"),s=e.node.object,o=e.node.property;t.get("left").replaceWith(wK(s,wF("=",a,o),!0)),t.get("right").replaceWith(h(i?"=":r,wK(s,wW(a.name),!0),n))}else{var u=e.node.object,l=e.node.property;t.get("left").replaceWith(wK(u,l)),t.get("right").replaceWith(h(i?"=":r,wK(u,wW(l.name)),n))}return i?t.replaceWith(wX(r,t.node.left,t.node.right)):t.node.operator="=",[t.get("left"),t.get("right").get("left")]}if(e.parentPath.isUpdateExpression()){var c=e.parentPath,p=e.scope.generateDeclaredUidIdentifier("tmp"),d=e.node.computed?e.scope.generateDeclaredUidIdentifier("prop"):null,f=[wF("=",p,wK(e.node.object,d?wF("=",d,e.node.property):e.node.property,e.node.computed)),wF("=",wK(e.node.object,d?wW(d.name):e.node.property,e.node.computed),wB(e.parentPath.node.operator[0],wW(p.name),wz(1)))];return e.parentPath.node.prefix||f.push(wW(p.name)),c.replaceWith(wZ(f)),[c.get("expressions.0.right"),c.get("expressions.1.left")]}return[e];function h(e,t,r){return"="===e?wF("=",t,r):wB(e,t,r)}}(t))},[]).forEach(function(e){var t,r=e.node.computed?"":e.get("property").node.name,n=e.parentPath,i=n.isAssignmentExpression({left:e.node}),a=n.isCallExpression({callee:e.node}),s=n.isTaggedTemplateExpression({tag:e.node}),u=Ip(t=o,"superprop_".concat(i?"set":"get",":").concat(r||""),function(){var e,n=[];if(r)e=wK(w2(),wW(r));else{var a=t.scope.generateUidIdentifier("prop");n.unshift(a),e=wK(w2(),wW(a.name),!0)}if(i){var s=t.scope.generateUidIdentifier("value");n.push(s),e=wF("=",e,wW(s.name))}return wM(n,e)}),l=[];if(e.node.computed&&l.push(e.get("property").node),i){var p=n.node.right;l.push(p)}var d=wj(wW(u),l);a?(n.unshiftContainer("arguments",w3()),e.replaceWith(wK(d,wW("call"))),c.push(n.get("arguments.0"))):i?n.replaceWith(d):s?(e.replaceWith(wj(wK(d,wW("bind"),!1),[w3()])),c.push(e.get("arguments.0"))):e.replaceWith(d)})}return(c.length>0||!i)&&(n=Ip(t=o,"this",function(e){if(!u||!Il(t))return w3();t.traverse(Ic,{supers:/* @__PURE__ */new WeakSet,thisBinding:e})}),(i||u&&Il(o))&&(c.forEach(function(e){var t=e.isJSX()?wJ(n):wW(n);t.loc=e.node.loc,e.replaceWith(t)}),i||(n=null))),{thisBinding:n,fnPath:e}}function Il(e){return e.isClassMethod()&&!!e.parentPath.parentPath.node.superClass}var Ic=AF({CallExpression:function(e,t){var r=t.supers,n=t.thisBinding;e.get("callee").isSuper()&&(r.has(e.node)||(r.add(e.node),e.replaceWithMultiple([e.node,wF("=",wW(n),wW("this"))])))}});function Ip(e,t,r){var n="binding:"+t,i=e.getData(n);if(!i){var a=e.scope.generateUidIdentifier(t);i=a.name,e.setData(n,i),e.scope.push({id:a,init:r(i)})}return i}var Id=AF({ThisExpression:function(e,t){t.thisPaths.push(e)},JSXIdentifier:function(e,t){var r=t.thisPaths;if("this"===e.node.name){if(!e.parentPath.isJSXMemberExpression({object:e.node})&&!e.parentPath.isJSXOpeningElement({name:e.node}))return;r.push(e)}},CallExpression:function(e,t){var r=t.superCalls;e.get("callee").isSuper()&&r.push(e)},MemberExpression:function(e,t){var r=t.superProps;e.get("object").isSuper()&&r.push(e)},Identifier:function(e,t){var r=t.argumentsPaths;if(e.isReferencedIdentifier({name:"arguments"})){var n=e.scope;do{if(n.hasOwnBinding("arguments")){n.rename("arguments");return}if(n.path.isFunction()&&!n.path.isArrowFunctionExpression())break}while(n=n.parent);r.push(e)}},MetaProperty:function(e,t){var r=t.newTargetPaths;e.get("meta").isIdentifier({name:"new"})&&e.get("property").isIdentifier({name:"target"})&&r.push(e)}}),If={"ReferencedIdentifier|BindingIdentifier":function(e,t){e.node.name===t.name&&(t.needsRename=!0,e.stop())},Scope:function(e,t){e.scope.hasOwnBinding(t.name)&&e.skip()}},Ih=r8.STATEMENT_OR_BLOCK_KEYS,Im=r8.VISITOR_KEYS,Iy=r8.isBlockStatement,Iv=r8.isExpression,Ig=r8.isIdentifier,Ib=r8.isLiteral,IS=r8.isStringLiteral,Ix=r8.isType,IT=r8.matchesPattern;function IE(e){return e.isProgram()?e:(e.parentPath.scope.getFunctionParent()||e.parentPath.scope.getProgramParent()).path}function I_(e,t){for(var r=0;r<t;r++){var n=e[r];if(function(e,t){switch(e){case"LogicalExpression":case"AssignmentPattern":return"right"===t;case"ConditionalExpression":case"IfStatement":return"consequent"===t||"alternate"===t;case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return"body"===t;case"ForStatement":return"body"===t||"update"===t;case"SwitchStatement":return"cases"===t;case"TryStatement":return"handler"===t;case"OptionalMemberExpression":return"property"===t;case"OptionalCallExpression":return"arguments"===t;default:return!1}}(n.parent.type,n.parentKey))return!0}return!1}var IP=Symbol();function IA(e,t){if(null==t||!t.includes(this)){if((t=t||[]).push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(e,t)}else if(this.isReferencedIdentifier()){var r=this.scope.getBinding(this.node.name);if(!r||!r.constant||"module"===r.kind)return;if(r.path!==this){var n=r.path.resolve(e,t);if(this.find(function(e){return e.node===n.node}))return;return n}}else if(this.isTypeCastExpression())return this.get("expression").resolve(e,t);else if(e&&this.isMemberExpression()){var i=this.toComputedKey();if(!Ib(i))return;var a=i.value,s=this.get("object").resolve(e,t);if(s.isObjectExpression()){var o=s.get("properties"),u=!0,l=!1,c=void 0;try{for(var p,d=o[Symbol.iterator]();!(u=(p=d.next()).done);u=!0){var f=p.value;if(f.isProperty()){var h=f.get("key"),m=f.isnt("computed")&&h.isIdentifier({name:a});if(m=m||h.isLiteral({value:a}))return f.get("value").resolve(e,t)}}}catch(e){l=!0,c=e}finally{try{u||null==d.return||d.return()}finally{if(l)throw c}}}else if(s.isArrayExpression()&&!isNaN(+a)){var y=s.get("elements")[a];if(y)return y.resolve(e,t)}}}}var Ik=r8.getAssignmentIdentifiers,IC=r8.getBindingIdentifiers,Iw=r8.getOuterBindingIdentifiers,II=r8.numericLiteral,IN=r8.unaryExpression;function IO(e,t,r){return e&&t.push.apply(t,r_(IM(e,r))),t}function ID(e,t){e.forEach(function(e){e.path.isBreakStatement({label:null})&&(t?e.path.replaceWith(IN("void",II(0))):e.path.remove())})}function IL(e,t){var r=[];if(t.canHaveBreak)for(var n=[],i=0;i<e.length;i++){var a=e[i],s=Object.assign({},t,{inCaseClause:!1});a.isBlockStatement()&&(t.inCaseClause||t.shouldPopulateBreak)?s.shouldPopulateBreak=!0:s.shouldPopulateBreak=!1;var o=IM(a,s);if(o.length>0&&o.every(function(e){return 1===e.type})){n.length>0&&o.every(function(e){return e.path.isBreakStatement({label:null})})?(!function(e){e.forEach(function(e){e.type=1})}(n),r.push.apply(r,r_(n)),n.some(function(e){return e.path.isDeclaration()})&&(r.push.apply(r,r_(o)),ID(o,!0)),ID(o,!1)):(r.push.apply(r,r_(o)),t.shouldPopulateBreak||ID(o,!0));break}if(i===e.length-1)r.push.apply(r,r_(o));else{n=[];for(var u=0;u<o.length;u++){var l=o[u];1===l.type&&r.push(l),0===l.type&&n.push(l)}}}else if(e.length)for(var c=e.length-1;c>=0;c--){var p=IM(e[c],t);if(p.length>1||1===p.length&&!p[0].path.isVariableDeclaration()){r.push.apply(r,r_(p));break}}return r}function IM(e,t){var r=[];if(e.isIfStatement())r=IO(e.get("consequent"),r,t),r=IO(e.get("alternate"),r,t);else if(e.isDoExpression()||e.isFor()||e.isWhile()||e.isLabeledStatement())return IO(e.get("body"),r,t);else if(e.isProgram()||e.isBlockStatement())return IL(e.get("body"),t);else if(e.isFunction())return IM(e.get("body"),t);else if(e.isTryStatement())r=IO(e.get("block"),r,t),r=IO(e.get("handler"),r,t);else{if(e.isCatchClause())return IO(e.get("body"),r,t);if(e.isSwitchStatement())return function(e,t,r){for(var n=[],i=0;i<e.length;i++){var a=IM(e[i],r),s=[],o=[],u=!0,l=!1,c=void 0;try{for(var p,d=a[Symbol.iterator]();!(u=(p=d.next()).done);u=!0){var f=p.value;0===f.type&&s.push(f),1===f.type&&o.push(f)}}catch(e){l=!0,c=e}finally{try{u||null==d.return||d.return()}finally{if(l)throw c}}s.length&&(n=s),t.push.apply(t,r_(o))}return t.push.apply(t,r_(n)),t}(e.get("cases"),r,t);if(e.isSwitchCase())return IL(e.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0});e.isBreakStatement()?r.push({type:1,path:e}):r.push({type:0,path:e})}return r}function IF(e,t){var r=this,n=this.node,i=n[e];return Array.isArray(i)?i.map(function(a,s){return IX.get({listKey:e,parentPath:r,parent:n,container:i,key:s}).setContext(t)}):IX.get({parentPath:this,parent:n,container:n,key:e}).setContext(t)}function IB(e,t){var r=this,n=!0,i=!1,a=void 0;try{for(var s,o=e[Symbol.iterator]();!(n=(s=o.next()).done);n=!0){var u=s.value;r="."===u?r.parentPath:Array.isArray(r)?r[u]:r.get(u,t)}}catch(e){i=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}return r}var IR=r8.addComment,Ij=r8.addComments;function IU(e,t){if(!(null==t?void 0:t.length))return e;var r=new Set(t);return e.filter(function(e){return!r.has(e)})}var IV=r8.validate,IW=(0,P5.default)("babel"),Iq=1,IJ=4,IX=/*#__PURE__*/function(){function e(t,r){rf(this,e),rX(this,"contexts",[]),rX(this,"state",null),rX(this,"opts",null),rX(this,"_traverseFlags",0),rX(this,"skipKeys",null),rX(this,"parentPath",null),rX(this,"container",null),rX(this,"listKey",null),rX(this,"key",null),rX(this,"node",null),rX(this,"type",null),this.parent=r,this.hub=t,this.data=null,this.context=null,this.scope=null}return rm(e,[{key:"removed",get:function(){return(1&this._traverseFlags)>0},set:function(e){e?this._traverseFlags|=1:this._traverseFlags&=-2}},{key:"shouldStop",get:function(){return(2&this._traverseFlags)>0},set:function(e){e?this._traverseFlags|=2:this._traverseFlags&=-3}},{key:"shouldSkip",get:function(){return(4&this._traverseFlags)>0},set:function(e){e?this._traverseFlags|=4:this._traverseFlags&=-5}},{key:"getScope",value:function(e){return this.isScope()?new kL(this):e}},{key:"setData",value:function(e,t){return null==this.data&&(this.data=/* @__PURE__ */Object.create(null)),this.data[e]=t}},{key:"getData",value:function(e,t){null==this.data&&(this.data=/* @__PURE__ */Object.create(null));var r=this.data[e];return void 0===r&&void 0!==t&&(r=this.data[e]=t),r}},{key:"hasNode",value:function(){return null!=this.node}},{key:"buildCodeFrameError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:SyntaxError;return this.hub.buildError(this.node,e,t)}},{key:"traverse",value:function(e,t){Nh(this.node,e,this.scope,t,this)}},{key:"set",value:function(e,t){IV(this.node,e,t),this.node[e]=t}},{key:"getPathLocation",value:function(){var e=[],t=this;do{var r=t.key;t.inList&&(r="".concat(t.listKey,"[").concat(r,"]")),e.unshift(r)}while(t=t.parentPath);return e.join(".")}},{key:"debug",value:function(e){IW.enabled&&IW("".concat(this.getPathLocation()," ").concat(this.type,": ").concat(e))}},{key:"toString",value:function(){return P4(this.node).code}},{key:"inList",get:function(){return!!this.listKey},set:function(e){e||(this.listKey=null)}},{key:"parentKey",get:function(){return this.listKey||this.key}}],[{key:"get",value:function(t){var r=t.hub,n=t.parentPath,i=t.parent,a=t.container,s=t.listKey,o=t.key;if(!r&&n&&(r=n.hub),!i)throw Error("To get a node path the parent needs to exist");var u=a[o],l=AH(r,i),c=l.get(u);return!c&&(c=new e(r,i),u&&l.set(u,c)),Nu.call(c,n,a,s,o),c}}]),e}();Object.assign(IX.prototype,{findParent:function(e){for(var t=this;t=t.parentPath;)if(e(t))return t;return null},find:function(e){var t=this;do if(e(t))return t;while(t=t.parentPath);return null},getFunctionParent:function(){return this.findParent(function(e){return e.isFunction()})},getStatementParent:function(){var e=this;do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())break;e=e.parentPath}while(e);if(e&&(e.isProgram()||e.isFile()))throw Error("File/Program node, we can't possibly find a statement parent to this");return e},getEarliestCommonAncestorFrom:function(e){return this.getDeepestCommonAncestorFrom(e,function(e,t,r){var n=kM[e.type],i=!0,a=!1,s=void 0;try{for(var o,u,l=r[Symbol.iterator]();!(i=(u=l.next()).done);i=!0){var c=u.value[t+1];if(!o||c.listKey&&o.listKey===c.listKey&&c.key<o.key){o=c;continue}var p=n.indexOf(o.parentKey),d=n.indexOf(c.parentKey);p>d&&(o=c)}}catch(e){a=!0,s=e}finally{try{i||null==l.return||l.return()}finally{if(a)throw s}}return o})},getDeepestCommonAncestorFrom:function(e,t){var r=this;if(!e.length)return this;if(1===e.length)return e[0];var n=1/0,i=e.map(function(e){var t=[];do t.unshift(e);while((e=e.parentPath)&&e!==r);return t.length<n&&(n=t.length),t}),a=i[0];r:for(var s=0;s<n;s++){var o=a[s],u=!0,l=!1,c=void 0;try{for(var p,d,f,h=i[Symbol.iterator]();!(u=(f=h.next()).done);u=!0)if(f.value[s]!==o)break r}catch(e){l=!0,c=e}finally{try{u||null==h.return||h.return()}finally{if(l)throw c}}p=s,d=o}if(d)return t?t(d,p,i):d;throw Error("Couldn't find intersection")},getAncestry:function(){var e=this,t=[];do t.push(e);while(e=e.parentPath);return t},isAncestor:function(e){return e.isDescendant(this)},isDescendant:function(e){return!!this.findParent(function(t){return t===e})},inType:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n=this;n;){var i=!0,a=!1,s=void 0;try{for(var o,u=t[Symbol.iterator]();!(i=(o=u.next()).done);i=!0){var l=o.value;if(n.node.type===l)return!0}}catch(e){a=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(a)throw s}}n=n.parentPath}return!1},getTypeAnnotation:function(){var e=this.getData("typeAnnotation");return null!=e||((CA(e=CO.call(this)||Cp())||CE(e))&&(e=e.typeAnnotation),this.setData("typeAnnotation",e)),e},isBaseType:function(e,t){return CD(e,this.getTypeAnnotation(),t)},couldBeBaseType:function(e){var t=this.getTypeAnnotation();if(Cd(t))return!0;if(!Ck(t))return CD(e,t,!0);var r=!0,n=!1,i=void 0;try{for(var a,s=t.types[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var o=a.value;if(Cd(o)||CD(e,o,!0))return!0}}catch(e){n=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw i}}return!1},baseTypeStrictlyMatches:function(e){var t=this.getTypeAnnotation(),r=e.getTypeAnnotation();return!!(!Cd(t)&&Cy(t))&&r.type===t.type},isGenericType:function(e){var t=this.getTypeAnnotation();return!!("Array"===e&&(CT(t)||Cf(t)||CP(t)))||Cv(t)&&Cg(t.id,{name:e})||C_(t)&&Cg(t.typeName,{name:e})},replaceWithMultiple:function(e){Nr.call(this),wc((e=C6.call(this,e))[0],this.node),wp(e[e.length-1],this.node),null===(t=AK(this.hub,this.parent))||void 0===t||t.delete(this.node),this.node=this.container[this.key]=null;var t,r=this.insertAfter(e);return this.node?this.requeue():this.remove(),r},replaceWithSourceString:function(e){Nr.call(this);try{e="(".concat(e,")"),t=Tv(e)}catch(n){var t,r=n.loc;throw r&&(n.message+=" - make sure this is an expression.\n"+TD(e,{start:{line:r.line,column:r.column+1}}),n.code="BABEL_REPLACE_SOURCE_ERROR"),n}var n=t.program.body[0].expression;return Nh.removeProperties(n),this.replaceWith(n)},replaceWith:function(e){if(Nr.call(this),this.removed)throw Error("You can't replace this node, we've already removed it");var t=rS(e,IX)?e.node:e;if(!t)throw Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead");if(this.node===t)return[this];if(this.isProgram()&&!wg(t))throw Error("You can only replace a Program root node with another Program node");if(Array.isArray(t))throw Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`");if("string"==typeof t)throw Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");var r="";if(this.isNodeType("Statement")&&wm(t)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t)&&!this.parentPath.isExportDefaultDeclaration()&&(t=wo(t),r="expression"),this.isNodeType("Expression")&&wb(t)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t))return this.replaceExpressionWithStatements([t]);var n=this.node;return n&&(wd(t,n),wx(n)),wA.call(this,t),this.type=t.type,Nt.call(this),this.requeue(),[r?this.get(r):this]},replaceExpressionWithStatements:function(e){var t=this;Nr.call(this);var r=[],n=function e(t,r){var n=[],i=!0,a=!0,s=!1,o=void 0;try{for(var u,l=t[Symbol.iterator]();!(a=(u=l.next()).done);a=!0){var c=u.value;if(wh(c)||(i=!1),wm(c))n.push(c);else if(wy(c))n.push(c.expression);else if(wS(c)){if("var"!==c.kind)return;var p=!0,d=!1,f=void 0;try{for(var h,m=c.declarations[Symbol.iterator]();!(p=(h=m.next()).done);p=!0){var y=h.value,v=wu(y),g=!0,b=!1,S=void 0;try{for(var x,T=Object.keys(v)[Symbol.iterator]();!(g=(x=T.next()).done);g=!0){var E=x.value;r.push(wa(v[E]))}}catch(e){b=!0,S=e}finally{try{g||null==T.return||T.return()}finally{if(b)throw S}}y.init&&n.push(we("=",y.id,y.init))}}catch(e){d=!0,f=e}finally{try{p||null==m.return||m.return()}finally{if(d)throw f}}i=!0}else if(wv(c)){var _=c.consequent?e([c.consequent],r):wn(),P=c.alternate?e([c.alternate],r):wn();if(!_||!P)return;n.push(ws(c.test,_,P))}else if(wf(c)){var A=e(c.body,r);if(!A)return;n.push(A)}else{if(!wh(c))return;0===t.indexOf(c)&&(i=!0)}}}catch(e){s=!0,o=e}finally{try{a||null==l.return||l.return()}finally{if(s)throw o}}return(i&&n.push(wn()),1===n.length)?n[0]:wE(n)}(e,r);if(n){var i=!0,a=!1,s=void 0;try{for(var o,u=r[Symbol.iterator]();!(i=(o=u.next()).done);i=!0){var l=o.value;this.scope.push({id:l})}}catch(e){a=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(a)throw s}}return this.replaceWith(n)[0].get("expressions")}var c=this.getFunctionParent(),p=null==c?void 0:c.node.async,d=null==c?void 0:c.node.generator,f=C7([],wr(e));this.replaceWith(wi(f,[]));var h=this.get("callee");h.get("body").scope.hoistVariables(function(e){return t.scope.push({id:e})});var m=h.getCompletionRecords(),y=!0,v=!1,g=void 0;try{for(var b,S=m[Symbol.iterator]();!(y=(b=S.next()).done);y=!0){var x=b.value;if(x.isExpressionStatement()){var T=x.findParent(function(e){return e.isLoop()});if(T){var E=T.getData("expressionReplacementReturnUid");E?E=wl(E.name):(E=h.scope.generateDeclaredUidIdentifier("ret"),h.get("body").pushContainer("body",wT(wa(E))),T.setData("expressionReplacementReturnUid",E)),x.get("expression").replaceWith(we("=",wa(E),x.node.expression))}else x.replaceWith(wT(x.node.expression))}}}catch(e){v=!0,g=e}finally{try{y||null==S.return||S.return()}finally{if(v)throw g}}h.arrowFunctionToExpression();var _=p&&Nh.hasType(this.get("callee.body").node,"AwaitExpression",C9),P=d&&Nh.hasType(this.get("callee.body").node,"YieldExpression",C9);return _&&(h.set("async",!0),P||this.replaceWith(wt(this.node))),P&&(h.set("generator",!0),this.replaceWith(wP(this.node,!0))),h.get("body.body")},replaceInline:function(e){if(Nr.call(this),!Array.isArray(e))return this.replaceWith(e);if(!Array.isArray(this.container))return this.replaceWithMultiple(e);e=C6.call(this,e);var t=C4.call(this,e);return this.remove(),t},evaluateTruthy:function(){var e=this.evaluate();if(e.confident)return!!e.value},evaluate:function(){var e={confident:!0,deoptPath:null,seen:/* @__PURE__ */new Map},t=wD(this,e);return e.confident||(t=void 0),{confident:e.confident,deopt:e.deoptPath,value:t}},toComputedKey:function(){var e;if(this.isMemberExpression())e=this.node.property;else if(this.isProperty()||this.isMethod())e=this.node.key;else throw ReferenceError("todo");return!this.node.computed&&wq(e)&&(e=w1(e.name)),e},ensureBlock:function(){var e,t,r=this.get("body"),n=r.node;if(Array.isArray(r))throw Error("Can't convert array path to a block statement");if(!n)throw Error("Can't convert node without a body");if(r.isBlockStatement())return n;var i=[],a="body";r.isStatement()?(t="body",e=0,i.push(r.node)):(a+=".body.0",this.isFunction()?(e="argument",i.push(wQ(r.node))):(e="expression",i.push(wV(r.node)))),this.node.body=wR(i);var s=this.get(a);return Nu.call(r,s,t?s.node[t]:s.node,t,e),this.node},unwrapFunctionEnvironment:function(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");Iu(this)},arrowFunctionToExpression:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.allowInsertArrow,n=void 0===r||r,i=t.allowInsertArrowWithRest,a=void 0===i?n:i,s=t.noNewArrows,o=void 0===s||s;if(!this.isArrowFunctionExpression())throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.");var u=this;o||(u=null!==(e=u.ensureFunctionName(!1))&&void 0!==e?e:u);var l=Iu(u,o,n,a),c=l.thisBinding,p=l.fnPath;if(p.ensureBlock(),p.node.type="FunctionExpression",!o){var d=c?null:p.scope.generateUidIdentifier("arrowCheckId");return d&&p.parentPath.scope.push({id:d,init:w$([])}),p.get("body").unshiftContainer("body",wV(wj(this.hub.addHelper("newArrowCheck"),[w3(),d?wW(d.name):wW(c)]))),p.replaceWith(wj(wK(p.node,wW("bind")),[d?wW(d.name):w3()])),p.get("callee.object")}return p},splitExportDeclaration:function(){if(!this.isExportDeclaration()||this.isExportAllDeclaration())throw Error("Only default and named export declarations can be split.");if(this.isExportNamedDeclaration()&&this.get("specifiers").length>0)throw Error("It doesn't make sense to split exported specifiers.");var e=this.get("declaration");if(this.isExportDefaultDeclaration()){var t=e.isFunctionDeclaration()||e.isClassDeclaration(),r=e.isFunctionExpression()||e.isClassExpression(),n=e.isScope()?e.scope.parent:e.scope,i=e.node.id,a=!1;i?r&&n.hasBinding(i.name)&&(a=!0,i=n.generateUidIdentifier(i.name)):(a=!0,i=n.generateUidIdentifier("default"),(t||r)&&(e.node.id=It(i)));var s=t?e.node:Ir("var",[In(It(i),e.node)]),o=Ii(null,[Ia(It(i),wW("default"))]);return this.insertAfter(o),this.replaceWith(s),a&&n.registerDeclaration(this),this}if(this.get("specifiers").length>0)throw Error("It doesn't make sense to split exported specifiers.");var u=Ii(null,Object.keys(e.getOuterBindingIdentifiers()).map(function(e){return Ia(wW(e),wW(e))}));return this.insertAfter(u),this.replaceWith(e.node),this},ensureFunctionName:function(e){if(this.node.id)return this;var t,r,n=Ie(this.node,this.parent);if(null==n)return this;var i=n.name;if(!e&&/[\uD800-\uDFFF]/.test(i)||i.startsWith("get ")||i.startsWith("set "))return null;var a=wW(i=w8(i.replace(/[/ ]/g,"_")));Is(a,n.originalNode);var s={needsRename:!1,name:i},o=this.scope,u=o.getOwnBinding(i);if(u?"param"===u.kind&&(s.needsRename=!0):(o.parent.hasBinding(i)||o.hasGlobal(i))&&this.traverse(If,s),!s.needsRename)return this.node.id=a,o.getProgramParent().references[a.name]=!0,this;if(o.hasBinding(a.name)&&!o.hasGlobal(a.name))return o.rename(a.name),this.node.id=a,o.getProgramParent().references[a.name]=!0,this;if(!w6(this.node))return null;for(var l=o.generateUidIdentifier(a.name),c=[],p=0,d=-1===(r=(t=this.node).params.findIndex(function(e){return w9(e)||w7(e)}))?t.params.length:r;p<d;p++)c.push(o.generateUidIdentifier("x"));var f=Eh.expression.ast(rL(),l,a,c,It(l),It(a),It(l),It(a),w4(this.node));return this.replaceWith(f)[0].get("arguments.0")},matchesPattern:function(e,t){return IT(this.node,e,t)},isStatic:function(){return this.scope.isStatic(this.node)},isNodeType:function(e){return Ix(this.type,e)},canHaveVariableDeclarationOrExpression:function(){return("init"===this.key||"left"===this.key)&&this.parentPath.isFor()},canSwapBetweenExpressionAndStatement:function(e){return!!("body"===this.key&&this.parentPath.isArrowFunctionExpression())&&(this.isExpression()?Iy(e):!!this.isBlockStatement()&&Iv(e))},isCompletionRecord:function(e){var t=this,r=!0;do{var n=t.type,i=t.container;if(!r&&(t.isFunction()||"StaticBlock"===n))return!!e;if(r=!1,Array.isArray(i)&&t.key!==i.length-1)return!1}while((t=t.parentPath)&&!t.isProgram()&&!t.isDoExpression());return!0},isStatementOrBlock:function(){return!(this.parentPath.isLabeledStatement()||Iy(this.container))&&Ih.includes(this.key)},referencesImport:function(e,t){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===t||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?IS(this.node.property,{value:t}):this.node.property.name===t)){var r=this.get("object");return r.isReferencedIdentifier()&&r.referencesImport(e,"*")}return!1}var n=this.scope.getBinding(this.node.name);if(!n||"module"!==n.kind)return!1;var i=n.path,a=i.parentPath;return!!a.isImportDeclaration()&&a.node.source.value===e&&(!t||!!(i.isImportDefaultSpecifier()&&"default"===t||i.isImportNamespaceSpecifier()&&"*"===t||i.isImportSpecifier()&&Ig(i.node.imported,{name:t})))},getSource:function(){var e=this.node;if(e.end){var t=this.hub.getCode();if(t)return t.slice(e.start,e.end)}return""},willIMaybeExecuteBefore:function(e){return"after"!==this._guessExecutionStatusRelativeTo(e)},_guessExecutionStatusRelativeTo:function(e){return function e(t,r,n){var i,a={this:IE(t),target:IE(r)};if(a.target.node!==a.this.node)return function(t,r,n){var i,a=n.get(t.node);if(a){if(i=a.get(r.node))return i===IP?"unknown":i}else n.set(t.node,a=/* @__PURE__ */new Map);a.set(r.node,IP);var s=function(t,r,n){if(!r.isFunctionDeclaration())return"before"===e(t,r,n)?"before":"unknown";if(r.parentPath.isExportDeclaration())return"unknown";var i=r.scope.getBinding(r.node.id.name);if(!i.references)return"before";var a=i.referencePaths,s=!0,o=!1,u=void 0;try{for(var l,c,p=a[Symbol.iterator]();!(s=(c=p.next()).done);s=!0){var d=c.value;if(!d.find(function(e){return e.node===r.node})){if("callee"!==d.key||!d.parentPath.isCallExpression())return"unknown";var f=e(t,d,n);if(l&&l!==f)return"unknown";l=f}}}catch(e){o=!0,u=e}finally{try{s||null==p.return||p.return()}finally{if(o)throw u}}return l}(t,r,n);return a.set(r.node,s),s}(t,a.target,n);var s={target:r.getAncestry(),this:t.getAncestry()};if(s.target.includes(t))return"after";if(s.this.includes(r))return"before";for(var o={target:0,this:0};!i&&o.this<s.this.length;){var u=s.this[o.this];o.target=s.target.indexOf(u),o.target>=0?i=u:o.this++}if(!i)throw Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(I_(s.this,o.this-1)||I_(s.target,o.target-1))return"unknown";var l={this:s.this[o.this-1],target:s.target[o.target-1]};if(l.target.listKey&&l.this.listKey&&l.target.container===l.this.container)return l.target.key>l.this.key?"before":"after";var c=Im[i.type],p={this:c.indexOf(l.this.parentKey),target:c.indexOf(l.target.parentKey)};return p.target>p.this?"before":"after"}(this,e,/* @__PURE__ */new Map)},resolve:function(e,t){return IA.call(this,e,t)||this},isConstantExpression:function(){if(this.isIdentifier()){var e=this.scope.getBinding(this.node.name);return!!e&&e.constant}if(this.isLiteral())return!this.isRegExpLiteral()&&(!this.isTemplateLiteral()||this.get("expressions").every(function(e){return e.isConstantExpression()}));if(this.isUnaryExpression())return"void"===this.node.operator&&this.get("argument").isConstantExpression();if(this.isBinaryExpression()){var t=this.node.operator;return"in"!==t&&"instanceof"!==t&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}return this.isMemberExpression()?!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:!0}):!!this.isCallExpression()&&1===this.node.arguments.length&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:!0})&&this.get("arguments")[0].isStringLiteral()},isInStrictMode:function(){return!!(this.isProgram()?this:this.parentPath).find(function(e){if(e.isProgram({sourceType:"module"})||e.isClass())return!0;if(e.isArrowFunctionExpression()&&!e.get("body").isBlockStatement())return!1;if(e.isFunction())i=e.node.body;else{if(!e.isProgram())return!1;i=e.node}var t=!0,r=!1,n=void 0;try{for(var i,a,s=i.directives[Symbol.iterator]();!(t=(a=s.next()).done);t=!0){var o=a.value;if("use strict"===o.value.value)return!0}}catch(e){r=!0,n=e}finally{try{t||null==s.return||s.return()}finally{if(r)throw n}}})},isDenylisted:function(){var e,t=null!==(e=this.opts.denylist)&&void 0!==e?e:this.opts.blacklist;return null==t?void 0:t.includes(this.node.type)},visit:function(){if(!this.node||this.isDenylisted()||(null===(e=(t=this.opts).shouldSkip)||void 0===e?void 0:e.call(t,this)))return!1;var e,t,r=this.context;return this.shouldSkip||I9.call(this,"enter")?this.debug("Skip..."):(Ne(this,r),this.debug("Recursing into..."),this.shouldStop=I6(this.node,this.opts,this.scope,this.state,this,this.skipKeys),Ne(this,r),I9.call(this,"exit")),this.shouldStop},skip:function(){this.shouldSkip=!0},skipKey:function(e){null==this.skipKeys&&(this.skipKeys={}),this.skipKeys[e]=!0},stop:function(){this._traverseFlags|=2|IJ},setContext:function(e){return null!=this.skipKeys&&(this.skipKeys={}),this._traverseFlags=0,e&&(this.context=e,this.state=e.state,this.opts=e.opts),Nt.call(this),this},requeue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this;if(!e.removed){e.shouldSkip=!1;var t=this.contexts,r=!0,n=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)a.value.maybeQueue(e)}catch(e){n=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw i}}}},requeueComputedKeyAndDecorators:function(){var e=this.context,t=this.node;if(!oW(t)&&t.computed&&e.maybeQueue(this.get("key")),t.decorators){var r=!0,n=!1,i=void 0;try{for(var a,s=this.get("decorators")[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var o=a.value;e.maybeQueue(o)}}catch(e){n=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(n)throw i}}}},remove:function(){var e;if(CU.call(this),Nr.call(this),CB.call(this)){Cj.call(this);return}(null===(e=this.opts)||void 0===e?void 0:e.noScope)||CF.call(this),this.shareCommentsWithSiblings(),CR.call(this),Cj.call(this)},insertBefore:function(e){CU.call(this);var t=C6.call(this,e),r=this.parentPath,n=this.parent;if(r.isExpressionStatement()||r.isLabeledStatement()||C$(n)||r.isExportDefaultDeclaration()&&this.isDeclaration())return r.insertBefore(t);if(this.isNodeType("Expression")&&!this.isJSXElement()||r.isForStatement()&&"init"===this.key)return this.node&&t.push(this.node),this.replaceExpressionWithStatements(t);if(Array.isArray(this.container))return C3.call(this,t);if(this.isStatementOrBlock()){var i=this.node,a=i&&(!this.isExpressionStatement()||null!=i.expression);return this.replaceWith(CJ(a?[i]:[])),this.unshiftContainer("body",t)}throw Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")},insertAfter:function(e){if(CU.call(this),this.isSequenceExpression())return C5(this.get("expressions")).insertAfter(e);var t=C6.call(this,e),r=this.parentPath,n=this.parent;if(r.isExpressionStatement()||r.isLabeledStatement()||C$(n)||r.isExportDefaultDeclaration()&&this.isDeclaration())return r.insertAfter(t.map(function(e){return CY(e)?CK(e):e}));if(this.isNodeType("Expression")&&!this.isJSXElement()&&!r.isJSXElement()||r.isForStatement()&&"init"===this.key){if(this.node){var i=this.node,a=this.scope;if(a.path.isPattern())return CW(i),this.replaceWith(CX(CV([],i),[])),this.get("callee.body").insertAfter(t),[this];if(function e(t){return CZ(t.parent)&&(C5(t.parent.expressions)!==t.node||e(t.parentPath))}(this))t.unshift(i);else if(Cz(i)&&C0(i.callee))t.unshift(i),t.push(C1());else if(function(e,t){if(!CH(e)||!CQ(e.left))return!1;var r=t.getBlockParent();return r.hasOwnBinding(e.left.name)&&r.getOwnBinding(e.left.name).constantViolations.length<=1}(i,a))t.unshift(i),t.push(CG(i.left));else if(a.isPure(i,!0))t.push(i);else{r.isMethod({computed:!0,key:i})&&(a=a.parent);var s=a.generateDeclaredUidIdentifier();t.unshift(CK(Cq("=",CG(s),i))),t.push(CK(CG(s)))}}return this.replaceExpressionWithStatements(t)}if(Array.isArray(this.container))return C4.call(this,t);if(this.isStatementOrBlock()){var o=this.node,u=o&&(!this.isExpressionStatement()||null!=o.expression);return this.replaceWith(CJ(u?[o]:[])),this.pushContainer("body",t)}throw Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")},unshiftContainer:function(e,t){CU.call(this),t=C6.call(this,t);var r=IX.get({parentPath:this,parent:this.node,container:this.node[e],listKey:e,key:0}).setContext(this.context);return C3.call(r,t)},pushContainer:function(e,t){CU.call(this);var r=C6.call(this,t),n=this.node[e];return IX.get({parentPath:this,parent:this.node,container:n,listKey:e,key:n.length}).setContext(this.context).replaceWithMultiple(r)},getOpposite:function(){return"left"===this.key?this.getSibling("right"):"right"===this.key?this.getSibling("left"):null},getCompletionRecords:function(){return IM(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1}).map(function(e){return e.path})},getSibling:function(e){return IX.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:e}).setContext(this.context)},getPrevSibling:function(){return this.getSibling(this.key-1)},getNextSibling:function(){return this.getSibling(this.key+1)},getAllNextSiblings:function(){for(var e=this.key,t=this.getSibling(++e),r=[];t.node;)r.push(t),t=this.getSibling(++e);return r},getAllPrevSiblings:function(){for(var e=this.key,t=this.getSibling(--e),r=[];t.node;)r.push(t),t=this.getSibling(--e);return r},get:function(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];!0===t&&(t=this.context);var r=e.split(".");return 1===r.length?IF.call(this,e,t):IB.call(this,r,t)},getAssignmentIdentifiers:function(){return Ik(this.node)},getBindingIdentifiers:function(e){return IC(this.node,e)},getOuterBindingIdentifiers:function(e){return Iw(this.node,e)},getBindingIdentifierPaths:function(){for(var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=[this],n=/* @__PURE__ */Object.create(null);r.length;){var i=r.shift();if(i&&i.node){var a=IC.keys[i.node.type];if(i.isIdentifier()){e?(n[i.node.name]=n[i.node.name]||[]).push(i):n[i.node.name]=i;continue}if(i.isExportDeclaration()){var s=i.get("declaration");s.isDeclaration()&&r.push(s);continue}if(t){if(i.isFunctionDeclaration()){r.push(i.get("id"));continue}if(i.isFunctionExpression())continue}if(a)for(var o=0;o<a.length;o++){var u=a[o],l=i.get(u);Array.isArray(l)?r.push.apply(r,r_(l)):l.node&&r.push(l)}}}return n},getOuterBindingIdentifierPaths:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.getBindingIdentifierPaths(e,!0)},shareCommentsWithSiblings:function(){if("string"!=typeof this.key){var e=this.node;if(e){var t=e.trailingComments,r=e.leadingComments;if(t||r){var n=this.getSibling(this.key-1),i=this.getSibling(this.key+1),a=!!n.node,s=!!i.node;a&&(r&&n.addComments("trailing",IU(r,n.node.trailingComments)),t&&!s&&n.addComments("trailing",t)),s&&(t&&i.addComments("leading",IU(t,i.node.leadingComments)),r&&!a&&i.addComments("leading",r))}}}},addComment:function(e,t,r){IR(this.node,e,t,r)},addComments:function(e,t){Ij(this.node,e,t)}});var IG=!0,IK=!1,IH=void 0;try{for(var Iz,I$,IY=l5[Symbol.iterator]();!(IG=(I$=IY.next()).done);IG=!0)!function(){var e=I$.value,t="is".concat(e),r=r8[t];IX.prototype[t]=function(e){return r(this.node,e)},IX.prototype["assert".concat(e)]=function(t){if(!r(this.node,t))throw TypeError("Expected node path of type ".concat(e))}}()}catch(e){IK=!0,IH=e}finally{try{IG||null==IY.return||IY.return()}finally{if(IK)throw IH}}Object.assign(IX.prototype,AS);var IQ=!0,IZ=!1,I0=void 0;try{for(var I1,I2=Object.keys(P6)[Symbol.iterator]();!(IQ=(I1=I2.next()).done);IQ=!0){var I3=I1.value;"_"===I3[0]||l5.includes(I3)||l5.push(I3)}}catch(e){IZ=!0,I0=e}finally{try{IQ||null==I2.return||I2.return()}finally{if(IZ)throw I0}}var I4=r8.VISITOR_KEYS,I5=/*#__PURE__*/function(){function e(t,r,n,i){rf(this,e),rX(this,"queue",null),rX(this,"priorityQueue",null),this.parentPath=i,this.scope=t,this.state=n,this.opts=r}return rm(e,[{key:"shouldVisit",value:function(e){var t=this.opts;if(t.enter||t.exit||t[e.type])return!0;var r=I4[e.type];if(!(null==r?void 0:r.length))return!1;var n=!0,i=!1,a=void 0;try{for(var s,o=r[Symbol.iterator]();!(n=(s=o.next()).done);n=!0)if(e[s.value])return!0}catch(e){i=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}return!1}},{key:"create",value:function(e,t,r,n){return IX.get({parentPath:this.parentPath,parent:e,container:t,key:r,listKey:n})}},{key:"maybeQueue",value:function(e,t){this.queue&&(t?this.queue.push(e):this.priorityQueue.push(e))}},{key:"visitMultiple",value:function(e,t,r){if(0===e.length)return!1;for(var n=[],i=0;i<e.length;i++){var a=e[i];a&&this.shouldVisit(a)&&n.push(this.create(t,e,i,r))}return this.visitQueue(n)}},{key:"visitSingle",value:function(e,t){return!!this.shouldVisit(e[t])&&this.visitQueue([this.create(e,e,t)])}},{key:"visitQueue",value:function(e){this.queue=e,this.priorityQueue=[];for(var t=/* @__PURE__ */new WeakSet,r=!1,n=0;n<e.length;){var i=e[n];if(n++,Nr.call(i),(0===i.contexts.length||i.contexts[i.contexts.length-1]!==this)&&No.call(i,this),null!==i.key){var a=i.node;if(!t.has(a)){if(a&&t.add(a),i.visit()){r=!0;break}if(this.priorityQueue.length&&(r=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=e,r))break}}}for(var s=0;s<n;s++)Ns.call(e[s]);return this.queue=null,r}},{key:"visit",value:function(e,t){var r=e[t];return!!r&&(Array.isArray(r)?this.visitMultiple(r,e,t):this.visitSingle(e,t))}}]),e}(),I8=r8.VISITOR_KEYS;function I6(e,t,r,n,i,a,s){var o=I8[e.type];if(!o)return!1;var u=new I5(r,t,n,i);if(s)return(null==a||!a[i.parentKey])&&u.visitQueue([i]);var l=!0,c=!1,p=void 0;try{for(var d,f=o[Symbol.iterator]();!(l=(d=f.next()).done);l=!0){var h=d.value;if((null==a||!a[h])&&u.visit(e,h))return!0}}catch(e){c=!0,p=e}finally{try{l||null==f.return||f.return()}finally{if(c)throw p}}return!1}function I9(e){var t,r=this.opts;return this.debug(e),!!(this.node&&I7.call(this,r[e]))||!!this.node&&I7.call(this,null===(t=r[this.node.type])||void 0===t?void 0:t[e])}function I7(e){if(!e)return!1;var t=!0,r=!1,n=void 0;try{for(var i,a=e[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var s=i.value;if(s){var o=this.node;if(!o)return!0;var u=s.call(this.state,this,this.state);if(u&&(void 0===u?"undefined":rP(u))==="object"&&"function"==typeof u.then)throw Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");if(u)throw Error("Unexpected return value from visitor method ".concat(s));if(this.node!==o||this._traverseFlags>0)return!0}}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}return!1}function Ne(e,t){e.context!==t&&(e.context=t,e.state=t.state,e.opts=t.opts)}function Nt(){if(null===(e=this.opts)||void 0===e||!e.noScope){var e,t,r,n,i=this.parentPath;for((("key"===this.key||"decorators"===this.listKey)&&i.isMethod()||"discriminant"===this.key&&i.isSwitchStatement())&&(i=i.parentPath);i&&!r;){if(null===(n=i.opts)||void 0===n?void 0:n.noScope)return;r=i.scope,i=i.parentPath}this.scope=this.getScope(r),null===(t=this.scope)||void 0===t||t.init()}}function Nr(){this.removed||(Nn.call(this),Na.call(this),Ni.call(this))}function Nn(){this.parentPath&&(this.parent=this.parentPath.node)}function Ni(){if(this.container&&this.node!==this.container[this.key]){if(Array.isArray(this.container)){for(var e=0;e<this.container.length;e++)if(this.container[e]===this.node){Nl.call(this,e);return}}else{var t=!0,r=!1,n=void 0;try{for(var i,a=Object.keys(this.container)[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var s=i.value;if(this.container[s]===this.node){Nl.call(this,s);return}}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}}this.key=null}}function Na(){if(this.parent&&this.inList){var e=this.parent[this.listKey];this.container!==e&&(this.container=e||null)}}function Ns(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)}function No(e){this.contexts.push(e),this.setContext(e)}function Nu(e,t,r,n){this.listKey=r,this.container=t,this.parentPath=e||this.parentPath,Nl.call(this,n)}function Nl(e){var t;this.key=e,this.node=this.container[this.key],this.type=null===(t=this.node)||void 0===t?void 0:t.type}function Nc(){for(var e=this,t=this.contexts;!t.length&&(e=e.parentPath);)t=e.contexts;return t}var Np=r8.VISITOR_KEYS,Nd=r8.removeProperties,Nf=r8.traverseFast;function Nh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;if(e){if(!t.noScope&&!r&&"Program"!==e.type&&"File"!==e.type)throw Error("You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ".concat(e.type," node without passing scope and parentPath."));if(!i&&a)throw Error("visitSelf can only be used when providing a NodePath.");if(!Np[e.type])return;Ak(t),I6(e,t,r,n,i,null,a)}}function Nm(e,t){e.node.type===t.type&&(t.has=!0,e.stop())}Nh.visitors=AB,Nh.verify=AC,Nh.explode=Ak,Nh.cheap=function(e,t){Nf(e,t)},Nh.node=function(e,t,r,n,i,a){I6(e,t,r,n,i,a)},Nh.clearNode=function(e,t){Nd(e,t)},Nh.removeProperties=function(e,t){return Nf(e,Nh.clearNode,t),e},Nh.hasType=function(e,t,r){if(null==r?void 0:r.includes(e.type))return!1;if(e.type===t)return!0;var n={has:!1,type:t};return Nh(e,{noScope:!0,denylist:r,enter:Nm},null,n),n.has},Nh.cache=Az,r5.default;var Ny={};Ny.TYPES={TOKEN:"Token",NEWLINE:"Newline",LINEBREAK:"Linebreak",SPLITTER:"Splitter",INDENT:"Indent",DEBUG:"Debug",SPACE:"Space",ROUND_BRACE_OPEN:"RoundBraceOpen",ROUND_BRACE_CLOSE:"RoundBraceClose",QUOTE:"Quote",END_OF_FILE:"EndOfFile"};var Nv={},Ng={},Nb={};let{types:NS}=r5,{isStringLiteral:Nx,isSpreadElement:NT,isIdentifier:NE,isIfStatement:N_,isStatement:NP,isForOfStatement:NA,isVariableDeclaration:Nk,isMemberExpression:NC,isArrayExpression:Nw,isObjectExpression:NI,isLabeledStatement:NN}=NS,NO=e=>e.parentPath?.isProgram(),ND=e=>{let t=e.getNextSibling();return!!t.node&&!t.isEmptyStatement()},NL=e=>NO(e)&&!ND(e);function NM([e,t]){return Nx(e)&&NE(t)}Nb.isNextObject=e=>e.getNextSibling().isObjectExpression(),Nb.isPrevObject=e=>e.getPrevSibling().isObjectExpression(),Nb.isFirst=e=>e.node===e.parentPath.node.body?.[0],Nb.isPrevBody=e=>e.getPrevSibling().isBlockStatement(),Nb.isNext=ND,Nb.isPrev=e=>e.getPrevSibling().node,Nb.isNextParent=e=>ND(e.parentPath),Nb.isParentProgram=NO,Nb.isParentBlock=e=>e.parentPath.isBlockStatement(),Nb.isLast=NL,Nb.isParentLast=e=>NL(e.parentPath),Nb.isIndented=(e={})=>{let{parentPath:t,node:r}=e;return!t.node.loc||r.loc?.start.column!==t.node.loc.start.column},Nb.isCoupleLines=function(e){let t=e.node?.loc?.start?.line;return e.node?.loc?.end?.line!==t},Nb.exists=e=>e.node,Nb.isStringAndIdentifier=NM,Nb.isSimpleAndNotEmptyObject=([e,t])=>!!((NE(e)||NT(e)||Nw(e))&&NI(t))&&t.node.properties.length,Nb.isIdentifierAndIdentifier=([e,t])=>NE(e)&&NE(t),Nb.isStringAndMember=([e,t])=>Nx(e)&&NC(t),Nb.isIdentifierAndString=([e,t])=>NE(e)&&Nx(t),Nb.isStringAndArray=([e,t])=>!!(Nx(e)&&Nw(t))&&!NM(t.node.elements);let NF=e=>N_(e)||NP(e),NB=e=>NA(e)||NP(e);Nb.isIf=e=>N_(e.find(NF)),Nb.isForOf=e=>{let t=e.find(NB);return!!NA(t)||!!Nk(t)&&NA(t.parentPath)},Nb.isNewlineBetweenSiblings=e=>{let t=e.node?.loc?.end?.line,r=e.getNextSibling().node?.loc?.start?.line;return!!r&&r-t>1},Nb.isInsideLabel=({parentPath:e})=>NN(e),Nb.satisfy=e=>t=>{for(let r of e)if(r(t))return!0;return!1};let NR=e=>e.node||e;Nb.hasCoupleTrailingComments=e=>{let t=NR(e);return t?.trailingComments?.length>1},Nb.hasTrailingComment=e=>{let t=NR(e);return t.trailingComments?.length},Nb.hasLeadingComment=e=>e.node?.leadingComments?.length,Nb.noTrailingComment=e=>!e.node.trailingComments?.length,Nb.noLeadingComment=e=>!e.node.leadingComments?.length;var Nj={},NU={},NV={},NW={};let Nq="__putout_newline_after";function NJ(e){e[Nq]=!0}NW.markBefore=function(e){e.__putout_newline_before=!0},NW.markAfter=NJ,NW.maybeMarkAfter=(e,t)=>e&&NJ(t),NW.isMarkedAfter=function(e){return e[Nq]},NW.hasPrevNewline=e=>e.getPrevSibling()[Nq];var NX={};NX.maybeInsideFn=(e,{print:t,indent:r})=>{e&&(r.inc(),r.inc(),t.breakline(),r.dec(),r.dec())};let{types:NG}=r5,{hasTrailingComment:NK,satisfy:NH,isPrev:Nz}=Nb,{markBefore:N$}=NW,{maybeInsideFn:NY}=NX,{isObjectProperty:NQ,isVariableDeclarator:NZ,isClassProperty:N0,isTSPropertySignature:N1,isSpreadElement:N2}=NG,N3=NH([NQ,NZ,N0,N1,N2]),N4=({parentPath:e})=>!!NZ(e)||NZ(e.parentPath),N5=e=>{let{parentPath:t}=e;return!!e.node.decorators?.length||t.node.decorators?.length},N8=e=>e===e.parentPath?.get("properties")[0];NV.parseLeadingComments=(e,{print:t,maybe:r,indent:n},i)=>{if(!i.comments)return;let{leadingComments:a}=e.node;if(!a?.length||N5(e))return;let s=e.isSwitchCase();if(!s&&NK(e.getPrevSibling()))return;let o=(e.parentPath.isFunction()||e.parentPath.isTSDeclareMethod())&&!e.isTSTypeParameterDeclaration(),u=N3(e),l=N8(e)||!s&&!e.isClassMethod()&&!o&&!u;for(let{type:i,value:c}of a){if(r.indent(l),"CommentLine"===i){NY(o,{print:t,indent:n}),function(e){let{loc:t,leadingComments:r}=e.node;if(!N3(e))return!1;let[n]=r,{line:i}=n.loc.start;return!function(e){let[t]=e.node.leadingComments,{line:r}=t.loc.start;return e.getPrevSibling().node?.loc.start.line===r}(e)&&i===t.start.line-1}(e)?r.print.breakline(!N8(e)):r.print.space(u&&!e.isClassProperty()),t(`//${c}`),r.print.breakline(u),r.print.newline(!u),N4(e)&&(n.inc(),n(),n.dec());continue}if("CommentBlock"===i){let n=e.isClassMethod(),i=e.isDirective(),a=e.isObjectProperty();a&&t.breakline(),t(`/*${c}*/`),N1(e)&&!Nz(e)&&t.breakline(),(e.isStatement()||e.isTSEnumMember()||i||n||a||s)&&(t.newline(),N$(e),r.indent(n||a||s));continue}}};var N6={};let{types:N9}=r5,{isLast:N7,isCoupleLines:Oe,isNext:Ot}=Nb,{isDecorator:Or,isMemberExpression:On}=N9,Oi=e=>!!e.isTSModuleDeclaration()||e.node.body?.length,Oa=e=>{let{parentPath:t}=e;return!!t.isFunction()&&t.get("params").includes(e)},Os=e=>e.node.trailingComments===e.getNextSibling().node?.leadingComments,Oo=e=>{let{parentPath:t}=e;return!On(t)&&!N7(e)&&!Or(e)};N6.isTrailingIsLeading=Os,N6.parseTrailingComments=(e,{write:t,maybe:r},n)=>{if(!n.comments)return;let{trailingComments:i}=e.node;if(!i?.length||e.isDirective())return;let a=i.length-1;for(let{type:n,value:s,loc:o}of i){let i=e.node.loc?.start.line===o.start.line||e.node.loc?.end.line===o.end.line,u=function(e){let{node:t,parentPath:r}=e,{loc:n,trailingComments:i}=t;if(r.isMemberExpression()||e.isClassMethod()||Os(e)||e.isThrowStatement())return!1;let[a]=i,{line:s}=a.loc.start,o=e.getNextSibling();if(o.node&&s<o.node.loc?.start.line)return!1;if(!n)return!0;let u=n.start.line,l=n.end.line;return s===u+1&&s===l+1||s===u+2&&s===l+2}(e);if("CommentLine"===n){r.write.breakline(u),r.write.space(i),r.indent(!i&&(!u||e.isDecorator())),Oi(e)&&(r.write.breakline(!Ot(e)),r.write.breakline(!a)),t(`//${s}`),r.write.newline(Oo(e));continue}"CommentBlock"===n&&(r.write.space(i),r.indent(!i),t(`/*${s}*/`),r.write.newline(!i||!Oa(e)&&Oe(e.parentPath)))}};var Ou={};let{isNext:Ol}=Nb;Ou.parseComments=(e,{write:t,maybe:r},n)=>{if(!n.comments)return;let i=e.node.comments||e.node.innerComments;if(!i)return;let a=i.length-1,s=e.isProgram();for(let[n,{type:o,value:u}]of i.entries()){if("CommentLine"===o){if(r.write.breakline(Ol(e)||!s),t("//"),t(u),s){r.write.newline(n<a);continue}t.newline();continue}"CommentBlock"===o&&(t("/*"),t(u),t("*/"))}};let{parseLeadingComments:Oc}=NV,{parseTrailingComments:Op}=N6,{parseComments:Od}=Ou;NU.parseLeadingComments=Oc,NU.parseTrailingComments=Op,NU.parseComments=Od;let{parseComments:Of}=NU;function Oh(e){if("ArrowFunctionExpression"!==e.type)return!1;let{params:t}=e.node,[r]=t;return 1===t.length&&"Identifier"===r.type}Nj.printParams=(e,t,r,n={})=>{let{extra:i,typeParameters:a}=e.node,{params:s=e.get("params"),braceOpen:o="(",braceClose:u=")"}=n,{print:l,maybe:c,traverse:p}=t;a&&p(e.get("typeParameters")),function(e,{print:t,braceOpen:r},n){(!Oh(e)||n.roundBraces.arrow)&&t(r)}(e,{print:l,braceOpen:o},r),Of(e,t,r);let d=s.length-1;for(let e=0;e<=d;e++){let t=e===d;p(s[e]),t||(l(","),l.space())}c.print(i?.trailingComma,","),function(e,{print:t,braceClose:r},n){(!Oh(e)||n.roundBraces.arrow)&&t(r)}(e,{print:l,braceClose:u},r)};var Om={};let Oy=e=>"function"==typeof e,Ov=e=>e.node.extra?.parenthesized;Om.isParens=Ov,Om.maybeParens=e=>Oy(e)?Og(e):Ob(e);let Og=e=>({condition:Ov,before(e,{write:t}){t("(")},print:e,after(e,{write:t}){t(")")}}),Ob=({print:e,condition:t})=>({...Og(e),condition:e=>t?.(e)||Ov(e)}),{exists:OS}=Nb,{printParams:Ox}=Nj,{maybeParens:OT}=Om;Ng.ArrowFunctionExpression=OT((e,t,r)=>{let{print:n,maybe:i,write:a,traverse:s}=t,{async:o}=e.node;i.print(o,"async "),Ox(e,t,r);let u=e.get("returnType");OS(u)&&(a(":"),a.space(),s(u)),n.space(),n("=>");let l=e.get("body").isJSXElement();i.print.space(!l),n("__body")});var OE={};let{types:O_}=r5,{markAfter:OP}=NW,{isNext:OA,isNextParent:Ok}=Nb,{printParams:OC}=Nj,{isTSModuleBlock:Ow,isBlockStatement:OI,isExportNamedDeclaration:ON}=O_,OO=({parentPath:e})=>ON(e);function OD(e){let{parentPath:t}=e;return!!Ow(t.parentPath)||!!OI(t)&&!e.node.body.body.length}OE.FunctionDeclaration={print(e,t,r){let{print:n,maybe:i}=t,{async:a,generator:s,returnType:o}=e.node;i.indent(!OO(e)),i.print(a,"async "),n("function"),s?(n("*"),n.space()):n(" "),n("__id"),OC(e,t,r),o&&(n(": "),n("__returnType")),n.space(),n("__body")},afterSatisfy:()=>[OA,Ok,OD],after(e,{write:t}){t.newline(),OP(e)}};var OL={},OM={};let OF=e=>{let t=e.getPrevSibling();return!!t.node&&(t.isClassProperty()||t.isClassAccessorProperty())};OM.maybeDecorators=e=>(t,r,n,i)=>{let{write:a,traverse:s,maybe:o}=r,{decorators:u}=t.node;if(u)for(let e of t.get("decorators"))o.write.breakline(OF(t)),s(e),a.breakline();e(t,r,n,i)};var OB={},OR={};OR.maybePrintComputed=(e,t,{maybe:r,traverse:n})=>{let{computed:i}=e.node;r.write(i,"["),n(t),r.write(i,"]")};let{maybePrintComputed:Oj}=OR;OB.printKey=(e,t)=>{let r=e.get("key");Oj(e,r,t)};var OU={};OU.printKind=(e,{write:t})=>{let{kind:r,generator:n}=e.node;"get"===r||"set"===r?t(`${r} `):n&&t("*")};let{isNext:OV,hasTrailingComment:OW}=Nb,{printParams:Oq}=Nj,{maybeDecorators:OJ}=OM,{printKey:OX}=OB,{printKind:OG}=OU,OK=e=>!OW(e)&&OV(e),OH={print:OJ((e,t,r)=>{let{print:n}=t,{node:i}=e,{accessibility:a,returnType:s}=i;a&&(n(a),n(" ")),i.static&&(n("static"),n(" ")),i.override&&(n("override"),n(" ")),i.async&&(n("async"),n(" ")),OG(e,t),OX(e,t),Oq(e,t,r),s&&(n(":"),n.space(),n("__returnType")),n.space(),n("__body")}),afterSatisfy:()=>[OK],after(e,{print:t}){t.linebreak()}};OL.ClassPrivateMethod=OH,OL.ClassMethod=OH;var Oz={};let{isNewlineBetweenSiblings:O$}=Nb,{printParams:OY}=Nj,{printKey:OQ}=OB,{printKind:OZ}=OU;Oz.ObjectMethod={beforeIf:e=>e.node.async,before(e,{write:t}){t("async ")},print(e,t,r){let{print:n}=t;OZ(e,t),OQ(e,t),OY(e,t,r),n.space(),n("__body")},afterIf:e=>O$(e),after(e,{print:t}){t.linebreak()}};var O0={};let{exists:O1}=Nb,{printParams:O2}=Nj,{maybeParens:O3}=Om;O0.FunctionExpression=O3((e,t,r)=>{let{print:n,maybe:i,write:a,traverse:s}=t,{node:o}=e,{generator:u,async:l}=o;i.write(l,"async "),a("function"),i.write(u,"*");let c=e.get("id");O1(c)&&(a(" "),s(c)),O2(e,t,r),n.space(),n("__body")});let{ArrowFunctionExpression:O4}=Ng,{FunctionDeclaration:O5}=OE,{ClassMethod:O8,ClassPrivateMethod:O6}=OL,{ObjectMethod:O9}=Oz,{FunctionExpression:O7}=O0;Nv.FunctionDeclaration=O5,Nv.FunctionExpression=O7,Nv.ArrowFunctionExpression=O4,Nv.ClassMethod=O8,Nv.ClassPrivateMethod=O6,Nv.ObjectMethod=O9;var De={};let{isLast:Dt,isNext:Dr}=Nb,{maybeParens:Dn}=Om,Di=e=>/^(delete|typeof|void|throw)$/.test(e),Da=Dn((e,t)=>{let{maybe:r,traverse:n}=t,{prefix:i,operator:a}=e.node,s=e.get("argument");r.print(i,a),r.print(Di(a)," "),n(s),r.print(!i,a)});function Ds(e,t,{print:r}){r(`${t} `),r("__argument")}De.UnaryExpression=Da,De.UpdateExpression=Da,De.AwaitExpression=Dn((e,{print:t})=>{Ds(e,"await",{print:t})}),De.YieldExpression=Dn((e,{print:t,maybe:r})=>{let{delegate:n}=e.node;t("yield"),r.print(n,"*"),t(" "),t("__argument")}),De.ThrowStatement=(e,{print:t,indent:r,maybe:n})=>{r(),Ds(e,"throw",{print:t}),t(";"),n.print.newline(!Dt(e)),n.print.breakline(Dr(e))};var Do={},Du={};let{assign:Dl}=Object;function Dc(e){let t={type:e.type};return e.isCallExpression()&&Dl(t,{args:e.node.arguments.length,name:e.node.callee.property?.name||""}),t}Du.chain=e=>{let t=[...function(e){let t=[],r=e.get("object");for(;!r.isIdentifier();){let e=r.isCallExpression(),n=Dc(r);if(e&&(r=r.get("callee")),t.unshift(n),!r.isMemberExpression())break;r=r.get("object")}return t}(e),...function(e){let t=[];for(;e.isMemberExpression()&&((e=e.parentPath).isCallExpression()&&(t.push(Dc(e)),e=e.parentPath),e.isMemberExpression()););return t.push({type:e.type}),t}(e)],r=t.slice(0,-1);return[t.at(-1),r]};let{types:Dp}=r5,{chain:Dd}=Du,{satisfy:Df}=Nb,{maybePrintComputed:Dh}=OR,{maybeParens:Dm}=Om,{isUnaryExpression:Dy,isArrowFunctionExpression:Dv,isIfStatement:Dg}=Dp,Db=e=>e.parentPath.isCallExpression()&&e.parentPath.get("arguments.0")===e;Do.MemberExpression=(e,t)=>{let{print:r,maybe:n,traverse:i}=t,a=e.get("object"),s=e.get("property"),o=a.isAssignmentExpression(),{computed:u}=e.node;if(n.print(o,"("),i(a),n.print(o,")"),u)return Dh(e,s,t);let l=DE(e);n.indent.inc(l),l&&r.breakline(),r("."),r("__property"),n.indent.dec(l)},Do.OptionalMemberExpression=Dm((e,{print:t,maybe:r})=>{let{computed:n,optional:i}=e.node;if(t("__object"),r.print(i,"?."),r.print(!i&&!n,"."),n){t("["),t("__property"),t("]");return}t("__property")});let DS=e=>"CallExpression"===e.type,Dx=Df([Dy,Dv,Dg]),DT=e=>{let t=e.find(Dg),r=!1;return t&&t.get("test").traverse({MemberExpression(t){e===t&&(r=!0,e.stop())}}),r};function DE(e){let[t,r]=Dd(e);if(Dx(t)||e.find(DT))return!1;let n=r.filter(DS),[i]=n;return!(2===n.length&&!i.name||Db(e))&&n.length>1}Do.likeChain=DE;var D_={},DP={};DP.maybeDeclare=e=>(t,r,n)=>{let{maybe:i}=r,{declare:a}=t.node;i.print(a,"declare "),e(t,r,n)};let{types:DA}=r5,{isNext:Dk}=Nb,{markAfter:DC}=NW,{maybeDeclare:Dw}=DP,{parseComments:DI}=NU,{maybeDecorators:DN}=OM,{isFunction:DO}=DA,DD=({parentPath:e})=>e.isExportDeclaration(),DL=e=>DO(e.parentPath.parentPath),DM=({node:e})=>e.body.body.length,DF=DN((e,t,r)=>{let{id:n,abstract:i,superClass:a}=e.node,{print:s,indent:o,maybe:u,traverse:l}=t;u.print(i,"abstract "),s("class"),u.print(n||a," "),s("__id"),s("__typeParameters");let{node:c}=e;c.superClass&&(u.print(n," "),s("extends "),s("__superClass"),s("__superTypeArguments")),c.implements&&(s(" implements "),e.get("implements").forEach(s)),s.space(),s("{"),u.print.newline(e.node.body.body.length),o.inc();let p=e.get("body"),d=p.get("body");for(let e of d)o(),l(e);d.length||DI(p,t,r),o.dec(),u.indent(d.length),s("}")});D_.ClassExpression=DF,D_.ClassDeclaration={print:Dw((e,t,r)=>{let{indent:n}=t;n(),DF(e,t,r)}),afterIf:e=>!!DL(e)||!!Dk(e)&&!DD(e),after(e,{write:t}){t.newline(),!DL(e)&&DM(e)&&(t.newline(),DC(e))}};var DB={};let{exists:DR}=Nb,{maybeParens:Dj}=Om,{isArray:DU}=Array,DV=e=>{let t=e.get("arguments");return DU(t)?t:[]},DW=Dj((e,{indent:t,print:r,maybe:n,traverse:i})=>{let a=DV(e),s=function(e){for(let t of e)if(t.isIdentifier()&&t.node.name.length>10)return!0;return!1}(a)&&e.parentPath.isCallExpression(),o=e.get("callee"),u=e.get("typeParameters");i(o),DR(u)&&i(u),e.node.optional&&r("?."),r("(");let l=a.length-1;for(let[e,t]of(n.indent.inc(s),a.entries())){let n=t.isObjectExpression();if(s&&!n&&l&&r.breakline(),r(t),s&&l){r(",");continue}e<l&&(r(","),r.space())}s&&(t.dec(),n.print.breakline(l)),r(")")});DB.OptionalCallExpression=DW,DB.CallExpression=DW;var Dq={};let{exists:DJ}=Nb,{isMarkedAfter:DX}=NW,DG=({parentPath:e})=>e.isExpressionStatement(),DK=({parentPath:e})=>DJ(e.getPrevSibling()),DH=({parentPath:e})=>{let t=e.getPrevSibling();return[t.node,t]};function Dz(e,t,r,n){let{maybe:i,print:a}=r,{roundBraces:s}=n;if(t.node.arguments.length)return a(e);i.print(s.new,e)}Dq.NewExpression={beforeIf(e){if(!DG(e))return!1;let[t,r]=DH(e);return!(!t||DX(r)||r.isExpressionStatement())&&DK(e)},before(e,{print:t}){t.breakline()},print(e,t,r){let{print:n,maybe:i}=t;n("new "),n("__callee"),n("__typeParameters");let a=e.get("arguments");Dz("(",e,t,r);let s=a.length-1;for(let[e,t]of a.entries())n(t),i.print(e<s,", ");Dz(")",e,t,r)}};var D$={};let{types:DY}=r5,{isCoupleLines:DQ,isForOf:DZ,isIf:D0,noTrailingComment:D1,isNewlineBetweenSiblings:D2,noLeadingComment:D3,hasLeadingComment:D4,exists:D5}=Nb,{parseComments:D8}=NU,{likeChain:D6}=Do,{isStringLiteral:D9}=DY,D7=e=>e.parentPath.node.body===e.node,Le=e=>e.get("argument").isLogicalExpression(),Lt=e=>e.get("properties.0.value").node,Lr=e=>e.parentPath.isExpressionStatement(),Ln=({parentPath:e})=>{if(!e.isCallExpression())return!1;let t=e.get("callee");return!!t.isMemberExpression()&&D6(t)},Li=({parentPath:e})=>e.isCallExpression();D$.ObjectExpression=(e,t,r)=>{let{trailingComma:n}=r,{print:i,maybe:a,indent:s}=t,o=function({parentPath:e}){return!!(e.isArrayExpression()&&e.parentPath.isArrayExpression())&&Li(e.parentPath)}(e);a.indent.inc(!o);let u=e.get("properties"),{length:l}=u,c=!!D7(e)||Lr(e),p=!Lo(e);a.print(c,"("),i("{"),D8(e,t,r),a.print.newline(p);let d=u.length-1,f=Ln(e);for(let[e,t]of(a.indent.inc(f),u.entries())){if(t.isSpreadElement()){let r=Le(t);D3(t)&&a.indent(l>1||r||p),i(t),D1(t)&&(l>1||p)&&(a.print(e!==d||n,","),i.newline());continue}a.indent(p&&D3(t)),i(t),!t.isObjectMethod()&&D1(t)&&!La(t)&&(a.print.newline(p),a.print.linebreak(D2(t)))}o?function({parentPath:e}){let{elements:t}=e.parentPath.node,[r]=t;return D9(r)}(e)&&(s.dec(),s(),s.inc()):(s.dec(),a.indent(p)),i("}"),a.print(c,")"),a.indent.dec(f)};let La=e=>{let t=e.getNextSibling();return!!D5(t)&&D4(t)},Ls=e=>{let{parentPath:t}=e;return!(!t.isCallExpression()||DQ(e))&&e!==t.get("arguments").at(-1)};function Lo(e){let{length:t}=e.get("properties");return!!(!t||Ls(e)||DZ(e)||D0(e))||!DQ(e)&&!Lt(e)}D$.isOneLine=Lo;var Lu={},Ll={};let{types:Lc}=r5,{isStringLiteral:Lp,isTemplateLiteral:Ld,isBinaryExpression:Lf}=Lc,Lh=e=>!!Lp(e)||Ld(e);Ll.isConcatenation=e=>{let{parentPath:t}=e,{operator:r}=e.node;if("+"!==r||e.node.loc?.start.line===e.node.loc?.end.line)return!1;let n=e.get("left"),i=e.get("right");return!!(Lh(n)&&Lh(i)&&Lf(t))||Lf(n)&&Lh(i)},Ll.concatenate=(e,{print:t,indent:r})=>{e.parentPath.isBinaryExpression()||(r.inc(),t.breakline()),t("__left"),t.space(),t("+"),t.breakline(),t("__right"),e.parentPath.isBinaryExpression()||r.dec()};let{isConcatenation:Lm}=Ll,{isOneLine:Ly}=D$,{printKey:Lv}=OB;Lu.ObjectProperty=(e,t,r)=>{let{trailingComma:n}=r,{shorthand:i}=e.node,{maybe:a,traverse:s,write:o}=t,u=e.get("value"),l=e.parentPath.get("properties"),c=e===l.at(-1),p=!Ly(e.parentPath);Lv(e,t),i||(o(":"),a.write.space(!Lm(u)),s(u)),p?a.write(!c||n,","):!c&&l.length&&o(", ")};var Lg={},Lb={};Lb.wrongShorthand=({computed:e,isAssign:t,keyPath:r,valuePath:n})=>!e&&!t&&r.node.name!==n.node.name;var LS={};LS.moreThenMaxPropertiesInOneLine=(e,{maxPropertiesInOneLine:t})=>{let{parentPath:r}=e;return!r.isObjectProperty()&&t>=e.node.properties.length};var Lx={};function LT(e,t){let{typeAnnotation:r}=e.node,{write:n,traverse:i}=t;r&&(n(":"),n.space(),i(e.get("typeAnnotation")))}Lx.maybePrintTypeAnnotation=LT,Lx.maybeTypeAnnotation=e=>(t,r,n)=>{e(t,r,n),LT(t,r)};var LE={};let{types:L_}=r5,{isAssignmentPattern:LP,isIdentifier:LA}=L_;LE.moreThenMaxPropertiesLengthInOneLine=(e,{maxPropertiesLengthInOneLine:t})=>{let{properties:r}=e.node;for(let{key:e,value:n}of r){if(LP(n)){let{left:e,right:r}=n;if(!LA(e)||!LA(r))continue;if(e.name.length+r.name.length>=t)return!0}if(!LA(e))continue;let{name:r}=e;if(r.length>=t)return!0}return!1};let{types:Lk}=r5,{wrongShorthand:LC}=Lb,{isForOf:Lw,isCoupleLines:LI,exists:LN}=Nb,{moreThenMaxPropertiesInOneLine:LO}=LS,{maybeTypeAnnotation:LD}=Lx,{moreThenMaxPropertiesLengthInOneLine:LL}=LE,{printKey:LM}=OB,LF=e=>e.parentPath.isFunction(),{isIdentifier:LB,isObjectPattern:LR,isAssignmentPattern:Lj,isVariableDeclarator:LU}=Lk,LV=({path:e,valuePath:t,property:r})=>!(!LI(t)||LN(r.getPrevSibling())||e.parentPath.isVariableDeclarator()&&!LW(e.get("properties")))&&!e.parentPath.isObjectProperty();function LW(e){for(let t of e){let{value:e}=t.node;if(Lj(e))return!0}return!1}function Lq(e){for(let t of e)if(LR(t.node.value))return!0;return!1}Lg.ObjectPattern={print:LD((e,t,r)=>{let n=!e.parentPath.isArrayPattern(),{maxPropertiesInOneLine:i,maxPropertiesLengthInOneLine:a}=r,{print:s,maybe:o,indent:u}=t;o.indent.inc(n),s("{");let l=e.get("properties"),c=l.length-1,p=function(e,t){let{parentPath:r}=e,n=e.get("properties"),i=n.length-1,{maxPropertiesInOneLine:a,maxPropertiesLengthInOneLine:s}=t,o=LL(e,{maxPropertiesLengthInOneLine:s}),u=LO(e,{maxPropertiesInOneLine:a}),l=function({parentPath:e}){return!!e.isFunction()||!!e.isAssignmentPattern()&&e.parentPath.isFunction()}(e);return!!Lq(n)||!(u&&!o&&LU(e.parentPath))&&(!!(!l&&i&&!Lw(e)&&function(e){for(let t of e){let{value:e}=t.node;if(LB(e)&&e.name.length>4)return!0}return!1}(n)||!l&&LW(n))||r.isObjectProperty())}(e,{maxPropertiesInOneLine:i,maxPropertiesLengthInOneLine:a}),d=c&&Lq(l),f=!LF(e);for(let[r,n]of(o.print.newline(p&&f),l.entries())){if(n.isRestElement()){let e=p||d;o.indent(e),s(n),o.print.newline(e);continue}let i=n.get("value"),a=n.get("key"),u=i.isAssignmentPattern(),{shorthand:l,computed:h}=n.node,m=LV({path:e,property:n,valuePath:i});if(o.indent(p&&f),o.print.breakline(m),LM(n,t),!l||LC({computed:h,isAssign:u,keyPath:a,valuePath:i})?(s(":"),s.space(),s(i)):u&&(s(i),o.print(m,","),o.print.newline(m)),p||d){s(","),s.newline();continue}r<c&&(s(","),s.space())}u.dec(),o.indent(p),o.indent.inc(!n),s("}")})};var LJ={};let{exists:LX}=Nb,{maybePrintTypeAnnotation:LG}=Lx,{maybeDecorators:LK}=OM,{printKey:LH}=OB,{printKind:Lz}=OU,L$=LK((e,t,r,{accessor:n}={})=>{let{node:i}=e,{accessibility:a,declare:s,optional:o}=i,{print:u,maybe:l}=t;l.print(n,"accessor ");let c=e.get("value");l.print(s,"declare "),l.print(a,`${a} `),l.print(i.static,"static "),l.print(i.readonly,"readonly "),Lz(e,t),LH(e,t),l.print(o,"?"),LG(e,t),LX(c)&&(u.space(),u("="),u.space(),u("__value")),u(";"),u.newline()});LJ.ClassProperty=L$,LJ.ClassPrivateProperty=L$,LJ.PrivateName=(e,{print:t})=>{t("#"),t("__id")},LJ.ClassAccessorProperty=(e,t,r)=>{L$(e,t,r,{accessor:!0})};var LY={},LQ={};let{isParens:LZ}=Om;function L0(e,t,r,{brace:n}){let{parentPath:i}=e,{type:a}=i,{roundBraces:s}=r,{write:o}=t;if("ObjectPattern"===e.node.left.type||"LogicalExpression"===a||"BinaryExpression"===a||"UnaryExpression"===a){o(n);return}s.assign&&LZ(e)&&o(n)}LQ.maybePrintLeftBrace=(e,t,r)=>{L0(e,t,r,{brace:"("})},LQ.maybePrintRightBrace=(e,t,r)=>{L0(e,t,r,{brace:")"})};let{types:L1}=r5,{maybePrintLeftBrace:L2,maybePrintRightBrace:L3}=LQ,{isExpressionStatement:L4,isAssignmentExpression:L5}=L1;LY.AssignmentExpression=(e,t,r)=>{let{print:n}=t,{operator:i}=e.node;L2(e,t,r),n("__left"),n.space(),n(i),function(e){let{right:t}=e.node;return!!e.parentPath.find(L4)&&L5(t)}(e)?n.breakline():n.space(),n("__right"),L3(e,t,r)};var L8={},L6={},L9={},L7={};let{types:Me}=r5,{isIdentifier:Mt,isMemberExpression:Mr}=Me,Mn=e=>"string"==typeof e;function Mi(e,t){let r=Ma(t);return e.scope.getAllBindings()[r]}L7.getBinding=Mi,L7.getBindingPath=(e,t)=>Mi(e,t)?.path;let Ma=e=>Mn(e)?e:Mt(e)?e.name:Mr(e)?Ma(e.object):"";var Ms={};let{types:Mo}=r5,{isOptionalMemberExpression:Mu,isMemberExpression:Ml,isIdentifier:Mc,isLiteral:Mp}=Mo;Ms.isSimple=e=>!!(Mp(e)||Mc(e)||Ml(e))||Mu(e);var Md={};let{types:Mf}=r5,{isArrayExpression:Mh,isLiteral:Mm,isIdentifier:My,isMemberExpression:Mv,isTemplateElement:Mg,isRegExpLiteral:Mb,isClassMethod:MS,isTemplateLiteral:Mx,isJSXText:MT,isJSXAttribute:ME,isJSXIdentifier:M_,isTSTypeReference:MP,isTSTypeParameter:MA}=Mf;Md.extract=function e(t){if(My(t=t.node||t)||M_(t))return t.name;if(Mb(t))return t.pattern;if(Mx(t))return e(t.quasis[0]);if(Mm(t))return t.value;if(Mg(t))return t.value.raw;if(Mv(t))return`${e(t.object)}.${e(t.property)}`;if(Mh(t))return function t(r,n=[]){for(let i of r.elements){if(Mh(i)){t(i,n);continue}n.push(e(i))}return n.join(",")}(t);if(MT(t))return t.value;if(ME(t))return t.name.name;if(MS(t))return e(t.key);if(MP(t))return e(t.typeName);if(MA(t))return e(t.name);throw Error(`'operator.extract(node)' understands only Literals, Identifiers, TemplateLiteral, TemplateElement, RegExpLiteral, ArrayExpression, MemberExpression, JSXIdentifier, JSXAttribute, JSXText, TSTypeParameter and TSTypeReference🤷, found: ${t.type}`)};var Mk={};let{getBindingPath:MC}=L7,{extract:Mw}=Md;function MI(e){let{parentPath:t}=e;return!!(e.isIdentifier()||e.isLiteral())&&!!t.isObjectProperty({computed:!1})&&!function(e){let[t]=Object.keys(e.scope.references),r=e.scope.bindings[t];if(!r)return!1;let{referencePaths:n}=r;for(let e of n)if(e.parentPath.parentPath?.isAssignmentExpression())return!0;return!1}(e)}Mk.compute=function e(t){let{node:r}=t;if(!t.evaluate)throw Error(`☝️ Looks like argument of 'compute' is not 'path'`);let{confident:n,value:i}=t.evaluate();if(n)return[!0,i];if(t.isBinaryExpression())return function(t){let{operator:r}=t.node,n=t.get("left"),i=t.get("right"),[a,s]=e(n);if(!a)return[!1];let[o,u]=e(i);if(!o)return[!1];let l=`return a ${r} b`;return[!0,(MN[r]||MN.init(r,Function("a","op","b",l)))(s,r,u)]}(t);if(MI(t))return[!0,Mw(r)];let a=function(e){let{node:t}=e;return e.isIdentifier()?MC(e,Mw(t)):!function(e){let t=e.get("object");return!!e.isMemberExpression()&&!e.node.computed&&t.isIdentifier()}(e)?null:MC(e,Mw(t.object))}(t);if(!a)return[!1];let s=a.get("init");return s.isObjectExpression()&&t.isMemberExpression()?function(t,r){let n=Mw(t.node.property);for(let t of r.get("properties")){let r=t.get("key");if(!MI(r))break;if(Mw(r)!==n)continue;let[i,a]=e(t.get("value"));if(!i)break;return[!0,a]}return[!1]}(t,s):[!1]};let MN={init:(e,t)=>MN[e]=t};var MO={};let{entries:MD}=Object,ML=({node:e})=>1===e.declarations.length;MO.remove=e=>{let t=e.scope.getProgramParent().block,r=MF(e);if(e.scope.block!==t||r.node||(t.comments=MM(e)),!e.parentPath.isArrayPattern()){e.remove();return}let n=e.parentPath.get("elements"),i=n.length-1;for(let[t,r]of MD(n))if(r===e){if(!Number(t)&&i){e.parentPath.node.elements[t]=null;break}e.remove();break}};let MM=e=>{let{comments:t}=e.node;if(t?.length)return t;let{parentPath:r}=e;return e.isVariableDeclarator()&&ML(r)?r.node.comments:[]},MF=e=>e.isVariableDeclarator()?e.parentPath.getPrevSibling():e.getPrevSibling();var MB={};MB.getExportDefault=e=>{for(let t of e.scope.getProgramParent().path.get("body"))if(t.isExportDefaultDeclaration())return t;return null};var MR={},Mj={};Mj.renameProperty=(e,t,r)=>{e.traverse({ObjectProperty(e){let{node:n}=e,{key:i,value:a}=n;i.name===a.name&&i.name===t&&(i.name=r,a.name=r,n.shorthand=!0,e.stop())}})};let{renameProperty:MU}=Mj;MR.rename=(e,t,r)=>{let n=e.scope.getAllBindings()[t];if(!n)return;let i=n.path;MU(i,t,r),i.scope.rename(t,r)};var MV={};MV.setLiteralValue=(e,t)=>{let r=e.node||e,{raw:n,extra:i,value:a}=r;if(r.value=a.replace(a,t),'""'===n){r.raw=n.replace(n,`"${t}"`);return}if(n){r.raw="'"+String.raw`${t}`+"'";return}i&&(r.raw=i.raw.replace(a,t),r.extra.rawValue=a)};var MW={};MW.getPathAfterRequires=e=>{let t;for(t of e)if(!function(e){if(!e.isVariableDeclaration())return!1;let t=e.get("declarations.0.init");return!!t.isCallExpression()&&t.get("callee").isIdentifier({name:"require"})}(t))break;return t};var Mq={},MJ={};let{traverse:MX,types:MG}=r5,{extract:MK}=Md,{isObjectExpression:MH,isCallExpression:Mz}=MG,M$=e=>e.node||e;MJ.traverseProperties=(e,t,{firstLevel:r=!1}={})=>{let n=[],i=MH(e)?Mz(e.parentPath)?e.parentPath.node:{type:"ExpressionStatement",expression:M$(e)}:M$(e),a=MY({name:t,collector:n});return r?a(e):MX(i,{noScope:!0,ObjectExpression:a}),n};let MY=({name:e,collector:t})=>r=>{for(let n of r.get("properties")){if(n.isSpreadElement())continue;let r=n.get("key");r.isConditionalExpression()||e!==MK(r)||t.push(n)}},{isObjectExpression:MQ,isObjectPattern:MZ}=r5.types,{extract:M0}=Md,{traverseProperties:M1}=MJ;Mq.traverseProperties=M1,Mq.getProperties=(e,t)=>{let r={};for(let n of e.get("properties")){if(n.isSpreadElement())continue;let e=M0(n.get("key"));if(t.includes(e)){r[`${e}Path`]=n;continue}}return r},Mq.getProperty=(e,t)=>{if(!MQ(e)&&!MZ(e))throw Error(`☝️Looks like path is not 'ObjectExpression | ObjectPattern', but: '${e.type}' for path: ${e}`);for(let r of e.get("properties"))if(M0(r.get("key"))===t)return r;return null};var M2={};let M3=e=>"string"==typeof e;M2.getLiteralRaw=e=>{let{raw:t,extra:r,value:n}=e.node||e;return M3(t)?t:r&&M3(r.raw)?r.raw:`'${n.includes("\\'")?n:n.replaceAll("'","\\'")}'`};var M4={},M5={},M8={};let{types:M6}=r5,{isStatement:M9,isBlockStatement:M7,BlockStatement:Fe,ExpressionStatement:Ft}=M6;M8.maybeBody=(e,t)=>{let{parentPath:r}=e;return t&&!M9(t)||M7(t)||!r?.isArrowFunctionExpression?.()?{currentPath:e}:(r.node.body=Fe([Ft(e.node)]),{currentPath:r.get("body.body.0")})};var Fr={};let{types:Fn}=r5,{isExpression:Fi,ExpressionStatement:Fa,toStatement:Fs}=Fn;Fr.toExpression=e=>{let{type:t}=e;return["ObjectProperty"].includes(t)?e:Fi(e)?Fa(e):Fs(e)};let{maybeBody:Fo}=M8,{toExpression:Fu}=Fr,{isSequenceExpression:Fl}=r5.types;M5.replaceWithMultiple=(e,t)=>{let r=e.parentPath.node.comments,{comments:n,leadingComments:i}=e.node,a=t.filter(Boolean).map(Fu),{currentPath:s}=Fo(e),o=s.replaceWithMultiple(a);return o.length&&(i||Fl(e)||delete o[0].node.leadingComments,o[0].node.comments=n||r),o};var Fc={};let{maybeBody:Fp}=M8,{assign:Fd}=Object;Fc.replaceWith=(e,t)=>{e?.parentPath?.isExpressionStatement()&&!e.parentPath.isProgram()&&(e=e.parentPath);let{comments:r,loc:n}=e.node,{currentPath:i}=Fp(e,t);return i.replaceWith(t),Fd(i.node,{comments:r,loc:n}),i};let{replaceWithMultiple:Ff}=M5,{replaceWith:Fh}=Fc,{toExpression:Fm}=Fr;M4.replaceWith=Fh,M4.replaceWithMultiple=Ff,M4.toExpression=Fm;let{types:Fy}=r5,{getBinding:Fv,getBindingPath:Fg}=L7,{isSimple:Fb}=Ms,{extract:FS}=Md,{compute:Fx}=Mk,{remove:FT}=MO,{getExportDefault:FE}=MB,{rename:F_}=MR,{renameProperty:FP}=Mj,{setLiteralValue:FA}=MV,{getPathAfterRequires:Fk}=MW,{getProperty:FC,getProperties:Fw,traverseProperties:FI}=Mq,{getLiteralRaw:FN}=M2,{replaceWith:FO,replaceWithMultiple:FD,toExpression:FL}=M4,{ExpressionStatement:FM,matchesPattern:FF,isImportDeclaration:FB,isExportDeclaration:FR,isStatement:Fj}=Fy;L9.getBinding=Fv,L9.getBindingPath=Fg,L9.getLiteralRaw=FN,L9.extract=FS,L9.compute=Fx,L9.replaceWith=FO,L9.getExportDefault=FE,L9.toExpression=FL,L9.isSimple=Fb,L9.rename=F_,L9.renameProperty=FP,L9.setLiteralValue=FA,L9.getProperty=FC,L9.getProperties=Fw,L9.traverseProperties=FI,L9.replaceWithMultiple=FD,L9.insertBefore=(e,t)=>{e.insertBefore(t)},L9.insertAfter=(e,t)=>{let{comments:r}=e.node;e.node.trailingComments?.length&&e.getNextSibling()?.node?.leadingComments&&delete e.node.trailingComments,t.trailingComments&&delete t.trailingComments,Fj(e)&&!Fj(t)?e.insertAfter(FM(t)):e.insertAfter(t),e.node.comments=r},L9.isModuleExports=e=>FF(e.node||e,"module.exports");let FU=e=>t=>t.scope.bindings[e];L9.findBinding=(e,t)=>{let r=e.findParent(FU(t));return r?r.scope.bindings[t]:null},L9.remove=FT,L9.getPathAfterRequires=Fk,L9.getPathAfterImports=e=>{let t=e.length,r=0;for(;r<t-1&&FB(e[r]);)++r;return e[r]},L9.isESM=e=>{for(let t of e.scope.getProgramParent().path.node.body)if(FB(t)||FR(t))return!0;return!1};let{isSimple:FV}=L9,{types:FW}=r5,{isStringAndMember:Fq,isStringAndIdentifier:FJ,isIdentifierAndString:FX,isCoupleLines:FG,isStringAndArray:FK,isIdentifierAndIdentifier:FH,isSimpleAndNotEmptyObject:Fz}=Nb,{isObjectExpression:F$,isArrayExpression:FY,isObjectProperty:FQ,isCallExpression:FZ,isAwaitExpression:F0,isBooleanLiteral:F1,isNullLiteral:F2,isStringLiteral:F3,isSpreadElement:F4}=FW,{round:F5}=Math,F8=e=>{if(e.length>1)return!1;let[t]=e;return F4(t)},F6=([e,t])=>{if(FV(e))return FZ(t)||F0(t)},F9=([e,t])=>F1(e)&&FV(t),F7=([e,t])=>F1(e)&&F$(t),Be=([e,t])=>F2(e)&&FV(t),Bt=([e,t])=>FV(e)&&F$(t),Br=e=>!!e.getNextSibling().isArrayExpression()||e.getPrevSibling().isArrayExpression();L6.isMultiLine=(e,{elements:t,maxElementsInOneLine:r})=>!!(t.length>3&&!F$(t[0])||Fz(t))||!(function(e){let t=e.get("elements");if(1!==t.length)return!1;let[r]=t;return!!r.isIdentifier()&&r.node.name.length<15||(!r.isStringLiteral()||!(r.node.value.length>10))&&(!!(!r.isIdentifier()&&FV(r))||!r.isCallExpression()&&r.isMemberExpression())}(e)||F8(t)||2===t.length&&FH(t)||function(e){let{parentPath:t}=e;return!!(t.isCallExpression()&&t.parentPath.isFunction())&&e.node.elements.length<4}(e)||Bo(e)||e.parentPath.isForOfStatement()||F9(t)||Be(t)||F6(t)||Ba(e,r)||function(e){let[t,r]=e;if(e.length>2||!t?.isStringLiteral()||!r?.isStringLiteral())return!1;let n=t.node.value.length;return F5(r.node.value.length/n)>2}(t)||Bs(e)||FK(t)&&t.length<3||Fq(t)||FJ(t)||FX(t)||Bt(t)||Bi(t)&&e.parentPath.isArrayExpression()&&FY(e.parentPath.node.elements[0])||Br(e))&&!!(function(e){if(e.get("elements").length<2)return!1;for(let t of e.get("elements"))if(t.isStringLiteral()&&t.node.value.length>4)return!0;return!1}(e)||FG(e)||!function(e){for(let t of e)if(t.isNumericLiteral())return!0;return!1}(t)&&!Bn(e)&&function({parentPath:e}){return!e.isCallExpression()}(e)&&!e.find(FQ));let Bn=({parentPath:e})=>e.isForOfStatement(),Bi=([e,t])=>F3(e)&&F3(t),Ba=(e,t)=>{let{node:r,parentPath:n}=e,{elements:i}=r,{length:a}=i,[s,o]=i;return!!(n.isCallExpression()&&F3(s)&&F3(o))&&a<t},Bs=e=>{let{node:t,parentPath:r}=e,{elements:n}=t,{length:i}=n,[a,s]=n;return!!(!(i>2)&&r.isObjectProperty()&&F3(a)&&F3(s))&&!FG(e)};function Bo(e){let t=e.get("elements");return!!t.length&&(!!F7(t)||!(e.parentPath.isCallExpression()&&e.parentPath.parentPath.isForOfStatement())&&(!!t[0].isObjectExpression()||!F4(t[1])&&Bu(t)))}L6.isIncreaseIndent=Bo;let Bu=e=>{let t=e.at(0),r=e.at(-1);return F3(t)&&F$(r)};L6.isCurrentNewLine=e=>!!e.isSpreadElement()||!e.isObjectExpression();var Bl={};let{types:Bc}=r5,{isIndented:Bp}=Nb,{isStringLiteral:Bd,isArrayExpression:Bf}=Bc,Bh=e=>e.parentPath.isArrayExpression();function Bm(e){if(!e.isArrayExpression()||!e.parentPath.isArrayExpression())return!1;let t=e.parentPath.node.elements,r=t.filter(Bf).length,n=!Bf(t.at(-1));return(!r||!n)&&t.length<=3}Bl.isInsideArray=Bh,Bl.isArrayIndented=e=>{let t=e.get("elements");if(Bm(e))return!1;let[r]=t;return!By(t)||!Bh(e)&&Bp(r)},Bl.isArrayInsideArray=Bm;let By=([e,t])=>!!(Bd(e)&&Bd(t))&&e.node.value.length>20;var Bv={};let{isNextObject:Bg,isPrevObject:Bb}=Nb,BS=["ArrayExpression","ObjectExpression","SpreadElement","CallExpression","Identifier"];Bv.isObjectAfterSimple=e=>{let{type:t}=e;return!(!Bg(e)||Bb(e))&&BS.includes(t)};let{types:Bx}=r5,{isCoupleLines:BT,isStringAndIdentifier:BE,isIdentifierAndIdentifier:B_,isStringAndArray:BP,isSimpleAndNotEmptyObject:BA,isNextObject:Bk}=Nb,{isIncreaseIndent:BC,isCurrentNewLine:Bw,isMultiLine:BI}=L6,{isInsideArray:BN,isArrayInsideArray:BO,isArrayIndented:BD}=Bl,{isObjectAfterSimple:BL}=Bv,{isObjectExpression:BM,isSpreadElement:BF,isStringLiteral:BB,isIdentifier:BR,isFunction:Bj}=Bx,BU=e=>BB(e.getNextSibling()),BV=e=>BB(e.getPrevSibling()),BW=e=>BU(e)||BV(e),Bq=e=>{if(!e.isObjectExpression())return!1;let t=e.getPrevSibling();if(!t.isSpreadElement())return!1;let r=t.get("argument");if(r.isCallExpression()){let[e]=r.get("arguments");if(Bj(e))return!1}return!t.getPrevSibling().isObjectExpression()&&t.get("argument").isCallExpression()},BJ=e=>{let t=e.getNextSibling();return!!t.isSpreadElement()||t.isIdentifier()},BX=e=>{let t=e.getNextSibling();return!(t.isSpreadElement()||t.isIdentifier())||t.getNextSibling().isObjectExpression()},BG=({parentPath:e})=>1===e.node.elements.length;L8.ArrayExpression={beforeIf(e){let{parentPath:t}=e,{elements:r}=e.node;return!(!t.isArrayExpression()||BT(t))&&(!!(BE(r)&&BG(e))||B_(r))},before(e,{print:t}){t.breakline()},print(e,{print:t,maybe:r},n){let{maxElementsInOneLine:i,trailingComma:a}=n,s=e.get("elements"),o=!BC(e);t("[");let u=BD(e);u&&r.indent.inc(o);let l=BI(e,{elements:s,maxElementsInOneLine:i}),c=s.length-1;for(let[e,n]of(r.print.newline(l&&s.length),s.entries())){let i=l&&Bw(n);(function(e){if(!BF(e)&&!BR(e))return;let t=e.getPrevSibling();return!e.getNextSibling().isObjectExpression()&&t.isObjectExpression()})(n)&&t.newline(),r.indent(i),t(n),(e<c||a)&&r.print(i,","),r.print.newline((i||Bq(n))&&!Bk(n)),r.print.space(i&&BL(n)),!i&&e<c&&(t(","),(BX(n)||!(n.isObjectExpression()&&BJ(n)))&&t.space())}u&&r.indent.dec(o);let p=e.parentPath.get("elements");if(BN(e)&&BP(p)){let t=2===p.length,n=!BW(e)||t;r.indent.dec(n),r.indent(s.length&&l),r.indent.inc(n)}else BO(e)||BM(s.at(-1))||r.indent(s.length&&l);BA(s)&&!BF(s.at(-1))&&(t(","),t.breakline()),t("]")},afterIf(e){let{parentPath:t}=e,{elements:r}=e.node;return!(!t.isArrayExpression()||BT(t))&&(!!(BE(r)&&BG(e))||B_(r))},after(e,{print:t,indent:r}){r.dec(),t.breakline(),r.inc()}};var BK={};let{maybeTypeAnnotation:BH}=Lx,Bz=({parentPath:e})=>e.parentPath.parentPath?.isForOfStatement();BK.ArrayPattern=BH((e,{indent:t,maybe:r,print:n},i)=>{let{maxElementsInOneLine:a}=i;n("[");let s=e.get("elements");t.inc();let o=!Bz(e)&&s.length>a,u=s.length-1;for(let[e,t]of(r.print(o&&s.length,"\n"),s.entries()))r.indent(o),n(t),o?n(",\n"):e<u&&(n(","),n.space());t.dec(),r.indent(s.length&&o),n("]")});var B$={};let BY=e=>e.parentPath.isFunction();B$.AssignmentPattern={print(e,{print:t,maybe:r}){r.print(function(e){let{parentPath:t}=e;return!!(t.isObjectProperty()&&!t.node.shorthand||BY(e)||t.isTSParameterProperty())||t.isArrayPattern()}(e),"__left"),t.space(),t("="),t.space(),t("__right")}};var BQ={};let{maybeTypeAnnotation:BZ}=Lx;BQ.RestElement=BZ((e,{print:t})=>{t("..."),t("__argument")});var B0={};let{hasTrailingComment:B1}=Nb;B0.SpreadElement=(e,t)=>{let{print:r}=t;r("..."),r("__argument"),B1(e)&&r(",")};var B2={},B3={};function B4(e,t,r,{brace:n}){let{parentPath:i}=e,{type:a}=i,{roundBraces:s}=r,{write:o}=t;if("ArrowFunctionExpression"===a||"ConditionalExpression"===a&&e!==i.get("test")||"LogicalExpression"===a){o(n);return}s.sequence&&o(n)}B3.maybeWriteLeftBrace=(e,t,r)=>{B4(e,t,r,{brace:"("})},B3.maybeWriteRightBrace=(e,t,r)=>{B4(e,t,r,{brace:")"})};let{maybeWriteLeftBrace:B5,maybeWriteRightBrace:B8}=B3;B2.SequenceExpression=(e,t,r)=>{let{maybe:n,traverse:i}=t,a=e.get("expressions"),s=a.length-1;for(let[o,u]of(B5(e,t,r),a.entries()))i(u),n.write(o<s,","),n.write.space(o<s);B8(e,t,r)};var B6={};B6.TaggedTemplateExpression=(e,{print:t})=>{t("__tag"),t("__quasi")};var B9={},B7={};B7.maybeSpace=(e,{print:t})=>{let{right:r}=e.node;return"UnaryExpression"===r.type&&"+"===r.operator?t(" "):t.space()};let{concatenate:Re,isConcatenation:Rt}=Ll,{maybeSpace:Rr}=B7,{maybeParens:Rn}=Om;B9.BinaryExpression=Rn((e,{print:t,indent:r,maybe:n})=>{let{operator:i}=e.node;if("in"===i||"instanceof"===i){t("__left"),t(" "),t(i),t(" "),t("__right");return}if(Rt(e))return Re(e,{print:t,indent:r,maybe:n});t("__left"),t.space(),t(e.node.operator),Rr(e,{print:t}),t("__right")});var Ri={},Ra={};let{types:Rs}=r5,{isLogicalExpression:Ro,isReturnStatement:Ru,isVariableDeclarator:Rl}=Rs;Ra.isRootOk=e=>Ru(e)||Rl(e),Ra.chain=e=>{let[t]=function e(t){let r=0;do{++r;let n=t.get("right");Ro(n)&&(r+=e(n)[0]);let{operator:i}=(t=t.get("left")).node;if("||"!==i&&"&&"!==i)break}while(t.isLogicalExpression());return[r]}(e),[r,n]=function(e){let t=0;do++t,e=e.parentPath;while(e.isLogicalExpression());return[t,{type:e.type}]}(e);return[n,t+r,t,r]};let{maybeParens:Rc}=Om,{chain:Rp,isRootOk:Rd}=Ra;Ri.LogicalExpression=Rc({condition:e=>!!e.parentPath.isUnaryExpression()||e.parentPath.isAwaitExpression(),print(e,{print:t,maybe:r},n){t("__left");let i=function(e,t){let[r,n]=Rp(e);if(!Rd(r)||n<=t.maxLogicalsInOneLine)return!1;let{operator:i}=e.node;return"||"===i||"&&"===i}(e,n);r.indent.inc(i),i?t.breakline():t.space(),r.indent.dec(i),t(e.node.operator),t.space(),t("__right")}});var Rf={};let{maybeParens:Rh}=Om;Rf.ConditionalExpression=Rh((e,{print:t})=>{t("__test"),t.space(),t("?"),t.space(),t("__consequent"),t.space(),t(":"),t.space(),t("__alternate")});var Rm={};Rm.StaticBlock=(e,{print:t,traverse:r})=>{for(let n of(t("static "),t("{"),t.breakline(),e.get("body")))r(n);t.indent(),t("}"),t.newline()};var Ry={};let{ObjectExpression:Rv}=D$;Ry.RecordExpression=(e,t,r)=>{let{write:n}=t;n("#"),Rv(e,t,r)};var Rg={},Rb={};let RS=e=>"string"==typeof e,Rx=e=>()=>e,{keys:RT}=Object,{satisfy:RE}=Nb,R_=e=>RE(e?.()||[]),RP=(e,t,r)=>{!function(e,t){if(!RS(e))throw Error("template should be a string!");if("object"!=typeof t)throw Error("values should be an object!")}(e,t);let n=e;for(let i of r?e.match(/{{(.*?)}}/g):RT(t)){let[e,a]=function(e,t,r){if(!r)return[`{{ ${e} }}`,t[e]];let n=e.replaceAll("{{","").replaceAll("}}","").replaceAll(" ",""),i=t[n]||"";if(!n.includes("|"))return[e,i];let[a,s]=n.split("|"),o=r[s],u=t[a];return o?[e,o(u)]:[e,u]}(i,t,r),s=Rx(a);for(;n.includes(e);)n=n.replace(e,s)}return n.includes("{{")&&(n=n.replace(/{{.*?}}/g,"")),n},{types:RA}=r5,Rk=e=>{if(!e.afterSatisfy&&!e.beforeSatisfy&&!e.satisfy)return e;let{satisfy:t,afterSatisfy:r=t,beforeSatisfy:n=t}=e;return{afterIf:R_(r),beforeIf:R_(n),...e}},{isProgram:RC,isFile:Rw,File:RI,ExpressionStatement:RN,Program:RO,isStatement:RD}=RA,RL=e=>"function"==typeof e;Rb.maybeThrow=(e,t,r)=>{if(e)throw Error(RP(r,{path:t,type:t.type}))};let RM=e=>RD(e)?e:RN(e),RF=e=>RC(e)?e:RO([RM(e)]);Rb.maybeFile=e=>Rw(e)?e:RI(RF(e)),Rb.maybeVisitor=(e,t,r,n)=>RL(e)?e(t,r,n):function(e,t,r,n){let{print:i,split:a,condition:s,before:o=a,beforeIf:u=s,after:l=a,afterIf:c=s}=Rk(e);u?.(t,r)&&o(t,r),i(t,r,n),c?.(t,r)&&l(t,r)}(e,t,r,n);let{ArrayExpression:RB}=L8,{maybeVisitor:RR}=Rb;Rg.TupleExpression=(e,t,r)=>{let{write:n}=t;n("#"),RR(RB,e,t,r)};var Rj={};function RU(e,t,r,{source:n="source"}={}){let{print:i,maybe:a}=t,{options:s}=e.node;i("import("),i(`__${n}`),a.print(s,","),a.print.space(s),i("__options"),i(")")}Rj.ImportExpression=RU,Rj.createImportExpression=RU;let{ClassExpression:RV,ClassDeclaration:RW}=D_,{CallExpression:Rq,OptionalCallExpression:RJ}=DB,{NewExpression:RX}=Dq,{ObjectExpression:RG}=D$,{ObjectProperty:RK}=Lu,{ObjectPattern:RH}=Lg,{ClassProperty:Rz,ClassAccessorProperty:R$,ClassPrivateProperty:RY,PrivateName:RQ}=LJ,{AssignmentExpression:RZ}=LY,{ArrayExpression:R0}=L8,{ArrayPattern:R1}=BK,{AssignmentPattern:R2}=B$,{RestElement:R3}=BQ,{SpreadElement:R4}=B0,{SequenceExpression:R5}=B2,{TaggedTemplateExpression:R8}=B6,{BinaryExpression:R6}=B9,{LogicalExpression:R9}=Ri,{ConditionalExpression:R7}=Rf,{StaticBlock:je}=Rm,{RecordExpression:jt}=Ry,{TupleExpression:jr}=Rg,{ImportExpression:jn}=Rj;var ji={...Nv,...De,...Do,ArrayPattern:R1,ArrayExpression:R0,AssignmentExpression:RZ,AssignmentPattern:R2,BinaryExpression:R6,CallExpression:Rq,ClassExpression:RV,ClassProperty:Rz,ClassAccessorProperty:R$,ClassPrivateProperty:RY,ClassDeclaration:RW,ConditionalExpression:R7,NewExpression:RX,LogicalExpression:R9,OptionalCallExpression:RJ,ObjectExpression:RG,ObjectProperty:RK,ObjectPattern:RH,PrivateName:RQ,RestElement:R3,ImportExpression:jn,SpreadElement:R4,SequenceExpression:R5,StaticBlock:je,TaggedTemplateExpression:R8,ThisExpression(e,{write:t}){t("this")},RecordExpression:jt,TupleExpression:jr},ja={};let{isNext:js,isLast:jo,isParentBlock:ju,isParentLast:jl,isNewlineBetweenSiblings:jc,satisfy:jp,noTrailingComment:jd,hasTrailingComment:jf,isCoupleLines:jh,isInsideLabel:jm}=Nb,jy=e=>!!e.parentPath.isIfStatement()&&e===e.parentPath.get("consequent")&&!!e.parentPath.node.alternate,jv=jp([function(e){return!(jo(e)||jl(e))},ju,js,function(e){return e.findParent(js)}]),jg=jp([jc,function(e){return e.parentPath.get("body")===e},function(e){if(!e.get("expression").isStringLiteral())return!1;let{value:t}=e.node.expression;return"use strict"===t}]);ja.ExpressionStatement={print(e,{print:t,maybe:r,store:n}){r.indent(!jm(e)),t("__expression"),t(";"),js(e)&&jg(e)&&(t.newline(),r.indent(js(e)&&jd(e)),n(!0))},afterIf:e=>!!(jv(e)||jf(e)&&jo(e))||jy(e),after(e,{print:t,maybe:r,store:n}){jf(e)&&jo(e)&&jh(e)&&t.breakline(),(!jf(e)||jh(e))&&!function({parentPath:e}){if(!e.isIfStatement())return!1;let t=e.parentPath;if(!t.isIfStatement())return!1;let r=t.parentPath;return!!r.isIfStatement()&&jo(r)}(e)&&(t.newline(),r.markAfter(n(),e))}};var jb={},jS={};jS.maybeSpaceAfterKeyword=(e,{write:t})=>{let{declarations:r}=e.node,{id:n}=r[0];if("ArrayPattern"===n.type||"ObjectPattern"===n.type)return t.space();t(" ")};let{types:jx}=r5,{isNext:jT,isCoupleLines:jE,isNewlineBetweenSiblings:j_,exists:jP,noTrailingComment:jA}=Nb,{hasPrevNewline:jk}=NW,{maybeSpaceAfterKeyword:jC}=jS,{isConcatenation:jw}=Ll,{parseLeadingComments:jI}=NU,{maybeDeclare:jN}=DP,{isExportDeclaration:jO}=jx,jD=e=>e.parentPath.isTSModuleBlock(),jL=e=>/Program|BlockStatement|Export|LabeledStatement/.test(e.parentPath.type),jM=e=>/^(Program|BlockStatement|TSModuleBlock|SwitchCase)$/.test(e.parentPath.type),jF=e=>e.parentPath.isSwitchCase(),jB=e=>e.parentPath.get("consequent.0")===e,jR=e=>e.parentPath.isIfStatement();function jj(e){return!jT(e)&&e.parentPath.isBlockStatement()}function jU(e){return!jJ(e.parentPath)&&e.parentPath.isExportDeclaration()}function jV(e){return!jJ(e)&&jE(e)}function jW(e){let t=e.getPrevSibling(),r=e.getNextSibling();return!!jP(t.getPrevSibling())&&e.node.loc?.start.line!==t.node?.loc?.start.line+2&&!jJ(e)&&t.isVariableDeclaration()&&!r.isVariableDeclaration()}function jq(e){let t=e.getNextSibling(),r=e.getPrevSibling();return!(!jP(r.getPrevSibling())&&t.isVariableDeclaration())&&e.node.loc?.start.line!==r.node?.loc?.start?.line+2&&jE(t)}jb.VariableDeclaration={beforeIf:function(e){if(e.node===e.parentPath.node.body?.[0]||jk(e)||jk(e.parentPath))return!1;let t=e.getPrevSibling();return!!(!t.isStatement()||t.isExpressionStatement()||t.isBlockStatement())&&!jO(e.parentPath)&&jE(e)},before(e,{print:t}){t.breakline()},print:jN((e,{maybe:t,store:r,write:n,traverse:i,print:a,indent:s},o)=>{let{maxVariablesInOneLine:u}=o;t.indent(jM(e)),n(e.node.kind),jC(e,{write:n});let l=e.get("declarations"),c=l.length-1;for(let[e,r]of(t.indent.inc(c),l.entries())){let p=r.get("id"),d=r.get("init"),f=e===c;if(i(p),jP(d)&&(n.space(),n("="),t.write.space(!jw(d)),i(d)),!f){let r=l[e+1];if(n(","),!r.node.leadingComments){t.write.breakline(c>u),t.write.space(c<=u);continue}jI(r,{print:a,maybe:t,indent:s},o)}}t.indent.dec(c),(jL(e)||jF(e)||jD(e)||jR(e))&&n(";");let p=!1;jF(e)&&!jB(e)?(n.newline(),p=!0):jF(e)&&n.newline(),jL(e)&&jT(e)&&(jA(e)||j_(e))&&(n.newline(),p=!0),r(p)}),afterSatisfy:()=>[jX,jj,jV,jG,jq,jW,j_,jU,jD],after(e,{maybe:t,store:r}){let n=r();if(jJ(e.parentPath)&&!e.parentPath.isBlockStatement()||!jL(e)&&!jD(e))return!1;t.print.linebreak(n),t.print.newline(!n),t.markAfter(n,e)}};let jJ=e=>e.parentPath?.isProgram()&&!jT(e),jX=e=>e.getNextSibling().isIfStatement(),jG=e=>{let t=e.getNextSibling();if(!t.isExpressionStatement())return!1;let{parentPath:r}=e;return(!r.isBlockStatement()||!(r.node.body.length<3))&&t.get("expression").isAssignmentExpression()};var jK={};let{markAfter:jH}=NW,{exists:jz,isNext:j$}=Nb,jY=({parentPath:e})=>!e.parentPath.isProgram(),jQ=e=>e.get("consequent").isEmptyStatement(),jZ=({parentPath:e})=>"BlockStatement"===e.type&&"BlockStatement"===e.parentPath.type,j0=e=>e.parentPath.parentPath?.isIfStatement(),j1=e=>!e.node.body.length;jK.IfStatement={print:(e,{indent:t,print:r,maybe:n,write:i,traverse:a})=>{let s=e.parentPath.get("alternate");e!==s&&t(),r("if"),r.space(),r("("),r("__test"),r(")");let o=e.get("consequent"),u=e.get("alternate"),l=o.isBlockStatement(),c=o.isVariableDeclaration();if(l)r.space(),r(o),(j0(e)||jZ(e))&&n.print.newline(j1(o));else{let t=!jQ(e);n.print.newline(t),n.indent.inc(t),n.indent(c),r(o),n.indent.dec(t)}u.isBlockStatement()?(i.space(),i("else"),i.space(),a(u)):u.isIfStatement()?(u.get("consequent").isBlockStatement()?i.space():t(),i("else "),a(u)):jz(u)&&(n.write.newline(c),n.indent(!l),n.write.space(l),i("else"),i.splitter(),t.inc(),a(u),t.dec()),(j$(e)||o.isBlockStatement())&&e===s&&jY(e)&&r.newline()},afterSatisfy:()=>[j$],after:(e,{print:t})=>{t.linebreak(),jH(e)}};var j2={};let{hasPrevNewline:j3,markAfter:j4,markBefore:j5,isMarkedAfter:j8}=NW,{isFirst:j6,isNext:j9,isLast:j7}=Nb;j2.ForOfStatement={beforeIf(e){let{parentPath:t}=e;return!(!t.isBlockStatement()&&t.isStatement())&&!j6(e)&&!j3(e)},before(e,{print:t}){t.linebreak(),j5(e)},print(e,{indent:t,print:r,maybe:n,traverse:i}){let{node:a}=e;t(),r("for"),n.print(a.await," await"),r.space(),r("("),r("__left"),r(" of "),r("__right"),r(")");let s=e.get("body");if(s.isBlockStatement()){r.space(),r("__body");let{length:t}=s.node.body;n.print.newline(!t&&!j7(e)&&!j9(e));return}t.inc(),r.newline(),i(s),t.dec(),n.markAfter(j8(s),e)},afterIf:j9,after(e,{print:t}){t.linebreak(),j4(e)}};var Ue={},Ut={};let{exists:Ur}=Nb;Ut.insideIfWithNoBody=e=>!!(e.parentPath.isIfStatement()&&e.parentPath.parentPath.isIfStatement())&&!Ur(e.parentPath?.parentPath.getNextSibling());var Un={};Un.getDirectives=e=>e.node.directives?e.get("directives"):[];let{types:Ui}=r5,{isNext:Ua,isParentProgram:Us,isLast:Uo,exists:Uu,satisfy:Ul}=Nb,{markAfter:Uc}=NW,{parseComments:Up}=NU,{insideIfWithNoBody:Ud}=Ut,{getDirectives:Uf}=Un,{isArrowFunctionExpression:Uh,isObjectMethod:Um,isFunctionDeclaration:Uy,isExportDeclaration:Uv,isDoWhileStatement:Ug,isBlockStatement:Ub}=Ui,US=e=>e.node.body[0],Ux=e=>e.node.directives?.[0],UT=e=>Uh(e)||Um(e),UE=({parentPath:e})=>!!e.isIfStatement()&&!e.node.alternate;Ue.BlockStatement={print(e,t,r){let{indent:n,maybe:i,write:a,traverse:s}=t,o=e.get("body"),u=Uf(e);for(let t of(e.parentPath.isBlockStatement()&&n(),n.inc(),a("{"),(US(e)||Ux(e))&&a.newline(),u))s(t);for(let e of(i.write.linebreak(u.length&&o.length),o))s(e);Up(e,t,r),n.dec(),i.indent(o.length),a("}"),e.parentPath.isObjectMethod()&&a(",")},afterIf:e=>!!Uk(e)||!UC(e)&&(!!U_(e)||!(UP(e)||function({parentPath:e}){return!!e.isTryStatement()||e.parentPath?.isTryStatement()}(e)||UA(e)||Uo(e)||Uy(e.parentPath)&&Uv(e.parentPath?.parentPath)&&!Ua(e.parentPath?.parentPath))&&!function(e){let{parentPath:t}=e;if(!t.isIfStatement())return!1;let r=t.get("alternate");return e!==r&&Uu(r)}(e)),after(e,{write:t}){t.newline(),Uc(e.parentPath)}};let U_=e=>UE(e)&&e.find(UT),UP=e=>{let{parentPath:t}=e;return t.isStatement()&&!e.node.body.length&&!Ua(t)},UA=({parentPath:e})=>/FunctionExpression/.test(e.type),Uk=({parentPath:e})=>Ub(e),UC=Ul([({parentPath:e})=>Ug(e),e=>!Ua(e)&&!Ua(e.parentPath)&&Us(e.parentPath),Ud]);var Uw={},UI={};UI.maybeSpaceAfterKeyword=(e,{print:t},r)=>{let{roundBraces:n}=r,{argument:i}=e.node;if(!i)return;let{type:a}=i;if("SequenceExpression"===a&&n.sequence||"StringLiteral"===a||"TemplateLiteral"===a||"ArrayExpression"===a||"ObjectExpression"===a||"UnaryExpression"===a&&"!"===i.operator||"ArrowFunctionExpression"===a&&n.arrow)return t.space();t(" ")};let{types:UN}=r5,{isPrevBody:UO,noTrailingComment:UD,isLast:UL}=Nb,{hasPrevNewline:UM}=NW,{maybeSpaceAfterKeyword:UF}=UI,{isJSXElement:UB}=UN,UR=({parentPath:e})=>e.node?.body?.length>2,Uj=({parentPath:e})=>e.isIfStatement()&&e.node.alternate;Uw.ReturnStatement={beforeIf:e=>!UM(e)&&UR(e)||UO(e),before(e,{print:t}){t.linebreak()},print(e,t,r){let{indent:n,print:i}=t;if(n(),i("return"),UF(e,t,r),function(e){let t=e.node.argument;if(!t)return;let{leadingComments:r}=t;return UB(t)&&r?.length}(e)){i("("),i.breakline(),i("__argument"),i(");");return}i("__argument"),i(";")},afterIf:e=>!!Uj(e)||!(UL(e)||UL(e.parentPath))&&UD(e),after(e,{print:t}){t.newline()}};var UU={};let{isNext:UV}=Nb;UU.TryStatement={print(e,{print:t}){let r=e.get("finalizer");t.indent(),t("try"),t.space(),t("__block"),t("__handler"),r.node&&(t.space(),t("finally"),t.space(),t(r),t.newline())},afterSatisfy:()=>[UV],after(e,{maybe:t,print:r}){t.print.newline(!e.node.finalizer),r.breakline()}},UU.CatchClause=(e,{print:t,maybe:r})=>{let n=e.get("param"),i=e.get("body");t.space(),t("catch"),n.node&&(t("("),t(n),t(")")),t.space(),t(i),r.print.newline(e.parentPath.parentPath.isBlockStatement())};var UW={};let{isNext:Uq}=Nb,UJ=e=>e.parentPath.isBlockStatement(),UX=e=>e.parentPath.isIfStatement();UW.DebuggerStatement={print(e,{print:t,indent:r}){r(),t("debugger;")},afterSatisfy:()=>[Uq,UJ,UX],after(e,{print:t}){t.newline()}};var UG={};let{exists:UK}=Nb,{markAfter:UH}=NW;UG.ForStatement={print(e,{print:t,maybe:r,indent:n}){let{test:i,update:a,body:s}=e.node;if(n(),t("for"),t.space(),t("("),t("__init"),t(";"),r.print.space(i),t("__test"),t(";"),r.print.space(a),t("__update"),t(")"),s.body)t.space(),t("__body");else{let n=!e.get("body").isEmptyStatement();r.print.newline(n),r.indent.inc(n),t("__body"),r.indent.dec(n)}},afterIf:e=>UK(e.getNextSibling()),after(e,{print:t}){t.linebreak(),UH(e)}};var Uz={},U$={};U$.parseImportSpecifiers=e=>{let t=[],r=[],n=[];for(let i of e){if("ImportDefaultSpecifier"===i.type){t.push(i);continue}if("ImportNamespaceSpecifier"===i.type){r.push(i);continue}if("ImportSpecifier"===i.type){n.push(i);continue}}return{defaults:t,namespaces:r,imports:n}};var UY={};UY.ImportAttribute=(e,{print:t})=>{t("__key"),t(":"),t.space(),t("__value")},UY.maybePrintAttributes=(e,{write:t,traverse:r})=>{if(UQ(e))return UZ(e,{write:t,traverse:r,keyword:"assert"});UZ(e,{write:t,traverse:r,keyword:"with"})};let UQ=e=>e.node.extra?.deprecatedAssertSyntax;function UZ(e,{write:t,traverse:r,keyword:n}){let i=e.get("attributes");if(i.length){for(let e of(t(` ${n}`),t.space(),t("{"),t.space(),i))r(e);t.space(),t("}")}}let{parseImportSpecifiers:U0}=U$,{markAfter:U1}=NW,{isLast:U2,isNext:U3}=Nb,{maybePrintAttributes:U4,ImportAttribute:U5}=UY;Uz.ImportAttribute=U5,Uz.ImportDeclaration={print(e,t,r){let{print:n,maybe:i,write:a,traverse:s,indent:o}=t,{phase:u}=e.node,l="type"===e.node.importKind,c=e.get("specifiers");o(),a("import"),i.write(l," type"),i.write(u,` ${u}`);let p=!1,d=c.length-1,{defaults:f,namespaces:h,imports:m}=U0(c);for(let e of(i.write(c.length," "),f))s(e.get("local")),i.write(d,","),i.write.space(d);for(let e of h)a("* as "),s(e.get("local"));let y=function(e,t){let{maxSpecifiersInOneLine:r,maxPropertiesLengthInOneLine:n}=t;for(let{node:t}of e)if(t.imported.name!==t.local.name||t.imported.name.length>=n)return 1;return r}(m,r),v=m.length-1;for(let[e,t]of m.entries()){let r=e===v,n=!r,{imported:u,local:l}=t.node;if(o.inc(),i.write(!p,"{"),i.write.breakline(v>=y),p=!0,s(t.get("imported")),u.name!==l.name&&(a(" as "),a(l.name)),v<y&&n&&(i.write(d,","),i.write.space(d)),v>=y){i.write(d,",");let t=e===d,r=e===d-1;i.write.newline(r&&f.length),i.write.newline(t)}o.dec(),i.write(r,"}")}i.write(c.length," from"),n.space(),n("__source"),U4(e,{write:a,traverse:s}),n(";"),U3(e)&&n.newline()},afterIf:e=>!U2(e)&&!e.getNextSibling().isImportDeclaration(),after(e,{print:t}){t.newline(),U1(e)}};var U8={};let{types:U6}=r5,{markAfter:U9,isMarkedAfter:U7}=NW,{isNewlineBetweenSiblings:Ve,exists:Vt,isNext:Vr,isLast:Vn}=Nb,{isExportNamespaceSpecifier:Vi}=U6,Va=e=>U7(e.get("declaration")),Vs=e=>e.parentPath.isTSModuleBlock(),Vo={maxOneLineSpecifiers:2};U8.ExportSpecifier=(e,{print:t})=>{let{local:r,exported:n}=e.node;t("__local"),n.name!==r.name&&(t(" as "),t("__exported"))},U8.ExportNamespaceSpecifier=(e,{print:t})=>{t("* as "),t("__exported")},U8.ExportNamedDeclaration={print(e,{print:t,traverse:r,indent:n,maybe:i}){let{exportKind:a}=e.node,s=e.get("specifiers"),{maxOneLineSpecifiers:o}=Vo,u=e.get("source");if(n(),t("export"),"type"===a&&s.length&&t(" type"),Vi(s[0])){t(" "),t(s[0]),t(" from "),t("__source"),t(";"),i.print.newline(!Vn(e));return}let l=s.length,c=!Vt(u)||l>o;if(s&&!e.node.declaration){if(t.space(),t("{"),s.length){n.inc(),i.print.newline(c);let e=l-1;for(let[n,a]of s.entries()){let s="type"===a.node.exportKind;i.indent(c),i.print(s,"type "),r(a),n<e&&!c&&t(", "),i.print(c,","),i.print.newline(c)}n.dec(),n()}t("}");let a=e.get("source");Vt(a)&&(t(" from "),r(a)),t(";"),i.print.newline(Vr(e)||Vs(e));return}t(" "),t("__declaration")},afterIf:e=>!(Vn(e)||Va(e))&&Ve(e),after(e,{print:t}){t.newline(),U9(e)}};var Vu={};Vu.ExportAllDeclaration=(e,{print:t})=>{let{exportKind:r}=e.node;t("export "),"type"===r&&t("type "),t("* from "),t("__source"),t(";"),t.newline()};var Vl={};let{isNext:Vc}=Nb,{markAfter:Vp}=NW;Vl.WhileStatement={print(e,{print:t,indent:r}){r(),t("while ("),t("__test"),t(")"),e.node.body.body?(t(" "),t("__body")):(r.inc(),t.newline(),t("__body"),r.dec())},afterIf:e=>Vc(e),after(e,{print:t}){t.linebreak(),Vp(e)}};var Vd={};let{isNext:Vf,exists:Vh,isLast:Vm}=Nb,{parseLeadingComments:Vy}=NU;Vd.SwitchStatement={print(e,t,r){let{print:n,maybe:i,indent:a,write:s,traverse:o}=t;a(),n("switch"),n("("),n("__discriminant"),n(") {"),n.newline();let u=e.get("cases"),l=u.length-1;for(let[e,c]of u.entries()){let u=c.get("test");a(),Vy(c,t,r),Vh(u)?(s("case "),o(u)):s("default"),n(":");let p=c.get("consequent"),d=c.get("consequent.0")?.isBlockStatement();for(let e of(i.indent.inc(!d),i.print.newline(!d&&p.length),p)){if(!e.isBlockStatement()){n(e);continue}n.space(),n(e)}i.indent.dec(!d),i.write.linebreak(e<l)}n.indent(),n("}"),Vf(e)||Vm(e)||n.newline()},afterSatisfy:()=>[Vf],after(e,{print:t}){t.breakline(),t.newline()}};var Vv={};Vv.ForInStatement=(e,{print:t,indent:r})=>{r(),t("for"),t.space(),t("("),t("__left"),t(" in "),t("__right"),t(")"),e.get("body").isBlockStatement()&&t.space(),t("__body")};var Vg={};let{isNext:Vb}=Nb,VS=e=>!!Vb(e)&&!e.get("declaration").isClass();Vg.ExportDefaultDeclaration={print(e,{print:t,traverse:r,maybe:n}){let i=e.get("declaration");t("export default "),r(i),n.print(!i.isClassDeclaration()&&!i.isFunctionDeclaration(),";")},afterSatisfy:()=>[VS],after(e,{print:t}){t.newline(),t.newline()}};var Vx={};let{isParentBlock:VT,isNextParent:VE}=Nb,V_=e=>e.parentPath.isSwitchCase();Vx.BreakStatement={split(e,{print:t}){t.newline()},print(e,{print:t,indent:r,maybe:n}){let{label:i}=e.node;r(),t("break"),n.print.space(i),t("__label"),t(";")},afterSatisfy:()=>[VT,VE,V_]};var VP={};let{isLast:VA}=Nb,Vk=e=>!VA(e);VP.DoWhileStatement={print(e,{print:t,indent:r}){r(),t("do"),t.space(),t("__body"),t.space(),t("while "),t("("),t("__test"),t(")")},afterSatisfy:()=>[Vk],after(e,{print:t}){t.newline()}};var VC={};let{parseComments:Vw}=NU,{getDirectives:VI}=Un,{hasCoupleTrailingComments:VN}=Nb;VC.Program=(e,t,r)=>{let{body:n}=e.node,{traverse:i,maybe:a,write:s}=t;i(e.get("interpreter")),Vw(e,t,r);let o=VI(e);for(let e of o)i(e),a.write.newline(n.length);e.get("body").forEach(i),(!o.length||n.length)&&(n.length&&VN(n.at(-1))||s.endOfFile())};var VO={};VO.ContinueStatement=(e,{indent:t,print:r,maybe:n,write:i})=>{let{label:a}=e.node;t(),r("continue"),n.print.space(a),r("__label"),i(";"),r.newline()};var VD={};let{isInsideLabel:VL}=Nb;VD.LabeledStatement=(e,{print:t,maybe:r})=>{r.indent(!VL(e)),t("__label"),t(":"),t.space(),t("__body")};let{ExpressionStatement:VM}=ja,{VariableDeclaration:VF}=jb,{IfStatement:VB}=jK,{ForOfStatement:VR}=j2,{BlockStatement:Vj}=Ue,{ReturnStatement:VU}=Uw,{DebuggerStatement:VV}=UW,{ForStatement:VW}=UG,{ExportAllDeclaration:Vq}=Vu,{WhileStatement:VJ}=Vl,{SwitchStatement:VX}=Vd,{ForInStatement:VG}=Vv,{ExportDefaultDeclaration:VK}=Vg,{BreakStatement:VH}=Vx,{DoWhileStatement:Vz}=VP,{Program:V$}=VC,{ContinueStatement:VY}=VO,{LabeledStatement:VQ}=VD,{ExportNamespaceSpecifier:VZ,ExportSpecifier:V0}=U8;var V1={...Uz,...U8,BlockStatement:Vj,DoWhileStatement:Vz,ExpressionStatement:VM,ExportSpecifier:V0,ExportNamespaceSpecifier:VZ,ExportDefaultDeclaration:VK,ExportAllDeclaration:Vq,VariableDeclaration:VF,IfStatement:VB,ForStatement:VW,ForInStatement:VG,ForOfStatement:VR,ReturnStatement:VU,DebuggerStatement:VV,LabeledStatement:VQ,Program:V$,EmptyStatement(e,{write:t}){t(";")},InterpreterDirective(e,{print:t}){t(`#!${e.node.value}
|
2
|
+
`),t.newline()},SwitchStatement:VX,...UU,BreakStatement:VH,ContinueStatement:VY,WhileStatement:VJ},V2={};V2.TemplateLiteral=(e,{write:t,traverse:r})=>{t("`");let n=0,i=e.get("expressions");for(let a of e.node.quasis){t(a.value.raw);let e=i[n++];e&&(t("${"),r(e),t("}"))}t("`")};var V3={},V4={};V4.maybeDecorators=e=>e.node.decorators?e.get("decorators"):[];let{maybeDecorators:V5}=V4,{maybeParens:V8}=Om,{maybeTypeAnnotation:V6}=Lx;V3.Identifier=V8(V6((e,t)=>{let{write:r,maybe:n,traverse:i,print:a}=t,{node:s}=e,{name:o,optional:u}=s;for(let t of V5(e))i(t),a(" ");r(o),n.write(u,"?")}));var V9={};let{types:V7}=r5,{isMemberExpression:We}=V7;V9.Decorator=(e,{print:t,maybe:r})=>{let{expression:n}=e.node,i=We(n);t("@"),r.print(i,"("),t("__expression"),r.print(i,")")};var Wt={};let Wr=(e,{encodeDoubleQuote:t,encodeSingleQuote:r})=>r&&!e.includes("\\")?e.replaceAll("'","\\'"):t&&!e.includes('\\"')?e.replaceAll('"','\\"'):e;Wt.StringLiteral=(e,{write:t},r)=>{let{raw:n,value:i}=e.node;if(n&&e.parentPath.isJSXAttribute()){t(n);return}if(n){let e=n.slice(1,-1);t.quote(),t(Wr(e,r)),t.quote();return}t.quote(),t(i),t.quote()};let{TemplateLiteral:Wn}=V2,{Identifier:Wi}=V3,{Decorator:Wa}=V9,{StringLiteral:Ws}=Wt;var Wo={};Wo.TSTypeLiteral=(e,{indent:t,traverse:r,write:n})=>{let i=e.get("members");n("{");let a=function(e){let t=e.get("members");return!(1===t.length&&e.parentPath.isTSTypeParameterInstantiation())&&t.length&&t[0].node.typeAnnotation}(e);for(let e of(a&&(n.newline(),t.inc()),i))t(),r(e);a&&(t.dec(),n.indent()),n("}")};var Wu={};let{isLast:Wl,isNext:Wc,isNextParent:Wp}=Nb,{markAfter:Wd}=NW,{maybeDeclare:Wf}=DP,Wh=e=>e.getNextSibling().isTSTypeAliasDeclaration(),Wm=e=>e.getNextSibling().isExportDeclaration();Wu.TSTypeAliasDeclaration={beforeIf:e=>!e.parentPath.isExportDeclaration(),before:(e,{indent:t})=>{t()},print:Wf((e,{print:t,maybe:r,store:n})=>{let i=e.get("typeAnnotation").isTSConditionalType();t("type "),t("__id"),t("__typeParameters"),t.space(),t("="),r.print.space(!i),t("__typeAnnotation"),t(";");let a=n(Wl(e)||Wl(e.parentPath));r.print.newline(!a)}),afterIf:(e,{store:t})=>!!(!t()&&(Wc(e)||Wp(e)))&&!Wh(e),after(e,{print:t,maybe:r}){r.indent(Wm(e)),t.newline(),Wd(e)}};var Wy={};let{types:Wv}=r5,{isTSConditionalType:Wg}=Wv;Wy.TSMappedType=(e,{print:t,indent:r,maybe:n})=>{let{readonly:i,optional:a,nameType:s,typeAnnotation:o}=e.node;t("{"),t.newline(),r.inc(),r(),i&&(n.print("-"===i,"-"),t("readonly ")),t("["),t("__key"),t(" "),t("in"),t(" "),t("__constraint"),s&&(t(" as"),n.space(!Wg(s)),t("__nameType")),t("]"),a&&(n.print("+"===a,"+"),n.print("-"===a,"-"),t("?")),o&&(t(":"),t.space(),t("__typeAnnotation")),t(";"),r.dec(),t.breakline(),t("}")};var Wb={};Wb.TSConditionalType=(e,{print:t,indent:r})=>{r.inc(),t.breakline(),t("__checkType"),t(" extends "),t("__extendsType"),r.inc(),t.breakline(),t("? "),t("__trueType"),t.breakline(),t(": "),t("__falseType"),r.dec(),r.dec()};var WS={};let{exists:Wx}=Nb;WS.TSTypeParameter=(e,{write:t,traverse:r})=>{let n=e.get("constraint");if(e.node.in?t("in "):e.node.out?t("out "):e.node.const&&t("const "),t(e.node.name.name),!Wx(n))return;t(" extends "),r(n);let i=e.get("default");Wx(i)&&(t.space(),t("="),t.space(),r(i))};var WT={};let{printParams:WE}=Nj,{isNext:W_}=Nb,{maybeDeclare:WP}=DP,WA=e=>e.parentPath.isExportDefaultDeclaration(),Wk=e=>e.parentPath.isExportNamedDeclaration();WT.TSDeclareFunction={beforeIf:e=>!Wk(e),before:(e,{indent:t})=>{t()},print:WP((e,t,r)=>{let{print:n}=t;n("function "),n("__id"),WE(e,t,r),n(":"),n.space(),n("__returnType")}),afterIf:e=>!WA(e),after:(e,{print:t})=>{t(";"),(W_(e)||W_(e.parentPath)||Wk(e))&&t.newline()}};var WC={};let{printParams:Ww}=Nj;WC.TSDeclareMethod=(e,t,r)=>{let{print:n}=t,{accessibility:i,abstract:a,returnType:s}=e.node;i&&(n(i),n(" ")),a&&(n("abstract"),n(" ")),n("__key"),Ww(e,t,r),s&&(n(":"),n.space(),n("__returnType")),n(";"),n.newline()};var WI={};let{isNext:WN}=Nb,{maybeDeclare:WO}=DP;WI.TSModuleDeclaration={print:WO((e,{print:t})=>{t(e.get("id").isStringLiteral()?"module ":"namespace "),t("__id"),t.space(),t("__body")}),afterSatisfy:()=>[WN],after(e,{print:t}){t.newline(),t.newline()}},WI.TSModuleBlock=(e,{print:t,traverse:r,indent:n})=>{for(let i of(t("{"),t.breakline(),n.inc(),e.get("body")))r(i);n.dec(),t("}")};var WD={};let{types:WL}=r5,{isNext:WM,isNextParent:WF}=Nb,{maybeDeclare:WB}=DP,{markAfter:WR}=NW,{isTSTypeAliasDeclaration:Wj,isExportNamedDeclaration:WU,isTSModuleBlock:WV}=WL,WW=e=>WV(e.parentPath.parentPath);WD.TSInterfaceDeclaration={print:WB((e,{print:t,maybe:r})=>{let{node:n}=e;r.indent(!WU(e.parentPath)),t("interface "),t("__id"),n.extends&&(t(" extends "),e.get("extends").map(t)),t("__typeParameters"),t("__body")}),afterSatisfy:()=>[WM,WF],after(e,{print:t}){t.linebreak();let r=WU(e.parentPath);r&&WW(e)&&WR(e),r||Wj(e)||t.newline()}};var Wq={};let{types:WJ}=r5,{maybeParens:WX}=Om,{isVariableDeclarator:WG,isObjectExpression:WK}=WJ;Wq.TSAsExpression=WX((e,{print:t,maybe:r})=>{let n=function(e){let{expression:t}=e.node;return!WG(e.parentPath)&&WK(t)}(e);r.print(n,"("),t("__expression"),r.print(n,")"),t(" as "),t("__typeAnnotation")});var WH={};let{parseComments:Wz}=NU;WH.TSInterfaceBody=(e,t,r)=>{let n=e.get("body"),{traverse:i,write:a,indent:s,maybe:o}=t;for(let u of(a.space(),a("{"),o.write.newline(n.length),s.inc(),Wz(e,t,r),n))s(),i(u);s.dec(),s(),a("}"),o.write.newline(!!e.parentPath.parentPath.isTSModuleBlock()||e.parentPath.parentPath.parentPath?.isTSModuleBlock())};var W$={};W$.TSIntersectionType=(e,{traverse:t,write:r})=>{let n=e.get("types"),i=n.length-1;for(let[e,a]of n.entries()){let n=e===i;t(a),n||(r.space(),r("&"),r.space())}};var WY={};let{maybePrintTypeAnnotation:WQ}=Lx,{hasTrailingComment:WZ,isNext:W0}=Nb,{printKey:W1}=OB;WY.TSPropertySignature=(e,t)=>{let{maybe:r,write:n}=t,{optional:i,readonly:a}=e.node;r.print(a,"readonly "),W1(e,t),r.print(i,"?"),WQ(e,t),!function({parentPath:e}){return!!e.parentPath.isTSTypeParameterInstantiation()&&1===e.node.members.length}(e)&&(n(";"),n.newline()),W0(e)&&WZ(e)&&n.newline()};var W2={},W3={};W3.hasReturnType=e=>e.node.returnType,W3.printReturnType=(e,{traverse:t})=>{t(e.get("returnType"))};let{printParams:W4}=Nj,{printReturnType:W5}=W3,{maybeParens:W8}=Om;W2.TSFunctionType=W8((e,t,r)=>{let{print:n}=t;W4(e,t,r),n.space(),n("=>"),n.space(),W5(e,t)});var W6={};let{isNext:W9,isNextParent:W7,isLast:qe}=Nb,{markAfter:qt}=NW;W6.TSEnumDeclaration={beforeIf:e=>e.node.const,before(e,{print:t}){t("const ")},print(e,{print:t,traverse:r,indent:n}){for(let i of(t("enum "),t("__id"),t(" "),t("{"),n.inc(),t.newline(),e.get("members")))r(i),t(","),t.newline();n.dec(),n(),t("}"),qe(e)||(t.newline(),qt(e))},afterSatisfy:()=>[W9,W7],after(e,{print:t}){t.linebreak()}};var qr={};qr.TSEnumMember=(e,{print:t,indent:r})=>{let{initializer:n}=e.node;r(),t("__id"),n&&(t.space(),t("="),t.space(),t("__initializer"))};var qn={};qn.TSTupleType=(e,{write:t,traverse:r,indent:n,maybe:i})=>{let a=e.get("elementTypes");t("["),n.inc();let s=function(e){let t;for(let r of e){if(t&&r.type!==t)return!1;({type:t}=r)}return!0}(a);i.write.newline(s&&a.length);let o=a.length-1;for(let[e,t]of a.entries())i.indent(s),r(t),i.write(e<o||s,","),i.write.newline(s),i.write.space(e<o&&!s);n.dec(),i.indent(s&&a.length),t("]")};var qi={};qi.TSNamedTupleMember=(e,{print:t})=>{t("__label"),t(":"),t.space(),t("__elementType")};var qa={};let{printParams:qs}=Nj,{printReturnType:qo}=W3;qa.TSConstructorType=(e,t,r)=>{let{print:n}=t;n("new"),n(" "),qs(e,t,r),n.space(),n("=>"),n.space(),qo(e,t)};var qu={};let{printReturnType:ql}=W3,{printParams:qc}=Nj;qu.TSCallSignatureDeclaration=(e,t,r)=>{let{print:n}=t;qc(e,t,r),n(":"),n.space(),ql(e,t),n(";"),n.newline()};var qp={};let{printParams:qd}=Nj,{hasReturnType:qf,printReturnType:qh}=W3;qp.TSConstructSignatureDeclaration=(e,t,r)=>{let{write:n}=t;n("new"),qd(e,t,r),qf(e)&&(n(":"),n.space(),qh(e,t)),n(";"),n.newline()};var qm={};let{printParams:qy}=Nj,{printKind:qv}=OU,{hasReturnType:qg,printReturnType:qb}=W3,{printKey:qS}=OB;qm.TSMethodSignature=(e,t,r)=>{let{write:n}=t;qv(e,t),qS(e,t),qy(e,t,r),qg(e)&&(n(":"),n.space(),qb(e,t)),n(";"),n.newline()};var qx={};let{maybeParens:qT}=Om,qE=({parentPath:e})=>e.isTSTypeAliasDeclaration();qx.TSUnionType=qT((e,t,{maxTypesInOneLine:r})=>{let n=e.get("types"),{length:i}=n;!qE(e)||i<=r?function(e,{traverse:t,write:r}){let n=e.length-1;for(let[i,a]of e.entries())t(a),i<n&&(r.space(),r("|"),r.space())}(n,t):function(e,{traverse:t,write:r,indent:n}){for(let i of(n.inc(),e))r.breakline(),r("|"),r.space(),t(i);n.dec()}(n,t)});var q_={};let{createImportExpression:qP}=Rj;q_.TSImportType=(e,t,r)=>{qP(e,t,r,{source:"argument"})};var qA={};let{isNext:qk}=Nb;qA.TSExportAssignment={print:(e,{print:t})=>{t("export = "),t("__expression"),t(";")},afterSatisfy:()=>[qk],after:(e,{print:t})=>{t.newline()}};var qC={};qC.TSTypeReference=(e,{print:t})=>{t("__typeName"),t("__typeArguments")};var qw={};let{maybeParens:qI}=Om;qw.TSInferType=qI((e,{print:t})=>{t("infer "),t("__typeParameter")});var qN={};qN.TSParameterProperty=(e,{print:t,maybe:r})=>{let{decorators:n,readonly:i,accessibility:a}=e.node,s=n?.length;if(r.print.breakline(s),n)for(let r of e.get("decorators"))t.indent(),t(r);r.print.breakline(s),r.indent(s),a&&(t(a),t.space()),i&&(t("readonly"),t.space()),t("__parameter"),r.print(s,","),r.print.breakline(s)};var qO={};let{maybeParens:qD}=Om;qO.TSTypeQuery=qD((e,{print:t})=>{t("typeof "),t("__exprName")});let{isNext:qL}=Nb,{TSTypeLiteral:qM}=Wo,{TSTypeAliasDeclaration:qF}=Wu,{TSMappedType:qB}=Wy,{TSConditionalType:qR}=Wb,{TSTypeParameter:qj}=WS,{TSDeclareFunction:qU}=WT,{TSDeclareMethod:qV}=WC,{TSModuleDeclaration:qW,TSModuleBlock:qq}=WI,{TSInterfaceDeclaration:qJ}=WD,{TSAsExpression:qX}=Wq,{TSInterfaceBody:qG}=WH,{TSIntersectionType:qK}=W$,{TSPropertySignature:qH}=WY,{TSFunctionType:qz}=W2,{printParams:q$}=Nj,{TSEnumDeclaration:qY}=W6,{TSEnumMember:qQ}=qr,{TSTupleType:qZ}=qn,{TSNamedTupleMember:q0}=qi,{TSConstructorType:q1}=qa,{TSCallSignatureDeclaration:q2}=qu,{TSConstructSignatureDeclaration:q3}=qp,{TSMethodSignature:q4}=qm,{TSUnionType:q5}=qx,{maybePrintTypeAnnotation:q8}=Lx,{TSImportType:q6}=q_,{TSExportAssignment:q9}=qA,{TSTypeReference:q7}=qC,{TSInferType:Je}=qw,{TSParameterProperty:Jt}=qN,{TSTypeQuery:Jr}=qO;var Jn={};let{types:Ji}=r5,{isJSXElement:Ja}=Ji,Js=({parentPath:e})=>e.isArrowFunctionExpression();Jn.JSXElement={condition:function(e){return!!(e.parentPath.isReturnStatement()||e.node.extra?.parenthesized||e.parentPath.isArrowFunctionExpression())||e.parentPath.isVariableDeclarator()},before(e,{write:t,indent:r,maybe:n}){let{leadingComments:i}=e.node;n.write.space(!i&&Js(e)),r.inc(),i?.length||(t("("),t.newline())},print(e,{print:t,traverse:r,indent:n}){let i=e.parentPath.isArrowFunctionExpression(),a=e.parentPath.parentPath.isCallExpression();i&&a&&n.inc(),t("__openingElement"),e.get("children").map(r),t("__closingElement"),i&&a&&n.dec()},after(e,{write:t,indent:r,maybe:n}){let{leadingComments:i}=e.node;Ja(e.parentPath.parentPath?.parentPath?.parentPath)?(t.breakline(),r.dec()):(r.dec(),t.breakline()),n.write(!i?.length,")")}};var Jo={};let{isCoupleLines:Ju}=Nb;Jo.JSXAttribute={condition:e=>Ju(e.parentPath),before(e,{print:t,indent:r}){r.inc(),t.breakline()},print(e,{print:t,maybe:r}){let{value:n}=e.node;t("__name"),r.print(n,"="),t("__value")},after(e,{indent:t}){t.dec()}};var Jl={};let{isCoupleLines:Jc}=Nb,Jp=({parentPath:e})=>!(e.parentPath.isCallExpression()||e.parentPath.isJSXElement()||e.parentPath.isJSXExpressionContainer()||e.parentPath.isJSXFragment())&&!e.parentPath.isLogicalExpression();Jl.JSXOpeningElement={print(e,{print:t,maybe:r}){r.indent(Jp(e)),t("<"),t("__name");let n=Jc(e),i=!n,a=n&&e.parentPath.parentPath.isJSXElement();for(let n of(r.indent.inc(a),e.get("attributes")))r.print.space(i),t(n);Jc(e)&&t.breakline(),e.node.selfClosing&&t("/"),t(">"),r.indent.dec(a)}};var Jd={};Jd.JSXFragment={condition:function(e){return!!e.parentPath.isReturnStatement()||e.parentPath.isVariableDeclarator()},before(e,{write:t,indent:r}){t("("),r.inc(),t.breakline()},print(e,{print:t,traverse:r}){t("__openingFragment"),e.get("children").map(r),t("__closingFragment")},after(e,{write:t,indent:r}){r.dec(),t.breakline(),t(")")}},Jd.JSXOpeningFragment=(e,{write:t})=>{t("<>")},Jd.JSXClosingFragment=(e,{write:t})=>{t("</>")};var Jf={};let{isNext:Jh}=Nb;Jf.JSXText=(e,{write:t,indent:r})=>{let{node:n}=e,{value:i,extra:a}=n,s=/^\s+$/.test(i),o=Jh(e);if(a.raw.includes("&"))return t(a.raw);if(s&&o){r.inc(),t.breakline(),r.dec();return}if(s){t.breakline();return}t(i)};let{JSXElement:Jm}=Jn,{JSXAttribute:Jy}=Jo,{isCoupleLines:Jv}=Nb,{JSXOpeningElement:Jg}=Jl,{JSXText:Jb}=Jf,{parseComments:JS}=NU;var Jx={...Jd,JSXElement:Jm,JSXAttribute:Jy,JSXOpeningElement:Jg,JSXText:Jb,JSXEmptyExpression(e,t,r){JS(e,t,r)},JSXExpressionContainer(e,{print:t}){t("{"),t("__expression"),t("}")},JSXIdentifier(e,{write:t}){t(e.node.name)},JSXMemberExpression(e,{print:t}){t("__object"),t("."),t("__property")},JSXSpreadAttribute(e,{print:t,maybe:r}){let n=Jv(e.parentPath);r.indent.inc(n),r.print.breakline(n),t("{"),t("..."),t("__argument"),t("}"),r.indent.dec(n)},JSXClosingElement(e,{print:t}){t("</"),t("__name"),t(">")}},JT={...ji,...V1,Identifier:Wi,Decorator:Wa,TemplateLiteral:Wn,BigIntLiteral(e,{write:t}){t(e.node.raw)},NumericLiteral(e,{write:t}){let{raw:r,extra:n,value:i}=e.node;t(r||n?.raw||i)},Directive(e,{print:t,maybe:r}){r.print.breakline(e.node.leadingComments?.length),t("__value")},DirectiveLiteral(e,{write:t}){t.indent(),t(e.node.raw),t(";"),t.newline()},BooleanLiteral(e,{write:t}){t(e.node.value)},StringLiteral:Ws,RegExpLiteral(e,{print:t}){let{raw:r,pattern:n}=e.node;t(r||`/${n}/`)},NullLiteral(e,{write:t}){t("null")},MetaProperty(e,{write:t}){t("import.meta")},Super(e,{write:t}){t("super")},TSAsExpression:qX,TSExportAssignment:q9,TSTypeLiteral:qM,TSTypeAliasDeclaration:qF,TSTypeParameter:qj,TSMappedType:qB,TSConditionalType:qR,TSDeclareFunction:qU,TSModuleDeclaration:qW,TSModuleBlock:qq,TSIntersectionType:qK,TSImportType:q6,TSUnionType:q5,TSTypeQuery:Jr,TSBigIntKeyword(e,{write:t}){t("bigint")},TSNullKeyword(e,{write:t}){t("null")},TSSymbolKeyword(e,{write:t}){t("symbol")},TSNeverKeyword(e,{write:t}){t("never")},TSUnknownKeyword(e,{write:t}){t("unknown")},TSObjectKeyword(e,{write:t}){t("object")},TSLiteralType(e,{print:t}){t("__literal")},TSTupleType:qZ,TSInferType:Je,TSRestType(e,{print:t}){t("..."),t("__typeAnnotation")},TSTypeParameterDeclaration(e,t,r){q$(e,t,r,{braceOpen:"<",braceClose:">"})},TSTypeParameterInstantiation(e,t,r){q$(e,t,r,{braceOpen:"<",braceClose:">"})},TSArrayType(e,{print:t}){t("__elementType"),t("[]")},TSTypeReference:q7,TSTypeOperator(e,{write:t,print:r}){let{operator:n}=e.node;t(`${n} `),r("__typeAnnotation")},TSInterfaceDeclaration:qJ,TSInterfaceBody:qG,TSTypeAssertion(e,{print:t}){t("<"),t("__typeAnnotation"),t(">"),t("__expression")},TSUndefinedKeyword(e,{write:t}){t("undefined")},TSBooleanKeyword(e,{write:t}){t("boolean")},TSSatisfiesExpression(e,{print:t}){t("__expression"),t(" satisfies "),t("__typeAnnotation")},TSNumberKeyword(e,{write:t}){t("number")},TSIndexedAccessType(e,{print:t}){t("__objectType"),t("["),t("__indexType"),t("]")},TSStringKeyword(e,{write:t}){t("string")},TSInstantiationExpression(e,{print:t}){t("__expression"),t("__typeParameters")},TSAnyKeyword(e,{write:t}){t("any")},TSVoidKeyword(e,{write:t}){t("void")},TSQualifiedName(e,{print:t}){t("__left"),t("."),t("__right")},TSTypeAnnotation(e,{print:t}){t("__typeAnnotation")},TSParameterProperty:Jt,TSConstructSignatureDeclaration:q3,TSIndexSignature(e,t){let{print:r}=t;r("["),r("__parameters.0"),r("]"),q8(e,t),r(";"),r.newline()},TSClassImplements(e,{print:t}){t("__expression"),t("__typeParameters")},TSInterfaceHeritage(e,{print:t}){t("__expression"),t("__typeParameters")},TSPropertySignature:qH,TSFunctionType:qz,TSTypePredicate(e,{print:t}){t("__parameterName"),t(" is "),t("__typeAnnotation")},TSNonNullExpression(e,{print:t}){t("__expression"),t("!")},TSEnumDeclaration:qY,TSEnumMember:qQ,TSImportEqualsDeclaration(e,{print:t,maybe:r}){r.print(e.node.isExport,"export "),t("import "),t("__id"),t.space(),t("="),t.space(),t("__moduleReference"),t(";"),r.print.newline(qL(e))},TSExternalModuleReference(e,{print:t}){t("require("),t("__expression"),t(")")},TSDeclareMethod:qV,TSNamedTupleMember:q0,TSConstructorType:q1,TSMethodSignature:q4,TSCallSignatureDeclaration:q2,TSThisType(e,{print:t}){t("this")},...Jx};JT.default;var JE={},J_=/*@__PURE__*/eo(eW),JP=/[\s\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,\-.\/:;<=>?@\[\]^_`{|}~]+/,JA=/[A-Z\u00C0-\u00D6\u00D9-\u00DD]/g;let{codeFrameColumns:Jk}=r5,{TYPES:JC}=Ny,{stringify:Jw}=JSON,{LOG:JI,LOG_ALL:JN,LOG_TOKENS:JO,LOG_TERM:JD,DEBUG:JL}={};function JM(){let e=[];return(...t)=>{let[r]=t;if(t.length){e.push(r);return}let n=e.join("");return e=[],n}}JE.createDebug=e=>t=>{var r;JL&&e.push({type:JC.DEBUG,value:`/*__${t.replace(JA,function(e){return" "+(e.toLowerCase()||e)}).trim().split(JP).join("_")}*/`})},JE.createLog=({newline:e="\n",store:t=JM()}={})=>({type:r,value:n})=>{if(JO){console.log(Jk(Jw({type:r,value:n}),{},{highlightCode:!0}));return}if(JN){console.log(Jk(n,{},{highlightCode:!0}));return}if(JI){if(n===e){console.log(Jk(t(),{},{highlightCode:!0}));return}t(n)}JD&&J_.stdout.write(n)};var JF={},JB={};let JR=e=>e&&"object"==typeof e,Jj=e=>"boolean"==typeof e,JU={arrow:!0,sequence:!0,assign:!1,new:!0},JV={arrow:!0,sequence:!0,assign:!0,new:!0},JW={arrow:!1,sequence:!1,assign:!1,new:!1};JB.parseRoundBraces=({roundBraces:e})=>JR(e)?{...JU,...e}:Jj(e)&&e?JV:Jj(e)&&!e?JW:JU,JB.ROUND_BRACES_DISABLED=JW,JB.ROUND_BRACES_ENABLED=JV,JB.ROUND_BRACES_DEFAULTS=JU;let{parseRoundBraces:Jq}=JB;JF.parseOverrides=(e={})=>{let{format:t,semantics:r,visitors:n}=e;return{format:{indent:" ",newline:"\n",space:" ",splitter:"\n",quote:"'",endOfFile:"\n",...t},semantics:function(e={}){return{comments:!0,maxPropertiesInOneLine:2,maxPropertiesLengthInOneLine:15,maxSpecifiersInOneLine:2,maxElementsInOneLine:5,maxLogicalsInOneLine:3,maxVariablesInOneLine:4,maxTypesInOneLine:3,trailingComma:!0,encodeSingleQuote:!0,encodeDoubleQuote:!1,...e,roundBraces:Jq(e)}}(r),visitors:n}};let JJ=r5.traverse,{TYPES:JX}=Ny,{maybeFile:JG,maybeVisitor:JK,maybeThrow:JH}=Rb,{createDebug:Jz,createLog:J$}=JE,{maybeMarkAfter:JY}=NW,{parseLeadingComments:JQ,parseTrailingComments:JZ}=NU,{parseOverrides:J0}=JF,J1=e=>e&&"object"==typeof e,{round:J2}=Math,J3=e=>"string"==typeof e,{assign:J4,freeze:J5}=Object,J8=(e,t)=>e.get(t.replace("__","")),J6=e=>{let t=J$();return r=>{t(r),e.push(r)}};el.tokenize=(e,t)=>{let{visitors:r,format:n,semantics:i}=J0(t),a=[],s=J6(a),o=Jz(a),u=e=>{s({type:JX.TOKEN,value:e})},l=e=>e&&S(),c=e=>e&&g(),p=e=>e&&y(),d=(e,t)=>e&&u(t),f=e=>e&&v(),h=0,m=()=>{s({type:JX.INDENT,value:function(e,t){let r="";for(++e;--e>0;)r+=t;return r}(h,n.indent)})};J4(m,{inc:()=>++h,dec:()=>--h});let y=()=>{m(),S()},v=()=>{s({type:JX.SPACE,value:n.space})},g=()=>{S(),m()},b=()=>{s({type:JX.QUOTE,value:n.quote})},S=()=>{s({type:JX.NEWLINE,value:n.newline})};J4(u,{indent:m,newline:S,linebreak:y,breakline:g,space:v,splitter:()=>{s({type:JX.SPLITTER,value:n.splitter})},quote:b,endOfFile:()=>{s({type:JX.END_OF_FILE,value:n.endOfFile})}}),J4(d,{newline:l,breakline:c,linebreak:p,space:f});let x={indent:e=>e&&m(),markAfter:JY,write:d,space:f};J4(x.indent,{inc:e=>e&&m.inc(),dec:e=>e&&m.dec()});let T=J5({indent:m,write:u,debug:o,traverse:_,maybe:x,quote:b,store:ec()}),E={...JT,...r};function _(e){let{type:t}=e,r=E[t];if(!e.node)return;let n=J9(e,{write:u,traverse:_});J4(n,u,{space:v,round:J2});let a={...T,print:n},s=(e,t)=>e&&n(t);J4(s,{newline:l,breakline:c,linebreak:p,space:f}),J4(a.maybe,{print:s}),JH(!r,e,`☝️ Node type '{{ type }}' is not supported yet by @putout/printer: '{{ path }}'`);let d=h;JQ(e,a,i),JK(r,e,a,i),JZ(e,a,i),JH(h!==d,e,`☝️Looks like indent level changed after token visitor: '{{ type }}', for code: '{{ path }}'`),o(e.type)}return e.parentPath?function(e,t){e.parentPath.traverse({enter(r){r===e&&(t(r),r.stop())}})}(e,_):JJ(JG(e),{Program(e){_(e),e.stop()}}),a};let J9=(e,{traverse:t,write:r})=>n=>{if(n===e)return null;let i=J7(e,n);return J1(i)?t(i):r(i)},J7=(e,t)=>J3(t)&&t.startsWith("__")?J8(e,t):(J1(t),t);var Xe={},Xt={};Xt.cook=e=>{let t=[];for(let{value:r}of e)t.push(r);return t};let{cook:Xr}=Xt;Xe.printTokens=e=>Xr(e).join("");var Xn={},Xi={},Xa=RegExp(/(^[ \t]*\n)/,"gm");let Xs=e=>e.slice(0,e.indexOf("(")),Xo=e=>e.includes("(")?`${Xs(e)}(`:`${e}(`,Xu=()=>");\n",Xl=e=>"\n"===e.at(-1)?e:`${e}
|
3
|
+
`,Xc="__putout_processor_json",Xp="__putout_processor_yaml",Xd="__putout_processor_filesystem",Xf="__putout_processor_ignore",Xh=`${Xc}(__object)`,Xm=`${Xp}(__object)`,Xy=`${Xd}(__object)`,Xv=`${Xf}(__array)`,Xg=[Xc,Xp,Xd,Xf];Xi.__json=Xh,Xi.__yaml=Xm,Xi.__filesystem=Xy,Xi.__ignore=Xv,Xi.__json_name=Xc,Xi.__yaml_name=Xp,Xi.__filesystem_name=Xd,Xi.__ignore_name=Xf,Xi.toJS=(e,t=Xh)=>{let r=Xo(t),n=Xu();return`${r}${e}${n}`},Xi.fromJS=(e,t=Xh)=>{e=Xl(e);let r=Xs(t);e=e.slice(e.indexOf(r));let n=Xo(t),i=Xu(),a=e.length-i.length;return Xl(e.slice(n.length,a).replace(Xa,""))},Xi.isJSON=e=>{for(let t of Xg)if(!e.indexOf(t))return!0;return!1};let{types:Xb}=r5,{isJSON:XS}=Xi,{isCallExpression:Xx,isIdentifier:XT}=Xb;Xn.maybeJSON=(e,t)=>!function(e){let{program:t}=e;if(!t)return!1;let{body:r}=e.program;if(!r.length)return!1;let{expression:n}=e.program.body[0];if(!Xx(n))return!1;let{callee:i}=n;return!!XT(i)&&XS(i.name)}(e)?t:{...t,format:{...t?.format,quote:'"'},semantics:{...t?.semantics,trailingComma:!1,encodeSingleQuote:!1,encodeDoubleQuote:!0}};let{tokenize:XE}=el,{printTokens:X_}=Xe,{maybeJSON:XP}=Xn,{maybeVisitor:XA}=Rb;var Xk=eu.print=(e,t={})=>{!function(e){if("object"!=typeof e)throw Error("☝️Looks like ast not an object")}(e);let r=XP(e,t);return X_(XE(e,r))};eu.visitors=JT,eu.maybeVisitor=XA;var XC={exports:{}},Xw={},XI={},XN=function(e,t){return(XN=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function XO(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}XN(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var XD=function(){return(XD=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function XL(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function XM(e,t,r,n){var i,a=arguments.length,s=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(s=(a<3?i(s):a>3?i(t,r,s):i(t,r))||s);return a>3&&s&&Object.defineProperty(t,r,s),s}function XF(e,t){return function(r,n){t(r,n,e)}}function XB(e,t,r,n,i,a){function s(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var o,u=n.kind,l="getter"===u?"get":"setter"===u?"set":"value",c=!t&&e?n.static?e:e.prototype:null,p=t||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),d=!1,f=r.length-1;f>=0;f--){var h={};for(var m in n)h[m]="access"===m?{}:n[m];for(var m in n.access)h.access[m]=n.access[m];h.addInitializer=function(e){if(d)throw TypeError("Cannot add initializers after decoration has completed");a.push(s(e||null))};var y=(0,r[f])("accessor"===u?{get:p.get,set:p.set}:p[l],h);if("accessor"===u){if(void 0===y)continue;if(null===y||"object"!=typeof y)throw TypeError("Object expected");(o=s(y.get))&&(p.get=o),(o=s(y.set))&&(p.set=o),(o=s(y.init))&&i.unshift(o)}else(o=s(y))&&("field"===u?i.unshift(o):p[l]=o)}c&&Object.defineProperty(c,n.name,p),d=!0}function XR(e,t,r){for(var n=arguments.length>2,i=0;i<t.length;i++)r=n?t[i].call(e,r):t[i].call(e);return n?r:void 0}function Xj(e){return"symbol"==typeof e?e:"".concat(e)}function XU(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function XV(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function XW(e,t,r,n){return new(r||(r=Promise))(function(i,a){function s(e){try{u(n.next(e))}catch(e){a(e)}}function o(e){try{u(n.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}u((n=n.apply(e,t||[])).next())})}function Xq(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=o(0),s.throw=o(1),s.return=o(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(o){return function(u){return function(o){if(r)throw TypeError("Generator is already executing.");for(;s&&(s=0,o[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}}var XJ=Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function XX(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||XJ(t,e,r)}function XG(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function XK(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return s}function XH(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(XK(arguments[t]));return e}function Xz(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var a=arguments[t],s=0,o=a.length;s<o;s++,i++)n[i]=a[s];return n}function X$(e,t,r){if(r||2==arguments.length)for(var n,i=0,a=t.length;i<a;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function XY(e){return this instanceof XY?(this.v=e,this):new XY(e)}function XQ(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),a=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",function(e){return function(t){return Promise.resolve(t).then(e,l)}}),n[Symbol.asyncIterator]=function(){return this},n;function s(e,t){i[e]&&(n[e]=function(t){return new Promise(function(r,n){a.push([e,t,r,n])>1||o(e,t)})},t&&(n[e]=t(n[e])))}function o(e,t){try{var r;(r=i[e](t)).value instanceof XY?Promise.resolve(r.value.v).then(u,l):c(a[0][2],r)}catch(e){c(a[0][3],e)}}function u(e){o("next",e)}function l(e){o("throw",e)}function c(e,t){e(t),a.shift(),a.length&&o(a[0][0],a[0][1])}}function XZ(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:XY(e[n](t)),done:!1}:i?i(t):t}:i}}function X0(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=XG(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){!function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}(n,i,(t=e[r](t)).done,t.value)})}}}function X1(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var X2=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},X3=function(e){return(X3=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t})(e)};function X4(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=X3(e),n=0;n<r.length;n++)"default"!==r[n]&&XJ(t,e,r[n]);return X2(t,e),t}function X5(e){return e&&e.__esModule?e:{default:e}}function X8(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function X6(e,t,r,n,i){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r}function X9(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function X7(e,t,r){if(null!=t){var n,i;if("object"!=typeof t&&"function"!=typeof t)throw TypeError("Object expected.");if(r){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(i=n)}if("function"!=typeof n)throw TypeError("Object not disposable.");i&&(n=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var Ge="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function Gt(e){function t(t){e.error=e.hasError?new Ge(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var r,n=0;return function i(){for(;r=e.stack.pop();)try{if(!r.async&&1===n)return n=0,e.stack.push(r),Promise.resolve().then(i);if(r.dispose){var a=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(a).then(i,function(e){return t(e),i()})}else n|=1}catch(e){t(e)}if(1===n)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function Gr(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,r,n,i,a){return r?t?".jsx":".js":!n||i&&a?n+i+"."+a.toLowerCase()+"js":e}):e}var Gn={__extends:XO,__assign:XD,__rest:XL,__decorate:XM,__param:XF,__esDecorate:XB,__runInitializers:XR,__propKey:Xj,__setFunctionName:XU,__metadata:XV,__awaiter:XW,__generator:Xq,__createBinding:XJ,__exportStar:XX,__values:XG,__read:XK,__spread:XH,__spreadArrays:Xz,__spreadArray:X$,__await:XY,__asyncGenerator:XQ,__asyncDelegator:XZ,__asyncValues:X0,__makeTemplateObject:X1,__importStar:X4,__importDefault:X5,__classPrivateFieldGet:X8,__classPrivateFieldSet:X6,__classPrivateFieldIn:X9,__addDisposableResource:X7,__disposeResources:Gt,__rewriteRelativeImportExtension:Gr},Gi=/*@__PURE__*/eo(/*#__PURE__*/Object.freeze({__proto__:null,__addDisposableResource:X7,get __assign(){return XD},__asyncDelegator:XZ,__asyncGenerator:XQ,__asyncValues:X0,__await:XY,__awaiter:XW,__classPrivateFieldGet:X8,__classPrivateFieldIn:X9,__classPrivateFieldSet:X6,__createBinding:XJ,__decorate:XM,__disposeResources:Gt,__esDecorate:XB,__exportStar:XX,__extends:XO,__generator:Xq,__importDefault:X5,__importStar:X4,__makeTemplateObject:X1,__metadata:XV,__param:XF,__propKey:Xj,__read:XK,__rest:XL,__rewriteRelativeImportExtension:Gr,__runInitializers:XR,__setFunctionName:XU,__spread:XH,__spreadArray:X$,__spreadArrays:Xz,__values:XG,default:Gn})),Ga=/*@__PURE__*/eo(/*#__PURE__*/Object.freeze({__proto__:null,default:{}})),Gs={},Go={exports:{}},Gu={exports:{}},Gl={};function Gc(){if(t)return Gl;t=1,Object.defineProperty(Gl,"__esModule",{value:!0}),Gl.maybeSetModuleExports=void 0;var e=Gi.__importDefault(Gp());return Gl.default=function(t){var r=t.use(e.default),n=r.Type,i=r.builtInTypes,a=i.number,s=n.or(i.string,i.number,i.boolean,i.null,i.undefined);return{geq:function(e){return n.from(function(t){return a.check(t)&&t>=e},a+" >= "+e)},defaults:{null:function(){return null},emptyArray:function(){return[]},false:function(){return!1},true:function(){return!0},undefined:function(){},"use strict":function(){return"use strict"}},isPrimitive:n.from(function(e){if(null===e)return!0;var t=typeof e;return"object"!==t&&"function"!==t},s.toString())}},Gl.maybeSetModuleExports=function(e){try{var t=e(),r=t.exports,n=r.default}catch(e){return}n&&n!==r&&"object"==typeof r&&(Object.assign(n,r,{default:n}),r.__esModule&&Object.defineProperty(n,"__esModule",{value:!0}),t.exports=n)},Gl}function Gp(){return r||(r=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Def=void 0;var r=Gc(),n=Object.prototype,i=n.toString,a=n.hasOwnProperty,s=function(){function e(){}return e.prototype.assert=function(e,t){if(!this.check(e,t))throw Error(h(e)+" does not match type "+this);return!0},e.prototype.arrayOf=function(){return new o(this)},e}(),o=function(e){function t(t){var r=e.call(this)||this;return r.elemType=t,r.kind="ArrayType",r}return Gi.__extends(t,e),t.prototype.toString=function(){return"["+this.elemType+"]"},t.prototype.check=function(e,t){var r=this;return Array.isArray(e)&&e.every(function(e){return r.elemType.check(e,t)})},t}(s),u=function(e){function t(t){var r=e.call(this)||this;return r.value=t,r.kind="IdentityType",r}return Gi.__extends(t,e),t.prototype.toString=function(){return String(this.value)},t.prototype.check=function(e,t){var r=e===this.value;return r||"function"!=typeof t||t(this,e),r},t}(s),l=function(e){function t(t){var r=e.call(this)||this;return r.fields=t,r.kind="ObjectType",r}return Gi.__extends(t,e),t.prototype.toString=function(){return"{ "+this.fields.join(", ")+" }"},t.prototype.check=function(e,t){return i.call(e)===i.call({})&&this.fields.every(function(r){return r.type.check(e[r.name],t)})},t}(s),c=function(e){function t(t){var r=e.call(this)||this;return r.types=t,r.kind="OrType",r}return Gi.__extends(t,e),t.prototype.toString=function(){return this.types.join(" | ")},t.prototype.check=function(e,t){return!!this.types.some(function(r){return r.check(e,!!t)})||("function"==typeof t&&t(this,e),!1)},t}(s),p=function(e){function t(t,r){var n=e.call(this)||this;return n.name=t,n.predicate=r,n.kind="PredicateType",n}return Gi.__extends(t,e),t.prototype.toString=function(){return this.name},t.prototype.check=function(e,t){var r=this.predicate(e,t);return r||"function"!=typeof t||t(this,e),r},t}(s),d=function(){function e(e,t){this.type=e,this.typeName=t,this.baseNames=[],this.ownFields=Object.create(null),this.allSupertypes=Object.create(null),this.supertypeList=[],this.allFields=Object.create(null),this.fieldNames=[],this.finalized=!1,this.buildable=!1,this.buildParams=[]}return e.prototype.isSupertypeOf=function(t){if(t instanceof e){if(!0!==this.finalized||!0!==t.finalized)throw Error("");return a.call(t.allSupertypes,this.typeName)}throw Error(t+" is not a Def")},e.prototype.checkAllFields=function(e,t){var r=this.allFields;if(!0!==this.finalized)throw Error(""+this.typeName);return null!==e&&"object"==typeof e&&Object.keys(r).every(function(n){var i=r[n],a=i.type,s=i.getValue(e);return a.check(s,t)})},e.prototype.bases=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=this.baseNames;if(this.finalized){if(e.length!==r.length)throw Error("");for(var n=0;n<e.length;n++)if(e[n]!==r[n])throw Error("");return this}return e.forEach(function(e){0>r.indexOf(e)&&r.push(e)}),this},e}();t.Def=d;var f=function(){function e(e,t,r,n){this.name=e,this.type=t,this.defaultFn=r,this.hidden=!!n}return e.prototype.toString=function(){return JSON.stringify(this.name)+": "+this.type},e.prototype.getValue=function(e){var t=e[this.name];return void 0!==t||"function"==typeof this.defaultFn&&(t=this.defaultFn.call(e)),t},e}();function h(e){return Array.isArray(e)?"["+e.map(h).join(", ")+"]":e&&"object"==typeof e?"{ "+Object.keys(e).map(function(t){return t+": "+e[t]}).join(", ")+" }":JSON.stringify(e)}t.default=function(e){var t={or:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new c(e.map(function(e){return t.from(e)}))},from:function(e,i){if(e instanceof o||e instanceof u||e instanceof l||e instanceof c||e instanceof p)return e;if(e instanceof d)return e.type;if(v.check(e)){if(1!==e.length)throw Error("only one element type is permitted for typed arrays");return new o(t.from(e[0]))}if(g.check(e))return new l(Object.keys(e).map(function(r){return new f(r,t.from(e[r],r))}));if("function"==typeof e){var a=r.indexOf(e);if(a>=0)return n[a];if("string"!=typeof i)throw Error("missing name");return new p(i,e)}return new u(e)},def:function(e){return a.call(A,e)?A[e]:A[e]=new C(e)},hasDef:function(e){return a.call(A,e)}},r=[],n=[];function s(e,t){var a=i.call(t),s=new p(e,function(e){return i.call(e)===a});return t&&"function"==typeof t.constructor&&(r.push(t.constructor),n.push(s)),s}var m=s("string","truthy"),y=s("function",function(){}),v=s("array",[]),g=s("object",{}),b=s("RegExp",/./),S=s("Date",new Date),x=s("number",3),T=s("boolean",!0),E=s("null",null),_=s("undefined",void 0),P="function"==typeof BigInt?s("BigInt",BigInt(1234)):new p("BigInt",function(){return!1}),A=Object.create(null);function k(e){if(e&&"object"==typeof e){var t=e.type;if("string"==typeof t&&a.call(A,t)){var r=A[t];if(r.finalized)return r}}return null}var C=function(e){function r(t){var r=e.call(this,new p(t,function(e,t){return r.check(e,t)}),t)||this;return r}return Gi.__extends(r,e),r.prototype.check=function(e,t){if(!0!==this.finalized)throw Error("prematurely checking unfinalized type "+this.typeName);if(null===e||"object"!=typeof e)return!1;var r=k(e);return r?t&&r===this?this.checkAllFields(e,t):!!this.isSupertypeOf(r)&&(!t||r.checkAllFields(e,t)&&this.checkAllFields(e,!1)):("SourceLocation"===this.typeName||"Position"===this.typeName)&&this.checkAllFields(e,t)},r.prototype.build=function(){for(var e=this,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.buildParams=t,this.buildable)return this;this.field("type",String,function(){return e.typeName}),this.buildable=!0;var n=function(t,r,n,i){if(!a.call(t,r)){var s,o=e.allFields;if(!a.call(o,r))throw Error(""+r);var u=o[r],l=u.type;if(i)s=n;else if(u.defaultFn)s=u.defaultFn.call(t);else throw Error("no value or default function given for field "+JSON.stringify(r)+" of "+e.typeName+"("+e.buildParams.map(function(e){return o[e]}).join(", ")+")");if(!l.check(s))throw Error(h(s)+" does not match field "+u+" of type "+e.typeName);t[r]=s}},i=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var i=t.length;if(!e.finalized)throw Error("attempting to instantiate unfinalized type "+e.typeName);var a=Object.create(I);if(e.buildParams.forEach(function(e,r){r<i?n(a,e,t[r],!0):n(a,e,null,!1)}),Object.keys(e.allFields).forEach(function(e){n(a,e,null,!1)}),a.type!==e.typeName)throw Error("");return a};return i.from=function(t){if(!e.finalized)throw Error("attempting to instantiate unfinalized type "+e.typeName);var r=Object.create(I);if(Object.keys(e.allFields).forEach(function(e){a.call(t,e)?n(r,e,t[e],!0):n(r,e,null,!1)}),r.type!==e.typeName)throw Error("");return r},Object.defineProperty(w,N(this.typeName),{enumerable:!0,value:i}),this},r.prototype.field=function(e,r,n,i){return this.finalized?console.error("Ignoring attempt to redefine field "+JSON.stringify(e)+" of finalized type "+JSON.stringify(this.typeName)):this.ownFields[e]=new f(e,t.from(r),n,i),this},r.prototype.finalize=function(){var e=this;if(!this.finalized){var t=this.allFields,r=this.allSupertypes;for(var n in this.baseNames.forEach(function(n){var i=A[n];if(i instanceof d)i.finalize(),F(t,i.allFields),F(r,i.allSupertypes);else throw Error("unknown supertype name "+JSON.stringify(n)+" for subtype "+JSON.stringify(e.typeName))}),F(t,this.ownFields),r[this.typeName]=this,this.fieldNames.length=0,t)a.call(t,n)&&!t[n].hidden&&this.fieldNames.push(n);Object.defineProperty(D,this.typeName,{enumerable:!0,value:this.type}),this.finalized=!0,function(e,t){t.length=0,t.push(e);for(var r=Object.create(null),n=0;n<t.length;++n){var i=A[e=t[n]];if(!0!==i.finalized)throw Error("");a.call(r,e)&&delete t[r[e]],r[e]=n,t.push.apply(t,i.baseNames)}for(var s=0,o=s,u=t.length;o<u;++o)a.call(t,o)&&(t[s++]=t[o]);t.length=s}(this.typeName,this.supertypeList),this.buildable&&this.supertypeList.lastIndexOf("Expression")>=0&&function(e){var t=O(e);if(!w[t]){var r=w[N(e)];if(r){var n=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return w.expressionStatement(r.apply(w,e))};n.from=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return w.expressionStatement(r.from.apply(w,e))},w[t]=n}}}(this.typeName)}},r}(d),w=Object.create(null),I={};function N(e){return e.replace(/^[A-Z]+/,function(e){var t=e.length;switch(t){case 0:return"";case 1:return e.toLowerCase();default:return e.slice(0,t-1).toLowerCase()+e.charAt(t-1)}})}function O(e){return(e=N(e)).replace(/(Expression)?$/,"Statement")}var D={};function L(e){var t=k(e);if(t)return t.fieldNames.slice(0);if("type"in e)throw Error("did not recognize object of type "+JSON.stringify(e.type));return Object.keys(e)}function M(e,t){var r=k(e);if(r){var n=r.allFields[t];if(n)return n.getValue(e)}return e&&e[t]}function F(e,t){return Object.keys(t).forEach(function(r){e[r]=t[r]}),e}return{Type:t,builtInTypes:{string:m,function:y,array:v,object:g,RegExp:b,Date:S,number:x,boolean:T,null:E,undefined:_,BigInt:P},getSupertypeNames:function(e){if(!a.call(A,e))throw Error("");var t=A[e];if(!0!==t.finalized)throw Error("");return t.supertypeList.slice(1)},computeSupertypeLookupTable:function(e){for(var t={},r=Object.keys(A),n=r.length,i=0;i<n;++i){var s=r[i],o=A[s];if(!0!==o.finalized)throw Error(""+s);for(var u=0;u<o.supertypeList.length;++u){var l=o.supertypeList[u];if(a.call(e,l)){t[s]=l;break}}}return t},builders:w,defineMethod:function(e,t){var r=I[e];return _.check(t)?delete I[e]:(y.assert(t),Object.defineProperty(I,e,{enumerable:!0,configurable:!0,value:t})),r},getBuilderName:N,getStatementBuilderName:O,namedTypes:D,getFieldNames:L,getFieldValue:M,eachField:function(e,t,r){L(e).forEach(function(r){t.call(this,r,M(e,r))},r)},someField:function(e,t,r){return L(e).some(function(r){return t.call(this,r,M(e,r))},r)},finalize:function(){Object.keys(A).forEach(function(e){A[e].finalize()})}}},(0,r.maybeSetModuleExports)(function(){return e})}(Gu,Gu.exports)),Gu.exports}Gu.exports;var Gd={exports:{}},Gf={exports:{}},Gh={exports:{}};function Gm(){var e,t,r,i;return n||(n=1,Object.defineProperty(e=Gh.exports,"__esModule",{value:!0}),t=Gc(),r=Gi.__importDefault(Gp()),i=Object.prototype.hasOwnProperty,e.default=function(e){var t=e.use(r.default),n=t.builtInTypes.array,a=t.builtInTypes.number,s=function e(t,r,n){if(!(this instanceof e))throw Error("Path constructor cannot be invoked without 'new'");if(r){if(!(r instanceof e))throw Error("")}else r=null,n=null;this.value=t,this.parentPath=r,this.name=n,this.__childCache=null},o=s.prototype;function u(e){return e.__childCache||(e.__childCache=Object.create(null))}function l(){}function c(e,t,r,s){if(n.assert(e.value),0===t)return l;var o=e.value.length;if(o<1)return l;var c=arguments.length;2===c?(r=0,s=o):3===c?(r=Math.max(r,0),s=o):(r=Math.max(r,0),s=Math.min(s,o)),a.assert(r),a.assert(s);for(var p=Object.create(null),d=u(e),f=r;f<s;++f)if(i.call(e.value,f)){var h=e.get(f);if(h.name!==f)throw Error("");var m=f+t;h.name=m,p[m]=h,delete d[f]}return delete d.length,function(){for(var t in p){var r=p[t];if(r.name!==+t)throw Error("");d[t]=r,e.value[t]=r.value}}}return o.getValueProperty=function(e){return this.value[e]},o.get=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=this,n=e.length,a=0;a<n;++a)r=function(e,t){var r=u(e),n=e.getValueProperty(t),a=r[t];return i.call(r,t)&&a.value===n||(a=r[t]=new e.constructor(n,e,t)),a}(r,e[a]);return r},o.each=function(e,t){for(var r=[],n=this.value.length,a=0,a=0;a<n;++a)i.call(this.value,a)&&(r[a]=this.get(a));for(a=0,t=t||this;a<n;++a)i.call(r,a)&&e.call(t,r[a])},o.map=function(e,t){var r=[];return this.each(function(t){r.push(e.call(this,t))},t),r},o.filter=function(e,t){var r=[];return this.each(function(t){e.call(this,t)&&r.push(t)},t),r},o.shift=function(){var e=c(this,-1),t=this.value.shift();return e(),t},o.unshift=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=c(this,e.length),n=this.value.unshift.apply(this.value,e);return r(),n},o.push=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.assert(this.value),delete u(this).length,this.value.push.apply(this.value,e)},o.pop=function(){n.assert(this.value);var e=u(this);return delete e[this.value.length-1],delete e.length,this.value.pop()},o.insertAt=function(e){var t=arguments.length,r=c(this,t-1,e);if(r===l&&t<=1)return this;e=Math.max(e,0);for(var n=1;n<t;++n)this.value[e+n-1]=arguments[n];return r(),this},o.insertBefore=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=this.parentPath,n=e.length,i=[this.name],a=0;a<n;++a)i.push(e[a]);return r.insertAt.apply(r,i)},o.insertAfter=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=this.parentPath,n=e.length,i=[this.name+1],a=0;a<n;++a)i.push(e[a]);return r.insertAt.apply(r,i)},o.replace=function(e){var t=[],r=this.parentPath.value,i=u(this.parentPath),a=arguments.length;if(function(e){if(!(e instanceof s))throw Error("");var t=e.parentPath;if(t){var r=t.value,i=u(t);if(r[e.name]===e.value)i[e.name]=e;else if(n.check(r)){var a=r.indexOf(e.value);a>=0&&(i[e.name=a]=e)}else r[e.name]=e.value,i[e.name]=e;if(r[e.name]!==e.value||e.parentPath.get(e.name)!==e)throw Error("")}}(this),n.check(r)){for(var o=r.length,l=c(this.parentPath,a-1,this.name+1),p=[this.name,1],d=0;d<a;++d)p.push(arguments[d]);if(r.splice.apply(r,p)[0]!==this.value||r.length!==o-1+a)throw Error("");if(l(),0===a)delete this.value,delete i[this.name],this.__childCache=null;else{if(r[this.name]!==e)throw Error("");for(this.value!==e&&(this.value=e,this.__childCache=null),d=0;d<a;++d)t.push(this.parentPath.get(this.name+d));if(t[0]!==this)throw Error("")}}else if(1===a)this.value!==e&&(this.__childCache=null),this.value=r[this.name]=e,t.push(this);else if(0===a)delete r[this.name],delete this.value,this.__childCache=null;else throw Error("Could not replace path");return t},s},(0,t.maybeSetModuleExports)(function(){return Gh})),Gh.exports}Gh.exports;var Gy={exports:{}};function Gv(){var e,t,r,n,s,o,u,l,c;return a||(a=1,Object.defineProperty(e=Gf.exports,"__esModule",{value:!0}),t=Gi.__importDefault(Gp()),r=Gi.__importDefault(Gm()),n=Gi.__importDefault((i||(i=1,Object.defineProperty(o=Gy.exports,"__esModule",{value:!0}),u=Gc(),l=Gi.__importDefault(Gp()),c=Object.prototype.hasOwnProperty,o.default=function(e){var t=e.use(l.default),r=t.Type,n=t.namedTypes,i=n.Node,a=n.Expression,s=t.builtInTypes.array,o=t.builders,u=function e(t,r){var n;if(!(this instanceof e))throw Error("Scope constructor cannot be invoked without 'new'");if(d.check(t.value)||p.assert(t.value),r){if(!(r instanceof e))throw Error("");n=r.depth+1}else r=null,n=0;Object.defineProperties(this,{path:{value:t},node:{value:t.value},isGlobal:{value:!r,enumerable:!0},depth:{value:n},parent:{value:r},bindings:{value:{}},types:{value:{}}})},p=r.or(n.Program,n.Function,n.CatchClause),d=r.or(n.Function,n.ClassDeclaration,n.ClassExpression,n.InterfaceDeclaration,n.TSInterfaceDeclaration,n.TypeAlias,n.TSTypeAliasDeclaration),f=r.or(n.TypeParameter,n.TSTypeParameter);u.isEstablishedBy=function(e){return p.check(e)||d.check(e)};var h=u.prototype;function m(e,r,o){var u=e.value;e.parent&&n.FunctionExpression.check(e.parent.node)&&e.parent.node.id&&v(e.parent.get("id"),r),u&&(s.check(u)?e.each(function(e){y(e,r,o)}):n.Function.check(u)?(e.get("params").each(function(e){v(e,r)}),y(e.get("body"),r,o),m(e.get("typeParameters"),r,o)):n.TypeAlias&&n.TypeAlias.check(u)||n.InterfaceDeclaration&&n.InterfaceDeclaration.check(u)||n.TSTypeAliasDeclaration&&n.TSTypeAliasDeclaration.check(u)||n.TSInterfaceDeclaration&&n.TSInterfaceDeclaration.check(u)?g(e.get("id"),o):n.VariableDeclarator.check(u)?(v(e.get("id"),r),y(e.get("init"),r,o)):"ImportSpecifier"===u.type||"ImportNamespaceSpecifier"===u.type||"ImportDefaultSpecifier"===u.type?v(e.get(u.local?"local":u.name?"name":"id"),r):i.check(u)&&!a.check(u)&&t.eachField(u,function(t,n){var i=e.get(t);if(!(i.value===n||Array.isArray(i.value)&&0===i.value.length&&Array.isArray(n)&&0===n.length))throw Error("");y(i,r,o)}))}function y(e,t,r){var i=e.value;if(!i||a.check(i));else if(n.FunctionDeclaration.check(i)&&null!==i.id)v(e.get("id"),t);else if(n.ClassDeclaration&&n.ClassDeclaration.check(i)&&null!==i.id)v(e.get("id"),t),m(e.get("typeParameters"),t,r);else if(n.InterfaceDeclaration&&n.InterfaceDeclaration.check(i)||n.TSInterfaceDeclaration&&n.TSInterfaceDeclaration.check(i))g(e.get("id"),r);else if(p.check(i)){if(n.CatchClause.check(i)&&n.Identifier.check(i.param)){var s=i.param.name,o=c.call(t,s);m(e.get("body"),t,r),o||delete t[s]}}else m(e,t,r)}function v(e,t){var r=e.value;n.Pattern.assert(r),n.Identifier.check(r)?c.call(t,r.name)?t[r.name].push(e):t[r.name]=[e]:n.AssignmentPattern&&n.AssignmentPattern.check(r)?v(e.get("left"),t):n.ObjectPattern&&n.ObjectPattern.check(r)?e.get("properties").each(function(e){var r=e.value;n.Pattern.check(r)?v(e,t):n.Property.check(r)||n.ObjectProperty&&n.ObjectProperty.check(r)?v(e.get("value"),t):n.SpreadProperty&&n.SpreadProperty.check(r)&&v(e.get("argument"),t)}):n.ArrayPattern&&n.ArrayPattern.check(r)?e.get("elements").each(function(e){var r=e.value;n.Pattern.check(r)?v(e,t):n.SpreadElement&&n.SpreadElement.check(r)&&v(e.get("argument"),t)}):n.PropertyPattern&&n.PropertyPattern.check(r)?v(e.get("pattern"),t):(n.SpreadElementPattern&&n.SpreadElementPattern.check(r)||n.RestElement&&n.RestElement.check(r)||n.SpreadPropertyPattern&&n.SpreadPropertyPattern.check(r))&&v(e.get("argument"),t)}function g(e,t){var r=e.value;n.Pattern.assert(r),n.Identifier.check(r)&&(c.call(t,r.name)?t[r.name].push(e):t[r.name]=[e])}return h.didScan=!1,h.declares=function(e){return this.scan(),c.call(this.bindings,e)},h.declaresType=function(e){return this.scan(),c.call(this.types,e)},h.declareTemporary=function(e){if(e){if(!/^[a-z$_]/i.test(e))throw Error("")}else e="t$";e+=this.depth.toString(36)+"$",this.scan();for(var r=0;this.declares(e+r);)++r;var n=e+r;return this.bindings[n]=t.builders.identifier(n)},h.injectTemporary=function(e,t){e||(e=this.declareTemporary());var r=this.path.get("body");return n.BlockStatement.check(r.value)&&(r=r.get("body")),r.unshift(o.variableDeclaration("var",[o.variableDeclarator(e,t||null)])),e},h.scan=function(e){if(e||!this.didScan){for(var t in this.bindings)delete this.bindings[t];for(var t in this.types)delete this.types[t];(function(e,t,r){var i=e.value;if(d.check(i)){var a=e.get("typeParameters","params");s.check(a.value)&&a.each(function(e){var t;t=e.value,f.assert(t),c.call(r,t.name)?r[t.name].push(e):r[t.name]=[e]})}p.check(i)&&(n.CatchClause.check(i)?v(e.get("param"),t):m(e,t,r))})(this.path,this.bindings,this.types),this.didScan=!0}},h.getBindings=function(){return this.scan(),this.bindings},h.getTypes=function(){return this.scan(),this.types},h.lookup=function(e){for(var t=this;t&&!t.declares(e);t=t.parent);return t},h.lookupType=function(e){for(var t=this;t&&!t.declaresType(e);t=t.parent);return t},h.getGlobalScope=function(){for(var e=this;!e.isGlobal;)e=e.parent;return e},u},(0,u.maybeSetModuleExports)(function(){return Gy})),Gy.exports)),s=Gc(),e.default=function(e){var i=e.use(t.default),a=i.namedTypes,s=i.builders,o=i.builtInTypes.number,u=i.builtInTypes.array,l=e.use(r.default),c=e.use(n.default),p=function e(t,r,n){if(!(this instanceof e))throw Error("NodePath constructor cannot be invoked without 'new'");l.call(this,t,r,n)},d=p.prototype=Object.create(l.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}});Object.defineProperties(d,{node:{get:function(){return Object.defineProperty(this,"node",{configurable:!0,value:this._computeNode()}),this.node}},parent:{get:function(){return Object.defineProperty(this,"parent",{configurable:!0,value:this._computeParent()}),this.parent}},scope:{get:function(){return Object.defineProperty(this,"scope",{configurable:!0,value:this._computeScope()}),this.scope}}}),d.replace=function(){return delete this.node,delete this.parent,delete this.scope,l.prototype.replace.apply(this,arguments)},d.prune=function(){var e=this.parent;return this.replace(),function(e){if(a.VariableDeclaration.check(e.node)){var t=e.get("declarations").value;if(!t||0===t.length)return e.prune()}else if(a.ExpressionStatement.check(e.node)){if(!e.get("expression").value)return e.prune()}else a.IfStatement.check(e.node)&&function(e){var t=e.get("test").value,r=e.get("alternate").value,n=e.get("consequent").value;if(n||r){if(!n&&r){var i=s.unaryExpression("!",t,!0);a.UnaryExpression.check(t)&&"!"===t.operator&&(i=t.argument),e.get("test").replace(i),e.get("consequent").replace(r),e.get("alternate").replace()}}else{var o=s.expressionStatement(t);e.replace(o)}}(e);return e}(e)},d._computeNode=function(){var e=this.value;if(a.Node.check(e))return e;var t=this.parentPath;return t&&t.node||null},d._computeParent=function(){var e=this.value,t=this.parentPath;if(!a.Node.check(e)){for(;t&&!a.Node.check(t.value);)t=t.parentPath;t&&(t=t.parentPath)}for(;t&&!a.Node.check(t.value);)t=t.parentPath;return t||null},d._computeScope=function(){var e=this.value,t=this.parentPath,r=t&&t.scope;return a.Node.check(e)&&c.isEstablishedBy(e)&&(r=new c(this,r)),r||null},d.getValueProperty=function(e){return i.getFieldValue(this.value,e)},d.needsParens=function(e){var t=this.parentPath;if(!t)return!1;var r=this.value;if(!a.Expression.check(r)||"Identifier"===r.type)return!1;for(;!a.Node.check(t.value);)if(!(t=t.parentPath))return!1;var n=t.value;switch(r.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return"MemberExpression"===n.type&&"object"===this.name&&n.object===r;case"BinaryExpression":case"LogicalExpression":switch(n.type){case"CallExpression":return"callee"===this.name&&n.callee===r;case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return!0;case"MemberExpression":return"object"===this.name&&n.object===r;case"BinaryExpression":case"LogicalExpression":var s=f[n.operator],l=f[r.operator];if(s>l)return!0;if(s===l&&"right"===this.name){if(n.right!==r)throw Error("Nodes must be equal");return!0}default:return!1}case"SequenceExpression":switch(n.type){case"ForStatement":return!1;case"ExpressionStatement":return"expression"!==this.name;default:return!0}case"YieldExpression":switch(n.type){case"BinaryExpression":case"LogicalExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"CallExpression":case"MemberExpression":case"NewExpression":case"ConditionalExpression":case"YieldExpression":return!0;default:return!1}case"Literal":return"MemberExpression"===n.type&&o.check(r.value)&&"object"===this.name&&n.object===r;case"AssignmentExpression":case"ConditionalExpression":switch(n.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":return!0;case"CallExpression":return"callee"===this.name&&n.callee===r;case"ConditionalExpression":return"test"===this.name&&n.test===r;case"MemberExpression":return"object"===this.name&&n.object===r;default:return!1}default:if("NewExpression"===n.type&&"callee"===this.name&&n.callee===r)return function e(t){return!!a.CallExpression.check(t)||(u.check(t)?t.some(e):!!a.Node.check(t)&&i.someField(t,function(t,r){return e(r)}))}(r)}return!!(!0!==e&&!this.canBeFirstInStatement()&&this.firstInStatement())};var f={};return[["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"]].forEach(function(e,t){e.forEach(function(e){f[e]=t})}),d.canBeFirstInStatement=function(){var e=this.node;return!a.FunctionExpression.check(e)&&!a.ObjectExpression.check(e)},d.firstInStatement=function(){return function(e){for(var t,r;e.parent;e=e.parent){if(t=e.node,r=e.parent.node,a.BlockStatement.check(r)&&"body"===e.parent.name&&0===e.name){if(r.body[0]!==t)throw Error("Nodes must be equal");break}if(a.ExpressionStatement.check(r)&&"expression"===e.name){if(r.expression!==t)throw Error("Nodes must be equal");break}if(a.SequenceExpression.check(r)&&"expressions"===e.parent.name&&0===e.name){if(r.expressions[0]!==t)throw Error("Nodes must be equal");continue}if(a.CallExpression.check(r)&&"callee"===e.name){if(r.callee!==t)throw Error("Nodes must be equal");continue}if(a.MemberExpression.check(r)&&"object"===e.name){if(r.object!==t)throw Error("Nodes must be equal");continue}if(a.ConditionalExpression.check(r)&&"test"===e.name){if(r.test!==t)throw Error("Nodes must be equal");continue}if((a.BinaryExpression.check(r)||a.LogicalExpression.check(r))&&"left"===e.name){if(r.left!==t)throw Error("Nodes must be equal");continue}if(a.UnaryExpression.check(r)&&!r.prefix&&"argument"===e.name){if(r.argument!==t)throw Error("Nodes must be equal");continue}return!1}return!0}(this)},p},(0,s.maybeSetModuleExports)(function(){return Gf})),Gf.exports}Gy.exports,Gf.exports,Gd.exports;var Gg={exports:{}};Gg.exports,Go.exports;var Gb={exports:{}},GS={exports:{}},Gx={exports:{}},GT={exports:{}},GE={exports:{}},G_={exports:{}},GP={exports:{}};function GA(){var e,t;return l||(l=1,Object.defineProperty(e=GP.exports,"__esModule",{value:!0}),t=Gc(),e.default=function(){return{BinaryOperators:["==","!=","===","!==","<","<=",">",">=","<<",">>",">>>","+","-","*","/","%","&","|","^","in","instanceof"],AssignmentOperators:["=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","|=","^=","&="],LogicalOperators:["||","&&"]}},(0,t.maybeSetModuleExports)(function(){return GP})),GP.exports}function Gk(){var e,t,r;return c||(c=1,Object.defineProperty(e=G_.exports,"__esModule",{value:!0}),t=Gc(),r=Gi.__importDefault(GA()),e.default=function(e){var t=e.use(r.default);return 0>t.BinaryOperators.indexOf("**")&&t.BinaryOperators.push("**"),0>t.AssignmentOperators.indexOf("**=")&&t.AssignmentOperators.push("**="),t},(0,t.maybeSetModuleExports)(function(){return G_})),G_.exports}function GC(){var e,t,r;return p||(p=1,Object.defineProperty(e=GE.exports,"__esModule",{value:!0}),t=Gc(),r=Gi.__importDefault(Gk()),e.default=function(e){var t=e.use(r.default);return 0>t.LogicalOperators.indexOf("??")&&t.LogicalOperators.push("??"),t},(0,t.maybeSetModuleExports)(function(){return GE})),GE.exports}GP.exports,G_.exports,GE.exports,GT.exports;var Gw={exports:{}},GI={exports:{}},GN={exports:{}},GO={exports:{}},GD={exports:{}},GL={exports:{}},GM={exports:{}};function GF(){var e,t,r,n,i,a,s,o,u,l,c,p,E,_,P,A,k,C,w,I,N,O,D,L,M,F,B,R,j,U,V,W,q,J,X,G,K,H,z,$,Y,Q,Z,ee;return T||(T=1,Object.defineProperty(e=Gb.exports,"__esModule",{value:!0}),t=Gi.__importDefault(Gp()),r=Gi.__importStar(Gc()),n=Gi.__importDefault((x||(x=1,Object.defineProperty(i=GS.exports,"__esModule",{value:!0}),a=Gi.__importDefault((S||(S=1,Object.defineProperty(u=Gx.exports,"__esModule",{value:!0}),l=Gi.__importDefault((d||(d=1,Object.defineProperty(E=GT.exports,"__esModule",{value:!0}),_=Gc(),P=Gi.__importDefault(GC()),E.default=function(e){var t=e.use(P.default);return t.LogicalOperators.forEach(function(e){var r=e+"=";0>t.AssignmentOperators.indexOf(r)&&t.AssignmentOperators.push(r)}),t},(0,_.maybeSetModuleExports)(function(){return GT})),GT.exports)),c=Gi.__importDefault((b||(b=1,Object.defineProperty(A=Gw.exports,"__esModule",{value:!0}),k=Gi.__importDefault(GC()),C=Gi.__importDefault((g||(g=1,Object.defineProperty(N=GI.exports,"__esModule",{value:!0}),O=Gi.__importDefault((v||(v=1,Object.defineProperty(M=GN.exports,"__esModule",{value:!0}),F=Gi.__importDefault((y||(y=1,Object.defineProperty(j=GO.exports,"__esModule",{value:!0}),U=Gi.__importDefault((m||(m=1,Object.defineProperty(q=GD.exports,"__esModule",{value:!0}),J=Gi.__importDefault(Gk()),X=Gi.__importDefault((h||(h=1,Object.defineProperty(K=GL.exports,"__esModule",{value:!0}),H=Gi.__importDefault((f||(f=1,Object.defineProperty(Y=GM.exports,"__esModule",{value:!0}),Q=Gi.__importDefault(GA()),Z=Gi.__importDefault(Gp()),ee=Gi.__importStar(Gc()),Y.default=function(e){var t=e.use(Z.default).Type,r=t.def,n=t.or,i=e.use(ee.default),a=i.defaults,s=i.geq,o=e.use(Q.default),u=o.BinaryOperators,l=o.AssignmentOperators,c=o.LogicalOperators;r("Printable").field("loc",n(r("SourceLocation"),null),a.null,!0),r("Node").bases("Printable").field("type",String).field("comments",n([r("Comment")],null),a.null,!0),r("SourceLocation").field("start",r("Position")).field("end",r("Position")).field("source",n(String,null),a.null),r("Position").field("line",s(1)).field("column",s(0)),r("File").bases("Node").build("program","name").field("program",r("Program")).field("name",n(String,null),a.null),r("Program").bases("Node").build("body").field("body",[r("Statement")]),r("Function").bases("Node").field("id",n(r("Identifier"),null),a.null).field("params",[r("Pattern")]).field("body",r("BlockStatement")).field("generator",Boolean,a.false).field("async",Boolean,a.false),r("Statement").bases("Node"),r("EmptyStatement").bases("Statement").build(),r("BlockStatement").bases("Statement").build("body").field("body",[r("Statement")]),r("ExpressionStatement").bases("Statement").build("expression").field("expression",r("Expression")),r("IfStatement").bases("Statement").build("test","consequent","alternate").field("test",r("Expression")).field("consequent",r("Statement")).field("alternate",n(r("Statement"),null),a.null),r("LabeledStatement").bases("Statement").build("label","body").field("label",r("Identifier")).field("body",r("Statement")),r("BreakStatement").bases("Statement").build("label").field("label",n(r("Identifier"),null),a.null),r("ContinueStatement").bases("Statement").build("label").field("label",n(r("Identifier"),null),a.null),r("WithStatement").bases("Statement").build("object","body").field("object",r("Expression")).field("body",r("Statement")),r("SwitchStatement").bases("Statement").build("discriminant","cases","lexical").field("discriminant",r("Expression")).field("cases",[r("SwitchCase")]).field("lexical",Boolean,a.false),r("ReturnStatement").bases("Statement").build("argument").field("argument",n(r("Expression"),null)),r("ThrowStatement").bases("Statement").build("argument").field("argument",r("Expression")),r("TryStatement").bases("Statement").build("block","handler","finalizer").field("block",r("BlockStatement")).field("handler",n(r("CatchClause"),null),function(){return this.handlers&&this.handlers[0]||null}).field("handlers",[r("CatchClause")],function(){return this.handler?[this.handler]:[]},!0).field("guardedHandlers",[r("CatchClause")],a.emptyArray).field("finalizer",n(r("BlockStatement"),null),a.null),r("CatchClause").bases("Node").build("param","guard","body").field("param",r("Pattern")).field("guard",n(r("Expression"),null),a.null).field("body",r("BlockStatement")),r("WhileStatement").bases("Statement").build("test","body").field("test",r("Expression")).field("body",r("Statement")),r("DoWhileStatement").bases("Statement").build("body","test").field("body",r("Statement")).field("test",r("Expression")),r("ForStatement").bases("Statement").build("init","test","update","body").field("init",n(r("VariableDeclaration"),r("Expression"),null)).field("test",n(r("Expression"),null)).field("update",n(r("Expression"),null)).field("body",r("Statement")),r("ForInStatement").bases("Statement").build("left","right","body").field("left",n(r("VariableDeclaration"),r("Expression"))).field("right",r("Expression")).field("body",r("Statement")),r("DebuggerStatement").bases("Statement").build(),r("Declaration").bases("Statement"),r("FunctionDeclaration").bases("Function","Declaration").build("id","params","body").field("id",r("Identifier")),r("FunctionExpression").bases("Function","Expression").build("id","params","body"),r("VariableDeclaration").bases("Declaration").build("kind","declarations").field("kind",n("var","let","const")).field("declarations",[r("VariableDeclarator")]),r("VariableDeclarator").bases("Node").build("id","init").field("id",r("Pattern")).field("init",n(r("Expression"),null),a.null),r("Expression").bases("Node"),r("ThisExpression").bases("Expression").build(),r("ArrayExpression").bases("Expression").build("elements").field("elements",[n(r("Expression"),null)]),r("ObjectExpression").bases("Expression").build("properties").field("properties",[r("Property")]),r("Property").bases("Node").build("kind","key","value").field("kind",n("init","get","set")).field("key",n(r("Literal"),r("Identifier"))).field("value",r("Expression")),r("SequenceExpression").bases("Expression").build("expressions").field("expressions",[r("Expression")]);var p=n("-","+","!","~","typeof","void","delete");r("UnaryExpression").bases("Expression").build("operator","argument","prefix").field("operator",p).field("argument",r("Expression")).field("prefix",Boolean,a.true);var d=n.apply(void 0,u);r("BinaryExpression").bases("Expression").build("operator","left","right").field("operator",d).field("left",r("Expression")).field("right",r("Expression"));var f=n.apply(void 0,l);r("AssignmentExpression").bases("Expression").build("operator","left","right").field("operator",f).field("left",n(r("Pattern"),r("MemberExpression"))).field("right",r("Expression"));var h=n("++","--");r("UpdateExpression").bases("Expression").build("operator","argument","prefix").field("operator",h).field("argument",r("Expression")).field("prefix",Boolean);var m=n.apply(void 0,c);r("LogicalExpression").bases("Expression").build("operator","left","right").field("operator",m).field("left",r("Expression")).field("right",r("Expression")),r("ConditionalExpression").bases("Expression").build("test","consequent","alternate").field("test",r("Expression")).field("consequent",r("Expression")).field("alternate",r("Expression")),r("NewExpression").bases("Expression").build("callee","arguments").field("callee",r("Expression")).field("arguments",[r("Expression")]),r("CallExpression").bases("Expression").build("callee","arguments").field("callee",r("Expression")).field("arguments",[r("Expression")]),r("MemberExpression").bases("Expression").build("object","property","computed").field("object",r("Expression")).field("property",n(r("Identifier"),r("Expression"))).field("computed",Boolean,function(){var e=this.property.type;return"Literal"===e||"MemberExpression"===e||"BinaryExpression"===e}),r("Pattern").bases("Node"),r("SwitchCase").bases("Node").build("test","consequent").field("test",n(r("Expression"),null)).field("consequent",[r("Statement")]),r("Identifier").bases("Expression","Pattern").build("name").field("name",String).field("optional",Boolean,a.false),r("Literal").bases("Expression").build("value").field("value",n(String,Boolean,null,Number,RegExp,BigInt)),r("Comment").bases("Printable").field("value",String).field("leading",Boolean,a.true).field("trailing",Boolean,a.false)},(0,ee.maybeSetModuleExports)(function(){return GM})),GM.exports)),z=Gi.__importDefault(Gp()),$=Gi.__importStar(Gc()),K.default=function(e){e.use(H.default);var t=e.use(z.default),r=t.Type.def,n=t.Type.or,i=e.use($.default).defaults;r("Function").field("generator",Boolean,i.false).field("expression",Boolean,i.false).field("defaults",[n(r("Expression"),null)],i.emptyArray).field("rest",n(r("Identifier"),null),i.null),r("RestElement").bases("Pattern").build("argument").field("argument",r("Pattern")).field("typeAnnotation",n(r("TypeAnnotation"),r("TSTypeAnnotation"),null),i.null),r("SpreadElementPattern").bases("Pattern").build("argument").field("argument",r("Pattern")),r("FunctionDeclaration").build("id","params","body","generator","expression").field("id",n(r("Identifier"),null)),r("FunctionExpression").build("id","params","body","generator","expression"),r("ArrowFunctionExpression").bases("Function","Expression").build("params","body","expression").field("id",null,i.null).field("body",n(r("BlockStatement"),r("Expression"))).field("generator",!1,i.false),r("ForOfStatement").bases("Statement").build("left","right","body").field("left",n(r("VariableDeclaration"),r("Pattern"))).field("right",r("Expression")).field("body",r("Statement")),r("YieldExpression").bases("Expression").build("argument","delegate").field("argument",n(r("Expression"),null)).field("delegate",Boolean,i.false),r("GeneratorExpression").bases("Expression").build("body","blocks","filter").field("body",r("Expression")).field("blocks",[r("ComprehensionBlock")]).field("filter",n(r("Expression"),null)),r("ComprehensionExpression").bases("Expression").build("body","blocks","filter").field("body",r("Expression")).field("blocks",[r("ComprehensionBlock")]).field("filter",n(r("Expression"),null)),r("ComprehensionBlock").bases("Node").build("left","right","each").field("left",r("Pattern")).field("right",r("Expression")).field("each",Boolean),r("Property").field("key",n(r("Literal"),r("Identifier"),r("Expression"))).field("value",n(r("Expression"),r("Pattern"))).field("method",Boolean,i.false).field("shorthand",Boolean,i.false).field("computed",Boolean,i.false),r("ObjectProperty").field("shorthand",Boolean,i.false),r("PropertyPattern").bases("Pattern").build("key","pattern").field("key",n(r("Literal"),r("Identifier"),r("Expression"))).field("pattern",r("Pattern")).field("computed",Boolean,i.false),r("ObjectPattern").bases("Pattern").build("properties").field("properties",[n(r("PropertyPattern"),r("Property"))]),r("ArrayPattern").bases("Pattern").build("elements").field("elements",[n(r("Pattern"),null)]),r("SpreadElement").bases("Node").build("argument").field("argument",r("Expression")),r("ArrayExpression").field("elements",[n(r("Expression"),r("SpreadElement"),r("RestElement"),null)]),r("NewExpression").field("arguments",[n(r("Expression"),r("SpreadElement"))]),r("CallExpression").field("arguments",[n(r("Expression"),r("SpreadElement"))]),r("AssignmentPattern").bases("Pattern").build("left","right").field("left",r("Pattern")).field("right",r("Expression")),r("MethodDefinition").bases("Declaration").build("kind","key","value","static").field("kind",n("constructor","method","get","set")).field("key",r("Expression")).field("value",r("Function")).field("computed",Boolean,i.false).field("static",Boolean,i.false);var a=n(r("MethodDefinition"),r("VariableDeclarator"),r("ClassPropertyDefinition"),r("ClassProperty"),r("StaticBlock"));r("ClassProperty").bases("Declaration").build("key").field("key",n(r("Literal"),r("Identifier"),r("Expression"))).field("computed",Boolean,i.false),r("ClassPropertyDefinition").bases("Declaration").build("definition").field("definition",a),r("ClassBody").bases("Declaration").build("body").field("body",[a]),r("ClassDeclaration").bases("Declaration").build("id","body","superClass").field("id",n(r("Identifier"),null)).field("body",r("ClassBody")).field("superClass",n(r("Expression"),null),i.null),r("ClassExpression").bases("Expression").build("id","body","superClass").field("id",n(r("Identifier"),null),i.null).field("body",r("ClassBody")).field("superClass",n(r("Expression"),null),i.null),r("Super").bases("Expression").build(),r("Specifier").bases("Node"),r("ModuleSpecifier").bases("Specifier").field("local",n(r("Identifier"),null),i.null).field("id",n(r("Identifier"),null),i.null).field("name",n(r("Identifier"),null),i.null),r("ImportSpecifier").bases("ModuleSpecifier").build("imported","local").field("imported",r("Identifier")),r("ImportDefaultSpecifier").bases("ModuleSpecifier").build("local"),r("ImportNamespaceSpecifier").bases("ModuleSpecifier").build("local"),r("ImportDeclaration").bases("Declaration").build("specifiers","source","importKind").field("specifiers",[n(r("ImportSpecifier"),r("ImportNamespaceSpecifier"),r("ImportDefaultSpecifier"))],i.emptyArray).field("source",r("Literal")).field("importKind",n("value","type"),function(){return"value"}),r("ExportNamedDeclaration").bases("Declaration").build("declaration","specifiers","source").field("declaration",n(r("Declaration"),null)).field("specifiers",[r("ExportSpecifier")],i.emptyArray).field("source",n(r("Literal"),null),i.null),r("ExportSpecifier").bases("ModuleSpecifier").build("local","exported").field("exported",r("Identifier")),r("ExportDefaultDeclaration").bases("Declaration").build("declaration").field("declaration",n(r("Declaration"),r("Expression"))),r("ExportAllDeclaration").bases("Declaration").build("source").field("source",r("Literal")),r("TaggedTemplateExpression").bases("Expression").build("tag","quasi").field("tag",r("Expression")).field("quasi",r("TemplateLiteral")),r("TemplateLiteral").bases("Expression").build("quasis","expressions").field("quasis",[r("TemplateElement")]).field("expressions",[r("Expression")]),r("TemplateElement").bases("Node").build("value","tail").field("value",{cooked:String,raw:String}).field("tail",Boolean),r("MetaProperty").bases("Expression").build("meta","property").field("meta",r("Identifier")).field("property",r("Identifier"))},(0,$.maybeSetModuleExports)(function(){return GL})),GL.exports)),G=Gc(),q.default=function(e){e.use(J.default),e.use(X.default)},(0,G.maybeSetModuleExports)(function(){return GD})),GD.exports)),V=Gi.__importDefault(Gp()),W=Gi.__importStar(Gc()),j.default=function(e){e.use(U.default);var t=e.use(V.default).Type.def,r=e.use(W.default).defaults;t("Function").field("async",Boolean,r.false),t("AwaitExpression").bases("Expression").build("argument").field("argument",t("Expression"))},(0,W.maybeSetModuleExports)(function(){return GO})),GO.exports)),B=Gi.__importDefault(Gp()),R=Gi.__importStar(Gc()),M.default=function(e){e.use(F.default);var t=e.use(B.default),r=t.Type.def,n=t.Type.or,i=e.use(R.default).defaults;r("ForOfStatement").field("await",Boolean,i.false),r("SpreadProperty").bases("Node").build("argument").field("argument",r("Expression")),r("ObjectExpression").field("properties",[n(r("Property"),r("SpreadProperty"),r("SpreadElement"))]),r("TemplateElement").field("value",{cooked:n(String,null),raw:String}),r("SpreadPropertyPattern").bases("Pattern").build("argument").field("argument",r("Pattern")),r("ObjectPattern").field("properties",[n(r("PropertyPattern"),r("Property"),r("RestElement"),r("SpreadPropertyPattern"))])},(0,R.maybeSetModuleExports)(function(){return GN})),GN.exports)),D=Gi.__importDefault(Gp()),L=Gi.__importStar(Gc()),N.default=function(e){e.use(O.default);var t=e.use(D.default),r=t.Type.def,n=t.Type.or,i=e.use(L.default).defaults;r("CatchClause").field("param",n(r("Pattern"),null),i.null)},(0,L.maybeSetModuleExports)(function(){return GI})),GI.exports)),w=Gi.__importDefault(Gp()),I=Gi.__importStar(Gc()),A.default=function(e){e.use(k.default),e.use(C.default);var t=e.use(w.default),r=t.Type.def,n=t.Type.or,i=e.use(I.default).defaults;r("ImportExpression").bases("Expression").build("source").field("source",r("Expression")),r("ExportAllDeclaration").bases("Declaration").build("source","exported").field("source",r("Literal")).field("exported",n(r("Identifier"),null,void 0),i.null),r("ChainElement").bases("Node").field("optional",Boolean,i.false),r("CallExpression").bases("Expression","ChainElement"),r("MemberExpression").bases("Expression","ChainElement"),r("ChainExpression").bases("Expression").build("expression").field("expression",r("ChainElement")),r("OptionalCallExpression").bases("CallExpression").build("callee","arguments","optional").field("optional",Boolean,i.true),r("OptionalMemberExpression").bases("MemberExpression").build("object","property","computed","optional").field("optional",Boolean,i.true)},(0,I.maybeSetModuleExports)(function(){return Gw})),Gw.exports)),p=Gc(),u.default=function(e){e.use(l.default),e.use(c.default)},(0,p.maybeSetModuleExports)(function(){return Gx})),Gx.exports)),s=Gi.__importDefault(Gp()),o=Gc(),i.default=function(e){e.use(a.default);var t=e.use(s.default).Type.def;t("StaticBlock").bases("Declaration").build("body").field("body",[t("Statement")])},(0,o.maybeSetModuleExports)(function(){return GS})),GS.exports)),e.default=function(e){e.use(n.default);var i=e.use(t.default),a=i.Type,s=i.Type.def,o=a.or,u=e.use(r.default).defaults;s("AwaitExpression").build("argument","all").field("argument",o(s("Expression"),null)).field("all",Boolean,u.false),s("Decorator").bases("Node").build("expression").field("expression",s("Expression")),s("Property").field("decorators",o([s("Decorator")],null),u.null),s("MethodDefinition").field("decorators",o([s("Decorator")],null),u.null),s("PrivateName").bases("Expression","Pattern").build("id").field("id",s("Identifier")),s("ClassPrivateProperty").bases("ClassProperty").build("key","value").field("key",s("PrivateName")).field("value",o(s("Expression"),null),u.null),s("ImportAttribute").bases("Node").build("key","value").field("key",o(s("Identifier"),s("Literal"))).field("value",s("Expression")),["ImportDeclaration","ExportAllDeclaration","ExportNamedDeclaration"].forEach(function(e){s(e).field("assertions",[s("ImportAttribute")],u.emptyArray)}),s("RecordExpression").bases("Expression").build("properties").field("properties",[o(s("ObjectProperty"),s("ObjectMethod"),s("SpreadElement"))]),s("TupleExpression").bases("Expression").build("elements").field("elements",[o(s("Expression"),s("SpreadElement"),null)]),s("ModuleExpression").bases("Node").build("body").field("body",s("Program"))},(0,r.maybeSetModuleExports)(function(){return Gb})),Gb.exports}GM.exports,GL.exports,GD.exports,GO.exports,GN.exports,GI.exports,Gw.exports,Gx.exports,GS.exports,Gb.exports;var GB={exports:{}};GB.exports;var GR={exports:{}},Gj={exports:{}};function GU(){var e,t,r;return _||(_=1,Object.defineProperty(e=Gj.exports,"__esModule",{value:!0}),t=Gi.__importDefault(Gp()),r=Gi.__importStar(Gc()),e.default=function(e){var n=e.use(t.default),i=n.Type.def,a=n.Type.or,s=e.use(r.default).defaults,o=a(i("TypeAnnotation"),i("TSTypeAnnotation"),null),u=a(i("TypeParameterDeclaration"),i("TSTypeParameterDeclaration"),null);i("Identifier").field("typeAnnotation",o,s.null),i("ObjectPattern").field("typeAnnotation",o,s.null),i("Function").field("returnType",o,s.null).field("typeParameters",u,s.null),i("ClassProperty").build("key","value","typeAnnotation","static").field("value",a(i("Expression"),null)).field("static",Boolean,s.false).field("typeAnnotation",o,s.null),["ClassDeclaration","ClassExpression"].forEach(function(e){i(e).field("typeParameters",u,s.null).field("superTypeParameters",a(i("TypeParameterInstantiation"),i("TSTypeParameterInstantiation"),null),s.null).field("implements",a([i("ClassImplements")],[i("TSExpressionWithTypeArguments")]),s.emptyArray)})},(0,r.maybeSetModuleExports)(function(){return Gj})),Gj.exports}function GV(){var e,t,r,n,i;return P||(P=1,Object.defineProperty(e=GR.exports,"__esModule",{value:!0}),t=Gi.__importDefault(GF()),r=Gi.__importDefault(GU()),n=Gi.__importDefault(Gp()),i=Gi.__importStar(Gc()),e.default=function(e){e.use(t.default),e.use(r.default);var a=e.use(n.default),s=a.Type.def,o=a.Type.or,u=e.use(i.default).defaults;s("Flow").bases("Node"),s("FlowType").bases("Flow"),s("AnyTypeAnnotation").bases("FlowType").build(),s("EmptyTypeAnnotation").bases("FlowType").build(),s("MixedTypeAnnotation").bases("FlowType").build(),s("VoidTypeAnnotation").bases("FlowType").build(),s("SymbolTypeAnnotation").bases("FlowType").build(),s("NumberTypeAnnotation").bases("FlowType").build(),s("BigIntTypeAnnotation").bases("FlowType").build(),s("NumberLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Number).field("raw",String),s("NumericLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Number).field("raw",String),s("BigIntLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",null).field("raw",String),s("StringTypeAnnotation").bases("FlowType").build(),s("StringLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",String).field("raw",String),s("BooleanTypeAnnotation").bases("FlowType").build(),s("BooleanLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Boolean).field("raw",String),s("TypeAnnotation").bases("Node").build("typeAnnotation").field("typeAnnotation",s("FlowType")),s("NullableTypeAnnotation").bases("FlowType").build("typeAnnotation").field("typeAnnotation",s("FlowType")),s("NullLiteralTypeAnnotation").bases("FlowType").build(),s("NullTypeAnnotation").bases("FlowType").build(),s("ThisTypeAnnotation").bases("FlowType").build(),s("ExistsTypeAnnotation").bases("FlowType").build(),s("ExistentialTypeParam").bases("FlowType").build(),s("FunctionTypeAnnotation").bases("FlowType").build("params","returnType","rest","typeParameters").field("params",[s("FunctionTypeParam")]).field("returnType",s("FlowType")).field("rest",o(s("FunctionTypeParam"),null)).field("typeParameters",o(s("TypeParameterDeclaration"),null)),s("FunctionTypeParam").bases("Node").build("name","typeAnnotation","optional").field("name",o(s("Identifier"),null)).field("typeAnnotation",s("FlowType")).field("optional",Boolean),s("ArrayTypeAnnotation").bases("FlowType").build("elementType").field("elementType",s("FlowType")),s("ObjectTypeAnnotation").bases("FlowType").build("properties","indexers","callProperties").field("properties",[o(s("ObjectTypeProperty"),s("ObjectTypeSpreadProperty"))]).field("indexers",[s("ObjectTypeIndexer")],u.emptyArray).field("callProperties",[s("ObjectTypeCallProperty")],u.emptyArray).field("inexact",o(Boolean,void 0),u.undefined).field("exact",Boolean,u.false).field("internalSlots",[s("ObjectTypeInternalSlot")],u.emptyArray),s("Variance").bases("Node").build("kind").field("kind",o("plus","minus"));var l=o(s("Variance"),"plus","minus",null);s("ObjectTypeProperty").bases("Node").build("key","value","optional").field("key",o(s("Literal"),s("Identifier"))).field("value",s("FlowType")).field("optional",Boolean).field("variance",l,u.null),s("ObjectTypeIndexer").bases("Node").build("id","key","value").field("id",s("Identifier")).field("key",s("FlowType")).field("value",s("FlowType")).field("variance",l,u.null).field("static",Boolean,u.false),s("ObjectTypeCallProperty").bases("Node").build("value").field("value",s("FunctionTypeAnnotation")).field("static",Boolean,u.false),s("QualifiedTypeIdentifier").bases("Node").build("qualification","id").field("qualification",o(s("Identifier"),s("QualifiedTypeIdentifier"))).field("id",s("Identifier")),s("GenericTypeAnnotation").bases("FlowType").build("id","typeParameters").field("id",o(s("Identifier"),s("QualifiedTypeIdentifier"))).field("typeParameters",o(s("TypeParameterInstantiation"),null)),s("MemberTypeAnnotation").bases("FlowType").build("object","property").field("object",s("Identifier")).field("property",o(s("MemberTypeAnnotation"),s("GenericTypeAnnotation"))),s("IndexedAccessType").bases("FlowType").build("objectType","indexType").field("objectType",s("FlowType")).field("indexType",s("FlowType")),s("OptionalIndexedAccessType").bases("FlowType").build("objectType","indexType","optional").field("objectType",s("FlowType")).field("indexType",s("FlowType")).field("optional",Boolean),s("UnionTypeAnnotation").bases("FlowType").build("types").field("types",[s("FlowType")]),s("IntersectionTypeAnnotation").bases("FlowType").build("types").field("types",[s("FlowType")]),s("TypeofTypeAnnotation").bases("FlowType").build("argument").field("argument",s("FlowType")),s("ObjectTypeSpreadProperty").bases("Node").build("argument").field("argument",s("FlowType")),s("ObjectTypeInternalSlot").bases("Node").build("id","value","optional","static","method").field("id",s("Identifier")).field("value",s("FlowType")).field("optional",Boolean).field("static",Boolean).field("method",Boolean),s("TypeParameterDeclaration").bases("Node").build("params").field("params",[s("TypeParameter")]),s("TypeParameterInstantiation").bases("Node").build("params").field("params",[s("FlowType")]),s("TypeParameter").bases("FlowType").build("name","variance","bound","default").field("name",String).field("variance",l,u.null).field("bound",o(s("TypeAnnotation"),null),u.null).field("default",o(s("FlowType"),null),u.null),s("ClassProperty").field("variance",l,u.null),s("ClassImplements").bases("Node").build("id").field("id",s("Identifier")).field("superClass",o(s("Expression"),null),u.null).field("typeParameters",o(s("TypeParameterInstantiation"),null),u.null),s("InterfaceTypeAnnotation").bases("FlowType").build("body","extends").field("body",s("ObjectTypeAnnotation")).field("extends",o([s("InterfaceExtends")],null),u.null),s("InterfaceDeclaration").bases("Declaration").build("id","body","extends").field("id",s("Identifier")).field("typeParameters",o(s("TypeParameterDeclaration"),null),u.null).field("body",s("ObjectTypeAnnotation")).field("extends",[s("InterfaceExtends")]),s("DeclareInterface").bases("InterfaceDeclaration").build("id","body","extends"),s("InterfaceExtends").bases("Node").build("id").field("id",s("Identifier")).field("typeParameters",o(s("TypeParameterInstantiation"),null),u.null),s("TypeAlias").bases("Declaration").build("id","typeParameters","right").field("id",s("Identifier")).field("typeParameters",o(s("TypeParameterDeclaration"),null)).field("right",s("FlowType")),s("DeclareTypeAlias").bases("TypeAlias").build("id","typeParameters","right"),s("OpaqueType").bases("Declaration").build("id","typeParameters","impltype","supertype").field("id",s("Identifier")).field("typeParameters",o(s("TypeParameterDeclaration"),null)).field("impltype",s("FlowType")).field("supertype",o(s("FlowType"),null)),s("DeclareOpaqueType").bases("OpaqueType").build("id","typeParameters","supertype").field("impltype",o(s("FlowType"),null)),s("TypeCastExpression").bases("Expression").build("expression","typeAnnotation").field("expression",s("Expression")).field("typeAnnotation",s("TypeAnnotation")),s("TupleTypeAnnotation").bases("FlowType").build("types").field("types",[s("FlowType")]),s("DeclareVariable").bases("Statement").build("id").field("id",s("Identifier")),s("DeclareFunction").bases("Statement").build("id").field("id",s("Identifier")).field("predicate",o(s("FlowPredicate"),null),u.null),s("DeclareClass").bases("InterfaceDeclaration").build("id"),s("DeclareModule").bases("Statement").build("id","body").field("id",o(s("Identifier"),s("Literal"))).field("body",s("BlockStatement")),s("DeclareModuleExports").bases("Statement").build("typeAnnotation").field("typeAnnotation",s("TypeAnnotation")),s("DeclareExportDeclaration").bases("Declaration").build("default","declaration","specifiers","source").field("default",Boolean).field("declaration",o(s("DeclareVariable"),s("DeclareFunction"),s("DeclareClass"),s("FlowType"),s("TypeAlias"),s("DeclareOpaqueType"),s("InterfaceDeclaration"),null)).field("specifiers",[o(s("ExportSpecifier"),s("ExportBatchSpecifier"))],u.emptyArray).field("source",o(s("Literal"),null),u.null),s("DeclareExportAllDeclaration").bases("Declaration").build("source").field("source",o(s("Literal"),null),u.null),s("ImportDeclaration").field("importKind",o("value","type","typeof"),function(){return"value"}),s("FlowPredicate").bases("Flow"),s("InferredPredicate").bases("FlowPredicate").build(),s("DeclaredPredicate").bases("FlowPredicate").build("value").field("value",s("Expression")),s("Function").field("predicate",o(s("FlowPredicate"),null),u.null),s("CallExpression").field("typeArguments",o(null,s("TypeParameterInstantiation")),u.null),s("NewExpression").field("typeArguments",o(null,s("TypeParameterInstantiation")),u.null),s("EnumDeclaration").bases("Declaration").build("id","body").field("id",s("Identifier")).field("body",o(s("EnumBooleanBody"),s("EnumNumberBody"),s("EnumStringBody"),s("EnumSymbolBody"))),s("EnumBooleanBody").build("members","explicitType").field("members",[s("EnumBooleanMember")]).field("explicitType",Boolean),s("EnumNumberBody").build("members","explicitType").field("members",[s("EnumNumberMember")]).field("explicitType",Boolean),s("EnumStringBody").build("members","explicitType").field("members",o([s("EnumStringMember")],[s("EnumDefaultedMember")])).field("explicitType",Boolean),s("EnumSymbolBody").build("members").field("members",[s("EnumDefaultedMember")]),s("EnumBooleanMember").build("id","init").field("id",s("Identifier")).field("init",o(s("Literal"),Boolean)),s("EnumNumberMember").build("id","init").field("id",s("Identifier")).field("init",s("Literal")),s("EnumStringMember").build("id","init").field("id",s("Identifier")).field("init",s("Literal")),s("EnumDefaultedMember").build("id").field("id",s("Identifier"))},(0,i.maybeSetModuleExports)(function(){return GR})),GR.exports}Gj.exports,GR.exports;var GW={exports:{}};GW.exports;var Gq={exports:{}},GJ={exports:{}};function GX(){var e,t,r,n;return k||(k=1,Object.defineProperty(e=GJ.exports,"__esModule",{value:!0}),t=Gi.__importDefault(GF()),r=Gi.__importDefault(Gp()),n=Gi.__importStar(Gc()),e.default=function(e){e.use(t.default);var i,a,s,o,u,l=e.use(r.default),c=e.use(n.default).defaults,p=l.Type.def,d=l.Type.or,f=l.builtInTypes.undefined;function h(e,t){return void 0===e&&(e=String),["extra",{rawValue:e,raw:String},function(){var e=l.getFieldValue(this,"value");return{rawValue:e,raw:t?t(e):String(e)}}]}p("Noop").bases("Statement").build(),p("DoExpression").bases("Expression").build("body").field("body",[p("Statement")]),p("BindExpression").bases("Expression").build("object","callee").field("object",d(p("Expression"),null)).field("callee",p("Expression")),p("ParenthesizedExpression").bases("Expression").build("expression").field("expression",p("Expression")),p("ExportNamespaceSpecifier").bases("Specifier").build("exported").field("exported",p("Identifier")),p("ExportDefaultSpecifier").bases("Specifier").build("exported").field("exported",p("Identifier")),p("CommentBlock").bases("Comment").build("value","leading","trailing"),p("CommentLine").bases("Comment").build("value","leading","trailing"),p("Directive").bases("Node").build("value").field("value",p("DirectiveLiteral")),p("DirectiveLiteral").bases("Node","Expression").build("value").field("value",String,c["use strict"]),p("InterpreterDirective").bases("Node").build("value").field("value",String),p("BlockStatement").bases("Statement").build("body").field("body",[p("Statement")]).field("directives",[p("Directive")],c.emptyArray),p("Program").bases("Node").build("body").field("body",[p("Statement")]).field("directives",[p("Directive")],c.emptyArray).field("interpreter",d(p("InterpreterDirective"),null),c.null),(i=p("StringLiteral").bases("Literal").build("value").field("value",String)).field.apply(i,h(String,function(e){return JSON.stringify(e)})),(a=p("NumericLiteral").bases("Literal").build("value").field("value",Number).field("raw",d(String,null),c.null)).field.apply(a,h(Number)),(s=p("BigIntLiteral").bases("Literal").build("value").field("value",d(String,Number))).field.apply(s,h(String,function(e){return e+"n"})),(o=p("DecimalLiteral").bases("Literal").build("value").field("value",String)).field.apply(o,h(String,function(e){return e+"m"})),p("NullLiteral").bases("Literal").build().field("value",null,c.null),p("BooleanLiteral").bases("Literal").build("value").field("value",Boolean),(u=p("RegExpLiteral").bases("Literal").build("pattern","flags").field("pattern",String).field("flags",String).field("value",RegExp,function(){return new RegExp(this.pattern,this.flags)})).field.apply(u,h(d(RegExp,f),function(e){return"/".concat(e.pattern,"/").concat(e.flags||"")})).field("regex",{pattern:String,flags:String},function(){return{pattern:this.pattern,flags:this.flags}});var m=d(p("Property"),p("ObjectMethod"),p("ObjectProperty"),p("SpreadProperty"),p("SpreadElement"));p("ObjectExpression").bases("Expression").build("properties").field("properties",[m]),p("ObjectMethod").bases("Node","Function").build("kind","key","params","body","computed").field("kind",d("method","get","set")).field("key",d(p("Literal"),p("Identifier"),p("Expression"))).field("params",[p("Pattern")]).field("body",p("BlockStatement")).field("computed",Boolean,c.false).field("generator",Boolean,c.false).field("async",Boolean,c.false).field("accessibility",d(p("Literal"),null),c.null).field("decorators",d([p("Decorator")],null),c.null),p("ObjectProperty").bases("Node").build("key","value").field("key",d(p("Literal"),p("Identifier"),p("Expression"))).field("value",d(p("Expression"),p("Pattern"))).field("accessibility",d(p("Literal"),null),c.null).field("computed",Boolean,c.false);var y=d(p("MethodDefinition"),p("VariableDeclarator"),p("ClassPropertyDefinition"),p("ClassProperty"),p("ClassPrivateProperty"),p("ClassMethod"),p("ClassPrivateMethod"),p("ClassAccessorProperty"),p("StaticBlock"));p("ClassBody").bases("Declaration").build("body").field("body",[y]),p("ClassMethod").bases("Declaration","Function").build("kind","key","params","body","computed","static").field("key",d(p("Literal"),p("Identifier"),p("Expression"))),p("ClassPrivateMethod").bases("Declaration","Function").build("key","params","body","kind","computed","static").field("key",p("PrivateName")),p("ClassAccessorProperty").bases("Declaration").build("key","value","decorators","computed","static").field("key",d(p("Literal"),p("Identifier"),p("PrivateName"),p("Expression"))).field("value",d(p("Expression"),null),c.null),["ClassMethod","ClassPrivateMethod"].forEach(function(e){p(e).field("kind",d("get","set","method","constructor"),function(){return"method"}).field("body",p("BlockStatement")).field("access",d("public","private","protected",null),c.null)}),["ClassMethod","ClassPrivateMethod","ClassAccessorProperty"].forEach(function(e){p(e).field("computed",Boolean,c.false).field("static",Boolean,c.false).field("abstract",Boolean,c.false).field("accessibility",d("public","private","protected",null),c.null).field("decorators",d([p("Decorator")],null),c.null).field("definite",Boolean,c.false).field("optional",Boolean,c.false).field("override",Boolean,c.false).field("readonly",Boolean,c.false)});var v=d(p("Property"),p("PropertyPattern"),p("SpreadPropertyPattern"),p("SpreadProperty"),p("ObjectProperty"),p("RestProperty"),p("RestElement"));p("ObjectPattern").bases("Pattern").build("properties").field("properties",[v]).field("decorators",d([p("Decorator")],null),c.null),p("SpreadProperty").bases("Node").build("argument").field("argument",p("Expression")),p("RestProperty").bases("Node").build("argument").field("argument",p("Expression")),p("ForAwaitStatement").bases("Statement").build("left","right","body").field("left",d(p("VariableDeclaration"),p("Expression"))).field("right",p("Expression")).field("body",p("Statement")),p("Import").bases("Expression").build()},(0,n.maybeSetModuleExports)(function(){return GJ})),GJ.exports}GJ.exports,Gq.exports;var GG={exports:{}};GG.exports;var GK={};function GH(){var e,t,r,n,i,a,l,c,p,d,f,h,m,y,v,g,b,S,x,T,_,P,k,O,D,L,M,F,B,R,j,U,V,W,q,J,X,G,K,H,z,$,Y,Q,Z,ee,et,er,en,ei,ea,es,eo,eu,el,ec,ep,ed,ef,eh;return N||(N=1,Object.defineProperty(Gs,"__esModule",{value:!0}),Gs.visit=Gs.use=Gs.Type=Gs.someField=Gs.PathVisitor=Gs.Path=Gs.NodePath=Gs.namedTypes=Gs.getSupertypeNames=Gs.getFieldValue=Gs.getFieldNames=Gs.getBuilderName=Gs.finalize=Gs.eachField=Gs.defineMethod=Gs.builtInTypes=Gs.builders=Gs.astNodesAreEquivalent=void 0,e=Gi.__importDefault((u||(u=1,Object.defineProperty(F=Go.exports,"__esModule",{value:!0}),B=Gi.__importDefault(Gp()),R=Gi.__importDefault((s||(s=1,Object.defineProperty(q=Gd.exports,"__esModule",{value:!0}),J=Gi.__importDefault(Gp()),X=Gi.__importDefault(Gv()),G=Gc(),K=Object.prototype.hasOwnProperty,q.default=function(e){var t,r=e.use(J.default),n=e.use(X.default),i=r.builtInTypes.array,a=r.builtInTypes.object,s=r.builtInTypes.function,o=function e(){if(!(this instanceof e))throw Error("PathVisitor constructor cannot be invoked without 'new'");this._reusableContextStack=[],this._methodNameTable=function(e){var t=Object.create(null);for(var n in e)/^visit[A-Z]/.test(n)&&(t[n.slice("visit".length)]=!0);for(var i=r.computeSupertypeLookupTable(t),a=Object.create(null),o=Object.keys(i),u=o.length,l=0;l<u;++l){var c=o[l];n="visit"+i[c],s.check(e[n])&&(a[c]=n)}return a}(this),this._shouldVisitComments=K.call(this._methodNameTable,"Block")||K.call(this._methodNameTable,"Line"),this.Context=function(e){function t(r){if(!(this instanceof t)||!(this instanceof o)||!(r instanceof n))throw Error("");Object.defineProperty(this,"visitor",{value:e,writable:!1,enumerable:!0,configurable:!1}),this.currentPath=r,this.needToCallTraverse=!0,Object.seal(this)}if(!(e instanceof o))throw Error("");var r=t.prototype=Object.create(e);return r.constructor=t,u(r,p),t}(this),this._visiting=!1,this._changeReported=!1};function u(e,t){for(var r in t)K.call(t,r)&&(e[r]=t[r]);return e}o.fromMethodsObject=function(e){if(e instanceof o)return e;if(!a.check(e))return new o;var t=function e(){if(!(this instanceof e))throw Error("Visitor constructor cannot be invoked without 'new'");o.call(this)},r=t.prototype=Object.create(l);return r.constructor=t,u(r,e),u(t,o),s.assert(t.fromMethodsObject),s.assert(t.visit),new t},o.visit=function(e,t){return o.fromMethodsObject(t).visit(e)};var l=o.prototype;function c(e,t){if(!(e instanceof n)||!(t instanceof o))throw Error("");var s=e.value;if(i.check(s))e.each(t.visitWithoutReset,t);else if(a.check(s)){var u=r.getFieldNames(s);t._shouldVisitComments&&s.comments&&0>u.indexOf("comments")&&u.push("comments");for(var l=u.length,c=[],p=0;p<l;++p){var d=u[p];K.call(s,d)||(s[d]=r.getFieldValue(s,d)),c.push(e.get(d))}for(var p=0;p<l;++p)t.visitWithoutReset(c[p])}return e.value}l.visit=function(){if(this._visiting)throw Error("Recursively calling visitor.visit(path) resets visitor state. Try this.visit(path) or this.traverse(path) instead.");this._visiting=!0,this._changeReported=!1,this._abortRequested=!1;for(var e,t=arguments.length,r=Array(t),i=0;i<t;++i)r[i]=arguments[i];r[0]instanceof n||(r[0]=new n({root:r[0]}).get("root")),this.reset.apply(this,r);try{var a=this.visitWithoutReset(r[0]);e=!0}finally{if(this._visiting=!1,!e&&this._abortRequested)return r[0].value}return a},l.AbortRequest=function(){},l.abort=function(){var e=this;e._abortRequested=!0;var t=new e.AbortRequest;throw t.cancel=function(){e._abortRequested=!1},t},l.reset=function(e){},l.visitWithoutReset=function(e){if(this instanceof this.Context)return this.visitor.visitWithoutReset(e);if(!(e instanceof n))throw Error("");var t=e.value,r=t&&"object"==typeof t&&"string"==typeof t.type&&this._methodNameTable[t.type];if(!r)return c(e,this);var i=this.acquireContext(e);try{return i.invokeVisitorMethod(r)}finally{this.releaseContext(i)}},l.acquireContext=function(e){return 0===this._reusableContextStack.length?new this.Context(e):this._reusableContextStack.pop().reset(e)},l.releaseContext=function(e){if(!(e instanceof this.Context))throw Error("");this._reusableContextStack.push(e),e.currentPath=null},l.reportChanged=function(){this._changeReported=!0},l.wasChangeReported=function(){return this._changeReported};var p=Object.create(null);return p.reset=function(e){if(!(this instanceof this.Context)||!(e instanceof n))throw Error("");return this.currentPath=e,this.needToCallTraverse=!0,this},p.invokeVisitorMethod=function(e){if(!(this instanceof this.Context)||!(this.currentPath instanceof n))throw Error("");var r=this.visitor[e].call(this,this.currentPath);if(!1===r?this.needToCallTraverse=!1:r!==t&&(this.currentPath=this.currentPath.replace(r)[0],this.needToCallTraverse&&this.traverse(this.currentPath)),!1!==this.needToCallTraverse)throw Error("Must either call this.traverse or return false in "+e);var i=this.currentPath;return i&&i.value},p.traverse=function(e,t){if(!(this instanceof this.Context)||!(e instanceof n)||!(this.currentPath instanceof n))throw Error("");return this.needToCallTraverse=!1,c(e,o.fromMethodsObject(t||this.visitor))},p.visit=function(e,t){if(!(this instanceof this.Context)||!(e instanceof n)||!(this.currentPath instanceof n))throw Error("");return this.needToCallTraverse=!1,o.fromMethodsObject(t||this.visitor).visitWithoutReset(e)},p.reportChanged=function(){this.visitor.reportChanged()},p.abort=function(){this.needToCallTraverse=!1,this.visitor.abort()},o},(0,G.maybeSetModuleExports)(function(){return Gd})),Gd.exports)),j=Gi.__importDefault((o||(o=1,Object.defineProperty(H=Gg.exports,"__esModule",{value:!0}),z=Gc(),$=Gi.__importDefault(Gp()),H.default=function(e){var t=e.use($.default),r=t.getFieldNames,n=t.getFieldValue,i=t.builtInTypes.array,a=t.builtInTypes.object,s=t.builtInTypes.Date,o=t.builtInTypes.RegExp,u=Object.prototype.hasOwnProperty;function l(e,t,l){return i.check(l)?l.length=0:l=null,function e(t,l,c){return t===l||(i.check(t)?function(t,r,n){i.assert(t);var a=t.length;if(!i.check(r)||r.length!==a)return n&&n.push("length"),!1;for(var s=0;s<a;++s){if(n&&n.push(s),s in t!=s in r||!e(t[s],r[s],n))return!1;if(n){var o=n.pop();if(o!==s)throw Error(""+o)}}return!0}(t,l,c):a.check(t)?function(t,i,s){if(a.assert(t),!a.check(i))return!1;if(t.type!==i.type)return s&&s.push("type"),!1;var o=r(t),l=o.length,c=r(i),p=c.length;if(l===p){for(var d=0;d<l;++d){var f=o[d],h=n(t,f),m=n(i,f);if(s&&s.push(f),!e(h,m,s))return!1;if(s){var y=s.pop();if(y!==f)throw Error(""+y)}}return!0}if(!s)return!1;var v=Object.create(null);for(d=0;d<l;++d)v[o[d]]=!0;for(d=0;d<p;++d){if(f=c[d],!u.call(v,f))return s.push(f),!1;delete v[f]}for(f in v){s.push(f);break}return!1}(t,l,c):s.check(t)?s.check(l)&&+t==+l:o.check(t)?o.check(l)&&t.source===l.source&&t.global===l.global&&t.multiline===l.multiline&&t.ignoreCase===l.ignoreCase:t==l)}(e,t,l)}function c(e){return/[_$a-z][_$a-z0-9]*/i.test(e)?"."+e:"["+JSON.stringify(e)+"]"}return l.assert=function(e,t){var r=[];if(!l(e,t,r)){if(0===r.length){if(e!==t)throw Error("Nodes must be equal")}else throw Error("Nodes differ in the following path: "+r.map(c).join(""))}},l},(0,z.maybeSetModuleExports)(function(){return Gg})),Gg.exports)),U=Gi.__importDefault(Gm()),V=Gi.__importDefault(Gv()),W=Gc(),F.default=function(e){var t,r,n,i=(t=[],r=[],n={use:function(e){var i=t.indexOf(e);return -1===i&&(i=t.length,t.push(e),r[i]=e(n)),r[i]}}),a=i.use(B.default);e.forEach(i.use),a.finalize();var s=i.use(R.default);return{Type:a.Type,builtInTypes:a.builtInTypes,namedTypes:a.namedTypes,builders:a.builders,defineMethod:a.defineMethod,getFieldNames:a.getFieldNames,getFieldValue:a.getFieldValue,eachField:a.eachField,someField:a.someField,getSupertypeNames:a.getSupertypeNames,getBuilderName:a.getBuilderName,astNodesAreEquivalent:i.use(j.default),finalize:a.finalize,Path:i.use(U.default),NodePath:i.use(V.default),PathVisitor:s,use:i.use,visit:s.visit}},(0,W.maybeSetModuleExports)(function(){return Go})),Go.exports)),t=Gi.__importDefault(GF()),r=Gi.__importDefault((E||(E=1,Object.defineProperty(Y=GB.exports,"__esModule",{value:!0}),Q=Gi.__importDefault(GF()),Z=Gi.__importDefault(Gp()),ee=Gi.__importStar(Gc()),Y.default=function(e){e.use(Q.default);var t=e.use(Z.default),r=t.Type.def,n=t.Type.or,i=e.use(ee.default).defaults;r("JSXAttribute").bases("Node").build("name","value").field("name",n(r("JSXIdentifier"),r("JSXNamespacedName"))).field("value",n(r("Literal"),r("JSXExpressionContainer"),r("JSXElement"),r("JSXFragment"),null),i.null),r("JSXIdentifier").bases("Identifier").build("name").field("name",String),r("JSXNamespacedName").bases("Node").build("namespace","name").field("namespace",r("JSXIdentifier")).field("name",r("JSXIdentifier")),r("JSXMemberExpression").bases("MemberExpression").build("object","property").field("object",n(r("JSXIdentifier"),r("JSXMemberExpression"))).field("property",r("JSXIdentifier")).field("computed",Boolean,i.false);var a=n(r("JSXIdentifier"),r("JSXNamespacedName"),r("JSXMemberExpression"));r("JSXSpreadAttribute").bases("Node").build("argument").field("argument",r("Expression"));var s=[n(r("JSXAttribute"),r("JSXSpreadAttribute"))];r("JSXExpressionContainer").bases("Expression").build("expression").field("expression",n(r("Expression"),r("JSXEmptyExpression")));var o=[n(r("JSXText"),r("JSXExpressionContainer"),r("JSXSpreadChild"),r("JSXElement"),r("JSXFragment"),r("Literal"))];r("JSXElement").bases("Expression").build("openingElement","closingElement","children").field("openingElement",r("JSXOpeningElement")).field("closingElement",n(r("JSXClosingElement"),null),i.null).field("children",o,i.emptyArray).field("name",a,function(){return this.openingElement.name},!0).field("selfClosing",Boolean,function(){return this.openingElement.selfClosing},!0).field("attributes",s,function(){return this.openingElement.attributes},!0),r("JSXOpeningElement").bases("Node").build("name","attributes","selfClosing").field("name",a).field("attributes",s,i.emptyArray).field("selfClosing",Boolean,i.false),r("JSXClosingElement").bases("Node").build("name").field("name",a),r("JSXFragment").bases("Expression").build("openingFragment","closingFragment","children").field("openingFragment",r("JSXOpeningFragment")).field("closingFragment",r("JSXClosingFragment")).field("children",o,i.emptyArray),r("JSXOpeningFragment").bases("Node").build(),r("JSXClosingFragment").bases("Node").build(),r("JSXText").bases("Literal").build("value","raw").field("value",String).field("raw",String,function(){return this.value}),r("JSXEmptyExpression").bases("Node").build(),r("JSXSpreadChild").bases("Node").build("expression").field("expression",r("Expression"))},(0,ee.maybeSetModuleExports)(function(){return GB})),GB.exports)),n=Gi.__importDefault(GV()),i=Gi.__importDefault((A||(A=1,Object.defineProperty(et=GW.exports,"__esModule",{value:!0}),er=Gi.__importDefault(GF()),en=Gi.__importDefault(Gp()),ei=Gi.__importStar(Gc()),et.default=function(e){e.use(er.default);var t=e.use(en.default),r=e.use(ei.default).defaults,n=t.Type.def,i=t.Type.or;n("VariableDeclaration").field("declarations",[i(n("VariableDeclarator"),n("Identifier"))]),n("Property").field("value",i(n("Expression"),n("Pattern"))),n("ArrayPattern").field("elements",[i(n("Pattern"),n("SpreadElement"),null)]),n("ObjectPattern").field("properties",[i(n("Property"),n("PropertyPattern"),n("SpreadPropertyPattern"),n("SpreadProperty"))]),n("ExportSpecifier").bases("ModuleSpecifier").build("id","name"),n("ExportBatchSpecifier").bases("Specifier").build(),n("ExportDeclaration").bases("Declaration").build("default","declaration","specifiers","source").field("default",Boolean).field("declaration",i(n("Declaration"),n("Expression"),null)).field("specifiers",[i(n("ExportSpecifier"),n("ExportBatchSpecifier"))],r.emptyArray).field("source",i(n("Literal"),null),r.null),n("Block").bases("Comment").build("value","leading","trailing"),n("Line").bases("Comment").build("value","leading","trailing")},(0,ei.maybeSetModuleExports)(function(){return GW})),GW.exports)),a=Gi.__importDefault((C||(C=1,Object.defineProperty(ea=Gq.exports,"__esModule",{value:!0}),es=Gi.__importDefault(Gp()),eo=Gi.__importDefault(GX()),eu=Gi.__importDefault(GV()),el=Gc(),ea.default=function(e){var t=e.use(es.default).Type.def;e.use(eo.default),e.use(eu.default),t("V8IntrinsicIdentifier").bases("Expression").build("name").field("name",String),t("TopicReference").bases("Expression").build()},(0,el.maybeSetModuleExports)(function(){return Gq})),Gq.exports)),l=Gi.__importDefault((w||(w=1,Object.defineProperty(ec=GG.exports,"__esModule",{value:!0}),ep=Gi.__importDefault(GX()),ed=Gi.__importDefault(GU()),ef=Gi.__importDefault(Gp()),eh=Gi.__importStar(Gc()),ec.default=function(e){e.use(ep.default),e.use(ed.default);var t=e.use(ef.default),r=t.namedTypes,n=t.Type.def,i=t.Type.or,a=e.use(eh.default).defaults,s=t.Type.from(function(e,t){return!!(r.StringLiteral&&r.StringLiteral.check(e,t)||r.Literal&&r.Literal.check(e,t)&&"string"==typeof e.value)},"StringLiteral");n("TSType").bases("Node");var o=i(n("Identifier"),n("TSQualifiedName"));n("TSTypeReference").bases("TSType","TSHasOptionalTypeParameterInstantiation").build("typeName","typeParameters").field("typeName",o),n("TSHasOptionalTypeParameterInstantiation").field("typeParameters",i(n("TSTypeParameterInstantiation"),null),a.null),n("TSHasOptionalTypeParameters").field("typeParameters",i(n("TSTypeParameterDeclaration"),null,void 0),a.null),n("TSHasOptionalTypeAnnotation").field("typeAnnotation",i(n("TSTypeAnnotation"),null),a.null),n("TSQualifiedName").bases("Node").build("left","right").field("left",o).field("right",o),n("TSAsExpression").bases("Expression","Pattern").build("expression","typeAnnotation").field("expression",n("Expression")).field("typeAnnotation",n("TSType")).field("extra",i({parenthesized:Boolean},null),a.null),n("TSTypeCastExpression").bases("Expression").build("expression","typeAnnotation").field("expression",n("Expression")).field("typeAnnotation",n("TSType")),n("TSSatisfiesExpression").bases("Expression","Pattern").build("expression","typeAnnotation").field("expression",n("Expression")).field("typeAnnotation",n("TSType")),n("TSNonNullExpression").bases("Expression","Pattern").build("expression").field("expression",n("Expression")),["TSAnyKeyword","TSBigIntKeyword","TSBooleanKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword","TSIntrinsicKeyword","TSThisType"].forEach(function(e){n(e).bases("TSType").build()}),n("TSArrayType").bases("TSType").build("elementType").field("elementType",n("TSType")),n("TSLiteralType").bases("TSType").build("literal").field("literal",i(n("NumericLiteral"),n("StringLiteral"),n("BooleanLiteral"),n("TemplateLiteral"),n("UnaryExpression"),n("BigIntLiteral"))),n("TemplateLiteral").field("expressions",i([n("Expression")],[n("TSType")])),["TSUnionType","TSIntersectionType"].forEach(function(e){n(e).bases("TSType").build("types").field("types",[n("TSType")])}),n("TSConditionalType").bases("TSType").build("checkType","extendsType","trueType","falseType").field("checkType",n("TSType")).field("extendsType",n("TSType")).field("trueType",n("TSType")).field("falseType",n("TSType")),n("TSInferType").bases("TSType").build("typeParameter").field("typeParameter",n("TSTypeParameter")),n("TSParenthesizedType").bases("TSType").build("typeAnnotation").field("typeAnnotation",n("TSType"));var u=[i(n("Identifier"),n("RestElement"),n("ArrayPattern"),n("ObjectPattern"))];["TSFunctionType","TSConstructorType"].forEach(function(e){n(e).bases("TSType","TSHasOptionalTypeParameters","TSHasOptionalTypeAnnotation").build("parameters").field("parameters",u)}),n("TSDeclareFunction").bases("Declaration","TSHasOptionalTypeParameters").build("id","params","returnType").field("declare",Boolean,a.false).field("async",Boolean,a.false).field("generator",Boolean,a.false).field("id",i(n("Identifier"),null),a.null).field("params",[n("Pattern")]).field("returnType",i(n("TSTypeAnnotation"),n("Noop"),null),a.null),n("TSDeclareMethod").bases("Declaration","TSHasOptionalTypeParameters").build("key","params","returnType").field("async",Boolean,a.false).field("generator",Boolean,a.false).field("params",[n("Pattern")]).field("abstract",Boolean,a.false).field("accessibility",i("public","private","protected",void 0),a.undefined).field("static",Boolean,a.false).field("computed",Boolean,a.false).field("optional",Boolean,a.false).field("key",i(n("Identifier"),n("StringLiteral"),n("NumericLiteral"),n("Expression"))).field("kind",i("get","set","method","constructor"),function(){return"method"}).field("access",i("public","private","protected",void 0),a.undefined).field("decorators",i([n("Decorator")],null),a.null).field("returnType",i(n("TSTypeAnnotation"),n("Noop"),null),a.null),n("TSMappedType").bases("TSType").build("typeParameter","typeAnnotation").field("readonly",i(Boolean,"+","-"),a.false).field("typeParameter",n("TSTypeParameter")).field("optional",i(Boolean,"+","-"),a.false).field("typeAnnotation",i(n("TSType"),null),a.null),n("TSTupleType").bases("TSType").build("elementTypes").field("elementTypes",[i(n("TSType"),n("TSNamedTupleMember"))]),n("TSNamedTupleMember").bases("TSType").build("label","elementType","optional").field("label",n("Identifier")).field("optional",Boolean,a.false).field("elementType",n("TSType")),n("TSRestType").bases("TSType").build("typeAnnotation").field("typeAnnotation",n("TSType")),n("TSOptionalType").bases("TSType").build("typeAnnotation").field("typeAnnotation",n("TSType")),n("TSIndexedAccessType").bases("TSType").build("objectType","indexType").field("objectType",n("TSType")).field("indexType",n("TSType")),n("TSTypeOperator").bases("TSType").build("operator").field("operator",String).field("typeAnnotation",n("TSType")),n("TSTypeAnnotation").bases("Node").build("typeAnnotation").field("typeAnnotation",i(n("TSType"),n("TSTypeAnnotation"))),n("TSIndexSignature").bases("Declaration","TSHasOptionalTypeAnnotation").build("parameters","typeAnnotation").field("parameters",[n("Identifier")]).field("readonly",Boolean,a.false),n("TSPropertySignature").bases("Declaration","TSHasOptionalTypeAnnotation").build("key","typeAnnotation","optional").field("key",n("Expression")).field("computed",Boolean,a.false).field("readonly",Boolean,a.false).field("optional",Boolean,a.false).field("initializer",i(n("Expression"),null),a.null),n("TSMethodSignature").bases("Declaration","TSHasOptionalTypeParameters","TSHasOptionalTypeAnnotation").build("key","parameters","typeAnnotation").field("key",n("Expression")).field("computed",Boolean,a.false).field("optional",Boolean,a.false).field("parameters",u),n("TSTypePredicate").bases("TSTypeAnnotation","TSType").build("parameterName","typeAnnotation","asserts").field("parameterName",i(n("Identifier"),n("TSThisType"))).field("typeAnnotation",i(n("TSTypeAnnotation"),null),a.null).field("asserts",Boolean,a.false),["TSCallSignatureDeclaration","TSConstructSignatureDeclaration"].forEach(function(e){n(e).bases("Declaration","TSHasOptionalTypeParameters","TSHasOptionalTypeAnnotation").build("parameters","typeAnnotation").field("parameters",u)}),n("TSEnumMember").bases("Node").build("id","initializer").field("id",i(n("Identifier"),s)).field("initializer",i(n("Expression"),null),a.null),n("TSTypeQuery").bases("TSType").build("exprName").field("exprName",i(o,n("TSImportType")));var l=i(n("TSCallSignatureDeclaration"),n("TSConstructSignatureDeclaration"),n("TSIndexSignature"),n("TSMethodSignature"),n("TSPropertySignature"));n("TSTypeLiteral").bases("TSType").build("members").field("members",[l]),n("TSTypeParameter").bases("Identifier").build("name","constraint","default").field("name",i(n("Identifier"),String)).field("constraint",i(n("TSType"),void 0),a.undefined).field("default",i(n("TSType"),void 0),a.undefined),n("TSTypeAssertion").bases("Expression","Pattern").build("typeAnnotation","expression").field("typeAnnotation",n("TSType")).field("expression",n("Expression")).field("extra",i({parenthesized:Boolean},null),a.null),n("TSTypeParameterDeclaration").bases("Declaration").build("params").field("params",[n("TSTypeParameter")]),n("TSInstantiationExpression").bases("Expression","TSHasOptionalTypeParameterInstantiation").build("expression","typeParameters").field("expression",n("Expression")),n("TSTypeParameterInstantiation").bases("Node").build("params").field("params",[n("TSType")]),n("TSEnumDeclaration").bases("Declaration").build("id","members").field("id",n("Identifier")).field("const",Boolean,a.false).field("declare",Boolean,a.false).field("members",[n("TSEnumMember")]).field("initializer",i(n("Expression"),null),a.null),n("TSTypeAliasDeclaration").bases("Declaration","TSHasOptionalTypeParameters").build("id","typeAnnotation").field("id",n("Identifier")).field("declare",Boolean,a.false).field("typeAnnotation",n("TSType")),n("TSModuleBlock").bases("Node").build("body").field("body",[n("Statement")]),n("TSModuleDeclaration").bases("Declaration").build("id","body").field("id",i(s,o)).field("declare",Boolean,a.false).field("global",Boolean,a.false).field("body",i(n("TSModuleBlock"),n("TSModuleDeclaration"),null),a.null),n("TSImportType").bases("TSType","TSHasOptionalTypeParameterInstantiation").build("argument","qualifier","typeParameters").field("argument",s).field("qualifier",i(o,void 0),a.undefined),n("TSImportEqualsDeclaration").bases("Declaration").build("id","moduleReference").field("id",n("Identifier")).field("isExport",Boolean,a.false).field("moduleReference",i(o,n("TSExternalModuleReference"))),n("TSExternalModuleReference").bases("Declaration").build("expression").field("expression",s),n("TSExportAssignment").bases("Statement").build("expression").field("expression",n("Expression")),n("TSNamespaceExportDeclaration").bases("Declaration").build("id").field("id",n("Identifier")),n("TSInterfaceBody").bases("Node").build("body").field("body",[l]),n("TSExpressionWithTypeArguments").bases("TSType","TSHasOptionalTypeParameterInstantiation").build("expression","typeParameters").field("expression",o),n("TSInterfaceDeclaration").bases("Declaration","TSHasOptionalTypeParameters").build("id","body").field("id",o).field("declare",Boolean,a.false).field("extends",i([n("TSExpressionWithTypeArguments")],null),a.null).field("body",n("TSInterfaceBody")),n("TSParameterProperty").bases("Pattern").build("parameter").field("accessibility",i("public","private","protected",void 0),a.undefined).field("readonly",Boolean,a.false).field("parameter",i(n("Identifier"),n("AssignmentPattern"))),n("ClassProperty").field("access",i("public","private","protected",void 0),a.undefined),n("ClassAccessorProperty").bases("Declaration","TSHasOptionalTypeAnnotation"),n("ClassBody").field("body",[i(n("MethodDefinition"),n("VariableDeclarator"),n("ClassPropertyDefinition"),n("ClassProperty"),n("ClassPrivateProperty"),n("ClassAccessorProperty"),n("ClassMethod"),n("ClassPrivateMethod"),n("StaticBlock"),n("TSDeclareMethod"),l)])},(0,eh.maybeSetModuleExports)(function(){return GG})),GG.exports)),I||(I=1,Object.defineProperty(GK,"__esModule",{value:!0}),GK.namedTypes=void 0,GK.namedTypes||(GK.namedTypes={})),c=GK,Object.defineProperty(Gs,"namedTypes",{enumerable:!0,get:function(){return c.namedTypes}}),d=(p=(0,e.default)([t.default,r.default,n.default,i.default,a.default,l.default])).astNodesAreEquivalent,f=p.builders,h=p.builtInTypes,m=p.defineMethod,y=p.eachField,v=p.finalize,g=p.getBuilderName,b=p.getFieldNames,S=p.getFieldValue,x=p.getSupertypeNames,T=p.namedTypes,_=p.NodePath,P=p.Path,k=p.PathVisitor,O=p.someField,D=p.Type,L=p.use,M=p.visit,Gs.astNodesAreEquivalent=d,Gs.builders=f,Gs.builtInTypes=h,Gs.defineMethod=m,Gs.eachField=y,Gs.finalize=v,Gs.getBuilderName=g,Gs.getFieldNames=b,Gs.getFieldValue=S,Gs.getSupertypeNames=x,Gs.NodePath=_,Gs.Path=P,Gs.PathVisitor=k,Gs.someField=O,Gs.Type=D,Gs.use=L,Gs.visit=M,Object.assign(c.namedTypes,T)),Gs}var Gz={};function G$(){if(D)return O;D=1;var e="production"===eV.env.NODE_ENV,t="Invariant failed";return O=function(r,n){if(!r){if(e)throw Error(t);var i="function"==typeof n?n():n;throw Error(i?"".concat(t,": ").concat(i):t)}}}var GY={},GQ={},GZ={},G0={},G1={},G2={};function G3(){if(M)return G1;M=1;var e=function(){if(L)return G2;L=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return G2.encode=function(t){if(0<=t&&t<e.length)return e[t];throw TypeError("Must be between 0 and 63: "+t)},G2.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1},G2}();return G1.encode=function(t){var r,n="",i=t<0?(-t<<1)+1:(t<<1)+0;do r=31&i,(i>>>=5)>0&&(r|=32),n+=e.encode(r);while(i>0);return n},G1.decode=function(t,r,n){var i,a,s,o,u=t.length,l=0,c=0;do{if(r>=u)throw Error("Expected more digits in base 64 VLQ value.");if(-1===(o=e.decode(t.charCodeAt(r++))))throw Error("Invalid base64 digit: "+t.charAt(r-1));s=!!(32&o),o&=31,l+=o<<c,c+=5}while(s);n.value=(a=(i=l)>>1,(1&i)==1?-a:a),n.rest=r},G1}var G4={};function G5(){return F||(F=1,function(e){e.getArg=function(e,t,r){if(t in e)return e[t];if(3==arguments.length)return r;throw Error('"'+t+'" is a required argument.')};var t=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function n(e){var r=e.match(t);return r?{scheme:r[1],auth:r[2],host:r[3],port:r[4],path:r[5]}:null}function i(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function a(t){var r=t,a=n(t);if(a){if(!a.path)return t;r=a.path}for(var s,o=e.isAbsolute(r),u=r.split(/\/+/),l=0,c=u.length-1;c>=0;c--)"."===(s=u[c])?u.splice(c,1):".."===s?l++:l>0&&(""===s?(u.splice(c+1,l),l=0):(u.splice(c,2),l--));return(""===(r=u.join("/"))&&(r=o?"/":"."),a)?(a.path=r,i(a)):r}function s(e,t){""===e&&(e="."),""===t&&(t=".");var s=n(t),o=n(e);if(o&&(e=o.path||"/"),s&&!s.scheme)return o&&(s.scheme=o.scheme),i(s);if(s||t.match(r))return t;if(o&&!o.host&&!o.path)return o.host=t,i(o);var u="/"===t.charAt(0)?t:a(e.replace(/\/+$/,"")+"/"+t);return o?(o.path=u,i(o)):u}e.urlParse=n,e.urlGenerate=i,e.normalize=a,e.join=s,e.isAbsolute=function(e){return"/"===e.charAt(0)||t.test(e)},e.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var r=0;0!==t.indexOf(e+"/");){var n=e.lastIndexOf("/");if(n<0||(e=e.slice(0,n)).match(/^([^\/]+:\/)?\/*$/))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)};var o=!("__proto__"in Object.create(null));function u(e){return e}function l(e){if(!e)return!1;var t=e.length;if(t<9||95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function c(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}e.toSetString=o?u:function(e){return l(e)?"$"+e:e},e.fromSetString=o?u:function(e){return l(e)?e.slice(1):e},e.compareByOriginalPositions=function(e,t,r){var n=c(e.source,t.source);return 0!==n||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)||r||0!=(n=e.generatedColumn-t.generatedColumn)||0!=(n=e.generatedLine-t.generatedLine)?n:c(e.name,t.name)},e.compareByGeneratedPositionsDeflated=function(e,t,r){var n=e.generatedLine-t.generatedLine;return 0!==n||0!=(n=e.generatedColumn-t.generatedColumn)||r||0!==(n=c(e.source,t.source))||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)?n:c(e.name,t.name)},e.compareByGeneratedPositionsInflated=function(e,t){var r=e.generatedLine-t.generatedLine;return 0!==r||0!=(r=e.generatedColumn-t.generatedColumn)||0!==(r=c(e.source,t.source))||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)?r:c(e.name,t.name)},e.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},e.computeSourceURL=function(e,t,r){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),r){var o=n(r);if(!o)throw Error("sourceMapURL could not be parsed");if(o.path){var u=o.path.lastIndexOf("/");u>=0&&(o.path=o.path.substring(0,u+1))}t=s(i(o),t)}return a(t)}}(G4)),G4}var G8={};function G6(){if(B)return G8;B=1;var e=G5(),t=Object.prototype.hasOwnProperty,r="undefined"!=typeof Map;function n(){this._array=[],this._set=r?new Map:Object.create(null)}return n.fromArray=function(e,t){for(var r=new n,i=0,a=e.length;i<a;i++)r.add(e[i],t);return r},n.prototype.size=function(){return r?this._set.size:Object.getOwnPropertyNames(this._set).length},n.prototype.add=function(n,i){var a=r?n:e.toSetString(n),s=r?this.has(n):t.call(this._set,a),o=this._array.length;(!s||i)&&this._array.push(n),s||(r?this._set.set(n,o):this._set[a]=o)},n.prototype.has=function(n){if(r)return this._set.has(n);var i=e.toSetString(n);return t.call(this._set,i)},n.prototype.indexOf=function(n){if(r){var i=this._set.get(n);if(i>=0)return i}else{var a=e.toSetString(n);if(t.call(this._set,a))return this._set[a]}throw Error('"'+n+'" is not in the set.')},n.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw Error("No element indexed by "+e)},n.prototype.toArray=function(){return this._array.slice()},G8.ArraySet=n,G8}var G9={};function G7(){if(j)return G0;j=1;var e=G3(),t=G5(),r=G6().ArraySet,n=function(){if(R)return G9;R=1;var e=G5();function t(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return t.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},t.prototype.add=function(t){var r,n,i,a,s;(n=(r=this._last).generatedLine,i=t.generatedLine,a=r.generatedColumn,s=t.generatedColumn,i>n||i==n&&s>=a||0>=e.compareByGeneratedPositionsInflated(r,t))?this._last=t:this._sorted=!1,this._array.push(t)},t.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},G9.MappingList=t,G9}().MappingList;function i(e){e||(e={}),this._file=t.getArg(e,"file",null),this._sourceRoot=t.getArg(e,"sourceRoot",null),this._skipValidation=t.getArg(e,"skipValidation",!1),this._sources=new r,this._names=new r,this._mappings=new n,this._sourcesContents=null}return i.prototype._version=3,i.fromSourceMap=function(e){var r=e.sourceRoot,n=new i({file:e.file,sourceRoot:r});return e.eachMapping(function(e){var i={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(i.source=e.source,null!=r&&(i.source=t.relative(r,i.source)),i.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(i.name=e.name)),n.addMapping(i)}),e.sources.forEach(function(i){var a=i;null!==r&&(a=t.relative(r,i)),n._sources.has(a)||n._sources.add(a);var s=e.sourceContentFor(i);null!=s&&n.setSourceContent(i,s)}),n},i.prototype.addMapping=function(e){var r=t.getArg(e,"generated"),n=t.getArg(e,"original",null),i=t.getArg(e,"source",null),a=t.getArg(e,"name",null);this._skipValidation||this._validateMapping(r,n,i,a),null==i||(i=String(i),this._sources.has(i)||this._sources.add(i)),null==a||(a=String(a),this._names.has(a)||this._names.add(a)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:i,name:a})},i.prototype.setSourceContent=function(e,r){var n=e;null!=this._sourceRoot&&(n=t.relative(this._sourceRoot,n)),null!=r?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[t.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[t.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},i.prototype.applySourceMap=function(e,n,i){var a=n;if(null==n){if(null==e.file)throw Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');a=e.file}var s=this._sourceRoot;null!=s&&(a=t.relative(s,a));var o=new r,u=new r;this._mappings.unsortedForEach(function(r){if(r.source===a&&null!=r.originalLine){var n=e.originalPositionFor({line:r.originalLine,column:r.originalColumn});null!=n.source&&(r.source=n.source,null!=i&&(r.source=t.join(i,r.source)),null!=s&&(r.source=t.relative(s,r.source)),r.originalLine=n.line,r.originalColumn=n.column,null!=n.name&&(r.name=n.name))}var l=r.source;null==l||o.has(l)||o.add(l);var c=r.name;null==c||u.has(c)||u.add(c)},this),this._sources=o,this._names=u,e.sources.forEach(function(r){var n=e.sourceContentFor(r);null!=n&&(null!=i&&(r=t.join(i,r)),null!=s&&(r=t.relative(s,r)),this.setSourceContent(r,n))},this)},i.prototype._validateMapping=function(e,t,r,n){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!e||!("line"in e)||!("column"in e)||!(e.line>0)||!(e.column>=0)||t||r||n)&&(!e||!("line"in e)||!("column"in e)||!t||!("line"in t)||!("column"in t)||!(e.line>0)||!(e.column>=0)||!(t.line>0)||!(t.column>=0)||!r))throw Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))},i.prototype._serializeMappings=function(){for(var r,n,i,a,s=0,o=1,u=0,l=0,c=0,p=0,d="",f=this._mappings.toArray(),h=0,m=f.length;h<m;h++){if(n=f[h],r="",n.generatedLine!==o)for(s=0;n.generatedLine!==o;)r+=";",o++;else if(h>0){if(!t.compareByGeneratedPositionsInflated(n,f[h-1]))continue;r+=","}r+=e.encode(n.generatedColumn-s),s=n.generatedColumn,null!=n.source&&(a=this._sources.indexOf(n.source),r+=e.encode(a-p),p=a,r+=e.encode(n.originalLine-1-l),l=n.originalLine-1,r+=e.encode(n.originalColumn-u),u=n.originalColumn,null!=n.name&&(i=this._names.indexOf(n.name),r+=e.encode(i-c),c=i)),d+=r}return d},i.prototype._generateSourcesContent=function(e,r){return e.map(function(e){if(!this._sourcesContents)return null;null!=r&&(e=t.relative(r,e));var n=t.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)},i.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},i.prototype.toString=function(){return JSON.stringify(this.toJSON())},G0.SourceMapGenerator=i,G0}var Ke={},Kt={},Kr={},Kn={};function Ki(){return J||(J=1,GZ.SourceMapGenerator=G7().SourceMapGenerator,GZ.SourceMapConsumer=function(){if(W)return Ke;W=1;var e=G5(),t=(U||(U=1,Kt.GREATEST_LOWER_BOUND=1,Kt.LEAST_UPPER_BOUND=2,Kt.search=function(e,t,r,n){if(0===t.length)return -1;var i=function e(t,r,n,i,a,s){var o=Math.floor((r-t)/2)+t,u=a(n,i[o],!0);return 0===u?o:u>0?r-o>1?e(o,r,n,i,a,s):s==Kt.LEAST_UPPER_BOUND?r<i.length?r:-1:o:o-t>1?e(t,o,n,i,a,s):s==Kt.LEAST_UPPER_BOUND?o:t<0?-1:t}(-1,t.length,e,t,r,n||Kt.GREATEST_LOWER_BOUND);if(i<0)return -1;for(;i-1>=0&&0===r(t[i],t[i-1],!0);)--i;return i}),Kt),r=G6().ArraySet,n=G3(),i=function(){if(V)return Kr;function e(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}return V=1,Kr.quickSort=function(t,r){!function t(r,n,i,a){if(i<a){var s=Math.round(i+Math.random()*(a-i)),o=i-1;e(r,s,a);for(var u=r[a],l=i;l<a;l++)0>=n(r[l],u)&&e(r,o+=1,l);e(r,o+1,l);var c=o+1;t(r,n,i,c-1),t(r,n,c+1,a)}}(t,r,0,t.length-1)},Kr}().quickSort;function a(t,r){var n=t;return"string"==typeof t&&(n=e.parseSourceMapInput(t)),null!=n.sections?new u(n,r):new s(n,r)}function s(t,n){var i=t;"string"==typeof t&&(i=e.parseSourceMapInput(t));var a=e.getArg(i,"version"),s=e.getArg(i,"sources"),o=e.getArg(i,"names",[]),u=e.getArg(i,"sourceRoot",null),l=e.getArg(i,"sourcesContent",null),c=e.getArg(i,"mappings"),p=e.getArg(i,"file",null);if(a!=this._version)throw Error("Unsupported version: "+a);u&&(u=e.normalize(u)),s=s.map(String).map(e.normalize).map(function(t){return u&&e.isAbsolute(u)&&e.isAbsolute(t)?e.relative(u,t):t}),this._names=r.fromArray(o.map(String),!0),this._sources=r.fromArray(s,!0),this._absoluteSources=this._sources.toArray().map(function(t){return e.computeSourceURL(u,t,n)}),this.sourceRoot=u,this.sourcesContent=l,this._mappings=c,this._sourceMapURL=n,this.file=p}function o(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function u(t,n){var i=t;"string"==typeof t&&(i=e.parseSourceMapInput(t));var s=e.getArg(i,"version"),o=e.getArg(i,"sections");if(s!=this._version)throw Error("Unsupported version: "+s);this._sources=new r,this._names=new r;var u={line:-1,column:0};this._sections=o.map(function(t){if(t.url)throw Error("Support for url field in sections not implemented.");var r=e.getArg(t,"offset"),i=e.getArg(r,"line"),s=e.getArg(r,"column");if(i<u.line||i===u.line&&s<u.column)throw Error("Section offsets must be ordered and non-overlapping.");return u=r,{generatedOffset:{generatedLine:i+1,generatedColumn:s+1},consumer:new a(e.getArg(t,"map"),n)}})}return a.fromSourceMap=function(e,t){return s.fromSourceMap(e,t)},a.prototype._version=3,a.prototype.__generatedMappings=null,Object.defineProperty(a.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),a.prototype.__originalMappings=null,Object.defineProperty(a.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),a.prototype._charIsMappingSeparator=function(e,t){var r=e.charAt(t);return";"===r||","===r},a.prototype._parseMappings=function(e,t){throw Error("Subclasses must implement _parseMappings")},a.GENERATED_ORDER=1,a.ORIGINAL_ORDER=2,a.GREATEST_LOWER_BOUND=1,a.LEAST_UPPER_BOUND=2,a.prototype.eachMapping=function(t,r,n){switch(n||a.GENERATED_ORDER){case a.GENERATED_ORDER:i=this._generatedMappings;break;case a.ORIGINAL_ORDER:i=this._originalMappings;break;default:throw Error("Unknown order of iteration.")}var i,s=this.sourceRoot;i.map(function(t){var r=null===t.source?null:this._sources.at(t.source);return{source:r=e.computeSourceURL(s,r,this._sourceMapURL),generatedLine:t.generatedLine,generatedColumn:t.generatedColumn,originalLine:t.originalLine,originalColumn:t.originalColumn,name:null===t.name?null:this._names.at(t.name)}},this).forEach(t,r||null)},a.prototype.allGeneratedPositionsFor=function(r){var n=e.getArg(r,"line"),i={source:e.getArg(r,"source"),originalLine:n,originalColumn:e.getArg(r,"column",0)};if(i.source=this._findSourceIndex(i.source),i.source<0)return[];var a=[],s=this._findMapping(i,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,t.LEAST_UPPER_BOUND);if(s>=0){var o=this._originalMappings[s];if(void 0===r.column)for(var u=o.originalLine;o&&o.originalLine===u;)a.push({line:e.getArg(o,"generatedLine",null),column:e.getArg(o,"generatedColumn",null),lastColumn:e.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s];else for(var l=o.originalColumn;o&&o.originalLine===n&&o.originalColumn==l;)a.push({line:e.getArg(o,"generatedLine",null),column:e.getArg(o,"generatedColumn",null),lastColumn:e.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s]}return a},Ke.SourceMapConsumer=a,s.prototype=Object.create(a.prototype),s.prototype.consumer=a,s.prototype._findSourceIndex=function(t){var r,n=t;if(null!=this.sourceRoot&&(n=e.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==t)return r;return -1},s.fromSourceMap=function(t,n){var a=Object.create(s.prototype),u=a._names=r.fromArray(t._names.toArray(),!0),l=a._sources=r.fromArray(t._sources.toArray(),!0);a.sourceRoot=t._sourceRoot,a.sourcesContent=t._generateSourcesContent(a._sources.toArray(),a.sourceRoot),a.file=t._file,a._sourceMapURL=n,a._absoluteSources=a._sources.toArray().map(function(t){return e.computeSourceURL(a.sourceRoot,t,n)});for(var c=t._mappings.toArray().slice(),p=a.__generatedMappings=[],d=a.__originalMappings=[],f=0,h=c.length;f<h;f++){var m=c[f],y=new o;y.generatedLine=m.generatedLine,y.generatedColumn=m.generatedColumn,m.source&&(y.source=l.indexOf(m.source),y.originalLine=m.originalLine,y.originalColumn=m.originalColumn,m.name&&(y.name=u.indexOf(m.name)),d.push(y)),p.push(y)}return i(a.__originalMappings,e.compareByOriginalPositions),a},s.prototype._version=3,Object.defineProperty(s.prototype,"sources",{get:function(){return this._absoluteSources.slice()}}),s.prototype._parseMappings=function(t,r){for(var a,s,u,l,c,p=1,d=0,f=0,h=0,m=0,y=0,v=t.length,g=0,b={},S={},x=[],T=[];g<v;)if(";"===t.charAt(g))p++,g++,d=0;else if(","===t.charAt(g))g++;else{for((a=new o).generatedLine=p,l=g;l<v&&!this._charIsMappingSeparator(t,l);l++);if(u=b[s=t.slice(g,l)])g+=s.length;else{for(u=[];g<l;)n.decode(t,g,S),c=S.value,g=S.rest,u.push(c);if(2===u.length)throw Error("Found a source, but no line and column");if(3===u.length)throw Error("Found a source and line, but no column");b[s]=u}a.generatedColumn=d+u[0],d=a.generatedColumn,u.length>1&&(a.source=m+u[1],m+=u[1],a.originalLine=f+u[2],f=a.originalLine,a.originalLine+=1,a.originalColumn=h+u[3],h=a.originalColumn,u.length>4&&(a.name=y+u[4],y+=u[4])),T.push(a),"number"==typeof a.originalLine&&x.push(a)}i(T,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=T,i(x,e.compareByOriginalPositions),this.__originalMappings=x},s.prototype._findMapping=function(e,r,n,i,a,s){if(e[n]<=0)throw TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[i]<0)throw TypeError("Column must be greater than or equal to 0, got "+e[i]);return t.search(e,r,a,s)},s.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var r=this._generatedMappings[e+1];if(t.generatedLine===r.generatedLine){t.lastGeneratedColumn=r.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},s.prototype.originalPositionFor=function(t){var r={generatedLine:e.getArg(t,"line"),generatedColumn:e.getArg(t,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(t,"bias",a.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var s=e.getArg(i,"source",null);null!==s&&(s=this._sources.at(s),s=e.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var o=e.getArg(i,"name",null);return null!==o&&(o=this._names.at(o)),{source:s,line:e.getArg(i,"originalLine",null),column:e.getArg(i,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}},s.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e})},s.prototype.sourceContentFor=function(t,r){if(!this.sourcesContent)return null;var n,i=this._findSourceIndex(t);if(i>=0)return this.sourcesContent[i];var a=t;if(null!=this.sourceRoot&&(a=e.relative(this.sourceRoot,a)),null!=this.sourceRoot&&(n=e.urlParse(this.sourceRoot))){var s=a.replace(/^file:\/\//,"");if("file"==n.scheme&&this._sources.has(s))return this.sourcesContent[this._sources.indexOf(s)];if((!n.path||"/"==n.path)&&this._sources.has("/"+a))return this.sourcesContent[this._sources.indexOf("/"+a)]}if(r)return null;throw Error('"'+a+'" is not in the SourceMap.')},s.prototype.generatedPositionFor=function(t){var r=e.getArg(t,"source");if((r=this._findSourceIndex(r))<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:e.getArg(t,"line"),originalColumn:e.getArg(t,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(t,"bias",a.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===n.source)return{line:e.getArg(s,"generatedLine",null),column:e.getArg(s,"generatedColumn",null),lastColumn:e.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},Ke.BasicSourceMapConsumer=s,u.prototype=Object.create(a.prototype),u.prototype.constructor=a,u.prototype._version=3,Object.defineProperty(u.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e}}),u.prototype.originalPositionFor=function(r){var n={generatedLine:e.getArg(r,"line"),generatedColumn:e.getArg(r,"column")},i=t.search(n,this._sections,function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn}),a=this._sections[i];return a?a.consumer.originalPositionFor({line:n.generatedLine-(a.generatedOffset.generatedLine-1),column:n.generatedColumn-(a.generatedOffset.generatedLine===n.generatedLine?a.generatedOffset.generatedColumn-1:0),bias:r.bias}):{source:null,line:null,column:null,name:null}},u.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})},u.prototype.sourceContentFor=function(e,t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r].consumer.sourceContentFor(e,!0);if(n)return n}if(t)return null;throw Error('"'+e+'" is not in the SourceMap.')},u.prototype.generatedPositionFor=function(t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(-1!==n.consumer._findSourceIndex(e.getArg(t,"source"))){var i=n.consumer.generatedPositionFor(t);if(i)return{line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},u.prototype._parseMappings=function(t,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var a=this._sections[n],s=a.consumer._generatedMappings,o=0;o<s.length;o++){var u=s[o],l=a.consumer._sources.at(u.source);l=e.computeSourceURL(a.consumer.sourceRoot,l,this._sourceMapURL),this._sources.add(l),l=this._sources.indexOf(l);var c=null;u.name&&(c=a.consumer._names.at(u.name),this._names.add(c),c=this._names.indexOf(c));var p={source:l,generatedLine:u.generatedLine+(a.generatedOffset.generatedLine-1),generatedColumn:u.generatedColumn+(a.generatedOffset.generatedLine===u.generatedLine?a.generatedOffset.generatedColumn-1:0),originalLine:u.originalLine,originalColumn:u.originalColumn,name:c};this.__generatedMappings.push(p),"number"==typeof p.originalLine&&this.__originalMappings.push(p)}i(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),i(this.__originalMappings,e.compareByOriginalPositions)},Ke.IndexedSourceMapConsumer=u,Ke}().SourceMapConsumer,GZ.SourceNode=function(){if(q)return Kn;q=1;var e=G7().SourceMapGenerator,t=G5(),r=/(\r?\n)/,n="$$$isSourceNode$$$";function i(e,t,r,i,a){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==r?null:r,this.name=null==a?null:a,this[n]=!0,null!=i&&this.add(i)}return i.fromStringWithSourceMap=function(e,n,a){var s=new i,o=e.split(r),u=0,l=function(){return e()+(e()||"");function e(){return u<o.length?o[u++]:void 0}},c=1,p=0,d=null;return n.eachMapping(function(e){if(null!==d){if(c<e.generatedLine)f(d,l()),c++,p=0;else{var t=o[u]||"",r=t.substr(0,e.generatedColumn-p);o[u]=t.substr(e.generatedColumn-p),p=e.generatedColumn,f(d,r),d=e;return}}for(;c<e.generatedLine;)s.add(l()),c++;if(p<e.generatedColumn){var t=o[u]||"";s.add(t.substr(0,e.generatedColumn)),o[u]=t.substr(e.generatedColumn),p=e.generatedColumn}d=e},this),u<o.length&&(d&&f(d,l()),s.add(o.splice(u).join(""))),n.sources.forEach(function(e){var r=n.sourceContentFor(e);null!=r&&(null!=a&&(e=t.join(a,e)),s.setSourceContent(e,r))}),s;function f(e,r){if(null===e||void 0===e.source)s.add(r);else{var n=a?t.join(a,e.source):e.source;s.add(new i(e.originalLine,e.originalColumn,n,r,e.name))}}},i.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else if(e[n]||"string"==typeof e)e&&this.children.push(e);else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this},i.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else if(e[n]||"string"==typeof e)this.children.unshift(e);else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this},i.prototype.walk=function(e){for(var t,r=0,i=this.children.length;r<i;r++)(t=this.children[r])[n]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},i.prototype.join=function(e){var t,r,n=this.children.length;if(n>0){for(r=0,t=[];r<n-1;r++)t.push(this.children[r]),t.push(e);t.push(this.children[r]),this.children=t}return this},i.prototype.replaceRight=function(e,t){var r=this.children[this.children.length-1];return r[n]?r.replaceRight(e,t):"string"==typeof r?this.children[this.children.length-1]=r.replace(e,t):this.children.push("".replace(e,t)),this},i.prototype.setSourceContent=function(e,r){this.sourceContents[t.toSetString(e)]=r},i.prototype.walkSourceContents=function(e){for(var r=0,i=this.children.length;r<i;r++)this.children[r][n]&&this.children[r].walkSourceContents(e);for(var a=Object.keys(this.sourceContents),r=0,i=a.length;r<i;r++)e(t.fromSetString(a[r]),this.sourceContents[a[r]])},i.prototype.toString=function(){var e="";return this.walk(function(t){e+=t}),e},i.prototype.toStringWithSourceMap=function(t){var r={code:"",line:1,column:0},n=new e(t),i=!1,a=null,s=null,o=null,u=null;return this.walk(function(e,t){r.code+=e,null!==t.source&&null!==t.line&&null!==t.column?((a!==t.source||s!==t.line||o!==t.column||u!==t.name)&&n.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:r.line,column:r.column},name:t.name}),a=t.source,s=t.line,o=t.column,u=t.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),a=null,i=!1);for(var l=0,c=e.length;l<c;l++)10===e.charCodeAt(l)?(r.line++,r.column=0,l+1===c?(a=null,i=!1):i&&n.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:r.line,column:r.column},name:t.name})):r.column++}),this.walkSourceContents(function(e,t){n.setSourceContent(e,t)}),{code:r.code,map:n}},Kn.SourceNode=i,Kn}().SourceNode),GZ}function Ka(){if(X)return GQ;X=1,Object.defineProperty(GQ,"__esModule",{value:!0}),GQ.isTrailingCommaEnabled=GQ.getParentExportDeclaration=GQ.isExportDeclaration=GQ.fixFaultyLocations=GQ.getTrueLoc=GQ.composeSourceMaps=GQ.copyPos=GQ.comparePos=GQ.getUnionOfKeys=GQ.getOption=GQ.isBrowser=GQ.getLineTerminator=void 0;var e=Gi.__importDefault(/*@__PURE__*/G$()),t=Gi.__importStar(GH()).namedTypes,r=Gi.__importDefault(Ki()),n=r.default.SourceMapConsumer,i=r.default.SourceMapGenerator,a=Object.prototype.hasOwnProperty;function s(){return"undefined"!=typeof window&&void 0!==window.document}function o(e,t){return e.line-t.line||e.column-t.column}function u(e){return{line:e.line,column:e.column}}function l(e,t){e&&t&&(0>o(t.start,e.start)&&(e.start=t.start),0>o(e.end,t.end)&&(e.end=t.end))}function c(e){if(e)switch(e.type){case"ExportDeclaration":case"ExportDefaultDeclaration":case"ExportDefaultSpecifier":case"DeclareExportDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return!0}return!1}return GQ.getLineTerminator=function(){return s()?"\n":tO.EOL||"\n"},GQ.isBrowser=s,GQ.getOption=function(e,t,r){return e&&a.call(e,t)?e[t]:r},GQ.getUnionOfKeys=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r={},n=e.length,i=0;i<n;++i)for(var a=Object.keys(e[i]),s=a.length,o=0;o<s;++o)r[a[o]]=!0;return r},GQ.comparePos=o,GQ.copyPos=u,GQ.composeSourceMaps=function(e,t){if(!e)return t||null;if(!t)return e;var r=new n(e),s=new n(t),o=new i({file:t.file,sourceRoot:t.sourceRoot}),l={};return s.eachMapping(function(e){var t=r.originalPositionFor({line:e.originalLine,column:e.originalColumn}),n=t.source;if(null!==n){o.addMapping({source:n,original:u(t),generated:{line:e.generatedLine,column:e.generatedColumn},name:e.name});var i=r.sourceContentFor(n);i&&!a.call(l,n)&&(l[n]=i,o.setSourceContent(n,i))}}),o.toJSON()},GQ.getTrueLoc=function(e,t){if(!e.loc)return null;var r={start:e.loc.start,end:e.loc.end};function n(e){l(r,e.loc)}return e.declaration&&e.declaration.decorators&&c(e)&&e.declaration.decorators.forEach(n),0>o(r.start,r.end)&&(r.start=u(r.start),t.skipSpaces(r.start,!1,!0),0>o(r.start,r.end)&&(r.end=u(r.end),t.skipSpaces(r.end,!0,!0))),e.comments&&e.comments.forEach(n),r},GQ.fixFaultyLocations=function(r,n){var i=r.loc;if(i&&(i.start.line<1&&(i.start.line=1),i.end.line<1&&(i.end.line=1)),"File"===r.type&&(i.start=n.firstPos(),i.end=n.lastPos()),function(e,t){"ForStatement"===e.type&&(r(e.init),r(e.test),r(e.update));function r(e){for(var r=e&&e.loc,n=r&&r.start,i=r&&u(r.end);n&&i&&0>o(n,i);)if(t.prevPos(i),";"===t.charAt(i))r.end.line=i.line,r.end.column=i.column;else break}}(r,n),function(t,r){if("TemplateLiteral"===t.type&&0!==t.quasis.length){if(t.loc){var n=u(t.loc.start);(0,e.default)("`"===r.charAt(n)),(0,e.default)(r.nextPos(n));var i=t.quasis[0];0>o(i.loc.start,n)&&(i.loc.start=n);var a=u(t.loc.end);(0,e.default)(r.prevPos(a)),(0,e.default)("`"===r.charAt(a));var s=t.quasis[t.quasis.length-1];0>o(a,s.loc.end)&&(s.loc.end=a)}t.expressions.forEach(function(n,i){var a=r.skipSpaces(n.loc.start,!0,!1);if(r.prevPos(a)&&"{"===r.charAt(a)&&r.prevPos(a)&&"$"===r.charAt(a)){var s=t.quasis[i];0>o(a,s.loc.end)&&(s.loc.end=a)}var u=r.skipSpaces(n.loc.end,!1,!1);if("}"===r.charAt(u)){(0,e.default)(r.nextPos(u));var l=t.quasis[i+1];0>o(l.loc.start,u)&&(l.loc.start=u)}})}}(r,n),i&&r.decorators)r.decorators.forEach(function(e){l(i,e.loc)});else if(r.declaration&&c(r)){r.declaration.loc=null;var a=r.declaration.decorators;a&&a.forEach(function(e){l(i,e.loc)})}else if(t.MethodDefinition&&t.MethodDefinition.check(r)||t.Property.check(r)&&(r.method||r.shorthand))r.value.loc=null,t.FunctionExpression.check(r.value)&&(r.value.id=null);else if("ObjectTypeProperty"===r.type){var s=r.loc,p=s&&s.end;p&&(p=u(p),n.prevPos(p)&&","===n.charAt(p)&&(p=n.skipSpaces(p,!0,!0))&&(s.end=p))}},GQ.isExportDeclaration=c,GQ.getParentExportDeclaration=function(e){var t=e.getParentNode();return"declaration"===e.getName()&&c(t)?t:null},GQ.isTrailingCommaEnabled=function(e,t){var r=e.trailingComma;return"object"==typeof r?!!r[t]:!!r},GQ}var Ks={};function Ko(){if(K)return GY;K=1,Object.defineProperty(GY,"__esModule",{value:!0}),GY.normalize=void 0;var e=Ka(),t={parser:function(){if(G)return Ks;G=1,Object.defineProperty(Ks,"__esModule",{value:!0}),Ks.parse=void 0;var e=Ka();return Ks.parse=function(t,r){var n=[],i=require("esprima").parse(t,{loc:!0,locations:!0,comment:!0,onComment:n,range:(0,e.getOption)(r,"range",!1),tolerant:(0,e.getOption)(r,"tolerant",!0),tokens:!0,jsx:(0,e.getOption)(r,"jsx",!1),sourceType:(0,e.getOption)(r,"sourceType","module")});return Array.isArray(i.comments)||(i.comments=n),i},Ks}(),tabWidth:4,useTabs:!1,reuseWhitespace:!0,lineTerminator:(0,e.getLineTerminator)(),wrapColumn:74,sourceFileName:null,sourceMapName:null,sourceRoot:null,inputSourceMap:null,range:!1,tolerant:!0,quote:null,trailingComma:!1,arrayBracketSpacing:!1,objectCurlySpacing:!0,arrowParensAlways:!1,flowObjectCommas:!0,tokens:!0},r=t.hasOwnProperty;return GY.normalize=function(e){var n=e||t;function i(e){return r.call(n,e)?n[e]:t[e]}return{tabWidth:+i("tabWidth"),useTabs:!!i("useTabs"),reuseWhitespace:!!i("reuseWhitespace"),lineTerminator:i("lineTerminator"),wrapColumn:Math.max(i("wrapColumn"),0),sourceFileName:i("sourceFileName"),sourceMapName:i("sourceMapName"),sourceRoot:i("sourceRoot"),inputSourceMap:i("inputSourceMap"),parser:i("esprima")||i("parser"),range:i("range"),tolerant:i("tolerant"),quote:i("quote"),trailingComma:i("trailingComma"),arrayBracketSpacing:i("arrayBracketSpacing"),objectCurlySpacing:i("objectCurlySpacing"),arrowParensAlways:i("arrowParensAlways"),flowObjectCommas:i("flowObjectCommas"),tokens:!!i("tokens")}},GY}var Ku={},Kl={};function Kc(){if(z)return Ku;z=1,Object.defineProperty(Ku,"__esModule",{value:!0}),Ku.concat=Ku.fromString=Ku.countSpaces=Ku.Lines=void 0;var e=Gi.__importDefault(/*@__PURE__*/G$()),t=Gi.__importDefault(Ki()),r=Ko(),n=Ka(),i=Gi.__importDefault(function(){if(H)return Kl;H=1,Object.defineProperty(Kl,"__esModule",{value:!0});var e=Gi.__importDefault(/*@__PURE__*/G$()),t=Ka(),r=function(){function r(e,t,r){void 0===r&&(r=t),this.sourceLines=e,this.sourceLoc=t,this.targetLoc=r}return r.prototype.slice=function(n,a,s){void 0===s&&(s=n.lastPos());var o=this.sourceLines,u=this.sourceLoc,l=this.targetLoc;function c(r){var i=u[r],c=l[r],p=a;return"end"===r?p=s:(0,e.default)("start"===r),function(r,n,i,a,s){var o,u,l=(0,t.comparePos)(a,s);if(0===l)return n;if(l<0){o=r.skipSpaces(n)||r.lastPos(),u=i.skipSpaces(a)||i.lastPos();var c=s.line-u.line;for(o.line+=c,u.line+=c,c>0?(o.column=0,u.column=0):(0,e.default)(0===c);0>(0,t.comparePos)(u,s)&&i.nextPos(u,!0);)(0,e.default)(r.nextPos(o,!0)),(0,e.default)(r.charAt(o)===i.charAt(u))}else{o=r.skipSpaces(n,!0)||r.firstPos(),u=i.skipSpaces(a,!0)||i.firstPos();var c=s.line-u.line;for(o.line+=c,u.line+=c,c<0?(o.column=r.getLineLength(o.line),u.column=i.getLineLength(u.line)):(0,e.default)(0===c);0>(0,t.comparePos)(s,u)&&i.prevPos(u,!0);)(0,e.default)(r.prevPos(o,!0)),(0,e.default)(r.charAt(o)===i.charAt(u))}return o}(o,i,n,c,p)}if(0>=(0,t.comparePos)(a,l.start)){if(0>=(0,t.comparePos)(l.end,s))l={start:i(l.start,a.line,a.column),end:i(l.end,a.line,a.column)};else{if(0>=(0,t.comparePos)(s,l.start))return null;u={start:u.start,end:c("end")},l={start:i(l.start,a.line,a.column),end:i(s,a.line,a.column)}}}else{if(0>=(0,t.comparePos)(l.end,a))return null;0>=(0,t.comparePos)(l.end,s)?(u={start:c("start"),end:u.end},l={start:{line:1,column:0},end:i(l.end,a.line,a.column)}):(u={start:c("start"),end:c("end")},l={start:{line:1,column:0},end:i(s,a.line,a.column)})}return new r(this.sourceLines,u,l)},r.prototype.add=function(e,t){return new r(this.sourceLines,this.sourceLoc,{start:n(this.targetLoc.start,e,t),end:n(this.targetLoc.end,e,t)})},r.prototype.subtract=function(e,t){return new r(this.sourceLines,this.sourceLoc,{start:i(this.targetLoc.start,e,t),end:i(this.targetLoc.end,e,t)})},r.prototype.indent=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),0===e)return this;var i=this.targetLoc,a=i.start.line,s=i.end.line;if(t&&1===a&&1===s)return this;if(i={start:i.start,end:i.end},!t||a>1){var o=i.start.column+e;i.start={line:a,column:n?Math.max(0,o):o}}if(!t||s>1){var u=i.end.column+e;i.end={line:s,column:n?Math.max(0,u):u}}return new r(this.sourceLines,this.sourceLoc,i)},r}();function n(e,t,r){return{line:e.line+t-1,column:1===e.line?e.column+r:e.column}}function i(e,t,r){return{line:e.line-t+1,column:e.line===t?e.column-r:e.column}}return Kl.default=r,Kl}()),a=function(){function a(t,r){void 0===r&&(r=null),this.infos=t,this.mappings=[],this.cachedSourceMap=null,this.cachedTabWidth=void 0,(0,e.default)(t.length>0),this.length=t.length,this.name=r||null,this.name&&this.mappings.push(new i.default(this,{start:this.firstPos(),end:this.lastPos()}))}return a.prototype.toString=function(e){return this.sliceString(this.firstPos(),this.lastPos(),e)},a.prototype.getSourceMap=function(r,i){if(!r)return null;var a=this;function s(e){return(e=e||{}).file=r,i&&(e.sourceRoot=i),e}if(a.cachedSourceMap)return s(a.cachedSourceMap.toJSON());var u=new t.default.SourceMapGenerator(s()),l={};return a.mappings.forEach(function(t){for(var r=t.sourceLines.skipSpaces(t.sourceLoc.start)||t.sourceLines.lastPos(),i=a.skipSpaces(t.targetLoc.start)||a.lastPos();0>(0,n.comparePos)(r,t.sourceLoc.end)&&0>(0,n.comparePos)(i,t.targetLoc.end);){var s=t.sourceLines.charAt(r),c=a.charAt(i);(0,e.default)(s===c);var p=t.sourceLines.name;if(u.addMapping({source:p,original:{line:r.line,column:r.column},generated:{line:i.line,column:i.column}}),!o.call(l,p)){var d=t.sourceLines.toString();u.setSourceContent(p,d),l[p]=d}a.nextPos(i,!0),t.sourceLines.nextPos(r,!0)}}),a.cachedSourceMap=u,u.toJSON()},a.prototype.bootstrapCharAt=function(t){(0,e.default)("object"==typeof t),(0,e.default)("number"==typeof t.line),(0,e.default)("number"==typeof t.column);var r=t.line,n=t.column,i=this.toString().split(c),a=i[r-1];return void 0===a?"":n===a.length&&r<i.length?"\n":n>=a.length?"":a.charAt(n)},a.prototype.charAt=function(t){(0,e.default)("object"==typeof t),(0,e.default)("number"==typeof t.line),(0,e.default)("number"==typeof t.column);var r=t.line,n=t.column,i=this.infos[r-1],a=n;if(void 0===i||a<0)return"";var s=this.getIndentAt(r);return a<s?" ":(a+=i.sliceStart-s)===i.sliceEnd&&r<this.length?"\n":a>=i.sliceEnd?"":i.line.charAt(a)},a.prototype.stripMargin=function(t,r){if(0===t||((0,e.default)(t>0,"negative margin: "+t),r&&1===this.length))return this;var n=new a(this.infos.map(function(e,n){return e.line&&(n>0||!r)&&(e=Gi.__assign(Gi.__assign({},e),{indent:Math.max(0,e.indent-t)})),e}));if(this.mappings.length>0){var i=n.mappings;(0,e.default)(0===i.length),this.mappings.forEach(function(e){i.push(e.indent(t,r,!0))})}return n},a.prototype.indent=function(t){if(0===t)return this;var r=new a(this.infos.map(function(e){return e.line&&!e.locked&&(e=Gi.__assign(Gi.__assign({},e),{indent:e.indent+t})),e}));if(this.mappings.length>0){var n=r.mappings;(0,e.default)(0===n.length),this.mappings.forEach(function(e){n.push(e.indent(t))})}return r},a.prototype.indentTail=function(t){if(0===t||this.length<2)return this;var r=new a(this.infos.map(function(e,r){return r>0&&e.line&&!e.locked&&(e=Gi.__assign(Gi.__assign({},e),{indent:e.indent+t})),e}));if(this.mappings.length>0){var n=r.mappings;(0,e.default)(0===n.length),this.mappings.forEach(function(e){n.push(e.indent(t,!0))})}return r},a.prototype.lockIndentTail=function(){return this.length<2?this:new a(this.infos.map(function(e,t){return Gi.__assign(Gi.__assign({},e),{locked:t>0})}))},a.prototype.getIndentAt=function(t){return(0,e.default)(t>=1,"no line "+t+" (line numbers start from 1)"),Math.max(this.infos[t-1].indent,0)},a.prototype.guessTabWidth=function(){if("number"==typeof this.cachedTabWidth)return this.cachedTabWidth;for(var e=[],t=0,r=1,n=this.length;r<=n;++r){var i=this.infos[r-1];if(!d(i.line.slice(i.sliceStart,i.sliceEnd))){var a=Math.abs(i.indent-t);e[a]=~~e[a]+1,t=i.indent}}for(var s=-1,u=2,l=1;l<e.length;l+=1)o.call(e,l)&&e[l]>s&&(s=e[l],u=l);return this.cachedTabWidth=u},a.prototype.startsWithComment=function(){if(0===this.infos.length)return!1;var e=this.infos[0],t=e.sliceStart,r=e.sliceEnd,n=e.line.slice(t,r).trim();return 0===n.length||"//"===n.slice(0,2)||"/*"===n.slice(0,2)},a.prototype.isOnlyWhitespace=function(){return d(this.toString())},a.prototype.isPrecededOnlyByWhitespace=function(e){var t=this.infos[e.line-1],r=Math.max(t.indent,0),n=e.column-r;if(n<=0)return!0;var i=t.sliceStart,a=Math.min(i+n,t.sliceEnd);return d(t.line.slice(i,a))},a.prototype.getLineLength=function(e){var t=this.infos[e-1];return this.getIndentAt(e)+t.sliceEnd-t.sliceStart},a.prototype.nextPos=function(e,t){void 0===t&&(t=!1);var r=Math.max(e.line,0);return Math.max(e.column,0)<this.getLineLength(r)?(e.column+=1,!t||!!this.skipSpaces(e,!1,!0)):r<this.length&&(e.line+=1,e.column=0,!t||!!this.skipSpaces(e,!1,!0))},a.prototype.prevPos=function(e,t){void 0===t&&(t=!1);var r=e.line,n=e.column;if(n<1){if((r-=1)<1)return!1;n=this.getLineLength(r)}else n=Math.min(n-1,this.getLineLength(r));return e.line=r,e.column=n,!t||!!this.skipSpaces(e,!0,!0)},a.prototype.firstPos=function(){return{line:1,column:0}},a.prototype.lastPos=function(){return{line:this.length,column:this.getLineLength(this.length)}},a.prototype.skipSpaces=function(e,t,r){if(void 0===t&&(t=!1),void 0===r&&(r=!1),e=e?r?e:{line:e.line,column:e.column}:t?this.lastPos():this.firstPos(),t){for(;this.prevPos(e);)if(!d(this.charAt(e))&&this.nextPos(e))return e;return null}for(;d(this.charAt(e));)if(!this.nextPos(e))return null;return e},a.prototype.trimLeft=function(){var e=this.skipSpaces(this.firstPos(),!1,!0);return e?this.slice(e):h},a.prototype.trimRight=function(){var e=this.skipSpaces(this.lastPos(),!0,!0);return e?this.slice(this.firstPos(),e):h},a.prototype.trim=function(){var e=this.skipSpaces(this.firstPos(),!1,!0);if(null===e)return h;var t=this.skipSpaces(this.lastPos(),!0,!0);return null===t?h:this.slice(e,t)},a.prototype.eachPos=function(e,t,r){void 0===t&&(t=this.firstPos()),void 0===r&&(r=!1);var n=this.firstPos();if(t&&(n.line=t.line,n.column=t.column),!r||this.skipSpaces(n,!1,!0))do e.call(this,n);while(this.nextPos(n,r))},a.prototype.bootstrapSlice=function(e,t){var r=this.toString().split(c).slice(e.line-1,t.line);return r.length>0&&(r.push(r.pop().slice(0,t.column)),r[0]=r[0].slice(e.column)),p(r.join("\n"))},a.prototype.slice=function(t,r){if(!r){if(!t)return this;r=this.lastPos()}if(!t)throw Error("cannot slice with end but not start");var n=this.infos.slice(t.line-1,r.line);t.line===r.line?n[0]=f(n[0],t.column,r.column):((0,e.default)(t.line<r.line),n[0]=f(n[0],t.column),n.push(f(n.pop(),0,r.column)));var i=new a(n);if(this.mappings.length>0){var s=i.mappings;(0,e.default)(0===s.length),this.mappings.forEach(function(e){var n=e.slice(this,t,r);n&&s.push(n)},this)}return i},a.prototype.bootstrapSliceString=function(e,t,r){return this.slice(e,t).toString(r)},a.prototype.sliceString=function(e,t,n){void 0===e&&(e=this.firstPos()),void 0===t&&(t=this.lastPos());for(var i=(0,r.normalize)(n),a=i.tabWidth,s=i.useTabs,o=i.reuseWhitespace,l=i.lineTerminator,c=[],p=e.line;p<=t.line;++p){var h=this.infos[p-1];p===e.line?h=p===t.line?f(h,e.column,t.column):f(h,e.column):p===t.line&&(h=f(h,0,t.column));var m=Math.max(h.indent,0),y=h.line.slice(0,h.sliceStart);if(o&&d(y)&&u(y,a)===m){c.push(h.line.slice(0,h.sliceEnd));continue}var v=0,g=m;s&&(g-=(v=Math.floor(m/a))*a);var b="";v>0&&(b+=Array(v+1).join(" ")),g>0&&(b+=Array(g+1).join(" ")),b+=h.line.slice(h.sliceStart,h.sliceEnd),c.push(b)}return c.join(l)},a.prototype.isEmpty=function(){return this.length<2&&1>this.getLineLength(1)},a.prototype.join=function(e){var t,r=this,n=[],i=[];function s(e){if(null!==e){if(t){var r=e.infos[0],a=Array(r.indent+1).join(" "),s=n.length,o=Math.max(t.indent,0)+t.sliceEnd-t.sliceStart;t.line=t.line.slice(0,t.sliceEnd)+a+r.line.slice(r.sliceStart,r.sliceEnd),t.locked=t.locked||r.locked,t.sliceEnd=t.line.length,e.mappings.length>0&&e.mappings.forEach(function(e){i.push(e.add(s,o))})}else e.mappings.length>0&&i.push.apply(i,e.mappings);e.infos.forEach(function(e,r){(!t||r>0)&&(t=Gi.__assign({},e),n.push(t))})}}if(e.map(function(e){var t=p(e);return t.isEmpty()?null:t}).forEach(function(e,t){r.isEmpty()||t>0&&s(r),s(e)}),n.length<1)return h;var o=new a(n);return o.mappings=i,o},a.prototype.concat=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=[this];return n.push.apply(n,t),(0,e.default)(n.length===t.length+1),h.join(n)},a}();Ku.Lines=a;var s={},o=s.hasOwnProperty;function u(t,r){for(var n=0,i=t.length,a=0;a<i;++a)switch(t.charCodeAt(a)){case 9:(0,e.default)("number"==typeof r),(0,e.default)(r>0);var s=Math.ceil(n/r)*r;s===n?n+=r:n=s;break;case 11:case 12:case 13:case 65279:break;default:n+=1}return n}Ku.countSpaces=u;var l=/^\s*/,c=/\u000D\u000A|\u000D(?!\u000A)|\u000A|\u2028|\u2029/;function p(t,n){if(t instanceof a)return t;t+="";var i=n&&n.tabWidth,p=0>t.indexOf(" "),d=!n&&p&&t.length<=10;if((0,e.default)(i||p,"No tab width specified but encountered tabs in string\n"+t),d&&o.call(s,t))return s[t];var f=new a(t.split(c).map(function(e){var t=l.exec(e)[0];return{line:e,indent:u(t,i),locked:!1,sliceStart:t.length,sliceEnd:e.length}}),(0,r.normalize)(n).sourceFileName);return d&&(s[t]=f),f}function d(e){return!/\S/.test(e)}function f(t,r,n){var i=t.sliceStart,a=t.sliceEnd,s=Math.max(t.indent,0),o=s+a-i;return(void 0===n&&(n=o),r=Math.max(r,0),(n=Math.max(n=Math.min(n,o),r))<s?(s=n,a=i):a-=o-n,o=n-r,r<s?s-=r:(r-=s,s=0,i+=r),(0,e.default)(s>=0),(0,e.default)(i<=a),(0,e.default)(o===s+a-i),t.indent===s&&t.sliceStart===i&&t.sliceEnd===a)?t:{line:t.line,indent:s,locked:!1,sliceStart:i,sliceEnd:a}}Ku.fromString=p,Ku.concat=function(e){return h.join(e)};var h=p("");return Ku}var Kp={};function Kd(){if($)return Kp;$=1,Object.defineProperty(Kp,"__esModule",{value:!0}),Kp.printComments=Kp.attach=void 0;var e=Gi.__importDefault(/*@__PURE__*/G$()),t=Gi.__importStar(GH()),r=t.namedTypes,n=t.builtInTypes.array,i=t.builtInTypes.object,a=Kc(),s=Ka(),o=new WeakMap;function u(t,r){var n,i=t.length;if(0!==i){for(var a=t[0].precedingNode,s=t[0].followingNode,o=s.loc.start,u=i;u>0;--u){n=t[u-1],(0,e.default)(n.precedingNode===a),(0,e.default)(n.followingNode===s);var l=r.sliceString(n.loc.end,o);if(/\S/.test(l))break;o=n.loc.start}for(;u<=i&&(n=t[u])&&("Line"===n.type||"CommentLine"===n.type)&&n.loc.start.column>s.loc.start.column;)++u;if(u){var d=t[u-1].enclosingNode;(null==d?void 0:d.type)==="CallExpression"&&--u}t.forEach(function(e,t){t<u?p(a,e):c(s,e)}),t.length=0}}function l(e,t){(e.comments||(e.comments=[])).push(t)}function c(e,t){t.leading=!0,t.trailing=!1,l(e,t)}function p(e,t){t.leading=!1,t.trailing=!0,l(e,t)}return Kp.attach=function(a,d,f){if(n.check(a)){var h=[];a.forEach(function(a){a.loc.lines=f,function e(a,u,l){for(var c,p,d=function e(a,u,l){if(!a)return l;if((0,s.fixFaultyLocations)(a,u),l){if(r.Node.check(a)&&r.SourceLocation.check(a.loc)){for(var c,p=l.length-1;p>=0;--p){var d=l[p];if(d&&d.loc&&0>=(0,s.comparePos)(d.loc.end,a.loc.start))break}return l.splice(p+1,0,a),l}}else{var f=o.get(a);if(f)return f}if(n.check(a))c=Object.keys(a);else{if(!i.check(a))return l;c=t.getFieldNames(a)}l||o.set(a,l=[]);for(var p=0,h=c.length;p<h;++p)e(a[c[p]],u,l);return l}(a,l),f=0,h=d&&d.length;"number"==typeof h&&f<h;){var m=f+h>>1,y=d[m];if(0>=(0,s.comparePos)(y.loc.start,u.loc.start)&&0>=(0,s.comparePos)(u.loc.end,y.loc.end)){e(u.enclosingNode=y,u,l);return}if(0>=(0,s.comparePos)(y.loc.end,u.loc.start)){c=y,f=m+1;continue}if(0>=(0,s.comparePos)(u.loc.end,y.loc.start)){p=y,h=m;continue}throw Error("Comment location overlaps with node location")}c&&(u.precedingNode=c),p&&(u.followingNode=p)}(d,a,f);var m=a.precedingNode,y=a.enclosingNode,v=a.followingNode;if(m&&v){var g=h.length;if(g>0){var b=h[g-1];(0,e.default)(b.precedingNode===a.precedingNode==(b.followingNode===a.followingNode)),b.followingNode!==a.followingNode&&u(h,f)}h.push(a)}else if(m)u(h,f),p(m,a);else if(v)u(h,f),c(v,a);else if(y)u(h,f),a.leading=!1,a.trailing=!1,l(y,a);else throw Error("AST contains no nodes at all?")}),u(h,f),a.forEach(function(e){delete e.precedingNode,delete e.enclosingNode,delete e.followingNode})}},Kp.printComments=function(e,n){var i=e.getValue(),s=n(e),o=r.Node.check(i)&&t.getFieldValue(i,"comments");if(!o||0===o.length)return s;var u=[],l=[s];return e.each(function(e){var s=e.getValue(),o=t.getFieldValue(s,"leading"),c=t.getFieldValue(s,"trailing");o||c&&!(r.Statement.check(i)||"Block"===s.type||"CommentBlock"===s.type)?u.push(function(e,t){var n=e.getValue();r.Comment.assert(n);var i=n.loc,s=i&&i.lines,o=[t(e)];if(n.trailing)o.push("\n");else if(s instanceof a.Lines){var u=s.slice(i.end,s.skipSpaces(i.end)||s.lastPos());1===u.length?o.push(u):o.push(Array(u.length).join("\n"))}else o.push("\n");return(0,a.concat)(o)}(e,n)):c&&l.push(function(e,t){var n=e.getValue(e);r.Comment.assert(n);var i=n.loc,s=i&&i.lines,o=[];if(s instanceof a.Lines){var u=s.skipSpaces(i.start,!0)||s.firstPos(),l=s.slice(u,i.start);1===l.length?o.push(l):o.push(Array(l.length).join("\n"))}return o.push(t(e)),(0,a.concat)(o)}(e,n))},"comments"),u.push.apply(u,l),(0,a.concat)(u)},Kp}var Kf={},Kh={};function Km(){if(Q)return Kh;Q=1,Object.defineProperty(Kh,"__esModule",{value:!0});var e=Gi.__importDefault(/*@__PURE__*/G$()),t=Gi.__importStar(GH()),r=Gi.__importStar(Ka()),n=t.namedTypes,i=t.builtInTypes.array,a=t.builtInTypes.number,s={};[["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach(function(e,t){e.forEach(function(e){s[e]=t})});var o=function t(r){(0,e.default)(this instanceof t),this.stack=[r]},u=o.prototype;function l(e,t){for(var r=e.stack,i=r.length-1;i>=0;i-=2){var a=r[i];if(n.Node.check(a)&&--t<0)return a}return null}function c(e){return n.BinaryExpression.check(e)||n.LogicalExpression.check(e)}return o.from=function(e){if(e instanceof o)return e.copy();if(e instanceof t.NodePath){for(var r=Object.create(o.prototype),n=[e.value],i=void 0;i=e.parentPath;e=i)n.push(e.name,i.value);return r.stack=n.reverse(),r}return new o(e)},u.copy=function(){var e=Object.create(o.prototype);return e.stack=this.stack.slice(0),e},u.getName=function(){var e=this.stack,t=e.length;return t>1?e[t-2]:null},u.getValue=function(){var e=this.stack;return e[e.length-1]},u.valueIsDuplicate=function(){var e=this.stack,t=e.length-1;return e.lastIndexOf(e[t],t-1)>=0},u.getNode=function(e){return void 0===e&&(e=0),l(this,~~e)},u.getParentNode=function(e){return void 0===e&&(e=0),l(this,~~e+1)},u.getRootValue=function(){var e=this.stack;return e.length%2==0?e[1]:e[0]},u.call=function(e){for(var t=this.stack,r=t.length,n=t[r-1],i=arguments.length,a=1;a<i;++a){var s=arguments[a];n=n[s],t.push(s,n)}var o=e(this);return t.length=r,o},u.each=function(e){for(var t=this.stack,r=t.length,n=t[r-1],i=arguments.length,a=1;a<i;++a){var s=arguments[a];n=n[s],t.push(s,n)}for(var a=0;a<n.length;++a)a in n&&(t.push(a,n[a]),e(this),t.length-=2);t.length=r},u.map=function(e){for(var t=this.stack,r=t.length,n=t[r-1],i=arguments.length,a=1;a<i;++a){var s=arguments[a];n=n[s],t.push(s,n)}for(var o=Array(n.length),a=0;a<n.length;++a)a in n&&(t.push(a,n[a]),o[a]=e(this,a),t.length-=2);return t.length=r,o},u.hasParens=function(){var e=this.getNode(),t=this.getPrevToken(e);if(!t)return!1;var r=this.getNextToken(e);return!!r&&!!("("===t.value&&(")"===r.value||!this.canBeFirstInStatement()&&this.firstInStatement()&&!this.needsParens(!0)))},u.getPrevToken=function(e){var t=(e=e||this.getNode())&&e.loc,n=t&&t.tokens;if(n&&t.start.token>0){var i=n[t.start.token-1];if(i){var a=this.getRootValue().loc;if(0>=r.comparePos(a.start,i.loc.start))return i}}return null},u.getNextToken=function(e){var t=(e=e||this.getNode())&&e.loc,n=t&&t.tokens;if(n&&t.end.token<n.length){var i=n[t.end.token];if(i){var a=this.getRootValue().loc;if(0>=r.comparePos(i.loc.end,a.end))return i}}return null},u.needsParens=function(r){var o=this.getNode();if("AssignmentExpression"===o.type&&"ObjectPattern"===o.left.type)return!0;var u=this.getParentNode(),l=this.getName();if(this.getValue()!==o||n.Statement.check(o)||"Identifier"===o.type||u&&"ParenthesizedExpression"===u.type)return!1;if(o.extra&&o.extra.parenthesized)return!0;if(!u)return!1;if("UnaryExpression"===o.type&&"BinaryExpression"===u.type&&"left"===l&&u.left===o&&"**"===u.operator)return!0;switch(o.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return"MemberExpression"===u.type&&"object"===l&&u.object===o;case"BinaryExpression":case"LogicalExpression":switch(u.type){case"CallExpression":return"callee"===l&&u.callee===o;case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return!0;case"MemberExpression":return"object"===l&&u.object===o;case"BinaryExpression":case"LogicalExpression":var p=s[u.operator],d=s[o.operator];if(p>d)return!0;if(p===d&&"right"===l)return(0,e.default)(u.right===o),!0;break;default:return!1}break;case"SequenceExpression":switch(u.type){case"ReturnStatement":case"ForStatement":return!1;case"ExpressionStatement":return"expression"!==l;default:return!0}case"OptionalIndexedAccessType":return o.optional&&"IndexedAccessType"===u.type;case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return"NullableTypeAnnotation"===u.type;case"Literal":return"MemberExpression"===u.type&&a.check(o.value)&&"object"===l&&u.object===o;case"NumericLiteral":return"MemberExpression"===u.type&&"object"===l&&u.object===o;case"YieldExpression":case"AwaitExpression":case"AssignmentExpression":case"ConditionalExpression":switch(u.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":return!0;case"CallExpression":case"NewExpression":return"callee"===l&&u.callee===o;case"ConditionalExpression":return"test"===l&&u.test===o;case"MemberExpression":return"object"===l&&u.object===o;default:return!1}case"ArrowFunctionExpression":if(n.CallExpression.check(u)&&"callee"===l&&u.callee===o||n.MemberExpression.check(u)&&"object"===l&&u.object===o||n.TSAsExpression&&n.TSAsExpression.check(u)&&"expression"===l&&u.expression===o)return!0;return c(u);case"ObjectExpression":if("ArrowFunctionExpression"===u.type&&"body"===l&&u.body===o)return!0;break;case"TSAsExpression":if("ArrowFunctionExpression"===u.type&&"body"===l&&u.body===o&&"ObjectExpression"===o.expression.type)return!0;break;case"CallExpression":if("declaration"===l&&n.ExportDefaultDeclaration.check(u)&&n.FunctionExpression.check(o.callee))return!0}return"NewExpression"===u.type&&"callee"===l&&u.callee===o?function e(r){return!!n.CallExpression.check(r)||(i.check(r)?r.some(e):!!n.Node.check(r)&&t.someField(r,function(t,r){return e(r)}))}(o):!!(!0!==r&&!this.canBeFirstInStatement()&&this.firstInStatement())},u.canBeFirstInStatement=function(){var e=this.getNode();return!(n.FunctionExpression.check(e)||n.ObjectExpression.check(e)||n.ClassExpression.check(e))},u.firstInStatement=function(){for(var t,r,i,a,s=this.stack,o=s.length-1;o>=0;o-=2)if(n.Node.check(s[o])&&(i=t,a=r,t=s[o-1],r=s[o]),r&&a){if(n.BlockStatement.check(r)&&"body"===t&&0===i){(0,e.default)(r.body[0]===a);break}if(n.ExpressionStatement.check(r)&&"expression"===i){(0,e.default)(r.expression===a);break}if(n.AssignmentExpression.check(r)&&"left"===i){(0,e.default)(r.left===a);break}if(n.ArrowFunctionExpression.check(r)&&"body"===i){(0,e.default)(r.body===a);break}if(n.SequenceExpression.check(r)&&"expressions"===s[o+1]&&0===i){(0,e.default)(r.expressions[0]===a);continue}if(n.CallExpression.check(r)&&"callee"===i){(0,e.default)(r.callee===a);continue}if(n.MemberExpression.check(r)&&"object"===i){(0,e.default)(r.object===a);continue}if(n.ConditionalExpression.check(r)&&"test"===i){(0,e.default)(r.test===a);continue}if(c(r)&&"left"===i){(0,e.default)(r.left===a);continue}if(n.UnaryExpression.check(r)&&!r.prefix&&"argument"===i){(0,e.default)(r.argument===a);continue}return!1}return!0},Kh.default=o,Kh}var Ky={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.run=e.prettyPrint=e.print=e.visit=e.types=e.parse=void 0;var t=Gi.__importDefault(Ga),r=Gi.__importStar(GH());e.types=r;var n=function(){if(Y)return Gz;Y=1,Object.defineProperty(Gz,"__esModule",{value:!0}),Gz.parse=void 0;var e=Gi.__importDefault(/*@__PURE__*/G$()),t=Gi.__importStar(GH()),r=t.builders,n=t.builtInTypes.object,i=t.builtInTypes.array,a=Ko(),s=Kc(),o=Kd(),u=Gi.__importStar(Ka());Gz.parse=function(e,t){t=(0,a.normalize)(t);var n,i,c=(0,s.fromString)(e,t),p=c.toString({tabWidth:t.tabWidth,reuseWhitespace:!1,useTabs:!1}),d=[],f=t.parser.parse(p,{jsx:!0,loc:!0,locations:!0,range:t.range,comment:!0,onComment:d,tolerant:u.getOption(t,"tolerant",!0),ecmaVersion:6,sourceType:u.getOption(t,"sourceType","module")}),h=Array.isArray(f.tokens)?f.tokens:require("esprima").tokenize(p,{loc:!0});delete f.tokens,h.forEach(function(e){"string"!=typeof e.value&&(e.value=c.sliceString(e.loc.start,e.loc.end))}),Array.isArray(f.comments)&&(d=f.comments,delete f.comments),f.loc?u.fixFaultyLocations(f,c):f.loc={start:c.firstPos(),end:c.lastPos()},f.loc.lines=c,f.loc.indent=0,"Program"===f.type?(i=f,(n=r.file(f,t.sourceFileName||null)).loc={start:c.firstPos(),end:c.lastPos(),lines:c,indent:0}):"File"===f.type&&(i=(n=f).program),t.tokens&&(n.tokens=h);var m=u.getTrueLoc({type:i.type,loc:i.loc,body:[],comments:d},c);return i.loc.start=m.start,i.loc.end=m.end,(0,o.attach)(d,i.body.length?n.program:n,c),new l(c,h).copy(n)};var l=function t(r,n){(0,e.default)(this instanceof t),this.lines=r,this.tokens=n,this.startTokenIndex=0,this.endTokenIndex=n.length,this.indent=0,this.seen=new Map},c=l.prototype;return c.copy=function(e){if(this.seen.has(e))return this.seen.get(e);if(i.check(e)){var t=Array(e.length);return this.seen.set(e,t),e.forEach(function(e,r){t[r]=this.copy(e)},this),t}if(!n.check(e))return e;u.fixFaultyLocations(e,this.lines);var r=Object.create(Object.getPrototypeOf(e),{original:{value:e,configurable:!1,enumerable:!1,writable:!0}});this.seen.set(e,r);var a=e.loc,s=this.indent,o=s,l=this.startTokenIndex,c=this.endTokenIndex;a&&(("Block"===e.type||"Line"===e.type||"CommentBlock"===e.type||"CommentLine"===e.type||this.lines.isPrecededOnlyByWhitespace(a.start))&&(o=this.indent=a.start.column),a.lines=this.lines,a.tokens=this.tokens,a.indent=o,this.findTokenRange(a));for(var p=Object.keys(e),d=p.length,f=0;f<d;++f){var h=p[f];"loc"===h?r[h]=e[h]:"tokens"===h&&"File"===e.type?r[h]=e[h]:r[h]=this.copy(e[h])}return this.indent=s,this.startTokenIndex=l,this.endTokenIndex=c,r},c.findTokenRange=function(e){for(;this.startTokenIndex>0;){var t=e.tokens[this.startTokenIndex];if(0>u.comparePos(e.start,t.loc.start))--this.startTokenIndex;else break}for(;this.endTokenIndex<e.tokens.length;){var t=e.tokens[this.endTokenIndex];if(0>u.comparePos(t.loc.end,e.end))++this.endTokenIndex;else break}for(;this.startTokenIndex<this.endTokenIndex;){var t=e.tokens[this.startTokenIndex];if(0>u.comparePos(t.loc.start,e.start))++this.startTokenIndex;else break}for(e.start.token=this.startTokenIndex;this.endTokenIndex>this.startTokenIndex;){var t=e.tokens[this.endTokenIndex-1];if(0>u.comparePos(e.end,t.loc.end))--this.endTokenIndex;else break}e.end.token=this.endTokenIndex},Gz}();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return n.parse}});var i=function(){if(ee)return Kf;ee=1,Object.defineProperty(Kf,"__esModule",{value:!0}),Kf.Printer=void 0;var e=Gi.__importDefault(/*@__PURE__*/G$()),t=Gi.__importStar(GH()),r=Kd(),n=Gi.__importDefault(Km()),i=Kc(),a=Ko(),s=function(){if(Z)return Ky;Z=1,Object.defineProperty(Ky,"__esModule",{value:!0}),Ky.getReprinter=Ky.Patcher=void 0;var e=Gi.__importDefault(/*@__PURE__*/G$()),t=Gi.__importStar(Kc()),r=Gi.__importStar(GH()),n=r.namedTypes.Printable,i=r.namedTypes.Expression,a=r.namedTypes.ReturnStatement,s=r.namedTypes.SourceLocation,o=Ka(),u=Gi.__importDefault(Km()),l=r.builtInTypes.object,c=r.builtInTypes.array,p=r.builtInTypes.string,d=/[0-9a-z_$]/i,f=function r(n){(0,e.default)(this instanceof r),(0,e.default)(n instanceof t.Lines);var i=[];this.replace=function(e,r){p.check(r)&&(r=t.fromString(r)),i.push({lines:r,start:e.start,end:e.end})},this.get=function(r){var a=(r=r||{start:{line:1,column:0},end:{line:n.length,column:n.getLineLength(n.length)}}).start,s=[];function u(t,r){(0,e.default)(0>=(0,o.comparePos)(t,r)),s.push(n.slice(t,r))}return i.sort(function(e,t){return(0,o.comparePos)(e.start,t.start)}).forEach(function(e){(0,o.comparePos)(a,e.start)>0||(u(a,e.start),s.push(e.lines),a=e.end)}),u(a,r.end),t.concat(s)}};Ky.Patcher=f;var h=f.prototype;function m(e){var t=[];return e.comments&&e.comments.length>0&&e.comments.forEach(function(e){(e.leading||e.trailing)&&t.push(e)}),t}function y(e,t,r){var a=e.getValue();return a===t.getValue()||(c.check(a)?v(e,t,r):!!l.check(a)&&function(e,t,r){var a=e.getValue();if(l.assert(a),null===a.original)return!1;var s=t.getValue();if(!l.check(s))return!1;if(a===s||e.valueIsDuplicate()||t.valueIsDuplicate())return!0;if(n.check(a)){if(!n.check(s))return!1;var o=e.getParentNode(),u=t.getParentNode();if(null!==u&&"FunctionTypeAnnotation"===u.type&&null!==o&&"FunctionTypeAnnotation"===o.type){var c=1!==u.params.length||!!u.params[0].name,p=1!==o.params.length||!!o.params[0].name;if(!c&&p)return!1}if(a.type===s.type){var d=[];if(g(e,t,d))r.push.apply(r,d);else{if(!s.loc)return!1;r.push({oldPath:t.copy(),newPath:e.copy()})}return!0}return!!(i.check(a)&&i.check(s))&&!!s.loc&&(r.push({oldPath:t.copy(),newPath:e.copy()}),!0)}return g(e,t,r)}(e,t,r))}function v(e,t,r){var n=e.getValue(),i=t.getValue();if(n===i||e.valueIsDuplicate()||t.valueIsDuplicate())return!0;c.assert(n);var a=n.length;if(!(c.check(i)&&i.length===a))return!1;for(var s=0;s<a;++s){e.stack.push(s,n[s]),t.stack.push(s,i[s]);var o=y(e,t,r);if(e.stack.length-=2,t.stack.length-=2,!o)return!1}return!0}function g(e,t,n){var i=e.getValue(),s=t.getValue();if(l.assert(i),l.assert(s),null===i.original||e.needsParens()&&!t.hasParens())return!1;var u=(0,o.getUnionOfKeys)(s,i);("File"===s.type||"File"===i.type)&&delete u.tokens,delete u.loc;var c=n.length;for(var p in u)if("_"!==p.charAt(0)){e.stack.push(p,r.getFieldValue(i,p)),t.stack.push(p,r.getFieldValue(s,p));var d=y(e,t,n);if(e.stack.length-=2,t.stack.length-=2,!d)return!1}return!a.check(e.getNode())||!(n.length>c)}return h.tryToReprintComments=function(t,r,n){var i=this;if(!t.comments&&!r.comments)return!0;var a=u.default.from(t),s=u.default.from(r);a.stack.push("comments",m(t)),s.stack.push("comments",m(r));var o=[],l=v(a,s,o);return l&&o.length>0&&o.forEach(function(t){var r=t.oldPath.getValue();(0,e.default)(r.leading||r.trailing),i.replace(r.loc,n(t.newPath).indentTail(r.loc.indent))}),l},h.deleteComments=function(e){if(e.comments){var t=this;e.comments.forEach(function(r){r.leading?t.replace({start:r.loc.start,end:e.loc.lines.skipSpaces(r.loc.end,!1,!1)},""):r.trailing&&t.replace({start:e.loc.lines.skipSpaces(r.loc.start,!0,!1),end:r.loc.end},"")})}},Ky.getReprinter=function(r){(0,e.default)(r instanceof u.default);var i=r.getValue();if(n.check(i)){var a=i.original,l=a&&a.loc,c=l&&l.lines,p=[];if(c&&function(t,r){var i=t.getValue();n.assert(i);var a=i.original;if(n.assert(a),(0,e.default)(0===r.length),i.type!==a.type)return!1;var s=g(t,new u.default(a),r);return s||(r.length=0),s}(r,p))return function(e){var n=new f(c);p.forEach(function(r){var i,a,u,l,p,f,h,m,y,v,g=r.newPath.getValue(),b=r.oldPath.getValue();s.assert(b.loc,!0);var S=!n.tryToReprintComments(g,b,e);S&&n.deleteComments(b);var x=e(r.newPath,{includeComments:S,avoidRootParens:b.type===g.type&&r.oldPath.hasParens()}).indentTail(b.loc.indent),T=(i=b.loc,a=x,u=(0,o.copyPos)(i.start),l=c.prevPos(u)&&c.charAt(u),p=a.charAt(a.firstPos()),l&&d.test(l)&&p&&d.test(p)),E=(f=b.loc,h=x,m=c.charAt(f.end),y=h.lastPos(),(v=h.prevPos(y)&&h.charAt(y))&&d.test(v)&&m&&d.test(m));if(T||E){var _=[];T&&_.push(" "),_.push(x),E&&_.push(" "),x=t.concat(_)}n.replace(b.loc,x)});var i=n.get(l).indentTail(-a.loc.indent);return r.needsParens()?t.concat(["(",i,")"]):i}}},Ky}(),o=Gi.__importStar(Ka()),u=t.namedTypes,l=t.builtInTypes.string,c=t.builtInTypes.object,p=function t(r,n){(0,e.default)(this instanceof t),l.assert(r),this.code=r,n&&(c.assert(n),this.map=n)},d=p.prototype,f=!1;d.toString=function(){return f||(console.warn("Deprecation warning: recast.print now returns an object with a .code property. You appear to be treating the object as a string, which might still work but is strongly discouraged."),f=!0),this.code};var h=new p("");function m(r,a,s,l){(0,e.default)(r instanceof n.default);var c,p,d=r.getValue(),f=[],h=function(r,n,a){var s=r.getValue();if(!s)return(0,i.fromString)("");if("string"==typeof s)return(0,i.fromString)(s,n);u.Printable.assert(s);var l=[];switch(s.type){case"File":return r.call(a,"program");case"Program":return s.directives&&r.each(function(e){l.push(a(e),";\n")},"directives"),s.interpreter&&l.push(r.call(a,"interpreter")),l.push(r.call(function(e){return y(e,n,a)},"body")),(0,i.concat)(l);case"Noop":case"EmptyStatement":return(0,i.fromString)("");case"ExpressionStatement":return(0,i.concat)([r.call(a,"expression"),";"]);case"ParenthesizedExpression":return(0,i.concat)(["(",r.call(a,"expression"),")"]);case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":return(0,i.fromString)(" ").join([r.call(a,"left"),s.operator,r.call(a,"right")]);case"AssignmentPattern":return(0,i.concat)([r.call(a,"left")," = ",r.call(a,"right")]);case"MemberExpression":case"OptionalMemberExpression":l.push(r.call(a,"object"));var c=r.call(a,"property"),p=t.getFieldValue(s,"optional");return s.computed?l.push(p?"?.[":"[",c,"]"):l.push(p?"?.":".",c),(0,i.concat)(l);case"ChainExpression":return r.call(a,"expression");case"MetaProperty":return(0,i.concat)([r.call(a,"meta"),".",r.call(a,"property")]);case"BindExpression":return s.object&&l.push(r.call(a,"object")),l.push("::",r.call(a,"callee")),(0,i.concat)(l);case"Path":return(0,i.fromString)(".").join(s.body);case"Identifier":return(0,i.concat)([(0,i.fromString)(s.name,n),s.optional?"?":"",r.call(a,"typeAnnotation")]);case"SpreadElement":case"SpreadElementPattern":case"RestProperty":case"SpreadProperty":case"SpreadPropertyPattern":case"ObjectTypeSpreadProperty":case"RestElement":return(0,i.concat)(["...",r.call(a,"argument"),r.call(a,"typeAnnotation")]);case"FunctionDeclaration":case"FunctionExpression":case"TSDeclareFunction":return s.declare&&l.push("declare "),s.async&&l.push("async "),l.push("function"),s.generator&&l.push("*"),s.id?l.push(" ",r.call(a,"id"),r.call(a,"typeParameters")):s.typeParameters&&l.push(r.call(a,"typeParameters")),l.push("(",S(r,n,a),")",r.call(a,"returnType")),s.body&&l.push(" ",r.call(a,"body")),(0,i.concat)(l);case"ArrowFunctionExpression":return s.async&&l.push("async "),s.typeParameters&&l.push(r.call(a,"typeParameters")),n.arrowParensAlways||1!==s.params.length||s.rest||"Identifier"!==s.params[0].type||s.params[0].typeAnnotation||s.returnType?l.push("(",S(r,n,a),")",r.call(a,"returnType")):l.push(r.call(a,"params",0)),l.push(" => ",r.call(a,"body")),(0,i.concat)(l);case"MethodDefinition":return g(r,n,a);case"YieldExpression":return l.push("yield"),s.delegate&&l.push("*"),s.argument&&l.push(" ",r.call(a,"argument")),(0,i.concat)(l);case"AwaitExpression":return l.push("await"),s.all&&l.push("*"),s.argument&&l.push(" ",r.call(a,"argument")),(0,i.concat)(l);case"ModuleExpression":return(0,i.concat)(["module {\n",r.call(a,"body").indent(n.tabWidth),"\n}"]);case"ModuleDeclaration":return l.push("module",r.call(a,"id")),s.source?((0,e.default)(!s.body),l.push("from",r.call(a,"source"))):l.push(r.call(a,"body")),(0,i.fromString)(" ").join(l);case"ImportSpecifier":return s.importKind&&"value"!==s.importKind&&l.push(s.importKind+" "),s.imported?(l.push(r.call(a,"imported")),s.local&&s.local.name!==s.imported.name&&l.push(" as ",r.call(a,"local"))):s.id&&(l.push(r.call(a,"id")),s.name&&l.push(" as ",r.call(a,"name"))),(0,i.concat)(l);case"ExportSpecifier":return s.exportKind&&"value"!==s.exportKind&&l.push(s.exportKind+" "),s.local?(l.push(r.call(a,"local")),s.exported&&s.exported.name!==s.local.name&&l.push(" as ",r.call(a,"exported"))):s.id&&(l.push(r.call(a,"id")),s.name&&l.push(" as ",r.call(a,"name"))),(0,i.concat)(l);case"ExportBatchSpecifier":return(0,i.fromString)("*");case"ImportNamespaceSpecifier":return l.push("* as "),s.local?l.push(r.call(a,"local")):s.id&&l.push(r.call(a,"id")),(0,i.concat)(l);case"ImportDefaultSpecifier":if(s.local)return r.call(a,"local");return r.call(a,"id");case"TSExportAssignment":return(0,i.concat)(["export = ",r.call(a,"expression")]);case"ExportDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return T(r,n,a);case"ExportAllDeclaration":return l.push("export *"),s.exported&&l.push(" as ",r.call(a,"exported")),l.push(" from ",r.call(a,"source"),";"),(0,i.concat)(l);case"TSNamespaceExportDeclaration":return l.push("export as namespace ",r.call(a,"id")),N((0,i.concat)(l));case"ExportNamespaceSpecifier":return(0,i.concat)(["* as ",r.call(a,"exported")]);case"ExportDefaultSpecifier":return r.call(a,"exported");case"Import":return(0,i.fromString)("import",n);case"ImportExpression":return(0,i.concat)(["import(",r.call(a,"source"),")"]);case"ImportDeclaration":if(l.push("import "),s.importKind&&"value"!==s.importKind&&l.push(s.importKind+" "),s.specifiers&&s.specifiers.length>0){var d=[],f=[];if(r.each(function(e){var t=e.getValue();"ImportSpecifier"===t.type?f.push(a(e)):("ImportDefaultSpecifier"===t.type||"ImportNamespaceSpecifier"===t.type)&&d.push(a(e))},"specifiers"),d.forEach(function(e,t){t>0&&l.push(", "),l.push(e)}),f.length>0){var h=(0,i.fromString)(", ").join(f);h.getLineLength(1)>n.wrapColumn&&(h=(0,i.concat)([(0,i.fromString)(",\n").join(f).indent(n.tabWidth),","])),d.length>0&&l.push(", "),h.length>1?l.push("{\n",h,"\n}"):n.objectCurlySpacing?l.push("{ ",h," }"):l.push("{",h,"}")}l.push(" from ")}return l.push(r.call(a,"source"),x(r,n,a),";"),(0,i.concat)(l);case"ImportAttribute":return(0,i.concat)([r.call(a,"key"),": ",r.call(a,"value")]);case"StaticBlock":l.push("static ");case"BlockStatement":var m=r.call(function(e){return y(e,n,a)},"body");if(m.isEmpty()&&(!s.directives||0===s.directives.length))return l.push("{}"),(0,i.concat)(l);return l.push("{\n"),s.directives&&r.each(function(e){l.push(N(a(e).indent(n.tabWidth)),s.directives.length>1||!m.isEmpty()?"\n":"")},"directives"),l.push(m.indent(n.tabWidth)),l.push("\n}"),(0,i.concat)(l);case"ReturnStatement":if(l.push("return"),s.argument){var k=r.call(a,"argument");k.startsWithComment()||k.length>1&&u.JSXElement&&u.JSXElement.check(s.argument)?l.push(" (\n",k.indent(n.tabWidth),"\n)"):l.push(" ",k)}return l.push(";"),(0,i.concat)(l);case"CallExpression":case"OptionalCallExpression":return l.push(r.call(a,"callee")),s.typeParameters&&l.push(r.call(a,"typeParameters")),s.typeArguments&&l.push(r.call(a,"typeArguments")),t.getFieldValue(s,"optional")&&l.push("?."),l.push(b(r,n,a)),(0,i.concat)(l);case"RecordExpression":l.push("#");case"ObjectExpression":case"ObjectPattern":case"ObjectTypeAnnotation":var w="ObjectTypeAnnotation"===s.type,O=n.flowObjectCommas?",":w?";":",",D=[],L=!1;w&&(D.push("indexers","callProperties"),null!=s.internalSlots&&D.push("internalSlots")),D.push("properties");var M=0;D.forEach(function(e){M+=s[e].length});var F=w&&1===M||0===M,B=s.exact?"{|":"{",R=s.exact?"|}":"}";l.push(F?B:B+"\n");var j=l.length-1,U=0;if(D.forEach(function(e){r.each(function(e){var t=a(e);F||(t=t.indent(n.tabWidth));var r=!w&&t.length>1;r&&L&&l.push("\n"),l.push(t),U<M-1?(l.push(O+(r?"\n\n":"\n")),L=!r):1!==M&&w?l.push(O):!F&&o.isTrailingCommaEnabled(n,"objects")&&"RestElement"!==e.getValue().type&&l.push(O),U++},e)}),s.inexact){var V=(0,i.fromString)("...",n);F?(M>0&&l.push(O," "),l.push(V)):l.push("\n",V.indent(n.tabWidth))}return l.push(F?R:"\n"+R),0!==U&&F&&n.objectCurlySpacing&&(l[j]=B+" ",l[l.length-1]=" "+R),s.typeAnnotation&&l.push(r.call(a,"typeAnnotation")),(0,i.concat)(l);case"PropertyPattern":return(0,i.concat)([r.call(a,"key"),": ",r.call(a,"pattern")]);case"ObjectProperty":case"Property":if(s.method||"get"===s.kind||"set"===s.kind)return g(r,n,a);if(s.shorthand&&"AssignmentPattern"===s.value.type)return r.call(a,"value");var W=r.call(a,"key");return s.computed?l.push("[",W,"]"):l.push(W),s.shorthand&&s.key.name===s.value.name||l.push(": ",r.call(a,"value")),(0,i.concat)(l);case"ClassMethod":case"ObjectMethod":case"ClassPrivateMethod":case"TSDeclareMethod":return g(r,n,a);case"PrivateName":return(0,i.concat)(["#",r.call(a,"id")]);case"Decorator":return(0,i.concat)(["@",r.call(a,"expression")]);case"TupleExpression":l.push("#");case"ArrayExpression":case"ArrayPattern":var q=s.elements.length,J=r.map(a,"elements"),X=(0,i.fromString)(", ").join(J),G=X.getLineLength(1)<=n.wrapColumn;return G?n.arrayBracketSpacing?l.push("[ "):l.push("["):l.push("[\n"),r.each(function(e){var t=e.getName();if(e.getValue()){var r=J[t];G?t>0&&l.push(" "):r=r.indent(n.tabWidth),l.push(r),(t<q-1||!G&&o.isTrailingCommaEnabled(n,"arrays"))&&l.push(","),G||l.push("\n")}else l.push(",")},"elements"),G&&n.arrayBracketSpacing?l.push(" ]"):l.push("]"),s.typeAnnotation&&l.push(r.call(a,"typeAnnotation")),(0,i.concat)(l);case"SequenceExpression":return(0,i.fromString)(", ").join(r.map(a,"expressions"));case"ThisExpression":return(0,i.fromString)("this");case"Super":return(0,i.fromString)("super");case"NullLiteral":return(0,i.fromString)("null");case"RegExpLiteral":return(0,i.fromString)(C(s)||"/".concat(s.pattern,"/").concat(s.flags||""),n);case"BigIntLiteral":return(0,i.fromString)(C(s)||s.value+"n",n);case"NumericLiteral":return(0,i.fromString)(C(s)||s.value,n);case"DecimalLiteral":return(0,i.fromString)(C(s)||s.value+"m",n);case"StringLiteral":return(0,i.fromString)(I(s.value,n));case"BooleanLiteral":case"Literal":return(0,i.fromString)(C(s)||("string"==typeof s.value?I(s.value,n):s.value),n);case"Directive":return r.call(a,"value");case"DirectiveLiteral":return(0,i.fromString)(C(s)||I(s.value,n),n);case"InterpreterDirective":return(0,i.fromString)("#!".concat(s.value,"\n"),n);case"ModuleSpecifier":if(s.local)throw Error("The ESTree ModuleSpecifier type should be abstract");return(0,i.fromString)(I(s.value,n),n);case"UnaryExpression":return l.push(s.operator),/[a-z]$/.test(s.operator)&&l.push(" "),l.push(r.call(a,"argument")),(0,i.concat)(l);case"UpdateExpression":return l.push(r.call(a,"argument"),s.operator),s.prefix&&l.reverse(),(0,i.concat)(l);case"ConditionalExpression":return(0,i.concat)([r.call(a,"test")," ? ",r.call(a,"consequent")," : ",r.call(a,"alternate")]);case"NewExpression":return l.push("new ",r.call(a,"callee")),s.typeParameters&&l.push(r.call(a,"typeParameters")),s.typeArguments&&l.push(r.call(a,"typeArguments")),s.arguments&&l.push(b(r,n,a)),(0,i.concat)(l);case"VariableDeclaration":s.declare&&l.push("declare "),l.push(s.kind," ");var K=0,H=r.map(function(e){var t=a(e);return K=Math.max(t.length,K),t},"declarations");1===K?l.push((0,i.fromString)(", ").join(H)):H.length>1?l.push((0,i.fromString)(",\n").join(H).indentTail(s.kind.length+1)):l.push(H[0]);var z=r.getParentNode();return u.ForStatement.check(z)||u.ForInStatement.check(z)||u.ForOfStatement&&u.ForOfStatement.check(z)||u.ForAwaitStatement&&u.ForAwaitStatement.check(z)||l.push(";"),(0,i.concat)(l);case"VariableDeclarator":return s.init?(0,i.fromString)(" = ").join([r.call(a,"id"),r.call(a,"init")]):r.call(a,"id");case"WithStatement":return(0,i.concat)(["with (",r.call(a,"object"),") ",r.call(a,"body")]);case"IfStatement":var $=P(r.call(a,"consequent"),n);return l.push("if (",r.call(a,"test"),")",$),s.alternate&&l.push("}"===A($)?" else":"\nelse",P(r.call(a,"alternate"),n)),(0,i.concat)(l);case"ForStatement":var Y=r.call(a,"init"),Q=Y.length>1?";\n":"; ",Z="for (",ee=(0,i.fromString)(Q).join([Y,r.call(a,"test"),r.call(a,"update")]).indentTail(Z.length),et=(0,i.concat)([Z,ee,")"]),er=P(r.call(a,"body"),n);return l.push(et),et.length>1&&(l.push("\n"),er=er.trimLeft()),l.push(er),(0,i.concat)(l);case"WhileStatement":return(0,i.concat)(["while (",r.call(a,"test"),")",P(r.call(a,"body"),n)]);case"ForInStatement":return(0,i.concat)([s.each?"for each (":"for (",r.call(a,"left")," in ",r.call(a,"right"),")",P(r.call(a,"body"),n)]);case"ForOfStatement":case"ForAwaitStatement":return l.push("for "),(s.await||"ForAwaitStatement"===s.type)&&l.push("await "),l.push("(",r.call(a,"left")," of ",r.call(a,"right"),")",P(r.call(a,"body"),n)),(0,i.concat)(l);case"DoWhileStatement":var en=(0,i.concat)(["do",P(r.call(a,"body"),n)]);return l.push(en),"}"===A(en)?l.push(" while"):l.push("\nwhile"),l.push(" (",r.call(a,"test"),");"),(0,i.concat)(l);case"DoExpression":var ei=r.call(function(e){return y(e,n,a)},"body");return(0,i.concat)(["do {\n",ei.indent(n.tabWidth),"\n}"]);case"BreakStatement":return l.push("break"),s.label&&l.push(" ",r.call(a,"label")),l.push(";"),(0,i.concat)(l);case"ContinueStatement":return l.push("continue"),s.label&&l.push(" ",r.call(a,"label")),l.push(";"),(0,i.concat)(l);case"LabeledStatement":return(0,i.concat)([r.call(a,"label"),":\n",r.call(a,"body")]);case"TryStatement":return l.push("try ",r.call(a,"block")),s.handler?l.push(" ",r.call(a,"handler")):s.handlers&&r.each(function(e){l.push(" ",a(e))},"handlers"),s.finalizer&&l.push(" finally ",r.call(a,"finalizer")),(0,i.concat)(l);case"CatchClause":return l.push("catch "),s.param&&l.push("(",r.call(a,"param")),s.guard&&l.push(" if ",r.call(a,"guard")),s.param&&l.push(") "),l.push(r.call(a,"body")),(0,i.concat)(l);case"ThrowStatement":return(0,i.concat)(["throw ",r.call(a,"argument"),";"]);case"SwitchStatement":return(0,i.concat)(["switch (",r.call(a,"discriminant"),") {\n",(0,i.fromString)("\n").join(r.map(a,"cases")),"\n}"]);case"SwitchCase":return s.test?l.push("case ",r.call(a,"test"),":"):l.push("default:"),s.consequent.length>0&&l.push("\n",r.call(function(e){return y(e,n,a)},"consequent").indent(n.tabWidth)),(0,i.concat)(l);case"DebuggerStatement":return(0,i.fromString)("debugger;");case"JSXAttribute":return l.push(r.call(a,"name")),s.value&&l.push("=",r.call(a,"value")),(0,i.concat)(l);case"JSXIdentifier":return(0,i.fromString)(s.name,n);case"JSXNamespacedName":return(0,i.fromString)(":").join([r.call(a,"namespace"),r.call(a,"name")]);case"JSXMemberExpression":return(0,i.fromString)(".").join([r.call(a,"object"),r.call(a,"property")]);case"JSXSpreadAttribute":return(0,i.concat)(["{...",r.call(a,"argument"),"}"]);case"JSXSpreadChild":return(0,i.concat)(["{...",r.call(a,"expression"),"}"]);case"JSXExpressionContainer":return(0,i.concat)(["{",r.call(a,"expression"),"}"]);case"JSXElement":case"JSXFragment":var ea="opening"+("JSXElement"===s.type?"Element":"Fragment"),es="closing"+("JSXElement"===s.type?"Element":"Fragment"),eo=r.call(a,ea);if(s[ea].selfClosing)return(0,e.default)(!s[es],"unexpected "+es+" element in self-closing "+s.type),eo;var eu=(0,i.concat)(r.map(function(e){var t=e.getValue();if(u.Literal.check(t)&&"string"==typeof t.value){if(/\S/.test(t.value))return t.value.replace(/^\s+/g,"");if(/\n/.test(t.value))return"\n"}return a(e)},"children")).indentTail(n.tabWidth),el=r.call(a,es);return(0,i.concat)([eo,eu,el]);case"JSXOpeningElement":l.push("<",r.call(a,"name"));var ec=r.call(a,"typeParameters");ec.length&&l.push(ec);var ep=[];r.each(function(e){ep.push(" ",a(e))},"attributes");var ed=(0,i.concat)(ep);return(ed.length>1||ed.getLineLength(1)>n.wrapColumn)&&(ep.forEach(function(t,r){" "===t&&((0,e.default)(r%2==0),ep[r]="\n")}),ed=(0,i.concat)(ep).indentTail(n.tabWidth)),l.push(ed,s.selfClosing?" />":">"),(0,i.concat)(l);case"JSXClosingElement":return(0,i.concat)(["</",r.call(a,"name"),">"]);case"JSXOpeningFragment":return(0,i.fromString)("<>");case"JSXClosingFragment":return(0,i.fromString)("</>");case"JSXText":return(0,i.fromString)(s.value,n);case"JSXEmptyExpression":return(0,i.fromString)("");case"TypeAnnotatedIdentifier":return(0,i.concat)([r.call(a,"annotation")," ",r.call(a,"identifier")]);case"ClassBody":if(0===s.body.length)return(0,i.fromString)("{}");return(0,i.concat)(["{\n",r.call(function(e){return y(e,n,a)},"body").indent(n.tabWidth),"\n}"]);case"ClassPropertyDefinition":return l.push("static ",r.call(a,"definition")),u.MethodDefinition.check(s.definition)||l.push(";"),(0,i.concat)(l);case"ClassProperty":s.declare&&l.push("declare ");var ef=s.accessibility||s.access;"string"==typeof ef&&l.push(ef," "),s.static&&l.push("static "),s.abstract&&l.push("abstract "),s.readonly&&l.push("readonly ");var W=r.call(a,"key");return s.computed&&(W=(0,i.concat)(["[",W,"]"])),s.variance&&(W=(0,i.concat)([_(r,a),W])),l.push(W),s.optional&&l.push("?"),s.definite&&l.push("!"),s.typeAnnotation&&l.push(r.call(a,"typeAnnotation")),s.value&&l.push(" = ",r.call(a,"value")),l.push(";"),(0,i.concat)(l);case"ClassPrivateProperty":return s.static&&l.push("static "),l.push(r.call(a,"key")),s.typeAnnotation&&l.push(r.call(a,"typeAnnotation")),s.value&&l.push(" = ",r.call(a,"value")),l.push(";"),(0,i.concat)(l);case"ClassAccessorProperty":return l.push.apply(l,Gi.__spreadArray(Gi.__spreadArray([],v(s),!1),["accessor "],!1)),s.computed?l.push("[",r.call(a,"key"),"]"):l.push(r.call(a,"key")),s.optional&&l.push("?"),s.definite&&l.push("!"),s.typeAnnotation&&l.push(r.call(a,"typeAnnotation")),s.value&&l.push(" = ",r.call(a,"value")),l.push(";"),(0,i.concat)(l);case"ClassDeclaration":case"ClassExpression":case"DeclareClass":if(s.declare&&l.push("declare "),s.abstract&&l.push("abstract "),l.push("class"),s.id&&l.push(" ",r.call(a,"id")),s.typeParameters&&l.push(r.call(a,"typeParameters")),s.superClass&&l.push(" extends ",r.call(a,"superClass"),r.call(a,"superTypeParameters")),s.extends&&s.extends.length>0&&l.push(" extends ",(0,i.fromString)(", ").join(r.map(a,"extends"))),s.implements&&s.implements.length>0&&l.push(" implements ",(0,i.fromString)(", ").join(r.map(a,"implements"))),l.push(" ",r.call(a,"body")),"DeclareClass"===s.type)return E(r,l);return(0,i.concat)(l);case"TemplateElement":return(0,i.fromString)(s.value.raw,n).lockIndentTail();case"TemplateLiteral":var eh=r.map(a,"expressions");return l.push("`"),r.each(function(e){var t=e.getName();l.push(a(e)),t<eh.length&&l.push("${",eh[t],"}")},"quasis"),l.push("`"),(0,i.concat)(l).lockIndentTail();case"TaggedTemplateExpression":return(0,i.concat)([r.call(a,"tag"),r.call(a,"quasi")]);case"Node":case"Printable":case"SourceLocation":case"Position":case"Statement":case"Function":case"Pattern":case"Expression":case"Declaration":case"Specifier":case"NamedSpecifier":case"Comment":case"Flow":case"FlowType":case"FlowPredicate":case"MemberTypeAnnotation":case"Type":case"TSHasOptionalTypeParameterInstantiation":case"TSHasOptionalTypeParameters":case"TSHasOptionalTypeAnnotation":case"ChainElement":throw Error("unprintable type: "+JSON.stringify(s.type));case"CommentBlock":case"Block":return(0,i.concat)(["/*",(0,i.fromString)(s.value,n),"*/"]);case"CommentLine":case"Line":return(0,i.concat)(["//",(0,i.fromString)(s.value,n)]);case"TypeAnnotation":if(s.typeAnnotation)return"FunctionTypeAnnotation"!==s.typeAnnotation.type&&l.push(": "),l.push(r.call(a,"typeAnnotation")),(0,i.concat)(l);return(0,i.fromString)("");case"ExistentialTypeParam":case"ExistsTypeAnnotation":return(0,i.fromString)("*",n);case"EmptyTypeAnnotation":return(0,i.fromString)("empty",n);case"AnyTypeAnnotation":return(0,i.fromString)("any",n);case"MixedTypeAnnotation":return(0,i.fromString)("mixed",n);case"ArrayTypeAnnotation":return(0,i.concat)([r.call(a,"elementType"),"[]"]);case"TupleTypeAnnotation":var em=r.map(a,"types"),X=(0,i.fromString)(", ").join(em),ey=X.getLineLength(1)<=n.wrapColumn;return ey?n.arrayBracketSpacing?l.push("[ "):l.push("["):l.push("[\n"),r.each(function(e){var t=e.getName();if(e.getValue()){var r=em[t];ey?t>0&&l.push(" "):r=r.indent(n.tabWidth),l.push(r),(t<s.types.length-1||!ey&&o.isTrailingCommaEnabled(n,"arrays"))&&l.push(","),ey||l.push("\n")}else l.push(",")},"types"),ey&&n.arrayBracketSpacing?l.push(" ]"):l.push("]"),(0,i.concat)(l);case"BooleanTypeAnnotation":return(0,i.fromString)("boolean",n);case"BooleanLiteralTypeAnnotation":return(0,e.default)("boolean"==typeof s.value),(0,i.fromString)(""+s.value,n);case"InterfaceTypeAnnotation":return l.push("interface"),s.extends&&s.extends.length>0&&l.push(" extends ",(0,i.fromString)(", ").join(r.map(a,"extends"))),l.push(" ",r.call(a,"body")),(0,i.concat)(l);case"DeclareFunction":return E(r,["function ",r.call(a,"id"),";"]);case"DeclareModule":return E(r,["module ",r.call(a,"id")," ",r.call(a,"body")]);case"DeclareModuleExports":return E(r,["module.exports",r.call(a,"typeAnnotation")]);case"DeclareVariable":return E(r,["var ",r.call(a,"id"),";"]);case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return(0,i.concat)(["declare ",T(r,n,a)]);case"EnumDeclaration":return(0,i.concat)(["enum ",r.call(a,"id"),r.call(a,"body")]);case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":return("EnumSymbolBody"===s.type||s.explicitType)&&l.push(" of ",s.type.slice(4,-4).toLowerCase()),l.push(" {\n",(0,i.fromString)("\n").join(r.map(a,"members")).indent(n.tabWidth),"\n}"),(0,i.concat)(l);case"EnumDefaultedMember":return(0,i.concat)([r.call(a,"id"),","]);case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":return(0,i.concat)([r.call(a,"id")," = ",r.call(a,"init"),","]);case"InferredPredicate":return(0,i.fromString)("%checks",n);case"DeclaredPredicate":return(0,i.concat)(["%checks(",r.call(a,"value"),")"]);case"FunctionTypeAnnotation":var ev=r.getParentNode(0),eg=!(u.ObjectTypeCallProperty.check(ev)||u.ObjectTypeInternalSlot.check(ev)&&ev.method||u.DeclareFunction.check(r.getParentNode(2)));!eg||u.FunctionTypeParam.check(ev)||u.TypeAlias.check(ev)||l.push(": ");var eb=!!s.typeParameters,eS=eb||1!==s.params.length||s.params[0].name;return l.push(eb?r.call(a,"typeParameters"):"",eS?"(":"",S(r,n,a),eS?")":""),s.returnType&&l.push(eg?" => ":": ",r.call(a,"returnType")),(0,i.concat)(l);case"FunctionTypeParam":var ex=r.call(a,"name");return l.push(ex),s.optional&&l.push("?"),ex.infos[0].line&&l.push(": "),l.push(r.call(a,"typeAnnotation")),(0,i.concat)(l);case"GenericTypeAnnotation":return(0,i.concat)([r.call(a,"id"),r.call(a,"typeParameters")]);case"DeclareInterface":l.push("declare ");case"InterfaceDeclaration":case"TSInterfaceDeclaration":return s.declare&&l.push("declare "),l.push("interface ",r.call(a,"id"),r.call(a,"typeParameters")," "),s.extends&&s.extends.length>0&&l.push("extends ",(0,i.fromString)(", ").join(r.map(a,"extends"))," "),s.body&&l.push(r.call(a,"body")),(0,i.concat)(l);case"ClassImplements":case"InterfaceExtends":return(0,i.concat)([r.call(a,"id"),r.call(a,"typeParameters")]);case"IntersectionTypeAnnotation":return(0,i.fromString)(" & ").join(r.map(a,"types"));case"NullableTypeAnnotation":return(0,i.concat)(["?",r.call(a,"typeAnnotation")]);case"NullLiteralTypeAnnotation":return(0,i.fromString)("null",n);case"ThisTypeAnnotation":return(0,i.fromString)("this",n);case"NumberTypeAnnotation":return(0,i.fromString)("number",n);case"ObjectTypeCallProperty":return r.call(a,"value");case"ObjectTypeIndexer":return s.static&&l.push("static "),l.push(_(r,a),"["),s.id&&l.push(r.call(a,"id"),": "),l.push(r.call(a,"key"),"]: ",r.call(a,"value")),(0,i.concat)(l);case"ObjectTypeProperty":return(0,i.concat)([_(r,a),r.call(a,"key"),s.optional?"?":"",": ",r.call(a,"value")]);case"ObjectTypeInternalSlot":return(0,i.concat)([s.static?"static ":"","[[",r.call(a,"id"),"]]",s.optional?"?":"","FunctionTypeAnnotation"!==s.value.type?": ":"",r.call(a,"value")]);case"QualifiedTypeIdentifier":return(0,i.concat)([r.call(a,"qualification"),".",r.call(a,"id")]);case"StringLiteralTypeAnnotation":return(0,i.fromString)(I(s.value,n),n);case"NumberLiteralTypeAnnotation":case"NumericLiteralTypeAnnotation":return(0,e.default)("number"==typeof s.value),(0,i.fromString)(JSON.stringify(s.value),n);case"BigIntLiteralTypeAnnotation":return(0,i.fromString)(s.raw,n);case"StringTypeAnnotation":return(0,i.fromString)("string",n);case"DeclareTypeAlias":l.push("declare ");case"TypeAlias":return(0,i.concat)(["type ",r.call(a,"id"),r.call(a,"typeParameters")," = ",r.call(a,"right"),";"]);case"DeclareOpaqueType":l.push("declare ");case"OpaqueType":return l.push("opaque type ",r.call(a,"id"),r.call(a,"typeParameters")),s.supertype&&l.push(": ",r.call(a,"supertype")),s.impltype&&l.push(" = ",r.call(a,"impltype")),l.push(";"),(0,i.concat)(l);case"TypeCastExpression":return(0,i.concat)(["(",r.call(a,"expression"),r.call(a,"typeAnnotation"),")"]);case"TypeParameterDeclaration":case"TypeParameterInstantiation":case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return(0,i.concat)(["<",(0,i.fromString)(", ").join(r.map(a,"params")),">"]);case"Variance":if("plus"===s.kind)return(0,i.fromString)("+");if("minus"===s.kind)return(0,i.fromString)("-");return(0,i.fromString)("");case"TypeParameter":return s.variance&&l.push(_(r,a)),l.push(r.call(a,"name")),s.bound&&l.push(r.call(a,"bound")),s.default&&l.push("=",r.call(a,"default")),(0,i.concat)(l);case"TypeofTypeAnnotation":return(0,i.concat)([(0,i.fromString)("typeof ",n),r.call(a,"argument")]);case"IndexedAccessType":case"OptionalIndexedAccessType":return(0,i.concat)([r.call(a,"objectType"),s.optional?"?.":"","[",r.call(a,"indexType"),"]"]);case"UnionTypeAnnotation":case"TSUnionType":return(0,i.fromString)(" | ").join(r.map(a,"types"));case"VoidTypeAnnotation":case"TSVoidKeyword":return(0,i.fromString)("void",n);case"NullTypeAnnotation":case"TSNullKeyword":return(0,i.fromString)("null",n);case"SymbolTypeAnnotation":case"TSSymbolKeyword":return(0,i.fromString)("symbol",n);case"BigIntTypeAnnotation":case"TSBigIntKeyword":return(0,i.fromString)("bigint",n);case"TSType":throw Error("unprintable type: "+JSON.stringify(s.type));case"TSNumberKeyword":return(0,i.fromString)("number",n);case"TSObjectKeyword":return(0,i.fromString)("object",n);case"TSBooleanKeyword":return(0,i.fromString)("boolean",n);case"TSStringKeyword":return(0,i.fromString)("string",n);case"TSAnyKeyword":return(0,i.fromString)("any",n);case"TSIntrinsicKeyword":return(0,i.fromString)("intrinsic",n);case"TSThisType":return(0,i.fromString)("this",n);case"TSUndefinedKeyword":return(0,i.fromString)("undefined",n);case"TSUnknownKeyword":return(0,i.fromString)("unknown",n);case"TSNeverKeyword":return(0,i.fromString)("never",n);case"TSArrayType":return(0,i.concat)([r.call(a,"elementType"),"[]"]);case"TSLiteralType":return r.call(a,"literal");case"TSIntersectionType":return(0,i.fromString)(" & ").join(r.map(a,"types"));case"TSConditionalType":return l.push(r.call(a,"checkType")," extends ",r.call(a,"extendsType")," ? ",r.call(a,"trueType")," : ",r.call(a,"falseType")),(0,i.concat)(l);case"TSInferType":return l.push("infer ",r.call(a,"typeParameter")),(0,i.concat)(l);case"TSParenthesizedType":return(0,i.concat)(["(",r.call(a,"typeAnnotation"),")"]);case"TSFunctionType":return(0,i.concat)([r.call(a,"typeParameters"),"(",S(r,n,a),") => ",r.call(a,"typeAnnotation","typeAnnotation")]);case"TSConstructorType":return(0,i.concat)(["new ",r.call(a,"typeParameters"),"(",S(r,n,a),") => ",r.call(a,"typeAnnotation","typeAnnotation")]);case"TSMappedType":return l.push(s.readonly?"readonly ":"","[",r.call(a,"typeParameter"),"]",s.optional?"?":""),s.typeAnnotation&&l.push(": ",r.call(a,"typeAnnotation"),";"),(0,i.concat)(["{\n",(0,i.concat)(l).indent(n.tabWidth),"\n}"]);case"TSTupleType":return(0,i.concat)(["[",(0,i.fromString)(", ").join(r.map(a,"elementTypes")),"]"]);case"TSNamedTupleMember":return l.push(r.call(a,"label")),s.optional&&l.push("?"),l.push(": ",r.call(a,"elementType")),(0,i.concat)(l);case"TSRestType":return(0,i.concat)(["...",r.call(a,"typeAnnotation")]);case"TSOptionalType":return(0,i.concat)([r.call(a,"typeAnnotation"),"?"]);case"TSIndexedAccessType":return(0,i.concat)([r.call(a,"objectType"),"[",r.call(a,"indexType"),"]"]);case"TSTypeOperator":return(0,i.concat)([r.call(a,"operator")," ",r.call(a,"typeAnnotation")]);case"TSTypeLiteral":var eT=(0,i.fromString)("\n").join(r.map(a,"members").map(function(e){return";"!==A(e)?e.concat(";"):e}));if(eT.isEmpty())return(0,i.fromString)("{}",n);return l.push("{\n",eT.indent(n.tabWidth),"\n}"),(0,i.concat)(l);case"TSEnumMember":return l.push(r.call(a,"id")),s.initializer&&l.push(" = ",r.call(a,"initializer")),(0,i.concat)(l);case"TSTypeQuery":return(0,i.concat)(["typeof ",r.call(a,"exprName")]);case"TSParameterProperty":return s.accessibility&&l.push(s.accessibility," "),s.export&&l.push("export "),s.static&&l.push("static "),s.readonly&&l.push("readonly "),l.push(r.call(a,"parameter")),(0,i.concat)(l);case"TSTypeReference":return(0,i.concat)([r.call(a,"typeName"),r.call(a,"typeParameters")]);case"TSQualifiedName":return(0,i.concat)([r.call(a,"left"),".",r.call(a,"right")]);case"TSAsExpression":case"TSSatisfiesExpression":var eE=r.call(a,"expression");return l.push(eE,"TSSatisfiesExpression"===s.type?" satisfies ":" as ",r.call(a,"typeAnnotation")),(0,i.concat)(l);case"TSTypeCastExpression":return(0,i.concat)([r.call(a,"expression"),r.call(a,"typeAnnotation")]);case"TSNonNullExpression":return(0,i.concat)([r.call(a,"expression"),"!"]);case"TSTypeAnnotation":return(0,i.concat)([": ",r.call(a,"typeAnnotation")]);case"TSIndexSignature":return(0,i.concat)([s.readonly?"readonly ":"","[",r.map(a,"parameters"),"]",r.call(a,"typeAnnotation")]);case"TSPropertySignature":return l.push(_(r,a),s.readonly?"readonly ":""),s.computed?l.push("[",r.call(a,"key"),"]"):l.push(r.call(a,"key")),l.push(s.optional?"?":"",r.call(a,"typeAnnotation")),(0,i.concat)(l);case"TSMethodSignature":return"get"===s.kind?l.push("get "):"set"===s.kind&&l.push("set "),s.computed?l.push("[",r.call(a,"key"),"]"):l.push(r.call(a,"key")),s.optional&&l.push("?"),l.push(r.call(a,"typeParameters"),"(",S(r,n,a),")",r.call(a,"typeAnnotation")),(0,i.concat)(l);case"TSTypePredicate":return s.asserts&&l.push("asserts "),l.push(r.call(a,"parameterName")),s.typeAnnotation&&l.push(" is ",r.call(a,"typeAnnotation","typeAnnotation")),(0,i.concat)(l);case"TSCallSignatureDeclaration":return(0,i.concat)([r.call(a,"typeParameters"),"(",S(r,n,a),")",r.call(a,"typeAnnotation")]);case"TSConstructSignatureDeclaration":return s.typeParameters?l.push("new",r.call(a,"typeParameters")):l.push("new "),l.push("(",S(r,n,a),")",r.call(a,"typeAnnotation")),(0,i.concat)(l);case"TSTypeAliasDeclaration":return(0,i.concat)([s.declare?"declare ":"","type ",r.call(a,"id"),r.call(a,"typeParameters")," = ",r.call(a,"typeAnnotation"),";"]);case"TSTypeParameter":l.push(r.call(a,"name"));var ev=r.getParentNode(0),e_=u.TSMappedType.check(ev);return s.constraint&&l.push(e_?" in ":" extends ",r.call(a,"constraint")),s.default&&l.push(" = ",r.call(a,"default")),(0,i.concat)(l);case"TSTypeAssertion":return l.push("<",r.call(a,"typeAnnotation"),"> ",r.call(a,"expression")),(0,i.concat)(l);case"TSEnumDeclaration":l.push(s.declare?"declare ":"",s.const?"const ":"","enum ",r.call(a,"id"));var eP=(0,i.fromString)(",\n").join(r.map(a,"members"));return eP.isEmpty()?l.push(" {}"):l.push(" {\n",eP.indent(n.tabWidth),"\n}"),(0,i.concat)(l);case"TSExpressionWithTypeArguments":return(0,i.concat)([r.call(a,"expression"),r.call(a,"typeParameters")]);case"TSInterfaceBody":var h=(0,i.fromString)("\n").join(r.map(a,"body").map(function(e){return";"!==A(e)?e.concat(";"):e}));if(h.isEmpty())return(0,i.fromString)("{}",n);return(0,i.concat)(["{\n",h.indent(n.tabWidth),"\n}"]);case"TSImportType":return l.push("import(",r.call(a,"argument"),")"),s.qualifier&&l.push(".",r.call(a,"qualifier")),s.typeParameters&&l.push(r.call(a,"typeParameters")),(0,i.concat)(l);case"TSImportEqualsDeclaration":return s.isExport&&l.push("export "),l.push("import ",r.call(a,"id")," = ",r.call(a,"moduleReference")),N((0,i.concat)(l));case"TSExternalModuleReference":return(0,i.concat)(["require(",r.call(a,"expression"),")"]);case"TSModuleDeclaration":var ev=r.getParentNode();return"TSModuleDeclaration"===ev.type?l.push("."):(s.declare&&l.push("declare "),s.global||("StringLiteral"===s.id.type||"Literal"===s.id.type&&"string"==typeof s.id.value?l.push("module "):s.loc&&s.loc.lines&&s.id.loc&&s.loc.lines.sliceString(s.loc.start,s.id.loc.start).indexOf("module")>=0?l.push("module "):l.push("namespace "))),l.push(r.call(a,"id")),s.body&&(l.push(" "),l.push(r.call(a,"body"))),(0,i.concat)(l);case"TSModuleBlock":var eA=r.call(function(e){return y(e,n,a)},"body");return eA.isEmpty()?l.push("{}"):l.push("{\n",eA.indent(n.tabWidth),"\n}"),(0,i.concat)(l);case"TSInstantiationExpression":return l.push(r.call(a,"expression"),r.call(a,"typeParameters")),(0,i.concat)(l);case"V8IntrinsicIdentifier":return(0,i.concat)(["%",r.call(a,"name")]);case"TopicReference":return(0,i.fromString)("#");default:throw Error("unknown type: "+JSON.stringify(s.type))}}(r,a,l);if(!d||h.isEmpty())return h;var m=!1,k=(c=[],(p=r.getValue()).decorators&&p.decorators.length>0&&!o.getParentExportDeclaration(r)?r.each(function(e){c.push(l(e),"\n")},"decorators"):o.isExportDeclaration(p)&&p.declaration&&p.declaration.decorators&&r.each(function(e){c.push(l(e),"\n")},"declaration","decorators"),(0,i.concat)(c));return k.isEmpty()?s.avoidRootParens||(m=r.needsParens()):f.push(k),m&&f.unshift("("),f.push(h),m&&f.push(")"),(0,i.concat)(f)}function y(t,r,n){var a=[],s=!1,c=!1;t.each(function(e){var t=e.getValue();t&&("EmptyStatement"!==t.type||t.comments&&t.comments.length>0)&&(u.Comment.check(t)?s=!0:u.Statement.check(t)?c=!0:l.assert(t),a.push({node:t,printed:n(e)}))}),s&&(0,e.default)(!1===c,"Comments may appear as statements in otherwise empty statement lists, but may not coexist with non-Comment nodes.");var p=null,d=a.length,f=[];return a.forEach(function(e,t){var n,a,s=e.printed,u=e.node,l=s.length>1,c=t<d-1,h=u&&u.loc&&u.loc.lines,m=h&&r.reuseWhitespace&&o.getTrueLoc(u,h);if(t>0){if(m){var y=h.skipSpaces(m.start,!0),v=y?y.line:1;n=Array(m.start.line-v+1).join("\n")}else n=l?"\n\n":"\n"}else n="";if(c){if(m){var g=h.skipSpaces(m.end);a=Array((g?g.line:h.length)-m.end.line+1).join("\n")}else a=l?"\n\n":"\n"}else a="";f.push(function(e,t){if(!e&&!t)return(0,i.fromString)("");if(!e)return(0,i.fromString)(t);if(!t)return(0,i.fromString)(e);var r=(0,i.fromString)(e),n=(0,i.fromString)(t);return n.length>r.length?n:r}(p,n),s),c?p=a:a&&f.push(a)}),(0,i.concat)(f)}function v(e){var t=[];e.declare&&t.push("declare ");var r=e.accessibility||e.access;return"string"==typeof r&&t.push(r," "),e.static&&t.push("static "),e.override&&t.push("override "),e.abstract&&t.push("abstract "),e.readonly&&t.push("readonly "),t}function g(e,t,r){var n=e.getNode(),a=n.kind,s=[],o=n.value;u.FunctionExpression.check(o)||(o=n),s.push.apply(s,v(n)),o.async&&s.push("async "),o.generator&&s.push("*"),("get"===a||"set"===a)&&s.push(a," ");var l=e.call(r,"key");return n.computed&&(l=(0,i.concat)(["[",l,"]"])),s.push(l),n.optional&&s.push("?"),n===o?(s.push(e.call(r,"typeParameters"),"(",S(e,t,r),")",e.call(r,"returnType")),n.body?s.push(" ",e.call(r,"body")):s.push(";")):(s.push(e.call(r,"value","typeParameters"),"(",e.call(function(e){return S(e,t,r)},"value"),")",e.call(r,"value","returnType")),o.body?s.push(" ",e.call(r,"value","body")):s.push(";")),(0,i.concat)(s)}function b(e,t,r){var n=e.map(r,"arguments"),a=o.isTrailingCommaEnabled(t,"parameters"),s=(0,i.fromString)(", ").join(n);return s.getLineLength(1)>t.wrapColumn?(s=(0,i.fromString)(",\n").join(n),(0,i.concat)(["(\n",s.indent(t.tabWidth),a?",\n)":"\n)"])):(0,i.concat)(["(",s,")"])}function S(e,t,r){var n,a=e.getValue(),s=[];a.params?(n=a.params,s=e.map(r,"params")):a.parameters&&(n=a.parameters,s=e.map(r,"parameters")),a.defaults&&e.each(function(e){var t=e.getName(),n=s[t];n&&e.getValue()&&(s[t]=(0,i.concat)([n," = ",r(e)]))},"defaults"),a.rest&&s.push((0,i.concat)(["...",e.call(r,"rest")]));var u=(0,i.fromString)(", ").join(s);return u.length>1||u.getLineLength(1)>t.wrapColumn?(u=(0,i.fromString)(",\n").join(s),u=o.isTrailingCommaEnabled(t,"parameters")&&!a.rest&&"RestElement"!==n[n.length-1].type?(0,i.concat)([u,",\n"]):(0,i.concat)([u,"\n"]),(0,i.concat)(["\n",u.indent(t.tabWidth)])):u}function x(e,t,r){var n=e.getValue();if(n.assertions&&n.assertions.length>0){var a=[" assert {"],s=e.map(r,"assertions"),o=(0,i.fromString)(", ").join(s);return o.length>1||o.getLineLength(1)>t.wrapColumn?a.push("\n",(0,i.fromString)(",\n").join(s).indent(t.tabWidth),"\n}"):a.push(" ",o," }"),(0,i.concat)(a)}return(0,i.fromString)("")}function T(e,t,r){var n=e.getValue(),a=["export "];n.exportKind&&"type"===n.exportKind&&!n.declaration&&a.push("type ");var s=t.objectCurlySpacing;if(u.Declaration.assert(n),(n.default||"ExportDefaultDeclaration"===n.type)&&a.push("default "),n.declaration)a.push(e.call(r,"declaration"));else if(n.specifiers){if(1===n.specifiers.length&&"ExportBatchSpecifier"===n.specifiers[0].type)a.push("*");else if(0===n.specifiers.length)a.push("{}");else if("ExportDefaultSpecifier"===n.specifiers[0].type||"ExportNamespaceSpecifier"===n.specifiers[0].type){var o=[],l=[];if(e.each(function(e){var t=e.getValue();"ExportDefaultSpecifier"===t.type||"ExportNamespaceSpecifier"===t.type?o.push(r(e)):l.push(r(e))},"specifiers"),o.forEach(function(e,t){t>0&&a.push(", "),a.push(e)}),l.length>0){var c=(0,i.fromString)(", ").join(l);c.getLineLength(1)>t.wrapColumn&&(c=(0,i.concat)([(0,i.fromString)(",\n").join(l).indent(t.tabWidth),","])),o.length>0&&a.push(", "),c.length>1?a.push("{\n",c,"\n}"):t.objectCurlySpacing?a.push("{ ",c," }"):a.push("{",c,"}")}}else a.push(s?"{ ":"{",(0,i.fromString)(", ").join(e.map(r,"specifiers")),s?" }":"}");n.source&&a.push(" from ",e.call(r,"source"),x(e,t,r))}var p=(0,i.concat)(a);return";"===A(p)||n.declaration&&("FunctionDeclaration"===n.declaration.type||"ClassDeclaration"===n.declaration.type||"TSModuleDeclaration"===n.declaration.type||"TSInterfaceDeclaration"===n.declaration.type||"TSEnumDeclaration"===n.declaration.type)||(p=(0,i.concat)([p,";"])),p}function E(t,r){var n=o.getParentExportDeclaration(t);return n?(0,e.default)("DeclareExportDeclaration"===n.type):r.unshift("declare "),(0,i.concat)(r)}function _(e,t){return e.call(function(e){var r=e.getValue();return r?"plus"===r?(0,i.fromString)("+"):"minus"===r?(0,i.fromString)("-"):t(e):(0,i.fromString)("")},"variance")}function P(e,t){return e.length>1?(0,i.concat)([" ",e]):(0,i.concat)(["\n",N(e).indent(t.tabWidth)])}function A(e){var t=e.lastPos();do{var r=e.charAt(t);if(/\S/.test(r))return r}while(e.prevPos(t))}function k(e){return e.replace(/['"]/g,function(e){return'"'===e?"'":'"'})}function C(e){var r=t.getFieldValue(e,"value"),n=t.getFieldValue(e,"extra");if(n&&"string"==typeof n.raw&&r==n.rawValue)return n.raw;if("Literal"===e.type){var i=e.raw;if("string"==typeof i&&r==i)return i}}function w(e){return JSON.stringify(e).replace(/[\u2028\u2029]/g,function(e){return"\\u"+e.charCodeAt(0).toString(16)})}function I(e,t){switch(l.assert(e),t.quote){case"auto":var r=w(e),n=k(w(k(e)));return r.length>n.length?n:r;case"single":return k(w(k(e)));default:return w(e)}}function N(e){var t=A(e);return!t||0>"\n};".indexOf(t)?(0,i.concat)([e,";"]):e}return Kf.Printer=function t(i){(0,e.default)(this instanceof t);var u=i&&i.tabWidth;function l(e,t){return e=Object.assign({},e,t),function(t){return c(t,e)}}function c(t,a){if((0,e.default)(t instanceof n.default),(a=a||{}).includeComments)return(0,r.printComments)(t,l(a,{includeComments:!1}));var o=i.tabWidth;if(!u){var p=t.getNode().loc;p&&p.lines&&p.lines.guessTabWidth&&(i.tabWidth=p.lines.guessTabWidth())}var d=(0,s.getReprinter)(t),f=d?d(c):m(t,i,a,l(a,{includeComments:!0,avoidRootParens:!1}));return i.tabWidth=o,f}(i=(0,a.normalize)(i)).sourceFileName=null,this.print=function(e){if(!e)return h;var t=c(n.default.from(e),{includeComments:!0,avoidRootParens:!1});return new p(t.toString(i),o.composeSourceMaps(i.inputSourceMap,t.getSourceMap(i.sourceMapName,i.sourceRoot)))},this.printGenerically=function(e){if(!e)return h;var t=n.default.from(e),a=i.reuseWhitespace;i.reuseWhitespace=!1;var s=new p((function e(t){return(0,r.printComments)(t,function(t){return m(t,i,{includeComments:!0,avoidRootParens:!1},e)})})(t).toString(i));return i.reuseWhitespace=a,s}},Kf}(),a=GH();function s(e,t){return new i.Printer(t).print(e)}function o(e){eV.stdout.write(e)}Object.defineProperty(e,"visit",{enumerable:!0,get:function(){return a.visit}}),e.print=s,e.prettyPrint=function(e,t){return new i.Printer(t).printGenerically(e)},e.run=function(e,r){var i;return i=eV.argv[2],void t.default.readFile(i,"utf-8",function(t,i){var a;if(t){console.error(t);return}a=r&&r.writeback||o,e((0,n.parse)(i,r),function(e){a(s(e,r).code)})})}}(XI),XI.default;let{generate:Kv}=r5,{stringify:Kg}=JSON,{isArray:Kb}=Array,KS=e=>Kb(e)?e:[e,{}],Kx=e=>e1.from(e,"binary").toString("base64"),KT=(e,{code:t,map:r})=>e?`${t}
|
4
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,${Kx(Kg(r))}
|
5
|
+
`:t,KE=e=>e.replace(`
|
6
|
+
|
7
|
+
|
8
|
+
'use strict'`,`
|
9
|
+
|
10
|
+
'use strict'`),{isFunctionExpression:K_,ObjectMethod:KP}=r5.types,{assign:KA}=Object,{classPrivateMethod:Kk,classMethod:KC,PrivateName:Kw,Identifier:KI}=r5.types,{assign:KN}=Object,KO=({type:e})=>"PrivateIdentifier"===e,{Identifier:KD}=r5.types,{Directive:KL,DirectiveLiteral:KM}=r5.types,{assign:KF}=Object;var KB={};function KR(e){return{type:"PrivateName",id:{...e,type:"Identifier"},loc:e.loc}}KB.convertPropertyDefinition=e=>{let{node:t}=e;if("PrivateIdentifier"===t.key.type){let{key:e}=t;t.type="ClassPrivateProperty",t.key=KR(e);return}e.node.type="ClassProperty"},KB.convertTSInterfaceHeritage=e=>{let{expression:t}=e.node;for(;"MemberExpression"===t.type;){let{object:e,property:r}=t;t.type="TSQualifiedName",t.left=e,t.right=r,delete t.object,delete t.property,t=e}},KB.convertPrivateIdentifier=e=>{e.replaceWith(KR(e.node))},KB.convertTSAbstractMethodDefinition=e=>{let{node:t}=e,{generator:r,async:n,params:i,id:a,returnType:s}=t.value,o={...t,abstract:!0,generator:r,async:n,params:i,id:a,returnType:s,type:"TSDeclareMethod"};delete o.value,e.replaceWith(o)};var Kj={};function KU({type:e}){return`Comment${e}`}Kj.convertNodeComments=e=>{let{comments:t}=e;if(t)for(let r of(delete e.comments,e.leadingComments=void 0,e.trailingComments=void 0,e.innerComments=void 0,t)){let t=function({trailing:e,leading:t}){return e?"trailingComments":t?"leadingComments":"innerComments"}(r);e[t]||(e[t]=[]),delete r.leading,delete r.trailing,r.type=KU(r),e[t].push(r)}},Kj.convertProgramComments=e=>{for(let t of e)t.type=KU(t);return e};let KV=e=>"string"==typeof e,KW=e=>"number"==typeof e,Kq=e=>null===e,KJ=e=>"boolean"==typeof e,{convertProgramComments:KX}=Kj,{traverse:KG,types:KK}=r5,KH=e=>{for(let t of e){let{computed:e,key:r,method:n,value:i}=t.node;n&&K_(i)&&(t.replaceWith(KP("method",r,i.params,i.body,e)),KA(t.node,{id:null,method:!0,generator:i.generator,loc:r.loc&&i.loc?{start:r.loc.start,end:i.loc.end}:null,async:i.async,type:"ObjectMethod"}))}},Kz=e=>{let{node:t}=e,{key:r,kind:n,computed:i,loc:a}=t,{body:s,params:o,expression:u,generator:l}=t.value,c=function({kind:e,key:t,params:r,body:n,computed:i,nodeStatic:a}){return KO(t)?Kk(e,Kw(KI(t.name)),r,n,i):KC(e,t,r,n,i,a)}({kind:n,key:r,params:o,body:s,computed:i,nodeStatic:t.static});e.replaceWith(c),KN(e.node,{loc:a,expression:u,generator:l})},K$=e=>{e.node.type="ClassPrivateProperty"},KY=({node:e})=>{e.name&&(e.id=KD(e.name),e.id.loc={start:{line:e.loc.start.line,column:e.loc.start.column+1},end:e.loc.end},delete e.name)},KQ=e=>{let{node:t}=e;if(!t.directives)for(let r of(t.directives=[],e.get("body"))){if("ExpressionStatement"!==r.type)continue;let e=r.node;if(!("directive"in e)||!e.directive)continue;let n=KL(KM(e.directive));t.directives.push(n),r.remove()}},KZ=e=>{let t=e.get("expression"),{expression:r}=e.node;t.isCallExpression()?r.type="OptionalCallExpression":r.type="OptionalMemberExpression",e.replaceWith(r)},K0=e=>{let{attributes:t=[]}=e.node;e.node.attributes=t},K1=e=>{let{attributes:t=[]}=e.node;KF(e.node,{attributes:t})},{convertTSInterfaceHeritage:K2,convertTSAbstractMethodDefinition:K3,convertPropertyDefinition:K4,convertPrivateIdentifier:K5}=KB,{convertNodeComments:K8}=Kj,K6=e=>{let{type:t,value:r}=e;if("Literal"===t){if(Kq(r)){e.type="NullLiteral";return}if(KV(r)){e.type="StringLiteral";return}if(KW(r)){e.type="NumericLiteral";return}if(KJ(r)){e.type="BooleanLiteral";return}if(e.regex){!function(e){for(let t of(e.type="RegExpLiteral",Object.keys(e.regex)))e[t]=e.regex[t];delete e.regex}(e);return}}},K9=e=>{if("File"===e.type)return e;let{comments:t=[],tokens:r,...n}=e;return{type:"File",program:{...n,directives:[]},comments:KX(t),tokens:r}},{isObjectExpression:K7,isExportDeclaration:He}=KK;function Ht(e){let{raw:t}=e;e.raw=t||e.extra?.raw,e.extra=e.extra||{raw:t}}var Hr={},Hn={exports:{}},Hi=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw TypeError("need wrapper function");return Object.keys(t).forEach(function(e){n[e]=t[e]}),n;function n(){for(var e=Array(arguments.length),r=0;r<e.length;r++)e[r]=arguments[r];var n=t.apply(this,e),i=e[e.length-1];return"function"==typeof n&&n!==i&&Object.keys(i).forEach(function(e){n[e]=i[e]}),n}};function Ha(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function Hs(e){var t=function(){if(t.called)throw Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}Hn.exports=Hi(Ha),Hn.exports.strict=Hi(Hs),Ha.proto=Ha(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return Ha(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return Hs(this)},configurable:!0})});var Ho=Hn.exports,Hu={exports:{}},Hl=/*@__PURE__*/eo(/*#__PURE__*/Object.freeze({__proto__:null,default:{}}));let Hc=Ho(()=>{let{Parser:e}=require("acorn"),t=(en||(en=1,function(e){let t=er?et:(er=1,et={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}),r=/^[\da-fA-F]+$/,n=/^\d+$/,i=new WeakMap;function a(e){e=e.Parser.acorn||e;let t=i.get(e);if(!t){let r=e.tokTypes,n=e.TokContext,a=e.TokenType,s=new n("<tag",!1),o=new n("</tag",!1),u=new n("<tag>...</tag>",!0,!0),l={jsxName:new a("jsxName"),jsxText:new a("jsxText",{beforeExpr:!0}),jsxTagStart:new a("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new a("jsxTagEnd")};l.jsxTagStart.updateContext=function(){this.context.push(u),this.context.push(s),this.exprAllowed=!1},l.jsxTagEnd.updateContext=function(e){let t=this.context.pop();t===s&&e===r.slash||t===o?(this.context.pop(),this.exprAllowed=this.curContext()===u):this.exprAllowed=!0},t={tokContexts:{tc_oTag:s,tc_cTag:o,tc_expr:u},tokTypes:l},i.set(e,t)}return t}function s(e){return e?"JSXIdentifier"===e.type?e.name:"JSXNamespacedName"===e.type?e.namespace.name+":"+e.name.name:"JSXMemberExpression"===e.type?s(e.object)+"."+s(e.property):void 0:e}e.exports=function(e){return e=e||{},function(i){return function(e,i){let o=i.acorn||require("acorn"),u=a(o),l=o.tokTypes,c=u.tokTypes,p=o.tokContexts,d=u.tokContexts.tc_oTag,f=u.tokContexts.tc_cTag,h=u.tokContexts.tc_expr,m=o.isNewLine,y=o.isIdentifierStart,v=o.isIdentifierChar;return class extends i{static get acornJsx(){return u}jsx_readToken(){let e="",t=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let r=this.input.charCodeAt(this.pos);switch(r){case 60:case 123:if(this.pos===this.start){if(60===r&&this.exprAllowed)return++this.pos,this.finishToken(c.jsxTagStart);return this.getTokenFromCode(r)}return e+=this.input.slice(t,this.pos),this.finishToken(c.jsxText,e);case 38:e+=this.input.slice(t,this.pos)+this.jsx_readEntity(),t=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(62===r?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:m(r)?(e+=this.input.slice(t,this.pos)+this.jsx_readNewLine(!0),t=this.pos):++this.pos}}}jsx_readNewLine(e){let t,r=this.input.charCodeAt(this.pos);return++this.pos,13===r&&10===this.input.charCodeAt(this.pos)?(++this.pos,t=e?"\n":"\r\n"):t=String.fromCharCode(r),this.options.locations&&(++this.curLine,this.lineStart=this.pos),t}jsx_readString(e){let t="",r=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let n=this.input.charCodeAt(this.pos);if(n===e)break;38===n?(t+=this.input.slice(r,this.pos)+this.jsx_readEntity(),r=this.pos):m(n)?(t+=this.input.slice(r,this.pos)+this.jsx_readNewLine(!1),r=this.pos):++this.pos}return t+=this.input.slice(r,this.pos++),this.finishToken(l.string,t)}jsx_readEntity(){let e="",i=0,a,s=this.input[this.pos];"&"!==s&&this.raise(this.pos,"Entity must start with an ampersand");let o=++this.pos;for(;this.pos<this.input.length&&i++<10;){if(";"===(s=this.input[this.pos++])){"#"===e[0]?"x"===e[1]?(e=e.substr(2),r.test(e)&&(a=String.fromCharCode(parseInt(e,16)))):(e=e.substr(1),n.test(e)&&(a=String.fromCharCode(parseInt(e,10)))):a=t[e];break}e+=s}return a||(this.pos=o,"&")}jsx_readWord(){let e,t=this.pos;do e=this.input.charCodeAt(++this.pos);while(v(e)||45===e);return this.finishToken(c.jsxName,this.input.slice(t,this.pos))}jsx_parseIdentifier(){let e=this.startNode();return this.type===c.jsxName?e.name=this.value:this.type.keyword?e.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsx_parseNamespacedName(){let t=this.start,r=this.startLoc,n=this.jsx_parseIdentifier();if(!e.allowNamespaces||!this.eat(l.colon))return n;var i=this.startNodeAt(t,r);return i.namespace=n,i.name=this.jsx_parseIdentifier(),this.finishNode(i,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===c.jsxTagEnd)return"";let t=this.start,r=this.startLoc,n=this.jsx_parseNamespacedName();for(this.type!==l.dot||"JSXNamespacedName"!==n.type||e.allowNamespacedObjects||this.unexpected();this.eat(l.dot);){let e=this.startNodeAt(t,r);e.object=n,e.property=this.jsx_parseIdentifier(),n=this.finishNode(e,"JSXMemberExpression")}return n}jsx_parseAttributeValue(){switch(this.type){case l.braceL:let e=this.jsx_parseExpressionContainer();return"JSXEmptyExpression"===e.expression.type&&this.raise(e.start,"JSX attributes must only be assigned a non-empty expression"),e;case c.jsxTagStart:case l.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let e=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let e=this.startNode();return this.next(),e.expression=this.type===l.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(l.braceR),this.finishNode(e,"JSXExpressionContainer")}jsx_parseAttribute(){let e=this.startNode();return this.eat(l.braceL)?(this.expect(l.ellipsis),e.argument=this.parseMaybeAssign(),this.expect(l.braceR),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsx_parseNamespacedName(),e.value=this.eat(l.eq)?this.jsx_parseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsx_parseOpeningElementAt(e,t){let r=this.startNodeAt(e,t);r.attributes=[];let n=this.jsx_parseElementName();for(n&&(r.name=n);this.type!==l.slash&&this.type!==c.jsxTagEnd;)r.attributes.push(this.jsx_parseAttribute());return r.selfClosing=this.eat(l.slash),this.expect(c.jsxTagEnd),this.finishNode(r,n?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(e,t){let r=this.startNodeAt(e,t),n=this.jsx_parseElementName();return n&&(r.name=n),this.expect(c.jsxTagEnd),this.finishNode(r,n?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(e,t){let r=this.startNodeAt(e,t),n=[],i=this.jsx_parseOpeningElementAt(e,t),a=null;if(!i.selfClosing){t:for(;;)switch(this.type){case c.jsxTagStart:if(e=this.start,t=this.startLoc,this.next(),this.eat(l.slash)){a=this.jsx_parseClosingElementAt(e,t);break t}n.push(this.jsx_parseElementAt(e,t));break;case c.jsxText:n.push(this.parseExprAtom());break;case l.braceL:n.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}s(a.name)!==s(i.name)&&this.raise(a.start,"Expected corresponding JSX closing tag for <"+s(i.name)+">")}let o=i.name?"Element":"Fragment";return r["opening"+o]=i,r["closing"+o]=a,r.children=n,this.type===l.relational&&"<"===this.value&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(r,"JSX"+o)}jsx_parseText(){let e=this.parseLiteral(this.value);return e.type="JSXText",e}jsx_parseElement(){let e=this.start,t=this.startLoc;return this.next(),this.jsx_parseElementAt(e,t)}parseExprAtom(e){return this.type===c.jsxText?this.jsx_parseText():this.type===c.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(e)}readToken(e){let t=this.curContext();if(t===h)return this.jsx_readToken();if(t===d||t===f){if(y(e))return this.jsx_readWord();if(62==e)return++this.pos,this.finishToken(c.jsxTagEnd);if((34===e||39===e)&&t==d)return this.jsx_readString(e)}return 60===e&&this.exprAllowed&&33!==this.input.charCodeAt(this.pos+1)?(++this.pos,this.finishToken(c.jsxTagStart)):super.readToken(e)}updateContext(e){if(this.type==l.braceL){var t=this.curContext();t==d?this.context.push(p.b_expr):t==h?this.context.push(p.b_tmpl):super.updateContext(e),this.exprAllowed=!0}else{if(this.type!==l.slash||e!==c.jsxTagStart)return super.updateContext(e);this.context.length-=2,this.context.push(f),this.exprAllowed=!1}}}}({allowNamespaces:!1!==e.allowNamespaces,allowNamespacedObjects:!!e.allowNamespacedObjects},i)}},Object.defineProperty(e.exports,"tokTypes",{get:function(){return a(require("acorn")).tokTypes},configurable:!0,enumerable:!0})}(Hu)),Hu.exports);return e.extend(Hl,t())});Hr.parse=function(e){let t=Hc(),r={locations:!0,comment:!0,ecmaVersion:2023,sourceType:"module",allowAwaitOutsideFunction:!0,allowReturnOutsideFunction:!0,allowImportExportEverywhere:!0},n=Array.from(t.tokenizer(e,r));return{...t.parse(e,r),tokens:n}};var Hp={},Hd=["importMeta","importAttributes","deprecatedImportAssert","dynamicImport","bigInt","classProperties","decorators-legacy","decoratorAutoAccessors","destructuringPrivate","exportDefaultFrom","throwExpressions","recordAndTuple","explicitResourceManagement","deferredImportEvaluation","sourcePhaseImports",["optionalChainingAssign",{version:"2023-07"}]],Hf={allowReturnOutsideFunction:!0,allowUndeclaredExports:!0,allowImportExportEverywhere:!0};let Hh=e=>!e.indexOf("// @flow"),Hm=e=>e.filter(Boolean),Hy=Ho(()=>r5),{assign:Hv}=Object;Hp.parse=function(e,{sourceFilename:t,isTS:r,isJSX:n=!0,isFlow:i=Hh(e),isRecovery:a}){let{parse:s}=Hy(),o={sourceType:"module",tokens:!0,...Hf,errorRecovery:a,plugins:Hm([...Hd,...function({isTS:e,isFlow:t,isJSX:r}){let n=[r&&"jsx"];return e?n.concat(["typescript"]):t?n.concat(["flow","flowComments"]):n}({isTS:r,isFlow:i,isJSX:n})])};return t&&Hv(o,{sourceFilename:t}),s(e,o)};var Hg={};let Hb=Ho(()=>require("espree"));Hg.parse=function(e){let{parse:t}=Hb();return t(e,{loc:!0,tokens:!0,comment:!0,ecmaVersion:2023,sourceType:"module",ecmaFeatures:{jsx:!0}})};var HS={};let Hx=Ho(()=>require("esprima"));HS.parse=function(e){let{parse:t}=Hx();return t(e,{loc:!0,tokens:!0,comment:!0,sourceType:"module",jsx:!0})};var HT={};let HE=Ho(()=>require("tenko"));HT.parse=e=>{let{Tenko:t}=HE(),{ast:r}=t(e,{goalMode:"module",allowGlobalReturn:!0,exposeScopes:!0});return r};var H_={};let HP=Ho(()=>require("hermes-parser"));H_.parse=function(e){return HP().parse(e,{babel:!0,allowReturnOutsideFunction:!0,flow:"detect",locations:!0,tokens:!0})};var HA=(e,...t)=>{try{return[null,e(...t)]}catch(e){return[e]}};let Hk=(e,t,r,n)=>{let[i,...a]=n,[s,o]=HA(e,t,i);if(!s)return o;if(function(e,t){for(let r of t)if(e.message.includes(r))return!0;return!1}(s,r))throw s;for(let r of a){let[n,i]=HA(e,t,r);if(!n)return i}throw s},HC=e=>"object"==typeof e,Hw=["has already been declared"];function HI(e,{parser:t,isTS:r,isFlow:n,isJSX:i,isRecovery:a}){return"babel"===t?Hp.parse(e,{isTS:r,isFlow:n,isJSX:i,isRecovery:a}):HC(t)?t.parse(e,{isJSX:i,isTS:r}):"espree"===t?Hg.parse(e):"acorn"===t?Hr.parse(e):"esprima"===t?HS.parse(e):"tenko"===t?HT.parse(e):"hermes"===t?H_.parse(e):(function(e){throw Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')})(t).parse(e)}let{types:HN}=r5,{StringLiteral:HO,ExpressionStatement:HD}=HN,{assign:HL}=Object,HM=e=>{let t=K9(e);return KG(t,{noScope:!0,enter(e){let{node:t}=e,{type:r}=t;return r.endsWith("Literal")?(K6(t),Ht(t)):"JSXText"===r?Ht(t):"BlockStatement"===r||"Program"===r?KQ(e):"Property"===r?void(t.type="ObjectProperty"):"MethodDefinition"===r?Kz(e):"FieldDefinition"===r?K$(e):"PrivateName"===r?KY(e):"ImportDeclaration"===r?K0(e):He(e)?K1(e):"ChainExpression"===r?KZ(e):"TSAbstractMethodDefinition"===r?K3(e):"TSInterfaceHeritage"===r?K2(e):"PropertyDefinition"===r?K4(e):"PrivateIdentifier"===r?K5(e):void 0},exit(e){let{node:t}=e;if(K8(t),K7(t))return KH(e.get("properties"))}}),t},HF=(e,t,{isTS:r,isFlow:n,isJSX:i})=>{let a={parser:t,isTS:r,isFlow:n,isJSX:i},s={...a,isJSX:!1},o={...a,isRecovery:!0};return Hk(HI,e,Hw,[a,s,o])},HB=e=>{let{body:t,directives:r}=e.program;if(!r.length)return e;for(let n of(e.program.directives=[],r)){let{leadingComments:e}=n,{value:r}=n.value,i=HL(HD(HO(r)),{leadingComments:e});t.unshift(i)}return e},{generate:HR}=r5;var Hj={exports:{}};function HU(e,t){t||(t={});var r,n,i,a,s,o=t.vargs||(n=(r=e+"").indexOf("..."))>=0&&(n<r.indexOf(")")||r.indexOf("arguments")>=0),u=[],l=new Map,c=t.maxAge>0&&t.maxAge<1/0?function(e){return a=setTimeout(function(){if(i){l.delete(e);return}u.splice(e,1)},t.maxAge)}:0,p=t.equals?t.equals:0,d=t.maxArgs,f=t.serializer;return 1!==e.length||t.equals||o?s=p?function(){for(var t=d||arguments.length,r=u.length,n=-1;++n<r;)if(u[n].length===t){for(var i=-1;++i<t&&p(arguments[i],u[n][i]););if(i===t)return u[n].val}return u[n]=arguments,c&&c(n),arguments.val=e.apply(this,u[n])}:function(){for(var t=d||arguments.length,r=u.length,n=-1;++n<r;)if(u[n].length===t){for(var i=-1;++i<t&&arguments[i]===u[n][i];);if(i===t)return u[n].val}return u[n]=arguments,c&&c(n),arguments.val=e.apply(this,u[n])}:(s=function(t){var r;return f&&(t=f(t)),l.get(t)||(c&&c(t),l.set(t,r=e.call(this,t)),r)},i=1),s.clear=function(){a&&clearTimeout(a),l.clear(),u=[]},s.keys=function(){return i?[...l.keys()]:u.slice()},s.values=function(){return i?[...l.values()]:u.map(e=>e.val)},s}var HV=/*@__PURE__*/eo(/*#__PURE__*/Object.freeze({__proto__:null,default:HU,nanomemoize:HU}));!function(e){let{types:t,template:r}=r5,{nanomemoize:n}=HV,i={...Hf,plugins:[...Hd,"typescript","jsx"]},{isExpressionStatement:a,isTSExternalModuleReference:s}=t,o=e=>a(e)||s(e)?e.expression:e;e.exports=n((e,t)=>{let n=r(e,{...i,...t});return(...e)=>o(n(...e))}),e.exports.ast=n((e,t)=>o(r.ast(e,{...i,...t}))),e.exports.program=n((e,t)=>r.program(e,{...i,...t})),e.exports.program.ast=n((e,t)=>r.program.ast(e,{...i,...t})),e.exports.ast.fresh=(e,t)=>o(r.ast(e,{...i,...t})),e.exports.extractExpression=o}(Hj);var HW=Hj.exports;HW.default,Xw.print=(e,t={})=>{let{sourceMapName:r}=t,[n="putout",i]=KS(t.printer);if("recast"===n){let n={quote:"single",objectCurlySpacing:!1,wrapColumn:1/0,...t,...i},a=XI.print(e,n),{map:s}=a;return KT(r,{code:KE(a.code),map:s})}return"babel"===n?function(e){let{code:t}=Kv(e,{indent:{style:" "}});return`${t}
|
11
|
+
`}(e):eu.print(e,i)},Xw.parse=(e,t)=>{let{parser:r,printer:n="putout",isTS:i,isFlow:a,isJSX:s,sourceFileName:o}=t||{},u=function({parser:e="babel",isTS:t,isFlow:r,isJSX:n,printer:i}){return{parse(a){let s=HM(HF(a,e,{isTS:t,isFlow:r,isJSX:n}));return"recast"===i&&HB(s),s}}}({printer:n,parser:r,isTS:i,isFlow:a,isJSX:s,sourceFileName:o});return"recast"!==n?u.parse(e):XI.parse(e,{sourceFileName:o,parser:u})},Xw.generate=(e,t,r)=>HR(e,{comments:!1,recordAndTupleSyntaxType:"hash",...t},r),Xw.template=HW;var Hq={};let HJ=e=>"\n"===e[0]?e:`
|
12
|
+
${e}`;Hq.mergeShebang=(e,t)=>e?e+HJ(t):t,Hq.cutShebang=e=>{if(e.indexOf("#"))return[e,""];let t=e.split("\n"),r=t.slice(1).join("\n"),[n]=t;return[r,`${n}
|
13
|
+
`]};var HX={},HG={},HK={};let{createRequire:HH}=/*@__PURE__*/eo(/*#__PURE__*/Object.freeze({__proto__:null,default:{}})),{assign:Hz}=Object,H$=e=>`${e[0].toUpperCase()}${e.slice(1)}`,HY=e=>({name:t,namespace:r})=>{let[n,i]=function(e,t,r){if(r.startsWith("import:"))return H1(r.replace("import:",""));let[n,i]=H1(`@${e}/${t}-${r}`);return n||([n,i]=H1(`${e}-${t}-${r}`)),n||([n,i]=H1(r)),[n,i]}(r,e,t);if(!n)throw Error(`${H$(e)} "${r}-${e}-${t}" could not be found!`);let[a,s]=HA(i,n);if(a?.code==="ERR_REQUIRE_ESM"&&Hz(a,{message:`☝️ Looks like '${t}' is ESM, use 'await putoutAsync()' instead`,name:t}),a)throw a;return s};HK.loadPlugin=HY("plugin"),HK.loadProcessor=HY("processor");let{PUTOUT_YARN_PNP:HQ="putout"}={},HZ=Ho(()=>HH(require.resolve(HQ))),H0=Ho(()=>HH(require.resolve("putout")));function H1(e){let t;let r=HZ(),n=H0();return([,t]=HA(n.resolve,e),t)?[t,n]:([,t]=HA(r.resolve,e),[t,r])}var H2={},H3=async(e,...t)=>{!function(e){if("function"!=typeof e)throw Error("fn should be a function!")}(e);try{return[null,await e(...t)]}catch(e){return[e]}},H4={};H4.simpleImport=async e=>{let t=await import(e);return t.default||t};let{nanomemoize:H5}=HV,{simpleImport:H8}=H4,{assign:H6}=Object,H9=()=>()=>{};async function H7(e,t=H8){let r,n;for(let i of e){if([r,n]=await H3(t,i),!r)return n;if("ERR_MODULE_NOT_FOUND"!==r.code)throw H6(r,{message:`${i}: ${r.message}`}),r}throw H6(r,{message:r.message.replace(/\simported.*/,"")}),r}H2.createAsyncLoader=e=>H5(async(t,r)=>{if("none"===t)return H9();if(t.startsWith("import:")){let e=t.replace("import:","");return await H7([require.resolve(e)],r)}return await H7([`@putout/${e}-${t}`,`putout-${e}-${t}`],r)});var ze={};let zt=e=>"string"==typeof e,{isArray:zr}=Array,{entries:zn}=Object;ze.parsePluginNames=e=>{let t=[];for(let r of e){if(zt(r)){t.push([r]);continue}if(zr(r)){let[e,n]=r;t.push([e,n]);continue}t.push(...zn(r))}return t};let zi=e=>"string"==typeof e,{isArray:za}=Array,zs=e=>"on"===e,zo=e=>"off"===e,zu=["find","traverse","replace","include","exclude","rules","declare","scan"];var zl=({plugin:e,rule:t})=>{let r=Object.keys(e);for(let e of zu)if(r.includes(e))return;throw Error(`☝️ Cannot determine type of plugin '${t}'. Here is list of supported plugins: https://git.io/JqcMn`)},zc={};function zp(e,t){for(var r=0,n=e.length-1;n>=0;n--){var i=e[n];"."===i?e.splice(n,1):".."===i?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}var zd=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,zf=function(e){return zd.exec(e).slice(1)};function zh(){for(var e="",t=!1,r=arguments.length-1;r>=-1&&!t;r--){var n=r>=0?arguments[r]:"/";if("string"!=typeof n)throw TypeError("Arguments to path.resolve must be strings");n&&(e=n+"/"+e,t="/"===n.charAt(0))}return e=zp(zT(e.split("/"),function(e){return!!e}),!t).join("/"),(t?"/":"")+e||"."}function zm(e){var t=zy(e),r="/"===zE(e,-1);return(e=zp(zT(e.split("/"),function(e){return!!e}),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e}function zy(e){return"/"===e.charAt(0)}function zv(){var e=Array.prototype.slice.call(arguments,0);return zm(zT(e,function(e,t){if("string"!=typeof e)throw TypeError("Arguments to path.join must be strings");return e}).join("/"))}function zg(e,t){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var r=e.length-1;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=zh(e).substr(1),t=zh(t).substr(1);for(var n=r(e.split("/")),i=r(t.split("/")),a=Math.min(n.length,i.length),s=a,o=0;o<a;o++)if(n[o]!==i[o]){s=o;break}for(var u=[],o=s;o<n.length;o++)u.push("..");return(u=u.concat(i.slice(s))).join("/")}function zb(e){var t=zf(e),r=t[0],n=t[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."}function zS(e,t){var r=zf(e)[2];return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r}function zx(e){return zf(e)[3]}function zT(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n<e.length;n++)t(e[n],n,e)&&r.push(e[n]);return r}var zE="b"==="ab".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)},z_=/*@__PURE__*/eo(/*#__PURE__*/Object.freeze({__proto__:null,basename:zS,default:{extname:zx,basename:zS,dirname:zb,sep:"/",delimiter:":",relative:zg,join:zv,isAbsolute:zy,normalize:zm,resolve:zh},delimiter:":",dirname:zb,extname:zx,isAbsolute:zy,join:zv,normalize:zm,relative:zg,resolve:zh,sep:"/"})),zP={};let{isArray:zA}=Array,zk=e=>"boolean"==typeof e,zC=e=>"string"==typeof e,zw=e=>"object"==typeof e,{entries:zI}=Object,{stringify:zN}=JSON,zO=e=>Error(`☝️ Rule format not supported ${e}: ${typeof e}`),zD=e=>Error(`☝️ Looks like you need to change "rules" to "match" for ${zN(e)}`),zL=({rule:e,value:t})=>Error(`☝️ ${e}: state option can be "on" or "off" only, when used as string, received: "${t}"`),zM=()=>Object.create(null),zF=(e,t)=>((function(e,t){if(!(zk(t)||/^(on|off)$/.test(t)||zw(t)))throw zL({rule:e,value:t})})(e,t),"on"===t||"off"!==t&&t);zP.parseRules=e=>{e=function(e){let t={};for(let[r,n]of zI(e))r.includes("/")&&zF(r,n)&&(t[zB(r)]="on"),t[r]=n;return t}(e);let t=[];for(let[r,n]of zI(e)){if(zC(n)){t.push({rule:r,state:zF(r,n),plugin:null,msg:"",options:zM()});continue}if(zk(n)){t.push({rule:r,state:n,plugin:null,msg:"",options:zM()});continue}if(zA(n)&&n.length){t.push(function(e,t){let[r]=t,n=zF(e,r);if(3===t.length){let[,r,i]=t;return{rule:e,state:n,plugin:null,msg:r,options:i}}let[,i=""]=t;return{rule:e,state:n,plugin:null,msg:"",options:i}}(r,n));continue}if(zw(n))throw zD(n);throw zO(n)}return t};let zB=e=>e.split("/")[0];var zR={};let zj=()=>Object.create(null);zR.mergeRules=([e,t],r)=>{for(let n of r){if(n.rule!==e)continue;let{msg:r,options:i}=n;return{rule:e,plugin:t,msg:r,options:i}}return{rule:e,plugin:t,msg:"",options:zj()}};var zU={};let zV=e=>e.includes("/")?e.split("/").shift():e,zW=e=>e.replace("import:@putout/plugin-","").replace("@putout/plugin-","");zU.validateRules=({items:e,rules:t})=>{for(let r of Object.keys(t)){let t=!1,n=!1;for(let[i,a={}]of e){let e=zW(i);if(t=e===r,n=e===zV(r),t&&a.rules)throw Error(`Rule '${r}' cannot be applied to nested plugin '${i}'`);if(t||n)break}if(!t&&!n)throw Error(`No plugin found for a rule: '${r}'`)}};var zq={};zq.isEnabled=(e,t)=>{for(let{rule:r,state:n}of t)if(r.includes("/")&&RegExp(`^${r}`).test(e))return n;for(let{rule:r,state:n}of t)if(r===e)return n;for(let{rule:r,state:n}of t)if(RegExp(`^${r}/`).test(e))return n;return!0};var zJ={};zJ.getLoadedRules=e=>{let t=[];for(let r of e){let{rule:e}=r;e.includes("/")||t.push(r)}return t};let{parseRules:zX}=zP,{mergeRules:zG}=zR,{validateRules:zK}=zU,{isEnabled:zH}=zq,{getLoadedRules:zz}=zJ;var z$={parseRules:zX,mergeRules:zG,validateRules:zK,isEnabled:zH,getLoadedRules:zz},zY={};let{isEnabled:zQ,mergeRules:zZ}=z$,{isArray:z0}=Array,z1=e=>z0(e)?e:["on",e];zY.filterEnabledPlugins=({plugins:e,cookedRules:t})=>{let r=[];for(let[n,i]of e){if(!zQ(n,t))continue;let[e,a]=z1(i);(function(e,t,r){if("on"===t)return!0;for(let{rule:t,state:n}of r)if(t.includes("/")&&RegExp(`^${t}`).test(e))return n;return!1})(n,e,t)&&r.push(zZ([n,a],t))}return r};var z2={};let z3=e=>"string"==typeof e;z2.check=e=>{if(!e||"object"!=typeof e)throw Error("options should be an object!")},z2.checkRule=e=>{if(!z3(e))throw Error(`☝️ Looks like plugin name type is not 'string', but: '${typeof e}'`)};let{basename:z4}=z_,{parseRules:z5,isEnabled:z8,getLoadedRules:z6}=z$,{parsePluginNames:z9}=ze,{filterEnabledPlugins:z7}=zY,{createAsyncLoader:$e}=H2,{check:$t,checkRule:$r}=z2,$n=$e("plugin");async function $i({items:e,loadedRules:t}){let r=[],n=[];for(let[i,a]of e){if(!z8(i,t))continue;$r(i);let[e]=[i,"putout"],s=a||$n(e);n.push(i.startsWith("import:")?z4(i.replace("import:","")).replace("plugin-",""):i),r.push(s)}let i=await Promise.all(r),a=[];for(let[e,t]of n.entries()){let r=i[e];zl({plugin:r,rule:t});let{rules:n}=r;if(n){a.push(...function(e,t){let r=[];for(let[n,i]of Object.entries(t))r.push([`${e}/${n}`,i]);return r}(t,n));continue}a.push([t,r])}return a}zc.loadPluginsAsync=async e=>{$t(e);let{pluginNames:t=[],rules:r={}}=e,n=z5(r),i=z6(n),a=z9(t);return z7({plugins:await $i({items:a,loadedRules:i}),cookedRules:n})};let{loadPlugin:$a}=HK,{createAsyncLoader:$s}=H2,{parsePluginNames:$o}=ze,$u=e=>{let t=[];for(let r of e){if(zi(r)){t.push([r]);continue}if(za(r)){let[e,n]=r;if(zo(n))continue;if(zs(n)){t.push([e]);continue}t.push([e,n]);continue}}return t},{loadPluginsAsync:$l}=zc,{parseRules:$c,validateRules:$p,isEnabled:$d,getLoadedRules:$f}=z$,{filterEnabledPlugins:$h}=zY,{check:$m,checkRule:$y}=z2,{isArray:$v}=Array;HG.loadPluginsAsync=$l,HG.loadProcessorsAsync=async(e,t)=>{$m(e);let{processors:r=[]}=e,n=$u(r),i=$s("processor"),a=[];for(let[e,r]of n){if(r){a.push(r);continue}a.push(i(e,t))}return await Promise.all(a)},HG.createAsyncLoader=$s,HG.validateRules=e=>{$m(e);let{pluginNames:t=[],rules:r={}}=e;$p({rules:r,items:$o(t)})},HG.loadPlugins=e=>{$m(e);let{pluginNames:t=[],rules:r={}}=e,n=$c(r),i=$f(n);return $h({plugins:function({items:e,loadedRules:t}){let r=[];for(let[n,i]of e){if(!$d(n,t))continue;$y(n);let e=n.replace("import:@putout/plugin-","").replace("@putout/plugin-",""),[a,s]=[n,"putout"],o=$g(i)||$a({name:a,namespace:s});zl({plugin:o,rule:n});let{rules:u}=o;if(u){r.push(...function(e,t){let r=[];for(let[n,i]of Object.entries(t))r.push([`${e}/${n}`,i]);return r}(e,u));continue}r.push([e,o])}return r}({items:$o(t),loadedRules:i}),cookedRules:n})};let $g=e=>$v(e)?e[1]:e;var $b={},$S={exports:{}},$x=function(e){function t(e){let n,i,a;let s=null;function o(...e){if(!o.enabled)return;let r=Number(new Date),i=r-(n||r);o.diff=i,o.prev=n,o.curr=r,n=r,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,n)=>{if("%%"===r)return"%";a++;let i=t.formatters[n];if("function"==typeof i){let t=e[a];r=i.call(o,t),e.splice(a,1),a--}return r}),t.formatArgs.call(o,e),(o.log||t.log).apply(o,e)}return o.namespace=e,o.useColors=t.useColors(),o.color=t.selectColor(e),o.extend=r,o.destroy=t.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(i!==t.namespaces&&(i=t.namespaces,a=t.enabled(e)),a),set:e=>{s=e}}),"function"==typeof t.init&&t.init(o),o}function r(e,r){let n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function n(e,t){let r=0,n=0,i=-1,a=0;for(;r<e.length;)if(n<t.length&&(t[n]===e[r]||"*"===t[n]))"*"===t[n]?(i=n,a=r):r++,n++;else{if(-1===i)return!1;n=i+1,r=++a}for(;n<t.length&&"*"===t[n];)n++;return n===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){let e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){for(let r of(t.save(e),t.namespaces=e,t.names=[],t.skips=[],("string"==typeof e?e:"").trim().replace(" ",",").split(",").filter(Boolean)))"-"===r[0]?t.skips.push(r.slice(1)):t.names.push(r)},t.enabled=function(e){for(let r of t.skips)if(n(e,r))return!1;for(let r of t.names)if(n(e,r))return!0;return!1},t.humanize=function(){if(ea)return ei;function e(e,t,r,n){return Math.round(e/r)+" "+n+(t>=1.5*r?"s":"")}return ea=1,ei=function(t,r){r=r||{};var n,i,a=typeof t;if("string"===a&&t.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^(-?(?:\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(t){var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*r;case"weeks":case"week":case"w":return 6048e5*r;case"days":case"day":case"d":return 864e5*r;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*r;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*r;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}(t);if("number"===a&&isFinite(t))return r.long?(n=Math.abs(t))>=864e5?e(t,n,864e5,"day"):n>=36e5?e(t,n,36e5,"hour"):n>=6e4?e(t,n,6e4,"minute"):n>=1e3?e(t,n,1e3,"second"):t+" ms":(i=Math.abs(t))>=864e5?Math.round(t/864e5)+"d":i>=36e5?Math.round(t/36e5)+"h":i>=6e4?Math.round(t/6e4)+"m":i>=1e3?Math.round(t/1e3)+"s":t+"ms";throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}}(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(r=>{t[r]=e[r]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t)|0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t};!function(e,t){let r;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;let r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))}),t.splice(i,0,r)},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!==eV&&"env"in eV&&(e=eV.env.DEBUG),e},t.useColors=function(){let e;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&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(r=!1,()=>{r||(r=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=$x(t);let{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}($S,$S.exports);var $T=$S.exports;$T.default;let $E=$T("putout:runner:fix"),{enabled:$_}=$E,{stringify:$P}=JSON,$A=e=>"function"==typeof e,$k=e=>e.path||e,$C=({path:e,pathOptions:t,options:r})=>t?[e,t,{options:r}]:[e,{options:r}],$w=(e,{path:t,pathOptions:r,position:n,options:i})=>{let[a]=HA(e,...$C({path:t,pathOptions:r,options:i})),{scope:s}=t.path||t;if(!a&&s&&s.getProgramParent().crawl(),a)throw a.loc=a.loc||n,a};var $I=(e,t,{path:r,pathOptions:n,rule:i,position:a,options:s})=>{e&&($_&&$E(`fix: ${i}`,a,$k(r).toString()),function(e,t){if(!$A(t))throw Error(`☝️ Looks like 'fix' is not a 'function' but '${typeof t}' with value: '${$P(t)}'. More on writing 🐊Putout Plugins: https://git.io/JqcMn`)}(0,t),$w(t,{path:r,pathOptions:n,position:a,options:s}))},$N={};let $O=e=>e.path||e[0]||e;$N.getPath=$O,$N.getPosition=(e,t)=>{let r=$O(e);(function(e){if(!e.node)throw Error(`☝️ Looks like 'push' called without a 'path' argument.`)})(r);let{node:n}=r,{loc:i}=n;if(!i)return{line:0,column:0};let{line:a,column:s}=n.loc.start;return{line:t?a+1:a,column:s}};let{isArray:$D}=Array,$L=e=>$D(e)?e:[e];var $M=e=>e?$L(e):[],$F={};let $B=e=>"function"==typeof e,{stringify:$R}=JSON;$F.validate=(e,t)=>{if(!$B(t))throw Error(`☝️ Looks like '${e}' is not a 'function' but '${typeof t}' with value: '${$R(t)}'. More on using Includer: https://git.io/JqcMn`)};var $j={};let{values:$U,entries:$V,assign:$W}=Object,$q=e=>Array.from(e),$J=e=>e.node,$X=e=>$q(e).filter($J),$G=e=>e;function $K({set:e,get:t}){return (r={})=>{let n=(...n)=>{if(!n.length)return t(r);let[i,a]=n;if(1===n.length)return r[i];e(r,i,a)};return n.clear=()=>{r={}},n.entries=()=>$V(r),n}}function $H(e=$G){return (t=new Set)=>{let r=(...r)=>{if(!r.length)return e($q(t));let[n]=r;t.add(n)};return r.clear=()=>{let r=t;return t=new Set,e($q(r))},r}}$j.listStore=$H(),$j.pathStore=$H($X),$j.mapStore=$K({get:e=>$U(e),set(e,t,r){e[t]=r}}),$j.upStore=$K({get:e=>$U(e),set(e,t,r){e[t]=e[t]||{},$W(e[t],r)}}),$j.upListStore=$K({get:e=>$U(e).map($X),set(e,t,r){e[t]=e[t]||new Set,e[t].add(r)}});let{traverse:$z}=r5,{generate:$$}=Xw,{getPosition:$Y}=$N,{validate:$Q}=$F,{listStore:$Z,mapStore:$0,upStore:$1,upListStore:$2,pathStore:$3}=$j,$4=e=>!e.parent,{merge:$5}=$z.visitors,{assign:$8}=Object,$6=(e,t,r)=>{let n=[];return t[e]&&($Q(e,t[e]),n.push(...$M(t[e]()))),r[e]&&n.push(...$M(r[e])),n};var $9=(e,{fix:t,shebang:r,template:n})=>{let i=[],a={};for(let{rule:s,plugin:o,msg:u,options:l}of e){let{push:e,pull:c,store:p,upstore:d,listStore:f,pathStore:h,uplist:m}=function(e,{fix:t,rule:r,shebang:n,msg:i,options:a}){let s=$0(),o=$Z(),u=$1(),l=$Z(),c=$2(),p=$3();return{push:(s,o)=>{let u=$Y(s,n);l({message:i||e.report(s,o),position:u}),$I(t,e.fix,{path:s,pathOptions:o,rule:r,position:u,options:a})},pull:()=>(s.clear(),o.clear(),u.clear(),c.clear(),p.clear(),l.clear()),store:s,listStore:o,upstore:u,uplist:c,pathStore:p}}(o,{fix:t,rule:s,shebang:r,msg:u,options:l});a[s]=c;let y=o.traverse({push:e,store:p,listStore:f,pathStore:h,upstore:d,uplist:m,generate:$$,options:l});if(!y)throw Error(`☝️ Visitors cannot be empty in "${s}"`);$8(l,{include:$6("include",o,l),exclude:$6("exclude",o,l)}),i.push(...n({rule:s,visitor:y,options:l}))}return{entries:Object.entries(a),visitor:{shouldSkip:$4,...$5(i)}}};let{traverse:$7,types:Ye}=r5,{generate:Yt}=Xw,{merge:Yr}=$7.visitors,Yn=$T("putout:runner:include"),{validate:Yi}=$F,Ya=()=>[],Ys=()=>!0,Yo=({rule:e,filter:t,push:r,options:n})=>i=>{Yn(e),t(i,{options:n})&&r(i)},Yu=(e,t,r)=>({push:n,options:i})=>{let a={},s=Yo({rule:r,filter:t,push:n,options:i});for(let t of e)a[t]=s;return a};var Yl={exports:{}},Yc={},Yp={};let Yd=e=>!Object.keys(e).length,Yf=e=>/__proto__|prototype/.test(e);var Yh={};let{template:Ym}=Xw,{types:Yy}=r5,{isBlockStatement:Yv,isBooleanLiteral:Yg,isIdentifier:Yb,isLiteral:YS,isTemplateElement:Yx,isFunction:YT,isImportDefaultSpecifier:YE,isExportSpecifier:Y_,isRegExpLiteral:YP,isJSXText:YA,isJSXIdentifier:Yk,isJSXAttribute:YC,isTSTypeReference:Yw,isTSTypeParameterDeclaration:YI}=Yy,YN=e=>"string"==typeof e,YO="__object",YD="__array",YL="__args",YM="__type_params",YF="__imports",YB="__exports",YR="__body",Yj="__jsx_children",YU="__jsx_attributes",YV="__identifier",YW="__bool",Yq=/^__[a-z]$/,YJ=/__args__[a-z]$/,YX=/^__identifier__[a-z]$/,YG=/^__bool__[a-z]$/,YK=[YO,YD,YL,YM,YW,Yj,YU,YF,YB,YR,"__",YV,Yq,YJ,YX,YG];Yh.isTemplate=e=>/[(;={.\s]/.test(e)||!/^[A-Z]/.test(e),Yh.is=(e,t=YK)=>{for(let r of t){if(YN(r)?e===r:r.test(e))return!0}return!1},Yh.isNameStr=e=>Yq.test(e),Yh.isImportsStr=e=>e===YF,Yh.isExportsStr=e=>e===YB,Yh.isArgsStr=e=>e===YL||YJ.test(e),Yh.isTypeParamsStr=e=>e===YM,Yh.isJSXChildrenStr=e=>e===Yj,Yh.isJSXAttributesStr=e=>e===YU,Yh.isObjectStr=e=>e===YO,Yh.isArrayStr=e=>e===YD,Yh.isAnyStr=e=>"__"===e,Yh.isBodyStr=e=>e===YR;let YH=e=>Yb(e,{name:YR}),Yz=e=>!!YH(e)||Yv(e)&&YH(e.body[0].expression),Y$=e=>Yb(e,{name:"__nop"}),YY=e=>Yb(e,{name:YO}),YQ=e=>Yb(e,{name:YD}),YZ=(e,t)=>e.type===t.type,{isArray:Y0}=Array;Yh.isId=(e,t)=>!!Yb(t,{name:YV})&&Yb(e),Yh.isBool=(e,t)=>!!Yb(t,{name:YW})&&Yg(e),Yh.isEqualType=YZ,Yh.isStr=e=>"string"==typeof e,Yh.isAny=e=>!!Yb(e,{name:"__"})||YA(e,{value:"__"}),Yh.isAnyLiteral=(e,t)=>!!YS(t,{value:"__"})&&YZ(e,t),Yh.isArgs=e=>Yb(Y0(e)?e[0]:e,{name:YL});let Y1=e=>{if(!YI(e))return!1;let{params:t}=e,{name:r}=t[0];return Yb(r,{name:YM})};Yh.isEqualTypeParams=(e,t)=>!!(e&&Y1(t))&&YZ(e,t),Yh.isLinkedArgs=e=>{let t=Y0(e)?e[0]:e;return Yb(t)&&YJ.test(t.name)},Yh.isJSXChildren=e=>YA(Y0(e)?e[0]:e,{value:Yj}),Yh.isJSXAttributes=e=>{let t=Y0(e)?e[0]:e;return!!YC(t)&&Yk(t.name,{name:YU})},Yh.isLinkedId=(e,t)=>!!(Yb(t)&&YX.test(t.name))&&Yb(e),Yh.isLinkedBool=(e,t)=>!!(Yb(t)&&YG.test(t.name))&&Yg(e),Yh.isLinkedRegExp=(e,t)=>!!(YP(t)&&Yq.test(t.pattern))&&YP(e),Yh.isPath=e=>!!e.node,Yh.isArray=Y0,Yh.isObject=e=>!(!e||Y0(e))&&"object"==typeof e,Yh.isArrays=(e,t)=>!!(Y0(e)&&Y0(t))&&e.length===t.length,Yh.isImports=e=>{let t=Y0(e)?e[0]:e;return!!YE(t)&&Yb(t.local,{name:YF})},Yh.isExports=e=>{let t=Y0(e)?e[0]:e;return!!Y_(t)&&Yb(t.local,{name:YB})};let Y2="ObjectPattern|ObjectExpression",Y3="ArrayPattern|ArrayExpression";Yh.isEqualAnyArray=(e,t)=>{if(!YQ(t))return!1;let{type:r}=e;return Y3.includes(r)},Yh.isEqualAnyObject=(e,t)=>{if(!YY(t))return!1;let{type:r}=e;return Y2.includes(r)},Yh.isEqualBody=(e,t)=>!!(e&&YH(t))&&"BlockStatement"===e.type,Yh.isEqualFunctionDeclarationBody=(e,t)=>!!(e&&Yz(t))&&"BlockStatement"===e.type,Yh.isEqualNop=(e,t)=>{if(!Y$(t)||!YT(e))return!1;let{body:r}=e;return!!Yv(r)&&!r.body.length},Yh.isLinkedNode=e=>!!(Yb(e)&&Yq.test(e.name)||YS(e)&&Yq.test(e.value)||YA(e)&&Yq.test(e.value)||Yk(e)&&Yq.test(e.name)||Yx(e)&&Yq.test(e.value.raw))||Yw(e)&&Yq.test(e.typeName.name),Yh.parseTemplate=(e,{program:t}={})=>{let r=(t?Ym.program.ast:Ym.ast)(e)||Ym.ast.fresh(e);if(e===YO)return[r,Y2];if(e===YD)return[r,Y3];let{type:n}=r;return[r,n]},Yh.isInsideTypeReference=e=>e.isIdentifier()&&e.parentPath?.isTSTypeReference();let Y4=(e,t,r)=>{if(r||(r=t,t="."),function(e,t){if("string"!=typeof e)throw Error("selector should be string!");if("object"!=typeof t)throw Error("obj should be object!")}(e,r),!e)return r;if(Yd(r))return;let n=e.split(t);return n.some((e,i)=>{let a=n.slice(i).join(t);return void 0!==r[a]?(r=r[a],!0):r[e]?!(r=r[e]):(r=void 0,!0)}),r},Y5=(e,t,r,n)=>{n||(n=r||{},r=".");let i=n;!function(e){if("string"!=typeof e)throw Error("selector should be string!")}(e);let a=e.split(r);for(let e=0;e<a.length;e++){let r=a[e];Yf(r)||(e===a.length-1?n[r]=t:n[r]||(n[r]={}),n=n[r])}return i},{traverse:Y8,types:Y6}=r5,{template:Y9}=Xw,{replaceWith:Y7,extract:Qe}=L9,{is:Qt,isArgsStr:Qr,isTypeParamsStr:Qn,isJSXChildrenStr:Qi,isJSXAttributesStr:Qa,isImportsStr:Qs,isExportsStr:Qo,isInsideTypeReference:Qu,isBodyStr:Ql}=Yh,{isIdentifier:Qc,isStatement:Qp,isJSXElement:Qd,isJSXAttribute:Qf,isStringLiteral:Qh,isTemplateLiteral:Qm,TemplateElement:Qy}=Y6,{extractExpression:Qv}=Y9,{entries:Qg}=Object,Qb=e=>"number"==typeof e,QS=e=>"string"==typeof e,Qx=e=>e.node||e,{stringify:QT}=JSON,QE=/\.body\.0(\.key)?$/;function Q_(e){if(Qc(e)&&Qt(e.name))return{[e.name]:[""]};let t={};return Y8(e,{noScope:!0,"Identifier|JSXIdentifier|BooleanLiteral|StringLiteral|TemplateElement|RegExpLiteral|JSXText|JSXAttribute|TSTypeReference|TSTypeParameter"(e){if(Qu(e))return;let{node:r}=e;if(Qf(e.parentPath)&&e.parentPath.node.name===r)return;let n=[],i=Qe(r);Qt(i)&&(e.find(({key:e,listKey:t})=>{if(Qb(e)){n.unshift(`${t}.${e}`);return}n.unshift(e)}),t[i]=t[i]||[],t[i].push(n.join(".")))}}),t}function QP({waysFrom:e,node:t}){let r={};for(let[n,i]of Qg(e))for(let e of i)Qs(n)||Qo(n)?e=e.replace(/\.0.local$/,""):(Qr(n)||Qi(n)||Qa(n)||Qn(n))&&(e=e.replace(/\.0$/,"")),Qd(t)||(e=e.replace(/\.expression$/,"")),Ql(n)&&(e=e.replace(QE,"")),r[n]=r[n]||Qv(Y4(e,t));return r}Yp.getTemplateValues=(e,t)=>{if(!QS(t))throw Error(`☝️ Looks like argument 'template' of 'getTemplateValues(node, template)': is not a string, but '${QT(t)}'`);return QP({node:e=Qx(e),waysFrom:Q_(Y9.ast(t))})},Yp.findVarsWays=Q_,Yp.getValues=QP;let QA=e=>e.replace("`","\\`");Yp.setValues=function({waysTo:e,values:t,path:r}){let n=Qv(r.node);for(let[i,a]of Qg(e))for(let e of a){if(!e){Y7(r,t[i]);continue}if((Qs(i)||Qo(i))&&(e=e.replace(/\.0.local$/,"")),(Qr(i)||Qi(i)||Qa(i))&&(e=e.replace(/\.0$/,"")),Qp(t[i])&&(e=e.replace(/\.expression$/,"")),Qh(t[i])&&Qm(n)){let{value:r}=t[i];Y5(e,Qy({raw:QA(r)}),n);continue}Ql(i)&&(e=e.replace(QE,""));let{extra:a}=Y4(e,n);if(a){let e=t[i].extra;t[i].extra={...a,...e}}Y5(e,t[i],n)}};var Qk={},QC={exports:{}};let Qw=$T("putout:compare"),{isArray:QI}=Array,QN=e=>e&&"object"==typeof e;function QO(e){if(QI(e)&&e[0]){let[{type:t,name:r,value:n}]=e;return`${t}: ["${r||n}"]`}if(QN(e)){let{type:t,name:r,value:n}=e;return`${t}: "${r||n}"`}return`${typeof e}: "${e}"`}QC.exports=(e,t)=>{if(!Qw.enabled)return;let r=QO(e),n=QO(t);return Qw(`${r} = ${n}`)},QC.exports._parseValue=QO;var QD=QC.exports,QL={exports:{}};let{types:QM}=r5,{isIdentifier:QF,isLiteral:QB,isStringLiteral:QR,isTemplateElement:Qj,isTSTypeReference:QU,isJSXText:QV,isJSXIdentifier:QW}=QM,Qq=e=>{let{name:t,value:r}=e=e[0]||e;if(QF(e)||QW(e))return t;if(QB(e))return r;if(Qj(e))return e.value.cooked;if(QU(e))return e.typeName.name;if(QV(e))return e.value;throw Error(`☝️ Looks like type of node '${e.type}' not supported by 'compare -> link -> parseName()'`)};QL.exports=({add:e,value:t,nodeValue:r,templateStore:n})=>{let i=Qq(t);return(!QR(t)||!!QR(r))&&(n[i]?!!(QF(n[i])&&QU(r))||(e(n[i],r,{plain:!0}),!0):(n[i]=r,!0))},QL.exports._parseName=Qq;var QJ=QL.exports,QX={},QG={};let{is:QK}=Yh,QH=e=>"object"!=typeof e||null===e;QG.comparePrimitives=(e,t)=>QH(t)&&!QK(t)&&t===e;let{types:Qz}=r5,{isObject:Q$,isArrays:QY}=Yh,{comparePrimitives:QQ}=QG,{isIdentifier:QZ}=Qz;QX.comparePlain=(e,t,{add:r})=>!e&&e===t||!!e&&(!!(QQ(e,t)||QZ(e)&&e.name===t.name)||!!(Q$(t)&&!Array.isArray(t)||QY(e,t))&&r(e,t,{plain:!0}));let{types:Q0}=r5,{isId:Q1,isBool:Q2,isObject:Q3,isArrays:Q4,isAny:Q5,isAnyLiteral:Q8,isArgs:Q6,isEqualTypeParams:Q9,isJSXChildren:Q7,isJSXAttributes:Ze,isLinkedArgs:Zt,isLinkedId:Zr,isLinkedBool:Zn,isImports:Zi,isExports:Za,isEqualAnyObject:Zs,isEqualAnyArray:Zo,isEqualBody:Zu,isEqualFunctionDeclarationBody:Zl,isEqualNop:Zc,isLinkedNode:Zp,isLinkedRegExp:Zd}=Yh,{comparePlain:Zf}=QX,{comparePrimitives:Zh}=QG,{isClassBody:Zm,isBlock:Zy,isJSXText:Zv,isTemplateElement:Zg}=Q0,Zb=e=>(t,r)=>e(r),ZS=[Zh,function(e,t){if(!Zg(e)||!Zg(t))return!1;let r=e.value.raw===t.value.raw,n=e.value.cooked===t.value.cooked,i=e.tail===t.tail;return r&&n&&i},function(e,t){return!!(Zv(e)&&Zv(t))&&/^\s+$/.test(t.value)&&/^\s+$/.test(e.value)},function(e,t){return"__"===t},Zb(Zm),Zb(e=>Zy(e)&&!e.body.length),Zb(Q5),Q1,Q2,Zo,Zs,Zu,Zl,Zc,Q9,Zd,function(e,t,{add:r,templateStore:n}){return!!(e&&(Zp(t)||Zt(t)||Zr(e,t)||Zn(e,t)))&&QJ({add:r,value:t,nodeValue:e,templateStore:n})},Q8,Zb(Zi),Zb(Za),Zb(Q6),Zb(Q7),Zb(Ze),function(e,t,{add:r}){let n=Q3(t);return n&&r(e,t),n},function(e,t,{add:r}){let n=Q4(e,t);return n&&r(e,t),n}];Qk.runComparators=(e,t,{add:r,templateStore:n,plain:i})=>{let a=-1,s=ZS.length;if(QD(t,e),i)return Zf(e,t,{add:r});for(;++a<s;)if((0,ZS[a])(e,t,{add:r,templateStore:n}))return!0;return!1};var Zx={};let{types:ZT}=r5,{isEqualBody:ZE,isEqualAnyObject:Z_,isEqualAnyArray:ZP,isLinkedNode:ZA,isLinkedId:Zk,isLinkedRegExp:ZC,isEqualNop:Zw}=Yh,{isIdentifier:ZI,isStringLiteral:ZN}=ZT,ZO=[Z_,ZP,Zw,function(e,t){return ZI(e)&&ZA(t)},function(e,t){return ZN(e)&&ZA(t)},Zk,ZC,ZE];Zx.runTopLevelComparators=(e,t)=>{let r=-1,n=ZO.length;for(;++r<n;)if((0,ZO[r])(e,t))return!0;return!1};let{template:ZD}=Xw,{findVarsWays:ZL,getValues:ZM,setValues:ZF,getTemplateValues:ZB}=Yp,{runComparators:ZR}=Qk,{runTopLevelComparators:Zj}=Zx,{isStr:ZU,isPath:ZV,isEqualType:ZW,isTemplate:Zq,parseTemplate:ZJ}=Yh,{extractExpression:ZX}=ZD,ZG=e=>e,{keys:ZK}=Object,{isArray:ZH}=Array,Zz=()=>{},Z$=e=>ZH(e)&&!e.length,ZY=e=>t=>t.type===e,ZQ=e=>(t,r,n={})=>e.push([t,r,n]),ZZ=e=>ZH(e)?e:[e],Z0=(e,t)=>{let r=e.findParent(ZY(t));return r?r.node:null};function Z1(e){return ZU(e)?ZD.ast(e):e.node?e.node:e}function Z2(e,t,r={},n=Zz){let{findUp:i=!0}=r;if(!e&&!t)return!0;if(!e||!t)return!1;let a=ZG(ZX(Z1(e))),s=ZX(Z1(t));if(n(a,s),a.type===t||Zj(a,s))return!0;if(i&&ZV(e)&&!ZW(a,s)){let{type:t}=s;return Z4(Z0(e,t),s)}return Z4(a,s)}Yc.compare=Z2,Yc.parseTemplate=ZJ,Yc.isTemplate=Zq,Yc.findVarsWays=ZL,Yc.getValues=ZM,Yc.setValues=ZF,Yc.getTemplateValues=ZB,Yc.compareAny=(e,t,r)=>{for(let n of t=ZZ(t))if(Z2(e,n,r))return!0;return!1},Yc.compareAll=(e,t,r)=>{for(let n of t=ZZ(t))if(!Z2(e,n,r))return!1;return!0};let Z3=["loc","start","end","directives","extra","raw","comments","leadingComments","innerComments","parent","phase","range","trailingComments","importKind","exportKind"];function Z4(e,t){let r=[e,t],n=[r],i={},a=ZQ(n);for(;r=n.pop();){let[e,t,{plain:n}={}]=r;if(!e||Z$(e)&&!Z$(t))return!1;for(let r of ZK(t))if(!Z3.includes(r)&&!ZR(ZX(e[r]),ZX(t[r]),{add:a,templateStore:i,plain:n}))return!1}return!0}var Z5={exports:{}};let Z8=e=>(...t)=>(...r)=>e(...t,...r),{entries:Z6}=Object,{isArray:Z9}=Array,Z7=(e,...t)=>((function(e){if("function"!=typeof e)throw Error("fn should be a function!")})(e),t.length)?Z8(e)(...t):Z8(e),eee=e=>{let t={parentPath:e},r=[];for(;t=t.parentPath;)r.unshift(function(e,t){let{node:r}=e;for(let[e,n]of Z6(t)){if(Z9(n)){let t=n.indexOf(r);if(t>=0)return`${e}.${t}`;continue}if(n===r)return e}}(t,t.parent));return r.join(".")},{types:eet}=r5,{isProgram:eer}=eet,een="__putout_runner_replace",eei=e=>t=>t.node?.[een]?.has(e);function eea(e,t,r){let n=`${e} -> ${t}`,i=`${eee(r)}: ${n}`;return{watermark:n,highWatermark:i}}function ees({path:e,program:t}){e.node&&(e.node[een]=e.node[een]||new Set),t.node[een]=t.node[een]||new Set}function eeo({path:e,program:t,watermark:r,highWatermark:n}){ees({path:e,program:t}),e?.node[een].add(r),t.node[een].add(n)}function eeu({path:e,program:t,watermark:r,highWatermark:n}){return!!(e.node?.[een].has(r)||e.findParent(eei(r)))||t.node[een].has(n)}Z5.exports=(e,t,r)=>{let{watermark:n,highWatermark:i}=eea(e,t,r),a={watermark:n,highWatermark:i,program:r.findParent(eer)||r,path:r};return{init:Z7(ees,a),has:Z7(eeu,a),add:Z7(eeo,a)}},Z5.exports.REPLACE_WATERMARK=een,Z5.exports.create=eea,Z5.exports.init=ees,Z5.exports.add=eeo,Z5.exports.has=eeu;var eel=Z5.exports;let{template:eec,print:eep}=Xw,{remove:eed,replaceWith:eef}=L9,{types:eeh}=r5,{compare:eem,findVarsWays:eey,getValues:eev,setValues:eeg}=Yc,eeb=$T("putout:runner:replace"),{isExpression:eeS,isStatement:eex,isExpressionStatement:eeT}=eeh,eeE={printer:["putout",{format:{newline:"",indent:"",splitter:" ",endOfFile:""}}]},ee_=e=>"string"==typeof e,eeP=(e,t)=>{eeb.enabled&&eeb(`${e} -> ${t}
|
14
|
+
`)},{keys:eeA,entries:eek}=Object,{stringify:eeC}=JSON,eew=()=>[],eeI=()=>({}),eeN=e=>()=>eeA(e),eeO=e=>"object"==typeof e;Yl.exports=({rule:e,plugin:t,msg:r,options:n})=>{let{report:i,exclude:a=eew,replace:s,filter:o=eeF(t.match,n)}=t,u=s({options:n}),l=eeM(u),c=eeN(u);return{rule:e,msg:r,options:{...n,exclude:[...a(),...$M(n.exclude)]},plugin:{report:i,fix:l,filter:o,include:c}}},Yl.exports.clearWatermark=e=>{delete e.program[eel.REPLACE_WATERMARK]};let eeD=e=>"function"==typeof e,eeL=(e,t,r)=>{let n=eec.ast(e),i=eel(e,t,r);if(i.init(),i.has()||!eem(r,n,{findUp:!1}))return;let a=eey(n),{node:s}=r,o=eev({waysFrom:a,node:s}),u=function(e,t,r){let n=eeD(e)?e(t,r):e;if(!n)return null;if(eeO(n)&&n.type)return n.__putout_replace_cooked=!0,n;if(!ee_(n))throw Error(`☝️ Looks like you passed 'replace' value with a wrong type. Allowed: 'string', 'node' and 'path'. Received: '${typeof n}' with value '${n}'.`);return eec.ast.fresh(n)}(t,o,r);if(!u)return eeP(e,"''"),eed(r);!function(e,t,r){if(!(!eeS(e)||!eex(t)||eeT(t))&&!(eeT(r)||eeT(r.parentPath)))throw Error(`☝️ Looks like a try to put Statement in place of Expression, use 'match' to filter out such cases: '${eep(e,eeE)} -> ${eep(t,eeE)}'. For code: '${r}'`)}(n,u,r);let l=eey(u),c=eef(r,u);u.__putout_replace_cooked||(eeB(l,a),eeg({waysTo:l,values:o,path:c})),i.add(),r.scope.getBlockParent().crawl(),eeP(e,c)},eeM=e=>t=>{for(let[r,n]of eek(e))eeL(r,n,t)},eeF=(e=eeI,t)=>r=>{for(let[n,i]of eek(e({options:t}))){let e=eec.ast(n);if(!eem(r.node,e))continue;let t=eey(e),{node:a}=r,s=eev({waysFrom:t,node:a});return function(e){if(!eeD(e))throw Error(`☝️ Looks like 'match' property value is not a 'function', but '${typeof e}' with value '${e}'.`)}(i),i(s,r)}return!0},eeB=(e,t)=>{for(let r of eeA(e))if(!t[r])throw Error(`☝️ Looks like template values not linked: ${eeC(eeA(t))} -> ${eeC(eeA(e))}`)};var eeR=Yl.exports,eej={},eeU={};let eeV="__putout_declare_undefined_variables",eeW=e=>e.scope.getProgramParent().path,eeq=(e,t)=>t[e]=t[e]||{};eeU.checkDeclarationForESLint=(e,t)=>{let r=eeW(t);return eeq(eeV,r),r[eeV][e]},eeU.addDeclarationForESLint=(e,t)=>{let r=eeW(t);return eeq(eeV,r),r[eeV][e]=!0},eeU.setModuleType=(e,t)=>{let r=eeW(t);return eeq(eeV,r),r[eeV].__putout_module_type=e,e},eeU.getModuleType=e=>{let t=eeW(e);return eeq(eeV,t),t[eeV].__putout_module_type};let{template:eeJ}=Xw,{isESM:eeX,insertAfter:eeG}=L9,{compare:eeK}=Yc,{addDeclarationForESLint:eeH,checkDeclarationForESLint:eez,getModuleType:ee$,setModuleType:eeY}=eeU,{types:eeQ}=r5,{isImportDeclaration:eeZ,isVariableDeclaration:ee0}=eeQ,{keys:ee1}=Object,ee2=e=>"string"==typeof e,ee3=e=>e.filter(ee0).pop(),ee4=(e,t)=>t.at(-1)===e,ee5=e=>e.node.source.value.includes("."),ee8=e=>e.split(".").shift(),ee6=e=>eeX(e)?"esm":"commonjs",ee9=["TSMethodSignature","TSParameterProperty","TSFunctionType","TSDeclareMethod","TSDeclareFunction","TSTypeAliasDeclaration"];eej.declare=e=>({report:ee7,include:ete,fix:etr(e),filter:ett(e)});let ee7=e=>{let{name:t}=e.node,r=ee8(t);return`Declare '${r}', it referenced but not defined`},ete=()=>["ReferencedIdentifier"],ett=e=>(t,{options:r})=>{var n,i;if(ee9.includes(t.parentPath.type))return!1;let{dismiss:a=[],type:s}=r,o={...e,...r.declarations},u=ee1(o),{scope:l,node:c}=t,{name:p}=c;return!(!u.includes(p)||a.includes(p)||l.hasBinding(p)||eez(p,t))&&eti((n=t,(i=s)?eeY(i,n):ee$(n)||eeY(ee6(n),n)),o[p])},etr=e=>(t,{options:r})=>{let n=ee$(t),i={...e,...r.declarations},{name:a}=t.node,s=eti(n,i[a]),o=t.scope.getProgramParent().path.get("body");(function(e,t){let r=function(e,t){let r=ets(t),n=ee3(t);return ee0(e)&&r||(eeZ(e)||eta(e))&&r?r:ee0(e)&&n&&!ee4(n,t)?n:null}(e,t),[n]=t;ee0(e)&&eeZ(r)||eta(r)?eeG(r,e):ee0(e)?n.insertBefore(e):!r&&etn(n)?eeG(n,e):r||etn(n)?r.isImportDeclaration()&&ee5(r)?r.insertBefore(e):eeG(r,e):n.insertBefore(e)})(eeJ.ast.fresh(s),o),eeH(a,t)};function etn(e){return!!e.isExpressionStatement()&&e.get("expression").isStringLiteral({value:"use strict"})}let eti=(e,t)=>ee2(t)?t:t[e],eta=e=>eeK(e,"const __a = require(__b)"),ets=e=>{let t=[],r=[];for(let n of e)if(n.isImportDeclaration()){if(ee5(n)){r.push(n);continue}t.push(n)}return t.pop()||r.pop()},{declare:eto}=eej,{stringify:etu}=JSON,etl=e=>"function"==typeof e;var etc={},etp={};let etd=ec(),{assign:etf}=Object,eth=()=>{},etm={renameFile:eth,removeFile:eth,createDirectory:eth,readFileContent:()=>"",writeFileContent:eth,copyFile:eth},ety=etf({},etm);function etv(e){etf(ety,e)}function etg(){etf(ety,etm)}etp.renameFile=(e,t)=>{ety.renameFile(e,t)},etp.removeFile=e=>{ety.removeFile(e)},etp.copyFile=(e,t)=>{ety.copyFile(e,t)},etp.createDirectory=e=>{ety.createDirectory(e)},etp.readFileContent=e=>ety.readFileContent(e),etp.writeFileContent=(e,t)=>{ety.writeFileContent(e,t)},etp.init=etv,etp.pause=()=>{etd(ety),etg()},etp.start=()=>{etv(etd())},etp.deinit=etg;let{join:etb,basename:etS}=z_,{types:etx}=r5,{setLiteralValue:etT,getProperty:etE,traverseProperties:et_}=L9,etP=e=>"string"==typeof e,{isArray:etA}=Array,etk=e=>etA(e)?e:[e],etC=e=>{let[t,r]=HA(btoa,e);return t?btoa(encodeURI(e)):r},etw=e=>{let[t,r]=HA(atob,e);return t?e:decodeURI(r)},{ObjectExpression:etI,ArrayExpression:etN,StringLiteral:etO,ObjectProperty:etD,isProgram:etL}=etx,etM=e=>{let t=e.replace(/\./g,"\\.").replace(/\*/g,".*").replace("?",".?");return RegExp(`^${t}$`)};function etF(e,t,r=[]){!function(e){if(!etP(e)&&!etA(e))throw Error(`☝️ Looks like you forget to pass the 'name' of a file to 'findFile(filePath: Path|FilePath, name: string | string[]): FilePath'`)}(t);let n=[],i=etk(t);for(let t of et_(e,"filename")){let{value:e}=t.node.value,a=etS(e);for(let s of i)if(e===s||etM(s).test(a)){if(function(e,t,r){for(let n of r)if(e===n||etM(n).test(t))return!0;return!1}(s,a,r))continue;n.push(t.parentPath)}}return n}function etB(e){return etE(e,"filename").get("value")}function etR(e){let{value:t}=etB(e).node;return t}function etj(e){return etE(e,"type").node.value.value}function etU(e){let t=etE(e,"content");return[!!t,t?.node.value.value]}function etV(e,t){let r=etj(e);if("directory"!==r){let t=etR(e);throw Error(`☝️ Looks like '${t}' is not a directory, but: '${r}'. Rename to '${t}/'`)}let[n]=etF(etE(e,"files"),etb(etR(e),etS(t)));n&&n.remove()}etc.getParentDirectory=e=>{let{parentPath:t}=e.parentPath.parentPath;return etL(t)?null:t},etc.findFile=etF,etc.getFileType=etj,etc.getFileContent=etU,etc.getFilename=etR,etc.renameFile=(e,t)=>{let r=etR(e),n=etB(e),i=r.split("/").pop(),a=t.split("/").pop(),s=r.replace(i,a);etT(n,s),etp.renameFile(r,s)},etc.removeFile=e=>{let t=etR(e);e.remove(),etp.removeFile(t)},etc.moveFile=(e,t)=>{if(e===t)return;let r=etR(t),n=etR(e),i=etE(t,"files"),a=etE(e,"filename"),s=etb(r,n.split("/").pop());etV(t,s),etT(a.get("value"),s),i.node.value.elements.push(e.node),e.remove(),etp.renameFile(n,s)},etc.copyFile=(e,t)=>{let r=etR(t),n=etR(e),i=etb(r,n.split("/").pop()),[a,s]=etU(e),o=etI([etW("file"),etJ(i),a&&etX(s)].filter(Boolean));etV(t,i),etG(t).node.value.elements.push(o),etp.copyFile(n,i)};let etW=e=>etD(etO("type"),etO(e));etc.createTypeProperty=etW;let etq=e=>etD(etO("files"),etN(e));etc.createFilesProperty=etq;let etJ=e=>etD(etO("filename"),etO(e));etc.createFilenameProperty=etJ;let etX=e=>etD(etO("content"),etO(e));function etG(e){return etE(e,"files")}function etK(e,t){if("directory"===etj(e))return;let r=etR(e);etp.writeFileContent(r,t);let n=etE(e,"content");if(n){etT(n.node.value,etC(t));return}let i=etX(etC(t));e.node.properties.push(i)}etc.createContentProperty=etX,etc.createFile=(e,t,r)=>{etV(e,t);let n=etG(e),i=etb(etR(e),t),a=[etW("file"),etJ(i),r&&etX(r)].filter(Boolean);n.node.value.elements.push(etI(a));let s=n.get("value.elements").at(-1);return etP(r)&&etK(s,r),s},etc.createDirectory=(e,t)=>{let r=etG(e),n=etb(etR(e),t),i=etW("directory"),a=etq([]),s=etJ(n);return r.node.value.elements.push(etI([i,s,a])),etp.createDirectory(n),r.get("value.elements").at(-1)},etc.readFileContent=e=>{if("directory"===etj(e))return"";let[t,r]=etU(e);if(t)return etw(r);let n=etR(e),i=etp.readFileContent(n),a=etX(etC(i));return e.node.properties.push(a),i},etc.writeFileContent=etK,etc.init=etp.init,etc.deinit=etp.deinit,etc.pause=etp.pause,etc.start=etp.start;var etH={};let{types:etz}=r5,{basename:et$,dirname:etY}=z_,{createDirectory:etQ,getFileType:etZ,getFilename:et0,findFile:et1}=etc,{__filesystem_name:et2}=Xi,{replaceWith:et3,getProperty:et4}=L9,{ObjectExpression:et5,ArrayExpression:et8,StringLiteral:et6,ObjectProperty:et9,isArrayExpression:et7,isStringLiteral:ere,isTemplateLiteral:ert}=etz;etH.report=()=>"Convert Simple Filesystem to Filesystem";let err=e=>e.endsWith("/"),ern=e=>{let t=err(e)?"directory":"file";return et9(et6("type"),et6(t))},eri=e=>et9(et6("filename"),et6(e)),era=e=>err(e)?et9(et6("files"),et8([])):null,ers=e=>et9(et6("content"),et6(e));etH.fix=e=>{let t=et8([]);for(let r of e.get("elements")){if(et7(r)){let[e,n]=r.node.elements,{value:i}=e,a=function(e,t){if(ere(e))return e.value;if(ert(e))return btoa(e.quasis[0].value.raw);throw Error(`☝️ Looks like wrong content type: '${e.type}' from file: '${t}'`)}(n,r);t.elements.push(et5([ern(i),eri(i),ers(a)]));continue}if(ere(r)){let{value:e}=r.node;t.elements.push(et5([ern(e),eri(ero(e)),era(e)].filter(Boolean)));continue}throw Error(`☝️ Looks like file '${r}' has wrong type: '${r.type}' expected: 'string | array'`)}(function(e,t){let[r,...n]=et1(t,"*");for(let e of n){let t=et0(e);(function(e){if(!e.includes("/"))throw Error(`☝️ Looks like directory path is missing: '${e}'`)})(t);let n=etZ(e),i=etY(t),a=et$(t),[s]=et1(r,i);if(!s||"directory"!==etZ(s))throw Error(`☝️ Looks like directory '${i}/' is missing`);if("directory"===n){etQ(s,a);continue}et4(s,"files").node.value.elements.push(e.node)}et3(e,r)})(e,t)},etH.traverse=({push:e})=>({[`${et2}(__array)`]:t=>{e(t.get("arguments.0"))}});let ero=e=>"/"===e?e:e.endsWith("/")?e.slice(0,-1):e;var eru={};let{types:erl}=r5,{replaceWith:erc,getProperty:erp}=L9,{__filesystem_name:erd}=Xi,{findFile:erf,getFilename:erh,getFileType:erm}=etc,{StringLiteral:ery,ArrayExpression:erv}=erl,{isArray:erg}=Array,erb=e=>"/"===e?e:`${e}/`;eru.report=()=>"Convert Filesystem to Simple Filesystem",eru.fix=(e,{files:t})=>{let r=[];for(let e of t){let t=erh(e),n=erm(e),i=erp(e,"content"),a=i?.node?.value;if(a){r.push([t,a.value]);continue}if("directory"===n){r.push(erb(t));continue}r.push(t)}let n=[];for(let e of r){if(erg(e)){n.push(erv([ery(e[0]),ery(e[1])]));continue}n.push(ery(e))}erc(e,erv(n))},eru.traverse=({push:e})=>({[`${erd}(__object)`]:t=>{let r=t.get("arguments.0"),n=erf(r,"*");e(r,{files:n})}});let{compare:erS}=Yc,{__filesystem_name:erx}=Xi,{findFile:erT,pause:erE,start:er_}=etc,erP=$T("putout:runner:scanner"),erA=({push:e,rule:t,progress:r})=>(...n)=>{r.push(t),e(...n)},erk=({rule:e,progress:t})=>({i:r,n})=>{++r;let i=`${Math.round(r/n*100)}%`;t.file({i:r,n,percent:i,rule:e})},erC=e=>function*(...t){let r=erT(...t),n=r.length;for(let[t,i]of r.entries())e({i:t,n}),yield i},erw=({scan:e,rule:t,progress:r})=>({push:n,options:i})=>({[`${erx}(__)`](a){erP(t),r.start(t);let s=a.get("arguments.0"),o=ec(!1),u=erk({rule:t,progress:r}),l=erC(u);erN(etH,{path:a,rootPath:s,isSimple:o}),e(s,{push:erA({push:n,rule:t,progress:r}),progress:u,trackFile:l,options:i}),erN(eru,{condition:o(),path:a,rootPath:s,isSimple:o}),r.end(t)}}),erI=({fix:e,isSimple:t})=>(...r)=>(t(!0),e(...r));function erN(e,{path:t,isSimple:r,condition:n=!0}){let{traverse:i,fix:a}=e;if(!n)return;let[s,o]=function(e){let t=e[`${erx}(__object)`],r=e[`${erx}(__array)`];return t?[t,`${erx}(__object)`]:[r,`${erx}(__array)`]}(i({push:erI({fix:a,isSimple:r})}));erS(t,o)&&(erE(),s(t),er_())}var erO={exports:{}};let{compareAny:erD,compareAll:erL,parseTemplate:erM,isTemplate:erF}=Yc,erB=$T("putout:runner:template"),{entries:erR}=Object,erj=e=>"function"==typeof e,erU=(e,t)=>{erB.enabled&&erB(e,t.toString())},{stringify:erV}=JSON;erO.exports._log=erU;let erW=({rule:e,tmpl:t,fn:r,nodesExclude:n})=>erj(r)&&n.length?{[t]:erq({rule:e,fn:r,nodesExclude:n,nodesInclude:[]})}:{[t]:r};function erq({rule:e,nodesInclude:t,nodesExclude:r,fn:n}){return i=>{if(erU(e,i),r.length&&erD(i,r)||t.length&&!erL(i,t))return;if(!erj(n))throw Error(`☝️ Looks like provided visitor is not a function: ${erV(n)}. More on using Traverser: https://git.io/JqcMn`);let[a]=HA(n,i);if(a)throw a.rule=e,a}}erO.exports=({rule:e,visitor:t,options:r})=>{let n=[],i=$M(r.exclude),a=$M(r.include);for(let[r,s]of erR(t)){if(!r)continue;if(!erF(r)){n.push(erW({rule:e,tmpl:r,fn:s,nodesExclude:i}));continue}let[t,o]=erM(r),u=erq({rule:e,fn:s,nodesExclude:i,nodesInclude:[t,...a]});n.push({[o]:u})}return n},erO.exports._log=erU;var erJ=erO.exports,erX={};let{EventEmitter:erG}=e;erX.createProgress=()=>{let e=0,t=0,r=new erG;return r.reset=()=>{t=0,e=0},r.file=({i:e,n:t,percent:n,rule:i})=>{r.emit("file",{i:e,n:t,rule:i,percent:n})},r.inc=()=>{++e},r.start=n=>{++t,r.emit("start",{pluginsIndex:t,pluginsCount:e,rule:n})},r.push=n=>{r.emit("push",{pluginsIndex:t,pluginsCount:e,rule:n})},r.end=n=>{r.emit("end",{rule:n,pluginsIndex:t,pluginsCount:e})},r};let{traverse:erK}=r5,erH=$T("putout:runner:find"),erz=function({rule:e,find:t,ast:r,options:n,template:i}){let a=[],s=t(r,{traverse:function({rule:e,options:t,template:r}){return(n,i)=>$7(n,Yr(r({rule:e,visitor:i,options:t})))}({rule:e,options:n,template:i}),generate:Yt,types:Ye,push:e=>{a.push(e)},options:n});return[...a,...s||[]]},er$=({rule:e,plugin:t,msg:r,options:n})=>{let{fix:i,report:a,include:s,exclude:o=Ya,filter:u=Ys}=t;Yi("include",s),Yi("report",a);let l=Yu(s(),u,e);return{rule:e,msg:r,options:{...n,exclude:[...o(),...$M(n.exclude)]},plugin:{report:a,fix:i,traverse:l}}},erY=({rule:e,plugin:t,msg:r,options:n})=>((function(e){if(!etl(e))throw Error(`☝️ Looks like 'declare' property value is not a 'function', but '${typeof e}' with value '${etu(e)}'.`)})(t.declare),{rule:e,plugin:eto(t.declare()),msg:r,options:n}),erQ=({rule:e,plugin:t,msg:r,options:n},{progress:i})=>{let{scan:a,report:s,fix:o}=t;i.inc();let u=erw({scan:a,rule:e,progress:i});return{rule:e,msg:r,options:n,plugin:{report:s,fix:o,traverse:u}}},{createProgress:erZ}=erX,{getPath:er0,getPosition:er1}=$N,er2=e=>e?.removed;$b.runPlugins=({ast:e,shebang:t,fix:r,fixCount:n,plugins:i,progress:a=erZ()})=>{let s=[],o=Ho($9),{pluginsFind:u,pluginsTraverse:l}=function(e,{progress:t}){let r=[],n=[];for(let i of e){let{plugin:e}=i;if(e.find){r.push(i);continue}if(e.traverse){n.push(i);continue}if(e.replace){n.push(er$(eeR(i)));continue}if(e.declare){n.push(er$(erY(i)));continue}if(e.include){n.push(er$(i));continue}if(e.scan){n.push(erQ(i,{progress:t}));continue}}return{pluginsFind:r,pluginsTraverse:n}}(i,{progress:a});for(let i=0;i<n&&(s=function({ast:e,fix:t,shebang:r,pluginsFind:n,pluginsTraverse:i,template:a,merge:s}){return[...function({ast:e,fix:t,shebang:r,template:n,pluginsFind:i}){let a=[];for(let{rule:s,plugin:o,msg:u,options:l}of i){erH(`find: ${s}`);let{report:i,find:c}=o,p=erz({rule:s,find:c,ast:e,options:l,fix:t,shebang:r,template:n});if(p.length)for(let e of p){let n=u||i(e),{parentPath:c}=er0(e),p=er1(e,r);a.push({rule:s,message:n,position:p}),er2(c)||$I(t,o.fix,{path:e,rule:s,position:p,options:l})}}return a}({ast:e,fix:t,shebang:r,template:a,pluginsFind:n}),...function({ast:e,fix:t,shebang:r,template:n,pluginsTraverse:i,merge:a}){let{entries:s,visitor:o}=a(i,{fix:t,shebang:r,template:n});erK(e,o);let u=[];for(let[e,t]of s)for(let{message:r,position:n}of t())u.push({rule:e,message:r,position:n});return u}({ast:e,fix:t,shebang:r,template:a,pluginsTraverse:i,merge:s})]}({ast:e,fix:r,shebang:t,pluginsFind:u,pluginsTraverse:l,merge:o,template:erJ}),a.reset(),r&&s.length);i++)eeR.clearWatermark(e);return s},$b.getPosition=er1;let{createProgress:er3}=erX;HX.defaultOptions=(e={})=>{let{parser:t="babel",printer:r=e.printer||"putout",fix:n=!0,fixCount:i=2,loadPlugins:a=HG.loadPlugins,loadPluginsAsync:s=HG.loadPluginsAsync,runPlugins:o=$b.runPlugins,progress:u=er3()}=e;return{...e,parser:t,printer:r,fix:n,fixCount:i,loadPlugins:a,loadPluginsAsync:s,runPlugins:o,progress:u}};var er4={};let{validateRules:er5}=HG,{defaultOptions:er8}=HX,{cutShebang:er6}=Hq,er9=(e,t="parser")=>{let{line:r,column:n}=e.loc||{line:1,column:1};return[{rule:e.rule?`${e.rule} (parser)`:t,message:e.message.replace(/\s\(\d:\d+\)/,""),position:{line:r,column:n}}]},er7=e=>e?er9(e,"loader"):[];er4.transform=(e,t,r)=>{let{plugins:n,cache:i,rules:a,fix:s,fixCount:o,loadPlugins:u,runPlugins:l,progress:c}=r=er8(r),[,p]=er6(t),[d]=HA(er5,{rules:a,pluginNames:n}),f=l({ast:e,shebang:p,fix:s,fixCount:o,plugins:u({pluginNames:n,cache:i,rules:a}),progress:c});return[...er7(d),...f]},er4.transformAsync=async(e,t,r)=>{let{plugins:n,cache:i,rules:a,fix:s,fixCount:o,loadPluginsAsync:u,runPlugins:l,progress:c}=r=er8(r),[,p]=er6(t),[d]=HA(er5,{rules:a,pluginNames:n}),f=l({ast:e,shebang:p,fix:s,fixCount:o,plugins:await u({pluginNames:n,cache:i,rules:a}),progress:c});return[...er7(d),...f]};var ene={};let{transform:ent,transformAsync:enr}=er4;ene.findPlaces=(e,t,r)=>ent(e,t,{...r,fix:!1}),ene.findPlacesAsync=async(e,t,r)=>await enr(e,t,{...r,fix:!1});let{isArray:enn}=Array,eni=()=>{};var ena={};let{types:ens,traverse:eno}=r5,{compare:enu,parseTemplate:enl,isTemplate:enc,getTemplateValues:enp}=Yc,{isFile:end,isProgram:enf}=ens,{merge:enh}=eno.visitors,{entries:enm}=Object;ena.traverse=enb;let eny=e=>!!e.node,env=e=>{if(eny(e))return e.traverse.bind(e);let t=!end(e)&&!enf(e);return r=>{eno(e,{noScope:t,...r})}},eng=([e])=>e;function enb(e,t){let r=env(e),n=[],i=enm(t);if(!i.map(eng).find(enc))return r(t);for(let[e,t]of i){if(!enc(e)){n.push({[e]:t});continue}let[r,i]=enl(e),a=enS({fn:t,node:r,tmpl:e});n.push({[i]:a})}r(enh(n))}let enS=({fn:e,node:t,tmpl:r})=>n=>{enu(n,t)&&e(n,enp(n.node,r))};ena.contains=(e,t)=>{let r=!1,n=e=>{r=!0,e.stop()},i={};for(let e of t)i[e]=n;return enb(e,i),r};var enx={_hasUFlag:!1,shouldRun:function(e){return!!e.flags.includes("s")&&(e.flags=e.flags.replace("s",""),this._hasUFlag=e.flags.includes("u"),!0)},Char:function(e){var t=e.node;if("meta"===t.kind&&"."===t.value){var r="\\uFFFF",n="";this._hasUFlag&&(r="\\u{10FFFF}",n="\uDBFF\uDFFF"),e.replace({type:"CharacterClass",expressions:[{type:"ClassRange",from:{type:"Char",value:"\\0",kind:"decimal",symbol:"\0"},to:{type:"Char",value:r,kind:"unicode",symbol:n}}]})}}};enx.default;var enT={_groupNames:{},init:function(){this._groupNames={}},getExtra:function(){return this._groupNames},Group:function(e){var t=e.node;t.name&&(this._groupNames[t.name]=t.number,delete t.name,delete t.nameRaw)},Backreference:function(e){var t=e.node;"name"===t.kind&&(t.kind="number",t.reference=t.number,delete t.referenceRaw)}};enT.default;var enE={RegExp:function(e){var t=e.node;t.flags.includes("x")&&(t.flags=t.flags.replace("x",""))}};function en_(e){return e?enP[e.type](e):""}enE.default;var enP={RegExp:function(e){return"/"+en_(e.body)+"/"+e.flags},Alternative:function(e){return(e.expressions||[]).map(en_).join("")},Disjunction:function(e){return en_(e.left)+"|"+en_(e.right)},Group:function(e){var t=en_(e.expression);return e.capturing?e.name?"(?<"+(e.nameRaw||e.name)+">"+t+")":"("+t+")":"(?:"+t+")"},Backreference:function(e){switch(e.kind){case"number":return"\\"+e.reference;case"name":return"\\k<"+(e.referenceRaw||e.reference)+">";default:throw TypeError("Unknown Backreference kind: "+e.kind)}},Assertion:function(e){switch(e.kind){case"^":case"$":case"\\b":case"\\B":return e.kind;case"Lookahead":var t=en_(e.assertion);if(e.negative)return"(?!"+t+")";return"(?="+t+")";case"Lookbehind":var r=en_(e.assertion);if(e.negative)return"(?<!"+r+")";return"(?<="+r+")";default:throw TypeError("Unknown Assertion kind: "+e.kind)}},CharacterClass:function(e){var t=e.expressions.map(en_).join("");return e.negative?"[^"+t+"]":"["+t+"]"},ClassRange:function(e){return en_(e.from)+"-"+en_(e.to)},Repetition:function(e){return""+en_(e.expression)+en_(e.quantifier)},Quantifier:function(e){var t=void 0,r=e.greedy?"":"?";switch(e.kind){case"+":case"?":case"*":t=e.kind;break;case"Range":t=e.from===e.to?"{"+e.from+"}":e.to?"{"+e.from+","+e.to+"}":"{"+e.from+",}";break;default:throw TypeError("Unknown Quantifier kind: "+e.kind)}return""+t+r},Char:function(e){var t=e.value;switch(e.kind){case"simple":if(e.escaped)return"\\"+t;return t;case"hex":case"unicode":case"oct":case"decimal":case"control":case"meta":return t;default:throw TypeError("Unknown Char kind: "+e.kind)}},UnicodeProperty:function(e){return"\\"+(e.negative?"P":"p")+"{"+(e.shorthand||e.binary?"":e.name+"=")+e.value+"}"}},enA={generate:en_},enk={General_Category:"gc",Script:"sc",Script_Extensions:"scx"},enC=enM(enk),enw={ASCII:"ASCII",ASCII_Hex_Digit:"AHex",Alphabetic:"Alpha",Any:"Any",Assigned:"Assigned",Bidi_Control:"Bidi_C",Bidi_Mirrored:"Bidi_M",Case_Ignorable:"CI",Cased:"Cased",Changes_When_Casefolded:"CWCF",Changes_When_Casemapped:"CWCM",Changes_When_Lowercased:"CWL",Changes_When_NFKC_Casefolded:"CWKCF",Changes_When_Titlecased:"CWT",Changes_When_Uppercased:"CWU",Dash:"Dash",Default_Ignorable_Code_Point:"DI",Deprecated:"Dep",Diacritic:"Dia",Emoji:"Emoji",Emoji_Component:"Emoji_Component",Emoji_Modifier:"Emoji_Modifier",Emoji_Modifier_Base:"Emoji_Modifier_Base",Emoji_Presentation:"Emoji_Presentation",Extended_Pictographic:"Extended_Pictographic",Extender:"Ext",Grapheme_Base:"Gr_Base",Grapheme_Extend:"Gr_Ext",Hex_Digit:"Hex",IDS_Binary_Operator:"IDSB",IDS_Trinary_Operator:"IDST",ID_Continue:"IDC",ID_Start:"IDS",Ideographic:"Ideo",Join_Control:"Join_C",Logical_Order_Exception:"LOE",Lowercase:"Lower",Math:"Math",Noncharacter_Code_Point:"NChar",Pattern_Syntax:"Pat_Syn",Pattern_White_Space:"Pat_WS",Quotation_Mark:"QMark",Radical:"Radical",Regional_Indicator:"RI",Sentence_Terminal:"STerm",Soft_Dotted:"SD",Terminal_Punctuation:"Term",Unified_Ideograph:"UIdeo",Uppercase:"Upper",Variation_Selector:"VS",White_Space:"space",XID_Continue:"XIDC",XID_Start:"XIDS"},enI=enM(enw),enN={Cased_Letter:"LC",Close_Punctuation:"Pe",Connector_Punctuation:"Pc",Control:["Cc","cntrl"],Currency_Symbol:"Sc",Dash_Punctuation:"Pd",Decimal_Number:["Nd","digit"],Enclosing_Mark:"Me",Final_Punctuation:"Pf",Format:"Cf",Initial_Punctuation:"Pi",Letter:"L",Letter_Number:"Nl",Line_Separator:"Zl",Lowercase_Letter:"Ll",Mark:["M","Combining_Mark"],Math_Symbol:"Sm",Modifier_Letter:"Lm",Modifier_Symbol:"Sk",Nonspacing_Mark:"Mn",Number:"N",Open_Punctuation:"Ps",Other:"C",Other_Letter:"Lo",Other_Number:"No",Other_Punctuation:"Po",Other_Symbol:"So",Paragraph_Separator:"Zp",Private_Use:"Co",Punctuation:["P","punct"],Separator:"Z",Space_Separator:"Zs",Spacing_Mark:"Mc",Surrogate:"Cs",Symbol:"S",Titlecase_Letter:"Lt",Unassigned:"Cn",Uppercase_Letter:"Lu"},enO=enM(enN),enD={Adlam:"Adlm",Ahom:"Ahom",Anatolian_Hieroglyphs:"Hluw",Arabic:"Arab",Armenian:"Armn",Avestan:"Avst",Balinese:"Bali",Bamum:"Bamu",Bassa_Vah:"Bass",Batak:"Batk",Bengali:"Beng",Bhaiksuki:"Bhks",Bopomofo:"Bopo",Brahmi:"Brah",Braille:"Brai",Buginese:"Bugi",Buhid:"Buhd",Canadian_Aboriginal:"Cans",Carian:"Cari",Caucasian_Albanian:"Aghb",Chakma:"Cakm",Cham:"Cham",Cherokee:"Cher",Common:"Zyyy",Coptic:["Copt","Qaac"],Cuneiform:"Xsux",Cypriot:"Cprt",Cyrillic:"Cyrl",Deseret:"Dsrt",Devanagari:"Deva",Dogra:"Dogr",Duployan:"Dupl",Egyptian_Hieroglyphs:"Egyp",Elbasan:"Elba",Ethiopic:"Ethi",Georgian:"Geor",Glagolitic:"Glag",Gothic:"Goth",Grantha:"Gran",Greek:"Grek",Gujarati:"Gujr",Gunjala_Gondi:"Gong",Gurmukhi:"Guru",Han:"Hani",Hangul:"Hang",Hanifi_Rohingya:"Rohg",Hanunoo:"Hano",Hatran:"Hatr",Hebrew:"Hebr",Hiragana:"Hira",Imperial_Aramaic:"Armi",Inherited:["Zinh","Qaai"],Inscriptional_Pahlavi:"Phli",Inscriptional_Parthian:"Prti",Javanese:"Java",Kaithi:"Kthi",Kannada:"Knda",Katakana:"Kana",Kayah_Li:"Kali",Kharoshthi:"Khar",Khmer:"Khmr",Khojki:"Khoj",Khudawadi:"Sind",Lao:"Laoo",Latin:"Latn",Lepcha:"Lepc",Limbu:"Limb",Linear_A:"Lina",Linear_B:"Linb",Lisu:"Lisu",Lycian:"Lyci",Lydian:"Lydi",Mahajani:"Mahj",Makasar:"Maka",Malayalam:"Mlym",Mandaic:"Mand",Manichaean:"Mani",Marchen:"Marc",Medefaidrin:"Medf",Masaram_Gondi:"Gonm",Meetei_Mayek:"Mtei",Mende_Kikakui:"Mend",Meroitic_Cursive:"Merc",Meroitic_Hieroglyphs:"Mero",Miao:"Plrd",Modi:"Modi",Mongolian:"Mong",Mro:"Mroo",Multani:"Mult",Myanmar:"Mymr",Nabataean:"Nbat",New_Tai_Lue:"Talu",Newa:"Newa",Nko:"Nkoo",Nushu:"Nshu",Ogham:"Ogam",Ol_Chiki:"Olck",Old_Hungarian:"Hung",Old_Italic:"Ital",Old_North_Arabian:"Narb",Old_Permic:"Perm",Old_Persian:"Xpeo",Old_Sogdian:"Sogo",Old_South_Arabian:"Sarb",Old_Turkic:"Orkh",Oriya:"Orya",Osage:"Osge",Osmanya:"Osma",Pahawh_Hmong:"Hmng",Palmyrene:"Palm",Pau_Cin_Hau:"Pauc",Phags_Pa:"Phag",Phoenician:"Phnx",Psalter_Pahlavi:"Phlp",Rejang:"Rjng",Runic:"Runr",Samaritan:"Samr",Saurashtra:"Saur",Sharada:"Shrd",Shavian:"Shaw",Siddham:"Sidd",SignWriting:"Sgnw",Sinhala:"Sinh",Sogdian:"Sogd",Sora_Sompeng:"Sora",Soyombo:"Soyo",Sundanese:"Sund",Syloti_Nagri:"Sylo",Syriac:"Syrc",Tagalog:"Tglg",Tagbanwa:"Tagb",Tai_Le:"Tale",Tai_Tham:"Lana",Tai_Viet:"Tavt",Takri:"Takr",Tamil:"Taml",Tangut:"Tang",Telugu:"Telu",Thaana:"Thaa",Thai:"Thai",Tibetan:"Tibt",Tifinagh:"Tfng",Tirhuta:"Tirh",Ugaritic:"Ugar",Vai:"Vaii",Warang_Citi:"Wara",Yi:"Yiii",Zanabazar_Square:"Zanb"},enL=enM(enD);function enM(e){var t={};for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];if(Array.isArray(n))for(var i=0;i<n.length;i++)t[n[i]]=r;else t[n]=r}return t}function enF(e){return enN.hasOwnProperty(e)||enO.hasOwnProperty(e)}var enB=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var s,o=e[Symbol.iterator]();!(n=(s=o.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(e){i=!0,a=e}finally{try{!n&&o.return&&o.return()}finally{if(i)throw a}}return r}(e,t);throw TypeError("Invalid attempt to destructure non-iterable instance")};function enR(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}var enj=void 0,enU={},enV=void 0,enW=void 0;function enq(e,t){return enU.options.captureLocations?e&&t?{startOffset:e.startOffset,endOffset:t.endOffset,startLine:e.startLine,endLine:t.endLine,startColumn:e.startColumn,endColumn:t.endColumn}:e||t:null}var enJ=[[-1,1,function(e,t){enW=enq(t,t),enV=e}],[0,4,function(e,t,r,n,i,a,s,o){enW=enq(i,o),enV=eir({type:"RegExp",body:t,flags:function(e){var t=new Set,r=!0,n=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var o=a.value;if(t.has(o)||!"gimsuxy".includes(o))throw SyntaxError("Invalid flags: "+e);t.add(o)}}catch(e){n=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(n)throw i}}return e.split("").sort().join("")}(n)},ein(i,o||s))}],[1,1,function(e,t){enW=enq(t,t),enV=e}],[1,0,function(){enW=null,enV=""}],[2,1,function(e,t){enW=enq(t,t),enV=e}],[2,2,function(e,t,r,n){enW=enq(r,n),enV=e+t}],[3,1,function(e,t){enW=enq(t,t),enV=e}],[4,1,function(e,t){enW=enq(t,t),enV=e}],[4,3,function(e,t,r,n,i,a){enW=enq(n,a);var s=null;i&&(s=ein(n||i,a||i)),enV=eir({type:"Disjunction",left:e,right:r},s)}],[5,1,function(e,t){if(enW=enq(t,t),0===e.length){enV=null;return}enV=1===e.length?eir(e[0],enW):eir({type:"Alternative",expressions:e},enW)}],[6,0,function(){enW=null,enV=[]}],[6,2,function(e,t,r,n){enW=enq(r,n),enV=e.concat(t)}],[7,1,function(e,t){enW=enq(t,t),enV=eir(Object.assign({type:"Assertion"},e),enW)}],[7,2,function(e,t,r,n){enW=enq(r,n),enV=e,t&&(enV=eir({type:"Repetition",expression:e,quantifier:t},enW))}],[8,1,function(e,t){enW=enq(t,t),enV={kind:"^"}}],[8,1,function(e,t){enW=enq(t,t),enV={kind:"$"}}],[8,1,function(e,t){enW=enq(t,t),enV={kind:"\\b"}}],[8,1,function(e,t){enW=enq(t,t),enV={kind:"\\B"}}],[8,3,function(e,t,r,n,i,a){enW=enq(n,a),enV={kind:"Lookahead",assertion:t}}],[8,3,function(e,t,r,n,i,a){enW=enq(n,a),enV={kind:"Lookahead",negative:!0,assertion:t}}],[8,3,function(e,t,r,n,i,a){enW=enq(n,a),enV={kind:"Lookbehind",assertion:t}}],[8,3,function(e,t,r,n,i,a){enW=enq(n,a),enV={kind:"Lookbehind",negative:!0,assertion:t}}],[9,1,function(e,t){enW=enq(t,t),enV=e}],[9,1,function(e,t){enW=enq(t,t),enV=e}],[9,1,function(e,t){enW=enq(t,t),enV=e}],[10,1,function(e,t){enV=en5(e,"simple",enW=enq(t,t))}],[10,1,function(e,t){enW=enq(t,t),(enV=en5(e.slice(1),"simple",enW)).escaped=!0}],[10,1,function(e,t){(enV=en5(e,"unicode",enW=enq(t,t))).isSurrogatePair=!0}],[10,1,function(e,t){enV=en5(e,"unicode",enW=enq(t,t))}],[10,1,function(e,t){enV=function(e,t){var r="P"===e[1],n=e.indexOf("="),i=e.slice(3,-1!==n?n:-1),a=void 0,s=-1===n&&en4.isGeneralCategoryValue(i),o=-1===n&&en4.isBinaryPropertyName(i);if(s)a=i,i="General_Category";else if(o)a=i;else{if(!en4.isValidName(i))throw SyntaxError("Invalid unicode property name: "+i+".");if(a=e.slice(n+1,-1),!en4.isValidValue(i,a))throw SyntaxError("Invalid "+i+" unicode property value: "+a+".")}return eir({type:"UnicodeProperty",name:i,value:a,negative:r,shorthand:s,binary:o,canonicalName:en4.getCanonicalName(i)||i,canonicalValue:en4.getCanonicalValue(a)||a},t)}(e,enW=enq(t,t))}],[10,1,function(e,t){enV=en5(e,"control",enW=enq(t,t))}],[10,1,function(e,t){enV=en5(e,"hex",enW=enq(t,t))}],[10,1,function(e,t){enV=en5(e,"oct",enW=enq(t,t))}],[10,1,function(e,t){var r,n;r=enW=enq(t,t),enV=(n=Number(e.slice(1)))>0&&n<=enZ?eir({type:"Backreference",kind:"number",number:n,reference:n},r):en5(e,"decimal",r)}],[10,1,function(e,t){enV=en5(e,"meta",enW=enq(t,t))}],[10,1,function(e,t){enV=en5(e,"meta",enW=enq(t,t))}],[10,1,function(e,t){enW=enq(t,t),enV=function(e,t){var r=e.slice(3,-1),n=eit(r);if(en0.hasOwnProperty(n))return eir({type:"Backreference",kind:"name",number:en0[n],reference:n,referenceRaw:r},t);var i=null,a=null,s=null,o=null;t&&(i=t.startOffset,a=t.startLine,s=t.endLine,o=t.startColumn);var u=/^[\w$<>]/,l=void 0,c=[en5(e.slice(1,2),"simple",i?{startLine:a,endLine:s,startColumn:o,startOffset:i,endOffset:i+=2,endColumn:o+=2}:null)];for(c[0].escaped=!0,e=e.slice(2);e.length>0;){var p=null;(p=e.match(en8))||(p=e.match(en6))?(i&&(l={startLine:a,endLine:s,startColumn:o,startOffset:i,endOffset:i+=p[0].length,endColumn:o+=p[0].length}),c.push(en5(p[0],"unicode",l)),e=e.slice(p[0].length)):(p=e.match(u))&&(i&&(l={startLine:a,endLine:s,startColumn:o,startOffset:i,endOffset:++i,endColumn:++o}),c.push(en5(p[0],"simple",l)),e=e.slice(1))}return c}(e,t)}],[11,1,function(e,t){enW=enq(t,t),enV=e}],[11,0],[12,1,function(e,t){enW=enq(t,t),enV=e}],[12,2,function(e,t,r,n){enW=enq(r,n),e.greedy=!1,enV=e}],[13,1,function(e,t){enV=eir({type:"Quantifier",kind:e,greedy:!0},enW=enq(t,t))}],[13,1,function(e,t){enV=eir({type:"Quantifier",kind:e,greedy:!0},enW=enq(t,t))}],[13,1,function(e,t){enV=eir({type:"Quantifier",kind:e,greedy:!0},enW=enq(t,t))}],[13,1,function(e,t){enW=enq(t,t);var r=en2(e);enV=eir({type:"Quantifier",kind:"Range",from:r[0],to:r[0],greedy:!0},enW)}],[13,1,function(e,t){enW=enq(t,t),enV=eir({type:"Quantifier",kind:"Range",from:en2(e)[0],greedy:!0},enW)}],[13,1,function(e,t){enW=enq(t,t);var r=en2(e);enV=eir({type:"Quantifier",kind:"Range",from:r[0],to:r[1],greedy:!0},enW)}],[14,1,function(e,t){enW=enq(t,t),enV=e}],[14,1,function(e,t){enW=enq(t,t),enV=e}],[15,3,function(e,t,r,n,i,a){enW=enq(n,a);var s=String(e),o=eit(s);if(!enU.options.allowGroupNameDuplicates&&en0.hasOwnProperty(o))throw SyntaxError('Duplicate of the named group "'+o+'".');en0[o]=e.groupNumber,enV=eir({type:"Group",capturing:!0,name:o,nameRaw:s,number:e.groupNumber,expression:t},enW)}],[15,3,function(e,t,r,n,i,a){enW=enq(n,a),enV=eir({type:"Group",capturing:!0,number:e.groupNumber,expression:t},enW)}],[16,3,function(e,t,r,n,i,a){enV=eir({type:"Group",capturing:!1,expression:t},enW=enq(n,a))}],[17,3,function(e,t,r,n,i,a){enV=eir({type:"CharacterClass",negative:!0,expressions:t},enW=enq(n,a))}],[17,3,function(e,t,r,n,i,a){enV=eir({type:"CharacterClass",expressions:t},enW=enq(n,a))}],[18,0,function(){enW=null,enV=[]}],[18,1,function(e,t){enW=enq(t,t),enV=e}],[19,1,function(e,t){enW=enq(t,t),enV=[e]}],[19,2,function(e,t,r,n){enW=enq(r,n),enV=[e].concat(t)}],[19,4,function(e,t,r,n,i,a,s,o){enW=enq(i,o),en3(e,r),enV=[eir({type:"ClassRange",from:e,to:r},ein(i,s))],n&&(enV=enV.concat(n))}],[20,1,function(e,t){enW=enq(t,t),enV=e}],[20,2,function(e,t,r,n){enW=enq(r,n),enV=[e].concat(t)}],[20,4,function(e,t,r,n,i,a,s,o){enW=enq(i,o),en3(e,r),enV=[eir({type:"ClassRange",from:e,to:r},ein(i,s))],n&&(enV=enV.concat(n))}],[21,1,function(e,t){enV=en5(e,"simple",enW=enq(t,t))}],[21,1,function(e,t){enW=enq(t,t),enV=e}],[22,1,function(e,t){enW=enq(t,t),enV=e}],[22,1,function(e,t){enV=en5(e,"meta",enW=enq(t,t))}]],enX={SLASH:"23",CHAR:"24",BAR:"25",BOS:"26",EOS:"27",ESC_b:"28",ESC_B:"29",POS_LA_ASSERT:"30",R_PAREN:"31",NEG_LA_ASSERT:"32",POS_LB_ASSERT:"33",NEG_LB_ASSERT:"34",ESC_CHAR:"35",U_CODE_SURROGATE:"36",U_CODE:"37",U_PROP_VALUE_EXP:"38",CTRL_CH:"39",HEX_CODE:"40",OCT_CODE:"41",DEC_CODE:"42",META_CHAR:"43",ANY:"44",NAMED_GROUP_REF:"45",Q_MARK:"46",STAR:"47",PLUS:"48",RANGE_EXACT:"49",RANGE_OPEN:"50",RANGE_CLOSED:"51",NAMED_CAPTURE_GROUP:"52",L_PAREN:"53",NON_CAPTURE_GROUP:"54",NEG_CLASS:"55",R_BRACKET:"56",L_BRACKET:"57",DASH:"58",$:"59"},enG=[{0:1,23:"s2"},{59:"acc"},{3:3,4:4,5:5,6:6,23:"r10",24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"s7"},{23:"r6",25:"s12"},{23:"r7",25:"r7",31:"r7"},{7:14,8:15,9:16,10:25,14:27,15:42,16:43,17:26,23:"r9",24:"s28",25:"r9",26:"s17",27:"s18",28:"s19",29:"s20",30:"s21",31:"r9",32:"s22",33:"s23",34:"s24",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",52:"s44",53:"s45",54:"s46",55:"s40",57:"s41"},{1:8,2:9,24:"s10",59:"r3"},{59:"r1"},{24:"s11",59:"r2"},{24:"r4",59:"r4"},{24:"r5",59:"r5"},{5:13,6:6,23:"r10",24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"r8",25:"r8",31:"r8"},{23:"r11",24:"r11",25:"r11",26:"r11",27:"r11",28:"r11",29:"r11",30:"r11",31:"r11",32:"r11",33:"r11",34:"r11",35:"r11",36:"r11",37:"r11",38:"r11",39:"r11",40:"r11",41:"r11",42:"r11",43:"r11",44:"r11",45:"r11",52:"r11",53:"r11",54:"r11",55:"r11",57:"r11"},{23:"r12",24:"r12",25:"r12",26:"r12",27:"r12",28:"r12",29:"r12",30:"r12",31:"r12",32:"r12",33:"r12",34:"r12",35:"r12",36:"r12",37:"r12",38:"r12",39:"r12",40:"r12",41:"r12",42:"r12",43:"r12",44:"r12",45:"r12",52:"r12",53:"r12",54:"r12",55:"r12",57:"r12"},{11:47,12:48,13:49,23:"r38",24:"r38",25:"r38",26:"r38",27:"r38",28:"r38",29:"r38",30:"r38",31:"r38",32:"r38",33:"r38",34:"r38",35:"r38",36:"r38",37:"r38",38:"r38",39:"r38",40:"r38",41:"r38",42:"r38",43:"r38",44:"r38",45:"r38",46:"s52",47:"s50",48:"s51",49:"s53",50:"s54",51:"s55",52:"r38",53:"r38",54:"r38",55:"r38",57:"r38"},{23:"r14",24:"r14",25:"r14",26:"r14",27:"r14",28:"r14",29:"r14",30:"r14",31:"r14",32:"r14",33:"r14",34:"r14",35:"r14",36:"r14",37:"r14",38:"r14",39:"r14",40:"r14",41:"r14",42:"r14",43:"r14",44:"r14",45:"r14",52:"r14",53:"r14",54:"r14",55:"r14",57:"r14"},{23:"r15",24:"r15",25:"r15",26:"r15",27:"r15",28:"r15",29:"r15",30:"r15",31:"r15",32:"r15",33:"r15",34:"r15",35:"r15",36:"r15",37:"r15",38:"r15",39:"r15",40:"r15",41:"r15",42:"r15",43:"r15",44:"r15",45:"r15",52:"r15",53:"r15",54:"r15",55:"r15",57:"r15"},{23:"r16",24:"r16",25:"r16",26:"r16",27:"r16",28:"r16",29:"r16",30:"r16",31:"r16",32:"r16",33:"r16",34:"r16",35:"r16",36:"r16",37:"r16",38:"r16",39:"r16",40:"r16",41:"r16",42:"r16",43:"r16",44:"r16",45:"r16",52:"r16",53:"r16",54:"r16",55:"r16",57:"r16"},{23:"r17",24:"r17",25:"r17",26:"r17",27:"r17",28:"r17",29:"r17",30:"r17",31:"r17",32:"r17",33:"r17",34:"r17",35:"r17",36:"r17",37:"r17",38:"r17",39:"r17",40:"r17",41:"r17",42:"r17",43:"r17",44:"r17",45:"r17",52:"r17",53:"r17",54:"r17",55:"r17",57:"r17"},{4:57,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:59,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:61,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:63,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"r22",24:"r22",25:"r22",26:"r22",27:"r22",28:"r22",29:"r22",30:"r22",31:"r22",32:"r22",33:"r22",34:"r22",35:"r22",36:"r22",37:"r22",38:"r22",39:"r22",40:"r22",41:"r22",42:"r22",43:"r22",44:"r22",45:"r22",46:"r22",47:"r22",48:"r22",49:"r22",50:"r22",51:"r22",52:"r22",53:"r22",54:"r22",55:"r22",57:"r22"},{23:"r23",24:"r23",25:"r23",26:"r23",27:"r23",28:"r23",29:"r23",30:"r23",31:"r23",32:"r23",33:"r23",34:"r23",35:"r23",36:"r23",37:"r23",38:"r23",39:"r23",40:"r23",41:"r23",42:"r23",43:"r23",44:"r23",45:"r23",46:"r23",47:"r23",48:"r23",49:"r23",50:"r23",51:"r23",52:"r23",53:"r23",54:"r23",55:"r23",57:"r23"},{23:"r24",24:"r24",25:"r24",26:"r24",27:"r24",28:"r24",29:"r24",30:"r24",31:"r24",32:"r24",33:"r24",34:"r24",35:"r24",36:"r24",37:"r24",38:"r24",39:"r24",40:"r24",41:"r24",42:"r24",43:"r24",44:"r24",45:"r24",46:"r24",47:"r24",48:"r24",49:"r24",50:"r24",51:"r24",52:"r24",53:"r24",54:"r24",55:"r24",57:"r24"},{23:"r25",24:"r25",25:"r25",26:"r25",27:"r25",28:"r25",29:"r25",30:"r25",31:"r25",32:"r25",33:"r25",34:"r25",35:"r25",36:"r25",37:"r25",38:"r25",39:"r25",40:"r25",41:"r25",42:"r25",43:"r25",44:"r25",45:"r25",46:"r25",47:"r25",48:"r25",49:"r25",50:"r25",51:"r25",52:"r25",53:"r25",54:"r25",55:"r25",56:"r25",57:"r25",58:"r25"},{23:"r26",24:"r26",25:"r26",26:"r26",27:"r26",28:"r26",29:"r26",30:"r26",31:"r26",32:"r26",33:"r26",34:"r26",35:"r26",36:"r26",37:"r26",38:"r26",39:"r26",40:"r26",41:"r26",42:"r26",43:"r26",44:"r26",45:"r26",46:"r26",47:"r26",48:"r26",49:"r26",50:"r26",51:"r26",52:"r26",53:"r26",54:"r26",55:"r26",56:"r26",57:"r26",58:"r26"},{23:"r27",24:"r27",25:"r27",26:"r27",27:"r27",28:"r27",29:"r27",30:"r27",31:"r27",32:"r27",33:"r27",34:"r27",35:"r27",36:"r27",37:"r27",38:"r27",39:"r27",40:"r27",41:"r27",42:"r27",43:"r27",44:"r27",45:"r27",46:"r27",47:"r27",48:"r27",49:"r27",50:"r27",51:"r27",52:"r27",53:"r27",54:"r27",55:"r27",56:"r27",57:"r27",58:"r27"},{23:"r28",24:"r28",25:"r28",26:"r28",27:"r28",28:"r28",29:"r28",30:"r28",31:"r28",32:"r28",33:"r28",34:"r28",35:"r28",36:"r28",37:"r28",38:"r28",39:"r28",40:"r28",41:"r28",42:"r28",43:"r28",44:"r28",45:"r28",46:"r28",47:"r28",48:"r28",49:"r28",50:"r28",51:"r28",52:"r28",53:"r28",54:"r28",55:"r28",56:"r28",57:"r28",58:"r28"},{23:"r29",24:"r29",25:"r29",26:"r29",27:"r29",28:"r29",29:"r29",30:"r29",31:"r29",32:"r29",33:"r29",34:"r29",35:"r29",36:"r29",37:"r29",38:"r29",39:"r29",40:"r29",41:"r29",42:"r29",43:"r29",44:"r29",45:"r29",46:"r29",47:"r29",48:"r29",49:"r29",50:"r29",51:"r29",52:"r29",53:"r29",54:"r29",55:"r29",56:"r29",57:"r29",58:"r29"},{23:"r30",24:"r30",25:"r30",26:"r30",27:"r30",28:"r30",29:"r30",30:"r30",31:"r30",32:"r30",33:"r30",34:"r30",35:"r30",36:"r30",37:"r30",38:"r30",39:"r30",40:"r30",41:"r30",42:"r30",43:"r30",44:"r30",45:"r30",46:"r30",47:"r30",48:"r30",49:"r30",50:"r30",51:"r30",52:"r30",53:"r30",54:"r30",55:"r30",56:"r30",57:"r30",58:"r30"},{23:"r31",24:"r31",25:"r31",26:"r31",27:"r31",28:"r31",29:"r31",30:"r31",31:"r31",32:"r31",33:"r31",34:"r31",35:"r31",36:"r31",37:"r31",38:"r31",39:"r31",40:"r31",41:"r31",42:"r31",43:"r31",44:"r31",45:"r31",46:"r31",47:"r31",48:"r31",49:"r31",50:"r31",51:"r31",52:"r31",53:"r31",54:"r31",55:"r31",56:"r31",57:"r31",58:"r31"},{23:"r32",24:"r32",25:"r32",26:"r32",27:"r32",28:"r32",29:"r32",30:"r32",31:"r32",32:"r32",33:"r32",34:"r32",35:"r32",36:"r32",37:"r32",38:"r32",39:"r32",40:"r32",41:"r32",42:"r32",43:"r32",44:"r32",45:"r32",46:"r32",47:"r32",48:"r32",49:"r32",50:"r32",51:"r32",52:"r32",53:"r32",54:"r32",55:"r32",56:"r32",57:"r32",58:"r32"},{23:"r33",24:"r33",25:"r33",26:"r33",27:"r33",28:"r33",29:"r33",30:"r33",31:"r33",32:"r33",33:"r33",34:"r33",35:"r33",36:"r33",37:"r33",38:"r33",39:"r33",40:"r33",41:"r33",42:"r33",43:"r33",44:"r33",45:"r33",46:"r33",47:"r33",48:"r33",49:"r33",50:"r33",51:"r33",52:"r33",53:"r33",54:"r33",55:"r33",56:"r33",57:"r33",58:"r33"},{23:"r34",24:"r34",25:"r34",26:"r34",27:"r34",28:"r34",29:"r34",30:"r34",31:"r34",32:"r34",33:"r34",34:"r34",35:"r34",36:"r34",37:"r34",38:"r34",39:"r34",40:"r34",41:"r34",42:"r34",43:"r34",44:"r34",45:"r34",46:"r34",47:"r34",48:"r34",49:"r34",50:"r34",51:"r34",52:"r34",53:"r34",54:"r34",55:"r34",56:"r34",57:"r34",58:"r34"},{23:"r35",24:"r35",25:"r35",26:"r35",27:"r35",28:"r35",29:"r35",30:"r35",31:"r35",32:"r35",33:"r35",34:"r35",35:"r35",36:"r35",37:"r35",38:"r35",39:"r35",40:"r35",41:"r35",42:"r35",43:"r35",44:"r35",45:"r35",46:"r35",47:"r35",48:"r35",49:"r35",50:"r35",51:"r35",52:"r35",53:"r35",54:"r35",55:"r35",56:"r35",57:"r35",58:"r35"},{23:"r36",24:"r36",25:"r36",26:"r36",27:"r36",28:"r36",29:"r36",30:"r36",31:"r36",32:"r36",33:"r36",34:"r36",35:"r36",36:"r36",37:"r36",38:"r36",39:"r36",40:"r36",41:"r36",42:"r36",43:"r36",44:"r36",45:"r36",46:"r36",47:"r36",48:"r36",49:"r36",50:"r36",51:"r36",52:"r36",53:"r36",54:"r36",55:"r36",56:"r36",57:"r36",58:"r36"},{10:70,18:65,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{10:70,18:83,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{23:"r47",24:"r47",25:"r47",26:"r47",27:"r47",28:"r47",29:"r47",30:"r47",31:"r47",32:"r47",33:"r47",34:"r47",35:"r47",36:"r47",37:"r47",38:"r47",39:"r47",40:"r47",41:"r47",42:"r47",43:"r47",44:"r47",45:"r47",46:"r47",47:"r47",48:"r47",49:"r47",50:"r47",51:"r47",52:"r47",53:"r47",54:"r47",55:"r47",57:"r47"},{23:"r48",24:"r48",25:"r48",26:"r48",27:"r48",28:"r48",29:"r48",30:"r48",31:"r48",32:"r48",33:"r48",34:"r48",35:"r48",36:"r48",37:"r48",38:"r48",39:"r48",40:"r48",41:"r48",42:"r48",43:"r48",44:"r48",45:"r48",46:"r48",47:"r48",48:"r48",49:"r48",50:"r48",51:"r48",52:"r48",53:"r48",54:"r48",55:"r48",57:"r48"},{4:85,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:87,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:89,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"r13",24:"r13",25:"r13",26:"r13",27:"r13",28:"r13",29:"r13",30:"r13",31:"r13",32:"r13",33:"r13",34:"r13",35:"r13",36:"r13",37:"r13",38:"r13",39:"r13",40:"r13",41:"r13",42:"r13",43:"r13",44:"r13",45:"r13",52:"r13",53:"r13",54:"r13",55:"r13",57:"r13"},{23:"r37",24:"r37",25:"r37",26:"r37",27:"r37",28:"r37",29:"r37",30:"r37",31:"r37",32:"r37",33:"r37",34:"r37",35:"r37",36:"r37",37:"r37",38:"r37",39:"r37",40:"r37",41:"r37",42:"r37",43:"r37",44:"r37",45:"r37",52:"r37",53:"r37",54:"r37",55:"r37",57:"r37"},{23:"r39",24:"r39",25:"r39",26:"r39",27:"r39",28:"r39",29:"r39",30:"r39",31:"r39",32:"r39",33:"r39",34:"r39",35:"r39",36:"r39",37:"r39",38:"r39",39:"r39",40:"r39",41:"r39",42:"r39",43:"r39",44:"r39",45:"r39",46:"s56",52:"r39",53:"r39",54:"r39",55:"r39",57:"r39"},{23:"r41",24:"r41",25:"r41",26:"r41",27:"r41",28:"r41",29:"r41",30:"r41",31:"r41",32:"r41",33:"r41",34:"r41",35:"r41",36:"r41",37:"r41",38:"r41",39:"r41",40:"r41",41:"r41",42:"r41",43:"r41",44:"r41",45:"r41",46:"r41",52:"r41",53:"r41",54:"r41",55:"r41",57:"r41"},{23:"r42",24:"r42",25:"r42",26:"r42",27:"r42",28:"r42",29:"r42",30:"r42",31:"r42",32:"r42",33:"r42",34:"r42",35:"r42",36:"r42",37:"r42",38:"r42",39:"r42",40:"r42",41:"r42",42:"r42",43:"r42",44:"r42",45:"r42",46:"r42",52:"r42",53:"r42",54:"r42",55:"r42",57:"r42"},{23:"r43",24:"r43",25:"r43",26:"r43",27:"r43",28:"r43",29:"r43",30:"r43",31:"r43",32:"r43",33:"r43",34:"r43",35:"r43",36:"r43",37:"r43",38:"r43",39:"r43",40:"r43",41:"r43",42:"r43",43:"r43",44:"r43",45:"r43",46:"r43",52:"r43",53:"r43",54:"r43",55:"r43",57:"r43"},{23:"r44",24:"r44",25:"r44",26:"r44",27:"r44",28:"r44",29:"r44",30:"r44",31:"r44",32:"r44",33:"r44",34:"r44",35:"r44",36:"r44",37:"r44",38:"r44",39:"r44",40:"r44",41:"r44",42:"r44",43:"r44",44:"r44",45:"r44",46:"r44",52:"r44",53:"r44",54:"r44",55:"r44",57:"r44"},{23:"r45",24:"r45",25:"r45",26:"r45",27:"r45",28:"r45",29:"r45",30:"r45",31:"r45",32:"r45",33:"r45",34:"r45",35:"r45",36:"r45",37:"r45",38:"r45",39:"r45",40:"r45",41:"r45",42:"r45",43:"r45",44:"r45",45:"r45",46:"r45",52:"r45",53:"r45",54:"r45",55:"r45",57:"r45"},{23:"r46",24:"r46",25:"r46",26:"r46",27:"r46",28:"r46",29:"r46",30:"r46",31:"r46",32:"r46",33:"r46",34:"r46",35:"r46",36:"r46",37:"r46",38:"r46",39:"r46",40:"r46",41:"r46",42:"r46",43:"r46",44:"r46",45:"r46",46:"r46",52:"r46",53:"r46",54:"r46",55:"r46",57:"r46"},{23:"r40",24:"r40",25:"r40",26:"r40",27:"r40",28:"r40",29:"r40",30:"r40",31:"r40",32:"r40",33:"r40",34:"r40",35:"r40",36:"r40",37:"r40",38:"r40",39:"r40",40:"r40",41:"r40",42:"r40",43:"r40",44:"r40",45:"r40",52:"r40",53:"r40",54:"r40",55:"r40",57:"r40"},{25:"s12",31:"s58"},{23:"r18",24:"r18",25:"r18",26:"r18",27:"r18",28:"r18",29:"r18",30:"r18",31:"r18",32:"r18",33:"r18",34:"r18",35:"r18",36:"r18",37:"r18",38:"r18",39:"r18",40:"r18",41:"r18",42:"r18",43:"r18",44:"r18",45:"r18",52:"r18",53:"r18",54:"r18",55:"r18",57:"r18"},{25:"s12",31:"s60"},{23:"r19",24:"r19",25:"r19",26:"r19",27:"r19",28:"r19",29:"r19",30:"r19",31:"r19",32:"r19",33:"r19",34:"r19",35:"r19",36:"r19",37:"r19",38:"r19",39:"r19",40:"r19",41:"r19",42:"r19",43:"r19",44:"r19",45:"r19",52:"r19",53:"r19",54:"r19",55:"r19",57:"r19"},{25:"s12",31:"s62"},{23:"r20",24:"r20",25:"r20",26:"r20",27:"r20",28:"r20",29:"r20",30:"r20",31:"r20",32:"r20",33:"r20",34:"r20",35:"r20",36:"r20",37:"r20",38:"r20",39:"r20",40:"r20",41:"r20",42:"r20",43:"r20",44:"r20",45:"r20",52:"r20",53:"r20",54:"r20",55:"r20",57:"r20"},{25:"s12",31:"s64"},{23:"r21",24:"r21",25:"r21",26:"r21",27:"r21",28:"r21",29:"r21",30:"r21",31:"r21",32:"r21",33:"r21",34:"r21",35:"r21",36:"r21",37:"r21",38:"r21",39:"r21",40:"r21",41:"r21",42:"r21",43:"r21",44:"r21",45:"r21",52:"r21",53:"r21",54:"r21",55:"r21",57:"r21"},{56:"s72"},{56:"r55"},{10:70,20:73,21:75,22:76,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r56",58:"s74"},{24:"r62",28:"r62",35:"r62",36:"r62",37:"r62",38:"r62",39:"r62",40:"r62",41:"r62",42:"r62",43:"r62",44:"r62",45:"r62",56:"r62",58:"r62"},{24:"r63",28:"r63",35:"r63",36:"r63",37:"r63",38:"r63",39:"r63",40:"r63",41:"r63",42:"r63",43:"r63",44:"r63",45:"r63",56:"r63",58:"r63"},{24:"r64",28:"r64",35:"r64",36:"r64",37:"r64",38:"r64",39:"r64",40:"r64",41:"r64",42:"r64",43:"r64",44:"r64",45:"r64",56:"r64",58:"r64"},{24:"r65",28:"r65",35:"r65",36:"r65",37:"r65",38:"r65",39:"r65",40:"r65",41:"r65",42:"r65",43:"r65",44:"r65",45:"r65",56:"r65",58:"r65"},{23:"r52",24:"r52",25:"r52",26:"r52",27:"r52",28:"r52",29:"r52",30:"r52",31:"r52",32:"r52",33:"r52",34:"r52",35:"r52",36:"r52",37:"r52",38:"r52",39:"r52",40:"r52",41:"r52",42:"r52",43:"r52",44:"r52",45:"r52",46:"r52",47:"r52",48:"r52",49:"r52",50:"r52",51:"r52",52:"r52",53:"r52",54:"r52",55:"r52",57:"r52"},{56:"r57"},{10:70,21:77,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r62",58:"s68"},{56:"r59"},{10:70,20:79,21:75,22:76,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r63",58:"s80"},{10:70,18:78,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{56:"r58"},{56:"r60"},{10:70,21:81,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r62",58:"s68"},{10:70,18:82,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{56:"r61"},{56:"s84"},{23:"r53",24:"r53",25:"r53",26:"r53",27:"r53",28:"r53",29:"r53",30:"r53",31:"r53",32:"r53",33:"r53",34:"r53",35:"r53",36:"r53",37:"r53",38:"r53",39:"r53",40:"r53",41:"r53",42:"r53",43:"r53",44:"r53",45:"r53",46:"r53",47:"r53",48:"r53",49:"r53",50:"r53",51:"r53",52:"r53",53:"r53",54:"r53",55:"r53",57:"r53"},{25:"s12",31:"s86"},{23:"r49",24:"r49",25:"r49",26:"r49",27:"r49",28:"r49",29:"r49",30:"r49",31:"r49",32:"r49",33:"r49",34:"r49",35:"r49",36:"r49",37:"r49",38:"r49",39:"r49",40:"r49",41:"r49",42:"r49",43:"r49",44:"r49",45:"r49",46:"r49",47:"r49",48:"r49",49:"r49",50:"r49",51:"r49",52:"r49",53:"r49",54:"r49",55:"r49",57:"r49"},{25:"s12",31:"s88"},{23:"r50",24:"r50",25:"r50",26:"r50",27:"r50",28:"r50",29:"r50",30:"r50",31:"r50",32:"r50",33:"r50",34:"r50",35:"r50",36:"r50",37:"r50",38:"r50",39:"r50",40:"r50",41:"r50",42:"r50",43:"r50",44:"r50",45:"r50",46:"r50",47:"r50",48:"r50",49:"r50",50:"r50",51:"r50",52:"r50",53:"r50",54:"r50",55:"r50",57:"r50"},{25:"s12",31:"s90"},{23:"r51",24:"r51",25:"r51",26:"r51",27:"r51",28:"r51",29:"r51",30:"r51",31:"r51",32:"r51",33:"r51",34:"r51",35:"r51",36:"r51",37:"r51",38:"r51",39:"r51",40:"r51",41:"r51",42:"r51",43:"r51",44:"r51",45:"r51",46:"r51",47:"r51",48:"r51",49:"r51",50:"r51",51:"r51",52:"r51",53:"r51",54:"r51",55:"r51",57:"r51"}],enK=[],enH=void 0,enz=[[/^#[^\n]+/,function(){}],[/^\s+/,function(){}],[/^-/,function(){return"DASH"}],[/^\//,function(){return"CHAR"}],[/^#/,function(){return"CHAR"}],[/^\|/,function(){return"CHAR"}],[/^\./,function(){return"CHAR"}],[/^\{/,function(){return"CHAR"}],[/^\{\d+\}/,function(){return"RANGE_EXACT"}],[/^\{\d+,\}/,function(){return"RANGE_OPEN"}],[/^\{\d+,\d+\}/,function(){return"RANGE_CLOSED"}],[/^\\k<(([\u0041-\u005a\u0061-\u007a\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376-\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e-\u066f\u0671-\u06d3\u06d5\u06e5-\u06e6\u06ee-\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4-\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u08a0-\u08b4\u08b6-\u08bd\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc-\u09dd\u09df-\u09e1\u09f0-\u09f1\u09fc\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0-\u0ae1\u0af9\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3d\u0b5c-\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60-\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0-\u0ce1\u0cf1-\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32-\u0e33\u0e40-\u0e46\u0e81-\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2-\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065-\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae-\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5-\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a-\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd-\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5-\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab67\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]|\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c-\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\ude80-\ude9c\udea0-\uded0\udf00-\udf1f\udf2d-\udf4a\udf50-\udf75\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37-\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4-\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe-\uddbf\ude00\ude10-\ude13\ude15-\ude17\ude19-\ude35\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd23\udf00-\udf1c\udf27\udf30-\udf45\udfe0-\udff6]|\ud804[\udc03-\udc37\udc83-\udcaf\udcd0-\udce8\udd03-\udd26\udd44\udd50-\udd72\udd76\udd83-\uddb2\uddc1-\uddc4\uddda\udddc\ude00-\ude11\ude13-\ude2b\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udede\udf05-\udf0c\udf0f-\udf10\udf13-\udf28\udf2a-\udf30\udf32-\udf33\udf35-\udf39\udf3d\udf50\udf5d-\udf61]|\ud805[\udc00-\udc34\udc47-\udc4a\udc5f\udc80-\udcaf\udcc4-\udcc5\udcc7\udd80-\uddae\uddd8-\udddb\ude00-\ude2f\ude44\ude80-\udeaa\udeb8\udf00-\udf1a]|\ud806[\udc00-\udc2b\udca0-\udcdf\udcff\udda0-\udda7\uddaa-\uddd0\udde1\udde3\ude00\ude0b-\ude32\ude3a\ude50\ude5c-\ude89\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc2e\udc40\udc72-\udc8f\udd00-\udd06\udd08-\udd09\udd0b-\udd30\udd46\udd60-\udd65\udd67-\udd68\udd6a-\udd89\udd98\udee0-\udef2]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf2f\udf40-\udf43\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf50\udf93-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e-\udc9f\udca2\udca5-\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb]|\ud838[\udd00-\udd2c\udd37-\udd3d\udd4e\udec0-\udeeb]|\ud83a[\udc00-\udcc4\udd00-\udd43\udd4b]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21-\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51-\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61-\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\}))(([\u0030-\u0039\u0041-\u005a\u005f\u0061-\u007a\u00aa\u00b5\u00b7\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0300-\u0374\u0376-\u0377\u037a-\u037d\u037f\u0386-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u0483-\u0487\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05bd\u05bf\u05c1-\u05c2\u05c4-\u05c5\u05c7\u05d0-\u05ea\u05ef-\u05f2\u0610-\u061a\u0620-\u0669\u066e-\u06d3\u06d5-\u06dc\u06df-\u06e8\u06ea-\u06fc\u06ff\u0710-\u074a\u074d-\u07b1\u07c0-\u07f5\u07fa\u07fd\u0800-\u082d\u0840-\u085b\u0860-\u086a\u08a0-\u08b4\u08b6-\u08bd\u08d3-\u08e1\u08e3-\u0963\u0966-\u096f\u0971-\u0983\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bc-\u09c4\u09c7-\u09c8\u09cb-\u09ce\u09d7\u09dc-\u09dd\u09df-\u09e3\u09e6-\u09f1\u09fc\u09fe\u0a01-\u0a03\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a3c\u0a3e-\u0a42\u0a47-\u0a48\u0a4b-\u0a4d\u0a51\u0a59-\u0a5c\u0a5e\u0a66-\u0a75\u0a81-\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abc-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ad0\u0ae0-\u0ae3\u0ae6-\u0aef\u0af9-\u0aff\u0b01-\u0b03\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3c-\u0b44\u0b47-\u0b48\u0b4b-\u0b4d\u0b56-\u0b57\u0b5c-\u0b5d\u0b5f-\u0b63\u0b66-\u0b6f\u0b71\u0b82-\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd0\u0bd7\u0be6-\u0bef\u0c00-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55-\u0c56\u0c58-\u0c5a\u0c60-\u0c63\u0c66-\u0c6f\u0c80-\u0c83\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbc-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5-\u0cd6\u0cde\u0ce0-\u0ce3\u0ce6-\u0cef\u0cf1-\u0cf2\u0d00-\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d44\u0d46-\u0d48\u0d4a-\u0d4e\u0d54-\u0d57\u0d5f-\u0d63\u0d66-\u0d6f\u0d7a-\u0d7f\u0d82-\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2-\u0df3\u0e01-\u0e3a\u0e40-\u0e4e\u0e50-\u0e59\u0e81-\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0ebd\u0ec0-\u0ec4\u0ec6\u0ec8-\u0ecd\u0ed0-\u0ed9\u0edc-\u0edf\u0f00\u0f18-\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e-\u0f47\u0f49-\u0f6c\u0f71-\u0f84\u0f86-\u0f97\u0f99-\u0fbc\u0fc6\u1000-\u1049\u1050-\u109d\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u135d-\u135f\u1369-\u1371\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176c\u176e-\u1770\u1772-\u1773\u1780-\u17d3\u17d7\u17dc-\u17dd\u17e0-\u17e9\u180b-\u180d\u1810-\u1819\u1820-\u1878\u1880-\u18aa\u18b0-\u18f5\u1900-\u191e\u1920-\u192b\u1930-\u193b\u1946-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u19d0-\u19da\u1a00-\u1a1b\u1a20-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1aa7\u1ab0-\u1abd\u1b00-\u1b4b\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1bf3\u1c00-\u1c37\u1c40-\u1c49\u1c4d-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1cd0-\u1cd2\u1cd4-\u1cfa\u1d00-\u1df9\u1dfb-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u203f-\u2040\u2054\u2071\u207f\u2090-\u209c\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d7f-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2de0-\u2dff\u3005-\u3007\u3021-\u302f\u3031-\u3035\u3038-\u303c\u3041-\u3096\u3099-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua62b\ua640-\ua66f\ua674-\ua67d\ua67f-\ua6f1\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua827\ua840-\ua873\ua880-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f7\ua8fb\ua8fd-\ua92d\ua930-\ua953\ua960-\ua97c\ua980-\ua9c0\ua9cf-\ua9d9\ua9e0-\ua9fe\uaa00-\uaa36\uaa40-\uaa4d\uaa50-\uaa59\uaa60-\uaa76\uaa7a-\uaac2\uaadb-\uaadd\uaae0-\uaaef\uaaf2-\uaaf6\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab67\uab70-\uabea\uabec-\uabed\uabf0-\uabf9\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe00-\ufe0f\ufe20-\ufe2f\ufe33-\ufe34\ufe4d-\ufe4f\ufe70-\ufe74\ufe76-\ufefc\uff10-\uff19\uff21-\uff3a\uff3f\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]|\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c-\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\uddfd\ude80-\ude9c\udea0-\uded0\udee0\udf00-\udf1f\udf2d-\udf4a\udf50-\udf7a\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udca0-\udca9\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37-\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4-\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe-\uddbf\ude00-\ude03\ude05-\ude06\ude0c-\ude13\ude15-\ude17\ude19-\ude35\ude38-\ude3a\ude3f\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee6\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd27\udd30-\udd39\udf00-\udf1c\udf27\udf30-\udf50\udfe0-\udff6]|\ud804[\udc00-\udc46\udc66-\udc6f\udc7f-\udcba\udcd0-\udce8\udcf0-\udcf9\udd00-\udd34\udd36-\udd3f\udd44-\udd46\udd50-\udd73\udd76\udd80-\uddc4\uddc9-\uddcc\uddd0-\uddda\udddc\ude00-\ude11\ude13-\ude37\ude3e\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udeea\udef0-\udef9\udf00-\udf03\udf05-\udf0c\udf0f-\udf10\udf13-\udf28\udf2a-\udf30\udf32-\udf33\udf35-\udf39\udf3b-\udf44\udf47-\udf48\udf4b-\udf4d\udf50\udf57\udf5d-\udf63\udf66-\udf6c\udf70-\udf74]|\ud805[\udc00-\udc4a\udc50-\udc59\udc5e-\udc5f\udc80-\udcc5\udcc7\udcd0-\udcd9\udd80-\uddb5\uddb8-\uddc0\uddd8-\udddd\ude00-\ude40\ude44\ude50-\ude59\ude80-\udeb8\udec0-\udec9\udf00-\udf1a\udf1d-\udf2b\udf30-\udf39]|\ud806[\udc00-\udc3a\udca0-\udce9\udcff\udda0-\udda7\uddaa-\uddd7\uddda-\udde1\udde3-\udde4\ude00-\ude3e\ude47\ude50-\ude99\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc36\udc38-\udc40\udc50-\udc59\udc72-\udc8f\udc92-\udca7\udca9-\udcb6\udd00-\udd06\udd08-\udd09\udd0b-\udd36\udd3a\udd3c-\udd3d\udd3f-\udd47\udd50-\udd59\udd60-\udd65\udd67-\udd68\udd6a-\udd8e\udd90-\udd91\udd93-\udd98\udda0-\udda9\udee0-\udef6]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\ude60-\ude69\uded0-\udeed\udef0-\udef4\udf00-\udf36\udf40-\udf43\udf50-\udf59\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf4f-\udf87\udf8f-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99\udc9d-\udc9e]|\ud834[\udd65-\udd69\udd6d-\udd72\udd7b-\udd82\udd85-\udd8b\uddaa-\uddad\ude42-\ude44]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e-\udc9f\udca2\udca5-\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb\udfce-\udfff]|\ud836[\ude00-\ude36\ude3b-\ude6c\ude75\ude84\ude9b-\ude9f\udea1-\udeaf]|\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23-\udc24\udc26-\udc2a\udd00-\udd2c\udd30-\udd3d\udd40-\udd49\udd4e\udec0-\udef9]|\ud83a[\udc00-\udcc4\udcd0-\udcd6\udd00-\udd4b\udd50-\udd59]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21-\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51-\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61-\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d]|\udb40[\udd00-\uddef])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\})|[\u200c\u200d])*>/,function(){return en7(enj.slice(3,-1),this.getCurrentState()),"NAMED_GROUP_REF"}],[/^\\b/,function(){return"ESC_b"}],[/^\\B/,function(){return"ESC_B"}],[/^\\c[a-zA-Z]/,function(){return"CTRL_CH"}],[/^\\0\d{1,2}/,function(){return"OCT_CODE"}],[/^\\0/,function(){return"DEC_CODE"}],[/^\\\d{1,3}/,function(){return"DEC_CODE"}],[/^\\u[dD][89abAB][0-9a-fA-F]{2}\\u[dD][c-fC-F][0-9a-fA-F]{2}/,function(){return"U_CODE_SURROGATE"}],[/^\\u\{[0-9a-fA-F]{1,}\}/,function(){return"U_CODE"}],[/^\\u[0-9a-fA-F]{4}/,function(){return"U_CODE"}],[/^\\[pP]\{\w+(?:=\w+)?\}/,function(){return"U_PROP_VALUE_EXP"}],[/^\\x[0-9a-fA-F]{2}/,function(){return"HEX_CODE"}],[/^\\[tnrdDsSwWvf]/,function(){return"META_CHAR"}],[/^\\\//,function(){return"ESC_CHAR"}],[/^\\[ #]/,function(){return"ESC_CHAR"}],[/^\\[\^\$\.\*\+\?\(\)\\\[\]\{\}\|\/]/,function(){return"ESC_CHAR"}],[/^\\[^*?+\[()\\|]/,function(){var e=this.getCurrentState();if("u_class"===e&&"\\-"===enj);else if("u"===e||"xu"===e||"u_class"===e)throw SyntaxError("invalid Unicode escape "+enj);return"ESC_CHAR"}],[/^\(/,function(){return"CHAR"}],[/^\)/,function(){return"CHAR"}],[/^\(\?=/,function(){return"POS_LA_ASSERT"}],[/^\(\?!/,function(){return"NEG_LA_ASSERT"}],[/^\(\?<=/,function(){return"POS_LB_ASSERT"}],[/^\(\?<!/,function(){return"NEG_LB_ASSERT"}],[/^\(\?:/,function(){return"NON_CAPTURE_GROUP"}],[/^\(\?<(([\u0041-\u005a\u0061-\u007a\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376-\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e-\u066f\u0671-\u06d3\u06d5\u06e5-\u06e6\u06ee-\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4-\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u08a0-\u08b4\u08b6-\u08bd\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc-\u09dd\u09df-\u09e1\u09f0-\u09f1\u09fc\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0-\u0ae1\u0af9\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3d\u0b5c-\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60-\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0-\u0ce1\u0cf1-\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32-\u0e33\u0e40-\u0e46\u0e81-\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2-\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065-\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae-\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5-\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a-\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd-\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5-\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab67\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]|\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c-\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\ude80-\ude9c\udea0-\uded0\udf00-\udf1f\udf2d-\udf4a\udf50-\udf75\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37-\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4-\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe-\uddbf\ude00\ude10-\ude13\ude15-\ude17\ude19-\ude35\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd23\udf00-\udf1c\udf27\udf30-\udf45\udfe0-\udff6]|\ud804[\udc03-\udc37\udc83-\udcaf\udcd0-\udce8\udd03-\udd26\udd44\udd50-\udd72\udd76\udd83-\uddb2\uddc1-\uddc4\uddda\udddc\ude00-\ude11\ude13-\ude2b\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udede\udf05-\udf0c\udf0f-\udf10\udf13-\udf28\udf2a-\udf30\udf32-\udf33\udf35-\udf39\udf3d\udf50\udf5d-\udf61]|\ud805[\udc00-\udc34\udc47-\udc4a\udc5f\udc80-\udcaf\udcc4-\udcc5\udcc7\udd80-\uddae\uddd8-\udddb\ude00-\ude2f\ude44\ude80-\udeaa\udeb8\udf00-\udf1a]|\ud806[\udc00-\udc2b\udca0-\udcdf\udcff\udda0-\udda7\uddaa-\uddd0\udde1\udde3\ude00\ude0b-\ude32\ude3a\ude50\ude5c-\ude89\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc2e\udc40\udc72-\udc8f\udd00-\udd06\udd08-\udd09\udd0b-\udd30\udd46\udd60-\udd65\udd67-\udd68\udd6a-\udd89\udd98\udee0-\udef2]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf2f\udf40-\udf43\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf50\udf93-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e-\udc9f\udca2\udca5-\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb]|\ud838[\udd00-\udd2c\udd37-\udd3d\udd4e\udec0-\udeeb]|\ud83a[\udc00-\udcc4\udd00-\udd43\udd4b]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21-\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51-\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61-\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\}))(([\u0030-\u0039\u0041-\u005a\u005f\u0061-\u007a\u00aa\u00b5\u00b7\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0300-\u0374\u0376-\u0377\u037a-\u037d\u037f\u0386-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u0483-\u0487\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05bd\u05bf\u05c1-\u05c2\u05c4-\u05c5\u05c7\u05d0-\u05ea\u05ef-\u05f2\u0610-\u061a\u0620-\u0669\u066e-\u06d3\u06d5-\u06dc\u06df-\u06e8\u06ea-\u06fc\u06ff\u0710-\u074a\u074d-\u07b1\u07c0-\u07f5\u07fa\u07fd\u0800-\u082d\u0840-\u085b\u0860-\u086a\u08a0-\u08b4\u08b6-\u08bd\u08d3-\u08e1\u08e3-\u0963\u0966-\u096f\u0971-\u0983\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bc-\u09c4\u09c7-\u09c8\u09cb-\u09ce\u09d7\u09dc-\u09dd\u09df-\u09e3\u09e6-\u09f1\u09fc\u09fe\u0a01-\u0a03\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a3c\u0a3e-\u0a42\u0a47-\u0a48\u0a4b-\u0a4d\u0a51\u0a59-\u0a5c\u0a5e\u0a66-\u0a75\u0a81-\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abc-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ad0\u0ae0-\u0ae3\u0ae6-\u0aef\u0af9-\u0aff\u0b01-\u0b03\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3c-\u0b44\u0b47-\u0b48\u0b4b-\u0b4d\u0b56-\u0b57\u0b5c-\u0b5d\u0b5f-\u0b63\u0b66-\u0b6f\u0b71\u0b82-\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd0\u0bd7\u0be6-\u0bef\u0c00-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55-\u0c56\u0c58-\u0c5a\u0c60-\u0c63\u0c66-\u0c6f\u0c80-\u0c83\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbc-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5-\u0cd6\u0cde\u0ce0-\u0ce3\u0ce6-\u0cef\u0cf1-\u0cf2\u0d00-\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d44\u0d46-\u0d48\u0d4a-\u0d4e\u0d54-\u0d57\u0d5f-\u0d63\u0d66-\u0d6f\u0d7a-\u0d7f\u0d82-\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2-\u0df3\u0e01-\u0e3a\u0e40-\u0e4e\u0e50-\u0e59\u0e81-\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0ebd\u0ec0-\u0ec4\u0ec6\u0ec8-\u0ecd\u0ed0-\u0ed9\u0edc-\u0edf\u0f00\u0f18-\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e-\u0f47\u0f49-\u0f6c\u0f71-\u0f84\u0f86-\u0f97\u0f99-\u0fbc\u0fc6\u1000-\u1049\u1050-\u109d\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u135d-\u135f\u1369-\u1371\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176c\u176e-\u1770\u1772-\u1773\u1780-\u17d3\u17d7\u17dc-\u17dd\u17e0-\u17e9\u180b-\u180d\u1810-\u1819\u1820-\u1878\u1880-\u18aa\u18b0-\u18f5\u1900-\u191e\u1920-\u192b\u1930-\u193b\u1946-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u19d0-\u19da\u1a00-\u1a1b\u1a20-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1aa7\u1ab0-\u1abd\u1b00-\u1b4b\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1bf3\u1c00-\u1c37\u1c40-\u1c49\u1c4d-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1cd0-\u1cd2\u1cd4-\u1cfa\u1d00-\u1df9\u1dfb-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u203f-\u2040\u2054\u2071\u207f\u2090-\u209c\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d7f-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2de0-\u2dff\u3005-\u3007\u3021-\u302f\u3031-\u3035\u3038-\u303c\u3041-\u3096\u3099-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua62b\ua640-\ua66f\ua674-\ua67d\ua67f-\ua6f1\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua827\ua840-\ua873\ua880-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f7\ua8fb\ua8fd-\ua92d\ua930-\ua953\ua960-\ua97c\ua980-\ua9c0\ua9cf-\ua9d9\ua9e0-\ua9fe\uaa00-\uaa36\uaa40-\uaa4d\uaa50-\uaa59\uaa60-\uaa76\uaa7a-\uaac2\uaadb-\uaadd\uaae0-\uaaef\uaaf2-\uaaf6\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab67\uab70-\uabea\uabec-\uabed\uabf0-\uabf9\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe00-\ufe0f\ufe20-\ufe2f\ufe33-\ufe34\ufe4d-\ufe4f\ufe70-\ufe74\ufe76-\ufefc\uff10-\uff19\uff21-\uff3a\uff3f\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]|\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c-\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\uddfd\ude80-\ude9c\udea0-\uded0\udee0\udf00-\udf1f\udf2d-\udf4a\udf50-\udf7a\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udca0-\udca9\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37-\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4-\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe-\uddbf\ude00-\ude03\ude05-\ude06\ude0c-\ude13\ude15-\ude17\ude19-\ude35\ude38-\ude3a\ude3f\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee6\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd27\udd30-\udd39\udf00-\udf1c\udf27\udf30-\udf50\udfe0-\udff6]|\ud804[\udc00-\udc46\udc66-\udc6f\udc7f-\udcba\udcd0-\udce8\udcf0-\udcf9\udd00-\udd34\udd36-\udd3f\udd44-\udd46\udd50-\udd73\udd76\udd80-\uddc4\uddc9-\uddcc\uddd0-\uddda\udddc\ude00-\ude11\ude13-\ude37\ude3e\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udeea\udef0-\udef9\udf00-\udf03\udf05-\udf0c\udf0f-\udf10\udf13-\udf28\udf2a-\udf30\udf32-\udf33\udf35-\udf39\udf3b-\udf44\udf47-\udf48\udf4b-\udf4d\udf50\udf57\udf5d-\udf63\udf66-\udf6c\udf70-\udf74]|\ud805[\udc00-\udc4a\udc50-\udc59\udc5e-\udc5f\udc80-\udcc5\udcc7\udcd0-\udcd9\udd80-\uddb5\uddb8-\uddc0\uddd8-\udddd\ude00-\ude40\ude44\ude50-\ude59\ude80-\udeb8\udec0-\udec9\udf00-\udf1a\udf1d-\udf2b\udf30-\udf39]|\ud806[\udc00-\udc3a\udca0-\udce9\udcff\udda0-\udda7\uddaa-\uddd7\uddda-\udde1\udde3-\udde4\ude00-\ude3e\ude47\ude50-\ude99\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc36\udc38-\udc40\udc50-\udc59\udc72-\udc8f\udc92-\udca7\udca9-\udcb6\udd00-\udd06\udd08-\udd09\udd0b-\udd36\udd3a\udd3c-\udd3d\udd3f-\udd47\udd50-\udd59\udd60-\udd65\udd67-\udd68\udd6a-\udd8e\udd90-\udd91\udd93-\udd98\udda0-\udda9\udee0-\udef6]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\ude60-\ude69\uded0-\udeed\udef0-\udef4\udf00-\udf36\udf40-\udf43\udf50-\udf59\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf4f-\udf87\udf8f-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99\udc9d-\udc9e]|\ud834[\udd65-\udd69\udd6d-\udd72\udd7b-\udd82\udd85-\udd8b\uddaa-\uddad\ude42-\ude44]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e-\udc9f\udca2\udca5-\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb\udfce-\udfff]|\ud836[\ude00-\ude36\ude3b-\ude6c\ude75\ude84\ude9b-\ude9f\udea1-\udeaf]|\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23-\udc24\udc26-\udc2a\udd00-\udd2c\udd30-\udd3d\udd40-\udd49\udd4e\udec0-\udef9]|\ud83a[\udc00-\udcc4\udcd0-\udcd6\udd00-\udd4b\udd50-\udd59]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21-\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51-\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61-\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d]|\udb40[\udd00-\uddef])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\})|[\u200c\u200d])*>/,function(){return en7(enj=enj.slice(3,-1),this.getCurrentState()),"NAMED_CAPTURE_GROUP"}],[/^\(/,function(){return"L_PAREN"}],[/^\)/,function(){return"R_PAREN"}],[/^[*?+[^$]/,function(){return"CHAR"}],[/^\\\]/,function(){return"ESC_CHAR"}],[/^\]/,function(){return this.popState(),"R_BRACKET"}],[/^\^/,function(){return"BOS"}],[/^\$/,function(){return"EOS"}],[/^\*/,function(){return"STAR"}],[/^\?/,function(){return"Q_MARK"}],[/^\+/,function(){return"PLUS"}],[/^\|/,function(){return"BAR"}],[/^\./,function(){return"ANY"}],[/^\//,function(){return"SLASH"}],[/^[^*?+\[()\\|]/,function(){return"CHAR"}],[/^\[\^/,function(){var e=this.getCurrentState();return this.pushState("u"===e||"xu"===e?"u_class":"class"),"NEG_CLASS"}],[/^\[/,function(){var e=this.getCurrentState();return this.pushState("u"===e||"xu"===e?"u_class":"class"),"L_BRACKET"}]],en$={INITIAL:[8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],u:[8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],xu:[0,1,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],x:[0,1,8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],u_class:[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],class:[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51]},enY={type:"$",value:""};enH={initString:function(e){return this._string=e,this._cursor=0,this._states=["INITIAL"],this._tokensQueue=[],this._currentLine=1,this._currentColumn=0,this._currentLineBeginOffset=0,this._tokenStartOffset=0,this._tokenEndOffset=0,this._tokenStartLine=1,this._tokenEndLine=1,this._tokenStartColumn=0,this._tokenEndColumn=0,this},getStates:function(){return this._states},getCurrentState:function(){return this._states[this._states.length-1]},pushState:function(e){this._states.push(e)},begin:function(e){this.pushState(e)},popState:function(){return this._states.length>1?this._states.pop():this._states[0]},getNextToken:function(){if(this._tokensQueue.length>0)return this.onToken(this._toToken(this._tokensQueue.shift()));if(!this.hasMoreTokens())return this.onToken(enY);for(var e=this._string.slice(this._cursor),t=en$[this.getCurrentState()],r=0;r<t.length;r++){var n=enz[t[r]],i=this._match(e,n[0]);if(""===e&&""===i&&this._cursor++,null!==i){(enj=i).length;var a=n[1].call(this);if(!a)return this.getNextToken();if(Array.isArray(a)){var s,o=a.slice(1);a=a[0],o.length>0&&(s=this._tokensQueue).unshift.apply(s,enR(o))}return this.onToken(this._toToken(a,enj))}}if(this.isEOF())return this._cursor++,enY;this.throwUnexpectedToken(e[0],this._currentLine,this._currentColumn)},throwUnexpectedToken:function(e,t,r){var n=this._string.split("\n")[t-1],i="";throw n&&(i="\n\n"+n+"\n"+" ".repeat(r)+"^\n"),SyntaxError(i+'Unexpected token: "'+e+'" '+("at "+t)+":"+r+".")},getCursor:function(){return this._cursor},getCurrentLine:function(){return this._currentLine},getCurrentColumn:function(){return this._currentColumn},_captureLocation:function(e){var t=/\n/g;this._tokenStartOffset=this._cursor,this._tokenStartLine=this._currentLine,this._tokenStartColumn=this._tokenStartOffset-this._currentLineBeginOffset;for(var r=void 0;null!==(r=t.exec(e));)this._currentLine++,this._currentLineBeginOffset=this._tokenStartOffset+r.index+1;this._tokenEndOffset=this._cursor+e.length,this._tokenEndLine=this._currentLine,this._tokenEndColumn=this._currentColumn=this._tokenEndOffset-this._currentLineBeginOffset},_toToken:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return{type:e,value:t,startOffset:this._tokenStartOffset,endOffset:this._tokenEndOffset,startLine:this._tokenStartLine,endLine:this._tokenEndLine,startColumn:this._tokenStartColumn,endColumn:this._tokenEndColumn}},isEOF:function(){return this._cursor===this._string.length},hasMoreTokens:function(){return this._cursor<=this._string.length},_match:function(e,t){var r=e.match(t);return r?(this._captureLocation(r[0]),this._cursor+=r[0].length,r[0]):null},onToken:function(e){return e}},enU.lexer=enH,enU.tokenizer=enH,enU.options={captureLocations:!0};var enQ={setOptions:function(e){return enU.options=e,this},getOptions:function(){return enU.options},parse:function(e,t){if(!enH)throw Error("Tokenizer instance wasn't specified.");enH.initString(e);var r=enU.options;t&&(enU.options=Object.assign({},enU.options,t)),enQ.onParseBegin(e,enH,enU.options),enK.length=0,enK.push(0);var n=enH.getNextToken(),i=null;do{n||(enU.options=r,eia());var a=enK[enK.length-1],s=enX[n.type];enG[a].hasOwnProperty(s)||(enU.options=r,eii(n));var o=enG[a][s];if("s"===o[0]){var u=null;enU.options.captureLocations&&(u={startOffset:n.startOffset,endOffset:n.endOffset,startLine:n.startLine,endLine:n.endLine,startColumn:n.startColumn,endColumn:n.endColumn}),i=this.onShift(n),enK.push({symbol:enX[i.type],semanticValue:i.value,loc:u},Number(o.slice(1))),n=enH.getNextToken()}else if("r"===o[0]){var l=enJ[o.slice(1)],c="function"==typeof l[2],p=c?[]:null,d=c&&enU.options.captureLocations?[]:null;if(0!==l[1])for(var f=l[1];f-- >0;){enK.pop();var h=enK.pop();c&&(p.unshift(h.semanticValue),d&&d.unshift(h.loc))}var m={symbol:l[0]};if(c){enj=i?i.value:null,i&&i.value.length;var y=null!==d?p.concat(d):p;l[2].apply(l,enR(y)),m.semanticValue=enV,d&&(m.loc=enW)}var v=enK[enK.length-1],g=l[0];enK.push(m,enG[v][g])}else if("acc"===o){enK.pop();var b=enK.pop();if((1!==enK.length||0!==enK[0]||enH.hasMoreTokens())&&(enU.options=r,eii(n)),b.hasOwnProperty("semanticValue"))return enU.options=r,enQ.onParseEnd(b.semanticValue),b.semanticValue;return enQ.onParseEnd(),enU.options=r,!0}}while(enH.hasMoreTokens()||enK.length>1)},setTokenizer:function(e){return enH=e,enQ},getTokenizer:function(){return enH},onParseBegin:function(e,t,r){},onParseEnd:function(e){},onShift:function(e){return e}},enZ=0,en0={},en1="";function en2(e){var t=e.match(/\d+/g).map(Number);if(Number.isFinite(t[1])&&t[1]<t[0])throw SyntaxError("Numbers out of order in "+e+" quantifier");return t}function en3(e,t){if("control"===e.kind||"control"===t.kind||!isNaN(e.codePoint)&&!isNaN(t.codePoint)&&e.codePoint>t.codePoint)throw SyntaxError("Range "+e.value+"-"+t.value+" out of order in character class")}enQ.onParseBegin=function(e,t){en1=e,enZ=0,en0={};var r=e.lastIndexOf("/"),n=e.slice(r);n.includes("x")&&n.includes("u")?t.pushState("xu"):(n.includes("x")&&t.pushState("x"),n.includes("u")&&t.pushState("u"))},enQ.onShift=function(e){return("L_PAREN"===e.type||"NAMED_CAPTURE_GROUP"===e.type)&&(e.value=new String(e.value),e.value.groupNumber=++enZ),e};var en4={isValidName:function(e){return enk.hasOwnProperty(e)||enC.hasOwnProperty(e)||enw.hasOwnProperty(e)||enI.hasOwnProperty(e)},isValidValue:function(e,t){return"General_Category"===e||"gc"==e?enF(t):!!("Script"===e||"Script_Extensions"===e||"sc"===e||"scx"===e)&&(enD.hasOwnProperty(t)||enL.hasOwnProperty(t))},isGeneralCategoryValue:enF,isBinaryPropertyName:function(e){return enw.hasOwnProperty(e)||enI.hasOwnProperty(e)},getCanonicalName:function(e){return enC.hasOwnProperty(e)?enC[e]:enI.hasOwnProperty(e)?enI[e]:null},getCanonicalValue:function(e){return enO.hasOwnProperty(e)?enO[e]:enL.hasOwnProperty(e)?enL[e]:enI.hasOwnProperty(e)?enI[e]:null}};function en5(e,t,r){var n=void 0,i=void 0;switch(t){case"decimal":n=String.fromCodePoint(i=Number(e.slice(1)));break;case"oct":n=String.fromCodePoint(i=parseInt(e.slice(1),8));break;case"hex":case"unicode":if(e.lastIndexOf("\\u")>0){var a=enB(e.split("\\u").slice(1),2),s=a[0],o=a[1];n=String.fromCodePoint(i=((s=parseInt(s,16))-55296)*1024+((o=parseInt(o,16))-56320)+65536)}else{if((i=parseInt(e.slice(2).replace("{",""),16))>1114111)throw SyntaxError("Bad character escape sequence: "+e);n=String.fromCodePoint(i)}break;case"meta":switch(e){case"\\t":i=(n=" ").codePointAt(0);break;case"\\n":i=(n="\n").codePointAt(0);break;case"\\r":i=(n="\r").codePointAt(0);break;case"\\v":i=(n="\v").codePointAt(0);break;case"\\f":i=(n="\f").codePointAt(0);break;case"\\b":i=(n="\b").codePointAt(0);case"\\0":n="\0",i=0;case".":n=".",i=NaN;break;default:i=NaN}break;case"simple":i=(n=e).codePointAt(0)}return eir({type:"Char",value:e,kind:t,symbol:n,codePoint:i},r)}var en8=/^\\u[0-9a-fA-F]{4}/,en6=/^\\u\{[0-9a-fA-F]{1,}\}/,en9=/\\u\{[0-9a-fA-F]{1,}\}/;function en7(e,t){if(en9.test(e)&&!("u"===t||"xu"===t||"u_class"===t))throw SyntaxError('invalid group Unicode name "'+e+'", use `u` flag.');return e}var eie=/\\u(?:([dD][89aAbB][0-9a-fA-F]{2})\\u([dD][c-fC-F][0-9a-fA-F]{2})|([dD][89aAbB][0-9a-fA-F]{2})|([dD][c-fC-F][0-9a-fA-F]{2})|([0-9a-ce-fA-CE-F][0-9a-fA-F]{3}|[dD][0-7][0-9a-fA-F]{2})|\{(0*(?:[0-9a-fA-F]{1,5}|10[0-9a-fA-F]{4}))\})/;function eit(e){return e.replace(RegExp(eie,"g"),function(e,t,r,n,i,a,s){return t?String.fromCodePoint(parseInt(t,16),parseInt(r,16)):n?String.fromCodePoint(parseInt(n,16)):i?String.fromCodePoint(parseInt(i,16)):a?String.fromCodePoint(parseInt(a,16)):s?String.fromCodePoint(parseInt(s,16)):e})}function eir(e,t){return enU.options.captureLocations&&(e.loc={source:en1.slice(t.startOffset,t.endOffset),start:{line:t.startLine,column:t.startColumn,offset:t.startOffset},end:{line:t.endLine,column:t.endColumn,offset:t.endOffset}}),e}function ein(e,t){return enU.options.captureLocations?{startOffset:e.startOffset,endOffset:t.endOffset,startLine:e.startLine,endLine:t.endLine,startColumn:e.startColumn,endColumn:t.endColumn}:null}function eii(e){"$"===e.type&&eia(),enH.throwUnexpectedToken(e.value,e.startLine,e.startColumn)}function eia(){!function(e){throw SyntaxError(e)}("Unexpected end of input.")}enQ.default;var eis=enQ.parse.bind(enQ);enQ.parse=function(e,t){return eis(""+e,t)},enQ.setOptions({captureLocations:!1}),enQ.default;var eio=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),eiu="expressions",eil="expression",eic=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this.node=t,this.parentPath=r,this.parent=r?r.node:null,this.property=n,this.index=i}return eio(e,[{key:"_enforceProp",value:function(e){if(!this.node.hasOwnProperty(e))throw Error("Node of type "+this.node.type+" doesn't have \""+e+'" collection.')}},{key:"setChild",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=void 0;return null!=r?(n||(n=eiu),this._enforceProp(n),this.node[n][r]=t,i=e.getForNode(t,this,n,r)):(n||(n=eil),this._enforceProp(n),this.node[n]=t,i=e.getForNode(t,this,n,null)),i}},{key:"appendChild",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t||(t=eiu),this._enforceProp(t);var r=this.node[t].length;return this.setChild(e,r,t)}},{key:"insertChildAt",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:eiu;this._enforceProp(n),this.node[n].splice(r,0,t),r<=e.getTraversingIndex()&&e.updateTraversingIndex(1),this._rebuildIndex(this.node,n)}},{key:"remove",value:function(){if(!this.isRemoved()&&(e.registry.delete(this.node),this.node=null,this.parent)){if(null!==this.index){this.parent[this.property].splice(this.index,1),this.index<=e.getTraversingIndex()&&e.updateTraversingIndex(-1),this._rebuildIndex(this.parent,this.property),this.index=null,this.property=null;return}delete this.parent[this.property],this.property=null}}},{key:"_rebuildIndex",value:function(t,r){for(var n=e.getForNode(t),i=0;i<t[r].length;i++)e.getForNode(t[r][i],n,r,i).index=i}},{key:"isRemoved",value:function(){return null===this.node}},{key:"replace",value:function(t){return(e.registry.delete(this.node),this.node=t,this.parent)?(null!==this.index?this.parent[this.property][this.index]=t:this.parent[this.property]=t,e.getForNode(t,this.parentPath,this.property,this.index)):null}},{key:"update",value:function(e){Object.assign(this.node,e)}},{key:"getParent",value:function(){return this.parentPath}},{key:"getChild",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.node.expressions?e.getForNode(this.node.expressions[t],this,eiu,t):this.node.expression&&0==t?e.getForNode(this.node.expression,this,eil):null}},{key:"hasEqualSource",value:function(e){return JSON.stringify(this.node,eip)===JSON.stringify(e.node,eip)}},{key:"jsonEncode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.format,r=e.useLoc;return JSON.stringify(this.node,r?null:eip,t)}},{key:"getPreviousSibling",value:function(){return this.parent&&null!=this.index?e.getForNode(this.parent[this.property][this.index-1],e.getForNode(this.parent),this.property,this.index-1):null}},{key:"getNextSibling",value:function(){return this.parent&&null!=this.index?e.getForNode(this.parent[this.property][this.index+1],e.getForNode(this.parent),this.property,this.index+1):null}}],[{key:"getForNode",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1;if(!t)return null;e.registry.has(t)||e.registry.set(t,new e(t,r,n,-1==i?null:i));var a=e.registry.get(t);return null!==r&&(a.parentPath=r,a.parent=a.parentPath.node),null!==n&&(a.property=n),i>=0&&(a.index=i),a}},{key:"initRegistry",value:function(){e.registry||(e.registry=new Map),e.registry.clear()}},{key:"updateTraversingIndex",value:function(t){return e.traversingIndexStack[e.traversingIndexStack.length-1]+=t}},{key:"getTraversingIndex",value:function(){return e.traversingIndexStack[e.traversingIndexStack.length-1]}}]),e}();function eip(e,t){if("loc"!==e)return t}eic.initRegistry(),eic.traversingIndexStack=[],eic.default;var eid=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{asNodes:!1};function n(e,t,r,n){var i=eic.getForNode(t);return eic.getForNode(e,i,r,n)}Array.isArray(t)||(t=[t]),t=t.filter(function(t){return"function"!=typeof t.shouldRun||t.shouldRun(e)}),eic.initRegistry(),t.forEach(function(t){"function"==typeof t.init&&t.init(e)}),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.pre,n=t.post,i=t.skipProperty;!function e(t,a,s,o){if(t&&"string"==typeof t.type){var u=void 0;if(r&&(u=r(t,a,s,o)),!1!==u){for(var l in a&&a[s]&&(t=isNaN(o)?a[s]:a[s][o]),t)if(t.hasOwnProperty(l)){if(i?i(l,t):"$"===l[0])continue;var c=t[l];if(Array.isArray(c)){var p=0;for(eic.traversingIndexStack.push(p);p<c.length;)e(c[p],t,l,p),p=eic.updateTraversingIndex(1);eic.traversingIndexStack.pop()}else e(c,t,l)}}n&&n(t,a,s,o)}}(e,null)}(e,{pre:function(e,i,a,s){var o=void 0;r.asNodes||(o=n(e,i,a,s));var u=!0,l=!1,c=void 0;try{for(var p,d=t[Symbol.iterator]();!(u=(p=d.next()).done);u=!0){var f=p.value;if("function"==typeof f["*"]){if(o){if(!o.isRemoved()){var h=f["*"](o);if(!1===h)return!1}}else f["*"](e,i,a,s)}var m=void 0;if("function"==typeof f[e.type]?m=f[e.type]:"object"==typeof f[e.type]&&"function"==typeof f[e.type].pre&&(m=f[e.type].pre),m){if(o){if(!o.isRemoved()){var y=m.call(f,o);if(!1===y)return!1}}else m.call(f,e,i,a,s)}}}catch(e){l=!0,c=e}finally{try{!u&&d.return&&d.return()}finally{if(l)throw c}}},post:function(e,i,a,s){if(e){var o=void 0;r.asNodes||(o=n(e,i,a,s));var u=!0,l=!1,c=void 0;try{for(var p,d=t[Symbol.iterator]();!(u=(p=d.next()).done);u=!0){var f=p.value,h=void 0;if("object"==typeof f[e.type]&&"function"==typeof f[e.type].post&&(h=f[e.type].post),h){if(o){if(!o.isRemoved()){var m=h.call(f,o);if(!1===m)return!1}}else h.call(f,e,i,a,s)}}}catch(e){l=!0,c=e}finally{try{!u&&d.return&&d.return()}finally{if(l)throw c}}}},skipProperty:function(e){return"loc"===e}})},eif=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),eih=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this._ast=t,this._source=null,this._string=null,this._regexp=null,this._extra=r}return eif(e,[{key:"getAST",value:function(){return this._ast}},{key:"setExtra",value:function(e){this._extra=e}},{key:"getExtra",value:function(){return this._extra}},{key:"toRegExp",value:function(){return this._regexp||(this._regexp=new RegExp(this.getSource(),this._ast.flags)),this._regexp}},{key:"getSource",value:function(){return this._source||(this._source=enA.generate(this._ast.body)),this._source}},{key:"getFlags",value:function(){return this._ast.flags}},{key:"toString",value:function(){return this._string||(this._string=enA.generate(this._ast)),this._string}}]),e}(),eim=function(e,t){var r=e;return e instanceof RegExp&&(e=""+e),"string"==typeof e&&(r=enQ.parse(e,{captureLocations:!0})),eid(r,t),new eih(r)},eiy={dotAll:enx,namedCapturingGroups:enT,xFlag:enE},eiv=function e(t){if("Disjunction"!==t.type)throw TypeError('Expected "Disjunction" node, got "'+t.type+'"');var r=[];return t.left&&"Disjunction"===t.left.type?r.push.apply(r,(function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r})(e(t.left)).concat([t.right])):r.push(t.left,t.right),r},eig=function(e){"*"===e.kind?e.kind="+":"+"===e.kind?(e.kind="Range",e.from=2,delete e.to):"?"===e.kind?(e.kind="Range",e.from=1,e.to=2):"Range"===e.kind&&(e.from+=1,e.to&&(e.to+=1))};function eib(e){return e.greedy&&("+"===e.kind||"*"===e.kind||"Range"===e.kind&&!e.to)}function eiS(e){var t=void 0,r=void 0;return"*"===e.kind?t=0:"+"===e.kind?t=1:"?"===e.kind?(t=0,r=1):(t=e.from,e.to&&(r=e.to)),{from:t,to:r}}function eix(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}var eiT=[function(e){return eiE(e," ")}].concat(eix(["\\f","\\n","\\r","\\t","\\v"].map(function(e){return function(t){return ei_(t,e)}})),eix([160,5760,8232,8233,8239,8287,12288,65279].map(function(e){return function(t){return eiP(t,e)}})),[function(e){return"ClassRange"===e.type&&eiP(e.from,8192)&&eiP(e.to,8202)}]);function eiE(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"simple";return"Char"===e.type&&e.value===t&&e.kind===r}function ei_(e,t){return eiE(e,t,"meta")}function eiP(e,t){return"Char"===e.type&&"unicode"===e.kind&&e.codePoint===t}function eiA(e,t,r){for(var n=e,i=(r?n>=0:n<t.expressions.length)&&t.expressions[n];i&&"Char"===i.type&&"simple"===i.kind&&!i.escaped&&/\d/.test(i.value);)r?n--:n++,i=(r?n>=0:n<t.expressions.length)&&t.expressions[n];return Math.abs(e-n)}function eik(e,t){return e&&"Char"===e.type&&"simple"===e.kind&&!e.escaped&&e.value===t}function eiC(e,t){var r=eiw(e),n=eiw(t);if(r===n){if("ClassRange"===e.type&&"ClassRange"!==t.type)return -1;if("ClassRange"===t.type&&"ClassRange"!==e.type)return 1;if("ClassRange"===e.type&&"ClassRange"===t.type)return eiw(e.to)-eiw(t.to);if(eiI(e)&&eiI(t)||eiN(e)&&eiN(t))return e.value<t.value?-1:1}return r-n}function eiw(e){return"Char"===e.type?"-"===e.value||"control"===e.kind?1/0:"meta"===e.kind&&isNaN(e.codePoint)?-1:e.codePoint:e.from.codePoint}function eiI(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return"Char"===e.type&&"meta"===e.kind&&(t?e.value===t:/^\\[dws]$/i.test(e.value))}function eiN(e){return"Char"===e.type&&"control"===e.kind}function eiO(e){return 9===e.codePoint||10===e.codePoint||11===e.codePoint||12===e.codePoint||13===e.codePoint||32===e.codePoint||160===e.codePoint||5760===e.codePoint||e.codePoint>=8192&&e.codePoint<=8202||8232===e.codePoint||8233===e.codePoint||8239===e.codePoint||8287===e.codePoint||12288===e.codePoint||65279===e.codePoint}function eiD(e){return e.codePoint>=48&&e.codePoint<=57}function eiL(e,t){return eiD(e)||e.codePoint>=65&&e.codePoint<=90||e.codePoint>=97&&e.codePoint<=122||"_"===e.value||t&&(383===e.codePoint||8490===e.codePoint)}function eiM(e){return e&&"Char"===e.type&&!isNaN(e.codePoint)&&(eiL(e,!1)||"unicode"===e.kind||"hex"===e.kind||"oct"===e.kind||"decimal"===e.kind)}var eiF={RegExp:function(e,t){e.node.body=t},Group:function(e,t){var r=e.node;r.capturing?r.expression=t:e.replace(t)}};function eiB(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}function eiR(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}var eij=new Map([["charSurrogatePairToSingleUnicode",{shouldRun:function(e){return e.flags.includes("u")},Char:function(e){var t=e.node;"unicode"!==t.kind||!t.isSurrogatePair||isNaN(t.codePoint)||(t.value="\\u{"+t.codePoint.toString(16)+"}",delete t.isSurrogatePair)}}],["charCodeToSimpleChar",{Char:function(e){var t=e.node,r=e.parent;if(!isNaN(t.codePoint)&&"simple"!==t.kind&&("ClassRange"!==r.type||(n=r.from,i=r.to,n.codePoint>=48&&n.codePoint<=57&&i.codePoint>=48&&i.codePoint<=57||n.codePoint>=65&&n.codePoint<=90&&i.codePoint>=65&&i.codePoint<=90||n.codePoint>=97&&n.codePoint<=122&&i.codePoint>=97&&i.codePoint<=122))&&(a=t.codePoint)>=32&&a<=126){var n,i,a,s,o=String.fromCodePoint(t.codePoint),u={type:"Char",kind:"simple",value:o,symbol:o,codePoint:t.codePoint};("ClassRange"===(s=r.type)||"CharacterClass"===s?/[\]\\^-]/.test(o):/[*[()+?^$./\\|{}]/.test(o))&&(u.escaped=!0),e.replace(u)}}}],["charCaseInsensitiveLowerCaseTransform",{_AZClassRanges:null,_hasUFlag:!1,init:function(e){this._AZClassRanges=new Set,this._hasUFlag=e.flags.includes("u")},shouldRun:function(e){return e.flags.includes("i")},Char:function(e){var t,r,n=e.node,i=e.parent;if(!isNaN(n.codePoint)&&(this._hasUFlag||!(n.codePoint>=4096))){if("ClassRange"===i.type){if(!this._AZClassRanges.has(i)&&(t=i.from,r=i.to,!(t.codePoint>=65)||!(t.codePoint<=90)||!(r.codePoint>=65)||!(r.codePoint<=90)))return;this._AZClassRanges.add(i)}var a=n.symbol.toLowerCase();a!==n.symbol&&(n.value=function(e,t){var r=e.codePointAt(0);if("decimal"===t.kind)return"\\"+r;if("oct"===t.kind)return"\\0"+r.toString(8);if("hex"===t.kind)return"\\x"+r.toString(16);if("unicode"===t.kind){if(t.isSurrogatePair){var n={lead:(Math.floor((r-65536)/1024)+55296).toString(16),trail:((r-65536)%1024+56320).toString(16)},i=n.lead,a=n.trail;return"\\u"+"0".repeat(4-i.length)+i+"\\u"+"0".repeat(4-a.length)+a}if(t.value.includes("{"))return"\\u{"+r.toString(16)+"}";var s=r.toString(16);return"\\u"+"0".repeat(4-s.length)+s}return e}(a,n),n.symbol=a,n.codePoint=a.codePointAt(0))}}}],["charClassRemoveDuplicates",{CharacterClass:function(e){for(var t=e.node,r={},n=0;n<t.expressions.length;n++){var i=e.getChild(n),a=i.jsonEncode();r.hasOwnProperty(a)&&(i.remove(),n--),r[a]=!0}}}],["quantifiersMerge",{Repetition:function(e){var t=e.node;if("Alternative"===e.parent.type&&e.index){var r=e.getPreviousSibling();if(r){if("Repetition"===r.node.type){if(!r.getChild().hasEqualSource(e.getChild()))return;var n=eiS(r.node.quantifier),i=n.from,a=n.to,s=eiS(t.quantifier),o=s.from,u=s.to;if(r.node.quantifier.greedy!==t.quantifier.greedy&&!eib(r.node.quantifier)&&!eib(t.quantifier))return;t.quantifier.kind="Range",t.quantifier.from=i+o,a&&u?t.quantifier.to=a+u:delete t.quantifier.to,(eib(r.node.quantifier)||eib(t.quantifier))&&(t.quantifier.greedy=!0),r.remove()}else{if(!r.hasEqualSource(e.getChild()))return;eig(t.quantifier),r.remove()}}}}}],["quantifierRangeToSymbol",{Quantifier:function(e){if("Range"===e.node.kind){var t,r,n;0!==(t=e.node).from||t.to||(t.kind="*",delete t.from),1!==(r=e.node).from||r.to||(r.kind="+",delete r.from),1===(n=e.node).from&&1===n.to&&e.parentPath.replace(e.parentPath.node.expression)}}}],["charClassClassrangesToChars",{ClassRange:function(e){var t=e.node;t.from.codePoint===t.to.codePoint?e.replace(t.from):t.from.codePoint===t.to.codePoint-1&&(e.getParent().insertChildAt(t.to,e.index+1),e.replace(t.from))}}],["charClassToMeta",{_hasIFlag:!1,_hasUFlag:!1,init:function(e){this._hasIFlag=e.flags.includes("i"),this._hasUFlag=e.flags.includes("u")},CharacterClass:function(e){var t,r,n,i,a,s,o,u,l;(function(e){e.node.expressions.forEach(function(t,r){"ClassRange"===t.type&&"0"===t.from.value&&"9"===t.to.value&&e.getChild(r).replace({type:"Char",value:"\\d",kind:"meta"})})})(e),t=this._hasIFlag,r=this._hasUFlag,n=e.node,i=null,a=null,s=null,o=null,u=null,l=null,n.expressions.forEach(function(n,c){ei_(n,"\\d")?i=e.getChild(c):"ClassRange"===n.type&&"a"===n.from.value&&"z"===n.to.value?a=e.getChild(c):"ClassRange"===n.type&&"A"===n.from.value&&"Z"===n.to.value?s=e.getChild(c):"Char"===n.type&&"_"===n.value&&"simple"===n.kind?o=e.getChild(c):t&&r&&eiP(n,383)?u=e.getChild(c):t&&r&&eiP(n,8490)&&(l=e.getChild(c))}),i&&(a&&s||t&&(a||s))&&o&&(!r||!t||u&&l)&&(i.replace({type:"Char",value:"\\w",kind:"meta"}),a&&a.remove(),s&&s.remove(),o.remove(),u&&u.remove(),l&&l.remove()),function(e){var t=e.node;if(!(t.expressions.length<eiT.length)&&eiT.every(function(e){return t.expressions.some(function(t){return e(t)})})){var r=t.expressions.find(function(e){return ei_(e,"\\n")});r.value="\\s",r.symbol=void 0,r.codePoint=NaN,t.expressions.map(function(t,r){return eiT.some(function(e){return e(t)})?e.getChild(r):void 0}).filter(Boolean).forEach(function(e){return e.remove()})}}(e)}}],["charClassToSingleChar",{CharacterClass:function(e){var t=e.node;if(1===t.expressions.length&&function(e){var t=e.parent,r=e.index;if("Alternative"!==t.type)return!0;var n=t.expressions[r-1];return null==n||("Backreference"!==n.type||"number"!==n.kind)&&("Char"!==n.type||"decimal"!==n.kind)}(e)&&"Char"===(r=t.expressions[0]).type&&"\\b"!==r.value){var r,n,i,a,s=t.expressions[0],o=s.value,u=s.kind,l=s.escaped;if(t.negative){if(n=o,!/^\\[dwsDWS]$/.test(n))return;i=o,o=/[dws]/.test(i)?i.toUpperCase():i.toLowerCase()}e.replace({type:"Char",value:o,kind:u,escaped:l||(a=o,/[*[()+?$./{}|]/.test(a))})}}}],["charEscapeUnescape",{_hasXFlag:!1,init:function(e){this._hasXFlag=e.flags.includes("x")},Char:function(e){var t,r,n,i,a=e.node;a.escaped&&(t=this._hasXFlag,r=e.node.value,n=e.index,("CharacterClass"!==(i=e.parent).type&&"ClassRange"!==i.type?"{"===r?function(e,t){if(null==e)return!1;var r=eiA(e+1,t),n=e+r+1,i=n<t.expressions.length&&t.expressions[n];if(r){if(eik(i,"}"))return!0;if(eik(i,","))return r=eiA(n+1,t),eik(i=(n=n+r+1)<t.expressions.length&&t.expressions[n],"}")}return!1}(n,i):"}"===r?function(e,t){if(null==e)return!1;var r=eiA(e-1,t,!0),n=e-r-1,i=n>=0&&t.expressions[n];return!!(r&&eik(i,"{"))||!!eik(i,",")&&(r=eiA(n-1,t,!0),i=(n=n-r-1)<t.expressions.length&&t.expressions[n],r&&eik(i,"{"))}(n,i):!!(t&&/[ #]/.test(r))||/[*[()+?^$./\\|]/.test(r):"^"===r?0===n&&!i.negative:"-"===r||/[\]\\]/.test(r))||delete a.escaped)}}],["charClassClassrangesMerge",{_hasIUFlags:!1,init:function(e){this._hasIUFlags=e.flags.includes("i")&&e.flags.includes("u")},CharacterClass:function(e){var t=e.node.expressions,r=[];t.forEach(function(e){eiI(e)&&r.push(e.value)}),t.sort(eiC);for(var n=0;n<t.length;n++){var i,a=t[n];if(function(e,t,r){for(var n=0;n<t.length;n++)if(function e(t,r,n){return"ClassRange"===t.type?e(t.from,r,n)&&e(t.to,r,n):!!("\\S"===r&&(eiI(t,"\\w")||eiI(t,"\\d"))||"\\D"===r&&(eiI(t,"\\W")||eiI(t,"\\s"))||"\\w"===r&&eiI(t,"\\d")||"\\W"===r&&eiI(t,"\\s"))||!("Char"!==t.type||isNaN(t.codePoint))&&("\\s"===r?eiO(t):"\\S"===r?!eiO(t):"\\d"===r?eiD(t):"\\D"===r?!eiD(t):"\\w"===r?eiL(t,n):"\\W"===r&&!eiL(t,n))}(e,t[n],r))return!0;return!1}(a,r,this._hasIUFlags)||function(e,t){if(t&&"ClassRange"===t.type){if(function e(t,r){return!("Char"===t.type&&isNaN(t.codePoint))&&("ClassRange"===t.type?e(t.from,r)&&e(t.to,r):t.codePoint>=r.from.codePoint&&t.codePoint<=r.to.codePoint)}(e,t))return!0;if(eiM(e)&&t.to.codePoint===e.codePoint-1)return t.to=e,!0;if("ClassRange"===e.type&&e.from.codePoint<=t.to.codePoint+1&&e.to.codePoint>=t.from.codePoint-1)return e.from.codePoint<t.from.codePoint&&(t.from=e.from),e.to.codePoint>t.to.codePoint&&(t.to=e.to),!0}return!1}(a,t[n-1])||(i=t[n+1])&&"ClassRange"===i.type&&eiM(a)&&i.from.codePoint===a.codePoint+1&&(i.from=a,1))t.splice(n,1),n--;else{var s=function(e,t,r){if(!eiM(e))return 0;for(var n=0;t>0;){var i=r[t],a=r[t-1];if(eiM(a)&&a.codePoint===i.codePoint-1)n++,t--;else break}return n>1?(r[t]={type:"ClassRange",from:r[t],to:e},n):0}(a,n,t);t.splice(n-s+1,s),n-=s}}}}],["disjunctionRemoveDuplicates",{Disjunction:function(e){var t=e.node,r={},n=eiv(t).filter(function(e){var t=e?eic.getForNode(e).jsonEncode():"null";return!r.hasOwnProperty(t)&&(r[t]=e,!0)});e.replace(n.reduce(function(e,t){return{type:"Disjunction",left:e,right:t}}))}}],["groupSingleCharsToCharClass",{Disjunction:function(e){var t=e.node,r=e.parent;if(eiF[r.type]){var n=new Map;if(function e(t,r){if(!t)return!1;var n=t.type;if("Disjunction"===n){var i=t.left,a=t.right;return e(i,r)&&e(a,r)}if("Char"===n){if("meta"===t.kind&&"."===t.symbol)return!1;var s=t.value;return r.set(s,t),!0}return"CharacterClass"===n&&!t.negative&&t.expressions.every(function(t){return e(t,r)})}(t,n)&&n.size){var i={type:"CharacterClass",expressions:Array.from(n.keys()).sort().map(function(e){return n.get(e)})};eiF[r.type](e.getParent(),i)}}}}],["removeEmptyGroup",{Group:function(e){var t=e.node,r=e.parent,n=e.getChild();t.capturing||n||("Repetition"===r.type?e.getParent().replace(t):"RegExp"!==r.type&&e.remove())}}],["ungroup",{Group:function(e){var t=e.node,r=e.parent,n=e.getChild();if(!t.capturing&&n&&function(e){var t=e.parent,r=e.index;if("Alternative"!==t.type)return!0;var n=t.expressions[r-1];return null==n||("Backreference"!==n.type||"number"!==n.kind)&&("Char"!==n.type||"decimal"!==n.kind)}(e)&&("Disjunction"!==n.node.type||"RegExp"===r.type)&&("Repetition"!==r.type||"Char"===n.node.type||"CharacterClass"===n.node.type)){if("Alternative"===n.node.type){var i=e.getParent();"Alternative"===i.node.type&&i.replace({type:"Alternative",expressions:[].concat(eiB(r.expressions.slice(0,e.index)),eiB(n.node.expressions),eiB(r.expressions.slice(e.index+1)))})}else e.replace(n.node)}}}],["combineRepeatingPatterns",{Alternative:function(e){for(var t=e.node,r=1;r<t.expressions.length;){var n=e.getChild(r);if((r=Math.max(1,function(e,t,r){for(var n=e.node,i=Math.ceil(r/2),a=0;a<i;){var s=r-2*a-1,o=void 0,u=void 0;if(0===a?(o=t,u=e.getChild(s)):(o=eic.getForNode({type:"Alternative",expressions:[].concat(eiR(n.expressions.slice(r-a,r)),[t.node])}),u=eic.getForNode({type:"Alternative",expressions:[].concat(eiR(n.expressions.slice(s,r-a)))})),o.hasEqualSource(u)){for(var l=0;l<2*a+1;l++)e.getChild(s).remove();return t.replace({type:"Repetition",expression:0===a&&"Repetition"!==o.node.type?o.node:{type:"Group",capturing:!1,expression:o.node},quantifier:{type:"Quantifier",kind:"Range",from:2,to:2,greedy:!0}}),s}a++}return r}(e,n,r)))>=t.expressions.length||(n=e.getChild(r),(r=Math.max(1,function(e,t,r){for(var n=e.node,i=0;i<r;){var a=e.getChild(i);if("Repetition"===a.node.type&&a.node.quantifier.greedy){var s=a.getChild(),o=void 0;if("Group"!==s.node.type||s.node.capturing||(s=s.getChild()),i+1===r?"Group"!==(o=t).node.type||o.node.capturing||(o=o.getChild()):o=eic.getForNode({type:"Alternative",expressions:[].concat(eiR(n.expressions.slice(i+1,r+1)))}),s.hasEqualSource(o)){for(var u=i;u<r;u++)e.getChild(i+1).remove();return eig(a.node.quantifier),i}}i++}return r}(e,n,r)))>=t.expressions.length))break;n=e.getChild(r),r=Math.max(1,function(e,t,r){var n=e.node;if("Repetition"===t.node.type&&t.node.quantifier.greedy){var i=t.getChild(),a=void 0;"Group"!==i.node.type||i.node.capturing||(i=i.getChild());var s=void 0;if("Alternative"===i.node.type?(s=i.node.expressions.length,a=eic.getForNode({type:"Alternative",expressions:[].concat(eiR(n.expressions.slice(r-s,r)))})):(s=1,"Group"!==(a=e.getChild(r-1)).node.type||a.node.capturing||(a=a.getChild())),a.hasEqualSource(i)){for(var o=r-s;o<r;o++)e.getChild(r-s).remove();return eig(t.node.quantifier),r-s}}return r}(e,n,r)),r++}}}]]);eij.default;var eiU=function e(t){if(null===t||"object"!=typeof t)return t;var r=void 0;for(var n in r=Array.isArray(t)?[]:{},t)r[n]=e(t[n]);return r},eiV=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var s,o=e[Symbol.iterator]();!(n=(s=o.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(e){i=!0,a=e}finally{try{!n&&o.return&&o.return()}finally{if(i)throw a}}return r}(e,t);throw TypeError("Invalid attempt to destructure non-iterable instance")},eiW=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),eiq=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this.in=t,this.out=r}return eiW(e,[{key:"matches",value:function(e){return this.in.matches(e)}},{key:"getAlphabet",value:function(){if(!this._alphabet){this._alphabet=new Set;var e=this.getTransitionTable();for(var t in e){var r=e[t];for(var n in r)"ε*"!==n&&this._alphabet.add(n)}}return this._alphabet}},{key:"getAcceptingStates",value:function(){return this._acceptingStates||this.getTransitionTable(),this._acceptingStates}},{key:"getAcceptingStateNumbers",value:function(){if(!this._acceptingStateNumbers){this._acceptingStateNumbers=new Set;var e=!0,t=!1,r=void 0;try{for(var n,i=this.getAcceptingStates()[Symbol.iterator]();!(e=(n=i.next()).done);e=!0){var a=n.value;this._acceptingStateNumbers.add(a.number)}}catch(e){t=!0,r=e}finally{try{!e&&i.return&&i.return()}finally{if(t)throw r}}}return this._acceptingStateNumbers}},{key:"getTransitionTable",value:function(){var e=this;if(!this._transitionTable){this._transitionTable={},this._acceptingStates=new Set;var t=new Set,r=new Set;(function n(i){if(!t.has(i)){t.add(i),i.number=t.size,e._transitionTable[i.number]={},i.accepting&&e._acceptingStates.add(i);var a=i.getTransitions(),s=!0,o=!1,u=void 0;try{for(var l,c=a[Symbol.iterator]();!(s=(l=c.next()).done);s=!0){var p=l.value,d=eiV(p,2),f=d[0],h=d[1],m=[];r.add(f);var y=!0,v=!1,g=void 0;try{for(var b,S=h[Symbol.iterator]();!(y=(b=S.next()).done);y=!0){var x=b.value;n(x),m.push(x.number)}}catch(e){v=!0,g=e}finally{try{!y&&S.return&&S.return()}finally{if(v)throw g}}e._transitionTable[i.number][f]=m}}catch(e){o=!0,u=e}finally{try{!s&&c.return&&c.return()}finally{if(o)throw u}}}})(this.in),t.forEach(function(t){delete e._transitionTable[t.number]["ε"],e._transitionTable[t.number]["ε*"]=[].concat(function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}(t.getEpsilonClosure())).map(function(e){return e.number})})}return this._transitionTable}}]),e}();eiq.default;var eiJ=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var s,o=e[Symbol.iterator]();!(n=(s=o.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(e){i=!0,a=e}finally{try{!n&&o.return&&o.return()}finally{if(i)throw a}}return r}(e,t);throw TypeError("Invalid attempt to destructure non-iterable instance")};function eiX(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}var eiG=null,eiK=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function eiH(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}var eiz=function(e){var t=e.getTransitionTable(),r=Object.keys(t),n=e.getAlphabet(),i=e.getAcceptingStateNumbers();eiG={};var a=new Set;r.forEach(function(e){e=Number(e),i.has(e)?eiG[e]=i:(a.add(e),eiG[e]=a)});var s=[[a,i].filter(function(e){return e.size>0})],o=void 0,u=void 0;for(o=s[s.length-1],u=s[s.length-2];!function(e,t){if(!t||e.length!==t.length)return!1;for(var r=0;r<e.length;r++){var n=e[r],i=t[r];if(n.size!==i.size||[].concat(eiX(n)).sort().join(",")!==[].concat(eiX(i)).sort().join(","))return!1}return!0}(o,u);)!function(){var e={},r=!0,i=!1,a=void 0;try{for(var l,c=o[Symbol.iterator]();!(r=(l=c.next()).done);r=!0){var p=l.value,d={},f=Array.isArray(p)?p:Array.from(p),h=f[0],m=f.slice(1);d[h]=new Set([h]);var y=!0,v=!1,g=void 0;try{n:for(var b,S=m[Symbol.iterator]();!(y=(b=S.next()).done);y=!0){var x=b.value,T=!0,E=!1,_=void 0;try{for(var P,A=Object.keys(d)[Symbol.iterator]();!(T=(P=A.next()).done);T=!0){var k=P.value;if(function(e,t,r,n){var i=!0,a=!1,s=void 0;try{for(var o,u=n[Symbol.iterator]();!(i=(o=u.next()).done);i=!0){var l=o.value;if(!function(e,t,r,n){if(!eiG[e]||!eiG[t])return!1;var i=r[e][n],a=r[t][n];return!i&&!a||eiG[e].has(i)&&eiG[t].has(a)}(e,t,r,l))return!1}}catch(e){a=!0,s=e}finally{try{!i&&u.return&&u.return()}finally{if(a)throw s}}return!0}(x,k,t,n)){d[k].add(x),d[x]=d[k];continue n}}}catch(e){E=!0,_=e}finally{try{!T&&A.return&&A.return()}finally{if(E)throw _}}d[x]=new Set([x])}}catch(e){v=!0,g=e}finally{try{!y&&S.return&&S.return()}finally{if(v)throw g}}Object.assign(e,d)}}catch(e){i=!0,a=e}finally{try{!r&&c.return&&c.return()}finally{if(i)throw a}}eiG=e;var C=new Set(Object.keys(e).map(function(t){return e[t]}));s.push([].concat(eiX(C))),o=s[s.length-1],u=s[s.length-2]}();var l=new Map,c=1;o.forEach(function(e){return l.set(e,c++)});var p={},d=new Set,f=!0,h=!1,m=void 0;try{for(var y,v=l.entries()[Symbol.iterator]();!(f=(y=v.next()).done);f=!0){var g=y.value,b=eiJ(g,2),S=b[0],x=b[1];p[x]={};var T=!0,E=!1,_=void 0;try{for(var P,A=n[Symbol.iterator]();!(T=(P=A.next()).done);T=!0){var k=P.value;!function(e,t){var r=!0,n=!1,a=void 0;try{for(var s,o=e[Symbol.iterator]();!(r=(s=o.next()).done);r=!0){var u=s.value;i.has(u)&&d.add(t)}}catch(e){n=!0,a=e}finally{try{!r&&o.return&&o.return()}finally{if(n)throw a}}}(S,x);var C=void 0,w=!0,I=!1,N=void 0;try{for(var O,D=S[Symbol.iterator]();!(w=(O=D.next()).done)&&!(C=t[O.value][k]);w=!0);}catch(e){I=!0,N=e}finally{try{!w&&D.return&&D.return()}finally{if(I)throw N}}C&&(p[x][k]=l.get(eiG[C]))}}catch(e){E=!0,_=e}finally{try{!T&&A.return&&A.return()}finally{if(E)throw _}}}}catch(e){h=!0,m=e}finally{try{!f&&v.return&&v.return()}finally{if(h)throw m}}return e.setTransitionTable(p),e.setAcceptingStateNumbers(d),e},ei$=function(){function e(t){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this._nfa=t}return eiK(e,[{key:"minimize",value:function(){this.getTransitionTable(),this._originalAcceptingStateNumbers=this._acceptingStateNumbers,this._originalTransitionTable=this._transitionTable,eiz(this)}},{key:"getAlphabet",value:function(){return this._nfa.getAlphabet()}},{key:"getAcceptingStateNumbers",value:function(){return this._acceptingStateNumbers||this.getTransitionTable(),this._acceptingStateNumbers}},{key:"getOriginaAcceptingStateNumbers",value:function(){return this._originalAcceptingStateNumbers||this.getTransitionTable(),this._originalAcceptingStateNumbers}},{key:"setTransitionTable",value:function(e){this._transitionTable=e}},{key:"setAcceptingStateNumbers",value:function(e){this._acceptingStateNumbers=e}},{key:"getTransitionTable",value:function(){var e=this;if(this._transitionTable)return this._transitionTable;var t=this._nfa.getTransitionTable(),r=Object.keys(t);this._acceptingStateNumbers=new Set;for(var n=[t[r[0]]["ε*"]],i=this.getAlphabet(),a=this._nfa.getAcceptingStateNumbers(),s={};n.length>0;){var o=n.shift(),u=o.join(",");s[u]={};var l=!0,c=!1,p=void 0;try{for(var d,f=i[Symbol.iterator]();!(l=(d=f.next()).done);l=!0){var h=d.value,m=[];!function(t){var r=!0,n=!1,i=void 0;try{for(var s,o=a[Symbol.iterator]();!(r=(s=o.next()).done);r=!0){var u=s.value;if(-1!==t.indexOf(u)){e._acceptingStateNumbers.add(t.join(","));break}}}catch(e){n=!0,i=e}finally{try{!r&&o.return&&o.return()}finally{if(n)throw i}}}(o);var y=!0,v=!1,g=void 0;try{for(var b,S=o[Symbol.iterator]();!(y=(b=S.next()).done);y=!0){var x=t[b.value][h];if(x){var T=!0,E=!1,_=void 0;try{for(var P,A=x[Symbol.iterator]();!(T=(P=A.next()).done);T=!0){var k=P.value;t[k]&&m.push.apply(m,eiH(t[k]["ε*"]))}}catch(e){E=!0,_=e}finally{try{!T&&A.return&&A.return()}finally{if(E)throw _}}}}}catch(e){v=!0,g=e}finally{try{!y&&S.return&&S.return()}finally{if(v)throw g}}var C=new Set(m),w=[].concat(eiH(C));if(w.length>0){var I=w.join(",");s[u][h]=I,s.hasOwnProperty(I)||n.unshift(w)}}}catch(e){c=!0,p=e}finally{try{!l&&f.return&&f.return()}finally{if(c)throw p}}}return this._transitionTable=this._remapStateNumbers(s)}},{key:"_remapStateNumbers",value:function(e){var t={};this._originalTransitionTable=e;var r={};for(var n in Object.keys(e).forEach(function(e,r){t[e]=r+1}),e){var i=e[n],a={};for(var s in i)a[s]=t[i[s]];r[t[n]]=a}this._originalAcceptingStateNumbers=this._acceptingStateNumbers,this._acceptingStateNumbers=new Set;var o=!0,u=!1,l=void 0;try{for(var c,p=this._originalAcceptingStateNumbers[Symbol.iterator]();!(o=(c=p.next()).done);o=!0){var d=c.value;this._acceptingStateNumbers.add(t[d])}}catch(e){u=!0,l=e}finally{try{!o&&p.return&&p.return()}finally{if(u)throw l}}return r}},{key:"getOriginalTransitionTable",value:function(){return this._originalTransitionTable||this.getTransitionTable(),this._originalTransitionTable}},{key:"matches",value:function(e){for(var t=1,r=0,n=this.getTransitionTable();e[r];)if(!(t=n[t][e[r++]]))return!1;return!!this.getAcceptingStateNumbers().has(t)}}]),e}();ei$.default;var eiY=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),eiQ=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.accepting;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this._transitions=new Map,this.accepting=void 0!==r&&r}return eiY(e,[{key:"getTransitions",value:function(){return this._transitions}},{key:"addTransition",value:function(e,t){return this.getTransitionsOnSymbol(e).add(t),this}},{key:"getTransitionsOnSymbol",value:function(e){var t=this._transitions.get(e);return t||(t=new Set,this._transitions.set(e,t)),t}}]),e}();eiQ.default;var eiZ=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),ei0=function(e){function t(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}(t,e),eiZ(t,[{key:"matches",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;if(t.has(this))return!1;if(t.add(this),0===e.length){if(this.accepting)return!0;var r=!0,n=!1,i=void 0;try{for(var a,s=this.getTransitionsOnSymbol("ε")[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(a.value.matches("",t))return!0}catch(e){n=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(n)throw i}}return!1}var o=e[0],u=e.slice(1),l=this.getTransitionsOnSymbol(o),c=!0,p=!1,d=void 0;try{for(var f,h=l[Symbol.iterator]();!(c=(f=h.next()).done);c=!0)if(f.value.matches(u))return!0}catch(e){p=!0,d=e}finally{try{!c&&h.return&&h.return()}finally{if(p)throw d}}var m=!0,y=!1,v=void 0;try{for(var g,b=this.getTransitionsOnSymbol("ε")[Symbol.iterator]();!(m=(g=b.next()).done);m=!0)if(g.value.matches(e,t))return!0}catch(e){y=!0,v=e}finally{try{!m&&b.return&&b.return()}finally{if(y)throw v}}return!1}},{key:"getEpsilonClosure",value:function(){var e=this;return this._epsilonClosure||function(){var t=e.getTransitionsOnSymbol("ε"),r=e._epsilonClosure=new Set;r.add(e);var n=!0,i=!1,a=void 0;try{for(var s,o=t[Symbol.iterator]();!(n=(s=o.next()).done);n=!0){var u=s.value;r.has(u)||(r.add(u),u.getEpsilonClosure().forEach(function(e){return r.add(e)}))}}catch(e){i=!0,a=e}finally{try{!n&&o.return&&o.return()}finally{if(i)throw a}}}(),this._epsilonClosure}}]),t}(eiQ);ei0.default;function ei1(e){var t=new ei0,r=new ei0({accepting:!0});return new eiq(t.addTransition(e,r),r)}var ei2={alt:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=!0,a=!1,s=void 0;try{for(var o,u=r[Symbol.iterator]();!(i=(o=u.next()).done);i=!0){var l,c=o.value;(l=e).out.accepting=!1,c.out.accepting=!0,l.out.addTransition("ε",c.in),e=new eiq(l.in,c.out)}}catch(e){a=!0,s=e}finally{try{!i&&u.return&&u.return()}finally{if(a)throw s}}return e},char:ei1,e:function(){return ei1("ε")},or:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=!0,a=!1,s=void 0;try{for(var o,u=r[Symbol.iterator]();!(i=(o=u.next()).done);i=!0){var l=o.value;e=function(e,t){var r=new ei0,n=new ei0;return r.addTransition("ε",e.in),r.addTransition("ε",t.in),n.accepting=!0,e.out.accepting=!1,t.out.accepting=!1,e.out.addTransition("ε",n),t.out.addTransition("ε",n),new eiq(r,n)}(e,l)}}catch(e){a=!0,s=e}finally{try{!i&&u.return&&u.return()}finally{if(a)throw s}}return e},rep:function(e){return e.in.addTransition("ε",e.out),e.out.addTransition("ε",e.in),e},repExplicit:function(e){var t=new ei0,r=new ei0({accepting:!0});return t.addTransition("ε",e.in),t.addTransition("ε",r),e.out.accepting=!1,e.out.addTransition("ε",r),r.addTransition("ε",e.in),new eiq(t,r)},plusRep:function(e){return e.out.addTransition("ε",e.in),e},questionRep:function(e){return e.in.addTransition("ε",e.out),e}};ei2.default;var ei3=ei2.alt,ei4=ei2.char,ei5=ei2.or,ei8=ei2.rep,ei6=ei2.plusRep,ei9=ei2.questionRep;function ei7(e){if(e&&!eae[e.type])throw Error(e.type+" is not supported in NFA/DFA interpreter.");return e?eae[e.type](e):""}var eae={RegExp:function(e){if(""!==e.flags)throw Error("NFA/DFA: Flags are not supported yet.");return ei7(e.body)},Alternative:function(e){var t=(e.expressions||[]).map(ei7);return ei3.apply(void 0,function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}(t))},Disjunction:function(e){return ei5(ei7(e.left),ei7(e.right))},Repetition:function(e){switch(e.quantifier.kind){case"*":return ei8(ei7(e.expression));case"+":return ei6(ei7(e.expression));case"?":return ei9(ei7(e.expression));default:throw Error("Unknown repeatition: "+e.quantifier.kind+".")}},Char:function(e){if("simple"!==e.kind)throw Error("NFA/DFA: Only simple chars are supported yet.");return ei4(e.value)},Group:function(e){return ei7(e.expression)}},eat=function(e){var t=e;return e instanceof RegExp&&(e=""+e),"string"==typeof e&&(t=enQ.parse(e,{captureLocations:!0})),ei7(t)},ear={NFA:eiq,DFA:ei$,builders:ei2,toNFA:function(e){return eat(e)},toDFA:function(e){return new ei$(this.toNFA(e))},test:function(e,t){return this.toDFA(e).matches(t)}};ear.default;var ean=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),eai=function(){function e(t,r){var n=r.flags,i=r.groups,a=r.source;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this._re=t,this._groups=i,this.flags=n,this.source=a||t.source,this.dotAll=n.includes("s"),this.global=t.global,this.ignoreCase=t.ignoreCase,this.multiline=t.multiline,this.sticky=t.sticky,this.unicode=t.unicode}return ean(e,[{key:"test",value:function(e){return this._re.test(e)}},{key:"compile",value:function(e){return this._re.compile(e)}},{key:"toString",value:function(){return this._toStringResult||(this._toStringResult="/"+this.source+"/"+this.flags),this._toStringResult}},{key:"exec",value:function(e){var t=this._re.exec(e);if(!this._groups||!t)return t;for(var r in t.groups={},this._groups){var n=this._groups[r];t.groups[r]=t[n]}return t}}]),e}(),eaa=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=t.length>0?t:Object.keys(eiy),n=void 0,i={};return r.forEach(function(t){if(!eiy.hasOwnProperty(t))throw Error("Unknown compat-transform: "+t+". Available transforms are: "+Object.keys(eiy).join(", "));var r=eiy[t];e=(n=eim(e,r)).getAST(),"function"==typeof r.getExtra&&(i[t]=r.getExtra())}),n.setExtra(i),n},eas=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.whitelist,n=void 0===r?[]:r,i=t.blacklist,a=void 0===i?[]:i,s=(n.length>0?n:Array.from(eij.keys())).filter(function(e){return!a.includes(e)}),o=e;e instanceof RegExp&&(e=""+e),"string"==typeof e&&(o=enQ.parse(e));var u=new eih(o),l=void 0;do l=u.toString(),o=eiU(u.getAST()),s.forEach(function(e){if(!eij.has(e))throw Error("Unknown optimization-transform: "+e+". Available transforms are: "+Array.from(eij.keys()).join(", "));var t=eij.get(e),r=eim(o,t);r.toString()!==u.toString()&&(r.toString().length<=u.toString().length?u=r:o=eiU(u.getAST()))});while(u.toString()!==l);return u},eao={parser:enQ,fa:ear,TransformResult:eih,parse:function(e,t){return enQ.parse(""+e,t)},traverse:function(e,t,r){return eid(e,t,r)},transform:function(e,t){return eim(e,t)},generate:function(e){return enA.generate(e)},toRegExp:function(e){var t=this.compatTranspile(e);return new RegExp(t.getSource(),t.getFlags())},optimize:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return eas(e,{whitelist:t,blacklist:r.blacklist})},compatTranspile:function(e,t){return eaa(e,t)},exec:function(e,t){if("string"==typeof e){var r=this.compatTranspile(e),n=r.getExtra();e=n.namedCapturingGroups?new eai(r.toRegExp(),{flags:r.getFlags(),source:r.getSource(),groups:n.namedCapturingGroups}):r.toRegExp()}return e.exec(t)}};let eau=({type:e,kind:t})=>"Char"!==e||"simple"!==t;var eal={};let{compareAny:eac}=Yc,{template:eap}=Xw,{types:ead}=r5,{ObjectPattern:eaf,ObjectProperty:eah,isBlockStatement:eam,isFunction:eay,isLabeledStatement:eav,isObjectPattern:eag,isCallExpression:eab}=ead,{entries:eaS}=Object,eax=e=>e.isCallExpression()||e.isStatement(),eaT=e=>eab(e.find(eax)),eaE=({name:e})=>`Argument '${e}' is missing`;eal.addArgs=e=>({report:eaE,fix:ea_,traverse:eaP(e)});let ea_=({declaration:e,path:t,pattern:r,params:n,index:i})=>{let a=eap.ast.fresh(e);if(eam(a)){let e=function(e){if(!eav(e)){let{expression:t}=e;return eah(t,t,!1,!0)}let{label:t,body:r}=e;return eah(t,r.expression,!1,!0)}(a.body[0]);return(r.properties.push(e),eag(n[i]))?void 0:n.push(r)}t.scope.block.params=[a]},eaP=e=>({push:t,options:r})=>{let n={...r.args,...e};return{ReferencedIdentifier(e){for(let[r,[i,a]]of eaS(n)){if(e.node.name!==r||e.scope.hasBinding(r)||!eaT(e))continue;let n=e.find(eay);if(!n)continue;let{block:s}=n.scope;if(!eac(e.scope.path,a))continue;let{params:o}=s,[u,l]=function(e){for(let[t,r]of e.entries())if(eag(r))return[t,r];return[-1,null]}(o);if(eag(l)){t({name:r,index:u,declaration:i,path:e,params:o,pattern:l});return}if(o.length>=3)return;t({name:r,index:u,declaration:i,path:e,params:o,pattern:eaf([])})}}}};var eaA={};function eak(e){return Array.isArray(e)?e:[e]}let eaC=/^\s+$/,eaw=/(?:[^\\]|^)\\$/,eaI=/^\\!/,eaN=/^\\#/,eaO=/\r?\n/g,eaD=/^\.*\/|^\.+$/,eaL="node-ignore";"undefined"!=typeof Symbol&&(eaL=Symbol.for("node-ignore"));let eaM=eaL,eaF=(e,t,r)=>Object.defineProperty(e,t,{value:r}),eaB=/([0-z])-([0-z])/g,eaR=()=>!1,eaj=e=>e.replace(eaB,(e,t,r)=>t.charCodeAt(0)<=r.charCodeAt(0)?e:""),eaU=e=>{let{length:t}=e;return e.slice(0,t-t%2)},eaV=[[/^\uFEFF/,()=>""],[/((?:\\\\)*?)(\\?\s+)$/,(e,t,r)=>t+(0===r.indexOf("\\")?" ":"")],[/(\\+?)\s/g,(e,t)=>{let{length:r}=t;return t.slice(0,r-r%2)+" "}],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,r)=>t+6<r.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(e,t,r)=>t+r.replace(/\\\*/g,"[^\\/]*")],[/\\\\\\(?=[$.|*+(){^])/g,()=>"\\"],[/\\\\/g,()=>"\\"],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,r,n,i)=>"\\"===t?`\\[${r}${eaU(n)}${i}`:"]"===i&&n.length%2==0?`[${eaj(r)}${n}]`:"[]"],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(e,t)=>{let r=t?`${t}[^/]+`:"[^/]*";return`${r}(?=$|\\/$)`}]],eaW=Object.create(null),eaq=(e,t)=>{let r=eaW[e];return r||(r=eaV.reduce((t,[r,n])=>t.replace(r,n.bind(e)),e),eaW[e]=r),t?RegExp(r,"i"):new RegExp(r)},eaJ=e=>"string"==typeof e,eaX=e=>e&&eaJ(e)&&!eaC.test(e)&&!eaw.test(e)&&0!==e.indexOf("#"),eaG=e=>e.split(eaO);class eaK{constructor(e,t,r,n){this.origin=e,this.pattern=t,this.negative=r,this.regex=n}}let eaH=(e,t)=>{let r=e,n=!1;0===e.indexOf("!")&&(n=!0,e=e.substr(1));let i=eaq(e=e.replace(eaI,"!").replace(eaN,"#"),t);return new eaK(r,e,n,i)},eaz=(e,t)=>{throw new t(e)},ea$=(e,t,r)=>eaJ(e)?e?!ea$.isNotRelative(e)||r(`path should be a \`path.relative()\`d string, but got "${t}"`,RangeError):r("path must not be empty",TypeError):r(`path must be a string, but got \`${t}\``,TypeError),eaY=e=>eaD.test(e);ea$.isNotRelative=eaY,ea$.convert=e=>e;class eaQ{constructor({ignorecase:e=!0,ignoreCase:t=e,allowRelativePaths:r=!1}={}){eaF(this,eaM,!0),this._rules=[],this._ignoreCase=t,this._allowRelativePaths=r,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(e){if(e&&e[eaM]){this._rules=this._rules.concat(e._rules),this._added=!0;return}if(eaX(e)){let t=eaH(e,this._ignoreCase);this._added=!0,this._rules.push(t)}}add(e){return this._added=!1,eak(eaJ(e)?eaG(e):e).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(e){return this.add(e)}_testOne(e,t){let r=!1,n=!1;return this._rules.forEach(i=>{let{negative:a}=i;(n!==a||r===n)&&(!a||r||n||t)&&i.regex.test(e)&&(r=!a,n=a)}),{ignored:r,unignored:n}}_test(e,t,r,n){let i=e&&ea$.convert(e);return ea$(i,e,this._allowRelativePaths?eaR:eaz),this._t(i,t,r,n)}_t(e,t,r,n){if(e in t)return t[e];if(n||(n=e.split("/")),n.pop(),!n.length)return t[e]=this._testOne(e,r);let i=this._t(n.join("/")+"/",t,r,n);return t[e]=i.ignored?i:this._testOne(e,r)}ignores(e){return this._test(e,this._ignoreCache,!1).ignored}createFilter(){return e=>!this.ignores(e)}filter(e){return eak(e).filter(this.createFilter())}test(e){return this._test(e,this._testCache,!0)}}let eaZ=e=>new eaQ(e);if(eaZ.isPathValid=e=>ea$(e&&ea$.convert(e),e,eaR),eaZ.default=eaZ,void 0!==eV&&eV.env.IGNORE_TEST_WIN32){ea$.convert=e=>/^\\\\\?\\/.test(e)||/["<>|\u0000-\u001F]+/u.test(e)?e:e.replace(/\\/g,"/");let e=/^[a-z]:\//i;ea$.isNotRelative=t=>e.test(t)||eaY(t)}eaZ.default;let{relative:ea0}=z_,ea1=e=>!e.indexOf("!"),ea2=e=>e.replace(/^!/,"");var ea3=(e,t,r={})=>{let n=ea0(e,t),i=eaZ(),a=function(e){for(let[t,r]of e.entries()){let n=e.indexOf(ea2(r));ea1(r)&&n>t&&(e[n]=r)}return Array.from(new Set(e))}(r.ignore||[]);return i.add(a),e&&i.ignores(n)};let{parse:ea4,print:ea5}=Xw,{transform:ea8}=er4,{findPlaces:ea6}=ene,{toJS:ea9,fromJS:ea7}=Xi,{readFileContent:ese,findFile:est,writeFileContent:esr,getFilename:esn,createFile:esi,removeFile:esa,getParentDirectory:ess}=etc,{join:eso}=z_,esu=e=>e&&"object"==typeof e,{entries:esl}=Object,esc=(e,{message:t})=>t;function esp(e,{dirPath:t,mainPath:r,matchInputFilename:n,outputFilename:i,matchedJS:a,matchedAST:s,options:o}){ea8(s,a,o);let u=/\.json$/.test(i)?ea7(ea5(s)):ea5(s),l=function(e,{dirPath:t,matchInputFilename:r,outputFilename:n,inputFile:i}){if(r===n)return i;let a=eso(esn(t),n),[s]=est(t,a);return s||esi(t,n)}(0,{dirPath:t,matchInputFilename:n,outputFilename:i,inputFile:e});esr(l,u),e!==l&&esa(e)}eaA.matchFiles=e=>{let t=e.files??e,r=e.exclude??[];return function(e){for(let[,t]of esl(e))if(!esu(t))throw Error(`☝️ Looks like provided to 'matchFiles()' typeof of plugin is not an 'object' but '${typeof t}'`)}(t),{fix:esp,scan:esd({files:t,exclude:r}),report:esc}};let esd=({files:e,exclude:t})=>(r,{push:n,progress:i,options:a})=>{let s=[],o=esn(r);for(let[n,i]of esl(e)){let[e]=esf(n,a);for(let u of est(r,e,t)){let e=ess(u),t=esn(u),[l,c=l]=esf(n,{filename:t});ea3(o,t,a)||s.push({mainPath:r,dirPath:e,matchInputFilename:l,rawOptions:i,inputFile:u,inputFilename:t,outputFilename:c})}}let u=s.length;for(let[e,t]of s.entries()){let{dirPath:r,matchInputFilename:a,inputFile:s,inputFilename:o,outputFilename:l,rawOptions:c,mainPath:p}=t;i({i:e,n:u});let[d,f]=function(e,t){if(/\.json$/.test(e)){let e=ea9(t),r=ea4(e);return[e,r]}if(/\.(c|m)?ts(x)?$/.test(e)){let e=ea4(t,{isTS:!0});return[t,e]}return[t,ea4(t)]}(o,ese(s)||"{}"),h=c.plugins?c:{plugins:[[`match-file: ${o}`,c]]},m=ea6(f,d,h);if(!m.length)continue;let{message:y}=m[0];n(s,{dirPath:r,mainPath:p,matchInputFilename:a,outputFilename:l,message:y,options:h,matchedAST:f,matchedJS:d})}};function esf(e,t){let{filename:r}=t;if(!r)return e.split(" -> ");let{ext:n,name:i}=z_.parse(r);return(e=(e=e.replaceAll("__name",i)).replaceAll("__ext",n)).split(" -> ")}var esh={};let{join:esm}=z_,{getParentDirectory:esy,getFilename:esv,readFileContent:esg,findFile:esb,renameFile:esS}=etc,{parse:esx}=JSON;esh.renameFiles=({type:e,mask:t,rename:r})=>({report:esT,fix:esE,scan:es_({type:e,mask:t,rename:r})});let esT=(e,{from:t,to:r})=>`Rename '${t}' to '${r}'`,esE=(e,{to:t})=>{esS(e,t)},es_=({type:e,mask:t,rename:r})=>(n,{push:i,trackFile:a})=>{for(let s of a(n,t)){if(e&&!function(e,t){let r=function(e){let t;let r=esy(e);do{let e=esv(r);[t]=esb(r,esm(e,"package.json"))}while(!t&&(r=esy(r)));return t}(t);if("commonjs"===e&&!r)return!0;if(!r)return!1;let n=esg(r);return!!n&&(esx(n).type||"commonjs")===e}(e,s))continue;let t=esv(s),n=r(t);i(s,{from:t,to:n})}};var esP={};let{types:esA}=r5,{traverseProperties:esk}=L9,{StringLiteral:esC}=esA,esw=({value:e})=>e;esP.ignore=(e,{name:t,property:r,list:n})=>{let[,i]=e.split(/\(|\)/);return{report:esI(t),match:esN({type:e,property:r,collector:i,list:n}),replace:esO({type:e,property:r,collector:i,list:n})}};let esI=e=>()=>`Add dotfiles to '${e}'`,esN=({type:e,property:t,collector:r,list:n})=>({options:i})=>{let{dismiss:a=[]}=i,s=esD(n,a);return{[e]:e=>{let n=esL(e,{property:t,collector:r});if(!n)return!1;let i=n.map(esw);for(let e of s)if(!i.includes(e))return!0;return!1}}},esO=({type:e,property:t,collector:r,list:n})=>({options:i})=>{let{dismiss:a=[]}=i,s=esD(n,a);return{[e]:(e,n)=>{let i=esL(e,{property:t,collector:r}),a=i.map(esw);for(let e of s)a.includes(e)||i.push(esC(e));return n}}};function esD(e,t){let r=[];for(let n of e)t.includes(n)||r.push(n);return r}function esL(e,{property:t,collector:r}){let n=e[r];if(!t)return n.elements;let[i]=esk(n,t);return i?i.node.value.elements:null}let{codeFrameColumns:esM}=r5,{traverse:esF,types:esB}=r5,{parse:esR,print:esj,generate:esU,template:esV}=Xw,{cutShebang:esW,mergeShebang:esq}=Hq,{defaultOptions:esJ}=HX,{transform:esX,transformAsync:esG}=er4,{findPlaces:esK,findPlacesAsync:esH}=ene,esz=e=>"string"==typeof e;function es$(e,t){es2(e);let{parser:r,isTS:n,isFlow:i,isJSX:a,sourceFileName:s,sourceMapName:o,printer:u}=t=esJ(t),[l,c]=esW(e),p=esR(l,{sourceFileName:s,parser:r,isTS:n,isFlow:i,isJSX:a,printer:u}),d=esX(p,e,t);return t.fix?{code:esq(c,esj(p,{sourceMapName:o,printer:u})),places:d}:{code:e,places:d}}XC.exports=es$,XC.exports.putout=es$,XC.exports.putoutAsync=async(e,t)=>{es2(e);let{parser:r,isTS:n,isFlow:i,isJSX:a,sourceFileName:s,sourceMapName:o,printer:u}=t=esJ(t),[l,c]=esW(e),p=esR(l,{sourceFileName:s,parser:r,isTS:n,isFlow:i,isJSX:a,printer:u}),d=await esG(p,e,t);return t.fix?{code:esq(c,esj(p,{sourceMapName:o,printer:u})),places:d}:{code:e,places:d}};var esY=XC.exports.transform=esX;XC.exports.transformAsync=esG,XC.exports.findPlaces=esK,XC.exports.findPlacesAsync=esH;var esQ=XC.exports.parse=esR;XC.exports.print=esj,XC.exports.traverse=esF;var esZ=XC.exports.types=esB,es0=XC.exports.template=esV;XC.exports.generate=esU,XC.exports.initReport=()=>{let e=0,t=0;return async(r,n)=>{let{name:i,rule:a,source:s,places:o,index:u=0,count:l=1,trace:c=eni,formatterOptions:p={}}=n;if(!enn(o))throw Error(`☝️ Looks like for 'places: Places[]' you passed the wrong type: '${typeof o}'`);return o.length&&++e,t+=o.length,c("progress",{rule:a,name:i,options:p,source:s,places:o,index:u,count:l,filesCount:e,errorsCount:t}),await r({rule:a,name:i,options:p,source:s,places:o,index:u,count:l,filesCount:e,errorsCount:t})}};var es1=XC.exports.operator={...L9,...Yc,...ena,...Xi,...eej,isSimpleRegExp:e=>{let t=!1,r=eao.parse(e);return"Alternative"===r.body.type&&(eao.traverse(r,{RegExp({node:e}){let{expressions:r}=e.body;t=!!r.find(eau)}}),!t)},...eal,...etc,...eaA,...esh,...esP};function es2(e){if(!esz(e))throw Error(`☝️ Looks like 'source' has type '${typeof e}', expected: 'string'`)}XC.exports.ignores=ea3,XC.exports.codeframe=({source:e,error:t,highlightCode:r=!0})=>{let{message:n,loc:i}=t;return i?esM(e,{start:i},{highlightCode:r,message:n}):n};var es3=XC.exports;let{isExpression:es4}=esZ;var es5=/*#__PURE__*/Object.freeze({__proto__:null,match:()=>({"if (__a) __b; else __c;":({__b:e,__c:t})=>!!es4(e)&&es4(t)}),replace:()=>({"if (__a) __b; else __c;":"__a ? __b : __c"}),report:()=>"Use 'ternary' instead of 'if condition'"}),es8=/*#__PURE__*/Object.freeze({__proto__:null,replace:()=>({"String(__a)":"`${__a}`","__a.toString()":"`${__a}`"}),report:()=>"Use 'template literal' to stringify value"});let{getBinding:es6}=es1,{isIdentifier:es9,isBlockStatement:es7,isForStatement:eoe}=esZ;var eot=/*#__PURE__*/Object.freeze({__proto__:null,match:()=>({"const __a = __b":({__a:e},t)=>{if(!es9(e))return!1;let r=t.find(es7);if(eoe(r?.parentPath))return!1;let{name:n}=e;return!function(e,t){if({path:e}=e.scope.getBlockParent(),e.isProgram())return!1;let r=e;for(;(r=r.scope.getBlockParent().path)&&r!==e;);let n=r.scope.getFunctionParent();return n&&n.path!==r?es6(n.path,t):es6(r.scope.getProgramParent().path,t)}(t,n)}}),replace:()=>({"const __a = __b":"var __a = __b"}),report:()=>"Use 'var' instead of 'const'"});let{SequenceExpression:eor,LogicalExpression:eon,isBlockStatement:eoi,isExpression:eoa,isYieldExpression:eos,ConditionalExpression:eoo,UnaryExpression:eou,isConditionalExpression:eol,isLogicalExpression:eoc}=esZ,eop=({body:e})=>e.map(eod).filter(Boolean),eod=({expression:e})=>!e||eos(e)?null:e;function eof(e){return eoc(e)&&(e.extra={parenthesized:!0}),e}var eoh=/*#__PURE__*/Object.freeze({__proto__:null,match:()=>({"if (__a) __b; else __c":({__b:e,__c:t})=>{if(!eoi(e)||!eoi(t))return!1;let r=eop(e),n=eop(t);return r.length===e.body.length&&n.length===t.body.length},"if (__a) __b":({__b:e})=>!!eoa(e)||!!eoi(e)&&eop(e).length===e.body.length}),replace:()=>({"if (__a) __b":({__a:e,__b:t})=>{if(eol(t))return"__a && (__b)";if(!eoi(t))return eof(e),"__a && __b";if(!t.body.length)return"__a";if(1===t.body.length){let{expression:r}=t.body[0];return eof(e),eon("&&",e,r)}let r=eop(t);return eon("&&",eof(e),eor(r))},"if (__a) __b; else __c":({__a:e,__b:t,__c:r})=>{if(!t.body.length&&eoi(r))return eon("&&",eou("!",e),r.body[0].expression);if(1===t.body.length&&1===r.body.length)return eoo(e,t.body[0].expression,r.body[0].expression);let n=eop(t),i=eop(r);return eoo(e,eor(n),eor(i))}}),report:()=>"Use 'logical expressions' instead of 'if conditions'"}),eom=/*#__PURE__*/Object.freeze({__proto__:null,replace:()=>({"__a === __b":"__a == __b"}),report:()=>"Use 'equal' instead of 'strict equal'"});let{isExpressionStatement:eoy,isReturnStatement:eov,isArrowFunctionExpression:eog}=esZ,{replaceWith:eob}=es1,eoS=e=>!!eoy(e)||eov(e);var eox=/*#__PURE__*/Object.freeze({__proto__:null,filter:({node:e,parentPath:t})=>{let{body:r}=e;if(1!==r.length||t.isFunction()&&!t.isArrowFunctionExpression()||t.isTryStatement()||t.isCatchClause())return!1;let[n]=r;return!eog(t)||eoS(n)},fix:e=>{let{parentPath:t}=e,[r]=e.node.body;if(t.isArrowFunctionExpression())return eob(e,eov(r)?r.argument:r.expression);eob(e,r)},include:()=>["BlockStatement"],report:()=>"Avoid blocks with one statement"});let{assign:eoT}=Object,{isIdentifier:eoE}=esZ,{remove:eo_,replaceWith:eoP}=es1;var eoA=/*#__PURE__*/Object.freeze({__proto__:null,fix:({path:e,ref:t,parentPath:r})=>{let n=e.get("init");if(n.isArrowFunctionExpression()&&eoT(n.node,{extra:{parenthesized:!0}}),r.isVariableDeclarator()){eoP(t.parentPath.get("init"),n),eo_(e);return}if(r.isCallExpression()){eoP(t,n),eo_(e);return}},report:()=>"Expand bindings",traverse:({push:e})=>({ReferencedIdentifier(t){let{name:r}=t.node,n=t.scope.bindings[r];if(!n||!n.constant||1!==n.referencePaths.length)return;let[i]=n.referencePaths,{parentPath:a}=i;n.path.isVariableDeclarator()&&n.path.node.init&&eoE(n.path.node.id)&&e({path:n.path,parentPath:a,ref:i})}})});let eok=({index:e,all:t,uid:r})=>{let[n,i]=function({index:e,all:t}){let r=e+65;if(r>90)return eoC(t,["_"]);let n=String.fromCharCode(r),i=String.fromCharCode(e+97),a=`_${i}`,s=`_${n}`;return eoC(t,[i,"_",n,a,s])}({index:e,all:t});if(n)return i;i=r;for(let e=97;e<=122;e++){let r;for(let n=65;n<=90;n++)if(!t[r=String.fromCharCode(e)+String.fromCharCode(n)]){i=r;break}if(!t[r])break}return i};function eoC(e,t){for(let[r,n]of t.entries()){if(!e[n])return[!0,n];let t=String.fromCharCode(97+r);if(!e[t])return[!0,t];let i=String.fromCharCode(65+r);if(!e[i])return[!0,i]}return[!1,""]}let{isExportNamedDeclaration:eow,isClassDeclaration:eoI}=esZ,{entries:eoN,keys:eoO}=Object,eoD=({scope:e})=>e.__putout_minify;var eoL=/*#__PURE__*/Object.freeze({__proto__:null,fix:({path:e,programPath:t,referenced:r},n)=>{let{scope:i}=e,{mangleClassNames:a}=n,s=eoN(i.bindings),o=t.__putout_minify_mangle=t.__putout_minify_mangle||{};for(let[e,[t,n]]of s.entries()){if(t.length<2||!a&&eoI(n.path)||function({path:e}){return eow(e.parentPath.parentPath)}(n))continue;let s=function({index:e,all:t,scope:r}){return eok({index:e,all:t,uid:r.generateUid()})}({index:e,all:{...o,...i.getAllBindings(),...r},scope:i});i.rename(t,s),o[s]=!0}i.__putout_minify=!0},report:()=>"Mangle name",traverse:({push:e,pathStore:t,store:r})=>({"Program|BlockStatement"(e){let{bindings:r}=e.scope;for(let n of eoO(r))if(n.length>2)return t(e)},ReferencedIdentifier(e){let{name:n}=e.node;r(n,{}),n.length<5||t(e)},Program:{exit(n){let i=Object.fromEntries(r.entries());for(let r of t())eoD(r)||e({path:r,programPath:n,referenced:i})}}})});let{remove:eoM}=es1,eoF=e=>e.node;var eoB=/*#__PURE__*/Object.freeze({__proto__:null,fix:({path:e,vars:t})=>{for(let r of(e.node.declarations=t.map(eoF),t.slice(1)))eoM(r.parentPath)},report:()=>"Merge variables",traverse:({push:e,uplist:t})=>({VariableDeclarator:e=>{if(1!==e.parentPath.node.declarations.length||"let"===e.parentPath.node.kind)return;let r=e.get("init");!(r.isAwaitExpression()||r.isNewExpression()||r.isTemplateLiteral()||e.parentPath.parentPath.isSwitchCase())&&(e.parentPath.parentPath.isForOfStatement()||t(e.scope.uid,e))},Program:{exit(){for(let r of t()){if(r.length<2)continue;let[t,...n]=r,{kind:i}=t.parentPath.node;for(let[e,t]of n.entries()){let{node:r}=t;if("const"===i&&!r.init||!t.parentPath.getPrevSibling().isVariableDeclaration()){n.splice(e,1);continue}}n.length&&e({path:t.parentPath,vars:[t,...n]})}}}})});let{remove:eoR,getTemplateValues:eoj,compare:eoU}=es1,eoV="for (const __a of __b)__c(__e)",eoW=es0("for (const __a of [...__b, ...__z])__c(__e)",{placeholderPattern:/^__[a-z]$/});var eoq=/*#__PURE__*/Object.freeze({__proto__:null,replace:()=>({"__a.forEach((__b) => __e(__b)),__c.forEach((__d) => __e(__d))":"for (const __b of [...__a, ...__c])__e(__b)",[eoV]:({__a:e,__b:t,__c:r,__e:n},i)=>{let a=i.getNextSibling();if(eoU(a,eoV)){let{__b:i}=eoj(a,eoV);return eoR(a),eoW({__a:e,__b:t,__c:r,__e:n,__z:i})}return i}}),report:()=>"Merge loops"});let{compareAny:eoJ}=es1,eoX=(e,t)=>(r,n)=>{let i=n.scope.getAllBindings()[t];return!i||eoJ(i.path.parentPath.node,[`const {${t}} = ${e}`,`var {${t}} = ${e}`,`let {${t}} = ${e}`])};var eoG=/*#__PURE__*/Object.freeze({__proto__:null,match:()=>({"Object.keys(__args)":eoX("Object","keys"),"Object.assign(__args)":eoX("Object","assign"),"Object.defineProperty(__args)":eoX("Object","defineProperty"),"Object.freeze(__args)":eoX("Object","freeze")}),replace:()=>({"Object.keys(__args)":"keys(__args)","Object.assign(__args)":"assign(__args)","Object.defineProperty(__args)":"defineProperty(__args)","Object.freeze(__args)":"freeze(__args)","Array.isArray(__args)":"isArray(__args)"}),report:()=>"Shorten name"});let{compare:eoK,remove:eoH}=es1;var eoz=/*#__PURE__*/Object.freeze({__proto__:null,fix:e=>{eoH(e)},report:()=>"Avoid using 'undefined' in variable declaration",traverse:({push:e})=>({VariableDeclarator(t){let r=t.get("init");if(eoK(r,"void 0")||r.isIdentifier({name:"undefined"}))return e(r)}})}),eo$=/*#__PURE__*/Object.freeze({__proto__:null,match:()=>({return:(e,{parentPath:t})=>!!t.isBlockStatement()&&t.parentPath.isFunction()}),replace:()=>({return:"","return undefined":"return","return void 0":"return"}),report:()=>"Avoid 'return undefined'"});let{entries:eoY}=Object,{remove:eoQ,replaceWith:eoZ}=es1;var eo0=/*#__PURE__*/Object.freeze({__proto__:null,fix:({path:e,statement:t})=>{eoZ(t,e),eoQ(e)},report:()=>"Inline expressions",traverse:({push:e})=>({"Program|BlockStatement"(t){for(let[,r]of eoY(t.scope.bindings)){let[t,n]=r.referencePaths,i=t?.parentPath,a=n?.parentPath.parentPath;if(!i?.isUpdateExpression()||n?.parentPath.isUpdateExpression()||!a?.isStatement())return;e({path:t.parentPath,statement:n})}}})}),eo1=/*#__PURE__*/Object.freeze({__proto__:null,replace:()=>({"Math.floor(__a)":"~~__a"}),report:()=>"Use '~~' instead of 'Math.floor()'"});let{getBinding:eo2}=es1,{isIdentifier:eo3}=esZ;function eo4({__a:e},t){return!eo3(e)||eo2(t,e.name)}var eo5=/*#__PURE__*/Object.freeze({__proto__:null,match:()=>({'typeof __a === "undefined"':eo4,'typeof __a !== "undefined"':eo4,__a:(e,t)=>!t.parentPath.isObjectProperty()}),replace:()=>({undefined:"void 0",true:"!0",false:"!1","Boolean(__a)":"!!__a","String(__a)":'"" + __a',"Number(__a)":"+__a",'typeof __a === "undefined"':"__a == undefined",'typeof __a !== "undefined"':"__a !== undefined","Array.from(__a)":"[...__a]"}),report:()=>"Use minified types"});let{getLiteralRaw:eo8}=es1;var eo6=/*#__PURE__*/Object.freeze({__proto__:null,filter:e=>{if(e.isTemplateLiteral()){let{quasis:t}=e.node;for(let{value:e}of t)if(eo8(e).includes("\\\n"))return!0;return!1}return eo8(e).includes("\\\n")},fix:e=>{if(e.isTemplateLiteral()){let{quasis:t}=e.node;for(let e of t)e.value.raw=e.value.cooked.replaceAll("\n","\\n");return}e.node.raw=`'${e.node.value.replaceAll("\n","\\n")}'`},include:()=>["TemplateLiteral","StringLiteral"],report:()=>"Join continued strings"});let{isExpressionStatement:eo9,SequenceExpression:eo7}=esZ,{replaceWith:eue}=es1;var eut=/*#__PURE__*/Object.freeze({__proto__:null,fix:({path:e,body:t,last:r})=>{let n=[];for(let{node:e}of t)n.push(e.expression);n.push(r.node.argument),eue(e,eo7(n))},report:()=>"Convert return to sequence expression",traverse:({push:e})=>({BlockStatement:t=>{if(!t.parentPath.isArrowFunctionExpression())return;let r=t.get("body");if(!r.length)return;let n=r.slice(0,-1),i=r.at(-1);if(i.isReturnStatement()){for(let e of n)if(!eo9(e))return;e({path:t,body:n,last:i})}}})});let{compare:eur,remove:eun}=es1,{isAssignmentExpression:eui,AssignmentExpression:eua}=esZ;var eus=/*#__PURE__*/Object.freeze({__proto__:null,rules:{"apply-ternary":es5,"apply-template-literal":es8,"convert-const-to-var":eot,"convert-if-to-logical":eoh,"convert-strict-equal-to-equal":eom,"extract-body":eox,"expand-bindings":eoA,"mangle-names":eoL,"merge-variables":eoB,"merge-loops":eoq,"shorten-names":eoG,"remove-var-undefined":eoz,"remove-return-undefined":eo$,inline:eo0,"simplify-floor":eo1,types:eo5,"join-continued-strings":eo6,"convert-return-to-sequence-expression":eut,"merge-assignment-expressions":/*#__PURE__*/Object.freeze({__proto__:null,fix:({path:e,lefts:t})=>{let{operator:r,right:n}=e.node,i=n;for(let[e,n]of t.reverse())i=eua(r,e,i),eun(n);e.node.right=i},report:()=>"Merge assignment expressions",traverse:({push:e})=>({AssignmentExpression(t){let{parentPath:r}=t,{right:n}=t.node,i=[],a=r.getNextSibling();for(;a.node;){let{expression:e}=a.node;if(!eui(e)||!eur(n,e.right))break;i.push([e.left,a]),a=a.getNextSibling()}i.length&&e({path:t,lefts:i})}})})}}),euo={};let{types:euu,operator:eul}=es3,{compare:euc,remove:eup}=eul,{isObjectPattern:eud,isRestElement:euf}=euu,euh=e=>e.places.length;euo.report=()=>"Object properties should be merged when destructuring",euo.fix=({path:e,places:t})=>{let{node:r}=e;for(let e of t)r.id.properties=[...r.id.properties,...e.node.id.properties],eup(e)},euo.traverse=({push:e,store:t})=>{let r=euy({store:t});return{VariableDeclarator(e){let{id:t,init:n}=e.node;if(n&&eud(t)){for(let e of t.properties)if(euf(e))return;r(e,n)}},Program:{exit(){t().filter(euh).map(e)}}}};let eum=e=>{let{uid:t}=e.scope;return`${t}-${e.get("init").toString()}`.replace(/['"`]/g,"*")},euy=({store:e})=>(t,r)=>{let n=eum(t),i=e(n);if(!i){e(n,{path:t,places:[]});return}let a=i.path;if(t!==a&&!a.removed&&!a.parentPath.removed)euc(a.node.init,r)&&t.parentPath.node.kind===a.parentPath.node.kind&&i.places.push(t)};var euv={};let eug={assign:"const {assign} = Object",keys:"const {keys} = Object",values:"const {values} = Object",freeze:"const {freeze} = Object",defineProperty:"const {defineProperty} = Object",entries:"const {entries} = Object"},eub={not:"const not = (fn) => (...a) => !fn(...a)",id:"const id = (a) => a",returns:"const returns = (a) => () => a"},euS={freshImport:"const freshImport = ((count) => (name) => import(`${name}?count=${++count}`))(0)",freshImportDefault:"const freshImportDefault = ((count) => async (name) => (await import(`${name}?count=${++count}`)).default)(0)"},eux={readFixture:"const readFixture = (a) => readFileSync(join(__dirname, 'fixture', `${a}.js`), 'utf8');"};euv.declare=()=>({...eug,...eub,...euS,...eux,parse:"const {parse} = JSON",stringify:"const {stringify} = JSON",noop:"const noop = () => {}",once:"import once from 'once'",putout:"import putout from 'putout'",eslint:"import eslint from 'putout/eslint'",currify:"import currify from 'currify'",wraptile:"import wraptile from 'wraptile'",fullstore:"import fullstore from 'fullstore'",pipe:"import pipe from 'pipe-io'",pullout:"import pullout from 'pullout'",chalk:"import chalk from 'chalk'",table:"import table from 'table'",wait:"import wait from '@iocmd/wait'",createSimport:"import {createSimport} from 'simport'",simport:{esm:"const simport = createSimport(import.meta.url)",commonjs:"const simport = createSimport(__filename)"}});var euT={},euE={};euE.report=()=>"Use optional chaining",euE.replace=()=>({"__a && __a.__b && __a.__b.__c && __a.__b.__c.__d && __a.__b.__c.__d.__e":"__a?.__b?.__c?.__d?.__e","__a && __a.__b && __a.__b.__c && __a.__b.__c.__d":"__a?.__b?.__c?.__d","__a && __a.__b && __a.__b.__c":"__a?.__b?.__c","__a && __a.__b":"__a?.__b","__a && __a.__b.__c":"__a?.__b.__c","__a && __a[__b]":"__a?.[__b]","__a[__b] && __a[__b][__c]":"__a[__b]?.[__c]",'typeof __a === "function" && __a(__args)':"__a?.(__args)","isFn(__a) && __a(__args)":"__a?.(__args)",'if (typeof __a === "function") __a(__args)':"__a?.(__args)",'if (typeof __a === "function") {__a(__args)}':"__a?.(__args)","__a && __a.__b(__args)":"__a?.__b(__args)","__a.__b && __a.__b[__c] && __a.__b[__c].__d(__args)":"__a.__b?.[__c]?.__d(__args)"});var eu_={};eu_.report=()=>"Use optional expression ('a?.b = c') instead of 'condition' ('a && a.b = c')",eu_.replace=()=>({"if (__a) {__a.__b = __c}":"__a?.__b = __c","if (__a) __a.__b = __c":"__a?.__b = __c","__a && (__a.__b = __c)":"__a?.__b = __c"}),euT.rules={assign:["off",eu_],use:euE};var euP={};let{types:euA}=es3,{isBinaryExpression:euk,isTemplateLiteral:euC}=euA;euP.report=()=>"Use template literals instead of binary expressions",euP.filter=({parentPath:e})=>{if(euk(e)||euC(e.parentPath))return!1;let t=!0;return e.traverse({StringLiteral(e){e.node.value.includes("\r")&&(t=!1)}}),t},euP.replace=()=>({'"__a" + __identifier__b + "__c"':"`__a${__identifier__b}__c`",'"__a" + __b(__args)+ "__c"':"`__a${__b(__args)}__c`",'__identifier__a + "__b" + __identifier__c + __identifier__d':"`${__identifier__a}__b${__identifier__c}${__identifier__d}`",'__identifier__a + "__b"':"`${__identifier__a}__b`",'"__a" + __identifier__b':"`__a${__identifier__b}`",'String(__a) + ".tar.gz"':"`${__a}.tar.gz`"});var euw={},euI={};let{types:euN,operator:euO}=es3,{replaceWith:euD}=euO,{isBlockStatement:euL,BlockStatement:euM}=euN;function euF(e,t=[]){let r=e.get("consequent");if(t.push(r),!e.node.alternate)return t;let n=e.get("alternate");return n.isIfStatement()?euF(n,t):[...t,n]}euI.report=()=>"Use consistent blocks",euI.fix=e=>{let t=euF(e);if(function(e){let t=[];for(let r of e)euL(r)?t.push(r.node.body.length):t.push(1/0);for(let e of t)if(1!==e&&e!==1/0)return!0;return!1}(t))for(let e of t){if(euL(e))continue;let{node:t}=e;euD(e,euM([t]))}else for(let e of t){if(!euL(e))continue;let[t]=e.node.body;euD(e,t)}},euI.include=()=>["IfStatement"],euI.filter=e=>{if(e===e.parentPath.get("alternate"))return;let t=euF(e),r=[];for(let e of t){let t=euL(e);r.push(t)}let n=r.filter(Boolean).length;if(!n)return!1;let i=[];for(let e of t){let t=euL(e)&&e.node.body.length>1;i.push(t)}let a=i.filter(Boolean).length;return!a||a!==t.length&&!(1!==n&&n===t.length)};var euB={};euB.report=({leftPath:e,rightPath:t})=>`Swap '${e.toString()}' with '${t}'`;let{replaceWith:euR}=es3.operator;euB.fix=({path:e,leftPath:t,rightPath:r,operator:n})=>{let i=t.node,a=r.node;euR(r,i),euR(t,a),e.node.operator=n.includes(">")?n.replace(">","<"):n.includes("<")?n.replace("<",">"):n},euB.traverse=({push:e})=>({BinaryExpression:t=>{let{operator:r}=t.node;if(!/^[<>]=?|===?$/.test(r)||r.includes(">>")||r.includes("<<"))return;let n=t.get("left"),i=t.get("right");!n.isUpdateExpression()&&!(n.isIdentifier()||n.isMemberExpression()||n.isCallExpression())&&!n.isOptionalMemberExpression()&&(i.isIdentifier()||i.isMemberExpression()||i.isCallExpression())&&e({path:t,operator:r,leftPath:n,rightPath:i})}});var euj={};let{operator:euU}=es3,{remove:euV,replaceWith:euW}=euU;euj.report=()=>"Avoid empty statement in if condition",euj.filter=e=>!!e.getNextSibling().node&&e.get("consequent").isEmptyStatement(),euj.include=()=>["IfStatement"],euj.fix=e=>{let t=e.getNextSibling();euW(e.get("consequent"),t),euV(t)};var euq={};euq.report=()=>"Avoid useless conditions",euq.match=()=>({"if (__a) __b":(e,t)=>{let{confident:r}=t.get("test").evaluate();return r}}),euq.replace=()=>({"if (__a) __b":(e,t)=>{let{value:r}=t.get("test").evaluate();return r?"__b":""}});var euJ={};let{types:euX,operator:euG}=es3,{replaceWith:euK,compute:euH}=euG,{isIdentifier:euz,BooleanLiteral:eu$}=euX;euJ.report=()=>"Avoid constant conditions",euJ.fix=({path:e,value:t})=>{euK(e,eu$(t))},euJ.traverse=({push:e})=>({BinaryExpression(t){let{left:r,right:n,operator:i}=t.node;if(!/<|>|===?|!===?/.test(i)||/<<|>>/.test(i))return;let[a,s]=euH(t);return a?e({path:t,value:s}):euz(r)&&euz(n)&&r.name===n.name?e({path:t,value:/^===?$/.test(i)}):void 0}});var euY={};euY.report=()=>"Use strict equal ('===') instead of equal ('==')",euY.exclude=()=>["__ == null","__ != null"],euY.replace=()=>({"__a == __b":"__a === __b","__a != __b":"__a !== __b"});var euQ={};let{types:euZ,operator:eu0}=es3,{replaceWith:eu1}=eu0,{LogicalExpression:eu2}=euZ;euQ.report=()=>"Merge 'if' statements",euQ.fix=({path:e,consequentPath:t})=>{let r=e.get("test"),n=r.node;eu1(r,eu2("&&",n,t.node.test)),eu1(e.get("consequent"),t.get("consequent"))};let eu3=e=>{let t=e.get("consequent");if(t.isIfStatement())return t;let{node:r}=t;if(!t.isBlock()||r.body.length>1)return;let n=t.get("body.0"),{body:i}=t.node;return i.length&&n.isIfStatement()?n:null};euQ.traverse=({push:e})=>({"if (__) __":eu4({push:e})});let eu4=({push:e})=>t=>{let r=eu3(t);r&&(r.node.alternate||e({path:t,consequentPath:r}))};var eu5={};eu5.report=()=>"Avoid boolean in assertions",eu5.replace=()=>({"return __a === true":"return Boolean(__a)","return __a == true":"return Boolean(__a)","const __a = __b === true":"const __a = __b","const __a = __b == true":"const __a = __b","__a = __b === true":"__a = __b === Boolean(__a)","__a = __b == true":"__a = __b == Boolean(__a)","__a === true":"__a","__a === false":"!__a","__a == true":"__a","__a == false":"!__a","__a !== true":"!__a","__a != true":"!__a"});var eu8={};let{types:eu6}=es3,{isBinaryExpression:eu9,isJSXExpressionContainer:eu7}=eu6,ele=(e,t)=>{let{parentPath:r}=t;return!(r.find(eu7)||r.isAssignmentExpression())&&!r.isVariableDeclarator()};function elt({__a:e}){return eu9(e)?"!(__a)":"!__a"}eu8.report=()=>"Avoid zero in assertions",eu8.match=()=>({"__a !== 0":ele,"__a != 0":ele,"__a === 0":ele,"__a == 0":ele}),eu8.replace=()=>({"__a !== 0":"__a","__a != 0":"__a","__a === 0":elt,"__a == 0":elt});var elr={};let{isReturnStatement:eln,isBlockStatement:eli,isContinueStatement:ela,isBreakStatement:els}=es3.types;function elo(e){return!!(eln(e)||ela(e))||els(e)}elr.report=()=>"Avoid useless 'else'",elr.match=()=>({"if (__a) __b; else __c":({__b:e})=>eli(e)?elo(e.body.at(-1)):elo(e)}),elr.replace=()=>({"if (__a) __b; else __c":`{
|
15
|
+
if (__a) __b;
|
16
|
+
__c;
|
17
|
+
}`});var elu={};elu.report=()=>"Avoid useless conditions",elu.replace=()=>({"if (__a?.__b) {__a.__b(__args)}":"__a?.__b(__args)","if (__a?.__b) __a.__b(__args)":"__a?.__b(__args)","if (__a) __b; else __b":"__b"});var ell={};let{operator:elc}=es3,{getTemplateValues:elp,compare:eld,traverse:elf}=elc;ell.report=()=>"Avoid condition with the same value",ell.match=()=>({"if (__a === __b) __c":elh("if (__a !== __b) __c"),"if (__a !== __b) __c":elh("if (__a === __b) __c")}),ell.replace=()=>({"if (__a === __b) __c":"__c","if (__a !== __b) __c":"__c"});let elh=e=>({__a:t,__b:r},n)=>{for(;(n=n.getPrevSibling()).node;){if(!eld(n,e))continue;let i=elp(n,e);if(eld(t,i.__a)&&eld(r,i.__b)&&function(e){let t=!1;return elf(e,{ContinueStatement(e){t=!0,e.stop()}}),t}(n))return!0}return!1};var elm={};elm.report=()=>"Add return statement",elm.replace=()=>({"if (__a) false":"if (__a) return false","if (__a) true":"if (__a) return true"});var ely={};ely.report=()=>"Use 'condition' instead of 'arrow function'",ely.replace=()=>({"if (__a => __b) __c":"if (__a >= __b) __c"}),euw.rules={"apply-comparison-order":euB,"apply-consistent-blocks":euI,"apply-if":euj,evaluate:euq,"convert-comparison-to-boolean":euJ,"convert-equal-to-strict-equal":euY,"merge-if-statements":euQ,"remove-boolean":eu5,"remove-zero":eu8,"remove-useless-else":elr,simplify:elu,"remove-same-values-condition":ell,"add-return":elm,"convert-arrow-to-condition":ely};var elv={};function elg(e){if(e.isCallExpression())return e.get("arguments.0");let t=e.get("argument");return t.isFunction()?t:e.get("right")}elv.report=()=>"Use arrow function",elv.fix=e=>{elg(e).node.type="ArrowFunctionExpression"},elv.include=()=>["__ = function __(__args){}","return function (__args){}","__(function __(__args){})"],elv.exclude=()=>["__.prototype.__ = function __(__args){}"],elv.filter=e=>{let{id:t}=elg(e).node;if(t)return!1;let r=!1;return e.traverse({ThisExpression(){r=!0}}),!r};var elb={};let{types:elS}=es3,{Identifier:elx,isFunction:elT,SpreadElement:elE}=elS;elb.report=()=>"Use 'rest parameters' instead of 'arguments'",elb.fix=({path:e,paths:t})=>{for(let r of(e.node.params=[elE(elx("args"))],t))r.node.name="args"},elb.traverse=({push:e})=>({"FunctionExpression|FunctionDeclaration":t=>{let{directives:r}=t.node.body;if(t.node.params.length||r.length)return;let n=[];t.traverse({Identifier(e){let{node:r,scope:i}=e;e.find(elT)===t&&"arguments"===r.name&&(i.hasBinding("args")||n.push(e))}}),n.length&&e({path:t,paths:n})}});var el_={};let{operator:elP}=es3,{remove:elA}=elP;el_.report=()=>"Avoid 'console' call",el_.fix=e=>{elA(e)},el_.filter=({scope:e})=>!e.hasBinding("console"),el_.include=()=>["console.__a(__args)","console[__a](__args)"];var elk={},elC={};let{isIdentifier:elw,isObjectExpression:elI,isObjectPattern:elN,isTemplateLiteral:elO,isAssignmentPattern:elD}=es3.types,elL=({use:e,declare:t})=>{let r=elR({use:e});return e=>{for(let n of e){if(n.isRestElement())continue;let{key:e,value:i}=n.node,a=n.get("value");switch(i.type){case"Identifier":t(n,i.name);break;case"AssignmentPattern":n.node.shorthand?t(n,e.name):t(n,a.node.left.name),r(a)}}}};elC.traverseObjectPattern=elL;let elM=({use:e,declare:t})=>r=>{for(let n of r){let{key:r,value:i,computed:a}=n.node;if(a&&elw(r)&&e(n,r.name),elw(i)){t(n,i.name);continue}if(elN(i)){elM({use:e,declare:t})(n.get("value.properties"));continue}if(elD(i)){elR({use:e})(n.get("value.right"));let r=n.get("value.left");if("Identifier"===r.type){t(n,r.node.name);continue}}}};elC.processObjectPattern=elM;let elF=e=>{let t=elB(e);return r=>{for(let n of r){let{node:r}=n,{key:i,value:a,computed:s}=r;if(s&&elw(i)&&e(n,i.name),elw(a)){e(n,a.name);continue}if(elO(a)){t(n,a.expressions);continue}if(elI(a)){elF(e)(n.get("value.properties"));continue}}}};elC.traverseObjectExpression=elF,elC.traverseArrayExpression=e=>{let t=elF(e);return e=>{for(let r of e){let{node:e}=r;elI(e)&&t(r.get("properties"))}}},elC.traverseAssignmentExpression=({use:e,declare:t})=>{let r=elL({use:e,declare:t});return n=>{let i=n.get("left"),a=n.get("right");if(i.isIdentifier()){let{parentPath:e}=i.parentPath,{name:r}=i.node;e.isObjectProperty()&&t(e,r),e.isFunction()&&t(i.parentPath,r)}a.isIdentifier()&&e(a,a.node.name),i.isObjectPattern()&&r(i.get("properties"))}};let elB=e=>(t,r)=>{for(let n of r)elw(n)&&e(t,n.name)};elC.traverseTemplateLiteral=elB;let elR=({use:e})=>t=>{let{node:r}=t,{right:n}=r;elw(r)&&e(t.parentPath,r.name),elw(n)&&e(t,n.name)};elC.traverseAssignmentPattern=elR;let{types:elj}=es3,{isIdentifier:elU,isJSXIdentifier:elV}=elj,{types:elW}=es3,{isIdentifier:elq}=elW,{types:elJ}=es3,{isIdentifier:elX,isTSModuleDeclaration:elG}=elJ,{isAssignmentPattern:elK,isClassDeclaration:elH,isIdentifier:elz,isSpreadElement:el$,isObjectPattern:elY,isObjectExpression:elQ,isFunctionDeclaration:elZ,isArrayExpression:el0,isArrayPattern:el1,isVariableDeclaration:el2,isRestElement:el3}=es3.types,{traverseObjectExpression:el4,processObjectPattern:el5,traverseArrayExpression:el8,traverseAssignmentExpression:el6,traverseTemplateLiteral:el9}=elC,el7=e=>({JSXOpeningElement(t){let{node:r}=t,{name:n}=r;/^[A-Z]/.test(n.name)&&e(t,n.name),e(t,"React")},JSXFragment(t){e(t,"React")},JSXSpreadAttribute(t){let r=t.get("argument");if(r.isIdentifier())return e(t,r.node.name)},JSXMemberExpression(t){let{node:r}=t,{object:n}=r;elV(n)&&e(t,n.name)},JSXExpressionContainer(t){let{node:r}=t,{expression:n}=r;elU(n)&&e(t,n.name)}}),ece=({use:e,declare:t})=>({GenericTypeAnnotation(t){let{node:r}=t,{id:n}=r;elq(n)&&e(t,n.name)},QualifiedTypeIdentifier(t){let{qualification:r}=t.node,{type:n}=r;if("Identifier"===n)return e(t,r.name)},InterfaceDeclaration(e){t(e,e.node.id.name)}}),ect=({use:e,declare:t})=>({"TSClassImplements|TSInterfaceHeritage"(t){let{expression:r}=t.node,{type:n}=r;"Identifier"===n&&e(t,r.name)},TSFunctionType(r){let{node:n}=r,{params:i}=n;for(let n of i){let{type:i}=n;switch(i){case"Identifier":t(r,n.name),e(r,n.name);break;case"RestElement":elX(n.argument)&&(t(r,n.argument.name),e(r,n.argument.name))}}},TSTypeReference(t){let{node:r}=t,{typeName:n}=r,{type:i}=n;"Identifier"===i&&e(t,n.name)},TSTypeAliasDeclaration(e){let{node:r}=e,{id:n}=r,{type:i}=n;"Identifier"===i&&t(e,n.name)},TSTypeQuery(t){let{node:r}=t,{exprName:n}=r,{type:i}=n;"Identifier"===i&&e(t,n.name)},TSAsExpression(t){let{node:r}=t,{expression:n}=r,{type:i}=n;"Identifier"===i&&e(t,n.name)},TSQualifiedName(t){let{node:r}=t,{left:n}=r,{type:i}=n;"Identifier"===i&&e(t,n.name)},TSInterfaceDeclaration(r){t(r,r.node.id.name),r.findParent(elG)&&e(r,r.node.id.name)},TSMethodSignature(r){for(let n of r.get("params")){if(n.isIdentifier()){t(n,n.node.name),e(n,n.node.name);continue}let{type:r}=n;if("RestElement"===r){t(n,n.node.argument.name),e(n,n.node.argument.name);continue}}},TSDeclareFunction(t){if(!t.get("params").length)return;let[r]=t.get("params");r.isRestElement()&&e(r,r.node.argument.name)}}),{assign:ecr}=Object,ecn=e=>{let{remove:t}=e;return()=>{let r=e.node,{elements:n}=e.parentPath.node,i=n.length-1;if(n.indexOf(r)===i)return t.call(e)}};var eci={};let{types:eca}=es3,{isIdentifier:ecs,isObjectPattern:eco,isRestElement:ecu,isAssignmentPattern:ecl}=eca;eci.usePropertiesBeforeRest=({use:e})=>({path:t,params:r})=>{for(let n of r)eco(n)&&function(e,t,r){let{length:n}=r;if(ecu(r.at(-1)))for(let i=0;i<n-1;i++){let{value:n}=r[i],{type:a}=n;if("Identifier"===a){e(t,n.name);continue}}}(e,t,n.properties);return{path:t,params:r}},eci.useParamsBeforeAssign=({use:e})=>({path:t,params:r})=>{let n=r.at(-1),i=r.slice(0,-1);if(ecl(n)){for(let r of i)ecs(r)&&e(t,r.name);return{path:t,params:r}}},eci.useParamsBeforeLastUsed=({use:e,isUsed:t})=>({path:r,params:n})=>{let i=n.length;for(;--i>0&&!ecc(t,r,n[i]););for(;--i>=0;)ecs(n[i])&&e(r,n[i].name);return{path:r,params:n}};let ecc=(e,t,r)=>{let{type:n}=r;switch(n){case"Identifier":return e(t,r.name);case"ObjectPattern":return ecd(e,t,r);case"AssignmentPattern":return ecp(e,t,r)}},ecp=(e,t,r)=>{let{left:n}=r,{type:i}=n;switch(i){case"Identifier":return e(t,n.name);case"ObjectPattern":return ecd(e,t,n)}},ecd=(e,t,r)=>{for(let{value:n}of r.properties)if(ecs(n)){if(e(t,n.name))return!0;continue}return!1},{types:ecf}=es3,ech=({use:e,declare:t,addParams:r})=>{let n=el4(e),i=el5({use:e,declare:t}),a=el6({use:e,declare:t}),s=el9(e),o=el8(e);return{"ObjectExpression|RecordExpression"(e){n(e.get("properties"))},SequenceExpression(t){for(let r of t.get("expressions"))r.isIdentifier()&&e(r,r.node.name)},"AwaitExpression|YieldExpression|SpreadElement"(t){let{argument:r}=t.node;elz(r)&&e(t,r.name)},CatchClause(r){let n=r.get("param");if(n.isObjectPattern())return i(n.get("properties"));if(!n.isIdentifier())return;let{name:a}=n.node;t(n,a),r.scope.getOwnBinding(a).referenced&&e(n,a)},Decorator(t){let r=t.get("expression");if(!r.isIdentifier())return;let{name:n}=r.node;e(r,n)},RestElement(e){let{argument:r}=e.node;elz(r)&&t(e,r.name)},VariableDeclarator(r){let{node:n}=r,{init:s}=n,u=r.get("id"),l=r.parentPath.parentPath.isForInStatement();if(elz(n.id))t(r,n.id.name),l&&e(r,n.id.name);else if(elY(n.id))u.traverse({ObjectProperty(i){if(elK(i.node.value)&&a(i.get("value")),i.node.computed&&elz(i.node.key)&&e(i.get("key"),i.node.key.name),!elz(i.node.value))return;let{properties:s}=n.id,o=1===s.length?r:i,{name:u}=i.node.value;t(o,u),el3(i.parentPath.node.properties.at(-1))&&e(o,u)}});else if(u.isArrayPattern())for(let r of u.get("elements")){if(r.isObjectPattern()){i(r.get("properties"));continue}if(r.isAssignmentPattern()){let n=r.get("left"),i=r.get("right");t(n,r.node.left.name),e(i,r.node.right.name),ecr(n,{remove:ecn(r)})}r.isIdentifier()&&(ecr(r,{remove:ecn(r)}),t(r,r.node.name))}let c=r.get("init");elz(s)?e(r,s.name):el0(s)&&o(c.get("elements"))},ClassProperty(t){let r=t.get("value");r.isIdentifier()&&e(r,r.node.name)},"ClassDeclaration|ClassExpression"(r){let{node:n}=r,{id:i,superClass:a}=n;a&&e(r,a.name),i&&t(r,i.name),i&&r.isClassExpression()&&e(r,i.name)},AssignmentExpression(t){let r=t.get("left"),n=t.get("right");r.isIdentifier()&&e(r,r.node.name),n.isIdentifier()&&e(n,n.node.name)},"ArrayExpression|TupleExpression"(t){let{elements:r}=t.node;for(let n of r){if(elz(n)){e(t,n.name);continue}if(el$(n)){e(t,n.argument.name);continue}}},ConditionalExpression(t){let{test:r,consequent:n,alternate:i}=t.node,a=t.get("alternate"),s=t.get("consequent");elz(r)&&e(t,r.name),elz(n)&&e(t,n.name),elz(i)&&e(t,i.name),a.isFunction()&&i.id&&e(a,i.id.name),s.isFunction()&&n.id&&e(s,n.id.name)},DoWhileStatement(t){let r=t.get("test");r.isIdentifier()&&e(r,r.node.name)},TemplateLiteral(e){s(e,e.node.expressions)},LogicalExpression(t){let{left:r,right:n}=t.node;elz(r)&&e(t,r.name),elz(n)&&e(t,n.name)},MemberExpression(t){let{property:r,object:n,computed:i}=t.node;elz(n)&&e(t,n.name),i&&elz(r)&&e(t,r.name)},OptionalMemberExpression(t){let{object:r,property:n,computed:i}=t.node;elz(r)&&e(t,r.name),i&&elz(n)&&e(t,n.name)},NewExpression(t){let r=t.get("callee"),{node:n}=t;for(let{node:i}of(r.isIdentifier()?e(t,n.callee.name):r.isFunction()&&e(r,r.node.id.name),t.get("arguments")))if(elz(i)){e(t,i.name);continue}},TaggedTemplateExpression(t){let{tag:r}=t.node;elz(r)&&e(t,r.name)},UnaryExpression(t){let{argument:r}=t.node;elz(r)&&e(t,r.name)},UpdateExpression(t){let{argument:r}=t.node;elz(r)&&e(t,r.name)},ThrowStatement(t){let{argument:r}=t.node;elz(r)&&e(t,r.name)},IfStatement(t){let{node:r}=t,{test:n}=r;if(elz(n))return e(t,n.name)},ForInStatement(t){let{node:r}=t,{left:n,right:i}=r;elz(n)&&e(t,n.name),elz(i)&&e(t,i.name)},ForOfStatement(r){let{node:n}=r,{left:i,right:a}=n;elz(a)&&e(r,a.name),elz(i)?e(r,i.name):r.get("left").traverse({Identifier(e){t(r,e.node.name)}}),r.get("left").traverse({Identifier(t){e(t,t.node.name)}})},ExpressionStatement(t){let{node:r}=t;elz(r.expression)&&e(t,r.expression.name)},SwitchStatement(t){let{node:r}=t;for(let{test:n}of(elz(r.discriminant)&&e(t,r.discriminant.name),r.cases))elz(n)&&e(t,n.name)},ReturnStatement(t){let{node:r}=t,{argument:n}=r,i=t.get("argument");return i.isIdentifier()?e(t,n.name):i.isFunction()&&n.id?e(i,n.id.name):void 0},ObjectMethod(e){let{params:n}=e.node;for(let r of e.get("params")){let{node:e}=r;if(elz(e)){t(r,e.name);continue}}r({path:e,params:n})},"CallExpression|OptionalCallExpression"(t){let{node:r}=t,{callee:n}=r;elz(n)&&e(t,r.callee.name),t.traverse({SpreadElement(t){let{argument:r}=t.node;elz(r)&&e(t,r.name)},Identifier(t){r.arguments.includes(t.node)&&e(t,t.node.name)}})},BinaryExpression(t){let{left:r,right:n}=t.node;elz(r)&&e(t,r.name),elz(n)&&e(t,n.name)},ImportExpression(t){let{source:r}=t.node,{name:n}=r;elz(r,{name:n})&&e(t,n)},ImportDeclaration(e){for(let r of e.get("specifiers")){let{local:e}=r.node;elz(e)&&t(r,e.name)}},ExportDefaultDeclaration(t){let r=t.get("declaration"),{declaration:i}=t.node,{id:a}=i;return a&&elZ(i)?e(t,i.id.name):elz(i)?e(t,i.name):a&&elH(i)?e(t,i.id.name):elQ(i)?n(r.get("properties")):void 0},ExportNamedDeclaration(t){let r=t.get("declaration"),{declaration:n,specifiers:i}=t.node;if(r.isFunctionDeclaration()||r.isClassDeclaration()||r.isTSInterfaceDeclaration()||r.isTSTypeAliasDeclaration()||r.isInterfaceDeclaration())return e(t,n.id.name);if(el2(n)){let{declarations:r}=n;for(let{id:n}of r)if(elz(n)&&e(t,n.name),el1(n))for(let r of n.elements)elz(r)&&e(t,r.name);return}for(let{local:r}of i)elz(r)&&e(t,r.name)},Function(n){let{node:s,parentPath:o}=n,{id:u,body:l,params:c}=s,p=n.get("params");!u||(t(n,s.id.name),o.isBlock()||o.isProgram()||e(n,s.id.name));let d=p.length;for(let[r,n]of p.entries()){let{node:s}=n;if(elz(s)){t(n,s.name),!r&&d>1&&e(n,s.name);continue}if(elK(s)){a(n);continue}if(elY(s)){i(n.get("properties"));continue}}elz(l)&&e(n,l.name),r({path:n,params:c})},...el7(e),...ece({use:e,declare:t}),...ect({use:e,declare:t})}},{useParamsBeforeLastUsed:ecm,useParamsBeforeAssign:ecy,usePropertiesBeforeRest:ecv}=eci,{isClassDeclaration:ecg,isFunctionDeclaration:ecb}=ecf,ecS=e=>({path:t,params:r})=>{e.push({path:t,params:r})};function ecx({name:e,scope:t}){if(t.hasOwnBinding(e))return t.uid;for(;t.parent&&!(t=t.parent).hasOwnBinding(e););return t.uid}let ecT=({vars:e})=>(t,r)=>{let{scope:n}=t,{used:i}=e[ecx({name:r,scope:n})][r];return i},ecE=({vars:e,setPath:t})=>(r,n)=>{let i=ecx({name:n,scope:function(e){let{node:t,scope:r}=e;return ecb(t)||ecg(t)?e.parentPath.scope:r}(r)});e[i]||(e[i]={});let a=e[i];a[n]?a[n].declared=!0:a[n]={declared:!0,used:!1},t&&(a[n].path=r)},ec_=({vars:e})=>(t,r)=>{let{scope:n}=t,i=ecx({name:r,scope:n});e[i]||(e[i]={});let a=e[i];a[r]?a[r].used=!0:a[r]={declared:!1,used:!0}},ecP=({declared:e,used:t})=>e&&!t,{operator:ecA}=es3,eck=(e,t)=>{let r={},n=[],{setPath:i,traverse:a}=t,s=ec_({vars:r}),o=ecE({vars:r,setPath:i}),u=ecT({vars:r});return a(e,ech({use:s,declare:o,addParams:ecS(n)})),n.map(ecm({use:s,isUsed:u})).map(ecv({use:s})).map(ecy({use:s,isUsed:u})),Object.values(r)},ecC=e=>{let t=[];for(let r of e)for(let e of Object.entries(r))t.push(function([e,t]){return{name:e,...t}}(e));return t},ecw=e=>e.filter(ecP),{replaceWith:ecI,compare:ecN,remove:ecO}=ecA;elk.report=({name:e})=>`'${e}' is defined but never used`,elk.fix=({path:e})=>ecN(e,"const __a = __b = __c")?ecI(e.parentPath,e.node.init):!function({parentPath:e}){return!!e.isImportDeclaration()&&1===e.node.specifiers.length}(e)?void ecO(e):ecO(e.parentPath),elk.find=(e,{traverse:t})=>ecw(ecC(eck(e,{setPath:!0,traverse:t})));var ecD={};let{types:ecL}=es3,{isFunctionDeclaration:ecM}=ecL;ecD.report=()=>"Unreachable code",ecD.fix=({siblings:e})=>{for(let t of e)t.remove()},ecD.traverse=({push:e})=>({"ReturnStatement|ThrowStatement"(t){let r=t.getAllNextSiblings();r.length&&(r.find(ecM)||e({path:r[0],siblings:r}))}});var ecF={};ecF.report=()=>"Unexpected 'debugger' statement",ecF.replace=()=>({debugger:""});var ecB={},ecR={};let{types:ecj,operator:ecU}=es3,{replaceWith:ecV,remove:ecW}=ecU,{UnaryExpression:ecq,isArrowFunctionExpression:ecJ,isFunctionExpression:ecX,isFunctionDeclaration:ecG,isObjectMethod:ecK,isClassMethod:ecH,isCatchClause:ecz,isIfStatement:ec$,isTryStatement:ecY}=ecj;ecR.report=()=>"Avoid useless empty blocks",ecR.fix=e=>{let t=e.get("alternate"),r=e.get("test"),{alternate:n}=e.node;if(!e.isIfStatement())return ecW(e);if(!n)return r.isBinaryExpression()||r.isLiteral()?ecW(e):ecV(e,r);if(t.isBlock()&&!n.body.length){e.node.alternate=null;return}if(t.isIfStatement())return ecV(e,t);e.node.consequent=e.node.alternate,e.node.alternate=null;let{operator:i}=r.node;if(i&&"="!==i&&/[!<=>]/.test(r.node.operator)){r.node.operator=function(e){switch(e){case">":return"<=";case"<":return">=";case"<=":return">";case">=":return"<";case"!":return"";case"!=":return"==";case"!==":return"===";default:return`!${e}`.replace("=","")}}(r.node.operator);return}ecV(r,ecq("!",r.node))},ecR.traverse=({push:e})=>({BlockStatement(t){let{node:r,parentPath:n}=t,{body:i}=r;if(r.innerComments||i.length)return;let a=n.node;if(!(ecJ(a)||ecX(a)||ecG(a)||ecK(a)||ecH(a))&&!ecz(a)){if(ecY(a))return e(n);if(function(e,t){let{body:r}=t;return!!r&&r[0]===e}(r,a))return e(t);if(function(e,t){if(ec$(t))return t.consequent===e}(r,a)||function(e,t){let{alternate:r}=t;if(ec$(t))return r===e}(r,a))return e(n);if(n.isProgram())return e(t);e(n)}}});var ecQ={};let{operator:ecZ}=es3,{remove:ec0}=ecZ;ecQ.report=()=>"Avoid useless empty static blocks",ecQ.fix=e=>ec0(e),ecQ.filter=e=>!e.node.body.length,ecQ.include=()=>["StaticBlock"];var ec1={};let{types:ec2}=es3,ec3=e=>!e&&"object"==typeof e,{isObjectPattern:ec4,isArrayPattern:ec5}=ec2;ec1.report=()=>"Avoid empty patterns",ec1.match=()=>({"for (const __array of __a) __body":ept,"(__array) => __a":ec8,"const __array = __":ec8,"let __array = __":ec8,"__array = __":ec8,"function __a(__args) {}":ec6,"(function __b(__args) {})":ec6,"(async function __b(__args) {})":ec6,"(__args) => __a":ec6,"async (__args) => __a":ec6}),ec1.replace=()=>({"for (const __array of __a) __body":epe,"const __array = __":"","let __array = __":"","var [] = __":"","const {} = __":"","let {} = __":"","var {} = __":"","__array = __":"","({} = __)":"","(__array) => __a":"() => __a","function __a(__args) {}":ec9,"(function __b(__args) {})":ec9,"(async function __b(__args) {})":ec9,"(__args) => __a":ec9,"async (__args) => __a":ec9});let ec8=({__array:e},t)=>{if(t.parentPath.isForOfStatement())return!1;let{elements:r}=e;return r.every(ec7)};function ec6({__args:e}){let t=e.length,r=e[t-1];return!!r&&ec7(r)}function ec9({__args:e},t){return e.pop(),t}let ec7=e=>!!(!e||ec4(e)&&!e.properties.length)||ec5(e)&&!e.elements.length;function epe({__array:e},t){return e.elements.length=0,e.elements.pop(),t}let ept=({__array:e})=>{let{elements:t}=e;return t.filter(ec3).length===t.length};var epr={};let{operator:epn}=es3,{remove:epi}=epn;epr.report=()=>"Avoid empty nested patterns",epr.fix=e=>epi(e.parentPath),epr.filter=e=>!(e.isArrayPattern()&&e.node.elements.length||e.isObjectPattern()&&e.node.properties.length)&&e.parentPath.isObjectProperty(),epr.include=()=>["ArrayPattern","ObjectPattern"];var epa={};let{operator:eps,types:epo}=es3,{isObjectPattern:epu,isArrayPattern:epl}=epo,{remove:epc}=eps;epa.report=()=>"Avoid empty destructuring argument",epa.fix=e=>{epc(e)},epa.traverse=({push:e})=>({Function:epp({push:e})});let epp=({push:e})=>t=>{let r=t.get("params"),{length:n}=r;if(!n)return;let i=r.at(-1);i.isObjectPattern()&&!i.node.properties.length&&e(i),i.isArrayPattern()&&!i.node.elements.length&&e(i),function(e){if(!e.isAssignmentPattern())return!1;let{left:t}=e.node;return epu(t)?!t.properties.length:!!epl(t)&&!t.elements.length}(i)&&e(i)};ecB.rules={block:ecR,"static-block":ecQ,pattern:ec1,"nested-pattern":epr,argument:epa};var epd={},epf={};let{types:eph}=es3,{isNumericLiteral:epm,isMemberExpression:epy,isIdentifier:epv}=eph;epf.report=()=>"Avoid useless spread '...'",epf.match=()=>({"[...Array(__a)]":({__a:e})=>!epm(e),"[...__a(__args)]":({__a:e})=>{if(!epy(e))return!0;let t=epv(e.property,{name:"values"});return!!epv(e.object,{name:"Object"})||!t}}),epf.replace=()=>({"[...Array(__a)]":"Array(__a)","for (const __a of [...__b]) __c":"for (const __a of __b) __c","Array.from([...__a])":"Array.from(__a)","[...__a(__args)]":"__a(__args)","new Set([...__a])":"new Set(__a)"});var epg={};let{types:epb}=es3,{isCallExpression:epS,isReturnStatement:epx,isSpreadElement:epT}=epb;epg.report=()=>"Avoid useless spread '...'",epg.filter=e=>{let{node:t,parentPath:r}=e,[n]=t.properties,{comments:i,trailingComments:a}=n;return!(i?.length||a?.length)&&(!!(epS(r)&&epT(n)||epS(n.argument))||epx(e.parentPath))},epg.exclude=()=>["({...__b && {__c: __d}})","__a = {...__a}"],epg.replace=()=>({"({...__a})":"__a"});var epE={};let{operator:ep_}=es3,{remove:epP,insertAfter:epA}=ep_;epE.report=()=>"Remove useless nested spread",epE.fix=({path:e,argPath:t})=>{for(let r of t.get("elements").reverse())epA(e,r.node);epP(e)},epE.traverse=({push:e})=>({SpreadElement(t){let{parentPath:r}=t,n=t.get("argument");!r.isCallExpression()&&n.isArrayExpression()&&e({path:t,argPath:n})}}),epd.rules={array:epf,object:epg,nested:epE};var epk={},epC={};let{operator:epw,types:epI}=es3,{remove:epN,rename:epO}=epw,{isIdentifier:epD}=epI;epC.report=({idName:e})=>`Useless variable declaration with name "${e}"`,epC.fix=({path:e,bindingPath:t,initName:r,idName:n})=>{epO(t,r,n),epN(e)},epC.traverse=({push:e})=>({VariableDeclarator(t){let{node:r,parentPath:n}=t,{id:i,init:a}=r;if(n.parentPath.isExportNamedDeclaration()||!epD(a)||!epD(i))return;let{name:s}=a;if(i.name.length<s.length||i.name===s.toUpperCase())return;let o=t.scope.bindings[s];if(!o||o.referencePaths.length>1)return;let u=o.path;!(u.isVariableDeclarator()&&u.get("id").isObjectPattern())&&(u.isObjectPattern()||e({path:t,bindingPath:u,initName:a.name,idName:i.name}))}});var epL={};let{operator:epM}=es3,{remove:epF,compare:epB}=epM,epR=e=>e.isMemberExpression()&&e.get("object").isMemberExpression();function epj({mainPath:e,leftPath:t,rightPath:r,push:n}){if(!r.isIdentifier())return;let{name:i}=r.node;if("React"===i)return;let a=r.scope.bindings[i];!a||a.constantViolations.length||a.references>1||!a.path.isVariableDeclarator()||!a.path.get("id").isIdentifier()||epB(t,a.path.node.init)||a.path.get("init").isMemberExpression()||n({mainPath:e,idName:a.path.node.id.name,path:a.path})}epL.report=({idName:e})=>`Useless variable declaration with name "${e}"`,epL.fix=({mainPath:e,path:t})=>{let{init:r}=t.node;if(epF(t),e.isAssignmentExpression()){e.node.right=r;return}e.node.init=r},epL.traverse=({push:e})=>({AssignmentExpression(t){let r=t.get("left"),n=t.get("right");epR(r)||epj({mainPath:t,rightPath:n,leftPath:r,push:e})},VariableDeclarator(t){let r=t.get("id"),n=t.get("init");epj({mainPath:t,leftPath:r,rightPath:n,push:e})}});var epU={};let{types:epV,operator:epW}=es3,{isIdentifier:epq,isRestElement:epJ,isAssignmentPattern:epX}=epV,{replaceWith:epG}=epW,epK=e=>{let{key:t,value:r}=e;return!epX(r)&&epq(t)?e.key.name.length:epJ(e)&&epq(e.argument)?e.argument.name.length+3:20},epH=(e,t)=>e+epK(t);epU.report=e=>`Remove useless variable '${e.node.declarations[0].init.name}'`,epU.match=()=>({"const __object = __a":({__a:e,__object:t},r)=>{let{parentPath:n}=r.parentPath;if(!n||!n.isFunction()||r.node!==n.node.body.body[0])return!1;let{params:i}=n.node;if(1!==i.length)return!1;let[a]=i;return!(t.properties.length>3)&&!!epq(a)&&e.name===a.name&&!(r.scope.bindings[a.name].references>1)&&20>t.properties.reduce(epH,0)}}),epU.replace=()=>({"const __object = __a":({__object:e},t)=>{epG(t.parentPath.parentPath.get("params.0"),e)}});var epz={};let{types:ep$,operator:epY}=es3,{compare:epQ,remove:epZ,replaceWith:ep0}=epY,{isIdentifier:ep1}=ep$,ep2=e=>{let{body:t}=e.scope.block;return t.body||t};epz.report=()=>"Avoid useless declarations",epz.match=({options:e})=>({"return __a":({__a:e},t)=>{let r=t.scope.getAllBindings()[e.name];if(!r||1!==r.referencePaths.length||!r.path.isVariableDeclarator()||r.constantViolations.length||!r.path.get("id").isIdentifier()||!function(e){if(!e.path.node.init)return!1;let{start:t,end:r}=e.path.node.init.loc;return t.line===r.line}(r))return!1;let n=r.path.parentPath.getNextSibling(),[i]=r.referencePaths;return n===i.parentPath},"__a = __b":({__a:t,__b:r},n)=>{if(!ep1(r))return!1;let i=n.scope.getAllBindings()[r.name];if(!i||n.scope.uid!==i.scope.uid||1!==i.referencePaths.length||i.constantViolations.length||!i.path.isVariableDeclarator()||epQ(t,"module.exports")||epQ(t,"module.exports.__"))return!1;for(let e of ep2(n))if(e!==n.parentPath.node&&e.type===n.parentPath.type&&epQ(e.expression.left,t))return;let{maxLength:a=20}=e;return!(a<t.loc?.end.column-t.loc?.start.column)&&i.path.get("id").isIdentifier()}}),epz.replace=()=>({"return __a":({__a:e},t)=>{let r=t.scope.getAllBindings()[e.name],[n]=r.referencePaths;return ep0(n,r.path.node.init),epZ(r.path),t},"__a = __b":({__b:e},t)=>{let r=t.scope.getAllBindings()[e.name],[n]=r.referencePaths;return ep0(n,r.path.node.init),epZ(r.path),t}});var ep3={};let{operator:ep4}=es3,{getTemplateValues:ep5}=ep4;ep3.report=e=>{let{__a:t}=ep5(e,"const __a = function __a(__args) {__body}");return`Avoid duplicate declaration of '${t.name}'`},ep3.replace=()=>({"const __a = function __a(__args) {__body}":"function __a(__args){__body}"}),epk.rules={rename:epC,remove:epL,destruct:epU,declaration:epz,duplicate:ep3};var ep8={};let{types:ep6,operator:ep9}=es3,{replaceWith:ep7}=ep9,{isIdentifier:ede,isLiteral:edt,isAssignmentPattern:edr}=ep6;ep8.report=()=>"Avoid useless 'return'",ep8.include=()=>["ArrowFunctionExpression"],ep8.fix=e=>{let t=e.get("body"),r=t.get("body.0");ep7(t,r.node.argument)},ep8.filter=e=>{let t=e.get("body");if(!t.isBlockStatement()||function(e){for(let t of e.get("params"))if(edr(t))return!0;return!1}(e))return!1;let r=t.get("body.0");if(!r||!r.isReturnStatement()||function(e){let{leadingComments:t}=e.node;return t?.length}(r))return!1;let n=r.get("argument");return!(!n.node||edn(n)||!edi(n)||n.isNewExpression()||n.isAwaitExpression()||n.isTemplateLiteral())&&!n.isLogicalExpression()};let edn=e=>{if(!e.isCallExpression())return!1;let t=e.get("callee");return!!t.isMemberExpression()||t.get("object").isCallExpression()},edi=e=>{if(!e.isCallExpression())return!0;for(let t of e.node.arguments)if(!ede(t)&&!edt(t))return!1;return!0};var eda={};let{isReturnStatement:eds,isBlockStatement:edo}=es3.types;eda.report=()=>"Remove useless 'else'",eda.match=()=>({"if (__a) __b; else __c":({__b:e})=>{if(!edo(e))return eds(e);let{length:t}=e.body;return eds(e.body[t-1])}}),eda.replace=()=>({"if (__a) __b; else __c":`{
|
18
|
+
if (__a) __b;
|
19
|
+
__c;
|
20
|
+
}`});var edu={};let{operator:edl}=es3,{remove:edc,isSimple:edp}=edl;edu.report=()=>"Unused expression statement",edu.fix=e=>{edc(e)},edu.traverse=({push:e})=>({DirectiveLiteral(t){"use strict"!==t.node.value&&"use client"!==t.node.value&&e(t.parentPath)},ExpressionStatement(t){let r=t.get("expression");if(function(e){if(!e.isLogicalExpression())return!1;let t=e.get("left"),r=e.get("right");return edp(t)&&edp(r)}(r)||r.isIdentifier()||r.isObjectExpression()||r.isArrayExpression()||r.isMemberExpression()||function(e){if(!e.isLiteral())return!1;if(!e.isStringLiteral({value:"use strict"}))return!0;let{parentPath:t}=e;return t!==t.parentPath.get("body.0")}(r)||r.isUnaryExpression({operator:"!"})&&!function(e){let t=e.get("argument");return!!t.isCallExpression()&&t.get("callee").isFunction()}(r))return e(r)}});var edd={};let{operator:edf}=es3,{remove:edh}=edf;function edm(e,t){let r;for(r of e.get("properties")){let{key:e,shorthand:n}=r.node;if(!n||e.name===t)break}return r}function edy(e){return e.__putout_for_of_reduce}edd.report=()=>"Avoid unreferenced variables",edd.fix=e=>edh(e),edd.traverse=({push:e})=>({"return __a"(t){let r=t.get("argument");if(!r.isIdentifier())return!1;let n=t.scope.bindings[r.node.name];if(!n||n.constantViolations.length||1!==n.referencePaths.length||!n.path.isVariableDeclarator()||n.path.node.init)return!1;e(t)},"__identifier = __a"(t){if(t.parentPath.isConditionalExpression())return;let{name:r}=t.node.left,n=t.scope.getAllBindings()[r];if(!n||t.find(edy))return;let{referenced:i}=n;if(i)return;if(n.path.isObjectPattern()){let i=edm(n.path,r);e(t),e(i);return}let a=n.path.get("id");if(n.path.isVariableDeclarator()&&a.isObjectPattern()){let n=edm(a,r);e(t),e(n);return}e(t),e(n.path)}});var edv={};let{operator:edg}=es3,{replaceWith:edb}=edg;edv.report=()=>"Reuse duplicate init",edv.fix=({path:e,newPath:t})=>{edb(e.get("declarations.0.init"),t)},edv.exclude=()=>["const __a = __identifier"],edv.traverse=({push:e,store:t})=>({"const __identifier = __b"(e){let r=e.get("declarations.0.id");t(e.get("declarations.0.init").toString(),r)},"const __object = __b"(r){let n=r.get("declarations.0.init").toString();for(let e of r.get("declarations.0.id.properties")){if(e.isRestElement())continue;let r=e.get("key"),i=r.toString();t(`${n}.${i}`,r)}let i=t(n);i&&i.node&&r.scope.uid===i.scope.uid&&e({path:r,newPath:i})}});var edS={},edx={};let{operator:edT}=es3,{compare:edE}=edT;edx.report=()=>"Simplify ternary",edx.filter=e=>{let{parentPath:t}=e;return edE(e,"__a = __b ? __a : __d")||edE(e,"__a = __b ? __d : __a")?t.isExpressionStatement():!t.isJSXExpressionContainer()},edx.replace=()=>({"__a ? __a : __b":"__a || __b","__a?.__b ? __a.__b : __c":"__a?.__b || __c","__a ? __b : __a":"__a && __b","__a ? __b : __b ":"__b","__a ? false : true":"!__a","__a ? __b : false":"__a && __b","__a = __b ? __a : __d":"if (!__b) __a = __d","__a = __b ? __d : __a":"if (__b) __a = __d","__a ? __b && __c : __b && __d":"__b && __a ? __c : __d","__a ? __b || __c : __b || __d":"__b || __a ? __c : __d"});var ed_={};let{types:edP}=es3,{isNullLiteral:edA,isObjectExpression:edk,LogicalExpression:edC}=edP;ed_.report=()=>"Simplify ternary",ed_.fix=e=>{let{test:t,consequent:r}=e.node.argument;e.node.argument=edC("&&",t,r)},ed_.traverse=({push:e})=>({SpreadElement(t){if(!t.get("argument").isConditionalExpression())return;let{alternate:r}=t.node.argument;edk(r)&&!r.properties.length&&e(t),edA(r)&&e(t)}}),edS.rules={value:edx,spread:ed_};var edw={};let{operator:edI}=es3,{compare:edN,remove:edO,rename:edD}=edI,{entries:edL,keys:edM}=Object;edw.report=()=>"Avoid duplicate functions",edw.fix=({path:e,duplicatePath:t})=>{let{name:r}=e.get("id").node,{name:n}=t.get("id").node;edD(e,n,r),edO(t)},edw.traverse=({push:e})=>({Program({scope:t}){let{bindings:r}=t,n=edM(r),i=[];for(let[e]of edL(n))for(let[t]of edL(n)){if(e===t)continue;let a=n[e],s=n[t],o=r[a].path,u=r[s].path;if(!o.isVariableDeclarator()||!u.isVariableDeclarator())continue;let l=o.get("init"),c=u.get("init");l.isFunction()&&c.isFunction()&&l.node.type===c.node.type&&l.node.body.type===c.node.body.type&&l.node.body?.body?.length===c.node.body?.body?.length&&edN(l,c)&&i.push({path:o,duplicatePath:u})}for(let{path:t,duplicatePath:r}of i)t.node&&r.node&&e({path:t,duplicatePath:r})}});var edF={},edB={};let{types:edR,operator:edj}=es3,{remove:edU}=edj,{values:edV}=Object,{isImportDefaultSpecifier:edW,isImportNamespaceSpecifier:edq,isImportDeclaration:edJ}=edR;edB.report=()=>"Avoid duplicate imports",edB.fix=({path:e,imports:t})=>{let r=[];for(let n of t){let{specifiers:t}=n.node;for(let n of t){if(edW(n)){e.node.specifiers.unshift(n);continue}r.push(n)}edU(n)}e.node.specifiers.push(...r)},edB.traverse=({push:e,pathStore:t})=>({ImportDeclaration(e){t(e)},Program:{exit:()=>{(function(e,t){let{get:r,add:n}=function(){let e=[];return{get:()=>edV(e),add:(t,r)=>{e[t]=e[t]||[],e[t].push(r)}}}(),i=new Map;for(let e of t){let{source:t,specifiers:r}=e.node,{value:n}=t;if(r.find(edq))continue;let a=(i.get(n)||0)+r.filter(edW).length;i.set(n,a)}for(let e of t){let{source:t,specifiers:r}=e.node,{value:a}=t;!r.find(edq)&&(i.get(a)>1||n(a,e))}for(let t of r()){if(1===t.length)continue;let[r,...n]=t;e({path:r,imports:n})}})(e,t().filter(edJ))}}});var edX={};let{types:edG,operator:edK}=es3,{rename:edH,remove:edz}=edK,{isImportDefaultSpecifier:ed$}=edG;edX.report=()=>"Avoid duplicate imports",edX.fix=({path:e,imports:t})=>{let{name:r}=e.node.specifiers[0].local;edz(e);let[n,...i]=t,a=n.node.specifiers[0].local.name;for(let e of(edH(n,a,r),i)){let t=e.node.specifiers[0].local.name;edH(e,t,r),edz(e)}},edX.traverse=({push:e,uplist:t})=>({ImportDeclaration:e=>{let{value:r}=e.node.source,[n,...i]=e.node.specifiers;!i.length&&ed$(n)&&t(r,e)},Program:{exit(){for(let r of t()){if(r.length<2)continue;let[t,...n]=r;e({path:t,imports:n})}}}}),edF.rules={"merge-duplicate-imports-join":edB,"merge-duplicate-imports-rename":edX};var edY={},edQ={};let{types:edZ}=es3,{isReturnStatement:ed0,isBlockStatement:ed1,isTryStatement:ed2}=edZ,ed3=e=>e.at(-1);edQ.report=()=>"Use 'for...of' instead of map when 'return' absent",edQ.match=()=>({"__a.map((__b) => __c)":({__c:e},t)=>{if(!t.parentPath.isExpressionStatement()||!ed1(e))return!1;let r=ed3(e.body);return!ed2(r)&&!ed0(r)}}),edQ.replace=()=>({"__a.map((__b) => __c)":(e,t)=>{let r=t.get("callee.object"),n=t.get("arguments.0.params.0");return`for (const ${n} of ${r}) __c`}});var ed4={};let{template:ed5,operator:ed8,types:ed6}=es3,{ContinueStatement:ed9,isIdentifier:ed7}=ed6,{replaceWith:efe,replaceWithMultiple:eft,traverse:efr}=ed8,efn=ed5(`
|
21
|
+
for (const %%item%% of %%items%%)
|
22
|
+
%%body%%
|
23
|
+
`),efi=ed5(`
|
24
|
+
for (const [%%index%%, %%item%%] of %%items%%.entries())
|
25
|
+
%%body%%
|
26
|
+
`),{keys:efa}=Object,efs=e=>e.isFunction()||e.isProgram();function efo(e){efr(e,{"return __"(e){if(!function(e){let t=!1,r=!1;for(;(e=e.parentPath)&&(e.isFunction()&&(r=!0),e.isForOfStatement()&&(t=!0),!t||!r);)if(r&&!t)return!1;return!0}(e))return;let{argument:t}=e.node;if(!t)return efe(e,ed9());eft(e,[t,ed9()])}})}ed4.report=()=>"Use 'for-of' instead of 'forEach()'",ed4.replace=()=>({"__.forEach.call(__a, (__b) => __body)":"for (const __b of __a) __body","__.forEach(__args)":(e,t)=>{let{params:r,body:n}=t.node.arguments[0],i=function(e){let[t,r]=e;return"this"===e[0].name?r:t}(r);delete i.typeAnnotation;let{length:a}=r,s=ed7(r[0],{name:"this"}),o=t.node.callee.object;if(1===a||2===a&&s){efo(efe(t,efn({item:i,items:o,body:n})));return}if(2===r.length){let[,e]=r;efo(efe(t,efi({index:e,item:i,items:o,body:n})))}}}),ed4.match=()=>({"__.forEach(__args)":(e,t)=>{let{parentPath:r}=t;if(r.isSequenceExpression()||r.isConditionalExpression()||r.isVariableDeclarator())return!1;let n=t.get("callee.object"),i=t.get("arguments.0");if(!i.isFunction())return!1;let a=i.get("params");if(!a.length||function(e){if(!e.isCallExpression())return!1;for(let t of e.get("arguments"))if(t.isFunction())return!0}(n)||2===t.node.arguments.length&&!t.get("arguments.1").isThisExpression()||a.length>=3&&a[0].isIdentifier({name:"this"}))return!1;let[s]=a;return!function(e,t){let{name:r}=e.node;return t.isIdentifier({name:r})}(s,n)&&!function(e,t){for(let r of e)if(t.includes(r))return!0;return!1}(efa(t.findParent(efs).scope.bindings),efa(i.scope.bindings))}});var efu={};let{operator:efl,template:efc,types:efp}=es3,{compare:efd,getTemplateValues:eff}=efl,{isBlockStatement:efh}=efp;efu.report=()=>"Use 'for...of' instead of 'for'";let efm="for (let __i = 0; __i < __n; __i++) __c",efy=efc("for (const LEFT of RIGHT) BODY"),efv=e=>`const __a = __b[${e.name}]`,efg=e=>`const ${e.name} = __e.length`;efu.filter=e=>{let{node:t}=e;if(!e.getPrevSibling().node)return!1;let{body:r}=t;if(!efh(r))return!1;let[n]=r.body,{__i:i,__n:a}=eff(e,efm);if(!efd(n,efv(i))||!function(e,t){for(;e=e.getPrevSibling();){if(!e.node)return!1;if(efd(e.node,t))return!0}}(e,efg(a)))return!1;let{references:s}=e.scope.bindings[i.name];return!(s>3)},efu.replace=()=>({[efm]:({__c:e,__i:t})=>{let[r]=e.body,{__a:n,__b:i}=eff(r,efv(t));return e.body.shift(),efy({LEFT:n,RIGHT:i,BODY:e})}});var efb={};let{operator:efS,types:efx,template:efT}=es3,{compare:efE,getTemplateValues:ef_}=efS,{isBlockStatement:efP}=efx;efb.report=()=>"Use 'for...of' instead of 'for'";let efA="for (let __i = 0; __i < __e.length; __i++) __c",efk=efT("for (const LEFT of RIGHT) BODY"),efC=e=>`const __a = __b[${e.name}]`,efw=(e,t)=>`const __a = ${t.name}[${e.name}]`;efb.filter=e=>{let{node:t}=e,{body:r}=t;if(!efP(r))return!1;let[n]=r.body,{__i:i,__e:a}=ef_(e,efA),{references:s}=e.scope.bindings[i.name];return!(s>3)&&efE(n,efw(i,a))},efb.replace=()=>({[efA]:({__c:e,__i:t})=>{let[r]=e.body,{__a:n,__b:i}=ef_(r,efC(t));return e.body.shift(),efk({LEFT:n,RIGHT:i,BODY:e})}});var efI={};let{operator:efN,types:efO,template:efD}=es3,{compare:efL,getTemplateValues:efM}=efN,{isBlockStatement:efF}=efO;efI.report=()=>"Use 'for...of' instead of 'for'";let efB="for (let __i = 0; __i < __e.length; __i++) __c",efR=efD("for (const [INDEX, ITEM] of ITEMS.entries()) BODY"),efj=e=>`const __a = __b[${e.name}]`,efU=(e,t)=>`const __a = ${t.name}[${e.name}]`;efI.filter=e=>{let{node:t}=e,{body:r}=t;if(!efF(r))return!1;let[n]=r.body,{__i:i,__e:a}=efM(e,efB),{bindings:s}=e.scope;if(s[i.name].constantViolations.length>1)return!1;let{references:o}=e.scope.bindings[i.name];return!(o<4)&&efL(n,efU(i,a))},efI.replace=()=>({[efB]:({__c:e,__i:t})=>{let[r]=e.body,{__a:n,__b:i}=efM(r,efj(t));return e.body.shift(),efR({INDEX:t,ITEM:n,ITEMS:i,BODY:e})}});var efV={};let{operator:efW,template:efq,types:efJ}=es3,{compare:efX,getTemplateValues:efG}=efW,{isBlockStatement:efK}=efJ;efV.report=()=>"Use 'for...of' instead of 'for'";let efH="for (let __i = 0; __i < __n; __i++) __c",efz=efq("for (const [INDEX, LEFT] of RIGHT.entries()) BODY"),ef$=e=>`const __a = __b[${e.name}]`,efY=e=>`const ${e.name} = __e.length`;efV.filter=e=>{let{node:t}=e;if(!e.getPrevSibling().node)return!1;let{body:r}=t;if(!efK(r))return!1;let[n]=r.body,{__i:i,__n:a}=efG(e,efH);if(!efX(n,ef$(i))||!function(e,t){for(;e=e.getPrevSibling();){if(!e.node)return!1;if(efX(e.node,t))return!0}}(e,efY(a))||e.scope.getBinding(a.name).references>1)return!1;let{references:s}=e.scope.bindings[i.name];return s>3},efV.replace=()=>({[efH]:({__c:e,__i:t})=>{let[r]=e.body,{__a:n,__b:i}=efG(r,ef$(t));return e.body.shift(),efz({INDEX:t,LEFT:n,RIGHT:i,BODY:e})}});var efQ={};let{generate:efZ,operator:ef0}=es3,{contains:ef1,getTemplateValues:ef2}=ef0;efQ.report=()=>"for-of should be used instead of for-in",efQ.match=()=>({"for (__a in __b) __body":({__a:e,__b:t,__body:r})=>{let n=ef2(e,"var __a");if(!n.__a)return!1;let{name:i}=n.__a;return ef1(r,[`if (!${t.name}.hasOwnProperty(${i})) __c`])}}),efQ.replace=()=>({"for (__a in __b) __body":({__b:e,__body:t})=>{let[r]=t.body,n=ef2(r,"if (!__b.hasOwnProperty(__a)) __c");t.body.shift();let{code:i}=efZ(t);return`for (const ${n.__a.name} of Object.keys(${e.name})) ${i}`}});var ef3={};let{generate:ef4,operator:ef5}=es3,{contains:ef8,getTemplateValues:ef6}=ef5;ef3.report=()=>"for-of should be used instead of for-in",ef3.match=()=>({"for (__a in __b) __body":({__a:e,__b:t,__body:r})=>{let n=ef6(e,"var __a");if(!n.__a)return!1;let{name:i}=n.__a;return ef8(r,[`if (${t.name}.hasOwnProperty(${i})) __body`])}}),ef3.replace=()=>({"for (__a in __b) __body":({__b:e,__body:t})=>{let[r]=t.body,n=ef6(r,"if (__b.hasOwnProperty(__a)) __body"),{code:i}=ef4(n.__body);return`for (const ${n.__a.name} of Object.keys(${e.name})) ${i}`}});var ef9={};let{types:ef7}=es3,{isBlockStatement:ehe,isArrayExpression:eht,isCallExpression:ehr}=ef7;function ehn(e,t,r){e.get("declarations.0.init.arguments.0").scope.rename(t.name,r.name),delete e.scope.bindings[t.name]}ef9.report=()=>"Use 'for...of' instead of '.reduce()'",ef9.match=()=>({"const __a = __b.reduce((__c, __d) => __e)":({__b:e,__e:t})=>!(eht(e)||ehr(e))&&!ehe(t),"const __a = __b.reduceRight((__c, __d) => __e)":({__b:e,__e:t})=>!eht(e)&&!ehe(t),"const __a = __b.reduce((__c, __d) => __e, __f)":({__e:e})=>!ehe(e)}),ef9.replace=()=>({"const __a = __b.reduce((__c, __d) => __e)":({__a:e,__d:t},r)=>(r.__putout_for_of_reduce=!0,ehn(r,t,e),`{
|
27
|
+
let [__a] = __b;
|
28
|
+
for (const __c of __b.slice(1)) {
|
29
|
+
__a = __e;
|
30
|
+
}
|
31
|
+
}`),"const __a = __b.reduceRight((__c, __d) => __e)":({__a:e,__d:t},r)=>(r.__putout_for_of_reduce=!0,ehn(r,t,e),`{
|
32
|
+
let [__a] = __b;
|
33
|
+
for (const __c of __b.slice(1)) {
|
34
|
+
__a = __e;
|
35
|
+
}
|
36
|
+
}`),"const __a = __b.reduce((__c, __d) => __e, __f)":(e,t)=>(t.__putout_for_of_reduce=!0,`{
|
37
|
+
let __a = __f;
|
38
|
+
for (const __d of __b) {
|
39
|
+
__a = __e;
|
40
|
+
}
|
41
|
+
}`)});var ehi={};let{types:eha,operator:ehs}=es3,{isIdentifier:eho}=eha,{replaceWith:ehu}=ehs;ehi.report=()=>"Avoid useless for-of",ehi.match=()=>({"for (const __identifier__a of __identifier__b) __c":({__identifier__a:e},t)=>{let{name:r}=e,{references:n}=t.scope.bindings[r];return!n},"for (const __a of __array) __c":({__a:e,__array:t},r)=>{if(t.elements.length>=2||!eho(e))return!1;let{name:n}=e,{references:i}=r.scope.bindings[n];return!(i>=2)}}),ehi.replace=()=>({"for (const __identifier__a of __identifier__b) __c":"__c","for (const __a of __array) __c":({__a:e,__c:t,__array:r},n)=>{let{elements:i}=r;if(!i.length)return null;let{name:a}=e,{references:s,referencePaths:o}=n.scope.bindings[a];if(!s)return ehu(n,t);let[u]=i,[l]=o;return ehu(l,u),ehu(n,t),n}});var ehl={};let{types:ehc,operator:ehp}=es3,{replaceWith:ehd,remove:ehf}=ehp,{isAssignmentPattern:ehh}=ehc,ehm=(e,{maxProperties:t})=>e.isObjectPattern()&&e.node.properties.length>t,ehy=e=>ehh(e.value);ehl.report=()=>"Use destructuring in head of 'for...of'",ehl.fix=({path:e,varPath:t})=>{ehd(t,e.node.id),ehf(e)},ehl.traverse=({push:e,options:t})=>({"for (const __ of __) __"(r){let n=r.get("left").get("declarations.0.id");if(!n.isIdentifier())return;let{scope:i,node:a}=n,{name:s}=a,{references:o,referencePaths:u}=i.bindings[s];if(1!==o)return;let[l]=u,{parentPath:c}=l;if(!c.get("init").isIdentifier({name:s}))return;let p=c.get("id"),{maxProperties:d=4}=t;if(ehm(p,{maxProperties:d}))return;let{properties:f}=p.node;p.isObjectPattern()&&f.find(ehy)||e({path:c,varPath:n})}});var ehv={};ehv.report=()=>"'Array.from()' has no sense inside 'for...of'",ehv.replace=()=>({"for (const __a of Array.from(__b)) __c":"for (const __a of __b) __c"});var ehg={};let{types:ehb,operator:ehS}=es3,{isIdentifier:ehx,isObjectProperty:ehT}=ehb,{remove:ehE}=ehS,eh_=({value:e})=>e;function ehP(e,t){let r=t.get("left.declarations.0.id"),n=function({node:e}){let{properties:t,elements:r}=e;return r?r.filter(Boolean):t.map(eh_).filter(Boolean)}(r);return!function(e,t){let{bindings:r}=e.scope;for(let e of t)if(ehx(e)){let{name:t}=e;if(!r[t].referenced)return!1;continue}return!0}(r,n)}function ehA(e,t){for(let e of ehk(t))ehE(e);return t}function ehk(e){var t;let r=(t=e.get("left.declarations.0.id")).isObjectPattern()?t.get("properties"):t.get("elements"),n=[];for(let t of r)!function({scope:e},t){let{bindings:r}=e;if(t.isObjectProperty()){let{name:e}=t.node.value,n=r[e];return!n||n.referenced}if(t.isObjectPattern())return!0;let{node:n}=t;if(!n)return!0;let{name:i}=t.node;return r[i].referenced}(e,t)&&n.push(t);return n}ehg.report=e=>{let t=function(e){let t=[];for(let{node:r}of e){if(ehT(r)){t.push(r.value.name);continue}t.push(r.name)}return t}(ehk(e));return`'${t.join(", ")}' inside 'for...of' loop defined but never used`},ehg.match=()=>({"for (const __array of __b) __c":ehP,"for (const __object of __b) __c":ehP}),ehg.replace=()=>({"for (const __array of __b) __c":ehA,"for (const __object of __b) __c":ehA});var ehC={};let{types:ehw}=es3,{isVariableDeclaration:ehI}=ehw;ehC.report=()=>"Add missing declaration",ehC.match=()=>({"for (__a of __b) __c":({__a:e},t)=>!ehI(e)&&!t.scope.getAllBindings()[e.name]}),ehC.replace=()=>({"for (__a of __b) __c":"for (const __a of __b) __c"}),edY.rules={map:edQ,"for-each":ed4,"for-n":efu,"for-length":efb,"for-entries":efI,"for-entries-n":efV,"for-in-negative":efQ,"for-in-positive":ef3,reduce:ef9,"remove-useless":ehi,"remove-useless-variables":ehl,"remove-useless-array-from":ehv,"remove-unused-variables":ehg,"add-missing-declaration":ehC};var ehN={};let{replaceWithMultiple:ehO}=es3.operator,{keys:ehD}=Object,ehL=(e,t)=>{if(t.removed)return!1;for(let r of(t.scope.crawl(),ehD(e)))if(t.scope.hasBinding(r))return!0;return!1};ehN.report=()=>"Avoid nested blocks",ehN.fix=e=>{ehO(e,e.node.body)},ehN.include=()=>["BlockStatement"],ehN.filter=e=>{let{parentPath:t}=e,{bindings:r}=e.scope,n=t.isSwitchCase(),i=ehD(r).length;return!!n&&!i||!n&&!ehL(r,e.parentPath)&&(t.isBlockStatement()||t.isProgram())};var ehM={},ehF={};let{operator:ehB}=es3,{isSimple:ehR,replaceWith:ehj}=ehB;ehF.report=()=>"Simplify logical expression",ehF.match=()=>({"__a(__args) && __b":({__a:e,__b:t},r)=>!r.parentPath.isJSXExpressionContainer()&&("Boolean"===e.name||!!r.parentPath.isExpressionStatement()&&ehR(t))}),ehF.replace=()=>({"Boolean(__a) || __b":"__a || __b","__a(__args) && __b":({__a:e},t)=>{if("Boolean"===e.name){let e=t.get("left"),[r]=e.node.arguments;return ehj(e,r),t}return"__a(__args)"},"!(__a && !__b)":"!__a || __b","!(!__a && __b)":"__a || !__b","!(__a !== __b)":"__a === __b","!(__a === __b)":"__a !== __b",'!__a === "__b"':'__a !== "__b"',"!__a instanceof __b":"!(__a instanceof __b)","__a instanceof !__b":"!(__a instanceof __b)","!__a instanceof !__b":"!(__a instanceof __b)","!__a in __b":"!(__a in __b)","__a in !__b":"!(__a in __b)","!__a in !__b":"!(__a in __b)","__a === __a":"true","__a == __a":"true","__a !== __a":"false","__a != __a":"false","__a === []":"false","__a == []":"false","__a === {}":"false","__a == {}":"false","__a && __b || __a && __c":"__a && (__b || __c)","__a && __b && __a && __c":"__a && __b && __c","__a || __b && __a || __c":"__a || __b || __c"});var ehU={};ehU.report=()=>'"true" and "false" has no sense in logical expressions',ehU.replace=()=>({"true && false":"false","false && true":"false","__a && true":"Boolean(__a)","true && __a":"__a"});var ehV={};ehV.report=()=>"Avoid duplicates in logical expressions",ehV.replace=()=>({"__a || __a":"__a","__a && __a":"__a","__a && __b && __a":"__a && __b","__a && __b && __c && __a":"__a && __b && __c","__a = __a":"__a"});var ehW={};ehW.report=()=>"Avoid using logical operator as operand of bitwise operator",ehW.replace=()=>({"__a | !__b":"__a || !__b","!__a | __b":"!__a || __b"}),ehM.rules={simplify:ehF,"remove-boolean":ehU,"remove-duplicates":ehV,"convert-bitwise-to-logical":ehW};var ehq={},ehJ={};ehJ.report=()=>"Add missing operator 'new'",ehJ.replace=()=>({"Set(__args)":"new Set(__args)","WeakSet(__args)":"new WeakSet(__args)","Map(__args)":"new Map(__args)","WeakMap(__args)":"new WeakMap(__args)","Type(__args)":"new Type(__args)","Int8Array(__args)":"new Int8Array(__args)","Uint8Array(__args)":"new Uint8Array(__args)","Uint8ClampedArray(__args)":"new Uint8ClampedArray(__args)","Int16Array(__args)":"new Int16Array(__args)","Uint16Array(__args)":"new Uint16Array(__args)","Int32Array(__args)":"new Int32Array(__args)","Uint32Array(__args)":"new Uint32Array(__args)","Float32Array(__args)":"new Float32Array(__args)","Float64Array(__args)":"new Float64Array(__args)","BigInt64Array(__args)":"new BigInt64Array(__args)","BigUint64Array(__args)":"new BigUint64Array(__args)"});var ehX={};let{types:ehG}=es3,{ObjectExpression:ehK}=ehG;ehX.report=()=>"Avoid useless operator 'new'",ehX.replace=()=>({"new new __a":"new __a","new Error(__args)":"Error(__args)","new TypeError(__args)":"TypeError(__args)","new Boolean(__a)":"Boolean(__a)","new Number(__a)":"Number(__a)","new String(__a)":"String(__a)","new Array(__args)":"Array(__args)","new Symbol(__a)":"Symbol(__a)","new RegExp(__a)":"RegExp(__a)","new Object()":()=>ehK([]),"new Object(__a)":"Object(__a)","new BigInt(__a)":"BigInt(__a)","new Reflect()":"Reflect","new Math()":"Math"}),ehq.rules={"add-missing":ehJ,"remove-useless":ehX};var ehH={},ehz={};let{types:eh$,operator:ehY}=es3,{replaceWith:ehQ}=ehY,{isStringLiteral:ehZ,RegExpLiteral:eh0}=eh$,eh1=({__a:e})=>ehZ(e);ehz.report=()=>"Use RegExp literal notation",ehz.match=()=>({"new RegExp(__a)":eh1,"new RegExp(__a, __b)":eh1,"RegExp(__a)":eh1,"RegExp(__a, __b)":eh1}),ehz.replace=()=>({"new RegExp(__a)":eh3,"new RegExp(__a, __b)":eh4,"RegExp(__a)":eh3,"RegExp(__a, __b)":eh4});let eh2=e=>e.replaceAll("/","\\/");function eh3({__a:e},t){let{value:r}=e,n=`/${eh2(r)}/`;return ehQ(t,{...eh0(r),raw:n,extra:{raw:n}})}function eh4({__a:e,__b:t},r){let n=`/${eh2(e.value)}/${t.value}`;return ehQ(r,{...eh0(eh2(e.value),t.value),raw:n,extra:{raw:n}})}var eh5={};let{types:eh8}=es3,{isRegExpLiteral:eh6}=eh8;eh5.report=()=>"Use '.startsWith()' instead of '.test()'",eh5.match=()=>({"__a.test(__b)":({__a:e})=>{if(!eh6(e))return!1;let t=e.raw.slice(1,-1);return!!t.startsWith("^")&&!/[$+({*\].]/.test(t)}}),eh5.replace=()=>({"__a.test(__b)":({__a:e})=>{let t=e.raw.slice(1,-1).replace("^","");return`__b.startsWith('${t}')`}});var eh9={};let{types:eh7}=es3,{isRegExpLiteral:eme}=eh7;eh9.report=()=>"Use '.endsWith()' instead of '.test()'",eh9.match=()=>({"__a.test(__b)":({__a:e})=>{if(!eme(e))return!1;let t=e.raw.slice(1,-1);return!!t.endsWith("$")&&!/[\^+({*\].]/.test(t)}}),eh9.replace=()=>({"__a.test(__b)":({__a:e})=>{let t=e.raw.slice(1,-1).replace("$","");return`__b.endsWith('${t}')`}});var emt={};let{optimize:emr}=eao,emn=e=>e.split("/").slice(1,-1).join("/"),emi=[],ema={blacklist:["charEscapeUnescape"]};emt.report=({pattern:e,to:t})=>`RegExp /${e}/ can be optimized to /${t}/`,emt.fix=({path:e,to:t,flags:r})=>{e.node.raw=`/${t}/${r}`,e.node.pattern=t},emt.traverse=({push:e})=>({RegExpLiteral(t){let{pattern:r,flags:n}=t.node,[i,a]=HA(emr,RegExp(r,n),emi,ema);if(i)return;let s=emn(a._string);r!==s&&r.length!==s.length&&e({path:t,flags:n,pattern:r,to:s})}});var ems={};let{types:emo,operator:emu}=es3,{replaceWith:eml,isSimpleRegExp:emc}=emu,{StringLiteral:emp}=emo,emd=e=>({__b:t})=>{if(t.flags===e){let{raw:e}=t.extra;return emc(e)}return!1},emf=({__b:e},t)=>{let{pattern:r}=e;return eml(t.get("arguments.0"),emp(r)),t};ems.report=()=>"String should be used instead of RegExp",ems.match=()=>({"__a.replace(/__b/, __c)":emd(""),"__a.replaceAll(/__b/g, __c)":emd("g")}),ems.replace=()=>({"__a.replace(/__b/, __c)":emf,"__a.replaceAll(/__b/g, __c)":emf});var emh={};let{types:emm,operator:emy}=es3,{StringLiteral:emv}=emm,{replaceWith:emg,getTemplateValues:emb,isSimpleRegExp:emS}=emy,emx=e=>e.replaceAll("\\\\/","\\/").replaceAll("\\\\(","\\(").replaceAll("\\(","(").replaceAll("\\n","\n").replaceAll("\\\\^","\\^").replaceAll("\\\\:","\\:").replaceAll("\\\\+","\\+").replaceAll("\\\\,","\\,").replaceAll("\\\\","\\");emh.report=()=>"Use 'replaceAll()' instead of 'replace()'",emh.fix=({path:e,pattern:t})=>{let r=e.get("arguments.0"),n=e.get("callee.property");return emg(r,emv(emx(t))),n.node.name="replaceAll",e},emh.traverse=({push:e})=>({"__a.replace(/__b/g, __c)":t=>{let{__b:r}=emb(t,"__a.replace(/__b/g, __c)"),{flags:n,raw:i,pattern:a}=r;if("g"!==n)return!1;emS(i)&&e({path:t,pattern:a})}});var emT={},emE={};let em_=e=>(e.node||e).type;emE.isDisjunction=e=>"Disjunction"===em_(e),emE.isParentDisjunction=({parentPath:e})=>e?.parent?.type==="Disjunction",emE.isChar=e=>"Char"===em_(e),emE.isAlternative=e=>"Alternative"===em_(e);let{compare:emP}=es3.operator,{isDisjunction:emA,isParentDisjunction:emk}=emE;emT.report=({from:e,to:t})=>`Remove useless group from RegExp ${e}, use ${t}`,emT.exclude=()=>["__.match(__)","__.split(__)","__.exec(__)","__.replace(__, __)","__.replaceAll(__, __)","const __a = /__b/"],emT.fix=({path:e,to:t})=>{let[,r]=t.split("/");e.node.pattern=r,e.node.raw=t,e.node.extra.raw=t},emT.traverse=({push:e})=>({RegExpLiteral(t){if(!function({parentPath:e}){return!!emP(e.parentPath,"/__a/.test(__b)")||emP(e,"__.search(/__a/)")}(t))return;let r=t.node.extra.raw,[n,i]=function(e){let t=eao.parse(e),r=!1;return eao.traverse(t,{Group(e){let{type:t}=e.parent;if(!/RegExp|Alternative/.test(t))return;let n=function(e){let t=!1,{expressions:r=[]}=e.parent;for(let n of r){if(t)return n;n===e.node&&(t=!0)}return null}(e);if(n?.type==="Repetition")return;let{node:i}=e;!(i.name||!i.expression||emk(e))&&(emA(i.expression)||(r=!0,e.replace(i.expression)))}}),[r,eao.generate(t)]}(r);n&&e({path:t,from:r,to:i})}});var emC={};let{template:emw,types:emI,operator:emN}=es3,{isAlternative:emO,isChar:emD}=emE,{replaceWith:emL}=emN,{StringLiteral:emM}=emI;emC.report=()=>"Remove useless RegExp, use strict equal operator instead";let emF=emw("A === B");emC.fix=({path:e,to:t,arg:r})=>{emL(e,emF({A:r,B:emM(t)}))},emC.traverse=({push:e})=>({"/__a/.test(__b)"(t){let{raw:r}=t.node.callee.object.extra,n=emR(r),[i]=n,a=n.at(-1);if("^"!==i||"$"!==a)return!1;let[s]=t.node.arguments,o=emR(n);(function(e){let t=eao.parse(e),r=!1;return eao.traverse(t,{RegExp({node:e}){let{body:t}=e;if(emD(t)&&!t.value.includes("\\")){r=!0;return}if(emO(t)){r=!t.expressions.filter(emB(emD)).length;return}}}),r})(emj(o))&&e({path:t,arg:s,to:o})}});let emB=e=>(...t)=>!e(...t),emR=e=>e.slice(1,-1),emj=e=>`/${e}/`;ehH.rules={"apply-literal-notation":ehz,"apply-starts-with":eh5,"apply-ends-with":eh9,optimize:emt,"convert-to-string":ems,"convert-replace-to-replace-all":emh,"remove-useless-group":emT,"remove-useless-regexp":emC};var emU={},emV={};let{types:emW}=es3,{isFunction:emq}=emW;emV.report=()=>"'resolve()' is useless in 'async' functions, use 'return' instead",emV.filter=e=>{let t=e.find(emq);return t?.node.async},emV.replace=()=>({"return Promise.resolve()":"return","return Promise.resolve(__a)":"return __a","await Promise.resolve(__a)":"__a"});var emJ={};let{types:emX}=es3,{isFunction:emG}=emX;emJ.report=()=>"Reject is useless in async functions, use throw instead",emJ.filter=e=>{let t=e.find(emG);return t?.node.async},emJ.replace=()=>({"return Promise.reject(__a)":"throw __a","return await Promise.reject(__a)":"throw __a"});var emK={};let{operator:emH,types:emz}=es3,{replaceWith:em$,traverse:emY,remove:emQ,compare:emZ}=emH,{ReturnStatement:em0,ThrowStatement:em1}=emz,em2=e=>{let{parentPath:t}=e;return t.get("callee")!==e};emK.report=()=>"Async functions should be used instead of 'new Promise()'",emK.match=()=>({"return new Promise(__a)":(e,t)=>{let{scope:r}=t.get("argument.arguments.0"),{resolve:n,reject:i}=r.bindings,a=!1;if(emY(t,{"reject(__)":({parentPath:e})=>{a=emZ(e.parentPath,"__a.on(__b, __c);")}}),!a){if(n?.references){let[e]=n.referencePaths;return!em2(e)&&n.referencePaths[0].scope.uid===r.uid}return i?.referencePaths[0].scope.uid===r.uid}}}),emK.replace=()=>({"return new Promise(__a)"({__a:e},t){let{scope:r}=t.get("argument.arguments.0"),n=!1;return(emY(t,{"reject(__)":e=>{let{node:t}=e.get("arguments.0");r===e.scope.getFunctionParent()&&em$(e.parentPath,em1(t))},"resolve(__)":e=>{let{node:t}=e.get("arguments.0");if(e.parentPath.parentPath.isExpression()){em$(e,em0(t));return}r===e.scope.getFunctionParent()&&em$(e.parentPath,em0(t))},"resolve()":e=>{r===e.scope?.getFunctionParent()&&emQ(e.parentPath)},reject:e=>{(function(e){let{parentPath:t}=e,r=t.get("callee");return t.isCallExpression()&&r!==e})(e)&&(n=!0)}}),n)?t:(t.scope.getFunctionParent().path.node.async=!0,e.body)}});var em3={};let{types:em4}=es3,{isIdentifier:em5,AwaitExpression:em8}=em4;function em6(e){return!!e.isCallExpression()&&e.get("callee").isIdentifier({name:"useEffect"})}em3.report=()=>"Call async functions using 'await'",em3.match=()=>({"__a(__args)":({__a:e},t)=>{if(!em5(e)||!t.getFunctionParent()||t.parentPath.isArrayExpression()||t.parentPath.isMemberExpression()||t.find(em6))return!1;let{name:r}=e,n=t.scope.getAllBindings()[r];return!!(n&&n.path.isFunction())&&!!n.path.node.async&&!t.parentPath.isAwaitExpression()}}),em3.replace=()=>({"__a(__args)":(e,t)=>(t.getFunctionParent().node.async=!0,em8(t.node))});var em9={};em9.report=()=>"Add missing 'async'",em9.fix=e=>{e.node.async=!0},em9.traverse=({push:e})=>({AwaitExpression(t){let r=t.getFunctionParent();r&&(r.node.async||e(r))}});var em7={};let{types:eye,operator:eyt}=es3,{replaceWith:eyr}=eyt,{isFunction:eyn,AwaitExpression:eyi}=eye;em7.report=()=>"Use 'await' near 'import' call",em7.match=()=>({"import(__a)":(e,t)=>!!t.parentPath.isVariableDeclarator()&&!t.parentPath.isAwaitExpression()}),em7.replace=()=>({"import(__a)"(e,t){let r=t.findParent(eyn);return r&&(r.node.async=!0),eyr(t,eyi(t.node))}});var eya={};let{replaceWithMultiple:eys}=es3.operator,eyo=({push:e,isImports:t,isExports:r})=>n=>{let i=n.get("callee");if(!t()&&!r())return;let{id:a}=i.node;a||e(n)};function eyu(e){let{parentPath:t}=e.parentPath.parentPath;return!t||!t.isFunction()||t.node.async}eya.report=()=>"Use top level 'await'",eya.fix=e=>{let{body:t}=e.get("callee.body").node;eys(e,t)},eya.traverse=({push:e})=>{let t=ec(),r=ec(),n=eyo({push:e,isImports:r,isExports:t});return{'import __ from "__"'(){r(!0)},ExportNamedDeclaration(){t(!0)},ExportDefaultDeclaration(){t(!0)},"(async function __() {})()":e=>{eyu(e)&&n(e)},"(async () => __)()":e=>{eyu(e)&&n(e)}}};var eyl={};let{operator:eyc}=es3,{contains:eyp}=eyc;eyl.report=()=>"Avoid useless 'async'",eyl.fix=e=>{e.node.async=!1},eyl.exclude=()=>["__nop"],eyl.include=()=>["async function __(__args) {}","async (__args) => __body"],eyl.filter=e=>!eyp(e,["throw __","await __","for await (__ of __) __"]);var eyd={};let{operator:eyf}=es3,{traverse:eyh}=eyf;eyd.report=()=>"Avoid useless 'await'",eyd.exclude=()=>["await new Promise(__args)","await __a.__b?.(__args)","await __a?.(__args)","await __a(__args)?.__b(__args)","await __a?.(__args).catch(__args)","await import(__a)","await import(__a, __b)"],eyd.replace=()=>({"await await __a":"await __a","await __a":"__a"}),eyd.filter=e=>{let t=e.get("argument");if(t.isTaggedTemplateExpression())return!1;if(t.isAwaitExpression())return!0;if(t.isIdentifier()||t.isLogicalExpression()||t.isMemberExpression())return!1;if(!t.isCallExpression())return!0;let r=t.get("callee");if(!r.isIdentifier())return!1;let{name:n}=r.node,i=t.scope.getBinding(n);if(!i)return!1;let a=i.path;return!(!a.isFunction()||function(e){let t=!1,r=e=>{t=!0,e.stop()};return eyh(e.node,{"new Promise(__a)":r,"Promise.__(__args)":r}),t}(a)||function(e){let t=e.get("returnType");if(!t.node)return!1;let r=t.get("typeAnnotation.typeName");return!!r.isIdentifier()&&"Promise"===r.node.name}(a))&&!a.node.async};var eym={};let{operator:eyy}=es3,{remove:eyv,rename:eyg}=eyy;eym.report=()=>"'Promise.resolve()' has no sense in async function",eym.fix=e=>{let{node:t}=e,[r,n]=[e.parentPath,e.parentPath.parentPath],[i]=t.arguments,a=n.node.id;r.node.argument=i,eyg(e,a.name,i.name),eyv(n)},eym.traverse=({push:e})=>({AwaitExpression(t){let r=t.get("argument");t.parentPath.isVariableDeclarator()&&r.isCallExpression()&&r.get("callee").matchesPattern("Promise.resolve")&&e(r)}});var eyb={};let{operator:eyS}=es3,{remove:eyx,getBindingPath:eyT}=eyS,eyE=`
|
42
|
+
const __p = new Promise((__a, __b) => {
|
43
|
+
__c = __a;
|
44
|
+
__d = __b;
|
45
|
+
});
|
46
|
+
`;eyb.report=()=>"Apply 'Promise.withResolvers()'",eyb.match=()=>({[eyE]:({__c:e,__d:t},r)=>!!eyT(r,e.name)&&eyT(r,t.name)}),eyb.replace=()=>({[eyE]:({__c:e,__d:t,__p:r,__a:n,__b:i},a)=>(eyx(eyT(a,e.name)),eyx(eyT(a,t.name)),`
|
47
|
+
const {
|
48
|
+
promise: ${r.name},
|
49
|
+
resolve: ${n.name},
|
50
|
+
reject: ${i.name}
|
51
|
+
} = Promise.withResolvers();
|
52
|
+
`)}),emU.rules={"remove-useless-resolve":emV,"convert-reject-to-throw":emJ,"convert-new-promise-to-async":emK,"add-missing-await":em3,"add-missing-async":em9,"apply-await-import":em7,"apply-top-level-await":eya,"remove-useless-async":eyl,"remove-useless-await":eyd,"remove-useless-variables":eym,"apply-with-resolvers":["off",eyb]};var ey_={},eyP={};eyP.report=()=>"Use 'Array.isArray()' instead of 'instanceof'",eyP.replace=({options:e})=>{let{inline:t}=e;return{"__a instanceof Array":()=>t?"Array.isArray(__a)":"isArray(__a)"}};var eyA={};eyA.declare=()=>({isString:"const isString = (a) => typeof a === 'string'",isEmptyString:"const isEmptyString = (a) => !a && isString(a)",isNumber:"const isNumber = (a) => typeof a === 'number'",isFn:"const isFn = (a) => typeof a === 'function'",isBool:"const isBool = (a) => typeof a === 'boolean'",isObject:"const isObject = (a) => a && typeof a === 'object'",isUndefined:"const isUndefined = (a) => typeof a === 'undefined'",isSymbol:"const isSymbol = (a) => typeof a === 'symbol'",isBigInt:"const isBigInt = (a) => typeof a === 'bigint'",isNull:"const isNull = (a) => !a && typeof a === 'object'",isArray:"const {isArray} = Array",isEmptyArray:"const isEmptyArray = (a) => isArray(a) && !a.length"});var eyk={};let{operator:eyC}=es3,{compare:eyw,getBindingPath:eyI}=eyC,eyN={function:"isFn",string:"isString",number:"isNumber",boolean:"isBool",undefined:"isUndefined",symbol:"isSymbol",bigint:"isBigInt"},eyO={function:"typeof __a === 'function'",string:"typeof __a === 'string'",number:"typeof __a === 'number'",boolean:"typeof __a === 'boolean'",undefined:"typeof __a === 'undefined'",symbol:"typeof __a === 'symbol'",bigint:"typeof __a === 'bigint'"};function eyD({__a:e,__b:t},r){return!(r.parentPath.isFunction()||function(e,t){let r=eyN[t],n=eyO[t],i=eyI(e,r);if(!i)return!1;if(i.isVariableDeclarator()){let{body:e}=i.node.init;return!eyw(e,n)}return i.isFunctionDeclaration()}(r,t.value))&&eyI(r,e)}eyk.report=()=>"Use function to check type instead of 'typeof'",eyk.match=()=>({'typeof __a === "__b"':eyD,'typeof __a !== "__b"':eyD}),eyk.replace=()=>({[eyO.function]:"isFn(__a)",[eyO.string]:"isString(__a)",[eyO.number]:"isNumber(__a)",[eyO.boolean]:"isBool(__a)",[eyO.undefined]:"isUndefined(__a)",[eyO.symbol]:"isSymbol(__a)",[eyO.bigint]:"isBigInt(__a)","typeof __a !== 'function'":"!isFn(__a)","typeof __a !== 'string'":"!isString(__a)","typeof __a !== 'number'":"!isNumber(__a)","typeof __a !== 'boolean'":"!isBool(__a)","typeof __a !== 'undefined'":"!isUndefined(__a)","typeof __a !== 'symbol'":"!isSymbol(__a)","typeof __a !== 'bigint'":"!isBigInt(__a)"});var eyL={};eyL.report=()=>"Avoid useless type conversion",eyL.replace=()=>({"Boolean(__a.includes(__b))":"__a.includes(__b)","String(typeof __a)":"typeof __a","if (Boolean(__a)) __b":"if (__a) __b","Boolean(__a) ? __b : __c":"__a ? __b : __c","while (Boolean(__a)) __b":"while (__a) __b","do __b; while (Boolean(__a))":"do __b; while (__a)","for (__a; Boolean(__b); __c) __d":"for (__a; __b; __c) __d","for (__a; Boolean(__b);) __d":"for (__a; __b;) __d","for (; Boolean(__b);__c) __d":"for (; __b; __c) __d","for (; Boolean(__b);) __d":"for (; __b;) __d"});var eyM={};let{types:eyF}=es3,{isBooleanLiteral:eyB,isNumericLiteral:eyR}=eyF;eyM.report=()=>"Avoid useless constructor",eyM.match=()=>({"Boolean(__a)":({__a:e})=>eyB(e),"Number(__a)":({__a:e})=>eyR(e)}),eyM.replace=()=>({'String("__a")':"__a","Boolean(__a)":"__a","Number(__a)":"__a"});var eyj={};eyj.report=()=>"Avoid double negations in conditions",eyj.filter=({parentPath:e})=>!e.isJSXExpressionContainer(),eyj.replace=()=>({"if (!!__a) __b":"if (__a) __b","!!__a ? __b : __c":"__a ? __b : __c","!!__a && __b":"__a && __b","!!__a.includes(__b)":"__a.includes(__b)","!!__a.startsWith(__b)":"__a.startsWith(__b)","while(!!__a) __b":"while(__a) __b","do __a; while(!!__b)":"do __a; while(__b)","for (__a; !!__b; __c) __d":"for (__a; __b; __c) __d"});var eyU={};eyU.report=()=>"Avoid useless 'typeof'",eyU.replace=()=>({"typeof typeof __a":"typeof __a"}),ey_.rules={"apply-is-array":eyP,declare:eyA,"convert-typeof-to-is-type":eyk,"remove-useless-conversion":eyL,"remove-useless-constructor":eyM,"remove-double-negations":eyj,"remove-useless-typeof":eyU};let eyV=e=>({applyTemplateLiterals:!0,conditions:!1,removeUnusedVariables:!1,removeConsole:!1,removeUselessSpread:!0,mangleClassNames:!0,mangle:!0,mergeVariables:!0,convertStrictEqualToEqual:!1,fixCount:1,...e}),eyW=e=>{let{fixCount:t,conditions:r,removeUnusedVariables:n,removeConsole:i,removeUselessSpread:a,applyTemplateLiterals:s,convertStrictEqualToEqual:o,mangle:u,mangleClassNames:l,mergeVariables:c}=eyV(e),p=[s&&["apply-template-literals",euP],["apply-optional-chaining",euT],r&&["conditions",euw],["convert-to-arrow-function",elv],["convert-arguments-to-rest",elb],["declare",euv],["for-of",edY],["regexp",ehH],n&&["remove-unused-variables",elk],["remove-unreachable-code",ecD],["remove-debugger",ecF],["remove-empty",ecB],a&&["remove-useless-spread",epd],["remove-useless-return",ep8],["remove-useless-else",eda],["remove-useless-variables",epk],["remove-unused-expressions",edu],["remove-unreferenced-variables",edd],["remove-nested-blocks",ehN],i&&["remove-console",el_],["reuse-duplicate-init",edv],["logical-expressions",ehM],["merge-destructuring-properties",euo],["merge-duplicate-functions",edw],["merge-duplicate-imports",edF],["new",ehq],["simplify-ternary",edS],["types",ey_],["promises",emU],["minify",eus]].filter(Boolean);return{fixCount:t,rules:{...r&&{"conditions/apply-if":"off","conditions/convert-equal-to-strict-equal":"off"},"promises/add-missing-await":"off","minify/mangle-names":[u,{mangleClassNames:l}],"minify/merge-variables":c,"minify/convert-strict-equal-to-equal":o},plugins:p}},eyq=(e,t={})=>{let r=esQ(e),{quote:n="'"}=t;return esY(r,e,eyW(t)),Xk(r,{format:{newline:"",space:"",indent:"",splitter:" ",endOfFile:"",quote:n},semantics:{comments:!1,roundBraces:!1,encodeDoubleQuotes:!0,encodeSingleQuotes:!0}}).replaceAll(",}","}").replaceAll(",]","]").replaceAll(";}","}")};export{eyq as minify};
|