From a28db4f24bafb8b37fae252e825721493da3bc89 Mon Sep 17 00:00:00 2001 From: RERASER <2641320887@qq.com> Date: Thu, 19 Sep 2024 13:28:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5=E7=89=88=E6=9C=AC=E5=8F=B7?= =?UTF-8?q?=E6=A3=80=E6=B5=8B=20=E4=BF=AE=E5=A4=8D=E5=85=A8=E5=B1=8F?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/launcher-ui/package-lock.json | 1889 +++++++++-------- assets/launcher-ui/package.json | 2 +- assets/launcher-ui/src/env.d.ts | 16 +- assets/launcher-ui/src/main.ts | 43 +- assets/launcher-ui/src/modules/gitadora.ts | 4 +- assets/launcher-ui/src/modules/iidx.ts | 34 +- assets/launcher-ui/src/modules/sdvx.ts | 4 +- assets/launcher-ui/src/views/HomeView.vue | 8 +- .../launcher-ui/src/views/IIDXSettingView.vue | 1 - .../src/views/LauncherSettingView.vue | 10 +- src/client/component/gitadora/env.cpp | 2 - .../component/iidx/custom_resolution.cpp | 13 +- .../iidx/d3d9_proxy/interface_ex.cpp | 29 +- src/client/component/iidx/env.cpp | 2 - src/client/component/sdvx/env.cpp | 2 - src/client/game/game.cpp | 129 +- src/client/game/game.hpp | 37 + src/client/launcher/launcher.cpp | 56 +- src/client/main.cpp | 47 +- src/client/resource.g.rc | 26 +- src/client/resources/all.hpp | 33 +- ...{howler-CCqh-U3u.js => howler-evgYh250.js} | 6 +- ...{index-C6Vda7tP.css => index-B4rXEVp4.css} | 2 +- .../ui-dist/assets/index-Dyi-fEzI.js | 997 +++++++++ .../ui-dist/assets/index-vWtKjMKp.js | 599 ------ src/client/resources/ui-dist/index.html | 4 +- src/common/utils/nt.cpp | 31 + src/common/utils/nt.hpp | 1 + 28 files changed, 2418 insertions(+), 1609 deletions(-) rename src/client/resources/ui-dist/assets/{howler-CCqh-U3u.js => howler-evgYh250.js} (79%) rename src/client/resources/ui-dist/assets/{index-C6Vda7tP.css => index-B4rXEVp4.css} (74%) create mode 100644 src/client/resources/ui-dist/assets/index-Dyi-fEzI.js delete mode 100644 src/client/resources/ui-dist/assets/index-vWtKjMKp.js diff --git a/assets/launcher-ui/package-lock.json b/assets/launcher-ui/package-lock.json index 87021e2..5b7e576 100644 --- a/assets/launcher-ui/package-lock.json +++ b/assets/launcher-ui/package-lock.json @@ -30,7 +30,7 @@ "npm-run-all2": "^6.2.0", "sass": "^1.77.8", "typescript": "~5.4.0", - "vite": "^5.3.1", + "vite": "^5.4.6", "vue-tsc": "^2.0.21" } }, @@ -38,6 +38,7 @@ "version": "0.1.3", "resolved": "https://registry.npmmirror.com/@alcalzone/ansi-tokenize/-/ansi-tokenize-0.1.3.tgz", "integrity": "sha512-3yWxPTq3UQ/FY9p1ErPxIyfT64elWaMvM9lIHnaqpyft63tkxodF5aUElYHrdisWve5cETkh1+KBw1yJuW0aRw==", + "license": "MIT", "dependencies": { "ansi-styles": "^6.2.1", "is-fullwidth-code-point": "^4.0.0" @@ -50,6 +51,7 @@ "version": "6.2.1", "resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-6.2.1.tgz", "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "license": "MIT", "engines": { "node": ">=12" }, @@ -62,6 +64,7 @@ "resolved": "https://registry.npmmirror.com/@ampproject/remapping/-/remapping-2.3.0.tgz", "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", "dev": true, + "license": "Apache-2.0", "dependencies": { "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.24" @@ -75,6 +78,7 @@ "resolved": "https://registry.npmmirror.com/@babel/code-frame/-/code-frame-7.24.7.tgz", "integrity": "sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==", "dev": true, + "license": "MIT", "dependencies": { "@babel/highlight": "^7.24.7", "picocolors": "^1.0.0" @@ -84,30 +88,32 @@ } }, "node_modules/@babel/compat-data": { - "version": "7.24.9", - "resolved": "https://registry.npmmirror.com/@babel/compat-data/-/compat-data-7.24.9.tgz", - "integrity": "sha512-e701mcfApCJqMMueQI0Fb68Amflj83+dvAvHawoBpAz+GDjCIyGHzNwnefjsWJ3xiYAqqiQFoWbspGYBdb2/ng==", + "version": "7.25.4", + "resolved": "https://registry.npmmirror.com/@babel/compat-data/-/compat-data-7.25.4.tgz", + "integrity": "sha512-+LGRog6RAsCJrrrg/IO6LGmpphNe5DiK30dGjCoxxeGv49B10/3XYGxPsAwrDlMFcFEvdAUavDT8r9k/hSyQqQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/core": { - "version": "7.24.9", - "resolved": "https://registry.npmmirror.com/@babel/core/-/core-7.24.9.tgz", - "integrity": "sha512-5e3FI4Q3M3Pbr21+5xJwCv6ZT6KmGkI0vw3Tozy5ODAQFTIWe37iT8Cr7Ice2Ntb+M3iSKCEWMB1MBgKrW3whg==", + "version": "7.25.2", + "resolved": "https://registry.npmmirror.com/@babel/core/-/core-7.25.2.tgz", + "integrity": "sha512-BBt3opiCOxUr9euZ5/ro/Xv8/V7yJ5bjYMqG/C1YAo8MIKAnumZalCN+msbci3Pigy4lIQfPUpfMM27HMGaYEA==", "dev": true, + "license": "MIT", "dependencies": { "@ampproject/remapping": "^2.2.0", "@babel/code-frame": "^7.24.7", - "@babel/generator": "^7.24.9", - "@babel/helper-compilation-targets": "^7.24.8", - "@babel/helper-module-transforms": "^7.24.9", - "@babel/helpers": "^7.24.8", - "@babel/parser": "^7.24.8", - "@babel/template": "^7.24.7", - "@babel/traverse": "^7.24.8", - "@babel/types": "^7.24.9", + "@babel/generator": "^7.25.0", + "@babel/helper-compilation-targets": "^7.25.2", + "@babel/helper-module-transforms": "^7.25.2", + "@babel/helpers": "^7.25.0", + "@babel/parser": "^7.25.0", + "@babel/template": "^7.25.0", + "@babel/traverse": "^7.25.2", + "@babel/types": "^7.25.2", "convert-source-map": "^2.0.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", @@ -123,12 +129,13 @@ } }, "node_modules/@babel/generator": { - "version": "7.24.10", - "resolved": "https://registry.npmmirror.com/@babel/generator/-/generator-7.24.10.tgz", - "integrity": "sha512-o9HBZL1G2129luEUlG1hB4N/nlYNWHnpwlND9eOMclRqqu1YDy2sSYVCFUZwl8I1Gxh+QSRrP2vD7EpUmFVXxg==", + "version": "7.25.6", + "resolved": "https://registry.npmmirror.com/@babel/generator/-/generator-7.25.6.tgz", + "integrity": "sha512-VPC82gr1seXOpkjAAKoLhP50vx4vGNlF4msF64dSFq1P8RfB+QAuJWGHPXXPc8QyfVWwwB/TNNU4+ayZmHNbZw==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/types": "^7.24.9", + "@babel/types": "^7.25.6", "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.25", "jsesc": "^2.5.1" @@ -142,6 +149,7 @@ "resolved": "https://registry.npmmirror.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.24.7.tgz", "integrity": "sha512-BaDeOonYvhdKw+JoMVkAixAAJzG2jVPIwWoKBPdYuY9b452e2rPuI9QPYh3KpofZ3pW2akOmwZLOiOsHMiqRAg==", "dev": true, + "license": "MIT", "dependencies": { "@babel/types": "^7.24.7" }, @@ -150,12 +158,13 @@ } }, "node_modules/@babel/helper-compilation-targets": { - "version": "7.24.8", - "resolved": "https://registry.npmmirror.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.24.8.tgz", - "integrity": "sha512-oU+UoqCHdp+nWVDkpldqIQL/i/bvAv53tRqLG/s+cOXxe66zOYLU7ar/Xs3LdmBihrUMEUhwu6dMZwbNOYDwvw==", + "version": "7.25.2", + "resolved": "https://registry.npmmirror.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.25.2.tgz", + "integrity": "sha512-U2U5LsSaZ7TAt3cfaymQ8WHh0pxvdHoEk6HVpaexxixjyEquMh0L0YNJNM6CTGKMXV1iksi0iZkGw4AcFkPaaw==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/compat-data": "^7.24.8", + "@babel/compat-data": "^7.25.2", "@babel/helper-validator-option": "^7.24.8", "browserslist": "^4.23.1", "lru-cache": "^5.1.1", @@ -166,19 +175,18 @@ } }, "node_modules/@babel/helper-create-class-features-plugin": { - "version": "7.24.8", - "resolved": "https://registry.npmmirror.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.24.8.tgz", - "integrity": "sha512-4f6Oqnmyp2PP3olgUMmOwC3akxSm5aBYraQ6YDdKy7NcAMkDECHWG0DEnV6M2UAkERgIBhYt8S27rURPg7SxWA==", + "version": "7.25.4", + "resolved": "https://registry.npmmirror.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.25.4.tgz", + "integrity": "sha512-ro/bFs3/84MDgDmMwbcHgDa8/E6J3QKNTk4xJJnVeFtGE+tL0K26E3pNxhYz2b67fJpt7Aphw5XcploKXuCvCQ==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-annotate-as-pure": "^7.24.7", - "@babel/helper-environment-visitor": "^7.24.7", - "@babel/helper-function-name": "^7.24.7", "@babel/helper-member-expression-to-functions": "^7.24.8", "@babel/helper-optimise-call-expression": "^7.24.7", - "@babel/helper-replace-supers": "^7.24.7", + "@babel/helper-replace-supers": "^7.25.0", "@babel/helper-skip-transparent-expression-wrappers": "^7.24.7", - "@babel/helper-split-export-declaration": "^7.24.7", + "@babel/traverse": "^7.25.4", "semver": "^6.3.1" }, "engines": { @@ -188,48 +196,12 @@ "@babel/core": "^7.0.0" } }, - "node_modules/@babel/helper-environment-visitor": { - "version": "7.24.7", - "resolved": "https://registry.npmmirror.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.24.7.tgz", - "integrity": "sha512-DoiN84+4Gnd0ncbBOM9AZENV4a5ZiL39HYMyZJGZ/AZEykHYdJw0wW3kdcsh9/Kn+BRXHLkkklZ51ecPKmI1CQ==", - "dev": true, - "dependencies": { - "@babel/types": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-function-name": { - "version": "7.24.7", - "resolved": "https://registry.npmmirror.com/@babel/helper-function-name/-/helper-function-name-7.24.7.tgz", - "integrity": "sha512-FyoJTsj/PEUWu1/TYRiXTIHc8lbw+TDYkZuoE43opPS5TrI7MyONBE1oNvfguEXAD9yhQRrVBnXdXzSLQl9XnA==", - "dev": true, - "dependencies": { - "@babel/template": "^7.24.7", - "@babel/types": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-hoist-variables": { - "version": "7.24.7", - "resolved": "https://registry.npmmirror.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.24.7.tgz", - "integrity": "sha512-MJJwhkoGy5c4ehfoRyrJ/owKeMl19U54h27YYftT0o2teQ3FJ3nQUf/I3LlJsX4l3qlw7WRXUmiyajvHXoTubQ==", - "dev": true, - "dependencies": { - "@babel/types": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/@babel/helper-member-expression-to-functions": { "version": "7.24.8", "resolved": "https://registry.npmmirror.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.24.8.tgz", "integrity": "sha512-LABppdt+Lp/RlBxqrh4qgf1oEH/WxdzQNDJIu5gC/W1GyvPVrOBiItmmM8wan2fm4oYqFuFfkXmlGpLQhPY8CA==", "dev": true, + "license": "MIT", "dependencies": { "@babel/traverse": "^7.24.8", "@babel/types": "^7.24.8" @@ -243,6 +215,7 @@ "resolved": "https://registry.npmmirror.com/@babel/helper-module-imports/-/helper-module-imports-7.24.7.tgz", "integrity": "sha512-8AyH3C+74cgCVVXow/myrynrAGv+nTVg5vKu2nZph9x7RcRwzmh0VFallJuFTZ9mx6u4eSdXZfcOzSqTUm0HCA==", "dev": true, + "license": "MIT", "dependencies": { "@babel/traverse": "^7.24.7", "@babel/types": "^7.24.7" @@ -252,16 +225,16 @@ } }, "node_modules/@babel/helper-module-transforms": { - "version": "7.24.9", - "resolved": "https://registry.npmmirror.com/@babel/helper-module-transforms/-/helper-module-transforms-7.24.9.tgz", - "integrity": "sha512-oYbh+rtFKj/HwBQkFlUzvcybzklmVdVV3UU+mN7n2t/q3yGHbuVdNxyFvSBO1tfvjyArpHNcWMAzsSPdyI46hw==", + "version": "7.25.2", + "resolved": "https://registry.npmmirror.com/@babel/helper-module-transforms/-/helper-module-transforms-7.25.2.tgz", + "integrity": "sha512-BjyRAbix6j/wv83ftcVJmBt72QtHI56C7JXZoG2xATiLpmoC7dpd8WnkikExHDVPpi/3qCmO6WY1EaXOluiecQ==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-environment-visitor": "^7.24.7", "@babel/helper-module-imports": "^7.24.7", "@babel/helper-simple-access": "^7.24.7", - "@babel/helper-split-export-declaration": "^7.24.7", - "@babel/helper-validator-identifier": "^7.24.7" + "@babel/helper-validator-identifier": "^7.24.7", + "@babel/traverse": "^7.25.2" }, "engines": { "node": ">=6.9.0" @@ -275,6 +248,7 @@ "resolved": "https://registry.npmmirror.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.24.7.tgz", "integrity": "sha512-jKiTsW2xmWwxT1ixIdfXUZp+P5yURx2suzLZr5Hi64rURpDYdMW0pv+Uf17EYk2Rd428Lx4tLsnjGJzYKDM/6A==", "dev": true, + "license": "MIT", "dependencies": { "@babel/types": "^7.24.7" }, @@ -287,19 +261,21 @@ "resolved": "https://registry.npmmirror.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.8.tgz", "integrity": "sha512-FFWx5142D8h2Mgr/iPVGH5G7w6jDn4jUSpZTyDnQO0Yn7Ks2Kuz6Pci8H6MPCoUJegd/UZQ3tAvfLCxQSnWWwg==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-replace-supers": { - "version": "7.24.7", - "resolved": "https://registry.npmmirror.com/@babel/helper-replace-supers/-/helper-replace-supers-7.24.7.tgz", - "integrity": "sha512-qTAxxBM81VEyoAY0TtLrx1oAEJc09ZK67Q9ljQToqCnA+55eNwCORaxlKyu+rNfX86o8OXRUSNUnrtsAZXM9sg==", + "version": "7.25.0", + "resolved": "https://registry.npmmirror.com/@babel/helper-replace-supers/-/helper-replace-supers-7.25.0.tgz", + "integrity": "sha512-q688zIvQVYtZu+i2PsdIu/uWGRpfxzr5WESsfpShfZECkO+d2o+WROWezCi/Q6kJ0tfPa5+pUGUlfx2HhrA3Bg==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-environment-visitor": "^7.24.7", - "@babel/helper-member-expression-to-functions": "^7.24.7", - "@babel/helper-optimise-call-expression": "^7.24.7" + "@babel/helper-member-expression-to-functions": "^7.24.8", + "@babel/helper-optimise-call-expression": "^7.24.7", + "@babel/traverse": "^7.25.0" }, "engines": { "node": ">=6.9.0" @@ -313,6 +289,7 @@ "resolved": "https://registry.npmmirror.com/@babel/helper-simple-access/-/helper-simple-access-7.24.7.tgz", "integrity": "sha512-zBAIvbCMh5Ts+b86r/CjU+4XGYIs+R1j951gxI3KmmxBMhCg4oQMsv6ZXQ64XOm/cvzfU1FmoCyt6+owc5QMYg==", "dev": true, + "license": "MIT", "dependencies": { "@babel/traverse": "^7.24.7", "@babel/types": "^7.24.7" @@ -326,6 +303,7 @@ "resolved": "https://registry.npmmirror.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.24.7.tgz", "integrity": "sha512-IO+DLT3LQUElMbpzlatRASEyQtfhSE0+m465v++3jyyXeBTBUjtVZg28/gHeV5mrTJqvEKhKroBGAvhW+qPHiQ==", "dev": true, + "license": "MIT", "dependencies": { "@babel/traverse": "^7.24.7", "@babel/types": "^7.24.7" @@ -334,23 +312,11 @@ "node": ">=6.9.0" } }, - "node_modules/@babel/helper-split-export-declaration": { - "version": "7.24.7", - "resolved": "https://registry.npmmirror.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.24.7.tgz", - "integrity": "sha512-oy5V7pD+UvfkEATUKvIjvIAH/xCzfsFVw7ygW2SI6NClZzquT+mwdTfgfdbUiceh6iQO0CHtCPsyze/MZ2YbAA==", - "dev": true, - "dependencies": { - "@babel/types": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/@babel/helper-string-parser": { "version": "7.24.8", "resolved": "https://registry.npmmirror.com/@babel/helper-string-parser/-/helper-string-parser-7.24.8.tgz", "integrity": "sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ==", - "dev": true, + "license": "MIT", "engines": { "node": ">=6.9.0" } @@ -359,7 +325,7 @@ "version": "7.24.7", "resolved": "https://registry.npmmirror.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz", "integrity": "sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==", - "dev": true, + "license": "MIT", "engines": { "node": ">=6.9.0" } @@ -369,18 +335,20 @@ "resolved": "https://registry.npmmirror.com/@babel/helper-validator-option/-/helper-validator-option-7.24.8.tgz", "integrity": "sha512-xb8t9tD1MHLungh/AIoWYN+gVHaB9kwlu8gffXGSt3FFEIT7RjS+xWbc2vUD1UTZdIpKj/ab3rdqJ7ufngyi2Q==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helpers": { - "version": "7.24.8", - "resolved": "https://registry.npmmirror.com/@babel/helpers/-/helpers-7.24.8.tgz", - "integrity": "sha512-gV2265Nkcz7weJJfvDoAEVzC1e2OTDpkGbEsebse8koXUJUXPsCMi7sRo/+SPMuMZ9MtUPnGwITTnQnU5YjyaQ==", + "version": "7.25.6", + "resolved": "https://registry.npmmirror.com/@babel/helpers/-/helpers-7.25.6.tgz", + "integrity": "sha512-Xg0tn4HcfTijTwfDwYlvVCl43V6h4KyVVX2aEm4qdO/PC6L2YvzLHFdmxhoeSA3eslcE6+ZVXHgWwopXYLNq4Q==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/template": "^7.24.7", - "@babel/types": "^7.24.8" + "@babel/template": "^7.25.0", + "@babel/types": "^7.25.6" }, "engines": { "node": ">=6.9.0" @@ -391,6 +359,7 @@ "resolved": "https://registry.npmmirror.com/@babel/highlight/-/highlight-7.24.7.tgz", "integrity": "sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-validator-identifier": "^7.24.7", "chalk": "^2.4.2", @@ -402,9 +371,13 @@ } }, "node_modules/@babel/parser": { - "version": "7.24.8", - "resolved": "https://registry.npmmirror.com/@babel/parser/-/parser-7.24.8.tgz", - "integrity": "sha512-WzfbgXOkGzZiXXCqk43kKwZjzwx4oulxZi3nq2TYL9mOjQv6kYwul9mz6ID36njuL7Xkp6nJEfok848Zj10j/w==", + "version": "7.25.6", + "resolved": "https://registry.npmmirror.com/@babel/parser/-/parser-7.25.6.tgz", + "integrity": "sha512-trGdfBdbD0l1ZPmcJ83eNxB9rbEax4ALFTF7fN386TMYbeCQbyme5cOEXQhbGXKebwGaB/J52w1mrklMcbgy6Q==", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.25.6" + }, "bin": { "parser": "bin/babel-parser.js" }, @@ -417,6 +390,7 @@ "resolved": "https://registry.npmmirror.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.24.7.tgz", "integrity": "sha512-6ddciUPe/mpMnOKv/U+RSd2vvVy+Yw/JfBB0ZHYjEZt9NLHmCUylNYlsbqCCS1Bffjlb0fCwC9Vqz+sBz6PsiQ==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.24.7" }, @@ -428,12 +402,13 @@ } }, "node_modules/@babel/plugin-syntax-typescript": { - "version": "7.24.7", - "resolved": "https://registry.npmmirror.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.24.7.tgz", - "integrity": "sha512-c/+fVeJBB0FeKsFvwytYiUD+LBvhHjGSI0g446PRGdSVGZLRNArBUno2PETbAly3tpiNAQR5XaZ+JslxkotsbA==", + "version": "7.25.4", + "resolved": "https://registry.npmmirror.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.25.4.tgz", + "integrity": "sha512-uMOCoHVU52BsSWxPOMVv5qKRdeSlPuImUCB2dlPuBSU+W2/ROE7/Zg8F2Kepbk+8yBa68LlRKxO+xgEVWorsDg==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" + "@babel/helper-plugin-utils": "^7.24.8" }, "engines": { "node": ">=6.9.0" @@ -443,14 +418,16 @@ } }, "node_modules/@babel/plugin-transform-typescript": { - "version": "7.24.8", - "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.24.8.tgz", - "integrity": "sha512-CgFgtN61BbdOGCP4fLaAMOPkzWUh6yQZNMr5YSt8uz2cZSSiQONCQFWqsE4NeVfOIhqDOlS9CR3WD91FzMeB2Q==", + "version": "7.25.2", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.25.2.tgz", + "integrity": "sha512-lBwRvjSmqiMYe/pS0+1gggjJleUJi7NzjvQ1Fkqtt69hBa/0t1YuW/MLQMAPixfwaQOHUXsd6jeU3Z+vdGv3+A==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-annotate-as-pure": "^7.24.7", - "@babel/helper-create-class-features-plugin": "^7.24.8", + "@babel/helper-create-class-features-plugin": "^7.25.0", "@babel/helper-plugin-utils": "^7.24.8", + "@babel/helper-skip-transparent-expression-wrappers": "^7.24.7", "@babel/plugin-syntax-typescript": "^7.24.7" }, "engines": { @@ -461,33 +438,32 @@ } }, "node_modules/@babel/template": { - "version": "7.24.7", - "resolved": "https://registry.npmmirror.com/@babel/template/-/template-7.24.7.tgz", - "integrity": "sha512-jYqfPrU9JTF0PmPy1tLYHW4Mp4KlgxJD9l2nP9fD6yT/ICi554DmrWBAEYpIelzjHf1msDP3PxJIRt/nFNfBig==", + "version": "7.25.0", + "resolved": "https://registry.npmmirror.com/@babel/template/-/template-7.25.0.tgz", + "integrity": "sha512-aOOgh1/5XzKvg1jvVz7AVrx2piJ2XBi227DHmbY6y+bM9H2FlN+IfecYu4Xl0cNiiVejlsCri89LUsbj8vJD9Q==", "dev": true, + "license": "MIT", "dependencies": { "@babel/code-frame": "^7.24.7", - "@babel/parser": "^7.24.7", - "@babel/types": "^7.24.7" + "@babel/parser": "^7.25.0", + "@babel/types": "^7.25.0" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/traverse": { - "version": "7.24.8", - "resolved": "https://registry.npmmirror.com/@babel/traverse/-/traverse-7.24.8.tgz", - "integrity": "sha512-t0P1xxAPzEDcEPmjprAQq19NWum4K0EQPjMwZQZbHt+GiZqvjCHjj755Weq1YRPVzBI+3zSfvScfpnuIecVFJQ==", + "version": "7.25.6", + "resolved": "https://registry.npmmirror.com/@babel/traverse/-/traverse-7.25.6.tgz", + "integrity": "sha512-9Vrcx5ZW6UwK5tvqsj0nGpp/XzqthkT0dqIc9g1AdtygFToNtTF67XzYS//dm+SAK9cp3B9R4ZO/46p63SCjlQ==", "dev": true, + "license": "MIT", "dependencies": { "@babel/code-frame": "^7.24.7", - "@babel/generator": "^7.24.8", - "@babel/helper-environment-visitor": "^7.24.7", - "@babel/helper-function-name": "^7.24.7", - "@babel/helper-hoist-variables": "^7.24.7", - "@babel/helper-split-export-declaration": "^7.24.7", - "@babel/parser": "^7.24.8", - "@babel/types": "^7.24.8", + "@babel/generator": "^7.25.6", + "@babel/parser": "^7.25.6", + "@babel/template": "^7.25.0", + "@babel/types": "^7.25.6", "debug": "^4.3.1", "globals": "^11.1.0" }, @@ -496,10 +472,10 @@ } }, "node_modules/@babel/types": { - "version": "7.24.9", - "resolved": "https://registry.npmmirror.com/@babel/types/-/types-7.24.9.tgz", - "integrity": "sha512-xm8XrMKz0IlUdocVbYJe0Z9xEgidU7msskG8BbhnTPK/HZ2z/7FP7ykqPgrUH+C+r414mNfNWam1f2vqOjqjYQ==", - "dev": true, + "version": "7.25.6", + "resolved": "https://registry.npmmirror.com/@babel/types/-/types-7.25.6.tgz", + "integrity": "sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw==", + "license": "MIT", "dependencies": { "@babel/helper-string-parser": "^7.24.8", "@babel/helper-validator-identifier": "^7.24.7", @@ -517,6 +493,7 @@ "ppc64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "aix" @@ -533,6 +510,7 @@ "arm" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "android" @@ -549,6 +527,7 @@ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "android" @@ -565,6 +544,7 @@ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "android" @@ -581,6 +561,7 @@ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "darwin" @@ -597,6 +578,7 @@ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "darwin" @@ -613,6 +595,7 @@ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "freebsd" @@ -629,6 +612,7 @@ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "freebsd" @@ -645,6 +629,7 @@ "arm" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" @@ -661,6 +646,7 @@ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" @@ -677,6 +663,7 @@ "ia32" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" @@ -693,6 +680,7 @@ "loong64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" @@ -709,6 +697,7 @@ "mips64el" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" @@ -725,6 +714,7 @@ "ppc64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" @@ -741,6 +731,7 @@ "riscv64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" @@ -757,6 +748,7 @@ "s390x" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" @@ -773,6 +765,7 @@ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" @@ -789,6 +782,7 @@ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "netbsd" @@ -805,6 +799,7 @@ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "openbsd" @@ -821,6 +816,7 @@ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "sunos" @@ -837,6 +833,7 @@ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "win32" @@ -853,6 +850,7 @@ "ia32" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "win32" @@ -869,6 +867,7 @@ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "win32" @@ -881,6 +880,7 @@ "version": "4.4.0", "resolved": "https://registry.npmmirror.com/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "license": "MIT", "peer": true, "dependencies": { "eslint-visitor-keys": "^3.3.0" @@ -893,24 +893,65 @@ } }, "node_modules/@eslint-community/regexpp": { - "version": "4.11.0", - "resolved": "https://registry.npmmirror.com/@eslint-community/regexpp/-/regexpp-4.11.0.tgz", - "integrity": "sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A==", + "version": "4.11.1", + "resolved": "https://registry.npmmirror.com/@eslint-community/regexpp/-/regexpp-4.11.1.tgz", + "integrity": "sha512-m4DVN9ZqskZoLU5GlWZadwDnYo3vAEydiUayB9widCl9ffWx2IvPnp6n3on5rJmziJSw9Bv+Z3ChDVdMwXCY8Q==", + "license": "MIT", "peer": true, "engines": { "node": "^12.0.0 || ^14.0.0 || >=16.0.0" } }, + "node_modules/@eslint/config-array": { + "version": "0.18.0", + "resolved": "https://registry.npmmirror.com/@eslint/config-array/-/config-array-0.18.0.tgz", + "integrity": "sha512-fTxvnS1sRMu3+JjXwJG0j/i4RT9u4qJ+lqS/yCGap4lH4zZGzQ7tu+xZqQmcMZq5OBZDL4QRxQzRjkWcGt8IVw==", + "license": "Apache-2.0", + "peer": true, + "dependencies": { + "@eslint/object-schema": "^2.1.4", + "debug": "^4.3.1", + "minimatch": "^3.1.2" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/config-array/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "license": "MIT", + "peer": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/@eslint/config-array/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "license": "ISC", + "peer": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, "node_modules/@eslint/eslintrc": { - "version": "2.1.4", - "resolved": "https://registry.npmmirror.com/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", - "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", + "version": "3.1.0", + "resolved": "https://registry.npmmirror.com/@eslint/eslintrc/-/eslintrc-3.1.0.tgz", + "integrity": "sha512-4Bfj15dVJdoy3RfZmmo86RK1Fwzn6SstsvK9JS+BaVKqC6QQQQyXekNaC+g+LKNgkQ+2VhGAzm6hO40AhMR3zQ==", + "license": "MIT", "peer": true, "dependencies": { "ajv": "^6.12.4", "debug": "^4.3.2", - "espree": "^9.6.0", - "globals": "^13.19.0", + "espree": "^10.0.1", + "globals": "^14.0.0", "ignore": "^5.2.0", "import-fresh": "^3.2.1", "js-yaml": "^4.1.0", @@ -918,7 +959,7 @@ "strip-json-comments": "^3.1.1" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "url": "https://opencollective.com/eslint" @@ -928,6 +969,7 @@ "version": "1.1.11", "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "license": "MIT", "peer": true, "dependencies": { "balanced-match": "^1.0.0", @@ -935,15 +977,13 @@ } }, "node_modules/@eslint/eslintrc/node_modules/globals": { - "version": "13.24.0", - "resolved": "https://registry.npmmirror.com/globals/-/globals-13.24.0.tgz", - "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", + "version": "14.0.0", + "resolved": "https://registry.npmmirror.com/globals/-/globals-14.0.0.tgz", + "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", + "license": "MIT", "peer": true, - "dependencies": { - "type-fest": "^0.20.2" - }, "engines": { - "node": ">=8" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -953,6 +993,7 @@ "version": "3.1.2", "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-3.1.2.tgz", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "license": "ISC", "peer": true, "dependencies": { "brace-expansion": "^1.1.7" @@ -961,31 +1002,44 @@ "node": "*" } }, - "node_modules/@eslint/eslintrc/node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmmirror.com/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "node_modules/@eslint/js": { + "version": "9.10.0", + "resolved": "https://registry.npmmirror.com/@eslint/js/-/js-9.10.0.tgz", + "integrity": "sha512-fuXtbiP5GWIn8Fz+LWoOMVf/Jxm+aajZYkhi6CuEm4SxymFM+eUWzbO9qXT+L0iCkL5+KGYMCSGxo686H19S1g==", + "license": "MIT", "peer": true, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, - "node_modules/@eslint/js": { - "version": "8.57.0", - "resolved": "https://registry.npmmirror.com/@eslint/js/-/js-8.57.0.tgz", - "integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==", + "node_modules/@eslint/object-schema": { + "version": "2.1.4", + "resolved": "https://registry.npmmirror.com/@eslint/object-schema/-/object-schema-2.1.4.tgz", + "integrity": "sha512-BsWiH1yFGjXXS2yvrf5LyuoSIIbPrGUWob917o+BTKuZ7qJdxX8aJLRxs1fS9n6r7vESrq1OUqb68dANcFXuQQ==", + "license": "Apache-2.0", "peer": true, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/plugin-kit": { + "version": "0.1.0", + "resolved": "https://registry.npmmirror.com/@eslint/plugin-kit/-/plugin-kit-0.1.0.tgz", + "integrity": "sha512-autAXT203ixhqei9xt+qkYOvY8l6LAFIdT2UXc/RPNeUVfqRF1BV94GTJyVPFKT8nFM6MyVJhjLj9E8JWvf5zQ==", + "license": "Apache-2.0", + "peer": true, + "dependencies": { + "levn": "^0.4.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, "node_modules/@fortawesome/fontawesome-common-types": { "version": "6.6.0", "resolved": "https://registry.npmmirror.com/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-6.6.0.tgz", "integrity": "sha512-xyX0X9mc0kyz9plIyryrRbl7ngsA9jz77mCZJsUkLl+ZKs0KWObgaEBoSgQiYWAsSmjz/yjl0F++Got0Mdp4Rw==", + "license": "MIT", "engines": { "node": ">=6" } @@ -994,6 +1048,7 @@ "version": "6.6.0", "resolved": "https://registry.npmmirror.com/@fortawesome/fontawesome-svg-core/-/fontawesome-svg-core-6.6.0.tgz", "integrity": "sha512-KHwPkCk6oRT4HADE7smhfsKudt9N/9lm6EJ5BVg0tD1yPA5hht837fB87F8pn15D8JfTqQOjhKTktwmLMiD7Kg==", + "license": "MIT", "dependencies": { "@fortawesome/fontawesome-common-types": "6.6.0" }, @@ -1005,6 +1060,7 @@ "version": "6.6.0", "resolved": "https://registry.npmmirror.com/@fortawesome/free-brands-svg-icons/-/free-brands-svg-icons-6.6.0.tgz", "integrity": "sha512-1MPD8lMNW/earme4OQi1IFHtmHUwAKgghXlNwWi9GO7QkTfD+IIaYpIai4m2YJEzqfEji3jFHX1DZI5pbY/biQ==", + "license": "(CC-BY-4.0 AND MIT)", "dependencies": { "@fortawesome/fontawesome-common-types": "6.6.0" }, @@ -1016,6 +1072,7 @@ "version": "6.6.0", "resolved": "https://registry.npmmirror.com/@fortawesome/free-regular-svg-icons/-/free-regular-svg-icons-6.6.0.tgz", "integrity": "sha512-Yv9hDzL4aI73BEwSEh20clrY8q/uLxawaQ98lekBx6t9dQKDHcDzzV1p2YtBGTtolYtNqcWdniOnhzB+JPnQEQ==", + "license": "(CC-BY-4.0 AND MIT)", "dependencies": { "@fortawesome/fontawesome-common-types": "6.6.0" }, @@ -1027,6 +1084,7 @@ "version": "6.6.0", "resolved": "https://registry.npmmirror.com/@fortawesome/free-solid-svg-icons/-/free-solid-svg-icons-6.6.0.tgz", "integrity": "sha512-IYv/2skhEDFc2WGUcqvFJkeK39Q+HyPf5GHUrT/l2pKbtgEIv1al1TKd6qStR5OIwQdN1GZP54ci3y4mroJWjA==", + "license": "(CC-BY-4.0 AND MIT)", "dependencies": { "@fortawesome/fontawesome-common-types": "6.6.0" }, @@ -1038,69 +1096,46 @@ "version": "3.0.8", "resolved": "https://registry.npmmirror.com/@fortawesome/vue-fontawesome/-/vue-fontawesome-3.0.8.tgz", "integrity": "sha512-yyHHAj4G8pQIDfaIsMvQpwKMboIZtcHTUvPqXjOHyldh1O1vZfH4W03VDPv5RvI9P6DLTzJQlmVgj9wCf7c2Fw==", + "license": "MIT", "peerDependencies": { "@fortawesome/fontawesome-svg-core": "~1 || ~6", "vue": ">= 3.0.0 < 4" } }, - "node_modules/@humanwhocodes/config-array": { - "version": "0.11.14", - "resolved": "https://registry.npmmirror.com/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", - "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==", - "deprecated": "Use @eslint/config-array instead", - "peer": true, - "dependencies": { - "@humanwhocodes/object-schema": "^2.0.2", - "debug": "^4.3.1", - "minimatch": "^3.0.5" - }, - "engines": { - "node": ">=10.10.0" - } - }, - "node_modules/@humanwhocodes/config-array/node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "peer": true, - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/@humanwhocodes/config-array/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "peer": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, "node_modules/@humanwhocodes/module-importer": { "version": "1.0.1", "resolved": "https://registry.npmmirror.com/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "license": "Apache-2.0", "peer": true, "engines": { "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" } }, - "node_modules/@humanwhocodes/object-schema": { - "version": "2.0.3", - "resolved": "https://registry.npmmirror.com/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz", - "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==", - "deprecated": "Use @eslint/object-schema instead", - "peer": true + "node_modules/@humanwhocodes/retry": { + "version": "0.3.0", + "resolved": "https://registry.npmmirror.com/@humanwhocodes/retry/-/retry-0.3.0.tgz", + "integrity": "sha512-d2CGZR2o7fS6sWB7DG/3a95bGKQyHMACZ5aW8qGkkqQpUoZV6C0X7Pc7l4ZNMZkfNBf4VWNe9E1jRsf0G146Ew==", + "license": "Apache-2.0", + "peer": true, + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } }, "node_modules/@jridgewell/gen-mapping": { "version": "0.3.5", "resolved": "https://registry.npmmirror.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", "dev": true, + "license": "MIT", "dependencies": { "@jridgewell/set-array": "^1.2.1", "@jridgewell/sourcemap-codec": "^1.4.10", @@ -1115,6 +1150,7 @@ "resolved": "https://registry.npmmirror.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.0.0" } @@ -1124,6 +1160,7 @@ "resolved": "https://registry.npmmirror.com/@jridgewell/set-array/-/set-array-1.2.1.tgz", "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.0.0" } @@ -1131,13 +1168,15 @@ "node_modules/@jridgewell/sourcemap-codec": { "version": "1.5.0", "resolved": "https://registry.npmmirror.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", - "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==" + "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", + "license": "MIT" }, "node_modules/@jridgewell/trace-mapping": { "version": "0.3.25", "resolved": "https://registry.npmmirror.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", "dev": true, + "license": "MIT", "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" @@ -1147,6 +1186,7 @@ "version": "2.1.5", "resolved": "https://registry.npmmirror.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "license": "MIT", "peer": true, "dependencies": { "@nodelib/fs.stat": "2.0.5", @@ -1160,6 +1200,7 @@ "version": "2.0.5", "resolved": "https://registry.npmmirror.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "license": "MIT", "peer": true, "engines": { "node": ">= 8" @@ -1169,6 +1210,7 @@ "version": "1.2.8", "resolved": "https://registry.npmmirror.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "license": "MIT", "peer": true, "dependencies": { "@nodelib/fs.scandir": "2.1.5", @@ -1179,208 +1221,224 @@ } }, "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.18.1", - "resolved": "https://registry.npmmirror.com/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.18.1.tgz", - "integrity": "sha512-lncuC4aHicncmbORnx+dUaAgzee9cm/PbIqgWz1PpXuwc+sa1Ct83tnqUDy/GFKleLiN7ZIeytM6KJ4cAn1SxA==", + "version": "4.21.3", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.21.3.tgz", + "integrity": "sha512-MmKSfaB9GX+zXl6E8z4koOr/xU63AMVleLEa64v7R0QF/ZloMs5vcD1sHgM64GXXS1csaJutG+ddtzcueI/BLg==", "cpu": [ "arm" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "android" ] }, "node_modules/@rollup/rollup-android-arm64": { - "version": "4.18.1", - "resolved": "https://registry.npmmirror.com/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.18.1.tgz", - "integrity": "sha512-F/tkdw0WSs4ojqz5Ovrw5r9odqzFjb5LIgHdHZG65dFI1lWTWRVy32KDJLKRISHgJvqUeUhdIvy43fX41znyDg==", + "version": "4.21.3", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.21.3.tgz", + "integrity": "sha512-zrt8ecH07PE3sB4jPOggweBjJMzI1JG5xI2DIsUbkA+7K+Gkjys6eV7i9pOenNSDJH3eOr/jLb/PzqtmdwDq5g==", "cpu": [ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "android" ] }, "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.18.1", - "resolved": "https://registry.npmmirror.com/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.18.1.tgz", - "integrity": "sha512-vk+ma8iC1ebje/ahpxpnrfVQJibTMyHdWpOGZ3JpQ7Mgn/3QNHmPq7YwjZbIE7km73dH5M1e6MRRsnEBW7v5CQ==", + "version": "4.21.3", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.21.3.tgz", + "integrity": "sha512-P0UxIOrKNBFTQaXTxOH4RxuEBVCgEA5UTNV6Yz7z9QHnUJ7eLX9reOd/NYMO3+XZO2cco19mXTxDMXxit4R/eQ==", "cpu": [ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "darwin" ] }, "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.18.1", - "resolved": "https://registry.npmmirror.com/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.18.1.tgz", - "integrity": "sha512-IgpzXKauRe1Tafcej9STjSSuG0Ghu/xGYH+qG6JwsAUxXrnkvNHcq/NL6nz1+jzvWAnQkuAJ4uIwGB48K9OCGA==", + "version": "4.21.3", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.21.3.tgz", + "integrity": "sha512-L1M0vKGO5ASKntqtsFEjTq/fD91vAqnzeaF6sfNAy55aD+Hi2pBI5DKwCO+UNDQHWsDViJLqshxOahXyLSh3EA==", "cpu": [ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "darwin" ] }, "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.18.1", - "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.18.1.tgz", - "integrity": "sha512-P9bSiAUnSSM7EmyRK+e5wgpqai86QOSv8BwvkGjLwYuOpaeomiZWifEos517CwbG+aZl1T4clSE1YqqH2JRs+g==", + "version": "4.21.3", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.21.3.tgz", + "integrity": "sha512-btVgIsCjuYFKUjopPoWiDqmoUXQDiW2A4C3Mtmp5vACm7/GnyuprqIDPNczeyR5W8rTXEbkmrJux7cJmD99D2g==", "cpu": [ "arm" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ] }, "node_modules/@rollup/rollup-linux-arm-musleabihf": { - "version": "4.18.1", - "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.18.1.tgz", - "integrity": "sha512-5RnjpACoxtS+aWOI1dURKno11d7krfpGDEn19jI8BuWmSBbUC4ytIADfROM1FZrFhQPSoP+KEa3NlEScznBTyQ==", + "version": "4.21.3", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.21.3.tgz", + "integrity": "sha512-zmjbSphplZlau6ZTkxd3+NMtE4UKVy7U4aVFMmHcgO5CUbw17ZP6QCgyxhzGaU/wFFdTfiojjbLG3/0p9HhAqA==", "cpu": [ "arm" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ] }, "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.18.1", - "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.18.1.tgz", - "integrity": "sha512-8mwmGD668m8WaGbthrEYZ9CBmPug2QPGWxhJxh/vCgBjro5o96gL04WLlg5BA233OCWLqERy4YUzX3bJGXaJgQ==", + "version": "4.21.3", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.21.3.tgz", + "integrity": "sha512-nSZfcZtAnQPRZmUkUQwZq2OjQciR6tEoJaZVFvLHsj0MF6QhNMg0fQ6mUOsiCUpTqxTx0/O6gX0V/nYc7LrgPw==", "cpu": [ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ] }, "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.18.1", - "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.18.1.tgz", - "integrity": "sha512-dJX9u4r4bqInMGOAQoGYdwDP8lQiisWb9et+T84l2WXk41yEej8v2iGKodmdKimT8cTAYt0jFb+UEBxnPkbXEQ==", + "version": "4.21.3", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.21.3.tgz", + "integrity": "sha512-MnvSPGO8KJXIMGlQDYfvYS3IosFN2rKsvxRpPO2l2cum+Z3exiExLwVU+GExL96pn8IP+GdH8Tz70EpBhO0sIQ==", "cpu": [ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ] }, "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { - "version": "4.18.1", - "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.18.1.tgz", - "integrity": "sha512-V72cXdTl4EI0x6FNmho4D502sy7ed+LuVW6Ym8aI6DRQ9hQZdp5sj0a2usYOlqvFBNKQnLQGwmYnujo2HvjCxQ==", + "version": "4.21.3", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.21.3.tgz", + "integrity": "sha512-+W+p/9QNDr2vE2AXU0qIy0qQE75E8RTwTwgqS2G5CRQ11vzq0tbnfBd6brWhS9bCRjAjepJe2fvvkvS3dno+iw==", "cpu": [ "ppc64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ] }, "node_modules/@rollup/rollup-linux-riscv64-gnu": { - "version": "4.18.1", - "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.18.1.tgz", - "integrity": "sha512-f+pJih7sxoKmbjghrM2RkWo2WHUW8UbfxIQiWo5yeCaCM0TveMEuAzKJte4QskBp1TIinpnRcxkquY+4WuY/tg==", + "version": "4.21.3", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.21.3.tgz", + "integrity": "sha512-yXH6K6KfqGXaxHrtr+Uoy+JpNlUlI46BKVyonGiaD74ravdnF9BUNC+vV+SIuB96hUMGShhKV693rF9QDfO6nQ==", "cpu": [ "riscv64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ] }, "node_modules/@rollup/rollup-linux-s390x-gnu": { - "version": "4.18.1", - "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.18.1.tgz", - "integrity": "sha512-qb1hMMT3Fr/Qz1OKovCuUM11MUNLUuHeBC2DPPAWUYYUAOFWaxInaTwTQmc7Fl5La7DShTEpmYwgdt2hG+4TEg==", + "version": "4.21.3", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.21.3.tgz", + "integrity": "sha512-R8cwY9wcnApN/KDYWTH4gV/ypvy9yZUHlbJvfaiXSB48JO3KpwSpjOGqO4jnGkLDSk1hgjYkTbTt6Q7uvPf8eg==", "cpu": [ "s390x" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ] }, "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.18.1", - "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.18.1.tgz", - "integrity": "sha512-7O5u/p6oKUFYjRbZkL2FLbwsyoJAjyeXHCU3O4ndvzg2OFO2GinFPSJFGbiwFDaCFc+k7gs9CF243PwdPQFh5g==", + "version": "4.21.3", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.21.3.tgz", + "integrity": "sha512-kZPbX/NOPh0vhS5sI+dR8L1bU2cSO9FgxwM8r7wHzGydzfSjLRCFAT87GR5U9scj2rhzN3JPYVC7NoBbl4FZ0g==", "cpu": [ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ] }, "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.18.1", - "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.18.1.tgz", - "integrity": "sha512-pDLkYITdYrH/9Cv/Vlj8HppDuLMDUBmgsM0+N+xLtFd18aXgM9Nyqupb/Uw+HeidhfYg2lD6CXvz6CjoVOaKjQ==", + "version": "4.21.3", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.21.3.tgz", + "integrity": "sha512-S0Yq+xA1VEH66uiMNhijsWAafffydd2X5b77eLHfRmfLsRSpbiAWiRHV6DEpz6aOToPsgid7TI9rGd6zB1rhbg==", "cpu": [ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ] }, "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.18.1", - "resolved": "https://registry.npmmirror.com/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.18.1.tgz", - "integrity": "sha512-W2ZNI323O/8pJdBGil1oCauuCzmVd9lDmWBBqxYZcOqWD6aWqJtVBQ1dFrF4dYpZPks6F+xCZHfzG5hYlSHZ6g==", + "version": "4.21.3", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.21.3.tgz", + "integrity": "sha512-9isNzeL34yquCPyerog+IMCNxKR8XYmGd0tHSV+OVx0TmE0aJOo9uw4fZfUuk2qxobP5sug6vNdZR6u7Mw7Q+Q==", "cpu": [ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "win32" ] }, "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.18.1", - "resolved": "https://registry.npmmirror.com/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.18.1.tgz", - "integrity": "sha512-ELfEX1/+eGZYMaCIbK4jqLxO1gyTSOIlZr6pbC4SRYFaSIDVKOnZNMdoZ+ON0mrFDp4+H5MhwNC1H/AhE3zQLg==", + "version": "4.21.3", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.21.3.tgz", + "integrity": "sha512-nMIdKnfZfzn1Vsk+RuOvl43ONTZXoAPUUxgcU0tXooqg4YrAqzfKzVenqqk2g5efWh46/D28cKFrOzDSW28gTA==", "cpu": [ "ia32" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "win32" ] }, "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.18.1", - "resolved": "https://registry.npmmirror.com/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.18.1.tgz", - "integrity": "sha512-yjk2MAkQmoaPYCSu35RLJ62+dz358nE83VfTePJRp8CG7aMg25mEJYpXFiD+NcevhX8LxD5OP5tktPXnXN7GDw==", + "version": "4.21.3", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.21.3.tgz", + "integrity": "sha512-fOvu7PCQjAj4eWDEuD8Xz5gpzFqXzGlxHZozHP4b9Jxv9APtdxL6STqztDzMLuRXEc4UpXGGhx029Xgm91QBeA==", "cpu": [ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "win32" @@ -1390,12 +1448,14 @@ "version": "20.1.4", "resolved": "https://registry.npmmirror.com/@tsconfig/node20/-/node20-20.1.4.tgz", "integrity": "sha512-sqgsT69YFeLWf5NtJ4Xq/xAF8p4ZQHlmGW74Nu2tD4+g5fAsposc4ZfaaPixVu4y01BEiDCWLRDCvDM5JOsRxg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@types/eslint": { - "version": "8.56.10", - "resolved": "https://registry.npmmirror.com/@types/eslint/-/eslint-8.56.10.tgz", - "integrity": "sha512-Shavhk87gCtY2fhXDctcfS3e6FdxWkCx1iUZ9eEUbh7rTqlZT0/IzOkCOVt0fCjcFuZ9FPYfuezTBImfHCDBGQ==", + "version": "9.6.1", + "resolved": "https://registry.npmmirror.com/@types/eslint/-/eslint-9.6.1.tgz", + "integrity": "sha512-FXx2pKgId/WyYo2jXw63kk7/+TY7u7AziEJxJAnSFzHlqTAS3Ync6SvgYAN/k4/PQpnnVuzoMuVnByKK2qp0ag==", + "license": "MIT", "dependencies": { "@types/estree": "*", "@types/json-schema": "*" @@ -1405,57 +1465,63 @@ "version": "3.0.5", "resolved": "https://registry.npmmirror.com/@types/eslint-utils/-/eslint-utils-3.0.5.tgz", "integrity": "sha512-dGOLJqHXpjomkPgZiC7vnVSJtFIOM1Y6L01EyUhzPuD0y0wfIGiqxiGs3buUBfzxLIQHrCvZsIMDaCZ8R5IIoA==", + "license": "MIT", "dependencies": { "@types/eslint": "*", "@types/estree": "*" } }, "node_modules/@types/estree": { - "version": "1.0.5", - "resolved": "https://registry.npmmirror.com/@types/estree/-/estree-1.0.5.tgz", - "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==" + "version": "1.0.6", + "resolved": "https://registry.npmmirror.com/@types/estree/-/estree-1.0.6.tgz", + "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==", + "license": "MIT" }, "node_modules/@types/json-schema": { "version": "7.0.15", "resolved": "https://registry.npmmirror.com/@types/json-schema/-/json-schema-7.0.15.tgz", - "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==" + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "license": "MIT" }, "node_modules/@types/node": { - "version": "20.14.11", - "resolved": "https://registry.npmmirror.com/@types/node/-/node-20.14.11.tgz", - "integrity": "sha512-kprQpL8MMeszbz6ojB5/tU8PLN4kesnN8Gjzw349rDlNgsSzg90lAVj3llK99Dh7JON+t9AuscPPFW6mPbTnSA==", + "version": "20.16.5", + "resolved": "https://registry.npmmirror.com/@types/node/-/node-20.16.5.tgz", + "integrity": "sha512-VwYCweNo3ERajwy0IUlqqcyZ8/A7Zwa9ZP3MnENWcB11AejO+tLy3pu850goUW2FC/IJMdZUfKpX/yxL1gymCA==", "dev": true, + "license": "MIT", "dependencies": { - "undici-types": "~5.26.4" + "undici-types": "~6.19.2" } }, "node_modules/@types/wicg-file-system-access": { "version": "2023.10.5", "resolved": "https://registry.npmmirror.com/@types/wicg-file-system-access/-/wicg-file-system-access-2023.10.5.tgz", "integrity": "sha512-e9kZO9kCdLqT2h9Tw38oGv9UNzBBWaR1MzuAavxPcsV/7FJ3tWbU6RI3uB+yKIDPGLkGVbplS52ub0AcRLvrhA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@typescript-eslint/parser": { - "version": "7.16.1", - "resolved": "https://registry.npmmirror.com/@typescript-eslint/parser/-/parser-7.16.1.tgz", - "integrity": "sha512-u+1Qx86jfGQ5i4JjK33/FnawZRpsLxRnKzGE6EABZ40KxVT/vWsiZFEBBHjFOljmmV3MBYOHEKi0Jm9hbAOClA==", + "version": "8.6.0", + "resolved": "https://registry.npmmirror.com/@typescript-eslint/parser/-/parser-8.6.0.tgz", + "integrity": "sha512-eQcbCuA2Vmw45iGfcyG4y6rS7BhWfz9MQuk409WD47qMM+bKCGQWXxvoOs1DUp+T7UBMTtRTVT+kXr7Sh4O9Ow==", + "license": "BSD-2-Clause", "peer": true, "dependencies": { - "@typescript-eslint/scope-manager": "7.16.1", - "@typescript-eslint/types": "7.16.1", - "@typescript-eslint/typescript-estree": "7.16.1", - "@typescript-eslint/visitor-keys": "7.16.1", + "@typescript-eslint/scope-manager": "8.6.0", + "@typescript-eslint/types": "8.6.0", + "@typescript-eslint/typescript-estree": "8.6.0", + "@typescript-eslint/visitor-keys": "8.6.0", "debug": "^4.3.4" }, "engines": { - "node": "^18.18.0 || >=20.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "^8.56.0" + "eslint": "^8.57.0 || ^9.0.0" }, "peerDependenciesMeta": { "typescript": { @@ -1464,16 +1530,17 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "7.16.1", - "resolved": "https://registry.npmmirror.com/@typescript-eslint/scope-manager/-/scope-manager-7.16.1.tgz", - "integrity": "sha512-nYpyv6ALte18gbMz323RM+vpFpTjfNdyakbf3nsLvF43uF9KeNC289SUEW3QLZ1xPtyINJ1dIsZOuWuSRIWygw==", + "version": "8.6.0", + "resolved": "https://registry.npmmirror.com/@typescript-eslint/scope-manager/-/scope-manager-8.6.0.tgz", + "integrity": "sha512-ZuoutoS5y9UOxKvpc/GkvF4cuEmpokda4wRg64JEia27wX+PysIE9q+lzDtlHHgblwUWwo5/Qn+/WyTUvDwBHw==", + "license": "MIT", "peer": true, "dependencies": { - "@typescript-eslint/types": "7.16.1", - "@typescript-eslint/visitor-keys": "7.16.1" + "@typescript-eslint/types": "8.6.0", + "@typescript-eslint/visitor-keys": "8.6.0" }, "engines": { - "node": "^18.18.0 || >=20.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", @@ -1481,12 +1548,13 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "7.16.1", - "resolved": "https://registry.npmmirror.com/@typescript-eslint/types/-/types-7.16.1.tgz", - "integrity": "sha512-AQn9XqCzUXd4bAVEsAXM/Izk11Wx2u4H3BAfQVhSfzfDOm/wAON9nP7J5rpkCxts7E5TELmN845xTUCQrD1xIQ==", + "version": "8.6.0", + "resolved": "https://registry.npmmirror.com/@typescript-eslint/types/-/types-8.6.0.tgz", + "integrity": "sha512-rojqFZGd4MQxw33SrOy09qIDS8WEldM8JWtKQLAjf/X5mGSeEFh5ixQlxssMNyPslVIk9yzWqXCsV2eFhYrYUw==", + "license": "MIT", "peer": true, "engines": { - "node": "^18.18.0 || >=20.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", @@ -1494,22 +1562,23 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "7.16.1", - "resolved": "https://registry.npmmirror.com/@typescript-eslint/typescript-estree/-/typescript-estree-7.16.1.tgz", - "integrity": "sha512-0vFPk8tMjj6apaAZ1HlwM8w7jbghC8jc1aRNJG5vN8Ym5miyhTQGMqU++kuBFDNKe9NcPeZ6x0zfSzV8xC1UlQ==", + "version": "8.6.0", + "resolved": "https://registry.npmmirror.com/@typescript-eslint/typescript-estree/-/typescript-estree-8.6.0.tgz", + "integrity": "sha512-MOVAzsKJIPIlLK239l5s06YXjNqpKTVhBVDnqUumQJja5+Y94V3+4VUFRA0G60y2jNnTVwRCkhyGQpavfsbq/g==", + "license": "BSD-2-Clause", "peer": true, "dependencies": { - "@typescript-eslint/types": "7.16.1", - "@typescript-eslint/visitor-keys": "7.16.1", + "@typescript-eslint/types": "8.6.0", + "@typescript-eslint/visitor-keys": "8.6.0", "debug": "^4.3.4", - "globby": "^11.1.0", + "fast-glob": "^3.3.2", "is-glob": "^4.0.3", "minimatch": "^9.0.4", "semver": "^7.6.0", "ts-api-utils": "^1.3.0" }, "engines": { - "node": "^18.18.0 || >=20.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", @@ -1525,6 +1594,7 @@ "version": "7.6.3", "resolved": "https://registry.npmmirror.com/semver/-/semver-7.6.3.tgz", "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "license": "ISC", "peer": true, "bin": { "semver": "bin/semver.js" @@ -1534,33 +1604,29 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "7.16.1", - "resolved": "https://registry.npmmirror.com/@typescript-eslint/visitor-keys/-/visitor-keys-7.16.1.tgz", - "integrity": "sha512-Qlzzx4sE4u3FsHTPQAAQFJFNOuqtuY0LFrZHwQ8IHK705XxBiWOFkfKRWu6niB7hwfgnwIpO4jTC75ozW1PHWg==", + "version": "8.6.0", + "resolved": "https://registry.npmmirror.com/@typescript-eslint/visitor-keys/-/visitor-keys-8.6.0.tgz", + "integrity": "sha512-wapVFfZg9H0qOYh4grNVQiMklJGluQrOUiOhYRrQWhx7BY/+I1IYb8BczWNbbUpO+pqy0rDciv3lQH5E1bCLrg==", + "license": "MIT", "peer": true, "dependencies": { - "@typescript-eslint/types": "7.16.1", + "@typescript-eslint/types": "8.6.0", "eslint-visitor-keys": "^3.4.3" }, "engines": { - "node": "^18.18.0 || >=20.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/@ungap/structured-clone": { - "version": "1.2.0", - "resolved": "https://registry.npmmirror.com/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", - "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", - "peer": true - }, "node_modules/@vitejs/plugin-vue": { - "version": "5.0.5", - "resolved": "https://registry.npmmirror.com/@vitejs/plugin-vue/-/plugin-vue-5.0.5.tgz", - "integrity": "sha512-LOjm7XeIimLBZyzinBQ6OSm3UBCNVCpLkxGC0oWmm2YPzVZoxMsdvNVimLTBzpAnR9hl/yn1SHGuRfe6/Td9rQ==", + "version": "5.1.4", + "resolved": "https://registry.npmmirror.com/@vitejs/plugin-vue/-/plugin-vue-5.1.4.tgz", + "integrity": "sha512-N2XSI2n3sQqp5w7Y/AN/L2XDjBIRGqXko+eDp42sydYSBeJuSm5a1sLf8zakmo8u7tA8NmBgoDLA1HeOESjp9A==", "dev": true, + "license": "MIT", "engines": { "node": "^18.0.0 || >=20.0.0" }, @@ -1570,13 +1636,14 @@ } }, "node_modules/@vitejs/plugin-vue-jsx": { - "version": "4.0.0", - "resolved": "https://registry.npmmirror.com/@vitejs/plugin-vue-jsx/-/plugin-vue-jsx-4.0.0.tgz", - "integrity": "sha512-A+6wL2AdQhDsLsDnY+2v4rRDI1HLJGIMc97a8FURO9tqKsH5QvjWrzsa5DH3NlZsM742W2wODl2fF+bfcTWtXw==", + "version": "4.0.1", + "resolved": "https://registry.npmmirror.com/@vitejs/plugin-vue-jsx/-/plugin-vue-jsx-4.0.1.tgz", + "integrity": "sha512-7mg9HFGnFHMEwCdB6AY83cVK4A6sCqnrjFYF4WIlebYAQVVJ/sC/CiTruVdrRlhrFoeZ8rlMxY9wYpPTIRhhAg==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/core": "^7.24.6", - "@babel/plugin-transform-typescript": "^7.24.6", + "@babel/core": "^7.24.7", + "@babel/plugin-transform-typescript": "^7.24.7", "@vue/babel-plugin-jsx": "^1.2.2" }, "engines": { @@ -1588,52 +1655,56 @@ } }, "node_modules/@volar/language-core": { - "version": "2.4.0-alpha.16", - "resolved": "https://registry.npmmirror.com/@volar/language-core/-/language-core-2.4.0-alpha.16.tgz", - "integrity": "sha512-oOTnIZlx0P/idFwVw+W0NbzKDtZAQMzXSdIFfTePCKcXlb4Ys12GaGkx8NF9dsvPYV3nbv3ZsSxnkZWBmNKd7A==", + "version": "2.4.5", + "resolved": "https://registry.npmmirror.com/@volar/language-core/-/language-core-2.4.5.tgz", + "integrity": "sha512-F4tA0DCO5Q1F5mScHmca0umsi2ufKULAnMOVBfMsZdT4myhVl4WdKRwCaKcfOkIEuyrAVvtq1ESBdZ+rSyLVww==", "dev": true, + "license": "MIT", "dependencies": { - "@volar/source-map": "2.4.0-alpha.16" + "@volar/source-map": "2.4.5" } }, "node_modules/@volar/source-map": { - "version": "2.4.0-alpha.16", - "resolved": "https://registry.npmmirror.com/@volar/source-map/-/source-map-2.4.0-alpha.16.tgz", - "integrity": "sha512-sL9vNG7iR2hiKZor7UkD5Sufu3QCia4cbp2gX/nGRNSdaPbhOpdAoavwlBm0PrVkpiA19NZuavZoobD8krviFg==", - "dev": true + "version": "2.4.5", + "resolved": "https://registry.npmmirror.com/@volar/source-map/-/source-map-2.4.5.tgz", + "integrity": "sha512-varwD7RaKE2J/Z+Zu6j3mNNJbNT394qIxXwdvz/4ao/vxOfyClZpSDtLKkwWmecinkOVos5+PWkWraelfMLfpw==", + "dev": true, + "license": "MIT" }, "node_modules/@volar/typescript": { - "version": "2.4.0-alpha.16", - "resolved": "https://registry.npmmirror.com/@volar/typescript/-/typescript-2.4.0-alpha.16.tgz", - "integrity": "sha512-WCx7z5O81McCQp2cC0c8081y+MgTiAR2WAiJjVL4tr4Qh4GgqK0lgn3CqAjcKizaK1R5y3wfrUqgIYr+QeFYcw==", + "version": "2.4.5", + "resolved": "https://registry.npmmirror.com/@volar/typescript/-/typescript-2.4.5.tgz", + "integrity": "sha512-mcT1mHvLljAEtHviVcBuOyAwwMKz1ibXTi5uYtP/pf4XxoAzpdkQ+Br2IC0NPCvLCbjPZmbf3I0udndkfB1CDg==", "dev": true, + "license": "MIT", "dependencies": { - "@volar/language-core": "2.4.0-alpha.16", + "@volar/language-core": "2.4.5", "path-browserify": "^1.0.1", "vscode-uri": "^3.0.8" } }, "node_modules/@vue/babel-helper-vue-transform-on": { - "version": "1.2.2", - "resolved": "https://registry.npmmirror.com/@vue/babel-helper-vue-transform-on/-/babel-helper-vue-transform-on-1.2.2.tgz", - "integrity": "sha512-nOttamHUR3YzdEqdM/XXDyCSdxMA9VizUKoroLX6yTyRtggzQMHXcmwh8a7ZErcJttIBIc9s68a1B8GZ+Dmvsw==", - "dev": true + "version": "1.2.5", + "resolved": "https://registry.npmmirror.com/@vue/babel-helper-vue-transform-on/-/babel-helper-vue-transform-on-1.2.5.tgz", + "integrity": "sha512-lOz4t39ZdmU4DJAa2hwPYmKc8EsuGa2U0L9KaZaOJUt0UwQNjNA3AZTq6uEivhOKhhG1Wvy96SvYBoFmCg3uuw==", + "dev": true, + "license": "MIT" }, "node_modules/@vue/babel-plugin-jsx": { - "version": "1.2.2", - "resolved": "https://registry.npmmirror.com/@vue/babel-plugin-jsx/-/babel-plugin-jsx-1.2.2.tgz", - "integrity": "sha512-nYTkZUVTu4nhP199UoORePsql0l+wj7v/oyQjtThUVhJl1U+6qHuoVhIvR3bf7eVKjbCK+Cs2AWd7mi9Mpz9rA==", - "dev": true, - "dependencies": { - "@babel/helper-module-imports": "~7.22.15", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-jsx": "^7.23.3", - "@babel/template": "^7.23.9", - "@babel/traverse": "^7.23.9", - "@babel/types": "^7.23.9", - "@vue/babel-helper-vue-transform-on": "1.2.2", - "@vue/babel-plugin-resolve-type": "1.2.2", - "camelcase": "^6.3.0", + "version": "1.2.5", + "resolved": "https://registry.npmmirror.com/@vue/babel-plugin-jsx/-/babel-plugin-jsx-1.2.5.tgz", + "integrity": "sha512-zTrNmOd4939H9KsRIGmmzn3q2zvv1mjxkYZHgqHZgDrXz5B1Q3WyGEjO2f+JrmKghvl1JIRcvo63LgM1kH5zFg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.24.7", + "@babel/helper-plugin-utils": "^7.24.8", + "@babel/plugin-syntax-jsx": "^7.24.7", + "@babel/template": "^7.25.0", + "@babel/traverse": "^7.25.6", + "@babel/types": "^7.25.6", + "@vue/babel-helper-vue-transform-on": "1.2.5", + "@vue/babel-plugin-resolve-type": "1.2.5", "html-tags": "^3.3.1", "svg-tags": "^1.0.0" }, @@ -1646,111 +1717,105 @@ } } }, - "node_modules/@vue/babel-plugin-jsx/node_modules/@babel/helper-module-imports": { - "version": "7.22.15", - "resolved": "https://registry.npmmirror.com/@babel/helper-module-imports/-/helper-module-imports-7.22.15.tgz", - "integrity": "sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==", - "dev": true, - "dependencies": { - "@babel/types": "^7.22.15" - }, - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/@vue/babel-plugin-resolve-type": { - "version": "1.2.2", - "resolved": "https://registry.npmmirror.com/@vue/babel-plugin-resolve-type/-/babel-plugin-resolve-type-1.2.2.tgz", - "integrity": "sha512-EntyroPwNg5IPVdUJupqs0CFzuf6lUrVvCspmv2J1FITLeGnUCuoGNNk78dgCusxEiYj6RMkTJflGSxk5aIC4A==", + "version": "1.2.5", + "resolved": "https://registry.npmmirror.com/@vue/babel-plugin-resolve-type/-/babel-plugin-resolve-type-1.2.5.tgz", + "integrity": "sha512-U/ibkQrf5sx0XXRnUZD1mo5F7PkpKyTbfXM3a3rC4YnUz6crHEz9Jg09jzzL6QYlXNto/9CePdOg/c87O4Nlfg==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/code-frame": "^7.23.5", - "@babel/helper-module-imports": "~7.22.15", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/parser": "^7.23.9", - "@vue/compiler-sfc": "^3.4.15" + "@babel/code-frame": "^7.24.7", + "@babel/helper-module-imports": "^7.24.7", + "@babel/helper-plugin-utils": "^7.24.8", + "@babel/parser": "^7.25.6", + "@vue/compiler-sfc": "^3.5.3" }, "peerDependencies": { "@babel/core": "^7.0.0-0" } }, - "node_modules/@vue/babel-plugin-resolve-type/node_modules/@babel/helper-module-imports": { - "version": "7.22.15", - "resolved": "https://registry.npmmirror.com/@babel/helper-module-imports/-/helper-module-imports-7.22.15.tgz", - "integrity": "sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==", - "dev": true, - "dependencies": { - "@babel/types": "^7.22.15" - }, - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/@vue/compiler-core": { - "version": "3.4.32", - "resolved": "https://registry.npmmirror.com/@vue/compiler-core/-/compiler-core-3.4.32.tgz", - "integrity": "sha512-8tCVWkkLe/QCWIsrIvExUGnhYCAOroUs5dzhSoKL5w4MJS8uIYiou+pOPSVIOALOQ80B0jBs+Ri+kd5+MBnCDw==", + "version": "3.5.6", + "resolved": "https://registry.npmmirror.com/@vue/compiler-core/-/compiler-core-3.5.6.tgz", + "integrity": "sha512-r+gNu6K4lrvaQLQGmf+1gc41p3FO2OUJyWmNqaIITaJU6YFiV5PtQSFZt8jfztYyARwqhoCayjprC7KMvT3nRA==", + "license": "MIT", "dependencies": { - "@babel/parser": "^7.24.7", - "@vue/shared": "3.4.32", + "@babel/parser": "^7.25.3", + "@vue/shared": "3.5.6", "entities": "^4.5.0", "estree-walker": "^2.0.2", "source-map-js": "^1.2.0" } }, "node_modules/@vue/compiler-dom": { - "version": "3.4.32", - "resolved": "https://registry.npmmirror.com/@vue/compiler-dom/-/compiler-dom-3.4.32.tgz", - "integrity": "sha512-PbSgt9KuYo4fyb90dynuPc0XFTfFPs3sCTbPLOLlo+PrUESW1gn/NjSsUvhR+mI2AmmEzexwYMxbHDldxSOr2A==", + "version": "3.5.6", + "resolved": "https://registry.npmmirror.com/@vue/compiler-dom/-/compiler-dom-3.5.6.tgz", + "integrity": "sha512-xRXqxDrIqK8v8sSScpistyYH0qYqxakpsIvqMD2e5sV/PXQ1mTwtXp4k42yHK06KXxKSmitop9e45Ui/3BrTEw==", + "license": "MIT", "dependencies": { - "@vue/compiler-core": "3.4.32", - "@vue/shared": "3.4.32" + "@vue/compiler-core": "3.5.6", + "@vue/shared": "3.5.6" } }, "node_modules/@vue/compiler-sfc": { - "version": "3.4.32", - "resolved": "https://registry.npmmirror.com/@vue/compiler-sfc/-/compiler-sfc-3.4.32.tgz", - "integrity": "sha512-STy9im/WHfaguJnfKjjVpMHukxHUrOKjm2vVCxiojQJyo3Sb6Os8SMXBr/MI+ekpstEGkDONfqAQoSbZhspLYw==", - "dependencies": { - "@babel/parser": "^7.24.7", - "@vue/compiler-core": "3.4.32", - "@vue/compiler-dom": "3.4.32", - "@vue/compiler-ssr": "3.4.32", - "@vue/shared": "3.4.32", + "version": "3.5.6", + "resolved": "https://registry.npmmirror.com/@vue/compiler-sfc/-/compiler-sfc-3.5.6.tgz", + "integrity": "sha512-pjWJ8Kj9TDHlbF5LywjVso+BIxCY5wVOLhkEXRhuCHDxPFIeX1zaFefKs8RYoHvkSMqRWt93a0f2gNJVJixHwg==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.25.3", + "@vue/compiler-core": "3.5.6", + "@vue/compiler-dom": "3.5.6", + "@vue/compiler-ssr": "3.5.6", + "@vue/shared": "3.5.6", "estree-walker": "^2.0.2", - "magic-string": "^0.30.10", - "postcss": "^8.4.39", + "magic-string": "^0.30.11", + "postcss": "^8.4.47", "source-map-js": "^1.2.0" } }, "node_modules/@vue/compiler-ssr": { - "version": "3.4.32", - "resolved": "https://registry.npmmirror.com/@vue/compiler-ssr/-/compiler-ssr-3.4.32.tgz", - "integrity": "sha512-nyu/txTecF6DrxLrpLcI34xutrvZPtHPBj9yRoPxstIquxeeyywXpYZrQMsIeDfBhlw1abJb9CbbyZvDw2kjdg==", + "version": "3.5.6", + "resolved": "https://registry.npmmirror.com/@vue/compiler-ssr/-/compiler-ssr-3.5.6.tgz", + "integrity": "sha512-VpWbaZrEOCqnmqjE83xdwegtr5qO/2OPUC6veWgvNqTJ3bYysz6vY3VqMuOijubuUYPRpG3OOKIh9TD0Stxb9A==", + "license": "MIT", "dependencies": { - "@vue/compiler-dom": "3.4.32", - "@vue/shared": "3.4.32" + "@vue/compiler-dom": "3.5.6", + "@vue/shared": "3.5.6" + } + }, + "node_modules/@vue/compiler-vue2": { + "version": "2.7.16", + "resolved": "https://registry.npmmirror.com/@vue/compiler-vue2/-/compiler-vue2-2.7.16.tgz", + "integrity": "sha512-qYC3Psj9S/mfu9uVi5WvNZIzq+xnXMhOwbTFKKDD7b1lhpnn71jXSFdTQ+WsIEk0ONCd7VV2IMm7ONl6tbQ86A==", + "dev": true, + "license": "MIT", + "dependencies": { + "de-indent": "^1.0.2", + "he": "^1.2.0" } }, "node_modules/@vue/devtools-api": { - "version": "6.6.3", - "resolved": "https://registry.npmmirror.com/@vue/devtools-api/-/devtools-api-6.6.3.tgz", - "integrity": "sha512-0MiMsFma/HqA6g3KLKn+AGpL1kgKhFWszC9U29NfpWK5LE7bjeXxySWJrOJ77hBz+TBrBQ7o4QJqbPbqbs8rJw==" + "version": "6.6.4", + "resolved": "https://registry.npmmirror.com/@vue/devtools-api/-/devtools-api-6.6.4.tgz", + "integrity": "sha512-sGhTPMuXqZ1rVOk32RylztWkfXTRhuS7vgAKv0zjqk8gbsHkJ7xfFf+jbySxt7tWObEJwyKaHMikV/WGDiQm8g==", + "license": "MIT" }, "node_modules/@vue/language-core": { - "version": "2.0.26", - "resolved": "https://registry.npmmirror.com/@vue/language-core/-/language-core-2.0.26.tgz", - "integrity": "sha512-/lt6SfQ3O1yDAhPsnLv9iSUgXd1dMHqUm/t3RctfqjuwQf1LnftZ414X3UBn6aXT4MiwXWtbNJ4Z0NZWwDWgJQ==", + "version": "2.1.6", + "resolved": "https://registry.npmmirror.com/@vue/language-core/-/language-core-2.1.6.tgz", + "integrity": "sha512-MW569cSky9R/ooKMh6xa2g1D0AtRKbL56k83dzus/bx//RDJk24RHWkMzbAlXjMdDNyxAaagKPRquBIxkxlCkg==", "dev": true, + "license": "MIT", "dependencies": { - "@volar/language-core": "~2.4.0-alpha.15", + "@volar/language-core": "~2.4.1", "@vue/compiler-dom": "^3.4.0", + "@vue/compiler-vue2": "^2.7.16", "@vue/shared": "^3.4.0", "computeds": "^0.0.1", "minimatch": "^9.0.3", "muggle-string": "^0.4.1", - "path-browserify": "^1.0.1", - "vue-template-compiler": "^2.7.14" + "path-browserify": "^1.0.1" }, "peerDependencies": { "typescript": "*" @@ -1762,60 +1827,67 @@ } }, "node_modules/@vue/reactivity": { - "version": "3.4.32", - "resolved": "https://registry.npmmirror.com/@vue/reactivity/-/reactivity-3.4.32.tgz", - "integrity": "sha512-1P7QvghAzhSIWmiNmh4MNkLVjr2QTNDcFv2sKmytEWhR6t7BZzNicgm5ENER4uU++wbWxgRh/pSEYgdI3MDcvg==", + "version": "3.5.6", + "resolved": "https://registry.npmmirror.com/@vue/reactivity/-/reactivity-3.5.6.tgz", + "integrity": "sha512-shZ+KtBoHna5GyUxWfoFVBCVd7k56m6lGhk5e+J9AKjheHF6yob5eukssHRI+rzvHBiU1sWs/1ZhNbLExc5oYQ==", + "license": "MIT", "dependencies": { - "@vue/shared": "3.4.32" + "@vue/shared": "3.5.6" } }, "node_modules/@vue/runtime-core": { - "version": "3.4.32", - "resolved": "https://registry.npmmirror.com/@vue/runtime-core/-/runtime-core-3.4.32.tgz", - "integrity": "sha512-FxT2dTHUs1Hki8Ui/B1Hu339mx4H5kRJooqrNM32tGUHBPStJxwMzLIRbeGO/B1NMplU4Pg9fwOqrJtrOzkdfA==", + "version": "3.5.6", + "resolved": "https://registry.npmmirror.com/@vue/runtime-core/-/runtime-core-3.5.6.tgz", + "integrity": "sha512-FpFULR6+c2lI+m1fIGONLDqPQO34jxV8g6A4wBOgne8eSRHP6PQL27+kWFIx5wNhhjkO7B4rgtsHAmWv7qKvbg==", + "license": "MIT", "dependencies": { - "@vue/reactivity": "3.4.32", - "@vue/shared": "3.4.32" + "@vue/reactivity": "3.5.6", + "@vue/shared": "3.5.6" } }, "node_modules/@vue/runtime-dom": { - "version": "3.4.32", - "resolved": "https://registry.npmmirror.com/@vue/runtime-dom/-/runtime-dom-3.4.32.tgz", - "integrity": "sha512-Xz9G+ZViRyPFQtRBCPFkhMzKn454ihCPMKUiacNaUhuTIXvyfkAq8l89IZ/kegFVyw/7KkJGRGqYdEZrf27Xsg==", - "dependencies": { - "@vue/reactivity": "3.4.32", - "@vue/runtime-core": "3.4.32", - "@vue/shared": "3.4.32", + "version": "3.5.6", + "resolved": "https://registry.npmmirror.com/@vue/runtime-dom/-/runtime-dom-3.5.6.tgz", + "integrity": "sha512-SDPseWre45G38ENH2zXRAHL1dw/rr5qp91lS4lt/nHvMr0MhsbCbihGAWLXNB/6VfFOJe2O+RBRkXU+CJF7/sw==", + "license": "MIT", + "dependencies": { + "@vue/reactivity": "3.5.6", + "@vue/runtime-core": "3.5.6", + "@vue/shared": "3.5.6", "csstype": "^3.1.3" } }, "node_modules/@vue/server-renderer": { - "version": "3.4.32", - "resolved": "https://registry.npmmirror.com/@vue/server-renderer/-/server-renderer-3.4.32.tgz", - "integrity": "sha512-3c4rd0522Ao8hKjzgmUAbcjv2mBnvnw0Ld2f8HOMCuWJZjYie/p8cpIoYJbeP0VV2JYmrJJMwGQDO5RH4iQ30A==", + "version": "3.5.6", + "resolved": "https://registry.npmmirror.com/@vue/server-renderer/-/server-renderer-3.5.6.tgz", + "integrity": "sha512-zivnxQnOnwEXVaT9CstJ64rZFXMS5ZkKxCjDQKiMSvUhXRzFLWZVbaBiNF4HGDqGNNsTgmjcCSmU6TB/0OOxLA==", + "license": "MIT", "dependencies": { - "@vue/compiler-ssr": "3.4.32", - "@vue/shared": "3.4.32" + "@vue/compiler-ssr": "3.5.6", + "@vue/shared": "3.5.6" }, "peerDependencies": { - "vue": "3.4.32" + "vue": "3.5.6" } }, "node_modules/@vue/shared": { - "version": "3.4.32", - "resolved": "https://registry.npmmirror.com/@vue/shared/-/shared-3.4.32.tgz", - "integrity": "sha512-ep4mF1IVnX/pYaNwxwOpJHyBtOMKWoKZMbnUyd+z0udqIxLUh7YCCd/JfDna8aUrmnG9SFORyIq2HzEATRrQsg==" + "version": "3.5.6", + "resolved": "https://registry.npmmirror.com/@vue/shared/-/shared-3.5.6.tgz", + "integrity": "sha512-eidH0HInnL39z6wAt6SFIwBrvGOpDWsDxlw3rCgo1B+CQ1781WzQUSU3YjxgdkcJo9Q8S6LmXTkvI+cLHGkQfA==", + "license": "MIT" }, "node_modules/@vue/tsconfig": { "version": "0.5.1", "resolved": "https://registry.npmmirror.com/@vue/tsconfig/-/tsconfig-0.5.1.tgz", "integrity": "sha512-VcZK7MvpjuTPx2w6blwnwZAu5/LgBUtejFOi3pPGQFXQN5Ela03FUtd2Qtg4yWGGissVL0dr6Ro1LfOFh+PCuQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@vueuse/sound": { "version": "2.0.1", "resolved": "https://registry.npmmirror.com/@vueuse/sound/-/sound-2.0.1.tgz", "integrity": "sha512-7Fbp9lQkuUnpTXS9vPbvT2FDYHuwJbvKPivOYETaVVSmcZKoczw6zcsebsARkH5Ged0f045YUOZnV/RuCzyLXQ==", + "license": "MIT", "dependencies": { "howler": "^2.2.3", "vue-demi": "latest" @@ -1831,10 +1903,11 @@ } }, "node_modules/@vueuse/sound/node_modules/vue-demi": { - "version": "0.14.8", - "resolved": "https://registry.npmmirror.com/vue-demi/-/vue-demi-0.14.8.tgz", - "integrity": "sha512-Uuqnk9YE9SsWeReYqK2alDI5YzciATE0r2SkA6iMAtuXvNTMNACJLJEXNXaEy94ECuBe4Sk6RzRU80kjdbIo1Q==", + "version": "0.14.10", + "resolved": "https://registry.npmmirror.com/vue-demi/-/vue-demi-0.14.10.tgz", + "integrity": "sha512-nMZBOwuzabUO0nLgIcc6rycZEebF6eeUfaiQx9+WSk8e29IbLvPU9feI6tqW4kTo3hvoYAJkMh8n8D0fuISphg==", "hasInstallScript": true, + "license": "MIT", "bin": { "vue-demi-fix": "bin/vue-demi-fix.js", "vue-demi-switch": "bin/vue-demi-switch.js" @@ -1859,6 +1932,7 @@ "version": "8.12.1", "resolved": "https://registry.npmmirror.com/acorn/-/acorn-8.12.1.tgz", "integrity": "sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==", + "license": "MIT", "peer": true, "bin": { "acorn": "bin/acorn" @@ -1871,6 +1945,7 @@ "version": "5.3.2", "resolved": "https://registry.npmmirror.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz", "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "license": "MIT", "peer": true, "peerDependencies": { "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" @@ -1880,6 +1955,7 @@ "version": "6.12.6", "resolved": "https://registry.npmmirror.com/ajv/-/ajv-6.12.6.tgz", "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "license": "MIT", "peer": true, "dependencies": { "fast-deep-equal": "^3.1.1", @@ -1896,6 +1972,7 @@ "version": "6.2.1", "resolved": "https://registry.npmmirror.com/ansi-escapes/-/ansi-escapes-6.2.1.tgz", "integrity": "sha512-4nJ3yixlEthEJ9Rk4vPcdBRkZvQZlYyu8j4/Mqz5sgIkddmEnH2Yj2ZrnP9S3tQOvSNRUIgVNF/1yPpRAGNRig==", + "license": "MIT", "engines": { "node": ">=14.16" }, @@ -1907,6 +1984,7 @@ "version": "5.0.1", "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz", "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "license": "MIT", "peer": true, "engines": { "node": ">=8" @@ -1917,6 +1995,7 @@ "resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, + "license": "MIT", "dependencies": { "color-convert": "^1.9.0" }, @@ -1924,38 +2003,18 @@ "node": ">=4" } }, - "node_modules/anymatch": { - "version": "3.1.3", - "resolved": "https://registry.npmmirror.com/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", - "dev": true, - "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - }, - "engines": { - "node": ">= 8" - } - }, "node_modules/argparse": { "version": "2.0.1", "resolved": "https://registry.npmmirror.com/argparse/-/argparse-2.0.1.tgz", "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "license": "Python-2.0", "peer": true }, - "node_modules/array-union": { - "version": "2.1.0", - "resolved": "https://registry.npmmirror.com/array-union/-/array-union-2.1.0.tgz", - "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", - "peer": true, - "engines": { - "node": ">=8" - } - }, "node_modules/auto-bind": { "version": "5.0.1", "resolved": "https://registry.npmmirror.com/auto-bind/-/auto-bind-5.0.1.tgz", "integrity": "sha512-ooviqdwwgfIfNmDwo94wlshcdzfO64XV0Cg6oDsDYBJfITDz1EngD2z7DkbvCWn+XIMsIqW27sEVF6qcpJrRcg==", + "license": "MIT", "engines": { "node": "^12.20.0 || ^14.13.1 || >=16.0.0" }, @@ -1966,24 +2025,14 @@ "node_modules/balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmmirror.com/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" - }, - "node_modules/binary-extensions": { - "version": "2.3.0", - "resolved": "https://registry.npmmirror.com/binary-extensions/-/binary-extensions-2.3.0.tgz", - "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "license": "MIT" }, "node_modules/brace-expansion": { "version": "2.0.1", "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-2.0.1.tgz", "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "license": "MIT", "dependencies": { "balanced-match": "^1.0.0" } @@ -1992,6 +2041,8 @@ "version": "3.0.3", "resolved": "https://registry.npmmirror.com/braces/-/braces-3.0.3.tgz", "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "license": "MIT", + "peer": true, "dependencies": { "fill-range": "^7.1.1" }, @@ -2000,9 +2051,9 @@ } }, "node_modules/browserslist": { - "version": "4.23.2", - "resolved": "https://registry.npmmirror.com/browserslist/-/browserslist-4.23.2.tgz", - "integrity": "sha512-qkqSyistMYdxAcw+CzbZwlBy8AGmS/eEWs+sEV5TnLRGDOL+C5M2EnH6tlZyg0YoAxGJAFKh61En9BR941GnHA==", + "version": "4.23.3", + "resolved": "https://registry.npmmirror.com/browserslist/-/browserslist-4.23.3.tgz", + "integrity": "sha512-btwCFJVjI4YWDNfau8RhZ+B1Q/VLoUITrm3RlP6y1tYGWIOa+InuYiRGXUBXo8nA1qKmHMyLB/iVQg5TT4eFoA==", "dev": true, "funding": [ { @@ -2018,10 +2069,11 @@ "url": "https://github.com/sponsors/ai" } ], + "license": "MIT", "dependencies": { - "caniuse-lite": "^1.0.30001640", - "electron-to-chromium": "^1.4.820", - "node-releases": "^2.0.14", + "caniuse-lite": "^1.0.30001646", + "electron-to-chromium": "^1.5.4", + "node-releases": "^2.0.18", "update-browserslist-db": "^1.1.0" }, "bin": { @@ -2035,27 +2087,16 @@ "version": "3.1.0", "resolved": "https://registry.npmmirror.com/callsites/-/callsites-3.1.0.tgz", "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "license": "MIT", "peer": true, "engines": { "node": ">=6" } }, - "node_modules/camelcase": { - "version": "6.3.0", - "resolved": "https://registry.npmmirror.com/camelcase/-/camelcase-6.3.0.tgz", - "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/caniuse-lite": { - "version": "1.0.30001642", - "resolved": "https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001642.tgz", - "integrity": "sha512-3XQ0DoRgLijXJErLSl+bLnJ+Et4KqV1PY6JJBGAFlsNsz31zeAIncyeZfLCabHK/jtSh+671RM9YMldxjUPZtA==", + "version": "1.0.30001660", + "resolved": "https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001660.tgz", + "integrity": "sha512-GacvNTTuATm26qC74pt+ad1fW15mlQ/zuTzzY1ZoIzECTP8HURDfF43kNxPgf7H1jmelCBQTTbBNxdSXOA7Bqg==", "dev": true, "funding": [ { @@ -2070,13 +2111,15 @@ "type": "github", "url": "https://github.com/sponsors/ai" } - ] + ], + "license": "CC-BY-4.0" }, "node_modules/chalk": { "version": "2.4.2", "resolved": "https://registry.npmmirror.com/chalk/-/chalk-2.4.2.tgz", "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^3.2.1", "escape-string-regexp": "^1.0.5", @@ -2087,27 +2130,19 @@ } }, "node_modules/chokidar": { - "version": "3.6.0", - "resolved": "https://registry.npmmirror.com/chokidar/-/chokidar-3.6.0.tgz", - "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/chokidar/-/chokidar-4.0.0.tgz", + "integrity": "sha512-mxIojEAQcuEvT/lyXq+jf/3cO/KoA6z4CeNDGGevTybECPOMFCnQy3OPahluUkbqgPNGw5Bi78UC7Po6Lhy+NA==", "dev": true, + "license": "MIT", "dependencies": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" + "readdirp": "^4.0.1" }, "engines": { - "node": ">= 8.10.0" + "node": ">= 14.16.0" }, "funding": { "url": "https://paulmillr.com/funding/" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" } }, "node_modules/ci-info": { @@ -2120,6 +2155,7 @@ "url": "https://github.com/sponsors/sibiraj-s" } ], + "license": "MIT", "engines": { "node": ">=8" } @@ -2128,6 +2164,7 @@ "version": "3.0.0", "resolved": "https://registry.npmmirror.com/cli-boxes/-/cli-boxes-3.0.0.tgz", "integrity": "sha512-/lzGpEWL/8PfI0BmBOPRwp0c/wFNX1RdUML3jK/RcSBA9T8mZDdQpqYBKtCFTOfQbwPqWEOpjqW+Fnayc0969g==", + "license": "MIT", "engines": { "node": ">=10" }, @@ -2139,6 +2176,7 @@ "version": "4.0.0", "resolved": "https://registry.npmmirror.com/cli-cursor/-/cli-cursor-4.0.0.tgz", "integrity": "sha512-VGtlMu3x/4DOtIUwEkRezxUZ2lBacNJCHash0N0WeZDBS+7Ux1dm3XWAgWYxLJFMMdOeXMHXorshEFhbMSGelg==", + "license": "MIT", "dependencies": { "restore-cursor": "^4.0.0" }, @@ -2153,6 +2191,7 @@ "version": "2.9.2", "resolved": "https://registry.npmmirror.com/cli-spinners/-/cli-spinners-2.9.2.tgz", "integrity": "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==", + "license": "MIT", "engines": { "node": ">=6" }, @@ -2164,6 +2203,7 @@ "version": "3.1.0", "resolved": "https://registry.npmmirror.com/cli-truncate/-/cli-truncate-3.1.0.tgz", "integrity": "sha512-wfOBkjXteqSnI59oPcJkcPl/ZmwvMMOj340qUIY1SKZCv0B9Cf4D4fAucRkIKQmsIuYK3x1rrgU7MeGRruiuiA==", + "license": "MIT", "dependencies": { "slice-ansi": "^5.0.0", "string-width": "^5.0.0" @@ -2179,6 +2219,7 @@ "version": "6.2.1", "resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-6.2.1.tgz", "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "license": "MIT", "engines": { "node": ">=12" }, @@ -2190,6 +2231,7 @@ "version": "5.0.0", "resolved": "https://registry.npmmirror.com/slice-ansi/-/slice-ansi-5.0.0.tgz", "integrity": "sha512-FC+lgizVPfie0kkhqUScwRu1O/lF6NOgJmlCgK+/LYxDCTk8sGelYaHDhFcDN+Sn3Cv+3VSa4Byeo+IMCzpMgQ==", + "license": "MIT", "dependencies": { "ansi-styles": "^6.0.0", "is-fullwidth-code-point": "^4.0.0" @@ -2205,6 +2247,7 @@ "version": "4.0.0", "resolved": "https://registry.npmmirror.com/code-excerpt/-/code-excerpt-4.0.0.tgz", "integrity": "sha512-xxodCmBen3iy2i0WtAK8FlFNrRzjUqjRsMfho58xT/wvZU1YTM3fCnRjcy1gJPMepaRlgm/0e6w8SpWHpn3/cA==", + "license": "MIT", "dependencies": { "convert-to-spaces": "^2.0.1" }, @@ -2217,6 +2260,7 @@ "resolved": "https://registry.npmmirror.com/color-convert/-/color-convert-1.9.3.tgz", "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", "dev": true, + "license": "MIT", "dependencies": { "color-name": "1.1.3" } @@ -2225,12 +2269,14 @@ "version": "1.1.3", "resolved": "https://registry.npmmirror.com/color-name/-/color-name-1.1.3.tgz", "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/commander": { "version": "11.1.0", "resolved": "https://registry.npmmirror.com/commander/-/commander-11.1.0.tgz", "integrity": "sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==", + "license": "MIT", "engines": { "node": ">=16" } @@ -2239,24 +2285,28 @@ "version": "0.0.1", "resolved": "https://registry.npmmirror.com/computeds/-/computeds-0.0.1.tgz", "integrity": "sha512-7CEBgcMjVmitjYo5q8JTJVra6X5mQ20uTThdK+0kR7UEaDrAWEQcRiBtWJzga4eRpP6afNwwLsX2SET2JhVB1Q==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmmirror.com/concat-map/-/concat-map-0.0.1.tgz", "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "license": "MIT", "peer": true }, "node_modules/convert-source-map": { "version": "2.0.0", "resolved": "https://registry.npmmirror.com/convert-source-map/-/convert-source-map-2.0.0.tgz", "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/convert-to-spaces": { "version": "2.0.1", "resolved": "https://registry.npmmirror.com/convert-to-spaces/-/convert-to-spaces-2.0.1.tgz", "integrity": "sha512-rcQ1bsQO9799wq24uE5AM2tAILy4gXGIK/njFWcVQkGNZ96edlpY+A7bjwvzjYvLDyzmG1MmMLZhpcsb+klNMQ==", + "license": "MIT", "engines": { "node": "^12.20.0 || ^14.13.1 || >=16.0.0" } @@ -2265,6 +2315,7 @@ "version": "7.0.3", "resolved": "https://registry.npmmirror.com/cross-spawn/-/cross-spawn-7.0.3.tgz", "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "license": "MIT", "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", @@ -2277,20 +2328,23 @@ "node_modules/csstype": { "version": "3.1.3", "resolved": "https://registry.npmmirror.com/csstype/-/csstype-3.1.3.tgz", - "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==" + "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==", + "license": "MIT" }, "node_modules/de-indent": { "version": "1.0.2", "resolved": "https://registry.npmmirror.com/de-indent/-/de-indent-1.0.2.tgz", "integrity": "sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/debug": { - "version": "4.3.5", - "resolved": "https://registry.npmmirror.com/debug/-/debug-4.3.5.tgz", - "integrity": "sha512-pt0bNEmneDIvdL1Xsd9oDQ/wrQRkXDT4AUWlNZNPKvW5x/jyO9VFXkJUP07vQ2upmw5PlaITaPKc31jK13V+jg==", + "version": "4.3.7", + "resolved": "https://registry.npmmirror.com/debug/-/debug-4.3.7.tgz", + "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", + "license": "MIT", "dependencies": { - "ms": "2.1.2" + "ms": "^2.1.3" }, "engines": { "node": ">=6.0" @@ -2305,6 +2359,7 @@ "version": "1.5.3", "resolved": "https://registry.npmmirror.com/dedent/-/dedent-1.5.3.tgz", "integrity": "sha512-NHQtfOOW68WD8lgypbLA5oT+Bt0xXJhiYvoR6SmmNXZfpzOGXwdKWmcwG8N7PwVVWV3eF/68nmD9BaJSsTBhyQ==", + "license": "MIT", "peerDependencies": { "babel-plugin-macros": "^3.1.0" }, @@ -2318,52 +2373,33 @@ "version": "0.1.4", "resolved": "https://registry.npmmirror.com/deep-is/-/deep-is-0.1.4.tgz", "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "license": "MIT", "peer": true }, - "node_modules/dir-glob": { - "version": "3.0.1", - "resolved": "https://registry.npmmirror.com/dir-glob/-/dir-glob-3.0.1.tgz", - "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", - "peer": true, - "dependencies": { - "path-type": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/doctrine": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", - "peer": true, - "dependencies": { - "esutils": "^2.0.2" - }, - "engines": { - "node": ">=6.0.0" - } - }, "node_modules/eastasianwidth": { "version": "0.2.0", "resolved": "https://registry.npmmirror.com/eastasianwidth/-/eastasianwidth-0.2.0.tgz", - "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==" + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", + "license": "MIT" }, "node_modules/electron-to-chromium": { - "version": "1.4.829", - "resolved": "https://registry.npmmirror.com/electron-to-chromium/-/electron-to-chromium-1.4.829.tgz", - "integrity": "sha512-5qp1N2POAfW0u1qGAxXEtz6P7bO1m6gpZr5hdf5ve6lxpLM7MpiM4jIPz7xcrNlClQMafbyUDDWjlIQZ1Mw0Rw==", - "dev": true + "version": "1.5.25", + "resolved": "https://registry.npmmirror.com/electron-to-chromium/-/electron-to-chromium-1.5.25.tgz", + "integrity": "sha512-kMb204zvK3PsSlgvvwzI3wBIcAw15tRkYk+NQdsjdDtcQWTp2RABbMQ9rUBy8KNEOM+/E6ep+XC3AykiWZld4g==", + "dev": true, + "license": "ISC" }, "node_modules/emoji-regex": { "version": "9.2.2", "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==" + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "license": "MIT" }, "node_modules/entities": { "version": "4.5.0", "resolved": "https://registry.npmmirror.com/entities/-/entities-4.5.0.tgz", "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", + "license": "BSD-2-Clause", "engines": { "node": ">=0.12" }, @@ -2377,6 +2413,7 @@ "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==", "dev": true, "hasInstallScript": true, + "license": "MIT", "bin": { "esbuild": "bin/esbuild" }, @@ -2410,10 +2447,11 @@ } }, "node_modules/escalade": { - "version": "3.1.2", - "resolved": "https://registry.npmmirror.com/escalade/-/escalade-3.1.2.tgz", - "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", + "version": "3.2.0", + "resolved": "https://registry.npmmirror.com/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } @@ -2423,48 +2461,46 @@ "resolved": "https://registry.npmmirror.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.8.0" } }, "node_modules/eslint": { - "version": "8.57.0", - "resolved": "https://registry.npmmirror.com/eslint/-/eslint-8.57.0.tgz", - "integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==", + "version": "9.10.0", + "resolved": "https://registry.npmmirror.com/eslint/-/eslint-9.10.0.tgz", + "integrity": "sha512-Y4D0IgtBZfOcOUAIQTSXBKoNGfY0REGqHJG6+Q81vNippW5YlKjHFj4soMxamKK1NXHUWuBZTLdU3Km+L/pcHw==", + "license": "MIT", "peer": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.6.1", - "@eslint/eslintrc": "^2.1.4", - "@eslint/js": "8.57.0", - "@humanwhocodes/config-array": "^0.11.14", + "@eslint-community/regexpp": "^4.11.0", + "@eslint/config-array": "^0.18.0", + "@eslint/eslintrc": "^3.1.0", + "@eslint/js": "9.10.0", + "@eslint/plugin-kit": "^0.1.0", "@humanwhocodes/module-importer": "^1.0.1", + "@humanwhocodes/retry": "^0.3.0", "@nodelib/fs.walk": "^1.2.8", - "@ungap/structured-clone": "^1.2.0", "ajv": "^6.12.4", "chalk": "^4.0.0", "cross-spawn": "^7.0.2", "debug": "^4.3.2", - "doctrine": "^3.0.0", "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.2.2", - "eslint-visitor-keys": "^3.4.3", - "espree": "^9.6.1", - "esquery": "^1.4.2", + "eslint-scope": "^8.0.2", + "eslint-visitor-keys": "^4.0.0", + "espree": "^10.1.0", + "esquery": "^1.5.0", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", + "file-entry-cache": "^8.0.0", "find-up": "^5.0.0", "glob-parent": "^6.0.2", - "globals": "^13.19.0", - "graphemer": "^1.4.0", "ignore": "^5.2.0", "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", "is-path-inside": "^3.0.3", - "js-yaml": "^4.1.0", "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", "lodash.merge": "^4.6.2", "minimatch": "^3.1.2", "natural-compare": "^1.4.0", @@ -2476,16 +2512,25 @@ "eslint": "bin/eslint.js" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { - "url": "https://opencollective.com/eslint" + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "jiti": "*" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + } } }, "node_modules/eslint-plugin-neverthrow": { "version": "1.1.4", "resolved": "https://registry.npmmirror.com/eslint-plugin-neverthrow/-/eslint-plugin-neverthrow-1.1.4.tgz", "integrity": "sha512-+8zsE5rDqsDfKYAOq0Fr2jbuxHXTmntIWWJqJA3ms1GAKcVCjl0ycetzOu/hTxot9ctr+WYQpCBgB3F2HATR7A==", + "license": "MIT", "dependencies": { "@types/eslint-utils": "^3.0.0", "eslint-utils": "3.0.0", @@ -2500,16 +2545,17 @@ } }, "node_modules/eslint-scope": { - "version": "7.2.2", - "resolved": "https://registry.npmmirror.com/eslint-scope/-/eslint-scope-7.2.2.tgz", - "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", + "version": "8.0.2", + "resolved": "https://registry.npmmirror.com/eslint-scope/-/eslint-scope-8.0.2.tgz", + "integrity": "sha512-6E4xmrTw5wtxnLA5wYL3WDfhZ/1bUBGOXV0zQvVRDOtrR8D0p6W7fs3JweNYhwRYeGvd/1CKX2se0/2s7Q/nJA==", + "license": "BSD-2-Clause", "peer": true, "dependencies": { "esrecurse": "^4.3.0", "estraverse": "^5.2.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "url": "https://opencollective.com/eslint" @@ -2519,6 +2565,7 @@ "version": "3.0.0", "resolved": "https://registry.npmmirror.com/eslint-utils/-/eslint-utils-3.0.0.tgz", "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", + "license": "MIT", "dependencies": { "eslint-visitor-keys": "^2.0.0" }, @@ -2536,6 +2583,7 @@ "version": "2.1.0", "resolved": "https://registry.npmmirror.com/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", + "license": "Apache-2.0", "engines": { "node": ">=10" } @@ -2544,6 +2592,7 @@ "version": "3.4.3", "resolved": "https://registry.npmmirror.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "license": "Apache-2.0", "peer": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -2556,6 +2605,7 @@ "version": "4.3.0", "resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "license": "MIT", "peer": true, "dependencies": { "color-convert": "^2.0.1" @@ -2571,6 +2621,7 @@ "version": "1.1.11", "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "license": "MIT", "peer": true, "dependencies": { "balanced-match": "^1.0.0", @@ -2581,6 +2632,7 @@ "version": "4.1.2", "resolved": "https://registry.npmmirror.com/chalk/-/chalk-4.1.2.tgz", "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "license": "MIT", "peer": true, "dependencies": { "ansi-styles": "^4.1.0", @@ -2597,6 +2649,7 @@ "version": "2.0.1", "resolved": "https://registry.npmmirror.com/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "license": "MIT", "peer": true, "dependencies": { "color-name": "~1.1.4" @@ -2609,12 +2662,14 @@ "version": "1.1.4", "resolved": "https://registry.npmmirror.com/color-name/-/color-name-1.1.4.tgz", "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "license": "MIT", "peer": true }, "node_modules/eslint/node_modules/escape-string-regexp": { "version": "4.0.0", "resolved": "https://registry.npmmirror.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "license": "MIT", "peer": true, "engines": { "node": ">=10" @@ -2623,37 +2678,24 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/eslint/node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmmirror.com/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "peer": true, - "dependencies": { - "is-glob": "^4.0.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/eslint/node_modules/globals": { - "version": "13.24.0", - "resolved": "https://registry.npmmirror.com/globals/-/globals-13.24.0.tgz", - "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", + "node_modules/eslint/node_modules/eslint-visitor-keys": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/eslint-visitor-keys/-/eslint-visitor-keys-4.0.0.tgz", + "integrity": "sha512-OtIRv/2GyiF6o/d8K7MYKKbXrOUBIK6SfkIRM4Z0dY3w+LiQ0vy3F57m0Z71bjbyeiWFiHJ8brqnmE6H6/jEuw==", + "license": "Apache-2.0", "peer": true, - "dependencies": { - "type-fest": "^0.20.2" - }, "engines": { - "node": ">=8" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://opencollective.com/eslint" } }, "node_modules/eslint/node_modules/has-flag": { "version": "4.0.0", "resolved": "https://registry.npmmirror.com/has-flag/-/has-flag-4.0.0.tgz", "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "license": "MIT", "peer": true, "engines": { "node": ">=8" @@ -2663,6 +2705,7 @@ "version": "3.1.2", "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-3.1.2.tgz", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "license": "ISC", "peer": true, "dependencies": { "brace-expansion": "^1.1.7" @@ -2675,6 +2718,7 @@ "version": "7.2.0", "resolved": "https://registry.npmmirror.com/supports-color/-/supports-color-7.2.0.tgz", "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "license": "MIT", "peer": true, "dependencies": { "has-flag": "^4.0.0" @@ -2683,30 +2727,32 @@ "node": ">=8" } }, - "node_modules/eslint/node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmmirror.com/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "node_modules/espree": { + "version": "10.1.0", + "resolved": "https://registry.npmmirror.com/espree/-/espree-10.1.0.tgz", + "integrity": "sha512-M1M6CpiE6ffoigIOWYO9UDP8TMUw9kqb21tf+08IgDYjCsOvCuDt4jQcZmoYxx+w7zlKw9/N0KXfto+I8/FrXA==", + "license": "BSD-2-Clause", "peer": true, + "dependencies": { + "acorn": "^8.12.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^4.0.0" + }, "engines": { - "node": ">=10" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://opencollective.com/eslint" } }, - "node_modules/espree": { - "version": "9.6.1", - "resolved": "https://registry.npmmirror.com/espree/-/espree-9.6.1.tgz", - "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", + "node_modules/espree/node_modules/eslint-visitor-keys": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/eslint-visitor-keys/-/eslint-visitor-keys-4.0.0.tgz", + "integrity": "sha512-OtIRv/2GyiF6o/d8K7MYKKbXrOUBIK6SfkIRM4Z0dY3w+LiQ0vy3F57m0Z71bjbyeiWFiHJ8brqnmE6H6/jEuw==", + "license": "Apache-2.0", "peer": true, - "dependencies": { - "acorn": "^8.9.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.4.1" - }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "url": "https://opencollective.com/eslint" @@ -2716,6 +2762,7 @@ "version": "1.6.0", "resolved": "https://registry.npmmirror.com/esquery/-/esquery-1.6.0.tgz", "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", + "license": "BSD-3-Clause", "peer": true, "dependencies": { "estraverse": "^5.1.0" @@ -2728,6 +2775,7 @@ "version": "4.3.0", "resolved": "https://registry.npmmirror.com/esrecurse/-/esrecurse-4.3.0.tgz", "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "license": "BSD-2-Clause", "peer": true, "dependencies": { "estraverse": "^5.2.0" @@ -2740,6 +2788,7 @@ "version": "5.3.0", "resolved": "https://registry.npmmirror.com/estraverse/-/estraverse-5.3.0.tgz", "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "license": "BSD-2-Clause", "peer": true, "engines": { "node": ">=4.0" @@ -2748,21 +2797,24 @@ "node_modules/estree-walker": { "version": "2.0.2", "resolved": "https://registry.npmmirror.com/estree-walker/-/estree-walker-2.0.2.tgz", - "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==" + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", + "license": "MIT" }, "node_modules/esutils": { "version": "2.0.3", "resolved": "https://registry.npmmirror.com/esutils/-/esutils-2.0.3.tgz", "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "license": "BSD-2-Clause", "peer": true, "engines": { "node": ">=0.10.0" } }, "node_modules/eta": { - "version": "3.4.0", - "resolved": "https://registry.npmmirror.com/eta/-/eta-3.4.0.tgz", - "integrity": "sha512-tCsc7WXTjrTx4ZjYLplcqrI3o4mYJ+Z6YspeuGL8tbt/hHoMchwBwtKfwM09svEY86iRapY93vUqQttcNuIO5Q==", + "version": "3.5.0", + "resolved": "https://registry.npmmirror.com/eta/-/eta-3.5.0.tgz", + "integrity": "sha512-e3x3FBvGzeCIHhF+zhK8FZA2vC5uFn6b4HJjegUbIWrDb4mJ7JjTGMJY9VGIbRVpmSwHopNiaJibhjIr+HfLug==", + "license": "MIT", "engines": { "node": ">=6.0.0" }, @@ -2774,12 +2826,14 @@ "version": "3.1.3", "resolved": "https://registry.npmmirror.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "license": "MIT", "peer": true }, "node_modules/fast-glob": { "version": "3.3.2", "resolved": "https://registry.npmmirror.com/fast-glob/-/fast-glob-3.3.2.tgz", "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", + "license": "MIT", "peer": true, "dependencies": { "@nodelib/fs.stat": "^2.0.2", @@ -2792,22 +2846,38 @@ "node": ">=8.6.0" } }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmmirror.com/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "license": "ISC", + "peer": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/fast-json-stable-stringify": { "version": "2.1.0", "resolved": "https://registry.npmmirror.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "license": "MIT", "peer": true }, "node_modules/fast-levenshtein": { "version": "2.0.6", "resolved": "https://registry.npmmirror.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "license": "MIT", "peer": true }, "node_modules/fastq": { "version": "1.17.1", "resolved": "https://registry.npmmirror.com/fastq/-/fastq-1.17.1.tgz", "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", + "license": "ISC", "peer": true, "dependencies": { "reusify": "^1.0.4" @@ -2817,6 +2887,7 @@ "version": "5.0.0", "resolved": "https://registry.npmmirror.com/figures/-/figures-5.0.0.tgz", "integrity": "sha512-ej8ksPF4x6e5wvK9yevct0UCXh8TTFlWGVLlgjZuoBH1HwjIfKE/IdL5mq89sFA7zELi1VhKpmtDnrs7zWyeyg==", + "license": "MIT", "dependencies": { "escape-string-regexp": "^5.0.0", "is-unicode-supported": "^1.2.0" @@ -2832,6 +2903,7 @@ "version": "5.0.0", "resolved": "https://registry.npmmirror.com/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz", "integrity": "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==", + "license": "MIT", "engines": { "node": ">=12" }, @@ -2840,21 +2912,24 @@ } }, "node_modules/file-entry-cache": { - "version": "6.0.1", - "resolved": "https://registry.npmmirror.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz", - "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "version": "8.0.0", + "resolved": "https://registry.npmmirror.com/file-entry-cache/-/file-entry-cache-8.0.0.tgz", + "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", + "license": "MIT", "peer": true, "dependencies": { - "flat-cache": "^3.0.4" + "flat-cache": "^4.0.0" }, "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": ">=16.0.0" } }, "node_modules/fill-range": { "version": "7.1.1", "resolved": "https://registry.npmmirror.com/fill-range/-/fill-range-7.1.1.tgz", "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "license": "MIT", + "peer": true, "dependencies": { "to-regex-range": "^5.0.1" }, @@ -2866,6 +2941,7 @@ "version": "5.0.0", "resolved": "https://registry.npmmirror.com/find-up/-/find-up-5.0.0.tgz", "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "license": "MIT", "peer": true, "dependencies": { "locate-path": "^6.0.0", @@ -2879,29 +2955,31 @@ } }, "node_modules/flat-cache": { - "version": "3.2.0", - "resolved": "https://registry.npmmirror.com/flat-cache/-/flat-cache-3.2.0.tgz", - "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", + "version": "4.0.1", + "resolved": "https://registry.npmmirror.com/flat-cache/-/flat-cache-4.0.1.tgz", + "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", + "license": "MIT", "peer": true, "dependencies": { "flatted": "^3.2.9", - "keyv": "^4.5.3", - "rimraf": "^3.0.2" + "keyv": "^4.5.4" }, "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": ">=16" } }, "node_modules/flatted": { "version": "3.3.1", "resolved": "https://registry.npmmirror.com/flatted/-/flatted-3.3.1.tgz", "integrity": "sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==", + "license": "ISC", "peer": true }, "node_modules/fs-extra": { "version": "11.2.0", "resolved": "https://registry.npmmirror.com/fs-extra/-/fs-extra-11.2.0.tgz", "integrity": "sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==", + "license": "MIT", "dependencies": { "graceful-fs": "^4.2.0", "jsonfile": "^6.0.1", @@ -2911,18 +2989,13 @@ "node": ">=14.14" } }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "peer": true - }, "node_modules/fsevents": { "version": "2.3.3", "resolved": "https://registry.npmmirror.com/fsevents/-/fsevents-2.3.3.tgz", "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", "dev": true, "hasInstallScript": true, + "license": "MIT", "optional": true, "os": [ "darwin" @@ -2936,62 +3009,22 @@ "resolved": "https://registry.npmmirror.com/gensync/-/gensync-1.0.0-beta.2.tgz", "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.9.0" } }, - "node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmmirror.com/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "deprecated": "Glob versions prior to v9 are no longer supported", - "peer": true, - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmmirror.com/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/glob/node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "peer": true, - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/glob/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "version": "6.0.2", + "resolved": "https://registry.npmmirror.com/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "license": "ISC", "peer": true, "dependencies": { - "brace-expansion": "^1.1.7" + "is-glob": "^4.0.3" }, "engines": { - "node": "*" + "node": ">=10.13.0" } }, "node_modules/globals": { @@ -2999,46 +3032,23 @@ "resolved": "https://registry.npmmirror.com/globals/-/globals-11.12.0.tgz", "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", "dev": true, + "license": "MIT", "engines": { "node": ">=4" } }, - "node_modules/globby": { - "version": "11.1.0", - "resolved": "https://registry.npmmirror.com/globby/-/globby-11.1.0.tgz", - "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", - "peer": true, - "dependencies": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.9", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/graceful-fs": { "version": "4.2.11", "resolved": "https://registry.npmmirror.com/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" - }, - "node_modules/graphemer": { - "version": "1.4.0", - "resolved": "https://registry.npmmirror.com/graphemer/-/graphemer-1.4.0.tgz", - "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", - "peer": true + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "license": "ISC" }, "node_modules/has-flag": { "version": "3.0.0", "resolved": "https://registry.npmmirror.com/has-flag/-/has-flag-3.0.0.tgz", "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", "dev": true, + "license": "MIT", "engines": { "node": ">=4" } @@ -3048,6 +3058,7 @@ "resolved": "https://registry.npmmirror.com/he/-/he-1.2.0.tgz", "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", "dev": true, + "license": "MIT", "bin": { "he": "bin/he" } @@ -3055,13 +3066,15 @@ "node_modules/howler": { "version": "2.2.4", "resolved": "https://registry.npmmirror.com/howler/-/howler-2.2.4.tgz", - "integrity": "sha512-iARIBPgcQrwtEr+tALF+rapJ8qSc+Set2GJQl7xT1MQzWaVkFebdJhR3alVlSiUf5U7nAANKuj3aWpwerocD5w==" + "integrity": "sha512-iARIBPgcQrwtEr+tALF+rapJ8qSc+Set2GJQl7xT1MQzWaVkFebdJhR3alVlSiUf5U7nAANKuj3aWpwerocD5w==", + "license": "MIT" }, "node_modules/html-tags": { "version": "3.3.1", "resolved": "https://registry.npmmirror.com/html-tags/-/html-tags-3.3.1.tgz", "integrity": "sha512-ztqyC3kLto0e9WbNp0aeP+M3kTt+nbaIveGmUxAtZa+8iFgKLUOD4YKM5j+f3QD89bra7UeumolZHKuOXnTmeQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" }, @@ -3070,24 +3083,27 @@ } }, "node_modules/ignore": { - "version": "5.3.1", - "resolved": "https://registry.npmmirror.com/ignore/-/ignore-5.3.1.tgz", - "integrity": "sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==", + "version": "5.3.2", + "resolved": "https://registry.npmmirror.com/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "license": "MIT", "peer": true, "engines": { "node": ">= 4" } }, "node_modules/immutable": { - "version": "4.3.6", - "resolved": "https://registry.npmmirror.com/immutable/-/immutable-4.3.6.tgz", - "integrity": "sha512-Ju0+lEMyzMVZarkTn/gqRpdqd5dOPaz1mCZ0SH3JV6iFw81PldE/PEB1hWVEA288HPt4WXW8O7AWxB10M+03QQ==", - "dev": true + "version": "4.3.7", + "resolved": "https://registry.npmmirror.com/immutable/-/immutable-4.3.7.tgz", + "integrity": "sha512-1hqclzwYwjRDFLjcFxOM5AYkkG0rpFPpr1RLPMEuGczoS7YA8gLhy8SWXYRAA/XwfEHpfo3cw5JGioS32fnMRw==", + "dev": true, + "license": "MIT" }, "node_modules/import-fresh": { "version": "3.3.0", "resolved": "https://registry.npmmirror.com/import-fresh/-/import-fresh-3.3.0.tgz", "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "license": "MIT", "peer": true, "dependencies": { "parent-module": "^1.0.0", @@ -3104,6 +3120,7 @@ "version": "0.1.4", "resolved": "https://registry.npmmirror.com/imurmurhash/-/imurmurhash-0.1.4.tgz", "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "license": "MIT", "peer": true, "engines": { "node": ">=0.8.19" @@ -3113,6 +3130,7 @@ "version": "5.0.0", "resolved": "https://registry.npmmirror.com/indent-string/-/indent-string-5.0.0.tgz", "integrity": "sha512-m6FAo/spmsW2Ab2fU35JTYwtOKa2yAwXSwgjSv1TJzh4Mh7mC3lzAOVLBprb72XsTrgkEIsl7YrFNAiDiRhIGg==", + "license": "MIT", "engines": { "node": ">=12" }, @@ -3120,27 +3138,11 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmmirror.com/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", - "peer": true, - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmmirror.com/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "peer": true - }, "node_modules/ink": { "version": "4.4.1", "resolved": "https://registry.npmmirror.com/ink/-/ink-4.4.1.tgz", "integrity": "sha512-rXckvqPBB0Krifk5rn/5LvQGmyXwCUpBfmTwbkQNBY9JY8RSl3b8OftBNEYxg4+SWUhEKcPifgope28uL9inlA==", + "license": "MIT", "dependencies": { "@alcalzone/ansi-tokenize": "^0.1.3", "ansi-escapes": "^6.0.0", @@ -3189,6 +3191,7 @@ "version": "5.0.0", "resolved": "https://registry.npmmirror.com/ink-spinner/-/ink-spinner-5.0.0.tgz", "integrity": "sha512-EYEasbEjkqLGyPOUc8hBJZNuC5GvXGMLu0w5gdTNskPc7Izc5vO3tdQEYnzvshucyGCBXc86ig0ujXPMWaQCdA==", + "license": "MIT", "dependencies": { "cli-spinners": "^2.7.0" }, @@ -3204,6 +3207,7 @@ "version": "5.3.0", "resolved": "https://registry.npmmirror.com/chalk/-/chalk-5.3.0.tgz", "integrity": "sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==", + "license": "MIT", "engines": { "node": "^12.17.0 || ^14.13 || >=16.0.0" }, @@ -3211,22 +3215,11 @@ "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmmirror.com/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "dev": true, - "dependencies": { - "binary-extensions": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/is-ci": { "version": "3.0.1", "resolved": "https://registry.npmmirror.com/is-ci/-/is-ci-3.0.1.tgz", "integrity": "sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ==", + "license": "MIT", "dependencies": { "ci-info": "^3.2.0" }, @@ -3238,6 +3231,8 @@ "version": "2.1.1", "resolved": "https://registry.npmmirror.com/is-extglob/-/is-extglob-2.1.1.tgz", "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "license": "MIT", + "peer": true, "engines": { "node": ">=0.10.0" } @@ -3246,6 +3241,7 @@ "version": "4.0.0", "resolved": "https://registry.npmmirror.com/is-fullwidth-code-point/-/is-fullwidth-code-point-4.0.0.tgz", "integrity": "sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ==", + "license": "MIT", "engines": { "node": ">=12" }, @@ -3257,6 +3253,8 @@ "version": "4.0.3", "resolved": "https://registry.npmmirror.com/is-glob/-/is-glob-4.0.3.tgz", "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "license": "MIT", + "peer": true, "dependencies": { "is-extglob": "^2.1.1" }, @@ -3268,6 +3266,7 @@ "version": "2.0.2", "resolved": "https://registry.npmmirror.com/is-lower-case/-/is-lower-case-2.0.2.tgz", "integrity": "sha512-bVcMJy4X5Og6VZfdOZstSexlEy20Sr0k/p/b2IlQJlfdKAQuMpiv5w2Ccxb8sKdRUNAG1PnHVHjFSdRDVS6NlQ==", + "license": "MIT", "dependencies": { "tslib": "^2.0.3" } @@ -3276,6 +3275,8 @@ "version": "7.0.0", "resolved": "https://registry.npmmirror.com/is-number/-/is-number-7.0.0.tgz", "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "license": "MIT", + "peer": true, "engines": { "node": ">=0.12.0" } @@ -3284,6 +3285,7 @@ "version": "3.0.3", "resolved": "https://registry.npmmirror.com/is-path-inside/-/is-path-inside-3.0.3.tgz", "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "license": "MIT", "peer": true, "engines": { "node": ">=8" @@ -3293,6 +3295,7 @@ "version": "1.3.0", "resolved": "https://registry.npmmirror.com/is-unicode-supported/-/is-unicode-supported-1.3.0.tgz", "integrity": "sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ==", + "license": "MIT", "engines": { "node": ">=12" }, @@ -3304,6 +3307,7 @@ "version": "2.0.2", "resolved": "https://registry.npmmirror.com/is-upper-case/-/is-upper-case-2.0.2.tgz", "integrity": "sha512-44pxmxAvnnAOwBg4tHPnkfvgjPwbc5QIsSstNU+YcJ1ovxVzCWpSGosPJOZh/a1tdl81fbgnLc9LLv+x2ywbPQ==", + "license": "MIT", "dependencies": { "tslib": "^2.0.3" } @@ -3311,17 +3315,20 @@ "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmmirror.com/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "license": "ISC" }, "node_modules/js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmmirror.com/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "license": "MIT" }, "node_modules/js-yaml": { "version": "4.1.0", "resolved": "https://registry.npmmirror.com/js-yaml/-/js-yaml-4.1.0.tgz", "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "license": "MIT", "peer": true, "dependencies": { "argparse": "^2.0.1" @@ -3335,6 +3342,7 @@ "resolved": "https://registry.npmmirror.com/jsesc/-/jsesc-2.5.2.tgz", "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", "dev": true, + "license": "MIT", "bin": { "jsesc": "bin/jsesc" }, @@ -3346,6 +3354,7 @@ "version": "3.0.1", "resolved": "https://registry.npmmirror.com/json-buffer/-/json-buffer-3.0.1.tgz", "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "license": "MIT", "peer": true }, "node_modules/json-parse-even-better-errors": { @@ -3353,6 +3362,7 @@ "resolved": "https://registry.npmmirror.com/json-parse-even-better-errors/-/json-parse-even-better-errors-3.0.2.tgz", "integrity": "sha512-fi0NG4bPjCHunUJffmLd0gxssIgkNmArMvis4iNah6Owg1MCJjWhEcDLmsK6iGkJq3tHwbDkTlce70/tmXN4cQ==", "dev": true, + "license": "MIT", "engines": { "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } @@ -3361,12 +3371,14 @@ "version": "0.4.1", "resolved": "https://registry.npmmirror.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "license": "MIT", "peer": true }, "node_modules/json-stable-stringify-without-jsonify": { "version": "1.0.1", "resolved": "https://registry.npmmirror.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "license": "MIT", "peer": true }, "node_modules/json5": { @@ -3374,6 +3386,7 @@ "resolved": "https://registry.npmmirror.com/json5/-/json5-2.2.3.tgz", "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", "dev": true, + "license": "MIT", "bin": { "json5": "lib/cli.js" }, @@ -3385,6 +3398,7 @@ "version": "6.1.0", "resolved": "https://registry.npmmirror.com/jsonfile/-/jsonfile-6.1.0.tgz", "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "license": "MIT", "dependencies": { "universalify": "^2.0.0" }, @@ -3396,6 +3410,7 @@ "version": "4.5.4", "resolved": "https://registry.npmmirror.com/keyv/-/keyv-4.5.4.tgz", "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "license": "MIT", "peer": true, "dependencies": { "json-buffer": "3.0.1" @@ -3405,6 +3420,7 @@ "version": "0.4.1", "resolved": "https://registry.npmmirror.com/levn/-/levn-0.4.1.tgz", "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "license": "MIT", "peer": true, "dependencies": { "prelude-ls": "^1.2.1", @@ -3418,6 +3434,7 @@ "version": "6.0.0", "resolved": "https://registry.npmmirror.com/locate-path/-/locate-path-6.0.0.tgz", "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "license": "MIT", "peer": true, "dependencies": { "p-locate": "^5.0.0" @@ -3432,18 +3449,21 @@ "node_modules/lodash": { "version": "4.17.21", "resolved": "https://registry.npmmirror.com/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "license": "MIT" }, "node_modules/lodash.merge": { "version": "4.6.2", "resolved": "https://registry.npmmirror.com/lodash.merge/-/lodash.merge-4.6.2.tgz", "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "license": "MIT", "peer": true }, "node_modules/loose-envify": { "version": "1.4.0", "resolved": "https://registry.npmmirror.com/loose-envify/-/loose-envify-1.4.0.tgz", "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "license": "MIT", "dependencies": { "js-tokens": "^3.0.0 || ^4.0.0" }, @@ -3456,16 +3476,18 @@ "resolved": "https://registry.npmmirror.com/lru-cache/-/lru-cache-5.1.1.tgz", "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", "dev": true, + "license": "ISC", "dependencies": { "yallist": "^3.0.2" } }, "node_modules/magic-string": { - "version": "0.30.10", - "resolved": "https://registry.npmmirror.com/magic-string/-/magic-string-0.30.10.tgz", - "integrity": "sha512-iIRwTIf0QKV3UAnYK4PU8uiEc4SRh5jX0mwpIwETPpHdhVM4f53RSwS/vXvN1JhGX+Cs7B8qIq3d6AH49O5fAQ==", + "version": "0.30.11", + "resolved": "https://registry.npmmirror.com/magic-string/-/magic-string-0.30.11.tgz", + "integrity": "sha512-+Wri9p0QHMy+545hKww7YAu5NyzF8iomPL/RQazugQ9+Ez4Ic3mERMd8ZTX5rfK944j+560ZJi8iAwgak1Ac7A==", + "license": "MIT", "dependencies": { - "@jridgewell/sourcemap-codec": "^1.4.15" + "@jridgewell/sourcemap-codec": "^1.5.0" } }, "node_modules/memorystream": { @@ -3481,15 +3503,17 @@ "version": "1.4.1", "resolved": "https://registry.npmmirror.com/merge2/-/merge2-1.4.1.tgz", "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "license": "MIT", "peer": true, "engines": { "node": ">= 8" } }, "node_modules/micromatch": { - "version": "4.0.7", - "resolved": "https://registry.npmmirror.com/micromatch/-/micromatch-4.0.7.tgz", - "integrity": "sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==", + "version": "4.0.8", + "resolved": "https://registry.npmmirror.com/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "license": "MIT", "peer": true, "dependencies": { "braces": "^3.0.3", @@ -3507,6 +3531,7 @@ "funding": [ "https://github.com/sponsors/broofa" ], + "license": "MIT", "bin": { "mime": "bin/cli.js" }, @@ -3518,6 +3543,7 @@ "version": "1.52.0", "resolved": "https://registry.npmmirror.com/mime-db/-/mime-db-1.52.0.tgz", "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "license": "MIT", "engines": { "node": ">= 0.6" } @@ -3526,6 +3552,7 @@ "version": "2.1.35", "resolved": "https://registry.npmmirror.com/mime-types/-/mime-types-2.1.35.tgz", "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "license": "MIT", "dependencies": { "mime-db": "1.52.0" }, @@ -3537,6 +3564,7 @@ "version": "2.1.0", "resolved": "https://registry.npmmirror.com/mimic-fn/-/mimic-fn-2.1.0.tgz", "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "license": "MIT", "engines": { "node": ">=6" } @@ -3545,6 +3573,7 @@ "version": "9.0.5", "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-9.0.5.tgz", "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "license": "ISC", "dependencies": { "brace-expansion": "^2.0.1" }, @@ -3556,15 +3585,17 @@ } }, "node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + "version": "2.1.3", + "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" }, "node_modules/muggle-string": { "version": "0.4.1", "resolved": "https://registry.npmmirror.com/muggle-string/-/muggle-string-0.4.1.tgz", "integrity": "sha512-VNTrAak/KhO2i8dqqnqnAHOa3cYBwXEZe9h+D5h/1ZqFSTEFHdM65lR7RoIqq3tBBYavsOXV84NoHXZ0AkPyqQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/nanoid": { "version": "3.3.7", @@ -3576,6 +3607,7 @@ "url": "https://github.com/sponsors/ai" } ], + "license": "MIT", "bin": { "nanoid": "bin/nanoid.cjs" }, @@ -3587,42 +3619,38 @@ "version": "1.4.0", "resolved": "https://registry.npmmirror.com/natural-compare/-/natural-compare-1.4.0.tgz", "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "license": "MIT", "peer": true }, "node_modules/neverthrow": { "version": "6.2.2", "resolved": "https://registry.npmmirror.com/neverthrow/-/neverthrow-6.2.2.tgz", - "integrity": "sha512-POR1FACqdK9jH0S2kRPzaZEvzT11wsOxLW520PQV/+vKi9dQe+hXq19EiOvYx7lSRaF5VB9lYGsPInynrnN05w==" + "integrity": "sha512-POR1FACqdK9jH0S2kRPzaZEvzT11wsOxLW520PQV/+vKi9dQe+hXq19EiOvYx7lSRaF5VB9lYGsPInynrnN05w==", + "license": "MIT" }, "node_modules/node-releases": { - "version": "2.0.17", - "resolved": "https://registry.npmmirror.com/node-releases/-/node-releases-2.0.17.tgz", - "integrity": "sha512-Ww6ZlOiEQfPfXM45v17oabk77Z7mg5bOt7AjDyzy7RjK9OrLrLC8dyZQoAPEOtFX9SaNf1Tdvr5gRJWdTJj7GA==", - "dev": true - }, - "node_modules/normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "version": "2.0.18", + "resolved": "https://registry.npmmirror.com/node-releases/-/node-releases-2.0.18.tgz", + "integrity": "sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g==", "dev": true, - "engines": { - "node": ">=0.10.0" - } + "license": "MIT" }, "node_modules/npm-normalize-package-bin": { "version": "3.0.1", "resolved": "https://registry.npmmirror.com/npm-normalize-package-bin/-/npm-normalize-package-bin-3.0.1.tgz", "integrity": "sha512-dMxCf+zZ+3zeQZXKxmyuCKlIDPGuv8EF940xbkC4kQVDTtqoh6rJFO+JTKSA6/Rwi0getWmtuy4Itup0AMcaDQ==", "dev": true, + "license": "ISC", "engines": { "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, "node_modules/npm-run-all2": { - "version": "6.2.2", - "resolved": "https://registry.npmmirror.com/npm-run-all2/-/npm-run-all2-6.2.2.tgz", - "integrity": "sha512-Q+alQAGIW7ZhKcxLt8GcSi3h3ryheD6xnmXahkMRVM5LYmajcUrSITm8h+OPC9RYWMV2GR0Q1ntTUCfxaNoOJw==", + "version": "6.2.3", + "resolved": "https://registry.npmmirror.com/npm-run-all2/-/npm-run-all2-6.2.3.tgz", + "integrity": "sha512-5RsxC7jEc/RjxOYBVdEfrJf5FsJ0pHA7jr2/OxrThXknajETCTYjigOCG3iaGjdYIKEQlDuCG0ir0T1HTva8pg==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^6.2.1", "cross-spawn": "^7.0.3", @@ -3648,6 +3676,7 @@ "resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-6.2.1.tgz", "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", "dev": true, + "license": "MIT", "engines": { "node": ">=12" }, @@ -3655,19 +3684,11 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmmirror.com/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "peer": true, - "dependencies": { - "wrappy": "1" - } - }, "node_modules/onetime": { "version": "5.1.2", "resolved": "https://registry.npmmirror.com/onetime/-/onetime-5.1.2.tgz", "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "license": "MIT", "dependencies": { "mimic-fn": "^2.1.0" }, @@ -3682,6 +3703,7 @@ "version": "0.9.4", "resolved": "https://registry.npmmirror.com/optionator/-/optionator-0.9.4.tgz", "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", + "license": "MIT", "peer": true, "dependencies": { "deep-is": "^0.1.3", @@ -3699,6 +3721,7 @@ "version": "3.1.0", "resolved": "https://registry.npmmirror.com/p-limit/-/p-limit-3.1.0.tgz", "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "license": "MIT", "peer": true, "dependencies": { "yocto-queue": "^0.1.0" @@ -3714,6 +3737,7 @@ "version": "5.0.0", "resolved": "https://registry.npmmirror.com/p-locate/-/p-locate-5.0.0.tgz", "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "license": "MIT", "peer": true, "dependencies": { "p-limit": "^3.0.2" @@ -3729,6 +3753,7 @@ "version": "1.0.1", "resolved": "https://registry.npmmirror.com/parent-module/-/parent-module-1.0.1.tgz", "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "license": "MIT", "peer": true, "dependencies": { "callsites": "^3.0.0" @@ -3741,6 +3766,7 @@ "version": "2.0.0", "resolved": "https://registry.npmmirror.com/patch-console/-/patch-console-2.0.0.tgz", "integrity": "sha512-0YNdUceMdaQwoKce1gatDScmMo5pu/tfABfnzEqeG0gtTmd7mh/WcwgUjtAeOU7N8nFFlbQBnFK2gXW5fGvmMA==", + "license": "MIT", "engines": { "node": "^12.20.0 || ^14.13.1 || >=16.0.0" } @@ -3749,52 +3775,40 @@ "version": "1.0.1", "resolved": "https://registry.npmmirror.com/path-browserify/-/path-browserify-1.0.1.tgz", "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/path-exists": { "version": "4.0.0", "resolved": "https://registry.npmmirror.com/path-exists/-/path-exists-4.0.0.tgz", "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "license": "MIT", "peer": true, "engines": { "node": ">=8" } }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", - "peer": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/path-key": { "version": "3.1.1", "resolved": "https://registry.npmmirror.com/path-key/-/path-key-3.1.1.tgz", "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmmirror.com/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", - "peer": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/picocolors": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/picocolors/-/picocolors-1.0.1.tgz", - "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==" + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/picocolors/-/picocolors-1.1.0.tgz", + "integrity": "sha512-TQ92mBOW0l3LeMeyLV6mzy/kWr8lkd/hp3mTg7wYK7zJhuBStmGMBG0BdeDZS/dZx1IukaX6Bk11zcln25o1Aw==", + "license": "ISC" }, "node_modules/picomatch": { "version": "2.3.1", "resolved": "https://registry.npmmirror.com/picomatch/-/picomatch-2.3.1.tgz", "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "license": "MIT", + "peer": true, "engines": { "node": ">=8.6" }, @@ -3807,6 +3821,7 @@ "resolved": "https://registry.npmmirror.com/pidtree/-/pidtree-0.6.0.tgz", "integrity": "sha512-eG2dWTVw5bzqGRztnHExczNxt5VGsE6OwTeCG3fdUf9KBsZzO3R5OIIIzWR+iZA0NtZ+RDVdaoE2dK1cn6jH4g==", "dev": true, + "license": "MIT", "bin": { "pidtree": "bin/pidtree.js" }, @@ -3815,9 +3830,9 @@ } }, "node_modules/postcss": { - "version": "8.4.39", - "resolved": "https://registry.npmmirror.com/postcss/-/postcss-8.4.39.tgz", - "integrity": "sha512-0vzE+lAiG7hZl1/9I8yzKLx3aR9Xbof3fBHKunvMfOCYAtMhrsnccJY2iTURb9EZd5+pLuiNV9/c/GZJOHsgIw==", + "version": "8.4.47", + "resolved": "https://registry.npmmirror.com/postcss/-/postcss-8.4.47.tgz", + "integrity": "sha512-56rxCq7G/XfB4EkXq9Egn5GCqugWvDFjafDOThIdMBsI15iqPqR5r15TfSr1YPYeEI19YeaXMCbY6u88Y76GLQ==", "funding": [ { "type": "opencollective", @@ -3832,10 +3847,11 @@ "url": "https://github.com/sponsors/ai" } ], + "license": "MIT", "dependencies": { "nanoid": "^3.3.7", - "picocolors": "^1.0.1", - "source-map-js": "^1.2.0" + "picocolors": "^1.1.0", + "source-map-js": "^1.2.1" }, "engines": { "node": "^10 || ^12 || >=14" @@ -3845,6 +3861,7 @@ "version": "1.2.1", "resolved": "https://registry.npmmirror.com/prelude-ls/-/prelude-ls-1.2.1.tgz", "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "license": "MIT", "peer": true, "engines": { "node": ">= 0.8.0" @@ -3854,6 +3871,7 @@ "version": "2.3.1", "resolved": "https://registry.npmmirror.com/punycode/-/punycode-2.3.1.tgz", "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "license": "MIT", "peer": true, "engines": { "node": ">=6" @@ -3877,12 +3895,14 @@ "url": "https://feross.org/support" } ], + "license": "MIT", "peer": true }, "node_modules/react": { "version": "18.3.1", "resolved": "https://registry.npmmirror.com/react/-/react-18.3.1.tgz", "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", + "license": "MIT", "dependencies": { "loose-envify": "^1.1.0" }, @@ -3894,6 +3914,7 @@ "version": "0.29.2", "resolved": "https://registry.npmmirror.com/react-reconciler/-/react-reconciler-0.29.2.tgz", "integrity": "sha512-zZQqIiYgDCTP/f1N/mAR10nJGrPD2ZR+jDSEsKWJHYC7Cm2wodlwbR3upZRdC3cjIjSlTLNVyO7Iu0Yy7t2AYg==", + "license": "MIT", "dependencies": { "loose-envify": "^1.1.0", "scheduler": "^0.23.2" @@ -3910,6 +3931,7 @@ "resolved": "https://registry.npmmirror.com/read-package-json-fast/-/read-package-json-fast-3.0.2.tgz", "integrity": "sha512-0J+Msgym3vrLOUB3hzQCuZHII0xkNGCtz/HJH9xZshwv9DbDwkw1KaE3gx/e2J5rpEY5rtOy6cyhKOPrkP7FZw==", "dev": true, + "license": "ISC", "dependencies": { "json-parse-even-better-errors": "^3.0.0", "npm-normalize-package-bin": "^3.0.0" @@ -3919,21 +3941,24 @@ } }, "node_modules/readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmmirror.com/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "version": "4.0.1", + "resolved": "https://registry.npmmirror.com/readdirp/-/readdirp-4.0.1.tgz", + "integrity": "sha512-GkMg9uOTpIWWKbSsgwb5fA4EavTR+SG/PMPoAY8hkhHfEEY0/vqljY+XHqtDf2cr2IJtoNRDbrrEpZUiZCkYRw==", "dev": true, - "dependencies": { - "picomatch": "^2.2.1" - }, + "license": "MIT", "engines": { - "node": ">=8.10.0" + "node": ">= 14.16.0" + }, + "funding": { + "type": "individual", + "url": "https://paulmillr.com/funding/" } }, "node_modules/resolve-from": { "version": "4.0.0", "resolved": "https://registry.npmmirror.com/resolve-from/-/resolve-from-4.0.0.tgz", "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "license": "MIT", "peer": true, "engines": { "node": ">=4" @@ -3943,6 +3968,7 @@ "version": "4.0.0", "resolved": "https://registry.npmmirror.com/restore-cursor/-/restore-cursor-4.0.0.tgz", "integrity": "sha512-I9fPXU9geO9bHOt9pHHOhOkYerIMsmVaWB0rA2AI9ERh/+x/i7MV5HKBNrg+ljO5eoPVgCcnFuRjJ9uH6I/3eg==", + "license": "MIT", "dependencies": { "onetime": "^5.1.0", "signal-exit": "^3.0.2" @@ -3958,33 +3984,19 @@ "version": "1.0.4", "resolved": "https://registry.npmmirror.com/reusify/-/reusify-1.0.4.tgz", "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "license": "MIT", "peer": true, "engines": { "iojs": ">=1.0.0", "node": ">=0.10.0" } }, - "node_modules/rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmmirror.com/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "deprecated": "Rimraf versions prior to v4 are no longer supported", - "peer": true, - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/rollup": { - "version": "4.18.1", - "resolved": "https://registry.npmmirror.com/rollup/-/rollup-4.18.1.tgz", - "integrity": "sha512-Elx2UT8lzxxOXMpy5HWQGZqkrQOtrVDDa/bm9l10+U4rQnVzbL/LgZ4NOM1MPIDyHk69W4InuYDF5dzRh4Kw1A==", + "version": "4.21.3", + "resolved": "https://registry.npmmirror.com/rollup/-/rollup-4.21.3.tgz", + "integrity": "sha512-7sqRtBNnEbcBtMeRVc6VRsJMmpI+JU1z9VTvW8D4gXIYQFz0aLcsE6rRkyghZkLfEgUZgVvOG7A5CVz/VW5GIA==", "dev": true, + "license": "MIT", "dependencies": { "@types/estree": "1.0.5" }, @@ -3996,25 +4008,32 @@ "npm": ">=8.0.0" }, "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.18.1", - "@rollup/rollup-android-arm64": "4.18.1", - "@rollup/rollup-darwin-arm64": "4.18.1", - "@rollup/rollup-darwin-x64": "4.18.1", - "@rollup/rollup-linux-arm-gnueabihf": "4.18.1", - "@rollup/rollup-linux-arm-musleabihf": "4.18.1", - "@rollup/rollup-linux-arm64-gnu": "4.18.1", - "@rollup/rollup-linux-arm64-musl": "4.18.1", - "@rollup/rollup-linux-powerpc64le-gnu": "4.18.1", - "@rollup/rollup-linux-riscv64-gnu": "4.18.1", - "@rollup/rollup-linux-s390x-gnu": "4.18.1", - "@rollup/rollup-linux-x64-gnu": "4.18.1", - "@rollup/rollup-linux-x64-musl": "4.18.1", - "@rollup/rollup-win32-arm64-msvc": "4.18.1", - "@rollup/rollup-win32-ia32-msvc": "4.18.1", - "@rollup/rollup-win32-x64-msvc": "4.18.1", + "@rollup/rollup-android-arm-eabi": "4.21.3", + "@rollup/rollup-android-arm64": "4.21.3", + "@rollup/rollup-darwin-arm64": "4.21.3", + "@rollup/rollup-darwin-x64": "4.21.3", + "@rollup/rollup-linux-arm-gnueabihf": "4.21.3", + "@rollup/rollup-linux-arm-musleabihf": "4.21.3", + "@rollup/rollup-linux-arm64-gnu": "4.21.3", + "@rollup/rollup-linux-arm64-musl": "4.21.3", + "@rollup/rollup-linux-powerpc64le-gnu": "4.21.3", + "@rollup/rollup-linux-riscv64-gnu": "4.21.3", + "@rollup/rollup-linux-s390x-gnu": "4.21.3", + "@rollup/rollup-linux-x64-gnu": "4.21.3", + "@rollup/rollup-linux-x64-musl": "4.21.3", + "@rollup/rollup-win32-arm64-msvc": "4.21.3", + "@rollup/rollup-win32-ia32-msvc": "4.21.3", + "@rollup/rollup-win32-x64-msvc": "4.21.3", "fsevents": "~2.3.2" } }, + "node_modules/rollup/node_modules/@types/estree": { + "version": "1.0.5", + "resolved": "https://registry.npmmirror.com/@types/estree/-/estree-1.0.5.tgz", + "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==", + "dev": true, + "license": "MIT" + }, "node_modules/run-parallel": { "version": "1.2.0", "resolved": "https://registry.npmmirror.com/run-parallel/-/run-parallel-1.2.0.tgz", @@ -4033,18 +4052,20 @@ "url": "https://feross.org/support" } ], + "license": "MIT", "peer": true, "dependencies": { "queue-microtask": "^1.2.2" } }, "node_modules/sass": { - "version": "1.77.8", - "resolved": "https://registry.npmmirror.com/sass/-/sass-1.77.8.tgz", - "integrity": "sha512-4UHg6prsrycW20fqLGPShtEvo/WyHRVRHwOP4DzkUrObWoWI05QBSfzU71TVB7PFaL104TwNaHpjlWXAZbQiNQ==", + "version": "1.79.1", + "resolved": "https://registry.npmmirror.com/sass/-/sass-1.79.1.tgz", + "integrity": "sha512-+mA7svoNKeL0DiJqZGeR/ZGUu8he4I8o3jyUcOFyo4eBJrwNgIMmAEwCMo/N2Y3wdjOBcRzoNxZIOtrtMX8EXg==", "dev": true, + "license": "MIT", "dependencies": { - "chokidar": ">=3.0.0 <4.0.0", + "chokidar": "^4.0.0", "immutable": "^4.0.0", "source-map-js": ">=0.6.2 <2.0.0" }, @@ -4059,6 +4080,7 @@ "version": "4.2.3", "resolved": "https://registry.npmmirror.com/saucer-app/-/saucer-app-4.2.3.tgz", "integrity": "sha512-nW5nzCM5Q0fRpSCPh9uA3kO9ji3ojUWDLCrIpAGHrcFDrWy1xOoyBZN22/tyMfenailROtiaCeQOMumsavxdJA==", + "license": "MIT", "dependencies": { "commander": "^11.0.0", "eslint-plugin-neverthrow": "^1.1.4", @@ -4083,6 +4105,7 @@ "version": "0.23.2", "resolved": "https://registry.npmmirror.com/scheduler/-/scheduler-0.23.2.tgz", "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==", + "license": "MIT", "dependencies": { "loose-envify": "^1.1.0" } @@ -4092,6 +4115,7 @@ "resolved": "https://registry.npmmirror.com/semver/-/semver-6.3.1.tgz", "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, + "license": "ISC", "bin": { "semver": "bin/semver.js" } @@ -4100,6 +4124,7 @@ "version": "2.0.0", "resolved": "https://registry.npmmirror.com/shebang-command/-/shebang-command-2.0.0.tgz", "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "license": "MIT", "dependencies": { "shebang-regex": "^3.0.0" }, @@ -4111,6 +4136,7 @@ "version": "3.0.0", "resolved": "https://registry.npmmirror.com/shebang-regex/-/shebang-regex-3.0.0.tgz", "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "license": "MIT", "engines": { "node": ">=8" } @@ -4120,6 +4146,7 @@ "resolved": "https://registry.npmmirror.com/shell-quote/-/shell-quote-1.8.1.tgz", "integrity": "sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==", "dev": true, + "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -4127,21 +4154,14 @@ "node_modules/signal-exit": { "version": "3.0.7", "resolved": "https://registry.npmmirror.com/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==" - }, - "node_modules/slash": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "peer": true, - "engines": { - "node": ">=8" - } + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "license": "ISC" }, "node_modules/slice-ansi": { "version": "6.0.0", "resolved": "https://registry.npmmirror.com/slice-ansi/-/slice-ansi-6.0.0.tgz", "integrity": "sha512-6bn4hRfkTvDfUoEQYkERg0BVF1D0vrX9HEkMl08uDiNWvVvjylLHvZFZWkDo6wjT8tUctbYl1nCOuE66ZTaUtA==", + "license": "MIT", "dependencies": { "ansi-styles": "^6.2.1", "is-fullwidth-code-point": "^4.0.0" @@ -4157,6 +4177,7 @@ "version": "6.2.1", "resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-6.2.1.tgz", "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "license": "MIT", "engines": { "node": ">=12" }, @@ -4165,9 +4186,10 @@ } }, "node_modules/source-map-js": { - "version": "1.2.0", - "resolved": "https://registry.npmmirror.com/source-map-js/-/source-map-js-1.2.0.tgz", - "integrity": "sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==", + "version": "1.2.1", + "resolved": "https://registry.npmmirror.com/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" } @@ -4176,6 +4198,7 @@ "version": "2.0.6", "resolved": "https://registry.npmmirror.com/stack-utils/-/stack-utils-2.0.6.tgz", "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", + "license": "MIT", "dependencies": { "escape-string-regexp": "^2.0.0" }, @@ -4187,6 +4210,7 @@ "version": "2.0.0", "resolved": "https://registry.npmmirror.com/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "license": "MIT", "engines": { "node": ">=8" } @@ -4195,6 +4219,7 @@ "version": "5.1.2", "resolved": "https://registry.npmmirror.com/string-width/-/string-width-5.1.2.tgz", "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "license": "MIT", "dependencies": { "eastasianwidth": "^0.2.0", "emoji-regex": "^9.2.2", @@ -4208,9 +4233,10 @@ } }, "node_modules/string-width/node_modules/ansi-regex": { - "version": "6.0.1", - "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-6.0.1.tgz", - "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", + "version": "6.1.0", + "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-6.1.0.tgz", + "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", + "license": "MIT", "engines": { "node": ">=12" }, @@ -4222,6 +4248,7 @@ "version": "7.1.0", "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-7.1.0.tgz", "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "license": "MIT", "dependencies": { "ansi-regex": "^6.0.1" }, @@ -4236,6 +4263,7 @@ "version": "6.0.1", "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "license": "MIT", "peer": true, "dependencies": { "ansi-regex": "^5.0.1" @@ -4248,6 +4276,7 @@ "version": "3.1.1", "resolved": "https://registry.npmmirror.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz", "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "license": "MIT", "peer": true, "engines": { "node": ">=8" @@ -4261,6 +4290,7 @@ "resolved": "https://registry.npmmirror.com/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^3.0.0" }, @@ -4278,13 +4308,14 @@ "version": "0.2.0", "resolved": "https://registry.npmmirror.com/text-table/-/text-table-0.2.0.tgz", "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", + "license": "MIT", "peer": true }, "node_modules/to-fast-properties": { "version": "2.0.0", "resolved": "https://registry.npmmirror.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz", "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", - "dev": true, + "license": "MIT", "engines": { "node": ">=4" } @@ -4293,6 +4324,8 @@ "version": "5.0.1", "resolved": "https://registry.npmmirror.com/to-regex-range/-/to-regex-range-5.0.1.tgz", "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "license": "MIT", + "peer": true, "dependencies": { "is-number": "^7.0.0" }, @@ -4304,6 +4337,7 @@ "version": "1.3.0", "resolved": "https://registry.npmmirror.com/ts-api-utils/-/ts-api-utils-1.3.0.tgz", "integrity": "sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ==", + "license": "MIT", "peer": true, "engines": { "node": ">=16" @@ -4313,14 +4347,16 @@ } }, "node_modules/tslib": { - "version": "2.6.3", - "resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.6.3.tgz", - "integrity": "sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==" + "version": "2.7.0", + "resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.7.0.tgz", + "integrity": "sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==", + "license": "0BSD" }, "node_modules/tsutils": { "version": "3.21.0", "resolved": "https://registry.npmmirror.com/tsutils/-/tsutils-3.21.0.tgz", "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", + "license": "MIT", "dependencies": { "tslib": "^1.8.1" }, @@ -4334,12 +4370,14 @@ "node_modules/tsutils/node_modules/tslib": { "version": "1.14.1", "resolved": "https://registry.npmmirror.com/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "license": "0BSD" }, "node_modules/type-check": { "version": "0.4.0", "resolved": "https://registry.npmmirror.com/type-check/-/type-check-0.4.0.tgz", "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "license": "MIT", "peer": true, "dependencies": { "prelude-ls": "^1.2.1" @@ -4352,6 +4390,7 @@ "version": "0.12.0", "resolved": "https://registry.npmmirror.com/type-fest/-/type-fest-0.12.0.tgz", "integrity": "sha512-53RyidyjvkGpnWPMF9bQgFtWp+Sl8O2Rp13VavmJgfAP9WWG6q6TkrKU8iyJdnwnfgHI6k2hTlgqH4aSdjoTbg==", + "license": "(MIT OR CC0-1.0)", "engines": { "node": ">=10" }, @@ -4363,6 +4402,7 @@ "version": "5.4.5", "resolved": "https://registry.npmmirror.com/typescript/-/typescript-5.4.5.tgz", "integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==", + "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -4372,15 +4412,17 @@ } }, "node_modules/undici-types": { - "version": "5.26.5", - "resolved": "https://registry.npmmirror.com/undici-types/-/undici-types-5.26.5.tgz", - "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", - "dev": true + "version": "6.19.8", + "resolved": "https://registry.npmmirror.com/undici-types/-/undici-types-6.19.8.tgz", + "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", + "dev": true, + "license": "MIT" }, "node_modules/universalify": { "version": "2.0.1", "resolved": "https://registry.npmmirror.com/universalify/-/universalify-2.0.1.tgz", "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "license": "MIT", "engines": { "node": ">= 10.0.0" } @@ -4404,6 +4446,7 @@ "url": "https://github.com/sponsors/ai" } ], + "license": "MIT", "dependencies": { "escalade": "^3.1.2", "picocolors": "^1.0.1" @@ -4419,20 +4462,22 @@ "version": "4.4.1", "resolved": "https://registry.npmmirror.com/uri-js/-/uri-js-4.4.1.tgz", "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "license": "BSD-2-Clause", "peer": true, "dependencies": { "punycode": "^2.1.0" } }, "node_modules/vite": { - "version": "5.3.4", - "resolved": "https://registry.npmmirror.com/vite/-/vite-5.3.4.tgz", - "integrity": "sha512-Cw+7zL3ZG9/NZBB8C+8QbQZmR54GwqIz+WMI4b3JgdYJvX+ny9AjJXqkGQlDXSXRP9rP0B4tbciRMOVEKulVOA==", + "version": "5.4.6", + "resolved": "https://registry.npmmirror.com/vite/-/vite-5.4.6.tgz", + "integrity": "sha512-IeL5f8OO5nylsgzd9tq4qD2QqI0k2CQLGrWD0rCN0EQJZpBK5vJAx0I+GDkMOXxQX/OfFHMuLIx6ddAxGX/k+Q==", "dev": true, + "license": "MIT", "dependencies": { "esbuild": "^0.21.3", - "postcss": "^8.4.39", - "rollup": "^4.13.0" + "postcss": "^8.4.43", + "rollup": "^4.20.0" }, "bin": { "vite": "bin/vite.js" @@ -4451,6 +4496,7 @@ "less": "*", "lightningcss": "^1.21.0", "sass": "*", + "sass-embedded": "*", "stylus": "*", "sugarss": "*", "terser": "^5.4.0" @@ -4468,6 +4514,9 @@ "sass": { "optional": true }, + "sass-embedded": { + "optional": true + }, "stylus": { "optional": true }, @@ -4483,18 +4532,20 @@ "version": "3.0.8", "resolved": "https://registry.npmmirror.com/vscode-uri/-/vscode-uri-3.0.8.tgz", "integrity": "sha512-AyFQ0EVmsOZOlAnxoFOGOq1SQDWAB7C6aqMGS23svWAllfOaxbuFvcT8D1i8z3Gyn8fraVeZNNmN6e9bxxXkKw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/vue": { - "version": "3.4.32", - "resolved": "https://registry.npmmirror.com/vue/-/vue-3.4.32.tgz", - "integrity": "sha512-9mCGIAi/CAq7GtaLLLp2J92pEic+HArstG+pq6F+H7+/jB9a0Z7576n4Bh4k79/50L1cKMIhZC3MC0iGpl+1IA==", + "version": "3.5.6", + "resolved": "https://registry.npmmirror.com/vue/-/vue-3.5.6.tgz", + "integrity": "sha512-zv+20E2VIYbcJOzJPUWp03NOGFhMmpCKOfSxVTmCYyYFFko48H9tmuQFzYj7tu4qX1AeXlp9DmhIP89/sSxxhw==", + "license": "MIT", "dependencies": { - "@vue/compiler-dom": "3.4.32", - "@vue/compiler-sfc": "3.4.32", - "@vue/runtime-dom": "3.4.32", - "@vue/server-renderer": "3.4.32", - "@vue/shared": "3.4.32" + "@vue/compiler-dom": "3.5.6", + "@vue/compiler-sfc": "3.5.6", + "@vue/runtime-dom": "3.5.6", + "@vue/server-renderer": "3.5.6", + "@vue/shared": "3.5.6" }, "peerDependencies": { "typescript": "*" @@ -4506,11 +4557,12 @@ } }, "node_modules/vue-router": { - "version": "4.4.0", - "resolved": "https://registry.npmmirror.com/vue-router/-/vue-router-4.4.0.tgz", - "integrity": "sha512-HB+t2p611aIZraV2aPSRNXf0Z/oLZFrlygJm+sZbdJaW6lcFqEDQwnzUBXn+DApw+/QzDU/I9TeWx9izEjTmsA==", + "version": "4.4.5", + "resolved": "https://registry.npmmirror.com/vue-router/-/vue-router-4.4.5.tgz", + "integrity": "sha512-4fKZygS8cH1yCyuabAXGUAsyi1b2/o/OKgu/RUb+znIYOxPRxdkytJEx+0wGcpBE1pX6vUgh5jwWOKRGvuA/7Q==", + "license": "MIT", "dependencies": { - "@vue/devtools-api": "^6.5.1" + "@vue/devtools-api": "^6.6.4" }, "funding": { "url": "https://github.com/sponsors/posva" @@ -4519,24 +4571,15 @@ "vue": "^3.2.0" } }, - "node_modules/vue-template-compiler": { - "version": "2.7.16", - "resolved": "https://registry.npmmirror.com/vue-template-compiler/-/vue-template-compiler-2.7.16.tgz", - "integrity": "sha512-AYbUWAJHLGGQM7+cNTELw+KsOG9nl2CnSv467WobS5Cv9uk3wFcnr1Etsz2sEIHEZvw1U+o9mRlEO6QbZvUPGQ==", - "dev": true, - "dependencies": { - "de-indent": "^1.0.2", - "he": "^1.2.0" - } - }, "node_modules/vue-tsc": { - "version": "2.0.26", - "resolved": "https://registry.npmmirror.com/vue-tsc/-/vue-tsc-2.0.26.tgz", - "integrity": "sha512-tOhuwy2bIXbMhz82ef37qeiaQHMXKQkD6mOF6CCPl3/uYtST3l6fdNyfMxipudrQTxTfXVPlgJdMENBFfC1CfQ==", + "version": "2.1.6", + "resolved": "https://registry.npmmirror.com/vue-tsc/-/vue-tsc-2.1.6.tgz", + "integrity": "sha512-f98dyZp5FOukcYmbFpuSCJ4Z0vHSOSmxGttZJCsFeX0M4w/Rsq0s4uKXjcSRsZqsRgQa6z7SfuO+y0HVICE57Q==", "dev": true, + "license": "MIT", "dependencies": { - "@volar/typescript": "~2.4.0-alpha.15", - "@vue/language-core": "2.0.26", + "@volar/typescript": "~2.4.1", + "@vue/language-core": "2.1.6", "semver": "^7.5.4" }, "bin": { @@ -4551,6 +4594,7 @@ "resolved": "https://registry.npmmirror.com/semver/-/semver-7.6.3.tgz", "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", "dev": true, + "license": "ISC", "bin": { "semver": "bin/semver.js" }, @@ -4562,6 +4606,7 @@ "version": "2.0.2", "resolved": "https://registry.npmmirror.com/which/-/which-2.0.2.tgz", "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "license": "ISC", "dependencies": { "isexe": "^2.0.0" }, @@ -4576,6 +4621,7 @@ "version": "4.0.1", "resolved": "https://registry.npmmirror.com/widest-line/-/widest-line-4.0.1.tgz", "integrity": "sha512-o0cyEG0e8GPzT4iGHphIOh0cJOV8fivsXxddQasHPHfoZf1ZexrfeA21w2NaEN1RHE+fXlfISmOE8R9N3u3Qig==", + "license": "MIT", "dependencies": { "string-width": "^5.0.1" }, @@ -4590,6 +4636,7 @@ "version": "1.2.5", "resolved": "https://registry.npmmirror.com/word-wrap/-/word-wrap-1.2.5.tgz", "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "license": "MIT", "peer": true, "engines": { "node": ">=0.10.0" @@ -4599,6 +4646,7 @@ "version": "8.1.0", "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz", "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "license": "MIT", "dependencies": { "ansi-styles": "^6.1.0", "string-width": "^5.0.1", @@ -4612,9 +4660,10 @@ } }, "node_modules/wrap-ansi/node_modules/ansi-regex": { - "version": "6.0.1", - "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-6.0.1.tgz", - "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", + "version": "6.1.0", + "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-6.1.0.tgz", + "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", + "license": "MIT", "engines": { "node": ">=12" }, @@ -4626,6 +4675,7 @@ "version": "6.2.1", "resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-6.2.1.tgz", "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "license": "MIT", "engines": { "node": ">=12" }, @@ -4637,6 +4687,7 @@ "version": "7.1.0", "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-7.1.0.tgz", "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "license": "MIT", "dependencies": { "ansi-regex": "^6.0.1" }, @@ -4647,16 +4698,11 @@ "url": "https://github.com/chalk/strip-ansi?sponsor=1" } }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmmirror.com/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "peer": true - }, "node_modules/ws": { "version": "8.18.0", "resolved": "https://registry.npmmirror.com/ws/-/ws-8.18.0.tgz", "integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==", + "license": "MIT", "engines": { "node": ">=10.0.0" }, @@ -4677,12 +4723,14 @@ "version": "3.1.1", "resolved": "https://registry.npmmirror.com/yallist/-/yallist-3.1.1.tgz", "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmmirror.com/yocto-queue/-/yocto-queue-0.1.0.tgz", "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "license": "MIT", "peer": true, "engines": { "node": ">=10" @@ -4694,7 +4742,8 @@ "node_modules/yoga-wasm-web": { "version": "0.3.3", "resolved": "https://registry.npmmirror.com/yoga-wasm-web/-/yoga-wasm-web-0.3.3.tgz", - "integrity": "sha512-N+d4UJSJbt/R3wqY7Coqs5pcV0aUj2j9IaQ3rNj9bVCLld8tTGKRa2USARjnvZJWVx1NDmQev8EknoczaOQDOA==" + "integrity": "sha512-N+d4UJSJbt/R3wqY7Coqs5pcV0aUj2j9IaQ3rNj9bVCLld8tTGKRa2USARjnvZJWVx1NDmQev8EknoczaOQDOA==", + "license": "MIT" } } } diff --git a/assets/launcher-ui/package.json b/assets/launcher-ui/package.json index 3d1b7f2..7f61021 100644 --- a/assets/launcher-ui/package.json +++ b/assets/launcher-ui/package.json @@ -34,7 +34,7 @@ "npm-run-all2": "^6.2.0", "sass": "^1.77.8", "typescript": "~5.4.0", - "vite": "^5.3.1", + "vite": "^5.4.6", "vue-tsc": "^2.0.21" } } diff --git a/assets/launcher-ui/src/env.d.ts b/assets/launcher-ui/src/env.d.ts index 72cd117..5cd32e9 100644 --- a/assets/launcher-ui/src/env.d.ts +++ b/assets/launcher-ui/src/env.d.ts @@ -9,6 +9,19 @@ interface DisplayMode { hz: number; } +interface GameMeta { + game_type: number; + game_name: string; + installed: boolean; + install_path: string; + resource_path: string; + game_module_path: string; + settings_module_path: string; + updater_module_path: string; + game_module_version: string; + game_module_target_version: string; +} + interface Window { saucer: { _idc: number; @@ -32,6 +45,7 @@ interface Window { mounted: () => void; shellExecute: (file: string, args?: string) => void; detectGameInstall: (gameIndex: number) => Promise; + detectGameInstall1: (gameIndex: number) => Promise; readFile: (path: string) => Promise; writeFile: (path: string, content: string) => Promise; uuid: () => Promise; @@ -52,7 +66,7 @@ interface Window { __cb: ((message: string, color: string, timeout: number) => void) | undefined; }, ctx: { - gamePaths: Ref; + gameInfos: Ref; }, }, chrome: any; diff --git a/assets/launcher-ui/src/main.ts b/assets/launcher-ui/src/main.ts index 7230a9a..726c758 100644 --- a/assets/launcher-ui/src/main.ts +++ b/assets/launcher-ui/src/main.ts @@ -6,6 +6,7 @@ import router from './router' import { launcher } from './modules/launcher'; import { iidx } from './modules/iidx'; import { sdvx } from './modules/sdvx'; +import { parseJsonText } from 'typescript'; window.laochan = { close() { @@ -26,6 +27,9 @@ window.laochan = { async detectGameInstall(game: number) { return await window.saucer.call('detectGameInstall', [game]); }, + async detectGameInstall1(game: number) { + return JSON.parse(await window.saucer.call('detectGameInstall1', [game])); + }, async readFile(path: string) { const result = await window.saucer.call('readFile', [path]); if (result === '') { @@ -70,7 +74,40 @@ window.laochan = { }, num: () => {}, ctx: { - gamePaths: ref([[], [], []]), + gameInfos: ref([{ + game_type: 0, + game_name: '', + installed: false, + install_path: '', + resource_path: '', + game_module_path: '', + settings_module_path: '', + updater_module_path: '', + game_module_version: '', + game_module_target_version: '' + },{ + game_type: 0, + game_name: '', + installed: false, + install_path: '', + resource_path: '', + game_module_path: '', + settings_module_path: '', + updater_module_path: '', + game_module_version: '', + game_module_target_version: '' + },{ + game_type: 0, + game_name: '', + installed: false, + install_path: '', + resource_path: '', + game_module_path: '', + settings_module_path: '', + updater_module_path: '', + game_module_version: '', + game_module_target_version: '' + }]), }, alert: { __cb: undefined, @@ -86,9 +123,9 @@ window.laochan = { (async () => { for (let i = 0; i < 3; i++) { - window.laochan.ctx.gamePaths.value[i] = await window.laochan.detectGameInstall(i); + // window.laochan.ctx.gameInfos.value[i] = await window.laochan.detectGameInstall(i); + window.laochan.ctx.gameInfos.value[i] = await window.laochan.detectGameInstall1(i); } - launcher.loadConfig(); iidx.loadConfig(); sdvx.loadConfig(); diff --git a/assets/launcher-ui/src/modules/gitadora.ts b/assets/launcher-ui/src/modules/gitadora.ts index 572c3f0..fee6458 100644 --- a/assets/launcher-ui/src/modules/gitadora.ts +++ b/assets/launcher-ui/src/modules/gitadora.ts @@ -13,7 +13,7 @@ export class GITADORA { } installed() { - return !!window.laochan.ctx.gamePaths.value[2].length; + return !!window.laochan.ctx.gameInfos.value[2].installed; } get installPath() { @@ -21,7 +21,7 @@ export class GITADORA { return; } - const [installPath] = window.laochan.ctx.gamePaths.value[2]; + const [installPath] = window.laochan.ctx.gameInfos.value[2].install_path; return installPath; } diff --git a/assets/launcher-ui/src/modules/iidx.ts b/assets/launcher-ui/src/modules/iidx.ts index 7dc7328..a54de73 100644 --- a/assets/launcher-ui/src/modules/iidx.ts +++ b/assets/launcher-ui/src/modules/iidx.ts @@ -1,6 +1,14 @@ import { ref, type Ref } from "vue"; import { launcher } from "./launcher"; import dedent from "dedent"; +import type { TupleType } from "typescript"; + +export enum VersionState { + Unknown = -1, + Normal = 0, + Need2UpdateLauncher = 1, + Need2UpdateGame = 2, +} export enum IIDXDisplayMode { Fullscreen = 0, @@ -40,7 +48,7 @@ export class IIDX { } installed() { - return !!window.laochan.ctx.gamePaths.value[0].length; + return !!window.laochan.ctx.gameInfos.value[0].installed; } get installPath() { @@ -48,7 +56,7 @@ export class IIDX { return; } - const [installPath] = window.laochan.ctx.gamePaths.value[0]; + const installPath = window.laochan.ctx.gameInfos.value[0].install_path; return installPath; } @@ -61,6 +69,28 @@ export class IIDX { return installPath + 'laochan-config.json'; } + checkVersion(): VersionState { + if (!this.installed()) { + return VersionState.Unknown; + } + const installVersion = window.laochan.ctx.gameInfos.value[0].game_module_version; + const targetVersion = window.laochan.ctx.gameInfos.value[0].game_module_target_version; + const installVersionNum = Number.parseInt(installVersion.split(":")[4]); + const targetVersionNum = Number.parseInt(targetVersion.split(":")[4]); + if (installVersionNum > targetVersionNum) + { + return VersionState.Need2UpdateLauncher; + } + else if (installVersionNum < targetVersionNum) + { + return VersionState.Need2UpdateGame; + } + else + { + return VersionState.Normal + } + } + async resetConfig() { const { devices } = await window.laochan.getAsioDeviceList(); diff --git a/assets/launcher-ui/src/modules/sdvx.ts b/assets/launcher-ui/src/modules/sdvx.ts index f935ab9..30271d6 100644 --- a/assets/launcher-ui/src/modules/sdvx.ts +++ b/assets/launcher-ui/src/modules/sdvx.ts @@ -13,7 +13,7 @@ export class SDVX { } installed() { - return !!window.laochan.ctx.gamePaths.value[1].length; + return !!window.laochan.ctx.gameInfos.value[1].installed; } get installPath() { @@ -21,7 +21,7 @@ export class SDVX { return; } - const [installPath] = window.laochan.ctx.gamePaths.value[1]; + const [installPath] = window.laochan.ctx.gameInfos.value[1].install_path; return installPath; } diff --git a/assets/launcher-ui/src/views/HomeView.vue b/assets/launcher-ui/src/views/HomeView.vue index b655350..3aeda58 100644 --- a/assets/launcher-ui/src/views/HomeView.vue +++ b/assets/launcher-ui/src/views/HomeView.vue @@ -32,7 +32,13 @@ import { gitadora } from '@/modules/gitadora';
-
启动
+
启动
+
+ 请升级启动器 +
+
+ 请升级游戏 +
额外设置
游戏设置
更新器
diff --git a/assets/launcher-ui/src/views/IIDXSettingView.vue b/assets/launcher-ui/src/views/IIDXSettingView.vue index 9194647..4389537 100644 --- a/assets/launcher-ui/src/views/IIDXSettingView.vue +++ b/assets/launcher-ui/src/views/IIDXSettingView.vue @@ -120,7 +120,6 @@ function updateResoltion(e: Event) { if (!iidx.config.value) { return; } - resIndex.value = parseInt((e.target as HTMLInputElement).value); const resolution = displayModes.value[resIndex.value]; diff --git a/assets/launcher-ui/src/views/LauncherSettingView.vue b/assets/launcher-ui/src/views/LauncherSettingView.vue index a269267..4ebfe2c 100644 --- a/assets/launcher-ui/src/views/LauncherSettingView.vue +++ b/assets/launcher-ui/src/views/LauncherSettingView.vue @@ -16,7 +16,7 @@ function openPath(path: string) { } function pathes() { - return window.laochan.ctx.gamePaths.value; + return window.laochan.ctx.gameInfos.value; } function revealToken(e: FocusEvent) { @@ -130,10 +130,12 @@ async function save() {

{{ name }}

-
-

安装路径: {{ pathes()[i][0] +
diff --git a/src/client/component/gitadora/env.cpp b/src/client/component/gitadora/env.cpp index 119f8a8..05970b7 100644 --- a/src/client/component/gitadora/env.cpp +++ b/src/client/component/gitadora/env.cpp @@ -7,8 +7,6 @@ #include #include -#define GITADORA_TARGET_VERSION "U32:J:A:A:2024021300" - namespace gitadora::env { const char* get_cmdline() diff --git a/src/client/component/iidx/custom_resolution.cpp b/src/client/component/iidx/custom_resolution.cpp index 6b36bc2..3b538f2 100644 --- a/src/client/component/iidx/custom_resolution.cpp +++ b/src/client/component/iidx/custom_resolution.cpp @@ -15,16 +15,23 @@ namespace iidx::custom_resolution { static auto w = mode() == 1 ? GetSystemMetrics(SM_CXSCREEN) : std::stoi(game::environment::get_param("IIDX_RESOLTION_W")); - - return w; + if (w == 0)//֪ΪʲôֱʵʱΪ0 ֮⴦һ + { + return GetSystemMetrics(SM_CXSCREEN); + } + return 1920; } int height() { static auto h = mode() == 1 ? GetSystemMetrics(SM_CYSCREEN) : std::stoi(game::environment::get_param("IIDX_RESOLTION_H")); + if (h == 0) + { + return GetSystemMetrics(SM_CYSCREEN); + } - return h; + return 1200; } namespace diff --git a/src/client/component/iidx/d3d9_proxy/interface_ex.cpp b/src/client/component/iidx/d3d9_proxy/interface_ex.cpp index 732e94d..0e9256e 100644 --- a/src/client/component/iidx/d3d9_proxy/interface_ex.cpp +++ b/src/client/component/iidx/d3d9_proxy/interface_ex.cpp @@ -15,6 +15,15 @@ d3d9ex_proxy::d3d9ex_proxy(IDirect3D9Ex* orig) { this->m_d3d = orig; + D3DDISPLAYMODE _D3DDISPLAYMODE{}; + + orig->GetAdapterDisplayMode(D3DADAPTER_DEFAULT, &_D3DDISPLAYMODE); + + if (_D3DDISPLAYMODE.RefreshRate>=120) + { + has120hz = true; + } + DEVMODE dm{ .dmSize = sizeof(DEVMODE), .dmDriverExtra = 0, @@ -87,26 +96,26 @@ UINT __stdcall d3d9ex_proxy::GetAdapterModeCount(UINT Adapter, D3DFORMAT Format) HRESULT __stdcall d3d9ex_proxy::EnumAdapterModes(UINT Adapter, D3DFORMAT Format, UINT Mode, D3DDISPLAYMODE* pMode) { - if (iidx::custom_resolution::mode() != 0 && (has120hz || has119hz || has60hz || has59hz)) + if (iidx::custom_resolution::mode() != 0 || (has120hz || has119hz || has60hz || has59hz)) { pMode->Format = Format; - pMode->Width = 1920; - pMode->Height = 1080; + pMode->Width = iidx::custom_resolution::width(); + pMode->Height = iidx::custom_resolution::height(); if (Mode) return D3DERR_INVALIDCALL; - if (has120hz) - pMode->RefreshRate = 120; - - if (has119hz) - pMode->RefreshRate = 119; + if (has59hz) + pMode->RefreshRate = 59; if (has60hz) pMode->RefreshRate = 60; - if (has59hz) - pMode->RefreshRate = 59; + if (has119hz) + pMode->RefreshRate = 119; + + if (has120hz) + pMode->RefreshRate = 120; return D3D_OK; } diff --git a/src/client/component/iidx/env.cpp b/src/client/component/iidx/env.cpp index ecd0327..07519cd 100644 --- a/src/client/component/iidx/env.cpp +++ b/src/client/component/iidx/env.cpp @@ -7,8 +7,6 @@ #include #include -#define IIDX_TARGET_VERSION "P2D:J:B:A:2024080500" - namespace iidx::env { const char* get_cmdline() diff --git a/src/client/component/sdvx/env.cpp b/src/client/component/sdvx/env.cpp index 71091ce..71ed734 100644 --- a/src/client/component/sdvx/env.cpp +++ b/src/client/component/sdvx/env.cpp @@ -7,8 +7,6 @@ #include #include -#define SDVX_TARGET_VERSION "QCV:J:B:A:2024080700" - namespace sdvx::env { const char* get_cmdline() diff --git a/src/client/game/game.cpp b/src/client/game/game.cpp index 10a13ad..d748256 100644 --- a/src/client/game/game.cpp +++ b/src/client/game/game.cpp @@ -50,7 +50,7 @@ namespace game std::string result; auto size = GetEnvironmentVariableA(key.data(), nullptr, 0); - if (!size) + if (!size) return result; result.resize(size); @@ -68,7 +68,12 @@ namespace game std::string get_string() { const auto current_game = get_game(); - switch (current_game) + return get_string(current_game); + } + + std::string get_string(launcher::game game_type) + { + switch (game_type) { case launcher::game::iidx: return "beatmania IIDX INFINITAS"; @@ -80,23 +85,22 @@ namespace game return "GITADORA"; default: - return "Unknown (" + std::to_string(static_cast(current_game)) + ")"; + return "Unknown (" + std::to_string(static_cast(game_type)) + ")"; } } std::string get_version() { if (!inited) - throw std::runtime_error{"Game environment not ready"}; - + throw std::runtime_error{ "Game environment not ready" }; static auto version = game_module.get_version(); return version; } - std::string get_reg_value(std::string const &query) + static std::string get_reg_value(launcher::game game_type, std::string const& query) { HKEY key; - auto path = "SOFTWARE\\KONAMI\\" + get_string(); + auto path = "SOFTWARE\\KONAMI\\" + get_string(game_type); if (RegOpenKeyExA(HKEY_CURRENT_USER, path.data(), 0, KEY_READ | KEY_WOW64_64KEY, &key) && RegOpenKeyExA(HKEY_LOCAL_MACHINE, path.data(), 0, KEY_READ | KEY_WOW64_64KEY, &key)) @@ -130,6 +134,10 @@ namespace game return value; } + std::string get_reg_value(std::string const& query) { + return get_reg_value(get_game(), query); + } + std::filesystem::path get_install_path() { return get_reg_value("InstallDir"); @@ -139,5 +147,110 @@ namespace game { return get_reg_value("ResourceDir"); } - } + + static std::filesystem::path get_install_path(launcher::game game_type) + { + return get_reg_value(game_type, "InstallDir"); + } + + static std::filesystem::path get_resource_path(launcher::game game_type) + { + return get_reg_value(game_type, "ResourceDir"); + } + + + void gamemeta::ensure_created(launcher::game game_type) + { + if (inited) + { + return; + } + this->game_type = game_type; + try + { + install_path = game::environment::get_install_path(game_type); + resource_path = game::environment::get_resource_path(game_type); + switch (game_type) + { + case launcher::game::iidx: + { + game_module_path = install_path / "game" / "app" / "bm2dx.exe"; + settings_module_path = install_path / "launcher" / "modules" / "bm2dx_settings.exe"; + updater_module_path = install_path / "launcher" / "modules" / "bm2dx_updater.exe"; + game_module_target_version = IIDX_TARGET_VERSION; + break; + } + case launcher::game::sdvx: + { + game_module_path = install_path / "game" / "modules" / "sv6c.exe"; + settings_module_path = install_path / "launcher" / "modules" / "settings.exe"; + updater_module_path = install_path / "launcher" / "modules" / "updater.exe"; + game_module_target_version = SDVX_TARGET_VERSION; + break; + } + case launcher::game::gitadora: + { + game_module_path = install_path / "game" / "modules" / "gitadora.exe"; + settings_module_path = install_path / "launcher" / "modules" / "settings.exe"; + updater_module_path = install_path / "launcher" / "modules" / "updater.exe"; + game_module_target_version = GITADORA_TARGET_VERSION; + break; + } + default: + { + throw std::exception("unexcepted gametype"); + break; + } + } + game_module_version = utils::nt::library::get_version(game_module_path.string()); + installed = true; + } + catch (const std::exception) + { + installed = false; + } + inited = true; + } + + static gamemeta gamemetas[(unsigned long long)launcher::game::count]; + + gamemeta gamemeta::get_gamemeta(launcher::game game_type) + { + gamemeta& gamemeta = gamemetas[(unsigned long long)game_type]; + gamemeta.ensure_created(game_type); + return gamemeta; + } + bool gamemeta::get_install_state() + { + return installed; + } + std::string gamemeta::get_install_path() + { + return install_path.string(); + } + std::string gamemeta::get_resource_path() + { + return resource_path.string(); + } + std::string gamemeta::get_game_module_path() + { + return game_module_path.string(); + } + std::string gamemeta::get_settings_module_path() + { + return settings_module_path.string(); + } + std::string gamemeta::get_updater_module_path() + { + return updater_module_path.string(); + } + std::string gamemeta::get_game_module_version() + { + return game_module_version; + } + std::string gamemeta::get_game_module_target_version() + { + return game_module_target_version; + } +} } diff --git a/src/client/game/game.hpp b/src/client/game/game.hpp index 444df63..8d2be14 100644 --- a/src/client/game/game.hpp +++ b/src/client/game/game.hpp @@ -5,6 +5,11 @@ #include #include +#define IIDX_TARGET_VERSION "P2D:J:B:A:2024080500" +#define SDVX_TARGET_VERSION "QCV:J:B:A:2024080700" +#define GITADORA_TARGET_VERSION "U32:J:A:A:2024021300" + + namespace game { namespace environment @@ -18,6 +23,7 @@ namespace game void set_game(launcher::game mode); std::string get_string(); + std::string get_string(launcher::game); std::string get_version(); utils::nt::library& get_module(); void set_module(utils::nt::library&); @@ -27,6 +33,37 @@ namespace game std::filesystem::path get_install_path(); std::filesystem::path get_resource_path(); + std::filesystem::path get_install_path(launcher::game); + std::filesystem::path get_resource_path(launcher::game); + + + class gamemeta + { + public: + bool get_install_state(); + std::string get_install_path(); + std::string get_resource_path(); + std::string get_game_module_path(); + std::string get_settings_module_path(); + std::string get_updater_module_path(); + std::string get_game_module_version(); + std::string get_game_module_target_version(); + static gamemeta get_gamemeta(launcher::game); + private: + launcher::game game_type = launcher::game::invalid; + bool installed = false; + bool inited = false; + std::filesystem::path install_path; + std::filesystem::path resource_path; + std::filesystem::path game_module_path; + std::filesystem::path settings_module_path; + std::filesystem::path updater_module_path; + std::string game_module_version; + std::string game_module_target_version; + void ensure_created(launcher::game); + }; + + } template diff --git a/src/client/launcher/launcher.cpp b/src/client/launcher/launcher.cpp index 53de9c4..15e5b3e 100644 --- a/src/client/launcher/launcher.cpp +++ b/src/client/launcher/launcher.cpp @@ -88,21 +88,61 @@ void launcher::create_main_menu() smartview_->expose("detectGameInstall", [](int game_index) -> std::vector { ::game::environment::set_game(static_cast(game_index)); + try + { + if (game_index >= (int)launcher::game::count || game_index <= (int)launcher::game::invalid) + { + return {}; + } + auto gamemeta = ::game::environment::gamemeta::get_gamemeta((launcher::game)game_index); + if (!gamemeta.get_install_state()) { + return {}; + } + auto install = gamemeta.get_install_path(); + auto resource = gamemeta.get_resource_path(); + return { install, resource}; + } + catch (std::exception) + { + } + + return {}; + }, true + ); + smartview_->expose("detectGameInstall1", [](int game_index) -> std::string + { try { - auto install = ::game::environment::get_install_path().string(); - auto resource = ::game::environment::get_resource_path().string(); + if (game_index >= (int)launcher::game::count || game_index <= (int)launcher::game::invalid) + { + return {}; + } + auto gamemeta = ::game::environment::gamemeta::get_gamemeta((launcher::game)game_index); + nlohmann::json j1; + j1["game_type"] = game_index; + j1["game_name"] = ::game::environment::get_string((launcher::game)game_index); + j1["installed"] = gamemeta.get_install_state(); + if (gamemeta.get_install_state()) + { + j1["install_path"] = gamemeta.get_install_path(); + j1["resource_path"] = gamemeta.get_resource_path(); + j1["game_module_path"] = gamemeta.get_game_module_path(); + j1["settings_module_path"] = gamemeta.get_settings_module_path(); + j1["updater_module_path"] = gamemeta.get_updater_module_path(); + j1["game_module_version"] = gamemeta.get_game_module_version(); + j1["game_module_target_version"] = gamemeta.get_game_module_target_version(); + } + auto json = j1.dump(); - return { install, resource }; + return json; } catch (std::exception) { - } return {}; - } + }, true ); smartview_->expose("readFile", [](std::string path) -> std::string @@ -312,14 +352,14 @@ void launcher::create_main_menu() #if _DEBUG smartview_->set_dev_tools(true); #endif - + #if !USE_EMBEDDED - smartview_->set_url("http://localhost:5173/"); + smartview_->set_url("http://localhost:5173/"); #else smartview_->embed(laochan::embedded::all()); smartview_->serve(""); #endif - } +} launcher::game launcher::run() const { diff --git a/src/client/main.cpp b/src/client/main.cpp index fec722f..5c4b636 100644 --- a/src/client/main.cpp +++ b/src/client/main.cpp @@ -159,11 +159,54 @@ launcher::game detect_game_from_arguments() return launcher::game::invalid; } + +void enableEcoQoS() { + auto sharedUserData = (BYTE*)0x7FFE0000; + auto major = *(ULONG*)(sharedUserData + 0x26c); + auto minor = *(ULONG*)(sharedUserData + 0x270); + auto build = *(ULONG*)(sharedUserData + 0x260); + auto CurrentProcessHandle = GetCurrentProcess(); + MEMORY_PRIORITY_INFORMATION _MEMORY_PRIORITY_INFORMATION{}; + _MEMORY_PRIORITY_INFORMATION.MemoryPriority = 3; + PROCESS_POWER_THROTTLING_STATE _PROCESS_POWER_THROTTLING_STATE{}; + _PROCESS_POWER_THROTTLING_STATE.Version = PROCESS_POWER_THROTTLING_CURRENT_VERSION; + _PROCESS_POWER_THROTTLING_STATE.ControlMask = PROCESS_POWER_THROTTLING_EXECUTION_SPEED; + _PROCESS_POWER_THROTTLING_STATE.StateMask = 1; + //if (major >= 10 && build >= 22000)//Windows 11 EcoQoS + if (major >= 10 && build >= 16299)//Windows 1709 LowQoS + { + auto test1 = SetProcessInformation(CurrentProcessHandle, ProcessPowerThrottling, &_PROCESS_POWER_THROTTLING_STATE, sizeof(PROCESS_POWER_THROTTLING_STATE)); + auto test2 = SetProcessInformation(CurrentProcessHandle, ProcessMemoryPriority, &_MEMORY_PRIORITY_INFORMATION, sizeof(MEMORY_PRIORITY_INFORMATION)); + auto test3 = SetPriorityClass(CurrentProcessHandle, IDLE_PRIORITY_CLASS); + } +} + +void disableEcoQoS() { + auto sharedUserData = (BYTE*)0x7FFE0000; + auto major = *(ULONG*)(sharedUserData + 0x26c); + auto minor = *(ULONG*)(sharedUserData + 0x270); + auto build = *(ULONG*)(sharedUserData + 0x260); + auto CurrentProcessHandle = GetCurrentProcess(); + MEMORY_PRIORITY_INFORMATION _MEMORY_PRIORITY_INFORMATION{}; + _MEMORY_PRIORITY_INFORMATION.MemoryPriority = 5; + PROCESS_POWER_THROTTLING_STATE _PROCESS_POWER_THROTTLING_STATE{}; + _PROCESS_POWER_THROTTLING_STATE.Version = PROCESS_POWER_THROTTLING_CURRENT_VERSION; + _PROCESS_POWER_THROTTLING_STATE.ControlMask = PROCESS_POWER_THROTTLING_EXECUTION_SPEED; + _PROCESS_POWER_THROTTLING_STATE.StateMask = 0; + //if (major >= 10 && build >= 22000)//Windows 11 EcoQoS + if (major >= 10 && build >= 16299)//Windows 1709 LowQoS + { + SetProcessInformation(CurrentProcessHandle, ProcessPowerThrottling, &_PROCESS_POWER_THROTTLING_STATE, sizeof(PROCESS_POWER_THROTTLING_STATE)); + SetProcessInformation(CurrentProcessHandle, ProcessMemoryPriority, &_MEMORY_PRIORITY_INFORMATION, sizeof(MEMORY_PRIORITY_INFORMATION)); + SetPriorityClass(CurrentProcessHandle, HIGH_PRIORITY_CLASS); + } +} + int main() { FARPROC entry_point; enable_dpi_awareness(); - + enableEcoQoS(); // pin system dinput8 here to prevent old client from loading LoadLibraryA("dinput8.dll"); @@ -191,6 +234,7 @@ int main() return 0; } + disableEcoQoS(); try_set_game_environment(game); component_loader::create_components(game::environment::get_game()); @@ -214,7 +258,6 @@ int main() return 1; } } - return static_cast(entry_point()); } diff --git a/src/client/resource.g.rc b/src/client/resource.g.rc index 056a0cf..a168a2e 100644 --- a/src/client/resource.g.rc +++ b/src/client/resource.g.rc @@ -3,16 +3,16 @@ #include "resource.hpp" -ID_ASSET_0 RCDATA "resources/ui-dist/favicon.ico" -ID_ASSET_1 RCDATA "resources/ui-dist/index.html" -ID_ASSET_2 RCDATA "resources/ui-dist/assets/gitadora-cQ1BqJ9U.webm" -ID_ASSET_3 RCDATA "resources/ui-dist/assets/howler-CCqh-U3u.js" -ID_ASSET_4 RCDATA "resources/ui-dist/assets/iidx-BAOXvOlX.jpg" -ID_ASSET_5 RCDATA "resources/ui-dist/assets/index-C6Vda7tP.css" -ID_ASSET_6 RCDATA "resources/ui-dist/assets/index-vWtKjMKp.js" -ID_ASSET_7 RCDATA "resources/ui-dist/assets/moai-bg-BU2gdkgA.jpg" -ID_ASSET_8 RCDATA "resources/ui-dist/assets/msyhsb-CG5zefP1.woff2" -ID_ASSET_9 RCDATA "resources/ui-dist/assets/num-BvRoq2n1.png" -ID_ASSET_10 RCDATA "resources/ui-dist/assets/num-z0VsZKpR.mp3" -ID_ASSET_11 RCDATA "resources/ui-dist/assets/sdvx-BIdRBwi8.jpg" -ID_ASSET_12 RCDATA "resources/ui-dist/assets/sgm-BpMyBNft.woff2" +ID_ASSET_0 RCDATA "resources/ui-dist/favicon.ico" +ID_ASSET_1 RCDATA "resources/ui-dist/index.html" +ID_ASSET_2 RCDATA "resources/ui-dist/assets/gitadora-cQ1BqJ9U.webm" +ID_ASSET_3 RCDATA "resources/ui-dist/assets/howler-evgYh250.js" +ID_ASSET_4 RCDATA "resources/ui-dist/assets/iidx-BAOXvOlX.jpg" +ID_ASSET_5 RCDATA "resources/ui-dist/assets/index-B4rXEVp4.css" +ID_ASSET_6 RCDATA "resources/ui-dist/assets/index-Dyi-fEzI.js" +ID_ASSET_7 RCDATA "resources/ui-dist/assets/moai-bg-BU2gdkgA.jpg" +ID_ASSET_8 RCDATA "resources/ui-dist/assets/msyhsb-CG5zefP1.woff2" +ID_ASSET_9 RCDATA "resources/ui-dist/assets/num-BvRoq2n1.png" +ID_ASSET_10 RCDATA "resources/ui-dist/assets/num-z0VsZKpR.mp3" +ID_ASSET_11 RCDATA "resources/ui-dist/assets/sdvx-BIdRBwi8.jpg" +ID_ASSET_12 RCDATA "resources/ui-dist/assets/sgm-BpMyBNft.woff2" \ No newline at end of file diff --git a/src/client/resources/all.hpp b/src/client/resources/all.hpp index 1850055..cb66e82 100644 --- a/src/client/resources/all.hpp +++ b/src/client/resources/all.hpp @@ -28,25 +28,24 @@ namespace laochan::embedded { std::map rtn; - rtn.emplace("favicon.ico", saucer::embedded_file{"image/vnd.microsoft.icon", read_resource(ID_ASSET_0)}); + rtn.emplace("favicon.ico", saucer::embedded_file{ "image/vnd.microsoft.icon", read_resource(ID_ASSET_0) }); auto root = read_resource(ID_ASSET_1); - rtn.emplace("index.html", saucer::embedded_file{"text/html", root}); - rtn.emplace("", saucer::embedded_file{"text/html", root}); - - rtn.emplace("assets/gitadora-cQ1BqJ9U.webm", saucer::embedded_file{"video/webm", read_resource(ID_ASSET_2)}); - rtn.emplace("assets/howler-CCqh-U3u.js", saucer::embedded_file{"text/javascript", read_resource(ID_ASSET_3)}); - rtn.emplace("assets/iidx-BAOXvOlX.jpg", saucer::embedded_file{"image/jpeg", read_resource(ID_ASSET_4)}); - rtn.emplace("assets/index-C6Vda7tP.css", saucer::embedded_file{"text/css", read_resource(ID_ASSET_5)}); - rtn.emplace("assets/index-vWtKjMKp.js", saucer::embedded_file{"text/javascript", read_resource(ID_ASSET_6)}); - rtn.emplace("assets/moai-bg-BU2gdkgA.jpg", saucer::embedded_file{"image/jpeg", read_resource(ID_ASSET_7)}); - rtn.emplace("assets/msyhsb-CG5zefP1.woff2", saucer::embedded_file{"font/woff2", read_resource(ID_ASSET_8)}); - rtn.emplace("assets/num-BvRoq2n1.png", saucer::embedded_file{"image/png", read_resource(ID_ASSET_9)}); - rtn.emplace("assets/num-z0VsZKpR.mp3", saucer::embedded_file{"audio/mpeg", read_resource(ID_ASSET_10)}); - rtn.emplace("assets/sdvx-BIdRBwi8.jpg", saucer::embedded_file{"image/jpeg", read_resource(ID_ASSET_11)}); - rtn.emplace("assets/sgm-BpMyBNft.woff2", saucer::embedded_file{"font/woff2", read_resource(ID_ASSET_12)}); + rtn.emplace("index.html", saucer::embedded_file{ "text/html", root }); + rtn.emplace("", saucer::embedded_file{ "text/html", root }); + + rtn.emplace("assets/gitadora-cQ1BqJ9U.webm", saucer::embedded_file{ "video/webm", read_resource(ID_ASSET_2) }); + rtn.emplace("assets/howler-evgYh250.js", saucer::embedded_file{ "text/javascript", read_resource(ID_ASSET_3) }); + rtn.emplace("assets/iidx-BAOXvOlX.jpg", saucer::embedded_file{ "image/jpeg", read_resource(ID_ASSET_4) }); + rtn.emplace("assets/index-B4rXEVp4.css", saucer::embedded_file{ "text/css", read_resource(ID_ASSET_5) }); + rtn.emplace("assets/index-Dyi-fEzI.js", saucer::embedded_file{ "text/javascript", read_resource(ID_ASSET_6) }); + rtn.emplace("assets/moai-bg-BU2gdkgA.jpg", saucer::embedded_file{ "image/jpeg", read_resource(ID_ASSET_7) }); + rtn.emplace("assets/msyhsb-CG5zefP1.woff2", saucer::embedded_file{ "font/woff2", read_resource(ID_ASSET_8) }); + rtn.emplace("assets/num-BvRoq2n1.png", saucer::embedded_file{ "image/png", read_resource(ID_ASSET_9) }); + rtn.emplace("assets/num-z0VsZKpR.mp3", saucer::embedded_file{ "audio/mpeg", read_resource(ID_ASSET_10) }); + rtn.emplace("assets/sdvx-BIdRBwi8.jpg", saucer::embedded_file{ "image/jpeg", read_resource(ID_ASSET_11) }); + rtn.emplace("assets/sgm-BpMyBNft.woff2", saucer::embedded_file{ "font/woff2", read_resource(ID_ASSET_12) }); return rtn; } -} - +} \ No newline at end of file diff --git a/src/client/resources/ui-dist/assets/howler-CCqh-U3u.js b/src/client/resources/ui-dist/assets/howler-evgYh250.js similarity index 79% rename from src/client/resources/ui-dist/assets/howler-CCqh-U3u.js rename to src/client/resources/ui-dist/assets/howler-evgYh250.js index 913df4b..944d5c3 100644 --- a/src/client/resources/ui-dist/assets/howler-CCqh-U3u.js +++ b/src/client/resources/ui-dist/assets/howler-evgYh250.js @@ -1,4 +1,4 @@ -function L(g,w){for(var r=0;ru[i]})}}}return Object.freeze(Object.defineProperty(g,Symbol.toStringTag,{value:"Module"}))}var S=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function D(g){return g&&g.__esModule&&Object.prototype.hasOwnProperty.call(g,"default")?g.default:g}var O={};/*! +import{g as L,c as S}from"./index-Dyi-fEzI.js";function D(b,g){for(var r=0;ru[i]})}}}return Object.freeze(Object.defineProperty(b,Symbol.toStringTag,{value:"Module"}))}var O={};/*! * howler.js v2.2.4 * howlerjs.com * @@ -6,7 +6,7 @@ function L(g,w){for(var r=0;r=0&&e<=1){if(t._volume=e,t._muted)return t;t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e,r.ctx.currentTime);for(var n=0;n=0;t--)e._howls[t].unload();return e.usingWebAudio&&e.ctx&&typeof e.ctx.close<"u"&&(e.ctx.close(),e.ctx=null,A()),e},codecs:function(e){return(this||r)._codecs[e.replace(/^x-/,"")]},_setup:function(){var e=this||r;if(e.state=e.ctx&&e.ctx.state||"suspended",e._autoSuspend(),!e.usingWebAudio)if(typeof Audio<"u")try{var t=new Audio;typeof t.oncanplaythrough>"u"&&(e._canPlayEvent="canplay")}catch{e.noAudio=!0}else e.noAudio=!0;try{var t=new Audio;t.muted&&(e.noAudio=!0)}catch{}return e.noAudio||e._setupCodecs(),e},_setupCodecs:function(){var e=this||r,t=null;try{t=typeof Audio<"u"?new Audio:null}catch{return e}if(!t||typeof t.canPlayType!="function")return e;var n=t.canPlayType("audio/mpeg;").replace(/^no$/,""),o=e._navigator?e._navigator.userAgent:"",l=o.match(/OPR\/(\d+)/g),_=l&&parseInt(l[0].split("/")[1],10)<33,a=o.indexOf("Safari")!==-1&&o.indexOf("Chrome")===-1,f=o.match(/Version\/(.*?) /),m=a&&f&&parseInt(f[1],10)<15;return e._codecs={mp3:!!(!_&&(n||t.canPlayType("audio/mp3;").replace(/^no$/,""))),mpeg:!!n,opus:!!t.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(t.canPlayType('audio/wav; codecs="1"')||t.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!t.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!t.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/m4a;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(t.canPlayType("audio/x-m4b;")||t.canPlayType("audio/m4b;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(t.canPlayType("audio/x-mp4;")||t.canPlayType("audio/mp4;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!(!m&&t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!!(!m&&t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!t.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(t.canPlayType("audio/x-flac;")||t.canPlayType("audio/flac;")).replace(/^no$/,"")},e},_unlockAudio:function(){var e=this||r;if(!(e._audioUnlocked||!e.ctx)){e._audioUnlocked=!1,e.autoUnlock=!1,!e._mobileUnloaded&&e.ctx.sampleRate!==44100&&(e._mobileUnloaded=!0,e.unload()),e._scratchBuffer=e.ctx.createBuffer(1,1,22050);var t=function(n){for(;e._html5AudioPool.length"u"?m.noteOn(0):m.start(0),typeof e.ctx.resume=="function"&&e.ctx.resume(),m.onended=function(){m.disconnect(0),e._audioUnlocked=!0,document.removeEventListener("touchstart",t,!0),document.removeEventListener("touchend",t,!0),document.removeEventListener("click",t,!0),document.removeEventListener("keydown",t,!0);for(var y=0;y"u"||!r.usingWebAudio)){for(var t=0;t"u"||!r.usingWebAudio))return e.state==="running"&&e.ctx.state!=="interrupted"&&e._suspendTimer?(clearTimeout(e._suspendTimer),e._suspendTimer=null):e.state==="suspended"||e.state==="running"&&e.ctx.state==="interrupted"?(e.ctx.resume().then(function(){e.state="running";for(var t=0;t"u"&&(e="__default",!n._playLock)){for(var l=0,_=0;_0?a._seek:n._sprite[e][0]/1e3),y=Math.max(0,(n._sprite[e][0]+n._sprite[e][1])/1e3-m),b=y*1e3/Math.abs(a._rate),T=n._sprite[e][0]/1e3,k=(n._sprite[e][0]+n._sprite[e][1])/1e3;a._sprite=e,a._ended=!1;var I=function(){a._paused=!1,a._seek=m,a._start=T,a._stop=k,a._loop=!!(a._loop||n._sprite[e][2])};if(m>=k){n._ended(a);return}var v=a._node;if(n._webAudio){var P=function(){n._playLock=!1,I(),n._refreshBuffer(a);var x=a._muted||n._muted?0:a._volume;v.gain.setValueAtTime(x,r.ctx.currentTime),a._playStart=r.ctx.currentTime,typeof v.bufferSource.start>"u"?a._loop?v.bufferSource.noteGrainOn(0,m,86400):v.bufferSource.noteGrainOn(0,m,y):a._loop?v.bufferSource.start(0,m,86400):v.bufferSource.start(0,m,y),b!==1/0&&(n._endTimers[a._id]=setTimeout(n._ended.bind(n,a),b)),t||setTimeout(function(){n._emit("play",a._id),n._loadQueue()},0)};r.state==="running"&&r.ctx.state!=="interrupted"?P():(n._playLock=!0,n.once("resume",P),n._clearTimer(a._id))}else{var H=function(){v.currentTime=m,v.muted=a._muted||n._muted||r._muted||v.muted,v.volume=a._volume*r.volume(),v.playbackRate=a._rate;try{var x=v.play();if(x&&typeof Promise<"u"&&(x instanceof Promise||typeof x.then=="function")?(n._playLock=!0,I(),x.then(function(){n._playLock=!1,v._unlocked=!0,t?n._loadQueue():n._emit("play",a._id)}).catch(function(){n._playLock=!1,n._emit("playerror",a._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),a._ended=!0,a._paused=!0})):t||(n._playLock=!1,I(),n._emit("play",a._id)),v.playbackRate=a._rate,v.paused){n._emit("playerror",a._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");return}e!=="__default"||a._loop?n._endTimers[a._id]=setTimeout(n._ended.bind(n,a),b):(n._endTimers[a._id]=function(){n._ended(a),v.removeEventListener("ended",n._endTimers[a._id],!1)},v.addEventListener("ended",n._endTimers[a._id],!1))}catch(B){n._emit("playerror",a._id,B)}};v.src==="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"&&(v.src=n._src,v.load());var F=window&&window.ejecta||!v.readyState&&r._navigator.isCocoonJS;if(v.readyState>=3||F)H();else{n._playLock=!0,n._state="loading";var M=function(){n._state="loaded",H(),v.removeEventListener(r._canPlayEvent,M,!1)};v.addEventListener(r._canPlayEvent,M,!1),n._clearTimer(a._id)}}return a._id},pause:function(e){var t=this;if(t._state!=="loaded"||t._playLock)return t._queue.push({event:"pause",action:function(){t.pause(e)}}),t;for(var n=t._getSoundIds(e),o=0;o"u"?l._node.bufferSource.noteOff(0):l._node.bufferSource.stop(0),t._cleanBuffer(l._node)}else(!isNaN(l._node.duration)||l._node.duration===1/0)&&l._node.pause();arguments[1]||t._emit("pause",l?l._id:null)}return t},stop:function(e,t){var n=this;if(n._state!=="loaded"||n._playLock)return n._queue.push({event:"stop",action:function(){n.stop(e)}}),n;for(var o=n._getSoundIds(e),l=0;l"u"?_._node.bufferSource.noteOff(0):_._node.bufferSource.stop(0),n._cleanBuffer(_._node)):(!isNaN(_._node.duration)||_._node.duration===1/0)&&(_._node.currentTime=_._start||0,_._node.pause(),_._node.duration===1/0&&n._clearSound(_._node))),t||n._emit("stop",_._id))}return n},mute:function(e,t){var n=this;if(n._state!=="loaded"||n._playLock)return n._queue.push({event:"mute",action:function(){n.mute(e,t)}}),n;if(typeof t>"u")if(typeof e=="boolean")n._muted=e;else return n._muted;for(var o=n._getSoundIds(t),l=0;l"u"){var l=e._getSoundIds(),_=l.indexOf(t[0]);_>=0?o=parseInt(t[0],10):n=parseFloat(t[0])}else t.length>=2&&(n=parseFloat(t[0]),o=parseInt(t[1],10));var a;if(typeof n<"u"&&n>=0&&n<=1){if(e._state!=="loaded"||e._playLock)return e._queue.push({event:"volume",action:function(){e.volume.apply(e,t)}}),e;typeof o>"u"&&(e._volume=n),o=e._getSoundIds(o);for(var f=0;f"u")}}return l},_startFadeInterval:function(e,t,n,o,l,_){var a=this,f=t,m=n-t,y=Math.abs(m/.01),b=Math.max(4,y>0?o/y:o),T=Date.now();e._fadeTo=n,e._interval=setInterval(function(){var k=(Date.now()-T)/o;T=Date.now(),f+=m*k,f=Math.round(f*100)/100,m<0?f=Math.max(n,f):f=Math.min(n,f),a._webAudio?e._volume=f:a.volume(f,e._id,!0),_&&(a._volume=f),(nt&&f>=n)&&(clearInterval(e._interval),e._interval=null,e._fadeTo=null,a.volume(n,e._id),a._emit("fade",e._id))},b)},_stopFade:function(e){var t=this,n=t._soundById(e);return n&&n._interval&&(t._webAudio&&n._node.gain.cancelScheduledValues(r.ctx.currentTime),clearInterval(n._interval),n._interval=null,t.volume(n._fadeTo,e),n._fadeTo=null,t._emit("fade",e)),t},loop:function(){var e=this,t=arguments,n,o,l;if(t.length===0)return e._loop;if(t.length===1)if(typeof t[0]=="boolean")n=t[0],e._loop=n;else return l=e._soundById(parseInt(t[0],10)),l?l._loop:!1;else t.length===2&&(n=t[0],o=parseInt(t[1],10));for(var _=e._getSoundIds(o),a=0;a<_.length;a++)l=e._soundById(_[a]),l&&(l._loop=n,e._webAudio&&l._node&&l._node.bufferSource&&(l._node.bufferSource.loop=n,n&&(l._node.bufferSource.loopStart=l._start||0,l._node.bufferSource.loopEnd=l._stop,e.playing(_[a])&&(e.pause(_[a],!0),e.play(_[a],!0)))));return e},rate:function(){var e=this,t=arguments,n,o;if(t.length===0)o=e._sounds[0]._id;else if(t.length===1){var l=e._getSoundIds(),_=l.indexOf(t[0]);_>=0?o=parseInt(t[0],10):n=parseFloat(t[0])}else t.length===2&&(n=parseFloat(t[0]),o=parseInt(t[1],10));var a;if(typeof n=="number"){if(e._state!=="loaded"||e._playLock)return e._queue.push({event:"rate",action:function(){e.rate.apply(e,t)}}),e;typeof o>"u"&&(e._rate=n),o=e._getSoundIds(o);for(var f=0;f=0?o=parseInt(t[0],10):e._sounds.length&&(o=e._sounds[0]._id,n=parseFloat(t[0]))}else t.length===2&&(n=parseFloat(t[0]),o=parseInt(t[1],10));if(typeof o>"u")return 0;if(typeof n=="number"&&(e._state!=="loaded"||e._playLock))return e._queue.push({event:"seek",action:function(){e.seek.apply(e,t)}}),e;var a=e._soundById(o);if(a)if(typeof n=="number"&&n>=0){var f=e.playing(o);f&&e.pause(o,!0),a._seek=n,a._ended=!1,e._clearTimer(o),!e._webAudio&&a._node&&!isNaN(a._node.duration)&&(a._node.currentTime=n);var m=function(){f&&e.play(o,!0),e._emit("seek",o)};if(f&&!e._webAudio){var y=function(){e._playLock?setTimeout(y,0):m()};setTimeout(y,0)}else m()}else if(e._webAudio){var b=e.playing(o)?r.ctx.currentTime-a._playStart:0,T=a._rateSeek?a._rateSeek-a._seek:0;return a._seek+(T+b*Math.abs(a._rate))}else return a._node.currentTime;return e},playing:function(e){var t=this;if(typeof e=="number"){var n=t._soundById(e);return n?!n._paused:!1}for(var o=0;o=0&&r._howls.splice(o,1);var l=!0;for(n=0;n=0){l=!1;break}return d&&l&&delete d[e._src],r.noAudio=!1,e._state="unloaded",e._sounds=[],e=null,null},on:function(e,t,n,o){var l=this,_=l["_on"+e];return typeof t=="function"&&_.push(o?{id:n,fn:t,once:o}:{id:n,fn:t}),l},off:function(e,t,n){var o=this,l=o["_on"+e],_=0;if(typeof t=="number"&&(n=t,t=null),t||n)for(_=0;_=0;_--)(!l[_].id||l[_].id===t||e==="load")&&(setTimeout((function(a){a.call(this,t,n)}).bind(o,l[_].fn),0),l[_].once&&o.off(e,l[_].fn,l[_].id));return o._loadQueue(e),o},_loadQueue:function(e){var t=this;if(t._queue.length>0){var n=t._queue[0];n.event===e&&(t._queue.shift(),t._loadQueue()),e||n.action()}return t},_ended:function(e){var t=this,n=e._sprite;if(!t._webAudio&&e._node&&!e._node.paused&&!e._node.ended&&e._node.currentTime=0;o--){if(n<=t)return;e._sounds[o]._ended&&(e._webAudio&&e._sounds[o]._node&&e._sounds[o]._node.disconnect(0),e._sounds.splice(o,1),n--)}}},_getSoundIds:function(e){var t=this;if(typeof e>"u"){for(var n=[],o=0;o=0;if(!e.bufferSource)return t;if(r._scratchBuffer&&e.bufferSource&&(e.bufferSource.onended=null,e.bufferSource.disconnect(0),n))try{e.bufferSource.buffer=r._scratchBuffer}catch{}return e.bufferSource=null,t},_clearSound:function(e){var t=/MSIE |Trident\//.test(r._navigator&&r._navigator.userAgent);t||(e.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var i=function(e){this._parent=e,this.init()};i.prototype={init:function(){var e=this,t=e._parent;return e._muted=t._muted,e._loop=t._loop,e._volume=t._volume,e._rate=t._rate,e._seek=0,e._paused=!0,e._ended=!0,e._sprite="__default",e._id=++r._counter,t._sounds.push(e),e.create(),e},create:function(){var e=this,t=e._parent,n=r._muted||e._muted||e._parent._muted?0:e._volume;return t._webAudio?(e._node=typeof r.ctx.createGain>"u"?r.ctx.createGainNode():r.ctx.createGain(),e._node.gain.setValueAtTime(n,r.ctx.currentTime),e._node.paused=!0,e._node.connect(r.masterGain)):r.noAudio||(e._node=r._obtainHtml5Audio(),e._errorFn=e._errorListener.bind(e),e._node.addEventListener("error",e._errorFn,!1),e._loadFn=e._loadListener.bind(e),e._node.addEventListener(r._canPlayEvent,e._loadFn,!1),e._endFn=e._endListener.bind(e),e._node.addEventListener("ended",e._endFn,!1),e._node.src=t._src,e._node.preload=t._preload===!0?"auto":t._preload,e._node.volume=n*r.volume(),e._node.load()),e},reset:function(){var e=this,t=e._parent;return e._muted=t._muted,e._loop=t._loop,e._volume=t._volume,e._rate=t._rate,e._seek=0,e._rateSeek=0,e._paused=!0,e._ended=!0,e._sprite="__default",e._id=++r._counter,e},_errorListener:function(){var e=this;e._parent._emit("loaderror",e._id,e._node.error?e._node.error.code:0),e._node.removeEventListener("error",e._errorFn,!1)},_loadListener:function(){var e=this,t=e._parent;t._duration=Math.ceil(e._node.duration*10)/10,Object.keys(t._sprite).length===0&&(t._sprite={__default:[0,t._duration*1e3]}),t._state!=="loaded"&&(t._state="loaded",t._emit("load"),t._loadQueue()),e._node.removeEventListener(r._canPlayEvent,e._loadFn,!1)},_endListener:function(){var e=this,t=e._parent;t._duration===1/0&&(t._duration=Math.ceil(e._node.duration*10)/10,t._sprite.__default[1]===1/0&&(t._sprite.__default[1]=t._duration*1e3),t._ended(e)),e._node.removeEventListener("ended",e._endFn,!1)}};var d={},c=function(e){var t=e._src;if(d[t]){e._duration=d[t].duration,s(e);return}if(/^data:[^;]+;base64,/.test(t)){for(var n=atob(t.split(",")[1]),o=new Uint8Array(n.length),l=0;l0?(d[t._src]=l,s(t,l)):n()};typeof Promise<"u"&&r.ctx.decodeAudioData.length===1?r.ctx.decodeAudioData(e).then(o).catch(n):r.ctx.decodeAudioData(e,o,n)},s=function(e,t){t&&!e._duration&&(e._duration=t.duration),Object.keys(e._sprite).length===0&&(e._sprite={__default:[0,e._duration*1e3]}),e._state!=="loaded"&&(e._state="loaded",e._emit("load"),e._loadQueue())},A=function(){if(r.usingWebAudio){try{typeof AudioContext<"u"?r.ctx=new AudioContext:typeof webkitAudioContext<"u"?r.ctx=new webkitAudioContext:r.usingWebAudio=!1}catch{r.usingWebAudio=!1}r.ctx||(r.usingWebAudio=!1);var e=/iP(hone|od|ad)/.test(r._navigator&&r._navigator.platform),t=r._navigator&&r._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),n=t?parseInt(t[1],10):null;if(e&&n&&n<9){var o=/safari/.test(r._navigator&&r._navigator.userAgent.toLowerCase());r._navigator&&!o&&(r.usingWebAudio=!1)}r.usingWebAudio&&(r.masterGain=typeof r.ctx.createGain>"u"?r.ctx.createGainNode():r.ctx.createGain(),r.masterGain.gain.setValueAtTime(r._muted?0:r._volume,r.ctx.currentTime),r.masterGain.connect(r.ctx.destination)),r._setup()}};g.Howler=r,g.Howl=u,typeof S<"u"?(S.HowlerGlobal=w,S.Howler=r,S.Howl=u,S.Sound=i):typeof window<"u"&&(window.HowlerGlobal=w,window.Howler=r,window.Howl=u,window.Sound=i)})();/*! + */(function(b){(function(){var g=function(){this.init()};g.prototype={init:function(){var e=this||r;return e._counter=1e3,e._html5AudioPool=[],e.html5PoolSize=10,e._codecs={},e._howls=[],e._muted=!1,e._volume=1,e._canPlayEvent="canplaythrough",e._navigator=typeof window<"u"&&window.navigator?window.navigator:null,e.masterGain=null,e.noAudio=!1,e.usingWebAudio=!0,e.autoSuspend=!0,e.ctx=null,e.autoUnlock=!0,e._setup(),e},volume:function(e){var t=this||r;if(e=parseFloat(e),t.ctx||A(),typeof e<"u"&&e>=0&&e<=1){if(t._volume=e,t._muted)return t;t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e,r.ctx.currentTime);for(var n=0;n=0;t--)e._howls[t].unload();return e.usingWebAudio&&e.ctx&&typeof e.ctx.close<"u"&&(e.ctx.close(),e.ctx=null,A()),e},codecs:function(e){return(this||r)._codecs[e.replace(/^x-/,"")]},_setup:function(){var e=this||r;if(e.state=e.ctx&&e.ctx.state||"suspended",e._autoSuspend(),!e.usingWebAudio)if(typeof Audio<"u")try{var t=new Audio;typeof t.oncanplaythrough>"u"&&(e._canPlayEvent="canplay")}catch{e.noAudio=!0}else e.noAudio=!0;try{var t=new Audio;t.muted&&(e.noAudio=!0)}catch{}return e.noAudio||e._setupCodecs(),e},_setupCodecs:function(){var e=this||r,t=null;try{t=typeof Audio<"u"?new Audio:null}catch{return e}if(!t||typeof t.canPlayType!="function")return e;var n=t.canPlayType("audio/mpeg;").replace(/^no$/,""),o=e._navigator?e._navigator.userAgent:"",_=o.match(/OPR\/(\d+)/g),l=_&&parseInt(_[0].split("/")[1],10)<33,a=o.indexOf("Safari")!==-1&&o.indexOf("Chrome")===-1,f=o.match(/Version\/(.*?) /),m=a&&f&&parseInt(f[1],10)<15;return e._codecs={mp3:!!(!l&&(n||t.canPlayType("audio/mp3;").replace(/^no$/,""))),mpeg:!!n,opus:!!t.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(t.canPlayType('audio/wav; codecs="1"')||t.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!t.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!t.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/m4a;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(t.canPlayType("audio/x-m4b;")||t.canPlayType("audio/m4b;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(t.canPlayType("audio/x-mp4;")||t.canPlayType("audio/mp4;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!(!m&&t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!!(!m&&t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!t.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(t.canPlayType("audio/x-flac;")||t.canPlayType("audio/flac;")).replace(/^no$/,"")},e},_unlockAudio:function(){var e=this||r;if(!(e._audioUnlocked||!e.ctx)){e._audioUnlocked=!1,e.autoUnlock=!1,!e._mobileUnloaded&&e.ctx.sampleRate!==44100&&(e._mobileUnloaded=!0,e.unload()),e._scratchBuffer=e.ctx.createBuffer(1,1,22050);var t=function(n){for(;e._html5AudioPool.length"u"?m.noteOn(0):m.start(0),typeof e.ctx.resume=="function"&&e.ctx.resume(),m.onended=function(){m.disconnect(0),e._audioUnlocked=!0,document.removeEventListener("touchstart",t,!0),document.removeEventListener("touchend",t,!0),document.removeEventListener("click",t,!0),document.removeEventListener("keydown",t,!0);for(var y=0;y"u"||!r.usingWebAudio)){for(var t=0;t"u"||!r.usingWebAudio))return e.state==="running"&&e.ctx.state!=="interrupted"&&e._suspendTimer?(clearTimeout(e._suspendTimer),e._suspendTimer=null):e.state==="suspended"||e.state==="running"&&e.ctx.state==="interrupted"?(e.ctx.resume().then(function(){e.state="running";for(var t=0;t"u"&&(e="__default",!n._playLock)){for(var _=0,l=0;l0?a._seek:n._sprite[e][0]/1e3),y=Math.max(0,(n._sprite[e][0]+n._sprite[e][1])/1e3-m),w=y*1e3/Math.abs(a._rate),T=n._sprite[e][0]/1e3,k=(n._sprite[e][0]+n._sprite[e][1])/1e3;a._sprite=e,a._ended=!1;var I=function(){a._paused=!1,a._seek=m,a._start=T,a._stop=k,a._loop=!!(a._loop||n._sprite[e][2])};if(m>=k){n._ended(a);return}var v=a._node;if(n._webAudio){var H=function(){n._playLock=!1,I(),n._refreshBuffer(a);var x=a._muted||n._muted?0:a._volume;v.gain.setValueAtTime(x,r.ctx.currentTime),a._playStart=r.ctx.currentTime,typeof v.bufferSource.start>"u"?a._loop?v.bufferSource.noteGrainOn(0,m,86400):v.bufferSource.noteGrainOn(0,m,y):a._loop?v.bufferSource.start(0,m,86400):v.bufferSource.start(0,m,y),w!==1/0&&(n._endTimers[a._id]=setTimeout(n._ended.bind(n,a),w)),t||setTimeout(function(){n._emit("play",a._id),n._loadQueue()},0)};r.state==="running"&&r.ctx.state!=="interrupted"?H():(n._playLock=!0,n.once("resume",H),n._clearTimer(a._id))}else{var P=function(){v.currentTime=m,v.muted=a._muted||n._muted||r._muted||v.muted,v.volume=a._volume*r.volume(),v.playbackRate=a._rate;try{var x=v.play();if(x&&typeof Promise<"u"&&(x instanceof Promise||typeof x.then=="function")?(n._playLock=!0,I(),x.then(function(){n._playLock=!1,v._unlocked=!0,t?n._loadQueue():n._emit("play",a._id)}).catch(function(){n._playLock=!1,n._emit("playerror",a._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),a._ended=!0,a._paused=!0})):t||(n._playLock=!1,I(),n._emit("play",a._id)),v.playbackRate=a._rate,v.paused){n._emit("playerror",a._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");return}e!=="__default"||a._loop?n._endTimers[a._id]=setTimeout(n._ended.bind(n,a),w):(n._endTimers[a._id]=function(){n._ended(a),v.removeEventListener("ended",n._endTimers[a._id],!1)},v.addEventListener("ended",n._endTimers[a._id],!1))}catch(B){n._emit("playerror",a._id,B)}};v.src==="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"&&(v.src=n._src,v.load());var F=window&&window.ejecta||!v.readyState&&r._navigator.isCocoonJS;if(v.readyState>=3||F)P();else{n._playLock=!0,n._state="loading";var M=function(){n._state="loaded",P(),v.removeEventListener(r._canPlayEvent,M,!1)};v.addEventListener(r._canPlayEvent,M,!1),n._clearTimer(a._id)}}return a._id},pause:function(e){var t=this;if(t._state!=="loaded"||t._playLock)return t._queue.push({event:"pause",action:function(){t.pause(e)}}),t;for(var n=t._getSoundIds(e),o=0;o"u"?_._node.bufferSource.noteOff(0):_._node.bufferSource.stop(0),t._cleanBuffer(_._node)}else(!isNaN(_._node.duration)||_._node.duration===1/0)&&_._node.pause();arguments[1]||t._emit("pause",_?_._id:null)}return t},stop:function(e,t){var n=this;if(n._state!=="loaded"||n._playLock)return n._queue.push({event:"stop",action:function(){n.stop(e)}}),n;for(var o=n._getSoundIds(e),_=0;_"u"?l._node.bufferSource.noteOff(0):l._node.bufferSource.stop(0),n._cleanBuffer(l._node)):(!isNaN(l._node.duration)||l._node.duration===1/0)&&(l._node.currentTime=l._start||0,l._node.pause(),l._node.duration===1/0&&n._clearSound(l._node))),t||n._emit("stop",l._id))}return n},mute:function(e,t){var n=this;if(n._state!=="loaded"||n._playLock)return n._queue.push({event:"mute",action:function(){n.mute(e,t)}}),n;if(typeof t>"u")if(typeof e=="boolean")n._muted=e;else return n._muted;for(var o=n._getSoundIds(t),_=0;_"u"){var _=e._getSoundIds(),l=_.indexOf(t[0]);l>=0?o=parseInt(t[0],10):n=parseFloat(t[0])}else t.length>=2&&(n=parseFloat(t[0]),o=parseInt(t[1],10));var a;if(typeof n<"u"&&n>=0&&n<=1){if(e._state!=="loaded"||e._playLock)return e._queue.push({event:"volume",action:function(){e.volume.apply(e,t)}}),e;typeof o>"u"&&(e._volume=n),o=e._getSoundIds(o);for(var f=0;f"u")}}return _},_startFadeInterval:function(e,t,n,o,_,l){var a=this,f=t,m=n-t,y=Math.abs(m/.01),w=Math.max(4,y>0?o/y:o),T=Date.now();e._fadeTo=n,e._interval=setInterval(function(){var k=(Date.now()-T)/o;T=Date.now(),f+=m*k,f=Math.round(f*100)/100,m<0?f=Math.max(n,f):f=Math.min(n,f),a._webAudio?e._volume=f:a.volume(f,e._id,!0),l&&(a._volume=f),(nt&&f>=n)&&(clearInterval(e._interval),e._interval=null,e._fadeTo=null,a.volume(n,e._id),a._emit("fade",e._id))},w)},_stopFade:function(e){var t=this,n=t._soundById(e);return n&&n._interval&&(t._webAudio&&n._node.gain.cancelScheduledValues(r.ctx.currentTime),clearInterval(n._interval),n._interval=null,t.volume(n._fadeTo,e),n._fadeTo=null,t._emit("fade",e)),t},loop:function(){var e=this,t=arguments,n,o,_;if(t.length===0)return e._loop;if(t.length===1)if(typeof t[0]=="boolean")n=t[0],e._loop=n;else return _=e._soundById(parseInt(t[0],10)),_?_._loop:!1;else t.length===2&&(n=t[0],o=parseInt(t[1],10));for(var l=e._getSoundIds(o),a=0;a=0?o=parseInt(t[0],10):n=parseFloat(t[0])}else t.length===2&&(n=parseFloat(t[0]),o=parseInt(t[1],10));var a;if(typeof n=="number"){if(e._state!=="loaded"||e._playLock)return e._queue.push({event:"rate",action:function(){e.rate.apply(e,t)}}),e;typeof o>"u"&&(e._rate=n),o=e._getSoundIds(o);for(var f=0;f=0?o=parseInt(t[0],10):e._sounds.length&&(o=e._sounds[0]._id,n=parseFloat(t[0]))}else t.length===2&&(n=parseFloat(t[0]),o=parseInt(t[1],10));if(typeof o>"u")return 0;if(typeof n=="number"&&(e._state!=="loaded"||e._playLock))return e._queue.push({event:"seek",action:function(){e.seek.apply(e,t)}}),e;var a=e._soundById(o);if(a)if(typeof n=="number"&&n>=0){var f=e.playing(o);f&&e.pause(o,!0),a._seek=n,a._ended=!1,e._clearTimer(o),!e._webAudio&&a._node&&!isNaN(a._node.duration)&&(a._node.currentTime=n);var m=function(){f&&e.play(o,!0),e._emit("seek",o)};if(f&&!e._webAudio){var y=function(){e._playLock?setTimeout(y,0):m()};setTimeout(y,0)}else m()}else if(e._webAudio){var w=e.playing(o)?r.ctx.currentTime-a._playStart:0,T=a._rateSeek?a._rateSeek-a._seek:0;return a._seek+(T+w*Math.abs(a._rate))}else return a._node.currentTime;return e},playing:function(e){var t=this;if(typeof e=="number"){var n=t._soundById(e);return n?!n._paused:!1}for(var o=0;o=0&&r._howls.splice(o,1);var _=!0;for(n=0;n=0){_=!1;break}return d&&_&&delete d[e._src],r.noAudio=!1,e._state="unloaded",e._sounds=[],e=null,null},on:function(e,t,n,o){var _=this,l=_["_on"+e];return typeof t=="function"&&l.push(o?{id:n,fn:t,once:o}:{id:n,fn:t}),_},off:function(e,t,n){var o=this,_=o["_on"+e],l=0;if(typeof t=="number"&&(n=t,t=null),t||n)for(l=0;l<_.length;l++){var a=n===_[l].id;if(t===_[l].fn&&a||!t&&a){_.splice(l,1);break}}else if(e)o["_on"+e]=[];else{var f=Object.keys(o);for(l=0;l=0;l--)(!_[l].id||_[l].id===t||e==="load")&&(setTimeout((function(a){a.call(this,t,n)}).bind(o,_[l].fn),0),_[l].once&&o.off(e,_[l].fn,_[l].id));return o._loadQueue(e),o},_loadQueue:function(e){var t=this;if(t._queue.length>0){var n=t._queue[0];n.event===e&&(t._queue.shift(),t._loadQueue()),e||n.action()}return t},_ended:function(e){var t=this,n=e._sprite;if(!t._webAudio&&e._node&&!e._node.paused&&!e._node.ended&&e._node.currentTime=0;o--){if(n<=t)return;e._sounds[o]._ended&&(e._webAudio&&e._sounds[o]._node&&e._sounds[o]._node.disconnect(0),e._sounds.splice(o,1),n--)}}},_getSoundIds:function(e){var t=this;if(typeof e>"u"){for(var n=[],o=0;o=0;if(!e.bufferSource)return t;if(r._scratchBuffer&&e.bufferSource&&(e.bufferSource.onended=null,e.bufferSource.disconnect(0),n))try{e.bufferSource.buffer=r._scratchBuffer}catch{}return e.bufferSource=null,t},_clearSound:function(e){var t=/MSIE |Trident\//.test(r._navigator&&r._navigator.userAgent);t||(e.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var i=function(e){this._parent=e,this.init()};i.prototype={init:function(){var e=this,t=e._parent;return e._muted=t._muted,e._loop=t._loop,e._volume=t._volume,e._rate=t._rate,e._seek=0,e._paused=!0,e._ended=!0,e._sprite="__default",e._id=++r._counter,t._sounds.push(e),e.create(),e},create:function(){var e=this,t=e._parent,n=r._muted||e._muted||e._parent._muted?0:e._volume;return t._webAudio?(e._node=typeof r.ctx.createGain>"u"?r.ctx.createGainNode():r.ctx.createGain(),e._node.gain.setValueAtTime(n,r.ctx.currentTime),e._node.paused=!0,e._node.connect(r.masterGain)):r.noAudio||(e._node=r._obtainHtml5Audio(),e._errorFn=e._errorListener.bind(e),e._node.addEventListener("error",e._errorFn,!1),e._loadFn=e._loadListener.bind(e),e._node.addEventListener(r._canPlayEvent,e._loadFn,!1),e._endFn=e._endListener.bind(e),e._node.addEventListener("ended",e._endFn,!1),e._node.src=t._src,e._node.preload=t._preload===!0?"auto":t._preload,e._node.volume=n*r.volume(),e._node.load()),e},reset:function(){var e=this,t=e._parent;return e._muted=t._muted,e._loop=t._loop,e._volume=t._volume,e._rate=t._rate,e._seek=0,e._rateSeek=0,e._paused=!0,e._ended=!0,e._sprite="__default",e._id=++r._counter,e},_errorListener:function(){var e=this;e._parent._emit("loaderror",e._id,e._node.error?e._node.error.code:0),e._node.removeEventListener("error",e._errorFn,!1)},_loadListener:function(){var e=this,t=e._parent;t._duration=Math.ceil(e._node.duration*10)/10,Object.keys(t._sprite).length===0&&(t._sprite={__default:[0,t._duration*1e3]}),t._state!=="loaded"&&(t._state="loaded",t._emit("load"),t._loadQueue()),e._node.removeEventListener(r._canPlayEvent,e._loadFn,!1)},_endListener:function(){var e=this,t=e._parent;t._duration===1/0&&(t._duration=Math.ceil(e._node.duration*10)/10,t._sprite.__default[1]===1/0&&(t._sprite.__default[1]=t._duration*1e3),t._ended(e)),e._node.removeEventListener("ended",e._endFn,!1)}};var d={},c=function(e){var t=e._src;if(d[t]){e._duration=d[t].duration,s(e);return}if(/^data:[^;]+;base64,/.test(t)){for(var n=atob(t.split(",")[1]),o=new Uint8Array(n.length),_=0;_0?(d[t._src]=_,s(t,_)):n()};typeof Promise<"u"&&r.ctx.decodeAudioData.length===1?r.ctx.decodeAudioData(e).then(o).catch(n):r.ctx.decodeAudioData(e,o,n)},s=function(e,t){t&&!e._duration&&(e._duration=t.duration),Object.keys(e._sprite).length===0&&(e._sprite={__default:[0,e._duration*1e3]}),e._state!=="loaded"&&(e._state="loaded",e._emit("load"),e._loadQueue())},A=function(){if(r.usingWebAudio){try{typeof AudioContext<"u"?r.ctx=new AudioContext:typeof webkitAudioContext<"u"?r.ctx=new webkitAudioContext:r.usingWebAudio=!1}catch{r.usingWebAudio=!1}r.ctx||(r.usingWebAudio=!1);var e=/iP(hone|od|ad)/.test(r._navigator&&r._navigator.platform),t=r._navigator&&r._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),n=t?parseInt(t[1],10):null;if(e&&n&&n<9){var o=/safari/.test(r._navigator&&r._navigator.userAgent.toLowerCase());r._navigator&&!o&&(r.usingWebAudio=!1)}r.usingWebAudio&&(r.masterGain=typeof r.ctx.createGain>"u"?r.ctx.createGainNode():r.ctx.createGain(),r.masterGain.gain.setValueAtTime(r._muted?0:r._volume,r.ctx.currentTime),r.masterGain.connect(r.ctx.destination)),r._setup()}};b.Howler=r,b.Howl=u,typeof S<"u"?(S.HowlerGlobal=g,S.Howler=r,S.Howl=u,S.Sound=i):typeof window<"u"&&(window.HowlerGlobal=g,window.Howler=r,window.Howl=u,window.Sound=i)})();/*! * Spatial Plugin - Adds support for stereo and 3D audio where Web Audio is supported. * * howler.js v2.2.4 @@ -16,4 +16,4 @@ function L(g,w){for(var r=0;r=0;i--)u._howls[i].stereo(r);return u},HowlerGlobal.prototype.pos=function(r,u,i){var d=this;if(!d.ctx||!d.ctx.listener)return d;if(u=typeof u!="number"?d._pos[1]:u,i=typeof i!="number"?d._pos[2]:i,typeof r=="number")d._pos=[r,u,i],typeof d.ctx.listener.positionX<"u"?(d.ctx.listener.positionX.setTargetAtTime(d._pos[0],Howler.ctx.currentTime,.1),d.ctx.listener.positionY.setTargetAtTime(d._pos[1],Howler.ctx.currentTime,.1),d.ctx.listener.positionZ.setTargetAtTime(d._pos[2],Howler.ctx.currentTime,.1)):d.ctx.listener.setPosition(d._pos[0],d._pos[1],d._pos[2]);else return d._pos;return d},HowlerGlobal.prototype.orientation=function(r,u,i,d,c,h){var p=this;if(!p.ctx||!p.ctx.listener)return p;var s=p._orientation;if(u=typeof u!="number"?s[1]:u,i=typeof i!="number"?s[2]:i,d=typeof d!="number"?s[3]:d,c=typeof c!="number"?s[4]:c,h=typeof h!="number"?s[5]:h,typeof r=="number")p._orientation=[r,u,i,d,c,h],typeof p.ctx.listener.forwardX<"u"?(p.ctx.listener.forwardX.setTargetAtTime(r,Howler.ctx.currentTime,.1),p.ctx.listener.forwardY.setTargetAtTime(u,Howler.ctx.currentTime,.1),p.ctx.listener.forwardZ.setTargetAtTime(i,Howler.ctx.currentTime,.1),p.ctx.listener.upX.setTargetAtTime(d,Howler.ctx.currentTime,.1),p.ctx.listener.upY.setTargetAtTime(c,Howler.ctx.currentTime,.1),p.ctx.listener.upZ.setTargetAtTime(h,Howler.ctx.currentTime,.1)):p.ctx.listener.setOrientation(r,u,i,d,c,h);else return s;return p},Howl.prototype.init=function(r){return function(u){var i=this;return i._orientation=u.orientation||[1,0,0],i._stereo=u.stereo||null,i._pos=u.pos||null,i._pannerAttr={coneInnerAngle:typeof u.coneInnerAngle<"u"?u.coneInnerAngle:360,coneOuterAngle:typeof u.coneOuterAngle<"u"?u.coneOuterAngle:360,coneOuterGain:typeof u.coneOuterGain<"u"?u.coneOuterGain:0,distanceModel:typeof u.distanceModel<"u"?u.distanceModel:"inverse",maxDistance:typeof u.maxDistance<"u"?u.maxDistance:1e4,panningModel:typeof u.panningModel<"u"?u.panningModel:"HRTF",refDistance:typeof u.refDistance<"u"?u.refDistance:1,rolloffFactor:typeof u.rolloffFactor<"u"?u.rolloffFactor:1},i._onstereo=u.onstereo?[{fn:u.onstereo}]:[],i._onpos=u.onpos?[{fn:u.onpos}]:[],i._onorientation=u.onorientation?[{fn:u.onorientation}]:[],r.call(this,u)}}(Howl.prototype.init),Howl.prototype.stereo=function(r,u){var i=this;if(!i._webAudio)return i;if(i._state!=="loaded")return i._queue.push({event:"stereo",action:function(){i.stereo(r,u)}}),i;var d=typeof Howler.ctx.createStereoPanner>"u"?"spatial":"stereo";if(typeof u>"u")if(typeof r=="number")i._stereo=r,i._pos=[r,0,0];else return i._stereo;for(var c=i._getSoundIds(u),h=0;h"u")if(typeof r=="number")c._pos=[r,u,i];else return c._pos;for(var h=c._getSoundIds(d),p=0;p"u")if(typeof r=="number")c._orientation=[r,u,i];else return c._orientation;for(var h=c._getSoundIds(d),p=0;p"u"&&(i.pannerAttr||(i.pannerAttr={coneInnerAngle:i.coneInnerAngle,coneOuterAngle:i.coneOuterAngle,coneOuterGain:i.coneOuterGain,distanceModel:i.distanceModel,maxDistance:i.maxDistance,refDistance:i.refDistance,rolloffFactor:i.rolloffFactor,panningModel:i.panningModel}),r._pannerAttr={coneInnerAngle:typeof i.pannerAttr.coneInnerAngle<"u"?i.pannerAttr.coneInnerAngle:r._coneInnerAngle,coneOuterAngle:typeof i.pannerAttr.coneOuterAngle<"u"?i.pannerAttr.coneOuterAngle:r._coneOuterAngle,coneOuterGain:typeof i.pannerAttr.coneOuterGain<"u"?i.pannerAttr.coneOuterGain:r._coneOuterGain,distanceModel:typeof i.pannerAttr.distanceModel<"u"?i.pannerAttr.distanceModel:r._distanceModel,maxDistance:typeof i.pannerAttr.maxDistance<"u"?i.pannerAttr.maxDistance:r._maxDistance,refDistance:typeof i.pannerAttr.refDistance<"u"?i.pannerAttr.refDistance:r._refDistance,rolloffFactor:typeof i.pannerAttr.rolloffFactor<"u"?i.pannerAttr.rolloffFactor:r._rolloffFactor,panningModel:typeof i.pannerAttr.panningModel<"u"?i.pannerAttr.panningModel:r._panningModel});else return c=r._soundById(parseInt(u[0],10)),c?c._pannerAttr:r._pannerAttr;else u.length===2&&(i=u[0],d=parseInt(u[1],10));for(var h=r._getSoundIds(d),p=0;p=0;i--)u._howls[i].stereo(r);return u},HowlerGlobal.prototype.pos=function(r,u,i){var d=this;if(!d.ctx||!d.ctx.listener)return d;if(u=typeof u!="number"?d._pos[1]:u,i=typeof i!="number"?d._pos[2]:i,typeof r=="number")d._pos=[r,u,i],typeof d.ctx.listener.positionX<"u"?(d.ctx.listener.positionX.setTargetAtTime(d._pos[0],Howler.ctx.currentTime,.1),d.ctx.listener.positionY.setTargetAtTime(d._pos[1],Howler.ctx.currentTime,.1),d.ctx.listener.positionZ.setTargetAtTime(d._pos[2],Howler.ctx.currentTime,.1)):d.ctx.listener.setPosition(d._pos[0],d._pos[1],d._pos[2]);else return d._pos;return d},HowlerGlobal.prototype.orientation=function(r,u,i,d,c,h){var p=this;if(!p.ctx||!p.ctx.listener)return p;var s=p._orientation;if(u=typeof u!="number"?s[1]:u,i=typeof i!="number"?s[2]:i,d=typeof d!="number"?s[3]:d,c=typeof c!="number"?s[4]:c,h=typeof h!="number"?s[5]:h,typeof r=="number")p._orientation=[r,u,i,d,c,h],typeof p.ctx.listener.forwardX<"u"?(p.ctx.listener.forwardX.setTargetAtTime(r,Howler.ctx.currentTime,.1),p.ctx.listener.forwardY.setTargetAtTime(u,Howler.ctx.currentTime,.1),p.ctx.listener.forwardZ.setTargetAtTime(i,Howler.ctx.currentTime,.1),p.ctx.listener.upX.setTargetAtTime(d,Howler.ctx.currentTime,.1),p.ctx.listener.upY.setTargetAtTime(c,Howler.ctx.currentTime,.1),p.ctx.listener.upZ.setTargetAtTime(h,Howler.ctx.currentTime,.1)):p.ctx.listener.setOrientation(r,u,i,d,c,h);else return s;return p},Howl.prototype.init=function(r){return function(u){var i=this;return i._orientation=u.orientation||[1,0,0],i._stereo=u.stereo||null,i._pos=u.pos||null,i._pannerAttr={coneInnerAngle:typeof u.coneInnerAngle<"u"?u.coneInnerAngle:360,coneOuterAngle:typeof u.coneOuterAngle<"u"?u.coneOuterAngle:360,coneOuterGain:typeof u.coneOuterGain<"u"?u.coneOuterGain:0,distanceModel:typeof u.distanceModel<"u"?u.distanceModel:"inverse",maxDistance:typeof u.maxDistance<"u"?u.maxDistance:1e4,panningModel:typeof u.panningModel<"u"?u.panningModel:"HRTF",refDistance:typeof u.refDistance<"u"?u.refDistance:1,rolloffFactor:typeof u.rolloffFactor<"u"?u.rolloffFactor:1},i._onstereo=u.onstereo?[{fn:u.onstereo}]:[],i._onpos=u.onpos?[{fn:u.onpos}]:[],i._onorientation=u.onorientation?[{fn:u.onorientation}]:[],r.call(this,u)}}(Howl.prototype.init),Howl.prototype.stereo=function(r,u){var i=this;if(!i._webAudio)return i;if(i._state!=="loaded")return i._queue.push({event:"stereo",action:function(){i.stereo(r,u)}}),i;var d=typeof Howler.ctx.createStereoPanner>"u"?"spatial":"stereo";if(typeof u>"u")if(typeof r=="number")i._stereo=r,i._pos=[r,0,0];else return i._stereo;for(var c=i._getSoundIds(u),h=0;h"u")if(typeof r=="number")c._pos=[r,u,i];else return c._pos;for(var h=c._getSoundIds(d),p=0;p"u")if(typeof r=="number")c._orientation=[r,u,i];else return c._orientation;for(var h=c._getSoundIds(d),p=0;p"u"&&(i.pannerAttr||(i.pannerAttr={coneInnerAngle:i.coneInnerAngle,coneOuterAngle:i.coneOuterAngle,coneOuterGain:i.coneOuterGain,distanceModel:i.distanceModel,maxDistance:i.maxDistance,refDistance:i.refDistance,rolloffFactor:i.rolloffFactor,panningModel:i.panningModel}),r._pannerAttr={coneInnerAngle:typeof i.pannerAttr.coneInnerAngle<"u"?i.pannerAttr.coneInnerAngle:r._coneInnerAngle,coneOuterAngle:typeof i.pannerAttr.coneOuterAngle<"u"?i.pannerAttr.coneOuterAngle:r._coneOuterAngle,coneOuterGain:typeof i.pannerAttr.coneOuterGain<"u"?i.pannerAttr.coneOuterGain:r._coneOuterGain,distanceModel:typeof i.pannerAttr.distanceModel<"u"?i.pannerAttr.distanceModel:r._distanceModel,maxDistance:typeof i.pannerAttr.maxDistance<"u"?i.pannerAttr.maxDistance:r._maxDistance,refDistance:typeof i.pannerAttr.refDistance<"u"?i.pannerAttr.refDistance:r._refDistance,rolloffFactor:typeof i.pannerAttr.rolloffFactor<"u"?i.pannerAttr.rolloffFactor:r._rolloffFactor,panningModel:typeof i.pannerAttr.panningModel<"u"?i.pannerAttr.panningModel:r._panningModel});else return c=r._soundById(parseInt(u[0],10)),c?c._pannerAttr:r._pannerAttr;else u.length===2&&(i=u[0],d=parseInt(u[1],10));for(var h=r._getSoundIds(d),p=0;p*{margin-bottom:16px}.container>.item{background-color:#121212b3;padding:1em 2em;border-radius:5px}footer{margin-top:2em;padding-bottom:2em;text-align:center;line-height:150%}.text-input{display:block;border:none;border-bottom:1px solid gray;background-color:#0c0c0c;padding:.5em;width:100%;margin-top:.5em;margin-bottom:.5em;outline:none}.text-input:focus{border-bottom:1px solid white}.btn{-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;border:none;display:block;border-radius:5px;background-color:transparent;padding:.5em 1em;position:relative;overflow:hidden;transition:.2s ease;cursor:pointer}.btn.primary{background-color:#40b681;padding:1em 2em}.btn:hover{filter:brightness(1.05);transform:scale(1.05) translateY(-2px)}.btn.primary:hover{box-shadow:0 2px 2px #000}.btn:active{filter:brightness(.8);transform:scale(.99) translateY(2px)}.flex{display:flex;justify-content:space-between;align-items:baseline}.justify-start>*{margin-right:.5em}.justify-start{justify-content:start}.align-center{align-items:center}input[type=checkbox]{display:inline-block}.lh-100{line-height:100%}.py-1{padding-top:1em;padding-bottom:1em}nav[data-v-7d164ba0]{top:0;left:0;position:fixed;z-index:60}.title-bar[data-v-7d164ba0]{background-color:#00000080;text-align:center;line-height:48px}.title[data-v-7d164ba0]{width:100vw;z-index:9}.controls[data-v-7d164ba0],.nav-controls[data-v-7d164ba0]{position:absolute;right:0;top:0;height:100%;display:flex}.nav-controls[data-v-7d164ba0]{left:0;width:0;display:inline-block}.controls[data-v-7d164ba0]>*,.nav-controls[data-v-7d164ba0]>*{margin:0;display:block;background-color:#0003;border:none;padding:0;color:#fff;width:48px;line-height:48px;transition:.1s ease;font-size:24px}#close[data-v-7d164ba0]:hover{background-color:#e22e16}#close[data-v-7d164ba0]:active{background-color:#992111}#minimize[data-v-7d164ba0]:hover{background-color:#a116e2}#minimize[data-v-7d164ba0]:active{background-color:#6a0e94}#settings[data-v-7d164ba0]:hover{background-color:#1697e2}#settings[data-v-7d164ba0]:active{background-color:#126799}#home[data-v-7d164ba0]:hover{background-color:#14bb65}#home[data-v-7d164ba0]:active{background-color:#0b723d}.fade-enter-active[data-v-7d164ba0],.fade-leave-active[data-v-7d164ba0]{transition:.2s ease}.fade-enter-from[data-v-7d164ba0],.fade-leave-to[data-v-7d164ba0]{opacity:0;transform:translateY(-100px)}.alert{position:fixed;z-index:20;top:5em;width:100vw;display:flex;max-height:2em}.alert>.content{margin:auto;text-align:center;padding:.5em 1em;border-radius:5px}@keyframes in{0%{opacity:0;max-height:0;transform:translate(-100vw) scale(.8)}}@keyframes out{to{opacity:0;max-height:0;transform:translate(50vw) scale(.8)}}.in{animation-name:in;animation-duration:.25s;animation-direction:normal;animation-fill-mode:both;animation-timing-function:ease}.out{animation-name:out;animation-duration:.25s;animation-direction:normal;animation-fill-mode:both;animation-timing-function:ease}.version[data-v-01ab4474]{position:fixed;z-index:30;left:2em;bottom:1em;color:#555;mix-blend-mode:screen}.num-bg[data-v-595a99de]{display:none;position:fixed;z-index:50;top:0;left:0;width:100vw;height:100vh}.num-bg.anim[data-v-595a99de]{display:block}@keyframes num-595a99de{0%{opacity:1;transform:scale(50)}40%{opacity:1;transform:scale(1)}80%{opacity:1}to{opacity:0}}.num[data-v-595a99de]{background-image:url(/assets/num-BvRoq2n1.png);width:100%;height:100%;opacity:0}.num-bg.anim>.num[data-v-595a99de]{animation:num-595a99de .6s ease}.animated[data-v-6d8695ef]>*{transition:.5s ease;will-change:left,opacity}.blur-fade-enter-active[data-v-6d8695ef],.blur-fade-leave-active[data-v-6d8695ef]{position:absolute;top:0;left:0;height:100vh;width:100vw}.blur-fade-enter-from[data-v-6d8695ef]{left:-10vw;opacity:0}.blur-fade-leave-to[data-v-6d8695ef]{left:10vw;opacity:0}main[data-v-1124f146]{height:100vh;display:flex;align-items:stretch;background-color:#000;background-image:url(/assets/moai-bg-BU2gdkgA.jpg);background-size:cover}main>div[data-v-1124f146]{height:100%;width:100%;margin-left:-100px}.game[data-v-1124f146]{transition:.5s ease;will-change:width;position:relative;clip-path:polygon(100px 0%,100% 0%,calc(100% - 100px) 100%,0% 100%)}.game>.background[data-v-1124f146]{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#00000080;background-position:center;filter:brightness(.5);transition:.1s ease;z-index:-1}.game>.text[data-v-1124f146]{text-align:center;margin:225px auto auto;font-size:22px;font-weight:100;transition:.1s ease;color:#ccc;mix-blend-mode:screen}.game[data-v-1124f146]:not(.disable):hover{width:250%}.game.disable[data-v-1124f146]:hover{width:120%}.game>.text>.tip[data-v-1124f146]{opacity:0%;transition:.1s ease;padding:1em}.game:hover>.text>.tip[data-v-1124f146]{opacity:100%}.iidx>.background[data-v-1124f146]{background-image:url(/assets/iidx-BAOXvOlX.jpg)}.game>.options[data-v-1124f146]{cursor:pointer;transition:.1s ease;margin-top:2em;font-size:16px;opacity:0%}.game:hover>.options[data-v-1124f146]{opacity:100%}.game>.options>.opt[data-v-1124f146]{padding:1em;text-align:center;display:block;color:#fff}.game>.options>.gap[data-v-1124f146]{height:2em}.game>.options>.opt.small[data-v-1124f146]{padding:.5em;font-size:10px}.game>.options>.opt[data-v-1124f146]:nth-child(1){margin-right:9px}.game>.options>.opt[data-v-1124f146]:nth-child(2){margin-right:18px}.game>.options>.opt[data-v-1124f146]:nth-child(3){margin-right:27px}.game>.options>.opt[data-v-1124f146]:nth-child(4){margin-right:36px}.game>.options>.opt[data-v-1124f146]:nth-child(5){margin-right:45px}.game>.options>.opt[data-v-1124f146]:nth-child(6){margin-right:54px}.game>.options>.opt[data-v-1124f146]:nth-child(7){margin-right:63px}.game>.options>.opt[data-v-1124f146]:nth-child(8){margin-right:72px}.game>.options>.opt[data-v-1124f146]:nth-child(9){margin-right:81px}.game>.options>.opt[data-v-1124f146]:nth-child(10){margin-right:90px}.game>.options>.opt[data-v-1124f146]:first-child{font-size:24px}.game>.options>.opt[data-v-1124f146]:hover{background-color:#fff;color:#000}.sdvx>.background[data-v-1124f146]{background-image:url(/assets/sdvx-BIdRBwi8.jpg)}.game:hover>.background[data-v-1124f146]{filter:brightness(.65)}.gitadora>.background[data-v-1124f146]{opacity:.8}.gitadora>.background>video[data-v-1124f146]{position:absolute;right:-25%}.page[data-v-fbd54f6b]{margin-top:48px;min-height:calc(100vh - 48px);position:relative;padding-bottom:2em}.page>.background[data-v-fbd54f6b]{position:fixed;background-image:url(/assets/iidx-BAOXvOlX.jpg);background-size:contain;background-position:center;top:-2.5%;left:-2.5%;width:105%;height:105%;filter:brightness(.5);z-index:-2}.optional[data-v-fbd54f6b]{transition:.3s ease;transform-origin:top;max-height:10em;overflow:hidden;position:relative}.optional[data-v-fbd54f6b]:not(.show){max-height:0;opacity:0;margin-bottom:0;padding-top:0;padding-bottom:0;transform:translateY(-100px);z-index:-1} +@font-face{font-family:Noble Scarlet;src:url(/assets/msyhsb-CG5zefP1.woff2) format("woff2")}@font-face{font-family:SGM;src:url(/assets/sgm-BpMyBNft.woff2) format("woff2")}*,*:before,*:after{box-sizing:border-box;margin:0;font-weight:400;color:#fff;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;color-scheme:dark;font-family:SGM,Noble Scarlet,Segoe UI,sans-serif}option{font-family:Noble Scarlet,Segoe UI,sans-serif}body{background:#212121;line-height:1.6;font-size:15px;text-rendering:optimizeSpeed;overflow:hidden}a,.link{text-decoration:none;color:#007fbd;transition:.4s;padding:3px;cursor:pointer}.page{width:100vw;margin-top:48px;height:calc(100vh - 48px);overflow-y:scroll;line-height:250%;font-size:90%}.gray{color:#666}svg.svg-inline--fa{font-size:90%;margin-right:8px}.path{-webkit-user-select:text;user-select:text;cursor:pointer}.container{margin:64px auto auto;width:960px}hr{border-width:0;height:1px;background-color:gray}.container>*{margin-bottom:16px}.container>.item{background-color:#121212b3;padding:1em 2em;border-radius:5px}footer{margin-top:2em;padding-bottom:2em;text-align:center;line-height:150%}.text-input{display:block;border:none;border-bottom:1px solid gray;background-color:#0c0c0c;padding:.5em;width:100%;margin-top:.5em;margin-bottom:.5em;outline:none}.text-input:focus{border-bottom:1px solid white}.btn{-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;border:none;display:block;border-radius:5px;background-color:transparent;padding:.5em 1em;position:relative;overflow:hidden;transition:.2s ease;cursor:pointer}.btn.primary{background-color:#40b681;padding:1em 2em}.btn:hover{filter:brightness(1.05);transform:scale(1.05) translateY(-2px)}.btn.primary:hover{box-shadow:0 2px 2px #000}.btn:active{filter:brightness(.8);transform:scale(.99) translateY(2px)}.flex{display:flex;justify-content:space-between;align-items:baseline}.justify-start>*{margin-right:.5em}.justify-start{justify-content:start}.align-center{align-items:center}input[type=checkbox]{display:inline-block}.lh-100{line-height:100%}.py-1{padding-top:1em;padding-bottom:1em}nav[data-v-7d164ba0]{top:0;left:0;position:fixed;z-index:60}.title-bar[data-v-7d164ba0]{background-color:#00000080;text-align:center;line-height:48px}.title[data-v-7d164ba0]{width:100vw;z-index:9}.controls[data-v-7d164ba0],.nav-controls[data-v-7d164ba0]{position:absolute;right:0;top:0;height:100%;display:flex}.nav-controls[data-v-7d164ba0]{left:0;width:0;display:inline-block}.controls[data-v-7d164ba0]>*,.nav-controls[data-v-7d164ba0]>*{margin:0;display:block;background-color:#0003;border:none;padding:0;color:#fff;width:48px;line-height:48px;transition:.1s ease;font-size:24px}#close[data-v-7d164ba0]:hover{background-color:#e22e16}#close[data-v-7d164ba0]:active{background-color:#992111}#minimize[data-v-7d164ba0]:hover{background-color:#a116e2}#minimize[data-v-7d164ba0]:active{background-color:#6a0e94}#settings[data-v-7d164ba0]:hover{background-color:#1697e2}#settings[data-v-7d164ba0]:active{background-color:#126799}#home[data-v-7d164ba0]:hover{background-color:#14bb65}#home[data-v-7d164ba0]:active{background-color:#0b723d}.fade-enter-active[data-v-7d164ba0],.fade-leave-active[data-v-7d164ba0]{transition:.2s ease}.fade-enter-from[data-v-7d164ba0],.fade-leave-to[data-v-7d164ba0]{opacity:0;transform:translateY(-100px)}.alert{position:fixed;z-index:20;top:5em;width:100vw;display:flex;max-height:2em}.alert>.content{margin:auto;text-align:center;padding:.5em 1em;border-radius:5px}@keyframes in{0%{opacity:0;max-height:0;transform:translate(-100vw) scale(.8)}}@keyframes out{to{opacity:0;max-height:0;transform:translate(50vw) scale(.8)}}.in{animation-name:in;animation-duration:.25s;animation-direction:normal;animation-fill-mode:both;animation-timing-function:ease}.out{animation-name:out;animation-duration:.25s;animation-direction:normal;animation-fill-mode:both;animation-timing-function:ease}.version[data-v-01ab4474]{position:fixed;z-index:30;left:2em;bottom:1em;color:#555;mix-blend-mode:screen}.num-bg[data-v-595a99de]{display:none;position:fixed;z-index:50;top:0;left:0;width:100vw;height:100vh}.num-bg.anim[data-v-595a99de]{display:block}@keyframes num-595a99de{0%{opacity:1;transform:scale(50)}40%{opacity:1;transform:scale(1)}80%{opacity:1}to{opacity:0}}.num[data-v-595a99de]{background-image:url(/assets/num-BvRoq2n1.png);width:100%;height:100%;opacity:0}.num-bg.anim>.num[data-v-595a99de]{animation:num-595a99de .6s ease}.animated[data-v-6d8695ef]>*{transition:.5s ease;will-change:left,opacity}.blur-fade-enter-active[data-v-6d8695ef],.blur-fade-leave-active[data-v-6d8695ef]{position:absolute;top:0;left:0;height:100vh;width:100vw}.blur-fade-enter-from[data-v-6d8695ef]{left:-10vw;opacity:0}.blur-fade-leave-to[data-v-6d8695ef]{left:10vw;opacity:0}main[data-v-7c178352]{height:100vh;display:flex;align-items:stretch;background-color:#000;background-image:url(/assets/moai-bg-BU2gdkgA.jpg);background-size:cover}main>div[data-v-7c178352]{height:100%;width:100%;margin-left:-100px}.game[data-v-7c178352]{transition:.5s ease;will-change:width;position:relative;clip-path:polygon(100px 0%,100% 0%,calc(100% - 100px) 100%,0% 100%)}.game>.background[data-v-7c178352]{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#00000080;background-position:center;filter:brightness(.5);transition:.1s ease;z-index:-1}.game>.text[data-v-7c178352]{text-align:center;margin:225px auto auto;font-size:22px;font-weight:100;transition:.1s ease;color:#ccc;mix-blend-mode:screen}.game[data-v-7c178352]:not(.disable):hover{width:250%}.game.disable[data-v-7c178352]:hover{width:120%}.game>.text>.tip[data-v-7c178352]{opacity:0%;transition:.1s ease;padding:1em}.game:hover>.text>.tip[data-v-7c178352]{opacity:100%}.iidx>.background[data-v-7c178352]{background-image:url(/assets/iidx-BAOXvOlX.jpg)}.game>.options[data-v-7c178352]{cursor:pointer;transition:.1s ease;margin-top:2em;font-size:16px;opacity:0%}.game:hover>.options[data-v-7c178352]{opacity:100%}.game>.options>.opt[data-v-7c178352]{padding:1em;text-align:center;display:block;color:#fff}.game>.options>.gap[data-v-7c178352]{height:2em}.game>.options>.opt.small[data-v-7c178352]{padding:.5em;font-size:10px}.game>.options>.opt[data-v-7c178352]:nth-child(1){margin-right:9px}.game>.options>.opt[data-v-7c178352]:nth-child(2){margin-right:18px}.game>.options>.opt[data-v-7c178352]:nth-child(3){margin-right:27px}.game>.options>.opt[data-v-7c178352]:nth-child(4){margin-right:36px}.game>.options>.opt[data-v-7c178352]:nth-child(5){margin-right:45px}.game>.options>.opt[data-v-7c178352]:nth-child(6){margin-right:54px}.game>.options>.opt[data-v-7c178352]:nth-child(7){margin-right:63px}.game>.options>.opt[data-v-7c178352]:nth-child(8){margin-right:72px}.game>.options>.opt[data-v-7c178352]:nth-child(9){margin-right:81px}.game>.options>.opt[data-v-7c178352]:nth-child(10){margin-right:90px}.game>.options>.opt[data-v-7c178352]:first-child{font-size:24px}.game>.options>.opt[data-v-7c178352]:hover{background-color:#fff;color:#000}.sdvx>.background[data-v-7c178352]{background-image:url(/assets/sdvx-BIdRBwi8.jpg)}.game:hover>.background[data-v-7c178352]{filter:brightness(.65)}.gitadora>.background[data-v-7c178352]{opacity:.8}.gitadora>.background>video[data-v-7c178352]{position:absolute;right:-25%}.page[data-v-fbd54f6b]{margin-top:48px;min-height:calc(100vh - 48px);position:relative;padding-bottom:2em}.page>.background[data-v-fbd54f6b]{position:fixed;background-image:url(/assets/iidx-BAOXvOlX.jpg);background-size:contain;background-position:center;top:-2.5%;left:-2.5%;width:105%;height:105%;filter:brightness(.5);z-index:-2}.optional[data-v-fbd54f6b]{transition:.3s ease;transform-origin:top;max-height:10em;overflow:hidden;position:relative}.optional[data-v-fbd54f6b]:not(.show){max-height:0;opacity:0;margin-bottom:0;padding-top:0;padding-bottom:0;transform:translateY(-100px);z-index:-1} diff --git a/src/client/resources/ui-dist/assets/index-Dyi-fEzI.js b/src/client/resources/ui-dist/assets/index-Dyi-fEzI.js new file mode 100644 index 0000000..5580788 --- /dev/null +++ b/src/client/resources/ui-dist/assets/index-Dyi-fEzI.js @@ -0,0 +1,997 @@ +var Jvt=Object.defineProperty;var zvt=(v,E,F)=>E in v?Jvt(v,E,{enumerable:!0,configurable:!0,writable:!0,value:F}):v[E]=F;var f6=(v,E,F)=>zvt(v,typeof E!="symbol"?E+"":E,F);(function(){const E=document.createElement("link").relList;if(E&&E.supports&&E.supports("modulepreload"))return;for(const ae of document.querySelectorAll('link[rel="modulepreload"]'))$(ae);new MutationObserver(ae=>{for(const K of ae)if(K.type==="childList")for(const je of K.addedNodes)je.tagName==="LINK"&&je.rel==="modulepreload"&&$(je)}).observe(document,{childList:!0,subtree:!0});function F(ae){const K={};return ae.integrity&&(K.integrity=ae.integrity),ae.referrerPolicy&&(K.referrerPolicy=ae.referrerPolicy),ae.crossOrigin==="use-credentials"?K.credentials="include":ae.crossOrigin==="anonymous"?K.credentials="omit":K.credentials="same-origin",K}function $(ae){if(ae.ep)return;ae.ep=!0;const K=F(ae);fetch(ae.href,K)}})();/** +* @vue/shared v3.5.6 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function z2e(v){const E=Object.create(null);for(const F of v.split(","))E[F]=1;return F=>F in E}const Bf={},gO=[],KT=()=>{},Uvt=()=>!1,Zne=v=>v.charCodeAt(0)===111&&v.charCodeAt(1)===110&&(v.charCodeAt(2)>122||v.charCodeAt(2)<97),U2e=v=>v.startsWith("onUpdate:"),Qm=Object.assign,V2e=(v,E)=>{const F=v.indexOf(E);F>-1&&v.splice(F,1)},Vvt=Object.prototype.hasOwnProperty,E_=(v,E)=>Vvt.call(v,E),wc=Array.isArray,hO=v=>Kne(v)==="[object Map]",ije=v=>Kne(v)==="[object Set]",el=v=>typeof v=="function",Td=v=>typeof v=="string",QE=v=>typeof v=="symbol",_p=v=>v!==null&&typeof v=="object",sje=v=>(_p(v)||el(v))&&el(v.then)&&el(v.catch),aje=Object.prototype.toString,Kne=v=>aje.call(v),Wvt=v=>Kne(v).slice(8,-1),oje=v=>Kne(v)==="[object Object]",W2e=v=>Td(v)&&v!=="NaN"&&v[0]!=="-"&&""+parseInt(v,10)===v,Fz=z2e(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ere=v=>{const E=Object.create(null);return F=>E[F]||(E[F]=v(F))},qvt=/-(\w)/g,BS=ere(v=>v.replace(qvt,(E,F)=>F?F.toUpperCase():"")),Hvt=/\B([A-Z])/g,L8=ere(v=>v.replace(Hvt,"-$1").toLowerCase()),tre=ere(v=>v.charAt(0).toUpperCase()+v.slice(1)),Fve=ere(v=>v?`on${tre(v)}`:""),qE=(v,E)=>!Object.is(v,E),Lve=(v,...E)=>{for(let F=0;F{Object.defineProperty(v,E,{configurable:!0,enumerable:!1,writable:$,value:F})},Gvt=v=>{const E=parseFloat(v);return isNaN(E)?v:E},$vt=v=>{const E=Td(v)?Number(v):NaN;return isNaN(E)?v:E};let EMe;const lje=()=>EMe||(EMe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function nre(v){if(wc(v)){const E={};for(let F=0;F{if(F){const $=F.split(Qvt);$.length>1&&(E[$[0].trim()]=$[1].trim())}}),E}function Vz(v){let E="";if(Td(v))E=v;else if(wc(v))for(let F=0;F!!(v&&v.__v_isRef===!0),Iv=v=>Td(v)?v:v==null?"":wc(v)||_p(v)&&(v.toString===aje||!el(v.toString))?_je(v)?Iv(v.value):JSON.stringify(v,fje,2):String(v),fje=(v,E)=>_je(E)?fje(v,E.value):hO(E)?{[`Map(${E.size})`]:[...E.entries()].reduce((F,[$,ae],K)=>(F[Mve($,K)+" =>"]=ae,F),{})}:ije(E)?{[`Set(${E.size})`]:[...E.values()].map(F=>Mve(F))}:QE(E)?Mve(E):_p(E)&&!wc(E)&&!oje(E)?String(E):E,Mve=(v,E="")=>{var F;return QE(v)?`Symbol(${(F=v.description)!=null?F:E})`:v};/** +* @vue/reactivity v3.5.6 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Nv;class t2t{constructor(E=!1){this.detached=E,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Nv,!E&&Nv&&(this.index=(Nv.scopes||(Nv.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let E,F;if(this.scopes)for(E=0,F=this.scopes.length;E0)return;let v;for(;Lz;){let E=Lz;for(Lz=void 0;E;){const F=E.next;if(E.next=void 0,E.flags&=-9,E.flags&1)try{E.trigger()}catch($){v||(v=$)}E=F}}if(v)throw v}function gje(v){for(let E=v.deps;E;E=E.nextDep)E.version=-1,E.prevActiveLink=E.dep.activeLink,E.dep.activeLink=E}function hje(v){let E,F=v.depsTail,$=F;for(;$;){const ae=$.prevDep;$.version===-1?($===F&&(F=ae),G2e($),r2t($)):E=$,$.dep.activeLink=$.prevActiveLink,$.prevActiveLink=void 0,$=ae}v.deps=E,v.depsTail=F}function r2e(v){for(let E=v.deps;E;E=E.nextDep)if(E.dep.version!==E.version||E.dep.computed&&(yje(E.dep.computed)||E.dep.version!==E.version))return!0;return!!v._dirty}function yje(v){if(v.flags&4&&!(v.flags&16)||(v.flags&=-17,v.globalVersion===Wz))return;v.globalVersion=Wz;const E=v.dep;if(v.flags|=2,E.version>0&&!v.isSSR&&v.deps&&!r2e(v)){v.flags&=-3;return}const F=Cf,$=jS;Cf=v,jS=!0;try{gje(v);const ae=v.fn(v._value);(E.version===0||qE(ae,v._value))&&(v._value=ae,E.version++)}catch(ae){throw E.version++,ae}finally{Cf=F,jS=$,hje(v),v.flags&=-3}}function G2e(v){const{dep:E,prevSub:F,nextSub:$}=v;if(F&&(F.nextSub=$,v.prevSub=void 0),$&&($.prevSub=F,v.nextSub=void 0),E.subs===v&&(E.subs=F),!E.subs&&E.computed){E.computed.flags&=-5;for(let ae=E.computed.deps;ae;ae=ae.nextDep)G2e(ae)}}function r2t(v){const{prevDep:E,nextDep:F}=v;E&&(E.nextDep=F,v.prevDep=void 0),F&&(F.prevDep=E,v.nextDep=void 0)}let jS=!0;const vje=[];function YE(){vje.push(jS),jS=!1}function ZE(){const v=vje.pop();jS=v===void 0?!0:v}function PMe(v){const{cleanup:E}=v;if(v.cleanup=void 0,E){const F=Cf;Cf=void 0;try{E()}finally{Cf=F}}}let Wz=0;class i2t{constructor(E,F){this.sub=E,this.dep=F,this.version=F.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class $2e{constructor(E){this.computed=E,this.version=0,this.activeLink=void 0,this.subs=void 0}track(E){if(!Cf||!jS||Cf===this.computed)return;let F=this.activeLink;if(F===void 0||F.sub!==Cf)F=this.activeLink=new i2t(Cf,this),Cf.deps?(F.prevDep=Cf.depsTail,Cf.depsTail.nextDep=F,Cf.depsTail=F):Cf.deps=Cf.depsTail=F,Cf.flags&4&&bje(F);else if(F.version===-1&&(F.version=this.version,F.nextDep)){const $=F.nextDep;$.prevDep=F.prevDep,F.prevDep&&(F.prevDep.nextDep=$),F.prevDep=Cf.depsTail,F.nextDep=void 0,Cf.depsTail.nextDep=F,Cf.depsTail=F,Cf.deps===F&&(Cf.deps=$)}return F}trigger(E){this.version++,Wz++,this.notify(E)}notify(E){q2e();try{for(let F=this.subs;F;F=F.prevSub)F.sub.notify()&&F.sub.dep.notify()}finally{H2e()}}}function bje(v){const E=v.dep.computed;if(E&&!v.dep.subs){E.flags|=20;for(let $=E.deps;$;$=$.nextDep)bje($)}const F=v.dep.subs;F!==v&&(v.prevSub=F,F&&(F.nextSub=v)),v.dep.subs=v}const i2e=new WeakMap,w8=Symbol(""),s2e=Symbol(""),qz=Symbol("");function l0(v,E,F){if(jS&&Cf){let $=i2e.get(v);$||i2e.set(v,$=new Map);let ae=$.get(F);ae||$.set(F,ae=new $2e),ae.track()}}function v6(v,E,F,$,ae,K){const je=i2e.get(v);if(!je){Wz++;return}const Ye=rt=>{rt&&rt.trigger()};if(q2e(),E==="clear")je.forEach(Ye);else{const rt=wc(v),wt=rt&&W2e(F);if(rt&&F==="length"){const Lt=Number($);je.forEach((Rt,Xe)=>{(Xe==="length"||Xe===qz||!QE(Xe)&&Xe>=Lt)&&Ye(Rt)})}else switch(F!==void 0&&Ye(je.get(F)),wt&&Ye(je.get(qz)),E){case"add":rt?wt&&Ye(je.get("length")):(Ye(je.get(w8)),hO(v)&&Ye(je.get(s2e)));break;case"delete":rt||(Ye(je.get(w8)),hO(v)&&Ye(je.get(s2e)));break;case"set":hO(v)&&Ye(je.get(w8));break}}H2e()}function _O(v){const E=f_(v);return E===v?E:(l0(E,"iterate",qz),ib(v)?E:E.map(o0))}function rre(v){return l0(v=f_(v),"iterate",qz),v}const s2t={__proto__:null,[Symbol.iterator](){return jve(this,Symbol.iterator,o0)},concat(...v){return _O(this).concat(...v.map(E=>wc(E)?_O(E):E))},entries(){return jve(this,"entries",v=>(v[1]=o0(v[1]),v))},every(v,E){return p6(this,"every",v,E,void 0,arguments)},filter(v,E){return p6(this,"filter",v,E,F=>F.map(o0),arguments)},find(v,E){return p6(this,"find",v,E,o0,arguments)},findIndex(v,E){return p6(this,"findIndex",v,E,void 0,arguments)},findLast(v,E){return p6(this,"findLast",v,E,o0,arguments)},findLastIndex(v,E){return p6(this,"findLastIndex",v,E,void 0,arguments)},forEach(v,E){return p6(this,"forEach",v,E,void 0,arguments)},includes(...v){return Bve(this,"includes",v)},indexOf(...v){return Bve(this,"indexOf",v)},join(v){return _O(this).join(v)},lastIndexOf(...v){return Bve(this,"lastIndexOf",v)},map(v,E){return p6(this,"map",v,E,void 0,arguments)},pop(){return wz(this,"pop")},push(...v){return wz(this,"push",v)},reduce(v,...E){return wMe(this,"reduce",v,E)},reduceRight(v,...E){return wMe(this,"reduceRight",v,E)},shift(){return wz(this,"shift")},some(v,E){return p6(this,"some",v,E,void 0,arguments)},splice(...v){return wz(this,"splice",v)},toReversed(){return _O(this).toReversed()},toSorted(v){return _O(this).toSorted(v)},toSpliced(...v){return _O(this).toSpliced(...v)},unshift(...v){return wz(this,"unshift",v)},values(){return jve(this,"values",o0)}};function jve(v,E,F){const $=rre(v),ae=$[E]();return $!==v&&!ib(v)&&(ae._next=ae.next,ae.next=()=>{const K=ae._next();return K.value&&(K.value=F(K.value)),K}),ae}const a2t=Array.prototype;function p6(v,E,F,$,ae,K){const je=rre(v),Ye=je!==v&&!ib(v),rt=je[E];if(rt!==a2t[E]){const Rt=rt.apply(v,K);return Ye?o0(Rt):Rt}let wt=F;je!==v&&(Ye?wt=function(Rt,Xe){return F.call(this,o0(Rt),Xe,v)}:F.length>2&&(wt=function(Rt,Xe){return F.call(this,Rt,Xe,v)}));const Lt=rt.call(je,wt,$);return Ye&&ae?ae(Lt):Lt}function wMe(v,E,F,$){const ae=rre(v);let K=F;return ae!==v&&(ib(v)?F.length>3&&(K=function(je,Ye,rt){return F.call(this,je,Ye,rt,v)}):K=function(je,Ye,rt){return F.call(this,je,o0(Ye),rt,v)}),ae[E](K,...$)}function Bve(v,E,F){const $=f_(v);l0($,"iterate",qz);const ae=$[E](...F);return(ae===-1||ae===!1)&&Z2e(F[0])?(F[0]=f_(F[0]),$[E](...F)):ae}function wz(v,E,F=[]){YE(),q2e();const $=f_(v)[E].apply(v,F);return H2e(),ZE(),$}const o2t=z2e("__proto__,__v_isRef,__isVue"),Sje=new Set(Object.getOwnPropertyNames(Symbol).filter(v=>v!=="arguments"&&v!=="caller").map(v=>Symbol[v]).filter(QE));function c2t(v){QE(v)||(v=String(v));const E=f_(this);return l0(E,"has",v),E.hasOwnProperty(v)}class xje{constructor(E=!1,F=!1){this._isReadonly=E,this._isShallow=F}get(E,F,$){const ae=this._isReadonly,K=this._isShallow;if(F==="__v_isReactive")return!ae;if(F==="__v_isReadonly")return ae;if(F==="__v_isShallow")return K;if(F==="__v_raw")return $===(ae?K?S2t:Eje:K?Cje:kje).get(E)||Object.getPrototypeOf(E)===Object.getPrototypeOf($)?E:void 0;const je=wc(E);if(!ae){let rt;if(je&&(rt=s2t[F]))return rt;if(F==="hasOwnProperty")return c2t}const Ye=Reflect.get(E,F,c0(E)?E:$);return(QE(F)?Sje.has(F):o2t(F))||(ae||l0(E,"get",F),K)?Ye:c0(Ye)?je&&W2e(F)?Ye:Ye.value:_p(Ye)?ae?wje(Ye):sre(Ye):Ye}}class Tje extends xje{constructor(E=!1){super(!1,E)}set(E,F,$,ae){let K=E[F];if(!this._isShallow){const rt=I8(K);if(!ib($)&&!I8($)&&(K=f_(K),$=f_($)),!wc(E)&&c0(K)&&!c0($))return rt?!1:(K.value=$,!0)}const je=wc(E)&&W2e(F)?Number(F)v,ire=v=>Reflect.getPrototypeOf(v);function Dne(v,E,F=!1,$=!1){v=v.__v_raw;const ae=f_(v),K=f_(E);F||(qE(E,K)&&l0(ae,"get",E),l0(ae,"get",K));const{has:je}=ire(ae),Ye=$?X2e:F?K2e:o0;if(je.call(ae,E))return Ye(v.get(E));if(je.call(ae,K))return Ye(v.get(K));v!==ae&&v.get(E)}function Ane(v,E=!1){const F=this.__v_raw,$=f_(F),ae=f_(v);return E||(qE(v,ae)&&l0($,"has",v),l0($,"has",ae)),v===ae?F.has(v):F.has(v)||F.has(ae)}function Nne(v,E=!1){return v=v.__v_raw,!E&&l0(f_(v),"iterate",w8),Reflect.get(v,"size",v)}function DMe(v,E=!1){!E&&!ib(v)&&!I8(v)&&(v=f_(v));const F=f_(this);return ire(F).has.call(F,v)||(F.add(v),v6(F,"add",v,v)),this}function AMe(v,E,F=!1){!F&&!ib(E)&&!I8(E)&&(E=f_(E));const $=f_(this),{has:ae,get:K}=ire($);let je=ae.call($,v);je||(v=f_(v),je=ae.call($,v));const Ye=K.call($,v);return $.set(v,E),je?qE(E,Ye)&&v6($,"set",v,E):v6($,"add",v,E),this}function NMe(v){const E=f_(this),{has:F,get:$}=ire(E);let ae=F.call(E,v);ae||(v=f_(v),ae=F.call(E,v)),$&&$.call(E,v);const K=E.delete(v);return ae&&v6(E,"delete",v,void 0),K}function IMe(){const v=f_(this),E=v.size!==0,F=v.clear();return E&&v6(v,"clear",void 0,void 0),F}function Ine(v,E){return function($,ae){const K=this,je=K.__v_raw,Ye=f_(je),rt=E?X2e:v?K2e:o0;return!v&&l0(Ye,"iterate",w8),je.forEach((wt,Lt)=>$.call(ae,rt(wt),rt(Lt),K))}}function One(v,E,F){return function(...$){const ae=this.__v_raw,K=f_(ae),je=hO(K),Ye=v==="entries"||v===Symbol.iterator&&je,rt=v==="keys"&&je,wt=ae[v](...$),Lt=F?X2e:E?K2e:o0;return!E&&l0(K,"iterate",rt?s2e:w8),{next(){const{value:Rt,done:Xe}=wt.next();return Xe?{value:Rt,done:Xe}:{value:Ye?[Lt(Rt[0]),Lt(Rt[1])]:Lt(Rt),done:Xe}},[Symbol.iterator](){return this}}}}function NE(v){return function(...E){return v==="delete"?!1:v==="clear"?void 0:this}}function p2t(){const v={get(K){return Dne(this,K)},get size(){return Nne(this)},has:Ane,add:DMe,set:AMe,delete:NMe,clear:IMe,forEach:Ine(!1,!1)},E={get(K){return Dne(this,K,!1,!0)},get size(){return Nne(this)},has:Ane,add(K){return DMe.call(this,K,!0)},set(K,je){return AMe.call(this,K,je,!0)},delete:NMe,clear:IMe,forEach:Ine(!1,!0)},F={get(K){return Dne(this,K,!0)},get size(){return Nne(this,!0)},has(K){return Ane.call(this,K,!0)},add:NE("add"),set:NE("set"),delete:NE("delete"),clear:NE("clear"),forEach:Ine(!0,!1)},$={get(K){return Dne(this,K,!0,!0)},get size(){return Nne(this,!0)},has(K){return Ane.call(this,K,!0)},add:NE("add"),set:NE("set"),delete:NE("delete"),clear:NE("clear"),forEach:Ine(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(K=>{v[K]=One(K,!1,!1),F[K]=One(K,!0,!1),E[K]=One(K,!1,!0),$[K]=One(K,!0,!0)}),[v,F,E,$]}const[d2t,m2t,g2t,h2t]=p2t();function Q2e(v,E){const F=E?v?h2t:g2t:v?m2t:d2t;return($,ae,K)=>ae==="__v_isReactive"?!v:ae==="__v_isReadonly"?v:ae==="__v_raw"?$:Reflect.get(E_(F,ae)&&ae in $?F:$,ae,K)}const y2t={get:Q2e(!1,!1)},v2t={get:Q2e(!1,!0)},b2t={get:Q2e(!0,!1)};const kje=new WeakMap,Cje=new WeakMap,Eje=new WeakMap,S2t=new WeakMap;function x2t(v){switch(v){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function T2t(v){return v.__v_skip||!Object.isExtensible(v)?0:x2t(Wvt(v))}function sre(v){return I8(v)?v:Y2e(v,!1,u2t,y2t,kje)}function Pje(v){return Y2e(v,!1,f2t,v2t,Cje)}function wje(v){return Y2e(v,!0,_2t,b2t,Eje)}function Y2e(v,E,F,$,ae){if(!_p(v)||v.__v_raw&&!(E&&v.__v_isReactive))return v;const K=ae.get(v);if(K)return K;const je=T2t(v);if(je===0)return v;const Ye=new Proxy(v,je===2?$:F);return ae.set(v,Ye),Ye}function yO(v){return I8(v)?yO(v.__v_raw):!!(v&&v.__v_isReactive)}function I8(v){return!!(v&&v.__v_isReadonly)}function ib(v){return!!(v&&v.__v_isShallow)}function Z2e(v){return v?!!v.__v_raw:!1}function f_(v){const E=v&&v.__v_raw;return E?f_(E):v}function k2t(v){return!E_(v,"__v_skip")&&Object.isExtensible(v)&&cje(v,"__v_skip",!0),v}const o0=v=>_p(v)?sre(v):v,K2e=v=>_p(v)?wje(v):v;function c0(v){return v?v.__v_isRef===!0:!1}function Pp(v){return Dje(v,!1)}function C2t(v){return Dje(v,!0)}function Dje(v,E){return c0(v)?v:new E2t(v,E)}class E2t{constructor(E,F){this.dep=new $2e,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=F?E:f_(E),this._value=F?E:o0(E),this.__v_isShallow=F}get value(){return this.dep.track(),this._value}set value(E){const F=this._rawValue,$=this.__v_isShallow||ib(E)||I8(E);E=$?E:f_(E),qE(E,F)&&(this._rawValue=E,this._value=$?E:o0(E),this.dep.trigger())}}function ls(v){return c0(v)?v.value:v}const P2t={get:(v,E,F)=>E==="__v_raw"?v:ls(Reflect.get(v,E,F)),set:(v,E,F,$)=>{const ae=v[E];return c0(ae)&&!c0(F)?(ae.value=F,!0):Reflect.set(v,E,F,$)}};function Aje(v){return yO(v)?v:new Proxy(v,P2t)}class w2t{constructor(E,F,$){this.fn=E,this.setter=F,this._value=void 0,this.dep=new $2e(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Wz-1,this.effect=this,this.__v_isReadonly=!F,this.isSSR=$}notify(){if(this.flags|=16,!(this.flags&8)&&Cf!==this)return mje(this),!0}get value(){const E=this.dep.track();return yje(this),E&&(E.version=this.dep.version),this._value}set value(E){this.setter&&this.setter(E)}}function D2t(v,E,F=!1){let $,ae;return el(v)?$=v:($=v.get,ae=v.set),new w2t($,ae,F)}const Fne={},Wne=new WeakMap;let C8;function A2t(v,E=!1,F=C8){if(F){let $=Wne.get(F);$||Wne.set(F,$=[]),$.push(v)}}function N2t(v,E,F=Bf){const{immediate:$,deep:ae,once:K,scheduler:je,augmentJob:Ye,call:rt}=F,wt=Pn=>ae?Pn:ib(Pn)||ae===!1||ae===0?UE(Pn,1):UE(Pn);let Lt,Rt,Xe,dt,bs=!1,li=!1;if(c0(v)?(Rt=()=>v.value,bs=ib(v)):yO(v)?(Rt=()=>wt(v),bs=!0):wc(v)?(li=!0,bs=v.some(Pn=>yO(Pn)||ib(Pn)),Rt=()=>v.map(Pn=>{if(c0(Pn))return Pn.value;if(yO(Pn))return wt(Pn);if(el(Pn))return rt?rt(Pn,2):Pn()})):el(v)?E?Rt=rt?()=>rt(v,2):v:Rt=()=>{if(Xe){YE();try{Xe()}finally{ZE()}}const Pn=C8;C8=Lt;try{return rt?rt(v,3,[dt]):v(dt)}finally{C8=Pn}}:Rt=KT,E&&ae){const Pn=Rt,Cn=ae===!0?1/0:ae;Rt=()=>UE(Pn(),Cn)}const Js=n2t(),Yn=()=>{Lt.stop(),Js&&V2e(Js.effects,Lt)};if(K&&E){const Pn=E;E=(...Cn)=>{Pn(...Cn),Yn()}}let ii=li?new Array(v.length).fill(Fne):Fne;const hs=Pn=>{if(!(!(Lt.flags&1)||!Lt.dirty&&!Pn))if(E){const Cn=Lt.run();if(ae||bs||(li?Cn.some((Ro,Gs)=>qE(Ro,ii[Gs])):qE(Cn,ii))){Xe&&Xe();const Ro=C8;C8=Lt;try{const Gs=[Cn,ii===Fne?void 0:li&&ii[0]===Fne?[]:ii,dt];rt?rt(E,3,Gs):E(...Gs),ii=Cn}finally{C8=Ro}}}else Lt.run()};return Ye&&Ye(hs),Lt=new pje(Rt),Lt.scheduler=je?()=>je(hs,!1):hs,dt=Pn=>A2t(Pn,!1,Lt),Xe=Lt.onStop=()=>{const Pn=Wne.get(Lt);if(Pn){if(rt)rt(Pn,4);else for(const Cn of Pn)Cn();Wne.delete(Lt)}},E?$?hs(!0):ii=Lt.run():je?je(hs.bind(null,!0),!0):Lt.run(),Yn.pause=Lt.pause.bind(Lt),Yn.resume=Lt.resume.bind(Lt),Yn.stop=Yn,Yn}function UE(v,E=1/0,F){if(E<=0||!_p(v)||v.__v_skip||(F=F||new Set,F.has(v)))return v;if(F.add(v),E--,c0(v))UE(v.value,E,F);else if(wc(v))for(let $=0;${UE($,E,F)});else if(oje(v)){for(const $ in v)UE(v[$],E,F);for(const $ of Object.getOwnPropertySymbols(v))Object.prototype.propertyIsEnumerable.call(v,$)&&UE(v[$],E,F)}return v}/** +* @vue/runtime-core v3.5.6 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function tU(v,E,F,$){try{return $?v(...$):v()}catch(ae){are(ae,E,F)}}function JS(v,E,F,$){if(el(v)){const ae=tU(v,E,F,$);return ae&&sje(ae)&&ae.catch(K=>{are(K,E,F)}),ae}if(wc(v)){const ae=[];for(let K=0;K>>1,ae=iy[$],K=Gz(ae);K=Gz(F)?iy.push(v):iy.splice(O2t(E),0,v),v.flags|=1,Oje()}}function Oje(){!Hz&&!a2e&&(a2e=!0,ebe=Nje.then(Lje))}function F2t(v){wc(v)?vO.push(...v):jE&&v.id===-1?jE.splice(fO+1,0,v):v.flags&1||(vO.push(v),v.flags|=1),Oje()}function OMe(v,E,F=Hz?XT+1:0){for(;FGz(F)-Gz($));if(vO.length=0,jE){jE.push(...E);return}for(jE=E,fO=0;fOv.id==null?v.flags&2?-1:1/0:v.id;function Lje(v){a2e=!1,Hz=!0;try{for(XT=0;XT{$._d&&VMe(-1);const K=qne(E);let je;try{je=v(...ae)}finally{qne(K),$._d&&VMe(1)}return je};return $._n=!0,$._c=!0,$._d=!0,$}function S8(v,E,F,$){const ae=v.dirs,K=E&&E.dirs;for(let je=0;jev.__isTeleport,BE=Symbol("_leaveCb"),Lne=Symbol("_enterCb");function M2t(){const v={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return EO(()=>{v.isMounted=!0}),qje(()=>{v.isUnmounting=!0}),v}const nb=[Function,Array],jje={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:nb,onEnter:nb,onAfterEnter:nb,onEnterCancelled:nb,onBeforeLeave:nb,onLeave:nb,onAfterLeave:nb,onLeaveCancelled:nb,onBeforeAppear:nb,onAppear:nb,onAfterAppear:nb,onAppearCancelled:nb},Bje=v=>{const E=v.subTree;return E.component?Bje(E.component):E},R2t={name:"BaseTransition",props:jje,setup(v,{slots:E}){const F=Ibt(),$=M2t();return()=>{const ae=E.default&&Uje(E.default(),!0);if(!ae||!ae.length)return;const K=Jje(ae),je=f_(v),{mode:Ye}=je;if($.isLeaving)return Jve(K);const rt=FMe(K);if(!rt)return Jve(K);let wt=o2e(rt,je,$,F,Xe=>wt=Xe);rt.type!==n1&&$z(rt,wt);const Lt=F.subTree,Rt=Lt&&FMe(Lt);if(Rt&&Rt.type!==n1&&!E8(rt,Rt)&&Bje(F).type!==n1){const Xe=o2e(Rt,je,$,F);if($z(Rt,Xe),Ye==="out-in"&&rt.type!==n1)return $.isLeaving=!0,Xe.afterLeave=()=>{$.isLeaving=!1,F.job.flags&8||F.update(),delete Xe.afterLeave},Jve(K);Ye==="in-out"&&rt.type!==n1&&(Xe.delayLeave=(dt,bs,li)=>{const Js=zje($,Rt);Js[String(Rt.key)]=Rt,dt[BE]=()=>{bs(),dt[BE]=void 0,delete wt.delayedLeave},wt.delayedLeave=li})}return K}}};function Jje(v){let E=v[0];if(v.length>1){for(const F of v)if(F.type!==n1){E=F;break}}return E}const j2t=R2t;function zje(v,E){const{leavingVNodes:F}=v;let $=F.get(E.type);return $||($=Object.create(null),F.set(E.type,$)),$}function o2e(v,E,F,$,ae){const{appear:K,mode:je,persisted:Ye=!1,onBeforeEnter:rt,onEnter:wt,onAfterEnter:Lt,onEnterCancelled:Rt,onBeforeLeave:Xe,onLeave:dt,onAfterLeave:bs,onLeaveCancelled:li,onBeforeAppear:Js,onAppear:Yn,onAfterAppear:ii,onAppearCancelled:hs}=E,Pn=String(v.key),Cn=zje(F,v),Ro=(Do,Ai)=>{Do&&JS(Do,$,9,Ai)},Gs=(Do,Ai)=>{const su=Ai[1];Ro(Do,Ai),wc(Do)?Do.every(Qa=>Qa.length<=1)&&su():Do.length<=1&&su()},lf={mode:je,persisted:Ye,beforeEnter(Do){let Ai=rt;if(!F.isMounted)if(K)Ai=Js||rt;else return;Do[BE]&&Do[BE](!0);const su=Cn[Pn];su&&E8(v,su)&&su.el[BE]&&su.el[BE](),Ro(Ai,[Do])},enter(Do){let Ai=wt,su=Lt,Qa=Rt;if(!F.isMounted)if(K)Ai=Yn||wt,su=ii||Lt,Qa=hs||Rt;else return;let Bc=!1;const vr=Do[Lne]=Ch=>{Bc||(Bc=!0,Ch?Ro(Qa,[Do]):Ro(su,[Do]),lf.delayedLeave&&lf.delayedLeave(),Do[Lne]=void 0)};Ai?Gs(Ai,[Do,vr]):vr()},leave(Do,Ai){const su=String(v.key);if(Do[Lne]&&Do[Lne](!0),F.isUnmounting)return Ai();Ro(Xe,[Do]);let Qa=!1;const Bc=Do[BE]=vr=>{Qa||(Qa=!0,Ai(),vr?Ro(li,[Do]):Ro(bs,[Do]),Do[BE]=void 0,Cn[su]===v&&delete Cn[su])};Cn[su]=v,dt?Gs(dt,[Do,Bc]):Bc()},clone(Do){const Ai=o2e(Do,E,F,$,ae);return ae&&ae(Ai),Ai}};return lf}function Jve(v){if(ore(v))return v=HE(v),v.children=null,v}function FMe(v){if(!ore(v))return Rje(v.type)&&v.children?Jje(v.children):v;const{shapeFlag:E,children:F}=v;if(F){if(E&16)return F[0];if(E&32&&el(F.default))return F.default()}}function $z(v,E){v.shapeFlag&6&&v.component?(v.transition=E,$z(v.component.subTree,E)):v.shapeFlag&128?(v.ssContent.transition=E.clone(v.ssContent),v.ssFallback.transition=E.clone(v.ssFallback)):v.transition=E}function Uje(v,E=!1,F){let $=[],ae=0;for(let K=0;K1)for(let K=0;K<$.length;K++)$[K].patchFlag=-2;return $}/*! #__NO_SIDE_EFFECTS__ */function US(v,E){return el(v)?Qm({name:v.name},E,{setup:v}):v}function Vje(v){v.ids=[v.ids[0]+v.ids[2]+++"-",0,0]}function c2e(v,E,F,$,ae=!1){if(wc(v)){v.forEach((bs,li)=>c2e(bs,E&&(wc(E)?E[li]:E),F,$,ae));return}if(Mz($)&&!ae)return;const K=$.shapeFlag&4?sbe($.component):$.el,je=ae?null:K,{i:Ye,r:rt}=v,wt=E&&E.r,Lt=Ye.refs===Bf?Ye.refs={}:Ye.refs,Rt=Ye.setupState,Xe=f_(Rt),dt=Rt===Bf?()=>!1:bs=>E_(Xe,bs);if(wt!=null&&wt!==rt&&(Td(wt)?(Lt[wt]=null,dt(wt)&&(Rt[wt]=null)):c0(wt)&&(wt.value=null)),el(rt))tU(rt,Ye,12,[je,Lt]);else{const bs=Td(rt),li=c0(rt);if(bs||li){const Js=()=>{if(v.f){const Yn=bs?dt(rt)?Rt[rt]:Lt[rt]:rt.value;ae?wc(Yn)&&V2e(Yn,K):wc(Yn)?Yn.includes(K)||Yn.push(K):bs?(Lt[rt]=[K],dt(rt)&&(Rt[rt]=Lt[rt])):(rt.value=[K],v.k&&(Lt[v.k]=rt.value))}else bs?(Lt[rt]=je,dt(rt)&&(Rt[rt]=je)):li&&(rt.value=je,v.k&&(Lt[v.k]=je))};je?(Js.id=-1,Av(Js,F)):Js()}}}const Mz=v=>!!v.type.__asyncLoader,ore=v=>v.type.__isKeepAlive;function B2t(v,E){Wje(v,"a",E)}function J2t(v,E){Wje(v,"da",E)}function Wje(v,E,F=kh){const $=v.__wdc||(v.__wdc=()=>{let ae=F;for(;ae;){if(ae.isDeactivated)return;ae=ae.parent}return v()});if(cre(E,$,F),F){let ae=F.parent;for(;ae&&ae.parent;)ore(ae.parent.vnode)&&z2t($,E,F,ae),ae=ae.parent}}function z2t(v,E,F,$){const ae=cre(E,v,$,!0);Hje(()=>{V2e($[E],ae)},F)}function cre(v,E,F=kh,$=!1){if(F){const ae=F[v]||(F[v]=[]),K=E.__weh||(E.__weh=(...je)=>{YE();const Ye=nU(F),rt=JS(E,F,v,je);return Ye(),ZE(),rt});return $?ae.unshift(K):ae.push(K),K}}const T6=v=>(E,F=kh)=>{(!_re||v==="sp")&&cre(v,(...$)=>E(...$),F)},U2t=T6("bm"),EO=T6("m"),V2t=T6("bu"),W2t=T6("u"),qje=T6("bum"),Hje=T6("um"),q2t=T6("sp"),H2t=T6("rtg"),G2t=T6("rtc");function $2t(v,E=kh){cre("ec",v,E)}const Gje="components";function X2t(v,E){return Xje(Gje,v,!0,E)||v}const $je=Symbol.for("v-ndc");function Q2t(v){return Td(v)?Xje(Gje,v,!1)||v:v||$je}function Xje(v,E,F=!0,$=!1){const ae=rb||kh;if(ae){const K=ae.type;{const Ye=Rbt(K,!1);if(Ye&&(Ye===E||Ye===BS(E)||Ye===tre(BS(E))))return K}const je=LMe(ae[v]||K[v],E)||LMe(ae.appContext[v],E);return!je&&$?K:je}}function LMe(v,E){return v&&(v[E]||v[BS(E)]||v[tre(BS(E))])}function Rne(v,E,F,$){let ae;const K=F,je=wc(v);if(je||Td(v)){const Ye=je&&yO(v);let rt=!1;Ye&&(rt=!ib(v),v=rre(v)),ae=new Array(v.length);for(let wt=0,Lt=v.length;wtE(Ye,rt,void 0,K));else{const Ye=Object.keys(v);ae=new Array(Ye.length);for(let rt=0,wt=Ye.length;rtv?mBe(v)?sbe(v):l2e(v.parent):null,Rz=Qm(Object.create(null),{$:v=>v,$el:v=>v.vnode.el,$data:v=>v.data,$props:v=>v.props,$attrs:v=>v.attrs,$slots:v=>v.slots,$refs:v=>v.refs,$parent:v=>l2e(v.parent),$root:v=>l2e(v.root),$host:v=>v.ce,$emit:v=>v.emit,$options:v=>nbe(v),$forceUpdate:v=>v.f||(v.f=()=>{tbe(v.update)}),$nextTick:v=>v.n||(v.n=Ije.bind(v.proxy)),$watch:v=>hbt.bind(v)}),zve=(v,E)=>v!==Bf&&!v.__isScriptSetup&&E_(v,E),Y2t={get({_:v},E){if(E==="__v_skip")return!0;const{ctx:F,setupState:$,data:ae,props:K,accessCache:je,type:Ye,appContext:rt}=v;let wt;if(E[0]!=="$"){const dt=je[E];if(dt!==void 0)switch(dt){case 1:return $[E];case 2:return ae[E];case 4:return F[E];case 3:return K[E]}else{if(zve($,E))return je[E]=1,$[E];if(ae!==Bf&&E_(ae,E))return je[E]=2,ae[E];if((wt=v.propsOptions[0])&&E_(wt,E))return je[E]=3,K[E];if(F!==Bf&&E_(F,E))return je[E]=4,F[E];u2e&&(je[E]=0)}}const Lt=Rz[E];let Rt,Xe;if(Lt)return E==="$attrs"&&l0(v.attrs,"get",""),Lt(v);if((Rt=Ye.__cssModules)&&(Rt=Rt[E]))return Rt;if(F!==Bf&&E_(F,E))return je[E]=4,F[E];if(Xe=rt.config.globalProperties,E_(Xe,E))return Xe[E]},set({_:v},E,F){const{data:$,setupState:ae,ctx:K}=v;return zve(ae,E)?(ae[E]=F,!0):$!==Bf&&E_($,E)?($[E]=F,!0):E_(v.props,E)||E[0]==="$"&&E.slice(1)in v?!1:(K[E]=F,!0)},has({_:{data:v,setupState:E,accessCache:F,ctx:$,appContext:ae,propsOptions:K}},je){let Ye;return!!F[je]||v!==Bf&&E_(v,je)||zve(E,je)||(Ye=K[0])&&E_(Ye,je)||E_($,je)||E_(Rz,je)||E_(ae.config.globalProperties,je)},defineProperty(v,E,F){return F.get!=null?v._.accessCache[E]=0:E_(F,"value")&&this.set(v,E,F.value,null),Reflect.defineProperty(v,E,F)}};function MMe(v){return wc(v)?v.reduce((E,F)=>(E[F]=null,E),{}):v}let u2e=!0;function Z2t(v){const E=nbe(v),F=v.proxy,$=v.ctx;u2e=!1,E.beforeCreate&&RMe(E.beforeCreate,v,"bc");const{data:ae,computed:K,methods:je,watch:Ye,provide:rt,inject:wt,created:Lt,beforeMount:Rt,mounted:Xe,beforeUpdate:dt,updated:bs,activated:li,deactivated:Js,beforeDestroy:Yn,beforeUnmount:ii,destroyed:hs,unmounted:Pn,render:Cn,renderTracked:Ro,renderTriggered:Gs,errorCaptured:lf,serverPrefetch:Do,expose:Ai,inheritAttrs:su,components:Qa,directives:Bc,filters:vr}=E;if(wt&&K2t(wt,$,null),je)for(const Kt in je){const Nl=je[Kt];el(Nl)&&($[Kt]=Nl.bind(F))}if(ae){const Kt=ae.call(F,F);_p(Kt)&&(v.data=sre(Kt))}if(u2e=!0,K)for(const Kt in K){const Nl=K[Kt],Dc=el(Nl)?Nl.bind(F,F):el(Nl.get)?Nl.get.bind(F,F):KT,P_=!el(Nl)&&el(Nl.set)?Nl.set.bind(F):KT,Ys=Th({get:Dc,set:P_});Object.defineProperty($,Kt,{enumerable:!0,configurable:!0,get:()=>Ys.value,set:Yp=>Ys.value=Yp})}if(Ye)for(const Kt in Ye)Qje(Ye[Kt],$,F,Kt);if(rt){const Kt=el(rt)?rt.call(F):rt;Reflect.ownKeys(Kt).forEach(Nl=>{jne(Nl,Kt[Nl])})}Lt&&RMe(Lt,v,"c");function Al(Kt,Nl){wc(Nl)?Nl.forEach(Dc=>Kt(Dc.bind(F))):Nl&&Kt(Nl.bind(F))}if(Al(U2t,Rt),Al(EO,Xe),Al(V2t,dt),Al(W2t,bs),Al(B2t,li),Al(J2t,Js),Al($2t,lf),Al(G2t,Ro),Al(H2t,Gs),Al(qje,ii),Al(Hje,Pn),Al(q2t,Do),wc(Ai))if(Ai.length){const Kt=v.exposed||(v.exposed={});Ai.forEach(Nl=>{Object.defineProperty(Kt,Nl,{get:()=>F[Nl],set:Dc=>F[Nl]=Dc})})}else v.exposed||(v.exposed={});Cn&&v.render===KT&&(v.render=Cn),su!=null&&(v.inheritAttrs=su),Qa&&(v.components=Qa),Bc&&(v.directives=Bc),Do&&Vje(v)}function K2t(v,E,F=KT){wc(v)&&(v=_2e(v));for(const $ in v){const ae=v[$];let K;_p(ae)?"default"in ae?K=b6(ae.from||$,ae.default,!0):K=b6(ae.from||$):K=b6(ae),c0(K)?Object.defineProperty(E,$,{enumerable:!0,configurable:!0,get:()=>K.value,set:je=>K.value=je}):E[$]=K}}function RMe(v,E,F){JS(wc(v)?v.map($=>$.bind(E.proxy)):v.bind(E.proxy),E,F)}function Qje(v,E,F,$){let ae=$.includes(".")?uBe(F,$):()=>F[$];if(Td(v)){const K=E[v];el(K)&&D8(ae,K)}else if(el(v))D8(ae,v.bind(F));else if(_p(v))if(wc(v))v.forEach(K=>Qje(K,E,F,$));else{const K=el(v.handler)?v.handler.bind(F):E[v.handler];el(K)&&D8(ae,K,v)}}function nbe(v){const E=v.type,{mixins:F,extends:$}=E,{mixins:ae,optionsCache:K,config:{optionMergeStrategies:je}}=v.appContext,Ye=K.get(E);let rt;return Ye?rt=Ye:!ae.length&&!F&&!$?rt=E:(rt={},ae.length&&ae.forEach(wt=>Hne(rt,wt,je,!0)),Hne(rt,E,je)),_p(E)&&K.set(E,rt),rt}function Hne(v,E,F,$=!1){const{mixins:ae,extends:K}=E;K&&Hne(v,K,F,!0),ae&&ae.forEach(je=>Hne(v,je,F,!0));for(const je in E)if(!($&&je==="expose")){const Ye=ebt[je]||F&&F[je];v[je]=Ye?Ye(v[je],E[je]):E[je]}return v}const ebt={data:jMe,props:BMe,emits:BMe,methods:Nz,computed:Nz,beforeCreate:ny,created:ny,beforeMount:ny,mounted:ny,beforeUpdate:ny,updated:ny,beforeDestroy:ny,beforeUnmount:ny,destroyed:ny,unmounted:ny,activated:ny,deactivated:ny,errorCaptured:ny,serverPrefetch:ny,components:Nz,directives:Nz,watch:nbt,provide:jMe,inject:tbt};function jMe(v,E){return E?v?function(){return Qm(el(v)?v.call(this,this):v,el(E)?E.call(this,this):E)}:E:v}function tbt(v,E){return Nz(_2e(v),_2e(E))}function _2e(v){if(wc(v)){const E={};for(let F=0;F1)return F&&el(E)?E.call($&&$.proxy):E}}const Zje={},Kje=()=>Object.create(Zje),eBe=v=>Object.getPrototypeOf(v)===Zje;function sbt(v,E,F,$=!1){const ae={},K=Kje();v.propsDefaults=Object.create(null),tBe(v,E,ae,K);for(const je in v.propsOptions[0])je in ae||(ae[je]=void 0);F?v.props=$?ae:Pje(ae):v.type.props?v.props=ae:v.props=K,v.attrs=K}function abt(v,E,F,$){const{props:ae,attrs:K,vnode:{patchFlag:je}}=v,Ye=f_(ae),[rt]=v.propsOptions;let wt=!1;if(($||je>0)&&!(je&16)){if(je&8){const Lt=v.vnode.dynamicProps;for(let Rt=0;Rt{rt=!0;const[Xe,dt]=nBe(Rt,E,!0);Qm(je,Xe),dt&&Ye.push(...dt)};!F&&E.mixins.length&&E.mixins.forEach(Lt),v.extends&&Lt(v.extends),v.mixins&&v.mixins.forEach(Lt)}if(!K&&!rt)return _p(v)&&$.set(v,gO),gO;if(wc(K))for(let Lt=0;Ltv[0]==="_"||v==="$stable",rbe=v=>wc(v)?v.map(QT):[QT(v)],cbt=(v,E,F)=>{if(E._n)return E;const $=VE((...ae)=>rbe(E(...ae)),F);return $._c=!1,$},iBe=(v,E,F)=>{const $=v._ctx;for(const ae in v){if(rBe(ae))continue;const K=v[ae];if(el(K))E[ae]=cbt(ae,K,$);else if(K!=null){const je=rbe(K);E[ae]=()=>je}}},sBe=(v,E)=>{const F=rbe(E);v.slots.default=()=>F},aBe=(v,E,F)=>{for(const $ in E)(F||$!=="_")&&(v[$]=E[$])},lbt=(v,E,F)=>{const $=v.slots=Kje();if(v.vnode.shapeFlag&32){const ae=E._;ae?(aBe($,E,F),F&&cje($,"_",ae,!0)):iBe(E,$)}else E&&sBe(v,E)},ubt=(v,E,F)=>{const{vnode:$,slots:ae}=v;let K=!0,je=Bf;if($.shapeFlag&32){const Ye=E._;Ye?F&&Ye===1?K=!1:aBe(ae,E,F):(K=!E.$stable,iBe(E,ae)),je=E}else E&&(sBe(v,E),je={default:1});if(K)for(const Ye in ae)!rBe(Ye)&&je[Ye]==null&&delete ae[Ye]},Av=kbt;function _bt(v){return fbt(v)}function fbt(v,E){const F=lje();F.__VUE__=!0;const{insert:$,remove:ae,patchProp:K,createElement:je,createText:Ye,createComment:rt,setText:wt,setElementText:Lt,parentNode:Rt,nextSibling:Xe,setScopeId:dt=KT,insertStaticContent:bs}=v,li=(Xt,Pe,Dr,zn=null,Pi=null,rs=null,_a=void 0,ea=null,ks=!!Pe.dynamicChildren)=>{if(Xt===Pe)return;Xt&&!E8(Xt,Pe)&&(zn=xi(Xt),Yp(Xt,Pi,rs,!0),Xt=null),Pe.patchFlag===-2&&(ks=!1,Pe.dynamicChildren=null);const{type:ys,ref:Fo,shapeFlag:$s}=Pe;switch(ys){case ure:Js(Xt,Pe,Dr,zn);break;case n1:Yn(Xt,Pe,Dr,zn);break;case Wve:Xt==null&&ii(Pe,Dr,zn,_a);break;case Og:Qa(Xt,Pe,Dr,zn,Pi,rs,_a,ea,ks);break;default:$s&1?Cn(Xt,Pe,Dr,zn,Pi,rs,_a,ea,ks):$s&6?Bc(Xt,Pe,Dr,zn,Pi,rs,_a,ea,ks):($s&64||$s&128)&&ys.process(Xt,Pe,Dr,zn,Pi,rs,_a,ea,ks,Na)}Fo!=null&&Pi&&c2e(Fo,Xt&&Xt.ref,rs,Pe||Xt,!Pe)},Js=(Xt,Pe,Dr,zn)=>{if(Xt==null)$(Pe.el=Ye(Pe.children),Dr,zn);else{const Pi=Pe.el=Xt.el;Pe.children!==Xt.children&&wt(Pi,Pe.children)}},Yn=(Xt,Pe,Dr,zn)=>{Xt==null?$(Pe.el=rt(Pe.children||""),Dr,zn):Pe.el=Xt.el},ii=(Xt,Pe,Dr,zn)=>{[Xt.el,Xt.anchor]=bs(Xt.children,Pe,Dr,zn,Xt.el,Xt.anchor)},hs=({el:Xt,anchor:Pe},Dr,zn)=>{let Pi;for(;Xt&&Xt!==Pe;)Pi=Xe(Xt),$(Xt,Dr,zn),Xt=Pi;$(Pe,Dr,zn)},Pn=({el:Xt,anchor:Pe})=>{let Dr;for(;Xt&&Xt!==Pe;)Dr=Xe(Xt),ae(Xt),Xt=Dr;ae(Pe)},Cn=(Xt,Pe,Dr,zn,Pi,rs,_a,ea,ks)=>{Pe.type==="svg"?_a="svg":Pe.type==="math"&&(_a="mathml"),Xt==null?Ro(Pe,Dr,zn,Pi,rs,_a,ea,ks):Do(Xt,Pe,Pi,rs,_a,ea,ks)},Ro=(Xt,Pe,Dr,zn,Pi,rs,_a,ea)=>{let ks,ys;const{props:Fo,shapeFlag:$s,transition:io,dirs:Go}=Xt;if(ks=Xt.el=je(Xt.type,rs,Fo&&Fo.is,Fo),$s&8?Lt(ks,Xt.children):$s&16&&lf(Xt.children,ks,null,zn,Pi,Uve(Xt,rs),_a,ea),Go&&S8(Xt,null,zn,"created"),Gs(ks,Xt,Xt.scopeId,_a,zn),Fo){for(const Ac in Fo)Ac!=="value"&&!Fz(Ac)&&K(ks,Ac,null,Fo[Ac],rs,zn);"value"in Fo&&K(ks,"value",null,Fo.value,rs),(ys=Fo.onVnodeBeforeMount)&>(ys,zn,Xt)}Go&&S8(Xt,null,zn,"beforeMount");const tl=pbt(Pi,io);tl&&io.beforeEnter(ks),$(ks,Pe,Dr),((ys=Fo&&Fo.onVnodeMounted)||tl||Go)&&Av(()=>{ys&>(ys,zn,Xt),tl&&io.enter(ks),Go&&S8(Xt,null,zn,"mounted")},Pi)},Gs=(Xt,Pe,Dr,zn,Pi)=>{if(Dr&&dt(Xt,Dr),zn)for(let rs=0;rs{for(let ys=ks;ys{const ea=Pe.el=Xt.el;let{patchFlag:ks,dynamicChildren:ys,dirs:Fo}=Pe;ks|=Xt.patchFlag&16;const $s=Xt.props||Bf,io=Pe.props||Bf;let Go;if(Dr&&x8(Dr,!1),(Go=io.onVnodeBeforeUpdate)&>(Go,Dr,Pe,Xt),Fo&&S8(Pe,Xt,Dr,"beforeUpdate"),Dr&&x8(Dr,!0),($s.innerHTML&&io.innerHTML==null||$s.textContent&&io.textContent==null)&&Lt(ea,""),ys?Ai(Xt.dynamicChildren,ys,ea,Dr,zn,Uve(Pe,Pi),rs):_a||Nl(Xt,Pe,ea,null,Dr,zn,Uve(Pe,Pi),rs,!1),ks>0){if(ks&16)su(ea,$s,io,Dr,Pi);else if(ks&2&&$s.class!==io.class&&K(ea,"class",null,io.class,Pi),ks&4&&K(ea,"style",$s.style,io.style,Pi),ks&8){const tl=Pe.dynamicProps;for(let Ac=0;Ac{Go&>(Go,Dr,Pe,Xt),Fo&&S8(Pe,Xt,Dr,"updated")},zn)},Ai=(Xt,Pe,Dr,zn,Pi,rs,_a)=>{for(let ea=0;ea{if(Pe!==Dr){if(Pe!==Bf)for(const rs in Pe)!Fz(rs)&&!(rs in Dr)&&K(Xt,rs,Pe[rs],null,Pi,zn);for(const rs in Dr){if(Fz(rs))continue;const _a=Dr[rs],ea=Pe[rs];_a!==ea&&rs!=="value"&&K(Xt,rs,ea,_a,Pi,zn)}"value"in Dr&&K(Xt,"value",Pe.value,Dr.value,Pi)}},Qa=(Xt,Pe,Dr,zn,Pi,rs,_a,ea,ks)=>{const ys=Pe.el=Xt?Xt.el:Ye(""),Fo=Pe.anchor=Xt?Xt.anchor:Ye("");let{patchFlag:$s,dynamicChildren:io,slotScopeIds:Go}=Pe;Go&&(ea=ea?ea.concat(Go):Go),Xt==null?($(ys,Dr,zn),$(Fo,Dr,zn),lf(Pe.children||[],Dr,Fo,Pi,rs,_a,ea,ks)):$s>0&&$s&64&&io&&Xt.dynamicChildren?(Ai(Xt.dynamicChildren,io,Dr,Pi,rs,_a,ea),(Pe.key!=null||Pi&&Pe===Pi.subTree)&&oBe(Xt,Pe,!0)):Nl(Xt,Pe,Dr,Fo,Pi,rs,_a,ea,ks)},Bc=(Xt,Pe,Dr,zn,Pi,rs,_a,ea,ks)=>{Pe.slotScopeIds=ea,Xt==null?Pe.shapeFlag&512?Pi.ctx.activate(Pe,Dr,zn,_a,ks):vr(Pe,Dr,zn,Pi,rs,_a,ks):Ch(Xt,Pe,ks)},vr=(Xt,Pe,Dr,zn,Pi,rs,_a)=>{const ea=Xt.component=Nbt(Xt,zn,Pi);if(ore(Xt)&&(ea.ctx.renderer=Na),Obt(ea,!1,_a),ea.asyncDep){if(Pi&&Pi.registerDep(ea,Al,_a),!Xt.el){const ks=ea.subTree=fl(n1);Yn(null,ks,Pe,Dr)}}else Al(ea,Xt,Pe,Dr,Pi,rs,_a)},Ch=(Xt,Pe,Dr)=>{const zn=Pe.component=Xt.component;if(xbt(Xt,Pe,Dr))if(zn.asyncDep&&!zn.asyncResolved){Kt(zn,Pe,Dr);return}else zn.next=Pe,zn.update();else Pe.el=Xt.el,zn.vnode=Pe},Al=(Xt,Pe,Dr,zn,Pi,rs,_a)=>{const ea=()=>{if(Xt.isMounted){let{next:$s,bu:io,u:Go,parent:tl,vnode:Ac}=Xt;{const Lg=cBe(Xt);if(Lg){$s&&($s.el=Ac.el,Kt(Xt,$s,_a)),Lg.asyncDep.then(()=>{Xt.isUnmounted||ea()});return}}let Zl=$s,Fg;x8(Xt,!1),$s?($s.el=Ac.el,Kt(Xt,$s,_a)):$s=Ac,io&&Lve(io),(Fg=$s.props&&$s.props.onVnodeBeforeUpdate)&>(Fg,tl,$s,Ac),x8(Xt,!0);const gn=Vve(Xt),Gd=Xt.subTree;Xt.subTree=gn,li(Gd,gn,Rt(Gd.el),xi(Gd),Xt,Pi,rs),$s.el=gn.el,Zl===null&&Tbt(Xt,gn.el),Go&&Av(Go,Pi),(Fg=$s.props&&$s.props.onVnodeUpdated)&&Av(()=>GT(Fg,tl,$s,Ac),Pi)}else{let $s;const{el:io,props:Go}=Pe,{bm:tl,m:Ac,parent:Zl,root:Fg,type:gn}=Xt,Gd=Mz(Pe);if(x8(Xt,!1),tl&&Lve(tl),!Gd&&($s=Go&&Go.onVnodeBeforeMount)&>($s,Zl,Pe),x8(Xt,!0),io&&$_){const Lg=()=>{Xt.subTree=Vve(Xt),$_(io,Xt.subTree,Xt,Pi,null)};Gd&&gn.__asyncHydrate?gn.__asyncHydrate(io,Xt,Lg):Lg()}else{Fg.ce&&Fg.ce._injectChildStyle(gn);const Lg=Xt.subTree=Vve(Xt);li(null,Lg,Dr,zn,Xt,Pi,rs),Pe.el=Lg.el}if(Ac&&Av(Ac,Pi),!Gd&&($s=Go&&Go.onVnodeMounted)){const Lg=Pe;Av(()=>GT($s,Zl,Lg),Pi)}(Pe.shapeFlag&256||Zl&&Mz(Zl.vnode)&&Zl.vnode.shapeFlag&256)&&Xt.a&&Av(Xt.a,Pi),Xt.isMounted=!0,Pe=Dr=zn=null}};Xt.scope.on();const ks=Xt.effect=new pje(ea);Xt.scope.off();const ys=Xt.update=ks.run.bind(ks),Fo=Xt.job=ks.runIfDirty.bind(ks);Fo.i=Xt,Fo.id=Xt.uid,ks.scheduler=()=>tbe(Fo),x8(Xt,!0),ys()},Kt=(Xt,Pe,Dr)=>{Pe.component=Xt;const zn=Xt.vnode.props;Xt.vnode=Pe,Xt.next=null,abt(Xt,Pe.props,zn,Dr),ubt(Xt,Pe.children,Dr),YE(),OMe(Xt),ZE()},Nl=(Xt,Pe,Dr,zn,Pi,rs,_a,ea,ks=!1)=>{const ys=Xt&&Xt.children,Fo=Xt?Xt.shapeFlag:0,$s=Pe.children,{patchFlag:io,shapeFlag:Go}=Pe;if(io>0){if(io&128){P_(ys,$s,Dr,zn,Pi,rs,_a,ea,ks);return}else if(io&256){Dc(ys,$s,Dr,zn,Pi,rs,_a,ea,ks);return}}Go&8?(Fo&16&&Oi(ys,Pi,rs),$s!==ys&&Lt(Dr,$s)):Fo&16?Go&16?P_(ys,$s,Dr,zn,Pi,rs,_a,ea,ks):Oi(ys,Pi,rs,!0):(Fo&8&&Lt(Dr,""),Go&16&&lf($s,Dr,zn,Pi,rs,_a,ea,ks))},Dc=(Xt,Pe,Dr,zn,Pi,rs,_a,ea,ks)=>{Xt=Xt||gO,Pe=Pe||gO;const ys=Xt.length,Fo=Pe.length,$s=Math.min(ys,Fo);let io;for(io=0;io<$s;io++){const Go=Pe[io]=ks?JE(Pe[io]):QT(Pe[io]);li(Xt[io],Go,Dr,null,Pi,rs,_a,ea,ks)}ys>Fo?Oi(Xt,Pi,rs,!0,!1,$s):lf(Pe,Dr,zn,Pi,rs,_a,ea,ks,$s)},P_=(Xt,Pe,Dr,zn,Pi,rs,_a,ea,ks)=>{let ys=0;const Fo=Pe.length;let $s=Xt.length-1,io=Fo-1;for(;ys<=$s&&ys<=io;){const Go=Xt[ys],tl=Pe[ys]=ks?JE(Pe[ys]):QT(Pe[ys]);if(E8(Go,tl))li(Go,tl,Dr,null,Pi,rs,_a,ea,ks);else break;ys++}for(;ys<=$s&&ys<=io;){const Go=Xt[$s],tl=Pe[io]=ks?JE(Pe[io]):QT(Pe[io]);if(E8(Go,tl))li(Go,tl,Dr,null,Pi,rs,_a,ea,ks);else break;$s--,io--}if(ys>$s){if(ys<=io){const Go=io+1,tl=Goio)for(;ys<=$s;)Yp(Xt[ys],Pi,rs,!0),ys++;else{const Go=ys,tl=ys,Ac=new Map;for(ys=tl;ys<=io;ys++){const w_=Pe[ys]=ks?JE(Pe[ys]):QT(Pe[ys]);w_.key!=null&&Ac.set(w_.key,ys)}let Zl,Fg=0;const gn=io-tl+1;let Gd=!1,Lg=0;const Mr=new Array(gn);for(ys=0;ys=gn){Yp(w_,Pi,rs,!0);continue}let r1;if(w_.key!=null)r1=Ac.get(w_.key);else for(Zl=tl;Zl<=io;Zl++)if(Mr[Zl-tl]===0&&E8(w_,Pe[Zl])){r1=Zl;break}r1===void 0?Yp(w_,Pi,rs,!0):(Mr[r1-tl]=ys+1,r1>=Lg?Lg=r1:Gd=!0,li(w_,Pe[r1],Dr,null,Pi,rs,_a,ea,ks),Fg++)}const Jf=Gd?dbt(Mr):gO;for(Zl=Jf.length-1,ys=gn-1;ys>=0;ys--){const w_=tl+ys,r1=Pe[w_],i1=w_+1{const{el:rs,type:_a,transition:ea,children:ks,shapeFlag:ys}=Xt;if(ys&6){Ys(Xt.component.subTree,Pe,Dr,zn);return}if(ys&128){Xt.suspense.move(Pe,Dr,zn);return}if(ys&64){_a.move(Xt,Pe,Dr,Na);return}if(_a===Og){$(rs,Pe,Dr);for(let $s=0;$sea.enter(rs),Pi);else{const{leave:$s,delayLeave:io,afterLeave:Go}=ea,tl=()=>$(rs,Pe,Dr),Ac=()=>{$s(rs,()=>{tl(),Go&&Go()})};io?io(rs,tl,Ac):Ac()}else $(rs,Pe,Dr)},Yp=(Xt,Pe,Dr,zn=!1,Pi=!1)=>{const{type:rs,props:_a,ref:ea,children:ks,dynamicChildren:ys,shapeFlag:Fo,patchFlag:$s,dirs:io,cacheIndex:Go}=Xt;if($s===-2&&(Pi=!1),ea!=null&&c2e(ea,null,Dr,Xt,!0),Go!=null&&(Pe.renderCache[Go]=void 0),Fo&256){Pe.ctx.deactivate(Xt);return}const tl=Fo&1&&io,Ac=!Mz(Xt);let Zl;if(Ac&&(Zl=_a&&_a.onVnodeBeforeUnmount)&>(Zl,Pe,Xt),Fo&6)nk(Xt.component,Dr,zn);else{if(Fo&128){Xt.suspense.unmount(Dr,zn);return}tl&&S8(Xt,null,Pe,"beforeUnmount"),Fo&64?Xt.type.remove(Xt,Pe,Dr,Na,zn):ys&&!ys.hasOnce&&(rs!==Og||$s>0&&$s&64)?Oi(ys,Pe,Dr,!1,!0):(rs===Og&&$s&384||!Pi&&Fo&16)&&Oi(ks,Pe,Dr),zn&&sb(Xt)}(Ac&&(Zl=_a&&_a.onVnodeUnmounted)||tl)&&Av(()=>{Zl&>(Zl,Pe,Xt),tl&&S8(Xt,null,Pe,"unmounted")},Dr)},sb=Xt=>{const{type:Pe,el:Dr,anchor:zn,transition:Pi}=Xt;if(Pe===Og){VS(Dr,zn);return}if(Pe===Wve){Pn(Xt);return}const rs=()=>{ae(Dr),Pi&&!Pi.persisted&&Pi.afterLeave&&Pi.afterLeave()};if(Xt.shapeFlag&1&&Pi&&!Pi.persisted){const{leave:_a,delayLeave:ea}=Pi,ks=()=>_a(Dr,rs);ea?ea(Xt.el,rs,ks):ks()}else rs()},VS=(Xt,Pe)=>{let Dr;for(;Xt!==Pe;)Dr=Xe(Xt),ae(Xt),Xt=Dr;ae(Pe)},nk=(Xt,Pe,Dr)=>{const{bum:zn,scope:Pi,job:rs,subTree:_a,um:ea,m:ks,a:ys}=Xt;zMe(ks),zMe(ys),zn&&Lve(zn),Pi.stop(),rs&&(rs.flags|=8,Yp(_a,Xt,Pe,Dr)),ea&&Av(ea,Pe),Av(()=>{Xt.isUnmounted=!0},Pe),Pe&&Pe.pendingBranch&&!Pe.isUnmounted&&Xt.asyncDep&&!Xt.asyncResolved&&Xt.suspenseId===Pe.pendingId&&(Pe.deps--,Pe.deps===0&&Pe.resolve())},Oi=(Xt,Pe,Dr,zn=!1,Pi=!1,rs=0)=>{for(let _a=rs;_a{if(Xt.shapeFlag&6)return xi(Xt.component.subTree);if(Xt.shapeFlag&128)return Xt.suspense.next();const Pe=Xe(Xt.anchor||Xt.el),Dr=Pe&&Pe[L2t];return Dr?Xe(Dr):Pe};let Aa=!1;const Ks=(Xt,Pe,Dr)=>{Xt==null?Pe._vnode&&Yp(Pe._vnode,null,null,!0):li(Pe._vnode||null,Xt,Pe,null,null,null,Dr),Pe._vnode=Xt,Aa||(Aa=!0,OMe(),Fje(),Aa=!1)},Na={p:li,um:Yp,m:Ys,r:sb,mt:vr,mc:lf,pc:Nl,pbc:Ai,n:xi,o:v};let wu,$_;return{render:Ks,hydrate:wu,createApp:ibt(Ks,wu)}}function Uve({type:v,props:E},F){return F==="svg"&&v==="foreignObject"||F==="mathml"&&v==="annotation-xml"&&E&&E.encoding&&E.encoding.includes("html")?void 0:F}function x8({effect:v,job:E},F){F?(v.flags|=32,E.flags|=4):(v.flags&=-33,E.flags&=-5)}function pbt(v,E){return(!v||v&&!v.pendingBranch)&&E&&!E.persisted}function oBe(v,E,F=!1){const $=v.children,ae=E.children;if(wc($)&&wc(ae))for(let K=0;K<$.length;K++){const je=$[K];let Ye=ae[K];Ye.shapeFlag&1&&!Ye.dynamicChildren&&((Ye.patchFlag<=0||Ye.patchFlag===32)&&(Ye=ae[K]=JE(ae[K]),Ye.el=je.el),!F&&Ye.patchFlag!==-2&&oBe(je,Ye)),Ye.type===ure&&(Ye.el=je.el)}}function dbt(v){const E=v.slice(),F=[0];let $,ae,K,je,Ye;const rt=v.length;for($=0;$>1,v[F[Ye]]0&&(E[$]=F[K-1]),F[K]=$)}}for(K=F.length,je=F[K-1];K-- >0;)F[K]=je,je=E[je];return F}function cBe(v){const E=v.subTree.component;if(E)return E.asyncDep&&!E.asyncResolved?E:cBe(E)}function zMe(v){if(v)for(let E=0;Eb6(mbt);function D8(v,E,F){return lBe(v,E,F)}function lBe(v,E,F=Bf){const{immediate:$,deep:ae,flush:K,once:je}=F,Ye=Qm({},F);let rt;if(_re)if(K==="sync"){const Xe=gbt();rt=Xe.__watcherHandles||(Xe.__watcherHandles=[])}else if(!E||$)Ye.once=!0;else{const Xe=()=>{};return Xe.stop=KT,Xe.resume=KT,Xe.pause=KT,Xe}const wt=kh;Ye.call=(Xe,dt,bs)=>JS(Xe,wt,dt,bs);let Lt=!1;K==="post"?Ye.scheduler=Xe=>{Av(Xe,wt&&wt.suspense)}:K!=="sync"&&(Lt=!0,Ye.scheduler=(Xe,dt)=>{dt?Xe():tbe(Xe)}),Ye.augmentJob=Xe=>{E&&(Xe.flags|=4),Lt&&(Xe.flags|=2,wt&&(Xe.id=wt.uid,Xe.i=wt))};const Rt=N2t(v,E,Ye);return rt&&rt.push(Rt),Rt}function hbt(v,E,F){const $=this.proxy,ae=Td(v)?v.includes(".")?uBe($,v):()=>$[v]:v.bind($,$);let K;el(E)?K=E:(K=E.handler,F=E);const je=nU(this),Ye=lBe(ae,K.bind($),F);return je(),Ye}function uBe(v,E){const F=E.split(".");return()=>{let $=v;for(let ae=0;aeE==="modelValue"||E==="model-value"?v.modelModifiers:v[`${E}Modifiers`]||v[`${BS(E)}Modifiers`]||v[`${L8(E)}Modifiers`];function vbt(v,E,...F){if(v.isUnmounted)return;const $=v.vnode.props||Bf;let ae=F;const K=E.startsWith("update:"),je=K&&ybt($,E.slice(7));je&&(je.trim&&(ae=F.map(Lt=>Td(Lt)?Lt.trim():Lt)),je.number&&(ae=F.map(Gvt)));let Ye,rt=$[Ye=Fve(E)]||$[Ye=Fve(BS(E))];!rt&&K&&(rt=$[Ye=Fve(L8(E))]),rt&&JS(rt,v,6,ae);const wt=$[Ye+"Once"];if(wt){if(!v.emitted)v.emitted={};else if(v.emitted[Ye])return;v.emitted[Ye]=!0,JS(wt,v,6,ae)}}function _Be(v,E,F=!1){const $=E.emitsCache,ae=$.get(v);if(ae!==void 0)return ae;const K=v.emits;let je={},Ye=!1;if(!el(v)){const rt=wt=>{const Lt=_Be(wt,E,!0);Lt&&(Ye=!0,Qm(je,Lt))};!F&&E.mixins.length&&E.mixins.forEach(rt),v.extends&&rt(v.extends),v.mixins&&v.mixins.forEach(rt)}return!K&&!Ye?(_p(v)&&$.set(v,null),null):(wc(K)?K.forEach(rt=>je[rt]=null):Qm(je,K),_p(v)&&$.set(v,je),je)}function lre(v,E){return!v||!Zne(E)?!1:(E=E.slice(2).replace(/Once$/,""),E_(v,E[0].toLowerCase()+E.slice(1))||E_(v,L8(E))||E_(v,E))}function Vve(v){const{type:E,vnode:F,proxy:$,withProxy:ae,propsOptions:[K],slots:je,attrs:Ye,emit:rt,render:wt,renderCache:Lt,props:Rt,data:Xe,setupState:dt,ctx:bs,inheritAttrs:li}=v,Js=qne(v);let Yn,ii;try{if(F.shapeFlag&4){const Pn=ae||$,Cn=Pn;Yn=QT(wt.call(Cn,Pn,Lt,Rt,dt,Xe,bs)),ii=Ye}else{const Pn=E;Yn=QT(Pn.length>1?Pn(Rt,{attrs:Ye,slots:je,emit:rt}):Pn(Rt,null)),ii=E.props?Ye:bbt(Ye)}}catch(Pn){jz.length=0,are(Pn,v,1),Yn=fl(n1)}let hs=Yn;if(ii&&li!==!1){const Pn=Object.keys(ii),{shapeFlag:Cn}=hs;Pn.length&&Cn&7&&(K&&Pn.some(U2e)&&(ii=Sbt(ii,K)),hs=HE(hs,ii,!1,!0))}return F.dirs&&(hs=HE(hs,null,!1,!0),hs.dirs=hs.dirs?hs.dirs.concat(F.dirs):F.dirs),F.transition&&$z(hs,F.transition),Yn=hs,qne(Js),Yn}const bbt=v=>{let E;for(const F in v)(F==="class"||F==="style"||Zne(F))&&((E||(E={}))[F]=v[F]);return E},Sbt=(v,E)=>{const F={};for(const $ in v)(!U2e($)||!($.slice(9)in E))&&(F[$]=v[$]);return F};function xbt(v,E,F){const{props:$,children:ae,component:K}=v,{props:je,children:Ye,patchFlag:rt}=E,wt=K.emitsOptions;if(E.dirs||E.transition)return!0;if(F&&rt>=0){if(rt&1024)return!0;if(rt&16)return $?UMe($,je,wt):!!je;if(rt&8){const Lt=E.dynamicProps;for(let Rt=0;Rtv.__isSuspense;function kbt(v,E){E&&E.pendingBranch?wc(v)?E.effects.push(...v):E.effects.push(v):F2t(v)}const Og=Symbol.for("v-fgt"),ure=Symbol.for("v-txt"),n1=Symbol.for("v-cmt"),Wve=Symbol.for("v-stc"),jz=[];let Ov=null;function cl(v=!1){jz.push(Ov=v?null:[])}function Cbt(){jz.pop(),Ov=jz[jz.length-1]||null}let Xz=1;function VMe(v){Xz+=v,v<0&&Ov&&(Ov.hasOnce=!0)}function pBe(v){return v.dynamicChildren=Xz>0?Ov||gO:null,Cbt(),Xz>0&&Ov&&Ov.push(v),v}function Ul(v,E,F,$,ae,K){return pBe(hi(v,E,F,$,ae,K,!0))}function Gne(v,E,F,$,ae){return pBe(fl(v,E,F,$,ae,!0))}function p2e(v){return v?v.__v_isVNode===!0:!1}function E8(v,E){return v.type===E.type&&v.key===E.key}const dBe=({key:v})=>v??null,Bne=({ref:v,ref_key:E,ref_for:F})=>(typeof v=="number"&&(v=""+v),v!=null?Td(v)||c0(v)||el(v)?{i:rb,r:v,k:E,f:!!F}:v:null);function hi(v,E=null,F=null,$=0,ae=null,K=v===Og?0:1,je=!1,Ye=!1){const rt={__v_isVNode:!0,__v_skip:!0,type:v,props:E,key:E&&dBe(E),ref:E&&Bne(E),scopeId:Mje,slotScopeIds:null,children:F,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:K,patchFlag:$,dynamicProps:ae,dynamicChildren:null,appContext:null,ctx:rb};return Ye?(ibe(rt,F),K&128&&v.normalize(rt)):F&&(rt.shapeFlag|=Td(F)?8:16),Xz>0&&!je&&Ov&&(rt.patchFlag>0||K&6)&&rt.patchFlag!==32&&Ov.push(rt),rt}const fl=Ebt;function Ebt(v,E=null,F=null,$=0,ae=null,K=!1){if((!v||v===$je)&&(v=n1),p2e(v)){const Ye=HE(v,E,!0);return F&&ibe(Ye,F),Xz>0&&!K&&Ov&&(Ye.shapeFlag&6?Ov[Ov.indexOf(v)]=Ye:Ov.push(Ye)),Ye.patchFlag=-2,Ye}if(jbt(v)&&(v=v.__vccOpts),E){E=Pbt(E);let{class:Ye,style:rt}=E;Ye&&!Td(Ye)&&(E.class=Vz(Ye)),_p(rt)&&(Z2e(rt)&&!wc(rt)&&(rt=Qm({},rt)),E.style=nre(rt))}const je=Td(v)?1:fBe(v)?128:Rje(v)?64:_p(v)?4:el(v)?2:0;return hi(v,E,F,$,ae,je,K,!0)}function Pbt(v){return v?Z2e(v)||eBe(v)?Qm({},v):v:null}function HE(v,E,F=!1,$=!1){const{props:ae,ref:K,patchFlag:je,children:Ye,transition:rt}=v,wt=E?wbt(ae||{},E):ae,Lt={__v_isVNode:!0,__v_skip:!0,type:v.type,props:wt,key:wt&&dBe(wt),ref:E&&E.ref?F&&K?wc(K)?K.concat(Bne(E)):[K,Bne(E)]:Bne(E):K,scopeId:v.scopeId,slotScopeIds:v.slotScopeIds,children:Ye,target:v.target,targetStart:v.targetStart,targetAnchor:v.targetAnchor,staticCount:v.staticCount,shapeFlag:v.shapeFlag,patchFlag:E&&v.type!==Og?je===-1?16:je|16:je,dynamicProps:v.dynamicProps,dynamicChildren:v.dynamicChildren,appContext:v.appContext,dirs:v.dirs,transition:rt,component:v.component,suspense:v.suspense,ssContent:v.ssContent&&HE(v.ssContent),ssFallback:v.ssFallback&&HE(v.ssFallback),el:v.el,anchor:v.anchor,ctx:v.ctx,ce:v.ce};return rt&&$&&$z(Lt,rt.clone(Lt)),Lt}function gu(v=" ",E=0){return fl(ure,null,v,E)}function xh(v="",E=!1){return E?(cl(),Gne(n1,null,v)):fl(n1,null,v)}function QT(v){return v==null||typeof v=="boolean"?fl(n1):wc(v)?fl(Og,null,v.slice()):typeof v=="object"?JE(v):fl(ure,null,String(v))}function JE(v){return v.el===null&&v.patchFlag!==-1||v.memo?v:HE(v)}function ibe(v,E){let F=0;const{shapeFlag:$}=v;if(E==null)E=null;else if(wc(E))F=16;else if(typeof E=="object")if($&65){const ae=E.default;ae&&(ae._c&&(ae._d=!1),ibe(v,ae()),ae._c&&(ae._d=!0));return}else{F=32;const ae=E._;!ae&&!eBe(E)?E._ctx=rb:ae===3&&rb&&(rb.slots._===1?E._=1:(E._=2,v.patchFlag|=1024))}else el(E)?(E={default:E,_ctx:rb},F=32):(E=String(E),$&64?(F=16,E=[gu(E)]):F=8);v.children=E,v.shapeFlag|=F}function wbt(...v){const E={};for(let F=0;Fkh||rb;let $ne,d2e;{const v=lje(),E=(F,$)=>{let ae;return(ae=v[F])||(ae=v[F]=[]),ae.push($),K=>{ae.length>1?ae.forEach(je=>je(K)):ae[0](K)}};$ne=E("__VUE_INSTANCE_SETTERS__",F=>kh=F),d2e=E("__VUE_SSR_SETTERS__",F=>_re=F)}const nU=v=>{const E=kh;return $ne(v),v.scope.on(),()=>{v.scope.off(),$ne(E)}},WMe=()=>{kh&&kh.scope.off(),$ne(null)};function mBe(v){return v.vnode.shapeFlag&4}let _re=!1;function Obt(v,E=!1,F=!1){E&&d2e(E);const{props:$,children:ae}=v.vnode,K=mBe(v);sbt(v,$,K,E),lbt(v,ae,F);const je=K?Fbt(v,E):void 0;return E&&d2e(!1),je}function Fbt(v,E){const F=v.type;v.accessCache=Object.create(null),v.proxy=new Proxy(v.ctx,Y2t);const{setup:$}=F;if($){const ae=v.setupContext=$.length>1?Mbt(v):null,K=nU(v);YE();const je=tU($,v,0,[v.props,ae]);if(ZE(),K(),sje(je)){if(Mz(v)||Vje(v),je.then(WMe,WMe),E)return je.then(Ye=>{qMe(v,Ye,E)}).catch(Ye=>{are(Ye,v,0)});v.asyncDep=je}else qMe(v,je,E)}else gBe(v,E)}function qMe(v,E,F){el(E)?v.type.__ssrInlineRender?v.ssrRender=E:v.render=E:_p(E)&&(v.setupState=Aje(E)),gBe(v,F)}let HMe;function gBe(v,E,F){const $=v.type;if(!v.render){if(!E&&HMe&&!$.render){const ae=$.template||nbe(v).template;if(ae){const{isCustomElement:K,compilerOptions:je}=v.appContext.config,{delimiters:Ye,compilerOptions:rt}=$,wt=Qm(Qm({isCustomElement:K,delimiters:Ye},je),rt);$.render=HMe(ae,wt)}}v.render=$.render||KT}{const ae=nU(v);YE();try{Z2t(v)}finally{ZE(),ae()}}}const Lbt={get(v,E){return l0(v,"get",""),v[E]}};function Mbt(v){const E=F=>{v.exposed=F||{}};return{attrs:new Proxy(v.attrs,Lbt),slots:v.slots,emit:v.emit,expose:E}}function sbe(v){return v.exposed?v.exposeProxy||(v.exposeProxy=new Proxy(Aje(k2t(v.exposed)),{get(E,F){if(F in E)return E[F];if(F in Rz)return Rz[F](v)},has(E,F){return F in E||F in Rz}})):v.proxy}function Rbt(v,E=!0){return el(v)?v.displayName||v.name:v.name||E&&v.__name}function jbt(v){return el(v)&&"__vccOpts"in v}const Th=(v,E)=>D2t(v,E,_re);function fre(v,E,F){const $=arguments.length;return $===2?_p(E)&&!wc(E)?p2e(E)?fl(v,null,[E]):fl(v,E):fl(v,null,E):($>3?F=Array.prototype.slice.call(arguments,2):$===3&&p2e(F)&&(F=[F]),fl(v,E,F))}const Bbt="3.5.6";/** +* @vue/runtime-dom v3.5.6 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let m2e;const GMe=typeof window<"u"&&window.trustedTypes;if(GMe)try{m2e=GMe.createPolicy("vue",{createHTML:v=>v})}catch{}const hBe=m2e?v=>m2e.createHTML(v):v=>v,Jbt="http://www.w3.org/2000/svg",zbt="http://www.w3.org/1998/Math/MathML",h6=typeof document<"u"?document:null,$Me=h6&&h6.createElement("template"),Ubt={insert:(v,E,F)=>{E.insertBefore(v,F||null)},remove:v=>{const E=v.parentNode;E&&E.removeChild(v)},createElement:(v,E,F,$)=>{const ae=E==="svg"?h6.createElementNS(Jbt,v):E==="mathml"?h6.createElementNS(zbt,v):F?h6.createElement(v,{is:F}):h6.createElement(v);return v==="select"&&$&&$.multiple!=null&&ae.setAttribute("multiple",$.multiple),ae},createText:v=>h6.createTextNode(v),createComment:v=>h6.createComment(v),setText:(v,E)=>{v.nodeValue=E},setElementText:(v,E)=>{v.textContent=E},parentNode:v=>v.parentNode,nextSibling:v=>v.nextSibling,querySelector:v=>h6.querySelector(v),setScopeId(v,E){v.setAttribute(E,"")},insertStaticContent(v,E,F,$,ae,K){const je=F?F.previousSibling:E.lastChild;if(ae&&(ae===K||ae.nextSibling))for(;E.insertBefore(ae.cloneNode(!0),F),!(ae===K||!(ae=ae.nextSibling)););else{$Me.innerHTML=hBe($==="svg"?`${v}`:$==="mathml"?`${v}`:v);const Ye=$Me.content;if($==="svg"||$==="mathml"){const rt=Ye.firstChild;for(;rt.firstChild;)Ye.appendChild(rt.firstChild);Ye.removeChild(rt)}E.insertBefore(Ye,F)}return[je?je.nextSibling:E.firstChild,F?F.previousSibling:E.lastChild]}},IE="transition",Dz="animation",Qz=Symbol("_vtc"),yBe={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Vbt=Qm({},jje,yBe),Wbt=v=>(v.displayName="Transition",v.props=Vbt,v),g2e=Wbt((v,{slots:E})=>fre(j2t,qbt(v),E)),T8=(v,E=[])=>{wc(v)?v.forEach(F=>F(...E)):v&&v(...E)},XMe=v=>v?wc(v)?v.some(E=>E.length>1):v.length>1:!1;function qbt(v){const E={};for(const Qa in v)Qa in yBe||(E[Qa]=v[Qa]);if(v.css===!1)return E;const{name:F="v",type:$,duration:ae,enterFromClass:K=`${F}-enter-from`,enterActiveClass:je=`${F}-enter-active`,enterToClass:Ye=`${F}-enter-to`,appearFromClass:rt=K,appearActiveClass:wt=je,appearToClass:Lt=Ye,leaveFromClass:Rt=`${F}-leave-from`,leaveActiveClass:Xe=`${F}-leave-active`,leaveToClass:dt=`${F}-leave-to`}=v,bs=Hbt(ae),li=bs&&bs[0],Js=bs&&bs[1],{onBeforeEnter:Yn,onEnter:ii,onEnterCancelled:hs,onLeave:Pn,onLeaveCancelled:Cn,onBeforeAppear:Ro=Yn,onAppear:Gs=ii,onAppearCancelled:lf=hs}=E,Do=(Qa,Bc,vr)=>{k8(Qa,Bc?Lt:Ye),k8(Qa,Bc?wt:je),vr&&vr()},Ai=(Qa,Bc)=>{Qa._isLeaving=!1,k8(Qa,Rt),k8(Qa,dt),k8(Qa,Xe),Bc&&Bc()},su=Qa=>(Bc,vr)=>{const Ch=Qa?Gs:ii,Al=()=>Do(Bc,Qa,vr);T8(Ch,[Bc,Al]),QMe(()=>{k8(Bc,Qa?rt:K),OE(Bc,Qa?Lt:Ye),XMe(Ch)||YMe(Bc,$,li,Al)})};return Qm(E,{onBeforeEnter(Qa){T8(Yn,[Qa]),OE(Qa,K),OE(Qa,je)},onBeforeAppear(Qa){T8(Ro,[Qa]),OE(Qa,rt),OE(Qa,wt)},onEnter:su(!1),onAppear:su(!0),onLeave(Qa,Bc){Qa._isLeaving=!0;const vr=()=>Ai(Qa,Bc);OE(Qa,Rt),OE(Qa,Xe),Xbt(),QMe(()=>{Qa._isLeaving&&(k8(Qa,Rt),OE(Qa,dt),XMe(Pn)||YMe(Qa,$,Js,vr))}),T8(Pn,[Qa,vr])},onEnterCancelled(Qa){Do(Qa,!1),T8(hs,[Qa])},onAppearCancelled(Qa){Do(Qa,!0),T8(lf,[Qa])},onLeaveCancelled(Qa){Ai(Qa),T8(Cn,[Qa])}})}function Hbt(v){if(v==null)return null;if(_p(v))return[qve(v.enter),qve(v.leave)];{const E=qve(v);return[E,E]}}function qve(v){return $vt(v)}function OE(v,E){E.split(/\s+/).forEach(F=>F&&v.classList.add(F)),(v[Qz]||(v[Qz]=new Set)).add(E)}function k8(v,E){E.split(/\s+/).forEach($=>$&&v.classList.remove($));const F=v[Qz];F&&(F.delete(E),F.size||(v[Qz]=void 0))}function QMe(v){requestAnimationFrame(()=>{requestAnimationFrame(v)})}let Gbt=0;function YMe(v,E,F,$){const ae=v._endId=++Gbt,K=()=>{ae===v._endId&&$()};if(F)return setTimeout(K,F);const{type:je,timeout:Ye,propCount:rt}=$bt(v,E);if(!je)return $();const wt=je+"end";let Lt=0;const Rt=()=>{v.removeEventListener(wt,Xe),K()},Xe=dt=>{dt.target===v&&++Lt>=rt&&Rt()};setTimeout(()=>{Lt(F[bs]||"").split(", "),ae=$(`${IE}Delay`),K=$(`${IE}Duration`),je=ZMe(ae,K),Ye=$(`${Dz}Delay`),rt=$(`${Dz}Duration`),wt=ZMe(Ye,rt);let Lt=null,Rt=0,Xe=0;E===IE?je>0&&(Lt=IE,Rt=je,Xe=K.length):E===Dz?wt>0&&(Lt=Dz,Rt=wt,Xe=rt.length):(Rt=Math.max(je,wt),Lt=Rt>0?je>wt?IE:Dz:null,Xe=Lt?Lt===IE?K.length:rt.length:0);const dt=Lt===IE&&/\b(transform|all)(,|$)/.test($(`${IE}Property`).toString());return{type:Lt,timeout:Rt,propCount:Xe,hasTransform:dt}}function ZMe(v,E){for(;v.lengthKMe(F)+KMe(v[$])))}function KMe(v){return v==="auto"?0:Number(v.slice(0,-1).replace(",","."))*1e3}function Xbt(){return document.body.offsetHeight}function Qbt(v,E,F){const $=v[Qz];$&&(E=(E?[E,...$]:[...$]).join(" ")),E==null?v.removeAttribute("class"):F?v.setAttribute("class",E):v.className=E}const eRe=Symbol("_vod"),Ybt=Symbol("_vsh"),Zbt=Symbol(""),Kbt=/(^|;)\s*display\s*:/;function eSt(v,E,F){const $=v.style,ae=Td(F);let K=!1;if(F&&!ae){if(E)if(Td(E))for(const je of E.split(";")){const Ye=je.slice(0,je.indexOf(":")).trim();F[Ye]==null&&Jne($,Ye,"")}else for(const je in E)F[je]==null&&Jne($,je,"");for(const je in F)je==="display"&&(K=!0),Jne($,je,F[je])}else if(ae){if(E!==F){const je=$[Zbt];je&&(F+=";"+je),$.cssText=F,K=Kbt.test(F)}}else E&&v.removeAttribute("style");eRe in v&&(v[eRe]=K?$.display:"",v[Ybt]&&($.display="none"))}const tRe=/\s*!important$/;function Jne(v,E,F){if(wc(F))F.forEach($=>Jne(v,E,$));else if(F==null&&(F=""),E.startsWith("--"))v.setProperty(E,F);else{const $=tSt(v,E);tRe.test(F)?v.setProperty(L8($),F.replace(tRe,""),"important"):v[$]=F}}const nRe=["Webkit","Moz","ms"],Hve={};function tSt(v,E){const F=Hve[E];if(F)return F;let $=BS(E);if($!=="filter"&&$ in v)return Hve[E]=$;$=tre($);for(let ae=0;aeGve||(oSt.then(()=>Gve=0),Gve=Date.now());function lSt(v,E){const F=$=>{if(!$._vts)$._vts=Date.now();else if($._vts<=F.attached)return;JS(uSt($,F.value),E,5,[$])};return F.value=v,F.attached=cSt(),F}function uSt(v,E){if(wc(E)){const F=v.stopImmediatePropagation;return v.stopImmediatePropagation=()=>{F.call(v),v._stopped=!0},E.map($=>ae=>!ae._stopped&&$&&$(ae))}else return E}const oRe=v=>v.charCodeAt(0)===111&&v.charCodeAt(1)===110&&v.charCodeAt(2)>96&&v.charCodeAt(2)<123,_St=(v,E,F,$,ae,K)=>{const je=ae==="svg";E==="class"?Qbt(v,$,je):E==="style"?eSt(v,F,$):Zne(E)?U2e(E)||sSt(v,E,F,$,K):(E[0]==="."?(E=E.slice(1),!0):E[0]==="^"?(E=E.slice(1),!1):fSt(v,E,$,je))?(nSt(v,E,$),!v.tagName.includes("-")&&(E==="value"||E==="checked"||E==="selected")&&iRe(v,E,$,je,K,E!=="value")):(E==="true-value"?v._trueValue=$:E==="false-value"&&(v._falseValue=$),iRe(v,E,$,je))};function fSt(v,E,F,$){if($)return!!(E==="innerHTML"||E==="textContent"||E in v&&oRe(E)&&el(F));if(E==="spellcheck"||E==="draggable"||E==="translate"||E==="form"||E==="list"&&v.tagName==="INPUT"||E==="type"&&v.tagName==="TEXTAREA")return!1;if(E==="width"||E==="height"){const ae=v.tagName;if(ae==="IMG"||ae==="VIDEO"||ae==="CANVAS"||ae==="SOURCE")return!1}return oRe(E)&&Td(F)?!1:!!(E in v||v._isVueCE&&(/[A-Z]/.test(E)||!Td(F)))}const pSt=Qm({patchProp:_St},Ubt);let cRe;function dSt(){return cRe||(cRe=_bt(pSt))}const mSt=(...v)=>{const E=dSt().createApp(...v),{mount:F}=E;return E.mount=$=>{const ae=hSt($);if(!ae)return;const K=E._component;!el(K)&&!K.render&&!K.template&&(K.template=ae.innerHTML),ae.nodeType===1&&(ae.textContent="");const je=F(ae,!1,gSt(ae));return ae instanceof Element&&(ae.removeAttribute("v-cloak"),ae.setAttribute("data-v-app","")),je},E};function gSt(v){if(v instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&v instanceof MathMLElement)return"mathml"}function hSt(v){return Td(v)?document.querySelector(v):v}/*! + * vue-router v4.4.5 + * (c) 2024 Eduardo San Martin Morote + * @license MIT + */const pO=typeof document<"u";function vBe(v){return typeof v=="object"||"displayName"in v||"props"in v||"__vccOpts"in v}function ySt(v){return v.__esModule||v[Symbol.toStringTag]==="Module"||v.default&&vBe(v.default)}const G_=Object.assign;function $ve(v,E){const F={};for(const $ in E){const ae=E[$];F[$]=zS(ae)?ae.map(v):v(ae)}return F}const Bz=()=>{},zS=Array.isArray,bBe=/#/g,vSt=/&/g,bSt=/\//g,SSt=/=/g,xSt=/\?/g,SBe=/\+/g,TSt=/%5B/g,kSt=/%5D/g,xBe=/%5E/g,CSt=/%60/g,TBe=/%7B/g,ESt=/%7C/g,kBe=/%7D/g,PSt=/%20/g;function abe(v){return encodeURI(""+v).replace(ESt,"|").replace(TSt,"[").replace(kSt,"]")}function wSt(v){return abe(v).replace(TBe,"{").replace(kBe,"}").replace(xBe,"^")}function h2e(v){return abe(v).replace(SBe,"%2B").replace(PSt,"+").replace(bBe,"%23").replace(vSt,"%26").replace(CSt,"`").replace(TBe,"{").replace(kBe,"}").replace(xBe,"^")}function DSt(v){return h2e(v).replace(SSt,"%3D")}function ASt(v){return abe(v).replace(bBe,"%23").replace(xSt,"%3F")}function NSt(v){return v==null?"":ASt(v).replace(bSt,"%2F")}function Yz(v){try{return decodeURIComponent(""+v)}catch{}return""+v}const ISt=/\/$/,OSt=v=>v.replace(ISt,"");function Xve(v,E,F="/"){let $,ae={},K="",je="";const Ye=E.indexOf("#");let rt=E.indexOf("?");return Ye=0&&(rt=-1),rt>-1&&($=E.slice(0,rt),K=E.slice(rt+1,Ye>-1?Ye:E.length),ae=v(K)),Ye>-1&&($=$||E.slice(0,Ye),je=E.slice(Ye,E.length)),$=RSt($??E,F),{fullPath:$+(K&&"?")+K+je,path:$,query:ae,hash:Yz(je)}}function FSt(v,E){const F=E.query?v(E.query):"";return E.path+(F&&"?")+F+(E.hash||"")}function lRe(v,E){return!E||!v.toLowerCase().startsWith(E.toLowerCase())?v:v.slice(E.length)||"/"}function LSt(v,E,F){const $=E.matched.length-1,ae=F.matched.length-1;return $>-1&&$===ae&&xO(E.matched[$],F.matched[ae])&&CBe(E.params,F.params)&&v(E.query)===v(F.query)&&E.hash===F.hash}function xO(v,E){return(v.aliasOf||v)===(E.aliasOf||E)}function CBe(v,E){if(Object.keys(v).length!==Object.keys(E).length)return!1;for(const F in v)if(!MSt(v[F],E[F]))return!1;return!0}function MSt(v,E){return zS(v)?uRe(v,E):zS(E)?uRe(E,v):v===E}function uRe(v,E){return zS(E)?v.length===E.length&&v.every((F,$)=>F===E[$]):v.length===1&&v[0]===E}function RSt(v,E){if(v.startsWith("/"))return v;if(!v)return E;const F=E.split("/"),$=v.split("/"),ae=$[$.length-1];(ae===".."||ae===".")&&$.push("");let K=F.length-1,je,Ye;for(je=0;je<$.length;je++)if(Ye=$[je],Ye!==".")if(Ye==="..")K>1&&K--;else break;return F.slice(0,K).join("/")+"/"+$.slice(je).join("/")}const FE={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Zz;(function(v){v.pop="pop",v.push="push"})(Zz||(Zz={}));var Jz;(function(v){v.back="back",v.forward="forward",v.unknown=""})(Jz||(Jz={}));function jSt(v){if(!v)if(pO){const E=document.querySelector("base");v=E&&E.getAttribute("href")||"/",v=v.replace(/^\w+:\/\/[^\/]+/,"")}else v="/";return v[0]!=="/"&&v[0]!=="#"&&(v="/"+v),OSt(v)}const BSt=/^[^#]+#/;function JSt(v,E){return v.replace(BSt,"#")+E}function zSt(v,E){const F=document.documentElement.getBoundingClientRect(),$=v.getBoundingClientRect();return{behavior:E.behavior,left:$.left-F.left-(E.left||0),top:$.top-F.top-(E.top||0)}}const pre=()=>({left:window.scrollX,top:window.scrollY});function USt(v){let E;if("el"in v){const F=v.el,$=typeof F=="string"&&F.startsWith("#"),ae=typeof F=="string"?$?document.getElementById(F.slice(1)):document.querySelector(F):F;if(!ae)return;E=zSt(ae,v)}else E=v;"scrollBehavior"in document.documentElement.style?window.scrollTo(E):window.scrollTo(E.left!=null?E.left:window.scrollX,E.top!=null?E.top:window.scrollY)}function _Re(v,E){return(history.state?history.state.position-E:-1)+v}const y2e=new Map;function VSt(v,E){y2e.set(v,E)}function WSt(v){const E=y2e.get(v);return y2e.delete(v),E}let qSt=()=>location.protocol+"//"+location.host;function EBe(v,E){const{pathname:F,search:$,hash:ae}=E,K=v.indexOf("#");if(K>-1){let Ye=ae.includes(v.slice(K))?v.slice(K).length:1,rt=ae.slice(Ye);return rt[0]!=="/"&&(rt="/"+rt),lRe(rt,"")}return lRe(F,v)+$+ae}function HSt(v,E,F,$){let ae=[],K=[],je=null;const Ye=({state:Xe})=>{const dt=EBe(v,location),bs=F.value,li=E.value;let Js=0;if(Xe){if(F.value=dt,E.value=Xe,je&&je===bs){je=null;return}Js=li?Xe.position-li.position:0}else $(dt);ae.forEach(Yn=>{Yn(F.value,bs,{delta:Js,type:Zz.pop,direction:Js?Js>0?Jz.forward:Jz.back:Jz.unknown})})};function rt(){je=F.value}function wt(Xe){ae.push(Xe);const dt=()=>{const bs=ae.indexOf(Xe);bs>-1&&ae.splice(bs,1)};return K.push(dt),dt}function Lt(){const{history:Xe}=window;Xe.state&&Xe.replaceState(G_({},Xe.state,{scroll:pre()}),"")}function Rt(){for(const Xe of K)Xe();K=[],window.removeEventListener("popstate",Ye),window.removeEventListener("beforeunload",Lt)}return window.addEventListener("popstate",Ye),window.addEventListener("beforeunload",Lt,{passive:!0}),{pauseListeners:rt,listen:wt,destroy:Rt}}function fRe(v,E,F,$=!1,ae=!1){return{back:v,current:E,forward:F,replaced:$,position:window.history.length,scroll:ae?pre():null}}function GSt(v){const{history:E,location:F}=window,$={value:EBe(v,F)},ae={value:E.state};ae.value||K($.value,{back:null,current:$.value,forward:null,position:E.length-1,replaced:!0,scroll:null},!0);function K(rt,wt,Lt){const Rt=v.indexOf("#"),Xe=Rt>-1?(F.host&&document.querySelector("base")?v:v.slice(Rt))+rt:qSt()+v+rt;try{E[Lt?"replaceState":"pushState"](wt,"",Xe),ae.value=wt}catch(dt){console.error(dt),F[Lt?"replace":"assign"](Xe)}}function je(rt,wt){const Lt=G_({},E.state,fRe(ae.value.back,rt,ae.value.forward,!0),wt,{position:ae.value.position});K(rt,Lt,!0),$.value=rt}function Ye(rt,wt){const Lt=G_({},ae.value,E.state,{forward:rt,scroll:pre()});K(Lt.current,Lt,!0);const Rt=G_({},fRe($.value,rt,null),{position:Lt.position+1},wt);K(rt,Rt,!1),$.value=rt}return{location:$,state:ae,push:Ye,replace:je}}function $St(v){v=jSt(v);const E=GSt(v),F=HSt(v,E.state,E.location,E.replace);function $(K,je=!0){je||F.pauseListeners(),history.go(K)}const ae=G_({location:"",base:v,go:$,createHref:JSt.bind(null,v)},E,F);return Object.defineProperty(ae,"location",{enumerable:!0,get:()=>E.location.value}),Object.defineProperty(ae,"state",{enumerable:!0,get:()=>E.state.value}),ae}function XSt(v){return typeof v=="string"||v&&typeof v=="object"}function PBe(v){return typeof v=="string"||typeof v=="symbol"}const wBe=Symbol("");var pRe;(function(v){v[v.aborted=4]="aborted",v[v.cancelled=8]="cancelled",v[v.duplicated=16]="duplicated"})(pRe||(pRe={}));function TO(v,E){return G_(new Error,{type:v,[wBe]:!0},E)}function d6(v,E){return v instanceof Error&&wBe in v&&(E==null||!!(v.type&E))}const dRe="[^/]+?",QSt={sensitive:!1,strict:!1,start:!0,end:!0},YSt=/[.+*?^${}()[\]/\\]/g;function ZSt(v,E){const F=G_({},QSt,E),$=[];let ae=F.start?"^":"";const K=[];for(const wt of v){const Lt=wt.length?[]:[90];F.strict&&!wt.length&&(ae+="/");for(let Rt=0;RtE.length?E.length===1&&E[0]===80?1:-1:0}function DBe(v,E){let F=0;const $=v.score,ae=E.score;for(;F<$.length&&F0&&E[E.length-1]<0}const ext={type:0,value:""},txt=/[a-zA-Z0-9_]/;function nxt(v){if(!v)return[[]];if(v==="/")return[[ext]];if(!v.startsWith("/"))throw new Error(`Invalid path "${v}"`);function E(dt){throw new Error(`ERR (${F})/"${wt}": ${dt}`)}let F=0,$=F;const ae=[];let K;function je(){K&&ae.push(K),K=[]}let Ye=0,rt,wt="",Lt="";function Rt(){wt&&(F===0?K.push({type:0,value:wt}):F===1||F===2||F===3?(K.length>1&&(rt==="*"||rt==="+")&&E(`A repeatable param (${wt}) must be alone in its segment. eg: '/:ids+.`),K.push({type:1,value:wt,regexp:Lt,repeatable:rt==="*"||rt==="+",optional:rt==="*"||rt==="?"})):E("Invalid state to consume buffer"),wt="")}function Xe(){wt+=rt}for(;Ye{je(hs)}:Bz}function je(Rt){if(PBe(Rt)){const Xe=$.get(Rt);Xe&&($.delete(Rt),F.splice(F.indexOf(Xe),1),Xe.children.forEach(je),Xe.alias.forEach(je))}else{const Xe=F.indexOf(Rt);Xe>-1&&(F.splice(Xe,1),Rt.record.name&&$.delete(Rt.record.name),Rt.children.forEach(je),Rt.alias.forEach(je))}}function Ye(){return F}function rt(Rt){const Xe=oxt(Rt,F);F.splice(Xe,0,Rt),Rt.record.name&&!yRe(Rt)&&$.set(Rt.record.name,Rt)}function wt(Rt,Xe){let dt,bs={},li,Js;if("name"in Rt&&Rt.name){if(dt=$.get(Rt.name),!dt)throw TO(1,{location:Rt});Js=dt.record.name,bs=G_(gRe(Xe.params,dt.keys.filter(hs=>!hs.optional).concat(dt.parent?dt.parent.keys.filter(hs=>hs.optional):[]).map(hs=>hs.name)),Rt.params&&gRe(Rt.params,dt.keys.map(hs=>hs.name))),li=dt.stringify(bs)}else if(Rt.path!=null)li=Rt.path,dt=F.find(hs=>hs.re.test(li)),dt&&(bs=dt.parse(li),Js=dt.record.name);else{if(dt=Xe.name?$.get(Xe.name):F.find(hs=>hs.re.test(Xe.path)),!dt)throw TO(1,{location:Rt,currentLocation:Xe});Js=dt.record.name,bs=G_({},Xe.params,Rt.params),li=dt.stringify(bs)}const Yn=[];let ii=dt;for(;ii;)Yn.unshift(ii.record),ii=ii.parent;return{name:Js,path:li,params:bs,matched:Yn,meta:axt(Yn)}}v.forEach(Rt=>K(Rt));function Lt(){F.length=0,$.clear()}return{addRoute:K,resolve:wt,removeRoute:je,clearRoutes:Lt,getRoutes:Ye,getRecordMatcher:ae}}function gRe(v,E){const F={};for(const $ of E)$ in v&&(F[$]=v[$]);return F}function hRe(v){const E={path:v.path,redirect:v.redirect,name:v.name,meta:v.meta||{},aliasOf:v.aliasOf,beforeEnter:v.beforeEnter,props:sxt(v),children:v.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in v?v.components||null:v.component&&{default:v.component}};return Object.defineProperty(E,"mods",{value:{}}),E}function sxt(v){const E={},F=v.props||!1;if("component"in v)E.default=F;else for(const $ in v.components)E[$]=typeof F=="object"?F[$]:F;return E}function yRe(v){for(;v;){if(v.record.aliasOf)return!0;v=v.parent}return!1}function axt(v){return v.reduce((E,F)=>G_(E,F.meta),{})}function vRe(v,E){const F={};for(const $ in v)F[$]=$ in E?E[$]:v[$];return F}function oxt(v,E){let F=0,$=E.length;for(;F!==$;){const K=F+$>>1;DBe(v,E[K])<0?$=K:F=K+1}const ae=cxt(v);return ae&&($=E.lastIndexOf(ae,$-1)),$}function cxt(v){let E=v;for(;E=E.parent;)if(ABe(E)&&DBe(v,E)===0)return E}function ABe({record:v}){return!!(v.name||v.components&&Object.keys(v.components).length||v.redirect)}function lxt(v){const E={};if(v===""||v==="?")return E;const $=(v[0]==="?"?v.slice(1):v).split("&");for(let ae=0;ae<$.length;++ae){const K=$[ae].replace(SBe," "),je=K.indexOf("="),Ye=Yz(je<0?K:K.slice(0,je)),rt=je<0?null:Yz(K.slice(je+1));if(Ye in E){let wt=E[Ye];zS(wt)||(wt=E[Ye]=[wt]),wt.push(rt)}else E[Ye]=rt}return E}function bRe(v){let E="";for(let F in v){const $=v[F];if(F=DSt(F),$==null){$!==void 0&&(E+=(E.length?"&":"")+F);continue}(zS($)?$.map(K=>K&&h2e(K)):[$&&h2e($)]).forEach(K=>{K!==void 0&&(E+=(E.length?"&":"")+F,K!=null&&(E+="="+K))})}return E}function uxt(v){const E={};for(const F in v){const $=v[F];$!==void 0&&(E[F]=zS($)?$.map(ae=>ae==null?null:""+ae):$==null?$:""+$)}return E}const _xt=Symbol(""),SRe=Symbol(""),obe=Symbol(""),NBe=Symbol(""),v2e=Symbol("");function Az(){let v=[];function E($){return v.push($),()=>{const ae=v.indexOf($);ae>-1&&v.splice(ae,1)}}function F(){v=[]}return{add:E,list:()=>v.slice(),reset:F}}function zE(v,E,F,$,ae,K=je=>je()){const je=$&&($.enterCallbacks[ae]=$.enterCallbacks[ae]||[]);return()=>new Promise((Ye,rt)=>{const wt=Xe=>{Xe===!1?rt(TO(4,{from:F,to:E})):Xe instanceof Error?rt(Xe):XSt(Xe)?rt(TO(2,{from:E,to:Xe})):(je&&$.enterCallbacks[ae]===je&&typeof Xe=="function"&&je.push(Xe),Ye())},Lt=K(()=>v.call($&&$.instances[ae],E,F,wt));let Rt=Promise.resolve(Lt);v.length<3&&(Rt=Rt.then(wt)),Rt.catch(Xe=>rt(Xe))})}function Qve(v,E,F,$,ae=K=>K()){const K=[];for(const je of v)for(const Ye in je.components){let rt=je.components[Ye];if(!(E!=="beforeRouteEnter"&&!je.instances[Ye]))if(vBe(rt)){const Lt=(rt.__vccOpts||rt)[E];Lt&&K.push(zE(Lt,F,$,je,Ye,ae))}else{let wt=rt();K.push(()=>wt.then(Lt=>{if(!Lt)throw new Error(`Couldn't resolve component "${Ye}" at "${je.path}"`);const Rt=ySt(Lt)?Lt.default:Lt;je.mods[Ye]=Lt,je.components[Ye]=Rt;const dt=(Rt.__vccOpts||Rt)[E];return dt&&zE(dt,F,$,je,Ye,ae)()}))}}return K}function xRe(v){const E=b6(obe),F=b6(NBe),$=Th(()=>{const rt=ls(v.to);return E.resolve(rt)}),ae=Th(()=>{const{matched:rt}=$.value,{length:wt}=rt,Lt=rt[wt-1],Rt=F.matched;if(!Lt||!Rt.length)return-1;const Xe=Rt.findIndex(xO.bind(null,Lt));if(Xe>-1)return Xe;const dt=TRe(rt[wt-2]);return wt>1&&TRe(Lt)===dt&&Rt[Rt.length-1].path!==dt?Rt.findIndex(xO.bind(null,rt[wt-2])):Xe}),K=Th(()=>ae.value>-1&&dxt(F.params,$.value.params)),je=Th(()=>ae.value>-1&&ae.value===F.matched.length-1&&CBe(F.params,$.value.params));function Ye(rt={}){return pxt(rt)?E[ls(v.replace)?"replace":"push"](ls(v.to)).catch(Bz):Promise.resolve()}return{route:$,href:Th(()=>$.value.href),isActive:K,isExactActive:je,navigate:Ye}}const fxt=US({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:xRe,setup(v,{slots:E}){const F=sre(xRe(v)),{options:$}=b6(obe),ae=Th(()=>({[kRe(v.activeClass,$.linkActiveClass,"router-link-active")]:F.isActive,[kRe(v.exactActiveClass,$.linkExactActiveClass,"router-link-exact-active")]:F.isExactActive}));return()=>{const K=E.default&&E.default(F);return v.custom?K:fre("a",{"aria-current":F.isExactActive?v.ariaCurrentValue:null,href:F.href,onClick:F.navigate,class:ae.value},K)}}}),b2e=fxt;function pxt(v){if(!(v.metaKey||v.altKey||v.ctrlKey||v.shiftKey)&&!v.defaultPrevented&&!(v.button!==void 0&&v.button!==0)){if(v.currentTarget&&v.currentTarget.getAttribute){const E=v.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(E))return}return v.preventDefault&&v.preventDefault(),!0}}function dxt(v,E){for(const F in E){const $=E[F],ae=v[F];if(typeof $=="string"){if($!==ae)return!1}else if(!zS(ae)||ae.length!==$.length||$.some((K,je)=>K!==ae[je]))return!1}return!0}function TRe(v){return v?v.aliasOf?v.aliasOf.path:v.path:""}const kRe=(v,E,F)=>v??E??F,mxt=US({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(v,{attrs:E,slots:F}){const $=b6(v2e),ae=Th(()=>v.route||$.value),K=b6(SRe,0),je=Th(()=>{let wt=ls(K);const{matched:Lt}=ae.value;let Rt;for(;(Rt=Lt[wt])&&!Rt.components;)wt++;return wt}),Ye=Th(()=>ae.value.matched[je.value]);jne(SRe,Th(()=>je.value+1)),jne(_xt,Ye),jne(v2e,ae);const rt=Pp();return D8(()=>[rt.value,Ye.value,v.name],([wt,Lt,Rt],[Xe,dt,bs])=>{Lt&&(Lt.instances[Rt]=wt,dt&&dt!==Lt&&wt&&wt===Xe&&(Lt.leaveGuards.size||(Lt.leaveGuards=dt.leaveGuards),Lt.updateGuards.size||(Lt.updateGuards=dt.updateGuards))),wt&&Lt&&(!dt||!xO(Lt,dt)||!Xe)&&(Lt.enterCallbacks[Rt]||[]).forEach(li=>li(wt))},{flush:"post"}),()=>{const wt=ae.value,Lt=v.name,Rt=Ye.value,Xe=Rt&&Rt.components[Lt];if(!Xe)return CRe(F.default,{Component:Xe,route:wt});const dt=Rt.props[Lt],bs=dt?dt===!0?wt.params:typeof dt=="function"?dt(wt):dt:null,Js=fre(Xe,G_({},bs,E,{onVnodeUnmounted:Yn=>{Yn.component.isUnmounted&&(Rt.instances[Lt]=null)},ref:rt}));return CRe(F.default,{Component:Js,route:wt})||Js}}});function CRe(v,E){if(!v)return null;const F=v(E);return F.length===1?F[0]:F}const IBe=mxt;function gxt(v){const E=ixt(v.routes,v),F=v.parseQuery||lxt,$=v.stringifyQuery||bRe,ae=v.history,K=Az(),je=Az(),Ye=Az(),rt=C2t(FE);let wt=FE;pO&&v.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const Lt=$ve.bind(null,xi=>""+xi),Rt=$ve.bind(null,NSt),Xe=$ve.bind(null,Yz);function dt(xi,Aa){let Ks,Na;return PBe(xi)?(Ks=E.getRecordMatcher(xi),Na=Aa):Na=xi,E.addRoute(Na,Ks)}function bs(xi){const Aa=E.getRecordMatcher(xi);Aa&&E.removeRoute(Aa)}function li(){return E.getRoutes().map(xi=>xi.record)}function Js(xi){return!!E.getRecordMatcher(xi)}function Yn(xi,Aa){if(Aa=G_({},Aa||rt.value),typeof xi=="string"){const Pe=Xve(F,xi,Aa.path),Dr=E.resolve({path:Pe.path},Aa),zn=ae.createHref(Pe.fullPath);return G_(Pe,Dr,{params:Xe(Dr.params),hash:Yz(Pe.hash),redirectedFrom:void 0,href:zn})}let Ks;if(xi.path!=null)Ks=G_({},xi,{path:Xve(F,xi.path,Aa.path).path});else{const Pe=G_({},xi.params);for(const Dr in Pe)Pe[Dr]==null&&delete Pe[Dr];Ks=G_({},xi,{params:Rt(Pe)}),Aa.params=Rt(Aa.params)}const Na=E.resolve(Ks,Aa),wu=xi.hash||"";Na.params=Lt(Xe(Na.params));const $_=FSt($,G_({},xi,{hash:wSt(wu),path:Na.path})),Xt=ae.createHref($_);return G_({fullPath:$_,hash:wu,query:$===bRe?uxt(xi.query):xi.query||{}},Na,{redirectedFrom:void 0,href:Xt})}function ii(xi){return typeof xi=="string"?Xve(F,xi,rt.value.path):G_({},xi)}function hs(xi,Aa){if(wt!==xi)return TO(8,{from:Aa,to:xi})}function Pn(xi){return Gs(xi)}function Cn(xi){return Pn(G_(ii(xi),{replace:!0}))}function Ro(xi){const Aa=xi.matched[xi.matched.length-1];if(Aa&&Aa.redirect){const{redirect:Ks}=Aa;let Na=typeof Ks=="function"?Ks(xi):Ks;return typeof Na=="string"&&(Na=Na.includes("?")||Na.includes("#")?Na=ii(Na):{path:Na},Na.params={}),G_({query:xi.query,hash:xi.hash,params:Na.path!=null?{}:xi.params},Na)}}function Gs(xi,Aa){const Ks=wt=Yn(xi),Na=rt.value,wu=xi.state,$_=xi.force,Xt=xi.replace===!0,Pe=Ro(Ks);if(Pe)return Gs(G_(ii(Pe),{state:typeof Pe=="object"?G_({},wu,Pe.state):wu,force:$_,replace:Xt}),Aa||Ks);const Dr=Ks;Dr.redirectedFrom=Aa;let zn;return!$_&&LSt($,Na,Ks)&&(zn=TO(16,{to:Dr,from:Na}),Ys(Na,Na,!0,!1)),(zn?Promise.resolve(zn):Ai(Dr,Na)).catch(Pi=>d6(Pi)?d6(Pi,2)?Pi:P_(Pi):Nl(Pi,Dr,Na)).then(Pi=>{if(Pi){if(d6(Pi,2))return Gs(G_({replace:Xt},ii(Pi.to),{state:typeof Pi.to=="object"?G_({},wu,Pi.to.state):wu,force:$_}),Aa||Dr)}else Pi=Qa(Dr,Na,!0,Xt,wu);return su(Dr,Na,Pi),Pi})}function lf(xi,Aa){const Ks=hs(xi,Aa);return Ks?Promise.reject(Ks):Promise.resolve()}function Do(xi){const Aa=VS.values().next().value;return Aa&&typeof Aa.runWithContext=="function"?Aa.runWithContext(xi):xi()}function Ai(xi,Aa){let Ks;const[Na,wu,$_]=hxt(xi,Aa);Ks=Qve(Na.reverse(),"beforeRouteLeave",xi,Aa);for(const Pe of Na)Pe.leaveGuards.forEach(Dr=>{Ks.push(zE(Dr,xi,Aa))});const Xt=lf.bind(null,xi,Aa);return Ks.push(Xt),Oi(Ks).then(()=>{Ks=[];for(const Pe of K.list())Ks.push(zE(Pe,xi,Aa));return Ks.push(Xt),Oi(Ks)}).then(()=>{Ks=Qve(wu,"beforeRouteUpdate",xi,Aa);for(const Pe of wu)Pe.updateGuards.forEach(Dr=>{Ks.push(zE(Dr,xi,Aa))});return Ks.push(Xt),Oi(Ks)}).then(()=>{Ks=[];for(const Pe of $_)if(Pe.beforeEnter)if(zS(Pe.beforeEnter))for(const Dr of Pe.beforeEnter)Ks.push(zE(Dr,xi,Aa));else Ks.push(zE(Pe.beforeEnter,xi,Aa));return Ks.push(Xt),Oi(Ks)}).then(()=>(xi.matched.forEach(Pe=>Pe.enterCallbacks={}),Ks=Qve($_,"beforeRouteEnter",xi,Aa,Do),Ks.push(Xt),Oi(Ks))).then(()=>{Ks=[];for(const Pe of je.list())Ks.push(zE(Pe,xi,Aa));return Ks.push(Xt),Oi(Ks)}).catch(Pe=>d6(Pe,8)?Pe:Promise.reject(Pe))}function su(xi,Aa,Ks){Ye.list().forEach(Na=>Do(()=>Na(xi,Aa,Ks)))}function Qa(xi,Aa,Ks,Na,wu){const $_=hs(xi,Aa);if($_)return $_;const Xt=Aa===FE,Pe=pO?history.state:{};Ks&&(Na||Xt?ae.replace(xi.fullPath,G_({scroll:Xt&&Pe&&Pe.scroll},wu)):ae.push(xi.fullPath,wu)),rt.value=xi,Ys(xi,Aa,Ks,Xt),P_()}let Bc;function vr(){Bc||(Bc=ae.listen((xi,Aa,Ks)=>{if(!nk.listening)return;const Na=Yn(xi),wu=Ro(Na);if(wu){Gs(G_(wu,{replace:!0}),Na).catch(Bz);return}wt=Na;const $_=rt.value;pO&&VSt(_Re($_.fullPath,Ks.delta),pre()),Ai(Na,$_).catch(Xt=>d6(Xt,12)?Xt:d6(Xt,2)?(Gs(Xt.to,Na).then(Pe=>{d6(Pe,20)&&!Ks.delta&&Ks.type===Zz.pop&&ae.go(-1,!1)}).catch(Bz),Promise.reject()):(Ks.delta&&ae.go(-Ks.delta,!1),Nl(Xt,Na,$_))).then(Xt=>{Xt=Xt||Qa(Na,$_,!1),Xt&&(Ks.delta&&!d6(Xt,8)?ae.go(-Ks.delta,!1):Ks.type===Zz.pop&&d6(Xt,20)&&ae.go(-1,!1)),su(Na,$_,Xt)}).catch(Bz)}))}let Ch=Az(),Al=Az(),Kt;function Nl(xi,Aa,Ks){P_(xi);const Na=Al.list();return Na.length?Na.forEach(wu=>wu(xi,Aa,Ks)):console.error(xi),Promise.reject(xi)}function Dc(){return Kt&&rt.value!==FE?Promise.resolve():new Promise((xi,Aa)=>{Ch.add([xi,Aa])})}function P_(xi){return Kt||(Kt=!xi,vr(),Ch.list().forEach(([Aa,Ks])=>xi?Ks(xi):Aa()),Ch.reset()),xi}function Ys(xi,Aa,Ks,Na){const{scrollBehavior:wu}=v;if(!pO||!wu)return Promise.resolve();const $_=!Ks&&WSt(_Re(xi.fullPath,0))||(Na||!Ks)&&history.state&&history.state.scroll||null;return Ije().then(()=>wu(xi,Aa,$_)).then(Xt=>Xt&&USt(Xt)).catch(Xt=>Nl(Xt,xi,Aa))}const Yp=xi=>ae.go(xi);let sb;const VS=new Set,nk={currentRoute:rt,listening:!0,addRoute:dt,removeRoute:bs,clearRoutes:E.clearRoutes,hasRoute:Js,getRoutes:li,resolve:Yn,options:v,push:Pn,replace:Cn,go:Yp,back:()=>Yp(-1),forward:()=>Yp(1),beforeEach:K.add,beforeResolve:je.add,afterEach:Ye.add,onError:Al.add,isReady:Dc,install(xi){const Aa=this;xi.component("RouterLink",b2e),xi.component("RouterView",IBe),xi.config.globalProperties.$router=Aa,Object.defineProperty(xi.config.globalProperties,"$route",{enumerable:!0,get:()=>ls(rt)}),pO&&!sb&&rt.value===FE&&(sb=!0,Pn(ae.location).catch(wu=>{}));const Ks={};for(const wu in FE)Object.defineProperty(Ks,wu,{get:()=>rt.value[wu],enumerable:!0});xi.provide(obe,Aa),xi.provide(NBe,Pje(Ks)),xi.provide(v2e,rt);const Na=xi.unmount;VS.add(xi),xi.unmount=function(){VS.delete(xi),VS.size<1&&(wt=FE,Bc&&Bc(),Bc=null,rt.value=FE,sb=!1,Kt=!1),Na()}}};function Oi(xi){return xi.reduce((Aa,Ks)=>Aa.then(()=>Do(Ks)),Promise.resolve())}return nk}function hxt(v,E){const F=[],$=[],ae=[],K=Math.max(E.matched.length,v.matched.length);for(let je=0;jexO(wt,Ye))?$.push(Ye):F.push(Ye));const rt=v.matched[je];rt&&(E.matched.find(wt=>xO(wt,rt))||ae.push(rt))}return[F,$,ae]}const tk=(v,E)=>{const F=v.__vccOpts||v;for(const[$,ae]of E)F[$]=ae;return F},yxt={},vxt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",width:"14",height:"18",fill:"currentColor"};function bxt(v,E){return cl(),Ul("svg",vxt,E[0]||(E[0]=[hi("path",{d:"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"},null,-1)]))}const Sxt=tk(yxt,[["render",bxt]]),xxt={},Txt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:"14",height:"18",fill:"currentColor"};function kxt(v,E){return cl(),Ul("svg",Txt,E[0]||(E[0]=[hi("path",{d:"M495.9 166.6c3.2 8.7 .5 18.4-6.4 24.6l-43.3 39.4c1.1 8.3 1.7 16.8 1.7 25.4s-.6 17.1-1.7 25.4l43.3 39.4c6.9 6.2 9.6 15.9 6.4 24.6c-4.4 11.9-9.7 23.3-15.8 34.3l-4.7 8.1c-6.6 11-14 21.4-22.1 31.2c-5.9 7.2-15.7 9.6-24.5 6.8l-55.7-17.7c-13.4 10.3-28.2 18.9-44 25.4l-12.5 57.1c-2 9.1-9 16.3-18.2 17.8c-13.8 2.3-28 3.5-42.5 3.5s-28.7-1.2-42.5-3.5c-9.2-1.5-16.2-8.7-18.2-17.8l-12.5-57.1c-15.8-6.5-30.6-15.1-44-25.4L83.1 425.9c-8.8 2.8-18.6 .3-24.5-6.8c-8.1-9.8-15.5-20.2-22.1-31.2l-4.7-8.1c-6.1-11-11.4-22.4-15.8-34.3c-3.2-8.7-.5-18.4 6.4-24.6l43.3-39.4C64.6 273.1 64 264.6 64 256s.6-17.1 1.7-25.4L22.4 191.2c-6.9-6.2-9.6-15.9-6.4-24.6c4.4-11.9 9.7-23.3 15.8-34.3l4.7-8.1c6.6-11 14-21.4 22.1-31.2c5.9-7.2 15.7-9.6 24.5-6.8l55.7 17.7c13.4-10.3 28.2-18.9 44-25.4l12.5-57.1c2-9.1 9-16.3 18.2-17.8C227.3 1.2 241.5 0 256 0s28.7 1.2 42.5 3.5c9.2 1.5 16.2 8.7 18.2 17.8l12.5 57.1c15.8 6.5 30.6 15.1 44 25.4l55.7-17.7c8.8-2.8 18.6-.3 24.5 6.8c8.1 9.8 15.5 20.2 22.1 31.2l4.7 8.1c6.1 11 11.4 22.4 15.8 34.3zM256 336a80 80 0 1 0 0-160 80 80 0 1 0 0 160z"},null,-1)]))}const Cxt=tk(xxt,[["render",kxt]]),Ext={},Pxt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:"14",height:"18",fill:"currentColor"};function wxt(v,E){return cl(),Ul("svg",Pxt,E[0]||(E[0]=[hi("path",{d:"M32 416c-17.7 0-32 14.3-32 32s14.3 32 32 32l448 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 416z"},null,-1)]))}const Dxt=tk(Ext,[["render",wxt]]),Axt={},Nxt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",width:"14",height:"18",fill:"currentColor"};function Ixt(v,E){return cl(),Ul("svg",Nxt,E[0]||(E[0]=[hi("path",{d:"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"},null,-1)]))}const Oxt=tk(Axt,[["render",Ixt]]),Fxt={class:"title-bar"},Lxt={class:"nav-controls"},Mxt={class:"controls"},Rxt=US({__name:"TitleBar",props:{title:{}},setup(v){const E=Pp();EO(()=>{if(!E.value){console.error("titlebar element not found");return}E.value.addEventListener("mousedown",()=>window.saucer.start_drag()),setTimeout(()=>{window.saucer.call("mounted",[])},500)});function F(){window.saucer.call("close",[])}function $(){window.saucer.call("minimize",[])}return(ae,K)=>(cl(),Ul("nav",null,[hi("div",Fxt,[hi("div",{class:"title",ref_key:"titleBar",ref:E},[hi("span",null,Iv(ae.title),1)],512),hi("div",Lxt,[fl(g2e,{name:"fade"},{default:VE(()=>[ae.$route.path!="/"?(cl(),Gne(ls(b2e),{key:0,id:"home",to:"/"},{default:VE(()=>[fl(Oxt)]),_:1})):xh("",!0)]),_:1})]),hi("div",Mxt,[fl(g2e,{name:"fade"},{default:VE(()=>[ae.$route.path!="/settings"?(cl(),Gne(ls(b2e),{key:0,id:"settings",to:"/settings"},{default:VE(()=>[fl(Cxt)]),_:1})):xh("",!0)]),_:1}),hi("button",{id:"minimize",onClick:$},[fl(Dxt)]),hi("button",{id:"close",onClick:F},[fl(Sxt)])])])]))}}),jxt=tk(Rxt,[["__scopeId","data-v-7d164ba0"]]),Bxt=US({__name:"Alert",setup(v){const E=Pp(""),F=Pp(""),$=Pp(void 0),ae=[];let K;function je(Ye){$.value&&(clearTimeout(K),F.value=Ye.colour,E.value=Ye.msg,$.value.classList.remove("out"),$.value.classList.add("in"),K=setTimeout(()=>{$.value&&($.value.classList.remove("in"),$.value.classList.add("out"),clearTimeout(K),setTimeout(()=>{K=void 0;const rt=ae.shift();rt&&je(rt)},250))},Ye.timeout))}return window.laochan.alert.__cb=(Ye,rt,wt)=>{K===void 0?je({msg:Ye,colour:rt,timeout:wt}):ae.push({msg:Ye,colour:rt,timeout:wt})},(Ye,rt)=>(cl(),Ul("div",{ref_key:"element",ref:$,class:"alert"},[hi("div",{class:"content",style:nre({"background-color":F.value})},Iv(E.value),5)],512))}}),Jxt=US({__name:"Version",setup(v){const E=Pp("r0 - unknown branch");EO(async()=>{E.value=await window.laochan.version()});function F(){window.laochan.num()}return($,ae)=>(cl(),Ul("div",{class:"version",onClick:ae[0]||(ae[0]=K=>F())},Iv(E.value),1))}}),zxt=tk(Jxt,[["__scopeId","data-v-01ab4474"]]),Uxt="modulepreload",Vxt=function(v){return"/"+v},ERe={},Wxt=function(E,F,$){let ae=Promise.resolve();if(F&&F.length>0){document.getElementsByTagName("link");const je=document.querySelector("meta[property=csp-nonce]"),Ye=(je==null?void 0:je.nonce)||(je==null?void 0:je.getAttribute("nonce"));ae=Promise.allSettled(F.map(rt=>{if(rt=Vxt(rt),rt in ERe)return;ERe[rt]=!0;const wt=rt.endsWith(".css"),Lt=wt?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${rt}"]${Lt}`))return;const Rt=document.createElement("link");if(Rt.rel=wt?"stylesheet":Uxt,wt||(Rt.as="script"),Rt.crossOrigin="",Rt.href=rt,Ye&&Rt.setAttribute("nonce",Ye),document.head.appendChild(Rt),wt)return new Promise((Xe,dt)=>{Rt.addEventListener("load",Xe),Rt.addEventListener("error",()=>dt(new Error(`Unable to preload CSS for ${rt}`)))})}))}function K(je){const Ye=new Event("vite:preloadError",{cancelable:!0});if(Ye.payload=je,window.dispatchEvent(Ye),!Ye.defaultPrevented)throw je}return ae.then(je=>{for(const Ye of je||[])Ye.status==="rejected"&&K(Ye.reason);return E().catch(K)})};function qxt(v,{volume:E=1,playbackRate:F=1,soundEnabled:$=!0,interrupt:ae=!1,autoplay:K=!1,onload:je,...Ye}={}){const rt=Pp(null),wt=Pp(!1),Lt=Pp(null),Rt=Pp(null);function Xe(){var Yn;typeof je=="function"&&je.call(this),Lt.value=(Lt.value||((Yn=Rt.value)==null?void 0:Yn.duration())||0)*1e3,K===!0&&(wt.value=!0)}return EO(async()=>{const Yn=await Wxt(()=>import("./howler-evgYh250.js").then(ii=>ii.h),[]);rt.value=Yn.default.Howl,Rt.value=new rt.value({src:ls(v),volume:ls(E),rate:ls(F),onload:Xe,...Ye})}),D8(()=>[v],()=>{rt.value&&rt.value&&Rt&&Rt.value&&(Rt.value=new rt.value({src:ls(v),volume:ls(E),rate:ls(F),onload:Xe,...Ye}))}),D8(()=>[ls(E),ls(F)],()=>{Rt.value&&(Rt.value.volume(ls(E)),Rt.value.rate(ls(F)))}),{play:Yn=>{typeof Yn>"u"&&(Yn={}),!(!Rt.value||!$&&!Yn.forceSoundEnabled)&&(ae&&Rt.value.stop(),Yn.playbackRate&&Rt.value.rate(Yn.playbackRate),Rt.value.play(Yn.id),Rt.value.once("end",()=>{Rt.value&&Rt.value&&!Rt.value.playing()&&(wt.value=!1)}),wt.value=!0)},sound:Rt,isPlaying:wt,duration:Lt,pause:Yn=>{Rt.value&&(Rt.value.pause(typeof Yn=="number"?Yn:void 0),wt.value=!1)},stop:Yn=>{Rt.value&&(Rt.value.stop(typeof Yn=="number"?Yn:void 0),wt.value=!1)}}}const Hxt="/assets/num-z0VsZKpR.mp3",Gxt=US({__name:"Num",setup(v){const E=Pp(void 0);let F;const{play:$}=qxt(Hxt);return window.laochan.num=()=>{E.value&&(clearTimeout(F),E.value.classList.remove("anim"),E.value.classList.add("anim"),$(),F=setTimeout(()=>{E.value&&(E.value.classList.remove("anim"),clearTimeout(F),F=void 0)},1e3))},(ae,K)=>(cl(),Ul("div",{ref_key:"element",ref:E,class:"num-bg"},K[0]||(K[0]=[hi("div",{class:"num"},null,-1)]),512))}}),$xt=tk(Gxt,[["__scopeId","data-v-595a99de"]]),Xxt={class:"animated"},Qxt=US({__name:"App",setup(v){return(E,F)=>(cl(),Ul(Og,null,[fl(jxt,{title:"Laochan Eacnet Launcher"}),hi("div",Xxt,[fl(ls(IBe),null,{default:VE(({Component:$})=>[fl(g2e,{name:"blur-fade"},{default:VE(()=>[(cl(),Gne(Q2t($)))]),_:2},1024)]),_:1})]),fl(Bxt),fl(zxt),fl($xt)],64))}}),Yxt=tk(Qxt,[["__scopeId","data-v-6d8695ef"]]),Zxt="/assets/gitadora-cQ1BqJ9U.webm";function PRe(v,E){var F=Object.keys(v);if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(v);E&&($=$.filter(function(ae){return Object.getOwnPropertyDescriptor(v,ae).enumerable})),F.push.apply(F,$)}return F}function wRe(v){for(var E=1;EFBe(wRe(wRe({},v),F)),E;function E(F,...$){const ae=typeof F=="string"?[F]:F.raw,{escapeSpecialCharacters:K=Array.isArray(F)}=v;let je="";for(let wt=0;wtLt[0]===" "||Lt[0]===" "?Lt.slice(wt):Lt).join(` +`)}return je=je.trim(),K&&(je=je.replace(/\\n/g,` +`)),je}}class nTt{constructor(){f6(this,"_config",Pp(void 0));f6(this,"_dirty",!1)}get config(){return this._config}async resetToken(){this._config.value.token=await window.laochan.uuid(),this._dirty=!0}resetServerUrl(){this._config.value.serverUrl="http://laochan.ugreen.sbs/",this._dirty=!0}resetEnableConsole(){this._config.value.enableConsole=!1,this._dirty=!0}resetEnableSteamOverlay(){this._config.value.enableSteamOverlay=!0,this._dirty=!0}async saveConfig(){const E=JSON.stringify(this._config.value);await window.laochan.writeFile("laochan-config.json",E),this._dirty=!1}async loadConfig(){const E=await window.laochan.readFile("laochan-config.json");E&&(this._config.value=JSON.parse(E)),E||(this._config.value={}),this._config.value.token||await this.resetToken(),this._config.value.serverUrl||this.resetServerUrl(),!this._config.value.enableConsole===void 0&&this.resetEnableConsole(),!this._config.value.enableSteamOverlay===void 0&&this.resetEnableSteamOverlay(),this._dirty&&this.saveConfig()}async applyConfig(){this._config.value&&(await window.laochan.setParam("LAOCHAN_TOKEN",this._config.value.token),await window.laochan.setParam("LAOCHAN_SERVER_URL",this._config.value.serverUrl),await window.laochan.setParam("LAOCHAN_ENABLE_CONSOLE",JSON.stringify(+this._config.value.enableConsole)),await window.laochan.setParam("LAOCHAN_ENABLE_STEAM_OVERLAY",JSON.stringify(+this._config.value.enableSteamOverlay)))}async exportBatParams(){if(this._config.value)return OBe` + REM Laochan Launcher Params + SET LAOCHAN_TOKEN="${this._config.value.token}" + SET LAOCHAN_SERVER_URL="${this._config.value.serverUrl}" + SET LAOCHAN_ENABLE_CONSOLE=${+this._config.value.enableConsole} + SET LAOCHAN_ENABLE_STEAM_OVERLAY=${+this._config.value.enableSteamOverlay} + `}}const xd=new nTt;var LBe=(v=>(v[v.Fullscreen=0]="Fullscreen",v[v.BorderlessWindowed=1]="BorderlessWindowed",v[v.Windowed=1]="Windowed",v))(LBe||{}),MBe=(v=>(v[v.Wasapi=0]="Wasapi",v[v.Asio=1]="Asio",v))(MBe||{});class rTt{constructor(){f6(this,"_config",Pp(void 0));f6(this,"_dirty",!1)}get config(){return this._config}installed(){return!!window.laochan.ctx.gameInfos.value[0].installed}get installPath(){return this.installed()?window.laochan.ctx.gameInfos.value[0].install_path:void 0}get configPath(){const E=this.installPath;if(E)return E+"laochan-config.json"}checkVersion(){if(!this.installed())return-1;const E=window.laochan.ctx.gameInfos.value[0].game_module_version,F=window.laochan.ctx.gameInfos.value[0].game_module_target_version,$=Number.parseInt(E.split(":")[4]),ae=Number.parseInt(F.split(":")[4]);return $>ae?1:${const $=X2t("RouterLink");return cl(),Ul("main",null,[F[26]||(F[26]=hi("div",null,null,-1)),hi("div",aTt,[F[14]||(F[14]=hi("div",{class:"background"},null,-1)),hi("div",oTt,[F[11]||(F[11]=gu(" SOUND VOLTEX")),F[12]||(F[12]=hi("br",null,null,-1)),F[13]||(F[13]=gu(" EXCEED GEAR ")),ls(g6).installed()?xh("",!0):(cl(),Ul("div",cTt," 未安装 "))]),ls(g6).installed()?(cl(),Ul("div",lTt,[hi("div",{class:"opt",onClick:F[0]||(F[0]=(...ae)=>ls(g6).start&&ls(g6).start(...ae))},"启动"),hi("div",{class:"opt",onClick:F[1]||(F[1]=(...ae)=>ls(g6).settings&&ls(g6).settings(...ae))},"游戏设置"),hi("div",{class:"opt",onClick:F[2]||(F[2]=(...ae)=>ls(g6).updater&&ls(g6).updater(...ae))},"更新器")])):xh("",!0)]),hi("div",uTt,[F[20]||(F[20]=hi("div",{class:"background"},null,-1)),hi("div",_Tt,[F[15]||(F[15]=gu(" beatmania IIDX")),F[16]||(F[16]=hi("br",null,null,-1)),F[17]||(F[17]=gu(" INFINITAS ")),ls(ol).installed()?xh("",!0):(cl(),Ul("div",fTt," 未安装 "))]),ls(ol).installed()?(cl(),Ul("div",pTt,[ls(ol).checkVersion()==0?(cl(),Ul("div",{key:0,class:"opt",onClick:F[3]||(F[3]=(...ae)=>ls(ol).start&&ls(ol).start(...ae))},"启动")):xh("",!0),ls(ol).checkVersion()==1?(cl(),Ul("div",dTt," 请升级启动器 ")):xh("",!0),ls(ol).checkVersion()==2?(cl(),Ul("div",mTt," 请升级游戏 ")):xh("",!0),fl($,{class:"opt",to:"/iidx/settings"},{default:VE(()=>F[18]||(F[18]=[gu("额外设置")])),_:1}),hi("div",{class:"opt",onClick:F[4]||(F[4]=(...ae)=>ls(ol).settings&&ls(ol).settings(...ae))},"游戏设置"),hi("div",{class:"opt",onClick:F[5]||(F[5]=(...ae)=>ls(ol).updater&&ls(ol).updater(...ae))},"更新器"),hi("div",{class:"opt",onClick:F[6]||(F[6]=(...ae)=>ls(ol).openCustomize&&ls(ol).openCustomize(...ae))},"自定义选项"),F[19]||(F[19]=hi("div",{class:"gap"},null,-1)),hi("div",{class:"opt small",onClick:F[7]||(F[7]=(...ae)=>ls(ol).generateBat&&ls(ol).generateBat(...ae))},"生成快速启动 BAT")])):xh("",!0)]),hi("div",gTt,[F[25]||(F[25]=hi("div",{class:"background"},[hi("video",{loop:"",autoplay:"",muted:"",src:Zxt})],-1)),hi("div",hTt,[F[22]||(F[22]=gu(" GITADORA ")),F[23]||(F[23]=hi("br",null,null,-1)),F[24]||(F[24]=hi("br",null,null,-1)),ls(LE).installed()?(cl(),Ul("div",vTt,F[21]||(F[21]=[hi("small",null,"请注意: 服务器暂不支持",-1)]))):(cl(),Ul("div",yTt," 未安装 "))]),ls(LE).installed()?(cl(),Ul("div",bTt,[hi("div",{class:"opt",onClick:F[8]||(F[8]=(...ae)=>ls(LE).start&&ls(LE).start(...ae))},"启动"),hi("div",{class:"opt",onClick:F[9]||(F[9]=(...ae)=>ls(LE).settings&&ls(LE).settings(...ae))},"游戏设置"),hi("div",{class:"opt",onClick:F[10]||(F[10]=(...ae)=>ls(LE).updater&&ls(LE).updater(...ae))},"更新器")])):xh("",!0)]),F[27]||(F[27]=hi("div",null,null,-1))])}}}),xTt=tk(STt,[["__scopeId","data-v-7c178352"]]),TTt={prefix:"fas",iconName:"lightbulb",icon:[384,512,[128161],"f0eb","M272 384c9.6-31.9 29.5-59.1 49.2-86.2c0 0 0 0 0 0c5.2-7.1 10.4-14.2 15.4-21.4c19.8-28.5 31.4-63 31.4-100.3C368 78.8 289.2 0 192 0S16 78.8 16 176c0 37.3 11.6 71.9 31.4 100.3c5 7.2 10.2 14.3 15.4 21.4c0 0 0 0 0 0c19.8 27.1 39.7 54.4 49.2 86.2l160 0zM192 512c44.2 0 80-35.8 80-80l0-16-160 0 0 16c0 44.2 35.8 80 80 80zM112 176c0 8.8-7.2 16-16 16s-16-7.2-16-16c0-61.9 50.1-112 112-112c8.8 0 16 7.2 16 16s-7.2 16-16 16c-44.2 0-80 35.8-80 80z"]},kTt={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M64 32C28.7 32 0 60.7 0 96l0 64c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 32zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm48 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zM64 288c-35.3 0-64 28.7-64 64l0 64c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 288zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm56 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},CTt={prefix:"fas",iconName:"microchip",icon:[512,512,[],"f2db","M176 24c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 40c-35.3 0-64 28.7-64 64l-40 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l40 0 0 56-40 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l40 0 0 56-40 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l40 0c0 35.3 28.7 64 64 64l0 40c0 13.3 10.7 24 24 24s24-10.7 24-24l0-40 56 0 0 40c0 13.3 10.7 24 24 24s24-10.7 24-24l0-40 56 0 0 40c0 13.3 10.7 24 24 24s24-10.7 24-24l0-40c35.3 0 64-28.7 64-64l40 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-40 0 0-56 40 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-40 0 0-56 40 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-40 0c0-35.3-28.7-64-64-64l0-40c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 40-56 0 0-40c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 40-56 0 0-40zM160 128l192 0c17.7 0 32 14.3 32 32l0 192c0 17.7-14.3 32-32 32l-192 0c-17.7 0-32-14.3-32-32l0-192c0-17.7 14.3-32 32-32zm192 32l-192 0 0 192 192 0 0-192z"]},ETt={prefix:"fas",iconName:"language",icon:[640,512,[],"f1ab","M0 128C0 92.7 28.7 64 64 64l192 0 48 0 16 0 256 0c35.3 0 64 28.7 64 64l0 256c0 35.3-28.7 64-64 64l-256 0-16 0-48 0L64 448c-35.3 0-64-28.7-64-64L0 128zm320 0l0 256 256 0 0-256-256 0zM178.3 175.9c-3.2-7.2-10.4-11.9-18.3-11.9s-15.1 4.7-18.3 11.9l-64 144c-4.5 10.1 .1 21.9 10.2 26.4s21.9-.1 26.4-10.2l8.9-20.1 73.6 0 8.9 20.1c4.5 10.1 16.3 14.6 26.4 10.2s14.6-16.3 10.2-26.4l-64-144zM160 233.2L179 276l-38 0 19-42.8zM448 164c11 0 20 9 20 20l0 4 44 0 16 0c11 0 20 9 20 20s-9 20-20 20l-2 0-1.6 4.5c-8.9 24.4-22.4 46.6-39.6 65.4c.9 .6 1.8 1.1 2.7 1.6l18.9 11.3c9.5 5.7 12.5 18 6.9 27.4s-18 12.5-27.4 6.9l-18.9-11.3c-4.5-2.7-8.8-5.5-13.1-8.5c-10.6 7.5-21.9 14-34 19.4l-3.6 1.6c-10.1 4.5-21.9-.1-26.4-10.2s.1-21.9 10.2-26.4l3.6-1.6c6.4-2.9 12.6-6.1 18.5-9.8l-12.2-12.2c-7.8-7.8-7.8-20.5 0-28.3s20.5-7.8 28.3 0l14.6 14.6 .5 .5c12.4-13.1 22.5-28.3 29.8-45L448 228l-72 0c-11 0-20-9-20-20s9-20 20-20l52 0 0-4c0-11 9-20 20-20z"]},PTt={prefix:"fas",iconName:"volume-high",icon:[640,512,[128266,"volume-up"],"f028","M533.6 32.5C598.5 85.2 640 165.8 640 256s-41.5 170.7-106.4 223.5c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C557.5 398.2 592 331.2 592 256s-34.5-142.2-88.7-186.3c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zM473.1 107c43.2 35.2 70.9 88.9 70.9 149s-27.7 113.8-70.9 149c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C475.3 341.3 496 301.1 496 256s-20.7-85.3-53.2-111.8c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zm-60.5 74.5C434.1 199.1 448 225.9 448 256s-13.9 56.9-35.4 74.5c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C393.1 284.4 400 271 400 256s-6.9-28.4-17.7-37.3c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zM301.1 34.8C312.6 40 320 51.4 320 64l0 384c0 12.6-7.4 24-18.9 29.2s-25 3.1-34.4-5.3L131.8 352 64 352c-35.3 0-64-28.7-64-64l0-64c0-35.3 28.7-64 64-64l67.8 0L266.7 40.1c9.4-8.4 22.9-10.4 34.4-5.3z"]},wTt={prefix:"fas",iconName:"terminal",icon:[576,512,[],"f120","M9.4 86.6C-3.1 74.1-3.1 53.9 9.4 41.4s32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L178.7 256 9.4 86.6zM256 416l288 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-288 0c-17.7 0-32-14.3-32-32s14.3-32 32-32z"]},DTt={prefix:"fas",iconName:"tape",icon:[576,512,[],"f4db","M380.8 416c41.5-40.7 67.2-97.3 67.2-160C448 132.3 347.7 32 224 32S0 132.3 0 256S100.3 480 224 480l320 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-163.2 0zM224 160a96 96 0 1 1 0 192 96 96 0 1 1 0-192zm64 96a64 64 0 1 0 -128 0 64 64 0 1 0 128 0z"]},ATt={prefix:"fas",iconName:"hard-drive",icon:[512,512,[128436,"hdd"],"f0a0","M0 96C0 60.7 28.7 32 64 32l384 0c35.3 0 64 28.7 64 64l0 184.4c-17-15.2-39.4-24.4-64-24.4L64 256c-24.6 0-47 9.2-64 24.4L0 96zM64 288l384 0c35.3 0 64 28.7 64 64l0 64c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64l0-64c0-35.3 28.7-64 64-64zM320 416a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm128-32a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},NTt=ATt,ITt={prefix:"fas",iconName:"id-card",icon:[576,512,[62147,"drivers-license"],"f2c2","M0 96l576 0c0-35.3-28.7-64-64-64L64 32C28.7 32 0 60.7 0 96zm0 32L0 416c0 35.3 28.7 64 64 64l448 0c35.3 0 64-28.7 64-64l0-288L0 128zM64 405.3c0-29.5 23.9-53.3 53.3-53.3l117.3 0c29.5 0 53.3 23.9 53.3 53.3c0 5.9-4.8 10.7-10.7 10.7L74.7 416c-5.9 0-10.7-4.8-10.7-10.7zM176 192a64 64 0 1 1 0 128 64 64 0 1 1 0-128zm176 16c0-8.8 7.2-16 16-16l128 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-128 0c-8.8 0-16-7.2-16-16zm0 64c0-8.8 7.2-16 16-16l128 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-128 0c-8.8 0-16-7.2-16-16zm0 64c0-8.8 7.2-16 16-16l128 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-128 0c-8.8 0-16-7.2-16-16z"]},OTt={prefix:"fas",iconName:"compact-disc",icon:[512,512,[128191,128192,128440],"f51f","M0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm256 32a32 32 0 1 1 0-64 32 32 0 1 1 0 64zm-96-32a96 96 0 1 0 192 0 96 96 0 1 0 -192 0zM96 240c0-35 17.5-71.1 45.2-98.8S205 96 240 96c8.8 0 16-7.2 16-16s-7.2-16-16-16c-45.4 0-89.2 22.3-121.5 54.5S64 194.6 64 240c0 8.8 7.2 16 16 16s16-7.2 16-16z"]},FTt={prefix:"fas",iconName:"display",icon:[576,512,[],"e163","M64 0C28.7 0 0 28.7 0 64L0 352c0 35.3 28.7 64 64 64l176 0-10.7 32L160 448c-17.7 0-32 14.3-32 32s14.3 32 32 32l256 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-69.3 0L336 416l176 0c35.3 0 64-28.7 64-64l0-288c0-35.3-28.7-64-64-64L64 0zM512 64l0 288L64 352 64 64l448 0z"]},LTt={prefix:"fas",iconName:"up-right-and-down-left-from-center",icon:[512,512,["expand-alt"],"f424","M344 0L488 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39-87 87c-9.4 9.4-24.6 9.4-33.9 0l-32-32c-9.4-9.4-9.4-24.6 0-33.9l87-87L327 41c-6.9-6.9-8.9-17.2-5.2-26.2S334.3 0 344 0zM168 512L24 512c-13.3 0-24-10.7-24-24L0 344c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39 87-87c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8z"]},MTt={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480L40 480c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},DRe=MTt,ARe=()=>{};let cbe={},RBe={},jBe=null,BBe={mark:ARe,measure:ARe};try{typeof window<"u"&&(cbe=window),typeof document<"u"&&(RBe=document),typeof MutationObserver<"u"&&(jBe=MutationObserver),typeof performance<"u"&&(BBe=performance)}catch{}const{userAgent:NRe=""}=cbe.navigator||{},GE=cbe,up=RBe,IRe=jBe,Mne=BBe;GE.document;const k6=!!up.documentElement&&!!up.head&&typeof up.addEventListener=="function"&&typeof up.createElement=="function",JBe=~NRe.indexOf("MSIE")||~NRe.indexOf("Trident/");var wp="classic",zBe="duotone",Fv="sharp",Lv="sharp-duotone",RTt=[wp,zBe,Fv,Lv],jTt={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds"}},ORe={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},BTt=["kit"],JTt=/fa(s|r|l|t|d|b|k|kd|ss|sr|sl|st|sds)?[\-\ ]/,zTt=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,UTt={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}},VTt={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds"}},WTt={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds"}},qTt={classic:["fas","far","fal","fat"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds"]},HTt={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid"}},GTt={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds"}},UBe={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid"}},$Tt=["solid","regular","light","thin","duotone","brands"],VBe=[1,2,3,4,5,6,7,8,9,10],XTt=VBe.concat([11,12,13,14,15,16,17,18,19,20]),Iz={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},QTt=[...Object.keys(qTt),...$Tt,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Iz.GROUP,Iz.SWAP_OPACITY,Iz.PRIMARY,Iz.SECONDARY].concat(VBe.map(v=>"".concat(v,"x"))).concat(XTt.map(v=>"w-".concat(v))),YTt={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},ZTt={kit:{"fa-kit":"fak"},"kit-duotone":{"fa-kit-duotone":"fakd"}},KTt={kit:{fak:"fa-kit"},"kit-duotone":{fakd:"fa-kit-duotone"}},FRe={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}};const S6="___FONT_AWESOME___",S2e=16,WBe="fa",qBe="svg-inline--fa",O8="data-fa-i2svg",x2e="data-fa-pseudo-element",ekt="data-fa-pseudo-element-pending",lbe="data-prefix",ube="data-icon",LRe="fontawesome-i2svg",tkt="async",nkt=["HTML","HEAD","STYLE","SCRIPT"],HBe=(()=>{try{return!0}catch{return!1}})(),GBe=[wp,Fv,Lv];function rU(v){return new Proxy(v,{get(E,F){return F in E?E[F]:E[wp]}})}const $Be={...UBe};$Be[wp]={...UBe[wp],...ORe.kit,...ORe["kit-duotone"]};const A8=rU($Be),T2e={...GTt};T2e[wp]={...T2e[wp],...FRe.kit,...FRe["kit-duotone"]};const Kz=rU(T2e),k2e={...HTt};k2e[wp]={...k2e[wp],...KTt.kit};const N8=rU(k2e),C2e={...WTt};C2e[wp]={...C2e[wp],...ZTt.kit};const rkt=rU(C2e),ikt=JTt,XBe="fa-layers-text",skt=zTt,akt={...jTt};rU(akt);const okt=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Yve=Iz,kO=new Set;Object.keys(Kz[wp]).map(kO.add.bind(kO));Object.keys(Kz[Fv]).map(kO.add.bind(kO));Object.keys(Kz[Lv]).map(kO.add.bind(kO));const ckt=[...BTt,...QTt],zz=GE.FontAwesomeConfig||{};function lkt(v){var E=up.querySelector("script["+v+"]");if(E)return E.getAttribute(v)}function ukt(v){return v===""?!0:v==="false"?!1:v==="true"?!0:v}up&&typeof up.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(E=>{let[F,$]=E;const ae=ukt(lkt(F));ae!=null&&(zz[$]=ae)});const QBe={styleDefault:"solid",familyDefault:"classic",cssPrefix:WBe,replacementClass:qBe,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};zz.familyPrefix&&(zz.cssPrefix=zz.familyPrefix);const CO={...QBe,...zz};CO.autoReplaceSvg||(CO.observeMutations=!1);const uo={};Object.keys(QBe).forEach(v=>{Object.defineProperty(uo,v,{enumerable:!0,set:function(E){CO[v]=E,Uz.forEach(F=>F(uo))},get:function(){return CO[v]}})});Object.defineProperty(uo,"familyPrefix",{enumerable:!0,set:function(v){CO.cssPrefix=v,Uz.forEach(E=>E(uo))},get:function(){return CO.cssPrefix}});GE.FontAwesomeConfig=uo;const Uz=[];function _kt(v){return Uz.push(v),()=>{Uz.splice(Uz.indexOf(v),1)}}const ME=S2e,YT={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function fkt(v){if(!v||!k6)return;const E=up.createElement("style");E.setAttribute("type","text/css"),E.innerHTML=v;const F=up.head.childNodes;let $=null;for(let ae=F.length-1;ae>-1;ae--){const K=F[ae],je=(K.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(je)>-1&&($=K)}return up.head.insertBefore(E,$),v}const pkt="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function eU(){let v=12,E="";for(;v-- >0;)E+=pkt[Math.random()*62|0];return E}function PO(v){const E=[];for(let F=(v||[]).length>>>0;F--;)E[F]=v[F];return E}function _be(v){return v.classList?PO(v.classList):(v.getAttribute("class")||"").split(" ").filter(E=>E)}function YBe(v){return"".concat(v).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function dkt(v){return Object.keys(v||{}).reduce((E,F)=>E+"".concat(F,'="').concat(YBe(v[F]),'" '),"").trim()}function dre(v){return Object.keys(v||{}).reduce((E,F)=>E+"".concat(F,": ").concat(v[F].trim(),";"),"")}function fbe(v){return v.size!==YT.size||v.x!==YT.x||v.y!==YT.y||v.rotate!==YT.rotate||v.flipX||v.flipY}function mkt(v){let{transform:E,containerWidth:F,iconWidth:$}=v;const ae={transform:"translate(".concat(F/2," 256)")},K="translate(".concat(E.x*32,", ").concat(E.y*32,") "),je="scale(".concat(E.size/16*(E.flipX?-1:1),", ").concat(E.size/16*(E.flipY?-1:1),") "),Ye="rotate(".concat(E.rotate," 0 0)"),rt={transform:"".concat(K," ").concat(je," ").concat(Ye)},wt={transform:"translate(".concat($/2*-1," -256)")};return{outer:ae,inner:rt,path:wt}}function gkt(v){let{transform:E,width:F=S2e,height:$=S2e,startCentered:ae=!1}=v,K="";return ae&&JBe?K+="translate(".concat(E.x/ME-F/2,"em, ").concat(E.y/ME-$/2,"em) "):ae?K+="translate(calc(-50% + ".concat(E.x/ME,"em), calc(-50% + ").concat(E.y/ME,"em)) "):K+="translate(".concat(E.x/ME,"em, ").concat(E.y/ME,"em) "),K+="scale(".concat(E.size/ME*(E.flipX?-1:1),", ").concat(E.size/ME*(E.flipY?-1:1),") "),K+="rotate(".concat(E.rotate,"deg) "),K}var hkt=`:root, :host { + --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free"; + --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free"; + --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro"; + --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro"; + --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone"; + --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands"; + --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp"; + --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp"; + --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp"; + --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp"; + --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone"; +} + +svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { + overflow: visible; + box-sizing: content-box; +} + +.svg-inline--fa { + display: var(--fa-display, inline-block); + height: 1em; + overflow: visible; + vertical-align: -0.125em; +} +.svg-inline--fa.fa-2xs { + vertical-align: 0.1em; +} +.svg-inline--fa.fa-xs { + vertical-align: 0em; +} +.svg-inline--fa.fa-sm { + vertical-align: -0.0714285705em; +} +.svg-inline--fa.fa-lg { + vertical-align: -0.2em; +} +.svg-inline--fa.fa-xl { + vertical-align: -0.25em; +} +.svg-inline--fa.fa-2xl { + vertical-align: -0.3125em; +} +.svg-inline--fa.fa-pull-left { + margin-right: var(--fa-pull-margin, 0.3em); + width: auto; +} +.svg-inline--fa.fa-pull-right { + margin-left: var(--fa-pull-margin, 0.3em); + width: auto; +} +.svg-inline--fa.fa-li { + width: var(--fa-li-width, 2em); + top: 0.25em; +} +.svg-inline--fa.fa-fw { + width: var(--fa-fw-width, 1.25em); +} + +.fa-layers svg.svg-inline--fa { + bottom: 0; + left: 0; + margin: auto; + position: absolute; + right: 0; + top: 0; +} + +.fa-layers-counter, .fa-layers-text { + display: inline-block; + position: absolute; + text-align: center; +} + +.fa-layers { + display: inline-block; + height: 1em; + position: relative; + text-align: center; + vertical-align: -0.125em; + width: 1em; +} +.fa-layers svg.svg-inline--fa { + transform-origin: center center; +} + +.fa-layers-text { + left: 50%; + top: 50%; + transform: translate(-50%, -50%); + transform-origin: center center; +} + +.fa-layers-counter { + background-color: var(--fa-counter-background-color, #ff253a); + border-radius: var(--fa-counter-border-radius, 1em); + box-sizing: border-box; + color: var(--fa-inverse, #fff); + line-height: var(--fa-counter-line-height, 1); + max-width: var(--fa-counter-max-width, 5em); + min-width: var(--fa-counter-min-width, 1.5em); + overflow: hidden; + padding: var(--fa-counter-padding, 0.25em 0.5em); + right: var(--fa-right, 0); + text-overflow: ellipsis; + top: var(--fa-top, 0); + transform: scale(var(--fa-counter-scale, 0.25)); + transform-origin: top right; +} + +.fa-layers-bottom-right { + bottom: var(--fa-bottom, 0); + right: var(--fa-right, 0); + top: auto; + transform: scale(var(--fa-layers-scale, 0.25)); + transform-origin: bottom right; +} + +.fa-layers-bottom-left { + bottom: var(--fa-bottom, 0); + left: var(--fa-left, 0); + right: auto; + top: auto; + transform: scale(var(--fa-layers-scale, 0.25)); + transform-origin: bottom left; +} + +.fa-layers-top-right { + top: var(--fa-top, 0); + right: var(--fa-right, 0); + transform: scale(var(--fa-layers-scale, 0.25)); + transform-origin: top right; +} + +.fa-layers-top-left { + left: var(--fa-left, 0); + right: auto; + top: var(--fa-top, 0); + transform: scale(var(--fa-layers-scale, 0.25)); + transform-origin: top left; +} + +.fa-1x { + font-size: 1em; +} + +.fa-2x { + font-size: 2em; +} + +.fa-3x { + font-size: 3em; +} + +.fa-4x { + font-size: 4em; +} + +.fa-5x { + font-size: 5em; +} + +.fa-6x { + font-size: 6em; +} + +.fa-7x { + font-size: 7em; +} + +.fa-8x { + font-size: 8em; +} + +.fa-9x { + font-size: 9em; +} + +.fa-10x { + font-size: 10em; +} + +.fa-2xs { + font-size: 0.625em; + line-height: 0.1em; + vertical-align: 0.225em; +} + +.fa-xs { + font-size: 0.75em; + line-height: 0.0833333337em; + vertical-align: 0.125em; +} + +.fa-sm { + font-size: 0.875em; + line-height: 0.0714285718em; + vertical-align: 0.0535714295em; +} + +.fa-lg { + font-size: 1.25em; + line-height: 0.05em; + vertical-align: -0.075em; +} + +.fa-xl { + font-size: 1.5em; + line-height: 0.0416666682em; + vertical-align: -0.125em; +} + +.fa-2xl { + font-size: 2em; + line-height: 0.03125em; + vertical-align: -0.1875em; +} + +.fa-fw { + text-align: center; + width: 1.25em; +} + +.fa-ul { + list-style-type: none; + margin-left: var(--fa-li-margin, 2.5em); + padding-left: 0; +} +.fa-ul > li { + position: relative; +} + +.fa-li { + left: calc(-1 * var(--fa-li-width, 2em)); + position: absolute; + text-align: center; + width: var(--fa-li-width, 2em); + line-height: inherit; +} + +.fa-border { + border-color: var(--fa-border-color, #eee); + border-radius: var(--fa-border-radius, 0.1em); + border-style: var(--fa-border-style, solid); + border-width: var(--fa-border-width, 0.08em); + padding: var(--fa-border-padding, 0.2em 0.25em 0.15em); +} + +.fa-pull-left { + float: left; + margin-right: var(--fa-pull-margin, 0.3em); +} + +.fa-pull-right { + float: right; + margin-left: var(--fa-pull-margin, 0.3em); +} + +.fa-beat { + animation-name: fa-beat; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-bounce { + animation-name: fa-bounce; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); +} + +.fa-fade { + animation-name: fa-fade; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); +} + +.fa-beat-fade { + animation-name: fa-beat-fade; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); +} + +.fa-flip { + animation-name: fa-flip; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-shake { + animation-name: fa-shake; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-spin { + animation-name: fa-spin; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 2s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-spin-reverse { + --fa-animation-direction: reverse; +} + +.fa-pulse, +.fa-spin-pulse { + animation-name: fa-spin; + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, steps(8)); +} + +@media (prefers-reduced-motion: reduce) { + .fa-beat, +.fa-bounce, +.fa-fade, +.fa-beat-fade, +.fa-flip, +.fa-pulse, +.fa-shake, +.fa-spin, +.fa-spin-pulse { + animation-delay: -1ms; + animation-duration: 1ms; + animation-iteration-count: 1; + transition-delay: 0s; + transition-duration: 0s; + } +} +@keyframes fa-beat { + 0%, 90% { + transform: scale(1); + } + 45% { + transform: scale(var(--fa-beat-scale, 1.25)); + } +} +@keyframes fa-bounce { + 0% { + transform: scale(1, 1) translateY(0); + } + 10% { + transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + } + 30% { + transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); + } + 50% { + transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + } + 57% { + transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + } + 64% { + transform: scale(1, 1) translateY(0); + } + 100% { + transform: scale(1, 1) translateY(0); + } +} +@keyframes fa-fade { + 50% { + opacity: var(--fa-fade-opacity, 0.4); + } +} +@keyframes fa-beat-fade { + 0%, 100% { + opacity: var(--fa-beat-fade-opacity, 0.4); + transform: scale(1); + } + 50% { + opacity: 1; + transform: scale(var(--fa-beat-fade-scale, 1.125)); + } +} +@keyframes fa-flip { + 50% { + transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + } +} +@keyframes fa-shake { + 0% { + transform: rotate(-15deg); + } + 4% { + transform: rotate(15deg); + } + 8%, 24% { + transform: rotate(-18deg); + } + 12%, 28% { + transform: rotate(18deg); + } + 16% { + transform: rotate(-22deg); + } + 20% { + transform: rotate(22deg); + } + 32% { + transform: rotate(-12deg); + } + 36% { + transform: rotate(12deg); + } + 40%, 100% { + transform: rotate(0deg); + } +} +@keyframes fa-spin { + 0% { + transform: rotate(0deg); + } + 100% { + transform: rotate(360deg); + } +} +.fa-rotate-90 { + transform: rotate(90deg); +} + +.fa-rotate-180 { + transform: rotate(180deg); +} + +.fa-rotate-270 { + transform: rotate(270deg); +} + +.fa-flip-horizontal { + transform: scale(-1, 1); +} + +.fa-flip-vertical { + transform: scale(1, -1); +} + +.fa-flip-both, +.fa-flip-horizontal.fa-flip-vertical { + transform: scale(-1, -1); +} + +.fa-rotate-by { + transform: rotate(var(--fa-rotate-angle, 0)); +} + +.fa-stack { + display: inline-block; + vertical-align: middle; + height: 2em; + position: relative; + width: 2.5em; +} + +.fa-stack-1x, +.fa-stack-2x { + bottom: 0; + left: 0; + margin: auto; + position: absolute; + right: 0; + top: 0; + z-index: var(--fa-stack-z-index, auto); +} + +.svg-inline--fa.fa-stack-1x { + height: 1em; + width: 1.25em; +} +.svg-inline--fa.fa-stack-2x { + height: 2em; + width: 2.5em; +} + +.fa-inverse { + color: var(--fa-inverse, #fff); +} + +.sr-only, +.fa-sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border-width: 0; +} + +.sr-only-focusable:not(:focus), +.fa-sr-only-focusable:not(:focus) { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border-width: 0; +} + +.svg-inline--fa .fa-primary { + fill: var(--fa-primary-color, currentColor); + opacity: var(--fa-primary-opacity, 1); +} + +.svg-inline--fa .fa-secondary { + fill: var(--fa-secondary-color, currentColor); + opacity: var(--fa-secondary-opacity, 0.4); +} + +.svg-inline--fa.fa-swap-opacity .fa-primary { + opacity: var(--fa-secondary-opacity, 0.4); +} + +.svg-inline--fa.fa-swap-opacity .fa-secondary { + opacity: var(--fa-primary-opacity, 1); +} + +.svg-inline--fa mask .fa-primary, +.svg-inline--fa mask .fa-secondary { + fill: black; +} + +.fad.fa-inverse, +.fa-duotone.fa-inverse { + color: var(--fa-inverse, #fff); +}`;function ZBe(){const v=WBe,E=qBe,F=uo.cssPrefix,$=uo.replacementClass;let ae=hkt;if(F!==v||$!==E){const K=new RegExp("\\.".concat(v,"\\-"),"g"),je=new RegExp("\\--".concat(v,"\\-"),"g"),Ye=new RegExp("\\.".concat(E),"g");ae=ae.replace(K,".".concat(F,"-")).replace(je,"--".concat(F,"-")).replace(Ye,".".concat($))}return ae}let MRe=!1;function Zve(){uo.autoAddCss&&!MRe&&(fkt(ZBe()),MRe=!0)}var ykt={mixout(){return{dom:{css:ZBe,insertCss:Zve}}},hooks(){return{beforeDOMElementCreation(){Zve()},beforeI2svg(){Zve()}}}};const x6=GE||{};x6[S6]||(x6[S6]={});x6[S6].styles||(x6[S6].styles={});x6[S6].hooks||(x6[S6].hooks={});x6[S6].shims||(x6[S6].shims=[]);var ZT=x6[S6];const KBe=[],eJe=function(){up.removeEventListener("DOMContentLoaded",eJe),Xne=1,KBe.map(v=>v())};let Xne=!1;k6&&(Xne=(up.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(up.readyState),Xne||up.addEventListener("DOMContentLoaded",eJe));function vkt(v){k6&&(Xne?setTimeout(v,0):KBe.push(v))}function iU(v){const{tag:E,attributes:F={},children:$=[]}=v;return typeof v=="string"?YBe(v):"<".concat(E," ").concat(dkt(F),">").concat($.map(iU).join(""),"")}function RRe(v,E,F){if(v&&v[E]&&v[E][F])return{prefix:E,iconName:F,icon:v[E][F]}}var Kve=function(E,F,$,ae){var K=Object.keys(E),je=K.length,Ye=F,rt,wt,Lt;for($===void 0?(rt=1,Lt=E[K[0]]):(rt=0,Lt=$);rt=55296&&ae<=56319&&F<$){const K=v.charCodeAt(F++);(K&64512)==56320?E.push(((ae&1023)<<10)+(K&1023)+65536):(E.push(ae),F--)}else E.push(ae)}return E}function E2e(v){const E=bkt(v);return E.length===1?E[0].toString(16):null}function Skt(v,E){const F=v.length;let $=v.charCodeAt(E),ae;return $>=55296&&$<=56319&&F>E+1&&(ae=v.charCodeAt(E+1),ae>=56320&&ae<=57343)?($-55296)*1024+ae-56320+65536:$}function jRe(v){return Object.keys(v).reduce((E,F)=>{const $=v[F];return!!$.icon?E[$.iconName]=$.icon:E[F]=$,E},{})}function P2e(v,E){let F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:$=!1}=F,ae=jRe(E);typeof ZT.hooks.addPack=="function"&&!$?ZT.hooks.addPack(v,jRe(E)):ZT.styles[v]={...ZT.styles[v]||{},...ae},v==="fas"&&P2e("fa",E)}const{styles:P8,shims:xkt}=ZT,Tkt={[wp]:Object.values(N8[wp]),[Fv]:Object.values(N8[Fv]),[Lv]:Object.values(N8[Lv])};let pbe=null,tJe={},nJe={},rJe={},iJe={},sJe={};const kkt={[wp]:Object.keys(A8[wp]),[Fv]:Object.keys(A8[Fv]),[Lv]:Object.keys(A8[Lv])};function Ckt(v){return~ckt.indexOf(v)}function Ekt(v,E){const F=E.split("-"),$=F[0],ae=F.slice(1).join("-");return $===v&&ae!==""&&!Ckt(ae)?ae:null}const aJe=()=>{const v=$=>Kve(P8,(ae,K,je)=>(ae[je]=Kve(K,$,{}),ae),{});tJe=v(($,ae,K)=>(ae[3]&&($[ae[3]]=K),ae[2]&&ae[2].filter(Ye=>typeof Ye=="number").forEach(Ye=>{$[Ye.toString(16)]=K}),$)),nJe=v(($,ae,K)=>($[K]=K,ae[2]&&ae[2].filter(Ye=>typeof Ye=="string").forEach(Ye=>{$[Ye]=K}),$)),sJe=v(($,ae,K)=>{const je=ae[2];return $[K]=K,je.forEach(Ye=>{$[Ye]=K}),$});const E="far"in P8||uo.autoFetchSvg,F=Kve(xkt,($,ae)=>{const K=ae[0];let je=ae[1];const Ye=ae[2];return je==="far"&&!E&&(je="fas"),typeof K=="string"&&($.names[K]={prefix:je,iconName:Ye}),typeof K=="number"&&($.unicodes[K.toString(16)]={prefix:je,iconName:Ye}),$},{names:{},unicodes:{}});rJe=F.names,iJe=F.unicodes,pbe=mre(uo.styleDefault,{family:uo.familyDefault})};_kt(v=>{pbe=mre(v.styleDefault,{family:uo.familyDefault})});aJe();function dbe(v,E){return(tJe[v]||{})[E]}function Pkt(v,E){return(nJe[v]||{})[E]}function WE(v,E){return(sJe[v]||{})[E]}function oJe(v){return rJe[v]||{prefix:null,iconName:null}}function wkt(v){const E=iJe[v],F=dbe("fas",v);return E||(F?{prefix:"fas",iconName:F}:null)||{prefix:null,iconName:null}}function $E(){return pbe}const mbe=()=>({prefix:null,iconName:null,rest:[]});function mre(v){let E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:F=wp}=E,$=A8[F][v],ae=Kz[F][v]||Kz[F][$],K=v in ZT.styles?v:null;return ae||K||null}const Dkt={[wp]:Object.keys(N8[wp]),[Fv]:Object.keys(N8[Fv]),[Lv]:Object.keys(N8[Lv])};function gre(v){let E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:F=!1}=E,$={[wp]:"".concat(uo.cssPrefix,"-").concat(wp),[Fv]:"".concat(uo.cssPrefix,"-").concat(Fv),[Lv]:"".concat(uo.cssPrefix,"-").concat(Lv)};let ae=null,K=wp;const je=RTt.filter(rt=>rt!==zBe);je.forEach(rt=>{(v.includes($[rt])||v.some(wt=>Dkt[rt].includes(wt)))&&(K=rt)});const Ye=v.reduce((rt,wt)=>{const Lt=Ekt(uo.cssPrefix,wt);if(P8[wt]?(wt=Tkt[K].includes(wt)?rkt[K][wt]:wt,ae=wt,rt.prefix=wt):kkt[K].indexOf(wt)>-1?(ae=wt,rt.prefix=mre(wt,{family:K})):Lt?rt.iconName=Lt:wt!==uo.replacementClass&&!je.some(Rt=>wt===$[Rt])&&rt.rest.push(wt),!F&&rt.prefix&&rt.iconName){const Rt=ae==="fa"?oJe(rt.iconName):{},Xe=WE(rt.prefix,rt.iconName);Rt.prefix&&(ae=null),rt.iconName=Rt.iconName||Xe||rt.iconName,rt.prefix=Rt.prefix||rt.prefix,rt.prefix==="far"&&!P8.far&&P8.fas&&!uo.autoFetchSvg&&(rt.prefix="fas")}return rt},mbe());return(v.includes("fa-brands")||v.includes("fab"))&&(Ye.prefix="fab"),(v.includes("fa-duotone")||v.includes("fad"))&&(Ye.prefix="fad"),!Ye.prefix&&K===Fv&&(P8.fass||uo.autoFetchSvg)&&(Ye.prefix="fass",Ye.iconName=WE(Ye.prefix,Ye.iconName)||Ye.iconName),!Ye.prefix&&K===Lv&&(P8.fasds||uo.autoFetchSvg)&&(Ye.prefix="fasds",Ye.iconName=WE(Ye.prefix,Ye.iconName)||Ye.iconName),(Ye.prefix==="fa"||ae==="fa")&&(Ye.prefix=$E()||"fas"),Ye}class Akt{constructor(){this.definitions={}}add(){for(var E=arguments.length,F=new Array(E),$=0;${this.definitions[K]={...this.definitions[K]||{},...ae[K]},P2e(K,ae[K]);const je=N8[wp][K];je&&P2e(je,ae[K]),aJe()})}reset(){this.definitions={}}_pullDefinitions(E,F){const $=F.prefix&&F.iconName&&F.icon?{0:F}:F;return Object.keys($).map(ae=>{const{prefix:K,iconName:je,icon:Ye}=$[ae],rt=Ye[2];E[K]||(E[K]={}),rt.length>0&&rt.forEach(wt=>{typeof wt=="string"&&(E[K][wt]=Ye)}),E[K][je]=Ye}),E}}let BRe=[],mO={};const SO={},Nkt=Object.keys(SO);function Ikt(v,E){let{mixoutsTo:F}=E;return BRe=v,mO={},Object.keys(SO).forEach($=>{Nkt.indexOf($)===-1&&delete SO[$]}),BRe.forEach($=>{const ae=$.mixout?$.mixout():{};if(Object.keys(ae).forEach(K=>{typeof ae[K]=="function"&&(F[K]=ae[K]),typeof ae[K]=="object"&&Object.keys(ae[K]).forEach(je=>{F[K]||(F[K]={}),F[K][je]=ae[K][je]})}),$.hooks){const K=$.hooks();Object.keys(K).forEach(je=>{mO[je]||(mO[je]=[]),mO[je].push(K[je])})}$.provides&&$.provides(SO)}),F}function w2e(v,E){for(var F=arguments.length,$=new Array(F>2?F-2:0),ae=2;ae{E=je.apply(null,[E,...$])}),E}function F8(v){for(var E=arguments.length,F=new Array(E>1?E-1:0),$=1;${K.apply(null,F)})}function XE(){const v=arguments[0],E=Array.prototype.slice.call(arguments,1);return SO[v]?SO[v].apply(null,E):void 0}function D2e(v){v.prefix==="fa"&&(v.prefix="fas");let{iconName:E}=v;const F=v.prefix||$E();if(E)return E=WE(F,E)||E,RRe(cJe.definitions,F,E)||RRe(ZT.styles,F,E)}const cJe=new Akt,Okt=()=>{uo.autoReplaceSvg=!1,uo.observeMutations=!1,F8("noAuto")},Fkt={i2svg:function(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return k6?(F8("beforeI2svg",v),XE("pseudoElements2svg",v),XE("i2svg",v)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:E}=v;uo.autoReplaceSvg===!1&&(uo.autoReplaceSvg=!0),uo.observeMutations=!0,vkt(()=>{Mkt({autoReplaceSvgRoot:E}),F8("watch",v)})}},Lkt={icon:v=>{if(v===null)return null;if(typeof v=="object"&&v.prefix&&v.iconName)return{prefix:v.prefix,iconName:WE(v.prefix,v.iconName)||v.iconName};if(Array.isArray(v)&&v.length===2){const E=v[1].indexOf("fa-")===0?v[1].slice(3):v[1],F=mre(v[0]);return{prefix:F,iconName:WE(F,E)||E}}if(typeof v=="string"&&(v.indexOf("".concat(uo.cssPrefix,"-"))>-1||v.match(ikt))){const E=gre(v.split(" "),{skipLookups:!0});return{prefix:E.prefix||$E(),iconName:WE(E.prefix,E.iconName)||E.iconName}}if(typeof v=="string"){const E=$E();return{prefix:E,iconName:WE(E,v)||v}}}},Mv={noAuto:Okt,config:uo,dom:Fkt,parse:Lkt,library:cJe,findIconDefinition:D2e,toHtml:iU},Mkt=function(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:E=up}=v;(Object.keys(ZT.styles).length>0||uo.autoFetchSvg)&&k6&&uo.autoReplaceSvg&&Mv.dom.i2svg({node:E})};function hre(v,E){return Object.defineProperty(v,"abstract",{get:E}),Object.defineProperty(v,"html",{get:function(){return v.abstract.map(F=>iU(F))}}),Object.defineProperty(v,"node",{get:function(){if(!k6)return;const F=up.createElement("div");return F.innerHTML=v.html,F.children}}),v}function Rkt(v){let{children:E,main:F,mask:$,attributes:ae,styles:K,transform:je}=v;if(fbe(je)&&F.found&&!$.found){const{width:Ye,height:rt}=F,wt={x:Ye/rt/2,y:.5};ae.style=dre({...K,"transform-origin":"".concat(wt.x+je.x/16,"em ").concat(wt.y+je.y/16,"em")})}return[{tag:"svg",attributes:ae,children:E}]}function jkt(v){let{prefix:E,iconName:F,children:$,attributes:ae,symbol:K}=v;const je=K===!0?"".concat(E,"-").concat(uo.cssPrefix,"-").concat(F):K;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:{...ae,id:je},children:$}]}]}function gbe(v){const{icons:{main:E,mask:F},prefix:$,iconName:ae,transform:K,symbol:je,title:Ye,maskId:rt,titleId:wt,extra:Lt,watchable:Rt=!1}=v,{width:Xe,height:dt}=F.found?F:E,bs=$==="fak",li=[uo.replacementClass,ae?"".concat(uo.cssPrefix,"-").concat(ae):""].filter(Cn=>Lt.classes.indexOf(Cn)===-1).filter(Cn=>Cn!==""||!!Cn).concat(Lt.classes).join(" ");let Js={children:[],attributes:{...Lt.attributes,"data-prefix":$,"data-icon":ae,class:li,role:Lt.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(Xe," ").concat(dt)}};const Yn=bs&&!~Lt.classes.indexOf("fa-fw")?{width:"".concat(Xe/dt*16*.0625,"em")}:{};Rt&&(Js.attributes[O8]=""),Ye&&(Js.children.push({tag:"title",attributes:{id:Js.attributes["aria-labelledby"]||"title-".concat(wt||eU())},children:[Ye]}),delete Js.attributes.title);const ii={...Js,prefix:$,iconName:ae,main:E,mask:F,maskId:rt,transform:K,symbol:je,styles:{...Yn,...Lt.styles}},{children:hs,attributes:Pn}=F.found&&E.found?XE("generateAbstractMask",ii)||{children:[],attributes:{}}:XE("generateAbstractIcon",ii)||{children:[],attributes:{}};return ii.children=hs,ii.attributes=Pn,je?jkt(ii):Rkt(ii)}function JRe(v){const{content:E,width:F,height:$,transform:ae,title:K,extra:je,watchable:Ye=!1}=v,rt={...je.attributes,...K?{title:K}:{},class:je.classes.join(" ")};Ye&&(rt[O8]="");const wt={...je.styles};fbe(ae)&&(wt.transform=gkt({transform:ae,startCentered:!0,width:F,height:$}),wt["-webkit-transform"]=wt.transform);const Lt=dre(wt);Lt.length>0&&(rt.style=Lt);const Rt=[];return Rt.push({tag:"span",attributes:rt,children:[E]}),K&&Rt.push({tag:"span",attributes:{class:"sr-only"},children:[K]}),Rt}function Bkt(v){const{content:E,title:F,extra:$}=v,ae={...$.attributes,...F?{title:F}:{},class:$.classes.join(" ")},K=dre($.styles);K.length>0&&(ae.style=K);const je=[];return je.push({tag:"span",attributes:ae,children:[E]}),F&&je.push({tag:"span",attributes:{class:"sr-only"},children:[F]}),je}const{styles:e2e}=ZT;function A2e(v){const E=v[0],F=v[1],[$]=v.slice(4);let ae=null;return Array.isArray($)?ae={tag:"g",attributes:{class:"".concat(uo.cssPrefix,"-").concat(Yve.GROUP)},children:[{tag:"path",attributes:{class:"".concat(uo.cssPrefix,"-").concat(Yve.SECONDARY),fill:"currentColor",d:$[0]}},{tag:"path",attributes:{class:"".concat(uo.cssPrefix,"-").concat(Yve.PRIMARY),fill:"currentColor",d:$[1]}}]}:ae={tag:"path",attributes:{fill:"currentColor",d:$}},{found:!0,width:E,height:F,icon:ae}}const Jkt={found:!1,width:512,height:512};function zkt(v,E){!HBe&&!uo.showMissingIcons&&v&&console.error('Icon with name "'.concat(v,'" and prefix "').concat(E,'" is missing.'))}function N2e(v,E){let F=E;return E==="fa"&&uo.styleDefault!==null&&(E=$E()),new Promise(($,ae)=>{if(F==="fa"){const K=oJe(v)||{};v=K.iconName||v,E=K.prefix||E}if(v&&E&&e2e[E]&&e2e[E][v]){const K=e2e[E][v];return $(A2e(K))}zkt(v,E),$({...Jkt,icon:uo.showMissingIcons&&v?XE("missingIconAbstract")||{}:{}})})}const zRe=()=>{},I2e=uo.measurePerformance&&Mne&&Mne.mark&&Mne.measure?Mne:{mark:zRe,measure:zRe},Oz='FA "6.6.0"',Ukt=v=>(I2e.mark("".concat(Oz," ").concat(v," begins")),()=>lJe(v)),lJe=v=>{I2e.mark("".concat(Oz," ").concat(v," ends")),I2e.measure("".concat(Oz," ").concat(v),"".concat(Oz," ").concat(v," begins"),"".concat(Oz," ").concat(v," ends"))};var hbe={begin:Ukt,end:lJe};const zne=()=>{};function URe(v){return typeof(v.getAttribute?v.getAttribute(O8):null)=="string"}function Vkt(v){const E=v.getAttribute?v.getAttribute(lbe):null,F=v.getAttribute?v.getAttribute(ube):null;return E&&F}function Wkt(v){return v&&v.classList&&v.classList.contains&&v.classList.contains(uo.replacementClass)}function qkt(){return uo.autoReplaceSvg===!0?Une.replace:Une[uo.autoReplaceSvg]||Une.replace}function Hkt(v){return up.createElementNS("http://www.w3.org/2000/svg",v)}function Gkt(v){return up.createElement(v)}function uJe(v){let E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:F=v.tag==="svg"?Hkt:Gkt}=E;if(typeof v=="string")return up.createTextNode(v);const $=F(v.tag);return Object.keys(v.attributes||[]).forEach(function(K){$.setAttribute(K,v.attributes[K])}),(v.children||[]).forEach(function(K){$.appendChild(uJe(K,{ceFn:F}))}),$}function $kt(v){let E=" ".concat(v.outerHTML," ");return E="".concat(E,"Font Awesome fontawesome.com "),E}const Une={replace:function(v){const E=v[0];if(E.parentNode)if(v[1].forEach(F=>{E.parentNode.insertBefore(uJe(F),E)}),E.getAttribute(O8)===null&&uo.keepOriginalSource){let F=up.createComment($kt(E));E.parentNode.replaceChild(F,E)}else E.remove()},nest:function(v){const E=v[0],F=v[1];if(~_be(E).indexOf(uo.replacementClass))return Une.replace(v);const $=new RegExp("".concat(uo.cssPrefix,"-.*"));if(delete F[0].attributes.id,F[0].attributes.class){const K=F[0].attributes.class.split(" ").reduce((je,Ye)=>(Ye===uo.replacementClass||Ye.match($)?je.toSvg.push(Ye):je.toNode.push(Ye),je),{toNode:[],toSvg:[]});F[0].attributes.class=K.toSvg.join(" "),K.toNode.length===0?E.removeAttribute("class"):E.setAttribute("class",K.toNode.join(" "))}const ae=F.map(K=>iU(K)).join(` +`);E.setAttribute(O8,""),E.innerHTML=ae}};function VRe(v){v()}function _Je(v,E){const F=typeof E=="function"?E:zne;if(v.length===0)F();else{let $=VRe;uo.mutateApproach===tkt&&($=GE.requestAnimationFrame||VRe),$(()=>{const ae=qkt(),K=hbe.begin("mutate");v.map(ae),K(),F()})}}let ybe=!1;function fJe(){ybe=!0}function O2e(){ybe=!1}let Qne=null;function WRe(v){if(!IRe||!uo.observeMutations)return;const{treeCallback:E=zne,nodeCallback:F=zne,pseudoElementsCallback:$=zne,observeMutationsRoot:ae=up}=v;Qne=new IRe(K=>{if(ybe)return;const je=$E();PO(K).forEach(Ye=>{if(Ye.type==="childList"&&Ye.addedNodes.length>0&&!URe(Ye.addedNodes[0])&&(uo.searchPseudoElements&&$(Ye.target),E(Ye.target)),Ye.type==="attributes"&&Ye.target.parentNode&&uo.searchPseudoElements&&$(Ye.target.parentNode),Ye.type==="attributes"&&URe(Ye.target)&&~okt.indexOf(Ye.attributeName))if(Ye.attributeName==="class"&&Vkt(Ye.target)){const{prefix:rt,iconName:wt}=gre(_be(Ye.target));Ye.target.setAttribute(lbe,rt||je),wt&&Ye.target.setAttribute(ube,wt)}else Wkt(Ye.target)&&F(Ye.target)})}),k6&&Qne.observe(ae,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function Xkt(){Qne&&Qne.disconnect()}function Qkt(v){const E=v.getAttribute("style");let F=[];return E&&(F=E.split(";").reduce(($,ae)=>{const K=ae.split(":"),je=K[0],Ye=K.slice(1);return je&&Ye.length>0&&($[je]=Ye.join(":").trim()),$},{})),F}function Ykt(v){const E=v.getAttribute("data-prefix"),F=v.getAttribute("data-icon"),$=v.innerText!==void 0?v.innerText.trim():"";let ae=gre(_be(v));return ae.prefix||(ae.prefix=$E()),E&&F&&(ae.prefix=E,ae.iconName=F),ae.iconName&&ae.prefix||(ae.prefix&&$.length>0&&(ae.iconName=Pkt(ae.prefix,v.innerText)||dbe(ae.prefix,E2e(v.innerText))),!ae.iconName&&uo.autoFetchSvg&&v.firstChild&&v.firstChild.nodeType===Node.TEXT_NODE&&(ae.iconName=v.firstChild.data)),ae}function Zkt(v){const E=PO(v.attributes).reduce((ae,K)=>(ae.name!=="class"&&ae.name!=="style"&&(ae[K.name]=K.value),ae),{}),F=v.getAttribute("title"),$=v.getAttribute("data-fa-title-id");return uo.autoA11y&&(F?E["aria-labelledby"]="".concat(uo.replacementClass,"-title-").concat($||eU()):(E["aria-hidden"]="true",E.focusable="false")),E}function Kkt(){return{iconName:null,title:null,titleId:null,prefix:null,transform:YT,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function qRe(v){let E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:F,prefix:$,rest:ae}=Ykt(v),K=Zkt(v),je=w2e("parseNodeAttributes",{},v);let Ye=E.styleParser?Qkt(v):[];return{iconName:F,title:v.getAttribute("title"),titleId:v.getAttribute("data-fa-title-id"),prefix:$,transform:YT,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:ae,styles:Ye,attributes:K},...je}}const{styles:eCt}=ZT;function pJe(v){const E=uo.autoReplaceSvg==="nest"?qRe(v,{styleParser:!1}):qRe(v);return~E.extra.classes.indexOf(XBe)?XE("generateLayersText",v,E):XE("generateSvgReplacementMutation",v,E)}let ek=new Set;GBe.map(v=>{ek.add("fa-".concat(v))});Object.keys(A8[wp]).map(ek.add.bind(ek));Object.keys(A8[Fv]).map(ek.add.bind(ek));Object.keys(A8[Lv]).map(ek.add.bind(ek));ek=[...ek];function HRe(v){let E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!k6)return Promise.resolve();const F=up.documentElement.classList,$=Lt=>F.add("".concat(LRe,"-").concat(Lt)),ae=Lt=>F.remove("".concat(LRe,"-").concat(Lt)),K=uo.autoFetchSvg?ek:GBe.map(Lt=>"fa-".concat(Lt)).concat(Object.keys(eCt));K.includes("fa")||K.push("fa");const je=[".".concat(XBe,":not([").concat(O8,"])")].concat(K.map(Lt=>".".concat(Lt,":not([").concat(O8,"])"))).join(", ");if(je.length===0)return Promise.resolve();let Ye=[];try{Ye=PO(v.querySelectorAll(je))}catch{}if(Ye.length>0)$("pending"),ae("complete");else return Promise.resolve();const rt=hbe.begin("onTree"),wt=Ye.reduce((Lt,Rt)=>{try{const Xe=pJe(Rt);Xe&&Lt.push(Xe)}catch(Xe){HBe||Xe.name==="MissingIcon"&&console.error(Xe)}return Lt},[]);return new Promise((Lt,Rt)=>{Promise.all(wt).then(Xe=>{_Je(Xe,()=>{$("active"),$("complete"),ae("pending"),typeof E=="function"&&E(),rt(),Lt()})}).catch(Xe=>{rt(),Rt(Xe)})})}function tCt(v){let E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;pJe(v).then(F=>{F&&_Je([F],E)})}function nCt(v){return function(E){let F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const $=(E||{}).icon?E:D2e(E||{});let{mask:ae}=F;return ae&&(ae=(ae||{}).icon?ae:D2e(ae||{})),v($,{...F,mask:ae})}}const rCt=function(v){let E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:F=YT,symbol:$=!1,mask:ae=null,maskId:K=null,title:je=null,titleId:Ye=null,classes:rt=[],attributes:wt={},styles:Lt={}}=E;if(!v)return;const{prefix:Rt,iconName:Xe,icon:dt}=v;return hre({type:"icon",...v},()=>(F8("beforeDOMElementCreation",{iconDefinition:v,params:E}),uo.autoA11y&&(je?wt["aria-labelledby"]="".concat(uo.replacementClass,"-title-").concat(Ye||eU()):(wt["aria-hidden"]="true",wt.focusable="false")),gbe({icons:{main:A2e(dt),mask:ae?A2e(ae.icon):{found:!1,width:null,height:null,icon:{}}},prefix:Rt,iconName:Xe,transform:{...YT,...F},symbol:$,title:je,maskId:K,titleId:Ye,extra:{attributes:wt,styles:Lt,classes:rt}})))};var iCt={mixout(){return{icon:nCt(rCt)}},hooks(){return{mutationObserverCallbacks(v){return v.treeCallback=HRe,v.nodeCallback=tCt,v}}},provides(v){v.i2svg=function(E){const{node:F=up,callback:$=()=>{}}=E;return HRe(F,$)},v.generateSvgReplacementMutation=function(E,F){const{iconName:$,title:ae,titleId:K,prefix:je,transform:Ye,symbol:rt,mask:wt,maskId:Lt,extra:Rt}=F;return new Promise((Xe,dt)=>{Promise.all([N2e($,je),wt.iconName?N2e(wt.iconName,wt.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(bs=>{let[li,Js]=bs;Xe([E,gbe({icons:{main:li,mask:Js},prefix:je,iconName:$,transform:Ye,symbol:rt,maskId:Lt,title:ae,titleId:K,extra:Rt,watchable:!0})])}).catch(dt)})},v.generateAbstractIcon=function(E){let{children:F,attributes:$,main:ae,transform:K,styles:je}=E;const Ye=dre(je);Ye.length>0&&($.style=Ye);let rt;return fbe(K)&&(rt=XE("generateAbstractTransformGrouping",{main:ae,transform:K,containerWidth:ae.width,iconWidth:ae.width})),F.push(rt||ae.icon),{children:F,attributes:$}}}},sCt={mixout(){return{layer(v){let E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:F=[]}=E;return hre({type:"layer"},()=>{F8("beforeDOMElementCreation",{assembler:v,params:E});let $=[];return v(ae=>{Array.isArray(ae)?ae.map(K=>{$=$.concat(K.abstract)}):$=$.concat(ae.abstract)}),[{tag:"span",attributes:{class:["".concat(uo.cssPrefix,"-layers"),...F].join(" ")},children:$}]})}}}},aCt={mixout(){return{counter(v){let E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:F=null,classes:$=[],attributes:ae={},styles:K={}}=E;return hre({type:"counter",content:v},()=>(F8("beforeDOMElementCreation",{content:v,params:E}),Bkt({content:v.toString(),title:F,extra:{attributes:ae,styles:K,classes:["".concat(uo.cssPrefix,"-layers-counter"),...$]}})))}}}},oCt={mixout(){return{text(v){let E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:F=YT,title:$=null,classes:ae=[],attributes:K={},styles:je={}}=E;return hre({type:"text",content:v},()=>(F8("beforeDOMElementCreation",{content:v,params:E}),JRe({content:v,transform:{...YT,...F},title:$,extra:{attributes:K,styles:je,classes:["".concat(uo.cssPrefix,"-layers-text"),...ae]}})))}}},provides(v){v.generateLayersText=function(E,F){const{title:$,transform:ae,extra:K}=F;let je=null,Ye=null;if(JBe){const rt=parseInt(getComputedStyle(E).fontSize,10),wt=E.getBoundingClientRect();je=wt.width/rt,Ye=wt.height/rt}return uo.autoA11y&&!$&&(K.attributes["aria-hidden"]="true"),Promise.resolve([E,JRe({content:E.innerHTML,width:je,height:Ye,transform:ae,title:$,extra:K,watchable:!0})])}}};const cCt=new RegExp('"',"ug"),GRe=[1105920,1112319],$Re={FontAwesome:{normal:"fas",400:"fas"},...VTt,...UTt,...YTt},F2e=Object.keys($Re).reduce((v,E)=>(v[E.toLowerCase()]=$Re[E],v),{}),lCt=Object.keys(F2e).reduce((v,E)=>{const F=F2e[E];return v[E]=F[900]||[...Object.entries(F)][0][1],v},{});function uCt(v){const E=v.replace(cCt,""),F=Skt(E,0),$=F>=GRe[0]&&F<=GRe[1],ae=E.length===2?E[0]===E[1]:!1;return{value:E2e(ae?E[0]:E),isSecondary:$||ae}}function _Ct(v,E){const F=v.replace(/^['"]|['"]$/g,"").toLowerCase(),$=parseInt(E),ae=isNaN($)?"normal":$;return(F2e[F]||{})[ae]||lCt[F]}function XRe(v,E){const F="".concat(ekt).concat(E.replace(":","-"));return new Promise(($,ae)=>{if(v.getAttribute(F)!==null)return $();const je=PO(v.children).filter(Xe=>Xe.getAttribute(x2e)===E)[0],Ye=GE.getComputedStyle(v,E),rt=Ye.getPropertyValue("font-family"),wt=rt.match(skt),Lt=Ye.getPropertyValue("font-weight"),Rt=Ye.getPropertyValue("content");if(je&&!wt)return v.removeChild(je),$();if(wt&&Rt!=="none"&&Rt!==""){const Xe=Ye.getPropertyValue("content");let dt=_Ct(rt,Lt);const{value:bs,isSecondary:li}=uCt(Xe),Js=wt[0].startsWith("FontAwesome");let Yn=dbe(dt,bs),ii=Yn;if(Js){const hs=wkt(bs);hs.iconName&&hs.prefix&&(Yn=hs.iconName,dt=hs.prefix)}if(Yn&&!li&&(!je||je.getAttribute(lbe)!==dt||je.getAttribute(ube)!==ii)){v.setAttribute(F,ii),je&&v.removeChild(je);const hs=Kkt(),{extra:Pn}=hs;Pn.attributes[x2e]=E,N2e(Yn,dt).then(Cn=>{const Ro=gbe({...hs,icons:{main:Cn,mask:mbe()},prefix:dt,iconName:ii,extra:Pn,watchable:!0}),Gs=up.createElementNS("http://www.w3.org/2000/svg","svg");E==="::before"?v.insertBefore(Gs,v.firstChild):v.appendChild(Gs),Gs.outerHTML=Ro.map(lf=>iU(lf)).join(` +`),v.removeAttribute(F),$()}).catch(ae)}else $()}else $()})}function fCt(v){return Promise.all([XRe(v,"::before"),XRe(v,"::after")])}function pCt(v){return v.parentNode!==document.head&&!~nkt.indexOf(v.tagName.toUpperCase())&&!v.getAttribute(x2e)&&(!v.parentNode||v.parentNode.tagName!=="svg")}function QRe(v){if(k6)return new Promise((E,F)=>{const $=PO(v.querySelectorAll("*")).filter(pCt).map(fCt),ae=hbe.begin("searchPseudoElements");fJe(),Promise.all($).then(()=>{ae(),O2e(),E()}).catch(()=>{ae(),O2e(),F()})})}var dCt={hooks(){return{mutationObserverCallbacks(v){return v.pseudoElementsCallback=QRe,v}}},provides(v){v.pseudoElements2svg=function(E){const{node:F=up}=E;uo.searchPseudoElements&&QRe(F)}}};let YRe=!1;var mCt={mixout(){return{dom:{unwatch(){fJe(),YRe=!0}}}},hooks(){return{bootstrap(){WRe(w2e("mutationObserverCallbacks",{}))},noAuto(){Xkt()},watch(v){const{observeMutationsRoot:E}=v;YRe?O2e():WRe(w2e("mutationObserverCallbacks",{observeMutationsRoot:E}))}}}};const ZRe=v=>{let E={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return v.toLowerCase().split(" ").reduce((F,$)=>{const ae=$.toLowerCase().split("-"),K=ae[0];let je=ae.slice(1).join("-");if(K&&je==="h")return F.flipX=!0,F;if(K&&je==="v")return F.flipY=!0,F;if(je=parseFloat(je),isNaN(je))return F;switch(K){case"grow":F.size=F.size+je;break;case"shrink":F.size=F.size-je;break;case"left":F.x=F.x-je;break;case"right":F.x=F.x+je;break;case"up":F.y=F.y-je;break;case"down":F.y=F.y+je;break;case"rotate":F.rotate=F.rotate+je;break}return F},E)};var gCt={mixout(){return{parse:{transform:v=>ZRe(v)}}},hooks(){return{parseNodeAttributes(v,E){const F=E.getAttribute("data-fa-transform");return F&&(v.transform=ZRe(F)),v}}},provides(v){v.generateAbstractTransformGrouping=function(E){let{main:F,transform:$,containerWidth:ae,iconWidth:K}=E;const je={transform:"translate(".concat(ae/2," 256)")},Ye="translate(".concat($.x*32,", ").concat($.y*32,") "),rt="scale(".concat($.size/16*($.flipX?-1:1),", ").concat($.size/16*($.flipY?-1:1),") "),wt="rotate(".concat($.rotate," 0 0)"),Lt={transform:"".concat(Ye," ").concat(rt," ").concat(wt)},Rt={transform:"translate(".concat(K/2*-1," -256)")},Xe={outer:je,inner:Lt,path:Rt};return{tag:"g",attributes:{...Xe.outer},children:[{tag:"g",attributes:{...Xe.inner},children:[{tag:F.icon.tag,children:F.icon.children,attributes:{...F.icon.attributes,...Xe.path}}]}]}}}};const t2e={x:0,y:0,width:"100%",height:"100%"};function KRe(v){let E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return v.attributes&&(v.attributes.fill||E)&&(v.attributes.fill="black"),v}function hCt(v){return v.tag==="g"?v.children:[v]}var yCt={hooks(){return{parseNodeAttributes(v,E){const F=E.getAttribute("data-fa-mask"),$=F?gre(F.split(" ").map(ae=>ae.trim())):mbe();return $.prefix||($.prefix=$E()),v.mask=$,v.maskId=E.getAttribute("data-fa-mask-id"),v}}},provides(v){v.generateAbstractMask=function(E){let{children:F,attributes:$,main:ae,mask:K,maskId:je,transform:Ye}=E;const{width:rt,icon:wt}=ae,{width:Lt,icon:Rt}=K,Xe=mkt({transform:Ye,containerWidth:Lt,iconWidth:rt}),dt={tag:"rect",attributes:{...t2e,fill:"white"}},bs=wt.children?{children:wt.children.map(KRe)}:{},li={tag:"g",attributes:{...Xe.inner},children:[KRe({tag:wt.tag,attributes:{...wt.attributes,...Xe.path},...bs})]},Js={tag:"g",attributes:{...Xe.outer},children:[li]},Yn="mask-".concat(je||eU()),ii="clip-".concat(je||eU()),hs={tag:"mask",attributes:{...t2e,id:Yn,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"},children:[dt,Js]},Pn={tag:"defs",children:[{tag:"clipPath",attributes:{id:ii},children:hCt(Rt)},hs]};return F.push(Pn,{tag:"rect",attributes:{fill:"currentColor","clip-path":"url(#".concat(ii,")"),mask:"url(#".concat(Yn,")"),...t2e}}),{children:F,attributes:$}}}},vCt={provides(v){let E=!1;GE.matchMedia&&(E=GE.matchMedia("(prefers-reduced-motion: reduce)").matches),v.missingIconAbstract=function(){const F=[],$={fill:"currentColor"},ae={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};F.push({tag:"path",attributes:{...$,d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}});const K={...ae,attributeName:"opacity"},je={tag:"circle",attributes:{...$,cx:"256",cy:"364",r:"28"},children:[]};return E||je.children.push({tag:"animate",attributes:{...ae,attributeName:"r",values:"28;14;28;28;14;28;"}},{tag:"animate",attributes:{...K,values:"1;0;1;1;0;1;"}}),F.push(je),F.push({tag:"path",attributes:{...$,opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"},children:E?[]:[{tag:"animate",attributes:{...K,values:"1;0;0;0;0;1;"}}]}),E||F.push({tag:"path",attributes:{...$,opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"},children:[{tag:"animate",attributes:{...K,values:"0;0;1;1;0;0;"}}]}),{tag:"g",attributes:{class:"missing"},children:F}}}},bCt={hooks(){return{parseNodeAttributes(v,E){const F=E.getAttribute("data-fa-symbol"),$=F===null?!1:F===""?!0:F;return v.symbol=$,v}}}},SCt=[ykt,iCt,sCt,aCt,oCt,dCt,mCt,gCt,yCt,vCt,bCt];Ikt(SCt,{mixoutsTo:Mv});Mv.noAuto;Mv.config;Mv.library;Mv.dom;const L2e=Mv.parse;Mv.findIconDefinition;Mv.toHtml;const xCt=Mv.icon;Mv.layer;Mv.text;Mv.counter;function eje(v,E){var F=Object.keys(v);if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(v);E&&($=$.filter(function(ae){return Object.getOwnPropertyDescriptor(v,ae).enumerable})),F.push.apply(F,$)}return F}function y6(v){for(var E=1;E=0)continue;F[$]=v[$]}return F}function ECt(v,E){if(v==null)return{};var F=CCt(v,E),$,ae;if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(v);for(ae=0;ae=0)&&Object.prototype.propertyIsEnumerable.call(v,$)&&(F[$]=v[$])}return F}var PCt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},dJe={exports:{}};(function(v){(function(E){var F=function(Yn,ii,hs){if(!wt(ii)||Rt(ii)||Xe(ii)||dt(ii)||rt(ii))return ii;var Pn,Cn=0,Ro=0;if(Lt(ii))for(Pn=[],Ro=ii.length;Cn1&&arguments[1]!==void 0?arguments[1]:{},F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof v=="string")return v;var $=(v.children||[]).map(function(rt){return mJe(rt)}),ae=Object.keys(v.attributes||{}).reduce(function(rt,wt){var Lt=v.attributes[wt];switch(wt){case"class":rt.class=NCt(Lt);break;case"style":rt.style=ACt(Lt);break;default:rt.attrs[wt]=Lt}return rt},{attrs:{},class:{},style:{}});F.class;var K=F.style,je=K===void 0?{}:K,Ye=ECt(F,DCt);return fre(v.tag,y6(y6(y6({},E),{},{class:ae.class,style:y6(y6({},ae.style),je)},ae.attrs),Ye),$)}var gJe=!1;try{gJe=!0}catch{}function ICt(){if(!gJe&&console&&typeof console.error=="function"){var v;(v=console).error.apply(v,arguments)}}function n2e(v,E){return Array.isArray(E)&&E.length>0||!Array.isArray(E)&&E?t1({},v,E):{}}function OCt(v){var E,F=(E={"fa-spin":v.spin,"fa-pulse":v.pulse,"fa-fw":v.fixedWidth,"fa-border":v.border,"fa-li":v.listItem,"fa-inverse":v.inverse,"fa-flip":v.flip===!0,"fa-flip-horizontal":v.flip==="horizontal"||v.flip==="both","fa-flip-vertical":v.flip==="vertical"||v.flip==="both"},t1(t1(t1(t1(t1(t1(t1(t1(t1(t1(E,"fa-".concat(v.size),v.size!==null),"fa-rotate-".concat(v.rotation),v.rotation!==null),"fa-pull-".concat(v.pull),v.pull!==null),"fa-swap-opacity",v.swapOpacity),"fa-bounce",v.bounce),"fa-shake",v.shake),"fa-beat",v.beat),"fa-fade",v.fade),"fa-beat-fade",v.beatFade),"fa-flash",v.flash),t1(t1(E,"fa-spin-pulse",v.spinPulse),"fa-spin-reverse",v.spinReverse));return Object.keys(F).map(function($){return F[$]?$:null}).filter(function($){return $})}function tje(v){if(v&&Yne(v)==="object"&&v.prefix&&v.iconName&&v.icon)return v;if(L2e.icon)return L2e.icon(v);if(v===null)return null;if(Yne(v)==="object"&&v.prefix&&v.iconName)return v;if(Array.isArray(v)&&v.length===2)return{prefix:v[0],iconName:v[1]};if(typeof v=="string")return{prefix:"fas",iconName:v}}var ry=US({name:"FontAwesomeIcon",props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(E){return[!0,!1,"horizontal","vertical","both"].indexOf(E)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},maskId:{type:String,default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(E){return["right","left"].indexOf(E)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(E){return[90,180,270].indexOf(Number.parseInt(E,10))>-1}},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(E){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(E)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},titleId:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beat:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1}},setup:function(E,F){var $=F.attrs,ae=Th(function(){return tje(E.icon)}),K=Th(function(){return n2e("classes",OCt(E))}),je=Th(function(){return n2e("transform",typeof E.transform=="string"?L2e.transform(E.transform):E.transform)}),Ye=Th(function(){return n2e("mask",tje(E.mask))}),rt=Th(function(){return xCt(ae.value,y6(y6(y6(y6({},K.value),je.value),Ye.value),{},{symbol:E.symbol,title:E.title,titleId:E.titleId,maskId:E.maskId}))});D8(rt,function(Lt){if(!Lt)return ICt("Could not find one or more icon(s)",ae.value,Ye.value)},{immediate:!0});var wt=Th(function(){return rt.value?mJe(rt.value.abstract[0],{},$):null});return function(){return wt.value}}});const FCt={prefix:"fab",iconName:"steam",icon:[496,512,[],"f1b6","M496 256c0 137-111.2 248-248.4 248-113.8 0-209.6-76.3-239-180.4l95.2 39.3c6.4 32.1 34.9 56.4 68.9 56.4 39.2 0 71.9-32.4 70.2-73.5l84.5-60.2c52.1 1.3 95.8-40.9 95.8-93.5 0-51.6-42-93.5-93.7-93.5s-93.7 42-93.7 93.5v1.2L176.6 279c-15.5-.9-30.7 3.4-43.5 12.1L0 236.1C10.2 108.4 117.1 8 247.6 8 384.8 8 496 119 496 256zM155.7 384.3l-30.5-12.6a52.79 52.79 0 0 0 27.2 25.8c26.9 11.2 57.8-1.6 69-28.4 5.4-13 5.5-27.3.1-40.3-5.4-13-15.5-23.2-28.5-28.6-12.9-5.4-26.7-5.2-38.9-.6l31.5 13c19.8 8.2 29.2 30.9 20.9 50.7-8.3 19.9-31 29.2-50.8 21zm173.8-129.9c-34.4 0-62.4-28-62.4-62.3s28-62.3 62.4-62.3 62.4 28 62.4 62.3-27.9 62.3-62.4 62.3zm.1-15.6c25.9 0 46.9-21 46.9-46.8 0-25.9-21-46.8-46.9-46.8s-46.9 21-46.9 46.8c.1 25.8 21.1 46.8 46.9 46.8z"]},LCt={class:"page"},MCt={class:"container"},RCt={class:"item"},jCt={class:"flex"},BCt=["value"],JCt={class:"item"},zCt={class:"flex"},UCt=["value"],VCt={class:"item"},WCt={class:"flex justify-start align-center lh-100 py-1"},qCt=["checked"],HCt={class:"item"},GCt={class:"flex justify-start align-center lh-100 py-1"},$Ct=["checked"],XCt={class:"item"},QCt={key:0},YCt=["onClick"],ZCt=["onClick"],KCt=["onClick"],e6t={key:1},t6t=US({__name:"LauncherSettingView",setup(v){const E=["beatmania IIDX INFINITAS","SOUND VOLTEX EXCEED GEAR","GITADORA"];function F(Rt){return window.saucer.call("shellExecute",[Rt.replaceAll("\\","/")])}function $(){return window.laochan.ctx.gameInfos.value}function ae(Rt){Rt.target.type="text"}function K(Rt){Rt.target.type="password"}function je(Rt){xd.config.value&&(xd.config.value.token=Rt.target.value)}function Ye(Rt){xd.config.value&&(xd.config.value.serverUrl=Rt.target.value)}function rt(Rt){xd.config.value&&(xd.config.value.enableConsole=Rt.target.checked)}function wt(Rt){xd.config.value&&(xd.config.value.enableSteamOverlay=Rt.target.checked)}async function Lt(){await xd.saveConfig(),window.laochan.alert.show("已保存启动器设置","#40B681",2e3)}return(Rt,Xe)=>{var dt,bs,li,Js;return cl(),Ul("div",LCt,[hi("div",MCt,[hi("h2",null,[fl(ls(ry),{icon:ls(DTt)},null,8,["icon"]),Xe[2]||(Xe[2]=gu(" 佬缠网设置 "))]),hi("div",RCt,[hi("div",jCt,[hi("h3",null,[fl(ls(ry),{icon:ls(ITt)},null,8,["icon"]),Xe[3]||(Xe[3]=gu(" 登入令牌 "))]),hi("div",null,[hi("button",{class:"btn link",onClick:Xe[0]||(Xe[0]=(...Yn)=>ls(xd).resetToken&&ls(xd).resetToken(...Yn))},"重设为机器码")])]),hi("input",{class:"text-input",type:"password",value:(dt=ls(xd).config.value)==null?void 0:dt.token,onFocus:ae,onBlur:K,onInput:je},null,40,BCt)]),hi("div",JCt,[hi("div",zCt,[hi("h3",null,[fl(ls(ry),{icon:ls(kTt)},null,8,["icon"]),Xe[4]||(Xe[4]=gu(" Bootstrap 地址 "))]),hi("div",null,[hi("button",{class:"btn link",onClick:Xe[1]||(Xe[1]=(...Yn)=>ls(xd).resetServerUrl&&ls(xd).resetServerUrl(...Yn))},"重设为默认地址")])]),hi("input",{class:"text-input",type:"text",value:(bs=ls(xd).config.value)==null?void 0:bs.serverUrl,onInput:Ye},null,40,UCt)]),hi("div",VCt,[hi("h3",null,[fl(ls(ry),{icon:ls(wTt)},null,8,["icon"]),Xe[5]||(Xe[5]=gu(" 调试控制台 "))]),hi("div",WCt,[hi("input",{id:"use-console",type:"checkbox",checked:(li=ls(xd).config.value)==null?void 0:li.enableConsole,onChange:rt},null,40,qCt),Xe[6]||(Xe[6]=hi("label",{for:"use-console"},"启用调试控制台",-1))]),hi("small",null,[fl(ls(ry),{icon:ls(DRe)},null,8,["icon"]),Xe[7]||(Xe[7]=gu("关闭调试控制台可能可以缓解性能问题"))])]),hi("div",HCt,[hi("h3",null,[fl(ls(ry),{icon:ls(FCt)},null,8,["icon"]),Xe[8]||(Xe[8]=gu(" Steam 游戏内覆盖 "))]),hi("div",GCt,[hi("input",{id:"use-steam-overlay",type:"checkbox",checked:(Js=ls(xd).config.value)==null?void 0:Js.enableSteamOverlay,onChange:wt},null,40,$Ct),Xe[9]||(Xe[9]=hi("label",{for:"use-steam-overlay"},"启用 Steam 游戏内覆盖",-1))]),hi("small",null,[fl(ls(ry),{icon:ls(DRe)},null,8,["icon"]),Xe[10]||(Xe[10]=gu("关闭 Steam 游戏内覆盖可能可以缓解性能问题"))])]),hi("div",{class:"flex"},[Xe[11]||(Xe[11]=hi("div",null,null,-1)),hi("button",{class:"btn primary",onClick:Lt},"保存设置")]),Xe[17]||(Xe[17]=hi("hr",null,null,-1)),hi("h2",null,[fl(ls(ry),{icon:ls(NTt)},null,8,["icon"]),Xe[12]||(Xe[12]=gu(" 游戏安装详情 "))]),(cl(),Ul(Og,null,Rne(E,(Yn,ii)=>hi("div",XCt,[hi("h2",null,Iv(Yn),1),$()[ii].installed?(cl(),Ul("div",QCt,[hi("h3",null,[Xe[13]||(Xe[13]=gu("安装路径: ")),hi("a",{class:"path link",onClick:hs=>F($()[ii].install_path)},Iv($()[ii].install_path),9,YCt)]),hi("h3",null,[Xe[14]||(Xe[14]=gu("资源路径: ")),hi("a",{class:"path link",onClick:hs=>F($()[ii].resource_path)},Iv($()[ii].resource_path),9,ZCt)]),hi("h3",null,[Xe[15]||(Xe[15]=gu("游戏版本: ")),hi("a",{class:"path link",onClick:hs=>F($()[ii].game_module_version)},Iv($()[ii].game_module_version),9,KCt)])])):(cl(),Ul("div",e6t,Xe[16]||(Xe[16]=[hi("h3",{class:"gray"},"未安装",-1)])))])),64)),Xe[18]||(Xe[18]=hi("footer",null,[gu(" LAOCHAN EACNET IS A MOD, NOT AFFILIATED WITH KONAMI"),hi("br"),gu(" WE DON'T SUPPORT PIRATED GAME"),hi("br"),gu(" PLEASE SUBSCRIPT TO THE GAME COURSE ")],-1))])])}}}),n6t={class:"page"},r6t={class:"container"},i6t={class:"item"},s6t=["value"],a6t={key:0},o6t={key:1},c6t=["value"],l6t=["value"],u6t={key:0},_6t={class:"item"},f6t=["value"],p6t=["value"],d6t=["value"],m6t={key:0},g6t={key:1},h6t={class:"item"},y6t=["value"],v6t={class:"item"},b6t={class:"flex justify-start align-center lh-100 py-1"},S6t=["checked"],x6t=US({__name:"IIDXSettingView",setup(v){const E=Pp(-5),F=Pp(!1),$=Pp([]),ae=Pp([]),K=Pp(!1),je=Pp(!1),Ye=Pp(!1),rt=Pp(0);EO(async()=>{await ol.loadConfig(),E.value=await window.laochan.checkWasapiDevice();const{devices:Js,avaliable:Yn}=await window.laochan.getAsioDeviceList();$.value=Js,F.value=Yn;const ii=(await window.laochan.queryDisplayModes()).sort((Pn,Cn)=>Pn.hz-Cn.hz),hs=[];for(const Pn of ii){let Cn=hs.find(Gs=>Gs.height==Pn.height&&Gs.width==Pn.width);Cn||(Cn={height:Pn.height,width:Pn.width,good:!1,rates:[]},hs.push(Cn)),Pn.hz>59&&Cn.rates.push(Pn.hz);const Ro=Math.abs(Pn.width/Pn.height-1.777777777777778)<.01;if(Math.abs(Pn.hz-119)<=1){je.value=!0,Ro&&(Cn.good=!0);continue}if(Math.abs(Pn.hz-59)<=1){K.value=!0,Ro&&(Cn.good=!0);continue}}ae.value=hs.map(Pn=>(Pn.rates.sort((Cn,Ro)=>Ro-Cn),Pn)).sort((Pn,Cn)=>Pn.good&&!Cn.good?-1:!Pn.good&&Cn.good?1:Cn.width*Cn.height-Pn.width*Pn.height),rt.value=ae.value.findIndex(Pn=>{var Cn,Ro;return Pn.width==((Cn=ol.config.value)==null?void 0:Cn.resolution.w)&&Pn.height==((Ro=ol.config.value)==null?void 0:Ro.resolution.h)}),rt.value==-1&&(rt.value=0)});function wt(Js){ol.config.value&&(ol.config.value.soundMode=parseInt(Js.target.value))}function Lt(Js){ol.config.value&&(ol.config.value.asioDevice=Js.target.value)}function Rt(Js){ol.config.value&&(ol.config.value.displayMode=parseInt(Js.target.value))}function Xe(Js){if(!ol.config.value)return;rt.value=parseInt(Js.target.value);const Yn=ae.value[rt.value];ol.config.value.resolution.w=Yn.width,ol.config.value.resolution.h=Yn.height}function dt(Js){ol.config.value&&(ol.config.value.language=parseInt(Js.target.value))}function bs(Js){ol.config.value&&(ol.config.value.useGsm=Js.target.checked)}async function li(){await ol.saveConfig(),window.laochan.alert.show("已保存 IIDX 设置","#40B681",2e3)}return(Js,Yn)=>{var ii,hs,Pn,Cn,Ro,Gs,lf;return cl(),Ul("div",n6t,[hi("div",r6t,[hi("h2",null,[fl(ls(ry),{icon:ls(OTt)},null,8,["icon"]),Yn[1]||(Yn[1]=gu(" INFINITAS 额外设置 "))]),hi("div",i6t,[hi("h3",null,[fl(ls(ry),{icon:ls(PTt)},null,8,["icon"]),Yn[2]||(Yn[2]=gu(" 音频输出模式 "))]),hi("select",{class:"text-input",value:(ii=ls(ol).config.value)==null?void 0:ii.soundMode,onChange:wt},Yn[3]||(Yn[3]=[hi("option",{value:"0"},"WASAPI",-1),hi("option",{value:"1"},"ASIO",-1)]),40,s6t),E.value==1?(cl(),Ul("div",a6t,[Yn[4]||(Yn[4]=gu("警告: 当前选择的音频设备不支持 44100 Hz 模式输出, 可能无法正常以 WASAPI 独占模式启动, 请前往")),hi("a",{onClick:Yn[0]||(Yn[0]=(...Do)=>ls(ol).settings&&ls(ol).settings(...Do))},"游戏设置"),Yn[5]||(Yn[5]=gu("关闭 WASAPI 独占模式或切换输出设备。"))])):xh("",!0),E.value<0?(cl(),Ul("div",o6t,"警告: WASAPI 测试失败 ("+Iv(E.value)+"), 游戏很有可能无法启动。",1)):xh("",!0)]),hi("div",{class:Vz(["item optional",{show:((hs=ls(ol).config.value)==null?void 0:hs.soundMode)==ls(MBe).Asio}])},[hi("h3",null,[fl(ls(ry),{icon:ls(CTt)},null,8,["icon"]),Yn[6]||(Yn[6]=gu(" ASIO 输出设备 "))]),hi("select",{class:"text-input",value:(Pn=ls(ol).config.value)==null?void 0:Pn.asioDevice,onChange:Lt},[(cl(!0),Ul(Og,null,Rne($.value,Do=>(cl(),Ul("option",{value:Do},Iv(Do),9,l6t))),256))],40,c6t),F.value?xh("",!0):(cl(),Ul("div",u6t,"警告: 未检测到有效的 ASIO 输出设备, 游戏可能无法正常启动。"))],2),hi("div",_6t,[hi("h3",null,[fl(ls(ry),{icon:ls(FTt)},null,8,["icon"]),Yn[7]||(Yn[7]=gu(" 显示模式 "))]),hi("select",{class:"text-input",value:(Cn=ls(ol).config.value)==null?void 0:Cn.displayMode,onChange:Rt},Yn[8]||(Yn[8]=[hi("option",{value:"0"},"独占全屏",-1),hi("option",{value:"1"},"无边框窗口",-1),hi("option",{value:"2"},"窗口化",-1)]),40,f6t)]),hi("div",{class:Vz(["item optional",{show:((Ro=ls(ol).config.value)==null?void 0:Ro.displayMode)!=ls(LBe).BorderlessWindowed}])},[hi("h3",null,[fl(ls(ry),{icon:ls(LTt)},null,8,["icon"]),Yn[9]||(Yn[9]=gu(" 显示分辨率 "))]),hi("select",{class:"text-input",value:rt.value,onChange:Xe},[(cl(!0),Ul(Og,null,Rne(ae.value,(Do,Ai)=>(cl(),Ul("option",{value:Ai},[Do.good?xh("",!0):(cl(),Ul(Og,{key:0},[gu("(不推荐)")],64)),gu(" "+Iv(Do.width)+"x"+Iv(Do.height)+" ( ",1),(cl(!0),Ul(Og,null,Rne(Do.rates,(su,Qa)=>(cl(),Ul(Og,null,[gu(Iv(su)+" hz",1),Qa!==Do.rates.length-1?(cl(),Ul(Og,{key:0},[gu(", ")],64)):xh("",!0)],64))),256)),Yn[10]||(Yn[10]=gu(" ) "))],8,d6t))),256))],40,p6t),!je.value&&Ye.value?(cl(),Ul("div",m6t,"警告: 显示器不支持 120 Hz 高刷模式, 请使用显卡驱动面板或者 CRU 添加 120 Hz 的刷新率模式, 否则游戏将不会以高刷新率模式启动。")):xh("",!0),!K.value&&!je.value&&!Ye.value?(cl(),Ul("div",g6t,"警告: 显示器不支持游戏所需刷新率 (60Hz/120Hz), 游戏可能出现音画不同步现象或无法启动。")):xh("",!0)],2),hi("div",h6t,[hi("h3",null,[fl(ls(ry),{icon:ls(ETt)},null,8,["icon"]),Yn[11]||(Yn[11]=gu(" 游戏语言 "))]),hi("select",{class:"text-input",value:(Gs=ls(ol).config.value)==null?void 0:Gs.language,onChange:dt},Yn[12]||(Yn[12]=[hi("option",{value:"0"},"日本語",-1),hi("option",{value:"1"},"English",-1),hi("option",{value:"2"},"한국어",-1)]),40,y6t)]),hi("div",v6t,[hi("h3",null,[fl(ls(ry),{icon:ls(TTt)},null,8,["icon"]),Yn[13]||(Yn[13]=gu(" 2DX-GSM by aixxe "))]),hi("div",b6t,[hi("input",{id:"use-gsm",type:"checkbox",checked:(lf=ls(ol).config.value)==null?void 0:lf.useGsm,onChange:bs},null,40,S6t),Yn[14]||(Yn[14]=hi("label",{for:"use-gsm"},"加载 2DX-GSM 模块",-1))])]),hi("div",{class:"flex"},[Yn[15]||(Yn[15]=hi("div",null,null,-1)),hi("button",{class:"btn primary",onClick:li},"保存设置")])]),Yn[16]||(Yn[16]=hi("div",{class:"background"},null,-1))])}}}),T6t=tk(x6t,[["__scopeId","data-v-fbd54f6b"]]),k6t=gxt({history:$St("/"),routes:[{path:"/",name:"home",component:xTt},{path:"/settings",name:"launcher_settings",component:t6t},{path:"/iidx/settings",name:"iidx_settings",component:T6t}]});var nje=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function N6t(v){return v&&v.__esModule&&Object.prototype.hasOwnProperty.call(v,"default")?v.default:v}function C6t(v){if(v.__esModule)return v;var E=v.default;if(typeof E=="function"){var F=function $(){return this instanceof $?Reflect.construct(E,arguments,this.constructor):E.apply(this,arguments)};F.prototype=E.prototype}else F={};return Object.defineProperty(F,"__esModule",{value:!0}),Object.keys(v).forEach(function($){var ae=Object.getOwnPropertyDescriptor(v,$);Object.defineProperty(F,$,ae.get?ae:{enumerable:!0,get:function(){return v[$]}})}),F}function rje(v){throw new Error('Could not dynamically require "'+v+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var E6t={exports:{}};const P6t={},w6t=Object.freeze(Object.defineProperty({__proto__:null,default:P6t},Symbol.toStringTag,{value:"Module"})),m6=C6t(w6t);(function(v){var E={};/*! ***************************************************************************** + Copyright (c) Microsoft Corporation. All rights reserved. + Licensed under the Apache License, Version 2.0 (the "License"); you may not use + this file except in compliance with the License. You may obtain a copy of the + License at http://www.apache.org/licenses/LICENSE-2.0 + + THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED + WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, + MERCHANTABLITY OR NON-INFRINGEMENT. + + See the Apache Version 2.0 License for specific language governing permissions + and limitations under the License. + ***************************************************************************** */var F=(()=>{var $=Object.defineProperty,ae=Object.getOwnPropertyNames,K=(e,t)=>function(){return e&&(t=(0,e[ae(e)[0]])(e=0)),t},je=(e,t)=>function(){return t||(0,e[ae(e)[0]])((t={exports:{}}).exports,t),t.exports},Ye=(e,t)=>{for(var r in t)$(e,r,{get:t[r],enumerable:!0})},rt,wt,Lt,Rt=K({"src/compiler/corePublic.ts"(){rt="5.4",wt="5.4.5",Lt=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(Lt||{})}});function Xe(e){return e?e.length:0}function dt(e,t){if(e)for(let r=0;r=0;r--){const i=t(e[r],r);if(i)return i}}function li(e,t){if(e!==void 0)for(let r=0;r=0;i--){const s=e[i];if(t(s,i))return s}}function Gs(e,t,r){if(e===void 0)return-1;for(let i=r??0;i=0;i--)if(t(e[i],i))return i;return-1}function Do(e,t){for(let r=0;rr(i,t[s]))}function Qa(e,t,r){for(let i=r||0;i{const o=t(s,i);if(o!==void 0){const[c,u]=o;c!==void 0&&u!==void 0&&r.set(c,u)}}),r}function Ks(e,t,r){if(e.has(t))return e.get(t);const i=r();return e.set(t,i),i}function Na(e,t){return e.has(t)?!1:(e.add(t),!0)}function*wu(e){yield e}function $_(e,t,r){let i;if(e){i=[];const s=e.length;let o,c,u=0,f=0;for(;u{const[o,c]=t(s,i);r.set(o,c)}),r}function Pe(e,t){if(e)if(t){for(const r of e)if(t(r))return!0}else return e.length>0;return!1}function Dr(e,t,r){let i;for(let s=0;se[c])}function ea(e,t){const r=[];for(const i of e)Jf(r,i,t);return r}function ks(e,t,r){return e.length===0?[]:e.length===1?e.slice():r?_a(e,t,r):ea(e,t)}function ys(e,t){if(e.length===0)return Ke;let r=e[0];const i=[r];for(let s=1;s0&&(s&=-2),s&2&&i(o,f)>0&&(s&=-3),o=f}return s}function Ac(e,t,r=ly){if(!e||!t)return e===t;if(e.length!==t.length)return!1;for(let i=0;i0&&w.assertGreaterThanOrEqual(r(t[o],t[o-1]),0);t:for(const c=s;sc&&w.assertGreaterThanOrEqual(r(e[s],e[s-1]),0),r(t[o],e[s])){case-1:i.push(t[o]);continue e;case 0:continue e;case 1:continue t}}return i}function gn(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function Gd(e,t){return e===void 0?t:t===void 0?e:Ps(e)?Ps(t)?zn(e,t):gn(e,t):Ps(t)?gn(t,e):[e,t]}function Lg(e,t){return t<0?e.length+t:t}function Mr(e,t,r,i){if(t===void 0||t.length===0)return e;if(e===void 0)return t.slice(r,i);r=r===void 0?0:Lg(t,r),i=i===void 0?t.length:Lg(t,i);for(let s=r;sr(e[i],e[s])||mc(i,s))}function i1(e,t){return e.length===0?e:e.slice().sort(t)}function*sU(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function sy(e,t){const r=rs(e);return r1(e,r,t),r.map(i=>e[i])}function aU(e,t,r,i){for(;r>1),f=r(e[u],u);switch(i(f,t)){case-1:o=u+1;break;case 0:return u;case 1:c=u-1;break}}return~o}function D_(e,t,r,i,s){if(e&&e.length>0){const o=e.length;if(o>0){let c=i===void 0||i<0?0:i;const u=s===void 0||c+s>o-1?o-1:c+s;let f;for(arguments.length<=2?(f=e[c],c++):f=r;c<=u;)f=t(f,e[c],c),c++;return f}}return r}function jo(e,t){return o1.call(e,t)}function DO(e,t){return o1.call(e,t)?e[t]:void 0}function Eh(e){const t=[];for(const r in e)o1.call(e,r)&&t.push(r);return t}function vbe(e){const t=[];do{const r=Object.getOwnPropertyNames(e);for(const i of r)Jf(t,i)}while(e=Object.getPrototypeOf(e));return t}function ik(e){const t=[];for(const r in e)o1.call(e,r)&&t.push(e[r]);return t}function yre(e,t){const r=new Array(e);for(let i=0;i100&&r>t.length>>1){const u=t.length-r;t.copyWithin(0,r),t.length=u,r=0}return c}return{enqueue:s,dequeue:o,isEmpty:i}}function fU(e,t){const r=new Map;let i=0;function*s(){for(const c of r.values())Ps(c)?yield*c:yield c}const o={has(c){const u=e(c);if(!r.has(u))return!1;const f=r.get(u);if(!Ps(f))return t(f,c);for(const g of f)if(t(g,c))return!0;return!1},add(c){const u=e(c);if(r.has(u)){const f=r.get(u);if(Ps(f))Ai(f,c,t)||(f.push(c),i++);else{const g=f;t(g,c)||(r.set(u,[g,c]),i++)}}else r.set(u,c),i++;return this},delete(c){const u=e(c);if(!r.has(u))return!1;const f=r.get(u);if(Ps(f)){for(let g=0;gs(),[Symbol.toStringTag]:r[Symbol.toStringTag]};return o}function Ps(e){return Array.isArray(e)}function sk(e){return Ps(e)?e:[e]}function Ls(e){return typeof e=="string"}function oy(e){return typeof e=="number"}function si(e,t){return e!==void 0&&t(e)?e:void 0}function pa(e,t){return e!==void 0&&t(e)?e:w.fail(`Invalid cast. The supplied value ${e} did not pass the test '${w.getFunctionName(t)}'.`)}function ao(e){}function xm(){return!1}function cy(){return!0}function Rv(){}function dc(e){return e}function Sre(e){return e.toLowerCase()}function jg(e){return Ore.test(e)?e.replace(Ore,Sre):e}function ta(){throw new Error("Not implemented")}function X_(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function Bg(e){const t=new Map;return r=>{const i=`${typeof r}:${r}`;let s=t.get(i);return s===void 0&&!t.has(i)&&(s=e(r),t.set(i,s)),s}}function bbe(e){const t=new WeakMap;return r=>{let i=t.get(r);return i===void 0&&!t.has(r)&&(i=e(r),t.set(r,i)),i}}function xre(e,t){return(...r)=>{let i=t.get(r);return i===void 0&&!t.has(r)&&(i=e(...r),t.set(r,i)),i}}function Sbe(e,t,r,i,s){if(s){const o=[];for(let c=0;cD_(o,(u,f)=>f(u),c)}else return i?o=>i(r(t(e(o)))):r?o=>r(t(e(o))):t?o=>t(e(o)):e?o=>e(o):o=>o}function ly(e,t){return e===t}function jv(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function WS(e,t){return ly(e,t)}function xbe(e,t){return e===t?0:e===void 0?-1:t===void 0?1:et(r,i)===-1?r:i)}function OO(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toUpperCase(),t=t.toUpperCase(),et?1:0)}function Tre(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toLowerCase(),t=t.toLowerCase(),et?1:0)}function p_(e,t){return xbe(e,t)}function E6(e){return e?OO:p_}function kre(){return SU}function Cre(e){SU!==e&&(SU=e,Fre=void 0)}function j8(e,t){return(Fre||(Fre=Cbe(SU)))(e,t)}function Ere(e,t,r,i){return e===t?0:e===void 0?-1:t===void 0?1:i(e[r],t[r])}function s1(e,t){return mc(e?1:0,t?1:0)}function eP(e,t,r){const i=Math.max(2,Math.floor(e.length*.34));let s=Math.floor(e.length*.4)+1,o;for(const c of t){const u=r(c);if(u!==void 0&&Math.abs(u.length-e.length)<=i){if(u===e||u.length<3&&u.toLowerCase()!==e.toLowerCase())continue;const f=PJe(e,u,s-.1);if(f===void 0)continue;w.assert(fr?u-r:1),d=Math.floor(t.length>r+u?r+u:t.length);s[0]=u;let y=u;for(let T=1;Tr)return;const x=i;i=s,s=x}const c=i[t.length];return c>r?void 0:c}function Jc(e,t,r){const i=e.length-t.length;return i>=0&&(r?jv(e.slice(i),t):e.indexOf(t,i)===i)}function P6(e,t){return Jc(e,t)?e.slice(0,e.length-t.length):e}function Pre(e,t){return Jc(e,t)?e.slice(0,e.length-t.length):void 0}function dU(e){let t=e.length;for(let r=t-1;r>0;r--){let i=e.charCodeAt(r);if(i>=48&&i<=57)do--r,i=e.charCodeAt(r);while(r>0&&i>=48&&i<=57);else if(r>4&&(i===110||i===78)){if(--r,i=e.charCodeAt(r),i!==105&&i!==73||(--r,i=e.charCodeAt(r),i!==109&&i!==77))break;--r,i=e.charCodeAt(r)}else break;if(i!==45&&i!==46)break;t=r}return t===e.length?e:e.slice(0,t)}function w6(e,t){for(let r=0;rr===t)}function wJe(e,t){for(let r=0;rs&&(s=c.prefix.length,i=o)}return i}function fs(e,t,r){return r?jv(e.slice(0,t.length),t):e.lastIndexOf(t,0)===0}function tP(e,t){return fs(e,t)?e.substr(t.length):e}function hU(e,t,r=dc){return fs(r(e),r(t))?e.substring(t.length):void 0}function FO({prefix:e,suffix:t},r){return r.length>=e.length+t.length&&fs(r,e)&&Jc(r,t)}function LO(e,t){return r=>e(r)&&t(r)}function Tm(...e){return(...t)=>{let r;for(const i of e)if(r=i(...t),r)return r;return r}}function MO(e){return(...t)=>!e(...t)}function Tbe(e){}function ok(e){return e===void 0?void 0:[e]}function RO(e,t,r,i,s,o){o=o||ao;let c=0,u=0;const f=e.length,g=t.length;let d=!1;for(;c(e[e.None=0]="None",e[e.CaseSensitive=1]="CaseSensitive",e[e.CaseInsensitive=2]="CaseInsensitive",e[e.Both=3]="Both",e))(vU||{}),uy=Array.prototype.at?(e,t)=>e==null?void 0:e.at(t):(e,t)=>{if(e&&(t=Lg(e,t),t(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(bU||{}),Cbe=(()=>{return t;function e(r,i,s){if(r===i)return 0;if(r===void 0)return-1;if(i===void 0)return 1;const o=s(r,i);return o<0?-1:o>0?1:0}function t(r){const i=new Intl.Collator(r,{usage:"sort",sensitivity:"variant"}).compare;return(s,o)=>e(s,o,i)}})()}}),xU,w,AJe=K({"src/compiler/debug.ts"(){ua(),ua(),xU=(e=>(e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",e))(xU||{}),(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function r(cn){return e.currentLogLevel<=cn}e.shouldLog=r;function i(cn,et){e.loggingHost&&r(cn)&&e.loggingHost.log(cn,et)}function s(cn){i(3,cn)}e.log=s,(cn=>{function et(vi){i(1,vi)}cn.error=et;function Jt(vi){i(2,vi)}cn.warn=Jt;function wn(vi){i(3,vi)}cn.log=wn;function ui(vi){i(4,vi)}cn.trace=ui})(s=e.log||(e.log={}));const o={};function c(){return t}e.getAssertionLevel=c;function u(cn){const et=t;if(t=cn,cn>et)for(const Jt of Eh(o)){const wn=o[Jt];wn!==void 0&&e[Jt]!==wn.assertion&&cn>=wn.level&&(e[Jt]=wn,o[Jt]=void 0)}}e.setAssertionLevel=u;function f(cn){return t>=cn}e.shouldAssert=f;function g(cn,et){return f(cn)?!0:(o[et]={level:cn,assertion:e[et]},e[et]=ao,!1)}function d(cn,et){debugger;const Jt=new Error(cn?`Debug Failure. ${cn}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(Jt,et||d),Jt}e.fail=d;function y(cn,et,Jt){return d(`${et||"Unexpected node."}\r +Node ${ye(cn.kind)} was unexpected.`,Jt||y)}e.failBadSyntaxKind=y;function x(cn,et,Jt,wn){cn||(et=et?`False expression: ${et}`:"False expression.",Jt&&(et+=`\r +Verbose Debug Information: `+(typeof Jt=="string"?Jt:Jt())),d(et,wn||x))}e.assert=x;function T(cn,et,Jt,wn,ui){if(cn!==et){const vi=Jt?wn?`${Jt} ${wn}`:Jt:"";d(`Expected ${cn} === ${et}. ${vi}`,ui||T)}}e.assertEqual=T;function C(cn,et,Jt,wn){cn>=et&&d(`Expected ${cn} < ${et}. ${Jt||""}`,wn||C)}e.assertLessThan=C;function N(cn,et,Jt){cn>et&&d(`Expected ${cn} <= ${et}`,Jt||N)}e.assertLessThanOrEqual=N;function D(cn,et,Jt){cn= ${et}`,Jt||D)}e.assertGreaterThanOrEqual=D;function M(cn,et,Jt){cn==null&&d(et,Jt||M)}e.assertIsDefined=M;function V(cn,et,Jt){return M(cn,et,Jt||V),cn}e.checkDefined=V;function G(cn,et,Jt){for(const wn of cn)M(wn,et,Jt||G)}e.assertEachIsDefined=G;function Z(cn,et,Jt){return G(cn,et,Jt||Z),cn}e.checkEachDefined=Z;function z(cn,et="Illegal value:",Jt){const wn=typeof cn=="object"&&jo(cn,"kind")&&jo(cn,"pos")?"SyntaxKind: "+ye(cn.kind):JSON.stringify(cn);return d(`${et} ${wn}`,Jt||z)}e.assertNever=z;function ce(cn,et,Jt,wn){g(1,"assertEachNode")&&x(et===void 0||Pn(cn,et),Jt||"Unexpected node.",()=>`Node array did not pass test '${se(et)}'.`,wn||ce)}e.assertEachNode=ce;function J(cn,et,Jt,wn){g(1,"assertNode")&&x(cn!==void 0&&(et===void 0||et(cn)),Jt||"Unexpected node.",()=>`Node ${ye(cn==null?void 0:cn.kind)} did not pass test '${se(et)}'.`,wn||J)}e.assertNode=J;function ne(cn,et,Jt,wn){g(1,"assertNotNode")&&x(cn===void 0||et===void 0||!et(cn),Jt||"Unexpected node.",()=>`Node ${ye(cn.kind)} should not have passed test '${se(et)}'.`,wn||ne)}e.assertNotNode=ne;function ge(cn,et,Jt,wn){g(1,"assertOptionalNode")&&x(et===void 0||cn===void 0||et(cn),Jt||"Unexpected node.",()=>`Node ${ye(cn==null?void 0:cn.kind)} did not pass test '${se(et)}'.`,wn||ge)}e.assertOptionalNode=ge;function ve(cn,et,Jt,wn){g(1,"assertOptionalToken")&&x(et===void 0||cn===void 0||cn.kind===et,Jt||"Unexpected node.",()=>`Node ${ye(cn==null?void 0:cn.kind)} was not a '${ye(et)}' token.`,wn||ve)}e.assertOptionalToken=ve;function Q(cn,et,Jt){g(1,"assertMissingNode")&&x(cn===void 0,et||"Unexpected node.",()=>`Node ${ye(cn.kind)} was unexpected'.`,Jt||Q)}e.assertMissingNode=Q;function X(cn){}e.type=X;function se(cn){if(typeof cn!="function")return"";if(jo(cn,"name"))return cn.name;{const et=Function.prototype.toString.call(cn),Jt=/^function\s+([\w$]+)\s*\(/.exec(et);return Jt?Jt[1]:""}}e.getFunctionName=se;function pe(cn){return`{ name: ${Hi(cn.escapedName)}; flags: ${Tt(cn.flags)}; declarations: ${Kt(cn.declarations,et=>ye(et.kind))} }`}e.formatSymbol=pe;function we(cn=0,et,Jt){const wn=ie(et);if(cn===0)return wn.length>0&&wn[0][0]===0?wn[0][1]:"0";if(Jt){const ui=[];let vi=cn;for(const[ts,Ds]of wn){if(ts>cn)break;ts!==0&&ts&cn&&(ui.push(Ds),vi&=~ts)}if(vi===0)return ui.join("|")}else for(const[ui,vi]of wn)if(ui===cn)return vi;return cn.toString()}e.formatEnum=we;const fe=new Map;function ie(cn){const et=fe.get(cn);if(et)return et;const Jt=[];for(const ui in cn){const vi=cn[ui];typeof vi=="number"&&Jt.push([vi,ui])}const wn=sy(Jt,(ui,vi)=>mc(ui[0],vi[0]));return fe.set(cn,wn),wn}function ye(cn){return we(cn,zO,!1)}e.formatSyntaxKind=ye;function Ne(cn){return we(cn,eF,!1)}e.formatSnippetKind=Ne;function Ue(cn){return we(cn,ZO,!1)}e.formatScriptKind=Ue;function Se(cn){return we(cn,UO,!0)}e.formatNodeFlags=Se;function Ee(cn){return we(cn,VO,!0)}e.formatModifierFlags=Ee;function Ae(cn){return we(cn,KO,!0)}e.formatTransformFlags=Ae;function Le(cn){return we(cn,tF,!0)}e.formatEmitFlags=Le;function Tt(cn){return we(cn,$O,!0)}e.formatSymbolFlags=Tt;function xe(cn){return we(cn,XO,!0)}e.formatTypeFlags=xe;function ze(cn){return we(cn,YO,!0)}e.formatSignatureFlags=ze;function st(cn){return we(cn,QO,!0)}e.formatObjectFlags=st;function zt(cn){return we(cn,U8,!0)}e.formatFlowFlags=zt;function yt(cn){return we(cn,WO,!0)}e.formatRelationComparisonResult=yt;function $e(cn){return we(cn,qM,!0)}e.formatCheckMode=$e;function kt(cn){return we(cn,HM,!0)}e.formatSignatureCheckMode=kt;function nn(cn){return we(cn,WM,!0)}e.formatTypeFacts=nn;let sn=!1,In;function Zn(cn){"__debugFlowFlags"in cn||Object.defineProperties(cn,{__tsDebuggerDisplay:{value(){const et=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",Jt=this.flags&-2048;return`${et}${Jt?` (${zt(Jt)})`:""}`}},__debugFlowFlags:{get(){return we(this.flags,U8,!0)}},__debugToString:{value(){return Er(this)}}})}function hn(cn){sn&&(typeof Object.setPrototypeOf=="function"?(In||(In=Object.create(Object.prototype),Zn(In)),Object.setPrototypeOf(cn,In)):Zn(cn))}e.attachFlowNodeDebugInfo=hn;let Zt;function Yt(cn){"__tsDebuggerDisplay"in cn||Object.defineProperties(cn,{__tsDebuggerDisplay:{value(et){return et=String(et).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),`NodeArray ${et}`}}})}function yi(cn){sn&&(typeof Object.setPrototypeOf=="function"?(Zt||(Zt=Object.create(Array.prototype),Yt(Zt)),Object.setPrototypeOf(cn,Zt)):Yt(cn))}e.attachNodeArrayDebugInfo=yi;function us(){if(sn)return;const cn=new WeakMap,et=new WeakMap;Object.defineProperties(Au.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const wn=this.flags&33554432?"TransientSymbol":"Symbol",ui=this.flags&-33554433;return`${wn} '${Rc(this)}'${ui?` (${Tt(ui)})`:""}`}},__debugFlags:{get(){return Tt(this.flags)}}}),Object.defineProperties(Au.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){const wn=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",ui=this.flags&524288?this.objectFlags&-1344:0;return`${wn}${this.symbol?` '${Rc(this.symbol)}'`:""}${ui?` (${st(ui)})`:""}`}},__debugFlags:{get(){return xe(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?st(this.objectFlags):""}},__debugTypeToString:{value(){let wn=cn.get(this);return wn===void 0&&(wn=this.checker.typeToString(this),cn.set(this,wn)),wn}}}),Object.defineProperties(Au.getSignatureConstructor().prototype,{__debugFlags:{get(){return ze(this.flags)}},__debugSignatureToString:{value(){var wn;return(wn=this.checker)==null?void 0:wn.signatureToString(this)}}});const Jt=[Au.getNodeConstructor(),Au.getIdentifierConstructor(),Au.getTokenConstructor(),Au.getSourceFileConstructor()];for(const wn of Jt)jo(wn.prototype,"__debugKind")||Object.defineProperties(wn.prototype,{__tsDebuggerDisplay:{value(){return`${vc(this)?"GeneratedIdentifier":Je(this)?`Identifier '${kr(this)}'`:Qi(this)?`PrivateIdentifier '${kr(this)}'`:Ba(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:Hf(this)?`NumericLiteral ${this.text}`:qL(this)?`BigIntLiteral ${this.text}n`:Ic(this)?"TypeParameterDeclaration":ws(this)?"ParameterDeclaration":$c(this)?"ConstructorDeclaration":Op(this)?"GetAccessorDeclaration":$f(this)?"SetAccessorDeclaration":Wk(this)?"CallSignatureDeclaration":qN(this)?"ConstructSignatureDeclaration":Ib(this)?"IndexSignatureDeclaration":HN(this)?"TypePredicateNode":id(this)?"TypeReferenceNode":Qg(this)?"FunctionTypeNode":I4(this)?"ConstructorTypeNode":qk(this)?"TypeQueryNode":Xf(this)?"TypeLiteralNode":GN(this)?"ArrayTypeNode":Hk(this)?"TupleTypeNode":QL(this)?"OptionalTypeNode":YL(this)?"RestTypeNode":A1(this)?"UnionTypeNode":Gk(this)?"IntersectionTypeNode":$k(this)?"ConditionalTypeNode":vx(this)?"InferTypeNode":bx(this)?"ParenthesizedTypeNode":$N(this)?"ThisTypeNode":Sx(this)?"TypeOperatorNode":xx(this)?"IndexedAccessTypeNode":F4(this)?"MappedTypeNode":N1(this)?"LiteralTypeNode":O4(this)?"NamedTupleMember":zh(this)?"ImportTypeNode":ye(this.kind)}${this.flags?` (${Se(this.flags)})`:""}`}},__debugKind:{get(){return ye(this.kind)}},__debugNodeFlags:{get(){return Se(this.flags)}},__debugModifierFlags:{get(){return Ee(oae(this))}},__debugTransformFlags:{get(){return Ae(this.transformFlags)}},__debugIsParseTreeNode:{get(){return fP(this)}},__debugEmitFlags:{get(){return Le(Ya(this))}},__debugGetText:{value(ui){if(lc(this))return"";let vi=et.get(this);if(vi===void 0){const ts=Is(this),Ds=ts&&qn(ts);vi=Ds?pb(Ds,ts,ui):"",et.set(this,vi)}return vi}}});sn=!0}e.enableDebugInfo=us;function zi(cn){const et=cn&7;let Jt=et===0?"in out":et===3?"[bivariant]":et===2?"in":et===1?"out":et===4?"[independent]":"";return cn&8?Jt+=" (unmeasurable)":cn&16&&(Jt+=" (unreliable)"),Jt}e.formatVariance=zi;class Os{__debugToString(){var et;switch(this.kind){case 3:return((et=this.debugInfo)==null?void 0:et.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return ii(this.sources,this.targets||Kt(this.sources,()=>"any"),(Jt,wn)=>`${Jt.__debugTypeToString()} -> ${typeof wn=="string"?wn:wn.__debugTypeToString()}`).join(", ");case 2:return ii(this.sources,this.targets,(Jt,wn)=>`${Jt.__debugTypeToString()} -> ${wn().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` +`).join(` + `)} +m2: ${this.mapper2.__debugToString().split(` +`).join(` + `)}`;default:return z(this)}}}e.DebugTypeMapper=Os;function On(cn){return e.isDebugging?Object.setPrototypeOf(cn,Os.prototype):cn}e.attachDebugPrototypeIfDebug=On;function Fi(cn){return console.log(Er(cn))}e.printControlFlowGraph=Fi;function Er(cn){let et=-1;function Jt(I){return I.id||(I.id=et,et--),I.id}let wn;(I=>{I.lr="─",I.ud="│",I.dr="╭",I.dl="╮",I.ul="╯",I.ur="╰",I.udr="├",I.udl="┤",I.dlr="┬",I.ulr="┴",I.udlr="╫"})(wn||(wn={}));let ui;(I=>{I[I.None=0]="None",I[I.Up=1]="Up",I[I.Down=2]="Down",I[I.Left=4]="Left",I[I.Right=8]="Right",I[I.UpDown=3]="UpDown",I[I.LeftRight=12]="LeftRight",I[I.UpLeft=5]="UpLeft",I[I.UpRight=9]="UpRight",I[I.DownLeft=6]="DownLeft",I[I.DownRight=10]="DownRight",I[I.UpDownLeft=7]="UpDownLeft",I[I.UpDownRight=11]="UpDownRight",I[I.UpLeftRight=13]="UpLeftRight",I[I.DownLeftRight=14]="DownLeftRight",I[I.UpDownLeftRight=15]="UpDownLeftRight",I[I.NoChildren=16]="NoChildren"})(ui||(ui={}));const vi=2032,ts=882,Ds=Object.create(null),Sa=[],Wa=_t(cn,new Set);for(const I of Sa)I.text=pn(I.flowNode,I.circular),it(I);const Tn=Et(Wa),Ln=Ge(Tn);return mt(Wa,0),mn();function Ve(I){return!!(I.flags&128)}function pt(I){return!!(I.flags&12)&&!!I.antecedents}function ft(I){return!!(I.flags&vi)}function At(I){return!!(I.flags&ts)}function le(I){const me=[];for(const H of I.edges)H.source===I&&me.push(H.target);return me}function Me(I){const me=[];for(const H of I.edges)H.target===I&&me.push(H.source);return me}function _t(I,me){const H=Jt(I);let de=Ds[H];if(de&&me.has(I))return de.circular=!0,de={id:-1,flowNode:I,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},Sa.push(de),de;if(me.add(I),!de)if(Ds[H]=de={id:H,flowNode:I,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},Sa.push(de),pt(I))for(const Be of I.antecedents)U(de,Be,me);else ft(I)&&U(de,I.antecedent,me);return me.delete(I),de}function U(I,me,H){const de=_t(me,H),Be={source:I,target:de};I.edges.push(Be),de.edges.push(Be)}function it(I){if(I.level!==-1)return I.level;let me=0;for(const H of Me(I))me=Math.max(me,it(H)+1);return I.level=me}function Et(I){let me=0;for(const H of le(I))me=Math.max(me,Et(H));return me+1}function Ge(I){const me=Fe(Array(I),0);for(const H of Sa)me[H.level]=Math.max(me[H.level],H.text.length);return me}function mt(I,me){if(I.lane===-1){I.lane=me,I.endLane=me;const H=le(I);for(let de=0;de0&&me++;const Be=H[de];mt(Be,me),Be.endLane>I.endLane&&(me=Be.endLane)}I.endLane=me}}function Ut(I){if(I&2)return"Start";if(I&4)return"Branch";if(I&8)return"Loop";if(I&16)return"Assignment";if(I&32)return"True";if(I&64)return"False";if(I&128)return"SwitchClause";if(I&256)return"ArrayMutation";if(I&512)return"Call";if(I&1024)return"ReduceLabel";if(I&1)return"Unreachable";throw new Error}function vn(I){const me=qn(I);return pb(me,I,!1)}function pn(I,me){let H=Ut(I.flags);if(me&&(H=`${H}#${Jt(I)}`),At(I))I.node&&(H+=` (${vn(I.node)})`);else if(Ve(I)){const de=[];for(let Be=I.clauseStart;BeMath.max(xt,Ft.lane),0)+1,H=Fe(Array(me),""),de=Ln.map(()=>Array(me)),Be=Ln.map(()=>Fe(Array(me),0));for(const xt of Sa){de[xt.level][xt.lane]=xt;const Ft=le(xt);for(let Sn=0;Sn0&&(Gn|=1),Sn0&&(Gn|=1),Sn0?Be[xt-1][Ft]:0,Sn=Ft>0?Be[xt][Ft-1]:0;let Un=Be[xt][Ft];Un||(tn&8&&(Un|=12),Sn&2&&(Un|=3),Be[xt][Ft]=Un)}for(let xt=0;xt0?I.repeat(me):"";let H="";for(;H.length=",i.version)),kd(s.major)||r.push(kd(s.minor)?Jg("<",s.version.increment("major")):kd(s.patch)?Jg("<",s.version.increment("minor")):Jg("<=",s.version)),!0):!1}function OJe(e,t,r){const i=Lre(t);if(!i)return!1;const{version:s,major:o,minor:c,patch:u}=i;if(kd(o))(e==="<"||e===">")&&r.push(Jg("<",$d.zero));else switch(e){case"~":r.push(Jg(">=",s)),r.push(Jg("<",s.increment(kd(c)?"major":"minor")));break;case"^":r.push(Jg(">=",s)),r.push(Jg("<",s.increment(s.major>0||kd(c)?"major":s.minor>0||kd(u)?"minor":"patch")));break;case"<":case">=":r.push(kd(c)||kd(u)?Jg(e,s.with({prerelease:"0"})):Jg(e,s));break;case"<=":case">":r.push(kd(c)?Jg(e==="<="?"<":">=",s.increment("major").with({prerelease:"0"})):kd(u)?Jg(e==="<="?"<":">=",s.increment("minor").with({prerelease:"0"})):Jg(e,s));break;case"=":case void 0:kd(c)||kd(u)?(r.push(Jg(">=",s.with({prerelease:"0"}))),r.push(Jg("<",s.increment(kd(c)?"major":"minor").with({prerelease:"0"})))):r.push(Jg("=",s));break;default:return!1}return!0}function kd(e){return e==="*"||e==="x"||e==="X"}function Jg(e,t){return{operator:e,operand:t}}function FJe(e,t){if(t.length===0)return!0;for(const r of t)if(LJe(e,r))return!0;return!1}function LJe(e,t){for(const r of t)if(!MJe(e,r.operator,r.operand))return!1;return!0}function MJe(e,t,r){const i=e.compareTo(r);switch(t){case"<":return i<0;case"<=":return i<=0;case">":return i>0;case">=":return i>=0;case"=":return i===0;default:return w.assertNever(t)}}function RJe(e){return Kt(e,jJe).join(" || ")||"*"}function jJe(e){return Kt(e,BJe).join(" ")}function BJe(e){return`${e.operator}${e.operand}`}var wbe,Dbe,Abe,Nbe,Ibe,Mre,TU,$d,B8,Obe,Fbe,Lbe,Mbe,Rbe,JJe=K({"src/compiler/semver.ts"(){ua(),wbe=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,Dbe=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,Abe=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,Nbe=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,Ibe=/^[a-z0-9-]+$/i,Mre=/^(0|[1-9]\d*)$/,TU=class dO{constructor(t,r=0,i=0,s="",o=""){typeof t=="string"&&({major:t,minor:r,patch:i,prerelease:s,build:o}=w.checkDefined(Ebe(t),"Invalid version")),w.assert(t>=0,"Invalid argument: major"),w.assert(r>=0,"Invalid argument: minor"),w.assert(i>=0,"Invalid argument: patch");const c=s?Ps(s)?s:s.split("."):Ke,u=o?Ps(o)?o:o.split("."):Ke;w.assert(Pn(c,f=>Abe.test(f)),"Invalid argument: prerelease"),w.assert(Pn(u,f=>Ibe.test(f)),"Invalid argument: build"),this.major=t,this.minor=r,this.patch=i,this.prerelease=c,this.build=u}static tryParse(t){const r=Ebe(t);if(!r)return;const{major:i,minor:s,patch:o,prerelease:c,build:u}=r;return new dO(i,s,o,c,u)}compareTo(t){return this===t?0:t===void 0?1:mc(this.major,t.major)||mc(this.minor,t.minor)||mc(this.patch,t.patch)||NJe(this.prerelease,t.prerelease)}increment(t){switch(t){case"major":return new dO(this.major+1,0,0);case"minor":return new dO(this.major,this.minor+1,0);case"patch":return new dO(this.major,this.minor,this.patch+1);default:return w.assertNever(t)}}with(t){const{major:r=this.major,minor:i=this.minor,patch:s=this.patch,prerelease:o=this.prerelease,build:c=this.build}=t;return new dO(r,i,s,o,c)}toString(){let t=`${this.major}.${this.minor}.${this.patch}`;return Pe(this.prerelease)&&(t+=`-${this.prerelease.join(".")}`),Pe(this.build)&&(t+=`+${this.build.join(".")}`),t}},TU.zero=new TU(0,0,0,["0"]),$d=TU,B8=class hJe{constructor(t){this._alternatives=t?w.checkDefined(Pbe(t),"Invalid range spec."):Ke}static tryParse(t){const r=Pbe(t);if(r){const i=new hJe("");return i._alternatives=r,i}}test(t){return typeof t=="string"&&(t=new $d(t)),FJe(t,this._alternatives)}toString(){return RJe(this._alternatives)}},Obe=/\|\|/g,Fbe=/\s+/g,Lbe=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,Mbe=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,Rbe=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i}});function jbe(e,t){return typeof e=="object"&&typeof e.timeOrigin=="number"&&typeof e.mark=="function"&&typeof e.measure=="function"&&typeof e.now=="function"&&typeof e.clearMarks=="function"&&typeof e.clearMeasures=="function"&&typeof t=="function"}function zJe(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&jbe(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function UJe(){if(yU())try{const{performance:e,PerformanceObserver:t}=m6;if(jbe(e,t))return{shouldWriteNativeEvents:!1,performance:e,PerformanceObserver:t}}catch{}}function Rre(){return kU}var kU,jre,cc,VJe=K({"src/compiler/performanceCore.ts"(){ua(),kU=zJe()||UJe(),jre=kU==null?void 0:kU.performance,cc=jre?()=>jre.now():Date.now?Date.now:()=>+new Date}}),JO,A_,WJe=K({"src/compiler/perfLogger.ts"(){try{const e=E.TS_ETW_MODULE_PATH??"./node_modules/@microsoft/typescript-etw";JO=rje(e)}catch{JO=void 0}A_=JO!=null&&JO.logEvent?JO:void 0}});function Bbe(e,t,r,i){return e?CU(t,r,i):EU}function CU(e,t,r){let i=0;return{enter:s,exit:o};function s(){++i===1&&gc(t)}function o(){--i===0?(gc(r),Ap(e,t,r)):i<0&&w.fail("enter/exit count does not match.")}}function gc(e){if(D6){const t=nP.get(e)??0;nP.set(e,t+1),A6.set(e,cc()),qS==null||qS.mark(e),typeof onProfilerEvent=="function"&&onProfilerEvent(e)}}function Ap(e,t,r){if(D6){const i=(r!==void 0?A6.get(r):void 0)??cc(),s=(t!==void 0?A6.get(t):void 0)??Bre,o=N6.get(e)||0;N6.set(e,o+(i-s)),qS==null||qS.measure(e,t,r)}}function qJe(e){return nP.get(e)||0}function HJe(e){return N6.get(e)||0}function GJe(e){N6.forEach((t,r)=>e(r,t))}function $Je(e){A6.forEach((t,r)=>e(r))}function XJe(e){e!==void 0?N6.delete(e):N6.clear(),qS==null||qS.clearMeasures(e)}function QJe(e){e!==void 0?(nP.delete(e),A6.delete(e)):(nP.clear(),A6.clear()),qS==null||qS.clearMarks(e)}function YJe(){return D6}function ZJe(e=Bu){var t;return D6||(D6=!0,J8||(J8=Rre()),J8&&(Bre=J8.performance.timeOrigin,(J8.shouldWriteNativeEvents||(t=e==null?void 0:e.cpuProfilingEnabled)!=null&&t.call(e)||e!=null&&e.debugMode)&&(qS=J8.performance))),!0}function KJe(){D6&&(A6.clear(),nP.clear(),N6.clear(),qS=void 0,D6=!1)}var J8,qS,EU,D6,Bre,A6,nP,N6,eze=K({"src/compiler/performance.ts"(){ua(),EU={enter:ao,exit:ao},D6=!1,Bre=cc(),A6=new Map,nP=new Map,N6=new Map}}),Jre={};Ye(Jre,{clearMarks:()=>QJe,clearMeasures:()=>XJe,createTimer:()=>CU,createTimerIf:()=>Bbe,disable:()=>KJe,enable:()=>ZJe,forEachMark:()=>$Je,forEachMeasure:()=>GJe,getCount:()=>qJe,getDuration:()=>HJe,isEnabled:()=>YJe,mark:()=>gc,measure:()=>Ap,nullTimer:()=>EU});var HS=K({"src/compiler/_namespaces/ts.performance.ts"(){eze()}}),cr,z8,zre,Ure,tze=K({"src/compiler/tracing.ts"(){ua(),HS(),(e=>{let t,r=0,i=0,s;const o=[];let c;const u=[];function f(ce,J,ne){if(w.assert(!cr,"Tracing already started"),t===void 0)try{t=m6}catch(se){throw new Error(`tracing requires having fs +(original error: ${se.message||se})`)}s=ce,o.length=0,c===void 0&&(c=Zr(J,"legend.json")),t.existsSync(J)||t.mkdirSync(J,{recursive:!0});const ge=s==="build"?`.${process.pid}-${++r}`:s==="server"?`.${process.pid}`:"",ve=Zr(J,`trace${ge}.json`),Q=Zr(J,`types${ge}.json`);u.push({configFilePath:ne,tracePath:ve,typesPath:Q}),i=t.openSync(ve,"w"),cr=e;const X={cat:"__metadata",ph:"M",ts:1e3*cc(),pid:1,tid:1};t.writeSync(i,`[ +`+[{name:"process_name",args:{name:"tsc"},...X},{name:"thread_name",args:{name:"Main"},...X},{name:"TracingStartedInBrowser",...X,cat:"disabled-by-default-devtools.timeline"}].map(se=>JSON.stringify(se)).join(`, +`))}e.startTracing=f;function g(){w.assert(cr,"Tracing is not in progress"),w.assert(!!o.length==(s!=="server")),t.writeSync(i,` +] +`),t.closeSync(i),cr=void 0,o.length?Z(o):u[u.length-1].typesPath=void 0}e.stopTracing=g;function d(ce){s!=="server"&&o.push(ce)}e.recordType=d,(ce=>{ce.Parse="parse",ce.Program="program",ce.Bind="bind",ce.Check="check",ce.CheckTypes="checkTypes",ce.Emit="emit",ce.Session="session"})(e.Phase||(e.Phase={}));function y(ce,J,ne){V("I",ce,J,ne,'"s":"g"')}e.instant=y;const x=[];function T(ce,J,ne,ge=!1){ge&&V("B",ce,J,ne),x.push({phase:ce,name:J,args:ne,time:1e3*cc(),separateBeginAndEnd:ge})}e.push=T;function C(ce){w.assert(x.length>0),M(x.length-1,1e3*cc(),ce),x.length--}e.pop=C;function N(){const ce=1e3*cc();for(let J=x.length-1;J>=0;J--)M(J,ce);x.length=0}e.popAll=N;const D=1e3*10;function M(ce,J,ne){const{phase:ge,name:ve,args:Q,time:X,separateBeginAndEnd:se}=x[ce];se?(w.assert(!ne,"`results` are not supported for events with `separateBeginAndEnd`"),V("E",ge,ve,Q,void 0,J)):D-X%D<=J-X&&V("X",ge,ve,{...Q,results:ne},`"dur":${J-X}`,X)}function V(ce,J,ne,ge,ve,Q=1e3*cc()){s==="server"&&J==="checkTypes"||(gc("beginTracing"),t.writeSync(i,`, +{"pid":1,"tid":1,"ph":"${ce}","cat":"${J}","ts":${Q},"name":"${ne}"`),ve&&t.writeSync(i,`,${ve}`),ge&&t.writeSync(i,`,"args":${JSON.stringify(ge)}`),t.writeSync(i,"}"),gc("endTracing"),Ap("Tracing","beginTracing","endTracing"))}function G(ce){const J=qn(ce);return J?{path:J.path,start:ne(Ao(J,ce.pos)),end:ne(Ao(J,ce.end))}:void 0;function ne(ge){return{line:ge.line+1,character:ge.character+1}}}function Z(ce){var J,ne,ge,ve,Q,X,se,pe,we,fe,ie,ye,Ne,Ue,Se,Ee,Ae,Le,Tt;gc("beginDumpTypes");const xe=u[u.length-1].typesPath,ze=t.openSync(xe,"w"),st=new Map;t.writeSync(ze,"[");const zt=ce.length;for(let yt=0;ytFi.id),referenceLocation:G(On.node)}}let hn={};if($e.flags&16777216){const On=$e;hn={conditionalCheckType:(X=On.checkType)==null?void 0:X.id,conditionalExtendsType:(se=On.extendsType)==null?void 0:se.id,conditionalTrueType:((pe=On.resolvedTrueType)==null?void 0:pe.id)??-1,conditionalFalseType:((we=On.resolvedFalseType)==null?void 0:we.id)??-1}}let Zt={};if($e.flags&33554432){const On=$e;Zt={substitutionBaseType:(fe=On.baseType)==null?void 0:fe.id,constraintType:(ie=On.constraint)==null?void 0:ie.id}}let Yt={};if(kt&1024){const On=$e;Yt={reverseMappedSourceType:(ye=On.source)==null?void 0:ye.id,reverseMappedMappedType:(Ne=On.mappedType)==null?void 0:Ne.id,reverseMappedConstraintType:(Ue=On.constraintType)==null?void 0:Ue.id}}let yi={};if(kt&256){const On=$e;yi={evolvingArrayElementType:On.elementType.id,evolvingArrayFinalType:(Se=On.finalArrayType)==null?void 0:Se.id}}let us;const zi=$e.checker.getRecursionIdentity($e);zi&&(us=st.get(zi),us||(us=st.size,st.set(zi,us)));const Os={id:$e.id,intrinsicName:$e.intrinsicName,symbolName:(nn==null?void 0:nn.escapedName)&&Hi(nn.escapedName),recursionId:us,isTuple:kt&8?!0:void 0,unionTypes:$e.flags&1048576?(Ee=$e.types)==null?void 0:Ee.map(On=>On.id):void 0,intersectionTypes:$e.flags&2097152?$e.types.map(On=>On.id):void 0,aliasTypeArguments:(Ae=$e.aliasTypeArguments)==null?void 0:Ae.map(On=>On.id),keyofType:$e.flags&4194304?(Le=$e.type)==null?void 0:Le.id:void 0,...In,...Zn,...hn,...Zt,...Yt,...yi,destructuringPattern:G($e.pattern),firstDeclaration:G((Tt=nn==null?void 0:nn.declarations)==null?void 0:Tt[0]),flags:w.formatTypeFlags($e.flags).split("|"),display:sn};t.writeSync(ze,JSON.stringify(Os)),yt(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.QualifiedName=166]="QualifiedName",e[e.ComputedPropertyName=167]="ComputedPropertyName",e[e.TypeParameter=168]="TypeParameter",e[e.Parameter=169]="Parameter",e[e.Decorator=170]="Decorator",e[e.PropertySignature=171]="PropertySignature",e[e.PropertyDeclaration=172]="PropertyDeclaration",e[e.MethodSignature=173]="MethodSignature",e[e.MethodDeclaration=174]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=175]="ClassStaticBlockDeclaration",e[e.Constructor=176]="Constructor",e[e.GetAccessor=177]="GetAccessor",e[e.SetAccessor=178]="SetAccessor",e[e.CallSignature=179]="CallSignature",e[e.ConstructSignature=180]="ConstructSignature",e[e.IndexSignature=181]="IndexSignature",e[e.TypePredicate=182]="TypePredicate",e[e.TypeReference=183]="TypeReference",e[e.FunctionType=184]="FunctionType",e[e.ConstructorType=185]="ConstructorType",e[e.TypeQuery=186]="TypeQuery",e[e.TypeLiteral=187]="TypeLiteral",e[e.ArrayType=188]="ArrayType",e[e.TupleType=189]="TupleType",e[e.OptionalType=190]="OptionalType",e[e.RestType=191]="RestType",e[e.UnionType=192]="UnionType",e[e.IntersectionType=193]="IntersectionType",e[e.ConditionalType=194]="ConditionalType",e[e.InferType=195]="InferType",e[e.ParenthesizedType=196]="ParenthesizedType",e[e.ThisType=197]="ThisType",e[e.TypeOperator=198]="TypeOperator",e[e.IndexedAccessType=199]="IndexedAccessType",e[e.MappedType=200]="MappedType",e[e.LiteralType=201]="LiteralType",e[e.NamedTupleMember=202]="NamedTupleMember",e[e.TemplateLiteralType=203]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=204]="TemplateLiteralTypeSpan",e[e.ImportType=205]="ImportType",e[e.ObjectBindingPattern=206]="ObjectBindingPattern",e[e.ArrayBindingPattern=207]="ArrayBindingPattern",e[e.BindingElement=208]="BindingElement",e[e.ArrayLiteralExpression=209]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=210]="ObjectLiteralExpression",e[e.PropertyAccessExpression=211]="PropertyAccessExpression",e[e.ElementAccessExpression=212]="ElementAccessExpression",e[e.CallExpression=213]="CallExpression",e[e.NewExpression=214]="NewExpression",e[e.TaggedTemplateExpression=215]="TaggedTemplateExpression",e[e.TypeAssertionExpression=216]="TypeAssertionExpression",e[e.ParenthesizedExpression=217]="ParenthesizedExpression",e[e.FunctionExpression=218]="FunctionExpression",e[e.ArrowFunction=219]="ArrowFunction",e[e.DeleteExpression=220]="DeleteExpression",e[e.TypeOfExpression=221]="TypeOfExpression",e[e.VoidExpression=222]="VoidExpression",e[e.AwaitExpression=223]="AwaitExpression",e[e.PrefixUnaryExpression=224]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=225]="PostfixUnaryExpression",e[e.BinaryExpression=226]="BinaryExpression",e[e.ConditionalExpression=227]="ConditionalExpression",e[e.TemplateExpression=228]="TemplateExpression",e[e.YieldExpression=229]="YieldExpression",e[e.SpreadElement=230]="SpreadElement",e[e.ClassExpression=231]="ClassExpression",e[e.OmittedExpression=232]="OmittedExpression",e[e.ExpressionWithTypeArguments=233]="ExpressionWithTypeArguments",e[e.AsExpression=234]="AsExpression",e[e.NonNullExpression=235]="NonNullExpression",e[e.MetaProperty=236]="MetaProperty",e[e.SyntheticExpression=237]="SyntheticExpression",e[e.SatisfiesExpression=238]="SatisfiesExpression",e[e.TemplateSpan=239]="TemplateSpan",e[e.SemicolonClassElement=240]="SemicolonClassElement",e[e.Block=241]="Block",e[e.EmptyStatement=242]="EmptyStatement",e[e.VariableStatement=243]="VariableStatement",e[e.ExpressionStatement=244]="ExpressionStatement",e[e.IfStatement=245]="IfStatement",e[e.DoStatement=246]="DoStatement",e[e.WhileStatement=247]="WhileStatement",e[e.ForStatement=248]="ForStatement",e[e.ForInStatement=249]="ForInStatement",e[e.ForOfStatement=250]="ForOfStatement",e[e.ContinueStatement=251]="ContinueStatement",e[e.BreakStatement=252]="BreakStatement",e[e.ReturnStatement=253]="ReturnStatement",e[e.WithStatement=254]="WithStatement",e[e.SwitchStatement=255]="SwitchStatement",e[e.LabeledStatement=256]="LabeledStatement",e[e.ThrowStatement=257]="ThrowStatement",e[e.TryStatement=258]="TryStatement",e[e.DebuggerStatement=259]="DebuggerStatement",e[e.VariableDeclaration=260]="VariableDeclaration",e[e.VariableDeclarationList=261]="VariableDeclarationList",e[e.FunctionDeclaration=262]="FunctionDeclaration",e[e.ClassDeclaration=263]="ClassDeclaration",e[e.InterfaceDeclaration=264]="InterfaceDeclaration",e[e.TypeAliasDeclaration=265]="TypeAliasDeclaration",e[e.EnumDeclaration=266]="EnumDeclaration",e[e.ModuleDeclaration=267]="ModuleDeclaration",e[e.ModuleBlock=268]="ModuleBlock",e[e.CaseBlock=269]="CaseBlock",e[e.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",e[e.ImportDeclaration=272]="ImportDeclaration",e[e.ImportClause=273]="ImportClause",e[e.NamespaceImport=274]="NamespaceImport",e[e.NamedImports=275]="NamedImports",e[e.ImportSpecifier=276]="ImportSpecifier",e[e.ExportAssignment=277]="ExportAssignment",e[e.ExportDeclaration=278]="ExportDeclaration",e[e.NamedExports=279]="NamedExports",e[e.NamespaceExport=280]="NamespaceExport",e[e.ExportSpecifier=281]="ExportSpecifier",e[e.MissingDeclaration=282]="MissingDeclaration",e[e.ExternalModuleReference=283]="ExternalModuleReference",e[e.JsxElement=284]="JsxElement",e[e.JsxSelfClosingElement=285]="JsxSelfClosingElement",e[e.JsxOpeningElement=286]="JsxOpeningElement",e[e.JsxClosingElement=287]="JsxClosingElement",e[e.JsxFragment=288]="JsxFragment",e[e.JsxOpeningFragment=289]="JsxOpeningFragment",e[e.JsxClosingFragment=290]="JsxClosingFragment",e[e.JsxAttribute=291]="JsxAttribute",e[e.JsxAttributes=292]="JsxAttributes",e[e.JsxSpreadAttribute=293]="JsxSpreadAttribute",e[e.JsxExpression=294]="JsxExpression",e[e.JsxNamespacedName=295]="JsxNamespacedName",e[e.CaseClause=296]="CaseClause",e[e.DefaultClause=297]="DefaultClause",e[e.HeritageClause=298]="HeritageClause",e[e.CatchClause=299]="CatchClause",e[e.ImportAttributes=300]="ImportAttributes",e[e.ImportAttribute=301]="ImportAttribute",e[e.AssertClause=300]="AssertClause",e[e.AssertEntry=301]="AssertEntry",e[e.ImportTypeAssertionContainer=302]="ImportTypeAssertionContainer",e[e.PropertyAssignment=303]="PropertyAssignment",e[e.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",e[e.SpreadAssignment=305]="SpreadAssignment",e[e.EnumMember=306]="EnumMember",e[e.UnparsedPrologue=307]="UnparsedPrologue",e[e.UnparsedPrepend=308]="UnparsedPrepend",e[e.UnparsedText=309]="UnparsedText",e[e.UnparsedInternalText=310]="UnparsedInternalText",e[e.UnparsedSyntheticReference=311]="UnparsedSyntheticReference",e[e.SourceFile=312]="SourceFile",e[e.Bundle=313]="Bundle",e[e.UnparsedSource=314]="UnparsedSource",e[e.InputFiles=315]="InputFiles",e[e.JSDocTypeExpression=316]="JSDocTypeExpression",e[e.JSDocNameReference=317]="JSDocNameReference",e[e.JSDocMemberName=318]="JSDocMemberName",e[e.JSDocAllType=319]="JSDocAllType",e[e.JSDocUnknownType=320]="JSDocUnknownType",e[e.JSDocNullableType=321]="JSDocNullableType",e[e.JSDocNonNullableType=322]="JSDocNonNullableType",e[e.JSDocOptionalType=323]="JSDocOptionalType",e[e.JSDocFunctionType=324]="JSDocFunctionType",e[e.JSDocVariadicType=325]="JSDocVariadicType",e[e.JSDocNamepathType=326]="JSDocNamepathType",e[e.JSDoc=327]="JSDoc",e[e.JSDocComment=327]="JSDocComment",e[e.JSDocText=328]="JSDocText",e[e.JSDocTypeLiteral=329]="JSDocTypeLiteral",e[e.JSDocSignature=330]="JSDocSignature",e[e.JSDocLink=331]="JSDocLink",e[e.JSDocLinkCode=332]="JSDocLinkCode",e[e.JSDocLinkPlain=333]="JSDocLinkPlain",e[e.JSDocTag=334]="JSDocTag",e[e.JSDocAugmentsTag=335]="JSDocAugmentsTag",e[e.JSDocImplementsTag=336]="JSDocImplementsTag",e[e.JSDocAuthorTag=337]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=338]="JSDocDeprecatedTag",e[e.JSDocClassTag=339]="JSDocClassTag",e[e.JSDocPublicTag=340]="JSDocPublicTag",e[e.JSDocPrivateTag=341]="JSDocPrivateTag",e[e.JSDocProtectedTag=342]="JSDocProtectedTag",e[e.JSDocReadonlyTag=343]="JSDocReadonlyTag",e[e.JSDocOverrideTag=344]="JSDocOverrideTag",e[e.JSDocCallbackTag=345]="JSDocCallbackTag",e[e.JSDocOverloadTag=346]="JSDocOverloadTag",e[e.JSDocEnumTag=347]="JSDocEnumTag",e[e.JSDocParameterTag=348]="JSDocParameterTag",e[e.JSDocReturnTag=349]="JSDocReturnTag",e[e.JSDocThisTag=350]="JSDocThisTag",e[e.JSDocTypeTag=351]="JSDocTypeTag",e[e.JSDocTemplateTag=352]="JSDocTemplateTag",e[e.JSDocTypedefTag=353]="JSDocTypedefTag",e[e.JSDocSeeTag=354]="JSDocSeeTag",e[e.JSDocPropertyTag=355]="JSDocPropertyTag",e[e.JSDocThrowsTag=356]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=357]="JSDocSatisfiesTag",e[e.SyntaxList=358]="SyntaxList",e[e.NotEmittedStatement=359]="NotEmittedStatement",e[e.PartiallyEmittedExpression=360]="PartiallyEmittedExpression",e[e.CommaListExpression=361]="CommaListExpression",e[e.SyntheticReferenceExpression=362]="SyntheticReferenceExpression",e[e.Count=363]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=165]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=182]="FirstTypeNode",e[e.LastTypeNode=205]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=165]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=243]="FirstStatement",e[e.LastStatement=259]="LastStatement",e[e.FirstNode=166]="FirstNode",e[e.FirstJSDocNode=316]="FirstJSDocNode",e[e.LastJSDocNode=357]="LastJSDocNode",e[e.FirstJSDocTagNode=334]="FirstJSDocTagNode",e[e.LastJSDocTagNode=357]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=165]="LastContextualKeyword",e))(zO||{}),UO=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(UO||{}),VO=(e=>(e[e.None=0]="None",e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=4]="Protected",e[e.Readonly=8]="Readonly",e[e.Override=16]="Override",e[e.Export=32]="Export",e[e.Abstract=64]="Abstract",e[e.Ambient=128]="Ambient",e[e.Static=256]="Static",e[e.Accessor=512]="Accessor",e[e.Async=1024]="Async",e[e.Default=2048]="Default",e[e.Const=4096]="Const",e[e.In=8192]="In",e[e.Out=16384]="Out",e[e.Decorator=32768]="Decorator",e[e.Deprecated=65536]="Deprecated",e[e.JSDocPublic=8388608]="JSDocPublic",e[e.JSDocPrivate=16777216]="JSDocPrivate",e[e.JSDocProtected=33554432]="JSDocProtected",e[e.JSDocReadonly=67108864]="JSDocReadonly",e[e.JSDocOverride=134217728]="JSDocOverride",e[e.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",e[e.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",e[e.SyntacticModifiers=65535]="SyntacticModifiers",e[e.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",e[e.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",e[e.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",e[e.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=7]="AccessibilityModifier",e[e.ParameterPropertyModifier=31]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=28895]="TypeScriptModifier",e[e.ExportDefault=2080]="ExportDefault",e[e.All=131071]="All",e[e.Modifier=98303]="Modifier",e))(VO||{}),PU=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(PU||{}),WO=(e=>(e[e.None=0]="None",e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Reported=4]="Reported",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e))(WO||{}),qO=(e=>(e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.ReservedInNestedScopes=8]="ReservedInNestedScopes",e[e.Optimistic=16]="Optimistic",e[e.FileLevel=32]="FileLevel",e[e.AllowNameSubstitution=64]="AllowNameSubstitution",e))(qO||{}),wU=(e=>(e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.HexEscape=4096]="HexEscape",e[e.ContainsLeadingZero=8192]="ContainsLeadingZero",e[e.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.WithSpecifier=448]="WithSpecifier",e[e.StringLiteralFlags=7176]="StringLiteralFlags",e[e.NumericLiteralFlags=25584]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=7176]="TemplateLiteralLikeFlags",e[e.IsInvalid=26656]="IsInvalid",e))(wU||{}),U8=(e=>(e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(U8||{}),DU=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(DU||{}),I6=class{},HO=(e=>(e[e.RootFile=0]="RootFile",e[e.SourceFromProjectReference=1]="SourceFromProjectReference",e[e.OutputFromProjectReference=2]="OutputFromProjectReference",e[e.Import=3]="Import",e[e.ReferenceFile=4]="ReferenceFile",e[e.TypeReferenceDirective=5]="TypeReferenceDirective",e[e.LibFile=6]="LibFile",e[e.LibReferenceDirective=7]="LibReferenceDirective",e[e.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",e))(HO||{}),AU=(e=>(e[e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(AU||{}),NU=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e))(NU||{}),GO=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(GO||{}),IU=(e=>(e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",e[e.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",e[e.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",e))(IU||{}),OU=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(OU||{}),FU=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(FU||{}),LU=(e=>(e[e.None=0]="None",e[e.Signature=1]="Signature",e[e.NoConstraints=2]="NoConstraints",e[e.Completions=4]="Completions",e[e.SkipBindingPatterns=8]="SkipBindingPatterns",e))(LU||{}),MU=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.WriteComputedProps=1073741824]="WriteComputedProps",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e))(MU||{}),RU=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.NodeBuilderFlagsMask=848330095]="NodeBuilderFlagsMask",e))(RU||{}),jU=(e=>(e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",e[e.WriteComputedProps=16]="WriteComputedProps",e[e.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain",e))(jU||{}),BU=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e))(BU||{}),JU=(e=>(e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread",e))(JU||{}),zU=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(zU||{}),UU=(e=>(e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.BigIntLikeType=4]="BigIntLikeType",e[e.StringLikeType=5]="StringLikeType",e[e.BooleanType=6]="BooleanType",e[e.ArrayLikeType=7]="ArrayLikeType",e[e.ESSymbolType=8]="ESSymbolType",e[e.Promise=9]="Promise",e[e.TypeWithCallSignature=10]="TypeWithCallSignature",e[e.ObjectType=11]="ObjectType",e))(UU||{}),$O=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=-1]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))($O||{}),VU=(e=>(e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal",e))(VU||{}),WU=(e=>(e[e.None=0]="None",e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.ReadPartial=16]="ReadPartial",e[e.WritePartial=32]="WritePartial",e[e.HasNonUniformType=64]="HasNonUniformType",e[e.HasLiteralType=128]="HasLiteralType",e[e.ContainsPublic=256]="ContainsPublic",e[e.ContainsProtected=512]="ContainsProtected",e[e.ContainsPrivate=1024]="ContainsPrivate",e[e.ContainsStatic=2048]="ContainsStatic",e[e.Late=4096]="Late",e[e.ReverseMapped=8192]="ReverseMapped",e[e.OptionalParameter=16384]="OptionalParameter",e[e.RestParameter=32768]="RestParameter",e[e.DeferredType=65536]="DeferredType",e[e.HasNeverType=131072]="HasNeverType",e[e.Mapped=262144]="Mapped",e[e.StripOptional=524288]="StripOptional",e[e.Unresolved=1048576]="Unresolved",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=192]="Discriminant",e[e.Partial=48]="Partial",e))(WU||{}),qU=(e=>(e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this",e.InstantiationExpression="__instantiationExpression",e.ImportAttributes="__importAttributes",e))(qU||{}),HU=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e))(HU||{}),XO=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.Reserved1=536870912]="Reserved1",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(XO||{}),QO=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e[e.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",e))(QO||{}),GU=(e=>(e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent",e[e.VarianceMask=7]="VarianceMask",e[e.Unmeasurable=8]="Unmeasurable",e[e.Unreliable=16]="Unreliable",e[e.AllowsStructuralFallback=24]="AllowsStructuralFallback",e))(GU||{}),$U=(e=>(e[e.Required=1]="Required",e[e.Optional=2]="Optional",e[e.Rest=4]="Rest",e[e.Variadic=8]="Variadic",e[e.Fixed=3]="Fixed",e[e.Variable=12]="Variable",e[e.NonRequired=14]="NonRequired",e[e.NonRest=11]="NonRest",e))($U||{}),XU=(e=>(e[e.None=0]="None",e[e.IncludeUndefined=1]="IncludeUndefined",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.Writing=4]="Writing",e[e.CacheSymbol=8]="CacheSymbol",e[e.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",e[e.ExpressionPosition=32]="ExpressionPosition",e[e.ReportDeprecated=64]="ReportDeprecated",e[e.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",e[e.Contextual=256]="Contextual",e[e.Persistent=1]="Persistent",e))(XU||{}),QU=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(QU||{}),YU=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(YU||{}),ZU=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(ZU||{}),YO=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(YO||{}),KU=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(KU||{}),eV=(e=>(e[e.Simple=0]="Simple",e[e.Array=1]="Array",e[e.Deferred=2]="Deferred",e[e.Function=3]="Function",e[e.Composite=4]="Composite",e[e.Merged=5]="Merged",e))(eV||{}),tV=(e=>(e[e.None=0]="None",e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.SpeculativeTuple=2]="SpeculativeTuple",e[e.SubstituteSource=4]="SubstituteSource",e[e.HomomorphicMappedType=8]="HomomorphicMappedType",e[e.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",e[e.MappedTypeConstraint=32]="MappedTypeConstraint",e[e.ContravariantConditional=64]="ContravariantConditional",e[e.ReturnType=128]="ReturnType",e[e.LiteralKeyof=256]="LiteralKeyof",e[e.NoConstraints=512]="NoConstraints",e[e.AlwaysStrict=1024]="AlwaysStrict",e[e.MaxValue=2048]="MaxValue",e[e.PriorityImpliesCombination=416]="PriorityImpliesCombination",e[e.Circularity=-1]="Circularity",e))(tV||{}),nV=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(nV||{}),rV=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(rV||{}),iV=(e=>(e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",e))(iV||{}),V8=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(V8||{}),O6=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e[e.Node10=2]="Node10",e[e.Node16=3]="Node16",e[e.NodeNext=99]="NodeNext",e[e.Bundler=100]="Bundler",e))(O6||{}),sV=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(sV||{}),aV=(e=>(e[e.FixedPollingInterval=0]="FixedPollingInterval",e[e.PriorityPollingInterval=1]="PriorityPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e[e.UseFsEvents=4]="UseFsEvents",e[e.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",e))(aV||{}),oV=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(oV||{}),cV=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(cV||{}),rP=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ES2022=7]="ES2022",e[e.ESNext=99]="ESNext",e[e.Node16=100]="Node16",e[e.NodeNext=199]="NodeNext",e[e.Preserve=200]="Preserve",e))(rP||{}),lV=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(lV||{}),uV=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(uV||{}),_V=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(_V||{}),ZO=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(ZO||{}),fV=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(fV||{}),pV=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(pV||{}),dV=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(dV||{}),mV=(e=>(e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab",e))(mV||{}),gV=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(gV||{}),KO=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(KO||{}),eF=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(eF||{}),tF=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(tF||{}),hV=(e=>(e[e.None=0]="None",e[e.TypeScriptClassWrapper=1]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=2]="NeverApplyImportHelper",e[e.IgnoreSourceNewlines=4]="IgnoreSourceNewlines",e[e.Immutable=8]="Immutable",e[e.IndirectCall=16]="IndirectCall",e[e.TransformPrivateStaticElements=32]="TransformPrivateStaticElements",e))(hV||{}),yV=(e=>(e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateObject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",e[e.CreateBinding=4194304]="CreateBinding",e[e.SetFunctionName=8388608]="SetFunctionName",e[e.PropKey=16777216]="PropKey",e[e.AddDisposableResourceAndDisposeResources=33554432]="AddDisposableResourceAndDisposeResources",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=33554432]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes",e))(yV||{}),vV=(e=>(e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement",e[e.JsxAttributeValue=6]="JsxAttributeValue",e[e.ImportTypeNodeAttributes=7]="ImportTypeNodeAttributes",e))(vV||{}),bV=(e=>(e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.Assertions=6]="Assertions",e[e.All=15]="All",e[e.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion",e))(bV||{}),SV=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(SV||{}),xV=(e=>(e.Prologue="prologue",e.EmitHelpers="emitHelpers",e.NoDefaultLib="no-default-lib",e.Reference="reference",e.Type="type",e.TypeResolutionModeRequire="type-require",e.TypeResolutionModeImport="type-import",e.Lib="lib",e.Prepend="prepend",e.Text="text",e.Internal="internal",e))(xV||{}),TV=(e=>(e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.SpaceAfterList=2097152]="SpaceAfterList",e[e.Modifiers=2359808]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",e[e.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ImportAttributes=526226]="ImportAttributes",e[e.ImportClauseEntries=526226]="ImportClauseEntries",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=2146305]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment",e))(TV||{}),kV=(e=>(e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default",e))(kV||{}),W8={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}},CV=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(CV||{})}});function iP(e){let t=5381;for(let r=0;r{G.isClosed=!0,ak(t,G)}}}function u(D){const M=[];return M.pollingInterval=D,M.pollIndex=0,M.pollScheduled=!1,M}function f(D,M){M.pollIndex=d(M,M.pollingInterval,M.pollIndex,iF[M.pollingInterval]),M.length?N(M.pollingInterval):(w.assert(M.pollIndex===0),M.pollScheduled=!1)}function g(D,M){d(r,250,0,r.length),f(D,M),!M.pollScheduled&&r.length&&N(250)}function d(D,M,V,G){return Ube(e,D,V,G,Z);function Z(z,ce,J){J?(z.unchangedPolls=0,D!==r&&(D[ce]=void 0,T(z))):z.unchangedPolls!==H8[M]?z.unchangedPolls++:D===r?(z.unchangedPolls=1,D[ce]=void 0,x(z,250)):M!==2e3&&(z.unchangedPolls++,D[ce]=void 0,x(z,M===250?500:2e3))}}function y(D){switch(D){case 250:return i;case 500:return s;case 2e3:return o}}function x(D,M){y(M).push(D),C(M)}function T(D){r.push(D),C(250)}function C(D){y(D).pollScheduled||N(D)}function N(D){y(D).pollScheduled=e.setTimeout(D===250?g:f,D,D===250?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",y(D))}}function ize(e,t,r,i){const s=Dp(),o=i?new Map:void 0,c=new Map,u=e_(t);return f;function f(d,y,x,T){const C=u(d);s.add(C,y).length===1&&o&&o.set(C,r(d)||fp);const N=oi(C)||".",D=c.get(N)||g(oi(d)||".",N,T);return D.referenceCount++,{close:()=>{D.referenceCount===1?(D.close(),c.delete(N)):D.referenceCount--,s.remove(C,y)}}}function g(d,y,x){const T=e(d,1,(C,N)=>{if(!Ls(N))return;const D=Ss(N,d),M=u(D),V=D&&s.get(M);if(V){let G,Z=1;if(o){const z=o.get(M);if(C==="change"&&(G=r(D)||fp,G.getTime()===z.getTime()))return;G||(G=r(D)||fp),o.set(M,G),z===fp?Z=0:G===fp&&(Z=2)}for(const z of V)z(D,Z,G)}},!1,500,x);return T.referenceCount=0,c.set(y,T),T}}function sze(e){const t=[];let r=0,i;return s;function s(u,f){const g={fileName:u,callback:f,mtime:ck(e,u)};return t.push(g),c(),{close:()=>{g.isClosed=!0,ak(t,g)}}}function o(){i=void 0,r=Ube(e,t,r,iF[250]),c()}function c(){!t.length||i||(i=e.setTimeout(o,2e3,"pollQueue"))}}function Vbe(e,t,r,i,s){const c=e_(t)(r),u=e.get(c);return u?u.callbacks.push(i):e.set(c,{watcher:s((f,g,d)=>{var y;return(y=e.get(c))==null?void 0:y.callbacks.slice().forEach(x=>x(f,g,d))}),callbacks:[i]}),{close:()=>{const f=e.get(c);f&&(!w6(f.callbacks,i)||f.callbacks.length||(e.delete(c),ad(f)))}}}function aze(e,t){const r=e.mtime.getTime(),i=t.getTime();return r!==i?(e.mtime=t,e.callback(e.fileName,EV(r,i),t),!0):!1}function EV(e,t){return e===0?0:t===0?2:1}function q8(e){return Gre(e)}function Wre(e){Gre=e}function oze({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:r,getAccessibleSortedChildDirectories:i,fileSystemEntryExists:s,realpath:o,setTimeout:c,clearTimeout:u}){const f=new Map,g=Dp(),d=new Map;let y;const x=E6(!t),T=e_(t);return(J,ne,ge,ve)=>ge?C(J,ve,ne):e(J,ne,ge,ve);function C(J,ne,ge){const ve=T(J);let Q=f.get(ve);Q?Q.refCount++:(Q={watcher:e(J,se=>{z(se,ne)||(ne!=null&&ne.synchronousWatchDirectory?(N(ve,se),Z(J,ve,ne)):D(J,ve,se,ne))},!1,ne),refCount:1,childWatches:Ke},f.set(ve,Q),Z(J,ve,ne));const X=ge&&{dirName:J,callback:ge};return X&&g.add(ve,X),{dirName:J,close:()=>{const se=w.checkDefined(f.get(ve));X&&g.remove(ve,X),se.refCount--,!se.refCount&&(f.delete(ve),ad(se),se.childWatches.forEach(Cm))}}}function N(J,ne,ge){let ve,Q;Ls(ne)?ve=ne:Q=ne,g.forEach((X,se)=>{if(!(Q&&Q.get(se)===!0)&&(se===J||fs(J,se)&&J[se.length]===yc))if(Q)if(ge){const pe=Q.get(se);pe?pe.push(...ge):Q.set(se,ge.slice())}else Q.set(se,!0);else X.forEach(({callback:pe})=>pe(ve))})}function D(J,ne,ge,ve){const Q=f.get(ne);if(Q&&s(J,1)){M(J,ne,ge,ve);return}N(ne,ge),G(Q)}function M(J,ne,ge,ve){const Q=d.get(ne);Q?Q.fileNames.push(ge):d.set(ne,{dirName:J,options:ve,fileNames:[ge]}),y&&(u(y),y=void 0),y=c(V,1e3,"timerToUpdateChildWatches")}function V(){y=void 0,q8(`sysLog:: onTimerToUpdateChildWatches:: ${d.size}`);const J=cc(),ne=new Map;for(;!y&&d.size;){const ve=d.entries().next();w.assert(!ve.done);const{value:[Q,{dirName:X,options:se,fileNames:pe}]}=ve;d.delete(Q);const we=Z(X,Q,se);N(Q,ne,we?void 0:pe)}q8(`sysLog:: invokingWatchers:: Elapsed:: ${cc()-J}ms:: ${d.size}`),g.forEach((ve,Q)=>{const X=ne.get(Q);X&&ve.forEach(({callback:se,dirName:pe})=>{Ps(X)?X.forEach(se):se(pe)})});const ge=cc()-J;q8(`sysLog:: Elapsed:: ${ge}ms:: onTimerToUpdateChildWatches:: ${d.size} ${y}`)}function G(J){if(!J)return;const ne=J.childWatches;J.childWatches=Ke;for(const ge of ne)ge.close(),G(f.get(T(ge.dirName)))}function Z(J,ne,ge){const ve=f.get(ne);if(!ve)return!1;let Q;const X=RO(s(J,1)?Oi(i(J),we=>{const fe=Ss(we,J);return!z(fe,ge)&&x(fe,ka(o(fe)))===0?fe:void 0}):Ke,ve.childWatches,(we,fe)=>x(we,fe.dirName),se,Cm,pe);return ve.childWatches=Q||Ke,X;function se(we){const fe=C(we,ge);pe(fe)}function pe(we){(Q||(Q=[])).push(we)}}function z(J,ne){return Pe(G8,ge=>ce(J,ge))||Wbe(J,ne,t,r)}function ce(J,ne){return J.includes(ne)?!0:t?!1:T(J).includes(ne)}}function cze(e){return(t,r,i)=>e(r===1?"change":"rename","",i)}function lze(e,t,r){return(i,s,o)=>{i==="rename"?(o||(o=r(e)||fp),t(e,o!==fp?0:2,o)):t(e,1,o)}}function Wbe(e,t,r,i){return((t==null?void 0:t.excludeDirectories)||(t==null?void 0:t.excludeFiles))&&(xM(e,t==null?void 0:t.excludeFiles,r,i())||xM(e,t==null?void 0:t.excludeDirectories,r,i()))}function qbe(e,t,r,i,s){return(o,c)=>{if(o==="rename"){const u=c?ka(Zr(e,c)):e;(!c||!Wbe(u,r,i,s))&&t(u)}}}function qre({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:r,clearTimeout:i,fsWatchWorker:s,fileSystemEntryExists:o,useCaseSensitiveFileNames:c,getCurrentDirectory:u,fsSupportsRecursiveFsWatch:f,getAccessibleSortedChildDirectories:g,realpath:d,tscWatchFile:y,useNonPollingWatchers:x,tscWatchDirectory:T,inodeWatching:C,fsWatchWithTimestamp:N,sysLog:D}){const M=new Map,V=new Map,G=new Map;let Z,z,ce,J,ne=!1;return{watchFile:ge,watchDirectory:pe};function ge(Se,Ee,Ae,Le){Le=X(Le,x);const Tt=w.checkDefined(Le.watchFile);switch(Tt){case 0:return ie(Se,Ee,250,void 0);case 1:return ie(Se,Ee,Ae,void 0);case 2:return ve()(Se,Ee,Ae,void 0);case 3:return Q()(Se,Ee,void 0,void 0);case 4:return ye(Se,0,lze(Se,Ee,t),!1,Ae,z7(Le));case 5:return ce||(ce=ize(ye,c,t,N)),ce(Se,Ee,Ae,z7(Le));default:w.assertNever(Tt)}}function ve(){return Z||(Z=rze({getModifiedTime:t,setTimeout:r}))}function Q(){return z||(z=sze({getModifiedTime:t,setTimeout:r}))}function X(Se,Ee){if(Se&&Se.watchFile!==void 0)return Se;switch(y){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return se(4,1,Se);case"UseFsEventsWithFallbackDynamicPolling":return se(4,2,Se);case"UseFsEventsOnParentDirectory":Ee=!0;default:return Ee?se(5,1,Se):{watchFile:4}}}function se(Se,Ee,Ae){const Le=Ae==null?void 0:Ae.fallbackPolling;return{watchFile:Se,fallbackPolling:Le===void 0?Ee:Le}}function pe(Se,Ee,Ae,Le){return f?ye(Se,1,qbe(Se,Ee,Le,c,u),Ae,500,z7(Le)):(J||(J=oze({useCaseSensitiveFileNames:c,getCurrentDirectory:u,fileSystemEntryExists:o,getAccessibleSortedChildDirectories:g,watchDirectory:we,realpath:d,setTimeout:r,clearTimeout:i})),J(Se,Ee,Ae,Le))}function we(Se,Ee,Ae,Le){w.assert(!Ae);const Tt=fe(Le),xe=w.checkDefined(Tt.watchDirectory);switch(xe){case 1:return ie(Se,()=>Ee(Se),500,void 0);case 2:return ve()(Se,()=>Ee(Se),500,void 0);case 3:return Q()(Se,()=>Ee(Se),void 0,void 0);case 0:return ye(Se,1,qbe(Se,Ee,Le,c,u),Ae,500,z7(Tt));default:w.assertNever(xe)}}function fe(Se){if(Se&&Se.watchDirectory!==void 0)return Se;switch(T){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:const Ee=Se==null?void 0:Se.fallbackPolling;return{watchDirectory:0,fallbackPolling:Ee!==void 0?Ee:void 0}}}function ie(Se,Ee,Ae,Le){return Vbe(M,c,Se,Ee,Tt=>e(Se,Tt,Ae,Le))}function ye(Se,Ee,Ae,Le,Tt,xe){return Vbe(Le?G:V,c,Se,Ae,ze=>Ne(Se,Ee,ze,Le,Tt,xe))}function Ne(Se,Ee,Ae,Le,Tt,xe){let ze,st;C&&(ze=Se.substring(Se.lastIndexOf(yc)),st=ze.slice(yc.length));let zt=o(Se,Ee)?$e():sn();return{close:()=>{zt&&(zt.close(),zt=void 0)}};function yt(In){zt&&(D(`sysLog:: ${Se}:: Changing watcher to ${In===$e?"Present":"Missing"}FileSystemEntryWatcher`),zt.close(),zt=In())}function $e(){if(ne)return D(`sysLog:: ${Se}:: Defaulting to watchFile`),nn();try{const In=(Ee===1||!N?s:Ue)(Se,Le,C?kt:Ae);return In.on("error",()=>{Ae("rename",""),yt(sn)}),In}catch(In){return ne||(ne=In.code==="ENOSPC"),D(`sysLog:: ${Se}:: Changing to watchFile`),nn()}}function kt(In,Zn){let hn;if(Zn&&Jc(Zn,"~")&&(hn=Zn,Zn=Zn.slice(0,Zn.length-1)),In==="rename"&&(!Zn||Zn===st||Jc(Zn,ze))){const Zt=t(Se)||fp;hn&&Ae(In,hn,Zt),Ae(In,Zn,Zt),C?yt(Zt===fp?sn:$e):Zt===fp&&yt(sn)}else hn&&Ae(In,hn),Ae(In,Zn)}function nn(){return ge(Se,cze(Ae),Tt,xe)}function sn(){return ge(Se,(In,Zn,hn)=>{Zn===0&&(hn||(hn=t(Se)||fp),hn!==fp&&(Ae("rename","",hn),yt($e)))},Tt,xe)}}function Ue(Se,Ee,Ae){let Le=t(Se)||fp;return s(Se,Ee,(Tt,xe,ze)=>{Tt==="change"&&(ze||(ze=t(Se)||fp),ze.getTime()===Le.getTime())||(Le=ze||t(Se)||fp,Ae(Tt,xe,Le))})}}function Hre(e){const t=e.writeFile;e.writeFile=(r,i,s)=>lq(r,i,!!s,(o,c,u)=>t.call(e,o,c,u),o=>e.createDirectory(o),o=>e.directoryExists(o))}function Hbe(e){Bu=e}var PV,nF,fp,rF,iF,H8,G8,Gre,wV,Bu,uze=K({"src/compiler/sys.ts"(){ua(),PV=(e=>(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(PV||{}),nF=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(nF||{}),fp=new Date(0),rF={Low:32,Medium:64,High:256},iF=Vre(rF),H8=Vre(rF),G8=["/node_modules/.","/.git","/.#"],Gre=ao,wV=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(wV||{}),Bu=(()=>{const e="\uFEFF";function t(){const i=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,s=m6,o=m6,c=m6;let u;try{u=m6}catch{u=void 0}let f,g="./profile.cpuprofile";const d=m6.Buffer,y=process.platform==="darwin",x=process.platform==="linux"||y,T=c.platform(),C=Q(),N=s.realpathSync.native?process.platform==="win32"?Le:s.realpathSync.native:s.realpathSync,D=__filename.endsWith("sys.js")?o.join(o.dirname(__dirname),"__fake__.js"):__filename,M=process.platform==="win32"||y,V=X_(()=>process.cwd()),{watchFile:G,watchDirectory:Z}=qre({pollingWatchFileWorker:se,getModifiedTime:xe,setTimeout,clearTimeout,fsWatchWorker:pe,useCaseSensitiveFileNames:C,getCurrentDirectory:V,fileSystemEntryExists:Ue,fsSupportsRecursiveFsWatch:M,getAccessibleSortedChildDirectories:yt=>ye(yt).directories,realpath:Tt,tscWatchFile:E.TSC_WATCHFILE,useNonPollingWatchers:!!E.TSC_NONPOLLING_WATCHER,tscWatchDirectory:E.TSC_WATCHDIRECTORY,inodeWatching:x,fsWatchWithTimestamp:y,sysLog:q8}),z={args:process.argv.slice(2),newLine:c.EOL,useCaseSensitiveFileNames:C,write(yt){process.stdout.write(yt)},getWidthOfTerminal(){return process.stdout.columns},writeOutputIsTTY(){return process.stdout.isTTY},readFile:fe,writeFile:ie,watchFile:G,watchDirectory:Z,resolvePath:yt=>o.resolve(yt),fileExists:Se,directoryExists:Ee,getAccessibleFileSystemEntries:ye,createDirectory(yt){if(!z.directoryExists(yt))try{s.mkdirSync(yt)}catch($e){if($e.code!=="EEXIST")throw $e}},getExecutingFilePath(){return D},getCurrentDirectory:V,getDirectories:Ae,getEnvironmentVariable(yt){return E[yt]||""},readDirectory:Ne,getModifiedTime:xe,setModifiedTime:ze,deleteFile:st,createHash:u?zt:iP,createSHA256Hash:u?zt:void 0,getMemoryUsage(){return nje.gc&&nje.gc(),process.memoryUsage().heapUsed},getFileSize(yt){try{const $e=ce(yt);if($e!=null&&$e.isFile())return $e.size}catch{}return 0},exit(yt){ge(()=>process.exit(yt))},enableCPUProfiler:J,disableCPUProfiler:ge,cpuProfilingEnabled:()=>!!f||Ai(process.execArgv,"--cpu-prof")||Ai(process.execArgv,"--prof"),realpath:Tt,debugMode:!!E.NODE_INSPECTOR_IPC||!!E.VSCODE_INSPECTOR_OPTIONS||Pe(process.execArgv,yt=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(yt))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{m6.install()}catch{}},setTimeout,clearTimeout,clearScreen:()=>{process.stdout.write("\x1Bc")},setBlocking:()=>{var yt;const $e=(yt=process.stdout)==null?void 0:yt._handle;$e&&$e.setBlocking&&$e.setBlocking(!0)},bufferFrom:ve,base64decode:yt=>ve(yt,"base64").toString("utf8"),base64encode:yt=>ve(yt).toString("base64"),require:(yt,$e)=>{try{const kt=zce($e,yt,z);return{module:rje(kt),modulePath:kt,error:void 0}}catch(kt){return{module:void 0,modulePath:void 0,error:kt}}}};return z;function ce(yt){return s.statSync(yt,{throwIfNoEntry:!1})}function J(yt,$e){if(f)return $e(),!1;const kt=m6;if(!kt||!kt.Session)return $e(),!1;const nn=new kt.Session;return nn.connect(),nn.post("Profiler.enable",()=>{nn.post("Profiler.start",()=>{f=nn,g=yt,$e()})}),!0}function ne(yt){let $e=0;const kt=new Map,nn=t_(o.dirname(D)),sn=`file://${zg(nn)===1?"":"/"}${nn}`;for(const In of yt.nodes)if(In.callFrame.url){const Zn=t_(In.callFrame.url);Xd(sn,Zn,C)?In.callFrame.url=uk(sn,Zn,sn,e_(C),!0):i.test(Zn)||(In.callFrame.url=(kt.has(Zn)?kt:kt.set(Zn,`external${$e}.js`)).get(Zn),$e++)}return yt}function ge(yt){if(f&&f!=="stopping"){const $e=f;return f.post("Profiler.stop",(kt,{profile:nn})=>{var sn;if(!kt){try{(sn=ce(g))!=null&&sn.isDirectory()&&(g=o.join(g,`${new Date().toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`))}catch{}try{s.mkdirSync(o.dirname(g),{recursive:!0})}catch{}s.writeFileSync(g,JSON.stringify(ne(nn)))}f=void 0,$e.disconnect(),yt()}),f="stopping",!0}else return yt(),!1}function ve(yt,$e){return d.from&&d.from!==Int8Array.from?d.from(yt,$e):new d(yt,$e)}function Q(){return T==="win32"||T==="win64"?!1:!Se(X(__filename))}function X(yt){return yt.replace(/\w/g,$e=>{const kt=$e.toUpperCase();return $e===kt?$e.toLowerCase():kt})}function se(yt,$e,kt){s.watchFile(yt,{persistent:!0,interval:kt},sn);let nn;return{close:()=>s.unwatchFile(yt,sn)};function sn(In,Zn){const hn=+Zn.mtime==0||nn===2;if(+In.mtime==0){if(hn)return;nn=2}else if(hn)nn=0;else{if(+In.mtime==+Zn.mtime)return;nn=1}$e(yt,nn,In.mtime)}}function pe(yt,$e,kt){return s.watch(yt,M?{persistent:!0,recursive:!!$e}:{persistent:!0},kt)}function we(yt,$e){let kt;try{kt=s.readFileSync(yt)}catch{return}let nn=kt.length;if(nn>=2&&kt[0]===254&&kt[1]===255){nn&=-2;for(let sn=0;sn=2&&kt[0]===255&&kt[1]===254?kt.toString("utf16le",2):nn>=3&&kt[0]===239&&kt[1]===187&&kt[2]===191?kt.toString("utf8",3):kt.toString("utf8")}function fe(yt,$e){var kt,nn;(kt=A_)==null||kt.logStartReadFile(yt);const sn=we(yt);return(nn=A_)==null||nn.logStopReadFile(),sn}function ie(yt,$e,kt){var nn;(nn=A_)==null||nn.logEvent("WriteFile: "+yt),kt&&($e=e+$e);let sn;try{sn=s.openSync(yt,"w"),s.writeSync(sn,$e,void 0,"utf8")}finally{sn!==void 0&&s.closeSync(sn)}}function ye(yt){var $e;($e=A_)==null||$e.logEvent("ReadDir: "+(yt||"."));try{const kt=s.readdirSync(yt||".",{withFileTypes:!0}),nn=[],sn=[];for(const In of kt){const Zn=typeof In=="string"?In:In.name;if(Zn==="."||Zn==="..")continue;let hn;if(typeof In=="string"||In.isSymbolicLink()){const Zt=Zr(yt,Zn);try{if(hn=ce(Zt),!hn)continue}catch{continue}}else hn=In;hn.isFile()?nn.push(Zn):hn.isDirectory()&&sn.push(Zn)}return nn.sort(),sn.sort(),{files:nn,directories:sn}}catch{return fL}}function Ne(yt,$e,kt,nn,sn){return Iq(yt,$e,kt,nn,C,process.cwd(),sn,ye,Tt)}function Ue(yt,$e){const kt=Error.stackTraceLimit;Error.stackTraceLimit=0;try{const nn=ce(yt);if(!nn)return!1;switch($e){case 0:return nn.isFile();case 1:return nn.isDirectory();default:return!1}}catch{return!1}finally{Error.stackTraceLimit=kt}}function Se(yt){return Ue(yt,0)}function Ee(yt){return Ue(yt,1)}function Ae(yt){return ye(yt).directories.slice()}function Le(yt){return yt.length<260?s.realpathSync.native(yt):s.realpathSync(yt)}function Tt(yt){try{return N(yt)}catch{return yt}}function xe(yt){var $e;const kt=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return($e=ce(yt))==null?void 0:$e.mtime}catch{return}finally{Error.stackTraceLimit=kt}}function ze(yt,$e){try{s.utimesSync(yt,$e,$e)}catch{return}}function st(yt){try{return s.unlinkSync(yt)}catch{return}}function zt(yt){const $e=u.createHash("sha256");return $e.update(yt),$e.digest("hex")}}let r;return yU()&&(r=t()),r&&Hre(r),r})(),Bu&&Bu.getEnvironmentVariable&&(nze(Bu),w.setAssertionLevel(/^development$/i.test(Bu.getEnvironmentVariable("NODE_ENV"))?1:0)),Bu&&Bu.debugMode&&(w.isDebugging=!0)}});function DV(e){return e===47||e===92}function $re(e){return sF(e)<0}function zf(e){return sF(e)>0}function AV(e){const t=sF(e);return t>0&&t===e.length}function sP(e){return sF(e)!==0}function pp(e){return/^\.\.?($|[\\/])/.test(e)}function NV(e){return!sP(e)&&!pp(e)}function lk(e){return xl(e).includes(".")}function zc(e,t){return e.length>t.length&&Jc(e,t)}function Vl(e,t){for(const r of t)if(zc(e,r))return!0;return!1}function _y(e){return e.length>0&&DV(e.charCodeAt(e.length-1))}function Gbe(e){return e>=97&&e<=122||e>=65&&e<=90}function _ze(e,t){const r=e.charCodeAt(t);if(r===58)return t+1;if(r===37&&e.charCodeAt(t+1)===51){const i=e.charCodeAt(t+2);if(i===97||i===65)return t+3}return-1}function sF(e){if(!e)return 0;const t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;const i=e.indexOf(t===47?yc:Y8,2);return i<0?e.length:i+1}if(Gbe(t)&&e.charCodeAt(1)===58){const i=e.charCodeAt(2);if(i===47||i===92)return 3;if(e.length===2)return 2}const r=e.indexOf(Yre);if(r!==-1){const i=r+Yre.length,s=e.indexOf(yc,i);if(s!==-1){const o=e.slice(0,r),c=e.slice(i,s);if(o==="file"&&(c===""||c==="localhost")&&Gbe(e.charCodeAt(s+1))){const u=_ze(e,s+2);if(u!==-1){if(e.charCodeAt(u)===47)return~(u+1);if(u===e.length)return~u}}return~(s+1)}return~e.length}return 0}function zg(e){const t=sF(e);return t<0?~t:t}function oi(e){e=t_(e);const t=zg(e);return t===e.length?e:(e=Bv(e),e.slice(0,Math.max(t,e.lastIndexOf(yc))))}function xl(e,t,r){if(e=t_(e),zg(e)===e.length)return"";e=Bv(e);const s=e.slice(Math.max(zg(e),e.lastIndexOf(yc)+1)),o=t!==void 0&&r!==void 0?F6(s,t,r):void 0;return o?s.slice(0,s.length-o.length):s}function $be(e,t,r){if(fs(t,".")||(t="."+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){const i=e.slice(e.length-t.length);if(r(i,t))return i}}function fze(e,t,r){if(typeof t=="string")return $be(e,t,r)||"";for(const i of t){const s=$be(e,i,r);if(s)return s}return""}function F6(e,t,r){if(t)return fze(Bv(e),t,r?jv:WS);const i=xl(e),s=i.lastIndexOf(".");return s>=0?i.substring(s):""}function pze(e,t){const r=e.substring(0,t),i=e.substring(t).split(yc);return i.length&&!pc(i)&&i.pop(),[r,...i]}function au(e,t=""){return e=Zr(t,e),pze(e,zg(e))}function c1(e,t){return e.length===0?"":(e[0]&&ou(e[0]))+e.slice(1,t).join(yc)}function t_(e){return e.includes("\\")?e.replace(Ybe,yc):e}function $S(e){if(!Pe(e))return[];const t=[e[0]];for(let r=1;r1){if(t[t.length-1]!==".."){t.pop();continue}}else if(t[0])continue}t.push(i)}}return t}function Zr(e,...t){e&&(e=t_(e));for(let r of t)r&&(r=t_(r),!e||zg(r)!==0?e=r:e=ou(e)+r);return e}function l1(e,...t){return ka(Pe(t)?Zr(e,...t):t_(e))}function $8(e,t){return $S(au(e,t))}function Ss(e,t){return c1($8(e,t))}function ka(e){if(e=t_(e),!oF.test(e))return e;const t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!oF.test(e)))return e;const r=c1($S(au(e)));return r&&_y(e)?ou(r):r}function dze(e){return e.length===0?"":e.slice(1).join(yc)}function IV(e,t){return dze($8(e,t))}function hc(e,t,r){const i=zf(e)?ka(e):Ss(e,t);return r(i)}function Bv(e){return _y(e)?e.substr(0,e.length-1):e}function ou(e){return _y(e)?e:e+yc}function ob(e){return!sP(e)&&!pp(e)?"./"+e:e}function X8(e,t,r,i){const s=r!==void 0&&i!==void 0?F6(e,r,i):F6(e);return s?e.slice(0,e.length-s.length)+(fs(t,".")?t:"."+t):e}function Xre(e,t){const r=KH(e);return r?e.slice(0,e.length-r.length)+(fs(t,".")?t:"."+t):X8(e,t)}function Qre(e,t,r){if(e===t)return 0;if(e===void 0)return-1;if(t===void 0)return 1;const i=e.substring(0,zg(e)),s=t.substring(0,zg(t)),o=OO(i,s);if(o!==0)return o;const c=e.substring(i.length),u=t.substring(s.length);if(!oF.test(c)&&!oF.test(u))return r(c,u);const f=$S(au(e)),g=$S(au(t)),d=Math.min(f.length,g.length);for(let y=1;y0==zg(t)>0,"Paths must either both be absolute or both be relative");const o=FV(e,t,(typeof r=="boolean"?r:!1)?jv:WS,typeof r=="function"?r:dc);return c1(o)}function aP(e,t,r){return zf(e)?uk(t,e,t,r,!1):e}function Q8(e,t,r){return ob(Qd(oi(e),t,r))}function uk(e,t,r,i,s){const o=FV(l1(r,e),l1(r,t),WS,i),c=o[0];if(s&&zf(c)){const u=c.charAt(0)===yc?"file://":"file:///";o[0]=u+c}return c1(o)}function Yd(e,t){for(;;){const r=t(e);if(r!==void 0)return r;const i=oi(e);if(i===e)return;e=i}}function aF(e){return Jc(e,"/node_modules")}var yc,Y8,Yre,Ybe,oF,mze=K({"src/compiler/path.ts"(){ua(),yc="/",Y8="\\",Yre="://",Ybe=/\\/g,oF=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/}});function S(e,t,r,i,s,o,c){return{code:e,category:t,key:r,message:i,reportsUnnecessary:s,elidedInCompatabilityPyramid:o,reportsDeprecated:c}}var p,gze=K({"src/compiler/diagnosticInformationMap.generated.ts"(){Jbe(),p={Unterminated_string_literal:S(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:S(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:S(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:S(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:S(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:S(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:S(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:S(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:S(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:S(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:S(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:S(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:S(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:S(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:S(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:S(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:S(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:S(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:S(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:S(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:S(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:S(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:S(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:S(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:S(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:S(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:S(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:S(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:S(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:S(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:S(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:S(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:S(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:S(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:S(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:S(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:S(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:S(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:S(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:S(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:S(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:S(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:S(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:S(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:S(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:S(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:S(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:S(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:S(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:S(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:S(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:S(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:S(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:S(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:S(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:S(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:S(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:S(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:S(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:S(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:S(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:S(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:S(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:S(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:S(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:S(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:S(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:S(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:S(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:S(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:S(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:S(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:S(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:S(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:S(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:S(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:S(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:S(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:S(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:S(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:S(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:S(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:S(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:S(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:S(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:S(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:S(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:S(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:S(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:S(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:S(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:S(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:S(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:S(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:S(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:S(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:S(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:S(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:S(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:S(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:S(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:S(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:S(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:S(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:S(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:S(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:S(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:S(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:S(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:S(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:S(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:S(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:S(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:S(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:S(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),_0_declarations_must_be_initialized:S(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:S(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:S(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:S(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:S(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:S(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:S(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:S(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:S(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:S(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:S(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:S(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:S(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:S(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:S(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:S(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:S(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:S(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:S(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:S(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:S(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:S(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:S(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:S(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:S(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:S(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:S(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:S(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:S(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:S(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:S(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:S(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:S(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:S(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:S(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:S(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:S(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:S(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:S(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:S(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:S(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:S(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:S(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202",`Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.`),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:S(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:S(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:S(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:S(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:S(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:S(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:S(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:S(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:S(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:S(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:S(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:S(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:S(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:S(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:S(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:S(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:S(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:S(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:S(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:S(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:S(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:S(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:S(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:S(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:S(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:S(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:S(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:S(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:S(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:S(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:S(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:S(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:S(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:S(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:S(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:S(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:S(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:S(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:S(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:S(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:S(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:S(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:S(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:S(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:S(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:S(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:S(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:S(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:S(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:S(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:S(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:S(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:S(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:S(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:S(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:S(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:S(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:S(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:S(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:S(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:S(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:S(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:S(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:S(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:S(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:S(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:S(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:S(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:S(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:S(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:S(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:S(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:S(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:S(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:S(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:S(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:S(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:S(1286,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286","ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:S(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:S(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:S(1289,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:S(1290,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:S(1291,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:S(1292,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),with_statements_are_not_allowed_in_an_async_function_block:S(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:S(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:S(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:S(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:S(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:S(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:S(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:S(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:S(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:S(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:S(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:S(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:S(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:S(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:S(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext:S(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'."),Argument_of_dynamic_import_cannot_be_spread_element:S(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:S(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:S(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:S(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:S(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:S(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:S(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:S(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:S(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:S(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:S(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:S(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:S(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:S(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:S(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:S(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:S(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:S(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:S(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:S(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:S(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:S(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:S(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:S(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:S(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:S(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:S(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:S(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:S(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:S(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:S(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:S(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:S(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:S(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:S(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:S(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:S(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:S(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:S(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:S(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:S(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:S(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:S(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:S(1371,1,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:S(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:S(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:S(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:S(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:S(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:S(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:S(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:S(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:S(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:S(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:S(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:S(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:S(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:S(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:S(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:S(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:S(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:S(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:S(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:S(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:S(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:S(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:S(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:S(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:S(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:S(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:S(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:S(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:S(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:S(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:S(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:S(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:S(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:S(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:S(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:S(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:S(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:S(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:S(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:S(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:S(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:S(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:S(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:S(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:S(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:S(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:S(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:S(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:S(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:S(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:S(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:S(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:S(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:S(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:S(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:S(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:S(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:S(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:S(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:S(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:S(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:S(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:S(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:S(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:S(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:S(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:S(1444,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444","'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:S(1446,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:S(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:S(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments:S(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:S(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_should_be_either_require_or_import:S(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:S(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:S(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:S(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:S(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:S(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",`File is ECMAScript module because '{0}' has field "type" with value "module"`),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:S(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",`File is CommonJS module because '{0}' has field "type" whose value is not "module"`),File_is_CommonJS_module_because_0_does_not_have_field_type:S(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460",`File is CommonJS module because '{0}' does not have field "type"`),File_is_CommonJS_module_because_package_json_was_not_found:S(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:S(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:S(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:S(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:S(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:S(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:S(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:S(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:S(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:S(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:S(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:S(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:S(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479",`The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("{0}")' call instead.`),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:S(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:S(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481",`To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field \`"type": "module"\` to '{1}'.`),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:S(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:S(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:S(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:S(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:S(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:S(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:S(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:S(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:S(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:S(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:S(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:S(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:S(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:S(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:S(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),The_types_of_0_are_incompatible_between_these_types:S(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:S(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:S(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:S(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:S(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:S(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:S(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:S(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:S(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:S(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:S(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:S(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:S(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:S(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:S(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:S(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:S(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:S(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:S(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:S(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:S(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:S(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:S(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:S(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:S(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:S(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:S(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:S(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:S(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:S(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:S(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:S(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:S(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:S(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:S(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:S(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:S(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:S(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:S(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:S(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:S(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:S(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:S(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:S(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:S(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:S(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:S(2333,1,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:S(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:S(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:S(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:S(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:S(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:S(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:S(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:S(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:S(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:S(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:S(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Untyped_function_calls_may_not_accept_type_arguments:S(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:S(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:S(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:S(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:S(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:S(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:S(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:S(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value:S(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:S(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:S(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:S(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:S(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:S(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:S(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:S(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:S(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:S(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:S(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:S(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:S(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:S(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:S(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:S(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:S(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:S(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:S(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:S(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:S(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:S(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:S(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:S(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:S(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:S(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:S(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:S(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:S(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:S(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:S(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:S(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:S(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:S(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:S(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:S(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:S(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:S(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:S(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:S(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:S(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:S(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:S(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:S(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:S(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:S(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:S(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:S(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:S(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:S(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:S(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:S(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:S(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:S(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:S(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:S(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:S(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:S(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:S(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:S(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:S(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:S(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:S(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:S(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:S(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:S(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:S(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:S(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:S(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:S(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:S(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:S(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:S(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:S(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:S(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:S(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:S(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:S(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:S(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:S(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:S(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:S(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:S(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:S(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:S(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:S(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:S(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:S(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:S(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:S(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:S(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:S(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:S(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:S(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:S(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:S(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:S(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:S(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:S(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:S(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:S(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:S(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:S(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:S(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:S(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:S(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:S(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:S(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:S(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:S(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:S(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:S(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:S(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:S(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:S(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:S(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:S(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:S(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:S(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:S(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:S(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:S(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:S(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:S(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:S(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:S(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:S(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:S(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:S(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:S(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:S(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:S(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:S(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:S(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:S(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:S(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:S(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:S(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:S(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:S(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:S(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:S(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:S(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:S(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:S(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:S(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:S(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:S(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:S(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:S(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:S(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:S(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:S(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:S(2525,1,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:S(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:S(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:S(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:S(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:S(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:S(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:S(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:S(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:S(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:S(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:S(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:S(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:S(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:S(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:S(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:S(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:S(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:S(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:S(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:S(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:S(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:S(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:S(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:S(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:S(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:S(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:S(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:S(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:S(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:S(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:S(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:S(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:S(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:S(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:S(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:S(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:S(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:S(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:S(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:S(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:S(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:S(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:S(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:S(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:S(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:S(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:S(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:S(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:S(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:S(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:S(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:S(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:S(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:S(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:S(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:S(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:S(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:S(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:S(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:S(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:S(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:S(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:S(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:S(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:S(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:S(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:S(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:S(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:S(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:S(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:S(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:S(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:S(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:S(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:S(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:S(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:S(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:S(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:S(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:S(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:S(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:S(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:S(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:S(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:S(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:S(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:S(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:S(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:S(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:S(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:S(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:S(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:S(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:S(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:S(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:S(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:S(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:S(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:S(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:S(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:S(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:S(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:S(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),JSX_expressions_must_have_one_parent_element:S(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:S(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:S(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:S(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:S(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:S(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:S(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:S(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:S(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:S(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:S(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:S(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:S(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:S(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:S(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:S(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:S(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:S(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:S(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:S(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:S(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:S(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:S(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:S(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:S(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:S(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:S(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:S(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:S(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:S(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:S(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:S(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:S(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:S(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:S(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:S(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:S(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:S(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:S(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:S(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:S(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:S(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:S(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:S(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:S(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:S(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:S(2705,1,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:S(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:S(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:S(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:S(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:S(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:S(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:S(2712,1,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:S(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713",`Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}["{1}"]'?`),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:S(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:S(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:S(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:S(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:S(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:S(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:S(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:S(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:S(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:S(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:S(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:S(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:S(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:S(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:S(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:S(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:S(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:S(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:S(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:S(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:S(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:S(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:S(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:S(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:S(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:S(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:S(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:S(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:S(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:S(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:S(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:S(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:S(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:S(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:S(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:S(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:S(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:S(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:S(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:S(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:S(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:S(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:S(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:S(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:S(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:S(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:S(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:S(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:S(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:S(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:S(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:S(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:S(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:S(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:S(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:S(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:S(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:S(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:S(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:S(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:S(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:S(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:S(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:S(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:S(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:S(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:S(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:S(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:S(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:S(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:S(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:S(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:S(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:S(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:S(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:S(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:S(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:S(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:S(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:S(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:S(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:S(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:S(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:S(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:S(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:S(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:S(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:S(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:S(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:S(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:S(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:S(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:S(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:S(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:S(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:S(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:S(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:S(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:S(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:S(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:S(2815,1,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:S(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:S(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:S(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:S(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:S(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:S(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:S(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:S(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Cannot_find_namespace_0_Did_you_mean_1:S(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:S(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:S(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:S(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:S(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:S(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:S(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types:S(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:S(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:S(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:S(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:S(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:S(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:S(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:S(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:S(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:S(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:S(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:S(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:S(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:S(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:S(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:S(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:S(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:S(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:S(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:S(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:S(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:S(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:S(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:S(2865,1,"Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865","Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled."),Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:S(2866,1,"Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866","Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:S(2867,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:S(2868,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig."),Import_declaration_0_is_using_private_name_1:S(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:S(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:S(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:S(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:S(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:S(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:S(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:S(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:S(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:S(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:S(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:S(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:S(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:S(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:S(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:S(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:S(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:S(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:S(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:S(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:S(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:S(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:S(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:S(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:S(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:S(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:S(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:S(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:S(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:S(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:S(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:S(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:S(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:S(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:S(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:S(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:S(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:S(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:S(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:S(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:S(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:S(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:S(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:S(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:S(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:S(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:S(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:S(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:S(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:S(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:S(4060,1,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:S(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:S(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:S(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:S(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:S(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:S(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:S(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:S(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:S(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:S(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:S(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:S(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:S(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:S(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:S(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:S(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:S(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:S(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:S(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:S(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:S(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:S(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:S(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:S(4090,1,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:S(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:S(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:S(4094,1,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:S(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:S(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:S(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:S(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:S(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:S(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:S(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:S(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:S(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:S(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:S(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:S(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:S(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:S(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:S(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:S(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:S(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:S(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:S(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:S(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:S(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:S(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:S(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:S(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:S(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:S(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:S(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:S(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:S(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:S(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:S(4125,1,"Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125","Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:S(4126,1,"One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126","One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),The_current_host_does_not_support_the_0_option:S(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:S(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:S(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:S(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:S(5014,1,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:S(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:S(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:S(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:S(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:S(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:S(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_cannot_be_specified_when_option_target_is_ES3:S(5048,1,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:S(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:S(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:S(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:S(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:S(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:S(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:S(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:S(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:S(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:S(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:S(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:S(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:S(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:S(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:S(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:S(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:S(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:S(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:S(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd:S(5071,1,"Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071","Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'."),Unknown_build_option_0:S(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:S(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:S(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:S(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:S(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:S(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:S(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:S(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:S(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:S(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:S(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:S(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:S(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:S(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:S(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:S(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:S(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:S(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:S(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:S(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:S(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:S(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later:S(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:S(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:S(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:S(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:S(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101",`Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`),Option_0_has_been_removed_Please_remove_it_from_your_configuration:S(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:S(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:S(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:S(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:S(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:S(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107",`Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:S(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:S(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:S(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:S(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:S(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:S(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:S(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:S(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:S(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:S(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:S(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:S(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:S(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:S(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:S(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:S(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:S(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:S(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:S(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:S(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:S(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:S(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:S(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:S(6024,3,"options_6024","options"),file:S(6025,3,"file_6025","file"),Examples_Colon_0:S(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:S(6027,3,"Options_Colon_6027","Options:"),Version_0:S(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:S(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:S(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:S(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:S(6034,3,"KIND_6034","KIND"),FILE:S(6035,3,"FILE_6035","FILE"),VERSION:S(6036,3,"VERSION_6036","VERSION"),LOCATION:S(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:S(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:S(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:S(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:S(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:S(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:S(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:S(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:S(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:S(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unable_to_open_file_0:S(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:S(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:S(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:S(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:S(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:S(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:S(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:S(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:S(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:S(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:S(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:S(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:S(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:S(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:S(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:S(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:S(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:S(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:S(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:S(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:S(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:S(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:S(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:S(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:S(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),Only_amd_and_system_modules_are_supported_alongside_0:S(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:S(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:S(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:S(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:S(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:S(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:S(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:S(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:S(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:S(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:S(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:S(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:S(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:S(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:S(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:S(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:S(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:S(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:S(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:S(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:S(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:S(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:S(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:S(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:S(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:S(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:S(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:S(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:S(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:S(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:S(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:S(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:S(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:S(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:S(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:S(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:S(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:S(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:S(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:S(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:S(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:S(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:S(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:S(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:S(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:S(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:S(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:S(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:S(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:S(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:S(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:S(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:S(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:S(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:S(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:S(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:S(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:S(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:S(6145,3,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:S(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:S(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:S(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:S(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:S(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:S(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:S(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:S(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:S(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:S(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:S(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:S(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:S(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:S(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:S(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:S(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:S(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:S(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:S(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:S(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:S(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:S(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:S(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:S(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:S(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:S(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:S(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:S(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:S(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:S(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:S(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:S(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:S(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:S(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:S(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:S(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:S(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:S(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:S(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:S(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:S(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:S(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:S(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:S(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:S(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:S(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:S(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:S(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:S(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:S(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:S(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:S(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:S(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:S(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:S(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:S(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:S(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:S(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:S(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:S(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:S(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:S(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:S(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:S(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:S(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:S(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:S(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:S(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:S(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:S(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:S(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:S(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:S(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:S(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:S(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:S(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:S(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:S(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:S(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:S(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:S(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:S(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:S(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:S(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:S(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:S(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:S(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:S(6244,3,"Modules_6244","Modules"),File_Management:S(6245,3,"File_Management_6245","File Management"),Emit:S(6246,3,"Emit_6246","Emit"),JavaScript_Support:S(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:S(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:S(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:S(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:S(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:S(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:S(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:S(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:S(6255,3,"Projects_6255","Projects"),Output_Formatting:S(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:S(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:S(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:S(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:S(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:S(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:S(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:S(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:S(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:S(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:S(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:S(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:S(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:S(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:S(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:S(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:S(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:S(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:S(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:S(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278",`There are types at '{0}', but this result could not be resolved when respecting package.json "exports". The '{1}' library may need to update its package.json or typings.`),Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:S(6279,3,"Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279","Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:S(6280,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280","There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'."),Enable_project_compilation:S(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:S(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:S(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:S(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306",`Referenced project '{0}' must have setting "composite": true.`),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:S(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:S(6308,1,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:S(6309,1,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:S(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:S(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:S(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:S(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:S(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:S(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:S(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:S(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:S(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:S(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:S(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:S(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:S(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:S(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:S(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:S(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:S(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:S(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:S(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:S(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:S(6372,3,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:S(6373,3,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:S(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:S(6375,3,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:S(6376,3,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:S(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:S(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:S(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:S(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:S(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:S(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:S(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:S(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:S(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:S(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:S(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:S(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:S(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:S(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:S(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:S(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:S(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:S(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:S(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:S(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:S(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:S(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:S(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:S(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:S(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:S(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:S(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:S(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:S(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:S(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:S(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:S(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:S(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:S(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:S(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:S(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:S(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:S(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:S(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:S(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:S(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:S(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:S(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:S(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:S(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:S(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:S(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:S(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:S(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:S(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:S(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:S(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:S(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:S(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:S(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:S(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:S(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:S(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:S(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:S(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:S(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:S(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:S(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:S(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:S(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:S(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:S(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:S(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:S(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:S(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:S(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:S(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:S(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:S(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:S(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:S(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:S(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:S(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:S(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:S(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:S(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:S(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:S(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:S(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:S(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:S(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:S(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:S(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:S(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:S(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:S(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:S(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:S(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:S(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:S(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:S(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:S(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:S(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:S(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:S(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:S(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:S(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:S(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:S(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:S(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:S(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:S(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:S(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:S(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:S(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:S(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:S(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:S(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:S(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:S(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:S(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:S(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:S(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:S(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:S(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:S(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:S(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:S(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:S(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:S(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:S(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:S(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:S(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:S(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:S(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:S(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:S(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:S(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:S(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:S(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:S(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:S(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:S(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:S(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:S(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:S(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:S(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:S(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:S(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:S(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:S(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:S(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:S(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:S(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:S(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:S(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:S(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:S(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:S(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:S(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:S(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:S(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:S(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:S(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:S(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:S(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:S(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Default_catch_clause_variables_as_unknown_instead_of_any:S(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:S(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),one_of_Colon:S(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:S(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:S(6902,3,"type_Colon_6902","type:"),default_Colon:S(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:S(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:S(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:S(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:S(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:S(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:S(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:S(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:S(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:S(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:S(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:S(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:S(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:S(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:S(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:S(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:S(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:S(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:S(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:S(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:S(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:S(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:S(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:S(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:S(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:S(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:S(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:S(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:S(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:S(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:S(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:S(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:S(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:S(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:S(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:S(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:S(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:S(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:S(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:S(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:S(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:S(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:S(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:S(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:S(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:S(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:S(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:S(7025,1,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:S(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:S(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:S(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:S(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:S(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:S(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:S(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:S(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:S(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:S(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:S(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:S(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:S(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:S(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:S(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:S(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:S(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:S(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:S(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:S(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:S(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:S(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:S(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:S(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:S(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:S(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:S(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:S(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:S(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:S(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:S(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:S(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:S(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:S(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:S(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:S(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:S(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:S(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:S(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:S(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:S(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:S(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:S(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:S(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:S(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:S(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:S(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:S(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:S(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:S(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:S(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:S(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:S(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:S(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:S(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:S(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:S(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:S(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:S(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:S(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:S(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:S(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:S(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:S(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:S(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:S(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:S(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:S(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:S(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:S(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:S(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:S(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:S(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:S(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:S(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:S(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:S(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:S(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:S(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:S(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:S(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:S(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:S(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:S(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:S(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:S(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:S(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:S(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:S(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:S(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:S(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:S(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:S(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:S(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Unicode_escape_sequence_cannot_appear_here:S(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:S(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:S(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:S(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:S(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:S(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:S(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:S(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:S(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:S(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:S(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:S(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:S(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:S(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:S(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:S(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:S(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:S(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:S(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:S(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:S(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:S(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:S(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:S(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:S(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:S(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:S(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:S(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:S(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:S(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:S(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:S(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:S(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:S(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:S(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:S(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:S(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:S(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:S(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:S(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:S(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:S(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:S(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:S(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:S(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:S(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:S(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:S(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:S(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:S(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:S(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:S(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:S(90055,3,"Remove_type_from_import_declaration_from_0_90055",`Remove 'type' from import declaration from "{0}"`),Remove_type_from_import_of_0_from_1:S(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:S(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:S(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:S(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:S(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Convert_function_to_an_ES2015_class:S(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:S(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:S(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:S(95005,3,"Extract_function_95005","Extract function"),Extract_constant:S(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:S(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:S(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:S(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:S(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:S(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:S(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:S(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:S(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:S(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:S(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:S(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:S(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:S(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:S(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:S(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:S(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:S(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:S(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:S(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:S(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:S(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:S(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:S(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:S(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:S(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:S(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:S(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:S(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:S(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:S(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:S(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:S(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:S(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:S(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:S(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:S(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:S(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:S(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:S(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:S(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:S(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:S(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:S(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:S(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:S(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:S(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:S(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:S(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:S(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:S(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:S(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:S(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:S(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:S(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:S(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:S(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:S(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:S(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:S(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:S(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:S(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:S(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:S(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:S(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:S(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:S(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:S(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:S(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:S(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:S(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:S(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:S(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:S(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:S(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:S(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:S(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:S(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:S(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:S(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:S(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:S(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:S(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:S(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:S(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:S(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:S(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:S(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:S(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:S(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:S(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:S(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:S(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:S(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:S(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:S(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:S(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:S(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:S(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:S(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:S(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:S(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:S(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:S(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:S(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:S(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:S(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:S(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:S(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:S(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:S(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:S(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:S(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:S(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:S(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:S(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:S(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:S(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:S(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:S(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:S(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:S(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:S(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:S(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:S(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:S(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:S(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:S(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:S(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:S(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:S(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:S(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:S(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:S(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:S(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:S(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:S(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:S(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:S(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:S(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:S(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:S(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:S(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:S(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:S(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements:S(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:S(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:S(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:S(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:S(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:S(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:S(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:S(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:S(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:S(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:S(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:S(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:S(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:S(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:S(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:S(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:S(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:S(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:S(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:S(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:S(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:S(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:S(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:S(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:S(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:S(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:S(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:S(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:S(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:S(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:S(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:S(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:S(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:S(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:S(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:S(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:S(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:S(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:S(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:S(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:S(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:S(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:S(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:S(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:S(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:S(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:S(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:S(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:S(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:S(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:S(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:S(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:S(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:S(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:S(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:S(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:S(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:S(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:S(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:S(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:S(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:S(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:S(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:S(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:S(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),await_expression_cannot_be_used_inside_a_class_static_block:S(18037,1,"await_expression_cannot_be_used_inside_a_class_static_block_18037","'await' expression cannot be used inside a class static block."),for_await_loops_cannot_be_used_inside_a_class_static_block:S(18038,1,"for_await_loops_cannot_be_used_inside_a_class_static_block_18038","'for await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:S(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:S(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:S(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:S(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:S(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:S(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:S(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:S(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:S(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:S(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:S(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:S(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Non_abstract_class_0_does_not_implement_all_abstract_members_of_1:S(18052,1,"Non_abstract_class_0_does_not_implement_all_abstract_members_of_1_18052","Non-abstract class '{0}' does not implement all abstract members of '{1}'"),Its_type_0_is_not_a_valid_JSX_element_type:S(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:S(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block.")}}});function N_(e){return e>=80}function Zre(e){return e===32||N_(e)}function Z8(e,t){if(e=2?Z8(e,sSe):t===1?Z8(e,rSe):Z8(e,tSe)}function hze(e,t){return t>=2?Z8(e,aSe):t===1?Z8(e,iSe):Z8(e,nSe)}function yze(e){const t=[];return e.forEach((r,i)=>{t[r]=i}),t}function ba(e){return uSe[e]}function cb(e){return nie.get(e)}function _k(e){const t=[];let r=0,i=0;for(;r127&&d_(s)&&(t.push(i),i=r);break}}return t.push(i),t}function K8(e,t,r,i){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,i):lF(_0(e),t,r,e.text,i)}function lF(e,t,r,i,s){(t<0||t>=e.length)&&(s?t=t<0?0:t>=e.length?e.length-1:t:w.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${i!==void 0?su(e,_k(i)):"unknown"}`));const o=e[t]+r;return s?o>e[t+1]?e[t+1]:typeof i=="string"&&o>i.length?i.length:o:(t=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function d_(e){return e===10||e===13||e===8232||e===8233}function lP(e){return e>=48&&e<=57}function Zbe(e){return lP(e)||e>=65&&e<=70||e>=97&&e<=102}function vze(e){return e<=1114111}function uF(e){return e>=48&&e<=55}function Kre(e,t){const r=e.charCodeAt(t);switch(r){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return t===0;default:return r>127}}function za(e,t,r,i,s){if(Em(t))return t;let o=!1;for(;;){const c=e.charCodeAt(t);switch(c){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,r)return t;o=!!s;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(i)break;if(e.charCodeAt(t+1)===47){for(t+=2;t127&&f0(c)){t++;continue}break}return t}}function uP(e,t){if(w.assert(t>=0),t===0||d_(e.charCodeAt(t-1))){const r=e.charCodeAt(t);if(t+fF=0&&r127&&f0(C)){y&&d_(C)&&(d=!0),r++;continue}break e}}return y&&(T=s(u,f,g,d,o,T)),T}function tA(e,t,r,i){return RV(!1,e,t,!1,r,i)}function nA(e,t,r,i){return RV(!1,e,t,!0,r,i)}function eie(e,t,r,i,s){return RV(!0,e,t,!1,r,i,s)}function tie(e,t,r,i,s){return RV(!0,e,t,!0,r,i,s)}function Kbe(e,t,r,i,s,o=[]){return o.push({kind:r,pos:e,end:t,hasTrailingNewLine:i}),o}function Ph(e,t){return eie(e,t,Kbe,void 0,void 0)}function Jv(e,t){return tie(e,t,Kbe,void 0,void 0)}function _F(e){const t=jV.exec(e);if(t)return t[0]}function wh(e,t){return e>=65&&e<=90||e>=97&&e<=122||e===36||e===95||e>127&&cF(e,t)}function zv(e,t,r){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===36||e===95||(r===1?e===45||e===58:!1)||e>127&&hze(e,t)}function Np(e,t,r){let i=u1(e,0);if(!wh(i,t))return!1;for(let s=Uv(i);sd,getStartPos:()=>d,getTokenEnd:()=>f,getTextPos:()=>f,getToken:()=>x,getTokenStart:()=>y,getTokenPos:()=>y,getTokenText:()=>u.substring(y,f),getTokenValue:()=>T,hasUnicodeEscape:()=>(C&1024)!==0,hasExtendedUnicodeEscape:()=>(C&8)!==0,hasPrecedingLineBreak:()=>(C&1)!==0,hasPrecedingJSDocComment:()=>(C&2)!==0,isIdentifier:()=>x===80||x>118,isReservedWord:()=>x>=83&&x<=118,isUnterminated:()=>(C&4)!==0,getCommentDirectives:()=>N,getNumericLiteralFlags:()=>C&25584,getTokenFlags:()=>C,reScanGreaterToken:xe,reScanAsteriskEqualsToken:ze,reScanSlashToken:st,reScanTemplateToken:$e,reScanTemplateHeadOrNoSubstitutionTemplate:kt,scanJsxIdentifier:Zt,scanJsxAttributeValue:Yt,reScanJsxAttributeValue:yi,reScanJsxToken:nn,reScanLessThanToken:sn,reScanHashToken:In,reScanQuestionToken:Zn,reScanInvalidIdentifier:Le,scanJsxToken:hn,scanJsDocToken:zi,scanJSDocCommentTextToken:us,scan:Ee,getText:cn,clearCommentDirectives:et,setText:Jt,setScriptTarget:ui,setLanguageVariant:vi,setScriptKind:ts,setJSDocParsingMode:Ds,setOnError:wn,resetTokenState:Sa,setTextPos:Sa,setInJSDocType:Wa,tryScan:Er,lookAhead:Fi,scanRange:On};return w.isDebugging&&Object.defineProperty(G,"__debugShowCurrentPositionInText",{get:()=>{const Tn=G.getText();return Tn.slice(0,G.getTokenFullStart())+"║"+Tn.slice(G.getTokenFullStart())}}),G;function Z(Tn,Ln=f,Ve,pt){if(s){const ft=f;f=Ln,s(Tn,Ve||0,pt),f=ft}}function z(){let Tn=f,Ln=!1,Ve=!1,pt="";for(;;){const ft=u.charCodeAt(f);if(ft===95){C|=512,Ln?(Ln=!1,Ve=!0,pt+=u.substring(Tn,f)):(C|=16384,Z(Ve?p.Multiple_consecutive_numeric_separators_are_not_permitted:p.Numeric_separators_are_not_allowed_here,f,1)),f++,Tn=f;continue}if(lP(ft)){Ln=!0,Ve=!1,f++;continue}break}return u.charCodeAt(f-1)===95&&(C|=16384,Z(p.Numeric_separators_are_not_allowed_here,f-1,1)),pt+u.substring(Tn,f)}function ce(){let Tn=f,Ln;if(u.charCodeAt(f)===48)if(f++,u.charCodeAt(f)===95)C|=16896,Z(p.Numeric_separators_are_not_allowed_here,f,1),f--,Ln=z();else if(!ne())C|=8192,Ln=""+ +T;else if(!T)Ln="0";else{T=""+parseInt(T,8),C|=32;const le=x===41,Me=(le?"-":"")+"0o"+(+T).toString(8);return le&&Tn--,Z(p.Octal_literals_are_not_allowed_Use_the_syntax_0,Tn,f-Tn,Me),9}else Ln=z();let Ve,pt;u.charCodeAt(f)===46&&(f++,Ve=z());let ft=f;if(u.charCodeAt(f)===69||u.charCodeAt(f)===101){f++,C|=16,(u.charCodeAt(f)===43||u.charCodeAt(f)===45)&&f++;const le=f,Me=z();Me?(pt=u.substring(ft,le)+Me,ft=f):Z(p.Digit_expected)}let At;if(C&512?(At=Ln,Ve&&(At+="."+Ve),pt&&(At+=pt)):At=u.substring(Tn,ft),C&8192)return Z(p.Decimals_with_leading_zeros_are_not_allowed,Tn,ft-Tn),T=""+ +At,9;if(Ve!==void 0||C&16)return J(Tn,Ve===void 0&&!!(C&16)),T=""+ +At,9;{T=At;const le=Se();return J(Tn),le}}function J(Tn,Ln){if(!wh(u1(u,f),e))return;const Ve=f,{length:pt}=ye();pt===1&&u[Ve]==="n"?Z(Ln?p.A_bigint_literal_cannot_use_exponential_notation:p.A_bigint_literal_must_be_an_integer,Tn,Ve-Tn+1):(Z(p.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,Ve,pt),f=Ve)}function ne(){const Tn=f;let Ln=!0;for(;lP(u.charCodeAt(f));)uF(u.charCodeAt(f))||(Ln=!1),f++;return T=u.substring(Tn,f),Ln}function ge(Tn,Ln){const Ve=Q(Tn,!1,Ln);return Ve?parseInt(Ve,16):-1}function ve(Tn,Ln){return Q(Tn,!0,Ln)}function Q(Tn,Ln,Ve){let pt=[],ft=!1,At=!1;for(;pt.length=65&&le<=70)le+=32;else if(!(le>=48&&le<=57||le>=97&&le<=102))break;pt.push(le),f++,At=!1}return pt.length=g){Ve+=u.substring(pt,f),C|=4,Z(p.Unterminated_string_literal);break}const ft=u.charCodeAt(f);if(ft===Ln){Ve+=u.substring(pt,f),f++;break}if(ft===92&&!Tn){Ve+=u.substring(pt,f),Ve+=pe(!0),pt=f;continue}if((ft===10||ft===13)&&!Tn){Ve+=u.substring(pt,f),C|=4,Z(p.Unterminated_string_literal);break}f++}return Ve}function se(Tn){const Ln=u.charCodeAt(f)===96;f++;let Ve=f,pt="",ft;for(;;){if(f>=g){pt+=u.substring(Ve,f),C|=4,Z(p.Unterminated_template_literal),ft=Ln?15:18;break}const At=u.charCodeAt(f);if(At===96){pt+=u.substring(Ve,f),f++,ft=Ln?15:18;break}if(At===36&&f+1=g)return Z(p.Unexpected_end_of_text),"";const Ve=u.charCodeAt(f);switch(f++,Ve){case 48:if(f>=g||!lP(u.charCodeAt(f)))return"\0";case 49:case 50:case 51:f=g?(C|=2048,Tn&&Z(p.Unexpected_end_of_text),u.substring(Ln,f)):u.charCodeAt(f)!==125?(C|=2048,Tn&&Z(p.Unterminated_Unicode_escape_sequence),u.substring(Ln,f)):(f++,C|=8,M6(ft)):(C|=2048,Tn&&Z(p.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),u.substring(Ln,f))}for(;f1114111&&(Z(p.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),Ve=!0),f>=g?(Z(p.Unexpected_end_of_text),Ve=!0):u.charCodeAt(f)===125?f++:(Z(p.Unterminated_Unicode_escape_sequence),Ve=!0),Ve?"":M6(Ln)}function fe(){if(f+5=0&&zv(Ve,e)){f+=3,C|=8,Tn+=we(),Ln=f;continue}if(Ve=fe(),!(Ve>=0&&zv(Ve,e)))break;C|=1024,Tn+=u.substring(Ln,f),Tn+=M6(Ve),f+=6,Ln=f}else break}return Tn+=u.substring(Ln,f),Tn}function Ne(){const Tn=T.length;if(Tn>=2&&Tn<=12){const Ln=T.charCodeAt(0);if(Ln>=97&&Ln<=122){const Ve=eSe.get(T);if(Ve!==void 0)return x=Ve}}return x=80}function Ue(Tn){let Ln="",Ve=!1,pt=!1;for(;;){const ft=u.charCodeAt(f);if(ft===95){C|=512,Ve?(Ve=!1,pt=!0):Z(pt?p.Multiple_consecutive_numeric_separators_are_not_permitted:p.Numeric_separators_are_not_allowed_here,f,1),f++;continue}if(Ve=!0,!lP(ft)||ft-48>=Tn)break;Ln+=u[f],f++,pt=!1}return u.charCodeAt(f-1)===95&&Z(p.Numeric_separators_are_not_allowed_here,f-1,1),Ln}function Se(){return u.charCodeAt(f)===110?(T+="n",C&384&&(T=rw(T)+"n"),f++,10):(T=""+(C&128?parseInt(T.slice(2),2):C&256?parseInt(T.slice(2),8):+T),9)}function Ee(){d=f,C=0;let Tn=!1;for(;;){if(y=f,f>=g)return x=1;const Ln=u1(u,f);if(f===0){if(u.slice(0,256).includes("�"))return Z(p.File_appears_to_be_binary),f=g,x=8;if(Ln===35&&LV(u,f)){if(f=MV(u,f),t)continue;return x=6}}switch(Ln){case 10:case 13:if(C|=1,t){f++;continue}else return Ln===13&&f+1=0&&wh(Ve,e))return f+=3,C|=8,T=we()+ye(),x=Ne();const pt=fe();return pt>=0&&wh(pt,e)?(f+=6,C|=1024,T=String.fromCharCode(pt)+ye(),x=Ne()):(Z(p.Invalid_character),f++,x=0);case 35:if(f!==0&&u[f+1]==="!")return Z(p.can_only_be_used_at_the_start_of_a_file),f++,x=0;const ft=u1(u,f+1);if(ft===92){f++;const Me=ie();if(Me>=0&&wh(Me,e))return f+=3,C|=8,T="#"+we()+ye(),x=81;const _t=fe();if(_t>=0&&wh(_t,e))return f+=6,C|=1024,T="#"+String.fromCharCode(_t)+ye(),x=81;f--}return wh(ft,e)?(f++,Tt(ft,e)):(T="#",Z(p.Invalid_character,f++,Uv(Ln))),x=81;default:const At=Tt(Ln,e);if(At)return x=At;if(Ym(Ln)){f+=Uv(Ln);continue}else if(d_(Ln)){C|=1,f+=Uv(Ln);continue}const le=Uv(Ln);return Z(p.Invalid_character,f,le),f+=le,x=0}}}function Ae(){switch(V){case 0:return!0;case 1:return!1}return M!==3&&M!==4?!0:V===3?!1:lSe.test(u.slice(d,f))}function Le(){w.assert(x===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),f=y=d,C=0;const Tn=u1(u,f),Ln=Tt(Tn,99);return Ln?x=Ln:(f+=Uv(Tn),x)}function Tt(Tn,Ln){let Ve=Tn;if(wh(Ve,Ln)){for(f+=Uv(Ve);f=g)return x=1;let Ln=u.charCodeAt(f);if(Ln===60)return u.charCodeAt(f+1)===47?(f+=2,x=31):(f++,x=30);if(Ln===123)return f++,x=19;let Ve=0;for(;f0)break;f0(Ln)||(Ve=f)}f++}return T=u.substring(d,f),Ve===-1?13:12}function Zt(){if(N_(x)){for(;f=g)return x=1;for(let Ln=u.charCodeAt(f);f=0&&Ym(u.charCodeAt(f-1))&&!(f+1=g)return x=1;const Tn=u1(u,f);switch(f+=Uv(Tn),Tn){case 9:case 11:case 12:case 32:for(;f=0&&wh(Ln,e))return f+=3,C|=8,T=we()+ye(),x=Ne();const Ve=fe();return Ve>=0&&wh(Ve,e)?(f+=6,C|=1024,T=String.fromCharCode(Ve)+ye(),x=Ne()):(f++,x=0)}if(wh(Tn,e)){let Ln=Tn;for(;f=0),f=Tn,d=Tn,y=Tn,x=0,T=void 0,C=0}function Wa(Tn){D+=Tn?1:-1}}function u1(e,t){return e.codePointAt(t)}function Uv(e){return e>=65536?2:1}function bze(e){if(w.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);const t=Math.floor((e-65536)/1024)+55296,r=(e-65536)%1024+56320;return String.fromCharCode(t,r)}function M6(e){return _Se(e)}var rA,eSe,nie,tSe,nSe,rSe,iSe,sSe,aSe,oSe,cSe,lSe,uSe,fF,jV,_Se,Sze=K({"src/compiler/scanner.ts"(){ua(),rA={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},eSe=new Map(Object.entries(rA)),nie=new Map(Object.entries({...rA,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,">":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),tSe=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],nSe=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],rSe=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],iSe=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],sSe=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2208,2228,2230,2237,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,123136,123180,123191,123197,123214,123214,123584,123627,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],aSe=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2208,2228,2230,2237,2259,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70751,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999],oSe=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,cSe=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,lSe=/@(?:see|link)/i,uSe=yze(nie),fF=7,jV=/^#!.*/,_Se=String.fromCodePoint?e=>String.fromCodePoint(e):bze}});function yu(e){return pp(e)||zf(e)}function R6(e){return io(e,YP)}function iA(e){switch(go(e)){case 99:return"lib.esnext.full.d.ts";case 9:return"lib.es2022.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}function pl(e){return e.start+e.length}function rie(e){return e.length===0}function BV(e,t){return t>=e.start&&t=e.pos&&t<=e.end}function iie(e,t){return t.start>=e.start&&pl(t)<=pl(e)}function fSe(e,t){return sie(e,t)!==void 0}function sie(e,t){const r=oie(e,t);return r&&r.length===0?void 0:r}function pSe(e,t){return aA(e.start,e.length,t.start,t.length)}function pF(e,t,r){return aA(e.start,e.length,t,r)}function aA(e,t,r,i){const s=e+t,o=r+i;return r<=s&&o>=e}function aie(e,t){return t<=pl(e)&&t>=e.start}function oie(e,t){const r=Math.max(e.start,t.start),i=Math.min(pl(e),pl(t));return r<=i?Il(r,i):void 0}function Ju(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function Il(e,t){return Ju(e,t-e)}function _P(e){return Ju(e.span.start,e.newLength)}function cie(e){return rie(e.span)&&e.newLength===0}function oA(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function lie(e){if(e.length===0)return TA;if(e.length===1)return e[0];const t=e[0];let r=t.span.start,i=pl(t.span),s=r+t.newLength;for(let o=1;o=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function Hi(e){const t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}function kr(e){return Hi(e.escapedText)}function Wv(e){const t=cb(e.escapedText);return t?si(t,pf):void 0}function Rc(e){return e.valueDeclaration&&O_(e.valueDeclaration)?kr(e.valueDeclaration.name):Hi(e.escapedName)}function gSe(e){const t=e.parent.parent;if(t){if(g_(t))return zV(t);switch(t.kind){case 243:if(t.declarationList&&t.declarationList.declarations[0])return zV(t.declarationList.declarations[0]);break;case 244:let r=t.expression;switch(r.kind===226&&r.operatorToken.kind===64&&(r=r.left),r.kind){case 211:return r.name;case 212:const i=r.argumentExpression;if(Je(i))return i}break;case 217:return zV(t.expression);case 256:{if(g_(t.statement)||vt(t.statement))return zV(t.statement);break}}}}function zV(e){const t=Ms(e);return t&&Je(t)?t:void 0}function cA(e,t){return!!(I_(e)&&Je(e.name)&&kr(e.name)===kr(t)||Xc(e)&&Pe(e.declarationList.declarations,r=>cA(r,t)))}function pie(e){return e.name||gSe(e)}function I_(e){return!!e.name}function dF(e){switch(e.kind){case 80:return e;case 355:case 348:{const{name:r}=e;if(r.kind===166)return r.right;break}case 213:case 226:{const r=e;switch(rl(r)){case 1:case 4:case 5:case 3:return u9(r.left);case 7:case 8:case 9:return r.arguments[1];default:return}}case 353:return pie(e);case 347:return gSe(e);case 277:{const{expression:r}=e;return Je(r)?r:void 0}case 212:const t=e;if(l9(t))return t.argumentExpression}return e.name}function Ms(e){if(e!==void 0)return dF(e)||(Xo(e)||ec(e)||Su(e)?mF(e):void 0)}function mF(e){if(e.parent){if(Ml(e.parent)||oo(e.parent))return e.parent.name;if(mr(e.parent)&&e===e.parent.right){if(Je(e.parent.left))return e.parent.left;if($o(e.parent.left))return u9(e.parent.left)}else if(Ji(e.parent)&&Je(e.parent.name))return e.parent.name}else return}function _1(e){if(Kp(e))return vr(e.modifiers,Vu)}function lb(e){if(Kr(e,98303))return vr(e.modifiers,Fa)}function hSe(e,t){if(e.name)if(Je(e.name)){const r=e.name.escapedText;return uA(e.parent,t).filter(i=>Am(i)&&Je(i.name)&&i.name.escapedText===r)}else{const r=e.parent.parameters.indexOf(e);w.assert(r>-1,"Parameters should always be in their parents' parameter list");const i=uA(e.parent,t).filter(Am);if(rRd(i)&&i.typeParameters.some(s=>s.name.escapedText===r))}function mie(e){return ySe(e,!1)}function gie(e){return ySe(e,!0)}function hie(e){return!!Cd(e,Am)}function yie(e){return Cd(e,tC)}function vie(e){return hF(e,aM)}function UV(e){return Cd(e,Woe)}function vSe(e){return Cd(e,OH)}function bie(e){return Cd(e,OH,!0)}function bSe(e){return Cd(e,FH)}function Sie(e){return Cd(e,FH,!0)}function SSe(e){return Cd(e,LH)}function xie(e){return Cd(e,LH,!0)}function xSe(e){return Cd(e,MH)}function Tie(e){return Cd(e,MH,!0)}function kie(e){return Cd(e,iM,!0)}function VV(e){return Cd(e,RH)}function Cie(e){return Cd(e,RH,!0)}function WV(e){return Cd(e,ZN)}function gF(e){return Cd(e,jH)}function Eie(e){return Cd(e,sM)}function TSe(e){return Cd(e,Rd)}function qV(e){return Cd(e,oM)}function qv(e){const t=Cd(e,Dw);if(t&&t.typeExpression&&t.typeExpression.type)return t}function Hv(e){let t=Cd(e,Dw);return!t&&ws(e)&&(t=Cn(B6(e),r=>!!r.typeExpression)),t&&t.typeExpression&&t.typeExpression.type}function lA(e){const t=Eie(e);if(t&&t.typeExpression)return t.typeExpression.type;const r=qv(e);if(r&&r.typeExpression){const i=r.typeExpression.type;if(Xf(i)){const s=Cn(i.members,Wk);return s&&s.type}if(Qg(i)||B4(i))return i.type}}function uA(e,t){var r;if(!ZA(e))return Ke;let i=(r=e.jsDoc)==null?void 0:r.jsDocCache;if(i===void 0||t){const s=zW(e,t);w.assert(s.length<2||s[0]!==s[1]),i=Ys(s,o=>Dm(o)?o.tags:o),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=i)}return i}function Gv(e){return uA(e,!1)}function kSe(e){return uA(e,!0)}function Cd(e,t,r){return Cn(uA(e,r),t)}function hF(e,t){return Gv(e).filter(t)}function CSe(e,t){return Gv(e).filter(r=>r.kind===t)}function _A(e){return typeof e=="string"?e:e==null?void 0:e.map(t=>t.kind===328?t.text:Tze(t)).join("")}function Tze(e){const t=e.kind===331?"link":e.kind===332?"linkcode":"linkplain",r=e.name?Vf(e.name):"",i=e.name&&e.text.startsWith("://")?"":" ";return`{@${t} ${r}${i}${e.text}}`}function f1(e){if(c2(e)){if(J4(e.parent)){const t=l4(e.parent);if(t&&Xe(t.tags))return Ys(t.tags,r=>Rd(r)?r.typeParameters:void 0)}return Ke}if(Dd(e))return w.assert(e.parent.kind===327),Ys(e.parent.tags,t=>Rd(t)?t.typeParameters:void 0);if(e.typeParameters||tce(e)&&e.typeParameters)return e.typeParameters;if(lr(e)){const t=k9(e);if(t.length)return t;const r=Hv(e);if(r&&Qg(r)&&r.typeParameters)return r.typeParameters}return Ke}function J6(e){return e.constraint?e.constraint:Rd(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function Dh(e){return e.kind===80||e.kind===81}function yF(e){return e.kind===178||e.kind===177}function vF(e){return Jr(e)&&!!(e.flags&64)}function HV(e){return uc(e)&&!!(e.flags&64)}function XS(e){return ma(e)&&!!(e.flags&64)}function m_(e){const t=e.kind;return!!(e.flags&64)&&(t===211||t===212||t===213||t===235)}function pP(e){return m_(e)&&!Qk(e)&&!!e.questionDotToken}function bF(e){return pP(e.parent)&&e.parent.expression===e}function dP(e){return!m_(e.parent)||pP(e.parent)||e!==e.parent.expression}function GV(e){return e.kind===226&&e.operatorToken.kind===61}function p0(e){return id(e)&&Je(e.typeName)&&e.typeName.escapedText==="const"&&!e.typeArguments}function Zd(e){return gl(e,8)}function SF(e){return Qk(e)&&!!(e.flags&64)}function mP(e){return e.kind===252||e.kind===251}function $V(e){return e.kind===280||e.kind===279}function Pie(e){switch(e.kind){case 309:case 310:return!0;default:return!1}}function XV(e){return Pie(e)||e.kind===307||e.kind===311}function gP(e){return e.kind===355||e.kind===348}function ESe(e){return fA(e.kind)}function fA(e){return e>=166}function QV(e){return e>=0&&e<=165}function fk(e){return QV(e.kind)}function ub(e){return jo(e,"pos")&&jo(e,"end")}function hP(e){return 9<=e&&e<=15}function _b(e){return hP(e.kind)}function YV(e){switch(e.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function p1(e){return 15<=e&&e<=18}function wie(e){return p1(e.kind)}function xF(e){const t=e.kind;return t===17||t===18}function pk(e){return Df(e)||h_(e)}function pA(e){switch(e.kind){case 276:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 274:return e.parent.isTypeOnly;case 273:case 271:return e.isTypeOnly}return!1}function Die(e){switch(e.kind){case 281:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 278:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 280:return e.parent.isTypeOnly}return!1}function $v(e){return pA(e)||Die(e)}function ZV(e){return e.kind===11||p1(e.kind)}function Aie(e){return Ba(e)||Je(e)}function vc(e){var t;return Je(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function QS(e){var t;return Qi(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function dA(e){const t=e.emitNode.autoGenerate.flags;return!!(t&32)&&!!(t&16)&&!!(t&8)}function O_(e){return(Zs(e)||mk(e))&&Qi(e.name)}function z6(e){return Jr(e)&&Qi(e.name)}function dy(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function yP(e){return!!(Pk(e)&31)}function KV(e){return yP(e)||e===126||e===164||e===129}function Fa(e){return dy(e.kind)}function Ef(e){const t=e.kind;return t===166||t===80}function Tl(e){const t=e.kind;return t===80||t===81||t===11||t===9||t===167}function YS(e){const t=e.kind;return t===80||t===206||t===207}function oa(e){return!!e&&dk(e.kind)}function U6(e){return!!e&&(dk(e.kind)||Vc(e))}function Ko(e){return e&&PSe(e.kind)}function vP(e){return e.kind===112||e.kind===97}function PSe(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function dk(e){switch(e){case 173:case 179:case 330:case 180:case 181:case 184:case 324:case 185:return!0;default:return PSe(e)}}function eW(e){return es(e)||lg(e)||na(e)&&oa(e.parent)}function vu(e){const t=e.kind;return t===176||t===172||t===174||t===177||t===178||t===181||t===175||t===240}function fi(e){return e&&(e.kind===263||e.kind===231)}function d1(e){return e&&(e.kind===177||e.kind===178)}function uf(e){return Zs(e)&&ig(e)}function Nie(e){return lr(e)&&rL(e)?(!vb(e)||!T1(e.expression))&&!cx(e,!0):e.parent&&fi(e.parent)&&Zs(e)&&!ig(e)}function mk(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function wSe(e){switch(e.kind){case 174:case 177:case 178:case 172:return!0;default:return!1}}function bc(e){return Fa(e)||Vu(e)}function ZS(e){const t=e.kind;return t===180||t===179||t===171||t===173||t===181||t===177||t===178}function TF(e){return ZS(e)||vu(e)}function d0(e){const t=e.kind;return t===303||t===304||t===305||t===174||t===177||t===178}function Gi(e){return kq(e.kind)}function Iie(e){switch(e.kind){case 184:case 185:return!0}return!1}function ca(e){if(e){const t=e.kind;return t===207||t===206}return!1}function bP(e){const t=e.kind;return t===209||t===210}function kF(e){const t=e.kind;return t===208||t===232}function mA(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function Oie(e){return Ji(e)||ws(e)||hA(e)||yA(e)}function gA(e){return tW(e)||nW(e)}function tW(e){switch(e.kind){case 206:case 210:return!0}return!1}function hA(e){switch(e.kind){case 208:case 303:case 304:case 305:return!0}return!1}function nW(e){switch(e.kind){case 207:case 209:return!0}return!1}function yA(e){switch(e.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return Kl(e,!0)}function Fie(e){const t=e.kind;return t===211||t===166||t===205}function Lie(e){const t=e.kind;return t===211||t===166}function rW(e){return fb(e)||Db(e)}function fb(e){switch(e.kind){case 286:case 285:case 213:case 214:case 215:case 170:return!0;default:return!1}}function Zm(e){return e.kind===213||e.kind===214}function gk(e){const t=e.kind;return t===228||t===15}function Pf(e){return DSe(Zd(e).kind)}function DSe(e){switch(e){case 211:case 212:case 214:case 213:case 284:case 285:case 288:case 215:case 209:case 217:case 210:case 231:case 218:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 228:case 97:case 106:case 110:case 112:case 108:case 235:case 233:case 236:case 102:case 282:return!0;default:return!1}}function iW(e){return ASe(Zd(e).kind)}function ASe(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return DSe(e)}}function Mie(e){switch(e.kind){case 225:return!0;case 224:return e.operator===46||e.operator===47;default:return!1}}function Rie(e){switch(e.kind){case 106:case 112:case 97:case 224:return!0;default:return _b(e)}}function vt(e){return kze(Zd(e).kind)}function kze(e){switch(e){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 361:case 360:case 238:return!0;default:return ASe(e)}}function KS(e){const t=e.kind;return t===216||t===234}function NSe(e){return DH(e)||eM(e)}function m1(e,t){switch(e.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return t&&m1(e.statement,t)}return!1}function jie(e){return Qc(e)||ml(e)}function Bie(e){return Pe(e,jie)}function CF(e){return!wA(e)&&!Qc(e)&&!Kr(e,32)&&!n_(e)}function vA(e){return wA(e)||Qc(e)||Kr(e,32)}function V6(e){return e.kind===249||e.kind===250}function EF(e){return na(e)||vt(e)}function sW(e){return na(e)}function Zp(e){return _u(e)||vt(e)}function Jie(e){const t=e.kind;return t===268||t===267||t===80}function ISe(e){const t=e.kind;return t===268||t===267}function OSe(e){const t=e.kind;return t===80||t===267}function aW(e){const t=e.kind;return t===275||t===274}function bA(e){return e.kind===267||e.kind===266}function Km(e){switch(e.kind){case 219:case 226:case 208:case 213:case 179:case 263:case 231:case 175:case 176:case 185:case 180:case 212:case 266:case 306:case 277:case 278:case 281:case 262:case 218:case 184:case 177:case 80:case 273:case 271:case 276:case 181:case 264:case 345:case 347:case 324:case 348:case 355:case 330:case 353:case 329:case 291:case 292:case 293:case 200:case 174:case 173:case 267:case 202:case 280:case 270:case 274:case 214:case 15:case 9:case 210:case 169:case 211:case 303:case 172:case 171:case 178:case 304:case 312:case 305:case 11:case 265:case 187:case 168:case 260:return!0;default:return!1}}function Ug(e){switch(e.kind){case 219:case 241:case 179:case 269:case 299:case 175:case 194:case 176:case 185:case 180:case 248:case 249:case 250:case 262:case 218:case 184:case 177:case 181:case 345:case 347:case 324:case 330:case 353:case 200:case 174:case 173:case 267:case 178:case 312:case 265:return!0;default:return!1}}function Cze(e){return e===219||e===208||e===263||e===231||e===175||e===176||e===266||e===306||e===281||e===262||e===218||e===177||e===273||e===271||e===276||e===264||e===291||e===174||e===173||e===267||e===270||e===274||e===280||e===169||e===303||e===172||e===171||e===178||e===304||e===265||e===168||e===260||e===353||e===345||e===355}function zie(e){return e===262||e===282||e===263||e===264||e===265||e===266||e===267||e===272||e===271||e===278||e===277||e===270}function Uie(e){return e===252||e===251||e===259||e===246||e===244||e===242||e===249||e===250||e===248||e===245||e===256||e===253||e===255||e===257||e===258||e===243||e===247||e===254||e===359}function g_(e){return e.kind===168?e.parent&&e.parent.kind!==352||lr(e):Cze(e.kind)}function Vie(e){return zie(e.kind)}function SA(e){return Uie(e.kind)}function Xi(e){const t=e.kind;return Uie(t)||zie(t)||Eze(e)}function Eze(e){return e.kind!==241||e.parent!==void 0&&(e.parent.kind===258||e.parent.kind===299)?!1:!hb(e)}function Wie(e){const t=e.kind;return Uie(t)||zie(t)||t===241}function qie(e){const t=e.kind;return t===283||t===166||t===80}function SP(e){const t=e.kind;return t===110||t===80||t===211||t===295}function xA(e){const t=e.kind;return t===284||t===294||t===285||t===12||t===288}function PF(e){const t=e.kind;return t===291||t===293}function Hie(e){const t=e.kind;return t===11||t===294}function F_(e){const t=e.kind;return t===286||t===285}function wF(e){const t=e.kind;return t===296||t===297}function W6(e){return e.kind>=316&&e.kind<=357}function DF(e){return e.kind===327||e.kind===326||e.kind===328||hk(e)||q6(e)||wx(e)||c2(e)}function q6(e){return e.kind>=334&&e.kind<=357}function my(e){return e.kind===178}function g1(e){return e.kind===177}function dp(e){if(!ZA(e))return!1;const{jsDoc:t}=e;return!!t&&t.length>0}function AF(e){return!!e.type}function h1(e){return!!e.initializer}function ex(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 306:return!0;default:return!1}}function oW(e){return e.kind===291||e.kind===293||d0(e)}function NF(e){return e.kind===183||e.kind===233}function Gie(e){let t=$ie;for(const r of e){if(!r.length)continue;let i=0;for(;i0?r.parent.parameters[s-1]:void 0,c=t.text,u=o?zn(Jv(c,za(c,o.end+1,!1,!0)),Ph(c,e.pos)):Jv(c,za(c,e.pos,!1,!0));return Pe(u)&&FSe(so(u),t)}const i=r&&wW(r,t);return!!dt(i,s=>FSe(s,t))}var TA,uW,$ie,Pze=K({"src/compiler/utilitiesPublic.ts"(){ua(),TA=oA(Ju(0,0),0),uW=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"],$ie=1073741823}});function Cc(e,t){const r=e.declarations;if(r){for(const i of r)if(i.kind===t)return i}}function Xie(e,t){return vr(e.declarations||Ke,r=>r.kind===t)}function ha(e){const t=new Map;if(e)for(const r of e)t.set(r.escapedName,r);return t}function Vg(e){return(e.flags&33554432)!==0}function wze(){var e="";const t=r=>e+=r;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(r,i)=>t(r),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&f0(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:ao,decreaseIndent:ao,clear:()=>e=""}}function IF(e,t){return e.configFilePath!==t.configFilePath||Qie(e,t)}function Qie(e,t){return H6(e,t,kM)}function Yie(e,t){return H6(e,t,vG)}function H6(e,t,r){return e!==t&&r.some(i=>!Y9(J9(e,i),J9(t,i)))}function Zie(e,t){for(;;){const r=t(e);if(r==="quit")return;if(r!==void 0)return r;if(es(e))return;e=e.parent}}function cu(e,t){const r=e.entries();for(const[i,s]of r){const o=t(s,i);if(o)return o}}function Wg(e,t){const r=e.keys();for(const i of r){const s=t(i);if(s)return s}}function OF(e,t){e.forEach((r,i)=>{t.set(i,r)})}function xP(e){const t=wN.getText();try{return e(wN),wN.getText()}finally{wN.clear(),wN.writeKeyword(t)}}function kA(e){return e.end-e.pos}function _W(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function Kie(e,t){return e===t||e.resolvedModule===t.resolvedModule||!!e.resolvedModule&&!!t.resolvedModule&&e.resolvedModule.isExternalLibraryImport===t.resolvedModule.isExternalLibraryImport&&e.resolvedModule.extension===t.resolvedModule.extension&&e.resolvedModule.resolvedFileName===t.resolvedModule.resolvedFileName&&e.resolvedModule.originalPath===t.resolvedModule.originalPath&&Dze(e.resolvedModule.packageId,t.resolvedModule.packageId)&&e.alternateResult===t.alternateResult}function FF(e,t,r,i,s){var o;const c=(o=t.getResolvedModule(e,r,i))==null?void 0:o.alternateResult,u=c&&(j_(t.getCompilerOptions())===2?[p.There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler,[c]]:[p.There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings,[c,c.includes(th+"@types/")?`@types/${K4(s)}`:s]]),f=u?Hs(void 0,u[0],...u[1]):t.typesPackageExists(s)?Hs(void 0,p.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,s,K4(s)):t.packageBundlesTypes(s)?Hs(void 0,p.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,s,r):Hs(void 0,p.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,r,K4(s));return f&&(f.repopulateInfo=()=>({moduleReference:r,mode:i,packageName:s===r?void 0:s})),f}function Dze(e,t){return e===t||!!e&&!!t&&e.name===t.name&&e.subModuleName===t.subModuleName&&e.version===t.version}function LF({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function y1(e){return`${LF(e)}@${e.version}`}function ese(e,t){return e===t||e.resolvedTypeReferenceDirective===t.resolvedTypeReferenceDirective||!!e.resolvedTypeReferenceDirective&&!!t.resolvedTypeReferenceDirective&&e.resolvedTypeReferenceDirective.resolvedFileName===t.resolvedTypeReferenceDirective.resolvedFileName&&!!e.resolvedTypeReferenceDirective.primary==!!t.resolvedTypeReferenceDirective.primary&&e.resolvedTypeReferenceDirective.originalPath===t.resolvedTypeReferenceDirective.originalPath}function fW(e,t,r,i){w.assert(e.length===t.length);for(let s=0;s=0),_0(t)[e]}function LSe(e){const t=qn(e),r=Ao(t,e.pos);return`${t.fileName}(${r.line+1},${r.character+1})`}function EA(e,t){w.assert(e>=0);const r=_0(t),i=e,s=t.text;if(i+1===r.length)return s.length-1;{const o=r[i];let c=r[i+1]-1;for(w.assert(d_(s.charCodeAt(c)));o<=c&&d_(s.charCodeAt(c));)c--;return c}}function RF(e,t,r){return!(r&&r(t))&&!e.identifiers.has(t)}function nl(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function Ed(e){return!nl(e)}function nse(e,t){return Ic(e)?t===e.expression:Vc(e)?t===e.modifiers:Gf(e)?t===e.initializer:Zs(e)?t===e.questionToken&&uf(e):Ml(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||PA(e.modifiers,t,bc):Af(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||PA(e.modifiers,t,bc):ul(e)?t===e.exclamationToken:$c(e)?t===e.typeParameters||t===e.type||PA(e.typeParameters,t,Ic):Op(e)?t===e.typeParameters||PA(e.typeParameters,t,Ic):$f(e)?t===e.typeParameters||t===e.type||PA(e.typeParameters,t,Ic):YN(e)?t===e.modifiers||PA(e.modifiers,t,bc):!1}function PA(e,t,r){return!e||Ps(t)||!r(t)?!1:Ai(e,t)}function MSe(e,t,r){if(t===void 0||t.length===0)return e;let i=0;for(;i[`${Ao(e,c.range.end).line}`,c])),i=new Map;return{getUnusedExpectations:s,markUsed:o};function s(){return Vs(r.entries()).filter(([c,u])=>u.type===0&&!i.get(c)).map(([c,u])=>u)}function o(c){return r.has(`${c}`)?(i.set(`${c}`,!0),!0):!1}}function Xv(e,t,r){return nl(e)?e.pos:W6(e)||e.kind===12?za((t||qn(e)).text,e.pos,!1,!0):r&&dp(e)?Xv(e.jsDoc[0],t):e.kind===358&&e._children.length>0?Xv(e._children[0],t,r):za((t||qn(e)).text,e.pos,!1,!1,BA(e))}function mW(e,t){const r=!nl(e)&&sm(e)?Ro(e.modifiers,Vu):void 0;return r?za((t||qn(e)).text,r.end):Xv(e,t)}function pb(e,t,r=!1){return TP(e.text,t,r)}function Nze(e){return!!Vn(e,Ub)}function BF(e){return!!(ml(e)&&e.exportClause&&Zg(e.exportClause)&&e.exportClause.name.escapedText==="default")}function TP(e,t,r=!1){if(nl(t))return"";let i=e.substring(r?t.pos:za(e,t.pos),t.end);return Nze(t)&&(i=i.split(/\r\n|\n|\r/).map(s=>s.replace(/^\s*\*/,"").trimStart()).join(` +`)),i}function Ol(e,t=!1){return pb(qn(e),e,t)}function Ize(e){return e.pos}function $6(e,t){return ay(e,t,Ize,mc)}function Ya(e){const t=e.emitNode;return t&&t.flags||0}function Kd(e){const t=e.emitNode;return t&&t.internalFlags||0}function ise(e,t,r){if(t&&Oze(e,r))return pb(t,e);switch(e.kind){case 11:{const i=r&2?sq:r&1||Ya(e)&16777216?Mh:lN;return e.singleQuote?"'"+i(e.text,39)+"'":'"'+i(e.text,34)+'"'}case 15:case 16:case 17:case 18:{const i=r&1||Ya(e)&16777216?Mh:lN,s=e.rawText??rq(i(e.text,96));switch(e.kind){case 15:return"`"+s+"`";case 16:return"`"+s+"${";case 17:return"}"+s+"${";case 18:return"}"+s+"`"}break}case 9:case 10:return e.text;case 14:return r&4&&e.isUnterminated?e.text+(e.text.charCodeAt(e.text.length-1)===92?" /":"/"):e.text}return w.fail(`Literal kind '${e.kind}' not accounted for.`)}function Oze(e,t){if(lc(e)||!e.parent||t&4&&e.isUnterminated)return!1;if(Hf(e)){if(e.numericLiteralFlags&26656)return!1;if(e.numericLiteralFlags&512)return!!(t&8)}return!qL(e)}function sse(e){return Ls(e)?'"'+lN(e)+'"':""+e}function ase(e){return xl(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function gW(e){return(py(e)&7)!==0||hW(e)}function hW(e){const t=rg(e);return t.kind===260&&t.parent.kind===299}function n_(e){return dl(e)&&(e.name.kind===11||eg(e))}function JF(e){return dl(e)&&e.name.kind===11}function yW(e){return dl(e)&&Ba(e.name)}function ose(e){return dl(e)||Je(e)}function kP(e){return Fze(e.valueDeclaration)}function Fze(e){return!!e&&e.kind===267&&!e.body}function cse(e){return e.kind===312||e.kind===267||U6(e)}function eg(e){return!!(e.flags&2048)}function db(e){return n_(e)&&vW(e)}function vW(e){switch(e.parent.kind){case 312:return Cl(e.parent);case 268:return n_(e.parent.parent)&&es(e.parent.parent.parent)&&!Cl(e.parent.parent.parent)}return!1}function bW(e){var t;return(t=e.declarations)==null?void 0:t.find(r=>!db(r)&&!(dl(r)&&eg(r)))}function Lze(e){return e===1||e===100||e===199}function yk(e,t){return Cl(e)||Lze(r_(t))&&!!e.commonJsModuleIndicator}function SW(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return e.isDeclarationFile?!1:R_(t,"alwaysStrict")||Yoe(e.statements)?!0:Cl(e)||Ld(t)?r_(t)>=5?!0:!t.noImplicitUseStrict:!1}function xW(e){return!!(e.flags&33554432)||Kr(e,128)}function TW(e,t){switch(e.kind){case 312:case 269:case 299:case 267:case 248:case 249:case 250:case 176:case 174:case 177:case 178:case 262:case 218:case 219:case 172:case 175:return!0;case 241:return!U6(t)}return!1}function kW(e){switch(w.type(e),e.kind){case 345:case 353:case 330:return!0;default:return CW(e)}}function CW(e){switch(w.type(e),e.kind){case 179:case 180:case 173:case 181:case 184:case 185:case 324:case 263:case 231:case 264:case 265:case 352:case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function nx(e){switch(e.kind){case 272:case 271:return!0;default:return!1}}function lse(e){return nx(e)||yb(e)}function zF(e){switch(e.kind){case 272:case 271:case 243:case 263:case 262:case 267:case 265:case 264:case 266:return!0;default:return!1}}function use(e){return wA(e)||dl(e)||zh(e)||gp(e)}function wA(e){return nx(e)||ml(e)}function EW(e){return Vn(e.parent,t=>!!(jG(t)&1))}function qg(e){return Vn(e.parent,t=>TW(t,t.parent))}function _se(e,t){let r=qg(e);for(;r;)t(r),r=qg(r)}function Bo(e){return!e||kA(e)===0?"(Missing)":Ol(e)}function fse(e){return e.declaration?Bo(e.declaration.parameters[0].name):void 0}function DA(e){return e.kind===167&&!Ip(e.expression)}function CP(e){var t;switch(e.kind){case 80:case 81:return(t=e.emitNode)!=null&&t.autoGenerate?void 0:e.escapedText;case 11:case 9:case 15:return Nc(e.text);case 167:return Ip(e.expression)?Nc(e.expression.text):void 0;case 295:return Ok(e);default:return w.assertNever(e)}}function X6(e){return w.checkDefined(CP(e))}function Vf(e){switch(e.kind){case 110:return"this";case 81:case 80:return kA(e)===0?kr(e):Ol(e);case 166:return Vf(e.left)+"."+Vf(e.right);case 211:return Je(e.name)||Qi(e.name)?Vf(e.expression)+"."+Vf(e.name):w.assertNever(e.name);case 318:return Vf(e.left)+Vf(e.right);case 295:return Vf(e.namespace)+":"+Vf(e.name);default:return w.assertNever(e)}}function Rr(e,t,...r){const i=qn(e);return Pd(i,e,t,...r)}function Q6(e,t,r,...i){const s=za(e.text,t.pos);return bu(e,s,t.end-s,r,...i)}function Pd(e,t,r,...i){const s=rx(e,t);return bu(e,s.start,s.length,r,...i)}function m0(e,t,r,i){const s=rx(e,t);return UF(e,s.start,s.length,r,i)}function AA(e,t,r,i){const s=za(e.text,t.pos);return UF(e,s,t.end-s,r,i)}function pse(e,t,r){w.assertGreaterThanOrEqual(t,0),w.assertGreaterThanOrEqual(r,0),w.assertLessThanOrEqual(t,e.length),w.assertLessThanOrEqual(t+r,e.length)}function UF(e,t,r,i,s){return pse(e.text,t,r),{file:e,start:t,length:r,code:i.code,category:i.category,messageText:i.next?i:i.messageText,relatedInformation:s}}function PW(e,t,r){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:r}}function dse(e){return typeof e.messageText=="string"?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function mse(e,t,r){return{file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}}function Hg(e,t){const r=fy(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);r.scan();const i=r.getTokenStart();return Il(i,r.getTokenEnd())}function gse(e,t){const r=fy(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return r.scan(),r.getToken()}function Mze(e,t){const r=za(e.text,t.pos);if(t.body&&t.body.kind===241){const{line:i}=Ao(e,t.body.pos),{line:s}=Ao(e,t.body.end);if(i0?t.statements[0].pos:t.end;return Il(o,c)}case 253:case 229:{const o=za(e.text,t.pos);return Hg(e,o)}case 238:{const o=za(e.text,t.expression.end);return Hg(e,o)}case 357:{const o=za(e.text,t.tagName.pos);return Hg(e,o)}}if(r===void 0)return Hg(e,t.pos);w.assert(!Dm(r));const i=nl(r),s=i||Bk(t)?r.pos:za(e.text,r.pos);return i?(w.assert(s===r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),w.assert(s===r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(w.assert(s>=r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),w.assert(s<=r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),Il(s,r.end)}function mp(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==void 0}function wd(e){return e.scriptKind===6}function mb(e){return!!(Vv(e)&4096)}function VF(e){return!!(Vv(e)&8&&!Uf(e,e.parent))}function NA(e){return(py(e)&7)===6}function IA(e){return(py(e)&7)===4}function Y6(e){return(py(e)&7)===2}function WF(e){return(py(e)&7)===1}function ix(e){return e.kind===213&&e.expression.kind===108}function gp(e){return e.kind===213&&e.expression.kind===102}function Z6(e){return Sw(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function b1(e){return zh(e)&&N1(e.argument)&&Ba(e.argument.literal)}function em(e){return e.kind===244&&e.expression.kind===11}function OA(e){return!!(Ya(e)&2097152)}function qF(e){return OA(e)&&Wl(e)}function Rze(e){return Je(e.name)&&!e.initializer}function HF(e){return OA(e)&&Xc(e)&&Pn(e.declarationList.declarations,Rze)}function wW(e,t){return e.kind!==12?Ph(t.text,e.pos):void 0}function DW(e,t){const r=e.kind===169||e.kind===168||e.kind===218||e.kind===219||e.kind===217||e.kind===260||e.kind===281?zn(Jv(t,e.pos),Ph(t,e.pos)):Ph(t,e.pos);return vr(r,i=>t.charCodeAt(i.pos+1)===42&&t.charCodeAt(i.pos+2)===42&&t.charCodeAt(i.pos+3)!==47)}function Ih(e){if(182<=e.kind&&e.kind<=205)return!0;switch(e.kind){case 133:case 159:case 150:case 163:case 154:case 136:case 155:case 151:case 157:case 106:case 146:return!0;case 116:return e.parent.kind!==222;case 233:return JSe(e);case 168:return e.parent.kind===200||e.parent.kind===195;case 80:(e.parent.kind===166&&e.parent.right===e||e.parent.kind===211&&e.parent.name===e)&&(e=e.parent),w.assert(e.kind===80||e.kind===166||e.kind===211,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 166:case 211:case 110:{const{parent:t}=e;if(t.kind===186)return!1;if(t.kind===205)return!t.isTypeOf;if(182<=t.kind&&t.kind<=205)return!0;switch(t.kind){case 233:return JSe(t);case 168:return e===t.constraint;case 352:return e===t.constraint;case 172:case 171:case 169:case 260:return e===t.type;case 262:case 218:case 219:case 176:case 174:case 173:case 177:case 178:return e===t.type;case 179:case 180:case 181:return e===t.type;case 216:return e===t.type;case 213:case 214:case 215:return Ai(t.typeArguments,e)}}}return!1}function JSe(e){return aM(e.parent)||tC(e.parent)||Fp(e.parent)&&!P9(e)}function zSe(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function gb(e,t){return r(e);function r(i){switch(i.kind){case 253:return t(i);case 269:case 241:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 296:case 297:case 256:case 258:case 299:return Xs(i,r)}}}function hse(e,t){return r(e);function r(i){switch(i.kind){case 229:t(i);const s=i.expression;s&&r(s);return;case 266:case 264:case 267:case 265:return;default:if(oa(i)){if(i.name&&i.name.kind===167){r(i.name.expression);return}}else Ih(i)||Xs(i,r)}}}function AW(e){return e&&e.kind===188?e.elementType:e&&e.kind===183?Mg(e.typeArguments):void 0}function yse(e){switch(e.kind){case 264:case 263:case 231:case 187:return e.members;case 210:return e.properties}}function K6(e){if(e)switch(e.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function vse(e){return K6(e)||d1(e)}function EP(e){return e.parent.kind===261&&e.parent.parent.kind===243}function bse(e){return lr(e)?Va(e.parent)&&mr(e.parent.parent)&&rl(e.parent.parent)===2||GF(e.parent):!1}function GF(e){return lr(e)?mr(e)&&rl(e)===1:!1}function Sse(e){return(Ji(e)?Y6(e)&&Je(e.name)&&EP(e):Zs(e)?UP(e)&&Fl(e):Gf(e)&&UP(e))||GF(e)}function xse(e){switch(e.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function NW(e,t){for(;;){if(t&&t(e),e.statement.kind!==256)return e.statement;e=e.statement}}function hb(e){return e&&e.kind===241&&oa(e.parent)}function tm(e){return e&&e.kind===174&&e.parent.kind===210}function $F(e){return(e.kind===174||e.kind===177||e.kind===178)&&(e.parent.kind===210||e.parent.kind===231)}function Tse(e){return e&&e.kind===1}function USe(e){return e&&e.kind===0}function e4(e,t,r,i){return dt(e==null?void 0:e.properties,s=>{if(!Ml(s))return;const o=CP(s.name);return t===o||i&&i===o?r(s):void 0})}function kse(e,t,r){return e4(e,t,i=>B_(i.initializer)?Cn(i.initializer.elements,s=>Ba(s)&&s.text===r):void 0)}function PP(e){if(e&&e.statements.length){const t=e.statements[0].expression;return si(t,Va)}}function XF(e,t,r){return FA(e,t,i=>B_(i.initializer)?Cn(i.initializer.elements,s=>Ba(s)&&s.text===r):void 0)}function FA(e,t,r){return e4(PP(e),t,r)}function hp(e){return Vn(e.parent,oa)}function Cse(e){return Vn(e.parent,Ko)}function Du(e){return Vn(e.parent,fi)}function Ese(e){return Vn(e.parent,t=>fi(t)||oa(t)?"quit":Vc(t))}function QF(e){return Vn(e.parent,U6)}function YF(e){const t=Vn(e.parent,r=>fi(r)?"quit":Vu(r));return t&&fi(t.parent)?Du(t.parent):Du(t??e)}function _f(e,t,r){for(w.assert(e.kind!==312);;){if(e=e.parent,!e)return w.fail();switch(e.kind){case 167:if(r&&fi(e.parent.parent))return e;e=e.parent.parent;break;case 170:e.parent.kind===169&&vu(e.parent.parent)?e=e.parent.parent:vu(e.parent)&&(e=e.parent);break;case 219:if(!t)continue;case 262:case 218:case 267:case 175:case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 179:case 180:case 181:case 266:case 312:return e}}}function Pse(e){switch(e.kind){case 219:case 262:case 218:case 172:return!0;case 241:switch(e.parent.kind){case 176:case 174:case 177:case 178:return!0;default:return!1}default:return!1}}function ZF(e){Je(e)&&(ql(e.parent)||Wl(e.parent))&&e.parent.name===e&&(e=e.parent);const t=_f(e,!0,!1);return es(t)}function wse(e){const t=_f(e,!1,!1);if(t)switch(t.kind){case 176:case 262:case 218:return t}}function LA(e,t){for(;;){if(e=e.parent,!e)return;switch(e.kind){case 167:e=e.parent;break;case 262:case 218:case 219:if(!t)continue;case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 175:return e;case 170:e.parent.kind===169&&vu(e.parent.parent)?e=e.parent.parent:vu(e.parent)&&(e=e.parent);break}}}function sx(e){if(e.kind===218||e.kind===219){let t=e,r=e.parent;for(;r.kind===217;)t=r,r=r.parent;if(r.kind===213&&r.expression===t)return r}}function VSe(e){return e.kind===108||ff(e)}function ff(e){const t=e.kind;return(t===211||t===212)&&e.expression.kind===108}function MA(e){const t=e.kind;return(t===211||t===212)&&e.expression.kind===110}function KF(e){var t;return!!e&&Ji(e)&&((t=e.initializer)==null?void 0:t.kind)===110}function Dse(e){return!!e&&(Af(e)||Ml(e))&&mr(e.parent.parent)&&e.parent.parent.operatorToken.kind===64&&e.parent.parent.right.kind===110}function RA(e){switch(e.kind){case 183:return e.typeName;case 233:return il(e.expression)?e.expression:void 0;case 80:case 166:return e}}function e9(e){switch(e.kind){case 215:return e.tag;case 286:case 285:return e.tagName;case 226:return e.right;default:return e.expression}}function t9(e,t,r,i){if(e&&I_(t)&&Qi(t.name))return!1;switch(t.kind){case 263:return!0;case 231:return!e;case 172:return r!==void 0&&(e?ql(r):fi(r)&&!Eb(t)&&!_q(t));case 177:case 178:case 174:return t.body!==void 0&&r!==void 0&&(e?ql(r):fi(r));case 169:return e?r!==void 0&&r.body!==void 0&&(r.kind===176||r.kind===174||r.kind===178)&&Tb(r)!==t&&i!==void 0&&i.kind===263:!1}return!1}function t4(e,t,r,i){return Kp(t)&&t9(e,t,r,i)}function jA(e,t,r,i){return t4(e,t,r,i)||wP(e,t,r)}function wP(e,t,r){switch(t.kind){case 263:return Pe(t.members,i=>jA(e,i,t,r));case 231:return!e&&Pe(t.members,i=>jA(e,i,t,r));case 174:case 178:case 176:return Pe(t.parameters,i=>t4(e,i,t,r));default:return!1}}function gy(e,t){if(t4(e,t))return!0;const r=Rh(t);return!!r&&wP(e,r,t)}function IW(e,t,r){let i;if(d1(t)){const{firstAccessor:s,secondAccessor:o,setAccessor:c}=dx(r.members,t),u=Kp(s)?s:o&&Kp(o)?o:void 0;if(!u||t!==u)return!1;i=c==null?void 0:c.parameters}else ul(t)&&(i=t.parameters);if(t4(e,t,r))return!0;if(i){for(const s of i)if(!kb(s)&&t4(e,s,t,r))return!0}return!1}function OW(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return OW(e.textSourceNode);case 15:return e.text===""}return!1}return e.text===""}function n4(e){const{parent:t}=e;return t.kind===286||t.kind===285||t.kind===287?t.tagName===e:!1}function Oh(e){switch(e.kind){case 108:case 106:case 112:case 97:case 14:case 209:case 210:case 211:case 212:case 213:case 214:case 215:case 234:case 216:case 238:case 235:case 217:case 218:case 231:case 219:case 222:case 220:case 221:case 224:case 225:case 226:case 227:case 230:case 228:case 232:case 284:case 285:case 288:case 229:case 223:case 236:return!0;case 233:return!Fp(e.parent)&&!tC(e.parent);case 166:for(;e.parent.kind===166;)e=e.parent;return e.parent.kind===186||hk(e.parent)||ww(e.parent)||o2(e.parent)||n4(e);case 318:for(;o2(e.parent);)e=e.parent;return e.parent.kind===186||hk(e.parent)||ww(e.parent)||o2(e.parent)||n4(e);case 81:return mr(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===103;case 80:if(e.parent.kind===186||hk(e.parent)||ww(e.parent)||o2(e.parent)||n4(e))return!0;case 9:case 10:case 11:case 15:case 110:return n9(e);default:return!1}}function n9(e){const{parent:t}=e;switch(t.kind){case 260:case 169:case 172:case 171:case 306:case 303:case 208:return t.initializer===e;case 244:case 245:case 246:case 247:case 253:case 254:case 255:case 296:case 257:return t.expression===e;case 248:const r=t;return r.initializer===e&&r.initializer.kind!==261||r.condition===e||r.incrementor===e;case 249:case 250:const i=t;return i.initializer===e&&i.initializer.kind!==261||i.expression===e;case 216:case 234:return e===t.expression;case 239:return e===t.expression;case 167:return e===t.expression;case 170:case 294:case 293:case 305:return!0;case 233:return t.expression===e&&!Ih(t);case 304:return t.objectAssignmentInitializer===e;case 238:return e===t.expression;default:return Oh(t)}}function r9(e){for(;e.kind===166||e.kind===80;)e=e.parent;return e.kind===186}function Ase(e){return Zg(e)&&!!e.parent.moduleSpecifier}function Qv(e){return e.kind===271&&e.moduleReference.kind===283}function DP(e){return w.assert(Qv(e)),e.moduleReference.expression}function FW(e){return yb(e)&&S4(e.initializer).arguments[0]}function r4(e){return e.kind===271&&e.moduleReference.kind!==283}function L_(e){return lr(e)}function WSe(e){return!lr(e)}function lr(e){return!!e&&!!(e.flags&524288)}function i9(e){return!!e&&!!(e.flags&134217728)}function LW(e){return!wd(e)}function BA(e){return!!e&&!!(e.flags&16777216)}function s9(e){return id(e)&&Je(e.typeName)&&e.typeName.escapedText==="Object"&&e.typeArguments&&e.typeArguments.length===2&&(e.typeArguments[0].kind===154||e.typeArguments[0].kind===150)}function Q_(e,t){if(e.kind!==213)return!1;const{expression:r,arguments:i}=e;if(r.kind!==80||r.escapedText!=="require"||i.length!==1)return!1;const s=i[0];return!t||vo(s)}function a9(e){return qSe(e,!1)}function yb(e){return qSe(e,!0)}function Nse(e){return oo(e)&&yb(e.parent.parent)}function qSe(e,t){return Ji(e)&&!!e.initializer&&Q_(t?S4(e.initializer):e.initializer,!0)}function MW(e){return Xc(e)&&e.declarationList.declarations.length>0&&Pn(e.declarationList.declarations,t=>a9(t))}function JA(e){return e===39||e===34}function o9(e,t){return pb(t,e).charCodeAt(0)===34}function AP(e){return mr(e)||$o(e)||Je(e)||ma(e)}function zA(e){return lr(e)&&e.initializer&&mr(e.initializer)&&(e.initializer.operatorToken.kind===57||e.initializer.operatorToken.kind===61)&&e.name&&il(e.name)&&i4(e.name,e.initializer.left)?e.initializer.right:e.initializer}function UA(e){const t=zA(e);return t&&Yv(t,T1(e.name))}function jze(e,t){return dt(e.properties,r=>Ml(r)&&Je(r.name)&&r.name.escapedText==="value"&&r.initializer&&Yv(r.initializer,t))}function vk(e){if(e&&e.parent&&mr(e.parent)&&e.parent.operatorToken.kind===64){const t=T1(e.parent.left);return Yv(e.parent.right,t)||Bze(e.parent.left,e.parent.right,t)}if(e&&ma(e)&&ox(e)){const t=jze(e.arguments[2],e.arguments[1].text==="prototype");if(t)return t}}function Yv(e,t){if(ma(e)){const r=Eo(e.expression);return r.kind===218||r.kind===219?e:void 0}if(e.kind===218||e.kind===231||e.kind===219||Va(e)&&(e.properties.length===0||t))return e}function Bze(e,t,r){const i=mr(t)&&(t.operatorToken.kind===57||t.operatorToken.kind===61)&&Yv(t.right,r);if(i&&i4(e,t.left))return i}function Ise(e){const t=Ji(e.parent)?e.parent.name:mr(e.parent)&&e.parent.operatorToken.kind===64?e.parent.left:void 0;return t&&Yv(e.right,T1(t))&&il(t)&&i4(t,e.left)}function RW(e){if(mr(e.parent)){const t=(e.parent.operatorToken.kind===57||e.parent.operatorToken.kind===61)&&mr(e.parent.parent)?e.parent.parent:e.parent;if(t.operatorToken.kind===64&&Je(t.left))return t.left}else if(Ji(e.parent))return e.parent.name}function i4(e,t){return ng(e)&&ng(t)?Ad(e)===Ad(t):Dh(e)&&c9(t)&&(t.expression.kind===110||Je(t.expression)&&(t.expression.escapedText==="window"||t.expression.escapedText==="self"||t.expression.escapedText==="global"))?i4(e,qA(t)):c9(e)&&c9(t)?g0(e)===g0(t)&&i4(e.expression,t.expression):!1}function VA(e){for(;Kl(e,!0);)e=e.right;return e}function ax(e){return Je(e)&&e.escapedText==="exports"}function jW(e){return Je(e)&&e.escapedText==="module"}function Fh(e){return(Jr(e)||WA(e))&&jW(e.expression)&&g0(e)==="exports"}function rl(e){const t=Jze(e);return t===5||lr(e)?t:0}function ox(e){return Xe(e.arguments)===3&&Jr(e.expression)&&Je(e.expression.expression)&&kr(e.expression.expression)==="Object"&&kr(e.expression.name)==="defineProperty"&&Ip(e.arguments[1])&&cx(e.arguments[0],!0)}function c9(e){return Jr(e)||WA(e)}function WA(e){return uc(e)&&Ip(e.argumentExpression)}function vb(e,t){return Jr(e)&&(!t&&e.expression.kind===110||Je(e.name)&&cx(e.expression,!0))||l9(e,t)}function l9(e,t){return WA(e)&&(!t&&e.expression.kind===110||il(e.expression)||vb(e.expression,!0))}function cx(e,t){return il(e)||vb(e,t)}function qA(e){return Jr(e)?e.name:e.argumentExpression}function Jze(e){if(ma(e)){if(!ox(e))return 0;const t=e.arguments[0];return ax(t)||Fh(t)?8:vb(t)&&g0(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!$o(e.left)||zze(VA(e))?0:cx(e.left.expression,!0)&&g0(e.left)==="prototype"&&Va(BW(e))?6:HA(e.left)}function zze(e){return Xk(e)&&Hf(e.expression)&&e.expression.text==="0"}function u9(e){if(Jr(e))return e.name;const t=Eo(e.argumentExpression);return Hf(t)||vo(t)?t:e}function g0(e){const t=u9(e);if(t){if(Je(t))return t.escapedText;if(vo(t)||Hf(t))return Nc(t.text)}}function HA(e){if(e.expression.kind===110)return 4;if(Fh(e))return 2;if(cx(e.expression,!0)){if(T1(e.expression))return 3;let t=e;for(;!Je(t.expression);)t=t.expression;const r=t.expression;if((r.escapedText==="exports"||r.escapedText==="module"&&g0(t)==="exports")&&vb(e))return 1;if(cx(e,!0)||uc(e)&&g9(e))return 5}return 0}function BW(e){for(;mr(e.right);)e=e.right;return e.right}function GA(e){return mr(e)&&rl(e)===3}function Ose(e){return lr(e)&&e.parent&&e.parent.kind===244&&(!uc(e)||WA(e))&&!!qv(e.parent)}function $A(e,t){const{valueDeclaration:r}=e;(!r||!(t.flags&33554432&&!lr(t)&&!(r.flags&33554432))&&AP(r)&&!AP(t)||r.kind!==t.kind&&ose(r))&&(e.valueDeclaration=t)}function Fse(e){if(!e||!e.valueDeclaration)return!1;const t=e.valueDeclaration;return t.kind===262||Ji(t)&&t.initializer&&oa(t.initializer)}function s4(e){var t,r;switch(e.kind){case 260:case 208:return(t=Vn(e.initializer,i=>Q_(i,!0)))==null?void 0:t.arguments[0];case 272:case 278:return si(e.moduleSpecifier,vo);case 271:return si((r=si(e.moduleReference,Kg))==null?void 0:r.expression,vo);case 273:case 280:return si(e.parent.moduleSpecifier,vo);case 274:case 281:return si(e.parent.parent.moduleSpecifier,vo);case 276:return si(e.parent.parent.parent.moduleSpecifier,vo);case 205:return b1(e)?e.argument.literal:void 0;default:w.assertNever(e)}}function NP(e){return XA(e)||w.failBadSyntaxKind(e.parent)}function XA(e){switch(e.parent.kind){case 272:case 278:return e.parent;case 283:return e.parent.parent;case 213:return gp(e.parent)||Q_(e.parent,!1)?e.parent:void 0;case 201:return w.assert(Ba(e)),si(e.parent.parent,zh);default:return}}function a4(e){switch(e.kind){case 272:case 278:return e.moduleSpecifier;case 271:return e.moduleReference.kind===283?e.moduleReference.expression:void 0;case 205:return b1(e)?e.argument.literal:void 0;case 213:return e.arguments[0];case 267:return e.name.kind===11?e.name:void 0;default:return w.assertNever(e)}}function o4(e){switch(e.kind){case 272:return e.importClause&&si(e.importClause.namedBindings,F1);case 271:return e;case 278:return e.exportClause&&si(e.exportClause,Zg);default:return w.assertNever(e)}}function bk(e){return e.kind===272&&!!e.importClause&&!!e.importClause.name}function _9(e,t){if(e.name){const r=t(e);if(r)return r}if(e.namedBindings){const r=F1(e.namedBindings)?t(e.namedBindings):dt(e.namedBindings.elements,t);if(r)return r}}function Sk(e){if(e)switch(e.kind){case 169:case 174:case 173:case 304:case 303:case 172:case 171:return e.questionToken!==void 0}return!1}function c4(e){const t=B4(e)?hu(e.parameters):void 0,r=si(t&&t.name,Je);return!!r&&r.escapedText==="new"}function Dd(e){return e.kind===353||e.kind===345||e.kind===347}function QA(e){return Dd(e)||im(e)}function Uze(e){return xu(e)&&mr(e.expression)&&e.expression.operatorToken.kind===64?VA(e.expression):void 0}function HSe(e){return xu(e)&&mr(e.expression)&&rl(e.expression)!==0&&mr(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function JW(e){switch(e.kind){case 243:const t=xk(e);return t&&t.initializer;case 172:return e.initializer;case 303:return e.initializer}}function xk(e){return Xc(e)?hu(e.declarationList.declarations):void 0}function GSe(e){return dl(e)&&e.body&&e.body.kind===267?e.body:void 0}function YA(e){if(e.kind>=243&&e.kind<=259)return!0;switch(e.kind){case 80:case 110:case 108:case 166:case 236:case 212:case 211:case 208:case 218:case 219:case 174:case 177:case 178:return!0;default:return!1}}function ZA(e){switch(e.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 324:case 330:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return!0;default:return!1}}function zW(e,t){let r;K6(e)&&h1(e)&&dp(e.initializer)&&(r=Mr(r,$Se(e,e.initializer.jsDoc)));let i=e;for(;i&&i.parent;){if(dp(i)&&(r=Mr(r,$Se(e,i.jsDoc))),i.kind===169){r=Mr(r,(t?die:B6)(i));break}if(i.kind===168){r=Mr(r,(t?gie:mie)(i));break}i=UW(i)}return r||Ke}function $Se(e,t){const r=so(t);return Ys(t,i=>{if(i===r){const s=vr(i.tags,o=>Vze(e,o));return i.tags===s?[i]:s}else return vr(i.tags,J4)})}function Vze(e,t){return!(Dw(t)||oM(t))||!t.parent||!Dm(t.parent)||!df(t.parent.parent)||t.parent.parent===e}function UW(e){const t=e.parent;if(t.kind===303||t.kind===277||t.kind===172||t.kind===244&&e.kind===211||t.kind===253||GSe(t)||Kl(e))return t;if(t.parent&&(xk(t.parent)===e||Kl(t)))return t.parent;if(t.parent&&t.parent.parent&&(xk(t.parent.parent)||JW(t.parent.parent)===e||HSe(t.parent.parent)))return t.parent.parent}function KA(e){if(e.symbol)return e.symbol;if(!Je(e.name))return;const t=e.name.escapedText,r=Zv(e);if(!r)return;const i=Cn(r.parameters,s=>s.name.kind===80&&s.name.escapedText===t);return i&&i.symbol}function f9(e){if(Dm(e.parent)&&e.parent.tags){const t=Cn(e.parent.tags,Dd);if(t)return t}return Zv(e)}function VW(e){return hF(e,J4)}function Zv(e){const t=Kv(e);if(t)return Gf(t)&&t.type&&oa(t.type)?t.type:oa(t)?t:void 0}function Kv(e){const t=lx(e);if(t)return HSe(t)||Uze(t)||JW(t)||xk(t)||GSe(t)||t}function lx(e){const t=l4(e);if(!t)return;const r=t.parent;if(r&&r.jsDoc&&t===pc(r.jsDoc))return r}function l4(e){return Vn(e.parent,Dm)}function Lse(e){const t=e.name.escapedText,{typeParameters:r}=e.parent.parent.parent;return r&&Cn(r,i=>i.name.escapedText===t)}function XSe(e){return!!e.typeArguments}function Mse(e){let t=e.parent;for(;;){switch(t.kind){case 226:const r=t,i=r.operatorToken.kind;return vy(i)&&r.left===e?r:void 0;case 224:case 225:const s=t,o=s.operator;return o===46||o===47?s:void 0;case 249:case 250:const c=t;return c.initializer===e?c:void 0;case 217:case 209:case 230:case 235:e=t;break;case 305:e=t.parent;break;case 304:if(t.name!==e)return;e=t.parent;break;case 303:if(t.name===e)return;e=t.parent;break;default:return}t=e.parent}}function Tk(e){const t=Mse(e);if(!t)return 0;switch(t.kind){case 226:const r=t.operatorToken.kind;return r===64||VP(r)?1:2;case 224:case 225:return 2;case 249:case 250:return 1}}function Lh(e){return!!Mse(e)}function Wze(e){const t=Eo(e.right);return t.kind===226&&$H(t.operatorToken.kind)}function WW(e){const t=Mse(e);return!!t&&Kl(t,!0)&&Wze(t)}function Rse(e){switch(e.kind){case 241:case 243:case 254:case 245:case 255:case 269:case 296:case 297:case 256:case 248:case 249:case 250:case 246:case 247:case 258:case 299:return!0}return!1}function jse(e){return Xo(e)||ec(e)||mk(e)||Wl(e)||$c(e)}function QSe(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function eN(e){return QSe(e,196)}function hy(e){return QSe(e,217)}function Bse(e){let t;for(;e&&e.kind===196;)t=e,e=e.parent;return[t,e]}function tN(e){for(;bx(e);)e=e.type;return e}function Eo(e,t){return gl(e,t?17:1)}function qW(e){return e.kind!==211&&e.kind!==212?!1:(e=hy(e.parent),e&&e.kind===220)}function bb(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function h0(e){return!es(e)&&!ca(e)&&g_(e.parent)&&e.parent.name===e}function IP(e){const t=e.parent;switch(e.kind){case 11:case 15:case 9:if(co(t))return t.parent;case 80:if(g_(t))return t.name===e?t:void 0;if(Z_(t)){const r=t.parent;return Am(r)&&r.name===t?r:void 0}else{const r=t.parent;return mr(r)&&rl(r)!==0&&(r.left.symbol||r.symbol)&&Ms(r)===e?r:void 0}case 81:return g_(t)&&t.name===e?t:void 0;default:return}}function nN(e){return Ip(e)&&e.parent.kind===167&&g_(e.parent.parent)}function Jse(e){const t=e.parent;switch(t.kind){case 172:case 171:case 174:case 173:case 177:case 178:case 306:case 303:case 211:return t.name===e;case 166:return t.right===e;case 208:case 276:return t.propertyName===e;case 281:case 291:case 285:case 286:case 287:return!0}return!1}function YSe(e){return e.kind===271||e.kind===270||e.kind===273&&e.name||e.kind===274||e.kind===280||e.kind===276||e.kind===281||e.kind===277&&u4(e)?!0:lr(e)&&(mr(e)&&rl(e)===2&&u4(e)||Jr(e)&&mr(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===64&&rN(e.parent.right))}function HW(e){switch(e.parent.kind){case 273:case 276:case 274:case 281:case 277:case 271:case 280:return e.parent;case 166:do e=e.parent;while(e.parent.kind===166);return HW(e)}}function rN(e){return il(e)||Su(e)}function u4(e){const t=GW(e);return rN(t)}function GW(e){return Qc(e)?e.expression:e.right}function zse(e){return e.kind===304?e.name:e.kind===303?e.initializer:e.parent.right}function tg(e){const t=Sb(e);if(t&&lr(e)){const r=yie(e);if(r)return r.class}return t}function Sb(e){const t=iN(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function _4(e){if(lr(e))return vie(e).map(t=>t.class);{const t=iN(e.heritageClauses,119);return t==null?void 0:t.types}}function OP(e){return J_(e)?FP(e)||Ke:fi(e)&&zn(ok(tg(e)),_4(e))||Ke}function FP(e){const t=iN(e.heritageClauses,96);return t?t.types:void 0}function iN(e,t){if(e){for(const r of e)if(r.token===t)return r}}function e2(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function pf(e){return 83<=e&&e<=165}function $W(e){return 19<=e&&e<=79}function p9(e){return pf(e)||$W(e)}function d9(e){return 128<=e&&e<=165}function XW(e){return pf(e)&&!d9(e)}function ZSe(e){return 119<=e&&e<=127}function kk(e){const t=cb(e);return t!==void 0&&XW(t)}function KSe(e){const t=cb(e);return t!==void 0&&pf(t)}function QW(e){const t=Wv(e);return!!t&&!d9(t)}function f4(e){return 2<=e&&e<=7}function lu(e){if(!e)return 4;let t=0;switch(e.kind){case 262:case 218:case 174:e.asteriskToken&&(t|=1);case 219:Kr(e,1024)&&(t|=2);break}return e.body||(t|=4),t}function LP(e){switch(e.kind){case 262:case 218:case 219:case 174:return e.body!==void 0&&e.asteriskToken===void 0&&Kr(e,1024)}return!1}function Ip(e){return vo(e)||Hf(e)}function m9(e){return O1(e)&&(e.operator===40||e.operator===41)&&Hf(e.operand)}function S1(e){const t=Ms(e);return!!t&&g9(t)}function g9(e){if(!(e.kind===167||e.kind===212))return!1;const t=uc(e)?Eo(e.argumentExpression):e.expression;return!Ip(t)&&!m9(t)}function ux(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:return Nc(e.text);case 167:const t=e.expression;return Ip(t)?Nc(t.text):m9(t)?t.operator===41?ba(t.operator)+t.operand.text:t.operand.text:void 0;case 295:return Ok(e);default:return w.assertNever(e)}}function ng(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function Ad(e){return Dh(e)?kr(e):wm(e)?_w(e):e.text}function MP(e){return Dh(e)?e.escapedText:wm(e)?Ok(e):Nc(e.text)}function exe(e){return`__@${Ia(e)}@${e.escapedName}`}function sN(e,t){return`__#${Ia(e)}@${t}`}function aN(e){return fs(e.escapedName,"__@")}function Use(e){return fs(e.escapedName,"__#")}function txe(e){return e.kind===80&&e.escapedText==="Symbol"}function Vse(e){return Je(e)?kr(e)==="__proto__":Ba(e)&&e.text==="__proto__"}function RP(e,t){switch(e=gl(e),e.kind){case 231:if(a$(e))return!1;break;case 218:if(e.name)return!1;break;case 219:break;default:return!1}return typeof t=="function"?t(e):!0}function YW(e){switch(e.kind){case 303:return!Vse(e.name);case 304:return!!e.objectAssignmentInitializer;case 260:return Je(e.name)&&!!e.initializer;case 169:return Je(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 208:return Je(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 172:return!!e.initializer;case 226:switch(e.operatorToken.kind){case 64:case 77:case 76:case 78:return Je(e.left)}break;case 277:return!0}return!1}function Wf(e,t){if(!YW(e))return!1;switch(e.kind){case 303:return RP(e.initializer,t);case 304:return RP(e.objectAssignmentInitializer,t);case 260:case 169:case 208:case 172:return RP(e.initializer,t);case 226:return RP(e.right,t);case 277:return RP(e.expression,t)}}function ZW(e){return e.escapedText==="push"||e.escapedText==="unshift"}function xb(e){return rg(e).kind===169}function rg(e){for(;e.kind===208;)e=e.parent.parent;return e}function KW(e){const t=e.kind;return t===176||t===218||t===262||t===219||t===174||t===177||t===178||t===267||t===312}function lc(e){return Em(e.pos)||Em(e.end)}function nxe(e){return Is(e,es)||e}function eq(e){const t=nq(e),r=e.kind===214&&e.arguments!==void 0;return tq(e.kind,t,r)}function tq(e,t,r){switch(e){case 214:return r?0:1;case 224:case 221:case 222:case 220:case 223:case 227:case 229:return 1;case 226:switch(t){case 43:case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 1}}return 0}function jP(e){const t=nq(e),r=e.kind===214&&e.arguments!==void 0;return oN(e.kind,t,r)}function nq(e){return e.kind===226?e.operatorToken.kind:e.kind===224||e.kind===225?e.operator:e.kind}function oN(e,t,r){switch(e){case 361:return 0;case 230:return 1;case 229:return 2;case 227:return 4;case 226:switch(t){case 28:return 0;case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 3;default:return cN(t)}case 216:case 235:case 224:case 221:case 222:case 220:case 223:return 16;case 225:return 17;case 213:return 18;case 214:return r?19:18;case 215:case 211:case 212:case 236:return 19;case 234:case 238:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 209:case 210:case 218:case 219:case 231:case 14:case 15:case 228:case 217:case 232:case 284:case 285:case 288:return 20;default:return-1}}function cN(e){switch(e){case 61:return 4;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function p4(e){return vr(e,t=>{switch(t.kind){case 294:return!!t.expression;case 12:return!t.containsOnlyTriviaWhiteSpaces;default:return!0}})}function d4(){let e=[];const t=[],r=new Map;let i=!1;return{add:o,lookup:s,getGlobalDiagnostics:c,getDiagnostics:u};function s(f){let g;if(f.file?g=r.get(f.file.fileName):g=e,!g)return;const d=ay(g,f,dc,R9);if(d>=0)return g[d]}function o(f){let g;f.file?(g=r.get(f.file.fileName),g||(g=[],r.set(f.file.fileName,g),$s(t,f.file.fileName,p_))):(i&&(i=!1,e=e.slice()),g=e),$s(g,f,R9)}function c(){return i=!0,e}function u(f){if(f)return r.get(f)||[];const g=Yp(t,d=>r.get(d));return e.length&&g.unshift(...e),g}}function rq(e){return e.replace(wxe,"\\${")}function Wse(e){return!!((e.templateFlags||0)&2048)}function iq(e){return e&&!!(Jk(e)?Wse(e):Wse(e.head)||Pe(e.templateSpans,t=>Wse(t.literal)))}function rxe(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function qze(e,t,r){if(e.charCodeAt(0)===0){const i=r.charCodeAt(t+e.length);return i>=48&&i<=57?"\\x00":"\\0"}return Ixe.get(e)||rxe(e.charCodeAt(0))}function Mh(e,t){const r=t===96?Nxe:t===39?Axe:Dxe;return e.replace(r,qze)}function lN(e,t){return e=Mh(e,t),eoe.test(e)?e.replace(eoe,r=>rxe(r.charCodeAt(0))):e}function Hze(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Gze(e){return e.charCodeAt(0)===0?"�":Lxe.get(e)||Hze(e.charCodeAt(0))}function sq(e,t){const r=t===39?Fxe:Oxe;return e.replace(r,Gze)}function Nd(e){const t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&$ze(e.charCodeAt(0))?e.substring(1,t-1):e}function $ze(e){return e===39||e===34||e===96}function m4(e){const t=e.charCodeAt(0);return t>=97&&t<=122||e.includes("-")}function h9(e){const t=fw[1];for(let r=fw.length;r<=e;r++)fw.push(fw[r-1]+t);return fw[e]}function g4(){return fw[1].length}function uN(e){var t,r,i,s,o,c=!1;function u(D){const M=_k(D);M.length>1?(s=s+M.length-1,o=t.length-D.length+so(M),i=o-t.length===0):i=!1}function f(D){D&&D.length&&(i&&(D=h9(r)+D,i=!1),t+=D,u(D))}function g(D){D&&(c=!1),f(D)}function d(D){D&&(c=!0),f(D)}function y(){t="",r=0,i=!0,s=0,o=0,c=!1}function x(D){D!==void 0&&(t+=D,u(D),c=!1)}function T(D){D&&D.length&&g(D)}function C(D){(!i||D)&&(t+=e,s++,o=t.length,i=!0,c=!1)}function N(){return i?t.length:t.length+e.length}return y(),{write:g,rawWrite:x,writeLiteral:T,writeLine:C,increaseIndent:()=>{r++},decreaseIndent:()=>{r--},getIndent:()=>r,getTextPos:()=>t.length,getLine:()=>s,getColumn:()=>i?r*g4():t.length-o,getText:()=>t,isAtStartOfLine:()=>i,hasTrailingComment:()=>c,hasTrailingWhitespace:()=>!!t.length&&f0(t.charCodeAt(t.length-1)),clear:y,writeKeyword:g,writeOperator:g,writeParameter:g,writeProperty:g,writePunctuation:g,writeSpace:g,writeStringLiteral:g,writeSymbol:(D,M)=>g(D),writeTrailingSemicolon:g,writeComment:d,getTextPosWithWriteLine:N}}function aq(e){let t=!1;function r(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return{...e,writeTrailingSemicolon(){t=!0},writeLiteral(i){r(),e.writeLiteral(i)},writeStringLiteral(i){r(),e.writeStringLiteral(i)},writeSymbol(i,s){r(),e.writeSymbol(i,s)},writePunctuation(i){r(),e.writePunctuation(i)},writeKeyword(i){r(),e.writeKeyword(i)},writeOperator(i){r(),e.writeOperator(i)},writeParameter(i){r(),e.writeParameter(i)},writeSpace(i){r(),e.writeSpace(i)},writeProperty(i){r(),e.writeProperty(i)},writeComment(i){r(),e.writeComment(i)},writeLine(){r(),e.writeLine()},increaseIndent(){r(),e.increaseIndent()},decreaseIndent(){r(),e.decreaseIndent()}}}function h4(e){return e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames():!1}function yy(e){return e_(h4(e))}function y9(e,t,r){return t.moduleName||oq(e,t.fileName,r&&r.fileName)}function ixe(e,t){return e.getCanonicalFileName(Ss(t,e.getCurrentDirectory()))}function qse(e,t,r){const i=t.getExternalModuleFileFromDeclaration(r);if(!i||i.isDeclarationFile)return;const s=a4(r);if(!(s&&vo(s)&&!pp(s.text)&&!ixe(e,i.path).includes(ixe(e,ou(e.getCommonSourceDirectory())))))return y9(e,i)}function oq(e,t,r){const i=f=>e.getCanonicalFileName(f),s=hc(r?oi(r):e.getCommonSourceDirectory(),e.getCurrentDirectory(),i),o=Ss(t,e.getCurrentDirectory()),c=uk(s,o,s,i,!1),u=Y_(c);return r?ob(u):u}function Hse(e,t,r){const i=t.getCompilerOptions();let s;return i.outDir?s=Y_(x9(e,t,i.outDir)):s=Y_(e),s+r}function Gse(e,t){return v9(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),r=>t.getCanonicalFileName(r))}function v9(e,t,r,i,s){const o=t.declarationDir||t.outDir,c=o?T9(e,o,r,i,s):e,u=b9(c);return Y_(c)+u}function b9(e){return Vl(e,[".mjs",".mts"])?".d.mts":Vl(e,[".cjs",".cts"])?".d.cts":Vl(e,[".json"])?".d.json.ts":".d.ts"}function $se(e){return Vl(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:Vl(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:Vl(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function Vo(e){return e.outFile||e.out}function S9(e,t){var r;if(e.paths)return e.baseUrl??w.checkDefined(e.pathsBasePath||((r=t.getCurrentDirectory)==null?void 0:r.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function cq(e,t,r){const i=e.getCompilerOptions();if(Vo(i)){const s=r_(i),o=i.emitDeclarationOnly||s===2||s===4;return vr(e.getSourceFiles(),c=>(o||!Cl(c))&&_x(c,e,r))}else{const s=t===void 0?e.getSourceFiles():[t];return vr(s,o=>_x(o,e,r))}}function _x(e,t,r){const i=t.getCompilerOptions();if(i.noEmitForJsFiles&&L_(e)||e.isDeclarationFile||t.isSourceFileFromExternalLibrary(e))return!1;if(r)return!0;if(t.isSourceOfProjectReferenceRedirect(e.fileName))return!1;if(!wd(e))return!0;if(t.getResolvedProjectReferenceToRedirect(e.fileName))return!1;if(Vo(i))return!0;if(!i.outDir)return!1;if(i.rootDir||i.composite&&i.configFilePath){const s=Ss(eD(i,()=>[],t.getCurrentDirectory(),t.getCanonicalFileName),t.getCurrentDirectory()),o=T9(e.fileName,i.outDir,t.getCurrentDirectory(),s,t.getCanonicalFileName);if(u0(e.fileName,o,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0)return!1}return!0}function x9(e,t,r){return T9(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),i=>t.getCanonicalFileName(i))}function T9(e,t,r,i,s){let o=Ss(e,r);return o=s(o).indexOf(s(i))===0?o.substring(i.length):o,Zr(t,o)}function BP(e,t,r,i,s,o,c){e.writeFile(r,i,s,u=>{t.add(ll(p.Could_not_write_file_0_Colon_1,r,u))},o,c)}function sxe(e,t,r){if(e.length>zg(e)&&!r(e)){const i=oi(e);sxe(i,t,r),t(e)}}function lq(e,t,r,i,s,o){try{i(e,t,r)}catch{sxe(oi(ka(e)),s,o),i(e,t,r)}}function JP(e,t){const r=_0(e);return oP(r,t)}function fx(e,t){return oP(e,t)}function Rh(e){return Cn(e.members,t=>$c(t)&&Ed(t.body))}function zP(e){if(e&&e.parameters.length>0){const t=e.parameters.length===2&&kb(e.parameters[0]);return e.parameters[t?1:0]}}function Xse(e){const t=zP(e);return t&&t.type}function Tb(e){if(e.parameters.length&&!c2(e)){const t=e.parameters[0];if(kb(t))return t}}function kb(e){return Cb(e.name)}function Cb(e){return!!e&&e.kind===80&&uq(e)}function px(e){return!!Vn(e,t=>t.kind===186?!0:t.kind===80||t.kind===166?!1:"quit")}function Ck(e){if(!Cb(e))return!1;for(;Z_(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===186}function uq(e){return e.escapedText==="this"}function dx(e,t){let r,i,s,o;return S1(t)?(r=t,t.kind===177?s=t:t.kind===178?o=t:w.fail("Accessor has wrong kind")):dt(e,c=>{if(d1(c)&&da(c)===da(t)){const u=ux(c.name),f=ux(t.name);u===f&&(r?i||(i=c):r=c,c.kind===177&&!s&&(s=c),c.kind===178&&!o&&(o=c))}}),{firstAccessor:r,secondAccessor:i,getAccessor:s,setAccessor:o}}function zu(e){if(!lr(e)&&Wl(e))return;const t=e.type;return t||!lr(e)?t:gP(e)?e.typeExpression&&e.typeExpression.type:Hv(e)}function Qse(e){return e.type}function Id(e){return c2(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(lr(e)?lA(e):void 0)}function k9(e){return Ys(Gv(e),t=>Xze(t)?t.typeParameters:void 0)}function Xze(e){return Rd(e)&&!(e.parent.kind===327&&(e.parent.tags.some(Dd)||e.parent.tags.some(J4)))}function Yse(e){const t=zP(e);return t&&zu(t)}function Zse(e,t,r,i){Kse(e,t,r.pos,i)}function Kse(e,t,r,i){i&&i.length&&r!==i[0].pos&&fx(e,r)!==fx(e,i[0].pos)&&t.writeLine()}function eae(e,t,r,i){r!==i&&fx(e,r)!==fx(e,i)&&t.writeLine()}function tae(e,t,r,i,s,o,c,u){if(i&&i.length>0){s&&r.writeSpace(" ");let f=!1;for(const g of i)f&&(r.writeSpace(" "),f=!1),u(e,t,r,g.pos,g.end,c),g.hasTrailingNewLine?r.writeLine():f=!0;f&&o&&r.writeSpace(" ")}}function nae(e,t,r,i,s,o,c){let u,f;if(c?s.pos===0&&(u=vr(Ph(e,s.pos),g)):u=Ph(e,s.pos),u){const d=[];let y;for(const x of u){if(y){const T=fx(t,y.end);if(fx(t,x.pos)>=T+2)break}d.push(x),y=x}if(d.length){const x=fx(t,so(d).end);fx(t,za(e,s.pos))>=x+2&&(Zse(t,r,s,u),tae(e,t,r,d,!1,!0,o,i),f={nodePos:s.pos,detachedCommentEndPos:so(d).end})}}return f;function g(d){return jF(e,d.pos)}}function y4(e,t,r,i,s,o){if(e.charCodeAt(i+1)===42){const c=L6(t,i),u=t.length;let f;for(let g=i,d=c.line;g0){let C=T%g4();const N=h9((T-C)/g4());for(r.rawWrite(N);C;)r.rawWrite(" "),C--}else r.rawWrite("")}Qze(e,s,r,o,g,y),g=y}}else r.writeComment(e.substring(i,s))}function Qze(e,t,r,i,s,o){const c=Math.min(t,o-1),u=e.substring(s,c).trim();u?(r.writeComment(u),c!==t&&r.writeLine()):r.rawWrite(i)}function axe(e,t,r){let i=0;for(;t=0&&e.kind<=165?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=fq(e)|536870912),r||t&&lr(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=oxe(e)|268435456),cxe(e.modifierFlagsCache)):Yze(e.modifierFlagsCache))}function M_(e){return sae(e,!0)}function aae(e){return sae(e,!0,!0)}function x1(e){return sae(e,!1)}function oxe(e){let t=0;return e.parent&&!ws(e)&&(lr(e)&&(bie(e)&&(t|=8388608),Sie(e)&&(t|=16777216),xie(e)&&(t|=33554432),Tie(e)&&(t|=67108864),kie(e)&&(t|=134217728)),Cie(e)&&(t|=65536)),t}function Yze(e){return e&65535}function cxe(e){return e&131071|(e&260046848)>>>23}function Zze(e){return cxe(oxe(e))}function oae(e){return fq(e)|Zze(e)}function fq(e){let t=sm(e)?sg(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(t|=32),t}function sg(e){let t=0;if(e)for(const r of e)t|=Pk(r.kind);return t}function Pk(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 170:return 32768}return 0}function lxe(e){return e===57||e===56}function cae(e){return lxe(e)||e===54}function VP(e){return e===76||e===77||e===78}function pq(e){return mr(e)&&VP(e.operatorToken.kind)}function _N(e){return lxe(e)||e===61}function fN(e){return mr(e)&&_N(e.operatorToken.kind)}function vy(e){return e>=64&&e<=79}function dq(e){const t=mq(e);return t&&!t.isImplements?t.class:void 0}function mq(e){if(Cy(e)){if(Fp(e.parent)&&fi(e.parent.parent))return{class:e.parent.parent,isImplements:e.parent.token===119};if(tC(e.parent)){const t=Kv(e.parent);if(t&&fi(t))return{class:t,isImplements:!1}}}}function Kl(e,t){return mr(e)&&(t?e.operatorToken.kind===64:vy(e.operatorToken.kind))&&Pf(e.left)}function uxe(e){return Kl(e.parent)&&e.parent.left===e}function by(e){if(Kl(e,!0)){const t=e.left.kind;return t===210||t===209}return!1}function P9(e){return dq(e)!==void 0}function il(e){return e.kind===80||pN(e)}function yp(e){switch(e.kind){case 80:return e;case 166:do e=e.left;while(e.kind!==80);return e;case 211:do e=e.expression;while(e.kind!==80);return e}}function WP(e){return e.kind===80||e.kind===110||e.kind===108||e.kind===236||e.kind===211&&WP(e.expression)||e.kind===217&&WP(e.expression)}function pN(e){return Jr(e)&&Je(e.name)&&il(e.expression)}function dN(e){if(Jr(e)){const t=dN(e.expression);if(t!==void 0)return t+"."+Vf(e.name)}else if(uc(e)){const t=dN(e.expression);if(t!==void 0&&Tl(e.argumentExpression))return t+"."+ux(e.argumentExpression)}else{if(Je(e))return Hi(e.escapedText);if(wm(e))return _w(e)}}function T1(e){return vb(e)&&g0(e)==="prototype"}function qP(e){return e.parent.kind===166&&e.parent.right===e||e.parent.kind===211&&e.parent.name===e||e.parent.kind===236&&e.parent.name===e}function gq(e){return!!e.parent&&(Jr(e.parent)&&e.parent.name===e||uc(e.parent)&&e.parent.argumentExpression===e)}function lae(e){return Z_(e.parent)&&e.parent.right===e||Jr(e.parent)&&e.parent.name===e||o2(e.parent)&&e.parent.right===e}function w9(e){return mr(e)&&e.operatorToken.kind===104}function uae(e){return w9(e.parent)&&e===e.parent.right}function hq(e){return e.kind===210&&e.properties.length===0}function _ae(e){return e.kind===209&&e.elements.length===0}function v4(e){if(!(!Kze(e)||!e.declarations)){for(const t of e.declarations)if(t.localSymbol)return t.localSymbol}}function Kze(e){return e&&Xe(e.declarations)>0&&Kr(e.declarations[0],2048)}function D9(e){return Cn(Jxe,t=>zc(e,t))}function eUe(e){const t=[],r=e.length;for(let i=0;i>6|192),t.push(s&63|128)):s<65536?(t.push(s>>12|224),t.push(s>>6&63|128),t.push(s&63|128)):s<131072?(t.push(s>>18|240),t.push(s>>12&63|128),t.push(s>>6&63|128),t.push(s&63|128)):w.assert(!1,"Unexpected code point")}return t}function fae(e){let t="";const r=eUe(e);let i=0;const s=r.length;let o,c,u,f;for(;i>2,c=(r[i]&3)<<4|r[i+1]>>4,u=(r[i+1]&15)<<2|r[i+2]>>6,f=r[i+2]&63,i+1>=s?u=f=64:i+2>=s&&(f=64),t+=gx.charAt(o)+gx.charAt(c)+gx.charAt(u)+gx.charAt(f),i+=3;return t}function tUe(e){let t="",r=0;const i=e.length;for(;r>4&3,d=(c&15)<<4|u>>2&15,y=(u&3)<<6|f&63;d===0&&u!==0?i.push(g):y===0&&f!==0?i.push(g,d):i.push(g,d,y),s+=4}return tUe(i)}function yq(e,t){const r=Ls(t)?t:t.readFile(e);if(!r)return;const i=oG(e,r);return i.error?void 0:i.config}function HP(e,t){return yq(e,t)||{}}function A9(e){try{return JSON.parse(e)}catch{return}}function km(e,t){return!t.directoryExists||t.directoryExists(e)}function Sy(e){switch(e.newLine){case 0:return Mxe;case 1:case void 0:return Rxe}}function ed(e,t=e){return w.assert(t>=e||t===-1),{pos:e,end:t}}function N9(e,t){return ed(e.pos,t)}function t2(e,t){return ed(t,e.end)}function y0(e){const t=sm(e)?Ro(e.modifiers,Vu):void 0;return t&&!Em(t.end)?t2(e,t.end):e}function ag(e){if(Zs(e)||ul(e))return t2(e,e.name.pos);const t=sm(e)?pc(e.modifiers):void 0;return t&&!Em(t.end)?t2(e,t.end):y0(e)}function _xe(e){return e.pos===e.end}function vq(e,t){return ed(e,e+ba(t).length)}function mx(e,t){return gae(e,e,t)}function I9(e,t,r){return td(GP(e,r,!1),GP(t,r,!1),r)}function mae(e,t,r){return td(e.end,t.end,r)}function gae(e,t,r){return td(GP(e,r,!1),t.end,r)}function mN(e,t,r){return td(e.end,GP(t,r,!1),r)}function bq(e,t,r,i){const s=GP(t,r,i);return cP(r,e.end,s)}function fxe(e,t,r){return cP(r,e.end,t.end)}function hae(e,t){return!td(e.pos,e.end,t)}function td(e,t,r){return cP(r,e,t)===0}function GP(e,t,r){return Em(e.pos)?-1:za(t.text,e.pos,!1,r)}function yae(e,t,r,i){const s=za(r.text,e,!1,i),o=nUe(s,t,r);return cP(r,o??t,s)}function vae(e,t,r,i){const s=za(r.text,e,!1,i);return cP(r,e,Math.min(t,s))}function nUe(e,t=0,r){for(;e-- >t;)if(!f0(r.text.charCodeAt(e)))return e}function Sq(e){const t=Is(e);if(t)switch(t.parent.kind){case 266:case 267:return t===t.parent.name}return!1}function $P(e){return vr(e.declarations,gN)}function gN(e){return Ji(e)&&e.initializer!==void 0}function pxe(e){return e.watch&&jo(e,"watch")}function Cm(e){e.close()}function Uc(e){return e.flags&33554432?e.links.checkFlags:0}function nd(e,t=!1){if(e.valueDeclaration){const r=t&&e.declarations&&Cn(e.declarations,$f)||e.flags&32768&&Cn(e.declarations,Op)||e.valueDeclaration,i=Vv(r);return e.parent&&e.parent.flags&32?i:i&-8}if(Uc(e)&6){const r=e.links.checkFlags,i=r&1024?2:r&256?1:4,s=r&2048?256:0;return i|s}return e.flags&4194304?257:0}function Uu(e,t){return e.flags&2097152?t.getAliasedSymbol(e):e}function b4(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function O9(e){return XP(e)===1}function wk(e){return XP(e)!==0}function XP(e){const{parent:t}=e;switch(t==null?void 0:t.kind){case 217:return XP(t);case 225:case 224:const{operator:r}=t;return r===46||r===47?2:0;case 226:const{left:i,operatorToken:s}=t;return i===e&&vy(s.kind)?s.kind===64?1:2:0;case 211:return t.name!==e?0:XP(t);case 303:{const o=XP(t.parent);return e===t.name?rUe(o):o}case 304:return e===t.objectAssignmentInitializer?0:XP(t.parent);case 209:return XP(t);default:return 0}}function rUe(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return w.assertNever(e)}}function xq(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(typeof e[r]=="object"){if(!xq(e[r],t[r]))return!1}else if(typeof e[r]!="function"&&e[r]!==t[r])return!1;return!0}function wf(e,t){e.forEach(t),e.clear()}function jh(e,t,r){const{onDeleteValue:i,onExistingValue:s}=r;e.forEach((o,c)=>{var u;t!=null&&t.has(c)?s&&s(o,(u=t.get)==null?void 0:u.call(t,c),c):(e.delete(c),i(o,c))})}function QP(e,t,r){jh(e,t,r);const{createNewValue:i}=r;t==null||t.forEach((s,o)=>{e.has(o)||e.set(o,i(o,s))})}function bae(e){if(e.flags&32){const t=v0(e);return!!t&&Kr(t,64)}return!1}function v0(e){var t;return(t=e.declarations)==null?void 0:t.find(fi)}function Br(e){return e.flags&3899393?e.objectFlags:0}function dxe(e,t){return!!Yd(e,r=>t(r)?!0:void 0)}function F9(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&YN(e.declarations[0])}function Sae({moduleSpecifier:e}){return Ba(e)?e.text:Ol(e)}function Tq(e){let t;return Xs(e,r=>{Ed(r)&&(t=r)},r=>{for(let i=r.length-1;i>=0;i--)if(Ed(r[i])){t=r[i];break}}),t}function nm(e,t,r=!0){return e.has(t)?!1:(e.set(t,r),!0)}function Dk(e){return fi(e)||J_(e)||Xf(e)}function kq(e){return e>=182&&e<=205||e===133||e===159||e===150||e===163||e===151||e===136||e===154||e===155||e===116||e===157||e===146||e===141||e===233||e===319||e===320||e===321||e===322||e===323||e===324||e===325}function $o(e){return e.kind===211||e.kind===212}function Cq(e){return e.kind===211?e.name:(w.assert(e.kind===212),e.argumentExpression)}function xae(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}}function L9(e){return e.kind===275||e.kind===279}function S4(e){for(;$o(e);)e=e.expression;return e}function Tae(e,t){if($o(e.parent)&&gq(e))return r(e.parent);function r(i){if(i.kind===211){const s=t(i.name);if(s!==void 0)return s}else if(i.kind===212)if(Je(i.argumentExpression)||vo(i.argumentExpression)){const s=t(i.argumentExpression);if(s!==void 0)return s}else return;if($o(i.expression))return r(i.expression);if(Je(i.expression))return t(i.expression)}}function x4(e,t){for(;;){switch(e.kind){case 225:e=e.operand;continue;case 226:e=e.left;continue;case 227:e=e.condition;continue;case 215:e=e.tag;continue;case 213:if(t)return e;case 234:case 212:case 211:case 235:case 360:case 238:e=e.expression;continue}return e}}function iUe(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}function sUe(e,t){this.flags=t,(w.isDebugging||cr)&&(this.checker=e)}function aUe(e,t){this.flags=t,w.isDebugging&&(this.checker=e)}function kae(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function oUe(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function cUe(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function lUe(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(i=>i)}function Cae(e){toe.push(e),e(Au)}function Eae(e){Object.assign(Au,e),dt(toe,t=>t(Au))}function Bh(e,t){return e.replace(/{(\d+)}/g,(r,i)=>""+w.checkDefined(t[+i]))}function Pae(e){cL=e}function wae(e){!cL&&e&&(cL=e())}function zs(e){return cL&&cL[e.key]||e.message}function T4(e,t,r,i,s,...o){r+i>t.length&&(i=t.length-r),pse(t,r,i);let c=zs(s);return Pe(o)&&(c=Bh(c,o)),{file:void 0,start:r,length:i,messageText:c,category:s.category,code:s.code,reportsUnnecessary:s.reportsUnnecessary,fileName:e}}function uUe(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function mxe(e,t){const r=t.fileName||"",i=t.text.length;w.assertEqual(e.fileName,r),w.assertLessThanOrEqual(e.start,i),w.assertLessThanOrEqual(e.start+e.length,i);const s={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){s.relatedInformation=[];for(const o of e.relatedInformation)uUe(o)&&o.fileName===r?(w.assertLessThanOrEqual(o.start,i),w.assertLessThanOrEqual(o.start+o.length,i),s.relatedInformation.push(mxe(o,t))):s.relatedInformation.push(o)}return s}function Ak(e,t){const r=[];for(const i of e)r.push(mxe(i,t));return r}function bu(e,t,r,i,...s){pse(e.text,t,r);let o=zs(i);return Pe(s)&&(o=Bh(o,s)),{file:e,start:t,length:r,messageText:o,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated}}function Eq(e,...t){let r=zs(e);return Pe(t)&&(r=Bh(r,t)),r}function ll(e,...t){let r=zs(e);return Pe(t)&&(r=Bh(r,t)),{file:void 0,start:void 0,length:void 0,messageText:r,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function M9(e,t){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}}function Hs(e,t,...r){let i=zs(t);return Pe(r)&&(i=Bh(i,r)),{messageText:i,category:t.category,code:t.code,next:e===void 0||Array.isArray(e)?e:[e]}}function Dae(e,t){let r=e;for(;r.next;)r=r.next[0];r.next=[t]}function gxe(e){return e.file?e.file.path:void 0}function YP(e,t){return R9(e,t)||_Ue(e,t)||0}function R9(e,t){return p_(gxe(e),gxe(t))||mc(e.start,t.start)||mc(e.length,t.length)||mc(e.code,t.code)||hxe(e.messageText,t.messageText)||0}function _Ue(e,t){return!e.relatedInformation&&!t.relatedInformation?0:e.relatedInformation&&t.relatedInformation?mc(e.relatedInformation.length,t.relatedInformation.length)||dt(e.relatedInformation,(r,i)=>{const s=t.relatedInformation[i];return YP(r,s)})||0:e.relatedInformation?-1:1}function hxe(e,t){if(typeof e=="string"&&typeof t=="string")return p_(e,t);if(typeof e=="string")return-1;if(typeof t=="string")return 1;let r=p_(e.messageText,t.messageText);if(r)return r;if(!e.next&&!t.next)return 0;if(!e.next)return-1;if(!t.next)return 1;const i=Math.min(e.next.length,t.next.length);for(let s=0;st.next.length?1:0}function hN(e){return e===4||e===2||e===1||e===6?1:0}function yxe(e){if(e.transformFlags&2)return F_(e)||jb(e)?e:Xs(e,yxe)}function fUe(e){return e.isDeclarationFile?void 0:yxe(e)}function pUe(e){return(e.impliedNodeFormat===99||Vl(e.fileName,[".cjs",".cts",".mjs",".mts"]))&&!e.isDeclarationFile?!0:void 0}function yN(e){switch(Qq(e)){case 3:return s=>{s.externalModuleIndicator=c7(s)||!s.isDeclarationFile||void 0};case 1:return s=>{s.externalModuleIndicator=c7(s)};case 2:const t=[c7];(e.jsx===4||e.jsx===5)&&t.push(fUe),t.push(pUe);const r=Tm(...t);return s=>void(s.externalModuleIndicator=r(s))}}function D6t(e){return e}function j9(e){return e>=5&&e<=99}function B9(e){switch(r_(e)){case 0:case 4:case 3:return!1}return!0}function Pq(e){return e.verbatimModuleSyntax||e.isolatedModules&&e.preserveValueImports}function Aae(e){return e.allowUnreachableCode===!1}function Nae(e){return e.allowUnusedLabels===!1}function Nk(e){return e>=3&&e<=99||e===100}function R_(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function Iae(e){return e.useDefineForClassFields!==!1&&go(e)>=9}function Oae(e,t){return H6(t,e,gG)}function Fae(e,t){return H6(t,e,hG)}function Lae(e,t){return H6(t,e,yG)}function J9(e,t){return t.strictFlag?R_(e,t.name):t.allowJsFlag?P1(e):e[t.name]}function z9(e){const t=e.jsx;return t===2||t===4||t===5}function U9(e,t){const r=t==null?void 0:t.pragmas.get("jsximportsource"),i=Ps(r)?r[r.length-1]:r;return e.jsx===4||e.jsx===5||e.jsxImportSource||i?(i==null?void 0:i.arguments.factory)||e.jsxImportSource||"react":void 0}function V9(e,t){return e?`${e}/${t.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function wq(e){let t=!1;for(let r=0;rs,getSymlinkedDirectories:()=>r,getSymlinkedDirectoriesByRealpath:()=>i,setSymlinkedFile:(u,f)=>(s||(s=new Map)).set(u,f),setSymlinkedDirectory:(u,f)=>{let g=hc(u,e,t);aw(g)||(g=ou(g),f!==!1&&!(r!=null&&r.has(g))&&(i||(i=Dp())).add(f.realPath,u),(r||(r=new Map)).set(g,f))},setSymlinksFromResolutions(u,f,g){w.assert(!o),o=!0,u(d=>c(this,d.resolvedModule)),f(d=>c(this,d.resolvedTypeReferenceDirective)),g.forEach(d=>c(this,d.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>o};function c(u,f){if(!f||!f.originalPath||!f.resolvedFileName)return;const{resolvedFileName:g,originalPath:d}=f;u.setSymlinkedFile(hc(d,e,t),g);const[y,x]=dUe(g,d,e,t)||Ke;y&&x&&u.setSymlinkedDirectory(x,{real:ou(y),realPath:ou(hc(y,e,t))})}}function dUe(e,t,r,i){const s=au(Ss(e,r)),o=au(Ss(t,r));let c=!1;for(;s.length>=2&&o.length>=2&&!vxe(s[s.length-2],i)&&!vxe(o[o.length-2],i)&&i(s[s.length-1])===i(o[o.length-1]);)s.pop(),o.pop(),c=!0;return c?[c1(s),c1(o)]:void 0}function vxe(e,t){return e!==void 0&&(t(e)==="node_modules"||fs(e,"@"))}function mUe(e){return DV(e.charCodeAt(0))?e.slice(1):void 0}function Aq(e,t,r){const i=hU(e,t,r);return i===void 0?void 0:mUe(i)}function bxe(e){return e.replace(Yq,gUe)}function gUe(e){return"\\"+e}function ZP(e,t,r){const i=W9(e,t,r);return!i||!i.length?void 0:`^(${i.map(c=>`(${c})`).join("|")})${r==="exclude"?"($|/)":"$"}`}function W9(e,t,r){if(!(e===void 0||e.length===0))return Ys(e,i=>i&&q9(i,t,r,eH[r]))}function Nq(e){return!/[.*?]/.test(e)}function Mae(e,t,r){const i=e&&q9(e,t,r,eH[r]);return i&&`^(${i})${r==="exclude"?"($|/)":"$"}`}function q9(e,t,r,{singleAsteriskRegexFragment:i,doubleAsteriskRegexFragment:s,replaceWildcardCharacter:o}=eH[r]){let c="",u=!1;const f=$8(e,t),g=so(f);if(r!=="exclude"&&g==="**")return;f[0]=Bv(f[0]),Nq(g)&&f.push("**","*");let d=0;for(let y of f){if(y==="**")c+=s;else if(r==="directories"&&(c+="(",d++),u&&(c+=yc),r!=="exclude"){let x="";y.charCodeAt(0)===42?(x+="([^./]"+i+")?",y=y.substr(1)):y.charCodeAt(0)===63&&(x+="[^./]",y=y.substr(1)),x+=y.replace(Yq,o),x!==y&&(c+=Kq),c+=x}else c+=y.replace(Yq,o);u=!0}for(;d>0;)c+=")?",d--;return c}function Rae(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function H9(e,t,r,i,s){e=ka(e),s=ka(s);const o=Zr(s,e);return{includeFilePatterns:Kt(W9(r,o,"files"),c=>`^${c}$`),includeFilePattern:ZP(r,o,"files"),includeDirectoryPattern:ZP(r,o,"directories"),excludePattern:ZP(t,o,"exclude"),basePaths:hUe(e,r,i)}}function k1(e,t){return new RegExp(e,t?"":"i")}function Iq(e,t,r,i,s,o,c,u,f){e=ka(e),o=ka(o);const g=H9(e,r,i,s,o),d=g.includeFilePatterns&&g.includeFilePatterns.map(M=>k1(M,s)),y=g.includeDirectoryPattern&&k1(g.includeDirectoryPattern,s),x=g.excludePattern&&k1(g.excludePattern,s),T=d?d.map(()=>[]):[[]],C=new Map,N=e_(s);for(const M of g.basePaths)D(M,Zr(o,M),c);return P_(T);function D(M,V,G){const Z=N(f(V));if(C.has(Z))return;C.set(Z,!0);const{files:z,directories:ce}=u(M);for(const J of i1(z,p_)){const ne=Zr(M,J),ge=Zr(V,J);if(!(t&&!Vl(ne,t))&&!(x&&x.test(ge)))if(!d)T[0].push(ne);else{const ve=Gs(d,Q=>Q.test(ge));ve!==-1&&T[ve].push(ne)}}if(!(G!==void 0&&(G--,G===0)))for(const J of i1(ce,p_)){const ne=Zr(M,J),ge=Zr(V,J);(!y||y.test(ge))&&(!x||!x.test(ge))&&D(ne,ge,G)}}}function hUe(e,t,r){const i=[e];if(t){const s=[];for(const o of t){const c=zf(o)?o:ka(Zr(e,o));s.push(yUe(c))}s.sort(E6(!r));for(const o of s)Pn(i,c=>!Xd(c,o,e,!r))&&i.push(o)}return i}function yUe(e){const t=Qa(e,jxe);return t<0?lk(e)?Bv(oi(e)):e:e.substring(0,e.lastIndexOf(yc,t))}function G9(e,t){return t||$9(e)||3}function $9(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}function KP(e,t){const r=e&&P1(e);if(!t||t.length===0)return r?_L:w4;const i=r?_L:w4,s=P_(i);return[...i,...Oi(t,c=>c.scriptKind===7||r&&vUe(c.scriptKind)&&!s.includes(c.extension)?[c.extension]:void 0)]}function vN(e,t){return!e||!i2(e)?t:t===_L?zxe:t===w4?Bxe:[...t,[".json"]]}function vUe(e){return e===1||e===2}function Pb(e){return Pe(D4,t=>zc(e,t))}function Ik(e){return Pe(tH,t=>zc(e,t))}function jae({imports:e},t=Tm(Pb,Ik)){return li(e,({text:r})=>pp(r)&&!Vl(r,IN)?t(r):void 0)||!1}function Bae(e,t,r,i){const s=j_(r),o=3<=s&&s<=99;if(e==="js"||t===99&&o)return e3(r)&&c()!==2?3:2;if(e==="minimal")return 0;if(e==="index")return 1;if(!e3(r))return jae(i)?2:0;return c();function c(){let u=!1;const f=i.imports.length?i.imports:L_(i)?bUe(i).map(g=>g.arguments[0]):Ke;for(const g of f)if(pp(g.text)){if(o&&t===1&&I$(i,g,r)===99||Vl(g.text,IN))continue;if(Ik(g.text))return 3;Pb(g.text)&&(u=!0)}return u?2:0}}function bUe(e){let t=0,r;for(const i of e.statements){if(t>3)break;MW(i)?r=zn(r,i.declarationList.declarations.map(s=>s.initializer)):xu(i)&&Q_(i.expression,!0)?r=gn(r,i.expression):t++}return r||Ke}function Jae(e,t,r){if(!e)return!1;const i=KP(t,r);for(const s of P_(vN(t,i)))if(zc(e,s))return!0;return!1}function Sxe(e){const t=e.match(/\//g);return t?t.length:0}function bN(e,t){return mc(Sxe(e),Sxe(t))}function Y_(e){for(const t of iH){const r=zae(e,t);if(r!==void 0)return r}return e}function zae(e,t){return zc(e,t)?SN(e,t):void 0}function SN(e,t){return e.substring(0,e.length-t.length)}function n2(e,t){return X8(e,t,iH,!1)}function k4(e){const t=e.indexOf("*");return t===-1?e:e.indexOf("*",t+1)!==-1?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function X9(e){return Oi(Eh(e),t=>k4(t))}function Em(e){return!(e>=0)}function Q9(e){return e===".ts"||e===".tsx"||e===".d.ts"||e===".cts"||e===".mts"||e===".d.mts"||e===".d.cts"||fs(e,".d.")&&Jc(e,".ts")}function ew(e){return Q9(e)||e===".json"}function tw(e){const t=b0(e);return t!==void 0?t:w.fail(`File ${e} has unknown extension.`)}function xxe(e){return b0(e)!==void 0}function b0(e){return Cn(iH,t=>zc(e,t))}function xN(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}function Oq(e,t){const r=[];for(const i of e){if(i===t)return t;Ls(i)||r.push(i)}return gU(r,i=>i,t)}function Fq(e,t){const r=e.indexOf(t);return w.assert(r!==-1),e.slice(r)}function Ua(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),w.assert(e.relatedInformation!==Ke,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function Uae(e,t){w.assert(e.length!==0);let r=t(e[0]),i=r;for(let s=1;si&&(i=o)}return{min:r,max:i}}function Lq(e){return{pos:Xv(e),end:e.end}}function Mq(e,t){const r=t.pos-1,i=Math.min(e.text.length,za(e.text,t.end)+1);return{pos:r,end:i}}function nw(e,t,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||r.isSourceOfProjectReferenceRedirect(e.fileName)}function Y9(e,t){return e===t||typeof e=="object"&&e!==null&&typeof t=="object"&&t!==null&&vre(e,t,Y9)}function rw(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:const g=e.length-1;let d=0;for(;e.charCodeAt(d)===48;)d++;return e.slice(d,g)||"0"}const r=2,i=e.length-1,s=(i-r)*t,o=new Uint16Array((s>>>4)+(s&15?1:0));for(let g=i-1,d=0;g>=r;g--,d+=t){const y=d>>>4,x=e.charCodeAt(g),C=(x<=57?x-48:10+x-(x<=70?65:97))<<(d&15);o[y]|=C;const N=C>>>16;N&&(o[y+1]|=N)}let c="",u=o.length-1,f=!0;for(;f;){let g=0;f=!1;for(let d=u;d>=0;d--){const y=g<<16|o[d],x=y/10|0;o[d]=x,g=y-x*10,x&&!f&&(u=d,f=!0)}c=g+c}return c}function wb({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function Vae(e){if(Z9(e,!1))return Rq(e)}function Rq(e){const t=e.startsWith("-"),r=rw(`${t?e.slice(1):e}n`);return{negative:t,base10Value:r}}function Z9(e,t){if(e==="")return!1;const r=fy(99,!1);let i=!0;r.setOnError(()=>i=!1),r.setText(e+"n");let s=r.scan();const o=s===41;o&&(s=r.scan());const c=r.getTokenFlags();return i&&s===10&&r.getTokenEnd()===e.length+1&&!(c&512)&&(!t||e===wb({negative:o,base10Value:rw(r.getTokenValue())}))}function r2(e){return!!(e.flags&33554432)||r9(e)||TUe(e)||xUe(e)||!(Oh(e)||SUe(e))}function SUe(e){return Je(e)&&Af(e.parent)&&e.parent.name===e}function xUe(e){for(;e.kind===80||e.kind===211;)e=e.parent;if(e.kind!==167)return!1;if(Kr(e.parent,64))return!0;const t=e.parent.parent.kind;return t===264||t===187}function TUe(e){if(e.kind!==80)return!1;const t=Vn(e.parent,r=>{switch(r.kind){case 298:return!0;case 211:case 233:return!1;default:return"quit"}});return(t==null?void 0:t.token)===119||(t==null?void 0:t.parent.kind)===264}function Wae(e){return id(e)&&Je(e.typeName)}function qae(e,t=ly){if(e.length<2)return!0;const r=e[0];for(let i=1,s=e.length;ie.includes(t))}function $ae(e){if(!e.parent)return;switch(e.kind){case 168:const{parent:r}=e;return r.kind===195?void 0:r.typeParameters;case 169:return e.parent.parameters;case 204:return e.parent.templateSpans;case 239:return e.parent.templateSpans;case 170:{const{parent:i}=e;return Nx(i)?i.modifiers:void 0}case 298:return e.parent.heritageClauses}const{parent:t}=e;if(q6(e))return wx(e.parent)?void 0:e.parent.tags;switch(t.kind){case 187:case 264:return ZS(e)?t.members:void 0;case 192:case 193:return t.types;case 189:case 209:case 361:case 275:case 279:return t.elements;case 210:case 292:return t.properties;case 213:case 214:return Gi(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 284:case 288:return xA(e)?t.children:void 0;case 286:case 285:return Gi(e)?t.typeArguments:void 0;case 241:case 296:case 297:case 268:return t.statements;case 269:return t.clauses;case 263:case 231:return vu(e)?t.members:void 0;case 266:return zb(e)?t.members:void 0;case 312:return t.statements}}function K9(e){if(!e.typeParameters){if(Pe(e.parameters,t=>!zu(t)))return!0;if(e.kind!==219){const t=hu(e.parameters);if(!(t&&kb(t)))return!0}}return!1}function ow(e){return e==="Infinity"||e==="-Infinity"||e==="NaN"}function Xae(e){return e.kind===260&&e.parent.kind===299}function Db(e){return e.kind===218||e.kind===219}function Ab(e){return e.replace(/\$/gm,()=>"\\$")}function Jh(e){return(+e).toString()===e}function eL(e,t,r,i,s){const o=s&&e==="new";return!o&&Np(e,t)?L.createIdentifier(e):!i&&!o&&Jh(e)&&+e>=0?L.createNumericLiteral(+e):L.createStringLiteral(e,!!r)}function cw(e){return!!(e.flags&262144&&e.isThisType)}function tL(e){let t=0,r=0,i=0,s=0,o;(g=>{g[g.BeforeNodeModules=0]="BeforeNodeModules",g[g.NodeModules=1]="NodeModules",g[g.Scope=2]="Scope",g[g.PackageContent=3]="PackageContent"})(o||(o={}));let c=0,u=0,f=0;for(;u>=0;)switch(c=u,u=e.indexOf("/",c+1),f){case 0:e.indexOf(th,c)===c&&(t=c,r=u,f=1);break;case 1:case 2:f===1&&e.charAt(c+1)==="@"?f=2:(i=u,f=3);break;case 3:e.indexOf(th,c)===c?f=1:f=3;break}return s=c,f>1?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:s}:void 0}function Txe(e){var t;return e.kind===348?(t=e.typeExpression)==null?void 0:t.type:e.type}function P4(e){switch(e.kind){case 168:case 263:case 264:case 265:case 266:case 353:case 345:case 347:return!0;case 273:return e.isTypeOnly;case 276:case 281:return e.parent.parent.isTypeOnly;default:return!1}}function TN(e){return a2(e)||Xc(e)||Wl(e)||ql(e)||J_(e)||P4(e)||dl(e)&&!db(e)&&!eg(e)}function kN(e){if(!gP(e))return!1;const{isBracketed:t,typeExpression:r}=e;return t||!!r&&r.type.kind===323}function Bq(e,t){if(e.length===0)return!1;const r=e.charCodeAt(0);return r===35?e.length>1&&wh(e.charCodeAt(1),t):wh(r,t)}function Qae(e){var t;return((t=pH(e))==null?void 0:t.kind)===0}function CN(e){return lr(e)&&(e.type&&e.type.kind===323||B6(e).some(({isBracketed:t,typeExpression:r})=>t||!!r&&r.type.kind===323))}function lw(e){switch(e.kind){case 172:case 171:return!!e.questionToken;case 169:return!!e.questionToken||CN(e);case 355:case 348:return kN(e);default:return!1}}function Yae(e){const t=e.kind;return(t===211||t===212)&&Qk(e.expression)}function Jq(e){return lr(e)&&df(e)&&dp(e)&&!!qV(e)}function zq(e){return w.checkDefined(nL(e))}function nL(e){const t=qV(e);return t&&t.typeExpression&&t.typeExpression.type}function uw(e){return Je(e)?e.escapedText:Ok(e)}function EN(e){return Je(e)?kr(e):_w(e)}function Zae(e){const t=e.kind;return t===80||t===295}function Ok(e){return`${e.namespace.escapedText}:${kr(e.name)}`}function _w(e){return`${kr(e.namespace)}:${kr(e.name)}`}function Uq(e){return Je(e)?kr(e):_w(e)}function Od(e){return!!(e.flags&8576)}function Fd(e){return e.flags&8192?e.escapedName:e.flags&384?Nc(""+e.value):w.fail()}function rL(e){return!!e&&(Jr(e)||uc(e)||mr(e))}function Kae(e){return e===void 0?!1:!!r3(e.attributes)}function Fk(e,t){return Uxe.call(e,"*",t)}function iL(e){return Je(e.name)?e.name.escapedText:Nc(e.name.text)}var sL,E1,PN,aL,wN,oL,Vq,Wq,kxe,Cxe,qq,Exe,Pxe,Hq,Gq,$q,Xq,wxe,Dxe,Axe,Nxe,Ixe,eoe,Oxe,Fxe,Lxe,fw,gx,Mxe,Rxe,Au,toe,cL,Ll,go,r_,j_,Qq,Ld,$g,hx,lL,uL,i2,rd,Nb,pw,DN,P1,dw,Yq,jxe,Zq,Kq,noe,roe,ioe,eH,w4,tH,Bxe,Jxe,nH,D4,_L,zxe,AN,NN,IN,rH,iH,fL,Uxe,CUe=K({"src/compiler/utilities.ts"(){ua(),sL=[],E1="tslib",PN=160,aL=1e6,wN=wze(),oL=X_(()=>new Map(Object.entries({Array:new Map(Object.entries({es2015:["find","findIndex","fill","copyWithin","entries","keys","values"],es2016:["includes"],es2019:["flat","flatMap"],es2022:["at"],es2023:["findLastIndex","findLast"]})),Iterator:new Map(Object.entries({es2015:Ke})),AsyncIterator:new Map(Object.entries({es2015:Ke})),Atomics:new Map(Object.entries({es2017:Ke})),SharedArrayBuffer:new Map(Object.entries({es2017:Ke})),AsyncIterable:new Map(Object.entries({es2018:Ke})),AsyncIterableIterator:new Map(Object.entries({es2018:Ke})),AsyncGenerator:new Map(Object.entries({es2018:Ke})),AsyncGeneratorFunction:new Map(Object.entries({es2018:Ke})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"]})),Reflect:new Map(Object.entries({es2015:["apply","construct","defineProperty","deleteProperty","get","getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"]})),ArrayConstructor:new Map(Object.entries({es2015:["from","of"]})),ObjectConstructor:new Map(Object.entries({es2015:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],es2017:["values","entries","getOwnPropertyDescriptors"],es2019:["fromEntries"],es2022:["hasOwn"]})),NumberConstructor:new Map(Object.entries({es2015:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"]})),Math:new Map(Object.entries({es2015:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"]})),Symbol:new Map(Object.entries({es2015:["for","keyFor"],es2019:["description"]})),WeakMap:new Map(Object.entries({es2015:["entries","keys","values"]})),WeakSet:new Map(Object.entries({es2015:["entries","keys","values"]})),String:new Map(Object.entries({es2015:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],es2017:["padStart","padEnd"],es2019:["trimStart","trimEnd","trimLeft","trimRight"],es2020:["matchAll"],es2021:["replaceAll"],es2022:["at"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:Ke,es2018:["finally"]})),RegExpMatchArray:new Map(Object.entries({es2018:["groups"]})),RegExpExecArray:new Map(Object.entries({es2018:["groups"]})),Intl:new Map(Object.entries({es2018:["PluralRules"]})),NumberFormat:new Map(Object.entries({es2018:["formatToParts"]})),SymbolConstructor:new Map(Object.entries({es2020:["matchAll"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"]})),BigInt:new Map(Object.entries({es2020:Ke})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float64Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),BigInt64Array:new Map(Object.entries({es2020:Ke,es2022:["at"],es2023:["findLastIndex","findLast"]})),BigUint64Array:new Map(Object.entries({es2020:Ke,es2022:["at"],es2023:["findLastIndex","findLast"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))),Vq=(e=>(e[e.None=0]="None",e[e.NeverAsciiEscape=1]="NeverAsciiEscape",e[e.JsxAttributeEscape=2]="JsxAttributeEscape",e[e.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",e[e.AllowNumericSeparator=8]="AllowNumericSeparator",e))(Vq||{}),Wq=/^(\/\/\/\s*/,kxe=/^(\/\/\/\s*/,Cxe=/^(\/\/\/\s*/,qq=/^(\/\/\/\s*/,Exe=/^\/\/\/\s*/,Pxe=/^(\/\/\/\s*/,Hq=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(Hq||{}),Gq=(e=>(e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator",e))(Gq||{}),$q=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))($q||{}),Xq=(e=>(e[e.Comma=0]="Comma",e[e.Spread=1]="Spread",e[e.Yield=2]="Yield",e[e.Assignment=3]="Assignment",e[e.Conditional=4]="Conditional",e[e.Coalesce=4]="Coalesce",e[e.LogicalOR=5]="LogicalOR",e[e.LogicalAND=6]="LogicalAND",e[e.BitwiseOR=7]="BitwiseOR",e[e.BitwiseXOR=8]="BitwiseXOR",e[e.BitwiseAND=9]="BitwiseAND",e[e.Equality=10]="Equality",e[e.Relational=11]="Relational",e[e.Shift=12]="Shift",e[e.Additive=13]="Additive",e[e.Multiplicative=14]="Multiplicative",e[e.Exponentiation=15]="Exponentiation",e[e.Unary=16]="Unary",e[e.Update=17]="Update",e[e.LeftHandSide=18]="LeftHandSide",e[e.Member=19]="Member",e[e.Primary=20]="Primary",e[e.Highest=20]="Highest",e[e.Lowest=0]="Lowest",e[e.Invalid=-1]="Invalid",e))(Xq||{}),wxe=/\$\{/g,Dxe=/[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Axe=/[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Nxe=/\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,Ixe=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085","\r\n":"\\r\\n"})),eoe=/[^\u0000-\u007F]/g,Oxe=/["\u0000-\u001f\u2028\u2029\u0085]/g,Fxe=/['\u0000-\u001f\u2028\u2029\u0085]/g,Lxe=new Map(Object.entries({'"':""","'":"'"})),fw=[""," "],gx="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Mxe=`\r +`,Rxe=` +`,Au={getNodeConstructor:()=>kae,getTokenConstructor:()=>oUe,getIdentifierConstructor:()=>cUe,getPrivateIdentifierConstructor:()=>kae,getSourceFileConstructor:()=>kae,getSymbolConstructor:()=>iUe,getTypeConstructor:()=>sUe,getSignatureConstructor:()=>aUe,getSourceMapSourceConstructor:()=>lUe},toe=[],Ll={target:{dependencies:["module"],computeValue:e=>e.target??(e.module===100&&9||e.module===199&&99||1)},module:{dependencies:["target"],computeValue:e=>typeof e.module=="number"?e.module:Ll.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(t===void 0)switch(Ll.module.computeValue(e)){case 1:t=2;break;case 100:t=3;break;case 199:t=99;break;case 200:t=100;break;default:t=1;break}return t}},moduleDetection:{dependencies:["module","target"],computeValue:e=>e.moduleDetection||(Ll.module.computeValue(e)===100||Ll.module.computeValue(e)===199?3:2)},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:e=>!!(e.isolatedModules||e.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:e=>{if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(Ll.module.computeValue(e)){case 100:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:Ll.esModuleInterop.computeValue(e)||Ll.module.computeValue(e)===4||Ll.moduleResolution.computeValue(e)===100},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{const t=Ll.moduleResolution.computeValue(e);if(!Nk(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports"],computeValue:e=>{const t=Ll.moduleResolution.computeValue(e);if(!Nk(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>e.resolveJsonModule!==void 0?e.resolveJsonModule:Ll.moduleResolution.computeValue(e)===100},declaration:{dependencies:["composite"],computeValue:e=>!!(e.declaration||e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!!(e.preserveConstEnums||Ll.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!!(e.incremental||e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!!(e.declarationMap&&Ll.declaration.computeValue(e))},allowJs:{dependencies:["checkJs"],computeValue:e=>e.allowJs===void 0?!!e.checkJs:e.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:e=>e.useDefineForClassFields===void 0?Ll.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>R_(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>R_(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>R_(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>R_(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>R_(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>R_(e,"strictPropertyInitialization")},alwaysStrict:{dependencies:["strict"],computeValue:e=>R_(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>R_(e,"useUnknownInCatchVariables")}},go=Ll.target.computeValue,r_=Ll.module.computeValue,j_=Ll.moduleResolution.computeValue,Qq=Ll.moduleDetection.computeValue,Ld=Ll.isolatedModules.computeValue,$g=Ll.esModuleInterop.computeValue,hx=Ll.allowSyntheticDefaultImports.computeValue,lL=Ll.resolvePackageJsonExports.computeValue,uL=Ll.resolvePackageJsonImports.computeValue,i2=Ll.resolveJsonModule.computeValue,rd=Ll.declaration.computeValue,Nb=Ll.preserveConstEnums.computeValue,pw=Ll.incremental.computeValue,DN=Ll.declarationMap.computeValue,P1=Ll.allowJs.computeValue,dw=Ll.useDefineForClassFields.computeValue,Yq=/[^\w\s/]/g,jxe=[42,63],Zq=["node_modules","bower_components","jspm_packages"],Kq=`(?!(${Zq.join("|")})(/|$))`,noe={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${Kq}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>Rae(e,noe.singleAsteriskRegexFragment)},roe={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${Kq}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>Rae(e,roe.singleAsteriskRegexFragment)},ioe={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>Rae(e,ioe.singleAsteriskRegexFragment)},eH={files:noe,directories:roe,exclude:ioe},w4=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],tH=P_(w4),Bxe=[...w4,[".json"]],Jxe=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],nH=[[".js",".jsx"],[".mjs"],[".cjs"]],D4=P_(nH),_L=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],zxe=[..._L,[".json"]],AN=[".d.ts",".d.cts",".d.mts"],NN=[".ts",".cts",".mts",".tsx"],IN=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"],rH=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(rH||{}),iH=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"],fL={files:Ke,directories:Ke},Uxe=String.prototype.replace}});function soe(){let e,t,r,i,s;return{createBaseSourceFileNode:o,createBaseIdentifierNode:c,createBasePrivateIdentifierNode:u,createBaseTokenNode:f,createBaseNode:g};function o(d){return new(s||(s=Au.getSourceFileConstructor()))(d,-1,-1)}function c(d){return new(r||(r=Au.getIdentifierConstructor()))(d,-1,-1)}function u(d){return new(i||(i=Au.getPrivateIdentifierConstructor()))(d,-1,-1)}function f(d){return new(t||(t=Au.getTokenConstructor()))(d,-1,-1)}function g(d){return new(e||(e=Au.getNodeConstructor()))(d,-1,-1)}}var EUe=K({"src/compiler/factory/baseNodeFactory.ts"(){ua()}});function aoe(e){let t,r;return{getParenthesizeLeftSideOfBinaryForOperator:i,getParenthesizeRightSideOfBinaryForOperator:s,parenthesizeLeftSideOfBinary:g,parenthesizeRightSideOfBinary:d,parenthesizeExpressionOfComputedPropertyName:y,parenthesizeConditionOfConditionalExpression:x,parenthesizeBranchOfConditionalExpression:T,parenthesizeExpressionOfExportDefault:C,parenthesizeExpressionOfNew:N,parenthesizeLeftSideOfAccess:D,parenthesizeOperandOfPostfixUnary:M,parenthesizeOperandOfPrefixUnary:V,parenthesizeExpressionsOfCommaDelimitedList:G,parenthesizeExpressionForDisallowedComma:Z,parenthesizeExpressionOfExpressionStatement:z,parenthesizeConciseBodyOfArrowFunction:ce,parenthesizeCheckTypeOfConditionalType:J,parenthesizeExtendsTypeOfConditionalType:ne,parenthesizeConstituentTypesOfUnionType:ve,parenthesizeConstituentTypeOfUnionType:ge,parenthesizeConstituentTypesOfIntersectionType:X,parenthesizeConstituentTypeOfIntersectionType:Q,parenthesizeOperandOfTypeOperator:se,parenthesizeOperandOfReadonlyTypeOperator:pe,parenthesizeNonArrayTypeOfPostfixType:we,parenthesizeElementTypesOfTupleType:fe,parenthesizeElementTypeOfTupleType:ie,parenthesizeTypeOfOptionalType:Ne,parenthesizeTypeArguments:Ee,parenthesizeLeadingTypeArgument:Ue};function i(Ae){t||(t=new Map);let Le=t.get(Ae);return Le||(Le=Tt=>g(Ae,Tt),t.set(Ae,Le)),Le}function s(Ae){r||(r=new Map);let Le=r.get(Ae);return Le||(Le=Tt=>d(Ae,void 0,Tt),r.set(Ae,Le)),Le}function o(Ae,Le,Tt,xe){const ze=oN(226,Ae),st=tq(226,Ae),zt=Zd(Le);if(!Tt&&Le.kind===219&&ze>3)return!0;const yt=jP(zt);switch(mc(yt,ze)){case-1:return!(!Tt&&st===1&&Le.kind===229);case 1:return!1;case 0:if(Tt)return st===1;if(mr(zt)&&zt.operatorToken.kind===Ae){if(c(Ae))return!1;if(Ae===40){const kt=xe?u(xe):0;if(hP(kt)&&kt===u(zt))return!1}}return eq(zt)===0}}function c(Ae){return Ae===42||Ae===52||Ae===51||Ae===53||Ae===28}function u(Ae){if(Ae=Zd(Ae),hP(Ae.kind))return Ae.kind;if(Ae.kind===226&&Ae.operatorToken.kind===40){if(Ae.cachedLiteralKind!==void 0)return Ae.cachedLiteralKind;const Le=u(Ae.left),Tt=hP(Le)&&Le===u(Ae.right)?Le:0;return Ae.cachedLiteralKind=Tt,Tt}return 0}function f(Ae,Le,Tt,xe){return Zd(Le).kind===217?Le:o(Ae,Le,Tt,xe)?e.createParenthesizedExpression(Le):Le}function g(Ae,Le){return f(Ae,Le,!0)}function d(Ae,Le,Tt){return f(Ae,Tt,!1,Le)}function y(Ae){return Aw(Ae)?e.createParenthesizedExpression(Ae):Ae}function x(Ae){const Le=oN(227,58),Tt=Zd(Ae),xe=jP(Tt);return mc(xe,Le)!==1?e.createParenthesizedExpression(Ae):Ae}function T(Ae){const Le=Zd(Ae);return Aw(Le)?e.createParenthesizedExpression(Ae):Ae}function C(Ae){const Le=Zd(Ae);let Tt=Aw(Le);if(!Tt)switch(x4(Le,!1).kind){case 231:case 218:Tt=!0}return Tt?e.createParenthesizedExpression(Ae):Ae}function N(Ae){const Le=x4(Ae,!0);switch(Le.kind){case 213:return e.createParenthesizedExpression(Ae);case 214:return Le.arguments?Ae:e.createParenthesizedExpression(Ae)}return D(Ae)}function D(Ae,Le){const Tt=Zd(Ae);return Pf(Tt)&&(Tt.kind!==214||Tt.arguments)&&(Le||!m_(Tt))?Ae:ut(e.createParenthesizedExpression(Ae),Ae)}function M(Ae){return Pf(Ae)?Ae:ut(e.createParenthesizedExpression(Ae),Ae)}function V(Ae){return iW(Ae)?Ae:ut(e.createParenthesizedExpression(Ae),Ae)}function G(Ae){const Le=Dc(Ae,Z);return ut(e.createNodeArray(Le,Ae.hasTrailingComma),Ae)}function Z(Ae){const Le=Zd(Ae),Tt=jP(Le),xe=oN(226,28);return Tt>xe?Ae:ut(e.createParenthesizedExpression(Ae),Ae)}function z(Ae){const Le=Zd(Ae);if(ma(Le)){const xe=Le.expression,ze=Zd(xe).kind;if(ze===218||ze===219){const st=e.updateCallExpression(Le,ut(e.createParenthesizedExpression(xe),xe),Le.typeArguments,Le.arguments);return e.restoreOuterExpressions(Ae,st,8)}}const Tt=x4(Le,!1).kind;return Tt===210||Tt===218?ut(e.createParenthesizedExpression(Ae),Ae):Ae}function ce(Ae){return!na(Ae)&&(Aw(Ae)||x4(Ae,!1).kind===210)?ut(e.createParenthesizedExpression(Ae),Ae):Ae}function J(Ae){switch(Ae.kind){case 184:case 185:case 194:return e.createParenthesizedType(Ae)}return Ae}function ne(Ae){switch(Ae.kind){case 194:return e.createParenthesizedType(Ae)}return Ae}function ge(Ae){switch(Ae.kind){case 192:case 193:return e.createParenthesizedType(Ae)}return J(Ae)}function ve(Ae){return e.createNodeArray(Dc(Ae,ge))}function Q(Ae){switch(Ae.kind){case 192:case 193:return e.createParenthesizedType(Ae)}return ge(Ae)}function X(Ae){return e.createNodeArray(Dc(Ae,Q))}function se(Ae){switch(Ae.kind){case 193:return e.createParenthesizedType(Ae)}return Q(Ae)}function pe(Ae){switch(Ae.kind){case 198:return e.createParenthesizedType(Ae)}return se(Ae)}function we(Ae){switch(Ae.kind){case 195:case 198:case 186:return e.createParenthesizedType(Ae)}return se(Ae)}function fe(Ae){return e.createNodeArray(Dc(Ae,ie))}function ie(Ae){return ye(Ae)?e.createParenthesizedType(Ae):Ae}function ye(Ae){return j4(Ae)?Ae.postfix:O4(Ae)||Qg(Ae)||I4(Ae)||Sx(Ae)?ye(Ae.type):$k(Ae)?ye(Ae.falseType):A1(Ae)||Gk(Ae)?ye(so(Ae.types)):vx(Ae)?!!Ae.typeParameter.constraint&&ye(Ae.typeParameter.constraint):!1}function Ne(Ae){return ye(Ae)?e.createParenthesizedType(Ae):we(Ae)}function Ue(Ae){return Iie(Ae)&&Ae.typeParameters?e.createParenthesizedType(Ae):Ae}function Se(Ae,Le){return Le===0?Ue(Ae):Ae}function Ee(Ae){if(Pe(Ae))return e.createNodeArray(Dc(Ae,Se))}}var sH,PUe=K({"src/compiler/factory/parenthesizerRules.ts"(){ua(),sH={getParenthesizeLeftSideOfBinaryForOperator:e=>dc,getParenthesizeRightSideOfBinaryForOperator:e=>dc,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,r)=>r,parenthesizeExpressionOfComputedPropertyName:dc,parenthesizeConditionOfConditionalExpression:dc,parenthesizeBranchOfConditionalExpression:dc,parenthesizeExpressionOfExportDefault:dc,parenthesizeExpressionOfNew:e=>pa(e,Pf),parenthesizeLeftSideOfAccess:e=>pa(e,Pf),parenthesizeOperandOfPostfixUnary:e=>pa(e,Pf),parenthesizeOperandOfPrefixUnary:e=>pa(e,iW),parenthesizeExpressionsOfCommaDelimitedList:e=>pa(e,ub),parenthesizeExpressionForDisallowedComma:dc,parenthesizeExpressionOfExpressionStatement:dc,parenthesizeConciseBodyOfArrowFunction:dc,parenthesizeCheckTypeOfConditionalType:dc,parenthesizeExtendsTypeOfConditionalType:dc,parenthesizeConstituentTypesOfUnionType:e=>pa(e,ub),parenthesizeConstituentTypeOfUnionType:dc,parenthesizeConstituentTypesOfIntersectionType:e=>pa(e,ub),parenthesizeConstituentTypeOfIntersectionType:dc,parenthesizeOperandOfTypeOperator:dc,parenthesizeOperandOfReadonlyTypeOperator:dc,parenthesizeNonArrayTypeOfPostfixType:dc,parenthesizeElementTypesOfTupleType:e=>pa(e,ub),parenthesizeElementTypeOfTupleType:dc,parenthesizeTypeOfOptionalType:dc,parenthesizeTypeArguments:e=>e&&pa(e,ub),parenthesizeLeadingTypeArgument:dc}}});function ooe(e){return{convertToFunctionBlock:t,convertToFunctionExpression:r,convertToClassExpression:i,convertToArrayAssignmentElement:s,convertToObjectAssignmentElement:o,convertToAssignmentPattern:c,convertToObjectAssignmentPattern:u,convertToArrayAssignmentPattern:f,convertToAssignmentElementTarget:g};function t(d,y){if(na(d))return d;const x=e.createReturnStatement(d);ut(x,d);const T=e.createBlock([x],y);return ut(T,d),T}function r(d){var y;if(!d.body)return w.fail("Cannot convert a FunctionDeclaration without a body");const x=e.createFunctionExpression((y=lb(d))==null?void 0:y.filter(T=>!Uk(T)&&!XL(T)),d.asteriskToken,d.name,d.typeParameters,d.parameters,d.type,d.body);return Ir(x,d),ut(x,d),mw(d)&&mL(x,!0),x}function i(d){var y;const x=e.createClassExpression((y=d.modifiers)==null?void 0:y.filter(T=>!Uk(T)&&!XL(T)),d.name,d.typeParameters,d.heritageClauses,d.members);return Ir(x,d),ut(x,d),mw(d)&&mL(x,!0),x}function s(d){if(oo(d)){if(d.dotDotDotToken)return w.assertNode(d.name,Je),Ir(ut(e.createSpreadElement(d.name),d),d);const y=g(d.name);return d.initializer?Ir(ut(e.createAssignment(y,d.initializer),d),d):y}return pa(d,vt)}function o(d){if(oo(d)){if(d.dotDotDotToken)return w.assertNode(d.name,Je),Ir(ut(e.createSpreadAssignment(d.name),d),d);if(d.propertyName){const y=g(d.name);return Ir(ut(e.createPropertyAssignment(d.propertyName,d.initializer?e.createAssignment(y,d.initializer):y),d),d)}return w.assertNode(d.name,Je),Ir(ut(e.createShorthandPropertyAssignment(d.name,d.initializer),d),d)}return pa(d,d0)}function c(d){switch(d.kind){case 207:case 209:return f(d);case 206:case 210:return u(d)}}function u(d){return Md(d)?Ir(ut(e.createObjectLiteralExpression(Kt(d.elements,o)),d),d):pa(d,Va)}function f(d){return Ob(d)?Ir(ut(e.createArrayLiteralExpression(Kt(d.elements,s)),d),d):pa(d,B_)}function g(d){return ca(d)?c(d):pa(d,vt)}}var aH,wUe=K({"src/compiler/factory/nodeConverters.ts"(){ua(),aH={convertToFunctionBlock:ta,convertToFunctionExpression:ta,convertToClassExpression:ta,convertToArrayAssignmentElement:ta,convertToObjectAssignmentElement:ta,convertToAssignmentPattern:ta,convertToObjectAssignmentPattern:ta,convertToArrayAssignmentPattern:ta,convertToAssignmentElementTarget:ta}}});function Vxe(e){loe.push(e)}function ON(e,t){const r=e&8?dc:Ir,i=X_(()=>e&1?sH:aoe(M)),s=X_(()=>e&2?aH:ooe(M)),o=Bg(b=>(A,B)=>Te(A,b,B)),c=Bg(b=>A=>ct(b,A)),u=Bg(b=>A=>Vt(A,b)),f=Bg(b=>()=>G3(b)),g=Bg(b=>A=>iT(b,A)),d=Bg(b=>(A,B)=>uS(b,A,B)),y=Bg(b=>(A,B)=>$3(b,A,B)),x=Bg(b=>(A,B)=>_c(b,A,B)),T=Bg(b=>(A,B)=>O2(b,A,B)),C=Bg(b=>(A,B,ue)=>fd(b,A,B,ue)),N=Bg(b=>(A,B,ue)=>ev(b,A,B,ue)),D=Bg(b=>(A,B,ue,Qe)=>tv(b,A,B,ue,Qe)),M={get parenthesizer(){return i()},get converters(){return s()},baseFactory:t,flags:e,createNodeArray:V,createNumericLiteral:ce,createBigIntLiteral:J,createStringLiteral:ge,createStringLiteralFromNode:ve,createRegularExpressionLiteral:Q,createLiteralLikeNode:X,createIdentifier:we,createTempVariable:fe,createLoopVariable:ie,createUniqueName:ye,getGeneratedNameForNode:Ne,createPrivateIdentifier:Se,createUniquePrivateName:Ae,getGeneratedPrivateNameForNode:Le,createToken:xe,createSuper:ze,createThis:st,createNull:zt,createTrue:yt,createFalse:$e,createModifier:kt,createModifiersFromModifierFlags:nn,createQualifiedName:sn,updateQualifiedName:In,createComputedPropertyName:Zn,updateComputedPropertyName:hn,createTypeParameterDeclaration:Zt,updateTypeParameterDeclaration:Yt,createParameterDeclaration:yi,updateParameterDeclaration:us,createDecorator:zi,updateDecorator:Os,createPropertySignature:On,updatePropertySignature:Fi,createPropertyDeclaration:cn,updatePropertyDeclaration:et,createMethodSignature:Jt,updateMethodSignature:wn,createMethodDeclaration:ui,updateMethodDeclaration:vi,createConstructorDeclaration:Tn,updateConstructorDeclaration:Ln,createGetAccessorDeclaration:pt,updateGetAccessorDeclaration:ft,createSetAccessorDeclaration:le,updateSetAccessorDeclaration:Me,createCallSignature:U,updateCallSignature:it,createConstructSignature:Et,updateConstructSignature:Ge,createIndexSignature:mt,updateIndexSignature:Ut,createClassStaticBlockDeclaration:Ds,updateClassStaticBlockDeclaration:Sa,createTemplateLiteralTypeSpan:vn,updateTemplateLiteralTypeSpan:pn,createKeywordTypeNode:mn,createTypePredicateNode:q,updateTypePredicateNode:Fe,createTypeReferenceNode:Ot,updateTypeReferenceNode:I,createFunctionTypeNode:me,updateFunctionTypeNode:H,createConstructorTypeNode:Be,updateConstructorTypeNode:Ft,createTypeQueryNode:Un,updateTypeQueryNode:Gn,createTypeLiteralNode:Li,updateTypeLiteralNode:wi,createArrayTypeNode:sr,updateArrayTypeNode:Wr,createTupleTypeNode:xs,updateTupleTypeNode:Mi,createNamedTupleMember:Di,updateNamedTupleMember:$r,createOptionalTypeNode:As,updateOptionalTypeNode:Dn,createRestTypeNode:Yo,updateRestTypeNode:hl,createUnionTypeNode:tc,updateUnionTypeNode:Oc,createIntersectionTypeNode:Iu,updateIntersectionTypeNode:vs,createConditionalTypeNode:va,updateConditionalTypeNode:Ou,createInferTypeNode:Lo,updateInferTypeNode:Ja,createImportTypeNode:El,updateImportTypeNode:qc,createParenthesizedType:xc,updateParenthesizedType:js,createThisTypeNode:rn,createTypeOperatorNode:nc,updateTypeOperatorNode:ku,createIndexedAccessTypeNode:Fu,updateIndexedAccessTypeNode:Kf,createMappedTypeNode:Wo,updateMappedTypeNode:Gl,createLiteralTypeNode:_e,updateLiteralTypeNode:ee,createTemplateLiteralType:Pc,updateTemplateLiteralType:ld,createObjectBindingPattern:Oe,updateObjectBindingPattern:bt,createArrayBindingPattern:_n,updateArrayBindingPattern:Tr,createBindingElement:br,updateBindingElement:qr,createArrayLiteralExpression:Ni,updateArrayLiteralExpression:Fr,createObjectLiteralExpression:ia,updateObjectLiteralExpression:jc,createPropertyAccessExpression:e&4?(b,A)=>pr(rc(b,A),262144):rc,updatePropertyAccessExpression:jl,createPropertyAccessChain:e&4?(b,A,B)=>pr(Io(b,A,B),262144):Io,updatePropertyAccessChain:pu,createElementAccessExpression:ru,updateElementAccessExpression:Bd,createElementAccessChain:z_,updateElementAccessChain:De,createCallExpression:Xn,updateCallExpression:Ts,createCallChain:sa,updateCallChain:la,createNewExpression:yl,updateNewExpression:Bl,createTaggedTemplateExpression:Tc,updateTaggedTemplateExpression:Fc,createTypeAssertion:sl,updateTypeAssertion:vl,createParenthesizedExpression:du,updateParenthesizedExpression:Up,createFunctionExpression:gf,updateFunctionExpression:nf,createArrowFunction:ud,updateArrowFunction:hg,createDeleteExpression:sh,updateDeleteExpression:w0,createTypeOfExpression:c_,updateTypeOfExpression:D0,createVoidExpression:ep,updateVoidExpression:Hh,createAwaitExpression:hf,updateAwaitExpression:te,createPrefixUnaryExpression:ct,updatePrefixUnaryExpression:Bt,createPostfixUnaryExpression:Vt,updatePostfixUnaryExpression:R,createBinaryExpression:Te,updateBinaryExpression:Ht,createConditionalExpression:ir,updateConditionalExpression:ai,createTemplateExpression:Yr,updateTemplateExpression:os,createTemplateHead:tp,createTemplateMiddle:yf,createTemplateTail:W1,createNoSubstitutionTemplateLiteral:So,createTemplateLiteralLikeNode:$l,createYieldExpression:lm,updateYieldExpression:um,createSpreadElement:$i,updateSpreadElement:A0,createClassExpression:Ry,updateClassExpression:_m,createOmittedExpression:rS,createExpressionWithTypeArguments:iS,updateExpressionWithTypeArguments:Vp,createAsExpression:yg,updateAsExpression:Wp,createNonNullExpression:N0,updateNonNullExpression:Re,createSatisfiesExpression:Ze,updateSatisfiesExpression:It,createNonNullChain:Wt,updateNonNullChain:bn,createMetaProperty:Kn,updateMetaProperty:yn,createTemplateSpan:er,updateTemplateSpan:mi,createSemicolonClassElement:ur,createBlock:ri,updateBlock:dr,createVariableStatement:aa,updateVariableStatement:no,createEmptyStatement:x_,createExpressionStatement:Mu,updateExpressionStatement:I0,createIfStatement:T2,updateIfStatement:AC,createDoStatement:k2,updateDoStatement:B3,createWhileStatement:J3,updateWhileStatement:z3,createForStatement:Xx,updateForStatement:sS,createForInStatement:NC,updateForInStatement:U3,createForOfStatement:IC,updateForOfStatement:OC,createContinueStatement:FC,updateContinueStatement:LC,createBreakStatement:Qx,updateBreakStatement:MC,createReturnStatement:aS,updateReturnStatement:oS,createWithStatement:q1,updateWithStatement:H1,createSwitchStatement:Gh,updateSwitchStatement:C2,createLabeledStatement:_o,updateLabeledStatement:Yx,createThrowStatement:V3,updateThrowStatement:E2,createTryStatement:O0,updateTryStatement:ah,createDebuggerStatement:_d,createVariableDeclaration:vf,updateVariableDeclaration:np,createVariableDeclarationList:Of,updateVariableDeclarationList:jy,createFunctionDeclaration:Zx,updateFunctionDeclaration:W3,createClassDeclaration:G1,updateClassDeclaration:P2,createInterfaceDeclaration:jC,updateInterfaceDeclaration:Jl,createTypeAliasDeclaration:By,updateTypeAliasDeclaration:BC,createEnumDeclaration:Om,updateEnumDeclaration:Kx,createModuleDeclaration:We,updateModuleDeclaration:Fm,createModuleBlock:Ru,updateModuleBlock:w2,createCaseBlock:JC,updateCaseBlock:$1,createNamespaceExportDeclaration:Jy,updateNamespaceExportDeclaration:zy,createImportEqualsDeclaration:ro,updateImportEqualsDeclaration:Lm,createImportDeclaration:eT,updateImportDeclaration:tT,createImportClause:D2,updateImportClause:nT,createAssertClause:Jd,updateAssertClause:zd,createAssertEntry:F0,updateAssertEntry:zC,createImportTypeAssertionContainer:Mm,updateImportTypeAssertionContainer:q3,createImportAttributes:cS,updateImportAttributes:Zi,createImportAttribute:ei,updateImportAttribute:oh,createNamespaceImport:bf,updateNamespaceImport:LD,createNamespaceExport:L0,updateNamespaceExport:MD,createNamedImports:X1,updateNamedImports:Lc,createImportSpecifier:bp,updateImportSpecifier:$h,createExportAssignment:Ud,updateExportAssignment:Q1,createExportDeclaration:fm,updateExportDeclaration:M0,createNamedExports:rT,updateNamedExports:Xh,createExportSpecifier:UC,updateExportSpecifier:Qh,createMissingDeclaration:vg,createExternalModuleReference:Uy,updateExternalModuleReference:H3,get createJSDocAllType(){return f(319)},get createJSDocUnknownType(){return f(320)},get createJSDocNonNullableType(){return y(322)},get updateJSDocNonNullableType(){return x(322)},get createJSDocNullableType(){return y(321)},get updateJSDocNullableType(){return x(321)},get createJSDocOptionalType(){return g(323)},get updateJSDocOptionalType(){return d(323)},get createJSDocVariadicType(){return g(325)},get updateJSDocVariadicType(){return d(325)},get createJSDocNamepathType(){return g(326)},get updateJSDocNamepathType(){return d(326)},createJSDocFunctionType:sT,updateJSDocFunctionType:pm,createJSDocTypeLiteral:Y1,updateJSDocTypeLiteral:X3,createJSDocTypeExpression:aT,updateJSDocTypeExpression:RD,createJSDocSignature:hr,updateJSDocSignature:Cu,createJSDocTemplateTag:bg,updateJSDocTemplateTag:_r,createJSDocTypedefTag:oT,updateJSDocTypedefTag:A2,createJSDocParameterTag:mu,updateJSDocParameterTag:ch,createJSDocPropertyTag:dm,updateJSDocPropertyTag:_S,createJSDocCallbackTag:fS,updateJSDocCallbackTag:Z1,createJSDocOverloadTag:R0,updateJSDocOverloadTag:cT,createJSDocAugmentsTag:mm,updateJSDocAugmentsTag:N2,createJSDocImplementsTag:Yh,updateJSDocImplementsTag:Ff,createJSDocSeeTag:K1,updateJSDocSeeTag:VC,createJSDocNameReference:I2,updateJSDocNameReference:Q3,createJSDocMemberName:pS,updateJSDocMemberName:lT,createJSDocLink:Sp,updateJSDocLink:uT,createJSDocLinkCode:al,updateJSDocLinkCode:iu,createJSDocLinkPlain:_T,updateJSDocLinkPlain:Hu,get createJSDocTypeTag(){return N(351)},get updateJSDocTypeTag(){return D(351)},get createJSDocReturnTag(){return N(349)},get updateJSDocReturnTag(){return D(349)},get createJSDocThisTag(){return N(350)},get updateJSDocThisTag(){return D(350)},get createJSDocAuthorTag(){return T(337)},get updateJSDocAuthorTag(){return C(337)},get createJSDocClassTag(){return T(339)},get updateJSDocClassTag(){return C(339)},get createJSDocPublicTag(){return T(340)},get updateJSDocPublicTag(){return C(340)},get createJSDocPrivateTag(){return T(341)},get updateJSDocPrivateTag(){return C(341)},get createJSDocProtectedTag(){return T(342)},get updateJSDocProtectedTag(){return C(342)},get createJSDocReadonlyTag(){return T(343)},get updateJSDocReadonlyTag(){return C(343)},get createJSDocOverrideTag(){return T(344)},get updateJSDocOverrideTag(){return C(344)},get createJSDocDeprecatedTag(){return T(338)},get updateJSDocDeprecatedTag(){return C(338)},get createJSDocThrowsTag(){return N(356)},get updateJSDocThrowsTag(){return D(356)},get createJSDocSatisfiesTag(){return N(357)},get updateJSDocSatisfiesTag(){return D(357)},createJSDocEnumTag:xp,updateJSDocEnumTag:fT,createJSDocUnknownTag:Eu,updateJSDocUnknownTag:WC,createJSDocText:pT,updateJSDocText:ic,createJSDocComment:Y3,updateJSDocComment:F2,createJsxElement:dS,updateJsxElement:jD,createJsxSelfClosingElement:U_,updateJsxSelfClosingElement:j0,createJsxOpeningElement:Sg,updateJsxOpeningElement:qC,createJsxClosingElement:rp,updateJsxClosingElement:HC,createJsxFragment:Lf,createJsxText:Wy,updateJsxText:dT,createJsxOpeningFragment:Z3,createJsxJsxClosingFragment:K3,updateJsxFragment:GC,createJsxAttribute:mT,updateJsxAttribute:eE,createJsxAttributes:nv,updateJsxAttributes:ip,createJsxSpreadAttribute:lh,updateJsxSpreadAttribute:tE,createJsxExpression:gT,updateJsxExpression:po,createJsxNamespacedName:Pr,updateJsxNamespacedName:Hp,createCaseClause:rf,updateCaseClause:mS,createDefaultClause:nE,updateDefaultClause:L2,createHeritageClause:gS,updateHeritageClause:hT,createCatchClause:Zh,updateCatchClause:Rm,createPropertyAssignment:Gp,updatePropertyAssignment:gm,createShorthandPropertyAssignment:Kh,updateShorthandPropertyAssignment:e0,createSpreadAssignment:Pl,updateSpreadAssignment:rE,createEnumMember:pd,updateEnumMember:uh,createSourceFile:$p,updateSourceFile:qo,createRedirectedSourceFile:hS,createBundle:yS,updateBundle:vS,createUnparsedSource:J0,createUnparsedPrologue:R2,createUnparsedPrepend:P,createUnparsedTextLike:oe,createUnparsedSyntheticReference:gt,createInputFiles:an,createSyntheticExpression:jr,createSyntaxList:Bi,createNotEmittedStatement:bi,createPartiallyEmittedExpression:ss,updatePartiallyEmittedExpression:Ca,createCommaListExpression:sf,updateCommaListExpression:dd,createSyntheticReferenceExpression:iv,updateSyntheticReferenceExpression:Ti,cloneNode:av,get createComma(){return o(28)},get createAssignment(){return o(64)},get createLogicalOr(){return o(57)},get createLogicalAnd(){return o(56)},get createBitwiseOr(){return o(52)},get createBitwiseXor(){return o(53)},get createBitwiseAnd(){return o(51)},get createStrictEquality(){return o(37)},get createStrictInequality(){return o(38)},get createEquality(){return o(35)},get createInequality(){return o(36)},get createLessThan(){return o(30)},get createLessThanEquals(){return o(33)},get createGreaterThan(){return o(32)},get createGreaterThanEquals(){return o(34)},get createLeftShift(){return o(48)},get createRightShift(){return o(49)},get createUnsignedRightShift(){return o(50)},get createAdd(){return o(40)},get createSubtract(){return o(41)},get createMultiply(){return o(42)},get createDivide(){return o(44)},get createModulo(){return o(45)},get createExponent(){return o(43)},get createPrefixPlus(){return c(40)},get createPrefixMinus(){return c(41)},get createPrefixIncrement(){return c(46)},get createPrefixDecrement(){return c(47)},get createBitwiseNot(){return c(55)},get createLogicalNot(){return c(54)},get createPostfixIncrement(){return u(46)},get createPostfixDecrement(){return u(47)},createImmediatelyInvokedFunctionExpression:vT,createImmediatelyInvokedArrowFunction:bS,createVoidZero:xg,createExportDefault:fh,createExternalModuleExport:iE,createTypeCheck:bT,createIsNotTypeCheck:sJ,createMethodCall:ov,createGlobalMethodCall:jm,createFunctionBindCall:b5,createFunctionCallCall:S5,createFunctionApplyCall:j2,createArraySliceCall:BD,createArrayConcatCall:ph,createObjectDefinePropertyCall:YC,createObjectGetOwnPropertyDescriptorCall:x5,createReflectGetCall:Tg,createReflectSetCall:Y,createPropertyDescriptor:He,createCallBinding:Ii,createAssignmentTargetWrapper:gi,inlineExpressions:Ki,getInternalName:Jo,getLocalName:lo,getExportName:md,getDeclarationName:kg,getNamespaceMemberName:t0,getExternalModuleOrNamespaceExportName:z0,restoreOuterExpressions:Gt,restoreEnclosingLabel:zr,createUseStrictPrologue:Mf,copyPrologue:U0,copyStandardPrologue:ST,copyCustomPrologue:sE,ensureUseStrict:JD,liftToBlock:zD,mergeLexicalEnvironment:V0,replaceModifiers:lv,replaceDecoratorsAndModifiers:aE,replacePropertyName:Tp};return dt(loe,b=>b(M)),M;function V(b,A){if(b===void 0||b===Ke)b=[];else if(ub(b)){if(A===void 0||b.hasTrailingComma===A)return b.transformFlags===void 0&&Wxe(b),w.attachNodeArrayDebugInfo(b),b;const Qe=b.slice();return Qe.pos=b.pos,Qe.end=b.end,Qe.hasTrailingComma=A,Qe.transformFlags=b.transformFlags,w.attachNodeArrayDebugInfo(Qe),Qe}const B=b.length,ue=B>=1&&B<=4?b.slice():b;return ue.pos=-1,ue.end=-1,ue.hasTrailingComma=!!A,ue.transformFlags=0,Wxe(ue),w.attachNodeArrayDebugInfo(ue),ue}function G(b){return t.createBaseNode(b)}function Z(b){const A=G(b);return A.symbol=void 0,A.localSymbol=void 0,A}function z(b,A){return b!==A&&(b.typeArguments=A.typeArguments),ar(b,A)}function ce(b,A=0){const B=typeof b=="number"?b+"":b;w.assert(B.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");const ue=Z(9);return ue.text=B,ue.numericLiteralFlags=A,A&384&&(ue.transformFlags|=1024),ue}function J(b){const A=Tt(10);return A.text=typeof b=="string"?b:wb(b)+"n",A.transformFlags|=32,A}function ne(b,A){const B=Z(11);return B.text=b,B.singleQuote=A,B}function ge(b,A,B){const ue=ne(b,A);return ue.hasExtendedUnicodeEscape=B,B&&(ue.transformFlags|=1024),ue}function ve(b){const A=ne(Ad(b),void 0);return A.textSourceNode=b,A}function Q(b){const A=Tt(14);return A.text=b,A}function X(b,A){switch(b){case 9:return ce(A,0);case 10:return J(A);case 11:return ge(A,void 0);case 12:return Wy(A,!1);case 13:return Wy(A,!0);case 14:return Q(A);case 15:return $l(b,A,void 0,0)}}function se(b){const A=t.createBaseIdentifierNode(80);return A.escapedText=b,A.jsDoc=void 0,A.flowNode=void 0,A.symbol=void 0,A}function pe(b,A,B,ue){const Qe=se(Nc(b));return BN(Qe,{flags:A,id:dL,prefix:B,suffix:ue}),dL++,Qe}function we(b,A,B){A===void 0&&b&&(A=cb(b)),A===80&&(A=void 0);const ue=se(Nc(b));return B&&(ue.flags|=256),ue.escapedText==="await"&&(ue.transformFlags|=67108864),ue.flags&256&&(ue.transformFlags|=1024),ue}function fe(b,A,B,ue){let Qe=1;A&&(Qe|=8);const $t=pe("",Qe,B,ue);return b&&b($t),$t}function ie(b){let A=2;return b&&(A|=8),pe("",A,void 0,void 0)}function ye(b,A=0,B,ue){return w.assert(!(A&7),"Argument out of range: flags"),w.assert((A&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),pe(b,3|A,B,ue)}function Ne(b,A=0,B,ue){w.assert(!(A&7),"Argument out of range: flags");const Qe=b?Dh(b)?l2(!1,B,b,ue,kr):`generated@${ho(b)}`:"";(B||ue)&&(A|=16);const $t=pe(Qe,4|A,B,ue);return $t.original=b,$t}function Ue(b){const A=t.createBasePrivateIdentifierNode(81);return A.escapedText=b,A.transformFlags|=16777216,A}function Se(b){return fs(b,"#")||w.fail("First character of private identifier must be #: "+b),Ue(Nc(b))}function Ee(b,A,B,ue){const Qe=Ue(Nc(b));return BN(Qe,{flags:A,id:dL,prefix:B,suffix:ue}),dL++,Qe}function Ae(b,A,B){b&&!fs(b,"#")&&w.fail("First character of private identifier must be #: "+b);const ue=8|(b?3:1);return Ee(b??"",ue,A,B)}function Le(b,A,B){const ue=Dh(b)?l2(!0,A,b,B,kr):`#generated@${ho(b)}`,$t=Ee(ue,4|(A||B?16:0),A,B);return $t.original=b,$t}function Tt(b){return t.createBaseTokenNode(b)}function xe(b){w.assert(b>=0&&b<=165,"Invalid token"),w.assert(b<=15||b>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),w.assert(b<=9||b>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),w.assert(b!==80,"Invalid token. Use 'createIdentifier' to create identifiers");const A=Tt(b);let B=0;switch(b){case 134:B=384;break;case 160:B=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:B=1;break;case 108:B=134218752,A.flowNode=void 0;break;case 126:B=1024;break;case 129:B=16777216;break;case 110:B=16384,A.flowNode=void 0;break}return B&&(A.transformFlags|=B),A}function ze(){return xe(108)}function st(){return xe(110)}function zt(){return xe(106)}function yt(){return xe(112)}function $e(){return xe(97)}function kt(b){return xe(b)}function nn(b){const A=[];return b&32&&A.push(kt(95)),b&128&&A.push(kt(138)),b&2048&&A.push(kt(90)),b&4096&&A.push(kt(87)),b&1&&A.push(kt(125)),b&2&&A.push(kt(123)),b&4&&A.push(kt(124)),b&64&&A.push(kt(128)),b&256&&A.push(kt(126)),b&16&&A.push(kt(164)),b&8&&A.push(kt(148)),b&512&&A.push(kt(129)),b&1024&&A.push(kt(134)),b&8192&&A.push(kt(103)),b&16384&&A.push(kt(147)),A.length?A:void 0}function sn(b,A){const B=G(166);return B.left=b,B.right=wl(A),B.transformFlags|=Cr(B.left)|FN(B.right),B.flowNode=void 0,B}function In(b,A,B){return b.left!==A||b.right!==B?ar(sn(A,B),b):b}function Zn(b){const A=G(167);return A.expression=i().parenthesizeExpressionOfComputedPropertyName(b),A.transformFlags|=Cr(A.expression)|1024|131072,A}function hn(b,A){return b.expression!==A?ar(Zn(A),b):b}function Zt(b,A,B,ue){const Qe=Z(168);return Qe.modifiers=Za(b),Qe.name=wl(A),Qe.constraint=B,Qe.default=ue,Qe.transformFlags=1,Qe.expression=void 0,Qe.jsDoc=void 0,Qe}function Yt(b,A,B,ue,Qe){return b.modifiers!==A||b.name!==B||b.constraint!==ue||b.default!==Qe?ar(Zt(A,B,ue,Qe),b):b}function yi(b,A,B,ue,Qe,$t){const Sr=Z(169);return Sr.modifiers=Za(b),Sr.dotDotDotToken=A,Sr.name=wl(B),Sr.questionToken=ue,Sr.type=Qe,Sr.initializer=ZC($t),Cb(Sr.name)?Sr.transformFlags=1:Sr.transformFlags=to(Sr.modifiers)|Cr(Sr.dotDotDotToken)|w1(Sr.name)|Cr(Sr.questionToken)|Cr(Sr.initializer)|(Sr.questionToken??Sr.type?1:0)|(Sr.dotDotDotToken??Sr.initializer?1024:0)|(sg(Sr.modifiers)&31?8192:0),Sr.jsDoc=void 0,Sr}function us(b,A,B,ue,Qe,$t,Sr){return b.modifiers!==A||b.dotDotDotToken!==B||b.name!==ue||b.questionToken!==Qe||b.type!==$t||b.initializer!==Sr?ar(yi(A,B,ue,Qe,$t,Sr),b):b}function zi(b){const A=G(170);return A.expression=i().parenthesizeLeftSideOfAccess(b,!1),A.transformFlags|=Cr(A.expression)|1|8192|33554432,A}function Os(b,A){return b.expression!==A?ar(zi(A),b):b}function On(b,A,B,ue){const Qe=Z(171);return Qe.modifiers=Za(b),Qe.name=wl(A),Qe.type=ue,Qe.questionToken=B,Qe.transformFlags=1,Qe.initializer=void 0,Qe.jsDoc=void 0,Qe}function Fi(b,A,B,ue,Qe){return b.modifiers!==A||b.name!==B||b.questionToken!==ue||b.type!==Qe?Er(On(A,B,ue,Qe),b):b}function Er(b,A){return b!==A&&(b.initializer=A.initializer),ar(b,A)}function cn(b,A,B,ue,Qe){const $t=Z(172);$t.modifiers=Za(b),$t.name=wl(A),$t.questionToken=B&&D1(B)?B:void 0,$t.exclamationToken=B&&WN(B)?B:void 0,$t.type=ue,$t.initializer=ZC(Qe);const Sr=$t.flags&33554432||sg($t.modifiers)&128;return $t.transformFlags=to($t.modifiers)|w1($t.name)|Cr($t.initializer)|(Sr||$t.questionToken||$t.exclamationToken||$t.type?1:0)|(co($t.name)||sg($t.modifiers)&256&&$t.initializer?8192:0)|16777216,$t.jsDoc=void 0,$t}function et(b,A,B,ue,Qe,$t){return b.modifiers!==A||b.name!==B||b.questionToken!==(ue!==void 0&&D1(ue)?ue:void 0)||b.exclamationToken!==(ue!==void 0&&WN(ue)?ue:void 0)||b.type!==Qe||b.initializer!==$t?ar(cn(A,B,ue,Qe,$t),b):b}function Jt(b,A,B,ue,Qe,$t){const Sr=Z(173);return Sr.modifiers=Za(b),Sr.name=wl(A),Sr.questionToken=B,Sr.typeParameters=Za(ue),Sr.parameters=Za(Qe),Sr.type=$t,Sr.transformFlags=1,Sr.jsDoc=void 0,Sr.locals=void 0,Sr.nextContainer=void 0,Sr.typeArguments=void 0,Sr}function wn(b,A,B,ue,Qe,$t,Sr){return b.modifiers!==A||b.name!==B||b.questionToken!==ue||b.typeParameters!==Qe||b.parameters!==$t||b.type!==Sr?z(Jt(A,B,ue,Qe,$t,Sr),b):b}function ui(b,A,B,ue,Qe,$t,Sr,as){const sc=Z(174);if(sc.modifiers=Za(b),sc.asteriskToken=A,sc.name=wl(B),sc.questionToken=ue,sc.exclamationToken=void 0,sc.typeParameters=Za(Qe),sc.parameters=V($t),sc.type=Sr,sc.body=as,!sc.body)sc.transformFlags=1;else{const Bm=sg(sc.modifiers)&1024,_v=!!sc.asteriskToken,hm=Bm&&_v;sc.transformFlags=to(sc.modifiers)|Cr(sc.asteriskToken)|w1(sc.name)|Cr(sc.questionToken)|to(sc.typeParameters)|to(sc.parameters)|Cr(sc.type)|Cr(sc.body)&-67108865|(hm?128:Bm?256:_v?2048:0)|(sc.questionToken||sc.typeParameters||sc.type?1:0)|1024}return sc.typeArguments=void 0,sc.jsDoc=void 0,sc.locals=void 0,sc.nextContainer=void 0,sc.flowNode=void 0,sc.endFlowNode=void 0,sc.returnFlowNode=void 0,sc}function vi(b,A,B,ue,Qe,$t,Sr,as,sc){return b.modifiers!==A||b.asteriskToken!==B||b.name!==ue||b.questionToken!==Qe||b.typeParameters!==$t||b.parameters!==Sr||b.type!==as||b.body!==sc?ts(ui(A,B,ue,Qe,$t,Sr,as,sc),b):b}function ts(b,A){return b!==A&&(b.exclamationToken=A.exclamationToken),ar(b,A)}function Ds(b){const A=Z(175);return A.body=b,A.transformFlags=Cr(b)|16777216,A.modifiers=void 0,A.jsDoc=void 0,A.locals=void 0,A.nextContainer=void 0,A.endFlowNode=void 0,A.returnFlowNode=void 0,A}function Sa(b,A){return b.body!==A?Wa(Ds(A),b):b}function Wa(b,A){return b!==A&&(b.modifiers=A.modifiers),ar(b,A)}function Tn(b,A,B){const ue=Z(176);return ue.modifiers=Za(b),ue.parameters=V(A),ue.body=B,ue.transformFlags=to(ue.modifiers)|to(ue.parameters)|Cr(ue.body)&-67108865|1024,ue.typeParameters=void 0,ue.type=void 0,ue.typeArguments=void 0,ue.jsDoc=void 0,ue.locals=void 0,ue.nextContainer=void 0,ue.endFlowNode=void 0,ue.returnFlowNode=void 0,ue}function Ln(b,A,B,ue){return b.modifiers!==A||b.parameters!==B||b.body!==ue?Ve(Tn(A,B,ue),b):b}function Ve(b,A){return b!==A&&(b.typeParameters=A.typeParameters,b.type=A.type),z(b,A)}function pt(b,A,B,ue,Qe){const $t=Z(177);return $t.modifiers=Za(b),$t.name=wl(A),$t.parameters=V(B),$t.type=ue,$t.body=Qe,$t.body?$t.transformFlags=to($t.modifiers)|w1($t.name)|to($t.parameters)|Cr($t.type)|Cr($t.body)&-67108865|($t.type?1:0):$t.transformFlags=1,$t.typeArguments=void 0,$t.typeParameters=void 0,$t.jsDoc=void 0,$t.locals=void 0,$t.nextContainer=void 0,$t.flowNode=void 0,$t.endFlowNode=void 0,$t.returnFlowNode=void 0,$t}function ft(b,A,B,ue,Qe,$t){return b.modifiers!==A||b.name!==B||b.parameters!==ue||b.type!==Qe||b.body!==$t?At(pt(A,B,ue,Qe,$t),b):b}function At(b,A){return b!==A&&(b.typeParameters=A.typeParameters),z(b,A)}function le(b,A,B,ue){const Qe=Z(178);return Qe.modifiers=Za(b),Qe.name=wl(A),Qe.parameters=V(B),Qe.body=ue,Qe.body?Qe.transformFlags=to(Qe.modifiers)|w1(Qe.name)|to(Qe.parameters)|Cr(Qe.body)&-67108865|(Qe.type?1:0):Qe.transformFlags=1,Qe.typeArguments=void 0,Qe.typeParameters=void 0,Qe.type=void 0,Qe.jsDoc=void 0,Qe.locals=void 0,Qe.nextContainer=void 0,Qe.flowNode=void 0,Qe.endFlowNode=void 0,Qe.returnFlowNode=void 0,Qe}function Me(b,A,B,ue,Qe){return b.modifiers!==A||b.name!==B||b.parameters!==ue||b.body!==Qe?_t(le(A,B,ue,Qe),b):b}function _t(b,A){return b!==A&&(b.typeParameters=A.typeParameters,b.type=A.type),z(b,A)}function U(b,A,B){const ue=Z(179);return ue.typeParameters=Za(b),ue.parameters=Za(A),ue.type=B,ue.transformFlags=1,ue.jsDoc=void 0,ue.locals=void 0,ue.nextContainer=void 0,ue.typeArguments=void 0,ue}function it(b,A,B,ue){return b.typeParameters!==A||b.parameters!==B||b.type!==ue?z(U(A,B,ue),b):b}function Et(b,A,B){const ue=Z(180);return ue.typeParameters=Za(b),ue.parameters=Za(A),ue.type=B,ue.transformFlags=1,ue.jsDoc=void 0,ue.locals=void 0,ue.nextContainer=void 0,ue.typeArguments=void 0,ue}function Ge(b,A,B,ue){return b.typeParameters!==A||b.parameters!==B||b.type!==ue?z(Et(A,B,ue),b):b}function mt(b,A,B){const ue=Z(181);return ue.modifiers=Za(b),ue.parameters=Za(A),ue.type=B,ue.transformFlags=1,ue.jsDoc=void 0,ue.locals=void 0,ue.nextContainer=void 0,ue.typeArguments=void 0,ue}function Ut(b,A,B,ue){return b.parameters!==B||b.type!==ue||b.modifiers!==A?z(mt(A,B,ue),b):b}function vn(b,A){const B=G(204);return B.type=b,B.literal=A,B.transformFlags=1,B}function pn(b,A,B){return b.type!==A||b.literal!==B?ar(vn(A,B),b):b}function mn(b){return xe(b)}function q(b,A,B){const ue=G(182);return ue.assertsModifier=b,ue.parameterName=wl(A),ue.type=B,ue.transformFlags=1,ue}function Fe(b,A,B,ue){return b.assertsModifier!==A||b.parameterName!==B||b.type!==ue?ar(q(A,B,ue),b):b}function Ot(b,A){const B=G(183);return B.typeName=wl(b),B.typeArguments=A&&i().parenthesizeTypeArguments(V(A)),B.transformFlags=1,B}function I(b,A,B){return b.typeName!==A||b.typeArguments!==B?ar(Ot(A,B),b):b}function me(b,A,B){const ue=Z(184);return ue.typeParameters=Za(b),ue.parameters=Za(A),ue.type=B,ue.transformFlags=1,ue.modifiers=void 0,ue.jsDoc=void 0,ue.locals=void 0,ue.nextContainer=void 0,ue.typeArguments=void 0,ue}function H(b,A,B,ue){return b.typeParameters!==A||b.parameters!==B||b.type!==ue?de(me(A,B,ue),b):b}function de(b,A){return b!==A&&(b.modifiers=A.modifiers),z(b,A)}function Be(...b){return b.length===4?Ie(...b):b.length===3?xt(...b):w.fail("Incorrect number of arguments specified.")}function Ie(b,A,B,ue){const Qe=Z(185);return Qe.modifiers=Za(b),Qe.typeParameters=Za(A),Qe.parameters=Za(B),Qe.type=ue,Qe.transformFlags=1,Qe.jsDoc=void 0,Qe.locals=void 0,Qe.nextContainer=void 0,Qe.typeArguments=void 0,Qe}function xt(b,A,B){return Ie(void 0,b,A,B)}function Ft(...b){return b.length===5?tn(...b):b.length===4?Sn(...b):w.fail("Incorrect number of arguments specified.")}function tn(b,A,B,ue,Qe){return b.modifiers!==A||b.typeParameters!==B||b.parameters!==ue||b.type!==Qe?z(Be(A,B,ue,Qe),b):b}function Sn(b,A,B,ue){return tn(b,b.modifiers,A,B,ue)}function Un(b,A){const B=G(186);return B.exprName=b,B.typeArguments=A&&i().parenthesizeTypeArguments(A),B.transformFlags=1,B}function Gn(b,A,B){return b.exprName!==A||b.typeArguments!==B?ar(Un(A,B),b):b}function Li(b){const A=Z(187);return A.members=V(b),A.transformFlags=1,A}function wi(b,A){return b.members!==A?ar(Li(A),b):b}function sr(b){const A=G(188);return A.elementType=i().parenthesizeNonArrayTypeOfPostfixType(b),A.transformFlags=1,A}function Wr(b,A){return b.elementType!==A?ar(sr(A),b):b}function xs(b){const A=G(189);return A.elements=V(i().parenthesizeElementTypesOfTupleType(b)),A.transformFlags=1,A}function Mi(b,A){return b.elements!==A?ar(xs(A),b):b}function Di(b,A,B,ue){const Qe=Z(202);return Qe.dotDotDotToken=b,Qe.name=A,Qe.questionToken=B,Qe.type=ue,Qe.transformFlags=1,Qe.jsDoc=void 0,Qe}function $r(b,A,B,ue,Qe){return b.dotDotDotToken!==A||b.name!==B||b.questionToken!==ue||b.type!==Qe?ar(Di(A,B,ue,Qe),b):b}function As(b){const A=G(190);return A.type=i().parenthesizeTypeOfOptionalType(b),A.transformFlags=1,A}function Dn(b,A){return b.type!==A?ar(As(A),b):b}function Yo(b){const A=G(191);return A.type=b,A.transformFlags=1,A}function hl(b,A){return b.type!==A?ar(Yo(A),b):b}function Rs(b,A,B){const ue=G(b);return ue.types=M.createNodeArray(B(A)),ue.transformFlags=1,ue}function bo(b,A,B){return b.types!==A?ar(Rs(b.kind,A,B),b):b}function tc(b){return Rs(192,b,i().parenthesizeConstituentTypesOfUnionType)}function Oc(b,A){return bo(b,A,i().parenthesizeConstituentTypesOfUnionType)}function Iu(b){return Rs(193,b,i().parenthesizeConstituentTypesOfIntersectionType)}function vs(b,A){return bo(b,A,i().parenthesizeConstituentTypesOfIntersectionType)}function va(b,A,B,ue){const Qe=G(194);return Qe.checkType=i().parenthesizeCheckTypeOfConditionalType(b),Qe.extendsType=i().parenthesizeExtendsTypeOfConditionalType(A),Qe.trueType=B,Qe.falseType=ue,Qe.transformFlags=1,Qe.locals=void 0,Qe.nextContainer=void 0,Qe}function Ou(b,A,B,ue,Qe){return b.checkType!==A||b.extendsType!==B||b.trueType!==ue||b.falseType!==Qe?ar(va(A,B,ue,Qe),b):b}function Lo(b){const A=G(195);return A.typeParameter=b,A.transformFlags=1,A}function Ja(b,A){return b.typeParameter!==A?ar(Lo(A),b):b}function Pc(b,A){const B=G(203);return B.head=b,B.templateSpans=V(A),B.transformFlags=1,B}function ld(b,A,B){return b.head!==A||b.templateSpans!==B?ar(Pc(A,B),b):b}function El(b,A,B,ue,Qe=!1){const $t=G(205);return $t.argument=b,$t.attributes=A,$t.assertions&&$t.assertions.assertClause&&$t.attributes&&($t.assertions.assertClause=$t.attributes),$t.qualifier=B,$t.typeArguments=ue&&i().parenthesizeTypeArguments(ue),$t.isTypeOf=Qe,$t.transformFlags=1,$t}function qc(b,A,B,ue,Qe,$t=b.isTypeOf){return b.argument!==A||b.attributes!==B||b.qualifier!==ue||b.typeArguments!==Qe||b.isTypeOf!==$t?ar(El(A,B,ue,Qe,$t),b):b}function xc(b){const A=G(196);return A.type=b,A.transformFlags=1,A}function js(b,A){return b.type!==A?ar(xc(A),b):b}function rn(){const b=G(197);return b.transformFlags=1,b}function nc(b,A){const B=G(198);return B.operator=b,B.type=b===148?i().parenthesizeOperandOfReadonlyTypeOperator(A):i().parenthesizeOperandOfTypeOperator(A),B.transformFlags=1,B}function ku(b,A){return b.type!==A?ar(nc(b.operator,A),b):b}function Fu(b,A){const B=G(199);return B.objectType=i().parenthesizeNonArrayTypeOfPostfixType(b),B.indexType=A,B.transformFlags=1,B}function Kf(b,A,B){return b.objectType!==A||b.indexType!==B?ar(Fu(A,B),b):b}function Wo(b,A,B,ue,Qe,$t){const Sr=Z(200);return Sr.readonlyToken=b,Sr.typeParameter=A,Sr.nameType=B,Sr.questionToken=ue,Sr.type=Qe,Sr.members=$t&&V($t),Sr.transformFlags=1,Sr.locals=void 0,Sr.nextContainer=void 0,Sr}function Gl(b,A,B,ue,Qe,$t,Sr){return b.readonlyToken!==A||b.typeParameter!==B||b.nameType!==ue||b.questionToken!==Qe||b.type!==$t||b.members!==Sr?ar(Wo(A,B,ue,Qe,$t,Sr),b):b}function _e(b){const A=G(201);return A.literal=b,A.transformFlags=1,A}function ee(b,A){return b.literal!==A?ar(_e(A),b):b}function Oe(b){const A=G(206);return A.elements=V(b),A.transformFlags|=to(A.elements)|1024|524288,A.transformFlags&32768&&(A.transformFlags|=65664),A}function bt(b,A){return b.elements!==A?ar(Oe(A),b):b}function _n(b){const A=G(207);return A.elements=V(b),A.transformFlags|=to(A.elements)|1024|524288,A}function Tr(b,A){return b.elements!==A?ar(_n(A),b):b}function br(b,A,B,ue){const Qe=Z(208);return Qe.dotDotDotToken=b,Qe.propertyName=wl(A),Qe.name=wl(B),Qe.initializer=ZC(ue),Qe.transformFlags|=Cr(Qe.dotDotDotToken)|w1(Qe.propertyName)|w1(Qe.name)|Cr(Qe.initializer)|(Qe.dotDotDotToken?32768:0)|1024,Qe.flowNode=void 0,Qe}function qr(b,A,B,ue,Qe){return b.propertyName!==B||b.dotDotDotToken!==A||b.name!==ue||b.initializer!==Qe?ar(br(A,B,ue,Qe),b):b}function Ni(b,A){const B=G(209),ue=b&&pc(b),Qe=V(b,ue&&uu(ue)?!0:void 0);return B.elements=i().parenthesizeExpressionsOfCommaDelimitedList(Qe),B.multiLine=A,B.transformFlags|=to(B.elements),B}function Fr(b,A){return b.elements!==A?ar(Ni(A,b.multiLine),b):b}function ia(b,A){const B=Z(210);return B.properties=V(b),B.multiLine=A,B.transformFlags|=to(B.properties),B.jsDoc=void 0,B}function jc(b,A){return b.properties!==A?ar(ia(A,b.multiLine),b):b}function fu(b,A,B){const ue=Z(211);return ue.expression=b,ue.questionDotToken=A,ue.name=B,ue.transformFlags=Cr(ue.expression)|Cr(ue.questionDotToken)|(Je(ue.name)?FN(ue.name):Cr(ue.name)|536870912),ue.jsDoc=void 0,ue.flowNode=void 0,ue}function rc(b,A){const B=fu(i().parenthesizeLeftSideOfAccess(b,!1),void 0,wl(A));return vw(b)&&(B.transformFlags|=384),B}function jl(b,A,B){return vF(b)?pu(b,A,b.questionDotToken,pa(B,Je)):b.expression!==A||b.name!==B?ar(rc(A,B),b):b}function Io(b,A,B){const ue=fu(i().parenthesizeLeftSideOfAccess(b,!0),A,wl(B));return ue.flags|=64,ue.transformFlags|=32,ue}function pu(b,A,B,ue){return w.assert(!!(b.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),b.expression!==A||b.questionDotToken!==B||b.name!==ue?ar(Io(A,B,ue),b):b}function If(b,A,B){const ue=Z(212);return ue.expression=b,ue.questionDotToken=A,ue.argumentExpression=B,ue.transformFlags|=Cr(ue.expression)|Cr(ue.questionDotToken)|Cr(ue.argumentExpression),ue.jsDoc=void 0,ue.flowNode=void 0,ue}function ru(b,A){const B=If(i().parenthesizeLeftSideOfAccess(b,!1),void 0,J2(A));return vw(b)&&(B.transformFlags|=384),B}function Bd(b,A,B){return HV(b)?De(b,A,b.questionDotToken,B):b.expression!==A||b.argumentExpression!==B?ar(ru(A,B),b):b}function z_(b,A,B){const ue=If(i().parenthesizeLeftSideOfAccess(b,!0),A,J2(B));return ue.flags|=64,ue.transformFlags|=32,ue}function De(b,A,B,ue){return w.assert(!!(b.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),b.expression!==A||b.questionDotToken!==B||b.argumentExpression!==ue?ar(z_(A,B,ue),b):b}function jt(b,A,B,ue){const Qe=Z(213);return Qe.expression=b,Qe.questionDotToken=A,Qe.typeArguments=B,Qe.arguments=ue,Qe.transformFlags|=Cr(Qe.expression)|Cr(Qe.questionDotToken)|to(Qe.typeArguments)|to(Qe.arguments),Qe.typeArguments&&(Qe.transformFlags|=1),ff(Qe.expression)&&(Qe.transformFlags|=16384),Qe}function Xn(b,A,B){const ue=jt(i().parenthesizeLeftSideOfAccess(b,!1),void 0,Za(A),i().parenthesizeExpressionsOfCommaDelimitedList(V(B)));return bw(ue.expression)&&(ue.transformFlags|=8388608),ue}function Ts(b,A,B,ue){return XS(b)?la(b,A,b.questionDotToken,B,ue):b.expression!==A||b.typeArguments!==B||b.arguments!==ue?ar(Xn(A,B,ue),b):b}function sa(b,A,B,ue){const Qe=jt(i().parenthesizeLeftSideOfAccess(b,!0),A,Za(B),i().parenthesizeExpressionsOfCommaDelimitedList(V(ue)));return Qe.flags|=64,Qe.transformFlags|=32,Qe}function la(b,A,B,ue,Qe){return w.assert(!!(b.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),b.expression!==A||b.questionDotToken!==B||b.typeArguments!==ue||b.arguments!==Qe?ar(sa(A,B,ue,Qe),b):b}function yl(b,A,B){const ue=Z(214);return ue.expression=i().parenthesizeExpressionOfNew(b),ue.typeArguments=Za(A),ue.arguments=B?i().parenthesizeExpressionsOfCommaDelimitedList(B):void 0,ue.transformFlags|=Cr(ue.expression)|to(ue.typeArguments)|to(ue.arguments)|32,ue.typeArguments&&(ue.transformFlags|=1),ue}function Bl(b,A,B,ue){return b.expression!==A||b.typeArguments!==B||b.arguments!==ue?ar(yl(A,B,ue),b):b}function Tc(b,A,B){const ue=G(215);return ue.tag=i().parenthesizeLeftSideOfAccess(b,!1),ue.typeArguments=Za(A),ue.template=B,ue.transformFlags|=Cr(ue.tag)|to(ue.typeArguments)|Cr(ue.template)|1024,ue.typeArguments&&(ue.transformFlags|=1),iq(ue.template)&&(ue.transformFlags|=128),ue}function Fc(b,A,B,ue){return b.tag!==A||b.typeArguments!==B||b.template!==ue?ar(Tc(A,B,ue),b):b}function sl(b,A){const B=G(216);return B.expression=i().parenthesizeOperandOfPrefixUnary(A),B.type=b,B.transformFlags|=Cr(B.expression)|Cr(B.type)|1,B}function vl(b,A,B){return b.type!==A||b.expression!==B?ar(sl(A,B),b):b}function du(b){const A=G(217);return A.expression=b,A.transformFlags=Cr(A.expression),A.jsDoc=void 0,A}function Up(b,A){return b.expression!==A?ar(du(A),b):b}function gf(b,A,B,ue,Qe,$t,Sr){const as=Z(218);as.modifiers=Za(b),as.asteriskToken=A,as.name=wl(B),as.typeParameters=Za(ue),as.parameters=V(Qe),as.type=$t,as.body=Sr;const sc=sg(as.modifiers)&1024,Bm=!!as.asteriskToken,_v=sc&&Bm;return as.transformFlags=to(as.modifiers)|Cr(as.asteriskToken)|w1(as.name)|to(as.typeParameters)|to(as.parameters)|Cr(as.type)|Cr(as.body)&-67108865|(_v?128:sc?256:Bm?2048:0)|(as.typeParameters||as.type?1:0)|4194304,as.typeArguments=void 0,as.jsDoc=void 0,as.locals=void 0,as.nextContainer=void 0,as.flowNode=void 0,as.endFlowNode=void 0,as.returnFlowNode=void 0,as}function nf(b,A,B,ue,Qe,$t,Sr,as){return b.name!==ue||b.modifiers!==A||b.asteriskToken!==B||b.typeParameters!==Qe||b.parameters!==$t||b.type!==Sr||b.body!==as?z(gf(A,B,ue,Qe,$t,Sr,as),b):b}function ud(b,A,B,ue,Qe,$t){const Sr=Z(219);Sr.modifiers=Za(b),Sr.typeParameters=Za(A),Sr.parameters=V(B),Sr.type=ue,Sr.equalsGreaterThanToken=Qe??xe(39),Sr.body=i().parenthesizeConciseBodyOfArrowFunction($t);const as=sg(Sr.modifiers)&1024;return Sr.transformFlags=to(Sr.modifiers)|to(Sr.typeParameters)|to(Sr.parameters)|Cr(Sr.type)|Cr(Sr.equalsGreaterThanToken)|Cr(Sr.body)&-67108865|(Sr.typeParameters||Sr.type?1:0)|(as?16640:0)|1024,Sr.typeArguments=void 0,Sr.jsDoc=void 0,Sr.locals=void 0,Sr.nextContainer=void 0,Sr.flowNode=void 0,Sr.endFlowNode=void 0,Sr.returnFlowNode=void 0,Sr}function hg(b,A,B,ue,Qe,$t,Sr){return b.modifiers!==A||b.typeParameters!==B||b.parameters!==ue||b.type!==Qe||b.equalsGreaterThanToken!==$t||b.body!==Sr?z(ud(A,B,ue,Qe,$t,Sr),b):b}function sh(b){const A=G(220);return A.expression=i().parenthesizeOperandOfPrefixUnary(b),A.transformFlags|=Cr(A.expression),A}function w0(b,A){return b.expression!==A?ar(sh(A),b):b}function c_(b){const A=G(221);return A.expression=i().parenthesizeOperandOfPrefixUnary(b),A.transformFlags|=Cr(A.expression),A}function D0(b,A){return b.expression!==A?ar(c_(A),b):b}function ep(b){const A=G(222);return A.expression=i().parenthesizeOperandOfPrefixUnary(b),A.transformFlags|=Cr(A.expression),A}function Hh(b,A){return b.expression!==A?ar(ep(A),b):b}function hf(b){const A=G(223);return A.expression=i().parenthesizeOperandOfPrefixUnary(b),A.transformFlags|=Cr(A.expression)|256|128|2097152,A}function te(b,A){return b.expression!==A?ar(hf(A),b):b}function ct(b,A){const B=G(224);return B.operator=b,B.operand=i().parenthesizeOperandOfPrefixUnary(A),B.transformFlags|=Cr(B.operand),(b===46||b===47)&&Je(B.operand)&&!vc(B.operand)&&!T0(B.operand)&&(B.transformFlags|=268435456),B}function Bt(b,A){return b.operand!==A?ar(ct(b.operator,A),b):b}function Vt(b,A){const B=G(225);return B.operator=A,B.operand=i().parenthesizeOperandOfPostfixUnary(b),B.transformFlags|=Cr(B.operand),Je(B.operand)&&!vc(B.operand)&&!T0(B.operand)&&(B.transformFlags|=268435456),B}function R(b,A){return b.operand!==A?ar(Vt(A,b.operator),b):b}function Te(b,A,B){const ue=Z(226),Qe=UD(A),$t=Qe.kind;return ue.left=i().parenthesizeLeftSideOfBinary($t,b),ue.operatorToken=Qe,ue.right=i().parenthesizeRightSideOfBinary($t,ue.left,B),ue.transformFlags|=Cr(ue.left)|Cr(ue.operatorToken)|Cr(ue.right),$t===61?ue.transformFlags|=32:$t===64?Va(ue.left)?ue.transformFlags|=5248|at(ue.left):B_(ue.left)&&(ue.transformFlags|=5120|at(ue.left)):$t===43||$t===68?ue.transformFlags|=512:VP($t)&&(ue.transformFlags|=16),$t===103&&Qi(ue.left)&&(ue.transformFlags|=536870912),ue.jsDoc=void 0,ue}function at(b){return o7(b)?65536:0}function Ht(b,A,B,ue){return b.left!==A||b.operatorToken!==B||b.right!==ue?ar(Te(A,B,ue),b):b}function ir(b,A,B,ue,Qe){const $t=G(227);return $t.condition=i().parenthesizeConditionOfConditionalExpression(b),$t.questionToken=A??xe(58),$t.whenTrue=i().parenthesizeBranchOfConditionalExpression(B),$t.colonToken=ue??xe(59),$t.whenFalse=i().parenthesizeBranchOfConditionalExpression(Qe),$t.transformFlags|=Cr($t.condition)|Cr($t.questionToken)|Cr($t.whenTrue)|Cr($t.colonToken)|Cr($t.whenFalse),$t}function ai(b,A,B,ue,Qe,$t){return b.condition!==A||b.questionToken!==B||b.whenTrue!==ue||b.colonToken!==Qe||b.whenFalse!==$t?ar(ir(A,B,ue,Qe,$t),b):b}function Yr(b,A){const B=G(228);return B.head=b,B.templateSpans=V(A),B.transformFlags|=Cr(B.head)|to(B.templateSpans)|1024,B}function os(b,A,B){return b.head!==A||b.templateSpans!==B?ar(Yr(A,B),b):b}function qa(b,A,B,ue=0){w.assert(!(ue&-7177),"Unsupported template flags.");let Qe;if(B!==void 0&&B!==A&&(Qe=DUe(b,B),typeof Qe=="object"))return w.fail("Invalid raw text");if(A===void 0){if(Qe===void 0)return w.fail("Arguments 'text' and 'rawText' may not both be undefined.");A=Qe}else Qe!==void 0&&w.assert(A===Qe,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return A}function Ha(b){let A=1024;return b&&(A|=128),A}function Zc(b,A,B,ue){const Qe=Tt(b);return Qe.text=A,Qe.rawText=B,Qe.templateFlags=ue&7176,Qe.transformFlags=Ha(Qe.templateFlags),Qe}function Lu(b,A,B,ue){const Qe=Z(b);return Qe.text=A,Qe.rawText=B,Qe.templateFlags=ue&7176,Qe.transformFlags=Ha(Qe.templateFlags),Qe}function $l(b,A,B,ue){return b===15?Lu(b,A,B,ue):Zc(b,A,B,ue)}function tp(b,A,B){return b=qa(16,b,A,B),$l(16,b,A,B)}function yf(b,A,B){return b=qa(16,b,A,B),$l(17,b,A,B)}function W1(b,A,B){return b=qa(16,b,A,B),$l(18,b,A,B)}function So(b,A,B){return b=qa(16,b,A,B),Lu(15,b,A,B)}function lm(b,A){w.assert(!b||!!A,"A `YieldExpression` with an asteriskToken must have an expression.");const B=G(229);return B.expression=A&&i().parenthesizeExpressionForDisallowedComma(A),B.asteriskToken=b,B.transformFlags|=Cr(B.expression)|Cr(B.asteriskToken)|1024|128|1048576,B}function um(b,A,B){return b.expression!==B||b.asteriskToken!==A?ar(lm(A,B),b):b}function $i(b){const A=G(230);return A.expression=i().parenthesizeExpressionForDisallowedComma(b),A.transformFlags|=Cr(A.expression)|1024|32768,A}function A0(b,A){return b.expression!==A?ar($i(A),b):b}function Ry(b,A,B,ue,Qe){const $t=Z(231);return $t.modifiers=Za(b),$t.name=wl(A),$t.typeParameters=Za(B),$t.heritageClauses=Za(ue),$t.members=V(Qe),$t.transformFlags|=to($t.modifiers)|w1($t.name)|to($t.typeParameters)|to($t.heritageClauses)|to($t.members)|($t.typeParameters?1:0)|1024,$t.jsDoc=void 0,$t}function _m(b,A,B,ue,Qe,$t){return b.modifiers!==A||b.name!==B||b.typeParameters!==ue||b.heritageClauses!==Qe||b.members!==$t?ar(Ry(A,B,ue,Qe,$t),b):b}function rS(){return G(232)}function iS(b,A){const B=G(233);return B.expression=i().parenthesizeLeftSideOfAccess(b,!1),B.typeArguments=A&&i().parenthesizeTypeArguments(A),B.transformFlags|=Cr(B.expression)|to(B.typeArguments)|1024,B}function Vp(b,A,B){return b.expression!==A||b.typeArguments!==B?ar(iS(A,B),b):b}function yg(b,A){const B=G(234);return B.expression=b,B.type=A,B.transformFlags|=Cr(B.expression)|Cr(B.type)|1,B}function Wp(b,A,B){return b.expression!==A||b.type!==B?ar(yg(A,B),b):b}function N0(b){const A=G(235);return A.expression=i().parenthesizeLeftSideOfAccess(b,!1),A.transformFlags|=Cr(A.expression)|1,A}function Re(b,A){return SF(b)?bn(b,A):b.expression!==A?ar(N0(A),b):b}function Ze(b,A){const B=G(238);return B.expression=b,B.type=A,B.transformFlags|=Cr(B.expression)|Cr(B.type)|1,B}function It(b,A,B){return b.expression!==A||b.type!==B?ar(Ze(A,B),b):b}function Wt(b){const A=G(235);return A.flags|=64,A.expression=i().parenthesizeLeftSideOfAccess(b,!0),A.transformFlags|=Cr(A.expression)|1,A}function bn(b,A){return w.assert(!!(b.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),b.expression!==A?ar(Wt(A),b):b}function Kn(b,A){const B=G(236);switch(B.keywordToken=b,B.name=A,B.transformFlags|=Cr(B.name),b){case 105:B.transformFlags|=1024;break;case 102:B.transformFlags|=32;break;default:return w.assertNever(b)}return B.flowNode=void 0,B}function yn(b,A){return b.name!==A?ar(Kn(b.keywordToken,A),b):b}function er(b,A){const B=G(239);return B.expression=b,B.literal=A,B.transformFlags|=Cr(B.expression)|Cr(B.literal)|1024,B}function mi(b,A,B){return b.expression!==A||b.literal!==B?ar(er(A,B),b):b}function ur(){const b=G(240);return b.transformFlags|=1024,b}function ri(b,A){const B=G(241);return B.statements=V(b),B.multiLine=A,B.transformFlags|=to(B.statements),B.jsDoc=void 0,B.locals=void 0,B.nextContainer=void 0,B}function dr(b,A){return b.statements!==A?ar(ri(A,b.multiLine),b):b}function aa(b,A){const B=G(243);return B.modifiers=Za(b),B.declarationList=Ps(A)?Of(A):A,B.transformFlags|=to(B.modifiers)|Cr(B.declarationList),sg(B.modifiers)&128&&(B.transformFlags=1),B.jsDoc=void 0,B.flowNode=void 0,B}function no(b,A,B){return b.modifiers!==A||b.declarationList!==B?ar(aa(A,B),b):b}function x_(){const b=G(242);return b.jsDoc=void 0,b}function Mu(b){const A=G(244);return A.expression=i().parenthesizeExpressionOfExpressionStatement(b),A.transformFlags|=Cr(A.expression),A.jsDoc=void 0,A.flowNode=void 0,A}function I0(b,A){return b.expression!==A?ar(Mu(A),b):b}function T2(b,A,B){const ue=G(245);return ue.expression=b,ue.thenStatement=uv(A),ue.elseStatement=uv(B),ue.transformFlags|=Cr(ue.expression)|Cr(ue.thenStatement)|Cr(ue.elseStatement),ue.jsDoc=void 0,ue.flowNode=void 0,ue}function AC(b,A,B,ue){return b.expression!==A||b.thenStatement!==B||b.elseStatement!==ue?ar(T2(A,B,ue),b):b}function k2(b,A){const B=G(246);return B.statement=uv(b),B.expression=A,B.transformFlags|=Cr(B.statement)|Cr(B.expression),B.jsDoc=void 0,B.flowNode=void 0,B}function B3(b,A,B){return b.statement!==A||b.expression!==B?ar(k2(A,B),b):b}function J3(b,A){const B=G(247);return B.expression=b,B.statement=uv(A),B.transformFlags|=Cr(B.expression)|Cr(B.statement),B.jsDoc=void 0,B.flowNode=void 0,B}function z3(b,A,B){return b.expression!==A||b.statement!==B?ar(J3(A,B),b):b}function Xx(b,A,B,ue){const Qe=G(248);return Qe.initializer=b,Qe.condition=A,Qe.incrementor=B,Qe.statement=uv(ue),Qe.transformFlags|=Cr(Qe.initializer)|Cr(Qe.condition)|Cr(Qe.incrementor)|Cr(Qe.statement),Qe.jsDoc=void 0,Qe.locals=void 0,Qe.nextContainer=void 0,Qe.flowNode=void 0,Qe}function sS(b,A,B,ue,Qe){return b.initializer!==A||b.condition!==B||b.incrementor!==ue||b.statement!==Qe?ar(Xx(A,B,ue,Qe),b):b}function NC(b,A,B){const ue=G(249);return ue.initializer=b,ue.expression=A,ue.statement=uv(B),ue.transformFlags|=Cr(ue.initializer)|Cr(ue.expression)|Cr(ue.statement),ue.jsDoc=void 0,ue.locals=void 0,ue.nextContainer=void 0,ue.flowNode=void 0,ue}function U3(b,A,B,ue){return b.initializer!==A||b.expression!==B||b.statement!==ue?ar(NC(A,B,ue),b):b}function IC(b,A,B,ue){const Qe=G(250);return Qe.awaitModifier=b,Qe.initializer=A,Qe.expression=i().parenthesizeExpressionForDisallowedComma(B),Qe.statement=uv(ue),Qe.transformFlags|=Cr(Qe.awaitModifier)|Cr(Qe.initializer)|Cr(Qe.expression)|Cr(Qe.statement)|1024,b&&(Qe.transformFlags|=128),Qe.jsDoc=void 0,Qe.locals=void 0,Qe.nextContainer=void 0,Qe.flowNode=void 0,Qe}function OC(b,A,B,ue,Qe){return b.awaitModifier!==A||b.initializer!==B||b.expression!==ue||b.statement!==Qe?ar(IC(A,B,ue,Qe),b):b}function FC(b){const A=G(251);return A.label=wl(b),A.transformFlags|=Cr(A.label)|4194304,A.jsDoc=void 0,A.flowNode=void 0,A}function LC(b,A){return b.label!==A?ar(FC(A),b):b}function Qx(b){const A=G(252);return A.label=wl(b),A.transformFlags|=Cr(A.label)|4194304,A.jsDoc=void 0,A.flowNode=void 0,A}function MC(b,A){return b.label!==A?ar(Qx(A),b):b}function aS(b){const A=G(253);return A.expression=b,A.transformFlags|=Cr(A.expression)|128|4194304,A.jsDoc=void 0,A.flowNode=void 0,A}function oS(b,A){return b.expression!==A?ar(aS(A),b):b}function q1(b,A){const B=G(254);return B.expression=b,B.statement=uv(A),B.transformFlags|=Cr(B.expression)|Cr(B.statement),B.jsDoc=void 0,B.flowNode=void 0,B}function H1(b,A,B){return b.expression!==A||b.statement!==B?ar(q1(A,B),b):b}function Gh(b,A){const B=G(255);return B.expression=i().parenthesizeExpressionForDisallowedComma(b),B.caseBlock=A,B.transformFlags|=Cr(B.expression)|Cr(B.caseBlock),B.jsDoc=void 0,B.flowNode=void 0,B.possiblyExhaustive=!1,B}function C2(b,A,B){return b.expression!==A||b.caseBlock!==B?ar(Gh(A,B),b):b}function _o(b,A){const B=G(256);return B.label=wl(b),B.statement=uv(A),B.transformFlags|=Cr(B.label)|Cr(B.statement),B.jsDoc=void 0,B.flowNode=void 0,B}function Yx(b,A,B){return b.label!==A||b.statement!==B?ar(_o(A,B),b):b}function V3(b){const A=G(257);return A.expression=b,A.transformFlags|=Cr(A.expression),A.jsDoc=void 0,A.flowNode=void 0,A}function E2(b,A){return b.expression!==A?ar(V3(A),b):b}function O0(b,A,B){const ue=G(258);return ue.tryBlock=b,ue.catchClause=A,ue.finallyBlock=B,ue.transformFlags|=Cr(ue.tryBlock)|Cr(ue.catchClause)|Cr(ue.finallyBlock),ue.jsDoc=void 0,ue.flowNode=void 0,ue}function ah(b,A,B,ue){return b.tryBlock!==A||b.catchClause!==B||b.finallyBlock!==ue?ar(O0(A,B,ue),b):b}function _d(){const b=G(259);return b.jsDoc=void 0,b.flowNode=void 0,b}function vf(b,A,B,ue){const Qe=Z(260);return Qe.name=wl(b),Qe.exclamationToken=A,Qe.type=B,Qe.initializer=ZC(ue),Qe.transformFlags|=w1(Qe.name)|Cr(Qe.initializer)|(Qe.exclamationToken??Qe.type?1:0),Qe.jsDoc=void 0,Qe}function np(b,A,B,ue,Qe){return b.name!==A||b.type!==ue||b.exclamationToken!==B||b.initializer!==Qe?ar(vf(A,B,ue,Qe),b):b}function Of(b,A=0){const B=G(261);return B.flags|=A&7,B.declarations=V(b),B.transformFlags|=to(B.declarations)|4194304,A&7&&(B.transformFlags|=263168),A&4&&(B.transformFlags|=4),B}function jy(b,A){return b.declarations!==A?ar(Of(A,b.flags),b):b}function Zx(b,A,B,ue,Qe,$t,Sr){const as=Z(262);if(as.modifiers=Za(b),as.asteriskToken=A,as.name=wl(B),as.typeParameters=Za(ue),as.parameters=V(Qe),as.type=$t,as.body=Sr,!as.body||sg(as.modifiers)&128)as.transformFlags=1;else{const sc=sg(as.modifiers)&1024,Bm=!!as.asteriskToken,_v=sc&&Bm;as.transformFlags=to(as.modifiers)|Cr(as.asteriskToken)|w1(as.name)|to(as.typeParameters)|to(as.parameters)|Cr(as.type)|Cr(as.body)&-67108865|(_v?128:sc?256:Bm?2048:0)|(as.typeParameters||as.type?1:0)|4194304}return as.typeArguments=void 0,as.jsDoc=void 0,as.locals=void 0,as.nextContainer=void 0,as.endFlowNode=void 0,as.returnFlowNode=void 0,as}function W3(b,A,B,ue,Qe,$t,Sr,as){return b.modifiers!==A||b.asteriskToken!==B||b.name!==ue||b.typeParameters!==Qe||b.parameters!==$t||b.type!==Sr||b.body!==as?RC(Zx(A,B,ue,Qe,$t,Sr,as),b):b}function RC(b,A){return b!==A&&b.modifiers===A.modifiers&&(b.modifiers=A.modifiers),z(b,A)}function G1(b,A,B,ue,Qe){const $t=Z(263);return $t.modifiers=Za(b),$t.name=wl(A),$t.typeParameters=Za(B),$t.heritageClauses=Za(ue),$t.members=V(Qe),sg($t.modifiers)&128?$t.transformFlags=1:($t.transformFlags|=to($t.modifiers)|w1($t.name)|to($t.typeParameters)|to($t.heritageClauses)|to($t.members)|($t.typeParameters?1:0)|1024,$t.transformFlags&8192&&($t.transformFlags|=1)),$t.jsDoc=void 0,$t}function P2(b,A,B,ue,Qe,$t){return b.modifiers!==A||b.name!==B||b.typeParameters!==ue||b.heritageClauses!==Qe||b.members!==$t?ar(G1(A,B,ue,Qe,$t),b):b}function jC(b,A,B,ue,Qe){const $t=Z(264);return $t.modifiers=Za(b),$t.name=wl(A),$t.typeParameters=Za(B),$t.heritageClauses=Za(ue),$t.members=V(Qe),$t.transformFlags=1,$t.jsDoc=void 0,$t}function Jl(b,A,B,ue,Qe,$t){return b.modifiers!==A||b.name!==B||b.typeParameters!==ue||b.heritageClauses!==Qe||b.members!==$t?ar(jC(A,B,ue,Qe,$t),b):b}function By(b,A,B,ue){const Qe=Z(265);return Qe.modifiers=Za(b),Qe.name=wl(A),Qe.typeParameters=Za(B),Qe.type=ue,Qe.transformFlags=1,Qe.jsDoc=void 0,Qe.locals=void 0,Qe.nextContainer=void 0,Qe}function BC(b,A,B,ue,Qe){return b.modifiers!==A||b.name!==B||b.typeParameters!==ue||b.type!==Qe?ar(By(A,B,ue,Qe),b):b}function Om(b,A,B){const ue=Z(266);return ue.modifiers=Za(b),ue.name=wl(A),ue.members=V(B),ue.transformFlags|=to(ue.modifiers)|Cr(ue.name)|to(ue.members)|1,ue.transformFlags&=-67108865,ue.jsDoc=void 0,ue}function Kx(b,A,B,ue){return b.modifiers!==A||b.name!==B||b.members!==ue?ar(Om(A,B,ue),b):b}function We(b,A,B,ue=0){const Qe=Z(267);return Qe.modifiers=Za(b),Qe.flags|=ue&2088,Qe.name=A,Qe.body=B,sg(Qe.modifiers)&128?Qe.transformFlags=1:Qe.transformFlags|=to(Qe.modifiers)|Cr(Qe.name)|Cr(Qe.body)|1,Qe.transformFlags&=-67108865,Qe.jsDoc=void 0,Qe.locals=void 0,Qe.nextContainer=void 0,Qe}function Fm(b,A,B,ue){return b.modifiers!==A||b.name!==B||b.body!==ue?ar(We(A,B,ue,b.flags),b):b}function Ru(b){const A=G(268);return A.statements=V(b),A.transformFlags|=to(A.statements),A.jsDoc=void 0,A}function w2(b,A){return b.statements!==A?ar(Ru(A),b):b}function JC(b){const A=G(269);return A.clauses=V(b),A.transformFlags|=to(A.clauses),A.locals=void 0,A.nextContainer=void 0,A}function $1(b,A){return b.clauses!==A?ar(JC(A),b):b}function Jy(b){const A=Z(270);return A.name=wl(b),A.transformFlags|=FN(A.name)|1,A.modifiers=void 0,A.jsDoc=void 0,A}function zy(b,A){return b.name!==A?FD(Jy(A),b):b}function FD(b,A){return b!==A&&(b.modifiers=A.modifiers),ar(b,A)}function ro(b,A,B,ue){const Qe=Z(271);return Qe.modifiers=Za(b),Qe.name=wl(B),Qe.isTypeOnly=A,Qe.moduleReference=ue,Qe.transformFlags|=to(Qe.modifiers)|FN(Qe.name)|Cr(Qe.moduleReference),Kg(Qe.moduleReference)||(Qe.transformFlags|=1),Qe.transformFlags&=-67108865,Qe.jsDoc=void 0,Qe}function Lm(b,A,B,ue,Qe){return b.modifiers!==A||b.isTypeOnly!==B||b.name!==ue||b.moduleReference!==Qe?ar(ro(A,B,ue,Qe),b):b}function eT(b,A,B,ue){const Qe=G(272);return Qe.modifiers=Za(b),Qe.importClause=A,Qe.moduleSpecifier=B,Qe.attributes=Qe.assertClause=ue,Qe.transformFlags|=Cr(Qe.importClause)|Cr(Qe.moduleSpecifier),Qe.transformFlags&=-67108865,Qe.jsDoc=void 0,Qe}function tT(b,A,B,ue,Qe){return b.modifiers!==A||b.importClause!==B||b.moduleSpecifier!==ue||b.attributes!==Qe?ar(eT(A,B,ue,Qe),b):b}function D2(b,A,B){const ue=Z(273);return ue.isTypeOnly=b,ue.name=A,ue.namedBindings=B,ue.transformFlags|=Cr(ue.name)|Cr(ue.namedBindings),b&&(ue.transformFlags|=1),ue.transformFlags&=-67108865,ue}function nT(b,A,B,ue){return b.isTypeOnly!==A||b.name!==B||b.namedBindings!==ue?ar(D2(A,B,ue),b):b}function Jd(b,A){const B=G(300);return B.elements=V(b),B.multiLine=A,B.token=132,B.transformFlags|=4,B}function zd(b,A,B){return b.elements!==A||b.multiLine!==B?ar(Jd(A,B),b):b}function F0(b,A){const B=G(301);return B.name=b,B.value=A,B.transformFlags|=4,B}function zC(b,A,B){return b.name!==A||b.value!==B?ar(F0(A,B),b):b}function Mm(b,A){const B=G(302);return B.assertClause=b,B.multiLine=A,B}function q3(b,A,B){return b.assertClause!==A||b.multiLine!==B?ar(Mm(A,B),b):b}function cS(b,A,B){const ue=G(300);return ue.token=B??118,ue.elements=V(b),ue.multiLine=A,ue.transformFlags|=4,ue}function Zi(b,A,B){return b.elements!==A||b.multiLine!==B?ar(cS(A,B,b.token),b):b}function ei(b,A){const B=G(301);return B.name=b,B.value=A,B.transformFlags|=4,B}function oh(b,A,B){return b.name!==A||b.value!==B?ar(ei(A,B),b):b}function bf(b){const A=Z(274);return A.name=b,A.transformFlags|=Cr(A.name),A.transformFlags&=-67108865,A}function LD(b,A){return b.name!==A?ar(bf(A),b):b}function L0(b){const A=Z(280);return A.name=b,A.transformFlags|=Cr(A.name)|32,A.transformFlags&=-67108865,A}function MD(b,A){return b.name!==A?ar(L0(A),b):b}function X1(b){const A=G(275);return A.elements=V(b),A.transformFlags|=to(A.elements),A.transformFlags&=-67108865,A}function Lc(b,A){return b.elements!==A?ar(X1(A),b):b}function bp(b,A,B){const ue=Z(276);return ue.isTypeOnly=b,ue.propertyName=A,ue.name=B,ue.transformFlags|=Cr(ue.propertyName)|Cr(ue.name),ue.transformFlags&=-67108865,ue}function $h(b,A,B,ue){return b.isTypeOnly!==A||b.propertyName!==B||b.name!==ue?ar(bp(A,B,ue),b):b}function Ud(b,A,B){const ue=Z(277);return ue.modifiers=Za(b),ue.isExportEquals=A,ue.expression=A?i().parenthesizeRightSideOfBinary(64,void 0,B):i().parenthesizeExpressionOfExportDefault(B),ue.transformFlags|=to(ue.modifiers)|Cr(ue.expression),ue.transformFlags&=-67108865,ue.jsDoc=void 0,ue}function Q1(b,A,B){return b.modifiers!==A||b.expression!==B?ar(Ud(A,b.isExportEquals,B),b):b}function fm(b,A,B,ue,Qe){const $t=Z(278);return $t.modifiers=Za(b),$t.isTypeOnly=A,$t.exportClause=B,$t.moduleSpecifier=ue,$t.attributes=$t.assertClause=Qe,$t.transformFlags|=to($t.modifiers)|Cr($t.exportClause)|Cr($t.moduleSpecifier),$t.transformFlags&=-67108865,$t.jsDoc=void 0,$t}function M0(b,A,B,ue,Qe,$t){return b.modifiers!==A||b.isTypeOnly!==B||b.exportClause!==ue||b.moduleSpecifier!==Qe||b.attributes!==$t?lS(fm(A,B,ue,Qe,$t),b):b}function lS(b,A){return b!==A&&b.modifiers===A.modifiers&&(b.modifiers=A.modifiers),ar(b,A)}function rT(b){const A=G(279);return A.elements=V(b),A.transformFlags|=to(A.elements),A.transformFlags&=-67108865,A}function Xh(b,A){return b.elements!==A?ar(rT(A),b):b}function UC(b,A,B){const ue=G(281);return ue.isTypeOnly=b,ue.propertyName=wl(A),ue.name=wl(B),ue.transformFlags|=Cr(ue.propertyName)|Cr(ue.name),ue.transformFlags&=-67108865,ue.jsDoc=void 0,ue}function Qh(b,A,B,ue){return b.isTypeOnly!==A||b.propertyName!==B||b.name!==ue?ar(UC(A,B,ue),b):b}function vg(){const b=Z(282);return b.jsDoc=void 0,b}function Uy(b){const A=G(283);return A.expression=b,A.transformFlags|=Cr(A.expression),A.transformFlags&=-67108865,A}function H3(b,A){return b.expression!==A?ar(Uy(A),b):b}function G3(b){return G(b)}function $3(b,A,B=!1){const ue=iT(b,B?A&&i().parenthesizeNonArrayTypeOfPostfixType(A):A);return ue.postfix=B,ue}function iT(b,A){const B=G(b);return B.type=A,B}function _c(b,A,B){return A.type!==B?ar($3(b,B,A.postfix),A):A}function uS(b,A,B){return A.type!==B?ar(iT(b,B),A):A}function sT(b,A){const B=Z(324);return B.parameters=Za(b),B.type=A,B.transformFlags=to(B.parameters)|(B.type?1:0),B.jsDoc=void 0,B.locals=void 0,B.nextContainer=void 0,B.typeArguments=void 0,B}function pm(b,A,B){return b.parameters!==A||b.type!==B?ar(sT(A,B),b):b}function Y1(b,A=!1){const B=Z(329);return B.jsDocPropertyTags=Za(b),B.isArrayType=A,B}function X3(b,A,B){return b.jsDocPropertyTags!==A||b.isArrayType!==B?ar(Y1(A,B),b):b}function aT(b){const A=G(316);return A.type=b,A}function RD(b,A){return b.type!==A?ar(aT(A),b):b}function hr(b,A,B){const ue=Z(330);return ue.typeParameters=Za(b),ue.parameters=V(A),ue.type=B,ue.jsDoc=void 0,ue.locals=void 0,ue.nextContainer=void 0,ue}function Cu(b,A,B,ue){return b.typeParameters!==A||b.parameters!==B||b.type!==ue?ar(hr(A,B,ue),b):b}function is(b){const A=oH(b.kind);return b.tagName.escapedText===Nc(A)?b.tagName:we(A)}function qp(b,A,B){const ue=G(b);return ue.tagName=A,ue.comment=B,ue}function Vy(b,A,B){const ue=Z(b);return ue.tagName=A,ue.comment=B,ue}function bg(b,A,B,ue){const Qe=qp(352,b??we("template"),ue);return Qe.constraint=A,Qe.typeParameters=V(B),Qe}function _r(b,A=is(b),B,ue,Qe){return b.tagName!==A||b.constraint!==B||b.typeParameters!==ue||b.comment!==Qe?ar(bg(A,B,ue,Qe),b):b}function oT(b,A,B,ue){const Qe=Vy(353,b??we("typedef"),ue);return Qe.typeExpression=A,Qe.fullName=B,Qe.name=HH(B),Qe.locals=void 0,Qe.nextContainer=void 0,Qe}function A2(b,A=is(b),B,ue,Qe){return b.tagName!==A||b.typeExpression!==B||b.fullName!==ue||b.comment!==Qe?ar(oT(A,B,ue,Qe),b):b}function mu(b,A,B,ue,Qe,$t){const Sr=Vy(348,b??we("param"),$t);return Sr.typeExpression=ue,Sr.name=A,Sr.isNameFirst=!!Qe,Sr.isBracketed=B,Sr}function ch(b,A=is(b),B,ue,Qe,$t,Sr){return b.tagName!==A||b.name!==B||b.isBracketed!==ue||b.typeExpression!==Qe||b.isNameFirst!==$t||b.comment!==Sr?ar(mu(A,B,ue,Qe,$t,Sr),b):b}function dm(b,A,B,ue,Qe,$t){const Sr=Vy(355,b??we("prop"),$t);return Sr.typeExpression=ue,Sr.name=A,Sr.isNameFirst=!!Qe,Sr.isBracketed=B,Sr}function _S(b,A=is(b),B,ue,Qe,$t,Sr){return b.tagName!==A||b.name!==B||b.isBracketed!==ue||b.typeExpression!==Qe||b.isNameFirst!==$t||b.comment!==Sr?ar(dm(A,B,ue,Qe,$t,Sr),b):b}function fS(b,A,B,ue){const Qe=Vy(345,b??we("callback"),ue);return Qe.typeExpression=A,Qe.fullName=B,Qe.name=HH(B),Qe.locals=void 0,Qe.nextContainer=void 0,Qe}function Z1(b,A=is(b),B,ue,Qe){return b.tagName!==A||b.typeExpression!==B||b.fullName!==ue||b.comment!==Qe?ar(fS(A,B,ue,Qe),b):b}function R0(b,A,B){const ue=qp(346,b??we("overload"),B);return ue.typeExpression=A,ue}function cT(b,A=is(b),B,ue){return b.tagName!==A||b.typeExpression!==B||b.comment!==ue?ar(R0(A,B,ue),b):b}function mm(b,A,B){const ue=qp(335,b??we("augments"),B);return ue.class=A,ue}function N2(b,A=is(b),B,ue){return b.tagName!==A||b.class!==B||b.comment!==ue?ar(mm(A,B,ue),b):b}function Yh(b,A,B){const ue=qp(336,b??we("implements"),B);return ue.class=A,ue}function K1(b,A,B){const ue=qp(354,b??we("see"),B);return ue.name=A,ue}function VC(b,A,B,ue){return b.tagName!==A||b.name!==B||b.comment!==ue?ar(K1(A,B,ue),b):b}function I2(b){const A=G(317);return A.name=b,A}function Q3(b,A){return b.name!==A?ar(I2(A),b):b}function pS(b,A){const B=G(318);return B.left=b,B.right=A,B.transformFlags|=Cr(B.left)|Cr(B.right),B}function lT(b,A,B){return b.left!==A||b.right!==B?ar(pS(A,B),b):b}function Sp(b,A){const B=G(331);return B.name=b,B.text=A,B}function uT(b,A,B){return b.name!==A?ar(Sp(A,B),b):b}function al(b,A){const B=G(332);return B.name=b,B.text=A,B}function iu(b,A,B){return b.name!==A?ar(al(A,B),b):b}function _T(b,A){const B=G(333);return B.name=b,B.text=A,B}function Hu(b,A,B){return b.name!==A?ar(_T(A,B),b):b}function Ff(b,A=is(b),B,ue){return b.tagName!==A||b.class!==B||b.comment!==ue?ar(Yh(A,B,ue),b):b}function O2(b,A,B){return qp(b,A??we(oH(b)),B)}function fd(b,A,B=is(A),ue){return A.tagName!==B||A.comment!==ue?ar(O2(b,B,ue),A):A}function ev(b,A,B,ue){const Qe=qp(b,A??we(oH(b)),ue);return Qe.typeExpression=B,Qe}function tv(b,A,B=is(A),ue,Qe){return A.tagName!==B||A.typeExpression!==ue||A.comment!==Qe?ar(ev(b,B,ue,Qe),A):A}function Eu(b,A){return qp(334,b,A)}function WC(b,A,B){return b.tagName!==A||b.comment!==B?ar(Eu(A,B),b):b}function xp(b,A,B){const ue=Vy(347,b??we(oH(347)),B);return ue.typeExpression=A,ue.locals=void 0,ue.nextContainer=void 0,ue}function fT(b,A=is(b),B,ue){return b.tagName!==A||b.typeExpression!==B||b.comment!==ue?ar(xp(A,B,ue),b):b}function pT(b){const A=G(328);return A.text=b,A}function ic(b,A){return b.text!==A?ar(pT(A),b):b}function Y3(b,A){const B=G(327);return B.comment=b,B.tags=Za(A),B}function F2(b,A,B){return b.comment!==A||b.tags!==B?ar(Y3(A,B),b):b}function dS(b,A,B){const ue=G(284);return ue.openingElement=b,ue.children=V(A),ue.closingElement=B,ue.transformFlags|=Cr(ue.openingElement)|to(ue.children)|Cr(ue.closingElement)|2,ue}function jD(b,A,B,ue){return b.openingElement!==A||b.children!==B||b.closingElement!==ue?ar(dS(A,B,ue),b):b}function U_(b,A,B){const ue=G(285);return ue.tagName=b,ue.typeArguments=Za(A),ue.attributes=B,ue.transformFlags|=Cr(ue.tagName)|to(ue.typeArguments)|Cr(ue.attributes)|2,ue.typeArguments&&(ue.transformFlags|=1),ue}function j0(b,A,B,ue){return b.tagName!==A||b.typeArguments!==B||b.attributes!==ue?ar(U_(A,B,ue),b):b}function Sg(b,A,B){const ue=G(286);return ue.tagName=b,ue.typeArguments=Za(A),ue.attributes=B,ue.transformFlags|=Cr(ue.tagName)|to(ue.typeArguments)|Cr(ue.attributes)|2,A&&(ue.transformFlags|=1),ue}function qC(b,A,B,ue){return b.tagName!==A||b.typeArguments!==B||b.attributes!==ue?ar(Sg(A,B,ue),b):b}function rp(b){const A=G(287);return A.tagName=b,A.transformFlags|=Cr(A.tagName)|2,A}function HC(b,A){return b.tagName!==A?ar(rp(A),b):b}function Lf(b,A,B){const ue=G(288);return ue.openingFragment=b,ue.children=V(A),ue.closingFragment=B,ue.transformFlags|=Cr(ue.openingFragment)|to(ue.children)|Cr(ue.closingFragment)|2,ue}function GC(b,A,B,ue){return b.openingFragment!==A||b.children!==B||b.closingFragment!==ue?ar(Lf(A,B,ue),b):b}function Wy(b,A){const B=G(12);return B.text=b,B.containsOnlyTriviaWhiteSpaces=!!A,B.transformFlags|=2,B}function dT(b,A,B){return b.text!==A||b.containsOnlyTriviaWhiteSpaces!==B?ar(Wy(A,B),b):b}function Z3(){const b=G(289);return b.transformFlags|=2,b}function K3(){const b=G(290);return b.transformFlags|=2,b}function mT(b,A){const B=Z(291);return B.name=b,B.initializer=A,B.transformFlags|=Cr(B.name)|Cr(B.initializer)|2,B}function eE(b,A,B){return b.name!==A||b.initializer!==B?ar(mT(A,B),b):b}function nv(b){const A=Z(292);return A.properties=V(b),A.transformFlags|=to(A.properties)|2,A}function ip(b,A){return b.properties!==A?ar(nv(A),b):b}function lh(b){const A=G(293);return A.expression=b,A.transformFlags|=Cr(A.expression)|2,A}function tE(b,A){return b.expression!==A?ar(lh(A),b):b}function gT(b,A){const B=G(294);return B.dotDotDotToken=b,B.expression=A,B.transformFlags|=Cr(B.dotDotDotToken)|Cr(B.expression)|2,B}function po(b,A){return b.expression!==A?ar(gT(b.dotDotDotToken,A),b):b}function Pr(b,A){const B=G(295);return B.namespace=b,B.name=A,B.transformFlags|=Cr(B.namespace)|Cr(B.name)|2,B}function Hp(b,A,B){return b.namespace!==A||b.name!==B?ar(Pr(A,B),b):b}function rf(b,A){const B=G(296);return B.expression=i().parenthesizeExpressionForDisallowedComma(b),B.statements=V(A),B.transformFlags|=Cr(B.expression)|to(B.statements),B.jsDoc=void 0,B}function mS(b,A,B){return b.expression!==A||b.statements!==B?ar(rf(A,B),b):b}function nE(b){const A=G(297);return A.statements=V(b),A.transformFlags=to(A.statements),A}function L2(b,A){return b.statements!==A?ar(nE(A),b):b}function gS(b,A){const B=G(298);switch(B.token=b,B.types=V(A),B.transformFlags|=to(B.types),b){case 96:B.transformFlags|=1024;break;case 119:B.transformFlags|=1;break;default:return w.assertNever(b)}return B}function hT(b,A){return b.types!==A?ar(gS(b.token,A),b):b}function Zh(b,A){const B=G(299);return B.variableDeclaration=VD(b),B.block=A,B.transformFlags|=Cr(B.variableDeclaration)|Cr(B.block)|(b?0:64),B.locals=void 0,B.nextContainer=void 0,B}function Rm(b,A,B){return b.variableDeclaration!==A||b.block!==B?ar(Zh(A,B),b):b}function Gp(b,A){const B=Z(303);return B.name=wl(b),B.initializer=i().parenthesizeExpressionForDisallowedComma(A),B.transformFlags|=w1(B.name)|Cr(B.initializer),B.modifiers=void 0,B.questionToken=void 0,B.exclamationToken=void 0,B.jsDoc=void 0,B}function gm(b,A,B){return b.name!==A||b.initializer!==B?B0(Gp(A,B),b):b}function B0(b,A){return b!==A&&(b.modifiers=A.modifiers,b.questionToken=A.questionToken,b.exclamationToken=A.exclamationToken),ar(b,A)}function Kh(b,A){const B=Z(304);return B.name=wl(b),B.objectAssignmentInitializer=A&&i().parenthesizeExpressionForDisallowedComma(A),B.transformFlags|=FN(B.name)|Cr(B.objectAssignmentInitializer)|1024,B.equalsToken=void 0,B.modifiers=void 0,B.questionToken=void 0,B.exclamationToken=void 0,B.jsDoc=void 0,B}function e0(b,A,B){return b.name!==A||b.objectAssignmentInitializer!==B?$C(Kh(A,B),b):b}function $C(b,A){return b!==A&&(b.modifiers=A.modifiers,b.questionToken=A.questionToken,b.exclamationToken=A.exclamationToken,b.equalsToken=A.equalsToken),ar(b,A)}function Pl(b){const A=Z(305);return A.expression=i().parenthesizeExpressionForDisallowedComma(b),A.transformFlags|=Cr(A.expression)|128|65536,A.jsDoc=void 0,A}function rE(b,A){return b.expression!==A?ar(Pl(A),b):b}function pd(b,A){const B=Z(306);return B.name=wl(b),B.initializer=A&&i().parenthesizeExpressionForDisallowedComma(A),B.transformFlags|=Cr(B.name)|Cr(B.initializer)|1,B.jsDoc=void 0,B}function uh(b,A,B){return b.name!==A||b.initializer!==B?ar(pd(A,B),b):b}function $p(b,A,B){const ue=t.createBaseSourceFileNode(312);return ue.statements=V(b),ue.endOfFileToken=A,ue.flags|=B,ue.text="",ue.fileName="",ue.path="",ue.resolvedPath="",ue.originalFileName="",ue.languageVersion=0,ue.languageVariant=0,ue.scriptKind=0,ue.isDeclarationFile=!1,ue.hasNoDefaultLib=!1,ue.transformFlags|=to(ue.statements)|Cr(ue.endOfFileToken),ue.locals=void 0,ue.nextContainer=void 0,ue.endFlowNode=void 0,ue.nodeCount=0,ue.identifierCount=0,ue.symbolCount=0,ue.parseDiagnostics=void 0,ue.bindDiagnostics=void 0,ue.bindSuggestionDiagnostics=void 0,ue.lineMap=void 0,ue.externalModuleIndicator=void 0,ue.setExternalModuleIndicator=void 0,ue.pragmas=void 0,ue.checkJsDirective=void 0,ue.referencedFiles=void 0,ue.typeReferenceDirectives=void 0,ue.libReferenceDirectives=void 0,ue.amdDependencies=void 0,ue.commentDirectives=void 0,ue.identifiers=void 0,ue.packageJsonLocations=void 0,ue.packageJsonScope=void 0,ue.imports=void 0,ue.moduleAugmentations=void 0,ue.ambientModuleNames=void 0,ue.classifiableNames=void 0,ue.impliedNodeFormat=void 0,ue}function hS(b){const A=Object.create(b.redirectTarget);return Object.defineProperties(A,{id:{get(){return this.redirectInfo.redirectTarget.id},set(B){this.redirectInfo.redirectTarget.id=B}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(B){this.redirectInfo.redirectTarget.symbol=B}}}),A.redirectInfo=b,A}function M2(b){const A=hS(b.redirectInfo);return A.flags|=b.flags&-17,A.fileName=b.fileName,A.path=b.path,A.resolvedPath=b.resolvedPath,A.originalFileName=b.originalFileName,A.packageJsonLocations=b.packageJsonLocations,A.packageJsonScope=b.packageJsonScope,A.emitNode=void 0,A}function XC(b){const A=t.createBaseSourceFileNode(312);A.flags|=b.flags&-17;for(const B in b)if(!(jo(A,B)||!jo(b,B))){if(B==="emitNode"){A.emitNode=void 0;continue}A[B]=b[B]}return A}function yT(b){const A=b.redirectInfo?M2(b):XC(b);return r(A,b),A}function Xp(b,A,B,ue,Qe,$t,Sr){const as=yT(b);return as.statements=V(A),as.isDeclarationFile=B,as.referencedFiles=ue,as.typeReferenceDirectives=Qe,as.hasNoDefaultLib=$t,as.libReferenceDirectives=Sr,as.transformFlags=to(as.statements)|Cr(as.endOfFileToken),as}function qo(b,A,B=b.isDeclarationFile,ue=b.referencedFiles,Qe=b.typeReferenceDirectives,$t=b.hasNoDefaultLib,Sr=b.libReferenceDirectives){return b.statements!==A||b.isDeclarationFile!==B||b.referencedFiles!==ue||b.typeReferenceDirectives!==Qe||b.hasNoDefaultLib!==$t||b.libReferenceDirectives!==Sr?ar(Xp(b,A,B,ue,Qe,$t,Sr),b):b}function yS(b,A=Ke){const B=G(313);return B.prepends=A,B.sourceFiles=b,B.syntheticFileReferences=void 0,B.syntheticTypeReferences=void 0,B.syntheticLibReferences=void 0,B.hasNoDefaultLib=void 0,B}function vS(b,A,B=Ke){return b.sourceFiles!==A||b.prepends!==B?ar(yS(A,B),b):b}function J0(b,A,B){const ue=G(314);return ue.prologues=b,ue.syntheticReferences=A,ue.texts=B,ue.fileName="",ue.text="",ue.referencedFiles=Ke,ue.libReferenceDirectives=Ke,ue.getLineAndCharacterOfPosition=Qe=>Ao(ue,Qe),ue}function rv(b,A){const B=G(b);return B.data=A,B}function R2(b){return rv(307,b)}function P(b,A){const B=rv(308,b);return B.texts=A,B}function oe(b,A){return rv(A?310:309,b)}function gt(b){const A=G(311);return A.data=b.data,A.section=b,A}function an(){const b=G(315);return b.javascriptText="",b.declarationText="",b}function jr(b,A=!1,B){const ue=G(237);return ue.type=b,ue.isSpread=A,ue.tupleNameSource=B,ue}function Bi(b){const A=G(358);return A._children=b,A}function bi(b){const A=G(359);return A.original=b,ut(A,b),A}function ss(b,A){const B=G(360);return B.expression=b,B.original=A,B.transformFlags|=Cr(B.expression)|1,ut(B,A),B}function Ca(b,A){return b.expression!==A?ar(ss(A,b.original),b):b}function T_(b){if(lc(b)&&!fP(b)&&!b.original&&!b.emitNode&&!b.id){if(xw(b))return b.elements;if(mr(b)&&xoe(b.operatorToken))return[b.left,b.right]}return b}function sf(b){const A=G(361);return A.elements=V(VS(b,T_)),A.transformFlags|=to(A.elements),A}function dd(b,A){return b.elements!==A?ar(sf(A),b):b}function iv(b,A){const B=G(362);return B.expression=b,B.thisArg=A,B.transformFlags|=Cr(B.expression)|Cr(B.thisArg),B}function Ti(b,A,B){return b.expression!==A||b.thisArg!==B?ar(iv(A,B),b):b}function _h(b){const A=se(b.escapedText);return A.flags|=b.flags&-17,A.transformFlags=b.transformFlags,r(A,b),BN(A,{...b.emitNode.autoGenerate}),A}function Hn(b){const A=se(b.escapedText);A.flags|=b.flags&-17,A.jsDoc=b.jsDoc,A.flowNode=b.flowNode,A.symbol=b.symbol,A.transformFlags=b.transformFlags,r(A,b);const B=yx(b);return B&&ky(A,B),A}function QC(b){const A=Ue(b.escapedText);return A.flags|=b.flags&-17,A.transformFlags=b.transformFlags,r(A,b),BN(A,{...b.emitNode.autoGenerate}),A}function sv(b){const A=Ue(b.escapedText);return A.flags|=b.flags&-17,A.transformFlags=b.transformFlags,r(A,b),A}function av(b){if(b===void 0)return b;if(es(b))return yT(b);if(vc(b))return _h(b);if(Je(b))return Hn(b);if(QS(b))return QC(b);if(Qi(b))return sv(b);const A=fA(b.kind)?t.createBaseNode(b.kind):t.createBaseTokenNode(b.kind);A.flags|=b.flags&-17,A.transformFlags=b.transformFlags,r(A,b);for(const B in b)jo(A,B)||!jo(b,B)||(A[B]=b[B]);return A}function vT(b,A,B){return Xn(gf(void 0,void 0,void 0,void 0,A?[A]:[],void 0,ri(b,!0)),void 0,B?[B]:[])}function bS(b,A,B){return Xn(ud(void 0,void 0,A?[A]:[],void 0,void 0,ri(b,!0)),void 0,B?[B]:[])}function xg(){return ep(ce("0"))}function fh(b){return Ud(void 0,!1,b)}function iE(b){return fm(void 0,!1,rT([UC(!1,void 0,b)]))}function bT(b,A){return A==="null"?M.createStrictEquality(b,zt()):A==="undefined"?M.createStrictEquality(b,xg()):M.createStrictEquality(c_(b),ge(A))}function sJ(b,A){return A==="null"?M.createStrictInequality(b,zt()):A==="undefined"?M.createStrictInequality(b,xg()):M.createStrictInequality(c_(b),ge(A))}function ov(b,A,B){return XS(b)?sa(Io(b,void 0,A),void 0,void 0,B):Xn(rc(b,A),void 0,B)}function b5(b,A,B){return ov(b,"bind",[A,...B])}function S5(b,A,B){return ov(b,"call",[A,...B])}function j2(b,A,B){return ov(b,"apply",[A,B])}function jm(b,A,B){return ov(we(b),A,B)}function BD(b,A){return ov(b,"slice",A===void 0?[]:[J2(A)])}function ph(b,A){return ov(b,"concat",A)}function YC(b,A,B){return jm("Object","defineProperty",[b,J2(A),B])}function x5(b,A){return jm("Object","getOwnPropertyDescriptor",[b,J2(A)])}function Tg(b,A,B){return jm("Reflect","get",B?[b,A,B]:[b,A])}function Y(b,A,B,ue){return jm("Reflect","set",ue?[b,A,B,ue]:[b,A,B])}function Ce(b,A,B){return B?(b.push(Gp(A,B)),!0):!1}function He(b,A){const B=[];Ce(B,"enumerable",J2(b.enumerable)),Ce(B,"configurable",J2(b.configurable));let ue=Ce(B,"writable",J2(b.writable));ue=Ce(B,"value",b.value)||ue;let Qe=Ce(B,"get",b.get);return Qe=Ce(B,"set",b.set)||Qe,w.assert(!(ue&&Qe),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),ia(B,!A)}function Ct(b,A){switch(b.kind){case 217:return Up(b,A);case 216:return vl(b,b.type,A);case 234:return Wp(b,A,b.type);case 238:return It(b,A,b.type);case 235:return Re(b,A);case 360:return Ca(b,A)}}function Dt(b){return df(b)&&lc(b)&&lc(Ty(b))&&lc(cg(b))&&!Pe(A4(b))&&!Pe(jN(b))}function Gt(b,A,B=15){return b&&_M(b,B)&&!Dt(b)?Ct(b,Gt(b.expression,A)):A}function zr(b,A,B){if(!A)return b;const ue=Yx(A,A.label,Mb(A.statement)?zr(b,A.statement):b);return B&&B(A),ue}function Ui(b,A){const B=Eo(b);switch(B.kind){case 80:return A;case 110:case 9:case 10:case 11:return!1;case 209:return B.elements.length!==0;case 210:return B.properties.length>0;default:return!0}}function Ii(b,A,B,ue=!1){const Qe=gl(b,15);let $t,Sr;return ff(Qe)?($t=st(),Sr=Qe):vw(Qe)?($t=st(),Sr=B!==void 0&&B<2?ut(we("_super"),Qe):Qe):Ya(Qe)&8192?($t=xg(),Sr=i().parenthesizeLeftSideOfAccess(Qe,!1)):Jr(Qe)?Ui(Qe.expression,ue)?($t=fe(A),Sr=rc(ut(M.createAssignment($t,Qe.expression),Qe.expression),Qe.name),ut(Sr,Qe)):($t=Qe.expression,Sr=Qe):uc(Qe)?Ui(Qe.expression,ue)?($t=fe(A),Sr=ru(ut(M.createAssignment($t,Qe.expression),Qe.expression),Qe.argumentExpression),ut(Sr,Qe)):($t=Qe.expression,Sr=Qe):($t=xg(),Sr=i().parenthesizeLeftSideOfAccess(b,!1)),{target:Sr,thisArg:$t}}function gi(b,A){return rc(du(ia([le(void 0,"value",[yi(void 0,void 0,b,void 0,void 0,void 0)],ri([Mu(A)]))])),"value")}function Ki(b){return b.length>10?sf(b):D_(b,M.createComma)}function xo(b,A,B,ue=0,Qe){const $t=Qe?b&&dF(b):Ms(b);if($t&&Je($t)&&!vc($t)){const Sr=eo(ut(av($t),$t),$t.parent);return ue|=Ya($t),B||(ue|=96),A||(ue|=3072),ue&&pr(Sr,ue),Sr}return Ne(b)}function Jo(b,A,B){return xo(b,A,B,98304)}function lo(b,A,B,ue){return xo(b,A,B,32768,ue)}function md(b,A,B){return xo(b,A,B,16384)}function kg(b,A,B){return xo(b,A,B)}function t0(b,A,B,ue){const Qe=rc(b,lc(A)?A:av(A));ut(Qe,A);let $t=0;return ue||($t|=96),B||($t|=3072),$t&&pr(Qe,$t),Qe}function z0(b,A,B,ue){return b&&Kr(A,32)?t0(b,xo(A),B,ue):md(A,B,ue)}function U0(b,A,B,ue){const Qe=ST(b,A,0,B);return sE(b,A,Qe,ue)}function cv(b){return Ba(b.expression)&&b.expression.text==="use strict"}function Mf(){return y_(Mu(ge("use strict")))}function ST(b,A,B=0,ue){w.assert(A.length===0,"Prologue directives should be at the first statement in the target statements array");let Qe=!1;const $t=b.length;for(;B<$t;){const Sr=b[B];if(em(Sr))cv(Sr)&&(Qe=!0),A.push(Sr);else break;B++}return ue&&!Qe&&A.push(Mf()),B}function sE(b,A,B,ue,Qe=cy){const $t=b.length;for(;B!==void 0&&B<$t;){const Sr=b[B];if(Ya(Sr)&2097152&&Qe(Sr))gn(A,ue?tt(Sr,ue,Xi):Sr);else break;B++}return B}function JD(b){return VH(b)?b:ut(V([Mf(),...b]),b)}function zD(b){return w.assert(Pn(b,Wie),"Cannot lift nodes to a Block."),Mg(b)||ri(b)}function B2(b,A,B){let ue=B;for(;ueas&&Bm.splice(Qe,0,...A.slice(as,sc)),as>Sr&&Bm.splice(ue,0,...A.slice(Sr,as)),Sr>$t&&Bm.splice(B,0,...A.slice($t,Sr)),$t>0)if(B===0)Bm.splice(0,0,...A.slice(0,$t));else{const _v=new Map;for(let hm=0;hm=0;hm--){const z2=A[hm];_v.has(z2.expression.text)||Bm.unshift(z2)}}return ub(b)?ut(V(Bm,b.hasTrailingComma),b):b}function lv(b,A){let B;return typeof A=="number"?B=nn(A):B=A,Ic(b)?Yt(b,B,b.name,b.constraint,b.default):ws(b)?us(b,B,b.dotDotDotToken,b.name,b.questionToken,b.type,b.initializer):I4(b)?tn(b,B,b.typeParameters,b.parameters,b.type):Gf(b)?Fi(b,B,b.name,b.questionToken,b.type):Zs(b)?et(b,B,b.name,b.questionToken??b.exclamationToken,b.type,b.initializer):Xg(b)?wn(b,B,b.name,b.questionToken,b.typeParameters,b.parameters,b.type):ul(b)?vi(b,B,b.asteriskToken,b.name,b.questionToken,b.typeParameters,b.parameters,b.type,b.body):$c(b)?Ln(b,B,b.parameters,b.body):Op(b)?ft(b,B,b.name,b.parameters,b.type,b.body):$f(b)?Me(b,B,b.name,b.parameters,b.body):Ib(b)?Ut(b,B,b.parameters,b.type):Xo(b)?nf(b,B,b.asteriskToken,b.name,b.typeParameters,b.parameters,b.type,b.body):ec(b)?hg(b,B,b.typeParameters,b.parameters,b.type,b.equalsGreaterThanToken,b.body):Su(b)?_m(b,B,b.name,b.typeParameters,b.heritageClauses,b.members):Xc(b)?no(b,B,b.declarationList):Wl(b)?W3(b,B,b.asteriskToken,b.name,b.typeParameters,b.parameters,b.type,b.body):ql(b)?P2(b,B,b.name,b.typeParameters,b.heritageClauses,b.members):J_(b)?Jl(b,B,b.name,b.typeParameters,b.heritageClauses,b.members):im(b)?BC(b,B,b.name,b.typeParameters,b.type):a2(b)?Kx(b,B,b.name,b.members):dl(b)?Fm(b,B,b.name,b.body):Tu(b)?Lm(b,B,b.isTypeOnly,b.name,b.moduleReference):eu(b)?tT(b,B,b.importClause,b.moduleSpecifier,b.attributes):Qc(b)?Q1(b,B,b.expression):ml(b)?M0(b,B,b.isTypeOnly,b.exportClause,b.moduleSpecifier,b.attributes):w.assertNever(b)}function aE(b,A){return ws(b)?us(b,A,b.dotDotDotToken,b.name,b.questionToken,b.type,b.initializer):Zs(b)?et(b,A,b.name,b.questionToken??b.exclamationToken,b.type,b.initializer):ul(b)?vi(b,A,b.asteriskToken,b.name,b.questionToken,b.typeParameters,b.parameters,b.type,b.body):Op(b)?ft(b,A,b.name,b.parameters,b.type,b.body):$f(b)?Me(b,A,b.name,b.parameters,b.body):Su(b)?_m(b,A,b.name,b.typeParameters,b.heritageClauses,b.members):ql(b)?P2(b,A,b.name,b.typeParameters,b.heritageClauses,b.members):w.assertNever(b)}function Tp(b,A){switch(b.kind){case 177:return ft(b,b.modifiers,A,b.parameters,b.type,b.body);case 178:return Me(b,b.modifiers,A,b.parameters,b.body);case 174:return vi(b,b.modifiers,b.asteriskToken,A,b.questionToken,b.typeParameters,b.parameters,b.type,b.body);case 173:return wn(b,b.modifiers,A,b.questionToken,b.typeParameters,b.parameters,b.type);case 172:return et(b,b.modifiers,A,b.questionToken??b.exclamationToken,b.type,b.initializer);case 171:return Fi(b,b.modifiers,A,b.questionToken,b.type);case 303:return gm(b,A,b.initializer)}}function Za(b){return b?V(b):void 0}function wl(b){return typeof b=="string"?we(b):b}function J2(b){return typeof b=="string"?ge(b):typeof b=="number"?ce(b):typeof b=="boolean"?b?yt():$e():b}function ZC(b){return b&&i().parenthesizeExpressionForDisallowedComma(b)}function UD(b){return typeof b=="number"?xe(b):b}function uv(b){return b&&DH(b)?ut(r(x_(),b),b):b}function VD(b){return typeof b=="string"||b&&!Ji(b)?vf(b,void 0,void 0,void 0):b}function ar(b,A){return b!==A&&(r(b,A),ut(b,A)),b}}function oH(e){switch(e){case 351:return"type";case 349:return"returns";case 350:return"this";case 347:return"enum";case 337:return"author";case 339:return"class";case 340:return"public";case 341:return"private";case 342:return"protected";case 343:return"readonly";case 344:return"override";case 352:return"template";case 353:return"typedef";case 348:return"param";case 355:return"prop";case 345:return"callback";case 346:return"overload";case 335:return"augments";case 336:return"implements";default:return w.fail(`Unsupported kind: ${w.formatSyntaxKind(e)}`)}}function DUe(e,t){switch(xy||(xy=fy(99,!1,0)),e){case 15:xy.setText("`"+t+"`");break;case 16:xy.setText("`"+t+"${");break;case 17:xy.setText("}"+t+"${");break;case 18:xy.setText("}"+t+"`");break}let r=xy.scan();if(r===20&&(r=xy.reScanTemplateToken(!1)),xy.isUnterminated())return xy.setText(void 0),uoe;let i;switch(r){case 15:case 16:case 17:case 18:i=xy.getTokenValue();break}return i===void 0||xy.scan()!==1?(xy.setText(void 0),uoe):(xy.setText(void 0),i)}function w1(e){return e&&Je(e)?FN(e):Cr(e)}function FN(e){return Cr(e)&-67108865}function AUe(e,t){return t|e.transformFlags&134234112}function Cr(e){if(!e)return 0;const t=e.transformFlags&~coe(e.kind);return I_(e)&&Tl(e.name)?AUe(e.name,t):t}function to(e){return e?e.transformFlags:0}function Wxe(e){let t=0;for(const r of e)t|=Cr(r);e.transformFlags=t}function coe(e){if(e>=182&&e<=205)return-2;switch(e){case 213:case 214:case 209:return-2147450880;case 267:return-1941676032;case 169:return-2147483648;case 219:return-2072174592;case 218:case 262:return-1937940480;case 261:return-2146893824;case 263:case 231:return-2147344384;case 176:return-1937948672;case 172:return-2013249536;case 174:case 177:case 178:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 168:case 171:case 173:case 179:case 180:case 181:case 264:case 265:return-2;case 210:return-2147278848;case 299:return-2147418112;case 206:case 207:return-2147450880;case 216:case 238:case 234:case 360:case 217:case 108:return-2147483648;case 211:case 212:return-2147483648;default:return-2147483648}}function pL(e){return e.flags|=16,e}function cH(e,t,r){let i,s,o,c,u,f,g,d,y,x;Ls(e)?(o="",c=e,u=e.length,f=t,g=r):(w.assert(t==="js"||t==="dts"),o=(t==="js"?e.javascriptPath:e.declarationPath)||"",f=t==="js"?e.javascriptMapPath:e.declarationMapPath,d=()=>t==="js"?e.javascriptText:e.declarationText,y=()=>t==="js"?e.javascriptMapText:e.declarationMapText,u=()=>d().length,e.buildInfo&&e.buildInfo.bundle&&(w.assert(r===void 0||typeof r=="boolean"),i=r,s=t==="js"?e.buildInfo.bundle.js:e.buildInfo.bundle.dts,x=e.oldFileOfCurrentEmit));const T=x?IUe(w.checkDefined(s)):NUe(s,i,u);return T.fileName=o,T.sourceMapPath=f,T.oldFileOfCurrentEmit=x,d&&y?(Object.defineProperty(T,"text",{get:d}),Object.defineProperty(T,"sourceMapText",{get:y})):(w.assert(!x),T.text=c??"",T.sourceMapText=g),T}function NUe(e,t,r){let i,s,o,c,u,f,g,d;for(const x of e?e.sections:Ke)switch(x.kind){case"prologue":i=gn(i,ut(L.createUnparsedPrologue(x.data),x));break;case"emitHelpers":s=gn(s,hH().get(x.data));break;case"no-default-lib":d=!0;break;case"reference":o=gn(o,{pos:-1,end:-1,fileName:x.data});break;case"type":c=gn(c,{pos:-1,end:-1,fileName:x.data});break;case"type-import":c=gn(c,{pos:-1,end:-1,fileName:x.data,resolutionMode:99});break;case"type-require":c=gn(c,{pos:-1,end:-1,fileName:x.data,resolutionMode:1});break;case"lib":u=gn(u,{pos:-1,end:-1,fileName:x.data});break;case"prepend":let T;for(const C of x.texts)(!t||C.kind!=="internal")&&(T=gn(T,ut(L.createUnparsedTextLike(C.data,C.kind==="internal"),C)));f=Mr(f,T),g=gn(g,L.createUnparsedPrepend(x.data,T??Ke));break;case"internal":if(t){g||(g=[]);break}case"text":g=gn(g,ut(L.createUnparsedTextLike(x.data,x.kind==="internal"),x));break;default:w.assertNever(x)}if(!g){const x=L.createUnparsedTextLike(void 0,!1);sw(x,0,typeof r=="function"?r():r),g=[x]}const y=eh.createUnparsedSource(i??Ke,void 0,g);return E4(i,y),E4(g,y),E4(f,y),y.hasNoDefaultLib=d,y.helpers=s,y.referencedFiles=o||Ke,y.typeReferenceDirectives=c,y.libReferenceDirectives=u||Ke,y}function IUe(e){let t,r;for(const s of e.sections)switch(s.kind){case"internal":case"text":t=gn(t,ut(L.createUnparsedTextLike(s.data,s.kind==="internal"),s));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":r=gn(r,ut(L.createUnparsedSyntheticReference(s),s));break;case"prologue":case"emitHelpers":case"prepend":break;default:w.assertNever(s)}const i=L.createUnparsedSource(Ke,r,t??Ke);return E4(r,i),E4(t,i),i.helpers=Kt(e.sources&&e.sources.helpers,s=>hH().get(s)),i}function qxe(e,t,r,i,s,o){return Ls(e)?uH(void 0,e,r,i,void 0,t,s,o):lH(e,t,r,i,s,o)}function lH(e,t,r,i,s,o,c,u){const f=eh.createInputFiles();f.javascriptPath=t,f.javascriptMapPath=r,f.declarationPath=i,f.declarationMapPath=s,f.buildInfoPath=o;const g=new Map,d=C=>{if(C===void 0)return;let N=g.get(C);return N===void 0&&(N=e(C),g.set(C,N!==void 0?N:!1)),N!==!1?N:void 0},y=C=>{const N=d(C);return N!==void 0?N:`/* Input file ${C} was missing */\r +`};let x;return Object.defineProperties(f,{javascriptText:{get:()=>y(t)},javascriptMapText:{get:()=>d(r)},declarationText:{get:()=>y(w.checkDefined(i))},declarationMapText:{get:()=>d(s)},buildInfo:{get:()=>{if(x===void 0&&o)if(c!=null&&c.getBuildInfo)x=c.getBuildInfo(o,u.configFilePath)??!1;else{const C=d(o);x=C!==void 0?uR(o,C)??!1:!1}return x||void 0}}}),f}function uH(e,t,r,i,s,o,c,u,f,g,d){const y=eh.createInputFiles();return y.javascriptPath=e,y.javascriptText=t,y.javascriptMapPath=r,y.javascriptMapText=i,y.declarationPath=s,y.declarationText=o,y.declarationMapPath=c,y.declarationMapText=u,y.buildInfoPath=f,y.buildInfo=g,y.oldFileOfCurrentEmit=d,y}function Hxe(e,t,r){return new($xe||($xe=Au.getSourceMapSourceConstructor()))(e,t,r)}function Ir(e,t){if(e.original!==t&&(e.original=t,t)){const r=t.emitNode;r&&(e.emitNode=OUe(r,e.emitNode))}return e}function OUe(e,t){const{flags:r,internalFlags:i,leadingComments:s,trailingComments:o,commentRange:c,sourceMapRange:u,tokenSourceMapRanges:f,constantValue:g,helpers:d,startsOnNewLine:y,snippetElement:x,classThis:T,assignedName:C}=e;if(t||(t={}),r&&(t.flags=r),i&&(t.internalFlags=i&-9),s&&(t.leadingComments=Mr(s.slice(),t.leadingComments)),o&&(t.trailingComments=Mr(o.slice(),t.trailingComments)),c&&(t.commentRange=c),u&&(t.sourceMapRange=u),f&&(t.tokenSourceMapRanges=FUe(f,t.tokenSourceMapRanges)),g!==void 0&&(t.constantValue=g),d)for(const N of d)t.helpers=w_(t.helpers,N);return y!==void 0&&(t.startsOnNewLine=y),x!==void 0&&(t.snippetElement=x),T&&(t.classThis=T),C&&(t.assignedName=C),t}function FUe(e,t){t||(t=[]);for(const r in e)t[r]=e[r];return t}var dL,_H,loe,xy,uoe,LN,Gxe,L,$xe,LUe=K({"src/compiler/factory/nodeFactory.ts"(){ua(),dL=0,_H=(e=>(e[e.None=0]="None",e[e.NoParenthesizerRules=1]="NoParenthesizerRules",e[e.NoNodeConverters=2]="NoNodeConverters",e[e.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",e[e.NoOriginalNode=8]="NoOriginalNode",e))(_H||{}),loe=[],uoe={},LN=soe(),Gxe={createBaseSourceFileNode:e=>pL(LN.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>pL(LN.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>pL(LN.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>pL(LN.createBaseTokenNode(e)),createBaseNode:e=>pL(LN.createBaseNode(e))},L=ON(4,Gxe)}});function i_(e){if(e.emitNode)w.assert(!(e.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(fP(e)){if(e.kind===312)return e.emitNode={annotatedNodes:[e]};const t=qn(Is(qn(e)))??w.fail("Could not determine parsed source file.");i_(t).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function fH(e){var t,r;const i=(r=(t=qn(Is(e)))==null?void 0:t.emitNode)==null?void 0:r.annotatedNodes;if(i)for(const s of i)s.emitNode=void 0}function MN(e){const t=i_(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function pr(e,t){return i_(e).flags=t,e}function og(e,t){const r=i_(e);return r.flags=r.flags|t,e}function RN(e,t){return i_(e).internalFlags=t,e}function Lk(e,t){const r=i_(e);return r.internalFlags=r.internalFlags|t,e}function Ty(e){var t;return((t=e.emitNode)==null?void 0:t.sourceMapRange)??e}function ja(e,t){return i_(e).sourceMapRange=t,e}function Xxe(e,t){var r,i;return(i=(r=e.emitNode)==null?void 0:r.tokenSourceMapRanges)==null?void 0:i[t]}function _oe(e,t,r){const i=i_(e),s=i.tokenSourceMapRanges??(i.tokenSourceMapRanges=[]);return s[t]=r,e}function mw(e){var t;return(t=e.emitNode)==null?void 0:t.startsOnNewLine}function mL(e,t){return i_(e).startsOnNewLine=t,e}function cg(e){var t;return((t=e.emitNode)==null?void 0:t.commentRange)??e}function kl(e,t){return i_(e).commentRange=t,e}function A4(e){var t;return(t=e.emitNode)==null?void 0:t.leadingComments}function s2(e,t){return i_(e).leadingComments=t,e}function gw(e,t,r,i){return s2(e,gn(A4(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function jN(e){var t;return(t=e.emitNode)==null?void 0:t.trailingComments}function Mk(e,t){return i_(e).trailingComments=t,e}function gL(e,t,r,i){return Mk(e,gn(jN(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function foe(e,t){s2(e,A4(t)),Mk(e,jN(t));const r=i_(t);return r.leadingComments=void 0,r.trailingComments=void 0,e}function poe(e){var t;return(t=e.emitNode)==null?void 0:t.constantValue}function doe(e,t){const r=i_(e);return r.constantValue=t,e}function Rk(e,t){const r=i_(e);return r.helpers=gn(r.helpers,t),e}function S0(e,t){if(Pe(t)){const r=i_(e);for(const i of t)r.helpers=w_(r.helpers,i)}return e}function Qxe(e,t){var r;const i=(r=e.emitNode)==null?void 0:r.helpers;return i?w6(i,t):!1}function hL(e){var t;return(t=e.emitNode)==null?void 0:t.helpers}function moe(e,t,r){const i=e.emitNode,s=i&&i.helpers;if(!Pe(s))return;const o=i_(t);let c=0;for(let u=0;u0&&(s[u-c]=f)}c>0&&(s.length-=c)}function pH(e){var t;return(t=e.emitNode)==null?void 0:t.snippetElement}function dH(e,t){const r=i_(e);return r.snippetElement=t,e}function mH(e){return i_(e).internalFlags|=4,e}function goe(e,t){const r=i_(e);return r.typeNode=t,e}function hoe(e){var t;return(t=e.emitNode)==null?void 0:t.typeNode}function ky(e,t){return i_(e).identifierTypeArguments=t,e}function yx(e){var t;return(t=e.emitNode)==null?void 0:t.identifierTypeArguments}function BN(e,t){return i_(e).autoGenerate=t,e}function Yxe(e){var t;return(t=e.emitNode)==null?void 0:t.autoGenerate}function yoe(e,t){return i_(e).generatedImportReference=t,e}function voe(e){var t;return(t=e.emitNode)==null?void 0:t.generatedImportReference}var MUe=K({"src/compiler/factory/emitNode.ts"(){ua()}});function boe(e){const t=e.factory,r=X_(()=>RN(t.createTrue(),8)),i=X_(()=>RN(t.createFalse(),8));return{getUnscopedHelperName:s,createDecorateHelper:o,createMetadataHelper:c,createParamHelper:u,createESDecorateHelper:N,createRunInitializersHelper:D,createAssignHelper:M,createAwaitHelper:V,createAsyncGeneratorHelper:G,createAsyncDelegatorHelper:Z,createAsyncValuesHelper:z,createRestHelper:ce,createAwaiterHelper:J,createExtendsHelper:ne,createTemplateObjectHelper:ge,createSpreadArrayHelper:ve,createPropKeyHelper:Q,createSetFunctionNameHelper:X,createValuesHelper:se,createReadHelper:pe,createGeneratorHelper:we,createCreateBindingHelper:fe,createImportStarHelper:ie,createImportStarCallbackHelper:ye,createImportDefaultHelper:Ne,createExportStarHelper:Ue,createClassPrivateFieldGetHelper:Se,createClassPrivateFieldSetHelper:Ee,createClassPrivateFieldInHelper:Ae,createAddDisposableResourceHelper:Le,createDisposeResourcesHelper:Tt};function s(xe){return pr(t.createIdentifier(xe),8196)}function o(xe,ze,st,zt){e.requestEmitHelper(yL);const yt=[];return yt.push(t.createArrayLiteralExpression(xe,!0)),yt.push(ze),st&&(yt.push(st),zt&&yt.push(zt)),t.createCallExpression(s("__decorate"),void 0,yt)}function c(xe,ze){return e.requestEmitHelper(vL),t.createCallExpression(s("__metadata"),void 0,[t.createStringLiteral(xe),ze])}function u(xe,ze,st){return e.requestEmitHelper(bL),ut(t.createCallExpression(s("__param"),void 0,[t.createNumericLiteral(ze+""),xe]),st)}function f(xe){const ze=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral("class")),t.createPropertyAssignment(t.createIdentifier("name"),xe.name),t.createPropertyAssignment(t.createIdentifier("metadata"),xe.metadata)];return t.createObjectLiteralExpression(ze)}function g(xe){const ze=xe.computed?t.createElementAccessExpression(t.createIdentifier("obj"),xe.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),xe.name);return t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,ze))}function d(xe){const ze=xe.computed?t.createElementAccessExpression(t.createIdentifier("obj"),xe.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),xe.name);return t.createPropertyAssignment("set",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj")),t.createParameterDeclaration(void 0,void 0,t.createIdentifier("value"))],void 0,void 0,t.createBlock([t.createExpressionStatement(t.createAssignment(ze,t.createIdentifier("value")))])))}function y(xe){const ze=xe.computed?xe.name:Je(xe.name)?t.createStringLiteralFromNode(xe.name):xe.name;return t.createPropertyAssignment("has",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,t.createBinaryExpression(ze,103,t.createIdentifier("obj"))))}function x(xe,ze){const st=[];return st.push(y(xe)),ze.get&&st.push(g(xe)),ze.set&&st.push(d(xe)),t.createObjectLiteralExpression(st)}function T(xe){const ze=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral(xe.kind)),t.createPropertyAssignment(t.createIdentifier("name"),xe.name.computed?xe.name.name:t.createStringLiteralFromNode(xe.name.name)),t.createPropertyAssignment(t.createIdentifier("static"),xe.static?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("private"),xe.private?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("access"),x(xe.name,xe.access)),t.createPropertyAssignment(t.createIdentifier("metadata"),xe.metadata)];return t.createObjectLiteralExpression(ze)}function C(xe){return xe.kind==="class"?f(xe):T(xe)}function N(xe,ze,st,zt,yt,$e){return e.requestEmitHelper(SL),t.createCallExpression(s("__esDecorate"),void 0,[xe??t.createNull(),ze??t.createNull(),st,C(zt),yt,$e])}function D(xe,ze,st){return e.requestEmitHelper(xL),t.createCallExpression(s("__runInitializers"),void 0,st?[xe,ze,st]:[xe,ze])}function M(xe){return go(e.getCompilerOptions())>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,xe):(e.requestEmitHelper(TL),t.createCallExpression(s("__assign"),void 0,xe))}function V(xe){return e.requestEmitHelper(jk),t.createCallExpression(s("__await"),void 0,[xe])}function G(xe,ze){return e.requestEmitHelper(jk),e.requestEmitHelper(kL),(xe.emitNode||(xe.emitNode={})).flags|=1572864,t.createCallExpression(s("__asyncGenerator"),void 0,[ze?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),xe])}function Z(xe){return e.requestEmitHelper(jk),e.requestEmitHelper(CL),t.createCallExpression(s("__asyncDelegator"),void 0,[xe])}function z(xe){return e.requestEmitHelper(EL),t.createCallExpression(s("__asyncValues"),void 0,[xe])}function ce(xe,ze,st,zt){e.requestEmitHelper(PL);const yt=[];let $e=0;for(let kt=0;kt{let i="";for(let s=0;se.name))}function hw(e,t){return ma(e)&&Je(e.expression)&&(Ya(e.expression)&8192)!==0&&e.expression.escapedText===t}var yH,yL,vL,bL,SL,xL,TL,jk,kL,CL,EL,PL,wL,DL,AL,NL,IL,OL,FL,LL,ML,N4,RL,JN,jL,BL,JL,zL,UL,VL,WL,Zxe,zN,UN,RUe=K({"src/compiler/factory/emitHelpers.ts"(){ua(),yH=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(yH||{}),yL={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:` + var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + };`},vL={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:` + var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); + };`},bL={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:` + var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } + };`},SL={name:"typescript:esDecorate",importName:"__esDecorate",scoped:!1,priority:2,text:` + var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { + function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } + var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; + var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; + var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); + var _, done = false; + for (var i = decorators.length - 1; i >= 0; i--) { + var context = {}; + for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; + for (var p in contextIn.access) context.access[p] = contextIn.access[p]; + context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; + var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); + if (kind === "accessor") { + if (result === void 0) continue; + if (result === null || typeof result !== "object") throw new TypeError("Object expected"); + if (_ = accept(result.get)) descriptor.get = _; + if (_ = accept(result.set)) descriptor.set = _; + if (_ = accept(result.init)) initializers.unshift(_); + } + else if (_ = accept(result)) { + if (kind === "field") initializers.unshift(_); + else descriptor[key] = _; + } + } + if (target) Object.defineProperty(target, contextIn.name, descriptor); + done = true; + };`},xL={name:"typescript:runInitializers",importName:"__runInitializers",scoped:!1,priority:2,text:` + var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) { + var useValue = arguments.length > 2; + for (var i = 0; i < initializers.length; i++) { + value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); + } + return useValue ? value : void 0; + };`},TL={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:` + var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); + };`},jk={name:"typescript:await",importName:"__await",scoped:!1,text:` + var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }`},kL={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[jk],text:` + var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; + function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } + function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } + };`},CL={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[jk],text:` + var __asyncDelegator = (this && this.__asyncDelegator) || function (o) { + var i, p; + return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; + function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; } + };`},EL={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:` + var __asyncValues = (this && this.__asyncValues) || function (o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); + function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } + function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } + };`},PL={name:"typescript:rest",importName:"__rest",scoped:!1,text:` + var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; + };`},wL={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:` + var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + };`},DL={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:` + var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + })();`},AL={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:` + var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { + if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } + return cooked; + };`},NL={name:"typescript:read",importName:"__read",scoped:!1,text:` + var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; + };`},IL={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:` + var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); + };`},OL={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:` + var __propKey = (this && this.__propKey) || function (x) { + return typeof x === "symbol" ? x : "".concat(x); + };`},FL={name:"typescript:setFunctionName",importName:"__setFunctionName",scoped:!1,text:` + var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) { + if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : ""; + return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name }); + };`},LL={name:"typescript:values",importName:"__values",scoped:!1,text:` + var __values = (this && this.__values) || function(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) return m.call(o); + if (o && typeof o.length === "number") return { + next: function () { + if (o && i >= o.length) o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); + };`},ML={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:` + var __generator = (this && this.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (g && (g = 0, op[0] && (_ = 0)), _) try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } + };`},N4={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:` + var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); + }) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; + }));`},RL={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:` + var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + }) : function(o, v) { + o["default"] = v; + });`},JN={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[N4,RL],priority:2,text:` + var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; + };`},jL={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:` + var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; + };`},BL={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[N4],priority:2,text:` + var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); + };`},JL={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:` + var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); + return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); + };`},zL={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:` + var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { + if (kind === "m") throw new TypeError("Private method is not writable"); + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); + return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; + };`},UL={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:` + var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) { + if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object"); + return typeof state === "function" ? receiver === state : state.has(receiver); + };`},VL={name:"typescript:addDisposableResource",importName:"__addDisposableResource",scoped:!1,text:` + var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) { + if (value !== null && value !== void 0) { + if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected."); + var dispose; + if (async) { + if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined."); + dispose = value[Symbol.asyncDispose]; + } + if (dispose === void 0) { + if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined."); + dispose = value[Symbol.dispose]; + } + if (typeof dispose !== "function") throw new TypeError("Object not disposable."); + env.stack.push({ value: value, dispose: dispose, async: async }); + } + else if (async) { + env.stack.push({ async: true }); + } + return value; + };`},WL={name:"typescript:disposeResources",importName:"__disposeResources",scoped:!1,text:` + var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) { + return function (env) { + function fail(e) { + env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e; + env.hasError = true; + } + function next() { + while (env.stack.length) { + var rec = env.stack.pop(); + try { + var result = rec.dispose && rec.dispose.call(rec.value); + if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); }); + } + catch (e) { + fail(e); + } + } + if (env.hasError) throw env.error; + } + return next(); + }; + })(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { + var e = new Error(message); + return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; + });`},zN={name:"typescript:async-super",scoped:!0,text:gH` + const ${"_superIndex"} = name => super[name];`},UN={name:"typescript:advanced-async-super",scoped:!0,text:gH` + const ${"_superIndex"} = (function (geti, seti) { + const cache = Object.create(null); + return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } }); + })(name => super[name], (name, value) => super[name] = value);`}}});function Hf(e){return e.kind===9}function qL(e){return e.kind===10}function Ba(e){return e.kind===11}function Bk(e){return e.kind===12}function vH(e){return e.kind===14}function Jk(e){return e.kind===15}function zk(e){return e.kind===16}function bH(e){return e.kind===17}function HL(e){return e.kind===18}function GL(e){return e.kind===26}function xoe(e){return e.kind===28}function SH(e){return e.kind===40}function xH(e){return e.kind===41}function VN(e){return e.kind===42}function WN(e){return e.kind===54}function D1(e){return e.kind===58}function Toe(e){return e.kind===59}function $L(e){return e.kind===29}function koe(e){return e.kind===39}function Je(e){return e.kind===80}function Qi(e){return e.kind===81}function Uk(e){return e.kind===95}function XL(e){return e.kind===90}function yw(e){return e.kind===134}function Coe(e){return e.kind===131}function TH(e){return e.kind===135}function Eoe(e){return e.kind===148}function Vk(e){return e.kind===126}function Poe(e){return e.kind===128}function woe(e){return e.kind===164}function Doe(e){return e.kind===129}function vw(e){return e.kind===108}function bw(e){return e.kind===102}function Aoe(e){return e.kind===84}function Z_(e){return e.kind===166}function co(e){return e.kind===167}function Ic(e){return e.kind===168}function ws(e){return e.kind===169}function Vu(e){return e.kind===170}function Gf(e){return e.kind===171}function Zs(e){return e.kind===172}function Xg(e){return e.kind===173}function ul(e){return e.kind===174}function Vc(e){return e.kind===175}function $c(e){return e.kind===176}function Op(e){return e.kind===177}function $f(e){return e.kind===178}function Wk(e){return e.kind===179}function qN(e){return e.kind===180}function Ib(e){return e.kind===181}function HN(e){return e.kind===182}function id(e){return e.kind===183}function Qg(e){return e.kind===184}function I4(e){return e.kind===185}function qk(e){return e.kind===186}function Xf(e){return e.kind===187}function GN(e){return e.kind===188}function Hk(e){return e.kind===189}function O4(e){return e.kind===202}function QL(e){return e.kind===190}function YL(e){return e.kind===191}function A1(e){return e.kind===192}function Gk(e){return e.kind===193}function $k(e){return e.kind===194}function vx(e){return e.kind===195}function bx(e){return e.kind===196}function $N(e){return e.kind===197}function Sx(e){return e.kind===198}function xx(e){return e.kind===199}function F4(e){return e.kind===200}function N1(e){return e.kind===201}function zh(e){return e.kind===205}function kH(e){return e.kind===204}function Noe(e){return e.kind===203}function Md(e){return e.kind===206}function Ob(e){return e.kind===207}function oo(e){return e.kind===208}function B_(e){return e.kind===209}function Va(e){return e.kind===210}function Jr(e){return e.kind===211}function uc(e){return e.kind===212}function ma(e){return e.kind===213}function Fb(e){return e.kind===214}function Lb(e){return e.kind===215}function Ioe(e){return e.kind===216}function df(e){return e.kind===217}function Xo(e){return e.kind===218}function ec(e){return e.kind===219}function Ooe(e){return e.kind===220}function L4(e){return e.kind===221}function Xk(e){return e.kind===222}function I1(e){return e.kind===223}function O1(e){return e.kind===224}function CH(e){return e.kind===225}function mr(e){return e.kind===226}function M4(e){return e.kind===227}function ZL(e){return e.kind===228}function KL(e){return e.kind===229}function Pm(e){return e.kind===230}function Su(e){return e.kind===231}function uu(e){return e.kind===232}function Cy(e){return e.kind===233}function XN(e){return e.kind===234}function EH(e){return e.kind===238}function Qk(e){return e.kind===235}function Sw(e){return e.kind===236}function Kxe(e){return e.kind===237}function eM(e){return e.kind===360}function xw(e){return e.kind===361}function Tw(e){return e.kind===239}function Foe(e){return e.kind===240}function na(e){return e.kind===241}function Xc(e){return e.kind===243}function PH(e){return e.kind===242}function xu(e){return e.kind===244}function Tx(e){return e.kind===245}function eTe(e){return e.kind===246}function tTe(e){return e.kind===247}function kx(e){return e.kind===248}function tM(e){return e.kind===249}function QN(e){return e.kind===250}function nTe(e){return e.kind===251}function rTe(e){return e.kind===252}function rm(e){return e.kind===253}function Loe(e){return e.kind===254}function kw(e){return e.kind===255}function Mb(e){return e.kind===256}function wH(e){return e.kind===257}function Cx(e){return e.kind===258}function iTe(e){return e.kind===259}function Ji(e){return e.kind===260}function _u(e){return e.kind===261}function Wl(e){return e.kind===262}function ql(e){return e.kind===263}function J_(e){return e.kind===264}function im(e){return e.kind===265}function a2(e){return e.kind===266}function dl(e){return e.kind===267}function lg(e){return e.kind===268}function Cw(e){return e.kind===269}function YN(e){return e.kind===270}function Tu(e){return e.kind===271}function eu(e){return e.kind===272}function Yg(e){return e.kind===273}function sTe(e){return e.kind===302}function Moe(e){return e.kind===300}function aTe(e){return e.kind===301}function Yk(e){return e.kind===300}function Roe(e){return e.kind===301}function F1(e){return e.kind===274}function Zg(e){return e.kind===280}function x0(e){return e.kind===275}function Df(e){return e.kind===276}function Qc(e){return e.kind===277}function ml(e){return e.kind===278}function sd(e){return e.kind===279}function h_(e){return e.kind===281}function oTe(e){return e.kind===282}function DH(e){return e.kind===359}function Zk(e){return e.kind===362}function Kg(e){return e.kind===283}function Uh(e){return e.kind===284}function Ex(e){return e.kind===285}function ug(e){return e.kind===286}function Rb(e){return e.kind===287}function jb(e){return e.kind===288}function Kk(e){return e.kind===289}function joe(e){return e.kind===290}function _g(e){return e.kind===291}function Bb(e){return e.kind===292}function eC(e){return e.kind===293}function Ew(e){return e.kind===294}function wm(e){return e.kind===295}function R4(e){return e.kind===296}function Pw(e){return e.kind===297}function Fp(e){return e.kind===298}function Jb(e){return e.kind===299}function Ml(e){return e.kind===303}function Af(e){return e.kind===304}function Ey(e){return e.kind===305}function zb(e){return e.kind===306}function Boe(e){return e.kind===308}function es(e){return e.kind===312}function AH(e){return e.kind===313}function Px(e){return e.kind===314}function Ub(e){return e.kind===316}function ww(e){return e.kind===317}function o2(e){return e.kind===318}function Joe(e){return e.kind===331}function zoe(e){return e.kind===332}function cTe(e){return e.kind===333}function Uoe(e){return e.kind===319}function Voe(e){return e.kind===320}function j4(e){return e.kind===321}function nM(e){return e.kind===322}function NH(e){return e.kind===323}function B4(e){return e.kind===324}function rM(e){return e.kind===325}function lTe(e){return e.kind===326}function Dm(e){return e.kind===327}function wx(e){return e.kind===329}function c2(e){return e.kind===330}function tC(e){return e.kind===335}function uTe(e){return e.kind===337}function Woe(e){return e.kind===339}function IH(e){return e.kind===345}function OH(e){return e.kind===340}function FH(e){return e.kind===341}function LH(e){return e.kind===342}function MH(e){return e.kind===343}function iM(e){return e.kind===344}function J4(e){return e.kind===346}function RH(e){return e.kind===338}function _Te(e){return e.kind===354}function ZN(e){return e.kind===347}function Am(e){return e.kind===348}function sM(e){return e.kind===349}function jH(e){return e.kind===350}function Dw(e){return e.kind===351}function Rd(e){return e.kind===352}function Dx(e){return e.kind===353}function fTe(e){return e.kind===334}function qoe(e){return e.kind===355}function aM(e){return e.kind===336}function oM(e){return e.kind===357}function pTe(e){return e.kind===356}function z4(e){return e.kind===358}var jUe=K({"src/compiler/factory/nodeTests.ts"(){ua()}});function KN(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function Ax(e,t,r,i){if(co(r))return ut(e.createElementAccessExpression(t,r.expression),i);{const s=ut(Dh(r)?e.createPropertyAccessExpression(t,r):e.createElementAccessExpression(t,r),r);return og(s,128),s}}function Hoe(e,t){const r=eh.createIdentifier(e||"React");return eo(r,Is(t)),r}function Goe(e,t,r){if(Z_(t)){const i=Goe(e,t.left,r),s=e.createIdentifier(kr(t.right));return s.escapedText=t.right.escapedText,e.createPropertyAccessExpression(i,s)}else return Hoe(kr(t),r)}function BH(e,t,r,i){return t?Goe(e,t,i):e.createPropertyAccessExpression(Hoe(r,i),"createElement")}function BUe(e,t,r,i){return t?Goe(e,t,i):e.createPropertyAccessExpression(Hoe(r,i),"Fragment")}function $oe(e,t,r,i,s,o){const c=[r];if(i&&c.push(i),s&&s.length>0)if(i||c.push(e.createNull()),s.length>1)for(const u of s)y_(u),c.push(u);else c.push(s[0]);return ut(e.createCallExpression(t,void 0,c),o)}function Xoe(e,t,r,i,s,o,c){const f=[BUe(e,r,i,o),e.createNull()];if(s&&s.length>0)if(s.length>1)for(const g of s)y_(g),f.push(g);else f.push(s[0]);return ut(e.createCallExpression(BH(e,t,i,o),void 0,f),c)}function JH(e,t,r){if(_u(t)){const i=Ka(t.declarations),s=e.updateVariableDeclaration(i,i.name,void 0,void 0,r);return ut(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[s])),t)}else{const i=ut(e.createAssignment(t,r),t);return ut(e.createExpressionStatement(i),t)}}function dTe(e,t,r){return na(t)?e.updateBlock(t,ut(e.createNodeArray([r,...t.statements]),t.statements)):e.createBlock(e.createNodeArray([t,r]),!0)}function e7(e,t){if(Z_(t)){const r=e7(e,t.left),i=eo(ut(e.cloneNode(t.right),t.right),t.right.parent);return ut(e.createPropertyAccessExpression(r,i),t)}else return eo(ut(e.cloneNode(t),t),t.parent)}function zH(e,t){return Je(t)?e.createStringLiteralFromNode(t):co(t)?eo(ut(e.cloneNode(t.expression),t.expression),t.expression.parent):eo(ut(e.cloneNode(t),t),t.parent)}function JUe(e,t,r,i,s){const{firstAccessor:o,getAccessor:c,setAccessor:u}=dx(t,r);if(r===o)return ut(e.createObjectDefinePropertyCall(i,zH(e,r.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:c&&ut(Ir(e.createFunctionExpression(lb(c),void 0,void 0,void 0,c.parameters,void 0,c.body),c),c),set:u&&ut(Ir(e.createFunctionExpression(lb(u),void 0,void 0,void 0,u.parameters,void 0,u.body),u),u)},!s)),o)}function zUe(e,t,r){return Ir(ut(e.createAssignment(Ax(e,r,t.name,t.name),t.initializer),t),t)}function UUe(e,t,r){return Ir(ut(e.createAssignment(Ax(e,r,t.name,t.name),e.cloneNode(t.name)),t),t)}function VUe(e,t,r){return Ir(ut(e.createAssignment(Ax(e,r,t.name,t.name),Ir(ut(e.createFunctionExpression(lb(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}function Qoe(e,t,r,i){switch(r.name&&Qi(r.name)&&w.failBadSyntaxKind(r.name,"Private identifiers are not allowed in object literals."),r.kind){case 177:case 178:return JUe(e,t.properties,r,i,!!t.multiLine);case 303:return zUe(e,r,i);case 304:return UUe(e,r,i);case 174:return VUe(e,r,i)}}function cM(e,t,r,i,s){const o=t.operator;w.assert(o===46||o===47,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");const c=e.createTempVariable(i);r=e.createAssignment(c,r),ut(r,t.operand);let u=O1(t)?e.createPrefixUnaryExpression(o,c):e.createPostfixUnaryExpression(c,o);return ut(u,t),s&&(u=e.createAssignment(s,u),ut(u,t)),r=e.createComma(r,u),ut(r,t),CH(t)&&(r=e.createComma(r,c),ut(r,t)),r}function UH(e){return(Ya(e)&65536)!==0}function T0(e){return(Ya(e)&32768)!==0}function lM(e){return(Ya(e)&16384)!==0}function mTe(e){return Ba(e.expression)&&e.expression.text==="use strict"}function VH(e){for(const t of e)if(em(t)){if(mTe(t))return t}else break}function Yoe(e){const t=hu(e);return t!==void 0&&em(t)&&mTe(t)}function t7(e){return e.kind===226&&e.operatorToken.kind===28}function Aw(e){return t7(e)||xw(e)}function U4(e){return df(e)&&lr(e)&&!!qv(e)}function uM(e){const t=Hv(e);return w.assertIsDefined(t),t}function _M(e,t=15){switch(e.kind){case 217:return t&16&&U4(e)?!1:(t&1)!==0;case 216:case 234:case 233:case 238:return(t&2)!==0;case 235:return(t&4)!==0;case 360:return(t&8)!==0}return!1}function gl(e,t=15){for(;_M(e,t);)e=e.expression;return e}function Zoe(e,t=15){let r=e.parent;for(;_M(r,t);)r=r.parent,w.assert(r);return r}function gTe(e){return gl(e,6)}function y_(e){return mL(e,!0)}function n7(e){const t=Gc(e,es),r=t&&t.emitNode;return r&&r.externalHelpersModuleName}function Koe(e){const t=Gc(e,es),r=t&&t.emitNode;return!!r&&(!!r.externalHelpersModuleName||!!r.externalHelpers)}function WH(e,t,r,i,s,o,c){if(i.importHelpers&&yk(r,i)){let u;const f=r_(i);if(f>=5&&f<=99||r.impliedNodeFormat===99){const g=hL(r);if(g){const d=[];for(const y of g)if(!y.scoped){const x=y.importName;x&&Jf(d,x)}if(Pe(d)){d.sort(p_),u=e.createNamedImports(Kt(d,T=>RF(r,T)?e.createImportSpecifier(!1,void 0,e.createIdentifier(T)):e.createImportSpecifier(!1,e.createIdentifier(T),t.getUnscopedHelperName(T))));const y=Gc(r,es),x=i_(y);x.externalHelpers=!0}}}else{const g=ece(e,r,i,s,o||c);g&&(u=e.createNamespaceImport(g))}if(u){const g=e.createImportDeclaration(void 0,e.createImportClause(!1,void 0,u),e.createStringLiteral(E1),void 0);return Lk(g,2),g}}}function ece(e,t,r,i,s){if(r.importHelpers&&yk(t,r)){const o=n7(t);if(o)return o;const c=r_(r);let u=(i||$g(r)&&s)&&c!==4&&(c<5||t.impliedNodeFormat===1);if(!u){const f=hL(t);if(f){for(const g of f)if(!g.scoped){u=!0;break}}}if(u){const f=Gc(t,es),g=i_(f);return g.externalHelpersModuleName||(g.externalHelpersModuleName=e.createUniqueName(E1))}}}function V4(e,t,r){const i=o4(t);if(i&&!bk(t)&&!BF(t)){const s=i.name;return vc(s)?s:e.createIdentifier(pb(r,s)||kr(s))}if(t.kind===272&&t.importClause||t.kind===278&&t.moduleSpecifier)return e.getGeneratedNameForNode(t)}function nC(e,t,r,i,s,o){const c=a4(t);if(c&&Ba(c))return qUe(t,i,e,s,o)||WUe(e,c,r)||e.cloneNode(c)}function WUe(e,t,r){const i=r.renamedDependencies&&r.renamedDependencies.get(t.text);return i?e.createStringLiteral(i):void 0}function r7(e,t,r,i){if(t){if(t.moduleName)return e.createStringLiteral(t.moduleName);if(!t.isDeclarationFile&&Vo(i))return e.createStringLiteral(oq(r,t.fileName))}}function qUe(e,t,r,i,s){return r7(r,i.getExternalModuleFileFromDeclaration(e),t,s)}function i7(e){if(mA(e))return e.initializer;if(Ml(e)){const t=e.initializer;return Kl(t,!0)?t.right:void 0}if(Af(e))return e.objectAssignmentInitializer;if(Kl(e,!0))return e.right;if(Pm(e))return i7(e.expression)}function L1(e){if(mA(e))return e.name;if(d0(e)){switch(e.kind){case 303:return L1(e.initializer);case 304:return e.name;case 305:return L1(e.expression)}return}return Kl(e,!0)?L1(e.left):Pm(e)?L1(e.expression):e}function fM(e){switch(e.kind){case 169:case 208:return e.dotDotDotToken;case 230:case 305:return e}}function qH(e){const t=pM(e);return w.assert(!!t||Ey(e),"Invalid property name for binding element."),t}function pM(e){switch(e.kind){case 208:if(e.propertyName){const r=e.propertyName;return Qi(r)?w.failBadSyntaxKind(r):co(r)&&hTe(r.expression)?r.expression:r}break;case 303:if(e.name){const r=e.name;return Qi(r)?w.failBadSyntaxKind(r):co(r)&&hTe(r.expression)?r.expression:r}break;case 305:return e.name&&Qi(e.name)?w.failBadSyntaxKind(e.name):e.name}const t=L1(e);if(t&&Tl(t))return t}function hTe(e){const t=e.kind;return t===11||t===9}function W4(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function HH(e){if(e){let t=e;for(;;){if(Je(t)||!t.body)return Je(t)?t:t.name;t=t.body}}}function yTe(e){const t=e.kind;return t===176||t===178}function tce(e){const t=e.kind;return t===176||t===177||t===178}function GH(e){const t=e.kind;return t===303||t===304||t===262||t===176||t===181||t===175||t===282||t===243||t===264||t===265||t===266||t===267||t===271||t===272||t===270||t===278||t===277}function nce(e){const t=e.kind;return t===175||t===303||t===304||t===282||t===270}function rce(e){return D1(e)||WN(e)}function ice(e){return Je(e)||$N(e)}function sce(e){return Eoe(e)||SH(e)||xH(e)}function ace(e){return D1(e)||SH(e)||xH(e)}function oce(e){return Je(e)||Ba(e)}function vTe(e){const t=e.kind;return t===106||t===112||t===97||_b(e)||O1(e)}function HUe(e){return e===43}function GUe(e){return e===42||e===44||e===45}function $Ue(e){return HUe(e)||GUe(e)}function XUe(e){return e===40||e===41}function QUe(e){return XUe(e)||$Ue(e)}function YUe(e){return e===48||e===49||e===50}function $H(e){return YUe(e)||QUe(e)}function ZUe(e){return e===30||e===33||e===32||e===34||e===104||e===103}function KUe(e){return ZUe(e)||$H(e)}function eVe(e){return e===35||e===37||e===36||e===38}function tVe(e){return eVe(e)||KUe(e)}function nVe(e){return e===51||e===52||e===53}function rVe(e){return nVe(e)||tVe(e)}function iVe(e){return e===56||e===57}function sVe(e){return iVe(e)||rVe(e)}function aVe(e){return e===61||sVe(e)||vy(e)}function oVe(e){return aVe(e)||e===28}function cce(e){return oVe(e.kind)}function dM(e,t,r,i,s,o){const c=new xTe(e,t,r,i,s,o);return u;function u(f,g){const d={value:void 0},y=[QH.enter],x=[f],T=[void 0];let C=0;for(;y[C]!==QH.done;)C=y[C](c,C,y,x,T,d,g);return w.assertEqual(C,0),d.value}}function bTe(e){return e===95||e===90}function s7(e){const t=e.kind;return bTe(t)}function STe(e){const t=e.kind;return dy(t)&&!bTe(t)}function lce(e,t){if(t!==void 0)return t.length===0?t:ut(e.createNodeArray([],t.hasTrailingComma),t)}function a7(e){var t;const r=e.emitNode.autoGenerate;if(r.flags&4){const i=r.id;let s=e,o=s.original;for(;o;){s=o;const c=(t=s.emitNode)==null?void 0:t.autoGenerate;if(Dh(s)&&(c===void 0||c.flags&4&&c.id!==i))break;o=s.original}return s}return e}function q4(e,t){return typeof e=="object"?l2(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function cVe(e,t){return typeof e=="string"?e:lVe(e,w.checkDefined(t))}function lVe(e,t){return QS(e)?t(e).slice(1):vc(e)?t(e):Qi(e)?e.escapedText.slice(1):kr(e)}function l2(e,t,r,i,s){return t=q4(t,s),i=q4(i,s),r=cVe(r,s),`${e?"#":""}${t}${r}${i}`}function XH(e,t,r,i){return e.updatePropertyDeclaration(t,r,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,i)}function uce(e,t,r,i,s=e.createThis()){return e.createGetAccessorDeclaration(r,i,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(s,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))}function _ce(e,t,r,i,s=e.createThis()){return e.createSetAccessorDeclaration(r,i,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(s,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function mM(e){let t=e.expression;for(;;){if(t=gl(t),xw(t)){t=so(t.elements);continue}if(t7(t)){t=t.right;continue}if(Kl(t,!0)&&vc(t.left))return t;break}}function uVe(e){return df(e)&&lc(e)&&!e.emitNode}function gM(e,t){if(uVe(e))gM(e.expression,t);else if(t7(e))gM(e.left,t),gM(e.right,t);else if(xw(e))for(const r of e.elements)gM(r,t);else t.push(e)}function fce(e){const t=[];return gM(e,t),t}function o7(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(const t of W4(e)){const r=L1(t);if(r&&bP(r)&&(r.transformFlags&65536||r.transformFlags&128&&o7(r)))return!0}return!1}var QH,xTe,_Ve=K({"src/compiler/factory/utilities.ts"(){ua(),(e=>{function t(d,y,x,T,C,N,D){const M=y>0?C[y-1]:void 0;return w.assertEqual(x[y],t),C[y]=d.onEnter(T[y],M,D),x[y]=u(d,t),y}e.enter=t;function r(d,y,x,T,C,N,D){w.assertEqual(x[y],r),w.assertIsDefined(d.onLeft),x[y]=u(d,r);const M=d.onLeft(T[y].left,C[y],T[y]);return M?(g(y,T,M),f(y,x,T,C,M)):y}e.left=r;function i(d,y,x,T,C,N,D){return w.assertEqual(x[y],i),w.assertIsDefined(d.onOperator),x[y]=u(d,i),d.onOperator(T[y].operatorToken,C[y],T[y]),y}e.operator=i;function s(d,y,x,T,C,N,D){w.assertEqual(x[y],s),w.assertIsDefined(d.onRight),x[y]=u(d,s);const M=d.onRight(T[y].right,C[y],T[y]);return M?(g(y,T,M),f(y,x,T,C,M)):y}e.right=s;function o(d,y,x,T,C,N,D){w.assertEqual(x[y],o),x[y]=u(d,o);const M=d.onExit(T[y],C[y]);if(y>0){if(y--,d.foldState){const V=x[y]===o?"right":"left";C[y]=d.foldState(C[y],M,V)}}else N.value=M;return y}e.exit=o;function c(d,y,x,T,C,N,D){return w.assertEqual(x[y],c),y}e.done=c;function u(d,y){switch(y){case t:if(d.onLeft)return r;case r:if(d.onOperator)return i;case i:if(d.onRight)return s;case s:return o;case o:return c;case c:return c;default:w.fail("Invalid state")}}e.nextState=u;function f(d,y,x,T,C){return d++,y[d]=t,x[d]=C,T[d]=void 0,d}function g(d,y,x){if(w.shouldAssert(2))for(;d>=0;)w.assert(y[d]!==x,"Circular traversal detected."),d--}})(QH||(QH={})),xTe=class{constructor(e,t,r,i,s,o){this.onEnter=e,this.onLeft=t,this.onOperator=r,this.onRight=i,this.onExit=s,this.foldState=o}}}});function ut(e,t){return t?Gg(e,t.pos,t.end):e}function sm(e){const t=e.kind;return t===168||t===169||t===171||t===172||t===173||t===174||t===176||t===177||t===178||t===181||t===185||t===218||t===219||t===231||t===243||t===262||t===263||t===264||t===265||t===266||t===267||t===271||t===272||t===277||t===278}function Nx(e){const t=e.kind;return t===169||t===172||t===174||t===177||t===178||t===231||t===263}var fVe=K({"src/compiler/factory/utilitiesPublic.ts"(){ua()}});function Qt(e,t){return t&&e(t)}function qi(e,t,r){if(r){if(t)return t(r);for(const i of r){const s=e(i);if(s)return s}}}function YH(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function c7(e){return dt(e.statements,pVe)||dVe(e)}function pVe(e){return sm(e)&&mVe(e,95)||Tu(e)&&Kg(e.moduleReference)||eu(e)||Qc(e)||ml(e)?e:void 0}function dVe(e){return e.flags&8388608?TTe(e):void 0}function TTe(e){return gVe(e)?e:Xs(e,TTe)}function mVe(e,t){return Pe(e.modifiers,r=>r.kind===t)}function gVe(e){return Sw(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function kTe(e,t,r){return qi(t,r,e.typeParameters)||qi(t,r,e.parameters)||Qt(t,e.type)}function CTe(e,t,r){return qi(t,r,e.types)}function ETe(e,t,r){return Qt(t,e.type)}function PTe(e,t,r){return qi(t,r,e.elements)}function wTe(e,t,r){return Qt(t,e.expression)||Qt(t,e.questionDotToken)||qi(t,r,e.typeArguments)||qi(t,r,e.arguments)}function DTe(e,t,r){return qi(t,r,e.statements)}function ATe(e,t,r){return Qt(t,e.label)}function NTe(e,t,r){return qi(t,r,e.modifiers)||Qt(t,e.name)||qi(t,r,e.typeParameters)||qi(t,r,e.heritageClauses)||qi(t,r,e.members)}function ITe(e,t,r){return qi(t,r,e.elements)}function OTe(e,t,r){return Qt(t,e.propertyName)||Qt(t,e.name)}function FTe(e,t,r){return Qt(t,e.tagName)||qi(t,r,e.typeArguments)||Qt(t,e.attributes)}function Nw(e,t,r){return Qt(t,e.type)}function LTe(e,t,r){return Qt(t,e.tagName)||(e.isNameFirst?Qt(t,e.name)||Qt(t,e.typeExpression):Qt(t,e.typeExpression)||Qt(t,e.name))||(typeof e.comment=="string"?void 0:qi(t,r,e.comment))}function Iw(e,t,r){return Qt(t,e.tagName)||Qt(t,e.typeExpression)||(typeof e.comment=="string"?void 0:qi(t,r,e.comment))}function pce(e,t,r){return Qt(t,e.name)}function H4(e,t,r){return Qt(t,e.tagName)||(typeof e.comment=="string"?void 0:qi(t,r,e.comment))}function hVe(e,t,r){return Qt(t,e.expression)}function Xs(e,t,r){if(e===void 0||e.kind<=165)return;const i=qTe[e.kind];return i===void 0?void 0:i(e,t,r)}function Ow(e,t,r){const i=MTe(e),s=[];for(;s.length=0;--u)i.push(o[u]),s.push(c)}else{const u=t(o,c);if(u){if(u==="skip")continue;return u}if(o.kind>=166)for(const f of MTe(o))i.push(f),s.push(o)}}}function MTe(e){const t=[];return Xs(e,r,r),t;function r(i){t.unshift(i)}}function RTe(e){e.externalModuleIndicator=c7(e)}function l7(e,t,r,i=!1,s){var o,c,u,f;(o=cr)==null||o.push(cr.Phase.Parse,"createSourceFile",{path:e},!0),gc("beforeParse");let g;(c=A_)==null||c.logStartParseSourceFile(e);const{languageVersion:d,setExternalModuleIndicator:y,impliedNodeFormat:x,jsDocParsingMode:T}=typeof r=="object"?r:{languageVersion:r};if(d===100)g=_2.parseSourceFile(e,t,d,void 0,i,6,ao,T);else{const C=x===void 0?y:N=>(N.impliedNodeFormat=x,(y||RTe)(N));g=_2.parseSourceFile(e,t,d,void 0,i,s,C,T)}return(u=A_)==null||u.logStopParseSourceFile(),gc("afterParse"),Ap("Parse","beforeParse","afterParse"),(f=cr)==null||f.pop(),g}function rC(e,t){return _2.parseIsolatedEntityName(e,t)}function u7(e,t){return _2.parseJsonText(e,t)}function Cl(e){return e.externalModuleIndicator!==void 0}function ZH(e,t,r,i=!1){const s=rG.updateSourceFile(e,t,r,i);return s.flags|=e.flags&12582912,s}function dce(e,t,r){const i=_2.JSDocParser.parseIsolatedJSDocComment(e,t,r);return i&&i.jsDoc&&_2.fixupParentReferences(i.jsDoc),i}function jTe(e,t,r){return _2.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)}function Wu(e){return KH(e)!==void 0}function KH(e){const t=F6(e,AN,!1);if(t)return t;if(zc(e,".ts")){const r=xl(e).lastIndexOf(".d.");if(r>=0)return e.substring(r)}}function yVe(e,t,r,i){if(e){if(e==="import")return 99;if(e==="require")return 1;i(t,r-t,p.resolution_mode_should_be_either_require_or_import)}}function eG(e,t){const r=[];for(const i of Ph(t,0)||Ke){const s=t.substring(i.pos,i.end);bVe(r,i,s)}e.pragmas=new Map;for(const i of r){if(e.pragmas.has(i.name)){const s=e.pragmas.get(i.name);s instanceof Array?s.push(i.args):e.pragmas.set(i.name,[s,i.args]);continue}e.pragmas.set(i.name,i.args)}}function tG(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((r,i)=>{switch(i){case"reference":{const s=e.referencedFiles,o=e.typeReferenceDirectives,c=e.libReferenceDirectives;dt(sk(r),u=>{const{types:f,lib:g,path:d,["resolution-mode"]:y}=u.arguments;if(u.arguments["no-default-lib"])e.hasNoDefaultLib=!0;else if(f){const x=yVe(y,f.pos,f.end,t);o.push({pos:f.pos,end:f.end,fileName:f.value,...x?{resolutionMode:x}:{}})}else g?c.push({pos:g.pos,end:g.end,fileName:g.value}):d?s.push({pos:d.pos,end:d.end,fileName:d.value}):t(u.range.pos,u.range.end-u.range.pos,p.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=Kt(sk(r),s=>({name:s.arguments.name,path:s.arguments.path}));break}case"amd-module":{if(r instanceof Array)for(const s of r)e.moduleName&&t(s.range.pos,s.range.end-s.range.pos,p.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=s.arguments.name;else e.moduleName=r.arguments.name;break}case"ts-nocheck":case"ts-check":{dt(sk(r),s=>{(!e.checkJsDirective||s.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:i==="ts-check",end:s.range.end,pos:s.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:w.fail("Unhandled pragma kind")}})}function vVe(e){if(iG.has(e))return iG.get(e);const t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return iG.set(e,t),t}function bVe(e,t,r){const i=t.kind===2&&HTe.exec(r);if(i){const o=i[1].toLowerCase(),c=W8[o];if(!c||!(c.kind&1))return;if(c.args){const u={};for(const f of c.args){const d=vVe(f.name).exec(r);if(!d&&!f.optional)return;if(d){const y=d[2]||d[3];if(f.captureSpan){const x=t.pos+d.index+d[1].length+1;u[f.name]={value:y,pos:x,end:x+y.length}}else u[f.name]=y}}e.push({name:o,args:{arguments:u,range:t}})}else e.push({name:o,args:{arguments:{},range:t}});return}const s=t.kind===2&>e.exec(r);if(s)return BTe(e,t,2,s);if(t.kind===3){const o=/@(\S+)(\s+.*)?$/gim;let c;for(;c=o.exec(r);)BTe(e,t,4,c)}}function BTe(e,t,r,i){if(!i)return;const s=i[1].toLowerCase(),o=W8[s];if(!o||!(o.kind&r))return;const c=i[2],u=SVe(o,c);u!=="fail"&&e.push({name:s,args:{arguments:u,range:t}})}function SVe(e,t){if(!t)return{};if(!e.args)return{};const r=t.trim().split(/\s+/),i={};for(let s=0;snew(WTe||(WTe=Au.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(UTe||(UTe=Au.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(VTe||(VTe=Au.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(zTe||(zTe=Au.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(JTe||(JTe=Au.getNodeConstructor()))(e,-1,-1)},eh=ON(1,nG),qTe={166:function(t,r,i){return Qt(r,t.left)||Qt(r,t.right)},168:function(t,r,i){return qi(r,i,t.modifiers)||Qt(r,t.name)||Qt(r,t.constraint)||Qt(r,t.default)||Qt(r,t.expression)},304:function(t,r,i){return qi(r,i,t.modifiers)||Qt(r,t.name)||Qt(r,t.questionToken)||Qt(r,t.exclamationToken)||Qt(r,t.equalsToken)||Qt(r,t.objectAssignmentInitializer)},305:function(t,r,i){return Qt(r,t.expression)},169:function(t,r,i){return qi(r,i,t.modifiers)||Qt(r,t.dotDotDotToken)||Qt(r,t.name)||Qt(r,t.questionToken)||Qt(r,t.type)||Qt(r,t.initializer)},172:function(t,r,i){return qi(r,i,t.modifiers)||Qt(r,t.name)||Qt(r,t.questionToken)||Qt(r,t.exclamationToken)||Qt(r,t.type)||Qt(r,t.initializer)},171:function(t,r,i){return qi(r,i,t.modifiers)||Qt(r,t.name)||Qt(r,t.questionToken)||Qt(r,t.type)||Qt(r,t.initializer)},303:function(t,r,i){return qi(r,i,t.modifiers)||Qt(r,t.name)||Qt(r,t.questionToken)||Qt(r,t.exclamationToken)||Qt(r,t.initializer)},260:function(t,r,i){return Qt(r,t.name)||Qt(r,t.exclamationToken)||Qt(r,t.type)||Qt(r,t.initializer)},208:function(t,r,i){return Qt(r,t.dotDotDotToken)||Qt(r,t.propertyName)||Qt(r,t.name)||Qt(r,t.initializer)},181:function(t,r,i){return qi(r,i,t.modifiers)||qi(r,i,t.typeParameters)||qi(r,i,t.parameters)||Qt(r,t.type)},185:function(t,r,i){return qi(r,i,t.modifiers)||qi(r,i,t.typeParameters)||qi(r,i,t.parameters)||Qt(r,t.type)},184:function(t,r,i){return qi(r,i,t.modifiers)||qi(r,i,t.typeParameters)||qi(r,i,t.parameters)||Qt(r,t.type)},179:kTe,180:kTe,174:function(t,r,i){return qi(r,i,t.modifiers)||Qt(r,t.asteriskToken)||Qt(r,t.name)||Qt(r,t.questionToken)||Qt(r,t.exclamationToken)||qi(r,i,t.typeParameters)||qi(r,i,t.parameters)||Qt(r,t.type)||Qt(r,t.body)},173:function(t,r,i){return qi(r,i,t.modifiers)||Qt(r,t.name)||Qt(r,t.questionToken)||qi(r,i,t.typeParameters)||qi(r,i,t.parameters)||Qt(r,t.type)},176:function(t,r,i){return qi(r,i,t.modifiers)||Qt(r,t.name)||qi(r,i,t.typeParameters)||qi(r,i,t.parameters)||Qt(r,t.type)||Qt(r,t.body)},177:function(t,r,i){return qi(r,i,t.modifiers)||Qt(r,t.name)||qi(r,i,t.typeParameters)||qi(r,i,t.parameters)||Qt(r,t.type)||Qt(r,t.body)},178:function(t,r,i){return qi(r,i,t.modifiers)||Qt(r,t.name)||qi(r,i,t.typeParameters)||qi(r,i,t.parameters)||Qt(r,t.type)||Qt(r,t.body)},262:function(t,r,i){return qi(r,i,t.modifiers)||Qt(r,t.asteriskToken)||Qt(r,t.name)||qi(r,i,t.typeParameters)||qi(r,i,t.parameters)||Qt(r,t.type)||Qt(r,t.body)},218:function(t,r,i){return qi(r,i,t.modifiers)||Qt(r,t.asteriskToken)||Qt(r,t.name)||qi(r,i,t.typeParameters)||qi(r,i,t.parameters)||Qt(r,t.type)||Qt(r,t.body)},219:function(t,r,i){return qi(r,i,t.modifiers)||qi(r,i,t.typeParameters)||qi(r,i,t.parameters)||Qt(r,t.type)||Qt(r,t.equalsGreaterThanToken)||Qt(r,t.body)},175:function(t,r,i){return qi(r,i,t.modifiers)||Qt(r,t.body)},183:function(t,r,i){return Qt(r,t.typeName)||qi(r,i,t.typeArguments)},182:function(t,r,i){return Qt(r,t.assertsModifier)||Qt(r,t.parameterName)||Qt(r,t.type)},186:function(t,r,i){return Qt(r,t.exprName)||qi(r,i,t.typeArguments)},187:function(t,r,i){return qi(r,i,t.members)},188:function(t,r,i){return Qt(r,t.elementType)},189:function(t,r,i){return qi(r,i,t.elements)},192:CTe,193:CTe,194:function(t,r,i){return Qt(r,t.checkType)||Qt(r,t.extendsType)||Qt(r,t.trueType)||Qt(r,t.falseType)},195:function(t,r,i){return Qt(r,t.typeParameter)},205:function(t,r,i){return Qt(r,t.argument)||Qt(r,t.attributes)||Qt(r,t.qualifier)||qi(r,i,t.typeArguments)},302:function(t,r,i){return Qt(r,t.assertClause)},196:ETe,198:ETe,199:function(t,r,i){return Qt(r,t.objectType)||Qt(r,t.indexType)},200:function(t,r,i){return Qt(r,t.readonlyToken)||Qt(r,t.typeParameter)||Qt(r,t.nameType)||Qt(r,t.questionToken)||Qt(r,t.type)||qi(r,i,t.members)},201:function(t,r,i){return Qt(r,t.literal)},202:function(t,r,i){return Qt(r,t.dotDotDotToken)||Qt(r,t.name)||Qt(r,t.questionToken)||Qt(r,t.type)},206:PTe,207:PTe,209:function(t,r,i){return qi(r,i,t.elements)},210:function(t,r,i){return qi(r,i,t.properties)},211:function(t,r,i){return Qt(r,t.expression)||Qt(r,t.questionDotToken)||Qt(r,t.name)},212:function(t,r,i){return Qt(r,t.expression)||Qt(r,t.questionDotToken)||Qt(r,t.argumentExpression)},213:wTe,214:wTe,215:function(t,r,i){return Qt(r,t.tag)||Qt(r,t.questionDotToken)||qi(r,i,t.typeArguments)||Qt(r,t.template)},216:function(t,r,i){return Qt(r,t.type)||Qt(r,t.expression)},217:function(t,r,i){return Qt(r,t.expression)},220:function(t,r,i){return Qt(r,t.expression)},221:function(t,r,i){return Qt(r,t.expression)},222:function(t,r,i){return Qt(r,t.expression)},224:function(t,r,i){return Qt(r,t.operand)},229:function(t,r,i){return Qt(r,t.asteriskToken)||Qt(r,t.expression)},223:function(t,r,i){return Qt(r,t.expression)},225:function(t,r,i){return Qt(r,t.operand)},226:function(t,r,i){return Qt(r,t.left)||Qt(r,t.operatorToken)||Qt(r,t.right)},234:function(t,r,i){return Qt(r,t.expression)||Qt(r,t.type)},235:function(t,r,i){return Qt(r,t.expression)},238:function(t,r,i){return Qt(r,t.expression)||Qt(r,t.type)},236:function(t,r,i){return Qt(r,t.name)},227:function(t,r,i){return Qt(r,t.condition)||Qt(r,t.questionToken)||Qt(r,t.whenTrue)||Qt(r,t.colonToken)||Qt(r,t.whenFalse)},230:function(t,r,i){return Qt(r,t.expression)},241:DTe,268:DTe,312:function(t,r,i){return qi(r,i,t.statements)||Qt(r,t.endOfFileToken)},243:function(t,r,i){return qi(r,i,t.modifiers)||Qt(r,t.declarationList)},261:function(t,r,i){return qi(r,i,t.declarations)},244:function(t,r,i){return Qt(r,t.expression)},245:function(t,r,i){return Qt(r,t.expression)||Qt(r,t.thenStatement)||Qt(r,t.elseStatement)},246:function(t,r,i){return Qt(r,t.statement)||Qt(r,t.expression)},247:function(t,r,i){return Qt(r,t.expression)||Qt(r,t.statement)},248:function(t,r,i){return Qt(r,t.initializer)||Qt(r,t.condition)||Qt(r,t.incrementor)||Qt(r,t.statement)},249:function(t,r,i){return Qt(r,t.initializer)||Qt(r,t.expression)||Qt(r,t.statement)},250:function(t,r,i){return Qt(r,t.awaitModifier)||Qt(r,t.initializer)||Qt(r,t.expression)||Qt(r,t.statement)},251:ATe,252:ATe,253:function(t,r,i){return Qt(r,t.expression)},254:function(t,r,i){return Qt(r,t.expression)||Qt(r,t.statement)},255:function(t,r,i){return Qt(r,t.expression)||Qt(r,t.caseBlock)},269:function(t,r,i){return qi(r,i,t.clauses)},296:function(t,r,i){return Qt(r,t.expression)||qi(r,i,t.statements)},297:function(t,r,i){return qi(r,i,t.statements)},256:function(t,r,i){return Qt(r,t.label)||Qt(r,t.statement)},257:function(t,r,i){return Qt(r,t.expression)},258:function(t,r,i){return Qt(r,t.tryBlock)||Qt(r,t.catchClause)||Qt(r,t.finallyBlock)},299:function(t,r,i){return Qt(r,t.variableDeclaration)||Qt(r,t.block)},170:function(t,r,i){return Qt(r,t.expression)},263:NTe,231:NTe,264:function(t,r,i){return qi(r,i,t.modifiers)||Qt(r,t.name)||qi(r,i,t.typeParameters)||qi(r,i,t.heritageClauses)||qi(r,i,t.members)},265:function(t,r,i){return qi(r,i,t.modifiers)||Qt(r,t.name)||qi(r,i,t.typeParameters)||Qt(r,t.type)},266:function(t,r,i){return qi(r,i,t.modifiers)||Qt(r,t.name)||qi(r,i,t.members)},306:function(t,r,i){return Qt(r,t.name)||Qt(r,t.initializer)},267:function(t,r,i){return qi(r,i,t.modifiers)||Qt(r,t.name)||Qt(r,t.body)},271:function(t,r,i){return qi(r,i,t.modifiers)||Qt(r,t.name)||Qt(r,t.moduleReference)},272:function(t,r,i){return qi(r,i,t.modifiers)||Qt(r,t.importClause)||Qt(r,t.moduleSpecifier)||Qt(r,t.attributes)},273:function(t,r,i){return Qt(r,t.name)||Qt(r,t.namedBindings)},300:function(t,r,i){return qi(r,i,t.elements)},301:function(t,r,i){return Qt(r,t.name)||Qt(r,t.value)},270:function(t,r,i){return qi(r,i,t.modifiers)||Qt(r,t.name)},274:function(t,r,i){return Qt(r,t.name)},280:function(t,r,i){return Qt(r,t.name)},275:ITe,279:ITe,278:function(t,r,i){return qi(r,i,t.modifiers)||Qt(r,t.exportClause)||Qt(r,t.moduleSpecifier)||Qt(r,t.attributes)},276:OTe,281:OTe,277:function(t,r,i){return qi(r,i,t.modifiers)||Qt(r,t.expression)},228:function(t,r,i){return Qt(r,t.head)||qi(r,i,t.templateSpans)},239:function(t,r,i){return Qt(r,t.expression)||Qt(r,t.literal)},203:function(t,r,i){return Qt(r,t.head)||qi(r,i,t.templateSpans)},204:function(t,r,i){return Qt(r,t.type)||Qt(r,t.literal)},167:function(t,r,i){return Qt(r,t.expression)},298:function(t,r,i){return qi(r,i,t.types)},233:function(t,r,i){return Qt(r,t.expression)||qi(r,i,t.typeArguments)},283:function(t,r,i){return Qt(r,t.expression)},282:function(t,r,i){return qi(r,i,t.modifiers)},361:function(t,r,i){return qi(r,i,t.elements)},284:function(t,r,i){return Qt(r,t.openingElement)||qi(r,i,t.children)||Qt(r,t.closingElement)},288:function(t,r,i){return Qt(r,t.openingFragment)||qi(r,i,t.children)||Qt(r,t.closingFragment)},285:FTe,286:FTe,292:function(t,r,i){return qi(r,i,t.properties)},291:function(t,r,i){return Qt(r,t.name)||Qt(r,t.initializer)},293:function(t,r,i){return Qt(r,t.expression)},294:function(t,r,i){return Qt(r,t.dotDotDotToken)||Qt(r,t.expression)},287:function(t,r,i){return Qt(r,t.tagName)},295:function(t,r,i){return Qt(r,t.namespace)||Qt(r,t.name)},190:Nw,191:Nw,316:Nw,322:Nw,321:Nw,323:Nw,325:Nw,324:function(t,r,i){return qi(r,i,t.parameters)||Qt(r,t.type)},327:function(t,r,i){return(typeof t.comment=="string"?void 0:qi(r,i,t.comment))||qi(r,i,t.tags)},354:function(t,r,i){return Qt(r,t.tagName)||Qt(r,t.name)||(typeof t.comment=="string"?void 0:qi(r,i,t.comment))},317:function(t,r,i){return Qt(r,t.name)},318:function(t,r,i){return Qt(r,t.left)||Qt(r,t.right)},348:LTe,355:LTe,337:function(t,r,i){return Qt(r,t.tagName)||(typeof t.comment=="string"?void 0:qi(r,i,t.comment))},336:function(t,r,i){return Qt(r,t.tagName)||Qt(r,t.class)||(typeof t.comment=="string"?void 0:qi(r,i,t.comment))},335:function(t,r,i){return Qt(r,t.tagName)||Qt(r,t.class)||(typeof t.comment=="string"?void 0:qi(r,i,t.comment))},352:function(t,r,i){return Qt(r,t.tagName)||Qt(r,t.constraint)||qi(r,i,t.typeParameters)||(typeof t.comment=="string"?void 0:qi(r,i,t.comment))},353:function(t,r,i){return Qt(r,t.tagName)||(t.typeExpression&&t.typeExpression.kind===316?Qt(r,t.typeExpression)||Qt(r,t.fullName)||(typeof t.comment=="string"?void 0:qi(r,i,t.comment)):Qt(r,t.fullName)||Qt(r,t.typeExpression)||(typeof t.comment=="string"?void 0:qi(r,i,t.comment)))},345:function(t,r,i){return Qt(r,t.tagName)||Qt(r,t.fullName)||Qt(r,t.typeExpression)||(typeof t.comment=="string"?void 0:qi(r,i,t.comment))},349:Iw,351:Iw,350:Iw,347:Iw,357:Iw,356:Iw,346:Iw,330:function(t,r,i){return dt(t.typeParameters,r)||dt(t.parameters,r)||Qt(r,t.type)},331:pce,332:pce,333:pce,329:function(t,r,i){return dt(t.jsDocPropertyTags,r)},334:H4,339:H4,340:H4,341:H4,342:H4,343:H4,338:H4,344:H4,360:hVe},(e=>{var t=fy(99,!0),r=40960,i,s,o,c,u;function f(Y){return $e++,Y}var g={createBaseSourceFileNode:Y=>f(new u(Y,0,0)),createBaseIdentifierNode:Y=>f(new o(Y,0,0)),createBasePrivateIdentifierNode:Y=>f(new c(Y,0,0)),createBaseTokenNode:Y=>f(new s(Y,0,0)),createBaseNode:Y=>f(new i(Y,0,0))},d=ON(11,g),{createNodeArray:y,createNumericLiteral:x,createStringLiteral:T,createLiteralLikeNode:C,createIdentifier:N,createPrivateIdentifier:D,createToken:M,createArrayLiteralExpression:V,createObjectLiteralExpression:G,createPropertyAccessExpression:Z,createPropertyAccessChain:z,createElementAccessExpression:ce,createElementAccessChain:J,createCallExpression:ne,createCallChain:ge,createNewExpression:ve,createParenthesizedExpression:Q,createBlock:X,createVariableStatement:se,createExpressionStatement:pe,createIfStatement:we,createWhileStatement:fe,createForStatement:ie,createForOfStatement:ye,createVariableDeclaration:Ne,createVariableDeclarationList:Ue}=d,Se,Ee,Ae,Le,Tt,xe,ze,st,zt,yt,$e,kt,nn,sn,In,Zn,hn=!0,Zt=!1;function Yt(Y,Ce,He,Ct,Dt=!1,Gt,zr,Ui=0){var Ii;if(Gt=G9(Y,Gt),Gt===6){const Ki=us(Y,Ce,He,Ct,Dt);return p7(Ki,(Ii=Ki.statements[0])==null?void 0:Ii.expression,Ki.parseDiagnostics,!1,void 0),Ki.referencedFiles=Ke,Ki.typeReferenceDirectives=Ke,Ki.libReferenceDirectives=Ke,Ki.amdDependencies=Ke,Ki.hasNoDefaultLib=!1,Ki.pragmas=BO,Ki}zi(Y,Ce,He,Ct,Gt,Ui);const gi=On(He,Dt,Gt,zr||RTe,Ui);return Os(),gi}e.parseSourceFile=Yt;function yi(Y,Ce){zi("",Y,Ce,void 0,1,0),Ie();const He=te(!0),Ct=H()===1&&!ze.length;return Os(),Ct?He:void 0}e.parseIsolatedEntityName=yi;function us(Y,Ce,He=2,Ct,Dt=!1){zi(Y,Ce,He,Ct,6,0),Ee=Zn,Ie();const Gt=I();let zr,Ui;if(H()===1)zr=js([],Gt,Gt),Ui=Pc();else{let Ki;for(;H()!==1;){let lo;switch(H()){case 23:lo=fS();break;case 112:case 97:case 106:lo=Pc();break;case 41:Mi(()=>Ie()===9&&Ie()!==59)?lo=ei():lo=R0();break;case 9:case 11:if(Mi(()=>Ie()!==59)){lo=Yr();break}default:lo=R0();break}Ki&&Ps(Ki)?Ki.push(lo):Ki?Ki=[Ki,lo]:(Ki=lo,H()!==1&&pn(p.Unexpected_token))}const xo=Ps(Ki)?rn(V(Ki),Gt):w.checkDefined(Ki),Jo=pe(xo);rn(Jo,Gt),zr=js([Jo],Gt),Ui=Lo(1,p.Unexpected_token)}const Ii=Jt(Y,2,6,!1,zr,Ui,Ee,ao);Dt&&et(Ii),Ii.nodeCount=$e,Ii.identifierCount=nn,Ii.identifiers=kt,Ii.parseDiagnostics=Ak(ze,Ii),st&&(Ii.jsDocDiagnostics=Ak(st,Ii));const gi=Ii;return Os(),gi}e.parseJsonText=us;function zi(Y,Ce,He,Ct,Dt,Gt){switch(i=Au.getNodeConstructor(),s=Au.getTokenConstructor(),o=Au.getIdentifierConstructor(),c=Au.getPrivateIdentifierConstructor(),u=Au.getSourceFileConstructor(),Se=ka(Y),Ae=Ce,Le=He,zt=Ct,Tt=Dt,xe=hN(Dt),ze=[],sn=0,kt=new Map,nn=0,$e=0,Ee=0,hn=!0,Tt){case 1:case 2:Zn=524288;break;case 6:Zn=134742016;break;default:Zn=0;break}Zt=!1,t.setText(Ae),t.setOnError(Ot),t.setScriptTarget(Le),t.setLanguageVariant(xe),t.setScriptKind(Tt),t.setJSDocParsingMode(Gt)}function Os(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),t.setScriptKind(0),t.setJSDocParsingMode(0),Ae=void 0,Le=void 0,zt=void 0,Tt=void 0,xe=void 0,Ee=0,ze=void 0,st=void 0,sn=0,kt=void 0,In=void 0,hn=!0}function On(Y,Ce,He,Ct,Dt){const Gt=Wu(Se);Gt&&(Zn|=33554432),Ee=Zn,Ie();const zr=la(0,Lf);w.assert(H()===1);const Ui=me(),Ii=Er(Pc(),Ui),gi=Jt(Se,Y,He,Gt,zr,Ii,Ee,Ct);return eG(gi,Ae),tG(gi,Ki),gi.commentDirectives=t.getCommentDirectives(),gi.nodeCount=$e,gi.identifierCount=nn,gi.identifiers=kt,gi.parseDiagnostics=Ak(ze,gi),gi.jsDocParsingMode=Dt,st&&(gi.jsDocDiagnostics=Ak(st,gi)),Ce&&et(gi),gi;function Ki(xo,Jo,lo){ze.push(T4(Se,Ae,xo,Jo,lo))}}let Fi=!1;function Er(Y,Ce){if(!Ce)return Y;w.assert(!Y.jsDoc);const He=Oi(DW(Y,Ae),Ct=>Tg.parseJSDocComment(Y,Ct.pos,Ct.end-Ct.pos));return He.length&&(Y.jsDoc=He),Fi&&(Fi=!1,Y.flags|=536870912),Y}function cn(Y){const Ce=zt,He=rG.createSyntaxCursor(Y);zt={currentNode:Ki};const Ct=[],Dt=ze;ze=[];let Gt=0,zr=Ii(Y.statements,0);for(;zr!==-1;){const xo=Y.statements[Gt],Jo=Y.statements[zr];Mr(Ct,Y.statements,Gt,zr),Gt=gi(Y.statements,zr);const lo=Gs(Dt,kg=>kg.start>=xo.pos),md=lo>=0?Gs(Dt,kg=>kg.start>=Jo.pos,lo):-1;lo>=0&&Mr(ze,Dt,lo,md>=0?md:void 0),xs(()=>{const kg=Zn;for(Zn|=65536,t.resetTokenState(Jo.pos),Ie();H()!==1;){const t0=t.getTokenFullStart(),z0=yl(0,Lf);if(Ct.push(z0),t0===t.getTokenFullStart()&&Ie(),Gt>=0){const U0=Y.statements[Gt];if(z0.end===U0.pos)break;z0.end>U0.pos&&(Gt=gi(Y.statements,Gt+1))}}Zn=kg},2),zr=Gt>=0?Ii(Y.statements,Gt):-1}if(Gt>=0){const xo=Y.statements[Gt];Mr(Ct,Y.statements,Gt);const Jo=Gs(Dt,lo=>lo.start>=xo.pos);Jo>=0&&Mr(ze,Dt,Jo)}return zt=Ce,d.updateSourceFile(Y,ut(y(Ct),Y.statements));function Ui(xo){return!(xo.flags&65536)&&!!(xo.transformFlags&67108864)}function Ii(xo,Jo){for(let lo=Jo;lo118}function As(){return H()===80?!0:H()===127&&Et()||H()===135&&vn()?!1:H()>118}function Dn(Y,Ce,He=!0){return H()===Y?(He&&Ie(),!0):(Ce?pn(Ce):pn(p._0_expected,ba(Y)),!1)}const Yo=Object.keys(rA).filter(Y=>Y.length>2);function hl(Y){if(Lb(Y)){q(za(Ae,Y.template.pos),Y.template.end,p.Module_declaration_names_may_only_use_or_quoted_strings);return}const Ce=Je(Y)?kr(Y):void 0;if(!Ce||!Np(Ce,Le)){pn(p._0_expected,ba(27));return}const He=za(Ae,Y.pos);switch(Ce){case"const":case"let":case"var":q(He,Y.end,p.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":Rs(p.Interface_name_cannot_be_0,p.Interface_must_be_given_a_name,19);return;case"is":q(He,t.getTokenStart(),p.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":Rs(p.Namespace_name_cannot_be_0,p.Namespace_must_be_given_a_name,19);return;case"type":Rs(p.Type_alias_name_cannot_be_0,p.Type_alias_must_be_given_a_name,64);return}const Ct=eP(Ce,Yo,Dt=>Dt)??bo(Ce);if(Ct){q(He,Y.end,p.Unknown_keyword_or_identifier_Did_you_mean_0,Ct);return}H()!==0&&q(He,Y.end,p.Unexpected_keyword_or_identifier)}function Rs(Y,Ce,He){H()===He?pn(Ce):pn(Y,t.getTokenValue())}function bo(Y){for(const Ce of Yo)if(Y.length>Ce.length+2&&fs(Y,Ce))return`${Ce} ${Y.slice(Ce.length)}`}function tc(Y,Ce,He){if(H()===60&&!t.hasPrecedingLineBreak()){pn(p.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(H()===21){pn(p.Cannot_start_a_function_call_in_a_type_annotation),Ie();return}if(Ce&&!El()){He?pn(p._0_expected,ba(27)):pn(p.Expected_for_property_initializer);return}if(!qc()){if(He){pn(p._0_expected,ba(27));return}hl(Y)}}function Oc(Y){return H()===Y?(xt(),!0):(w.assert(p9(Y)),pn(p._0_expected,ba(Y)),!1)}function Iu(Y,Ce,He,Ct){if(H()===Ce){Ie();return}const Dt=pn(p._0_expected,ba(Ce));He&&Dt&&Ua(Dt,T4(Se,Ae,Ct,1,p.The_parser_expected_to_find_a_1_to_match_the_0_token_here,ba(Y),ba(Ce)))}function vs(Y){return H()===Y?(Ie(),!0):!1}function va(Y){if(H()===Y)return Pc()}function Ou(Y){if(H()===Y)return ld()}function Lo(Y,Ce,He){return va(Y)||nc(Y,!1,Ce||p._0_expected,He||ba(Y))}function Ja(Y){const Ce=Ou(Y);return Ce||(w.assert(p9(Y)),nc(Y,!1,p._0_expected,ba(Y)))}function Pc(){const Y=I(),Ce=H();return Ie(),rn(M(Ce),Y)}function ld(){const Y=I(),Ce=H();return xt(),rn(M(Ce),Y)}function El(){return H()===27?!0:H()===20||H()===1||t.hasPrecedingLineBreak()}function qc(){return El()?(H()===27&&Ie(),!0):!1}function xc(){return qc()||Dn(27)}function js(Y,Ce,He,Ct){const Dt=y(Y,Ct);return Gg(Dt,Ce,He??t.getTokenFullStart()),Dt}function rn(Y,Ce,He){return Gg(Y,Ce,He??t.getTokenFullStart()),Zn&&(Y.flags|=Zn),Zt&&(Zt=!1,Y.flags|=262144),Y}function nc(Y,Ce,He,...Ct){Ce?mn(t.getTokenFullStart(),0,He,...Ct):He&&pn(He,...Ct);const Dt=I(),Gt=Y===80?N("",void 0):p1(Y)?d.createTemplateLiteralLikeNode(Y,"","",void 0):Y===9?x("",void 0):Y===11?T("",void 0):Y===282?d.createMissingDeclaration():M(Y);return rn(Gt,Dt)}function ku(Y){let Ce=kt.get(Y);return Ce===void 0&&kt.set(Y,Ce=Y),Ce}function Fu(Y,Ce,He){if(Y){nn++;const Ui=I(),Ii=H(),gi=ku(t.getTokenValue()),Ki=t.hasExtendedUnicodeEscape();return de(),rn(N(gi,Ii,Ki),Ui)}if(H()===81)return pn(He||p.Private_identifiers_are_not_allowed_outside_class_bodies),Fu(!0);if(H()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return Fu(!0);nn++;const Ct=H()===1,Dt=t.isReservedWord(),Gt=t.getTokenText(),zr=Dt?p.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:p.Identifier_expected;return nc(80,Ct,Ce||zr,Gt)}function Kf(Y){return Fu($r(),void 0,Y)}function Wo(Y,Ce){return Fu(As(),Y,Ce)}function Gl(Y){return Fu(N_(H()),Y)}function _e(){return(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&pn(p.Unicode_escape_sequence_cannot_appear_here),Fu(N_(H()))}function ee(){return N_(H())||H()===11||H()===9}function Oe(){return N_(H())||H()===11}function bt(Y){if(H()===11||H()===9){const Ce=Yr();return Ce.text=ku(Ce.text),Ce}return H()===23?Tr():H()===81?br():Gl()}function _n(){return bt()}function Tr(){const Y=I();Dn(23);const Ce=Tn(We);return Dn(24),rn(d.createComputedPropertyName(Ce),Y)}function br(){const Y=I(),Ce=D(ku(t.getTokenValue()));return Ie(),rn(Ce,Y)}function qr(Y){return H()===Y&&Di(Fr)}function Ni(){return Ie(),t.hasPrecedingLineBreak()?!1:rc()}function Fr(){switch(H()){case 87:return Ie()===94;case 95:return Ie(),H()===90?Mi(jl):H()===156?Mi(jc):ia();case 90:return jl();case 126:case 139:case 153:return Ie(),rc();default:return Ni()}}function ia(){return H()===60||H()!==42&&H()!==130&&H()!==19&&rc()}function jc(){return Ie(),ia()}function fu(){return dy(H())&&Di(Fr)}function rc(){return H()===23||H()===19||H()===42||H()===26||ee()}function jl(){return Ie(),H()===86||H()===100||H()===120||H()===60||H()===128&&Mi(fT)||H()===134&&Mi(pT)}function Io(Y,Ce){if(Bl(Y))return!0;switch(Y){case 0:case 1:case 3:return!(H()===27&&Ce)&&dS();case 2:return H()===84||H()===90;case 4:return Mi(no);case 5:return Mi(Kh)||H()===27&&!Ce;case 6:return H()===23||ee();case 12:switch(H()){case 23:case 42:case 26:case 25:return!0;default:return ee()}case 18:return ee();case 9:return H()===23||H()===26||ee();case 24:return Oe();case 7:return H()===19?Mi(pu):Ce?As()&&!z_():BC()&&!z_();case 8:return po();case 10:return H()===28||H()===26||po();case 19:return H()===103||H()===87||As();case 15:switch(H()){case 28:case 25:return!0}case 11:return H()===26||Om();case 16:return yg(!1);case 17:return yg(!0);case 20:case 21:return H()===28||Gh();case 22:return P();case 23:return H()===161&&Mi(K3)?!1:N_(H());case 13:return N_(H())||H()===19;case 14:return!0;case 25:return!0;case 26:return w.fail("ParsingContext.Count used as a context");default:w.assertNever(Y,"Non-exhaustive case in 'isListElement'.")}}function pu(){if(w.assert(H()===19),Ie()===20){const Y=Ie();return Y===28||Y===19||Y===96||Y===119}return!0}function If(){return Ie(),As()}function ru(){return Ie(),N_(H())}function Bd(){return Ie(),Zre(H())}function z_(){return H()===119||H()===96?Mi(De):!1}function De(){return Ie(),Om()}function jt(){return Ie(),Gh()}function Xn(Y){if(H()===1)return!0;switch(Y){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return H()===20;case 3:return H()===20||H()===84||H()===90;case 7:return H()===19||H()===96||H()===119;case 8:return Ts();case 19:return H()===32||H()===21||H()===19||H()===96||H()===119;case 11:return H()===22||H()===27;case 15:case 21:case 10:return H()===24;case 17:case 16:case 18:return H()===22||H()===24;case 20:return H()!==28;case 22:return H()===19||H()===20;case 13:return H()===32||H()===44;case 14:return H()===30&&Mi(Ti);default:return!1}}function Ts(){return!!(El()||F0(H())||H()===39)}function sa(){w.assert(sn,"Missing parsing context");for(let Y=0;Y<26;Y++)if(sn&1<=0)}function D0(Y){return Y===6?p.An_enum_member_name_must_be_followed_by_a_or:void 0}function ep(){const Y=js([],I());return Y.isMissingList=!0,Y}function Hh(Y){return!!Y.isMissingList}function hf(Y,Ce,He,Ct){if(Dn(He)){const Dt=c_(Y,Ce);return Dn(Ct),Dt}return ep()}function te(Y,Ce){const He=I();let Ct=Y?Gl(Ce):Wo(Ce);for(;vs(25)&&H()!==30;)Ct=rn(d.createQualifiedName(Ct,Bt(Y,!1,!0)),He);return Ct}function ct(Y,Ce){return rn(d.createQualifiedName(Y,Ce),Y.pos)}function Bt(Y,Ce,He){if(t.hasPrecedingLineBreak()&&N_(H())&&Mi(xp))return nc(80,!0,p.Identifier_expected);if(H()===81){const Ct=br();return Ce?Ct:nc(80,!0,p.Identifier_expected)}return Y?He?Gl():_e():Wo()}function Vt(Y){const Ce=I(),He=[];let Ct;do Ct=ai(Y),He.push(Ct);while(Ct.literal.kind===17);return js(He,Ce)}function R(Y){const Ce=I();return rn(d.createTemplateExpression(os(Y),Vt(Y)),Ce)}function Te(){const Y=I();return rn(d.createTemplateLiteralType(os(!1),at()),Y)}function at(){const Y=I(),Ce=[];let He;do He=Ht(),Ce.push(He);while(He.literal.kind===17);return js(Ce,Y)}function Ht(){const Y=I();return rn(d.createTemplateLiteralTypeSpan(Jl(),ir(!1)),Y)}function ir(Y){return H()===20?(Un(Y),qa()):Lo(18,p._0_expected,ba(20))}function ai(Y){const Ce=I();return rn(d.createTemplateSpan(Tn(We),ir(Y)),Ce)}function Yr(){return Zc(H())}function os(Y){!Y&&t.getTokenFlags()&26656&&Un(!1);const Ce=Zc(H());return w.assert(Ce.kind===16,"Template head has wrong token kind"),Ce}function qa(){const Y=Zc(H());return w.assert(Y.kind===17||Y.kind===18,"Template fragment has wrong token kind"),Y}function Ha(Y){const Ce=Y===15||Y===18,He=t.getTokenText();return He.substring(1,He.length-(t.isUnterminated()?0:Ce?1:2))}function Zc(Y){const Ce=I(),He=p1(Y)?d.createTemplateLiteralLikeNode(Y,t.getTokenValue(),Ha(Y),t.getTokenFlags()&7176):Y===9?x(t.getTokenValue(),t.getNumericLiteralFlags()):Y===11?T(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):hP(Y)?C(Y,t.getTokenValue()):w.fail();return t.hasExtendedUnicodeEscape()&&(He.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(He.isUnterminated=!0),Ie(),rn(He,Ce)}function Lu(){return te(!0,p.Type_expected)}function $l(){if(!t.hasPrecedingLineBreak()&&Gn()===30)return hf(20,Jl,30,32)}function tp(){const Y=I();return rn(d.createTypeReferenceNode(Lu(),$l()),Y)}function yf(Y){switch(Y.kind){case 183:return nl(Y.typeName);case 184:case 185:{const{parameters:Ce,type:He}=Y;return Hh(Ce)||yf(He)}case 196:return yf(Y.type);default:return!1}}function W1(Y){return Ie(),rn(d.createTypePredicateNode(void 0,Y,Jl()),Y.pos)}function So(){const Y=I();return Ie(),rn(d.createThisTypeNode(),Y)}function lm(){const Y=I();return Ie(),rn(d.createJSDocAllType(),Y)}function um(){const Y=I();return Ie(),rn(d.createJSDocNonNullableType(H1(),!1),Y)}function $i(){const Y=I();return Ie(),H()===28||H()===20||H()===22||H()===32||H()===64||H()===52?rn(d.createJSDocUnknownType(),Y):rn(d.createJSDocNullableType(Jl(),!1),Y)}function A0(){const Y=I(),Ce=me();if(Di(dd)){const He=yn(36),Ct=Wt(59,!1);return Er(rn(d.createJSDocFunctionType(He,Ct),Y),Ce)}return rn(d.createTypeReferenceNode(Gl(),void 0),Y)}function Ry(){const Y=I();let Ce;return(H()===110||H()===105)&&(Ce=Gl(),Dn(59)),rn(d.createParameterDeclaration(void 0,void 0,Ce,void 0,_m(),void 0),Y)}function _m(){t.setInJSDocType(!0);const Y=I();if(vs(144)){const Ct=d.createJSDocNamepathType(void 0);e:for(;;)switch(H()){case 20:case 1:case 28:case 5:break e;default:xt()}return t.setInJSDocType(!1),rn(Ct,Y)}const Ce=vs(26);let He=G1();return t.setInJSDocType(!1),Ce&&(He=rn(d.createJSDocVariadicType(He),Y)),H()===64?(Ie(),rn(d.createJSDocOptionalType(He),Y)):He}function rS(){const Y=I();Dn(114);const Ce=te(!0),He=t.hasPrecedingLineBreak()?void 0:R2();return rn(d.createTypeQueryNode(Ce,He),Y)}function iS(){const Y=I(),Ce=uh(!1,!0),He=Wo();let Ct,Dt;vs(96)&&(Gh()||!Om()?Ct=Jl():Dt=X1());const Gt=vs(64)?Jl():void 0,zr=d.createTypeParameterDeclaration(Ce,He,Ct,Gt);return zr.expression=Dt,rn(zr,Y)}function Vp(){if(H()===30)return hf(19,iS,30,32)}function yg(Y){return H()===26||po()||dy(H())||H()===60||Gh(!Y)}function Wp(Y){const Ce=Pr(p.Private_identifiers_cannot_be_used_as_parameters);return kA(Ce)===0&&!Pe(Y)&&dy(H())&&Ie(),Ce}function N0(){return $r()||H()===23||H()===19}function Re(Y){return It(Y)}function Ze(Y){return It(Y,!1)}function It(Y,Ce=!0){const He=I(),Ct=me(),Dt=Y?le(()=>uh(!0)):Me(()=>uh(!0));if(H()===110){const Ii=d.createParameterDeclaration(Dt,void 0,Fu(!0),void 0,By(),void 0),gi=hu(Dt);return gi&&Fe(gi,p.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Er(rn(Ii,He),Ct)}const Gt=hn;hn=!1;const zr=va(26);if(!Ce&&!N0())return;const Ui=Er(rn(d.createParameterDeclaration(Dt,zr,Wp(Dt),va(58),By(),Fm()),He),Ct);return hn=Gt,Ui}function Wt(Y,Ce){if(bn(Y,Ce))return Ve(G1)}function bn(Y,Ce){return Y===39?(Dn(Y),!0):vs(59)?!0:Ce&&H()===39?(pn(p._0_expected,ba(59)),Ie(),!0):!1}function Kn(Y,Ce){const He=Et(),Ct=vn();vi(!!(Y&1)),Ds(!!(Y&2));const Dt=Y&32?c_(17,Ry):c_(16,()=>Ce?Re(Ct):Ze(Ct));return vi(He),Ds(Ct),Dt}function yn(Y){if(!Dn(21))return ep();const Ce=Kn(Y,!0);return Dn(22),Ce}function er(){vs(28)||xc()}function mi(Y){const Ce=I(),He=me();Y===180&&Dn(105);const Ct=Vp(),Dt=yn(4),Gt=Wt(59,!0);er();const zr=Y===179?d.createCallSignature(Ct,Dt,Gt):d.createConstructSignature(Ct,Dt,Gt);return Er(rn(zr,Ce),He)}function ur(){return H()===23&&Mi(ri)}function ri(){if(Ie(),H()===26||H()===24)return!0;if(dy(H())){if(Ie(),As())return!0}else if(As())Ie();else return!1;return H()===59||H()===28?!0:H()!==58?!1:(Ie(),H()===59||H()===28||H()===24)}function dr(Y,Ce,He){const Ct=hf(16,()=>Re(!1),23,24),Dt=By();er();const Gt=d.createIndexSignature(He,Ct,Dt);return Er(rn(Gt,Y),Ce)}function aa(Y,Ce,He){const Ct=_n(),Dt=va(58);let Gt;if(H()===21||H()===30){const zr=Vp(),Ui=yn(4),Ii=Wt(59,!0);Gt=d.createMethodSignature(He,Ct,Dt,zr,Ui,Ii)}else{const zr=By();Gt=d.createPropertySignature(He,Ct,Dt,zr),H()===64&&(Gt.initializer=Fm())}return er(),Er(rn(Gt,Y),Ce)}function no(){if(H()===21||H()===30||H()===139||H()===153)return!0;let Y=!1;for(;dy(H());)Y=!0,Ie();return H()===23?!0:(ee()&&(Y=!0,Ie()),Y?H()===21||H()===30||H()===58||H()===59||H()===28||El():!1)}function x_(){if(H()===21||H()===30)return mi(179);if(H()===105&&Mi(Mu))return mi(180);const Y=I(),Ce=me(),He=uh(!1);return qr(139)?B0(Y,Ce,He,177,4):qr(153)?B0(Y,Ce,He,178,4):ur()?dr(Y,Ce,He):aa(Y,Ce,He)}function Mu(){return Ie(),H()===21||H()===30}function I0(){return Ie()===25}function T2(){switch(Ie()){case 21:case 30:case 25:return!0}return!1}function AC(){const Y=I();return rn(d.createTypeLiteralNode(k2()),Y)}function k2(){let Y;return Dn(19)?(Y=la(4,x_),Dn(20)):Y=ep(),Y}function B3(){return Ie(),H()===40||H()===41?Ie()===148:(H()===148&&Ie(),H()===23&&If()&&Ie()===103)}function J3(){const Y=I(),Ce=Gl();Dn(103);const He=Jl();return rn(d.createTypeParameterDeclaration(void 0,Ce,He,void 0),Y)}function z3(){const Y=I();Dn(19);let Ce;(H()===148||H()===40||H()===41)&&(Ce=Pc(),Ce.kind!==148&&Dn(148)),Dn(23);const He=J3(),Ct=vs(130)?Jl():void 0;Dn(24);let Dt;(H()===58||H()===40||H()===41)&&(Dt=Pc(),Dt.kind!==58&&Dn(58));const Gt=By();xc();const zr=la(4,x_);return Dn(20),rn(d.createMappedTypeNode(Ce,He,Ct,Dt,Gt,zr),Y)}function Xx(){const Y=I();if(vs(26))return rn(d.createRestTypeNode(Jl()),Y);const Ce=Jl();if(j4(Ce)&&Ce.pos===Ce.type.pos){const He=d.createOptionalTypeNode(Ce.type);return ut(He,Ce),He.flags=Ce.flags,He}return Ce}function sS(){return Ie()===59||H()===58&&Ie()===59}function NC(){return H()===26?N_(Ie())&&sS():N_(H())&&sS()}function U3(){if(Mi(NC)){const Y=I(),Ce=me(),He=va(26),Ct=Gl(),Dt=va(58);Dn(59);const Gt=Xx(),zr=d.createNamedTupleMember(He,Ct,Dt,Gt);return Er(rn(zr,Y),Ce)}return Xx()}function IC(){const Y=I();return rn(d.createTupleTypeNode(hf(21,U3,23,24)),Y)}function OC(){const Y=I();Dn(21);const Ce=Jl();return Dn(22),rn(d.createParenthesizedType(Ce),Y)}function FC(){let Y;if(H()===128){const Ce=I();Ie();const He=rn(M(128),Ce);Y=js([He],Ce)}return Y}function LC(){const Y=I(),Ce=me(),He=FC(),Ct=vs(105);w.assert(!He||Ct,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");const Dt=Vp(),Gt=yn(4),zr=Wt(39,!1),Ui=Ct?d.createConstructorTypeNode(He,Dt,Gt,zr):d.createFunctionTypeNode(Dt,Gt,zr);return Er(rn(Ui,Y),Ce)}function Qx(){const Y=Pc();return H()===25?void 0:Y}function MC(Y){const Ce=I();Y&&Ie();let He=H()===112||H()===97||H()===106?Pc():Zc(H());return Y&&(He=rn(d.createPrefixUnaryExpression(41,He),Ce)),rn(d.createLiteralTypeNode(He),Ce)}function aS(){return Ie(),H()===102}function oS(){Ee|=4194304;const Y=I(),Ce=vs(114);Dn(102),Dn(21);const He=Jl();let Ct;if(vs(28)){const zr=t.getTokenStart();Dn(19);const Ui=H();if(Ui===118||Ui===132?Ie():pn(p._0_expected,ba(118)),Dn(59),Ct=sv(Ui,!0),!Dn(20)){const Ii=pc(ze);Ii&&Ii.code===p._0_expected.code&&Ua(Ii,T4(Se,Ae,zr,1,p.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}Dn(22);const Dt=vs(25)?Lu():void 0,Gt=$l();return rn(d.createImportTypeNode(He,Ct,Dt,Gt,Ce),Y)}function q1(){return Ie(),H()===9||H()===10}function H1(){switch(H()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return Di(Qx)||tp();case 67:t.reScanAsteriskEqualsToken();case 42:return lm();case 61:t.reScanQuestionToken();case 58:return $i();case 100:return A0();case 54:return um();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return MC();case 41:return Mi(q1)?MC(!0):tp();case 116:return Pc();case 110:{const Y=So();return H()===142&&!t.hasPrecedingLineBreak()?W1(Y):Y}case 114:return Mi(aS)?oS():rS();case 19:return Mi(B3)?z3():AC();case 23:return IC();case 21:return OC();case 102:return oS();case 131:return Mi(xp)?jC():tp();case 16:return Te();default:return tp()}}function Gh(Y){switch(H()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!Y;case 41:return!Y&&Mi(q1);case 21:return!Y&&Mi(C2);default:return As()}}function C2(){return Ie(),H()===22||yg(!1)||Gh()}function _o(){const Y=I();let Ce=H1();for(;!t.hasPrecedingLineBreak();)switch(H()){case 54:Ie(),Ce=rn(d.createJSDocNonNullableType(Ce,!0),Y);break;case 58:if(Mi(jt))return Ce;Ie(),Ce=rn(d.createJSDocNullableType(Ce,!0),Y);break;case 23:if(Dn(23),Gh()){const He=Jl();Dn(24),Ce=rn(d.createIndexedAccessTypeNode(Ce,He),Y)}else Dn(24),Ce=rn(d.createArrayTypeNode(Ce),Y);break;default:return Ce}return Ce}function Yx(Y){const Ce=I();return Dn(Y),rn(d.createTypeOperatorNode(Y,ah()),Ce)}function V3(){if(vs(96)){const Y=pt(Jl);if(mt()||H()!==58)return Y}}function E2(){const Y=I(),Ce=Wo(),He=Di(V3),Ct=d.createTypeParameterDeclaration(void 0,Ce,He);return rn(Ct,Y)}function O0(){const Y=I();return Dn(140),rn(d.createInferTypeNode(E2()),Y)}function ah(){const Y=H();switch(Y){case 143:case 158:case 148:return Yx(Y);case 140:return O0()}return Ve(_o)}function _d(Y){if(Zx()){const Ce=LC();let He;return Qg(Ce)?He=Y?p.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:p.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:He=Y?p.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:p.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,Fe(Ce,He),Ce}}function vf(Y,Ce,He){const Ct=I(),Dt=Y===52,Gt=vs(Y);let zr=Gt&&_d(Dt)||Ce();if(H()===Y||Gt){const Ui=[zr];for(;vs(Y);)Ui.push(_d(Dt)||Ce());zr=rn(He(js(Ui,Ct)),Ct)}return zr}function np(){return vf(51,ah,d.createIntersectionTypeNode)}function Of(){return vf(52,np,d.createUnionTypeNode)}function jy(){return Ie(),H()===105}function Zx(){return H()===30||H()===21&&Mi(RC)?!0:H()===105||H()===128&&Mi(jy)}function W3(){if(dy(H())&&uh(!1),As()||H()===110)return Ie(),!0;if(H()===23||H()===19){const Y=ze.length;return Pr(),Y===ze.length}return!1}function RC(){return Ie(),!!(H()===22||H()===26||W3()&&(H()===59||H()===28||H()===58||H()===64||H()===22&&(Ie(),H()===39)))}function G1(){const Y=I(),Ce=As()&&Di(P2),He=Jl();return Ce?rn(d.createTypePredicateNode(void 0,Ce,He),Y):He}function P2(){const Y=Wo();if(H()===142&&!t.hasPrecedingLineBreak())return Ie(),Y}function jC(){const Y=I(),Ce=Lo(131),He=H()===110?So():Wo(),Ct=vs(142)?Jl():void 0;return rn(d.createTypePredicateNode(Ce,He,Ct),Y)}function Jl(){if(Zn&81920)return Sa(81920,Jl);if(Zx())return LC();const Y=I(),Ce=Of();if(!mt()&&!t.hasPrecedingLineBreak()&&vs(96)){const He=pt(Jl);Dn(58);const Ct=Ve(Jl);Dn(59);const Dt=Ve(Jl);return rn(d.createConditionalTypeNode(Ce,He,Ct,Dt),Y)}return Ce}function By(){return vs(59)?Jl():void 0}function BC(){switch(H()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return Mi(T2);default:return As()}}function Om(){if(BC())return!0;switch(H()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return Mm()?!0:As()}}function Kx(){return H()!==19&&H()!==100&&H()!==86&&H()!==60&&Om()}function We(){const Y=Ut();Y&&ts(!1);const Ce=I();let He=Ru(!0),Ct;for(;Ct=va(28);)He=cS(He,Ct,Ru(!0),Ce);return Y&&ts(!0),He}function Fm(){return vs(64)?Ru(!0):void 0}function Ru(Y){if(w2())return $1();const Ce=zy(Y)||eT(Y);if(Ce)return Ce;const He=I(),Ct=me(),Dt=zd(0);return Dt.kind===80&&H()===39?Jy(He,Dt,Y,Ct,void 0):Pf(Dt)&&vy(tn())?cS(Dt,Pc(),Ru(Y),He):Jd(Dt,He,Y)}function w2(){return H()===127?Et()?!0:Mi(ic):!1}function JC(){return Ie(),!t.hasPrecedingLineBreak()&&As()}function $1(){const Y=I();return Ie(),!t.hasPrecedingLineBreak()&&(H()===42||Om())?rn(d.createYieldExpression(va(42),Ru(!0)),Y):rn(d.createYieldExpression(void 0,void 0),Y)}function Jy(Y,Ce,He,Ct,Dt){w.assert(H()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");const Gt=d.createParameterDeclaration(void 0,void 0,Ce,void 0,void 0,void 0);rn(Gt,Ce.pos);const zr=js([Gt],Gt.pos,Gt.end),Ui=Lo(39),Ii=nT(!!Dt,He),gi=d.createArrowFunction(Dt,void 0,zr,void 0,Ui,Ii);return Er(rn(gi,Y),Ct)}function zy(Y){const Ce=FD();if(Ce!==0)return Ce===1?D2(!0,!0):Di(()=>Lm(Y))}function FD(){return H()===21||H()===30||H()===134?Mi(ro):H()===39?1:0}function ro(){if(H()===134&&(Ie(),t.hasPrecedingLineBreak()||H()!==21&&H()!==30))return 0;const Y=H(),Ce=Ie();if(Y===21){if(Ce===22)switch(Ie()){case 39:case 59:case 19:return 1;default:return 0}if(Ce===23||Ce===19)return 2;if(Ce===26)return 1;if(dy(Ce)&&Ce!==134&&Mi(If))return Ie()===130?0:1;if(!As()&&Ce!==110)return 0;switch(Ie()){case 59:return 1;case 58:return Ie(),H()===59||H()===28||H()===64||H()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return w.assert(Y===30),!As()&&H()!==87?0:xe===1?Mi(()=>{vs(87);const Ct=Ie();if(Ct===96)switch(Ie()){case 64:case 32:case 44:return!1;default:return!0}else if(Ct===28||Ct===64)return!0;return!1})?1:0:2}function Lm(Y){const Ce=t.getTokenStart();if(In!=null&&In.has(Ce))return;const He=D2(!1,Y);return He||(In||(In=new Set)).add(Ce),He}function eT(Y){if(H()===134&&Mi(tT)===1){const Ce=I(),He=me(),Ct=$p(),Dt=zd(0);return Jy(Ce,Dt,Y,He,Ct)}}function tT(){if(H()===134){if(Ie(),t.hasPrecedingLineBreak()||H()===39)return 0;const Y=zd(0);if(!t.hasPrecedingLineBreak()&&Y.kind===80&&H()===39)return 1}return 0}function D2(Y,Ce){const He=I(),Ct=me(),Dt=$p(),Gt=Pe(Dt,yw)?2:0,zr=Vp();let Ui;if(Dn(21)){if(Y)Ui=Kn(Gt,Y);else{const t0=Kn(Gt,Y);if(!t0)return;Ui=t0}if(!Dn(22)&&!Y)return}else{if(!Y)return;Ui=ep()}const Ii=H()===59,gi=Wt(59,!1);if(gi&&!Y&&yf(gi))return;let Ki=gi;for(;(Ki==null?void 0:Ki.kind)===196;)Ki=Ki.type;const xo=Ki&&B4(Ki);if(!Y&&H()!==39&&(xo||H()!==19))return;const Jo=H(),lo=Lo(39),md=Jo===39||Jo===19?nT(Pe(Dt,yw),Ce):Wo();if(!Ce&&Ii&&H()!==59)return;const kg=d.createArrowFunction(Dt,zr,Ui,gi,lo,md);return Er(rn(kg,He),Ct)}function nT(Y,Ce){if(H()===19)return K1(Y?2:0);if(H()!==27&&H()!==100&&H()!==86&&dS()&&!Kx())return K1(16|(Y?2:0));const He=hn;hn=!1;const Ct=Y?le(()=>Ru(Ce)):Me(()=>Ru(Ce));return hn=He,Ct}function Jd(Y,Ce,He){const Ct=va(58);if(!Ct)return Y;let Dt;return rn(d.createConditionalExpression(Y,Ct,Sa(r,()=>Ru(!1)),Dt=Lo(59),Ed(Dt)?Ru(He):nc(80,!1,p._0_expected,ba(59))),Ce)}function zd(Y){const Ce=I(),He=X1();return zC(Y,He,Ce)}function F0(Y){return Y===103||Y===165}function zC(Y,Ce,He){for(;;){tn();const Ct=cN(H());if(!(H()===43?Ct>=Y:Ct>Y)||H()===103&&Ge())break;if(H()===130||H()===152){if(t.hasPrecedingLineBreak())break;{const Gt=H();Ie(),Ce=Gt===152?q3(Ce,Jl()):Zi(Ce,Jl())}}else Ce=cS(Ce,Pc(),zd(Ct),He)}return Ce}function Mm(){return Ge()&&H()===103?!1:cN(H())>0}function q3(Y,Ce){return rn(d.createSatisfiesExpression(Y,Ce),Y.pos)}function cS(Y,Ce,He,Ct){return rn(d.createBinaryExpression(Y,Ce,He),Ct)}function Zi(Y,Ce){return rn(d.createAsExpression(Y,Ce),Y.pos)}function ei(){const Y=I();return rn(d.createPrefixUnaryExpression(H(),Be(Lc)),Y)}function oh(){const Y=I();return rn(d.createDeleteExpression(Be(Lc)),Y)}function bf(){const Y=I();return rn(d.createTypeOfExpression(Be(Lc)),Y)}function LD(){const Y=I();return rn(d.createVoidExpression(Be(Lc)),Y)}function L0(){return H()===135?vn()?!0:Mi(ic):!1}function MD(){const Y=I();return rn(d.createAwaitExpression(Be(Lc)),Y)}function X1(){if(bp()){const He=I(),Ct=$h();return H()===43?zC(cN(H()),Ct,He):Ct}const Y=H(),Ce=Lc();if(H()===43){const He=za(Ae,Ce.pos),{end:Ct}=Ce;Ce.kind===216?q(He,Ct,p.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(w.assert(p9(Y)),q(He,Ct,p.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,ba(Y)))}return Ce}function Lc(){switch(H()){case 40:case 41:case 55:case 54:return ei();case 91:return oh();case 114:return bf();case 116:return LD();case 30:return xe===1?M0(!0,void 0,void 0,!0):pm();case 135:if(L0())return MD();default:return $h()}}function bp(){switch(H()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(xe!==1)return!1;default:return!0}}function $h(){if(H()===46||H()===47){const Ce=I();return rn(d.createPrefixUnaryExpression(H(),Be(Ud)),Ce)}else if(xe===1&&H()===30&&Mi(Bd))return M0(!0);const Y=Ud();if(w.assert(Pf(Y)),(H()===46||H()===47)&&!t.hasPrecedingLineBreak()){const Ce=H();return Ie(),rn(d.createPostfixUnaryExpression(Y,Ce),Y.pos)}return Y}function Ud(){const Y=I();let Ce;return H()===102?Mi(Mu)?(Ee|=4194304,Ce=Pc()):Mi(I0)?(Ie(),Ie(),Ce=rn(d.createMetaProperty(102,Gl()),Y),Ee|=8388608):Ce=Q1():Ce=H()===108?fm():Q1(),Vy(Y,Ce)}function Q1(){const Y=I(),Ce=A2();return Cu(Y,Ce,!0)}function fm(){const Y=I();let Ce=Pc();if(H()===30){const He=I(),Ct=Di(_r);Ct!==void 0&&(q(He,I(),p.super_may_not_use_type_arguments),is()||(Ce=d.createExpressionWithTypeArguments(Ce,Ct)))}return H()===21||H()===25||H()===23?Ce:(Lo(25,p.super_must_be_followed_by_an_argument_list_or_member_access),rn(Z(Ce,Bt(!0,!0,!0)),Y))}function M0(Y,Ce,He,Ct=!1){const Dt=I(),Gt=Qh(Y);let zr;if(Gt.kind===286){let Ui=Xh(Gt),Ii;const gi=Ui[Ui.length-1];if((gi==null?void 0:gi.kind)===284&&!u2(gi.openingElement.tagName,gi.closingElement.tagName)&&u2(Gt.tagName,gi.closingElement.tagName)){const Ki=gi.children.end,xo=rn(d.createJsxElement(gi.openingElement,gi.children,rn(d.createJsxClosingElement(rn(N(""),Ki,Ki)),Ki,Ki)),gi.openingElement.pos,Ki);Ui=js([...Ui.slice(0,Ui.length-1),xo],Ui.pos,Ki),Ii=gi.closingElement}else Ii=uS(Gt,Y),u2(Gt.tagName,Ii.tagName)||(He&&ug(He)&&u2(Ii.tagName,He.tagName)?Fe(Gt.tagName,p.JSX_element_0_has_no_corresponding_closing_tag,TP(Ae,Gt.tagName)):Fe(Ii.tagName,p.Expected_corresponding_JSX_closing_tag_for_0,TP(Ae,Gt.tagName)));zr=rn(d.createJsxElement(Gt,Ui,Ii),Dt)}else Gt.kind===289?zr=rn(d.createJsxFragment(Gt,Xh(Gt),sT(Y)),Dt):(w.assert(Gt.kind===285),zr=Gt);if(!Ct&&Y&&H()===30){const Ui=typeof Ce>"u"?zr.pos:Ce,Ii=Di(()=>M0(!0,Ui));if(Ii){const gi=nc(28,!1);return sw(gi,Ii.pos,0),q(za(Ae,Ui),Ii.end,p.JSX_expressions_must_have_one_parent_element),rn(d.createBinaryExpression(zr,gi,Ii),Dt)}}return zr}function lS(){const Y=I(),Ce=d.createJsxText(t.getTokenValue(),yt===13);return yt=t.scanJsxToken(),rn(Ce,Y)}function rT(Y,Ce){switch(Ce){case 1:if(Kk(Y))Fe(Y,p.JSX_fragment_has_no_corresponding_closing_tag);else{const He=Y.tagName,Ct=Math.min(za(Ae,He.pos),He.end);q(Ct,He.end,p.JSX_element_0_has_no_corresponding_closing_tag,TP(Ae,Y.tagName))}return;case 31:case 7:return;case 12:case 13:return lS();case 19:return H3(!1);case 30:return M0(!1,void 0,Y);default:return w.assertNever(Ce)}}function Xh(Y){const Ce=[],He=I(),Ct=sn;for(sn|=16384;;){const Dt=rT(Y,yt=t.reScanJsxToken());if(!Dt||(Ce.push(Dt),ug(Y)&&(Dt==null?void 0:Dt.kind)===284&&!u2(Dt.openingElement.tagName,Dt.closingElement.tagName)&&u2(Y.tagName,Dt.closingElement.tagName)))break}return sn=Ct,js(Ce,He)}function UC(){const Y=I();return rn(d.createJsxAttributes(la(13,G3)),Y)}function Qh(Y){const Ce=I();if(Dn(30),H()===32)return sr(),rn(d.createJsxOpeningFragment(),Ce);const He=vg(),Ct=Zn&524288?void 0:R2(),Dt=UC();let Gt;return H()===32?(sr(),Gt=d.createJsxOpeningElement(He,Ct,Dt)):(Dn(44),Dn(32,void 0,!1)&&(Y?Ie():sr()),Gt=d.createJsxSelfClosingElement(He,Ct,Dt)),rn(Gt,Ce)}function vg(){const Y=I(),Ce=Uy();if(wm(Ce))return Ce;let He=Ce;for(;vs(25);)He=rn(Z(He,Bt(!0,!1,!1)),Y);return He}function Uy(){const Y=I();wi();const Ce=H()===110,He=_e();return vs(59)?(wi(),rn(d.createJsxNamespacedName(He,_e()),Y)):Ce?rn(d.createToken(110),Y):He}function H3(Y){const Ce=I();if(!Dn(19))return;let He,Ct;return H()!==20&&(Y||(He=va(26)),Ct=We()),Y?Dn(20):Dn(20,void 0,!1)&&sr(),rn(d.createJsxExpression(He,Ct),Ce)}function G3(){if(H()===19)return _c();const Y=I();return rn(d.createJsxAttribute(iT(),$3()),Y)}function $3(){if(H()===64){if(Wr()===11)return Yr();if(H()===19)return H3(!0);if(H()===30)return M0(!0);pn(p.or_JSX_element_expected)}}function iT(){const Y=I();wi();const Ce=_e();return vs(59)?(wi(),rn(d.createJsxNamespacedName(Ce,_e()),Y)):Ce}function _c(){const Y=I();Dn(19),Dn(26);const Ce=We();return Dn(20),rn(d.createJsxSpreadAttribute(Ce),Y)}function uS(Y,Ce){const He=I();Dn(31);const Ct=vg();return Dn(32,void 0,!1)&&(Ce||!u2(Y.tagName,Ct)?Ie():sr()),rn(d.createJsxClosingElement(Ct),He)}function sT(Y){const Ce=I();return Dn(31),Dn(32,p.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(Y?Ie():sr()),rn(d.createJsxJsxClosingFragment(),Ce)}function pm(){w.assert(xe!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");const Y=I();Dn(30);const Ce=Jl();Dn(32);const He=Lc();return rn(d.createTypeAssertion(Ce,He),Y)}function Y1(){return Ie(),N_(H())||H()===23||is()}function X3(){return H()===29&&Mi(Y1)}function aT(Y){if(Y.flags&64)return!0;if(Qk(Y)){let Ce=Y.expression;for(;Qk(Ce)&&!(Ce.flags&64);)Ce=Ce.expression;if(Ce.flags&64){for(;Qk(Y);)Y.flags|=64,Y=Y.expression;return!0}}return!1}function RD(Y,Ce,He){const Ct=Bt(!0,!0,!0),Dt=He||aT(Ce),Gt=Dt?z(Ce,He,Ct):Z(Ce,Ct);if(Dt&&Qi(Gt.name)&&Fe(Gt.name,p.An_optional_chain_cannot_contain_private_identifiers),Cy(Ce)&&Ce.typeArguments){const zr=Ce.typeArguments.pos-1,Ui=za(Ae,Ce.typeArguments.end)+1;q(zr,Ui,p.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return rn(Gt,Y)}function hr(Y,Ce,He){let Ct;if(H()===24)Ct=nc(80,!0,p.An_element_access_expression_should_take_an_argument);else{const Gt=Tn(We);Ip(Gt)&&(Gt.text=ku(Gt.text)),Ct=Gt}Dn(24);const Dt=He||aT(Ce)?J(Ce,He,Ct):ce(Ce,Ct);return rn(Dt,Y)}function Cu(Y,Ce,He){for(;;){let Ct,Dt=!1;if(He&&X3()?(Ct=Lo(29),Dt=N_(H())):Dt=vs(25),Dt){Ce=RD(Y,Ce,Ct);continue}if((Ct||!Ut())&&vs(23)){Ce=hr(Y,Ce,Ct);continue}if(is()){Ce=!Ct&&Ce.kind===233?qp(Y,Ce.expression,Ct,Ce.typeArguments):qp(Y,Ce,Ct,void 0);continue}if(!Ct){if(H()===54&&!t.hasPrecedingLineBreak()){Ie(),Ce=rn(d.createNonNullExpression(Ce),Y);continue}const Gt=Di(_r);if(Gt){Ce=rn(d.createExpressionWithTypeArguments(Ce,Gt),Y);continue}}return Ce}}function is(){return H()===15||H()===16}function qp(Y,Ce,He,Ct){const Dt=d.createTaggedTemplateExpression(Ce,Ct,H()===15?(Un(!0),Yr()):R(!0));return(He||Ce.flags&64)&&(Dt.flags|=64),Dt.questionDotToken=He,rn(Dt,Y)}function Vy(Y,Ce){for(;;){Ce=Cu(Y,Ce,!0);let He;const Ct=va(29);if(Ct&&(He=Di(_r),is())){Ce=qp(Y,Ce,Ct,He);continue}if(He||H()===21){!Ct&&Ce.kind===233&&(He=Ce.typeArguments,Ce=Ce.expression);const Dt=bg(),Gt=Ct||aT(Ce)?ge(Ce,Ct,He,Dt):ne(Ce,He,Dt);Ce=rn(Gt,Y);continue}if(Ct){const Dt=nc(80,!1,p.Identifier_expected);Ce=rn(z(Ce,Ct,Dt),Y)}break}return Ce}function bg(){Dn(21);const Y=c_(11,_S);return Dn(22),Y}function _r(){if(Zn&524288||Gn()!==30)return;Ie();const Y=c_(20,Jl);if(tn()===32)return Ie(),Y&&oT()?Y:void 0}function oT(){switch(H()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||Mm()||!Om()}function A2(){switch(H()){case 15:t.getTokenFlags()&26656&&Un(!1);case 9:case 10:case 11:return Yr();case 110:case 108:case 106:case 112:case 97:return Pc();case 21:return mu();case 23:return fS();case 19:return R0();case 134:if(!Mi(pT))break;return cT();case 60:return M2();case 86:return XC();case 100:return cT();case 105:return N2();case 44:case 69:if(Sn()===14)return Yr();break;case 16:return R(!1);case 81:return br()}return Wo(p.Expression_expected)}function mu(){const Y=I(),Ce=me();Dn(21);const He=Tn(We);return Dn(22),Er(rn(Q(He),Y),Ce)}function ch(){const Y=I();Dn(26);const Ce=Ru(!0);return rn(d.createSpreadElement(Ce),Y)}function dm(){return H()===26?ch():H()===28?rn(d.createOmittedExpression(),I()):Ru(!0)}function _S(){return Sa(r,dm)}function fS(){const Y=I(),Ce=t.getTokenStart(),He=Dn(23),Ct=t.hasPrecedingLineBreak(),Dt=c_(15,dm);return Iu(23,24,He,Ce),rn(V(Dt,Ct),Y)}function Z1(){const Y=I(),Ce=me();if(va(26)){const Ki=Ru(!0);return Er(rn(d.createSpreadAssignment(Ki),Y),Ce)}const He=uh(!0);if(qr(139))return B0(Y,Ce,He,177,0);if(qr(153))return B0(Y,Ce,He,178,0);const Ct=va(42),Dt=As(),Gt=_n(),zr=va(58),Ui=va(54);if(Ct||H()===21||H()===30)return Rm(Y,Ce,He,Ct,Gt,zr,Ui);let Ii;if(Dt&&H()!==59){const Ki=va(64),xo=Ki?Tn(()=>Ru(!0)):void 0;Ii=d.createShorthandPropertyAssignment(Gt,xo),Ii.equalsToken=Ki}else{Dn(59);const Ki=Tn(()=>Ru(!0));Ii=d.createPropertyAssignment(Gt,Ki)}return Ii.modifiers=He,Ii.questionToken=zr,Ii.exclamationToken=Ui,Er(rn(Ii,Y),Ce)}function R0(){const Y=I(),Ce=t.getTokenStart(),He=Dn(19),Ct=t.hasPrecedingLineBreak(),Dt=c_(12,Z1,!0);return Iu(19,20,He,Ce),rn(G(Dt,Ct),Y)}function cT(){const Y=Ut();ts(!1);const Ce=I(),He=me(),Ct=uh(!1);Dn(100);const Dt=va(42),Gt=Dt?1:0,zr=Pe(Ct,yw)?2:0,Ui=Gt&&zr?_t(mm):Gt?ft(mm):zr?le(mm):mm(),Ii=Vp(),gi=yn(Gt|zr),Ki=Wt(59,!1),xo=K1(Gt|zr);ts(Y);const Jo=d.createFunctionExpression(Ct,Dt,Ui,Ii,gi,Ki,xo);return Er(rn(Jo,Ce),He)}function mm(){return $r()?Kf():void 0}function N2(){const Y=I();if(Dn(105),vs(25)){const Gt=Gl();return rn(d.createMetaProperty(105,Gt),Y)}const Ce=I();let He=Cu(Ce,A2(),!1),Ct;He.kind===233&&(Ct=He.typeArguments,He=He.expression),H()===29&&pn(p.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,TP(Ae,He));const Dt=H()===21?bg():void 0;return rn(ve(He,Ct,Dt),Y)}function Yh(Y,Ce){const He=I(),Ct=me(),Dt=t.getTokenStart(),Gt=Dn(19,Ce);if(Gt||Y){const zr=t.hasPrecedingLineBreak(),Ui=la(1,Lf);Iu(19,20,Gt,Dt);const Ii=Er(rn(X(Ui,zr),He),Ct);return H()===64&&(pn(p.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),Ie()),Ii}else{const zr=ep();return Er(rn(X(zr,void 0),He),Ct)}}function K1(Y,Ce){const He=Et();vi(!!(Y&1));const Ct=vn();Ds(!!(Y&2));const Dt=hn;hn=!1;const Gt=Ut();Gt&&ts(!1);const zr=Yh(!!(Y&16),Ce);return Gt&&ts(!0),hn=Dt,vi(He),Ds(Ct),zr}function VC(){const Y=I(),Ce=me();return Dn(27),Er(rn(d.createEmptyStatement(),Y),Ce)}function I2(){const Y=I(),Ce=me();Dn(101);const He=t.getTokenStart(),Ct=Dn(21),Dt=Tn(We);Iu(21,22,Ct,He);const Gt=Lf(),zr=vs(93)?Lf():void 0;return Er(rn(we(Dt,Gt,zr),Y),Ce)}function Q3(){const Y=I(),Ce=me();Dn(92);const He=Lf();Dn(117);const Ct=t.getTokenStart(),Dt=Dn(21),Gt=Tn(We);return Iu(21,22,Dt,Ct),vs(27),Er(rn(d.createDoStatement(He,Gt),Y),Ce)}function pS(){const Y=I(),Ce=me();Dn(117);const He=t.getTokenStart(),Ct=Dn(21),Dt=Tn(We);Iu(21,22,Ct,He);const Gt=Lf();return Er(rn(fe(Dt,Gt),Y),Ce)}function lT(){const Y=I(),Ce=me();Dn(99);const He=va(135);Dn(21);let Ct;H()!==27&&(H()===115||H()===121||H()===87||H()===160&&Mi(j0)||H()===135&&Mi(rp)?Ct=mS(!0):Ct=Ln(We));let Dt;if(He?Dn(165):vs(165)){const Gt=Tn(()=>Ru(!0));Dn(22),Dt=ye(He,Ct,Gt,Lf())}else if(vs(103)){const Gt=Tn(We);Dn(22),Dt=d.createForInStatement(Ct,Gt,Lf())}else{Dn(27);const Gt=H()!==27&&H()!==22?Tn(We):void 0;Dn(27);const zr=H()!==22?Tn(We):void 0;Dn(22),Dt=ie(Ct,Gt,zr,Lf())}return Er(rn(Dt,Y),Ce)}function Sp(Y){const Ce=I(),He=me();Dn(Y===252?83:88);const Ct=El()?void 0:Wo();xc();const Dt=Y===252?d.createBreakStatement(Ct):d.createContinueStatement(Ct);return Er(rn(Dt,Ce),He)}function uT(){const Y=I(),Ce=me();Dn(107);const He=El()?void 0:Tn(We);return xc(),Er(rn(d.createReturnStatement(He),Y),Ce)}function al(){const Y=I(),Ce=me();Dn(118);const He=t.getTokenStart(),Ct=Dn(21),Dt=Tn(We);Iu(21,22,Ct,He);const Gt=Wa(67108864,Lf);return Er(rn(d.createWithStatement(Dt,Gt),Y),Ce)}function iu(){const Y=I(),Ce=me();Dn(84);const He=Tn(We);Dn(59);const Ct=la(3,Lf);return Er(rn(d.createCaseClause(He,Ct),Y),Ce)}function _T(){const Y=I();Dn(90),Dn(59);const Ce=la(3,Lf);return rn(d.createDefaultClause(Ce),Y)}function Hu(){return H()===84?iu():_T()}function Ff(){const Y=I();Dn(19);const Ce=la(2,Hu);return Dn(20),rn(d.createCaseBlock(Ce),Y)}function O2(){const Y=I(),Ce=me();Dn(109),Dn(21);const He=Tn(We);Dn(22);const Ct=Ff();return Er(rn(d.createSwitchStatement(He,Ct),Y),Ce)}function fd(){const Y=I(),Ce=me();Dn(111);let He=t.hasPrecedingLineBreak()?void 0:Tn(We);return He===void 0&&(nn++,He=rn(N(""),I())),qc()||hl(He),Er(rn(d.createThrowStatement(He),Y),Ce)}function ev(){const Y=I(),Ce=me();Dn(113);const He=Yh(!1),Ct=H()===85?tv():void 0;let Dt;return(!Ct||H()===98)&&(Dn(98,p.catch_or_finally_expected),Dt=Yh(!1)),Er(rn(d.createTryStatement(He,Ct,Dt),Y),Ce)}function tv(){const Y=I();Dn(85);let Ce;vs(21)?(Ce=rf(),Dn(22)):Ce=void 0;const He=Yh(!1);return rn(d.createCatchClause(Ce,He),Y)}function Eu(){const Y=I(),Ce=me();return Dn(89),xc(),Er(rn(d.createDebuggerStatement(),Y),Ce)}function WC(){const Y=I();let Ce=me(),He;const Ct=H()===21,Dt=Tn(We);return Je(Dt)&&vs(59)?He=d.createLabeledStatement(Dt,Lf()):(qc()||hl(Dt),He=pe(Dt),Ct&&(Ce=!1)),Er(rn(He,Y),Ce)}function xp(){return Ie(),N_(H())&&!t.hasPrecedingLineBreak()}function fT(){return Ie(),H()===86&&!t.hasPrecedingLineBreak()}function pT(){return Ie(),H()===100&&!t.hasPrecedingLineBreak()}function ic(){return Ie(),(N_(H())||H()===9||H()===10||H()===11)&&!t.hasPrecedingLineBreak()}function Y3(){for(;;)switch(H()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return qC();case 135:return HC();case 120:case 156:return JC();case 144:case 145:return eE();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:const Y=H();if(Ie(),t.hasPrecedingLineBreak())return!1;if(Y===138&&H()===156)return!0;continue;case 162:return Ie(),H()===19||H()===80||H()===95;case 102:return Ie(),H()===11||H()===42||H()===19||N_(H());case 95:let Ce=Ie();if(Ce===156&&(Ce=Mi(Ie)),Ce===64||Ce===42||Ce===19||Ce===90||Ce===130||Ce===60)return!0;continue;case 126:Ie();continue;default:return!1}}function F2(){return Mi(Y3)}function dS(){switch(H()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:return!0;case 102:return F2()||Mi(T2);case 87:case 95:return F2();case 134:case 138:case 120:case 144:case 145:case 156:case 162:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return F2()||!Mi(xp);default:return Om()}}function jD(){return Ie(),$r()||H()===19||H()===23}function U_(){return Mi(jD)}function j0(){return Sg(!0)}function Sg(Y){return Ie(),Y&&H()===165?!1:($r()||H()===19)&&!t.hasPrecedingLineBreak()}function qC(){return Mi(Sg)}function rp(Y){return Ie()===160?Sg(Y):!1}function HC(){return Mi(rp)}function Lf(){switch(H()){case 27:return VC();case 19:return Yh(!1);case 115:return L2(I(),me(),void 0);case 121:if(U_())return L2(I(),me(),void 0);break;case 135:if(HC())return L2(I(),me(),void 0);break;case 160:if(qC())return L2(I(),me(),void 0);break;case 100:return gS(I(),me(),void 0);case 86:return yT(I(),me(),void 0);case 101:return I2();case 92:return Q3();case 117:return pS();case 99:return lT();case 88:return Sp(251);case 83:return Sp(252);case 107:return uT();case 118:return al();case 109:return O2();case 111:return fd();case 113:case 85:case 98:return ev();case 89:return Eu();case 60:return Wy();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(F2())return Wy();break}return WC()}function GC(Y){return Y.kind===138}function Wy(){const Y=I(),Ce=me(),He=uh(!0);if(Pe(He,GC)){const Dt=dT(Y);if(Dt)return Dt;for(const Gt of He)Gt.flags|=33554432;return Wa(33554432,()=>Z3(Y,Ce,He))}else return Z3(Y,Ce,He)}function dT(Y){return Wa(33554432,()=>{const Ce=Bl(sn,Y);if(Ce)return Tc(Ce)})}function Z3(Y,Ce,He){switch(H()){case 115:case 121:case 87:case 160:case 135:return L2(Y,Ce,He);case 100:return gS(Y,Ce,He);case 86:return yT(Y,Ce,He);case 120:return gt(Y,Ce,He);case 156:return an(Y,Ce,He);case 94:return Bi(Y,Ce,He);case 162:case 144:case 145:return T_(Y,Ce,He);case 102:return Hn(Y,Ce,He);case 95:switch(Ie(),H()){case 90:case 64:return ph(Y,Ce,He);case 130:return _h(Y,Ce,He);default:return BD(Y,Ce,He)}default:if(He){const Ct=nc(282,!0,p.Declaration_expected);return iw(Ct,Y),Ct.modifiers=He,Ct}return}}function K3(){return Ie()===11}function mT(){return Ie(),H()===161||H()===64}function eE(){return Ie(),!t.hasPrecedingLineBreak()&&(As()||H()===11)}function nv(Y,Ce){if(H()!==19){if(Y&4){er();return}if(El()){xc();return}}return K1(Y,Ce)}function ip(){const Y=I();if(H()===28)return rn(d.createOmittedExpression(),Y);const Ce=va(26),He=Pr(),Ct=Fm();return rn(d.createBindingElement(Ce,void 0,He,Ct),Y)}function lh(){const Y=I(),Ce=va(26),He=$r();let Ct=_n(),Dt;He&&H()!==59?(Dt=Ct,Ct=void 0):(Dn(59),Dt=Pr());const Gt=Fm();return rn(d.createBindingElement(Ce,Ct,Dt,Gt),Y)}function tE(){const Y=I();Dn(19);const Ce=Tn(()=>c_(9,lh));return Dn(20),rn(d.createObjectBindingPattern(Ce),Y)}function gT(){const Y=I();Dn(23);const Ce=Tn(()=>c_(10,ip));return Dn(24),rn(d.createArrayBindingPattern(Ce),Y)}function po(){return H()===19||H()===23||H()===81||$r()}function Pr(Y){return H()===23?gT():H()===19?tE():Kf(Y)}function Hp(){return rf(!0)}function rf(Y){const Ce=I(),He=me(),Ct=Pr(p.Private_identifiers_are_not_allowed_in_variable_declarations);let Dt;Y&&Ct.kind===80&&H()===54&&!t.hasPrecedingLineBreak()&&(Dt=Pc());const Gt=By(),zr=F0(H())?void 0:Fm(),Ui=Ne(Ct,Dt,Gt,zr);return Er(rn(Ui,Ce),He)}function mS(Y){const Ce=I();let He=0;switch(H()){case 115:break;case 121:He|=1;break;case 87:He|=2;break;case 160:He|=4;break;case 135:w.assert(HC()),He|=6,Ie();break;default:w.fail()}Ie();let Ct;if(H()===165&&Mi(nE))Ct=ep();else{const Dt=Ge();ui(Y),Ct=c_(8,Y?rf:Hp),ui(Dt)}return rn(Ue(Ct,He),Ce)}function nE(){return If()&&Ie()===22}function L2(Y,Ce,He){const Ct=mS(!1);xc();const Dt=se(He,Ct);return Er(rn(Dt,Y),Ce)}function gS(Y,Ce,He){const Ct=vn(),Dt=sg(He);Dn(100);const Gt=va(42),zr=Dt&2048?mm():Kf(),Ui=Gt?1:0,Ii=Dt&1024?2:0,gi=Vp();Dt&32&&Ds(!0);const Ki=yn(Ui|Ii),xo=Wt(59,!1),Jo=nv(Ui|Ii,p.or_expected);Ds(Ct);const lo=d.createFunctionDeclaration(He,Gt,zr,gi,Ki,xo,Jo);return Er(rn(lo,Y),Ce)}function hT(){if(H()===137)return Dn(137);if(H()===11&&Mi(Ie)===21)return Di(()=>{const Y=Yr();return Y.text==="constructor"?Y:void 0})}function Zh(Y,Ce,He){return Di(()=>{if(hT()){const Ct=Vp(),Dt=yn(0),Gt=Wt(59,!1),zr=nv(0,p.or_expected),Ui=d.createConstructorDeclaration(He,Dt,zr);return Ui.typeParameters=Ct,Ui.type=Gt,Er(rn(Ui,Y),Ce)}})}function Rm(Y,Ce,He,Ct,Dt,Gt,zr,Ui){const Ii=Ct?1:0,gi=Pe(He,yw)?2:0,Ki=Vp(),xo=yn(Ii|gi),Jo=Wt(59,!1),lo=nv(Ii|gi,Ui),md=d.createMethodDeclaration(He,Ct,Dt,Gt,Ki,xo,Jo,lo);return md.exclamationToken=zr,Er(rn(md,Y),Ce)}function Gp(Y,Ce,He,Ct,Dt){const Gt=!Dt&&!t.hasPrecedingLineBreak()?va(54):void 0,zr=By(),Ui=Sa(90112,Fm);tc(Ct,zr,Ui);const Ii=d.createPropertyDeclaration(He,Ct,Dt||Gt,zr,Ui);return Er(rn(Ii,Y),Ce)}function gm(Y,Ce,He){const Ct=va(42),Dt=_n(),Gt=va(58);return Ct||H()===21||H()===30?Rm(Y,Ce,He,Ct,Dt,Gt,void 0,p.or_expected):Gp(Y,Ce,He,Dt,Gt)}function B0(Y,Ce,He,Ct,Dt){const Gt=_n(),zr=Vp(),Ui=yn(0),Ii=Wt(59,!1),gi=nv(Dt),Ki=Ct===177?d.createGetAccessorDeclaration(He,Gt,Ui,Ii,gi):d.createSetAccessorDeclaration(He,Gt,Ui,gi);return Ki.typeParameters=zr,$f(Ki)&&(Ki.type=Ii),Er(rn(Ki,Y),Ce)}function Kh(){let Y;if(H()===60)return!0;for(;dy(H());){if(Y=H(),KV(Y))return!0;Ie()}if(H()===42||(ee()&&(Y=H(),Ie()),H()===23))return!0;if(Y!==void 0){if(!pf(Y)||Y===153||Y===139)return!0;switch(H()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return El()}}return!1}function e0(Y,Ce,He){Lo(126);const Ct=$C(),Dt=Er(rn(d.createClassStaticBlockDeclaration(Ct),Y),Ce);return Dt.modifiers=He,Dt}function $C(){const Y=Et(),Ce=vn();vi(!1),Ds(!0);const He=Yh(!1);return vi(Y),Ds(Ce),He}function Pl(){if(vn()&&H()===135){const Y=I(),Ce=Wo(p.Expression_expected);Ie();const He=Cu(Y,Ce,!0);return Vy(Y,He)}return Ud()}function rE(){const Y=I();if(!vs(60))return;const Ce=At(Pl);return rn(d.createDecorator(Ce),Y)}function pd(Y,Ce,He){const Ct=I(),Dt=H();if(H()===87&&Ce){if(!Di(Ni))return}else{if(He&&H()===126&&Mi(iv))return;if(Y&&H()===126)return;if(!fu())return}return rn(M(Dt),Ct)}function uh(Y,Ce,He){const Ct=I();let Dt,Gt,zr,Ui=!1,Ii=!1,gi=!1;if(Y&&H()===60)for(;Gt=rE();)Dt=gn(Dt,Gt);for(;zr=pd(Ui,Ce,He);)zr.kind===126&&(Ui=!0),Dt=gn(Dt,zr),Ii=!0;if(Ii&&Y&&H()===60)for(;Gt=rE();)Dt=gn(Dt,Gt),gi=!0;if(gi)for(;zr=pd(Ui,Ce,He);)zr.kind===126&&(Ui=!0),Dt=gn(Dt,zr);return Dt&&js(Dt,Ct)}function $p(){let Y;if(H()===134){const Ce=I();Ie();const He=rn(M(134),Ce);Y=js([He],Ce)}return Y}function hS(){const Y=I(),Ce=me();if(H()===27)return Ie(),Er(rn(d.createSemicolonClassElement(),Y),Ce);const He=uh(!0,!0,!0);if(H()===126&&Mi(iv))return e0(Y,Ce,He);if(qr(139))return B0(Y,Ce,He,177,0);if(qr(153))return B0(Y,Ce,He,178,0);if(H()===137||H()===11){const Ct=Zh(Y,Ce,He);if(Ct)return Ct}if(ur())return dr(Y,Ce,He);if(N_(H())||H()===11||H()===9||H()===42||H()===23)if(Pe(He,GC)){for(const Dt of He)Dt.flags|=33554432;return Wa(33554432,()=>gm(Y,Ce,He))}else return gm(Y,Ce,He);if(He){const Ct=nc(80,!0,p.Declaration_expected);return Gp(Y,Ce,He,Ct,void 0)}return w.fail("Should not have attempted to parse class member declaration.")}function M2(){const Y=I(),Ce=me(),He=uh(!0);if(H()===86)return Xp(Y,Ce,He,231);const Ct=nc(282,!0,p.Expression_expected);return iw(Ct,Y),Ct.modifiers=He,Ct}function XC(){return Xp(I(),me(),void 0,231)}function yT(Y,Ce,He){return Xp(Y,Ce,He,263)}function Xp(Y,Ce,He,Ct){const Dt=vn();Dn(86);const Gt=qo(),zr=Vp();Pe(He,Uk)&&Ds(!0);const Ui=vS();let Ii;Dn(19)?(Ii=oe(),Dn(20)):Ii=ep(),Ds(Dt);const gi=Ct===263?d.createClassDeclaration(He,Gt,zr,Ui,Ii):d.createClassExpression(He,Gt,zr,Ui,Ii);return Er(rn(gi,Y),Ce)}function qo(){return $r()&&!yS()?Fu($r()):void 0}function yS(){return H()===119&&Mi(ru)}function vS(){if(P())return la(22,J0)}function J0(){const Y=I(),Ce=H();w.assert(Ce===96||Ce===119),Ie();const He=c_(7,rv);return rn(d.createHeritageClause(Ce,He),Y)}function rv(){const Y=I(),Ce=Ud();if(Ce.kind===233)return Ce;const He=R2();return rn(d.createExpressionWithTypeArguments(Ce,He),Y)}function R2(){return H()===30?hf(20,Jl,30,32):void 0}function P(){return H()===96||H()===119}function oe(){return la(5,hS)}function gt(Y,Ce,He){Dn(120);const Ct=Wo(),Dt=Vp(),Gt=vS(),zr=k2(),Ui=d.createInterfaceDeclaration(He,Ct,Dt,Gt,zr);return Er(rn(Ui,Y),Ce)}function an(Y,Ce,He){Dn(156),t.hasPrecedingLineBreak()&&pn(p.Line_break_not_permitted_here);const Ct=Wo(),Dt=Vp();Dn(64);const Gt=H()===141&&Di(Qx)||Jl();xc();const zr=d.createTypeAliasDeclaration(He,Ct,Dt,Gt);return Er(rn(zr,Y),Ce)}function jr(){const Y=I(),Ce=me(),He=_n(),Ct=Tn(Fm);return Er(rn(d.createEnumMember(He,Ct),Y),Ce)}function Bi(Y,Ce,He){Dn(94);const Ct=Wo();let Dt;Dn(19)?(Dt=U(()=>c_(6,jr)),Dn(20)):Dt=ep();const Gt=d.createEnumDeclaration(He,Ct,Dt);return Er(rn(Gt,Y),Ce)}function bi(){const Y=I();let Ce;return Dn(19)?(Ce=la(1,Lf),Dn(20)):Ce=ep(),rn(d.createModuleBlock(Ce),Y)}function ss(Y,Ce,He,Ct){const Dt=Ct&32,Gt=Ct&8?Gl():Wo(),zr=vs(25)?ss(I(),!1,void 0,8|Dt):bi(),Ui=d.createModuleDeclaration(He,Gt,zr,Ct);return Er(rn(Ui,Y),Ce)}function Ca(Y,Ce,He){let Ct=0,Dt;H()===162?(Dt=Wo(),Ct|=2048):(Dt=Yr(),Dt.text=ku(Dt.text));let Gt;H()===19?Gt=bi():xc();const zr=d.createModuleDeclaration(He,Dt,Gt,Ct);return Er(rn(zr,Y),Ce)}function T_(Y,Ce,He){let Ct=0;if(H()===162)return Ca(Y,Ce,He);if(vs(145))Ct|=32;else if(Dn(144),H()===11)return Ca(Y,Ce,He);return ss(Y,Ce,He,Ct)}function sf(){return H()===149&&Mi(dd)}function dd(){return Ie()===21}function iv(){return Ie()===19}function Ti(){return Ie()===44}function _h(Y,Ce,He){Dn(130),Dn(145);const Ct=Wo();xc();const Dt=d.createNamespaceExportDeclaration(Ct);return Dt.modifiers=He,Er(rn(Dt,Y),Ce)}function Hn(Y,Ce,He){Dn(102);const Ct=t.getTokenFullStart();let Dt;As()&&(Dt=Wo());let Gt=!1;if((Dt==null?void 0:Dt.escapedText)==="type"&&(H()!==161||As()&&Mi(mT))&&(As()||av())&&(Gt=!0,Dt=As()?Wo():void 0),Dt&&!vT())return bS(Y,Ce,He,Dt,Gt);let zr;(Dt||H()===42||H()===19)&&(zr=xg(Dt,Ct,Gt),Dn(161));const Ui=bT(),Ii=H();let gi;(Ii===118||Ii===132)&&!t.hasPrecedingLineBreak()&&(gi=sv(Ii)),xc();const Ki=d.createImportDeclaration(He,zr,Ui,gi);return Er(rn(Ki,Y),Ce)}function QC(){const Y=I(),Ce=N_(H())?Gl():Zc(11);Dn(59);const He=Ru(!0);return rn(d.createImportAttribute(Ce,He),Y)}function sv(Y,Ce){const He=I();Ce||Dn(Y);const Ct=t.getTokenStart();if(Dn(19)){const Dt=t.hasPrecedingLineBreak(),Gt=c_(24,QC,!0);if(!Dn(20)){const zr=pc(ze);zr&&zr.code===p._0_expected.code&&Ua(zr,T4(Se,Ae,Ct,1,p.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return rn(d.createImportAttributes(Gt,Dt,Y),He)}else{const Dt=js([],I(),void 0,!1);return rn(d.createImportAttributes(Dt,!1,Y),He)}}function av(){return H()===42||H()===19}function vT(){return H()===28||H()===161}function bS(Y,Ce,He,Ct,Dt){Dn(64);const Gt=fh();xc();const zr=d.createImportEqualsDeclaration(He,Dt,Ct,Gt);return Er(rn(zr,Y),Ce)}function xg(Y,Ce,He){let Ct;return(!Y||vs(28))&&(Ct=H()===42?sJ():ov(275)),rn(d.createImportClause(He,Y,Ct),Ce)}function fh(){return sf()?iE():te(!1)}function iE(){const Y=I();Dn(149),Dn(21);const Ce=bT();return Dn(22),rn(d.createExternalModuleReference(Ce),Y)}function bT(){if(H()===11){const Y=Yr();return Y.text=ku(Y.text),Y}else return We()}function sJ(){const Y=I();Dn(42),Dn(130);const Ce=Wo();return rn(d.createNamespaceImport(Ce),Y)}function ov(Y){const Ce=I(),He=Y===275?d.createNamedImports(hf(23,S5,19,20)):d.createNamedExports(hf(23,b5,19,20));return rn(He,Ce)}function b5(){const Y=me();return Er(j2(281),Y)}function S5(){return j2(276)}function j2(Y){const Ce=I();let He=pf(H())&&!As(),Ct=t.getTokenStart(),Dt=t.getTokenEnd(),Gt=!1,zr,Ui=!0,Ii=Gl();if(Ii.escapedText==="type")if(H()===130){const xo=Gl();if(H()===130){const Jo=Gl();N_(H())?(Gt=!0,zr=xo,Ii=Ki(),Ui=!1):(zr=Ii,Ii=Jo,Ui=!1)}else N_(H())?(zr=Ii,Ui=!1,Ii=Ki()):(Gt=!0,Ii=xo)}else N_(H())&&(Gt=!0,Ii=Ki());Ui&&H()===130&&(zr=Ii,Dn(130),Ii=Ki()),Y===276&&He&&q(Ct,Dt,p.Identifier_expected);const gi=Y===276?d.createImportSpecifier(Gt,zr,Ii):d.createExportSpecifier(Gt,zr,Ii);return rn(gi,Ce);function Ki(){return He=pf(H())&&!As(),Ct=t.getTokenStart(),Dt=t.getTokenEnd(),Gl()}}function jm(Y){return rn(d.createNamespaceExport(Gl()),Y)}function BD(Y,Ce,He){const Ct=vn();Ds(!0);let Dt,Gt,zr;const Ui=vs(156),Ii=I();vs(42)?(vs(130)&&(Dt=jm(Ii)),Dn(161),Gt=bT()):(Dt=ov(279),(H()===161||H()===11&&!t.hasPrecedingLineBreak())&&(Dn(161),Gt=bT()));const gi=H();Gt&&(gi===118||gi===132)&&!t.hasPrecedingLineBreak()&&(zr=sv(gi)),xc(),Ds(Ct);const Ki=d.createExportDeclaration(He,Ui,Dt,Gt,zr);return Er(rn(Ki,Y),Ce)}function ph(Y,Ce,He){const Ct=vn();Ds(!0);let Dt;vs(64)?Dt=!0:Dn(90);const Gt=Ru(!0);xc(),Ds(Ct);const zr=d.createExportAssignment(He,Dt,Gt);return Er(rn(zr,Y),Ce)}let YC;(Y=>{Y[Y.SourceElements=0]="SourceElements",Y[Y.BlockStatements=1]="BlockStatements",Y[Y.SwitchClauses=2]="SwitchClauses",Y[Y.SwitchClauseStatements=3]="SwitchClauseStatements",Y[Y.TypeMembers=4]="TypeMembers",Y[Y.ClassMembers=5]="ClassMembers",Y[Y.EnumMembers=6]="EnumMembers",Y[Y.HeritageClauseElement=7]="HeritageClauseElement",Y[Y.VariableDeclarations=8]="VariableDeclarations",Y[Y.ObjectBindingElements=9]="ObjectBindingElements",Y[Y.ArrayBindingElements=10]="ArrayBindingElements",Y[Y.ArgumentExpressions=11]="ArgumentExpressions",Y[Y.ObjectLiteralMembers=12]="ObjectLiteralMembers",Y[Y.JsxAttributes=13]="JsxAttributes",Y[Y.JsxChildren=14]="JsxChildren",Y[Y.ArrayLiteralMembers=15]="ArrayLiteralMembers",Y[Y.Parameters=16]="Parameters",Y[Y.JSDocParameters=17]="JSDocParameters",Y[Y.RestProperties=18]="RestProperties",Y[Y.TypeParameters=19]="TypeParameters",Y[Y.TypeArguments=20]="TypeArguments",Y[Y.TupleElementTypes=21]="TupleElementTypes",Y[Y.HeritageClauses=22]="HeritageClauses",Y[Y.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",Y[Y.ImportAttributes=24]="ImportAttributes",Y[Y.JSDocComment=25]="JSDocComment",Y[Y.Count=26]="Count"})(YC||(YC={}));let x5;(Y=>{Y[Y.False=0]="False",Y[Y.True=1]="True",Y[Y.Unknown=2]="Unknown"})(x5||(x5={}));let Tg;(Y=>{function Ce(gi,Ki,xo){zi("file.js",gi,99,void 0,1,0),t.setText(gi,Ki,xo),yt=t.scan();const Jo=He(),lo=Jt("file.js",99,1,!1,[],M(1),0,ao),md=Ak(ze,lo);return st&&(lo.jsDocDiagnostics=Ak(st,lo)),Os(),Jo?{jsDocTypeExpression:Jo,diagnostics:md}:void 0}Y.parseJSDocTypeExpressionForTests=Ce;function He(gi){const Ki=I(),xo=(gi?vs:Dn)(19),Jo=Wa(16777216,_m);(!gi||xo)&&Oc(20);const lo=d.createJSDocTypeExpression(Jo);return et(lo),rn(lo,Ki)}Y.parseJSDocTypeExpression=He;function Ct(){const gi=I(),Ki=vs(19),xo=I();let Jo=te(!1);for(;H()===81;)Li(),xt(),Jo=rn(d.createJSDocMemberName(Jo,Wo()),xo);Ki&&Oc(20);const lo=d.createJSDocNameReference(Jo);return et(lo),rn(lo,gi)}Y.parseJSDocNameReference=Ct;function Dt(gi,Ki,xo){zi("",gi,99,void 0,1,0);const Jo=Wa(16777216,()=>Ii(Ki,xo)),md=Ak(ze,{languageVariant:0,text:gi});return Os(),Jo?{jsDoc:Jo,diagnostics:md}:void 0}Y.parseIsolatedJSDocComment=Dt;function Gt(gi,Ki,xo){const Jo=yt,lo=ze.length,md=Zt,kg=Wa(16777216,()=>Ii(Ki,xo));return eo(kg,gi),Zn&524288&&(st||(st=[]),Mr(st,ze,lo)),yt=Jo,ze.length=lo,Zt=md,kg}Y.parseJSDocComment=Gt;let zr;(gi=>{gi[gi.BeginningOfLine=0]="BeginningOfLine",gi[gi.SawAsterisk=1]="SawAsterisk",gi[gi.SavingComments=2]="SavingComments",gi[gi.SavingBackticks=3]="SavingBackticks"})(zr||(zr={}));let Ui;(gi=>{gi[gi.Property=1]="Property",gi[gi.Parameter=2]="Parameter",gi[gi.CallbackParameter=4]="CallbackParameter"})(Ui||(Ui={}));function Ii(gi=0,Ki){const xo=Ae,Jo=Ki===void 0?xo.length:gi+Ki;if(Ki=Jo-gi,w.assert(gi>=0),w.assert(gi<=Jo),w.assert(Jo<=xo.length),!YH(xo,gi))return;let lo,md,kg,t0,z0,U0=[];const cv=[],Mf=sn;sn|=1<<25;const ST=t.scanRange(gi+3,Ki-5,sE);return sn=Mf,ST;function sE(){let Nn=1,Vr,Lr=gi-(xo.lastIndexOf(` +`,gi)+1)+4;function Vi(Mo){Vr||(Vr=Lr),U0.push(Mo),Lr+=Mo.length}for(xt();qy(5););qy(4)&&(Nn=0,Lr=0);e:for(;;){switch(H()){case 60:zD(U0),z0||(z0=I()),VD(aE(Lr)),Nn=0,Vr=void 0;break;case 4:U0.push(t.getTokenText()),Nn=0,Lr=0;break;case 42:const Mo=t.getTokenText();Nn===1?(Nn=2,Vi(Mo)):(w.assert(Nn===0),Nn=1,Lr+=Mo.length);break;case 5:w.assert(Nn!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");const k_=t.getTokenText();Vr!==void 0&&Lr+k_.length>Vr&&U0.push(k_.slice(Vr-Lr)),Lr+=k_.length;break;case 1:break e;case 82:Nn=2,Vi(t.getTokenValue());break;case 19:Nn=2;const dh=t.getTokenFullStart(),sp=t.getTokenEnd()-1,Jm=wl(sp);if(Jm){t0||JD(U0),cv.push(rn(d.createJSDocText(U0.join("")),t0??gi,dh)),cv.push(Jm),U0=[],t0=t.getTokenEnd();break}default:Nn=2,Vi(t.getTokenText());break}Nn===2?Ft(!1):xt()}const Ri=U0.join("").trimEnd();cv.length&&Ri.length&&cv.push(rn(d.createJSDocText(Ri),t0??gi,z0)),cv.length&&lo&&w.assertIsDefined(z0,"having parsed tags implies that the end of the comment span should be set");const mo=lo&&js(lo,md,kg);return rn(d.createJSDocComment(cv.length?js(cv,gi,z0):Ri.length?Ri:void 0,mo),gi,Jo)}function JD(Nn){for(;Nn.length&&(Nn[0]===` +`||Nn[0]==="\r");)Nn.shift()}function zD(Nn){for(;Nn.length;){const Vr=Nn[Nn.length-1].trimEnd();if(Vr==="")Nn.pop();else if(Vr.lengthk_&&(Vi.push(W0.slice(k_-Nn)),Mo=2),Nn+=W0.length;break;case 19:Mo=2;const ap=t.getTokenFullStart(),lE=t.getTokenEnd()-1,T5=wl(lE);T5?(Ri.push(rn(d.createJSDocText(Vi.join("")),mo??Lr,ap)),Ri.push(T5),Vi=[],mo=t.getTokenEnd()):dh(t.getTokenText());break;case 62:Mo===3?Mo=2:Mo=3,dh(t.getTokenText());break;case 82:Mo!==3&&(Mo=2),dh(t.getTokenValue());break;case 42:if(Mo===0){Mo=1,Nn+=1;break}default:Mo!==3&&(Mo=2),dh(t.getTokenText());break}Mo===2||Mo===3?sp=Ft(Mo===3):sp=xt()}JD(Vi);const Jm=Vi.join("").trimEnd();if(Ri.length)return Jm.length&&Ri.push(rn(d.createJSDocText(Jm),mo??Lr)),js(Ri,Lr,t.getTokenEnd());if(Jm.length)return Jm}function wl(Nn){const Vr=Di(ZC);if(!Vr)return;xt(),V0();const Lr=J2(),Vi=[];for(;H()!==20&&H()!==4&&H()!==1;)Vi.push(t.getTokenText()),xt();const Ri=Vr==="link"?d.createJSDocLink:Vr==="linkcode"?d.createJSDocLinkCode:d.createJSDocLinkPlain;return rn(Ri(Lr,Vi.join("")),Nn,t.getTokenEnd())}function J2(){if(N_(H())){const Nn=I();let Vr=Gl();for(;vs(25);)Vr=rn(d.createQualifiedName(Vr,H()===81?nc(80,!1):Wo()),Nn);for(;H()===81;)Li(),xt(),Vr=rn(d.createJSDocMemberName(Vr,Wo()),Nn);return Vr}}function ZC(){if(lv(),H()===19&&xt()===60&&N_(xt())){const Nn=t.getTokenValue();if(UD(Nn))return Nn}}function UD(Nn){return Nn==="link"||Nn==="linkcode"||Nn==="linkplain"}function uv(Nn,Vr,Lr,Vi){return rn(d.createJSDocUnknownTag(Vr,Tp(Nn,I(),Lr,Vi)),Nn)}function VD(Nn){Nn&&(lo?lo.push(Nn):(lo=[Nn],md=Nn.pos),kg=Nn.end)}function ar(){return lv(),H()===19?He():void 0}function b(){const Nn=qy(23);Nn&&V0();const Vr=qy(62),Lr=cE();return Vr&&Ja(62),Nn&&(V0(),va(64)&&We(),Dn(24)),{name:Lr,isBracketed:Nn}}function A(Nn){switch(Nn.kind){case 151:return!0;case 188:return A(Nn.elementType);default:return id(Nn)&&Je(Nn.typeName)&&Nn.typeName.escapedText==="Object"&&!Nn.typeArguments}}function B(Nn,Vr,Lr,Vi){let Ri=ar(),mo=!Ri;lv();const{name:Mo,isBracketed:k_}=b(),dh=lv();mo&&!Mi(ZC)&&(Ri=ar());const sp=Tp(Nn,I(),Vi,dh),Jm=ue(Ri,Mo,Lr,Vi);Jm&&(Ri=Jm,mo=!0);const W0=Lr===1?d.createJSDocPropertyTag(Vr,Mo,k_,Ri,mo,sp):d.createJSDocParameterTag(Vr,Mo,k_,Ri,mo,sp);return rn(W0,Nn)}function ue(Nn,Vr,Lr,Vi){if(Nn&&A(Nn.type)){const Ri=I();let mo,Mo;for(;mo=Di(()=>cJ(Lr,Vi,Vr));)mo.kind===348||mo.kind===355?Mo=gn(Mo,mo):mo.kind===352&&Fe(mo.tagName,p.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(Mo){const k_=rn(d.createJSDocTypeLiteral(Mo,Nn.type.kind===188),Ri);return rn(d.createJSDocTypeExpression(k_),Ri)}}}function Qe(Nn,Vr,Lr,Vi){Pe(lo,sM)&&q(Vr.pos,t.getTokenStart(),p._0_tag_already_specified,Hi(Vr.escapedText));const Ri=ar();return rn(d.createJSDocReturnTag(Vr,Ri,Tp(Nn,I(),Lr,Vi)),Nn)}function $t(Nn,Vr,Lr,Vi){Pe(lo,Dw)&&q(Vr.pos,t.getTokenStart(),p._0_tag_already_specified,Hi(Vr.escapedText));const Ri=He(!0),mo=Lr!==void 0&&Vi!==void 0?Tp(Nn,I(),Lr,Vi):void 0;return rn(d.createJSDocTypeTag(Vr,Ri,mo),Nn)}function Sr(Nn,Vr,Lr,Vi){const mo=H()===23||Mi(()=>xt()===60&&N_(xt())&&UD(t.getTokenValue()))?void 0:Ct(),Mo=Lr!==void 0&&Vi!==void 0?Tp(Nn,I(),Lr,Vi):void 0;return rn(d.createJSDocSeeTag(Vr,mo,Mo),Nn)}function as(Nn,Vr,Lr,Vi){const Ri=ar(),mo=Tp(Nn,I(),Lr,Vi);return rn(d.createJSDocThrowsTag(Vr,Ri,mo),Nn)}function sc(Nn,Vr,Lr,Vi){const Ri=I(),mo=Bm();let Mo=t.getTokenFullStart();const k_=Tp(Nn,Mo,Lr,Vi);k_||(Mo=t.getTokenFullStart());const dh=typeof k_!="string"?js(zn([rn(mo,Ri,Mo)],k_),Ri):mo.text+k_;return rn(d.createJSDocAuthorTag(Vr,dh),Nn)}function Bm(){const Nn=[];let Vr=!1,Lr=t.getToken();for(;Lr!==1&&Lr!==4;){if(Lr===30)Vr=!0;else{if(Lr===60&&!Vr)break;if(Lr===32&&Vr){Nn.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}Nn.push(t.getTokenText()),Lr=xt()}return d.createJSDocText(Nn.join(""))}function _v(Nn,Vr,Lr,Vi){const Ri=Nee();return rn(d.createJSDocImplementsTag(Vr,Ri,Tp(Nn,I(),Lr,Vi)),Nn)}function hm(Nn,Vr,Lr,Vi){const Ri=Nee();return rn(d.createJSDocAugmentsTag(Vr,Ri,Tp(Nn,I(),Lr,Vi)),Nn)}function z2(Nn,Vr,Lr,Vi){const Ri=He(!1),mo=Lr!==void 0&&Vi!==void 0?Tp(Nn,I(),Lr,Vi):void 0;return rn(d.createJSDocSatisfiesTag(Vr,Ri,mo),Nn)}function Nee(){const Nn=vs(19),Vr=I(),Lr=a0e();t.setInJSDocType(!0);const Vi=R2();t.setInJSDocType(!1);const Ri=d.createExpressionWithTypeArguments(Lr,Vi),mo=rn(Ri,Vr);return Nn&&Dn(20),mo}function a0e(){const Nn=I();let Vr=V2();for(;vs(25);){const Lr=V2();Vr=rn(Z(Vr,Lr),Nn)}return Vr}function U2(Nn,Vr,Lr,Vi,Ri){return rn(Vr(Lr,Tp(Nn,I(),Vi,Ri)),Nn)}function aJ(Nn,Vr,Lr,Vi){const Ri=He(!0);return V0(),rn(d.createJSDocThisTag(Vr,Ri,Tp(Nn,I(),Lr,Vi)),Nn)}function Iee(Nn,Vr,Lr,Vi){const Ri=He(!0);return V0(),rn(d.createJSDocEnumTag(Vr,Ri,Tp(Nn,I(),Lr,Vi)),Nn)}function WD(Nn,Vr,Lr,Vi){let Ri=ar();lv();const mo=oJ();V0();let Mo=Za(Lr),k_;if(!Ri||A(Ri.type)){let sp,Jm,W0,ap=!1;for(;(sp=Di(()=>Lee(Lr)))&&sp.kind!==352;)if(ap=!0,sp.kind===351)if(Jm){const lE=pn(p.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);lE&&Ua(lE,T4(Se,Ae,0,0,p.The_tag_was_first_specified_here));break}else Jm=sp;else W0=gn(W0,sp);if(ap){const lE=Ri&&Ri.type.kind===188,T5=d.createJSDocTypeLiteral(W0,lE);Ri=Jm&&Jm.typeExpression&&!A(Jm.typeExpression.type)?Jm.typeExpression:rn(T5,Nn),k_=Ri.end}}k_=k_||Mo!==void 0?I():(mo??Ri??Vr).end,Mo||(Mo=Tp(Nn,k_,Lr,Vi));const dh=d.createJSDocTypedefTag(Vr,Ri,mo,Mo);return rn(dh,Nn,k_)}function oJ(Nn){const Vr=t.getTokenStart();if(!N_(H()))return;const Lr=V2();if(vs(25)){const Vi=oJ(!0),Ri=d.createModuleDeclaration(void 0,Lr,Vi,Nn?8:void 0);return rn(Ri,Vr)}return Nn&&(Lr.flags|=4096),Lr}function Oee(Nn){const Vr=I();let Lr,Vi;for(;Lr=Di(()=>cJ(4,Nn));){if(Lr.kind===352){Fe(Lr.tagName,p.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}Vi=gn(Vi,Lr)}return js(Vi||[],Vr)}function Fee(Nn,Vr){const Lr=Oee(Vr),Vi=Di(()=>{if(qy(60)){const Ri=aE(Vr);if(Ri&&Ri.kind===349)return Ri}});return rn(d.createJSDocSignature(void 0,Lr,Vi),Nn)}function o0e(Nn,Vr,Lr,Vi){const Ri=oJ();V0();let mo=Za(Lr);const Mo=Fee(Nn,Lr);mo||(mo=Tp(Nn,I(),Lr,Vi));const k_=mo!==void 0?I():Mo.end;return rn(d.createJSDocCallbackTag(Vr,Mo,Ri,mo),Nn,k_)}function c0e(Nn,Vr,Lr,Vi){V0();let Ri=Za(Lr);const mo=Fee(Nn,Lr);Ri||(Ri=Tp(Nn,I(),Lr,Vi));const Mo=Ri!==void 0?I():mo.end;return rn(d.createJSDocOverloadTag(Vr,mo,Ri),Nn,Mo)}function oE(Nn,Vr){for(;!Je(Nn)||!Je(Vr);)if(!Je(Nn)&&!Je(Vr)&&Nn.right.escapedText===Vr.right.escapedText)Nn=Nn.left,Vr=Vr.left;else return!1;return Nn.escapedText===Vr.escapedText}function Lee(Nn){return cJ(1,Nn)}function cJ(Nn,Vr,Lr){let Vi=!0,Ri=!1;for(;;)switch(xt()){case 60:if(Vi){const mo=SS(Nn,Vr);return mo&&(mo.kind===348||mo.kind===355)&&Lr&&(Je(mo.name)||!oE(Lr,mo.name.left))?!1:mo}Ri=!1;break;case 4:Vi=!0,Ri=!1;break;case 42:Ri&&(Vi=!1),Ri=!0;break;case 80:Vi=!1;break;case 1:return!1}}function SS(Nn,Vr){w.assert(H()===60);const Lr=t.getTokenFullStart();xt();const Vi=V2(),Ri=lv();let mo;switch(Vi.escapedText){case"type":return Nn===1&&$t(Lr,Vi);case"prop":case"property":mo=1;break;case"arg":case"argument":case"param":mo=6;break;case"template":return pv(Lr,Vi,Vr,Ri);case"this":return aJ(Lr,Vi,Vr,Ri);default:return!1}return Nn&mo?B(Lr,Vi,Nn,Vr):!1}function fr(){const Nn=I(),Vr=qy(23);Vr&&V0();const Lr=uh(!1,!0),Vi=V2(p.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);let Ri;if(Vr&&(V0(),Dn(64),Ri=Wa(16777216,_m),Dn(24)),!nl(Vi))return rn(d.createTypeParameterDeclaration(Lr,Vi,void 0,Ri),Nn)}function fv(){const Nn=I(),Vr=[];do{V0();const Lr=fr();Lr!==void 0&&Vr.push(Lr),lv()}while(qy(28));return js(Vr,Nn)}function pv(Nn,Vr,Lr,Vi){const Ri=H()===19?He():void 0,mo=fv();return rn(d.createJSDocTemplateTag(Vr,Ri,mo,Tp(Nn,I(),Lr,Vi)),Nn)}function qy(Nn){return H()===Nn?(xt(),!0):!1}function cE(){let Nn=V2();for(vs(23)&&Dn(24);vs(25);){const Vr=V2();vs(23)&&Dn(24),Nn=ct(Nn,Vr)}return Nn}function V2(Nn){if(!N_(H()))return nc(80,!Nn,Nn||p.Identifier_expected);nn++;const Vr=t.getTokenStart(),Lr=t.getTokenEnd(),Vi=H(),Ri=ku(t.getTokenValue()),mo=rn(N(Ri,Vi),Vr,Lr);return xt(),mo}}})(Tg=e.JSDocParser||(e.JSDocParser={}))})(_2||(_2={})),(e=>{function t(T,C,N,D){if(D=D||w.shouldAssert(2),d(T,C,N,D),cie(N))return T;if(T.statements.length===0)return _2.parseSourceFile(T.fileName,C,T.languageVersion,void 0,!0,T.scriptKind,T.setExternalModuleIndicator,T.jsDocParsingMode);const M=T;w.assert(!M.hasBeenIncrementallyParsed),M.hasBeenIncrementallyParsed=!0,_2.fixupParentReferences(M);const V=T.text,G=y(T),Z=f(T,N);d(T,C,Z,D),w.assert(Z.span.start<=N.span.start),w.assert(pl(Z.span)===pl(N.span)),w.assert(pl(_P(Z))===pl(_P(N)));const z=_P(Z).length-Z.span.length;u(M,Z.span.start,pl(Z.span),pl(_P(Z)),z,V,C,D);const ce=_2.parseSourceFile(T.fileName,C,T.languageVersion,G,!0,T.scriptKind,T.setExternalModuleIndicator,T.jsDocParsingMode);return ce.commentDirectives=r(T.commentDirectives,ce.commentDirectives,Z.span.start,pl(Z.span),z,V,C,D),ce.impliedNodeFormat=T.impliedNodeFormat,ce}e.updateSourceFile=t;function r(T,C,N,D,M,V,G,Z){if(!T)return C;let z,ce=!1;for(const ne of T){const{range:ge,type:ve}=ne;if(ge.endD){J();const Q={range:{pos:ge.pos+M,end:ge.end+M},type:ve};z=gn(z,Q),Z&&w.assert(V.substring(ge.pos,ge.end)===G.substring(Q.range.pos,Q.range.end))}}return J(),z;function J(){ce||(ce=!0,z?C&&z.push(...C):z=C)}}function i(T,C,N,D,M,V){C?Z(T):G(T);return;function G(z){let ce="";if(V&&s(z)&&(ce=D.substring(z.pos,z.end)),z._children&&(z._children=void 0),Gg(z,z.pos+N,z.end+N),V&&s(z)&&w.assert(ce===M.substring(z.pos,z.end)),Xs(z,G,Z),dp(z))for(const J of z.jsDoc)G(J);c(z,V)}function Z(z){z._children=void 0,Gg(z,z.pos+N,z.end+N);for(const ce of z)G(ce)}}function s(T){switch(T.kind){case 11:case 9:case 80:return!0}return!1}function o(T,C,N,D,M){w.assert(T.end>=C,"Adjusting an element that was entirely before the change range"),w.assert(T.pos<=N,"Adjusting an element that was entirely after the change range"),w.assert(T.pos<=T.end);const V=Math.min(T.pos,D),G=T.end>=N?T.end+M:Math.min(T.end,D);w.assert(V<=G),T.parent&&(w.assertGreaterThanOrEqual(V,T.parent.pos),w.assertLessThanOrEqual(G,T.parent.end)),Gg(T,V,G)}function c(T,C){if(C){let N=T.pos;const D=M=>{w.assert(M.pos>=N),N=M.end};if(dp(T))for(const M of T.jsDoc)D(M);Xs(T,D),w.assert(N<=T.end)}}function u(T,C,N,D,M,V,G,Z){z(T);return;function z(J){if(w.assert(J.pos<=J.end),J.pos>N){i(J,!1,M,V,G,Z);return}const ne=J.end;if(ne>=C){if(J.intersectsChange=!0,J._children=void 0,o(J,C,N,D,M),Xs(J,z,ce),dp(J))for(const ge of J.jsDoc)z(ge);c(J,Z);return}w.assert(neN){i(J,!0,M,V,G,Z);return}const ne=J.end;if(ne>=C){J.intersectsChange=!0,J._children=void 0,o(J,C,N,D,M);for(const ge of J)z(ge);return}w.assert(ne0&&G<=1;G++){const Z=g(T,D);w.assert(Z.pos<=D);const z=Z.pos;D=Math.max(0,z-1)}const M=Il(D,pl(C.span)),V=C.newLength+(C.span.start-D);return oA(M,V)}function g(T,C){let N=T,D;if(Xs(T,V),D){const G=M(D);G.pos>N.pos&&(N=G)}return N;function M(G){for(;;){const Z=Tq(G);if(Z)G=Z;else return G}}function V(G){if(!nl(G))if(G.pos<=C){if(G.pos>=N.pos&&(N=G),CC),!0}}function d(T,C,N,D){const M=T.text;if(N&&(w.assert(M.length-N.span.length+N.newLength===C.length),D||w.shouldAssert(3))){const V=M.substr(0,N.span.start),G=C.substr(0,N.span.start);w.assert(V===G);const Z=M.substring(pl(N.span),M.length),z=C.substring(pl(_P(N)),C.length);w.assert(Z===z)}}function y(T){let C=T.statements,N=0;w.assert(N=ce.pos&&G=ce.pos&&G{T[T.Value=-1]="Value"})(x||(x={}))})(rG||(rG={})),iG=new Map,HTe=/^\/\/\/\s*<(\S+)\s.*?\/>/im,GTe=/^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im}});function hM(e){const t=new Map,r=new Map;return dt(e,i=>{t.set(i.name.toLowerCase(),i),i.shortName&&r.set(i.shortName,i.name)}),{optionsNameMap:t,shortOptionNames:r}}function G4(){return Nke||(Nke=hM(Vh))}function mce(e){return $Te(e,ll)}function $Te(e,t){const r=Vs(e.type.keys()),i=(e.deprecatedKeys?r.filter(s=>!e.deprecatedKeys.has(s)):r).map(s=>`'${s}'`).join(", ");return t(p.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,i)}function yM(e,t,r){return Eke(e,(t??"").trim(),r)}function gce(e,t="",r){if(t=t.trim(),fs(t,"-"))return;if(e.type==="listOrElement"&&!t.includes(","))return iC(e,t,r);if(t==="")return[];const i=t.split(",");switch(e.element.type){case"number":return Oi(i,s=>iC(e.element,parseInt(s),r));case"string":return Oi(i,s=>iC(e.element,s||"",r));case"boolean":case"object":return w.fail(`List of ${e.element.type} is not yet supported.`);default:return Oi(i,s=>yM(e.element,s,r))}}function XTe(e){return e.name}function hce(e,t,r,i,s){var o;if((o=t.alternateMode)!=null&&o.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return f2(s,i,t.alternateMode.diagnostic,e);const c=eP(e,t.optionDeclarations,XTe);return c?f2(s,i,t.unknownDidYouMeanDiagnostic,r||e,c.name):f2(s,i,t.unknownOptionDiagnostic,r||e)}function sG(e,t,r){const i={};let s;const o=[],c=[];return u(t),{options:i,watchOptions:s,fileNames:o,errors:c};function u(g){let d=0;for(;dBu.readFile(T)));if(!Ls(d)){c.push(d);return}const y=[];let x=0;for(;;){for(;x=d.length)break;const T=x;if(d.charCodeAt(T)===34){for(x++;x32;)x++;y.push(d.substring(T,x))}}u(y)}}function QTe(e,t,r,i,s,o){if(i.isTSConfigOnly){const c=e[t];c==="null"?(s[i.name]=void 0,t++):i.type==="boolean"?c==="false"?(s[i.name]=iC(i,!1,o),t++):(c==="true"&&t++,o.push(ll(p.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(o.push(ll(p.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),c&&!fs(c,"-")&&t++)}else if(!e[t]&&i.type!=="boolean"&&o.push(ll(r.optionTypeMismatchDiagnostic,i.name,lG(i))),e[t]!=="null")switch(i.type){case"number":s[i.name]=iC(i,parseInt(e[t]),o),t++;break;case"boolean":const c=e[t];s[i.name]=iC(i,c!=="false",o),(c==="false"||c==="true")&&t++;break;case"string":s[i.name]=iC(i,e[t]||"",o),t++;break;case"list":const u=gce(i,e[t],o);s[i.name]=u||[],u&&t++;break;case"listOrElement":w.fail("listOrElement not supported here");break;default:s[i.name]=yM(i,e[t],o),t++;break}else s[i.name]=void 0,t++;return t}function YTe(e,t){return sG(S7,e,t)}function aG(e,t){return yce(G4,e,t)}function yce(e,t,r=!1){t=t.toLowerCase();const{optionsNameMap:i,shortOptionNames:s}=e();if(r){const o=s.get(t);o!==void 0&&(t=o)}return i.get(t)}function ZTe(){return Oke||(Oke=hM(EM))}function KTe(e){const{options:t,watchOptions:r,fileNames:i,errors:s}=sG(Lke,e),o=t;return i.length===0&&i.push("."),o.clean&&o.force&&s.push(ll(p.Options_0_and_1_cannot_be_combined,"clean","force")),o.clean&&o.verbose&&s.push(ll(p.Options_0_and_1_cannot_be_combined,"clean","verbose")),o.clean&&o.watch&&s.push(ll(p.Options_0_and_1_cannot_be_combined,"clean","watch")),o.watch&&o.dry&&s.push(ll(p.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:o,watchOptions:r,projects:i,errors:s}}function eke(e,...t){return pa(ll(e,...t).messageText,Ls)}function _7(e,t,r,i,s,o){const c=Fw(e,g=>r.readFile(g));if(!Ls(c)){r.onUnRecoverableConfigFileDiagnostic(c);return}const u=u7(e,c),f=r.getCurrentDirectory();return u.path=hc(e,f,e_(r.useCaseSensitiveFileNames)),u.resolvedPath=u.path,u.originalFileName=u.fileName,d7(u,r,Ss(oi(e),f),t,Ss(e,f),void 0,o,i,s)}function f7(e,t){const r=Fw(e,t);return Ls(r)?oG(e,r):{config:{},error:r}}function oG(e,t){const r=u7(e,t);return{config:ske(r,r.parseDiagnostics,void 0),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function vce(e,t){const r=Fw(e,t);return Ls(r)?u7(e,r):{fileName:e,parseDiagnostics:[r]}}function Fw(e,t){let r;try{r=t(e)}catch(i){return ll(p.Cannot_read_file_0_Colon_1,e,i.message)}return r===void 0?ll(p.Cannot_read_file_0,e):r}function cG(e){return ab(e,XTe)}function tke(){return Mke||(Mke=hM($4))}function nke(){return Rke||(Rke=cG(Vh))}function rke(){return jke||(jke=cG($4))}function ike(){return Bke||(Bke=cG(b7))}function TVe(){return Fce===void 0&&(Fce={name:void 0,type:"object",elementOptions:cG([Nce,Ice,Oce,x7,{name:"references",type:"list",element:{name:"references",type:"object"},category:p.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:p.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:p.File_Management,defaultValueDescription:p.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:p.File_Management,defaultValueDescription:p.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},g7])}),Fce}function ske(e,t,r){var i;const s=(i=e.statements[0])==null?void 0:i.expression;if(s&&s.kind!==210){if(t.push(Pd(e,s,p.The_root_value_of_a_0_file_must_be_an_object,xl(e.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),B_(s)){const o=Cn(s.elements,Va);if(o)return p7(e,o,t,!0,r)}return{}}return p7(e,s,t,!0,r)}function bce(e,t){var r;return p7(e,(r=e.statements[0])==null?void 0:r.expression,t,!0,void 0)}function p7(e,t,r,i,s){if(!t)return i?{}:void 0;return u(t,s==null?void 0:s.rootOptions);function o(g,d){var y;const x=i?{}:void 0;for(const T of g.properties){if(T.kind!==303){r.push(Pd(e,T,p.Property_assignment_expected));continue}T.questionToken&&r.push(Pd(e,T.questionToken,p.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),f(T.name)||r.push(Pd(e,T.name,p.String_literal_with_double_quotes_expected));const C=DA(T.name)?void 0:X6(T.name),N=C&&Hi(C),D=N?(y=d==null?void 0:d.elementOptions)==null?void 0:y.get(N):void 0,M=u(T.initializer,D);typeof N<"u"&&(i&&(x[N]=M),s==null||s.onPropertySet(N,M,T,d,D))}return x}function c(g,d){if(!i){g.forEach(y=>u(y,d));return}return vr(g.map(y=>u(y,d)),y=>y!==void 0)}function u(g,d){switch(g.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return f(g)||r.push(Pd(e,g,p.String_literal_with_double_quotes_expected)),g.text;case 9:return Number(g.text);case 224:if(g.operator!==41||g.operand.kind!==9)break;return-Number(g.operand.text);case 210:return o(g,d);case 209:return c(g.elements,d&&d.element)}d?r.push(Pd(e,g,p.Compiler_option_0_requires_a_value_of_type_1,d.name,lG(d))):r.push(Pd(e,g,p.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function f(g){return Ba(g)&&o9(g,e)}}function lG(e){return e.type==="listOrElement"?`${lG(e.element)} or Array`:e.type==="list"?"Array":Ls(e.type)?e.type:"string"}function ake(e,t){if(e){if(m7(t))return!e.disallowNullOrUndefined;if(e.type==="list")return Ps(t);if(e.type==="listOrElement")return Ps(t)||ake(e.element,t);const r=Ls(e.type)?e.type:"string";return typeof t===r}return!1}function oke(e,t,r){var i,s,o;const c=e_(r.useCaseSensitiveFileNames),u=Kt(vr(e.fileNames,(s=(i=e.options.configFile)==null?void 0:i.configFileSpecs)!=null&&s.validatedIncludeSpecs?CVe(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,r):cy),C=>Q8(Ss(t,r.getCurrentDirectory()),Ss(C,r.getCurrentDirectory()),c)),f={configFilePath:Ss(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames},g=bM(e.options,f),d=e.watchOptions&&EVe(e.watchOptions),y={compilerOptions:{...vM(g),showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0},watchOptions:d&&vM(d),references:Kt(e.projectReferences,C=>({...C,path:C.originalPath?C.originalPath:"",originalPath:void 0})),files:Xe(u)?u:void 0,...(o=e.options.configFile)!=null&&o.configFileSpecs?{include:kVe(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:e.compileOnSave?!0:void 0},x=new Set(g.keys()),T={};for(const C in Ll)if(!x.has(C)&&Pe(Ll[C].dependencies,N=>x.has(N))){const N=Ll[C].computeValue(e.options),D=Ll[C].computeValue({});N!==D&&(T[C]=Ll[C].computeValue(e.options))}return C6(y.compilerOptions,vM(bM(T,f))),y}function vM(e){return{...Vs(e.entries()).reduce((t,r)=>({...t,[r[0]]:r[1]}),{})}}function kVe(e){if(Xe(e)){if(Xe(e)!==1)return e;if(e[0]!==DM)return e}}function CVe(e,t,r,i){if(!t)return cy;const s=H9(e,r,t,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),o=s.excludePattern&&k1(s.excludePattern,i.useCaseSensitiveFileNames),c=s.includeFilePattern&&k1(s.includeFilePattern,i.useCaseSensitiveFileNames);return c?o?u=>!(c.test(u)&&!o.test(u)):u=>!c.test(u):o?u=>o.test(u):cy}function cke(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return cke(e.element);default:return e.type}}function uG(e,t){return cu(t,(r,i)=>{if(r===e)return i})}function bM(e,t){return lke(e,G4(),t)}function EVe(e){return lke(e,tke())}function lke(e,{optionsNameMap:t},r){const i=new Map,s=r&&e_(r.useCaseSensitiveFileNames);for(const o in e)if(jo(e,o)){if(t.has(o)&&(t.get(o).category===p.Command_line_Options||t.get(o).category===p.Output_Formatting))continue;const c=e[o],u=t.get(o.toLowerCase());if(u){w.assert(u.type!=="listOrElement");const f=cke(u);f?u.type==="list"?i.set(o,c.map(g=>uG(g,f))):i.set(o,uG(c,f)):r&&u.isFilePath?i.set(o,Q8(r.configFilePath,Ss(c,oi(r.configFilePath)),s)):i.set(o,c)}}return i}function uke(e,t){const r=_ke(e);return s();function i(o){return Array(o+1).join(" ")}function s(){const o=[],c=i(2);return mG.forEach(u=>{if(!r.has(u.name))return;const f=r.get(u.name),g=Pce(u);f!==g?o.push(`${c}${u.name}: ${f}`):jo(PM,u.name)&&o.push(`${c}${u.name}: ${g}`)}),o.join(t)+t}}function _ke(e){const t=NO(e,PM);return bM(t)}function fke(e,t,r){const i=_ke(e);return c();function s(u){return Array(u+1).join(" ")}function o({category:u,name:f,isCommandLineOnly:g}){const d=[p.Command_line_Options,p.Editor_Support,p.Compiler_Diagnostics,p.Backwards_Compatibility,p.Watch_and_Build_Modes,p.Output_Formatting];return!g&&u!==void 0&&(!d.includes(u)||i.has(f))}function c(){const u=new Map;u.set(p.Projects,[]),u.set(p.Language_and_Environment,[]),u.set(p.Modules,[]),u.set(p.JavaScript_Support,[]),u.set(p.Emit,[]),u.set(p.Interop_Constraints,[]),u.set(p.Type_Checking,[]),u.set(p.Completeness,[]);for(const T of Vh)if(o(T)){let C=u.get(T.category);C||u.set(T.category,C=[]),C.push(T)}let f=0,g=0;const d=[];u.forEach((T,C)=>{d.length!==0&&d.push({value:""}),d.push({value:`/* ${zs(C)} */`});for(const N of T){let D;i.has(N.name)?D=`"${N.name}": ${JSON.stringify(i.get(N.name))}${(g+=1)===i.size?"":","}`:D=`// "${N.name}": ${JSON.stringify(Pce(N))},`,d.push({value:D,description:`/* ${N.description&&zs(N.description)||N.name} */`}),f=Math.max(D.length,f)}});const y=s(2),x=[];x.push("{"),x.push(`${y}"compilerOptions": {`),x.push(`${y}${y}/* ${zs(p.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),x.push("");for(const T of d){const{value:C,description:N=""}=T;x.push(C&&`${y}${y}${C}${N&&s(f-C.length+2)+N}`)}if(t.length){x.push(`${y}},`),x.push(`${y}"files": [`);for(let T=0;Ttypeof fe=="object","object"),ge=Z(z("files"));if(ge){const fe=ne==="no-prop"||Ps(ne)&&ne.length===0,ie=jo(x,"extends");if(ge.length===0&&fe&&!ie)if(t){const ye=c||"tsconfig.json",Ne=p.The_files_list_in_config_file_0_is_empty,Ue=FA(t,"files",Ee=>Ee.initializer),Se=f2(t,Ue,Ne,ye);d.push(Se)}else J(p.The_files_list_in_config_file_0_is_empty,c||"tsconfig.json")}let ve=Z(z("include"));const Q=z("exclude");let X=!1,se=Z(Q);if(Q==="no-prop"&&x.compilerOptions){const fe=x.compilerOptions.outDir,ie=x.compilerOptions.declarationDir;(fe||ie)&&(se=[fe,ie].filter(ye=>!!ye))}ge===void 0&&ve===void 0&&(ve=[DM],X=!0);let pe,we;return ve&&(pe=Ake(ve,d,!0,t,"include")),se&&(we=Ake(se,d,!1,t,"exclude")),{filesSpecs:ge,includeSpecs:ve,excludeSpecs:se,validatedFilesSpec:vr(ge,Ls),validatedIncludeSpecs:pe,validatedExcludeSpecs:we,pathPatterns:void 0,isDefaultIncludeSpec:X}}function V(ne){const ge=Mw(N,ne,T,r,f);return hke(ge,Lw(x),u)&&d.push(gke(N,c)),ge}function G(ne){let ge;const ve=ce("references",Q=>typeof Q=="object","object");if(Ps(ve))for(const Q of ve)typeof Q.path!="string"?J(p.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(ge||(ge=[])).push({path:Ss(Q.path,ne),originalPath:Q.path,prepend:Q.prepend,circular:Q.circular});return ge}function Z(ne){return Ps(ne)?ne:void 0}function z(ne){return ce(ne,Ls,"string")}function ce(ne,ge,ve){if(jo(x,ne)&&!m7(x[ne]))if(Ps(x[ne])){const Q=x[ne];return!t&&!Pn(Q,ge)&&d.push(ll(p.Compiler_option_0_requires_a_value_of_type_1,ne,ve)),Q}else return J(p.Compiler_option_0_requires_a_value_of_type_1,ne,"Array"),"not-array";return"no-prop"}function J(ne,...ge){t||d.push(ll(ne,...ge))}}function wVe(e){return e.code===p.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function gke({includeSpecs:e,excludeSpecs:t},r){return ll(p.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,r||"tsconfig.json",JSON.stringify(e||[]),JSON.stringify(t||[]))}function hke(e,t,r){return e.length===0&&t&&(!r||r.length===0)}function Lw(e){return!jo(e,"files")&&!jo(e,"references")}function SM(e,t,r,i,s){const o=i.length;return hke(e,s)?i.push(gke(r,t)):Ch(i,c=>!wVe(c)),o!==i.length}function DVe(e){return!!e.options}function yke(e,t,r,i,s,o,c,u){var f;i=t_(i);const g=Ss(s||"",i);if(o.includes(g))return c.push(ll(p.Circularity_detected_while_resolving_configuration_Colon_0,[...o,g].join(" -> "))),{raw:e||bce(t,c)};const d=e?AVe(e,r,i,s,c):NVe(t,r,i,s,c);if((f=d.options)!=null&&f.paths&&(d.options.pathsBasePath=i),d.extendedConfigPath){o=o.concat([g]);const x={options:{}};Ls(d.extendedConfigPath)?y(x,d.extendedConfigPath):d.extendedConfigPath.forEach(T=>y(x,T)),!d.raw.include&&x.include&&(d.raw.include=x.include),!d.raw.exclude&&x.exclude&&(d.raw.exclude=x.exclude),!d.raw.files&&x.files&&(d.raw.files=x.files),d.raw.compileOnSave===void 0&&x.compileOnSave&&(d.raw.compileOnSave=x.compileOnSave),t&&x.extendedSourceFiles&&(t.extendedSourceFiles=Vs(x.extendedSourceFiles.keys())),d.options=C6(x.options,d.options),d.watchOptions=d.watchOptions&&x.watchOptions?C6(x.watchOptions,d.watchOptions):d.watchOptions||x.watchOptions}return d;function y(x,T){const C=IVe(t,T,r,o,c,u,x);if(C&&DVe(C)){const N=C.raw;let D;const M=V=>{N[V]&&(x[V]=Kt(N[V],G=>zf(G)?G:Zr(D||(D=aP(oi(T),i,e_(r.useCaseSensitiveFileNames))),G)))};M("include"),M("exclude"),M("files"),N.compileOnSave!==void 0&&(x.compileOnSave=N.compileOnSave),C6(x.options,C.options),x.watchOptions=x.watchOptions&&C.watchOptions?C6({},x.watchOptions,C.watchOptions):x.watchOptions||C.watchOptions}}}function AVe(e,t,r,i,s){jo(e,"excludes")&&s.push(ll(p.Unknown_option_excludes_Did_you_mean_exclude));const o=kke(e.compilerOptions,r,s,i),c=Cke(e.typeAcquisition,r,s,i),u=FVe(e.watchOptions,r,s);e.compileOnSave=OVe(e,r,s);const f=e.extends||e.extends===""?vke(e.extends,t,r,i,s):void 0;return{raw:e,options:o,watchOptions:u,typeAcquisition:c,extendedConfigPath:f}}function vke(e,t,r,i,s,o,c,u){let f;const g=i?dke(i,r):r;if(Ls(e))f=bke(e,t,g,s,c,u);else if(Ps(e)){f=[];for(let d=0;dV.name===T)&&(g=gn(g,N.name))))}}function bke(e,t,r,i,s,o){if(e=t_(e),zf(e)||fs(e,"./")||fs(e,"../")){let u=Ss(e,r);if(!t.fileExists(u)&&!Jc(u,".json")&&(u=`${u}.json`,!t.fileExists(u))){i.push(f2(o,s,p.File_0_not_found,e));return}return u}const c=Wce(e,Zr(r,"tsconfig.json"),t);if(c.resolvedModule)return c.resolvedModule.resolvedFileName;e===""?i.push(f2(o,s,p.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):i.push(f2(o,s,p.File_0_not_found,e))}function IVe(e,t,r,i,s,o,c){const u=r.useCaseSensitiveFileNames?t:jg(t);let f,g,d;if(o&&(f=o.get(u))?{extendedResult:g,extendedConfig:d}=f:(g=vce(t,y=>r.readFile(y)),g.parseDiagnostics.length||(d=yke(void 0,g,r,oi(t),xl(t),i,s,o)),o&&o.set(u,{extendedResult:g,extendedConfig:d})),e&&((c.extendedSourceFiles??(c.extendedSourceFiles=new Set)).add(g.fileName),g.extendedSourceFiles))for(const y of g.extendedSourceFiles)c.extendedSourceFiles.add(y);if(g.parseDiagnostics.length){s.push(...g.parseDiagnostics);return}return d}function OVe(e,t,r){if(!jo(e,g7.name))return!1;const i=Ix(g7,e.compileOnSave,t,r);return typeof i=="boolean"&&i}function Ske(e,t,r){const i=[];return{options:kke(e,t,i,r),errors:i}}function xke(e,t,r){const i=[];return{options:Cke(e,t,i,r),errors:i}}function Tke(e){return e&&xl(e)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function kke(e,t,r,i){const s=Tke(i);return Sce(nke(),e,t,s,S7,r),i&&(s.configFilePath=t_(i)),s}function pG(e){return{enable:!!e&&xl(e)==="jsconfig.json",include:[],exclude:[]}}function Cke(e,t,r,i){const s=pG(i);return Sce(ike(),e,t,s,Ace,r),s}function FVe(e,t,r){return Sce(rke(),e,t,void 0,wM,r)}function Sce(e,t,r,i,s,o){if(t){for(const c in t){const u=e.get(c);u?(i||(i={}))[u.name]=Ix(u,t[c],r,o):o.push(hce(c,s))}return i}}function f2(e,t,r,...i){return e&&t?Pd(e,t,r,...i):ll(r,...i)}function Ix(e,t,r,i,s,o,c){if(e.isCommandLineOnly){i.push(f2(c,s==null?void 0:s.name,p.Option_0_can_only_be_specified_on_command_line,e.name));return}if(ake(e,t)){const u=e.type;if(u==="list"&&Ps(t))return Pke(e,t,r,i,s,o,c);if(u==="listOrElement")return Ps(t)?Pke(e,t,r,i,s,o,c):Ix(e.element,t,r,i,s,o,c);if(!Ls(e.type))return Eke(e,t,i,o,c);const f=iC(e,t,i,o,c);return m7(f)?f:LVe(e,r,f)}else i.push(f2(c,o,p.Compiler_option_0_requires_a_value_of_type_1,e.name,lG(e)))}function LVe(e,t,r){return e.isFilePath&&(r=Ss(r,t),r===""&&(r=".")),r}function iC(e,t,r,i,s){var o;if(m7(t))return;const c=(o=e.extraValidation)==null?void 0:o.call(e,t);if(!c)return t;r.push(f2(s,i,...c))}function Eke(e,t,r,i,s){if(m7(t))return;const o=t.toLowerCase(),c=e.type.get(o);if(c!==void 0)return iC(e,c,r,i,s);r.push($Te(e,(u,...f)=>f2(s,i,u,...f)))}function Pke(e,t,r,i,s,o,c){return vr(Kt(t,(u,f)=>Ix(e.element,u,r,i,s,o==null?void 0:o.elements[f],c)),u=>e.listPreserveFalsyValues?!0:!!u)}function Mw(e,t,r,i,s=Ke){t=ka(t);const o=e_(i.useCaseSensitiveFileNames),c=new Map,u=new Map,f=new Map,{validatedFilesSpec:g,validatedIncludeSpecs:d,validatedExcludeSpecs:y}=e,x=KP(r,s),T=vN(r,x);if(g)for(const M of g){const V=Ss(M,t);c.set(o(V),V)}let C;if(d&&d.length>0)for(const M of i.readDirectory(t,P_(T),y,d,void 0)){if(zc(M,".json")){if(!C){const Z=d.filter(ce=>Jc(ce,".json")),z=Kt(W9(Z,t,"files"),ce=>`^${ce}$`);C=z?z.map(ce=>k1(ce,i.useCaseSensitiveFileNames)):Ke}if(Gs(C,Z=>Z.test(M))!==-1){const Z=o(M);!c.has(Z)&&!f.has(Z)&&f.set(Z,M)}continue}if(jVe(M,c,u,x,o))continue;BVe(M,u,x,o);const V=o(M);!c.has(V)&&!u.has(V)&&u.set(V,M)}const N=Vs(c.values()),D=Vs(u.values());return N.concat(D,Vs(f.values()))}function xce(e,t,r,i,s){const{validatedFilesSpec:o,validatedIncludeSpecs:c,validatedExcludeSpecs:u}=t;if(!Xe(c)||!Xe(u))return!1;r=ka(r);const f=e_(i);if(o){for(const g of o)if(f(Ss(g,r))===e)return!1}return Dke(e,u,i,s,r)}function wke(e){const t=fs(e,"**/")?0:e.indexOf("/**/");return t===-1?!1:(Jc(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function xM(e,t,r,i){return Dke(e,vr(t,s=>!wke(s)),r,i)}function Dke(e,t,r,i,s){const o=ZP(t,Zr(ka(i),s),"exclude"),c=o&&k1(o,r);return c?c.test(e)?!0:!lk(e)&&c.test(ou(e)):!1}function Ake(e,t,r,i,s){return e.filter(c=>{if(!Ls(c))return!1;const u=Tce(c,r);return u!==void 0&&t.push(o(...u)),u===void 0});function o(c,u){const f=XF(i,s,u);return f2(i,f,c,u)}}function Tce(e,t){if(w.assert(typeof e=="string"),t&&Jke.test(e))return[p.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(wke(e))return[p.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function MVe({validatedIncludeSpecs:e,validatedExcludeSpecs:t},r,i){const s=ZP(t,r,"exclude"),o=s&&new RegExp(s,i?"":"i"),c={},u=new Map;if(e!==void 0){const f=[];for(const g of e){const d=ka(Zr(r,g));if(o&&o.test(d))continue;const y=RVe(d,i);if(y){const{key:x,path:T,flags:C}=y,N=u.get(x),D=N!==void 0?c[N]:void 0;(D===void 0||DVl(e,c)?c:void 0);if(!o)return!1;for(const c of o){if(zc(e,c)&&(c!==".ts"||!zc(e,".d.ts")))return!1;const u=s(n2(e,c));if(t.has(u)||r.has(u)){if(c===".d.ts"&&(zc(e,".js")||zc(e,".jsx")))continue;return!0}}return!1}function BVe(e,t,r,i){const s=dt(r,o=>Vl(e,o)?o:void 0);if(s)for(let o=s.length-1;o>=0;o--){const c=s[o];if(zc(e,c))return;const u=i(n2(e,c));t.delete(u)}}function Cce(e){const t={};for(const r in e)if(jo(e,r)){const i=aG(r);i!==void 0&&(t[r]=Ece(e[r],i))}return t}function Ece(e,t){if(e===void 0)return e;switch(t.type){case"object":return"";case"string":return"";case"number":return typeof e=="number"?e:"";case"boolean":return typeof e=="boolean"?e:"";case"listOrElement":if(!Ps(e))return Ece(e,t.element);case"list":const r=t.element;return Ps(e)?Oi(e,i=>Ece(i,r)):"";default:return cu(t.type,(i,s)=>{if(i===e)return s})}}function Pce(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":const t=e.defaultValueDescription;return e.isFilePath?`./${t&&typeof t=="string"?t:""}`:"";case"list":return[];case"listOrElement":return Pce(e.element);case"object":return{};default:const r=wO(e.type.keys());return r!==void 0?r:w.fail("Expected 'option.type' to have entries.")}}var g7,wce,Rw,Dce,h7,TM,$4,y7,v7,dG,mG,Vh,gG,hG,yG,kM,CM,vG,bG,SG,EM,b7,Nke,Ike,PM,S7,Oke,Fke,Lke,Ace,Mke,wM,Rke,jke,Bke,x7,Nce,Ice,Oce,Fce,DM,Jke,zke,JVe=K({"src/compiler/commandLineParser.ts"(){ua(),g7={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},wce=new Map(Object.entries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5})),Rw=new Map(Nl(wce.entries(),([e,t])=>[""+t,e])),Dce=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["es2021","lib.es2021.d.ts"],["es2022","lib.es2022.d.ts"],["es2023","lib.es2023.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["dom.asynciterable","lib.dom.asynciterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["webworker.asynciterable","lib.webworker.asynciterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2016.intl","lib.es2016.intl.d.ts"],["es2017.date","lib.es2017.date.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2019.intl","lib.es2019.intl.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.date","lib.es2020.date.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2020.number","lib.es2020.number.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["es2021.intl","lib.es2021.intl.d.ts"],["es2022.array","lib.es2022.array.d.ts"],["es2022.error","lib.es2022.error.d.ts"],["es2022.intl","lib.es2022.intl.d.ts"],["es2022.object","lib.es2022.object.d.ts"],["es2022.sharedmemory","lib.es2022.sharedmemory.d.ts"],["es2022.string","lib.es2022.string.d.ts"],["es2022.regexp","lib.es2022.regexp.d.ts"],["es2023.array","lib.es2023.array.d.ts"],["es2023.collection","lib.es2023.collection.d.ts"],["esnext.array","lib.es2023.array.d.ts"],["esnext.collection","lib.esnext.collection.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.disposable","lib.esnext.disposable.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2022.string.d.ts"],["esnext.promise","lib.esnext.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["esnext.decorators","lib.esnext.decorators.d.ts"],["esnext.object","lib.esnext.object.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]],h7=Dce.map(e=>e[0]),TM=new Map(Dce),$4=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:p.Watch_and_Build_Modes,description:p.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:4},{name:"watchDirectory",type:new Map(Object.entries({usefsevents:0,fixedpollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3})),category:p.Watch_and_Build_Modes,description:p.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:0},{name:"fallbackPolling",type:new Map(Object.entries({fixedinterval:0,priorityinterval:1,dynamicpriority:2,fixedchunksize:3})),category:p.Watch_and_Build_Modes,description:p.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:p.Watch_and_Build_Modes,description:p.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:Tce},category:p.Watch_and_Build_Modes,description:p.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:Tce},category:p.Watch_and_Build_Modes,description:p.Remove_a_list_of_files_from_the_watch_mode_s_processing}],y7=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:p.Command_line_Options,description:p.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:p.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:p.Command_line_Options,description:p.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:p.Output_Formatting,description:p.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:p.Compiler_Diagnostics,description:p.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:p.Compiler_Diagnostics,description:p.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:p.Compiler_Diagnostics,description:p.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:p.Output_Formatting,description:p.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:p.Compiler_Diagnostics,description:p.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:p.Compiler_Diagnostics,description:p.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:p.Compiler_Diagnostics,description:p.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:p.FILE_OR_DIRECTORY,category:p.Compiler_Diagnostics,description:p.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:p.DIRECTORY,category:p.Compiler_Diagnostics,description:p.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:p.Projects,description:p.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:p.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Emit,transpileOptionValue:void 0,description:p.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:p.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:p.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Emit,description:p.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Emit,defaultValueDescription:!1,description:p.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:p.Emit,description:p.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:p.Watch_and_Build_Modes,description:p.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:"locale",type:"string",category:p.Command_line_Options,isCommandLineOnly:!0,description:p.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:p.Platform_specific}],v7={name:"target",shortName:"t",type:new Map(Object.entries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,deprecatedKeys:new Set(["es3"]),paramType:p.VERSION,showInSimplifiedHelpView:!0,category:p.Language_and_Environment,description:p.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},dG={name:"module",shortName:"m",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,nodenext:199,preserve:200})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:p.KIND,showInSimplifiedHelpView:!0,category:p.Modules,description:p.Specify_what_module_code_is_generated,defaultValueDescription:void 0},mG=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:p.Command_line_Options,description:p.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:p.Command_line_Options,description:p.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:p.Command_line_Options,description:p.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:p.Command_line_Options,paramType:p.FILE_OR_DIRECTORY,description:p.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:p.Command_line_Options,description:p.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:p.Command_line_Options,isCommandLineOnly:!0,description:p.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:p.Command_line_Options,isCommandLineOnly:!0,description:p.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},v7,dG,{name:"lib",type:"list",element:{name:"lib",type:TM,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:p.Language_and_Environment,description:p.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",allowJsFlag:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.JavaScript_Support,description:p.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:"checkJs",type:"boolean",affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.JavaScript_Support,description:p.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:wce,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:p.KIND,showInSimplifiedHelpView:!0,category:p.Language_and_Environment,description:p.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:p.FILE,showInSimplifiedHelpView:!0,category:p.Emit,description:p.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:p.DIRECTORY,showInSimplifiedHelpView:!0,category:p.Emit,description:p.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:p.LOCATION,category:p.Modules,description:p.Specify_the_root_folder_within_your_source_files,defaultValueDescription:p.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:p.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:p.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:p.FILE,category:p.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:p.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Emit,defaultValueDescription:!1,description:p.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:p.Emit,description:p.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:"importsNotUsedAsValues",type:new Map(Object.entries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:p.Interop_Constraints,description:p.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",category:p.Interop_Constraints,description:p.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:"strict",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Type_Checking,description:p.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:p.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:p.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:p.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:p.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:p.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:p.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:p.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.Ensure_use_strict_is_always_emitted,defaultValueDescription:p.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:"noPropertyAccessFromIndexSignature",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!1,category:p.Type_Checking,description:p.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:"moduleResolution",type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set(["node"]),affectsSourceFile:!0,affectsModuleResolution:!0,paramType:p.STRATEGY,category:p.Modules,description:p.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:p.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:p.Modules,description:p.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:p.Modules,description:p.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:p.Modules,description:p.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:p.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:p.Modules,description:p.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:p.Modules,description:p.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Interop_Constraints,description:p.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:p.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Interop_Constraints,description:p.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:p.Interop_Constraints,description:p.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Modules,description:p.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:p.Modules,description:p.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Modules,description:p.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1,transpileOptionValue:void 0},{name:"resolvePackageJsonExports",type:"boolean",affectsModuleResolution:!0,category:p.Modules,description:p.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:p.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:p.Modules,description:p.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:p.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:p.Modules,description:p.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:p.LOCATION,category:p.Emit,description:p.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:p.LOCATION,category:p.Emit,description:p.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Language_and_Environment,description:p.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:p.Language_and_Environment,description:p.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:p.Language_and_Environment,description:p.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:"`React.createElement`"},{name:"jsxFragmentFactory",type:"string",category:p.Language_and_Environment,description:p.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:"React.Fragment"},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,category:p.Language_and_Environment,description:p.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:"react"},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:p.Modules,description:p.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:p.Modules,description:p.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,defaultValueDescription:!1},{name:"out",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!1,category:p.Backwards_Compatibility,paramType:p.FILE,transpileOptionValue:void 0,description:p.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:p.Language_and_Environment,description:p.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:p.Completeness,description:p.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:p.Backwards_Compatibility,description:p.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:"newLine",type:new Map(Object.entries({crlf:0,lf:1})),affectsEmit:!0,affectsBuildInfo:!0,paramType:p.NEWLINE,category:p.Emit,description:p.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Output_Formatting,description:p.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:p.Language_and_Environment,affectsProgramStructure:!0,description:p.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:p.Modules,description:p.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:"stripInternal",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:p.Editor_Support,description:p.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:p.Projects,description:p.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:p.Projects,description:p.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:p.Projects,description:p.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Backwards_Compatibility,description:p.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,transpileOptionValue:void 0,description:p.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:p.DIRECTORY,category:p.Emit,transpileOptionValue:void 0,description:p.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:p.Completeness,description:p.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Backwards_Compatibility,description:p.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Backwards_Compatibility,description:p.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:p.Interop_Constraints,description:p.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:p.JavaScript_Support,description:p.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Backwards_Compatibility,description:p.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:p.Language_and_Environment,description:p.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:p.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:p.Backwards_Compatibility,description:p.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:p.Specify_a_list_of_language_service_plugins_to_include,category:p.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:p.Control_what_method_is_used_to_detect_module_format_JS_files,category:p.Language_and_Environment,defaultValueDescription:p.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules},{name:"ignoreDeprecations",type:"string",defaultValueDescription:void 0}],Vh=[...y7,...mG],gG=Vh.filter(e=>!!e.affectsSemanticDiagnostics),hG=Vh.filter(e=>!!e.affectsEmit),yG=Vh.filter(e=>!!e.affectsDeclarationPath),kM=Vh.filter(e=>!!e.affectsModuleResolution),CM=Vh.filter(e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics),vG=Vh.filter(e=>!!e.affectsProgramStructure),bG=Vh.filter(e=>jo(e,"transpileOptionValue")),SG=[{name:"verbose",shortName:"v",category:p.Command_line_Options,description:p.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:p.Command_line_Options,description:p.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:p.Command_line_Options,description:p.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:p.Command_line_Options,description:p.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],EM=[...y7,...SG],b7=[{name:"enable",type:"boolean",defaultValueDescription:!1},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean",defaultValueDescription:!1}],Ike={diagnostic:p.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:ZTe},PM={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},S7={alternateMode:Ike,getOptionsNameMap:G4,optionDeclarations:Vh,unknownOptionDiagnostic:p.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:p.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:p.Compiler_option_0_expects_an_argument},Fke={diagnostic:p.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:G4},Lke={alternateMode:Fke,getOptionsNameMap:ZTe,optionDeclarations:EM,unknownOptionDiagnostic:p.Unknown_build_option_0,unknownDidYouMeanDiagnostic:p.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:p.Build_option_0_requires_a_value_of_type_1},Ace={optionDeclarations:b7,unknownOptionDiagnostic:p.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:p.Unknown_type_acquisition_option_0_Did_you_mean_1},wM={getOptionsNameMap:tke,optionDeclarations:$4,unknownOptionDiagnostic:p.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:p.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:p.Watch_option_0_requires_a_value_of_type_1},x7={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:p.File_Management,disallowNullOrUndefined:!0},Nce={name:"compilerOptions",type:"object",elementOptions:nke(),extraKeyDiagnostics:S7},Ice={name:"watchOptions",type:"object",elementOptions:rke(),extraKeyDiagnostics:wM},Oce={name:"typeAcquisition",type:"object",elementOptions:ike(),extraKeyDiagnostics:Ace},DM="**/*",Jke=/(^|\/)\*\*\/?$/,zke=/^[^*?]*(?=\/[^/]*[*?])/}});function Cs(e,t,...r){e.trace(Eq(t,...r))}function k0(e,t){return!!e.traceResolution&&t.trace!==void 0}function sC(e,t){let r;if(t&&e){const i=e.contents.packageJsonContent;typeof i.name=="string"&&typeof i.version=="string"&&(r={name:i.name,subModuleName:t.path.slice(e.packageDirectory.length+yc.length),version:i.version})}return t&&{path:t.path,extension:t.ext,packageId:r,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function xG(e){return sC(void 0,e)}function Uke(e){if(e)return w.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function AM(e){const t=[];return e&1&&t.push("TypeScript"),e&2&&t.push("JavaScript"),e&4&&t.push("Declaration"),e&8&&t.push("JSON"),t.join(", ")}function zVe(e){const t=[];return e&1&&t.push(...NN),e&2&&t.push(...D4),e&4&&t.push(...AN),e&8&&t.push(".json"),t}function Lce(e){if(e)return w.assert(Q9(e.extension)),{fileName:e.path,packageId:e.packageId}}function Vke(e,t,r,i,s,o,c,u,f){if(!c.resultFromCache&&!c.compilerOptions.preserveSymlinks&&t&&r&&!t.originalPath&&!yu(e)){const{resolvedFileName:g,originalPath:d}=Hke(t.path,c.host,c.traceEnabled);d&&(t={...t,path:g,originalPath:d})}return Wke(t,r,i,s,o,c.resultFromCache,u,f)}function Wke(e,t,r,i,s,o,c,u){return o?c!=null&&c.isReadonly?{...o,failedLookupLocations:Mce(o.failedLookupLocations,r),affectingLocations:Mce(o.affectingLocations,i),resolutionDiagnostics:Mce(o.resolutionDiagnostics,s)}:(o.failedLookupLocations=X4(o.failedLookupLocations,r),o.affectingLocations=X4(o.affectingLocations,i),o.resolutionDiagnostics=X4(o.resolutionDiagnostics,s),o):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:e.originalPath===!0?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId,resolvedUsingTsExtension:!!e.resolvedUsingTsExtension},failedLookupLocations:jw(r),affectingLocations:jw(i),resolutionDiagnostics:jw(s),alternateResult:u}}function jw(e){return e.length?e:void 0}function X4(e,t){return t!=null&&t.length?e!=null&&e.length?(e.push(...t),e):t:e}function Mce(e,t){return e!=null&&e.length?t.length?[...e,...t]:e.slice():jw(t)}function qke(e,t,r,i){if(!jo(e,t)){i.traceEnabled&&Cs(i.host,p.package_json_does_not_have_a_0_field,t);return}const s=e[t];if(typeof s!==r||s===null){i.traceEnabled&&Cs(i.host,p.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,r,s===null?"null":typeof s);return}return s}function TG(e,t,r,i){const s=qke(e,t,"string",i);if(s===void 0)return;if(!s){i.traceEnabled&&Cs(i.host,p.package_json_had_a_falsy_0_field,t);return}const o=ka(Zr(r,s));return i.traceEnabled&&Cs(i.host,p.package_json_has_0_field_1_that_references_2,t,s,o),o}function UVe(e,t,r){return TG(e,"typings",t,r)||TG(e,"types",t,r)}function VVe(e,t,r){return TG(e,"tsconfig",t,r)}function WVe(e,t,r){return TG(e,"main",t,r)}function qVe(e,t){const r=qke(e,"typesVersions","object",t);if(r!==void 0)return t.traceEnabled&&Cs(t.host,p.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),r}function HVe(e,t){const r=qVe(e,t);if(r===void 0)return;if(t.traceEnabled)for(const c in r)jo(r,c)&&!B8.tryParse(c)&&Cs(t.host,p.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,c);const i=NM(r);if(!i){t.traceEnabled&&Cs(t.host,p.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,rt);return}const{version:s,paths:o}=i;if(typeof o!="object"){t.traceEnabled&&Cs(t.host,p.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${s}']`,"object",typeof o);return}return i}function NM(e){Qce||(Qce=new $d(wt));for(const t in e){if(!jo(e,t))continue;const r=B8.tryParse(t);if(r!==void 0&&r.test(Qce))return{version:t,paths:e[t]}}}function Bw(e,t){if(e.typeRoots)return e.typeRoots;let r;if(e.configFilePath?r=oi(e.configFilePath):t.getCurrentDirectory&&(r=t.getCurrentDirectory()),r!==void 0)return GVe(r)}function GVe(e){let t;return Yd(ka(e),r=>{const i=Zr(r,dCe);(t??(t=[])).push(i)}),t}function $Ve(e,t,r){const i=typeof r.useCaseSensitiveFileNames=="function"?r.useCaseSensitiveFileNames():r.useCaseSensitiveFileNames;return u0(e,t,!i)===0}function Hke(e,t,r){const i=aWe(e,t,r),s=$Ve(e,i,t);return{resolvedFileName:s?e:i,originalPath:s?void 0:e}}function Gke(e,t,r){const i=Jc(e,"/node_modules/@types")||Jc(e,"/node_modules/@types/")?_Ce(t,r):t;return Zr(e,i)}function Rce(e,t,r,i,s,o,c){w.assert(typeof e=="string","Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");const u=k0(r,i);s&&(r=s.commandLine.options);const f=t?oi(t):void 0;let g=f?o==null?void 0:o.getFromDirectoryCache(e,c,f,s):void 0;if(!g&&f&&!yu(e)&&(g=o==null?void 0:o.getFromNonRelativeNameCache(e,c,f,s)),g)return u&&(Cs(i,p.Resolving_type_reference_directive_0_containing_file_1,e,t),s&&Cs(i,p.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName),Cs(i,p.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,f),z(g)),g;const d=Bw(r,i);u&&(t===void 0?d===void 0?Cs(i,p.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):Cs(i,p.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,d):d===void 0?Cs(i,p.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):Cs(i,p.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,d),s&&Cs(i,p.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));const y=[],x=[];let T=jce(r);c!==void 0&&(T|=30);const C=j_(r);c===99&&3<=C&&C<=99&&(T|=32);const N=T&8?M1(r,c):[],D=[],M={compilerOptions:r,host:i,traceEnabled:u,failedLookupLocations:y,affectingLocations:x,packageJsonInfoCache:o,features:T,conditions:N,requestContainingDirectory:f,reportDiagnostic:ne=>void D.push(ne),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};let V=ce(),G=!0;V||(V=J(),G=!1);let Z;if(V){const{fileName:ne,packageId:ge}=V;let ve=ne,Q;r.preserveSymlinks||({resolvedFileName:ve,originalPath:Q}=Hke(ne,i,u)),Z={primary:G,resolvedFileName:ve,originalPath:Q,packageId:ge,isExternalLibraryImport:p2(ne)}}return g={resolvedTypeReferenceDirective:Z,failedLookupLocations:jw(y),affectingLocations:jw(x),resolutionDiagnostics:jw(D)},f&&o&&!o.isReadonly&&(o.getOrCreateCacheForDirectory(f,s).set(e,c,g),yu(e)||o.getOrCreateCacheForNonRelativeName(e,c,s).set(f,g)),u&&z(g),g;function z(ne){var ge;(ge=ne.resolvedTypeReferenceDirective)!=null&&ge.resolvedFileName?ne.resolvedTypeReferenceDirective.packageId?Cs(i,p.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,ne.resolvedTypeReferenceDirective.resolvedFileName,y1(ne.resolvedTypeReferenceDirective.packageId),ne.resolvedTypeReferenceDirective.primary):Cs(i,p.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,ne.resolvedTypeReferenceDirective.resolvedFileName,ne.resolvedTypeReferenceDirective.primary):Cs(i,p.Type_reference_directive_0_was_not_resolved,e)}function ce(){if(d&&d.length)return u&&Cs(i,p.Resolving_with_primary_search_path_0,d.join(", ")),li(d,ne=>{const ge=Gke(ne,e,M),ve=km(ne,i);if(!ve&&u&&Cs(i,p.Directory_0_does_not_exist_skipping_all_lookups_in_it,ne),r.typeRoots){const Q=Z4(4,ge,!ve,M);if(Q){const X=k7(Q.path),se=X?Vb(X,!1,M):void 0;return Lce(sC(se,Q))}}return Lce(Hce(4,ge,!ve,M))});u&&Cs(i,p.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function J(){const ne=t&&oi(t);if(ne!==void 0){let ge;if(!r.typeRoots||!Jc(t,a3))if(u&&Cs(i,p.Looking_up_in_node_modules_folder_initial_location_0,ne),yu(e)){const{path:ve}=Kke(ne,e);ge=wG(4,ve,!1,M,!0)}else{const ve=oCe(4,e,ne,M,void 0,void 0);ge=ve&&ve.value}else u&&Cs(i,p.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return Lce(ge)}else u&&Cs(i,p.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function jce(e){let t=0;switch(j_(e)){case 3:t=30;break;case 99:t=30;break;case 100:t=30;break}return e.resolvePackageJsonExports?t|=8:e.resolvePackageJsonExports===!1&&(t&=-9),e.resolvePackageJsonImports?t|=2:e.resolvePackageJsonImports===!1&&(t&=-3),t}function M1(e,t){const r=j_(e);if(t===void 0){if(r===100)t=99;else if(r===2)return[]}const i=t===99?["import"]:["require"];return e.noDtsResolution||i.push("types"),r!==100&&i.push("node"),zn(i,e.customConditions)}function kG(e,t,r,i,s){const o=C7(s==null?void 0:s.getPackageJsonInfoCache(),i,r);return Yd(t,c=>{if(xl(c)!=="node_modules"){const u=Zr(c,"node_modules"),f=Zr(u,e);return Vb(f,!1,o)}})}function IM(e,t){if(e.types)return e.types;const r=[];if(t.directoryExists&&t.getDirectories){const i=Bw(e,t);if(i){for(const s of i)if(t.directoryExists(s))for(const o of t.getDirectories(s)){const c=ka(o),u=Zr(s,c,"package.json");if(!(t.fileExists(u)&&HP(u,t).typings===null)){const g=xl(c);g.charCodeAt(0)!==46&&r.push(g)}}}}return r}function OM(e){return!!(e!=null&&e.contents)}function Bce(e){return!!e&&!e.contents}function Jce(e){var t;if(e===null||typeof e!="object")return""+e;if(Ps(e))return`[${(t=e.map(i=>Jce(i)))==null?void 0:t.join(",")}]`;let r="{";for(const i in e)jo(e,i)&&(r+=`${i}: ${Jce(e[i])}`);return r+"}"}function CG(e,t){return t.map(r=>Jce(J9(e,r))).join("|")+`|${e.pathsBasePath}`}function EG(e,t){const r=new Map,i=new Map;let s=new Map;return e&&r.set(e,s),{getMapOfCacheRedirects:o,getOrCreateMapOfCacheRedirects:c,update:u,clear:g,getOwnMap:()=>s};function o(y){return y?f(y.commandLine.options,!1):s}function c(y){return y?f(y.commandLine.options,!0):s}function u(y){e!==y&&(e?s=f(y,!0):r.set(y,s),e=y)}function f(y,x){let T=r.get(y);if(T)return T;const C=d(y);if(T=i.get(C),!T){if(e){const N=d(e);N===C?T=s:i.has(N)||i.set(N,s)}x&&(T??(T=new Map)),T&&i.set(C,T)}return T&&r.set(y,T),T}function g(){const y=e&&t.get(e);s.clear(),r.clear(),t.clear(),i.clear(),e&&(y&&t.set(e,y),r.set(e,s))}function d(y){let x=t.get(y);return x||t.set(y,x=CG(y,kM)),x}}function XVe(e,t){let r;return{getPackageJsonInfo:i,setPackageJsonInfo:s,clear:o,getInternalMap:c};function i(u){return r==null?void 0:r.get(hc(u,e,t))}function s(u,f){(r||(r=new Map)).set(hc(u,e,t),f)}function o(){r=void 0}function c(){return r}}function $ke(e,t,r,i){const s=e.getOrCreateMapOfCacheRedirects(t);let o=s.get(r);return o||(o=i(),s.set(r,o)),o}function QVe(e,t,r,i){const s=EG(r,i);return{getFromDirectoryCache:f,getOrCreateCacheForDirectory:u,clear:o,update:c,directoryToModuleNameMap:s};function o(){s.clear()}function c(g){s.update(g)}function u(g,d){const y=hc(g,e,t);return $ke(s,d,y,()=>aC())}function f(g,d,y,x){var T,C;const N=hc(y,e,t);return(C=(T=s.getMapOfCacheRedirects(x))==null?void 0:T.get(N))==null?void 0:C.get(g,d)}}function Jw(e,t){return t===void 0?e:`${t}|${e}`}function aC(){const e=new Map,t=new Map,r={get(s,o){return e.get(i(s,o))},set(s,o,c){return e.set(i(s,o),c),r},delete(s,o){return e.delete(i(s,o)),r},has(s,o){return e.has(i(s,o))},forEach(s){return e.forEach((o,c)=>{const[u,f]=t.get(c);return s(o,u,f)})},size(){return e.size}};return r;function i(s,o){const c=Jw(s,o);return t.set(c,[s,o]),c}}function YVe(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function ZVe(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function KVe(e,t,r,i,s){const o=EG(r,s);return{getFromNonRelativeNameCache:f,getOrCreateCacheForNonRelativeName:g,clear:c,update:u};function c(){o.clear()}function u(y){o.update(y)}function f(y,x,T,C){var N,D;return w.assert(!yu(y)),(D=(N=o.getMapOfCacheRedirects(C))==null?void 0:N.get(Jw(y,x)))==null?void 0:D.get(T)}function g(y,x,T){return w.assert(!yu(y)),$ke(o,T,Jw(y,x),d)}function d(){const y=new Map;return{get:x,set:T};function x(N){return y.get(hc(N,e,t))}function T(N,D){const M=hc(N,e,t);if(y.has(M))return;y.set(M,D);const V=i(D),G=V&&C(M,V);let Z=M;for(;Z!==G;){const z=oi(Z);if(z===Z||y.has(z))break;y.set(z,D),Z=z}}function C(N,D){const M=hc(oi(D),e,t);let V=0;const G=Math.min(N.length,M.length);for(;Vi,clearAllExceptPackageJsonInfoCache:g,optionsToRedirectsKey:o};function f(){g(),i.clear()}function g(){c.clear(),u.clear()}function d(y){c.update(y),u.update(y)}}function Q4(e,t,r,i,s){const o=Xke(e,t,r,i,YVe,s);return o.getOrCreateCacheForModuleName=(c,u,f)=>o.getOrCreateCacheForNonRelativeName(c,u,f),o}function FM(e,t,r,i,s){return Xke(e,t,r,i,ZVe,s)}function PG(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function LM(e,t,r,i,s){return Y4(e,t,PG(r),i,s)}function Qke(e,t,r,i){const s=oi(t);return r.getFromDirectoryCache(e,i,s,void 0)}function Y4(e,t,r,i,s,o,c){var u,f,g;const d=k0(r,i);o&&(r=o.commandLine.options),d&&(Cs(i,p.Resolving_module_0_from_1,e,t),o&&Cs(i,p.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));const y=oi(t);let x=s==null?void 0:s.getFromDirectoryCache(e,c,y,o);if(x)d&&Cs(i,p.Resolution_for_module_0_was_found_in_cache_from_location_1,e,y);else{let T=r.moduleResolution;switch(T===void 0?(T=j_(r),d&&Cs(i,p.Module_resolution_kind_is_not_specified_using_0,O6[T])):d&&Cs(i,p.Explicitly_specified_module_resolution_kind_Colon_0,O6[T]),(u=A_)==null||u.logStartResolveModule(e),T){case 3:x=rWe(e,t,r,i,s,o,c);break;case 99:x=iWe(e,t,r,i,s,o,c);break;case 2:x=Vce(e,t,r,i,s,o,c?M1(r,c):void 0);break;case 1:x=$ce(e,t,r,i,s,o);break;case 100:x=Uce(e,t,r,i,s,o,c?M1(r,c):void 0);break;default:return w.fail(`Unexpected moduleResolution: ${T}`)}x&&x.resolvedModule&&((f=A_)==null||f.logInfoEvent(`Module "${e}" resolved to "${x.resolvedModule.resolvedFileName}"`)),(g=A_)==null||g.logStopResolveModule(x&&x.resolvedModule?""+x.resolvedModule.resolvedFileName:"null"),s&&!s.isReadonly&&(s.getOrCreateCacheForDirectory(y,o).set(e,c,x),yu(e)||s.getOrCreateCacheForNonRelativeName(e,c,o).set(y,x))}return d&&(x.resolvedModule?x.resolvedModule.packageId?Cs(i,p.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,x.resolvedModule.resolvedFileName,y1(x.resolvedModule.packageId)):Cs(i,p.Module_name_0_was_successfully_resolved_to_1,e,x.resolvedModule.resolvedFileName):Cs(i,p.Module_name_0_was_not_resolved,e)),x}function Yke(e,t,r,i,s){const o=eWe(e,t,i,s);return o?o.value:yu(t)?tWe(e,t,r,i,s):nWe(e,t,i,s)}function eWe(e,t,r,i){var s;const{baseUrl:o,paths:c,configFile:u}=i.compilerOptions;if(c&&!pp(t)){i.traceEnabled&&(o&&Cs(i.host,p.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,t),Cs(i.host,p.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));const f=S9(i.compilerOptions,i.host),g=u!=null&&u.configFileSpecs?(s=u.configFileSpecs).pathPatterns||(s.pathPatterns=X9(c)):void 0;return Gce(e,t,f,c,g,r,!1,i)}}function tWe(e,t,r,i,s){if(!s.compilerOptions.rootDirs)return;s.traceEnabled&&Cs(s.host,p.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);const o=ka(Zr(r,t));let c,u;for(const f of s.compilerOptions.rootDirs){let g=ka(f);Jc(g,yc)||(g+=yc);const d=fs(o,g)&&(u===void 0||u.lengthvoid G.push(ne),isConfigLookup:u,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};N&&Nk(V)&&Cs(s,p.Resolving_in_0_mode_with_conditions_1,e&32?"ESM":"CJS",Z.conditions.map(ne=>`'${ne}'`).join(", "));let z;if(V===2){const ne=c&5,ge=c&-6;z=ne&&J(ne,Z)||ge&&J(ge,Z)||void 0}else z=J(c,Z);let ce;if(Z.resolvedPackageDirectory&&!u&&!yu(t)){const ne=(z==null?void 0:z.value)&&c&5&&!iCe(5,z.value.resolved.extension);if((d=z==null?void 0:z.value)!=null&&d.isExternalLibraryImport&&ne&&e&8&&(g!=null&&g.includes("import"))){R1(Z,p.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);const ge={...Z,features:Z.features&-9,reportDiagnostic:ao},ve=J(c&5,ge);(y=ve==null?void 0:ve.value)!=null&&y.isExternalLibraryImport&&(ce=ve.value.resolved.path)}else if((!(z!=null&&z.value)||ne)&&V===2){R1(Z,p.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);const ge={...Z.compilerOptions,moduleResolution:100},ve={...Z,compilerOptions:ge,features:30,conditions:M1(ge),reportDiagnostic:ao},Q=J(c&5,ve);(x=Q==null?void 0:Q.value)!=null&&x.isExternalLibraryImport&&(ce=Q.value.resolved.path)}}return Vke(t,(T=z==null?void 0:z.value)==null?void 0:T.resolved,(C=z==null?void 0:z.value)==null?void 0:C.isExternalLibraryImport,D,M,G,Z,o,ce);function J(ne,ge){const Q=Yke(ne,t,r,(X,se,pe,we)=>wG(X,se,pe,we,!0),ge);if(Q)return Lp({resolved:Q,isExternalLibraryImport:p2(Q.path)});if(yu(t)){const{path:X,parts:se}=Kke(r,t),pe=wG(ne,X,!1,ge,!0);return pe&&Lp({resolved:pe,isExternalLibraryImport:Ai(se,"node_modules")})}else{let X;if(e&2&&fs(t,"#")&&(X=uWe(ne,t,r,ge,o,f)),!X&&e&4&&(X=lWe(ne,t,r,ge,o,f)),!X){if(t.includes(":")){N&&Cs(s,p.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,AM(ne));return}N&&Cs(s,p.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,AM(ne)),X=oCe(ne,t,r,ge,o,f)}return ne&4&&(X??(X=pCe(t,ge))),X&&{value:X.value&&{resolved:X.value,isExternalLibraryImport:!0}}}}}function Kke(e,t){const r=Zr(e,t),i=au(r),s=pc(i);return{path:s==="."||s===".."?ou(ka(r)):ka(r),parts:i}}function aWe(e,t,r){if(!t.realpath)return e;const i=ka(t.realpath(e));return r&&Cs(t,p.Resolving_real_path_for_0_result_1,e,i),i}function wG(e,t,r,i,s){if(i.traceEnabled&&Cs(i.host,p.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,AM(e)),!_y(t)){if(!r){const c=oi(t);km(c,i.host)||(i.traceEnabled&&Cs(i.host,p.Directory_0_does_not_exist_skipping_all_lookups_in_it,c),r=!0)}const o=Z4(e,t,r,i);if(o){const c=s?k7(o.path):void 0,u=c?Vb(c,!1,i):void 0;return sC(u,o)}}if(r||km(t,i.host)||(i.traceEnabled&&Cs(i.host,p.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),r=!0),!(i.features&32))return Hce(e,t,r,i,s)}function p2(e){return e.includes(th)}function k7(e,t){const r=ka(e),i=r.lastIndexOf(th);if(i===-1)return;const s=i+th.length;let o=eCe(r,s,t);return r.charCodeAt(s)===64&&(o=eCe(r,o,t)),r.slice(0,o)}function eCe(e,t,r){const i=e.indexOf(yc,t+1);return i===-1?r?e.length:t:i}function qce(e,t,r,i){return xG(Z4(e,t,r,i))}function Z4(e,t,r,i){const s=tCe(e,t,r,i);if(s)return s;if(!(i.features&32)){const o=nCe(t,e,"",r,i);if(o)return o}}function tCe(e,t,r,i){if(!xl(t).includes("."))return;let o=Y_(t);o===t&&(o=t.substring(0,t.lastIndexOf(".")));const c=t.substring(o.length);return i.traceEnabled&&Cs(i.host,p.File_name_0_has_a_1_extension_stripping_it,t,c),nCe(o,e,c,r,i)}function DG(e,t,r,i){return e&1&&Vl(t,NN)||e&4&&Vl(t,AN)?AG(t,r,i)!==void 0?{path:t,ext:D9(t),resolvedUsingTsExtension:void 0}:void 0:i.isConfigLookup&&e===8&&zc(t,".json")?AG(t,r,i)!==void 0?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0:tCe(e,t,r,i)}function nCe(e,t,r,i,s){if(!i){const c=oi(e);c&&(i=!km(c,s.host))}switch(r){case".mjs":case".mts":case".d.mts":return t&1&&o(".mts",r===".mts"||r===".d.mts")||t&4&&o(".d.mts",r===".mts"||r===".d.mts")||t&2&&o(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return t&1&&o(".cts",r===".cts"||r===".d.cts")||t&4&&o(".d.cts",r===".cts"||r===".d.cts")||t&2&&o(".cjs")||void 0;case".json":return t&4&&o(".d.json.ts")||t&8&&o(".json")||void 0;case".tsx":case".jsx":return t&1&&(o(".tsx",r===".tsx")||o(".ts",r===".tsx"))||t&4&&o(".d.ts",r===".tsx")||t&2&&(o(".jsx")||o(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return t&1&&(o(".ts",r===".ts"||r===".d.ts")||o(".tsx",r===".ts"||r===".d.ts"))||t&4&&o(".d.ts",r===".ts"||r===".d.ts")||t&2&&(o(".js")||o(".jsx"))||s.isConfigLookup&&o(".json")||void 0;default:return t&4&&!Wu(e+r)&&o(`.d${r}.ts`)||void 0}function o(c,u){const f=AG(e+c,i,s);return f===void 0?void 0:{path:f,ext:c,resolvedUsingTsExtension:!s.candidateIsFromPackageJsonField&&u}}}function AG(e,t,r){var i;if(!((i=r.compilerOptions.moduleSuffixes)!=null&&i.length))return rCe(e,t,r);const s=b0(e)??"",o=s?SN(e,s):e;return dt(r.compilerOptions.moduleSuffixes,c=>rCe(o+c+s,t,r))}function rCe(e,t,r){var i;if(!t){if(r.host.fileExists(e))return r.traceEnabled&&Cs(r.host,p.File_0_exists_use_it_as_a_name_resolution_result,e),e;r.traceEnabled&&Cs(r.host,p.File_0_does_not_exist,e)}(i=r.failedLookupLocations)==null||i.push(e)}function Hce(e,t,r,i,s=!0){const o=s?Vb(t,r,i):void 0,c=o&&o.contents.packageJsonContent,u=o&&MM(o,i);return sC(o,IG(e,t,r,i,c,u))}function NG(e,t,r,i,s){if(!s&&e.contents.resolvedEntrypoints!==void 0)return e.contents.resolvedEntrypoints;let o;const c=5|(s?2:0),u=jce(t),f=C7(i==null?void 0:i.getPackageJsonInfoCache(),r,t);f.conditions=M1(t),f.requestContainingDirectory=e.packageDirectory;const g=IG(c,e.packageDirectory,!1,f,e.contents.packageJsonContent,MM(e,f));if(o=gn(o,g==null?void 0:g.path),u&8&&e.contents.packageJsonContent.exports){const d=ks([M1(t,99),M1(t,1)],Ac);for(const y of d){const x={...f,failedLookupLocations:[],conditions:y,host:r},T=oWe(e,e.contents.packageJsonContent.exports,x,c);if(T)for(const C of T)o=w_(o,C.path)}}return e.contents.resolvedEntrypoints=o||!1}function oWe(e,t,r,i){let s;if(Ps(t))for(const c of t)o(c);else if(typeof t=="object"&&t!==null&&RM(t))for(const c in t)o(t[c]);else o(t);return s;function o(c){var u,f;if(typeof c=="string"&&fs(c,"./"))if(c.includes("*")&&r.host.readDirectory){if(c.indexOf("*")!==c.lastIndexOf("*"))return!1;r.host.readDirectory(e.packageDirectory,zVe(i),void 0,[Xre(Fk(c,"**/*"),".*")]).forEach(g=>{s=w_(s,{path:g,ext:F6(g),resolvedUsingTsExtension:void 0})})}else{const g=au(c).slice(2);if(g.includes("..")||g.includes(".")||g.includes("node_modules"))return!1;const d=Zr(e.packageDirectory,c),y=Ss(d,(f=(u=r.host).getCurrentDirectory)==null?void 0:f.call(u)),x=DG(i,y,!1,r);if(x)return s=w_(s,x,(T,C)=>T.path===C.path),!0}else if(Array.isArray(c)){for(const g of c)if(o(g))return!0}else if(typeof c=="object"&&c!==null)return dt(Eh(c),g=>{if(g==="default"||Ai(r.conditions,g)||w7(r.conditions,g))return o(c[g]),!0})}}function C7(e,t,r){return{host:t,compilerOptions:r,traceEnabled:k0(r,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:Ke,requestContainingDirectory:void 0,reportDiagnostic:ao,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function E7(e,t){const r=au(e);for(r.pop();r.length>0;){const i=Vb(c1(r),!1,t);if(i)return i;r.pop()}}function MM(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=HVe(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function Vb(e,t,r){var i,s,o,c,u,f;const{host:g,traceEnabled:d}=r,y=Zr(e,"package.json");if(t){(i=r.failedLookupLocations)==null||i.push(y);return}const x=(s=r.packageJsonInfoCache)==null?void 0:s.getPackageJsonInfo(y);if(x!==void 0){if(OM(x))return d&&Cs(g,p.File_0_exists_according_to_earlier_cached_lookups,y),(o=r.affectingLocations)==null||o.push(y),x.packageDirectory===e?x:{packageDirectory:e,contents:x.contents};x.directoryExists&&d&&Cs(g,p.File_0_does_not_exist_according_to_earlier_cached_lookups,y),(c=r.failedLookupLocations)==null||c.push(y);return}const T=km(e,g);if(T&&g.fileExists(y)){const C=HP(y,g);d&&Cs(g,p.Found_package_json_at_0,y);const N={packageDirectory:e,contents:{packageJsonContent:C,versionPaths:void 0,resolvedEntrypoints:void 0}};return r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(y,N),(u=r.affectingLocations)==null||u.push(y),N}else T&&d&&Cs(g,p.File_0_does_not_exist,y),r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(y,{packageDirectory:e,directoryExists:T}),(f=r.failedLookupLocations)==null||f.push(y)}function IG(e,t,r,i,s,o){let c;s&&(i.isConfigLookup?c=VVe(s,t,i):c=e&4&&UVe(s,t,i)||e&7&&WVe(s,t,i)||void 0);const u=(x,T,C,N)=>{const D=DG(x,T,C,N);if(D)return xG(D);const M=x===4?5:x,V=N.features,G=N.candidateIsFromPackageJsonField;N.candidateIsFromPackageJsonField=!0,(s==null?void 0:s.type)!=="module"&&(N.features&=-33);const Z=wG(M,T,C,N,!1);return N.features=V,N.candidateIsFromPackageJsonField=G,Z},f=c?!km(oi(c),i.host):void 0,g=r||!km(t,i.host),d=Zr(t,i.isConfigLookup?"tsconfig":"index");if(o&&(!c||Xd(t,c))){const x=Qd(t,c||d,!1);i.traceEnabled&&Cs(i.host,p.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,o.version,wt,x);const T=Gce(e,x,t,o.paths,void 0,u,f||g,i);if(T)return Uke(T.value)}const y=c&&Uke(u(e,c,f,i));if(y)return y;if(!(i.features&32))return Z4(e,d,g,i)}function iCe(e,t){return e&2&&(t===".js"||t===".jsx"||t===".mjs"||t===".cjs")||e&1&&(t===".ts"||t===".tsx"||t===".mts"||t===".cts")||e&4&&(t===".d.ts"||t===".d.mts"||t===".d.cts")||e&8&&t===".json"||!1}function P7(e){let t=e.indexOf(yc);return e[0]==="@"&&(t=e.indexOf(yc,t+1)),t===-1?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function RM(e){return Pn(Eh(e),t=>fs(t,"."))}function cWe(e){return!Pe(Eh(e),t=>fs(t,"."))}function lWe(e,t,r,i,s,o){var c,u;const f=Ss(Zr(r,"dummy"),(u=(c=i.host).getCurrentDirectory)==null?void 0:u.call(c)),g=E7(f,i);if(!g||!g.contents.packageJsonContent.exports||typeof g.contents.packageJsonContent.name!="string")return;const d=au(t),y=au(g.contents.packageJsonContent.name);if(!Pn(y,(D,M)=>d[M]===D))return;const x=d.slice(y.length),T=Xe(x)?`.${yc}${x.join(yc)}`:".";if(P1(i.compilerOptions)&&!p2(r))return OG(g,e,T,i,s,o);const C=e&5,N=e&-6;return OG(g,C,T,i,s,o)||OG(g,N,T,i,s,o)}function OG(e,t,r,i,s,o){if(e.contents.packageJsonContent.exports){if(r==="."){let c;if(typeof e.contents.packageJsonContent.exports=="string"||Array.isArray(e.contents.packageJsonContent.exports)||typeof e.contents.packageJsonContent.exports=="object"&&cWe(e.contents.packageJsonContent.exports)?c=e.contents.packageJsonContent.exports:jo(e.contents.packageJsonContent.exports,".")&&(c=e.contents.packageJsonContent.exports["."]),c)return aCe(t,i,s,o,r,e,!1)(c,"",!1,".")}else if(RM(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!="object")return i.traceEnabled&&Cs(i.host,p.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),Lp(void 0);const c=sCe(t,i,s,o,r,e.contents.packageJsonContent.exports,e,!1);if(c)return c}return i.traceEnabled&&Cs(i.host,p.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),Lp(void 0)}}function uWe(e,t,r,i,s,o){var c,u;if(t==="#"||fs(t,"#/"))return i.traceEnabled&&Cs(i.host,p.Invalid_import_specifier_0_has_no_possible_resolutions,t),Lp(void 0);const f=Ss(Zr(r,"dummy"),(u=(c=i.host).getCurrentDirectory)==null?void 0:u.call(c)),g=E7(f,i);if(!g)return i.traceEnabled&&Cs(i.host,p.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,f),Lp(void 0);if(!g.contents.packageJsonContent.imports)return i.traceEnabled&&Cs(i.host,p.package_json_scope_0_has_no_imports_defined,g.packageDirectory),Lp(void 0);const d=sCe(e,i,s,o,t,g.contents.packageJsonContent.imports,g,!0);return d||(i.traceEnabled&&Cs(i.host,p.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,g.packageDirectory),Lp(void 0))}function FG(e,t){const r=e.indexOf("*"),i=t.indexOf("*"),s=r===-1?e.length:r+1,o=i===-1?t.length:i+1;return s>o?-1:o>s||r===-1?1:i===-1||e.length>t.length?-1:t.length>e.length?1:0}function sCe(e,t,r,i,s,o,c,u){const f=aCe(e,t,r,i,s,c,u);if(!Jc(s,yc)&&!s.includes("*")&&jo(o,s)){const y=o[s];return f(y,"",!1,s)}const g=i1(vr(Eh(o),y=>y.includes("*")||Jc(y,"/")),FG);for(const y of g)if(t.features&16&&d(y,s)){const x=o[y],T=y.indexOf("*"),C=s.substring(y.substring(0,T).length,s.length-(y.length-1-T));return f(x,C,!0,y)}else if(Jc(y,"*")&&fs(s,y.substring(0,y.length-1))){const x=o[y],T=s.substring(y.length-1);return f(x,T,!0,y)}else if(fs(s,y)){const x=o[y],T=s.substring(y.length);return f(x,T,!1,y)}function d(y,x){if(Jc(y,"*"))return!1;const T=y.indexOf("*");return T===-1?!1:fs(x,y.substring(0,T))&&Jc(x,y.substring(T+1))}}function aCe(e,t,r,i,s,o,c){return u;function u(f,g,d,y){if(typeof f=="string"){if(!d&&g.length>0&&!Jc(f,"/"))return t.traceEnabled&&Cs(t.host,p.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),Lp(void 0);if(!fs(f,"./")){if(c&&!fs(f,"../")&&!fs(f,"/")&&!zf(f)){const z=d?f.replace(/\*/g,g):f+g;R1(t,p.Using_0_subpath_1_with_target_2,"imports",y,z),R1(t,p.Resolving_module_0_from_1,z,o.packageDirectory+"/");const ce=T7(t.features,z,o.packageDirectory+"/",t.compilerOptions,t.host,r,e,!1,i,t.conditions);return Lp(ce.resolvedModule?{path:ce.resolvedModule.resolvedFileName,extension:ce.resolvedModule.extension,packageId:ce.resolvedModule.packageId,originalPath:ce.resolvedModule.originalPath,resolvedUsingTsExtension:ce.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&Cs(t.host,p.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),Lp(void 0)}const D=(pp(f)?au(f).slice(1):au(f)).slice(1);if(D.includes("..")||D.includes(".")||D.includes("node_modules"))return t.traceEnabled&&Cs(t.host,p.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),Lp(void 0);const M=Zr(o.packageDirectory,f),V=au(g);if(V.includes("..")||V.includes(".")||V.includes("node_modules"))return t.traceEnabled&&Cs(t.host,p.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),Lp(void 0);t.traceEnabled&&Cs(t.host,p.Using_0_subpath_1_with_target_2,c?"imports":"exports",y,d?f.replace(/\*/g,g):f+g);const G=x(d?M.replace(/\*/g,g):M+g),Z=C(G,g,Zr(o.packageDirectory,"package.json"),c);return Z||Lp(sC(o,DG(e,G,!1,t)))}else if(typeof f=="object"&&f!==null)if(Array.isArray(f)){if(!Xe(f))return t.traceEnabled&&Cs(t.host,p.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),Lp(void 0);for(const N of f){const D=u(N,g,d,y);if(D)return D}}else{R1(t,p.Entering_conditional_exports);for(const N of Eh(f))if(N==="default"||t.conditions.includes(N)||w7(t.conditions,N)){R1(t,p.Matched_0_condition_1,c?"imports":"exports",N);const D=f[N],M=u(D,g,d,y);if(M)return R1(t,p.Resolved_under_condition_0,N),R1(t,p.Exiting_conditional_exports),M;R1(t,p.Failed_to_resolve_under_condition_0,N)}else R1(t,p.Saw_non_matching_condition_0,N);R1(t,p.Exiting_conditional_exports);return}else if(f===null)return t.traceEnabled&&Cs(t.host,p.package_json_scope_0_explicitly_maps_specifier_1_to_null,o.packageDirectory,s),Lp(void 0);return t.traceEnabled&&Cs(t.host,p.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),Lp(void 0);function x(N){var D,M;return N===void 0?N:Ss(N,(M=(D=t.host).getCurrentDirectory)==null?void 0:M.call(D))}function T(N,D){return ou(Zr(N,D))}function C(N,D,M,V){var G,Z,z,ce;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&!N.includes("/node_modules/")&&(!t.compilerOptions.configFile||Xd(o.packageDirectory,x(t.compilerOptions.configFile.fileName),!LG(t)))){const ne=yy({useCaseSensitiveFileNames:()=>LG(t)}),ge=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){const ve=x(eD(t.compilerOptions,()=>[],((Z=(G=t.host).getCurrentDirectory)==null?void 0:Z.call(G))||"",ne));ge.push(ve)}else if(t.requestContainingDirectory){const ve=x(Zr(t.requestContainingDirectory,"index.ts")),Q=x(eD(t.compilerOptions,()=>[ve,x(M)],((ce=(z=t.host).getCurrentDirectory)==null?void 0:ce.call(z))||"",ne));ge.push(Q);let X=ou(Q);for(;X&&X.length>1;){const se=au(X);se.pop();const pe=c1(se);ge.unshift(pe),X=ou(pe)}}ge.length>1&&t.reportDiagnostic(ll(V?p.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:p.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,D===""?".":D,M));for(const ve of ge){const Q=J(ve);for(const X of Q)if(Xd(X,N,!LG(t))){const se=N.slice(X.length+1),pe=Zr(ve,se),we=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(const fe of we)if(zc(pe,fe)){const ie=$se(pe);for(const ye of ie){if(!iCe(e,ye))continue;const Ne=X8(pe,ye,fe,!LG(t));if(t.host.fileExists(Ne))return Lp(sC(o,DG(e,Ne,!1,t)))}}}}}return;function J(ne){var ge,ve;const Q=t.compilerOptions.configFile?((ve=(ge=t.host).getCurrentDirectory)==null?void 0:ve.call(ge))||"":ne,X=[];return t.compilerOptions.declarationDir&&X.push(x(T(Q,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&X.push(x(T(Q,t.compilerOptions.outDir))),X}}}}function w7(e,t){if(!e.includes("types")||!fs(t,"types@"))return!1;const r=B8.tryParse(t.substring(6));return r?r.test(wt):!1}function oCe(e,t,r,i,s,o){return cCe(e,t,r,i,!1,s,o)}function _We(e,t,r){return cCe(4,e,t,r,!0,void 0,void 0)}function cCe(e,t,r,i,s,o,c){const u=i.features===0?void 0:i.features&32?99:1,f=e&5,g=e&-6;if(f){R1(i,p.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,AM(f));const y=d(f);if(y)return y}if(g&&!s)return R1(i,p.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,AM(g)),d(g);function d(y){return Yd(t_(r),x=>{if(xl(x)!=="node_modules"){const T=fCe(o,t,u,x,c,i);return T||Lp(lCe(y,t,x,i,s,o,c))}})}}function lCe(e,t,r,i,s,o,c){const u=Zr(r,"node_modules"),f=km(u,i.host);if(!f&&i.traceEnabled&&Cs(i.host,p.Directory_0_does_not_exist_skipping_all_lookups_in_it,u),!s){const g=uCe(e,t,u,f,i,o,c);if(g)return g}if(e&4){const g=Zr(u,"@types");let d=f;return f&&!km(g,i.host)&&(i.traceEnabled&&Cs(i.host,p.Directory_0_does_not_exist_skipping_all_lookups_in_it,g),d=!1),uCe(4,_Ce(t,i),g,d,i,o,c)}}function uCe(e,t,r,i,s,o,c){var u,f;const g=ka(Zr(r,t)),{packageName:d,rest:y}=P7(t),x=Zr(r,d);let T,C=Vb(g,!i,s);if(y!==""&&C&&(!(s.features&8)||!jo(((u=T=Vb(x,!i,s))==null?void 0:u.contents.packageJsonContent)??Ke,"exports"))){const M=Z4(e,g,!i,s);if(M)return xG(M);const V=IG(e,g,!i,s,C.contents.packageJsonContent,MM(C,s));return sC(C,V)}const N=(M,V,G,Z)=>{let z=(y||!(Z.features&32))&&Z4(M,V,G,Z)||IG(M,V,G,Z,C&&C.contents.packageJsonContent,C&&MM(C,Z));return!z&&C&&(C.contents.packageJsonContent.exports===void 0||C.contents.packageJsonContent.exports===null)&&Z.features&32&&(z=Z4(M,Zr(V,"index.js"),G,Z)),sC(C,z)};if(y!==""&&(C=T??Vb(x,!i,s)),C&&(s.resolvedPackageDirectory=!0),C&&C.contents.packageJsonContent.exports&&s.features&8)return(f=OG(C,e,Zr(".",y),s,o,c))==null?void 0:f.value;const D=y!==""&&C?MM(C,s):void 0;if(D){s.traceEnabled&&Cs(s.host,p.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,D.version,wt,y);const M=i&&km(x,s.host),V=Gce(e,y,x,D.paths,void 0,N,!M,s);if(V)return V.value}return N(e,g,!i,s)}function Gce(e,t,r,i,s,o,c,u){s||(s=X9(i));const f=Oq(s,t);if(f){const g=Ls(f)?void 0:Dre(f,t),d=Ls(f)?f:wre(f);return u.traceEnabled&&Cs(u.host,p.Module_name_0_matched_pattern_1,t,d),{value:dt(i[d],x=>{const T=g?Fk(x,g):x,C=ka(Zr(r,T));u.traceEnabled&&Cs(u.host,p.Trying_substitution_0_candidate_module_location_Colon_1,x,T);const N=b0(x);if(N!==void 0){const D=AG(C,c,u);if(D!==void 0)return xG({path:D,ext:N,resolvedUsingTsExtension:void 0})}return o(e,C,c||!km(oi(C),u.host),u)})}}}function _Ce(e,t){const r=K4(e);return t.traceEnabled&&r!==e&&Cs(t.host,p.Scoped_package_detected_looking_in_0,r),r}function jM(e){return`@types/${K4(e)}`}function K4(e){if(fs(e,"@")){const t=e.replace(yc,RG);if(t!==e)return t.slice(1)}return e}function zw(e){const t=tP(e,"@types/");return t!==e?D7(t):e}function D7(e){return e.includes(RG)?"@"+e.replace(RG,yc):e}function fCe(e,t,r,i,s,o){const c=e&&e.getFromNonRelativeNameCache(t,r,i,s);if(c)return o.traceEnabled&&Cs(o.host,p.Resolution_for_module_0_was_found_in_cache_from_location_1,t,i),o.resultFromCache=c,{value:c.resolvedModule&&{path:c.resolvedModule.resolvedFileName,originalPath:c.resolvedModule.originalPath||!0,extension:c.resolvedModule.extension,packageId:c.resolvedModule.packageId,resolvedUsingTsExtension:c.resolvedModule.resolvedUsingTsExtension}}}function $ce(e,t,r,i,s,o){const c=k0(r,i),u=[],f=[],g=oi(t),d=[],y={compilerOptions:r,host:i,traceEnabled:c,failedLookupLocations:u,affectingLocations:f,packageJsonInfoCache:s,features:0,conditions:[],requestContainingDirectory:g,reportDiagnostic:C=>void d.push(C),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},x=T(5)||T(2|(r.resolveJsonModule?8:0));return Vke(e,x&&x.value,(x==null?void 0:x.value)&&p2(x.value.path),u,f,d,y,s);function T(C){const N=Yke(C,e,g,qce,y);if(N)return{value:N};if(yu(e)){const D=ka(Zr(g,e));return Lp(qce(C,D,!1,y))}else{const D=Yd(g,M=>{const V=fCe(s,e,void 0,M,o,y);if(V)return V;const G=ka(Zr(M,e));return Lp(qce(C,G,!1,y))});if(D)return D;if(C&5){let M=_We(e,g,y);return C&4&&(M??(M=pCe(e,y))),M}}}}function pCe(e,t){if(t.compilerOptions.typeRoots)for(const r of t.compilerOptions.typeRoots){const i=Gke(r,e,t),s=km(r,t.host);!s&&t.traceEnabled&&Cs(t.host,p.Directory_0_does_not_exist_skipping_all_lookups_in_it,r);const o=Z4(4,i,!s,t);if(o){const u=k7(o.path),f=u?Vb(u,!1,t):void 0;return Lp(sC(f,o))}const c=Hce(4,i,!s,t);if(c)return Lp(c)}}function e3(e,t){return!!e.allowImportingTsExtensions||t&&Wu(t)}function Xce(e,t,r,i,s,o){const c=k0(r,i);c&&Cs(i,p.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,s);const u=[],f=[],g=[],d={compilerOptions:r,host:i,traceEnabled:c,failedLookupLocations:u,affectingLocations:f,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:x=>void g.push(x),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},y=lCe(4,e,s,d,!1,void 0,void 0);return Wke(y,!0,u,f,g,d.resultFromCache,void 0)}function Lp(e){return e!==void 0?{value:e}:void 0}function R1(e,t,...r){e.traceEnabled&&Cs(e.host,t,...r)}function LG(e){return e.host.useCaseSensitiveFileNames?typeof e.host.useCaseSensitiveFileNames=="boolean"?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames():!0}var Qce,dCe,MG,th,RG,fWe=K({"src/compiler/moduleNameResolver.ts"(){ua(),dCe=Zr("node_modules","@types"),MG=(e=>(e[e.None=0]="None",e[e.Imports=2]="Imports",e[e.SelfName=4]="SelfName",e[e.Exports=8]="Exports",e[e.ExportsPatternTrailers=16]="ExportsPatternTrailers",e[e.AllFeatures=30]="AllFeatures",e[e.Node16Default=30]="Node16Default",e[e.NodeNextDefault=30]="NodeNextDefault",e[e.BundlerDefault=30]="BundlerDefault",e[e.EsmMode=32]="EsmMode",e))(MG||{}),th="/node_modules/",RG="__"}});function C0(e,t){return e.body&&!e.body.parent&&(eo(e.body,e),C1(e.body,!1)),e.body?Yce(e.body,t):1}function Yce(e,t=new Map){const r=ho(e);if(t.has(r))return t.get(r)||0;t.set(r,void 0);const i=pWe(e,t);return t.set(r,i),i}function pWe(e,t){switch(e.kind){case 264:case 265:return 0;case 266:if(mb(e))return 2;break;case 272:case 271:if(!Kr(e,32))return 0;break;case 278:const r=e;if(!r.moduleSpecifier&&r.exportClause&&r.exportClause.kind===279){let i=0;for(const s of r.exportClause.elements){const o=dWe(s,t);if(o>i&&(i=o),i===1)return i}return i}break;case 268:{let i=0;return Xs(e,s=>{const o=Yce(s,t);switch(o){case 0:return;case 2:i=2;return;case 1:return i=1,!0;default:w.assertNever(o)}}),i}case 267:return C0(e,t);case 80:if(e.flags&4096)return 0}return 1}function dWe(e,t){const r=e.propertyName||e.name;let i=e.parent;for(;i;){if(na(i)||lg(i)||es(i)){const s=i.statements;let o;for(const c of s)if(cA(c,r)){c.parent||(eo(c,i),C1(c,!1));const u=Yce(c,t);if((o===void 0||u>o)&&(o=u),o===1)return o;c.kind===271&&(o=1)}if(o!==void 0)return o}i=i.parent}return 1}function oC(e){return w.attachFlowNodeDebugInfo(e),e}function Zce(e,t){var r,i;gc("beforeBind"),(r=A_)==null||r.logStartBindFile(""+e.fileName),gCe(e,t),(i=A_)==null||i.logStopBindFile(),gc("afterBind"),Ap("Bind","beforeBind","afterBind")}function mWe(){var e,t,r,i,s,o,c,u,f,g,d,y,x,T,C,N,D,M,V,G,Z,z,ce=!1,J=0,ne,ge,ve={flags:1},Q={flags:1},X=q();return pe;function se(R,Te,...at){return Pd(qn(R)||e,R,Te,...at)}function pe(R,Te){var at,Ht;e=R,t=Te,r=go(t),z=we(e,Te),ge=new Set,J=0,ne=Au.getSymbolConstructor(),w.attachFlowNodeDebugInfo(ve),w.attachFlowNodeDebugInfo(Q),e.locals||((at=cr)==null||at.push(cr.Phase.Bind,"bindSourceFile",{path:e.path},!0),Oe(e),(Ht=cr)==null||Ht.pop(),e.symbolCount=J,e.classifiableNames=ge,Iu()),e=void 0,t=void 0,r=void 0,i=void 0,s=void 0,o=void 0,c=void 0,u=void 0,f=void 0,g=!1,d=void 0,y=void 0,x=void 0,T=void 0,C=void 0,N=void 0,D=void 0,V=void 0,G=!1,ce=!1,Z=0}function we(R,Te){return R_(Te,"alwaysStrict")&&!R.isDeclarationFile?!0:!!R.externalModuleIndicator}function fe(R,Te){return J++,new ne(R,Te)}function ie(R,Te,at){R.flags|=at,Te.symbol=R,R.declarations=w_(R.declarations,Te),at&1955&&!R.exports&&(R.exports=ha()),at&6240&&!R.members&&(R.members=ha()),R.constEnumOnlyModule&&R.flags&304&&(R.constEnumOnlyModule=!1),at&111551&&$A(R,Te)}function ye(R){if(R.kind===277)return R.isExportEquals?"export=":"default";const Te=Ms(R);if(Te){if(n_(R)){const at=Ad(Te);return eg(R)?"__global":`"${at}"`}if(Te.kind===167){const at=Te.expression;if(Ip(at))return Nc(at.text);if(m9(at))return ba(at.operator)+at.operand.text;w.fail("Only computed properties with literal names have declaration names")}if(Qi(Te)){const at=Du(R);if(!at)return;const Ht=at.symbol;return sN(Ht,Te.escapedText)}return wm(Te)?Ok(Te):ng(Te)?MP(Te):void 0}switch(R.kind){case 176:return"__constructor";case 184:case 179:case 330:return"__call";case 185:case 180:return"__new";case 181:return"__index";case 278:return"__export";case 312:return"export=";case 226:if(rl(R)===2)return"export=";w.fail("Unknown binary declaration kind");break;case 324:return c4(R)?"__new":"__call";case 169:return w.assert(R.parent.kind===324,"Impossible parameter parent kind",()=>`parent is: ${w.formatSyntaxKind(R.parent.kind)}, expected JSDocFunctionType`),"arg"+R.parent.parameters.indexOf(R)}}function Ne(R){return I_(R)?Bo(R.name):Hi(w.checkDefined(ye(R)))}function Ue(R,Te,at,Ht,ir,ai,Yr){w.assert(Yr||!S1(at));const os=Kr(at,2048)||h_(at)&&at.name.escapedText==="default",qa=Yr?"__computed":os&&Te?"default":ye(at);let Ha;if(qa===void 0)Ha=fe(0,"__missing");else if(Ha=R.get(qa),Ht&2885600&&ge.add(qa),!Ha)R.set(qa,Ha=fe(0,qa)),ai&&(Ha.isReplaceableByMethod=!0);else{if(ai&&!Ha.isReplaceableByMethod)return Ha;if(Ha.flags&ir){if(Ha.isReplaceableByMethod)R.set(qa,Ha=fe(0,qa));else if(!(Ht&3&&Ha.flags&67108864)){I_(at)&&eo(at.name,at);let Zc=Ha.flags&2?p.Cannot_redeclare_block_scoped_variable_0:p.Duplicate_identifier_0,Lu=!0;(Ha.flags&384||Ht&384)&&(Zc=p.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,Lu=!1);let $l=!1;Xe(Ha.declarations)&&(os||Ha.declarations&&Ha.declarations.length&&at.kind===277&&!at.isExportEquals)&&(Zc=p.A_module_cannot_have_multiple_default_exports,Lu=!1,$l=!0);const tp=[];im(at)&&nl(at.type)&&Kr(at,32)&&Ha.flags&2887656&&tp.push(se(at,p.Did_you_mean_0,`export type { ${Hi(at.name.escapedText)} }`));const yf=Ms(at)||at;dt(Ha.declarations,(So,lm)=>{const um=Ms(So)||So,$i=Lu?se(um,Zc,Ne(So)):se(um,Zc);e.bindDiagnostics.push($l?Ua($i,se(yf,lm===0?p.Another_export_default_is_here:p.and_here)):$i),$l&&tp.push(se(um,p.The_first_export_default_is_here))});const W1=Lu?se(yf,Zc,Ne(at)):se(yf,Zc);e.bindDiagnostics.push(Ua(W1,...tp)),Ha=fe(0,qa)}}}return ie(Ha,at,Ht),Ha.parent?w.assert(Ha.parent===Te,"Existing symbol parent should match new one"):Ha.parent=Te,Ha}function Se(R,Te,at){const Ht=!!(Vv(R)&32)||Ee(R);if(Te&2097152)return R.kind===281||R.kind===271&&Ht?Ue(s.symbol.exports,s.symbol,R,Te,at):(w.assertNode(s,Ug),Ue(s.locals,void 0,R,Te,at));if(Dd(R)&&w.assert(lr(R)),!n_(R)&&(Ht||s.flags&128)){if(!Ug(s)||!s.locals||Kr(R,2048)&&!ye(R))return Ue(s.symbol.exports,s.symbol,R,Te,at);const ir=Te&111551?1048576:0,ai=Ue(s.locals,void 0,R,ir,at);return ai.exportSymbol=Ue(s.symbol.exports,s.symbol,R,Te,at),R.localSymbol=ai,ai}else return w.assertNode(s,Ug),Ue(s.locals,void 0,R,Te,at)}function Ee(R){if(R.parent&&dl(R)&&(R=R.parent),!Dd(R))return!1;if(!ZN(R)&&R.fullName)return!0;const Te=Ms(R);return Te?!!(pN(Te.parent)&&vl(Te.parent)||g_(Te.parent)&&Vv(Te.parent)&32):!1}function Ae(R,Te){const at=s,Ht=o,ir=c;if(Te&1?(R.kind!==219&&(o=s),s=c=R,Te&32&&(s.locals=ha(),sr(s))):Te&2&&(c=R,Te&32&&(c.locals=void 0)),Te&4){const ai=d,Yr=y,os=x,qa=T,Ha=D,Zc=V,Lu=G,$l=Te&16&&!Kr(R,1024)&&!R.asteriskToken&&!!sx(R)||R.kind===175;$l||(d=oC({flags:2}),Te&144&&(d.node=R)),T=$l||R.kind===176||lr(R)&&(R.kind===262||R.kind===218)?In():void 0,D=void 0,y=void 0,x=void 0,V=void 0,G=!1,ze(R),R.flags&=-5633,!(d.flags&1)&&Te&8&&Ed(R.body)&&(R.flags|=512,G&&(R.flags|=1024),R.endFlowNode=d),R.kind===312&&(R.flags|=Z,R.endFlowNode=d),T&&(Yt(T,d),d=On(T),(R.kind===176||R.kind===175||lr(R)&&(R.kind===262||R.kind===218))&&(R.returnFlowNode=d)),$l||(d=ai),y=Yr,x=os,T=qa,D=Ha,V=Zc,G=Lu}else Te&64?(g=!1,ze(R),w.assertNotNode(R,Je),R.flags=g?R.flags|256:R.flags&-257):ze(R);s=at,o=Ht,c=ir}function Le(R){Tt(R,Te=>Te.kind===262?Oe(Te):void 0),Tt(R,Te=>Te.kind!==262?Oe(Te):void 0)}function Tt(R,Te=Oe){R!==void 0&&dt(R,Te)}function xe(R){Xs(R,Oe,Tt)}function ze(R){const Te=ce;if(ce=!1,Vt(R)){xe(R),bt(R),ce=Te;return}switch(R.kind>=243&&R.kind<=259&&!t.allowUnreachableCode&&(R.flowNode=d),R.kind){case 247:ts(R);break;case 246:Ds(R);break;case 248:Sa(R);break;case 249:case 250:Wa(R);break;case 245:Tn(R);break;case 253:case 257:Ln(R);break;case 252:case 251:ft(R);break;case 258:At(R);break;case 255:le(R);break;case 269:Me(R);break;case 296:_t(R);break;case 244:U(R);break;case 256:Et(R);break;case 224:vn(R);break;case 225:pn(R);break;case 226:if(by(R)){ce=Te,mn(R);return}X(R);break;case 220:Fe(R);break;case 227:Ot(R);break;case 260:me(R);break;case 211:case 212:Li(R);break;case 213:wi(R);break;case 235:Gn(R);break;case 353:case 345:case 347:Ie(R);break;case 312:{Le(R.statements),Oe(R.endOfFileToken);break}case 241:case 268:Le(R.statements);break;case 208:H(R);break;case 169:de(R);break;case 210:case 209:case 303:case 230:ce=Te;default:xe(R);break}bt(R),ce=Te}function st(R){switch(R.kind){case 80:case 81:case 110:case 211:case 212:return yt(R);case 213:return $e(R);case 217:if(U4(R))return!1;case 235:return st(R.expression);case 226:return nn(R);case 224:return R.operator===54&&st(R.operand);case 221:return st(R.expression)}return!1}function zt(R){return WP(R)||(Jr(R)||Qk(R)||df(R))&&zt(R.expression)||mr(R)&&R.operatorToken.kind===28&&zt(R.right)||uc(R)&&(Ip(R.argumentExpression)||il(R.argumentExpression))&&zt(R.expression)||Kl(R)&&zt(R.left)}function yt(R){return zt(R)||m_(R)&&yt(R.expression)}function $e(R){if(R.arguments){for(const Te of R.arguments)if(yt(Te))return!0}return!!(R.expression.kind===211&&yt(R.expression.expression))}function kt(R,Te){return L4(R)&&sn(R.expression)&&vo(Te)}function nn(R){switch(R.operatorToken.kind){case 64:case 76:case 77:case 78:return yt(R.left);case 35:case 36:case 37:case 38:return sn(R.left)||sn(R.right)||kt(R.right,R.left)||kt(R.left,R.right)||vP(R.right)&&st(R.left)||vP(R.left)&&st(R.right);case 104:return sn(R.left);case 103:return st(R.right);case 28:return st(R.right)}return!1}function sn(R){switch(R.kind){case 217:return sn(R.expression);case 226:switch(R.operatorToken.kind){case 64:return sn(R.left);case 28:return sn(R.right)}}return yt(R)}function In(){return oC({flags:4,antecedents:void 0})}function Zn(){return oC({flags:8,antecedents:void 0})}function hn(R,Te,at){return oC({flags:1024,target:R,antecedents:Te,antecedent:at})}function Zt(R){R.flags|=R.flags&2048?4096:2048}function Yt(R,Te){!(Te.flags&1)&&!Ai(R.antecedents,Te)&&((R.antecedents||(R.antecedents=[])).push(Te),Zt(Te))}function yi(R,Te,at){return Te.flags&1?Te:at?(at.kind===112&&R&64||at.kind===97&&R&32)&&!bF(at)&&!GV(at.parent)?ve:st(at)?(Zt(Te),oC({flags:R,antecedent:Te,node:at})):Te:R&32?Te:ve}function us(R,Te,at,Ht){return Zt(R),oC({flags:128,antecedent:R,switchStatement:Te,clauseStart:at,clauseEnd:Ht})}function zi(R,Te,at){Zt(Te);const Ht=oC({flags:R,antecedent:Te,node:at});return D&&Yt(D,Ht),Ht}function Os(R,Te){return Zt(R),oC({flags:512,antecedent:R,node:Te})}function On(R){const Te=R.antecedents;return Te?Te.length===1?Te[0]:R:ve}function Fi(R){const Te=R.parent;switch(Te.kind){case 245:case 247:case 246:return Te.expression===R;case 248:case 227:return Te.condition===R}return!1}function Er(R){for(;;)if(R.kind===217)R=R.expression;else if(R.kind===224&&R.operator===54)R=R.operand;else return fN(R)}function cn(R){return pq(Eo(R))}function et(R){for(;df(R.parent)||O1(R.parent)&&R.parent.operator===54;)R=R.parent;return!Fi(R)&&!Er(R.parent)&&!(m_(R.parent)&&R.parent.expression===R)}function Jt(R,Te,at,Ht){const ir=C,ai=N;C=at,N=Ht,R(Te),C=ir,N=ai}function wn(R,Te,at){Jt(Oe,R,Te,at),(!R||!cn(R)&&!Er(R)&&!(m_(R)&&dP(R)))&&(Yt(Te,yi(32,d,R)),Yt(at,yi(64,d,R)))}function ui(R,Te,at){const Ht=y,ir=x;y=Te,x=at,Oe(R),y=Ht,x=ir}function vi(R,Te){let at=V;for(;at&&R.parent.kind===256;)at.continueTarget=Te,at=at.next,R=R.parent;return Te}function ts(R){const Te=vi(R,Zn()),at=In(),Ht=In();Yt(Te,d),d=Te,wn(R.expression,at,Ht),d=On(at),ui(R.statement,Ht,Te),Yt(Te,d),d=On(Ht)}function Ds(R){const Te=Zn(),at=vi(R,In()),Ht=In();Yt(Te,d),d=Te,ui(R.statement,Ht,at),Yt(at,d),d=On(at),wn(R.expression,Te,Ht),d=On(Ht)}function Sa(R){const Te=vi(R,Zn()),at=In(),Ht=In();Oe(R.initializer),Yt(Te,d),d=Te,wn(R.condition,at,Ht),d=On(at),ui(R.statement,Ht,Te),Oe(R.incrementor),Yt(Te,d),d=On(Ht)}function Wa(R){const Te=vi(R,Zn()),at=In();Oe(R.expression),Yt(Te,d),d=Te,R.kind===250&&Oe(R.awaitModifier),Yt(at,d),Oe(R.initializer),R.initializer.kind!==261&&mt(R.initializer),ui(R.statement,at,Te),Yt(Te,d),d=On(at)}function Tn(R){const Te=In(),at=In(),Ht=In();wn(R.expression,Te,at),d=On(Te),Oe(R.thenStatement),Yt(Ht,d),d=On(at),Oe(R.elseStatement),Yt(Ht,d),d=On(Ht)}function Ln(R){Oe(R.expression),R.kind===253&&(G=!0,T&&Yt(T,d)),d=ve}function Ve(R){for(let Te=V;Te;Te=Te.next)if(Te.name===R)return Te}function pt(R,Te,at){const Ht=R.kind===252?Te:at;Ht&&(Yt(Ht,d),d=ve)}function ft(R){if(Oe(R.label),R.label){const Te=Ve(R.label.escapedText);Te&&(Te.referenced=!0,pt(R,Te.breakTarget,Te.continueTarget))}else pt(R,y,x)}function At(R){const Te=T,at=D,Ht=In(),ir=In();let ai=In();if(R.finallyBlock&&(T=ir),Yt(ai,d),D=ai,Oe(R.tryBlock),Yt(Ht,d),R.catchClause&&(d=On(ai),ai=In(),Yt(ai,d),D=ai,Oe(R.catchClause),Yt(Ht,d)),T=Te,D=at,R.finallyBlock){const Yr=In();Yr.antecedents=zn(zn(Ht.antecedents,ai.antecedents),ir.antecedents),d=Yr,Oe(R.finallyBlock),d.flags&1?d=ve:(T&&ir.antecedents&&Yt(T,hn(Yr,ir.antecedents,d)),D&&ai.antecedents&&Yt(D,hn(Yr,ai.antecedents,d)),d=Ht.antecedents?hn(Yr,Ht.antecedents,d):ve)}else d=On(Ht)}function le(R){const Te=In();Oe(R.expression);const at=y,Ht=M;y=Te,M=d,Oe(R.caseBlock),Yt(Te,d);const ir=dt(R.caseBlock.clauses,ai=>ai.kind===297);R.possiblyExhaustive=!ir&&!Te.antecedents,ir||Yt(Te,us(M,R,0,0)),y=at,M=Ht,d=On(Te)}function Me(R){const Te=R.clauses,at=R.parent.expression.kind===112||st(R.parent.expression);let Ht=ve;for(let ir=0;irml(at)||Qc(at))}function $r(R){R.flags&33554432&&!Di(R)?R.flags|=128:R.flags&=-129}function As(R){if($r(R),n_(R))if(Kr(R,32)&&Wo(R,p.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),vW(R))Dn(R);else{let Te;if(R.name.kind===11){const{text:Ht}=R.name;Te=k4(Ht),Te===void 0&&Wo(R.name,p.Pattern_0_can_have_at_most_one_Asterisk_character,Ht)}const at=Wr(R,512,110735);e.patternAmbientModules=gn(e.patternAmbientModules,Te&&!Ls(Te)?{pattern:Te,symbol:at}:void 0)}else{const Te=Dn(R);if(Te!==0){const{symbol:at}=R;at.constEnumOnlyModule=!(at.flags&304)&&Te===2&&at.constEnumOnlyModule!==!1}}}function Dn(R){const Te=C0(R),at=Te!==0;return Wr(R,at?512:1024,at?110735:0),Te}function Yo(R){const Te=fe(131072,ye(R));ie(Te,R,131072);const at=fe(2048,"__type");ie(at,R,2048),at.members=ha(),at.members.set(Te.escapedName,Te)}function hl(R){return tc(R,4096,"__object")}function Rs(R){return tc(R,4096,"__jsxAttributes")}function bo(R,Te,at){return Wr(R,Te,at)}function tc(R,Te,at){const Ht=fe(Te,at);return Te&106508&&(Ht.parent=s.symbol),ie(Ht,R,Te),Ht}function Oc(R,Te,at){switch(c.kind){case 267:Se(R,Te,at);break;case 312:if(mp(s)){Se(R,Te,at);break}default:w.assertNode(c,Ug),c.locals||(c.locals=ha(),sr(c)),Ue(c.locals,void 0,R,Te,at)}}function Iu(){if(!f)return;const R=s,Te=u,at=c,Ht=i,ir=d;for(const ai of f){const Yr=ai.parent.parent;s=EW(Yr)||e,c=qg(Yr)||e,d=oC({flags:2}),i=ai,Oe(ai.typeExpression);const os=Ms(ai);if((ZN(ai)||!ai.fullName)&&os&&pN(os.parent)){const qa=vl(os.parent);if(qa){Fc(e.symbol,os.parent,qa,!!Vn(os,Zc=>Jr(Zc)&&Zc.name.escapedText==="prototype"),!1);const Ha=s;switch(HA(os.parent)){case 1:case 2:mp(e)?s=e:s=void 0;break;case 4:s=os.parent.expression;break;case 3:s=os.parent.expression.name;break;case 5:s=Wb(e,os.parent.expression)?e:Jr(os.parent.expression)?os.parent.expression.name:os.parent.expression;break;case 0:return w.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}s&&Se(ai,524288,788968),s=Ha}}else ZN(ai)||!ai.fullName||ai.fullName.kind===80?(i=ai.parent,Oc(ai,524288,788968)):Oe(ai.fullName)}s=R,u=Te,c=at,i=Ht,d=ir}function vs(R){if(!e.parseDiagnostics.length&&!(R.flags&33554432)&&!(R.flags&16777216)&&!Jse(R)){const Te=Wv(R);if(Te===void 0)return;z&&Te>=119&&Te<=127?e.bindDiagnostics.push(se(R,va(R),Bo(R))):Te===135?Cl(e)&&ZF(R)?e.bindDiagnostics.push(se(R,p.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,Bo(R))):R.flags&65536&&e.bindDiagnostics.push(se(R,p.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Bo(R))):Te===127&&R.flags&16384&&e.bindDiagnostics.push(se(R,p.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Bo(R)))}}function va(R){return Du(R)?p.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?p.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:p.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function Ou(R){R.escapedText==="#constructor"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(se(R,p.constructor_is_a_reserved_word,Bo(R))))}function Lo(R){z&&Pf(R.left)&&vy(R.operatorToken.kind)&&El(R,R.left)}function Ja(R){z&&R.variableDeclaration&&El(R,R.variableDeclaration.name)}function Pc(R){if(z&&R.expression.kind===80){const Te=rx(e,R.expression);e.bindDiagnostics.push(bu(e,Te.start,Te.length,p.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function ld(R){return Je(R)&&(R.escapedText==="eval"||R.escapedText==="arguments")}function El(R,Te){if(Te&&Te.kind===80){const at=Te;if(ld(at)){const Ht=rx(e,Te);e.bindDiagnostics.push(bu(e,Ht.start,Ht.length,qc(R),kr(at)))}}}function qc(R){return Du(R)?p.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:e.externalModuleIndicator?p.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:p.Invalid_use_of_0_in_strict_mode}function xc(R){z&&El(R,R.name)}function js(R){return Du(R)?p.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?p.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:p.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function rn(R){if(r<2&&c.kind!==312&&c.kind!==267&&!U6(c)){const Te=rx(e,R);e.bindDiagnostics.push(bu(e,Te.start,Te.length,js(R)))}}function nc(R){z&&El(R,R.operand)}function ku(R){z&&(R.operator===46||R.operator===47)&&El(R,R.operand)}function Fu(R){z&&Wo(R,p.with_statements_are_not_allowed_in_strict_mode)}function Kf(R){z&&go(t)>=2&&(Vie(R.statement)||Xc(R.statement))&&Wo(R.label,p.A_label_is_not_allowed_here)}function Wo(R,Te,...at){const Ht=Hg(e,R.pos);e.bindDiagnostics.push(bu(e,Ht.start,Ht.length,Te,...at))}function Gl(R,Te,at){_e(R,Te,Te,at)}function _e(R,Te,at,Ht){ee(R,{pos:Xv(Te,e),end:at.end},Ht)}function ee(R,Te,at){const Ht=bu(e,Te.pos,Te.end-Te.pos,at);R?e.bindDiagnostics.push(Ht):e.bindSuggestionDiagnostics=gn(e.bindSuggestionDiagnostics,{...Ht,category:2})}function Oe(R){if(!R)return;eo(R,i),cr&&(R.tracingPath=e.path);const Te=z;if(br(R),R.kind>165){const at=i;i=R;const Ht=jG(R);Ht===0?ze(R):Ae(R,Ht),i=at}else{const at=i;R.kind===1&&(i=R),bt(R),i=at}z=Te}function bt(R){if(dp(R))if(lr(R))for(const Te of R.jsDoc)Oe(Te);else for(const Te of R.jsDoc)eo(Te,R),C1(Te,!1)}function _n(R){if(!z)for(const Te of R){if(!em(Te))return;if(Tr(Te)){z=!0;return}}}function Tr(R){const Te=pb(e,R.expression);return Te==='"use strict"'||Te==="'use strict'"}function br(R){switch(R.kind){case 80:if(R.flags&4096){let Yr=R.parent;for(;Yr&&!Dd(Yr);)Yr=Yr.parent;Oc(Yr,524288,788968);break}case 110:return d&&(vt(R)||i.kind===304)&&(R.flowNode=d),vs(R);case 166:d&&r9(R)&&(R.flowNode=d);break;case 236:case 108:R.flowNode=d;break;case 81:return Ou(R);case 211:case 212:const Te=R;d&&zt(Te)&&(Te.flowNode=d),Ose(Te)&&Xn(Te),lr(Te)&&e.commonJsModuleIndicator&&Fh(Te)&&!BM(c,"module")&&Ue(e.locals,void 0,Te.expression,134217729,111550);break;case 226:switch(rl(R)){case 1:If(R);break;case 2:ru(R);break;case 3:la(R.left,R);break;case 6:Ts(R);break;case 4:z_(R);break;case 5:const Yr=R.left.expression;if(lr(R)&&Je(Yr)){const os=BM(c,Yr.escapedText);if(KF(os==null?void 0:os.valueDeclaration)){z_(R);break}}Bl(R);break;case 0:break;default:w.fail("Unknown binary expression special property assignment kind")}return Lo(R);case 299:return Ja(R);case 220:return Pc(R);case 225:return nc(R);case 224:return ku(R);case 254:return Fu(R);case 256:return Kf(R);case 197:g=!0;return;case 182:break;case 168:return ct(R);case 169:return D0(R);case 260:return c_(R);case 208:return R.flowNode=d,c_(R);case 172:case 171:return qr(R);case 303:case 304:return hf(R,4,0);case 306:return hf(R,8,900095);case 179:case 180:case 181:return Wr(R,131072,0);case 174:case 173:return hf(R,8192|(R.questionToken?16777216:0),tm(R)?0:103359);case 262:return ep(R);case 176:return Wr(R,16384,0);case 177:return hf(R,32768,46015);case 178:return hf(R,65536,78783);case 184:case 324:case 330:case 185:return Yo(R);case 187:case 329:case 200:return Ni(R);case 339:return xt(R);case 210:return hl(R);case 218:case 219:return Hh(R);case 213:switch(rl(R)){case 7:return yl(R);case 8:return pu(R);case 9:return sa(R);case 0:break;default:return w.fail("Unknown call expression assignment declaration kind")}lr(R)&&hg(R);break;case 231:case 263:return z=!0,sh(R);case 264:return Oc(R,64,788872);case 265:return Oc(R,524288,788968);case 266:return w0(R);case 267:return As(R);case 292:return Rs(R);case 291:return bo(R,4,0);case 271:case 274:case 276:case 281:return Wr(R,2097152,2097152);case 270:return fu(R);case 273:return jl(R);case 278:return rc(R);case 277:return jc(R);case 312:return _n(R.statements),Fr();case 241:if(!U6(R.parent))return;case 268:return _n(R.statements);case 348:if(R.parent.kind===330)return D0(R);if(R.parent.kind!==329)break;case 355:const ir=R,ai=ir.isBracketed||ir.typeExpression&&ir.typeExpression.type.kind===323?16777220:4;return Wr(ir,ai,0);case 353:case 345:case 347:return(f||(f=[])).push(R);case 346:return Oe(R.typeExpression)}}function qr(R){const Te=uf(R),at=Te?98304:4,Ht=Te?13247:0;return hf(R,at|(R.questionToken?16777216:0),Ht)}function Ni(R){return tc(R,2048,"__type")}function Fr(){if($r(e),Cl(e))ia();else if(wd(e)){ia();const R=e.symbol;Ue(e.symbol.exports,e.symbol,e,4,-1),e.symbol=R}}function ia(){tc(e,512,`"${Y_(e.fileName)}"`)}function jc(R){if(!s.symbol||!s.symbol.exports)tc(R,111551,ye(R));else{const Te=u4(R)?2097152:4,at=Ue(s.symbol.exports,s.symbol,R,Te,-1);R.isExportEquals&&$A(at,R)}}function fu(R){Pe(R.modifiers)&&e.bindDiagnostics.push(se(R,p.Modifiers_cannot_appear_here));const Te=es(R.parent)?Cl(R.parent)?R.parent.isDeclarationFile?void 0:p.Global_module_exports_may_only_appear_in_declaration_files:p.Global_module_exports_may_only_appear_in_module_files:p.Global_module_exports_may_only_appear_at_top_level;Te?e.bindDiagnostics.push(se(R,Te)):(e.symbol.globalExports=e.symbol.globalExports||ha(),Ue(e.symbol.globalExports,e.symbol,R,2097152,2097152))}function rc(R){!s.symbol||!s.symbol.exports?tc(R,8388608,ye(R)):R.exportClause?Zg(R.exportClause)&&(eo(R.exportClause,R),Ue(s.symbol.exports,s.symbol,R.exportClause,2097152,2097152)):Ue(s.symbol.exports,s.symbol,R,8388608,0)}function jl(R){R.name&&Wr(R,2097152,2097152)}function Io(R){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=R,e.externalModuleIndicator||ia()),!0)}function pu(R){if(!Io(R))return;const Te=ud(R.arguments[0],void 0,(at,Ht)=>(Ht&&ie(Ht,at,67110400),Ht));Te&&Ue(Te.exports,Te,R,1048580,0)}function If(R){if(!Io(R))return;const Te=ud(R.left.expression,void 0,(at,Ht)=>(Ht&&ie(Ht,at,67110400),Ht));if(Te){const Ht=rN(R.right)&&(ax(R.left.expression)||Fh(R.left.expression))?2097152:1048580;eo(R.left,R),Ue(Te.exports,Te,R.left,Ht,0)}}function ru(R){if(!Io(R))return;const Te=VA(R.right);if(hq(Te)||s===e&&Wb(e,Te))return;if(Va(Te)&&Pn(Te.properties,Af)){dt(Te.properties,Bd);return}const at=u4(R)?2097152:1049092,Ht=Ue(e.symbol.exports,e.symbol,R,at|67108864,0);$A(Ht,R)}function Bd(R){Ue(e.symbol.exports,e.symbol,R,69206016,0)}function z_(R){if(w.assert(lr(R)),mr(R)&&Jr(R.left)&&Qi(R.left.name)||Jr(R)&&Qi(R.name))return;const at=_f(R,!1,!1);switch(at.kind){case 262:case 218:let Ht=at.symbol;if(mr(at.parent)&&at.parent.operatorToken.kind===64){const Yr=at.parent.left;vb(Yr)&&T1(Yr.expression)&&(Ht=nf(Yr.expression.expression,o))}Ht&&Ht.valueDeclaration&&(Ht.members=Ht.members||ha(),S1(R)?De(R,Ht,Ht.members):Ue(Ht.members,Ht,R,67108868,0),ie(Ht,Ht.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:const ir=at.parent,ai=da(at)?ir.symbol.exports:ir.symbol.members;S1(R)?De(R,ir.symbol,ai):Ue(ai,ir.symbol,R,67108868,0,!0);break;case 312:if(S1(R))break;at.commonJsModuleIndicator?Ue(at.symbol.exports,at.symbol,R,1048580,0):Wr(R,1,111550);break;case 267:break;default:w.failBadSyntaxKind(at)}}function De(R,Te,at){Ue(at,Te,R,4,0,!0,!0),jt(R,Te)}function jt(R,Te){Te&&(Te.assignmentDeclarationMembers||(Te.assignmentDeclarationMembers=new Map)).set(ho(R),R)}function Xn(R){R.expression.kind===110?z_(R):vb(R)&&R.parent.parent.kind===312&&(T1(R.expression)?la(R,R.parent):Tc(R))}function Ts(R){eo(R.left,R),eo(R.right,R),du(R.left.expression,R.left,!1,!0)}function sa(R){const Te=nf(R.arguments[0].expression);Te&&Te.valueDeclaration&&ie(Te,Te.valueDeclaration,32),sl(R,Te,!0)}function la(R,Te){const at=R.expression,Ht=at.expression;eo(Ht,at),eo(at,R),eo(R,Te),du(Ht,R,!0,!0)}function yl(R){let Te=nf(R.arguments[0]);const at=R.parent.parent.kind===312;Te=Fc(Te,R.arguments[0],at,!1,!1),sl(R,Te,!1)}function Bl(R){var Te;const at=nf(R.left.expression,c)||nf(R.left.expression,s);if(!lr(R)&&!Fse(at))return;const Ht=S4(R.left);if(!(Je(Ht)&&((Te=BM(s,Ht.escapedText))==null?void 0:Te.flags)&2097152))if(eo(R.left,R),eo(R.right,R),Je(R.left.expression)&&s===e&&Wb(e,R.left.expression))If(R);else if(S1(R)){tc(R,67108868,"__computed");const ir=Fc(at,R.left.expression,vl(R.left),!1,!1);jt(R,ir)}else Tc(pa(R.left,cx))}function Tc(R){w.assert(!Je(R)),eo(R.expression,R),du(R.expression,R,!1,!1)}function Fc(R,Te,at,Ht,ir){return(R==null?void 0:R.flags)&2097152||(at&&!Ht&&(R=ud(Te,R,(os,qa,Ha)=>{if(qa)return ie(qa,os,67110400),qa;{const Zc=Ha?Ha.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=ha());return Ue(Zc,Ha,os,67110400,110735)}})),ir&&R&&R.valueDeclaration&&ie(R,R.valueDeclaration,32)),R}function sl(R,Te,at){if(!Te||!Up(Te))return;const Ht=at?Te.members||(Te.members=ha()):Te.exports||(Te.exports=ha());let ir=0,ai=0;Ko(vk(R))?(ir=8192,ai=103359):ma(R)&&ox(R)&&(Pe(R.arguments[2].properties,Yr=>{const os=Ms(Yr);return!!os&&Je(os)&&kr(os)==="set"})&&(ir|=65540,ai|=78783),Pe(R.arguments[2].properties,Yr=>{const os=Ms(Yr);return!!os&&Je(os)&&kr(os)==="get"})&&(ir|=32772,ai|=46015)),ir===0&&(ir=4,ai=0),Ue(Ht,Te,R,ir|67108864,ai&-67108865)}function vl(R){return mr(R.parent)?gf(R.parent).parent.kind===312:R.parent.parent.kind===312}function du(R,Te,at,Ht){let ir=nf(R,c)||nf(R,s);const ai=vl(Te);ir=Fc(ir,Te.expression,ai,at,Ht),sl(Te,ir,at)}function Up(R){if(R.flags&1072)return!0;const Te=R.valueDeclaration;if(Te&&ma(Te))return!!vk(Te);let at=Te?Ji(Te)?Te.initializer:mr(Te)?Te.right:Jr(Te)&&mr(Te.parent)?Te.parent.right:void 0:void 0;if(at=at&&VA(at),at){const Ht=T1(Ji(Te)?Te.name:mr(Te)?Te.left:Te);return!!Yv(mr(at)&&(at.operatorToken.kind===57||at.operatorToken.kind===61)?at.right:at,Ht)}return!1}function gf(R){for(;mr(R.parent);)R=R.parent;return R.parent}function nf(R,Te=s){if(Je(R))return BM(Te,R.escapedText);{const at=nf(R.expression);return at&&at.exports&&at.exports.get(g0(R))}}function ud(R,Te,at){if(Wb(e,R))return e.symbol;if(Je(R))return at(R,nf(R),Te);{const Ht=ud(R.expression,Te,at),ir=qA(R);return Qi(ir)&&w.fail("unexpected PrivateIdentifier"),at(ir,Ht&&Ht.exports&&Ht.exports.get(g0(R)),Ht)}}function hg(R){!e.commonJsModuleIndicator&&Q_(R,!1)&&Io(R)}function sh(R){if(R.kind===263)Oc(R,32,899503);else{const ir=R.name?R.name.escapedText:"__class";tc(R,32,ir),R.name&&ge.add(R.name.escapedText)}const{symbol:Te}=R,at=fe(4194308,"prototype"),Ht=Te.exports.get(at.escapedName);Ht&&(R.name&&eo(R.name,R),e.bindDiagnostics.push(se(Ht.declarations[0],p.Duplicate_identifier_0,Rc(at)))),Te.exports.set(at.escapedName,at),at.parent=Te}function w0(R){return mb(R)?Oc(R,128,899967):Oc(R,256,899327)}function c_(R){if(z&&El(R,R.name),!ca(R.name)){const Te=R.kind===260?R:R.parent.parent;lr(R)&&yb(Te)&&!qv(R)&&!(Vv(R)&32)?Wr(R,2097152,2097152):gW(R)?Oc(R,2,111551):xb(R)?Wr(R,1,111551):Wr(R,1,111550)}}function D0(R){if(!(R.kind===348&&s.kind!==330)&&(z&&!(R.flags&33554432)&&El(R,R.name),ca(R.name)?tc(R,1,"__"+R.parent.parameters.indexOf(R)):Wr(R,1,111551),Uf(R,R.parent))){const Te=R.parent.parent;Ue(Te.symbol.members,Te.symbol,R,4|(R.questionToken?16777216:0),0)}}function ep(R){!e.isDeclarationFile&&!(R.flags&33554432)&&LP(R)&&(Z|=4096),xc(R),z?(rn(R),Oc(R,16,110991)):Wr(R,16,110991)}function Hh(R){!e.isDeclarationFile&&!(R.flags&33554432)&&LP(R)&&(Z|=4096),d&&(R.flowNode=d),xc(R);const Te=R.name?R.name.escapedText:"__function";return tc(R,16,Te)}function hf(R,Te,at){return!e.isDeclarationFile&&!(R.flags&33554432)&&LP(R)&&(Z|=4096),d&&$F(R)&&(R.flowNode=d),S1(R)?tc(R,Te,"__computed"):Wr(R,Te,at)}function te(R){const Te=Vn(R,at=>at.parent&&$k(at.parent)&&at.parent.extendsType===at);return Te&&Te.parent}function ct(R){if(Rd(R.parent)){const Te=f9(R.parent);Te?(w.assertNode(Te,Ug),Te.locals??(Te.locals=ha()),Ue(Te.locals,void 0,R,262144,526824)):Wr(R,262144,526824)}else if(R.parent.kind===195){const Te=te(R.parent);Te?(w.assertNode(Te,Ug),Te.locals??(Te.locals=ha()),Ue(Te.locals,void 0,R,262144,526824)):tc(R,262144,ye(R))}else Wr(R,262144,526824)}function Bt(R){const Te=C0(R);return Te===1||Te===2&&Nb(t)}function Vt(R){if(!(d.flags&1))return!1;if(d===ve&&(SA(R)&&R.kind!==242||R.kind===263||R.kind===267&&Bt(R))&&(d=Q,!t.allowUnreachableCode)){const at=Aae(t)&&!(R.flags&33554432)&&(!Xc(R)||!!(py(R.declarationList)&7)||R.declarationList.declarations.some(Ht=>!!Ht.initializer));gWe(R,(Ht,ir)=>_e(at,Ht,ir,p.Unreachable_code_detected))}return!0}}function gWe(e,t){if(Xi(e)&&mCe(e)&&na(e.parent)){const{statements:r}=e.parent,i=Fq(r,e);Dr(i,mCe,(s,o)=>t(i[s],i[o-1]))}else t(e,e)}function mCe(e){return!Wl(e)&&!hWe(e)&&!a2(e)&&!(Xc(e)&&!(py(e)&7)&&e.declarationList.declarations.some(t=>!t.initializer))}function hWe(e){switch(e.kind){case 264:case 265:return!0;case 267:return C0(e)!==1;case 266:return Kr(e,4096);default:return!1}}function Wb(e,t){let r=0;const i=R8();for(i.enqueue(t);!i.isEmpty()&&r<100;){if(r++,t=i.dequeue(),ax(t)||Fh(t))return!0;if(Je(t)){const s=BM(e,t.escapedText);if(s&&s.valueDeclaration&&Ji(s.valueDeclaration)&&s.valueDeclaration.initializer){const o=s.valueDeclaration.initializer;i.enqueue(o),Kl(o,!0)&&(i.enqueue(o.left),i.enqueue(o.right))}}}return!1}function jG(e){switch(e.kind){case 231:case 263:case 266:case 210:case 187:case 329:case 292:return 1;case 264:return 65;case 267:case 265:case 200:case 181:return 33;case 312:return 37;case 177:case 178:case 174:if($F(e))return 173;case 176:case 262:case 173:case 179:case 330:case 324:case 184:case 180:case 185:case 175:return 45;case 218:case 219:return 61;case 268:return 4;case 172:return e.initializer?4:0;case 299:case 248:case 249:case 250:case 269:return 34;case 241:return oa(e.parent)||Vc(e.parent)?0:34}return 0}function BM(e,t){var r,i,s,o;const c=(i=(r=si(e,Ug))==null?void 0:r.locals)==null?void 0:i.get(t);if(c)return c.exportSymbol??c;if(es(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t))return e.jsGlobalAugmentations.get(t);if(Km(e))return(o=(s=e.symbol)==null?void 0:s.exports)==null?void 0:o.get(t)}var BG,JG,gCe,yWe=K({"src/compiler/binder.ts"(){ua(),HS(),BG=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(BG||{}),JG=(e=>(e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor",e))(JG||{}),gCe=mWe()}});function Kce(e,t,r,i,s,o,c,u,f,g){return d;function d(y=()=>!0){const x=[],T=[];return{walkType:ge=>{try{return C(ge),{visitedTypes:ik(x),visitedSymbols:ik(T)}}finally{Al(x),Al(T)}},walkSymbol:ge=>{try{return ne(ge),{visitedTypes:ik(x),visitedSymbols:ik(T)}}finally{Al(x),Al(T)}}};function C(ge){if(!(!ge||x[ge.id]||(x[ge.id]=ge,ne(ge.symbol)))){if(ge.flags&524288){const Q=ge,X=Q.objectFlags;X&4&&N(ge),X&32&&Z(ge),X&3&&ce(ge),X&24&&J(Q)}ge.flags&262144&&D(ge),ge.flags&3145728&&M(ge),ge.flags&4194304&&V(ge),ge.flags&8388608&&G(ge)}}function N(ge){C(ge.target),dt(g(ge),C)}function D(ge){C(u(ge))}function M(ge){dt(ge.types,C)}function V(ge){C(ge.type)}function G(ge){C(ge.objectType),C(ge.indexType),C(ge.constraint)}function Z(ge){C(ge.typeParameter),C(ge.constraintType),C(ge.templateType),C(ge.modifiersType)}function z(ge){const ve=t(ge);ve&&C(ve.type),dt(ge.typeParameters,C);for(const Q of ge.parameters)ne(Q);C(e(ge)),C(r(ge))}function ce(ge){J(ge),dt(ge.typeParameters,C),dt(i(ge),C),C(ge.thisType)}function J(ge){const ve=s(ge);for(const Q of ve.indexInfos)C(Q.keyType),C(Q.type);for(const Q of ve.callSignatures)z(Q);for(const Q of ve.constructSignatures)z(Q);for(const Q of ve.properties)ne(Q)}function ne(ge){if(!ge)return!1;const ve=Ia(ge);if(T[ve])return!1;if(T[ve]=ge,!y(ge))return!0;const Q=o(ge);return C(Q),ge.exports&&ge.exports.forEach(ne),dt(ge.declarations,X=>{if(X.type&&X.type.kind===186){const se=X.type,pe=c(f(se.exprName));ne(pe)}}),!1}}}var vWe=K({"src/compiler/symbolWalker.ts"(){ua()}});function A7({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t},r,i,s){const o=c();return{relativePreference:s!==void 0?yu(s)?0:1:e==="relative"?0:e==="non-relative"?1:e==="project-relative"?3:2,getAllowedEndingsInPreferredOrder:u=>{const f=u!==i.impliedNodeFormat?c(u):o;if((u??i.impliedNodeFormat)===99)return e3(r,i.fileName)?[3,2]:[2];if(j_(r)===1)return f===2?[2,1]:[1,2];const g=e3(r,i.fileName);switch(f){case 2:return g?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return g?[1,0,3,2]:[1,0,2];case 0:return g?[0,1,3,2]:[0,1,2];default:w.assertNever(f)}}};function c(u){if(s!==void 0){if(Pb(s))return 2;if(Jc(s,"/index"))return 1}return Bae(t,u??i.impliedNodeFormat,r,i)}}function bWe(e,t,r,i,s,o,c={}){const u=hCe(e,t,r,i,s,A7({},e,t,o),{},c);if(u!==o)return u}function JM(e,t,r,i,s,o={}){return hCe(e,t,r,i,s,A7({},e,t),{},o)}function SWe(e,t,r,i,s,o={}){const c=zG(t.fileName,i),u=kCe(c,r,i,s,o);return li(u,f=>tle(f,c,t,i,e,s,!0,o.overrideImportMode))}function hCe(e,t,r,i,s,o,c,u={}){const f=zG(r,s),g=kCe(f,i,s,c,u);return li(g,d=>tle(d,f,t,s,e,c,void 0,u.overrideImportMode))||SCe(i,f,e,s,u.overrideImportMode||t.impliedNodeFormat,o)}function xWe(e,t,r,i,s={}){return yCe(e,t,r,i,s)[0]}function yCe(e,t,r,i,s={}){var o;const c=MF(e);if(!c)return Ke;const u=(o=r.getModuleSpecifierCache)==null?void 0:o.call(r),f=u==null?void 0:u.get(t.path,c.path,i,s);return[f==null?void 0:f.moduleSpecifiers,c,f==null?void 0:f.modulePaths,u]}function vCe(e,t,r,i,s,o,c={}){return bCe(e,t,r,i,s,o,c,!1).moduleSpecifiers}function bCe(e,t,r,i,s,o,c={},u){let f=!1;const g=CWe(e,t);if(g)return{moduleSpecifiers:[g],computedWithoutCache:f};let[d,y,x,T]=yCe(e,i,s,o,c);if(d)return{moduleSpecifiers:d,computedWithoutCache:f};if(!y)return{moduleSpecifiers:Ke,computedWithoutCache:f};f=!0,x||(x=CCe(zG(i.fileName,s),y.originalFileName,s));const C=TWe(x,r,i,s,o,c,u);return T==null||T.set(i.path,y.path,o,c,x,C),{moduleSpecifiers:C,computedWithoutCache:f}}function TWe(e,t,r,i,s,o={},c){const u=zG(r.fileName,i),f=A7(s,t,r),g=dt(e,N=>dt(i.getFileIncludeReasons().get(hc(N.path,i.getCurrentDirectory(),u.getCanonicalFileName)),D=>{if(D.kind!==3||D.file!==r.path||r.impliedNodeFormat&&r.impliedNodeFormat!==_ue(r,D.index,t))return;const M=H7(r,D.index).text;return f.relativePreference!==1||!pp(M)?M:void 0}));if(g)return[g];const d=Pe(e,N=>N.isInNodeModules);let y,x,T,C;for(const N of e){const D=N.isInNodeModules?tle(N,u,r,i,t,s,void 0,o.overrideImportMode):void 0;if(y=gn(y,D),D&&N.isRedirect)return y;if(!D){const M=SCe(N.path,u,t,i,o.overrideImportMode||r.impliedNodeFormat,f,N.isRedirect);if(!M)continue;N.isRedirect?T=gn(T,M):NV(M)?p2(M)?C=gn(C,M):x=gn(x,M):(c||!d||N.isInNodeModules)&&(C=gn(C,M))}}return x!=null&&x.length?x:T!=null&&T.length?T:y!=null&&y.length?y:w.checkDefined(C)}function zG(e,t){e=Ss(e,t.getCurrentDirectory());const r=e_(t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!0),i=oi(e);return{getCanonicalFileName:r,importingSourceFileName:e,sourceDirectory:i,canonicalSourceDirectory:r(i)}}function SCe(e,t,r,i,s,{getAllowedEndingsInPreferredOrder:o,relativePreference:c},u){const{baseUrl:f,paths:g,rootDirs:d}=r;if(u&&!g)return;const{sourceDirectory:y,canonicalSourceDirectory:x,getCanonicalFileName:T}=t,C=o(s),N=d&&wWe(d,e,y,T,C,r)||N7(ob(Qd(y,e,T)),C,r);if(!f&&!g&&!uL(r)||c===0)return u?void 0:N;const D=Ss(S9(r,i)||f,i.getCurrentDirectory()),M=DCe(e,D,T);if(!M)return u?void 0:N;const V=u?void 0:PWe(e,y,r,i,s),G=u||V===void 0?g&&ECe(M,g,C,i,r):void 0;if(u)return G;const Z=V??(G===void 0&&f!==void 0?N7(M,C,r):G);if(!Z)return N;if(c===1&&!pp(Z))return Z;if(c===3&&!pp(Z)){const z=r.configFilePath?hc(oi(r.configFilePath),i.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(i.getCurrentDirectory()),ce=hc(e,z,T),J=fs(x,z),ne=fs(ce,z);if(J&&!ne||!J&&ne)return Z;const ge=ele(i,oi(ce)),ve=ele(i,y),Q=!h4(i);return kWe(ge,ve,Q)?N:Z}return ACe(Z)||zM(N)e.fileExists(Zr(r,"package.json"))?r:void 0)}function TCe(e,t,r,i,s){var o;const c=yy(r),u=r.getCurrentDirectory(),f=r.isSourceOfProjectReferenceRedirect(t)?r.getProjectReferenceRedirect(t):void 0,g=hc(t,u,c),d=r.redirectTargetsMap.get(g)||Ke,x=[...f?[f]:Ke,t,...d].map(M=>Ss(M,u));let T=!Pn(x,aw);if(!i){const M=dt(x,V=>!(T&&aw(V))&&s(V,f===V));if(M)return M}const C=(o=r.getSymlinkCache)==null?void 0:o.call(r).getSymlinkedDirectoriesByRealpath(),N=Ss(t,u);return C&&Yd(oi(N),M=>{const V=C.get(ou(hc(M,u,c)));if(V)return OV(e,M,c)?!1:dt(x,G=>{if(!OV(G,M,c))return;const Z=Qd(M,G,c);for(const z of V){const ce=l1(z,Z),J=s(ce,G===f);if(T=!0,J)return J}})})||(i?dt(x,M=>T&&aw(M)?void 0:s(M,M===f)):void 0)}function kCe(e,t,r,i,s={}){var o;const c=hc(e.importingSourceFileName,r.getCurrentDirectory(),yy(r)),u=hc(t,r.getCurrentDirectory(),yy(r)),f=(o=r.getModuleSpecifierCache)==null?void 0:o.call(r);if(f){const d=f.get(c,u,i,s);if(d!=null&&d.modulePaths)return d.modulePaths}const g=CCe(e,t,r);return f&&f.setModulePaths(c,u,i,s,g),g}function CCe(e,t,r){const i=new Map;TCe(e.importingSourceFileName,t,r,!0,(o,c)=>{const u=p2(o);i.set(o,{path:e.getCanonicalFileName(o),isRedirect:c,isInNodeModules:u})});const s=[];for(let o=e.canonicalSourceDirectory;i.size!==0;){const c=ou(o);let u;i.forEach(({path:g,isRedirect:d,isInNodeModules:y},x)=>{fs(g,c)&&((u||(u=[])).push({path:x,isRedirect:d,isInNodeModules:y}),i.delete(x))}),u&&(u.length>1&&u.sort(xCe),s.push(...u));const f=oi(o);if(f===o)break;o=f}if(i.size){const o=Vs(i.entries(),([c,{isRedirect:u,isInNodeModules:f}])=>({path:c,isRedirect:u,isInNodeModules:f}));o.length>1&&o.sort(xCe),s.push(...o)}return s}function CWe(e,t){var r;const i=(r=e.declarations)==null?void 0:r.find(c=>yW(c)&&(!db(c)||!yu(Ad(c.name))));if(i)return i.name.text;const o=Oi(e.declarations,c=>{var u,f,g,d;if(!dl(c))return;const y=N(c);if(!((u=y==null?void 0:y.parent)!=null&&u.parent&&lg(y.parent)&&n_(y.parent.parent)&&es(y.parent.parent.parent)))return;const x=(d=(g=(f=y.parent.parent.symbol.exports)==null?void 0:f.get("export="))==null?void 0:g.valueDeclaration)==null?void 0:d.expression;if(!x)return;const T=t.getSymbolAtLocation(x);if(!T)return;if(((T==null?void 0:T.flags)&2097152?t.getAliasedSymbol(T):T)===c.symbol)return y.parent.parent;function N(D){for(;D.flags&8;)D=D.parent;return D}})[0];if(o)return o.name.text}function ECe(e,t,r,i,s){for(const c in t)for(const u of t[c]){const f=ka(u),g=f.indexOf("*"),d=r.map(y=>({ending:y,value:N7(e,[y],s)}));if(b0(f)&&d.push({ending:void 0,value:e}),g!==-1){const y=f.substring(0,g),x=f.substring(g+1);for(const{ending:T,value:C}of d)if(C.length>=y.length+x.length&&fs(C,y)&&Jc(C,x)&&o({ending:T,value:C})){const N=C.substring(y.length,C.length-x.length);if(!pp(N))return Fk(c,N)}}else if(Pe(d,y=>y.ending!==0&&f===y.value)||Pe(d,y=>y.ending===0&&f===y.value&&o(y)))return c}function o({ending:c,value:u}){return c!==0||u===N7(e,[c],s,i)}}function UM(e,t,r,i,s,o,c,u,f){if(typeof o=="string"){const g=!h4(t),d=()=>t.getCommonSourceDirectory(),y=f&&h$(r,e,g,d),x=f&&g$(r,e,g,d),T=Ss(Zr(i,o),void 0),C=Ik(r)?Y_(r)+rle(r,e):void 0;switch(u){case 0:if(C&&u0(C,T,g)===0||u0(r,T,g)===0||y&&u0(y,T,g)===0||x&&u0(x,T,g)===0)return{moduleFileToTry:s};break;case 1:if(C&&Xd(T,C,g)){const V=Qd(T,C,!1);return{moduleFileToTry:Ss(Zr(Zr(s,o),V),void 0)}}if(Xd(T,r,g)){const V=Qd(T,r,!1);return{moduleFileToTry:Ss(Zr(Zr(s,o),V),void 0)}}if(y&&Xd(T,y,g)){const V=Qd(T,y,!1);return{moduleFileToTry:Zr(s,V)}}if(x&&Xd(T,x,g)){const V=Qd(T,x,!1);return{moduleFileToTry:Zr(s,V)}}break;case 2:const N=T.indexOf("*"),D=T.slice(0,N),M=T.slice(N+1);if(C&&fs(C,D,g)&&Jc(C,M,g)){const V=C.slice(D.length,C.length-M.length);return{moduleFileToTry:Fk(s,V)}}if(fs(r,D,g)&&Jc(r,M,g)){const V=r.slice(D.length,r.length-M.length);return{moduleFileToTry:Fk(s,V)}}if(y&&fs(y,D,g)&&Jc(y,M,g)){const V=y.slice(D.length,y.length-M.length);return{moduleFileToTry:Fk(s,V)}}if(x&&fs(x,D,g)&&Jc(x,M,g)){const V=x.slice(D.length,x.length-M.length);return{moduleFileToTry:Fk(s,V)}}break}}else{if(Array.isArray(o))return dt(o,g=>UM(e,t,r,i,s,g,c,u,f));if(typeof o=="object"&&o!==null){for(const g of Eh(o))if(g==="default"||c.indexOf(g)>=0||w7(c,g)){const d=o[g],y=UM(e,t,r,i,s,d,c,u,f);if(y)return y}}}}function EWe(e,t,r,i,s,o,c){return typeof o=="object"&&o!==null&&!Array.isArray(o)&&RM(o)?dt(Eh(o),u=>{const f=Ss(Zr(s,u),void 0),g=Jc(u,"/")?1:u.includes("*")?2:0;return UM(e,t,r,i,f,o[u],c,g,!1)}):UM(e,t,r,i,s,o,c,0,!1)}function PWe(e,t,r,i,s){var o,c,u;if(!i.readFile||!uL(r))return;const f=ele(i,t);if(!f)return;const g=Zr(f,"package.json"),d=(c=(o=i.getPackageJsonInfoCache)==null?void 0:o.call(i))==null?void 0:c.getPackageJsonInfo(g);if(Bce(d)||!i.fileExists(g))return;const y=(d==null?void 0:d.contents.packageJsonContent)||A9(i.readFile(g)),x=y==null?void 0:y.imports;if(!x)return;const T=M1(r,s);return(u=dt(Eh(x),C=>{if(!fs(C,"#")||C==="#"||fs(C,"#/"))return;const N=Jc(C,"/")?1:C.includes("*")?2:0;return UM(r,i,e,f,C,x[C],T,N,!0)}))==null?void 0:u.moduleFileToTry}function wWe(e,t,r,i,s,o){const c=PCe(t,e,i);if(c===void 0)return;const u=PCe(r,e,i),f=Ys(u,d=>Kt(c,y=>ob(Qd(d,y,i)))),g=pU(f,bN);if(g)return N7(g,s,o)}function tle({path:e,isRedirect:t},{getCanonicalFileName:r,canonicalSourceDirectory:i},s,o,c,u,f,g){if(!o.fileExists||!o.readFile)return;const d=tL(e);if(!d)return;const x=A7(u,c,s).getAllowedEndingsInPreferredOrder();let T=e,C=!1;if(!f){let Z=d.packageRootIndex,z;for(;;){const{moduleFileToTry:ce,packageRootPath:J,blockedByExports:ne,verbatimFromExports:ge}=G(Z);if(j_(c)!==1){if(ne)return;if(ge)return ce}if(J){T=J,C=!0;break}if(z||(z=ce),Z=e.indexOf(yc,Z+1),Z===-1){T=N7(z,x,c,o);break}}}if(t&&!C)return;const N=o.getGlobalTypingsCacheLocation&&o.getGlobalTypingsCacheLocation(),D=r(T.substring(0,d.topLevelNodeModulesIndex));if(!(fs(i,D)||N&&fs(r(N),D)))return;const M=T.substring(d.topLevelPackageNameIndex+1),V=zw(M);return j_(c)===1&&V===M?void 0:V;function G(Z){var z,ce;const J=e.substring(0,Z),ne=Zr(J,"package.json");let ge=e,ve=!1;const Q=(ce=(z=o.getPackageJsonInfoCache)==null?void 0:z.call(o))==null?void 0:ce.getPackageJsonInfo(ne);if(OM(Q)||Q===void 0&&o.fileExists(ne)){const X=(Q==null?void 0:Q.contents.packageJsonContent)||A9(o.readFile(ne)),se=g||s.impliedNodeFormat;if(lL(c)){const fe=J.substring(d.topLevelPackageNameIndex+1),ie=zw(fe),ye=M1(c,se),Ne=X!=null&&X.exports?EWe(c,o,e,J,ie,X.exports,ye):void 0;if(Ne)return{...Ne,verbatimFromExports:!0};if(X!=null&&X.exports)return{moduleFileToTry:e,blockedByExports:!0}}const pe=X!=null&&X.typesVersions?NM(X.typesVersions):void 0;if(pe){const fe=e.slice(J.length+1),ie=ECe(fe,pe.paths,x,o,c);ie===void 0?ve=!0:ge=Zr(J,ie)}const we=(X==null?void 0:X.typings)||(X==null?void 0:X.types)||(X==null?void 0:X.main)||"index.js";if(Ls(we)&&!(ve&&Oq(X9(pe.paths),we))){const fe=hc(we,J,r),ie=r(ge);if(Y_(fe)===Y_(ie))return{packageRootPath:J,moduleFileToTry:ge};if((X==null?void 0:X.type)!=="module"&&!Vl(ie,IN)&&fs(ie,fe)&&oi(ie)===Bv(fe)&&Y_(xl(ie))==="index")return{packageRootPath:J,moduleFileToTry:ge}}}else{const X=r(ge.substring(d.packageRootIndex+1));if(X==="index.d.ts"||X==="index.js"||X==="index.ts"||X==="index.tsx")return{moduleFileToTry:ge,packageRootPath:J}}return{moduleFileToTry:ge}}}function DWe(e,t){if(!e.fileExists)return;const r=P_(KP({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(const i of r){const s=t+i;if(e.fileExists(s))return s}}function PCe(e,t,r){return Oi(t,i=>{const s=DCe(e,i,r);return s!==void 0&&ACe(s)?void 0:s})}function N7(e,t,r,i){if(Vl(e,[".json",".mjs",".cjs"]))return e;const s=Y_(e);if(e===s)return e;const o=t.indexOf(2),c=t.indexOf(3);if(Vl(e,[".mts",".cts"])&&c!==-1&&cg===0||g===1);return f!==-1&&f(e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Shortest=2]="Shortest",e[e.ExternalNonRelative=3]="ExternalNonRelative",e))(ile||{})}}),qb={};Ye(qb,{RelativePreference:()=>ile,countPathComponents:()=>zM,forEachFileNameOfModule:()=>TCe,getModuleSpecifier:()=>JM,getModuleSpecifierPreferences:()=>A7,getModuleSpecifiers:()=>vCe,getModuleSpecifiersWithCacheInfo:()=>bCe,getNodeModulesPackageName:()=>SWe,tryGetJSExtensionForFile:()=>rle,tryGetModuleSpecifiersFromCache:()=>xWe,tryGetRealFileNameForNonJsDeclarationFileName:()=>wCe,updateModuleSpecifier:()=>bWe});var ale=K({"src/compiler/_namespaces/ts.moduleSpecifiers.ts"(){sle()}});function AWe(){this.flags=0}function ho(e){return e.id||(e.id=lle,lle++),e.id}function Ia(e){return e.id||(e.id=cle,cle++),e.id}function UG(e,t){const r=C0(e);return r===1||t&&r===2}function ole(e){var t=[],r=n=>{t.push(n)},i,s=new Set,o,c,u=Au.getSymbolConstructor(),f=Au.getTypeConstructor(),g=Au.getSignatureConstructor(),d=0,y=0,x=0,T=0,C=0,N=0,D,M,V=!1,G=ha(),Z=[1],z=e.getCompilerOptions(),ce=go(z),J=r_(z),ne=!!z.experimentalDecorators,ge=dw(z),ve=Iae(z),Q=hx(z),X=R_(z,"strictNullChecks"),se=R_(z,"strictFunctionTypes"),pe=R_(z,"strictBindCallApply"),we=R_(z,"strictPropertyInitialization"),fe=R_(z,"noImplicitAny"),ie=R_(z,"noImplicitThis"),ye=R_(z,"useUnknownInCatchVariables"),Ne=!!z.keyofStringsOnly,Ue=Ne?1:0,Se=z.suppressExcessPropertyErrors?0:8192,Ee=z.exactOptionalPropertyTypes,Ae=cht(),Le=z1t(),Tt=xg(),xe=ha(),ze=ro(4,"undefined");ze.declarations=[];var st=ro(1536,"globalThis",8);st.exports=xe,st.declarations=[],xe.set(st.escapedName,st);var zt=ro(4,"arguments"),yt=ro(4,"require"),$e=z.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",kt=!z.verbatimModuleSyntax||!!z.importsNotUsedAsValues,nn,sn,In=0,Zn,hn=0;const Zt={getNodeCount:()=>D_(e.getSourceFiles(),(n,a)=>n+a.nodeCount,0),getIdentifierCount:()=>D_(e.getSourceFiles(),(n,a)=>n+a.identifierCount,0),getSymbolCount:()=>D_(e.getSourceFiles(),(n,a)=>n+a.symbolCount,y),getTypeCount:()=>d,getInstantiationCount:()=>x,getRelationCacheSizes:()=>({assignable:vf.size,identity:Of.size,subtype:ah.size,strictSubtype:_d.size}),isUndefinedSymbol:n=>n===ze,isArgumentsSymbol:n=>n===zt,isUnknownSymbol:n=>n===ft,getMergedSymbol:po,getDiagnostics:ZLe,getGlobalDiagnostics:r1t,getRecursionIdentity:dte,getUnmatchedProperties:Rye,getTypeOfSymbolAtLocation:(n,a)=>{const l=Is(a);return l?Qpt(n,l):mt},getTypeOfSymbol:fr,getSymbolsOfParameterPropertyDeclaration:(n,a)=>{const l=Is(n,ws);return l===void 0?w.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(w.assert(Uf(l,l.parent)),LD(l,Nc(a)))},getDeclaredTypeOfSymbol:fc,getPropertiesOfType:Po,getPropertyOfType:(n,a)=>Ea(n,Nc(a)),getPrivateIdentifierPropertyOfType:(n,a,l)=>{const _=Is(l);if(!_)return;const m=Nc(a),h=qte(m,_);return h?x1e(n,h):void 0},getTypeOfPropertyOfType:(n,a)=>He(n,Nc(a)),getIndexInfoOfType:(n,a)=>r0(n,a===0?Ie:xt),getIndexInfosOfType:V_,getIndexInfosOfIndexSymbol:N0e,getSignaturesOfType:ra,getIndexTypeOfType:(n,a)=>q2(n,a===0?Ie:xt),getIndexType:n=>Cg(n),getBaseTypes:ap,getBaseTypeOfLiteralType:Y0,getWidenedType:Cp,getTypeFromTypeNode:n=>{const a=Is(n,Gi);return a?ki(a):mt},getParameterType:Hm,getParameterIdentifierInfoAtPosition:Egt,getPromisedTypeOfPromise:nO,getAwaitedType:n=>WT(n),getReturnTypeOfSignature:To,isNullableType:KJ,getNullableType:RJ,getNonNullableType:Z0,getNonOptionalType:yte,getTypeArguments:ac,typeToTypeNode:Tt.typeToTypeNode,indexInfoToIndexSignatureDeclaration:Tt.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:Tt.signatureToSignatureDeclaration,symbolToEntityName:Tt.symbolToEntityName,symbolToExpression:Tt.symbolToExpression,symbolToNode:Tt.symbolToNode,symbolToTypeParameterDeclarations:Tt.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:Tt.symbolToParameterDeclaration,typeParameterToDeclaration:Tt.typeParameterToDeclaration,getSymbolsInScope:(n,a)=>{const l=Is(n);return l?i1t(l,a):[]},getSymbolAtLocation:n=>{const a=Is(n);return a?bm(a,!0):void 0},getIndexInfosAtLocation:n=>{const a=Is(n);return a?f1t(a):void 0},getShorthandAssignmentValueSymbol:n=>{const a=Is(n);return a?p1t(a):void 0},getExportSpecifierLocalTargetSymbol:n=>{const a=Is(n,h_);return a?d1t(a):void 0},getExportSymbolOfSymbol(n){return po(n.exportSymbol||n)},getTypeAtLocation:n=>{const a=Is(n);return a?c6(a):mt},getTypeOfAssignmentPattern:n=>{const a=Is(n,bP);return a&&Sne(a)||mt},getPropertySymbolOfDestructuringAssignment:n=>{const a=Is(n,Je);return a?m1t(a):void 0},signatureToString:(n,a,l,_)=>_h(n,Is(a),l,_),typeToString:(n,a,l)=>Hn(n,Is(a),l),symbolToString:(n,a,l,_)=>Ti(n,Is(a),l,_),typePredicateToString:(n,a,l)=>fh(n,Is(a),l),writeSignature:(n,a,l,_,m)=>_h(n,Is(a),l,_,m),writeType:(n,a,l,_)=>Hn(n,Is(a),l,_),writeSymbol:(n,a,l,_,m)=>Ti(n,Is(a),l,_,m),writeTypePredicate:(n,a,l,_)=>fh(n,Is(a),l,_),getAugmentedPropertiesOfType:Tve,getRootSymbols:aMe,getSymbolOfExpando:ene,getContextualType:(n,a)=>{const l=Is(n,vt);if(l)return a&4?us(l,()=>Tf(l,a)):Tf(l,a)},getContextualTypeForObjectLiteralElement:n=>{const a=Is(n,d0);return a?c1e(a,void 0):void 0},getContextualTypeForArgumentAtIndex:(n,a)=>{const l=Is(n,fb);return l&&o1e(l,a)},getContextualTypeForJsxAttribute:n=>{const a=Is(n,PF);return a&&bFe(a,void 0)},isContextSensitive:yd,getTypeOfPropertyOfContextualType:eb,getFullyQualifiedName:xp,getResolvedSignature:(n,a,l)=>zi(n,a,l,0),getCandidateSignaturesForStringLiteralCompletions:Yt,getResolvedSignatureForSignatureHelp:(n,a,l)=>yi(n,()=>zi(n,a,l,16)),getExpandedParameters:SIe,hasEffectiveRestParameter:bh,containsArgumentsReference:w0e,getConstantValue:n=>{const a=Is(n,_Me);return a?kve(a):void 0},isValidPropertyAccess:(n,a)=>{const l=Is(n,Fie);return!!l&&Lmt(l,Nc(a))},isValidPropertyAccessForCompletions:(n,a,l)=>{const _=Is(n,Jr);return!!_&&QFe(_,a,l)},getSignatureFromDeclaration:n=>{const a=Is(n,oa);return a?Vd(a):void 0},isImplementationOfOverload:n=>{const a=Is(n,oa);return a?lMe(a):void 0},getImmediateAliasedSymbol:p1e,getAliasedSymbol:iu,getEmitResolver:By,getExportsOfModule:dT,getExportsAndPropertiesOfModule:Z3,forEachExportAndPropertyOfModule:K3,getSymbolWalker:Kce(yut,hd,To,ap,Um,fr,ym,af,yp,ac),getAmbientModules:Avt,getJsxIntrinsicTagNamesAt:dmt,isOptionalParameter:n=>{const a=Is(n,ws);return a?P5(a):!1},tryGetMemberInModuleExports:(n,a)=>mT(Nc(n),a),tryGetMemberInModuleExportsAndProperties:(n,a)=>eE(Nc(n),a),tryFindAmbientModule:n=>Jee(n,!0),tryFindAmbientModuleWithoutAugmentations:n=>Jee(n,!1),getApparentType:of,getUnionType:ti,isTypeAssignableTo:wa,createAnonymousType:qo,createSignature:n0,createSymbol:ro,createIndexInfo:hh,getAnyType:()=>U,getStringType:()=>Ie,getStringLiteralType:xf,getNumberType:()=>xt,getNumberLiteralType:Wm,getBigIntType:()=>Ft,createPromiseType:uz,createArrayType:u_,getElementTypeOfArrayType:MJ,getBooleanType:()=>Li,getFalseType:n=>n?tn:Sn,getTrueType:n=>n?Un:Gn,getVoidType:()=>sr,getUndefinedType:()=>Fe,getNullType:()=>de,getESSymbolType:()=>wi,getNeverType:()=>Wr,getOptionalType:()=>H,getPromiseType:()=>bJ(!1),getPromiseLikeType:()=>c5e(!1),getAsyncIterableType:()=>{const n=Qee(!1);if(n!==js)return n},isSymbolAccessible:Bi,isArrayType:bd,isTupleType:Ga,isArrayLikeType:Yy,isEmptyAnonymousObjectType:vh,isTypeInvalidDueToUnionDiscriminant:Klt,getExactOptionalProperties:Eft,getAllPossiblePropertiesOfTypes:eut,getSuggestedSymbolForNonexistentProperty:C1e,getSuggestionForNonexistentProperty:E1e,getSuggestedSymbolForNonexistentJSXAttribute:$Fe,getSuggestedSymbolForNonexistentSymbol:(n,a,l)=>P1e(n,Nc(a),l),getSuggestionForNonexistentSymbol:(n,a,l)=>Nmt(n,Nc(a),l),getSuggestedSymbolForNonexistentModule:Gte,getSuggestionForNonexistentExport:Imt,getSuggestedSymbolForNonexistentClassMember:GFe,getBaseConstraintOfType:l_,getDefaultFromTypeParameter:n=>n&&n.flags&262144?ET(n):void 0,resolveName(n,a,l,_){return Lc(a,Nc(n),l,void 0,void 0,!1,_)},getJsxNamespace:n=>Hi(P2(n)),getJsxFragmentFactory:n=>{const a=Eve(n);return a&&Hi(yp(a).escapedText)},getAccessibleSymbolChain:rv,getTypePredicateOfSignature:hd,resolveExternalModuleName:n=>{const a=Is(n,vt);return a&&U_(a,a,!0)},resolveExternalModuleSymbol:rp,tryGetThisTypeAt:(n,a,l)=>{const _=Is(n);return _&&r1e(_,a,l)},getTypeArgumentConstraint:n=>{const a=Is(n,Gi);return a&&Jht(a)},getSuggestionDiagnostics:(n,a)=>{const l=Is(n,es)||w.fail("Could not determine parsed source file.");if(nw(l,z,e))return Ke;let _;try{return i=a,Sve(l),w.assert(!!(ei(l).flags&1)),_=Mr(_,Yx.getDiagnostics(l.fileName)),dLe(YLe(l),(m,h,k)=>{!G6(m)&&!QLe(h,!!(m.flags&33554432))&&(_||(_=[])).push({...k,category:2})}),_||Ke}finally{i=void 0}},runWithCancellationToken:(n,a)=>{try{return i=n,a(Zt)}finally{i=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:Lr,isDeclarationVisible:jm,isPropertyAccessible:D1e,getTypeOnlyAliasDeclaration:fd,getMemberOverrideModifierStatus:yyt,isTypeParameterPossiblyReferenced:PJ,typeHasCallOrConstructSignatures:xne};function Yt(n,a){const l=new Set,_=[];us(a,()=>zi(n,_,void 0,0));for(const m of _)l.add(m);_.length=0,yi(a,()=>zi(n,_,void 0,0));for(const m of _)l.add(m);return Vs(l)}function yi(n,a){if(n=Vn(n,rW),n){const l=[],_=[];for(;n;){const h=ei(n);if(l.push([h,h.resolvedSignature]),h.resolvedSignature=void 0,Db(n)){const k=Zi(Pr(n)),O=k.type;_.push([k,O]),k.type=void 0}n=Vn(n.parent,rW)}const m=a();for(const[h,k]of l)h.resolvedSignature=k;for(const[h,k]of _)h.type=k;return m}return a()}function us(n,a){const l=Vn(n,fb);if(l){let m=n;do ei(m).skipDirectInference=!0,m=m.parent;while(m&&m!==l)}V=!0;const _=yi(n,a);if(V=!1,l){let m=n;do ei(m).skipDirectInference=void 0,m=m.parent;while(m&&m!==l)}return _}function zi(n,a,l,_){const m=Is(n,fb);nn=l;const h=m?kE(m,a,_):void 0;return nn=void 0,h}var Os=new Map,On=new Map,Fi=new Map,Er=new Map,cn=new Map,et=new Map,Jt=new Map,wn=new Map,ui=new Map,vi=new Map,ts=new Map,Ds=new Map,Sa=new Map,Wa=new Map,Tn=new Map,Ln=[],Ve=new Map,pt=new Set,ft=ro(4,"unknown"),At=ro(0,"__resolving__"),le=new Map,Me=new Map,_t=new Set,U=Pl(1,"any"),it=Pl(1,"any",262144,"auto"),Et=Pl(1,"any",void 0,"wildcard"),Ge=Pl(1,"any",void 0,"blocked string"),mt=Pl(1,"error"),Ut=Pl(1,"unresolved"),vn=Pl(1,"any",65536,"non-inferrable"),pn=Pl(1,"intrinsic"),mn=Pl(2,"unknown"),q=Pl(2,"unknown",void 0,"non-null"),Fe=Pl(32768,"undefined"),Ot=X?Fe:Pl(32768,"undefined",65536,"widening"),I=Pl(32768,"undefined",void 0,"missing"),me=Ee?I:Fe,H=Pl(32768,"undefined",void 0,"optional"),de=Pl(65536,"null"),Be=X?de:Pl(65536,"null",65536,"widening"),Ie=Pl(4,"string"),xt=Pl(8,"number"),Ft=Pl(64,"bigint"),tn=Pl(512,"false",void 0,"fresh"),Sn=Pl(512,"false"),Un=Pl(512,"true",void 0,"fresh"),Gn=Pl(512,"true");Un.regularType=Gn,Un.freshType=Un,Gn.regularType=Gn,Gn.freshType=Un,tn.regularType=Sn,tn.freshType=tn,Sn.regularType=Sn,Sn.freshType=tn;var Li=ti([Sn,Gn]),wi=Pl(4096,"symbol"),sr=Pl(16384,"void"),Wr=Pl(131072,"never"),xs=Pl(131072,"never",262144,"silent"),Mi=Pl(131072,"never",void 0,"implicit"),Di=Pl(131072,"never",void 0,"unreachable"),$r=Pl(67108864,"object"),As=ti([Ie,xt]),Dn=ti([Ie,xt,wi]),Yo=Ne?Ie:Dn,hl=ti([xt,Ft]),Rs=ti([Ie,xt,Li,Ft,de,Fe]),bo=wT(["",""],[xt]),tc=EJ(n=>n.flags&262144?K_t(n):n,()=>"(restrictive mapper)"),Oc=EJ(n=>n.flags&262144?Et:n,()=>"(permissive mapper)"),Iu=Pl(131072,"never",void 0,"unique literal"),vs=EJ(n=>n.flags&262144?Iu:n,()=>"(unique literal mapper)"),va,Ou=EJ(n=>(va&&(n===Kf||n===Wo||n===Gl)&&va(!0),n),()=>"(unmeasurable reporter)"),Lo=EJ(n=>(va&&(n===Kf||n===Wo||n===Gl)&&va(!1),n),()=>"(unreliable reporter)"),Ja=qo(void 0,G,Ke,Ke,Ke),Pc=qo(void 0,G,Ke,Ke,Ke);Pc.objectFlags|=2048;var ld=ro(2048,"__type");ld.members=ha();var El=qo(ld,G,Ke,Ke,Ke),qc=qo(void 0,G,Ke,Ke,Ke),xc=X?ti([Fe,de,qc]):mn,js=qo(void 0,G,Ke,Ke,Ke);js.instantiations=new Map;var rn=qo(void 0,G,Ke,Ke,Ke);rn.objectFlags|=262144;var nc=qo(void 0,G,Ke,Ke,Ke),ku=qo(void 0,G,Ke,Ke,Ke),Fu=qo(void 0,G,Ke,Ke,Ke),Kf=$p(),Wo=$p();Wo.constraint=Kf;var Gl=$p(),_e=$p(),ee=$p();ee.constraint=_e;var Oe=yJ(1,"<>",0,U),bt=n0(void 0,void 0,void 0,Ke,U,void 0,0,0),_n=n0(void 0,void 0,void 0,Ke,mt,void 0,0,0),Tr=n0(void 0,void 0,void 0,Ke,U,void 0,0,0),br=n0(void 0,void 0,void 0,Ke,xs,void 0,0,0),qr=hh(xt,Ie,!0),Ni=new Map,Fr={get yieldType(){return w.fail("Not supported")},get returnType(){return w.fail("Not supported")},get nextType(){return w.fail("Not supported")}},ia=e1(U,U,U),jc=e1(U,U,mn),fu=e1(Wr,U,Fe),rc={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:Out,getGlobalIterableType:Qee,getGlobalIterableIteratorType:Fut,getGlobalGeneratorType:Lut,resolveIterationType:(n,a)=>WT(n,a,p.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:p.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:p.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:p.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},jl={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:Mut,getGlobalIterableType:V0e,getGlobalIterableIteratorType:Rut,getGlobalGeneratorType:jut,resolveIterationType:(n,a)=>n,mustHaveANextMethodDiagnostic:p.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:p.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:p.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},Io,pu=new Map,If=[],ru,Bd,z_,De,jt,Xn,Ts,sa,la,yl,Bl,Tc,Fc,sl,vl,du,Up,gf,nf,ud,hg,sh,w0,c_,D0,ep,Hh,hf,te,ct,Bt,Vt,R,Te,at,Ht,ir,ai,Yr,os,qa,Ha,Zc,Lu,$l,tp,yf,W1,So,lm,um,$i,A0,Ry,_m,rS,iS,Vp=new Map,yg=0,Wp=0,N0=0,Re=!1,Ze=0,It,Wt,bn,Kn=[],yn=[],er=[],mi=0,ur=[],ri=[],dr=0,aa=xf(""),no=Wm(0),x_=tte({negative:!1,base10Value:"0"}),Mu=[],I0=[],T2=[],AC=0,k2=!1,B3=0,J3=10,z3=[],Xx=[],sS=[],NC=[],U3=[],IC=[],OC=[],FC=[],LC=[],Qx=[],MC=[],aS=[],oS=[],q1=[],H1=[],Gh=[],C2=[],_o=d4(),Yx=d4(),V3=uh(),E2,O0,ah=new Map,_d=new Map,vf=new Map,np=new Map,Of=new Map,jy=new Map,Zx=ha();Zx.set(ze.escapedName,ze);var W3=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",z.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return U1t(),Zt;function RC(n){return n?Tn.get(n):void 0}function G1(n,a){return n&&Tn.set(n,a),a}function P2(n){if(n){const a=qn(n);if(a)if(Kk(n)){if(a.localJsxFragmentNamespace)return a.localJsxFragmentNamespace;const l=a.pragmas.get("jsxfrag");if(l){const m=Ps(l)?l[0]:l;if(a.localJsxFragmentFactory=rC(m.arguments.factory,ce),tt(a.localJsxFragmentFactory,Jl,Ef),a.localJsxFragmentFactory)return a.localJsxFragmentNamespace=yp(a.localJsxFragmentFactory).escapedText}const _=Eve(n);if(_)return a.localJsxFragmentFactory=_,a.localJsxFragmentNamespace=yp(_).escapedText}else{const l=jC(a);if(l)return a.localJsxNamespace=l}}return E2||(E2="React",z.jsxFactory?(O0=rC(z.jsxFactory,ce),tt(O0,Jl),O0&&(E2=yp(O0).escapedText)):z.reactNamespace&&(E2=Nc(z.reactNamespace))),O0||(O0=L.createQualifiedName(L.createIdentifier(Hi(E2)),"createElement")),E2}function jC(n){if(n.localJsxNamespace)return n.localJsxNamespace;const a=n.pragmas.get("jsx");if(a){const l=Ps(a)?a[0]:a;if(n.localJsxFactory=rC(l.arguments.factory,ce),tt(n.localJsxFactory,Jl,Ef),n.localJsxFactory)return n.localJsxNamespace=yp(n.localJsxFactory).escapedText}}function Jl(n){return Gg(n,-1,-1),En(n,Jl,void 0)}function By(n,a){return ZLe(n,a),Le}function BC(n,a,...l){const _=n?Rr(n,a,...l):ll(a,...l),m=_o.lookup(_);return m||(_o.add(_),_)}function Om(n,a,l,..._){const m=We(a,l,..._);return m.skippedOn=n,m}function Kx(n,a,...l){return n?Rr(n,a,...l):ll(a,...l)}function We(n,a,...l){const _=Kx(n,a,...l);return _o.add(_),_}function Fm(n,a){n?_o.add(a):Yx.add({...a,category:2})}function Ru(n,a,l,..._){if(a.pos<0||a.end<0){if(!n)return;const m=qn(a);Fm(n,"message"in l?bu(m,0,0,l,..._):PW(m,l));return}Fm(n,"message"in l?Rr(a,l,..._):m0(qn(a),a,l))}function w2(n,a,l,..._){const m=We(n,l,..._);if(a){const h=Rr(n,p.Did_you_forget_to_use_await);Ua(m,h)}return m}function JC(n,a){const l=Array.isArray(n)?dt(n,VV):VV(n);return l&&Ua(a,Rr(l,p.The_declaration_was_marked_as_deprecated_here)),Yx.add(a),a}function $1(n){const a=rf(n);return a&&Xe(n.declarations)>1?a.flags&64?Pe(n.declarations,Jy):Pn(n.declarations,Jy):!!n.valueDeclaration&&Jy(n.valueDeclaration)||Xe(n.declarations)&&Pn(n.declarations,Jy)}function Jy(n){return!!(RS(n)&536870912)}function zy(n,a,l){const _=Rr(n,p._0_is_deprecated,l);return JC(a,_)}function FD(n,a,l,_){const m=l?Rr(n,p.The_signature_0_of_1_is_deprecated,_,l):Rr(n,p._0_is_deprecated,_);return JC(a,m)}function ro(n,a,l){y++;const _=new u(n|33554432,a);return _.links=new fle,_.links.checkFlags=l||0,_}function Lm(n,a){const l=ro(1,n);return l.links.type=a,l}function eT(n,a){const l=ro(4,n);return l.links.type=a,l}function tT(n){let a=0;return n&2&&(a|=111551),n&1&&(a|=111550),n&4&&(a|=0),n&8&&(a|=900095),n&16&&(a|=110991),n&32&&(a|=899503),n&64&&(a|=788872),n&256&&(a|=899327),n&128&&(a|=899967),n&512&&(a|=110735),n&8192&&(a|=103359),n&32768&&(a|=46015),n&65536&&(a|=78783),n&262144&&(a|=526824),n&524288&&(a|=788968),n&2097152&&(a|=2097152),a}function D2(n,a){a.mergeId||(a.mergeId=ule,ule++),z3[a.mergeId]=n}function nT(n){const a=ro(n.flags,n.escapedName);return a.declarations=n.declarations?n.declarations.slice():[],a.parent=n.parent,n.valueDeclaration&&(a.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(a.constEnumOnlyModule=!0),n.members&&(a.members=new Map(n.members)),n.exports&&(a.exports=new Map(n.exports)),D2(a,n),a}function Jd(n,a,l=!1){if(!(n.flags&tT(a.flags))||(a.flags|n.flags)&67108864){if(a===n)return n;if(!(n.flags&33554432)){const m=al(n);if(m===ft)return a;n=nT(m)}a.flags&512&&n.flags&512&&n.constEnumOnlyModule&&!a.constEnumOnlyModule&&(n.constEnumOnlyModule=!1),n.flags|=a.flags,a.valueDeclaration&&$A(n,a.valueDeclaration),Mr(n.declarations,a.declarations),a.members&&(n.members||(n.members=ha()),Mm(n.members,a.members,l)),a.exports&&(n.exports||(n.exports=ha()),Mm(n.exports,a.exports,l)),l||D2(n,a)}else if(n.flags&1024)n!==st&&We(a.declarations&&Ms(a.declarations[0]),p.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Ti(n));else{const m=!!(n.flags&384||a.flags&384),h=!!(n.flags&2||a.flags&2),k=m?p.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:h?p.Cannot_redeclare_block_scoped_variable_0:p.Duplicate_identifier_0,O=a.declarations&&qn(a.declarations[0]),j=n.declarations&&qn(n.declarations[0]),W=CA(O,z.checkJs),re=CA(j,z.checkJs),be=Ti(a);if(O&&j&&Io&&!m&&O!==j){const he=u0(O.path,j.path)===-1?O:j,qe=he===O?j:O,ht=Ks(Io,`${he.path}|${qe.path}`,()=>({firstFile:he,secondFile:qe,conflictingSymbols:new Map})),Pt=Ks(ht.conflictingSymbols,be,()=>({isBlockScoped:h,firstFileLocations:[],secondFileLocations:[]}));W||_(Pt.firstFileLocations,a),re||_(Pt.secondFileLocations,n)}else W||zd(a,k,be,n),re||zd(n,k,be,a)}return n;function _(m,h){if(h.declarations)for(const k of h.declarations)Jf(m,k)}}function zd(n,a,l,_){dt(n.declarations,m=>{F0(m,a,l,_.declarations)})}function F0(n,a,l,_){const m=(Yv(n,!1)?RW(n):Ms(n))||n,h=BC(m,a,l);for(const k of _||Ke){const O=(Yv(k,!1)?RW(k):Ms(k))||k;if(O===m)continue;h.relatedInformation=h.relatedInformation||[];const j=Rr(O,p._0_was_also_declared_here,l),W=Rr(O,p.and_here);Xe(h.relatedInformation)>=5||Pe(h.relatedInformation,re=>YP(re,W)===0||YP(re,j)===0)||Ua(h,Xe(h.relatedInformation)?W:j)}}function zC(n,a){if(!(n!=null&&n.size))return a;if(!(a!=null&&a.size))return n;const l=ha();return Mm(l,n),Mm(l,a),l}function Mm(n,a,l=!1){a.forEach((_,m)=>{const h=n.get(m);n.set(m,h?Jd(h,_,l):po(_))})}function q3(n){var a,l,_;const m=n.parent;if(((a=m.symbol.declarations)==null?void 0:a[0])!==m){w.assert(m.symbol.declarations.length>1);return}if(eg(m))Mm(xe,m.symbol.exports);else{const h=n.parent.parent.flags&33554432?void 0:p.Invalid_module_name_in_augmentation_module_0_cannot_be_found;let k=j0(n,n,h,!0);if(!k)return;if(k=rp(k),k.flags&1920)if(Pe(Bd,O=>k===O.symbol)){const O=Jd(m.symbol,k,!0);z_||(z_=new Map),z_.set(n.text,O)}else{if((l=k.exports)!=null&&l.get("__export")&&((_=m.symbol.exports)!=null&&_.size)){const O=_0e(k,"resolvedExports");for(const[j,W]of Vs(m.symbol.exports.entries()))O.has(j)&&!k.exports.has(j)&&Jd(O.get(j),W)}Jd(k,m.symbol)}else We(n,p.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,n.text)}}function cS(n,a,l){a.forEach((m,h)=>{const k=n.get(h);k?dt(k.declarations,_(Hi(h),l)):n.set(h,m)});function _(m,h){return k=>_o.add(Rr(k,h,m))}}function Zi(n){if(n.flags&33554432)return n.links;const a=Ia(n);return Xx[a]??(Xx[a]=new fle)}function ei(n){const a=ho(n);return sS[a]||(sS[a]=new AWe)}function oh(n){return n.kind===312&&!mp(n)}function bf(n,a,l){if(l){const _=po(n.get(a));if(_&&(w.assert((Uc(_)&1)===0,"Should never get an instantiated symbol here."),_.flags&l||_.flags&2097152&&Hu(_)&l))return _}}function LD(n,a){const l=n.parent,_=n.parent.parent,m=bf(l.locals,a,111551),h=bf(dv(_.symbol),a,111551);return m&&h?[m,h]:w.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function L0(n,a){const l=qn(n),_=qn(a),m=qg(n);if(l!==_){if(J&&(l.externalModuleIndicator||_.externalModuleIndicator)||!Vo(z)||px(a)||n.flags&33554432||k(a,n))return!0;const j=e.getSourceFiles();return j.indexOf(l)<=j.indexOf(_)}if(a.flags&16777216||px(a)||Wye(a))return!0;if(n.pos<=a.pos&&!(Zs(n)&&MA(a.parent)&&!n.initializer&&!n.exclamationToken)){if(n.kind===208){const j=e2(a,208);return j?Vn(j,oo)!==Vn(n,oo)||n.posco(j)&&j.parent.parent===n);if(Zs(n))return!O(n,a,!1);if(Uf(n,n.parent))return!(ve&&Du(n)===Du(a)&&k(a,n))}return!0}if(a.parent.kind===281||a.parent.kind===277&&a.parent.isExportEquals||a.kind===277&&a.isExportEquals)return!0;if(k(a,n))return ve&&Du(n)&&(Zs(n)||Uf(n,n.parent))?!O(n,a,!0):!0;return!1;function h(j,W){switch(j.parent.parent.kind){case 243:case 248:case 250:if(uS(W,j,m))return!0;break}const re=j.parent.parent;return V6(re)&&uS(W,re.expression,m)}function k(j,W){return!!Vn(j,re=>{if(re===m)return"quit";if(oa(re))return!0;if(Vc(re))return W.posj.end?!1:Vn(W,he=>{if(he===j)return"quit";switch(he.kind){case 219:return!0;case 172:return re&&(Zs(j)&&he.parent===j.parent||Uf(j,j.parent)&&he.parent===j.parent.parent)?"quit":!0;case 241:switch(he.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}})===void 0}}function MD(n,a,l){const _=go(z),m=a;if(ws(l)&&m.body&&n.valueDeclaration&&n.valueDeclaration.pos>=m.body.pos&&n.valueDeclaration.end<=m.body.end&&_>=2){const O=ei(m);return O.declarationRequiresScopeChange===void 0&&(O.declarationRequiresScopeChange=dt(m.parameters,h)||!1),!O.declarationRequiresScopeChange}return!1;function h(O){return k(O.name)||!!O.initializer&&k(O.initializer)}function k(O){switch(O.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return k(O.name);case 172:return Fl(O)?!ve:k(O.name);default:return GV(O)||m_(O)?_<7:oo(O)&&O.dotDotDotToken&&Md(O.parent)?_<4:Gi(O)?!1:Xs(O,k)||!1}}}function X1(n){return KS(n)&&p0(n.type)||Dw(n)&&p0(n.typeExpression)}function Lc(n,a,l,_,m,h,k=!1,O=!0){return bp(n,a,l,_,m,h,k,O,bf)}function bp(n,a,l,_,m,h,k,O,j){var W,re,be;const he=n;let qe,ht,Pt,on,un,or=!1;const Rn=n;let ln,Jn=!1;e:for(;n;){if(a==="const"&&X1(n))return;if(bA(n)&&ht&&n.name===ht&&(ht=n,n=n.parent),Ug(n)&&n.locals&&!oh(n)&&(qe=j(n.locals,a,l))){let nr=!0;if(oa(n)&&ht&&ht!==n.body?(l&qe.flags&788968&&ht.kind!==327&&(nr=qe.flags&262144?ht===n.type||ht.kind===169||ht.kind===348||ht.kind===349||ht.kind===168:!1),l&qe.flags&3&&(MD(qe,n,ht)?nr=!1:qe.flags&1&&(nr=ht.kind===169||ht===n.type&&!!Vn(qe.valueDeclaration,ws)))):n.kind===194&&(nr=ht===n.trueType),nr)break e;qe=void 0}switch(or=or||Ud(n,ht),n.kind){case 312:if(!mp(n))break;Jn=!0;case 267:const nr=((W=Pr(n))==null?void 0:W.exports)||G;if(n.kind===312||dl(n)&&n.flags&33554432&&!eg(n)){if(qe=nr.get("default")){const Ns=v4(qe);if(Ns&&qe.flags&l&&Ns.escapedName===a)break e;qe=void 0}const rr=nr.get(a);if(rr&&rr.flags===2097152&&(Cc(rr,281)||Cc(rr,280)))break}if(a!=="default"&&(qe=j(nr,a,l&2623475)))if(es(n)&&n.commonJsModuleIndicator&&!((re=qe.declarations)!=null&&re.some(Dd)))qe=void 0;else break e;break;case 266:if(qe=j(((be=Pr(n))==null?void 0:be.exports)||G,a,l&8)){_&&Ld(z)&&!(n.flags&33554432)&&qn(n)!==qn(qe.valueDeclaration)&&We(Rn,p.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,Hi(a),$e,`${Hi(Hp(n).escapedName)}.${Hi(a)}`);break e}break;case 172:if(!da(n)){const rr=B0(n.parent);rr&&rr.locals&&j(rr.locals,a,l&111551)&&(w.assertNode(n,Zs),on=n)}break;case 263:case 231:case 264:if(qe=j(Pr(n).members||G,a,l&788968)){if(!M0(qe,n)){qe=void 0;break}if(ht&&da(ht)){_&&We(Rn,p.Static_members_cannot_reference_class_type_parameters);return}break e}if(Su(n)&&l&32){const rr=n.name;if(rr&&a===rr.escapedText){qe=n.symbol;break e}}break;case 233:if(ht===n.expression&&n.parent.token===96){const rr=n.parent.parent;if(fi(rr)&&(qe=j(Pr(rr).members,a,l&788968))){_&&We(Rn,p.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 167:if(ln=n.parent.parent,(fi(ln)||ln.kind===264)&&(qe=j(Pr(ln).members,a,l&788968))){_&&We(Rn,p.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 219:if(go(z)>=2)break;case 174:case 176:case 177:case 178:case 262:if(l&3&&a==="arguments"){qe=zt;break e}break;case 218:if(l&3&&a==="arguments"){qe=zt;break e}if(l&16){const rr=n.name;if(rr&&a===rr.escapedText){qe=n.symbol;break e}}break;case 170:n.parent&&n.parent.kind===169&&(n=n.parent),n.parent&&(vu(n.parent)||n.parent.kind===263)&&(n=n.parent);break;case 353:case 345:case 347:const $n=l4(n);$n&&(n=$n.parent);break;case 169:ht&&(ht===n.initializer||ht===n.name&&ca(ht))&&(un||(un=n));break;case 208:ht&&(ht===n.initializer||ht===n.name&&ca(ht))&&xb(n)&&!un&&(un=n);break;case 195:if(l&262144){const rr=n.typeParameter.name;if(rr&&a===rr.escapedText){qe=n.typeParameter.symbol;break e}}break;case 281:ht&&ht===n.propertyName&&n.parent.parent.moduleSpecifier&&(n=n.parent.parent.parent);break}Q1(n)&&(Pt=n),ht=n,n=Rd(n)?f9(n)||n.parent:(Am(n)||sM(n))&&Zv(n)||n.parent}if(h&&qe&&(!Pt||qe!==Pt.symbol)&&(qe.isReferenced|=l),!qe){if(ht&&(w.assertNode(ht,es),ht.commonJsModuleIndicator&&a==="exports"&&l&ht.symbol.flags))return ht.symbol;k||(qe=j(xe,a,l))}if(!qe&&he&&lr(he)&&he.parent&&Q_(he.parent,!1))return yt;function Bn(){return on&&!ve?(We(Rn,Rn&&on.type&&sA(on.type,Rn.pos)?p.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:p.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,Bo(on.name),fm(m)),!0):!1}if(qe){if(_&&Bn())return}else{_&&r(()=>{if(!Rn||Rn.parent.kind!==331&&!lS(Rn,a,m)&&!Bn()&&!rT(Rn)&&!UC(Rn,a,l)&&!Uy(Rn,a)&&!iT(Rn,a,l)&&!H3(Rn,a,l)&&!Qh(Rn,a,l)){let nr,$n;if(m&&($n=Dmt(m),$n&&We(Rn,_,fm(m),$n)),!$n&&O&&B3{var nr;if(Rn&&(l&2||(l&32||l&384)&&(l&111551)===111551)){const $n=Gp(qe);($n.flags&2||$n.flags&32||$n.flags&384)&&_c($n,Rn)}if(qe&&Jn&&(l&111551)===111551&&!(he.flags&16777216)){const $n=po(qe);Xe($n.declarations)&&Pn($n.declarations,rr=>YN(rr)||es(rr)&&!!rr.symbol.globalExports)&&Ru(!z.allowUmdGlobalAccess,Rn,p._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Hi(a))}if(qe&&un&&!or&&(l&111551)===111551){const $n=po(Ree(qe)),rr=rg(un);$n===Pr(un)?We(Rn,p.Parameter_0_cannot_reference_itself,Bo(un.name)):$n.valueDeclaration&&$n.valueDeclaration.pos>un.pos&&rr.parent.locals&&j(rr.parent.locals,$n.escapedName,l)===$n&&We(Rn,p.Parameter_0_cannot_reference_identifier_1_declared_after_it,Bo(un.name),Bo(Rn))}if(qe&&Rn&&l&111551&&qe.flags&2097152&&!(qe.flags&111551)&&!r2(Rn)){const $n=fd(qe,111551);if($n){const rr=$n.kind===281||$n.kind===278||$n.kind===280?p._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:p._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,Ns=Hi(a);$h(We(Rn,rr,Ns),$n,Ns)}}if(z.isolatedModules&&qe&&Jn&&(l&111551)===111551){const rr=j(xe,a,l)===qe&&es(ht)&&ht.locals&&j(ht.locals,a,-111552);if(rr){const Ns=(nr=rr.declarations)==null?void 0:nr.find(Es=>Es.kind===276||Es.kind===273||Es.kind===274||Es.kind===271);Ns&&!pA(Ns)&&We(Ns,p.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Hi(a))}}}),qe}function $h(n,a,l){return a?Ua(n,Rr(a,a.kind===281||a.kind===278||a.kind===280?p._0_was_exported_here:p._0_was_imported_here,l)):n}function Ud(n,a){return n.kind!==219&&n.kind!==218?qk(n)||(Ko(n)||n.kind===172&&!da(n))&&(!a||a!==n.name):a&&a===n.name?!1:n.asteriskToken||Kr(n,1024)?!0:!sx(n)}function Q1(n){switch(n.kind){case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function fm(n){return Ls(n)?Hi(n):Bo(n)}function M0(n,a){if(n.declarations){for(const l of n.declarations)if(l.kind===168&&(Rd(l.parent)?lx(l.parent):l.parent)===a)return!(Rd(l.parent)&&Cn(l.parent.parent.tags,Dd))}return!1}function lS(n,a,l){if(!Je(n)||n.escapedText!==a||KLe(n)||px(n))return!1;const _=_f(n,!1,!1);let m=_;for(;m;){if(fi(m.parent)){const h=Pr(m.parent);if(!h)break;const k=fr(h);if(Ea(k,a))return We(n,p.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,fm(l),Ti(h)),!0;if(m===_&&!da(m)){const O=fc(h).thisType;if(Ea(O,a))return We(n,p.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,fm(l)),!0}}m=m.parent}return!1}function rT(n){const a=Xh(n);return a&&ic(a,64,!0)?(We(n,p.Cannot_extend_an_interface_0_Did_you_mean_implements,Ol(a)),!0):!1}function Xh(n){switch(n.kind){case 80:case 211:return n.parent?Xh(n.parent):void 0;case 233:if(il(n.expression))return n.expression;default:return}}function UC(n,a,l){const _=1920|(lr(n)?111551:0);if(l===_){const m=al(Lc(n,a,788968&~_,void 0,void 0,!1)),h=n.parent;if(m){if(Z_(h)){w.assert(h.left===n,"Should only be resolving left side of qualified name as a namespace");const k=h.right.escapedText;if(Ea(fc(m),k))return We(h,p.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Hi(a),Hi(k)),!0}return We(n,p._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Hi(a)),!0}}return!1}function Qh(n,a,l){if(l&788584){const _=al(Lc(n,a,111127,void 0,void 0,!1));if(_&&!(_.flags&1920))return We(n,p._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Hi(a)),!0}return!1}function vg(n){return n==="any"||n==="string"||n==="number"||n==="boolean"||n==="never"||n==="unknown"}function Uy(n,a){return vg(a)&&n.parent.kind===281?(We(n,p.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,a),!0):!1}function H3(n,a,l){if(l&111551){if(vg(a)){const h=n.parent.parent;if(h&&h.parent&&Fp(h)){const k=h.token,O=h.parent.kind;O===264&&k===96?We(n,p.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,Hi(a)):O===263&&k===96?We(n,p.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,Hi(a)):O===263&&k===119&&We(n,p.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,Hi(a))}else We(n,p._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Hi(a));return!0}const _=al(Lc(n,a,788544,void 0,void 0,!1)),m=_&&Hu(_);if(_&&m!==void 0&&!(m&111551)){const h=Hi(a);return $3(a)?We(n,p._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,h):G3(n,_)?We(n,p._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,h,h==="K"?"P":"K"):We(n,p._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,h),!0}}return!1}function G3(n,a){const l=Vn(n.parent,_=>co(_)||Gf(_)?!1:Xf(_)||"quit");if(l&&l.members.length===1){const _=fc(a);return!!(_.flags&1048576)&&pz(_,384,!0)}return!1}function $3(n){switch(n){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function iT(n,a,l){if(l&111127){if(al(Lc(n,a,1024,void 0,void 0,!1)))return We(n,p.Cannot_use_namespace_0_as_a_value,Hi(a)),!0}else if(l&788544&&al(Lc(n,a,1536,void 0,void 0,!1)))return We(n,p.Cannot_use_namespace_0_as_a_type,Hi(a)),!0;return!1}function _c(n,a){var l;if(w.assert(!!(n.flags&2||n.flags&32||n.flags&384)),n.flags&67108881&&n.flags&32)return;const _=(l=n.declarations)==null?void 0:l.find(m=>gW(m)||fi(m)||m.kind===266);if(_===void 0)return w.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(_.flags&33554432)&&!L0(_,a)){let m;const h=Bo(Ms(_));n.flags&2?m=We(a,p.Block_scoped_variable_0_used_before_its_declaration,h):n.flags&32?m=We(a,p.Class_0_used_before_its_declaration,h):n.flags&256?m=We(a,p.Enum_0_used_before_its_declaration,h):(w.assert(!!(n.flags&128)),Ld(z)&&(m=We(a,p.Enum_0_used_before_its_declaration,h))),m&&Ua(m,Rr(_,p._0_is_declared_here,h))}}function uS(n,a,l){return!!a&&!!Vn(n,_=>_===a||(_===l||oa(_)&&(!sx(_)||lu(_)&3)?"quit":!1))}function sT(n){switch(n.kind){case 271:return n;case 273:return n.parent;case 274:return n.parent.parent;case 276:return n.parent.parent.parent;default:return}}function pm(n){return n.declarations&&Ro(n.declarations,Y1)}function Y1(n){return n.kind===271||n.kind===270||n.kind===273&&!!n.name||n.kind===274||n.kind===280||n.kind===276||n.kind===281||n.kind===277&&u4(n)||mr(n)&&rl(n)===2&&u4(n)||$o(n)&&mr(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64&&X3(n.parent.right)||n.kind===304||n.kind===303&&X3(n.initializer)||n.kind===260&&yb(n)||n.kind===208&&yb(n.parent.parent)}function X3(n){return rN(n)||Xo(n)&&Dg(n)}function aT(n,a){const l=K1(n);if(l){const m=S4(l.expression).arguments[0];return Je(l.name)?al(Ea(zIe(m),l.name.escapedText)):void 0}if(Ji(n)||n.moduleReference.kind===283){const m=U_(n,FW(n)||DP(n)),h=rp(m);return Ff(n,m,h,!1),h}const _=WC(n.moduleReference,a);return RD(n,_),_}function RD(n,a){if(Ff(n,void 0,a,!1)&&!n.isTypeOnly){const l=fd(Pr(n)),_=l.kind===281||l.kind===278,m=_?p.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:p.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,h=_?p._0_was_exported_here:p._0_was_imported_here,k=l.kind===278?"*":Hi(l.name.escapedText);Ua(We(n.moduleReference,m),Rr(l,h,k))}}function hr(n,a,l,_){const m=n.exports.get("export="),h=m?Ea(fr(m),a,!0):n.exports.get(a),k=al(h,_);return Ff(l,h,k,!1),k}function Cu(n){return Qc(n)&&!n.isExportEquals||Kr(n,2048)||h_(n)||Zg(n)}function is(n){return vo(n)?e.getModeForUsageLocation(qn(n),n):void 0}function qp(n,a){return n===99&&a===1}function Vy(n){return is(n)===99&&Jc(n.text,".json")}function bg(n,a,l,_){const m=n&&is(_);if(n&&m!==void 0&&100<=J&&J<=199){const h=qp(m,n.impliedNodeFormat);if(m===99||h)return h}if(!Q)return!1;if(!n||n.isDeclarationFile){const h=hr(a,"default",void 0,!0);return!(h&&Pe(h.declarations,Cu)||hr(a,Nc("__esModule"),void 0,l))}return L_(n)?typeof n.externalModuleIndicator!="object"&&!hr(a,Nc("__esModule"),void 0,l):Wy(a)}function _r(n,a){const l=U_(n,n.parent.moduleSpecifier);if(l)return oT(l,n,a)}function oT(n,a,l){var _;let m;kP(n)?m=n:m=hr(n,"default",a,l);const h=(_=n.declarations)==null?void 0:_.find(es),k=A2(a);if(!k)return m;const O=Vy(k),j=bg(h,n,l,k);if(!m&&!j&&!O)if(Wy(n)&&!Q){const W=J>=5?"allowSyntheticDefaultImports":"esModuleInterop",be=n.exports.get("export=").valueDeclaration,he=We(a.name,p.Module_0_can_only_be_default_imported_using_the_1_flag,Ti(n),W);be&&Ua(he,Rr(be,p.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,W))}else Yg(a)?mu(n,a):cT(n,n,a,pk(a)&&a.propertyName||a.name);else if(j||O){const W=rp(n,l)||al(n,l);return Ff(a,n,W,!1),W}return Ff(a,m,void 0,!1),m}function A2(n){switch(n.kind){case 273:return n.parent.moduleSpecifier;case 271:return Kg(n.moduleReference)?n.moduleReference.expression:void 0;case 274:return n.parent.parent.moduleSpecifier;case 276:return n.parent.parent.parent.moduleSpecifier;case 281:return n.parent.parent.moduleSpecifier;default:return w.assertNever(n)}}function mu(n,a){var l,_,m;if((l=n.exports)!=null&&l.has(a.symbol.escapedName))We(a.name,p.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Ti(n),Ti(a.symbol));else{const h=We(a.name,p.Module_0_has_no_default_export,Ti(n)),k=(_=n.exports)==null?void 0:_.get("__export");if(k){const O=(m=k.declarations)==null?void 0:m.find(j=>{var W,re;return!!(ml(j)&&j.moduleSpecifier&&((re=(W=U_(j,j.moduleSpecifier))==null?void 0:W.exports)!=null&&re.has("default")))});O&&Ua(h,Rr(O,p.export_Asterisk_does_not_re_export_a_default))}}}function ch(n,a){const l=n.parent.parent.moduleSpecifier,_=U_(n,l),m=Lf(_,l,a,!1);return Ff(n,_,m,!1),m}function dm(n,a){const l=n.parent.moduleSpecifier,_=l&&U_(n,l),m=l&&Lf(_,l,a,!1);return Ff(n,_,m,!1),m}function _S(n,a){if(n===ft&&a===ft)return ft;if(n.flags&790504)return n;const l=ro(n.flags|a.flags,n.escapedName);return w.assert(n.declarations||a.declarations),l.declarations=ks(zn(n.declarations,a.declarations),ly),l.parent=n.parent||a.parent,n.valueDeclaration&&(l.valueDeclaration=n.valueDeclaration),a.members&&(l.members=new Map(a.members)),n.exports&&(l.exports=new Map(n.exports)),l}function fS(n,a,l,_){var m;if(n.flags&1536){const h=ip(n).get(a.escapedText),k=al(h,_),O=(m=Zi(n).typeOnlyExportStarMap)==null?void 0:m.get(a.escapedText);return Ff(l,h,k,!1,O,a.escapedText),k}}function Z1(n,a){if(n.flags&3){const l=n.valueDeclaration.type;if(l)return al(Ea(ki(l),a))}}function R0(n,a,l=!1){var _;const m=FW(n)||n.moduleSpecifier,h=U_(n,m),k=!Jr(a)&&a.propertyName||a.name;if(!Je(k))return;const O=k.escapedText==="default"&&Q,j=Lf(h,m,!1,O);if(j&&k.escapedText){if(kP(h))return h;let W;h&&h.exports&&h.exports.get("export=")?W=Ea(fr(j),k.escapedText,!0):W=Z1(j,k.escapedText),W=al(W,l);let re=fS(j,k,a,l);if(re===void 0&&k.escapedText==="default"){const he=(_=h.declarations)==null?void 0:_.find(es);(Vy(m)||bg(he,h,l,m))&&(re=rp(h,l)||al(h,l))}const be=re&&W&&re!==W?_S(W,re):re||W;return be||cT(h,j,n,k),be}}function cT(n,a,l,_){var m;const h=xp(n,l),k=Bo(_),O=Gte(_,a);if(O!==void 0){const j=Ti(O),W=We(_,p._0_has_no_exported_member_named_1_Did_you_mean_2,h,k,j);O.valueDeclaration&&Ua(W,Rr(O.valueDeclaration,p._0_is_declared_here,j))}else(m=n.exports)!=null&&m.has("default")?We(_,p.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,h,k):mm(l,_,k,n,h)}function mm(n,a,l,_,m){var h,k;const O=(k=(h=si(_.valueDeclaration,Ug))==null?void 0:h.locals)==null?void 0:k.get(a.escapedText),j=_.exports;if(O){const W=j==null?void 0:j.get("export=");if(W)Rm(W,O)?N2(n,a,l,m):We(a,p.Module_0_has_no_exported_member_1,m,l);else{const re=j?Cn(P0e(j),he=>!!Rm(he,O)):void 0,be=re?We(a,p.Module_0_declares_1_locally_but_it_is_exported_as_2,m,l,Ti(re)):We(a,p.Module_0_declares_1_locally_but_it_is_not_exported,m,l);O.declarations&&Ua(be,...Kt(O.declarations,(he,qe)=>Rr(he,qe===0?p._0_is_declared_here:p.and_here,l)))}}else We(a,p.Module_0_has_no_exported_member_1,m,l)}function N2(n,a,l,_){if(J>=5){const m=$g(z)?p._0_can_only_be_imported_by_using_a_default_import:p._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;We(a,m,l)}else if(lr(n)){const m=$g(z)?p._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:p._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;We(a,m,l)}else{const m=$g(z)?p._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:p._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;We(a,m,l,l,_)}}function Yh(n,a){if(Df(n)&&kr(n.propertyName||n.name)==="default"){const k=A2(n),O=k&&U_(n,k);if(O)return oT(O,n,a)}const l=oo(n)?rg(n):n.parent.parent.parent,_=K1(l),m=R0(l,_||n,a),h=n.propertyName||n.name;return _&&m&&Je(h)?al(Ea(fr(m),h.escapedText),a):(Ff(n,void 0,m,!1),m)}function K1(n){if(Ji(n)&&n.initializer&&Jr(n.initializer))return n.initializer}function VC(n,a){if(Km(n.parent)){const l=rp(n.parent.symbol,a);return Ff(n,void 0,l,!1),l}}function I2(n,a,l){if(kr(n.propertyName||n.name)==="default"){const m=A2(n),h=m&&U_(n,m);if(h)return oT(h,n,!!l)}const _=n.parent.parent.moduleSpecifier?R0(n.parent.parent,n,l):ic(n.propertyName||n.name,a,!1,l);return Ff(n,void 0,_,!1),_}function Q3(n,a){const l=Qc(n)?n.expression:n.right,_=pS(l,a);return Ff(n,void 0,_,!1),_}function pS(n,a){if(Su(n))return Sl(n).symbol;if(!Ef(n)&&!il(n))return;const l=ic(n,901119,!0,a);return l||(Sl(n),ei(n).resolvedSymbol)}function lT(n,a){if(mr(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64)return pS(n.parent.right,a)}function Sp(n,a=!1){switch(n.kind){case 271:case 260:return aT(n,a);case 273:return _r(n,a);case 274:return ch(n,a);case 280:return dm(n,a);case 276:case 208:return Yh(n,a);case 281:return I2(n,901119,a);case 277:case 226:return Q3(n,a);case 270:return VC(n,a);case 304:return ic(n.name,901119,!0,a);case 303:return pS(n.initializer,a);case 212:case 211:return lT(n,a);default:return w.fail()}}function uT(n,a=901119){return n?(n.flags&(2097152|a))===2097152||!!(n.flags&2097152&&n.flags&67108864):!1}function al(n,a){return!a&&uT(n)?iu(n):n}function iu(n){w.assert((n.flags&2097152)!==0,"Should only get Alias here.");const a=Zi(n);if(a.aliasTarget)a.aliasTarget===At&&(a.aliasTarget=ft);else{a.aliasTarget=At;const l=pm(n);if(!l)return w.fail();const _=Sp(l);a.aliasTarget===At?a.aliasTarget=_||ft:We(l,p.Circular_definition_of_import_alias_0,Ti(n))}return a.aliasTarget}function _T(n){if(Zi(n).aliasTarget!==At)return iu(n)}function Hu(n,a,l){const _=a&&fd(n),m=_&&ml(_),h=_&&(m?U_(_.moduleSpecifier,_.moduleSpecifier,!0):iu(_.symbol)),k=m&&h?lh(h):void 0;let O=l?0:n.flags,j;for(;n.flags&2097152;){const W=Gp(iu(n));if(!m&&W===h||(k==null?void 0:k.get(W.escapedName))===W)break;if(W===ft)return-1;if(W===n||j!=null&&j.has(W))break;W.flags&2097152&&(j?j.add(W):j=new Set([n,W])),O|=W.flags,n=W}return O}function Ff(n,a,l,_,m,h){if(!n||Jr(n))return!1;const k=Pr(n);if($v(n)){const j=Zi(k);return j.typeOnlyDeclaration=n,!0}if(m){const j=Zi(k);return j.typeOnlyDeclaration=m,k.escapedName!==h&&(j.typeOnlyExportStarName=h),!0}const O=Zi(k);return O2(O,a,_)||O2(O,l,_)}function O2(n,a,l){var _;if(a&&(n.typeOnlyDeclaration===void 0||l&&n.typeOnlyDeclaration===!1)){const m=((_=a.exports)==null?void 0:_.get("export="))??a,h=m.declarations&&Cn(m.declarations,$v);n.typeOnlyDeclaration=h??Zi(m).typeOnlyDeclaration??!1}return!!n.typeOnlyDeclaration}function fd(n,a){if(!(n.flags&2097152))return;const l=Zi(n);if(a===void 0)return l.typeOnlyDeclaration||void 0;if(l.typeOnlyDeclaration){const _=l.typeOnlyDeclaration.kind===278?al(lh(l.typeOnlyDeclaration.symbol.parent).get(l.typeOnlyExportStarName||n.escapedName)):iu(l.typeOnlyDeclaration.symbol);return Hu(_)&a?l.typeOnlyDeclaration:void 0}}function ev(n){if(!kt)return;const a=Pr(n),l=iu(a);l&&(l===ft||Hu(a,!0)&111551&&!cO(l))&&tv(a)}function tv(n){w.assert(kt);const a=Zi(n);if(!a.referenced){a.referenced=!0;const l=pm(n);if(!l)return w.fail();r4(l)&&Hu(al(n))&111551&&Sl(l.moduleReference)}}function Eu(n){const a=Zi(n);a.constEnumReferenced||(a.constEnumReferenced=!0)}function WC(n,a){return n.kind===80&&qP(n)&&(n=n.parent),n.kind===80||n.parent.kind===166?ic(n,1920,!1,a):(w.assert(n.parent.kind===271),ic(n,901119,!1,a))}function xp(n,a){return n.parent?xp(n.parent,a)+"."+Ti(n):Ti(n,a,void 0,36)}function fT(n){for(;Z_(n.parent);)n=n.parent;return n}function pT(n){let a=yp(n),l=Lc(a,a.escapedText,111551,void 0,a,!0);if(l){for(;Z_(a.parent);){const _=fr(l);if(l=Ea(_,a.parent.right.escapedText),!l)return;a=a.parent}return l}}function ic(n,a,l,_,m){if(nl(n))return;const h=1920|(lr(n)?a&111551:0);let k;if(n.kind===80){const O=a===h||lc(n)?p.Cannot_find_namespace_0:FOe(yp(n)),j=lr(n)&&!lc(n)?Y3(n,a):void 0;if(k=po(Lc(m||n,n.escapedText,a,l||j?void 0:O,n,!0,!1)),!k)return po(j)}else if(n.kind===166||n.kind===211){const O=n.kind===166?n.left:n.expression,j=n.kind===166?n.right:n.name;let W=ic(O,h,l,!1,m);if(!W||nl(j))return;if(W===ft)return W;if(W.valueDeclaration&&lr(W.valueDeclaration)&&j_(z)!==100&&Ji(W.valueDeclaration)&&W.valueDeclaration.initializer&&y9e(W.valueDeclaration.initializer)){const re=W.valueDeclaration.initializer.arguments[0],be=U_(re,re);if(be){const he=rp(be);he&&(W=he)}}if(k=po(bf(ip(W),j.escapedText,a)),!k&&W.flags&2097152&&(k=po(bf(ip(iu(W)),j.escapedText,a))),!k){if(!l){const re=xp(W),be=Bo(j),he=Gte(j,W);if(he){We(j,p._0_has_no_exported_member_named_1_Did_you_mean_2,re,be,Ti(he));return}const qe=Z_(n)&&fT(n);if(De&&a&788968&&qe&&!L4(qe.parent)&&pT(qe)){We(qe,p._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Vf(qe));return}if(a&1920&&Z_(n.parent)){const Pt=po(bf(ip(W),j.escapedText,788968));if(Pt){We(n.parent.right,p.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Ti(Pt),Hi(n.parent.right.escapedText));return}}We(j,p.Namespace_0_has_no_exported_member_1,re,be)}return}}else w.assertNever(n,"Unknown entity name kind.");return w.assert((Uc(k)&1)===0,"Should never get an instantiated symbol here."),!lc(n)&&Ef(n)&&(k.flags&2097152||n.parent.kind===277)&&Ff(HW(n),k,void 0,!0),k.flags&a||_?k:iu(k)}function Y3(n,a){if($ee(n.parent)){const l=F2(n.parent);if(l)return Lc(l,n.escapedText,a,void 0,n,!0)}}function F2(n){if(Vn(n,m=>W6(m)||m.flags&16777216?Dd(m):"quit"))return;const l=lx(n);if(l&&xu(l)&&GA(l.expression)){const m=Pr(l.expression.left);if(m)return dS(m)}if(l&&Xo(l)&&GA(l.parent)&&xu(l.parent.parent)){const m=Pr(l.parent.left);if(m)return dS(m)}if(l&&(tm(l)||Ml(l))&&mr(l.parent.parent)&&rl(l.parent.parent)===6){const m=Pr(l.parent.parent.left);if(m)return dS(m)}const _=Kv(n);if(_&&oa(_)){const m=Pr(_);return m&&m.valueDeclaration}}function dS(n){const a=n.parent.valueDeclaration;return a?(AP(a)?vk(a):ex(a)?UA(a):void 0)||a:void 0}function jD(n){const a=n.valueDeclaration;if(!a||!lr(a)||n.flags&524288||Yv(a,!1))return;const l=Ji(a)?UA(a):vk(a);if(l){const _=Hp(l);if(_)return M1e(_,n)}}function U_(n,a,l){const m=j_(z)===1?p.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:p.Cannot_find_module_0_or_its_corresponding_type_declarations;return j0(n,a,l?void 0:m)}function j0(n,a,l,_=!1){return vo(a)?Sg(n,a.text,l,a,_):void 0}function Sg(n,a,l,_,m=!1){var h,k,O,j,W,re,be,he,qe,ht,Pt;if(fs(a,"@types/")){const rr=p.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,Ns=tP(a,"@types/");We(_,rr,Ns,a)}const on=Jee(a,!0);if(on)return on;const un=qn(n),or=vo(n)?n:((h=dl(n)?n:n.parent&&dl(n.parent)&&n.parent.name===n?n.parent:void 0)==null?void 0:h.name)||((k=b1(n)?n:void 0)==null?void 0:k.argument.literal)||(Ji(n)&&n.initializer&&Q_(n.initializer,!0)?n.initializer.arguments[0]:void 0)||((O=Vn(n,gp))==null?void 0:O.arguments[0])||((j=Vn(n,eu))==null?void 0:j.moduleSpecifier)||((W=Vn(n,Qv))==null?void 0:W.moduleReference.expression)||((re=Vn(n,ml))==null?void 0:re.moduleSpecifier),Rn=or&&vo(or)?e.getModeForUsageLocation(un,or):un.impliedNodeFormat,ln=j_(z),Jn=(be=e.getResolvedModule(un,a,Rn))==null?void 0:be.resolvedModule,Bn=Jn&&U$(z,Jn,un),nr=Jn&&(!Bn||Bn===p.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(Jn.resolvedFileName);if(nr){if(Bn&&We(_,Bn,a,Jn.resolvedFileName),Jn.resolvedUsingTsExtension&&Wu(a)){const rr=((he=Vn(n,eu))==null?void 0:he.importClause)||Vn(n,Tm(Tu,ml));(rr&&!rr.isTypeOnly||Vn(n,gp))&&We(_,p.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,$n(w.checkDefined(D9(a))))}else if(Jn.resolvedUsingTsExtension&&!e3(z,un.fileName)){const rr=((qe=Vn(n,eu))==null?void 0:qe.importClause)||Vn(n,Tm(Tu,ml));if(!(rr!=null&&rr.isTypeOnly||Vn(n,zh))){const Ns=w.checkDefined(D9(a));We(_,p.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,Ns)}}if(nr.symbol){if(Jn.isExternalLibraryImport&&!ew(Jn.extension)&&qC(!1,_,un,Rn,Jn,a),ln===3||ln===99){const rr=un.impliedNodeFormat===1&&!Vn(n,gp)||!!Vn(n,Tu),Ns=Vn(n,Es=>zh(Es)||ml(Es)||eu(Es));if(rr&&nr.impliedNodeFormat===99&&!Kae(Ns))if(Vn(n,Tu))We(_,p.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,a);else{let Es;const Ws=b0(un.fileName);if(Ws===".ts"||Ws===".js"||Ws===".tsx"||Ws===".jsx"){const gs=un.packageJsonScope,Ql=Ws===".ts"?".mts":Ws===".js"?".mjs":void 0;gs&&!gs.contents.packageJsonContent.type?Ql?Es=Hs(void 0,p.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,Ql,Zr(gs.packageDirectory,"package.json")):Es=Hs(void 0,p.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,Zr(gs.packageDirectory,"package.json")):Ql?Es=Hs(void 0,p.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,Ql):Es=Hs(void 0,p.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}_o.add(m0(qn(_),_,Hs(Es,p.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead,a)))}}return po(nr.symbol)}l&&We(_,p.File_0_is_not_a_module,nr.fileName);return}if(Bd){const rr=gU(Bd,Ns=>Ns.pattern,a);if(rr){const Ns=z_&&z_.get(a);return po(Ns||rr.symbol)}}if(Jn&&!ew(Jn.extension)&&Bn===void 0||Bn===p.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(m){const rr=p.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;We(_,rr,a,Jn.resolvedFileName)}else qC(fe&&!!l,_,un,Rn,Jn,a);return}if(l){if(Jn){const rr=e.getProjectReferenceRedirect(Jn.resolvedFileName);if(rr){We(_,p.Output_file_0_has_not_been_built_from_source_file_1,rr,Jn.resolvedFileName);return}}if(Bn)We(_,Bn,a,Jn.resolvedFileName);else{const rr=pp(a)&&!lk(a),Ns=ln===3||ln===99;if(!i2(z)&&zc(a,".json")&&ln!==1&&B9(z))We(_,p.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,a);else if(Rn===99&&Ns&&rr){const Es=Ss(a,oi(un.path)),Ws=(ht=W3.find(([gs,Ql])=>e.fileExists(Es+gs)))==null?void 0:ht[1];Ws?We(_,p.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,a+Ws):We(_,p.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else if((Pt=e.getResolvedModule(un,a,Rn))!=null&&Pt.alternateResult){const Es=FF(un,e,a,Rn,a);Ru(!0,_,Hs(Es,l,a))}else We(_,l,a)}}return;function $n(rr){const Ns=SN(a,rr);if(j9(J)||Rn===99){const Es=Wu(a)&&e3(z);return Ns+(rr===".mts"||rr===".d.mts"?Es?".mts":".mjs":rr===".cts"||rr===".d.mts"?Es?".cts":".cjs":Es?".ts":".js")}return Ns}}function qC(n,a,l,_,{packageId:m,resolvedFileName:h},k){let O;!yu(k)&&m&&(O=FF(l,e,k,_,m.name)),Ru(n,a,Hs(O,p.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,k,h))}function rp(n,a){if(n!=null&&n.exports){const l=al(n.exports.get("export="),a),_=HC(po(l),po(n));return po(_)||n}}function HC(n,a){if(!n||n===ft||n===a||a.exports.size===1||n.flags&2097152)return n;const l=Zi(n);if(l.cjsExportMerged)return l.cjsExportMerged;const _=n.flags&33554432?n:nT(n);return _.flags=_.flags|512,_.exports===void 0&&(_.exports=ha()),a.exports.forEach((m,h)=>{h!=="export="&&_.exports.set(h,_.exports.has(h)?Jd(_.exports.get(h),m):m)}),_===n&&(Zi(_).resolvedExports=void 0,Zi(_).resolvedMembers=void 0),Zi(_).cjsExportMerged=_,l.cjsExportMerged=_}function Lf(n,a,l,_){var m;const h=rp(n,l);if(!l&&h){if(!_&&!(h.flags&1539)&&!Cc(h,312)){const O=J>=5?"allowSyntheticDefaultImports":"esModuleInterop";return We(a,p.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,O),h}const k=a.parent;if(eu(k)&&o4(k)||gp(k)){const O=gp(k)?k.arguments[0]:k.moduleSpecifier,j=fr(h),W=g9e(j,h,n,O);if(W)return GC(h,W,k);const re=(m=n==null?void 0:n.declarations)==null?void 0:m.find(es),be=re&&qp(is(O),re.impliedNodeFormat);if($g(z)||be){let he=hJ(j,0);if((!he||!he.length)&&(he=hJ(j,1)),he&&he.length||Ea(j,"default",!0)||be){const qe=j.flags&3670016?h9e(j,h,n,O):R1e(h,h.parent);return GC(h,qe,k)}}}}return h}function GC(n,a,l){const _=ro(n.flags,n.escapedName);_.declarations=n.declarations?n.declarations.slice():[],_.parent=n.parent,_.links.target=n,_.links.originatingImport=l,n.valueDeclaration&&(_.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(_.constEnumOnlyModule=!0),n.members&&(_.members=new Map(n.members)),n.exports&&(_.exports=new Map(n.exports));const m=Um(a);return _.links.type=qo(_,m.members,Ke,Ke,m.indexInfos),_}function Wy(n){return n.exports.get("export=")!==void 0}function dT(n){return P0e(lh(n))}function Z3(n){const a=dT(n),l=rp(n);if(l!==n){const _=fr(l);nv(_)&&Mr(a,Po(_))}return a}function K3(n,a){lh(n).forEach((m,h)=>{hS(h)||a(m,h)});const _=rp(n);if(_!==n){const m=fr(_);nv(m)&&Zlt(m,(h,k)=>{a(h,k)})}}function mT(n,a){const l=lh(a);if(l)return l.get(n)}function eE(n,a){const l=mT(n,a);if(l)return l;const _=rp(a);if(_===a)return;const m=fr(_);return nv(m)?Ea(m,n):void 0}function nv(n){return!(n.flags&402784252||Br(n)&1||bd(n)||Ga(n))}function ip(n){return n.flags&6256?_0e(n,"resolvedExports"):n.flags&1536?lh(n):n.exports||G}function lh(n){const a=Zi(n);if(!a.resolvedExports){const{exports:l,typeOnlyExportStarMap:_}=gT(n);a.resolvedExports=l,a.typeOnlyExportStarMap=_}return a.resolvedExports}function tE(n,a,l,_){a&&a.forEach((m,h)=>{if(h==="default")return;const k=n.get(h);if(!k)n.set(h,m),l&&_&&l.set(h,{specifierText:Ol(_.moduleSpecifier)});else if(l&&_&&k&&al(k)!==al(m)){const O=l.get(h);O.exportsWithDuplicate?O.exportsWithDuplicate.push(_):O.exportsWithDuplicate=[_]}})}function gT(n){const a=[];let l;const _=new Set;n=rp(n);const m=h(n)||G;return l&&_.forEach(k=>l.delete(k)),{exports:m,typeOnlyExportStarMap:l};function h(k,O,j){if(!j&&(k!=null&&k.exports)&&k.exports.forEach((be,he)=>_.add(he)),!(k&&k.exports&&Jf(a,k)))return;const W=new Map(k.exports),re=k.exports.get("__export");if(re){const be=ha(),he=new Map;if(re.declarations)for(const qe of re.declarations){const ht=U_(qe,qe.moduleSpecifier),Pt=h(ht,qe,j||qe.isTypeOnly);tE(be,Pt,he,qe)}he.forEach(({exportsWithDuplicate:qe},ht)=>{if(!(ht==="export="||!(qe&&qe.length)||W.has(ht)))for(const Pt of qe)_o.add(Rr(Pt,p.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,he.get(ht).specifierText,Hi(ht)))}),tE(W,be)}return O!=null&&O.isTypeOnly&&(l??(l=new Map),W.forEach((be,he)=>l.set(he,O))),W}}function po(n){let a;return n&&n.mergeId&&(a=z3[n.mergeId])?a:n}function Pr(n){return po(n.symbol&&Ree(n.symbol))}function Hp(n){return Km(n)?Pr(n):void 0}function rf(n){return po(n.parent&&Ree(n.parent))}function mS(n){var a,l;return(((a=n.valueDeclaration)==null?void 0:a.kind)===219||((l=n.valueDeclaration)==null?void 0:l.kind)===218)&&Hp(n.valueDeclaration.parent)||n}function nE(n,a){const l=qn(a),_=ho(l),m=Zi(n);let h;if(m.extendedContainersByFile&&(h=m.extendedContainersByFile.get(_)))return h;if(l&&l.imports){for(const O of l.imports){if(lc(O))continue;const j=U_(a,O,!0);!j||!Zh(j,n)||(h=gn(h,j))}if(Xe(h))return(m.extendedContainersByFile||(m.extendedContainersByFile=new Map)).set(_,h),h}if(m.extendedContainers)return m.extendedContainers;const k=e.getSourceFiles();for(const O of k){if(!Cl(O))continue;const j=Pr(O);Zh(j,n)&&(h=gn(h,j))}return m.extendedContainers=h||Ke}function L2(n,a,l){const _=rf(n);if(_&&!(n.flags&262144))return j(_);const m=Oi(n.declarations,re=>{if(!n_(re)&&re.parent){if(T_(re.parent))return Pr(re.parent);if(lg(re.parent)&&re.parent.parent&&rp(Pr(re.parent.parent))===n)return Pr(re.parent.parent)}if(Su(re)&&mr(re.parent)&&re.parent.operatorToken.kind===64&&$o(re.parent.left)&&il(re.parent.left.expression))return Fh(re.parent.left)||ax(re.parent.left.expression)?Pr(qn(re)):(Sl(re.parent.left.expression),ei(re.parent.left.expression).resolvedSymbol)});if(!Xe(m))return;const h=Oi(m,re=>Zh(re,n)?re:void 0);let k=[],O=[];for(const re of h){const[be,...he]=j(re);k=gn(k,be),O=Mr(O,he)}return zn(k,O);function j(re){const be=Oi(re.declarations,W),he=a&&nE(n,a),qe=gS(re,l);if(a&&re.flags&J0(l)&&rv(re,a,1920,!1))return gn(zn(zn([re],be),he),qe);const ht=!(re.flags&J0(l))&&re.flags&788968&&fc(re).flags&524288&&l===111551?vS(a,on=>cu(on,un=>{if(un.flags&J0(l)&&fr(un)===fc(re))return un})):void 0;let Pt=ht?[ht,...be,re]:[...be,re];return Pt=gn(Pt,qe),Pt=Mr(Pt,he),Pt}function W(re){return _&&hT(re,_)}}function gS(n,a){const l=!!Xe(n.declarations)&&Ka(n.declarations);if(a&111551&&l&&l.parent&&Ji(l.parent)&&(Va(l)&&l===l.parent.initializer||Xf(l)&&l===l.parent.type))return Pr(l.parent)}function hT(n,a){const l=ss(n),_=l&&l.exports&&l.exports.get("export=");return _&&Rm(_,a)?l:void 0}function Zh(n,a){if(n===rf(a))return a;const l=n.exports&&n.exports.get("export=");if(l&&Rm(l,a))return n;const _=ip(n),m=_.get(a.escapedName);return m&&Rm(m,a)?m:cu(_,h=>{if(Rm(h,a))return h})}function Rm(n,a){if(po(al(po(n)))===po(al(po(a))))return n}function Gp(n){return po(n&&(n.flags&1048576)!==0&&n.exportSymbol||n)}function gm(n,a){return!!(n.flags&111551||n.flags&2097152&&Hu(n,!a)&111551)}function B0(n){const a=n.members;for(const l of a)if(l.kind===176&&Ed(l.body))return l}function Kh(n){var a;const l=new f(Zt,n);return d++,l.id=d,(a=cr)==null||a.recordType(l),l}function e0(n,a){const l=Kh(n);return l.symbol=a,l}function $C(n){return new f(Zt,n)}function Pl(n,a,l=0,_){rE(a,_);const m=Kh(n);return m.intrinsicName=a,m.debugIntrinsicName=_,m.objectFlags=l|524288|2097152|33554432|16777216,m}function rE(n,a){const l=`${n},${a??""}`;_t.has(l)&&w.fail(`Duplicate intrinsic type name ${n}${a?` (${a})`:""}; you may need to pass a name to createIntrinsicType.`),_t.add(l)}function pd(n,a){const l=e0(524288,a);return l.objectFlags=n,l.members=void 0,l.properties=void 0,l.callSignatures=void 0,l.constructSignatures=void 0,l.indexInfos=void 0,l}function uh(){return ti(Vs(qG.keys(),xf))}function $p(n){return e0(262144,n)}function hS(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)!==95&&n.charCodeAt(2)!==64&&n.charCodeAt(2)!==35}function M2(n){let a;return n.forEach((l,_)=>{XC(l,_)&&(a||(a=[])).push(l)}),a||Ke}function XC(n,a){return!hS(a)&&gm(n)}function yT(n){const a=M2(n),l=Vee(n);return l?zn(a,[l]):a}function Xp(n,a,l,_,m){const h=n;return h.members=a,h.properties=Ke,h.callSignatures=l,h.constructSignatures=_,h.indexInfos=m,a!==G&&(h.properties=M2(a)),h}function qo(n,a,l,_,m){return Xp(pd(16,n),a,l,_,m)}function yS(n){if(n.constructSignatures.length===0)return n;if(n.objectTypeWithoutAbstractConstructSignatures)return n.objectTypeWithoutAbstractConstructSignatures;const a=vr(n.constructSignatures,_=>!(_.flags&4));if(n.constructSignatures===a)return n;const l=qo(n.symbol,n.members,n.callSignatures,Pe(a)?a:Ke,n.indexInfos);return n.objectTypeWithoutAbstractConstructSignatures=l,l.objectTypeWithoutAbstractConstructSignatures=l,l}function vS(n,a){let l;for(let _=n;_;_=_.parent){if(Ug(_)&&_.locals&&!oh(_)&&(l=a(_.locals,void 0,!0,_)))return l;switch(_.kind){case 312:if(!mp(_))break;case 267:const m=Pr(_);if(l=a((m==null?void 0:m.exports)||G,void 0,!0,_))return l;break;case 263:case 231:case 264:let h;if((Pr(_).members||G).forEach((k,O)=>{k.flags&788968&&(h||(h=ha())).set(O,k)}),h&&(l=a(h,void 0,!1,_)))return l;break}}return a(xe,void 0,!0)}function J0(n){return n===111551?111551:1920}function rv(n,a,l,_,m=new Map){if(!(n&&!P(n)))return;const h=Zi(n),k=h.accessibleChainCache||(h.accessibleChainCache=new Map),O=vS(a,(un,or,Rn,ln)=>ln),j=`${_?0:1}|${O&&ho(O)}|${l}`;if(k.has(j))return k.get(j);const W=Ia(n);let re=m.get(W);re||m.set(W,re=[]);const be=vS(a,he);return k.set(j,be),be;function he(un,or,Rn){if(!Jf(re,un))return;const ln=Pt(un,or,Rn);return re.pop(),ln}function qe(un,or){return!R2(un,a,or)||!!rv(un.parent,a,J0(or),_,m)}function ht(un,or,Rn){return(n===(or||un)||po(n)===po(or||un))&&!Pe(un.declarations,T_)&&(Rn||qe(po(un),l))}function Pt(un,or,Rn){return ht(un.get(n.escapedName),void 0,or)?[n]:cu(un,Jn=>{if(Jn.flags&2097152&&Jn.escapedName!=="export="&&Jn.escapedName!=="default"&&!(F9(Jn)&&a&&Cl(qn(a)))&&(!_||Pe(Jn.declarations,Qv))&&(!Rn||!Pe(Jn.declarations,Ase))&&(or||!Cc(Jn,281))){const Bn=iu(Jn),nr=on(Jn,Bn,or);if(nr)return nr}if(Jn.escapedName===n.escapedName&&Jn.exportSymbol&&ht(po(Jn.exportSymbol),void 0,or))return[n]})||(un===xe?on(st,st,or):void 0)}function on(un,or,Rn){if(ht(un,or,Rn))return[un];const ln=ip(or),Jn=ln&&he(ln,!0);if(Jn&&qe(un,J0(l)))return[un].concat(Jn)}}function R2(n,a,l){let _=!1;return vS(a,m=>{let h=po(m.get(n.escapedName));if(!h)return!1;if(h===n)return!0;const k=h.flags&2097152&&!Cc(h,281);return h=k?iu(h):h,(k?Hu(h):h.flags)&l?(_=!0,!0):!1}),_}function P(n){if(n.declarations&&n.declarations.length){for(const a of n.declarations)switch(a.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}function oe(n,a){return bi(n,a,788968,!1,!0).accessibility===0}function gt(n,a){return bi(n,a,111551,!1,!0).accessibility===0}function an(n,a,l){return bi(n,a,l,!1,!1).accessibility===0}function jr(n,a,l,_,m,h){if(!Xe(n))return;let k,O=!1;for(const j of n){const W=rv(j,a,_,!1);if(W){k=j;const he=sf(W[0],m);if(he)return he}if(h&&Pe(j.declarations,T_)){if(m){O=!0;continue}return{accessibility:0}}const re=L2(j,a,_),be=jr(re,a,l,l===j?J0(_):_,m,h);if(be)return be}if(O)return{accessibility:0};if(k)return{accessibility:1,errorSymbolName:Ti(l,a,_),errorModuleName:k!==l?Ti(k,a,1920):void 0}}function Bi(n,a,l,_){return bi(n,a,l,_,!0)}function bi(n,a,l,_,m){if(n&&a){const h=jr([n],a,n,l,_,m);if(h)return h;const k=dt(n.declarations,ss);if(k){const O=ss(a);if(k!==O)return{accessibility:2,errorSymbolName:Ti(n,a,l),errorModuleName:Ti(k),errorNode:lr(a)?a:void 0}}return{accessibility:1,errorSymbolName:Ti(n,a,l)}}return{accessibility:0}}function ss(n){const a=Vn(n,Ca);return a&&Pr(a)}function Ca(n){return n_(n)||n.kind===312&&mp(n)}function T_(n){return JF(n)||n.kind===312&&mp(n)}function sf(n,a){let l;if(!Pn(vr(n.declarations,h=>h.kind!==80),_))return;return{accessibility:0,aliasesToMakeVisible:l};function _(h){var k,O;if(!jm(h)){const j=sT(h);if(j&&!Kr(j,32)&&jm(j.parent))return m(h,j);if(Ji(h)&&Xc(h.parent.parent)&&!Kr(h.parent.parent,32)&&jm(h.parent.parent.parent))return m(h,h.parent.parent);if(zF(h)&&!Kr(h,32)&&jm(h.parent))return m(h,h);if(oo(h)){if(n.flags&2097152&&lr(h)&&((k=h.parent)!=null&&k.parent)&&Ji(h.parent.parent)&&((O=h.parent.parent.parent)!=null&&O.parent)&&Xc(h.parent.parent.parent.parent)&&!Kr(h.parent.parent.parent.parent,32)&&h.parent.parent.parent.parent.parent&&jm(h.parent.parent.parent.parent.parent))return m(h,h.parent.parent.parent.parent);if(n.flags&2){const W=Vn(h,Xc);return Kr(W,32)?!0:jm(W.parent)?m(h,W):!1}}return!1}return!0}function m(h,k){return a&&(ei(h).isVisible=!0,l=w_(l,k)),!0}}function dd(n){let a;return n.parent.kind===186||n.parent.kind===233&&!Ih(n.parent)||n.parent.kind===167?a=1160127:n.kind===166||n.kind===211||n.parent.kind===271||n.parent.kind===166&&n.parent.left===n||n.parent.kind===211&&n.parent.expression===n||n.parent.kind===212&&n.parent.expression===n?a=1920:a=788968,a}function iv(n,a){const l=dd(n),_=yp(n),m=Lc(a,_.escapedText,l,void 0,void 0,!1);return m&&m.flags&262144&&l&788968?{accessibility:0}:!m&&Cb(_)&&Bi(Pr(_f(_,!1,!1)),_,l,!1).accessibility===0?{accessibility:0}:m&&sf(m,!0)||{accessibility:1,errorSymbolName:Ol(_),errorNode:_}}function Ti(n,a,l,_=4,m){let h=70221824;_&2&&(h|=128),_&1&&(h|=512),_&8&&(h|=16384),_&32&&(h|=134217728),_&16&&(h|=1073741824);const k=_&4?Tt.symbolToNode:Tt.symbolToEntityName;return m?O(m).getText():xP(O);function O(j){const W=k(n,l,a,h),re=(a==null?void 0:a.kind)===312?b$():$b(),be=a&&qn(a);return re.writeNode(4,W,be,j),j}}function _h(n,a,l=0,_,m){return m?h(m).getText():xP(h);function h(k){let O;l&262144?O=_===1?185:184:O=_===1?180:179;const j=Tt.signatureToSignatureDeclaration(n,O,a,vT(l)|70221824|512),W=j7(),re=a&&qn(a);return W.writeNode(4,j,re,aq(k)),k}}function Hn(n,a,l=1064960,_=uN("")){const m=z.noErrorTruncation||l&1,h=Tt.typeToTypeNode(n,a,vT(l)|70221824|(m?1:0));if(h===void 0)return w.fail("should always get typenode");const k=n!==Ut?$b():v$(),O=a&&qn(a);k.writeNode(4,h,O,_);const j=_.getText(),W=m?aL*2:PN*2;return W&&j&&j.length>=W?j.substr(0,W-3)+"...":j}function QC(n,a){let l=av(n.symbol)?Hn(n,n.symbol.valueDeclaration):Hn(n),_=av(a.symbol)?Hn(a,a.symbol.valueDeclaration):Hn(a);return l===_&&(l=sv(n),_=sv(a)),[l,_]}function sv(n){return Hn(n,void 0,64)}function av(n){return n&&!!n.valueDeclaration&&vt(n.valueDeclaration)&&!yd(n.valueDeclaration)}function vT(n=0){return n&848330095}function bS(n){return!!n.symbol&&!!(n.symbol.flags&32)&&(n===gd(n.symbol)||!!(n.flags&524288)&&!!(Br(n)&16777216))}function xg(){return{typeToTypeNode:(lt,ke,Fn,Or)=>a(ke,Fn,Or,pi=>_(lt,pi)),indexInfoToIndexSignatureDeclaration:(lt,ke,Fn,Or)=>a(ke,Fn,Or,pi=>re(lt,pi,void 0)),signatureToSignatureDeclaration:(lt,ke,Fn,Or,pi)=>a(Fn,Or,pi,Ci=>be(lt,ke,Ci)),symbolToEntityName:(lt,ke,Fn,Or,pi)=>a(Fn,Or,pi,Ci=>gs(lt,Ci,ke,!1)),symbolToExpression:(lt,ke,Fn,Or,pi)=>a(Fn,Or,pi,Ci=>Ql(lt,Ci,ke)),symbolToTypeParameterDeclarations:(lt,ke,Fn,Or)=>a(ke,Fn,Or,pi=>Jn(lt,pi)),symbolToParameterDeclaration:(lt,ke,Fn,Or)=>a(ke,Fn,Or,pi=>on(lt,pi)),typeParameterToDeclaration:(lt,ke,Fn,Or)=>a(ke,Fn,Or,pi=>ht(lt,pi)),symbolTableToDeclarationStatements:(lt,ke,Fn,Or,pi)=>a(ke,Fn,Or,Ci=>Mc(lt,Ci,pi)),symbolToNode:(lt,ke,Fn,Or,pi)=>a(Fn,Or,pi,Ci=>n(lt,Ci,ke))};function n(lt,ke,Fn){if(ke.flags&1073741824){if(lt.valueDeclaration){const pi=Ms(lt.valueDeclaration);if(pi&&co(pi))return pi}const Or=Zi(lt).nameType;if(Or&&Or.flags&9216)return ke.enclosingDeclaration=Or.symbol.valueDeclaration,L.createComputedPropertyName(Ql(Or.symbol,ke,Fn))}return Ql(lt,ke,Fn)}function a(lt,ke,Fn,Or){w.assert(lt===void 0||(lt.flags&16)===0);const pi=Fn!=null&&Fn.trackSymbol?Fn.moduleResolverHost:ke&134217728?IWe(e):void 0,Ci={enclosingDeclaration:lt,flags:ke||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0};Ci.tracker=new HG(Ci,Fn,pi);const Ei=Or(Ci);return Ci.truncating&&Ci.flags&1&&Ci.tracker.reportTruncationError(),Ci.encounteredError?void 0:Ei}function l(lt){return lt.truncating?lt.truncating:lt.truncating=lt.approximateLength>(lt.flags&1?aL:PN)}function _(lt,ke){const Fn=ke.flags,Or=m(lt,ke);return ke.flags=Fn,Or}function m(lt,ke){var Fn,Or;i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();const pi=ke.flags&8388608;if(ke.flags&=-8388609,!lt){if(!(ke.flags&262144)){ke.encounteredError=!0;return}return ke.approximateLength+=3,L.createKeywordTypeNode(133)}if(ke.flags&536870912||(lt=Vm(lt)),lt.flags&1)return lt.aliasSymbol?L.createTypeReferenceNode(rr(lt.aliasSymbol),j(lt.aliasTypeArguments,ke)):lt===Ut?gw(L.createKeywordTypeNode(133),3,"unresolved"):(ke.approximateLength+=3,L.createKeywordTypeNode(lt===pn?141:133));if(lt.flags&2)return L.createKeywordTypeNode(159);if(lt.flags&4)return ke.approximateLength+=6,L.createKeywordTypeNode(154);if(lt.flags&8)return ke.approximateLength+=6,L.createKeywordTypeNode(150);if(lt.flags&64)return ke.approximateLength+=6,L.createKeywordTypeNode(163);if(lt.flags&16&&!lt.aliasSymbol)return ke.approximateLength+=7,L.createKeywordTypeNode(136);if(lt.flags&1056){if(lt.symbol.flags&8){const An=rf(lt.symbol),ni=Ns(An,ke,788968);if(fc(An)===lt)return ni;const ns=Rc(lt.symbol);return Np(ns,0)?ji(ni,L.createTypeReferenceNode(ns,void 0)):zh(ni)?(ni.isTypeOf=!0,L.createIndexedAccessTypeNode(ni,L.createLiteralTypeNode(L.createStringLiteral(ns)))):id(ni)?L.createIndexedAccessTypeNode(L.createTypeQueryNode(ni.typeName),L.createLiteralTypeNode(L.createStringLiteral(ns))):w.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return Ns(lt.symbol,ke,788968)}if(lt.flags&128)return ke.approximateLength+=lt.value.length+2,L.createLiteralTypeNode(pr(L.createStringLiteral(lt.value,!!(ke.flags&268435456)),16777216));if(lt.flags&256){const An=lt.value;return ke.approximateLength+=(""+An).length,L.createLiteralTypeNode(An<0?L.createPrefixUnaryExpression(41,L.createNumericLiteral(-An)):L.createNumericLiteral(An))}if(lt.flags&2048)return ke.approximateLength+=wb(lt.value).length+1,L.createLiteralTypeNode(L.createBigIntLiteral(lt.value));if(lt.flags&512)return ke.approximateLength+=lt.intrinsicName.length,L.createLiteralTypeNode(lt.intrinsicName==="true"?L.createTrue():L.createFalse());if(lt.flags&8192){if(!(ke.flags&1048576)){if(gt(lt.symbol,ke.enclosingDeclaration))return ke.approximateLength+=6,Ns(lt.symbol,ke,111551);ke.tracker.reportInaccessibleUniqueSymbolError&&ke.tracker.reportInaccessibleUniqueSymbolError()}return ke.approximateLength+=13,L.createTypeOperatorNode(158,L.createKeywordTypeNode(155))}if(lt.flags&16384)return ke.approximateLength+=4,L.createKeywordTypeNode(116);if(lt.flags&32768)return ke.approximateLength+=9,L.createKeywordTypeNode(157);if(lt.flags&65536)return ke.approximateLength+=4,L.createLiteralTypeNode(L.createNull());if(lt.flags&131072)return ke.approximateLength+=5,L.createKeywordTypeNode(146);if(lt.flags&4096)return ke.approximateLength+=6,L.createKeywordTypeNode(155);if(lt.flags&67108864)return ke.approximateLength+=6,L.createKeywordTypeNode(151);if(cw(lt))return ke.flags&4194304&&(!ke.encounteredError&&!(ke.flags&32768)&&(ke.encounteredError=!0),(Or=(Fn=ke.tracker).reportInaccessibleThisError)==null||Or.call(Fn)),ke.approximateLength+=4,L.createThisTypeNode();if(!pi&<.aliasSymbol&&(ke.flags&16384||oe(lt.aliasSymbol,ke.enclosingDeclaration))){const An=j(lt.aliasTypeArguments,ke);return hS(lt.aliasSymbol.escapedName)&&!(lt.aliasSymbol.flags&32)?L.createTypeReferenceNode(L.createIdentifier(""),An):Xe(An)===1&<.aliasSymbol===sa.symbol?L.createArrayTypeNode(An[0]):Ns(lt.aliasSymbol,ke,788968,An)}const Ci=Br(lt);if(Ci&4)return w.assert(!!(lt.flags&524288)),lt.node?qt(lt,jn):jn(lt);if(lt.flags&262144||Ci&3){if(lt.flags&262144&&Ai(ke.inferTypeParameters,lt)){ke.approximateLength+=Rc(lt.symbol).length+6;let ni;const ns=af(lt);if(ns){const ds=qIe(lt,!0);ds&&X0(ns,ds)||(ke.approximateLength+=9,ni=ns&&_(ns,ke))}return L.createInferTypeNode(qe(lt,ke,ni))}if(ke.flags&4&<.flags&262144){const ni=Ws(lt,ke);return ke.approximateLength+=kr(ni).length,L.createTypeReferenceNode(L.createIdentifier(kr(ni)),void 0)}if(lt.symbol)return Ns(lt.symbol,ke,788968);const An=(lt===_e||lt===ee)&&M&&M.symbol?(lt===ee?"sub-":"super-")+Rc(M.symbol):"?";return L.createTypeReferenceNode(L.createIdentifier(An),void 0)}if(lt.flags&1048576&<.origin&&(lt=lt.origin),lt.flags&3145728){const An=lt.flags&1048576?iE(lt.types):lt.types;if(Xe(An)===1)return _(An[0],ke);const ni=j(An,ke,!0);if(ni&&ni.length>0)return lt.flags&1048576?L.createUnionTypeNode(ni):L.createIntersectionTypeNode(ni);!ke.encounteredError&&!(ke.flags&262144)&&(ke.encounteredError=!0);return}if(Ci&48)return w.assert(!!(lt.flags&524288)),fn(lt);if(lt.flags&4194304){const An=lt.type;ke.approximateLength+=6;const ni=_(An,ke);return L.createTypeOperatorNode(143,ni)}if(lt.flags&134217728){const An=lt.texts,ni=lt.types,ns=L.createTemplateHead(An[0]),ds=L.createNodeArray(Kt(ni,(Da,zl)=>L.createTemplateLiteralTypeSpan(_(Da,ke),(zlEi(An));if(lt.flags&33554432){const An=_(lt.baseType,ke),ni=$D(lt)&&J0e("NoInfer",!1);return ni?Ns(ni,ke,788968,[An]):An}return w.fail("Should be unreachable.");function Ei(An){const ni=_(An.checkType,ke);if(ke.approximateLength+=15,ke.flags&4&&An.root.isDistributive&&!(An.checkType.flags&262144)){const Ho=$p(ro(262144,"T")),zo=Ws(Ho,ke),Qu=L.createTypeReferenceNode(zo);ke.approximateLength+=37;const oc=IT(An.root.checkType,Ho,An.mapper),$m=ke.inferTypeParameters;ke.inferTypeParameters=An.root.inferTypeParameters;const nt=_(_s(An.root.extendsType,oc),ke);ke.inferTypeParameters=$m;const St=Hr(_s(ki(An.root.node.trueType),oc)),en=Hr(_s(ki(An.root.node.falseType),oc));return L.createConditionalTypeNode(ni,L.createInferTypeNode(L.createTypeParameterDeclaration(void 0,L.cloneNode(Qu.typeName))),L.createConditionalTypeNode(L.createTypeReferenceNode(L.cloneNode(zo)),_(An.checkType,ke),L.createConditionalTypeNode(Qu,nt,St,en),L.createKeywordTypeNode(146)),L.createKeywordTypeNode(146))}const ns=ke.inferTypeParameters;ke.inferTypeParameters=An.root.inferTypeParameters;const ds=_(An.extendsType,ke);ke.inferTypeParameters=ns;const Da=Hr(G2(An)),zl=Hr($2(An));return L.createConditionalTypeNode(ni,ds,Da,zl)}function Hr(An){var ni,ns,ds;return An.flags&1048576?(ni=ke.visitedTypes)!=null&&ni.has(W_(An))?(ke.flags&131072||(ke.encounteredError=!0,(ds=(ns=ke.tracker)==null?void 0:ns.reportCyclicStructureError)==null||ds.call(ns)),h(ke)):qt(An,Da=>_(Da,ke)):_(An,ke)}function wr(An){return!!L5(An)}function ot(An){return!!An.target&&wr(An.target)&&!wr(An)}function Mt(An){var ni;w.assert(!!(An.flags&524288));const ns=An.declaration.readonlyToken?L.createToken(An.declaration.readonlyToken.kind):void 0,ds=An.declaration.questionToken?L.createToken(An.declaration.questionToken.kind):void 0;let Da,zl;const Ho=!_E(An)&&!(TT(An).flags&2)&&ke.flags&4&&!(Qp(An).flags&262144&&((ni=af(Qp(An)))==null?void 0:ni.flags)&4194304);if(_E(An)){if(ot(An)&&ke.flags&4){const St=$p(ro(262144,"T")),en=Ws(St,ke);zl=L.createTypeReferenceNode(en)}Da=L.createTypeOperatorNode(143,zl||_(TT(An),ke))}else if(Ho){const St=$p(ro(262144,"T")),en=Ws(St,ke);zl=L.createTypeReferenceNode(en),Da=zl}else Da=_(Qp(An),ke);const zo=qe(zm(An),ke,Da),Qu=An.declaration.nameType?_(Hy(An),ke):void 0,oc=_(Cv(q0(An),!!(mh(An)&4)),ke),$m=L.createMappedTypeNode(ns,zo,Qu,ds,oc,void 0);ke.approximateLength+=10;const nt=pr($m,1);if(ot(An)&&ke.flags&4){const St=_s(af(ki(An.declaration.typeParameter.constraint.type))||mn,An.mapper);return L.createConditionalTypeNode(_(TT(An),ke),L.createInferTypeNode(L.createTypeParameterDeclaration(void 0,L.cloneNode(zl.typeName),St.flags&2?void 0:_(St,ke))),nt,L.createKeywordTypeNode(146))}else if(Ho)return L.createConditionalTypeNode(_(Qp(An),ke),L.createInferTypeNode(L.createTypeParameterDeclaration(void 0,L.cloneNode(zl.typeName),L.createTypeOperatorNode(143,_(TT(An),ke)))),nt,L.createKeywordTypeNode(146));return nt}function fn(An){var ni,ns;const ds=An.id,Da=An.symbol;if(Da){if(!!(Br(An)&8388608)){const oc=An.node;if(qk(oc)&&ki(oc)===An){const $m=Kc(ke,oc);if($m)return $m}return(ni=ke.visitedTypes)!=null&&ni.has(ds)?h(ke):qt(An,dn)}const zo=bS(An)?788968:111551;if(Dg(Da.valueDeclaration))return Ns(Da,ke,zo);if(Da.flags&32&&!Iee(Da)&&!(Da.valueDeclaration&&fi(Da.valueDeclaration)&&ke.flags&2048&&(!ql(Da.valueDeclaration)||Bi(Da,ke.enclosingDeclaration,zo,!1).accessibility!==0))||Da.flags&896||zl())return Ns(Da,ke,zo);if((ns=ke.visitedTypes)!=null&&ns.has(ds)){const Qu=sJ(An);return Qu?Ns(Qu,ke,788968):h(ke)}else return qt(An,dn)}else return dn(An);function zl(){var Ho;const zo=!!(Da.flags&8192)&&Pe(Da.declarations,oc=>da(oc)),Qu=!!(Da.flags&16)&&(Da.parent||dt(Da.declarations,oc=>oc.parent.kind===312||oc.parent.kind===268));if(zo||Qu)return(!!(ke.flags&4096)||((Ho=ke.visitedTypes)==null?void 0:Ho.has(ds)))&&(!(ke.flags&8)||gt(Da,ke.enclosingDeclaration))}}function qt(An,ni){var ns,ds,Da;const zl=An.id,Ho=Br(An)&16&&An.symbol&&An.symbol.flags&32,zo=Br(An)&4&&An.node?"N"+ho(An.node):An.flags&16777216?"N"+ho(An.root.node):An.symbol?(Ho?"+":"")+Ia(An.symbol):void 0;ke.visitedTypes||(ke.visitedTypes=new Set),zo&&!ke.symbolDepth&&(ke.symbolDepth=new Map);const Qu=ke.enclosingDeclaration&&ei(ke.enclosingDeclaration),oc=`${W_(An)}|${ke.flags}`;Qu&&(Qu.serializedTypes||(Qu.serializedTypes=new Map));const $m=(ns=Qu==null?void 0:Qu.serializedTypes)==null?void 0:ns.get(oc);if($m)return(ds=$m.trackedSymbols)==null||ds.forEach(([Gr,Wi,Us])=>ke.tracker.trackSymbol(Gr,Wi,Us)),$m.truncating&&(ke.truncating=!0),ke.approximateLength+=$m.addedLength,kn($m.node);let nt;if(zo){if(nt=ke.symbolDepth.get(zo)||0,nt>10)return h(ke);ke.symbolDepth.set(zo,nt+1)}ke.visitedTypes.add(zl);const St=ke.trackedSymbols;ke.trackedSymbols=void 0;const en=ke.approximateLength,Qn=ni(An),Ar=ke.approximateLength-en;return!ke.reportedDiagnostic&&!ke.encounteredError&&((Da=Qu==null?void 0:Qu.serializedTypes)==null||Da.set(oc,{node:Qn,truncating:ke.truncating,addedLength:Ar,trackedSymbols:ke.trackedSymbols})),ke.visitedTypes.delete(zl),zo&&ke.symbolDepth.set(zo,nt),ke.trackedSymbols=St,Qn;function kn(Gr){return!lc(Gr)&&Is(Gr)===Gr?Gr:ut(L.cloneNode(En(Gr,kn,void 0,yr)),Gr)}function yr(Gr,Wi,Us,xa,Ta){return Gr&&Gr.length===0?ut(L.createNodeArray(void 0,Gr.hasTrailingComma),Gr):Wn(Gr,Wi,Us,xa,Ta)}}function dn(An){if(Sf(An)||An.containsError)return Mt(An);const ni=Um(An);if(!ni.properties.length&&!ni.indexInfos.length){if(!ni.callSignatures.length&&!ni.constructSignatures.length)return ke.approximateLength+=2,pr(L.createTypeLiteralNode(void 0),1);if(ni.callSignatures.length===1&&!ni.constructSignatures.length){const Ho=ni.callSignatures[0];return be(Ho,184,ke)}if(ni.constructSignatures.length===1&&!ni.callSignatures.length){const Ho=ni.constructSignatures[0];return be(Ho,185,ke)}}const ns=vr(ni.constructSignatures,Ho=>!!(Ho.flags&4));if(Pe(ns)){const Ho=Kt(ns,PT);return ni.callSignatures.length+(ni.constructSignatures.length-ns.length)+ni.indexInfos.length+(ke.flags&2048?Bc(ni.properties,Qu=>!(Qu.flags&4194304)):Xe(ni.properties))&&Ho.push(yS(ni)),_(Pa(Ho),ke)}const ds=ke.flags;ke.flags|=4194304;const Da=qs(ni);ke.flags=ds;const zl=L.createTypeLiteralNode(Da);return ke.approximateLength+=2,pr(zl,ke.flags&1024?0:1),zl}function jn(An){let ni=ac(An);if(An.target===sa||An.target===la){if(ke.flags&2){const Da=_(ni[0],ke);return L.createTypeReferenceNode(An.target===sa?"Array":"ReadonlyArray",[Da])}const ns=_(ni[0],ke),ds=L.createArrayTypeNode(ns);return An.target===sa?ds:L.createTypeOperatorNode(148,ds)}else if(An.target.objectFlags&8){if(ni=Dc(ni,(ns,ds)=>Cv(ns,!!(An.target.elementFlags[ds]&2))),ni.length>0){const ns=$y(An),ds=j(ni.slice(0,ns),ke);if(ds){const{labeledElementDeclarations:Da}=An.target;for(let Ho=0;Ho0){const Qu=(An.target.typeParameters||Ke).length;zl=j(ni.slice(ds,Qu),ke)}const Ho=ke.flags;ke.flags|=16;const zo=Ns(An.symbol,ke,788968,zl);return ke.flags=Ho,Da?ji(Da,zo):zo}}}function ji(An,ni){if(zh(An)){let ns=An.typeArguments,ds=An.qualifier;ds&&(Je(ds)?ns!==yx(ds)&&(ds=ky(L.cloneNode(ds),ns)):ns!==yx(ds.right)&&(ds=L.updateQualifiedName(ds,ds.left,ky(L.cloneNode(ds.right),ns)))),ns=ni.typeArguments;const Da=Ur(ni);for(const zl of Da)ds=ds?L.createQualifiedName(ds,zl):zl;return L.updateImportTypeNode(An,An.argument,An.attributes,ds,ns,An.isTypeOf)}else{let ns=An.typeArguments,ds=An.typeName;Je(ds)?ns!==yx(ds)&&(ds=ky(L.cloneNode(ds),ns)):ns!==yx(ds.right)&&(ds=L.updateQualifiedName(ds,ds.left,ky(L.cloneNode(ds.right),ns))),ns=ni.typeArguments;const Da=Ur(ni);for(const zl of Da)ds=L.createQualifiedName(ds,zl);return L.updateTypeReferenceNode(An,ds,ns)}}function Ur(An){let ni=An.typeName;const ns=[];for(;!Je(ni);)ns.unshift(ni.right),ni=ni.left;return ns.unshift(ni),ns}function qs(An){if(l(ke))return[L.createPropertySignature(void 0,"...",void 0,void 0)];const ni=[];for(const Da of An.callSignatures)ni.push(be(Da,179,ke));for(const Da of An.constructSignatures)Da.flags&4||ni.push(be(Da,180,ke));for(const Da of An.indexInfos)ni.push(re(Da,ke,An.objectFlags&1024?h(ke):void 0));const ns=An.properties;if(!ns)return ni;let ds=0;for(const Da of ns){if(ds++,ke.flags&2048){if(Da.flags&4194304)continue;nd(Da)&6&&ke.tracker.reportPrivateInBaseOfClassExpression&&ke.tracker.reportPrivateInBaseOfClassExpression(Hi(Da.escapedName))}if(l(ke)&&ds+2!(jn.flags&32768)),0);for(const jn of dn){const ji=be(jn,173,ke,{name:Hr,questionToken:wr});Fn.push(qt(ji))}if(dn.length||!wr)return}let ot;k(lt,ke)?ot=h(ke):(pi&&(ke.reverseMappedStack||(ke.reverseMappedStack=[]),ke.reverseMappedStack.push(lt)),ot=Ci?Oo(ke,Ci,lt,Ei):L.createKeywordTypeNode(133),pi&&ke.reverseMappedStack.pop());const Mt=Gm(lt)?[L.createToken(148)]:void 0;Mt&&(ke.approximateLength+=9);const fn=L.createPropertySignature(Mt,Hr,wr,ot);Fn.push(qt(fn));function qt(dn){var jn;const ji=(jn=lt.declarations)==null?void 0:jn.find(Ur=>Ur.kind===355);if(ji){const Ur=_A(ji.comment);Ur&&s2(dn,[{kind:3,text:`* + * `+Ur.replace(/\n/g,` + * `)+` + `,pos:-1,end:-1,hasTrailingNewLine:!0}])}else lt.valueDeclaration&&kl(dn,lt.valueDeclaration);return dn}}function j(lt,ke,Fn){if(Pe(lt)){if(l(ke))if(Fn){if(lt.length>2)return[_(lt[0],ke),L.createTypeReferenceNode(`... ${lt.length-2} more ...`,void 0),_(lt[lt.length-1],ke)]}else return[L.createTypeReferenceNode("...",void 0)];const pi=!(ke.flags&64)?Dp():void 0,Ci=[];let Ei=0;for(const Hr of lt){if(Ei++,l(ke)&&Ei+2{if(!qae(wr,([ot],[Mt])=>W(ot,Mt)))for(const[ot,Mt]of wr)Ci[Mt]=_(ot,ke)}),ke.flags=Hr}return Ci}}function W(lt,ke){return lt===ke||!!lt.symbol&<.symbol===ke.symbol||!!lt.aliasSymbol&<.aliasSymbol===ke.aliasSymbol}function re(lt,ke,Fn){const Or=fse(lt)||"x",pi=_(lt.keyType,ke),Ci=L.createParameterDeclaration(void 0,void 0,Or,void 0,pi,void 0);return Fn||(Fn=_(lt.type||U,ke)),!lt.type&&!(ke.flags&2097152)&&(ke.encounteredError=!0),ke.approximateLength+=Or.length+4,L.createIndexSignature(lt.isReadonly?[L.createToken(148)]:void 0,[Ci],Fn)}function be(lt,ke,Fn,Or){var pi;const Ci=Fn.flags&256;Ci&&(Fn.flags&=-257),Fn.approximateLength+=3;let Ei,Hr;Fn.flags&32&<.target&<.mapper&<.target.typeParameters?Hr=lt.target.typeParameters.map(Ur=>_(_s(Ur,lt.mapper),Fn)):Ei=lt.typeParameters&<.typeParameters.map(Ur=>ht(Ur,Fn));const wr=SIe(lt,!0)[0];let ot;if(Fn.enclosingDeclaration&<.declaration&<.declaration!==Fn.enclosingDeclaration&&!lr(lt.declaration)&&(Pe(wr)||Pe(lt.typeParameters))){let Ur=function(qs,An){w.assert(Fn.enclosingDeclaration);let ni;ei(Fn.enclosingDeclaration).fakeScopeForSignatureDeclaration===qs?ni=Fn.enclosingDeclaration:Fn.enclosingDeclaration.parent&&ei(Fn.enclosingDeclaration.parent).fakeScopeForSignatureDeclaration===qs&&(ni=Fn.enclosingDeclaration.parent),w.assertOptionalNode(ni,na);const ns=(ni==null?void 0:ni.locals)??ha();let ds;if(An((Ho,zo)=>{ns.has(Ho)||(ds=gn(ds,Ho),ns.set(Ho,zo))}),!ds)return;const Da=ot;function zl(){dt(ds,Ho=>ns.delete(Ho)),Da==null||Da()}if(ni)ot=zl;else{const Ho=eh.createBlock(Ke);ei(Ho).fakeScopeForSignatureDeclaration=qs,Ho.locals=ns;const zo=Fn.enclosingDeclaration;eo(Ho,zo),Fn.enclosingDeclaration=Ho,ot=()=>{Fn.enclosingDeclaration=zo,zl()}}};Ur("params",qs=>{for(const An of wr)qs(An.escapedName,An)}),Fn.flags&4&&Ur("typeParams",qs=>{for(const An of lt.typeParameters??Ke){const ni=Ws(An,Fn).escapedText;qs(ni,An.symbol)}})}const Mt=(Pe(wr,Ur=>Ur!==wr[wr.length-1]&&!!(Uc(Ur)&32768))?lt.parameters:wr).map(Ur=>on(Ur,Fn,ke===176,Or==null?void 0:Or.privateSymbolVisitor,Or==null?void 0:Or.bundledImports)),fn=Fn.flags&33554432?void 0:he(lt,Fn);fn&&Mt.unshift(fn);let qt;const dn=hd(lt);if(dn){const Ur=dn.kind===2||dn.kind===3?L.createToken(131):void 0,qs=dn.kind===1||dn.kind===3?pr(L.createIdentifier(dn.parameterName),16777216):L.createThisTypeNode(),An=dn.type&&_(dn.type,Fn);qt=L.createTypePredicateNode(Ur,qs,An)}else{const Ur=To(lt);Ur&&!(Ci&&Dt(Ur))?qt=$a(Fn,Ur,lt,Or==null?void 0:Or.privateSymbolVisitor,Or==null?void 0:Or.bundledImports):Ci||(qt=L.createKeywordTypeNode(133))}let jn=Or==null?void 0:Or.modifiers;if(ke===185&<.flags&4){const Ur=sg(jn);jn=L.createModifiersFromModifierFlags(Ur|64)}const ji=ke===179?L.createCallSignature(Ei,Mt,qt):ke===180?L.createConstructSignature(Ei,Mt,qt):ke===173?L.createMethodSignature(jn,(Or==null?void 0:Or.name)??L.createIdentifier(""),Or==null?void 0:Or.questionToken,Ei,Mt,qt):ke===174?L.createMethodDeclaration(jn,void 0,(Or==null?void 0:Or.name)??L.createIdentifier(""),void 0,Ei,Mt,qt,void 0):ke===176?L.createConstructorDeclaration(jn,Mt,void 0):ke===177?L.createGetAccessorDeclaration(jn,(Or==null?void 0:Or.name)??L.createIdentifier(""),Mt,qt,void 0):ke===178?L.createSetAccessorDeclaration(jn,(Or==null?void 0:Or.name)??L.createIdentifier(""),Mt,void 0):ke===181?L.createIndexSignature(jn,Mt,qt):ke===324?L.createJSDocFunctionType(Mt,qt):ke===184?L.createFunctionTypeNode(Ei,Mt,qt??L.createTypeReferenceNode(L.createIdentifier(""))):ke===185?L.createConstructorTypeNode(jn,Ei,Mt,qt??L.createTypeReferenceNode(L.createIdentifier(""))):ke===262?L.createFunctionDeclaration(jn,void 0,Or!=null&&Or.name?pa(Or.name,Je):L.createIdentifier(""),Ei,Mt,qt,void 0):ke===218?L.createFunctionExpression(jn,void 0,Or!=null&&Or.name?pa(Or.name,Je):L.createIdentifier(""),Ei,Mt,qt,L.createBlock([])):ke===219?L.createArrowFunction(jn,Ei,Mt,qt,void 0,L.createBlock([])):w.assertNever(ke);if(Hr&&(ji.typeArguments=L.createNodeArray(Hr)),((pi=lt.declaration)==null?void 0:pi.kind)===330&<.declaration.parent.kind===346){const Ur=Ol(lt.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(qs=>qs.replace(/^\s+/," ")).join(` +`);gw(ji,3,Ur,!0)}return ot==null||ot(),ji}function he(lt,ke){if(lt.thisParameter)return on(lt.thisParameter,ke);if(lt.declaration&&lr(lt.declaration)){const Fn=gF(lt.declaration);if(Fn&&Fn.typeExpression)return L.createParameterDeclaration(void 0,void 0,"this",void 0,_(ki(Fn.typeExpression),ke))}}function qe(lt,ke,Fn){const Or=ke.flags;ke.flags&=-513;const pi=L.createModifiersFromModifierFlags(xye(lt)),Ci=Ws(lt,ke),Ei=ET(lt),Hr=Ei&&_(Ei,ke);return ke.flags=Or,L.createTypeParameterDeclaration(pi,Ci,Fn,Hr)}function ht(lt,ke,Fn=af(lt)){const Or=Fn&&_(Fn,ke);return qe(lt,ke,Or)}function Pt(lt){const ke=Cc(lt,169);if(ke)return ke;if(!Vg(lt))return Cc(lt,348)}function on(lt,ke,Fn,Or,pi){const Ci=Pt(lt);let Ei=fr(lt);Ci&&uMe(Ci)&&(Ei=kv(Ei));const Hr=Oo(ke,Ei,lt,ke.enclosingDeclaration,Or,pi),wr=!(ke.flags&8192)&&Fn&&Ci&&sm(Ci)?Kt(lb(Ci),L.cloneNode):void 0,Mt=Ci&&Ah(Ci)||Uc(lt)&32768?L.createToken(26):void 0,fn=un(lt,Ci,ke),dn=Ci&&P5(Ci)||Uc(lt)&16384?L.createToken(58):void 0,jn=L.createParameterDeclaration(wr,Mt,fn,dn,Hr,void 0);return ke.approximateLength+=Rc(lt).length+3,jn}function un(lt,ke,Fn){return ke&&ke.name?ke.name.kind===80?pr(L.cloneNode(ke.name),16777216):ke.name.kind===166?pr(L.cloneNode(ke.name.right),16777216):Or(ke.name):Rc(lt);function Or(pi){return Ci(pi);function Ci(Ei){Fn.tracker.canTrackSymbol&&co(Ei)&&u0e(Ei)&&or(Ei.expression,Fn.enclosingDeclaration,Fn);let Hr=En(Ei,Ci,void 0,void 0,Ci);return oo(Hr)&&(Hr=L.updateBindingElement(Hr,Hr.dotDotDotToken,Hr.propertyName,Hr.name,void 0)),lc(Hr)||(Hr=L.cloneNode(Hr)),pr(Hr,16777217)}}}function or(lt,ke,Fn){if(!Fn.tracker.canTrackSymbol)return;const Or=yp(lt),pi=Lc(Or,Or.escapedText,1160127,void 0,void 0,!0);pi&&Fn.tracker.trackSymbol(pi,ke,111551)}function Rn(lt,ke,Fn,Or){return ke.tracker.trackSymbol(lt,ke.enclosingDeclaration,Fn),ln(lt,ke,Fn,Or)}function ln(lt,ke,Fn,Or){let pi;return!(lt.flags&262144)&&(ke.enclosingDeclaration||ke.flags&64)&&!(ke.flags&134217728)?(pi=w.checkDefined(Ei(lt,Fn,!0)),w.assert(pi&&pi.length>0)):pi=[lt],pi;function Ei(Hr,wr,ot){let Mt=rv(Hr,ke.enclosingDeclaration,wr,!!(ke.flags&128)),fn;if(!Mt||R2(Mt[0],ke.enclosingDeclaration,Mt.length===1?wr:J0(wr))){const dn=L2(Mt?Mt[0]:Hr,ke.enclosingDeclaration,wr);if(Xe(dn)){fn=dn.map(Ur=>Pe(Ur.declarations,T_)?$n(Ur,ke):void 0);const jn=dn.map((Ur,qs)=>qs);jn.sort(qt);const ji=jn.map(Ur=>dn[Ur]);for(const Ur of ji){const qs=Ei(Ur,J0(wr),!1);if(qs){if(Ur.exports&&Ur.exports.get("export=")&&Rm(Ur.exports.get("export="),Hr)){Mt=qs;break}Mt=qs.concat(Mt||[Zh(Ur,Hr)||Hr]);break}}}}if(Mt)return Mt;if(ot||!(Hr.flags&6144))return!ot&&!Or&&dt(Hr.declarations,T_)?void 0:[Hr];function qt(dn,jn){const ji=fn[dn],Ur=fn[jn];if(ji&&Ur){const qs=pp(Ur);return pp(ji)===qs?zM(ji)-zM(Ur):qs?-1:1}return 0}}}function Jn(lt,ke){let Fn;return wE(lt).flags&524384&&(Fn=L.createNodeArray(Kt(Lr(lt),pi=>ht(pi,ke)))),Fn}function Bn(lt,ke,Fn){var Or;w.assert(lt&&0<=ke&&kebv(Mt,wr.links.mapper)),Fn)}else Ei=Jn(pi,Fn)}return Ei}function nr(lt){return xx(lt.objectType)?nr(lt.objectType):lt}function $n(lt,ke,Fn){let Or=Cc(lt,312);if(!Or){const ot=li(lt.declarations,Mt=>hT(Mt,lt));ot&&(Or=Cc(ot,312))}if(Or&&Or.moduleName!==void 0)return Or.moduleName;if(!Or){if(ke.tracker.trackReferencedAmbientModule){const ot=vr(lt.declarations,n_);if(Xe(ot))for(const Mt of ot)ke.tracker.trackReferencedAmbientModule(Mt,lt)}if(WG.test(lt.escapedName))return lt.escapedName.substring(1,lt.escapedName.length-1)}if(!ke.enclosingDeclaration||!ke.tracker.moduleResolverHost)return WG.test(lt.escapedName)?lt.escapedName.substring(1,lt.escapedName.length-1):qn(bW(lt)).fileName;const pi=qn(Gc(ke.enclosingDeclaration)),Ci=Fn||(pi==null?void 0:pi.impliedNodeFormat),Ei=Jw(pi.path,Ci),Hr=Zi(lt);let wr=Hr.specifierCache&&Hr.specifierCache.get(Ei);if(!wr){const ot=!!Vo(z),{moduleResolverHost:Mt}=ke.tracker,fn=ot?{...z,baseUrl:Mt.getCommonSourceDirectory()}:z;wr=Ka(vCe(lt,Zt,fn,pi,Mt,{importModuleSpecifierPreference:ot?"non-relative":"project-relative",importModuleSpecifierEnding:ot?"minimal":Ci===99?"js":void 0},{overrideImportMode:Fn})),Hr.specifierCache??(Hr.specifierCache=new Map),Hr.specifierCache.set(Ei,wr)}return wr}function rr(lt){const ke=L.createIdentifier(Hi(lt.escapedName));return lt.parent?L.createQualifiedName(rr(lt.parent),ke):ke}function Ns(lt,ke,Fn,Or){const pi=Rn(lt,ke,Fn,!(ke.flags&16384)),Ci=Fn===111551;if(Pe(pi[0].declarations,T_)){const wr=pi.length>1?Hr(pi,pi.length-1,1):void 0,ot=Or||Bn(pi,0,ke),Mt=qn(Gc(ke.enclosingDeclaration)),fn=MF(pi[0]);let qt,dn;if((j_(z)===3||j_(z)===99)&&(fn==null?void 0:fn.impliedNodeFormat)===99&&fn.impliedNodeFormat!==(Mt==null?void 0:Mt.impliedNodeFormat)&&(qt=$n(pi[0],ke,99),dn=L.createImportAttributes(L.createNodeArray([L.createImportAttribute(L.createStringLiteral("resolution-mode"),L.createStringLiteral("import"))]))),qt||(qt=$n(pi[0],ke)),!(ke.flags&67108864)&&j_(z)!==1&&qt.includes("/node_modules/")){const ji=qt;if(j_(z)===3||j_(z)===99){const Ur=(Mt==null?void 0:Mt.impliedNodeFormat)===99?1:99;qt=$n(pi[0],ke,Ur),qt.includes("/node_modules/")?qt=ji:dn=L.createImportAttributes(L.createNodeArray([L.createImportAttribute(L.createStringLiteral("resolution-mode"),L.createStringLiteral(Ur===99?"import":"require"))]))}dn||(ke.encounteredError=!0,ke.tracker.reportLikelyUnsafeImportRequiredError&&ke.tracker.reportLikelyUnsafeImportRequiredError(ji))}const jn=L.createLiteralTypeNode(L.createStringLiteral(qt));if(ke.tracker.trackExternalModuleSymbolOfImportTypeNode&&ke.tracker.trackExternalModuleSymbolOfImportTypeNode(pi[0]),ke.approximateLength+=qt.length+10,!wr||Ef(wr)){if(wr){const ji=Je(wr)?wr:wr.right;ky(ji,void 0)}return L.createImportTypeNode(jn,dn,wr,ot,Ci)}else{const ji=nr(wr),Ur=ji.objectType.typeName;return L.createIndexedAccessTypeNode(L.createImportTypeNode(jn,dn,Ur,ot,Ci),ji.indexType)}}const Ei=Hr(pi,pi.length-1,0);if(xx(Ei))return Ei;if(Ci)return L.createTypeQueryNode(Ei);{const wr=Je(Ei)?Ei:Ei.right,ot=yx(wr);return ky(wr,void 0),L.createTypeReferenceNode(Ei,ot)}function Hr(wr,ot,Mt){const fn=ot===wr.length-1?Or:Bn(wr,ot,ke),qt=wr[ot],dn=wr[ot-1];let jn;if(ot===0)ke.flags|=16777216,jn=j2(qt,ke),ke.approximateLength+=(jn?jn.length:0)+1,ke.flags^=16777216;else if(dn&&ip(dn)){const Ur=ip(dn);cu(Ur,(qs,An)=>{if(Rm(qs,qt)&&!k5(An)&&An!=="export=")return jn=Hi(An),!0})}if(jn===void 0){const Ur=li(qt.declarations,Ms);if(Ur&&co(Ur)&&Ef(Ur.expression)){const qs=Hr(wr,ot-1,Mt);return Ef(qs)?L.createIndexedAccessTypeNode(L.createParenthesizedType(L.createTypeQueryNode(qs)),L.createTypeQueryNode(Ur.expression)):qs}jn=j2(qt,ke)}if(ke.approximateLength+=jn.length+1,!(ke.flags&16)&&dn&&dv(dn)&&dv(dn).get(qt.escapedName)&&Rm(dv(dn).get(qt.escapedName),qt)){const Ur=Hr(wr,ot-1,Mt);return xx(Ur)?L.createIndexedAccessTypeNode(Ur,L.createLiteralTypeNode(L.createStringLiteral(jn))):L.createIndexedAccessTypeNode(L.createTypeReferenceNode(Ur,fn),L.createLiteralTypeNode(L.createStringLiteral(jn)))}const ji=pr(L.createIdentifier(jn),16777216);if(fn&&ky(ji,L.createNodeArray(fn)),ji.symbol=qt,ot>Mt){const Ur=Hr(wr,ot-1,Mt);return Ef(Ur)?L.createQualifiedName(Ur,ji):w.fail("Impossible construct - an export of an indexed access cannot be reachable")}return ji}}function Es(lt,ke,Fn){const Or=Lc(ke.enclosingDeclaration,lt,788968,void 0,lt,!1);return Or&&Or.flags&262144?Or!==Fn.symbol:!1}function Ws(lt,ke){var Fn,Or;if(ke.flags&4&&ke.typeParameterNames){const Ci=ke.typeParameterNames.get(W_(lt));if(Ci)return Ci}let pi=gs(lt.symbol,ke,788968,!0);if(!(pi.kind&80))return L.createIdentifier("(Missing type parameter)");if(ke.flags&4){const Ci=pi.escapedText;let Ei=((Fn=ke.typeParameterNamesByTextNextNameCount)==null?void 0:Fn.get(Ci))||0,Hr=Ci;for(;(Or=ke.typeParameterNamesByText)!=null&&Or.has(Hr)||Es(Hr,ke,lt);)Ei++,Hr=`${Ci}_${Ei}`;if(Hr!==Ci){const wr=yx(pi);pi=L.createIdentifier(Hr),ky(pi,wr)}(ke.typeParameterNamesByTextNextNameCount||(ke.typeParameterNamesByTextNextNameCount=new Map)).set(Ci,Ei),(ke.typeParameterNames||(ke.typeParameterNames=new Map)).set(W_(lt),pi),(ke.typeParameterNamesByText||(ke.typeParameterNamesByText=new Set)).add(Hr)}return pi}function gs(lt,ke,Fn,Or){const pi=Rn(lt,ke,Fn);return Or&&pi.length!==1&&!ke.encounteredError&&!(ke.flags&65536)&&(ke.encounteredError=!0),Ci(pi,pi.length-1);function Ci(Ei,Hr){const wr=Bn(Ei,Hr,ke),ot=Ei[Hr];Hr===0&&(ke.flags|=16777216);const Mt=j2(ot,ke);Hr===0&&(ke.flags^=16777216);const fn=pr(L.createIdentifier(Mt),16777216);return wr&&ky(fn,L.createNodeArray(wr)),fn.symbol=ot,Hr>0?L.createQualifiedName(Ci(Ei,Hr-1),fn):fn}}function Ql(lt,ke,Fn){const Or=Rn(lt,ke,Fn);return pi(Or,Or.length-1);function pi(Ci,Ei){const Hr=Bn(Ci,Ei,ke),wr=Ci[Ei];Ei===0&&(ke.flags|=16777216);let ot=j2(wr,ke);Ei===0&&(ke.flags^=16777216);let Mt=ot.charCodeAt(0);if(JA(Mt)&&Pe(wr.declarations,T_))return L.createStringLiteral($n(wr,ke));if(Ei===0||Bq(ot,ce)){const fn=pr(L.createIdentifier(ot),16777216);return Hr&&ky(fn,L.createNodeArray(Hr)),fn.symbol=wr,Ei>0?L.createPropertyAccessExpression(pi(Ci,Ei-1),fn):fn}else{Mt===91&&(ot=ot.substring(1,ot.length-1),Mt=ot.charCodeAt(0));let fn;if(JA(Mt)&&!(wr.flags&8)?fn=L.createStringLiteral(Nd(ot).replace(/\\./g,qt=>qt.substring(1)),Mt===39):""+ +ot===ot&&(fn=L.createNumericLiteral(+ot)),!fn){const qt=pr(L.createIdentifier(ot),16777216);Hr&&ky(qt,L.createNodeArray(Hr)),qt.symbol=wr,fn=qt}return L.createElementAccessExpression(pi(Ci,Ei-1),fn)}}}function Sd(lt){const ke=Ms(lt);return ke?co(ke)?!!(ms(ke.expression).flags&402653316):uc(ke)?!!(ms(ke.argumentExpression).flags&402653316):Ba(ke):!1}function jf(lt){const ke=Ms(lt);return!!(ke&&Ba(ke)&&(ke.singleQuote||!lc(ke)&&fs(Ol(ke,!1),"'")))}function Mn(lt,ke){const Fn=!!Xe(lt.declarations)&&Pn(lt.declarations,Sd),Or=!!Xe(lt.declarations)&&Pn(lt.declarations,jf),pi=!!(lt.flags&8192),Ci=tr(lt,ke,Or,Fn,pi);if(Ci)return Ci;const Ei=Hi(lt.escapedName);return eL(Ei,go(z),Or,Fn,pi)}function tr(lt,ke,Fn,Or,pi){const Ci=Zi(lt).nameType;if(Ci){if(Ci.flags&384){const Ei=""+Ci.value;return!Np(Ei,go(z))&&(Or||!Jh(Ei))?L.createStringLiteral(Ei,!!Fn):Jh(Ei)&&fs(Ei,"-")?L.createComputedPropertyName(L.createPrefixUnaryExpression(41,L.createNumericLiteral(-Ei))):eL(Ei,go(z),Fn,Or,pi)}if(Ci.flags&8192)return L.createComputedPropertyName(Ql(Ci.symbol,ke,111551))}}function cs(lt){const ke={...lt};return ke.typeParameterNames&&(ke.typeParameterNames=new Map(ke.typeParameterNames)),ke.typeParameterNamesByText&&(ke.typeParameterNamesByText=new Set(ke.typeParameterNamesByText)),ke.typeParameterSymbolList&&(ke.typeParameterSymbolList=new Set(ke.typeParameterSymbolList)),ke.tracker=new HG(ke,ke.tracker.inner,ke.tracker.moduleResolverHost),ke}function xr(lt,ke){return lt.declarations&&Cn(lt.declarations,Fn=>!!zu(Fn)&&(!ke||!!Vn(Fn,Or=>Or===ke)))}function Fs(lt,ke){return!(Br(ke)&4)||!id(lt)||Xe(lt.typeArguments)>=gh(ke.target.typeParameters)}function yo(lt){for(;ei(lt).fakeScopeForSignatureDeclaration;)lt=lt.parent;return lt}function Oo(lt,ke,Fn,Or,pi,Ci){if(!Gt(ke)&&Or){const wr=xr(Fn,yo(Or));if(wr&&!Ko(wr)&&!Op(wr)){const ot=zu(wr);if(__(ot,wr,ke)&&Fs(ot,ke)){const Mt=Kc(lt,ot,pi,Ci);if(Mt)return Mt}}}const Ei=lt.flags;ke.flags&8192&&ke.symbol===Fn&&(!lt.enclosingDeclaration||Pe(Fn.declarations,wr=>qn(wr)===qn(lt.enclosingDeclaration)))&&(lt.flags|=1048576);const Hr=_(ke,lt);return lt.flags=Ei,Hr}function __(lt,ke,Fn){const Or=ki(lt);return Or===Fn?!0:ws(ke)&&ke.questionToken?Hd(Fn,524288)===Or:!1}function $a(lt,ke,Fn,Or,pi){if(!Gt(ke)&<.enclosingDeclaration){const Ci=Fn.declaration&&Id(Fn.declaration),Ei=yo(lt.enclosingDeclaration);if(Vn(Ci,Hr=>Hr===Ei)&&Ci){const Hr=ki(Ci);if((Hr.flags&262144&&Hr.isThisType?_s(Hr,Fn.mapper):Hr)===ke&&Fs(Ci,ke)){const ot=Kc(lt,Ci,Or,pi);if(ot)return ot}}}return _(ke,lt)}function cf(lt,ke,Fn){let Or=!1;const pi=yp(lt);if(lr(lt)&&(ax(pi)||Fh(pi.parent)||Z_(pi.parent)&&jW(pi.parent.left)&&ax(pi.parent.right)))return Or=!0,{introducesError:Or,node:lt};const Ci=dd(lt),Ei=ic(pi,Ci,!0,!0);if(Ei&&(Bi(Ei,ke.enclosingDeclaration,Ci,!1).accessibility!==0?Or=!0:(ke.tracker.trackSymbol(Ei,ke.enclosingDeclaration,Ci),Fn==null||Fn(Ei)),Je(lt))){const Hr=fc(Ei),wr=Ei.flags&262144?Ws(Hr,ke):L.cloneNode(lt);return wr.symbol=Ei,{introducesError:Or,node:pr(Ir(wr,lt),16777216)}}return{introducesError:Or,node:lt}}function Kc(lt,ke,Fn,Or){i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let pi=!1;const Ci=qn(ke),Ei=tt(ke,Hr,Gi);if(pi)return;return Ei===ke?ut(L.cloneNode(ke),ke):Ei;function Hr(wr){if(Uoe(wr)||wr.kind===326)return L.createKeywordTypeNode(133);if(Voe(wr))return L.createKeywordTypeNode(159);if(j4(wr))return L.createUnionTypeNode([tt(wr.type,Hr,Gi),L.createLiteralTypeNode(L.createNull())]);if(NH(wr))return L.createUnionTypeNode([tt(wr.type,Hr,Gi),L.createKeywordTypeNode(157)]);if(nM(wr))return tt(wr.type,Hr);if(rM(wr))return L.createArrayTypeNode(tt(wr.type,Hr,Gi));if(wx(wr))return L.createTypeLiteralNode(Kt(wr.jsDocPropertyTags,qt=>{const dn=Je(qt.name)?qt.name:qt.name.right,jn=He(ki(wr),dn.escapedText),ji=jn&&qt.typeExpression&&ki(qt.typeExpression.type)!==jn?_(jn,lt):void 0;return L.createPropertySignature(void 0,dn,qt.isBracketed||qt.typeExpression&&NH(qt.typeExpression.type)?L.createToken(58):void 0,ji||qt.typeExpression&&tt(qt.typeExpression.type,Hr,Gi)||L.createKeywordTypeNode(133))}));if(id(wr)&&Je(wr.typeName)&&wr.typeName.escapedText==="")return Ir(L.createKeywordTypeNode(133),wr);if((Cy(wr)||id(wr))&&s9(wr))return L.createTypeLiteralNode([L.createIndexSignature(void 0,[L.createParameterDeclaration(void 0,void 0,"x",void 0,tt(wr.typeArguments[0],Hr,Gi))],tt(wr.typeArguments[1],Hr,Gi))]);if(B4(wr))if(c4(wr)){let qt;return L.createConstructorTypeNode(void 0,Wn(wr.typeParameters,Hr,Ic),Oi(wr.parameters,(dn,jn)=>dn.name&&Je(dn.name)&&dn.name.escapedText==="new"?(qt=dn.type,void 0):L.createParameterDeclaration(void 0,ot(dn),Mt(dn,jn),dn.questionToken,tt(dn.type,Hr,Gi),void 0)),tt(qt||wr.type,Hr,Gi)||L.createKeywordTypeNode(133))}else return L.createFunctionTypeNode(Wn(wr.typeParameters,Hr,Ic),Kt(wr.parameters,(qt,dn)=>L.createParameterDeclaration(void 0,ot(qt),Mt(qt,dn),qt.questionToken,tt(qt.type,Hr,Gi),void 0)),tt(wr.type,Hr,Gi)||L.createKeywordTypeNode(133));if(id(wr)&&BA(wr)&&(!Fs(wr,ki(wr))||e5e(wr)||ft===mE(wr,788968,!0)))return Ir(_(ki(wr),lt),wr);if(b1(wr)){const qt=ei(wr).resolvedSymbol;return BA(wr)&&qt&&(!wr.isTypeOf&&!(qt.flags&788968)||!(Xe(wr.typeArguments)>=gh(Lr(qt))))?Ir(_(ki(wr),lt),wr):L.updateImportTypeNode(wr,L.updateLiteralTypeNode(wr.argument,fn(wr,wr.argument.literal)),wr.attributes,wr.qualifier,Wn(wr.typeArguments,Hr,Gi),wr.isTypeOf)}if(Ef(wr)||il(wr)){const{introducesError:qt,node:dn}=cf(wr,lt,Fn);if(pi=pi||qt,dn!==wr)return dn}return Ci&&Hk(wr)&&Ao(Ci,wr.pos).line===Ao(Ci,wr.end).line&&pr(wr,1),En(wr,Hr,void 0);function ot(qt){return qt.dotDotDotToken||(qt.type&&rM(qt.type)?L.createToken(26):void 0)}function Mt(qt,dn){return qt.name&&Je(qt.name)&&qt.name.escapedText==="this"?"this":ot(qt)?"args":`arg${dn}`}function fn(qt,dn){if(Or){if(lt.tracker&<.tracker.moduleResolverHost){const jn=Pve(qt);if(jn){const Ur={getCanonicalFileName:e_(!!e.useCaseSensitiveFileNames),getCurrentDirectory:()=>lt.tracker.moduleResolverHost.getCurrentDirectory(),getCommonSourceDirectory:()=>lt.tracker.moduleResolverHost.getCommonSourceDirectory()},qs=y9(Ur,jn);return L.createStringLiteral(qs)}}}else if(lt.tracker&<.tracker.trackExternalModuleSymbolOfImportTypeNode){const jn=j0(dn,dn,void 0);jn&<.tracker.trackExternalModuleSymbolOfImportTypeNode(jn)}return dn}}}function Mc(lt,ke,Fn){var Or;const pi=ko(L.createPropertyDeclaration,174,!0),Ci=ko((Nt,Nr,di,Xr)=>L.createPropertySignature(Nt,Nr,di,Xr),173,!1),Ei=ke.enclosingDeclaration;let Hr=[];const wr=new Set,ot=[],Mt=ke;ke={...Mt,usedSymbolNames:new Set(Mt.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map((Or=Mt.remappedSymbolReferences)==null?void 0:Or.entries()),tracker:void 0};const fn={...Mt.tracker.inner,trackSymbol:(Nt,Nr,di)=>{var Xr,_i;if((Xr=ke.remappedSymbolNames)!=null&&Xr.has(Ia(Nt)))return!1;if(Bi(Nt,Nr,di,!1).accessibility===0){const ya=ln(Nt,ke,di);if(!(Nt.flags&4)){const Qs=ya[0],Zo=qn(Mt.enclosingDeclaration);Pe(Qs.declarations,Co=>qn(Co)===Zo)&&zo(Qs)}}else if((_i=Mt.tracker.inner)!=null&&_i.trackSymbol)return Mt.tracker.inner.trackSymbol(Nt,Nr,di);return!1}};ke.tracker=new HG(ke,fn,Mt.tracker.moduleResolverHost),cu(lt,(Nt,Nr)=>{const di=Hi(Nr);Sm(Nt,di)});let qt=!Fn;const dn=lt.get("export=");return dn&<.size>1&&dn.flags&2098688&&(lt=ha(),lt.set("export=",dn)),Da(lt),ni(Hr);function jn(Nt){return!!Nt&&Nt.kind===80}function ji(Nt){return Xc(Nt)?vr(Kt(Nt.declarationList.declarations,Ms),jn):vr([Ms(Nt)],jn)}function Ur(Nt){const Nr=Cn(Nt,Qc),di=Gs(Nt,dl);let Xr=di!==-1?Nt[di]:void 0;if(Xr&&Nr&&Nr.isExportEquals&&Je(Nr.expression)&&Je(Xr.name)&&kr(Xr.name)===kr(Nr.expression)&&Xr.body&&lg(Xr.body)){const _i=vr(Nt,Qs=>!!(M_(Qs)&32)),fo=Xr.name;let ya=Xr.body;if(Xe(_i)&&(Xr=L.updateModuleDeclaration(Xr,Xr.modifiers,Xr.name,ya=L.updateModuleBlock(ya,L.createNodeArray([...Xr.body.statements,L.createExportDeclaration(void 0,!1,L.createNamedExports(Kt(Ys(_i,Qs=>ji(Qs)),Qs=>L.createExportSpecifier(!1,void 0,Qs))),void 0)]))),Nt=[...Nt.slice(0,di),Xr,...Nt.slice(di+1)]),!Cn(Nt,Qs=>Qs!==Xr&&cA(Qs,fo))){Hr=[];const Qs=!Pe(ya.statements,Zo=>Kr(Zo,32)||Qc(Zo)||ml(Zo));dt(ya.statements,Zo=>{oc(Zo,Qs?32:0)}),Nt=[...vr(Nt,Zo=>Zo!==Xr&&Zo!==Nr),...Hr]}}return Nt}function qs(Nt){const Nr=vr(Nt,Xr=>ml(Xr)&&!Xr.moduleSpecifier&&!!Xr.exportClause&&sd(Xr.exportClause));Xe(Nr)>1&&(Nt=[...vr(Nt,_i=>!ml(_i)||!!_i.moduleSpecifier||!_i.exportClause),L.createExportDeclaration(void 0,!1,L.createNamedExports(Ys(Nr,_i=>pa(_i.exportClause,sd).elements)),void 0)]);const di=vr(Nt,Xr=>ml(Xr)&&!!Xr.moduleSpecifier&&!!Xr.exportClause&&sd(Xr.exportClause));if(Xe(di)>1){const Xr=KE(di,_i=>Ba(_i.moduleSpecifier)?">"+_i.moduleSpecifier.text:">");if(Xr.length!==di.length)for(const _i of Xr)_i.length>1&&(Nt=[...vr(Nt,fo=>!_i.includes(fo)),L.createExportDeclaration(void 0,!1,L.createNamedExports(Ys(_i,fo=>pa(fo.exportClause,sd).elements)),_i[0].moduleSpecifier)])}return Nt}function An(Nt){const Nr=Gs(Nt,di=>ml(di)&&!di.moduleSpecifier&&!di.attributes&&!!di.exportClause&&sd(di.exportClause));if(Nr>=0){const di=Nt[Nr],Xr=Oi(di.exportClause.elements,_i=>{if(!_i.propertyName){const fo=rs(Nt),ya=vr(fo,Qs=>cA(Nt[Qs],_i.name));if(Xe(ya)&&Pn(ya,Qs=>TN(Nt[Qs]))){for(const Qs of ya)Nt[Qs]=ns(Nt[Qs]);return}}return _i});Xe(Xr)?Nt[Nr]=L.updateExportDeclaration(di,di.modifiers,di.isTypeOnly,L.updateNamedExports(di.exportClause,Xr),di.moduleSpecifier,di.attributes):a1(Nt,Nr)}return Nt}function ni(Nt){return Nt=Ur(Nt),Nt=qs(Nt),Nt=An(Nt),Ei&&(es(Ei)&&mp(Ei)||dl(Ei))&&(!Pe(Nt,vA)||!Bie(Nt)&&Pe(Nt,CF))&&Nt.push(KN(L)),Nt}function ns(Nt){const Nr=(M_(Nt)|32)&-129;return L.replaceModifiers(Nt,Nr)}function ds(Nt){const Nr=M_(Nt)&-33;return L.replaceModifiers(Nt,Nr)}function Da(Nt,Nr,di){Nr||ot.push(new Map),Nt.forEach(Xr=>{zl(Xr,!1,!!di)}),Nr||(ot[ot.length-1].forEach(Xr=>{zl(Xr,!0,!!di)}),ot.pop())}function zl(Nt,Nr,di){const Xr=po(Nt);if(wr.has(Ia(Xr)))return;if(wr.add(Ia(Xr)),!Nr||Xe(Nt.declarations)&&Pe(Nt.declarations,fo=>!!Vn(fo,ya=>ya===Ei))){const fo=ke;ke=cs(ke),Ho(Nt,Nr,di),ke.reportedDiagnostic&&(Mt.reportedDiagnostic=ke.reportedDiagnostic),ke.trackedSymbols&&(fo.trackedSymbols?w.assert(ke.trackedSymbols===fo.trackedSymbols):fo.trackedSymbols=ke.trackedSymbols),ke=fo}}function Ho(Nt,Nr,di,Xr=Nt.escapedName){var _i,fo,ya,Qs,Zo,Co;const Xa=Hi(Xr),Yu=Xr==="default";if(Nr&&!(ke.flags&131072)&&kk(Xa)&&!Yu){ke.encounteredError=!0;return}let Zu=Yu&&!!(Nt.flags&-113||Nt.flags&16&&Xe(Po(fr(Nt))))&&!(Nt.flags&2097152),H_=!Zu&&!Nr&&kk(Xa)&&!Yu;(Zu||H_)&&(Nr=!0);const _l=(Nr?0:32)|(Yu&&!Zu?2048:0),Ku=Nt.flags&1536&&Nt.flags&7&&Xr!=="export=",kf=Ku&&Uo(fr(Nt),Nt);if((Nt.flags&8208||kf)&&kn(fr(Nt),Nt,Sm(Nt,Xa),_l),Nt.flags&524288&&$m(Nt,Xa,_l),Nt.flags&98311&&Xr!=="export="&&!(Nt.flags&4194304)&&!(Nt.flags&32)&&!(Nt.flags&8192)&&!kf)if(di)Ma(Nt)&&(H_=!1,Zu=!1);else{const Pu=fr(Nt),lp=Sm(Nt,Xa);if(Pu.symbol&&Pu.symbol!==Nt&&Pu.symbol.flags&16&&Pe(Pu.symbol.declarations,Db)&&((_i=Pu.symbol.members)!=null&&_i.size||(fo=Pu.symbol.exports)!=null&&fo.size))ke.remappedSymbolReferences||(ke.remappedSymbolReferences=new Map),ke.remappedSymbolReferences.set(Ia(Pu.symbol),Nt),Ho(Pu.symbol,Nr,di,Xr),ke.remappedSymbolReferences.delete(Ia(Pu.symbol));else if(!(Nt.flags&16)&&Uo(Pu,Nt))kn(Pu,Nt,lp,_l);else{const _6=Nt.flags&2?a8(Nt)?2:1:(ya=Nt.parent)!=null&&ya.valueDeclaration&&es((Qs=Nt.parent)==null?void 0:Qs.valueDeclaration)?2:void 0,Ng=Zu||!(Nt.flags&4)?lp:Xm(lp,Nt);let wv=Nt.declarations&&Cn(Nt.declarations,uO=>Ji(uO));wv&&_u(wv.parent)&&wv.parent.declarations.length===1&&(wv=wv.parent.parent);const Dv=(Zo=Nt.declarations)==null?void 0:Zo.find(Jr);if(Dv&&mr(Dv.parent)&&Je(Dv.parent.right)&&((Co=Pu.symbol)!=null&&Co.valueDeclaration)&&es(Pu.symbol.valueDeclaration)){const uO=lp===Dv.parent.right.escapedText?void 0:Dv.parent.right;oc(L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,uO,lp)])),0),ke.tracker.trackSymbol(Pu.symbol,ke.enclosingDeclaration,111551)}else{const uO=ut(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(Ng,void 0,Oo(ke,Pu,Nt,Ei,zo,Fn))],_6)),wv);oc(uO,Ng!==lp?_l&-33:_l),Ng!==lp&&!Nr&&(oc(L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,Ng,lp)])),0),H_=!1,Zu=!1)}}}if(Nt.flags&384&&Ar(Nt,Xa,_l),Nt.flags&32&&(Nt.flags&4&&Nt.valueDeclaration&&mr(Nt.valueDeclaration.parent)&&Su(Nt.valueDeclaration.parent.right)?Si(Nt,Sm(Nt,Xa),_l):xa(Nt,Sm(Nt,Xa),_l)),(Nt.flags&1536&&(!Ku||en(Nt))||kf)&&Qn(Nt,Xa,_l),Nt.flags&64&&!(Nt.flags&32)&&nt(Nt,Xa,_l),Nt.flags&2097152&&Si(Nt,Sm(Nt,Xa),_l),Nt.flags&4&&Nt.escapedName==="export="&&Ma(Nt),Nt.flags&8388608&&Nt.declarations)for(const Pu of Nt.declarations){const lp=U_(Pu,Pu.moduleSpecifier);lp&&oc(L.createExportDeclaration(void 0,Pu.isTypeOnly,void 0,L.createStringLiteral($n(lp,ke))),0)}Zu?oc(L.createExportAssignment(void 0,!1,L.createIdentifier(Sm(Nt,Xa))),0):H_&&oc(L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,Sm(Nt,Xa),Xa)])),0)}function zo(Nt){if(Pe(Nt.declarations,xb))return;w.assertIsDefined(ot[ot.length-1]),Xm(Hi(Nt.escapedName),Nt);const Nr=!!(Nt.flags&2097152)&&!Pe(Nt.declarations,di=>!!Vn(di,ml)||Zg(di)||Tu(di)&&!Kg(di.moduleReference));ot[Nr?0:ot.length-1].set(Ia(Nt),Nt)}function Qu(Nt){return es(Nt)&&(mp(Nt)||wd(Nt))||n_(Nt)&&!eg(Nt)}function oc(Nt,Nr){if(sm(Nt)){let di=0;const Xr=ke.enclosingDeclaration&&(Dd(ke.enclosingDeclaration)?qn(ke.enclosingDeclaration):ke.enclosingDeclaration);Nr&32&&Xr&&(Qu(Xr)||dl(Xr))&&TN(Nt)&&(di|=32),qt&&!(di&32)&&(!Xr||!(Xr.flags&33554432))&&(a2(Nt)||Xc(Nt)||Wl(Nt)||ql(Nt)||dl(Nt))&&(di|=128),Nr&2048&&(ql(Nt)||J_(Nt)||Wl(Nt))&&(di|=2048),di&&(Nt=L.replaceModifiers(Nt,di|M_(Nt)))}Hr.push(Nt)}function $m(Nt,Nr,di){var Xr;const _i=lIe(Nt),fo=Zi(Nt).typeParameters,ya=Kt(fo,Zu=>ht(Zu,ke)),Qs=(Xr=Nt.declarations)==null?void 0:Xr.find(Dd),Zo=_A(Qs?Qs.comment||Qs.parent.comment:void 0),Co=ke.flags;ke.flags|=8388608;const Xa=ke.enclosingDeclaration;ke.enclosingDeclaration=Qs;const Yu=Qs&&Qs.typeExpression&&Ub(Qs.typeExpression)&&Kc(ke,Qs.typeExpression.type,zo,Fn)||_(_i,ke);oc(s2(L.createTypeAliasDeclaration(void 0,Sm(Nt,Nr),ya,Yu),Zo?[{kind:3,text:`* + * `+Zo.replace(/\n/g,` + * `)+` + `,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),di),ke.flags=Co,ke.enclosingDeclaration=Xa}function nt(Nt,Nr,di){const Xr=gd(Nt),_i=Lr(Nt),fo=Kt(_i,H_=>ht(H_,ke)),ya=ap(Xr),Qs=Xe(ya)?Pa(ya):void 0,Zo=Ys(Po(Xr),H_=>Yl(H_,Qs)),Co=Sh(0,Xr,Qs,179),Xa=Sh(1,Xr,Qs,180),Yu=ty(Xr,Qs),Zu=Xe(ya)?[L.createHeritageClause(96,Oi(ya,H_=>HT(H_,111551)))]:void 0;oc(L.createInterfaceDeclaration(void 0,Sm(Nt,Nr),fo,Zu,[...Yu,...Xa,...Co,...Zo]),di)}function St(Nt){let Nr=Vs(ip(Nt).values());const di=po(Nt);if(di!==Nt){const Xr=new Set(Nr);for(const _i of ip(di).values())Hu(al(_i))&111551||Xr.add(_i);Nr=Vs(Xr)}return vr(Nr,Xr=>Wi(Xr)&&Np(Xr.escapedName,99))}function en(Nt){return Pn(St(Nt),Nr=>!(Hu(al(Nr))&111551))}function Qn(Nt,Nr,di){const Xr=St(Nt),_i=M8(Xr,Qs=>Qs.parent&&Qs.parent===Nt?"real":"merged"),fo=_i.get("real")||Ke,ya=_i.get("merged")||Ke;if(Xe(fo)){const Qs=Sm(Nt,Nr);Gr(fo,Qs,di,!!(Nt.flags&67108880))}if(Xe(ya)){const Qs=qn(ke.enclosingDeclaration),Zo=Sm(Nt,Nr),Co=L.createModuleBlock([L.createExportDeclaration(void 0,!1,L.createNamedExports(Oi(vr(ya,Xa=>Xa.escapedName!=="export="),Xa=>{var Yu,Zu;const H_=Hi(Xa.escapedName),_l=Sm(Xa,H_),Ku=Xa.declarations&&pm(Xa);if(Qs&&(Ku?Qs!==qn(Ku):!Pe(Xa.declarations,lp=>qn(lp)===Qs))){(Zu=(Yu=ke.tracker)==null?void 0:Yu.reportNonlocalAugmentation)==null||Zu.call(Yu,Qs,Nt,Xa);return}const kf=Ku&&Sp(Ku,!0);zo(kf||Xa);const Pu=kf?Sm(kf,Hi(kf.escapedName)):_l;return L.createExportSpecifier(!1,H_===Pu?void 0:Pu,H_)})))]);oc(L.createModuleDeclaration(void 0,L.createIdentifier(Zo),Co,32),0)}}function Ar(Nt,Nr,di){oc(L.createEnumDeclaration(L.createModifiersFromModifierFlags($1e(Nt)?4096:0),Sm(Nt,Nr),Kt(vr(Po(fr(Nt)),Xr=>!!(Xr.flags&8)),Xr=>{const _i=Xr.declarations&&Xr.declarations[0]&&zb(Xr.declarations[0])?kve(Xr.declarations[0]):void 0;return L.createEnumMember(Hi(Xr.escapedName),_i===void 0?void 0:typeof _i=="string"?L.createStringLiteral(_i):L.createNumericLiteral(_i))})),di)}function kn(Nt,Nr,di,Xr){const _i=ra(Nt,0);for(const fo of _i){const ya=be(fo,262,ke,{name:L.createIdentifier(di),privateSymbolVisitor:zo,bundledImports:Fn});oc(ut(ya,yr(fo)),Xr)}if(!(Nr.flags&1536&&Nr.exports&&Nr.exports.size)){const fo=vr(Po(Nt),Wi);Gr(fo,di,Xr,!0)}}function yr(Nt){if(Nt.declaration&&Nt.declaration.parent){if(mr(Nt.declaration.parent)&&rl(Nt.declaration.parent)===5)return Nt.declaration.parent;if(Ji(Nt.declaration.parent)&&Nt.declaration.parent.parent)return Nt.declaration.parent.parent}return Nt.declaration}function Gr(Nt,Nr,di,Xr){if(Xe(Nt)){const fo=M8(Nt,_l=>!Xe(_l.declarations)||Pe(_l.declarations,Ku=>qn(Ku)===qn(ke.enclosingDeclaration))?"local":"remote").get("local")||Ke;let ya=eh.createModuleDeclaration(void 0,L.createIdentifier(Nr),L.createModuleBlock([]),32);eo(ya,Ei),ya.locals=ha(Nt),ya.symbol=Nt[0].parent;const Qs=Hr;Hr=[];const Zo=qt;qt=!1;const Co={...ke,enclosingDeclaration:ya},Xa=ke;ke=Co,Da(ha(fo),Xr,!0),ke=Xa,qt=Zo;const Yu=Hr;Hr=Qs;const Zu=Kt(Yu,_l=>Qc(_l)&&!_l.isExportEquals&&Je(_l.expression)?L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,_l.expression,L.createIdentifier("default"))])):_l),H_=Pn(Zu,_l=>Kr(_l,32))?Kt(Zu,ds):Zu;ya=L.updateModuleDeclaration(ya,ya.modifiers,ya.name,L.createModuleBlock(H_)),oc(ya,di)}}function Wi(Nt){return!!(Nt.flags&2887656)||!(Nt.flags&4194304||Nt.escapedName==="prototype"||Nt.valueDeclaration&&da(Nt.valueDeclaration)&&fi(Nt.valueDeclaration.parent))}function Us(Nt){const Nr=Oi(Nt,di=>{const Xr=ke.enclosingDeclaration;ke.enclosingDeclaration=di;let _i=di.expression;if(il(_i)){if(Je(_i)&&kr(_i)==="")return fo(void 0);let ya;if({introducesError:ya,node:_i}=cf(_i,ke,zo),ya)return fo(void 0)}return fo(L.createExpressionWithTypeArguments(_i,Kt(di.typeArguments,ya=>Kc(ke,ya,zo,Fn)||_(ki(ya),ke))));function fo(ya){return ke.enclosingDeclaration=Xr,ya}});if(Nr.length===Nt.length)return Nr}function xa(Nt,Nr,di){var Xr,_i;const fo=(Xr=Nt.declarations)==null?void 0:Xr.find(fi),ya=ke.enclosingDeclaration;ke.enclosingDeclaration=fo||ya;const Qs=Lr(Nt),Zo=Kt(Qs,Ig=>ht(Ig,ke)),Co=kp(gd(Nt)),Xa=ap(Co),Yu=fo&&_4(fo),Zu=Yu&&Us(Yu)||Oi(Jm(Co),v8),H_=fr(Nt),_l=!!((_i=H_.symbol)!=null&&_i.valueDeclaration)&&fi(H_.symbol.valueDeclaration),Ku=_l?sp(H_):U,kf=[...Xe(Xa)?[L.createHeritageClause(96,Kt(Xa,Ig=>qT(Ig,Ku,Nr)))]:[],...Xe(Zu)?[L.createHeritageClause(119,Zu)]:[]],Pu=Syt(Co,Xa,Po(Co)),lp=vr(Pu,Ig=>{const b8=Ig.valueDeclaration;return!!b8&&!(I_(b8)&&Qi(b8.name))}),Ng=Pe(Pu,Ig=>{const b8=Ig.valueDeclaration;return!!b8&&I_(b8)&&Qi(b8.name)})?[L.createPropertyDeclaration(void 0,L.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:Ke,wv=Ys(lp,Ig=>pi(Ig,!1,Xa[0])),Dv=Ys(vr(Po(H_),Ig=>!(Ig.flags&4194304)&&Ig.escapedName!=="prototype"&&!Wi(Ig)),Ig=>pi(Ig,!0,Ku)),jvt=!_l&&!!Nt.valueDeclaration&&lr(Nt.valueDeclaration)&&!Pe(ra(H_,1))?[L.createConstructorDeclaration(L.createModifiersFromModifierFlags(2),[],void 0)]:Sh(1,H_,Ku,176),Bvt=ty(Co,Xa[0]);ke.enclosingDeclaration=ya,oc(ut(L.createClassDeclaration(void 0,Nr,Zo,kf,[...Bvt,...Dv,...jvt,...wv,...Ng]),Nt.declarations&&vr(Nt.declarations,Ig=>ql(Ig)||Su(Ig))[0]),di)}function Ta(Nt){return li(Nt,Nr=>{if(Df(Nr)||h_(Nr))return kr(Nr.propertyName||Nr.name);if(mr(Nr)||Qc(Nr)){const di=Qc(Nr)?Nr.expression:Nr.right;if(Jr(di))return kr(di.name)}if(Y1(Nr)){const di=Ms(Nr);if(di&&Je(di))return kr(di)}})}function Si(Nt,Nr,di){var Xr,_i,fo,ya,Qs,Zo;const Co=pm(Nt);if(!Co)return w.fail();const Xa=po(Sp(Co,!0));if(!Xa)return;let Yu=kP(Xa)&&Ta(Nt.declarations)||Hi(Xa.escapedName);Yu==="export="&&Q&&(Yu="default");const Zu=Sm(Xa,Yu);switch(zo(Xa),Co.kind){case 208:if(((_i=(Xr=Co.parent)==null?void 0:Xr.parent)==null?void 0:_i.kind)===260){const Ku=$n(Xa.parent||Xa,ke),{propertyName:kf}=Co;oc(L.createImportDeclaration(void 0,L.createImportClause(!1,void 0,L.createNamedImports([L.createImportSpecifier(!1,kf&&Je(kf)?L.createIdentifier(kr(kf)):void 0,L.createIdentifier(Nr))])),L.createStringLiteral(Ku),void 0),0);break}w.failBadSyntaxKind(((fo=Co.parent)==null?void 0:fo.parent)||Co,"Unhandled binding element grandparent kind in declaration serialization");break;case 304:((Qs=(ya=Co.parent)==null?void 0:ya.parent)==null?void 0:Qs.kind)===226&&Bs(Hi(Nt.escapedName),Zu);break;case 260:if(Jr(Co.initializer)){const Ku=Co.initializer,kf=L.createUniqueName(Nr),Pu=$n(Xa.parent||Xa,ke);oc(L.createImportEqualsDeclaration(void 0,!1,kf,L.createExternalModuleReference(L.createStringLiteral(Pu))),0),oc(L.createImportEqualsDeclaration(void 0,!1,L.createIdentifier(Nr),L.createQualifiedName(kf,Ku.name)),di);break}case 271:if(Xa.escapedName==="export="&&Pe(Xa.declarations,Ku=>es(Ku)&&wd(Ku))){Ma(Nt);break}const H_=!(Xa.flags&512)&&!Ji(Co);oc(L.createImportEqualsDeclaration(void 0,!1,L.createIdentifier(Nr),H_?gs(Xa,ke,-1,!1):L.createExternalModuleReference(L.createStringLiteral($n(Xa,ke)))),H_?di:0);break;case 270:oc(L.createNamespaceExportDeclaration(kr(Co.name)),0);break;case 273:{const Ku=$n(Xa.parent||Xa,ke),kf=Fn?L.createStringLiteral(Ku):Co.parent.moduleSpecifier;oc(L.createImportDeclaration(void 0,L.createImportClause(!1,L.createIdentifier(Nr),void 0),kf,Co.parent.attributes),0);break}case 274:{const Ku=$n(Xa.parent||Xa,ke),kf=Fn?L.createStringLiteral(Ku):Co.parent.parent.moduleSpecifier;oc(L.createImportDeclaration(void 0,L.createImportClause(!1,void 0,L.createNamespaceImport(L.createIdentifier(Nr))),kf,Co.parent.attributes),0);break}case 280:oc(L.createExportDeclaration(void 0,!1,L.createNamespaceExport(L.createIdentifier(Nr)),L.createStringLiteral($n(Xa,ke))),0);break;case 276:{const Ku=$n(Xa.parent||Xa,ke),kf=Fn?L.createStringLiteral(Ku):Co.parent.parent.parent.moduleSpecifier;oc(L.createImportDeclaration(void 0,L.createImportClause(!1,void 0,L.createNamedImports([L.createImportSpecifier(!1,Nr!==Yu?L.createIdentifier(Yu):void 0,L.createIdentifier(Nr))])),kf,Co.parent.parent.parent.attributes),0);break}case 281:const _l=Co.parent.parent.moduleSpecifier;_l&&((Zo=Co.propertyName)==null?void 0:Zo.escapedText)==="default"&&(Yu="default"),Bs(Hi(Nt.escapedName),_l?Yu:Zu,_l&&vo(_l)?L.createStringLiteral(_l.text):void 0);break;case 277:Ma(Nt);break;case 226:case 211:case 212:Nt.escapedName==="default"||Nt.escapedName==="export="?Ma(Nt):Bs(Nr,Zu);break;default:return w.failBadSyntaxKind(Co,"Unhandled alias declaration kind in symbol serializer!")}}function Bs(Nt,Nr,di){oc(L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,Nt!==Nr?Nr:void 0,Nt)]),di),0)}function Ma(Nt){var Nr;if(Nt.flags&4194304)return!1;const di=Hi(Nt.escapedName),Xr=di==="export=",fo=Xr||di==="default",ya=Nt.declarations&&pm(Nt),Qs=ya&&Sp(ya,!0);if(Qs&&Xe(Qs.declarations)&&Pe(Qs.declarations,Zo=>qn(Zo)===qn(Ei))){const Zo=ya&&(Qc(ya)||mr(ya)?GW(ya):zse(ya)),Co=Zo&&il(Zo)?Lyt(Zo):void 0,Xa=Co&&ic(Co,-1,!0,!0,Ei);(Xa||Qs)&&zo(Xa||Qs);const Yu=ke.tracker.disableTrackSymbol;if(ke.tracker.disableTrackSymbol=!0,fo)Hr.push(L.createExportAssignment(void 0,Xr,Ql(Qs,ke,-1)));else if(Co===Zo&&Co)Bs(di,kr(Co));else if(Zo&&Su(Zo))Bs(di,Sm(Qs,Rc(Qs)));else{const Zu=Xm(di,Nt);oc(L.createImportEqualsDeclaration(void 0,!1,L.createIdentifier(Zu),gs(Qs,ke,-1,!1)),0),Bs(di,Zu)}return ke.tracker.disableTrackSymbol=Yu,!0}else{const Zo=Xm(di,Nt),Co=Cp(fr(po(Nt)));if(Uo(Co,Nt))kn(Co,Nt,Zo,fo?0:32);else{const Xa=((Nr=ke.enclosingDeclaration)==null?void 0:Nr.kind)===267&&(!(Nt.flags&98304)||Nt.flags&65536)?1:2,Yu=L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(Zo,void 0,Oo(ke,Co,Nt,Ei,zo,Fn))],Xa));oc(Yu,Qs&&Qs.flags&4&&Qs.escapedName==="export="?128:di===Zo?32:0)}return fo?(Hr.push(L.createExportAssignment(void 0,Xr,L.createIdentifier(Zo))),!0):di!==Zo?(Bs(di,Zo),!0):!1}}function Uo(Nt,Nr){const di=qn(ke.enclosingDeclaration);return Br(Nt)&48&&!Xe(V_(Nt))&&!bS(Nt)&&!!(Xe(vr(Po(Nt),Wi))||Xe(ra(Nt,0)))&&!Xe(ra(Nt,1))&&!xr(Nr,Ei)&&!(Nt.symbol&&Pe(Nt.symbol.declarations,Xr=>qn(Xr)!==di))&&!Pe(Po(Nt),Xr=>k5(Xr.escapedName))&&!Pe(Po(Nt),Xr=>Pe(Xr.declarations,_i=>qn(_i)!==di))&&Pn(Po(Nt),Xr=>Np(Rc(Xr),ce)?Xr.flags&98304?fv(Xr)===SS(Xr):!0:!1)}function ko(Nt,Nr,di){return function(_i,fo,ya){var Qs,Zo,Co,Xa,Yu;const Zu=nd(_i),H_=!!(Zu&2);if(fo&&_i.flags&2887656)return[];if(_i.flags&4194304||_i.escapedName==="constructor"||ya&&Ea(ya,_i.escapedName)&&Gm(Ea(ya,_i.escapedName))===Gm(_i)&&(_i.flags&16777216)===(Ea(ya,_i.escapedName).flags&16777216)&&X0(fr(_i),He(ya,_i.escapedName)))return[];const _l=Zu&-1025|(fo?256:0),Ku=Mn(_i,ke),kf=(Qs=_i.declarations)==null?void 0:Qs.find(Tm(Zs,d1,Ji,Gf,mr,Jr));if(_i.flags&98304&&di){const Pu=[];if(_i.flags&65536){const lp=_i.declarations&&dt(_i.declarations,Ng=>{if(Ng.kind===178)return Ng;if(ma(Ng)&&ox(Ng))return dt(Ng.arguments[2].properties,wv=>{const Dv=Ms(wv);if(Dv&&Je(Dv)&&kr(Dv)==="set")return wv})});w.assert(!!lp);const _6=Ko(lp)?Vd(lp).parameters[0]:void 0;Pu.push(ut(L.createSetAccessorDeclaration(L.createModifiersFromModifierFlags(_l),Ku,[L.createParameterDeclaration(void 0,void 0,_6?un(_6,Pt(_6),ke):"value",void 0,H_?void 0:Oo(ke,fr(_i),_i,Ei,zo,Fn))],void 0),((Zo=_i.declarations)==null?void 0:Zo.find(my))||kf))}if(_i.flags&32768){const lp=Zu&2;Pu.push(ut(L.createGetAccessorDeclaration(L.createModifiersFromModifierFlags(_l),Ku,[],lp?void 0:Oo(ke,fr(_i),_i,Ei,zo,Fn),void 0),((Co=_i.declarations)==null?void 0:Co.find(g1))||kf))}return Pu}else if(_i.flags&98311)return ut(Nt(L.createModifiersFromModifierFlags((Gm(_i)?8:0)|_l),Ku,_i.flags&16777216?L.createToken(58):void 0,H_?void 0:Oo(ke,SS(_i),_i,Ei,zo,Fn),void 0),((Xa=_i.declarations)==null?void 0:Xa.find(Tm(Zs,Ji)))||kf);if(_i.flags&8208){const Pu=fr(_i),lp=ra(Pu,0);if(_l&2)return ut(Nt(L.createModifiersFromModifierFlags((Gm(_i)?8:0)|_l),Ku,_i.flags&16777216?L.createToken(58):void 0,void 0,void 0),((Yu=_i.declarations)==null?void 0:Yu.find(Ko))||lp[0]&&lp[0].declaration||_i.declarations&&_i.declarations[0]);const _6=[];for(const Ng of lp){const wv=be(Ng,Nr,ke,{name:Ku,questionToken:_i.flags&16777216?L.createToken(58):void 0,modifiers:_l?L.createModifiersFromModifierFlags(_l):void 0}),Dv=Ng.declaration&&GA(Ng.declaration.parent)?Ng.declaration.parent:Ng.declaration;_6.push(ut(wv,Dv))}return _6}return w.fail(`Unhandled class member kind! ${_i.__debugFlags||_i.flags}`)}}function Yl(Nt,Nr){return Ci(Nt,!1,Nr)}function Sh(Nt,Nr,di,Xr){const _i=ra(Nr,Nt);if(Nt===1){if(!di&&Pn(_i,Qs=>Xe(Qs.parameters)===0))return[];if(di){const Qs=ra(di,1);if(!Xe(Qs)&&Pn(_i,Zo=>Xe(Zo.parameters)===0))return[];if(Qs.length===_i.length){let Zo=!1;for(let Co=0;Co_(_i,ke)),Xr=Ql(Nt.target.symbol,ke,788968)):Nt.symbol&&an(Nt.symbol,Ei,Nr)&&(Xr=Ql(Nt.symbol,ke,788968)),Xr)return L.createExpressionWithTypeArguments(Xr,di)}function v8(Nt){const Nr=HT(Nt,788968);if(Nr)return Nr;if(Nt.symbol)return L.createExpressionWithTypeArguments(Ql(Nt.symbol,ke,788968),void 0)}function Xm(Nt,Nr){var di,Xr;const _i=Nr?Ia(Nr):void 0;if(_i&&ke.remappedSymbolNames.has(_i))return ke.remappedSymbolNames.get(_i);Nr&&(Nt=u6(Nr,Nt));let fo=0;const ya=Nt;for(;(di=ke.usedSymbolNames)!=null&&di.has(Nt);)fo++,Nt=`${ya}_${fo}`;return(Xr=ke.usedSymbolNames)==null||Xr.add(Nt),_i&&ke.remappedSymbolNames.set(_i,Nt),Nt}function u6(Nt,Nr){if(Nr==="default"||Nr==="__class"||Nr==="__function"){const di=ke.flags;ke.flags|=16777216;const Xr=j2(Nt,ke);ke.flags=di,Nr=Xr.length>0&&JA(Xr.charCodeAt(0))?Nd(Xr):Xr}return Nr==="default"?Nr="_default":Nr==="export="&&(Nr="_exports"),Nr=Np(Nr,ce)&&!kk(Nr)?Nr:"_"+Nr.replace(/[^a-zA-Z0-9]/g,"_"),Nr}function Sm(Nt,Nr){const di=Ia(Nt);return ke.remappedSymbolNames.has(di)?ke.remappedSymbolNames.get(di):(Nr=u6(Nt,Nr),ke.remappedSymbolNames.set(di,Nr),Nr)}}}function fh(n,a,l=16384,_){return _?m(_).getText():xP(m);function m(h){const k=L.createTypePredicateNode(n.kind===2||n.kind===3?L.createToken(131):void 0,n.kind===1||n.kind===3?L.createIdentifier(n.parameterName):L.createThisTypeNode(),n.type&&Tt.typeToTypeNode(n.type,a,vT(l)|70221824|512)),O=$b(),j=a&&qn(a);return O.writeNode(4,k,j,h),h}}function iE(n){const a=[];let l=0;for(let _=0;_Ms(k)?k:void 0);const h=m&&Ms(m);if(m&&h){if(ma(m)&&ox(m))return Rc(n);if(co(h)&&!(Uc(n)&4096)){const k=Zi(n).nameType;if(k&&k.flags&384){const O=S5(n,a);if(O!==void 0)return O}}return Bo(h)}if(m||(m=n.declarations[0]),m.parent&&m.parent.kind===260)return Bo(m.parent.name);switch(m.kind){case 231:case 218:case 219:return a&&!a.encounteredError&&!(a.flags&131072)&&(a.encounteredError=!0),m.kind===231?"(Anonymous class)":"(Anonymous function)"}}const _=S5(n,a);return _!==void 0?_:Rc(n)}function jm(n){if(n){const l=ei(n);return l.isVisible===void 0&&(l.isVisible=!!a()),l.isVisible}return!1;function a(){switch(n.kind){case 345:case 353:case 347:return!!(n.parent&&n.parent.parent&&n.parent.parent.parent&&es(n.parent.parent.parent));case 208:return jm(n.parent.parent);case 260:if(ca(n.name)&&!n.name.elements.length)return!1;case 267:case 263:case 264:case 265:case 262:case 266:case 271:if(db(n))return!0;const l=Y(n);return!(wne(n)&32)&&!(n.kind!==271&&l.kind!==312&&l.flags&33554432)?oh(l):jm(l);case 172:case 171:case 177:case 178:case 174:case 173:if(qf(n,6))return!1;case 176:case 180:case 179:case 181:case 169:case 268:case 184:case 185:case 187:case 183:case 188:case 189:case 192:case 193:case 196:case 202:return jm(n.parent);case 273:case 274:case 276:return!1;case 168:case 312:case 270:return!0;case 277:return!1;default:return!1}}}function BD(n,a){let l;n.parent&&n.parent.kind===277?l=Lc(n,n.escapedText,2998271,void 0,n,!1):n.parent.kind===281&&(l=I2(n.parent,2998271));let _,m;return l&&(m=new Set,m.add(Ia(l)),h(l.declarations)),_;function h(k){dt(k,O=>{const j=sT(O)||O;if(a?ei(O).isVisible=!0:(_=_||[],Jf(_,j)),r4(O)){const W=O.moduleReference,re=yp(W),be=Lc(O,re.escapedText,901119,void 0,void 0,!1);be&&m&&Na(m,Ia(be))&&h(be.declarations)}})}}function ph(n,a){const l=YC(n,a);if(l>=0){const{length:_}=Mu;for(let m=l;m<_;m++)I0[m]=!1;return!1}return Mu.push(n),I0.push(!0),T2.push(a),!0}function YC(n,a){for(let l=Mu.length-1;l>=AC;l--){if(x5(Mu[l],T2[l]))return-1;if(Mu[l]===n&&T2[l]===a)return l}return-1}function x5(n,a){switch(a){case 0:return!!Zi(n).type;case 5:return!!ei(n).resolvedEnumType;case 2:return!!Zi(n).declaredType;case 1:return!!n.resolvedBaseConstructorType;case 3:return!!n.resolvedReturnType;case 4:return!!n.immediateBaseConstraint;case 6:return!!n.resolvedTypeArguments;case 7:return!!n.baseTypesResolved;case 8:return!!Zi(n).writeType;case 9:return ei(n).parameterInitializerContainsUndefined!==void 0}return w.assertNever(a)}function Tg(){return Mu.pop(),T2.pop(),I0.pop()}function Y(n){return Vn(rg(n),a=>{switch(a.kind){case 260:case 261:case 276:case 275:case 274:case 273:return!1;default:return!0}}).parent}function Ce(n){const a=fc(rf(n));return a.typeParameters?Gy(a,Kt(a.typeParameters,l=>U)):a}function He(n,a){const l=Ea(n,a);return l?fr(l):void 0}function Ct(n,a){var l;let _;return He(n,a)||(_=(l=e6(n,a))==null?void 0:l.type)&&Mf(_,!0,!0)}function Dt(n){return n&&(n.flags&1)!==0}function Gt(n){return n===mt||!!(n.flags&1&&n.aliasSymbol)}function zr(n,a){if(a!==0)return ST(n,!1,a);const l=Pr(n);return l&&Zi(l).type||ST(n,!1,a)}function Ui(n,a,l){if(n=Dl(n,j=>!(j.flags&98304)),n.flags&131072)return Ja;if(n.flags&1048576)return kc(n,j=>Ui(j,a,l));let _=ti(Kt(a,Xy));const m=[],h=[];for(const j of Po(n)){const W=gE(j,8576);!wa(W,_)&&!(nd(j)&6)&&ete(j)?m.push(j):h.push(W)}if(AT(n)||NT(_)){if(h.length&&(_=ti([_,...h])),_.flags&131072)return n;const j=Vut();return j?dE(j,[n,_]):mt}const k=ha();for(const j of m)k.set(j.escapedName,oye(j,!1));const O=qo(l,k,Ke,Ke,V_(n));return O.objectFlags|=4194304,O}function Ii(n){return!!(n.flags&465829888)&&Hc(l_(n)||mn,32768)}function gi(n){const a=vm(n,Ii)?kc(n,l=>l.flags&465829888?H0(l):l):n;return Hd(a,524288)}function Ki(n,a){const l=xo(n);return l?Ev(l,a):a}function xo(n){const a=Jo(n);if(a&&YA(a)&&a.flowNode){const l=lo(n);if(l){const _=ut(eh.createStringLiteral(l),n),m=Pf(a)?a:eh.createParenthesizedExpression(a),h=ut(eh.createElementAccessExpression(m,_),n);return eo(_,h),eo(h,n),m!==a&&eo(m,h),h.flowNode=a.flowNode,h}}}function Jo(n){const a=n.parent.parent;switch(a.kind){case 208:case 303:return xo(a);case 209:return xo(n.parent);case 260:return a.initializer;case 226:return a.right}}function lo(n){const a=n.parent;return n.kind===208&&a.kind===206?md(n.propertyName||n.name):n.kind===303||n.kind===304?md(n.name):""+a.elements.indexOf(n)}function md(n){const a=Xy(n);return a.flags&384?""+a.value:void 0}function kg(n){const a=n.dotDotDotToken?32:0,l=zr(n.parent.parent,a);return l&&t0(n,l,!1)}function t0(n,a,l){if(Dt(a))return a;const _=n.parent;X&&n.flags&33554432&&xb(n)?a=Z0(a):X&&_.parent.initializer&&!qd(qOe(_.parent.initializer),65536)&&(a=Hd(a,524288));let m;if(_.kind===206)if(n.dotDotDotToken){if(a=Vm(a),a.flags&2||!XJ(a))return We(n,p.Rest_types_may_only_be_created_from_object_types),mt;const h=[];for(const k of _.elements)k.dotDotDotToken||h.push(k.propertyName||k.name);m=Ui(a,h,n.symbol)}else{const h=n.propertyName||n.name,k=Xy(h),O=op(a,k,32,h);m=Ki(n,O)}else{const h=Ky(65|(n.dotDotDotToken?0:128),a,Fe,_),k=_.elements.indexOf(n);if(n.dotDotDotToken){const O=kc(a,j=>j.flags&58982400?H0(j):j);m=Rf(O,Ga)?kc(O,j=>QD(j,k)):u_(h)}else if(Yy(a)){const O=Wm(k),j=32|(l||o8(n)?16:0),W=yv(a,O,j,n.name)||mt;m=Ki(n,W)}else m=h}return n.initializer?zu(j6(n))?X&&!qd(l8(n,0),16777216)?gi(m):m:sne(n,ti([gi(m),l8(n,0)],2)):m}function z0(n){const a=Hv(n);if(a)return ki(a)}function U0(n){const a=Eo(n,!0);return a.kind===106||a.kind===80&&ym(a)===ze}function cv(n){const a=Eo(n,!0);return a.kind===209&&a.elements.length===0}function Mf(n,a=!1,l=!0){return X&&l?kv(n,a):n}function ST(n,a,l){if(Ji(n)&&n.parent.parent.kind===249){const k=Cg(S1e(ms(n.parent.parent.expression,l)));return k.flags&4456448?w5e(k):Ie}if(Ji(n)&&n.parent.parent.kind===250){const k=n.parent.parent;return Sz(k)||U}if(ca(n.parent))return kg(n);const _=Zs(n)&&!ig(n)||Gf(n)||qoe(n),m=a&&lw(n),h=as(n);if(hW(n))return h?Dt(h)||h===mn?h:mt:ye?mn:U;if(h)return Mf(h,_,m);if((fe||lr(n))&&Ji(n)&&!ca(n.name)&&!(wne(n)&32)&&!(n.flags&33554432)){if(!(RS(n)&6)&&(!n.initializer||U0(n.initializer)))return it;if(n.initializer&&cv(n.initializer))return du}if(ws(n)){const k=n.parent;if(k.kind===178&&uE(k)){const W=Cc(Pr(n.parent),177);if(W){const re=Vd(W),be=Ave(k);return be&&n===be?(w.assert(!be.type),fr(re.thisParameter)):To(re)}}const O=mut(k,n);if(O)return O;const j=n.symbol.escapedName==="this"?dFe(k):mFe(n);if(j)return Mf(j,!1,m)}if(ex(n)&&n.initializer){if(lr(n)&&!ws(n)){const O=Za(n,Pr(n),UA(n));if(O)return O}const k=sne(n,l8(n,l));return Mf(k,_,m)}if(Zs(n)&&(fe||lr(n)))if(Fl(n)){const k=vr(n.parent.members,Vc),O=k.length?V0(n.symbol,k):M_(n)&128?pte(n.symbol):void 0;return O&&Mf(O,!0,m)}else{const k=B0(n.parent),O=k?lv(n.symbol,k):M_(n)&128?pte(n.symbol):void 0;return O&&Mf(O,!0,m)}if(_g(n))return Un;if(ca(n.name))return A(n.name,!1,!0)}function sE(n){if(n.valueDeclaration&&mr(n.valueDeclaration)){const a=Zi(n);return a.isConstructorDeclaredProperty===void 0&&(a.isConstructorDeclaredProperty=!1,a.isConstructorDeclaredProperty=!!zD(n)&&Pn(n.declarations,l=>mr(l)&&jte(l)&&(l.left.kind!==212||Ip(l.left.argumentExpression))&&!wl(void 0,l,n,l))),a.isConstructorDeclaredProperty}return!1}function JD(n){const a=n.valueDeclaration;return a&&Zs(a)&&!zu(a)&&!a.initializer&&(fe||lr(a))}function zD(n){if(n.declarations)for(const a of n.declarations){const l=_f(a,!1,!1);if(l&&(l.kind===176||Dg(l)))return l}}function B2(n){const a=qn(n.declarations[0]),l=Hi(n.escapedName),_=n.declarations.every(h=>lr(h)&&$o(h)&&Fh(h.expression)),m=_?L.createPropertyAccessExpression(L.createPropertyAccessExpression(L.createIdentifier("module"),L.createIdentifier("exports")),l):L.createPropertyAccessExpression(L.createIdentifier("exports"),l);return _&&eo(m.expression.expression,m.expression),eo(m.expression,m),eo(m,a),m.flowNode=a.endFlowNode,Ev(m,it,Fe)}function V0(n,a){const l=fs(n.escapedName,"__#")?L.createPrivateIdentifier(n.escapedName.split("@")[1]):Hi(n.escapedName);for(const _ of a){const m=L.createPropertyAccessExpression(L.createThis(),l);eo(m.expression,m),eo(m,_),m.flowNode=_.returnFlowNode;const h=aE(m,n);if(fe&&(h===it||h===du)&&We(n.valueDeclaration,p.Member_0_implicitly_has_an_1_type,Ti(n),Hn(h)),!Rf(h,KJ))return oO(h)}}function lv(n,a){const l=fs(n.escapedName,"__#")?L.createPrivateIdentifier(n.escapedName.split("@")[1]):Hi(n.escapedName),_=L.createPropertyAccessExpression(L.createThis(),l);eo(_.expression,_),eo(_,a),_.flowNode=a.returnFlowNode;const m=aE(_,n);return fe&&(m===it||m===du)&&We(n.valueDeclaration,p.Member_0_implicitly_has_an_1_type,Ti(n),Hn(m)),Rf(m,KJ)?void 0:oO(m)}function aE(n,a){const l=(a==null?void 0:a.valueDeclaration)&&(!JD(a)||M_(a.valueDeclaration)&128)&&pte(a)||Fe;return Ev(n,it,l)}function Tp(n,a){const l=vk(n.valueDeclaration);if(l){const O=lr(l)?qv(l):void 0;return O&&O.typeExpression?ki(O.typeExpression):n.valueDeclaration&&Za(n.valueDeclaration,n,l)||DS(Sl(l))}let _,m=!1,h=!1;if(sE(n)&&(_=lv(n,zD(n))),!_){let O;if(n.declarations){let j;for(const W of n.declarations){const re=mr(W)||ma(W)?W:$o(W)?mr(W.parent)?W.parent:W:void 0;if(!re)continue;const be=$o(re)?HA(re):rl(re);(be===4||mr(re)&&jte(re,be))&&(UD(re)?m=!0:h=!0),ma(re)||(j=wl(j,re,n,W)),j||(O||(O=[])).push(mr(re)||ma(re)?J2(n,a,re,be):Wr)}_=j}if(!_){if(!Xe(O))return mt;let j=m&&n.declarations?uv(O,n.declarations):void 0;if(h){const re=pte(n);re&&((j||(j=[])).push(re),m=!0)}const W=Pe(j,re=>!!(re.flags&-98305))?j:O;_=ti(W)}}const k=Cp(Mf(_,!1,h&&!m));return n.valueDeclaration&&lr(n.valueDeclaration)&&Dl(k,O=>!!(O.flags&-98305))===Wr?(Y2(n.valueDeclaration,U),U):k}function Za(n,a,l){var _,m;if(!lr(n)||!l||!Va(l)||l.properties.length)return;const h=ha();for(;mr(n)||Jr(n);){const j=Hp(n);(_=j==null?void 0:j.exports)!=null&&_.size&&Mm(h,j.exports),n=mr(n)?n.parent:n.parent.parent}const k=Hp(n);(m=k==null?void 0:k.exports)!=null&&m.size&&Mm(h,k.exports);const O=qo(a,h,Ke,Ke,Ke);return O.objectFlags|=4096,O}function wl(n,a,l,_){var m;const h=zu(a.parent);if(h){const k=Cp(ki(h));if(n)!Gt(n)&&!Gt(k)&&!X0(n,k)&&vLe(void 0,n,_,k);else return k}if((m=l.parent)!=null&&m.valueDeclaration){const k=mS(l.parent);if(k.valueDeclaration){const O=zu(k.valueDeclaration);if(O){const j=Ea(ki(O),l.escapedName);if(j)return fv(j)}}}return n}function J2(n,a,l,_){if(ma(l)){if(a)return fr(a);const k=Sl(l.arguments[2]),O=He(k,"value");if(O)return O;const j=He(k,"get");if(j){const re=UT(j);if(re)return To(re)}const W=He(k,"set");if(W){const re=UT(W);if(re)return U1e(re)}return U}if(ZC(l.left,l.right))return U;const m=_===1&&(Jr(l.left)||uc(l.left))&&(Fh(l.left.expression)||Je(l.left.expression)&&ax(l.left.expression)),h=a?fr(a):m?q_(Sl(l.right)):DS(Sl(l.right));if(h.flags&524288&&_===2&&n.escapedName==="export="){const k=Um(h),O=ha();OF(k.members,O);const j=O.size;a&&!a.exports&&(a.exports=ha()),(a||n).exports.forEach((re,be)=>{var he;const qe=O.get(be);if(qe&&qe!==re&&!(re.flags&2097152))if(re.flags&111551&&qe.flags&111551){if(re.valueDeclaration&&qe.valueDeclaration&&qn(re.valueDeclaration)!==qn(qe.valueDeclaration)){const Pt=Hi(re.escapedName),on=((he=si(qe.valueDeclaration,I_))==null?void 0:he.name)||qe.valueDeclaration;Ua(We(re.valueDeclaration,p.Duplicate_identifier_0,Pt),Rr(on,p._0_was_also_declared_here,Pt)),Ua(We(on,p.Duplicate_identifier_0,Pt),Rr(re.valueDeclaration,p._0_was_also_declared_here,Pt))}const ht=ro(re.flags|qe.flags,be);ht.links.type=ti([fr(re),fr(qe)]),ht.valueDeclaration=qe.valueDeclaration,ht.declarations=zn(qe.declarations,re.declarations),O.set(be,ht)}else O.set(be,Jd(re,qe));else O.set(be,re)});const W=qo(j!==O.size?void 0:k.symbol,O,k.callSignatures,k.constructSignatures,k.indexInfos);if(j===O.size&&(h.aliasSymbol&&(W.aliasSymbol=h.aliasSymbol,W.aliasTypeArguments=h.aliasTypeArguments),Br(h)&4)){W.aliasSymbol=h.symbol;const re=ac(h);W.aliasTypeArguments=Xe(re)?re:void 0}return W.objectFlags|=Br(h)&4096,W.symbol&&W.symbol.flags&32&&h===gd(W.symbol)&&(W.objectFlags|=16777216),W}return mte(h)?(Y2(l,vl),vl):h}function ZC(n,a){return Jr(n)&&n.expression.kind===110&&Ow(a,l=>Gu(n,l))}function UD(n){const a=_f(n,!1,!1);return a.kind===176||a.kind===262||a.kind===218&&!GA(a.parent)}function uv(n,a){return w.assert(n.length===a.length),n.filter((l,_)=>{const m=a[_],h=mr(m)?m:mr(m.parent)?m.parent:void 0;return h&&UD(h)})}function VD(n,a,l){if(n.initializer){const _=ca(n.name)?A(n.name,!0,!1):mn;return Mf(sne(n,l8(n,l?0:1,_)))}return ca(n.name)?A(n.name,a,l):(l&&!Sr(n)&&Y2(n,U),a?vn:U)}function ar(n,a,l){const _=ha();let m,h=131200;dt(n.elements,O=>{const j=O.propertyName||O.name;if(O.dotDotDotToken){m=hh(Ie,U,!1);return}const W=Xy(j);if(!Od(W)){h|=512;return}const re=Fd(W),be=4|(O.initializer?16777216:0),he=ro(be,re);he.links.type=VD(O,a,l),he.links.bindingElement=O,_.set(he.escapedName,he)});const k=qo(void 0,_,Ke,Ke,m?[m]:Ke);return k.objectFlags|=h,a&&(k.pattern=n,k.objectFlags|=131072),k}function b(n,a,l){const _=n.elements,m=pc(_),h=m&&m.kind===208&&m.dotDotDotToken?m:void 0;if(_.length===0||_.length===1&&h)return ce>=2?f5e(U):vl;const k=Kt(_,re=>uu(re)?U:VD(re,a,l)),O=lf(_,re=>!(re===h||uu(re)||o8(re)),_.length-1)+1,j=Kt(_,(re,be)=>re===h?4:be>=O?2:1);let W=yh(k,j);return a&&(W=GIe(W),W.pattern=n,W.objectFlags|=131072),W}function A(n,a=!1,l=!1){return n.kind===206?ar(n,a,l):b(n,a,l)}function B(n,a){return $t(ST(n,!0,0),n,a)}function ue(n){const a=ei(n);if(!a.resolvedType){const l=ro(4096,"__importAttributes"),_=ha();dt(n.elements,h=>{const k=ro(4,iL(h));k.parent=l,k.links.type=Myt(h),k.links.target=k,_.set(k.escapedName,k)});const m=qo(l,_,Ke,Ke,Ke);m.objectFlags|=262272,a.resolvedType=m}return a.resolvedType}function Qe(n){const a=Hp(n),l=Nut(!1);return l&&a&&a===l}function $t(n,a,l){return n?(n.flags&4096&&Qe(a.parent)&&(n=cye(a)),l&&Tte(a,n),n.flags&8192&&(oo(a)||!a.type)&&n.symbol!==Pr(a)&&(n=wi),Cp(n)):(n=ws(a)&&a.dotDotDotToken?vl:U,l&&(Sr(a)||Y2(a,n)),n)}function Sr(n){const a=rg(n),l=a.kind===169?a.parent:a;return gz(l)}function as(n){const a=zu(n);if(a)return ki(a)}function sc(n){let a=n.valueDeclaration;return a?(oo(a)&&(a=j6(a)),ws(a)?ate(a.parent):!1):!1}function Bm(n,a){const l=Zi(n);if(!l.type){const _=_v(n,a);return!l.type&&!sc(n)&&!a&&(l.type=_),_}return l.type}function _v(n,a){if(n.flags&4194304)return Ce(n);if(n===yt)return U;if(n.flags&134217728&&n.valueDeclaration){const m=Pr(qn(n.valueDeclaration)),h=ro(m.flags,"exports");h.declarations=m.declarations?m.declarations.slice():[],h.parent=n,h.links.target=m,m.valueDeclaration&&(h.valueDeclaration=m.valueDeclaration),m.members&&(h.members=new Map(m.members)),m.exports&&(h.exports=new Map(m.exports));const k=ha();return k.set("exports",h),qo(n,k,Ke,Ke,Ke)}w.assertIsDefined(n.valueDeclaration);const l=n.valueDeclaration;if(es(l)&&wd(l))return l.statements.length?Cp(DS(ms(l.statements[0].expression))):Ja;if(d1(l))return U2(n);if(!ph(n,0))return n.flags&512&&!(n.flags&67108864)?WD(n):oo(l)&&a===1?mt:oE(n);let _;if(l.kind===277)_=$t(as(l)||Sl(l.expression),l);else if(mr(l)||lr(l)&&(ma(l)||(Jr(l)||l9(l))&&mr(l.parent)))_=Tp(n);else if(Jr(l)||uc(l)||Je(l)||vo(l)||Hf(l)||ql(l)||Wl(l)||ul(l)&&!tm(l)||Xg(l)||es(l)){if(n.flags&9136)return WD(n);_=mr(l.parent)?Tp(n):as(l)||U}else if(Ml(l))_=as(l)||q9e(l);else if(_g(l))_=as(l)||PFe(l);else if(Af(l))_=as(l)||_8(l.name,0);else if(tm(l))_=as(l)||H9e(l,0);else if(ws(l)||Zs(l)||Gf(l)||Ji(l)||oo(l)||gP(l))_=B(l,!0);else if(a2(l))_=WD(n);else if(zb(l))_=Oee(n);else return w.fail("Unhandled declaration kind! "+w.formatSyntaxKind(l.kind)+" for "+w.formatSymbol(n));return Tg()?_:n.flags&512&&!(n.flags&67108864)?WD(n):oo(l)&&a===1?_:oE(n)}function hm(n){if(n)switch(n.kind){case 177:return Id(n);case 178:return Yse(n);case 172:return w.assert(ig(n)),zu(n)}}function z2(n){const a=hm(n);return a&&ki(a)}function Nee(n){const a=Ave(n);return a&&a.symbol}function a0e(n){return H2(Vd(n))}function U2(n){const a=Zi(n);if(!a.type){if(!ph(n,0))return mt;const l=Cc(n,177),_=Cc(n,178),m=si(Cc(n,172),uf);let h=l&&lr(l)&&z0(l)||z2(l)||z2(_)||z2(m)||l&&l.body&&nne(l)||m&&m.initializer&&B(m,!0);h||(_&&!gz(_)?Ru(fe,_,p.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Ti(n)):l&&!gz(l)?Ru(fe,l,p.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Ti(n)):m&&!gz(m)&&Ru(fe,m,p.Member_0_implicitly_has_an_1_type,Ti(n),"any"),h=U),Tg()||(hm(l)?We(l,p._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ti(n)):hm(_)||hm(m)?We(_,p._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ti(n)):l&&fe&&We(l,p._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,Ti(n)),h=U),a.type=h}return a.type}function aJ(n){const a=Zi(n);if(!a.writeType){if(!ph(n,8))return mt;const l=Cc(n,178)??si(Cc(n,172),uf);let _=z2(l);Tg()||(hm(l)&&We(l,p._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ti(n)),_=U),a.writeType=_||U2(n)}return a.writeType}function Iee(n){const a=sp(gd(n));return a.flags&8650752?a:a.flags&2097152?Cn(a.types,l=>!!(l.flags&8650752)):void 0}function WD(n){let a=Zi(n);const l=a;if(!a.type){const _=n.valueDeclaration&&ene(n.valueDeclaration,!1);if(_){const m=M1e(n,_);m&&(n=m,a=m.links)}l.type=a.type=oJ(n)}return a.type}function oJ(n){const a=n.valueDeclaration;if(n.flags&1536&&kP(n))return U;if(a&&(a.kind===226||$o(a)&&a.parent.kind===226))return Tp(n);if(n.flags&512&&a&&es(a)&&a.commonJsModuleIndicator){const _=rp(n);if(_!==n){if(!ph(n,0))return mt;const m=po(n.exports.get("export=")),h=Tp(m,m===_?void 0:_);return Tg()?h:oE(n)}}const l=pd(16,n);if(n.flags&32){const _=Iee(n);return _?Pa([l,_]):l}else return X&&n.flags&16777216?kv(l,!0):l}function Oee(n){const a=Zi(n);return a.type||(a.type=fIe(n))}function Fee(n){const a=Zi(n);if(!a.type){if(!ph(n,0))return mt;const l=iu(n),_=n.declarations&&Sp(pm(n),!0),m=li(_==null?void 0:_.declarations,h=>Qc(h)?as(h):void 0);if(a.type=_!=null&&_.declarations&&vne(_.declarations)&&n.declarations.length?B2(_):vne(n.declarations)?it:m||(Hu(l)&111551?fr(l):mt),!Tg())return oE(_??n),a.type=mt}return a.type}function o0e(n){const a=Zi(n);return a.type||(a.type=_s(fr(a.target),a.mapper))}function c0e(n){const a=Zi(n);return a.writeType||(a.writeType=_s(SS(a.target),a.mapper))}function oE(n){const a=n.valueDeclaration;if(a){if(zu(a))return We(n.valueDeclaration,p._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ti(n)),mt;fe&&(a.kind!==169||a.initializer)&&We(n.valueDeclaration,p._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Ti(n))}else if(n.flags&2097152){const l=pm(n);l&&We(l,p.Circular_definition_of_import_alias_0,Ti(n))}return U}function Lee(n){const a=Zi(n);return a.type||(w.assertIsDefined(a.deferralParent),w.assertIsDefined(a.deferralConstituents),a.type=a.deferralParent.flags&1048576?ti(a.deferralConstituents):Pa(a.deferralConstituents)),a.type}function cJ(n){const a=Zi(n);return!a.writeType&&a.deferralWriteConstituents&&(w.assertIsDefined(a.deferralParent),w.assertIsDefined(a.deferralConstituents),a.writeType=a.deferralParent.flags&1048576?ti(a.deferralWriteConstituents):Pa(a.deferralWriteConstituents)),a.writeType}function SS(n){const a=Uc(n);return n.flags&4?a&2?a&65536?cJ(n)||Lee(n):n.links.writeType||n.links.type:Cv(fr(n),!!(n.flags&16777216)):n.flags&98304?a&1?c0e(n):aJ(n):fr(n)}function fr(n,a){const l=Uc(n);return l&65536?Lee(n):l&1?o0e(n):l&262144?Qlt(n):l&8192?upt(n):n.flags&7?Bm(n,a):n.flags&9136?WD(n):n.flags&8?Oee(n):n.flags&98304?U2(n):n.flags&2097152?Fee(n):mt}function fv(n){return Cv(fr(n),!!(n.flags&16777216))}function pv(n,a){return n!==void 0&&a!==void 0&&(Br(n)&4)!==0&&n.target===a}function qy(n){return Br(n)&4?n.target:n}function cE(n,a){return l(n);function l(_){if(Br(_)&7){const m=qy(_);return m===a||Pe(ap(m),l)}else if(_.flags&2097152)return Pe(_.types,l);return!1}}function V2(n,a){for(const l of a)n=w_(n,xT(Pr(l)));return n}function Nn(n,a){for(;;){if(n=n.parent,n&&mr(n)){const l=rl(n);if(l===6||l===3){const _=Pr(n.left);_&&_.parent&&!Vn(_.parent.valueDeclaration,m=>n===m)&&(n=_.parent.valueDeclaration)}}if(!n)return;switch(n.kind){case 263:case 231:case 264:case 179:case 180:case 173:case 184:case 185:case 324:case 262:case 174:case 218:case 219:case 265:case 352:case 353:case 347:case 345:case 200:case 194:{const _=Nn(n,a);if(n.kind===200)return gn(_,xT(Pr(n.typeParameter)));if(n.kind===194)return zn(_,B5e(n));const m=V2(_,f1(n)),h=a&&(n.kind===263||n.kind===231||n.kind===264||Dg(n))&&gd(Pr(n)).thisType;return h?gn(m,h):m}case 348:const l=KA(n);l&&(n=l.valueDeclaration);break;case 327:{const _=Nn(n,a);return n.tags?V2(_,Ys(n.tags,m=>Rd(m)?m.typeParameters:void 0)):_}}}}function Vr(n){var a;const l=n.flags&32||n.flags&16?n.valueDeclaration:(a=n.declarations)==null?void 0:a.find(_=>{if(_.kind===264)return!0;if(_.kind!==260)return!1;const m=_.initializer;return!!m&&(m.kind===218||m.kind===219)});return w.assert(!!l,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),Nn(l)}function Lr(n){if(!n.declarations)return;let a;for(const l of n.declarations)(l.kind===264||l.kind===263||l.kind===231||Dg(l)||QA(l))&&(a=V2(a,f1(l)));return a}function Vi(n){return zn(Vr(n),Lr(n))}function Ri(n){const a=ra(n,1);if(a.length===1){const l=a[0];if(!l.typeParameters&&l.parameters.length===1&&v_(l)){const _=oz(l.parameters[0]);return Dt(_)||MJ(_)===U}}return!1}function mo(n){if(ra(n,1).length>0)return!0;if(n.flags&8650752){const a=l_(n);return!!a&&Ri(a)}return!1}function Mo(n){const a=v0(n.symbol);return a&&tg(a)}function k_(n,a,l){const _=Xe(a),m=lr(l);return vr(ra(n,1),h=>(m||_>=gh(h.typeParameters))&&_<=Xe(h.typeParameters))}function dh(n,a,l){const _=k_(n,a,l),m=Kt(a,ki);return Dc(_,h=>Pe(h.typeParameters)?w5(h,m,lr(l)):h)}function sp(n){if(!n.resolvedBaseConstructorType){const a=v0(n.symbol),l=a&&tg(a),_=Mo(n);if(!_)return n.resolvedBaseConstructorType=Fe;if(!ph(n,1))return mt;const m=ms(_.expression);if(l&&_!==l&&(w.assert(!l.typeArguments),ms(l.expression)),m.flags&2621440&&Um(m),!Tg())return We(n.symbol.valueDeclaration,p._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Ti(n.symbol)),n.resolvedBaseConstructorType=mt;if(!(m.flags&1)&&m!==Be&&!mo(m)){const h=We(_.expression,p.Type_0_is_not_a_constructor_function_type,Hn(m));if(m.flags&262144){const k=GD(m);let O=mn;if(k){const j=ra(k,1);j[0]&&(O=To(j[0]))}m.symbol.declarations&&Ua(h,Rr(m.symbol.declarations[0],p.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,Ti(m.symbol),Hn(O)))}return n.resolvedBaseConstructorType=mt}n.resolvedBaseConstructorType=m}return n.resolvedBaseConstructorType}function Jm(n){let a=Ke;if(n.symbol.declarations)for(const l of n.symbol.declarations){const _=_4(l);if(_)for(const m of _){const h=ki(m);Gt(h)||(a===Ke?a=[h]:a.push(h))}}return a}function W0(n,a){We(n,p.Type_0_recursively_references_itself_as_a_base_type,Hn(a,void 0,2))}function ap(n){if(!n.baseTypesResolved){if(ph(n,7)&&(n.objectFlags&8?n.resolvedBaseTypes=[lE(n)]:n.symbol.flags&96?(n.symbol.flags&32&&T5(n),n.symbol.flags&64&&Clt(n)):w.fail("type must be class or interface"),!Tg()&&n.symbol.declarations))for(const a of n.symbol.declarations)(a.kind===263||a.kind===264)&&W0(a,n);n.baseTypesResolved=!0}return n.resolvedBaseTypes}function lE(n){const a=Dc(n.typeParameters,(l,_)=>n.elementFlags[_]&8?op(l,xt):l);return u_(ti(a||Ke),n.readonly)}function T5(n){n.resolvedBaseTypes=sL;const a=of(sp(n));if(!(a.flags&2621441))return n.resolvedBaseTypes=Ke;const l=Mo(n);let _;const m=a.symbol?fc(a.symbol):void 0;if(a.symbol&&a.symbol.flags&32&&klt(m))_=$Ie(l,a.symbol);else if(a.flags&1)_=a;else{const k=dh(a,l.typeArguments,l);if(!k.length)return We(l.expression,p.No_base_constructor_has_the_specified_number_of_type_arguments),n.resolvedBaseTypes=Ke;_=To(k[0])}if(Gt(_))return n.resolvedBaseTypes=Ke;const h=Vm(_);if(!lJ(h)){const k=x0e(void 0,_),O=Hs(k,p.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Hn(h));return _o.add(m0(qn(l.expression),l.expression,O)),n.resolvedBaseTypes=Ke}return n===h||cE(h,n)?(We(n.symbol.valueDeclaration,p.Type_0_recursively_references_itself_as_a_base_type,Hn(n,void 0,2)),n.resolvedBaseTypes=Ke):(n.resolvedBaseTypes===sL&&(n.members=void 0),n.resolvedBaseTypes=[h])}function klt(n){const a=n.outerTypeParameters;if(a){const l=a.length-1,_=ac(n);return a[l].symbol!==_[l].symbol}return!0}function lJ(n){if(n.flags&262144){const a=l_(n);if(a)return lJ(a)}return!!(n.flags&67633153&&!Sf(n)||n.flags&2097152&&Pn(n.types,lJ))}function Clt(n){if(n.resolvedBaseTypes=n.resolvedBaseTypes||Ke,n.symbol.declarations){for(const a of n.symbol.declarations)if(a.kind===264&&FP(a))for(const l of FP(a)){const _=Vm(ki(l));Gt(_)||(lJ(_)?n!==_&&!cE(_,n)?n.resolvedBaseTypes===Ke?n.resolvedBaseTypes=[_]:n.resolvedBaseTypes.push(_):W0(a,n):We(l,p.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function Elt(n){if(!n.declarations)return!0;for(const a of n.declarations)if(a.kind===264){if(a.flags&256)return!1;const l=FP(a);if(l){for(const _ of l)if(il(_.expression)){const m=ic(_.expression,788968,!0);if(!m||!(m.flags&64)||gd(m).thisType)return!1}}}return!0}function gd(n){let a=Zi(n);const l=a;if(!a.declaredType){const _=n.flags&32?1:2,m=M1e(n,n.valueDeclaration&&dgt(n.valueDeclaration));m&&(n=m,a=m.links);const h=l.declaredType=a.declaredType=pd(_,n),k=Vr(n),O=Lr(n);(k||O||_===1||!Elt(n))&&(h.objectFlags|=4,h.typeParameters=zn(k,O),h.outerTypeParameters=k,h.localTypeParameters=O,h.instantiations=new Map,h.instantiations.set(Wd(h.typeParameters),h),h.target=h,h.resolvedTypeArguments=h.typeParameters,h.thisType=$p(n),h.thisType.isThisType=!0,h.thisType.constraint=h)}return a.declaredType}function lIe(n){var a;const l=Zi(n);if(!l.declaredType){if(!ph(n,2))return mt;const _=w.checkDefined((a=n.declarations)==null?void 0:a.find(QA),"Type alias symbol with no valid declaration found"),m=Dd(_)?_.typeExpression:_.type;let h=m?ki(m):mt;if(Tg()){const k=Lr(n);k&&(l.typeParameters=k,l.instantiations=new Map,l.instantiations.set(Wd(k),h))}else h=mt,_.kind===347?We(_.typeExpression.type,p.Type_alias_0_circularly_references_itself,Ti(n)):We(I_(_)&&_.name||_,p.Type_alias_0_circularly_references_itself,Ti(n));l.declaredType=h}return l.declaredType}function Mee(n){return n.flags&1056&&n.symbol.flags&8?fc(rf(n.symbol)):n}function uIe(n){const a=Zi(n);if(!a.declaredType){const l=[];if(n.declarations){for(const m of n.declarations)if(m.kind===266){for(const h of m.members)if(uE(h)){const k=Pr(h),O=AE(h),j=i6(O!==void 0?q_t(O,Ia(n),k):_Ie(k));Zi(k).declaredType=j,l.push(q_(j))}}}const _=l.length?ti(l,1,n,void 0):_Ie(n);_.flags&1048576&&(_.flags|=1024,_.symbol=n),a.declaredType=_}return a.declaredType}function _Ie(n){const a=e0(32,n),l=e0(32,n);return a.regularType=a,a.freshType=l,l.regularType=a,l.freshType=l,a}function fIe(n){const a=Zi(n);if(!a.declaredType){const l=uIe(rf(n));a.declaredType||(a.declaredType=l)}return a.declaredType}function xT(n){const a=Zi(n);return a.declaredType||(a.declaredType=$p(n))}function Plt(n){const a=Zi(n);return a.declaredType||(a.declaredType=fc(iu(n)))}function fc(n){return pIe(n)||mt}function pIe(n){if(n.flags&96)return gd(n);if(n.flags&524288)return lIe(n);if(n.flags&262144)return xT(n);if(n.flags&384)return uIe(n);if(n.flags&8)return fIe(n);if(n.flags&2097152)return Plt(n)}function uJ(n){switch(n.kind){case 133:case 159:case 154:case 150:case 163:case 136:case 155:case 151:case 116:case 157:case 146:case 201:return!0;case 188:return uJ(n.elementType);case 183:return!n.typeArguments||n.typeArguments.every(uJ)}return!1}function wlt(n){const a=J6(n);return!a||uJ(a)}function dIe(n){const a=zu(n);return a?uJ(a):!h1(n)}function Dlt(n){const a=Id(n),l=f1(n);return(n.kind===176||!!a&&uJ(a))&&n.parameters.every(dIe)&&l.every(wlt)}function Alt(n){if(n.declarations&&n.declarations.length===1){const a=n.declarations[0];if(a)switch(a.kind){case 172:case 171:return dIe(a);case 174:case 173:case 176:case 177:case 178:return Dlt(a)}}return!1}function mIe(n,a,l){const _=ha();for(const m of n)_.set(m.escapedName,l&&Alt(m)?m:_ye(m,a));return _}function gIe(n,a){for(const l of a){if(hIe(l))continue;const _=n.get(l.escapedName);(!_||_.valueDeclaration&&mr(_.valueDeclaration)&&!sE(_)&&!Ese(_.valueDeclaration))&&(n.set(l.escapedName,l),n.set(l.escapedName,l))}}function hIe(n){return!!n.valueDeclaration&&O_(n.valueDeclaration)&&da(n.valueDeclaration)}function l0e(n){if(!n.declaredProperties){const a=n.symbol,l=dv(a);n.declaredProperties=M2(l),n.declaredCallSignatures=Ke,n.declaredConstructSignatures=Ke,n.declaredIndexInfos=Ke,n.declaredCallSignatures=xS(l.get("__call")),n.declaredConstructSignatures=xS(l.get("__new")),n.declaredIndexInfos=WIe(a)}return n}function u0e(n){if(!co(n)&&!uc(n))return!1;const a=co(n)?n.expression:n.argumentExpression;return il(a)&&Od(co(n)?i0(n):Sl(a))}function k5(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)===64}function _J(n){const a=Ms(n);return!!a&&u0e(a)}function uE(n){return!S1(n)||_J(n)}function Nlt(n){return g9(n)&&!u0e(n)}function Ilt(n,a,l){w.assert(!!(Uc(n)&4096),"Expected a late-bound symbol."),n.flags|=l,Zi(a.symbol).lateSymbol=n,n.declarations?a.symbol.isReplaceableByMethod||n.declarations.push(a):n.declarations=[a],l&111551&&(!n.valueDeclaration||n.valueDeclaration.kind!==a.kind)&&(n.valueDeclaration=a)}function yIe(n,a,l,_){w.assert(!!_.symbol,"The member is expected to have a symbol.");const m=ei(_);if(!m.resolvedSymbol){m.resolvedSymbol=_.symbol;const h=mr(_)?_.left:_.name,k=uc(h)?Sl(h.argumentExpression):i0(h);if(Od(k)){const O=Fd(k),j=_.symbol.flags;let W=l.get(O);W||l.set(O,W=ro(0,O,4096));const re=a&&a.get(O);if(!(n.flags&32)&&(W.flags&tT(j)||re)){const be=re?zn(re.declarations,W.declarations):W.declarations,he=!(k.flags&8192)&&Hi(O)||Bo(h);dt(be,qe=>We(Ms(qe)||qe,p.Property_0_was_also_declared_here,he)),We(h||_,p.Duplicate_property_0,he),W=ro(0,O,4096)}return W.links.nameType=k,Ilt(W,_,j),W.parent?w.assert(W.parent===n,"Existing symbol parent should match new one"):W.parent=n,m.resolvedSymbol=W}}return m.resolvedSymbol}function _0e(n,a){const l=Zi(n);if(!l[a]){const _=a==="resolvedExports",m=_?n.flags&1536?gT(n).exports:n.exports:n.members;l[a]=m||G;const h=ha();for(const j of n.declarations||Ke){const W=yse(j);if(W)for(const re of W)_===Fl(re)&&_J(re)&&yIe(n,m,h,re)}const k=mS(n).assignmentDeclarationMembers;if(k){const j=Vs(k.values());for(const W of j){const re=rl(W),be=re===3||mr(W)&&jte(W,re)||re===9||re===6;_===!be&&_J(W)&&yIe(n,m,h,W)}}let O=zC(m,h);if(n.flags&33554432&&l.cjsExportMerged&&n.declarations)for(const j of n.declarations){const W=Zi(j.symbol)[a];if(!O){O=W;continue}W&&W.forEach((re,be)=>{const he=O.get(be);if(!he)O.set(be,re);else{if(he===re)return;O.set(be,Jd(he,re))}})}l[a]=O||G}return l[a]}function dv(n){return n.flags&6256?_0e(n,"resolvedMembers"):n.members||G}function Ree(n){if(n.flags&106500&&n.escapedName==="__computed"){const a=Zi(n);if(!a.lateSymbol&&Pe(n.declarations,_J)){const l=po(n.parent);Pe(n.declarations,Fl)?ip(l):dv(l)}return a.lateSymbol||(a.lateSymbol=n)}return n}function kp(n,a,l){if(Br(n)&4){const _=n.target,m=ac(n);return Xe(_.typeParameters)===Xe(m)?Gy(_,zn(m,[a||_.thisType])):n}else if(n.flags&2097152){const _=Dc(n.types,m=>kp(m,a,l));return _!==n.types?Pa(_):n}return l?of(n):n}function vIe(n,a,l,_){let m,h,k,O,j;aU(l,_,0,l.length)?(h=a.symbol?dv(a.symbol):ha(a.declaredProperties),k=a.declaredCallSignatures,O=a.declaredConstructSignatures,j=a.declaredIndexInfos):(m=cp(l,_),h=mIe(a.declaredProperties,m,l.length===1),k=ite(a.declaredCallSignatures,m),O=ite(a.declaredConstructSignatures,m),j=q5e(a.declaredIndexInfos,m));const W=ap(a);if(W.length){if(a.symbol&&h===dv(a.symbol)){const be=ha(a.declaredProperties),he=A0e(a.symbol);he&&be.set("__index",he),h=be}Xp(n,h,k,O,j);const re=pc(_);for(const be of W){const he=re?kp(_s(be,m),re):be;gIe(h,Po(he)),k=zn(k,ra(he,0)),O=zn(O,ra(he,1));const qe=he!==U?V_(he):[hh(Ie,U,!1)];j=zn(j,vr(qe,ht=>!T0e(j,ht.keyType)))}}Xp(n,h,k,O,j)}function Olt(n){vIe(n,l0e(n),Ke,Ke)}function Flt(n){const a=l0e(n.target),l=zn(a.typeParameters,[a.thisType]),_=ac(n),m=_.length===l.length?_:zn(_,[n]);vIe(n,a,l,m)}function n0(n,a,l,_,m,h,k,O){const j=new g(Zt,O);return j.declaration=n,j.typeParameters=a,j.parameters=_,j.thisParameter=l,j.resolvedReturnType=m,j.resolvedTypePredicate=h,j.minArgumentCount=k,j.resolvedMinArgumentCount=void 0,j.target=void 0,j.mapper=void 0,j.compositeSignatures=void 0,j.compositeKind=void 0,j}function C5(n){const a=n0(n.declaration,n.typeParameters,n.thisParameter,n.parameters,void 0,void 0,n.minArgumentCount,n.flags&167);return a.target=n.target,a.mapper=n.mapper,a.compositeSignatures=n.compositeSignatures,a.compositeKind=n.compositeKind,a}function bIe(n,a){const l=C5(n);return l.compositeSignatures=a,l.compositeKind=1048576,l.target=void 0,l.mapper=void 0,l}function Llt(n,a){if((n.flags&24)===a)return n;n.optionalCallSignatureCache||(n.optionalCallSignatureCache={});const l=a===8?"inner":"outer";return n.optionalCallSignatureCache[l]||(n.optionalCallSignatureCache[l]=Mlt(n,a))}function Mlt(n,a){w.assert(a===8||a===16,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");const l=C5(n);return l.flags|=a,l}function SIe(n,a){if(v_(n)){const m=n.parameters.length-1,h=n.parameters[m].escapedName,k=fr(n.parameters[m]);if(Ga(k))return[l(k,m,h)];if(!a&&k.flags&1048576&&Pn(k.types,Ga))return Kt(k.types,O=>l(O,m,h))}return[n.parameters];function l(m,h,k){const O=ac(m),j=_(m,k),W=Kt(O,(re,be)=>{const he=j&&j[be]?j[be]:c8(n,h+be,m),qe=m.target.elementFlags[be],ht=qe&12?32768:qe&2?16384:0,Pt=ro(1,he,ht);return Pt.links.type=qe&4?u_(re):re,Pt});return zn(n.parameters.slice(0,h),W)}function _(m,h){const k=new Map;return Kt(m.target.labeledElementDeclarations,(O,j)=>{const W=z1e(O,j,h),re=k.get(W);return re===void 0?(k.set(W,1),W):(k.set(W,re+1),`${W}_${re}`)})}}function Rlt(n){const a=sp(n),l=ra(a,1),_=v0(n.symbol),m=!!_&&Kr(_,64);if(l.length===0)return[n0(void 0,n.localTypeParameters,void 0,Ke,n,void 0,0,m?4:0)];const h=Mo(n),k=lr(h),O=vJ(h),j=Xe(O),W=[];for(const re of l){const be=gh(re.typeParameters),he=Xe(re.typeParameters);if(k||j>=be&&j<=he){const qe=he?Uee(re,gv(O,re.typeParameters,be,k)):C5(re);qe.typeParameters=n.localTypeParameters,qe.resolvedReturnType=n,qe.flags=m?qe.flags|4:qe.flags&-5,W.push(qe)}}return W}function jee(n,a,l,_,m){for(const h of n)if(FJ(h,a,l,_,m,l?uft:R5))return h}function jlt(n,a,l){if(a.typeParameters){if(l>0)return;for(let m=1;m1&&(l=l===void 0?_:-1);for(const m of n[_])if(!a||!jee(a,m,!1,!1,!0)){const h=jlt(n,m,_);if(h){let k=m;if(h.length>1){let O=m.thisParameter;const j=dt(h,W=>W.thisParameter);if(j){const W=Pa(Oi(h,re=>re.thisParameter&&fr(re.thisParameter)));O=FT(j,W)}k=bIe(m,h),k.thisParameter=O}(a||(a=[])).push(k)}}}if(!Xe(a)&&l!==-1){const _=n[l!==void 0?l:0];let m=_.slice();for(const h of n)if(h!==_){const k=h[0];if(w.assert(!!k,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),m=k.typeParameters&&Pe(m,O=>!!O.typeParameters&&!xIe(k.typeParameters,O.typeParameters))?void 0:Kt(m,O=>zlt(O,k)),!m)break}a=m}return a||Ke}function xIe(n,a){if(Xe(n)!==Xe(a))return!1;if(!n||!a)return!0;const l=cp(a,n);for(let _=0;_=m?n:a,k=h===n?a:n,O=h===n?_:m,j=bh(n)||bh(a),W=j&&!bh(h),re=new Array(O+(W?1:0));for(let be=0;be=Ag(h)&&be>=Ag(k),un=be>=_?void 0:c8(n,be),or=be>=m?void 0:c8(a,be),Rn=un===or?un:un?or?void 0:un:or,ln=ro(1|(on&&!Pt?16777216:0),Rn||`arg${be}`,Pt?32768:on?16384:0);ln.links.type=Pt?u_(ht):ht,re[be]=ln}if(W){const be=ro(1,"args",32768);be.links.type=u_(Hm(k,O)),k===a&&(be.links.type=_s(be.links.type,l)),re[O]=be}return re}function zlt(n,a){const l=n.typeParameters||a.typeParameters;let _;n.typeParameters&&a.typeParameters&&(_=cp(a.typeParameters,n.typeParameters));const m=n.declaration,h=Jlt(n,a,_),k=Blt(n.thisParameter,a.thisParameter,_),O=Math.max(n.minArgumentCount,a.minArgumentCount),j=n0(m,l,k,h,void 0,void 0,O,(n.flags|a.flags)&167);return j.compositeKind=1048576,j.compositeSignatures=zn(n.compositeKind!==2097152&&n.compositeSignatures||[n],[a]),_?j.mapper=n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures?wS(n.mapper,_):_:n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures&&(j.mapper=n.mapper),j}function TIe(n){const a=V_(n[0]);if(a){const l=[];for(const _ of a){const m=_.keyType;Pn(n,h=>!!r0(h,m))&&l.push(hh(m,ti(Kt(n,h=>q2(h,m))),Pe(n,h=>r0(h,m).isReadonly)))}return l}return Ke}function Ult(n){const a=f0e(Kt(n.types,m=>m===jt?[_n]:ra(m,0))),l=f0e(Kt(n.types,m=>ra(m,1))),_=TIe(n.types);Xp(n,G,a,l,_)}function fJ(n,a){return n?a?Pa([n,a]):n:a}function kIe(n){const a=Bc(n,_=>ra(_,1).length>0),l=Kt(n,Ri);if(a>0&&a===Bc(l,_=>_)){const _=l.indexOf(!0);l[_]=!1}return l}function Vlt(n,a,l,_){const m=[];for(let h=0;hO);for(let O=0;O0&&(W=Kt(W,re=>{const be=C5(re);return be.resolvedReturnType=Vlt(To(re),m,h,O),be})),l=CIe(l,W)}a=CIe(a,ra(j,0)),_=D_(V_(j),(W,re)=>EIe(W,re,!1),_)}Xp(n,G,a||Ke,l||Ke,_||Ke)}function CIe(n,a){for(const l of a)(!n||Pn(n,_=>!FJ(_,l,!1,!1,!1,R5)))&&(n=gn(n,l));return n}function EIe(n,a,l){if(n)for(let _=0;_{var j;!(O.flags&418)&&!(O.flags&512&&((j=O.declarations)!=null&&j.length)&&Pn(O.declarations,n_))&&k.set(O.escapedName,O)}),l=k}let m;if(Xp(n,l,Ke,Ke,Ke),a.flags&32){const k=gd(a),O=sp(k);O.flags&11272192?(l=ha(yT(l)),gIe(l,Po(O))):O===U&&(m=hh(Ie,U,!1))}const h=Vee(l);if(h?_=N0e(h):(m&&(_=gn(_,m)),a.flags&384&&(fc(a).flags&32||Pe(n.properties,k=>!!(fr(k).flags&296)))&&(_=gn(_,qr))),Xp(n,l,Ke,Ke,_||Ke),a.flags&8208&&(n.callSignatures=xS(a)),a.flags&32){const k=gd(a);let O=a.members?xS(a.members.get("__constructor")):Ke;a.flags&16&&(O=Mr(O.slice(),Oi(n.callSignatures,j=>Dg(j.declaration)?n0(j.declaration,j.typeParameters,j.thisParameter,j.parameters,k,void 0,j.minArgumentCount,j.flags&167):void 0))),O.length||(O=Rlt(k)),n.constructSignatures=O}}function Hlt(n,a,l){return _s(n,cp([a.indexType,a.objectType],[Wm(0),yh([l])]))}function Glt(n){const a=Qp(n.mappedType);if(!(a.flags&1048576||a.flags&2097152))return;const l=a.flags&1048576?a.origin:a;if(!l||!(l.flags&2097152))return;const _=Pa(l.types.filter(m=>m!==n.constraintType));return _!==Wr?_:void 0}function $lt(n){const a=r0(n.source,Ie),l=mh(n.mappedType),_=!(l&1),m=l&4?0:16777216,h=a?[hh(Ie,Cte(a.type,n.mappedType,n.constraintType),_&&a.isReadonly)]:Ke,k=ha(),O=Glt(n);for(const j of Po(n.source)){if(O){const be=gE(j,8576);if(!wa(be,O))continue}const W=8192|(_&&Gm(j)?8:0),re=ro(4|j.flags&m,j.escapedName,W);if(re.declarations=j.declarations,re.links.nameType=Zi(j).nameType,re.links.propertyType=fr(j),n.constraintType.type.flags&8388608&&n.constraintType.type.objectType.flags&262144&&n.constraintType.type.indexType.flags&262144){const be=n.constraintType.type.objectType,he=Hlt(n.mappedType,n.constraintType.type,be);re.links.mappedType=he,re.links.constraintType=Cg(be)}else re.links.mappedType=n.mappedType,re.links.constraintType=n.constraintType;k.set(j.escapedName,re)}Xp(n,k,Ke,Ke,h)}function pJ(n){if(n.flags&4194304){const a=of(n.type);return Tv(a)?g5e(a):Cg(a)}if(n.flags&16777216){if(n.root.isDistributive){const a=n.checkType,l=pJ(a);if(l!==a)return pye(n,IT(n.root.checkType,l,n.mapper),!1)}return n}if(n.flags&1048576)return kc(n,pJ,!0);if(n.flags&2097152){const a=n.types;return a.length===2&&a[0].flags&76&&a[1]===El?n:Pa(Dc(n.types,pJ))}return n}function p0e(n){return Uc(n)&4096}function d0e(n,a,l,_){for(const m of Po(n))_(gE(m,a));if(n.flags&1)_(Ie);else for(const m of V_(n))(!l||m.keyType.flags&134217732)&&_(m.keyType)}function Xlt(n){const a=ha();let l;Xp(n,G,Ke,Ke,Ke);const _=zm(n),m=Qp(n),h=n.target||n,k=Hy(h),O=Bee(h)!==2,j=q0(h),W=of(TT(n)),re=mh(n),be=Ne?128:8576;_E(n)?d0e(W,be,Ne,he):jT(pJ(m),he),Xp(n,a,Ke,Ke,l||Ke);function he(ht){const Pt=k?_s(k,F5(n.mapper,_,ht)):ht;jT(Pt,on=>qe(ht,on))}function qe(ht,Pt){if(Od(Pt)){const on=Fd(Pt),un=a.get(on);if(un)un.links.nameType=ti([un.links.nameType,Pt]),un.links.keyType=ti([un.links.keyType,ht]);else{const or=Od(ht)?Ea(W,Fd(ht)):void 0,Rn=!!(re&4||!(re&8)&&or&&or.flags&16777216),ln=!!(re&1||!(re&2)&&or&&Gm(or)),Jn=X&&!Rn&&or&&or.flags&16777216,Bn=or?p0e(or):0,nr=ro(4|(Rn?16777216:0),on,Bn|262144|(ln?8:0)|(Jn?524288:0));nr.links.mappedType=n,nr.links.nameType=Pt,nr.links.keyType=ht,or&&(nr.links.syntheticOrigin=or,nr.declarations=O?or.declarations:void 0),a.set(on,nr)}}else if(Wee(Pt)||Pt.flags&33){const on=Pt.flags&5?Ie:Pt.flags&40?xt:Pt,un=_s(j,F5(n.mapper,_,ht)),or=E5(W,Pt),Rn=!!(re&1||!(re&2)&&(or!=null&&or.isReadonly)),ln=hh(on,un,Rn);l=EIe(l,ln,!0)}}}function Qlt(n){if(!n.links.type){const a=n.links.mappedType;if(!ph(n,0))return a.containsError=!0,mt;const l=q0(a.target||a),_=F5(a.mapper,zm(a),n.links.keyType),m=_s(l,_);let h=X&&n.flags&16777216&&!Hc(m,49152)?kv(m,!0):n.links.checkFlags&524288?bte(m):m;Tg()||(We(D,p.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Ti(n),Hn(a)),h=mt),n.links.type=h}return n.links.type}function zm(n){return n.typeParameter||(n.typeParameter=xT(Pr(n.declaration.typeParameter)))}function Qp(n){return n.constraintType||(n.constraintType=af(zm(n))||mt)}function Hy(n){return n.declaration.nameType?n.nameType||(n.nameType=_s(ki(n.declaration.nameType),n.mapper)):void 0}function q0(n){return n.templateType||(n.templateType=n.declaration.type?_s(Mf(ki(n.declaration.type),!0,!!(mh(n)&4)),n.mapper):mt)}function PIe(n){return J6(n.declaration.typeParameter)}function _E(n){const a=PIe(n);return a.kind===198&&a.operator===143}function TT(n){if(!n.modifiersType)if(_E(n))n.modifiersType=_s(ki(PIe(n).type),n.mapper);else{const a=rye(n.declaration),l=Qp(a),_=l&&l.flags&262144?af(l):l;n.modifiersType=_&&_.flags&4194304?_s(_.type,n.mapper):mn}return n.modifiersType}function mh(n){const a=n.declaration;return(a.readonlyToken?a.readonlyToken.kind===41?2:1:0)|(a.questionToken?a.questionToken.kind===41?8:4:0)}function wIe(n){const a=mh(n);return a&8?-1:a&4?1:0}function m0e(n){const a=wIe(n),l=TT(n);return a||(Sf(l)?wIe(l):0)}function Ylt(n){return!!(Br(n)&32&&mh(n)&4)}function Sf(n){if(Br(n)&32){const a=Qp(n);if(NT(a))return!0;const l=Hy(n);if(l&&NT(_s(l,PS(zm(n),a))))return!0}return!1}function Bee(n){const a=Hy(n);return a?wa(a,zm(n))?1:2:0}function Um(n){return n.members||(n.flags&524288?n.objectFlags&4?Flt(n):n.objectFlags&3?Olt(n):n.objectFlags&1024?$lt(n):n.objectFlags&16?qlt(n):n.objectFlags&32?Xlt(n):w.fail("Unhandled object type "+w.formatObjectFlags(n.objectFlags)):n.flags&1048576?Ult(n):n.flags&2097152?Wlt(n):w.fail("Unhandled type "+w.formatTypeFlags(n.flags))),n}function mv(n){return n.flags&524288?Um(n).properties:Ke}function W2(n,a){if(n.flags&524288){const _=Um(n).members.get(a);if(_&&gm(_))return _}}function dJ(n){if(!n.resolvedProperties){const a=ha();for(const l of n.types){for(const _ of Po(l))if(!a.has(_.escapedName)){const m=gJ(n,_.escapedName,!!(n.flags&2097152));m&&a.set(_.escapedName,m)}if(n.flags&1048576&&V_(l).length===0)break}n.resolvedProperties=M2(a)}return n.resolvedProperties}function Po(n){return n=qD(n),n.flags&3145728?dJ(n):mv(n)}function Zlt(n,a){n=qD(n),n.flags&3670016&&Um(n).members.forEach((l,_)=>{XC(l,_)&&a(l,_)})}function Klt(n,a){return a.properties.some(_=>{const m=_.name&&(wm(_.name)?xf(EN(_.name)):Xy(_.name)),h=m&&Od(m)?Fd(m):void 0,k=h===void 0?void 0:He(n,h);return!!k&&J5(k)&&!wa(c6(_),k)})}function eut(n){const a=ti(n);if(!(a.flags&1048576))return Tve(a);const l=ha();for(const _ of n)for(const{escapedName:m}of Tve(_))if(!l.has(m)){const h=LIe(a,m);h&&l.set(m,h)}return Vs(l.values())}function kT(n){return n.flags&262144?af(n):n.flags&8388608?nut(n):n.flags&16777216?NIe(n):l_(n)}function af(n){return mJ(n)?GD(n):void 0}function tut(n,a){const l=L5(n);return!!l&&CT(l,a)}function CT(n,a=0){var l;return a<5&&!!(n&&(n.flags&262144&&Pe((l=n.symbol)==null?void 0:l.declarations,_=>Kr(_,4096))||n.flags&3145728&&Pe(n.types,_=>CT(_,a))||n.flags&8388608&&CT(n.objectType,a+1)||n.flags&16777216&&CT(NIe(n),a+1)||n.flags&33554432&&CT(n.baseType,a)||Br(n)&32&&tut(n,a)||Tv(n)&&Gs(kS(n),(_,m)=>!!(n.target.elementFlags[m]&8)&&CT(_,a))>=0))}function nut(n){return mJ(n)?rut(n):void 0}function g0e(n){const a=$0(n,!1);return a!==n?a:kT(n)}function rut(n){if(b0e(n))return Zee(n.objectType,n.indexType);const a=g0e(n.indexType);if(a&&a!==n.indexType){const _=yv(n.objectType,a,n.accessFlags);if(_)return _}const l=g0e(n.objectType);if(l&&l!==n.objectType)return yv(l,n.indexType,n.accessFlags)}function h0e(n){if(!n.resolvedDefaultConstraint){const a=B_t(n),l=$2(n);n.resolvedDefaultConstraint=Dt(a)?l:Dt(l)?a:ti([a,l])}return n.resolvedDefaultConstraint}function DIe(n){if(n.resolvedConstraintOfDistributive!==void 0)return n.resolvedConstraintOfDistributive||void 0;if(n.root.isDistributive&&n.restrictiveInstantiation!==n){const a=$0(n.checkType,!1),l=a===n.checkType?kT(a):a;if(l&&l!==n.checkType){const _=pye(n,IT(n.root.checkType,l,n.mapper),!0);if(!(_.flags&131072))return n.resolvedConstraintOfDistributive=_,_}}n.resolvedConstraintOfDistributive=!1}function AIe(n){return DIe(n)||h0e(n)}function NIe(n){return mJ(n)?AIe(n):void 0}function iut(n,a){let l,_=!1;for(const m of n)if(m.flags&465829888){let h=kT(m);for(;h&&h.flags&21233664;)h=kT(h);h&&(l=gn(l,h),a&&(l=gn(l,m)))}else(m.flags&469892092||vh(m))&&(_=!0);if(l&&(a||_)){if(_)for(const m of n)(m.flags&469892092||vh(m))&&(l=gn(l,m));return NJ(Pa(l),!1)}}function l_(n){if(n.flags&464781312||Tv(n)){const a=y0e(n);return a!==nc&&a!==ku?a:void 0}return n.flags&4194304?Yo:void 0}function H0(n){return l_(n)||n}function mJ(n){return y0e(n)!==ku}function y0e(n){if(n.resolvedBaseConstraint)return n.resolvedBaseConstraint;const a=[];return n.resolvedBaseConstraint=l(n);function l(h){if(!h.immediateBaseConstraint){if(!ph(h,4))return ku;let k;const O=dte(h);if((a.length<10||a.length<50&&!Ai(a,O))&&(a.push(O),k=m($0(h,!1)),a.pop()),!Tg()){if(h.flags&262144){const j=I0e(h);if(j){const W=We(j,p.Type_parameter_0_has_a_circular_constraint,Hn(h));D&&!bb(j,D)&&!bb(D,j)&&Ua(W,Rr(D,p.Circularity_originates_in_type_at_this_location))}}k=ku}h.immediateBaseConstraint=k||nc}return h.immediateBaseConstraint}function _(h){const k=l(h);return k!==nc&&k!==ku?k:void 0}function m(h){if(h.flags&262144){const k=GD(h);return h.isThisType||!k?k:_(k)}if(h.flags&3145728){const k=h.types,O=[];let j=!1;for(const W of k){const re=_(W);re?(re!==W&&(j=!0),O.push(re)):j=!0}return j?h.flags&1048576&&O.length===k.length?ti(O):h.flags&2097152&&O.length?Pa(O):void 0:h}if(h.flags&4194304)return Yo;if(h.flags&134217728){const k=h.types,O=Oi(k,_);return O.length===k.length?wT(h.texts,O):Ie}if(h.flags&268435456){const k=_(h.type);return k&&k!==h.type?n6(h.symbol,k):Ie}if(h.flags&8388608){if(b0e(h))return _(Zee(h.objectType,h.indexType));const k=_(h.objectType),O=_(h.indexType),j=k&&O&&yv(k,O,h.accessFlags);return j&&_(j)}if(h.flags&16777216){const k=AIe(h);return k&&_(k)}if(h.flags&33554432)return _(R0e(h));if(Tv(h)){const k=Kt(kS(h),(O,j)=>{const W=O.flags&262144&&h.target.elementFlags[j]&8&&_(O)||O;return W!==O&&Rf(W,re=>Q2(re)&&!Tv(re))?W:O});return yh(k,h.target.elementFlags,h.target.readonly,h.target.labeledElementDeclarations)}return h}}function sut(n,a){return n.resolvedApparentType||(n.resolvedApparentType=kp(n,a,!0))}function v0e(n){if(n.default)n.default===Fu&&(n.default=ku);else if(n.target){const a=v0e(n.target);n.default=a?_s(a,n.mapper):nc}else{n.default=Fu;const a=n.symbol&&dt(n.symbol.declarations,_=>Ic(_)&&_.default),l=a?ki(a):nc;n.default===Fu&&(n.default=l)}return n.default}function ET(n){const a=v0e(n);return a!==nc&&a!==ku?a:void 0}function aut(n){return v0e(n)!==ku}function IIe(n){return!!(n.symbol&&dt(n.symbol.declarations,a=>Ic(a)&&a.default))}function OIe(n){return n.resolvedApparentType||(n.resolvedApparentType=out(n))}function out(n){const a=n.target??n,l=L5(a);if(l&&!a.declaration.nameType){const _=TT(n),m=Sf(_)?OIe(_):l_(_);if(m&&Rf(m,h=>Q2(h)||FIe(h)))return _s(a,IT(l,m,n.mapper))}return n}function FIe(n){return!!(n.flags&2097152)&&Pn(n.types,Q2)}function b0e(n){let a;return!!(n.flags&8388608&&Br(a=n.objectType)&32&&!Sf(a)&&NT(n.indexType)&&!(mh(a)&8)&&!a.declaration.nameType)}function of(n){const a=n.flags&465829888?l_(n)||mn:n,l=Br(a);return l&32?OIe(a):l&4&&a!==n?kp(a,n):a.flags&2097152?sut(a,n):a.flags&402653316?yl:a.flags&296?Bl:a.flags&2112?Wut():a.flags&528?Tc:a.flags&12288?o5e():a.flags&67108864?Ja:a.flags&4194304?Yo:a.flags&2&&!X?Ja:a}function qD(n){return Vm(of(Vm(n)))}function LIe(n,a,l){var _,m,h;let k,O,j;const W=n.flags&1048576;let re,be=4,he=W?0:8,qe=!1;for(const nr of n.types){const $n=of(nr);if(!(Gt($n)||$n.flags&131072)){const rr=Ea($n,a,l),Ns=rr?nd(rr):0;if(rr){if(rr.flags&106500&&(re??(re=W?0:16777216),W?re|=rr.flags&16777216:re&=rr.flags),!k)k=rr;else if(rr!==k)if((wE(rr)||rr)===(wE(k)||k)&&Tye(k,rr,(Ws,gs)=>Ws===gs?-1:0)===-1)qe=!!k.parent&&!!Xe(Lr(k.parent));else{O||(O=new Map,O.set(Ia(k),k));const Ws=Ia(rr);O.has(Ws)||O.set(Ws,rr)}W&&Gm(rr)?he|=8:!W&&!Gm(rr)&&(he&=-9),he|=(Ns&6?0:256)|(Ns&4?512:0)|(Ns&2?1024:0)|(Ns&256?2048:0),v1e(rr)||(be=2)}else if(W){const Es=!k5(a)&&e6($n,a);Es?(he|=32|(Es.isReadonly?8:0),j=gn(j,Ga($n)?hte($n)||Fe:Es.type)):K2($n)&&!(Br($n)&2097152)?(he|=32,j=gn(j,Fe)):he|=16}}}if(!k||W&&(O||he&48)&&he&1536&&!(O&&cut(O.values())))return;if(!O&&!(he&16)&&!j)if(qe){const nr=(_=si(k,Vg))==null?void 0:_.links,$n=FT(k,nr==null?void 0:nr.type);return $n.parent=(h=(m=k.valueDeclaration)==null?void 0:m.symbol)==null?void 0:h.parent,$n.links.containingType=n,$n.links.mapper=nr==null?void 0:nr.mapper,$n.links.writeType=SS(k),$n}else return k;const ht=O?Vs(O.values()):[k];let Pt,on,un;const or=[];let Rn,ln,Jn=!1;for(const nr of ht){ln?nr.valueDeclaration&&nr.valueDeclaration!==ln&&(Jn=!0):ln=nr.valueDeclaration,Pt=Mr(Pt,nr.declarations);const $n=fr(nr);on||(on=$n,un=Zi(nr).nameType);const rr=SS(nr);(Rn||rr!==$n)&&(Rn=gn(Rn||or.slice(),rr)),$n!==on&&(he|=64),(J5($n)||DT($n))&&(he|=128),$n.flags&131072&&$n!==Iu&&(he|=131072),or.push($n)}Mr(or,j);const Bn=ro(4|(re??0),a,be|he);return Bn.links.containingType=n,!Jn&&ln&&(Bn.valueDeclaration=ln,ln.symbol.parent&&(Bn.parent=ln.symbol.parent)),Bn.declarations=Pt,Bn.links.nameType=un,or.length>2?(Bn.links.checkFlags|=65536,Bn.links.deferralParent=n,Bn.links.deferralConstituents=or,Bn.links.deferralWriteConstituents=Rn):(Bn.links.type=W?ti(or):Pa(or),Rn&&(Bn.links.writeType=W?ti(Rn):Pa(Rn))),Bn}function MIe(n,a,l){var _,m,h;let k=l?(_=n.propertyCacheWithoutObjectFunctionPropertyAugment)==null?void 0:_.get(a):(m=n.propertyCache)==null?void 0:m.get(a);return k||(k=LIe(n,a,l),k&&((l?n.propertyCacheWithoutObjectFunctionPropertyAugment||(n.propertyCacheWithoutObjectFunctionPropertyAugment=ha()):n.propertyCache||(n.propertyCache=ha())).set(a,k),l&&!(Uc(k)&48)&&!((h=n.propertyCache)!=null&&h.get(a))&&(n.propertyCache||(n.propertyCache=ha())).set(a,k))),k}function cut(n){let a;for(const l of n){if(!l.declarations)return;if(!a){a=new Set(l.declarations);continue}if(a.forEach(_=>{Ai(l.declarations,_)||a.delete(_)}),a.size===0)return}return a}function gJ(n,a,l){const _=MIe(n,a,l);return _&&!(Uc(_)&16)?_:void 0}function Vm(n){return n.flags&1048576&&n.objectFlags&16777216?n.resolvedReducedType||(n.resolvedReducedType=lut(n)):n.flags&2097152?(n.objectFlags&16777216||(n.objectFlags|=16777216|(Pe(dJ(n),uut)?33554432:0)),n.objectFlags&33554432?Wr:n):n}function lut(n){const a=Dc(n.types,Vm);if(a===n.types)return n;const l=ti(a);return l.flags&1048576&&(l.resolvedReducedType=l),l}function uut(n){return RIe(n)||jIe(n)}function RIe(n){return!(n.flags&16777216)&&(Uc(n)&131264)===192&&!!(fr(n).flags&131072)}function jIe(n){return!n.valueDeclaration&&!!(Uc(n)&1024)}function S0e(n){return!!(n.flags&1048576&&n.objectFlags&16777216&&Pe(n.types,S0e)||n.flags&2097152&&_ut(n))}function _ut(n){const a=n.uniqueLiteralFilledInstantiation||(n.uniqueLiteralFilledInstantiation=_s(n,vs));return Vm(a)!==a}function x0e(n,a){if(a.flags&2097152&&Br(a)&33554432){const l=Cn(dJ(a),RIe);if(l)return Hs(n,p.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,Hn(a,void 0,536870912),Ti(l));const _=Cn(dJ(a),jIe);if(_)return Hs(n,p.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,Hn(a,void 0,536870912),Ti(_))}return n}function Ea(n,a,l,_){var m,h;if(n=qD(n),n.flags&524288){const k=Um(n),O=k.members.get(a);if(O&&!_&&((m=n.symbol)==null?void 0:m.flags)&512&&((h=Zi(n.symbol).typeOnlyExportStarMap)!=null&&h.has(a)))return;if(O&&gm(O,_))return O;if(l)return;const j=k===rn?jt:k.callSignatures.length?Xn:k.constructSignatures.length?Ts:void 0;if(j){const W=W2(j,a);if(W)return W}return W2(De,a)}if(n.flags&2097152){const k=gJ(n,a,!0);return k||(l?void 0:gJ(n,a,l))}if(n.flags&1048576)return gJ(n,a,l)}function hJ(n,a){if(n.flags&3670016){const l=Um(n);return a===0?l.callSignatures:l.constructSignatures}return Ke}function ra(n,a){const l=hJ(qD(n),a);if(a===0&&!Xe(l)&&n.flags&1048576){if(n.arrayFallbackSignatures)return n.arrayFallbackSignatures;let _;if(Rf(n,m=>{var h;return!!((h=m.symbol)!=null&&h.parent)&&fut(m.symbol.parent)&&(_?_===m.symbol.escapedName:(_=m.symbol.escapedName,!0))})){const m=kc(n,k=>bv((BIe(k.symbol.parent)?la:sa).typeParameters[0],k.mapper)),h=u_(m,vm(n,k=>BIe(k.symbol.parent)));return n.arrayFallbackSignatures=ra(He(h,_),a)}n.arrayFallbackSignatures=l}return l}function fut(n){return!n||!sa.symbol||!la.symbol?!1:!!Rm(n,sa.symbol)||!!Rm(n,la.symbol)}function BIe(n){return!n||!la.symbol?!1:!!Rm(n,la.symbol)}function T0e(n,a){return Cn(n,l=>l.keyType===a)}function k0e(n,a){let l,_,m;for(const h of n)h.keyType===Ie?l=h:KC(a,h.keyType)&&(_?(m||(m=[_])).push(h):_=h);return m?hh(mn,Pa(Kt(m,h=>h.type)),D_(m,(h,k)=>h&&k.isReadonly,!0)):_||(l&&KC(a,Ie)?l:void 0)}function KC(n,a){return wa(n,a)||a===Ie&&wa(n,xt)||a===xt&&(n===bo||!!(n.flags&128)&&Jh(n.value))}function C0e(n){return n.flags&3670016?Um(n).indexInfos:Ke}function V_(n){return C0e(qD(n))}function r0(n,a){return T0e(V_(n),a)}function q2(n,a){var l;return(l=r0(n,a))==null?void 0:l.type}function E0e(n,a){return V_(n).filter(l=>KC(a,l.keyType))}function E5(n,a){return k0e(V_(n),a)}function e6(n,a){return E5(n,k5(a)?wi:xf(Hi(a)))}function JIe(n){var a;let l;for(const _ of f1(n))l=w_(l,xT(_.symbol));return l!=null&&l.length?l:Wl(n)?(a=HD(n))==null?void 0:a.typeParameters:void 0}function P0e(n){const a=[];return n.forEach((l,_)=>{hS(_)||a.push(l)}),a}function Jee(n,a){if(yu(n))return;const l=bf(xe,'"'+n+'"',512);return l&&a?po(l):l}function P5(n){if(Sk(n)||kN(n)||CN(n))return!0;if(n.initializer){const l=Vd(n.parent),_=n.parent.parameters.indexOf(n);return w.assert(_>=0),_>=Ag(l,3)}const a=sx(n.parent);return a?!n.type&&!n.dotDotDotToken&&n.parent.parameters.indexOf(n)>=Zte(a).length:!1}function put(n){return Zs(n)&&!ig(n)&&n.questionToken}function yJ(n,a,l,_){return{kind:n,parameterName:a,parameterIndex:l,type:_}}function gh(n){let a=0;if(n)for(let l=0;l=l&&h<=m){const k=n?n.slice():[];for(let j=h;jj.arguments.length&&!un||CN(Pt)||(m=l.length)}if((n.kind===177||n.kind===178)&&uE(n)&&(!O||!h)){const ht=n.kind===177?178:177,Pt=Cc(Pr(n),ht);Pt&&(h=Nee(Pt))}k&&k.typeExpression&&(h=FT(ro(1,"this"),ki(k.typeExpression)));const be=c2(n)?Kv(n):n,he=be&&$c(be)?gd(po(be.parent.symbol)):void 0,qe=he?he.localTypeParameters:JIe(n);(cW(n)||lr(n)&&dut(n,l))&&(_|=1),(I4(n)&&Kr(n,64)||$c(n)&&Kr(n.parent,64))&&(_|=4),a.resolvedSignature=n0(n,qe,h,l,void 0,void 0,m,_)}return a.resolvedSignature}function dut(n,a){if(c2(n)||!w0e(n))return!1;const l=pc(n.parameters),_=l?B6(l):Gv(n).filter(Am),m=li(_,k=>k.typeExpression&&rM(k.typeExpression.type)?k.typeExpression.type:void 0),h=ro(3,"args",32768);return m?h.links.type=u_(ki(m.type)):(h.links.checkFlags|=65536,h.links.deferralParent=Wr,h.links.deferralConstituents=[vl],h.links.deferralWriteConstituents=[vl]),m&&a.pop(),a.push(h),!0}function HD(n){if(!(lr(n)&&Ko(n)))return;const a=qv(n);return(a==null?void 0:a.typeExpression)&&UT(ki(a.typeExpression))}function mut(n,a){const l=HD(n);if(!l)return;const _=n.parameters.indexOf(a);return a.dotDotDotToken?cz(l,_):Hm(l,_)}function gut(n){const a=HD(n);return a&&To(a)}function w0e(n){const a=ei(n);return a.containsArgumentsReference===void 0&&(a.flags&512?a.containsArgumentsReference=!0:a.containsArgumentsReference=l(n.body)),a.containsArgumentsReference;function l(_){if(!_)return!1;switch(_.kind){case 80:return _.escapedText===zt.escapedName&&lO(_)===zt;case 172:case 174:case 177:case 178:return _.name.kind===167&&l(_.name);case 211:case 212:return l(_.expression);case 303:return l(_.initializer);default:return!KW(_)&&!Ih(_)&&!!Xs(_,l)}}}function xS(n){if(!n||!n.declarations)return Ke;const a=[];for(let l=0;l0&&_.body){const m=n.declarations[l-1];if(_.parent===m.parent&&_.kind===m.kind&&_.pos===m.end)continue}if(lr(_)&&_.jsDoc){const m=VW(_);if(Xe(m)){for(const h of m){const k=h.typeExpression;k.type===void 0&&!$c(_)&&Y2(k,U),a.push(Vd(k))}continue}}a.push(!Db(_)&&!tm(_)&&HD(_)||Vd(_))}}return a}function zIe(n){const a=U_(n,n);if(a){const l=rp(a);if(l)return fr(l)}return U}function H2(n){if(n.thisParameter)return fr(n.thisParameter)}function hd(n){if(!n.resolvedTypePredicate){if(n.target){const a=hd(n.target);n.resolvedTypePredicate=a?eft(a,n.mapper):Oe}else if(n.compositeSignatures)n.resolvedTypePredicate=m_t(n.compositeSignatures,n.compositeKind)||Oe;else{const a=n.declaration&&Id(n.declaration);let l;if(!a){const _=HD(n.declaration);_&&n!==_&&(l=hd(_))}n.resolvedTypePredicate=a&&HN(a)?hut(a,n):l||Oe}w.assert(!!n.resolvedTypePredicate)}return n.resolvedTypePredicate===Oe?void 0:n.resolvedTypePredicate}function hut(n,a){const l=n.parameterName,_=n.type&&ki(n.type);return l.kind===197?yJ(n.assertsModifier?2:0,void 0,void 0,_):yJ(n.assertsModifier?3:1,l.escapedText,Gs(a.parameters,m=>m.escapedName===l.escapedText),_)}function UIe(n,a,l){return a!==2097152?ti(n,l):Pa(n)}function To(n){if(!n.resolvedReturnType){if(!ph(n,3))return mt;let a=n.target?_s(To(n.target),n.mapper):n.compositeSignatures?_s(UIe(Kt(n.compositeSignatures,To),n.compositeKind,2),n.mapper):fE(n.declaration)||(nl(n.declaration.body)?U:nne(n.declaration));if(n.flags&8?a=xOe(a):n.flags&16&&(a=kv(a)),!Tg()){if(n.declaration){const l=Id(n.declaration);if(l)We(l,p.Return_type_annotation_circularly_references_itself);else if(fe){const _=n.declaration,m=Ms(_);m?We(m,p._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,Bo(m)):We(_,p.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}a=U}n.resolvedReturnType=a}return n.resolvedReturnType}function fE(n){if(n.kind===176)return gd(po(n.parent.symbol));const a=Id(n);if(c2(n)){const l=l4(n);if(l&&$c(l.parent)&&!a)return gd(po(l.parent.parent.symbol))}if(c4(n))return ki(n.parameters[0].type);if(a)return ki(a);if(n.kind===177&&uE(n)){const l=lr(n)&&z0(n);if(l)return l;const _=Cc(Pr(n),178),m=z2(_);if(m)return m}return gut(n)}function zee(n){return n.compositeSignatures&&Pe(n.compositeSignatures,zee)||!n.resolvedReturnType&&YC(n,3)>=0}function yut(n){return VIe(n)||U}function VIe(n){if(v_(n)){const a=fr(n.parameters[n.parameters.length-1]),l=Ga(a)?hte(a):a;return l&&q2(l,xt)}}function w5(n,a,l,_){const m=D0e(n,gv(a,n.typeParameters,gh(n.typeParameters),l));if(_){const h=t9e(To(m));if(h){const k=C5(h);k.typeParameters=_;const O=C5(m);return O.resolvedReturnType=PT(k),O}}return m}function D0e(n,a){const l=n.instantiations||(n.instantiations=new Map),_=Wd(a);let m=l.get(_);return m||l.set(_,m=Uee(n,a)),m}function Uee(n,a){return vE(n,vut(n,a),!0)}function vut(n,a){return cp(n.typeParameters,a)}function D5(n){return n.typeParameters?n.erasedSignatureCache||(n.erasedSignatureCache=but(n)):n}function but(n){return vE(n,H5e(n.typeParameters),!0)}function Sut(n){return n.typeParameters?n.canonicalSignatureCache||(n.canonicalSignatureCache=xut(n)):n}function xut(n){return w5(n,Kt(n.typeParameters,a=>a.target&&!af(a.target)?a.target:a),lr(n.declaration))}function Tut(n){const a=n.typeParameters;if(a){if(n.baseSignatureCache)return n.baseSignatureCache;const l=H5e(a),_=cp(a,Kt(a,h=>af(h)||mn));let m=Kt(a,h=>_s(h,_)||mn);for(let h=0;h{Wee(m)&&!T0e(a,m)&&a.push(hh(m,l.type?ki(l.type):U,qf(l,8),l))})}return a}return Ke}function Wee(n){return!!(n.flags&4108)||DT(n)||!!(n.flags&2097152)&&!hE(n)&&Pe(n.types,Wee)}function I0e(n){return Oi(vr(n.symbol&&n.symbol.declarations,Ic),J6)[0]}function qIe(n,a){var l;let _;if((l=n.symbol)!=null&&l.declarations){for(const m of n.symbol.declarations)if(m.parent.kind===195){const[h=m.parent,k]=Bse(m.parent.parent);if(k.kind===183&&!a){const O=k,j=nve(O);if(j){const W=O.typeArguments.indexOf(h);if(W()=>jht(O,j,ht))),he=_s(re,be);he!==n&&(_=gn(_,he))}}}}else if(k.kind===169&&k.dotDotDotToken||k.kind===191||k.kind===202&&k.dotDotDotToken)_=gn(_,u_(mn));else if(k.kind===204)_=gn(_,Ie);else if(k.kind===168&&k.parent.kind===200)_=gn(_,Yo);else if(k.kind===200&&k.type&&Eo(k.type)===m.parent&&k.parent.kind===194&&k.parent.extendsType===k&&k.parent.checkType.kind===200&&k.parent.checkType.type){const O=k.parent.checkType,j=ki(O.type);_=gn(_,_s(j,PS(xT(Pr(O.typeParameter)),O.typeParameter.constraint?ki(O.typeParameter.constraint):Yo)))}}}return _&&Pa(_)}function GD(n){if(!n.constraint)if(n.target){const a=af(n.target);n.constraint=a?_s(a,n.mapper):nc}else{const a=I0e(n);if(!a)n.constraint=qIe(n)||nc;else{let l=ki(a);l.flags&1&&!Gt(l)&&(l=a.parent.parent.kind===200?Yo:mn),n.constraint=l}}return n.constraint===nc?void 0:n.constraint}function HIe(n){const a=Cc(n.symbol,168),l=Rd(a.parent)?f9(a.parent):a.parent;return l&&Hp(l)}function Wd(n){let a="";if(n){const l=n.length;let _=0;for(;_1&&(a+=":"+h),_+=h}}return a}function t6(n,a){return n?`@${Ia(n)}`+(a?`:${Wd(a)}`:""):""}function qee(n,a){let l=0;for(const _ of n)(a===void 0||!(_.flags&a))&&(l|=Br(_));return l&458752}function pE(n,a){return Pe(a)&&n===js?mn:Gy(n,a)}function Gy(n,a){const l=Wd(a);let _=n.instantiations.get(l);return _||(_=pd(4,n.symbol),n.instantiations.set(l,_),_.objectFlags|=a?qee(a):0,_.target=n,_.resolvedTypeArguments=a),_}function GIe(n){const a=e0(n.flags,n.symbol);return a.objectFlags=n.objectFlags,a.target=n.target,a.resolvedTypeArguments=n.resolvedTypeArguments,a}function O0e(n,a,l,_,m){if(!_){_=r6(a);const k=yE(_);m=l?Qy(k,l):k}const h=pd(4,n.symbol);return h.target=n,h.node=a,h.mapper=l,h.aliasSymbol=_,h.aliasTypeArguments=m,h}function ac(n){var a,l;if(!n.resolvedTypeArguments){if(!ph(n,6))return((a=n.target.localTypeParameters)==null?void 0:a.map(()=>mt))||Ke;const _=n.node,m=_?_.kind===183?zn(n.target.outerTypeParameters,one(_,n.target.localTypeParameters)):_.kind===188?[ki(_.elementType)]:Kt(_.elements,ki):Ke;Tg()?n.resolvedTypeArguments=n.mapper?Qy(m,n.mapper):m:(n.resolvedTypeArguments=((l=n.target.localTypeParameters)==null?void 0:l.map(()=>mt))||Ke,We(n.node||D,n.target.symbol?p.Type_arguments_for_0_circularly_reference_themselves:p.Tuple_type_arguments_circularly_reference_themselves,n.target.symbol&&Ti(n.target.symbol)))}return n.resolvedTypeArguments}function $y(n){return Xe(n.target.typeParameters)}function $Ie(n,a){const l=fc(po(a)),_=l.localTypeParameters;if(_){const m=Xe(n.typeArguments),h=gh(_),k=lr(n);if(!(!fe&&k)&&(m_.length)){const W=k&&Cy(n)&&!tC(n.parent),re=h===_.length?W?p.Expected_0_type_arguments_provide_these_with_an_extends_tag:p.Generic_type_0_requires_1_type_argument_s:W?p.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:p.Generic_type_0_requires_between_1_and_2_type_arguments,be=Hn(l,void 0,2);if(We(n,re,be,h,_.length),!k)return mt}if(n.kind===183&&d5e(n,Xe(n.typeArguments)!==_.length))return O0e(l,n,void 0);const j=zn(l.outerTypeParameters,gv(vJ(n),_,h,k));return Gy(l,j)}return TS(n,a)?l:mt}function dE(n,a,l,_){const m=fc(n);if(m===pn){const W=GM.get(n.escapedName);if(W!==void 0&&a&&a.length===1)return W===4?F0e(a[0]):n6(n,a[0])}const h=Zi(n),k=h.typeParameters,O=Wd(a)+t6(l,_);let j=h.instantiations.get(O);return j||h.instantiations.set(O,j=X5e(m,cp(k,gv(a,k,gh(k),lr(n.valueDeclaration))),l,_)),j}function kut(n,a){if(Uc(a)&1048576){const m=vJ(n),h=t6(a,m);let k=Me.get(h);return k||(k=Pl(1,"error",void 0,`alias ${h}`),k.aliasSymbol=a,k.aliasTypeArguments=m,Me.set(h,k)),k}const l=fc(a),_=Zi(a).typeParameters;if(_){const m=Xe(n.typeArguments),h=gh(_);if(m_.length)return We(n,h===_.length?p.Generic_type_0_requires_1_type_argument_s:p.Generic_type_0_requires_between_1_and_2_type_arguments,Ti(a),h,_.length),mt;const k=r6(n);let O=k&&(XIe(a)||!XIe(k))?k:void 0,j;if(O)j=yE(O);else if(NF(n)){const W=mE(n,2097152,!0);if(W&&W!==ft){const re=iu(W);re&&re.flags&524288&&(O=re,j=vJ(n)||(_?[]:void 0))}}return dE(a,vJ(n),O,j)}return TS(n,a)?l:mt}function XIe(n){var a;const l=(a=n.declarations)==null?void 0:a.find(QA);return!!(l&&hp(l))}function Cut(n){switch(n.kind){case 183:return n.typeName;case 233:const a=n.expression;if(il(a))return a}}function QIe(n){return n.parent?`${QIe(n.parent)}.${n.escapedName}`:n.escapedName}function Hee(n){const l=(n.kind===166?n.right:n.kind===211?n.name:n).escapedText;if(l){const _=n.kind===166?Hee(n.left):n.kind===211?Hee(n.expression):void 0,m=_?`${QIe(_)}.${l}`:l;let h=le.get(m);return h||(le.set(m,h=ro(524288,l,1048576)),h.parent=_,h.links.declaredType=Ut),h}return ft}function mE(n,a,l){const _=Cut(n);if(!_)return ft;const m=ic(_,a,l);return m&&m!==ft?m:l?ft:Hee(_)}function Gee(n,a){if(a===ft)return mt;if(a=jD(a)||a,a.flags&96)return $Ie(n,a);if(a.flags&524288)return kut(n,a);const l=pIe(a);if(l)return TS(n,a)?q_(l):mt;if(a.flags&111551&&$ee(n)){const _=Eut(n,a);return _||(mE(n,788968),fr(a))}return mt}function Eut(n,a){const l=ei(n);if(!l.resolvedJSDocType){const _=fr(a);let m=_;if(a.valueDeclaration){const h=n.kind===205&&n.qualifier;_.symbol&&_.symbol!==a&&h&&(m=Gee(n,_.symbol))}l.resolvedJSDocType=m}return l.resolvedJSDocType}function F0e(n){return L0e(n)?YIe(n,mn):n}function L0e(n){return!!(n.flags&3145728&&Pe(n.types,L0e)||n.flags&33554432&&!$D(n)&&L0e(n.baseType)||n.flags&524288&&!vh(n)||n.flags&432275456&&!DT(n))}function $D(n){return!!(n.flags&33554432&&n.constraint.flags&2)}function M0e(n,a){return a.flags&3||a===n||n.flags&1?n:YIe(n,a)}function YIe(n,a){const l=`${W_(n)}>${W_(a)}`,_=Ds.get(l);if(_)return _;const m=Kh(33554432);return m.baseType=n,m.constraint=a,Ds.set(l,m),m}function R0e(n){return $D(n)?n.baseType:Pa([n.constraint,n.baseType])}function ZIe(n){return n.kind===189&&n.elements.length===1}function KIe(n,a,l){return ZIe(a)&&ZIe(l)?KIe(n,a.elements[0],l.elements[0]):vv(ki(a))===vv(n)?ki(l):void 0}function Put(n,a){let l,_=!0;for(;a&&!Xi(a)&&a.kind!==327;){const m=a.parent;if(m.kind===169&&(_=!_),(_||n.flags&8650752)&&m.kind===194&&a===m.trueType){const h=KIe(n,m.checkType,m.extendsType);h&&(l=gn(l,h))}else if(n.flags&262144&&m.kind===200&&!m.nameType&&a===m.type){const h=ki(m);if(zm(h)===vv(n)){const k=L5(h);if(k){const O=af(k);O&&Rf(O,Q2)&&(l=gn(l,ti([xt,bo])))}}}a=m}return l?M0e(n,Pa(l)):n}function $ee(n){return!!(n.flags&16777216)&&(n.kind===183||n.kind===205)}function TS(n,a){return n.typeArguments?(We(n,p.Type_0_is_not_generic,a?Ti(a):n.typeName?Bo(n.typeName):VM),!1):!0}function e5e(n){if(Je(n.typeName)){const a=n.typeArguments;switch(n.typeName.escapedText){case"String":return TS(n),Ie;case"Number":return TS(n),xt;case"Boolean":return TS(n),Li;case"Void":return TS(n),sr;case"Undefined":return TS(n),Fe;case"Null":return TS(n),de;case"Function":case"function":return TS(n),jt;case"array":return(!a||!a.length)&&!fe?vl:void 0;case"promise":return(!a||!a.length)&&!fe?uz(U):void 0;case"Object":if(a&&a.length===2){if(s9(n)){const l=ki(a[0]),_=ki(a[1]),m=l===Ie||l===xt?[hh(l,_,!1)]:Ke;return qo(void 0,G,Ke,Ke,m)}return U}return TS(n),fe?void 0:U}}}function wut(n){const a=ki(n.type);return X?RJ(a,65536):a}function j0e(n){const a=ei(n);if(!a.resolvedType){if(p0(n)&&KS(n.parent))return a.resolvedSymbol=ft,a.resolvedType=Sl(n.parent.expression);let l,_;const m=788968;$ee(n)&&(_=e5e(n),_||(l=mE(n,m,!0),l===ft?l=mE(n,m|111551):mE(n,m),_=Gee(n,l))),_||(l=mE(n,m),_=Gee(n,l)),a.resolvedSymbol=l,a.resolvedType=_}return a.resolvedType}function vJ(n){return Kt(n.typeArguments,ki)}function t5e(n){const a=ei(n);if(!a.resolvedType){const l=S9e(n);a.resolvedType=q_(Cp(l))}return a.resolvedType}function n5e(n,a){function l(m){const h=m.declarations;if(h)for(const k of h)switch(k.kind){case 263:case 264:case 266:return k}}if(!n)return a?js:Ja;const _=fc(n);return _.flags&524288?Xe(_.typeParameters)!==a?(We(l(n),p.Global_type_0_must_have_1_type_parameter_s,Rc(n),a),a?js:Ja):_:(We(l(n),p.Global_type_0_must_be_a_class_or_interface_type,Rc(n)),a?js:Ja)}function B0e(n,a){return XD(n,111551,a?p.Cannot_find_global_value_0:void 0)}function J0e(n,a){return XD(n,788968,a?p.Cannot_find_global_type_0:void 0)}function Xee(n,a,l){const _=XD(n,788968,l?p.Cannot_find_global_type_0:void 0);if(_&&(fc(_),Xe(Zi(_).typeParameters)!==a)){const m=_.declarations&&Cn(_.declarations,im);We(m,p.Global_type_0_must_have_1_type_parameter_s,Rc(_),a);return}return _}function XD(n,a,l){return Lc(void 0,n,a,l,n,!1,!1,!1)}function bl(n,a,l){const _=J0e(n,l);return _||l?n5e(_,a):void 0}function Dut(){return sh||(sh=bl("TypedPropertyDescriptor",1,!0)||js)}function Aut(){return ir||(ir=bl("TemplateStringsArray",0,!0)||Ja)}function r5e(){return ai||(ai=bl("ImportMeta",0,!0)||Ja)}function i5e(){if(!Yr){const n=ro(0,"ImportMetaExpression"),a=r5e(),l=ro(4,"meta",8);l.parent=n,l.links.type=a;const _=ha([l]);n.members=_,Yr=qo(n,_,Ke,Ke,Ke)}return Yr}function s5e(n){return os||(os=bl("ImportCallOptions",0,n))||Ja}function z0e(n){return qa||(qa=bl("ImportAttributes",0,n))||Ja}function a5e(n){return nf||(nf=B0e("Symbol",n))}function Nut(n){return ud||(ud=J0e("SymbolConstructor",n))}function o5e(){return hg||(hg=bl("Symbol",0,!1))||Ja}function bJ(n){return w0||(w0=bl("Promise",1,n))||js}function c5e(n){return c_||(c_=bl("PromiseLike",1,n))||js}function U0e(n){return D0||(D0=B0e("Promise",n))}function Iut(n){return ep||(ep=bl("PromiseConstructorLike",0,n))||Ja}function Qee(n){return R||(R=bl("AsyncIterable",1,n))||js}function Out(n){return Te||(Te=bl("AsyncIterator",3,n))||js}function Fut(n){return at||(at=bl("AsyncIterableIterator",1,n))||js}function Lut(n){return Ht||(Ht=bl("AsyncGenerator",3,n))||js}function V0e(n){return Hh||(Hh=bl("Iterable",1,n))||js}function Mut(n){return hf||(hf=bl("Iterator",3,n))||js}function Rut(n){return te||(te=bl("IterableIterator",1,n))||js}function jut(n){return ct||(ct=bl("Generator",3,n))||js}function But(n){return Bt||(Bt=bl("IteratorYieldResult",1,n))||js}function Jut(n){return Vt||(Vt=bl("IteratorReturnResult",1,n))||js}function l5e(n){return Ha||(Ha=bl("Disposable",0,n))||Ja}function zut(n){return Zc||(Zc=bl("AsyncDisposable",0,n))||Ja}function u5e(n,a=0){const l=XD(n,788968,void 0);return l&&n5e(l,a)}function Uut(){return Lu||(Lu=Xee("Extract",2,!0)||ft),Lu===ft?void 0:Lu}function Vut(){return $l||($l=Xee("Omit",2,!0)||ft),$l===ft?void 0:$l}function W0e(n){return tp||(tp=Xee("Awaited",1,n)||(n?ft:void 0)),tp===ft?void 0:tp}function Wut(){return yf||(yf=bl("BigInt",0,!1))||Ja}function qut(n){return lm??(lm=bl("ClassDecoratorContext",1,n))??js}function Hut(n){return um??(um=bl("ClassMethodDecoratorContext",2,n))??js}function Gut(n){return $i??($i=bl("ClassGetterDecoratorContext",2,n))??js}function $ut(n){return A0??(A0=bl("ClassSetterDecoratorContext",2,n))??js}function Xut(n){return Ry??(Ry=bl("ClassAccessorDecoratorContext",2,n))??js}function Qut(n){return _m??(_m=bl("ClassAccessorDecoratorTarget",2,n))??js}function Yut(n){return rS??(rS=bl("ClassAccessorDecoratorResult",2,n))??js}function Zut(n){return iS??(iS=bl("ClassFieldDecoratorContext",2,n))??js}function Kut(){return W1||(W1=B0e("NaN",!1))}function e_t(){return So||(So=Xee("Record",2,!0)||ft),So===ft?void 0:So}function A5(n,a){return n!==js?Gy(n,a):Ja}function _5e(n){return A5(Dut(),[n])}function f5e(n){return A5(V0e(!0),[n])}function u_(n,a){return A5(a?la:sa,[n])}function q0e(n){switch(n.kind){case 190:return 2;case 191:return p5e(n);case 202:return n.questionToken?2:n.dotDotDotToken?p5e(n):1;default:return 1}}function p5e(n){return CJ(n.type)?4:8}function t_t(n){const a=i_t(n.parent);if(CJ(n))return a?la:sa;const _=Kt(n.elements,q0e);return H0e(_,a,Kt(n.elements,n_t))}function n_t(n){return O4(n)||ws(n)?n:void 0}function d5e(n,a){return!!r6(n)||m5e(n)&&(n.kind===188?hv(n.elementType):n.kind===189?Pe(n.elements,hv):a||Pe(n.typeArguments,hv))}function m5e(n){const a=n.parent;switch(a.kind){case 196:case 202:case 183:case 192:case 193:case 199:case 194:case 198:case 188:case 189:return m5e(a);case 265:return!0}return!1}function hv(n){switch(n.kind){case 183:return $ee(n)||!!(mE(n,788968).flags&524288);case 186:return!0;case 198:return n.operator!==158&&hv(n.type);case 196:case 190:case 202:case 323:case 321:case 322:case 316:return hv(n.type);case 191:return n.type.kind!==188||hv(n.type.elementType);case 192:case 193:return Pe(n.types,hv);case 199:return hv(n.objectType)||hv(n.indexType);case 194:return hv(n.checkType)||hv(n.extendsType)||hv(n.trueType)||hv(n.falseType)}return!1}function r_t(n){const a=ei(n);if(!a.resolvedType){const l=t_t(n);if(l===js)a.resolvedType=Ja;else if(!(n.kind===189&&Pe(n.elements,_=>!!(q0e(_)&8)))&&d5e(n))a.resolvedType=n.kind===189&&n.elements.length===0?l:O0e(l,n,void 0);else{const _=n.kind===188?[ki(n.elementType)]:Kt(n.elements,ki);a.resolvedType=G0e(l,_)}}return a.resolvedType}function i_t(n){return Sx(n)&&n.operator===148}function yh(n,a,l=!1,_=[]){const m=H0e(a||Kt(n,h=>1),l,_);return m===js?Ja:n.length?G0e(m,n):m}function H0e(n,a,l){if(n.length===1&&n[0]&4)return a?la:sa;const _=Kt(n,h=>h&1?"#":h&2?"?":h&4?".":"*").join()+(a?"R":"")+(Pe(l,h=>!!h)?","+Kt(l,h=>h?ho(h):"_").join(","):"");let m=Os.get(_);return m||Os.set(_,m=s_t(n,a,l)),m}function s_t(n,a,l){const _=n.length,m=Bc(n,be=>!!(be&9));let h;const k=[];let O=0;if(_){h=new Array(_);for(let be=0;be<_;be++){const he=h[be]=$p(),qe=n[be];if(O|=qe,!(O&12)){const ht=ro(4|(qe&2?16777216:0),""+be,a?8:0);ht.links.tupleLabelDeclaration=l==null?void 0:l[be],ht.links.type=he,k.push(ht)}}}const j=k.length,W=ro(4,"length",a?8:0);if(O&12)W.links.type=xt;else{const be=[];for(let he=m;he<=_;he++)be.push(Wm(he));W.links.type=ti(be)}k.push(W);const re=pd(12);return re.typeParameters=h,re.outerTypeParameters=void 0,re.localTypeParameters=h,re.instantiations=new Map,re.instantiations.set(Wd(re.typeParameters),re),re.target=re,re.resolvedTypeArguments=re.typeParameters,re.thisType=$p(),re.thisType.isThisType=!0,re.thisType.constraint=re,re.declaredProperties=k,re.declaredCallSignatures=Ke,re.declaredConstructSignatures=Ke,re.declaredIndexInfos=Ke,re.elementFlags=n,re.minLength=m,re.fixedLength=j,re.hasRestElement=!!(O&12),re.combinedFlags=O,re.readonly=a,re.labeledElementDeclarations=l,re}function G0e(n,a){return n.objectFlags&8?$0e(n,a):Gy(n,a)}function $0e(n,a){var l,_,m,h;if(!(n.combinedFlags&14))return Gy(n,a);if(n.combinedFlags&8){const ht=Gs(a,(Pt,on)=>!!(n.elementFlags[on]&8&&Pt.flags&1179648));if(ht>=0)return xJ(Kt(a,(Pt,on)=>n.elementFlags[on]&8?Pt:mn))?kc(a[ht],Pt=>$0e(n,lU(a,ht,Pt))):mt}const k=[],O=[],j=[];let W=-1,re=-1,be=-1;for(let ht=0;ht=1e4)return We(D,Ih(D)?p.Type_produces_a_tuple_type_that_is_too_large_to_represent:p.Expression_produces_a_tuple_type_that_is_too_large_to_represent),mt;dt(un,(or,Rn)=>{var ln;return qe(or,Pt.target.elementFlags[Rn],(ln=Pt.target.labeledElementDeclarations)==null?void 0:ln[Rn])})}else qe(Yy(Pt)&&q2(Pt,xt)||mt,4,(m=n.labeledElementDeclarations)==null?void 0:m[ht]);else qe(Pt,on,(h=n.labeledElementDeclarations)==null?void 0:h[ht])}for(let ht=0;ht=0&&reO[re+Pt]&8?op(ht,xt):ht)),k.splice(re+1,be-re),O.splice(re+1,be-re),j.splice(re+1,be-re));const he=H0e(O,n.readonly,j);return he===js?Ja:O.length?Gy(he,k):he;function qe(ht,Pt,on){Pt&1&&(W=O.length),Pt&4&&re<0&&(re=O.length),Pt&6&&(be=O.length),k.push(Pt&2?Mf(ht,!0):ht),O.push(Pt),j.push(on)}}function QD(n,a,l=0){const _=n.target,m=$y(n)-l;return a>_.fixedLength?qft(n)||yh(Ke):yh(ac(n).slice(a,m),_.elementFlags.slice(a,m),!1,_.labeledElementDeclarations&&_.labeledElementDeclarations.slice(a,m))}function g5e(n){return ti(gn(yre(n.target.fixedLength,a=>xf(""+a)),Cg(n.target.readonly?la:sa)))}function a_t(n,a){const l=Gs(n.elementFlags,_=>!(_&a));return l>=0?l:n.elementFlags.length}function N5(n,a){return n.elementFlags.length-lf(n.elementFlags,l=>!(l&a))-1}function X0e(n){return n.fixedLength+N5(n,3)}function kS(n){const a=ac(n),l=$y(n);return a.length===l?a:a.slice(0,l)}function o_t(n){return Mf(ki(n.type),!0)}function W_(n){return n.id}function G0(n,a){return ay(n,a,W_,mc)>=0}function SJ(n,a){const l=ay(n,a,W_,mc);return l<0?(n.splice(~l,0,a),!0):!1}function c_t(n,a,l){const _=l.flags;if(!(_&131072))if(a|=_&473694207,_&465829888&&(a|=33554432),_&2097152&&Br(l)&67108864&&(a|=536870912),l===Et&&(a|=8388608),!X&&_&98304)Br(l)&65536||(a|=4194304);else{const m=n.length,h=m&&l.id>n[m-1].id?~m:ay(n,l,W_,mc);h<0&&n.splice(~h,0,l)}return a}function h5e(n,a,l){let _;for(const m of l)m!==_&&(a=m.flags&1048576?h5e(n,a|(d_t(m)?1048576:0),m.types):c_t(n,a,m),_=m);return a}function l_t(n,a){var l;if(n.length<2)return n;const _=Wd(n),m=Sa.get(_);if(m)return m;const h=a&&Pe(n,W=>!!(W.flags&524288)&&!Sf(W)&&hye(Um(W))),k=n.length;let O=k,j=0;for(;O>0;){O--;const W=n[O];if(h||W.flags&469499904){if(W.flags&262144&&H0(W).flags&1048576){Eg(W,ti(Kt(n,he=>he===W?Wr:he)),_d)&&a1(n,O);continue}const re=W.flags&61603840?Cn(Po(W),he=>qm(fr(he))):void 0,be=re&&q_(fr(re));for(const he of n)if(W!==he){if(j===1e5&&j/(k-O)*k>1e6){(l=cr)==null||l.instant(cr.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:n.map(ht=>ht.id)}),We(D,p.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(j++,re&&he.flags&61603840){const qe=He(he,re.escapedName);if(qe&&qm(qe)&&q_(qe)!==be)continue}if(Eg(W,he,_d)&&(!(Br(qy(W))&1)||!(Br(qy(he))&1)||X2(W,he))){a1(n,O);break}}}}return Sa.set(_,n),n}function u_t(n,a,l){let _=n.length;for(;_>0;){_--;const m=n[_],h=m.flags;(h&402653312&&a&4||h&256&&a&8||h&2048&&a&64||h&8192&&a&4096||l&&h&32768&&a&16384||ES(m)&&G0(n,m.regularType))&&a1(n,_)}}function __t(n){const a=vr(n,DT);if(a.length){let l=n.length;for(;l>0;){l--;const _=n[l];_.flags&128&&Pe(a,m=>f_t(_,m))&&a1(n,l)}}}function f_t(n,a){return a.flags&134217728?Pte(n,a):Ete(n,a)}function p_t(n){const a=[];for(const l of n)if(l.flags&2097152&&Br(l)&67108864){const _=l.types[0].flags&8650752?0:1;Jf(a,l.types[_])}for(const l of a){const _=[];for(const h of n)if(h.flags&2097152&&Br(h)&67108864){const k=h.types[0].flags&8650752?0:1;h.types[k]===l&&SJ(_,h.types[1-k])}const m=l_(l);if(Rf(m,h=>G0(_,h))){let h=n.length;for(;h>0;){h--;const k=n[h];if(k.flags&2097152&&Br(k)&67108864){const O=k.types[0].flags&8650752?0:1;k.types[O]===l&&G0(_,k.types[1-O])&&a1(n,h)}}SJ(n,l)}}}function d_t(n){return!!(n.flags&1048576&&(n.aliasSymbol||n.origin))}function y5e(n,a){for(const l of a)if(l.flags&1048576){const _=l.origin;l.aliasSymbol||_&&!(_.flags&1048576)?Jf(n,l):_&&_.flags&1048576&&y5e(n,_.types)}}function Q0e(n,a){const l=$C(n);return l.types=a,l}function ti(n,a=1,l,_,m){if(n.length===0)return Wr;if(n.length===1)return n[0];if(n.length===2&&!m&&(n[0].flags&1048576||n[1].flags&1048576)){const h=a===0?"N":a===2?"S":"L",k=n[0].id=2&&h[0]===Fe&&h[1]===I&&a1(h,1),(k&402664352||k&16384&&k&32768)&&u_t(h,k,!!(a&2)),k&128&&k&402653184&&__t(h),k&536870912&&p_t(h),a===2&&(h=l_t(h,!!(k&524288)),!h))return mt;if(h.length===0)return k&65536?k&4194304?de:Be:k&32768?k&4194304?Fe:Ot:Wr}if(!m&&k&1048576){const j=[];y5e(j,n);const W=[];for(const be of h)Pe(j,he=>G0(he.types,be))||W.push(be);if(!l&&j.length===1&&W.length===0)return j[0];if(D_(j,(be,he)=>be+he.types.length,0)+W.length===h.length){for(const be of j)SJ(W,be);m=Q0e(1048576,W)}}const O=(k&36323331?0:32768)|(k&2097152?16777216:0);return Z0e(h,O,l,_,m)}function m_t(n,a){let l;const _=[];for(const h of n){const k=hd(h);if(k){if(k.kind!==0&&k.kind!==1||l&&!Y0e(l,k))return;l=k,_.push(k.type)}else{const O=a!==2097152?To(h):void 0;if(O!==tn&&O!==Sn)return}}if(!l)return;const m=UIe(_,a);return yJ(l.kind,l.parameterName,l.parameterIndex,m)}function Y0e(n,a){return n.kind===a.kind&&n.parameterIndex===a.parameterIndex}function Z0e(n,a,l,_,m){if(n.length===0)return Wr;if(n.length===1)return n[0];const k=(m?m.flags&1048576?`|${Wd(m.types)}`:m.flags&2097152?`&${Wd(m.types)}`:`#${m.type.id}|${Wd(n)}`:Wd(n))+t6(l,_);let O=On.get(k);return O||(O=Kh(1048576),O.objectFlags=a|qee(n,98304),O.types=n,O.origin=m,O.aliasSymbol=l,O.aliasTypeArguments=_,n.length===2&&n[0].flags&512&&n[1].flags&512&&(O.flags|=16,O.intrinsicName="boolean"),On.set(k,O)),O}function g_t(n){const a=ei(n);if(!a.resolvedType){const l=r6(n);a.resolvedType=ti(Kt(n.types,ki),1,l,yE(l))}return a.resolvedType}function h_t(n,a,l){const _=l.flags;return _&2097152?b5e(n,a,l.types):(vh(l)?a&16777216||(a|=16777216,n.set(l.id.toString(),l)):(_&3?l===Et&&(a|=8388608):(X||!(_&98304))&&(l===I&&(a|=262144,l=Fe),n.has(l.id.toString())||(l.flags&109472&&a&109472&&(a|=67108864),n.set(l.id.toString(),l))),a|=_&473694207),a)}function b5e(n,a,l){for(const _ of l)a=h_t(n,a,q_(_));return a}function y_t(n,a){let l=n.length;for(;l>0;){l--;const _=n[l];(_.flags&4&&a&402653312||_.flags&8&&a&256||_.flags&64&&a&2048||_.flags&4096&&a&8192||_.flags&16384&&a&32768||vh(_)&&a&470302716)&&a1(n,l)}}function v_t(n,a){for(const l of n)if(!G0(l.types,a)){const _=a.flags&128?Ie:a.flags&288?xt:a.flags&2048?Ft:a.flags&8192?wi:void 0;if(!_||!G0(l.types,_))return!1}return!0}function b_t(n){let a=n.length;const l=vr(n,_=>!!(_.flags&128));for(;a>0;){a--;const _=n[a];if(_.flags&402653184){for(const m of l)if(Sv(m,_)){a1(n,a);break}else if(DT(_))return!0}}return!1}function S5e(n,a){for(let l=0;l!(_.flags&a))}function S_t(n){let a;const l=Gs(n,k=>!!(Br(k)&32768));if(l<0)return!1;let _=l+1;for(;_!!(ht.flags&469893116)||vh(ht))){if(wJ(qe,he))return be;if(!(qe.flags&1048576&&vm(qe,ht=>wJ(ht,he)))&&!wJ(he,qe))return Wr;O=67108864}}}const j=Wd(k)+t6(a,l);let W=Er.get(j);if(!W){if(h&1048576)if(S_t(k))W=Pa(k,a,l);else if(Pn(k,re=>!!(re.flags&1048576&&re.types[0].flags&32768))){const re=Pe(k,U5)?I:Fe;S5e(k,32768),W=ti([Pa(k),re],1,a,l)}else if(Pn(k,re=>!!(re.flags&1048576&&(re.types[0].flags&65536||re.types[1].flags&65536))))S5e(k,65536),W=ti([Pa(k),de],1,a,l);else if(k.length>=4){const re=Math.floor(k.length/2);W=Pa([Pa(k.slice(0,re)),Pa(k.slice(re))],a,l)}else{if(!xJ(k))return mt;const re=T_t(k),be=Pe(re,he=>!!(he.flags&2097152))&&K0e(re)>K0e(k)?Q0e(2097152,k):void 0;W=ti(re,1,a,l,be)}else W=x_t(k,O,a,l);Er.set(j,W)}return W}function x5e(n){return D_(n,(a,l)=>l.flags&1048576?a*l.types.length:l.flags&131072?0:a,1)}function xJ(n){var a;const l=x5e(n);return l>=1e5?((a=cr)==null||a.instant(cr.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:n.map(_=>_.id),size:l}),We(D,p.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function T_t(n){const a=x5e(n),l=[];for(let _=0;_=0;O--)if(n[O].flags&1048576){const j=n[O].types,W=j.length;m[O]=j[h%W],h=Math.floor(h/W)}const k=Pa(m);k.flags&131072||l.push(k)}return l}function T5e(n){return!(n.flags&3145728)||n.aliasSymbol?1:n.flags&1048576&&n.origin?T5e(n.origin):K0e(n.types)}function K0e(n){return D_(n,(a,l)=>a+T5e(l),0)}function k_t(n){const a=ei(n);if(!a.resolvedType){const l=r6(n),_=Kt(n.types,ki),m=_.length===2?_.indexOf(El):-1,h=m>=0?_[1-m]:mn,k=!!(h.flags&76||h.flags&134217728&&DT(h));a.resolvedType=Pa(_,l,yE(l),k)}return a.resolvedType}function k5e(n,a){const l=Kh(4194304);return l.type=n,l.indexFlags=a,l}function C_t(n){const a=$C(4194304);return a.type=n,a}function C5e(n,a){return a&1?n.resolvedStringIndexType||(n.resolvedStringIndexType=k5e(n,1)):n.resolvedIndexType||(n.resolvedIndexType=k5e(n,0))}function E5e(n,a){const l=zm(n),_=Qp(n),m=Hy(n.target||n);if(!m&&!(a&2))return _;const h=[];if(NT(_)){if(_E(n))return C5e(n,a);jT(_,O)}else if(_E(n)){const j=of(TT(n));d0e(j,8576,!!(a&1),O)}else jT(pJ(_),O);const k=a&2?Dl(ti(h),j=>!(j.flags&5)):ti(h);if(k.flags&1048576&&_.flags&1048576&&Wd(k.types)===Wd(_.types))return _;return k;function O(j){const W=m?_s(m,F5(n.mapper,l,j)):j;h.push(W===Ie?As:W)}}function E_t(n){const a=zm(n);return l(Hy(n)||a);function l(_){return _.flags&470810623?!0:_.flags&16777216?_.root.isDistributive&&_.checkType===a:_.flags&137363456?Pn(_.types,l):_.flags&8388608?l(_.objectType)&&l(_.indexType):_.flags&33554432?l(_.baseType)&&l(_.constraint):_.flags&268435456?l(_.type):!1}}function Xy(n){if(Qi(n))return Wr;if(Hf(n))return q_(ms(n));if(co(n))return q_(i0(n));const a=ux(n);return a!==void 0?xf(Hi(a)):vt(n)?q_(ms(n)):Wr}function gE(n,a,l){if(l||!(nd(n)&6)){let _=Zi(Ree(n)).nameType;if(!_){const m=Ms(n.valueDeclaration);_=n.escapedName==="default"?xf("default"):m&&Xy(m)||(aN(n)?void 0:xf(Rc(n)))}if(_&&_.flags&a)return _}return Wr}function P5e(n,a){return!!(n.flags&a||n.flags&2097152&&Pe(n.types,l=>P5e(l,a)))}function P_t(n,a,l){const _=l&&(Br(n)&7||n.aliasSymbol)?C_t(n):void 0,m=Kt(Po(n),k=>gE(k,a)),h=Kt(V_(n),k=>k!==qr&&P5e(k.keyType,a)?k.keyType===Ie&&a&8?As:k.keyType:Wr);return ti(zn(m,h),1,void 0,void 0,_)}function eye(n,a=0){return!!(n.flags&58982400||Tv(n)||Sf(n)&&(!E_t(n)||Bee(n)===2)||n.flags&1048576&&!(a&4)&&S0e(n)||n.flags&2097152&&Hc(n,465829888)&&Pe(n.types,vh))}function Cg(n,a=Ue){return n=Vm(n),$D(n)?F0e(Cg(n.baseType,a)):eye(n,a)?C5e(n,a):n.flags&1048576?Pa(Kt(n.types,l=>Cg(l,a))):n.flags&2097152?ti(Kt(n.types,l=>Cg(l,a))):Br(n)&32?E5e(n,a):n===Et?Et:n.flags&2?Wr:n.flags&131073?Yo:P_t(n,(a&2?128:402653316)|(a&1?0:12584),a===Ue)}function w5e(n){if(Ne)return n;const a=Uut();return a?dE(a,[n,Ie]):Ie}function w_t(n){const a=w5e(Cg(n));return a.flags&131072?Ie:a}function D_t(n){const a=ei(n);if(!a.resolvedType)switch(n.operator){case 143:a.resolvedType=Cg(ki(n.type));break;case 158:a.resolvedType=n.type.kind===155?cye(eN(n.parent)):mt;break;case 148:a.resolvedType=ki(n.type);break;default:w.assertNever(n.operator)}return a.resolvedType}function A_t(n){const a=ei(n);return a.resolvedType||(a.resolvedType=wT([n.head.text,...Kt(n.templateSpans,l=>l.literal.text)],Kt(n.templateSpans,l=>ki(l.type)))),a.resolvedType}function wT(n,a){const l=Gs(a,W=>!!(W.flags&1179648));if(l>=0)return xJ(a)?kc(a[l],W=>wT(n,lU(a,l,W))):mt;if(Ai(a,Et))return Et;const _=[],m=[];let h=n[0];if(!j(n,a))return Ie;if(_.length===0)return xf(h);if(m.push(h),Pn(m,W=>W==="")){if(Pn(_,W=>!!(W.flags&4)))return Ie;if(_.length===1&&DT(_[0]))return _[0]}const k=`${Wd(_)}|${Kt(m,W=>W.length).join(",")}|${m.join("")}`;let O=vi.get(k);return O||vi.set(k,O=I_t(m,_)),O;function j(W,re){for(let be=0;ben6(n,l)):a.flags&128?xf(D5e(n,a.value)):a.flags&134217728?wT(...O_t(n,a.texts,a.types)):a.flags&268435456&&n===a.symbol?a:a.flags&268435461||NT(a)?A5e(n,a):TJ(a)?A5e(n,wT(["",""],[a])):a}function D5e(n,a){switch(GM.get(n.escapedName)){case 0:return a.toUpperCase();case 1:return a.toLowerCase();case 2:return a.charAt(0).toUpperCase()+a.slice(1);case 3:return a.charAt(0).toLowerCase()+a.slice(1)}return a}function O_t(n,a,l){switch(GM.get(n.escapedName)){case 0:return[a.map(_=>_.toUpperCase()),l.map(_=>n6(n,_))];case 1:return[a.map(_=>_.toLowerCase()),l.map(_=>n6(n,_))];case 2:return[a[0]===""?a:[a[0].charAt(0).toUpperCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[n6(n,l[0]),...l.slice(1)]:l];case 3:return[a[0]===""?a:[a[0].charAt(0).toLowerCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[n6(n,l[0]),...l.slice(1)]:l]}return[a,l]}function A5e(n,a){const l=`${Ia(n)},${W_(a)}`;let _=ts.get(l);return _||ts.set(l,_=F_t(n,a)),_}function F_t(n,a){const l=e0(268435456,n);return l.type=a,l}function L_t(n,a,l,_,m){const h=Kh(8388608);return h.objectType=n,h.indexType=a,h.accessFlags=l,h.aliasSymbol=_,h.aliasTypeArguments=m,h}function I5(n){if(fe)return!1;if(Br(n)&4096)return!0;if(n.flags&1048576)return Pn(n.types,I5);if(n.flags&2097152)return Pe(n.types,I5);if(n.flags&465829888){const a=y0e(n);return a!==n&&I5(a)}return!1}function Yee(n,a){return Od(n)?Fd(n):a&&Tl(a)?ux(a):void 0}function tye(n,a){if(a.flags&8208){const l=Vn(n.parent,_=>!$o(_))||n.parent;return fb(l)?Zm(l)&&Je(n)&&BOe(l,n):Pn(a.declarations,_=>!oa(_)||Jy(_))}return!0}function N5e(n,a,l,_,m,h){const k=m&&m.kind===212?m:void 0,O=m&&Qi(m)?void 0:Yee(l,m);if(O!==void 0){if(h&256)return eb(a,O)||U;const W=Ea(a,O);if(W){if(h&64&&m&&W.declarations&&$1(W)&&tye(m,W)){const be=(k==null?void 0:k.argumentExpression)??(xx(m)?m.indexType:m);zy(be,W.declarations,O)}if(k){if(tz(W,k,XFe(k.expression,a.symbol)),j9e(k,W,Tk(k))){We(k.argumentExpression,p.Cannot_assign_to_0_because_it_is_a_read_only_property,Ti(W));return}if(h&8&&(ei(m).resolvedSymbol=W),UFe(k,W))return it}const re=h&4?SS(W):fr(W);return k&&Tk(k)!==1?Ev(k,re):m&&xx(m)&&U5(re)?ti([re,Fe]):re}if(Rf(a,Ga)&&Jh(O)){const re=+O;if(m&&Rf(a,be=>!be.target.hasRestElement)&&!(h&16)){const be=nye(m);if(Ga(a)){if(re<0)return We(be,p.A_tuple_type_cannot_be_indexed_with_a_negative_value),Fe;We(be,p.Tuple_type_0_of_length_1_has_no_element_at_index_2,Hn(a),$y(a),Hi(O))}else We(be,p.Property_0_does_not_exist_on_type_1,Hi(O),Hn(a))}if(re>=0)return j(r0(a,xt)),vOe(a,re,h&1?I:void 0)}}if(!(l.flags&98304)&&$u(l,402665900)){if(a.flags&131073)return a;const W=E5(a,l)||r0(a,Ie);if(W){if(h&2&&W.keyType!==xt){k&&(h&4?We(k,p.Type_0_is_generic_and_can_only_be_indexed_for_reading,Hn(n)):We(k,p.Type_0_cannot_be_used_to_index_type_1,Hn(l),Hn(n)));return}if(m&&W.keyType===Ie&&!$u(l,12)){const re=nye(m);return We(re,p.Type_0_cannot_be_used_as_an_index_type,Hn(l)),h&1?ti([W.type,I]):W.type}return j(W),h&1&&!(a.symbol&&a.symbol.flags&384&&l.symbol&&l.flags&1024&&rf(l.symbol)===a.symbol)?ti([W.type,I]):W.type}if(l.flags&131072)return Wr;if(I5(a))return U;if(k&&!ine(a)){if(K2(a)){if(fe&&l.flags&384)return _o.add(Rr(k,p.Property_0_does_not_exist_on_type_1,l.value,Hn(a))),Fe;if(l.flags&12){const re=Kt(a.properties,be=>fr(be));return ti(gn(re,Fe))}}if(a.symbol===st&&O!==void 0&&st.exports.has(O)&&st.exports.get(O).flags&418)We(k,p.Property_0_does_not_exist_on_type_1,Hi(O),Hn(a));else if(fe&&!z.suppressImplicitAnyIndexErrors&&!(h&128))if(O!==void 0&&HFe(O,a)){const re=Hn(a);We(k,p.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,O,re,re+"["+Ol(k.argumentExpression)+"]")}else if(q2(a,xt))We(k.argumentExpression,p.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let re;if(O!==void 0&&(re=E1e(O,a)))re!==void 0&&We(k.argumentExpression,p.Property_0_does_not_exist_on_type_1_Did_you_mean_2,O,Hn(a),re);else{const be=Omt(a,k,l);if(be!==void 0)We(k,p.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Hn(a),be);else{let he;if(l.flags&1024)he=Hs(void 0,p.Property_0_does_not_exist_on_type_1,"["+Hn(l)+"]",Hn(a));else if(l.flags&8192){const qe=xp(l.symbol,k);he=Hs(void 0,p.Property_0_does_not_exist_on_type_1,"["+qe+"]",Hn(a))}else l.flags&128||l.flags&256?he=Hs(void 0,p.Property_0_does_not_exist_on_type_1,l.value,Hn(a)):l.flags&12&&(he=Hs(void 0,p.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Hn(l),Hn(a)));he=Hs(he,p.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Hn(_),Hn(a)),_o.add(m0(qn(k),k,he))}}}return}}if(I5(a))return U;if(m){const W=nye(m);l.flags&384?We(W,p.Property_0_does_not_exist_on_type_1,""+l.value,Hn(a)):l.flags&12?We(W,p.Type_0_has_no_matching_index_signature_for_type_1,Hn(a),Hn(l)):We(W,p.Type_0_cannot_be_used_as_an_index_type,Hn(l))}if(Dt(l))return l;return;function j(W){W&&W.isReadonly&&k&&(Lh(k)||qW(k))&&We(k,p.Index_signature_in_type_0_only_permits_reading,Hn(a))}}function nye(n){return n.kind===212?n.argumentExpression:n.kind===199?n.indexType:n.kind===167?n.expression:n}function TJ(n){if(n.flags&2097152){let a=!1;for(const l of n.types)if(l.flags&101248||TJ(l))a=!0;else if(!(l.flags&524288))return!1;return a}return!!(n.flags&77)||DT(n)}function DT(n){return!!(n.flags&134217728)&&Pn(n.types,TJ)||!!(n.flags&268435456)&&TJ(n.type)}function I5e(n){return!!(n.flags&402653184)&&!DT(n)}function hE(n){return!!O5(n)}function AT(n){return!!(O5(n)&4194304)}function NT(n){return!!(O5(n)&8388608)}function O5(n){return n.flags&3145728?(n.objectFlags&2097152||(n.objectFlags|=2097152|D_(n.types,(a,l)=>a|O5(l),0)),n.objectFlags&12582912):n.flags&33554432?(n.objectFlags&2097152||(n.objectFlags|=2097152|O5(n.baseType)|O5(n.constraint)),n.objectFlags&12582912):(n.flags&58982400||Sf(n)||Tv(n)?4194304:0)|(n.flags&63176704||I5e(n)?8388608:0)}function $0(n,a){return n.flags&8388608?R_t(n,a):n.flags&16777216?j_t(n,a):n}function O5e(n,a,l){if(n.flags&1048576||n.flags&2097152&&!eye(n)){const _=Kt(n.types,m=>$0(op(m,a),l));return n.flags&2097152||l?Pa(_):ti(_)}}function M_t(n,a,l){if(a.flags&1048576){const _=Kt(a.types,m=>$0(op(n,m),l));return l?Pa(_):ti(_)}}function R_t(n,a){const l=a?"simplifiedForWriting":"simplifiedForReading";if(n[l])return n[l]===ku?n:n[l];n[l]=ku;const _=$0(n.objectType,a),m=$0(n.indexType,a),h=M_t(_,m,a);if(h)return n[l]=h;if(!(m.flags&465829888)){const k=O5e(_,m,a);if(k)return n[l]=k}if(Tv(_)&&m.flags&296){const k=t8(_,m.flags&8?0:_.target.fixedLength,0,a);if(k)return n[l]=k}return Sf(_)&&Bee(_)!==2?n[l]=kc(Zee(_,n.indexType),k=>$0(k,a)):n[l]=n}function j_t(n,a){const l=n.checkType,_=n.extendsType,m=G2(n),h=$2(n);if(h.flags&131072&&vv(m)===vv(l)){if(l.flags&1||wa(OT(l),OT(_)))return $0(m,a);if(F5e(l,_))return Wr}else if(m.flags&131072&&vv(h)===vv(l)){if(!(l.flags&1)&&wa(OT(l),OT(_)))return Wr;if(l.flags&1||F5e(l,_))return $0(h,a)}return n}function F5e(n,a){return!!(ti([fJ(n,a),Wr]).flags&131072)}function Zee(n,a){const l=cp([zm(n)],[a]),_=wS(n.mapper,l);return _s(q0(n.target||n),_)}function op(n,a,l=0,_,m,h){return yv(n,a,l,_,m,h)||(_?mt:mn)}function L5e(n,a){return Rf(n,l=>{if(l.flags&384){const _=Fd(l);if(Jh(_)){const m=+_;return m>=0&&m0&&!Pe(n.elements,a=>QL(a)||YL(a)||O4(a)&&!!(a.questionToken||a.dotDotDotToken))}function j5e(n,a){return hE(n)||a&&Ga(n)&&Pe(kS(n),hE)}function iye(n,a,l,_,m){let h,k,O=0;for(;;){if(O===1e3)return We(D,p.Type_instantiation_is_excessively_deep_and_possibly_infinite),mt;const W=_s(vv(n.checkType),a),re=_s(n.extendsType,a);if(W===mt||re===mt)return mt;if(W===Et||re===Et)return Et;const be=tN(n.node.checkType),he=tN(n.node.extendsType),qe=R5e(be)&&R5e(he)&&Xe(be.elements)===Xe(he.elements),ht=j5e(W,qe);let Pt;if(n.inferTypeParameters){const un=W5(n.inferTypeParameters,void 0,0);a&&(un.nonFixingMapper=wS(un.nonFixingMapper,a)),ht||K0(un.inferences,W,re,1536),Pt=a?wS(un.mapper,a):un.mapper}const on=Pt?_s(n.extendsType,Pt):re;if(!ht&&!j5e(on,qe)){if(!(on.flags&3)&&(W.flags&1||!wa(M5(W),M5(on)))){(W.flags&1||l&&!(on.flags&131072)&&vm(M5(on),or=>wa(or,M5(W))))&&(k||(k=[])).push(_s(ki(n.node.trueType),Pt||a));const un=ki(n.node.falseType);if(un.flags&16777216){const or=un.root;if(or.node.parent===n.node&&(!or.isDistributive||or.checkType===n.checkType)){n=or;continue}if(j(un,a))continue}h=_s(un,a);break}if(on.flags&3||wa(OT(W),OT(on))){const un=ki(n.node.trueType),or=Pt||a;if(j(un,or))continue;h=_s(un,or);break}}h=Kh(16777216),h.root=n,h.checkType=_s(n.checkType,a),h.extendsType=_s(n.extendsType,a),h.mapper=a,h.combinedMapper=Pt,h.aliasSymbol=_||n.aliasSymbol,h.aliasTypeArguments=_?m:Qy(n.aliasTypeArguments,a);break}return k?ti(gn(k,h)):h;function j(W,re){if(W.flags&16777216&&re){const be=W.root;if(be.outerTypeParameters){const he=wS(W.mapper,re),qe=Kt(be.outerTypeParameters,on=>bv(on,he)),ht=cp(be.outerTypeParameters,qe),Pt=be.isDistributive?bv(be.checkType,ht):void 0;if(!Pt||Pt===be.checkType||!(Pt.flags&1179648))return n=be,a=ht,_=void 0,m=void 0,be.aliasSymbol&&O++,!0}}return!1}}function G2(n){return n.resolvedTrueType||(n.resolvedTrueType=_s(ki(n.root.node.trueType),n.mapper))}function $2(n){return n.resolvedFalseType||(n.resolvedFalseType=_s(ki(n.root.node.falseType),n.mapper))}function B_t(n){return n.resolvedInferredTrueType||(n.resolvedInferredTrueType=n.combinedMapper?_s(ki(n.root.node.trueType),n.combinedMapper):G2(n))}function B5e(n){let a;return n.locals&&n.locals.forEach(l=>{l.flags&262144&&(a=gn(a,fc(l)))}),a}function J_t(n){return n.isDistributive&&(PJ(n.checkType,n.node.trueType)||PJ(n.checkType,n.node.falseType))}function z_t(n){const a=ei(n);if(!a.resolvedType){const l=ki(n.checkType),_=r6(n),m=yE(_),h=Nn(n,!0),k=m?h:vr(h,j=>PJ(j,n)),O={node:n,checkType:l,extendsType:ki(n.extendsType),isDistributive:!!(l.flags&262144),inferTypeParameters:B5e(n),outerTypeParameters:k,instantiations:void 0,aliasSymbol:_,aliasTypeArguments:m};a.resolvedType=iye(O,void 0,!1),k&&(O.instantiations=new Map,O.instantiations.set(Wd(k),a.resolvedType))}return a.resolvedType}function U_t(n){const a=ei(n);return a.resolvedType||(a.resolvedType=xT(Pr(n.typeParameter))),a.resolvedType}function J5e(n){return Je(n)?[n]:gn(J5e(n.left),n.right)}function V_t(n){var a;const l=ei(n);if(!l.resolvedType){if(!b1(n))return We(n.argument,p.String_literal_expected),l.resolvedSymbol=ft,l.resolvedType=mt;const _=n.isTypeOf?111551:n.flags&16777216?900095:788968,m=U_(n,n.argument.literal);if(!m)return l.resolvedSymbol=ft,l.resolvedType=mt;const h=!!((a=m.exports)!=null&&a.get("export=")),k=rp(m,!1);if(nl(n.qualifier))if(k.flags&_)l.resolvedType=z5e(n,l,k,_);else{const O=_===111551?p.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:p.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;We(n,O,n.argument.literal.text),l.resolvedSymbol=ft,l.resolvedType=mt}else{const O=J5e(n.qualifier);let j=k,W;for(;W=O.shift();){const re=O.length?1920:_,be=po(al(j)),he=n.isTypeOf||lr(n)&&h?Ea(fr(be),W.escapedText,!1,!0):void 0,ht=(n.isTypeOf?void 0:bf(ip(be),W.escapedText,re))??he;if(!ht)return We(W,p.Namespace_0_has_no_exported_member_1,xp(j),Bo(W)),l.resolvedType=mt;ei(W).resolvedSymbol=ht,ei(W.parent).resolvedSymbol=ht,j=ht}l.resolvedType=z5e(n,l,j,_)}}return l.resolvedType}function z5e(n,a,l,_){const m=al(l);return a.resolvedSymbol=m,_===111551?x9e(fr(l),n):Gee(n,m)}function U5e(n){const a=ei(n);if(!a.resolvedType){const l=r6(n);if(dv(n.symbol).size===0&&!l)a.resolvedType=El;else{let _=pd(16,n.symbol);_.aliasSymbol=l,_.aliasTypeArguments=yE(l),wx(n)&&n.isArrayType&&(_=u_(_)),a.resolvedType=_}}return a.resolvedType}function r6(n){let a=n.parent;for(;bx(a)||Ub(a)||Sx(a)&&a.operator===148;)a=a.parent;return QA(a)?Pr(a):void 0}function yE(n){return n?Lr(n):void 0}function Kee(n){return!!(n.flags&524288)&&!Sf(n)}function sye(n){return Q0(n)||!!(n.flags&474058748)}function aye(n,a){if(!(n.flags&1048576))return n;if(Pn(n.types,sye))return Cn(n.types,Q0)||Ja;const l=Cn(n.types,h=>!sye(h));if(!l||Cn(n.types,h=>h!==l&&!sye(h)))return n;return m(l);function m(h){const k=ha();for(const j of Po(h))if(!(nd(j)&6)){if(ete(j)){const W=j.flags&65536&&!(j.flags&32768),be=ro(16777220,j.escapedName,p0e(j)|(a?8:0));be.links.type=W?Fe:Mf(fr(j),!0),be.declarations=j.declarations,be.links.nameType=Zi(j).nameType,be.links.syntheticOrigin=j,k.set(j.escapedName,be)}}const O=qo(h.symbol,k,Ke,Ke,V_(h));return O.objectFlags|=131200,O}}function CS(n,a,l,_,m){if(n.flags&1||a.flags&1)return U;if(n.flags&2||a.flags&2)return mn;if(n.flags&131072)return a;if(a.flags&131072)return n;if(n=aye(n,m),n.flags&1048576)return xJ([n,a])?kc(n,W=>CS(W,a,l,_,m)):mt;if(a=aye(a,m),a.flags&1048576)return xJ([n,a])?kc(a,W=>CS(n,W,l,_,m)):mt;if(a.flags&473960444)return n;if(AT(n)||AT(a)){if(Q0(n))return a;if(n.flags&2097152){const W=n.types,re=W[W.length-1];if(Kee(re)&&Kee(a))return Pa(zn(W.slice(0,W.length-1),[CS(re,a,l,_,m)]))}return Pa([n,a])}const h=ha(),k=new Set,O=n===Ja?V_(a):TIe([n,a]);for(const W of Po(a))nd(W)&6?k.add(W.escapedName):ete(W)&&h.set(W.escapedName,oye(W,m));for(const W of Po(n))if(!(k.has(W.escapedName)||!ete(W)))if(h.has(W.escapedName)){const re=h.get(W.escapedName),be=fr(re);if(re.flags&16777216){const he=zn(W.declarations,re.declarations),qe=4|W.flags&16777216,ht=ro(qe,W.escapedName),Pt=fr(W),on=bte(Pt),un=bte(be);ht.links.type=on===un?Pt:ti([Pt,un],2),ht.links.leftSpread=W,ht.links.rightSpread=re,ht.declarations=he,ht.links.nameType=Zi(W).nameType,h.set(W.escapedName,ht)}}else h.set(W.escapedName,oye(W,m));const j=qo(l,h,Ke,Ke,Dc(O,W=>W_t(W,m)));return j.objectFlags|=2228352|_,j}function ete(n){var a;return!Pe(n.declarations,O_)&&(!(n.flags&106496)||!((a=n.declarations)!=null&&a.some(l=>fi(l.parent))))}function oye(n,a){const l=n.flags&65536&&!(n.flags&32768);if(!l&&a===Gm(n))return n;const _=4|n.flags&16777216,m=ro(_,n.escapedName,p0e(n)|(a?8:0));return m.links.type=l?Fe:fr(n),m.declarations=n.declarations,m.links.nameType=Zi(n).nameType,m.links.syntheticOrigin=n,m}function W_t(n,a){return n.isReadonly!==a?hh(n.keyType,n.type,a,n.declaration):n}function kJ(n,a,l,_){const m=e0(n,l);return m.value=a,m.regularType=_||m,m}function i6(n){if(n.flags&2976){if(!n.freshType){const a=kJ(n.flags,n.value,n.symbol,n);a.freshType=a,n.freshType=a}return n.freshType}return n}function q_(n){return n.flags&2976?n.regularType:n.flags&1048576?n.regularType||(n.regularType=kc(n,q_)):n}function ES(n){return!!(n.flags&2976)&&n.freshType===n}function xf(n){let a;return cn.get(n)||(cn.set(n,a=kJ(128,n)),a)}function Wm(n){let a;return et.get(n)||(et.set(n,a=kJ(256,n)),a)}function tte(n){let a;const l=wb(n);return Jt.get(l)||(Jt.set(l,a=kJ(2048,n)),a)}function q_t(n,a,l){let _;const m=`${a}${typeof n=="string"?"@":"#"}${n}`,h=1024|(typeof n=="string"?128:256);return wn.get(m)||(wn.set(m,_=kJ(h,n,l)),_)}function H_t(n){if(n.literal.kind===106)return de;const a=ei(n);return a.resolvedType||(a.resolvedType=q_(ms(n.literal))),a.resolvedType}function G_t(n){const a=e0(8192,n);return a.escapedName=`__@${a.symbol.escapedName}@${Ia(a.symbol)}`,a}function cye(n){if(lr(n)&&Ub(n)){const a=lx(n);a&&(n=xk(a)||a)}if(Sse(n)){const a=GF(n)?Hp(n.left):Hp(n);if(a){const l=Zi(a);return l.uniqueESSymbolType||(l.uniqueESSymbolType=G_t(a))}}return wi}function $_t(n){const a=_f(n,!1,!1),l=a&&a.parent;if(l&&(fi(l)||l.kind===264)&&!da(a)&&(!$c(a)||bb(n,a.body)))return gd(Pr(l)).thisType;if(l&&Va(l)&&mr(l.parent)&&rl(l.parent)===6)return gd(Hp(l.parent.left).parent).thisType;const _=n.flags&16777216?Zv(n):void 0;return _&&Xo(_)&&mr(_.parent)&&rl(_.parent)===3?gd(Hp(_.parent.left).parent).thisType:Dg(a)&&bb(n,a.body)?gd(Pr(a)).thisType:(We(n,p.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),mt)}function nte(n){const a=ei(n);return a.resolvedType||(a.resolvedType=$_t(n)),a.resolvedType}function V5e(n){return ki(CJ(n.type)||n.type)}function CJ(n){switch(n.kind){case 196:return CJ(n.type);case 189:if(n.elements.length===1&&(n=n.elements[0],n.kind===191||n.kind===202&&n.dotDotDotToken))return CJ(n.type);break;case 188:return n.elementType}}function X_t(n){const a=ei(n);return a.resolvedType||(a.resolvedType=n.dotDotDotToken?V5e(n):Mf(ki(n.type),!0,!!n.questionToken))}function ki(n){return Put(W5e(n),n)}function W5e(n){switch(n.kind){case 133:case 319:case 320:return U;case 159:return mn;case 154:return Ie;case 150:return xt;case 163:return Ft;case 136:return Li;case 155:return wi;case 116:return sr;case 157:return Fe;case 106:return de;case 146:return Wr;case 151:return n.flags&524288&&!fe?U:$r;case 141:return pn;case 197:case 110:return nte(n);case 201:return H_t(n);case 183:return j0e(n);case 182:return n.assertsModifier?sr:Li;case 233:return j0e(n);case 186:return t5e(n);case 188:case 189:return r_t(n);case 190:return o_t(n);case 192:return g_t(n);case 193:return k_t(n);case 321:return wut(n);case 323:return Mf(ki(n.type));case 202:return X_t(n);case 196:case 322:case 316:return ki(n.type);case 191:return V5e(n);case 325:return Yyt(n);case 184:case 185:case 187:case 329:case 324:case 330:return U5e(n);case 198:return D_t(n);case 199:return M5e(n);case 200:return rye(n);case 194:return z_t(n);case 195:return U_t(n);case 203:return A_t(n);case 205:return V_t(n);case 80:case 166:case 211:const a=bm(n);return a?fc(a):mt;default:return mt}}function rte(n,a,l){if(n&&n.length)for(let _=0;__.typeParameter),Kt(l,()=>mn))}function wS(n,a){return n?ste(4,n,a):a}function Z_t(n,a){return n?ste(5,n,a):a}function IT(n,a,l){return l?ste(5,PS(n,a),l):PS(n,a)}function F5(n,a,l){return n?ste(5,n,PS(a,l)):PS(a,l)}function K_t(n){return!n.constraint&&!I0e(n)||n.constraint===nc?n:n.restrictiveInstantiation||(n.restrictiveInstantiation=$p(n.symbol),n.restrictiveInstantiation.constraint=nc,n.restrictiveInstantiation)}function uye(n){const a=$p(n.symbol);return a.target=n,a}function eft(n,a){return yJ(n.kind,n.parameterName,n.parameterIndex,_s(n.type,a))}function vE(n,a,l){let _;if(n.typeParameters&&!l){_=Kt(n.typeParameters,uye),a=wS(cp(n.typeParameters,_),a);for(const h of _)h.mapper=a}const m=n0(n.declaration,_,n.thisParameter&&_ye(n.thisParameter,a),rte(n.parameters,a,_ye),void 0,void 0,n.minArgumentCount,n.flags&167);return m.target=n,m.mapper=a,m}function _ye(n,a){const l=Zi(n);if(l.type&&!Z2(l.type)&&(!(n.flags&65536)||l.writeType&&!Z2(l.writeType)))return n;Uc(n)&1&&(n=l.target,a=wS(l.mapper,a));const _=ro(n.flags,n.escapedName,1|Uc(n)&53256);return _.declarations=n.declarations,_.parent=n.parent,_.links.target=n,_.links.mapper=a,n.valueDeclaration&&(_.valueDeclaration=n.valueDeclaration),l.nameType&&(_.links.nameType=l.nameType),_}function tft(n,a,l,_){const m=n.objectFlags&4||n.objectFlags&8388608?n.node:n.symbol.declarations[0],h=ei(m),k=n.objectFlags&4?h.resolvedType:n.objectFlags&64?n.target:n;let O=h.outerTypeParameters;if(!O){let j=Nn(m,!0);if(Dg(m)){const re=JIe(m);j=Mr(j,re)}O=j||Ke;const W=n.objectFlags&8388612?[m]:n.symbol.declarations;O=(k.objectFlags&8388612||k.symbol.flags&8192||k.symbol.flags&2048)&&!k.aliasTypeArguments?vr(O,re=>Pe(W,be=>PJ(re,be))):O,h.outerTypeParameters=O}if(O.length){const j=wS(n.mapper,a),W=Kt(O,ht=>bv(ht,j)),re=l||n.aliasSymbol,be=l?_:Qy(n.aliasTypeArguments,a),he=Wd(W)+t6(re,be);k.instantiations||(k.instantiations=new Map,k.instantiations.set(Wd(O)+t6(k.aliasSymbol,k.aliasTypeArguments),k));let qe=k.instantiations.get(he);if(!qe){const ht=cp(O,W);qe=k.objectFlags&4?O0e(n.target,n.node,ht,re,be):k.objectFlags&32?rft(k,ht,re,be):fye(k,ht,re,be),k.instantiations.set(he,qe);const Pt=Br(qe);if(qe.flags&3899393&&!(Pt&524288)){const on=Pe(W,Z2);Br(qe)&524288||(Pt&52?qe.objectFlags|=524288|(on?1048576:0):qe.objectFlags|=on?0:524288)}}return qe}return n}function nft(n){return!(n.parent.kind===183&&n.parent.typeArguments&&n===n.parent.typeName||n.parent.kind===205&&n.parent.typeArguments&&n===n.parent.qualifier)}function PJ(n,a){if(n.symbol&&n.symbol.declarations&&n.symbol.declarations.length===1){const _=n.symbol.declarations[0].parent;for(let m=a;m!==_;m=m.parent)if(!m||m.kind===241||m.kind===194&&Xs(m.extendsType,l))return!0;return l(a)}return!0;function l(_){switch(_.kind){case 197:return!!n.isThisType;case 80:return!n.isThisType&&Ih(_)&&nft(_)&&W5e(_)===n;case 186:const m=_.exprName,h=yp(m);if(!Cb(h)){const k=ym(h),O=n.symbol.declarations[0],j=O.kind===168?O.parent:n.isThisType?O:void 0;if(k.declarations&&j)return Pe(k.declarations,W=>bb(W,j))||Pe(_.typeArguments,l)}return!0;case 174:case 173:return!_.type&&!!_.body||Pe(_.typeParameters,l)||Pe(_.parameters,l)||!!_.type&&l(_.type)}return!!Xs(_,l)}}function L5(n){const a=Qp(n);if(a.flags&4194304){const l=vv(a.type);if(l.flags&262144)return l}}function rft(n,a,l,_){const m=L5(n);if(m){const k=_s(m,a);if(m!==k)return XOe(Vm(k),h,l,_)}return _s(Qp(n),a)===Et?Et:fye(n,a,l,_);function h(k){if(k.flags&61603843&&k!==Et&&!Gt(k)){if(!n.declaration.nameType){let O;if(bd(k)||k.flags&1&&YC(m,4)<0&&(O=af(m))&&Rf(O,Q2))return sft(k,n,IT(m,k,a));if(Ga(k))return ift(k,n,m,a);if(FIe(k))return Pa(Kt(k.types,h))}return fye(n,IT(m,k,a))}return k}}function G5e(n,a){return a&1?!0:a&2?!1:n}function ift(n,a,l,_){const m=n.target.elementFlags,h=n.target.fixedLength,k=h?IT(l,n,_):_,O=Kt(kS(n),(be,he)=>{const qe=m[he];return hebe&1?2:be):j&8?Kt(m,be=>be&2?1:be):m,re=G5e(n.target.readonly,mh(a));return Ai(O,mt)?mt:yh(O,W,re,n.target.labeledElementDeclarations)}function sft(n,a,l){const _=$5e(a,xt,!0,l);return Gt(_)?mt:u_(_,G5e(KD(n),mh(a)))}function $5e(n,a,l,_){const m=F5(_,zm(n),a),h=_s(q0(n.target||n),m),k=mh(n);return X&&k&4&&!Hc(h,49152)?kv(h,!0):X&&k&8&&l?Hd(h,524288):h}function fye(n,a,l,_){w.assert(n.symbol,"anonymous type must have symbol to be instantiated");const m=pd(n.objectFlags&-1572865|64,n.symbol);if(n.objectFlags&32){m.declaration=n.declaration;const h=zm(n),k=uye(h);m.typeParameter=k,a=wS(PS(h,k),a),k.mapper=a}return n.objectFlags&8388608&&(m.node=n.node),m.target=n,m.mapper=a,m.aliasSymbol=l||n.aliasSymbol,m.aliasTypeArguments=l?_:Qy(n.aliasTypeArguments,a),m.objectFlags|=m.aliasTypeArguments?qee(m.aliasTypeArguments):0,m}function pye(n,a,l,_,m){const h=n.root;if(h.outerTypeParameters){const k=Kt(h.outerTypeParameters,W=>bv(W,a)),O=(l?"C":"")+Wd(k)+t6(_,m);let j=h.instantiations.get(O);if(!j){const W=cp(h.outerTypeParameters,k),re=h.checkType,be=h.isDistributive?Vm(bv(re,W)):void 0;j=be&&re!==be&&be.flags&1179648?XOe(be,he=>iye(h,IT(re,he,W),l),_,m):iye(h,W,l,_,m),h.instantiations.set(O,j)}return j}return n}function _s(n,a){return n&&a?X5e(n,a,void 0,void 0):n}function X5e(n,a,l,_){var m;if(!Z2(n))return n;if(C===100||T>=5e6)return(m=cr)==null||m.instant(cr.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:n.id,instantiationDepth:C,instantiationCount:T}),We(D,p.Type_instantiation_is_excessively_deep_and_possibly_infinite),mt;x++,T++,C++;const h=aft(n,a,l,_);return C--,h}function aft(n,a,l,_){const m=n.flags;if(m&262144)return bv(n,a);if(m&524288){const h=n.objectFlags;if(h&52){if(h&4&&!n.node){const k=n.resolvedTypeArguments,O=Qy(k,a);return O!==k?G0e(n.target,O):n}return h&1024?oft(n,a):tft(n,a,l,_)}return n}if(m&3145728){const h=n.flags&1048576?n.origin:void 0,k=h&&h.flags&3145728?h.types:n.types,O=Qy(k,a);if(O===k&&l===n.aliasSymbol)return n;const j=l||n.aliasSymbol,W=l?_:Qy(n.aliasTypeArguments,a);return m&2097152||h&&h.flags&2097152?Pa(O,j,W):ti(O,1,j,W)}if(m&4194304)return Cg(_s(n.type,a));if(m&134217728)return wT(n.texts,Qy(n.types,a));if(m&268435456)return n6(n.symbol,_s(n.type,a));if(m&8388608){const h=l||n.aliasSymbol,k=l?_:Qy(n.aliasTypeArguments,a);return op(_s(n.objectType,a),_s(n.indexType,a),n.accessFlags,void 0,h,k)}if(m&16777216)return pye(n,wS(n.mapper,a),!1,l,_);if(m&33554432){const h=_s(n.baseType,a);if($D(n))return F0e(h);const k=_s(n.constraint,a);return h.flags&8650752&&hE(k)?M0e(h,k):k.flags&3||wa(OT(h),OT(k))?h:h.flags&8650752?M0e(h,k):Pa([k,h])}return n}function oft(n,a){const l=_s(n.mappedType,a);if(!(Br(l)&32))return n;const _=_s(n.constraintType,a);if(!(_.flags&4194304))return n;const m=POe(_s(n.source,a),l,_);return m||n}function M5(n){return n.flags&402915327?n:n.permissiveInstantiation||(n.permissiveInstantiation=_s(n,Oc))}function OT(n){return n.flags&402915327?n:(n.restrictiveInstantiation||(n.restrictiveInstantiation=_s(n,tc),n.restrictiveInstantiation.restrictiveInstantiation=n.restrictiveInstantiation),n.restrictiveInstantiation)}function cft(n,a){return hh(n.keyType,_s(n.type,a),n.isReadonly,n.declaration)}function yd(n){switch(w.assert(n.kind!==174||tm(n)),n.kind){case 218:case 219:case 174:case 262:return Q5e(n);case 210:return Pe(n.properties,yd);case 209:return Pe(n.elements,yd);case 227:return yd(n.whenTrue)||yd(n.whenFalse);case 226:return(n.operatorToken.kind===57||n.operatorToken.kind===61)&&(yd(n.left)||yd(n.right));case 303:return yd(n.initializer);case 217:return yd(n.expression);case 292:return Pe(n.properties,yd)||ug(n.parent)&&Pe(n.parent.parent.children,yd);case 291:{const{initializer:a}=n;return!!a&&yd(a)}case 294:{const{expression:a}=n;return!!a&&yd(a)}}return!1}function Q5e(n){return K9(n)||lft(n)}function lft(n){return n.typeParameters||Id(n)||!n.body?!1:n.body.kind!==241?yd(n.body):!!gb(n.body,a=>!!a.expression&&yd(a.expression))}function ate(n){return(Db(n)||tm(n))&&Q5e(n)}function Y5e(n){if(n.flags&524288){const a=Um(n);if(a.constructSignatures.length||a.callSignatures.length){const l=pd(16,n.symbol);return l.members=a.members,l.properties=a.properties,l.callSignatures=Ke,l.constructSignatures=Ke,l.indexInfos=Ke,l}}else if(n.flags&2097152)return Pa(Kt(n.types,Y5e));return n}function X0(n,a){return Eg(n,a,Of)}function R5(n,a){return Eg(n,a,Of)?-1:0}function dye(n,a){return Eg(n,a,vf)?-1:0}function uft(n,a){return Eg(n,a,ah)?-1:0}function Sv(n,a){return Eg(n,a,ah)}function wJ(n,a){return Eg(n,a,_d)}function wa(n,a){return Eg(n,a,vf)}function X2(n,a){return n.flags&1048576?Pn(n.types,l=>X2(l,a)):a.flags&1048576?Pe(a.types,l=>X2(n,l)):n.flags&2097152?Pe(n.types,l=>X2(l,a)):n.flags&58982400?X2(l_(n)||mn,a):vh(a)?!!(n.flags&67633152):a===De?!!(n.flags&67633152)&&!vh(n):a===jt?!!(n.flags&524288)&&Gye(n):cE(n,qy(a))||bd(a)&&!KD(a)&&X2(n,la)}function ote(n,a){return Eg(n,a,np)}function DJ(n,a){return ote(n,a)||ote(a,n)}function C_(n,a,l,_,m,h){return vd(n,a,vf,l,_,m,h)}function xv(n,a,l,_,m,h){return mye(n,a,vf,l,_,m,h,void 0)}function mye(n,a,l,_,m,h,k,O){return Eg(n,a,l)?!0:!_||!j5(m,n,a,l,h,k,O)?vd(n,a,l,_,h,k,O):!1}function Z5e(n){return!!(n.flags&16777216||n.flags&2097152&&Pe(n.types,Z5e))}function j5(n,a,l,_,m,h,k){if(!n||Z5e(l))return!1;if(!vd(a,l,_,void 0)&&_ft(n,a,l,_,m,h,k))return!0;switch(n.kind){case 234:if(!X1(n))break;case 294:case 217:return j5(n.expression,a,l,_,m,h,k);case 226:switch(n.operatorToken.kind){case 64:case 28:return j5(n.right,a,l,_,m,h,k)}break;case 210:return vft(n,a,l,_,h,k);case 209:return hft(n,a,l,_,h,k);case 292:return gft(n,a,l,_,h,k);case 219:return fft(n,a,l,_,h,k)}return!1}function _ft(n,a,l,_,m,h,k){const O=ra(a,0),j=ra(a,1);for(const W of[j,O])if(Pe(W,re=>{const be=To(re);return!(be.flags&131073)&&vd(be,l,_,void 0)})){const re=k||{};C_(a,l,n,m,h,re);const be=re.errors[re.errors.length-1];return Ua(be,Rr(n,W===j?p.Did_you_mean_to_use_new_with_this_expression:p.Did_you_mean_to_call_this_expression)),!0}return!1}function fft(n,a,l,_,m,h){if(na(n.body)||Pe(n.parameters,AF))return!1;const k=UT(a);if(!k)return!1;const O=ra(l,0);if(!Xe(O))return!1;const j=n.body,W=To(k),re=ti(Kt(O,To));if(!vd(W,re,_,void 0)){const be=j&&j5(j,W,re,_,void 0,m,h);if(be)return be;const he=h||{};if(vd(W,re,_,j,void 0,m,he),he.errors)return l.symbol&&Xe(l.symbol.declarations)&&Ua(he.errors[he.errors.length-1],Rr(l.symbol.declarations[0],p.The_expected_type_comes_from_the_return_type_of_this_signature)),!(lu(n)&2)&&!He(W,"then")&&vd(uz(W),re,_,void 0)&&Ua(he.errors[he.errors.length-1],Rr(n,p.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function K5e(n,a,l){const _=yv(a,l);if(_)return _;if(a.flags&1048576){const m=oOe(n,a);if(m)return yv(m,l)}}function eOe(n,a){$J(n,a,!1);const l=_8(n,1);return $5(),l}function AJ(n,a,l,_,m,h){let k=!1;for(const O of n){const{errorNode:j,innerExpression:W,nameType:re,errorMessage:be}=O;let he=K5e(a,l,re);if(!he||he.flags&8388608)continue;let qe=yv(a,re);if(!qe)continue;const ht=Yee(re,void 0);if(!vd(qe,he,_,void 0)){const Pt=W&&j5(W,qe,he,_,void 0,m,h);if(k=!0,!Pt){const on=h||{},un=W?eOe(W,qe):qe;if(Ee&<e(un,he)){const or=Rr(j,p.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Hn(un),Hn(he));_o.add(or),on.errors=[or]}else{const or=!!(ht&&(Ea(l,ht)||ft).flags&16777216),Rn=!!(ht&&(Ea(a,ht)||ft).flags&16777216);he=Cv(he,or),qe=Cv(qe,or&&Rn),vd(un,he,_,j,be,m,on)&&un!==qe&&vd(qe,he,_,j,be,m,on)}if(on.errors){const or=on.errors[on.errors.length-1],Rn=Od(re)?Fd(re):void 0,ln=Rn!==void 0?Ea(l,Rn):void 0;let Jn=!1;if(!ln){const Bn=E5(l,re);Bn&&Bn.declaration&&!qn(Bn.declaration).hasNoDefaultLib&&(Jn=!0,Ua(or,Rr(Bn.declaration,p.The_expected_type_comes_from_this_index_signature)))}if(!Jn&&(ln&&Xe(ln.declarations)||l.symbol&&Xe(l.symbol.declarations))){const Bn=ln&&Xe(ln.declarations)?ln.declarations[0]:l.symbol.declarations[0];qn(Bn).hasNoDefaultLib||Ua(or,Rr(Bn,p.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,Rn&&!(re.flags&8192)?Hi(Rn):Hn(re),Hn(l)))}}}}}return k}function pft(n,a,l,_,m,h){const k=Dl(l,gte),O=Dl(l,re=>!gte(re)),j=O!==Wr?_ve(13,0,O,void 0):void 0;let W=!1;for(let re=n.next();!re.done;re=n.next()){const{errorNode:be,innerExpression:he,nameType:qe,errorMessage:ht}=re.value;let Pt=j;const on=k!==Wr?K5e(a,k,qe):void 0;if(on&&!(on.flags&8388608)&&(Pt=j?ti([j,on]):on),!Pt)continue;let un=yv(a,qe);if(!un)continue;const or=Yee(qe,void 0);if(!vd(un,Pt,_,void 0)){const Rn=he&&j5(he,un,Pt,_,void 0,m,h);if(W=!0,!Rn){const ln=h||{},Jn=he?eOe(he,un):un;if(Ee&<e(Jn,Pt)){const Bn=Rr(be,p.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Hn(Jn),Hn(Pt));_o.add(Bn),ln.errors=[Bn]}else{const Bn=!!(or&&(Ea(k,or)||ft).flags&16777216),nr=!!(or&&(Ea(a,or)||ft).flags&16777216);Pt=Cv(Pt,Bn),un=Cv(un,Bn&&nr),vd(Jn,Pt,_,be,ht,m,ln)&&Jn!==un&&vd(un,Pt,_,be,ht,m,ln)}}}}return W}function*dft(n){if(Xe(n.properties))for(const a of n.properties)eC(a)||d1e(EN(a.name))||(yield{errorNode:a.name,innerExpression:a.initializer,nameType:xf(EN(a.name))})}function*mft(n,a){if(!Xe(n.children))return;let l=0;for(let _=0;_1;let on,un;if(V0e(!1)!==js){const Rn=f5e(U);on=Dl(qe,ln=>wa(ln,Rn)),un=Dl(qe,ln=>!wa(ln,Rn))}else on=Dl(qe,gte),un=Dl(qe,Rn=>!gte(Rn));if(Pt){if(on!==Wr){const Rn=yh(Ute(W,0)),ln=mft(W,j);k=pft(ln,Rn,on,_,m,h)||k}else if(!Eg(op(a,he),qe,_)){k=!0;const Rn=We(W.openingElement.tagName,p.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,be,Hn(qe));h&&h.skipLogging&&(h.errors||(h.errors=[])).push(Rn)}}else if(un!==Wr){const Rn=ht[0],ln=tOe(Rn,he,j);ln&&(k=AJ(function*(){yield ln}(),a,l,_,m,h)||k)}else if(!Eg(op(a,he),qe,_)){k=!0;const Rn=We(W.openingElement.tagName,p.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,be,Hn(qe));h&&h.skipLogging&&(h.errors||(h.errors=[])).push(Rn)}}return k;function j(){if(!O){const W=Ol(n.parent.tagName),re=QJ(JT(n)),be=re===void 0?"children":Hi(re),he=op(l,xf(be)),qe=p._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;O={...qe,key:"!!ALREADY FORMATTED!!",message:Eq(qe,W,be,Hn(he))}}return O}}function*nOe(n,a){const l=Xe(n.elements);if(l)for(let _=0;_j:Ag(n)>j))return _&&!(l&8)&&m(p.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,Ag(n),j),0;n.typeParameters&&n.typeParameters!==a.typeParameters&&(a=Sut(a),n=n9e(n,a,void 0,k));const re=Ep(n),be=Z5(n),he=Z5(a);(be||he)&&_s(be||he,O);const qe=a.declaration?a.declaration.kind:0,ht=!(l&3)&&se&&qe!==174&&qe!==173&&qe!==176;let Pt=-1;const on=H2(n);if(on&&on!==sr){const Rn=H2(a);if(Rn){const ln=!ht&&k(on,Rn,!1)||k(Rn,on,_);if(!ln)return _&&m(p.The_this_types_of_each_signature_are_incompatible),0;Pt&=ln}}const un=be||he?Math.min(re,j):Math.max(re,j),or=be||he?un-1:-1;for(let Rn=0;Rn=Ag(n)&&Rn=3&&a[0].flags&32768&&a[1].flags&65536&&Pe(a,vh)?67108864:0)}return!!(n.objectFlags&67108864)}return!1}function YD(n){return!!((n.flags&1048576?n.types[0]:n).flags&32768)}function iOe(n){return n.flags&524288&&!Sf(n)&&Po(n).length===0&&V_(n).length===1&&!!r0(n,Ie)||n.flags&3145728&&Pn(n.types,iOe)||!1}function yye(n,a,l){const _=n.flags&8?rf(n):n,m=a.flags&8?rf(a):a;if(_===m)return!0;if(_.escapedName!==m.escapedName||!(_.flags&256)||!(m.flags&256))return!1;const h=Ia(_)+","+Ia(m),k=jy.get(h);if(k!==void 0&&!(!(k&4)&&k&2&&l))return!!(k&1);const O=fr(m);for(const j of Po(fr(_)))if(j.flags&8){const W=Ea(O,j.escapedName);if(!W||!(W.flags&8))return l?(l(p.Property_0_is_missing_in_type_1,Rc(j),Hn(fc(m),void 0,64)),jy.set(h,6)):jy.set(h,2),!1;const re=AE(Cc(j,306)),be=AE(Cc(W,306));if(re!==be){const he=typeof re=="string",qe=typeof be=="string";if(re!==void 0&&be!==void 0){if(!l)jy.set(h,2);else{const ht=he?`"${Mh(re)}"`:re,Pt=qe?`"${Mh(be)}"`:be;l(p.Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given,Rc(m),Rc(W),Pt,ht),jy.set(h,6)}return!1}if(he||qe){if(!l)jy.set(h,2);else{const ht=re??be;w.assert(typeof ht=="string");const Pt=`"${Mh(ht)}"`;l(p.One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value,Rc(m),Rc(W),Pt),jy.set(h,6)}return!1}}}return jy.set(h,1),!0}function B5(n,a,l,_){const m=n.flags,h=a.flags;return h&1||m&131072||n===Et||h&2&&!(l===_d&&m&1)?!0:h&131072?!1:!!(m&402653316&&h&4||m&128&&m&1024&&h&128&&!(h&1024)&&n.value===a.value||m&296&&h&8||m&256&&m&1024&&h&256&&!(h&1024)&&n.value===a.value||m&2112&&h&64||m&528&&h&16||m&12288&&h&4096||m&32&&h&32&&n.symbol.escapedName===a.symbol.escapedName&&yye(n.symbol,a.symbol,_)||m&1024&&h&1024&&(m&1048576&&h&1048576&&yye(n.symbol,a.symbol,_)||m&2944&&h&2944&&n.value===a.value&&yye(n.symbol,a.symbol,_))||m&32768&&(!X&&!(h&3145728)||h&49152)||m&65536&&(!X&&!(h&3145728)||h&65536)||m&524288&&h&67108864&&!(l===_d&&vh(n)&&!(Br(n)&8192))||(l===vf||l===np)&&(m&1||m&8&&(h&32||h&256&&h&1024)||m&256&&!(m&1024)&&(h&32||h&256&&h&1024&&n.value===a.value)||Tft(a)))}function Eg(n,a,l){if(ES(n)&&(n=n.regularType),ES(a)&&(a=a.regularType),n===a)return!0;if(l!==Of){if(l===np&&!(a.flags&131072)&&B5(a,n,l)||B5(n,a,l))return!0}else if(!((n.flags|a.flags)&61865984)){if(n.flags!==a.flags)return!1;if(n.flags&67358815)return!0}if(n.flags&524288&&a.flags&524288){const _=l.get(fte(n,a,0,l,!1));if(_!==void 0)return!!(_&1)}return n.flags&469499904||a.flags&469499904?vd(n,a,l,void 0):!1}function sOe(n,a){return Br(n)&2048&&d1e(a.escapedName)}function NJ(n,a){for(;;){const l=ES(n)?n.regularType:Tv(n)?Cft(n,a):Br(n)&4?n.node?Gy(n.target,ac(n)):Cye(n)||n:n.flags&3145728?kft(n,a):n.flags&33554432?a?n.baseType:R0e(n):n.flags&25165824?$0(n,a):n;if(l===n)return l;n=l}}function kft(n,a){const l=Vm(n);if(l!==n)return l;if(n.flags&2097152&&Pe(n.types,vh)){const _=Dc(n.types,m=>NJ(m,a));if(_!==n.types)return Pa(_)}return n}function Cft(n,a){const l=kS(n),_=Dc(l,m=>m.flags&25165824?$0(m,a):m);return l!==_?$0e(n.target,_):n}function vd(n,a,l,_,m,h,k){var O;let j,W,re,be,he,qe,ht=0,Pt=0,on=0,un=0,or=!1,Rn=0,ln=0,Jn,Bn,nr=16e6-l.size>>3;w.assert(l!==Of||!_,"no error reporting in identity checking");const $n=xr(n,a,3,!!_,m);if(Bn&&Ws(),or){const nt=fte(n,a,0,l,!1);l.set(nt,6),(O=cr)==null||O.instant(cr.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:n.id,targetId:a.id,depth:Pt,targetDepth:on});const St=nr<=0?p.Excessive_complexity_comparing_types_0_and_1:p.Excessive_stack_depth_comparing_types_0_and_1,en=We(_||D,St,Hn(n),Hn(a));k&&(k.errors||(k.errors=[])).push(en)}else if(j){if(h){const en=h();en&&(Dae(en,j),j=en)}let nt;if(m&&_&&!$n&&n.symbol){const en=Zi(n.symbol);if(en.originatingImport&&!gp(en.originatingImport)&&vd(fr(en.target),a,l,void 0)){const Ar=Rr(en.originatingImport,p.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead);nt=gn(nt,Ar)}}const St=m0(qn(_),_,j,nt);W&&Ua(St,...W),k&&(k.errors||(k.errors=[])).push(St),(!k||!k.skipLogging)&&_o.add(St)}return _&&k&&k.skipLogging&&$n===0&&w.assert(!!k.errors,"missed opportunity to interact with error."),$n!==0;function rr(nt){j=nt.errorInfo,Jn=nt.lastSkippedInfo,Bn=nt.incompatibleStack,Rn=nt.overrideNextErrorInfo,ln=nt.skipParentCounter,W=nt.relatedInfo}function Ns(){return{errorInfo:j,lastSkippedInfo:Jn,incompatibleStack:Bn==null?void 0:Bn.slice(),overrideNextErrorInfo:Rn,skipParentCounter:ln,relatedInfo:W==null?void 0:W.slice()}}function Es(nt,...St){Rn++,Jn=void 0,(Bn||(Bn=[])).push([nt,...St])}function Ws(){const nt=Bn||[];Bn=void 0;const St=Jn;if(Jn=void 0,nt.length===1){gs(...nt[0]),St&&jf(void 0,...St);return}let en="";const Qn=[];for(;nt.length;){const[Ar,...kn]=nt.pop();switch(Ar.code){case p.Types_of_property_0_are_incompatible.code:{en.indexOf("new ")===0&&(en=`(${en})`);const yr=""+kn[0];en.length===0?en=`${yr}`:Np(yr,go(z))?en=`${en}.${yr}`:yr[0]==="["&&yr[yr.length-1]==="]"?en=`${en}${yr}`:en=`${en}[${yr}]`;break}case p.Call_signature_return_types_0_and_1_are_incompatible.code:case p.Construct_signature_return_types_0_and_1_are_incompatible.code:case p.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case p.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if(en.length===0){let yr=Ar;Ar.code===p.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?yr=p.Call_signature_return_types_0_and_1_are_incompatible:Ar.code===p.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(yr=p.Construct_signature_return_types_0_and_1_are_incompatible),Qn.unshift([yr,kn[0],kn[1]])}else{const yr=Ar.code===p.Construct_signature_return_types_0_and_1_are_incompatible.code||Ar.code===p.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",Gr=Ar.code===p.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||Ar.code===p.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";en=`${yr}${en}(${Gr})`}break}case p.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{Qn.unshift([p.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,kn[0],kn[1]]);break}case p.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{Qn.unshift([p.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,kn[0],kn[1],kn[2]]);break}default:return w.fail(`Unhandled Diagnostic: ${Ar.code}`)}}en?gs(en[en.length-1]===")"?p.The_types_returned_by_0_are_incompatible_between_these_types:p.The_types_of_0_are_incompatible_between_these_types,en):Qn.shift();for(const[Ar,...kn]of Qn){const yr=Ar.elidedInCompatabilityPyramid;Ar.elidedInCompatabilityPyramid=!1,gs(Ar,...kn),Ar.elidedInCompatabilityPyramid=yr}St&&jf(void 0,...St)}function gs(nt,...St){w.assert(!!_),Bn&&Ws(),!nt.elidedInCompatabilityPyramid&&(ln===0?j=Hs(j,nt,...St):ln--)}function Ql(nt,...St){gs(nt,...St),ln++}function Sd(nt){w.assert(!!j),W?W.push(nt):W=[nt]}function jf(nt,St,en){Bn&&Ws();const[Qn,Ar]=QC(St,en);let kn=St,yr=Qn;if(J5(St)&&!vye(en)&&(kn=Y0(St),w.assert(!wa(kn,en),"generalized source shouldn't be assignable"),yr=sv(kn)),(en.flags&8388608&&!(St.flags&8388608)?en.objectType.flags:en.flags)&262144&&en!==_e&&en!==ee){const Wi=l_(en);let Us;Wi&&(wa(kn,Wi)||(Us=wa(St,Wi)))?gs(p._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,Us?Qn:yr,Ar,Hn(Wi)):(j=void 0,gs(p._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,Ar,yr))}if(nt)nt===p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&Ee&&aOe(St,en).length&&(nt=p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);else if(l===np)nt=p.Type_0_is_not_comparable_to_type_1;else if(Qn===Ar)nt=p.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(Ee&&aOe(St,en).length)nt=p.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;else{if(St.flags&128&&en.flags&1048576){const Wi=Fmt(St,en);if(Wi){gs(p.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,yr,Ar,Hn(Wi));return}}nt=p.Type_0_is_not_assignable_to_type_1}gs(nt,yr,Ar)}function Mn(nt,St){const en=av(nt.symbol)?Hn(nt,nt.symbol.valueDeclaration):Hn(nt),Qn=av(St.symbol)?Hn(St,St.symbol.valueDeclaration):Hn(St);(yl===nt&&Ie===St||Bl===nt&&xt===St||Tc===nt&&Li===St||o5e()===nt&&wi===St)&&gs(p._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,Qn,en)}function tr(nt,St,en){return Ga(nt)?nt.target.readonly&&LJ(St)?(en&&gs(p.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Hn(nt),Hn(St)),!1):Q2(St):KD(nt)&&LJ(St)?(en&&gs(p.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Hn(nt),Hn(St)),!1):Ga(St)?bd(nt):!0}function cs(nt,St,en){return xr(nt,St,3,en)}function xr(nt,St,en=3,Qn=!1,Ar,kn=0){if(nt===St)return-1;if(nt.flags&524288&&St.flags&402784252)return l===np&&!(St.flags&131072)&&B5(St,nt,l)||B5(nt,St,l,Qn?gs:void 0)?-1:(Qn&&Fs(nt,St,nt,St,Ar),0);const yr=NJ(nt,!1);let Gr=NJ(St,!0);if(yr===Gr)return-1;if(l===Of)return yr.flags!==Gr.flags?0:yr.flags&67358815?-1:(yo(yr,Gr),Ci(yr,Gr,!1,0,en));if(yr.flags&262144&&kT(yr)===Gr)return-1;if(yr.flags&470302716&&Gr.flags&1048576){const Wi=Gr.types,Us=Wi.length===2&&Wi[0].flags&98304?Wi[1]:Wi.length===3&&Wi[0].flags&98304&&Wi[1].flags&98304?Wi[2]:void 0;if(Us&&!(Us.flags&98304)&&(Gr=NJ(Us,!0),yr===Gr))return-1}if(l===np&&!(Gr.flags&131072)&&B5(Gr,yr,l)||B5(yr,Gr,l,Qn?gs:void 0))return-1;if(yr.flags&469499904||Gr.flags&469499904){if(!(kn&2)&&K2(yr)&&Br(yr)&8192&&__(yr,Gr,Qn))return Qn&&jf(Ar,yr,St.aliasSymbol?St:Gr),0;const Us=(l!==np||qm(yr))&&!(kn&2)&&yr.flags&405405692&&yr!==De&&Gr.flags&2621440&&cOe(Gr)&&(Po(yr).length>0||xne(yr)),xa=!!(Br(yr)&2048);if(Us&&!Pft(yr,Gr,xa)){if(Qn){const Bs=Hn(nt.aliasSymbol?nt:yr),Ma=Hn(St.aliasSymbol?St:Gr),Uo=ra(yr,0),ko=ra(yr,1);Uo.length>0&&xr(To(Uo[0]),Gr,1,!1)||ko.length>0&&xr(To(ko[0]),Gr,1,!1)?gs(p.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,Bs,Ma):gs(p.Type_0_has_no_properties_in_common_with_type_1,Bs,Ma)}return 0}yo(yr,Gr);const Si=yr.flags&1048576&&yr.types.length<4&&!(Gr.flags&1048576)||Gr.flags&1048576&&Gr.types.length<4&&!(yr.flags&469499904)?cf(yr,Gr,Qn,kn):Ci(yr,Gr,Qn,kn,en);if(Si)return Si}return Qn&&Fs(nt,St,yr,Gr,Ar),0}function Fs(nt,St,en,Qn,Ar){var kn,yr;const Gr=!!Cye(nt),Wi=!!Cye(St);en=nt.aliasSymbol||Gr?nt:en,Qn=St.aliasSymbol||Wi?St:Qn;let Us=Rn>0;if(Us&&Rn--,en.flags&524288&&Qn.flags&524288){const xa=j;tr(en,Qn,!0),j!==xa&&(Us=!!j)}if(en.flags&524288&&Qn.flags&402784252)Mn(en,Qn);else if(en.symbol&&en.flags&524288&&De===en)gs(p.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(Br(en)&2048&&Qn.flags&2097152){const xa=Qn.types,Ta=IS(Mp.IntrinsicAttributes,_),Si=IS(Mp.IntrinsicClassAttributes,_);if(!Gt(Ta)&&!Gt(Si)&&(Ai(xa,Ta)||Ai(xa,Si)))return}else j=x0e(j,St);if(!Ar&&Us){Jn=[en,Qn];return}if(jf(Ar,en,Qn),en.flags&262144&&((yr=(kn=en.symbol)==null?void 0:kn.declarations)!=null&&yr[0])&&!kT(en)){const xa=uye(en);if(xa.constraint=_s(Qn,PS(en,xa)),mJ(xa)){const Ta=Hn(Qn,en.symbol.declarations[0]);Sd(Rr(en.symbol.declarations[0],p.This_type_parameter_might_need_an_extends_0_constraint,Ta))}}}function yo(nt,St){if(cr&&nt.flags&3145728&&St.flags&3145728){const en=nt,Qn=St;if(en.objectFlags&Qn.objectFlags&32768)return;const Ar=en.types.length,kn=Qn.types.length;Ar*kn>1e6&&cr.instant(cr.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:nt.id,sourceSize:Ar,targetId:St.id,targetSize:kn,pos:_==null?void 0:_.pos,end:_==null?void 0:_.end})}}function Oo(nt,St){return ti(D_(nt,(Qn,Ar)=>{var kn;Ar=of(Ar);const yr=Ar.flags&3145728?gJ(Ar,St):W2(Ar,St),Gr=yr&&fr(yr)||((kn=e6(Ar,St))==null?void 0:kn.type)||Fe;return gn(Qn,Gr)},void 0)||Ke)}function __(nt,St,en){var Qn;if(!ZJ(St)||!fe&&Br(St)&4096)return!1;const Ar=!!(Br(nt)&2048);if((l===vf||l===np)&&(i8(De,St)||!Ar&&Q0(St)))return!1;let kn=St,yr;St.flags&1048576&&(kn=CMe(nt,St,xr)||Rvt(St),yr=kn.flags&1048576?kn.types:[kn]);for(const Gr of Po(nt))if($a(Gr,nt.symbol)&&!sOe(nt,Gr)){if(!h1e(kn,Gr.escapedName,Ar)){if(en){const Wi=Dl(kn,ZJ);if(!_)return w.fail();if(Bb(_)||F_(_)||F_(_.parent)){Gr.valueDeclaration&&_g(Gr.valueDeclaration)&&qn(_)===qn(Gr.valueDeclaration.name)&&(_=Gr.valueDeclaration.name);const Us=Ti(Gr),xa=$Fe(Us,Wi),Ta=xa?Ti(xa):void 0;Ta?gs(p.Property_0_does_not_exist_on_type_1_Did_you_mean_2,Us,Hn(Wi),Ta):gs(p.Property_0_does_not_exist_on_type_1,Us,Hn(Wi))}else{const Us=((Qn=nt.symbol)==null?void 0:Qn.declarations)&&hu(nt.symbol.declarations);let xa;if(Gr.valueDeclaration&&Vn(Gr.valueDeclaration,Ta=>Ta===Us)&&qn(Us)===qn(_)){const Ta=Gr.valueDeclaration;w.assertNode(Ta,d0);const Si=Ta.name;_=Si,Je(Si)&&(xa=E1e(Si,Wi))}xa!==void 0?Ql(p.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Ti(Gr),Hn(Wi),xa):Ql(p.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Ti(Gr),Hn(Wi))}}return!0}if(yr&&!xr(fr(Gr),Oo(yr,Gr.escapedName),3,en))return en&&Es(p.Types_of_property_0_are_incompatible,Ti(Gr)),!0}return!1}function $a(nt,St){return nt.valueDeclaration&&St.valueDeclaration&&nt.valueDeclaration.parent===St.valueDeclaration}function cf(nt,St,en,Qn){if(nt.flags&1048576){if(St.flags&1048576){const Ar=nt.origin;if(Ar&&Ar.flags&2097152&&St.aliasSymbol&&Ai(Ar.types,St))return-1;const kn=St.origin;if(kn&&kn.flags&1048576&&nt.aliasSymbol&&Ai(kn.types,nt))return-1}return l===np?ke(nt,St,en&&!(nt.flags&402784252),Qn):Or(nt,St,en&&!(nt.flags&402784252),Qn)}if(St.flags&1048576)return Mc(V5(nt),St,en&&!(nt.flags&402784252)&&!(St.flags&402784252),Qn);if(St.flags&2097152)return lt(nt,St,en,2);if(l===np&&St.flags&402784252){const Ar=Dc(nt.types,kn=>kn.flags&465829888?l_(kn)||mn:kn);if(Ar!==nt.types){if(nt=Pa(Ar),nt.flags&131072)return 0;if(!(nt.flags&2097152))return xr(nt,St,1,!1)||xr(St,nt,1,!1)}}return ke(nt,St,!1,1)}function Kc(nt,St){let en=-1;const Qn=nt.types;for(const Ar of Qn){const kn=Mc(Ar,St,!1,0);if(!kn)return 0;en&=kn}return en}function Mc(nt,St,en,Qn){const Ar=St.types;if(St.flags&1048576){if(G0(Ar,nt))return-1;if(l!==np&&Br(St)&32768&&!(nt.flags&1024)&&(nt.flags&2688||(l===ah||l===_d)&&nt.flags&256)){const yr=nt===nt.regularType?nt.freshType:nt.regularType,Gr=nt.flags&128?Ie:nt.flags&256?xt:nt.flags&2048?Ft:void 0;return Gr&&G0(Ar,Gr)||yr&&G0(Ar,yr)?-1:0}const kn=ROe(St,nt);if(kn){const yr=xr(nt,kn,2,!1,void 0,Qn);if(yr)return yr}}for(const kn of Ar){const yr=xr(nt,kn,2,!1,void 0,Qn);if(yr)return yr}if(en){const kn=oOe(nt,St,xr);kn&&xr(nt,kn,2,!0,void 0,Qn)}return 0}function lt(nt,St,en,Qn){let Ar=-1;const kn=St.types;for(const yr of kn){const Gr=xr(nt,yr,2,en,void 0,Qn);if(!Gr)return 0;Ar&=Gr}return Ar}function ke(nt,St,en,Qn){const Ar=nt.types;if(nt.flags&1048576&&G0(Ar,St))return-1;const kn=Ar.length;for(let yr=0;yr=yr.types.length&&kn.length%yr.types.length===0){const xa=xr(Wi,yr.types[Gr%yr.types.length],3,!1,void 0,Qn);if(xa){Ar&=xa;continue}}const Us=xr(Wi,St,1,en,void 0,Qn);if(!Us)return 0;Ar&=Us}return Ar}function pi(nt=Ke,St=Ke,en=Ke,Qn,Ar){if(nt.length!==St.length&&l===Of)return 0;const kn=nt.length<=St.length?nt.length:St.length;let yr=-1;for(let Gr=0;Gr(Bs|=ko?16:8,Si(ko)));let Ma;return un===3?((kn=cr)==null||kn.instant(cr.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:nt.id,sourceIdStack:he.map(ko=>ko.id),targetId:St.id,targetIdStack:qe.map(ko=>ko.id),depth:Pt,targetDepth:on}),Ma=3):((yr=cr)==null||yr.push(cr.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:nt.id,targetId:St.id}),Ma=Ei(nt,St,en,Qn),(Gr=cr)==null||Gr.pop()),va&&(va=Si),Ar&1&&Pt--,Ar&2&&on--,un=Ta,Ma?(Ma===-1||Pt===0&&on===0)&&Uo(Ma===-1||Ma===3):(l.set(Wi,(en?4:0)|2|Bs),nr--,Uo(!1)),Ma;function Uo(ko){for(let Yl=xa;YlGr!==nt)&&(kn=xr(yr,St,1,!1,void 0,Qn))}kn&&!(Qn&2)&&St.flags&2097152&&!AT(St)&&nt.flags&2621440?(kn&=ji(nt,St,en,void 0,!1,0),kn&&K2(nt)&&Br(nt)&8192&&(kn&=zo(nt,St,!1,en,0))):kn&&Kee(St)&&!Q2(St)&&nt.flags&2097152&&of(nt).flags&3670016&&!Pe(nt.types,yr=>yr===St||!!(Br(yr)&262144))&&(kn&=ji(nt,St,en,void 0,!0,Qn))}return kn&&rr(Ar),kn}function Hr(nt,St){const en=of(TT(St)),Qn=[];return d0e(en,8576,!1,Ar=>void Qn.push(_s(nt,F5(St.mapper,zm(St),Ar)))),ti(Qn)}function wr(nt,St,en,Qn,Ar){let kn,yr,Gr=!1,Wi=nt.flags;const Us=St.flags;if(l===Of){if(Wi&3145728){let Si=Kc(nt,St);return Si&&(Si&=Kc(St,nt)),Si}if(Wi&4194304)return xr(nt.type,St.type,3,!1);if(Wi&8388608&&(kn=xr(nt.objectType,St.objectType,3,!1))&&(kn&=xr(nt.indexType,St.indexType,3,!1))||Wi&16777216&&nt.root.isDistributive===St.root.isDistributive&&(kn=xr(nt.checkType,St.checkType,3,!1))&&(kn&=xr(nt.extendsType,St.extendsType,3,!1))&&(kn&=xr(G2(nt),G2(St),3,!1))&&(kn&=xr($2(nt),$2(St),3,!1))||Wi&33554432&&(kn=xr(nt.baseType,St.baseType,3,!1))&&(kn&=xr(nt.constraint,St.constraint,3,!1)))return kn;if(!(Wi&524288))return 0}else if(Wi&3145728||Us&3145728){if(kn=cf(nt,St,en,Qn))return kn;if(!(Wi&465829888||Wi&524288&&Us&1048576||Wi&2097152&&Us&467402752))return 0}if(Wi&17301504&&nt.aliasSymbol&&nt.aliasTypeArguments&&nt.aliasSymbol===St.aliasSymbol&&!(ute(nt)||ute(St))){const Si=lOe(nt.aliasSymbol);if(Si===Ke)return 1;const Bs=Zi(nt.aliasSymbol).typeParameters,Ma=gh(Bs),Uo=gv(nt.aliasTypeArguments,Bs,Ma,lr(nt.aliasSymbol.valueDeclaration)),ko=gv(St.aliasTypeArguments,Bs,Ma,lr(nt.aliasSymbol.valueDeclaration)),Yl=Ta(Uo,ko,Si,Qn);if(Yl!==void 0)return Yl}if(yOe(nt)&&!nt.target.readonly&&(kn=xr(ac(nt)[0],St,1))||yOe(St)&&(St.target.readonly||LJ(l_(nt)||nt))&&(kn=xr(nt,ac(St)[0],2)))return kn;if(Us&262144){if(Br(nt)&32&&!nt.declaration.nameType&&xr(Cg(St),Qp(nt),3)&&!(mh(nt)&4)){const Si=q0(nt),Bs=op(St,zm(nt));if(kn=xr(Si,Bs,3,en))return kn}if(l===np&&Wi&262144){let Si=af(nt);if(Si)for(;Si&&vm(Si,Bs=>!!(Bs.flags&262144));){if(kn=xr(Si,St,1,!1))return kn;Si=af(Si)}return 0}}else if(Us&4194304){const Si=St.type;if(Wi&4194304&&(kn=xr(Si,nt.type,3,!1)))return kn;if(Ga(Si)){if(kn=xr(nt,g5e(Si),2,en))return kn}else{const Bs=g0e(Si);if(Bs){if(xr(nt,Cg(Bs,St.indexFlags|4),2,en)===-1)return-1}else if(Sf(Si)){const Ma=Hy(Si),Uo=Qp(Si);let ko;if(Ma&&_E(Si)){const Yl=Hr(Ma,Si);ko=ti([Yl,Ma])}else ko=Ma||Uo;if(xr(nt,ko,2,en)===-1)return-1}}}else if(Us&8388608){if(Wi&8388608){if((kn=xr(nt.objectType,St.objectType,3,en))&&(kn&=xr(nt.indexType,St.indexType,3,en)),kn)return kn;en&&(yr=j)}if(l===vf||l===np){const Si=St.objectType,Bs=St.indexType,Ma=l_(Si)||Si,Uo=l_(Bs)||Bs;if(!AT(Ma)&&!NT(Uo)){const ko=4|(Ma!==Si?2:0),Yl=yv(Ma,Uo,ko);if(Yl){if(en&&yr&&rr(Ar),kn=xr(nt,Yl,2,en,void 0,Qn))return kn;en&&yr&&j&&(j=xa([yr])<=xa([j])?yr:j)}}}en&&(yr=void 0)}else if(Sf(St)&&l!==Of){const Si=!!St.declaration.nameType,Bs=q0(St),Ma=mh(St);if(!(Ma&8)){if(!Si&&Bs.flags&8388608&&Bs.objectType===nt&&Bs.indexType===zm(St))return-1;if(!Sf(nt)){const Uo=Si?Hy(St):Qp(St),ko=Cg(nt,2),Yl=Ma&4,Sh=Yl?fJ(Uo,ko):void 0;if(Yl?!(Sh.flags&131072):xr(Uo,ko,3)){const ty=q0(St),qT=zm(St),HT=s8(ty,-98305);if(!Si&&HT.flags&8388608&&HT.indexType===qT){if(kn=xr(nt,HT.objectType,2,en))return kn}else{const v8=Si?Sh||Uo:Sh?Pa([Sh,qT]):qT,Xm=op(nt,v8);if(kn=xr(Xm,ty,3,en))return kn}}yr=j,rr(Ar)}}}else if(Us&16777216){if(ZD(St,qe,on,10))return 3;const Si=St;if(!Si.root.inferTypeParameters&&!J_t(Si.root)&&!(nt.flags&16777216&&nt.root===Si.root)){const Bs=!wa(M5(Si.checkType),M5(Si.extendsType)),Ma=!Bs&&wa(OT(Si.checkType),OT(Si.extendsType));if((kn=Bs?-1:xr(nt,G2(Si),2,!1,void 0,Qn))&&(kn&=Ma?-1:xr(nt,$2(Si),2,!1,void 0,Qn),kn))return kn}}else if(Us&134217728){if(Wi&134217728){if(l===np)return ppt(nt,St)?0:-1;_s(nt,Ou)}if(Pte(nt,St))return-1}else if(St.flags&268435456&&!(nt.flags&268435456)&&Ete(nt,St))return-1;if(Wi&8650752){if(!(Wi&8388608&&Us&8388608)){const Si=kT(nt)||mn;if(kn=xr(Si,St,1,!1,void 0,Qn))return kn;if(kn=xr(kp(Si,nt),St,1,en&&Si!==mn&&!(Us&Wi&262144),void 0,Qn))return kn;if(b0e(nt)){const Bs=kT(nt.indexType);if(Bs&&(kn=xr(op(nt.objectType,Bs),St,1,en)))return kn}}}else if(Wi&4194304){const Si=eye(nt.type,nt.indexFlags)&&Br(nt.type)&32;if(kn=xr(Yo,St,1,en&&!Si))return kn;if(Si){const Bs=nt.type,Ma=Hy(Bs),Uo=Ma&&_E(Bs)?Hr(Ma,Bs):Ma||Qp(Bs);if(kn=xr(Uo,St,1,en))return kn}}else if(Wi&134217728&&!(Us&524288)){if(!(Us&134217728)){const Si=l_(nt);if(Si&&Si!==nt&&(kn=xr(Si,St,1,en)))return kn}}else if(Wi&268435456)if(Us&268435456){if(nt.symbol!==St.symbol)return 0;if(kn=xr(nt.type,St.type,3,en))return kn}else{const Si=l_(nt);if(Si&&(kn=xr(Si,St,1,en)))return kn}else if(Wi&16777216){if(ZD(nt,he,Pt,10))return 3;if(Us&16777216){const Ma=nt.root.inferTypeParameters;let Uo=nt.extendsType,ko;if(Ma){const Yl=W5(Ma,void 0,0,cs);K0(Yl.inferences,St.extendsType,Uo,1536),Uo=_s(Uo,Yl.mapper),ko=Yl.mapper}if(X0(Uo,St.extendsType)&&(xr(nt.checkType,St.checkType,3)||xr(St.checkType,nt.checkType,3))&&((kn=xr(_s(G2(nt),ko),G2(St),3,en))&&(kn&=xr($2(nt),$2(St),3,en)),kn))return kn}const Si=h0e(nt);if(Si&&(kn=xr(Si,St,1,en)))return kn;const Bs=!(Us&16777216)&&mJ(nt)?DIe(nt):void 0;if(Bs&&(rr(Ar),kn=xr(Bs,St,1,en)))return kn}else{if(l!==ah&&l!==_d&&Ylt(St)&&Q0(nt))return-1;if(Sf(St))return Sf(nt)&&(kn=ot(nt,St,en))?kn:0;const Si=!!(Wi&402784252);if(l!==Of)nt=of(nt),Wi=nt.flags;else if(Sf(nt))return 0;if(Br(nt)&4&&Br(St)&4&&nt.target===St.target&&!Ga(nt)&&!(ute(nt)||ute(St))){if(mte(nt))return-1;const Bs=Sye(nt.target);if(Bs===Ke)return 1;const Ma=Ta(ac(nt),ac(St),Bs,Qn);if(Ma!==void 0)return Ma}else{if(KD(St)?Rf(nt,Q2):bd(St)&&Rf(nt,Bs=>Ga(Bs)&&!Bs.target.readonly))return l!==Of?xr(q2(nt,xt)||U,q2(St,xt)||U,3,en):0;if(Tv(nt)&&Ga(St)&&!Tv(St)){const Bs=H0(nt);if(Bs!==nt)return xr(Bs,St,1,en)}else if((l===ah||l===_d)&&Q0(St)&&Br(St)&8192&&!Q0(nt))return 0}if(Wi&2621440&&Us&524288){const Bs=en&&j===Ar.errorInfo&&!Si;if(kn=ji(nt,St,Bs,void 0,!1,Qn),kn&&(kn&=qs(nt,St,0,Bs,Qn),kn&&(kn&=qs(nt,St,1,Bs,Qn),kn&&(kn&=zo(nt,St,Si,Bs,Qn)))),Gr&&kn)j=yr||j||Ar.errorInfo;else if(kn)return kn}if(Wi&2621440&&Us&1048576){const Bs=s8(St,36175872);if(Bs.flags&1048576){const Ma=Mt(nt,Bs);if(Ma)return Ma}}}return 0;function xa(Si){return Si?D_(Si,(Bs,Ma)=>Bs+1+xa(Ma.next),0):0}function Ta(Si,Bs,Ma,Uo){if(kn=pi(Si,Bs,Ma,en,Uo))return kn;if(Pe(Ma,Yl=>!!(Yl&24))){yr=void 0,rr(Ar);return}const ko=Bs&&wft(Bs,Ma);if(Gr=!ko,Ma!==Ke&&!ko){if(Gr&&!(en&&Pe(Ma,Yl=>(Yl&7)===0)))return 0;yr=j,rr(Ar)}}}function ot(nt,St,en){if(l===np||(l===Of?mh(nt)===mh(St):m0e(nt)<=m0e(St))){let Ar;const kn=Qp(St),yr=_s(Qp(nt),m0e(nt)<0?Lo:Ou);if(Ar=xr(kn,yr,3,en)){const Gr=cp([zm(nt)],[zm(St)]);if(_s(Hy(nt),Gr)===_s(Hy(St),Gr))return Ar&xr(_s(q0(nt),Gr),q0(St),3,en)}}return 0}function Mt(nt,St){var en;const Qn=Po(nt),Ar=MOe(Qn,St);if(!Ar)return 0;let kn=1;for(const Ta of Ar)if(kn*=zpt(fv(Ta)),kn>25)return(en=cr)==null||en.instant(cr.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:nt.id,targetId:St.id,numCombinations:kn}),0;const yr=new Array(Ar.length),Gr=new Set;for(let Ta=0;TaTa[Ma],!1,0,X||l===np))continue e}Jf(Us,Bs,ly),Si=!0}if(!Si)return 0}let xa=-1;for(const Ta of Us)if(xa&=ji(nt,Ta,!1,Gr,!1,0),xa&&(xa&=qs(nt,Ta,0,!1,0),xa&&(xa&=qs(nt,Ta,1,!1,0),xa&&!(Ga(nt)&&Ga(Ta))&&(xa&=zo(nt,Ta,!1,!1,0)))),!xa)return xa;return xa}function fn(nt,St){if(!St||nt.length===0)return nt;let en;for(let Qn=0;Qn5?gs(p.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Hn(nt),Hn(St),Kt(kn.slice(0,4),yr=>Ti(yr)).join(", "),kn.length-4):gs(p.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Hn(nt),Hn(St),Kt(kn,yr=>Ti(yr)).join(", ")),Ar&&j&&Rn++)}function ji(nt,St,en,Qn,Ar,kn){if(l===Of)return Ur(nt,St,Qn);let yr=-1;if(Ga(St)){if(Q2(nt)){if(!St.target.readonly&&(KD(nt)||Ga(nt)&&nt.target.readonly))return 0;const Ta=$y(nt),Si=$y(St),Bs=Ga(nt)?nt.target.combinedFlags&4:4,Ma=St.target.combinedFlags&4,Uo=Ga(nt)?nt.target.minLength:0,ko=St.target.minLength;if(!Bs&&Ta=ty?Si-1-Math.min(Sm,qT):Xm,Nr=St.target.elementFlags[Nt];if(Nr&8&&!(u6&8))return en&&gs(p.Source_provides_no_match_for_variadic_element_at_position_0_in_target,Nt),0;if(u6&8&&!(Nr&12))return en&&gs(p.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,Xm,Nt),0;if(Nr&1&&!(u6&1))return en&&gs(p.Source_provides_no_match_for_required_element_at_position_0_in_target,Nt),0;if(v8&&((u6&12||Nr&12)&&(v8=!1),v8&&(Qn!=null&&Qn.has(""+Xm))))continue;const di=Cv(Yl[Xm],!!(u6&Nr&2)),Xr=Sh[Nt],_i=u6&8&&Nr&4?u_(Xr):Cv(Xr,!!(Nr&2)),fo=xr(di,_i,3,en,void 0,kn);if(!fo)return en&&(Si>1||Ta>1)&&(HT&&Xm>=ty&&Sm>=qT&&ty!==Ta-qT-1?Es(p.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,ty,Ta-qT-1,Nt):Es(p.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,Xm,Nt)),0;yr&=fo}return yr}if(St.target.combinedFlags&12)return 0}const Gr=(l===ah||l===_d)&&!K2(nt)&&!mte(nt)&&!Ga(nt),Wi=jye(nt,St,Gr,!1);if(Wi)return en&&An(nt,St)&&jn(nt,St,Wi,Gr),0;if(K2(St)){for(const Ta of fn(Po(nt),Qn))if(!W2(St,Ta.escapedName)&&!(fr(Ta).flags&32768))return en&&gs(p.Property_0_does_not_exist_on_type_1,Ti(Ta),Hn(St)),0}const Us=Po(St),xa=Ga(nt)&&Ga(St);for(const Ta of fn(Us,Qn)){const Si=Ta.escapedName;if(!(Ta.flags&4194304)&&(!xa||Jh(Si)||Si==="length")&&(!Ar||Ta.flags&16777216)){const Bs=Ea(nt,Si);if(Bs&&Bs!==Ta){const Ma=dn(nt,St,Bs,Ta,fv,en,kn,l===np);if(!Ma)return 0;yr&=Ma}}}return yr}function Ur(nt,St,en){if(!(nt.flags&524288&&St.flags&524288))return 0;const Qn=fn(mv(nt),en),Ar=fn(mv(St),en);if(Qn.length!==Ar.length)return 0;let kn=-1;for(const yr of Qn){const Gr=W2(St,yr.escapedName);if(!Gr)return 0;const Wi=Tye(yr,Gr,xr);if(!Wi)return 0;kn&=Wi}return kn}function qs(nt,St,en,Qn,Ar){var kn,yr;if(l===Of)return Da(nt,St,en);if(St===rn||nt===rn)return-1;const Gr=nt.symbol&&Dg(nt.symbol.valueDeclaration),Wi=St.symbol&&Dg(St.symbol.valueDeclaration),Us=ra(nt,Gr&&en===1?0:en),xa=ra(St,Wi&&en===1?0:en);if(en===1&&Us.length&&xa.length){const Uo=!!(Us[0].flags&4),ko=!!(xa[0].flags&4);if(Uo&&!ko)return Qn&&gs(p.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!$m(Us[0],xa[0],Qn))return 0}let Ta=-1;const Si=en===1?ns:ni,Bs=Br(nt),Ma=Br(St);if(Bs&64&&Ma&64&&nt.symbol===St.symbol||Bs&4&&Ma&4&&nt.target===St.target){w.assertEqual(Us.length,xa.length);for(let Uo=0;Uo_h(ty,void 0,262144,en);return gs(p.Type_0_is_not_assignable_to_type_1,Sh(ko),Sh(Yl)),gs(p.Types_of_construct_signatures_are_incompatible),Ta}}else e:for(const Uo of xa){const ko=Ns();let Yl=Qn;for(const Sh of Us){const ty=ds(Sh,Uo,!0,Yl,Ar,Si(Sh,Uo));if(ty){Ta&=ty,rr(ko);continue e}Yl=!1}return Yl&&gs(p.Type_0_provides_no_match_for_the_signature_1,Hn(nt),_h(Uo,void 0,void 0,en)),0}return Ta}function An(nt,St){const en=hJ(nt,0),Qn=hJ(nt,1),Ar=mv(nt);return(en.length||Qn.length)&&!Ar.length?!!(ra(St,0).length&&en.length||ra(St,1).length&&Qn.length):!0}function ni(nt,St){return nt.parameters.length===0&&St.parameters.length===0?(en,Qn)=>Es(p.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Hn(en),Hn(Qn)):(en,Qn)=>Es(p.Call_signature_return_types_0_and_1_are_incompatible,Hn(en),Hn(Qn))}function ns(nt,St){return nt.parameters.length===0&&St.parameters.length===0?(en,Qn)=>Es(p.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Hn(en),Hn(Qn)):(en,Qn)=>Es(p.Construct_signature_return_types_0_and_1_are_incompatible,Hn(en),Hn(Qn))}function ds(nt,St,en,Qn,Ar,kn){const yr=l===ah?16:l===_d?24:0;return gye(en?D5(nt):nt,en?D5(St):St,yr,Qn,gs,kn,Gr,Ou);function Gr(Wi,Us,xa){return xr(Wi,Us,3,xa,void 0,Ar)}}function Da(nt,St,en){const Qn=ra(nt,en),Ar=ra(St,en);if(Qn.length!==Ar.length)return 0;let kn=-1;for(let yr=0;yrWi.keyType===Ie);let Gr=-1;for(const Wi of kn){const Us=l!==_d&&!en&&yr&&Wi.type.flags&1?-1:Sf(nt)&&yr?xr(q0(nt),Wi.type,3,Qn):Qu(nt,Wi,Qn,Ar);if(!Us)return 0;Gr&=Us}return Gr}function Qu(nt,St,en,Qn){const Ar=E5(nt,St.keyType);return Ar?Ho(Ar,St,en,Qn):!(Qn&1)&&(l!==_d||Br(nt)&8192)&&Ste(nt)?zl(nt,St,en,Qn):(en&&gs(p.Index_signature_for_type_0_is_missing_in_type_1,Hn(St.keyType),Hn(nt)),0)}function oc(nt,St){const en=V_(nt),Qn=V_(St);if(en.length!==Qn.length)return 0;for(const Ar of Qn){const kn=r0(nt,Ar.keyType);if(!(kn&&xr(kn.type,Ar.type,3)&&kn.isReadonly===Ar.isReadonly))return 0}return-1}function $m(nt,St,en){if(!nt.declaration||!St.declaration)return!0;const Qn=Ek(nt.declaration,6),Ar=Ek(St.declaration,6);return Ar===2||Ar===4&&Qn!==2||Ar!==4&&!Qn?!0:(en&&gs(p.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,bT(Qn),bT(Ar)),!1)}}function vye(n){if(n.flags&16)return!1;if(n.flags&3145728)return!!dt(n.types,vye);if(n.flags&465829888){const a=kT(n);if(a&&a!==n)return vye(a)}return qm(n)||!!(n.flags&134217728)||!!(n.flags&268435456)}function aOe(n,a){return Ga(n)&&Ga(a)?Ke:Po(a).filter(l=>lte(He(n,l.escapedName),fr(l)))}function lte(n,a){return!!n&&!!a&&Hc(n,32768)&&!!U5(a)}function Eft(n){return Po(n).filter(a=>U5(fr(a)))}function oOe(n,a,l=dye){return CMe(n,a,l)||Ovt(n,a)||Fvt(n,a)||Lvt(n,a)||Mvt(n,a)}function bye(n,a,l){const _=n.types,m=_.map(k=>k.flags&402784252?0:-1);for(const[k,O]of a){let j=!1;for(let W=0;W<_.length;W++)if(m[W]){const re=Ct(_[W],O);re&&l(k(),re)?j=!0:m[W]=3}for(let W=0;W<_.length;W++)m[W]===3&&(m[W]=j?0:-1)}const h=Ai(m,0)?ti(_.filter((k,O)=>m[O]),0):n;return h.flags&131072?n:h}function cOe(n){if(n.flags&524288){const a=Um(n);return a.callSignatures.length===0&&a.constructSignatures.length===0&&a.indexInfos.length===0&&a.properties.length>0&&Pn(a.properties,l=>!!(l.flags&16777216))}return n.flags&2097152?Pn(n.types,cOe):!1}function Pft(n,a,l){for(const _ of Po(n))if(h1e(a,_.escapedName,l))return!0;return!1}function Sye(n){return n===sa||n===la||n.objectFlags&8?Z:uOe(n.symbol,n.typeParameters)}function lOe(n){return uOe(n,Zi(n).typeParameters)}function uOe(n,a=Ke){var l,_;const m=Zi(n);if(!m.variances){(l=cr)==null||l.push(cr.Phase.CheckTypes,"getVariancesWorker",{arity:a.length,id:W_(fc(n))});const h=k2;k2||(k2=!0,AC=Mu.length),m.variances=Ke;const k=[];for(const O of a){const j=xye(O);let W=j&16384?j&8192?0:1:j&8192?2:void 0;if(W===void 0){let re=!1,be=!1;const he=va;va=Pt=>Pt?be=!0:re=!0;const qe=IJ(n,O,Kf),ht=IJ(n,O,Wo);W=(wa(ht,qe)?1:0)|(wa(qe,ht)?2:0),W===3&&wa(IJ(n,O,Gl),qe)&&(W=4),va=he,(re||be)&&(re&&(W|=8),be&&(W|=16))}k.push(W)}h||(k2=!1,AC=0),m.variances=k,(_=cr)==null||_.pop({variances:k.map(w.formatVariance)})}return m.variances}function IJ(n,a,l){const _=PS(a,l),m=fc(n);if(Gt(m))return m;const h=n.flags&524288?dE(n,Qy(Zi(n).typeParameters,_)):Gy(m,Qy(m.typeParameters,_));return pt.add(W_(h)),h}function ute(n){return pt.has(W_(n))}function xye(n){var a;return D_((a=n.symbol)==null?void 0:a.declarations,(l,_)=>l|M_(_),0)&28672}function wft(n,a){for(let l=0;l!!(a.flags&262144)||_te(a))}function Nft(n,a,l,_){const m=[];let h="";const k=j(n,0),O=j(a,0);return`${h}${k},${O}${l}`;function j(W,re=0){let be=""+W.target.id;for(const he of ac(W)){if(he.flags&262144){if(_||Dft(he)){let qe=m.indexOf(he);qe<0&&(qe=m.length,m.push(he)),be+="="+qe;continue}h="*"}else if(re<4&&_te(he)){be+="<"+j(he,re+1)+">";continue}be+="-"+he.id}return be}}function fte(n,a,l,_,m){if(_===Of&&n.id>a.id){const k=n;n=a,a=k}const h=l?":"+l:"";return _te(n)&&_te(a)?Nft(n,a,h,m):`${n.id},${a.id}${h}`}function OJ(n,a){if(Uc(n)&6){for(const l of n.links.containingType.types){const _=Ea(l,n.escapedName),m=_&&OJ(_,a);if(m)return m}return}return a(n)}function s6(n){return n.parent&&n.parent.flags&32?fc(rf(n)):void 0}function pte(n){const a=s6(n),l=a&&ap(a)[0];return l&&He(l,n.escapedName)}function Ift(n,a){return OJ(n,l=>{const _=s6(l);return _?cE(_,a):!1})}function Oft(n,a){return!OJ(a,l=>nd(l)&4?!Ift(n,s6(l)):!1)}function _Oe(n,a,l){return OJ(a,_=>nd(_,l)&4?!cE(n,s6(_)):!1)?void 0:n}function ZD(n,a,l,_=3){if(l>=_){if((Br(n)&96)===96&&(n=fOe(n)),n.flags&2097152)return Pe(n.types,O=>ZD(O,a,l,_));const m=dte(n);let h=0,k=0;for(let O=0;O=k&&(h++,h>=_))return!0;k=j.id}}}return!1}function fOe(n){let a;for(;(Br(n)&96)===96&&(a=TT(n))&&(a.symbol||a.flags&2097152&&Pe(a.types,l=>!!l.symbol));)n=a;return n}function pOe(n,a){return(Br(n)&96)===96&&(n=fOe(n)),n.flags&2097152?Pe(n.types,l=>pOe(l,a)):dte(n)===a}function dte(n){if(n.flags&524288&&!Jye(n)){if(Br(n)&4&&n.node)return n.node;if(n.symbol&&!(Br(n)&16&&n.symbol.flags&32))return n.symbol;if(Ga(n))return n.target}if(n.flags&262144)return n.symbol;if(n.flags&8388608){do n=n.objectType;while(n.flags&8388608);return n}return n.flags&16777216?n.root:n}function Fft(n,a){return Tye(n,a,R5)!==0}function Tye(n,a,l){if(n===a)return-1;const _=nd(n)&6,m=nd(a)&6;if(_!==m)return 0;if(_){if(wE(n)!==wE(a))return 0}else if((n.flags&16777216)!==(a.flags&16777216))return 0;return Gm(n)!==Gm(a)?0:l(fr(n),fr(a))}function Lft(n,a,l){const _=Ep(n),m=Ep(a),h=Ag(n),k=Ag(a),O=bh(n),j=bh(a);return!!(_===m&&h===k&&O===j||l&&h<=k)}function FJ(n,a,l,_,m,h){if(n===a)return-1;if(!Lft(n,a,l)||Xe(n.typeParameters)!==Xe(a.typeParameters))return 0;if(a.typeParameters){const j=cp(n.typeParameters,a.typeParameters);for(let W=0;Wa|(l.flags&1048576?dOe(l.types):l.flags),0)}function jft(n){if(n.length===1)return n[0];const a=X?Dc(n,_=>Dl(_,m=>!(m.flags&98304))):n,l=Rft(a)?ti(a):D_(a,(_,m)=>Sv(_,m)?m:_);return a===n?l:RJ(l,dOe(n)&98304)}function Bft(n){return D_(n,(a,l)=>Sv(l,a)?l:a)}function bd(n){return!!(Br(n)&4)&&(n.target===sa||n.target===la)}function KD(n){return!!(Br(n)&4)&&n.target===la}function Q2(n){return bd(n)||Ga(n)}function LJ(n){return bd(n)&&!KD(n)||Ga(n)&&!n.target.readonly}function MJ(n){return bd(n)?ac(n)[0]:void 0}function Yy(n){return bd(n)||!(n.flags&98304)&&wa(n,Up)}function kye(n){return LJ(n)||!(n.flags&98305)&&wa(n,vl)}function Cye(n){if(!(Br(n)&4)||!(Br(n.target)&3))return;if(Br(n)&33554432)return Br(n)&67108864?n.cachedEquivalentBaseType:void 0;n.objectFlags|=33554432;const a=n.target;if(Br(a)&1){const m=Mo(a);if(m&&m.expression.kind!==80&&m.expression.kind!==211)return}const l=ap(a);if(l.length!==1||dv(n.symbol).size)return;let _=Xe(a.typeParameters)?_s(l[0],cp(a.typeParameters,ac(n).slice(0,a.typeParameters.length))):l[0];return Xe(ac(n))>Xe(a.typeParameters)&&(_=kp(_,so(ac(n)))),n.objectFlags|=67108864,n.cachedEquivalentBaseType=_}function mOe(n){return X?n===Mi:n===Ot}function mte(n){const a=MJ(n);return!!a&&mOe(a)}function e8(n){let a;return Ga(n)||!!Ea(n,"0")||Yy(n)&&!!(a=He(n,"length"))&&Rf(a,l=>!!(l.flags&256))}function gte(n){return Yy(n)||e8(n)}function Jft(n,a){const l=He(n,""+a);if(l)return l;if(Rf(n,Ga))return vOe(n,a,z.noUncheckedIndexedAccess?Fe:void 0)}function zft(n){return!(n.flags&240544)}function qm(n){return!!(n.flags&109472)}function gOe(n){const a=H0(n);return a.flags&2097152?Pe(a.types,qm):qm(a)}function Uft(n){return n.flags&2097152&&Cn(n.types,qm)||n}function J5(n){return n.flags&16?!0:n.flags&1048576?n.flags&1024?!0:Pn(n.types,qm):qm(n)}function Y0(n){return n.flags&1056?Mee(n):n.flags&402653312?Ie:n.flags&256?xt:n.flags&2048?Ft:n.flags&512?Li:n.flags&1048576?Vft(n):n}function Vft(n){const a=`B${W_(n)}`;return RC(a)??G1(a,kc(n,Y0))}function Eye(n){return n.flags&402653312?Ie:n.flags&288?xt:n.flags&2048?Ft:n.flags&512?Li:n.flags&1048576?kc(n,Eye):n}function DS(n){return n.flags&1056&&ES(n)?Mee(n):n.flags&128&&ES(n)?Ie:n.flags&256&&ES(n)?xt:n.flags&2048&&ES(n)?Ft:n.flags&512&&ES(n)?Li:n.flags&1048576?kc(n,DS):n}function hOe(n){return n.flags&8192?wi:n.flags&1048576?kc(n,hOe):n}function Pye(n,a){return ane(n,a)||(n=hOe(DS(n))),q_(n)}function Wft(n,a,l){if(n&&qm(n)){const _=a?l?nO(a):a:void 0;n=Pye(n,_)}return n}function wye(n,a,l,_){if(n&&qm(n)){const m=a?FS(l,a,_):void 0;n=Pye(n,m)}return n}function Ga(n){return!!(Br(n)&4&&n.target.objectFlags&8)}function Tv(n){return Ga(n)&&!!(n.target.combinedFlags&8)}function yOe(n){return Tv(n)&&n.target.elementFlags.length===1}function hte(n){return t8(n,n.target.fixedLength)}function vOe(n,a,l){return kc(n,_=>{const m=_,h=hte(m);return h?l&&a>=X0e(m.target)?ti([h,l]):h:Fe})}function qft(n){const a=hte(n);return a&&u_(a)}function t8(n,a,l=0,_=!1,m=!1){const h=$y(n)-l;if(a(l&12)===(a.target.elementFlags[_]&12))}function bOe({value:n}){return n.base10Value==="0"}function SOe(n){return Dl(n,a=>qd(a,4194304))}function Gft(n){return kc(n,$ft)}function $ft(n){return n.flags&4?aa:n.flags&8?no:n.flags&64?x_:n===Sn||n===tn||n.flags&114691||n.flags&128&&n.value===""||n.flags&256&&n.value===0||n.flags&2048&&bOe(n)?n:Wr}function RJ(n,a){const l=a&~n.flags&98304;return l===0?n:ti(l===32768?[n,Fe]:l===65536?[n,de]:[n,Fe,de])}function kv(n,a=!1){w.assert(X);const l=a?me:Fe;return n===l||n.flags&1048576&&n.types[0]===l?n:ti([n,l])}function Xft(n){return gf||(gf=XD("NonNullable",524288,void 0)||ft),gf!==ft?dE(gf,[n]):Pa([n,Ja])}function Z0(n){return X?RT(n,2097152):n}function xOe(n){return X?ti([n,H]):n}function yte(n){return X?Ate(n,H):n}function vte(n,a,l){return l?dP(a)?kv(n):xOe(n):n}function z5(n,a){return bF(a)?Z0(n):m_(a)?yte(n):n}function Cv(n,a){return Ee&&a?Ate(n,I):n}function U5(n){return n===I||!!(n.flags&1048576)&&n.types[0]===I}function bte(n){return Ee?Ate(n,I):Hd(n,524288)}function Qft(n,a){return(n.flags&524)!==0&&(a.flags&28)!==0}function Ste(n){const a=Br(n);return n.flags&2097152?Pn(n.types,Ste):!!(n.symbol&&n.symbol.flags&7040&&!(n.symbol.flags&32)&&!xne(n))||!!(a&4194304)||!!(a&1024&&Ste(n.source))}function FT(n,a){const l=ro(n.flags,n.escapedName,Uc(n)&8);l.declarations=n.declarations,l.parent=n.parent,l.links.type=a,l.links.target=n,n.valueDeclaration&&(l.valueDeclaration=n.valueDeclaration);const _=Zi(n).nameType;return _&&(l.links.nameType=_),l}function Yft(n,a){const l=ha();for(const _ of mv(n)){const m=fr(_),h=a(m);l.set(_.escapedName,h===m?_:FT(_,h))}return l}function V5(n){if(!(K2(n)&&Br(n)&8192))return n;const a=n.regularType;if(a)return a;const l=n,_=Yft(n,V5),m=qo(l.symbol,_,l.callSignatures,l.constructSignatures,l.indexInfos);return m.flags=l.flags,m.objectFlags|=l.objectFlags&-8193,n.regularType=m,m}function TOe(n,a,l){return{parent:n,propertyName:a,siblings:l,resolvedProperties:void 0}}function kOe(n){if(!n.siblings){const a=[];for(const l of kOe(n.parent))if(K2(l)){const _=W2(l,n.propertyName);_&&jT(fr(_),m=>{a.push(m)})}n.siblings=a}return n.siblings}function Zft(n){if(!n.resolvedProperties){const a=new Map;for(const l of kOe(n))if(K2(l)&&!(Br(l)&2097152))for(const _ of Po(l))a.set(_.escapedName,_);n.resolvedProperties=Vs(a.values())}return n.resolvedProperties}function Kft(n,a){if(!(n.flags&4))return n;const l=fr(n),_=a&&TOe(a,n.escapedName,void 0),m=Dye(l,_);return m===l?n:FT(n,m)}function ept(n){const a=Ve.get(n.escapedName);if(a)return a;const l=FT(n,me);return l.flags|=16777216,Ve.set(n.escapedName,l),l}function tpt(n,a){const l=ha();for(const m of mv(n))l.set(m.escapedName,Kft(m,a));if(a)for(const m of Zft(a))l.has(m.escapedName)||l.set(m.escapedName,ept(m));const _=qo(n.symbol,l,Ke,Ke,Dc(V_(n),m=>hh(m.keyType,Cp(m.type),m.isReadonly)));return _.objectFlags|=Br(n)&266240,_}function Cp(n){return Dye(n,void 0)}function Dye(n,a){if(Br(n)&196608){if(a===void 0&&n.widened)return n.widened;let l;if(n.flags&98305)l=U;else if(K2(n))l=tpt(n,a);else if(n.flags&1048576){const _=a||TOe(void 0,void 0,n.types),m=Dc(n.types,h=>h.flags&98304?h:Dye(h,_));l=ti(m,Pe(m,Q0)?2:1)}else n.flags&2097152?l=Pa(Dc(n.types,Cp)):Q2(n)&&(l=Gy(n.target,Dc(ac(n),Cp)));return l&&a===void 0&&(n.widened=l),l||n}return n}function xte(n){let a=!1;if(Br(n)&65536){if(n.flags&1048576)if(Pe(n.types,Q0))a=!0;else for(const l of n.types)xte(l)&&(a=!0);if(Q2(n))for(const l of ac(n))xte(l)&&(a=!0);if(K2(n))for(const l of mv(n)){const _=fr(l);Br(_)&65536&&(xte(_)||We(l.valueDeclaration,p.Object_literal_s_property_0_implicitly_has_an_1_type,Ti(l),Hn(Cp(_))),a=!0)}}return a}function Y2(n,a,l){const _=Hn(Cp(a));if(lr(n)&&!xN(qn(n),z))return;let m;switch(n.kind){case 226:case 172:case 171:m=fe?p.Member_0_implicitly_has_an_1_type:p.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 169:const h=n;if(Je(h.name)){const k=Wv(h.name);if((Wk(h.parent)||Xg(h.parent)||Qg(h.parent))&&h.parent.parameters.includes(h)&&(Lc(h,h.name.escapedText,788968,void 0,h.name.escapedText,!0)||k&&kq(k))){const O="arg"+h.parent.parameters.indexOf(h),j=Bo(h.name)+(h.dotDotDotToken?"[]":"");Ru(fe,n,p.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,O,j);return}}m=n.dotDotDotToken?fe?p.Rest_parameter_0_implicitly_has_an_any_type:p.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:fe?p.Parameter_0_implicitly_has_an_1_type:p.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 208:if(m=p.Binding_element_0_implicitly_has_an_1_type,!fe)return;break;case 324:We(n,p.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,_);return;case 330:fe&&J4(n.parent)&&We(n.parent.tagName,p.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,_);return;case 262:case 174:case 173:case 177:case 178:case 218:case 219:if(fe&&!n.name){l===3?We(n,p.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,_):We(n,p.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,_);return}m=fe?l===3?p._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:p._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:p._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 200:fe&&We(n,p.Mapped_object_type_implicitly_has_an_any_template_type);return;default:m=fe?p.Variable_0_implicitly_has_an_1_type:p.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}Ru(fe,n,m,Bo(Ms(n)),_)}function Tte(n,a,l){r(()=>{fe&&Br(a)&65536&&(!l||!_1e(n))&&(xte(a)||Y2(n,a,l))})}function Aye(n,a,l){const _=Ep(n),m=Ep(a),h=Y5(n),k=Y5(a),O=k?m-1:m,j=h?O:Math.min(_,O),W=H2(n);if(W){const re=H2(a);re&&l(W,re)}for(let re=0;rea.typeParameter),Kt(n.inferences,(a,l)=>()=>(a.isFixed||(spt(n),kte(n.inferences),a.isFixed=!0),zye(n,l))))}function ipt(n){return lye(Kt(n.inferences,a=>a.typeParameter),Kt(n.inferences,(a,l)=>()=>zye(n,l)))}function kte(n){for(const a of n)a.isFixed||(a.inferredType=void 0)}function Oye(n,a,l){(n.intraExpressionInferenceSites??(n.intraExpressionInferenceSites=[])).push({node:a,type:l})}function spt(n){if(n.intraExpressionInferenceSites){for(const{node:a,type:l}of n.intraExpressionInferenceSites){const _=a.kind===174?vFe(a,2):Tf(a,2);_&&K0(n.inferences,l,_)}n.intraExpressionInferenceSites=void 0}}function Fye(n){return{typeParameter:n,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function COe(n){return{typeParameter:n.typeParameter,candidates:n.candidates&&n.candidates.slice(),contraCandidates:n.contraCandidates&&n.contraCandidates.slice(),inferredType:n.inferredType,priority:n.priority,topLevel:n.topLevel,isFixed:n.isFixed,impliedArity:n.impliedArity}}function apt(n){const a=vr(n.inferences,EE);return a.length?Iye(Kt(a,COe),n.signature,n.flags,n.compareTypes):void 0}function Lye(n){return n&&n.mapper}function Z2(n){const a=Br(n);if(a&524288)return!!(a&1048576);const l=!!(n.flags&465829888||n.flags&524288&&!EOe(n)&&(a&4&&(n.node||Pe(ac(n),Z2))||a&16&&n.symbol&&n.symbol.flags&14384&&n.symbol.declarations||a&12583968)||n.flags&3145728&&!(n.flags&1024)&&!EOe(n)&&Pe(n.types,Z2));return n.flags&3899393&&(n.objectFlags|=524288|(l?1048576:0)),l}function EOe(n){if(n.aliasSymbol&&!n.aliasTypeArguments){const a=Cc(n.aliasSymbol,265);return!!(a&&Vn(a.parent,l=>l.kind===312?!0:l.kind===267?!1:"quit"))}return!1}function q5(n,a,l=0){return!!(n===a||n.flags&3145728&&Pe(n.types,_=>q5(_,a,l))||l<3&&n.flags&16777216&&(q5(G2(n),a,l+1)||q5($2(n),a,l+1)))}function opt(n,a){const l=hd(n);return l?!!l.type&&q5(l.type,a):q5(To(n),a)}function cpt(n){const a=ha();jT(n,_=>{if(!(_.flags&128))return;const m=Nc(_.value),h=ro(4,m);h.links.type=U,_.symbol&&(h.declarations=_.symbol.declarations,h.valueDeclaration=_.symbol.valueDeclaration),a.set(m,h)});const l=n.flags&4?[hh(Ie,Ja,!1)]:Ke;return qo(void 0,a,Ke,Ke,l)}function POe(n,a,l){const _=n.id+","+a.id+","+l.id;if(pu.has(_))return pu.get(_);const m=n.id+","+(a.target||a).id;if(Ai(If,m))return;If.push(m);const h=lpt(n,a,l);return If.pop(),pu.set(_,h),h}function Mye(n){return!(Br(n)&262144)||K2(n)&&Pe(Po(n),a=>Mye(fr(a)))||Ga(n)&&Pe(kS(n),Mye)}function lpt(n,a,l){if(!(r0(n,Ie)||Po(n).length!==0&&Mye(n)))return;if(bd(n))return u_(Cte(ac(n)[0],a,l),KD(n));if(Ga(n)){const m=Kt(kS(n),k=>Cte(k,a,l)),h=mh(a)&4?Dc(n.target.elementFlags,k=>k&2?1:k):n.target.elementFlags;return yh(m,h,n.target.readonly,n.target.labeledElementDeclarations)}const _=pd(1040,void 0);return _.source=n,_.mappedType=a,_.constraintType=l,_}function upt(n){const a=Zi(n);return a.type||(a.type=Cte(n.links.propertyType,n.links.mappedType,n.links.constraintType)),a.type}function Cte(n,a,l){const _=op(l.type,zm(a)),m=q0(a),h=Fye(_);return K0([h],n,m),wOe(h)||mn}function*Rye(n,a,l,_){const m=Po(a);for(const h of m)if(!hIe(h)&&(l||!(h.flags&16777216||Uc(h)&48))){const k=Ea(n,h.escapedName);if(!k)yield h;else if(_){const O=fr(h);if(O.flags&109472){const j=fr(k);j.flags&1||q_(j)===q_(O)||(yield h)}}}}function jye(n,a,l,_){return wO(Rye(n,a,l,_))}function _pt(n,a){return!(a.target.combinedFlags&8)&&a.target.minLength>n.target.minLength||!a.target.hasRestElement&&(n.target.hasRestElement||a.target.fixedLengthn6(h,m),n)===n&&Ete(n,a)}return!1}function NOe(n,a){if(a.flags&2097152)return Pn(a.types,l=>l===El||NOe(n,l));if(a.flags&4||wa(n,a))return!0;if(n.flags&128){const l=n.value;return!!(a.flags&8&&AOe(l,!1)||a.flags&64&&Z9(l,!1)||a.flags&98816&&l===a.intrinsicName||a.flags&268435456&&Ete(xf(l),a)||a.flags&134217728&&Pte(n,a))}if(n.flags&134217728){const l=n.texts;return l.length===2&&l[0]===""&&l[1]===""&&wa(n.types[0],a)}return!1}function IOe(n,a){return n.flags&128?OOe([n.value],Ke,a):n.flags&134217728?su(n.texts,a.texts)?Kt(n.types,mpt):OOe(n.texts,n.types,a):void 0}function Pte(n,a){const l=IOe(n,a);return!!l&&Pn(l,(_,m)=>NOe(_,a.types[m]))}function mpt(n){return n.flags&402653317?n:wT(["",""],[n])}function OOe(n,a,l){const _=n.length-1,m=n[0],h=n[_],k=l.texts,O=k.length-1,j=k[0],W=k[O];if(_===0&&m.length0){let or=he,Rn=qe;for(;Rn=ht(or).indexOf(un,Rn),!(Rn>=0);){if(or++,or===n.length)return;Rn=0}Pt(or,Rn),qe+=un.length}else if(qe!Ai(xr,yo)):Mn,Fs?vr(tr,yo=>!Ai(Fs,yo)):tr]}function or(Mn,tr,cs){const xr=Mn.length!!Jn(Fs));if(!xr||tr&&xr!==tr)return;tr=xr}return tr}function nr(Mn,tr,cs){let xr=0;if(cs&1048576){let Fs;const yo=Mn.flags&1048576?Mn.types:[Mn],Oo=new Array(yo.length);let __=!1;for(const $a of tr)if(Jn($a))Fs=$a,xr++;else for(let cf=0;cfOo[Kc]?void 0:cf);if($a.length){he(ti($a),Fs);return}}}else for(const Fs of tr)Jn(Fs)?xr++:he(Mn,Fs);if(cs&2097152?xr===1:xr>0)for(const Fs of tr)Jn(Fs)&&qe(Mn,Fs,1)}function $n(Mn,tr,cs){if(cs.flags&1048576||cs.flags&2097152){let xr=!1;for(const Fs of cs.types)xr=$n(Mn,tr,Fs)||xr;return xr}if(cs.flags&4194304){const xr=Jn(cs.type);if(xr&&!xr.isFixed&&!DOe(Mn)){const Fs=POe(Mn,tr,cs);Fs&&qe(Fs,xr.typeParameter,Br(Mn)&262144?16:8)}return!0}if(cs.flags&262144){qe(Cg(Mn,Mn.pattern?2:0),cs,32);const xr=kT(cs);if(xr&&$n(Mn,tr,xr))return!0;const Fs=Kt(Po(Mn),fr),yo=Kt(V_(Mn),Oo=>Oo!==qr?Oo.type:Wr);return he(ti(zn(Fs,yo)),q0(tr)),!0}return!1}function rr(Mn,tr){if(Mn.flags&16777216)he(Mn.checkType,tr.checkType),he(Mn.extendsType,tr.extendsType),he(G2(Mn),G2(tr)),he($2(Mn),$2(tr));else{const cs=[G2(tr),$2(tr)];Pt(Mn,cs,tr.flags,m?64:0)}}function Ns(Mn,tr){const cs=IOe(Mn,tr),xr=tr.types;if(cs||Pn(tr.texts,Fs=>Fs.length===0))for(let Fs=0;FsMc|lt.flags,0);if(!(Kc&4)){const Mc=yo.value;Kc&296&&!AOe(Mc,!0)&&(Kc&=-297),Kc&2112&&!Z9(Mc,!0)&&(Kc&=-2113);const lt=D_(cf,(ke,Fn)=>Fn.flags&Kc?ke.flags&4?ke:Fn.flags&4?yo:ke.flags&134217728?ke:Fn.flags&134217728&&Pte(yo,Fn)?yo:ke.flags&268435456?ke:Fn.flags&268435456&&Mc===D5e(Fn.symbol,Mc)?yo:ke.flags&128?ke:Fn.flags&128&&Fn.value===Mc?Fn:ke.flags&8?ke:Fn.flags&8?Wm(+Mc):ke.flags&32?ke:Fn.flags&32?Wm(+Mc):ke.flags&256?ke:Fn.flags&256&&Fn.value===+Mc?Fn:ke.flags&64?ke:Fn.flags&64?dpt(Mc):ke.flags&2048?ke:Fn.flags&2048&&wb(Fn.value)===Mc?Fn:ke.flags&16?ke:Fn.flags&16?Mc==="true"?Un:Mc==="false"?tn:Li:ke.flags&512?ke:Fn.flags&512&&Fn.intrinsicName===Mc?Fn:ke.flags&32768?ke:Fn.flags&32768&&Fn.intrinsicName===Mc?Fn:ke.flags&65536?ke:Fn.flags&65536&&Fn.intrinsicName===Mc?Fn:ke:ke,Wr);if(!(lt.flags&131072)){he(lt,Oo);continue}}}}he(yo,Oo)}}function Es(Mn,tr){he(Qp(Mn),Qp(tr)),he(q0(Mn),q0(tr));const cs=Hy(Mn),xr=Hy(tr);cs&&xr&&he(cs,xr)}function Ws(Mn,tr){var cs,xr;if(Br(Mn)&4&&Br(tr)&4&&(Mn.target===tr.target||bd(Mn)&&bd(tr))){or(ac(Mn),ac(tr),Sye(Mn.target));return}if(Sf(Mn)&&Sf(tr)&&Es(Mn,tr),Br(tr)&32&&!tr.declaration.nameType){const Fs=Qp(tr);if($n(Mn,tr,Fs))return}if(!fpt(Mn,tr)){if(Q2(Mn)){if(Ga(tr)){const Fs=$y(Mn),yo=$y(tr),Oo=ac(tr),__=tr.target.elementFlags;if(Ga(Mn)&&Hft(Mn,tr)){for(let Kc=0;Kc0){const yo=ra(tr,cs),Oo=yo.length;for(let __=0;__1){const a=vr(n,Jye);if(a.length){const l=ti(a,2);return zn(vr(n,_=>!Jye(_)),[l])}}return n}function bpt(n){return n.priority&416?Pa(n.contraCandidates):Bft(n.contraCandidates)}function Spt(n,a){const l=vpt(n.candidates),_=ypt(n.typeParameter)||CT(n.typeParameter),m=!_&&n.topLevel&&(n.isFixed||!opt(a,n.typeParameter)),h=_?Dc(l,q_):m?Dc(l,DS):l,k=n.priority&416?ti(h,2):jft(h);return Cp(k)}function zye(n,a){const l=n.inferences[a];if(!l.inferredType){let _,m;if(n.signature){const k=l.candidates?Spt(l,n.signature):void 0,O=l.contraCandidates?bpt(l):void 0;if(k||O){const j=k&&(!O||!(k.flags&131072)&&Pe(l.contraCandidates,W=>Sv(k,W))&&Pn(n.inferences,W=>W!==l&&af(W.typeParameter)!==l.typeParameter||Pn(W.candidates,re=>Sv(re,k))));_=j?k:O,m=j?O:k}else if(n.flags&1)_=xs;else{const j=ET(l.typeParameter);j&&(_=_s(j,Z_t(Y_t(n,a),n.nonFixingMapper)))}}else _=wOe(l);l.inferredType=_||Uye(!!(n.flags&2));const h=af(l.typeParameter);if(h){const k=_s(h,n.nonFixingMapper);(!_||!n.compareTypes(_,kp(k,_)))&&(l.inferredType=m&&n.compareTypes(m,kp(k,m))?m:k)}}return l.inferredType}function Uye(n){return n?U:mn}function Vye(n){const a=[];for(let l=0;lJ_(a)||im(a)||Xf(a)))}function wte(n,a,l,_){switch(n.kind){case 80:if(!Ck(n)){const k=ym(n);return k!==ft?`${_?ho(_):"-1"}|${W_(a)}|${W_(l)}|${Ia(k)}`:void 0}case 110:return`0|${_?ho(_):"-1"}|${W_(a)}|${W_(l)}`;case 235:case 217:return wte(n.expression,a,l,_);case 166:const m=wte(n.left,a,l,_);return m&&m+"."+n.right.escapedText;case 211:case 212:const h=LT(n);if(h!==void 0){const k=wte(n.expression,a,l,_);return k&&k+"."+h}break;case 206:case 207:case 262:case 218:case 219:case 174:return`${ho(n)}#${W_(a)}`}}function Gu(n,a){switch(a.kind){case 217:case 235:return Gu(n,a.expression);case 226:return Kl(a)&&Gu(n,a.left)||mr(a)&&a.operatorToken.kind===28&&Gu(n,a.right)}switch(n.kind){case 236:return a.kind===236&&n.keywordToken===a.keywordToken&&n.name.escapedText===a.name.escapedText;case 80:case 81:return Ck(n)?a.kind===110:a.kind===80&&ym(n)===ym(a)||(Ji(a)||oo(a))&&Gp(ym(n))===Pr(a);case 110:return a.kind===110;case 108:return a.kind===108;case 235:case 217:return Gu(n.expression,a);case 211:case 212:const l=LT(n),_=$o(a)?LT(a):void 0;return l!==void 0&&_!==void 0&&_===l&&Gu(n.expression,a.expression);case 166:return $o(a)&&n.right.escapedText===LT(a)&&Gu(n.left,a.expression);case 226:return mr(n)&&n.operatorToken.kind===28&&Gu(n.right,a)}return!1}function LT(n){if(Jr(n))return n.name.escapedText;if(uc(n))return xpt(n);if(oo(n)){const a=lo(n);return a?Nc(a):void 0}if(ws(n))return""+n.parent.parameters.indexOf(n)}function qye(n){return n.flags&8192?n.escapedName:n.flags&384?Nc(""+n.value):void 0}function xpt(n){return Ip(n.argumentExpression)?Nc(n.argumentExpression.text):il(n.argumentExpression)?Tpt(n.argumentExpression):void 0}function Tpt(n){const a=ic(n,111551,!0);if(!a||!(a8(a)||a.flags&8))return;const l=a.valueDeclaration;if(l===void 0)return;const _=as(l);if(_){const m=qye(_);if(m!==void 0)return m}if(ex(l)&&L0(l,n)){const m=zA(l);if(m){const h=ca(l.parent)?kg(l):Xu(m);return h&&qye(h)}if(zb(l))return X6(l.name)}}function LOe(n,a){for(;$o(n);)if(n=n.expression,Gu(n,a))return!0;return!1}function MT(n,a){for(;m_(n);)if(n=n.expression,Gu(n,a))return!0;return!1}function n8(n,a){if(n&&n.flags&1048576){const l=MIe(n,a);if(l&&Uc(l)&2)return l.links.isDiscriminantProperty===void 0&&(l.links.isDiscriminantProperty=(l.links.checkFlags&192)===192&&!hE(fr(l))),!!l.links.isDiscriminantProperty}return!1}function MOe(n,a){let l;for(const _ of n)if(n8(a,_.escapedName)){if(l){l.push(_);continue}l=[_]}return l}function kpt(n,a){const l=new Map;let _=0;for(const m of n)if(m.flags&61603840){const h=He(m,a);if(h){if(!J5(h))return;let k=!1;jT(h,O=>{const j=W_(q_(O)),W=l.get(j);W?W!==mn&&(l.set(j,mn),k=!0):l.set(j,m)}),k||_++}}return _>=10&&_*2>=n.length?l:void 0}function jJ(n){const a=n.types;if(!(a.length<10||Br(n)&32768||Bc(a,l=>!!(l.flags&59506688))<10)){if(n.keyPropertyName===void 0){const l=dt(a,m=>m.flags&59506688?dt(Po(m),h=>qm(fr(h))?h.escapedName:void 0):void 0),_=l&&kpt(a,l);n.keyPropertyName=_?l:"",n.constituentMap=_}return n.keyPropertyName.length?n.keyPropertyName:void 0}}function BJ(n,a){var l;const _=(l=n.constituentMap)==null?void 0:l.get(W_(q_(a)));return _!==mn?_:void 0}function ROe(n,a){const l=jJ(n),_=l&&He(a,l);return _&&BJ(n,_)}function Cpt(n,a){const l=jJ(n),_=l&&Cn(a.properties,h=>h.symbol&&h.kind===303&&h.symbol.escapedName===l&&GJ(h.initializer)),m=_&&mz(_.initializer);return m&&BJ(n,m)}function jOe(n,a){return Gu(n,a)||LOe(n,a)}function BOe(n,a){if(n.arguments){for(const l of n.arguments)if(jOe(a,l)||MT(l,a))return!0}return!!(n.expression.kind===211&&jOe(a,n.expression.expression))}function Hye(n){return(!n.id||n.id<0)&&(n.id=_le,_le++),n.id}function Ept(n,a){if(!(n.flags&1048576))return wa(n,a);for(const l of n.types)if(wa(l,a))return!0;return!1}function Ppt(n,a){if(n===a)return n;if(a.flags&131072)return a;const l=`A${W_(n)},${W_(a)}`;return RC(l)??G1(l,wpt(n,a))}function wpt(n,a){const l=Dl(n,m=>Ept(a,m)),_=a.flags&512&&ES(a)?kc(l,i6):l;return wa(a,_)?_:n}function Gye(n){const a=Um(n);return!!(a.callSignatures.length||a.constructSignatures.length||a.members.get("bind")&&Sv(n,jt))}function r8(n,a){return $ye(n,a)&a}function qd(n,a){return r8(n,a)!==0}function $ye(n,a){n.flags&467927040&&(n=l_(n)||mn);const l=n.flags;if(l&268435460)return X?16317953:16776705;if(l&134217856){const _=l&128&&n.value==="";return X?_?12123649:7929345:_?12582401:16776705}if(l&40)return X?16317698:16776450;if(l&256){const _=n.value===0;return X?_?12123394:7929090:_?12582146:16776450}if(l&64)return X?16317188:16775940;if(l&2048){const _=bOe(n);return X?_?12122884:7928580:_?12581636:16775940}return l&16?X?16316168:16774920:l&528?X?n===tn||n===Sn?12121864:7927560:n===tn||n===Sn?12580616:16774920:l&524288?a&(X?83427327:83886079)?Br(n)&16&&Q0(n)?X?83427327:83886079:Gye(n)?X?7880640:16728e3:X?7888800:16736160:0:l&16384?9830144:l&32768?26607360:l&65536?42917664:l&12288?X?7925520:16772880:l&67108864?X?7888800:16736160:l&131072?0:l&1048576?D_(n.types,(_,m)=>_|$ye(m,a),0):l&2097152?Dpt(n,a):83886079}function Dpt(n,a){const l=Hc(n,402784252);let _=0,m=134217727;for(const h of n.types)if(!(l&&h.flags&524288)){const k=$ye(h,a);_|=k,m&=k}return _&8256|m&134209471}function Hd(n,a){return Dl(n,l=>qd(l,a))}function RT(n,a){const l=JOe(Hd(X&&n.flags&2?xc:n,a));if(X)switch(a){case 524288:return kc(l,_=>qd(_,65536)?Pa([_,qd(_,131072)&&!Hc(l,65536)?ti([Ja,de]):Ja]):_);case 1048576:return kc(l,_=>qd(_,131072)?Pa([_,qd(_,65536)&&!Hc(l,32768)?ti([Ja,Fe]):Ja]):_);case 2097152:case 4194304:return kc(l,_=>qd(_,262144)?Xft(_):_)}return l}function JOe(n){return n===xc?mn:n}function Xye(n,a){return a?ti([gi(n),Xu(a)]):n}function zOe(n,a){var l;const _=Xy(a);if(!Od(_))return mt;const m=Fd(_);return He(n,m)||H5((l=e6(n,m))==null?void 0:l.type)||mt}function UOe(n,a){return Rf(n,e8)&&Jft(n,a)||H5(Ky(65,n,Fe,void 0))||mt}function H5(n){return n&&(z.noUncheckedIndexedAccess?ti([n,I]):n)}function VOe(n){return u_(Ky(65,n,Fe,void 0)||mt)}function Apt(n){return n.parent.kind===209&&Qye(n.parent)||n.parent.kind===303&&Qye(n.parent.parent)?Xye(JJ(n),n.right):Xu(n.right)}function Qye(n){return n.parent.kind===226&&n.parent.left===n||n.parent.kind===250&&n.parent.initializer===n}function Npt(n,a){return UOe(JJ(n),n.elements.indexOf(a))}function Ipt(n){return VOe(JJ(n.parent))}function WOe(n){return zOe(JJ(n.parent),n.name)}function Opt(n){return Xye(WOe(n),n.objectAssignmentInitializer)}function JJ(n){const{parent:a}=n;switch(a.kind){case 249:return Ie;case 250:return Sz(a)||mt;case 226:return Apt(a);case 220:return Fe;case 209:return Npt(a,n);case 230:return Ipt(a);case 303:return WOe(a);case 304:return Opt(a)}return mt}function Fpt(n){const a=n.parent,l=HOe(a.parent),_=a.kind===206?zOe(l,n.propertyName||n.name):n.dotDotDotToken?VOe(l):UOe(l,a.elements.indexOf(n));return Xye(_,n.initializer)}function qOe(n){return ei(n).resolvedType||Xu(n)}function Lpt(n){return n.initializer?qOe(n.initializer):n.parent.parent.kind===249?Ie:n.parent.parent.kind===250&&Sz(n.parent.parent)||mt}function HOe(n){return n.kind===260?Lpt(n):Fpt(n)}function Mpt(n){return n.kind===260&&n.initializer&&cv(n.initializer)||n.kind!==208&&n.parent.kind===226&&cv(n.parent.right)}function AS(n){switch(n.kind){case 217:return AS(n.expression);case 226:switch(n.operatorToken.kind){case 64:case 76:case 77:case 78:return AS(n.left);case 28:return AS(n.right)}}return n}function GOe(n){const{parent:a}=n;return a.kind===217||a.kind===226&&a.operatorToken.kind===64&&a.left===n||a.kind===226&&a.operatorToken.kind===28&&a.right===n?GOe(a):n}function Rpt(n){return n.kind===296?q_(Xu(n.expression)):Wr}function Dte(n){const a=ei(n);if(!a.switchTypes){a.switchTypes=[];for(const l of n.caseBlock.clauses)a.switchTypes.push(Rpt(l))}return a.switchTypes}function $Oe(n){if(Pe(n.caseBlock.clauses,l=>l.kind===296&&!vo(l.expression)))return;const a=[];for(const l of n.caseBlock.clauses){const _=l.kind===296?l.expression.text:void 0;a.push(_&&!Ai(a,_)?_:void 0)}return a}function jpt(n,a){return n.flags&1048576?!dt(n.types,l=>!Ai(a,l)):Ai(a,n)}function i8(n,a){return!!(n===a||n.flags&131072||a.flags&1048576&&Bpt(n,a))}function Bpt(n,a){if(n.flags&1048576){for(const l of n.types)if(!G0(a.types,l))return!1;return!0}return n.flags&1056&&Mee(n)===a?!0:G0(a.types,n)}function jT(n,a){return n.flags&1048576?dt(n.types,a):a(n)}function vm(n,a){return n.flags&1048576?Pe(n.types,a):a(n)}function Rf(n,a){return n.flags&1048576?Pn(n.types,a):a(n)}function Jpt(n,a){return n.flags&3145728?Pn(n.types,a):a(n)}function Dl(n,a){if(n.flags&1048576){const l=n.types,_=vr(l,a);if(_===l)return n;const m=n.origin;let h;if(m&&m.flags&1048576){const k=m.types,O=vr(k,j=>!!(j.flags&1048576)||a(j));if(k.length-O.length===l.length-_.length){if(O.length===1)return O[0];h=Q0e(1048576,O)}}return Z0e(_,n.objectFlags&16809984,void 0,void 0,h)}return n.flags&131072||a(n)?n:Wr}function Ate(n,a){return Dl(n,l=>l!==a)}function zpt(n){return n.flags&1048576?n.types.length:1}function kc(n,a,l){if(n.flags&131072)return n;if(!(n.flags&1048576))return a(n);const _=n.origin,m=_&&_.flags&1048576?_.types:n.types;let h,k=!1;for(const O of m){const j=O.flags&1048576?kc(O,a,l):a(O);k||(k=O!==j),j&&(h?h.push(j):h=[j])}return k?h&&ti(h,l?0:1):n}function XOe(n,a,l,_){return n.flags&1048576&&l?ti(Kt(n.types,a),1,l,_):kc(n,a)}function s8(n,a){return Dl(n,l=>(l.flags&a)!==0)}function QOe(n,a){return Hc(n,134217804)&&Hc(a,402655616)?kc(n,l=>l.flags&4?s8(a,402653316):DT(l)&&!Hc(a,402653188)?s8(a,128):l.flags&8?s8(a,264):l.flags&64?s8(a,2112):l):n}function bE(n){return n.flags===0}function BT(n){return n.flags===0?n.type:n}function SE(n,a){return a?{flags:0,type:n.flags&131072?xs:n}:n}function Upt(n){const a=pd(256);return a.elementType=n,a}function Yye(n){return Ln[n.id]||(Ln[n.id]=Upt(n))}function YOe(n,a){const l=V5(Y0(mz(a)));return i8(l,n.elementType)?n:Yye(ti([n.elementType,l]))}function Vpt(n){return n.flags&131072?du:u_(n.flags&1048576?ti(n.types,2):n)}function Wpt(n){return n.finalArrayType||(n.finalArrayType=Vpt(n.elementType))}function zJ(n){return Br(n)&256?Wpt(n):n}function qpt(n){return Br(n)&256?n.elementType:Wr}function Hpt(n){let a=!1;for(const l of n)if(!(l.flags&131072)){if(!(Br(l)&256))return!1;a=!0}return a}function ZOe(n){const a=GOe(n),l=a.parent,_=Jr(l)&&(l.name.escapedText==="length"||l.parent.kind===213&&Je(l.name)&&ZW(l.name)),m=l.kind===212&&l.expression===a&&l.parent.kind===226&&l.parent.operatorToken.kind===64&&l.parent.left===l&&!Lh(l.parent)&&$u(Xu(l.argumentExpression),296);return _||m}function Gpt(n){return(Ji(n)||Zs(n)||Gf(n)||ws(n))&&!!(zu(n)||lr(n)&&h1(n)&&n.initializer&&Db(n.initializer)&&Id(n.initializer))}function Nte(n,a){if(n=al(n),n.flags&8752)return fr(n);if(n.flags&7){if(Uc(n)&262144){const _=n.links.syntheticOrigin;if(_&&Nte(_))return fr(n)}const l=n.valueDeclaration;if(l){if(Gpt(l))return fr(n);if(Ji(l)&&l.parent.parent.kind===250){const _=l.parent.parent,m=UJ(_.expression,void 0);if(m){const h=_.awaitModifier?15:13;return Ky(h,m,Fe,void 0)}}a&&Ua(a,Rr(l,p._0_needs_an_explicit_type_annotation,Ti(n)))}}}function UJ(n,a){if(!(n.flags&67108864))switch(n.kind){case 80:const l=Gp(ym(n));return Nte(l,a);case 110:return ddt(n);case 108:return i1e(n);case 211:{const _=UJ(n.expression,a);if(_){const m=n.name;let h;if(Qi(m)){if(!_.symbol)return;h=Ea(_,sN(_.symbol,m.escapedText))}else h=Ea(_,m.escapedText);return h&&Nte(h,a)}return}case 217:return UJ(n.expression,a)}}function VJ(n){const a=ei(n);let l=a.effectsSignature;if(l===void 0){let _;if(mr(n)){const k=xE(n.right);_=X1e(k)}else n.parent.kind===244?_=UJ(n.expression,void 0):n.expression.kind!==108&&(m_(n)?_=Pg(z5(ms(n.expression),n.expression),n.expression):_=xE(n.expression));const m=ra(_&&of(_)||mn,0),h=m.length===1&&!m[0].typeParameters?m[0]:Pe(m,KOe)?kE(n):void 0;l=a.effectsSignature=h&&KOe(h)?h:_n}return l===_n?void 0:l}function KOe(n){return!!(hd(n)||n.declaration&&(fE(n.declaration)||mn).flags&131072)}function $pt(n,a){if(n.kind===1||n.kind===3)return a.arguments[n.parameterIndex];const l=Eo(a.expression);return $o(l)?Eo(l.expression):void 0}function Xpt(n){const a=Vn(n,eW),l=qn(n),_=Hg(l,a.statements.pos);_o.add(bu(l,_.start,_.length,p.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function WJ(n){const a=Ite(n,!1);return It=n,Wt=a,a}function qJ(n){const a=Eo(n,!0);return a.kind===97||a.kind===226&&(a.operatorToken.kind===56&&(qJ(a.left)||qJ(a.right))||a.operatorToken.kind===57&&qJ(a.left)&&qJ(a.right))}function Ite(n,a){for(;;){if(n===It)return Wt;const l=n.flags;if(l&4096){if(!a){const _=Hye(n),m=Qx[_];return m!==void 0?m:Qx[_]=Ite(n,!0)}a=!1}if(l&368)n=n.antecedent;else if(l&512){const _=VJ(n.node);if(_){const m=hd(_);if(m&&m.kind===3&&!m.type){const h=n.node.arguments[m.parameterIndex];if(h&&qJ(h))return!1}if(To(_).flags&131072)return!1}n=n.antecedent}else{if(l&4)return Pe(n.antecedents,_=>Ite(_,!1));if(l&8){const _=n.antecedents;if(_===void 0||_.length===0)return!1;n=_[0]}else if(l&128){if(n.clauseStart===n.clauseEnd&&F9e(n.switchStatement))return!1;n=n.antecedent}else if(l&1024){It=void 0;const _=n.target,m=_.antecedents;_.antecedents=n.antecedents;const h=Ite(n.antecedent,!1);return _.antecedents=m,h}else return!(l&1)}}}function Ote(n,a){for(;;){const l=n.flags;if(l&4096){if(!a){const _=Hye(n),m=MC[_];return m!==void 0?m:MC[_]=Ote(n,!0)}a=!1}if(l&496)n=n.antecedent;else if(l&512){if(n.node.expression.kind===108)return!0;n=n.antecedent}else{if(l&4)return Pn(n.antecedents,_=>Ote(_,!1));if(l&8)n=n.antecedents[0];else if(l&1024){const _=n.target,m=_.antecedents;_.antecedents=n.antecedents;const h=Ote(n.antecedent,!1);return _.antecedents=m,h}else return!!(l&1)}}}function eFe(n){switch(n.kind){case 110:return!0;case 80:if(!Ck(n)){const l=ym(n);return a8(l)||Lte(l)&&!tFe(l)}break;case 211:case 212:return eFe(n.expression)&&Gm(ei(n).resolvedSymbol||ft);case 206:case 207:const a=rg(n.parent);return ws(a)||Xae(a)?!Zye(a):Ji(a)&&Pz(a)}return!1}function Ev(n,a,l=a,_,m=(h=>(h=si(n,YA))==null?void 0:h.flowNode)()){let h,k=!1,O=0;if(Re)return mt;if(!m)return a;Ze++;const j=N0,W=BT(he(m));N0=j;const re=Br(W)&256&&ZOe(n)?du:zJ(W);if(re===Di||n.parent&&n.parent.kind===235&&!(re.flags&131072)&&Hd(re,2097152).flags&131072)return a;return re===q?mn:re;function be(){return k?h:(k=!0,h=wte(n,a,l,_))}function he(ot){var Mt;if(O===2e3)return(Mt=cr)==null||Mt.instant(cr.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:ot.id}),Re=!0,Xpt(n),mt;O++;let fn;for(;;){const qt=ot.flags;if(qt&4096){for(let jn=j;jn=0&&fn.parameterIndex!(jn.flags&163840)):Mt.kind===221&&MT(Mt.expression,n)&&(qt=yo(qt,ot.switchStatement,ot.clauseStart,ot.clauseEnd,jn=>!(jn.flags&131072||jn.flags&128&&jn.value==="undefined"))));const dn=$n(Mt,qt);dn&&(qt=Es(qt,dn,ot.switchStatement,ot.clauseStart,ot.clauseEnd))}return SE(qt,bE(fn))}function ln(ot){const Mt=[];let fn=!1,qt=!1,dn;for(const jn of ot.antecedents){if(!dn&&jn.flags&128&&jn.clauseStart===jn.clauseEnd){dn=jn;continue}const ji=he(jn),Ur=BT(ji);if(Ur===a&&a===l)return Ur;Jf(Mt,Ur),i8(Ur,l)||(fn=!0),bE(ji)&&(qt=!0)}if(dn){const jn=he(dn),ji=BT(jn);if(!(ji.flags&131072)&&!Ai(Mt,ji)&&!F9e(dn.switchStatement)){if(ji===a&&a===l)return ji;Mt.push(ji),i8(ji,l)||(fn=!0),bE(jn)&&(qt=!0)}}return SE(Bn(Mt,fn?2:1),qt)}function Jn(ot){const Mt=Hye(ot),fn=NC[Mt]||(NC[Mt]=new Map),qt=be();if(!qt)return a;const dn=fn.get(qt);if(dn)return dn;for(let An=yg;An{const An=Ct(qs,qt)||mn;return!(An.flags&131072)&&!(Ur.flags&131072)&&DJ(Ur,An)})}function Ns(ot,Mt,fn,qt,dn){if((fn===37||fn===38)&&ot.flags&1048576){const jn=jJ(ot);if(jn&&jn===LT(Mt)){const ji=BJ(ot,Xu(qt));if(ji)return fn===(dn?37:38)?ji:qm(He(ji,jn)||mn)?Ate(ot,ji):ot}}return rr(ot,Mt,jn=>cs(jn,fn,qt,dn))}function Es(ot,Mt,fn,qt,dn){if(qtBJ(ot,Ur)||mn));if(ji!==mn)return ji}return rr(ot,Mt,jn=>Oo(jn,fn,qt,dn))}function Ws(ot,Mt,fn){if(Gu(n,Mt))return RT(ot,fn?4194304:8388608);X&&fn&&MT(Mt,n)&&(ot=RT(ot,2097152));const qt=$n(Mt,ot);return qt?rr(ot,qt,dn=>Hd(dn,fn?4194304:8388608)):ot}function gs(ot,Mt,fn){const qt=Ea(ot,Mt);return qt?!!(qt.flags&16777216||Uc(qt)&48)||fn:!!e6(ot,Mt)||!fn}function Ql(ot,Mt,fn){const qt=Fd(Mt);if(vm(ot,jn=>gs(jn,qt,!0)))return Dl(ot,jn=>gs(jn,qt,fn));if(fn){const jn=e_t();if(jn)return Pa([ot,dE(jn,[Mt,mn])])}return ot}function Sd(ot,Mt,fn,qt,dn){return dn=dn!==(fn.kind===112)!=(qt!==38&&qt!==36),Hr(ot,Mt,dn)}function jf(ot,Mt,fn){switch(Mt.operatorToken.kind){case 64:case 76:case 77:case 78:return Ws(Hr(ot,Mt.right,fn),Mt.left,fn);case 35:case 36:case 37:case 38:const qt=Mt.operatorToken.kind,dn=AS(Mt.left),jn=AS(Mt.right);if(dn.kind===221&&vo(jn))return xr(ot,dn,qt,jn,fn);if(jn.kind===221&&vo(dn))return xr(ot,jn,qt,dn,fn);if(Gu(n,dn))return cs(ot,qt,jn,fn);if(Gu(n,jn))return cs(ot,qt,dn,fn);X&&(MT(dn,n)?ot=tr(ot,qt,jn,fn):MT(jn,n)&&(ot=tr(ot,qt,dn,fn)));const ji=$n(dn,ot);if(ji)return Ns(ot,ji,qt,jn,fn);const Ur=$n(jn,ot);if(Ur)return Ns(ot,Ur,qt,dn,fn);if(Mc(dn))return lt(ot,qt,jn,fn);if(Mc(jn))return lt(ot,qt,dn,fn);if(vP(jn)&&!$o(dn))return Sd(ot,dn,jn,qt,fn);if(vP(dn)&&!$o(jn))return Sd(ot,jn,dn,qt,fn);break;case 104:return ke(ot,Mt,fn);case 103:if(Qi(Mt.left))return Mn(ot,Mt,fn);const qs=AS(Mt.right);if(U5(ot)&&$o(n)&&Gu(n.expression,qs)){const An=Xu(Mt.left);if(Od(An)&<(n)===Fd(An))return Hd(ot,fn?524288:65536)}if(Gu(n,qs)){const An=Xu(Mt.left);if(Od(An))return Ql(ot,An,fn)}break;case 28:return Hr(ot,Mt.right,fn);case 56:return fn?Hr(Hr(ot,Mt.left,!0),Mt.right,!0):ti([Hr(ot,Mt.left,!1),Hr(ot,Mt.right,!1)]);case 57:return fn?ti([Hr(ot,Mt.left,!0),Hr(ot,Mt.right,!0)]):Hr(Hr(ot,Mt.left,!1),Mt.right,!1)}return ot}function Mn(ot,Mt,fn){const qt=AS(Mt.right);if(!Gu(n,qt))return ot;w.assertNode(Mt.left,Qi);const dn=Hte(Mt.left);if(dn===void 0)return ot;const jn=dn.parent,ji=Fl(w.checkDefined(dn.valueDeclaration,"should always have a declaration"))?fr(jn):fc(jn);return Or(ot,ji,fn,!0)}function tr(ot,Mt,fn,qt){const dn=Mt===35||Mt===37,jn=Mt===35||Mt===36?98304:32768,ji=Xu(fn);return dn!==qt&&Rf(ji,qs=>!!(qs.flags&jn))||dn===qt&&Rf(ji,qs=>!(qs.flags&(3|jn)))?RT(ot,2097152):ot}function cs(ot,Mt,fn,qt){if(ot.flags&1)return ot;(Mt===36||Mt===38)&&(qt=!qt);const dn=Xu(fn),jn=Mt===35||Mt===36;if(dn.flags&98304){if(!X)return ot;const ji=jn?qt?262144:2097152:dn.flags&65536?qt?131072:1048576:qt?65536:524288;return RT(ot,ji)}if(qt){if(!jn&&(ot.flags&2||vm(ot,vh))){if(dn.flags&469893116||vh(dn))return dn;if(dn.flags&524288)return $r}const ji=Dl(ot,Ur=>DJ(Ur,dn)||jn&&Qft(Ur,dn));return QOe(ji,dn)}return qm(dn)?Dl(ot,ji=>!(gOe(ji)&&DJ(ji,dn))):ot}function xr(ot,Mt,fn,qt,dn){(fn===36||fn===38)&&(dn=!dn);const jn=AS(Mt.expression);if(!Gu(n,jn)){X&&MT(jn,n)&&dn===(qt.text!=="undefined")&&(ot=RT(ot,2097152));const ji=$n(jn,ot);return ji?rr(ot,ji,Ur=>Fs(Ur,qt,dn)):ot}return Fs(ot,qt,dn)}function Fs(ot,Mt,fn){return fn?__(ot,Mt.text):RT(ot,qG.get(Mt.text)||32768)}function yo(ot,Mt,fn,qt,dn){return fn!==qt&&Pn(Dte(Mt).slice(fn,qt),dn)?Hd(ot,2097152):ot}function Oo(ot,Mt,fn,qt){const dn=Dte(Mt);if(!dn.length)return ot;const jn=dn.slice(fn,qt),ji=fn===qt||Ai(jn,Wr);if(ot.flags&2&&!ji){let ni;for(let ns=0;nsDJ(Ur,ni)),Ur);if(!ji)return qs;const An=Dl(ot,ni=>!(gOe(ni)&&Ai(dn,q_(Uft(ni)))));return qs.flags&131072?An:ti([qs,An])}function __(ot,Mt){switch(Mt){case"string":return $a(ot,Ie,1);case"number":return $a(ot,xt,2);case"bigint":return $a(ot,Ft,4);case"boolean":return $a(ot,Li,8);case"symbol":return $a(ot,wi,16);case"object":return ot.flags&1?ot:ti([$a(ot,$r,32),$a(ot,de,131072)]);case"function":return ot.flags&1?ot:$a(ot,jt,64);case"undefined":return $a(ot,Fe,65536)}return $a(ot,$r,128)}function $a(ot,Mt,fn){return kc(ot,qt=>Eg(qt,Mt,_d)?qd(qt,fn)?qt:Wr:Sv(Mt,qt)?Mt:qd(qt,fn)?Pa([qt,Mt]):Wr)}function cf(ot,Mt,fn,qt){const dn=$Oe(Mt);if(!dn)return ot;const jn=Gs(Mt.caseBlock.clauses,qs=>qs.kind===297);if(fn===qt||jn>=fn&&jnr8(An,qs)===qs)}const Ur=dn.slice(fn,qt);return ti(Kt(Ur,qs=>qs?__(ot,qs):Wr))}function Kc(ot,Mt,fn,qt){const dn=Gs(Mt.caseBlock.clauses,Ur=>Ur.kind===297),jn=fn===qt||dn>=fn&&dnUr.kind===296?Hr(ot,Ur.expression,!0):Wr))}function Mc(ot){return(Jr(ot)&&kr(ot.name)==="constructor"||uc(ot)&&vo(ot.argumentExpression)&&ot.argumentExpression.text==="constructor")&&Gu(n,ot.expression)}function lt(ot,Mt,fn,qt){if(qt?Mt!==35&&Mt!==37:Mt!==36&&Mt!==38)return ot;const dn=Xu(fn);if(!Cve(dn)&&!mo(dn))return ot;const jn=Ea(dn,"prototype");if(!jn)return ot;const ji=fr(jn),Ur=Dt(ji)?void 0:ji;if(!Ur||Ur===De||Ur===jt)return ot;if(Dt(ot))return Ur;return Dl(ot,An=>qs(An,Ur));function qs(An,ni){return An.flags&524288&&Br(An)&1||ni.flags&524288&&Br(ni)&1?An.symbol===ni.symbol:Sv(An,ni)}}function ke(ot,Mt,fn){const qt=AS(Mt.left);if(!Gu(n,qt))return fn&&X&&MT(qt,n)?RT(ot,2097152):ot;const dn=Mt.right,jn=Xu(dn);if(!X2(jn,De))return ot;const ji=VJ(Mt),Ur=ji&&hd(ji);if(Ur&&Ur.kind===1&&Ur.parameterIndex===0)return Or(ot,Ur.type,fn,!0);if(!X2(jn,jt))return ot;const qs=kc(jn,Fn);return Dt(ot)&&(qs===De||qs===jt)||!fn&&!(qs.flags&524288&&!vh(qs))?ot:Or(ot,qs,fn,!0)}function Fn(ot){const Mt=He(ot,"prototype");if(Mt&&!Dt(Mt))return Mt;const fn=ra(ot,1);return fn.length?ti(Kt(fn,qt=>To(D5(qt)))):Ja}function Or(ot,Mt,fn,qt){const dn=ot.flags&1048576?`N${W_(ot)},${W_(Mt)},${(fn?1:0)|(qt?2:0)}`:void 0;return RC(dn)??G1(dn,pi(ot,Mt,fn,qt))}function pi(ot,Mt,fn,qt){if(!fn){if(ot===Mt)return Wr;if(qt)return Dl(ot,qs=>!X2(qs,Mt));const Ur=Or(ot,Mt,!0,!1);return Dl(ot,qs=>!i8(qs,Ur))}if(ot.flags&3||ot===Mt)return Mt;const dn=qt?X2:Sv,jn=ot.flags&1048576?jJ(ot):void 0,ji=kc(Mt,Ur=>{const qs=jn&&He(Ur,jn),An=qs&&BJ(ot,qs),ni=kc(An||ot,qt?ns=>X2(ns,Ur)?ns:X2(Ur,ns)?Ur:Wr:ns=>wJ(ns,Ur)?ns:wJ(Ur,ns)?Ur:Sv(ns,Ur)?ns:Sv(Ur,ns)?Ur:Wr);return ni.flags&131072?kc(ot,ns=>Hc(ns,465829888)&&dn(Ur,l_(ns)||mn)?Pa([ns,Ur]):Wr):ni});return ji.flags&131072?Sv(Mt,ot)?Mt:wa(ot,Mt)?ot:wa(Mt,ot)?Mt:Pa([ot,Mt]):ji}function Ci(ot,Mt,fn){if(BOe(Mt,n)){const qt=fn||!XS(Mt)?VJ(Mt):void 0,dn=qt&&hd(qt);if(dn&&(dn.kind===0||dn.kind===1))return Ei(ot,dn,Mt,fn)}if(U5(ot)&&$o(n)&&Jr(Mt.expression)){const qt=Mt.expression;if(Gu(n.expression,AS(qt.expression))&&Je(qt.name)&&qt.name.escapedText==="hasOwnProperty"&&Mt.arguments.length===1){const dn=Mt.arguments[0];if(vo(dn)&<(n)===Nc(dn.text))return Hd(ot,fn?524288:65536)}}return ot}function Ei(ot,Mt,fn,qt){if(Mt.type&&!(Dt(ot)&&(Mt.type===De||Mt.type===jt))){const dn=$pt(Mt,fn);if(dn){if(Gu(n,dn))return Or(ot,Mt.type,qt,!1);X&&MT(dn,n)&&(qt&&!qd(Mt.type,65536)||!qt&&Rf(Mt.type,KJ))&&(ot=RT(ot,2097152));const jn=$n(dn,ot);if(jn)return rr(ot,jn,ji=>Or(ji,Mt.type,qt,!1))}}return ot}function Hr(ot,Mt,fn){if(bF(Mt)||mr(Mt.parent)&&(Mt.parent.operatorToken.kind===61||Mt.parent.operatorToken.kind===78)&&Mt.parent.left===Mt)return wr(ot,Mt,fn);switch(Mt.kind){case 80:if(!Gu(n,Mt)&&N<5){const qt=ym(Mt);if(a8(qt)){const dn=qt.valueDeclaration;if(dn&&Ji(dn)&&!dn.type&&dn.initializer&&eFe(n)){N++;const jn=Hr(ot,dn.initializer,fn);return N--,jn}}}case 110:case 108:case 211:case 212:return Ws(ot,Mt,fn);case 213:return Ci(ot,Mt,fn);case 217:case 235:return Hr(ot,Mt.expression,fn);case 226:return jf(ot,Mt,fn);case 224:if(Mt.operator===54)return Hr(ot,Mt.operand,!fn);break}return ot}function wr(ot,Mt,fn){if(Gu(n,Mt))return RT(ot,fn?2097152:262144);const qt=$n(Mt,ot);return qt?rr(ot,qt,dn=>Hd(dn,fn?2097152:262144)):ot}}function Qpt(n,a){if(n=Gp(n),(a.kind===80||a.kind===81)&&(qP(a)&&(a=a.parent),Oh(a)&&(!Lh(a)||wk(a)))){const l=yte(wk(a)&&a.kind===211?Wte(a,void 0,!0):Xu(a));if(Gp(ei(a).resolvedSymbol)===n)return l}return h0(a)&&my(a.parent)&&hm(a.parent)?aJ(a.parent.symbol):gq(a)&&wk(a.parent)?SS(n):fv(n)}function G5(n){return Vn(n.parent,a=>oa(a)&&!sx(a)||a.kind===268||a.kind===312||a.kind===172)}function tFe(n){return!nFe(n,void 0)}function nFe(n,a){const l=Vn(n.valueDeclaration,Fte);if(!l)return!1;const _=ei(l);return _.flags&131072||(_.flags|=131072,Ypt(l)||iFe(l)),!n.lastAssignmentPos||a&&n.lastAssignmentPosa.kind!==232&&rFe(a.name))}function Ypt(n){return!!Vn(n.parent,a=>Fte(a)&&!!(ei(a).flags&131072))}function Fte(n){return Ko(n)||es(n)}function iFe(n){switch(n.kind){case 80:if(Lh(n)){const l=ym(n);if(Lte(l)&&l.lastAssignmentPos!==Number.MAX_VALUE){const _=Vn(n,Fte),m=Vn(l.valueDeclaration,Fte);l.lastAssignmentPos=_===m?Zpt(n,l.valueDeclaration):Number.MAX_VALUE}}return;case 281:const a=n.parent.parent;if(!n.isTypeOnly&&!a.isTypeOnly&&!a.moduleSpecifier){const l=ic(n.propertyName||n.name,111551,!0,!0);l&&Lte(l)&&(l.lastAssignmentPos=Number.MAX_VALUE)}return;case 264:case 265:case 266:return}Gi(n)||Xs(n,iFe)}function Zpt(n,a){let l=n.pos;for(;n&&n.pos>a.pos;){switch(n.kind){case 243:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 258:case 263:l=n.end}n=n.parent}return l}function a8(n){return n.flags&3&&(y1e(n)&6)!==0}function Lte(n){const a=n.valueDeclaration&&rg(n.valueDeclaration);return!!a&&(ws(a)||Ji(a)&&(Jb(a.parent)||Kpt(a)))}function Kpt(n){return!!(n.parent.flags&1)&&!(Vv(n)&32||n.parent.parent.kind===243&&oh(n.parent.parent.parent))}function edt(n){const a=ei(n);if(a.parameterInitializerContainsUndefined===void 0){if(!ph(n,9))return oE(n.symbol),!0;const l=!!qd(l8(n,0),16777216);if(!Tg())return oE(n.symbol),!0;a.parameterInitializerContainsUndefined=l}return a.parameterInitializerContainsUndefined}function tdt(n,a){return X&&a.kind===169&&a.initializer&&qd(n,16777216)&&!edt(a)?Hd(n,524288):n}function ndt(n,a){const l=a.parent;return l.kind===211||l.kind===166||l.kind===213&&l.expression===a||l.kind===212&&l.expression===a&&!(vm(n,aFe)&&NT(Xu(l.argumentExpression)))}function sFe(n){return n.flags&2097152?Pe(n.types,sFe):!!(n.flags&465829888&&H0(n).flags&1146880)}function aFe(n){return n.flags&2097152?Pe(n.types,aFe):!!(n.flags&465829888&&!Hc(H0(n),98304))}function rdt(n,a){const l=(Je(n)||Jr(n)||uc(n))&&!((ug(n.parent)||Ex(n.parent))&&n.parent.tagName===n)&&(a&&a&32?Tf(n,8):Tf(n,void 0));return l&&!hE(l)}function Kye(n,a,l){return!(l&&l&2)&&vm(n,sFe)&&(ndt(n,a)||rdt(a,l))?kc(n,H0):n}function oFe(n){return!!Vn(n,a=>{const l=a.parent;return l===void 0?"quit":Qc(l)?l.expression===a&&il(a):h_(l)?l.name===a||l.propertyName===a:!1})}function Mte(n,a){if(kt&&uT(n,111551)&&!px(a)){const l=iu(n);Hu(n,!0)&1160127&&(Ld(z)||Nb(z)&&oFe(a)||!cO(Gp(l))?tv(n):Eu(n))}}function idt(n,a,l){var _;const m=fr(n,l),h=n.valueDeclaration;if(h){if(oo(h)&&!h.initializer&&!h.dotDotDotToken&&h.parent.elements.length>=2){const k=h.parent.parent,O=rg(k);if(O.kind===260&&RS(O)&6||O.kind===169){const j=ei(k);if(!(j.flags&4194304)){j.flags|=4194304;const W=zr(k,0),re=W&&kc(W,H0);if(j.flags&=-4194305,re&&re.flags&1048576&&!(O.kind===169&&Zye(O))){const be=h.parent,he=Ev(be,re,re,void 0,a.flowNode);return he.flags&131072?Wr:t0(h,he,!0)}}}}if(ws(h)&&!h.type&&!h.initializer&&!h.dotDotDotToken){const k=h.parent;if(k.parameters.length>=2&&ate(k)){const O=X5(k);if(O&&O.parameters.length===1&&v_(O)){const j=qD(_s(fr(O.parameters[0]),(_=NS(k))==null?void 0:_.nonFixingMapper));if(j.flags&1048576&&Rf(j,Ga)&&!Pe(k.parameters,Zye)){const W=Ev(k,j,j,void 0,a.flowNode),re=k.parameters.indexOf(h)-(Tb(k)?1:0);return op(W,Wm(re))}}}}}return m}function sdt(n,a){if(Ck(n))return HJ(n);const l=ym(n);if(l===ft)return mt;if(l===zt){if(WFe(n))return We(n,p.arguments_cannot_be_referenced_in_property_initializers),mt;let ln=hp(n);if(ln)for(ce<2&&(ln.kind===219?We(n,p.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):Kr(ln,1024)&&We(n,p.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),ei(ln).flags|=512;ln&&ec(ln);)ln=hp(ln),ln&&(ei(ln).flags|=512);return fr(l)}odt(n)&&Mte(l,n);const _=Gp(l),m=vve(_,n);$1(m)&&tye(n,m)&&m.declarations&&zy(n,m.declarations,n.escapedText);let h=_.valueDeclaration;if(h&&_.flags&32&&fi(h)&&h.name!==n){let ln=_f(n,!1,!1);for(;ln.kind!==312&&ln.parent!==h;)ln=_f(ln,!1,!1);ln.kind!==312&&(ei(h).flags|=262144,ei(ln).flags|=262144,ei(n).flags|=536870912)}udt(n,l);let k=idt(_,n,a);const O=Tk(n);if(O){if(!(_.flags&3)&&!(lr(n)&&_.flags&512)){const ln=_.flags&384?p.Cannot_assign_to_0_because_it_is_an_enum:_.flags&32?p.Cannot_assign_to_0_because_it_is_a_class:_.flags&1536?p.Cannot_assign_to_0_because_it_is_a_namespace:_.flags&16?p.Cannot_assign_to_0_because_it_is_a_function:_.flags&2097152?p.Cannot_assign_to_0_because_it_is_an_import:p.Cannot_assign_to_0_because_it_is_not_a_variable;return We(n,ln,Ti(l)),mt}if(Gm(_))return _.flags&3?We(n,p.Cannot_assign_to_0_because_it_is_a_constant,Ti(l)):We(n,p.Cannot_assign_to_0_because_it_is_a_read_only_property,Ti(l)),mt}const j=_.flags&2097152;if(_.flags&3){if(O===1)return WW(n)?Y0(k):k}else if(j)h=pm(l);else return k;if(!h)return k;k=Kye(k,n,a);const W=rg(h).kind===169,re=G5(h);let be=G5(n);const he=be!==re,qe=n.parent&&n.parent.parent&&Ey(n.parent)&&Qye(n.parent.parent),ht=l.flags&134217728,Pt=k===it||k===du,on=Pt&&n.parent.kind===235;for(;be!==re&&(be.kind===218||be.kind===219||$F(be))&&(a8(_)&&k!==du||Lte(_)&&nFe(_,n));)be=G5(be);const un=W||j||he||qe||ht||adt(n,h)||k!==it&&k!==du&&(!X||(k.flags&16387)!==0||px(n)||Wye(n)||n.parent.kind===281)||n.parent.kind===235||h.kind===260&&h.exclamationToken||h.flags&33554432,or=on?Fe:un?W?tdt(k,h):k:Pt?Fe:kv(k),Rn=on?Z0(Ev(n,k,or,be)):Ev(n,k,or,be);if(!ZOe(n)&&(k===it||k===du)){if(Rn===it||Rn===du)return fe&&(We(Ms(h),p.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Ti(l),Hn(Rn)),We(n,p.Variable_0_implicitly_has_an_1_type,Ti(l),Hn(Rn))),oO(Rn)}else if(!un&&!YD(k)&&YD(Rn))return We(n,p.Variable_0_is_used_before_being_assigned,Ti(l)),k;return O?Y0(Rn):Rn}function adt(n,a){if(oo(a)){const l=Vn(n,oo);return l&&rg(l)===rg(a)}}function odt(n){var a;const l=n.parent;if(l){if(Jr(l)&&l.expression===n||h_(l)&&l.isTypeOnly)return!1;const _=(a=l.parent)==null?void 0:a.parent;if(_&&ml(_)&&_.isTypeOnly)return!1}return!0}function cdt(n,a){return!!Vn(n,l=>l===a?"quit":oa(l)||l.parent&&Zs(l.parent)&&!Fl(l.parent)&&l.parent.initializer===l)}function ldt(n,a){return Vn(n,l=>l===a?"quit":l===a.initializer||l===a.condition||l===a.incrementor||l===a.statement)}function e1e(n){return Vn(n,a=>!a||KW(a)?"quit":m1(a,!1))}function udt(n,a){if(ce>=2||!(a.flags&34)||!a.valueDeclaration||es(a.valueDeclaration)||a.valueDeclaration.parent.kind===299)return;const l=qg(a.valueDeclaration),_=cdt(n,l),m=e1e(l);if(m){if(_){let h=!0;if(kx(l)){const k=e2(a.valueDeclaration,261);if(k&&k.parent===l){const O=ldt(n.parent,l);if(O){const j=ei(O);j.flags|=8192;const W=j.capturedBlockScopeBindings||(j.capturedBlockScopeBindings=[]);Jf(W,a),O===l.initializer&&(h=!1)}}}h&&(ei(m).flags|=4096)}if(kx(l)){const h=e2(a.valueDeclaration,261);h&&h.parent===l&&fdt(n,l)&&(ei(a.valueDeclaration).flags|=65536)}ei(a.valueDeclaration).flags|=32768}_&&(ei(a.valueDeclaration).flags|=16384)}function _dt(n,a){const l=ei(n);return!!l&&Ai(l.capturedBlockScopeBindings,Pr(a))}function fdt(n,a){let l=n;for(;l.parent.kind===217;)l=l.parent;let _=!1;if(Lh(l))_=!0;else if(l.parent.kind===224||l.parent.kind===225){const m=l.parent;_=m.operator===46||m.operator===47}return _?!!Vn(l,m=>m===a?"quit":m===a.statement):!1}function t1e(n,a){if(ei(n).flags|=2,a.kind===172||a.kind===176){const l=a.parent;ei(l).flags|=4}else ei(a).flags|=4}function cFe(n){return ix(n)?n:oa(n)?void 0:Xs(n,cFe)}function n1e(n){const a=Pr(n),l=fc(a);return sp(l)===Be}function lFe(n,a,l){const _=a.parent;Sb(_)&&!n1e(_)&&YA(n)&&n.flowNode&&!Ote(n.flowNode,!1)&&We(n,l)}function pdt(n,a){Zs(a)&&Fl(a)&&ne&&a.initializer&&sA(a.initializer,n.pos)&&Kp(a.parent)&&We(n,p.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function HJ(n){const a=px(n);let l=_f(n,!0,!0),_=!1,m=!1;for(l.kind===176&&lFe(n,l,p.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(l.kind===219&&(l=_f(l,!1,!m),_=!0),l.kind===167){l=_f(l,!_,!1),m=!0;continue}break}if(pdt(n,l),m)We(n,p.this_cannot_be_referenced_in_a_computed_property_name);else switch(l.kind){case 267:We(n,p.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 266:We(n,p.this_cannot_be_referenced_in_current_location);break;case 176:uFe(n,l)&&We(n,p.this_cannot_be_referenced_in_constructor_arguments);break}!a&&_&&ce<2&&t1e(n,l);const h=r1e(n,!0,l);if(ie){const k=fr(st);if(h===k&&_)We(n,p.The_containing_arrow_function_captures_the_global_value_of_this);else if(!h){const O=We(n,p.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!es(l)){const j=r1e(l);j&&j!==k&&Ua(O,Rr(l,p.An_outer_value_of_this_is_shadowed_by_this_container))}}}return h||U}function r1e(n,a=!0,l=_f(n,!1,!1)){const _=lr(n);if(oa(l)&&(!a1e(n)||Tb(l))){let m=a0e(l)||_&&gdt(l);if(!m){const h=mdt(l);if(_&&h){const k=ms(h).symbol;k&&k.members&&k.flags&16&&(m=fc(k).thisType)}else Dg(l)&&(m=fc(po(l.symbol)).thisType);m||(m=dFe(l))}if(m)return Ev(n,m)}if(fi(l.parent)){const m=Pr(l.parent),h=da(l)?fr(m):fc(m).thisType;return Ev(n,h)}if(es(l))if(l.commonJsModuleIndicator){const m=Pr(l);return m&&fr(m)}else{if(l.externalModuleIndicator)return Fe;if(a)return fr(st)}}function ddt(n){const a=_f(n,!1,!1);if(oa(a)){const l=Vd(a);if(l.thisParameter)return Nte(l.thisParameter)}if(fi(a.parent)){const l=Pr(a.parent);return da(a)?fr(l):fc(l).thisType}}function mdt(n){if(n.kind===218&&mr(n.parent)&&rl(n.parent)===3)return n.parent.left.expression.expression;if(n.kind===174&&n.parent.kind===210&&mr(n.parent.parent)&&rl(n.parent.parent)===6)return n.parent.parent.left.expression;if(n.kind===218&&n.parent.kind===303&&n.parent.parent.kind===210&&mr(n.parent.parent.parent)&&rl(n.parent.parent.parent)===6)return n.parent.parent.parent.left.expression;if(n.kind===218&&Ml(n.parent)&&Je(n.parent.name)&&(n.parent.name.escapedText==="value"||n.parent.name.escapedText==="get"||n.parent.name.escapedText==="set")&&Va(n.parent.parent)&&ma(n.parent.parent.parent)&&n.parent.parent.parent.arguments[2]===n.parent.parent&&rl(n.parent.parent.parent)===9)return n.parent.parent.parent.arguments[0].expression;if(ul(n)&&Je(n.name)&&(n.name.escapedText==="value"||n.name.escapedText==="get"||n.name.escapedText==="set")&&Va(n.parent)&&ma(n.parent.parent)&&n.parent.parent.arguments[2]===n.parent&&rl(n.parent.parent)===9)return n.parent.parent.arguments[0].expression}function gdt(n){const a=gF(n);if(a&&a.typeExpression)return ki(a.typeExpression);const l=HD(n);if(l)return H2(l)}function uFe(n,a){return!!Vn(n,l=>Ko(l)?"quit":l.kind===169&&l.parent===a)}function i1e(n){const a=n.parent.kind===213&&n.parent.expression===n,l=LA(n,!0);let _=l,m=!1,h=!1;if(!a){for(;_&&_.kind===219;)Kr(_,1024)&&(h=!0),_=LA(_,!0),m=ce<2;_&&Kr(_,1024)&&(h=!0)}let k=0;if(!_||!re(_)){const be=Vn(n,he=>he===_?"quit":he.kind===167);return be&&be.kind===167?We(n,p.super_cannot_be_referenced_in_a_computed_property_name):a?We(n,p.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!_||!_.parent||!(fi(_.parent)||_.parent.kind===210)?We(n,p.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):We(n,p.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),mt}if(!a&&l.kind===176&&lFe(n,_,p.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),da(_)||a?(k=32,!a&&ce>=2&&ce<=8&&(Zs(_)||Vc(_))&&_se(n.parent,be=>{(!es(be)||mp(be))&&(ei(be).flags|=2097152)})):k=16,ei(n).flags|=k,_.kind===174&&h&&(ff(n.parent)&&Lh(n.parent)?ei(_).flags|=256:ei(_).flags|=128),m&&t1e(n.parent,_),_.parent.kind===210)return ce<2?(We(n,p.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),mt):U;const O=_.parent;if(!Sb(O))return We(n,p.super_can_only_be_referenced_in_a_derived_class),mt;if(n1e(O))return a?mt:Be;const j=fc(Pr(O)),W=j&&ap(j)[0];if(!W)return mt;if(_.kind===176&&uFe(n,_))return We(n,p.super_cannot_be_referenced_in_constructor_arguments),mt;return k===32?sp(j):kp(W,j.thisType);function re(be){return a?be.kind===176:fi(be.parent)||be.parent.kind===210?da(be)?be.kind===174||be.kind===173||be.kind===177||be.kind===178||be.kind===172||be.kind===175:be.kind===174||be.kind===173||be.kind===177||be.kind===178||be.kind===172||be.kind===171||be.kind===176:!1}}function _Fe(n){return(n.kind===174||n.kind===177||n.kind===178)&&n.parent.kind===210?n.parent:n.kind===218&&n.parent.kind===303?n.parent.parent:void 0}function fFe(n){return Br(n)&4&&n.target===sl?ac(n)[0]:void 0}function hdt(n){return kc(n,a=>a.flags&2097152?dt(a.types,fFe):fFe(a))}function pFe(n,a){let l=n,_=a;for(;_;){const m=hdt(_);if(m)return m;if(l.parent.kind!==303)break;l=l.parent.parent,_=tb(l,void 0)}}function dFe(n){if(n.kind===219)return;if(ate(n)){const l=X5(n);if(l){const _=l.thisParameter;if(_)return fr(_)}}const a=lr(n);if(ie||a){const l=_Fe(n);if(l){const m=tb(l,void 0),h=pFe(l,m);return h?_s(h,Lye(NS(l))):Cp(m?Z0(m):Sl(l))}const _=hy(n.parent);if(Kl(_)){const m=_.left;if($o(m)){const{expression:h}=m;if(a&&Je(h)){const k=qn(_);if(k.commonJsModuleIndicator&&ym(h)===k.symbol)return}return Cp(Sl(h))}}}}function mFe(n){const a=n.parent;if(!ate(a))return;const l=sx(a);if(l&&l.arguments){const m=Zte(l),h=a.parameters.indexOf(n);if(n.dotDotDotToken)return I1e(m,h,m.length,U,void 0,0);const k=ei(l),O=k.resolvedSignature;k.resolvedSignature=bt;const j=h0)return A(l.name,!0,!1)}}function Sdt(n,a){const l=hp(n);if(l){let _=Rte(l,a);if(_){const m=lu(l);if(m&1){const h=(m&2)!==0;_.flags&1048576&&(_=Dl(_,O=>!!FS(1,O,h)));const k=FS(1,_,(m&2)!==0);if(!k)return;_=k}if(m&2){const h=kc(_,Zy);return h&&ti([h,A9e(h)])}return _}}}function xdt(n,a){const l=Tf(n,a);if(l){const _=Zy(l);return _&&ti([_,A9e(_)])}}function Tdt(n,a){const l=hp(n);if(l){const _=lu(l);let m=Rte(l,a);if(m){const h=(_&2)!==0;return!n.asteriskToken&&m.flags&1048576&&(m=Dl(m,k=>!!FS(1,k,h))),n.asteriskToken?m:FS(0,m,h)}}}function a1e(n){let a=!1;for(;n.parent&&!oa(n.parent);){if(ws(n.parent)&&(a||n.parent.initializer===n))return!0;oo(n.parent)&&n.parent.initializer===n&&(a=!0),n=n.parent}return!1}function gFe(n,a){const l=!!(lu(a)&2),_=Rte(a,void 0);if(_)return FS(n,_,l)||void 0}function Rte(n,a){const l=fE(n);if(l)return l;const _=_1e(n);if(_&&!zee(_)){const h=To(_),k=lu(n);return k&1?Dl(h,O=>!!(O.flags&58998787)||K1e(O,k,void 0)):k&2?Dl(h,O=>!!(O.flags&58998787)||!!f8(O)):h}const m=sx(n);if(m)return Tf(m,a)}function hFe(n,a){const _=Zte(n).indexOf(a);return _===-1?void 0:o1e(n,_)}function o1e(n,a){if(gp(n))return a===0?Ie:a===1?s5e(!1):U;const l=ei(n).resolvedSignature===Tr?Tr:kE(n);if(F_(n)&&a===0)return zte(l,n);const _=l.parameters.length-1;return v_(l)&&a>=_?op(fr(l.parameters[_]),Wm(a-_),256):Hm(l,a)}function kdt(n){const a=q1e(n);return a?PT(a):void 0}function Cdt(n,a){if(n.parent.kind===215)return hFe(n.parent,a)}function Edt(n,a){const l=n.parent,{left:_,operatorToken:m,right:h}=l;switch(m.kind){case 64:case 77:case 76:case 78:return n===h?wdt(l):void 0;case 57:case 61:const k=Tf(l,a);return n===h&&(k&&k.pattern||!k&&!Ise(l))?Xu(_):k;case 56:case 28:return n===h?Tf(l,a):void 0;default:return}}function Pdt(n){if(Km(n)&&n.symbol)return n.symbol;if(Je(n))return ym(n);if(Jr(n)){const l=Xu(n.expression);return Qi(n.name)?a(l,n.name):Ea(l,n.name.escapedText)}if(uc(n)){const l=Sl(n.argumentExpression);if(!Od(l))return;const _=Xu(n.expression);return Ea(_,Fd(l))}return;function a(l,_){const m=qte(_.escapedText,_);return m&&x1e(l,m)}}function wdt(n){var a,l;const _=rl(n);switch(_){case 0:case 4:const m=Pdt(n.left),h=m&&m.valueDeclaration;if(h&&(Zs(h)||Gf(h))){const j=zu(h);return j&&_s(ki(j),Zi(m).mapper)||(Zs(h)?h.initializer&&Xu(n.left):void 0)}return _===0?Xu(n.left):yFe(n);case 5:if(jte(n,_))return yFe(n);if(!Km(n.left)||!n.left.symbol)return Xu(n.left);{const j=n.left.symbol.valueDeclaration;if(!j)return;const W=pa(n.left,$o),re=zu(j);if(re)return ki(re);if(Je(W.expression)){const be=W.expression,he=Lc(be,be.escapedText,111551,void 0,be.escapedText,!0);if(he){const qe=he.valueDeclaration&&zu(he.valueDeclaration);if(qe){const ht=g0(W);if(ht!==void 0)return eb(ki(qe),ht)}return}}return lr(j)||j===n.left?void 0:Xu(n.left)}case 1:case 6:case 3:case 2:let k;_!==2&&(k=Km(n.left)?(a=n.left.symbol)==null?void 0:a.valueDeclaration:void 0),k||(k=(l=n.symbol)==null?void 0:l.valueDeclaration);const O=k&&zu(k);return O?ki(O):void 0;case 7:case 8:case 9:return w.fail("Does not apply");default:return w.assertNever(_)}}function jte(n,a=rl(n)){if(a===4)return!0;if(!lr(n)||a!==5||!Je(n.left.expression))return!1;const l=n.left.expression.escapedText,_=Lc(n.left,l,111551,void 0,void 0,!0,!0);return KF(_==null?void 0:_.valueDeclaration)}function yFe(n){if(!n.symbol)return Xu(n.left);if(n.symbol.valueDeclaration){const m=zu(n.symbol.valueDeclaration);if(m){const h=ki(m);if(h)return h}}const a=pa(n.left,$o);if(!tm(_f(a.expression,!1,!1)))return;const l=HJ(a.expression),_=g0(a);return _!==void 0&&eb(l,_)||void 0}function Ddt(n){return!!(Uc(n)&262144&&!n.links.type&&YC(n,0)>=0)}function eb(n,a,l){return kc(n,_=>{var m;if(Sf(_)&&!_.declaration.nameType){const h=Qp(_),k=l_(h)||h,O=l||xf(Hi(a));if(wa(O,k))return Zee(_,O)}else if(_.flags&3670016){const h=Ea(_,a);if(h)return Ddt(h)?void 0:Cv(fr(h),!!(h&&h.flags&16777216));if(Ga(_)&&Jh(a)&&+a>=0){const k=t8(_,_.target.fixedLength,0,!1,!0);if(k)return k}return(m=k0e(C0e(_),l||xf(Hi(a))))==null?void 0:m.type}},!0)}function vFe(n,a){if(w.assert(tm(n)),!(n.flags&67108864))return c1e(n,a)}function c1e(n,a){const l=n.parent,_=Ml(n)&&s1e(n,a);if(_)return _;const m=tb(l,a);if(m){if(uE(n)){const h=Pr(n);return eb(m,h.escapedName,Zi(h).nameType)}if(S1(n)){const h=Ms(n);if(h&&co(h)){const k=ms(h.expression),O=Od(k)&&eb(m,Fd(k));if(O)return O}}if(n.name){const h=Xy(n.name);return kc(m,k=>{var O;return(O=k0e(C0e(k),h))==null?void 0:O.type},!0)}}}function Adt(n){let a,l;for(let _=0;_{if(Ga(h)){if((_===void 0||a<_)&&am)?l-a:0,O=k>0&&h.target.hasRestElement?N5(h.target,3):0;return k>0&&k<=O?ac(h)[$y(h)-k]:t8(h,_===void 0?h.target.fixedLength:Math.min(h.target.fixedLength,_),l===void 0||m===void 0?O:Math.min(O,l-m),!1,!0)}return(!_||a<_)&&eb(h,""+a)||uve(1,h,Fe,void 0,!1)},!0)}function Ndt(n,a){const l=n.parent;return n===l.whenTrue||n===l.whenFalse?Tf(l,a):void 0}function Idt(n,a,l){const _=tb(n.openingElement.attributes,l),m=QJ(JT(n));if(!(_&&!Dt(_)&&m&&m!==""))return;const h=p4(n.children),k=h.indexOf(a),O=eb(_,m);return O&&(h.length===1?O:kc(O,j=>Yy(j)?op(j,Wm(k)):j,!0))}function Odt(n,a){const l=n.parent;return PF(l)?Tf(n,a):Uh(l)?Idt(l,n,a):void 0}function bFe(n,a){if(_g(n)){const l=tb(n.parent,a);return!l||Dt(l)?void 0:eb(l,uw(n.name))}else return Tf(n.parent,a)}function GJ(n){switch(n.kind){case 11:case 9:case 10:case 15:case 228:case 112:case 97:case 106:case 80:case 157:return!0;case 211:case 217:return GJ(n.expression);case 294:return!n.expression||GJ(n.expression)}return!1}function Fdt(n,a){return Cpt(a,n)||bye(a,zn(Kt(vr(n.properties,l=>l.symbol?l.kind===303?GJ(l.initializer)&&n8(a,l.symbol.escapedName):l.kind===304?n8(a,l.symbol.escapedName):!1:!1),l=>[()=>mz(l.kind===303?l.initializer:l.name),l.symbol.escapedName]),Kt(vr(Po(a),l=>{var _;return!!(l.flags&16777216)&&!!((_=n==null?void 0:n.symbol)!=null&&_.members)&&!n.symbol.members.has(l.escapedName)&&n8(a,l.escapedName)}),l=>[()=>Fe,l.escapedName])),wa)}function Ldt(n,a){const l=QJ(JT(n));return bye(a,zn(Kt(vr(n.properties,_=>!!_.symbol&&_.kind===291&&n8(a,_.symbol.escapedName)&&(!_.initializer||GJ(_.initializer))),_=>[_.initializer?()=>mz(_.initializer):()=>Un,_.symbol.escapedName]),Kt(vr(Po(a),_=>{var m;if(!(_.flags&16777216)||!((m=n==null?void 0:n.symbol)!=null&&m.members))return!1;const h=n.parent.parent;return _.escapedName===l&&Uh(h)&&p4(h.children).length?!1:!n.symbol.members.has(_.escapedName)&&n8(a,_.escapedName)}),_=>[()=>Fe,_.escapedName])),wa)}function tb(n,a){const l=tm(n)?vFe(n,a):Tf(n,a),_=Bte(l,n,a);if(_&&!(a&&a&2&&_.flags&8650752)){const m=kc(_,h=>Br(h)&32?h:of(h),!0);return m.flags&1048576&&Va(n)?Fdt(n,m):m.flags&1048576&&Bb(n)?Ldt(n,m):m}}function Bte(n,a,l){if(n&&Hc(n,465829888)){const _=NS(a);if(_&&l&1&&Pe(_.inferences,yht))return Jte(n,_.nonFixingMapper);if(_!=null&&_.returnMapper){const m=Jte(n,_.returnMapper);return m.flags&1048576&&G0(m.types,Sn)&&G0(m.types,Gn)?Dl(m,h=>h!==Sn&&h!==Gn):m}}return n}function Jte(n,a){return n.flags&465829888?_s(n,a):n.flags&1048576?ti(Kt(n.types,l=>Jte(l,a)),0):n.flags&2097152?Pa(Kt(n.types,l=>Jte(l,a))):n}function Tf(n,a){var l;if(n.flags&67108864)return;const _=xFe(n,!a);if(_>=0)return yn[_];const{parent:m}=n;switch(m.kind){case 260:case 169:case 172:case 171:case 208:return bdt(n,a);case 219:case 253:return Sdt(n,a);case 229:return Tdt(m,a);case 223:return xdt(m,a);case 213:case 214:return hFe(m,n);case 170:return kdt(m);case 216:case 234:return p0(m.type)?Tf(m,a):ki(m.type);case 226:return Edt(n,a);case 303:case 304:return c1e(m,a);case 305:return Tf(m.parent,a);case 209:{const h=m,k=tb(h,a),O=$6(h.elements,n),j=(l=ei(h)).spreadIndices??(l.spreadIndices=Adt(h.elements));return l1e(k,O,h.elements.length,j.first,j.last)}case 227:return Ndt(n,a);case 239:return w.assert(m.parent.kind===228),Cdt(m.parent,n);case 217:{if(lr(m)){if(Jq(m))return ki(zq(m));const h=qv(m);if(h&&!p0(h.typeExpression.type))return ki(h.typeExpression.type)}return Tf(m,a)}case 235:return Tf(m,a);case 238:return ki(m.type);case 277:return as(m);case 294:return Odt(m,a);case 291:case 293:return bFe(m,a);case 286:case 285:return Bdt(m,a);case 301:return jdt(m)}}function SFe(n){$J(n,Tf(n,void 0),!0)}function $J(n,a,l){Kn[mi]=n,yn[mi]=a,er[mi]=l,mi++}function $5(){mi--}function xFe(n,a){for(let l=mi-1;l>=0;l--)if(n===Kn[l]&&(a||!er[l]))return l;return-1}function Mdt(n,a){ur[dr]=n,ri[dr]=a,dr++}function Rdt(){dr--}function NS(n){for(let a=dr-1;a>=0;a--)if(bb(n,ur[a]))return ri[a]}function jdt(n){return eb(z0e(!1),iL(n))}function Bdt(n,a){if(ug(n)&&a!==4){const l=xFe(n.parent,!a);if(l>=0)return yn[l]}return o1e(n,0)}function zte(n,a){return s9e(a)!==0?Jdt(n,a):Vdt(n,a)}function Jdt(n,a){let l=V1e(n,mn);l=TFe(a,JT(a),l);const _=IS(Mp.IntrinsicAttributes,a);return Gt(_)||(l=fJ(_,l)),l}function zdt(n,a){if(n.compositeSignatures){const _=[];for(const m of n.compositeSignatures){const h=To(m);if(Dt(h))return h;const k=He(h,a);if(!k)return;_.push(k)}return Pa(_)}const l=To(n);return Dt(l)?l:He(l,a)}function Udt(n){if(a6(n.tagName)){const l=IFe(n),_=Kte(n,l);return PT(_)}const a=Sl(n.tagName);if(a.flags&128){const l=NFe(a,n);if(!l)return mt;const _=Kte(n,l);return PT(_)}return a}function TFe(n,a,l){const _=lmt(a);if(_){const m=Udt(n),h=LFe(_,lr(n),m,l);if(h)return h}return l}function Vdt(n,a){const l=JT(a),_=_mt(l);let m=_===void 0?V1e(n,mn):_===""?To(n):zdt(n,_);if(!m)return _&&Xe(a.attributes.properties)&&We(a,p.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,Hi(_)),mn;if(m=TFe(a,l,m),Dt(m))return m;{let h=m;const k=IS(Mp.IntrinsicClassAttributes,a);if(!Gt(k)){const j=Lr(k.symbol),W=To(n);let re;if(j){const be=gv([W],j,gh(j),lr(a));re=_s(k,cp(j,be))}else re=k;h=fJ(re,h)}const O=IS(Mp.IntrinsicAttributes,a);return Gt(O)||(h=fJ(O,h)),h}}function Wdt(n){return R_(z,"noImplicitAny")?D_(n,(a,l)=>a===l||!a?a:xIe(a.typeParameters,l.typeParameters)?Gdt(a,l):void 0):void 0}function qdt(n,a,l){if(!n||!a)return n||a;const _=ti([fr(n),_s(fr(a),l)]);return FT(n,_)}function Hdt(n,a,l){const _=Ep(n),m=Ep(a),h=_>=m?n:a,k=h===n?a:n,O=h===n?_:m,j=bh(n)||bh(a),W=j&&!bh(h),re=new Array(O+(W?1:0));for(let be=0;be=Ag(h)&&be>=Ag(k),un=be>=_?void 0:c8(n,be),or=be>=m?void 0:c8(a,be),Rn=un===or?un:un?or?void 0:un:or,ln=ro(1|(on&&!Pt?16777216:0),Rn||`arg${be}`);ln.links.type=Pt?u_(ht):ht,re[be]=ln}if(W){const be=ro(1,"args");be.links.type=u_(Hm(k,O)),k===a&&(be.links.type=_s(be.links.type,l)),re[O]=be}return re}function Gdt(n,a){const l=n.typeParameters||a.typeParameters;let _;n.typeParameters&&a.typeParameters&&(_=cp(a.typeParameters,n.typeParameters));const m=n.declaration,h=Hdt(n,a,_),k=qdt(n.thisParameter,a.thisParameter,_),O=Math.max(n.minArgumentCount,a.minArgumentCount),j=n0(m,l,k,h,void 0,void 0,O,(n.flags|a.flags)&167);return j.compositeKind=2097152,j.compositeSignatures=zn(n.compositeKind===2097152&&n.compositeSignatures||[n],[a]),_&&(j.mapper=n.compositeKind===2097152&&n.mapper&&n.compositeSignatures?wS(n.mapper,_):_),j}function u1e(n,a){const l=ra(n,0),_=vr(l,m=>!$dt(m,a));return _.length===1?_[0]:Wdt(_)}function $dt(n,a){let l=0;for(;le8(he)||Sf(he)&&!he.nameType&&!!L5(he.target||he));let be=!1;for(let he=0;hek[qe]&8?yv(he,xt)||U:he),2):X?Mi:Ot,j))}function CFe(n){if(!(Br(n)&4))return n;let a=n.literalType;return a||(a=n.literalType=GIe(n),a.objectFlags|=147456),a}function Zdt(n){switch(n.kind){case 167:return Kdt(n);case 80:return Jh(n.escapedText);case 9:case 11:return Jh(n.text);default:return!1}}function Kdt(n){return $u(i0(n),296)}function i0(n){const a=ei(n.expression);if(!a.resolvedType){if((Xf(n.parent.parent)||fi(n.parent.parent)||J_(n.parent.parent))&&mr(n.expression)&&n.expression.operatorToken.kind===103&&n.parent.kind!==177&&n.parent.kind!==178)return a.resolvedType=mt;if(a.resolvedType=ms(n.expression),Zs(n.parent)&&!Fl(n.parent)&&Su(n.parent.parent)){const l=qg(n.parent.parent),_=e1e(l);_&&(ei(_).flags|=4096,ei(n).flags|=32768,ei(n.parent.parent).flags|=32768)}(a.resolvedType.flags&98304||!$u(a.resolvedType,402665900)&&!wa(a.resolvedType,Dn))&&We(n,p.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return a.resolvedType}function emt(n){var a;const l=(a=n.declarations)==null?void 0:a[0];return Jh(n.escapedName)||l&&I_(l)&&Zdt(l.name)}function EFe(n){var a;const l=(a=n.declarations)==null?void 0:a[0];return aN(n)||l&&I_(l)&&co(l.name)&&$u(i0(l.name),4096)}function f1e(n,a,l,_){const m=[];for(let k=a;k0&&(O=CS(O,Jn(),n.symbol,Pt,re),k=[],h=ha(),un=!1,or=!1,Rn=!1);const rr=Vm(ms(Bn.expression,a&2));if(XJ(rr)){const Ns=aye(rr,re);if(m&&wFe(Ns,m,Bn),ln=k.length,Gt(O))continue;O=CS(O,Ns,n.symbol,Pt,re)}else We(Bn,p.Spread_types_may_only_be_created_from_object_types),O=mt;continue}else w.assert(Bn.kind===177||Bn.kind===178),o6(Bn);$n&&!($n.flags&8576)?wa($n,Dn)&&(wa($n,xt)?or=!0:wa($n,wi)?Rn=!0:un=!0,_&&(on=!0)):h.set(nr.escapedName,nr),k.push(nr)}if($5(),W){const Bn=Vn(j.pattern.parent,$n=>$n.kind===260||$n.kind===226||$n.kind===169);if(Vn(n,$n=>$n===Bn||$n.kind===305).kind!==305)for(const $n of Po(j))!h.get($n.escapedName)&&!Ea(O,$n.escapedName)&&($n.flags&16777216||We($n.valueDeclaration||((l=si($n,Vg))==null?void 0:l.links.bindingElement),p.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),h.set($n.escapedName,$n),k.push($n))}if(Gt(O))return mt;if(O!==Ja)return k.length>0&&(O=CS(O,Jn(),n.symbol,Pt,re),k=[],h=ha(),un=!1,or=!1),kc(O,Bn=>Bn===Ja?Jn():Bn);return Jn();function Jn(){const Bn=[];un&&Bn.push(f1e(n,ln,k,Ie)),or&&Bn.push(f1e(n,ln,k,xt)),Rn&&Bn.push(f1e(n,ln,k,wi));const nr=qo(n.symbol,h,Ke,Ke,Bn);return nr.objectFlags|=Pt|128|131072,ht&&(nr.objectFlags|=4096),on&&(nr.objectFlags|=512),_&&(nr.pattern=n),nr}}function XJ(n){const a=SOe(kc(n,H0));return!!(a.flags&126615553||a.flags&3145728&&Pn(a.types,XJ))}function nmt(n){g1e(n)}function rmt(n,a){return o6(n),YJ(n)||U}function imt(n){g1e(n.openingElement),a6(n.closingElement.tagName)?Vte(n.closingElement):ms(n.closingElement.tagName),Ute(n)}function smt(n,a){return o6(n),YJ(n)||U}function amt(n){g1e(n.openingFragment);const a=qn(n);return z9(z)&&(z.jsxFactory||a.pragmas.has("jsx"))&&!z.jsxFragmentFactory&&!a.pragmas.has("jsxfrag")&&We(n,z.jsxFactory?p.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:p.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),Ute(n),YJ(n)||U}function d1e(n){return n.includes("-")}function a6(n){return Je(n)&&m4(n.escapedText)||wm(n)}function PFe(n,a){return n.initializer?_8(n.initializer,a):Un}function omt(n,a=0){const l=n.attributes,_=Tf(l,0),m=X?ha():void 0;let h=ha(),k=Pc,O=!1,j,W=!1,re=2048;const be=QJ(JT(n));for(const ht of l.properties){const Pt=ht.symbol;if(_g(ht)){const on=PFe(ht,a);re|=Br(on)&458752;const un=ro(4|Pt.flags,Pt.escapedName);if(un.declarations=Pt.declarations,un.parent=Pt.parent,Pt.valueDeclaration&&(un.valueDeclaration=Pt.valueDeclaration),un.links.type=on,un.links.target=Pt,h.set(un.escapedName,un),m==null||m.set(un.escapedName,un),uw(ht.name)===be&&(W=!0),_){const or=Ea(_,Pt.escapedName);or&&or.declarations&&$1(or)&&Je(ht.name)&&zy(ht.name,or.declarations,ht.name.escapedText)}if(_&&a&2&&!(a&4)&&yd(ht)){const or=NS(l);w.assert(or);const Rn=ht.initializer.expression;Oye(or,Rn,on)}}else{w.assert(ht.kind===293),h.size>0&&(k=CS(k,qe(),l.symbol,re,!1),h=ha());const on=Vm(ms(ht.expression,a&2));Dt(on)&&(O=!0),XJ(on)?(k=CS(k,on,l.symbol,re,!1),m&&wFe(on,m,ht)):(We(ht.expression,p.Spread_types_may_only_be_created_from_object_types),j=j?Pa([j,on]):on)}}O||h.size>0&&(k=CS(k,qe(),l.symbol,re,!1));const he=n.parent.kind===284?n.parent:void 0;if(he&&he.openingElement===n&&p4(he.children).length>0){const ht=Ute(he,a);if(!O&&be&&be!==""){W&&We(l,p._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Hi(be));const Pt=tb(n.attributes,void 0),on=Pt&&eb(Pt,be),un=ro(4,be);un.links.type=ht.length===1?ht[0]:on&&vm(on,e8)?yh(ht):u_(ti(ht)),un.valueDeclaration=L.createPropertySignature(void 0,Hi(be),void 0,void 0),eo(un.valueDeclaration,l),un.valueDeclaration.symbol=un;const or=ha();or.set(be,un),k=CS(k,qo(l.symbol,or,Ke,Ke,Ke),l.symbol,re,!1)}}if(O)return U;if(j&&k!==Pc)return Pa([j,k]);return j||(k===Pc?qe():k);function qe(){re|=Se;const ht=qo(l.symbol,h,Ke,Ke,Ke);return ht.objectFlags|=re|128|131072,ht}}function Ute(n,a){const l=[];for(const _ of n.children)if(_.kind===12)_.containsOnlyTriviaWhiteSpaces||l.push(Ie);else{if(_.kind===294&&!_.expression)continue;l.push(_8(_,a))}return l}function wFe(n,a,l){for(const _ of Po(n))if(!(_.flags&16777216)){const m=a.get(_.escapedName);if(m){const h=We(m.valueDeclaration,p._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,Hi(m.escapedName));Ua(h,Rr(l,p.This_spread_always_overwrites_this_property))}}}function cmt(n,a){return omt(n.parent,a)}function IS(n,a){const l=JT(a),_=l&&ip(l),m=_&&bf(_,n,788968);return m?fc(m):mt}function Vte(n){const a=ei(n);if(!a.resolvedSymbol){const l=IS(Mp.IntrinsicElements,n);if(Gt(l))return fe&&We(n,p.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,Hi(Mp.IntrinsicElements)),a.resolvedSymbol=ft;{if(!Je(n.tagName)&&!wm(n.tagName))return w.fail();const _=wm(n.tagName)?Ok(n.tagName):n.tagName.escapedText,m=Ea(l,_);if(m)return a.jsxFlags|=1,a.resolvedSymbol=m;const h=nMe(l,xf(Hi(_)));return h?(a.jsxFlags|=2,a.resolvedSymbol=h):Ct(l,_)?(a.jsxFlags|=2,a.resolvedSymbol=l.symbol):(We(n,p.Property_0_does_not_exist_on_type_1,Uq(n.tagName),"JSX."+Mp.IntrinsicElements),a.resolvedSymbol=ft)}}return a.resolvedSymbol}function m1e(n){const a=n&&qn(n),l=a&&ei(a);if(l&&l.jsxImplicitImportContainer===!1)return;if(l&&l.jsxImplicitImportContainer)return l.jsxImplicitImportContainer;const _=V9(U9(z,a),z);if(!_)return;const h=j_(z)===1?p.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:p.Cannot_find_module_0_or_its_corresponding_type_declarations,k=z.importHelpers?1:0,O=a==null?void 0:a.imports[k];O&&w.assert(lc(O)&&O.text===_,`Expected sourceFile.imports[${k}] to be the synthesized JSX runtime import`);const j=Sg(O||n,_,h,n),W=j&&j!==ft?po(al(j)):void 0;return l&&(l.jsxImplicitImportContainer=W||!1),W}function JT(n){const a=n&&ei(n);if(a&&a.jsxNamespace)return a.jsxNamespace;if(!a||a.jsxNamespace!==!1){let _=m1e(n);if(!_||_===ft){const m=P2(n);_=Lc(n,m,1920,void 0,m,!1)}if(_){const m=al(bf(ip(al(_)),Mp.JSX,1920));if(m&&m!==ft)return a&&(a.jsxNamespace=m),m}a&&(a.jsxNamespace=!1)}const l=al(XD(Mp.JSX,1920,void 0));if(l!==ft)return l}function DFe(n,a){const l=a&&bf(a.exports,n,788968),_=l&&fc(l),m=_&&Po(_);if(m){if(m.length===0)return"";if(m.length===1)return m[0].escapedName;m.length>1&&l.declarations&&We(l.declarations[0],p.The_global_type_JSX_0_may_not_have_more_than_one_property,Hi(n))}}function lmt(n){return n&&bf(n.exports,Mp.LibraryManagedAttributes,788968)}function umt(n){return n&&bf(n.exports,Mp.ElementType,788968)}function _mt(n){return DFe(Mp.ElementAttributesPropertyNameContainer,n)}function QJ(n){return DFe(Mp.ElementChildrenAttributeNameContainer,n)}function AFe(n,a){if(n.flags&4)return[bt];if(n.flags&128){const m=NFe(n,a);return m?[Kte(a,m)]:(We(a,p.Property_0_does_not_exist_on_type_1,n.value,"JSX."+Mp.IntrinsicElements),Ke)}const l=of(n);let _=ra(l,1);return _.length===0&&(_=ra(l,0)),_.length===0&&l.flags&1048576&&(_=f0e(Kt(l.types,m=>AFe(m,a)))),_}function NFe(n,a){const l=IS(Mp.IntrinsicElements,a);if(!Gt(l)){const _=n.value,m=Ea(l,Nc(_));if(m)return fr(m);const h=q2(l,Ie);return h||void 0}return U}function fmt(n,a,l){if(n===1){const m=FFe(l);m&&vd(a,m,vf,l.tagName,p.Its_return_type_0_is_not_a_valid_JSX_element,_)}else if(n===0){const m=OFe(l);m&&vd(a,m,vf,l.tagName,p.Its_instance_type_0_is_not_a_valid_JSX_element,_)}else{const m=FFe(l),h=OFe(l);if(!m||!h)return;const k=ti([m,h]);vd(a,k,vf,l.tagName,p.Its_element_type_0_is_not_a_valid_JSX_element,_)}function _(){const m=Ol(l.tagName);return Hs(void 0,p._0_cannot_be_used_as_a_JSX_component,m)}}function IFe(n){var a;w.assert(a6(n.tagName));const l=ei(n);if(!l.resolvedJsxElementAttributesType){const _=Vte(n);if(l.jsxFlags&1)return l.resolvedJsxElementAttributesType=fr(_)||mt;if(l.jsxFlags&2){const m=wm(n.tagName)?Ok(n.tagName):n.tagName.escapedText;return l.resolvedJsxElementAttributesType=((a=e6(IS(Mp.IntrinsicElements,n),m))==null?void 0:a.type)||mt}else return l.resolvedJsxElementAttributesType=mt}return l.resolvedJsxElementAttributesType}function OFe(n){const a=IS(Mp.ElementClass,n);if(!Gt(a))return a}function YJ(n){return IS(Mp.Element,n)}function FFe(n){const a=YJ(n);if(a)return ti([a,de])}function pmt(n){const a=JT(n);if(!a)return;const l=umt(a);if(!l)return;const _=LFe(l,lr(n));if(!(!_||Gt(_)))return _}function LFe(n,a,...l){const _=fc(n);if(n.flags&524288){const m=Zi(n).typeParameters;if(Xe(m)>=l.length){const h=gv(l,m,l.length,a);return Xe(h)===0?_:dE(n,h)}}if(Xe(_.typeParameters)>=l.length){const m=gv(l,_.typeParameters,l.length,a);return Gy(_,m)}}function dmt(n){const a=IS(Mp.IntrinsicElements,n);return a?Po(a):Ke}function mmt(n){(z.jsx||0)===0&&We(n,p.Cannot_use_JSX_unless_the_jsx_flag_is_provided),YJ(n)===void 0&&fe&&We(n,p.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function g1e(n){const a=F_(n);if(a&&cvt(n),mmt(n),!m1e(n)){const l=_o&&z.jsx===2?p.Cannot_find_name_0:void 0,_=P2(n),m=a?n.tagName:n;let h;if(Kk(n)&&_==="null"||(h=Lc(m,_,111551,l,_,!0)),h&&(h.isReferenced=-1,kt&&h.flags&2097152&&!fd(h)&&tv(h)),Kk(n)){const k=qn(n),O=jC(k);O&&Lc(m,O,111551,l,O,!0)}}if(a){const l=n,_=kE(l);tne(_,n);const m=pmt(l);if(m!==void 0){const h=l.tagName,k=a6(h)?xf(Uq(h)):ms(h);vd(k,m,vf,h,p.Its_type_0_is_not_a_valid_JSX_element_type,()=>{const O=Ol(h);return Hs(void 0,p._0_cannot_be_used_as_a_JSX_component,O)})}else fmt(s9e(l),To(_),l)}}function h1e(n,a,l){if(n.flags&524288){if(W2(n,a)||e6(n,a)||k5(a)&&r0(n,Ie)||l&&d1e(a))return!0}else if(n.flags&3145728&&ZJ(n)){for(const _ of n.types)if(h1e(_,a,l))return!0}return!1}function ZJ(n){return!!(n.flags&524288&&!(Br(n)&512)||n.flags&67108864||n.flags&1048576&&Pe(n.types,ZJ)||n.flags&2097152&&Pn(n.types,ZJ))}function gmt(n,a){if(uvt(n),n.expression){const l=ms(n.expression,a);return n.dotDotDotToken&&l!==U&&!bd(l)&&We(n,p.JSX_spread_child_must_be_an_array_type),l}else return mt}function y1e(n){return n.valueDeclaration?RS(n.valueDeclaration):0}function v1e(n){if(n.flags&8192||Uc(n)&4)return!0;if(lr(n.valueDeclaration)){const a=n.valueDeclaration.parent;return a&&mr(a)&&rl(a)===3}}function b1e(n,a,l,_,m,h=!0){const k=h?n.kind===166?n.right:n.kind===205?n:n.kind===208&&n.propertyName?n.propertyName:n.name:void 0;return MFe(n,a,l,_,m,k)}function MFe(n,a,l,_,m,h){var k;const O=nd(m,l);if(a){if(ce<2&&RFe(m))return h&&We(h,p.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(O&64)return h&&We(h,p.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Ti(m),Hn(s6(m))),!1;if(!(O&256)&&((k=m.declarations)!=null&&k.some(Nie)))return h&&We(h,p.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,Ti(m)),!1}if(O&64&&RFe(m)&&(MA(n)||Dse(n)||Md(n.parent)&&KF(n.parent.parent))){const W=v0(rf(m));if(W&&o1t(n))return h&&We(h,p.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Ti(m),Ad(W.name)),!1}if(!(O&6))return!0;if(O&2){const W=v0(rf(m));return xve(n,W)?!0:(h&&We(h,p.Property_0_is_private_and_only_accessible_within_class_1,Ti(m),Hn(s6(m))),!1)}if(a)return!0;let j=eMe(n,W=>{const re=fc(Pr(W));return _Oe(re,m,l)});return!j&&(j=hmt(n),j=j&&_Oe(j,m,l),O&256||!j)?(h&&We(h,p.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Ti(m),Hn(s6(m)||_)),!1):O&256?!0:(_.flags&262144&&(_=_.isThisType?af(_):l_(_)),!_||!cE(_,j)?(h&&We(h,p.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,Ti(m),Hn(j),Hn(_)),!1):!0)}function hmt(n){const a=ymt(n);let l=(a==null?void 0:a.type)&&ki(a.type);if(l&&l.flags&262144&&(l=af(l)),l&&Br(l)&7)return qy(l)}function ymt(n){const a=_f(n,!1,!1);return a&&oa(a)?Tb(a):void 0}function RFe(n){return!!OJ(n,a=>!(a.flags&8192))}function xE(n){return Pg(ms(n),n)}function KJ(n){return qd(n,50331648)}function S1e(n){return KJ(n)?Z0(n):n}function vmt(n,a){const l=il(n)?Vf(n):void 0;if(n.kind===106){We(n,p.The_value_0_cannot_be_used_here,"null");return}if(l!==void 0&&l.length<100){if(Je(n)&&l==="undefined"){We(n,p.The_value_0_cannot_be_used_here,"undefined");return}We(n,a&16777216?a&33554432?p._0_is_possibly_null_or_undefined:p._0_is_possibly_undefined:p._0_is_possibly_null,l)}else We(n,a&16777216?a&33554432?p.Object_is_possibly_null_or_undefined:p.Object_is_possibly_undefined:p.Object_is_possibly_null)}function bmt(n,a){We(n,a&16777216?a&33554432?p.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:p.Cannot_invoke_an_object_which_is_possibly_undefined:p.Cannot_invoke_an_object_which_is_possibly_null)}function jFe(n,a,l){if(X&&n.flags&2){if(il(a)){const m=Vf(a);if(m.length<100)return We(a,p._0_is_of_type_unknown,m),mt}return We(a,p.Object_is_of_type_unknown),mt}const _=r8(n,50331648);if(_&50331648){l(a,_);const m=Z0(n);return m.flags&229376?mt:m}return n}function Pg(n,a){return jFe(n,a,vmt)}function BFe(n,a){const l=Pg(n,a);if(l.flags&16384){if(il(a)){const _=Vf(a);if(Je(a)&&_==="undefined")return We(a,p.The_value_0_cannot_be_used_here,_),l;if(_.length<100)return We(a,p._0_is_possibly_undefined,_),l}We(a,p.Object_is_possibly_undefined)}return l}function Wte(n,a,l){return n.flags&64?Smt(n,a):T1e(n,n.expression,xE(n.expression),n.name,a,l)}function Smt(n,a){const l=ms(n.expression),_=z5(l,n.expression);return vte(T1e(n,n.expression,Pg(_,n.expression),n.name,a),n,_!==l)}function JFe(n,a){const l=r9(n)&&Cb(n.left)?Pg(HJ(n.left),n.left):xE(n.left);return T1e(n,n.left,l,n.right,a)}function zFe(n){for(;n.parent.kind===217;)n=n.parent;return Zm(n.parent)&&n.parent.expression===n}function qte(n,a){for(let l=YF(a);l;l=Du(l)){const{symbol:_}=l,m=sN(_,n),h=_.members&&_.members.get(m)||_.exports&&_.exports.get(m);if(h)return h}}function xmt(n){if(!Du(n))return xn(n,p.Private_identifiers_are_not_allowed_outside_class_bodies);if(!tM(n.parent)){if(!Oh(n))return xn(n,p.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);const a=mr(n.parent)&&n.parent.operatorToken.kind===103;if(!Hte(n)&&!a)return xn(n,p.Cannot_find_name_0,kr(n))}return!1}function Tmt(n){xmt(n);const a=Hte(n);return a&&tz(a,void 0,!1),U}function Hte(n){if(!Oh(n))return;const a=ei(n);return a.resolvedSymbol===void 0&&(a.resolvedSymbol=qte(n.escapedText,n)),a.resolvedSymbol}function x1e(n,a){return Ea(n,a.escapedName)}function kmt(n,a,l){let _;const m=Po(n);m&&dt(m,k=>{const O=k.valueDeclaration;if(O&&I_(O)&&Qi(O.name)&&O.name.escapedText===a.escapedText)return _=k,!0});const h=fm(a);if(_){const k=w.checkDefined(_.valueDeclaration),O=w.checkDefined(Du(k));if(l!=null&&l.valueDeclaration){const j=l.valueDeclaration,W=Du(j);if(w.assert(!!W),Vn(W,re=>O===re)){const re=We(a,p.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,h,Hn(n));return Ua(re,Rr(j,p.The_shadowing_declaration_of_0_is_defined_here,h),Rr(k,p.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,h)),!0}}return We(a,p.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,h,fm(O.name||VM)),!0}return!1}function UFe(n,a){return(sE(a)||MA(n)&&JD(a))&&_f(n,!0,!1)===zD(a)}function T1e(n,a,l,_,m,h){const k=ei(a).resolvedSymbol,O=Tk(n),j=of(O!==0||zFe(n)?Cp(l):l),W=Dt(j)||j===xs;let re;if(Qi(_)){ce<99&&(O!==0&&Xl(n,1048576),O!==1&&Xl(n,524288));const he=qte(_.escapedText,_);if(O&&he&&he.valueDeclaration&&ul(he.valueDeclaration)&&xn(_,p.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,kr(_)),W){if(he)return Gt(j)?mt:j;if(YF(_)===void 0)return xn(_,p.Private_identifiers_are_not_allowed_outside_class_bodies),U}if(re=he&&x1e(l,he),re===void 0){if(kmt(l,_,he))return mt;const qe=YF(_);qe&&CA(qn(qe),z.checkJs)&&xn(_,p.Private_field_0_must_be_declared_in_an_enclosing_class,kr(_))}else re.flags&65536&&!(re.flags&32768)&&O!==1&&We(n,p.Private_accessor_was_defined_without_a_getter)}else{if(W)return Je(a)&&k&&Mte(k,n),Gt(j)?mt:j;re=Ea(j,_.escapedText,ine(j),n.kind===166)}Je(a)&&k&&(Ld(z)||!(re&&(cO(re)||re.flags&8&&n.parent.kind===306))||Nb(z)&&oFe(n))&&Mte(k,n);let be;if(re){const he=vve(re,_);if($1(he)&&tye(n,he)&&he.declarations&&zy(_,he.declarations,_.escapedText),Cmt(re,n,_),tz(re,n,XFe(a,k)),ei(n).resolvedSymbol=re,b1e(n,a.kind===108,wk(n),j,re),j9e(n,re,O))return We(_,p.Cannot_assign_to_0_because_it_is_a_read_only_property,kr(_)),mt;be=UFe(n,re)?it:h||O9(n)?SS(re):fr(re)}else{const he=!Qi(_)&&(O===0||!AT(l)||cw(l))?e6(j,_.escapedText):void 0;if(!(he&&he.type)){const qe=k1e(n,l.symbol,!0);return!qe&&I5(l)?U:l.symbol===st?(st.exports.has(_.escapedText)&&st.exports.get(_.escapedText).flags&418?We(_,p.Property_0_does_not_exist_on_type_1,Hi(_.escapedText),Hn(l)):fe&&We(_,p.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Hn(l)),U):(_.escapedText&&!rT(n)&&qFe(_,cw(l)?j:l,qe),mt)}he.isReadonly&&(Lh(n)||qW(n))&&We(n,p.Index_signature_in_type_0_only_permits_reading,Hn(j)),be=z.noUncheckedIndexedAccess&&!Lh(n)?ti([he.type,I]):he.type,z.noPropertyAccessFromIndexSignature&&Jr(n)&&We(_,p.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,Hi(_.escapedText)),he.declaration&&Jy(he.declaration)&&zy(_,[he.declaration],_.escapedText)}return VFe(n,re,be,_,m)}function k1e(n,a,l){var _;const m=qn(n);if(m&&z.checkJs===void 0&&m.checkJsDirective===void 0&&(m.scriptKind===1||m.scriptKind===2)){const h=dt(a==null?void 0:a.declarations,qn),k=!(a!=null&&a.valueDeclaration)||!fi(a.valueDeclaration)||((_=a.valueDeclaration.heritageClauses)==null?void 0:_.length)||gy(!1,a.valueDeclaration);return!(m!==h&&h&&oh(h))&&!(l&&a&&a.flags&32&&k)&&!(n&&l&&Jr(n)&&n.expression.kind===110&&k)}return!1}function VFe(n,a,l,_,m){const h=Tk(n);if(h===1)return Cv(l,!!(a&&a.flags&16777216));if(a&&!(a.flags&98311)&&!(a.flags&8192&&l.flags&1048576)&&!vne(a.declarations))return l;if(l===it)return aE(n,a);l=Kye(l,n,m);let k=!1;if(X&&we&&$o(n)&&n.expression.kind===110){const j=a&&a.valueDeclaration;if(j&&zLe(j)&&!da(j)){const W=G5(n);W.kind===176&&W.parent===j.parent&&!(j.flags&33554432)&&(k=!0)}}else X&&a&&a.valueDeclaration&&Jr(a.valueDeclaration)&&HA(a.valueDeclaration)&&G5(n)===G5(a.valueDeclaration)&&(k=!0);const O=Ev(n,l,k?kv(l):l);return k&&!YD(l)&&YD(O)?(We(_,p.Property_0_is_used_before_being_assigned,Ti(a)),l):h?Y0(O):O}function Cmt(n,a,l){const{valueDeclaration:_}=n;if(!_||qn(a).isDeclarationFile)return;let m;const h=kr(l);WFe(a)&&!put(_)&&!($o(a)&&$o(a.expression))&&!L0(_,l)&&!(ul(_)&&wne(_)&256)&&(ge||!Emt(n))?m=We(l,p.Property_0_is_used_before_its_initialization,h):_.kind===263&&a.parent.kind!==183&&!(_.flags&33554432)&&!L0(_,l)&&(m=We(l,p.Class_0_used_before_its_declaration,h)),m&&Ua(m,Rr(_,p._0_is_declared_here,h))}function WFe(n){return!!Vn(n,a=>{switch(a.kind){case 172:return!0;case 303:case 174:case 177:case 178:case 305:case 167:case 239:case 294:case 291:case 292:case 293:case 286:case 233:case 298:return!1;case 219:case 244:return na(a.parent)&&Vc(a.parent.parent)?!0:"quit";default:return Oh(a)?!1:"quit"}})}function Emt(n){if(!(n.parent.flags&32))return!1;let a=fr(n.parent);for(;;){if(a=a.symbol&&Pmt(a),!a)return!1;const l=Ea(a,n.escapedName);if(l&&l.valueDeclaration)return!0}}function Pmt(n){const a=ap(n);if(a.length!==0)return Pa(a)}function qFe(n,a,l){let _,m;if(!Qi(n)&&a.flags&1048576&&!(a.flags&402784252)){for(const k of a.types)if(!Ea(k,n.escapedText)&&!e6(k,n.escapedText)){_=Hs(_,p.Property_0_does_not_exist_on_type_1,Bo(n),Hn(k));break}}if(HFe(n.escapedText,a)){const k=Bo(n),O=Hn(a);_=Hs(_,p.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,k,O,O+"."+k)}else{const k=nO(a);if(k&&Ea(k,n.escapedText))_=Hs(_,p.Property_0_does_not_exist_on_type_1,Bo(n),Hn(a)),m=Rr(n,p.Did_you_forget_to_use_await);else{const O=Bo(n),j=Hn(a),W=Amt(O,a);if(W!==void 0)_=Hs(_,p.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later,O,j,W);else{const re=C1e(n,a);if(re!==void 0){const be=Rc(re),he=l?p.Property_0_may_not_exist_on_type_1_Did_you_mean_2:p.Property_0_does_not_exist_on_type_1_Did_you_mean_2;_=Hs(_,he,O,j,be),m=re.valueDeclaration&&Rr(re.valueDeclaration,p._0_is_declared_here,be)}else{const be=wmt(a)?p.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:p.Property_0_does_not_exist_on_type_1;_=Hs(x0e(_,a),be,O,j)}}}}const h=m0(qn(n),n,_);m&&Ua(h,m),Fm(!l||_.code!==p.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,h)}function wmt(n){return z.lib&&!z.lib.includes("dom")&&Jpt(n,a=>a.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(Hi(a.symbol.escapedName)))&&Q0(n)}function HFe(n,a){const l=a.symbol&&Ea(fr(a.symbol),n);return l!==void 0&&!!l.valueDeclaration&&da(l.valueDeclaration)}function Dmt(n){const a=fm(n),_=oL().get(a);return _&&oU(_.keys())}function Amt(n,a){const l=of(a).symbol;if(!l)return;const _=Rc(l),h=oL().get(_);if(h){for(const[k,O]of h)if(Ai(O,n))return k}}function GFe(n,a){return ez(n,Po(a),106500)}function C1e(n,a){let l=Po(a);if(typeof n!="string"){const _=n.parent;Jr(_)&&(l=vr(l,m=>QFe(_,a,m))),n=kr(n)}return ez(n,l,111551)}function $Fe(n,a){const l=Ls(n)?n:kr(n),_=Po(a);return(l==="for"?Cn(_,h=>Rc(h)==="htmlFor"):l==="class"?Cn(_,h=>Rc(h)==="className"):void 0)??ez(l,_,111551)}function E1e(n,a){const l=C1e(n,a);return l&&Rc(l)}function P1e(n,a,l){return w.assert(a!==void 0,"outername should always be defined"),bp(n,a,l,void 0,a,!1,!1,!0,(m,h,k)=>{w.assertEqual(a,h,"name should equal outerName");const O=bf(m,h,k);if(O)return O;let j;return m===xe?j=Oi(["string","number","boolean","object","bigint","symbol"],re=>m.has(re.charAt(0).toUpperCase()+re.slice(1))?ro(524288,re):void 0).concat(Vs(m.values())):j=Vs(m.values()),ez(Hi(h),j,k)})}function Nmt(n,a,l){const _=P1e(n,a,l);return _&&Rc(_)}function Gte(n,a){return a.exports&&ez(kr(n),dT(a),2623475)}function Imt(n,a){const l=Gte(n,a);return l&&Rc(l)}function Omt(n,a,l){function _(k){const O=W2(n,k);if(O){const j=UT(fr(O));return!!j&&Ag(j)>=1&&wa(l,Hm(j,0))}return!1}const m=Lh(a)?"set":"get";if(!_(m))return;let h=dN(a.expression);return h===void 0?h=m:h+="."+m,h}function Fmt(n,a){const l=a.types.filter(_=>!!(_.flags&128));return eP(n.value,l,_=>_.value)}function ez(n,a,l){return eP(n,a,_);function _(m){const h=Rc(m);if(!fs(h,'"')){if(m.flags&l)return h;if(m.flags&2097152){const k=_T(m);if(k&&k.flags&l)return h}}}}function tz(n,a,l){const _=n&&n.flags&106500&&n.valueDeclaration;if(!_)return;const m=qf(_,2),h=n.valueDeclaration&&I_(n.valueDeclaration)&&Qi(n.valueDeclaration.name);if(!(!m&&!h)&&!(a&&O9(a)&&!(n.flags&65536))){if(l){const k=Vn(a,Ko);if(k&&k.symbol===n)return}(Uc(n)&1?Zi(n).target:n).isReferenced=-1}}function XFe(n,a){return n.kind===110||!!a&&il(n)&&a===ym(yp(n))}function Lmt(n,a){switch(n.kind){case 211:return w1e(n,n.expression.kind===108,a,Cp(ms(n.expression)));case 166:return w1e(n,!1,a,Cp(ms(n.left)));case 205:return w1e(n,!1,a,ki(n))}}function QFe(n,a,l){return D1e(n,n.kind===211&&n.expression.kind===108,!1,a,l)}function w1e(n,a,l,_){if(Dt(_))return!0;const m=Ea(_,l);return!!m&&D1e(n,a,!1,_,m)}function D1e(n,a,l,_,m){if(Dt(_))return!0;if(m.valueDeclaration&&O_(m.valueDeclaration)){const h=Du(m.valueDeclaration);return!m_(n)&&!!Vn(n,k=>k===h)}return MFe(n,a,l,_,m)}function Mmt(n){const a=n.initializer;if(a.kind===261){const l=a.declarations[0];if(l&&!ca(l.name))return Pr(l)}else if(a.kind===80)return ym(a)}function Rmt(n){return V_(n).length===1&&!!r0(n,xt)}function jmt(n){const a=Eo(n);if(a.kind===80){const l=ym(a);if(l.flags&3){let _=n,m=n.parent;for(;m;){if(m.kind===249&&_===m.statement&&Mmt(m)===l&&Rmt(Xu(m.expression)))return!0;_=m,m=m.parent}}}return!1}function Bmt(n,a){return n.flags&64?Jmt(n,a):YFe(n,xE(n.expression),a)}function Jmt(n,a){const l=ms(n.expression),_=z5(l,n.expression);return vte(YFe(n,Pg(_,n.expression),a),n,_!==l)}function YFe(n,a,l){const _=Tk(n)!==0||zFe(n)?Cp(a):a,m=n.argumentExpression,h=ms(m);if(Gt(_)||_===xs)return _;if(ine(_)&&!vo(m))return We(m,p.A_const_enum_member_can_only_be_accessed_using_a_string_literal),mt;const k=jmt(m)?xt:h,O=Lh(n)?4|(AT(_)&&!cw(_)?2:0):32,j=yv(_,k,O,n)||mt;return sLe(VFe(n,ei(n).resolvedSymbol,j,m,l),n)}function ZFe(n){return Zm(n)||Lb(n)||F_(n)}function zT(n){return ZFe(n)&&dt(n.typeArguments,Ra),n.kind===215?ms(n.template):F_(n)?ms(n.attributes):mr(n)?ms(n.left):Zm(n)&&dt(n.arguments,a=>{ms(a)}),bt}function wg(n){return zT(n),_n}function zmt(n,a,l){let _,m,h=0,k,O=-1,j;w.assert(!a.length);for(const W of n){const re=W.declaration&&Pr(W.declaration),be=W.declaration&&W.declaration.parent;!m||re===m?_&&be===_?k=k+1:(_=be,k=h):(k=h=a.length,_=be),m=re,VG(W)?(O++,j=O,h++):j=k,a.splice(j,0,l?Llt(W,l):W)}}function $te(n){return!!n&&(n.kind===230||n.kind===237&&n.isSpread)}function Xte(n){return Gs(n,$te)}function KFe(n){return!!(n.flags&16384)}function Umt(n){return!!(n.flags&49155)}function Qte(n,a,l,_=!1){let m,h=!1,k=Ep(l),O=Ag(l);if(n.kind===215)if(m=a.length,n.template.kind===228){const j=so(n.template.templateSpans);h=nl(j.literal)||!!j.literal.isUnterminated}else{const j=n.template;w.assert(j.kind===15),h=!!j.isUnterminated}else if(n.kind===170)m=o9e(n,l);else if(n.kind===226)m=1;else if(F_(n)){if(h=n.attributes.end===n.end,h)return!0;m=O===0?a.length:1,k=a.length===0?k:1,O=Math.min(O,1)}else if(n.arguments){m=_?a.length+1:a.length,h=n.arguments.end===n.end;const j=Xte(a);if(j>=0)return j>=Ag(l)&&(bh(l)||jk)return!1;if(h||m>=O)return!0;for(let j=m;j=_&&a.length<=l}function e9e(n,a){let l;return!!(n.target&&(l=OS(n.target,a))&&hE(l))}function UT(n){return Q5(n,0,!1)}function t9e(n){return Q5(n,0,!1)||Q5(n,1,!1)}function Q5(n,a,l){if(n.flags&524288){const _=Um(n);if(l||_.properties.length===0&&_.indexInfos.length===0){if(a===0&&_.callSignatures.length===1&&_.constructSignatures.length===0)return _.callSignatures[0];if(a===1&&_.constructSignatures.length===1&&_.callSignatures.length===0)return _.constructSignatures[0]}}}function n9e(n,a,l,_){const m=W5(n.typeParameters,n,0,_),h=Y5(a),k=l&&(h&&h.flags&262144?l.nonFixingMapper:l.mapper),O=k?vE(a,k):a;return Aye(O,n,(j,W)=>{K0(m.inferences,j,W)}),l||Nye(a,n,(j,W)=>{K0(m.inferences,j,W,128)}),w5(n,Vye(m),lr(a.declaration))}function Vmt(n,a,l,_){const m=zte(a,n),h=CE(n.attributes,m,_,l);return K0(_.inferences,h,m),Vye(_)}function r9e(n){if(!n)return sr;const a=ms(n);return uae(n)?a:pP(n.parent)?Z0(a):m_(n.parent)?yte(a):a}function N1e(n,a,l,_,m){if(F_(n))return Vmt(n,a,_,m);if(n.kind!==170&&n.kind!==226){const j=Pn(a.typeParameters,re=>!!ET(re)),W=Tf(n,j?8:0);if(W){const re=To(a);if(Z2(re)){const be=NS(n);if(!(!j&&Tf(n,8)!==W)){const Pt=Lye(npt(be,1)),on=_s(W,Pt),un=UT(on),or=un&&un.typeParameters?PT(D0e(un,un.typeParameters)):on;K0(m.inferences,or,re,128)}const qe=W5(a.typeParameters,a,m.flags),ht=_s(W,be&&be.returnMapper);K0(qe.inferences,ht,re),m.returnMapper=Pe(qe.inferences,EE)?Lye(apt(qe)):void 0}}}const h=Z5(a),k=h?Math.min(Ep(a)-1,l.length):l.length;if(h&&h.flags&262144){const j=Cn(m.inferences,W=>W.typeParameter===h);j&&(j.impliedArity=Gs(l,$te,k)<0?l.length-k:void 0)}const O=H2(a);if(O&&Z2(O)){const j=a9e(n);K0(m.inferences,r9e(j),O)}for(let j=0;j=l-1){const re=n[l-1];if($te(re)){const be=re.kind===237?re.type:CE(re.expression,_,m,h);return Yy(be)?i9e(be):u_(Ky(33,be,Fe,re.kind===230?re.expression:re),k)}}const O=[],j=[],W=[];for(let re=a;reHs(void 0,p.Type_0_does_not_satisfy_the_constraint_1):void 0,be=_||p.Type_0_does_not_satisfy_the_constraint_1;O||(O=cp(h,k));const he=k[j];if(!C_(he,kp(_s(W,O),he),l?a[j]:void 0,be,re))return}}return k}function s9e(n){if(a6(n.tagName))return 2;const a=of(ms(n.tagName));return Xe(ra(a,1))?0:Xe(ra(a,0))?1:2}function Wmt(n,a,l,_,m,h,k){const O=zte(a,n),j=CE(n.attributes,O,void 0,_),W=_&4?V5(j):j;return re()&&mye(W,O,l,m?n.tagName:void 0,n.attributes,void 0,h,k);function re(){var be;if(m1e(n))return!0;const he=(ug(n)||Ex(n))&&!(a6(n.tagName)||wm(n.tagName))?ms(n.tagName):void 0;if(!he)return!0;const qe=ra(he,0);if(!Xe(qe))return!0;const ht=fMe(n);if(!ht)return!0;const Pt=ic(ht,111551,!0,!1,n);if(!Pt)return!0;const on=fr(Pt),un=ra(on,0);if(!Xe(un))return!0;let or=!1,Rn=0;for(const Jn of un){const Bn=Hm(Jn,0),nr=ra(Bn,0);if(Xe(nr))for(const $n of nr){if(or=!0,bh($n))return!0;const rr=Ep($n);rr>Rn&&(Rn=rr)}}if(!or)return!0;let ln=1/0;for(const Jn of qe){const Bn=Ag(Jn);Bn{m.push(h.expression)}),m}if(n.kind===170)return qmt(n);if(n.kind===226)return[n.left];if(F_(n))return n.attributes.properties.length>0||ug(n)&&n.parent.children.length>0?[n.attributes]:Ke;const a=n.arguments||Ke,l=Xte(a);if(l>=0){const _=a.slice(0,l);for(let m=l;m{var W;const re=k.target.elementFlags[j],be=rz(h,re&4?u_(O):O,!!(re&12),(W=k.target.labeledElementDeclarations)==null?void 0:W[j]);_.push(be)}):_.push(h)}return _}return a}function qmt(n){const a=n.expression,l=q1e(n);if(l){const _=[];for(const m of l.parameters){const h=fr(m);_.push(rz(a,h))}return _}return w.fail()}function o9e(n,a){return z.experimentalDecorators?Hmt(n,a):2}function Hmt(n,a){switch(n.parent.kind){case 263:case 231:return 1;case 172:return ig(n.parent)?3:2;case 174:case 177:case 178:return ce===0||a.parameters.length<=2?2:3;case 169:return 3;default:return w.fail()}}function c9e(n){const a=qn(n),{start:l,length:_}=rx(a,Jr(n.expression)?n.expression.name:n.expression);return{start:l,length:_,sourceFile:a}}function iz(n,a,...l){if(ma(n)){const{sourceFile:_,start:m,length:h}=c9e(n);return"message"in a?bu(_,m,h,a,...l):PW(_,a)}else return"message"in a?Rr(n,a,...l):m0(qn(n),n,a)}function Gmt(n){return Zm(n)?Jr(n.expression)?n.expression.name:n.expression:Lb(n)?Jr(n.tag)?n.tag.name:n.tag:F_(n)?n.tagName:n}function $mt(n){if(!ma(n)||!Je(n.expression))return!1;const a=Lc(n.expression,n.expression.escapedText,111551,void 0,void 0,!1),l=a==null?void 0:a.valueDeclaration;if(!l||!ws(l)||!Db(l.parent)||!Fb(l.parent.parent)||!Je(l.parent.parent.expression))return!1;const _=U0e(!1);return _?bm(l.parent.parent.expression,!0)===_:!1}function l9e(n,a,l,_){var m;const h=Xte(l);if(h>-1)return Rr(l[h],p.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let k=Number.POSITIVE_INFINITY,O=Number.NEGATIVE_INFINITY,j=Number.NEGATIVE_INFINITY,W=Number.POSITIVE_INFINITY,re;for(const Pt of a){const on=Ag(Pt),un=Ep(Pt);onj&&(j=on),l.lengthm?k=Math.min(k,j):W1&&(Rn=Bn(he,ah,ht,ln)),Rn||(Rn=Bn(he,vf,ht,ln)),Rn)return Rn;if(Rn=Qmt(n,he,qe,!!l,_),ei(n).resolvedSignature=Rn,re)if(!h&&W&&(h=p.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method),on)if(on.length===1||on.length>3){const nr=on[on.length-1];let $n;on.length>3&&($n=Hs($n,p.The_last_overload_gave_the_following_error),$n=Hs($n,p.No_overload_matches_this_call)),h&&($n=Hs($n,h));const rr=nz(n,qe,nr,vf,0,!0,()=>$n);if(rr)for(const Ns of rr)nr.declaration&&on.length>3&&Ua(Ns,Rr(nr.declaration,p.The_last_overload_is_declared_here)),Jn(nr,Ns),_o.add(Ns);else w.fail("No error for last overload signature")}else{const nr=[];let $n=0,rr=Number.MAX_VALUE,Ns=0,Es=0;for(const jf of on){const tr=nz(n,qe,jf,vf,0,!0,()=>Hs(void 0,p.Overload_0_of_1_2_gave_the_following_error,Es+1,he.length,_h(jf)));tr?(tr.length<=rr&&(rr=tr.length,Ns=Es),$n=Math.max($n,tr.length),nr.push(tr)):w.fail("No error for 3 or fewer overload signatures"),Es++}const Ws=$n>1?nr[Ns]:P_(nr);w.assert(Ws.length>0,"No errors reported for 3 or fewer overload signatures");let gs=Hs(Kt(Ws,dse),p.No_overload_matches_this_call);h&&(gs=Hs(gs,h));const Ql=[...Ys(Ws,jf=>jf.relatedInformation)];let Sd;if(Pn(Ws,jf=>jf.start===Ws[0].start&&jf.length===Ws[0].length&&jf.file===Ws[0].file)){const{file:jf,start:Mn,length:tr}=Ws[0];Sd={file:jf,start:Mn,length:tr,code:gs.code,category:gs.category,messageText:gs,relatedInformation:Ql}}else Sd=m0(qn(n),Gmt(n),gs,Ql);Jn(on[0],Sd),_o.add(Sd)}else if(un)_o.add(l9e(n,[un],qe,h));else if(or)O1e(or,n.typeArguments,!0,h);else{const nr=vr(a,$n=>A1e($n,be));nr.length===0?_o.add(Xmt(n,a,be,h)):_o.add(l9e(n,nr,qe,h))}return Rn;function Jn(nr,$n){var rr,Ns;const Es=on,Ws=un,gs=or,Ql=((Ns=(rr=nr.declaration)==null?void 0:rr.symbol)==null?void 0:Ns.declarations)||Ke,jf=Ql.length>1?Cn(Ql,Mn=>Ko(Mn)&&Ed(Mn.body)):void 0;if(jf){const Mn=Vd(jf),tr=!Mn.typeParameters;Bn([Mn],vf,tr)&&Ua($n,Rr(jf,p.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}on=Es,un=Ws,or=gs}function Bn(nr,$n,rr,Ns=!1){if(on=void 0,un=void 0,or=void 0,rr){const Es=nr[0];if(Pe(be)||!Qte(n,qe,Es,Ns))return;if(nz(n,qe,Es,$n,0,!1,void 0)){on=[Es];return}return Es}for(let Es=0;Es0),o6(n),_||a.length===1||a.some(h=>!!h.typeParameters)?Kmt(n,a,l,m):Ymt(a)}function Ymt(n){const a=Oi(n,j=>j.thisParameter);let l;a.length&&(l=u9e(a,a.map(oz)));const{min:_,max:m}=Uae(n,Zmt),h=[];for(let j=0;jv_(re)?jOS(re,j))))}const k=Oi(n,j=>v_(j)?so(j.parameters):void 0);let O=128;if(k.length!==0){const j=u_(ti(Oi(n,VIe),2));h.push(_9e(k,j)),O|=1}return n.some(VG)&&(O|=2),n0(n[0].declaration,void 0,l,h,Pa(n.map(To)),void 0,_,O)}function Zmt(n){const a=n.parameters.length;return v_(n)?a-1:a}function u9e(n,a){return _9e(n,ti(a,2))}function _9e(n,a){return FT(Ka(n),a)}function Kmt(n,a,l,_){const m=ngt(a,nn===void 0?l.length:nn),h=a[m],{typeParameters:k}=h;if(!k)return h;const O=ZFe(n)?n.typeArguments:void 0,j=O?Uee(h,egt(O,k,lr(n))):tgt(n,k,h,l,_);return a[m]=j,j}function egt(n,a,l){const _=n.map(c6);for(;_.length>a.length;)_.pop();for(;_.length=a)return m;k>_&&(_=k,l=m)}return l}function rgt(n,a,l){if(n.expression.kind===108){const j=i1e(n.expression);if(Dt(j)){for(const W of n.arguments)ms(W);return bt}if(!Gt(j)){const W=tg(Du(n));if(W){const re=dh(j,W.typeArguments,W);return TE(n,re,a,l,0)}}return zT(n)}let _,m=ms(n.expression);if(XS(n)){const j=z5(m,n.expression);_=j===m?0:dP(n)?16:8,m=j}else _=0;if(m=jFe(m,n.expression,bmt),m===xs)return br;const h=of(m);if(Gt(h))return wg(n);const k=ra(h,0),O=ra(h,1).length;if(sz(m,h,k.length,O))return!Gt(m)&&n.typeArguments&&We(n,p.Untyped_function_calls_may_not_accept_type_arguments),zT(n);if(!k.length){if(O)We(n,p.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Hn(m));else{let j;if(n.arguments.length===1){const W=qn(n).text;d_(W.charCodeAt(za(W,n.expression.end,!0)-1))&&(j=Rr(n.expression,p.Are_you_missing_a_semicolon))}L1e(n.expression,h,0,j)}return wg(n)}return l&8&&!n.typeArguments&&k.some(igt)?($9e(n,l),Tr):k.some(j=>lr(j.declaration)&&!!UV(j.declaration))?(We(n,p.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Hn(m)),wg(n)):TE(n,k,a,l,_)}function igt(n){return!!(n.typeParameters&&Cve(To(n)))}function sz(n,a,l,_){return Dt(n)||Dt(a)&&!!(n.flags&262144)||!l&&!_&&!(a.flags&1048576)&&!(Vm(a).flags&131072)&&wa(n,jt)}function sgt(n,a,l){if(n.arguments&&ce<1){const k=Xte(n.arguments);k>=0&&We(n.arguments[k],p.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}let _=xE(n.expression);if(_===xs)return br;if(_=of(_),Gt(_))return wg(n);if(Dt(_))return n.typeArguments&&We(n,p.Untyped_function_calls_may_not_accept_type_arguments),zT(n);const m=ra(_,1);if(m.length){if(!agt(n,m[0]))return wg(n);if(f9e(m,O=>!!(O.flags&4)))return We(n,p.Cannot_create_an_instance_of_an_abstract_class),wg(n);const k=_.symbol&&v0(_.symbol);return k&&Kr(k,64)?(We(n,p.Cannot_create_an_instance_of_an_abstract_class),wg(n)):TE(n,m,a,l,0)}const h=ra(_,0);if(h.length){const k=TE(n,h,a,l,0);return fe||(k.declaration&&!Dg(k.declaration)&&To(k)!==sr&&We(n,p.Only_a_void_function_can_be_called_with_the_new_keyword),H2(k)===sr&&We(n,p.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),k}return L1e(n.expression,_,1),wg(n)}function f9e(n,a){return Ps(n)?Pe(n,l=>f9e(l,a)):n.compositeKind===1048576?Pe(n.compositeSignatures,a):a(n)}function F1e(n,a){const l=ap(a);if(!Xe(l))return!1;const _=l[0];if(_.flags&2097152){const m=_.types,h=kIe(m);let k=0;for(const O of _.types){if(!h[k]&&Br(O)&3&&(O.symbol===n||F1e(n,O)))return!0;k++}return!1}return _.symbol===n?!0:F1e(n,_)}function agt(n,a){if(!a||!a.declaration)return!0;const l=a.declaration,_=Ek(l,6);if(!_||l.kind!==176)return!0;const m=v0(l.parent.symbol),h=fc(l.parent.symbol);if(!xve(n,m)){const k=Du(n);if(k&&_&4){const O=c6(k);if(F1e(l.parent.symbol,O))return!0}return _&2&&We(n,p.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Hn(h)),_&4&&We(n,p.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Hn(h)),!1}return!0}function p9e(n,a,l){let _;const m=l===0,h=WT(a),k=h&&ra(h,l).length>0;if(a.flags&1048576){const j=a.types;let W=!1;for(const re of j)if(ra(re,l).length!==0){if(W=!0,_)break}else if(_||(_=Hs(_,m?p.Type_0_has_no_call_signatures:p.Type_0_has_no_construct_signatures,Hn(re)),_=Hs(_,m?p.Not_all_constituents_of_type_0_are_callable:p.Not_all_constituents_of_type_0_are_constructable,Hn(a))),W)break;W||(_=Hs(void 0,m?p.No_constituent_of_type_0_is_callable:p.No_constituent_of_type_0_is_constructable,Hn(a))),_||(_=Hs(_,m?p.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:p.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,Hn(a)))}else _=Hs(_,m?p.Type_0_has_no_call_signatures:p.Type_0_has_no_construct_signatures,Hn(a));let O=m?p.This_expression_is_not_callable:p.This_expression_is_not_constructable;if(ma(n.parent)&&n.parent.arguments.length===0){const{resolvedSymbol:j}=ei(n);j&&j.flags&32768&&(O=p.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:Hs(_,O),relatedMessage:k?p.Did_you_forget_to_use_await:void 0}}function L1e(n,a,l,_){const{messageChain:m,relatedMessage:h}=p9e(n,a,l),k=m0(qn(n),n,m);if(h&&Ua(k,Rr(n,h)),ma(n.parent)){const{start:O,length:j}=c9e(n.parent);k.start=O,k.length=j}_o.add(k),d9e(a,l,_?Ua(k,_):k)}function d9e(n,a,l){if(!n.symbol)return;const _=Zi(n.symbol).originatingImport;if(_&&!gp(_)){const m=ra(fr(Zi(n.symbol).target),a);if(!m||!m.length)return;Ua(l,Rr(_,p.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}function ogt(n,a,l){const _=ms(n.tag),m=of(_);if(Gt(m))return wg(n);const h=ra(m,0),k=ra(m,1).length;if(sz(_,m,h.length,k))return zT(n);if(!h.length){if(B_(n.parent)){const O=Rr(n.tag,p.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return _o.add(O),wg(n)}return L1e(n.tag,m,0),wg(n)}return TE(n,h,a,l,0)}function cgt(n){switch(n.parent.kind){case 263:case 231:return p.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 169:return p.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 172:return p.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 174:case 177:case 178:return p.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return w.fail()}}function lgt(n,a,l){const _=ms(n.expression),m=of(_);if(Gt(m))return wg(n);const h=ra(m,0),k=ra(m,1).length;if(sz(_,m,h.length,k))return zT(n);if(fgt(n,h)&&!df(n.expression)){const j=Ol(n.expression,!1);return We(n,p._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,j),wg(n)}const O=cgt(n);if(!h.length){const j=p9e(n.expression,m,0),W=Hs(j.messageChain,O),re=m0(qn(n.expression),n.expression,W);return j.relatedMessage&&Ua(re,Rr(n.expression,j.relatedMessage)),_o.add(re),d9e(m,0,re),wg(n)}return TE(n,h,a,l,0,O)}function Kte(n,a){const l=JT(n),_=l&&ip(l),m=_&&bf(_,Mp.Element,788968),h=m&&Tt.symbolToEntityName(m,788968,n),k=L.createFunctionTypeNode(void 0,[L.createParameterDeclaration(void 0,void 0,"props",void 0,Tt.typeToTypeNode(a,n))],h?L.createTypeReferenceNode(h,void 0):L.createKeywordTypeNode(133)),O=ro(1,"props");return O.links.type=a,n0(k,void 0,void 0,[O],m?fc(m):mt,void 0,1,0)}function ugt(n,a,l){if(a6(n.tagName)){const k=IFe(n),O=Kte(n,k);return xv(CE(n.attributes,zte(O,n),void 0,0),k,n.tagName,n.attributes),Xe(n.typeArguments)&&(dt(n.typeArguments,Ra),_o.add(Q6(qn(n),n.typeArguments,p.Expected_0_type_arguments_but_got_1,0,Xe(n.typeArguments)))),O}const _=ms(n.tagName),m=of(_);if(Gt(m))return wg(n);const h=AFe(_,n);return sz(_,m,h.length,0)?zT(n):h.length===0?(We(n.tagName,p.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Ol(n.tagName)),wg(n)):TE(n,h,a,l,0)}function _gt(n,a,l){const _=ms(n.right);if(!Dt(_)){const m=X1e(_);if(m){const h=of(m);if(Gt(h))return wg(n);const k=ra(h,0),O=ra(h,1);if(sz(m,h,k.length,O.length))return zT(n);if(k.length)return TE(n,k,a,l,0)}else if(!(xne(_)||Sv(_,jt)))return We(n.right,p.The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method),wg(n)}return bt}function fgt(n,a){return a.length&&Pn(a,l=>l.minArgumentCount===0&&!v_(l)&&l.parameters.length1?Sl(n.arguments[1]):void 0;for(let h=2;h{const k=Cp(m);ote(h,k)||rOe(m,h,l,p.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)})}function Sgt(n){const a=ms(n.expression),l=z5(a,n.expression);return vte(Z0(l),n,l!==a)}function xgt(n){return n.flags&64?Sgt(n):Z0(ms(n.expression))}function S9e(n){if(mMe(n),dt(n.typeArguments,Ra),n.kind===233){const l=hy(n.parent);l.kind===226&&l.operatorToken.kind===104&&bb(n,l.right)&&We(n,p.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}const a=n.kind===233?ms(n.expression):Cb(n.exprName)?HJ(n.exprName):ms(n.exprName);return x9e(a,n)}function x9e(n,a){const l=a.typeArguments;if(n===xs||Gt(n)||!Pe(l))return n;let _=!1,m;const h=O(n),k=_?m:n;return k&&_o.add(Q6(qn(a),l,p.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,Hn(k))),h;function O(W){let re=!1,be=!1;const he=qe(W);return _||(_=be),re&&!be&&(m??(m=W)),he;function qe(ht){if(ht.flags&524288){const Pt=Um(ht),on=j(Pt.callSignatures),un=j(Pt.constructSignatures);if(re||(re=Pt.callSignatures.length!==0||Pt.constructSignatures.length!==0),be||(be=on.length!==0||un.length!==0),on!==Pt.callSignatures||un!==Pt.constructSignatures){const or=qo(ro(0,"__instantiationExpression"),Pt.members,on,un,Pt.indexInfos);return or.objectFlags|=8388608,or.node=a,or}}else if(ht.flags&58982400){const Pt=l_(ht);if(Pt){const on=qe(Pt);if(on!==Pt)return on}}else{if(ht.flags&1048576)return kc(ht,O);if(ht.flags&2097152)return Pa(Dc(ht.types,qe))}return ht}}function j(W){const re=vr(W,be=>!!be.typeParameters&&A1e(be,l));return Dc(re,be=>{const he=O1e(be,l,!0);return he?w5(be,he,lr(be.declaration)):be})}}function Tgt(n){return Ra(n.type),B1e(n.expression,n.type)}function B1e(n,a,l){const _=ms(n,l),m=ki(a);if(Gt(m))return m;const h=Vn(a.parent,k=>k.kind===238||k.kind===357);return xv(_,m,h,n,p.Type_0_does_not_satisfy_the_expected_type_1),_}function kgt(n){return bvt(n),n.keywordToken===105?J1e(n):n.keywordToken===102?Cgt(n):w.assertNever(n.keywordToken)}function T9e(n){switch(n.keywordToken){case 102:return i5e();case 105:const a=J1e(n);return Gt(a)?mt:Ugt(a);default:w.assertNever(n.keywordToken)}}function J1e(n){const a=wse(n);if(a)if(a.kind===176){const l=Pr(a.parent);return fr(l)}else{const l=Pr(a);return fr(l)}else return We(n,p.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),mt}function Cgt(n){J===100||J===199?qn(n).impliedNodeFormat!==99&&We(n,p.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):J<6&&J!==4&&We(n,p.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);const a=qn(n);return w.assert(!!(a.flags&8388608),"Containing file is missing import meta node flag."),n.name.escapedText==="meta"?r5e():mt}function oz(n){const a=n.valueDeclaration;return Mf(fr(n),!1,!!a&&(h1(a)||lw(a)))}function z1e(n,a,l="arg"){return n?(w.assert(Je(n.name)),n.name.escapedText):`${l}_${a}`}function c8(n,a,l){const _=n.parameters.length-(v_(n)?1:0);if(a<_)return n.parameters[a].escapedName;const m=n.parameters[_]||ft,h=l||fr(m);if(Ga(h)){const k=h.target.labeledElementDeclarations,O=a-_;return z1e(k==null?void 0:k[O],O,m.escapedName)}return m.escapedName}function Egt(n,a){var l;if(((l=n.declaration)==null?void 0:l.kind)===324)return;const _=n.parameters.length-(v_(n)?1:0);if(a<_){const O=n.parameters[a],j=k9e(O);return j?{parameter:j,parameterName:O.escapedName,isRestParameter:!1}:void 0}const m=n.parameters[_]||ft,h=k9e(m);if(!h)return;const k=fr(m);if(Ga(k)){const O=k.target.labeledElementDeclarations,j=a-_,W=O==null?void 0:O[j],re=!!(W!=null&&W.dotDotDotToken);return W?(w.assert(Je(W.name)),{parameter:W.name,parameterName:W.name.escapedText,isRestParameter:re}):void 0}if(a===_)return{parameter:h,parameterName:m.escapedName,isRestParameter:!0}}function k9e(n){return n.valueDeclaration&&ws(n.valueDeclaration)&&Je(n.valueDeclaration.name)&&n.valueDeclaration.name}function C9e(n){return n.kind===202||ws(n)&&n.name&&Je(n.name)}function Pgt(n,a){const l=n.parameters.length-(v_(n)?1:0);if(a=_-1)return a===_-1?h:u_(op(h,xt));const k=[],O=[],j=[];for(let W=a;W<_;W++)!h||W<_-1?(k.push(Hm(n,W)),O.push(W!(j&1)),O=k<0?h.target.fixedLength:k;O>0&&(m=n.parameters.length-1+O)}}if(m===void 0){if(!l&&n.flags&32)return 0;m=n.minArgumentCount}if(_)return m;for(let h=m-1;h>=0;h--){const k=Hm(n,h);if(Dl(k,KFe).flags&131072)break;m=h}n.resolvedMinArgumentCount=m}return n.resolvedMinArgumentCount}function bh(n){if(v_(n)){const a=fr(n.parameters[n.parameters.length-1]);return!Ga(a)||a.target.hasRestElement}return!1}function Y5(n){if(v_(n)){const a=fr(n.parameters[n.parameters.length-1]);if(!Ga(a))return Dt(a)?vl:a;if(a.target.hasRestElement)return QD(a,a.target.fixedLength)}}function Z5(n){const a=Y5(n);return a&&!bd(a)&&!Dt(a)?a:void 0}function U1e(n){return V1e(n,Wr)}function V1e(n,a){return n.parameters.length>0?Hm(n,0):a}function P9e(n,a,l){const _=n.parameters.length-(v_(n)?1:0);for(let m=0;m<_;m++){const h=n.parameters[m].valueDeclaration,k=zu(h);if(k){const O=Mf(ki(k),!1,lw(h)),j=Hm(a,m);K0(l.inferences,O,j)}}}function wgt(n,a){if(a.typeParameters)if(!n.typeParameters)n.typeParameters=a.typeParameters;else return;if(a.thisParameter){const _=n.thisParameter;(!_||_.valueDeclaration&&!_.valueDeclaration.type)&&(_||(n.thisParameter=FT(a.thisParameter,void 0)),lz(n.thisParameter,fr(a.thisParameter)))}const l=n.parameters.length-(v_(n)?1:0);for(let _=0;_=0);const h=$c(_.parent)?fr(Pr(_.parent.parent)):iMe(_.parent),k=$c(_.parent)?Fe:sMe(_.parent),O=Wm(m),j=Lm("target",h),W=Lm("propertyKey",k),re=Lm("parameterIndex",O);l.decoratorSignature=iO(void 0,void 0,[j,W,re],sr);break}case 174:case 177:case 178:case 172:{const _=a;if(!fi(_.parent))break;const m=iMe(_),h=Lm("target",m),k=sMe(_),O=Lm("propertyKey",k),j=Zs(_)?sr:_5e(c6(_));if(ce!==0&&(!Zs(a)||ig(a))){const re=_5e(c6(_)),be=Lm("descriptor",re);l.decoratorSignature=iO(void 0,void 0,[h,O,be],ti([j,sr]))}else l.decoratorSignature=iO(void 0,void 0,[h,O],ti([j,sr]));break}}return l.decoratorSignature===bt?void 0:l.decoratorSignature}function q1e(n){return ne?zgt(n):Jgt(n)}function uz(n){const a=bJ(!0);return a!==js?(n=Zy(p8(n))||mn,Gy(a,[n])):mn}function A9e(n){const a=c5e(!0);return a!==js?(n=Zy(p8(n))||mn,Gy(a,[n])):mn}function _z(n,a){const l=uz(a);return l===mn?(We(n,gp(n)?p.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:p.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),mt):(U0e(!0)||We(n,gp(n)?p.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:p.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),l)}function Ugt(n){const a=ro(0,"NewTargetExpression"),l=ro(4,"target",8);l.parent=a,l.links.type=n;const _=ha([l]);return a.members=_,qo(a,_,Ke,Ke,Ke)}function nne(n,a){if(!n.body)return mt;const l=lu(n),_=(l&2)!==0,m=(l&1)!==0;let h,k,O,j=sr;if(n.body.kind!==241)h=Sl(n.body,a&&a&-9),_&&(h=p8(rO(h,!1,n,p.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(m){const W=M9e(n,a);W?W.length>0&&(h=ti(W,2)):j=Wr;const{yieldTypes:re,nextTypes:be}=Vgt(n,a);k=Pe(re)?ti(re,2):void 0,O=Pe(be)?Pa(be):void 0}else{const W=M9e(n,a);if(!W)return l&2?_z(n,Wr):Wr;if(W.length===0){const re=Rte(n,void 0),be=re&&(xz(re,l)||sr).flags&32768?Fe:sr;return l&2?_z(n,be):be}h=ti(W,2)}if(h||k||O){if(k&&Tte(n,k,3),h&&Tte(n,h,1),O&&Tte(n,O,2),h&&qm(h)||k&&qm(k)||O&&qm(O)){const W=_1e(n),re=W?W===Vd(n)?m?void 0:h:Bte(To(W),n,void 0):void 0;m?(k=wye(k,re,0,_),h=wye(h,re,1,_),O=wye(O,re,2,_)):h=Wft(h,re,_)}k&&(k=Cp(k)),h&&(h=Cp(h)),O&&(O=Cp(O))}return m?N9e(k||Wr,h||j,O||gFe(2,n)||mn,_):_?uz(h||j):h||j}function N9e(n,a,l,_){const m=_?rc:jl,h=m.getGlobalGeneratorType(!1);if(n=m.resolveIterationType(n,void 0)||mn,a=m.resolveIterationType(a,void 0)||mn,l=m.resolveIterationType(l,void 0)||mn,h===js){const k=m.getGlobalIterableIteratorType(!1),O=k!==js?TLe(k,m):void 0,j=O?O.returnType:U,W=O?O.nextType:Fe;return wa(a,j)&&wa(W,l)?k!==js?A5(k,[n]):(m.getGlobalIterableIteratorType(!0),Ja):(m.getGlobalGeneratorType(!0),Ja)}return A5(h,[n,a,l])}function Vgt(n,a){const l=[],_=[],m=(lu(n)&2)!==0;return hse(n.body,h=>{const k=h.expression?ms(h.expression,a):Ot;Jf(l,I9e(h,k,U,m));let O;if(h.asteriskToken){const j=mne(k,m?19:17,h.expression);O=j&&j.nextType}else O=Tf(h,void 0);O&&Jf(_,O)}),{yieldTypes:l,nextTypes:_}}function I9e(n,a,l,_){const m=n.expression||n,h=n.asteriskToken?Ky(_?19:17,a,l,m):a;return _?WT(h,m,n.asteriskToken?p.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:p.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):h}function O9e(n,a,l){let _=0;for(let m=0;m=a?l[m]:void 0;_|=h!==void 0?qG.get(h)||32768:0}return _}function F9e(n){const a=ei(n);if(a.isExhaustive===void 0){a.isExhaustive=0;const l=Wgt(n);a.isExhaustive===0&&(a.isExhaustive=l)}else a.isExhaustive===0&&(a.isExhaustive=!1);return a.isExhaustive}function Wgt(n){if(n.expression.kind===221){const _=$Oe(n);if(!_)return!1;const m=H0(Sl(n.expression.expression)),h=O9e(0,0,_);return m.flags&3?(556800&h)===556800:!vm(m,k=>r8(k,h)===h)}const a=Sl(n.expression);if(!J5(a))return!1;const l=Dte(n);return!l.length||Pe(l,zft)?!1:jpt(kc(a,q_),l)}function L9e(n){return n.endFlowNode&&WJ(n.endFlowNode)}function M9e(n,a){const l=lu(n),_=[];let m=L9e(n),h=!1;if(gb(n.body,k=>{let O=k.expression;if(O){if(O=Eo(O,!0),l&2&&O.kind===223&&(O=Eo(O.expression,!0)),O.kind===213&&O.expression.kind===80&&Sl(O.expression).symbol===n.symbol){h=!0;return}let j=Sl(O,a&&a&-9);l&2&&(j=p8(rO(j,!1,n,p.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),j.flags&131072&&(h=!0),Jf(_,j)}else m=!0}),!(_.length===0&&!m&&(h||qgt(n))))return X&&_.length&&m&&!(Dg(n)&&_.some(k=>k.symbol===n.symbol))&&Jf(_,Fe),_}function qgt(n){switch(n.kind){case 218:case 219:return!0;case 174:return n.parent.kind===210;default:return!1}}function H1e(n,a){r(l);return;function l(){const _=lu(n),m=a&&xz(a,_);if(m&&(Hc(m,16384)||m.flags&32769)||n.kind===173||nl(n.body)||n.body.kind!==241||!L9e(n))return;const h=n.flags&1024,k=Id(n)||n;if(m&&m.flags&131072)We(k,p.A_function_returning_never_cannot_have_a_reachable_end_point);else if(m&&!h)We(k,p.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(m&&X&&!wa(Fe,m))We(k,p.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(z.noImplicitReturns){if(!m){if(!h)return;const O=To(Vd(n));if(NLe(n,O))return}We(k,p.Not_all_code_paths_return_a_value)}}}function R9e(n,a){if(w.assert(n.kind!==174||tm(n)),o6(n),Xo(n)&&d8(n,n.name),a&&a&4&&yd(n)){if(!Id(n)&&!K9(n)){const _=X5(n);if(_&&Z2(To(_))){const m=ei(n);if(m.contextFreeType)return m.contextFreeType;const h=nne(n,a),k=n0(void 0,void 0,void 0,Ke,h,void 0,0,64),O=qo(n.symbol,G,[k],Ke,Ke);return O.objectFlags|=262144,m.contextFreeType=O}}return rn}return!Ene(n)&&n.kind===218&&wve(n),Hgt(n,a),fr(Pr(n))}function Hgt(n,a){const l=ei(n);if(!(l.flags&64)){const _=X5(n);if(!(l.flags&64)){l.flags|=64;const m=hu(ra(fr(Pr(n)),0));if(!m)return;if(yd(n))if(_){const h=NS(n);let k;if(a&&a&2){P9e(m,_,h);const O=Y5(_);O&&O.flags&262144&&(k=vE(_,h.nonFixingMapper))}k||(k=h?vE(_,h.mapper):_),wgt(m,k)}else Dgt(m);else if(_&&!n.typeParameters&&_.parameters.length>n.parameters.length){const h=NS(n);a&&a&2&&P9e(m,_,h)}if(_&&!fE(n)&&!m.resolvedReturnType){const h=nne(n,a);m.resolvedReturnType||(m.resolvedReturnType=h)}eO(n)}}}function Ggt(n){w.assert(n.kind!==174||tm(n));const a=lu(n),l=fE(n);if(H1e(n,l),n.body)if(Id(n)||To(Vd(n)),n.body.kind===241)Ra(n.body);else{const _=ms(n.body),m=l&&xz(l,a);if(m){const h=Yte(n.body);if((a&3)===2){const k=rO(_,!1,h,p.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);xv(k,m,h,h)}else xv(_,m,h,h)}}}function rne(n,a,l,_=!1){if(!wa(a,hl)){const m=_&&f8(a);return w2(n,!!m&&wa(m,hl),l),!1}return!0}function $gt(n){if(!ma(n)||!ox(n))return!1;const a=Sl(n.arguments[2]);if(He(a,"value")){const m=Ea(a,"writable"),h=m&&fr(m);if(!h||h===tn||h===Sn)return!0;if(m&&m.valueDeclaration&&Ml(m.valueDeclaration)){const k=m.valueDeclaration.initializer,O=ms(k);if(O===tn||O===Sn)return!0}return!1}return!Ea(a,"set")}function Gm(n){return!!(Uc(n)&8||n.flags&4&&nd(n)&8||n.flags&3&&y1e(n)&6||n.flags&98304&&!(n.flags&65536)||n.flags&8||Pe(n.declarations,$gt))}function j9e(n,a,l){var _,m;if(l===0)return!1;if(Gm(a)){if(a.flags&4&&$o(n)&&n.expression.kind===110){const h=hp(n);if(!(h&&(h.kind===176||Dg(h))))return!0;if(a.valueDeclaration){const k=mr(a.valueDeclaration),O=h.parent===a.valueDeclaration.parent,j=h===a.valueDeclaration.parent,W=k&&((_=a.parent)==null?void 0:_.valueDeclaration)===h.parent,re=k&&((m=a.parent)==null?void 0:m.valueDeclaration)===h;return!(O||j||W||re)}}return!0}if($o(n)){const h=Eo(n.expression);if(h.kind===80){const k=ei(h).resolvedSymbol;if(k.flags&2097152){const O=pm(k);return!!O&&O.kind===274}}}return!1}function K5(n,a,l){const _=gl(n,7);return _.kind!==80&&!$o(_)?(We(n,a),!1):_.flags&64?(We(n,l),!1):!0}function Xgt(n){ms(n.expression);const a=Eo(n.expression);if(!$o(a))return We(a,p.The_operand_of_a_delete_operator_must_be_a_property_reference),Li;Jr(a)&&Qi(a.name)&&We(a,p.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);const l=ei(a),_=Gp(l.resolvedSymbol);return _&&(Gm(_)?We(a,p.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):Qgt(a,_)),Li}function Qgt(n,a){const l=fr(a);X&&!(l.flags&131075)&&!(Ee?a.flags&16777216:qd(l,16777216))&&We(n,p.The_operand_of_a_delete_operator_must_be_optional)}function Ygt(n){return ms(n.expression),V3}function Zgt(n){return o6(n),Ot}function B9e(n){let a=!1;const l=QF(n);if(l&&Vc(l)){const _=I1(n)?p.await_expression_cannot_be_used_inside_a_class_static_block:p.await_using_statements_cannot_be_used_inside_a_class_static_block;We(n,_),a=!0}else if(!(n.flags&65536))if(ZF(n)){const _=qn(n);if(!LS(_)){let m;if(!yk(_,z)){m??(m=Hg(_,n.pos));const h=I1(n)?p.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:p.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module,k=bu(_,m.start,m.length,h);_o.add(k),a=!0}switch(J){case 100:case 199:if(_.impliedNodeFormat===1){m??(m=Hg(_,n.pos)),_o.add(bu(_,m.start,m.length,p.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)),a=!0;break}case 7:case 99:case 200:case 4:if(ce>=4)break;default:m??(m=Hg(_,n.pos));const h=I1(n)?p.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:p.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher;_o.add(bu(_,m.start,m.length,h)),a=!0;break}}}else{const _=qn(n);if(!LS(_)){const m=Hg(_,n.pos),h=I1(n)?p.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:p.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,k=bu(_,m.start,m.length,h);if(l&&l.kind!==176&&!(lu(l)&2)){const O=Rr(l,p.Did_you_mean_to_mark_this_function_as_async);Ua(k,O)}_o.add(k),a=!0}}return I1(n)&&a1e(n)&&(We(n,p.await_expressions_cannot_be_used_in_a_parameter_initializer),a=!0),a}function Kgt(n){r(()=>B9e(n));const a=ms(n.expression),l=rO(a,!0,n,p.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return l===a&&!Gt(l)&&!(a.flags&3)&&Fm(!1,Rr(n,p.await_has_no_effect_on_the_type_of_this_expression)),l}function eht(n){const a=ms(n.operand);if(a===xs)return xs;switch(n.operand.kind){case 9:switch(n.operator){case 41:return i6(Wm(-n.operand.text));case 40:return i6(Wm(+n.operand.text))}break;case 10:if(n.operator===41)return i6(tte({negative:!0,base10Value:rw(n.operand.text)}))}switch(n.operator){case 40:case 41:case 55:return Pg(a,n.operand),fz(a,12288)&&We(n.operand,p.The_0_operator_cannot_be_applied_to_type_symbol,ba(n.operator)),n.operator===40?(fz(a,2112)&&We(n.operand,p.Operator_0_cannot_be_applied_to_type_1,ba(n.operator),Hn(Y0(a))),xt):G1e(a);case 54:lve(a,n.operand);const l=r8(a,12582912);return l===4194304?tn:l===8388608?Un:Li;case 46:case 47:return rne(n.operand,Pg(a,n.operand),p.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&K5(n.operand,p.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,p.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),G1e(a)}return mt}function tht(n){const a=ms(n.operand);return a===xs?xs:(rne(n.operand,Pg(a,n.operand),p.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&K5(n.operand,p.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,p.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),G1e(a))}function G1e(n){return Hc(n,2112)?$u(n,3)||Hc(n,296)?hl:Ft:xt}function fz(n,a){if(Hc(n,a))return!0;const l=H0(n);return!!l&&Hc(l,a)}function Hc(n,a){if(n.flags&a)return!0;if(n.flags&3145728){const l=n.types;for(const _ of l)if(Hc(_,a))return!0}return!1}function $u(n,a,l){return n.flags&a?!0:l&&n.flags&114691?!1:!!(a&296)&&wa(n,xt)||!!(a&2112)&&wa(n,Ft)||!!(a&402653316)&&wa(n,Ie)||!!(a&528)&&wa(n,Li)||!!(a&16384)&&wa(n,sr)||!!(a&131072)&&wa(n,Wr)||!!(a&65536)&&wa(n,de)||!!(a&32768)&&wa(n,Fe)||!!(a&4096)&&wa(n,wi)||!!(a&67108864)&&wa(n,$r)}function pz(n,a,l){return n.flags&1048576?Pn(n.types,_=>pz(_,a,l)):$u(n,a,l)}function ine(n){return!!(Br(n)&16)&&!!n.symbol&&$1e(n.symbol)}function $1e(n){return(n.flags&128)!==0}function X1e(n){const a=CLe("hasInstance"),l=W2(n,a);if(l){const _=fr(l);if(_&&ra(_,0).length!==0)return _}}function nht(n,a,l,_,m){if(l===xs||_===xs)return xs;!Dt(l)&&pz(l,402784252)&&We(n,p.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),w.assert(w9(n.parent));const h=kE(n.parent,void 0,m);if(h===Tr)return xs;const k=To(h);return C_(k,Li,a,p.An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression),Li}function rht(n){return vm(n,a=>a===qc||!!(a.flags&2097152)&&vh(H0(a)))}function iht(n,a,l,_){if(l===xs||_===xs)return xs;if(Qi(n)){if(ce<99&&Xl(n,2097152),!ei(n).resolvedSymbol&&Du(n)){const m=k1e(n,_.symbol,!0);qFe(n,_,m)}}else C_(Pg(l,n),Dn,n);return C_(Pg(_,a),$r,a)&&rht(_)&&We(a,p.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,Hn(_)),Li}function sht(n,a,l){const _=n.properties;if(X&&_.length===0)return Pg(a,n);for(let m=0;m<_.length;m++)J9e(n,a,m,_,l);return a}function J9e(n,a,l,_,m=!1){const h=n.properties,k=h[l];if(k.kind===303||k.kind===304){const O=k.name,j=Xy(O);if(Od(j)){const be=Fd(j),he=Ea(a,be);he&&(tz(he,k,m),b1e(k,!1,!0,a,he))}const W=op(a,j,32,O),re=Ki(k,W);return VT(k.kind===304?k:k.initializer,re)}else if(k.kind===305)if(lQD(W,l)):u_(_);return VT(O,j,m)}}}}function VT(n,a,l,_){let m;if(n.kind===304){const h=n;h.objectAssignmentInitializer&&(X&&!qd(ms(h.objectAssignmentInitializer),16777216)&&(a=Hd(a,524288)),uht(h.name,h.equalsToken,h.objectAssignmentInitializer,l)),m=n.name}else m=n;return m.kind===226&&m.operatorToken.kind===64&&(Ae(m,l),m=m.left,X&&(a=Hd(a,524288))),m.kind===210?sht(m,a,_):m.kind===209?aht(m,a,l):oht(m,a,l)}function oht(n,a,l){const _=ms(n,l),m=n.parent.kind===305?p.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:p.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,h=n.parent.kind===305?p.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:p.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return K5(n,m,h)&&xv(a,_,n,n),z6(n)&&Xl(n.parent,1048576),a}function dz(n){switch(n=Eo(n),n.kind){case 80:case 11:case 14:case 215:case 228:case 15:case 9:case 10:case 112:case 97:case 106:case 157:case 218:case 231:case 219:case 209:case 210:case 221:case 235:case 285:case 284:return!0;case 227:return dz(n.whenTrue)&&dz(n.whenFalse);case 226:return vy(n.operatorToken.kind)?!1:dz(n.left)&&dz(n.right);case 224:case 225:switch(n.operator){case 54:case 40:case 41:case 55:return!0}return!1;case 222:case 216:case 234:default:return!1}}function Q1e(n,a){return(a.flags&98304)!==0||ote(n,a)}function cht(){const n=dM(a,l,_,m,h,k);return(he,qe)=>{const ht=n(he,qe);return w.assertIsDefined(ht),ht};function a(he,qe,ht){return qe?(qe.stackIndex++,qe.skip=!1,W(qe,void 0),be(qe,void 0)):qe={checkMode:ht,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},lr(he)&&vk(he)?(qe.skip=!0,be(qe,ms(he.right,ht)),qe):(lht(he),he.operatorToken.kind===64&&(he.left.kind===210||he.left.kind===209)&&(qe.skip=!0,be(qe,VT(he.left,ms(he.right,ht),ht,he.right.kind===110))),qe)}function l(he,qe,ht){if(!qe.skip)return O(qe,he)}function _(he,qe,ht){if(!qe.skip){const Pt=re(qe);w.assertIsDefined(Pt),W(qe,Pt),be(qe,void 0);const on=he.kind;if(_N(on)){let un=ht.parent;for(;un.kind===217||fN(un);)un=un.parent;(on===56||Tx(un))&&cve(ht.left,Pt,Tx(un)?un.thenStatement:void 0),lve(Pt,ht.left)}}}function m(he,qe,ht){if(!qe.skip)return O(qe,he)}function h(he,qe){let ht;if(qe.skip)ht=re(qe);else{const Pt=j(qe);w.assertIsDefined(Pt);const on=re(qe);w.assertIsDefined(on),ht=U9e(he.left,he.operatorToken,he.right,Pt,on,qe.checkMode,he)}return qe.skip=!1,W(qe,void 0),be(qe,void 0),qe.stackIndex--,ht}function k(he,qe,ht){return be(he,qe),he}function O(he,qe){if(mr(qe))return qe;be(he,ms(qe,he.checkMode))}function j(he){return he.typeStack[he.stackIndex]}function W(he,qe){he.typeStack[he.stackIndex]=qe}function re(he){return he.typeStack[he.stackIndex+1]}function be(he,qe){he.typeStack[he.stackIndex+1]=qe}}function lht(n){const{left:a,operatorToken:l,right:_}=n;l.kind===61&&(mr(a)&&(a.operatorToken.kind===57||a.operatorToken.kind===56)&&xn(a,p._0_and_1_operations_cannot_be_mixed_without_parentheses,ba(a.operatorToken.kind),ba(l.kind)),mr(_)&&(_.operatorToken.kind===57||_.operatorToken.kind===56)&&xn(_,p._0_and_1_operations_cannot_be_mixed_without_parentheses,ba(_.operatorToken.kind),ba(l.kind)))}function uht(n,a,l,_,m){const h=a.kind;if(h===64&&(n.kind===210||n.kind===209))return VT(n,ms(l,_),_,l.kind===110);let k;_N(h)?k=m8(n,_):k=ms(n,_);const O=ms(l,_);return U9e(n,a,l,k,O,_,m)}function U9e(n,a,l,_,m,h,k){const O=a.kind;switch(O){case 42:case 43:case 67:case 68:case 44:case 69:case 45:case 70:case 41:case 66:case 48:case 71:case 49:case 72:case 50:case 73:case 52:case 75:case 53:case 79:case 51:case 74:if(_===xs||m===xs)return xs;_=Pg(_,n),m=Pg(m,l);let ln;if(_.flags&528&&m.flags&528&&(ln=he(a.kind))!==void 0)return We(k||a,p.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,ba(a.kind),ba(ln)),xt;{const nr=rne(n,_,p.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),$n=rne(l,m,p.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);let rr;if($u(_,3)&&$u(m,3)||!(Hc(_,2112)||Hc(m,2112)))rr=xt;else if(j(_,m)){switch(O){case 50:case 73:on();break;case 43:case 68:ce<3&&We(k,p.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}rr=Ft}else on(j),rr=mt;return nr&&$n&&qe(rr),rr}case 40:case 65:if(_===xs||m===xs)return xs;!$u(_,402653316)&&!$u(m,402653316)&&(_=Pg(_,n),m=Pg(m,l));let Jn;return $u(_,296,!0)&&$u(m,296,!0)?Jn=xt:$u(_,2112,!0)&&$u(m,2112,!0)?Jn=Ft:$u(_,402653316,!0)||$u(m,402653316,!0)?Jn=Ie:(Dt(_)||Dt(m))&&(Jn=Gt(_)||Gt(m)?mt:U),Jn&&!be(O)?Jn:Jn?(O===65&&qe(Jn),Jn):(on(($n,rr)=>$u($n,402655727)&&$u(rr,402655727)),U);case 30:case 32:case 33:case 34:return be(O)&&(_=Eye(Pg(_,n)),m=Eye(Pg(m,l)),Pt((nr,$n)=>{if(Dt(nr)||Dt($n))return!0;const rr=wa(nr,hl),Ns=wa($n,hl);return rr&&Ns||!rr&&!Ns&&DJ(nr,$n)})),Li;case 35:case 36:case 37:case 38:if(!(h&&h&64)){if((YV(n)||YV(l))&&(!lr(n)||O===37||O===38)){const nr=O===35||O===37;We(k,p.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,nr?"false":"true")}or(k,O,n,l),Pt((nr,$n)=>Q1e(nr,$n)||Q1e($n,nr))}return Li;case 104:return nht(n,l,_,m,h);case 103:return iht(n,l,_,m);case 56:case 77:{const nr=qd(_,4194304)?ti([Gft(X?_:Y0(m)),m]):_;return O===77&&qe(m),nr}case 57:case 76:{const nr=qd(_,8388608)?ti([Z0(SOe(_)),m],2):_;return O===76&&qe(m),nr}case 61:case 78:{const nr=qd(_,262144)?ti([Z0(_),m],2):_;return O===78&&qe(m),nr}case 64:const Bn=mr(n.parent)?rl(n.parent):0;return W(Bn,m),ht(Bn)?((!(m.flags&524288)||Bn!==2&&Bn!==6&&!Q0(m)&&!Gye(m)&&!(Br(m)&1))&&qe(m),_):(qe(m),m);case 28:if(!z.allowUnreachableCode&&dz(n)&&!re(n.parent)){const nr=qn(n),$n=nr.text,rr=za($n,n.pos);nr.parseDiagnostics.some(Es=>Es.code!==p.JSX_expressions_must_have_one_parent_element.code?!1:BV(Es,rr))||We(n,p.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return m;default:return w.fail()}function j(ln,Jn){return $u(ln,2112)&&$u(Jn,2112)}function W(ln,Jn){if(ln===2)for(const Bn of mv(Jn)){const nr=fr(Bn);if(nr.symbol&&nr.symbol.flags&32){const $n=Bn.escapedName,rr=Lc(Bn.valueDeclaration,$n,788968,void 0,$n,!1);rr!=null&&rr.declarations&&rr.declarations.some(Dx)&&(zd(rr,p.Duplicate_identifier_0,Hi($n),Bn),zd(Bn,p.Duplicate_identifier_0,Hi($n),rr))}}}function re(ln){return ln.parent.kind===217&&Hf(ln.left)&&ln.left.text==="0"&&(ma(ln.parent.parent)&&ln.parent.parent.expression===ln.parent||ln.parent.parent.kind===215)&&($o(ln.right)||Je(ln.right)&&ln.right.escapedText==="eval")}function be(ln){const Jn=fz(_,12288)?n:fz(m,12288)?l:void 0;return Jn?(We(Jn,p.The_0_operator_cannot_be_applied_to_type_symbol,ba(ln)),!1):!0}function he(ln){switch(ln){case 52:case 75:return 57;case 53:case 79:return 38;case 51:case 74:return 56;default:return}}function qe(ln){vy(O)&&r(Jn);function Jn(){let Bn=_;if(Vw(a.kind)&&n.kind===211&&(Bn=Wte(n,void 0,!0)),K5(n,p.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,p.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let nr;if(Ee&&Jr(n)&&Hc(ln,32768)){const $n=He(Xu(n.expression),n.name.escapedText);lte(ln,$n)&&(nr=p.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}xv(ln,Bn,n,l,nr)}}}function ht(ln){var Jn;switch(ln){case 2:return!0;case 1:case 5:case 6:case 3:case 4:const Bn=Hp(n),nr=vk(l);return!!nr&&Va(nr)&&!!((Jn=Bn==null?void 0:Bn.exports)!=null&&Jn.size);default:return!1}}function Pt(ln){return ln(_,m)?!1:(on(ln),!0)}function on(ln){let Jn=!1;const Bn=k||a;if(ln){const Es=Zy(_),Ws=Zy(m);Jn=!(Es===_&&Ws===m)&&!!(Es&&Ws)&&ln(Es,Ws)}let nr=_,$n=m;!Jn&&ln&&([nr,$n]=_ht(_,m,ln));const[rr,Ns]=QC(nr,$n);un(Bn,Jn,rr,Ns)||w2(Bn,Jn,p.Operator_0_cannot_be_applied_to_types_1_and_2,ba(a.kind),rr,Ns)}function un(ln,Jn,Bn,nr){switch(a.kind){case 37:case 35:case 38:case 36:return w2(ln,Jn,p.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,Bn,nr);default:return}}function or(ln,Jn,Bn,nr){const $n=Rn(Eo(Bn)),rr=Rn(Eo(nr));if($n||rr){const Ns=We(ln,p.This_condition_will_always_return_0,ba(Jn===37||Jn===35?97:112));if($n&&rr)return;const Es=Jn===38||Jn===36?ba(54):"",Ws=$n?nr:Bn,gs=Eo(Ws);Ua(Ns,Rr(Ws,p.Did_you_mean_0,`${Es}Number.isNaN(${il(gs)?Vf(gs):"..."})`))}}function Rn(ln){if(Je(ln)&&ln.escapedText==="NaN"){const Jn=Kut();return!!Jn&&Jn===ym(ln)}return!1}}function _ht(n,a,l){let _=n,m=a;const h=Y0(n),k=Y0(a);return l(h,k)||(_=h,m=k),[_,m]}function fht(n){r(he);const a=hp(n);if(!a)return U;const l=lu(a);if(!(l&1))return U;const _=(l&2)!==0;n.asteriskToken&&(_&&ce<99&&Xl(n,26624),!_&&ce<2&&z.downlevelIteration&&Xl(n,256));let m=fE(a);m&&m.flags&1048576&&(m=Dl(m,qe=>K1e(qe,l,void 0)));const h=m&&ALe(m,_),k=h&&h.yieldType||U,O=h&&h.nextType||U,j=_?WT(O)||U:O,W=n.expression?ms(n.expression):Ot,re=I9e(n,W,j,_);if(m&&re&&xv(re,k,n.expression||n,n.expression),n.asteriskToken)return _ve(_?19:17,1,W,n.expression)||U;if(m)return FS(2,m,_)||U;let be=gFe(2,a);return be||(be=U,r(()=>{if(fe&&!Gae(n)){const qe=Tf(n,void 0);(!qe||Dt(qe))&&We(n,p.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),be;function he(){n.flags&16384||ju(n,p.A_yield_expression_is_only_allowed_in_a_generator_body),a1e(n)&&We(n,p.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function pht(n,a){const l=m8(n.condition,a);cve(n.condition,l,n.whenTrue);const _=ms(n.whenTrue,a),m=ms(n.whenFalse,a);return ti([_,m],2)}function V9e(n){const a=n.parent;return df(a)&&V9e(a)||uc(a)&&a.argumentExpression===n}function dht(n){const a=[n.head.text],l=[];for(const m of n.templateSpans){const h=ms(m.expression);fz(h,12288)&&We(m.expression,p.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),a.push(m.literal.text),l.push(wa(h,Rs)?h:Ie)}if(u8(n)||V9e(n)||vm(Tf(n,void 0)||mn,mht))return wT(a,l);const _=n.parent.kind!==215&&qLe(n);return _?i6(xf(_)):Ie}function mht(n){return!!(n.flags&134217856||n.flags&58982400&&Hc(l_(n)||mn,402653316))}function ght(n){return Bb(n)&&!Ex(n.parent)?n.parent.parent:n}function CE(n,a,l,_){const m=ght(n);$J(m,a,!1),Mdt(m,l);const h=ms(n,_|1|(l?2:0));l&&l.intraExpressionInferenceSites&&(l.intraExpressionInferenceSites=void 0);const k=Hc(h,2944)&&ane(h,Bte(a,n,void 0))?q_(h):h;return Rdt(),$5(),k}function Sl(n,a){if(a)return ms(n,a);const l=ei(n);if(!l.resolvedType){const _=yg,m=bn;yg=Wp,bn=void 0,l.resolvedType=ms(n,a),bn=m,yg=_}return l.resolvedType}function W9e(n){return n=Eo(n,!0),n.kind===216||n.kind===234||U4(n)}function l8(n,a,l){const _=zA(n);if(lr(n)){const h=nL(n);if(h)return B1e(_,h,a)}const m=Z1e(_)||(l?CE(_,l,void 0,a||0):Sl(_,a));return ws(n)&&n.name.kind===207&&Ga(m)&&!m.target.hasRestElement&&$y(m)ane(n,_))}if(a.flags&58982400){const l=l_(a)||mn;return Hc(l,4)&&Hc(n,128)||Hc(l,8)&&Hc(n,256)||Hc(l,64)&&Hc(n,2048)||Hc(l,4096)&&Hc(n,8192)||ane(n,l)}return!!(a.flags&406847616&&Hc(n,128)||a.flags&256&&Hc(n,256)||a.flags&2048&&Hc(n,2048)||a.flags&512&&Hc(n,512)||a.flags&8192&&Hc(n,8192))}return!1}function u8(n){const a=n.parent;return KS(a)&&p0(a.type)||U4(a)&&p0(uM(a))||j1e(n)&&CT(Tf(n,0))||(df(a)||B_(a)||Pm(a))&&u8(a)||(Ml(a)||Af(a)||Tw(a))&&u8(a.parent)}function _8(n,a,l){const _=ms(n,a,l);return u8(n)||bse(n)?q_(_):W9e(n)?_:Pye(_,Bte(Tf(n,void 0),n,void 0))}function q9e(n,a){return n.name.kind===167&&i0(n.name),_8(n.initializer,a)}function H9e(n,a){yMe(n),n.name.kind===167&&i0(n.name);const l=R9e(n,a);return G9e(n,l,a)}function G9e(n,a,l){if(l&&l&10){const _=Q5(a,0,!0),m=Q5(a,1,!0),h=_||m;if(h&&h.typeParameters){const k=tb(n,2);if(k){const O=Q5(Z0(k),_?0:1,!1);if(O&&!O.typeParameters){if(l&8)return $9e(n,l),rn;const j=NS(n),W=j.signature&&To(j.signature),re=W&&t9e(W);if(re&&!re.typeParameters&&!Pn(j.inferences,EE)){const be=Sht(j,h.typeParameters),he=D0e(h,be),qe=Kt(j.inferences,ht=>Fye(ht.typeParameter));if(Aye(he,O,(ht,Pt)=>{K0(qe,ht,Pt,0,!0)}),Pe(qe,EE)&&(Nye(he,O,(ht,Pt)=>{K0(qe,ht,Pt)}),!vht(j.inferences,qe)))return bht(j.inferences,qe),j.inferredTypeParameters=zn(j.inferredTypeParameters,be),PT(he)}return PT(n9e(h,O,j))}}}}return a}function $9e(n,a){if(a&2){const l=NS(n);l.flags|=4}}function EE(n){return!!(n.candidates||n.contraCandidates)}function yht(n){return!!(n.candidates||n.contraCandidates||IIe(n.typeParameter))}function vht(n,a){for(let l=0;ll.symbol.escapedName===a)}function xht(n,a){let l=a.length;for(;l>1&&a.charCodeAt(l-1)>=48&&a.charCodeAt(l-1)<=57;)l--;const _=a.slice(0,l);for(let m=1;;m++){const h=_+m;if(!Y1e(n,h))return h}}function X9e(n){const a=UT(n);if(a&&!a.typeParameters)return To(a)}function Tht(n){const a=ms(n.expression),l=z5(a,n.expression),_=X9e(a);return _&&vte(_,n,l!==a)}function Xu(n){const a=Z1e(n);if(a)return a;if(n.flags&268435456&&bn){const m=bn[ho(n)];if(m)return m}const l=Ze,_=ms(n,64);if(Ze!==l){const m=bn||(bn=[]);m[ho(n)]=_,Hae(n,n.flags|268435456)}return _}function Z1e(n){let a=Eo(n,!0);if(U4(a)){const l=uM(a);if(!p0(l))return ki(l)}if(a=Eo(n),I1(a)){const l=Z1e(a.expression);return l?WT(l):void 0}if(ma(a)&&a.expression.kind!==108&&!Q_(a,!0)&&!m9e(a))return XS(a)?Tht(a):X9e(xE(a.expression));if(KS(a)&&!p0(a.type))return ki(a.type);if(_b(n)||vP(n))return ms(n)}function mz(n){const a=ei(n);if(a.contextFreeType)return a.contextFreeType;$J(n,U,!1);const l=a.contextFreeType=ms(n,4);return $5(),l}function ms(n,a,l){var _,m;(_=cr)==null||_.push(cr.Phase.Check,"checkExpression",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});const h=D;D=n,T=0;const k=Eht(n,a,l),O=G9e(n,k,a);return ine(O)&&kht(n,O),D=h,(m=cr)==null||m.pop(),O}function kht(n,a){n.parent.kind===211&&n.parent.expression===n||n.parent.kind===212&&n.parent.expression===n||(n.kind===80||n.kind===166)&&bne(n)||n.parent.kind===186&&n.parent.exprName===n||n.parent.kind===281||We(n,p.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query),Ld(z)&&(w.assert(!!(a.symbol.flags&128)),a.symbol.valueDeclaration.flags&33554432&&!r2(n)&&We(n,p.Cannot_access_ambient_const_enums_when_0_is_enabled,$e))}function Cht(n,a){if(dp(n)){if(Jq(n))return B1e(n.expression,zq(n),a);if(U4(n))return v9e(n,a)}return ms(n.expression,a)}function Eht(n,a,l){const _=n.kind;if(i)switch(_){case 231:case 218:case 219:i.throwIfCancellationRequested()}switch(_){case 80:return sdt(n,a);case 81:return Tmt(n);case 110:return HJ(n);case 108:return i1e(n);case 106:return Be;case 15:case 11:return Bye(n)?Ge:i6(xf(n.text));case 9:return Ive(n),i6(Wm(+n.text));case 10:return wvt(n),i6(tte({negative:!1,base10Value:rw(n.text)}));case 112:return Un;case 97:return tn;case 228:return dht(n);case 14:return Fc;case 209:return kFe(n,a,l);case 210:return tmt(n,a);case 211:return Wte(n,a);case 166:return JFe(n,a);case 212:return Bmt(n,a);case 213:if(n.expression.kind===102)return hgt(n);case 214:return ggt(n,a);case 215:return ygt(n);case 217:return Cht(n,a);case 231:return pyt(n);case 218:case 219:return R9e(n,a);case 221:return Ygt(n);case 216:case 234:return vgt(n,a);case 235:return xgt(n);case 233:return S9e(n);case 238:return Tgt(n);case 236:return kgt(n);case 220:return Xgt(n);case 222:return Zgt(n);case 223:return Kgt(n);case 224:return eht(n);case 225:return tht(n);case 226:return Ae(n,a);case 227:return pht(n,a);case 230:return Xdt(n,a);case 232:return Ot;case 229:return fht(n);case 237:return Qdt(n);case 294:return gmt(n,a);case 284:return smt(n);case 285:return rmt(n);case 288:return amt(n);case 292:return cmt(n,a);case 286:w.fail("Shouldn't ever directly check a JsxOpeningElement")}return mt}function Q9e(n){a0(n),n.expression&&ju(n.expression,p.Type_expected),Ra(n.constraint),Ra(n.default);const a=xT(Pr(n));l_(a),aut(a)||We(n.default,p.Type_parameter_0_has_a_circular_default,Hn(a));const l=af(a),_=ET(a);l&&_&&C_(_,kp(_s(l,PS(a,_)),_),n.default,p.Type_0_does_not_satisfy_the_constraint_1),o6(n),r(()=>g8(n.name,p.Type_parameter_name_cannot_be_0))}function Pht(n){var a,l;if(J_(n.parent)||fi(n.parent)||im(n.parent)){const _=xT(Pr(n)),m=xye(_)&24576;if(m){const h=Pr(n.parent);if(im(n.parent)&&!(Br(fc(h))&52))We(n,p.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(m===8192||m===16384){(a=cr)==null||a.push(cr.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:W_(fc(h)),id:W_(_)});const k=IJ(h,_,m===16384?ee:_e),O=IJ(h,_,m===16384?_e:ee),j=_;M=_,C_(k,O,n,p.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),M=j,(l=cr)==null||l.pop()}}}}function Y9e(n){a0(n),bz(n);const a=hp(n);Kr(n,31)&&(a.kind===176&&Ed(a.body)||We(n,p.A_parameter_property_is_only_allowed_in_a_constructor_implementation),a.kind===176&&Je(n.name)&&n.name.escapedText==="constructor"&&We(n.name,p.constructor_cannot_be_used_as_a_parameter_property_name)),!n.initializer&&lw(n)&&ca(n.name)&&a.body&&We(n,p.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),n.name&&Je(n.name)&&(n.name.escapedText==="this"||n.name.escapedText==="new")&&(a.parameters.indexOf(n)!==0&&We(n,p.A_0_parameter_must_be_the_first_parameter,n.name.escapedText),(a.kind===176||a.kind===180||a.kind===185)&&We(n,p.A_constructor_cannot_have_a_this_parameter),a.kind===219&&We(n,p.An_arrow_function_cannot_have_a_this_parameter),(a.kind===177||a.kind===178)&&We(n,p.get_and_set_accessors_cannot_declare_this_parameters)),n.dotDotDotToken&&!ca(n.name)&&!wa(Vm(fr(n.symbol)),Up)&&We(n,p.A_rest_parameter_must_be_of_an_array_type)}function wht(n){const a=Dht(n);if(!a){We(n,p.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}const l=Vd(a),_=hd(l);if(!_)return;Ra(n.type);const{parameterName:m}=n;if(_.kind===0||_.kind===2)nte(m);else if(_.parameterIndex>=0){if(v_(l)&&_.parameterIndex===l.parameters.length-1)We(m,p.A_type_predicate_cannot_reference_a_rest_parameter);else if(_.type){const h=()=>Hs(void 0,p.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);C_(_.type,fr(l.parameters[_.parameterIndex]),n.type,void 0,h)}}else if(m){let h=!1;for(const{name:k}of a.parameters)if(ca(k)&&Z9e(k,m,_.parameterName)){h=!0;break}h||We(n.parameterName,p.Cannot_find_parameter_0,_.parameterName)}}function Dht(n){switch(n.parent.kind){case 219:case 179:case 262:case 218:case 184:case 174:case 173:const a=n.parent;if(n===a.type)return a}}function Z9e(n,a,l){for(const _ of n.elements){if(uu(_))continue;const m=_.name;if(m.kind===80&&m.escapedText===l)return We(a,p.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,l),!0;if((m.kind===207||m.kind===206)&&Z9e(m,a,l))return!0}}function eO(n){n.kind===181?nvt(n):(n.kind===184||n.kind===262||n.kind===185||n.kind===179||n.kind===176||n.kind===180)&&Ene(n);const a=lu(n);a&4||((a&3)===3&&ce<99&&Xl(n,6144),(a&3)===2&&ce<4&&Xl(n,64),a&3&&ce<2&&Xl(n,128)),Tz(f1(n)),uyt(n),dt(n.parameters,Y9e),n.type&&Ra(n.type),r(l);function l(){P0t(n);let _=Id(n),m=_;if(lr(n)){const h=qv(n);if(h&&h.typeExpression&&id(h.typeExpression.type)){const k=UT(ki(h.typeExpression));k&&k.declaration&&(_=Id(k.declaration),m=h.typeExpression.type)}}if(fe&&!_)switch(n.kind){case 180:We(n,p.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 179:We(n,p.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(_&&m){const h=lu(n);if((h&5)===1){const k=ki(_);k===sr?We(m,p.A_generator_cannot_have_a_void_type_annotation):K1e(k,h,m)}else(h&3)===2&&a0t(n,_,m)}n.kind!==181&&n.kind!==324&&Pv(n)}}function K1e(n,a,l){const _=FS(0,n,(a&2)!==0)||U,m=FS(1,n,(a&2)!==0)||_,h=FS(2,n,(a&2)!==0)||mn,k=N9e(_,m,h,!!(a&2));return C_(k,n,l)}function Aht(n){const a=new Map,l=new Map,_=new Map;for(const h of n.members)if(h.kind===176)for(const k of h.parameters)Uf(k,h)&&!ca(k.name)&&m(a,k.name,k.name.escapedText,3);else{const k=da(h),O=h.name;if(!O)continue;const j=Qi(O),W=j&&k?16:0,re=j?_:k?l:a,be=O&&Ove(O);if(be)switch(h.kind){case 177:m(re,O,be,1|W);break;case 178:m(re,O,be,2|W);break;case 172:m(re,O,be,3|W);break;case 174:m(re,O,be,8|W);break}}function m(h,k,O,j){const W=h.get(O);if(W)if((W&16)!==(j&16))We(k,p.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,Ol(k));else{const re=!!(W&8),be=!!(j&8);re||be?re!==be&&We(k,p.Duplicate_identifier_0,Ol(k)):W&j&-17?We(k,p.Duplicate_identifier_0,Ol(k)):h.set(O,W|j)}else h.set(O,j)}}function Nht(n){for(const a of n.members){const l=a.name;if(da(a)&&l){const m=Ove(l);switch(m){case"name":case"length":case"caller":case"arguments":if(ge)break;case"prototype":const h=p.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,k=j2(Pr(n));We(l,h,m,k);break}}}}function K9e(n){const a=new Map;for(const l of n.members)if(l.kind===171){let _;const m=l.name;switch(m.kind){case 11:case 9:_=m.text;break;case 80:_=kr(m);break;default:continue}a.get(_)?(We(Ms(l.symbol.valueDeclaration),p.Duplicate_identifier_0,_),We(l.name,p.Duplicate_identifier_0,_)):a.set(_,!0)}}function eve(n){if(n.kind===264){const l=Pr(n);if(l.declarations&&l.declarations.length>0&&l.declarations[0]!==n)return}const a=A0e(Pr(n));if(a!=null&&a.declarations){const l=new Map;for(const _ of a.declarations)_.parameters.length===1&&_.parameters[0].type&&jT(ki(_.parameters[0].type),m=>{const h=l.get(W_(m));h?h.declarations.push(_):l.set(W_(m),{type:m,declarations:[_]})});l.forEach(_=>{if(_.declarations.length>1)for(const m of _.declarations)We(m,p.Duplicate_index_signature_for_type_0,Hn(_.type))})}}function eLe(n){!a0(n)&&!kvt(n)&&Pne(n.name),bz(n),tve(n),Kr(n,64)&&n.kind===172&&n.initializer&&We(n,p.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,Bo(n.name))}function Iht(n){return Qi(n.name)&&We(n,p.Private_identifiers_are_not_allowed_outside_class_bodies),eLe(n)}function Oht(n){yMe(n)||Pne(n.name),ul(n)&&n.asteriskToken&&Je(n.name)&&kr(n.name)==="constructor"&&We(n.name,p.Class_constructor_may_not_be_a_generator),pLe(n),Kr(n,64)&&n.kind===174&&n.body&&We(n,p.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,Bo(n.name)),Qi(n.name)&&!Du(n)&&We(n,p.Private_identifiers_are_not_allowed_outside_class_bodies),tve(n)}function tve(n){if(Qi(n.name)&&ce<99){for(let a=qg(n);a;a=qg(a))ei(a).flags|=1048576;if(Su(n.parent)){const a=e1e(n.parent);a&&(ei(n.name).flags|=32768,ei(a).flags|=4096)}}}function Fht(n){a0(n),Xs(n,Ra)}function Lht(n){eO(n),xvt(n)||Tvt(n),Ra(n.body);const a=Pr(n),l=Cc(a,n.kind);if(n===l&&lne(a),nl(n.body))return;r(m);return;function _(h){return O_(h)?!0:h.kind===172&&!da(h)&&!!h.initializer}function m(){const h=n.parent;if(Sb(h)){t1e(n.parent,h);const k=n1e(h),O=cFe(n.body);if(O){if(k&&We(O,p.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),!ve&&(Pe(n.parent.members,_)||Pe(n.parameters,W=>Kr(W,31))))if(!Mht(O,n.body))We(O,p.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers);else{let W;for(const re of n.body.statements){if(xu(re)&&ix(gl(re.expression))){W=re;break}if(tLe(re))break}W===void 0&&We(n,p.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}}else k||We(n,p.Constructors_for_derived_classes_must_contain_a_super_call)}}}function Mht(n,a){const l=hy(n.parent);return xu(l)&&l.parent===a}function tLe(n){return n.kind===108||n.kind===110?!0:Pse(n)?!1:!!Xs(n,tLe)}function nLe(n){Je(n.name)&&kr(n.name)==="constructor"&&fi(n.parent)&&We(n.name,p.Class_constructor_may_not_be_an_accessor),r(a),Ra(n.body),tve(n);function a(){if(!Ene(n)&&!_vt(n)&&Pne(n.name),hz(n),eO(n),n.kind===177&&!(n.flags&33554432)&&Ed(n.body)&&n.flags&512&&(n.flags&1024||We(n.name,p.A_get_accessor_must_return_a_value)),n.name.kind===167&&i0(n.name),uE(n)){const _=Pr(n),m=Cc(_,177),h=Cc(_,178);if(m&&h&&!(DE(m)&1)){ei(m).flags|=1;const k=M_(m),O=M_(h);(k&64)!==(O&64)&&(We(m.name,p.Accessors_must_both_be_abstract_or_non_abstract),We(h.name,p.Accessors_must_both_be_abstract_or_non_abstract)),(k&4&&!(O&6)||k&2&&!(O&2))&&(We(m.name,p.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),We(h.name,p.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}const l=U2(Pr(n));n.kind===177&&H1e(n,l)}}function Rht(n){hz(n)}function jht(n,a,l){return n.typeArguments&&l{const _=nve(n);_&&rLe(n,_)});const l=ei(n).resolvedSymbol;l&&Pe(l.declarations,_=>P4(_)&&!!(_.flags&536870912))&&zy(az(n),l.declarations,l.escapedName)}}function Jht(n){const a=si(n.parent,NF);if(!a)return;const l=nve(a);if(!l)return;const _=af(l[a.typeArguments.indexOf(n)]);return _&&_s(_,cp(l,one(a,l)))}function zht(n){t5e(n)}function Uht(n){dt(n.members,Ra),r(a);function a(){const l=U5e(n);gne(l,l.symbol),eve(n),K9e(n)}}function Vht(n){Ra(n.elementType)}function Wht(n){let a=!1,l=!1;for(const _ of n.elements){let m=q0e(_);if(m&8){const h=ki(_.type);if(!Yy(h)){We(_,p.A_rest_element_type_must_be_an_array_type);break}(bd(h)||Ga(h)&&h.target.combinedFlags&4)&&(m|=4)}if(m&4){if(l){xn(_,p.A_rest_element_cannot_follow_another_rest_element);break}l=!0}else if(m&2){if(l){xn(_,p.An_optional_element_cannot_follow_a_rest_element);break}a=!0}else if(m&1&&a){xn(_,p.A_required_element_cannot_follow_an_optional_element);break}}dt(n.elements,Ra),ki(n)}function qht(n){dt(n.types,Ra),ki(n)}function sLe(n,a){if(!(n.flags&8388608))return n;const l=n.objectType,_=n.indexType,m=Sf(l)&&Bee(l)===2?E5e(l,0):Cg(l,0),h=!!r0(l,xt);if(Rf(_,k=>wa(k,m)||h&&KC(k,xt)))return a.kind===212&&Lh(a)&&Br(l)&32&&mh(l)&1&&We(a,p.Index_signature_in_type_0_only_permits_reading,Hn(l)),n;if(AT(l)){const k=Yee(_,a);if(k){const O=jT(of(l),j=>Ea(j,k));if(O&&nd(O)&6)return We(a,p.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,Hi(k)),mt}}return We(a,p.Type_0_cannot_be_used_to_index_type_1,Hn(_),Hn(l)),mt}function Hht(n){Ra(n.objectType),Ra(n.indexType),sLe(M5e(n),n)}function Ght(n){$ht(n),Ra(n.typeParameter),Ra(n.nameType),Ra(n.type),n.type||Y2(n,U);const a=rye(n),l=Hy(a);if(l)C_(l,Yo,n.nameType);else{const _=Qp(a);C_(_,Yo,J6(n.typeParameter))}}function $ht(n){var a;if((a=n.members)!=null&&a.length)return xn(n.members[0],p.A_mapped_type_may_not_declare_properties_or_methods)}function Xht(n){nte(n)}function Qht(n){pvt(n),Ra(n.type)}function Yht(n){Xs(n,Ra)}function Zht(n){Vn(n,l=>l.parent&&l.parent.kind===194&&l.parent.extendsType===l)||xn(n,p.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),Ra(n.typeParameter);const a=Pr(n.typeParameter);if(a.declarations&&a.declarations.length>1){const l=Zi(a);if(!l.typeParametersChecked){l.typeParametersChecked=!0;const _=xT(a),m=Xie(a,168);if(!FLe(m,[_],h=>[h])){const h=Ti(a);for(const k of m)We(k.name,p.All_declarations_of_0_must_have_identical_constraints,h)}}}Pv(n)}function Kht(n){for(const a of n.templateSpans){Ra(a.type);const l=ki(a.type);C_(l,Rs,a.type)}ki(n)}function e0t(n){Ra(n.argument),n.attributes&&r3(n.attributes,xn),iLe(n)}function t0t(n){n.dotDotDotToken&&n.questionToken&&xn(n,p.A_tuple_member_cannot_be_both_optional_and_rest),n.type.kind===190&&xn(n.type,p.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),n.type.kind===191&&xn(n.type,p.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),Ra(n.type),ki(n)}function gz(n){return(qf(n,2)||O_(n))&&!!(n.flags&33554432)}function cne(n,a){let l=wne(n);if(n.parent.kind!==264&&n.parent.kind!==263&&n.parent.kind!==231&&n.flags&33554432){const _=EW(n);_&&_.flags&128&&!(l&128)&&!(lg(n.parent)&&dl(n.parent.parent)&&eg(n.parent.parent))&&(l|=32),l|=128}return l&a}function lne(n){r(()=>n0t(n))}function n0t(n){function a(ln,Jn){return Jn!==void 0&&Jn.parent===ln[0].parent?Jn:ln[0]}function l(ln,Jn,Bn,nr,$n){if((nr^$n)!==0){const Ns=cne(a(ln,Jn),Bn);dt(ln,Es=>{const Ws=cne(Es,Bn)^Ns;Ws&32?We(Ms(Es),p.Overload_signatures_must_all_be_exported_or_non_exported):Ws&128?We(Ms(Es),p.Overload_signatures_must_all_be_ambient_or_non_ambient):Ws&6?We(Ms(Es)||Es,p.Overload_signatures_must_all_be_public_private_or_protected):Ws&64&&We(Ms(Es),p.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function _(ln,Jn,Bn,nr){if(Bn!==nr){const $n=Sk(a(ln,Jn));dt(ln,rr=>{Sk(rr)!==$n&&We(Ms(rr),p.Overload_signatures_must_all_be_optional_or_required)})}}const m=230;let h=0,k=m,O=!1,j=!0,W=!1,re,be,he;const qe=n.declarations,ht=(n.flags&16384)!==0;function Pt(ln){if(ln.name&&nl(ln.name))return;let Jn=!1;const Bn=Xs(ln.parent,$n=>{if(Jn)return $n;Jn=$n===ln});if(Bn&&Bn.pos===ln.end&&Bn.kind===ln.kind){const $n=Bn.name||Bn,rr=Bn.name;if(ln.name&&rr&&(Qi(ln.name)&&Qi(rr)&&ln.name.escapedText===rr.escapedText||co(ln.name)&&co(rr)&&X0(i0(ln.name),i0(rr))||ng(ln.name)&&ng(rr)&&MP(ln.name)===MP(rr))){if((ln.kind===174||ln.kind===173)&&da(ln)!==da(Bn)){const Es=da(ln)?p.Function_overload_must_be_static:p.Function_overload_must_not_be_static;We($n,Es)}return}if(Ed(Bn.body)){We($n,p.Function_implementation_name_must_be_0,Bo(ln.name));return}}const nr=ln.name||ln;ht?We(nr,p.Constructor_implementation_is_missing):Kr(ln,64)?We(nr,p.All_declarations_of_an_abstract_method_must_be_consecutive):We(nr,p.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let on=!1,un=!1,or=!1;const Rn=[];if(qe)for(const ln of qe){const Jn=ln,Bn=Jn.flags&33554432,nr=Jn.parent&&(Jn.parent.kind===264||Jn.parent.kind===187)||Bn;if(nr&&(he=void 0),(Jn.kind===263||Jn.kind===231)&&!Bn&&(or=!0),Jn.kind===262||Jn.kind===174||Jn.kind===173||Jn.kind===176){Rn.push(Jn);const $n=cne(Jn,m);h|=$n,k&=$n,O=O||Sk(Jn),j=j&&Sk(Jn);const rr=Ed(Jn.body);rr&&re?ht?un=!0:on=!0:(he==null?void 0:he.parent)===Jn.parent&&he.end!==Jn.pos&&Pt(he),rr?re||(re=Jn):W=!0,he=Jn,nr||(be=Jn)}lr(ln)&&oa(ln)&&ln.jsDoc&&(W=Xe(VW(ln))>0)}if(un&&dt(Rn,ln=>{We(ln,p.Multiple_constructor_implementations_are_not_allowed)}),on&&dt(Rn,ln=>{We(Ms(ln)||ln,p.Duplicate_function_implementation)}),or&&!ht&&n.flags&16&&qe){const ln=vr(qe,Jn=>Jn.kind===263).map(Jn=>Rr(Jn,p.Consider_adding_a_declare_modifier_to_this_class));dt(qe,Jn=>{const Bn=Jn.kind===263?p.Class_declaration_cannot_implement_overload_list_for_0:Jn.kind===262?p.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;Bn&&Ua(We(Ms(Jn)||Jn,Bn,Rc(n)),...ln)})}if(be&&!be.body&&!Kr(be,64)&&!be.questionToken&&Pt(be),W&&(qe&&(l(qe,re,m,h,k),_(qe,re,O,j)),re)){const ln=xS(n),Jn=Vd(re);for(const Bn of ln)if(!xft(Jn,Bn)){const nr=Bn.declaration&&c2(Bn.declaration)?Bn.declaration.parent.tagName:Bn.declaration;Ua(We(nr,p.This_overload_signature_is_not_compatible_with_its_implementation_signature),Rr(re,p.The_implementation_signature_is_declared_here));break}}}function tO(n){r(()=>r0t(n))}function r0t(n){let a=n.localSymbol;if(!a&&(a=Pr(n),!a.exportSymbol)||Cc(a,n.kind)!==n)return;let l=0,_=0,m=0;for(const W of a.declarations){const re=j(W),be=cne(W,2080);be&32?be&2048?m|=re:l|=re:_|=re}const h=l|_,k=l&_,O=m&h;if(k||O)for(const W of a.declarations){const re=j(W),be=Ms(W);re&O?We(be,p.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,Bo(be)):re&k&&We(be,p.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,Bo(be))}function j(W){let re=W;switch(re.kind){case 264:case 265:case 353:case 345:case 347:return 2;case 267:return n_(re)||C0(re)!==0?5:4;case 263:case 266:case 306:return 3;case 312:return 7;case 277:case 226:const be=re,he=Qc(be)?be.expression:be.right;if(!il(he))return 1;re=he;case 271:case 274:case 273:let qe=0;const ht=iu(Pr(re));return dt(ht.declarations,Pt=>{qe|=j(Pt)}),qe;case 260:case 208:case 262:case 276:case 80:return 1;case 173:case 171:return 2;default:return w.failBadSyntaxKind(re)}}}function f8(n,a,l,..._){const m=nO(n,a);return m&&WT(m,a,l,..._)}function nO(n,a,l){if(Dt(n))return;const _=n;if(_.promisedTypeOfPromise)return _.promisedTypeOfPromise;if(pv(n,bJ(!1)))return _.promisedTypeOfPromise=ac(n)[0];if(pz(H0(n),402915324))return;const m=He(n,"then");if(Dt(m))return;const h=m?ra(m,0):Ke;if(h.length===0){a&&We(a,p.A_promise_must_have_a_then_method);return}let k,O;for(const re of h){const be=H2(re);be&&be!==sr&&!Eg(n,be,ah)?k=be:O=gn(O,re)}if(!O){w.assertIsDefined(k),l&&(l.value=k),a&&We(a,p.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Hn(n),Hn(k));return}const j=Hd(ti(Kt(O,U1e)),2097152);if(Dt(j))return;const W=ra(j,0);if(W.length===0){a&&We(a,p.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return _.promisedTypeOfPromise=ti(Kt(W,U1e),2)}function rO(n,a,l,_,...m){return(a?WT(n,l,_,...m):Zy(n,l,_,...m))||mt}function aLe(n){if(pz(H0(n),402915324))return!1;const a=He(n,"then");return!!a&&ra(Hd(a,2097152),0).length>0}function une(n){var a;if(n.flags&16777216){const l=W0e(!1);return!!l&&n.aliasSymbol===l&&((a=n.aliasTypeArguments)==null?void 0:a.length)===1}return!1}function p8(n){return n.flags&1048576?kc(n,p8):une(n)?n.aliasTypeArguments[0]:n}function oLe(n){if(Dt(n)||une(n))return!1;if(AT(n)){const a=l_(n);if(a?a.flags&3||Q0(a)||vm(a,aLe):Hc(n,8650752))return!0}return!1}function i0t(n){const a=W0e(!0);if(a)return dE(a,[p8(n)])}function s0t(n){if(oLe(n)){const a=i0t(n);if(a)return a}return w.assert(une(n)||nO(n)===void 0,"type provided should not be a non-generic 'promise'-like."),n}function WT(n,a,l,..._){const m=Zy(n,a,l,..._);return m&&s0t(m)}function Zy(n,a,l,..._){if(Dt(n)||une(n))return n;const m=n;if(m.awaitedTypeOfType)return m.awaitedTypeOfType;if(n.flags&1048576){if(C2.lastIndexOf(n.id)>=0){a&&We(a,p.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}const O=a?W=>Zy(W,a,l,..._):Zy;C2.push(n.id);const j=kc(n,O);return C2.pop(),m.awaitedTypeOfType=j}if(oLe(n))return m.awaitedTypeOfType=n;const h={value:void 0},k=nO(n,void 0,h);if(k){if(n.id===k.id||C2.lastIndexOf(k.id)>=0){a&&We(a,p.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}C2.push(n.id);const O=Zy(k,a,l,..._);return C2.pop(),O?m.awaitedTypeOfType=O:void 0}if(aLe(n)){if(a){w.assertIsDefined(l);let O;h.value&&(O=Hs(O,p.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Hn(n),Hn(h.value))),O=Hs(O,l,..._),_o.add(m0(qn(a),a,O))}return}return m.awaitedTypeOfType=n}function a0t(n,a,l){const _=ki(a);if(ce>=2){if(Gt(_))return;const h=bJ(!0);if(h!==js&&!pv(_,h)){m(p.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,a,l,Hn(Zy(_)||sr));return}}else{if(c0t(a),Gt(_))return;const h=RA(a);if(h===void 0){m(p.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,l,Hn(_));return}const k=ic(h,111551,!0),O=k?fr(k):mt;if(Gt(O)){h.kind===80&&h.escapedText==="Promise"&&qy(_)===bJ(!1)?We(l,p.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):m(p.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,l,Vf(h));return}const j=Iut(!0);if(j===Ja){m(p.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,l,Vf(h));return}const W=p.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;if(!C_(O,j,l,W,()=>a===l?void 0:Hs(void 0,p.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)))return;const be=h&&yp(h),he=bf(n.locals,be.escapedText,111551);if(he){We(he.valueDeclaration,p.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,kr(be),Vf(h));return}}rO(_,!1,n,p.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);function m(h,k,O,j){if(k===O)We(O,h,j);else{const W=We(O,p.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type);Ua(W,Rr(k,h,j))}}}function o0t(n){const a=kE(n);tne(a,n);const l=To(a);if(l.flags&1)return;const _=q1e(n);if(!(_!=null&&_.resolvedReturnType))return;let m;const h=_.resolvedReturnType;switch(n.parent.kind){case 263:case 231:m=p.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 172:if(!ne){m=p.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 169:m=p.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 174:case 177:case 178:m=p.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return w.failBadSyntaxKind(n.parent)}C_(l,h,n.expression,m)}function iO(n,a,l,_,m,h=l.length,k=0){const O=L.createFunctionTypeNode(void 0,Ke,L.createKeywordTypeNode(133));return n0(O,n,a,l,_,m,h,k)}function ive(n,a,l,_,m,h,k){const O=iO(n,a,l,_,m,h,k);return PT(O)}function cLe(n){return ive(void 0,void 0,Ke,n)}function lLe(n){const a=Lm("value",n);return ive(void 0,void 0,[a],sr)}function c0t(n){uLe(n&&RA(n),!1)}function uLe(n,a){if(!n)return;const l=yp(n),_=(n.kind===80?788968:1920)|2097152,m=Lc(l,l.escapedText,_,void 0,void 0,!0);if(m&&m.flags&2097152){if(kt&&gm(m)&&!cO(iu(m))&&!fd(m))tv(m);else if(a&&Ld(z)&&r_(z)>=5&&!gm(m)&&!Pe(m.declarations,$v)){const h=We(n,p.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),k=Cn(m.declarations||Ke,Y1);k&&Ua(h,Rr(k,p._0_was_imported_here,kr(l)))}}}function PE(n){const a=sve(n);a&&Ef(a)&&uLe(a,!0)}function sve(n){if(n)switch(n.kind){case 193:case 192:return _Le(n.types);case 194:return _Le([n.trueType,n.falseType]);case 196:case 202:return sve(n.type);case 183:return n.typeName}}function _Le(n){let a;for(let l of n){for(;l.kind===196||l.kind===202;)l=l.type;if(l.kind===146||!X&&(l.kind===201&&l.literal.kind===106||l.kind===157))continue;const _=sve(l);if(!_)return;if(a){if(!Je(a)||!Je(_)||a.escapedText!==_.escapedText)return}else a=_}return a}function _ne(n){const a=zu(n);return Ah(n)?AW(a):a}function hz(n){if(!Nx(n)||!Kp(n)||!n.modifiers||!t9(ne,n,n.parent,n.parent.parent))return;const a=Cn(n.modifiers,Vu);if(a){if(ne?(Xl(a,8),n.kind===169&&Xl(a,32)):ce<99&&(Xl(a,8),ql(n)?n.name?LLe(n)&&Xl(a,8388608):Xl(a,8388608):Su(n)||(Qi(n.name)&&(ul(n)||d1(n)||uf(n))&&Xl(a,8388608),co(n.name)&&Xl(a,16777216))),z.emitDecoratorMetadata)switch(Xl(a,16),n.kind){case 263:const l=Rh(n);if(l)for(const k of l.parameters)PE(_ne(k));break;case 177:case 178:const _=n.kind===177?178:177,m=Cc(Pr(n),_);PE(hm(n)||m&&hm(m));break;case 174:for(const k of n.parameters)PE(_ne(k));PE(Id(n));break;case 172:PE(zu(n));break;case 169:PE(_ne(n));const h=n.parent;for(const k of h.parameters)PE(_ne(k));PE(Id(h));break}for(const l of n.modifiers)Vu(l)&&o0t(l)}}function l0t(n){r(a);function a(){pLe(n),wve(n),d8(n,n.name)}}function u0t(n){n.typeExpression||We(n.name,p.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),n.name&&g8(n.name,p.Type_alias_name_cannot_be_0),Ra(n.typeExpression),Tz(f1(n))}function _0t(n){Ra(n.constraint);for(const a of n.typeParameters)Ra(a)}function f0t(n){Ra(n.typeExpression)}function p0t(n){Ra(n.typeExpression);const a=Kv(n);if(a){const l=hF(a,oM);if(Xe(l)>1)for(let _=1;_0),l.length>1&&We(l[1],p.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);const _=fLe(n.class.expression),m=Sb(a);if(m){const h=fLe(m.expression);h&&_.escapedText!==h.escapedText&&We(_,p.JSDoc_0_1_does_not_match_the_extends_2_clause,kr(n.tagName),kr(_),kr(h))}}function S0t(n){const a=lx(n);a&&O_(a)&&We(n,p.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function fLe(n){switch(n.kind){case 80:return n;case 211:return n.name;default:return}}function pLe(n){var a;hz(n),eO(n);const l=lu(n);if(n.name&&n.name.kind===167&&i0(n.name),uE(n)){const h=Pr(n),k=n.localSymbol||h,O=(a=k.declarations)==null?void 0:a.find(j=>j.kind===n.kind&&!(j.flags&524288));n===O&&lne(k),h.parent&&lne(h)}const _=n.kind===173?void 0:n.body;if(Ra(_),H1e(n,fE(n)),r(m),lr(n)){const h=qv(n);h&&h.typeExpression&&!u1e(ki(h.typeExpression),n)&&We(h.typeExpression.type,p.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function m(){Id(n)||(nl(_)&&!gz(n)&&Y2(n,U),l&1&&Ed(_)&&To(Vd(n)))}}function Pv(n){r(a);function a(){const l=qn(n);let _=Vp.get(l.path);_||(_=[],Vp.set(l.path,_)),_.push(n)}}function dLe(n,a){for(const l of n)switch(l.kind){case 263:case 231:x0t(l,a),ave(l,a);break;case 312:case 267:case 241:case 269:case 248:case 249:case 250:hLe(l,a);break;case 176:case 218:case 262:case 219:case 174:case 177:case 178:l.body&&hLe(l,a),ave(l,a);break;case 173:case 179:case 180:case 184:case 185:case 265:case 264:ave(l,a);break;case 195:T0t(l,a);break;default:w.assertNever(l,"Node should not have been registered for unused identifiers check")}}function mLe(n,a,l){const _=Ms(n)||n,m=P4(n)?p._0_is_declared_but_never_used:p._0_is_declared_but_its_value_is_never_read;l(n,0,Rr(_,m,a))}function sO(n){return Je(n)&&kr(n).charCodeAt(0)===95}function x0t(n,a){for(const l of n.members)switch(l.kind){case 174:case 172:case 177:case 178:if(l.kind===178&&l.symbol.flags&32768)break;const _=Pr(l);!_.isReferenced&&(qf(l,2)||I_(l)&&Qi(l.name))&&!(l.flags&33554432)&&a(l,0,Rr(l.name,p._0_is_declared_but_its_value_is_never_read,Ti(_)));break;case 176:for(const m of l.parameters)!m.symbol.isReferenced&&Kr(m,2)&&a(m,0,Rr(m.name,p.Property_0_is_declared_but_its_value_is_never_read,Rc(m.symbol)));break;case 181:case 240:case 175:break;default:w.fail("Unexpected class member")}}function T0t(n,a){const{typeParameter:l}=n;ove(l)&&a(n,1,Rr(n,p._0_is_declared_but_its_value_is_never_read,kr(l.name)))}function ave(n,a){const l=Pr(n).declarations;if(!l||so(l)!==n)return;const _=f1(n),m=new Set;for(const h of _){if(!ove(h))continue;const k=kr(h.name),{parent:O}=h;if(O.kind!==195&&O.typeParameters.every(ove)){if(Na(m,O)){const j=qn(O),W=Rd(O)?Lq(O):Mq(j,O.typeParameters),be=O.typeParameters.length===1?[p._0_is_declared_but_its_value_is_never_read,k]:[p.All_type_parameters_are_unused];a(h,1,bu(j,W.pos,W.end-W.pos,...be))}}else a(h,1,Rr(h,p._0_is_declared_but_its_value_is_never_read,k))}}function ove(n){return!(po(n.symbol).isReferenced&262144)&&!sO(n.name)}function yz(n,a,l,_){const m=String(_(a)),h=n.get(m);h?h[1].push(l):n.set(m,[a,[l]])}function gLe(n){return si(rg(n),ws)}function k0t(n){return oo(n)?Md(n.parent)?!!(n.propertyName&&sO(n.name)):sO(n.name):n_(n)||(Ji(n)&&V6(n.parent.parent)||yLe(n))&&sO(n.name)}function hLe(n,a){const l=new Map,_=new Map,m=new Map;n.locals.forEach(h=>{if(!(h.flags&262144?!(h.flags&3&&!(h.isReferenced&3)):h.isReferenced||h.exportSymbol)&&h.declarations){for(const k of h.declarations)if(!k0t(k))if(yLe(k))yz(l,E0t(k),k,ho);else if(oo(k)&&Md(k.parent)){const O=so(k.parent.elements);(k===O||!so(k.parent.elements).dotDotDotToken)&&yz(_,k.parent,k,ho)}else if(Ji(k)){const O=RS(k)&7,j=Ms(k);(O!==4&&O!==6||!j||!sO(j))&&yz(m,k.parent,k,ho)}else{const O=h.valueDeclaration&&gLe(h.valueDeclaration),j=h.valueDeclaration&&Ms(h.valueDeclaration);O&&j?!Uf(O,O.parent)&&!kb(O)&&!sO(j)&&(oo(k)&&Ob(k.parent)?yz(_,k.parent,k,ho):a(O,1,Rr(j,p._0_is_declared_but_its_value_is_never_read,Rc(h)))):mLe(k,Rc(h),a)}}}),l.forEach(([h,k])=>{const O=h.parent;if((h.name?1:0)+(h.namedBindings?h.namedBindings.kind===274?1:h.namedBindings.elements.length:0)===k.length)a(O,0,k.length===1?Rr(O,p._0_is_declared_but_its_value_is_never_read,kr(Ka(k).name)):Rr(O,p.All_imports_in_import_declaration_are_unused));else for(const W of k)mLe(W,kr(W.name),a)}),_.forEach(([h,k])=>{const O=gLe(h.parent)?1:0;if(h.elements.length===k.length)k.length===1&&h.parent.kind===260&&h.parent.parent.kind===261?yz(m,h.parent.parent,h.parent,ho):a(h,O,k.length===1?Rr(h,p._0_is_declared_but_its_value_is_never_read,vz(Ka(k).name)):Rr(h,p.All_destructured_elements_are_unused));else for(const j of k)a(j,O,Rr(j,p._0_is_declared_but_its_value_is_never_read,vz(j.name)))}),m.forEach(([h,k])=>{if(h.declarations.length===k.length)a(h,0,k.length===1?Rr(Ka(k).name,p._0_is_declared_but_its_value_is_never_read,vz(Ka(k).name)):Rr(h.parent.kind===243?h.parent:h,p.All_variables_are_unused));else for(const O of k)a(O,0,Rr(O,p._0_is_declared_but_its_value_is_never_read,vz(O.name)))})}function C0t(){var n;for(const a of Gh)if(!((n=Pr(a))!=null&&n.isReferenced)){const l=j6(a);w.assert(xb(l),"Only parameter declaration should be checked here");const _=Rr(a.name,p._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,Bo(a.name),Bo(a.propertyName));l.type||Ua(_,bu(qn(l),l.end,1,p.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,Bo(a.propertyName))),_o.add(_)}}function vz(n){switch(n.kind){case 80:return kr(n);case 207:case 206:return vz(pa(Ka(n.elements),oo).name);default:return w.assertNever(n)}}function yLe(n){return n.kind===273||n.kind===276||n.kind===274}function E0t(n){return n.kind===273?n:n.kind===274?n.parent:n.parent.parent}function fne(n){if(n.kind===241&&ey(n),eW(n)){const a=Re;dt(n.statements,Ra),Re=a}else dt(n.statements,Ra);n.locals&&Pv(n)}function P0t(n){ce>=2||!cW(n)||n.flags&33554432||nl(n.body)||dt(n.parameters,a=>{a.name&&!ca(a.name)&&a.name.escapedText===zt.escapedName&&Om("noEmit",a,p.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function aO(n,a,l){if((a==null?void 0:a.escapedText)!==l||n.kind===172||n.kind===171||n.kind===174||n.kind===173||n.kind===177||n.kind===178||n.kind===303||n.flags&33554432||(Yg(n)||Tu(n)||Df(n))&&$v(n))return!1;const _=rg(n);return!(ws(_)&&nl(_.parent.body))}function w0t(n){Vn(n,a=>DE(a)&4?(n.kind!==80?We(Ms(n),p.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):We(n,p.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0):!1)}function D0t(n){Vn(n,a=>DE(a)&8?(n.kind!==80?We(Ms(n),p.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):We(n,p.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0):!1)}function A0t(n,a){if(J>=5&&!(J>=100&&qn(n).impliedNodeFormat===1)||!a||!aO(n,a,"require")&&!aO(n,a,"exports")||dl(n)&&C0(n)!==1)return;const l=Y(n);l.kind===312&&mp(l)&&Om("noEmit",a,p.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,Bo(a),Bo(a))}function N0t(n,a){if(!a||ce>=4||!aO(n,a,"Promise")||dl(n)&&C0(n)!==1)return;const l=Y(n);l.kind===312&&mp(l)&&l.flags&4096&&Om("noEmit",a,p.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,Bo(a),Bo(a))}function I0t(n,a){ce<=8&&(aO(n,a,"WeakMap")||aO(n,a,"WeakSet"))&&q1.push(n)}function O0t(n){const a=qg(n);DE(a)&1048576&&(w.assert(I_(n)&&Je(n.name)&&typeof n.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),Om("noEmit",n,p.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,n.name.escapedText))}function F0t(n,a){a&&ce>=2&&ce<=8&&aO(n,a,"Reflect")&&H1.push(n)}function L0t(n){let a=!1;if(Su(n)){for(const l of n.members)if(DE(l)&2097152){a=!0;break}}else if(Xo(n))DE(n)&2097152&&(a=!0);else{const l=qg(n);l&&DE(l)&2097152&&(a=!0)}a&&(w.assert(I_(n)&&Je(n.name),"The target of a Reflect collision check should be an identifier"),Om("noEmit",n,p.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,Bo(n.name),"Reflect"))}function d8(n,a){a&&(A0t(n,a),N0t(n,a),I0t(n,a),F0t(n,a),fi(n)?(g8(a,p.Class_name_cannot_be_0),n.flags&33554432||lyt(a)):a2(n)&&g8(a,p.Enum_name_cannot_be_0))}function M0t(n){if(RS(n)&7||xb(n))return;const a=Pr(n);if(a.flags&1){if(!Je(n.name))return w.fail();const l=Lc(n,n.name.escapedText,3,void 0,void 0,!1);if(l&&l!==a&&l.flags&2&&y1e(l)&7){const _=e2(l.valueDeclaration,261),m=_.parent.kind===243&&_.parent.parent?_.parent.parent:void 0;if(!(m&&(m.kind===241&&oa(m.parent)||m.kind===268||m.kind===267||m.kind===312))){const k=Ti(l);We(n,p.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,k,k)}}}}function oO(n){return n===it?U:n===du?vl:n}function bz(n){var a;if(hz(n),oo(n)||Ra(n.type),!n.name)return;if(n.name.kind===167&&(i0(n.name),ex(n)&&n.initializer&&Sl(n.initializer)),oo(n)){if(n.propertyName&&Je(n.name)&&xb(n)&&nl(hp(n).body)){Gh.push(n);return}Md(n.parent)&&n.dotDotDotToken&&ce<5&&Xl(n,4),n.propertyName&&n.propertyName.kind===167&&i0(n.propertyName);const m=n.parent.parent,h=n.dotDotDotToken?32:0,k=zr(m,h),O=n.propertyName||n.name;if(k&&!ca(O)){const j=Xy(O);if(Od(j)){const W=Fd(j),re=Ea(k,W);re&&(tz(re,void 0,!1),b1e(n,!!m.initializer&&m.initializer.kind===108,!1,k,re))}}}if(ca(n.name)&&(n.name.kind===207&&ce<2&&z.downlevelIteration&&Xl(n,512),dt(n.name.elements,Ra)),n.initializer&&xb(n)&&nl(hp(n).body)){We(n,p.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(ca(n.name)){if(Wye(n))return;const m=ex(n)&&n.initializer&&n.parent.parent.kind!==249,h=!Pe(n.name.elements,MO(uu));if(m||h){const k=B(n);if(m){const O=Sl(n.initializer);X&&h?BFe(O,n):xv(O,B(n),n,n.initializer)}h&&(Ob(n.name)?Ky(65,k,Fe,n):X&&BFe(k,n))}return}const l=Pr(n);if(l.flags&2097152&&(yb(n)||Nse(n))){hne(n);return}const _=oO(fr(l));if(n===l.valueDeclaration){const m=ex(n)&&zA(n);if(m&&!(lr(n)&&Va(m)&&(m.properties.length===0||T1(n.name))&&!!((a=l.exports)!=null&&a.size))&&n.parent.parent.kind!==249){const k=Sl(m);xv(k,_,n,m,void 0);const O=RS(n)&7;if(O===6){const j=zut(!0),W=l5e(!0);if(j!==Ja&&W!==Ja){const re=ti([j,W,de,Fe]);C_(k,re,m,p.The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined)}}else if(O===4){const j=l5e(!0);if(j!==Ja){const W=ti([j,de,Fe]);C_(k,W,m,p.The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined)}}}l.declarations&&l.declarations.length>1&&Pe(l.declarations,h=>h!==n&&K6(h)&&!bLe(h,n))&&We(n.name,p.All_declarations_of_0_must_have_identical_modifiers,Bo(n.name))}else{const m=oO(B(n));!Gt(_)&&!Gt(m)&&!X0(_,m)&&!(l.flags&67108864)&&vLe(l.valueDeclaration,_,n,m),ex(n)&&n.initializer&&xv(Sl(n.initializer),m,n,n.initializer,void 0),l.valueDeclaration&&!bLe(n,l.valueDeclaration)&&We(n.name,p.All_declarations_of_0_must_have_identical_modifiers,Bo(n.name))}n.kind!==172&&n.kind!==171&&(tO(n),(n.kind===260||n.kind===208)&&M0t(n),d8(n,n.name))}function vLe(n,a,l,_){const m=Ms(l),h=l.kind===172||l.kind===171?p.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:p.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,k=Bo(m),O=We(m,h,k,Hn(a),Hn(_));n&&Ua(O,Rr(n,p._0_was_also_declared_here,k))}function bLe(n,a){if(n.kind===169&&a.kind===260||n.kind===260&&a.kind===169)return!0;if(Sk(n)!==Sk(a))return!1;const l=1358;return Ek(n,l)===Ek(a,l)}function R0t(n){var a,l;(a=cr)==null||a.push(cr.Phase.Check,"checkVariableDeclaration",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath}),yvt(n),bz(n),(l=cr)==null||l.pop()}function j0t(n){return mvt(n),bz(n)}function pne(n){const a=py(n)&7;(a===4||a===6)&&Xl(n,33554432),dt(n.declarations,Ra)}function B0t(n){!a0(n)&&!Nve(n.declarationList)&&vvt(n),pne(n.declarationList)}function J0t(n){ey(n),ms(n.expression)}function z0t(n){ey(n);const a=m8(n.expression);cve(n.expression,a,n.thenStatement),Ra(n.thenStatement),n.thenStatement.kind===242&&We(n.thenStatement,p.The_body_of_an_if_statement_cannot_be_the_empty_statement),Ra(n.elseStatement)}function cve(n,a,l){if(!X)return;_(n,l);function _(h,k){for(h=Eo(h),m(h,k);mr(h)&&(h.operatorToken.kind===57||h.operatorToken.kind===61);)h=Eo(h.left),m(h,k)}function m(h,k){const O=fN(h)?Eo(h.right):h;if(Fh(O))return;if(fN(O)){_(O,k);return}const j=O===h?a:m8(O),W=Jr(O)&&W9e(O.expression);if(!qd(j,4194304)||W)return;const re=ra(j,0),be=!!f8(j);if(re.length===0&&!be)return;const he=Je(O)?O:Jr(O)?O.name:void 0,qe=he&&bm(he);if(!qe&&!be)return;qe&&mr(h.parent)&&V0t(h.parent,qe)||qe&&k&&U0t(h,k,he,qe)||(be?w2(O,!0,p.This_condition_will_always_return_true_since_this_0_is_always_defined,sv(j)):We(O,p.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}function U0t(n,a,l,_){return!!Xs(a,function m(h){if(Je(h)){const k=bm(h);if(k&&k===_){if(Je(n)||Je(l)&&mr(l.parent))return!0;let O=l.parent,j=h.parent;for(;O&&j;){if(Je(O)&&Je(j)||O.kind===110&&j.kind===110)return bm(O)===bm(j);if(Jr(O)&&Jr(j)){if(bm(O.name)!==bm(j.name))return!1;j=j.expression,O=O.expression}else if(ma(O)&&ma(j))j=j.expression,O=O.expression;else return!1}}}return Xs(h,m)})}function V0t(n,a){for(;mr(n)&&n.operatorToken.kind===56;){if(Xs(n.right,function _(m){if(Je(m)){const h=bm(m);if(h&&h===a)return!0}return Xs(m,_)}))return!0;n=n.parent}return!1}function W0t(n){ey(n),Ra(n.statement),m8(n.expression)}function q0t(n){ey(n),m8(n.expression),Ra(n.statement)}function lve(n,a){return n.flags&16384&&We(a,p.An_expression_of_type_void_cannot_be_tested_for_truthiness),n}function m8(n,a){return lve(ms(n,a),n)}function H0t(n){ey(n)||n.initializer&&n.initializer.kind===261&&Nve(n.initializer),n.initializer&&(n.initializer.kind===261?pne(n.initializer):ms(n.initializer)),n.condition&&m8(n.condition),n.incrementor&&ms(n.incrementor),Ra(n.statement),n.locals&&Pv(n)}function G0t(n){hMe(n);const a=QF(n);if(n.awaitModifier?a&&Vc(a)?xn(n.awaitModifier,p.for_await_loops_cannot_be_used_inside_a_class_static_block):(lu(a)&6)===2&&ce<99&&Xl(n,16384):z.downlevelIteration&&ce<2&&Xl(n,256),n.initializer.kind===261)pne(n.initializer);else{const l=n.initializer,_=Sz(n);if(l.kind===209||l.kind===210)VT(l,_||mt);else{const m=ms(l);K5(l,p.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,p.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),_&&xv(_,m,l,n.expression)}}Ra(n.statement),n.locals&&Pv(n)}function $0t(n){hMe(n);const a=S1e(ms(n.expression));if(n.initializer.kind===261){const l=n.initializer.declarations[0];l&&ca(l.name)&&We(l.name,p.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),pne(n.initializer)}else{const l=n.initializer,_=ms(l);l.kind===209||l.kind===210?We(l,p.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):wa(w_t(a),_)?K5(l,p.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,p.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):We(l,p.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(a===Wr||!$u(a,126091264))&&We(n.expression,p.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0,Hn(a)),Ra(n.statement),n.locals&&Pv(n)}function Sz(n){const a=n.awaitModifier?15:13;return Ky(a,xE(n.expression),Fe,n.expression)}function Ky(n,a,l,_){return Dt(a)?a:uve(n,a,l,_,!0)||U}function uve(n,a,l,_,m){const h=(n&2)!==0;if(a===Wr){mve(_,a,h);return}const k=ce>=2,O=!k&&z.downlevelIteration,j=z.noUncheckedIndexedAccess&&!!(n&128);if(k||O||h){const ht=mne(a,n,k?_:void 0);if(m&&ht){const Pt=n&8?p.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:n&32?p.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:n&64?p.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:n&16?p.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;Pt&&C_(l,ht.nextType,_,Pt)}if(ht||k)return j?H5(ht&&ht.yieldType):ht&&ht.yieldType}let W=a,re=!1,be=!1;if(n&4){if(W.flags&1048576){const ht=a.types,Pt=vr(ht,on=>!(on.flags&402653316));Pt!==ht&&(W=ti(Pt,2))}else W.flags&402653316&&(W=Wr);if(be=W!==a,be&&(ce<1&&_&&(We(_,p.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),re=!0),W.flags&131072))return j?H5(Ie):Ie}if(!Yy(W)){if(_&&!re){const ht=!!(n&4)&&!be,[Pt,on]=qe(ht,O);w2(_,on&&!!f8(W),Pt,Hn(W))}return be?j?H5(Ie):Ie:void 0}const he=q2(W,xt);if(be&&he)return he.flags&402653316&&!z.noUncheckedIndexedAccess?Ie:ti(j?[he,Ie,Fe]:[he,Ie],2);return n&128?H5(he):he;function qe(ht,Pt){var on;return Pt?ht?[p.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[p.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:_ve(n,0,a,void 0)?[p.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:X0t((on=a.symbol)==null?void 0:on.escapedName)?[p.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:ht?[p.Type_0_is_not_an_array_type_or_a_string_type,!0]:[p.Type_0_is_not_an_array_type,!0]}}function X0t(n){switch(n){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}function _ve(n,a,l,_){if(Dt(l))return;const m=mne(l,n,_);return m&&m[OCe(a)]}function e1(n=Wr,a=Wr,l=mn){if(n.flags&67359327&&a.flags&180227&&l.flags&180227){const _=Wd([n,a,l]);let m=Ni.get(_);return m||(m={yieldType:n,returnType:a,nextType:l},Ni.set(_,m)),m}return{yieldType:n,returnType:a,nextType:l}}function SLe(n){let a,l,_;for(const m of n)if(!(m===void 0||m===Fr)){if(m===ia)return ia;a=gn(a,m.yieldType),l=gn(l,m.returnType),_=gn(_,m.nextType)}return a||l||_?e1(a&&ti(a),l&&ti(l),_&&Pa(_)):Fr}function dne(n,a){return n[a]}function s0(n,a,l){return n[a]=l}function mne(n,a,l){var _,m;if(Dt(n))return ia;if(!(n.flags&1048576)){const W=l?{errors:void 0}:void 0,re=xLe(n,a,l,W);if(re===Fr){if(l){const be=mve(l,n,!!(a&2));W!=null&&W.errors&&Ua(be,...W.errors)}return}else if((_=W==null?void 0:W.errors)!=null&&_.length)for(const be of W.errors)_o.add(be);return re}const h=a&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",k=dne(n,h);if(k)return k===Fr?void 0:k;let O;for(const W of n.types){const re=l?{errors:void 0}:void 0,be=xLe(W,a,l,re);if(be===Fr){if(l){const he=mve(l,n,!!(a&2));re!=null&&re.errors&&Ua(he,...re.errors)}s0(n,h,Fr);return}else if((m=re==null?void 0:re.errors)!=null&&m.length)for(const he of re.errors)_o.add(he);O=gn(O,be)}const j=O?SLe(O):Fr;return s0(n,h,j),j===Fr?void 0:j}function fve(n,a){if(n===Fr)return Fr;if(n===ia)return ia;const{yieldType:l,returnType:_,nextType:m}=n;return a&&W0e(!0),e1(WT(l,a)||U,WT(_,a)||U,m)}function xLe(n,a,l,_){if(Dt(n))return ia;let m=!1;if(a&2){const h=pve(n,rc)||kLe(n,rc);if(h)if(h===Fr&&l)m=!0;else return a&8?fve(h,l):h}if(a&1){let h=pve(n,jl)||kLe(n,jl);if(h)if(h===Fr&&l)m=!0;else if(a&2){if(h!==Fr)return h=fve(h,l),m?h:s0(n,"iterationTypesOfAsyncIterable",h)}else return h}if(a&2){const h=dve(n,rc,l,_,m);if(h!==Fr)return h}if(a&1){let h=dve(n,jl,l,_,m);if(h!==Fr)return a&2?(h=fve(h,l),m?h:s0(n,"iterationTypesOfAsyncIterable",h)):h}return Fr}function pve(n,a){return dne(n,a.iterableCacheKey)}function TLe(n,a){const l=pve(n,a)||dve(n,a,void 0,void 0,!1);return l===Fr?fu:l}function kLe(n,a){let l;if(pv(n,l=a.getGlobalIterableType(!1))||pv(n,l=a.getGlobalIterableIteratorType(!1))){const[_]=ac(n),{returnType:m,nextType:h}=TLe(l,a);return s0(n,a.iterableCacheKey,e1(a.resolveIterationType(_,void 0)||_,a.resolveIterationType(m,void 0)||m,h))}if(pv(n,a.getGlobalGeneratorType(!1))){const[_,m,h]=ac(n);return s0(n,a.iterableCacheKey,e1(a.resolveIterationType(_,void 0)||_,a.resolveIterationType(m,void 0)||m,h))}}function CLe(n){const a=a5e(!1),l=a&&He(fr(a),Nc(n));return l&&Od(l)?Fd(l):`__@${n}`}function dve(n,a,l,_,m){const h=Ea(n,CLe(a.iteratorSymbolName)),k=h&&!(h.flags&16777216)?fr(h):void 0;if(Dt(k))return m?ia:s0(n,a.iterableCacheKey,ia);const O=k?ra(k,0):void 0;if(!Pe(O))return m?Fr:s0(n,a.iterableCacheKey,Fr);const j=Pa(Kt(O,To)),W=ELe(j,a,l,_,m)??Fr;return m?W:s0(n,a.iterableCacheKey,W)}function mve(n,a,l){const _=l?p.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:p.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,m=!!f8(a)||!l&&QN(n.parent)&&n.parent.expression===n&&Qee(!1)!==js&&wa(a,Qee(!1));return w2(n,m,_,Hn(a))}function Q0t(n,a,l,_){return ELe(n,a,l,_,!1)}function ELe(n,a,l,_,m){if(Dt(n))return ia;let h=PLe(n,a)||Y0t(n,a);return h===Fr&&l&&(h=void 0,m=!0),h??(h=DLe(n,a,l,_,m)),h===Fr?void 0:h}function PLe(n,a){return dne(n,a.iteratorCacheKey)}function Y0t(n,a){const l=a.getGlobalIterableIteratorType(!1);if(pv(n,l)){const[_]=ac(n),m=PLe(l,a)||DLe(l,a,void 0,void 0,!1),{returnType:h,nextType:k}=m===Fr?fu:m;return s0(n,a.iteratorCacheKey,e1(_,h,k))}if(pv(n,a.getGlobalIteratorType(!1))||pv(n,a.getGlobalGeneratorType(!1))){const[_,m,h]=ac(n);return s0(n,a.iteratorCacheKey,e1(_,m,h))}}function wLe(n,a){const l=He(n,"done")||tn;return wa(a===0?tn:Un,l)}function Z0t(n){return wLe(n,0)}function K0t(n){return wLe(n,1)}function eyt(n){if(Dt(n))return ia;const a=dne(n,"iterationTypesOfIteratorResult");if(a)return a;if(pv(n,But(!1))){const k=ac(n)[0];return s0(n,"iterationTypesOfIteratorResult",e1(k,void 0,void 0))}if(pv(n,Jut(!1))){const k=ac(n)[0];return s0(n,"iterationTypesOfIteratorResult",e1(void 0,k,void 0))}const l=Dl(n,Z0t),_=l!==Wr?He(l,"value"):void 0,m=Dl(n,K0t),h=m!==Wr?He(m,"value"):void 0;return!_&&!h?s0(n,"iterationTypesOfIteratorResult",Fr):s0(n,"iterationTypesOfIteratorResult",e1(_,h||sr,void 0))}function gve(n,a,l,_,m){var h,k,O,j;const W=Ea(n,l);if(!W&&l!=="next")return;const re=W&&!(l==="next"&&W.flags&16777216)?l==="next"?fr(W):Hd(fr(W),2097152):void 0;if(Dt(re))return l==="next"?ia:jc;const be=re?ra(re,0):Ke;if(be.length===0){if(_){const ln=l==="next"?a.mustHaveANextMethodDiagnostic:a.mustBeAMethodDiagnostic;m?(m.errors??(m.errors=[]),m.errors.push(Rr(_,ln,l))):We(_,ln,l)}return l==="next"?Fr:void 0}if(re!=null&&re.symbol&&be.length===1){const ln=a.getGlobalGeneratorType(!1),Jn=a.getGlobalIteratorType(!1),Bn=((k=(h=ln.symbol)==null?void 0:h.members)==null?void 0:k.get(l))===re.symbol,nr=!Bn&&((j=(O=Jn.symbol)==null?void 0:O.members)==null?void 0:j.get(l))===re.symbol;if(Bn||nr){const $n=Bn?ln:Jn,{mapper:rr}=re;return e1(bv($n.typeParameters[0],rr),bv($n.typeParameters[1],rr),l==="next"?bv($n.typeParameters[2],rr):void 0)}}let he,qe;for(const ln of be)l!=="throw"&&Pe(ln.parameters)&&(he=gn(he,Hm(ln,0))),qe=gn(qe,To(ln));let ht,Pt;if(l!=="throw"){const ln=he?ti(he):mn;if(l==="next")Pt=ln;else if(l==="return"){const Jn=a.resolveIterationType(ln,_)||U;ht=gn(ht,Jn)}}let on;const un=qe?Pa(qe):Wr,or=a.resolveIterationType(un,_)||U,Rn=eyt(or);return Rn===Fr?(_&&(m?(m.errors??(m.errors=[]),m.errors.push(Rr(_,a.mustHaveAValueDiagnostic,l))):We(_,a.mustHaveAValueDiagnostic,l)),on=U,ht=gn(ht,U)):(on=Rn.yieldType,ht=gn(ht,Rn.returnType)),e1(on,ti(ht),Pt)}function DLe(n,a,l,_,m){const h=SLe([gve(n,a,"next",l,_),gve(n,a,"return",l,_),gve(n,a,"throw",l,_)]);return m?h:s0(n,a.iteratorCacheKey,h)}function FS(n,a,l){if(Dt(a))return;const _=ALe(a,l);return _&&_[OCe(n)]}function ALe(n,a){if(Dt(n))return ia;const l=a?2:1,_=a?rc:jl;return mne(n,l,void 0)||Q0t(n,_,void 0,void 0)}function tyt(n){ey(n)||dvt(n)}function xz(n,a){const l=!!(a&1),_=!!(a&2);if(l){const m=FS(1,n,_);return m?_?Zy(p8(m)):m:mt}return _?Zy(n)||mt:n}function NLe(n,a){const l=xz(a,lu(n));return!!(l&&(Hc(l,16384)||l.flags&32769))}function nyt(n){if(ey(n))return;const a=QF(n);if(a&&Vc(a)){ju(n,p.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!a){ju(n,p.A_return_statement_can_only_be_used_within_a_function_body);return}const l=Vd(a),_=To(l),m=lu(a);if(X||n.expression||_.flags&131072){const h=n.expression?Sl(n.expression):Fe;if(a.kind===178)n.expression&&We(n,p.Setters_cannot_return_a_value);else if(a.kind===176)n.expression&&!xv(h,_,n,n.expression)&&We(n,p.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(fE(a)){const k=xz(_,m)??_,O=m&2?rO(h,!1,n,p.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):h;k&&xv(O,k,n,n.expression)}}else a.kind!==176&&z.noImplicitReturns&&!NLe(a,_)&&We(n,p.Not_all_code_paths_return_a_value)}function ryt(n){ey(n)||n.flags&65536&&ju(n,p.with_statements_are_not_allowed_in_an_async_function_block),ms(n.expression);const a=qn(n);if(!LS(a)){const l=Hg(a,n.pos).start,_=n.statement.pos;MS(a,l,_-l,p.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function iyt(n){ey(n);let a,l=!1;const _=ms(n.expression);dt(n.caseBlock.clauses,m=>{m.kind===297&&!l&&(a===void 0?a=m:(xn(m,p.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),l=!0)),m.kind===296&&r(h(m)),dt(m.statements,Ra),z.noFallthroughCasesInSwitch&&m.fallthroughFlowNode&&WJ(m.fallthroughFlowNode)&&We(m,p.Fallthrough_case_in_switch);function h(k){return()=>{const O=ms(k.expression);Q1e(_,O)||rOe(O,_,k.expression,void 0)}}}),n.caseBlock.locals&&Pv(n.caseBlock)}function syt(n){ey(n)||Vn(n.parent,a=>oa(a)?"quit":a.kind===256&&a.label.escapedText===n.label.escapedText?(xn(n.label,p.Duplicate_label_0,Ol(n.label)),!0):!1),Ra(n.statement)}function ayt(n){ey(n)||Je(n.expression)&&!n.expression.escapedText&&Dvt(n,p.Line_break_not_permitted_here),n.expression&&ms(n.expression)}function oyt(n){ey(n),fne(n.tryBlock);const a=n.catchClause;if(a){if(a.variableDeclaration){const l=a.variableDeclaration;bz(l);const _=zu(l);if(_){const m=ki(_);m&&!(m.flags&3)&&ju(_,p.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(l.initializer)ju(l.initializer,p.Catch_clause_variable_cannot_have_an_initializer);else{const m=a.block.locals;m&&Wg(a.locals,h=>{const k=m.get(h);k!=null&&k.valueDeclaration&&k.flags&2&&xn(k.valueDeclaration,p.Cannot_redeclare_identifier_0_in_catch_clause,Hi(h))})}}fne(a.block)}n.finallyBlock&&fne(n.finallyBlock)}function gne(n,a,l){const _=V_(n);if(_.length===0)return;for(const h of mv(n))l&&h.flags&4194304||ILe(n,h,gE(h,8576,!0),fv(h));const m=a.valueDeclaration;if(m&&fi(m)){for(const h of m.members)if(!da(h)&&!uE(h)){const k=Pr(h);ILe(n,k,Xu(h.name.expression),fv(k))}}if(_.length>1)for(const h of _)cyt(n,h)}function ILe(n,a,l,_){const m=a.valueDeclaration,h=Ms(m);if(h&&Qi(h))return;const k=E0e(n,l),O=Br(n)&2?Cc(n.symbol,264):void 0,j=m&&m.kind===226||h&&h.kind===167?m:void 0,W=rf(a)===n.symbol?m:void 0;for(const re of k){const be=re.declaration&&rf(Pr(re.declaration))===n.symbol?re.declaration:void 0,he=W||be||(O&&!Pe(ap(n),qe=>!!W2(qe,a.escapedName)&&!!q2(qe,re.keyType))?O:void 0);if(he&&!wa(_,re.type)){const qe=Kx(he,p.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,Ti(a),Hn(_),Hn(re.keyType),Hn(re.type));j&&he!==j&&Ua(qe,Rr(j,p._0_is_declared_here,Ti(a))),_o.add(qe)}}}function cyt(n,a){const l=a.declaration,_=E0e(n,a.keyType),m=Br(n)&2?Cc(n.symbol,264):void 0,h=l&&rf(Pr(l))===n.symbol?l:void 0;for(const k of _){if(k===a)continue;const O=k.declaration&&rf(Pr(k.declaration))===n.symbol?k.declaration:void 0,j=h||O||(m&&!Pe(ap(n),W=>!!r0(W,a.keyType)&&!!q2(W,k.keyType))?m:void 0);j&&!wa(a.type,k.type)&&We(j,p._0_index_type_1_is_not_assignable_to_2_index_type_3,Hn(a.keyType),Hn(a.type),Hn(k.keyType),Hn(k.type))}}function g8(n,a){switch(n.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":We(n,a,n.escapedText)}}function lyt(n){ce>=1&&n.escapedText==="Object"&&(J<5||qn(n).impliedNodeFormat===1)&&We(n,p.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,rP[J])}function uyt(n){const a=vr(Gv(n),Am);if(!Xe(a))return;const l=lr(n),_=new Set,m=new Set;if(dt(n.parameters,({name:k},O)=>{Je(k)&&_.add(k.escapedText),ca(k)&&m.add(O)}),w0e(n)){const k=a.length-1,O=a[k];l&&O&&Je(O.name)&&O.typeExpression&&O.typeExpression.type&&!_.has(O.name.escapedText)&&!m.has(k)&&!bd(ki(O.typeExpression.type))&&We(O.name,p.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,kr(O.name))}else dt(a,({name:k,isNameFirst:O},j)=>{m.has(j)||Je(k)&&_.has(k.escapedText)||(Z_(k)?l&&We(k,p.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,Vf(k),Vf(k.left)):O||Ru(l,k,p.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,kr(k)))})}function Tz(n){let a=!1;if(n)for(let _=0;_{_.default?(a=!0,_yt(_.default,n,m)):a&&We(_,p.Required_type_parameters_may_not_follow_optional_type_parameters);for(let h=0;h_)return!1;for(let j=0;jFl(l)&&O_(l))&&xn(a,p.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!n.name&&!Kr(n,2048)&&ju(n,p.A_class_declaration_without_the_default_modifier_must_have_a_name),MLe(n),dt(n.members,Ra),Pv(n)}function MLe(n){K1t(n),hz(n),d8(n,n.name),Tz(f1(n)),tO(n);const a=Pr(n),l=fc(a),_=kp(l),m=fr(a);OLe(a),lne(a),Aht(n),!!(n.flags&33554432)||Nht(n);const k=tg(n);if(k){dt(k.typeArguments,Ra),ce<2&&Xl(k.parent,1);const W=Sb(n);W&&W!==k&&ms(W.expression);const re=ap(l);re.length&&r(()=>{const be=re[0],he=sp(l),qe=of(he);if(hyt(qe,k),Ra(k.expression),Pe(k.typeArguments)){dt(k.typeArguments,Ra);for(const Pt of k_(qe,k.typeArguments,k))if(!rLe(k,Pt.typeParameters))break}const ht=kp(be,l.thisType);if(C_(_,ht,void 0)?C_(m,Y5e(qe),n.name||n,p.Class_static_side_0_incorrectly_extends_base_class_static_side_1):BLe(n,_,ht,p.Class_0_incorrectly_extends_base_class_1),he.flags&8650752&&(Ri(m)?ra(he,1).some(on=>on.flags&4)&&!Kr(n,64)&&We(n.name||n,p.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):We(n.name||n,p.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(qe.symbol&&qe.symbol.flags&32)&&!(he.flags&8650752)){const Pt=dh(qe,k.typeArguments,k);dt(Pt,on=>!Dg(on.declaration)&&!X0(To(on),be))&&We(k.expression,p.Base_constructors_must_all_have_the_same_return_type)}byt(l,be)})}gyt(n,l,_,m);const O=_4(n);if(O)for(const W of O)(!il(W.expression)||m_(W.expression))&&We(W.expression,p.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),rve(W),r(j(W));r(()=>{gne(l,a),gne(m,a,!0),eve(n),Tyt(n)});function j(W){return()=>{const re=Vm(ki(W));if(!Gt(re))if(lJ(re)){const be=re.symbol&&re.symbol.flags&32?p.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:p.Class_0_incorrectly_implements_interface_1,he=kp(re,l.thisType);C_(_,he,void 0)||BLe(n,_,he,be)}else We(W,p.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function gyt(n,a,l,_){const h=tg(n)&&ap(a),k=h!=null&&h.length?kp(Ka(h),a.thisType):void 0,O=sp(a);for(const j of n.members)_q(j)||($c(j)&&dt(j.parameters,W=>{Uf(W,j)&&RLe(n,_,O,k,a,l,W,!0)}),RLe(n,_,O,k,a,l,j,!1))}function RLe(n,a,l,_,m,h,k,O,j=!0){const W=k.name&&bm(k.name)||bm(k);return W?jLe(n,a,l,_,m,h,E9(k),Eb(k),da(k),O,Rc(W),j?k:void 0):0}function jLe(n,a,l,_,m,h,k,O,j,W,re,be){const he=lr(n),qe=!!(n.flags&33554432);if(_&&(k||z.noImplicitOverride)){const ht=Nc(re),Pt=j?a:h,on=j?l:_,un=Ea(Pt,ht),or=Ea(on,ht),Rn=Hn(_);if(un&&!or&&k){if(be){const ln=GFe(re,on);ln?We(be,he?p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,Rn,Ti(ln)):We(be,he?p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,Rn)}return 2}else if(un&&(or!=null&&or.declarations)&&z.noImplicitOverride&&!qe){const ln=Pe(or.declarations,Eb);if(k)return 0;if(ln){if(O&&ln)return be&&We(be,p.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,Rn),1}else{if(be){const Jn=W?he?p.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:p.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:he?p.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:p.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;We(be,Jn,Rn)}return 1}}}else if(k){if(be){const ht=Hn(m);We(be,he?p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:p.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,ht)}return 2}return 0}function BLe(n,a,l,_){let m=!1;for(const h of n.members){if(da(h))continue;const k=h.name&&bm(h.name)||bm(h);if(k){const O=Ea(a,k.escapedName),j=Ea(l,k.escapedName);if(O&&j){const W=()=>Hs(void 0,p.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,Ti(k),Hn(a),Hn(l));C_(fr(O),fr(j),h.name||h,void 0,W)||(m=!0)}}}m||C_(a,l,n.name||n,_)}function hyt(n,a){const l=ra(n,1);if(l.length){const _=l[0].declaration;if(_&&qf(_,2)){const m=v0(n.symbol);xve(a,m)||We(a,p.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,xp(n.symbol))}}}function yyt(n,a,l){if(!a.name)return 0;const _=Pr(n),m=fc(_),h=kp(m),k=fr(_),j=tg(n)&&ap(m),W=j!=null&&j.length?kp(Ka(j),m.thisType):void 0,re=sp(m),be=a.parent?E9(a):Kr(a,16);return jLe(n,k,re,W,m,h,be,Eb(a),da(a),!1,Rc(l))}function wE(n){return Uc(n)&1?n.links.target:n}function vyt(n){return vr(n.declarations,a=>a.kind===263||a.kind===264)}function byt(n,a){var l,_,m,h;const k=Po(a);let O;e:for(const j of k){const W=wE(j);if(W.flags&4194304)continue;const re=W2(n,W.escapedName);if(!re)continue;const be=wE(re),he=nd(W);if(w.assert(!!be,"derived should point to something, even if it is the base class' declaration."),be===W){const qe=v0(n.symbol);if(he&64&&(!qe||!Kr(qe,64))){for(const ht of ap(n)){if(ht===a)continue;const Pt=W2(ht,W.escapedName),on=Pt&&wE(Pt);if(on&&on!==W)continue e}O||(O=We(qe,p.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1,Hn(n),Hn(a))),qe.kind===231?Ua(O,Rr(j.valueDeclaration??(j.declarations&&Ka(j.declarations))??qe,p.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Ti(j),Hn(a))):Ua(O,Rr(j.valueDeclaration??(j.declarations&&Ka(j.declarations))??qe,p.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Hn(n),Ti(j),Hn(a)))}}else{const qe=nd(be);if(he&2||qe&2)continue;let ht;const Pt=W.flags&98308,on=be.flags&98308;if(Pt&&on){if((Uc(W)&6?(l=W.declarations)!=null&&l.some(Rn=>JLe(Rn,he)):(_=W.declarations)!=null&&_.every(Rn=>JLe(Rn,he)))||Uc(W)&262144||be.valueDeclaration&&mr(be.valueDeclaration))continue;const un=Pt!==4&&on===4;if(un||Pt===4&&on!==4){const Rn=un?p._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:p._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;We(Ms(be.valueDeclaration)||be.valueDeclaration,Rn,Ti(W),Hn(a),Hn(n))}else if(ge){const Rn=(m=be.declarations)==null?void 0:m.find(ln=>ln.kind===172&&!ln.initializer);if(Rn&&!(be.flags&33554432)&&!(he&64)&&!(qe&64)&&!((h=be.declarations)!=null&&h.some(ln=>!!(ln.flags&33554432)))){const ln=B0(v0(n.symbol)),Jn=Rn.name;if(Rn.exclamationToken||!ln||!Je(Jn)||!X||!ULe(Jn,n,ln)){const Bn=p.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration;We(Ms(be.valueDeclaration)||be.valueDeclaration,Bn,Ti(W),Hn(a))}}}continue}else if(v1e(W)){if(v1e(be)||be.flags&4)continue;w.assert(!!(be.flags&98304)),ht=p.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else W.flags&98304?ht=p.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:ht=p.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;We(Ms(be.valueDeclaration)||be.valueDeclaration,ht,Hn(a),Ti(W),Hn(n))}}}function JLe(n,a){return a&64&&(!Zs(n)||!n.initializer)||J_(n.parent)}function Syt(n,a,l){if(!Xe(a))return l;const _=new Map;dt(l,m=>{_.set(m.escapedName,m)});for(const m of a){const h=Po(kp(m,n.thisType));for(const k of h){const O=_.get(k.escapedName);O&&k.parent===O.parent&&_.delete(k.escapedName)}}return Vs(_.values())}function xyt(n,a){const l=ap(n);if(l.length<2)return!0;const _=new Map;dt(l0e(n).declaredProperties,h=>{_.set(h.escapedName,{prop:h,containingType:n})});let m=!0;for(const h of l){const k=Po(kp(h,n.thisType));for(const O of k){const j=_.get(O.escapedName);if(!j)_.set(O.escapedName,{prop:O,containingType:h});else if(j.containingType!==n&&!Fft(j.prop,O)){m=!1;const re=Hn(j.containingType),be=Hn(h);let he=Hs(void 0,p.Named_property_0_of_types_1_and_2_are_not_identical,Ti(O),re,be);he=Hs(he,p.Interface_0_cannot_simultaneously_extend_types_1_and_2,Hn(n),re,be),_o.add(m0(qn(a),a,he))}}}return m}function Tyt(n){if(!X||!we||n.flags&33554432)return;const a=B0(n);for(const l of n.members)if(!(M_(l)&128)&&!da(l)&&zLe(l)){const _=l.name;if(Je(_)||Qi(_)||co(_)){const m=fr(Pr(l));m.flags&3||YD(m)||(!a||!ULe(_,m,a))&&We(l.name,p.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,Bo(_))}}}function zLe(n){return n.kind===172&&!Eb(n)&&!n.exclamationToken&&!n.initializer}function kyt(n,a,l,_,m){for(const h of l)if(h.pos>=_&&h.pos<=m){const k=L.createPropertyAccessExpression(L.createThis(),n);eo(k.expression,k),eo(k,h),k.flowNode=h.returnFlowNode;const O=Ev(k,a,kv(a));if(!YD(O))return!0}return!1}function ULe(n,a,l){const _=co(n)?L.createElementAccessExpression(L.createThis(),n.expression):L.createPropertyAccessExpression(L.createThis(),n);eo(_.expression,_),eo(_,l),_.flowNode=l.returnFlowNode;const m=Ev(_,a,kv(a));return!YD(m)}function Cyt(n){a0(n)||avt(n),Tz(n.typeParameters),r(()=>{g8(n.name,p.Interface_name_cannot_be_0),tO(n);const a=Pr(n);OLe(a);const l=Cc(a,264);if(n===l){const _=fc(a),m=kp(_);if(xyt(_,n.name)){for(const h of ap(_))C_(m,kp(h,_.thisType),n.name,p.Interface_0_incorrectly_extends_interface_1);gne(_,a)}}K9e(n)}),dt(FP(n),a=>{(!il(a.expression)||m_(a.expression))&&We(a.expression,p.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),rve(a)}),dt(n.members,Ra),r(()=>{eve(n),Pv(n)})}function Eyt(n){a0(n),g8(n.name,p.Type_alias_name_cannot_be_0),tO(n),Tz(n.typeParameters),n.type.kind===141?(!GM.has(n.name.escapedText)||Xe(n.typeParameters)!==1)&&We(n.type,p.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(Ra(n.type),Pv(n))}function VLe(n){const a=ei(n);if(!(a.flags&1024)){a.flags|=1024;let l=0;for(const _ of n.members){const m=Pyt(_,l);ei(_).enumMemberValue=m,l=typeof m=="number"?m+1:void 0}}}function Pyt(n,a){if(DA(n.name))We(n.name,p.Computed_property_names_are_not_allowed_in_enums);else{const l=X6(n.name);Jh(l)&&!ow(l)&&We(n.name,p.An_enum_member_cannot_have_a_numeric_name)}if(n.initializer)return wyt(n);if(!(n.parent.flags&33554432&&!mb(n.parent))){if(a!==void 0)return a;We(n.name,p.Enum_member_must_have_initializer)}}function wyt(n){const a=mb(n.parent),l=n.initializer,_=h8(l,n);return _!==void 0?a&&typeof _=="number"&&!isFinite(_)&&We(l,isNaN(_)?p.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:p.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):a?We(l,p.const_enum_member_initializers_must_be_constant_expressions):n.parent.flags&33554432?We(l,p.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):C_(ms(l),xt,l,p.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),_}function h8(n,a){switch(n.kind){case 224:const l=h8(n.operand,a);if(typeof l=="number")switch(n.operator){case 40:return l;case 41:return-l;case 55:return~l}break;case 226:const _=h8(n.left,a),m=h8(n.right,a);if(typeof _=="number"&&typeof m=="number")switch(n.operatorToken.kind){case 52:return _|m;case 51:return _&m;case 49:return _>>m;case 50:return _>>>m;case 48:return _<Ayt(n))}function Ayt(n){a0(n),d8(n,n.name),tO(n),n.members.forEach(Nyt),VLe(n);const a=Pr(n),l=Cc(a,n.kind);if(n===l){if(a.declarations&&a.declarations.length>1){const m=mb(n);dt(a.declarations,h=>{a2(h)&&mb(h)!==m&&We(Ms(h),p.Enum_declarations_must_all_be_const_or_non_const)})}let _=!1;dt(a.declarations,m=>{if(m.kind!==266)return!1;const h=m;if(!h.members.length)return!1;const k=h.members[0];k.initializer||(_?We(k.name,p.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):_=!0)})}}function Nyt(n){Qi(n.name)&&We(n,p.An_enum_member_cannot_be_named_with_a_private_identifier),n.initializer&&ms(n.initializer)}function Iyt(n){const a=n.declarations;if(a){for(const l of a)if((l.kind===263||l.kind===262&&Ed(l.body))&&!(l.flags&33554432))return l}}function Oyt(n,a){const l=qg(n),_=qg(a);return oh(l)?oh(_):oh(_)?!1:l===_}function Fyt(n){n.body&&(Ra(n.body),eg(n)||Pv(n)),r(a);function a(){var l,_;const m=eg(n),h=n.flags&33554432;m&&!h&&We(n.name,p.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);const k=n_(n),O=k?p.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:p.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(kz(n,O))return;a0(n)||!h&&n.name.kind===11&&xn(n.name,p.Only_ambient_modules_can_use_quoted_names),Je(n.name)&&d8(n,n.name),tO(n);const j=Pr(n);if(j.flags&512&&!h&&UG(n,Nb(z))){if(Ld(z)&&!qn(n).externalModuleIndicator&&We(n.name,p.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement,$e),((l=j.declarations)==null?void 0:l.length)>1){const W=Iyt(j);W&&(qn(n)!==qn(W)?We(n.name,p.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):n.posre.kind===95);W&&We(W,p.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(k)if(db(n)){if((m||Pr(n).flags&33554432)&&n.body)for(const re of n.body.statements)hve(re,m)}else oh(n.parent)?m?We(n.name,p.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):yu(Ad(n.name))&&We(n.name,p.Ambient_module_declaration_cannot_specify_relative_module_name):m?We(n.name,p.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):We(n.name,p.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}function hve(n,a){switch(n.kind){case 243:for(const _ of n.declarationList.declarations)hve(_,a);break;case 277:case 278:ju(n,p.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 271:case 272:ju(n,p.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 208:case 260:const l=n.name;if(ca(l)){for(const _ of l.elements)hve(_,a);break}case 263:case 266:case 262:case 264:case 267:case 265:if(a)return;break}}function Lyt(n){switch(n.kind){case 80:return n;case 166:do n=n.left;while(n.kind!==80);return n;case 211:do{if(Fh(n.expression)&&!Qi(n.name))return n.name;n=n.expression}while(n.kind!==80);return n}}function yve(n){const a=a4(n);if(!a||nl(a))return!1;if(!Ba(a))return We(a,p.String_literal_expected),!1;const l=n.parent.kind===268&&n_(n.parent.parent);if(n.parent.kind!==312&&!l)return We(a,n.kind===278?p.Export_declarations_are_not_permitted_in_a_namespace:p.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(l&&yu(a.text)&&!ov(n))return We(n,p.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!Tu(n)&&n.attributes){const _=n.attributes.token===118?p.Import_attribute_values_must_be_string_literal_expressions:p.Import_assertion_values_must_be_string_literal_expressions;let m=!1;for(const h of n.attributes.elements)Ba(h.value)||(m=!0,We(h.value,_));return!m}return!0}function hne(n){var a,l,_,m;let h=Pr(n);const k=iu(h);if(k!==ft){if(h=po(h.exportSymbol||h),lr(n)&&!(k.flags&111551)&&!$v(n)){const W=pk(n)?n.propertyName||n.name:I_(n)?n.name:n;if(w.assert(n.kind!==280),n.kind===281){const re=We(W,p.Types_cannot_appear_in_export_declarations_in_JavaScript_files),be=(l=(a=qn(n).symbol)==null?void 0:a.exports)==null?void 0:l.get((n.propertyName||n.name).escapedText);if(be===k){const he=(_=be.declarations)==null?void 0:_.find(W6);he&&Ua(re,Rr(he,p._0_is_automatically_exported_here,Hi(be.escapedName)))}}else{w.assert(n.kind!==260);const re=Vn(n,Tm(eu,Tu)),be=(re&&((m=s4(re))==null?void 0:m.text))??"...",he=Hi(Je(W)?W.escapedText:h.escapedName);We(W,p._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,he,`import("${be}").${he}`)}return}const O=Hu(k),j=(h.flags&1160127?111551:0)|(h.flags&788968?788968:0)|(h.flags&1920?1920:0);if(O&j){const W=n.kind===281?p.Export_declaration_conflicts_with_exported_declaration_of_0:p.Import_declaration_conflicts_with_local_declaration_of_0;We(n,W,Ti(h))}else n.kind!==281&&z.isolatedModules&&!Vn(n,$v)&&h.flags&1160127&&We(n,p.Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Ti(h),$e);if(Ld(z)&&!$v(n)&&!(n.flags&33554432)){const W=fd(h),re=!(O&111551);if(re||W)switch(n.kind){case 273:case 276:case 271:{if(z.preserveValueImports||z.verbatimModuleSyntax){w.assertIsDefined(n.name,"An ImportClause with a symbol should have a name");const be=z.verbatimModuleSyntax&&r4(n)?p.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:re?z.verbatimModuleSyntax?p._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:p._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:z.verbatimModuleSyntax?p._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:p._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled,he=kr(n.kind===276&&n.propertyName||n.name);$h(We(n,be,he),re?void 0:W,he)}re&&n.kind===271&&qf(n,32)&&We(n,p.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,$e);break}case 281:if(z.verbatimModuleSyntax||qn(W)!==qn(n)){const be=kr(n.propertyName||n.name),he=re?We(n,p.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,$e):We(n,p._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,be,$e);$h(he,re?void 0:W,be);break}}z.verbatimModuleSyntax&&n.kind!==271&&!lr(n)&&(J===1||qn(n).impliedNodeFormat===1)&&We(n,p.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}if(Df(n)){const W=vve(h,n);$1(W)&&W.declarations&&zy(n,W.declarations,W.escapedName)}}}function vve(n,a){if(!(n.flags&2097152)||$1(n)||!pm(n))return n;const l=iu(n);if(l===ft)return l;for(;n.flags&2097152;){const _=p1e(n);if(_){if(_===l)break;if(_.declarations&&Xe(_.declarations))if($1(_)){zy(a,_.declarations,_.escapedName);break}else{if(n===l)break;n=_}}else break}return l}function yne(n){d8(n,n.name),hne(n),n.kind===276&&kr(n.propertyName||n.name)==="default"&&$g(z)&&J!==4&&(J<5||qn(n).impliedNodeFormat===1)&&Xl(n,131072)}function HLe(n){var a;const l=n.attributes;if(l){const _=z0e(!0);_!==Ja&&C_(ue(l),RJ(_,32768),l);const m=N$(n),h=r3(l,m?xn:void 0),k=n.attributes.token===118;if(m&&h)return;if((J===199&&n.moduleSpecifier&&is(n.moduleSpecifier))!==99&&J!==99&&J!==200){const j=k?J===199?p.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:p.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:J===199?p.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:p.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve;return xn(l,j)}if(eu(n)?(a=n.importClause)!=null&&a.isTypeOnly:n.isTypeOnly)return xn(l,k?p.Import_attributes_cannot_be_used_with_type_only_imports_or_exports:p.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(h)return xn(l,p.resolution_mode_can_only_be_set_for_type_only_imports)}}function Myt(n){return q_(Sl(n.value))}function Ryt(n){if(!kz(n,lr(n)?p.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:p.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!a0(n)&&C9(n)&&ju(n,p.An_import_declaration_cannot_have_modifiers),yve(n)){const a=n.importClause;a&&!Nvt(a)&&(a.name&&yne(a),a.namedBindings&&(a.namedBindings.kind===274?(yne(a.namedBindings),J!==4&&(J<5||qn(n).impliedNodeFormat===1)&&$g(z)&&Xl(n,65536)):U_(n,n.moduleSpecifier)&&dt(a.namedBindings.elements,yne)))}HLe(n)}}function jyt(n){if(!kz(n,lr(n)?p.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:p.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(a0(n),r4(n)||yve(n)))if(yne(n),Kr(n,32)&&ev(n),n.moduleReference.kind!==283){const a=iu(Pr(n));if(a!==ft){const l=Hu(a);if(l&111551){const _=yp(n.moduleReference);ic(_,112575).flags&1920||We(_,p.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,Bo(_))}l&788968&&g8(n.name,p.Import_name_cannot_be_0)}n.isTypeOnly&&xn(n,p.An_import_alias_cannot_use_import_type)}else J>=5&&J!==200&&qn(n).impliedNodeFormat===void 0&&!n.isTypeOnly&&!(n.flags&33554432)&&xn(n,p.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}function Byt(n){if(!kz(n,lr(n)?p.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:p.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!a0(n)&&rae(n)&&ju(n,p.An_export_declaration_cannot_have_modifiers),n.moduleSpecifier&&n.exportClause&&sd(n.exportClause)&&Xe(n.exportClause.elements)&&ce===0&&Xl(n,4194304),Jyt(n),!n.moduleSpecifier||yve(n))if(n.exportClause&&!Zg(n.exportClause)){dt(n.exportClause.elements,Hyt);const a=n.parent.kind===268&&n_(n.parent.parent),l=!a&&n.parent.kind===268&&!n.moduleSpecifier&&n.flags&33554432;n.parent.kind!==312&&!a&&!l&&We(n,p.Export_declarations_are_not_permitted_in_a_namespace)}else{const a=U_(n,n.moduleSpecifier);a&&Wy(a)?We(n.moduleSpecifier,p.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Ti(a)):n.exportClause&&hne(n.exportClause),J!==4&&(J<5||qn(n).impliedNodeFormat===1)&&(n.exportClause?$g(z)&&Xl(n,65536):Xl(n,32768))}HLe(n)}}function Jyt(n){var a;return n.isTypeOnly&&((a=n.exportClause)==null?void 0:a.kind)===279?kMe(n.exportClause):!1}function kz(n,a){const l=n.parent.kind===312||n.parent.kind===268||n.parent.kind===267;return l||ju(n,a),!l}function zyt(n){return _9(n,a=>!!Pr(a).isReferenced)}function Uyt(n){return _9(n,a=>!!Zi(Pr(a)).constEnumReferenced)}function Vyt(n){return eu(n)&&n.importClause&&!n.importClause.isTypeOnly&&zyt(n.importClause)&&!kne(n.importClause,!0)&&!Uyt(n.importClause)}function Wyt(n){return Tu(n)&&Kg(n.moduleReference)&&!n.isTypeOnly&&Pr(n).isReferenced&&!kne(n,!1)&&!Zi(Pr(n)).constEnumReferenced}function qyt(n){if(kt)for(const a of n.statements)(Vyt(a)||Wyt(a))&&We(a,p.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}function Hyt(n){if(hne(n),rd(z)&&BD(n.propertyName||n.name,!0),n.parent.parent.moduleSpecifier)$g(z)&&J!==4&&(J<5||qn(n).impliedNodeFormat===1)&&kr(n.propertyName||n.name)==="default"&&Xl(n,131072);else{const a=n.propertyName||n.name,l=Lc(a,a.escapedText,2998271,void 0,void 0,!0);if(l&&(l===ze||l===st||l.declarations&&oh(Y(l.declarations[0]))))We(a,p.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,kr(a));else{!n.isTypeOnly&&!n.parent.parent.isTypeOnly&&ev(n);const _=l&&(l.flags&2097152?iu(l):l);(!_||Hu(_)&111551)&&Sl(n.propertyName||n.name)}}}function Gyt(n){const a=n.isExportEquals?p.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:p.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(kz(n,a))return;const l=n.parent.kind===312?n.parent:n.parent.parent;if(l.kind===267&&!n_(l)){n.isExportEquals?We(n,p.An_export_assignment_cannot_be_used_in_a_namespace):We(n,p.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!a0(n)&&C9(n)&&ju(n,p.An_export_assignment_cannot_have_modifiers);const _=zu(n);_&&C_(Sl(n.expression),ki(_),n.expression);const m=!n.isExportEquals&&!(n.flags&33554432)&&z.verbatimModuleSyntax&&(J===1||qn(n).impliedNodeFormat===1);if(n.expression.kind===80){const h=n.expression,k=Gp(ic(h,-1,!0,!0,n));if(k){const O=fd(k,111551);if(Mte(k,h),Hu(k)&111551?(Sl(h),!m&&!(n.flags&33554432)&&z.verbatimModuleSyntax&&O&&We(h,n.isExportEquals?p.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:p.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,kr(h))):!m&&!(n.flags&33554432)&&z.verbatimModuleSyntax&&We(h,n.isExportEquals?p.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:p.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,kr(h)),!m&&!(n.flags&33554432)&&Ld(z)&&!(k.flags&111551)){const j=Hu(k,!1,!0);k.flags&2097152&&j&788968&&!(j&111551)&&(!O||qn(O)!==qn(n))?We(h,n.isExportEquals?p._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:p._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,kr(h),$e):O&&qn(O)!==qn(n)&&$h(We(h,n.isExportEquals?p._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:p._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,kr(h),$e),O,kr(h))}}else Sl(h);rd(z)&&BD(h,!0)}else Sl(n.expression);m&&We(n,p.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),GLe(l),n.flags&33554432&&!il(n.expression)&&xn(n.expression,p.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),n.isExportEquals&&(J>=5&&J!==200&&(n.flags&33554432&&qn(n).impliedNodeFormat===99||!(n.flags&33554432)&&qn(n).impliedNodeFormat!==1)?xn(n,p.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):J===4&&!(n.flags&33554432)&&xn(n,p.Export_assignment_is_not_supported_when_module_flag_is_system))}function $yt(n){return cu(n.exports,(a,l)=>l!=="export=")}function GLe(n){const a=Pr(n),l=Zi(a);if(!l.exportsChecked){const _=a.exports.get("export=");if(_&&$yt(a)){const h=pm(_)||_.valueDeclaration;h&&!ov(h)&&!lr(h)&&We(h,p.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}const m=lh(a);m&&m.forEach(({declarations:h,flags:k},O)=>{if(O==="__export"||k&1920)return;const j=Bc(h,LO(FCe,MO(J_)));if(!(k&524288&&j<=2)&&j>1&&!vne(h))for(const W of h)NCe(W)&&_o.add(Rr(W,p.Cannot_redeclare_exported_variable_0,Hi(O)))}),l.exportsChecked=!0}}function vne(n){return n&&n.length>1&&n.every(a=>lr(a)&&$o(a)&&(ax(a.expression)||Fh(a.expression)))}function Ra(n){if(n){const a=D;D=n,T=0,Xyt(n),D=a}}function Xyt(n){ZA(n)&&dt(n.jsDoc,({comment:l,tags:_})=>{$Le(l),dt(_,m=>{$Le(m.comment),lr(n)&&Ra(m)})});const a=n.kind;if(i)switch(a){case 267:case 263:case 264:case 262:i.throwIfCancellationRequested()}switch(a>=243&&a<=259&&YA(n)&&n.flowNode&&!WJ(n.flowNode)&&Ru(z.allowUnreachableCode===!1,n,p.Unreachable_code_detected),a){case 168:return Q9e(n);case 169:return Y9e(n);case 172:return eLe(n);case 171:return Iht(n);case 185:case 184:case 179:case 180:case 181:return eO(n);case 174:case 173:return Oht(n);case 175:return Fht(n);case 176:return Lht(n);case 177:case 178:return nLe(n);case 183:return rve(n);case 182:return wht(n);case 186:return zht(n);case 187:return Uht(n);case 188:return Vht(n);case 189:return Wht(n);case 192:case 193:return qht(n);case 196:case 190:case 191:return Ra(n.type);case 197:return Xht(n);case 198:return Qht(n);case 194:return Yht(n);case 195:return Zht(n);case 203:return Kht(n);case 205:return e0t(n);case 202:return t0t(n);case 335:return b0t(n);case 336:return v0t(n);case 353:case 345:case 347:return u0t(n);case 352:return _0t(n);case 351:return f0t(n);case 331:case 332:case 333:return d0t(n);case 348:return m0t(n);case 355:return g0t(n);case 324:h0t(n);case 322:case 321:case 319:case 320:case 329:XLe(n),Xs(n,Ra);return;case 325:Qyt(n);return;case 316:return Ra(n.type);case 340:case 342:case 341:return S0t(n);case 357:return p0t(n);case 350:return y0t(n);case 199:return Hht(n);case 200:return Ght(n);case 262:return l0t(n);case 241:case 268:return fne(n);case 243:return B0t(n);case 244:return J0t(n);case 245:return z0t(n);case 246:return W0t(n);case 247:return q0t(n);case 248:return H0t(n);case 249:return $0t(n);case 250:return G0t(n);case 251:case 252:return tyt(n);case 253:return nyt(n);case 254:return ryt(n);case 255:return iyt(n);case 256:return syt(n);case 257:return ayt(n);case 258:return oyt(n);case 260:return R0t(n);case 208:return j0t(n);case 263:return myt(n);case 264:return Cyt(n);case 265:return Eyt(n);case 266:return Dyt(n);case 267:return Fyt(n);case 272:return Ryt(n);case 271:return jyt(n);case 278:return Byt(n);case 277:return Gyt(n);case 242:case 259:ey(n);return;case 282:return Rht(n)}}function $Le(n){Ps(n)&&dt(n,a=>{hk(a)&&Ra(a)})}function XLe(n){if(!lr(n))if(nM(n)||j4(n)){const a=ba(nM(n)?54:58),l=n.postfix?p._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:p._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,_=n.type,m=ki(_);xn(n,l,a,Hn(j4(n)&&!(m===Wr||m===sr)?ti(gn([m,Fe],n.postfix?void 0:de)):m))}else xn(n,p.JSDoc_types_can_only_be_used_inside_documentation_comments)}function Qyt(n){XLe(n),Ra(n.type);const{parent:a}=n;if(ws(a)&&B4(a.parent)){so(a.parent.parameters)!==a&&We(n,p.A_rest_parameter_must_be_last_in_a_parameter_list);return}Ub(a)||We(n,p.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const l=n.parent.parent;if(!Am(l)){We(n,p.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}const _=KA(l);if(!_)return;const m=Zv(l);(!m||so(m.parameters).symbol!==_)&&We(n,p.A_rest_parameter_must_be_last_in_a_parameter_list)}function Yyt(n){const a=ki(n.type),{parent:l}=n,_=n.parent.parent;if(Ub(n.parent)&&Am(_)){const m=Zv(_),h=IH(_.parent.parent);if(m||h){const k=pc(h?_.parent.parent.typeExpression.parameters:m.parameters),O=KA(_);if(!k||O&&k.symbol===O&&Ah(k))return u_(a)}}return ws(l)&&B4(l.parent)?u_(a):Mf(a)}function o6(n){const a=qn(n),l=ei(a);l.flags&1?w.assert(!l.deferredNodes,"A type-checked file should have no deferred nodes."):(l.deferredNodes||(l.deferredNodes=new Set),l.deferredNodes.add(n))}function Zyt(n){const a=ei(n);a.deferredNodes&&a.deferredNodes.forEach(Kyt),a.deferredNodes=void 0}function Kyt(n){var a,l;(a=cr)==null||a.push(cr.Phase.Check,"checkDeferredNode",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});const _=D;switch(D=n,T=0,n.kind){case 213:case 214:case 215:case 170:case 286:zT(n);break;case 218:case 219:case 174:case 173:Ggt(n);break;case 177:case 178:nLe(n);break;case 231:dyt(n);break;case 168:Pht(n);break;case 285:nmt(n);break;case 284:imt(n);break;case 216:case 234:case 217:bgt(n);break;case 222:ms(n.expression);break;case 226:w9(n)&&zT(n);break}D=_,(l=cr)==null||l.pop()}function e1t(n){var a,l;(a=cr)==null||a.push(cr.Phase.Check,"checkSourceFile",{path:n.path},!0),gc("beforeCheck"),t1t(n),gc("afterCheck"),Ap("Check","beforeCheck","afterCheck"),(l=cr)==null||l.pop()}function QLe(n,a){if(a)return!1;switch(n){case 0:return!!z.noUnusedLocals;case 1:return!!z.noUnusedParameters;default:return w.assertNever(n)}}function YLe(n){return Vp.get(n.path)||Ke}function t1t(n){const a=ei(n);if(!(a.flags&1)){if(nw(n,z,e))return;Pvt(n),Al(aS),Al(oS),Al(q1),Al(H1),Al(Gh),dt(n.statements,Ra),Ra(n.endOfFileToken),Zyt(n),mp(n)&&Pv(n),r(()=>{!n.isDeclarationFile&&(z.noUnusedLocals||z.noUnusedParameters)&&dLe(YLe(n),(l,_,m)=>{!G6(l)&&QLe(_,!!(l.flags&33554432))&&_o.add(m)}),n.isDeclarationFile||C0t()}),z.importsNotUsedAsValues===2&&!n.isDeclarationFile&&Cl(n)&&qyt(n),mp(n)&&GLe(n),aS.length&&(dt(aS,w0t),Al(aS)),oS.length&&(dt(oS,D0t),Al(oS)),q1.length&&(dt(q1,O0t),Al(q1)),H1.length&&(dt(H1,L0t),Al(H1)),a.flags|=1}}function ZLe(n,a){try{return i=a,n1t(n)}finally{i=void 0}}function bve(){for(const n of t)n();t=[]}function Sve(n){bve();const a=r;r=l=>l(),e1t(n),r=a}function n1t(n){if(n){bve();const a=_o.getGlobalDiagnostics(),l=a.length;Sve(n);const _=_o.getDiagnostics(n.fileName),m=_o.getGlobalDiagnostics();if(m!==a){const h=Fg(a,m,YP);return zn(h,_)}else if(l===0&&m.length>0)return zn(m,_);return _}return dt(e.getSourceFiles(),Sve),_o.getDiagnostics()}function r1t(){return bve(),_o.getGlobalDiagnostics()}function i1t(n,a){if(n.flags&67108864)return[];const l=ha();let _=!1;return m(),l.delete("this"),P0e(l);function m(){for(;n;){switch(Ug(n)&&n.locals&&!oh(n)&&k(n.locals,a),n.kind){case 312:if(!Cl(n))break;case 267:O(Pr(n).exports,a&2623475);break;case 266:k(Pr(n).exports,a&8);break;case 231:n.name&&h(n.symbol,a);case 263:case 264:_||k(dv(Pr(n)),a&788968);break;case 218:n.name&&h(n.symbol,a);break}xse(n)&&h(zt,a),_=da(n),n=n.parent}k(xe,a)}function h(j,W){if(b4(j)&W){const re=j.escapedName;l.has(re)||l.set(re,j)}}function k(j,W){W&&j.forEach(re=>{h(re,W)})}function O(j,W){W&&j.forEach(re=>{!Cc(re,281)&&!Cc(re,280)&&re.escapedName!=="default"&&h(re,W)})}}function s1t(n){return n.kind===80&&P4(n.parent)&&Ms(n.parent)===n}function KLe(n){for(;n.parent.kind===166;)n=n.parent;return n.parent.kind===183}function a1t(n){for(;n.parent.kind===211;)n=n.parent;return n.parent.kind===233}function eMe(n,a){let l,_=Du(n);for(;_&&!(l=a(_));)_=Du(_);return l}function o1t(n){return!!Vn(n,a=>$c(a)&&Ed(a.body)||Zs(a)?!0:fi(a)||Ko(a)?"quit":!1)}function xve(n,a){return!!eMe(n,l=>l===a)}function c1t(n){for(;n.parent.kind===166;)n=n.parent;if(n.parent.kind===271)return n.parent.moduleReference===n?n.parent:void 0;if(n.parent.kind===277)return n.parent.expression===n?n.parent:void 0}function bne(n){return c1t(n)!==void 0}function l1t(n){switch(rl(n.parent.parent)){case 1:case 3:return Hp(n.parent);case 5:if(Jr(n.parent)&&S4(n.parent)===n)return;case 4:case 2:return Pr(n.parent.parent)}}function u1t(n){let a=n.parent;for(;Z_(a);)n=a,a=a.parent;if(a&&a.kind===205&&a.qualifier===n)return a}function _1t(n){if(n.expression.kind===110){const a=_f(n,!1,!1);if(oa(a)){const l=_Fe(a);if(l){const _=tb(l,void 0),m=pFe(l,_);return m&&!Dt(m)}}}}function tMe(n){if(h0(n))return Hp(n.parent);if(lr(n)&&n.parent.kind===211&&n.parent===n.parent.parent.left&&!Qi(n)&&!o2(n)&&!_1t(n.parent)){const a=l1t(n);if(a)return a}if(n.parent.kind===277&&il(n)){const a=ic(n,2998271,!0);if(a&&a!==ft)return a}else if(Ef(n)&&bne(n)){const a=e2(n,271);return w.assert(a!==void 0),WC(n,!0)}if(Ef(n)){const a=u1t(n);if(a){ki(a);const l=ei(n).resolvedSymbol;return l===ft?void 0:l}}for(;lae(n);)n=n.parent;if(a1t(n)){let a=0;n.parent.kind===233?(a=Ih(n)?788968:111551,P9(n.parent)&&(a|=111551)):a=1920,a|=2097152;const l=il(n)?ic(n,a,!0):void 0;if(l)return l}if(n.parent.kind===348)return KA(n.parent);if(n.parent.kind===168&&n.parent.parent.kind===352){w.assert(!lr(n));const a=Lse(n.parent);return a&&a.symbol}if(Oh(n)){if(nl(n))return;const a=Vn(n,Tm(hk,ww,o2)),l=a?901119:111551;if(n.kind===80){if(n4(n)&&a6(n)){const m=Vte(n.parent);return m===ft?void 0:m}const _=ic(n,l,!0,!0,Zv(n));if(!_&&a){const m=Vn(n,Tm(fi,J_));if(m)return Cz(n,!0,Pr(m))}if(_&&a){const m=lx(n);if(m&&zb(m)&&m===_.valueDeclaration)return ic(n,l,!0,!0,qn(m))||_}return _}else{if(Qi(n))return Hte(n);if(n.kind===211||n.kind===166){const _=ei(n);return _.resolvedSymbol?_.resolvedSymbol:(n.kind===211?(Wte(n,0),_.resolvedSymbol||(_.resolvedSymbol=nMe(Sl(n.expression),Xy(n.name)))):JFe(n,0),!_.resolvedSymbol&&a&&Z_(n)?Cz(n):_.resolvedSymbol)}else if(o2(n))return Cz(n)}}else if(KLe(n)){const a=n.parent.kind===183?788968:1920,l=ic(n,a,!1,!0);return l&&l!==ft?l:Hee(n)}if(n.parent.kind===182)return ic(n,1)}function nMe(n,a){const l=E0e(n,a);if(l.length&&n.members){const _=Vee(Um(n).members);if(l===V_(n))return _;if(_){const m=Zi(_),h=Oi(l,O=>O.declaration),k=Kt(h,ho).join(",");if(m.filteredIndexSymbolCache||(m.filteredIndexSymbolCache=new Map),m.filteredIndexSymbolCache.has(k))return m.filteredIndexSymbolCache.get(k);{const O=ro(131072,"__index");return O.declarations=Oi(l,j=>j.declaration),O.parent=n.aliasSymbol?n.aliasSymbol:n.symbol?n.symbol:bm(O.declarations[0].parent),m.filteredIndexSymbolCache.set(k,O),O}}}}function Cz(n,a,l){if(Ef(n)){let k=ic(n,901119,a,!0,Zv(n));if(!k&&Je(n)&&l&&(k=po(bf(ip(l),n.escapedText,901119))),k)return k}const _=Je(n)?l:Cz(n.left,a,l),m=Je(n)?n.escapedText:n.right.escapedText;if(_){const h=_.flags&111551&&Ea(fr(_),"prototype"),k=h?fr(h):fc(_);return Ea(k,m)}}function bm(n,a){if(es(n))return Cl(n)?po(n.symbol):void 0;const{parent:l}=n,_=l.parent;if(!(n.flags&67108864)){if(ICe(n)){const m=Pr(l);return pk(n.parent)&&n.parent.propertyName===n?p1e(m):m}else if(nN(n))return Pr(l.parent);if(n.kind===80){if(bne(n))return tMe(n);if(l.kind===208&&_.kind===206&&n===l.propertyName){const m=c6(_),h=Ea(m,n.escapedText);if(h)return h}else if(Sw(l)&&l.name===n)return l.keywordToken===105&&kr(n)==="target"?J1e(l).symbol:l.keywordToken===102&&kr(n)==="meta"?i5e().members.get("meta"):void 0}switch(n.kind){case 80:case 81:case 211:case 166:if(!Ck(n))return tMe(n);case 110:const m=_f(n,!1,!1);if(oa(m)){const O=Vd(m);if(O.thisParameter)return O.thisParameter}if(n9(n))return ms(n).symbol;case 197:return nte(n).symbol;case 108:return ms(n).symbol;case 137:const h=n.parent;return h&&h.kind===176?h.parent.symbol:void 0;case 11:case 15:if(Qv(n.parent.parent)&&DP(n.parent.parent)===n||(n.parent.kind===272||n.parent.kind===278)&&n.parent.moduleSpecifier===n||lr(n)&&Q_(n.parent,!1)||gp(n.parent)||N1(n.parent)&&b1(n.parent.parent)&&n.parent.parent.argument===n.parent)return U_(n,n,a);if(ma(l)&&ox(l)&&l.arguments[1]===n)return Pr(l);case 9:const k=uc(l)?l.argumentExpression===n?Xu(l.expression):void 0:N1(l)&&xx(_)?ki(_.objectType):void 0;return k&&Ea(k,Nc(n.text));case 90:case 100:case 39:case 86:return Hp(n.parent);case 205:return b1(n)?bm(n.argument.literal,a):void 0;case 95:return Qc(n.parent)?w.checkDefined(n.parent.symbol):void 0;case 102:case 105:return Sw(n.parent)?T9e(n.parent).symbol:void 0;case 104:if(mr(n.parent)){const O=Xu(n.parent.right),j=X1e(O);return(j==null?void 0:j.symbol)??O.symbol}return;case 236:return ms(n).symbol;case 295:if(n4(n)&&a6(n)){const O=Vte(n.parent);return O===ft?void 0:O}default:return}}}function f1t(n){if(Je(n)&&Jr(n.parent)&&n.parent.name===n){const a=Xy(n),l=Xu(n.parent.expression),_=l.flags&1048576?l.types:[l];return Ys(_,m=>vr(V_(m),h=>KC(a,h.keyType)))}}function p1t(n){if(n&&n.kind===304)return ic(n.name,2208703)}function d1t(n){return h_(n)?n.parent.parent.moduleSpecifier?R0(n.parent.parent,n):ic(n.propertyName||n.name,2998271):ic(n,2998271)}function c6(n){if(es(n)&&!Cl(n)||n.flags&67108864)return mt;const a=mq(n),l=a&&gd(Pr(a.class));if(Ih(n)){const _=ki(n);return l?kp(_,l.thisType):_}if(Oh(n))return rMe(n);if(l&&!a.isImplements){const _=hu(ap(l));return _?kp(_,l.thisType):mt}if(P4(n)){const _=Pr(n);return fc(_)}if(s1t(n)){const _=bm(n);return _?fc(_):mt}if(oo(n))return ST(n,!0,0)||mt;if(g_(n)){const _=Pr(n);return _?fr(_):mt}if(ICe(n)){const _=bm(n);return _?fr(_):mt}if(ca(n))return ST(n.parent,!0,0)||mt;if(bne(n)){const _=bm(n);if(_){const m=fc(_);return Gt(m)?fr(_):m}}return Sw(n.parent)&&n.parent.keywordToken===n.kind?T9e(n.parent):Yk(n)?z0e(!1):mt}function Sne(n){if(w.assert(n.kind===210||n.kind===209),n.parent.kind===250){const m=Sz(n.parent);return VT(n,m||mt)}if(n.parent.kind===226){const m=Xu(n.parent.right);return VT(n,m||mt)}if(n.parent.kind===303){const m=pa(n.parent.parent,Va),h=Sne(m)||mt,k=$6(m.properties,n.parent);return J9e(m,h,k)}const a=pa(n.parent,B_),l=Sne(a)||mt,_=Ky(65,l,Fe,n.parent)||mt;return z9e(a,l,a.elements.indexOf(n),_)}function m1t(n){const a=Sne(pa(n.parent.parent,bP));return a&&Ea(a,n.escapedText)}function rMe(n){return qP(n)&&(n=n.parent),q_(Xu(n))}function iMe(n){const a=Hp(n.parent);return da(n)?fr(a):fc(a)}function sMe(n){const a=n.name;switch(a.kind){case 80:return xf(kr(a));case 9:case 11:return xf(a.text);case 167:const l=i0(a);return $u(l,12288)?l:Ie;default:return w.fail("Unsupported property name.")}}function Tve(n){n=of(n);const a=ha(Po(n)),l=ra(n,0).length?Xn:ra(n,1).length?Ts:void 0;return l&&dt(Po(l),_=>{a.has(_.escapedName)||a.set(_.escapedName,_)}),M2(a)}function xne(n){return ra(n,0).length!==0||ra(n,1).length!==0}function aMe(n){const a=g1t(n);return a?Ys(a,aMe):[n]}function g1t(n){if(Uc(n)&6)return Oi(Zi(n).containingType.types,a=>Ea(a,n.escapedName));if(n.flags&33554432){const{links:{leftSpread:a,rightSpread:l,syntheticOrigin:_}}=n;return a?[a,l]:_?[_]:ok(h1t(n))}}function h1t(n){let a,l=n;for(;l=Zi(l).target;)a=l;return a}function y1t(n){if(vc(n))return!1;const a=Is(n,Je);if(!a)return!1;const l=a.parent;return l?!((Jr(l)||Ml(l))&&l.name===a)&&lO(a)===zt:!1}function v1t(n){let a=U_(n.parent,n);if(!a||kP(a))return!0;const l=Wy(a);a=rp(a);const _=Zi(a);return _.exportsSomeValue===void 0&&(_.exportsSomeValue=l?!!(a.flags&111551):cu(lh(a),m)),_.exportsSomeValue;function m(h){return h=al(h),h&&!!(Hu(h)&111551)}}function b1t(n){return bA(n.parent)&&n===n.parent.name}function S1t(n,a){var l;const _=Is(n,Je);if(_){let m=lO(_,b1t(_));if(m){if(m.flags&1048576){const k=po(m.exportSymbol);if(!a&&k.flags&944&&!(k.flags&3))return;m=k}const h=rf(m);if(h){if(h.flags&512&&((l=h.valueDeclaration)==null?void 0:l.kind)===312){const k=h.valueDeclaration,O=qn(_);return k!==O?void 0:k}return Vn(_.parent,k=>bA(k)&&Pr(k)===h)}}}}function x1t(n){const a=voe(n);if(a)return a;const l=Is(n,Je);if(l){const _=L1t(l);if(uT(_,111551)&&!fd(_,111551))return pm(_)}}function T1t(n){return n.valueDeclaration&&oo(n.valueDeclaration)&&j6(n.valueDeclaration).parent.kind===299}function oMe(n){if(n.flags&418&&n.valueDeclaration&&!es(n.valueDeclaration)){const a=Zi(n);if(a.isDeclarationWithCollidingName===void 0){const l=qg(n.valueDeclaration);if(tse(l)||T1t(n)){const _=ei(n.valueDeclaration);if(Lc(l.parent,n.escapedName,111551,void 0,void 0,!1))a.isDeclarationWithCollidingName=!0;else if(_.flags&16384){const m=_.flags&32768,h=m1(l,!1),k=l.kind===241&&m1(l.parent,!1);a.isDeclarationWithCollidingName=!cse(l)&&(!m||!h&&!k)}else a.isDeclarationWithCollidingName=!1}}return a.isDeclarationWithCollidingName}return!1}function k1t(n){if(!vc(n)){const a=Is(n,Je);if(a){const l=lO(a);if(l&&oMe(l))return l.valueDeclaration}}}function C1t(n){const a=Is(n,g_);if(a){const l=Pr(a);if(l)return oMe(l)}return!1}function cMe(n){switch(w.assert(kt),n.kind){case 271:return Tne(Pr(n));case 273:case 274:case 276:case 281:const a=Pr(n);return!!a&&Tne(a,!0);case 278:const l=n.exportClause;return!!l&&(Zg(l)||Pe(l.elements,cMe));case 277:return n.expression&&n.expression.kind===80?Tne(Pr(n),!0):!0}return!1}function E1t(n){const a=Is(n,Tu);return a===void 0||a.parent.kind!==312||!r4(a)?!1:Tne(Pr(a))&&a.moduleReference&&!nl(a.moduleReference)}function Tne(n,a){if(!n)return!1;const l=Gp(iu(n));return l===ft?!a||!fd(n):!!(Hu(n,a,!0)&111551)&&(Nb(z)||!cO(l))}function cO(n){return $1e(n)||!!n.constEnumOnlyModule}function kne(n,a){if(w.assert(kt),Y1(n)){const l=Pr(n),_=l&&Zi(l);if(_!=null&&_.referenced)return!0;const m=Zi(l).aliasTarget;if(m&&M_(n)&32&&Hu(m)&111551&&(Nb(z)||!cO(m)))return!0}return a?!!Xs(n,l=>kne(l,a)):!1}function lMe(n){if(Ed(n.body)){if(g1(n)||my(n))return!1;const a=Pr(n),l=xS(a);return l.length>1||l.length===1&&l[0].declaration!==n}return!1}function uMe(n){return!!X&&!P5(n)&&!Am(n)&&!!n.initializer&&!Kr(n,31)}function P1t(n){return X&&P5(n)&&!n.initializer&&Kr(n,31)}function w1t(n){const a=Is(n,Wl);if(!a)return!1;const l=Pr(a);return!l||!(l.flags&16)?!1:!!cu(ip(l),_=>_.flags&111551&&rL(_.valueDeclaration))}function D1t(n){const a=Is(n,Wl);if(!a)return Ke;const l=Pr(a);return l&&Po(fr(l))||Ke}function DE(n){var a;const l=n.id||0;return l<0||l>=sS.length?0:((a=sS[l])==null?void 0:a.flags)||0}function AE(n){return VLe(n.parent),ei(n).enumMemberValue}function _Me(n){switch(n.kind){case 306:case 211:case 212:return!0}return!1}function kve(n){if(n.kind===306)return AE(n);const a=ei(n).resolvedSymbol;if(a&&a.flags&8){const l=a.valueDeclaration;if(mb(l.parent))return AE(l)}}function Cve(n){return!!(n.flags&524288)&&ra(n,0).length>0}function A1t(n,a){var l;const _=Is(n,Ef);if(!_||a&&(a=Is(a),!a))return 0;let m=!1;if(Z_(_)){const re=ic(yp(_),111551,!0,!0,a);m=!!((l=re==null?void 0:re.declarations)!=null&&l.every($v))}const h=ic(_,111551,!0,!0,a),k=h&&h.flags&2097152?iu(h):h;m||(m=!!(h&&fd(h,111551)));const O=ic(_,788968,!0,!0,a),j=O&&O.flags&2097152?iu(O):O;if(h||m||(m=!!(O&&fd(O,788968))),k&&k===j){const re=U0e(!1);if(re&&k===re)return 9;const be=fr(k);if(be&&mo(be))return m?10:1}if(!j)return m?11:0;const W=fc(j);return Gt(W)?m?11:0:W.flags&3?11:$u(W,245760)?2:$u(W,528)?6:$u(W,296)?3:$u(W,2112)?4:$u(W,402653316)?5:Ga(W)?7:$u(W,12288)?8:Cve(W)?10:bd(W)?7:11}function N1t(n,a,l,_,m){const h=Is(n,vse);if(!h)return L.createToken(133);const k=Pr(h);let O=k&&!(k.flags&133120)?DS(fr(k)):mt;return O.flags&8192&&O.symbol===k&&(l|=1048576),m&&(O=kv(O)),Tt.typeToTypeNode(O,a,l|1024,_)}function I1t(n,a,l,_){const m=Is(n,oa);if(!m)return L.createToken(133);const h=Vd(m);return Tt.typeToTypeNode(To(h),a,l|1024,_)}function O1t(n,a,l,_){const m=Is(n,vt);if(!m)return L.createToken(133);const h=Cp(rMe(m));return Tt.typeToTypeNode(h,a,l|1024,_)}function F1t(n){return xe.has(Nc(n))}function lO(n,a){const l=ei(n).resolvedSymbol;if(l)return l;let _=n;if(a){const m=n.parent;g_(m)&&n===m.name&&(_=Y(m))}return Lc(_,n.escapedText,3257279,void 0,void 0,!0)}function L1t(n){const a=ei(n).resolvedSymbol;return a&&a!==ft?a:Lc(n,n.escapedText,3257279,void 0,void 0,!0,void 0,void 0)}function M1t(n){if(!vc(n)){const a=Is(n,Je);if(a){const l=lO(a);if(l)return Gp(l).valueDeclaration}}}function R1t(n){if(!vc(n)){const a=Is(n,Je);if(a){const l=lO(a);if(l)return vr(Gp(l).declarations,_=>{switch(_.kind){case 260:case 169:case 208:case 172:case 303:case 304:case 306:case 210:case 262:case 218:case 219:case 263:case 231:case 266:case 174:case 177:case 178:case 267:return!0}return!1})}}}function j1t(n){return VF(n)||Ji(n)&&Pz(n)?ES(fr(Pr(n))):!1}function B1t(n,a,l){const _=n.flags&1056?Tt.symbolToExpression(n.symbol,111551,a,void 0,l):n===Un?L.createTrue():n===tn&&L.createFalse();if(_)return _;const m=n.value;return typeof m=="object"?L.createBigIntLiteral(m):typeof m=="string"?L.createStringLiteral(m):m<0?L.createPrefixUnaryExpression(41,L.createNumericLiteral(-m)):L.createNumericLiteral(m)}function J1t(n,a){const l=fr(Pr(n));return B1t(l,n,a)}function fMe(n){return n?(P2(n),qn(n).localJsxFactory||O0):O0}function Eve(n){if(n){const a=qn(n);if(a){if(a.localJsxFragmentFactory)return a.localJsxFragmentFactory;const l=a.pragmas.get("jsxfrag"),_=Ps(l)?l[0]:l;if(_)return a.localJsxFragmentFactory=rC(_.arguments.factory,ce),a.localJsxFragmentFactory}}if(z.jsxFragmentFactory)return rC(z.jsxFragmentFactory,ce)}function z1t(){const n=e.getResolvedTypeReferenceDirectives();let a;return n&&(a=new Map,n.forEach(({resolvedTypeReferenceDirective:j},W,re)=>{if(!(j!=null&&j.resolvedFileName))return;const be=e.getSourceFile(j.resolvedFileName);be&&O(be,W,re)})),{getReferencedExportContainer:S1t,getReferencedImportDeclaration:x1t,getReferencedDeclarationWithCollidingName:k1t,isDeclarationWithCollidingName:C1t,isValueAliasDeclaration:j=>{const W=Is(j);return W&&kt?cMe(W):!0},hasGlobalName:F1t,isReferencedAliasDeclaration:(j,W)=>{const re=Is(j);return re&&kt?kne(re,W):!0},getNodeCheckFlags:j=>{const W=Is(j);return W?DE(W):0},isTopLevelValueImportEqualsWithEntityName:E1t,isDeclarationVisible:jm,isImplementationOfOverload:lMe,isRequiredInitializedParameter:uMe,isOptionalUninitializedParameterProperty:P1t,isExpandoFunctionDeclaration:w1t,getPropertiesOfContainerFunction:D1t,createTypeOfDeclaration:N1t,createReturnTypeOfSignatureDeclaration:I1t,createTypeOfExpression:O1t,createLiteralConstValue:J1t,isSymbolAccessible:Bi,isEntityNameVisible:iv,getConstantValue:j=>{const W=Is(j,_Me);return W?kve(W):void 0},collectLinkedAliases:BD,getReferencedValueDeclaration:M1t,getReferencedValueDeclarations:R1t,getTypeReferenceSerializationKind:A1t,isOptionalParameter:P5,moduleExportsSomeValue:v1t,isArgumentsLocalBinding:y1t,getExternalModuleFileFromDeclaration:j=>{const W=Is(j,use);return W&&Pve(W)},getTypeReferenceDirectivesForEntityName:m,getTypeReferenceDirectivesForSymbol:h,isLiteralConstDeclaration:j1t,isLateBound:j=>{const W=Is(j,g_),re=W&&Pr(W);return!!(re&&Uc(re)&4096)},getJsxFactoryEntity:fMe,getJsxFragmentFactoryEntity:Eve,getAllAccessorDeclarations(j){j=Is(j,yF);const W=j.kind===178?177:178,re=Cc(Pr(j),W),be=re&&re.posj0(j,j,void 0),isBindingCapturedByNode:(j,W)=>{const re=Is(j),be=Is(W);return!!re&&!!be&&(Ji(be)||oo(be))&&_dt(re,be)},getDeclarationStatementsForSourceFile:(j,W,re,be)=>{const he=Is(j);w.assert(he&&he.kind===312,"Non-sourcefile node passed into getDeclarationsForSourceFile");const qe=Pr(j);return qe?qe.exports?Tt.symbolTableToDeclarationStatements(qe.exports,j,W,re,be):[]:j.locals?Tt.symbolTableToDeclarationStatements(j.locals,j,W,re,be):[]},isImportRequiredByAugmentation:l,tryFindAmbientModule:j=>{const W=Is(j),re=W&&vo(W)?W.text:void 0;return re!==void 0?Jee(re,!0):void 0}};function l(j){const W=qn(j);if(!W.symbol)return!1;const re=Pve(j);if(!re||re===W)return!1;const be=lh(W.symbol);for(const he of Vs(be.values()))if(he.mergeId){const qe=po(he);if(qe.declarations){for(const ht of qe.declarations)if(qn(ht)===re)return!0}}return!1}function _(j){return j.parent&&j.parent.kind===233&&j.parent.parent&&j.parent.parent.kind===298}function m(j){if(!a)return;let W;j.parent.kind===167?W=1160127:(W=790504,(j.kind===80&&px(j)||j.kind===211&&!_(j))&&(W=1160127));const re=ic(j,W,!0);return re&&re!==ft?h(re,W):void 0}function h(j,W){if(!a||!k(j))return;let re;for(const be of j.declarations)if(be.symbol&&be.symbol.flags&W){const he=qn(be),qe=a.get(he.path);if(qe)(re||(re=[])).push(qe);else return}return re}function k(j){if(!j.declarations)return!1;let W=j;for(;;){const re=rf(W);if(re)W=re;else break}if(W.valueDeclaration&&W.valueDeclaration.kind===312&&W.flags&512)return!1;for(const re of j.declarations){const be=qn(re);if(a.has(be.path))return!0}return!1}function O(j,W,re){if(!a.has(j.path)){a.set(j.path,[W,re]);for(const{fileName:be}of j.referencedFiles){const he=mR(be,j.fileName),qe=e.getSourceFile(he);qe&&O(qe,W,re||j.impliedNodeFormat)}}}}function Pve(n){const a=n.kind===267?si(n.name,Ba):a4(n),l=j0(a,a,void 0);if(l)return Cc(l,312)}function U1t(){for(const a of e.getSourceFiles())Zce(a,z);Io=new Map;let n;for(const a of e.getSourceFiles())if(!a.redirectInfo){if(!mp(a)){const l=a.locals.get("globalThis");if(l!=null&&l.declarations)for(const _ of l.declarations)_o.add(Rr(_,p.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));Mm(xe,a.locals)}a.jsGlobalAugmentations&&Mm(xe,a.jsGlobalAugmentations),a.patternAmbientModules&&a.patternAmbientModules.length&&(Bd=zn(Bd,a.patternAmbientModules)),a.moduleAugmentations.length&&(n||(n=[])).push(a.moduleAugmentations),a.symbol&&a.symbol.globalExports&&a.symbol.globalExports.forEach((_,m)=>{xe.has(m)||xe.set(m,_)})}if(n)for(const a of n)for(const l of a)eg(l.parent)&&q3(l);if(cS(xe,Zx,p.Declaration_name_conflicts_with_built_in_global_identifier_0),Zi(ze).type=Ot,Zi(zt).type=bl("IArguments",0,!0),Zi(ft).type=mt,Zi(st).type=pd(16,st),sa=bl("Array",1,!0),De=bl("Object",0,!0),jt=bl("Function",0,!0),Xn=pe&&bl("CallableFunction",0,!0)||jt,Ts=pe&&bl("NewableFunction",0,!0)||jt,yl=bl("String",0,!0),Bl=bl("Number",0,!0),Tc=bl("Boolean",0,!0),Fc=bl("RegExp",0,!0),vl=u_(U),du=u_(it),du===Ja&&(du=qo(void 0,G,Ke,Ke,Ke)),la=u5e("ReadonlyArray",1)||sa,Up=la?A5(la,[U]):vl,sl=u5e("ThisType",1),n)for(const a of n)for(const l of a)eg(l.parent)||q3(l);Io.forEach(({firstFile:a,secondFile:l,conflictingSymbols:_})=>{if(_.size<8)_.forEach(({isBlockScoped:m,firstFileLocations:h,secondFileLocations:k},O)=>{const j=m?p.Cannot_redeclare_block_scoped_variable_0:p.Duplicate_identifier_0;for(const W of h)F0(W,j,O,k);for(const W of k)F0(W,j,O,h)});else{const m=Vs(_.keys()).join(", ");_o.add(Ua(Rr(a,p.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,m),Rr(l,p.Conflicts_are_in_this_file))),_o.add(Ua(Rr(l,p.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,m),Rr(a,p.Conflicts_are_in_this_file)))}}),Io=void 0}function Xl(n,a){if((o&a)!==a&&z.importHelpers){const l=qn(n);if(yk(l,z)&&!(n.flags&33554432)){const _=W1t(l,n);if(_!==ft){const m=a&~o;for(let h=1;h<=33554432;h<<=1)if(m&h)for(const k of V1t(h)){if(s.has(k))continue;s.add(k);const O=al(bf(lh(_),Nc(k),111551));O?h&524288?Pe(xS(O),j=>Ep(j)>3)||We(n,p.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,E1,k,4):h&1048576?Pe(xS(O),j=>Ep(j)>4)||We(n,p.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,E1,k,5):h&1024&&(Pe(xS(O),j=>Ep(j)>2)||We(n,p.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,E1,k,3)):We(n,p.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,E1,k)}}o|=a}}}function V1t(n){switch(n){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return ne?["__decorate"]:["__esDecorate","__runInitializers"];case 16:return["__metadata"];case 32:return["__param"];case 64:return["__awaiter"];case 128:return["__generator"];case 256:return["__values"];case 512:return["__read"];case 1024:return["__spreadArray"];case 2048:return["__await"];case 4096:return["__asyncGenerator"];case 8192:return["__asyncDelegator"];case 16384:return["__asyncValues"];case 32768:return["__exportStar"];case 65536:return["__importStar"];case 131072:return["__importDefault"];case 262144:return["__makeTemplateObject"];case 524288:return["__classPrivateFieldGet"];case 1048576:return["__classPrivateFieldSet"];case 2097152:return["__classPrivateFieldIn"];case 4194304:return["__createBinding"];case 8388608:return["__setFunctionName"];case 16777216:return["__propKey"];case 33554432:return["__addDisposableResource","__disposeResources"];default:return w.fail("Unrecognized helper")}}function W1t(n,a){return c||(c=Sg(n,E1,p.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,a)||ft),c}function a0(n){var a;const l=G1t(n)||q1t(n);if(l!==void 0)return l;if(ws(n)&&kb(n))return ju(n,p.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);const _=Xc(n)?n.declarationList.flags&7:0;let m,h,k,O,j,W=0,re=!1,be=!1;for(const he of n.modifiers)if(Vu(he)){if(t9(ne,n,n.parent,n.parent.parent)){if(ne&&(n.kind===177||n.kind===178)){const qe=dx(n.parent.members,n);if(Kp(qe.firstAccessor)&&n===qe.secondAccessor)return ju(n,p.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return n.kind===174&&!Ed(n.body)?ju(n,p.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):ju(n,p.Decorators_are_not_valid_here);if(W&-34849)return xn(he,p.Decorators_are_not_valid_here);if(be&&W&98303){w.assertIsDefined(j);const qe=qn(he);return LS(qe)?!1:(Ua(We(he,p.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),Rr(j,p.Decorator_used_before_export_here)),!0)}W|=32768,W&98303?W&32&&(re=!0):be=!0,j??(j=he)}else{if(he.kind!==148){if(n.kind===171||n.kind===173)return xn(he,p._0_modifier_cannot_appear_on_a_type_member,ba(he.kind));if(n.kind===181&&(he.kind!==126||!fi(n.parent)))return xn(he,p._0_modifier_cannot_appear_on_an_index_signature,ba(he.kind))}if(he.kind!==103&&he.kind!==147&&he.kind!==87&&n.kind===168)return xn(he,p._0_modifier_cannot_appear_on_a_type_parameter,ba(he.kind));switch(he.kind){case 87:{if(n.kind!==266&&n.kind!==168)return xn(n,p.A_class_member_cannot_have_the_0_keyword,ba(87));const Pt=Rd(n.parent)&&Kv(n.parent)||n.parent;if(n.kind===168&&!(Ko(Pt)||fi(Pt)||Qg(Pt)||I4(Pt)||Wk(Pt)||qN(Pt)||Xg(Pt)))return xn(he,p._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,ba(he.kind));break}case 164:if(W&16)return xn(he,p._0_modifier_already_seen,"override");if(W&128)return xn(he,p._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(W&8)return xn(he,p._0_modifier_must_precede_1_modifier,"override","readonly");if(W&512)return xn(he,p._0_modifier_must_precede_1_modifier,"override","accessor");if(W&1024)return xn(he,p._0_modifier_must_precede_1_modifier,"override","async");W|=16,O=he;break;case 125:case 124:case 123:const qe=bT(Pk(he.kind));if(W&7)return xn(he,p.Accessibility_modifier_already_seen);if(W&16)return xn(he,p._0_modifier_must_precede_1_modifier,qe,"override");if(W&256)return xn(he,p._0_modifier_must_precede_1_modifier,qe,"static");if(W&512)return xn(he,p._0_modifier_must_precede_1_modifier,qe,"accessor");if(W&8)return xn(he,p._0_modifier_must_precede_1_modifier,qe,"readonly");if(W&1024)return xn(he,p._0_modifier_must_precede_1_modifier,qe,"async");if(n.parent.kind===268||n.parent.kind===312)return xn(he,p._0_modifier_cannot_appear_on_a_module_or_namespace_element,qe);if(W&64)return he.kind===123?xn(he,p._0_modifier_cannot_be_used_with_1_modifier,qe,"abstract"):xn(he,p._0_modifier_must_precede_1_modifier,qe,"abstract");if(O_(n))return xn(he,p.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);W|=Pk(he.kind);break;case 126:if(W&256)return xn(he,p._0_modifier_already_seen,"static");if(W&8)return xn(he,p._0_modifier_must_precede_1_modifier,"static","readonly");if(W&1024)return xn(he,p._0_modifier_must_precede_1_modifier,"static","async");if(W&512)return xn(he,p._0_modifier_must_precede_1_modifier,"static","accessor");if(n.parent.kind===268||n.parent.kind===312)return xn(he,p._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(n.kind===169)return xn(he,p._0_modifier_cannot_appear_on_a_parameter,"static");if(W&64)return xn(he,p._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(W&16)return xn(he,p._0_modifier_must_precede_1_modifier,"static","override");W|=256,m=he;break;case 129:if(W&512)return xn(he,p._0_modifier_already_seen,"accessor");if(W&8)return xn(he,p._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(W&128)return xn(he,p._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(n.kind!==172)return xn(he,p.accessor_modifier_can_only_appear_on_a_property_declaration);W|=512;break;case 148:if(W&8)return xn(he,p._0_modifier_already_seen,"readonly");if(n.kind!==172&&n.kind!==171&&n.kind!==181&&n.kind!==169)return xn(he,p.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(W&512)return xn(he,p._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");W|=8;break;case 95:if(z.verbatimModuleSyntax&&!(n.flags&33554432)&&n.kind!==265&&n.kind!==264&&n.kind!==267&&n.parent.kind===312&&(J===1||qn(n).impliedNodeFormat===1))return xn(he,p.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(W&32)return xn(he,p._0_modifier_already_seen,"export");if(W&128)return xn(he,p._0_modifier_must_precede_1_modifier,"export","declare");if(W&64)return xn(he,p._0_modifier_must_precede_1_modifier,"export","abstract");if(W&1024)return xn(he,p._0_modifier_must_precede_1_modifier,"export","async");if(fi(n.parent))return xn(he,p._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(n.kind===169)return xn(he,p._0_modifier_cannot_appear_on_a_parameter,"export");if(_===4)return xn(he,p._0_modifier_cannot_appear_on_a_using_declaration,"export");if(_===6)return xn(he,p._0_modifier_cannot_appear_on_an_await_using_declaration,"export");W|=32;break;case 90:const ht=n.parent.kind===312?n.parent:n.parent.parent;if(ht.kind===267&&!n_(ht))return xn(he,p.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(_===4)return xn(he,p._0_modifier_cannot_appear_on_a_using_declaration,"default");if(_===6)return xn(he,p._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(W&32){if(re)return xn(j,p.Decorators_are_not_valid_here)}else return xn(he,p._0_modifier_must_precede_1_modifier,"export","default");W|=2048;break;case 138:if(W&128)return xn(he,p._0_modifier_already_seen,"declare");if(W&1024)return xn(he,p._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(W&16)return xn(he,p._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(fi(n.parent)&&!Zs(n))return xn(he,p._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(n.kind===169)return xn(he,p._0_modifier_cannot_appear_on_a_parameter,"declare");if(_===4)return xn(he,p._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(_===6)return xn(he,p._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(n.parent.flags&33554432&&n.parent.kind===268)return xn(he,p.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(O_(n))return xn(he,p._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(W&512)return xn(he,p._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");W|=128,h=he;break;case 128:if(W&64)return xn(he,p._0_modifier_already_seen,"abstract");if(n.kind!==263&&n.kind!==185){if(n.kind!==174&&n.kind!==172&&n.kind!==177&&n.kind!==178)return xn(he,p.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(n.parent.kind===263&&Kr(n.parent,64))){const Pt=n.kind===172?p.Abstract_properties_can_only_appear_within_an_abstract_class:p.Abstract_methods_can_only_appear_within_an_abstract_class;return xn(he,Pt)}if(W&256)return xn(he,p._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(W&2)return xn(he,p._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(W&1024&&k)return xn(k,p._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(W&16)return xn(he,p._0_modifier_must_precede_1_modifier,"abstract","override");if(W&512)return xn(he,p._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(I_(n)&&n.name.kind===81)return xn(he,p._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");W|=64;break;case 134:if(W&1024)return xn(he,p._0_modifier_already_seen,"async");if(W&128||n.parent.flags&33554432)return xn(he,p._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(n.kind===169)return xn(he,p._0_modifier_cannot_appear_on_a_parameter,"async");if(W&64)return xn(he,p._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");W|=1024,k=he;break;case 103:case 147:{const Pt=he.kind===103?8192:16384,on=he.kind===103?"in":"out",un=Rd(n.parent)&&(Kv(n.parent)||Cn((a=l4(n.parent))==null?void 0:a.tags,Dx))||n.parent;if(n.kind!==168||un&&!(J_(un)||fi(un)||im(un)||Dx(un)))return xn(he,p._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,on);if(W&Pt)return xn(he,p._0_modifier_already_seen,on);if(Pt&8192&&W&16384)return xn(he,p._0_modifier_must_precede_1_modifier,"in","out");W|=Pt;break}}}return n.kind===176?W&256?xn(m,p._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):W&16?xn(O,p._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):W&1024?xn(k,p._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(n.kind===272||n.kind===271)&&W&128?xn(h,p.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):n.kind===169&&W&31&&ca(n.name)?xn(n,p.A_parameter_property_may_not_be_declared_using_a_binding_pattern):n.kind===169&&W&31&&n.dotDotDotToken?xn(n,p.A_parameter_property_cannot_be_declared_using_a_rest_parameter):W&1024?X1t(n,k):!1}function q1t(n){if(!n.modifiers)return!1;const a=H1t(n);return a&&ju(a,p.Modifiers_cannot_appear_here)}function Cne(n,a){const l=Cn(n.modifiers,Fa);return l&&l.kind!==a?l:void 0}function H1t(n){switch(n.kind){case 177:case 178:case 176:case 172:case 171:case 174:case 173:case 181:case 267:case 272:case 271:case 278:case 277:case 218:case 219:case 169:case 168:return;case 175:case 303:case 304:case 270:case 282:return Cn(n.modifiers,Fa);default:if(n.parent.kind===268||n.parent.kind===312)return;switch(n.kind){case 262:return Cne(n,134);case 263:case 185:return Cne(n,128);case 231:case 264:case 265:return Cn(n.modifiers,Fa);case 243:return n.declarationList.flags&4?Cne(n,135):Cn(n.modifiers,Fa);case 266:return Cne(n,87);default:w.assertNever(n)}}}function G1t(n){const a=$1t(n);return a&&ju(a,p.Decorators_are_not_valid_here)}function $1t(n){return GH(n)?Cn(n.modifiers,Vu):void 0}function X1t(n,a){switch(n.kind){case 174:case 262:case 218:case 219:return!1}return xn(a,p._0_modifier_cannot_be_used_here,"async")}function l6(n,a=p.Trailing_comma_not_allowed){return n&&n.hasTrailingComma?MS(n[0],n.end-1,1,a):!1}function pMe(n,a){if(n&&n.length===0){const l=n.pos-1,_=za(a.text,n.end)+1;return MS(a,l,_-l,p.Type_parameter_list_cannot_be_empty)}return!1}function Q1t(n){let a=!1;const l=n.length;for(let _=0;_!!a.initializer||ca(a.name)||Ah(a))}function Z1t(n){if(ce>=3){const a=n.body&&na(n.body)&&VH(n.body.statements);if(a){const l=Y1t(n.parameters);if(Xe(l)){dt(l,m=>{Ua(We(m,p.This_parameter_is_not_allowed_with_use_strict_directive),Rr(a,p.use_strict_directive_used_here))});const _=l.map((m,h)=>h===0?Rr(m,p.Non_simple_parameter_declared_here):Rr(m,p.and_here));return Ua(We(a,p.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),..._),!0}}}return!1}function Ene(n){const a=qn(n);return a0(n)||pMe(n.typeParameters,a)||Q1t(n.parameters)||evt(n,a)||Ko(n)&&Z1t(n)}function K1t(n){const a=qn(n);return svt(n)||pMe(n.typeParameters,a)}function evt(n,a){if(!ec(n))return!1;n.typeParameters&&!(Xe(n.typeParameters)>1||n.typeParameters.hasTrailingComma||n.typeParameters[0].constraint)&&a&&Vl(a.fileName,[".mts",".cts"])&&xn(n.typeParameters[0],p.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);const{equalsGreaterThanToken:l}=n,_=Ao(a,l.pos).line,m=Ao(a,l.end).line;return _!==m&&xn(l,p.Line_terminator_not_permitted_before_arrow)}function tvt(n){const a=n.parameters[0];if(n.parameters.length!==1)return xn(a?a.name:n,p.An_index_signature_must_have_exactly_one_parameter);if(l6(n.parameters,p.An_index_signature_cannot_have_a_trailing_comma),a.dotDotDotToken)return xn(a.dotDotDotToken,p.An_index_signature_cannot_have_a_rest_parameter);if(C9(a))return xn(a.name,p.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(a.questionToken)return xn(a.questionToken,p.An_index_signature_parameter_cannot_have_a_question_mark);if(a.initializer)return xn(a.name,p.An_index_signature_parameter_cannot_have_an_initializer);if(!a.type)return xn(a.name,p.An_index_signature_parameter_must_have_a_type_annotation);const l=ki(a.type);return vm(l,_=>!!(_.flags&8576))||hE(l)?xn(a.name,p.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):Rf(l,Wee)?n.type?!1:xn(n,p.An_index_signature_must_have_a_type_annotation):xn(a.name,p.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function nvt(n){return a0(n)||tvt(n)}function rvt(n,a){if(a&&a.length===0){const l=qn(n),_=a.pos-1,m=za(l.text,a.end)+1;return MS(l,_,m-_,p.Type_argument_list_cannot_be_empty)}return!1}function Ez(n,a){return l6(a)||rvt(n,a)}function ivt(n){return n.questionDotToken||n.flags&64?xn(n.template,p.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function dMe(n){const a=n.types;if(l6(a))return!0;if(a&&a.length===0){const l=ba(n.token);return MS(n,a.pos,0,p._0_list_cannot_be_empty,l)}return Pe(a,mMe)}function mMe(n){return Cy(n)&&bw(n.expression)&&n.typeArguments?xn(n,p.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):Ez(n,n.typeArguments)}function svt(n){let a=!1,l=!1;if(!a0(n)&&n.heritageClauses)for(const _ of n.heritageClauses){if(_.token===96){if(a)return ju(_,p.extends_clause_already_seen);if(l)return ju(_,p.extends_clause_must_precede_implements_clause);if(_.types.length>1)return ju(_.types[1],p.Classes_can_only_extend_a_single_class);a=!0}else{if(w.assert(_.token===119),l)return ju(_,p.implements_clause_already_seen);l=!0}dMe(_)}}function avt(n){let a=!1;if(n.heritageClauses)for(const l of n.heritageClauses){if(l.token===96){if(a)return ju(l,p.extends_clause_already_seen);a=!0}else return w.assert(l.token===119),ju(l,p.Interface_declaration_cannot_have_implements_clause);dMe(l)}return!1}function Pne(n){if(n.kind!==167)return!1;const a=n;return a.expression.kind===226&&a.expression.operatorToken.kind===28?xn(a.expression,p.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function wve(n){if(n.asteriskToken){if(w.assert(n.kind===262||n.kind===218||n.kind===174),n.flags&33554432)return xn(n.asteriskToken,p.Generators_are_not_allowed_in_an_ambient_context);if(!n.body)return xn(n.asteriskToken,p.An_overload_signature_cannot_be_declared_as_a_generator)}}function Dve(n,a){return!!n&&xn(n,a)}function gMe(n,a){return!!n&&xn(n,a)}function ovt(n,a){const l=new Map;for(const _ of n.properties){if(_.kind===305){if(a){const k=Eo(_.expression);if(B_(k)||Va(k))return xn(_.expression,p.A_rest_element_cannot_contain_a_binding_pattern)}continue}const m=_.name;if(m.kind===167&&Pne(m),_.kind===304&&!a&&_.objectAssignmentInitializer&&xn(_.equalsToken,p.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern),m.kind===81&&xn(m,p.Private_identifiers_are_not_allowed_outside_class_bodies),sm(_)&&_.modifiers)for(const k of _.modifiers)Fa(k)&&(k.kind!==134||_.kind!==174)&&xn(k,p._0_modifier_cannot_be_used_here,Ol(k));else if(nce(_)&&_.modifiers)for(const k of _.modifiers)Fa(k)&&xn(k,p._0_modifier_cannot_be_used_here,Ol(k));let h;switch(_.kind){case 304:case 303:gMe(_.exclamationToken,p.A_definite_assignment_assertion_is_not_permitted_in_this_context),Dve(_.questionToken,p.An_object_member_cannot_be_declared_optional),m.kind===9&&Ive(m),h=4;break;case 174:h=8;break;case 177:h=1;break;case 178:h=2;break;default:w.assertNever(_,"Unexpected syntax kind:"+_.kind)}if(!a){const k=Ove(m);if(k===void 0)continue;const O=l.get(k);if(!O)l.set(k,h);else if(h&8&&O&8)xn(m,p.Duplicate_identifier_0,Ol(m));else if(h&4&&O&4)xn(m,p.An_object_literal_cannot_have_multiple_properties_with_the_same_name,Ol(m));else if(h&3&&O&3)if(O!==3&&h!==O)l.set(k,h|O);else return xn(m,p.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return xn(m,p.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function cvt(n){lvt(n.tagName),Ez(n,n.typeArguments);const a=new Map;for(const l of n.attributes.properties){if(l.kind===293)continue;const{name:_,initializer:m}=l,h=uw(_);if(!a.get(h))a.set(h,!0);else return xn(_,p.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(m&&m.kind===294&&!m.expression)return xn(m,p.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function lvt(n){if(Jr(n)&&wm(n.expression))return xn(n.expression,p.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(wm(n)&&z9(z)&&!m4(n.namespace.escapedText))return xn(n,p.React_components_cannot_include_JSX_namespace_names)}function uvt(n){if(n.expression&&Aw(n.expression))return xn(n.expression,p.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function hMe(n){if(ey(n))return!0;if(n.kind===250&&n.awaitModifier&&!(n.flags&65536)){const a=qn(n);if(ZF(n)){if(!LS(a))switch(yk(a,z)||_o.add(Rr(n.awaitModifier,p.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),J){case 100:case 199:if(a.impliedNodeFormat===1){_o.add(Rr(n.awaitModifier,p.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(ce>=4)break;default:_o.add(Rr(n.awaitModifier,p.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher));break}}else if(!LS(a)){const l=Rr(n.awaitModifier,p.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),_=hp(n);if(_&&_.kind!==176){w.assert((lu(_)&2)===0,"Enclosing function should never be an async function.");const m=Rr(_,p.Did_you_mean_to_mark_this_function_as_async);Ua(l,m)}return _o.add(l),!0}return!1}if(QN(n)&&!(n.flags&65536)&&Je(n.initializer)&&n.initializer.escapedText==="async")return xn(n.initializer,p.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(n.initializer.kind===261){const a=n.initializer;if(!Nve(a)){const l=a.declarations;if(!l.length)return!1;if(l.length>1){const m=n.kind===249?p.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:p.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return ju(a.declarations[1],m)}const _=l[0];if(_.initializer){const m=n.kind===249?p.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:p.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return xn(_.name,m)}if(_.type){const m=n.kind===249?p.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:p.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return xn(_,m)}}}return!1}function _vt(n){if(!(n.flags&33554432)&&n.parent.kind!==187&&n.parent.kind!==264){if(ce<1)return xn(n.name,p.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(ce<2&&Qi(n.name))return xn(n.name,p.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.body===void 0&&!Kr(n,64))return MS(n,n.end-1,1,p._0_expected,"{")}if(n.body){if(Kr(n,64))return xn(n,p.An_abstract_accessor_cannot_have_an_implementation);if(n.parent.kind===187||n.parent.kind===264)return xn(n.body,p.An_implementation_cannot_be_declared_in_ambient_contexts)}if(n.typeParameters)return xn(n.name,p.An_accessor_cannot_have_type_parameters);if(!fvt(n))return xn(n.name,n.kind===177?p.A_get_accessor_cannot_have_parameters:p.A_set_accessor_must_have_exactly_one_parameter);if(n.kind===178){if(n.type)return xn(n.name,p.A_set_accessor_cannot_have_a_return_type_annotation);const a=w.checkDefined(zP(n),"Return value does not match parameter count assertion.");if(a.dotDotDotToken)return xn(a.dotDotDotToken,p.A_set_accessor_cannot_have_rest_parameter);if(a.questionToken)return xn(a.questionToken,p.A_set_accessor_cannot_have_an_optional_parameter);if(a.initializer)return xn(n.name,p.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function fvt(n){return Ave(n)||n.parameters.length===(n.kind===177?0:1)}function Ave(n){if(n.parameters.length===(n.kind===177?1:2))return Tb(n)}function pvt(n){if(n.operator===158){if(n.type.kind!==155)return xn(n.type,p._0_expected,ba(155));let a=eN(n.parent);if(lr(a)&&Ub(a)){const l=lx(a);l&&(a=xk(l)||l)}switch(a.kind){case 260:const l=a;if(l.name.kind!==80)return xn(n,p.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!EP(l))return xn(n,p.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(l.parent.flags&2))return xn(a.name,p.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 172:if(!da(a)||!UP(a))return xn(a.name,p.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 171:if(!Kr(a,8))return xn(a.name,p.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return xn(n,p.unique_symbol_types_are_not_allowed_here)}}else if(n.operator===148&&n.type.kind!==188&&n.type.kind!==189)return ju(n,p.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,ba(155))}function y8(n,a){if(Nlt(n))return xn(n,a)}function yMe(n){if(Ene(n))return!0;if(n.kind===174){if(n.parent.kind===210){if(n.modifiers&&!(n.modifiers.length===1&&Ka(n.modifiers).kind===134))return ju(n,p.Modifiers_cannot_appear_here);if(Dve(n.questionToken,p.An_object_member_cannot_be_declared_optional))return!0;if(gMe(n.exclamationToken,p.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(n.body===void 0)return MS(n,n.end-1,1,p._0_expected,"{")}if(wve(n))return!0}if(fi(n.parent)){if(ce<2&&Qi(n.name))return xn(n.name,p.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.flags&33554432)return y8(n.name,p.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(n.kind===174&&!n.body)return y8(n.name,p.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(n.parent.kind===264)return y8(n.name,p.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(n.parent.kind===187)return y8(n.name,p.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function dvt(n){let a=n;for(;a;){if(U6(a))return xn(n,p.Jump_target_cannot_cross_function_boundary);switch(a.kind){case 256:if(n.label&&a.label.escapedText===n.label.escapedText)return n.kind===251&&!m1(a.statement,!0)?xn(n,p.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1;break;case 255:if(n.kind===252&&!n.label)return!1;break;default:if(m1(a,!1)&&!n.label)return!1;break}a=a.parent}if(n.label){const l=n.kind===252?p.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:p.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return xn(n,l)}else{const l=n.kind===252?p.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:p.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return xn(n,l)}}function mvt(n){if(n.dotDotDotToken){const a=n.parent.elements;if(n!==so(a))return xn(n,p.A_rest_element_must_be_last_in_a_destructuring_pattern);if(l6(a,p.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),n.propertyName)return xn(n.name,p.A_rest_element_cannot_have_a_property_name)}if(n.dotDotDotToken&&n.initializer)return MS(n,n.initializer.pos-1,1,p.A_rest_element_cannot_have_an_initializer)}function vMe(n){return Ip(n)||n.kind===224&&n.operator===41&&n.operand.kind===9}function gvt(n){return n.kind===10||n.kind===224&&n.operator===41&&n.operand.kind===10}function hvt(n){if((Jr(n)||uc(n)&&vMe(n.argumentExpression))&&il(n.expression))return!!(Sl(n).flags&1056)}function bMe(n){const a=n.initializer;if(a){const l=!(vMe(a)||hvt(a)||a.kind===112||a.kind===97||gvt(a));if((VF(n)||Ji(n)&&Pz(n))&&!n.type){if(l)return xn(a,p.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return xn(a,p.Initializers_are_not_allowed_in_ambient_contexts)}}function yvt(n){const a=RS(n),l=a&7;if(ca(n.name))switch(l){case 6:return xn(n,p._0_declarations_may_not_have_binding_patterns,"await using");case 4:return xn(n,p._0_declarations_may_not_have_binding_patterns,"using")}if(n.parent.parent.kind!==249&&n.parent.parent.kind!==250){if(a&33554432)bMe(n);else if(!n.initializer){if(ca(n.name)&&!ca(n.parent))return xn(n,p.A_destructuring_declaration_must_have_an_initializer);switch(l){case 6:return xn(n,p._0_declarations_must_be_initialized,"await using");case 4:return xn(n,p._0_declarations_must_be_initialized,"using");case 2:return xn(n,p._0_declarations_must_be_initialized,"const")}}}if(n.exclamationToken&&(n.parent.parent.kind!==243||!n.type||n.initializer||a&33554432)){const _=n.initializer?p.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?p.A_definite_assignment_assertion_is_not_permitted_in_this_context:p.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return xn(n.exclamationToken,_)}return(J<5||qn(n).impliedNodeFormat===1)&&J!==4&&!(n.parent.parent.flags&33554432)&&Kr(n.parent.parent,32)&&SMe(n.name),!!l&&xMe(n.name)}function SMe(n){if(n.kind===80){if(kr(n)==="__esModule")return Svt("noEmit",n,p.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{const a=n.elements;for(const l of a)if(!uu(l))return SMe(l.name)}return!1}function xMe(n){if(n.kind===80){if(n.escapedText==="let")return xn(n,p.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{const a=n.elements;for(const l of a)uu(l)||xMe(l.name)}return!1}function Nve(n){const a=n.declarations;if(l6(n.declarations))return!0;if(!n.declarations.length)return MS(n,a.pos,a.end-a.pos,p.Variable_declaration_list_cannot_be_empty);const l=n.flags&7;return(l===4||l===6)&&tM(n.parent)?xn(n,l===4?p.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:p.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration):l===6?B9e(n):!1}function TMe(n){switch(n.kind){case 245:case 246:case 247:case 254:case 248:case 249:case 250:return!1;case 256:return TMe(n.parent)}return!0}function vvt(n){if(!TMe(n.parent)){const a=RS(n.declarationList)&7;if(a){const l=a===1?"let":a===2?"const":a===4?"using":a===6?"await using":w.fail("Unknown BlockScope flag");return xn(n,p._0_declarations_can_only_be_declared_inside_a_block,l)}}}function bvt(n){const a=n.name.escapedText;switch(n.keywordToken){case 105:if(a!=="target")return xn(n.name,p._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Hi(n.name.escapedText),ba(n.keywordToken),"target");break;case 102:if(a!=="meta")return xn(n.name,p._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Hi(n.name.escapedText),ba(n.keywordToken),"meta");break}}function LS(n){return n.parseDiagnostics.length>0}function ju(n,a,...l){const _=qn(n);if(!LS(_)){const m=Hg(_,n.pos);return _o.add(bu(_,m.start,m.length,a,...l)),!0}return!1}function MS(n,a,l,_,...m){const h=qn(n);return LS(h)?!1:(_o.add(bu(h,a,l,_,...m)),!0)}function Svt(n,a,l,..._){const m=qn(a);return LS(m)?!1:(Om(n,a,l,..._),!0)}function xn(n,a,...l){const _=qn(n);return LS(_)?!1:(_o.add(Rr(n,a,...l)),!0)}function xvt(n){const a=lr(n)?k9(n):void 0,l=n.typeParameters||a&&hu(a);if(l){const _=l.pos===l.end?l.pos:za(qn(n).text,l.pos);return MS(n,_,l.end-_,p.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function Tvt(n){const a=n.type||Id(n);if(a)return xn(a,p.Type_annotation_cannot_appear_on_a_constructor_declaration)}function kvt(n){if(co(n.name)&&mr(n.name.expression)&&n.name.expression.operatorToken.kind===103)return xn(n.parent.members[0],p.A_mapped_type_may_not_declare_properties_or_methods);if(fi(n.parent)){if(Ba(n.name)&&n.name.text==="constructor")return xn(n.name,p.Classes_may_not_have_a_field_named_constructor);if(y8(n.name,p.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(ce<2&&Qi(n.name))return xn(n.name,p.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(ce<2&&uf(n))return xn(n.name,p.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(uf(n)&&Dve(n.questionToken,p.An_accessor_property_cannot_be_declared_optional))return!0}else if(n.parent.kind===264){if(y8(n.name,p.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(w.assertNode(n,Gf),n.initializer)return xn(n.initializer,p.An_interface_property_cannot_have_an_initializer)}else if(Xf(n.parent)){if(y8(n.name,p.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(w.assertNode(n,Gf),n.initializer)return xn(n.initializer,p.A_type_literal_property_cannot_have_an_initializer)}if(n.flags&33554432&&bMe(n),Zs(n)&&n.exclamationToken&&(!fi(n.parent)||!n.type||n.initializer||n.flags&33554432||da(n)||Eb(n))){const a=n.initializer?p.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?p.A_definite_assignment_assertion_is_not_permitted_in_this_context:p.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return xn(n.exclamationToken,a)}}function Cvt(n){return n.kind===264||n.kind===265||n.kind===272||n.kind===271||n.kind===278||n.kind===277||n.kind===270||Kr(n,2208)?!1:ju(n,p.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function Evt(n){for(const a of n.statements)if((g_(a)||a.kind===243)&&Cvt(a))return!0;return!1}function Pvt(n){return!!(n.flags&33554432)&&Evt(n)}function ey(n){if(n.flags&33554432){if(!ei(n).hasReportedStatementInAmbientContext&&(oa(n.parent)||d1(n.parent)))return ei(n).hasReportedStatementInAmbientContext=ju(n,p.An_implementation_cannot_be_declared_in_ambient_contexts);if(n.parent.kind===241||n.parent.kind===268||n.parent.kind===312){const l=ei(n.parent);if(!l.hasReportedStatementInAmbientContext)return l.hasReportedStatementInAmbientContext=ju(n,p.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function Ive(n){const a=Ol(n).includes("."),l=n.numericLiteralFlags&16;a||l||+n.text<=9007199254740991||Fm(!1,Rr(n,p.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function wvt(n){return!!(!(N1(n.parent)||O1(n.parent)&&N1(n.parent.parent))&&ce<7&&xn(n,p.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function Dvt(n,a,...l){const _=qn(n);if(!LS(_)){const m=Hg(_,n.pos);return _o.add(bu(_,pl(m),0,a,...l)),!0}return!1}function Avt(){return ru||(ru=[],xe.forEach((n,a)=>{WG.test(a)&&ru.push(n)})),ru}function Nvt(n){var a;return n.isTypeOnly&&n.name&&n.namedBindings?xn(n,p.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):n.isTypeOnly&&((a=n.namedBindings)==null?void 0:a.kind)===275?kMe(n.namedBindings):!1}function kMe(n){return!!dt(n.elements,a=>{if(a.isTypeOnly)return ju(a,a.kind===276?p.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:p.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function Ivt(n){if(z.verbatimModuleSyntax&&J===1)return xn(n,p.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(J===5)return xn(n,p.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(n.typeArguments)return xn(n,p.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);const a=n.arguments;if(J!==99&&J!==199&&J!==100&&(l6(a),a.length>1)){const _=a[1];return xn(_,p.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext)}if(a.length===0||a.length>2)return xn(n,p.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);const l=Cn(a,Pm);return l?xn(l,p.Argument_of_dynamic_import_cannot_be_spread_element):!1}function Ovt(n,a){const l=Br(n);if(l&20&&a.flags&1048576)return Cn(a.types,_=>{if(_.flags&524288){const m=l&Br(_);if(m&4)return n.target===_.target;if(m&16)return!!n.aliasSymbol&&n.aliasSymbol===_.aliasSymbol}return!1})}function Fvt(n,a){if(Br(n)&128&&vm(a,Yy))return Cn(a.types,l=>!Yy(l))}function Lvt(n,a){let l=0;if(ra(n,l).length>0||(l=1,ra(n,l).length>0))return Cn(a.types,m=>ra(m,l).length>0)}function Mvt(n,a){let l;if(!(n.flags&406978556)){let _=0;for(const m of a.types)if(!(m.flags&406978556)){const h=Pa([Cg(n),Cg(m)]);if(h.flags&4194304)return m;if(qm(h)||h.flags&1048576){const k=h.flags&1048576?Bc(h.types,qm):1;k>=_&&(l=m,_=k)}}}return l}function Rvt(n){if(Hc(n,67108864)){const a=Dl(n,l=>!(l.flags&402784252));if(!(a.flags&131072))return a}return n}function CMe(n,a,l){if(a.flags&1048576&&n.flags&2621440){const _=ROe(a,n);if(_)return _;const m=Po(n);if(m){const h=MOe(m,a);if(h){const k=bye(a,Kt(h,O=>[()=>fr(O),O.escapedName]),l);if(k!==a)return k}}}}function Ove(n){const a=ux(n);return a||(co(n)?qye(Xu(n.expression)):void 0)}function wne(n){return Zn===n||(Zn=n,hn=Vv(n)),hn}function RS(n){return sn===n||(sn=n,In=py(n)),In}function Pz(n){const a=RS(n)&7;return a===2||a===4||a===6}}function NWe(e){return!d1(e)}function NCe(e){return e.kind!==262&&e.kind!==174||!!e.body}function ICe(e){switch(e.parent.kind){case 276:case 281:return Je(e);default:return h0(e)}}function OCe(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function v_(e){return!!(e.flags&1)}function VG(e){return!!(e.flags&2)}function IWe(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:fa(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var t;return(t=e.getPackageJsonInfoCache)==null?void 0:t.call(e)},useCaseSensitiveFileNames:fa(e,e.useCaseSensitiveFileNames),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:t=>e.getProjectReferenceRedirect(t),isSourceOfProjectReferenceRedirect:t=>e.isSourceOfProjectReferenceRedirect(t),fileExists:t=>e.fileExists(t),getFileIncludeReasons:()=>e.getFileIncludeReasons(),readFile:e.readFile?t=>e.readFile(t):void 0}}var WG,VM,cle,lle,ule,_le,WM,qG,qM,HM,FCe,GM,fle,Mp,HG,OWe=K({"src/compiler/checker.ts"(){ua(),ale(),HS(),WG=/^".+"$/,VM="(anonymous)",cle=1,lle=1,ule=1,_le=1,WM=(e=>(e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBigInt=4]="TypeofEQBigInt",e[e.TypeofEQBoolean=8]="TypeofEQBoolean",e[e.TypeofEQSymbol=16]="TypeofEQSymbol",e[e.TypeofEQObject=32]="TypeofEQObject",e[e.TypeofEQFunction=64]="TypeofEQFunction",e[e.TypeofEQHostObject=128]="TypeofEQHostObject",e[e.TypeofNEString=256]="TypeofNEString",e[e.TypeofNENumber=512]="TypeofNENumber",e[e.TypeofNEBigInt=1024]="TypeofNEBigInt",e[e.TypeofNEBoolean=2048]="TypeofNEBoolean",e[e.TypeofNESymbol=4096]="TypeofNESymbol",e[e.TypeofNEObject=8192]="TypeofNEObject",e[e.TypeofNEFunction=16384]="TypeofNEFunction",e[e.TypeofNEHostObject=32768]="TypeofNEHostObject",e[e.EQUndefined=65536]="EQUndefined",e[e.EQNull=131072]="EQNull",e[e.EQUndefinedOrNull=262144]="EQUndefinedOrNull",e[e.NEUndefined=524288]="NEUndefined",e[e.NENull=1048576]="NENull",e[e.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",e[e.Truthy=4194304]="Truthy",e[e.Falsy=8388608]="Falsy",e[e.IsUndefined=16777216]="IsUndefined",e[e.IsNull=33554432]="IsNull",e[e.IsUndefinedOrNull=50331648]="IsUndefinedOrNull",e[e.All=134217727]="All",e[e.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",e[e.BaseStringFacts=12582401]="BaseStringFacts",e[e.StringStrictFacts=16317953]="StringStrictFacts",e[e.StringFacts=16776705]="StringFacts",e[e.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",e[e.EmptyStringFacts=12582401]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",e[e.BaseNumberFacts=12582146]="BaseNumberFacts",e[e.NumberStrictFacts=16317698]="NumberStrictFacts",e[e.NumberFacts=16776450]="NumberFacts",e[e.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",e[e.ZeroNumberFacts=12582146]="ZeroNumberFacts",e[e.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",e[e.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",e[e.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",e[e.BaseBigIntFacts=12581636]="BaseBigIntFacts",e[e.BigIntStrictFacts=16317188]="BigIntStrictFacts",e[e.BigIntFacts=16775940]="BigIntFacts",e[e.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",e[e.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",e[e.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",e[e.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",e[e.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=12580616]="BaseBooleanFacts",e[e.BooleanStrictFacts=16316168]="BooleanStrictFacts",e[e.BooleanFacts=16774920]="BooleanFacts",e[e.FalseStrictFacts=12121864]="FalseStrictFacts",e[e.FalseFacts=12580616]="FalseFacts",e[e.TrueStrictFacts=7927560]="TrueStrictFacts",e[e.TrueFacts=16774920]="TrueFacts",e[e.SymbolStrictFacts=7925520]="SymbolStrictFacts",e[e.SymbolFacts=16772880]="SymbolFacts",e[e.ObjectStrictFacts=7888800]="ObjectStrictFacts",e[e.ObjectFacts=16736160]="ObjectFacts",e[e.FunctionStrictFacts=7880640]="FunctionStrictFacts",e[e.FunctionFacts=16728e3]="FunctionFacts",e[e.VoidFacts=9830144]="VoidFacts",e[e.UndefinedFacts=26607360]="UndefinedFacts",e[e.NullFacts=42917664]="NullFacts",e[e.EmptyObjectStrictFacts=83427327]="EmptyObjectStrictFacts",e[e.EmptyObjectFacts=83886079]="EmptyObjectFacts",e[e.UnknownFacts=83886079]="UnknownFacts",e[e.AllTypeofNE=556800]="AllTypeofNE",e[e.OrFactsMask=8256]="OrFactsMask",e[e.AndFactsMask=134209471]="AndFactsMask",e))(WM||{}),qG=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),qM=(e=>(e[e.Normal=0]="Normal",e[e.Contextual=1]="Contextual",e[e.Inferential=2]="Inferential",e[e.SkipContextSensitive=4]="SkipContextSensitive",e[e.SkipGenericFunctions=8]="SkipGenericFunctions",e[e.IsForSignatureHelp=16]="IsForSignatureHelp",e[e.RestBindingElement=32]="RestBindingElement",e[e.TypeOnly=64]="TypeOnly",e))(qM||{}),HM=(e=>(e[e.None=0]="None",e[e.BivariantCallback=1]="BivariantCallback",e[e.StrictCallback=2]="StrictCallback",e[e.IgnoreReturnTypes=4]="IgnoreReturnTypes",e[e.StrictArity=8]="StrictArity",e[e.StrictTopSignature=16]="StrictTopSignature",e[e.Callback=3]="Callback",e))(HM||{}),FCe=LO(NCe,NWe),GM=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3,NoInfer:4})),fle=class{},(e=>{e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.ElementType="ElementType",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"})(Mp||(Mp={})),HG=class yJe{constructor(t,r,i){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var s;r instanceof yJe;)r=r.inner;this.inner=r,this.moduleResolverHost=i,this.context=t,this.canTrackSymbol=!!((s=this.inner)!=null&&s.trackSymbol)}trackSymbol(t,r,i){var s,o;if((s=this.inner)!=null&&s.trackSymbol&&!this.disableTrackSymbol){if(this.inner.trackSymbol(t,r,i))return this.onDiagnosticReported(),!0;t.flags&262144||((o=this.context).trackedSymbols??(o.trackedSymbols=[])).push([t,r,i])}return!1}reportInaccessibleThisError(){var t;(t=this.inner)!=null&&t.reportInaccessibleThisError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(t){var r;(r=this.inner)!=null&&r.reportPrivateInBaseOfClassExpression&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(t))}reportInaccessibleUniqueSymbolError(){var t;(t=this.inner)!=null&&t.reportInaccessibleUniqueSymbolError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var t;(t=this.inner)!=null&&t.reportCyclicStructureError&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(t){var r;(r=this.inner)!=null&&r.reportLikelyUnsafeImportRequiredError&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(t))}reportTruncationError(){var t;(t=this.inner)!=null&&t.reportTruncationError&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}trackReferencedAmbientModule(t,r){var i;(i=this.inner)!=null&&i.trackReferencedAmbientModule&&(this.onDiagnosticReported(),this.inner.trackReferencedAmbientModule(t,r))}trackExternalModuleSymbolOfImportTypeNode(t){var r;(r=this.inner)!=null&&r.trackExternalModuleSymbolOfImportTypeNode&&(this.onDiagnosticReported(),this.inner.trackExternalModuleSymbolOfImportTypeNode(t))}reportNonlocalAugmentation(t,r,i){var s;(s=this.inner)!=null&&s.reportNonlocalAugmentation&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(t,r,i))}reportNonSerializableProperty(t){var r;(r=this.inner)!=null&&r.reportNonSerializableProperty&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(t))}onDiagnosticReported(){this.context.reportedDiagnostic=!0}}}});function tt(e,t,r,i){if(e===void 0)return e;const s=t(e);let o;if(s!==void 0)return Ps(s)?o=(i||jWe)(s):o=s,w.assertNode(o,r),o}function Wn(e,t,r,i,s){if(e===void 0)return e;const o=e.length;(i===void 0||i<0)&&(i=0),(s===void 0||s>o-i)&&(s=o-i);let c,u=-1,f=-1;i>0||so-i)&&(s=o-i),LCe(e,t,r,i,s)}function LCe(e,t,r,i,s){let o;const c=e.length;(i>0||s=2&&(s=FWe(s,r)),r.setLexicalEnvironmentFlags(1,!1)),r.suspendLexicalEnvironment(),s}function FWe(e,t){let r;for(let i=0;i{const c=iu,addSource:we,setSourceContent:fe,addName:ie,addMapping:Ue,appendSourceMap:Se,toJSON:xe,toString:()=>JSON.stringify(xe())};function we(st){o();const zt=uk(i,st,e.getCurrentDirectory(),e.getCanonicalFileName,!0);let yt=g.get(zt);return yt===void 0&&(yt=f.length,f.push(zt),u.push(st),g.set(zt,yt)),c(),yt}function fe(st,zt){if(o(),zt!==null){for(d||(d=[]);d.lengthzt||ge===zt&&ve>yt)}function Ue(st,zt,yt,$e,kt,nn){w.assert(st>=ce,"generatedLine cannot backtrack"),w.assert(zt>=0,"generatedCharacter cannot be negative"),w.assert(yt===void 0||yt>=0,"sourceIndex cannot be negative"),w.assert($e===void 0||$e>=0,"sourceLine cannot be negative"),w.assert(kt===void 0||kt>=0,"sourceCharacter cannot be negative"),o(),(ye(st,zt)||Ne(yt,$e,kt))&&(Le(),ce=st,J=zt,se=!1,pe=!1,X=!0),yt!==void 0&&$e!==void 0&&kt!==void 0&&(ne=yt,ge=$e,ve=kt,se=!0,nn!==void 0&&(Q=nn,pe=!0)),c()}function Se(st,zt,yt,$e,kt,nn){w.assert(st>=ce,"generatedLine cannot backtrack"),w.assert(zt>=0,"generatedCharacter cannot be negative"),o();const sn=[];let In;const Zn=QG(yt.mappings);for(const hn of Zn){if(nn&&(hn.generatedLine>nn.line||hn.generatedLine===nn.line&&hn.generatedCharacter>nn.character))break;if(kt&&(hn.generatedLine=1024&&Tt()}function Le(){if(!(!X||!Ee())){if(o(),N0&&(C+=String.fromCharCode.apply(void 0,T),T.length=0)}function xe(){return Le(),Tt(),{version:3,file:t,sourceRoot:r,sources:f,names:y,mappings:C,sourcesContent:d}}function ze(st){st<0?st=(-st<<1)+1:st=st<<1;do{let zt=st&31;st=st>>5,st>0&&(zt=zt|32),Ae(zWe(zt))}while(st>0)}}function $G(e,t){return{getLineCount:()=>t.length,getLineText:r=>e.substring(t[r],t[r+1])}}function dle(e){for(let t=e.getLineCount()-1;t>=0;t--){const r=e.getLineText(t),i=XM.exec(r);if(i)return i[1].trimEnd();if(!r.match(QM))break}}function JWe(e){return typeof e=="string"||e===null}function mle(e){return e!==null&&typeof e=="object"&&e.version===3&&typeof e.file=="string"&&typeof e.mappings=="string"&&Ps(e.sources)&&Pn(e.sources,Ls)&&(e.sourceRoot===void 0||e.sourceRoot===null||typeof e.sourceRoot=="string")&&(e.sourcesContent===void 0||e.sourcesContent===null||Ps(e.sourcesContent)&&Pn(e.sourcesContent,JWe))&&(e.names===void 0||e.names===null||Ps(e.names)&&Pn(e.names,Ls))}function XG(e){try{const t=JSON.parse(e);if(mle(t))return t}catch{}}function QG(e){let t=!1,r=0,i=0,s=0,o=0,c=0,u=0,f=0,g;return{get pos(){return r},get error(){return g},get state(){return d(!0,!0)},next(){for(;!t&&r=e.length)return x("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;const Z=UWe(e.charCodeAt(r));if(Z===-1)return x("Invalid character in VLQ"),-1;M=(Z&32)!==0,G=G|(Z&31)<>1,G=-G):G=G>>1,G}}function RCe(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex}function gle(e){return e.sourceIndex!==void 0&&e.sourceLine!==void 0&&e.sourceCharacter!==void 0}function zWe(e){return e>=0&&e<26?65+e:e>=26&&e<52?97+e-26:e>=52&&e<62?48+e-52:e===62?43:e===63?47:w.fail(`${e}: not a base64 value`)}function UWe(e){return e>=65&&e<=90?e-65:e>=97&&e<=122?e-97+26:e>=48&&e<=57?e-48+52:e===43?62:e===47?63:-1}function jCe(e){return e.sourceIndex!==void 0&&e.sourcePosition!==void 0}function BCe(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function VWe(e,t){return w.assert(e.sourceIndex===t.sourceIndex),mc(e.sourcePosition,t.sourcePosition)}function WWe(e,t){return mc(e.generatedPosition,t.generatedPosition)}function qWe(e){return e.sourcePosition}function HWe(e){return e.generatedPosition}function hle(e,t,r){const i=oi(r),s=t.sourceRoot?Ss(t.sourceRoot,i):i,o=Ss(t.file,i),c=e.getSourceFileLike(o),u=t.sources.map(V=>Ss(V,s)),f=new Map(u.map((V,G)=>[e.getCanonicalFileName(V),G]));let g,d,y;return{getSourcePosition:M,getGeneratedPosition:D};function x(V){const G=c!==void 0?K8(c,V.generatedLine,V.generatedCharacter,!0):-1;let Z,z;if(gle(V)){const ce=e.getSourceFileLike(u[V.sourceIndex]);Z=t.sources[V.sourceIndex],z=ce!==void 0?K8(ce,V.sourceLine,V.sourceCharacter,!0):-1}return{generatedPosition:G,source:Z,sourceIndex:V.sourceIndex,sourcePosition:z,nameIndex:V.nameIndex}}function T(){if(g===void 0){const V=QG(t.mappings),G=Vs(V,x);V.error!==void 0?(e.log&&e.log(`Encountered error while decoding sourcemap: ${V.error}`),g=Ke):g=G}return g}function C(V){if(y===void 0){const G=[];for(const Z of T()){if(!jCe(Z))continue;let z=G[Z.sourceIndex];z||(G[Z.sourceIndex]=z=[]),z.push(Z)}y=G.map(Z=>io(Z,VWe,BCe))}return y[V]}function N(){if(d===void 0){const V=[];for(const G of T())V.push(G);d=io(V,WWe,BCe)}return d}function D(V){const G=f.get(e.getCanonicalFileName(V.fileName));if(G===void 0)return V;const Z=C(G);if(!Pe(Z))return V;let z=rk(Z,V.pos,qWe,mc);z<0&&(z=~z);const ce=Z[z];return ce===void 0||ce.sourceIndex!==G?V:{fileName:o,pos:ce.generatedPosition}}function M(V){const G=N();if(!Pe(G))return V;let Z=rk(G,V.pos,HWe,mc);Z<0&&(Z=~Z);const z=G[Z];return z===void 0||!jCe(z)?V:{fileName:u[z.sourceIndex],pos:z.sourcePosition}}}var YG,XM,QM,YM,GWe=K({"src/compiler/sourcemap.ts"(){ua(),HS(),YG=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,XM=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,QM=/^\s*(\/\/[@#] .*)?$/,YM={getSourcePosition:dc,getGeneratedPosition:dc}}});function s_(e){return e=Gc(e),e?ho(e):0}function $We(e){return!e||!x0(e)?!1:Pe(e.elements,JCe)}function JCe(e){return e.propertyName!==void 0&&e.propertyName.escapedText==="default"}function am(e,t){return r;function r(s){return s.kind===312?t(s):i(s)}function i(s){return e.factory.createBundle(Kt(s.sourceFiles,t),s.prepends)}}function yle(e){return!!o4(e)}function ZM(e){if(o4(e))return!0;const t=e.importClause&&e.importClause.namedBindings;if(!t||!x0(t))return!1;let r=0;for(const i of t.elements)JCe(i)&&r++;return r>0&&r!==t.elements.length||!!(t.elements.length-r)&&bk(e)}function ZG(e){return!ZM(e)&&(bk(e)||!!e.importClause&&x0(e.importClause.namedBindings)&&$We(e.importClause.namedBindings))}function KG(e,t){const r=e.getEmitResolver(),i=e.getCompilerOptions(),s=[],o=new r$,c=[],u=new Map;let f,g=!1,d,y=!1,x=!1,T=!1;for(const D of t.statements)switch(D.kind){case 272:s.push(D),!x&&ZM(D)&&(x=!0),!T&&ZG(D)&&(T=!0);break;case 271:D.moduleReference.kind===283&&s.push(D);break;case 278:if(D.moduleSpecifier)if(!D.exportClause)s.push(D),y=!0;else if(s.push(D),sd(D.exportClause))N(D);else{const M=D.exportClause.name;u.get(kr(M))||(Uw(c,s_(D),M),u.set(kr(M),!0),f=gn(f,M)),x=!0}else N(D);break;case 277:D.isExportEquals&&!d&&(d=D);break;case 243:if(Kr(D,32))for(const M of D.declarationList.declarations)f=zCe(M,u,f,c);break;case 262:if(Kr(D,32))if(Kr(D,2048))g||(Uw(c,s_(D),e.factory.getDeclarationName(D)),g=!0);else{const M=D.name;u.get(kr(M))||(Uw(c,s_(D),M),u.set(kr(M),!0),f=gn(f,M))}break;case 263:if(Kr(D,32))if(Kr(D,2048))g||(Uw(c,s_(D),e.factory.getDeclarationName(D)),g=!0);else{const M=D.name;M&&!u.get(kr(M))&&(Uw(c,s_(D),M),u.set(kr(M),!0),f=gn(f,M))}break}const C=WH(e.factory,e.getEmitHelperFactory(),t,i,y,x,T);return C&&s.unshift(C),{externalImports:s,exportSpecifiers:o,exportEquals:d,hasExportStarsToExportValues:y,exportedBindings:c,exportedNames:f,externalHelpersImportDeclaration:C};function N(D){for(const M of pa(D.exportClause,sd).elements)if(!u.get(kr(M.name))){const V=M.propertyName||M.name;D.moduleSpecifier||o.add(V,M);const G=r.getReferencedImportDeclaration(V)||r.getReferencedValueDeclaration(V);G&&Uw(c,s_(G),M.name),u.set(kr(M.name),!0),f=gn(f,M.name)}}}function zCe(e,t,r,i){if(ca(e.name))for(const s of e.name.elements)uu(s)||(r=zCe(s,t,r,i));else if(!vc(e.name)){const s=kr(e.name);t.get(s)||(t.set(s,!0),r=gn(r,e.name),T0(e.name)&&Uw(i,s_(e),e.name))}return r}function Uw(e,t,r){let i=e[t];return i?i.push(r):e[t]=i=[r],i}function Hb(e){return vo(e)||e.kind===9||pf(e.kind)||Je(e)}function nh(e){return!Je(e)&&Hb(e)}function Vw(e){return e>=65&&e<=79}function Ww(e){switch(e){case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 45;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 75:return 52;case 79:return 53;case 76:return 57;case 77:return 56;case 78:return 61}}function KM(e){if(!xu(e))return;const t=Eo(e.expression);return ix(t)?t:void 0}function UCe(e,t,r){for(let i=t;iQWe(i,t,r))}function XWe(e){return YWe(e)||Vc(e)}function tR(e){return vr(e.members,XWe)}function QWe(e,t,r){return Zs(e)&&(!!e.initializer||!t)&&Fl(e)===r}function YWe(e){return Zs(e)&&Fl(e)}function O7(e){return e.kind===172&&e.initializer!==void 0}function vle(e){return!da(e)&&(mk(e)||uf(e))&&Qi(e.name)}function ble(e){let t;if(e){const r=e.parameters,i=r.length>0&&kb(r[0]),s=i?1:0,o=i?r.length-1:r.length;for(let c=0;cn$(r.privateEnv,t))}function kle(e){return!e.initializer&&Je(e.name)}function F7(e){return Pn(e,kle)}var cC,r$,eqe=K({"src/compiler/transformers/utilities.ts"(){ua(),cC=class RE{constructor(){this._map=new Map}get size(){return this._map.size}has(t){return this._map.has(RE.toKey(t))}get(t){return this._map.get(RE.toKey(t))}set(t,r){return this._map.set(RE.toKey(t),r),this}delete(t){var r;return((r=this._map)==null?void 0:r.delete(RE.toKey(t)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(t){if(QS(t)||vc(t)){const r=t.emitNode.autoGenerate;if((r.flags&7)===4){const i=a7(t),s=Dh(i)&&i!==t?RE.toKey(i):`(generated@${ho(i)})`;return l2(!1,r.prefix,s,r.suffix,RE.toKey)}else{const i=`(auto@${r.id})`;return l2(!1,r.prefix,i,r.suffix,RE.toKey)}}return Qi(t)?kr(t).slice(1):kr(t)}},r$=class extends cC{add(e,t){let r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}remove(e,t){const r=this.get(e);r&&(ak(r,t),r.length||this.delete(e))}}}});function Fx(e,t,r,i,s,o){let c=e,u;if(by(e))for(u=e.right;_ae(e.left)||hq(e.left);)if(by(u))c=e=u,u=e.right;else return w.checkDefined(tt(u,t,vt));let f;const g={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:d,emitBindingOrAssignment:y,createArrayBindingOrAssignmentPattern:x=>cqe(r.factory,x),createObjectBindingOrAssignmentPattern:x=>uqe(r.factory,x),createArrayBindingOrAssignmentElement:fqe,visitor:t};if(u&&(u=tt(u,t,vt),w.assert(u),Je(u)&&Cle(e,u.escapedText)||Ele(e)?u=lC(g,u,!1,c):s?u=lC(g,u,!0,c):lc(e)&&(c=u)),qw(g,e,u,c,by(e)),u&&s){if(!Pe(f))return u;f.push(u)}return r.factory.inlineExpressions(f)||r.factory.createOmittedExpression();function d(x){f=gn(f,x)}function y(x,T,C,N){w.assertNode(x,o?Je:vt);const D=o?o(x,T,C):ut(r.factory.createAssignment(w.checkDefined(tt(x,t,vt)),T),C);D.original=N,d(D)}}function Cle(e,t){const r=L1(e);return gA(r)?tqe(r,t):Je(r)?r.escapedText===t:!1}function tqe(e,t){const r=W4(e);for(const i of r)if(Cle(i,t))return!0;return!1}function Ele(e){const t=pM(e);if(t&&co(t)&&!_b(t.expression))return!0;const r=L1(e);return!!r&&gA(r)&&nqe(r)}function nqe(e){return!!dt(W4(e),Ele)}function Gb(e,t,r,i,s,o=!1,c){let u;const f=[],g=[],d={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:o,emitExpression:y,emitBindingOrAssignment:x,createArrayBindingOrAssignmentPattern:T=>oqe(r.factory,T),createObjectBindingOrAssignmentPattern:T=>lqe(r.factory,T),createArrayBindingOrAssignmentElement:T=>_qe(r.factory,T),visitor:t};if(Ji(e)){let T=i7(e);T&&(Je(T)&&Cle(e,T.escapedText)||Ele(e))&&(T=lC(d,w.checkDefined(tt(T,d.visitor,vt)),!1,T),e=r.factory.updateVariableDeclaration(e,e.name,void 0,void 0,T))}if(qw(d,e,s,e,c),u){const T=r.factory.createTempVariable(void 0);if(o){const C=r.factory.inlineExpressions(u);u=void 0,x(T,C,void 0,void 0)}else{r.hoistVariableDeclaration(T);const C=so(f);C.pendingExpressions=gn(C.pendingExpressions,r.factory.createAssignment(T,C.value)),Mr(C.pendingExpressions,u),C.value=T}}for(const{pendingExpressions:T,name:C,value:N,location:D,original:M}of f){const V=r.factory.createVariableDeclaration(C,void 0,void 0,T?r.factory.inlineExpressions(gn(T,N)):N);V.original=M,ut(V,D),g.push(V)}return g;function y(T){u=gn(u,T)}function x(T,C,N,D){w.assertNode(T,YS),u&&(C=r.factory.inlineExpressions(gn(u,C)),u=void 0),f.push({pendingExpressions:u,name:T,value:C,location:N,original:D})}}function qw(e,t,r,i,s){const o=L1(t);if(!s){const c=tt(i7(t),e.visitor,vt);c?r?(r=sqe(e,r,c,i),!nh(c)&&gA(o)&&(r=lC(e,r,!0,i))):r=c:r||(r=e.context.factory.createVoidZero())}tW(o)?rqe(e,t,o,r,i):nW(o)?iqe(e,t,o,r,i):e.emitBindingOrAssignment(o,r,i,t)}function rqe(e,t,r,i,s){const o=W4(r),c=o.length;if(c!==1){const g=!mA(t)||c!==0;i=lC(e,i,g,s)}let u,f;for(let g=0;g=1&&!(d.transformFlags&98304)&&!(L1(d).transformFlags&98304)&&!co(y))u=gn(u,tt(d,e.visitor,Oie));else{u&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(u),i,s,r),u=void 0);const x=aqe(e,i,y);co(y)&&(f=gn(f,x.argumentExpression)),qw(e,d,x,d)}}}u&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(u),i,s,r)}function iqe(e,t,r,i,s){const o=W4(r),c=o.length;if(e.level<1&&e.downlevelIteration)i=lC(e,ut(e.context.getEmitHelperFactory().createReadHelper(i,c>0&&fM(o[c-1])?void 0:c),s),!1,s);else if(c!==1&&(e.level<1||c===0)||Pn(o,uu)){const g=!mA(t)||c!==0;i=lC(e,i,g,s)}let u,f;for(let g=0;g=1)if(d.transformFlags&65536||e.hasTransformedPriorElement&&!WCe(d)){e.hasTransformedPriorElement=!0;const y=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(y),f=gn(f,[y,d]),u=gn(u,e.createArrayBindingOrAssignmentElement(y))}else u=gn(u,d);else{if(uu(d))continue;if(fM(d)){if(g===c-1){const y=e.context.factory.createArraySliceCall(i,g);qw(e,d,y,d)}}else{const y=e.context.factory.createElementAccessExpression(i,g);qw(e,d,y,d)}}}if(u&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(u),i,s,r),f)for(const[g,d]of f)qw(e,d,g,d)}function WCe(e){const t=L1(e);if(!t||uu(t))return!0;const r=pM(e);if(r&&!ng(r))return!1;const i=i7(e);return i&&!nh(i)?!1:gA(t)?Pn(W4(t),WCe):Je(t)}function sqe(e,t,r,i){return t=lC(e,t,!0,i),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,r,void 0,t)}function aqe(e,t,r){const{factory:i}=e.context;if(co(r)){const s=lC(e,w.checkDefined(tt(r.expression,e.visitor,vt)),!1,r);return e.context.factory.createElementAccessExpression(t,s)}else if(Ip(r)){const s=i.cloneNode(r);return e.context.factory.createElementAccessExpression(t,s)}else{const s=e.context.factory.createIdentifier(kr(r));return e.context.factory.createPropertyAccessExpression(t,s)}}function lC(e,t,r,i){if(Je(t)&&r)return t;{const s=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(s),e.emitExpression(ut(e.context.factory.createAssignment(s,t),i))):e.emitBindingOrAssignment(s,t,i,void 0),s}}function oqe(e,t){return w.assertEachNode(t,kF),e.createArrayBindingPattern(t)}function cqe(e,t){return w.assertEachNode(t,yA),e.createArrayLiteralExpression(Kt(t,e.converters.convertToArrayAssignmentElement))}function lqe(e,t){return w.assertEachNode(t,oo),e.createObjectBindingPattern(t)}function uqe(e,t){return w.assertEachNode(t,hA),e.createObjectLiteralExpression(Kt(t,e.converters.convertToObjectAssignmentElement))}function _qe(e,t){return e.createBindingElement(void 0,void 0,t)}function fqe(e){return e}var i$,pqe=K({"src/compiler/transformers/destructuring.ts"(){ua(),i$=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(i$||{})}});function Ple(e,t,r=e.createThis()){const i=e.createAssignment(t,r),s=e.createExpressionStatement(i),o=e.createBlock([s],!1),c=e.createClassStaticBlockDeclaration(o);return i_(c).classThis=t,c}function Hw(e){var t;if(!Vc(e)||e.body.statements.length!==1)return!1;const r=e.body.statements[0];return xu(r)&&Kl(r.expression,!0)&&Je(r.expression.left)&&((t=e.emitNode)==null?void 0:t.classThis)===r.expression.left&&r.expression.right.kind===110}function s$(e){var t;return!!((t=e.emitNode)!=null&&t.classThis)&&Pe(e.members,Hw)}function wle(e,t,r,i){if(s$(t))return t;const s=Ple(e,r,i);t.name&&ja(s.body.statements[0],t.name);const o=e.createNodeArray([s,...t.members]);ut(o,t.members);const c=ql(t)?e.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,o):e.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,o);return i_(c).classThis=r,c}var dqe=K({"src/compiler/transformers/classThis.ts"(){ua()}});function Gw(e,t,r){const i=Gc(gl(r));return(ql(i)||Wl(i))&&!i.name&&Kr(i,2048)?e.createStringLiteral("default"):e.createStringLiteralFromNode(t)}function qCe(e,t,r){const{factory:i}=e;if(r!==void 0)return{assignedName:i.createStringLiteral(r),name:t};if(ng(t)||Qi(t))return{assignedName:i.createStringLiteralFromNode(t),name:t};if(ng(t.expression)&&!Je(t.expression))return{assignedName:i.createStringLiteralFromNode(t.expression),name:t};const s=i.getGeneratedNameForNode(t);e.hoistVariableDeclaration(s);const o=e.getEmitHelperFactory().createPropKeyHelper(t.expression),c=i.createAssignment(s,o),u=i.updateComputedPropertyName(t,c);return{assignedName:s,name:u}}function Dle(e,t,r=e.factory.createThis()){const{factory:i}=e,s=e.getEmitHelperFactory().createSetFunctionNameHelper(r,t),o=i.createExpressionStatement(s),c=i.createBlock([o],!1),u=i.createClassStaticBlockDeclaration(c);return i_(u).assignedName=t,u}function uC(e){var t;if(!Vc(e)||e.body.statements.length!==1)return!1;const r=e.body.statements[0];return xu(r)&&hw(r.expression,"___setFunctionName")&&r.expression.arguments.length>=2&&r.expression.arguments[1]===((t=e.emitNode)==null?void 0:t.assignedName)}function rR(e){var t;return!!((t=e.emitNode)!=null&&t.assignedName)&&Pe(e.members,uC)}function a$(e){return!!e.name||rR(e)}function iR(e,t,r,i){if(rR(t))return t;const{factory:s}=e,o=Dle(e,r,i);t.name&&ja(o.body.statements[0],t.name);const c=Gs(t.members,Hw)+1,u=t.members.slice(0,c),f=t.members.slice(c),g=s.createNodeArray([...u,o,...f]);return ut(g,t.members),t=ql(t)?s.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,g):s.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,g),i_(t).assignedName=r,t}function t3(e,t,r,i){if(i&&Ba(r)&&OW(r))return t;const{factory:s}=e,o=gl(t),c=Su(o)?pa(iR(e,o,r),Su):e.getEmitHelperFactory().createSetFunctionNameHelper(o,r);return s.restoreOuterExpressions(t,c)}function mqe(e,t,r,i){const{factory:s}=e,{assignedName:o,name:c}=qCe(e,t.name,i),u=t3(e,t.initializer,o,r);return s.updatePropertyAssignment(t,c,u)}function gqe(e,t,r,i){const{factory:s}=e,o=i!==void 0?s.createStringLiteral(i):Gw(s,t.name,t.objectAssignmentInitializer),c=t3(e,t.objectAssignmentInitializer,o,r);return s.updateShorthandPropertyAssignment(t,t.name,c)}function hqe(e,t,r,i){const{factory:s}=e,o=i!==void 0?s.createStringLiteral(i):Gw(s,t.name,t.initializer),c=t3(e,t.initializer,o,r);return s.updateVariableDeclaration(t,t.name,t.exclamationToken,t.type,c)}function yqe(e,t,r,i){const{factory:s}=e,o=i!==void 0?s.createStringLiteral(i):Gw(s,t.name,t.initializer),c=t3(e,t.initializer,o,r);return s.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,c)}function vqe(e,t,r,i){const{factory:s}=e,o=i!==void 0?s.createStringLiteral(i):Gw(s,t.name,t.initializer),c=t3(e,t.initializer,o,r);return s.updateBindingElement(t,t.dotDotDotToken,t.propertyName,t.name,c)}function bqe(e,t,r,i){const{factory:s}=e,{assignedName:o,name:c}=qCe(e,t.name,i),u=t3(e,t.initializer,o,r);return s.updatePropertyDeclaration(t,t.modifiers,c,t.questionToken??t.exclamationToken,t.type,u)}function Sqe(e,t,r,i){const{factory:s}=e,o=i!==void 0?s.createStringLiteral(i):Gw(s,t.left,t.right),c=t3(e,t.right,o,r);return s.updateBinaryExpression(t,t.left,t.operatorToken,c)}function xqe(e,t,r,i){const{factory:s}=e,o=i!==void 0?s.createStringLiteral(i):s.createStringLiteral(t.isExportEquals?"":"default"),c=t3(e,t.expression,o,r);return s.updateExportAssignment(t,t.modifiers,c)}function Qf(e,t,r,i){switch(t.kind){case 303:return mqe(e,t,r,i);case 304:return gqe(e,t,r,i);case 260:return hqe(e,t,r,i);case 169:return yqe(e,t,r,i);case 208:return vqe(e,t,r,i);case 172:return bqe(e,t,r,i);case 226:return Sqe(e,t,r,i);case 277:return xqe(e,t,r,i)}}var Tqe=K({"src/compiler/transformers/namedEvaluation.ts"(){ua()}});function o$(e,t,r,i,s,o){const c=tt(t.tag,r,vt);w.assert(c);const u=[void 0],f=[],g=[],d=t.template;if(o===0&&!iq(d))return En(t,r,e);const{factory:y}=e;if(Jk(d))f.push(Ale(y,d)),g.push(Nle(y,d,i));else{f.push(Ale(y,d.head)),g.push(Nle(y,d.head,i));for(const T of d.templateSpans)f.push(Ale(y,T.literal)),g.push(Nle(y,T.literal,i)),u.push(w.checkDefined(tt(T.expression,r,vt)))}const x=e.getEmitHelperFactory().createTemplateObjectHelper(y.createArrayLiteralExpression(f),y.createArrayLiteralExpression(g));if(Cl(i)){const T=y.createUniqueName("templateObject");s(T),u[0]=y.createLogicalOr(T,y.createAssignment(T,x))}else u[0]=x;return y.createCallExpression(c,void 0,u)}function Ale(e,t){return t.templateFlags&26656?e.createVoidZero():e.createStringLiteral(t.text)}function Nle(e,t,r){let i=t.rawText;if(i===void 0){w.assertIsDefined(r,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),i=pb(r,t);const s=t.kind===15||t.kind===18;i=i.substring(1,i.length-(s?1:2))}return i=i.replace(/\r\n?/g,` +`),ut(e.createStringLiteral(i),t)}var c$,kqe=K({"src/compiler/transformers/taggedTemplate.ts"(){ua(),c$=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(c$||{})}});function Ile(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:s,endLexicalEnvironment:o,hoistVariableDeclaration:c}=e,u=e.getEmitResolver(),f=e.getCompilerOptions(),g=go(f),d=r_(f),y=!!f.experimentalDecorators,x=f.emitDecoratorMetadata?Fle(e):void 0,T=e.onEmitNode,C=e.onSubstituteNode;e.onEmitNode=El,e.onSubstituteNode=qc,e.enableSubstitution(211),e.enableSubstitution(212);let N,D,M,V,G,Z,z,ce;return J;function J(ee){return ee.kind===313?ne(ee):ge(ee)}function ne(ee){return t.createBundle(ee.sourceFiles.map(ge),Oi(ee.prepends,Oe=>Oe.kind===315?cH(Oe,"js"):Oe))}function ge(ee){if(ee.isDeclarationFile)return ee;N=ee;const Oe=ve(ee,st);return S0(Oe,e.readEmitHelpers()),N=void 0,Oe}function ve(ee,Oe){const bt=V,_n=G,Tr=Z;Q(ee);const br=Oe(ee);return V!==bt&&(G=_n),V=bt,Z=Tr,br}function Q(ee){switch(ee.kind){case 312:case 269:case 268:case 241:V=ee,G=void 0;break;case 263:case 262:if(Kr(ee,128))break;ee.name?H(ee):w.assert(ee.kind===263||Kr(ee,2048));break}}function X(ee){return ve(ee,se)}function se(ee){return ee.transformFlags&1?ze(ee):ee}function pe(ee){return ve(ee,we)}function we(ee){switch(ee.kind){case 272:case 271:case 277:case 278:return ie(ee);default:return se(ee)}}function fe(ee){const Oe=Is(ee);if(Oe===ee||Qc(ee))return!1;if(!Oe||Oe.kind!==ee.kind)return!0;switch(ee.kind){case 272:if(w.assertNode(Oe,eu),ee.importClause!==Oe.importClause||ee.attributes!==Oe.attributes)return!0;break;case 271:if(w.assertNode(Oe,Tu),ee.name!==Oe.name||ee.isTypeOnly!==Oe.isTypeOnly||ee.moduleReference!==Oe.moduleReference&&(Ef(ee.moduleReference)||Ef(Oe.moduleReference)))return!0;break;case 278:if(w.assertNode(Oe,ml),ee.exportClause!==Oe.exportClause||ee.attributes!==Oe.attributes)return!0;break}return!1}function ie(ee){if(fe(ee))return ee.transformFlags&1?En(ee,X,e):ee;switch(ee.kind){case 272:return Sn(ee);case 271:return As(ee);case 277:return wi(ee);case 278:return sr(ee);default:w.fail("Unhandled ellided statement")}}function ye(ee){return ve(ee,Ne)}function Ne(ee){if(!(ee.kind===278||ee.kind===272||ee.kind===273||ee.kind===271&&ee.moduleReference.kind===283))return ee.transformFlags&1||Kr(ee,32)?ze(ee):ee}function Ue(ee){return Oe=>ve(Oe,bt=>Se(bt,ee))}function Se(ee,Oe){switch(ee.kind){case 176:return wn(ee);case 172:return Jt(ee,Oe);case 177:return Wa(ee,Oe);case 178:return Tn(ee,Oe);case 174:return Ds(ee,Oe);case 175:return En(ee,X,e);case 240:return ee;case 181:return;default:return w.failBadSyntaxKind(ee)}}function Ee(ee){return Oe=>ve(Oe,bt=>Ae(bt,ee))}function Ae(ee,Oe){switch(ee.kind){case 303:case 304:case 305:return X(ee);case 177:return Wa(ee,Oe);case 178:return Tn(ee,Oe);case 174:return Ds(ee,Oe);default:return w.failBadSyntaxKind(ee)}}function Le(ee){return Vu(ee)?void 0:X(ee)}function Tt(ee){return Fa(ee)?void 0:X(ee)}function xe(ee){if(!Vu(ee)&&!(Pk(ee.kind)&28895)&&!(D&&ee.kind===95))return ee}function ze(ee){if(Xi(ee)&&Kr(ee,128))return t.createNotEmittedStatement(ee);switch(ee.kind){case 95:case 90:return D?void 0:ee;case 125:case 123:case 124:case 128:case 164:case 87:case 138:case 148:case 103:case 147:case 188:case 189:case 190:case 191:case 187:case 182:case 168:case 133:case 159:case 136:case 154:case 150:case 146:case 116:case 155:case 185:case 184:case 186:case 183:case 192:case 193:case 194:case 196:case 197:case 198:case 199:case 200:case 201:case 181:return;case 265:return t.createNotEmittedStatement(ee);case 270:return;case 264:return t.createNotEmittedStatement(ee);case 263:return nn(ee);case 231:return sn(ee);case 298:return Er(ee);case 233:return cn(ee);case 210:return zt(ee);case 176:case 172:case 174:case 177:case 178:case 175:return w.fail("Class and object literal elements must be visited with their respective visitors");case 262:return Ln(ee);case 218:return Ve(ee);case 219:return pt(ee);case 169:return ft(ee);case 217:return _t(ee);case 216:case 234:return U(ee);case 238:return Et(ee);case 213:return Ge(ee);case 214:return mt(ee);case 215:return Ut(ee);case 235:return it(ee);case 266:return q(ee);case 243:return At(ee);case 260:return Me(ee);case 267:return xt(ee);case 271:return As(ee);case 285:return vn(ee);case 286:return pn(ee);default:return En(ee,X,e)}}function st(ee){const Oe=R_(f,"alwaysStrict")&&!(Cl(ee)&&d>=5)&&!wd(ee);return t.updateSourceFile(ee,GG(ee.statements,pe,e,0,Oe))}function zt(ee){return t.updateObjectLiteralExpression(ee,Wn(ee.properties,Ee(ee),d0))}function yt(ee){let Oe=0;Pe(e$(ee,!0,!0))&&(Oe|=1);const bt=tg(ee);return bt&&gl(bt.expression).kind!==106&&(Oe|=64),gy(y,ee)&&(Oe|=2),wP(y,ee)&&(Oe|=4),Dn(ee)?Oe|=8:Rs(ee)?Oe|=32:hl(ee)&&(Oe|=16),Oe}function $e(ee){return!!(ee.transformFlags&8192)}function kt(ee){return Kp(ee)||Pe(ee.typeParameters)||Pe(ee.heritageClauses,$e)||Pe(ee.members,$e)}function nn(ee){const Oe=yt(ee),bt=g<=1&&!!(Oe&7);if(!kt(ee)&&!gy(y,ee)&&!Dn(ee))return t.updateClassDeclaration(ee,Wn(ee.modifiers,xe,Fa),ee.name,void 0,Wn(ee.heritageClauses,X,Fp),Wn(ee.members,Ue(ee),vu));bt&&e.startLexicalEnvironment();const _n=bt||Oe&8;let Tr=_n?Wn(ee.modifiers,Tt,bc):Wn(ee.modifiers,X,bc);Oe&2&&(Tr=Zn(Tr,ee));const qr=_n&&!ee.name||Oe&4||Oe&1?ee.name??t.getGeneratedNameForNode(ee):ee.name,Ni=t.updateClassDeclaration(ee,Tr,qr,void 0,Wn(ee.heritageClauses,X,Fp),In(ee));let Fr=Ya(ee);Oe&1&&(Fr|=64),pr(Ni,Fr);let ia;if(bt){const jc=[Ni],fu=vq(za(N.text,ee.members.end),20),rc=t.getInternalName(ee),jl=t.createPartiallyEmittedExpression(rc);C4(jl,fu.end),pr(jl,3072);const Io=t.createReturnStatement(jl);iw(Io,fu.pos),pr(Io,3840),jc.push(Io),Nh(jc,e.endLexicalEnvironment());const pu=t.createImmediatelyInvokedArrowFunction(jc);RN(pu,1);const If=t.createVariableDeclaration(t.getLocalName(ee,!1,!1),void 0,void 0,pu);Ir(If,ee);const ru=t.createVariableStatement(void 0,t.createVariableDeclarationList([If],1));Ir(ru,ee),kl(ru,ee),ja(ru,y0(ee)),y_(ru),ia=ru}else ia=Ni;if(_n){if(Oe&8)return[ia,bo(ee)];if(Oe&32)return[ia,t.createExportDefault(t.getLocalName(ee,!1,!0))];if(Oe&16)return[ia,t.createExternalModuleExport(t.getDeclarationName(ee,!1,!0))]}return ia}function sn(ee){let Oe=Wn(ee.modifiers,Tt,bc);return gy(y,ee)&&(Oe=Zn(Oe,ee)),t.updateClassExpression(ee,Oe,ee.name,void 0,Wn(ee.heritageClauses,X,Fp),In(ee))}function In(ee){const Oe=Wn(ee.members,Ue(ee),vu);let bt;const _n=Rh(ee),Tr=_n&&vr(_n.parameters,br=>Uf(br,_n));if(Tr)for(const br of Tr){const qr=t.createPropertyDeclaration(void 0,br.name,void 0,void 0,void 0);Ir(qr,br),bt=gn(bt,qr)}return bt?(bt=Mr(bt,Oe),ut(t.createNodeArray(bt),ee.members)):Oe}function Zn(ee,Oe){const bt=Zt(Oe,Oe);if(Pe(bt)){const _n=[];Mr(_n,jO(ee,s7)),Mr(_n,vr(ee,Vu)),Mr(_n,bt),Mr(_n,vr(Nre(ee,s7),Fa)),ee=ut(t.createNodeArray(_n),ee)}return ee}function hn(ee,Oe,bt){if(fi(bt)&&IW(y,Oe,bt)){const _n=Zt(Oe,bt);if(Pe(_n)){const Tr=[];Mr(Tr,vr(ee,Vu)),Mr(Tr,_n),Mr(Tr,vr(ee,Fa)),ee=ut(t.createNodeArray(Tr),ee)}}return ee}function Zt(ee,Oe){if(y)return HCe?yi(ee,Oe):Yt(ee,Oe)}function Yt(ee,Oe){if(x){let bt;if(us(ee)){const _n=r().createMetadataHelper("design:type",x.serializeTypeOfNode({currentLexicalScope:V,currentNameScope:Oe},ee));bt=gn(bt,t.createDecorator(_n))}if(Os(ee)){const _n=r().createMetadataHelper("design:paramtypes",x.serializeParameterTypesOfNode({currentLexicalScope:V,currentNameScope:Oe},ee,Oe));bt=gn(bt,t.createDecorator(_n))}if(zi(ee)){const _n=r().createMetadataHelper("design:returntype",x.serializeReturnTypeOfNode({currentLexicalScope:V,currentNameScope:Oe},ee));bt=gn(bt,t.createDecorator(_n))}return bt}}function yi(ee,Oe){if(x){let bt;if(us(ee)){const _n=t.createPropertyAssignment("type",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),x.serializeTypeOfNode({currentLexicalScope:V,currentNameScope:Oe},ee)));bt=gn(bt,_n)}if(Os(ee)){const _n=t.createPropertyAssignment("paramTypes",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),x.serializeParameterTypesOfNode({currentLexicalScope:V,currentNameScope:Oe},ee,Oe)));bt=gn(bt,_n)}if(zi(ee)){const _n=t.createPropertyAssignment("returnType",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),x.serializeReturnTypeOfNode({currentLexicalScope:V,currentNameScope:Oe},ee)));bt=gn(bt,_n)}if(bt){const _n=r().createMetadataHelper("design:typeinfo",t.createObjectLiteralExpression(bt,!0));return[t.createDecorator(_n)]}}}function us(ee){const Oe=ee.kind;return Oe===174||Oe===177||Oe===178||Oe===172}function zi(ee){return ee.kind===174}function Os(ee){switch(ee.kind){case 263:case 231:return Rh(ee)!==void 0;case 174:case 177:case 178:return!0}return!1}function On(ee,Oe){const bt=ee.name;return Qi(bt)?t.createIdentifier(""):co(bt)?bt.expression:Je(bt)?t.createStringLiteral(kr(bt)):t.cloneNode(bt)}function Fi(ee){const Oe=ee.name;if(co(Oe)&&(!Fl(ee)&&Z||Kp(ee)&&y)){const bt=tt(Oe.expression,X,vt);w.assert(bt);const _n=Zd(bt);if(!nh(_n)){const Tr=t.getGeneratedNameForNode(Oe);return c(Tr),t.updateComputedPropertyName(Oe,t.createAssignment(Tr,bt))}}return w.checkDefined(tt(Oe,X,Tl))}function Er(ee){if(ee.token!==119)return En(ee,X,e)}function cn(ee){return t.updateExpressionWithTypeArguments(ee,w.checkDefined(tt(ee.expression,X,Pf)),void 0)}function et(ee){return!nl(ee.body)}function Jt(ee,Oe){const bt=ee.flags&33554432||Kr(ee,64);if(bt&&!(y&&Kp(ee)))return;let _n=fi(Oe)?bt?Wn(ee.modifiers,Tt,bc):Wn(ee.modifiers,X,bc):Wn(ee.modifiers,Le,bc);return _n=hn(_n,ee,Oe),bt?t.updatePropertyDeclaration(ee,zn(_n,t.createModifiersFromModifierFlags(128)),w.checkDefined(tt(ee.name,X,Tl)),void 0,void 0,void 0):t.updatePropertyDeclaration(ee,_n,Fi(ee),void 0,void 0,tt(ee.initializer,X,vt))}function wn(ee){if(et(ee))return t.updateConstructorDeclaration(ee,void 0,Wc(ee.parameters,X,e),vi(ee.body,ee))}function ui(ee,Oe,bt,_n,Tr,br){const qr=_n[Tr],Ni=Oe[qr];if(Mr(ee,Wn(Oe,X,Xi,bt,qr-bt)),Cx(Ni)){const Fr=[];ui(Fr,Ni.tryBlock.statements,0,_n,Tr+1,br);const ia=t.createNodeArray(Fr);ut(ia,Ni.tryBlock.statements),ee.push(t.updateTryStatement(Ni,t.updateBlock(Ni.tryBlock,Fr),tt(Ni.catchClause,X,Jb),tt(Ni.finallyBlock,X,na)))}else Mr(ee,Wn(Oe,X,Xi,qr,1)),Mr(ee,br);Mr(ee,Wn(Oe,X,Xi,qr+1))}function vi(ee,Oe){const bt=Oe&&vr(Oe.parameters,Fr=>Uf(Fr,Oe));if(!Pe(bt))return Rp(ee,X,e);let _n=[];s();const Tr=t.copyPrologue(ee.statements,_n,!1,X),br=eR(ee.statements,Tr),qr=Oi(bt,ts);br.length?ui(_n,ee.statements,Tr,br,0,qr):(Mr(_n,qr),Mr(_n,Wn(ee.statements,X,Xi,Tr))),_n=t.mergeLexicalEnvironment(_n,o());const Ni=t.createBlock(ut(t.createNodeArray(_n),ee.statements),!0);return ut(Ni,ee),Ir(Ni,ee),Ni}function ts(ee){const Oe=ee.name;if(!Je(Oe))return;const bt=eo(ut(t.cloneNode(Oe),Oe),Oe.parent);pr(bt,3168);const _n=eo(ut(t.cloneNode(Oe),Oe),Oe.parent);return pr(_n,3072),y_(MN(ut(Ir(t.createExpressionStatement(t.createAssignment(ut(t.createPropertyAccessExpression(t.createThis(),bt),ee.name),_n)),ee),t2(ee,-1))))}function Ds(ee,Oe){if(!(ee.transformFlags&1))return ee;if(!et(ee))return;let bt=fi(Oe)?Wn(ee.modifiers,X,bc):Wn(ee.modifiers,Le,bc);return bt=hn(bt,ee,Oe),t.updateMethodDeclaration(ee,bt,ee.asteriskToken,Fi(ee),void 0,void 0,Wc(ee.parameters,X,e),void 0,Rp(ee.body,X,e))}function Sa(ee){return!(nl(ee.body)&&Kr(ee,64))}function Wa(ee,Oe){if(!(ee.transformFlags&1))return ee;if(!Sa(ee))return;let bt=fi(Oe)?Wn(ee.modifiers,X,bc):Wn(ee.modifiers,Le,bc);return bt=hn(bt,ee,Oe),t.updateGetAccessorDeclaration(ee,bt,Fi(ee),Wc(ee.parameters,X,e),void 0,Rp(ee.body,X,e)||t.createBlock([]))}function Tn(ee,Oe){if(!(ee.transformFlags&1))return ee;if(!Sa(ee))return;let bt=fi(Oe)?Wn(ee.modifiers,X,bc):Wn(ee.modifiers,Le,bc);return bt=hn(bt,ee,Oe),t.updateSetAccessorDeclaration(ee,bt,Fi(ee),Wc(ee.parameters,X,e),Rp(ee.body,X,e)||t.createBlock([]))}function Ln(ee){if(!et(ee))return t.createNotEmittedStatement(ee);const Oe=t.updateFunctionDeclaration(ee,Wn(ee.modifiers,xe,Fa),ee.asteriskToken,ee.name,void 0,Wc(ee.parameters,X,e),void 0,Rp(ee.body,X,e)||t.createBlock([]));if(Dn(ee)){const bt=[Oe];return tc(bt,ee),bt}return Oe}function Ve(ee){return et(ee)?t.updateFunctionExpression(ee,Wn(ee.modifiers,xe,Fa),ee.asteriskToken,ee.name,void 0,Wc(ee.parameters,X,e),void 0,Rp(ee.body,X,e)||t.createBlock([])):t.createOmittedExpression()}function pt(ee){return t.updateArrowFunction(ee,Wn(ee.modifiers,xe,Fa),void 0,Wc(ee.parameters,X,e),void 0,ee.equalsGreaterThanToken,Rp(ee.body,X,e))}function ft(ee){if(kb(ee))return;const Oe=t.updateParameterDeclaration(ee,Wn(ee.modifiers,bt=>Vu(bt)?X(bt):void 0,bc),ee.dotDotDotToken,w.checkDefined(tt(ee.name,X,YS)),void 0,void 0,tt(ee.initializer,X,vt));return Oe!==ee&&(kl(Oe,ee),ut(Oe,ag(ee)),ja(Oe,ag(ee)),pr(Oe.name,64)),Oe}function At(ee){if(Dn(ee)){const Oe=$P(ee.declarationList);return Oe.length===0?void 0:ut(t.createExpressionStatement(t.inlineExpressions(Kt(Oe,le))),ee)}else return En(ee,X,e)}function le(ee){const Oe=ee.name;return ca(Oe)?Fx(ee,X,e,0,!1,Iu):ut(t.createAssignment(vs(Oe),w.checkDefined(tt(ee.initializer,X,vt))),ee)}function Me(ee){const Oe=t.updateVariableDeclaration(ee,w.checkDefined(tt(ee.name,X,YS)),void 0,void 0,tt(ee.initializer,X,vt));return ee.type&&goe(Oe.name,ee.type),Oe}function _t(ee){const Oe=gl(ee.expression,-7);if(KS(Oe)){const bt=tt(ee.expression,X,vt);return w.assert(bt),t.createPartiallyEmittedExpression(bt,ee)}return En(ee,X,e)}function U(ee){const Oe=tt(ee.expression,X,vt);return w.assert(Oe),t.createPartiallyEmittedExpression(Oe,ee)}function it(ee){const Oe=tt(ee.expression,X,Pf);return w.assert(Oe),t.createPartiallyEmittedExpression(Oe,ee)}function Et(ee){const Oe=tt(ee.expression,X,vt);return w.assert(Oe),t.createPartiallyEmittedExpression(Oe,ee)}function Ge(ee){return t.updateCallExpression(ee,w.checkDefined(tt(ee.expression,X,vt)),void 0,Wn(ee.arguments,X,vt))}function mt(ee){return t.updateNewExpression(ee,w.checkDefined(tt(ee.expression,X,vt)),void 0,Wn(ee.arguments,X,vt))}function Ut(ee){return t.updateTaggedTemplateExpression(ee,w.checkDefined(tt(ee.tag,X,vt)),void 0,w.checkDefined(tt(ee.template,X,gk)))}function vn(ee){return t.updateJsxSelfClosingElement(ee,w.checkDefined(tt(ee.tagName,X,SP)),void 0,w.checkDefined(tt(ee.attributes,X,Bb)))}function pn(ee){return t.updateJsxOpeningElement(ee,w.checkDefined(tt(ee.tagName,X,SP)),void 0,w.checkDefined(tt(ee.attributes,X,Bb)))}function mn(ee){return!mb(ee)||Nb(f)}function q(ee){if(!mn(ee))return t.createNotEmittedStatement(ee);const Oe=[];let bt=4;const _n=Ie(Oe,ee);_n&&(d!==4||V!==N)&&(bt|=1024);const Tr=va(ee),br=Ou(ee),qr=Dn(ee)?t.getExternalModuleOrNamespaceExportName(M,ee,!1,!0):t.getDeclarationName(ee,!1,!0);let Ni=t.createLogicalOr(qr,t.createAssignment(qr,t.createObjectLiteralExpression()));if(Dn(ee)){const ia=t.getLocalName(ee,!1,!0);Ni=t.createAssignment(ia,Ni)}const Fr=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,Tr)],void 0,Fe(ee,br)),void 0,[Ni]));return Ir(Fr,ee),_n&&(s2(Fr,void 0),Mk(Fr,void 0)),ut(Fr,ee),og(Fr,bt),Oe.push(Fr),Oe}function Fe(ee,Oe){const bt=M;M=Oe;const _n=[];i();const Tr=Kt(ee.members,Ot);return Nh(_n,o()),Mr(_n,Tr),M=bt,t.createBlock(ut(t.createNodeArray(_n),ee.members),!0)}function Ot(ee){const Oe=On(ee),bt=I(ee),_n=t.createAssignment(t.createElementAccessExpression(M,Oe),bt),Tr=bt.kind===11?_n:t.createAssignment(t.createElementAccessExpression(M,_n),Oe);return ut(t.createExpressionStatement(ut(Tr,ee)),ee)}function I(ee){const Oe=u.getConstantValue(ee);return Oe!==void 0?typeof Oe=="string"?t.createStringLiteral(Oe):Oe<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-Oe)):t.createNumericLiteral(Oe):(Lo(),ee.initializer?w.checkDefined(tt(ee.initializer,X,vt)):t.createVoidZero())}function me(ee){const Oe=Is(ee,dl);return Oe?UG(Oe,Nb(f)):!0}function H(ee){G||(G=new Map);const Oe=Be(ee);G.has(Oe)||G.set(Oe,ee)}function de(ee){if(G){const Oe=Be(ee);return G.get(Oe)===ee}return!0}function Be(ee){return w.assertNode(ee.name,Je),ee.name.escapedText}function Ie(ee,Oe){const bt=t.createVariableDeclaration(t.getLocalName(Oe,!1,!0)),_n=V.kind===312?0:1,Tr=t.createVariableStatement(Wn(Oe.modifiers,xe,Fa),t.createVariableDeclarationList([bt],_n));return Ir(bt,Oe),s2(bt,void 0),Mk(bt,void 0),Ir(Tr,Oe),H(Oe),de(Oe)?(Oe.kind===266?ja(Tr.declarationList,Oe):ja(Tr,Oe),kl(Tr,Oe),og(Tr,2048),ee.push(Tr),!0):!1}function xt(ee){if(!me(ee))return t.createNotEmittedStatement(ee);w.assertNode(ee.name,Je,"A TypeScript namespace should have an Identifier name."),Ja();const Oe=[];let bt=4;const _n=Ie(Oe,ee);_n&&(d!==4||V!==N)&&(bt|=1024);const Tr=va(ee),br=Ou(ee),qr=Dn(ee)?t.getExternalModuleOrNamespaceExportName(M,ee,!1,!0):t.getDeclarationName(ee,!1,!0);let Ni=t.createLogicalOr(qr,t.createAssignment(qr,t.createObjectLiteralExpression()));if(Dn(ee)){const ia=t.getLocalName(ee,!1,!0);Ni=t.createAssignment(ia,Ni)}const Fr=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,Tr)],void 0,Ft(ee,br)),void 0,[Ni]));return Ir(Fr,ee),_n&&(s2(Fr,void 0),Mk(Fr,void 0)),ut(Fr,ee),og(Fr,bt),Oe.push(Fr),Oe}function Ft(ee,Oe){const bt=M,_n=D,Tr=G;M=Oe,D=ee,G=void 0;const br=[];i();let qr,Ni;if(ee.body)if(ee.body.kind===268)ve(ee.body,ia=>Mr(br,Wn(ia.statements,ye,Xi))),qr=ee.body.statements,Ni=ee.body;else{const ia=xt(ee.body);ia&&(Ps(ia)?Mr(br,ia):br.push(ia));const jc=tn(ee).body;qr=t2(jc.statements,-1)}Nh(br,o()),M=bt,D=_n,G=Tr;const Fr=t.createBlock(ut(t.createNodeArray(br),qr),!0);return ut(Fr,Ni),(!ee.body||ee.body.kind!==268)&&pr(Fr,Ya(Fr)|3072),Fr}function tn(ee){if(ee.body.kind===267)return tn(ee.body)||ee.body}function Sn(ee){if(!ee.importClause)return ee;if(ee.importClause.isTypeOnly)return;const Oe=tt(ee.importClause,Un,Yg);return Oe||f.importsNotUsedAsValues===1||f.importsNotUsedAsValues===2?t.updateImportDeclaration(ee,void 0,Oe,ee.moduleSpecifier,ee.attributes):void 0}function Un(ee){w.assert(!ee.isTypeOnly);const Oe=_e(ee)?ee.name:void 0,bt=tt(ee.namedBindings,Gn,aW);return Oe||bt?t.updateImportClause(ee,!1,Oe,bt):void 0}function Gn(ee){if(ee.kind===274)return _e(ee)?ee:void 0;{const Oe=f.verbatimModuleSyntax||f.preserveValueImports&&(f.importsNotUsedAsValues===1||f.importsNotUsedAsValues===2),bt=Wn(ee.elements,Li,Df);return Oe||Pe(bt)?t.updateNamedImports(ee,bt):void 0}}function Li(ee){return!ee.isTypeOnly&&_e(ee)?ee:void 0}function wi(ee){return f.verbatimModuleSyntax||u.isValueAliasDeclaration(ee)?En(ee,X,e):void 0}function sr(ee){if(ee.isTypeOnly)return;if(!ee.exportClause||Zg(ee.exportClause))return ee;const Oe=f.verbatimModuleSyntax||!!ee.moduleSpecifier&&(f.importsNotUsedAsValues===1||f.importsNotUsedAsValues===2),bt=tt(ee.exportClause,_n=>Mi(_n,Oe),$V);return bt?t.updateExportDeclaration(ee,void 0,ee.isTypeOnly,bt,ee.moduleSpecifier,ee.attributes):void 0}function Wr(ee,Oe){const bt=Wn(ee.elements,Di,h_);return Oe||Pe(bt)?t.updateNamedExports(ee,bt):void 0}function xs(ee){return t.updateNamespaceExport(ee,w.checkDefined(tt(ee.name,X,Je)))}function Mi(ee,Oe){return Zg(ee)?xs(ee):Wr(ee,Oe)}function Di(ee){return!ee.isTypeOnly&&(f.verbatimModuleSyntax||u.isValueAliasDeclaration(ee))?ee:void 0}function $r(ee){return _e(ee)||!Cl(N)&&u.isTopLevelValueImportEqualsWithEntityName(ee)}function As(ee){if(ee.isTypeOnly)return;if(Qv(ee)){const bt=_e(ee);return!bt&&f.importsNotUsedAsValues===1?Ir(ut(t.createImportDeclaration(void 0,void 0,ee.moduleReference.expression,void 0),ee),ee):bt?En(ee,X,e):void 0}if(!$r(ee))return;const Oe=e7(t,ee.moduleReference);return pr(Oe,7168),hl(ee)||!Dn(ee)?Ir(ut(t.createVariableStatement(Wn(ee.modifiers,xe,Fa),t.createVariableDeclarationList([Ir(t.createVariableDeclaration(ee.name,void 0,void 0,Oe),ee)])),ee),ee):Ir(Oc(ee.name,Oe,ee),ee)}function Dn(ee){return D!==void 0&&Kr(ee,32)}function Yo(ee){return D===void 0&&Kr(ee,32)}function hl(ee){return Yo(ee)&&!Kr(ee,2048)}function Rs(ee){return Yo(ee)&&Kr(ee,2048)}function bo(ee){const Oe=t.createAssignment(t.getExternalModuleOrNamespaceExportName(M,ee,!1,!0),t.getLocalName(ee));ja(Oe,ed(ee.name?ee.name.pos:ee.pos,ee.end));const bt=t.createExpressionStatement(Oe);return ja(bt,ed(-1,ee.end)),bt}function tc(ee,Oe){ee.push(bo(Oe))}function Oc(ee,Oe,bt){return ut(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(M,ee,!1,!0),Oe)),bt)}function Iu(ee,Oe,bt){return ut(t.createAssignment(vs(ee),Oe),bt)}function vs(ee){return t.getNamespaceMemberName(M,ee,!1,!0)}function va(ee){const Oe=t.getGeneratedNameForNode(ee);return ja(Oe,ee.name),Oe}function Ou(ee){return t.getGeneratedNameForNode(ee)}function Lo(){z&8||(z|=8,e.enableSubstitution(80))}function Ja(){z&2||(z|=2,e.enableSubstitution(80),e.enableSubstitution(304),e.enableEmitNotification(267))}function Pc(ee){return Gc(ee).kind===267}function ld(ee){return Gc(ee).kind===266}function El(ee,Oe,bt){const _n=ce,Tr=N;es(Oe)&&(N=Oe),z&2&&Pc(Oe)&&(ce|=2),z&8&&ld(Oe)&&(ce|=8),T(ee,Oe,bt),ce=_n,N=Tr}function qc(ee,Oe){return Oe=C(ee,Oe),ee===1?js(Oe):Af(Oe)?xc(Oe):Oe}function xc(ee){if(z&2){const Oe=ee.name,bt=nc(Oe);if(bt){if(ee.objectAssignmentInitializer){const _n=t.createAssignment(bt,ee.objectAssignmentInitializer);return ut(t.createPropertyAssignment(Oe,_n),ee)}return ut(t.createPropertyAssignment(Oe,bt),ee)}}return ee}function js(ee){switch(ee.kind){case 80:return rn(ee);case 211:return ku(ee);case 212:return Fu(ee)}return ee}function rn(ee){return nc(ee)||ee}function nc(ee){if(z&ce&&!vc(ee)&&!T0(ee)){const Oe=u.getReferencedExportContainer(ee,!1);if(Oe&&Oe.kind!==312&&(ce&2&&Oe.kind===267||ce&8&&Oe.kind===266))return ut(t.createPropertyAccessExpression(t.getGeneratedNameForNode(Oe),ee),ee)}}function ku(ee){return Wo(ee)}function Fu(ee){return Wo(ee)}function Kf(ee){return ee.replace(/\*\//g,"*_/")}function Wo(ee){const Oe=Gl(ee);if(Oe!==void 0){doe(ee,Oe);const bt=typeof Oe=="string"?t.createStringLiteral(Oe):Oe<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-Oe)):t.createNumericLiteral(Oe);if(!f.removeComments){const _n=Gc(ee,$o);gL(bt,3,` ${Kf(Ol(_n))} `)}return bt}return ee}function Gl(ee){if(!Ld(f))return Jr(ee)||uc(ee)?u.getConstantValue(ee):void 0}function _e(ee){return f.verbatimModuleSyntax||lr(ee)||(f.preserveValueImports?u.isValueAliasDeclaration(ee):u.isReferencedAliasDeclaration(ee))}}var HCe,Cqe=K({"src/compiler/transformers/ts.ts"(){ua(),HCe=!1}});function Ole(e){const{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i,endLexicalEnvironment:s,startLexicalEnvironment:o,resumeLexicalEnvironment:c,addBlockScopedVariable:u}=e,f=e.getEmitResolver(),g=e.getCompilerOptions(),d=go(g),y=dw(g),x=!!g.experimentalDecorators,T=!y,C=y&&d<9,N=T||C,D=d<9,M=d<99?-1:y?0:3,V=d<9,G=V&&d>=2,Z=N||D||M===-1,z=e.onSubstituteNode;e.onSubstituteNode=ku;const ce=e.onEmitNode;e.onEmitNode=nc;let J=!1,ne,ge,ve,Q,X;const se=new Map,pe=new Set;let we,fe,ie=!1,ye=!1;return am(e,Ne);function Ne(_e){if(_e.isDeclarationFile||(X=void 0,J=!!(Kd(_e)&32),!Z&&!J))return _e;const ee=En(_e,Se,e);return S0(ee,e.readEmitHelpers()),ee}function Ue(_e){switch(_e.kind){case 129:return Jt()?void 0:_e;default:return si(_e,Fa)}}function Se(_e){if(!(_e.transformFlags&16777216)&&!(_e.transformFlags&134234112))return _e;switch(_e.kind){case 129:return w.fail("Use `modifierVisitor` instead.");case 263:return pn(_e);case 231:return q(_e);case 175:case 172:return w.fail("Use `classElementVisitor` instead.");case 303:return $e(_e);case 243:return kt(_e);case 260:return nn(_e);case 169:return sn(_e);case 208:return In(_e);case 277:return Zn(_e);case 81:return zt(_e);case 211:return Sa(_e);case 212:return Wa(_e);case 224:case 225:return Tn(_e,!1);case 226:return _t(_e,!1);case 217:return it(_e,!1);case 213:return ft(_e);case 244:return Ve(_e);case 215:return At(_e);case 248:return Ln(_e);case 110:return I(_e);case 262:case 218:return zi(void 0,Ee,_e);case 176:case 174:case 177:case 178:return zi(_e,Ee,_e);default:return Ee(_e)}}function Ee(_e){return En(_e,Se,e)}function Ae(_e){switch(_e.kind){case 224:case 225:return Tn(_e,!0);case 226:return _t(_e,!0);case 361:return U(_e);case 217:return it(_e,!0);default:return Se(_e)}}function Le(_e){switch(_e.kind){case 298:return En(_e,Le,e);case 233:return Ut(_e);default:return Se(_e)}}function Tt(_e){switch(_e.kind){case 210:case 209:return rn(_e);default:return Se(_e)}}function xe(_e){switch(_e.kind){case 176:return zi(_e,Yt,_e);case 177:case 178:case 174:return zi(_e,us,_e);case 172:return zi(_e,wn,_e);case 175:return zi(_e,Ot,_e);case 167:return Zt(_e);case 240:return _e;default:return bc(_e)?Ue(_e):Se(_e)}}function ze(_e){switch(_e.kind){case 167:return Zt(_e);default:return Se(_e)}}function st(_e){switch(_e.kind){case 172:return et(_e);case 177:case 178:return xe(_e);default:w.assertMissingNode(_e,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function zt(_e){return!D||Xi(_e.parent)?_e:Ir(t.createIdentifier(""),_e)}function yt(_e){const ee=va(_e.left);if(ee){const Oe=tt(_e.right,Se,vt);return Ir(r().createClassPrivateFieldInHelper(ee.brandCheckIdentifier,Oe),_e)}return En(_e,Se,e)}function $e(_e){return Wf(_e,Me)&&(_e=Qf(e,_e)),En(_e,Se,e)}function kt(_e){const ee=Q;Q=[];const Oe=En(_e,Se,e),bt=Pe(Q)?[Oe,...Q]:Oe;return Q=ee,bt}function nn(_e){return Wf(_e,Me)&&(_e=Qf(e,_e)),En(_e,Se,e)}function sn(_e){return Wf(_e,Me)&&(_e=Qf(e,_e)),En(_e,Se,e)}function In(_e){return Wf(_e,Me)&&(_e=Qf(e,_e)),En(_e,Se,e)}function Zn(_e){return Wf(_e,Me)&&(_e=Qf(e,_e,!0,_e.isExportEquals?"":"default")),En(_e,Se,e)}function hn(_e){return Pe(ve)&&(df(_e)?(ve.push(_e.expression),_e=t.updateParenthesizedExpression(_e,t.inlineExpressions(ve))):(ve.push(_e),_e=t.inlineExpressions(ve)),ve=void 0),_e}function Zt(_e){const ee=tt(_e.expression,Se,vt);return t.updateComputedPropertyName(_e,hn(ee))}function Yt(_e){return we?de(_e,we):Ee(_e)}function yi(_e){return!!(D||Fl(_e)&&Kd(_e)&32)}function us(_e){if(w.assert(!Kp(_e)),!O_(_e)||!yi(_e))return En(_e,xe,e);const ee=va(_e.name);if(w.assert(ee,"Undeclared private name for property declaration."),!ee.isValid)return _e;const Oe=Os(_e);Oe&&As().push(t.createAssignment(Oe,t.createFunctionExpression(vr(_e.modifiers,bt=>Fa(bt)&&!Vk(bt)&&!Doe(bt)),_e.asteriskToken,Oe,void 0,Wc(_e.parameters,Se,e),void 0,Rp(_e.body,Se,e))))}function zi(_e,ee,Oe){if(_e!==fe){const bt=fe;fe=_e;const _n=ee(Oe);return fe=bt,_n}return ee(Oe)}function Os(_e){w.assert(Qi(_e.name));const ee=va(_e.name);if(w.assert(ee,"Undeclared private name for property declaration."),ee.kind==="m")return ee.methodName;if(ee.kind==="a"){if(g1(_e))return ee.getterName;if(my(_e))return ee.setterName}}function On(){const _e=Di(),ee=_e.classThis??_e.classConstructor??(we==null?void 0:we.name);return w.checkDefined(ee)}function Fi(_e){const ee=cg(_e),Oe=Ty(_e),bt=_e.name;let _n=bt,Tr=bt;if(co(bt)&&!nh(bt.expression)){const fu=mM(bt);if(fu)_n=t.updateComputedPropertyName(bt,tt(bt.expression,Se,vt)),Tr=t.updateComputedPropertyName(bt,fu.left);else{const rc=t.createTempVariable(i);ja(rc,bt.expression);const jl=tt(bt.expression,Se,vt),Io=t.createAssignment(rc,jl);ja(Io,bt.expression),_n=t.updateComputedPropertyName(bt,Io),Tr=t.updateComputedPropertyName(bt,rc)}}const br=Wn(_e.modifiers,Ue,Fa),qr=XH(t,_e,br,_e.initializer);Ir(qr,_e),pr(qr,3072),ja(qr,Oe);const Ni=da(_e)?On():t.createThis(),Fr=uce(t,_e,br,_n,Ni);Ir(Fr,_e),kl(Fr,ee),ja(Fr,Oe);const ia=t.createModifiersFromModifierFlags(sg(br)),jc=_ce(t,_e,ia,Tr,Ni);return Ir(jc,_e),pr(jc,3072),ja(jc,Oe),I7([qr,Fr,jc],st,vu)}function Er(_e){if(yi(_e)){const ee=va(_e.name);if(w.assert(ee,"Undeclared private name for property declaration."),!ee.isValid)return _e;if(ee.isStatic&&!D){const Oe=Ft(_e,t.createThis());if(Oe)return t.createClassStaticBlockDeclaration(t.createBlock([Oe],!0))}return}return T&&!da(_e)&&(X!=null&&X.data)&&X.data.facts&16?t.updatePropertyDeclaration(_e,Wn(_e.modifiers,Se,bc),_e.name,void 0,void 0,void 0):(Wf(_e,Me)&&(_e=Qf(e,_e)),t.updatePropertyDeclaration(_e,Wn(_e.modifiers,Ue,Fa),tt(_e.name,ze,Tl),void 0,void 0,tt(_e.initializer,Se,vt)))}function cn(_e){if(N&&!uf(_e)){const ee=Wr(_e.name,!!_e.initializer||y);if(ee&&As().push(...fce(ee)),da(_e)&&!D){const Oe=Ft(_e,t.createThis());if(Oe){const bt=t.createClassStaticBlockDeclaration(t.createBlock([Oe]));return Ir(bt,_e),kl(bt,_e),kl(Oe,{pos:-1,end:-1}),s2(Oe,void 0),Mk(Oe,void 0),bt}}return}return t.updatePropertyDeclaration(_e,Wn(_e.modifiers,Ue,Fa),tt(_e.name,ze,Tl),void 0,void 0,tt(_e.initializer,Se,vt))}function et(_e){return w.assert(!Kp(_e),"Decorators should already have been transformed and elided."),O_(_e)?Er(_e):cn(_e)}function Jt(){return M===-1||M===3&&!!(X!=null&&X.data)&&!!(X.data.facts&16)}function wn(_e){return uf(_e)&&(Jt()||Fl(_e)&&Kd(_e)&32)?Fi(_e):et(_e)}function ui(){return!!fe&&Fl(fe)&&d1(fe)&&uf(Gc(fe))}function vi(_e){if(ui()){const ee=gl(_e);ee.kind===110&&pe.add(ee)}}function ts(_e,ee){return ee=tt(ee,Se,vt),vi(ee),Ds(_e,ee)}function Ds(_e,ee){switch(kl(ee,t2(ee,-1)),_e.kind){case"a":return r().createClassPrivateFieldGetHelper(ee,_e.brandCheckIdentifier,_e.kind,_e.getterName);case"m":return r().createClassPrivateFieldGetHelper(ee,_e.brandCheckIdentifier,_e.kind,_e.methodName);case"f":return r().createClassPrivateFieldGetHelper(ee,_e.brandCheckIdentifier,_e.kind,_e.isStatic?_e.variableName:void 0);case"untransformed":return w.fail("Access helpers should not be created for untransformed private elements");default:w.assertNever(_e,"Unknown private element type")}}function Sa(_e){if(Qi(_e.name)){const ee=va(_e.name);if(ee)return ut(Ir(ts(ee,_e.expression),_e),_e)}if(G&&fe&&ff(_e)&&Je(_e.name)&&$w(fe)&&(X!=null&&X.data)){const{classConstructor:ee,superClassReference:Oe,facts:bt}=X.data;if(bt&1)return sr(_e);if(ee&&Oe){const _n=t.createReflectGetCall(Oe,t.createStringLiteralFromNode(_e.name),ee);return Ir(_n,_e.expression),ut(_n,_e.expression),_n}}return En(_e,Se,e)}function Wa(_e){if(G&&fe&&ff(_e)&&$w(fe)&&(X!=null&&X.data)){const{classConstructor:ee,superClassReference:Oe,facts:bt}=X.data;if(bt&1)return sr(_e);if(ee&&Oe){const _n=t.createReflectGetCall(Oe,tt(_e.argumentExpression,Se,vt),ee);return Ir(_n,_e.expression),ut(_n,_e.expression),_n}}return En(_e,Se,e)}function Tn(_e,ee){if(_e.operator===46||_e.operator===47){const Oe=Eo(_e.operand);if(z6(Oe)){let bt;if(bt=va(Oe.name)){const _n=tt(Oe.expression,Se,vt);vi(_n);const{readExpression:Tr,initializeExpression:br}=pt(_n);let qr=ts(bt,Tr);const Ni=O1(_e)||ee?void 0:t.createTempVariable(i);return qr=cM(t,_e,qr,i,Ni),qr=Et(bt,br||Tr,qr,64),Ir(qr,_e),ut(qr,_e),Ni&&(qr=t.createComma(qr,Ni),ut(qr,_e)),qr}}else if(G&&fe&&ff(Oe)&&$w(fe)&&(X!=null&&X.data)){const{classConstructor:bt,superClassReference:_n,facts:Tr}=X.data;if(Tr&1){const br=sr(Oe);return O1(_e)?t.updatePrefixUnaryExpression(_e,br):t.updatePostfixUnaryExpression(_e,br)}if(bt&&_n){let br,qr;if(Jr(Oe)?Je(Oe.name)&&(qr=br=t.createStringLiteralFromNode(Oe.name)):nh(Oe.argumentExpression)?qr=br=Oe.argumentExpression:(qr=t.createTempVariable(i),br=t.createAssignment(qr,tt(Oe.argumentExpression,Se,vt))),br&&qr){let Ni=t.createReflectGetCall(_n,qr,bt);ut(Ni,Oe);const Fr=ee?void 0:t.createTempVariable(i);return Ni=cM(t,_e,Ni,i,Fr),Ni=t.createReflectSetCall(_n,br,Ni,bt),Ir(Ni,_e),ut(Ni,_e),Fr&&(Ni=t.createComma(Ni,Fr),ut(Ni,_e)),Ni}}}}return En(_e,Se,e)}function Ln(_e){return t.updateForStatement(_e,tt(_e.initializer,Ae,Zp),tt(_e.condition,Se,vt),tt(_e.incrementor,Ae,vt),K_(_e.statement,Se,e))}function Ve(_e){return t.updateExpressionStatement(_e,tt(_e.expression,Ae,vt))}function pt(_e){const ee=lc(_e)?_e:t.cloneNode(_e);if(_e.kind===110&&pe.has(_e)&&pe.add(ee),nh(_e))return{readExpression:ee,initializeExpression:void 0};const Oe=t.createTempVariable(i),bt=t.createAssignment(Oe,ee);return{readExpression:Oe,initializeExpression:bt}}function ft(_e){var ee;if(z6(_e.expression)&&va(_e.expression.name)){const{thisArg:Oe,target:bt}=t.createCallBinding(_e.expression,i,d);return XS(_e)?t.updateCallChain(_e,t.createPropertyAccessChain(tt(bt,Se,vt),_e.questionDotToken,"call"),void 0,void 0,[tt(Oe,Se,vt),...Wn(_e.arguments,Se,vt)]):t.updateCallExpression(_e,t.createPropertyAccessExpression(tt(bt,Se,vt),"call"),void 0,[tt(Oe,Se,vt),...Wn(_e.arguments,Se,vt)])}if(G&&fe&&ff(_e.expression)&&$w(fe)&&((ee=X==null?void 0:X.data)!=null&&ee.classConstructor)){const Oe=t.createFunctionCallCall(tt(_e.expression,Se,vt),X.data.classConstructor,Wn(_e.arguments,Se,vt));return Ir(Oe,_e),ut(Oe,_e),Oe}return En(_e,Se,e)}function At(_e){var ee;if(z6(_e.tag)&&va(_e.tag.name)){const{thisArg:Oe,target:bt}=t.createCallBinding(_e.tag,i,d);return t.updateTaggedTemplateExpression(_e,t.createCallExpression(t.createPropertyAccessExpression(tt(bt,Se,vt),"bind"),void 0,[tt(Oe,Se,vt)]),void 0,tt(_e.template,Se,gk))}if(G&&fe&&ff(_e.tag)&&$w(fe)&&((ee=X==null?void 0:X.data)!=null&&ee.classConstructor)){const Oe=t.createFunctionBindCall(tt(_e.tag,Se,vt),X.data.classConstructor,[]);return Ir(Oe,_e),ut(Oe,_e),t.updateTaggedTemplateExpression(_e,Oe,void 0,tt(_e.template,Se,gk))}return En(_e,Se,e)}function le(_e){if(X&&se.set(Gc(_e),X),D){if(Hw(_e)){const bt=tt(_e.body.statements[0].expression,Se,vt);return Kl(bt,!0)&&bt.left===bt.right?void 0:bt}if(uC(_e))return tt(_e.body.statements[0].expression,Se,vt);o();let ee=zi(_e,bt=>Wn(bt,Se,Xi),_e.body.statements);ee=t.mergeLexicalEnvironment(ee,s());const Oe=t.createImmediatelyInvokedArrowFunction(ee);return Ir(Eo(Oe.expression),_e),og(Eo(Oe.expression),4),Ir(Oe,_e),ut(Oe,_e),Oe}}function Me(_e){if(Su(_e)&&!_e.name){const ee=tR(_e);return Pe(ee,uC)?!1:(D||!!Kd(_e))&&Pe(ee,bt=>Vc(bt)||O_(bt)||N&&O7(bt))}return!1}function _t(_e,ee){if(by(_e)){const Oe=ve;ve=void 0,_e=t.updateBinaryExpression(_e,tt(_e.left,Tt,vt),_e.operatorToken,tt(_e.right,Se,vt));const bt=Pe(ve)?t.inlineExpressions(Zl([...ve,_e])):_e;return ve=Oe,bt}if(Kl(_e)){Wf(_e,Me)&&(_e=Qf(e,_e),w.assertNode(_e,Kl));const Oe=gl(_e.left,9);if(z6(Oe)){const bt=va(Oe.name);if(bt)return ut(Ir(Et(bt,Oe.expression,_e.right,_e.operatorToken.kind),_e),_e)}else if(G&&fe&&ff(_e.left)&&$w(fe)&&(X!=null&&X.data)){const{classConstructor:bt,superClassReference:_n,facts:Tr}=X.data;if(Tr&1)return t.updateBinaryExpression(_e,sr(_e.left),_e.operatorToken,tt(_e.right,Se,vt));if(bt&&_n){let br=uc(_e.left)?tt(_e.left.argumentExpression,Se,vt):Je(_e.left.name)?t.createStringLiteralFromNode(_e.left.name):void 0;if(br){let qr=tt(_e.right,Se,vt);if(Vw(_e.operatorToken.kind)){let Fr=br;nh(br)||(Fr=t.createTempVariable(i),br=t.createAssignment(Fr,br));const ia=t.createReflectGetCall(_n,Fr,bt);Ir(ia,_e.left),ut(ia,_e.left),qr=t.createBinaryExpression(ia,Ww(_e.operatorToken.kind),qr),ut(qr,_e)}const Ni=ee?void 0:t.createTempVariable(i);return Ni&&(qr=t.createAssignment(Ni,qr),ut(Ni,_e)),qr=t.createReflectSetCall(_n,br,qr,bt),Ir(qr,_e),ut(qr,_e),Ni&&(qr=t.createComma(qr,Ni),ut(qr,_e)),qr}}}}return Aqe(_e)?yt(_e):En(_e,Se,e)}function U(_e,ee){const Oe=$M(_e.elements,Ae);return t.updateCommaListExpression(_e,Oe)}function it(_e,ee){const Oe=ee?Ae:Se,bt=tt(_e.expression,Oe,vt);return t.updateParenthesizedExpression(_e,bt)}function Et(_e,ee,Oe,bt){if(ee=tt(ee,Se,vt),Oe=tt(Oe,Se,vt),vi(ee),Vw(bt)){const{readExpression:_n,initializeExpression:Tr}=pt(ee);ee=Tr||_n,Oe=t.createBinaryExpression(Ds(_e,_n),Ww(bt),Oe)}switch(kl(ee,t2(ee,-1)),_e.kind){case"a":return r().createClassPrivateFieldSetHelper(ee,_e.brandCheckIdentifier,Oe,_e.kind,_e.setterName);case"m":return r().createClassPrivateFieldSetHelper(ee,_e.brandCheckIdentifier,Oe,_e.kind,void 0);case"f":return r().createClassPrivateFieldSetHelper(ee,_e.brandCheckIdentifier,Oe,_e.kind,_e.isStatic?_e.variableName:void 0);case"untransformed":return w.fail("Access helpers should not be created for untransformed private elements");default:w.assertNever(_e,"Unknown private element type")}}function Ge(_e){return vr(_e.members,vle)}function mt(_e){var ee;let Oe=0;const bt=Gc(_e);ql(bt)&&gy(x,bt)&&(Oe|=1),D&&(s$(_e)||rR(_e))&&(Oe|=2);let _n=!1,Tr=!1,br=!1,qr=!1;for(const Fr of _e.members)da(Fr)?((Fr.name&&(Qi(Fr.name)||uf(Fr))&&D||uf(Fr)&&M===-1&&!_e.name&&!((ee=_e.emitNode)!=null&&ee.classThis))&&(Oe|=2),(Zs(Fr)||Vc(Fr))&&(V&&Fr.transformFlags&16384&&(Oe|=8,Oe&1||(Oe|=2)),G&&Fr.transformFlags&134217728&&(Oe&1||(Oe|=6)))):Eb(Gc(Fr))||(uf(Fr)?(qr=!0,br||(br=O_(Fr))):O_(Fr)?(br=!0,f.getNodeCheckFlags(Fr)&262144&&(Oe|=2)):Zs(Fr)&&(_n=!0,Tr||(Tr=!!Fr.initializer)));return(C&&_n||T&&Tr||D&&br||D&&qr&&M===-1)&&(Oe|=16),Oe}function Ut(_e){var ee;if((((ee=X==null?void 0:X.data)==null?void 0:ee.facts)||0)&4){const bt=t.createTempVariable(i,!0);return Di().superClassReference=bt,t.updateExpressionWithTypeArguments(_e,t.createAssignment(bt,tt(_e.expression,Se,vt)),void 0)}return En(_e,Se,e)}function vn(_e,ee){var Oe;const bt=we,_n=ve,Tr=X;we=_e,ve=void 0,xs();const br=Kd(_e)&32;if(D||br){const Fr=Ms(_e);if(Fr&&Je(Fr))$r().data.className=Fr;else if((Oe=_e.emitNode)!=null&&Oe.assignedName&&Ba(_e.emitNode.assignedName)){if(_e.emitNode.assignedName.textSourceNode&&Je(_e.emitNode.assignedName.textSourceNode))$r().data.className=_e.emitNode.assignedName.textSourceNode;else if(Np(_e.emitNode.assignedName.text,d)){const ia=t.createIdentifier(_e.emitNode.assignedName.text);$r().data.className=ia}}}if(D){const Fr=Ge(_e);Pe(Fr)&&($r().data.weakSetName=Iu("instances",Fr[0].name))}const qr=mt(_e);qr&&(Di().facts=qr),qr&8&&Li();const Ni=ee(_e,qr);return Mi(),w.assert(X===Tr),we=bt,ve=_n,Ni}function pn(_e){return vn(_e,mn)}function mn(_e,ee){var Oe,bt;let _n;if(ee&2)if(D&&((Oe=_e.emitNode)!=null&&Oe.classThis))Di().classConstructor=_e.emitNode.classThis,_n=t.createAssignment(_e.emitNode.classThis,t.getInternalName(_e));else{const Io=t.createTempVariable(i,!0);Di().classConstructor=t.cloneNode(Io),_n=t.createAssignment(Io,t.getInternalName(_e))}(bt=_e.emitNode)!=null&&bt.classThis&&(Di().classThis=_e.emitNode.classThis);const Tr=f.getNodeCheckFlags(_e)&262144,br=Kr(_e,32),qr=Kr(_e,2048);let Ni=Wn(_e.modifiers,Ue,Fa);const Fr=Wn(_e.heritageClauses,Le,Fp),{members:ia,prologue:jc}=me(_e),fu=[];if(_n&&As().unshift(_n),Pe(ve)&&fu.push(t.createExpressionStatement(t.inlineExpressions(ve))),T||D||Kd(_e)&32){const Io=tR(_e);Pe(Io)&&xt(fu,Io,t.getInternalName(_e))}fu.length>0&&br&&qr&&(Ni=Wn(Ni,Io=>s7(Io)?void 0:Io,Fa),fu.push(t.createExportAssignment(void 0,!1,t.getLocalName(_e,!1,!0))));const rc=Di().classConstructor;Tr&&rc&&(Gn(),ge[s_(_e)]=rc);const jl=t.updateClassDeclaration(_e,Ni,_e.name,void 0,Fr,ia);return fu.unshift(jl),jc&&fu.unshift(t.createExpressionStatement(jc)),fu}function q(_e){return vn(_e,Fe)}function Fe(_e,ee){var Oe,bt,_n;const Tr=!!(ee&1),br=tR(_e),qr=f.getNodeCheckFlags(_e),Ni=qr&262144;let Fr;function ia(){var ru;if(D&&((ru=_e.emitNode)!=null&&ru.classThis))return Di().classConstructor=_e.emitNode.classThis;const Bd=qr&32768,z_=t.createTempVariable(Bd?u:i,!0);return Di().classConstructor=t.cloneNode(z_),z_}(Oe=_e.emitNode)!=null&&Oe.classThis&&(Di().classThis=_e.emitNode.classThis),ee&2&&(Fr??(Fr=ia()));const jc=Wn(_e.modifiers,Ue,Fa),fu=Wn(_e.heritageClauses,Le,Fp),{members:rc,prologue:jl}=me(_e),Io=t.updateClassExpression(_e,jc,_e.name,void 0,fu,rc),pu=[];if(jl&&pu.push(jl),(D||Kd(_e)&32)&&Pe(br,ru=>Vc(ru)||O_(ru)||N&&O7(ru))||Pe(ve))if(Tr)w.assertIsDefined(Q,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),Pe(ve)&&Mr(Q,Kt(ve,t.createExpressionStatement)),Pe(br)&&xt(Q,br,((bt=_e.emitNode)==null?void 0:bt.classThis)??t.getInternalName(_e)),Fr?pu.push(t.createAssignment(Fr,Io)):D&&((_n=_e.emitNode)!=null&&_n.classThis)?pu.push(t.createAssignment(_e.emitNode.classThis,Io)):pu.push(Io);else{if(Fr??(Fr=ia()),Ni){Gn();const ru=t.cloneNode(Fr);ru.emitNode.autoGenerate.flags&=-9,ge[s_(_e)]=ru}pu.push(t.createAssignment(Fr,Io)),Mr(pu,ve),Mr(pu,tn(br,Fr)),pu.push(t.cloneNode(Fr))}else pu.push(Io);return pu.length>1&&(og(Io,131072),pu.forEach(y_)),t.inlineExpressions(pu)}function Ot(_e){if(!D)return En(_e,Se,e)}function I(_e){if(V&&fe&&Vc(fe)&&(X!=null&&X.data)){const{classThis:ee,classConstructor:Oe}=X.data;return ee??Oe??_e}return _e}function me(_e){const ee=!!(Kd(_e)&32);if(D||J){for(const br of _e.members)if(O_(br))if(yi(br))Oc(br,br.name,Dn);else{const qr=$r();Ox(qr,br.name,{kind:"untransformed"})}if(D&&Pe(Ge(_e))&&H(),Jt()){for(const br of _e.members)if(uf(br)){const qr=t.getGeneratedPrivateNameForNode(br.name,void 0,"_accessor_storage");if(D||ee&&Fl(br))Oc(br,qr,Yo);else{const Ni=$r();Ox(Ni,qr,{kind:"untransformed"})}}}}let Oe=Wn(_e.members,xe,vu),bt;Pe(Oe,$c)||(bt=de(void 0,_e));let _n,Tr;if(!D&&Pe(ve)){let br=t.createExpressionStatement(t.inlineExpressions(ve));if(br.transformFlags&134234112){const Ni=t.createTempVariable(i),Fr=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([br]));_n=t.createAssignment(Ni,Fr),br=t.createExpressionStatement(t.createCallExpression(Ni,void 0,[]))}const qr=t.createBlock([br]);Tr=t.createClassStaticBlockDeclaration(qr),ve=void 0}if(bt||Tr){let br;const qr=Cn(Oe,Hw),Ni=Cn(Oe,uC);br=gn(br,qr),br=gn(br,Ni),br=gn(br,bt),br=gn(br,Tr);const Fr=qr||Ni?vr(Oe,ia=>ia!==qr&&ia!==Ni):Oe;br=Mr(br,Fr),Oe=ut(t.createNodeArray(br),_e.members)}return{members:Oe,prologue:_n}}function H(){const{weakSetName:_e}=$r().data;w.assert(_e,"weakSetName should be set in private identifier environment"),As().push(t.createAssignment(_e,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}function de(_e,ee){if(_e=tt(_e,Se,$c),!(X!=null&&X.data)||!(X.data.facts&16))return _e;const Oe=tg(ee),bt=!!(Oe&&gl(Oe.expression).kind!==106),_n=Wc(_e?_e.parameters:void 0,Se,e),Tr=Ie(ee,_e,bt);return Tr?_e?(w.assert(_n),t.updateConstructorDeclaration(_e,void 0,_n,Tr)):y_(Ir(ut(t.createConstructorDeclaration(void 0,_n??[],Tr),_e||ee),_e)):_e}function Be(_e,ee,Oe,bt,_n,Tr,br){const qr=bt[_n],Ni=ee[qr];if(Mr(_e,Wn(ee,Se,Xi,Oe,qr-Oe)),Oe=qr+1,Cx(Ni)){const Fr=[];Be(Fr,Ni.tryBlock.statements,0,bt,_n+1,Tr,br);const ia=t.createNodeArray(Fr);ut(ia,Ni.tryBlock.statements),_e.push(t.updateTryStatement(Ni,t.updateBlock(Ni.tryBlock,Fr),tt(Ni.catchClause,Se,Jb),tt(Ni.finallyBlock,Se,na)))}else{for(Mr(_e,Wn(ee,Se,Xi,qr,1));Oe!!rc.initializer||Qi(rc.name)||ig(rc)));const Tr=Ge(_e),br=Pe(_n)||Pe(Tr);if(!ee&&!br)return Rp(void 0,Se,e);c();const qr=!ee&&Oe;let Ni=0,Fr=[];const ia=[],jc=t.createThis();if(wi(ia,Tr,jc),ee){const rc=vr(bt,Io=>Uf(Gc(Io),ee)),jl=vr(_n,Io=>!Uf(Gc(Io),ee));xt(ia,rc,jc),xt(ia,jl,jc)}else xt(ia,_n,jc);if(ee!=null&&ee.body){Ni=t.copyPrologue(ee.body.statements,Fr,!1,Se);const rc=eR(ee.body.statements,Ni);if(rc.length)Be(Fr,ee.body.statements,Ni,rc,0,ia,ee);else{for(;Ni=Fr.length?ee.body.multiLine??Fr.length>0:Fr.length>0;return ut(t.createBlock(ut(t.createNodeArray(Fr),ee?ee.body.statements:_e.members),fu),ee?ee.body:void 0)}function xt(_e,ee,Oe){for(const bt of ee){if(da(bt)&&!D)continue;const _n=Ft(bt,Oe);_n&&_e.push(_n)}}function Ft(_e,ee){const Oe=Vc(_e)?zi(_e,le,_e):Sn(_e,ee);if(!Oe)return;const bt=t.createExpressionStatement(Oe);Ir(bt,_e),og(bt,Ya(_e)&3072),kl(bt,_e);const _n=Gc(_e);return ws(_n)?(ja(bt,_n),MN(bt)):ja(bt,ag(_e)),s2(Oe,void 0),Mk(Oe,void 0),ig(_n)&&og(bt,3072),bt}function tn(_e,ee){const Oe=[];for(const bt of _e){const _n=Vc(bt)?zi(bt,le,bt):zi(bt,()=>Sn(bt,ee),void 0);_n&&(y_(_n),Ir(_n,bt),og(_n,Ya(bt)&3072),ja(_n,ag(bt)),kl(_n,bt),Oe.push(_n))}return Oe}function Sn(_e,ee){var Oe;const bt=fe,_n=Un(_e,ee);return _n&&Fl(_e)&&((Oe=X==null?void 0:X.data)!=null&&Oe.facts)&&(Ir(_n,_e),og(_n,4),ja(_n,Ty(_e.name)),se.set(Gc(_e),X)),fe=bt,_n}function Un(_e,ee){const Oe=!y;Wf(_e,Me)&&(_e=Qf(e,_e));const bt=ig(_e)?t.getGeneratedPrivateNameForNode(_e.name):co(_e.name)&&!nh(_e.name.expression)?t.updateComputedPropertyName(_e.name,t.getGeneratedNameForNode(_e.name)):_e.name;if(Fl(_e)&&(fe=_e),Qi(bt)&&yi(_e)){const br=va(bt);if(br)return br.kind==="f"?br.isStatic?Eqe(t,br.variableName,tt(_e.initializer,Se,vt)):Pqe(t,ee,tt(_e.initializer,Se,vt),br.brandCheckIdentifier):void 0;w.fail("Undeclared private name for property declaration.")}if((Qi(bt)||Fl(_e))&&!_e.initializer)return;const _n=Gc(_e);if(Kr(_n,64))return;let Tr=tt(_e.initializer,Se,vt);if(Uf(_n,_n.parent)&&Je(bt)){const br=t.cloneNode(bt);Tr?(df(Tr)&&t7(Tr.expression)&&hw(Tr.expression.left,"___runInitializers")&&Xk(Tr.expression.right)&&Hf(Tr.expression.right.expression)&&(Tr=Tr.expression.left),Tr=t.inlineExpressions([Tr,br])):Tr=br,pr(bt,3168),ja(br,_n.name),pr(br,3072)}else Tr??(Tr=t.createVoidZero());if(Oe||Qi(bt)){const br=Ax(t,ee,bt,bt);return og(br,1024),t.createAssignment(br,Tr)}else{const br=co(bt)?bt.expression:Je(bt)?t.createStringLiteral(Hi(bt.escapedText)):bt,qr=t.createPropertyDescriptor({value:Tr,configurable:!0,writable:!0,enumerable:!0});return t.createObjectDefinePropertyCall(ee,br,qr)}}function Gn(){ne&1||(ne|=1,e.enableSubstitution(80),ge=[])}function Li(){ne&2||(ne|=2,e.enableSubstitution(110),e.enableEmitNotification(262),e.enableEmitNotification(218),e.enableEmitNotification(176),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(174),e.enableEmitNotification(172),e.enableEmitNotification(167))}function wi(_e,ee,Oe){if(!D||!Pe(ee))return;const{weakSetName:bt}=$r().data;w.assert(bt,"weakSetName should be set in private identifier environment"),_e.push(t.createExpressionStatement(wqe(t,Oe,bt)))}function sr(_e){return Jr(_e)?t.updatePropertyAccessExpression(_e,t.createVoidZero(),_e.name):t.updateElementAccessExpression(_e,t.createVoidZero(),tt(_e.argumentExpression,Se,vt))}function Wr(_e,ee){if(co(_e)){const Oe=mM(_e),bt=tt(_e.expression,Se,vt),_n=Zd(bt),Tr=nh(_n);if(!(!!Oe||Kl(_n)&&vc(_n.left))&&!Tr&&ee){const qr=t.getGeneratedNameForNode(_e);return f.getNodeCheckFlags(_e)&32768?u(qr):i(qr),t.createAssignment(qr,bt)}return Tr||Je(_n)?void 0:bt}}function xs(){X={previous:X,data:void 0}}function Mi(){X=X==null?void 0:X.previous}function Di(){return w.assert(X),X.data??(X.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0})}function $r(){return w.assert(X),X.privateEnv??(X.privateEnv=xle({className:void 0,weakSetName:void 0}))}function As(){return ve??(ve=[])}function Dn(_e,ee,Oe,bt,_n,Tr,br){uf(_e)?tc(_e,ee,Oe,bt,_n,Tr):Zs(_e)?Yo(_e,ee,Oe,bt,_n,Tr):ul(_e)?hl(_e,ee,Oe,bt,_n,Tr):Op(_e)?Rs(_e,ee,Oe,bt,_n,Tr,br):$f(_e)&&bo(_e,ee,Oe,bt,_n,Tr,br)}function Yo(_e,ee,Oe,bt,_n,Tr,br){if(_n){const qr=w.checkDefined(Oe.classThis??Oe.classConstructor,"classConstructor should be set in private identifier environment"),Ni=vs(ee);Ox(bt,ee,{kind:"f",isStatic:!0,brandCheckIdentifier:qr,variableName:Ni,isValid:Tr})}else{const qr=vs(ee);Ox(bt,ee,{kind:"f",isStatic:!1,brandCheckIdentifier:qr,isValid:Tr}),As().push(t.createAssignment(qr,t.createNewExpression(t.createIdentifier("WeakMap"),void 0,[])))}}function hl(_e,ee,Oe,bt,_n,Tr,br){const qr=vs(ee),Ni=_n?w.checkDefined(Oe.classThis??Oe.classConstructor,"classConstructor should be set in private identifier environment"):w.checkDefined(bt.data.weakSetName,"weakSetName should be set in private identifier environment");Ox(bt,ee,{kind:"m",methodName:qr,brandCheckIdentifier:Ni,isStatic:_n,isValid:Tr})}function Rs(_e,ee,Oe,bt,_n,Tr,br){const qr=vs(ee,"_get"),Ni=_n?w.checkDefined(Oe.classThis??Oe.classConstructor,"classConstructor should be set in private identifier environment"):w.checkDefined(bt.data.weakSetName,"weakSetName should be set in private identifier environment");(br==null?void 0:br.kind)==="a"&&br.isStatic===_n&&!br.getterName?br.getterName=qr:Ox(bt,ee,{kind:"a",getterName:qr,setterName:void 0,brandCheckIdentifier:Ni,isStatic:_n,isValid:Tr})}function bo(_e,ee,Oe,bt,_n,Tr,br){const qr=vs(ee,"_set"),Ni=_n?w.checkDefined(Oe.classThis??Oe.classConstructor,"classConstructor should be set in private identifier environment"):w.checkDefined(bt.data.weakSetName,"weakSetName should be set in private identifier environment");(br==null?void 0:br.kind)==="a"&&br.isStatic===_n&&!br.setterName?br.setterName=qr:Ox(bt,ee,{kind:"a",getterName:void 0,setterName:qr,brandCheckIdentifier:Ni,isStatic:_n,isValid:Tr})}function tc(_e,ee,Oe,bt,_n,Tr,br){const qr=vs(ee,"_get"),Ni=vs(ee,"_set"),Fr=_n?w.checkDefined(Oe.classThis??Oe.classConstructor,"classConstructor should be set in private identifier environment"):w.checkDefined(bt.data.weakSetName,"weakSetName should be set in private identifier environment");Ox(bt,ee,{kind:"a",getterName:qr,setterName:Ni,brandCheckIdentifier:Fr,isStatic:_n,isValid:Tr})}function Oc(_e,ee,Oe){const bt=Di(),_n=$r(),Tr=n$(_n,ee),br=Fl(_e),qr=!Dqe(ee)&&Tr===void 0;Oe(_e,ee,bt,_n,br,qr,Tr)}function Iu(_e,ee,Oe){const{className:bt}=$r().data,_n=bt?{prefix:"_",node:bt,suffix:"_"}:"_",Tr=typeof _e=="object"?t.getGeneratedNameForNode(_e,24,_n,Oe):typeof _e=="string"?t.createUniqueName(_e,16,_n,Oe):t.createTempVariable(void 0,!0,_n,Oe);return f.getNodeCheckFlags(ee)&32768?u(Tr):i(Tr),Tr}function vs(_e,ee){const Oe=CP(_e);return Iu((Oe==null?void 0:Oe.substring(1))??_e,_e,ee)}function va(_e){const ee=Tle(X,_e);return(ee==null?void 0:ee.kind)==="untransformed"?void 0:ee}function Ou(_e){const ee=t.getGeneratedNameForNode(_e),Oe=va(_e.name);if(!Oe)return En(_e,Se,e);let bt=_e.expression;return(MA(_e)||ff(_e)||!Hb(_e.expression))&&(bt=t.createTempVariable(i,!0),As().push(t.createBinaryExpression(bt,64,tt(_e.expression,Se,vt)))),t.createAssignmentTargetWrapper(ee,Et(Oe,bt,ee,64))}function Lo(_e){if(Va(_e)||B_(_e))return rn(_e);if(z6(_e))return Ou(_e);if(G&&fe&&ff(_e)&&$w(fe)&&(X!=null&&X.data)){const{classConstructor:ee,superClassReference:Oe,facts:bt}=X.data;if(bt&1)return sr(_e);if(ee&&Oe){const _n=uc(_e)?tt(_e.argumentExpression,Se,vt):Je(_e.name)?t.createStringLiteralFromNode(_e.name):void 0;if(_n){const Tr=t.createTempVariable(void 0);return t.createAssignmentTargetWrapper(Tr,t.createReflectSetCall(Oe,_n,Tr,ee))}}}return En(_e,Se,e)}function Ja(_e){if(Wf(_e,Me)&&(_e=Qf(e,_e)),Kl(_e,!0)){const ee=Lo(_e.left),Oe=tt(_e.right,Se,vt);return t.updateBinaryExpression(_e,ee,_e.operatorToken,Oe)}return Lo(_e)}function Pc(_e){if(Pf(_e.expression)){const ee=Lo(_e.expression);return t.updateSpreadElement(_e,ee)}return En(_e,Se,e)}function ld(_e){if(yA(_e)){if(Pm(_e))return Pc(_e);if(!uu(_e))return Ja(_e)}return En(_e,Se,e)}function El(_e){const ee=tt(_e.name,Se,Tl);if(Kl(_e.initializer,!0)){const Oe=Ja(_e.initializer);return t.updatePropertyAssignment(_e,ee,Oe)}if(Pf(_e.initializer)){const Oe=Lo(_e.initializer);return t.updatePropertyAssignment(_e,ee,Oe)}return En(_e,Se,e)}function qc(_e){return Wf(_e,Me)&&(_e=Qf(e,_e)),En(_e,Se,e)}function xc(_e){if(Pf(_e.expression)){const ee=Lo(_e.expression);return t.updateSpreadAssignment(_e,ee)}return En(_e,Se,e)}function js(_e){return w.assertNode(_e,hA),Ey(_e)?xc(_e):Af(_e)?qc(_e):Ml(_e)?El(_e):En(_e,Se,e)}function rn(_e){return B_(_e)?t.updateArrayLiteralExpression(_e,Wn(_e.elements,ld,vt)):t.updateObjectLiteralExpression(_e,Wn(_e.properties,js,d0))}function nc(_e,ee,Oe){const bt=Gc(ee),_n=se.get(bt);if(_n){const Tr=X,br=ye;X=_n,ye=ie,ie=!Vc(bt)||!(Kd(bt)&32),ce(_e,ee,Oe),ie=ye,ye=br,X=Tr;return}switch(ee.kind){case 218:if(ec(bt)||Ya(ee)&524288)break;case 262:case 176:case 177:case 178:case 174:case 172:{const Tr=X,br=ye;X=void 0,ye=ie,ie=!1,ce(_e,ee,Oe),ie=ye,ye=br,X=Tr;return}case 167:{const Tr=X,br=ie;X=X==null?void 0:X.previous,ie=ye,ce(_e,ee,Oe),ie=br,X=Tr;return}}ce(_e,ee,Oe)}function ku(_e,ee){return ee=z(_e,ee),_e===1?Fu(ee):ee}function Fu(_e){switch(_e.kind){case 80:return Wo(_e);case 110:return Kf(_e)}return _e}function Kf(_e){if(ne&2&&(X!=null&&X.data)&&!pe.has(_e)){const{facts:ee,classConstructor:Oe,classThis:bt}=X.data,_n=ie?bt??Oe:Oe;if(_n)return ut(Ir(t.cloneNode(_n),_e),_e);if(ee&1&&x)return t.createParenthesizedExpression(t.createVoidZero())}return _e}function Wo(_e){return Gl(_e)||_e}function Gl(_e){if(ne&1&&f.getNodeCheckFlags(_e)&536870912){const ee=f.getReferencedValueDeclaration(_e);if(ee){const Oe=ge[ee.id];if(Oe){const bt=t.cloneNode(Oe);return ja(bt,_e),kl(bt,_e),bt}}}}}function Eqe(e,t,r){return e.createAssignment(t,e.createObjectLiteralExpression([e.createPropertyAssignment("value",r||e.createVoidZero())]))}function Pqe(e,t,r,i){return e.createCallExpression(e.createPropertyAccessExpression(i,"set"),void 0,[t,r||e.createVoidZero()])}function wqe(e,t,r){return e.createCallExpression(e.createPropertyAccessExpression(r,"add"),void 0,[t])}function Dqe(e){return!QS(e)&&e.escapedText==="#constructor"}function Aqe(e){return Qi(e.left)&&e.operatorToken.kind===103}function Nqe(e){return Zs(e)&&Fl(e)}function $w(e){return Vc(e)||Nqe(e)}var Iqe=K({"src/compiler/transformers/classFields.ts"(){ua()}});function Fle(e){const{factory:t,hoistVariableDeclaration:r}=e,i=e.getEmitResolver(),s=e.getCompilerOptions(),o=go(s),c=R_(s,"strictNullChecks");let u,f;return{serializeTypeNode:(ve,Q)=>g(ve,N,Q),serializeTypeOfNode:(ve,Q)=>g(ve,y,Q),serializeParameterTypesOfNode:(ve,Q,X)=>g(ve,x,Q,X),serializeReturnTypeOfNode:(ve,Q)=>g(ve,C,Q)};function g(ve,Q,X,se){const pe=u,we=f;u=ve.currentLexicalScope,f=ve.currentNameScope;const fe=se===void 0?Q(X):Q(X,se);return u=pe,f=we,fe}function d(ve){const Q=i.getAllAccessorDeclarations(ve);return Q.setAccessor&&Xse(Q.setAccessor)||Q.getAccessor&&Id(Q.getAccessor)}function y(ve){switch(ve.kind){case 172:case 169:return N(ve.type);case 178:case 177:return N(d(ve));case 263:case 231:case 174:return t.createIdentifier("Function");default:return t.createVoidZero()}}function x(ve,Q){const X=fi(ve)?Rh(ve):oa(ve)&&Ed(ve.body)?ve:void 0,se=[];if(X){const pe=T(X,Q),we=pe.length;for(let fe=0;fepe.parent&&$k(pe.parent)&&(pe.parent.trueType===pe||pe.parent.falseType===pe)))return t.createIdentifier("Object");const X=z(ve.typeName),se=t.createTempVariable(r);return t.createConditionalExpression(t.createTypeCheck(t.createAssignment(se,X),"function"),void 0,se,void 0,t.createIdentifier("Object"));case 1:return ce(ve.typeName);case 2:return t.createVoidZero();case 4:return ge("BigInt",7);case 6:return t.createIdentifier("Boolean");case 3:return t.createIdentifier("Number");case 5:return t.createIdentifier("String");case 7:return t.createIdentifier("Array");case 8:return ge("Symbol",2);case 10:return t.createIdentifier("Function");case 9:return t.createIdentifier("Promise");case 11:return t.createIdentifier("Object");default:return w.assertNever(Q)}}function Z(ve,Q){return t.createLogicalAnd(t.createStrictInequality(t.createTypeOfExpression(ve),t.createStringLiteral("undefined")),Q)}function z(ve){if(ve.kind===80){const se=ce(ve);return Z(se,se)}if(ve.left.kind===80)return Z(ce(ve.left),ce(ve));const Q=z(ve.left),X=t.createTempVariable(r);return t.createLogicalAnd(t.createLogicalAnd(Q.left,t.createStrictInequality(t.createAssignment(X,Q.right),t.createVoidZero())),t.createPropertyAccessExpression(X,ve.right))}function ce(ve){switch(ve.kind){case 80:const Q=eo(ut(eh.cloneNode(ve),ve),ve.parent);return Q.original=void 0,eo(Q,Is(u)),Q;case 166:return J(ve)}}function J(ve){return t.createPropertyAccessExpression(ce(ve.left),ve.right)}function ne(ve){return t.createConditionalExpression(t.createTypeCheck(t.createIdentifier(ve),"function"),void 0,t.createIdentifier(ve),void 0,t.createIdentifier("Object"))}function ge(ve,Q){return os7(Jt)||Vu(Jt)?void 0:Jt,bc),Zn=ag($e),hn=Le($e),Zt=c<2?t.getInternalName($e,!1,!0):t.getLocalName($e,!1,!0),Yt=Wn($e.heritageClauses,y,Fp);let yi=Wn($e.members,y,vu),us=[];({members:yi,decorationStatements:us}=D($e,yi));const zi=c>=9&&!!hn&&Pe(yi,Jt=>Zs(Jt)&&Kr(Jt,256)||Vc(Jt));zi&&(yi=ut(t.createNodeArray([t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(t.createAssignment(hn,t.createThis()))])),...yi]),yi));const Os=t.createClassExpression(In,kt&&vc(kt)?void 0:kt,void 0,Yt,yi);Ir(Os,$e),ut(Os,Zn);const On=hn&&!zi?t.createAssignment(hn,Os):Os,Fi=t.createVariableDeclaration(Zt,void 0,void 0,On);Ir(Fi,$e);const Er=t.createVariableDeclarationList([Fi],1),cn=t.createVariableStatement(void 0,Er);Ir(cn,$e),ut(cn,Zn),kl(cn,$e);const et=[cn];if(Mr(et,us),ye(et,$e),nn)if(sn){const Jt=t.createExportDefault(Zt);et.push(Jt)}else{const Jt=t.createExternalModuleExport(t.getDeclarationName($e));et.push(Jt)}return et}function G($e){return t.updateClassExpression($e,Wn($e.modifiers,d,Fa),$e.name,void 0,Wn($e.heritageClauses,y,Fp),Wn($e.members,y,vu))}function Z($e){return t.updateConstructorDeclaration($e,Wn($e.modifiers,d,Fa),Wn($e.parameters,y,ws),tt($e.body,y,na))}function z($e,kt){return $e!==kt&&(kl($e,kt),ja($e,ag(kt))),$e}function ce($e){return z(t.updateMethodDeclaration($e,Wn($e.modifiers,d,Fa),$e.asteriskToken,w.checkDefined(tt($e.name,y,Tl)),void 0,void 0,Wn($e.parameters,y,ws),void 0,tt($e.body,y,na)),$e)}function J($e){return z(t.updateGetAccessorDeclaration($e,Wn($e.modifiers,d,Fa),w.checkDefined(tt($e.name,y,Tl)),Wn($e.parameters,y,ws),void 0,tt($e.body,y,na)),$e)}function ne($e){return z(t.updateSetAccessorDeclaration($e,Wn($e.modifiers,d,Fa),w.checkDefined(tt($e.name,y,Tl)),Wn($e.parameters,y,ws),tt($e.body,y,na)),$e)}function ge($e){if(!($e.flags&33554432||Kr($e,128)))return z(t.updatePropertyDeclaration($e,Wn($e.modifiers,d,Fa),w.checkDefined(tt($e.name,y,Tl)),void 0,void 0,tt($e.initializer,y,vt)),$e)}function ve($e){const kt=t.updateParameterDeclaration($e,lce(t,$e.modifiers),$e.dotDotDotToken,w.checkDefined(tt($e.name,y,YS)),void 0,void 0,tt($e.initializer,y,vt));return kt!==$e&&(kl(kt,$e),ut(kt,ag($e)),ja(kt,ag($e)),pr(kt.name,64)),kt}function Q($e){return hw($e.expression,"___metadata")}function X($e){if(!$e)return;const{false:kt,true:nn}=AO($e.decorators,Q),sn=[];return Mr(sn,Kt(kt,Ue)),Mr(sn,Ys($e.parameters,Se)),Mr(sn,Kt(nn,Ue)),sn}function se($e,kt,nn){Mr($e,Kt(fe(kt,nn),sn=>t.createExpressionStatement(sn)))}function pe($e,kt,nn){return jA(!0,$e,nn)&&kt===da($e)}function we($e,kt){return vr($e.members,nn=>pe(nn,kt,$e))}function fe($e,kt){const nn=we($e,kt);let sn;for(const In of nn)sn=gn(sn,ie($e,In));return sn}function ie($e,kt){const nn=nR(kt,$e,!0),sn=X(nn);if(!sn)return;const In=xe($e,kt),Zn=Ee(kt,!Kr(kt,128)),hn=c>0?Zs(kt)&&!ig(kt)?t.createVoidZero():t.createNull():void 0,Zt=r().createDecorateHelper(sn,In,Zn,hn);return pr(Zt,3072),ja(Zt,ag(kt)),Zt}function ye($e,kt){const nn=Ne(kt);nn&&$e.push(Ir(t.createExpressionStatement(nn),kt))}function Ne($e){const kt=t$($e),nn=X(kt);if(!nn)return;const sn=f&&f[s_($e)],In=c<2?t.getInternalName($e,!1,!0):t.getDeclarationName($e,!1,!0),Zn=r().createDecorateHelper(nn,In),hn=t.createAssignment(In,sn?t.createAssignment(sn,Zn):Zn);return pr(hn,3072),ja(hn,ag($e)),hn}function Ue($e){return w.checkDefined(tt($e.expression,y,vt))}function Se($e,kt){let nn;if($e){nn=[];for(const sn of $e){const In=r().createParamHelper(Ue(sn),kt);ut(In,sn.expression),pr(In,3072),nn.push(In)}}return nn}function Ee($e,kt){const nn=$e.name;return Qi(nn)?t.createIdentifier(""):co(nn)?kt&&!nh(nn.expression)?t.getGeneratedNameForNode(nn):nn.expression:Je(nn)?t.createStringLiteral(kr(nn)):t.cloneNode(nn)}function Ae(){f||(e.enableSubstitution(80),f=[])}function Le($e){if(s.getNodeCheckFlags($e)&262144){Ae();const kt=t.createUniqueName($e.name&&!vc($e.name)?kr($e.name):"default");return f[s_($e)]=kt,i(kt),kt}}function Tt($e){return t.createPropertyAccessExpression(t.getDeclarationName($e),"prototype")}function xe($e,kt){return da(kt)?t.getDeclarationName($e):Tt($e)}function ze($e,kt){return kt=u($e,kt),$e===1?st(kt):kt}function st($e){switch($e.kind){case 80:return zt($e)}return $e}function zt($e){return yt($e)??$e}function yt($e){if(f&&s.getNodeCheckFlags($e)&536870912){const kt=s.getReferencedValueDeclaration($e);if(kt){const nn=f[kt.id];if(nn){const sn=t.cloneNode(nn);return ja(sn,$e),kl(sn,$e),sn}}}}}var Fqe=K({"src/compiler/transformers/legacyDecorators.ts"(){ua()}});function Mle(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,endLexicalEnvironment:s,hoistVariableDeclaration:o}=e,c=go(e.getCompilerOptions());let u,f,g,d,y,x;return am(e,T);function T(I){u=void 0,x=!1;const me=En(I,ne,e);return S0(me,e.readEmitHelpers()),x&&(Lk(me,32),x=!1),me}function C(){switch(f=void 0,g=void 0,d=void 0,u==null?void 0:u.kind){case"class":f=u.classInfo;break;case"class-element":f=u.next.classInfo,g=u.classThis,d=u.classSuper;break;case"name":const I=u.next.next.next;(I==null?void 0:I.kind)==="class-element"&&(f=I.next.classInfo,g=I.classThis,d=I.classSuper);break}}function N(I){u={kind:"class",next:u,classInfo:I,savedPendingExpressions:y},y=void 0,C()}function D(){w.assert((u==null?void 0:u.kind)==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${u==null?void 0:u.kind}' instead.`),y=u.savedPendingExpressions,u=u.next,C()}function M(I){var me,H;w.assert((u==null?void 0:u.kind)==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${u==null?void 0:u.kind}' instead.`),u={kind:"class-element",next:u},(Vc(I)||Zs(I)&&Fl(I))&&(u.classThis=(me=u.next.classInfo)==null?void 0:me.classThis,u.classSuper=(H=u.next.classInfo)==null?void 0:H.classSuper),C()}function V(){var I;w.assert((u==null?void 0:u.kind)==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${u==null?void 0:u.kind}' instead.`),w.assert(((I=u.next)==null?void 0:I.kind)==="class","Incorrect value for top.next.kind.",()=>{var me;return`Expected top.next.kind to be 'class' but got '${(me=u.next)==null?void 0:me.kind}' instead.`}),u=u.next,C()}function G(){w.assert((u==null?void 0:u.kind)==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${u==null?void 0:u.kind}' instead.`),u={kind:"name",next:u},C()}function Z(){w.assert((u==null?void 0:u.kind)==="name","Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${u==null?void 0:u.kind}' instead.`),u=u.next,C()}function z(){(u==null?void 0:u.kind)==="other"?(w.assert(!y),u.depth++):(u={kind:"other",next:u,depth:0,savedPendingExpressions:y},y=void 0,C())}function ce(){w.assert((u==null?void 0:u.kind)==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${u==null?void 0:u.kind}' instead.`),u.depth>0?(w.assert(!y),u.depth--):(y=u.savedPendingExpressions,u=u.next,C())}function J(I){return!!(I.transformFlags&33554432)||!!g&&!!(I.transformFlags&16384)||!!g&&!!d&&!!(I.transformFlags&134217728)}function ne(I){if(!J(I))return I;switch(I.kind){case 170:return w.fail("Use `modifierVisitor` instead.");case 263:return Ne(I);case 231:return Ue(I);case 176:case 172:case 175:return w.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 169:return Zn(I);case 226:return us(I,!1);case 303:return cn(I);case 260:return et(I);case 208:return Jt(I);case 277:return Ve(I);case 110:return $e(I);case 248:return Yt(I);case 244:return yi(I);case 361:return Os(I,!1);case 217:return pt(I,!1);case 360:return ft(I);case 213:return kt(I);case 215:return nn(I);case 224:case 225:return zi(I,!1);case 211:return sn(I);case 212:return In(I);case 167:return Er(I);case 174:case 178:case 177:case 218:case 262:{z();const me=En(I,ge,e);return ce(),me}default:return En(I,ge,e)}}function ge(I){switch(I.kind){case 170:return;default:return ne(I)}}function ve(I){switch(I.kind){case 170:return;default:return I}}function Q(I){switch(I.kind){case 176:return Ae(I);case 174:return xe(I);case 177:return ze(I);case 178:return st(I);case 172:return yt(I);case 175:return zt(I);default:return ne(I)}}function X(I){switch(I.kind){case 224:case 225:return zi(I,!0);case 226:return us(I,!0);case 361:return Os(I,!0);case 217:return pt(I,!0);default:return ne(I)}}function se(I){let me=I.name&&Je(I.name)&&!vc(I.name)?kr(I.name):I.name&&Qi(I.name)&&!vc(I.name)?kr(I.name).slice(1):I.name&&Ba(I.name)&&Np(I.name.text,99)?I.name.text:fi(I)?"class":"member";return g1(I)&&(me=`get_${me}`),my(I)&&(me=`set_${me}`),I.name&&Qi(I.name)&&(me=`private_${me}`),da(I)&&(me=`static_${me}`),"_"+me}function pe(I,me){return t.createUniqueName(`${se(I)}_${me}`,24)}function we(I,me){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(I,void 0,void 0,me)],1))}function fe(I){const me=t.createUniqueName("_metadata",48);let H,de,Be=!1,Ie=!1,xt=!1,Ft,tn,Sn;if(t4(!1,I)){const Un=Pe(I.members,Gn=>(O_(Gn)||uf(Gn))&&Fl(Gn));Ft=t.createUniqueName("_classThis",Un?24:48)}for(const Un of I.members){if(mk(Un)&&jA(!1,Un,I))if(Fl(Un)){if(!de){de=t.createUniqueName("_staticExtraInitializers",48);const Gn=r().createRunInitializersHelper(Ft??t.createThis(),de);ja(Gn,I.name??y0(I)),tn??(tn=[]),tn.push(Gn)}}else{if(!H){H=t.createUniqueName("_instanceExtraInitializers",48);const Gn=r().createRunInitializersHelper(t.createThis(),H);ja(Gn,I.name??y0(I)),Sn??(Sn=[]),Sn.push(Gn)}H??(H=t.createUniqueName("_instanceExtraInitializers",48))}if(Vc(Un)?uC(Un)||(Be=!0):Zs(Un)&&(Fl(Un)?Be||(Be=!!Un.initializer||Kp(Un)):Ie||(Ie=!xW(Un))),(O_(Un)||uf(Un))&&Fl(Un)&&(xt=!0),de&&H&&Be&&Ie&&xt)break}return{class:I,classThis:Ft,metadataReference:me,instanceMethodExtraInitializersName:H,staticMethodExtraInitializersName:de,hasStaticInitializers:Be,hasNonAmbientInstanceFields:Ie,hasStaticPrivateClassElements:xt,pendingStaticInitializers:tn,pendingInstanceInitializers:Sn}}function ie(I){i(),!a$(I)&&gy(!1,I)&&(I=iR(e,I,t.createStringLiteral("")));const me=t.getLocalName(I,!1,!1,!0),H=fe(I),de=[];let Be,Ie,xt,Ft,tn=!1;const Sn=_t(t$(I));Sn&&(H.classDecoratorsName=t.createUniqueName("_classDecorators",48),H.classDescriptorName=t.createUniqueName("_classDescriptor",48),H.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",48),w.assertIsDefined(H.classThis),de.push(we(H.classDecoratorsName,t.createArrayLiteralExpression(Sn)),we(H.classDescriptorName),we(H.classExtraInitializersName,t.createArrayLiteralExpression()),we(H.classThis)),H.hasStaticPrivateClassElements&&(tn=!0,x=!0));const Un=iN(I.heritageClauses,96),Gn=Un&&hu(Un.types),Li=Gn&&tt(Gn.expression,ne,vt);if(Li){H.classSuper=t.createUniqueName("_classSuper",48);const $r=gl(Li),As=Su($r)&&!$r.name||Xo($r)&&!$r.name||ec($r)?t.createComma(t.createNumericLiteral(0),Li):Li;de.push(we(H.classSuper,As));const Dn=t.updateExpressionWithTypeArguments(Gn,H.classSuper,void 0),Yo=t.updateHeritageClause(Un,[Dn]);Ft=t.createNodeArray([Yo])}const wi=H.classThis??t.createThis();N(H),Be=gn(Be,q(H.metadataReference,H.classSuper));let sr=I.members;if(sr=Wn(sr,$r=>$c($r)?$r:Q($r),vu),sr=Wn(sr,$r=>$c($r)?Q($r):$r,vu),y){let $r;for(let As of y){As=tt(As,function Yo(hl){if(!(hl.transformFlags&16384))return hl;switch(hl.kind){case 110:return $r||($r=t.createUniqueName("_outerThis",16),de.unshift(we($r,t.createThis()))),$r;default:return En(hl,Yo,e)}},vt);const Dn=t.createExpressionStatement(As);Be=gn(Be,Dn)}y=void 0}if(D(),Pe(H.pendingInstanceInitializers)&&!Rh(I)){const $r=Se(I,H);if($r){const As=tg(I),Dn=!!(As&&gl(As.expression).kind!==106),Yo=[];if(Dn){const Rs=t.createSpreadElement(t.createIdentifier("arguments")),bo=t.createCallExpression(t.createSuper(),void 0,[Rs]);Yo.push(t.createExpressionStatement(bo))}Mr(Yo,$r);const hl=t.createBlock(Yo,!0);xt=t.createConstructorDeclaration(void 0,[],hl)}}if(H.staticMethodExtraInitializersName&&de.push(we(H.staticMethodExtraInitializersName,t.createArrayLiteralExpression())),H.instanceMethodExtraInitializersName&&de.push(we(H.instanceMethodExtraInitializersName,t.createArrayLiteralExpression())),H.memberInfos&&cu(H.memberInfos,($r,As)=>{da(As)&&(de.push(we($r.memberDecoratorsName)),$r.memberInitializersName&&de.push(we($r.memberInitializersName,t.createArrayLiteralExpression())),$r.memberExtraInitializersName&&de.push(we($r.memberExtraInitializersName,t.createArrayLiteralExpression())),$r.memberDescriptorName&&de.push(we($r.memberDescriptorName)))}),H.memberInfos&&cu(H.memberInfos,($r,As)=>{da(As)||(de.push(we($r.memberDecoratorsName)),$r.memberInitializersName&&de.push(we($r.memberInitializersName,t.createArrayLiteralExpression())),$r.memberExtraInitializersName&&de.push(we($r.memberExtraInitializersName,t.createArrayLiteralExpression())),$r.memberDescriptorName&&de.push(we($r.memberDescriptorName)))}),Be=Mr(Be,H.staticNonFieldDecorationStatements),Be=Mr(Be,H.nonStaticNonFieldDecorationStatements),Be=Mr(Be,H.staticFieldDecorationStatements),Be=Mr(Be,H.nonStaticFieldDecorationStatements),H.classDescriptorName&&H.classDecoratorsName&&H.classExtraInitializersName&&H.classThis){Be??(Be=[]);const $r=t.createPropertyAssignment("value",wi),As=t.createObjectLiteralExpression([$r]),Dn=t.createAssignment(H.classDescriptorName,As),Yo=t.createPropertyAccessExpression(wi,"name"),hl=r().createESDecorateHelper(t.createNull(),Dn,H.classDecoratorsName,{kind:"class",name:Yo,metadata:H.metadataReference},t.createNull(),H.classExtraInitializersName),Rs=t.createExpressionStatement(hl);ja(Rs,y0(I)),Be.push(Rs);const bo=t.createPropertyAccessExpression(H.classDescriptorName,"value"),tc=t.createAssignment(H.classThis,bo),Oc=t.createAssignment(me,tc);Be.push(t.createExpressionStatement(Oc))}if(Be.push(Fe(wi,H.metadataReference)),Pe(H.pendingStaticInitializers)){for(const $r of H.pendingStaticInitializers){const As=t.createExpressionStatement($r);ja(As,Ty($r)),Ie=gn(Ie,As)}H.pendingStaticInitializers=void 0}if(H.classExtraInitializersName){const $r=r().createRunInitializersHelper(wi,H.classExtraInitializersName),As=t.createExpressionStatement($r);ja(As,I.name??y0(I)),Ie=gn(Ie,As)}Be&&Ie&&!H.hasStaticInitializers&&(Mr(Be,Ie),Ie=void 0);const Wr=Be&&t.createClassStaticBlockDeclaration(t.createBlock(Be,!0));Wr&&tn&&RN(Wr,32);const xs=Ie&&t.createClassStaticBlockDeclaration(t.createBlock(Ie,!0));if(Wr||xt||xs){const $r=[],As=sr.findIndex(uC);Wr?(Mr($r,sr,0,As+1),$r.push(Wr),Mr($r,sr,As+1)):Mr($r,sr),xt&&$r.push(xt),xs&&$r.push(xs),sr=ut(t.createNodeArray($r),sr)}const Mi=s();let Di;if(Sn){Di=t.createClassExpression(void 0,void 0,void 0,Ft,sr),H.classThis&&(Di=wle(t,Di,H.classThis));const $r=t.createVariableDeclaration(me,void 0,void 0,Di),As=t.createVariableDeclarationList([$r]),Dn=H.classThis?t.createAssignment(me,H.classThis):me;de.push(t.createVariableStatement(void 0,As),t.createReturnStatement(Dn))}else Di=t.createClassExpression(void 0,I.name,void 0,Ft,sr),de.push(t.createReturnStatement(Di));if(tn){Lk(Di,32);for(const $r of Di.members)(O_($r)||uf($r))&&Fl($r)&&Lk($r,32)}return Ir(Di,I),t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(de,Mi))}function ye(I){return gy(!1,I)||wP(!1,I)}function Ne(I){if(ye(I)){const me=[],H=Gc(I,fi)??I,de=H.name?t.createStringLiteralFromNode(H.name):t.createStringLiteral("default"),Be=Kr(I,32),Ie=Kr(I,2048);if(I.name||(I=iR(e,I,de)),Be&&Ie){const xt=ie(I);if(I.name){const Ft=t.createVariableDeclaration(t.getLocalName(I),void 0,void 0,xt);Ir(Ft,I);const tn=t.createVariableDeclarationList([Ft],1),Sn=t.createVariableStatement(void 0,tn);me.push(Sn);const Un=t.createExportDefault(t.getDeclarationName(I));Ir(Un,I),kl(Un,cg(I)),ja(Un,y0(I)),me.push(Un)}else{const Ft=t.createExportDefault(xt);Ir(Ft,I),kl(Ft,cg(I)),ja(Ft,y0(I)),me.push(Ft)}}else{w.assertIsDefined(I.name,"A class declaration that is not a default export must have a name.");const xt=ie(I),Ft=Be?wi=>Uk(wi)?void 0:ve(wi):ve,tn=Wn(I.modifiers,Ft,Fa),Sn=t.getLocalName(I,!1,!0),Un=t.createVariableDeclaration(Sn,void 0,void 0,xt);Ir(Un,I);const Gn=t.createVariableDeclarationList([Un],1),Li=t.createVariableStatement(tn,Gn);if(Ir(Li,I),kl(Li,cg(I)),me.push(Li),Be){const wi=t.createExternalModuleExport(Sn);Ir(wi,I),me.push(wi)}}return Rg(me)}else{const me=Wn(I.modifiers,ve,Fa),H=Wn(I.heritageClauses,ne,Fp);N(void 0);const de=Wn(I.members,Q,vu);return D(),t.updateClassDeclaration(I,me,I.name,void 0,H,de)}}function Ue(I){if(ye(I)){const me=ie(I);return Ir(me,I),me}else{const me=Wn(I.modifiers,ve,Fa),H=Wn(I.heritageClauses,ne,Fp);N(void 0);const de=Wn(I.members,Q,vu);return D(),t.updateClassExpression(I,me,I.name,void 0,H,de)}}function Se(I,me){if(Pe(me.pendingInstanceInitializers)){const H=[];return H.push(t.createExpressionStatement(t.inlineExpressions(me.pendingInstanceInitializers))),me.pendingInstanceInitializers=void 0,H}}function Ee(I,me,H,de,Be,Ie){const xt=de[Be],Ft=me[xt];if(Mr(I,Wn(me,ne,Xi,H,xt-H)),Cx(Ft)){const tn=[];Ee(tn,Ft.tryBlock.statements,0,de,Be+1,Ie);const Sn=t.createNodeArray(tn);ut(Sn,Ft.tryBlock.statements),I.push(t.updateTryStatement(Ft,t.updateBlock(Ft.tryBlock,tn),tt(Ft.catchClause,ne,Jb),tt(Ft.finallyBlock,ne,na)))}else Mr(I,Wn(me,ne,Xi,xt,1)),Mr(I,Ie);Mr(I,Wn(me,ne,Xi,xt+1))}function Ae(I){M(I);const me=Wn(I.modifiers,ve,Fa),H=Wn(I.parameters,ne,ws);let de;if(I.body&&f){const Be=Se(f.class,f);if(Be){const Ie=[],xt=t.copyPrologue(I.body.statements,Ie,!1,ne),Ft=eR(I.body.statements,xt);Ft.length>0?Ee(Ie,I.body.statements,xt,Ft,0,Be):(Mr(Ie,Be),Mr(Ie,Wn(I.body.statements,ne,Xi))),de=t.createBlock(Ie,!0),Ir(de,I.body),ut(de,I.body)}}return de??(de=tt(I.body,ne,na)),V(),t.updateConstructorDeclaration(I,me,H,de)}function Le(I,me){return I!==me&&(kl(I,me),ja(I,y0(me))),I}function Tt(I,me,H){let de,Be,Ie,xt,Ft,tn;if(!me){const Gn=Wn(I.modifiers,ve,Fa);return G(),Be=Fi(I.name),Z(),{modifiers:Gn,referencedName:de,name:Be,initializersName:Ie,descriptorName:tn,thisArg:Ft}}const Sn=_t(nR(I,me.class,!1)),Un=Wn(I.modifiers,ve,Fa);if(Sn){const Gn=pe(I,"decorators"),Li=t.createArrayLiteralExpression(Sn),wi=t.createAssignment(Gn,Li),sr={memberDecoratorsName:Gn};me.memberInfos??(me.memberInfos=new Map),me.memberInfos.set(I,sr),y??(y=[]),y.push(wi);const Wr=mk(I)||uf(I)?da(I)?me.staticNonFieldDecorationStatements??(me.staticNonFieldDecorationStatements=[]):me.nonStaticNonFieldDecorationStatements??(me.nonStaticNonFieldDecorationStatements=[]):Zs(I)&&!uf(I)?da(I)?me.staticFieldDecorationStatements??(me.staticFieldDecorationStatements=[]):me.nonStaticFieldDecorationStatements??(me.nonStaticFieldDecorationStatements=[]):w.fail(),xs=Op(I)?"getter":$f(I)?"setter":ul(I)?"method":uf(I)?"accessor":Zs(I)?"field":w.fail();let Mi;if(Je(I.name)||Qi(I.name))Mi={computed:!1,name:I.name};else if(ng(I.name))Mi={computed:!0,name:t.createStringLiteralFromNode(I.name)};else{const $r=I.name.expression;ng($r)&&!Je($r)?Mi={computed:!0,name:t.createStringLiteralFromNode($r)}:(G(),{referencedName:de,name:Be}=On(I.name),Mi={computed:!0,name:de},Z())}const Di={kind:xs,name:Mi,static:da(I),private:Qi(I.name),access:{get:Zs(I)||Op(I)||ul(I),set:Zs(I)||$f(I)},metadata:me.metadataReference};if(mk(I)){const $r=da(I)?me.staticMethodExtraInitializersName:me.instanceMethodExtraInitializersName;w.assertIsDefined($r);let As;O_(I)&&H&&(As=H(I,Wn(Un,hl=>si(hl,yw),Fa)),sr.memberDescriptorName=tn=pe(I,"descriptor"),As=t.createAssignment(tn,As));const Dn=r().createESDecorateHelper(t.createThis(),As??t.createNull(),Gn,Di,t.createNull(),$r),Yo=t.createExpressionStatement(Dn);ja(Yo,y0(I)),Wr.push(Yo)}else if(Zs(I)){Ie=sr.memberInitializersName??(sr.memberInitializersName=pe(I,"initializers")),xt=sr.memberExtraInitializersName??(sr.memberExtraInitializersName=pe(I,"extraInitializers")),da(I)&&(Ft=me.classThis);let $r;O_(I)&&ig(I)&&H&&($r=H(I,void 0),sr.memberDescriptorName=tn=pe(I,"descriptor"),$r=t.createAssignment(tn,$r));const As=r().createESDecorateHelper(uf(I)?t.createThis():t.createNull(),$r??t.createNull(),Gn,Di,Ie,xt),Dn=t.createExpressionStatement(As);ja(Dn,y0(I)),Wr.push(Dn)}}return Be===void 0&&(G(),Be=Fi(I.name),Z()),!Pe(Un)&&(ul(I)||Zs(I))&&pr(Be,1024),{modifiers:Un,referencedName:de,name:Be,initializersName:Ie,extraInitializersName:xt,descriptorName:tn,thisArg:Ft}}function xe(I){M(I);const{modifiers:me,name:H,descriptorName:de}=Tt(I,f,Et);if(de)return V(),Le(vn(me,H,de),I);{const Be=Wn(I.parameters,ne,ws),Ie=tt(I.body,ne,na);return V(),Le(t.updateMethodDeclaration(I,me,I.asteriskToken,H,void 0,void 0,Be,void 0,Ie),I)}}function ze(I){M(I);const{modifiers:me,name:H,descriptorName:de}=Tt(I,f,Ge);if(de)return V(),Le(pn(me,H,de),I);{const Be=Wn(I.parameters,ne,ws),Ie=tt(I.body,ne,na);return V(),Le(t.updateGetAccessorDeclaration(I,me,H,Be,void 0,Ie),I)}}function st(I){M(I);const{modifiers:me,name:H,descriptorName:de}=Tt(I,f,mt);if(de)return V(),Le(mn(me,H,de),I);{const Be=Wn(I.parameters,ne,ws),Ie=tt(I.body,ne,na);return V(),Le(t.updateSetAccessorDeclaration(I,me,H,Be,Ie),I)}}function zt(I){M(I);let me;if(uC(I))me=En(I,ne,e);else if(Hw(I)){const H=g;g=void 0,me=En(I,ne,e),g=H}else if(I=En(I,ne,e),me=I,f&&(f.hasStaticInitializers=!0,Pe(f.pendingStaticInitializers))){const H=[];for(const Ie of f.pendingStaticInitializers){const xt=t.createExpressionStatement(Ie);ja(xt,Ty(Ie)),H.push(xt)}const de=t.createBlock(H,!0);me=[t.createClassStaticBlockDeclaration(de),me],f.pendingStaticInitializers=void 0}return V(),me}function yt(I){Wf(I,hn)&&(I=Qf(e,I,Zt(I.initializer))),M(I),w.assert(!xW(I),"Not yet implemented.");const{modifiers:me,name:H,initializersName:de,extraInitializersName:Be,descriptorName:Ie,thisArg:xt}=Tt(I,f,ig(I)?Ut:void 0);i();let Ft=tt(I.initializer,ne,vt);de&&(Ft=r().createRunInitializersHelper(xt??t.createThis(),de,Ft??t.createVoidZero())),da(I)&&f&&Ft&&(f.hasStaticInitializers=!0);const tn=s();if(Pe(tn)&&(Ft=t.createImmediatelyInvokedArrowFunction([...tn,t.createReturnStatement(Ft)])),f&&(da(I)?(Ft=Me(f,!0,Ft),Be&&(f.pendingStaticInitializers??(f.pendingStaticInitializers=[]),f.pendingStaticInitializers.push(r().createRunInitializersHelper(f.classThis??t.createThis(),Be)))):(Ft=Me(f,!1,Ft),Be&&(f.pendingInstanceInitializers??(f.pendingInstanceInitializers=[]),f.pendingInstanceInitializers.push(r().createRunInitializersHelper(t.createThis(),Be))))),V(),ig(I)&&Ie){const Sn=cg(I),Un=Ty(I),Gn=I.name;let Li=Gn,wi=Gn;if(co(Gn)&&!nh(Gn.expression)){const Di=mM(Gn);if(Di)Li=t.updateComputedPropertyName(Gn,tt(Gn.expression,ne,vt)),wi=t.updateComputedPropertyName(Gn,Di.left);else{const $r=t.createTempVariable(o);ja($r,Gn.expression);const As=tt(Gn.expression,ne,vt),Dn=t.createAssignment($r,As);ja(Dn,Gn.expression),Li=t.updateComputedPropertyName(Gn,Dn),wi=t.updateComputedPropertyName(Gn,$r)}}const sr=Wn(me,Di=>Di.kind!==129?Di:void 0,Fa),Wr=XH(t,I,sr,Ft);Ir(Wr,I),pr(Wr,3072),ja(Wr,Un),ja(Wr.name,I.name);const xs=pn(sr,Li,Ie);Ir(xs,I),kl(xs,Sn),ja(xs,Un);const Mi=mn(sr,wi,Ie);return Ir(Mi,I),pr(Mi,3072),ja(Mi,Un),[Wr,xs,Mi]}return Le(t.updatePropertyDeclaration(I,me,H,void 0,void 0,Ft),I)}function $e(I){return g??I}function kt(I){if(ff(I.expression)&&g){const me=tt(I.expression,ne,vt),H=Wn(I.arguments,ne,vt),de=t.createFunctionCallCall(me,g,H);return Ir(de,I),ut(de,I),de}return En(I,ne,e)}function nn(I){if(ff(I.tag)&&g){const me=tt(I.tag,ne,vt),H=t.createFunctionBindCall(me,g,[]);Ir(H,I),ut(H,I);const de=tt(I.template,ne,gk);return t.updateTaggedTemplateExpression(I,H,void 0,de)}return En(I,ne,e)}function sn(I){if(ff(I)&&Je(I.name)&&g&&d){const me=t.createStringLiteralFromNode(I.name),H=t.createReflectGetCall(d,me,g);return Ir(H,I.expression),ut(H,I.expression),H}return En(I,ne,e)}function In(I){if(ff(I)&&g&&d){const me=tt(I.argumentExpression,ne,vt),H=t.createReflectGetCall(d,me,g);return Ir(H,I.expression),ut(H,I.expression),H}return En(I,ne,e)}function Zn(I){Wf(I,hn)&&(I=Qf(e,I,Zt(I.initializer)));const me=t.updateParameterDeclaration(I,void 0,I.dotDotDotToken,tt(I.name,ne,YS),void 0,void 0,tt(I.initializer,ne,vt));return me!==I&&(kl(me,I),ut(me,ag(I)),ja(me,ag(I)),pr(me.name,64)),me}function hn(I){return Su(I)&&!I.name&&ye(I)}function Zt(I){const me=gl(I);return Su(me)&&!me.name&&!gy(!1,me)}function Yt(I){return t.updateForStatement(I,tt(I.initializer,X,Zp),tt(I.condition,ne,vt),tt(I.incrementor,X,vt),K_(I.statement,ne,e))}function yi(I){return En(I,X,e)}function us(I,me){if(by(I)){const H=Ln(I.left),de=tt(I.right,ne,vt);return t.updateBinaryExpression(I,H,I.operatorToken,de)}if(Kl(I)){if(Wf(I,hn))return I=Qf(e,I,Zt(I.right)),En(I,ne,e);if(ff(I.left)&&g&&d){let H=uc(I.left)?tt(I.left.argumentExpression,ne,vt):Je(I.left.name)?t.createStringLiteralFromNode(I.left.name):void 0;if(H){let de=tt(I.right,ne,vt);if(Vw(I.operatorToken.kind)){let Ie=H;nh(H)||(Ie=t.createTempVariable(o),H=t.createAssignment(Ie,H));const xt=t.createReflectGetCall(d,Ie,g);Ir(xt,I.left),ut(xt,I.left),de=t.createBinaryExpression(xt,Ww(I.operatorToken.kind),de),ut(de,I)}const Be=me?void 0:t.createTempVariable(o);return Be&&(de=t.createAssignment(Be,de),ut(Be,I)),de=t.createReflectSetCall(d,H,de,g),Ir(de,I),ut(de,I),Be&&(de=t.createComma(de,Be),ut(de,I)),de}}}if(I.operatorToken.kind===28){const H=tt(I.left,X,vt),de=tt(I.right,me?X:ne,vt);return t.updateBinaryExpression(I,H,I.operatorToken,de)}return En(I,ne,e)}function zi(I,me){if(I.operator===46||I.operator===47){const H=Eo(I.operand);if(ff(H)&&g&&d){let de=uc(H)?tt(H.argumentExpression,ne,vt):Je(H.name)?t.createStringLiteralFromNode(H.name):void 0;if(de){let Be=de;nh(de)||(Be=t.createTempVariable(o),de=t.createAssignment(Be,de));let Ie=t.createReflectGetCall(d,Be,g);Ir(Ie,I),ut(Ie,I);const xt=me?void 0:t.createTempVariable(o);return Ie=cM(t,I,Ie,o,xt),Ie=t.createReflectSetCall(d,de,Ie,g),Ir(Ie,I),ut(Ie,I),xt&&(Ie=t.createComma(Ie,xt),ut(Ie,I)),Ie}}}return En(I,ne,e)}function Os(I,me){const H=me?$M(I.elements,X):$M(I.elements,ne,X);return t.updateCommaListExpression(I,H)}function On(I){if(ng(I)||Qi(I)){const Ie=t.createStringLiteralFromNode(I),xt=tt(I,ne,Tl);return{referencedName:Ie,name:xt}}if(ng(I.expression)&&!Je(I.expression)){const Ie=t.createStringLiteralFromNode(I.expression),xt=tt(I,ne,Tl);return{referencedName:Ie,name:xt}}const me=t.getGeneratedNameForNode(I);o(me);const H=r().createPropKeyHelper(tt(I.expression,ne,vt)),de=t.createAssignment(me,H),Be=t.updateComputedPropertyName(I,le(de));return{referencedName:me,name:Be}}function Fi(I){return co(I)?Er(I):tt(I,ne,Tl)}function Er(I){let me=tt(I.expression,ne,vt);return nh(me)||(me=le(me)),t.updateComputedPropertyName(I,me)}function cn(I){return Wf(I,hn)&&(I=Qf(e,I,Zt(I.initializer))),En(I,ne,e)}function et(I){return Wf(I,hn)&&(I=Qf(e,I,Zt(I.initializer))),En(I,ne,e)}function Jt(I){return Wf(I,hn)&&(I=Qf(e,I,Zt(I.initializer))),En(I,ne,e)}function wn(I){if(Va(I)||B_(I))return Ln(I);if(ff(I)&&g&&d){const me=uc(I)?tt(I.argumentExpression,ne,vt):Je(I.name)?t.createStringLiteralFromNode(I.name):void 0;if(me){const H=t.createTempVariable(void 0),de=t.createAssignmentTargetWrapper(H,t.createReflectSetCall(d,me,H,g));return Ir(de,I),ut(de,I),de}}return En(I,ne,e)}function ui(I){if(Kl(I,!0)){Wf(I,hn)&&(I=Qf(e,I,Zt(I.right)));const me=wn(I.left),H=tt(I.right,ne,vt);return t.updateBinaryExpression(I,me,I.operatorToken,H)}else return wn(I)}function vi(I){if(Pf(I.expression)){const me=wn(I.expression);return t.updateSpreadElement(I,me)}return En(I,ne,e)}function ts(I){return w.assertNode(I,yA),Pm(I)?vi(I):uu(I)?En(I,ne,e):ui(I)}function Ds(I){const me=tt(I.name,ne,Tl);if(Kl(I.initializer,!0)){const H=ui(I.initializer);return t.updatePropertyAssignment(I,me,H)}if(Pf(I.initializer)){const H=wn(I.initializer);return t.updatePropertyAssignment(I,me,H)}return En(I,ne,e)}function Sa(I){return Wf(I,hn)&&(I=Qf(e,I,Zt(I.objectAssignmentInitializer))),En(I,ne,e)}function Wa(I){if(Pf(I.expression)){const me=wn(I.expression);return t.updateSpreadAssignment(I,me)}return En(I,ne,e)}function Tn(I){return w.assertNode(I,hA),Ey(I)?Wa(I):Af(I)?Sa(I):Ml(I)?Ds(I):En(I,ne,e)}function Ln(I){if(B_(I)){const me=Wn(I.elements,ts,vt);return t.updateArrayLiteralExpression(I,me)}else{const me=Wn(I.properties,Tn,d0);return t.updateObjectLiteralExpression(I,me)}}function Ve(I){return Wf(I,hn)&&(I=Qf(e,I,Zt(I.expression))),En(I,ne,e)}function pt(I,me){const H=me?X:ne,de=tt(I.expression,H,vt);return t.updateParenthesizedExpression(I,de)}function ft(I,me){const H=ne,de=tt(I.expression,H,vt);return t.updatePartiallyEmittedExpression(I,de)}function At(I,me){return Pe(I)&&(me?df(me)?(I.push(me.expression),me=t.updateParenthesizedExpression(me,t.inlineExpressions(I))):(I.push(me),me=t.inlineExpressions(I)):me=t.inlineExpressions(I)),me}function le(I){const me=At(y,I);return w.assertIsDefined(me),me!==I&&(y=void 0),me}function Me(I,me,H){const de=At(me?I.pendingStaticInitializers:I.pendingInstanceInitializers,H);return de!==H&&(me?I.pendingStaticInitializers=void 0:I.pendingInstanceInitializers=void 0),de}function _t(I){if(!I)return;const me=[];return Mr(me,Kt(I.decorators,U)),me}function U(I){const me=tt(I.expression,ne,vt);pr(me,3072);const H=gl(me);if($o(H)){const{target:de,thisArg:Be}=t.createCallBinding(me,o,c,!0);return t.restoreOuterExpressions(me,t.createFunctionBindCall(de,Be,[]))}return me}function it(I,me,H,de,Be,Ie,xt){const Ft=t.createFunctionExpression(H,de,void 0,void 0,Ie,void 0,xt??t.createBlock([]));Ir(Ft,I),ja(Ft,y0(I)),pr(Ft,3072);const tn=Be==="get"||Be==="set"?Be:void 0,Sn=t.createStringLiteralFromNode(me,void 0),Un=r().createSetFunctionNameHelper(Ft,Sn,tn),Gn=t.createPropertyAssignment(t.createIdentifier(Be),Un);return Ir(Gn,I),ja(Gn,y0(I)),pr(Gn,3072),Gn}function Et(I,me){return t.createObjectLiteralExpression([it(I,I.name,me,I.asteriskToken,"value",Wn(I.parameters,ne,ws),tt(I.body,ne,na))])}function Ge(I,me){return t.createObjectLiteralExpression([it(I,I.name,me,void 0,"get",[],tt(I.body,ne,na))])}function mt(I,me){return t.createObjectLiteralExpression([it(I,I.name,me,void 0,"set",Wn(I.parameters,ne,ws),tt(I.body,ne,na))])}function Ut(I,me){return t.createObjectLiteralExpression([it(I,I.name,me,void 0,"get",[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(I.name)))])),it(I,I.name,me,void 0,"set",[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(I.name)),t.createIdentifier("value")))]))])}function vn(I,me,H){return I=Wn(I,de=>Vk(de)?de:void 0,Fa),t.createGetAccessorDeclaration(I,me,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(H,t.createIdentifier("value")))]))}function pn(I,me,H){return I=Wn(I,de=>Vk(de)?de:void 0,Fa),t.createGetAccessorDeclaration(I,me,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(H,t.createIdentifier("get")),t.createThis(),[]))]))}function mn(I,me,H){return I=Wn(I,de=>Vk(de)?de:void 0,Fa),t.createSetAccessorDeclaration(I,me,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(H,t.createIdentifier("set")),t.createThis(),[t.createIdentifier("value")]))]))}function q(I,me){const H=t.createVariableDeclaration(I,void 0,void 0,t.createConditionalExpression(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("Symbol"),"function"),t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),t.createToken(58),t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"create"),void 0,[me?Ot(me):t.createNull()]),t.createToken(59),t.createVoidZero()));return t.createVariableStatement(void 0,t.createVariableDeclarationList([H],2))}function Fe(I,me){const H=t.createObjectDefinePropertyCall(I,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata"),t.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:me},!0));return pr(t.createIfStatement(me,t.createExpressionStatement(H)),1)}function Ot(I){return t.createBinaryExpression(t.createElementAccessExpression(I,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),61,t.createNull())}}var Lqe=K({"src/compiler/transformers/esDecorators.ts"(){ua()}});function Rle(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:s,hoistVariableDeclaration:o}=e,c=e.getEmitResolver(),u=e.getCompilerOptions(),f=go(u);let g,d=0,y,x,T,C;const N=[];let D=0;const M=e.onEmitNode,V=e.onSubstituteNode;return e.onEmitNode=yi,e.onSubstituteNode=us,am(e,G);function G(et){if(et.isDeclarationFile)return et;Z(1,!1),Z(2,!SW(et,u));const Jt=En(et,Q,e);return S0(Jt,e.readEmitHelpers()),Jt}function Z(et,Jt){D=Jt?D|et:D&~et}function z(et){return(D&et)!==0}function ce(){return!z(1)}function J(){return z(2)}function ne(et,Jt,wn){const ui=et&~D;if(ui){Z(ui,!0);const vi=Jt(wn);return Z(ui,!1),vi}return Jt(wn)}function ge(et){return En(et,Q,e)}function ve(et){switch(et.kind){case 218:case 262:case 174:case 177:case 178:case 176:return et;case 169:case 208:case 260:break;case 80:if(C&&c.isArgumentsLocalBinding(et))return C;break}return En(et,ve,e)}function Q(et){if(!(et.transformFlags&256))return C?ve(et):et;switch(et.kind){case 134:return;case 223:return ye(et);case 174:return ne(3,Ue,et);case 262:return ne(3,Ae,et);case 218:return ne(3,Le,et);case 219:return ne(1,Tt,et);case 211:return x&&Jr(et)&&et.expression.kind===108&&x.add(et.name.escapedText),En(et,Q,e);case 212:return x&&et.expression.kind===108&&(T=!0),En(et,Q,e);case 177:return ne(3,Se,et);case 178:return ne(3,Ee,et);case 176:return ne(3,Ne,et);case 263:case 231:return ne(3,ge,et);default:return En(et,Q,e)}}function X(et){if(Rse(et))switch(et.kind){case 243:return pe(et);case 248:return ie(et);case 249:return we(et);case 250:return fe(et);case 299:return se(et);case 241:case 255:case 269:case 296:case 297:case 258:case 246:case 247:case 245:case 254:case 256:return En(et,X,e);default:return w.assertNever(et,"Unhandled node.")}return Q(et)}function se(et){const Jt=new Set;xe(et.variableDeclaration,Jt);let wn;if(Jt.forEach((ui,vi)=>{y.has(vi)&&(wn||(wn=new Set(y)),wn.delete(vi))}),wn){const ui=y;y=wn;const vi=En(et,X,e);return y=ui,vi}else return En(et,X,e)}function pe(et){if(ze(et.declarationList)){const Jt=st(et.declarationList,!1);return Jt?t.createExpressionStatement(Jt):void 0}return En(et,Q,e)}function we(et){return t.updateForInStatement(et,ze(et.initializer)?st(et.initializer,!0):w.checkDefined(tt(et.initializer,Q,Zp)),w.checkDefined(tt(et.expression,Q,vt)),K_(et.statement,X,e))}function fe(et){return t.updateForOfStatement(et,tt(et.awaitModifier,Q,TH),ze(et.initializer)?st(et.initializer,!0):w.checkDefined(tt(et.initializer,Q,Zp)),w.checkDefined(tt(et.expression,Q,vt)),K_(et.statement,X,e))}function ie(et){const Jt=et.initializer;return t.updateForStatement(et,ze(Jt)?st(Jt,!1):tt(et.initializer,Q,Zp),tt(et.condition,Q,vt),tt(et.incrementor,Q,vt),K_(et.statement,X,e))}function ye(et){return ce()?En(et,Q,e):Ir(ut(t.createYieldExpression(void 0,tt(et.expression,Q,vt)),et),et)}function Ne(et){const Jt=C;C=void 0;const wn=t.updateConstructorDeclaration(et,Wn(et.modifiers,Q,Fa),Wc(et.parameters,Q,e),nn(et));return C=Jt,wn}function Ue(et){let Jt;const wn=lu(et),ui=C;C=void 0;const vi=t.updateMethodDeclaration(et,Wn(et.modifiers,Q,bc),et.asteriskToken,et.name,void 0,void 0,Jt=wn&2?In(et):Wc(et.parameters,Q,e),void 0,wn&2?Zn(et,Jt):nn(et));return C=ui,vi}function Se(et){const Jt=C;C=void 0;const wn=t.updateGetAccessorDeclaration(et,Wn(et.modifiers,Q,bc),et.name,Wc(et.parameters,Q,e),void 0,nn(et));return C=Jt,wn}function Ee(et){const Jt=C;C=void 0;const wn=t.updateSetAccessorDeclaration(et,Wn(et.modifiers,Q,bc),et.name,Wc(et.parameters,Q,e),nn(et));return C=Jt,wn}function Ae(et){let Jt;const wn=C;C=void 0;const ui=lu(et),vi=t.updateFunctionDeclaration(et,Wn(et.modifiers,Q,bc),et.asteriskToken,et.name,void 0,Jt=ui&2?In(et):Wc(et.parameters,Q,e),void 0,ui&2?Zn(et,Jt):Rp(et.body,Q,e));return C=wn,vi}function Le(et){let Jt;const wn=C;C=void 0;const ui=lu(et),vi=t.updateFunctionExpression(et,Wn(et.modifiers,Q,Fa),et.asteriskToken,et.name,void 0,Jt=ui&2?In(et):Wc(et.parameters,Q,e),void 0,ui&2?Zn(et,Jt):Rp(et.body,Q,e));return C=wn,vi}function Tt(et){let Jt;const wn=lu(et);return t.updateArrowFunction(et,Wn(et.modifiers,Q,Fa),void 0,Jt=wn&2?In(et):Wc(et.parameters,Q,e),void 0,et.equalsGreaterThanToken,wn&2?Zn(et,Jt):Rp(et.body,Q,e))}function xe({name:et},Jt){if(Je(et))Jt.add(et.escapedText);else for(const wn of et.elements)uu(wn)||xe(wn,Jt)}function ze(et){return!!et&&_u(et)&&!(et.flags&7)&&et.declarations.some(kt)}function st(et,Jt){zt(et);const wn=$P(et);return wn.length===0?Jt?tt(t.converters.convertToAssignmentElementTarget(et.declarations[0].name),Q,vt):void 0:t.inlineExpressions(Kt(wn,$e))}function zt(et){dt(et.declarations,yt)}function yt({name:et}){if(Je(et))o(et);else for(const Jt of et.elements)uu(Jt)||yt(Jt)}function $e(et){const Jt=ja(t.createAssignment(t.converters.convertToAssignmentElementTarget(et.name),et.initializer),et);return w.checkDefined(tt(Jt,Q,vt))}function kt({name:et}){if(Je(et))return y.has(et.escapedText);for(const Jt of et.elements)if(!uu(Jt)&&kt(Jt))return!0;return!1}function nn(et){w.assertIsDefined(et.body);const Jt=x,wn=T;x=new Set,T=!1;let ui=Rp(et.body,Q,e);const vi=Gc(et,Ko);if(f>=2&&c.getNodeCheckFlags(et)&384&&(lu(vi)&3)!==3){if(Yt(),x.size){const Ds=sR(t,c,et,x);N[ho(Ds)]=!0;const Sa=ui.statements.slice();Nh(Sa,[Ds]),ui=t.updateBlock(ui,Sa)}T&&(c.getNodeCheckFlags(et)&256?Rk(ui,UN):c.getNodeCheckFlags(et)&128&&Rk(ui,zN))}return x=Jt,T=wn,ui}function sn(){w.assert(C);const et=t.createVariableDeclaration(C,void 0,void 0,t.createIdentifier("arguments")),Jt=t.createVariableStatement(void 0,[et]);return y_(Jt),og(Jt,2097152),Jt}function In(et){if(F7(et.parameters))return Wc(et.parameters,Q,e);const Jt=[];for(const ui of et.parameters){if(ui.initializer||ui.dotDotDotToken){if(et.kind===219){const ts=t.createParameterDeclaration(void 0,t.createToken(26),t.createUniqueName("args",8));Jt.push(ts)}break}const vi=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(ui.name,8));Jt.push(vi)}const wn=t.createNodeArray(Jt);return ut(wn,et.parameters),wn}function Zn(et,Jt){const wn=F7(et.parameters)?void 0:Wc(et.parameters,Q,e);i();const vi=Gc(et,oa).type,ts=f<2?Zt(vi):void 0,Ds=et.kind===219,Sa=C,Tn=(c.getNodeCheckFlags(et)&512)!==0&&!C;Tn&&(C=t.createUniqueName("arguments"));let Ln;if(wn)if(Ds){const _t=[];w.assert(Jt.length<=et.parameters.length);for(let U=0;U=2&&c.getNodeCheckFlags(et)&384;if(U&&(Yt(),x.size)){const Et=sR(t,c,et,x);N[ho(Et)]=!0,Nh(_t,[Et])}Tn&&Nh(_t,[sn()]);const it=t.createBlock(_t,!0);ut(it,et.body),U&&T&&(c.getNodeCheckFlags(et)&256?Rk(it,UN):c.getNodeCheckFlags(et)&128&&Rk(it,zN)),Me=it}return y=Ve,Ds||(x=pt,T=ft,C=Sa),Me}function hn(et,Jt){return na(et)?t.updateBlock(et,Wn(et.statements,X,Xi,Jt)):t.converters.convertToFunctionBlock(w.checkDefined(tt(et,X,EF)))}function Zt(et){const Jt=et&&RA(et);if(Jt&&Ef(Jt)){const wn=c.getTypeReferenceSerializationKind(Jt);if(wn===1||wn===0)return Jt}}function Yt(){g&1||(g|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function yi(et,Jt,wn){if(g&1&&Er(Jt)){const ui=c.getNodeCheckFlags(Jt)&384;if(ui!==d){const vi=d;d=ui,M(et,Jt,wn),d=vi;return}}else if(g&&N[ho(Jt)]){const ui=d;d=0,M(et,Jt,wn),d=ui;return}M(et,Jt,wn)}function us(et,Jt){return Jt=V(et,Jt),et===1&&d?zi(Jt):Jt}function zi(et){switch(et.kind){case 211:return Os(et);case 212:return On(et);case 213:return Fi(et)}return et}function Os(et){return et.expression.kind===108?ut(t.createPropertyAccessExpression(t.createUniqueName("_super",48),et.name),et):et}function On(et){return et.expression.kind===108?cn(et.argumentExpression,et):et}function Fi(et){const Jt=et.expression;if(ff(Jt)){const wn=Jr(Jt)?Os(Jt):On(Jt);return t.createCallExpression(t.createPropertyAccessExpression(wn,"call"),void 0,[t.createThis(),...et.arguments])}return et}function Er(et){const Jt=et.kind;return Jt===263||Jt===176||Jt===174||Jt===177||Jt===178}function cn(et,Jt){return d&256?ut(t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[et]),"value"),Jt):ut(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[et]),Jt)}}function sR(e,t,r,i){const s=(t.getNodeCheckFlags(r)&256)!==0,o=[];return i.forEach((c,u)=>{const f=Hi(u),g=[];g.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,pr(e.createPropertyAccessExpression(pr(e.createSuper(),8),f),8)))),s&&g.push(e.createPropertyAssignment("set",e.createArrowFunction(void 0,void 0,[e.createParameterDeclaration(void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,e.createAssignment(pr(e.createPropertyAccessExpression(pr(e.createSuper(),8),f),8),e.createIdentifier("v"))))),o.push(e.createPropertyAssignment(f,e.createObjectLiteralExpression(g)))}),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createUniqueName("_super",48),void 0,void 0,e.createCallExpression(e.createPropertyAccessExpression(e.createIdentifier("Object"),"create"),void 0,[e.createNull(),e.createObjectLiteralExpression(o,!0)]))],2))}var Mqe=K({"src/compiler/transformers/es2017.ts"(){ua()}});function jle(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:s,hoistVariableDeclaration:o}=e,c=e.getEmitResolver(),u=e.getCompilerOptions(),f=go(u),g=e.onEmitNode;e.onEmitNode=Sa;const d=e.onSubstituteNode;e.onSubstituteNode=Wa;let y=!1,x,T,C,N=0,D=0,M,V,G,Z;const z=[];return am(e,ve);function ce(le,Me){return D!==(D&~le|Me)}function J(le,Me){const _t=D;return D=(D&~le|Me)&3,_t}function ne(le){D=le}function ge(le){V=gn(V,t.createVariableDeclaration(le))}function ve(le){if(le.isDeclarationFile)return le;M=le;const Me=Tt(le);return S0(Me,e.readEmitHelpers()),M=void 0,V=void 0,Me}function Q(le){return fe(le,!1)}function X(le){return fe(le,!0)}function se(le){if(le.kind!==134)return le}function pe(le,Me,_t,U){if(ce(_t,U)){const it=J(_t,U),Et=le(Me);return ne(it),Et}return le(Me)}function we(le){return En(le,Q,e)}function fe(le,Me){if(!(le.transformFlags&128))return le;switch(le.kind){case 223:return ie(le);case 229:return ye(le);case 253:return Ne(le);case 256:return Ue(le);case 210:return Ee(le);case 226:return ze(le,Me);case 361:return st(le,Me);case 299:return zt(le);case 243:return yt(le);case 260:return $e(le);case 246:case 247:case 249:return pe(we,le,0,2);case 250:return In(le,void 0);case 248:return pe(nn,le,0,2);case 222:return sn(le);case 176:return pe(Os,le,2,1);case 174:return pe(Er,le,2,1);case 177:return pe(On,le,2,1);case 178:return pe(Fi,le,2,1);case 262:return pe(cn,le,2,1);case 218:return pe(Jt,le,2,1);case 219:return pe(et,le,2,0);case 169:return us(le);case 244:return Ae(le);case 217:return Le(le,Me);case 215:return xe(le);case 211:return G&&Jr(le)&&le.expression.kind===108&&G.add(le.name.escapedText),En(le,Q,e);case 212:return G&&le.expression.kind===108&&(Z=!0),En(le,Q,e);case 263:case 231:return pe(we,le,2,1);default:return En(le,Q,e)}}function ie(le){return T&2&&T&1?Ir(ut(t.createYieldExpression(void 0,r().createAwaitHelper(tt(le.expression,Q,vt))),le),le):En(le,Q,e)}function ye(le){if(T&2&&T&1){if(le.asteriskToken){const Me=tt(w.checkDefined(le.expression),Q,vt);return Ir(ut(t.createYieldExpression(void 0,r().createAwaitHelper(t.updateYieldExpression(le,le.asteriskToken,ut(r().createAsyncDelegatorHelper(ut(r().createAsyncValuesHelper(Me),Me)),Me)))),le),le)}return Ir(ut(t.createYieldExpression(void 0,Zt(le.expression?tt(le.expression,Q,vt):t.createVoidZero())),le),le)}return En(le,Q,e)}function Ne(le){return T&2&&T&1?t.updateReturnStatement(le,Zt(le.expression?tt(le.expression,Q,vt):t.createVoidZero())):En(le,Q,e)}function Ue(le){if(T&2){const Me=NW(le);return Me.kind===250&&Me.awaitModifier?In(Me,le):t.restoreEnclosingLabel(tt(Me,Q,Xi,t.liftToBlock),le)}return En(le,Q,e)}function Se(le){let Me;const _t=[];for(const U of le)if(U.kind===305){Me&&(_t.push(t.createObjectLiteralExpression(Me)),Me=void 0);const it=U.expression;_t.push(tt(it,Q,vt))}else Me=gn(Me,U.kind===303?t.createPropertyAssignment(U.name,tt(U.initializer,Q,vt)):tt(U,Q,d0));return Me&&_t.push(t.createObjectLiteralExpression(Me)),_t}function Ee(le){if(le.transformFlags&65536){const Me=Se(le.properties);Me.length&&Me[0].kind!==210&&Me.unshift(t.createObjectLiteralExpression());let _t=Me[0];if(Me.length>1){for(let U=1;U=2&&c.getNodeCheckFlags(le)&384;if(mt){Ds();const vn=sR(t,c,le,G);z[ho(vn)]=!0,Nh(it,[vn])}it.push(Ge);const Ut=t.updateBlock(le.body,it);return mt&&Z&&(c.getNodeCheckFlags(le)&256?Rk(Ut,UN):c.getNodeCheckFlags(le)&128&&Rk(Ut,zN)),G=_t,Z=U,Ut}function vi(le){i();let Me=0;const _t=[],U=tt(le.body,Q,EF)??t.createBlock([]);na(U)&&(Me=t.copyPrologue(U.statements,_t,!1,Q)),Mr(_t,ts(void 0,le));const it=s();if(Me>0||Pe(_t)||Pe(it)){const Et=t.converters.convertToFunctionBlock(U,!0);return Nh(_t,it),Mr(_t,Et.statements.slice(Me)),t.updateBlock(Et,ut(t.createNodeArray(_t),Et.statements))}return U}function ts(le,Me){let _t=!1;for(const U of Me.parameters)if(_t){if(ca(U.name)){if(U.name.elements.length>0){const it=Gb(U,Q,e,0,t.getGeneratedNameForNode(U));if(Pe(it)){const Et=t.createVariableDeclarationList(it),Ge=t.createVariableStatement(void 0,Et);pr(Ge,2097152),le=gn(le,Ge)}}else if(U.initializer){const it=t.getGeneratedNameForNode(U),Et=tt(U.initializer,Q,vt),Ge=t.createAssignment(it,Et),mt=t.createExpressionStatement(Ge);pr(mt,2097152),le=gn(le,mt)}}else if(U.initializer){const it=t.cloneNode(U.name);ut(it,U.name),pr(it,96);const Et=tt(U.initializer,Q,vt);og(Et,3168);const Ge=t.createAssignment(it,Et);ut(Ge,U),pr(Ge,3072);const mt=t.createBlock([t.createExpressionStatement(Ge)]);ut(mt,U),pr(mt,3905);const Ut=t.createTypeCheck(t.cloneNode(U.name),"undefined"),vn=t.createIfStatement(Ut,mt);y_(vn),ut(vn,U),pr(vn,2101056),le=gn(le,vn)}}else if(U.transformFlags&65536){_t=!0;const it=Gb(U,Q,e,1,t.getGeneratedNameForNode(U),!1,!0);if(Pe(it)){const Et=t.createVariableDeclarationList(it),Ge=t.createVariableStatement(void 0,Et);pr(Ge,2097152),le=gn(le,Ge)}}return le}function Ds(){x&1||(x|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function Sa(le,Me,_t){if(x&1&&ft(Me)){const U=c.getNodeCheckFlags(Me)&384;if(U!==N){const it=N;N=U,g(le,Me,_t),N=it;return}}else if(x&&z[ho(Me)]){const U=N;N=0,g(le,Me,_t),N=U;return}g(le,Me,_t)}function Wa(le,Me){return Me=d(le,Me),le===1&&N?Tn(Me):Me}function Tn(le){switch(le.kind){case 211:return Ln(le);case 212:return Ve(le);case 213:return pt(le)}return le}function Ln(le){return le.expression.kind===108?ut(t.createPropertyAccessExpression(t.createUniqueName("_super",48),le.name),le):le}function Ve(le){return le.expression.kind===108?At(le.argumentExpression,le):le}function pt(le){const Me=le.expression;if(ff(Me)){const _t=Jr(Me)?Ln(Me):Ve(Me);return t.createCallExpression(t.createPropertyAccessExpression(_t,"call"),void 0,[t.createThis(),...le.arguments])}return le}function ft(le){const Me=le.kind;return Me===263||Me===176||Me===174||Me===177||Me===178}function At(le,Me){return N&256?ut(t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[le]),"value"),Me):ut(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[le]),Me)}}var Rqe=K({"src/compiler/transformers/es2018.ts"(){ua()}});function Ble(e){const t=e.factory;return am(e,r);function r(o){return o.isDeclarationFile?o:En(o,i,e)}function i(o){if(!(o.transformFlags&64))return o;switch(o.kind){case 299:return s(o);default:return En(o,i,e)}}function s(o){return o.variableDeclaration?En(o,i,e):t.updateCatchClause(o,t.createVariableDeclaration(t.createTempVariable(void 0)),tt(o.block,i,na))}}var jqe=K({"src/compiler/transformers/es2019.ts"(){ua()}});function Jle(e){const{factory:t,hoistVariableDeclaration:r}=e;return am(e,i);function i(C){return C.isDeclarationFile?C:En(C,s,e)}function s(C){if(!(C.transformFlags&32))return C;switch(C.kind){case 213:{const N=f(C,!1);return w.assertNotNode(N,Zk),N}case 211:case 212:if(m_(C)){const N=d(C,!1,!1);return w.assertNotNode(N,Zk),N}return En(C,s,e);case 226:return C.operatorToken.kind===61?x(C):En(C,s,e);case 220:return T(C);default:return En(C,s,e)}}function o(C){w.assertNotNode(C,SF);const N=[C];for(;!C.questionDotToken&&!Lb(C);)C=pa(Zd(C.expression),m_),w.assertNotNode(C,SF),N.unshift(C);return{expression:C.expression,chain:N}}function c(C,N,D){const M=g(C.expression,N,D);return Zk(M)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(C,M.expression),M.thisArg):t.updateParenthesizedExpression(C,M)}function u(C,N,D){if(m_(C))return d(C,N,D);let M=tt(C.expression,s,vt);w.assertNotNode(M,Zk);let V;return N&&(Hb(M)?V=M:(V=t.createTempVariable(r),M=t.createAssignment(V,M))),M=C.kind===211?t.updatePropertyAccessExpression(C,M,tt(C.name,s,Je)):t.updateElementAccessExpression(C,M,tt(C.argumentExpression,s,vt)),V?t.createSyntheticReferenceExpression(M,V):M}function f(C,N){if(m_(C))return d(C,N,!1);if(df(C.expression)&&m_(Eo(C.expression))){const D=c(C.expression,!0,!1),M=Wn(C.arguments,s,vt);return Zk(D)?ut(t.createFunctionCallCall(D.expression,D.thisArg,M),C):t.updateCallExpression(C,D,void 0,M)}return En(C,s,e)}function g(C,N,D){switch(C.kind){case 217:return c(C,N,D);case 211:case 212:return u(C,N,D);case 213:return f(C,N);default:return tt(C,s,vt)}}function d(C,N,D){const{expression:M,chain:V}=o(C),G=g(Zd(M),XS(V[0]),!1);let Z=Zk(G)?G.thisArg:void 0,z=Zk(G)?G.expression:G,ce=t.restoreOuterExpressions(M,z,8);Hb(z)||(z=t.createTempVariable(r),ce=t.createAssignment(z,ce));let J=z,ne;for(let ve=0;vefe&&Mr(ie,Wn(pe.statements,y,Xi,fe,ye-fe));break}ye++}w.assert(yeD(ie,fe))))],fe,we===2)}return En(pe,y,e)}function V(pe,we,fe,ie,ye){const Ne=[];for(let Ee=we;Eet&&(t=i)}return t}function Uqe(e){let t=0;for(const r of e){const i=l$(r.statements);if(i===2)return 2;i>t&&(t=i)}return t}var Vqe=K({"src/compiler/transformers/esnext.ts"(){ua()}});function Hle(e){const{factory:t,getEmitHelperFactory:r}=e,i=e.getCompilerOptions();let s,o;return am(e,y);function c(){if(o.filenameDeclaration)return o.filenameDeclaration.name;const xe=t.createVariableDeclaration(t.createUniqueName("_jsxFileName",48),void 0,void 0,t.createStringLiteral(s.fileName));return o.filenameDeclaration=xe,o.filenameDeclaration.name}function u(xe){return i.jsx===5?"jsxDEV":xe?"jsxs":"jsx"}function f(xe){const ze=u(xe);return d(ze)}function g(){return d("Fragment")}function d(xe){var ze,st;const zt=xe==="createElement"?o.importSpecifier:V9(o.importSpecifier,i),yt=(st=(ze=o.utilizedImplicitRuntimeImports)==null?void 0:ze.get(zt))==null?void 0:st.get(xe);if(yt)return yt.name;o.utilizedImplicitRuntimeImports||(o.utilizedImplicitRuntimeImports=new Map);let $e=o.utilizedImplicitRuntimeImports.get(zt);$e||($e=new Map,o.utilizedImplicitRuntimeImports.set(zt,$e));const kt=t.createUniqueName(`_${xe}`,112),nn=t.createImportSpecifier(!1,t.createIdentifier(xe),kt);return yoe(kt,nn),$e.set(xe,nn),kt}function y(xe){if(xe.isDeclarationFile)return xe;s=xe,o={},o.importSpecifier=U9(i,xe);let ze=En(xe,x,e);S0(ze,e.readEmitHelpers());let st=ze.statements;if(o.filenameDeclaration&&(st=tx(st.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([o.filenameDeclaration],2)))),o.utilizedImplicitRuntimeImports){for(const[zt,yt]of Vs(o.utilizedImplicitRuntimeImports.entries()))if(Cl(xe)){const $e=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports(Vs(yt.values()))),t.createStringLiteral(zt),void 0);C1($e,!1),st=tx(st.slice(),$e)}else if(mp(xe)){const $e=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern(Vs(yt.values(),kt=>t.createBindingElement(void 0,kt.propertyName,kt.name))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(zt)]))],2));C1($e,!1),st=tx(st.slice(),$e)}}return st!==ze.statements&&(ze=t.updateSourceFile(ze,st)),o=void 0,ze}function x(xe){return xe.transformFlags&2?T(xe):xe}function T(xe){switch(xe.kind){case 284:return V(xe,!1);case 285:return G(xe,!1);case 288:return Z(xe,!1);case 294:return Tt(xe);default:return En(xe,x,e)}}function C(xe){switch(xe.kind){case 12:return ye(xe);case 294:return Tt(xe);case 284:return V(xe,!0);case 285:return G(xe,!0);case 288:return Z(xe,!0);default:return w.failBadSyntaxKind(xe)}}function N(xe){return xe.properties.some(ze=>Ml(ze)&&(Je(ze.name)&&kr(ze.name)==="__proto__"||Ba(ze.name)&&ze.name.text==="__proto__"))}function D(xe){let ze=!1;for(const st of xe.attributes.properties)if(eC(st)&&(!Va(st.expression)||st.expression.properties.some(Ey)))ze=!0;else if(ze&&_g(st)&&Je(st.name)&&st.name.escapedText==="key")return!0;return!1}function M(xe){return o.importSpecifier===void 0||D(xe)}function V(xe,ze){return(M(xe.openingElement)?ge:J)(xe.openingElement,xe.children,ze,xe)}function G(xe,ze){return(M(xe)?ge:J)(xe,void 0,ze,xe)}function Z(xe,ze){return(o.importSpecifier===void 0?Q:ve)(xe.openingFragment,xe.children,ze,xe)}function z(xe){const ze=ce(xe);return ze&&t.createObjectLiteralExpression([ze])}function ce(xe){const ze=p4(xe);if(Xe(ze)===1&&!ze[0].dotDotDotToken){const zt=C(ze[0]);return zt&&t.createPropertyAssignment("children",zt)}const st=Oi(xe,C);return Xe(st)?t.createPropertyAssignment("children",t.createArrayLiteralExpression(st)):void 0}function J(xe,ze,st,zt){const yt=Ae(xe),$e=ze&&ze.length?ce(ze):void 0,kt=Cn(xe.attributes.properties,In=>!!In.name&&Je(In.name)&&In.name.escapedText==="key"),nn=kt?vr(xe.attributes.properties,In=>In!==kt):xe.attributes.properties,sn=Xe(nn)?se(nn,$e):t.createObjectLiteralExpression($e?[$e]:Ke);return ne(yt,sn,kt,ze||Ke,st,zt)}function ne(xe,ze,st,zt,yt,$e){var kt;const nn=p4(zt),sn=Xe(nn)>1||!!((kt=nn[0])!=null&&kt.dotDotDotToken),In=[xe,ze];if(st&&In.push(ie(st.initializer)),i.jsx===5){const hn=Gc(s);if(hn&&es(hn)){st===void 0&&In.push(t.createVoidZero()),In.push(sn?t.createTrue():t.createFalse());const Zt=Ao(hn,$e.pos);In.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",c()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(Zt.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(Zt.character+1))])),In.push(t.createThis())}}const Zn=ut(t.createCallExpression(f(sn),void 0,In),$e);return yt&&y_(Zn),Zn}function ge(xe,ze,st,zt){const yt=Ae(xe),$e=xe.attributes.properties,kt=Xe($e)?se($e):t.createNull(),nn=o.importSpecifier===void 0?BH(t,e.getEmitResolver().getJsxFactoryEntity(s),i.reactNamespace,xe):d("createElement"),sn=$oe(t,nn,yt,kt,Oi(ze,C),zt);return st&&y_(sn),sn}function ve(xe,ze,st,zt){let yt;if(ze&&ze.length){const $e=z(ze);$e&&(yt=$e)}return ne(g(),yt||t.createObjectLiteralExpression([]),void 0,ze,st,zt)}function Q(xe,ze,st,zt){const yt=Xoe(t,e.getEmitResolver().getJsxFactoryEntity(s),e.getEmitResolver().getJsxFragmentFactoryEntity(s),i.reactNamespace,Oi(ze,C),xe,zt);return st&&y_(yt),yt}function X(xe){return Va(xe.expression)&&!N(xe.expression)?Dc(xe.expression.properties,ze=>w.checkDefined(tt(ze,x,d0))):t.createSpreadAssignment(w.checkDefined(tt(xe.expression,x,vt)))}function se(xe,ze){const st=go(i);return st&&st>=5?t.createObjectLiteralExpression(pe(xe,ze)):we(xe,ze)}function pe(xe,ze){const st=P_($_(xe,eC,(zt,yt)=>P_(Kt(zt,$e=>yt?X($e):fe($e)))));return ze&&st.push(ze),st}function we(xe,ze){const st=[];let zt=[];for(const $e of xe){if(eC($e)){if(Va($e.expression)&&!N($e.expression)){for(const kt of $e.expression.properties){if(Ey(kt)){yt(),st.push(w.checkDefined(tt(kt.expression,x,vt)));continue}zt.push(w.checkDefined(tt(kt,x)))}continue}yt(),st.push(w.checkDefined(tt($e.expression,x,vt)));continue}zt.push(fe($e))}return ze&&zt.push(ze),yt(),st.length&&!Va(st[0])&&st.unshift(t.createObjectLiteralExpression()),Mg(st)||r().createAssignHelper(st);function yt(){zt.length&&(st.push(t.createObjectLiteralExpression(zt)),zt=[])}}function fe(xe){const ze=Le(xe),st=ie(xe.initializer);return t.createPropertyAssignment(ze,st)}function ie(xe){if(xe===void 0)return t.createTrue();if(xe.kind===11){const ze=xe.singleQuote!==void 0?xe.singleQuote:!o9(xe,s),st=t.createStringLiteral(Ee(xe.text)||xe.text,ze);return ut(st,xe)}return xe.kind===294?xe.expression===void 0?t.createTrue():w.checkDefined(tt(xe.expression,x,vt)):Uh(xe)?V(xe,!1):Ex(xe)?G(xe,!1):jb(xe)?Z(xe,!1):w.failBadSyntaxKind(xe)}function ye(xe){const ze=Ne(xe.text);return ze===void 0?void 0:t.createStringLiteral(ze)}function Ne(xe){let ze,st=0,zt=-1;for(let yt=0;yt{if($e)return M6(parseInt($e,10));if(kt)return M6(parseInt(kt,16));{const sn=$Ce.get(nn);return sn?M6(sn):ze}})}function Ee(xe){const ze=Se(xe);return ze===xe?void 0:ze}function Ae(xe){if(xe.kind===284)return Ae(xe.openingElement);{const ze=xe.tagName;return Je(ze)&&m4(ze.escapedText)?t.createStringLiteral(kr(ze)):wm(ze)?t.createStringLiteral(kr(ze.namespace)+":"+kr(ze.name)):e7(t,ze)}}function Le(xe){const ze=xe.name;if(Je(ze)){const st=kr(ze);return/^[A-Za-z_]\w*$/.test(st)?ze:t.createStringLiteral(st)}return t.createStringLiteral(kr(ze.namespace)+":"+kr(ze.name))}function Tt(xe){const ze=tt(xe.expression,x,vt);return xe.dotDotDotToken?t.createSpreadElement(ze):ze}}var $Ce,Wqe=K({"src/compiler/transformers/jsx.ts"(){ua(),$Ce=new Map(Object.entries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}))}});function Gle(e){const{factory:t,hoistVariableDeclaration:r}=e;return am(e,i);function i(f){return f.isDeclarationFile?f:En(f,s,e)}function s(f){if(!(f.transformFlags&512))return f;switch(f.kind){case 226:return o(f);default:return En(f,s,e)}}function o(f){switch(f.operatorToken.kind){case 68:return c(f);case 43:return u(f);default:return En(f,s,e)}}function c(f){let g,d;const y=tt(f.left,s,vt),x=tt(f.right,s,vt);if(uc(y)){const T=t.createTempVariable(r),C=t.createTempVariable(r);g=ut(t.createElementAccessExpression(ut(t.createAssignment(T,y.expression),y.expression),ut(t.createAssignment(C,y.argumentExpression),y.argumentExpression)),y),d=ut(t.createElementAccessExpression(T,C),y)}else if(Jr(y)){const T=t.createTempVariable(r);g=ut(t.createPropertyAccessExpression(ut(t.createAssignment(T,y.expression),y.expression),y.name),y),d=ut(t.createPropertyAccessExpression(T,y.name),y)}else g=y,d=y;return ut(t.createAssignment(g,ut(t.createGlobalMethodCall("Math","pow",[d,x]),f)),f)}function u(f){const g=tt(f.left,s,vt),d=tt(f.right,s,vt);return ut(t.createGlobalMethodCall("Math","pow",[g,d]),f)}}var qqe=K({"src/compiler/transformers/es2016.ts"(){ua()}});function XCe(e,t){return{kind:e,expression:t}}function $le(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:s,endLexicalEnvironment:o,hoistVariableDeclaration:c}=e,u=e.getCompilerOptions(),f=e.getEmitResolver(),g=e.onSubstituteNode,d=e.onEmitNode;e.onEmitNode=Up,e.onSubstituteNode=ud;let y,x,T,C;function N(te){C=gn(C,t.createVariableDeclaration(te))}let D,M;return am(e,V);function V(te){if(te.isDeclarationFile)return te;y=te,x=te.text;const ct=se(te);return S0(ct,e.readEmitHelpers()),y=void 0,x=void 0,C=void 0,T=0,ct}function G(te,ct){const Bt=T;return T=(T&~te|ct)&32767,Bt}function Z(te,ct,Bt){T=(T&~ct|Bt)&-32768|te}function z(te){return(T&8192)!==0&&te.kind===253&&!te.expression}function ce(te){return te.transformFlags&4194304&&(rm(te)||Tx(te)||Loe(te)||kw(te)||Cw(te)||R4(te)||Pw(te)||Cx(te)||Jb(te)||Mb(te)||m1(te,!1)||na(te))}function J(te){return(te.transformFlags&1024)!==0||D!==void 0||T&8192&&ce(te)||m1(te,!1)&&vs(te)||(Kd(te)&1)!==0}function ne(te){return J(te)?X(te,!1):te}function ge(te){return J(te)?X(te,!0):te}function ve(te){if(J(te)){const ct=Gc(te);if(Zs(ct)&&Fl(ct)){const Bt=G(32670,16449),Vt=X(te,!1);return Z(Bt,229376,0),Vt}return X(te,!1)}return te}function Q(te){return te.kind===108?vl(te,!0):ne(te)}function X(te,ct){switch(te.kind){case 126:return;case 263:return Ae(te);case 231:return Le(te);case 169:return Wa(te);case 262:return pn(te);case 219:return Ut(te);case 218:return vn(te);case 260:return Sn(te);case 80:return Se(te);case 261:return Ie(te);case 255:return pe(te);case 269:return we(te);case 241:return Fe(te);case 252:case 251:return Ee(te);case 256:return Li(te);case 246:case 247:return Wr(te,void 0);case 248:return xs(te,void 0);case 249:return Di(te,void 0);case 250:return $r(te,void 0);case 244:return Ot(te);case 210:return Rs(te);case 299:return Ni(te);case 304:return fu(te);case 167:return rc(te);case 209:return Io(te);case 213:return pu(te);case 214:return Bd(te);case 217:return I(te,ct);case 226:return me(te,ct);case 361:return H(te,ct);case 15:case 16:case 17:case 18:return la(te);case 11:return yl(te);case 9:return Bl(te);case 215:return Tc(te);case 228:return Fc(te);case 229:return jl(te);case 230:return sa(te);case 108:return vl(te,!1);case 110:return Ne(te);case 236:return du(te);case 174:return ia(te);case 177:case 178:return jc(te);case 243:return Be(te);case 253:return ye(te);case 222:return Ue(te);default:return En(te,ne,e)}}function se(te){const ct=G(8064,64),Bt=[],Vt=[];i();const R=t.copyPrologue(te.statements,Bt,!1,ne);return Mr(Vt,Wn(te.statements,ne,Xi,R)),C&&Vt.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(C))),t.mergeLexicalEnvironment(Bt,o()),le(Bt,te),Z(ct,0,0),t.updateSourceFile(te,ut(t.createNodeArray(zn(Bt,Vt)),te.statements))}function pe(te){if(D!==void 0){const ct=D.allowedNonLabeledJumps;D.allowedNonLabeledJumps|=2;const Bt=En(te,ne,e);return D.allowedNonLabeledJumps=ct,Bt}return En(te,ne,e)}function we(te){const ct=G(7104,0),Bt=En(te,ne,e);return Z(ct,0,0),Bt}function fe(te){return Ir(t.createReturnStatement(ie()),te)}function ie(){return t.createUniqueName("_this",48)}function ye(te){return D?(D.nonLocalJumps|=8,z(te)&&(te=fe(te)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),te.expression?w.checkDefined(tt(te.expression,ne,vt)):t.createVoidZero())]))):z(te)?fe(te):En(te,ne,e)}function Ne(te){return T|=65536,T&2&&!(T&16384)&&(T|=131072),D?T&2?(D.containsLexicalThis=!0,te):D.thisName||(D.thisName=t.createUniqueName("this")):te}function Ue(te){return En(te,ge,e)}function Se(te){return D&&f.isArgumentsLocalBinding(te)?D.argumentsName||(D.argumentsName=t.createUniqueName("arguments")):te.flags&256?Ir(ut(t.createIdentifier(Hi(te.escapedText)),te),te):te}function Ee(te){if(D){const ct=te.kind===252?2:4;if(!(te.label&&D.labels&&D.labels.get(kr(te.label))||!te.label&&D.allowedNonLabeledJumps&ct)){let Vt;const R=te.label;R?te.kind===252?(Vt=`break-${R.escapedText}`,ee(D,!0,kr(R),Vt)):(Vt=`continue-${R.escapedText}`,ee(D,!1,kr(R),Vt)):te.kind===252?(D.nonLocalJumps|=2,Vt="break"):(D.nonLocalJumps|=4,Vt="continue");let Te=t.createStringLiteral(Vt);if(D.loopOutParameters.length){const at=D.loopOutParameters;let Ht;for(let ir=0;irJe(ct.name)&&!ct.initializer)}function kt(te){if(ix(te))return!0;if(!(te.transformFlags&134217728))return!1;switch(te.kind){case 219:case 218:case 262:case 176:case 175:return!1;case 177:case 178:case 174:case 172:{const ct=te;return co(ct.name)?!!Xs(ct.name,kt):!1}}return!!Xs(te,kt)}function nn(te,ct,Bt,Vt){const R=!!Bt&&gl(Bt.expression).kind!==106;if(!te)return yt(ct,R);const Te=[],at=[];s();const Ht=t.copyStandardPrologue(te.body.statements,Te,0);(Vt||kt(te.body))&&(T|=8192),Mr(at,Wn(te.body.statements,ne,Xi,Ht));const ir=R||T&8192;Ln(Te,te),At(Te,te,Vt),_t(Te,te),ir?Me(Te,te,Ds()):le(Te,te),t.mergeLexicalEnvironment(Te,o()),ir&&!ts(te.body)&&at.push(t.createReturnStatement(ie()));const ai=t.createBlock(ut(t.createNodeArray([...Te,...at]),te.body.statements),!0);return ut(ai,te.body),vi(ai,te.body,Vt)}function sn(te){return vc(te)&&kr(te)==="_this"}function In(te){return vc(te)&&kr(te)==="_super"}function Zn(te){return Xc(te)&&te.declarationList.declarations.length===1&&hn(te.declarationList.declarations[0])}function hn(te){return Ji(te)&&sn(te.name)&&!!te.initializer}function Zt(te){return Kl(te,!0)&&sn(te.left)}function Yt(te){return ma(te)&&Jr(te.expression)&&In(te.expression.expression)&&Je(te.expression.name)&&(kr(te.expression.name)==="call"||kr(te.expression.name)==="apply")&&te.arguments.length>=1&&te.arguments[0].kind===110}function yi(te){return mr(te)&&te.operatorToken.kind===57&&te.right.kind===110&&Yt(te.left)}function us(te){return mr(te)&&te.operatorToken.kind===56&&mr(te.left)&&te.left.operatorToken.kind===38&&In(te.left.left)&&te.left.right.kind===106&&Yt(te.right)&&kr(te.right.expression.name)==="apply"}function zi(te){return mr(te)&&te.operatorToken.kind===57&&te.right.kind===110&&us(te.left)}function Os(te){return Zt(te)&&yi(te.right)}function On(te){return Zt(te)&&zi(te.right)}function Fi(te){return Yt(te)||yi(te)||Os(te)||us(te)||zi(te)||On(te)}function Er(te){for(let ct=0;ct0;Vt--){const R=te.statements[Vt];if(rm(R)&&R.expression&&sn(R.expression)){const Te=te.statements[Vt-1];let at;if(xu(Te)&&Os(gl(Te.expression)))at=Te.expression;else if(Bt&&Zn(Te)){const ai=Te.declarationList.declarations[0];Fi(gl(ai.initializer))&&(at=t.createAssignment(ie(),ai.initializer))}if(!at)break;const Ht=t.createReturnStatement(at);Ir(Ht,Te),ut(Ht,Te);const ir=t.createNodeArray([...te.statements.slice(0,Vt-1),Ht,...te.statements.slice(Vt+1)]);return ut(ir,te.statements),t.updateBlock(te,ir)}}return te}function et(te){if(Zn(te)){if(te.declarationList.declarations[0].initializer.kind===110)return}else if(Zt(te))return t.createPartiallyEmittedExpression(te.right,te);switch(te.kind){case 219:case 218:case 262:case 176:case 175:return te;case 177:case 178:case 174:case 172:{const ct=te;return co(ct.name)?t.replacePropertyName(ct,En(ct.name,et,void 0)):te}}return En(te,et,void 0)}function Jt(te,ct){if(ct.transformFlags&16384||T&65536||T&131072)return te;for(const Bt of ct.statements)if(Bt.transformFlags&134217728&&!KM(Bt))return te;return t.updateBlock(te,Wn(te.statements,et,Xi))}function wn(te){if(Yt(te)&&te.arguments.length===2&&Je(te.arguments[1])&&kr(te.arguments[1])==="arguments")return t.createLogicalAnd(t.createStrictInequality(sl(),t.createNull()),te);switch(te.kind){case 219:case 218:case 262:case 176:case 175:return te;case 177:case 178:case 174:case 172:{const ct=te;return co(ct.name)?t.replacePropertyName(ct,En(ct.name,wn,void 0)):te}}return En(te,wn,void 0)}function ui(te){return t.updateBlock(te,Wn(te.statements,wn,Xi))}function vi(te,ct,Bt){const Vt=te;return te=Er(te),te=cn(te,ct),te!==Vt&&(te=Jt(te,ct)),Bt&&(te=ui(te)),te}function ts(te){if(te.kind===253)return!0;if(te.kind===245){const ct=te;if(ct.elseStatement)return ts(ct.thenStatement)&&ts(ct.elseStatement)}else if(te.kind===241){const ct=pc(te.statements);if(ct&&ts(ct))return!0}return!1}function Ds(){return pr(t.createThis(),8)}function Sa(){return t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(sl(),t.createNull()),t.createFunctionApplyCall(sl(),Ds(),t.createIdentifier("arguments"))),Ds())}function Wa(te){if(!te.dotDotDotToken)return ca(te.name)?Ir(ut(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(te),void 0,void 0,void 0),te),te):te.initializer?Ir(ut(t.createParameterDeclaration(void 0,void 0,te.name,void 0,void 0,void 0),te),te):te}function Tn(te){return te.initializer!==void 0||ca(te.name)}function Ln(te,ct){if(!Pe(ct.parameters,Tn))return!1;let Bt=!1;for(const Vt of ct.parameters){const{name:R,initializer:Te,dotDotDotToken:at}=Vt;at||(ca(R)?Bt=Ve(te,Vt,R,Te)||Bt:Te&&(pt(te,Vt,R,Te),Bt=!0))}return Bt}function Ve(te,ct,Bt,Vt){return Bt.elements.length>0?(tx(te,pr(t.createVariableStatement(void 0,t.createVariableDeclarationList(Gb(ct,ne,e,0,t.getGeneratedNameForNode(ct)))),2097152)),!0):Vt?(tx(te,pr(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(ct),w.checkDefined(tt(Vt,ne,vt)))),2097152)),!0):!1}function pt(te,ct,Bt,Vt){Vt=w.checkDefined(tt(Vt,ne,vt));const R=t.createIfStatement(t.createTypeCheck(t.cloneNode(Bt),"undefined"),pr(ut(t.createBlock([t.createExpressionStatement(pr(ut(t.createAssignment(pr(eo(ut(t.cloneNode(Bt),Bt),Bt.parent),96),pr(Vt,96|Ya(Vt)|3072)),ct),3072))]),ct),3905));y_(R),ut(R,ct),pr(R,2101056),tx(te,R)}function ft(te,ct){return!!(te&&te.dotDotDotToken&&!ct)}function At(te,ct,Bt){const Vt=[],R=pc(ct.parameters);if(!ft(R,Bt))return!1;const Te=R.name.kind===80?eo(ut(t.cloneNode(R.name),R.name),R.name.parent):t.createTempVariable(void 0);pr(Te,96);const at=R.name.kind===80?t.cloneNode(R.name):Te,Ht=ct.parameters.length-1,ir=t.createLoopVariable();Vt.push(pr(ut(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Te,void 0,void 0,t.createArrayLiteralExpression([]))])),R),2097152));const ai=t.createForStatement(ut(t.createVariableDeclarationList([t.createVariableDeclaration(ir,void 0,void 0,t.createNumericLiteral(Ht))]),R),ut(t.createLessThan(ir,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),R),ut(t.createPostfixIncrement(ir),R),t.createBlock([y_(ut(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(at,Ht===0?ir:t.createSubtract(ir,t.createNumericLiteral(Ht))),t.createElementAccessExpression(t.createIdentifier("arguments"),ir))),R))]));return pr(ai,2097152),y_(ai),Vt.push(ai),R.name.kind!==80&&Vt.push(pr(ut(t.createVariableStatement(void 0,t.createVariableDeclarationList(Gb(R,ne,e,0,at))),R),2097152)),pW(te,Vt),!0}function le(te,ct){return T&131072&&ct.kind!==219?(Me(te,ct,t.createThis()),!0):!1}function Me(te,ct,Bt){nf();const Vt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ie(),void 0,void 0,Bt)]));pr(Vt,2100224),ja(Vt,ct),tx(te,Vt)}function _t(te,ct){if(T&32768){let Bt;switch(ct.kind){case 219:return te;case 174:case 177:case 178:Bt=t.createVoidZero();break;case 176:Bt=t.createPropertyAccessExpression(pr(t.createThis(),8),"constructor");break;case 262:case 218:Bt=t.createConditionalExpression(t.createLogicalAnd(pr(t.createThis(),8),t.createBinaryExpression(pr(t.createThis(),8),104,t.getLocalName(ct))),void 0,t.createPropertyAccessExpression(pr(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return w.failBadSyntaxKind(ct)}const Vt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,Bt)]));pr(Vt,2100224),tx(te,Vt)}return te}function U(te,ct){for(const Bt of ct.members)switch(Bt.kind){case 240:te.push(it(Bt));break;case 174:te.push(Et(Hh(ct,Bt),Bt,ct));break;case 177:case 178:const Vt=dx(ct.members,Bt);Bt===Vt.firstAccessor&&te.push(Ge(Hh(ct,Bt),Vt,ct));break;case 176:case 175:break;default:w.failBadSyntaxKind(Bt,y&&y.fileName);break}}function it(te){return ut(t.createEmptyStatement(),te)}function Et(te,ct,Bt){const Vt=cg(ct),R=Ty(ct),Te=mn(ct,ct,void 0,Bt),at=tt(ct.name,ne,Tl);w.assert(at);let Ht;if(!Qi(at)&&dw(e.getCompilerOptions())){const ai=co(at)?at.expression:Je(at)?t.createStringLiteral(Hi(at.escapedText)):at;Ht=t.createObjectDefinePropertyCall(te,ai,t.createPropertyDescriptor({value:Te,enumerable:!1,writable:!0,configurable:!0}))}else{const ai=Ax(t,te,at,ct.name);Ht=t.createAssignment(ai,Te)}pr(Te,3072),ja(Te,R);const ir=ut(t.createExpressionStatement(Ht),ct);return Ir(ir,ct),kl(ir,Vt),pr(ir,96),ir}function Ge(te,ct,Bt){const Vt=t.createExpressionStatement(mt(te,ct,Bt,!1));return pr(Vt,3072),ja(Vt,Ty(ct.firstAccessor)),Vt}function mt(te,{firstAccessor:ct,getAccessor:Bt,setAccessor:Vt},R,Te){const at=eo(ut(t.cloneNode(te),te),te.parent);pr(at,3136),ja(at,ct.name);const Ht=tt(ct.name,ne,Tl);if(w.assert(Ht),Qi(Ht))return w.failBadSyntaxKind(Ht,"Encountered unhandled private identifier while transforming ES2015.");const ir=zH(t,Ht);pr(ir,3104),ja(ir,ct.name);const ai=[];if(Bt){const os=mn(Bt,void 0,void 0,R);ja(os,Ty(Bt)),pr(os,1024);const qa=t.createPropertyAssignment("get",os);kl(qa,cg(Bt)),ai.push(qa)}if(Vt){const os=mn(Vt,void 0,void 0,R);ja(os,Ty(Vt)),pr(os,1024);const qa=t.createPropertyAssignment("set",os);kl(qa,cg(Vt)),ai.push(qa)}ai.push(t.createPropertyAssignment("enumerable",Bt||Vt?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));const Yr=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[at,ir,t.createObjectLiteralExpression(ai,!0)]);return Te&&y_(Yr),Yr}function Ut(te){te.transformFlags&16384&&!(T&16384)&&(T|=131072);const ct=D;D=void 0;const Bt=G(15232,66),Vt=t.createFunctionExpression(void 0,void 0,void 0,void 0,Wc(te.parameters,ne,e),void 0,q(te));return ut(Vt,te),Ir(Vt,te),pr(Vt,16),Z(Bt,0,0),D=ct,Vt}function vn(te){const ct=Ya(te)&524288?G(32662,69):G(32670,65),Bt=D;D=void 0;const Vt=Wc(te.parameters,ne,e),R=q(te),Te=T&32768?t.getLocalName(te):te.name;return Z(ct,229376,0),D=Bt,t.updateFunctionExpression(te,void 0,te.asteriskToken,Te,void 0,Vt,void 0,R)}function pn(te){const ct=D;D=void 0;const Bt=G(32670,65),Vt=Wc(te.parameters,ne,e),R=q(te),Te=T&32768?t.getLocalName(te):te.name;return Z(Bt,229376,0),D=ct,t.updateFunctionDeclaration(te,Wn(te.modifiers,ne,Fa),te.asteriskToken,Te,void 0,Vt,void 0,R)}function mn(te,ct,Bt,Vt){const R=D;D=void 0;const Te=Vt&&fi(Vt)&&!da(te)?G(32670,73):G(32670,65),at=Wc(te.parameters,ne,e),Ht=q(te);return T&32768&&!Bt&&(te.kind===262||te.kind===218)&&(Bt=t.getGeneratedNameForNode(te)),Z(Te,229376,0),D=R,Ir(ut(t.createFunctionExpression(void 0,te.asteriskToken,Bt,void 0,at,void 0,Ht),ct),te)}function q(te){let ct=!1,Bt=!1,Vt,R;const Te=[],at=[],Ht=te.body;let ir;if(s(),na(Ht)&&(ir=t.copyStandardPrologue(Ht.statements,Te,0,!1),ir=t.copyCustomPrologue(Ht.statements,at,ir,ne,qF),ir=t.copyCustomPrologue(Ht.statements,at,ir,ne,HF)),ct=Ln(at,te)||ct,ct=At(at,te,!1)||ct,na(Ht))ir=t.copyCustomPrologue(Ht.statements,at,ir,ne),Vt=Ht.statements,Mr(at,Wn(Ht.statements,ne,Xi,ir)),!ct&&Ht.multiLine&&(ct=!0);else{w.assert(te.kind===219),Vt=N9(Ht,-1);const Yr=te.equalsGreaterThanToken;!lc(Yr)&&!lc(Ht)&&(mN(Yr,Ht,y)?Bt=!0:ct=!0);const os=tt(Ht,ne,vt),qa=t.createReturnStatement(os);ut(qa,Ht),foe(qa,Ht),pr(qa,2880),at.push(qa),R=Ht}if(t.mergeLexicalEnvironment(Te,o()),_t(Te,te),le(Te,te),Pe(Te)&&(ct=!0),at.unshift(...Te),na(Ht)&&Ac(at,Ht.statements))return Ht;const ai=t.createBlock(ut(t.createNodeArray(at),Vt),ct);return ut(ai,te.body),!ct&&Bt&&pr(ai,1),R&&_oe(ai,20,R),Ir(ai,te.body),ai}function Fe(te,ct){const Bt=T&256?G(7104,512):G(6976,128),Vt=En(te,ne,e);return Z(Bt,0,0),Vt}function Ot(te){return En(te,ge,e)}function I(te,ct){return En(te,ct?ge:ne,e)}function me(te,ct){return by(te)?Fx(te,ne,e,0,!ct):te.operatorToken.kind===28?t.updateBinaryExpression(te,w.checkDefined(tt(te.left,ge,vt)),te.operatorToken,w.checkDefined(tt(te.right,ct?ge:ne,vt))):En(te,ne,e)}function H(te,ct){if(ct)return En(te,ge,e);let Bt;for(let R=0;Rir.name)),Ht=Vt?t.createYieldExpression(t.createToken(42),pr(at,8388608)):at;if(Te)R.push(t.createExpressionStatement(Ht)),Wo(ct.loopOutParameters,1,0,R);else{const ir=t.createUniqueName("state"),ai=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ir,void 0,void 0,Ht)]));if(R.push(ai),Wo(ct.loopOutParameters,1,0,R),ct.nonLocalJumps&8){let Yr;Bt?(Bt.nonLocalJumps|=8,Yr=t.createReturnStatement(ir)):Yr=t.createReturnStatement(t.createPropertyAccessExpression(ir,"value")),R.push(t.createIfStatement(t.createTypeCheck(ir,"object"),Yr))}if(ct.nonLocalJumps&2&&R.push(t.createIfStatement(t.createStrictEquality(ir,t.createStringLiteral("break")),t.createBreakStatement())),ct.labeledNonLocalBreaks||ct.labeledNonLocalContinues){const Yr=[];Oe(ct.labeledNonLocalBreaks,!0,ir,Bt,Yr),Oe(ct.labeledNonLocalContinues,!1,ir,Bt,Yr),R.push(t.createSwitchStatement(ir,t.createCaseBlock(Yr)))}}return R}function ee(te,ct,Bt,Vt){ct?(te.labeledNonLocalBreaks||(te.labeledNonLocalBreaks=new Map),te.labeledNonLocalBreaks.set(Bt,Vt)):(te.labeledNonLocalContinues||(te.labeledNonLocalContinues=new Map),te.labeledNonLocalContinues.set(Bt,Vt))}function Oe(te,ct,Bt,Vt,R){te&&te.forEach((Te,at)=>{const Ht=[];if(!Vt||Vt.labels&&Vt.labels.get(at)){const ir=t.createIdentifier(at);Ht.push(ct?t.createBreakStatement(ir):t.createContinueStatement(ir))}else ee(Vt,ct,at,Te),Ht.push(t.createReturnStatement(Bt));R.push(t.createCaseClause(t.createStringLiteral(Te),Ht))})}function bt(te,ct,Bt,Vt,R){const Te=ct.name;if(ca(Te))for(const at of Te.elements)uu(at)||bt(te,at,Bt,Vt,R);else{Bt.push(t.createParameterDeclaration(void 0,void 0,Te));const at=f.getNodeCheckFlags(ct);if(at&65536||R){const Ht=t.createUniqueName("out_"+kr(Te));let ir=0;at&65536&&(ir|=1),kx(te)&&(te.initializer&&f.isBindingCapturedByNode(te.initializer,ct)&&(ir|=2),(te.condition&&f.isBindingCapturedByNode(te.condition,ct)||te.incrementor&&f.isBindingCapturedByNode(te.incrementor,ct))&&(ir|=1)),Vt.push({flags:ir,originalName:Te,outParamName:Ht})}}}function _n(te,ct,Bt,Vt){const R=ct.properties,Te=R.length;for(let at=Vt;atXc(yf)&&!!Ka(yf.declarationList.declarations).initializer,Vt=D;D=void 0;const R=Wn(ct.statements,ve,Xi);D=Vt;const Te=vr(R,Bt),at=vr(R,yf=>!Bt(yf)),ir=pa(Ka(Te),Xc).declarationList.declarations[0],ai=gl(ir.initializer);let Yr=si(ai,Kl);!Yr&&mr(ai)&&ai.operatorToken.kind===28&&(Yr=si(ai.left,Kl));const os=pa(Yr?gl(Yr.right):ai,ma),qa=pa(gl(os.expression),Xo),Ha=qa.body.statements;let Zc=0,Lu=-1;const $l=[];if(Yr){const yf=si(Ha[Zc],xu);yf&&($l.push(yf),Zc++),$l.push(Ha[Zc]),Zc++,$l.push(t.createExpressionStatement(t.createAssignment(Yr.left,pa(ir.name,Je))))}for(;!rm(uy(Ha,Lu));)Lu--;Mr($l,Ha,Zc,Lu),Lu<-1&&Mr($l,Ha,Lu+1);const tp=si(uy(Ha,Lu),rm);for(const yf of at)rm(yf)&&(tp!=null&&tp.expression)&&!Je(tp.expression)?$l.push(tp):$l.push(yf);return Mr($l,Te,1),t.restoreOuterExpressions(te.expression,t.restoreOuterExpressions(ir.initializer,t.restoreOuterExpressions(Yr&&Yr.right,t.updateCallExpression(os,t.restoreOuterExpressions(os.expression,t.updateFunctionExpression(qa,void 0,void 0,void 0,void 0,qa.parameters,void 0,t.updateBlock(qa.body,$l))),void 0,os.arguments))))}function ru(te,ct){if(te.transformFlags&32768||te.expression.kind===108||ff(gl(te.expression))){const{target:Bt,thisArg:Vt}=t.createCallBinding(te.expression,c);te.expression.kind===108&&pr(Vt,8);let R;if(te.transformFlags&32768?R=t.createFunctionApplyCall(w.checkDefined(tt(Bt,Q,vt)),te.expression.kind===108?Vt:w.checkDefined(tt(Vt,ne,vt)),z_(te.arguments,!0,!1,!1)):R=ut(t.createFunctionCallCall(w.checkDefined(tt(Bt,Q,vt)),te.expression.kind===108?Vt:w.checkDefined(tt(Vt,ne,vt)),Wn(te.arguments,ne,vt)),te),te.expression.kind===108){const Te=t.createLogicalOr(R,Ds());R=t.createAssignment(ie(),Te)}return Ir(R,te)}return ix(te)&&(T|=131072),En(te,ne,e)}function Bd(te){if(Pe(te.arguments,Pm)){const{target:ct,thisArg:Bt}=t.createCallBinding(t.createPropertyAccessExpression(te.expression,"bind"),c);return t.createNewExpression(t.createFunctionApplyCall(w.checkDefined(tt(ct,ne,vt)),Bt,z_(t.createNodeArray([t.createVoidZero(),...te.arguments]),!0,!1,!1)),void 0,[])}return En(te,ne,e)}function z_(te,ct,Bt,Vt){const R=te.length,Te=P_($_(te,De,(ai,Yr,os,qa)=>Yr(ai,Bt,Vt&&qa===R)));if(Te.length===1){const ai=Te[0];if(ct&&!u.downlevelIteration||jq(ai.expression)||hw(ai.expression,"___spreadArray"))return ai.expression}const at=r(),Ht=Te[0].kind!==0;let ir=Ht?t.createArrayLiteralExpression():Te[0].expression;for(let ai=Ht?0:1;ai0&&Vt.push(t.createStringLiteral(Bt.literal.text)),ct=t.createCallExpression(t.createPropertyAccessExpression(ct,"concat"),void 0,Vt)}return ut(ct,te)}function sl(){return t.createUniqueName("_super",48)}function vl(te,ct){const Bt=T&8&&!ct?t.createPropertyAccessExpression(Ir(sl(),te),"prototype"):sl();return Ir(Bt,te),kl(Bt,te),ja(Bt,te),Bt}function du(te){return te.keywordToken===105&&te.name.escapedText==="target"?(T|=32768,t.createUniqueName("_newTarget",48)):te}function Up(te,ct,Bt){if(M&1&&oa(ct)){const Vt=G(32670,Ya(ct)&16?81:65);d(te,ct,Bt),Z(Vt,0,0);return}d(te,ct,Bt)}function gf(){M&2||(M|=2,e.enableSubstitution(80))}function nf(){M&1||(M|=1,e.enableSubstitution(110),e.enableEmitNotification(176),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(219),e.enableEmitNotification(218),e.enableEmitNotification(262))}function ud(te,ct){return ct=g(te,ct),te===1?w0(ct):Je(ct)?hg(ct):ct}function hg(te){if(M&2&&!UH(te)){const ct=Is(te,Je);if(ct&&sh(ct))return ut(t.getGeneratedNameForNode(ct),te)}return te}function sh(te){switch(te.parent.kind){case 208:case 263:case 266:case 260:return te.parent.name===te&&f.isDeclarationWithCollidingName(te.parent)}return!1}function w0(te){switch(te.kind){case 80:return c_(te);case 110:return ep(te)}return te}function c_(te){if(M&2&&!UH(te)){const ct=f.getReferencedDeclarationWithCollidingName(te);if(ct&&!(fi(ct)&&D0(ct,te)))return ut(t.getGeneratedNameForNode(Ms(ct)),te)}return te}function D0(te,ct){let Bt=Is(ct);if(!Bt||Bt===te||Bt.end<=te.pos||Bt.pos>=te.end)return!1;const Vt=qg(te);for(;Bt;){if(Bt===Vt||Bt===te)return!1;if(vu(Bt)&&Bt.parent===te)return!0;Bt=Bt.parent}return!1}function ep(te){return M&1&&T&16?ut(ie(),te):te}function Hh(te,ct){return da(ct)?t.getInternalName(te):t.createPropertyAccessExpression(t.getInternalName(te),"prototype")}function hf(te,ct){if(!te||!ct||Pe(te.parameters))return!1;const Bt=hu(te.body.statements);if(!Bt||!lc(Bt)||Bt.kind!==244)return!1;const Vt=Bt.expression;if(!lc(Vt)||Vt.kind!==213)return!1;const R=Vt.expression;if(!lc(R)||R.kind!==108)return!1;const Te=Mg(Vt.arguments);if(!Te||!lc(Te)||Te.kind!==230)return!1;const at=Te.expression;return Je(at)&&at.escapedText==="arguments"}}var Hqe=K({"src/compiler/transformers/es2015.ts"(){ua()}});function Xle(e){const{factory:t}=e,r=e.getCompilerOptions();let i,s;(r.jsx===1||r.jsx===3)&&(i=e.onEmitNode,e.onEmitNode=u,e.enableEmitNotification(286),e.enableEmitNotification(287),e.enableEmitNotification(285),s=[]);const o=e.onSubstituteNode;return e.onSubstituteNode=f,e.enableSubstitution(211),e.enableSubstitution(303),am(e,c);function c(x){return x}function u(x,T,C){switch(T.kind){case 286:case 287:case 285:const N=T.tagName;s[s_(N)]=!0;break}i(x,T,C)}function f(x,T){return T.id&&s&&s[T.id]?o(x,T):(T=o(x,T),Jr(T)?g(T):Ml(T)?d(T):T)}function g(x){if(Qi(x.name))return x;const T=y(x.name);return T?ut(t.createElementAccessExpression(x.expression,T),x):x}function d(x){const T=Je(x.name)&&y(x.name);return T?t.updatePropertyAssignment(x,T,x.initializer):x}function y(x){const T=Wv(x);if(T!==void 0&&T>=83&&T<=118)return ut(t.createStringLiteralFromNode(x),x)}}var Gqe=K({"src/compiler/transformers/es5.ts"(){ua()}});function $qe(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}function Qle(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:s,hoistFunctionDeclaration:o,hoistVariableDeclaration:c}=e,u=e.getCompilerOptions(),f=go(u),g=e.getEmitResolver(),d=e.onSubstituteNode;e.onSubstituteNode=Ot;let y,x,T,C,N,D,M,V,G,Z,z=1,ce,J,ne,ge,ve=0,Q=0,X,se,pe,we,fe,ie,ye,Ne;return am(e,Ue);function Ue(De){if(De.isDeclarationFile||!(De.transformFlags&2048))return De;const jt=En(De,Se,e);return S0(jt,e.readEmitHelpers()),jt}function Se(De){const jt=De.transformFlags;return C?Ee(De):T?Ae(De):Ko(De)&&De.asteriskToken?Tt(De):jt&2048?En(De,Se,e):De}function Ee(De){switch(De.kind){case 246:return Sa(De);case 247:return Tn(De);case 255:return mt(De);case 256:return vn(De);default:return Ae(De)}}function Ae(De){switch(De.kind){case 262:return xe(De);case 218:return ze(De);case 177:case 178:return st(De);case 243:return yt(De);case 248:return Ve(De);case 249:return ft(De);case 252:return _t(De);case 251:return le(De);case 253:return it(De);default:return De.transformFlags&1048576?Le(De):De.transformFlags&4196352?En(De,Se,e):De}}function Le(De){switch(De.kind){case 226:return $e(De);case 361:return In(De);case 227:return hn(De);case 229:return Zt(De);case 209:return Yt(De);case 210:return us(De);case 212:return zi(De);case 213:return Os(De);case 214:return On(De);default:return En(De,Se,e)}}function Tt(De){switch(De.kind){case 262:return xe(De);case 218:return ze(De);default:return w.failBadSyntaxKind(De)}}function xe(De){if(De.asteriskToken)De=Ir(ut(t.createFunctionDeclaration(De.modifiers,void 0,De.name,void 0,Wc(De.parameters,Se,e),void 0,zt(De.body)),De),De);else{const jt=T,Xn=C;T=!1,C=!1,De=En(De,Se,e),T=jt,C=Xn}if(T){o(De);return}else return De}function ze(De){if(De.asteriskToken)De=Ir(ut(t.createFunctionExpression(void 0,void 0,De.name,void 0,Wc(De.parameters,Se,e),void 0,zt(De.body)),De),De);else{const jt=T,Xn=C;T=!1,C=!1,De=En(De,Se,e),T=jt,C=Xn}return De}function st(De){const jt=T,Xn=C;return T=!1,C=!1,De=En(De,Se,e),T=jt,C=Xn,De}function zt(De){const jt=[],Xn=T,Ts=C,sa=N,la=D,yl=M,Bl=V,Tc=G,Fc=Z,sl=z,vl=ce,du=J,Up=ne,gf=ge;T=!0,C=!1,N=void 0,D=void 0,M=void 0,V=void 0,G=void 0,Z=void 0,z=1,ce=void 0,J=void 0,ne=void 0,ge=t.createTempVariable(void 0),i();const nf=t.copyPrologue(De.statements,jt,!1,Se);Fi(De.statements,nf);const ud=ee();return Nh(jt,s()),jt.push(t.createReturnStatement(ud)),T=Xn,C=Ts,N=sa,D=la,M=yl,V=Bl,G=Tc,Z=Fc,z=sl,ce=vl,J=du,ne=Up,ge=gf,ut(t.createBlock(jt,De.multiLine),De)}function yt(De){if(De.transformFlags&1048576){ui(De.declarationList);return}else{if(Ya(De)&2097152)return De;for(const Xn of De.declarationList.declarations)c(Xn.name);const jt=$P(De.declarationList);return jt.length===0?void 0:ja(t.createExpressionStatement(t.inlineExpressions(Kt(jt,vi))),De)}}function $e(De){const jt=eq(De);switch(jt){case 0:return nn(De);case 1:return kt(De);default:return w.assertNever(jt)}}function kt(De){const{left:jt,right:Xn}=De;if(q(Xn)){let Ts;switch(jt.kind){case 211:Ts=t.updatePropertyAccessExpression(jt,H(w.checkDefined(tt(jt.expression,Se,Pf))),jt.name);break;case 212:Ts=t.updateElementAccessExpression(jt,H(w.checkDefined(tt(jt.expression,Se,Pf))),H(w.checkDefined(tt(jt.argumentExpression,Se,vt))));break;default:Ts=w.checkDefined(tt(jt,Se,vt));break}const sa=De.operatorToken.kind;return Vw(sa)?ut(t.createAssignment(Ts,ut(t.createBinaryExpression(H(Ts),Ww(sa),w.checkDefined(tt(Xn,Se,vt))),De)),De):t.updateBinaryExpression(De,Ts,De.operatorToken,w.checkDefined(tt(Xn,Se,vt)))}return En(De,Se,e)}function nn(De){return q(De.right)?cae(De.operatorToken.kind)?Zn(De):De.operatorToken.kind===28?sn(De):t.updateBinaryExpression(De,H(w.checkDefined(tt(De.left,Se,vt))),De.operatorToken,w.checkDefined(tt(De.right,Se,vt))):En(De,Se,e)}function sn(De){let jt=[];return Xn(De.left),Xn(De.right),t.inlineExpressions(jt);function Xn(Ts){mr(Ts)&&Ts.operatorToken.kind===28?(Xn(Ts.left),Xn(Ts.right)):(q(Ts)&&jt.length>0&&(_e(1,[t.createExpressionStatement(t.inlineExpressions(jt))]),jt=[]),jt.push(w.checkDefined(tt(Ts,Se,vt))))}}function In(De){let jt=[];for(const Xn of De.elements)mr(Xn)&&Xn.operatorToken.kind===28?jt.push(sn(Xn)):(q(Xn)&&jt.length>0&&(_e(1,[t.createExpressionStatement(t.inlineExpressions(jt))]),jt=[]),jt.push(w.checkDefined(tt(Xn,Se,vt))));return t.inlineExpressions(jt)}function Zn(De){const jt=Be(),Xn=de();return xc(Xn,w.checkDefined(tt(De.left,Se,vt)),De.left),De.operatorToken.kind===56?nc(jt,Xn,De.left):rn(jt,Xn,De.left),xc(Xn,w.checkDefined(tt(De.right,Se,vt)),De.right),Ie(jt),Xn}function hn(De){if(q(De.whenTrue)||q(De.whenFalse)){const jt=Be(),Xn=Be(),Ts=de();return nc(jt,w.checkDefined(tt(De.condition,Se,vt)),De.condition),xc(Ts,w.checkDefined(tt(De.whenTrue,Se,vt)),De.whenTrue),js(Xn),Ie(jt),xc(Ts,w.checkDefined(tt(De.whenFalse,Se,vt)),De.whenFalse),Ie(Xn),Ts}return En(De,Se,e)}function Zt(De){const jt=Be(),Xn=tt(De.expression,Se,vt);if(De.asteriskToken){const Ts=Ya(De.expression)&8388608?Xn:ut(r().createValuesHelper(Xn),De);ku(Ts,De)}else Fu(Xn,De);return Ie(jt),ld(De)}function Yt(De){return yi(De.elements,void 0,void 0,De.multiLine)}function yi(De,jt,Xn,Ts){const sa=Fe(De);let la;if(sa>0){la=de();const Tc=Wn(De,Se,vt,0,sa);xc(la,t.createArrayLiteralExpression(jt?[jt,...Tc]:Tc)),jt=void 0}const yl=D_(De,Bl,[],sa);return la?t.createArrayConcatCall(la,[t.createArrayLiteralExpression(yl,Ts)]):ut(t.createArrayLiteralExpression(jt?[jt,...yl]:yl,Ts),Xn);function Bl(Tc,Fc){if(q(Fc)&&Tc.length>0){const sl=la!==void 0;la||(la=de()),xc(la,sl?t.createArrayConcatCall(la,[t.createArrayLiteralExpression(Tc,Ts)]):t.createArrayLiteralExpression(jt?[jt,...Tc]:Tc,Ts)),jt=void 0,Tc=[]}return Tc.push(w.checkDefined(tt(Fc,Se,vt))),Tc}}function us(De){const jt=De.properties,Xn=De.multiLine,Ts=Fe(jt),sa=de();xc(sa,t.createObjectLiteralExpression(Wn(jt,Se,d0,0,Ts),Xn));const la=D_(jt,yl,[],Ts);return la.push(Xn?y_(eo(ut(t.cloneNode(sa),sa),sa.parent)):sa),t.inlineExpressions(la);function yl(Bl,Tc){q(Tc)&&Bl.length>0&&(qc(t.createExpressionStatement(t.inlineExpressions(Bl))),Bl=[]);const Fc=Qoe(t,De,Tc,sa),sl=tt(Fc,Se,vt);return sl&&(Xn&&y_(sl),Bl.push(sl)),Bl}}function zi(De){return q(De.argumentExpression)?t.updateElementAccessExpression(De,H(w.checkDefined(tt(De.expression,Se,Pf))),w.checkDefined(tt(De.argumentExpression,Se,vt))):En(De,Se,e)}function Os(De){if(!gp(De)&&dt(De.arguments,q)){const{target:jt,thisArg:Xn}=t.createCallBinding(De.expression,c,f,!0);return Ir(ut(t.createFunctionApplyCall(H(w.checkDefined(tt(jt,Se,Pf))),Xn,yi(De.arguments)),De),De)}return En(De,Se,e)}function On(De){if(dt(De.arguments,q)){const{target:jt,thisArg:Xn}=t.createCallBinding(t.createPropertyAccessExpression(De.expression,"bind"),c);return Ir(ut(t.createNewExpression(t.createFunctionApplyCall(H(w.checkDefined(tt(jt,Se,vt))),Xn,yi(De.arguments,t.createVoidZero())),void 0,[]),De),De)}return En(De,Se,e)}function Fi(De,jt=0){const Xn=De.length;for(let Ts=jt;Ts0)break;sa.push(vi(yl))}sa.length&&(qc(t.createExpressionStatement(t.inlineExpressions(sa))),Ts+=sa.length,sa=[])}}function vi(De){return ja(t.createAssignment(ja(t.cloneNode(De.name),De.name),w.checkDefined(tt(De.initializer,Se,vt))),De)}function ts(De){if(q(De))if(q(De.thenStatement)||q(De.elseStatement)){const jt=Be(),Xn=De.elseStatement?Be():void 0;nc(De.elseStatement?Xn:jt,w.checkDefined(tt(De.expression,Se,vt)),De.expression),Er(De.thenStatement),De.elseStatement&&(js(jt),Ie(Xn),Er(De.elseStatement)),Ie(jt)}else qc(tt(De,Se,Xi));else qc(tt(De,Se,Xi))}function Ds(De){if(q(De)){const jt=Be(),Xn=Be();Mi(jt),Ie(Xn),Er(De.statement),Ie(jt),rn(Xn,w.checkDefined(tt(De.expression,Se,vt))),Di()}else qc(tt(De,Se,Xi))}function Sa(De){return C?(xs(),De=En(De,Se,e),Di(),De):En(De,Se,e)}function Wa(De){if(q(De)){const jt=Be(),Xn=Mi(jt);Ie(jt),nc(Xn,w.checkDefined(tt(De.expression,Se,vt))),Er(De.statement),js(jt),Di()}else qc(tt(De,Se,Xi))}function Tn(De){return C?(xs(),De=En(De,Se,e),Di(),De):En(De,Se,e)}function Ln(De){if(q(De)){const jt=Be(),Xn=Be(),Ts=Mi(Xn);if(De.initializer){const sa=De.initializer;_u(sa)?ui(sa):qc(ut(t.createExpressionStatement(w.checkDefined(tt(sa,Se,vt))),sa))}Ie(jt),De.condition&&nc(Ts,w.checkDefined(tt(De.condition,Se,vt))),Er(De.statement),Ie(Xn),De.incrementor&&qc(ut(t.createExpressionStatement(w.checkDefined(tt(De.incrementor,Se,vt))),De.incrementor)),js(jt),Di()}else qc(tt(De,Se,Xi))}function Ve(De){C&&xs();const jt=De.initializer;if(jt&&_u(jt)){for(const Ts of jt.declarations)c(Ts.name);const Xn=$P(jt);De=t.updateForStatement(De,Xn.length>0?t.inlineExpressions(Kt(Xn,vi)):void 0,tt(De.condition,Se,vt),tt(De.incrementor,Se,vt),K_(De.statement,Se,e))}else De=En(De,Se,e);return C&&Di(),De}function pt(De){if(q(De)){const jt=de(),Xn=de(),Ts=de(),sa=t.createLoopVariable(),la=De.initializer;c(sa),xc(jt,w.checkDefined(tt(De.expression,Se,vt))),xc(Xn,t.createArrayLiteralExpression()),qc(t.createForInStatement(Ts,jt,t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(Xn,"push"),void 0,[Ts])))),xc(sa,t.createNumericLiteral(0));const yl=Be(),Bl=Be(),Tc=Mi(Bl);Ie(yl),nc(Tc,t.createLessThan(sa,t.createPropertyAccessExpression(Xn,"length"))),xc(Ts,t.createElementAccessExpression(Xn,sa)),nc(Bl,t.createBinaryExpression(Ts,103,jt));let Fc;if(_u(la)){for(const sl of la.declarations)c(sl.name);Fc=t.cloneNode(la.declarations[0].name)}else Fc=w.checkDefined(tt(la,Se,vt)),w.assert(Pf(Fc));xc(Fc,Ts),Er(De.statement),Ie(Bl),qc(t.createExpressionStatement(t.createPostfixIncrement(sa))),js(yl),Di()}else qc(tt(De,Se,Xi))}function ft(De){C&&xs();const jt=De.initializer;if(_u(jt)){for(const Xn of jt.declarations)c(Xn.name);De=t.updateForInStatement(De,jt.declarations[0].name,w.checkDefined(tt(De.expression,Se,vt)),w.checkDefined(tt(De.statement,Se,Xi,t.liftToBlock)))}else De=En(De,Se,e);return C&&Di(),De}function At(De){const jt=va(De.label?kr(De.label):void 0);jt>0?js(jt,De):qc(De)}function le(De){if(C){const jt=va(De.label&&kr(De.label));if(jt>0)return Ja(jt,De)}return En(De,Se,e)}function Me(De){const jt=vs(De.label?kr(De.label):void 0);jt>0?js(jt,De):qc(De)}function _t(De){if(C){const jt=vs(De.label&&kr(De.label));if(jt>0)return Ja(jt,De)}return En(De,Se,e)}function U(De){Kf(tt(De.expression,Se,vt),De)}function it(De){return Pc(tt(De.expression,Se,vt),De)}function Et(De){q(De)?(Un(H(w.checkDefined(tt(De.expression,Se,vt)))),Er(De.statement),Gn()):qc(tt(De,Se,Xi))}function Ge(De){if(q(De.caseBlock)){const jt=De.caseBlock,Xn=jt.clauses.length,Ts=As(),sa=H(w.checkDefined(tt(De.expression,Se,vt))),la=[];let yl=-1;for(let Fc=0;Fc0)break;Tc.push(t.createCaseClause(w.checkDefined(tt(vl.expression,Se,vt)),[Ja(la[sl],vl.expression)]))}else Fc++}Tc.length&&(qc(t.createSwitchStatement(sa,t.createCaseBlock(Tc))),Bl+=Tc.length,Tc=[]),Fc>0&&(Bl+=Fc,Fc=0)}yl>=0?js(la[yl]):js(Ts);for(let Fc=0;Fc=0;Xn--){const Ts=V[Xn];if(tc(Ts)){if(Ts.labelText===De)return!0}else break}return!1}function vs(De){if(V)if(De)for(let jt=V.length-1;jt>=0;jt--){const Xn=V[jt];if(tc(Xn)&&Xn.labelText===De)return Xn.breakLabel;if(bo(Xn)&&Iu(De,jt-1))return Xn.breakLabel}else for(let jt=V.length-1;jt>=0;jt--){const Xn=V[jt];if(bo(Xn))return Xn.breakLabel}return 0}function va(De){if(V)if(De)for(let jt=V.length-1;jt>=0;jt--){const Xn=V[jt];if(Oc(Xn)&&Iu(De,jt-1))return Xn.continueLabel}else for(let jt=V.length-1;jt>=0;jt--){const Xn=V[jt];if(Oc(Xn))return Xn.continueLabel}return 0}function Ou(De){if(De!==void 0&&De>0){Z===void 0&&(Z=[]);const jt=t.createNumericLiteral(Number.MAX_SAFE_INTEGER);return Z[De]===void 0?Z[De]=[jt]:Z[De].push(jt),jt}return t.createOmittedExpression()}function Lo(De){const jt=t.createNumericLiteral(De);return gL(jt,3,$qe(De)),jt}function Ja(De,jt){return w.assertLessThan(0,De,"Invalid label"),ut(t.createReturnStatement(t.createArrayLiteralExpression([Lo(3),Ou(De)])),jt)}function Pc(De,jt){return ut(t.createReturnStatement(t.createArrayLiteralExpression(De?[Lo(2),De]:[Lo(2)])),jt)}function ld(De){return ut(t.createCallExpression(t.createPropertyAccessExpression(ge,"sent"),void 0,[]),De)}function El(){_e(0)}function qc(De){De?_e(1,[De]):El()}function xc(De,jt,Xn){_e(2,[De,jt],Xn)}function js(De,jt){_e(3,[De],jt)}function rn(De,jt,Xn){_e(4,[De,jt],Xn)}function nc(De,jt,Xn){_e(5,[De,jt],Xn)}function ku(De,jt){_e(7,[De],jt)}function Fu(De,jt){_e(6,[De],jt)}function Kf(De,jt){_e(8,[De],jt)}function Wo(De,jt){_e(9,[De],jt)}function Gl(){_e(10)}function _e(De,jt,Xn){ce===void 0&&(ce=[],J=[],ne=[]),G===void 0&&Ie(Be());const Ts=ce.length;ce[Ts]=De,J[Ts]=jt,ne[Ts]=Xn}function ee(){ve=0,Q=0,X=void 0,se=!1,pe=!1,we=void 0,fe=void 0,ie=void 0,ye=void 0,Ne=void 0;const De=Oe();return r().createGeneratorHelper(pr(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,ge)],void 0,t.createBlock(De,De.length>0)),1048576))}function Oe(){if(ce){for(let De=0;De=0;jt--){const Xn=Ne[jt];fe=[t.createWithStatement(Xn.expression,t.createBlock(fe))]}if(ye){const{startLabel:jt,catchLabel:Xn,finallyLabel:Ts,endLabel:sa}=ye;fe.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(ge,"trys"),"push"),void 0,[t.createArrayLiteralExpression([Ou(jt),Ou(Xn),Ou(Ts),Ou(sa)])]))),ye=void 0}De&&fe.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(ge,"label"),t.createNumericLiteral(Q+1))))}we.push(t.createCaseClause(t.createNumericLiteral(Q),fe||[])),fe=void 0}function qr(De){if(G)for(let jt=0;jtr.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(kr(Ie))),Be),r.createVoidZero())));gn(Fe,tt(D.externalHelpersImportDeclaration,X,Xi)),Mr(Fe,Wn(q.statements,X,Xi,I)),Q(Fe,!1),Nh(Fe,o());const me=r.updateSourceFile(q,ut(r.createNodeArray(Fe),q.statements));return S0(me,e.readEmitHelpers()),me}function ce(q){const Fe=r.createIdentifier("define"),Ot=r7(r,q,g,u),I=wd(q)&&q,{aliasedModuleNames:me,unaliasedModuleNames:H,importAliasNames:de}=ne(q,!0),Be=r.updateSourceFile(q,ut(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(Fe,void 0,[...Ot?[Ot]:[],r.createArrayLiteralExpression(I?Ke:[r.createStringLiteral("require"),r.createStringLiteral("exports"),...me,...H]),I?I.statements.length?I.statements[0].expression:r.createObjectLiteralExpression():r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"require"),r.createParameterDeclaration(void 0,void 0,"exports"),...de],void 0,ve(q))]))]),q.statements));return S0(Be,e.readEmitHelpers()),Be}function J(q){const{aliasedModuleNames:Fe,unaliasedModuleNames:Ot,importAliasNames:I}=ne(q,!1),me=r7(r,q,g,u),H=r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"factory")],void 0,ut(r.createBlock([r.createIfStatement(r.createLogicalAnd(r.createTypeCheck(r.createIdentifier("module"),"object"),r.createTypeCheck(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),"object")),r.createBlock([r.createVariableStatement(void 0,[r.createVariableDeclaration("v",void 0,void 0,r.createCallExpression(r.createIdentifier("factory"),void 0,[r.createIdentifier("require"),r.createIdentifier("exports")]))]),pr(r.createIfStatement(r.createStrictInequality(r.createIdentifier("v"),r.createIdentifier("undefined")),r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),r.createIdentifier("v")))),1)]),r.createIfStatement(r.createLogicalAnd(r.createTypeCheck(r.createIdentifier("define"),"function"),r.createPropertyAccessExpression(r.createIdentifier("define"),"amd")),r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("define"),void 0,[...me?[me]:[],r.createArrayLiteralExpression([r.createStringLiteral("require"),r.createStringLiteral("exports"),...Fe,...Ot]),r.createIdentifier("factory")]))])))],!0),void 0)),de=r.updateSourceFile(q,ut(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(H,void 0,[r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"require"),r.createParameterDeclaration(void 0,void 0,"exports"),...I],void 0,ve(q))]))]),q.statements));return S0(de,e.readEmitHelpers()),de}function ne(q,Fe){const Ot=[],I=[],me=[];for(const H of q.amdDependencies)H.name?(Ot.push(r.createStringLiteral(H.path)),me.push(r.createParameterDeclaration(void 0,void 0,H.name))):I.push(r.createStringLiteral(H.path));for(const H of D.externalImports){const de=nC(r,H,N,g,f,u),Be=V4(r,H,N);de&&(Fe&&Be?(pr(Be,8),Ot.push(de),me.push(r.createParameterDeclaration(void 0,void 0,Be))):I.push(de))}return{aliasedModuleNames:Ot,unaliasedModuleNames:I,importAliasNames:me}}function ge(q){if(Tu(q)||ml(q)||!nC(r,q,N,g,f,u))return;const Fe=V4(r,q,N),Ot=Os(q,Fe);if(Ot!==Fe)return r.createExpressionStatement(r.createAssignment(Fe,Ot))}function ve(q){s();const Fe=[],Ot=r.copyPrologue(q.statements,Fe,!u.noImplicitUseStrict,X);Z()&&gn(Fe,At()),Xe(D.exportedNames)&&gn(Fe,r.createExpressionStatement(D_(D.exportedNames,(me,H)=>r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(kr(H))),me),r.createVoidZero()))),gn(Fe,tt(D.externalHelpersImportDeclaration,X,Xi)),y===2&&Mr(Fe,Oi(D.externalImports,ge)),Mr(Fe,Wn(q.statements,X,Xi,Ot)),Q(Fe,!0),Nh(Fe,o());const I=r.createBlock(Fe,!0);return V&&Rk(I,QCe),I}function Q(q,Fe){if(D.exportEquals){const Ot=tt(D.exportEquals.expression,we,vt);if(Ot)if(Fe){const I=r.createReturnStatement(Ot);ut(I,D.exportEquals),pr(I,3840),q.push(I)}else{const I=r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),Ot));ut(I,D.exportEquals),pr(I,3072),q.push(I)}}}function X(q){switch(q.kind){case 272:return On(q);case 271:return Er(q);case 278:return cn(q);case 277:return et(q);default:return se(q)}}function se(q){switch(q.kind){case 243:return ui(q);case 262:return Jt(q);case 263:return wn(q);case 248:return Ne(q,!0);case 249:return Ue(q);case 250:return Se(q);case 246:return Ee(q);case 247:return Ae(q);case 256:return Le(q);case 254:return Tt(q);case 245:return xe(q);case 255:return ze(q);case 269:return st(q);case 296:return zt(q);case 297:return yt(q);case 258:return $e(q);case 299:return kt(q);case 241:return nn(q);default:return we(q)}}function pe(q,Fe){if(!(q.transformFlags&276828160))return q;switch(q.kind){case 248:return Ne(q,!1);case 244:return sn(q);case 217:return In(q,Fe);case 360:return Zn(q,Fe);case 213:if(gp(q)&&N.impliedNodeFormat===void 0)return Zt(q);break;case 226:if(by(q))return ye(q,Fe);break;case 224:case 225:return hn(q,Fe)}return En(q,we,e)}function we(q){return pe(q,!1)}function fe(q){return pe(q,!0)}function ie(q){if(Va(q))for(const Fe of q.properties)switch(Fe.kind){case 303:if(ie(Fe.initializer))return!0;break;case 304:if(ie(Fe.name))return!0;break;case 305:if(ie(Fe.expression))return!0;break;case 174:case 177:case 178:return!1;default:w.assertNever(Fe,"Unhandled object member kind")}else if(B_(q)){for(const Fe of q.elements)if(Pm(Fe)){if(ie(Fe.expression))return!0}else if(ie(Fe))return!0}else if(Je(q))return Xe(mn(q))>(lM(q)?1:0);return!1}function ye(q,Fe){return ie(q.left)?Fx(q,we,e,0,!Fe,vi):En(q,we,e)}function Ne(q,Fe){if(Fe&&q.initializer&&_u(q.initializer)&&!(q.initializer.flags&7)){const Ot=Tn(void 0,q.initializer,!1);if(Ot){const I=[],me=tt(q.initializer,fe,_u),H=r.createVariableStatement(void 0,me);I.push(H),Mr(I,Ot);const de=tt(q.condition,we,vt),Be=tt(q.incrementor,fe,vt),Ie=K_(q.statement,Fe?se:we,e);return I.push(r.updateForStatement(q,void 0,de,Be,Ie)),I}}return r.updateForStatement(q,tt(q.initializer,fe,Zp),tt(q.condition,we,vt),tt(q.incrementor,fe,vt),K_(q.statement,Fe?se:we,e))}function Ue(q){if(_u(q.initializer)&&!(q.initializer.flags&7)){const Fe=Tn(void 0,q.initializer,!0);if(Pe(Fe)){const Ot=tt(q.initializer,fe,Zp),I=tt(q.expression,we,vt),me=K_(q.statement,se,e),H=na(me)?r.updateBlock(me,[...Fe,...me.statements]):r.createBlock([...Fe,me],!0);return r.updateForInStatement(q,Ot,I,H)}}return r.updateForInStatement(q,tt(q.initializer,fe,Zp),tt(q.expression,we,vt),K_(q.statement,se,e))}function Se(q){if(_u(q.initializer)&&!(q.initializer.flags&7)){const Fe=Tn(void 0,q.initializer,!0),Ot=tt(q.initializer,fe,Zp),I=tt(q.expression,we,vt);let me=K_(q.statement,se,e);return Pe(Fe)&&(me=na(me)?r.updateBlock(me,[...Fe,...me.statements]):r.createBlock([...Fe,me],!0)),r.updateForOfStatement(q,q.awaitModifier,Ot,I,me)}return r.updateForOfStatement(q,q.awaitModifier,tt(q.initializer,fe,Zp),tt(q.expression,we,vt),K_(q.statement,se,e))}function Ee(q){return r.updateDoStatement(q,K_(q.statement,se,e),tt(q.expression,we,vt))}function Ae(q){return r.updateWhileStatement(q,tt(q.expression,we,vt),K_(q.statement,se,e))}function Le(q){return r.updateLabeledStatement(q,q.label,w.checkDefined(tt(q.statement,se,Xi,r.liftToBlock)))}function Tt(q){return r.updateWithStatement(q,tt(q.expression,we,vt),w.checkDefined(tt(q.statement,se,Xi,r.liftToBlock)))}function xe(q){return r.updateIfStatement(q,tt(q.expression,we,vt),w.checkDefined(tt(q.thenStatement,se,Xi,r.liftToBlock)),tt(q.elseStatement,se,Xi,r.liftToBlock))}function ze(q){return r.updateSwitchStatement(q,tt(q.expression,we,vt),w.checkDefined(tt(q.caseBlock,se,Cw)))}function st(q){return r.updateCaseBlock(q,Wn(q.clauses,se,wF))}function zt(q){return r.updateCaseClause(q,tt(q.expression,we,vt),Wn(q.statements,se,Xi))}function yt(q){return En(q,se,e)}function $e(q){return En(q,se,e)}function kt(q){return r.updateCatchClause(q,q.variableDeclaration,w.checkDefined(tt(q.block,se,na)))}function nn(q){return q=En(q,se,e),q}function sn(q){return r.updateExpressionStatement(q,tt(q.expression,fe,vt))}function In(q,Fe){return r.updateParenthesizedExpression(q,tt(q.expression,Fe?fe:we,vt))}function Zn(q,Fe){return r.updatePartiallyEmittedExpression(q,tt(q.expression,Fe?fe:we,vt))}function hn(q,Fe){if((q.operator===46||q.operator===47)&&Je(q.operand)&&!vc(q.operand)&&!T0(q.operand)&&!Sq(q.operand)){const Ot=mn(q.operand);if(Ot){let I,me=tt(q.operand,we,vt);O1(q)?me=r.updatePrefixUnaryExpression(q,me):(me=r.updatePostfixUnaryExpression(q,me),Fe||(I=r.createTempVariable(c),me=r.createAssignment(I,me),ut(me,q)),me=r.createComma(me,r.cloneNode(q.operand)),ut(me,q));for(const H of Ot)M[ho(me)]=!0,me=Me(H,me),ut(me,q);return I&&(M[ho(me)]=!0,me=r.createComma(me,I),ut(me,q)),me}}return En(q,we,e)}function Zt(q){if(y===0&&d>=7)return En(q,we,e);const Fe=nC(r,q,N,g,f,u),Ot=tt(hu(q.arguments),we,vt),I=Fe&&(!Ot||!Ba(Ot)||Ot.text!==Fe.text)?Fe:Ot,me=!!(q.transformFlags&16384);switch(u.module){case 2:return yi(I,me);case 3:return Yt(I??r.createVoidZero(),me);case 1:default:return us(I)}}function Yt(q,Fe){if(V=!0,Hb(q)){const Ot=vc(q)?q:Ba(q)?r.createStringLiteralFromNode(q):pr(ut(r.cloneNode(q),q),3072);return r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,us(q),void 0,yi(Ot,Fe))}else{const Ot=r.createTempVariable(c);return r.createComma(r.createAssignment(Ot,q),r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,us(Ot,!0),void 0,yi(Ot,Fe)))}}function yi(q,Fe){const Ot=r.createUniqueName("resolve"),I=r.createUniqueName("reject"),me=[r.createParameterDeclaration(void 0,void 0,Ot),r.createParameterDeclaration(void 0,void 0,I)],H=r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("require"),void 0,[r.createArrayLiteralExpression([q||r.createOmittedExpression()]),Ot,I]))]);let de;d>=2?de=r.createArrowFunction(void 0,void 0,me,void 0,void 0,H):(de=r.createFunctionExpression(void 0,void 0,void 0,void 0,me,void 0,H),Fe&&pr(de,16));const Be=r.createNewExpression(r.createIdentifier("Promise"),void 0,[de]);return $g(u)?r.createCallExpression(r.createPropertyAccessExpression(Be,r.createIdentifier("then")),void 0,[i().createImportStarCallbackHelper()]):Be}function us(q,Fe){const Ot=q&&!nh(q)&&!Fe,I=r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Promise"),"resolve"),void 0,Ot?d>=2?[r.createTemplateExpression(r.createTemplateHead(""),[r.createTemplateSpan(q,r.createTemplateTail(""))])]:[r.createCallExpression(r.createPropertyAccessExpression(r.createStringLiteral(""),"concat"),void 0,[q])]:[]);let me=r.createCallExpression(r.createIdentifier("require"),void 0,Ot?[r.createIdentifier("s")]:q?[q]:[]);$g(u)&&(me=i().createImportStarHelper(me));const H=Ot?[r.createParameterDeclaration(void 0,void 0,"s")]:[];let de;return d>=2?de=r.createArrowFunction(void 0,void 0,H,void 0,void 0,me):de=r.createFunctionExpression(void 0,void 0,void 0,void 0,H,void 0,r.createBlock([r.createReturnStatement(me)])),r.createCallExpression(r.createPropertyAccessExpression(I,"then"),void 0,[de])}function zi(q,Fe){return!$g(u)||Kd(q)&2?Fe:yle(q)?i().createImportStarHelper(Fe):Fe}function Os(q,Fe){return!$g(u)||Kd(q)&2?Fe:ZM(q)?i().createImportStarHelper(Fe):ZG(q)?i().createImportDefaultHelper(Fe):Fe}function On(q){let Fe;const Ot=o4(q);if(y!==2)if(q.importClause){const I=[];Ot&&!bk(q)?I.push(r.createVariableDeclaration(r.cloneNode(Ot.name),void 0,void 0,Os(q,Fi(q)))):(I.push(r.createVariableDeclaration(r.getGeneratedNameForNode(q),void 0,void 0,Os(q,Fi(q)))),Ot&&bk(q)&&I.push(r.createVariableDeclaration(r.cloneNode(Ot.name),void 0,void 0,r.getGeneratedNameForNode(q)))),Fe=gn(Fe,Ir(ut(r.createVariableStatement(void 0,r.createVariableDeclarationList(I,d>=2?2:0)),q),q))}else return Ir(ut(r.createExpressionStatement(Fi(q)),q),q);else Ot&&bk(q)&&(Fe=gn(Fe,r.createVariableStatement(void 0,r.createVariableDeclarationList([Ir(ut(r.createVariableDeclaration(r.cloneNode(Ot.name),void 0,void 0,r.getGeneratedNameForNode(q)),q),q)],d>=2?2:0))));return Fe=Ds(Fe,q),Rg(Fe)}function Fi(q){const Fe=nC(r,q,N,g,f,u),Ot=[];return Fe&&Ot.push(Fe),r.createCallExpression(r.createIdentifier("require"),void 0,Ot)}function Er(q){w.assert(Qv(q),"import= for internal module references should be handled in an earlier transformer.");let Fe;return y!==2?Kr(q,32)?Fe=gn(Fe,Ir(ut(r.createExpressionStatement(Me(q.name,Fi(q))),q),q)):Fe=gn(Fe,Ir(ut(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(r.cloneNode(q.name),void 0,void 0,Fi(q))],d>=2?2:0)),q),q)):Kr(q,32)&&(Fe=gn(Fe,Ir(ut(r.createExpressionStatement(Me(r.getExportName(q),r.getLocalName(q))),q),q))),Fe=Sa(Fe,q),Rg(Fe)}function cn(q){if(!q.moduleSpecifier)return;const Fe=r.getGeneratedNameForNode(q);if(q.exportClause&&sd(q.exportClause)){const Ot=[];y!==2&&Ot.push(Ir(ut(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(Fe,void 0,void 0,Fi(q))])),q),q));for(const I of q.exportClause.elements)if(d===0)Ot.push(Ir(ut(r.createExpressionStatement(i().createCreateBindingHelper(Fe,r.createStringLiteralFromNode(I.propertyName||I.name),I.propertyName?r.createStringLiteralFromNode(I.name):void 0)),I),I));else{const me=!!$g(u)&&!(Kd(q)&2)&&kr(I.propertyName||I.name)==="default",H=r.createPropertyAccessExpression(me?i().createImportDefaultHelper(Fe):Fe,I.propertyName||I.name);Ot.push(Ir(ut(r.createExpressionStatement(Me(r.getExportName(I),H,void 0,!0)),I),I))}return Rg(Ot)}else if(q.exportClause){const Ot=[];return Ot.push(Ir(ut(r.createExpressionStatement(Me(r.cloneNode(q.exportClause.name),zi(q,y!==2?Fi(q):BF(q)?Fe:r.createIdentifier(kr(q.exportClause.name))))),q),q)),Rg(Ot)}else return Ir(ut(r.createExpressionStatement(i().createExportStarHelper(y!==2?Fi(q):Fe)),q),q)}function et(q){if(!q.isExportEquals)return le(r.createIdentifier("default"),tt(q.expression,we,vt),q,!0)}function Jt(q){let Fe;return Kr(q,32)?Fe=gn(Fe,Ir(ut(r.createFunctionDeclaration(Wn(q.modifiers,_t,Fa),q.asteriskToken,r.getDeclarationName(q,!0,!0),void 0,Wn(q.parameters,we,ws),void 0,En(q.body,we,e)),q),q)):Fe=gn(Fe,En(q,we,e)),Fe=Ve(Fe,q),Rg(Fe)}function wn(q){let Fe;return Kr(q,32)?Fe=gn(Fe,Ir(ut(r.createClassDeclaration(Wn(q.modifiers,_t,bc),r.getDeclarationName(q,!0,!0),void 0,Wn(q.heritageClauses,we,Fp),Wn(q.members,we,vu)),q),q)):Fe=gn(Fe,En(q,we,e)),Fe=Ve(Fe,q),Rg(Fe)}function ui(q){let Fe,Ot,I;if(Kr(q,32)){let me,H=!1;for(const de of q.declarationList.declarations)if(Je(de.name)&&T0(de.name))if(me||(me=Wn(q.modifiers,_t,Fa)),de.initializer){const Be=r.updateVariableDeclaration(de,de.name,void 0,void 0,Me(de.name,tt(de.initializer,we,vt)));Ot=gn(Ot,Be)}else Ot=gn(Ot,de);else if(de.initializer)if(!ca(de.name)&&(ec(de.initializer)||Xo(de.initializer)||Su(de.initializer))){const Be=r.createAssignment(ut(r.createPropertyAccessExpression(r.createIdentifier("exports"),de.name),de.name),r.createIdentifier(Ad(de.name))),Ie=r.createVariableDeclaration(de.name,de.exclamationToken,de.type,tt(de.initializer,we,vt));Ot=gn(Ot,Ie),I=gn(I,Be),H=!0}else I=gn(I,ts(de));if(Ot&&(Fe=gn(Fe,r.updateVariableStatement(q,me,r.updateVariableDeclarationList(q.declarationList,Ot)))),I){const de=Ir(ut(r.createExpressionStatement(r.inlineExpressions(I)),q),q);H&&MN(de),Fe=gn(Fe,de)}}else Fe=gn(Fe,En(q,we,e));return Fe=Wa(Fe,q),Rg(Fe)}function vi(q,Fe,Ot){const I=mn(q);if(I){let me=lM(q)?Fe:r.createAssignment(q,Fe);for(const H of I)pr(me,8),me=Me(H,me,Ot);return me}return r.createAssignment(q,Fe)}function ts(q){return ca(q.name)?Fx(tt(q,we,gN),we,e,0,!1,vi):r.createAssignment(ut(r.createPropertyAccessExpression(r.createIdentifier("exports"),q.name),q.name),q.initializer?tt(q.initializer,we,vt):r.createVoidZero())}function Ds(q,Fe){if(D.exportEquals)return q;const Ot=Fe.importClause;if(!Ot)return q;const I=new cC;Ot.name&&(q=pt(q,I,Ot));const me=Ot.namedBindings;if(me)switch(me.kind){case 274:q=pt(q,I,me);break;case 275:for(const H of me.elements)q=pt(q,I,H,!0);break}return q}function Sa(q,Fe){return D.exportEquals?q:pt(q,new cC,Fe)}function Wa(q,Fe){return Tn(q,Fe.declarationList,!1)}function Tn(q,Fe,Ot){if(D.exportEquals)return q;for(const I of Fe.declarations)q=Ln(q,I,Ot);return q}function Ln(q,Fe,Ot){if(D.exportEquals)return q;if(ca(Fe.name))for(const I of Fe.name.elements)uu(I)||(q=Ln(q,I,Ot));else!vc(Fe.name)&&(!Ji(Fe)||Fe.initializer||Ot)&&(q=pt(q,new cC,Fe));return q}function Ve(q,Fe){if(D.exportEquals)return q;const Ot=new cC;if(Kr(Fe,32)){const I=Kr(Fe,2048)?r.createIdentifier("default"):r.getDeclarationName(Fe);q=ft(q,Ot,I,r.getLocalName(Fe),Fe)}return Fe.name&&(q=pt(q,Ot,Fe)),q}function pt(q,Fe,Ot,I){const me=r.getDeclarationName(Ot),H=D.exportSpecifiers.get(me);if(H)for(const de of H)q=ft(q,Fe,de.name,me,de.name,void 0,I);return q}function ft(q,Fe,Ot,I,me,H,de){return Fe.has(Ot)||(Fe.set(Ot,!0),q=gn(q,le(Ot,I,me,H,de))),q}function At(){let q;return d===0?q=r.createExpressionStatement(Me(r.createIdentifier("__esModule"),r.createTrue())):q=r.createExpressionStatement(r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[r.createIdentifier("exports"),r.createStringLiteral("__esModule"),r.createObjectLiteralExpression([r.createPropertyAssignment("value",r.createTrue())])])),pr(q,2097152),q}function le(q,Fe,Ot,I,me){const H=ut(r.createExpressionStatement(Me(q,Fe,void 0,me)),Ot);return y_(H),I||pr(H,3072),H}function Me(q,Fe,Ot,I){return ut(I&&d!==0?r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[r.createIdentifier("exports"),r.createStringLiteralFromNode(q),r.createObjectLiteralExpression([r.createPropertyAssignment("enumerable",r.createTrue()),r.createPropertyAssignment("get",r.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,r.createBlock([r.createReturnStatement(Fe)])))])]):r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(q)),Fe),Ot)}function _t(q){switch(q.kind){case 95:case 90:return}return q}function U(q,Fe,Ot){Fe.kind===312?(N=Fe,D=C[s_(N)],T(q,Fe,Ot),N=void 0,D=void 0):T(q,Fe,Ot)}function it(q,Fe){return Fe=x(q,Fe),Fe.id&&M[Fe.id]?Fe:q===1?Ge(Fe):Af(Fe)?Et(Fe):Fe}function Et(q){const Fe=q.name,Ot=vn(Fe);if(Ot!==Fe){if(q.objectAssignmentInitializer){const I=r.createAssignment(Ot,q.objectAssignmentInitializer);return ut(r.createPropertyAssignment(Fe,I),q)}return ut(r.createPropertyAssignment(Fe,Ot),q)}return q}function Ge(q){switch(q.kind){case 80:return vn(q);case 213:return mt(q);case 215:return Ut(q);case 226:return pn(q)}return q}function mt(q){if(Je(q.expression)){const Fe=vn(q.expression);if(M[ho(Fe)]=!0,!Je(Fe)&&!(Ya(q.expression)&8192))return Lk(r.updateCallExpression(q,Fe,void 0,q.arguments),16)}return q}function Ut(q){if(Je(q.tag)){const Fe=vn(q.tag);if(M[ho(Fe)]=!0,!Je(Fe)&&!(Ya(q.tag)&8192))return Lk(r.updateTaggedTemplateExpression(q,Fe,void 0,q.template),16)}return q}function vn(q){var Fe,Ot;if(Ya(q)&8192){const I=n7(N);return I?r.createPropertyAccessExpression(I,q):q}else if(!(vc(q)&&!(q.emitNode.autoGenerate.flags&64))&&!T0(q)){const I=f.getReferencedExportContainer(q,lM(q));if(I&&I.kind===312)return ut(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(q)),q);const me=f.getReferencedImportDeclaration(q);if(me){if(Yg(me))return ut(r.createPropertyAccessExpression(r.getGeneratedNameForNode(me.parent),r.createIdentifier("default")),q);if(Df(me)){const H=me.propertyName||me.name;return ut(r.createPropertyAccessExpression(r.getGeneratedNameForNode(((Ot=(Fe=me.parent)==null?void 0:Fe.parent)==null?void 0:Ot.parent)||me),r.cloneNode(H)),q)}}}return q}function pn(q){if(vy(q.operatorToken.kind)&&Je(q.left)&&(!vc(q.left)||dA(q.left))&&!T0(q.left)){const Fe=mn(q.left);if(Fe){let Ot=q;for(const I of Fe)M[ho(Ot)]=!0,Ot=Me(I,Ot,q);return Ot}}return q}function mn(q){if(vc(q)){if(dA(q)){const Fe=D==null?void 0:D.exportSpecifiers.get(q);if(Fe){const Ot=[];for(const I of Fe)Ot.push(I.name);return Ot}}}else{const Fe=f.getReferencedImportDeclaration(q);if(Fe)return D==null?void 0:D.exportedBindings[s_(Fe)];const Ot=new Set,I=f.getReferencedValueDeclarations(q);if(I){for(const me of I){const H=D==null?void 0:D.exportedBindings[s_(me)];if(H)for(const de of H)Ot.add(de)}if(Ot.size)return Vs(Ot)}}}}var QCe,Qqe=K({"src/compiler/transformers/module/module.ts"(){ua(),QCe={name:"typescript:dynamicimport-sync-require",scoped:!0,text:` + var __syncRequire = typeof module === "object" && typeof module.exports === "object";`}}});function Yle(e){const{factory:t,startLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:s}=e,o=e.getCompilerOptions(),c=e.getEmitResolver(),u=e.getEmitHost(),f=e.onSubstituteNode,g=e.onEmitNode;e.onSubstituteNode=Me,e.onEmitNode=le,e.enableSubstitution(80),e.enableSubstitution(304),e.enableSubstitution(226),e.enableSubstitution(236),e.enableEmitNotification(312);const d=[],y=[],x=[],T=[];let C,N,D,M,V,G,Z;return am(e,z);function z(q){if(q.isDeclarationFile||!(yk(q,o)||q.transformFlags&8388608))return q;const Fe=s_(q);C=q,G=q,N=d[Fe]=KG(e,q),D=t.createUniqueName("exports"),y[Fe]=D,M=T[Fe]=t.createUniqueName("context");const Ot=ce(N.externalImports),I=J(q,Ot),me=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,D),t.createParameterDeclaration(void 0,void 0,M)],void 0,I),H=r7(t,q,u,o),de=t.createArrayLiteralExpression(Kt(Ot,Ie=>Ie.name)),Be=pr(t.updateSourceFile(q,ut(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,H?[H,de,me]:[de,me]))]),q.statements)),2048);return Vo(o)||moe(Be,I,Ie=>!Ie.scoped),Z&&(x[Fe]=Z,Z=void 0),C=void 0,N=void 0,D=void 0,M=void 0,V=void 0,G=void 0,Be}function ce(q){const Fe=new Map,Ot=[];for(const I of q){const me=nC(t,I,C,u,c,o);if(me){const H=me.text,de=Fe.get(H);de!==void 0?Ot[de].externalImports.push(I):(Fe.set(H,Ot.length),Ot.push({name:me,externalImports:[I]}))}}return Ot}function J(q,Fe){const Ot=[];r();const I=R_(o,"alwaysStrict")||!o.noImplicitUseStrict&&Cl(C),me=t.copyPrologue(q.statements,Ot,I,Q);Ot.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(M,t.createPropertyAccessExpression(M,"id")))]))),tt(N.externalHelpersImportDeclaration,Q,Xi);const H=Wn(q.statements,Q,Xi,me);Mr(Ot,V),Nh(Ot,i());const de=ne(Ot),Be=q.transformFlags&2097152?t.createModifiersFromModifierFlags(1024):void 0,Ie=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",ve(de,Fe)),t.createPropertyAssignment("execute",t.createFunctionExpression(Be,void 0,void 0,void 0,[],void 0,t.createBlock(H,!0)))],!0);return Ot.push(t.createReturnStatement(Ie)),t.createBlock(Ot,!0)}function ne(q){if(!N.hasExportStarsToExportValues)return;if(!N.exportedNames&&N.exportSpecifiers.size===0){let me=!1;for(const H of N.externalImports)if(H.kind===278&&H.exportClause){me=!0;break}if(!me){const H=ge(void 0);return q.push(H),H.name}}const Fe=[];if(N.exportedNames)for(const me of N.exportedNames)me.escapedText!=="default"&&Fe.push(t.createPropertyAssignment(t.createStringLiteralFromNode(me),t.createTrue()));const Ot=t.createUniqueName("exportedNames");q.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Ot,void 0,void 0,t.createObjectLiteralExpression(Fe,!0))])));const I=ge(Ot);return q.push(I),I.name}function ge(q){const Fe=t.createUniqueName("exportStar"),Ot=t.createIdentifier("m"),I=t.createIdentifier("n"),me=t.createIdentifier("exports");let H=t.createStrictInequality(I,t.createStringLiteral("default"));return q&&(H=t.createLogicalAnd(H,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(q,"hasOwnProperty"),void 0,[I])))),t.createFunctionDeclaration(void 0,void 0,Fe,void 0,[t.createParameterDeclaration(void 0,void 0,Ot)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(me,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(I)]),Ot,t.createBlock([pr(t.createIfStatement(H,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(me,I),t.createElementAccessExpression(Ot,I)))),1)])),t.createExpressionStatement(t.createCallExpression(D,void 0,[me]))],!0))}function ve(q,Fe){const Ot=[];for(const I of Fe){const me=dt(I.externalImports,Be=>V4(t,Be,C)),H=me?t.getGeneratedNameForNode(me):t.createUniqueName(""),de=[];for(const Be of I.externalImports){const Ie=V4(t,Be,C);switch(Be.kind){case 272:if(!Be.importClause)break;case 271:w.assert(Ie!==void 0),de.push(t.createExpressionStatement(t.createAssignment(Ie,H))),Kr(Be,32)&&de.push(t.createExpressionStatement(t.createCallExpression(D,void 0,[t.createStringLiteral(kr(Ie)),H])));break;case 278:if(w.assert(Ie!==void 0),Be.exportClause)if(sd(Be.exportClause)){const xt=[];for(const Ft of Be.exportClause.elements)xt.push(t.createPropertyAssignment(t.createStringLiteral(kr(Ft.name)),t.createElementAccessExpression(H,t.createStringLiteral(kr(Ft.propertyName||Ft.name)))));de.push(t.createExpressionStatement(t.createCallExpression(D,void 0,[t.createObjectLiteralExpression(xt,!0)])))}else de.push(t.createExpressionStatement(t.createCallExpression(D,void 0,[t.createStringLiteral(kr(Be.exportClause.name)),H])));else de.push(t.createExpressionStatement(t.createCallExpression(q,void 0,[H])));break}}Ot.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,H)],void 0,t.createBlock(de,!0)))}return t.createArrayLiteralExpression(Ot,!0)}function Q(q){switch(q.kind){case 272:return X(q);case 271:return pe(q);case 278:return se(q);case 277:return we(q);default:return sn(q)}}function X(q){let Fe;return q.importClause&&s(V4(t,q,C)),Rg(Tt(Fe,q))}function se(q){w.assertIsDefined(q)}function pe(q){w.assert(Qv(q),"import= for internal module references should be handled in an earlier transformer.");let Fe;return s(V4(t,q,C)),Rg(xe(Fe,q))}function we(q){if(q.isExportEquals)return;const Fe=tt(q.expression,ts,vt);return kt(t.createIdentifier("default"),Fe,!0)}function fe(q){Kr(q,32)?V=gn(V,t.updateFunctionDeclaration(q,Wn(q.modifiers,At,bc),q.asteriskToken,t.getDeclarationName(q,!0,!0),void 0,Wn(q.parameters,ts,ws),void 0,tt(q.body,ts,na))):V=gn(V,En(q,ts,e)),V=zt(V,q)}function ie(q){let Fe;const Ot=t.getLocalName(q);return s(Ot),Fe=gn(Fe,ut(t.createExpressionStatement(t.createAssignment(Ot,ut(t.createClassExpression(Wn(q.modifiers,At,bc),q.name,void 0,Wn(q.heritageClauses,ts,Fp),Wn(q.members,ts,vu)),q))),q)),Fe=zt(Fe,q),Rg(Fe)}function ye(q){if(!Ue(q.declarationList))return tt(q,ts,Xi);let Fe;if(IA(q.declarationList)||NA(q.declarationList)){const Ot=Wn(q.modifiers,At,bc),I=[];for(const H of q.declarationList.declarations)I.push(t.updateVariableDeclaration(H,t.getGeneratedNameForNode(H.name),void 0,void 0,Se(H,!1)));const me=t.updateVariableDeclarationList(q.declarationList,I);Fe=gn(Fe,t.updateVariableStatement(q,Ot,me))}else{let Ot;const I=Kr(q,32);for(const me of q.declarationList.declarations)me.initializer?Ot=gn(Ot,Se(me,I)):Ne(me);Ot&&(Fe=gn(Fe,ut(t.createExpressionStatement(t.inlineExpressions(Ot)),q)))}return Fe=ze(Fe,q,!1),Rg(Fe)}function Ne(q){if(ca(q.name))for(const Fe of q.name.elements)uu(Fe)||Ne(Fe);else s(t.cloneNode(q.name))}function Ue(q){return(Ya(q)&4194304)===0&&(G.kind===312||(Gc(q).flags&7)===0)}function Se(q,Fe){const Ot=Fe?Ee:Ae;return ca(q.name)?Fx(q,ts,e,0,!1,Ot):q.initializer?Ot(q.name,tt(q.initializer,ts,vt)):q.name}function Ee(q,Fe,Ot){return Le(q,Fe,Ot,!0)}function Ae(q,Fe,Ot){return Le(q,Fe,Ot,!1)}function Le(q,Fe,Ot,I){return s(t.cloneNode(q)),I?nn(q,pn(ut(t.createAssignment(q,Fe),Ot))):pn(ut(t.createAssignment(q,Fe),Ot))}function Tt(q,Fe){if(N.exportEquals)return q;const Ot=Fe.importClause;if(!Ot)return q;Ot.name&&(q=yt(q,Ot));const I=Ot.namedBindings;if(I)switch(I.kind){case 274:q=yt(q,I);break;case 275:for(const me of I.elements)q=yt(q,me);break}return q}function xe(q,Fe){return N.exportEquals?q:yt(q,Fe)}function ze(q,Fe,Ot){if(N.exportEquals)return q;for(const I of Fe.declarationList.declarations)(I.initializer||Ot)&&(q=st(q,I));return q}function st(q,Fe,Ot){if(N.exportEquals)return q;if(ca(Fe.name))for(const I of Fe.name.elements)uu(I)||(q=st(q,I));else vc(Fe.name)||(q=yt(q,Fe,void 0));return q}function zt(q,Fe){if(N.exportEquals)return q;let Ot;if(Kr(Fe,32)){const I=Kr(Fe,2048)?t.createStringLiteral("default"):Fe.name;q=$e(q,I,t.getLocalName(Fe)),Ot=Ad(I)}return Fe.name&&(q=yt(q,Fe,Ot)),q}function yt(q,Fe,Ot){if(N.exportEquals)return q;const I=t.getDeclarationName(Fe),me=N.exportSpecifiers.get(I);if(me)for(const H of me)H.name.escapedText!==Ot&&(q=$e(q,H.name,I));return q}function $e(q,Fe,Ot,I){return q=gn(q,kt(Fe,Ot,I)),q}function kt(q,Fe,Ot){const I=t.createExpressionStatement(nn(q,Fe));return y_(I),Ot||pr(I,3072),I}function nn(q,Fe){const Ot=Je(q)?t.createStringLiteralFromNode(q):q;return pr(Fe,Ya(Fe)|3072),kl(t.createCallExpression(D,void 0,[Ot,Fe]),Fe)}function sn(q){switch(q.kind){case 243:return ye(q);case 262:return fe(q);case 263:return ie(q);case 248:return In(q,!0);case 249:return Zn(q);case 250:return hn(q);case 246:return yi(q);case 247:return us(q);case 256:return zi(q);case 254:return Os(q);case 245:return On(q);case 255:return Fi(q);case 269:return Er(q);case 296:return cn(q);case 297:return et(q);case 258:return Jt(q);case 299:return wn(q);case 241:return ui(q);default:return ts(q)}}function In(q,Fe){const Ot=G;return G=q,q=t.updateForStatement(q,tt(q.initializer,Fe?Yt:Ds,Zp),tt(q.condition,ts,vt),tt(q.incrementor,Ds,vt),K_(q.statement,Fe?sn:ts,e)),G=Ot,q}function Zn(q){const Fe=G;return G=q,q=t.updateForInStatement(q,Yt(q.initializer),tt(q.expression,ts,vt),K_(q.statement,sn,e)),G=Fe,q}function hn(q){const Fe=G;return G=q,q=t.updateForOfStatement(q,q.awaitModifier,Yt(q.initializer),tt(q.expression,ts,vt),K_(q.statement,sn,e)),G=Fe,q}function Zt(q){return _u(q)&&Ue(q)}function Yt(q){if(Zt(q)){let Fe;for(const Ot of q.declarations)Fe=gn(Fe,Se(Ot,!1)),Ot.initializer||Ne(Ot);return Fe?t.inlineExpressions(Fe):t.createOmittedExpression()}else return tt(q,Ds,Zp)}function yi(q){return t.updateDoStatement(q,K_(q.statement,sn,e),tt(q.expression,ts,vt))}function us(q){return t.updateWhileStatement(q,tt(q.expression,ts,vt),K_(q.statement,sn,e))}function zi(q){return t.updateLabeledStatement(q,q.label,w.checkDefined(tt(q.statement,sn,Xi,t.liftToBlock)))}function Os(q){return t.updateWithStatement(q,tt(q.expression,ts,vt),w.checkDefined(tt(q.statement,sn,Xi,t.liftToBlock)))}function On(q){return t.updateIfStatement(q,tt(q.expression,ts,vt),w.checkDefined(tt(q.thenStatement,sn,Xi,t.liftToBlock)),tt(q.elseStatement,sn,Xi,t.liftToBlock))}function Fi(q){return t.updateSwitchStatement(q,tt(q.expression,ts,vt),w.checkDefined(tt(q.caseBlock,sn,Cw)))}function Er(q){const Fe=G;return G=q,q=t.updateCaseBlock(q,Wn(q.clauses,sn,wF)),G=Fe,q}function cn(q){return t.updateCaseClause(q,tt(q.expression,ts,vt),Wn(q.statements,sn,Xi))}function et(q){return En(q,sn,e)}function Jt(q){return En(q,sn,e)}function wn(q){const Fe=G;return G=q,q=t.updateCatchClause(q,q.variableDeclaration,w.checkDefined(tt(q.block,sn,na))),G=Fe,q}function ui(q){const Fe=G;return G=q,q=En(q,sn,e),G=Fe,q}function vi(q,Fe){if(!(q.transformFlags&276828160))return q;switch(q.kind){case 248:return In(q,!1);case 244:return Sa(q);case 217:return Wa(q,Fe);case 360:return Tn(q,Fe);case 226:if(by(q))return Ve(q,Fe);break;case 213:if(gp(q))return Ln(q);break;case 224:case 225:return ft(q,Fe)}return En(q,ts,e)}function ts(q){return vi(q,!1)}function Ds(q){return vi(q,!0)}function Sa(q){return t.updateExpressionStatement(q,tt(q.expression,Ds,vt))}function Wa(q,Fe){return t.updateParenthesizedExpression(q,tt(q.expression,Fe?Ds:ts,vt))}function Tn(q,Fe){return t.updatePartiallyEmittedExpression(q,tt(q.expression,Fe?Ds:ts,vt))}function Ln(q){const Fe=nC(t,q,C,u,c,o),Ot=tt(hu(q.arguments),ts,vt),I=Fe&&(!Ot||!Ba(Ot)||Ot.text!==Fe.text)?Fe:Ot;return t.createCallExpression(t.createPropertyAccessExpression(M,t.createIdentifier("import")),void 0,I?[I]:[])}function Ve(q,Fe){return pt(q.left)?Fx(q,ts,e,0,!Fe):En(q,ts,e)}function pt(q){if(Kl(q,!0))return pt(q.left);if(Pm(q))return pt(q.expression);if(Va(q))return Pe(q.properties,pt);if(B_(q))return Pe(q.elements,pt);if(Af(q))return pt(q.name);if(Ml(q))return pt(q.initializer);if(Je(q)){const Fe=c.getReferencedExportContainer(q);return Fe!==void 0&&Fe.kind===312}else return!1}function ft(q,Fe){if((q.operator===46||q.operator===47)&&Je(q.operand)&&!vc(q.operand)&&!T0(q.operand)&&!Sq(q.operand)){const Ot=Ut(q.operand);if(Ot){let I,me=tt(q.operand,ts,vt);O1(q)?me=t.updatePrefixUnaryExpression(q,me):(me=t.updatePostfixUnaryExpression(q,me),Fe||(I=t.createTempVariable(s),me=t.createAssignment(I,me),ut(me,q)),me=t.createComma(me,t.cloneNode(q.operand)),ut(me,q));for(const H of Ot)me=nn(H,pn(me));return I&&(me=t.createComma(me,I),ut(me,q)),me}}return En(q,ts,e)}function At(q){switch(q.kind){case 95:case 90:return}return q}function le(q,Fe,Ot){if(Fe.kind===312){const I=s_(Fe);C=Fe,N=d[I],D=y[I],Z=x[I],M=T[I],Z&&delete x[I],g(q,Fe,Ot),C=void 0,N=void 0,D=void 0,M=void 0,Z=void 0}else g(q,Fe,Ot)}function Me(q,Fe){return Fe=f(q,Fe),mn(Fe)?Fe:q===1?it(Fe):q===4?_t(Fe):Fe}function _t(q){switch(q.kind){case 304:return U(q)}return q}function U(q){var Fe,Ot;const I=q.name;if(!vc(I)&&!T0(I)){const me=c.getReferencedImportDeclaration(I);if(me){if(Yg(me))return ut(t.createPropertyAssignment(t.cloneNode(I),t.createPropertyAccessExpression(t.getGeneratedNameForNode(me.parent),t.createIdentifier("default"))),q);if(Df(me))return ut(t.createPropertyAssignment(t.cloneNode(I),t.createPropertyAccessExpression(t.getGeneratedNameForNode(((Ot=(Fe=me.parent)==null?void 0:Fe.parent)==null?void 0:Ot.parent)||me),t.cloneNode(me.propertyName||me.name))),q)}}return q}function it(q){switch(q.kind){case 80:return Et(q);case 226:return Ge(q);case 236:return mt(q)}return q}function Et(q){var Fe,Ot;if(Ya(q)&8192){const I=n7(C);return I?t.createPropertyAccessExpression(I,q):q}if(!vc(q)&&!T0(q)){const I=c.getReferencedImportDeclaration(q);if(I){if(Yg(I))return ut(t.createPropertyAccessExpression(t.getGeneratedNameForNode(I.parent),t.createIdentifier("default")),q);if(Df(I))return ut(t.createPropertyAccessExpression(t.getGeneratedNameForNode(((Ot=(Fe=I.parent)==null?void 0:Fe.parent)==null?void 0:Ot.parent)||I),t.cloneNode(I.propertyName||I.name)),q)}}return q}function Ge(q){if(vy(q.operatorToken.kind)&&Je(q.left)&&(!vc(q.left)||dA(q.left))&&!T0(q.left)){const Fe=Ut(q.left);if(Fe){let Ot=q;for(const I of Fe)Ot=nn(I,pn(Ot));return Ot}}return q}function mt(q){return Z6(q)?t.createPropertyAccessExpression(M,t.createIdentifier("meta")):q}function Ut(q){let Fe;const Ot=vn(q);if(Ot){const I=c.getReferencedExportContainer(q,!1);I&&I.kind===312&&(Fe=gn(Fe,t.getDeclarationName(Ot))),Fe=Mr(Fe,N==null?void 0:N.exportedBindings[s_(Ot)])}else if(vc(q)&&dA(q)){const I=N==null?void 0:N.exportSpecifiers.get(q);if(I){const me=[];for(const H of I)me.push(H.name);return me}}return Fe}function vn(q){if(!vc(q)){const Fe=c.getReferencedImportDeclaration(q);if(Fe)return Fe;const Ot=c.getReferencedValueDeclaration(q);if(Ot&&(N!=null&&N.exportedBindings[s_(Ot)]))return Ot;const I=c.getReferencedValueDeclarations(q);if(I){for(const me of I)if(me!==Ot&&(N!=null&&N.exportedBindings[s_(me)]))return me}return Ot}}function pn(q){return Z===void 0&&(Z=[]),Z[ho(q)]=!0,q}function mn(q){return Z&&q.id&&Z[q.id]}}var Yqe=K({"src/compiler/transformers/module/system.ts"(){ua()}});function _$(e){const{factory:t,getEmitHelperFactory:r}=e,i=e.getEmitHost(),s=e.getEmitResolver(),o=e.getCompilerOptions(),c=go(o),u=e.onEmitNode,f=e.onSubstituteNode;e.onEmitNode=Z,e.onSubstituteNode=z,e.enableEmitNotification(312),e.enableSubstitution(80);let g,d,y;return am(e,x);function x(J){if(J.isDeclarationFile)return J;if(Cl(J)||Ld(o)){d=J,y=void 0;let ne=T(J);return d=void 0,y&&(ne=t.updateSourceFile(ne,ut(t.createNodeArray(pW(ne.statements.slice(),y)),ne.statements))),!Cl(J)||r_(o)===200||Pe(ne.statements,vA)?ne:t.updateSourceFile(ne,ut(t.createNodeArray([...ne.statements,KN(t)]),ne.statements))}return J}function T(J){const ne=WH(t,r(),J,o);if(ne){const ge=[],ve=t.copyPrologue(J.statements,ge);return gn(ge,ne),Mr(ge,Wn(J.statements,C,Xi,ve)),t.updateSourceFile(J,ut(t.createNodeArray(ge),J.statements))}else return En(J,C,e)}function C(J){switch(J.kind){case 271:return r_(o)>=100?D(J):void 0;case 277:return V(J);case 278:return G(J)}return J}function N(J){const ne=nC(t,J,w.checkDefined(d),i,s,o),ge=[];if(ne&&ge.push(ne),r_(o)===200)return t.createCallExpression(t.createIdentifier("require"),void 0,ge);if(!y){const Q=t.createUniqueName("_createRequire",48),X=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier("createRequire"),Q)])),t.createStringLiteral("module"),void 0),se=t.createUniqueName("__require",48),pe=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(se,void 0,void 0,t.createCallExpression(t.cloneNode(Q),void 0,[t.createPropertyAccessExpression(t.createMetaProperty(102,t.createIdentifier("meta")),t.createIdentifier("url"))]))],c>=2?2:0));y=[X,pe]}const ve=y[1].declarationList.declarations[0].name;return w.assertNode(ve,Je),t.createCallExpression(t.cloneNode(ve),void 0,ge)}function D(J){w.assert(Qv(J),"import= for internal module references should be handled in an earlier transformer.");let ne;return ne=gn(ne,Ir(ut(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(J.name),void 0,void 0,N(J))],c>=2?2:0)),J),J)),ne=M(ne,J),Rg(ne)}function M(J,ne){return Kr(ne,32)&&(J=gn(J,t.createExportDeclaration(void 0,ne.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,kr(ne.name))])))),J}function V(J){return J.isExportEquals?r_(o)===200?Ir(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),J.expression)),J):void 0:J}function G(J){if(o.module!==void 0&&o.module>5||!J.exportClause||!Zg(J.exportClause)||!J.moduleSpecifier)return J;const ne=J.exportClause.name,ge=t.getGeneratedNameForNode(ne),ve=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamespaceImport(ge)),J.moduleSpecifier,J.attributes);Ir(ve,J.exportClause);const Q=BF(J)?t.createExportDefault(ge):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,ge,ne)]));return Ir(Q,J),[ve,Q]}function Z(J,ne,ge){es(ne)?((Cl(ne)||Ld(o))&&o.importHelpers&&(g=new Map),u(J,ne,ge),g=void 0):u(J,ne,ge)}function z(J,ne){return ne=f(J,ne),g&&Je(ne)&&Ya(ne)&8192?ce(ne):ne}function ce(J){const ne=kr(J);let ge=g.get(ne);return ge||g.set(ne,ge=t.createUniqueName(ne,48)),ge}}var Zqe=K({"src/compiler/transformers/module/esnextAnd2015.ts"(){ua()}});function Zle(e){const t=e.onSubstituteNode,r=e.onEmitNode,i=_$(e),s=e.onSubstituteNode,o=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=r;const c=u$(e),u=e.onSubstituteNode,f=e.onEmitNode;e.onSubstituteNode=d,e.onEmitNode=y,e.enableSubstitution(312),e.enableEmitNotification(312);let g;return C;function d(D,M){return es(M)?(g=M,t(D,M)):g?g.impliedNodeFormat===99?s(D,M):u(D,M):t(D,M)}function y(D,M,V){return es(M)&&(g=M),g?g.impliedNodeFormat===99?o(D,M,V):f(D,M,V):r(D,M,V)}function x(D){return D.impliedNodeFormat===99?i:c}function T(D){if(D.isDeclarationFile)return D;g=D;const M=x(D)(D);return g=void 0,w.assert(es(M)),M}function C(D){return D.kind===312?T(D):N(D)}function N(D){return e.factory.createBundle(Kt(D.sourceFiles,T),D.prepends)}}var Kqe=K({"src/compiler/transformers/module/node.ts"(){ua()}});function aR(e){return Ji(e)||Zs(e)||Gf(e)||oo(e)||my(e)||g1(e)||qN(e)||Wk(e)||ul(e)||Xg(e)||Wl(e)||ws(e)||Ic(e)||Cy(e)||Tu(e)||im(e)||$c(e)||Ib(e)||Jr(e)||uc(e)||mr(e)||Dd(e)}function Kle(e){if(my(e)||g1(e))return t;return Xg(e)||ul(e)?i:Py(e);function t(o){const c=r(o);return c!==void 0?{diagnosticMessage:c,errorNode:e,typeName:e.name}:void 0}function r(o){return da(e)?o.errorModuleName?o.accessibility===2?p.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:p.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263?o.errorModuleName?o.accessibility===2?p.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:p.Public_property_0_of_exported_class_has_or_is_using_private_name_1:o.errorModuleName?p.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Property_0_of_exported_interface_has_or_is_using_private_name_1}function i(o){const c=s(o);return c!==void 0?{diagnosticMessage:c,errorNode:e,typeName:e.name}:void 0}function s(o){return da(e)?o.errorModuleName?o.accessibility===2?p.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:p.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263?o.errorModuleName?o.accessibility===2?p.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:p.Public_method_0_of_exported_class_has_or_is_using_private_name_1:o.errorModuleName?p.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Method_0_of_exported_interface_has_or_is_using_private_name_1}}function Py(e){if(Ji(e)||Zs(e)||Gf(e)||Jr(e)||uc(e)||mr(e)||oo(e)||$c(e))return r;return my(e)||g1(e)?i:qN(e)||Wk(e)||ul(e)||Xg(e)||Wl(e)||Ib(e)?s:ws(e)?Uf(e,e.parent)&&Kr(e.parent,2)?r:o:Ic(e)?u:Cy(e)?f:Tu(e)?g:im(e)||Dd(e)?d:w.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${w.formatSyntaxKind(e.kind)}`);function t(y){if(e.kind===260||e.kind===208)return y.errorModuleName?y.accessibility===2?p.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:p.Exported_variable_0_has_or_is_using_private_name_1;if(e.kind===172||e.kind===211||e.kind===212||e.kind===226||e.kind===171||e.kind===169&&Kr(e.parent,2))return da(e)?y.errorModuleName?y.accessibility===2?p.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:p.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263||e.kind===169?y.errorModuleName?y.accessibility===2?p.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:p.Public_property_0_of_exported_class_has_or_is_using_private_name_1:y.errorModuleName?p.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Property_0_of_exported_interface_has_or_is_using_private_name_1}function r(y){const x=t(y);return x!==void 0?{diagnosticMessage:x,errorNode:e,typeName:e.name}:void 0}function i(y){let x;return e.kind===178?da(e)?x=y.errorModuleName?p.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:x=y.errorModuleName?p.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:da(e)?x=y.errorModuleName?y.accessibility===2?p.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:x=y.errorModuleName?y.accessibility===2?p.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:x,errorNode:e.name,typeName:e.name}}function s(y){let x;switch(e.kind){case 180:x=y.errorModuleName?p.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 179:x=y.errorModuleName?p.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 181:x=y.errorModuleName?p.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 174:case 173:da(e)?x=y.errorModuleName?y.accessibility===2?p.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:p.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:e.parent.kind===263?x=y.errorModuleName?y.accessibility===2?p.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:p.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:x=y.errorModuleName?p.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 262:x=y.errorModuleName?y.accessibility===2?p.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:p.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return w.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:x,errorNode:e.name||e}}function o(y){const x=c(y);return x!==void 0?{diagnosticMessage:x,errorNode:e,typeName:e.name}:void 0}function c(y){switch(e.parent.kind){case 176:return y.errorModuleName?y.accessibility===2?p.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 180:case 185:return y.errorModuleName?p.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 179:return y.errorModuleName?p.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 181:return y.errorModuleName?p.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 174:case 173:return da(e.parent)?y.errorModuleName?y.accessibility===2?p.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===263?y.errorModuleName?y.accessibility===2?p.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:y.errorModuleName?p.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 262:case 184:return y.errorModuleName?y.accessibility===2?p.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 178:case 177:return y.errorModuleName?y.accessibility===2?p.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return w.fail(`Unknown parent for parameter: ${w.formatSyntaxKind(e.parent.kind)}`)}}function u(){let y;switch(e.parent.kind){case 263:y=p.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 264:y=p.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 200:y=p.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 185:case 180:y=p.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 179:y=p.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 174:case 173:da(e.parent)?y=p.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===263?y=p.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:y=p.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 184:case 262:y=p.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 195:y=p.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 265:y=p.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return w.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:y,errorNode:e,typeName:e.name}}function f(){let y;return ql(e.parent.parent)?y=Fp(e.parent)&&e.parent.token===119?p.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?p.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:p.extends_clause_of_exported_class_has_or_is_using_private_name_0:y=p.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:y,errorNode:e,typeName:Ms(e.parent.parent)}}function g(){return{diagnosticMessage:p.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}function d(y){return{diagnosticMessage:y.errorModuleName?p.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:p.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:Dd(e)?w.checkDefined(e.typeExpression):e.type,typeName:Dd(e)?Ms(e):e.name}}}var eHe=K({"src/compiler/transformers/declarations/diagnostics.ts"(){ua()}});function eue(e,t,r){const i=e.getCompilerOptions();return M7(t,e,L,i,r?[r]:vr(e.getSourceFiles(),LW),[f$],!1).diagnostics}function f$(e){const t=()=>w.fail("Diagnostic emitted without context");let r=t,i=!0,s=!1,o=!1,c=!1,u=!1,f,g,d,y,x,T;const{factory:C}=e,N=e.getEmitHost(),D={trackSymbol:fe,reportInaccessibleThisError:Se,reportInaccessibleUniqueSymbolError:Ne,reportCyclicStructureError:Ue,reportPrivateInBaseOfClassExpression:ie,reportLikelyUnsafeImportRequiredError:Ee,reportTruncationError:Ae,moduleResolverHost:N,trackReferencedAmbientModule:X,trackExternalModuleSymbolOfImportTypeNode:we,reportNonlocalAugmentation:Le,reportNonSerializableProperty:Tt};let M,V,G,Z,z,ce;const J=e.getEmitResolver(),ne=e.getCompilerOptions(),{noResolve:ge,stripInternal:ve}=ne;return ze;function Q(U){if(U){g=g||new Set;for(const it of U)g.add(it)}}function X(U,it){const Et=J.getTypeReferenceDirectivesForSymbol(it,-1);if(Xe(Et))return Q(Et);const Ge=qn(U);Z.set(s_(Ge),Ge)}function se(U){const it=s4(U),Et=it&&J.tryFindAmbientModule(it);if(Et!=null&&Et.declarations)for(const Ge of Et.declarations)n_(Ge)&&qn(Ge)!==G&&X(Ge,Et)}function pe(U){if(U.accessibility===0){if(U.aliasesToMakeVisible)if(!d)d=U.aliasesToMakeVisible;else for(const it of U.aliasesToMakeVisible)Jf(d,it)}else{const it=r(U);if(it)return it.typeName?e.addDiagnostic(Rr(U.errorNode||it.errorNode,it.diagnosticMessage,Ol(it.typeName),U.errorSymbolName,U.errorModuleName)):e.addDiagnostic(Rr(U.errorNode||it.errorNode,it.diagnosticMessage,U.errorSymbolName,U.errorModuleName)),!0}return!1}function we(U){s||(T||(T=[])).push(U)}function fe(U,it,Et){if(U.flags&262144)return!1;const Ge=pe(J.isSymbolAccessible(U,it,Et,!0));return Q(J.getTypeReferenceDirectivesForSymbol(U,Et)),Ge}function ie(U){(M||V)&&e.addDiagnostic(Rr(M||V,p.Property_0_of_exported_class_expression_may_not_be_private_or_protected,U))}function ye(){return M?Bo(M):V&&Ms(V)?Bo(Ms(V)):V&&Qc(V)?V.isExportEquals?"export=":"default":"(Missing)"}function Ne(){(M||V)&&e.addDiagnostic(Rr(M||V,p.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,ye(),"unique symbol"))}function Ue(){(M||V)&&e.addDiagnostic(Rr(M||V,p.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,ye()))}function Se(){(M||V)&&e.addDiagnostic(Rr(M||V,p.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,ye(),"this"))}function Ee(U){(M||V)&&e.addDiagnostic(Rr(M||V,p.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,ye(),U))}function Ae(){(M||V)&&e.addDiagnostic(Rr(M||V,p.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function Le(U,it,Et){var Ge;const mt=(Ge=it.declarations)==null?void 0:Ge.find(vn=>qn(vn)===U),Ut=vr(Et.declarations,vn=>qn(vn)!==U);if(mt&&Ut)for(const vn of Ut)e.addDiagnostic(Ua(Rr(vn,p.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),Rr(mt,p.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}function Tt(U){(M||V)&&e.addDiagnostic(Rr(M||V,p.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,U))}function xe(U,it){const Et=r;r=mt=>mt.errorNode&&aR(mt.errorNode)?Py(mt.errorNode)(mt):{diagnosticMessage:mt.errorModuleName?p.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:p.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:mt.errorNode||U};const Ge=J.getDeclarationStatementsForSourceFile(U,Lx,D,it);return r=Et,Ge}function ze(U){if(U.kind===312&&U.isDeclarationFile)return U;if(U.kind===313){s=!0,Z=new Map,z=new Map;let Fe=!1;const Ot=C.createBundle(Kt(U.sourceFiles,H=>{if(H.isDeclarationFile)return;if(Fe=Fe||H.hasNoDefaultLib,G=H,f=H,d=void 0,x=!1,y=new Map,r=t,c=!1,u=!1,st(H,Z),zt(H,z),mp(H)||wd(H)){o=!1,i=!1;const Be=L_(H)?C.createNodeArray(xe(H,!0)):Wn(H.statements,ui,Xi);return C.updateSourceFile(H,[C.createModuleDeclaration([C.createModifier(138)],C.createStringLiteral(y9(e.getEmitHost(),H)),C.createModuleBlock(ut(C.createNodeArray(et(Be)),H.statements)))],!0,[],[],!1,[])}i=!0;const de=L_(H)?C.createNodeArray(xe(H)):Wn(H.statements,ui,Xi);return C.updateSourceFile(H,et(de),!0,[],[],!1,[])}),Oi(U.prepends,H=>{if(H.kind===315){const de=cH(H,"dts",ve);return Fe=Fe||!!de.hasNoDefaultLib,st(de,Z),Q(Kt(de.typeReferenceDirectives,Be=>[Be.fileName,Be.resolutionMode])),zt(de,z),de}return H}));Ot.syntheticFileReferences=[],Ot.syntheticTypeReferences=pn(),Ot.syntheticLibReferences=vn(),Ot.hasNoDefaultLib=Fe;const I=oi(t_(Zw(U,N,!0).declarationFilePath)),me=q(Ot.syntheticFileReferences,I);return Z.forEach(me),Ot}i=!0,c=!1,u=!1,f=U,G=U,r=t,s=!1,o=!1,x=!1,d=void 0,y=new Map,g=void 0,Z=st(G,new Map),z=zt(G,new Map);const it=[],Et=oi(t_(Zw(U,N,!0).declarationFilePath)),Ge=q(it,Et);let mt;if(L_(G))mt=C.createNodeArray(xe(U)),Z.forEach(Ge),ce=vr(mt,nx);else{const Fe=Wn(U.statements,ui,Xi);mt=ut(C.createNodeArray(et(Fe)),U.statements),Z.forEach(Ge),ce=vr(mt,nx),Cl(U)&&(!o||c&&!u)&&(mt=ut(C.createNodeArray([...mt,KN(C)]),mt))}const Ut=C.updateSourceFile(U,mt,!0,it,pn(),U.hasNoDefaultLib,vn());return Ut.exportedModulesFromDeclarationEmit=T,Ut;function vn(){return Vs(z.keys(),Fe=>({fileName:Fe,pos:-1,end:-1}))}function pn(){return g?Oi(Vs(g.keys()),mn):[]}function mn([Fe,Ot]){if(ce){for(const I of ce)if(Tu(I)&&Kg(I.moduleReference)){const me=I.moduleReference.expression;if(vo(me)&&me.text===Fe)return}else if(eu(I)&&Ba(I.moduleSpecifier)&&I.moduleSpecifier.text===Fe)return}return{fileName:Fe,pos:-1,end:-1,...Ot?{resolutionMode:Ot}:void 0}}function q(Fe,Ot){return I=>{if(T!=null&&T.includes(I.symbol))return;let me;if(I.isDeclarationFile)me=I.fileName;else{if(s&&Ai(U.sourceFiles,I))return;const H=Zw(I,N,!0);me=H.declarationFilePath||H.jsFilePath||I.fileName}if(me){const H=JM(ne,G,Ss(Ot,N.getCurrentDirectory()),Ss(me,N.getCurrentDirectory()),N);if(!pp(H)){Q([[H,void 0]]);return}let de=uk(Ot,me,N.getCurrentDirectory(),N.getCanonicalFileName,!1);if(fs(de,"./")&&lk(de)&&(de=de.substring(2)),fs(de,"node_modules/")||p2(de))return;Fe.push({pos:-1,end:-1,fileName:de})}}}}function st(U,it){return ge||!Px(U)&&L_(U)||dt(U.referencedFiles,Et=>{const Ge=N.getSourceFileFromReference(U,Et);Ge&&it.set(s_(Ge),Ge)}),it}function zt(U,it){return dt(U.libReferenceDirectives,Et=>{N.getLibFileFromReference(Et)&&it.set(jg(Et.fileName),!0)}),it}function yt(U){if(U.kind===80)return U;return U.kind===207?C.updateArrayBindingPattern(U,Wn(U.elements,it,kF)):C.updateObjectBindingPattern(U,Wn(U.elements,it,oo));function it(Et){return Et.kind===232?Et:(Et.propertyName&&co(Et.propertyName)&&il(Et.propertyName.expression)&&zi(Et.propertyName.expression,f),C.updateBindingElement(Et,Et.dotDotDotToken,Et.propertyName,yt(Et.name),kt(Et)?Et.initializer:void 0))}}function $e(U,it,Et){let Ge;x||(Ge=r,r=Py(U));const mt=C.updateParameterDeclaration(U,nHe(C,U,it),U.dotDotDotToken,yt(U.name),J.isOptionalParameter(U)?U.questionToken||C.createToken(58):void 0,sn(U,Et||U.type,!0),nn(U));return x||(r=Ge),mt}function kt(U){return rHe(U)&&J.isLiteralConstDeclaration(Is(U))}function nn(U){if(kt(U))return J.createLiteralConstValue(Is(U),D)}function sn(U,it,Et){if(!Et&&qf(U,2)||kt(U))return;const Ge=U.kind===169&&(J.isRequiredInitializedParameter(U)||J.isOptionalUninitializedParameterProperty(U));if(it&&!Ge)return tt(it,Jt,Gi);if(!Is(U))return it?tt(it,Jt,Gi):C.createKeywordTypeNode(133);if(U.kind===178)return C.createKeywordTypeNode(133);M=U.name;let mt;if(x||(mt=r,r=Py(U)),U.kind===260||U.kind===208)return Ut(J.createTypeOfDeclaration(U,f,Lx,D));if(U.kind===169||U.kind===172||U.kind===171)return Gf(U)||!U.initializer?Ut(J.createTypeOfDeclaration(U,f,Lx,D,Ge)):Ut(J.createTypeOfDeclaration(U,f,Lx,D,Ge)||J.createTypeOfExpression(U.initializer,f,Lx,D));return Ut(J.createReturnTypeOfSignatureDeclaration(U,f,Lx,D));function Ut(vn){return M=void 0,x||(r=mt),vn||C.createKeywordTypeNode(133)}}function In(U){switch(U=Is(U),U.kind){case 262:case 267:case 264:case 263:case 265:case 266:return!J.isDeclarationVisible(U);case 260:return!hn(U);case 271:case 272:case 278:case 277:return!1;case 175:return!0}return!1}function Zn(U){var it;if(U.body)return!0;const Et=(it=U.symbol.declarations)==null?void 0:it.filter(Ge=>Wl(Ge)&&!Ge.body);return!Et||Et.indexOf(U)===Et.length-1}function hn(U){return uu(U)?!1:ca(U.name)?Pe(U.name.elements,hn):J.isDeclarationVisible(U)}function Zt(U,it,Et){if(qf(U,2))return C.createNodeArray();const Ge=Kt(it,mt=>$e(mt,Et));return Ge?C.createNodeArray(Ge,it.hasTrailingComma):C.createNodeArray()}function Yt(U,it){let Et;if(!it){const Ge=Tb(U);Ge&&(Et=[$e(Ge)])}if($f(U)){let Ge;if(!it){const mt=zP(U);if(mt){const Ut=Me(U,J.getAllAccessorDeclarations(U));Ge=$e(mt,void 0,Ut)}}Ge||(Ge=C.createParameterDeclaration(void 0,void 0,"value")),Et=gn(Et,Ge)}return C.createNodeArray(Et||Ke)}function yi(U,it){return qf(U,2)?void 0:Wn(it,Jt,Ic)}function us(U){return es(U)||im(U)||dl(U)||ql(U)||J_(U)||oa(U)||Ib(U)||F4(U)}function zi(U,it){const Et=J.isEntityNameVisible(U,it);pe(Et),Q(J.getTypeReferenceDirectivesForEntityName(U))}function Os(U,it){return dp(U)&&dp(it)&&(U.jsDoc=it.jsDoc),kl(U,cg(it))}function On(U,it){if(it){if(o=o||U.kind!==267&&U.kind!==205,vo(it))if(s){const Et=qse(e.getEmitHost(),J,U);if(Et)return C.createStringLiteral(Et)}else{const Et=J.getSymbolOfExternalModuleSpecifier(it);Et&&(T||(T=[])).push(Et)}return it}}function Fi(U){if(J.isDeclarationVisible(U))if(U.moduleReference.kind===283){const it=DP(U);return C.updateImportEqualsDeclaration(U,U.modifiers,U.isTypeOnly,U.name,C.updateExternalModuleReference(U.moduleReference,On(U,it)))}else{const it=r;return r=Py(U),zi(U.moduleReference,f),r=it,U}}function Er(U){if(!U.importClause)return C.updateImportDeclaration(U,U.modifiers,U.importClause,On(U,U.moduleSpecifier),cn(U.attributes));const it=U.importClause&&U.importClause.name&&J.isDeclarationVisible(U.importClause)?U.importClause.name:void 0;if(!U.importClause.namedBindings)return it&&C.updateImportDeclaration(U,U.modifiers,C.updateImportClause(U.importClause,U.importClause.isTypeOnly,it,void 0),On(U,U.moduleSpecifier),cn(U.attributes));if(U.importClause.namedBindings.kind===274){const Ge=J.isDeclarationVisible(U.importClause.namedBindings)?U.importClause.namedBindings:void 0;return it||Ge?C.updateImportDeclaration(U,U.modifiers,C.updateImportClause(U.importClause,U.importClause.isTypeOnly,it,Ge),On(U,U.moduleSpecifier),cn(U.attributes)):void 0}const Et=Oi(U.importClause.namedBindings.elements,Ge=>J.isDeclarationVisible(Ge)?Ge:void 0);if(Et&&Et.length||it)return C.updateImportDeclaration(U,U.modifiers,C.updateImportClause(U.importClause,U.importClause.isTypeOnly,it,Et&&Et.length?C.updateNamedImports(U.importClause.namedBindings,Et):void 0),On(U,U.moduleSpecifier),cn(U.attributes));if(J.isImportRequiredByAugmentation(U))return C.updateImportDeclaration(U,U.modifiers,void 0,On(U,U.moduleSpecifier),cn(U.attributes))}function cn(U){const it=r3(U);return U&&it!==void 0?U:void 0}function et(U){for(;Xe(d);){const Et=d.shift();if(!zF(Et))return w.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${w.formatSyntaxKind(Et.kind)}`);const Ge=i;i=Et.parent&&es(Et.parent)&&!(Cl(Et.parent)&&s);const mt=Ds(Et);i=Ge,y.set(s_(Et),mt)}return Wn(U,it,Xi);function it(Et){if(zF(Et)){const Ge=s_(Et);if(y.has(Ge)){const mt=y.get(Ge);return y.delete(Ge),mt&&((Ps(mt)?Pe(mt,CF):CF(mt))&&(c=!0),es(Et.parent)&&(Ps(mt)?Pe(mt,vA):vA(mt))&&(o=!0)),mt}}return Et}}function Jt(U){if(Ve(U)||g_(U)&&(In(U)||S1(U)&&!J.isLateBound(Is(U)))||oa(U)&&J.isImplementationOfOverload(U)||Foe(U))return;let it;us(U)&&(it=f,f=U);const Et=r,Ge=aR(U),mt=x;let Ut=(U.kind===187||U.kind===200)&&U.parent.kind!==265;if((ul(U)||Xg(U))&&qf(U,2))return U.symbol&&U.symbol.declarations&&U.symbol.declarations[0]!==U?void 0:vn(C.createPropertyDeclaration(At(U),U.name,void 0,void 0,void 0));if(Ge&&!x&&(r=Py(U)),qk(U)&&zi(U.exprName,f),Ut&&(x=!0),sHe(U))switch(U.kind){case 233:{(Ef(U.expression)||il(U.expression))&&zi(U.expression,f);const pn=En(U,Jt,e);return vn(C.updateExpressionWithTypeArguments(pn,pn.expression,pn.typeArguments))}case 183:{zi(U.typeName,f);const pn=En(U,Jt,e);return vn(C.updateTypeReferenceNode(pn,pn.typeName,pn.typeArguments))}case 180:return vn(C.updateConstructSignature(U,yi(U,U.typeParameters),Zt(U,U.parameters),sn(U,U.type)));case 176:{const pn=C.createConstructorDeclaration(At(U),Zt(U,U.parameters,0),void 0);return vn(pn)}case 174:{if(Qi(U.name))return vn(void 0);const pn=C.createMethodDeclaration(At(U),void 0,U.name,U.questionToken,yi(U,U.typeParameters),Zt(U,U.parameters),sn(U,U.type),void 0);return vn(pn)}case 177:{if(Qi(U.name))return vn(void 0);const pn=Me(U,J.getAllAccessorDeclarations(U));return vn(C.updateGetAccessorDeclaration(U,At(U),U.name,Yt(U,qf(U,2)),sn(U,pn),void 0))}case 178:return Qi(U.name)?vn(void 0):vn(C.updateSetAccessorDeclaration(U,At(U),U.name,Yt(U,qf(U,2)),void 0));case 172:return Qi(U.name)?vn(void 0):vn(C.updatePropertyDeclaration(U,At(U),U.name,U.questionToken,sn(U,U.type),nn(U)));case 171:return Qi(U.name)?vn(void 0):vn(C.updatePropertySignature(U,At(U),U.name,U.questionToken,sn(U,U.type)));case 173:return Qi(U.name)?vn(void 0):vn(C.updateMethodSignature(U,At(U),U.name,U.questionToken,yi(U,U.typeParameters),Zt(U,U.parameters),sn(U,U.type)));case 179:return vn(C.updateCallSignature(U,yi(U,U.typeParameters),Zt(U,U.parameters),sn(U,U.type)));case 181:return vn(C.updateIndexSignature(U,At(U),Zt(U,U.parameters),tt(U.type,Jt,Gi)||C.createKeywordTypeNode(133)));case 260:return ca(U.name)?Wa(U.name):(Ut=!0,x=!0,vn(C.updateVariableDeclaration(U,U.name,void 0,sn(U,U.type),nn(U))));case 168:return wn(U)&&(U.default||U.constraint)?vn(C.updateTypeParameterDeclaration(U,U.modifiers,U.name,void 0,void 0)):vn(En(U,Jt,e));case 194:{const pn=tt(U.checkType,Jt,Gi),mn=tt(U.extendsType,Jt,Gi),q=f;f=U.trueType;const Fe=tt(U.trueType,Jt,Gi);f=q;const Ot=tt(U.falseType,Jt,Gi);return w.assert(pn),w.assert(mn),w.assert(Fe),w.assert(Ot),vn(C.updateConditionalTypeNode(U,pn,mn,Fe,Ot))}case 184:return vn(C.updateFunctionTypeNode(U,Wn(U.typeParameters,Jt,Ic),Zt(U,U.parameters),w.checkDefined(tt(U.type,Jt,Gi))));case 185:return vn(C.updateConstructorTypeNode(U,At(U),Wn(U.typeParameters,Jt,Ic),Zt(U,U.parameters),w.checkDefined(tt(U.type,Jt,Gi))));case 205:return b1(U)?(se(U),vn(C.updateImportTypeNode(U,C.updateLiteralTypeNode(U.argument,On(U,U.argument.literal)),U.attributes,U.qualifier,Wn(U.typeArguments,Jt,Gi),U.isTypeOf))):vn(U);default:w.assertNever(U,`Attempted to process unhandled node kind: ${w.formatSyntaxKind(U.kind)}`)}return Hk(U)&&Ao(G,U.pos).line===Ao(G,U.end).line&&pr(U,1),vn(En(U,Jt,e));function vn(pn){return pn&&Ge&&S1(U)&&Ln(U),us(U)&&(f=it),Ge&&!x&&(r=Et),Ut&&(x=mt),pn===U?pn:pn&&Ir(Os(pn,U),U)}}function wn(U){return U.parent.kind===174&&qf(U.parent,2)}function ui(U){if(!iHe(U)||Ve(U))return;switch(U.kind){case 278:return es(U.parent)&&(o=!0),u=!0,se(U),C.updateExportDeclaration(U,U.modifiers,U.isTypeOnly,U.exportClause,On(U,U.moduleSpecifier),cn(U.attributes));case 277:{if(es(U.parent)&&(o=!0),u=!0,U.expression.kind===80)return U;{const Et=C.createUniqueName("_default",16);r=()=>({diagnosticMessage:p.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:U}),V=U;const Ge=C.createVariableDeclaration(Et,void 0,J.createTypeOfExpression(U.expression,U,Lx,D),void 0);V=void 0;const mt=C.createVariableStatement(i?[C.createModifier(138)]:[],C.createVariableDeclarationList([Ge],2));return Os(mt,U),MN(U),[mt,C.updateExportAssignment(U,U.modifiers,Et)]}}}const it=Ds(U);return y.set(s_(U),it),U}function vi(U){if(Tu(U)||qf(U,2048)||!sm(U))return U;const it=C.createModifiersFromModifierFlags(M_(U)&131039);return C.replaceModifiers(U,it)}function ts(U,it,Et,Ge){const mt=C.updateModuleDeclaration(U,it,Et,Ge);if(n_(mt)||mt.flags&32)return mt;const Ut=C.createModuleDeclaration(mt.modifiers,mt.name,mt.body,mt.flags|32);return Ir(Ut,mt),ut(Ut,mt),Ut}function Ds(U){if(d)for(;w6(d,U););if(Ve(U))return;switch(U.kind){case 271:{const vn=Fi(U);return vn&&se(U),vn}case 272:{const vn=Er(U);return vn&&se(U),vn}}if(g_(U)&&In(U)||oa(U)&&J.isImplementationOfOverload(U))return;let it;us(U)&&(it=f,f=U);const Et=aR(U),Ge=r;Et&&(r=Py(U));const mt=i;switch(U.kind){case 265:{i=!1;const vn=Ut(C.updateTypeAliasDeclaration(U,At(U),U.name,Wn(U.typeParameters,Jt,Ic),w.checkDefined(tt(U.type,Jt,Gi))));return i=mt,vn}case 264:return Ut(C.updateInterfaceDeclaration(U,At(U),U.name,yi(U,U.typeParameters),_t(U.heritageClauses),Wn(U.members,Jt,ZS)));case 262:{const vn=Ut(C.updateFunctionDeclaration(U,At(U),void 0,U.name,yi(U,U.typeParameters),Zt(U,U.parameters),sn(U,U.type),void 0));if(vn&&J.isExpandoFunctionDeclaration(U)&&Zn(U)){const pn=J.getPropertiesOfContainerFunction(U),mn=eh.createModuleDeclaration(void 0,vn.name||C.createIdentifier("_default"),C.createModuleBlock([]),32);eo(mn,f),mn.locals=ha(pn),mn.symbol=pn[0].parent;const q=[];let Fe=Oi(pn,Be=>{if(!rL(Be.valueDeclaration))return;const Ie=Hi(Be.escapedName);if(!Np(Ie,99))return;r=Py(Be.valueDeclaration);const xt=J.createTypeOfDeclaration(Be.valueDeclaration,mn,Lx,D);r=Ge;const Ft=kk(Ie),tn=Ft?C.getGeneratedNameForNode(Be.valueDeclaration):C.createIdentifier(Ie);Ft&&q.push([tn,Ie]);const Sn=C.createVariableDeclaration(tn,void 0,xt,void 0);return C.createVariableStatement(Ft?void 0:[C.createToken(95)],C.createVariableDeclarationList([Sn]))});q.length?Fe.push(C.createExportDeclaration(void 0,!1,C.createNamedExports(Kt(q,([Be,Ie])=>C.createExportSpecifier(!1,Be,Ie))))):Fe=Oi(Fe,Be=>C.replaceModifiers(Be,0));const Ot=C.createModuleDeclaration(At(U),U.name,C.createModuleBlock(Fe),32);if(!qf(vn,2048))return[vn,Ot];const I=C.createModifiersFromModifierFlags(M_(vn)&-2081|128),me=C.updateFunctionDeclaration(vn,I,void 0,vn.name,vn.typeParameters,vn.parameters,vn.type,void 0),H=C.updateModuleDeclaration(Ot,I,Ot.name,Ot.body),de=C.createExportAssignment(void 0,!1,Ot.name);return es(U.parent)&&(o=!0),u=!0,[me,H,de]}else return vn}case 267:{i=!1;const vn=U.body;if(vn&&vn.kind===268){const pn=c,mn=u;u=!1,c=!1;const q=Wn(vn.statements,ui,Xi);let Fe=et(q);U.flags&33554432&&(c=!1),!eg(U)&&!ft(Fe)&&!u&&(c?Fe=C.createNodeArray([...Fe,KN(C)]):Fe=Wn(Fe,vi,Xi));const Ot=C.updateModuleBlock(vn,Fe);i=mt,c=pn,u=mn;const I=At(U);return Ut(ts(U,I,db(U)?On(U,U.name):U.name,Ot))}else{i=mt;const pn=At(U);i=!1,tt(vn,ui);const mn=s_(vn),q=y.get(mn);return y.delete(mn),Ut(ts(U,pn,U.name,q))}}case 263:{M=U.name,V=U;const vn=C.createNodeArray(At(U)),pn=yi(U,U.typeParameters),mn=Rh(U);let q;if(mn){const de=r;q=Zl(Ys(mn.parameters,Be=>{if(!Kr(Be,31)||Ve(Be))return;if(r=Py(Be),Be.name.kind===80)return Os(C.createPropertyDeclaration(At(Be),Be.name,Be.questionToken,sn(Be,Be.type),nn(Be)),Be);return Ie(Be.name);function Ie(xt){let Ft;for(const tn of xt.elements)uu(tn)||(ca(tn.name)&&(Ft=zn(Ft,Ie(tn.name))),Ft=Ft||[],Ft.push(C.createPropertyDeclaration(At(Be),tn.name,void 0,sn(tn,void 0),void 0)));return Ft}})),r=de}const Ot=Pe(U.members,de=>!!de.name&&Qi(de.name))?[C.createPropertyDeclaration(void 0,C.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,I=zn(zn(Ot,q),Wn(U.members,Jt,vu)),me=C.createNodeArray(I),H=tg(U);if(H&&!il(H.expression)&&H.expression.kind!==106){const de=U.name?Hi(U.name.escapedText):"default",Be=C.createUniqueName(`${de}_base`,16);r=()=>({diagnosticMessage:p.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:H,typeName:U.name});const Ie=C.createVariableDeclaration(Be,void 0,J.createTypeOfExpression(H.expression,U,Lx,D),void 0),xt=C.createVariableStatement(i?[C.createModifier(138)]:[],C.createVariableDeclarationList([Ie],2)),Ft=C.createNodeArray(Kt(U.heritageClauses,tn=>{if(tn.token===96){const Sn=r;r=Py(tn.types[0]);const Un=C.updateHeritageClause(tn,Kt(tn.types,Gn=>C.updateExpressionWithTypeArguments(Gn,Be,Wn(Gn.typeArguments,Jt,Gi))));return r=Sn,Un}return C.updateHeritageClause(tn,Wn(C.createNodeArray(vr(tn.types,Sn=>il(Sn.expression)||Sn.expression.kind===106)),Jt,Cy))}));return[xt,Ut(C.updateClassDeclaration(U,vn,U.name,pn,Ft,me))]}else{const de=_t(U.heritageClauses);return Ut(C.updateClassDeclaration(U,vn,U.name,pn,de,me))}}case 243:return Ut(Sa(U));case 266:return Ut(C.updateEnumDeclaration(U,C.createNodeArray(At(U)),U.name,C.createNodeArray(Oi(U.members,vn=>{if(Ve(vn))return;const pn=J.getConstantValue(vn),mn=pn===void 0?void 0:typeof pn=="string"?C.createStringLiteral(pn):pn<0?C.createPrefixUnaryExpression(41,C.createNumericLiteral(-pn)):C.createNumericLiteral(pn);return Os(C.updateEnumMember(vn,vn.name,mn),vn)}))))}return w.assertNever(U,`Unhandled top-level node in declaration emit: ${w.formatSyntaxKind(U.kind)}`);function Ut(vn){return us(U)&&(f=it),Et&&(r=Ge),U.kind===267&&(i=mt),vn===U?vn:(V=void 0,M=void 0,vn&&Ir(Os(vn,U),U))}}function Sa(U){if(!dt(U.declarationList.declarations,hn))return;const it=Wn(U.declarationList.declarations,Jt,Ji);if(!Xe(it))return;const Et=C.createNodeArray(At(U));let Ge;return IA(U.declarationList)||NA(U.declarationList)?(Ge=C.createVariableDeclarationList(it,2),Ir(Ge,U.declarationList),ut(Ge,U.declarationList),kl(Ge,U.declarationList)):Ge=C.updateVariableDeclarationList(U.declarationList,it),C.updateVariableStatement(U,Et,Ge)}function Wa(U){return P_(Oi(U.elements,it=>Tn(it)))}function Tn(U){if(U.kind!==232&&U.name)return hn(U)?ca(U.name)?Wa(U.name):C.createVariableDeclaration(U.name,void 0,sn(U,void 0),void 0):void 0}function Ln(U){let it;x||(it=r,r=Kle(U)),M=U.name,w.assert(J.isLateBound(Is(U)));const Ge=U.name.expression;zi(Ge,f),x||(r=it),M=void 0}function Ve(U){return!!ve&&!!U&&lW(U,G)}function pt(U){return Qc(U)||ml(U)}function ft(U){return Pe(U,pt)}function At(U){const it=M_(U),Et=le(U);return it===Et?I7(U.modifiers,Ge=>si(Ge,Fa),Fa):C.createModifiersFromModifierFlags(Et)}function le(U){let it=130030,Et=i&&!tHe(U)?128:0;const Ge=U.parent.kind===312;return(!Ge||s&&Ge&&Cl(U.parent))&&(it^=128,Et=0),YCe(U,it,Et)}function Me(U,it){let Et=tue(U);return!Et&&U!==it.firstAccessor&&(Et=tue(it.firstAccessor),r=Py(it.firstAccessor)),!Et&&it.secondAccessor&&U!==it.secondAccessor&&(Et=tue(it.secondAccessor),r=Py(it.secondAccessor)),Et}function _t(U){return C.createNodeArray(vr(Kt(U,it=>C.updateHeritageClause(it,Wn(C.createNodeArray(vr(it.types,Et=>il(Et.expression)||it.token===96&&Et.expression.kind===106)),Jt,Cy))),it=>it.types&&!!it.types.length))}}function tHe(e){return e.kind===264}function nHe(e,t,r,i){return e.createModifiersFromModifierFlags(YCe(t,r,i))}function YCe(e,t=131070,r=0){let i=M_(e)&t|r;return i&2048&&!(i&32)&&(i^=32),i&2048&&i&128&&(i^=128),i}function tue(e){if(e)return e.kind===177?e.type:e.parameters.length>0?e.parameters[0].type:void 0}function rHe(e){switch(e.kind){case 172:case 171:return!qf(e,2);case 169:case 260:return!0}return!1}function iHe(e){switch(e.kind){case 262:case 267:case 271:case 264:case 263:case 265:case 266:case 243:case 272:case 278:case 277:return!0}return!1}function sHe(e){switch(e.kind){case 180:case 176:case 174:case 177:case 178:case 172:case 171:case 173:case 179:case 181:case 260:case 168:case 233:case 183:case 194:case 184:case 185:case 205:return!0}return!1}var Lx,aHe=K({"src/compiler/transformers/declarations.ts"(){ua(),ale(),Lx=531469}});function oHe(e){switch(e){case 99:case 7:case 6:case 5:case 200:return _$;case 4:return Yle;case 100:case 199:return Zle;default:return u$}}function p$(e,t,r){return{scriptTransformers:cHe(e,t,r),declarationTransformers:lHe(t)}}function cHe(e,t,r){if(r)return Ke;const i=go(e),s=r_(e),o=dw(e),c=[];return Mr(c,t&&Kt(t.before,KCe)),c.push(Ile),e.experimentalDecorators&&c.push(Lle),z9(e)&&c.push(Hle),i<99&&c.push(Ule),!e.experimentalDecorators&&(i<99||!o)&&c.push(Mle),c.push(Ole),i<8&&c.push(zle),i<7&&c.push(Jle),i<6&&c.push(Ble),i<5&&c.push(jle),i<4&&c.push(Rle),i<3&&c.push(Gle),i<2&&(c.push($le),c.push(Qle)),c.push(oHe(s)),i<1&&c.push(Xle),Mr(c,t&&Kt(t.after,KCe)),c}function lHe(e){const t=[];return t.push(f$),Mr(t,e&&Kt(e.afterDeclarations,_He)),t}function uHe(e){return t=>AH(t)?e.transformBundle(t):e.transformSourceFile(t)}function ZCe(e,t){return r=>{const i=e(r);return typeof i=="function"?t(r,i):uHe(i)}}function KCe(e){return ZCe(e,am)}function _He(e){return ZCe(e,(t,r)=>r)}function Xw(e,t){return t}function L7(e,t,r){r(e,t)}function M7(e,t,r,i,s,o,c){var u,f;const g=new Array(363);let d,y,x,T=0,C=[],N=[],D=[],M=[],V=0,G=!1,Z=[],z=0,ce,J,ne=Xw,ge=L7,ve=0;const Q=[],X={factory:r,getCompilerOptions:()=>i,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:X_(()=>boe(X)),startLexicalEnvironment:xe,suspendLexicalEnvironment:ze,resumeLexicalEnvironment:st,endLexicalEnvironment:zt,setLexicalEnvironmentFlags:yt,getLexicalEnvironmentFlags:$e,hoistVariableDeclaration:Ae,hoistFunctionDeclaration:Le,addInitializationStatement:Tt,startBlockScope:kt,endBlockScope:nn,addBlockScopedVariable:sn,requestEmitHelper:In,readEmitHelpers:Zn,enableSubstitution:ie,enableEmitNotification:Ue,isSubstitutionEnabled:ye,isEmitNotificationEnabled:Se,get onSubstituteNode(){return ne},set onSubstituteNode(Zt){w.assert(ve<1,"Cannot modify transformation hooks after initialization has completed."),w.assert(Zt!==void 0,"Value must not be 'undefined'"),ne=Zt},get onEmitNode(){return ge},set onEmitNode(Zt){w.assert(ve<1,"Cannot modify transformation hooks after initialization has completed."),w.assert(Zt!==void 0,"Value must not be 'undefined'"),ge=Zt},addDiagnostic(Zt){Q.push(Zt)}};for(const Zt of s)fH(qn(Is(Zt)));gc("beforeTransform");const se=o.map(Zt=>Zt(X)),pe=Zt=>{for(const Yt of se)Zt=Yt(Zt);return Zt};ve=1;const we=[];for(const Zt of s)(u=cr)==null||u.push(cr.Phase.Emit,"transformNodes",Zt.kind===312?{path:Zt.path}:{kind:Zt.kind,pos:Zt.pos,end:Zt.end}),we.push((c?pe:fe)(Zt)),(f=cr)==null||f.pop();return ve=2,gc("afterTransform"),Ap("transformTime","beforeTransform","afterTransform"),{transformed:we,substituteNode:Ne,emitNodeWithNotification:Ee,isEmitNotificationEnabled:Se,dispose:hn,diagnostics:Q};function fe(Zt){return Zt&&(!es(Zt)||!Zt.isDeclarationFile)?pe(Zt):Zt}function ie(Zt){w.assert(ve<2,"Cannot modify the transformation context after transformation has completed."),g[Zt]|=1}function ye(Zt){return(g[Zt.kind]&1)!==0&&(Ya(Zt)&8)===0}function Ne(Zt,Yt){return w.assert(ve<3,"Cannot substitute a node after the result is disposed."),Yt&&ye(Yt)&&ne(Zt,Yt)||Yt}function Ue(Zt){w.assert(ve<2,"Cannot modify the transformation context after transformation has completed."),g[Zt]|=2}function Se(Zt){return(g[Zt.kind]&2)!==0||(Ya(Zt)&4)!==0}function Ee(Zt,Yt,yi){w.assert(ve<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),Yt&&(Se(Yt)?ge(Zt,Yt,yi):yi(Zt,Yt))}function Ae(Zt){w.assert(ve>0,"Cannot modify the lexical environment during initialization."),w.assert(ve<2,"Cannot modify the lexical environment after transformation has completed.");const Yt=pr(r.createVariableDeclaration(Zt),128);d?d.push(Yt):d=[Yt],T&1&&(T|=2)}function Le(Zt){w.assert(ve>0,"Cannot modify the lexical environment during initialization."),w.assert(ve<2,"Cannot modify the lexical environment after transformation has completed."),pr(Zt,2097152),y?y.push(Zt):y=[Zt]}function Tt(Zt){w.assert(ve>0,"Cannot modify the lexical environment during initialization."),w.assert(ve<2,"Cannot modify the lexical environment after transformation has completed."),pr(Zt,2097152),x?x.push(Zt):x=[Zt]}function xe(){w.assert(ve>0,"Cannot modify the lexical environment during initialization."),w.assert(ve<2,"Cannot modify the lexical environment after transformation has completed."),w.assert(!G,"Lexical environment is suspended."),C[V]=d,N[V]=y,D[V]=x,M[V]=T,V++,d=void 0,y=void 0,x=void 0,T=0}function ze(){w.assert(ve>0,"Cannot modify the lexical environment during initialization."),w.assert(ve<2,"Cannot modify the lexical environment after transformation has completed."),w.assert(!G,"Lexical environment is already suspended."),G=!0}function st(){w.assert(ve>0,"Cannot modify the lexical environment during initialization."),w.assert(ve<2,"Cannot modify the lexical environment after transformation has completed."),w.assert(G,"Lexical environment is not suspended."),G=!1}function zt(){w.assert(ve>0,"Cannot modify the lexical environment during initialization."),w.assert(ve<2,"Cannot modify the lexical environment after transformation has completed."),w.assert(!G,"Lexical environment is suspended.");let Zt;if(d||y||x){if(y&&(Zt=[...y]),d){const Yt=r.createVariableStatement(void 0,r.createVariableDeclarationList(d));pr(Yt,2097152),Zt?Zt.push(Yt):Zt=[Yt]}x&&(Zt?Zt=[...Zt,...x]:Zt=[...x])}return V--,d=C[V],y=N[V],x=D[V],T=M[V],V===0&&(C=[],N=[],D=[],M=[]),Zt}function yt(Zt,Yt){T=Yt?T|Zt:T&~Zt}function $e(){return T}function kt(){w.assert(ve>0,"Cannot start a block scope during initialization."),w.assert(ve<2,"Cannot start a block scope after transformation has completed."),Z[z]=ce,z++,ce=void 0}function nn(){w.assert(ve>0,"Cannot end a block scope during initialization."),w.assert(ve<2,"Cannot end a block scope after transformation has completed.");const Zt=Pe(ce)?[r.createVariableStatement(void 0,r.createVariableDeclarationList(ce.map(Yt=>r.createVariableDeclaration(Yt)),1))]:void 0;return z--,ce=Z[z],z===0&&(Z=[]),Zt}function sn(Zt){w.assert(z>0,"Cannot add a block scoped variable outside of an iteration body."),(ce||(ce=[])).push(Zt)}function In(Zt){if(w.assert(ve>0,"Cannot modify the transformation context during initialization."),w.assert(ve<2,"Cannot modify the transformation context after transformation has completed."),w.assert(!Zt.scoped,"Cannot request a scoped emit helper."),Zt.dependencies)for(const Yt of Zt.dependencies)In(Yt);J=gn(J,Zt)}function Zn(){w.assert(ve>0,"Cannot modify the transformation context during initialization."),w.assert(ve<2,"Cannot modify the transformation context after transformation has completed.");const Zt=J;return J=void 0,Zt}function hn(){if(ve<3){for(const Zt of s)fH(qn(Is(Zt)));d=void 0,C=void 0,y=void 0,N=void 0,ne=void 0,ge=void 0,J=void 0,ve=3}}}var d$,Qw,fHe=K({"src/compiler/transformer.ts"(){ua(),HS(),d$={scriptTransformers:Ke,declarationTransformers:Ke},Qw={factory:L,getCompilerOptions:()=>({}),getEmitResolver:ta,getEmitHost:ta,getEmitHelperFactory:ta,startLexicalEnvironment:ao,resumeLexicalEnvironment:ao,suspendLexicalEnvironment:ao,endLexicalEnvironment:Rv,setLexicalEnvironmentFlags:ao,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:ao,hoistFunctionDeclaration:ao,addInitializationStatement:ao,startBlockScope:ao,endBlockScope:Rv,addBlockScopedVariable:ao,requestEmitHelper:ao,readEmitHelpers:ta,enableSubstitution:ao,enableEmitNotification:ao,isSubstitutionEnabled:ta,isEmitNotificationEnabled:ta,onSubstituteNode:Xw,onEmitNode:L7,addDiagnostic:ao}}});function nue(e){return zc(e,".tsbuildinfo")}function m$(e,t,r,i=!1,s,o){const c=Ps(r)?r:cq(e,r,i),u=e.getCompilerOptions();if(Vo(u)){const f=e.getPrependNodes();if(c.length||f.length){const g=L.createBundle(c,f),d=t(Zw(g,e,i),g);if(d)return d}}else{if(!s)for(const f of c){const g=t(Zw(f,e,i),f);if(g)return g}if(o){const f=wy(u);if(f)return t({buildInfoPath:f},void 0)}}}function wy(e){const t=e.configFilePath;if(!pw(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;const r=Vo(e);let i;if(r)i=Y_(r);else{if(!t)return;const s=Y_(t);i=e.outDir?e.rootDir?l1(e.outDir,Qd(e.rootDir,s,!0)):Zr(e.outDir,xl(s)):s}return i+".tsbuildinfo"}function Yw(e,t){const r=Vo(e),i=e.emitDeclarationOnly?void 0:r,s=i&&e6e(i,e),o=t||rd(e)?Y_(r)+".d.ts":void 0,c=o&&DN(e)?o+".map":void 0,u=wy(e);return{jsFilePath:i,sourceMapFilePath:s,declarationFilePath:o,declarationMapPath:c,buildInfoPath:u}}function Zw(e,t,r){const i=t.getCompilerOptions();if(e.kind===313)return Yw(i,r);{const s=Hse(e.fileName,t,oR(e.fileName,i)),o=wd(e),c=o&&u0(e.fileName,s,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0,u=i.emitDeclarationOnly||c?void 0:s,f=!u||wd(e)?void 0:e6e(u,i),g=r||rd(i)&&!o?Gse(e.fileName,t):void 0,d=g&&DN(i)?g+".map":void 0;return{jsFilePath:u,sourceMapFilePath:f,declarationFilePath:g,declarationMapPath:d,buildInfoPath:void 0}}}function e6e(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function oR(e,t){return zc(e,".json")?".json":t.jsx===1&&Vl(e,[".jsx",".tsx"])?".jsx":Vl(e,[".mts",".mjs"])?".mjs":Vl(e,[".cts",".cjs"])?".cjs":".js"}function t6e(e,t,r,i){return r?l1(r,Qd(i(),e,t)):e}function Kw(e,t,r,i=()=>n3(t,r)){return g$(e,t.options,r,i)}function g$(e,t,r,i){return n2(t6e(e,r,t.declarationDir||t.outDir,i),b9(e))}function n6e(e,t,r,i=()=>n3(t,r)){if(t.options.emitDeclarationOnly)return;const s=zc(e,".json"),o=h$(e,t.options,r,i);return!s||u0(e,o,w.checkDefined(t.options.configFilePath),r)!==0?o:void 0}function h$(e,t,r,i){return n2(t6e(e,r,t.outDir,i),oR(e,t))}function r6e(){let e;return{addOutput:t,getOutputs:r};function t(i){i&&(e||(e=[])).push(i)}function r(){return e||Ke}}function i6e(e,t){const{jsFilePath:r,sourceMapFilePath:i,declarationFilePath:s,declarationMapPath:o,buildInfoPath:c}=Yw(e.options,!1);t(r),t(i),t(s),t(o),t(c)}function s6e(e,t,r,i,s){if(Wu(t))return;const o=n6e(t,e,r,s);if(i(o),!zc(t,".json")&&(o&&e.options.sourceMap&&i(`${o}.map`),rd(e.options))){const c=Kw(t,e,r,s);i(c),e.options.declarationMap&&i(`${c}.map`)}}function eD(e,t,r,i,s){let o;return e.rootDir?(o=Ss(e.rootDir,r),s==null||s(e.rootDir)):e.composite&&e.configFilePath?(o=oi(t_(e.configFilePath)),s==null||s(o)):o=cue(t(),r,i),o&&o[o.length-1]!==yc&&(o+=yc),o}function n3({options:e,fileNames:t},r){return eD(e,()=>vr(t,i=>!(e.noEmitForJsFiles&&Vl(i,D4))&&!Wu(i)),oi(t_(w.checkDefined(e.configFilePath))),e_(!r))}function cR(e,t){const{addOutput:r,getOutputs:i}=r6e();if(Vo(e.options))i6e(e,r);else{const s=X_(()=>n3(e,t));for(const o of e.fileNames)s6e(e,o,t,r,s);r(wy(e.options))}return i()}function a6e(e,t,r){t=ka(t),w.assert(Ai(e.fileNames,t),"Expected fileName to be present in command line");const{addOutput:i,getOutputs:s}=r6e();return Vo(e.options)?i6e(e,i):s6e(e,t,r,i),s()}function y$(e,t){if(Vo(e.options)){const{jsFilePath:s,declarationFilePath:o}=Yw(e.options,!1);return w.checkDefined(s||o,`project ${e.options.configFilePath} expected to have at least one output`)}const r=X_(()=>n3(e,t));for(const s of e.fileNames){if(Wu(s))continue;const o=n6e(s,e,t,r);if(o)return o;if(!zc(s,".json")&&rd(e.options))return Kw(s,e,t,r)}const i=wy(e.options);return i||w.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function lR(e,t,r,{scriptTransformers:i,declarationTransformers:s},o,c,u){var f=t.getCompilerOptions(),g=f.sourceMap||f.inlineSourceMap||DN(f)?[]:void 0,d=f.listEmittedFiles?[]:void 0,y=d4(),x=Sy(f),T=uN(x),{enter:C,exit:N}=CU("printTime","beforePrint","afterPrint"),D,M=!1;return C(),m$(t,V,cq(t,r,u),u,c,!r),N(),{emitSkipped:M,diagnostics:y.getDiagnostics(),emittedFiles:d,sourceMaps:g};function V({jsFilePath:X,sourceMapFilePath:se,declarationFilePath:pe,declarationMapPath:we,buildInfoPath:fe},ie){var ye,Ne,Ue,Se,Ee,Ae;let Le;fe&&ie&&AH(ie)&&(Le=oi(Ss(fe,t.getCurrentDirectory())),D={commonSourceDirectory:Tt(t.getCommonSourceDirectory()),sourceFiles:ie.sourceFiles.map(xe=>Tt(Ss(xe.fileName,t.getCurrentDirectory())))}),(ye=cr)==null||ye.push(cr.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:X}),Z(ie,X,se,Tt),(Ne=cr)==null||Ne.pop(),(Ue=cr)==null||Ue.push(cr.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:pe}),z(ie,pe,we,Tt),(Se=cr)==null||Se.pop(),(Ee=cr)==null||Ee.push(cr.Phase.Emit,"emitBuildInfo",{buildInfoPath:fe}),G(D,fe),(Ae=cr)==null||Ae.pop();function Tt(xe){return ob(Qd(Le,xe,t.getCanonicalFileName))}}function G(X,se){if(!se||r||M)return;if(t.isEmitBlocked(se)){M=!0;return}const pe=t.getBuildInfo(X)||R7(void 0,X);BP(t,y,se,rue(pe),!1,void 0,{buildInfo:pe}),d==null||d.push(se)}function Z(X,se,pe,we){if(!X||o||!se)return;if(t.isEmitBlocked(se)||f.noEmit){M=!0;return}const fe=M7(e,t,L,f,[X],i,!1),ie={removeComments:f.removeComments,newLine:f.newLine,noEmitHelpers:f.noEmitHelpers,module:f.module,target:f.target,sourceMap:f.sourceMap,inlineSourceMap:f.inlineSourceMap,inlineSources:f.inlineSources,extendedDiagnostics:f.extendedDiagnostics,writeBundleFileInfo:!!D,relativeToBuildInfo:we},ye=d2(ie,{hasGlobalName:e.hasGlobalName,onEmitNode:fe.emitNodeWithNotification,isEmitNotificationEnabled:fe.isEmitNotificationEnabled,substituteNode:fe.substituteNode});w.assert(fe.transformed.length===1,"Should only see one output from the transform"),J(se,pe,fe,ye,f),fe.dispose(),D&&(D.js=ye.bundleFileInfo),d&&(d.push(se),pe&&d.push(pe))}function z(X,se,pe,we){if(!X||o===0)return;if(!se){(o||f.emitDeclarationOnly)&&(M=!0);return}const fe=es(X)?[X]:X.sourceFiles,ie=u?fe:vr(fe,LW),ye=Vo(f)?[L.createBundle(ie,es(X)?void 0:X.prepends)]:ie;o&&!rd(f)&&ie.forEach(ce);const Ne=M7(e,t,L,f,ye,s,!1);if(Xe(Ne.diagnostics))for(const Se of Ne.diagnostics)y.add(Se);const Ue=!!Ne.diagnostics&&!!Ne.diagnostics.length||!!t.isEmitBlocked(se)||!!f.noEmit;if(M=M||Ue,!Ue||u){w.assert(Ne.transformed.length===1,"Should only see one output from the decl transform");const Se={removeComments:f.removeComments,newLine:f.newLine,noEmitHelpers:!0,module:f.module,target:f.target,sourceMap:!u&&f.declarationMap,inlineSourceMap:f.inlineSourceMap,extendedDiagnostics:f.extendedDiagnostics,onlyPrintJsDocStyle:!0,omitBraceSourceMapPositions:!0,writeBundleFileInfo:!!D,recordInternalSection:!!D,relativeToBuildInfo:we},Ee=d2(Se,{hasGlobalName:e.hasGlobalName,onEmitNode:Ne.emitNodeWithNotification,isEmitNotificationEnabled:Ne.isEmitNotificationEnabled,substituteNode:Ne.substituteNode});J(se,pe,Ne,Ee,{sourceMap:Se.sourceMap,sourceRoot:f.sourceRoot,mapRoot:f.mapRoot,extendedDiagnostics:f.extendedDiagnostics}),d&&(d.push(se),pe&&d.push(pe)),D&&(D.dts=Ee.bundleFileInfo)}Ne.dispose()}function ce(X){if(Qc(X)){X.expression.kind===80&&e.collectLinkedAliases(X.expression,!0);return}else if(h_(X)){e.collectLinkedAliases(X.propertyName||X.name,!0);return}Xs(X,ce)}function J(X,se,pe,we,fe){const ie=pe.transformed[0],ye=ie.kind===313?ie:void 0,Ne=ie.kind===312?ie:void 0,Ue=ye?ye.sourceFiles:[Ne];let Se;ne(fe,ie)&&(Se=ple(t,xl(t_(X)),ge(fe),ve(fe,X,Ne),fe)),ye?we.writeBundle(ye,T,Se):we.writeFile(Ne,T,Se);let Ee;if(Se){g&&g.push({inputSourceFileNames:Se.getSources(),sourceMap:Se.toJSON()});const Le=Q(fe,Se,X,se,Ne);if(Le&&(T.isAtStartOfLine()||T.rawWrite(x),Ee=T.getTextPos(),T.writeComment(`//# sourceMappingURL=${Le}`)),se){const Tt=Se.toString();BP(t,y,se,Tt,!1,Ue),we.bundleFileInfo&&(we.bundleFileInfo.mapHash=Rx(Tt,t))}}else T.writeLine();const Ae=T.getText();BP(t,y,X,Ae,!!f.emitBOM,Ue,{sourceMapUrlPos:Ee,diagnostics:pe.diagnostics}),we.bundleFileInfo&&(we.bundleFileInfo.hash=Rx(Ae,t)),T.clear()}function ne(X,se){return(X.sourceMap||X.inlineSourceMap)&&(se.kind!==312||!zc(se.fileName,".json"))}function ge(X){const se=t_(X.sourceRoot||"");return se&&ou(se)}function ve(X,se,pe){if(X.sourceRoot)return t.getCommonSourceDirectory();if(X.mapRoot){let we=t_(X.mapRoot);return pe&&(we=oi(x9(pe.fileName,t,we))),zg(we)===0&&(we=Zr(t.getCommonSourceDirectory(),we)),we}return oi(ka(se))}function Q(X,se,pe,we,fe){if(X.inlineSourceMap){const ye=se.toString();return`data:application/json;base64,${pae(Bu,ye)}`}const ie=xl(t_(w.checkDefined(we)));if(X.mapRoot){let ye=t_(X.mapRoot);return fe&&(ye=oi(x9(fe.fileName,t,ye))),zg(ye)===0?(ye=Zr(t.getCommonSourceDirectory(),ye),encodeURI(uk(oi(ka(pe)),Zr(ye,ie),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(Zr(ye,ie))}return encodeURI(ie)}}function R7(e,t){return{bundle:t,program:e,version:wt}}function rue(e){return JSON.stringify(e)}function uR(e,t){return yq(e,t)}function pHe(e,t,r){var i;const s=w.checkDefined(e.js),o=((i=s.sources)==null?void 0:i.prologues)&&ab(s.sources.prologues,c=>c.file);return e.sourceFiles.map((c,u)=>{const f=o==null?void 0:o.get(u),g=f==null?void 0:f.directives.map(x=>{const T=ut(L.createStringLiteral(x.expression.text),x.expression),C=ut(L.createExpressionStatement(T),x);return eo(T,C),C}),d=L.createToken(1),y=L.createSourceFile(g??[],d,0);return y.fileName=Qd(r.getCurrentDirectory(),Ss(c,t),!r.useCaseSensitiveFileNames()),y.text=(f==null?void 0:f.text)??"",sw(y,0,(f==null?void 0:f.text.length)??0),E4(y.statements,y),sw(d,y.end,0),eo(d,y),y})}function iue(e,t,r,i){var s,o;(s=cr)==null||s.push(cr.Phase.Emit,"emitUsingBuildInfo",{},!0),gc("beforeEmit");const c=dHe(e,t,r,i);return gc("afterEmit"),Ap("Emit","beforeEmit","afterEmit"),(o=cr)==null||o.pop(),c}function dHe(e,t,r,i){const{buildInfoPath:s,jsFilePath:o,sourceMapFilePath:c,declarationFilePath:u,declarationMapPath:f}=Yw(e.options,!1),g=t.getBuildInfo(s,e.options.configFilePath);if(!g||!g.bundle||!g.bundle.js||u&&!g.bundle.dts)return s;const d=t.readFile(w.checkDefined(o));if(!d||Rx(d,t)!==g.bundle.js.hash)return o;const y=c&&t.readFile(c);if(c&&!y||e.options.inlineSourceMap)return c||"inline sourcemap decoding";if(c&&Rx(y,t)!==g.bundle.js.mapHash)return c;const x=u&&t.readFile(u);if(u&&!x||u&&Rx(x,t)!==g.bundle.dts.hash)return u;const T=f&&t.readFile(f);if(f&&!T||e.options.inlineSourceMap)return f||"inline sourcemap decoding";if(f&&Rx(T,t)!==g.bundle.dts.mapHash)return f;const C=oi(Ss(s,t.getCurrentDirectory())),N=uH(o,d,c,y,u,x,f,T,s,g,!0),D=[],M=z$(e.projectReferences,r,ce=>t.readFile(ce),t),V=pHe(g.bundle,C,t);let G,Z;const z={getPrependNodes:X_(()=>[...M,N]),getCanonicalFileName:t.getCanonicalFileName,getCommonSourceDirectory:()=>Ss(g.bundle.commonSourceDirectory,C),getCompilerOptions:()=>e.options,getCurrentDirectory:()=>t.getCurrentDirectory(),getSourceFile:Rv,getSourceFileByPath:Rv,getSourceFiles:()=>V,getLibFileFromReference:ta,isSourceFileFromExternalLibrary:xm,getResolvedProjectReferenceToRedirect:Rv,getProjectReferenceRedirect:Rv,isSourceOfProjectReferenceRedirect:xm,writeFile:(ce,J,ne,ge,ve,Q)=>{switch(ce){case o:if(d===J)return;break;case c:if(y===J)return;break;case s:break;case u:if(x===J)return;G=J,Z=Q;break;case f:if(T===J)return;break;default:w.fail(`Unexpected path: ${ce}`)}D.push({name:ce,text:J,writeByteOrderMark:ne,data:Q})},isEmitBlocked:xm,readFile:ce=>t.readFile(ce),fileExists:ce=>t.fileExists(ce),useCaseSensitiveFileNames:()=>t.useCaseSensitiveFileNames(),getBuildInfo:ce=>{const J=g.program;J&&G!==void 0&&e.options.composite&&(J.outSignature=Rx(G,t,Z));const{js:ne,dts:ge,sourceFiles:ve}=g.bundle;return ce.js.sources=ne.sources,ge&&(ce.dts.sources=ge.sources),ce.sourceFiles=ve,R7(J,ce)},getSourceFileFromReference:Rv,redirectTargetsMap:Dp(),getFileIncludeReasons:ta,createHash:fa(t,t.createHash)};return lR(_R,z,void 0,p$(e.options,i)),D}function d2(e={},t={}){var{hasGlobalName:r,onEmitNode:i=L7,isEmitNotificationEnabled:s,substituteNode:o=Xw,onBeforeEmitNode:c,onAfterEmitNode:u,onBeforeEmitNodeArray:f,onAfterEmitNodeArray:g,onBeforeEmitToken:d,onAfterEmitToken:y}=t,x=!!e.extendedDiagnostics,T=!!e.omitBraceSourceMapPositions,C=Sy(e),N=r_(e),D=new Map,M,V,G,Z,z,ce,J,ne,ge,ve,Q,X,se,pe,we,fe=e.preserveSourceNewlines,ie,ye,Ne,Ue=aT,Se,Ee=e.writeBundleFileInfo?{sections:[]}:void 0,Ae=Ee?w.checkDefined(e.relativeToBuildInfo):void 0,Le=e.recordInternalSection,Tt=0,xe="text",ze=!0,st,zt,yt=-1,$e,kt=-1,nn=-1,sn=-1,In=-1,Zn,hn,Zt=!1,Yt=!!e.removeComments,yi,us,{enter:zi,exit:Os}=Bbe(x,"commentTime","beforeComment","afterComment"),On=L.parenthesizer,Fi={select:P=>P===0?On.parenthesizeLeadingTypeArgument:void 0},Er=D0();return it(),{printNode:cn,printList:et,printFile:wn,printBundle:Jt,writeNode:vi,writeList:ts,writeFile:ft,writeBundle:Ve,bundleFileInfo:Ee};function cn(P,oe,gt){switch(P){case 0:w.assert(es(oe),"Expected a SourceFile node.");break;case 2:w.assert(Je(oe),"Expected an Identifier node.");break;case 1:w.assert(vt(oe),"Expected an Expression node.");break}switch(oe.kind){case 312:return wn(oe);case 313:return Jt(oe);case 314:return ui(oe)}return vi(P,oe,gt,At()),le()}function et(P,oe,gt){return ts(P,oe,gt,At()),le()}function Jt(P){return Ve(P,At(),void 0),le()}function wn(P){return ft(P,At(),void 0),le()}function ui(P){return pt(P,At()),le()}function vi(P,oe,gt,an){const jr=ye;U(an,void 0),Me(P,oe,gt),it(),ye=jr}function ts(P,oe,gt,an){const jr=ye;U(an,void 0),gt&&_t(gt),_c(void 0,oe,P),it(),ye=jr}function Ds(){return ye.getTextPosWithWriteLine?ye.getTextPosWithWriteLine():ye.getTextPos()}function Sa(P,oe,gt){const an=pc(Ee.sections);an&&an.kind===gt?an.end=oe:Ee.sections.push({pos:P,end:oe,kind:gt})}function Wa(P){if(Le&&Ee&&M&&(g_(P)||Xc(P))&&lW(P,M)&&xe!=="internal"){const oe=xe;return Ln(ye.getTextPos()),Tt=Ds(),xe="internal",oe}}function Tn(P){P&&(Ln(ye.getTextPos()),Tt=Ds(),xe=P)}function Ln(P){return Ttw.assert(xae(Ca))),Ee.sections.push({pos:Bi,end:ye.getTextPos(),kind:"prepend",data:Ae(jr.fileName),texts:ss}))}}Tt=Ds();for(const jr of P.sourceFiles)Me(0,jr,jr);if(Ee&&P.sourceFiles.length){const jr=ye.getTextPos();if(Ln(jr)){const Bi=MD(P);Bi&&(Ee.sources||(Ee.sources={}),Ee.sources.prologues=Bi);const bi=Ft(P);bi&&(Ee.sources||(Ee.sources={}),Ee.sources.helpers=bi)}}it(),ye=an}function pt(P,oe){const gt=ye;U(oe,void 0),Me(4,P,void 0),it(),ye=gt}function ft(P,oe,gt){Se=!0;const an=ye;U(oe,gt),X1(P),L0(P),Me(0,P,P),it(),ye=an}function At(){return Ne||(Ne=uN(C))}function le(){const P=Ne.getText();return Ne.clear(),P}function Me(P,oe,gt){gt&&_t(gt),q(P,oe,void 0)}function _t(P){M=P,Zn=void 0,hn=void 0,P&&J0(P)}function U(P,oe){P&&e.omitTrailingSemicolon&&(P=aq(P)),ye=P,st=oe,ze=!ye||!st}function it(){V=[],G=[],Z=[],z=new Set,ce=[],J=new Map,ne=[],ge=0,ve=[],Q=0,X=[],se=void 0,pe=[],we=void 0,M=void 0,Zn=void 0,hn=void 0,U(void 0,void 0)}function Et(){return Zn||(Zn=_0(w.checkDefined(M)))}function Ge(P,oe){if(P===void 0)return;const gt=Wa(P);q(4,P,oe),Tn(gt)}function mt(P){P!==void 0&&q(2,P,void 0)}function Ut(P,oe){P!==void 0&&q(1,P,oe)}function vn(P){q(Ba(P)?6:4,P)}function pn(P){fe&&Kd(P)&4&&(fe=!1)}function mn(P){fe=P}function q(P,oe,gt){us=gt,I(0,P,oe)(P,oe),us=void 0}function Fe(P){return!Yt&&!es(P)}function Ot(P){return!ze&&!es(P)&&!i9(P)&&!Px(P)&&!Boe(P)}function I(P,oe,gt){switch(P){case 0:if(i!==L7&&(!s||s(gt)))return H;case 1:if(o!==Xw&&(yi=o(oe,gt)||gt)!==gt)return us&&(yi=us(yi)),xt;case 2:if(Fe(gt))return K3;case 3:if(Ot(gt))return M2;case 4:return de;default:return w.assertNever(P)}}function me(P,oe,gt){return I(P+1,oe,gt)}function H(P,oe){const gt=me(0,P,oe);i(P,oe,gt)}function de(P,oe){if(c==null||c(oe),fe){const gt=fe;pn(oe),Be(P,oe),mn(gt)}else Be(P,oe);u==null||u(oe),us=void 0}function Be(P,oe,gt=!0){if(gt){const an=pH(oe);if(an)return xs(P,oe,an)}if(P===0)return zC(pa(oe,es));if(P===2)return $r(pa(oe,Je));if(P===6)return Gn(pa(oe,Ba),!0);if(P===3)return Ie(pa(oe,Ic));if(P===7)return FC(pa(oe,Yk));if(P===5)return w.assertNode(oe,PH),os(!0);if(P===4){switch(oe.kind){case 16:case 17:case 18:return Gn(oe,!1);case 80:return $r(oe);case 81:return As(oe);case 166:return Dn(oe);case 167:return hl(oe);case 168:return Rs(oe);case 169:return bo(oe);case 170:return tc(oe);case 171:return Oc(oe);case 172:return Iu(oe);case 173:return vs(oe);case 174:return va(oe);case 175:return Ou(oe);case 176:return Lo(oe);case 177:case 178:return Ja(oe);case 179:return Pc(oe);case 180:return ld(oe);case 181:return El(oe);case 182:return js(oe);case 183:return rn(oe);case 184:return nc(oe);case 185:return Gl(oe);case 186:return _e(oe);case 187:return ee(oe);case 188:return Oe(oe);case 189:return _n(oe);case 190:return br(oe);case 192:return qr(oe);case 193:return Ni(oe);case 194:return Fr(oe);case 195:return ia(oe);case 196:return jc(oe);case 233:return Bt(oe);case 197:return fu();case 198:return rc(oe);case 199:return jl(oe);case 200:return Io(oe);case 201:return pu(oe);case 202:return Tr(oe);case 203:return If(oe);case 204:return qc(oe);case 205:return ru(oe);case 206:return Bd(oe);case 207:return z_(oe);case 208:return De(oe);case 239:return Ht(oe);case 240:return xc();case 241:return ir(oe);case 243:return Yr(oe);case 242:return os(!1);case 244:return qa(oe);case 245:return Ha(oe);case 246:return Lu(oe);case 247:return $l(oe);case 248:return tp(oe);case 249:return yf(oe);case 250:return W1(oe);case 251:return lm(oe);case 252:return um(oe);case 253:return iS(oe);case 254:return Vp(oe);case 255:return yg(oe);case 256:return Wp(oe);case 257:return N0(oe);case 258:return Re(oe);case 259:return Ze(oe);case 260:return It(oe);case 261:return Wt(oe);case 262:return bn(oe);case 263:return aa(oe);case 264:return x_(oe);case 265:return Mu(oe);case 266:return I0(oe);case 267:return T2(oe);case 268:return AC(oe);case 269:return k2(oe);case 270:return MC(oe);case 271:return B3(oe);case 272:return z3(oe);case 273:return Xx(oe);case 274:return sS(oe);case 280:return aS(oe);case 275:return NC(oe);case 276:return U3(oe);case 277:return IC(oe);case 278:return OC(oe);case 279:return oS(oe);case 281:return q1(oe);case 300:return LC(oe);case 301:return Qx(oe);case 282:return;case 283:return C2(oe);case 12:return O0(oe);case 286:case 289:return E2(oe);case 287:case 290:return ah(oe);case 291:return vf(oe);case 292:return _d(oe);case 293:return np(oe);case 294:return W3(oe);case 295:return RC(oe);case 296:return P2(oe);case 297:return jC(oe);case 298:return By(oe);case 299:return BC(oe);case 303:return Om(oe);case 304:return Kx(oe);case 305:return We(oe);case 306:return Fm(oe);case 307:return wi(oe);case 314:case 308:return Li(oe);case 309:case 310:return sr(oe);case 311:return Wr(oe);case 312:return zC(oe);case 313:return w.fail("Bundles should be printed using printBundle");case 315:return w.fail("InputFiles should not be printed");case 316:return F0(oe);case 317:return $1(oe);case 319:return hr("*");case 320:return hr("?");case 321:return Fu(oe);case 322:return Kf(oe);case 323:return Wo(oe);case 324:return ku(oe);case 191:case 325:return bt(oe);case 326:return;case 327:return Ru(oe);case 329:return tT(oe);case 330:return D2(oe);case 334:case 339:case 344:return eT(oe);case 335:case 336:return Jy(oe);case 337:case 338:return;case 340:case 341:case 342:case 343:return;case 345:return ro(oe);case 346:return Lm(oe);case 348:case 355:return nT(oe);case 347:case 349:case 350:case 351:case 356:case 357:return w2(oe);case 352:return zy(oe);case 353:return FD(oe);case 354:return JC(oe);case 359:return}if(vt(oe)&&(P=1,o!==Xw)){const an=o(P,oe)||oe;an!==oe&&(oe=an,us&&(oe=us(oe)))}}if(P===1)switch(oe.kind){case 9:case 10:return Un(oe);case 11:case 14:case 15:return Gn(oe,!1);case 80:return $r(oe);case 81:return As(oe);case 209:return jt(oe);case 210:return Xn(oe);case 211:return Ts(oe);case 212:return la(oe);case 213:return yl(oe);case 214:return Bl(oe);case 215:return Tc(oe);case 216:return Fc(oe);case 217:return sl(oe);case 218:return vl(oe);case 219:return du(oe);case 220:return gf(oe);case 221:return nf(oe);case 222:return ud(oe);case 223:return hg(oe);case 224:return sh(oe);case 225:return c_(oe);case 226:return Er(oe);case 227:return ep(oe);case 228:return Hh(oe);case 229:return hf(oe);case 230:return te(oe);case 231:return ct(oe);case 232:return;case 234:return Vt(oe);case 235:return R(oe);case 233:return Bt(oe);case 238:return Te(oe);case 236:return at(oe);case 237:return w.fail("SyntheticExpression should never be printed.");case 282:return;case 284:return _o(oe);case 285:return Yx(oe);case 288:return V3(oe);case 358:return w.fail("SyntaxList should not be printed");case 359:return;case 360:return ei(oe);case 361:return oh(oe);case 362:return w.fail("SyntheticReferenceExpression should not be printed")}if(pf(oe.kind))return fS(oe,is);if(QV(oe.kind))return fS(oe,hr);w.fail(`Unhandled SyntaxKind: ${w.formatSyntaxKind(oe.kind)}.`)}function Ie(P){Ge(P.name),_r(),is("in"),_r(),Ge(P.constraint)}function xt(P,oe){const gt=me(1,P,oe);w.assertIsDefined(yi),oe=yi,yi=void 0,gt(P,oe)}function Ft(P){let oe;if(N===0||e.noEmitHelpers)return;const gt=new Map;for(const an of P.sourceFiles){const jr=n7(an)!==void 0,Bi=Sn(an);if(Bi)for(const bi of Bi)!bi.scoped&&!jr&&!gt.get(bi.name)&&(gt.set(bi.name,!0),(oe||(oe=[])).push(bi.name))}return oe}function tn(P){let oe=!1;const gt=P.kind===313?P:void 0;if(gt&&N===0)return;const an=gt?gt.prepends.length:0,jr=gt?gt.sourceFiles.length+an:1;for(let Bi=0;Bi"),_r(),Ge(P.type),Ff(P)}function ku(P){is("function"),Uy(P,P.parameters),hr(":"),Ge(P.type)}function Fu(P){hr("?"),Ge(P.type)}function Kf(P){hr("!"),Ge(P.type)}function Wo(P){Ge(P.type),hr("=")}function Gl(P){Hu(P),$h(P,P.modifiers),is("new"),_r(),vg(P,P.typeParameters),Uy(P,P.parameters),_r(),hr("=>"),_r(),Ge(P.type),Ff(P)}function _e(P){is("typeof"),_r(),Ge(P.exprName),Qh(P,P.typeArguments)}function ee(P){fd(0,void 0),hr("{");const oe=Ya(P)&1?768:32897;_c(P,P.members,oe|524288),hr("}"),ev()}function Oe(P){Ge(P.elementType,On.parenthesizeNonArrayTypeOfPostfixType),hr("["),hr("]")}function bt(P){hr("..."),Ge(P.type)}function _n(P){$i(23,P.pos,hr,P);const oe=Ya(P)&1?528:657;_c(P,P.elements,oe|524288,On.parenthesizeElementTypeOfTupleType),$i(24,P.elements.end,hr,P)}function Tr(P){Ge(P.dotDotDotToken),Ge(P.name),Ge(P.questionToken),$i(59,P.name.end,hr,P),_r(),Ge(P.type)}function br(P){Ge(P.type,On.parenthesizeTypeOfOptionalType),hr("?")}function qr(P){_c(P,P.types,516,On.parenthesizeConstituentTypeOfUnionType)}function Ni(P){_c(P,P.types,520,On.parenthesizeConstituentTypeOfIntersectionType)}function Fr(P){Ge(P.checkType,On.parenthesizeCheckTypeOfConditionalType),_r(),is("extends"),_r(),Ge(P.extendsType,On.parenthesizeExtendsTypeOfConditionalType),_r(),hr("?"),_r(),Ge(P.trueType),_r(),hr(":"),_r(),Ge(P.falseType)}function ia(P){is("infer"),_r(),Ge(P.typeParameter)}function jc(P){hr("("),Ge(P.type),hr(")")}function fu(){is("this")}function rc(P){Z1(P.operator,is),_r();const oe=P.operator===148?On.parenthesizeOperandOfReadonlyTypeOperator:On.parenthesizeOperandOfTypeOperator;Ge(P.type,oe)}function jl(P){Ge(P.objectType,On.parenthesizeNonArrayTypeOfPostfixType),hr("["),Ge(P.indexType),hr("]")}function Io(P){const oe=Ya(P);hr("{"),oe&1?_r():(mu(),ch()),P.readonlyToken&&(Ge(P.readonlyToken),P.readonlyToken.kind!==148&&is("readonly"),_r()),hr("["),q(3,P.typeParameter),P.nameType&&(_r(),is("as"),_r(),Ge(P.nameType)),hr("]"),P.questionToken&&(Ge(P.questionToken),P.questionToken.kind!==58&&hr("?")),hr(":"),_r(),Ge(P.type),Cu(),oe&1?_r():(mu(),dm()),_c(P,P.members,2),hr("}")}function pu(P){Ut(P.literal)}function If(P){Ge(P.head),_c(P,P.templateSpans,262144)}function ru(P){P.isTypeOf&&(is("typeof"),_r()),is("import"),hr("("),Ge(P.argument),P.attributes&&(hr(","),_r(),q(7,P.attributes)),hr(")"),P.qualifier&&(hr("."),Ge(P.qualifier)),Qh(P,P.typeArguments)}function Bd(P){hr("{"),_c(P,P.elements,525136),hr("}")}function z_(P){hr("["),_c(P,P.elements,524880),hr("]")}function De(P){Ge(P.dotDotDotToken),P.propertyName&&(Ge(P.propertyName),hr(":"),_r()),Ge(P.name),Q1(P.initializer,P.name.end,P,On.parenthesizeExpressionForDisallowedComma)}function jt(P){const oe=P.elements,gt=P.multiLine?65536:0;uS(P,oe,8914|gt,On.parenthesizeExpressionForDisallowedComma)}function Xn(P){fd(0,void 0),dt(P.properties,WC);const oe=Ya(P)&131072;oe&&ch();const gt=P.multiLine?65536:0,an=M&&M.languageVersion>=1&&!wd(M)?64:0;_c(P,P.properties,526226|an|gt),oe&&dm(),ev()}function Ts(P){Ut(P.expression,On.parenthesizeLeftSideOfAccess);const oe=P.questionDotToken||Gg(L.createToken(25),P.expression.end,P.name.pos),gt=Sp(P,P.expression,oe),an=Sp(P,oe,P.name);mm(gt,!1),oe.kind!==29&&sa(P.expression)&&!ye.hasTrailingComment()&&!ye.hasTrailingWhitespace()&&hr("."),P.questionDotToken?Ge(oe):$i(oe.kind,P.expression.end,hr,P),mm(an,!1),Ge(P.name),N2(gt,an)}function sa(P){if(P=Zd(P),Hf(P)){const oe=_T(P,!0,!1);return!(P.numericLiteralFlags&448)&&!oe.includes(ba(25))&&!oe.includes("E")&&!oe.includes("e")}else if($o(P)){const oe=poe(P);return typeof oe=="number"&&isFinite(oe)&&oe>=0&&Math.floor(oe)===oe}}function la(P){Ut(P.expression,On.parenthesizeLeftSideOfAccess),Ge(P.questionDotToken),$i(23,P.expression.end,hr,P),Ut(P.argumentExpression),$i(24,P.argumentExpression.end,hr,P)}function yl(P){const oe=Kd(P)&16;oe&&(hr("("),Y1("0"),hr(","),_r()),Ut(P.expression,On.parenthesizeLeftSideOfAccess),oe&&hr(")"),Ge(P.questionDotToken),Qh(P,P.typeArguments),uS(P,P.arguments,2576,On.parenthesizeExpressionForDisallowedComma)}function Bl(P){$i(105,P.pos,is,P),_r(),Ut(P.expression,On.parenthesizeExpressionOfNew),Qh(P,P.typeArguments),uS(P,P.arguments,18960,On.parenthesizeExpressionForDisallowedComma)}function Tc(P){const oe=Kd(P)&16;oe&&(hr("("),Y1("0"),hr(","),_r()),Ut(P.tag,On.parenthesizeLeftSideOfAccess),oe&&hr(")"),Qh(P,P.typeArguments),_r(),Ut(P.template)}function Fc(P){hr("<"),Ge(P.type),hr(">"),Ut(P.expression,On.parenthesizeOperandOfPrefixUnary)}function sl(P){const oe=$i(21,P.pos,hr,P),gt=Q3(P.expression,P);Ut(P.expression,void 0),pS(P.expression,P),N2(gt),$i(22,P.expression?P.expression.end:oe,hr,P)}function vl(P){xp(P.name),Kn(P)}function du(P){$h(P,P.modifiers),yn(P,Up)}function Up(P){vg(P,P.typeParameters),G3(P,P.parameters),Ud(P.type),_r(),Ge(P.equalsGreaterThanToken)}function gf(P){$i(91,P.pos,is,P),_r(),Ut(P.expression,On.parenthesizeOperandOfPrefixUnary)}function nf(P){$i(114,P.pos,is,P),_r(),Ut(P.expression,On.parenthesizeOperandOfPrefixUnary)}function ud(P){$i(116,P.pos,is,P),_r(),Ut(P.expression,On.parenthesizeOperandOfPrefixUnary)}function hg(P){$i(135,P.pos,is,P),_r(),Ut(P.expression,On.parenthesizeOperandOfPrefixUnary)}function sh(P){Z1(P.operator,qp),w0(P)&&_r(),Ut(P.operand,On.parenthesizeOperandOfPrefixUnary)}function w0(P){const oe=P.operand;return oe.kind===224&&(P.operator===40&&(oe.operator===40||oe.operator===46)||P.operator===41&&(oe.operator===41||oe.operator===47))}function c_(P){Ut(P.operand,On.parenthesizeOperandOfPostfixUnary),Z1(P.operator,qp)}function D0(){return dM(P,oe,gt,an,jr,void 0);function P(bi,ss){if(ss){ss.stackIndex++,ss.preserveSourceNewlinesStack[ss.stackIndex]=fe,ss.containerPosStack[ss.stackIndex]=nn,ss.containerEndStack[ss.stackIndex]=sn,ss.declarationListContainerEndStack[ss.stackIndex]=In;const Ca=ss.shouldEmitCommentsStack[ss.stackIndex]=Fe(bi),T_=ss.shouldEmitSourceMapsStack[ss.stackIndex]=Ot(bi);c==null||c(bi),Ca&&mT(bi),T_&&XC(bi),pn(bi)}else ss={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return ss}function oe(bi,ss,Ca){return Bi(bi,Ca,"left")}function gt(bi,ss,Ca){const T_=bi.kind!==28,sf=Sp(Ca,Ca.left,bi),dd=Sp(Ca,bi,Ca.right);mm(sf,T_),Zh(bi.pos),fS(bi,bi.kind===103?is:qp),gm(bi.end,!0),mm(dd,!0)}function an(bi,ss,Ca){return Bi(bi,Ca,"right")}function jr(bi,ss){const Ca=Sp(bi,bi.left,bi.operatorToken),T_=Sp(bi,bi.operatorToken,bi.right);if(N2(Ca,T_),ss.stackIndex>0){const sf=ss.preserveSourceNewlinesStack[ss.stackIndex],dd=ss.containerPosStack[ss.stackIndex],iv=ss.containerEndStack[ss.stackIndex],Ti=ss.declarationListContainerEndStack[ss.stackIndex],_h=ss.shouldEmitCommentsStack[ss.stackIndex],Hn=ss.shouldEmitSourceMapsStack[ss.stackIndex];mn(sf),Hn&&yT(bi),_h&&eE(bi,dd,iv,Ti),u==null||u(bi),ss.stackIndex--}}function Bi(bi,ss,Ca){const T_=Ca==="left"?On.getParenthesizeLeftSideOfBinaryForOperator(ss.operatorToken.kind):On.getParenthesizeRightSideOfBinaryForOperator(ss.operatorToken.kind);let sf=I(0,1,bi);if(sf===xt&&(w.assertIsDefined(yi),bi=T_(pa(yi,vt)),sf=me(1,1,bi),yi=void 0),(sf===K3||sf===M2||sf===de)&&mr(bi))return bi;us=T_,sf(1,bi)}}function ep(P){const oe=Sp(P,P.condition,P.questionToken),gt=Sp(P,P.questionToken,P.whenTrue),an=Sp(P,P.whenTrue,P.colonToken),jr=Sp(P,P.colonToken,P.whenFalse);Ut(P.condition,On.parenthesizeConditionOfConditionalExpression),mm(oe,!0),Ge(P.questionToken),mm(gt,!0),Ut(P.whenTrue,On.parenthesizeBranchOfConditionalExpression),N2(oe,gt),mm(an,!0),Ge(P.colonToken),mm(jr,!0),Ut(P.whenFalse,On.parenthesizeBranchOfConditionalExpression),N2(an,jr)}function Hh(P){Ge(P.head),_c(P,P.templateSpans,262144)}function hf(P){$i(127,P.pos,is,P),Ge(P.asteriskToken),lS(P.expression&&_m(P.expression),rS)}function te(P){$i(26,P.pos,hr,P),Ut(P.expression,On.parenthesizeExpressionForDisallowedComma)}function ct(P){xp(P.name),no(P)}function Bt(P){Ut(P.expression,On.parenthesizeLeftSideOfAccess),Qh(P,P.typeArguments)}function Vt(P){Ut(P.expression,void 0),P.type&&(_r(),is("as"),_r(),Ge(P.type))}function R(P){Ut(P.expression,On.parenthesizeLeftSideOfAccess),qp("!")}function Te(P){Ut(P.expression,void 0),P.type&&(_r(),is("satisfies"),_r(),Ge(P.type))}function at(P){_S(P.keywordToken,P.pos,hr),hr("."),Ge(P.name)}function Ht(P){Ut(P.expression),Ge(P.literal)}function ir(P){ai(P,!P.multiLine&&uT(P))}function ai(P,oe){$i(19,P.pos,hr,P);const gt=oe||Ya(P)&1?768:129;_c(P,P.statements,gt),$i(20,P.statements.end,hr,P,!!(gt&1))}function Yr(P){bp(P,P.modifiers,!1),Ge(P.declarationList),Cu()}function os(P){P?hr(";"):Cu()}function qa(P){Ut(P.expression,On.parenthesizeExpressionOfExpressionStatement),(!M||!wd(M)||lc(P.expression))&&Cu()}function Ha(P){const oe=$i(101,P.pos,is,P);_r(),$i(21,oe,hr,P),Ut(P.expression),$i(22,P.expression.end,hr,P),Xh(P,P.thenStatement),P.elseStatement&&(R0(P,P.thenStatement,P.elseStatement),$i(93,P.thenStatement.end,is,P),P.elseStatement.kind===245?(_r(),Ge(P.elseStatement)):Xh(P,P.elseStatement))}function Zc(P,oe){const gt=$i(117,oe,is,P);_r(),$i(21,gt,hr,P),Ut(P.expression),$i(22,P.expression.end,hr,P)}function Lu(P){$i(92,P.pos,is,P),Xh(P,P.statement),na(P.statement)&&!fe?_r():R0(P,P.statement,P.expression),Zc(P,P.statement.end),Cu()}function $l(P){Zc(P,P.pos),Xh(P,P.statement)}function tp(P){const oe=$i(99,P.pos,is,P);_r();let gt=$i(21,oe,hr,P);So(P.initializer),gt=$i(27,P.initializer?P.initializer.end:gt,hr,P),lS(P.condition),gt=$i(27,P.condition?P.condition.end:gt,hr,P),lS(P.incrementor),$i(22,P.incrementor?P.incrementor.end:gt,hr,P),Xh(P,P.statement)}function yf(P){const oe=$i(99,P.pos,is,P);_r(),$i(21,oe,hr,P),So(P.initializer),_r(),$i(103,P.initializer.end,is,P),_r(),Ut(P.expression),$i(22,P.expression.end,hr,P),Xh(P,P.statement)}function W1(P){const oe=$i(99,P.pos,is,P);_r(),rT(P.awaitModifier),$i(21,oe,hr,P),So(P.initializer),_r(),$i(165,P.initializer.end,is,P),_r(),Ut(P.expression),$i(22,P.expression.end,hr,P),Xh(P,P.statement)}function So(P){P!==void 0&&(P.kind===261?Ge(P):Ut(P))}function lm(P){$i(88,P.pos,is,P),M0(P.label),Cu()}function um(P){$i(83,P.pos,is,P),M0(P.label),Cu()}function $i(P,oe,gt,an,jr){const Bi=Is(an),bi=Bi&&Bi.kind===an.kind,ss=oe;if(bi&&M&&(oe=za(M.text,oe)),bi&&an.pos!==ss){const Ca=jr&&M&&!td(ss,oe,M);Ca&&ch(),Zh(ss),Ca&&dm()}if(!T&&(P===19||P===20)?oe=_S(P,oe,gt,an):oe=Z1(P,gt,oe),bi&&an.end!==oe){const Ca=an.kind===294;gm(oe,!Ca,Ca)}return oe}function A0(P){return P.kind===2||!!P.hasTrailingNewLine}function Ry(P){if(!M)return!1;const oe=Ph(M.text,P.pos);if(oe){const gt=Is(P);if(gt&&df(gt.parent))return!0}return Pe(oe,A0)||Pe(A4(P),A0)?!0:eM(P)?P.pos!==P.expression.pos&&Pe(Jv(M.text,P.expression.pos),A0)?!0:Ry(P.expression):!1}function _m(P){if(!Yt&&eM(P)&&Ry(P)){const oe=Is(P);if(oe&&df(oe)){const gt=L.createParenthesizedExpression(P.expression);return Ir(gt,P),ut(gt,oe),gt}return L.createParenthesizedExpression(P)}return P}function rS(P){return _m(On.parenthesizeExpressionForDisallowedComma(P))}function iS(P){$i(107,P.pos,is,P),lS(P.expression&&_m(P.expression),_m),Cu()}function Vp(P){const oe=$i(118,P.pos,is,P);_r(),$i(21,oe,hr,P),Ut(P.expression),$i(22,P.expression.end,hr,P),Xh(P,P.statement)}function yg(P){const oe=$i(109,P.pos,is,P);_r(),$i(21,oe,hr,P),Ut(P.expression),$i(22,P.expression.end,hr,P),_r(),Ge(P.caseBlock)}function Wp(P){Ge(P.label),$i(59,P.label.end,hr,P),_r(),Ge(P.statement)}function N0(P){$i(111,P.pos,is,P),lS(_m(P.expression),_m),Cu()}function Re(P){$i(113,P.pos,is,P),_r(),Ge(P.tryBlock),P.catchClause&&(R0(P,P.tryBlock,P.catchClause),Ge(P.catchClause)),P.finallyBlock&&(R0(P,P.catchClause||P.tryBlock,P.finallyBlock),$i(98,(P.catchClause||P.tryBlock).end,is,P),_r(),Ge(P.finallyBlock))}function Ze(P){_S(89,P.pos,is),Cu()}function It(P){var oe,gt,an;Ge(P.name),Ge(P.exclamationToken),Ud(P.type),Q1(P.initializer,((oe=P.type)==null?void 0:oe.end)??((an=(gt=P.name.emitNode)==null?void 0:gt.typeNode)==null?void 0:an.end)??P.name.end,P,On.parenthesizeExpressionForDisallowedComma)}function Wt(P){if(NA(P))is("await"),_r(),is("using");else{const oe=WF(P)?"let":Y6(P)?"const":IA(P)?"using":"var";is(oe)}_r(),_c(P,P.declarations,528)}function bn(P){Kn(P)}function Kn(P){bp(P,P.modifiers,!1),is("function"),Ge(P.asteriskToken),_r(),mt(P.name),yn(P,er)}function yn(P,oe){const gt=P.body;if(gt)if(na(gt)){const an=Ya(P)&131072;an&&ch(),Hu(P),dt(P.parameters,Eu),Eu(P.body),oe(P),ur(gt),Ff(P),an&&dm()}else oe(P),_r(),Ut(gt,On.parenthesizeConciseBodyOfArrowFunction);else oe(P),Cu()}function er(P){vg(P,P.typeParameters),Uy(P,P.parameters),Ud(P.type)}function mi(P){if(Ya(P)&1)return!0;if(P.multiLine||!lc(P)&&M&&!mx(P,M)||Yh(P,hu(P.statements),2)||VC(P,pc(P.statements),2,P.statements))return!1;let oe;for(const gt of P.statements){if(K1(oe,gt,2)>0)return!1;oe=gt}return!0}function ur(P){c==null||c(P),_r(),hr("{"),ch();const oe=mi(P)?ri:dr;Pr(P,P.statements,oe),dm(),_S(20,P.statements.end,hr,P),u==null||u(P)}function ri(P){dr(P,!0)}function dr(P,oe){const gt=bf(P.statements),an=ye.getTextPos();tn(P),gt===0&&an===ye.getTextPos()&&oe?(dm(),_c(P,P.statements,768),ch()):_c(P,P.statements,1,void 0,gt)}function aa(P){no(P)}function no(P){fd(0,void 0),dt(P.members,WC),bp(P,P.modifiers,!0),$i(86,ag(P).pos,is,P),P.name&&(_r(),mt(P.name));const oe=Ya(P)&131072;oe&&ch(),vg(P,P.typeParameters),_c(P,P.heritageClauses,0),_r(),hr("{"),_c(P,P.members,129),hr("}"),oe&&dm(),ev()}function x_(P){fd(0,void 0),bp(P,P.modifiers,!1),is("interface"),_r(),Ge(P.name),vg(P,P.typeParameters),_c(P,P.heritageClauses,512),_r(),hr("{"),_c(P,P.members,129),hr("}"),ev()}function Mu(P){bp(P,P.modifiers,!1),is("type"),_r(),Ge(P.name),vg(P,P.typeParameters),_r(),hr("="),_r(),Ge(P.type),Cu()}function I0(P){bp(P,P.modifiers,!1),is("enum"),_r(),Ge(P.name),_r(),hr("{"),_c(P,P.members,145),hr("}")}function T2(P){bp(P,P.modifiers,!1),~P.flags&2048&&(is(P.flags&32?"namespace":"module"),_r()),Ge(P.name);let oe=P.body;if(!oe)return Cu();for(;oe&&dl(oe);)hr("."),Ge(oe.name),oe=oe.body;_r(),Ge(oe)}function AC(P){Hu(P),dt(P.statements,Eu),ai(P,uT(P)),Ff(P)}function k2(P){$i(19,P.pos,hr,P),_c(P,P.clauses,129),$i(20,P.clauses.end,hr,P,!0)}function B3(P){bp(P,P.modifiers,!1),$i(102,P.modifiers?P.modifiers.end:P.pos,is,P),_r(),P.isTypeOnly&&($i(156,P.pos,is,P),_r()),Ge(P.name),_r(),$i(64,P.name.end,hr,P),_r(),J3(P.moduleReference),Cu()}function J3(P){P.kind===80?Ut(P):Ge(P)}function z3(P){bp(P,P.modifiers,!1),$i(102,P.modifiers?P.modifiers.end:P.pos,is,P),_r(),P.importClause&&(Ge(P.importClause),_r(),$i(161,P.importClause.end,is,P),_r()),Ut(P.moduleSpecifier),P.attributes&&M0(P.attributes),Cu()}function Xx(P){P.isTypeOnly&&($i(156,P.pos,is,P),_r()),Ge(P.name),P.name&&P.namedBindings&&($i(28,P.name.end,hr,P),_r()),Ge(P.namedBindings)}function sS(P){const oe=$i(42,P.pos,hr,P);_r(),$i(130,oe,is,P),_r(),Ge(P.name)}function NC(P){H1(P)}function U3(P){Gh(P)}function IC(P){const oe=$i(95,P.pos,is,P);_r(),P.isExportEquals?$i(64,oe,qp,P):$i(90,oe,is,P),_r(),Ut(P.expression,P.isExportEquals?On.getParenthesizeRightSideOfBinaryForOperator(64):On.parenthesizeExpressionOfExportDefault),Cu()}function OC(P){bp(P,P.modifiers,!1);let oe=$i(95,P.pos,is,P);if(_r(),P.isTypeOnly&&(oe=$i(156,oe,is,P),_r()),P.exportClause?Ge(P.exportClause):oe=$i(42,oe,hr,P),P.moduleSpecifier){_r();const gt=P.exportClause?P.exportClause.end:oe;$i(161,gt,is,P),_r(),Ut(P.moduleSpecifier)}P.attributes&&M0(P.attributes),Cu()}function FC(P){hr("{"),_r(),is(P.token===132?"assert":"with"),hr(":"),_r();const oe=P.elements;_c(P,oe,526226),_r(),hr("}")}function LC(P){$i(P.token,P.pos,is,P),_r();const oe=P.elements;_c(P,oe,526226)}function Qx(P){Ge(P.name),hr(":"),_r();const oe=P.value;if(!(Ya(oe)&1024)){const gt=cg(oe);gm(gt.pos)}Ge(oe)}function MC(P){let oe=$i(95,P.pos,is,P);_r(),oe=$i(130,oe,is,P),_r(),oe=$i(145,oe,is,P),_r(),Ge(P.name),Cu()}function aS(P){const oe=$i(42,P.pos,hr,P);_r(),$i(130,oe,is,P),_r(),Ge(P.name)}function oS(P){H1(P)}function q1(P){Gh(P)}function H1(P){hr("{"),_c(P,P.elements,525136),hr("}")}function Gh(P){P.isTypeOnly&&(is("type"),_r()),P.propertyName&&(Ge(P.propertyName),_r(),$i(130,P.propertyName.end,is,P),_r()),Ge(P.name)}function C2(P){is("require"),hr("("),Ut(P.expression),hr(")")}function _o(P){Ge(P.openingElement),_c(P,P.children,262144),Ge(P.closingElement)}function Yx(P){hr("<"),G1(P.tagName),Qh(P,P.typeArguments),_r(),Ge(P.attributes),hr("/>")}function V3(P){Ge(P.openingFragment),_c(P,P.children,262144),Ge(P.closingFragment)}function E2(P){if(hr("<"),ug(P)){const oe=Q3(P.tagName,P);G1(P.tagName),Qh(P,P.typeArguments),P.attributes.properties&&P.attributes.properties.length>0&&_r(),Ge(P.attributes),pS(P.attributes,P),N2(oe)}hr(">")}function O0(P){ye.writeLiteral(P.text)}function ah(P){hr("")}function _d(P){_c(P,P.properties,262656)}function vf(P){Ge(P.name),fm("=",hr,P.initializer,vn)}function np(P){hr("{..."),Ut(P.expression),hr("}")}function Of(P){let oe=!1;return nA((M==null?void 0:M.text)||"",P+1,()=>oe=!0),oe}function jy(P){let oe=!1;return tA((M==null?void 0:M.text)||"",P+1,()=>oe=!0),oe}function Zx(P){return Of(P)||jy(P)}function W3(P){var oe;if(P.expression||!Yt&&!lc(P)&&Zx(P.pos)){const gt=M&&!lc(P)&&Ao(M,P.pos).line!==Ao(M,P.end).line;gt&&ye.increaseIndent();const an=$i(19,P.pos,hr,P);Ge(P.dotDotDotToken),Ut(P.expression),$i(20,((oe=P.expression)==null?void 0:oe.end)||an,hr,P),gt&&ye.decreaseIndent()}}function RC(P){mt(P.namespace),hr(":"),mt(P.name)}function G1(P){P.kind===80?Ut(P):Ge(P)}function P2(P){$i(84,P.pos,is,P),_r(),Ut(P.expression,On.parenthesizeExpressionForDisallowedComma),Jl(P,P.statements,P.expression.end)}function jC(P){const oe=$i(90,P.pos,is,P);Jl(P,P.statements,oe)}function Jl(P,oe,gt){const an=oe.length===1&&(!M||lc(P)||lc(oe[0])||I9(P,oe[0],M));let jr=163969;an?(_S(59,gt,hr,P),_r(),jr&=-130):$i(59,gt,hr,P),_c(P,oe,jr)}function By(P){_r(),Z1(P.token,is),_r(),_c(P,P.types,528)}function BC(P){const oe=$i(85,P.pos,is,P);_r(),P.variableDeclaration&&($i(21,oe,hr,P),Ge(P.variableDeclaration),$i(22,P.variableDeclaration.end,hr,P),_r()),Ge(P.block)}function Om(P){Ge(P.name),hr(":"),_r();const oe=P.initializer;if(!(Ya(oe)&1024)){const gt=cg(oe);gm(gt.pos)}Ut(oe,On.parenthesizeExpressionForDisallowedComma)}function Kx(P){Ge(P.name),P.objectAssignmentInitializer&&(_r(),hr("="),_r(),Ut(P.objectAssignmentInitializer,On.parenthesizeExpressionForDisallowedComma))}function We(P){P.expression&&($i(26,P.pos,hr,P),Ut(P.expression,On.parenthesizeExpressionForDisallowedComma))}function Fm(P){Ge(P.name),Q1(P.initializer,P.name.end,P,On.parenthesizeExpressionForDisallowedComma)}function Ru(P){if(Ue("/**"),P.comment){const oe=_A(P.comment);if(oe){const gt=oe.split(/\r\n?|\n/g);for(const an of gt)mu(),_r(),hr("*"),_r(),Ue(an)}}P.tags&&(P.tags.length===1&&P.tags[0].kind===351&&!P.comment?(_r(),Ge(P.tags[0])):_c(P,P.tags,33)),_r(),Ue("*/")}function w2(P){Jd(P.tagName),F0(P.typeExpression),zd(P.comment)}function JC(P){Jd(P.tagName),Ge(P.name),zd(P.comment)}function $1(P){_r(),hr("{"),Ge(P.name),hr("}")}function Jy(P){Jd(P.tagName),_r(),hr("{"),Ge(P.class),hr("}"),zd(P.comment)}function zy(P){Jd(P.tagName),F0(P.constraint),_r(),_c(P,P.typeParameters,528),zd(P.comment)}function FD(P){Jd(P.tagName),P.typeExpression&&(P.typeExpression.kind===316?F0(P.typeExpression):(_r(),hr("{"),Ue("Object"),P.typeExpression.isArrayType&&(hr("["),hr("]")),hr("}"))),P.fullName&&(_r(),Ge(P.fullName)),zd(P.comment),P.typeExpression&&P.typeExpression.kind===329&&tT(P.typeExpression)}function ro(P){Jd(P.tagName),P.name&&(_r(),Ge(P.name)),zd(P.comment),D2(P.typeExpression)}function Lm(P){zd(P.comment),D2(P.typeExpression)}function eT(P){Jd(P.tagName),zd(P.comment)}function tT(P){_c(P,L.createNodeArray(P.jsDocPropertyTags),33)}function D2(P){P.typeParameters&&_c(P,L.createNodeArray(P.typeParameters),33),P.parameters&&_c(P,L.createNodeArray(P.parameters),33),P.type&&(mu(),_r(),hr("*"),_r(),Ge(P.type))}function nT(P){Jd(P.tagName),F0(P.typeExpression),_r(),P.isBracketed&&hr("["),Ge(P.name),P.isBracketed&&hr("]"),zd(P.comment)}function Jd(P){hr("@"),Ge(P)}function zd(P){const oe=_A(P);oe&&(_r(),Ue(oe))}function F0(P){P&&(_r(),hr("{"),Ge(P.type),hr("}"))}function zC(P){mu();const oe=P.statements;if(oe.length===0||!em(oe[0])||lc(oe[0])){Pr(P,oe,Zi);return}Zi(P)}function Mm(P){cS(!!P.hasNoDefaultLib,P.syntheticFileReferences||[],P.syntheticTypeReferences||[],P.syntheticLibReferences||[]);for(const oe of P.prepends)if(Px(oe)&&oe.syntheticReferences)for(const gt of oe.syntheticReferences)Ge(gt),mu()}function q3(P){P.isDeclarationFile&&cS(P.hasNoDefaultLib,P.referencedFiles,P.typeReferenceDirectives,P.libReferenceDirectives)}function cS(P,oe,gt,an){if(P){const jr=ye.getTextPos();bg('/// '),Ee&&Ee.sections.push({pos:jr,end:ye.getTextPos(),kind:"no-default-lib"}),mu()}if(M&&M.moduleName&&(bg(`/// `),mu()),M&&M.amdDependencies)for(const jr of M.amdDependencies)jr.name?bg(`/// `):bg(`/// `),mu();for(const jr of oe){const Bi=ye.getTextPos();bg(`/// `),Ee&&Ee.sections.push({pos:Bi,end:ye.getTextPos(),kind:"reference",data:jr.fileName}),mu()}for(const jr of gt){const Bi=ye.getTextPos(),bi=jr.resolutionMode&&jr.resolutionMode!==(M==null?void 0:M.impliedNodeFormat)?`resolution-mode="${jr.resolutionMode===99?"import":"require"}"`:"";bg(`/// `),Ee&&Ee.sections.push({pos:Bi,end:ye.getTextPos(),kind:jr.resolutionMode?jr.resolutionMode===99?"type-import":"type-require":"type",data:jr.fileName}),mu()}for(const jr of an){const Bi=ye.getTextPos();bg(`/// `),Ee&&Ee.sections.push({pos:Bi,end:ye.getTextPos(),kind:"lib",data:jr.fileName}),mu()}}function Zi(P){const oe=P.statements;Hu(P),dt(P.statements,Eu),tn(P);const gt=Gs(oe,an=>!em(an));q3(P),_c(P,oe,1,void 0,gt===-1?oe.length:gt),Ff(P)}function ei(P){const oe=Ya(P);!(oe&1024)&&P.pos!==P.expression.pos&&gm(P.expression.pos),Ut(P.expression),!(oe&2048)&&P.end!==P.expression.end&&Zh(P.expression.end)}function oh(P){uS(P,P.elements,528,void 0)}function bf(P,oe,gt,an){let jr=!!oe;for(let Bi=0;Bi=gt.length||bi===0;if(Ca&&an&32768){f==null||f(gt),g==null||g(gt);return}an&15360&&(hr(gHe(an)),Ca&>&&gm(gt.pos,!0)),f==null||f(gt),Ca?an&1&&!(fe&&(!oe||M&&mx(oe,M)))?mu():an&256&&!(an&524288)&&_r():pm(P,oe,gt,an,jr,Bi,bi,gt.hasTrailingComma,gt),g==null||g(gt),an&15360&&(Ca&>&&Zh(gt.end),hr(hHe(an)))}function pm(P,oe,gt,an,jr,Bi,bi,ss,Ca){const T_=(an&262144)===0;let sf=T_;const dd=Yh(oe,gt[Bi],an);dd?(mu(dd),sf=!1):an&256&&_r(),an&128&&ch();const iv=SHe(P,jr);let Ti,_h,Hn=!1;for(let bS=0;bS0){if(an&131||(ch(),Hn=!0),sf&&an&60&&!Em(xg.pos)){const iE=cg(xg);gm(iE.pos,!!(an&512),!0)}mu(fh),sf=!1}else Ti&&an&512&&_r()}if(_h=Wa(xg),sf){const fh=cg(xg);gm(fh.pos)}else sf=T_;ie=xg.pos,iv(xg,P,jr,bS),Hn&&(dm(),Hn=!1),Ti=xg}const QC=Ti?Ya(Ti):0,sv=Yt||!!(QC&2048),av=ss&&an&64&&an&16;av&&(Ti&&!sv?$i(28,Ti.end,hr,Ti):hr(",")),Ti&&(oe?oe.end:-1)!==Ti.end&&an&60&&!sv&&Zh(av&&(Ca!=null&&Ca.end)?Ca.end:Ti.end),an&128&&dm(),Tn(_h);const vT=VC(oe,gt[Bi+bi-1],an,Ca);vT?mu(vT):an&2097408&&_r()}function Y1(P){ye.writeLiteral(P)}function X3(P){ye.writeStringLiteral(P)}function aT(P){ye.write(P)}function RD(P,oe){ye.writeSymbol(P,oe)}function hr(P){ye.writePunctuation(P)}function Cu(){ye.writeTrailingSemicolon(";")}function is(P){ye.writeKeyword(P)}function qp(P){ye.writeOperator(P)}function Vy(P){ye.writeParameter(P)}function bg(P){ye.writeComment(P)}function _r(){ye.writeSpace(" ")}function oT(P){ye.writeProperty(P)}function A2(P){ye.nonEscapingWrite?ye.nonEscapingWrite(P):ye.write(P)}function mu(P=1){for(let oe=0;oe0)}function ch(){ye.increaseIndent()}function dm(){ye.decreaseIndent()}function _S(P,oe,gt,an){return ze?Z1(P,gt,oe):vS(an,P,gt,oe,Z1)}function fS(P,oe){d&&d(P),oe(ba(P.kind)),y&&y(P)}function Z1(P,oe,gt){const an=ba(P);return oe(an),gt<0?gt:gt+an.length}function R0(P,oe,gt){if(Ya(P)&1)_r();else if(fe){const an=Sp(P,oe,gt);an?mu(an):_r()}else mu()}function cT(P){const oe=P.split(/\r\n?|\n/g),gt=Gie(oe);for(const an of oe){const jr=gt?an.slice(gt):an;jr.length&&(mu(),Ue(jr))}}function mm(P,oe){P?(ch(),mu(P)):oe&&_r()}function N2(P,oe){P&&dm(),oe&&dm()}function Yh(P,oe,gt){if(gt&2||fe){if(gt&65536)return 1;if(oe===void 0)return!P||M&&mx(P,M)?0:1;if(oe.pos===ie||oe.kind===12)return 0;if(M&&P&&!Em(P.pos)&&!lc(oe)&&(!oe.parent||Gc(oe.parent)===Gc(P)))return fe?I2(an=>yae(oe.pos,P.pos,M,an)):I9(P,oe,M)?0:1;if(lT(oe,gt))return 1}return gt&1?1:0}function K1(P,oe,gt){if(gt&2||fe){if(P===void 0||oe===void 0||oe.kind===12)return 0;if(M&&!lc(P)&&!lc(oe))return fe&&rf(P,oe)?I2(an=>bq(P,oe,M,an)):!fe&&Hp(P,oe)?mN(P,oe,M)?0:1:gt&65536?1:0;if(lT(P,gt)||lT(oe,gt))return 1}else if(mw(oe))return 1;return gt&1?1:0}function VC(P,oe,gt,an){if(gt&2||fe){if(gt&65536)return 1;if(oe===void 0)return!P||M&&mx(P,M)?0:1;if(M&&P&&!Em(P.pos)&&!lc(oe)&&(!oe.parent||oe.parent===P)){if(fe){const jr=an&&!Em(an.end)?an.end:oe.end;return I2(Bi=>vae(jr,P.end,M,Bi))}return mae(P,oe,M)?0:1}if(lT(oe,gt))return 1}return gt&1&&!(gt&131072)?1:0}function I2(P){w.assert(!!fe);const oe=P(!0);return oe===0?P(!1):oe}function Q3(P,oe){const gt=fe&&Yh(oe,P,0);return gt&&mm(gt,!1),!!gt}function pS(P,oe){const gt=fe&&VC(oe,P,0,void 0);gt&&mu(gt)}function lT(P,oe){if(lc(P)){const gt=mw(P);return gt===void 0?(oe&65536)!==0:gt}return(oe&65536)!==0}function Sp(P,oe,gt){return Ya(P)&262144?0:(P=al(P),oe=al(oe),gt=al(gt),mw(gt)?1:M&&!lc(P)&&!lc(oe)&&!lc(gt)?fe?I2(an=>bq(oe,gt,M,an)):mN(oe,gt,M)?0:1:0)}function uT(P){return P.statements.length===0&&(!M||mN(P,P,M))}function al(P){for(;P.kind===217&&lc(P);)P=P.expression;return P}function iu(P,oe){if(vc(P)||QS(P))return fT(P);if(Ba(P)&&P.textSourceNode)return iu(P.textSourceNode,oe);const gt=M,an=!!gt&&!!P.parent&&!lc(P);if(Dh(P)){if(!an||qn(P)!==Gc(gt))return kr(P)}else if(wm(P)){if(!an||qn(P)!==Gc(gt))return _w(P)}else if(w.assertNode(P,_b),!an)return P.text;return pb(gt,P,oe)}function _T(P,oe,gt){if(P.kind===11&&P.textSourceNode){const jr=P.textSourceNode;if(Je(jr)||Qi(jr)||Hf(jr)||wm(jr)){const Bi=Hf(jr)?jr.text:iu(jr);return gt?`"${sq(Bi)}"`:oe||Ya(P)&16777216?`"${Mh(Bi)}"`:`"${lN(Bi)}"`}else return _T(jr,oe,gt)}const an=(oe?1:0)|(gt?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target>=8?8:0);return ise(P,M,an)}function Hu(P){P&&Ya(P)&1048576||(ve.push(Q),Q=0,ce.push(J),J=void 0,X.push(se))}function Ff(P){P&&Ya(P)&1048576||(Q=ve.pop(),J=ce.pop(),se=X.pop())}function O2(P){(!se||se===pc(X))&&(se=new Set),se.add(P)}function fd(P,oe){ne.push(ge),ge=P,pe.push(se),we=oe}function ev(){ge=ne.pop(),we=pe.pop()}function tv(P){(!we||we===pc(pe))&&(we=new Set),we.add(P)}function Eu(P){if(P)switch(P.kind){case 241:dt(P.statements,Eu);break;case 256:case 254:case 246:case 247:Eu(P.statement);break;case 245:Eu(P.thenStatement),Eu(P.elseStatement);break;case 248:case 250:case 249:Eu(P.initializer),Eu(P.statement);break;case 255:Eu(P.caseBlock);break;case 269:dt(P.clauses,Eu);break;case 296:case 297:dt(P.statements,Eu);break;case 258:Eu(P.tryBlock),Eu(P.catchClause),Eu(P.finallyBlock);break;case 299:Eu(P.variableDeclaration),Eu(P.block);break;case 243:Eu(P.declarationList);break;case 261:dt(P.declarations,Eu);break;case 260:case 169:case 208:case 263:xp(P.name);break;case 262:xp(P.name),Ya(P)&1048576&&(dt(P.parameters,Eu),Eu(P.body));break;case 206:case 207:dt(P.elements,Eu);break;case 272:Eu(P.importClause);break;case 273:xp(P.name),Eu(P.namedBindings);break;case 274:xp(P.name);break;case 280:xp(P.name);break;case 275:dt(P.elements,Eu);break;case 276:xp(P.propertyName||P.name);break}}function WC(P){if(P)switch(P.kind){case 303:case 304:case 172:case 174:case 177:case 178:xp(P.name);break}}function xp(P){P&&(vc(P)||QS(P)?fT(P):ca(P)&&Eu(P))}function fT(P){const oe=P.emitNode.autoGenerate;if((oe.flags&7)===4)return pT(a7(P),Qi(P),oe.flags,oe.prefix,oe.suffix);{const gt=oe.id;return Z[gt]||(Z[gt]=Z3(P))}}function pT(P,oe,gt,an,jr){const Bi=ho(P),bi=oe?G:V;return bi[Bi]||(bi[Bi]=dT(P,oe,gt??0,q4(an,fT),q4(jr)))}function ic(P,oe){return F2(P)&&!Y3(P,oe)&&!z.has(P)}function Y3(P,oe){return oe?!!(we!=null&&we.has(P)):!!(se!=null&&se.has(P))}function F2(P,oe){return M?RF(M,P,r):!0}function dS(P,oe){for(let gt=oe;gt&&bb(gt,oe);gt=gt.nextContainer)if(Ug(gt)&>.locals){const an=gt.locals.get(Nc(P));if(an&&an.flags&3257279)return!1}return!0}function jD(P){switch(P){case"":return Q;case"#":return ge;default:return(J==null?void 0:J.get(P))??0}}function U_(P,oe){switch(P){case"":Q=oe;break;case"#":ge=oe;break;default:J??(J=new Map),J.set(P,oe);break}}function j0(P,oe,gt,an,jr){an.length>0&&an.charCodeAt(0)===35&&(an=an.slice(1));const Bi=l2(gt,an,"",jr);let bi=jD(Bi);if(P&&!(bi&P)){const Ca=l2(gt,an,P===268435456?"_i":"_n",jr);if(ic(Ca,gt))return bi|=P,gt?tv(Ca):oe&&O2(Ca),U_(Bi,bi),Ca}for(;;){const ss=bi&268435455;if(bi++,ss!==8&&ss!==13){const Ca=ss<26?"_"+String.fromCharCode(97+ss):"_"+(ss-26),T_=l2(gt,an,Ca,jr);if(ic(T_,gt))return gt?tv(T_):oe&&O2(T_),U_(Bi,bi),T_}}}function Sg(P,oe=ic,gt,an,jr,Bi,bi){if(P.length>0&&P.charCodeAt(0)===35&&(P=P.slice(1)),Bi.length>0&&Bi.charCodeAt(0)===35&&(Bi=Bi.slice(1)),gt){const Ca=l2(jr,Bi,P,bi);if(oe(Ca,jr))return jr?tv(Ca):an?O2(Ca):z.add(Ca),Ca}P.charCodeAt(P.length-1)!==95&&(P+="_");let ss=1;for(;;){const Ca=l2(jr,Bi,P+ss,bi);if(oe(Ca,jr))return jr?tv(Ca):an?O2(Ca):z.add(Ca),Ca;ss++}}function qC(P){return Sg(P,F2,!0,!1,!1,"","")}function rp(P){const oe=iu(P.name);return dS(oe,si(P,Ug))?oe:Sg(oe,ic,!1,!1,!1,"","")}function HC(P){const oe=a4(P),gt=Ba(oe)?ase(oe.text):"module";return Sg(gt,ic,!1,!1,!1,"","")}function Lf(){return Sg("default",ic,!1,!1,!1,"","")}function GC(){return Sg("class",ic,!1,!1,!1,"","")}function Wy(P,oe,gt,an){return Je(P.name)?pT(P.name,oe):j0(0,!1,oe,gt,an)}function dT(P,oe,gt,an,jr){switch(P.kind){case 80:case 81:return Sg(iu(P),ic,!!(gt&16),!!(gt&8),oe,an,jr);case 267:case 266:return w.assert(!an&&!jr&&!oe),rp(P);case 272:case 278:return w.assert(!an&&!jr&&!oe),HC(P);case 262:case 263:{w.assert(!an&&!jr&&!oe);const Bi=P.name;return Bi&&!vc(Bi)?dT(Bi,!1,gt,an,jr):Lf()}case 277:return w.assert(!an&&!jr&&!oe),Lf();case 231:return w.assert(!an&&!jr&&!oe),GC();case 174:case 177:case 178:return Wy(P,oe,an,jr);case 167:return j0(0,!0,oe,an,jr);default:return j0(0,!1,oe,an,jr)}}function Z3(P){const oe=P.emitNode.autoGenerate,gt=q4(oe.prefix,fT),an=q4(oe.suffix);switch(oe.flags&7){case 1:return j0(0,!!(oe.flags&8),Qi(P),gt,an);case 2:return w.assertNode(P,Je),j0(268435456,!!(oe.flags&8),!1,gt,an);case 3:return Sg(kr(P),oe.flags&32?F2:ic,!!(oe.flags&16),!!(oe.flags&8),Qi(P),gt,an)}return w.fail(`Unsupported GeneratedIdentifierKind: ${w.formatEnum(oe.flags&7,qO,!0)}.`)}function K3(P,oe){const gt=me(2,P,oe),an=nn,jr=sn,Bi=In;mT(oe),gt(P,oe),eE(oe,an,jr,Bi)}function mT(P){const oe=Ya(P),gt=cg(P);nv(P,oe,gt.pos,gt.end),oe&4096&&(Yt=!0)}function eE(P,oe,gt,an){const jr=Ya(P),Bi=cg(P);jr&4096&&(Yt=!1),ip(P,jr,Bi.pos,Bi.end,oe,gt,an);const bi=hoe(P);bi&&ip(P,jr,bi.pos,bi.end,oe,gt,an)}function nv(P,oe,gt,an){zi(),Zt=!1;const jr=gt<0||(oe&1024)!==0||P.kind===12,Bi=an<0||(oe&2048)!==0||P.kind===12;(gt>0||an>0)&>!==an&&(jr||mS(gt,P.kind!==359),(!jr||gt>=0&&oe&1024)&&(nn=gt),(!Bi||an>=0&&oe&2048)&&(sn=an,P.kind===261&&(In=an))),dt(A4(P),lh),Os()}function ip(P,oe,gt,an,jr,Bi,bi){zi();const ss=an<0||(oe&2048)!==0||P.kind===12;dt(jN(P),tE),(gt>0||an>0)&>!==an&&(nn=jr,sn=Bi,In=bi,!ss&&P.kind!==359&&Rm(an)),Os()}function lh(P){(P.hasLeadingNewline||P.kind===2)&&ye.writeLine(),gT(P),P.hasTrailingNewLine||P.kind===2?ye.writeLine():ye.writeSpace(" ")}function tE(P){ye.isAtStartOfLine()||ye.writeSpace(" "),gT(P),P.hasTrailingNewLine&&ye.writeLine()}function gT(P){const oe=po(P),gt=P.kind===3?_k(oe):void 0;y4(oe,gt,ye,0,oe.length,C)}function po(P){return P.kind===3?`/*${P.text}*/`:`//${P.text}`}function Pr(P,oe,gt){zi();const{pos:an,end:jr}=oe,Bi=Ya(P),bi=an<0||(Bi&1024)!==0,ss=Yt||jr<0||(Bi&2048)!==0;bi||pd(oe),Os(),Bi&4096&&!Yt?(Yt=!0,gt(P),Yt=!1):gt(P),zi(),ss||(mS(oe.end,!0),Zt&&!ye.isAtStartOfLine()&&ye.writeLine()),Os()}function Hp(P,oe){return P=Gc(P),P.parent&&P.parent===Gc(oe).parent}function rf(P,oe){if(oe.pos-1&&an.indexOf(oe)===jr+1}function mS(P,oe){Zt=!1,oe?P===0&&(M!=null&&M.isDeclarationFile)?e0(P,L2):e0(P,hT):P===0&&e0(P,nE)}function nE(P,oe,gt,an,jr){$p(P,oe)&&hT(P,oe,gt,an,jr)}function L2(P,oe,gt,an,jr){$p(P,oe)||hT(P,oe,gt,an,jr)}function gS(P,oe){return e.onlyPrintJsDocStyle?YH(P,oe)||jF(P,oe):!0}function hT(P,oe,gt,an,jr){!M||!gS(M.text,P)||(Zt||(eae(Et(),ye,jr,P),Zt=!0),qo(P),y4(M.text,Et(),ye,P,oe,C),qo(oe),an?ye.writeLine():gt===3&&ye.writeSpace(" "))}function Zh(P){Yt||P===-1||mS(P,!0)}function Rm(P){$C(P,Gp)}function Gp(P,oe,gt,an){!M||!gS(M.text,P)||(ye.isAtStartOfLine()||ye.writeSpace(" "),qo(P),y4(M.text,Et(),ye,P,oe,C),qo(oe),an&&ye.writeLine())}function gm(P,oe,gt){Yt||(zi(),$C(P,oe?Gp:gt?B0:Kh),Os())}function B0(P,oe,gt){M&&(qo(P),y4(M.text,Et(),ye,P,oe,C),qo(oe),gt===2&&ye.writeLine())}function Kh(P,oe,gt,an){M&&(qo(P),y4(M.text,Et(),ye,P,oe,C),qo(oe),an?ye.writeLine():ye.writeSpace(" "))}function e0(P,oe){M&&(nn===-1||P!==nn)&&(Pl(P)?rE(oe):tA(M.text,P,oe,P))}function $C(P,oe){M&&(sn===-1||P!==sn&&P!==In)&&nA(M.text,P,oe)}function Pl(P){return hn!==void 0&&so(hn).nodePos===P}function rE(P){if(!M)return;const oe=so(hn).detachedCommentEndPos;hn.length-1?hn.pop():hn=void 0,tA(M.text,oe,P,oe)}function pd(P){const oe=M&&nae(M.text,Et(),ye,uh,P,C,Yt);oe&&(hn?hn.push(oe):hn=[oe])}function uh(P,oe,gt,an,jr,Bi){!M||!gS(M.text,an)||(qo(an),y4(P,oe,gt,an,jr,Bi),qo(jr))}function $p(P,oe){return!!M&&dW(M.text,P,oe)}function hS(P){return P.parsedSourceMap===void 0&&P.sourceMapText!==void 0&&(P.parsedSourceMap=XG(P.sourceMapText)||!1),P.parsedSourceMap||void 0}function M2(P,oe){const gt=me(3,P,oe);XC(oe),gt(P,oe),yT(oe)}function XC(P){const oe=Ya(P),gt=Ty(P);if(XV(P)){w.assertIsDefined(P.parent,"UnparsedNodes must have parent pointers");const an=hS(P.parent);an&&st&&st.appendSourceMap(ye.getLine(),ye.getColumn(),an,P.parent.sourceMapPath,P.parent.getLineAndCharacterOfPosition(P.pos),P.parent.getLineAndCharacterOfPosition(P.end))}else{const an=gt.source||zt;P.kind!==359&&!(oe&32)&>.pos>=0&&yS(gt.source||zt,Xp(an,gt.pos)),oe&128&&(ze=!0)}}function yT(P){const oe=Ya(P),gt=Ty(P);XV(P)||(oe&128&&(ze=!1),P.kind!==359&&!(oe&64)&>.end>=0&&yS(gt.source||zt,gt.end))}function Xp(P,oe){return P.skipTrivia?P.skipTrivia(oe):za(P.text,oe)}function qo(P){if(ze||Em(P)||R2(zt))return;const{line:oe,character:gt}=Ao(zt,P);st.addMapping(ye.getLine(),ye.getColumn(),yt,oe,gt,void 0)}function yS(P,oe){if(P!==zt){const gt=zt,an=yt;J0(P),qo(oe),rv(gt,an)}else qo(oe)}function vS(P,oe,gt,an,jr){if(ze||P&&i9(P))return jr(oe,gt,an);const Bi=P&&P.emitNode,bi=Bi&&Bi.flags||0,ss=Bi&&Bi.tokenSourceMapRanges&&Bi.tokenSourceMapRanges[oe],Ca=ss&&ss.source||zt;return an=Xp(Ca,ss?ss.pos:an),!(bi&256)&&an>=0&&yS(Ca,an),an=jr(oe,gt,an),ss&&(an=ss.end),!(bi&512)&&an>=0&&yS(Ca,an),an}function J0(P){if(!ze){if(zt=P,P===$e){yt=kt;return}R2(P)||(yt=st.addSource(P.fileName),e.inlineSources&&st.setSourceContent(yt,P.text),$e=P,kt=yt)}}function rv(P,oe){zt=P,yt=oe}function R2(P){return zc(P.fileName,".json")}}function mHe(){const e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}function gHe(e){return sue[e&15360][0]}function hHe(e){return sue[e&15360][1]}function yHe(e,t,r,i){t(e)}function vHe(e,t,r,i){t(e,r.select(i))}function bHe(e,t,r,i){t(e,r)}function SHe(e,t){return e.length===1?yHe:typeof t=="object"?vHe:bHe}var sue,_R,v$,$b,b$,j7,xHe=K({"src/compiler/emitter.ts"(){ua(),ua(),HS(),sue=mHe(),_R={hasGlobalName:ta,getReferencedExportContainer:ta,getReferencedImportDeclaration:ta,getReferencedDeclarationWithCollidingName:ta,isDeclarationWithCollidingName:ta,isValueAliasDeclaration:ta,isReferencedAliasDeclaration:ta,isTopLevelValueImportEqualsWithEntityName:ta,getNodeCheckFlags:ta,isDeclarationVisible:ta,isLateBound:e=>!1,collectLinkedAliases:ta,isImplementationOfOverload:ta,isRequiredInitializedParameter:ta,isOptionalUninitializedParameterProperty:ta,isExpandoFunctionDeclaration:ta,getPropertiesOfContainerFunction:ta,createTypeOfDeclaration:ta,createReturnTypeOfSignatureDeclaration:ta,createTypeOfExpression:ta,createLiteralConstValue:ta,isSymbolAccessible:ta,isEntityNameVisible:ta,getConstantValue:ta,getReferencedValueDeclaration:ta,getReferencedValueDeclarations:ta,getTypeReferenceSerializationKind:ta,isOptionalParameter:ta,moduleExportsSomeValue:ta,isArgumentsLocalBinding:ta,getExternalModuleFileFromDeclaration:ta,getTypeReferenceDirectivesForEntityName:ta,getTypeReferenceDirectivesForSymbol:ta,isLiteralConstDeclaration:ta,getJsxFactoryEntity:ta,getJsxFragmentFactoryEntity:ta,getAllAccessorDeclarations:ta,getSymbolOfExternalModuleSpecifier:ta,isBindingCapturedByNode:ta,getDeclarationStatementsForSourceFile:ta,isImportRequiredByAugmentation:ta,tryFindAmbientModule:ta},v$=X_(()=>d2({})),$b=X_(()=>d2({removeComments:!0})),b$=X_(()=>d2({removeComments:!0,neverAsciiEscape:!0})),j7=X_(()=>d2({removeComments:!0,omitTrailingSemicolon:!0}))}});function fR(e,t,r){if(!e.getDirectories||!e.readDirectory)return;const i=new Map,s=e_(r);return{useCaseSensitiveFileNames:r,fileExists:T,readFile:(J,ne)=>e.readFile(J,ne),directoryExists:e.directoryExists&&C,getDirectories:D,readDirectory:M,createDirectory:e.createDirectory&&N,writeFile:e.writeFile&&x,addOrDeleteFileOrDirectory:G,addOrDeleteFile:Z,clearCache:ce,realpath:e.realpath&&V};function o(J){return hc(J,t,s)}function c(J){return i.get(ou(J))}function u(J){const ne=c(oi(J));return ne&&(ne.sortedAndCanonicalizedFiles||(ne.sortedAndCanonicalizedFiles=ne.files.map(s).sort(),ne.sortedAndCanonicalizedDirectories=ne.directories.map(s).sort()),ne)}function f(J){return xl(ka(J))}function g(J,ne){var ge;if(!e.realpath||ou(o(e.realpath(J)))===ne){const ve={files:Kt(e.readDirectory(J,void 0,void 0,["*.*"]),f)||[],directories:e.getDirectories(J)||[]};return i.set(ou(ne),ve),ve}if((ge=e.directoryExists)!=null&&ge.call(e,J))return i.set(ne,!1),!1}function d(J,ne){ne=ou(ne);const ge=c(ne);if(ge)return ge;try{return g(J,ne)}catch{w.assert(!i.has(ou(ne)));return}}function y(J,ne){return ay(J,ne,dc,p_)>=0}function x(J,ne,ge){const ve=o(J),Q=u(ve);return Q&&z(Q,f(J),!0),e.writeFile(J,ne,ge)}function T(J){const ne=o(J),ge=u(ne);return ge&&y(ge.sortedAndCanonicalizedFiles,s(f(J)))||e.fileExists(J)}function C(J){const ne=o(J);return i.has(ou(ne))||e.directoryExists(J)}function N(J){const ne=o(J),ge=u(ne);if(ge){const ve=f(J),Q=s(ve),X=ge.sortedAndCanonicalizedDirectories;$s(X,Q,p_)&&ge.directories.push(ve)}e.createDirectory(J)}function D(J){const ne=o(J),ge=d(J,ne);return ge?ge.directories.slice():e.getDirectories(J)}function M(J,ne,ge,ve,Q){const X=o(J),se=d(J,X);let pe;if(se!==void 0)return Iq(J,ne,ge,ve,r,t,Q,we,V);return e.readDirectory(J,ne,ge,ve,Q);function we(ie){const ye=o(ie);if(ye===X)return se||fe(ie,ye);const Ne=d(ie,ye);return Ne!==void 0?Ne||fe(ie,ye):fL}function fe(ie,ye){if(pe&&ye===X)return pe;const Ne={files:Kt(e.readDirectory(ie,void 0,void 0,["*.*"]),f)||Ke,directories:e.getDirectories(ie)||Ke};return ye===X&&(pe=Ne),Ne}}function V(J){return e.realpath?e.realpath(J):J}function G(J,ne){if(c(ne)!==void 0){ce();return}const ve=u(ne);if(!ve)return;if(!e.directoryExists){ce();return}const Q=f(J),X={fileExists:e.fileExists(J),directoryExists:e.directoryExists(J)};return X.directoryExists||y(ve.sortedAndCanonicalizedDirectories,s(Q))?ce():z(ve,Q,X.fileExists),X}function Z(J,ne,ge){if(ge===1)return;const ve=u(ne);ve&&z(ve,f(J),ge===0)}function z(J,ne,ge){const ve=J.sortedAndCanonicalizedFiles,Q=s(ne);if(ge)$s(ve,Q,p_)&&J.files.push(ne);else{const X=ay(ve,Q,dc,p_);if(X>=0){ve.splice(X,1);const se=J.files.findIndex(pe=>s(pe)===Q);J.files.splice(se,1)}}}function ce(){i.clear()}}function pR(e,t,r,i,s){var o;const c=ab(((o=t==null?void 0:t.configFile)==null?void 0:o.extendedSourceFiles)||Ke,s);r.forEach((u,f)=>{c.has(f)||(u.projects.delete(e),u.close())}),c.forEach((u,f)=>{const g=r.get(f);g?g.projects.add(e):r.set(f,{projects:new Set([e]),watcher:i(u,f),close:()=>{const d=r.get(f);!d||d.projects.size!==0||(d.watcher.close(),r.delete(f))}})})}function S$(e,t){t.forEach(r=>{r.projects.delete(e)&&r.close()})}function dR(e,t,r){e.delete(t)&&e.forEach(({extendedResult:i},s)=>{var o;(o=i.extendedSourceFiles)!=null&&o.some(c=>r(c)===t)&&dR(e,s,r)})}function x$(e,t,r){QP(t,e.getMissingFilePaths(),{createNewValue:r,onDeleteValue:Cm})}function B7(e,t,r){t?QP(e,new Map(Object.entries(t)),{createNewValue:i,onDeleteValue:ad,onExistingValue:s}):wf(e,ad);function i(o,c){return{watcher:r(o,c),flags:c}}function s(o,c,u){o.flags!==c&&(o.watcher.close(),e.set(u,i(u,c)))}}function J7({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:r,configFileName:i,options:s,program:o,extraFileExtensions:c,currentDirectory:u,useCaseSensitiveFileNames:f,writeLog:g,toPath:d,getScriptKind:y}){const x=ER(r);if(!x)return g(`Project: ${i} Detected ignored path: ${t}`),!0;if(r=x,r===e)return!1;if(lk(r)&&!(Jae(t,s,c)||M()))return g(`Project: ${i} Detected file add/remove of non supported extension: ${t}`),!0;if(xce(t,s.configFile.configFileSpecs,Ss(oi(i),u),f,u))return g(`Project: ${i} Detected excluded file: ${t}`),!0;if(!o||Vo(s)||s.outDir)return!1;if(Wu(r)){if(s.declarationDir)return!1}else if(!Vl(r,D4))return!1;const T=Y_(r),C=Ps(o)?void 0:THe(o)?o.getProgramOrUndefined():o,N=!C&&!Ps(o)?o:void 0;if(D(T+".ts")||D(T+".tsx"))return g(`Project: ${i} Detected output file: ${t}`),!0;return!1;function D(V){return C?!!C.getSourceFileByPath(V):N?N.getState().fileInfos.has(V):!!Cn(o,G=>d(G)===V)}function M(){if(!y)return!1;switch(y(t)){case 3:case 4:case 7:case 5:return!0;case 1:case 2:return P1(s);case 6:return i2(s);case 0:return!1}}}function THe(e){return!!e.getState}function aue(e,t){return e?e.isEmittedFile(t):!1}function T$(e,t,r,i){Wre(t===2?r:ao);const s={watchFile:(N,D,M,V)=>e.watchFile(N,D,M,V),watchDirectory:(N,D,M,V)=>e.watchDirectory(N,D,(M&1)!==0,V)},o=t!==0?{watchFile:T("watchFile"),watchDirectory:T("watchDirectory")}:void 0,c=t===2?{watchFile:y,watchDirectory:x}:o||s,u=t===2?d:u3;return{watchFile:f("watchFile"),watchDirectory:f("watchDirectory")};function f(N){return(D,M,V,G,Z,z)=>{var ce;return xM(D,N==="watchFile"?G==null?void 0:G.excludeFiles:G==null?void 0:G.excludeDirectories,g(),((ce=e.getCurrentDirectory)==null?void 0:ce.call(e))||"")?u(D,V,G,Z,z):c[N].call(void 0,D,M,V,G,Z,z)}}function g(){return typeof e.useCaseSensitiveFileNames=="boolean"?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames()}function d(N,D,M,V,G){return r(`ExcludeWatcher:: Added:: ${C(N,D,M,V,G,i)}`),{close:()=>r(`ExcludeWatcher:: Close:: ${C(N,D,M,V,G,i)}`)}}function y(N,D,M,V,G,Z){r(`FileWatcher:: Added:: ${C(N,M,V,G,Z,i)}`);const z=o.watchFile(N,D,M,V,G,Z);return{close:()=>{r(`FileWatcher:: Close:: ${C(N,M,V,G,Z,i)}`),z.close()}}}function x(N,D,M,V,G,Z){const z=`DirectoryWatcher:: Added:: ${C(N,M,V,G,Z,i)}`;r(z);const ce=cc(),J=o.watchDirectory(N,D,M,V,G,Z),ne=cc()-ce;return r(`Elapsed:: ${ne}ms ${z}`),{close:()=>{const ge=`DirectoryWatcher:: Close:: ${C(N,M,V,G,Z,i)}`;r(ge);const ve=cc();J.close();const Q=cc()-ve;r(`Elapsed:: ${Q}ms ${ge}`)}}}function T(N){return(D,M,V,G,Z,z)=>s[N].call(void 0,D,(...ce)=>{const J=`${N==="watchFile"?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${ce[0]} ${ce[1]!==void 0?ce[1]:""}:: ${C(D,V,G,Z,z,i)}`;r(J);const ne=cc();M.call(void 0,...ce);const ge=cc()-ne;r(`Elapsed:: ${ge}ms ${J}`)},V,G,Z,z)}function C(N,D,M,V,G,Z){return`WatchInfo: ${N} ${D} ${JSON.stringify(M)} ${Z?Z(V,G):G===void 0?V:`${V} ${G}`}`}}function z7(e){const t=e==null?void 0:e.fallbackPolling;return{watchFile:t!==void 0?t:1}}function ad(e){e.watcher.close()}var k$,C$,kHe=K({"src/compiler/watchUtilities.ts"(){ua(),k$=(e=>(e[e.Update=0]="Update",e[e.RootNamesAndUpdate=1]="RootNamesAndUpdate",e[e.Full=2]="Full",e))(k$||{}),C$=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(C$||{})}});function oue(e,t,r="tsconfig.json"){return Yd(e,i=>{const s=Zr(i,r);return t(s)?s:void 0})}function mR(e,t){const r=oi(t),i=zf(e)?e:Zr(r,e);return ka(i)}function cue(e,t,r){let i;return dt(e,o=>{const c=$8(o,t);if(c.pop(),!i){i=c;return}const u=Math.min(i.length,c.length);for(let f=0;f{let c;try{gc("beforeIORead"),c=e(i,t().charset),gc("afterIORead"),Ap("I/O Read","beforeIORead","afterIORead")}catch(u){o&&o(u.message),c=""}return c!==void 0?l7(i,c,s,r):void 0}}function P$(e,t,r){return(i,s,o,c)=>{try{gc("beforeIOWrite"),lq(i,s,o,e,t,r),gc("afterIOWrite"),Ap("I/O Write","beforeIOWrite","afterIOWrite")}catch(u){c&&c(u.message)}}}function w$(e,t,r=Bu){const i=new Map,s=e_(r.useCaseSensitiveFileNames);function o(d){return i.has(d)?!0:(g.directoryExists||r.directoryExists)(d)?(i.set(d,!0),!0):!1}function c(){return oi(ka(r.getExecutingFilePath()))}const u=Sy(e),f=r.realpath&&(d=>r.realpath(d)),g={getSourceFile:E$(d=>g.readFile(d),()=>e,t),getDefaultLibLocation:c,getDefaultLibFileName:d=>Zr(c(),iA(d)),writeFile:P$((d,y,x)=>r.writeFile(d,y,x),d=>(g.createDirectory||r.createDirectory)(d),d=>o(d)),getCurrentDirectory:X_(()=>r.getCurrentDirectory()),useCaseSensitiveFileNames:()=>r.useCaseSensitiveFileNames,getCanonicalFileName:s,getNewLine:()=>u,fileExists:d=>r.fileExists(d),readFile:d=>r.readFile(d),trace:d=>r.write(d+u),directoryExists:d=>r.directoryExists(d),getEnvironmentVariable:d=>r.getEnvironmentVariable?r.getEnvironmentVariable(d):"",getDirectories:d=>r.getDirectories(d),realpath:f,readDirectory:(d,y,x,T,C)=>r.readDirectory(d,y,x,T,C),createDirectory:d=>r.createDirectory(d),createHash:fa(r,r.createHash)};return g}function U7(e,t,r){const i=e.readFile,s=e.fileExists,o=e.directoryExists,c=e.createDirectory,u=e.writeFile,f=new Map,g=new Map,d=new Map,y=new Map,x=N=>{const D=t(N),M=f.get(D);return M!==void 0?M!==!1?M:void 0:T(D,N)},T=(N,D)=>{const M=i.call(e,D);return f.set(N,M!==void 0?M:!1),M};e.readFile=N=>{const D=t(N),M=f.get(D);return M!==void 0?M!==!1?M:void 0:!zc(N,".json")&&!nue(N)?i.call(e,N):T(D,N)};const C=r?(N,D,M,V)=>{const G=t(N),Z=typeof D=="object"?D.impliedNodeFormat:void 0,z=y.get(Z),ce=z==null?void 0:z.get(G);if(ce)return ce;const J=r(N,D,M,V);return J&&(Wu(N)||zc(N,".json"))&&y.set(Z,(z||new Map).set(G,J)),J}:void 0;return e.fileExists=N=>{const D=t(N),M=g.get(D);if(M!==void 0)return M;const V=s.call(e,N);return g.set(D,!!V),V},u&&(e.writeFile=(N,D,...M)=>{const V=t(N);g.delete(V);const G=f.get(V);G!==void 0&&G!==D?(f.delete(V),y.forEach(Z=>Z.delete(V))):C&&y.forEach(Z=>{const z=Z.get(V);z&&z.text!==D&&Z.delete(V)}),u.call(e,N,D,...M)}),o&&(e.directoryExists=N=>{const D=t(N),M=d.get(D);if(M!==void 0)return M;const V=o.call(e,N);return d.set(D,!!V),V},c&&(e.createDirectory=N=>{const D=t(N);d.delete(D),c.call(e,N)})),{originalReadFile:i,originalFileExists:s,originalDirectoryExists:o,originalCreateDirectory:c,originalWriteFile:u,getSourceFileWithCache:C,readFileWithCache:x}}function o6e(e,t,r){let i;return i=Mr(i,e.getConfigFileParsingDiagnostics()),i=Mr(i,e.getOptionsDiagnostics(r)),i=Mr(i,e.getSyntacticDiagnostics(t,r)),i=Mr(i,e.getGlobalDiagnostics(r)),i=Mr(i,e.getSemanticDiagnostics(t,r)),rd(e.getCompilerOptions())&&(i=Mr(i,e.getDeclarationDiagnostics(t,r))),R6(i||Ke)}function c6e(e,t){let r="";for(const i of e)r+=D$(i,t);return r}function D$(e,t){const r=`${GS(e)} TS${e.code}: ${fg(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){const{line:i,character:s}=Ao(e.file,e.start),o=e.file.fileName;return`${aP(o,t.getCurrentDirectory(),u=>t.getCanonicalFileName(u))}(${i+1},${s+1}): `+r}return r}function l6e(e){switch(e){case 1:return"\x1B[91m";case 0:return"\x1B[93m";case 2:return w.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1B[94m"}}function Xb(e,t){return t+e+pue}function u6e(e,t,r,i,s,o){const{line:c,character:u}=Ao(e,t),{line:f,character:g}=Ao(e,t+r),d=Ao(e,e.text.length).line,y=f-c>=4;let x=(f+1+"").length;y&&(x=Math.max(due.length,x));let T="";for(let C=c;C<=f;C++){T+=o.getNewLine(),y&&c+1r.getCanonicalFileName(f)):e.fileName;let u="";return u+=i(c,"\x1B[96m"),u+=":",u+=i(`${s+1}`,"\x1B[93m"),u+=":",u+=i(`${o+1}`,"\x1B[93m"),u}function uue(e,t){let r="";for(const i of e){if(i.file){const{file:s,start:o}=i;r+=A$(s,o,t),r+=" - "}if(r+=Xb(GS(i),l6e(i.category)),r+=Xb(` TS${i.code}: `,"\x1B[90m"),r+=fg(i.messageText,t.getNewLine()),i.file&&i.code!==p.File_appears_to_be_binary.code&&(r+=t.getNewLine(),r+=u6e(i.file,i.start,i.length,"",l6e(i.category),t)),i.relatedInformation){r+=t.getNewLine();for(const{file:s,start:o,length:c,messageText:u}of i.relatedInformation)s&&(r+=t.getNewLine(),r+=p6e+A$(s,o,t),r+=u6e(s,o,c,mue,"\x1B[96m",t)),r+=t.getNewLine(),r+=mue+fg(u,t.getNewLine())}r+=t.getNewLine()}return r}function fg(e,t,r=0){if(Ls(e))return e;if(e===void 0)return"";let i="";if(r){i+=t;for(let s=0;sY4(o,e,r,i,s,t,c)}}function L$(e){return Ls(e)?e:jg(e.fileName)}function gR(e,t,r,i,s){return{nameAndMode:d6e,resolve:(o,c)=>Rce(o,e,r,i,t,s,c)}}function W7(e,t,r,i,s,o,c,u){if(e.length===0)return Ke;const f=[],g=new Map,d=u(t,r,i,o,c);for(const y of e){const x=d.nameAndMode.getName(y),T=d.nameAndMode.getMode(y,s,(r==null?void 0:r.commandLine.options)||i),C=Jw(x,T);let N=g.get(C);N||g.set(C,N=d.resolve(x,T)),f.push(N)}return f}function M$(e,t){return hR(void 0,e,(r,i)=>r&&t(r,i))}function hR(e,t,r,i){let s;return o(e,t,void 0);function o(c,u,f){if(i){const g=i(c,f);if(g)return g}return dt(u,(g,d)=>{if(g&&(s!=null&&s.has(g.sourceFile.path)))return;const y=r(g,f,d);return y||!g?y:((s||(s=new Set)).add(g.sourceFile.path),o(g.commandLine.projectReferences,g.references,g))})}}function yR(e,t,r){const i=e.configFilePath?oi(e.configFilePath):t;return Zr(i,`__lib_node_modules_lookup_${r}__.ts`)}function R$(e){const t=e.split(".");let r=t[1],i=2;for(;t[i]&&t[i]!=="d";)r+=(i===2?"/":"-")+t[i],i++;return"@typescript/lib-"+r}function _6e(e){const t=jg(e.fileName),r=TM.get(t);return{libName:t,libFileName:r}}function m2(e){switch(e==null?void 0:e.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function i3(e){return e.pos!==void 0}function tD(e,t){var r,i,s,o;const c=w.checkDefined(e.getSourceFileByPath(t.file)),{kind:u,index:f}=t;let g,d,y,x;switch(u){case 3:const T=H7(c,f);if(y=(i=(r=e.getResolvedModule(c,T.text,e.getModeForUsageLocation(c,T)))==null?void 0:r.resolvedModule)==null?void 0:i.packageId,T.pos===-1)return{file:c,packageId:y,text:T.text};g=za(c.text,T.pos),d=T.end;break;case 4:({pos:g,end:d}=c.referencedFiles[f]);break;case 5:({pos:g,end:d,resolutionMode:x}=c.typeReferenceDirectives[f]),y=(o=(s=e.getResolvedTypeReferenceDirective(c,jg(c.typeReferenceDirectives[f].fileName),x||c.impliedNodeFormat))==null?void 0:s.resolvedTypeReferenceDirective)==null?void 0:o.packageId;break;case 7:({pos:g,end:d}=c.libReferenceDirectives[f]);break;default:return w.assertNever(u)}return{file:c,pos:g,end:d,packageId:y}}function j$(e,t,r,i,s,o,c,u,f,g){if(!e||u!=null&&u()||!Ac(e.getRootFileNames(),t))return!1;let d;if(!Ac(e.getProjectReferences(),g,N)||e.getSourceFiles().some(T))return!1;const y=e.getMissingFilePaths();if(y&&cu(y,s))return!1;const x=e.getCompilerOptions();if(!xq(x,r)||e.resolvedLibReferences&&cu(e.resolvedLibReferences,(M,V)=>c(V)))return!1;if(x.configFile&&r.configFile)return x.configFile.text===r.configFile.text;return!0;function T(M){return!C(M)||o(M.path)}function C(M){return M.version===i(M.resolvedPath,M.fileName)}function N(M,V,G){return _W(M,V)&&D(e.getResolvedProjectReferences()[G],M)}function D(M,V){if(M){if(Ai(d,M))return!0;const Z=s3(V),z=f(Z);return!z||M.commandLine.options.configFile!==z.options.configFile||!Ac(M.commandLine.fileNames,z.fileNames)?!1:((d||(d=[])).push(M),!dt(M.references,(ce,J)=>!D(ce,M.commandLine.projectReferences[J])))}const G=s3(V);return!f(G)}}function Mx(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function q7(e,t,r,i){const s=B$(e,t,r,i);return typeof s=="object"?s.impliedNodeFormat:s}function B$(e,t,r,i){switch(j_(i)){case 3:case 99:return Vl(e,[".d.mts",".mts",".mjs"])?99:Vl(e,[".d.cts",".cts",".cjs"])?1:Vl(e,[".d.ts",".ts",".tsx",".js",".jsx"])?s():void 0;default:return}function s(){const o=C7(t,r,i),c=[];o.failedLookupLocations=c,o.affectingLocations=c;const u=E7(e,o);return{impliedNodeFormat:(u==null?void 0:u.contents.packageJsonContent.type)==="module"?99:1,packageJsonLocations:c,packageJsonScope:u}}}function CHe(e,t){return e?H6(e.getCompilerOptions(),t,CM):!1}function EHe(e,t,r,i,s,o){return{rootNames:e,options:t,host:r,oldProgram:i,configFileParsingDiagnostics:s,typeScriptVersion:o}}function vR(e,t,r,i,s){var o,c,u,f,g,d,y,x,T,C,N,D,M,V,G,Z;const z=Ps(e)?EHe(e,t,r,i,s):e,{rootNames:ce,options:J,configFileParsingDiagnostics:ne,projectReferences:ge,typeScriptVersion:ve}=z;let{oldProgram:Q}=z;const X=X_(()=>lm("ignoreDeprecations",p.Invalid_value_for_ignoreDeprecations));let se,pe,we,fe,ie,ye,Ne;const Ue=new Map;let Se=Dp();const Ee={},Ae={};let Le=aC(),Tt,xe,ze,st,zt,yt,$e,kt,nn,sn;const In=typeof J.maxNodeModuleJsDepth=="number"?J.maxNodeModuleJsDepth:0;let Zn=0;const hn=new Map,Zt=new Map;(o=cr)==null||o.push(cr.Phase.Program,"createProgram",{configFilePath:J.configFilePath,rootDir:J.rootDir},!0),gc("beforeProgram");const Yt=z.host||lue(J),yi=SR(Yt);let us=J.noLib;const zi=X_(()=>Yt.getDefaultLibFileName(J)),Os=Yt.getDefaultLibLocation?Yt.getDefaultLibLocation():oi(zi()),On=d4(),Fi=Yt.getCurrentDirectory(),Er=KP(J),cn=vN(J,Er),et=new Map;let Jt,wn,ui;const vi=Yt.hasInvalidatedResolutions||xm;Yt.resolveModuleNameLiterals?(ui=Yt.resolveModuleNameLiterals.bind(Yt),wn=(c=Yt.getModuleResolutionCache)==null?void 0:c.call(Yt)):Yt.resolveModuleNames?(ui=(Re,Ze,It,Wt,bn,Kn)=>Yt.resolveModuleNames(Re.map(fue),Ze,Kn==null?void 0:Kn.map(fue),It,Wt,bn).map(yn=>yn?yn.extension!==void 0?{resolvedModule:yn}:{resolvedModule:{...yn,extension:tw(yn.resolvedFileName)}}:gue),wn=(u=Yt.getModuleResolutionCache)==null?void 0:u.call(Yt)):(wn=Q4(Fi,te,J),ui=(Re,Ze,It,Wt,bn)=>W7(Re,Ze,It,Wt,bn,Yt,wn,F$));let ts;if(Yt.resolveTypeReferenceDirectiveReferences)ts=Yt.resolveTypeReferenceDirectiveReferences.bind(Yt);else if(Yt.resolveTypeReferenceDirectives)ts=(Re,Ze,It,Wt,bn)=>Yt.resolveTypeReferenceDirectives(Re.map(L$),Ze,It,Wt,bn==null?void 0:bn.impliedNodeFormat).map(Kn=>({resolvedTypeReferenceDirective:Kn}));else{const Re=FM(Fi,te,void 0,wn==null?void 0:wn.getPackageJsonInfoCache(),wn==null?void 0:wn.optionsToRedirectsKey);ts=(Ze,It,Wt,bn,Kn)=>W7(Ze,It,Wt,bn,Kn,Yt,Re,gR)}const Ds=Yt.hasInvalidatedLibResolutions||xm;let Sa;if(Yt.resolveLibrary)Sa=Yt.resolveLibrary.bind(Yt);else{const Re=Q4(Fi,te,J,wn==null?void 0:wn.getPackageJsonInfoCache());Sa=(Ze,It,Wt)=>LM(Ze,It,Wt,Yt,Re)}const Wa=new Map;let Tn=new Map,Ln=Dp(),Ve=!1;const pt=new Map;let ft=new Map;const At=Yt.useCaseSensitiveFileNames()?new Map:void 0;let le,Me,_t,U;const it=!!((f=Yt.useSourceOfProjectReferenceRedirect)!=null&&f.call(Yt))&&!J.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:Et,fileExists:Ge,directoryExists:mt}=PHe({compilerHost:Yt,getSymlinkCache:yg,useSourceOfProjectReferenceRedirect:it,toPath:sr,getResolvedProjectReferences:Rs,getSourceOfProjectReferenceRedirect:nf,forEachResolvedProjectReference:gf}),Ut=Yt.readFile.bind(Yt);(g=cr)==null||g.push(cr.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!Q});const vn=CHe(Q,J);(d=cr)==null||d.pop();let pn;if((y=cr)==null||y.push(cr.Phase.Program,"tryReuseStructureFromOldProgram",{}),pn=As(),(x=cr)==null||x.pop(),pn!==2){if(se=[],pe=[],ge&&(le||(le=ge.map(Vt)),ce.length&&(le==null||le.forEach((Re,Ze)=>{if(!Re)return;const It=Vo(Re.commandLine.options);if(it){if(It||r_(Re.commandLine.options)===0)for(const Wt of Re.commandLine.fileNames)jt(Wt,{kind:1,index:Ze})}else if(It)jt(n2(It,".d.ts"),{kind:2,index:Ze});else if(r_(Re.commandLine.options)===0){const Wt=X_(()=>n3(Re.commandLine,!Yt.useCaseSensitiveFileNames()));for(const bn of Re.commandLine.fileNames)!Wu(bn)&&!zc(bn,".json")&&jt(Kw(bn,Re.commandLine,!Yt.useCaseSensitiveFileNames(),Wt),{kind:2,index:Ze})}}))),(T=cr)==null||T.push(cr.Phase.Program,"processRootFiles",{count:ce.length}),dt(ce,(Re,Ze)=>rc(Re,!1,!1,{kind:0,index:Ze})),(C=cr)==null||C.pop(),xe??(xe=ce.length?IM(J,Yt):Ke),ze=aC(),xe.length){(N=cr)==null||N.push(cr.Phase.Program,"processTypeReferences",{count:xe.length});const Re=J.configFilePath?oi(J.configFilePath):Fi,Ze=Zr(Re,a3),It=Di(xe,Ze);for(let Wt=0;Wt{rc(ep(Ze),!0,!1,{kind:6,index:It})})}we=sy(se,Li).concat(pe),se=void 0,pe=void 0}if(Q&&Yt.onReleaseOldSourceFile){const Re=Q.getSourceFiles();for(const Ze of Re){const It=Pc(Ze.resolvedPath);(vn||!It||It.impliedNodeFormat!==Ze.impliedNodeFormat||Ze.resolvedPath===Ze.path&&It.resolvedPath!==Ze.path)&&Yt.onReleaseOldSourceFile(Ze,Q.getCompilerOptions(),!!Pc(Ze.path))}Yt.getParsedCommandLine||Q.forEachResolvedProjectReference(Ze=>{hg(Ze.sourceFile.path)||Yt.onReleaseOldSourceFile(Ze.sourceFile,Q.getCompilerOptions(),!1)})}Q&&Yt.onReleaseParsedCommandLine&&hR(Q.getProjectReferences(),Q.getResolvedProjectReferences(),(Re,Ze,It)=>{const Wt=(Ze==null?void 0:Ze.commandLine.projectReferences[It])||Q.getProjectReferences()[It],bn=s3(Wt);Me!=null&&Me.has(sr(bn))||Yt.onReleaseParsedCommandLine(bn,Re,Q.getCompilerOptions())}),Q=void 0,zt=void 0,$e=void 0,nn=void 0;const mn={getRootFileNames:()=>ce,getSourceFile:Ja,getSourceFileByPath:Pc,getSourceFiles:()=>we,getMissingFilePaths:()=>ft,getModuleResolutionCache:()=>wn,getFilesByNameMap:()=>pt,getCompilerOptions:()=>J,getSyntacticDiagnostics:El,getOptionsDiagnostics:Fr,getGlobalDiagnostics:jc,getSemanticDiagnostics:qc,getCachedSemanticDiagnostics:xc,getSuggestionDiagnostics:Oe,getDeclarationDiagnostics:nc,getBindAndCheckDiagnostics:js,getProgramDiagnostics:rn,getTypeChecker:vs,getClassifiableNames:xs,getCommonSourceDirectory:Wr,emit:va,getCurrentDirectory:()=>Fi,getNodeCount:()=>vs().getNodeCount(),getIdentifierCount:()=>vs().getIdentifierCount(),getSymbolCount:()=>vs().getSymbolCount(),getTypeCount:()=>vs().getTypeCount(),getInstantiationCount:()=>vs().getInstantiationCount(),getRelationCacheSizes:()=>vs().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>Tt,getResolvedTypeReferenceDirectives:()=>Le,getAutomaticTypeDirectiveNames:()=>xe,getAutomaticTypeDirectiveResolutions:()=>ze,isSourceFileFromExternalLibrary:Oc,isSourceFileDefaultLibrary:Iu,getModeForUsageLocation:Wp,getModeForResolutionAtIndex:N0,getSourceFileFromReference:Bd,getLibFileFromReference:ru,sourceFileToPackageName:Tn,redirectTargetsMap:Ln,usesUriStyleNodeCoreModules:Ve,resolvedModules:yt,resolvedTypeReferenceDirectiveNames:kt,resolvedLibReferences:st,getResolvedModule:q,getResolvedModuleFromModuleSpecifier:Fe,getResolvedTypeReferenceDirective:Ot,forEachResolvedModule:I,forEachResolvedTypeReferenceDirective:me,getCurrentPackagesMap:()=>sn,typesPackageExists:Be,packageBundlesTypes:Ie,isEmittedFile:iS,getConfigFileParsingDiagnostics:fu,getProjectReferences:bo,getResolvedProjectReferences:Rs,getProjectReferenceRedirect:sl,getResolvedProjectReferenceToRedirect:Up,getResolvedProjectReferenceByPath:hg,forEachResolvedProjectReference:gf,isSourceOfProjectReferenceRedirect:ud,emitBuildInfo:hl,fileExists:Ge,readFile:Ut,directoryExists:mt,getSymlinkCache:yg,realpath:(G=Yt.realpath)==null?void 0:G.bind(Yt),useCaseSensitiveFileNames:()=>Yt.useCaseSensitiveFileNames(),getCanonicalFileName:te,getFileIncludeReasons:()=>Se,structureIsReused:pn,writeFile:Yo};return Et(),Tt==null||Tt.forEach(Re=>{switch(Re.kind){case 1:return On.add(ai(Re.file&&Pc(Re.file),Re.fileProcessingReason,Re.diagnostic,Re.args||Ke));case 0:const{file:Ze,pos:It,end:Wt}=tD(mn,Re.reason);return On.add(bu(Ze,w.checkDefined(It),w.checkDefined(Wt)-It,Re.diagnostic,...Re.args||Ke));case 2:return Re.diagnostics.forEach(bn=>On.add(bn));default:w.assertNever(Re)}}),R(),gc("afterProgram"),Ap("Program","beforeProgram","afterProgram"),(Z=cr)==null||Z.pop(),mn;function q(Re,Ze,It){var Wt;return(Wt=yt==null?void 0:yt.get(Re.path))==null?void 0:Wt.get(Ze,It)}function Fe(Re){const Ze=qn(Re);return w.assertIsDefined(Ze,"`moduleSpecifier` must have a `SourceFile` ancestor. Use `program.getResolvedModule` instead to provide the containing file and resolution mode."),q(Ze,Re.text,Wp(Ze,Re))}function Ot(Re,Ze,It){var Wt;return(Wt=kt==null?void 0:kt.get(Re.path))==null?void 0:Wt.get(Ze,It)}function I(Re,Ze){H(yt,Re,Ze)}function me(Re,Ze){H(kt,Re,Ze)}function H(Re,Ze,It){var Wt;It?(Wt=Re==null?void 0:Re.get(It.path))==null||Wt.forEach((bn,Kn,yn)=>Ze(bn,Kn,yn,It.path)):Re==null||Re.forEach((bn,Kn)=>bn.forEach((yn,er,mi)=>Ze(yn,er,mi,Kn)))}function de(){return sn||(sn=new Map,I(({resolvedModule:Re})=>{Re!=null&&Re.packageId&&sn.set(Re.packageId.name,Re.extension===".d.ts"||!!sn.get(Re.packageId.name))}),sn)}function Be(Re){return de().has(jM(Re))}function Ie(Re){return!!de().get(Re)}function xt(Re){var Ze;(Ze=Re.resolutionDiagnostics)!=null&&Ze.length&&(Tt??(Tt=[])).push({kind:2,diagnostics:Re.resolutionDiagnostics})}function Ft(Re,Ze,It,Wt){if(Yt.resolveModuleNameLiterals||!Yt.resolveModuleNames)return xt(It);if(!wn||yu(Ze))return;const bn=Ss(Re.originalFileName,Fi),Kn=oi(bn),yn=Un(Re),er=wn.getFromNonRelativeNameCache(Ze,Wt,Kn,yn);er&&xt(er)}function tn(Re,Ze,It){var Wt,bn;if(!Re.length)return Ke;const Kn=Ss(Ze.originalFileName,Fi),yn=Un(Ze);(Wt=cr)==null||Wt.push(cr.Phase.Program,"resolveModuleNamesWorker",{containingFileName:Kn}),gc("beforeResolveModule");const er=ui(Re,Kn,yn,J,Ze,It);return gc("afterResolveModule"),Ap("ResolveModule","beforeResolveModule","afterResolveModule"),(bn=cr)==null||bn.pop(),er}function Sn(Re,Ze,It){var Wt,bn;if(!Re.length)return[];const Kn=Ls(Ze)?void 0:Ze,yn=Ls(Ze)?Ze:Ss(Ze.originalFileName,Fi),er=Kn&&Un(Kn);(Wt=cr)==null||Wt.push(cr.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:yn}),gc("beforeResolveTypeReference");const mi=ts(Re,yn,er,J,Kn,It);return gc("afterResolveTypeReference"),Ap("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(bn=cr)==null||bn.pop(),mi}function Un(Re){const Ze=Up(Re.originalFileName);if(Ze||!Wu(Re.originalFileName))return Ze;const It=Gn(Re.path);if(It)return It;if(!Yt.realpath||!J.preserveSymlinks||!Re.originalFileName.includes(th))return;const Wt=sr(Yt.realpath(Re.originalFileName));return Wt===Re.path?void 0:Gn(Wt)}function Gn(Re){const Ze=nf(Re);if(Ls(Ze))return Up(Ze);if(Ze)return gf(It=>{const Wt=Vo(It.commandLine.options);if(Wt)return sr(Wt)===Re?It:void 0})}function Li(Re,Ze){return mc(wi(Re),wi(Ze))}function wi(Re){if(Xd(Os,Re.fileName,!1)){const Ze=xl(Re.fileName);if(Ze==="lib.d.ts"||Ze==="lib.es6.d.ts")return 0;const It=P6(tP(Ze,"lib."),".d.ts"),Wt=h7.indexOf(It);if(Wt!==-1)return Wt+1}return h7.length+2}function sr(Re){return hc(Re,Fi,te)}function Wr(){if(ie===void 0){const Re=vr(we,Ze=>_x(Ze,mn));ie=eD(J,()=>Oi(Re,Ze=>Ze.isDeclarationFile?void 0:Ze.fileName),Fi,te,Ze=>Bt(Re,Ze))}return ie}function xs(){var Re;if(!Ne){vs(),Ne=new Set;for(const Ze of we)(Re=Ze.classifiableNames)==null||Re.forEach(It=>Ne.add(It))}return Ne}function Mi(Re,Ze){if(pn===0&&!Ze.ambientModuleNames.length)return tn(Re,Ze,void 0);let It,Wt,bn;const Kn=gue,yn=Q&&Q.getSourceFile(Ze.fileName);for(let ri=0;ri{const Wt=(Ze?Ze.commandLine.projectReferences:ge)[It],bn=Vt(Wt);return Re?!bn||bn.sourceFile!==Re.sourceFile||!Ac(Re.commandLine.fileNames,bn.commandLine.fileNames):bn!==void 0},(Re,Ze)=>{const It=Ze?hg(Ze.sourceFile.path).commandLine.projectReferences:ge;return!Ac(Re,It,_W)})}function As(){var Re;if(!Q)return 0;const Ze=Q.getCompilerOptions();if(IF(Ze,J))return 0;const It=Q.getRootFileNames();if(!Ac(It,ce)||!$r())return 0;ge&&(le=ge.map(Vt));const Wt=[],bn=[];if(pn=2,cu(Q.getMissingFilePaths(),ur=>Yt.fileExists(ur)))return 0;const Kn=Q.getSourceFiles();let yn;(ur=>{ur[ur.Exists=0]="Exists",ur[ur.Modified=1]="Modified"})(yn||(yn={}));const er=new Map;for(const ur of Kn){const ri=la(ur.fileName,wn,Yt,J);let dr=Yt.getSourceFileByPath?Yt.getSourceFileByPath(ur.fileName,ur.resolvedPath,ri,void 0,vn):Yt.getSourceFile(ur.fileName,ri,void 0,vn);if(!dr)return 0;dr.packageJsonLocations=(Re=ri.packageJsonLocations)!=null&&Re.length?ri.packageJsonLocations:void 0,dr.packageJsonScope=ri.packageJsonScope,w.assert(!dr.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let aa;if(ur.redirectInfo){if(dr!==ur.redirectInfo.unredirected)return 0;aa=!1,dr=ur}else if(Q.redirectTargetsMap.has(ur.path)){if(dr!==ur)return 0;aa=!1}else aa=dr!==ur;dr.path=ur.path,dr.originalFileName=ur.originalFileName,dr.resolvedPath=ur.resolvedPath,dr.fileName=ur.fileName;const no=Q.sourceFileToPackageName.get(ur.path);if(no!==void 0){const x_=er.get(no),Mu=aa?1:0;if(x_!==void 0&&Mu===1||x_===1)return 0;er.set(no,Mu)}if(aa)ur.impliedNodeFormat!==dr.impliedNodeFormat?pn=1:Ac(ur.libReferenceDirectives,dr.libReferenceDirectives,jl)?ur.hasNoDefaultLib!==dr.hasNoDefaultLib?pn=1:Ac(ur.referencedFiles,dr.referencedFiles,jl)?(If(dr),Ac(ur.imports,dr.imports,Io)&&Ac(ur.moduleAugmentations,dr.moduleAugmentations,Io)?(ur.flags&12582912)!==(dr.flags&12582912)?pn=1:Ac(ur.typeReferenceDirectives,dr.typeReferenceDirectives,jl)||(pn=1):pn=1):pn=1:pn=1,bn.push(dr);else if(vi(ur.path))pn=1,bn.push(dr);else for(const x_ of ur.ambientModuleNames)Ue.set(x_,ur.fileName);Wt.push(dr)}if(pn!==2)return pn;for(const ur of bn){const ri=f6e(ur),dr=Mi(ri,ur);($e??($e=new Map)).set(ur.path,dr),fW(ri,dr,I0=>Q.getResolvedModule(ur,I0.text,Wp(ur,I0)),Kie)&&(pn=1);const no=ur.typeReferenceDirectives,x_=Di(no,ur);(nn??(nn=new Map)).set(ur.path,x_),fW(no,x_,I0=>Q.getResolvedTypeReferenceDirective(ur,L$(I0),V7(I0,ur.impliedNodeFormat)),ese)&&(pn=1)}if(pn!==2)return pn;if(Yie(Ze,J)||Q.resolvedLibReferences&&cu(Q.resolvedLibReferences,(ur,ri)=>Hh(ri).actual!==ur.actual))return 1;if(Yt.hasChangedAutomaticTypeDirectiveNames){if(Yt.hasChangedAutomaticTypeDirectiveNames())return 1}else if(xe=IM(J,Yt),!Ac(Q.getAutomaticTypeDirectiveNames(),xe))return 1;ft=Q.getMissingFilePaths(),w.assert(Wt.length===Q.getSourceFiles().length);for(const ur of Wt)pt.set(ur.path,ur);return Q.getFilesByNameMap().forEach((ur,ri)=>{if(!ur){pt.set(ri,ur);return}if(ur.path===ri){Q.isSourceFileFromExternalLibrary(ur)&&Zt.set(ur.path,!0);return}pt.set(ri,pt.get(ur.path))}),we=Wt,Se=Q.getFileIncludeReasons(),Tt=Q.getFileProcessingDiagnostics(),Le=Q.getResolvedTypeReferenceDirectives(),xe=Q.getAutomaticTypeDirectiveNames(),ze=Q.getAutomaticTypeDirectiveResolutions(),Tn=Q.sourceFileToPackageName,Ln=Q.redirectTargetsMap,Ve=Q.usesUriStyleNodeCoreModules,yt=Q.resolvedModules,kt=Q.resolvedTypeReferenceDirectiveNames,st=Q.resolvedLibReferences,sn=Q.getCurrentPackagesMap(),2}function Dn(Re){return{getPrependNodes:tc,getCanonicalFileName:te,getCommonSourceDirectory:mn.getCommonSourceDirectory,getCompilerOptions:mn.getCompilerOptions,getCurrentDirectory:()=>Fi,getSourceFile:mn.getSourceFile,getSourceFileByPath:mn.getSourceFileByPath,getSourceFiles:mn.getSourceFiles,getLibFileFromReference:mn.getLibFileFromReference,isSourceFileFromExternalLibrary:Oc,getResolvedProjectReferenceToRedirect:Up,getProjectReferenceRedirect:sl,isSourceOfProjectReferenceRedirect:ud,getSymlinkCache:yg,writeFile:Re||Yo,isEmitBlocked:Ou,readFile:Ze=>Yt.readFile(Ze),fileExists:Ze=>{const It=sr(Ze);return Pc(It)?!0:ft.has(It)?!1:Yt.fileExists(Ze)},useCaseSensitiveFileNames:()=>Yt.useCaseSensitiveFileNames(),getBuildInfo:Ze=>{var It;return(It=mn.getBuildInfo)==null?void 0:It.call(mn,Ze)},getSourceFileFromReference:(Ze,It)=>mn.getSourceFileFromReference(Ze,It),redirectTargetsMap:Ln,getFileIncludeReasons:mn.getFileIncludeReasons,createHash:fa(Yt,Yt.createHash)}}function Yo(Re,Ze,It,Wt,bn,Kn){Yt.writeFile(Re,Ze,It,Wt,bn,Kn)}function hl(Re){var Ze,It;w.assert(!Vo(J)),(Ze=cr)==null||Ze.push(cr.Phase.Emit,"emitBuildInfo",{},!0),gc("beforeEmit");const Wt=lR(_R,Dn(Re),void 0,d$,!1,!0);return gc("afterEmit"),Ap("Emit","beforeEmit","afterEmit"),(It=cr)==null||It.pop(),Wt}function Rs(){return le}function bo(){return ge}function tc(){return z$(ge,(Re,Ze)=>{var It;return(It=le[Ze])==null?void 0:It.commandLine},Re=>{const Ze=sr(Re),It=Pc(Ze);return It?It.text:pt.has(Ze)?void 0:Yt.readFile(Ze)},Yt)}function Oc(Re){return!!Zt.get(Re.path)}function Iu(Re){if(!Re.isDeclarationFile)return!1;if(Re.hasNoDefaultLib)return!0;if(!J.noLib)return!1;const Ze=Yt.useCaseSensitiveFileNames()?WS:jv;return J.lib?Pe(J.lib,It=>Ze(Re.fileName,st.get(It).actual)):Ze(Re.fileName,zi())}function vs(){return ye||(ye=ole(mn))}function va(Re,Ze,It,Wt,bn,Kn){var yn,er;(yn=cr)==null||yn.push(cr.Phase.Emit,"emit",{path:Re==null?void 0:Re.path},!0);const mi=Fu(()=>Lo(mn,Re,Ze,It,Wt,bn,Kn));return(er=cr)==null||er.pop(),mi}function Ou(Re){return et.has(sr(Re))}function Lo(Re,Ze,It,Wt,bn,Kn,yn){if(!yn){const ur=J$(Re,Ze,It,Wt);if(ur)return ur}const er=vs().getEmitResolver(Vo(J)?void 0:Ze,Wt);gc("beforeEmit");const mi=lR(er,Dn(It),Ze,p$(J,Kn,bn),bn,!1,yn);return gc("afterEmit"),Ap("Emit","beforeEmit","afterEmit"),mi}function Ja(Re){return Pc(sr(Re))}function Pc(Re){return pt.get(Re)||void 0}function ld(Re,Ze,It){return R6(Re?Ze(Re,It):Ys(mn.getSourceFiles(),Wt=>(It&&It.throwIfCancellationRequested(),Ze(Wt,It))))}function El(Re,Ze){return ld(Re,ku,Ze)}function qc(Re,Ze){return ld(Re,Kf,Ze)}function xc(Re){var Ze;return Re?(Ze=Ee.perFile)==null?void 0:Ze.get(Re.path):Ee.allDiagnostics}function js(Re,Ze){return Wo(Re,Ze)}function rn(Re){var Ze;if(nw(Re,J,mn))return Ke;const It=On.getDiagnostics(Re.fileName);return(Ze=Re.commentDirectives)!=null&&Ze.length?ee(Re,Re.commentDirectives,It).diagnostics:It}function nc(Re,Ze){const It=mn.getCompilerOptions();return!Re||Vo(It)?Tr(Re,Ze):ld(Re,Ni,Ze)}function ku(Re){return L_(Re)?(Re.additionalSyntacticDiagnostics||(Re.additionalSyntacticDiagnostics=_n(Re)),zn(Re.additionalSyntacticDiagnostics,Re.parseDiagnostics)):Re.parseDiagnostics}function Fu(Re){try{return Re()}catch(Ze){throw Ze instanceof I6&&(ye=void 0),Ze}}function Kf(Re,Ze){return zn(bR(Wo(Re,Ze),J),rn(Re))}function Wo(Re,Ze){return qr(Re,Ze,Ee,Gl)}function Gl(Re,Ze){return Fu(()=>{if(nw(Re,J,mn))return Ke;const It=vs();w.assert(!!Re.bindDiagnostics);const bn=(Re.scriptKind===1||Re.scriptKind===2)&&xN(Re,J),Kn=CA(Re,J.checkJs),er=!(!!Re.checkJsDirective&&Re.checkJsDirective.enabled===!1)&&(Re.scriptKind===3||Re.scriptKind===4||Re.scriptKind===5||Kn||bn||Re.scriptKind===7);let mi=er?Re.bindDiagnostics:Ke,ur=er?It.getDiagnostics(Re,Ze):Ke;return Kn&&(mi=vr(mi,ri=>TR.has(ri.code)),ur=vr(ur,ri=>TR.has(ri.code))),_e(Re,er&&!Kn,mi,ur,bn?Re.jsDocDiagnostics:void 0)})}function _e(Re,Ze,...It){var Wt;const bn=P_(It);if(!Ze||!((Wt=Re.commentDirectives)!=null&&Wt.length))return bn;const{diagnostics:Kn,directives:yn}=ee(Re,Re.commentDirectives,bn);for(const er of yn.getUnusedExpectations())Kn.push(mse(Re,er.range,p.Unused_ts_expect_error_directive));return Kn}function ee(Re,Ze,It){const Wt=rse(Re,Ze);return{diagnostics:It.filter(Kn=>bt(Kn,Wt)===-1),directives:Wt}}function Oe(Re,Ze){return Fu(()=>vs().getSuggestionDiagnostics(Re,Ze))}function bt(Re,Ze){const{file:It,start:Wt}=Re;if(!It)return-1;const bn=_0(It);let Kn=L6(bn,Wt).line-1;for(;Kn>=0;){if(Ze.markUsed(Kn))return Kn;const yn=It.text.slice(bn[Kn],bn[Kn+1]).trim();if(yn!==""&&!/^(\s*)\/\/(.*)$/.test(yn))return-1;Kn--}return-1}function _n(Re){return Fu(()=>{const Ze=[];return It(Re,Re),Ow(Re,It,Wt),Ze;function It(er,mi){switch(mi.kind){case 169:case 172:case 174:if(mi.questionToken===er)return Ze.push(yn(er,p.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 173:case 176:case 177:case 178:case 218:case 262:case 219:case 260:if(mi.type===er)return Ze.push(yn(er,p.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(er.kind){case 273:if(er.isTypeOnly)return Ze.push(yn(mi,p._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 278:if(er.isTypeOnly)return Ze.push(yn(er,p._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 276:case 281:if(er.isTypeOnly)return Ze.push(yn(er,p._0_declarations_can_only_be_used_in_TypeScript_files,Df(er)?"import...type":"export...type")),"skip";break;case 271:return Ze.push(yn(er,p.import_can_only_be_used_in_TypeScript_files)),"skip";case 277:if(er.isExportEquals)return Ze.push(yn(er,p.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 298:if(er.token===119)return Ze.push(yn(er,p.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 264:const ri=ba(120);return w.assertIsDefined(ri),Ze.push(yn(er,p._0_declarations_can_only_be_used_in_TypeScript_files,ri)),"skip";case 267:const dr=er.flags&32?ba(145):ba(144);return w.assertIsDefined(dr),Ze.push(yn(er,p._0_declarations_can_only_be_used_in_TypeScript_files,dr)),"skip";case 265:return Ze.push(yn(er,p.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 176:case 174:case 262:return er.body?void 0:(Ze.push(yn(er,p.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 266:const aa=w.checkDefined(ba(94));return Ze.push(yn(er,p._0_declarations_can_only_be_used_in_TypeScript_files,aa)),"skip";case 235:return Ze.push(yn(er,p.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 234:return Ze.push(yn(er.type,p.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 238:return Ze.push(yn(er.type,p.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 216:w.fail()}}function Wt(er,mi){if(GH(mi)){const ur=Cn(mi.modifiers,Vu);ur&&Ze.push(yn(ur,p.Decorators_are_not_valid_here))}else if(Nx(mi)&&mi.modifiers){const ur=Gs(mi.modifiers,Vu);if(ur>=0){if(ws(mi)&&!J.experimentalDecorators)Ze.push(yn(mi.modifiers[ur],p.Decorators_are_not_valid_here));else if(ql(mi)){const ri=Gs(mi.modifiers,Uk);if(ri>=0){const dr=Gs(mi.modifiers,XL);if(ur>ri&&dr>=0&&ur=0&&ur=0&&Ze.push(Ua(yn(mi.modifiers[aa],p.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),yn(mi.modifiers[ur],p.Decorator_used_before_export_here)))}}}}}switch(mi.kind){case 263:case 231:case 174:case 176:case 177:case 178:case 218:case 262:case 219:if(er===mi.typeParameters)return Ze.push(Kn(er,p.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 243:if(er===mi.modifiers)return bn(mi.modifiers,mi.kind===243),"skip";break;case 172:if(er===mi.modifiers){for(const ur of er)Fa(ur)&&ur.kind!==126&&ur.kind!==129&&Ze.push(yn(ur,p.The_0_modifier_can_only_be_used_in_TypeScript_files,ba(ur.kind)));return"skip"}break;case 169:if(er===mi.modifiers&&Pe(er,Fa))return Ze.push(Kn(er,p.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 213:case 214:case 233:case 285:case 286:case 215:if(er===mi.typeArguments)return Ze.push(Kn(er,p.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function bn(er,mi){for(const ur of er)switch(ur.kind){case 87:if(mi)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:Ze.push(yn(ur,p.The_0_modifier_can_only_be_used_in_TypeScript_files,ba(ur.kind)));break;case 126:case 95:case 90:case 129:}}function Kn(er,mi,...ur){const ri=er.pos;return bu(Re,ri,er.end-ri,mi,...ur)}function yn(er,mi,...ur){return Pd(Re,er,mi,...ur)}})}function Tr(Re,Ze){return qr(Re,Ze,Ae,br)}function br(Re,Ze){return Fu(()=>{const It=vs().getEmitResolver(Re,Ze);return eue(Dn(ao),It,Re)||Ke})}function qr(Re,Ze,It,Wt){var bn;const Kn=Re?(bn=It.perFile)==null?void 0:bn.get(Re.path):It.allDiagnostics;if(Kn)return Kn;const yn=Wt(Re,Ze);return Re?(It.perFile||(It.perFile=new Map)).set(Re.path,yn):It.allDiagnostics=yn,yn}function Ni(Re,Ze){return Re.isDeclarationFile?[]:Tr(Re,Ze)}function Fr(){return R6(zn(On.getGlobalDiagnostics(),ia()))}function ia(){if(!J.configFile)return Ke;let Re=On.getDiagnostics(J.configFile.fileName);return gf(Ze=>{Re=zn(Re,On.getDiagnostics(Ze.sourceFile.fileName))}),Re}function jc(){return ce.length?R6(vs().getGlobalDiagnostics().slice()):Ke}function fu(){return ne||Ke}function rc(Re,Ze,It,Wt){De(ka(Re),Ze,It,void 0,Wt)}function jl(Re,Ze){return Re.fileName===Ze.fileName}function Io(Re,Ze){return Re.kind===80?Ze.kind===80&&Re.escapedText===Ze.escapedText:Ze.kind===11&&Re.text===Ze.text}function pu(Re,Ze){const It=L.createStringLiteral(Re),Wt=L.createImportDeclaration(void 0,void 0,It,void 0);return Lk(Wt,2),eo(It,Wt),eo(Wt,Ze),It.flags&=-17,Wt.flags&=-17,It}function If(Re){if(Re.imports)return;const Ze=L_(Re),It=Cl(Re);let Wt,bn,Kn;if((Ld(J)||It)&&!Re.isDeclarationFile){J.importHelpers&&(Wt=[pu(E1,Re)]);const ur=V9(U9(J,Re),J);ur&&(Wt||(Wt=[])).push(pu(ur,Re))}for(const ur of Re.statements)yn(ur,!1);(Re.flags&4194304||Ze)&&er(Re),Re.imports=Wt||Ke,Re.moduleAugmentations=bn||Ke,Re.ambientModuleNames=Kn||Ke;return;function yn(ur,ri){if(wA(ur)){const dr=a4(ur);dr&&Ba(dr)&&dr.text&&(!ri||!yu(dr.text))&&(C1(ur,!1),Wt=gn(Wt,dr),!Ve&&Zn===0&&!Re.isDeclarationFile&&(Ve=fs(dr.text,"node:")))}else if(dl(ur)&&n_(ur)&&(ri||Kr(ur,128)||Re.isDeclarationFile)){ur.name.parent=ur;const dr=Ad(ur.name);if(It||ri&&!yu(dr))(bn||(bn=[])).push(ur.name);else if(!ri){Re.isDeclarationFile&&(Kn||(Kn=[])).push(dr);const aa=ur.body;if(aa)for(const no of aa.statements)yn(no,!0)}}}function er(ur){const ri=/import|require/g;for(;ri.exec(ur.text)!==null;){const dr=mi(ur,ri.lastIndex);Ze&&Q_(dr,!0)||gp(dr)&&dr.arguments.length>=1&&vo(dr.arguments[0])?(C1(dr,!1),Wt=gn(Wt,dr.arguments[0])):b1(dr)&&(C1(dr,!1),Wt=gn(Wt,dr.argument.literal))}}function mi(ur,ri){let dr=ur;const aa=no=>{if(no.pos<=ri&&(rizc(bn,yn))){It&&(Pb(bn)?It(p.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,Re):It(p.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,Re,"'"+P_(Er).join("', '")+"'"));return}const Kn=Ze(Re);if(It)if(Kn)m2(Wt)&&bn===Yt.getCanonicalFileName(Pc(Wt.file).fileName)&&It(p.A_file_cannot_have_a_reference_to_itself);else{const yn=sl(Re);yn?It(p.Output_file_0_has_not_been_built_from_source_file_1,yn,Re):It(p.File_0_not_found,Re)}return Kn}else{const bn=J.allowNonTsExtensions&&Ze(Re);if(bn)return bn;if(It&&J.allowNonTsExtensions){It(p.File_0_not_found,Re);return}const Kn=dt(Er[0],yn=>Ze(Re+yn));return It&&!Kn&&It(p.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,Re,"'"+P_(Er).join("', '")+"'"),Kn}}function De(Re,Ze,It,Wt,bn){z_(Re,Kn=>sa(Kn,Ze,It,bn,Wt),(Kn,...yn)=>Yr(void 0,bn,Kn,yn),bn)}function jt(Re,Ze){return De(Re,!1,!1,void 0,Ze)}function Xn(Re,Ze,It){!m2(It)&&Pe(Se.get(Ze.path),m2)?Yr(Ze,It,p.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[Ze.fileName,Re]):Yr(Ze,It,p.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[Re,Ze.fileName])}function Ts(Re,Ze,It,Wt,bn,Kn,yn){var er;const mi=eh.createRedirectedSourceFile({redirectTarget:Re,unredirected:Ze});return mi.fileName=It,mi.path=Wt,mi.resolvedPath=bn,mi.originalFileName=Kn,mi.packageJsonLocations=(er=yn.packageJsonLocations)!=null&&er.length?yn.packageJsonLocations:void 0,mi.packageJsonScope=yn.packageJsonScope,Zt.set(Wt,Zn>0),mi}function sa(Re,Ze,It,Wt,bn){var Kn,yn;(Kn=cr)==null||Kn.push(cr.Phase.Program,"findSourceFile",{fileName:Re,isDefaultLib:Ze||void 0,fileIncludeKind:HO[Wt.kind]});const er=yl(Re,Ze,It,Wt,bn);return(yn=cr)==null||yn.pop(),er}function la(Re,Ze,It,Wt){const bn=B$(Ss(Re,Fi),Ze==null?void 0:Ze.getPackageJsonInfoCache(),It,Wt),Kn=go(Wt),yn=yN(Wt);return typeof bn=="object"?{...bn,languageVersion:Kn,setExternalModuleIndicator:yn,jsDocParsingMode:It.jsDocParsingMode}:{languageVersion:Kn,impliedNodeFormat:bn,setExternalModuleIndicator:yn,jsDocParsingMode:It.jsDocParsingMode}}function yl(Re,Ze,It,Wt,bn){var Kn;const yn=sr(Re);if(it){let dr=nf(yn);if(!dr&&Yt.realpath&&J.preserveSymlinks&&Wu(Re)&&Re.includes(th)){const aa=sr(Yt.realpath(Re));aa!==yn&&(dr=nf(aa))}if(dr){const aa=Ls(dr)?sa(dr,Ze,It,Wt,bn):void 0;return aa&&Tc(aa,yn,Re,void 0),aa}}const er=Re;if(pt.has(yn)){const dr=pt.get(yn);if(Bl(dr||void 0,Wt),dr&&J.forceConsistentCasingInFileNames!==!1){const aa=dr.fileName;sr(aa)!==sr(Re)&&(Re=sl(Re)||Re);const x_=IV(aa,Fi),Mu=IV(Re,Fi);x_!==Mu&&Xn(Re,dr,Wt)}return dr&&Zt.get(dr.path)&&Zn===0?(Zt.set(dr.path,!1),J.noResolve||(sh(dr,Ze),w0(dr)),J.noLib||hf(dr),hn.set(dr.path,!1),ct(dr)):dr&&hn.get(dr.path)&&ZnYr(void 0,Wt,p.Cannot_read_file_0_Colon_1,[Re,dr]),vn);if(bn){const dr=y1(bn),aa=Wa.get(dr);if(aa){const no=Ts(aa,ri,Re,yn,sr(Re),er,ur);return Ln.add(aa.path,Re),Tc(no,yn,Re,mi),Bl(no,Wt),Tn.set(yn,LF(bn)),pe.push(no),no}else ri&&(Wa.set(dr,ri),Tn.set(yn,LF(bn)))}if(Tc(ri,yn,Re,mi),ri){if(Zt.set(yn,Zn>0),ri.fileName=Re,ri.path=yn,ri.resolvedPath=sr(Re),ri.originalFileName=er,ri.packageJsonLocations=(Kn=ur.packageJsonLocations)!=null&&Kn.length?ur.packageJsonLocations:void 0,ri.packageJsonScope=ur.packageJsonScope,Bl(ri,Wt),Yt.useCaseSensitiveFileNames()){const dr=jg(yn),aa=At.get(dr);aa?Xn(Re,aa,Wt):At.set(dr,ri)}us=us||ri.hasNoDefaultLib&&!It,J.noResolve||(sh(ri,Ze),w0(ri)),J.noLib||hf(ri),ct(ri),Ze?se.push(ri):pe.push(ri)}return ri}function Bl(Re,Ze){Re&&Se.add(Re.path,Ze)}function Tc(Re,Ze,It,Wt){Wt?(Fc(It,Wt,Re),Fc(It,Ze,Re||!1)):Fc(It,Ze,Re)}function Fc(Re,Ze,It){pt.set(Ze,It),It!==void 0?ft.delete(Ze):ft.set(Ze,Re)}function sl(Re){const Ze=vl(Re);return Ze&&du(Ze,Re)}function vl(Re){if(!(!le||!le.length||Wu(Re)||zc(Re,".json")))return Up(Re)}function du(Re,Ze){const It=Vo(Re.commandLine.options);return It?n2(It,".d.ts"):Kw(Ze,Re.commandLine,!Yt.useCaseSensitiveFileNames())}function Up(Re){_t===void 0&&(_t=new Map,gf(It=>{sr(J.configFilePath)!==It.sourceFile.path&&It.commandLine.fileNames.forEach(Wt=>_t.set(sr(Wt),It.sourceFile.path))}));const Ze=_t.get(sr(Re));return Ze&&hg(Ze)}function gf(Re){return M$(le,Re)}function nf(Re){if(Wu(Re))return U===void 0&&(U=new Map,gf(Ze=>{const It=Vo(Ze.commandLine.options);if(It){const Wt=n2(It,".d.ts");U.set(sr(Wt),!0)}else{const Wt=X_(()=>n3(Ze.commandLine,!Yt.useCaseSensitiveFileNames()));dt(Ze.commandLine.fileNames,bn=>{if(!Wu(bn)&&!zc(bn,".json")){const Kn=Kw(bn,Ze.commandLine,!Yt.useCaseSensitiveFileNames(),Wt);U.set(sr(Kn),bn)}})}})),U.get(Re)}function ud(Re){return it&&!!Up(Re)}function hg(Re){if(Me)return Me.get(Re)||void 0}function sh(Re,Ze){dt(Re.referencedFiles,(It,Wt)=>{De(mR(It.fileName,Re.fileName),Ze,!1,void 0,{kind:4,file:Re.path,index:Wt})})}function w0(Re){const Ze=Re.typeReferenceDirectives;if(!Ze.length)return;const It=(nn==null?void 0:nn.get(Re.path))||Di(Ze,Re),Wt=aC();(kt??(kt=new Map)).set(Re.path,Wt);for(let bn=0;bn{const{libName:Wt,libFileName:bn}=_6e(Ze);if(bn)rc(ep(bn),!0,!0,{kind:7,file:Re.path,index:It});else{const Kn=P6(tP(Wt,"lib."),".d.ts"),yn=eP(Kn,h7,dc),er=yn?p.Cannot_find_lib_definition_for_0_Did_you_mean_1:p.Cannot_find_lib_definition_for_0,mi=yn?[Wt,yn]:[Wt];(Tt||(Tt=[])).push({kind:0,reason:{kind:7,file:Re.path,index:It},diagnostic:er,args:mi})}})}function te(Re){return Yt.getCanonicalFileName(Re)}function ct(Re){var Ze;if(If(Re),Re.imports.length||Re.moduleAugmentations.length){const It=f6e(Re),Wt=($e==null?void 0:$e.get(Re.path))||Mi(It,Re);w.assert(Wt.length===It.length);const bn=((Ze=Un(Re))==null?void 0:Ze.commandLine.options)||J,Kn=aC();(yt??(yt=new Map)).set(Re.path,Kn);for(let yn=0;ynIn,Mu=no&&!U$(bn,er,Re)&&!bn.noResolve&&ynCl(yn)&&!yn.isDeclarationFile);if(J.isolatedModules||J.verbatimModuleSyntax)J.module===0&&Ze<2&&J.isolatedModules&&So(p.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),J.preserveConstEnums===!1&&So(p.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,J.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(It&&Ze<2&&J.module===0){const yn=rx(It,typeof It.externalModuleIndicator=="boolean"?It:It.externalModuleIndicator);On.add(bu(It,yn.start,yn.length,p.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(Re&&!J.emitDeclarationOnly){if(J.module&&!(J.module===2||J.module===4))So(p.Only_amd_and_system_modules_are_supported_alongside_0,J.out?"out":"outFile","module");else if(J.module===void 0&&It){const yn=rx(It,typeof It.externalModuleIndicator=="boolean"?It:It.externalModuleIndicator);On.add(bu(It,yn.start,yn.length,p.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,J.out?"out":"outFile"))}}if(i2(J)&&(j_(J)===1?So(p.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):B9(J)||So(p.Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd,"resolveJsonModule","module")),J.outDir||J.rootDir||J.sourceRoot||J.mapRoot){const yn=Wr();J.outDir&&yn===""&&we.some(er=>zg(er.fileName)>1)&&So(p.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}J.useDefineForClassFields&&Ze===0&&So(p.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),J.checkJs&&!P1(J)&&On.add(ll(p.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),J.emitDeclarationOnly&&(rd(J)||So(p.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),J.noEmit&&So(p.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),J.emitDecoratorMetadata&&!J.experimentalDecorators&&So(p.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),J.jsxFactory?(J.reactNamespace&&So(p.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(J.jsx===4||J.jsx===5)&&So(p.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",Rw.get(""+J.jsx)),rC(J.jsxFactory,Ze)||lm("jsxFactory",p.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,J.jsxFactory)):J.reactNamespace&&!Np(J.reactNamespace,Ze)&&lm("reactNamespace",p.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,J.reactNamespace),J.jsxFragmentFactory&&(J.jsxFactory||So(p.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(J.jsx===4||J.jsx===5)&&So(p.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",Rw.get(""+J.jsx)),rC(J.jsxFragmentFactory,Ze)||lm("jsxFragmentFactory",p.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,J.jsxFragmentFactory)),J.reactNamespace&&(J.jsx===4||J.jsx===5)&&So(p.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",Rw.get(""+J.jsx)),J.jsxImportSource&&J.jsx===2&&So(p.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",Rw.get(""+J.jsx)),J.preserveValueImports&&r_(J)<5&&So(p.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"preserveValueImports");const Wt=r_(J);J.verbatimModuleSyntax&&((Wt===2||Wt===3||Wt===4)&&So(p.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),J.preserveValueImports&&_m("preserveValueImports","verbatimModuleSyntax"),J.importsNotUsedAsValues&&_m("importsNotUsedAsValues","verbatimModuleSyntax")),J.allowImportingTsExtensions&&!(J.noEmit||J.emitDeclarationOnly)&&lm("allowImportingTsExtensions",p.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);const bn=j_(J);if(J.resolvePackageJsonExports&&!Nk(bn)&&So(p.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),J.resolvePackageJsonImports&&!Nk(bn)&&So(p.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),J.customConditions&&!Nk(bn)&&So(p.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),bn===100&&!j9(Wt)&&Wt!==200&&lm("moduleResolution",p.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"bundler"),rP[Wt]&&100<=Wt&&Wt<=199&&!(3<=bn&&bn<=99)){const yn=rP[Wt];lm("moduleResolution",p.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,yn,yn)}else if(O6[bn]&&3<=bn&&bn<=99&&!(100<=Wt&&Wt<=199)){const yn=O6[bn];lm("module",p.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,yn,yn)}if(!J.noEmit&&!J.suppressOutputPathCheck){const yn=Dn(),er=new Set;m$(yn,mi=>{J.emitDeclarationOnly||Kn(mi.jsFilePath,er),Kn(mi.declarationFilePath,er)})}function Kn(yn,er){if(yn){const mi=sr(yn);if(pt.has(mi)){let ri;J.configFilePath||(ri=Hs(void 0,p.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)),ri=Hs(ri,p.Cannot_write_file_0_because_it_would_overwrite_input_file,yn),rS(yn,M9(ri))}const ur=Yt.useCaseSensitiveFileNames()?mi:jg(mi);er.has(ur)?rS(yn,ll(p.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,yn)):er.add(ur)}}}function Te(){const Re=J.ignoreDeprecations;if(Re){if(Re==="5.0")return new $d(Re);X()}return $d.zero}function at(Re,Ze,It,Wt){const bn=new $d(Re),Kn=new $d(Ze),yn=new $d(ve||rt),er=Te(),mi=Kn.compareTo(yn)!==1,ur=!mi&&er.compareTo(bn)===-1;(mi||ur)&&Wt((ri,dr,aa)=>{mi?dr===void 0?It(ri,dr,aa,p.Option_0_has_been_removed_Please_remove_it_from_your_configuration,ri):It(ri,dr,aa,p.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,ri,dr):dr===void 0?It(ri,dr,aa,p.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,ri,Ze,Re):It(ri,dr,aa,p.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,ri,dr,Ze,Re)})}function Ht(){function Re(Ze,It,Wt,bn,...Kn){if(Wt){const yn=Hs(void 0,p.Use_0_instead,Wt),er=Hs(yn,bn,...Kn);$i(!It,Ze,void 0,er)}else $i(!It,Ze,void 0,bn,...Kn)}at("5.0","5.5",Re,Ze=>{J.target===0&&Ze("target","ES3"),J.noImplicitUseStrict&&Ze("noImplicitUseStrict"),J.keyofStringsOnly&&Ze("keyofStringsOnly"),J.suppressExcessPropertyErrors&&Ze("suppressExcessPropertyErrors"),J.suppressImplicitAnyIndexErrors&&Ze("suppressImplicitAnyIndexErrors"),J.noStrictGenericChecks&&Ze("noStrictGenericChecks"),J.charset&&Ze("charset"),J.out&&Ze("out",void 0,"outFile"),J.importsNotUsedAsValues&&Ze("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),J.preserveValueImports&&Ze("preserveValueImports",void 0,"verbatimModuleSyntax")})}function ir(Re,Ze,It){function Wt(bn,Kn,yn,er,...mi){um(Ze,It,er,...mi)}at("5.0","5.5",Wt,bn=>{Re.prepend&&bn("prepend")})}function ai(Re,Ze,It,Wt){var bn;let Kn,yn,er=m2(Ze)?Ze:void 0;Re&&((bn=Se.get(Re.path))==null||bn.forEach(aa)),Ze&&aa(Ze),er&&(Kn==null?void 0:Kn.length)===1&&(Kn=void 0);const mi=er&&tD(mn,er),ur=Kn&&Hs(Kn,p.The_file_is_in_the_program_because_Colon),ri=Re&&sX(Re),dr=Hs(ri?ur?[ur,...ri]:ri:ur,It,...Wt||Ke);return mi&&i3(mi)?UF(mi.file,mi.pos,mi.end-mi.pos,dr,yn):M9(dr,yn);function aa(no){(Kn||(Kn=[])).push(cX(mn,no)),!er&&m2(no)?er=no:er!==no&&(yn=gn(yn,qa(no))),no===Ze&&(Ze=void 0)}}function Yr(Re,Ze,It,Wt){(Tt||(Tt=[])).push({kind:1,file:Re&&Re.path,fileProcessingReason:Ze,diagnostic:It,args:Wt})}function os(Re,Ze,It){On.add(ai(Re,void 0,Ze,It))}function qa(Re){if(m2(Re)){const Wt=tD(mn,Re);let bn;switch(Re.kind){case 3:bn=p.File_is_included_via_import_here;break;case 4:bn=p.File_is_included_via_reference_here;break;case 5:bn=p.File_is_included_via_type_library_reference_here;break;case 7:bn=p.File_is_included_via_library_reference_here;break;default:w.assertNever(Re)}return i3(Wt)?bu(Wt.file,Wt.pos,Wt.end-Wt.pos,bn):void 0}if(!J.configFile)return;let Ze,It;switch(Re.kind){case 0:if(!J.configFile.configFileSpecs)return;const Wt=Ss(ce[Re.index],Fi),bn=aX(mn,Wt);if(bn){Ze=XF(J.configFile,"files",bn),It=p.File_is_matched_by_files_list_specified_here;break}const Kn=oX(mn,Wt);if(!Kn||!Ls(Kn))return;Ze=XF(J.configFile,"include",Kn),It=p.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:const yn=w.checkDefined(le==null?void 0:le[Re.index]),er=hR(ge,le,(aa,no,x_)=>aa===yn?{sourceFile:(no==null?void 0:no.sourceFile)||J.configFile,index:x_}:void 0);if(!er)return;const{sourceFile:mi,index:ur}=er,ri=FA(mi,"references",aa=>B_(aa.initializer)?aa.initializer:void 0);return ri&&ri.elements.length>ur?Pd(mi,ri.elements[ur],Re.kind===2?p.File_is_output_from_referenced_project_specified_here:p.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!J.types)return;Ze=W1("types",Re.typeReference),It=p.File_is_entry_point_of_type_library_specified_here;break;case 6:if(Re.index!==void 0){Ze=W1("lib",J.lib[Re.index]),It=p.File_is_library_specified_here;break}const dr=cu(v7.type,(aa,no)=>aa===go(J)?no:void 0);Ze=dr?yf("target",dr):void 0,It=p.File_is_default_library_for_target_specified_here;break;default:w.assertNever(Re)}return Ze&&Pd(J.configFile,Ze,It)}function Ha(){const Re=J.suppressOutputPathCheck?void 0:wy(J);hR(ge,le,(Ze,It,Wt)=>{const bn=(It?It.commandLine.projectReferences:ge)[Wt],Kn=It&&It.sourceFile;if(ir(bn,Kn,Wt),!Ze){um(Kn,Wt,p.File_0_not_found,bn.path);return}const yn=Ze.commandLine.options;if((!yn.composite||yn.noEmit)&&(It?It.commandLine.fileNames:ce).length&&(yn.composite||um(Kn,Wt,p.Referenced_project_0_must_have_setting_composite_Colon_true,bn.path),yn.noEmit&&um(Kn,Wt,p.Referenced_project_0_may_not_disable_emit,bn.path)),bn.prepend){const er=Vo(yn);er?Yt.fileExists(er)||um(Kn,Wt,p.Output_file_0_from_project_1_does_not_exist,er,bn.path):um(Kn,Wt,p.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,bn.path)}!It&&Re&&Re===wy(yn)&&(um(Kn,Wt,p.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,Re,bn.path),et.set(sr(Re),!0))})}function Zc(Re,Ze,It,...Wt){let bn=!0;tp(Kn=>{Va(Kn.initializer)&&e4(Kn.initializer,Re,yn=>{const er=yn.initializer;B_(er)&&er.elements.length>Ze&&(On.add(Pd(J.configFile,er.elements[Ze],It,...Wt)),bn=!1)})}),bn&&On.add(ll(It,...Wt))}function Lu(Re,Ze,It,...Wt){let bn=!0;tp(Kn=>{Va(Kn.initializer)&&Ry(Kn.initializer,Re,Ze,void 0,It,...Wt)&&(bn=!1)}),bn&&On.add(ll(It,...Wt))}function $l(Re,Ze){return e4(A0(),Re,Ze)}function tp(Re){return $l("paths",Re)}function yf(Re,Ze){return $l(Re,It=>Ba(It.initializer)&&It.initializer.text===Ze?It.initializer:void 0)}function W1(Re,Ze){const It=A0();return It&&kse(It,Re,Ze)}function So(Re,Ze,It,Wt){$i(!0,Ze,It,Re,Ze,It,Wt)}function lm(Re,Ze,...It){$i(!1,Re,void 0,Ze,...It)}function um(Re,Ze,It,...Wt){const bn=FA(Re||J.configFile,"references",Kn=>B_(Kn.initializer)?Kn.initializer:void 0);bn&&bn.elements.length>Ze?On.add(Pd(Re||J.configFile,bn.elements[Ze],It,...Wt)):On.add(ll(It,...Wt))}function $i(Re,Ze,It,Wt,...bn){const Kn=A0();(!Kn||!Ry(Kn,Re,Ze,It,Wt,...bn))&&("messageText"in Wt?On.add(M9(Wt)):On.add(ll(Wt,...bn)))}function A0(){return Jt===void 0&&(Jt=e4(PP(J.configFile),"compilerOptions",Re=>Va(Re.initializer)?Re.initializer:void 0)||!1),Jt||void 0}function Ry(Re,Ze,It,Wt,bn,...Kn){let yn=!1;return e4(Re,It,er=>{"messageText"in bn?On.add(m0(J.configFile,Ze?er.name:er.initializer,bn)):On.add(Pd(J.configFile,Ze?er.name:er.initializer,bn,...Kn)),yn=!0},Wt),yn}function _m(Re,Ze){const It=A0();It?Ry(It,!0,Re,void 0,p.Option_0_is_redundant_and_cannot_be_specified_with_option_1,Re,Ze):So(p.Option_0_is_redundant_and_cannot_be_specified_with_option_1,Re,Ze)}function rS(Re,Ze){et.set(sr(Re),!0),On.add(Ze)}function iS(Re){if(J.noEmit)return!1;const Ze=sr(Re);if(Pc(Ze))return!1;const It=Vo(J);if(It)return Vp(Ze,It)||Vp(Ze,Y_(It)+".d.ts");if(J.declarationDir&&Xd(J.declarationDir,Ze,Fi,!Yt.useCaseSensitiveFileNames()))return!0;if(J.outDir)return Xd(J.outDir,Ze,Fi,!Yt.useCaseSensitiveFileNames());if(Vl(Ze,D4)||Wu(Ze)){const Wt=Y_(Ze);return!!Pc(Wt+".ts")||!!Pc(Wt+".tsx")}return!1}function Vp(Re,Ze){return u0(Re,Ze,Fi,!Yt.useCaseSensitiveFileNames())===0}function yg(){return Yt.getSymlinkCache?Yt.getSymlinkCache():(fe||(fe=Dq(Fi,te)),we&&!fe.hasProcessedResolutions()&&fe.setSymlinksFromResolutions(I,me,ze),fe)}function Wp(Re,Ze){var It;const Wt=((It=Un(Re))==null?void 0:It.commandLine.options)||J;return O$(Re,Ze,Wt)}function N0(Re,Ze){return Wp(Re,H7(Re,Ze))}}function PHe(e){let t;const r=e.compilerHost.fileExists,i=e.compilerHost.directoryExists,s=e.compilerHost.getDirectories,o=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:ao,fileExists:f};e.compilerHost.fileExists=f;let c;return i&&(c=e.compilerHost.directoryExists=T=>i.call(e.compilerHost,T)?(y(T),!0):e.getResolvedProjectReferences()?(t||(t=new Set,e.forEachResolvedProjectReference(C=>{const N=Vo(C.commandLine.options);if(N)t.add(oi(e.toPath(N)));else{const D=C.commandLine.options.declarationDir||C.commandLine.options.outDir;D&&t.add(e.toPath(D))}})),x(T,!1)):!1),s&&(e.compilerHost.getDirectories=T=>!e.getResolvedProjectReferences()||i&&i.call(e.compilerHost,T)?s.call(e.compilerHost,T):[]),o&&(e.compilerHost.realpath=T=>{var C;return((C=e.getSymlinkCache().getSymlinkedFiles())==null?void 0:C.get(e.toPath(T)))||o.call(e.compilerHost,T)}),{onProgramCreateComplete:u,fileExists:f,directoryExists:c};function u(){e.compilerHost.fileExists=r,e.compilerHost.directoryExists=i,e.compilerHost.getDirectories=s}function f(T){return r.call(e.compilerHost,T)?!0:!e.getResolvedProjectReferences()||!Wu(T)?!1:x(T,!0)}function g(T){const C=e.getSourceOfProjectReferenceRedirect(e.toPath(T));return C!==void 0?Ls(C)?r.call(e.compilerHost,C):!0:void 0}function d(T){const C=e.toPath(T),N=`${C}${yc}`;return Wg(t,D=>C===D||fs(D,N)||fs(C,`${D}/`))}function y(T){var C;if(!e.getResolvedProjectReferences()||aw(T)||!o||!T.includes(th))return;const N=e.getSymlinkCache(),D=ou(e.toPath(T));if((C=N.getSymlinkedDirectories())!=null&&C.has(D))return;const M=ka(o.call(e.compilerHost,T));let V;if(M===T||(V=ou(e.toPath(M)))===D){N.setSymlinkedDirectory(D,!1);return}N.setSymlinkedDirectory(T,{real:ou(M),realPath:V})}function x(T,C){var N;const D=C?z=>g(z):z=>d(z),M=D(T);if(M!==void 0)return M;const V=e.getSymlinkCache(),G=V.getSymlinkedDirectories();if(!G)return!1;const Z=e.toPath(T);return Z.includes(th)?C&&((N=V.getSymlinkedFiles())!=null&&N.has(Z))?!0:Js(G.entries(),([z,ce])=>{if(!ce||!fs(Z,z))return;const J=D(Z.replace(z,ce.realPath));if(C&&J){const ne=Ss(T,e.compilerHost.getCurrentDirectory());V.setSymlinkedFile(Z,`${ce.real}${ne.replace(new RegExp(z,"i"),"")}`)}return J})||!1:!1}}function J$(e,t,r,i){const s=e.getCompilerOptions();if(s.noEmit)return e.getSemanticDiagnostics(t,i),t||Vo(s)?kR:e.emitBuildInfo(r,i);if(!s.noEmitOnError)return;let o=[...e.getOptionsDiagnostics(i),...e.getSyntacticDiagnostics(t,i),...e.getGlobalDiagnostics(i),...e.getSemanticDiagnostics(t,i)];if(o.length===0&&rd(e.getCompilerOptions())&&(o=e.getDeclarationDiagnostics(void 0,i)),!o.length)return;let c;if(!t&&!Vo(s)){const u=e.emitBuildInfo(r,i);u.diagnostics&&(o=[...o,...u.diagnostics]),c=u.emittedFiles}return{diagnostics:o,sourceMaps:void 0,emittedFiles:c,emitSkipped:!0}}function bR(e,t){return vr(e,r=>!r.skippedOn||!t[r.skippedOn])}function SR(e,t=e){return{fileExists:r=>t.fileExists(r),readDirectory(r,i,s,o,c){return w.assertIsDefined(t.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(r,i,s,o,c)},readFile:r=>t.readFile(r),directoryExists:fa(t,t.directoryExists),getDirectories:fa(t,t.getDirectories),realpath:fa(t,t.realpath),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||Rv,trace:e.trace?r=>e.trace(r):void 0}}function z$(e,t,r,i){if(!e)return Ke;let s;for(let o=0;oi);for(const i of t)i.kind===11&&r.push(i);return r}function H7({imports:e,moduleAugmentations:t},r){if(r(e.Grey="\x1B[90m",e.Red="\x1B[91m",e.Yellow="\x1B[93m",e.Blue="\x1B[94m",e.Cyan="\x1B[96m",e))(V$||{}),W$="\x1B[7m",q$=" ",pue="\x1B[0m",due="...",p6e=" ",mue=" ",gue={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0},xR={getName:fue,getMode:(e,t,r)=>I$(t,e,r)},d6e={getName:L$,getMode:(e,t)=>V7(e,t==null?void 0:t.impliedNodeFormat)},a3="__inferred type names__.ts",TR=new Set([p.Cannot_redeclare_block_scoped_variable_0.code,p.A_module_cannot_have_multiple_default_exports.code,p.Another_export_default_is_here.code,p.The_first_export_default_is_here.code,p.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,p.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,p.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,p.constructor_is_a_reserved_word.code,p.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,p.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode.code,p.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,p.Invalid_use_of_0_in_strict_mode.code,p.A_label_is_not_allowed_here.code,p.with_statements_are_not_allowed_in_strict_mode.code,p.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,p.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,p.A_class_declaration_without_the_default_modifier_must_have_a_name.code,p.A_class_member_cannot_have_the_0_keyword.code,p.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,p.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,p.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,p.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,p.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,p.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,p.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,p.A_destructuring_declaration_must_have_an_initializer.code,p.A_get_accessor_cannot_have_parameters.code,p.A_rest_element_cannot_contain_a_binding_pattern.code,p.A_rest_element_cannot_have_a_property_name.code,p.A_rest_element_cannot_have_an_initializer.code,p.A_rest_element_must_be_last_in_a_destructuring_pattern.code,p.A_rest_parameter_cannot_have_an_initializer.code,p.A_rest_parameter_must_be_last_in_a_parameter_list.code,p.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,p.A_return_statement_cannot_be_used_inside_a_class_static_block.code,p.A_set_accessor_cannot_have_rest_parameter.code,p.A_set_accessor_must_have_exactly_one_parameter.code,p.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,p.An_export_declaration_cannot_have_modifiers.code,p.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,p.An_import_declaration_cannot_have_modifiers.code,p.An_object_member_cannot_be_declared_optional.code,p.Argument_of_dynamic_import_cannot_be_spread_element.code,p.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,p.Cannot_redeclare_identifier_0_in_catch_clause.code,p.Catch_clause_variable_cannot_have_an_initializer.code,p.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,p.Classes_can_only_extend_a_single_class.code,p.Classes_may_not_have_a_field_named_constructor.code,p.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code,p.Duplicate_label_0.code,p.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments.code,p.for_await_loops_cannot_be_used_inside_a_class_static_block.code,p.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,p.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,p.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,p.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,p.Jump_target_cannot_cross_function_boundary.code,p.Line_terminator_not_permitted_before_arrow.code,p.Modifiers_cannot_appear_here.code,p.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,p.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,p.Private_identifiers_are_not_allowed_outside_class_bodies.code,p.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,p.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,p.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,p.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,p.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,p.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,p.Trailing_comma_not_allowed.code,p.Variable_declaration_list_cannot_be_empty.code,p._0_and_1_operations_cannot_be_mixed_without_parentheses.code,p._0_expected.code,p._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,p._0_list_cannot_be_empty.code,p._0_modifier_already_seen.code,p._0_modifier_cannot_appear_on_a_constructor_declaration.code,p._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,p._0_modifier_cannot_appear_on_a_parameter.code,p._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,p._0_modifier_cannot_be_used_here.code,p._0_modifier_must_precede_1_modifier.code,p._0_declarations_can_only_be_declared_inside_a_block.code,p._0_declarations_must_be_initialized.code,p.extends_clause_already_seen.code,p.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,p.Class_constructor_may_not_be_a_generator.code,p.Class_constructor_may_not_be_an_accessor.code,p.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,p.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,p.Private_field_0_must_be_declared_in_an_enclosing_class.code,p.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]),kR={diagnostics:Ke,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}),DHe=K({"src/compiler/builderStatePublic.ts"(){}});function hue(e,t,r,i,s,o){const c=[],{emitSkipped:u,diagnostics:f}=e.emit(t,g,i,r,s,o);return{outputFiles:c,emitSkipped:u,diagnostics:f};function g(d,y,x){c.push({name:d,writeByteOrderMark:x,text:y})}}var om,AHe=K({"src/compiler/builderState.ts"(){ua(),(e=>{function t(){function Q(X,se,pe){const we={getKeys:fe=>se.get(fe),getValues:fe=>X.get(fe),keys:()=>X.keys(),deleteKey:fe=>{(pe||(pe=new Set)).add(fe);const ie=X.get(fe);return ie?(ie.forEach(ye=>i(se,ye,fe)),X.delete(fe),!0):!1},set:(fe,ie)=>{pe==null||pe.delete(fe);const ye=X.get(fe);return X.set(fe,ie),ye==null||ye.forEach(Ne=>{ie.has(Ne)||i(se,Ne,fe)}),ie.forEach(Ne=>{ye!=null&&ye.has(Ne)||r(se,Ne,fe)}),we}};return we}return Q(new Map,new Map,void 0)}e.createManyToManyPathMap=t;function r(Q,X,se){let pe=Q.get(X);pe||(pe=new Set,Q.set(X,pe)),pe.add(se)}function i(Q,X,se){const pe=Q.get(X);return pe!=null&&pe.delete(se)?(pe.size||Q.delete(X),!0):!1}function s(Q){return Oi(Q.declarations,X=>{var se;return(se=qn(X))==null?void 0:se.resolvedPath})}function o(Q,X){const se=Q.getSymbolAtLocation(X);return se&&s(se)}function c(Q,X,se,pe){return hc(Q.getProjectReferenceRedirect(X)||X,se,pe)}function u(Q,X,se){let pe;if(X.imports&&X.imports.length>0){const ye=Q.getTypeChecker();for(const Ne of X.imports){const Ue=o(ye,Ne);Ue==null||Ue.forEach(ie)}}const we=oi(X.resolvedPath);if(X.referencedFiles&&X.referencedFiles.length>0)for(const ye of X.referencedFiles){const Ne=c(Q,ye.fileName,we,se);ie(Ne)}if(Q.forEachResolvedTypeReferenceDirective(({resolvedTypeReferenceDirective:ye})=>{if(!ye)return;const Ne=ye.resolvedFileName,Ue=c(Q,Ne,we,se);ie(Ue)},X),X.moduleAugmentations.length){const ye=Q.getTypeChecker();for(const Ne of X.moduleAugmentations){if(!Ba(Ne))continue;const Ue=ye.getSymbolAtLocation(Ne);Ue&&fe(Ue)}}for(const ye of Q.getTypeChecker().getAmbientModules())ye.declarations&&ye.declarations.length>1&&fe(ye);return pe;function fe(ye){if(ye.declarations)for(const Ne of ye.declarations){const Ue=qn(Ne);Ue&&Ue!==X&&ie(Ue.resolvedPath)}}function ie(ye){(pe||(pe=new Set)).add(ye)}}function f(Q,X){return X&&!X.referencedMap==!Q}e.canReuseOldState=f;function g(Q,X,se){var pe,we,fe;const ie=new Map,ye=Q.getCompilerOptions(),Ne=Vo(ye),Ue=ye.module!==0&&!Ne?t():void 0,Se=Ue?t():void 0,Ee=f(Ue,X);Q.getTypeChecker();for(const Ae of Q.getSourceFiles()){const Le=w.checkDefined(Ae.version,"Program intended to be used with Builder should have source files with versions set"),Tt=Ee?(pe=X.oldSignatures)==null?void 0:pe.get(Ae.resolvedPath):void 0,xe=Tt===void 0?Ee?(we=X.fileInfos.get(Ae.resolvedPath))==null?void 0:we.signature:void 0:Tt||void 0;if(Ue){const ze=u(Q,Ae,Q.getCanonicalFileName);if(ze&&Ue.set(Ae.resolvedPath,ze),Ee){const st=(fe=X.oldExportedModulesMap)==null?void 0:fe.get(Ae.resolvedPath),zt=st===void 0?X.exportedModulesMap.getValues(Ae.resolvedPath):st||void 0;zt&&Se.set(Ae.resolvedPath,zt)}}ie.set(Ae.resolvedPath,{version:Le,signature:xe,affectsGlobalScope:Ne?void 0:J(Ae)||void 0,impliedFormat:Ae.impliedNodeFormat})}return{fileInfos:ie,referencedMap:Ue,exportedModulesMap:Se,useFileVersionAsSignature:!se&&!Ee}}e.create=g;function d(Q){Q.allFilesExcludingDefaultLibraryFile=void 0,Q.allFileNames=void 0}e.releaseCache=d;function y(Q,X,se,pe,we){var fe,ie;const ye=x(Q,X,se,pe,we);return(fe=Q.oldSignatures)==null||fe.clear(),(ie=Q.oldExportedModulesMap)==null||ie.clear(),ye}e.getFilesAffectedBy=y;function x(Q,X,se,pe,we){const fe=X.getSourceFileByPath(se);return fe?N(Q,X,fe,pe,we)?(Q.referencedMap?ve:ge)(Q,X,fe,pe,we):[fe]:Ke}e.getFilesAffectedByWithOldState=x;function T(Q,X,se){Q.fileInfos.get(se).signature=X,(Q.hasCalledUpdateShapeSignature||(Q.hasCalledUpdateShapeSignature=new Set)).add(se)}e.updateSignatureOfFile=T;function C(Q,X,se,pe,we){Q.emit(X,(fe,ie,ye,Ne,Ue,Se)=>{w.assert(Wu(fe),`File extension for signature expected to be dts: Got:: ${fe}`),we(G$(Q,X,ie,pe,Se),Ue)},se,!0,void 0,!0)}e.computeDtsSignature=C;function N(Q,X,se,pe,we,fe=Q.useFileVersionAsSignature){var ie;if((ie=Q.hasCalledUpdateShapeSignature)!=null&&ie.has(se.resolvedPath))return!1;const ye=Q.fileInfos.get(se.resolvedPath),Ne=ye.signature;let Ue;if(!se.isDeclarationFile&&!fe&&C(X,se,pe,we,(Se,Ee)=>{Ue=Se,Ue!==Ne&&D(Q,se,Ee[0].exportedModulesFromDeclarationEmit)}),Ue===void 0&&(Ue=se.version,Q.exportedModulesMap&&Ue!==Ne)){(Q.oldExportedModulesMap||(Q.oldExportedModulesMap=new Map)).set(se.resolvedPath,Q.exportedModulesMap.getValues(se.resolvedPath)||!1);const Se=Q.referencedMap?Q.referencedMap.getValues(se.resolvedPath):void 0;Se?Q.exportedModulesMap.set(se.resolvedPath,Se):Q.exportedModulesMap.deleteKey(se.resolvedPath)}return(Q.oldSignatures||(Q.oldSignatures=new Map)).set(se.resolvedPath,Ne||!1),(Q.hasCalledUpdateShapeSignature||(Q.hasCalledUpdateShapeSignature=new Set)).add(se.resolvedPath),ye.signature=Ue,Ue!==Ne}e.updateShapeSignature=N;function D(Q,X,se){if(!Q.exportedModulesMap)return;(Q.oldExportedModulesMap||(Q.oldExportedModulesMap=new Map)).set(X.resolvedPath,Q.exportedModulesMap.getValues(X.resolvedPath)||!1);const pe=M(se);pe?Q.exportedModulesMap.set(X.resolvedPath,pe):Q.exportedModulesMap.deleteKey(X.resolvedPath)}e.updateExportedModules=D;function M(Q){let X;return Q==null||Q.forEach(se=>s(se).forEach(pe=>(X??(X=new Set)).add(pe))),X}e.getExportedModules=M;function V(Q,X,se){const pe=X.getCompilerOptions();if(Vo(pe)||!Q.referencedMap||J(se))return G(Q,X);const we=new Set,fe=[se.resolvedPath];for(;fe.length;){const ie=fe.pop();if(!we.has(ie)){we.add(ie);const ye=Q.referencedMap.getValues(ie);if(ye)for(const Ne of ye.keys())fe.push(Ne)}}return Vs(xi(we.keys(),ie=>{var ye;return((ye=X.getSourceFileByPath(ie))==null?void 0:ye.fileName)??ie}))}e.getAllDependencies=V;function G(Q,X){if(!Q.allFileNames){const se=X.getSourceFiles();Q.allFileNames=se===Ke?Ke:se.map(pe=>pe.fileName)}return Q.allFileNames}function Z(Q,X){const se=Q.referencedMap.getKeys(X);return se?Vs(se.keys()):[]}e.getReferencedByPaths=Z;function z(Q){for(const X of Q.statements)if(!JF(X))return!1;return!0}function ce(Q){return Pe(Q.moduleAugmentations,X=>eg(X.parent))}function J(Q){return ce(Q)||!mp(Q)&&!wd(Q)&&!z(Q)}function ne(Q,X,se){if(Q.allFilesExcludingDefaultLibraryFile)return Q.allFilesExcludingDefaultLibraryFile;let pe;se&&we(se);for(const fe of X.getSourceFiles())fe!==se&&we(fe);return Q.allFilesExcludingDefaultLibraryFile=pe||Ke,Q.allFilesExcludingDefaultLibraryFile;function we(fe){X.isSourceFileDefaultLibrary(fe)||(pe||(pe=[])).push(fe)}}e.getAllFilesExcludingDefaultLibraryFile=ne;function ge(Q,X,se){const pe=X.getCompilerOptions();return pe&&Vo(pe)?[se]:ne(Q,X,se)}function ve(Q,X,se,pe,we){if(J(se))return ne(Q,X,se);const fe=X.getCompilerOptions();if(fe&&(Ld(fe)||Vo(fe)))return[se];const ie=new Map;ie.set(se.resolvedPath,se);const ye=Z(Q,se.resolvedPath);for(;ye.length>0;){const Ne=ye.pop();if(!ie.has(Ne)){const Ue=X.getSourceFileByPath(Ne);ie.set(Ne,Ue),Ue&&N(Q,X,Ue,pe,we)&&ye.push(...Z(Q,Ue.resolvedPath))}}return Vs(xi(ie.values(),Ne=>Ne))}})(om||(om={}))}});function j1(e){let t=1;return e.sourceMap&&(t=t|2),e.inlineSourceMap&&(t=t|4),rd(e)&&(t=t|8),e.declarationMap&&(t=t|16),e.emitDeclarationOnly&&(t=t&24),t}function o3(e,t){const r=t&&(oy(t)?t:j1(t)),i=oy(e)?e:j1(e);if(r===i)return 0;if(!r||!i)return i;const s=r^i;let o=0;return s&7&&(o=i&7),s&24&&(o=o|i&24),o}function NHe(e,t){return e===t||e!==void 0&&t!==void 0&&e.size===t.size&&!Wg(e,r=>!t.has(r))}function IHe(e,t){var r,i;const s=om.create(e,t,!1);s.program=e;const o=e.getCompilerOptions();s.compilerOptions=o;const c=Vo(o);c?o.composite&&(t!=null&&t.outSignature)&&c===Vo(t==null?void 0:t.compilerOptions)&&(s.outSignature=t.outSignature&&g6e(o,t.compilerOptions,t.outSignature)):s.semanticDiagnosticsPerFile=new Map,s.changedFilesSet=new Set,s.latestChangedDtsFile=o.composite?t==null?void 0:t.latestChangedDtsFile:void 0;const u=om.canReuseOldState(s.referencedMap,t),f=u?t.compilerOptions:void 0,g=u&&t.semanticDiagnosticsPerFile&&!!s.semanticDiagnosticsPerFile&&!Oae(o,f),d=o.composite&&(t==null?void 0:t.emitSignatures)&&!c&&!Lae(o,t.compilerOptions);u?((r=t.changedFilesSet)==null||r.forEach(N=>s.changedFilesSet.add(N)),!c&&((i=t.affectedFilesPendingEmit)!=null&&i.size)&&(s.affectedFilesPendingEmit=new Map(t.affectedFilesPendingEmit),s.seenAffectedFiles=new Set),s.programEmitPending=t.programEmitPending):s.buildInfoEmitPending=!0;const y=s.referencedMap,x=u?t.referencedMap:void 0,T=g&&!o.skipLibCheck==!f.skipLibCheck,C=T&&!o.skipDefaultLibCheck==!f.skipDefaultLibCheck;if(s.fileInfos.forEach((N,D)=>{var M;let V,G;if(!u||!(V=t.fileInfos.get(D))||V.version!==N.version||V.impliedFormat!==N.impliedFormat||!NHe(G=y&&y.getValues(D),x&&x.getValues(D))||G&&Wg(G,Z=>!s.fileInfos.has(Z)&&t.fileInfos.has(Z)))m6e(s,D);else{const Z=e.getSourceFileByPath(D),z=(M=t.emitDiagnosticsPerFile)==null?void 0:M.get(D);if(z&&(s.emitDiagnosticsPerFile??(s.emitDiagnosticsPerFile=new Map)).set(D,t.hasReusableDiagnostic?v6e(z,e):h6e(z,e)),g){if(Z.isDeclarationFile&&!T||Z.hasNoDefaultLib&&!C)return;const ce=t.semanticDiagnosticsPerFile.get(D);ce&&(s.semanticDiagnosticsPerFile.set(D,t.hasReusableDiagnostic?v6e(ce,e):h6e(ce,e)),(s.semanticDiagnosticsFromOldState??(s.semanticDiagnosticsFromOldState=new Set)).add(D))}}if(d){const Z=t.emitSignatures.get(D);Z&&(s.emitSignatures??(s.emitSignatures=new Map)).set(D,g6e(o,t.compilerOptions,Z))}}),u&&cu(t.fileInfos,(N,D)=>s.fileInfos.has(D)?!1:c||N.affectsGlobalScope?!0:(s.buildInfoEmitPending=!0,!1)))om.getAllFilesExcludingDefaultLibraryFile(s,e,void 0).forEach(N=>m6e(s,N.resolvedPath));else if(f){const N=Fae(o,f)?j1(o):o3(o,f);N!==0&&(c?s.programEmitPending=s.programEmitPending?s.programEmitPending|N:N:(e.getSourceFiles().forEach(D=>{s.changedFilesSet.has(D.resolvedPath)||Tue(s,D.resolvedPath,N)}),w.assert(!s.seenAffectedFiles||!s.seenAffectedFiles.size),s.seenAffectedFiles=s.seenAffectedFiles||new Set,s.buildInfoEmitPending=!0))}return c&&!s.changedFilesSet.size&&(u&&(s.bundle=t.bundle),Pe(e.getProjectReferences(),N=>!!N.prepend)&&(s.programEmitPending=j1(o))),s}function m6e(e,t){e.changedFilesSet.add(t),e.buildInfoEmitPending=!0,e.programEmitPending=void 0}function g6e(e,t,r){return!!e.declarationMap==!!t.declarationMap?r:Ls(r)?[r]:r[0]}function h6e(e,t){return e.length?Dc(e,r=>{if(Ls(r.messageText))return r;const i=yue(r.messageText,r.file,t,s=>{var o;return(o=s.repopulateInfo)==null?void 0:o.call(s)});return i===r.messageText?r:{...r,messageText:i}}):e}function yue(e,t,r,i){const s=i(e);if(s)return{...FF(t,r,s.moduleReference,s.mode,s.packageName||s.moduleReference),next:y6e(e.next,t,r,i)};const o=y6e(e.next,t,r,i);return o===e.next?e:{...e,next:o}}function y6e(e,t,r,i){return Dc(e,s=>yue(s,t,r,i))}function v6e(e,t){if(!e.length)return Ke;let r;return e.map(s=>{const o=b6e(s,t,i);o.reportsUnnecessary=s.reportsUnnecessary,o.reportsDeprecated=s.reportDeprecated,o.source=s.source,o.skippedOn=s.skippedOn;const{relatedInformation:c}=s;return o.relatedInformation=c?c.length?c.map(u=>b6e(u,t,i)):[]:void 0,o});function i(s){return r??(r=oi(Ss(wy(t.getCompilerOptions()),t.getCurrentDirectory()))),hc(s,r,t.getCanonicalFileName)}}function b6e(e,t,r){const{file:i}=e,s=i?t.getSourceFileByPath(r(i)):void 0;return{...e,file:s,messageText:Ls(e.messageText)?e.messageText:yue(e.messageText,s,t,o=>o.info)}}function OHe(e){om.releaseCache(e),e.program=void 0}function FHe(e){const t=Vo(e.compilerOptions);return w.assert(!e.changedFilesSet.size||t),{affectedFilesPendingEmit:e.affectedFilesPendingEmit&&new Map(e.affectedFilesPendingEmit),seenEmittedFiles:e.seenEmittedFiles&&new Map(e.seenEmittedFiles),programEmitPending:e.programEmitPending,emitSignatures:e.emitSignatures&&new Map(e.emitSignatures),outSignature:e.outSignature,latestChangedDtsFile:e.latestChangedDtsFile,hasChangedEmitSignature:e.hasChangedEmitSignature,changedFilesSet:t?new Set(e.changedFilesSet):void 0,buildInfoEmitPending:e.buildInfoEmitPending,emitDiagnosticsPerFile:e.emitDiagnosticsPerFile&&new Map(e.emitDiagnosticsPerFile)}}function LHe(e,t){e.affectedFilesPendingEmit=t.affectedFilesPendingEmit,e.seenEmittedFiles=t.seenEmittedFiles,e.programEmitPending=t.programEmitPending,e.emitSignatures=t.emitSignatures,e.outSignature=t.outSignature,e.latestChangedDtsFile=t.latestChangedDtsFile,e.hasChangedEmitSignature=t.hasChangedEmitSignature,e.buildInfoEmitPending=t.buildInfoEmitPending,e.emitDiagnosticsPerFile=t.emitDiagnosticsPerFile,t.changedFilesSet&&(e.changedFilesSet=t.changedFilesSet)}function S6e(e,t){w.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function x6e(e,t,r){for(var i,s;;){const{affectedFiles:o}=e;if(o){const g=e.seenAffectedFiles;let d=e.affectedFilesIndex;for(;d{const o=i&7;o?e.affectedFilesPendingEmit.set(s,o):e.affectedFilesPendingEmit.delete(s)})}}function RHe(e,t){var r;if((r=e.affectedFilesPendingEmit)!=null&&r.size)return cu(e.affectedFilesPendingEmit,(i,s)=>{var o;const c=e.program.getSourceFileByPath(s);if(!c||!_x(c,e.program)){e.affectedFilesPendingEmit.delete(s);return}const u=(o=e.seenEmittedFiles)==null?void 0:o.get(c.resolvedPath);let f=o3(i,u);if(t&&(f=f&24),f)return{affectedFile:c,emitKind:f}})}function jHe(e){var t;if((t=e.emitDiagnosticsPerFile)!=null&&t.size)return cu(e.emitDiagnosticsPerFile,(r,i)=>{var s;const o=e.program.getSourceFileByPath(i);if(!o||!_x(o,e.program)){e.emitDiagnosticsPerFile.delete(i);return}const c=((s=e.seenEmittedFiles)==null?void 0:s.get(o.resolvedPath))||0;if(!(c&24))return{affectedFile:o,diagnostics:r,seenKind:c}})}function T6e(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;const t=w.checkDefined(e.program),r=t.getCompilerOptions();dt(t.getSourceFiles(),i=>t.isSourceFileDefaultLibrary(i)&&!nw(i,r,t)&&vue(e,i.resolvedPath))}}function BHe(e,t,r,i){if(vue(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles){T6e(e),om.updateShapeSignature(e,w.checkDefined(e.program),t,r,i);return}e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||JHe(e,t,r,i)}function H$(e,t,r,i){if(vue(e,t),!e.changedFilesSet.has(t)){const s=w.checkDefined(e.program),o=s.getSourceFileByPath(t);o&&(om.updateShapeSignature(e,s,o,r,i,!0),rd(e.compilerOptions)&&Tue(e,t,e.compilerOptions.declarationMap?24:8))}}function vue(e,t){return e.semanticDiagnosticsFromOldState?(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size):!0}function k6e(e,t){const r=w.checkDefined(e.oldSignatures).get(t)||void 0;return w.checkDefined(e.fileInfos.get(t)).signature!==r}function bue(e,t,r,i){var s;return(s=e.fileInfos.get(t))!=null&&s.affectsGlobalScope?(om.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach(o=>H$(e,o.resolvedPath,r,i)),T6e(e),!0):!1}function JHe(e,t,r,i){var s;if(!e.exportedModulesMap||!e.changedFilesSet.has(t.resolvedPath)||!k6e(e,t.resolvedPath))return;if(Ld(e.compilerOptions)){const c=new Map;c.set(t.resolvedPath,!0);const u=om.getReferencedByPaths(e,t.resolvedPath);for(;u.length>0;){const f=u.pop();if(!c.has(f)){if(c.set(f,!0),bue(e,f,r,i))return;if(H$(e,f,r,i),k6e(e,f)){const g=w.checkDefined(e.program).getSourceFileByPath(f);u.push(...om.getReferencedByPaths(e,g.resolvedPath))}}}}const o=new Set;(s=e.exportedModulesMap.getKeys(t.resolvedPath))==null||s.forEach(c=>{if(bue(e,c,r,i))return!0;const u=e.referencedMap.getKeys(c);return u&&Wg(u,f=>C6e(e,f,o,r,i))})}function C6e(e,t,r,i,s){var o,c;if(Na(r,t)){if(bue(e,t,i,s))return!0;H$(e,t,i,s),(o=e.exportedModulesMap.getKeys(t))==null||o.forEach(u=>C6e(e,u,r,i,s)),(c=e.referencedMap.getKeys(t))==null||c.forEach(u=>!r.has(u)&&H$(e,u,i,s))}}function Sue(e,t,r){return zn(zHe(e,t,r),w.checkDefined(e.program).getProgramDiagnostics(t))}function zHe(e,t,r){const i=t.resolvedPath;if(e.semanticDiagnosticsPerFile){const o=e.semanticDiagnosticsPerFile.get(i);if(o)return bR(o,e.compilerOptions)}const s=w.checkDefined(e.program).getBindAndCheckDiagnostics(t,r);return e.semanticDiagnosticsPerFile&&e.semanticDiagnosticsPerFile.set(i,s),bR(s,e.compilerOptions)}function xue(e){return!!Vo(e.options||{})}function UHe(e,t){var r,i,s;const o=w.checkDefined(e.program).getCurrentDirectory(),c=oi(Ss(wy(e.compilerOptions),o)),u=e.latestChangedDtsFile?ce(e.latestChangedDtsFile):void 0,f=[],g=new Map,d=[];if(Vo(e.compilerOptions)){const ye=Vs(e.fileInfos.entries(),([Le,Tt])=>{const xe=ne(Le);return ve(Le,xe),Tt.impliedFormat?{version:Tt.version,impliedFormat:Tt.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:Tt.version}),Ne={fileNames:f,fileInfos:ye,root:d,options:Q(e.compilerOptions),outSignature:e.outSignature,latestChangedDtsFile:u,pendingEmit:e.programEmitPending?e.programEmitPending===j1(e.compilerOptions)?!1:e.programEmitPending:void 0},{js:Ue,dts:Se,commonSourceDirectory:Ee,sourceFiles:Ae}=t;return e.bundle=t={commonSourceDirectory:Ee,sourceFiles:Ae,js:Ue||(e.compilerOptions.emitDeclarationOnly||(r=e.bundle)==null?void 0:r.js),dts:Se||(rd(e.compilerOptions)?(i=e.bundle)==null?void 0:i.dts:void 0)},R7(Ne,t)}let y,x,T;const C=Vs(e.fileInfos.entries(),([ye,Ne])=>{var Ue,Se;const Ee=ne(ye);ve(ye,Ee),w.assert(f[Ee-1]===J(ye));const Ae=(Ue=e.oldSignatures)==null?void 0:Ue.get(ye),Le=Ae!==void 0?Ae||void 0:Ne.signature;if(e.compilerOptions.composite){const Tt=e.program.getSourceFileByPath(ye);if(!wd(Tt)&&_x(Tt,e.program)){const xe=(Se=e.emitSignatures)==null?void 0:Se.get(ye);xe!==Le&&(T||(T=[])).push(xe===void 0?Ee:[Ee,!Ls(xe)&&xe[0]===Le?Ke:xe])}}return Ne.version===Le?Ne.affectsGlobalScope||Ne.impliedFormat?{version:Ne.version,signature:void 0,affectsGlobalScope:Ne.affectsGlobalScope,impliedFormat:Ne.impliedFormat}:Ne.version:Le!==void 0?Ae===void 0?Ne:{version:Ne.version,signature:Le,affectsGlobalScope:Ne.affectsGlobalScope,impliedFormat:Ne.impliedFormat}:{version:Ne.version,signature:!1,affectsGlobalScope:Ne.affectsGlobalScope,impliedFormat:Ne.impliedFormat}});let N;e.referencedMap&&(N=Vs(e.referencedMap.keys()).sort(p_).map(ye=>[ne(ye),ge(e.referencedMap.getValues(ye))]));let D;e.exportedModulesMap&&(D=Oi(Vs(e.exportedModulesMap.keys()).sort(p_),ye=>{var Ne;const Ue=(Ne=e.oldExportedModulesMap)==null?void 0:Ne.get(ye);if(Ue===void 0)return[ne(ye),ge(e.exportedModulesMap.getValues(ye))];if(Ue)return[ne(ye),ge(Ue)]}));const M=se(e.semanticDiagnosticsPerFile);let V;if((s=e.affectedFilesPendingEmit)!=null&&s.size){const ye=j1(e.compilerOptions),Ne=new Set;for(const Ue of Vs(e.affectedFilesPendingEmit.keys()).sort(p_))if(Na(Ne,Ue)){const Se=e.program.getSourceFileByPath(Ue);if(!Se||!_x(Se,e.program))continue;const Ee=ne(Ue),Ae=e.affectedFilesPendingEmit.get(Ue);(V||(V=[])).push(Ae===ye?Ee:Ae===8?[Ee]:[Ee,Ae])}}let G;if(e.changedFilesSet.size)for(const ye of Vs(e.changedFilesSet.keys()).sort(p_))(G||(G=[])).push(ne(ye));const Z=se(e.emitDiagnosticsPerFile),z={fileNames:f,fileInfos:C,root:d,options:Q(e.compilerOptions),fileIdsList:y,referencedMap:N,exportedModulesMap:D,semanticDiagnosticsPerFile:M,emitDiagnosticsPerFile:Z,affectedFilesPendingEmit:V,changeFileSet:G,emitSignatures:T,latestChangedDtsFile:u};return R7(z,t);function ce(ye){return J(Ss(ye,o))}function J(ye){return ob(Qd(c,ye,e.program.getCanonicalFileName))}function ne(ye){let Ne=g.get(ye);return Ne===void 0&&(f.push(J(ye)),g.set(ye,Ne=f.length)),Ne}function ge(ye){const Ne=Vs(ye.keys(),ne).sort(mc),Ue=Ne.join();let Se=x==null?void 0:x.get(Ue);return Se===void 0&&((y||(y=[])).push(Ne),(x||(x=new Map)).set(Ue,Se=y.length)),Se}function ve(ye,Ne){const Ue=e.program.getSourceFile(ye);if(!e.program.getFileIncludeReasons().get(Ue.path).some(Le=>Le.kind===0))return;if(!d.length)return d.push(Ne);const Se=d[d.length-1],Ee=Ps(Se);if(Ee&&Se[1]===Ne-1)return Se[1]=Ne;if(Ee||d.length===1||Se!==Ne-1)return d.push(Ne);const Ae=d[d.length-2];return!oy(Ae)||Ae!==Se-1?d.push(Ne):(d[d.length-2]=[Ae,Ne],d.length=d.length-1)}function Q(ye){let Ne;const{optionsNameMap:Ue}=G4();for(const Se of Eh(ye).sort(p_)){const Ee=Ue.get(Se.toLowerCase());Ee!=null&&Ee.affectsBuildInfo&&((Ne||(Ne={}))[Se]=X(Ee,ye[Se]))}return Ne}function X(ye,Ne){if(ye){if(w.assert(ye.type!=="listOrElement"),ye.type==="list"){const Ue=Ne;if(ye.element.isFilePath&&Ue.length)return Ue.map(ce)}else if(ye.isFilePath)return ce(Ne)}return Ne}function se(ye){let Ne;if(ye)for(const Ue of Vs(ye.keys()).sort(p_)){const Se=ye.get(Ue);(Ne||(Ne=[])).push(Se.length?[ne(Ue),pe(Se)]:ne(Ue))}return Ne}function pe(ye){return w.assert(!!ye.length),ye.map(Ne=>{const Ue=we(Ne);Ue.reportsUnnecessary=Ne.reportsUnnecessary,Ue.reportDeprecated=Ne.reportsDeprecated,Ue.source=Ne.source,Ue.skippedOn=Ne.skippedOn;const{relatedInformation:Se}=Ne;return Ue.relatedInformation=Se?Se.length?Se.map(Ee=>we(Ee)):[]:void 0,Ue})}function we(ye){const{file:Ne}=ye;return{...ye,file:Ne?J(Ne.resolvedPath):void 0,messageText:Ls(ye.messageText)?ye.messageText:fe(ye.messageText)}}function fe(ye){if(ye.repopulateInfo)return{info:ye.repopulateInfo(),next:ie(ye.next)};const Ne=ie(ye.next);return Ne===ye.next?ye:{...ye,next:Ne}}function ie(ye){return ye&&(dt(ye,(Ne,Ue)=>{const Se=fe(Ne);if(Ne===Se)return;const Ee=Ue>0?ye.slice(0,Ue-1):[];Ee.push(Se);for(let Ae=Ue+1;Ae`${f(g)}${V8[g.category]}${g.code}: ${u(g.messageText)}`).join(` +`)),(i.createHash??iP)(r);function u(g){return Ls(g)?g:g===void 0?"":g.next?g.messageText+g.next.map(u).join(` +`):g.messageText}function f(g){return g.file.resolvedPath===t.resolvedPath?`(${g.start},${g.length})`:(c===void 0&&(c=oi(t.resolvedPath)),`${ob(Qd(c,g.file.resolvedPath,e.getCanonicalFileName))}(${g.start},${g.length})`)}}function Rx(e,t,r){return(t.createHash??iP)(E6e(e,r))}function $$(e,{newProgram:t,host:r,oldProgram:i,configFileParsingDiagnostics:s}){let o=i&&i.getState();if(o&&t===o.program&&s===t.getConfigFileParsingDiagnostics())return t=void 0,o=void 0,i;const c=IHe(t,o);t.getBuildInfo=N=>UHe(c,N),t=void 0,i=void 0,o=void 0;const u=()=>c,f=Q$(u,s);return f.getState=u,f.saveEmitState=()=>FHe(c),f.restoreEmitState=N=>LHe(c,N),f.hasChangedEmitSignature=()=>!!c.hasChangedEmitSignature,f.getAllDependencies=N=>om.getAllDependencies(c,w.checkDefined(c.program),N),f.getSemanticDiagnostics=C,f.emit=x,f.releaseProgram=()=>OHe(c),e===0?f.getSemanticDiagnosticsOfNextAffectedFile=T:e===1?(f.getSemanticDiagnosticsOfNextAffectedFile=T,f.emitNextAffectedFile=d,f.emitBuildInfo=g):ta(),f;function g(N,D){if(c.buildInfoEmitPending){const M=w.checkDefined(c.program).emitBuildInfo(N||fa(r,r.writeFile),D);return c.buildInfoEmitPending=!1,M}return kR}function d(N,D,M,V){var G,Z,z;let ce=x6e(c,D,r);const J=j1(c.compilerOptions);let ne=M?J&24:J;if(!ce)if(Vo(c.compilerOptions)){if(!c.programEmitPending||(ne=c.programEmitPending,M&&(ne=ne&24),!ne))return;ce=c.program}else{const Q=RHe(c,M);if(!Q){const X=jHe(c);if(X)return(c.seenEmittedFiles??(c.seenEmittedFiles=new Map)).set(X.affectedFile.resolvedPath,X.seenKind|24),{result:{emitSkipped:!0,diagnostics:X.diagnostics},affected:X.affectedFile};if(!c.buildInfoEmitPending)return;const se=c.program,pe=se.emitBuildInfo(N||fa(r,r.writeFile),D);return c.buildInfoEmitPending=!1,{result:pe,affected:se}}({affectedFile:ce,emitKind:ne}=Q)}let ge;ne&7&&(ge=0),ne&24&&(ge=ge===void 0?1:void 0),ce===c.program&&(c.programEmitPending=c.changedFilesSet.size?o3(J,ne):c.programEmitPending?o3(c.programEmitPending,ne):void 0);const ve=c.program.emit(ce===c.program?void 0:ce,y(N,V),D,ge,V);if(ce!==c.program){const Q=ce;c.seenAffectedFiles.add(Q.resolvedPath),c.affectedFilesIndex!==void 0&&c.affectedFilesIndex++,c.buildInfoEmitPending=!0;const X=((G=c.seenEmittedFiles)==null?void 0:G.get(Q.resolvedPath))||0;(c.seenEmittedFiles??(c.seenEmittedFiles=new Map)).set(Q.resolvedPath,ne|X);const se=((Z=c.affectedFilesPendingEmit)==null?void 0:Z.get(Q.resolvedPath))||J,pe=o3(se,ne|X);pe?(c.affectedFilesPendingEmit??(c.affectedFilesPendingEmit=new Map)).set(Q.resolvedPath,pe):(z=c.affectedFilesPendingEmit)==null||z.delete(Q.resolvedPath),ve.diagnostics.length&&(c.emitDiagnosticsPerFile??(c.emitDiagnosticsPerFile=new Map)).set(Q.resolvedPath,ve.diagnostics)}else c.changedFilesSet.clear();return{result:ve,affected:ce}}function y(N,D){return rd(c.compilerOptions)?(M,V,G,Z,z,ce)=>{var J,ne,ge,ve;if(Wu(M))if(Vo(c.compilerOptions)){if(c.compilerOptions.composite){const X=Q(c.outSignature,void 0);if(!X)return;c.outSignature=X}}else{w.assert((z==null?void 0:z.length)===1);let X;if(!D){const se=z[0],pe=c.fileInfos.get(se.resolvedPath);if(pe.signature===se.version){const we=G$(c.program,se,V,r,ce);(J=ce==null?void 0:ce.diagnostics)!=null&&J.length||(X=we),we!==se.version&&(r.storeFilesChangingSignatureDuringEmit&&(c.filesChangingSignature??(c.filesChangingSignature=new Set)).add(se.resolvedPath),c.exportedModulesMap&&om.updateExportedModules(c,se,se.exportedModulesFromDeclarationEmit),c.affectedFiles?(((ne=c.oldSignatures)==null?void 0:ne.get(se.resolvedPath))===void 0&&(c.oldSignatures??(c.oldSignatures=new Map)).set(se.resolvedPath,pe.signature||!1),pe.signature=we):(pe.signature=we,(ge=c.oldExportedModulesMap)==null||ge.clear()))}}if(c.compilerOptions.composite){const se=z[0].resolvedPath;if(X=Q((ve=c.emitSignatures)==null?void 0:ve.get(se),X),!X)return;(c.emitSignatures??(c.emitSignatures=new Map)).set(se,X)}}N?N(M,V,G,Z,z,ce):r.writeFile?r.writeFile(M,V,G,Z,z,ce):c.program.writeFile(M,V,G,Z,z,ce);function Q(X,se){const pe=!X||Ls(X)?X:X[0];if(se??(se=Rx(V,r,ce)),se===pe){if(X===pe)return;ce?ce.differsOnlyInMap=!0:ce={differsOnlyInMap:!0}}else c.hasChangedEmitSignature=!0,c.latestChangedDtsFile=M;return se}}:N||fa(r,r.writeFile)}function x(N,D,M,V,G){e===1&&S6e(c,N);const Z=J$(f,N,D,M);if(Z)return Z;if(!N)if(e===1){let z=[],ce=!1,J,ne=[],ge;for(;ge=d(D,M,V,G);)ce=ce||ge.result.emitSkipped,J=Mr(J,ge.result.diagnostics),ne=Mr(ne,ge.result.emittedFiles),z=Mr(z,ge.result.sourceMaps);return{emitSkipped:ce,diagnostics:J||Ke,emittedFiles:ne,sourceMaps:z}}else MHe(c,V);return w.checkDefined(c.program).emit(N,y(D,G),M,V,G)}function T(N,D){for(;;){const M=x6e(c,N,r);let V;if(M)if(M!==c.program){const G=M;if((!D||!D(G))&&(V=Sue(c,G,N)),c.seenAffectedFiles.add(G.resolvedPath),c.affectedFilesIndex++,c.buildInfoEmitPending=!0,!V)continue}else V=c.program.getSemanticDiagnostics(void 0,N),c.changedFilesSet.clear(),c.programEmitPending=j1(c.compilerOptions);else return;return{result:V,affected:M}}}function C(N,D){S6e(c,N);const M=w.checkDefined(c.program).getCompilerOptions();if(Vo(M))return w.assert(!c.semanticDiagnosticsPerFile),w.checkDefined(c.program).getSemanticDiagnostics(N,D);if(N)return Sue(c,N,D);for(;T(D););let V;for(const G of w.checkDefined(c.program).getSourceFiles())V=Mr(V,Sue(c,G,D));return V||Ke}}function Tue(e,t,r){var i,s;const o=((i=e.affectedFilesPendingEmit)==null?void 0:i.get(t))||0;(e.affectedFilesPendingEmit??(e.affectedFilesPendingEmit=new Map)).set(t,o|r),(s=e.emitDiagnosticsPerFile)==null||s.delete(t)}function kue(e){return Ls(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:Ls(e.signature)?e:{version:e.version,signature:e.signature===!1?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function Cue(e,t){return oy(e)?t:e[1]||8}function Eue(e,t){return e||j1(t||{})}function Pue(e,t,r){var i,s,o,c;const u=e.program,f=oi(Ss(t,r.getCurrentDirectory())),g=e_(r.useCaseSensitiveFileNames());let d;const y=(i=u.fileNames)==null?void 0:i.map(C);let x;const T=u.latestChangedDtsFile?N(u.latestChangedDtsFile):void 0;if(xue(u)){const Z=new Map;u.fileInfos.forEach((z,ce)=>{const J=D(ce+1);Z.set(J,Ls(z)?{version:z,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:z)}),d={fileInfos:Z,compilerOptions:u.options?_G(u.options,N):{},latestChangedDtsFile:T,outSignature:u.outSignature,programEmitPending:u.pendingEmit===void 0?void 0:Eue(u.pendingEmit,u.options),bundle:e.bundle}}else{x=(s=u.fileIdsList)==null?void 0:s.map(J=>new Set(J.map(D)));const Z=new Map,z=(o=u.options)!=null&&o.composite&&!Vo(u.options)?new Map:void 0;u.fileInfos.forEach((J,ne)=>{const ge=D(ne+1),ve=kue(J);Z.set(ge,ve),z&&ve.signature&&z.set(ge,ve.signature)}),(c=u.emitSignatures)==null||c.forEach(J=>{if(oy(J))z.delete(D(J));else{const ne=D(J[0]);z.set(ne,!Ls(J[1])&&!J[1].length?[z.get(ne)]:J[1])}});const ce=u.affectedFilesPendingEmit?j1(u.options||{}):void 0;d={fileInfos:Z,compilerOptions:u.options?_G(u.options,N):{},referencedMap:V(u.referencedMap),exportedModulesMap:V(u.exportedModulesMap),semanticDiagnosticsPerFile:G(u.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:G(u.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,affectedFilesPendingEmit:u.affectedFilesPendingEmit&&ab(u.affectedFilesPendingEmit,J=>D(oy(J)?J:J[0]),J=>Cue(J,ce)),changedFilesSet:new Set(Kt(u.changeFileSet,D)),latestChangedDtsFile:T,emitSignatures:z!=null&&z.size?z:void 0}}return{getState:()=>d,saveEmitState:ao,restoreEmitState:ao,getProgram:ta,getProgramOrUndefined:Rv,releaseProgram:ao,getCompilerOptions:()=>d.compilerOptions,getSourceFile:ta,getSourceFiles:ta,getOptionsDiagnostics:ta,getGlobalDiagnostics:ta,getConfigFileParsingDiagnostics:ta,getSyntacticDiagnostics:ta,getDeclarationDiagnostics:ta,getSemanticDiagnostics:ta,emit:ta,getAllDependencies:ta,getCurrentDirectory:ta,emitNextAffectedFile:ta,getSemanticDiagnosticsOfNextAffectedFile:ta,emitBuildInfo:ta,close:ao,hasChangedEmitSignature:xm};function C(Z){return hc(Z,f,g)}function N(Z){return Ss(Z,f)}function D(Z){return y[Z-1]}function M(Z){return x[Z-1]}function V(Z){if(!Z)return;const z=om.createManyToManyPathMap();return Z.forEach(([ce,J])=>z.set(D(ce),M(J))),z}function G(Z){return Z&&ab(Z,z=>D(oy(z)?z:z[0]),z=>oy(z)?Ke:z[1])}}function X$(e,t,r){const i=oi(Ss(t,r.getCurrentDirectory())),s=e_(r.useCaseSensitiveFileNames()),o=new Map;let c=0;const u=[];return e.fileInfos.forEach((f,g)=>{const d=hc(e.fileNames[g],i,s),y=Ls(f)?f:f.version;if(o.set(d,y),ce().program,releaseProgram:()=>e().program=void 0,getCompilerOptions:()=>e().compilerOptions,getSourceFile:i=>r().getSourceFile(i),getSourceFiles:()=>r().getSourceFiles(),getOptionsDiagnostics:i=>r().getOptionsDiagnostics(i),getGlobalDiagnostics:i=>r().getGlobalDiagnostics(i),getConfigFileParsingDiagnostics:()=>t,getSyntacticDiagnostics:(i,s)=>r().getSyntacticDiagnostics(i,s),getDeclarationDiagnostics:(i,s)=>r().getDeclarationDiagnostics(i,s),getSemanticDiagnostics:(i,s)=>r().getSemanticDiagnostics(i,s),emit:(i,s,o,c,u)=>r().emit(i,s,o,c,u),emitBuildInfo:(i,s)=>r().emitBuildInfo(i,s),getAllDependencies:ta,getCurrentDirectory:()=>r().getCurrentDirectory(),close:ao};function r(){return w.checkDefined(e().program)}}var Y$,Z$,VHe=K({"src/compiler/builder.ts"(){ua(),Y$=(e=>(e[e.None=0]="None",e[e.Js=1]="Js",e[e.JsMap=2]="JsMap",e[e.JsInlineMap=4]="JsInlineMap",e[e.Dts=8]="Dts",e[e.DtsMap=16]="DtsMap",e[e.AllJs=7]="AllJs",e[e.AllDts=24]="AllDts",e[e.All=31]="All",e))(Y$||{}),Z$=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(Z$||{})}});function P6e(e,t,r,i,s,o){return $$(0,CR(e,t,r,i,s,o))}function K$(e,t,r,i,s,o){return $$(1,CR(e,t,r,i,s,o))}function w6e(e,t,r,i,s,o){const{newProgram:c,configFileParsingDiagnostics:u}=CR(e,t,r,i,s,o);return Q$(()=>({program:c,compilerOptions:c.getCompilerOptions()}),u)}var WHe=K({"src/compiler/builderPublic.ts"(){ua()}});function ER(e){return Jc(e,"/node_modules/.staging")?P6(e,"/.staging"):Pe(G8,t=>e.includes(t))?void 0:e}function wue(e,t){if(t<=1)return 1;let r=1,i=e[0].search(/[a-zA-Z]:/)===0;if(e[0]!==yc&&!i&&e[1].search(/[a-zA-Z]\$$/)===0){if(t===2)return 2;r=2,i=!0}return i&&!e[r].match(/^users$/i)?r:e[r].match(/^workspaces$/i)?r+1:r+2}function PR(e,t){if(t===void 0&&(t=e.length),t<=2)return!1;const r=wue(e,t);return t>r+1}function Due(e){return A6e(oi(e))}function D6e(e,t){if(t.lengths.length+1?Nue(u,c,Math.max(s.length+1,f+1)):{dir:r,dirPath:i,nonRecursive:!0}:N6e(u,c,c.length-1,f,g,s)}function N6e(e,t,r,i,s,o){if(s!==-1)return Nue(e,t,s+1);let c=!0,u=r;for(let f=0;fqHe(i,s,o,e,r,t,c)}}function qHe(e,t,r,i,s,o,c){const u=wR(e),f=Y4(r,i,s,u,t,o,c);if(!e.getGlobalCache)return f;const g=e.getGlobalCache();if(g!==void 0&&!yu(r)&&!(f.resolvedModule&&Q9(f.resolvedModule.extension))){const{resolvedModule:d,failedLookupLocations:y,affectingLocations:x,resolutionDiagnostics:T}=Xce(w.checkDefined(e.globalCacheResolutionModuleName)(r),e.projectName,s,u,g,t);if(d)return f.resolvedModule=d,f.failedLookupLocations=X4(f.failedLookupLocations,y),f.affectingLocations=X4(f.affectingLocations,x),f.resolutionDiagnostics=X4(f.resolutionDiagnostics,T),f}return f}function tX(e,t,r){let i,s,o;const c=Dp(),u=new Set,f=new Set,g=new Map,d=new Map;let y=!1,x,T,C,N,D,M=!1;const V=X_(()=>e.getCurrentDirectory()),G=e.getCachedDirectoryStructureHost(),Z=new Map,z=Q4(V(),e.getCanonicalFileName,e.getCompilationSettings()),ce=new Map,J=FM(V(),e.getCanonicalFileName,e.getCompilationSettings(),z.getPackageJsonInfoCache(),z.optionsToRedirectsKey),ne=new Map,ge=Q4(V(),e.getCanonicalFileName,PG(e.getCompilationSettings()),z.getPackageJsonInfoCache()),ve=new Map,Q=new Map,X=Oue(t,V),se=e.toPath(X),pe=au(se),we=new Map;return{rootDirForResolution:t,resolvedModuleNames:Z,resolvedTypeReferenceDirectives:ce,resolvedLibraries:ne,resolvedFileToResolution:g,resolutionsWithFailedLookups:u,resolutionsWithOnlyAffectingLocations:f,directoryWatchesOfFailedLookups:ve,fileWatchesOfAffectingLocations:Q,watchFailedLookupLocationsOfExternalModuleResolutions:In,getModuleResolutionCache:()=>z,startRecordingFilesWithChangedResolutions:Ue,finishRecordingFilesWithChangedResolutions:Se,startCachingPerDirectoryResolution:Le,finishCachingPerDirectoryResolution:xe,resolveModuleNameLiterals:$e,resolveTypeReferenceDirectiveReferences:yt,resolveLibrary:kt,resolveSingleModuleNameWithoutWatching:nn,removeResolutionsFromProjectReferenceRedirects:et,removeResolutionsOfFile:Jt,hasChangedAutomaticTypeDirectiveNames:()=>y,invalidateResolutionOfFile:ui,invalidateResolutionsOfFailedLookupLocations:Sa,setFilesWithInvalidatedNonRelativeUnresolvedImports:vi,createHasInvalidatedResolutions:Ae,isFileWithInvalidatedNonRelativeUnresolvedImports:Ee,updateTypeRootsWatch:ft,closeTypeRootsWatch:Ve,clear:ye,onChangesAffectModuleResolution:Ne};function fe(le){return le.resolvedModule}function ie(le){return le.resolvedTypeReferenceDirective}function ye(){wf(ve,ad),wf(Q,ad),c.clear(),Ve(),Z.clear(),ce.clear(),g.clear(),u.clear(),f.clear(),C=void 0,N=void 0,D=void 0,T=void 0,x=void 0,M=!1,z.clear(),J.clear(),z.update(e.getCompilationSettings()),J.update(e.getCompilationSettings()),ge.clear(),d.clear(),ne.clear(),y=!1}function Ne(){M=!0,z.clearAllExceptPackageJsonInfoCache(),J.clearAllExceptPackageJsonInfoCache(),z.update(e.getCompilationSettings()),J.update(e.getCompilationSettings())}function Ue(){i=[]}function Se(){const le=i;return i=void 0,le}function Ee(le){if(!o)return!1;const Me=o.get(le);return!!Me&&!!Me.length}function Ae(le,Me){Sa();const _t=s;return s=void 0,{hasInvalidatedResolutions:U=>le(U)||M||!!(_t!=null&&_t.has(U))||Ee(U),hasInvalidatedLibResolutions:U=>{var it;return Me(U)||!!((it=ne==null?void 0:ne.get(U))!=null&&it.isInvalidated)}}}function Le(){z.isReadonly=void 0,J.isReadonly=void 0,ge.isReadonly=void 0,z.getPackageJsonInfoCache().isReadonly=void 0,z.clearAllExceptPackageJsonInfoCache(),J.clearAllExceptPackageJsonInfoCache(),ge.clearAllExceptPackageJsonInfoCache(),c.forEach(us),c.clear()}function Tt(le){ne.forEach((Me,_t)=>{var U;(U=le==null?void 0:le.resolvedLibReferences)!=null&&U.has(_t)||(On(Me,e.toPath(yR(e.getCompilationSettings(),V(),_t)),fe),ne.delete(_t))})}function xe(le,Me){o=void 0,M=!1,c.forEach(us),c.clear(),le!==Me&&(Tt(le),le==null||le.getSourceFiles().forEach(_t=>{var U;const it=mp(_t)?((U=_t.packageJsonLocations)==null?void 0:U.length)??0:0,Et=d.get(_t.path)??Ke;for(let Ge=Et.length;Geit)for(let Ge=it;Ge{le!=null&&le.getSourceFileByPath(U)||(_t.forEach(it=>Q.get(it).files--),d.delete(U))})),ve.forEach(ze),Q.forEach(st),y=!1,z.isReadonly=!0,J.isReadonly=!0,ge.isReadonly=!0,z.getPackageJsonInfoCache().isReadonly=!0}function ze(le,Me){le.refCount===0&&(ve.delete(Me),le.watcher.close())}function st(le,Me){var _t;le.files===0&&le.resolutions===0&&!((_t=le.symlinks)!=null&&_t.size)&&(Q.delete(Me),le.watcher.close())}function zt({entries:le,containingFile:Me,containingSourceFile:_t,redirectedReference:U,options:it,perFileCache:Et,reusedNames:Ge,loader:mt,getResolutionWithResolvedFileName:Ut,deferWatchingNonRelativeResolution:vn,shouldRetryResolution:pn,logChanges:mn}){const q=e.toPath(Me),Fe=Et.get(q)||Et.set(q,aC()).get(q),Ot=[],I=mn&&Ee(q),me=e.getCurrentProgram(),H=me&&me.getResolvedProjectReferenceToRedirect(Me),de=H?!U||U.sourceFile.path!==H.sourceFile.path:!!U,Be=aC();for(const xt of le){const Ft=mt.nameAndMode.getName(xt),tn=mt.nameAndMode.getMode(xt,_t,(U==null?void 0:U.commandLine.options)||it);let Sn=Fe.get(Ft,tn);if(!Be.has(Ft,tn)&&(M||de||!Sn||Sn.isInvalidated||I&&!yu(Ft)&&pn(Sn))){const Un=Sn;Sn=mt.resolve(Ft,tn),e.onDiscoveredSymlink&&HHe(Sn)&&e.onDiscoveredSymlink(),Fe.set(Ft,tn,Sn),Sn!==Un&&(In(Ft,Sn,q,Ut,vn),Un&&On(Un,q,Ut)),mn&&i&&!Ie(Un,Sn)&&(i.push(q),mn=!1)}else{const Un=wR(e);if(k0(it,Un)&&!Be.has(Ft,tn)){const Gn=Ut(Sn);Cs(Un,Et===Z?Gn!=null&&Gn.resolvedFileName?Gn.packageId?p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:Gn!=null&&Gn.resolvedFileName?Gn.packageId?p.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:p.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:p.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,Ft,Me,Gn==null?void 0:Gn.resolvedFileName,(Gn==null?void 0:Gn.packageId)&&y1(Gn.packageId))}}w.assert(Sn!==void 0&&!Sn.isInvalidated),Be.set(Ft,tn,!0),Ot.push(Sn)}return Ge==null||Ge.forEach(xt=>Be.set(mt.nameAndMode.getName(xt),mt.nameAndMode.getMode(xt,_t,(U==null?void 0:U.commandLine.options)||it),!0)),Fe.size()!==Be.size()&&Fe.forEach((xt,Ft,tn)=>{Be.has(Ft,tn)||(On(xt,q,Ut),Fe.delete(Ft,tn))}),Ot;function Ie(xt,Ft){if(xt===Ft)return!0;if(!xt||!Ft)return!1;const tn=Ut(xt),Sn=Ut(Ft);return tn===Sn?!0:!tn||!Sn?!1:tn.resolvedFileName===Sn.resolvedFileName}}function yt(le,Me,_t,U,it,Et){return zt({entries:le,containingFile:Me,containingSourceFile:it,redirectedReference:_t,options:U,reusedNames:Et,perFileCache:ce,loader:gR(Me,_t,U,wR(e),J),getResolutionWithResolvedFileName:ie,shouldRetryResolution:Ge=>Ge.resolvedTypeReferenceDirective===void 0,deferWatchingNonRelativeResolution:!1})}function $e(le,Me,_t,U,it,Et){return zt({entries:le,containingFile:Me,containingSourceFile:it,redirectedReference:_t,options:U,reusedNames:Et,perFileCache:Z,loader:Fue(Me,_t,U,e,z),getResolutionWithResolvedFileName:fe,shouldRetryResolution:Ge=>!Ge.resolvedModule||!ew(Ge.resolvedModule.extension),logChanges:r,deferWatchingNonRelativeResolution:!0})}function kt(le,Me,_t,U){const it=wR(e);let Et=ne==null?void 0:ne.get(U);if(!Et||Et.isInvalidated){const Ge=Et;Et=LM(le,Me,_t,it,ge);const mt=e.toPath(Me);In(le,Et,mt,fe,!1),ne.set(U,Et),Ge&&On(Ge,mt,fe)}else if(k0(_t,it)){const Ge=fe(Et);Cs(it,Ge!=null&&Ge.resolvedFileName?Ge.packageId?p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,le,Me,Ge==null?void 0:Ge.resolvedFileName,(Ge==null?void 0:Ge.packageId)&&y1(Ge.packageId))}return Et}function nn(le,Me){var _t,U;const it=e.toPath(Me),Et=Z.get(it),Ge=Et==null?void 0:Et.get(le,void 0);if(Ge&&!Ge.isInvalidated)return Ge;const mt=(_t=e.beforeResolveSingleModuleNameWithoutWatching)==null?void 0:_t.call(e,z),Ut=wR(e),vn=Y4(le,Me,e.getCompilationSettings(),Ut,z);return(U=e.afterResolveSingleModuleNameWithoutWatching)==null||U.call(e,z,le,Me,vn,mt),vn}function sn(le){return Jc(le,"/node_modules/@types")}function In(le,Me,_t,U,it){var Et;if(Me.refCount)Me.refCount++,w.assertIsDefined(Me.files);else{Me.refCount=1,w.assert(!((Et=Me.files)!=null&&Et.size)),!it||yu(le)?hn(Me):c.add(le,Me);const Ge=U(Me);if(Ge&&Ge.resolvedFileName){const mt=e.toPath(Ge.resolvedFileName);let Ut=g.get(mt);Ut||g.set(mt,Ut=new Set),Ut.add(Me)}}(Me.files??(Me.files=new Set)).add(_t)}function Zn(le,Me){const _t=e.toPath(le),U=eX(le,_t,X,se,pe,V);if(U){const{dir:it,dirPath:Et,nonRecursive:Ge}=U;Et===se?(w.assert(Ge),Me=!0):zi(it,Et,Ge)}return Me}function hn(le){w.assert(!!le.refCount);const{failedLookupLocations:Me,affectingLocations:_t,alternateResult:U}=le;if(!(Me!=null&&Me.length)&&!(_t!=null&&_t.length)&&!U)return;(Me!=null&&Me.length||U)&&u.add(le);let it=!1;if(Me)for(const Et of Me)it=Zn(Et,it);U&&(it=Zn(U,it)),it&&zi(X,se,!0),Zt(le,!(Me!=null&&Me.length)&&!U)}function Zt(le,Me){w.assert(!!le.refCount);const{affectingLocations:_t}=le;if(_t!=null&&_t.length){Me&&f.add(le);for(const U of _t)Yt(U,!0)}}function Yt(le,Me){const _t=Q.get(le);if(_t){Me?_t.resolutions++:_t.files++;return}let U=le,it=!1,Et;e.realpath&&(U=e.realpath(le),le!==U&&(it=!0,Et=Q.get(U)));const Ge=Me?1:0,mt=Me?0:1;if(!it||!Et){const Ut={watcher:Aue(e.toPath(U))?e.watchAffectingFileLocation(U,(vn,pn)=>{G==null||G.addOrDeleteFile(vn,e.toPath(U),pn),yi(U,z.getPackageJsonInfoCache().getInternalMap()),e.scheduleInvalidateResolutionsOfFailedLookupLocations()}):l3,resolutions:it?0:Ge,files:it?0:mt,symlinks:void 0};Q.set(U,Ut),it&&(Et=Ut)}if(it){w.assert(!!Et);const Ut={watcher:{close:()=>{var vn;const pn=Q.get(U);(vn=pn==null?void 0:pn.symlinks)!=null&&vn.delete(le)&&!pn.symlinks.size&&!pn.resolutions&&!pn.files&&(Q.delete(U),pn.watcher.close())}},resolutions:Ge,files:mt,symlinks:void 0};Q.set(le,Ut),(Et.symlinks??(Et.symlinks=new Set)).add(le)}}function yi(le,Me){var _t;const U=Q.get(le);U!=null&&U.resolutions&&(T??(T=new Set)).add(le),U!=null&&U.files&&(x??(x=new Set)).add(le),(_t=U==null?void 0:U.symlinks)==null||_t.forEach(it=>yi(it,Me)),Me==null||Me.delete(e.toPath(le))}function us(le,Me){const _t=e.getCurrentProgram();!_t||!_t.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(Me)?le.forEach(hn):le.forEach(U=>Zt(U,!0))}function zi(le,Me,_t){const U=ve.get(Me);U?(w.assert(!!_t==!!U.nonRecursive),U.refCount++):ve.set(Me,{watcher:Er(le,Me,_t),refCount:1,nonRecursive:_t})}function Os(le,Me,_t){const U=e.toPath(le),it=eX(le,U,X,se,pe,V);if(it){const{dirPath:Et}=it;Et===se?Me=!0:Fi(Et,_t)}return Me}function On(le,Me,_t,U){if(w.checkDefined(le.files).delete(Me),le.refCount--,le.refCount)return;const it=_t(le);if(it&&it.resolvedFileName){const Ut=e.toPath(it.resolvedFileName),vn=g.get(Ut);vn!=null&&vn.delete(le)&&!vn.size&&g.delete(Ut)}const{failedLookupLocations:Et,affectingLocations:Ge,alternateResult:mt}=le;if(u.delete(le)){let Ut=!1;if(Et)for(const vn of Et)Ut=Os(vn,Ut,U);mt&&(Ut=Os(mt,Ut,U)),Ut&&Fi(se,U)}else Ge!=null&&Ge.length&&f.delete(le);if(Ge)for(const Ut of Ge){const vn=Q.get(Ut);vn.resolutions--,U&&st(vn,Ut)}}function Fi(le,Me){const _t=ve.get(le);_t.refCount--,Me&&ze(_t,le)}function Er(le,Me,_t){return e.watchDirectoryOfFailedLookupLocation(le,U=>{const it=e.toPath(U);G&&G.addOrDeleteFileOrDirectory(U,it),ts(it,Me===it)},_t?0:1)}function cn(le,Me,_t,U){const it=le.get(Me);it&&(it.forEach(Et=>On(Et,Me,_t,U)),le.delete(Me))}function et(le){if(!zc(le,".json"))return;const Me=e.getCurrentProgram();if(!Me)return;const _t=Me.getResolvedProjectReferenceByPath(le);_t&&_t.commandLine.fileNames.forEach(U=>Jt(e.toPath(U)))}function Jt(le,Me){cn(Z,le,fe,Me),cn(ce,le,ie,Me)}function wn(le,Me){if(!le)return!1;let _t=!1;return le.forEach(U=>{if(!(U.isInvalidated||!Me(U))){U.isInvalidated=_t=!0;for(const it of w.checkDefined(U.files))(s??(s=new Set)).add(it),y=y||Jc(it,a3)}}),_t}function ui(le){Jt(le);const Me=y;wn(g.get(le),cy)&&y&&!Me&&e.onChangedAutomaticTypeDirectiveNames()}function vi(le){w.assert(o===le||o===void 0),o=le}function ts(le,Me){if(Me)(D||(D=new Set)).add(le);else{const _t=ER(le);if(!_t||(le=_t,e.fileIsOpen(le)))return!1;const U=oi(le);if(sn(le)||aF(le)||sn(U)||aF(U))(C||(C=new Set)).add(le),(N||(N=new Set)).add(le);else{if(aue(e.getCurrentProgram(),le)||zc(le,".map"))return!1;(C||(C=new Set)).add(le);const it=k7(le,!0);it&&(N||(N=new Set)).add(it)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function Ds(){const le=z.getPackageJsonInfoCache().getInternalMap();le&&(C||N||D)&&le.forEach((Me,_t)=>Tn(_t)?le.delete(_t):void 0)}function Sa(){var le;if(M)return x=void 0,Ds(),(C||N||D||T)&&wn(ne,Wa),C=void 0,N=void 0,D=void 0,T=void 0,!0;let Me=!1;return x&&((le=e.getCurrentProgram())==null||le.getSourceFiles().forEach(_t=>{Pe(_t.packageJsonLocations,U=>x.has(U))&&((s??(s=new Set)).add(_t.path),Me=!0)}),x=void 0),!C&&!N&&!D&&!T||(Me=wn(u,Wa)||Me,Ds(),C=void 0,N=void 0,D=void 0,Me=wn(f,Ln)||Me,T=void 0),Me}function Wa(le){var Me;return Ln(le)?!0:!C&&!N&&!D?!1:((Me=le.failedLookupLocations)==null?void 0:Me.some(_t=>Tn(e.toPath(_t))))||!!le.alternateResult&&Tn(e.toPath(le.alternateResult))}function Tn(le){return(C==null?void 0:C.has(le))||Js((N==null?void 0:N.keys())||[],Me=>fs(le,Me)?!0:void 0)||Js((D==null?void 0:D.keys())||[],Me=>le.length>Me.length&&fs(le,Me)&&(AV(Me)||le[Me.length]===yc)?!0:void 0)}function Ln(le){var Me;return!!T&&((Me=le.affectingLocations)==null?void 0:Me.some(_t=>T.has(_t)))}function Ve(){wf(we,Cm)}function pt(le){return At(le)?e.watchTypeRootsDirectory(le,Me=>{const _t=e.toPath(Me);G&&G.addOrDeleteFileOrDirectory(Me,_t),y=!0,e.onChangedAutomaticTypeDirectiveNames();const U=Iue(le,e.toPath(le),se,pe,V,it=>ve.has(it));U&&ts(_t,U===_t)},1):l3}function ft(){const le=e.getCompilationSettings();if(le.types){Ve();return}const Me=Bw(le,{getCurrentDirectory:V});Me?QP(we,new Set(Me),{createNewValue:pt,onDeleteValue:Cm}):Ve()}function At(le){return e.getCompilationSettings().typeRoots?!0:Due(e.toPath(le))}}function HHe(e){var t,r;return!!((t=e.resolvedModule)!=null&&t.originalPath||(r=e.resolvedTypeReferenceDirective)!=null&&r.originalPath)}var GHe=K({"src/compiler/resolutionCache.ts"(){ua()}});function G7(e,t){const r=e===Bu&&zue?zue:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:e_(e.useCaseSensitiveFileNames)};if(!t)return s=>e.write(D$(s,r));const i=new Array(1);return s=>{i[0]=s,e.write(uue(i,r)+r.getNewLine()),i[0]=void 0}}function O6e(e,t,r){return e.clearScreen&&!r.preserveWatchOutput&&!r.extendedDiagnostics&&!r.diagnostics&&Ai(FR,t.code)?(e.clearScreen(),!0):!1}function $He(e,t){return Ai(FR,e.code)?t+t:t}function $7(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace(" "," "):new Date().toLocaleTimeString()}function Lue(e,t){return t?(r,i,s)=>{O6e(e,r,s);let o=`[${Xb($7(e),"\x1B[90m")}] `;o+=`${fg(r.messageText,e.newLine)}${i+i}`,e.write(o)}:(r,i,s)=>{let o="";O6e(e,r,s)||(o+=i),o+=`${$7(e)} - `,o+=`${fg(r.messageText,e.newLine)}${$He(r,i)}`,e.write(o)}}function F6e(e,t,r,i,s,o){const c=s;c.onUnRecoverableConfigFileDiagnostic=f=>R6e(s,o,f);const u=_7(e,t,c,r,i);return c.onUnRecoverableConfigFileDiagnostic=void 0,u}function DR(e){return Bc(e,t=>t.category===1)}function AR(e){return vr(e,r=>r.category===1).map(r=>{if(r.file!==void 0)return`${r.file.fileName}`}).map(r=>{if(r===void 0)return;const i=Cn(e,s=>s.file!==void 0&&s.file.fileName===r);if(i!==void 0){const{line:s}=Ao(i.file,i.start);return{fileName:r,line:s+1}}})}function nX(e){return e===1?p.Found_1_error_Watching_for_file_changes:p.Found_0_errors_Watching_for_file_changes}function L6e(e,t){const r=Xb(":"+e.line,"\x1B[90m");return sP(e.fileName)&&sP(t)?Qd(t,e.fileName,!1)+r:e.fileName+r}function Mue(e,t,r,i){if(e===0)return"";const s=t.filter(d=>d!==void 0),o=s.map(d=>`${d.fileName}:${d.line}`).filter((d,y,x)=>x.indexOf(d)===y),c=s[0]&&L6e(s[0],i.getCurrentDirectory());let u;e===1?u=t[0]!==void 0?[p.Found_1_error_in_0,c]:[p.Found_1_error]:u=o.length===0?[p.Found_0_errors,e]:o.length===1?[p.Found_0_errors_in_the_same_file_starting_at_Colon_1,e,c]:[p.Found_0_errors_in_1_files,e,o.length];const f=ll(...u),g=o.length>1?XHe(s,i):"";return`${r}${fg(f.messageText,r)}${r}${r}${g}`}function XHe(e,t){const r=e.filter((y,x,T)=>x===T.findIndex(C=>(C==null?void 0:C.fileName)===(y==null?void 0:y.fileName)));if(r.length===0)return"";const i=y=>Math.log(y)*Math.LOG10E+1,s=r.map(y=>[y,Bc(e,x=>x.fileName===y.fileName)]),o=s.reduce((y,x)=>Math.max(y,x[1]||0),0),c=p.Errors_Files.message,u=c.split(" ")[0].length,f=Math.max(u,i(o)),g=Math.max(i(o)-u,0);let d="";return d+=" ".repeat(g)+c+` +`,s.forEach(y=>{const[x,T]=y,C=Math.log(T)*Math.LOG10E+1|0,N=C{t(i.fileName)})}function iX(e,t){var r,i;const s=e.getFileIncludeReasons(),o=c=>aP(c,e.getCurrentDirectory(),e.getCanonicalFileName);for(const c of e.getSourceFiles())t(`${c3(c,o)}`),(r=s.get(c.path))==null||r.forEach(u=>t(` ${cX(e,u,o).messageText}`)),(i=sX(c,o))==null||i.forEach(u=>t(` ${u.messageText}`))}function sX(e,t){var r;let i;if(e.path!==e.resolvedPath&&(i??(i=[])).push(Hs(void 0,p.File_is_output_of_project_reference_source_0,c3(e.originalFileName,t))),e.redirectInfo&&(i??(i=[])).push(Hs(void 0,p.File_redirects_to_file_0,c3(e.redirectInfo.redirectTarget,t))),mp(e))switch(e.impliedNodeFormat){case 99:e.packageJsonScope&&(i??(i=[])).push(Hs(void 0,p.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,c3(so(e.packageJsonLocations),t)));break;case 1:e.packageJsonScope?(i??(i=[])).push(Hs(void 0,e.packageJsonScope.contents.packageJsonContent.type?p.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:p.File_is_CommonJS_module_because_0_does_not_have_field_type,c3(so(e.packageJsonLocations),t))):(r=e.packageJsonLocations)!=null&&r.length&&(i??(i=[])).push(Hs(void 0,p.File_is_CommonJS_module_because_package_json_was_not_found));break}return i}function aX(e,t){var r;const i=e.getCompilerOptions().configFile;if(!((r=i==null?void 0:i.configFileSpecs)!=null&&r.validatedFilesSpec))return;const s=e.getCanonicalFileName(t),o=oi(Ss(i.fileName,e.getCurrentDirectory()));return Cn(i.configFileSpecs.validatedFilesSpec,c=>e.getCanonicalFileName(Ss(c,o))===s)}function oX(e,t){var r,i;const s=e.getCompilerOptions().configFile;if(!((r=s==null?void 0:s.configFileSpecs)!=null&&r.validatedIncludeSpecs))return;if(s.configFileSpecs.isDefaultIncludeSpec)return!0;const o=zc(t,".json"),c=oi(Ss(s.fileName,e.getCurrentDirectory())),u=e.useCaseSensitiveFileNames();return Cn((i=s==null?void 0:s.configFileSpecs)==null?void 0:i.validatedIncludeSpecs,f=>{if(o&&!Jc(f,".json"))return!1;const g=Mae(f,c,"files");return!!g&&k1(`(${g})$`,u).test(t)})}function cX(e,t,r){var i,s;const o=e.getCompilerOptions();if(m2(t)){const c=tD(e,t),u=i3(c)?c.file.text.substring(c.pos,c.end):`"${c.text}"`;let f;switch(w.assert(i3(c)||t.kind===3,"Only synthetic references are imports"),t.kind){case 3:i3(c)?f=c.packageId?p.Imported_via_0_from_file_1_with_packageId_2:p.Imported_via_0_from_file_1:c.text===E1?f=c.packageId?p.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:p.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:f=c.packageId?p.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:p.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:w.assert(!c.packageId),f=p.Referenced_via_0_from_file_1;break;case 5:f=c.packageId?p.Type_library_referenced_via_0_from_file_1_with_packageId_2:p.Type_library_referenced_via_0_from_file_1;break;case 7:w.assert(!c.packageId),f=p.Library_referenced_via_0_from_file_1;break;default:w.assertNever(t)}return Hs(void 0,f,u,c3(c.file,r),c.packageId&&y1(c.packageId))}switch(t.kind){case 0:if(!((i=o.configFile)!=null&&i.configFileSpecs))return Hs(void 0,p.Root_file_specified_for_compilation);const c=Ss(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(aX(e,c))return Hs(void 0,p.Part_of_files_list_in_tsconfig_json);const f=oX(e,c);return Ls(f)?Hs(void 0,p.Matched_by_include_pattern_0_in_1,f,c3(o.configFile,r)):Hs(void 0,f?p.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:p.Root_file_specified_for_compilation);case 1:case 2:const g=t.kind===2,d=w.checkDefined((s=e.getResolvedProjectReferences())==null?void 0:s[t.index]);return Hs(void 0,Vo(o)?g?p.Output_from_referenced_project_0_included_because_1_specified:p.Source_from_referenced_project_0_included_because_1_specified:g?p.Output_from_referenced_project_0_included_because_module_is_specified_as_none:p.Source_from_referenced_project_0_included_because_module_is_specified_as_none,c3(d.sourceFile.fileName,r),o.outFile?"--outFile":"--out");case 8:{const y=o.types?t.packageId?[p.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,t.typeReference,y1(t.packageId)]:[p.Entry_point_of_type_library_0_specified_in_compilerOptions,t.typeReference]:t.packageId?[p.Entry_point_for_implicit_type_library_0_with_packageId_1,t.typeReference,y1(t.packageId)]:[p.Entry_point_for_implicit_type_library_0,t.typeReference];return Hs(void 0,...y)}case 6:{if(t.index!==void 0)return Hs(void 0,p.Library_0_specified_in_compilerOptions,o.lib[t.index]);const y=cu(v7.type,(T,C)=>T===go(o)?C:void 0),x=y?[p.Default_library_for_target_0,y]:[p.Default_library];return Hs(void 0,...x)}default:w.assertNever(t)}}function c3(e,t){const r=Ls(e)?e:e.fileName;return t?t(r):r}function NR(e,t,r,i,s,o,c,u){const f=!!e.getCompilerOptions().listFilesOnly,g=e.getConfigFileParsingDiagnostics().slice(),d=g.length;Mr(g,e.getSyntacticDiagnostics(void 0,o)),g.length===d&&(Mr(g,e.getOptionsDiagnostics(o)),f||(Mr(g,e.getGlobalDiagnostics(o)),g.length===d&&Mr(g,e.getSemanticDiagnostics(void 0,o))));const y=f?{emitSkipped:!0,diagnostics:Ke}:e.emit(void 0,s,o,c,u),{emittedFiles:x,diagnostics:T}=y;Mr(g,T);const C=R6(g);if(C.forEach(t),r){const N=e.getCurrentDirectory();dt(x,D=>{const M=Ss(D,N);r(`TSFILE: ${M}`)}),rX(e,r)}return i&&i(DR(C),AR(C)),{emitResult:y,diagnostics:C}}function jue(e,t,r,i,s,o,c,u){const{emitResult:f,diagnostics:g}=NR(e,t,r,i,s,o,c,u);return f.emitSkipped&&g.length>0?1:g.length>0?2:0}function lX(e=Bu,t){return{onWatchStatusChange:t||Lue(e),watchFile:fa(e,e.watchFile)||u3,watchDirectory:fa(e,e.watchDirectory)||u3,setTimeout:fa(e,e.setTimeout)||ao,clearTimeout:fa(e,e.clearTimeout)||ao}}function uX(e,t){const r=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,i=r!==0?o=>e.trace(o):ao,s=T$(e,r,i);return s.writeLog=i,s}function _X(e,t,r=e){const i=e.useCaseSensitiveFileNames(),s={getSourceFile:E$((o,c)=>c?e.readFile(o,c):s.readFile(o),t,void 0),getDefaultLibLocation:fa(e,e.getDefaultLibLocation),getDefaultLibFileName:o=>e.getDefaultLibFileName(o),writeFile:P$((o,c,u)=>e.writeFile(o,c,u),o=>e.createDirectory(o),o=>e.directoryExists(o)),getCurrentDirectory:X_(()=>e.getCurrentDirectory()),useCaseSensitiveFileNames:()=>i,getCanonicalFileName:e_(i),getNewLine:()=>Sy(t()),fileExists:o=>e.fileExists(o),readFile:o=>e.readFile(o),trace:fa(e,e.trace),directoryExists:fa(r,r.directoryExists),getDirectories:fa(r,r.getDirectories),realpath:fa(e,e.realpath),getEnvironmentVariable:fa(e,e.getEnvironmentVariable)||(()=>""),createHash:fa(e,e.createHash),readDirectory:fa(e,e.readDirectory),storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,jsDocParsingMode:e.jsDocParsingMode};return s}function IR(e,t){if(t.match(YG)){let r=t.length,i=r;for(let s=r-1;s>=0;s--){const o=t.charCodeAt(s);switch(o){case 10:s&&t.charCodeAt(s-1)===13&&s--;case 13:break;default:if(o<127||!d_(o)){i=s;continue}break}const c=t.substring(i,r);if(c.match(XM)){t=t.substring(0,i);break}else if(!c.match(QM))break;r=i}}return(e.createHash||iP)(t)}function OR(e){const t=e.getSourceFile;e.getSourceFile=(...r)=>{const i=t.call(e,...r);return i&&(i.version=IR(e,i.text)),i}}function fX(e,t){const r=X_(()=>oi(ka(e.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:X_(()=>e.getCurrentDirectory()),getDefaultLibLocation:r,getDefaultLibFileName:i=>Zr(r(),iA(i)),fileExists:i=>e.fileExists(i),readFile:(i,s)=>e.readFile(i,s),directoryExists:i=>e.directoryExists(i),getDirectories:i=>e.getDirectories(i),readDirectory:(i,s,o,c,u)=>e.readDirectory(i,s,o,c,u),realpath:fa(e,e.realpath),getEnvironmentVariable:fa(e,e.getEnvironmentVariable),trace:i=>e.write(i+e.newLine),createDirectory:i=>e.createDirectory(i),writeFile:(i,s,o)=>e.writeFile(i,s,o),createHash:fa(e,e.createHash),createProgram:t||K$,storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,now:fa(e,e.now)}}function M6e(e=Bu,t,r,i){const s=c=>e.write(c+e.newLine),o=fX(e,t);return _U(o,lX(e,i)),o.afterProgramCreate=c=>{const u=c.getCompilerOptions(),f=Sy(u);NR(c,r,s,g=>o.onWatchStatusChange(ll(nX(g),g),f,u,g))},o}function R6e(e,t,r){t(r),e.exit(1)}function Bue({configFileName:e,optionsToExtend:t,watchOptionsToExtend:r,extraFileExtensions:i,system:s,createProgram:o,reportDiagnostic:c,reportWatchStatus:u}){const f=c||G7(s),g=M6e(s,o,f,u);return g.onUnRecoverableConfigFileDiagnostic=d=>R6e(s,f,d),g.configFileName=e,g.optionsToExtend=t,g.watchOptionsToExtend=r,g.extraFileExtensions=i,g}function Jue({rootFiles:e,options:t,watchOptions:r,projectReferences:i,system:s,createProgram:o,reportDiagnostic:c,reportWatchStatus:u}){const f=M6e(s,o,c||G7(s),u);return f.rootFiles=e,f.options=t,f.watchOptions=r,f.projectReferences=i,f}function j6e(e){const t=e.system||Bu,r=e.host||(e.host=pX(e.options,t)),i=Uue(e),s=jue(i,e.reportDiagnostic||G7(t),o=>r.trace&&r.trace(o),e.reportErrorSummary||e.options.pretty?(o,c)=>t.write(Mue(o,c,t.newLine,r)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(i),s}var zue,FR,l3,u3,tu,QHe=K({"src/compiler/watch.ts"(){ua(),zue=Bu?{getCurrentDirectory:()=>Bu.getCurrentDirectory(),getNewLine:()=>Bu.newLine,getCanonicalFileName:e_(Bu.useCaseSensitiveFileNames)}:void 0,FR=[p.Starting_compilation_in_watch_mode.code,p.File_change_detected_Starting_incremental_compilation.code],l3={close:ao},u3=()=>l3,tu={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",AffectingFileLocation:"File location affecting resolution",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file",ClosedScriptInfo:"Closed Script info",ConfigFileForInferredRoot:"Config file for the inferred project root",NodeModules:"node_modules for closed script infos and package.jsons affecting module specifier cache",MissingSourceMapFile:"Missing source map file",NoopConfigFileForInferredRoot:"Noop Config file for the inferred project root",MissingGeneratedFile:"Missing generated file",NodeModulesForModuleSpecifierCache:"node_modules for module specifier cache invalidation",TypingInstallerLocationFile:"File location for typing installer",TypingInstallerLocationDirectory:"Directory location for typing installer"}}});function LR(e,t){const r=wy(e);if(!r)return;let i;if(t.getBuildInfo)i=t.getBuildInfo(r,e.configFilePath);else{const s=t.readFile(r);if(!s)return;i=uR(r,s)}if(!(!i||i.version!==wt||!i.program))return Pue(i,r,t)}function pX(e,t=Bu){const r=w$(e,void 0,t);return r.createHash=fa(t,t.createHash),r.storeFilesChangingSignatureDuringEmit=t.storeFilesChangingSignatureDuringEmit,OR(r),U7(r,i=>hc(i,r.getCurrentDirectory(),r.getCanonicalFileName)),r}function Uue({rootNames:e,options:t,configFileParsingDiagnostics:r,projectReferences:i,host:s,createProgram:o}){s=s||pX(t),o=o||K$;const c=LR(t,s);return o(e,t,s,c,r,i)}function B6e(e,t,r,i,s,o,c,u){return Ps(e)?Jue({rootFiles:e,options:t,watchOptions:u,projectReferences:c,system:r,createProgram:i,reportDiagnostic:s,reportWatchStatus:o}):Bue({configFileName:e,optionsToExtend:t,watchOptionsToExtend:c,extraFileExtensions:u,system:r,createProgram:i,reportDiagnostic:s,reportWatchStatus:o})}function J6e(e){let t,r,i,s,o,c,u,f,g=e.extendedConfigCache,d=!1;const y=new Map;let x,T=!1;const C=e.useCaseSensitiveFileNames(),N=e.getCurrentDirectory(),{configFileName:D,optionsToExtend:M={},watchOptionsToExtend:V,extraFileExtensions:G,createProgram:Z}=e;let{rootFiles:z,options:ce,watchOptions:J,projectReferences:ne}=e,ge,ve,Q=!1,X=!1;const se=D===void 0?void 0:fR(e,N,C),pe=se||e,we=SR(e,pe);let fe=In();D&&e.configFileParsingResult&&(Wa(e.configFileParsingResult),fe=In()),On(p.Starting_compilation_in_watch_mode),D&&!e.configFileParsingResult&&(fe=Sy(M),w.assert(!z),Sa(),fe=In()),w.assert(ce),w.assert(z);const{watchFile:ie,watchDirectory:ye,writeLog:Ne}=uX(e,ce),Ue=e_(C);Ne(`Current directory: ${N} CaseSensitiveFileNames: ${C}`);let Se;D&&(Se=ie(D,wn,2e3,J,tu.ConfigFile));const Ee=_X(e,()=>ce,pe);OR(Ee);const Ae=Ee.getSourceFile;Ee.getSourceFile=(Ge,...mt)=>yi(Ge,Zn(Ge),...mt),Ee.getSourceFileByPath=yi,Ee.getNewLine=()=>fe,Ee.fileExists=Yt,Ee.onReleaseOldSourceFile=Os,Ee.onReleaseParsedCommandLine=Ve,Ee.toPath=Zn,Ee.getCompilationSettings=()=>ce,Ee.useSourceOfProjectReferenceRedirect=fa(e,e.useSourceOfProjectReferenceRedirect),Ee.watchDirectoryOfFailedLookupLocation=(Ge,mt,Ut)=>ye(Ge,mt,Ut,J,tu.FailedLookupLocations),Ee.watchAffectingFileLocation=(Ge,mt)=>ie(Ge,mt,2e3,J,tu.AffectingFileLocation),Ee.watchTypeRootsDirectory=(Ge,mt,Ut)=>ye(Ge,mt,Ut,J,tu.TypeRoots),Ee.getCachedDirectoryStructureHost=()=>se,Ee.scheduleInvalidateResolutionsOfFailedLookupLocations=cn,Ee.onInvalidatedResolution=Jt,Ee.onChangedAutomaticTypeDirectiveNames=Jt,Ee.fileIsOpen=xm,Ee.getCurrentProgram=$e,Ee.writeLog=Ne,Ee.getParsedCommandLine=Tn;const Le=tX(Ee,D?oi(Ss(D,N)):N,!1);Ee.resolveModuleNameLiterals=fa(e,e.resolveModuleNameLiterals),Ee.resolveModuleNames=fa(e,e.resolveModuleNames),!Ee.resolveModuleNameLiterals&&!Ee.resolveModuleNames&&(Ee.resolveModuleNameLiterals=Le.resolveModuleNameLiterals.bind(Le)),Ee.resolveTypeReferenceDirectiveReferences=fa(e,e.resolveTypeReferenceDirectiveReferences),Ee.resolveTypeReferenceDirectives=fa(e,e.resolveTypeReferenceDirectives),!Ee.resolveTypeReferenceDirectiveReferences&&!Ee.resolveTypeReferenceDirectives&&(Ee.resolveTypeReferenceDirectiveReferences=Le.resolveTypeReferenceDirectiveReferences.bind(Le)),Ee.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):Le.resolveLibrary.bind(Le),Ee.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?fa(e,e.getModuleResolutionCache):()=>Le.getModuleResolutionCache();const xe=!!e.resolveModuleNameLiterals||!!e.resolveTypeReferenceDirectiveReferences||!!e.resolveModuleNames||!!e.resolveTypeReferenceDirectives?fa(e,e.hasInvalidatedResolutions)||cy:xm,ze=e.resolveLibrary?fa(e,e.hasInvalidatedLibResolutions)||cy:xm;return t=LR(ce,Ee),kt(),_t(),D&&it(Zn(D),ce,J,tu.ExtendedConfigFile),D?{getCurrentProgram:yt,getProgram:vi,close:st,getResolutionCache:zt}:{getCurrentProgram:yt,getProgram:vi,updateRootFileNames:sn,close:st,getResolutionCache:zt};function st(){Er(),Le.clear(),wf(y,Ge=>{Ge&&Ge.fileWatcher&&(Ge.fileWatcher.close(),Ge.fileWatcher=void 0)}),Se&&(Se.close(),Se=void 0),g==null||g.clear(),g=void 0,f&&(wf(f,ad),f=void 0),s&&(wf(s,ad),s=void 0),i&&(wf(i,Cm),i=void 0),u&&(wf(u,Ge=>{var mt;(mt=Ge.watcher)==null||mt.close(),Ge.watcher=void 0,Ge.watchedDirectories&&wf(Ge.watchedDirectories,ad),Ge.watchedDirectories=void 0}),u=void 0)}function zt(){return Le}function yt(){return t}function $e(){return t&&t.getProgramOrUndefined()}function kt(){Ne("Synchronizing program"),w.assert(ce),w.assert(z),Er();const Ge=yt();T&&(fe=In(),Ge&&IF(Ge.getCompilerOptions(),ce)&&Le.onChangesAffectModuleResolution());const{hasInvalidatedResolutions:mt,hasInvalidatedLibResolutions:Ut}=Le.createHasInvalidatedResolutions(xe,ze),{originalReadFile:vn,originalFileExists:pn,originalDirectoryExists:mn,originalCreateDirectory:q,originalWriteFile:Fe,readFileWithCache:Ot}=U7(Ee,Zn);return j$($e(),z,ce,I=>zi(I,Ot),I=>Ee.fileExists(I),mt,Ut,Fi,Tn,ne)?X&&(d&&On(p.File_change_detected_Starting_incremental_compilation),t=Z(void 0,void 0,Ee,t,ve,ne),X=!1):(d&&On(p.File_change_detected_Starting_incremental_compilation),nn(mt,Ut)),d=!1,e.afterProgramCreate&&Ge!==t&&e.afterProgramCreate(t),Ee.readFile=vn,Ee.fileExists=pn,Ee.directoryExists=mn,Ee.createDirectory=q,Ee.writeFile=Fe,t}function nn(Ge,mt){Ne("CreatingProgramWith::"),Ne(` roots: ${JSON.stringify(z)}`),Ne(` options: ${JSON.stringify(ce)}`),ne&&Ne(` projectReferences: ${JSON.stringify(ne)}`);const Ut=T||!$e();T=!1,X=!1,Le.startCachingPerDirectoryResolution(),Ee.hasInvalidatedResolutions=Ge,Ee.hasInvalidatedLibResolutions=mt,Ee.hasChangedAutomaticTypeDirectiveNames=Fi;const vn=$e();if(t=Z(z,ce,Ee,t,ve,ne),Le.finishCachingPerDirectoryResolution(t.getProgram(),vn),x$(t.getProgram(),i||(i=new Map),le),Ut&&Le.updateTypeRootsWatch(),x){for(const pn of x)i.has(pn)||y.delete(pn);x=void 0}}function sn(Ge){w.assert(!D,"Cannot update root file names with config file watch mode"),z=Ge,Jt()}function In(){return Sy(ce||M)}function Zn(Ge){return hc(Ge,N,Ue)}function hn(Ge){return typeof Ge=="boolean"}function Zt(Ge){return typeof Ge.version=="boolean"}function Yt(Ge){const mt=Zn(Ge);return hn(y.get(mt))?!1:pe.fileExists(Ge)}function yi(Ge,mt,Ut,vn,pn){const mn=y.get(mt);if(hn(mn))return;const q=typeof Ut=="object"?Ut.impliedNodeFormat:void 0;if(mn===void 0||pn||Zt(mn)||mn.sourceFile.impliedNodeFormat!==q){const Fe=Ae(Ge,Ut,vn);if(mn)Fe?(mn.sourceFile=Fe,mn.version=Fe.version,mn.fileWatcher||(mn.fileWatcher=pt(mt,Ge,ft,250,J,tu.SourceFile))):(mn.fileWatcher&&mn.fileWatcher.close(),y.set(mt,!1));else if(Fe){const Ot=pt(mt,Ge,ft,250,J,tu.SourceFile);y.set(mt,{sourceFile:Fe,version:Fe.version,fileWatcher:Ot})}else y.set(mt,!1);return Fe}return mn.sourceFile}function us(Ge){const mt=y.get(Ge);mt!==void 0&&(hn(mt)?y.set(Ge,{version:!1}):mt.version=!1)}function zi(Ge,mt){const Ut=y.get(Ge);if(!Ut)return;if(Ut.version)return Ut.version;const vn=mt(Ge);return vn!==void 0?IR(Ee,vn):void 0}function Os(Ge,mt,Ut){const vn=y.get(Ge.resolvedPath);vn!==void 0&&(hn(vn)?(x||(x=[])).push(Ge.path):vn.sourceFile===Ge&&(vn.fileWatcher&&vn.fileWatcher.close(),y.delete(Ge.resolvedPath),Ut||Le.removeResolutionsOfFile(Ge.path)))}function On(Ge){e.onWatchStatusChange&&e.onWatchStatusChange(ll(Ge),fe,ce||M)}function Fi(){return Le.hasChangedAutomaticTypeDirectiveNames()}function Er(){return c?(e.clearTimeout(c),c=void 0,!0):!1}function cn(){if(!e.setTimeout||!e.clearTimeout)return Le.invalidateResolutionsOfFailedLookupLocations();const Ge=Er();Ne(`Scheduling invalidateFailedLookup${Ge?", Cancelled earlier one":""}`),c=e.setTimeout(et,250,"timerToInvalidateFailedLookupResolutions")}function et(){c=void 0,Le.invalidateResolutionsOfFailedLookupLocations()&&Jt()}function Jt(){!e.setTimeout||!e.clearTimeout||(o&&e.clearTimeout(o),Ne("Scheduling update"),o=e.setTimeout(ui,250,"timerToUpdateProgram"))}function wn(){w.assert(!!D),r=2,Jt()}function ui(){o=void 0,d=!0,vi()}function vi(){var Ge,mt,Ut,vn;switch(r){case 1:(Ge=A_)==null||Ge.logStartUpdateProgram("PartialConfigReload"),ts();break;case 2:(mt=A_)==null||mt.logStartUpdateProgram("FullConfigReload"),Ds();break;default:(Ut=A_)==null||Ut.logStartUpdateProgram("SynchronizeProgram"),kt();break}return(vn=A_)==null||vn.logStopUpdateProgram("Done"),yt()}function ts(){Ne("Reloading new file names and options"),w.assert(ce),w.assert(D),r=0,z=Mw(ce.configFile.configFileSpecs,Ss(oi(D),N),ce,we,G),SM(z,Ss(D,N),ce.configFile.configFileSpecs,ve,Q)&&(X=!0),kt()}function Ds(){w.assert(D),Ne(`Reloading config file: ${D}`),r=0,se&&se.clearCache(),Sa(),T=!0,kt(),_t(),it(Zn(D),ce,J,tu.ExtendedConfigFile)}function Sa(){w.assert(D),Wa(_7(D,M,we,g||(g=new Map),V,G))}function Wa(Ge){z=Ge.fileNames,ce=Ge.options,J=Ge.watchOptions,ne=Ge.projectReferences,ge=Ge.wildcardDirectories,ve=Mx(Ge).slice(),Q=Lw(Ge.raw),X=!0}function Tn(Ge){const mt=Zn(Ge);let Ut=u==null?void 0:u.get(mt);if(Ut){if(!Ut.updateLevel)return Ut.parsedCommandLine;if(Ut.parsedCommandLine&&Ut.updateLevel===1&&!e.getParsedCommandLine){Ne("Reloading new file names and options"),w.assert(ce);const pn=Mw(Ut.parsedCommandLine.options.configFile.configFileSpecs,Ss(oi(Ge),N),ce,we);return Ut.parsedCommandLine={...Ut.parsedCommandLine,fileNames:pn},Ut.updateLevel=void 0,Ut.parsedCommandLine}}Ne(`Loading config file: ${Ge}`);const vn=e.getParsedCommandLine?e.getParsedCommandLine(Ge):Ln(Ge);return Ut?(Ut.parsedCommandLine=vn,Ut.updateLevel=void 0):(u||(u=new Map)).set(mt,Ut={parsedCommandLine:vn}),Et(Ge,mt,Ut),vn}function Ln(Ge){const mt=we.onUnRecoverableConfigFileDiagnostic;we.onUnRecoverableConfigFileDiagnostic=ao;const Ut=_7(Ge,void 0,we,g||(g=new Map),V);return we.onUnRecoverableConfigFileDiagnostic=mt,Ut}function Ve(Ge){var mt;const Ut=Zn(Ge),vn=u==null?void 0:u.get(Ut);vn&&(u.delete(Ut),vn.watchedDirectories&&wf(vn.watchedDirectories,ad),(mt=vn.watcher)==null||mt.close(),S$(Ut,f))}function pt(Ge,mt,Ut,vn,pn,mn){return ie(mt,(q,Fe)=>Ut(q,Fe,Ge),vn,pn,mn)}function ft(Ge,mt,Ut){At(Ge,Ut,mt),mt===2&&y.has(Ut)&&Le.invalidateResolutionOfFile(Ut),us(Ut),Jt()}function At(Ge,mt,Ut){se&&se.addOrDeleteFile(Ge,mt,Ut)}function le(Ge,mt){return u!=null&&u.has(Ge)?l3:pt(Ge,mt,Me,500,J,tu.MissingFile)}function Me(Ge,mt,Ut){At(Ge,Ut,mt),mt===0&&i.has(Ut)&&(i.get(Ut).close(),i.delete(Ut),us(Ut),Jt())}function _t(){B7(s||(s=new Map),ge,U)}function U(Ge,mt){return ye(Ge,Ut=>{w.assert(D),w.assert(ce);const vn=Zn(Ut);se&&se.addOrDeleteFileOrDirectory(Ut,vn),us(vn),!J7({watchedDirPath:Zn(Ge),fileOrDirectory:Ut,fileOrDirectoryPath:vn,configFileName:D,extraFileExtensions:G,options:ce,program:yt()||z,currentDirectory:N,useCaseSensitiveFileNames:C,writeLog:Ne,toPath:Zn})&&r!==2&&(r=1,Jt())},mt,J,tu.WildcardDirectory)}function it(Ge,mt,Ut,vn){pR(Ge,mt,f||(f=new Map),(pn,mn)=>ie(pn,(q,Fe)=>{var Ot;At(pn,mn,Fe),g&&dR(g,mn,Zn);const I=(Ot=f.get(mn))==null?void 0:Ot.projects;I!=null&&I.size&&I.forEach(me=>{if(D&&Zn(D)===me)r=2;else{const H=u==null?void 0:u.get(me);H&&(H.updateLevel=2),Le.removeResolutionsFromProjectReferenceRedirects(me)}Jt()})},2e3,Ut,vn),Zn)}function Et(Ge,mt,Ut){var vn,pn,mn,q;Ut.watcher||(Ut.watcher=ie(Ge,(Fe,Ot)=>{At(Ge,mt,Ot);const I=u==null?void 0:u.get(mt);I&&(I.updateLevel=2),Le.removeResolutionsFromProjectReferenceRedirects(mt),Jt()},2e3,((vn=Ut.parsedCommandLine)==null?void 0:vn.watchOptions)||J,tu.ConfigFileOfReferencedProject)),B7(Ut.watchedDirectories||(Ut.watchedDirectories=new Map),(pn=Ut.parsedCommandLine)==null?void 0:pn.wildcardDirectories,(Fe,Ot)=>{var I;return ye(Fe,me=>{const H=Zn(me);se&&se.addOrDeleteFileOrDirectory(me,H),us(H);const de=u==null?void 0:u.get(mt);de!=null&&de.parsedCommandLine&&(J7({watchedDirPath:Zn(Fe),fileOrDirectory:me,fileOrDirectoryPath:H,configFileName:Ge,options:de.parsedCommandLine.options,program:de.parsedCommandLine.fileNames,currentDirectory:N,useCaseSensitiveFileNames:C,writeLog:Ne,toPath:Zn})||de.updateLevel!==2&&(de.updateLevel=1,Jt()))},Ot,((I=Ut.parsedCommandLine)==null?void 0:I.watchOptions)||J,tu.WildcardDirectoryOfReferencedProject)}),it(mt,(mn=Ut.parsedCommandLine)==null?void 0:mn.options,((q=Ut.parsedCommandLine)==null?void 0:q.watchOptions)||J,tu.ExtendedConfigOfReferencedProject)}}var YHe=K({"src/compiler/watchPublic.ts"(){ua()}});function dX(e){return zc(e,".json")?e:Zr(e,"tsconfig.json")}var mX,ZHe=K({"src/compiler/tsbuild.ts"(){ua(),mX=(e=>(e[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",e[e.OutputMissing=4]="OutputMissing",e[e.ErrorReadingFile=5]="ErrorReadingFile",e[e.OutOfDateWithSelf=6]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=7]="OutOfDateWithUpstream",e[e.OutOfDateBuildInfo=8]="OutOfDateBuildInfo",e[e.OutOfDateOptions=9]="OutOfDateOptions",e[e.OutOfDateRoots=10]="OutOfDateRoots",e[e.UpstreamOutOfDate=11]="UpstreamOutOfDate",e[e.UpstreamBlocked=12]="UpstreamBlocked",e[e.ComputingUpstream=13]="ComputingUpstream",e[e.TsVersionOutputOfDate=14]="TsVersionOutputOfDate",e[e.UpToDateWithInputFileText=15]="UpToDateWithInputFileText",e[e.ContainerOnly=16]="ContainerOnly",e[e.ForceBuild=17]="ForceBuild",e))(mX||{})}});function KHe(e,t,r){const i=e.get(t);let s;return i||(s=r(),e.set(t,s)),i||s}function Vue(e,t){return KHe(e,t,()=>new Map)}function X7(e){return e.now?e.now():new Date}function _C(e){return!!e&&!!e.buildOrder}function MR(e){return _C(e)?e.buildOrder:e}function Wue(e,t){return r=>{let i=t?`[${Xb($7(e),"\x1B[90m")}] `:`${$7(e)} - `;i+=`${fg(r.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(i)}}function z6e(e,t,r,i){const s=fX(e,t);return s.getModifiedTime=e.getModifiedTime?o=>e.getModifiedTime(o):Rv,s.setModifiedTime=e.setModifiedTime?(o,c)=>e.setModifiedTime(o,c):ao,s.deleteFile=e.deleteFile?o=>e.deleteFile(o):ao,s.reportDiagnostic=r||G7(e),s.reportSolutionBuilderStatus=i||Wue(e),s.now=fa(e,e.now),s}function U6e(e=Bu,t,r,i,s){const o=z6e(e,t,r,i);return o.reportErrorSummary=s,o}function V6e(e=Bu,t,r,i,s){const o=z6e(e,t,r,i),c=lX(e,s);return _U(o,c),o}function eGe(e){const t={};return y7.forEach(r=>{jo(e,r.name)&&(t[r.name]=e[r.name])}),t}function W6e(e,t,r){return d4e(!1,e,t,r)}function q6e(e,t,r,i){return d4e(!0,e,t,r,i)}function tGe(e,t,r,i,s){const o=t,c=t,u=eGe(i),f=_X(o,()=>N.projectCompilerOptions);OR(f),f.getParsedCommandLine=D=>fC(N,D,pg(N,D)),f.resolveModuleNameLiterals=fa(o,o.resolveModuleNameLiterals),f.resolveTypeReferenceDirectiveReferences=fa(o,o.resolveTypeReferenceDirectiveReferences),f.resolveLibrary=fa(o,o.resolveLibrary),f.resolveModuleNames=fa(o,o.resolveModuleNames),f.resolveTypeReferenceDirectives=fa(o,o.resolveTypeReferenceDirectives),f.getModuleResolutionCache=fa(o,o.getModuleResolutionCache);let g,d;!f.resolveModuleNameLiterals&&!f.resolveModuleNames&&(g=Q4(f.getCurrentDirectory(),f.getCanonicalFileName),f.resolveModuleNameLiterals=(D,M,V,G,Z)=>W7(D,M,V,G,Z,o,g,F$),f.getModuleResolutionCache=()=>g),!f.resolveTypeReferenceDirectiveReferences&&!f.resolveTypeReferenceDirectives&&(d=FM(f.getCurrentDirectory(),f.getCanonicalFileName,void 0,g==null?void 0:g.getPackageJsonInfoCache(),g==null?void 0:g.optionsToRedirectsKey),f.resolveTypeReferenceDirectiveReferences=(D,M,V,G,Z)=>W7(D,M,V,G,Z,o,d,gR));let y;f.resolveLibrary||(y=Q4(f.getCurrentDirectory(),f.getCanonicalFileName,void 0,g==null?void 0:g.getPackageJsonInfoCache()),f.resolveLibrary=(D,M,V)=>LM(D,M,V,o,y)),f.getBuildInfo=(D,M)=>s4e(N,D,pg(N,M),void 0);const{watchFile:x,watchDirectory:T,writeLog:C}=uX(c,i),N={host:o,hostWithWatch:c,parseConfigFileHost:SR(o),write:fa(o,o.trace),options:i,baseCompilerOptions:u,rootNames:r,baseWatchOptions:s,resolvedConfigFilePaths:new Map,configFileCache:new Map,projectStatus:new Map,extendedConfigCache:new Map,buildInfoCache:new Map,outputTimeStamps:new Map,builderPrograms:new Map,diagnostics:new Map,projectPendingBuild:new Map,projectErrorsReported:new Map,compilerHost:f,moduleResolutionCache:g,typeReferenceDirectiveResolutionCache:d,libraryResolutionCache:y,buildOrder:void 0,readFileWithCache:D=>o.readFile(D),projectCompilerOptions:u,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:e,watch:e,allWatchedWildcardDirectories:new Map,allWatchedInputFiles:new Map,allWatchedConfigFiles:new Map,allWatchedExtendedConfigFiles:new Map,allWatchedPackageJsonFiles:new Map,filesWatched:new Map,lastCachedPackageJsonLookups:new Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:x,watchDirectory:T,writeLog:C};return N}function od(e,t){return hc(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function pg(e,t){const{resolvedConfigFilePaths:r}=e,i=r.get(t);if(i!==void 0)return i;const s=od(e,t);return r.set(t,s),s}function H6e(e){return!!e.options}function nGe(e,t){const r=e.configFileCache.get(t);return r&&H6e(r)?r:void 0}function fC(e,t,r){const{configFileCache:i}=e,s=i.get(r);if(s)return H6e(s)?s:void 0;gc("SolutionBuilder::beforeConfigFileParsing");let o;const{parseConfigFileHost:c,baseCompilerOptions:u,baseWatchOptions:f,extendedConfigCache:g,host:d}=e;let y;return d.getParsedCommandLine?(y=d.getParsedCommandLine(t),y||(o=ll(p.File_0_not_found,t))):(c.onUnRecoverableConfigFileDiagnostic=x=>o=x,y=_7(t,u,c,g,f),c.onUnRecoverableConfigFileDiagnostic=ao),i.set(r,y||o),gc("SolutionBuilder::afterConfigFileParsing"),Ap("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),y}function nD(e,t){return dX(l1(e.compilerHost.getCurrentDirectory(),t))}function G6e(e,t){const r=new Map,i=new Map,s=[];let o,c;for(const f of t)u(f);return c?{buildOrder:o||Ke,circularDiagnostics:c}:o||Ke;function u(f,g){const d=pg(e,f);if(i.has(d))return;if(r.has(d)){g||(c||(c=[])).push(ll(p.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,s.join(`\r +`)));return}r.set(d,!0),s.push(f);const y=fC(e,f,d);if(y&&y.projectReferences)for(const x of y.projectReferences){const T=nD(e,x.path);u(T,g||x.circular)}s.pop(),i.set(d,!0),(o||(o=[])).push(f)}}function RR(e){return e.buildOrder||rGe(e)}function rGe(e){const t=G6e(e,e.rootNames.map(s=>nD(e,s)));e.resolvedConfigFilePaths.clear();const r=new Set(MR(t).map(s=>pg(e,s))),i={onDeleteValue:ao};return jh(e.configFileCache,r,i),jh(e.projectStatus,r,i),jh(e.builderPrograms,r,i),jh(e.diagnostics,r,i),jh(e.projectPendingBuild,r,i),jh(e.projectErrorsReported,r,i),jh(e.buildInfoCache,r,i),jh(e.outputTimeStamps,r,i),jh(e.lastCachedPackageJsonLookups,r,i),e.watch&&(jh(e.allWatchedConfigFiles,r,{onDeleteValue:Cm}),e.allWatchedExtendedConfigFiles.forEach(s=>{s.projects.forEach(o=>{r.has(o)||s.projects.delete(o)}),s.close()}),jh(e.allWatchedWildcardDirectories,r,{onDeleteValue:s=>s.forEach(ad)}),jh(e.allWatchedInputFiles,r,{onDeleteValue:s=>s.forEach(Cm)}),jh(e.allWatchedPackageJsonFiles,r,{onDeleteValue:s=>s.forEach(Cm)})),e.buildOrder=t}function $6e(e,t,r){const i=t&&nD(e,t),s=RR(e);if(_C(s))return s;if(i){const c=pg(e,i);if(Gs(s,f=>pg(e,f)===c)===-1)return}const o=i?G6e(e,[i]):s;return w.assert(!_C(o)),w.assert(!r||i!==void 0),w.assert(!r||o[o.length-1]===i),r?o.slice(0,o.length-1):o}function X6e(e){e.cache&&que(e);const{compilerHost:t,host:r}=e,i=e.readFileWithCache,s=t.getSourceFile,{originalReadFile:o,originalFileExists:c,originalDirectoryExists:u,originalCreateDirectory:f,originalWriteFile:g,getSourceFileWithCache:d,readFileWithCache:y}=U7(r,x=>od(e,x),(...x)=>s.call(t,...x));e.readFileWithCache=y,t.getSourceFile=d,e.cache={originalReadFile:o,originalFileExists:c,originalDirectoryExists:u,originalCreateDirectory:f,originalWriteFile:g,originalReadFileWithCache:i,originalGetSourceFile:s}}function que(e){if(!e.cache)return;const{cache:t,host:r,compilerHost:i,extendedConfigCache:s,moduleResolutionCache:o,typeReferenceDirectiveResolutionCache:c,libraryResolutionCache:u}=e;r.readFile=t.originalReadFile,r.fileExists=t.originalFileExists,r.directoryExists=t.originalDirectoryExists,r.createDirectory=t.originalCreateDirectory,r.writeFile=t.originalWriteFile,i.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,s.clear(),o==null||o.clear(),c==null||c.clear(),u==null||u.clear(),e.cache=void 0}function Q6e(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function Y6e({projectPendingBuild:e},t,r){const i=e.get(t);(i===void 0||ie.projectPendingBuild.set(pg(e,i),0)),t&&t.throwIfCancellationRequested()}function K6e(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function iGe(e,t,r,i,s){let o=!0;return{kind:2,project:t,projectPath:r,buildOrder:s,getCompilerOptions:()=>i.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{o4e(e,i,r),o=!1},done:()=>(o&&o4e(e,i,r),gc("SolutionBuilder::Timestamps only updates"),K6e(e,r))}}function e4e(e,t,r,i,s,o,c){let u=e===0?0:4,f,g,d;return e===0?{kind:e,project:r,projectPath:i,buildOrder:c,getCompilerOptions:()=>o.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>x(dc),getProgram:()=>x(J=>J.getProgramOrUndefined()),getSourceFile:J=>x(ne=>ne.getSourceFile(J)),getSourceFiles:()=>T(J=>J.getSourceFiles()),getOptionsDiagnostics:J=>T(ne=>ne.getOptionsDiagnostics(J)),getGlobalDiagnostics:J=>T(ne=>ne.getGlobalDiagnostics(J)),getConfigFileParsingDiagnostics:()=>T(J=>J.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(J,ne)=>T(ge=>ge.getSyntacticDiagnostics(J,ne)),getAllDependencies:J=>T(ne=>ne.getAllDependencies(J)),getSemanticDiagnostics:(J,ne)=>T(ge=>ge.getSemanticDiagnostics(J,ne)),getSemanticDiagnosticsOfNextAffectedFile:(J,ne)=>x(ge=>ge.getSemanticDiagnosticsOfNextAffectedFile&&ge.getSemanticDiagnosticsOfNextAffectedFile(J,ne)),emit:(J,ne,ge,ve,Q)=>{if(J||ve)return x(X=>{var se,pe;return X.emit(J,ne,ge,ve,Q||((pe=(se=t.host).getCustomTransformers)==null?void 0:pe.call(se,r)))});if(ce(2,ge),u===5)return G(ne,ge);if(u===3)return V(ne,ge,Q)},done:y}:{kind:e,project:r,projectPath:i,buildOrder:c,getCompilerOptions:()=>o.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),emit:(J,ne)=>u!==4?d:z(J,ne),done:y};function y(J,ne,ge){return ce(8,J,ne,ge),gc(e===0?"SolutionBuilder::Projects built":"SolutionBuilder::Bundles updated"),K6e(t,i)}function x(J){return ce(0),f&&J(f)}function T(J){return x(J)||Ke}function C(){var J,ne,ge;if(w.assert(f===void 0),t.options.dry){ef(t,p.A_non_dry_build_would_build_project_0,r),g=1,u=7;return}if(t.options.verbose&&ef(t,p.Building_project_0,r),o.fileNames.length===0){rD(t,i,Mx(o)),g=0,u=7;return}const{host:ve,compilerHost:Q}=t;if(t.projectCompilerOptions=o.options,(J=t.moduleResolutionCache)==null||J.update(o.options),(ne=t.typeReferenceDirectiveResolutionCache)==null||ne.update(o.options),f=ve.createProgram(o.fileNames,o.options,Q,aGe(t,i,o),Mx(o),o.projectReferences),t.watch){const X=(ge=t.moduleResolutionCache)==null?void 0:ge.getPackageJsonInfoCache().getInternalMap();t.lastCachedPackageJsonLookups.set(i,X&&new Set(Vs(X.values(),se=>t.host.realpath&&(OM(se)||se.directoryExists)?t.host.realpath(Zr(se.packageDirectory,"package.json")):Zr(se.packageDirectory,"package.json")))),t.builderPrograms.set(i,f)}u++}function N(J,ne,ge){J.length?{buildResult:g,step:u}=$ue(t,i,f,o,J,ne,ge):u++}function D(J){w.assertIsDefined(f),N([...f.getConfigFileParsingDiagnostics(),...f.getOptionsDiagnostics(J),...f.getGlobalDiagnostics(J),...f.getSyntacticDiagnostics(void 0,J)],8,"Syntactic")}function M(J){N(w.checkDefined(f).getSemanticDiagnostics(void 0,J),16,"Semantic")}function V(J,ne,ge){var ve,Q,X;w.assertIsDefined(f),w.assert(u===3);const se=f.saveEmitState();let pe;const we=ze=>(pe||(pe=[])).push(ze),fe=[],{emitResult:ie}=NR(f,we,void 0,void 0,(ze,st,zt,yt,$e,kt)=>fe.push({name:ze,text:st,writeByteOrderMark:zt,data:kt}),ne,!1,ge||((Q=(ve=t.host).getCustomTransformers)==null?void 0:Q.call(ve,r)));if(pe)return f.restoreEmitState(se),{buildResult:g,step:u}=$ue(t,i,f,o,pe,32,"Declaration file"),{emitSkipped:!0,diagnostics:ie.diagnostics};const{host:ye,compilerHost:Ne}=t,Ue=(X=f.hasChangedEmitSignature)!=null&&X.call(f)?0:2,Se=d4(),Ee=new Map,Ae=f.getCompilerOptions(),Le=pw(Ae);let Tt,xe;return fe.forEach(({name:ze,text:st,writeByteOrderMark:zt,data:yt})=>{const $e=od(t,ze);Ee.set(od(t,ze),ze),yt!=null&&yt.buildInfo&&Que(t,yt.buildInfo,i,Ae,Ue);const kt=yt!=null&&yt.differsOnlyInMap?ck(t.host,ze):void 0;BP(J?{writeFile:J}:Ne,Se,ze,st,zt),yt!=null&&yt.differsOnlyInMap?t.host.setModifiedTime(ze,kt):!Le&&t.watch&&(Tt||(Tt=Xue(t,i))).set($e,xe||(xe=X7(t.host)))}),Z(Se,Ee,fe.length?fe[0].name:y$(o,!ye.useCaseSensitiveFileNames()),Ue),ie}function G(J,ne){w.assertIsDefined(f),w.assert(u===5);const ge=f.emitBuildInfo((ve,Q,X,se,pe,we)=>{we!=null&&we.buildInfo&&Que(t,we.buildInfo,i,f.getCompilerOptions(),2),J?J(ve,Q,X,se,pe,we):t.compilerHost.writeFile(ve,Q,X,se,pe,we)},ne);return ge.diagnostics.length&&(BR(t,ge.diagnostics),t.diagnostics.set(i,[...t.diagnostics.get(i),...ge.diagnostics]),g=64&g),ge.emittedFiles&&t.write&&ge.emittedFiles.forEach(ve=>r4e(t,o,ve)),Gue(t,f,o),u=7,ge}function Z(J,ne,ge,ve){const Q=J.getDiagnostics();return Q.length?({buildResult:g,step:u}=$ue(t,i,f,o,Q,64,"Emit"),Q):(t.write&&ne.forEach(X=>r4e(t,o,X)),a4e(t,o,i,p.Updating_unchanged_output_timestamps_of_project_0,ne),t.diagnostics.delete(i),t.projectStatus.set(i,{type:1,oldestOutputFileName:ge}),Gue(t,f,o),u=7,g=ve,Q)}function z(J,ne){var ge,ve,Q,X;if(w.assert(e===1),t.options.dry){ef(t,p.A_non_dry_build_would_update_output_of_project_0,r),g=1,u=7;return}t.options.verbose&&ef(t,p.Updating_output_of_project_0,r);const{compilerHost:se}=t;t.projectCompilerOptions=o.options,(ve=(ge=t.host).beforeEmitBundle)==null||ve.call(ge,o);const pe=iue(o,se,Ue=>{const Se=nD(t,Ue.path);return fC(t,Se,pg(t,Se))},ne||((X=(Q=t.host).getCustomTransformers)==null?void 0:X.call(Q,r)));if(Ls(pe))return ef(t,p.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,r,Nu(t,pe)),u=6,d=e4e(0,t,r,i,s,o,c);w.assert(!!pe.length);const we=d4(),fe=new Map;let ie=2;const ye=t.buildInfoCache.get(i).buildInfo||void 0;return pe.forEach(({name:Ue,text:Se,writeByteOrderMark:Ee,data:Ae})=>{var Le,Tt;fe.set(od(t,Ue),Ue),Ae!=null&&Ae.buildInfo&&(((Le=Ae.buildInfo.program)==null?void 0:Le.outSignature)!==((Tt=ye==null?void 0:ye.program)==null?void 0:Tt.outSignature)&&(ie&=-3),Que(t,Ae.buildInfo,i,o.options,ie)),BP(J?{writeFile:J}:se,we,Ue,Se,Ee)}),{emitSkipped:!1,diagnostics:Z(we,fe,pe[0].name,ie)}}function ce(J,ne,ge,ve){for(;u<=J&&u<8;){const Q=u;switch(u){case 0:C();break;case 1:D(ne);break;case 2:M(ne);break;case 3:V(ge,ne,ve);break;case 5:G(ge,ne);break;case 4:z(ge,ve);break;case 6:w.checkDefined(d).done(ne,ge,ve),u=8;break;case 7:uGe(t,r,i,s,o,c,w.checkDefined(g)),u++;break}w.assert(u>Q)}}}function sGe({options:e},t,r){return t.type!==3||e.force?!0:r.fileNames.length===0||!!Mx(r).length||!pw(r.options)}function t4e(e,t,r){if(!e.projectPendingBuild.size||_C(t))return;const{options:i,projectPendingBuild:s}=e;for(let o=0;o{const T=w.checkDefined(e.filesWatched.get(u));w.assert(gX(T)),T.modifiedTime=x,T.callbacks.forEach(C=>C(d,y,x))},i,s,o,c);e.filesWatched.set(u,{callbacks:[r],watcher:g,modifiedTime:f})}return{close:()=>{const g=w.checkDefined(e.filesWatched.get(u));w.assert(gX(g)),g.callbacks.length===1?(e.filesWatched.delete(u),ad(g)):ak(g.callbacks,r)}}}function Xue(e,t){if(!e.watch)return;let r=e.outputTimeStamps.get(t);return r||e.outputTimeStamps.set(t,r=new Map),r}function Que(e,t,r,i,s){const o=wy(i),c=Yue(e,o,r),u=X7(e.host);c?(c.buildInfo=t,c.modifiedTime=u,s&2||(c.latestChangedDtsTime=u)):e.buildInfoCache.set(r,{path:od(e,o),buildInfo:t,modifiedTime:u,latestChangedDtsTime:s&2?void 0:u})}function Yue(e,t,r){const i=od(e,t),s=e.buildInfoCache.get(r);return(s==null?void 0:s.path)===i?s:void 0}function s4e(e,t,r,i){const s=od(e,t),o=e.buildInfoCache.get(r);if(o!==void 0&&o.path===s)return o.buildInfo||void 0;const c=e.readFileWithCache(t),u=c?uR(t,c):void 0;return e.buildInfoCache.set(r,{path:s,buildInfo:u||!1,modifiedTime:i||fp}),u}function Zue(e,t,r,i){const s=i4e(e,t);if(rD&&(N=Q,D=X),T&&V.add(od(e,Q))}if(T){C||(C=X$(T,g,f));for(const Q of C.roots)if(!V.has(Q))return{type:10,buildInfoFile:g,inputFile:Q}}if(!g){const Q=cR(t,!f.useCaseSensitiveFileNames()),X=Xue(e,r);for(const se of Q){const pe=od(e,se);let we=X==null?void 0:X.get(pe);if(we||(we=ck(e.host,se),X==null||X.set(pe,we)),we===fp)return{type:4,missingOutputFileName:se};if(weZue(e,Q,y,d));if(ne)return ne;const ge=e.lastCachedPackageJsonLookups.get(r),ve=ge&&Wg(ge,Q=>Zue(e,Q,y,d));return ve||(z&&Z?{type:3,outOfDateOutputFileName:d,newerProjectName:ce}:{type:Z?2:M?15:1,newestInputFileTime:D,newestInputFileName:N,oldestOutputFileName:d})}function cGe(e,t,r){return e.buildInfoCache.get(r).path===t.path}function Kue(e,t,r){if(t===void 0)return{type:0,reason:"File deleted mid-build"};const i=e.projectStatus.get(r);if(i!==void 0)return i;gc("SolutionBuilder::beforeUpToDateCheck");const s=oGe(e,t,r);return gc("SolutionBuilder::afterUpToDateCheck"),Ap("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(r,s),s}function a4e(e,t,r,i,s){if(t.options.noEmit)return;let o;const c=wy(t.options);if(c){s!=null&&s.has(od(e,c))||(e.options.verbose&&ef(e,i,t.options.configFilePath),e.host.setModifiedTime(c,o=X7(e.host)),Yue(e,c,r).modifiedTime=o),e.outputTimeStamps.delete(r);return}const{host:u}=e,f=cR(t,!u.useCaseSensitiveFileNames()),g=Xue(e,r),d=g?new Set:void 0;if(!s||f.length!==s.size){let y=!!e.options.verbose;for(const x of f){const T=od(e,x);s!=null&&s.has(T)||(y&&(y=!1,ef(e,i,t.options.configFilePath)),u.setModifiedTime(x,o||(o=X7(e.host))),g&&(g.set(T,o),d.add(T)))}}g==null||g.forEach((y,x)=>{!(s!=null&&s.has(x))&&!d.has(x)&&g.delete(x)})}function lGe(e,t,r){if(!t.composite)return;const i=w.checkDefined(e.buildInfoCache.get(r));if(i.latestChangedDtsTime!==void 0)return i.latestChangedDtsTime||void 0;const s=i.buildInfo&&i.buildInfo.program&&i.buildInfo.program.latestChangedDtsFile?e.host.getModifiedTime(Ss(i.buildInfo.program.latestChangedDtsFile,oi(i.path))):void 0;return i.latestChangedDtsTime=s||!1,s}function o4e(e,t,r){if(e.options.dry)return ef(e,p.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);a4e(e,t,r,p.Updating_output_timestamps_of_project_0),e.projectStatus.set(r,{type:1,oldestOutputFileName:y$(t,!e.host.useCaseSensitiveFileNames())})}function uGe(e,t,r,i,s,o,c){if(!(c&124)&&s.options.composite)for(let u=i+1;ue.diagnostics.has(pg(e,g)))?f?2:1:0}function l4e(e,t,r){gc("SolutionBuilder::beforeClean");const i=fGe(e,t,r);return gc("SolutionBuilder::afterClean"),Ap("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),i}function fGe(e,t,r){const i=$6e(e,t,r);if(!i)return 3;if(_C(i))return BR(e,i.circularDiagnostics),4;const{options:s,host:o}=e,c=s.dry?[]:void 0;for(const u of i){const f=pg(e,u),g=fC(e,u,f);if(g===void 0){m4e(e,f);continue}const d=cR(g,!o.useCaseSensitiveFileNames());if(!d.length)continue;const y=new Set(g.fileNames.map(x=>od(e,x)));for(const x of d)y.has(od(e,x))||o.fileExists(x)&&(c?c.push(x):(o.deleteFile(x),e_e(e,f,0)))}return c&&ef(e,p.A_non_dry_build_would_delete_the_following_files_Colon_0,c.map(u=>`\r + * ${u}`).join("")),0}function e_e(e,t,r){e.host.getParsedCommandLine&&r===1&&(r=2),r===2&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,Q6e(e,t),Y6e(e,t,r),X6e(e)}function jR(e,t,r){e.reportFileChangeDetected=!0,e_e(e,t,r),u4e(e,250,!0)}function u4e(e,t,r){const{hostWithWatch:i}=e;!i.setTimeout||!i.clearTimeout||(e.timerToBuildInvalidatedProject&&i.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=i.setTimeout(pGe,t,"timerToBuildInvalidatedProject",e,r))}function pGe(e,t,r){gc("SolutionBuilder::beforeBuild");const i=dGe(t,r);gc("SolutionBuilder::afterBuild"),Ap("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),i&&g4e(t,i)}function dGe(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),r_e(e,p.File_change_detected_Starting_incremental_compilation));let r=0;const i=RR(e),s=Hue(e,i,!1);if(s)for(s.done(),r++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;const o=t4e(e,i,!1);if(!o)break;if(o.kind!==2&&(t||r===5)){u4e(e,100,!1);return}n4e(e,o,i).done(),o.kind!==2&&r++}return que(e),i}function _4e(e,t,r,i){!e.watch||e.allWatchedConfigFiles.has(r)||e.allWatchedConfigFiles.set(r,hX(e,t,()=>jR(e,r,2),2e3,i==null?void 0:i.watchOptions,tu.ConfigFile,t))}function f4e(e,t,r){pR(t,r==null?void 0:r.options,e.allWatchedExtendedConfigFiles,(i,s)=>hX(e,i,()=>{var o;return(o=e.allWatchedExtendedConfigFiles.get(s))==null?void 0:o.projects.forEach(c=>jR(e,c,2))},2e3,r==null?void 0:r.watchOptions,tu.ExtendedConfigFile),i=>od(e,i))}function p4e(e,t,r,i){e.watch&&B7(Vue(e.allWatchedWildcardDirectories,r),i.wildcardDirectories,(s,o)=>e.watchDirectory(s,c=>{var u;J7({watchedDirPath:od(e,s),fileOrDirectory:c,fileOrDirectoryPath:od(e,c),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:i.options,program:e.builderPrograms.get(r)||((u=nGe(e,r))==null?void 0:u.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:f=>e.writeLog(f),toPath:f=>od(e,f)})||jR(e,r,1)},o,i==null?void 0:i.watchOptions,tu.WildcardDirectory,t))}function t_e(e,t,r,i){e.watch&&QP(Vue(e.allWatchedInputFiles,r),new Set(i.fileNames),{createNewValue:s=>hX(e,s,()=>jR(e,r,0),250,i==null?void 0:i.watchOptions,tu.SourceFile,t),onDeleteValue:Cm})}function n_e(e,t,r,i){!e.watch||!e.lastCachedPackageJsonLookups||QP(Vue(e.allWatchedPackageJsonFiles,r),e.lastCachedPackageJsonLookups.get(r),{createNewValue:s=>hX(e,s,()=>jR(e,r,0),2e3,i==null?void 0:i.watchOptions,tu.PackageJson,t),onDeleteValue:Cm})}function mGe(e,t){if(e.watchAllProjectsPending){gc("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(const r of MR(t)){const i=pg(e,r),s=fC(e,r,i);_4e(e,r,i,s),f4e(e,i,s),s&&(p4e(e,r,i,s),t_e(e,r,i,s),n_e(e,r,i,s))}gc("SolutionBuilder::afterWatcherCreation"),Ap("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function gGe(e){wf(e.allWatchedConfigFiles,Cm),wf(e.allWatchedExtendedConfigFiles,ad),wf(e.allWatchedWildcardDirectories,t=>wf(t,ad)),wf(e.allWatchedInputFiles,t=>wf(t,Cm)),wf(e.allWatchedPackageJsonFiles,t=>wf(t,Cm))}function d4e(e,t,r,i,s){const o=tGe(e,t,r,i,s);return{build:(c,u,f,g)=>c4e(o,c,u,f,g),clean:c=>l4e(o,c),buildReferences:(c,u,f,g)=>c4e(o,c,u,f,g,!0),cleanReferences:c=>l4e(o,c,!0),getNextInvalidatedProject:c=>(Z6e(o,c),Hue(o,RR(o),!1)),getBuildOrder:()=>RR(o),getUpToDateStatusOfProject:c=>{const u=nD(o,c),f=pg(o,u);return Kue(o,fC(o,u,f),f)},invalidateProject:(c,u)=>e_e(o,c,u||0),close:()=>gGe(o)}}function Nu(e,t){return aP(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function ef(e,t,...r){e.host.reportSolutionBuilderStatus(ll(t,...r))}function r_e(e,t,...r){var i,s;(s=(i=e.hostWithWatch).onWatchStatusChange)==null||s.call(i,ll(t,...r),e.host.getNewLine(),e.baseCompilerOptions)}function BR({host:e},t){t.forEach(r=>e.reportDiagnostic(r))}function rD(e,t,r){BR(e,r),e.projectErrorsReported.set(t,!0),r.length&&e.diagnostics.set(t,r)}function m4e(e,t){rD(e,t,[e.configFileCache.get(t)])}function g4e(e,t){if(!e.needsSummary)return;e.needsSummary=!1;const r=e.watch||!!e.host.reportErrorSummary,{diagnostics:i}=e;let s=0,o=[];_C(t)?(h4e(e,t.buildOrder),BR(e,t.circularDiagnostics),r&&(s+=DR(t.circularDiagnostics)),r&&(o=[...o,...AR(t.circularDiagnostics)])):(t.forEach(c=>{const u=pg(e,c);e.projectErrorsReported.has(u)||BR(e,i.get(u)||Ke)}),r&&i.forEach(c=>s+=DR(c)),r&&i.forEach(c=>[...o,...AR(c)])),e.watch?r_e(e,nX(s),s):e.host.reportErrorSummary&&e.host.reportErrorSummary(s,o)}function h4e(e,t){e.options.verbose&&ef(e,p.Projects_in_this_build_Colon_0,t.map(r=>`\r + * `+Nu(e,r)).join(""))}function hGe(e,t,r){switch(r.type){case 6:return ef(e,p.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,Nu(e,t),Nu(e,r.outOfDateOutputFileName),Nu(e,r.newerInputFileName));case 7:return ef(e,p.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,Nu(e,t),Nu(e,r.outOfDateOutputFileName),Nu(e,r.newerProjectName));case 4:return ef(e,p.Project_0_is_out_of_date_because_output_file_1_does_not_exist,Nu(e,t),Nu(e,r.missingOutputFileName));case 5:return ef(e,p.Project_0_is_out_of_date_because_there_was_error_reading_file_1,Nu(e,t),Nu(e,r.fileName));case 8:return ef(e,p.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,Nu(e,t),Nu(e,r.buildInfoFile));case 9:return ef(e,p.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,Nu(e,t),Nu(e,r.buildInfoFile));case 10:return ef(e,p.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,Nu(e,t),Nu(e,r.buildInfoFile),Nu(e,r.inputFile));case 1:if(r.newestInputFileTime!==void 0)return ef(e,p.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,Nu(e,t),Nu(e,r.newestInputFileName||""),Nu(e,r.oldestOutputFileName||""));break;case 3:return ef(e,p.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,Nu(e,t),Nu(e,r.newerProjectName));case 2:return ef(e,p.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,Nu(e,t));case 15:return ef(e,p.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,Nu(e,t));case 11:return ef(e,p.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,Nu(e,t),Nu(e,r.upstreamProjectName));case 12:return ef(e,r.upstreamProjectBlocked?p.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:p.Project_0_can_t_be_built_because_its_dependency_1_has_errors,Nu(e,t),Nu(e,r.upstreamProjectName));case 0:return ef(e,p.Failed_to_parse_file_0_Colon_1,Nu(e,t),r.reason);case 14:return ef(e,p.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,Nu(e,t),r.version,wt);case 17:return ef(e,p.Project_0_is_being_forcibly_rebuilt,Nu(e,t))}}function yX(e,t,r){e.options.verbose&&hGe(e,t,r)}var y4e,v4e,vX,yGe=K({"src/compiler/tsbuildPublic.ts"(){ua(),HS(),y4e=new Date(-864e13),v4e=new Date(864e13),vX=(e=>(e[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps",e))(vX||{})}}),ua=K({"src/compiler/_namespaces/ts.ts"(){Rt(),DJe(),AJe(),JJe(),VJe(),WJe(),tze(),Jbe(),uze(),mze(),gze(),Sze(),Pze(),CUe(),EUe(),PUe(),wUe(),LUe(),MUe(),RUe(),jUe(),_Ve(),fVe(),xVe(),JVe(),fWe(),yWe(),vWe(),OWe(),BWe(),GWe(),eqe(),pqe(),dqe(),Tqe(),kqe(),Cqe(),Iqe(),Oqe(),Fqe(),Lqe(),Mqe(),Rqe(),jqe(),Bqe(),Jqe(),Vqe(),Wqe(),qqe(),Hqe(),Gqe(),Xqe(),Qqe(),Yqe(),Zqe(),Kqe(),eHe(),aHe(),fHe(),xHe(),kHe(),wHe(),DHe(),AHe(),VHe(),WHe(),GHe(),QHe(),YHe(),ZHe(),yGe(),ale(),HS()}});function b4e(e){return Bu.args.includes(e)}function S4e(e){const t=Bu.args.indexOf(e);return t>=0&&t{e.GlobalCacheLocation="--globalTypingsCacheLocation",e.LogFile="--logFile",e.EnableTelemetry="--enableTelemetry",e.TypingSafeListLocation="--typingSafeListLocation",e.TypesMapLocation="--typesMapLocation",e.NpmLocation="--npmLocation",e.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(SX||(SX={})),i_e=` + `}}),bGe=K({"src/jsTyping/types.ts"(){}}),VR=K({"src/jsTyping/_namespaces/ts.server.ts"(){vGe(),bGe()}});function T4e(e,t){return new $d(DO(t,`ts${rt}`)||DO(t,"latest")).compareTo(e.version)<=0}function k4e(e){return l_e.has(e)?"node":e}function SGe(e,t){const r=f7(t,i=>e.readFile(i));return new Map(Object.entries(r.config))}function xGe(e,t){var r;const i=f7(t,s=>e.readFile(s));if((r=i.config)!=null&&r.simpleMap)return new Map(Object.entries(i.config.simpleMap))}function TGe(e,t,r,i,s,o,c,u,f,g){if(!c||!c.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};const d=new Map;r=Oi(r,Z=>{const z=ka(Z);if(Pb(z))return z});const y=[];c.include&&M(c.include,"Explicitly included types");const x=c.exclude||[];if(!g.types){const Z=new Set(r.map(oi));Z.add(i),Z.forEach(z=>{V(z,"bower.json","bower_components",y),V(z,"package.json","node_modules",y)})}if(c.disableFilenameBasedTypeAcquisition||G(r),u){const Z=ks(u.map(k4e),WS,p_);M(Z,"Inferred typings from unresolved imports")}for(const Z of x)d.delete(Z)&&t&&t(`Typing for ${Z} is in exclude list, will be ignored.`);o.forEach((Z,z)=>{const ce=f.get(z);d.get(z)===!1&&ce!==void 0&&T4e(Z,ce)&&d.set(z,Z.typingLocation)});const T=[],C=[];d.forEach((Z,z)=>{Z?C.push(Z):T.push(z)});const N={cachedTypingPaths:C,newTypingNames:T,filesToWatch:y};return t&&t(`Finished typings discovery:${g2(N)}`),N;function D(Z){d.has(Z)||d.set(Z,!1)}function M(Z,z){t&&t(`${z}: ${JSON.stringify(Z)}`),dt(Z,D)}function V(Z,z,ce,J){const ne=Zr(Z,z);let ge,ve;e.fileExists(ne)&&(J.push(ne),ge=f7(ne,pe=>e.readFile(pe)).config,ve=Ys([ge.dependencies,ge.devDependencies,ge.optionalDependencies,ge.peerDependencies],Eh),M(ve,`Typing names in '${ne}' dependencies`));const Q=Zr(Z,ce);if(J.push(Q),!e.directoryExists(Q))return;const X=[],se=ve?ve.map(pe=>Zr(Q,pe,z)):e.readDirectory(Q,[".json"],void 0,void 0,3).filter(pe=>{if(xl(pe)!==z)return!1;const we=au(ka(pe)),fe=we[we.length-3][0]==="@";return fe&&jg(we[we.length-4])===ce||!fe&&jg(we[we.length-3])===ce});t&&t(`Searching for typing names in ${Q}; all files: ${JSON.stringify(se)}`);for(const pe of se){const we=ka(pe),ie=f7(we,Ne=>e.readFile(Ne)).config;if(!ie.name)continue;const ye=ie.types||ie.typings;if(ye){const Ne=Ss(ye,oi(we));e.fileExists(Ne)?(t&&t(` Package '${ie.name}' provides its own types.`),d.set(ie.name,Ne)):t&&t(` Package '${ie.name}' provides its own types but they are missing.`)}else X.push(ie.name)}M(X," Found package names")}function G(Z){const z=Oi(Z,J=>{if(!Pb(J))return;const ne=Y_(jg(xl(J))),ge=dU(ne);return s.get(ge)});z.length&&M(z,"Inferred typings from file names"),Pe(Z,J=>zc(J,".jsx"))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),D("react"))}}function kGe(e){return s_e(e,!0)}function s_e(e,t){if(!e)return 1;if(e.length>__e)return 2;if(e.charCodeAt(0)===46)return 3;if(e.charCodeAt(0)===95)return 4;if(t){const r=/^@([^/]+)\/([^/]+)$/.exec(e);if(r){const i=s_e(r[1],!1);if(i!==0)return{name:r[1],isScopeName:!0,result:i};const s=s_e(r[2],!1);return s!==0?{name:r[2],isScopeName:!1,result:s}:0}}return encodeURIComponent(e)!==e?5:0}function CGe(e,t){return typeof e=="object"?C4e(t,e.result,e.name,e.isScopeName):C4e(t,e,t,!1)}function C4e(e,t,r,i){const s=i?"Scope":"Package";switch(t){case 1:return`'${e}':: ${s} name '${r}' cannot be empty`;case 2:return`'${e}':: ${s} name '${r}' should be less than ${__e} characters`;case 3:return`'${e}':: ${s} name '${r}' cannot start with '.'`;case 4:return`'${e}':: ${s} name '${r}' cannot start with '_'`;case 5:return`'${e}':: ${s} name '${r}' contains non URI safe characters`;case 0:return w.fail();default:w.assertNever(t)}}var a_e,o_e,c_e,l_e,u_e,__e,EGe=K({"src/jsTyping/jsTyping.ts"(){K7(),VR(),a_e=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","https","http2","inspector","module","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","stream/promises","string_decoder","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"],o_e=a_e.map(e=>`node:${e}`),c_e=[...a_e,...o_e],l_e=new Set(c_e),u_e=(e=>(e[e.Ok=0]="Ok",e[e.EmptyName=1]="EmptyName",e[e.NameTooLong=2]="NameTooLong",e[e.NameStartsWithDot=3]="NameStartsWithDot",e[e.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",e[e.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters",e))(u_e||{}),__e=214}}),dg={};Ye(dg,{NameValidationResult:()=>u_e,discoverTypings:()=>TGe,isTypingUpToDate:()=>T4e,loadSafeList:()=>SGe,loadTypesMap:()=>xGe,nodeCoreModuleList:()=>c_e,nodeCoreModules:()=>l_e,nonRelativeModuleNameForTypingCache:()=>k4e,prefixedNodeCoreModuleList:()=>o_e,renderPackageNameValidationFailure:()=>CGe,validatePackageName:()=>kGe});var PGe=K({"src/jsTyping/_namespaces/ts.JsTyping.ts"(){EGe()}}),K7=K({"src/jsTyping/_namespaces/ts.ts"(){ua(),PGe(),VR()}});function WR(e){return{indentSize:4,tabSize:4,newLineCharacter:e||` +`,convertTabsToSpaces:!0,indentStyle:2,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:"ignore",trimTrailingWhitespace:!0,indentSwitchCase:!0}}var qR,xX,TX,kX,cd,CX,EX,PX,wX,DX,AX,NX,f_e,eI,IX,OX,FX,LX,MX,RX,jX,BX,JX,wGe=K({"src/services/types.ts"(){(e=>{class t{constructor(s){this.text=s}getText(s,o){return s===0&&o===this.text.length?this.text:this.text.substring(s,o)}getLength(){return this.text.length}getChangeRange(){}}function r(i){return new t(i)}e.fromString=r})(qR||(qR={})),xX=(e=>(e[e.Dependencies=1]="Dependencies",e[e.DevDependencies=2]="DevDependencies",e[e.PeerDependencies=4]="PeerDependencies",e[e.OptionalDependencies=8]="OptionalDependencies",e[e.All=15]="All",e))(xX||{}),TX=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(TX||{}),kX=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(kX||{}),cd={},CX=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(CX||{}),EX=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(EX||{}),PX=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(PX||{}),wX=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(wX||{}),DX=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(DX||{}),AX=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(AX||{}),NX=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(NX||{}),f_e=WR(` +`),eI=(e=>(e[e.aliasName=0]="aliasName",e[e.className=1]="className",e[e.enumName=2]="enumName",e[e.fieldName=3]="fieldName",e[e.interfaceName=4]="interfaceName",e[e.keyword=5]="keyword",e[e.lineBreak=6]="lineBreak",e[e.numericLiteral=7]="numericLiteral",e[e.stringLiteral=8]="stringLiteral",e[e.localName=9]="localName",e[e.methodName=10]="methodName",e[e.moduleName=11]="moduleName",e[e.operator=12]="operator",e[e.parameterName=13]="parameterName",e[e.propertyName=14]="propertyName",e[e.punctuation=15]="punctuation",e[e.space=16]="space",e[e.text=17]="text",e[e.typeParameterName=18]="typeParameterName",e[e.enumMemberName=19]="enumMemberName",e[e.functionName=20]="functionName",e[e.regularExpressionLiteral=21]="regularExpressionLiteral",e[e.link=22]="link",e[e.linkName=23]="linkName",e[e.linkText=24]="linkText",e))(eI||{}),IX=(e=>(e[e.None=0]="None",e[e.MayIncludeAutoImports=1]="MayIncludeAutoImports",e[e.IsImportStatementCompletion=2]="IsImportStatementCompletion",e[e.IsContinuation=4]="IsContinuation",e[e.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",e[e.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",e[e.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets",e))(IX||{}),OX=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(OX||{}),FX=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(FX||{}),LX=(e=>(e[e.None=0]="None",e[e.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",e[e.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",e[e.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",e[e.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",e[e.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",e[e.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",e))(LX||{}),MX=(e=>(e[e.Punctuation=0]="Punctuation",e[e.Keyword=1]="Keyword",e[e.Operator=2]="Operator",e[e.Comment=3]="Comment",e[e.Whitespace=4]="Whitespace",e[e.Identifier=5]="Identifier",e[e.NumberLiteral=6]="NumberLiteral",e[e.BigIntLiteral=7]="BigIntLiteral",e[e.StringLiteral=8]="StringLiteral",e[e.RegExpLiteral=9]="RegExpLiteral",e))(MX||{}),RX=(e=>(e.unknown="",e.warning="warning",e.keyword="keyword",e.scriptElement="script",e.moduleElement="module",e.classElement="class",e.localClassElement="local class",e.interfaceElement="interface",e.typeElement="type",e.enumElement="enum",e.enumMemberElement="enum member",e.variableElement="var",e.localVariableElement="local var",e.variableUsingElement="using",e.variableAwaitUsingElement="await using",e.functionElement="function",e.localFunctionElement="local function",e.memberFunctionElement="method",e.memberGetAccessorElement="getter",e.memberSetAccessorElement="setter",e.memberVariableElement="property",e.memberAccessorVariableElement="accessor",e.constructorImplementationElement="constructor",e.callSignatureElement="call",e.indexSignatureElement="index",e.constructSignatureElement="construct",e.parameterElement="parameter",e.typeParameterElement="type parameter",e.primitiveType="primitive type",e.label="label",e.alias="alias",e.constElement="const",e.letElement="let",e.directory="directory",e.externalModuleName="external module name",e.jsxAttribute="JSX attribute",e.string="string",e.link="link",e.linkName="link name",e.linkText="link text",e))(RX||{}),jX=(e=>(e.none="",e.publicMemberModifier="public",e.privateMemberModifier="private",e.protectedMemberModifier="protected",e.exportedModifier="export",e.ambientModifier="declare",e.staticModifier="static",e.abstractModifier="abstract",e.optionalModifier="optional",e.deprecatedModifier="deprecated",e.dtsModifier=".d.ts",e.tsModifier=".ts",e.tsxModifier=".tsx",e.jsModifier=".js",e.jsxModifier=".jsx",e.jsonModifier=".json",e.dmtsModifier=".d.mts",e.mtsModifier=".mts",e.mjsModifier=".mjs",e.dctsModifier=".d.cts",e.ctsModifier=".cts",e.cjsModifier=".cjs",e))(jX||{}),BX=(e=>(e.comment="comment",e.identifier="identifier",e.keyword="keyword",e.numericLiteral="number",e.bigintLiteral="bigint",e.operator="operator",e.stringLiteral="string",e.whiteSpace="whitespace",e.text="text",e.punctuation="punctuation",e.className="class name",e.enumName="enum name",e.interfaceName="interface name",e.moduleName="module name",e.typeParameterName="type parameter name",e.typeAliasName="type alias name",e.parameterName="parameter name",e.docCommentTagName="doc comment tag name",e.jsxOpenTagName="jsx open tag name",e.jsxCloseTagName="jsx close tag name",e.jsxSelfClosingTagName="jsx self closing tag name",e.jsxAttribute="jsx attribute",e.jsxText="jsx text",e.jsxAttributeStringLiteralValue="jsx attribute string literal value",e))(BX||{}),JX=(e=>(e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral",e))(JX||{})}});function tI(e){switch(e.kind){case 260:return lr(e)&&WV(e)?7:1;case 169:case 208:case 172:case 171:case 303:case 304:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 299:case 291:return 1;case 168:case 264:case 265:case 187:return 2;case 353:return e.name===void 0?3:2;case 306:case 263:return 3;case 267:return n_(e)||C0(e)===1?5:4;case 266:case 275:case 276:case 271:case 272:case 277:case 278:return 7;case 312:return 5}return 7}function jx(e){e=KX(e);const t=e.parent;return e.kind===312?1:Qc(t)||h_(t)||Kg(t)||Df(t)||Yg(t)||Tu(t)&&e===t.name?7:HR(e)?DGe(e):h0(e)?tI(t):Ef(e)&&Vn(e,Tm(ww,hk,o2))?7:OGe(e)?2:AGe(e)?4:Ic(t)?(w.assert(Rd(t.parent)),2):N1(t)?3:1}function DGe(e){const t=e.kind===166?e:Z_(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&t.parent.kind===271?7:4}function HR(e){for(;e.parent.kind===166;)e=e.parent;return r4(e.parent)&&e.parent.moduleReference===e}function AGe(e){return NGe(e)||IGe(e)}function NGe(e){let t=e,r=!0;if(t.parent.kind===166){for(;t.parent&&t.parent.kind===166;)t=t.parent;r=t.right===e}return t.parent.kind===183&&!r}function IGe(e){let t=e,r=!0;if(t.parent.kind===211){for(;t.parent&&t.parent.kind===211;)t=t.parent;r=t.name===e}if(!r&&t.parent.kind===233&&t.parent.parent.kind===298){const i=t.parent.parent.parent;return i.kind===263&&t.parent.parent.token===119||i.kind===264&&t.parent.parent.token===96}return!1}function OGe(e){switch(qP(e)&&(e=e.parent),e.kind){case 110:return!Oh(e);case 197:return!0}switch(e.parent.kind){case 183:return!0;case 205:return!e.parent.isTypeOf;case 233:return Ih(e.parent)}return!1}function zX(e,t=!1,r=!1){return nI(e,ma,VX,t,r)}function aD(e,t=!1,r=!1){return nI(e,Fb,VX,t,r)}function UX(e,t=!1,r=!1){return nI(e,Zm,VX,t,r)}function p_e(e,t=!1,r=!1){return nI(e,Lb,FGe,t,r)}function d_e(e,t=!1,r=!1){return nI(e,Vu,VX,t,r)}function m_e(e,t=!1,r=!1){return nI(e,F_,LGe,t,r)}function VX(e){return e.expression}function FGe(e){return e.tag}function LGe(e){return e.tagName}function nI(e,t,r,i,s){let o=i?g_e(e):GR(e);return s&&(o=gl(o)),!!o&&!!o.parent&&t(o.parent)&&r(o.parent)===o}function GR(e){return _3(e)?e.parent:e}function g_e(e){return _3(e)||GX(e)?e.parent:e}function $R(e,t){for(;e;){if(e.kind===256&&e.label.escapedText===t)return e.label;e=e.parent}}function rI(e,t){return Jr(e.expression)?e.expression.name.text===t:!1}function iI(e){var t;return Je(e)&&((t=si(e.parent,mP))==null?void 0:t.label)===e}function WX(e){var t;return Je(e)&&((t=si(e.parent,Mb))==null?void 0:t.label)===e}function qX(e){return WX(e)||iI(e)}function HX(e){var t;return((t=si(e.parent,q6))==null?void 0:t.tagName)===e}function h_e(e){var t;return((t=si(e.parent,Z_))==null?void 0:t.right)===e}function _3(e){var t;return((t=si(e.parent,Jr))==null?void 0:t.name)===e}function GX(e){var t;return((t=si(e.parent,uc))==null?void 0:t.argumentExpression)===e}function $X(e){var t;return((t=si(e.parent,dl))==null?void 0:t.name)===e}function XX(e){var t;return Je(e)&&((t=si(e.parent,oa))==null?void 0:t.name)===e}function XR(e){switch(e.parent.kind){case 172:case 171:case 303:case 306:case 174:case 173:case 177:case 178:case 267:return Ms(e.parent)===e;case 212:return e.parent.argumentExpression===e;case 167:return!0;case 201:return e.parent.parent.kind===199;default:return!1}}function y_e(e){return Qv(e.parent.parent)&&DP(e.parent.parent)===e}function Bx(e){for(Dd(e)&&(e=e.parent.parent);;){if(e=e.parent,!e)return;switch(e.kind){case 312:case 174:case 173:case 262:case 218:case 177:case 178:case 263:case 264:case 266:case 267:return e}}}function Qb(e){switch(e.kind){case 312:return Cl(e)?"module":"script";case 267:return"module";case 263:case 231:return"class";case 264:return"interface";case 265:case 345:case 353:return"type";case 266:return"enum";case 260:return t(e);case 208:return t(rg(e));case 219:case 262:case 218:return"function";case 177:return"getter";case 178:return"setter";case 174:case 173:return"method";case 303:const{initializer:r}=e;return oa(r)?"method":"property";case 172:case 171:case 304:case 305:return"property";case 181:return"index";case 180:return"construct";case 179:return"call";case 176:case 175:return"constructor";case 168:return"type parameter";case 306:return"enum member";case 169:return Kr(e,31)?"property":"parameter";case 271:case 276:case 281:case 274:case 280:return"alias";case 226:const i=rl(e),{right:s}=e;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:const c=Qb(s);return c===""?"const":c;case 3:return Xo(s)?"method":"property";case 4:return"property";case 5:return Xo(s)?"method":"property";case 6:return"local class";default:return""}case 80:return Yg(e.parent)?"alias":"";case 277:const o=Qb(e.expression);return o===""?"const":o;default:return""}function t(r){return Y6(r)?"const":WF(r)?"let":"var"}}function f3(e){switch(e.kind){case 110:return!0;case 80:return uq(e)&&e.parent.kind===169;default:return!1}}function jd(e,t){const r=_0(t),i=t.getLineAndCharacterOfPosition(e).line;return r[i]}function jp(e,t){return QX(e.pos,e.end,t)}function v_e(e,t){return aI(e,t.pos)&&aI(e,t.end)}function sI(e,t){return e.pos<=t&&t<=e.end}function aI(e,t){return e.pos=r.end}function oI(e,t,r){return e.pos<=t&&e.end>=r}function oD(e,t,r){return YR(e.pos,e.end,t,r)}function QR(e,t,r,i){return YR(e.getStart(t),e.end,r,i)}function YR(e,t,r,i){const s=Math.max(e,r),o=Math.min(t,i);return si.kind===t)}function ZR(e){const t=Cn(e.parent.getChildren(),r=>z4(r)&&jp(r,e));return w.assert(!t||Ai(t.getChildren(),e)),t}function E4e(e){return e.kind===90}function MGe(e){return e.kind===86}function RGe(e){return e.kind===100}function jGe(e){if(I_(e))return e.name;if(ql(e)){const t=e.modifiers&&Cn(e.modifiers,E4e);if(t)return t}if(Su(e)){const t=Cn(e.getChildren(),MGe);if(t)return t}}function BGe(e){if(I_(e))return e.name;if(Wl(e)){const t=Cn(e.modifiers,E4e);if(t)return t}if(Xo(e)){const t=Cn(e.getChildren(),RGe);if(t)return t}}function JGe(e){let t;return Vn(e,r=>(Gi(r)&&(t=r),!Z_(r.parent)&&!Gi(r.parent)&&!ZS(r.parent))),t}function KR(e,t){if(e.flags&16777216)return;const r=yj(e,t);if(r)return r;const i=JGe(e);return i&&t.getTypeAtLocation(i)}function zGe(e,t){if(!t)switch(e.kind){case 263:case 231:return jGe(e);case 262:case 218:return BGe(e);case 176:return e}if(I_(e))return e.name}function P4e(e,t){if(e.importClause){if(e.importClause.name&&e.importClause.namedBindings)return;if(e.importClause.name)return e.importClause.name;if(e.importClause.namedBindings){if(x0(e.importClause.namedBindings)){const r=Mg(e.importClause.namedBindings.elements);return r?r.name:void 0}else if(F1(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function w4e(e,t){if(e.exportClause){if(sd(e.exportClause))return Mg(e.exportClause.elements)?e.exportClause.elements[0].name:void 0;if(Zg(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function UGe(e){if(e.types.length===1)return e.types[0].expression}function D4e(e,t){const{parent:r}=e;if(Fa(e)&&(t||e.kind!==90)?sm(r)&&Ai(r.modifiers,e):e.kind===86?ql(r)||Su(e):e.kind===100?Wl(r)||Xo(e):e.kind===120?J_(r):e.kind===94?a2(r):e.kind===156?im(r):e.kind===145||e.kind===144?dl(r):e.kind===102?Tu(r):e.kind===139?Op(r):e.kind===153&&$f(r)){const i=zGe(r,t);if(i)return i}if((e.kind===115||e.kind===87||e.kind===121)&&_u(r)&&r.declarations.length===1){const i=r.declarations[0];if(Je(i.name))return i.name}if(e.kind===156){if(Yg(r)&&r.isTypeOnly){const i=P4e(r.parent,t);if(i)return i}if(ml(r)&&r.isTypeOnly){const i=w4e(r,t);if(i)return i}}if(e.kind===130){if(Df(r)&&r.propertyName||h_(r)&&r.propertyName||F1(r)||Zg(r))return r.name;if(ml(r)&&r.exportClause&&Zg(r.exportClause))return r.exportClause.name}if(e.kind===102&&eu(r)){const i=P4e(r,t);if(i)return i}if(e.kind===95){if(ml(r)){const i=w4e(r,t);if(i)return i}if(Qc(r))return gl(r.expression)}if(e.kind===149&&Kg(r))return r.expression;if(e.kind===161&&(eu(r)||ml(r))&&r.moduleSpecifier)return r.moduleSpecifier;if((e.kind===96||e.kind===119)&&Fp(r)&&r.token===e.kind){const i=UGe(r);if(i)return i}if(e.kind===96){if(Ic(r)&&r.constraint&&id(r.constraint))return r.constraint.typeName;if($k(r)&&id(r.extendsType))return r.extendsType.typeName}if(e.kind===140&&vx(r))return r.typeParameter.name;if(e.kind===103&&Ic(r)&&F4(r.parent))return r.name;if(e.kind===143&&Sx(r)&&r.operator===143&&id(r.type))return r.type.typeName;if(e.kind===148&&Sx(r)&&r.operator===148&&GN(r.type)&&id(r.type.elementType))return r.type.elementType.typeName;if(!t){if((e.kind===105&&Fb(r)||e.kind===116&&Xk(r)||e.kind===114&&L4(r)||e.kind===135&&I1(r)||e.kind===127&&KL(r)||e.kind===91&&Ooe(r))&&r.expression)return gl(r.expression);if((e.kind===103||e.kind===104)&&mr(r)&&r.operatorToken===e)return gl(r.right);if(e.kind===130&&XN(r)&&id(r.type))return r.type.typeName;if(e.kind===103&&tM(r)||e.kind===165&&QN(r))return gl(r.expression)}return e}function KX(e){return D4e(e,!1)}function ej(e){return D4e(e,!0)}function mf(e,t){return p3(e,t,r=>ng(r)||pf(r.kind)||Qi(r))}function p3(e,t,r){return A4e(e,t,!1,r,!1)}function ps(e,t){return A4e(e,t,!0,void 0,!1)}function A4e(e,t,r,i,s){let o=e,c;e:for(;;){const f=o.getChildren(e),g=rk(f,t,(d,y)=>y,(d,y)=>{const x=f[d].getEnd();if(xt?1:u(f[d],T,x)?f[d-1]&&u(f[d-1])?1:0:i&&T===t&&f[d-1]&&f[d-1].getEnd()===t&&u(f[d-1])?1:-1});if(c)return c;if(g>=0&&f[g]){o=f[g];continue e}return o}function u(f,g,d){if(d??(d=f.getEnd()),dt))return!1;if(tr.getStart(e)&&t(o.pos<=e.pos&&o.end>e.end||o.pos===e.end)&&w_e(o,r)?i(o):void 0)}}function Hl(e,t,r,i){const s=o(r||t);return w.assert(!(s&&nj(s))),s;function o(c){if(N4e(c)&&c.kind!==1)return c;const u=c.getChildren(t),f=rk(u,e,(d,y)=>y,(d,y)=>e=u[d-1].end?0:1:-1);if(f>=0&&u[f]){const d=u[f];if(e=e||!w_e(d,t)||nj(d)){const T=T_e(u,f,t,c.kind);return T?!i&&DF(T)&&T.getChildren(t).length?o(T):x_e(T,t):void 0}else return o(d)}w.assert(r!==void 0||c.kind===312||c.kind===1||DF(c));const g=T_e(u,u.length,t,c.kind);return g&&x_e(g,t)}}function N4e(e){return fk(e)&&!nj(e)}function x_e(e,t){if(N4e(e))return e;const r=e.getChildren(t);if(r.length===0)return e;const i=T_e(r,r.length,t,e.kind);return i&&x_e(i,t)}function T_e(e,t,r,i){for(let s=t-1;s>=0;s--){const o=e[s];if(nj(o))s===0&&(i===12||i===285)&&w.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(w_e(e[s],r))return e[s]}}function pC(e,t,r=Hl(t,e)){if(r&&ZV(r)){const i=r.getStart(e),s=r.getEnd();if(ir.getStart(e)}function C_e(e,t){const r=ps(e,t);return!!(Bk(r)||r.kind===19&&Ew(r.parent)&&Uh(r.parent.parent)||r.kind===30&&F_(r.parent)&&Uh(r.parent.parent))}function rj(e,t){function r(i){for(;i;)if(i.kind>=285&&i.kind<=294||i.kind===12||i.kind===30||i.kind===32||i.kind===80||i.kind===20||i.kind===19||i.kind===44)i=i.parent;else if(i.kind===284){if(t>i.getStart(e))return!0;i=i.parent}else return!1;return!1}return r(ps(e,t))}function ij(e,t,r){const i=ba(e.kind),s=ba(t),o=e.getFullStart(),c=r.text.lastIndexOf(s,o);if(c===-1)return;if(r.text.lastIndexOf(i,o-1)!!o.typeParameters&&o.typeParameters.length>=t)}function nQ(e,t){if(t.text.lastIndexOf("<",e?e.pos:t.text.length)===-1)return;let r=e,i=0,s=0;for(;r;){switch(r.kind){case 30:if(r=Hl(r.getFullStart(),t),r&&r.kind===29&&(r=Hl(r.getFullStart(),t)),!r||!Je(r))return;if(!i)return h0(r)?void 0:{called:r,nTypeArguments:s};i--;break;case 50:i=3;break;case 49:i=2;break;case 32:i++;break;case 20:if(r=ij(r,19,t),!r)return;break;case 22:if(r=ij(r,21,t),!r)return;break;case 24:if(r=ij(r,23,t),!r)return;break;case 28:s++;break;case 39:case 80:case 11:case 9:case 10:case 112:case 97:case 114:case 96:case 143:case 25:case 52:case 58:case 59:break;default:if(Gi(r))break;return}r=Hl(r.getFullStart(),t)}}function Dy(e,t,r){return nu.getRangeOfEnclosingComment(e,t,void 0,r)}function P_e(e,t){const r=ps(e,t);return!!Vn(r,Dm)}function w_e(e,t){return e.kind===1?!!e.jsDoc:e.getWidth(t)!==0}function cD(e,t=0){const r=[],i=g_(e)?JV(e)&~t:0;return i&2&&r.push("private"),i&4&&r.push("protected"),i&1&&r.push("public"),(i&256||Vc(e))&&r.push("static"),i&64&&r.push("abstract"),i&32&&r.push("export"),i&65536&&r.push("deprecated"),e.flags&33554432&&r.push("declare"),e.kind===277&&r.push("export"),r.length>0?r.join(","):""}function D_e(e){if(e.kind===183||e.kind===213)return e.typeArguments;if(oa(e)||e.kind===263||e.kind===264)return e.typeParameters}function sj(e){return e===2||e===3}function rQ(e){return!!(e===11||e===14||p1(e))}function I4e(e,t,r){return!!(t.flags&4)&&e.isEmptyAnonymousObjectType(r)}function A_e(e){if(!e.isIntersection())return!1;const{types:t,checker:r}=e;return t.length===2&&(I4e(r,t[0],t[1])||I4e(r,t[1],t[0]))}function uI(e,t,r){return p1(e.kind)&&e.getStart(r){const r=ho(t);return!e[r]&&(e[r]=!0)}}function d3(e){return e.getText(0,e.getLength())}function pI(e,t){let r="";for(let i=0;i!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!(t.externalModuleIndicator||t.commonJsModuleIndicator))}function F_e(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator)}function _Q(e){return!!e.module||go(e)>=2||!!e.noEmit}function Jx(e,t){return{fileExists:r=>e.fileExists(r),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:fa(t,t.readFile),useCaseSensitiveFileNames:fa(t,t.useCaseSensitiveFileNames),getSymlinkCache:fa(t,t.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:fa(t,t.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var r;return(r=e.getModuleResolutionCache())==null?void 0:r.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:fa(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:r=>e.getProjectReferenceRedirect(r),isSourceOfProjectReferenceRedirect:r=>e.isSourceOfProjectReferenceRedirect(r),getNearestAncestorDirectoryWithPackageJson:fa(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons(),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function fQ(e,t){return{...Jx(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function lj(e){return e===2||e>=3&&e<=99||e===100}function L_e(e,t,r,i){return e||t&&t.length?Ny(e,t,r,i):void 0}function Ny(e,t,r,i,s){return L.createImportDeclaration(void 0,e||t?L.createImportClause(!!s,e,t&&t.length?L.createNamedImports(t):void 0):void 0,typeof r=="string"?mC(r,i):r,void 0)}function mC(e,t){return L.createStringLiteral(e,t===0)}function pQ(e,t){return o9(e,t)?1:0}function Bp(e,t){if(t.quotePreference&&t.quotePreference!=="auto")return t.quotePreference==="single"?0:1;{const r=e.imports&&Cn(e.imports,i=>Ba(i)&&!lc(i.parent));return r?pQ(r,e):1}}function dQ(e){switch(e){case 0:return"'";case 1:return'"';default:return w.assertNever(e)}}function uj(e){const t=_j(e);return t===void 0?void 0:Hi(t)}function _j(e){return e.escapedName!=="default"?e.escapedName:li(e.declarations,t=>{const r=Ms(t);return r&&r.kind===80?r.escapedText:void 0})}function fj(e){return vo(e)&&(Kg(e.parent)||eu(e.parent)||Q_(e.parent,!1)&&e.parent.arguments[0]===e||gp(e.parent)&&e.parent.arguments[0]===e)}function mI(e){return oo(e)&&Md(e.parent)&&Je(e.name)&&!e.propertyName}function pj(e,t){const r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)}function gI(e,t,r){if(e)for(;e.parent;){if(es(e.parent)||!VGe(r,e.parent,t))return e;e=e.parent}}function VGe(e,t,r){return BV(e,t.getStart(r))&&t.getEnd()<=pl(e)}function m3(e,t){return sm(e)?Cn(e.modifiers,r=>r.kind===t):void 0}function uD(e,t,r,i,s){const c=(Ps(r)?r[0]:r).kind===243?MW:nx,u=vr(t.statements,c);let f=Ps(r)?cm.detectImportDeclarationSorting(r,s):3;const g=cm.getOrganizeImportsComparer(s,f===2),d=Ps(r)?sy(r,(y,x)=>cm.compareImportsOrRequireStatements(y,x,g)):[r];if(!u.length)e.insertNodesAtTopOfFile(t,d,i);else if(u&&(f=cm.detectImportDeclarationSorting(u,s))){const y=cm.getOrganizeImportsComparer(s,f===2);for(const x of d){const T=cm.getImportDeclarationInsertionIndex(u,x,y);if(T===0){const C=u[0]===t.statements[0]?{leadingTriviaOption:gr.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,u[0],x,!1,C)}else{const C=u[T-1];e.insertNodeAfter(t,C,x)}}}else{const y=pc(u);y?e.insertNodesAfter(t,y,d):e.insertNodesAtTopOfFile(t,d,i)}}function mQ(e,t){return w.assert(e.isTypeOnly),pa(e.getChildAt(0,t),lQ)}function g3(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function gQ(e,t,r){return(r?WS:jv)(e.fileName,t.fileName)&&g3(e.textSpan,t.textSpan)}function hQ(e){return(t,r)=>gQ(t,r,e)}function yQ(e,t){if(e){for(let r=0;rws(r)?!0:oo(r)||Md(r)||Ob(r)?!1:"quit")}function WGe(){const e=PN*10;let t,r,i,s;d();const o=y=>u(y,17);return{displayParts:()=>{const y=t.length&&t[t.length-1].text;return s>e&&y&&y!=="..."&&(f0(y.charCodeAt(y.length-1))||t.push(Nf(" ",16)),t.push(Nf("...",15))),t},writeKeyword:y=>u(y,5),writeOperator:y=>u(y,12),writePunctuation:y=>u(y,15),writeTrailingSemicolon:y=>u(y,15),writeSpace:y=>u(y,16),writeStringLiteral:y=>u(y,8),writeParameter:y=>u(y,13),writeProperty:y=>u(y,14),writeLiteral:y=>u(y,8),writeSymbol:f,writeLine:g,write:o,writeComment:o,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:ta,getIndent:()=>i,increaseIndent:()=>{i++},decreaseIndent:()=>{i--},clear:d};function c(){if(!(s>e)&&r){const y=h9(i);y&&(s+=y.length,t.push(Nf(y,16))),r=!1}}function u(y,x){s>e||(c(),s+=y.length,t.push(Nf(y,x)))}function f(y,x){s>e||(c(),s+=y.length,t.push(R_e(y,x)))}function g(){s>e||(s+=1,t.push(h3()),r=!0)}function d(){t=[],r=!0,i=0,s=0}}function R_e(e,t){return Nf(e,r(t));function r(i){const s=i.flags;return s&3?bQ(i)?13:9:s&4||s&32768||s&65536?14:s&8?19:s&16?20:s&32?1:s&64?4:s&384?2:s&1536?11:s&8192?10:s&262144?18:s&524288||s&2097152?0:17}}function Nf(e,t){return{text:e,kind:eI[t]}}function Yc(){return Nf(" ",16)}function Yf(e){return Nf(ba(e),5)}function b_(e){return Nf(ba(e),15)}function fD(e){return Nf(ba(e),12)}function j_e(e){return Nf(e,13)}function B_e(e){return Nf(e,14)}function SQ(e){const t=cb(e);return t===void 0?Jp(e):Yf(t)}function Jp(e){return Nf(e,17)}function J_e(e){return Nf(e,0)}function z_e(e){return Nf(e,18)}function mj(e){return Nf(e,24)}function U_e(e,t){return{text:e,kind:eI[23],target:{fileName:qn(t).fileName,textSpan:tf(t)}}}function xQ(e){return Nf(e,22)}function V_e(e,t){var r;const i=Joe(e)?"link":zoe(e)?"linkcode":"linkplain",s=[xQ(`{@${i} `)];if(!e.name)e.text&&s.push(mj(e.text));else{const o=t==null?void 0:t.getSymbolAtLocation(e.name),c=o&&t?CQ(o,t):void 0,u=HGe(e.text),f=Ol(e.name)+e.text.slice(0,u),g=qGe(e.text.slice(u)),d=(c==null?void 0:c.valueDeclaration)||((r=c==null?void 0:c.declarations)==null?void 0:r[0]);if(d)s.push(U_e(f,d)),g&&s.push(mj(g));else{const y=u===0||e.text.charCodeAt(u)===124&&f.charCodeAt(f.length-1)!==32?" ":"";s.push(mj(f+y+g))}}return s.push(xQ("}")),s}function qGe(e){let t=0;if(e.charCodeAt(t++)===124){for(;t"&&r--,i++,!r)return i}return 0}function Iy(e,t){var r;return(t==null?void 0:t.newLineCharacter)||((r=e.getNewLine)==null?void 0:r.call(e))||U4e}function h3(){return Nf(` +`,6)}function J1(e){try{return e(UQ),UQ.displayParts()}finally{UQ.clear()}}function hI(e,t,r,i=0){return J1(s=>{e.writeType(t,r,i|1024|16384,s)})}function pD(e,t,r,i,s=0){return J1(o=>{e.writeSymbol(t,r,i,s|8,o)})}function TQ(e,t,r,i=0){return i|=25632,J1(s=>{e.writeSignature(t,r,i,void 0,s)})}function F4e(e,t){const r=t.getSourceFile();return J1(i=>{j7().writeNode(4,e,r,i)})}function W_e(e){return!!e.parent&&pk(e.parent)&&e.parent.propertyName===e}function kQ(e,t){return G9(e,t.getScriptKind&&t.getScriptKind(e))}function CQ(e,t){let r=e;for(;GGe(r)||Vg(r)&&r.links.target;)Vg(r)&&r.links.target?r=r.links.target:r=Uu(r,t);return r}function GGe(e){return(e.flags&2097152)!==0}function q_e(e,t){return Ia(Uu(e,t))}function H_e(e,t){for(;f0(e.charCodeAt(t));)t+=1;return t}function gj(e,t){for(;t>-1&&Ym(e.charCodeAt(t));)t-=1;return t+1}function Sc(e,t=!0){const r=e&&L4e(e);return r&&!t&&Zf(r),r}function yI(e,t,r){let i=r(e);return i?Ir(i,e):i=L4e(e,r),i&&!t&&Zf(i),i}function L4e(e,t){const r=t?o=>yI(o,!0,t):Sc,s=En(e,r,void 0,t?o=>o&&EQ(o,!0,t):o=>o&&Zb(o),r);if(s===e){const o=Ba(e)?Ir(L.createStringLiteralFromNode(e),e):Hf(e)?Ir(L.createNumericLiteral(e.text,e.numericLiteralFlags),e):L.cloneNode(e);return ut(o,e)}return s.parent=void 0,s}function Zb(e,t=!0){if(e){const r=L.createNodeArray(e.map(i=>Sc(i,t)),e.hasTrailingComma);return ut(r,e),r}return e}function EQ(e,t,r){return L.createNodeArray(e.map(i=>yI(i,t,r)),e.hasTrailingComma)}function Zf(e){PQ(e),G_e(e)}function PQ(e){$_e(e,1024,XGe)}function G_e(e){$_e(e,2048,Tq)}function zx(e,t){const r=e.getSourceFile(),i=r.text;$Ge(e,i)?y3(e,t,r):bI(e,t,r),dD(e,t,r)}function $Ge(e,t){const r=e.getFullStart(),i=e.getStart();for(let s=r;st)}function Ux(e,t){let r=e;for(let i=1;!RF(t,r);i++)r=`${e}_${i}`;return r}function vI(e,t,r,i){let s=0,o=-1;for(const{fileName:c,textChanges:u}of e){w.assert(c===t);for(const f of u){const{span:g,newText:d}=f,y=QGe(d,Mh(r));if(y!==-1&&(o=g.start+s+y,!i))return o;s+=d.length-g.length}}return w.assert(i),w.assert(o>=0),o}function y3(e,t,r,i,s){tA(r.text,e.pos,X_e(t,r,i,s,gw))}function dD(e,t,r,i,s){nA(r.text,e.end,X_e(t,r,i,s,gL))}function bI(e,t,r,i,s){nA(r.text,e.pos,X_e(t,r,i,s,gw))}function X_e(e,t,r,i,s){return(o,c,u,f)=>{u===3?(o+=2,c-=2):o+=2,s(e,r||u,t.text.slice(o,c),i!==void 0?i:f)}}function QGe(e,t){if(fs(e,t))return 0;let r=e.indexOf(" "+t);return r===-1&&(r=e.indexOf("."+t)),r===-1&&(r=e.indexOf('"'+t)),r===-1?-1:r+1}function hj(e){return mr(e)&&e.operatorToken.kind===28||Va(e)||(XN(e)||EH(e))&&Va(e.expression)}function yj(e,t,r){const i=hy(e.parent);switch(i.kind){case 214:return t.getContextualType(i,r);case 226:{const{left:s,operatorToken:o,right:c}=i;return vj(o.kind)?t.getTypeAtLocation(e===c?s:c):t.getContextualType(e,r)}case 296:return DQ(i,t);default:return t.getContextualType(e,r)}}function mD(e,t,r){const i=Bp(e,t),s=JSON.stringify(r);return i===0?`'${Nd(s).replace(/'/g,()=>"\\'").replace(/\\"/g,'"')}'`:s}function vj(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function Q_e(e){switch(e.kind){case 11:case 15:case 228:case 215:return!0;default:return!1}}function wQ(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function DQ(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function gD(e,t,r,i){const s=r.getTypeChecker();let o=!0;const c=()=>o=!1,u=s.typeToTypeNode(e,t,1,{trackSymbol:(f,g,d)=>(o=o&&s.isSymbolAccessible(f,g,d,!1).accessibility===0,!o),reportInaccessibleThisError:c,reportPrivateInBaseOfClassExpression:c,reportInaccessibleUniqueSymbolError:c,moduleResolverHost:fQ(r,i)});return o?u:void 0}function Y_e(e){return e===179||e===180||e===181||e===171||e===173}function M4e(e){return e===262||e===176||e===174||e===177||e===178}function R4e(e){return e===267}function bj(e){return e===243||e===244||e===246||e===251||e===252||e===253||e===257||e===259||e===172||e===265||e===272||e===271||e===278||e===270||e===277}function YGe(e,t){const r=e.getLastToken(t);if(r&&r.kind===27)return!1;if(Y_e(e.kind)){if(r&&r.kind===28)return!1}else if(R4e(e.kind)){const u=so(e.getChildren(t));if(u&&lg(u))return!1}else if(M4e(e.kind)){const u=so(e.getChildren(t));if(u&&hb(u))return!1}else if(!bj(e.kind))return!1;if(e.kind===246)return!0;const i=Vn(e,u=>!u.parent),s=Yb(e,i,t);if(!s||s.kind===20)return!0;const o=t.getLineAndCharacterOfPosition(e.getEnd()).line,c=t.getLineAndCharacterOfPosition(s.getStart(t)).line;return o!==c}function Sj(e,t,r){const i=Vn(t,s=>s.end!==e?"quit":VQ(s.kind));return!!i&&YGe(i,r)}function SI(e){let t=0,r=0;const i=5;return Xs(e,function s(o){if(bj(o.kind)){const c=o.getLastToken(e);(c==null?void 0:c.kind)===27?t++:r++}else if(Y_e(o.kind)){const c=o.getLastToken(e);if((c==null?void 0:c.kind)===27)t++;else if(c&&c.kind!==28){const u=Ao(e,c.getStart(e)).line,f=Ao(e,Hg(e,c.end).start).line;u!==f&&r++}}return t+r>=i?!0:Xs(o,s)}),t===0&&r<=1?!0:t/r>1/i}function xj(e,t){return Cj(e,e.getDirectories,t)||[]}function AQ(e,t,r,i,s){return Cj(e,e.readDirectory,t,r,i,s)||Ke}function xI(e,t){return Cj(e,e.fileExists,t)}function Tj(e,t){return kj(()=>km(t,e))||!1}function kj(e){try{return e()}catch{return}}function Cj(e,t,...r){return kj(()=>t&&t.apply(e,r))}function NQ(e,t,r){const i=[];return Yd(e,s=>{if(s===r)return!0;const o=Zr(s,"package.json");xI(t,o)&&i.push(o)}),i}function Z_e(e,t){let r;return Yd(e,i=>{if(i==="node_modules"||(r=oue(i,s=>xI(t,s),"package.json"),r))return!0}),r}function K_e(e,t){if(!t.fileExists)return[];const r=[];return Yd(oi(e),i=>{const s=Zr(i,"package.json");if(t.fileExists(s)){const o=IQ(s,t);o&&r.push(o)}}),r}function IQ(e,t){if(!t.readFile)return;const r=["dependencies","devDependencies","optionalDependencies","peerDependencies"],i=t.readFile(e)||"",s=A9(i),o={};if(s)for(const f of r){const g=s[f];if(!g)continue;const d=new Map;for(const y in g)d.set(y,g[y]);o[f]=d}const c=[[1,o.dependencies],[2,o.devDependencies],[8,o.optionalDependencies],[4,o.peerDependencies]];return{...o,parseable:!!s,fileName:e,get:u,has(f,g){return!!u(f,g)}};function u(f,g=15){for(const[d,y]of c)if(y&&g&d){const x=y.get(f);if(x!==void 0)return x}}}function hD(e,t,r){const i=(r.getPackageJsonsVisibleToFile&&r.getPackageJsonsVisibleToFile(e.fileName)||K_e(e.fileName,r)).filter(C=>C.parseable);let s,o,c;return{allowsImportingAmbientModule:f,allowsImportingSourceFile:g,allowsImportingSpecifier:d};function u(C){const N=T(C);for(const D of i)if(D.has(N)||D.has(jM(N)))return!0;return!1}function f(C,N){if(!i.length||!C.valueDeclaration)return!0;if(!o)o=new Map;else{const Z=o.get(C);if(Z!==void 0)return Z}const D=Nd(C.getName());if(y(D))return o.set(C,!0),!0;const M=C.valueDeclaration.getSourceFile(),V=x(M.fileName,N);if(typeof V>"u")return o.set(C,!0),!0;const G=u(V)||u(D);return o.set(C,G),G}function g(C,N){if(!i.length)return!0;if(!c)c=new Map;else{const V=c.get(C);if(V!==void 0)return V}const D=x(C.fileName,N);if(!D)return c.set(C,!0),!0;const M=u(D);return c.set(C,M),M}function d(C){return!i.length||y(C)||pp(C)||zf(C)?!0:u(C)}function y(C){return!!(L_(e)&&dg.nodeCoreModules.has(C)&&(s===void 0&&(s=Ej(e)),s))}function x(C,N){if(!C.includes("node_modules"))return;const D=qb.getNodeModulesPackageName(r.getCompilationSettings(),e,C,N,t);if(D&&!pp(D)&&!zf(D))return T(D)}function T(C){const N=au(zw(C)).slice(1);return fs(N[0],"@")?`${N[0]}/${N[1]}`:N[0]}}function Ej(e){return Pe(e.imports,({text:t})=>dg.nodeCoreModules.has(t))}function TI(e){return Ai(au(e),"node_modules")}function OQ(e){return e.file!==void 0&&e.start!==void 0&&e.length!==void 0}function efe(e,t){const r=tf(e),i=rk(t,r,dc,IO);if(i>=0){const s=t[i];return w.assertEqual(s.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),pa(s,OQ)}}function tfe(e,t){var r;let i=rk(t,e.start,c=>c.start,mc);for(i<0&&(i=~i);((r=t[i-1])==null?void 0:r.start)===e.start;)i--;const s=[],o=pl(e);for(;;){const c=si(t[i],OQ);if(!c||c.start>o)break;iie(e,c)&&s.push(c),i++}return s}function gC({startPosition:e,endPosition:t}){return Il(e,t===void 0?e:t)}function FQ(e,t){const r=ps(e,t.start);return Vn(r,s=>s.getStart(e)pl(t)?"quit":vt(s)&&g3(t,tf(s,e)))}function LQ(e,t,r=dc){return e?Ps(e)?r(Kt(e,t)):t(e,0):void 0}function MQ(e){return Ps(e)?Ka(e):e}function nfe(e,t){if(j4e(e)){const r=B4e(e);if(r)return r;const i=a_.moduleSymbolToValidIdentifier(rfe(e),t,!1),s=a_.moduleSymbolToValidIdentifier(rfe(e),t,!0);return i===s?i:[i,s]}return e.name}function Pj(e,t,r){return j4e(e)?B4e(e)||a_.moduleSymbolToValidIdentifier(rfe(e),t,!!r):e.name}function j4e(e){return!(e.flags&33554432)&&(e.escapedName==="export="||e.escapedName==="default")}function B4e(e){return li(e.declarations,t=>{var r,i,s;return Qc(t)?(r=si(gl(t.expression),Je))==null?void 0:r.text:h_(t)&&t.symbol.flags===2097152?(i=si(t.propertyName,Je))==null?void 0:i.text:(s=si(Ms(t),Je))==null?void 0:s.text})}function rfe(e){var t;return w.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${w.formatSymbolFlags(e.flags)}. Declarations: ${(t=e.declarations)==null?void 0:t.map(r=>{const i=w.formatSyntaxKind(r.kind),s=lr(r),{expression:o}=r;return(s?"[JS]":"")+i+(o?` (expression: ${w.formatSyntaxKind(o.kind)})`:"")}).join(", ")}.`)}function ife(e,t,r){const i=t.length;if(i+r>e.length)return!1;for(let s=0;sdl(r)&&eg(r))}function wj(e){return!!(JV(e)&65536)}function Dj(e,t){return li(e.imports,i=>{if(dg.nodeCoreModules.has(i.text))return fs(i.text,"node:")})??t.usesUriStyleNodeCoreModules}function kI(e){return e===` +`?1:0}function Vx(e){return Ps(e)?Bh(zs(e[0]),e.slice(1)):zs(e)}function Aj({options:e},t){const r=!e.semicolons||e.semicolons==="ignore",i=e.semicolons==="remove"||r&&!SI(t);return{...e,semicolons:i?"remove":"ignore"}}function jQ(e){return e===2||e===3}function v3(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function Nj(e,t){const r=new Set,i=new Set,s=new Set;for(const u of t)if(!Pw(u)){const f=Eo(u.expression);if(_b(f))switch(f.kind){case 15:case 11:r.add(f.text);break;case 9:i.add(parseInt(f.text));break;case 10:const g=Vae(Jc(f.text,"n")?f.text.slice(0,-1):f.text);g&&s.add(wb(g));break}else{const g=e.getSymbolAtLocation(u.expression);if(g&&g.valueDeclaration&&zb(g.valueDeclaration)){const d=e.getConstantValue(g.valueDeclaration);d!==void 0&&o(d)}}}return{addValue:o,hasValue:c};function o(u){switch(typeof u){case"string":r.add(u);break;case"number":i.add(u)}}function c(u){switch(typeof u){case"string":return r.has(u);case"number":return i.has(u);case"object":return s.has(wb(u))}}}function BQ(e,t,r,i){var s;const o=typeof e=="string"?e:e.fileName;if(!Pb(o))return!1;const c=t.getCompilerOptions(),u=r_(c),f=typeof e=="string"?q7(hc(e,r.getCurrentDirectory(),yy(r)),(s=t.getPackageJsonInfoCache)==null?void 0:s.call(t),r,c):e.impliedNodeFormat;if(f===99)return!1;if(f===1||c.verbatimModuleSyntax&&u===1)return!0;if(c.verbatimModuleSyntax&&j9(u))return!1;if(typeof e=="object"){if(e.commonJsModuleIndicator)return!0;if(e.externalModuleIndicator)return!1}return i}var S_,JQ,z4e,Ij,zQ,UQ,U4e,Oj,VQ,ZGe=K({"src/services/utilities.ts"(){ci(),S_=fy(99,!0),JQ=(e=>(e[e.None=0]="None",e[e.Value=1]="Value",e[e.Type=2]="Type",e[e.Namespace=4]="Namespace",e[e.All=7]="All",e))(JQ||{}),z4e=/^\/\/\/\s*(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(zQ||{}),UQ=WGe(),U4e=` +`,Oj="anonymous function",VQ=Tm(Y_e,M4e,R4e,bj)}});function WQ(e){let t=1;const r=Dp(),i=new Map,s=new Map;let o;const c={isUsableByFile:T=>T===o,isEmpty:()=>!r.size,clear:()=>{r.clear(),i.clear(),o=void 0},add:(T,C,N,D,M,V,G,Z)=>{T!==o&&(c.clear(),o=T);let z;if(M){const fe=tL(M.fileName);if(fe){const{topLevelNodeModulesIndex:ie,topLevelPackageNameIndex:ye,packageRootIndex:Ne}=fe;if(z=D7(zw(M.fileName.substring(ye+1,Ne))),fs(T,M.path.substring(0,ie))){const Ue=s.get(z),Se=M.fileName.substring(0,ye+1);if(Ue){const Ee=Ue.indexOf(th);ie>Ee&&s.set(z,Se)}else s.set(z,Se)}}}const J=V===1&&v4(C)||C,ne=V===0||fI(J)?Hi(N):nfe(J,void 0),ge=typeof ne=="string"?ne:ne[0],ve=typeof ne=="string"?void 0:ne[1],Q=Nd(D.name),X=t++,se=Uu(C,Z),pe=C.flags&33554432?void 0:C,we=D.flags&33554432?void 0:D;(!pe||!we)&&i.set(X,[C,D]),r.add(f(ge,C,yu(Q)?void 0:Q,Z),{id:X,symbolTableKey:N,symbolName:ge,capitalizedSymbolName:ve,moduleName:Q,moduleFile:M,moduleFileName:M==null?void 0:M.fileName,packageName:z,exportKind:V,targetFlags:se.flags,isFromPackageJson:G,symbol:pe,moduleSymbol:we})},get:(T,C)=>{if(T!==o)return;const N=r.get(C);return N==null?void 0:N.map(u)},search:(T,C,N,D)=>{if(T===o)return cu(r,(M,V)=>{const{symbolName:G,ambientModuleName:Z}=g(V),z=C&&M[0].capitalizedSymbolName||G;if(N(z,M[0].targetFlags)){const J=M.map(u).filter((ne,ge)=>x(ne,M[ge].packageName));if(J.length){const ne=D(J,z,!!Z,V);if(ne!==void 0)return ne}}})},releaseSymbols:()=>{i.clear()},onFileChanged:(T,C,N)=>d(T)&&d(C)?!1:o&&o!==C.path||N&&Ej(T)!==Ej(C)||!Ac(T.moduleAugmentations,C.moduleAugmentations)||!y(T,C)?(c.clear(),!0):(o=C.path,!1)};return w.isDebugging&&Object.defineProperty(c,"__cache",{value:r}),c;function u(T){if(T.symbol&&T.moduleSymbol)return T;const{id:C,exportKind:N,targetFlags:D,isFromPackageJson:M,moduleFileName:V}=T,[G,Z]=i.get(C)||Ke;if(G&&Z)return{symbol:G,moduleSymbol:Z,moduleFileName:V,exportKind:N,targetFlags:D,isFromPackageJson:M};const z=(M?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),ce=T.moduleSymbol||Z||w.checkDefined(T.moduleFile?z.getMergedSymbol(T.moduleFile.symbol):z.tryFindAmbientModule(T.moduleName)),J=T.symbol||G||w.checkDefined(N===2?z.resolveExternalModuleSymbol(ce):z.tryGetMemberInModuleExportsAndProperties(Hi(T.symbolTableKey),ce),`Could not find symbol '${T.symbolName}' by key '${T.symbolTableKey}' in module ${ce.name}`);return i.set(C,[J,ce]),{symbol:J,moduleSymbol:ce,moduleFileName:V,exportKind:N,targetFlags:D,isFromPackageJson:M}}function f(T,C,N,D){const M=N||"";return`${T.length} ${Ia(Uu(C,D))} ${T} ${M}`}function g(T){const C=T.indexOf(" "),N=T.indexOf(" ",C+1),D=parseInt(T.substring(0,C),10),M=T.substring(N+1),V=M.substring(0,D),G=M.substring(D+1);return{symbolName:V,ambientModuleName:G===""?void 0:G}}function d(T){return!T.commonJsModuleIndicator&&!T.externalModuleIndicator&&!T.moduleAugmentations&&!T.ambientModuleNames}function y(T,C){if(!Ac(T.ambientModuleNames,C.ambientModuleNames))return!1;let N=-1,D=-1;for(const M of C.ambientModuleNames){const V=G=>yW(G)&&G.name.text===M;if(N=Gs(T.statements,V,N+1),D=Gs(C.statements,V,D+1),T.statements[N]!==C.statements[D])return!1}return!0}function x(T,C){if(!C||!T.moduleFileName)return!0;const N=e.getGlobalTypingsCacheLocation();if(N&&fs(T.moduleFileName,N))return!0;const D=s.get(C);return!D||fs(T.moduleFileName,D)}}function qQ(e,t,r,i,s,o,c){var u;if(t===r)return!1;const f=c==null?void 0:c.get(t.path,r.path,i,{});if((f==null?void 0:f.isBlockedByPackageJsonDependencies)!==void 0)return!f.isBlockedByPackageJsonDependencies;const g=yy(o),d=(u=o.getGlobalTypingsCacheLocation)==null?void 0:u.call(o),y=!!qb.forEachFileNameOfModule(t.fileName,r.fileName,o,!1,x=>{const T=e.getSourceFile(x);return(T===r||!T)&&KGe(t.fileName,x,g,d)});if(s){const x=y&&s.allowsImportingSourceFile(r,o);return c==null||c.setBlockedByPackageJsonDependencies(t.path,r.path,i,{},!x),x}return y}function KGe(e,t,r,i){const s=Yd(t,c=>xl(c)==="node_modules"?c:void 0),o=s&&oi(r(s));return o===void 0||fs(r(e),o)||!!i&&fs(r(i),o)}function HQ(e,t,r,i,s){var o,c;const u=h4(t),f=r.autoImportFileExcludePatterns&&Oi(r.autoImportFileExcludePatterns,d=>{const y=q9(d,"","exclude");return y?k1(y,u):void 0});V4e(e.getTypeChecker(),e.getSourceFiles(),f,t,(d,y)=>s(d,y,e,!1));const g=i&&((o=t.getPackageJsonAutoImportProvider)==null?void 0:o.call(t));if(g){const d=cc(),y=e.getTypeChecker();V4e(g.getTypeChecker(),g.getSourceFiles(),f,t,(x,T)=>{(T&&!e.getSourceFile(T.fileName)||!T&&!y.resolveName(x.name,void 0,1536,!1))&&s(x,T,g,!0)}),(c=t.log)==null||c.call(t,`forEachExternalModuleToImportFrom autoImportProvider: ${cc()-d}`)}}function V4e(e,t,r,i,s){var o,c;const u=(o=i.getSymlinkCache)==null?void 0:o.call(i).getSymlinkedDirectoriesByRealpath(),f=r&&(({fileName:g,path:d})=>{if(r.some(y=>y.test(g)))return!0;if(u!=null&&u.size&&p2(g)){let y=oi(g);return Yd(oi(d),x=>{const T=u.get(ou(x));if(T)return T.some(C=>r.some(N=>N.test(g.replace(y,C))));y=oi(y)})??!1}return!1});for(const g of e.getAmbientModules())!g.name.includes("*")&&!(r&&((c=g.declarations)!=null&&c.every(d=>f(d.getSourceFile()))))&&s(g,void 0);for(const g of t)mp(g)&&!(f!=null&&f(g))&&s(e.getMergedSymbol(g.symbol),g)}function CI(e,t,r,i,s){var o,c,u,f,g;const d=cc();(o=t.getPackageJsonAutoImportProvider)==null||o.call(t);const y=((c=t.getCachedExportInfoMap)==null?void 0:c.call(t))||WQ({getCurrentProgram:()=>r,getPackageJsonAutoImportProvider:()=>{var C;return(C=t.getPackageJsonAutoImportProvider)==null?void 0:C.call(t)},getGlobalTypingsCacheLocation:()=>{var C;return(C=t.getGlobalTypingsCacheLocation)==null?void 0:C.call(t)}});if(y.isUsableByFile(e.path))return(u=t.log)==null||u.call(t,"getExportInfoMap: cache hit"),y;(f=t.log)==null||f.call(t,"getExportInfoMap: cache miss or empty; calculating new results");const x=r.getCompilerOptions();let T=0;try{HQ(r,t,i,!0,(C,N,D,M)=>{++T%100===0&&(s==null||s.throwIfCancellationRequested());const V=new Map,G=D.getTypeChecker(),Z=Fj(C,G,x);Z&&W4e(Z.symbol,G)&&y.add(e.path,Z.symbol,Z.exportKind===1?"default":"export=",C,N,Z.exportKind,M,G),G.forEachExportAndPropertyOfModule(C,(z,ce)=>{z!==(Z==null?void 0:Z.symbol)&&W4e(z,G)&&nm(V,ce)&&y.add(e.path,z,ce,C,N,0,M,G)})})}catch(C){throw y.clear(),C}return(g=t.log)==null||g.call(t,`getExportInfoMap: done in ${cc()-d} ms`),y}function Fj(e,t,r){const i=e$e(e,t);if(!i)return;const{symbol:s,exportKind:o}=i,c=Lj(s,t,r);return c&&{symbol:s,exportKind:o,...c}}function W4e(e,t){return!t.isUndefinedSymbol(e)&&!t.isUnknownSymbol(e)&&!aN(e)&&!Use(e)}function e$e(e,t){const r=t.resolveExternalModuleSymbol(e);if(r!==e)return{symbol:r,exportKind:2};const i=t.tryGetMemberInModuleExports("default",e);if(i)return{symbol:i,exportKind:1}}function Lj(e,t,r){const i=v4(e);if(i)return{resolvedSymbol:i,name:i.name};const s=t$e(e);if(s!==void 0)return{resolvedSymbol:e,name:s};if(e.flags&2097152){const o=t.getImmediateAliasedSymbol(e);if(o&&o.parent)return Lj(o,t,r)}return e.escapedName!=="default"&&e.escapedName!=="export="?{resolvedSymbol:e,name:e.getName()}:{resolvedSymbol:e,name:Pj(e,r.target)}}function t$e(e){return e.declarations&&li(e.declarations,t=>{var r;if(Qc(t))return(r=si(gl(t.expression),Je))==null?void 0:r.text;if(h_(t))return w.assert(t.name.text==="default","Expected the specifier to be a default export"),t.propertyName&&t.propertyName.text})}var GQ,$Q,n$e=K({"src/services/exportInfoMap.ts"(){ci(),GQ=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(GQ||{}),$Q=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e))($Q||{})}});function q4e(){const e=fy(99,!1);function t(i,s,o){return s$e(r(i,s,o),i)}function r(i,s,o){let c=0,u=0;const f=[],{prefix:g,pushTemplate:d}=c$e(s);i=g+i;const y=g.length;d&&f.push(16),e.setText(i);let x=0;const T=[];let C=0;do{c=e.scan(),f4(c)||(N(),u=c);const D=e.getTokenEnd();if(i$e(e.getTokenStart(),D,y,_$e(c),T),D>=i.length){const M=r$e(e,c,pc(f));M!==void 0&&(x=M)}}while(c!==1);function N(){switch(c){case 44:case 69:!X4e[u]&&e.reScanSlashToken()===14&&(c=14);break;case 30:u===80&&C++;break;case 32:C>0&&C--;break;case 133:case 154:case 150:case 136:case 155:C>0&&!o&&(c=80);break;case 16:f.push(c);break;case 19:f.length>0&&f.push(c);break;case 20:if(f.length>0){const D=pc(f);D===16?(c=e.reScanTemplateToken(!1),c===18?f.pop():w.assertEqual(c,17,"Should have been a template middle.")):(w.assertEqual(D,19,"Should have been an open brace"),f.pop())}break;default:if(!pf(c))break;(u===25||pf(u)&&pf(c)&&!o$e(u,c))&&(c=80)}}return{endOfLineState:x,spans:T}}return{getClassificationsForLine:t,getEncodedLexicalClassifications:r}}function r$e(e,t,r){switch(t){case 11:{if(!e.isUnterminated())return;const i=e.getTokenText(),s=i.length-1;let o=0;for(;i.charCodeAt(s-o)===92;)o++;return o&1?i.charCodeAt(0)===34?3:2:void 0}case 3:return e.isUnterminated()?1:void 0;default:if(p1(t)){if(!e.isUnterminated())return;switch(t){case 18:return 5;case 15:return 4;default:return w.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return r===16?6:void 0}}function i$e(e,t,r,i,s){if(i===8)return;e===0&&r>0&&(e+=r);const o=t-e;o>0&&s.push(e-r,o,i)}function s$e(e,t){const r=[],i=e.spans;let s=0;for(let c=0;c=0){const d=u-s;d>0&&r.push({length:d,classification:4})}r.push({length:f,classification:a$e(g)}),s=u+f}const o=t.length-s;return o>0&&r.push({length:o,classification:4}),{entries:r,finalLexState:e.endOfLineState}}function a$e(e){switch(e){case 1:return 3;case 3:return 1;case 4:return 6;case 25:return 7;case 5:return 2;case 6:return 8;case 8:return 4;case 10:return 0;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return 5;default:return}}function o$e(e,t){if(!iQ(e))return!0;switch(t){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}function c$e(e){switch(e){case 3:return{prefix:`"\\ +`};case 2:return{prefix:`'\\ +`};case 1:return{prefix:`/* +`};case 4:return{prefix:"`\n"};case 5:return{prefix:`} +`,pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return w.assertNever(e)}}function l$e(e){switch(e){case 42:case 44:case 45:case 40:case 41:case 48:case 49:case 50:case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:case 35:case 36:case 37:case 38:case 51:case 53:case 52:case 56:case 57:case 75:case 74:case 79:case 71:case 72:case 73:case 65:case 66:case 67:case 69:case 70:case 64:case 28:case 61:case 76:case 77:case 78:return!0;default:return!1}}function u$e(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}function _$e(e){if(pf(e))return 3;if(l$e(e)||u$e(e))return 5;if(e>=19&&e<=79)return 10;switch(e){case 9:return 4;case 10:return 25;case 11:return 6;case 14:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 80:default:return p1(e)?6:2}}function afe(e,t,r,i,s){return $4e(XQ(e,t,r,i,s))}function H4e(e,t){switch(t){case 267:case 263:case 264:case 262:case 231:case 218:case 219:e.throwIfCancellationRequested()}}function XQ(e,t,r,i,s){const o=[];return r.forEachChild(function u(f){if(!(!f||!pF(s,f.pos,f.getFullWidth()))){if(H4e(t,f.kind),Je(f)&&!nl(f)&&i.has(f.escapedText)){const g=e.getSymbolAtLocation(f),d=g&&G4e(g,jx(f),e);d&&c(f.getStart(r),f.getEnd(),d)}f.forEachChild(u)}}),{spans:o,endOfLineState:0};function c(u,f,g){const d=f-u;w.assert(d>0,`Classification had non-positive length of ${d}`),o.push(u),o.push(d),o.push(g)}}function G4e(e,t,r){const i=e.getFlags();if(i&2885600)return i&32?11:i&384?12:i&524288?16:i&1536?t&4||t&1&&f$e(e)?14:void 0:i&2097152?G4e(r.getAliasedSymbol(e),t,r):t&2?i&64?13:i&262144?15:void 0:void 0}function f$e(e){return Pe(e.declarations,t=>dl(t)&&C0(t)===1)}function p$e(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function $4e(e){w.assert(e.spans.length%3===0);const t=e.spans,r=[];for(let i=0;i])*)(\/>)?)?/im,ne=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,ge=t.text.substr(z,ce),ve=J.exec(ge);if(!ve||!ve[3]||!(ve[3]in W8))return!1;let Q=z;y(Q,ve[1].length),Q+=ve[1].length,f(Q,ve[2].length,10),Q+=ve[2].length,f(Q,ve[3].length,21),Q+=ve[3].length;const X=ve[4];let se=Q;for(;;){const we=ne.exec(X);if(!we)break;const fe=Q+we.index+we[1].length;fe>se&&(y(se,fe-se),se=fe),f(se,we[2].length,22),se+=we[2].length,we[3].length&&(y(se,we[3].length),se+=we[3].length),f(se,we[4].length,5),se+=we[4].length,we[5].length&&(y(se,we[5].length),se+=we[5].length),f(se,we[6].length,24),se+=we[6].length}Q+=ve[4].length,Q>se&&y(se,Q-se),ve[5]&&(f(Q,ve[5].length,10),Q+=ve[5].length);const pe=z+ce;return Q=0),ne>0){const ge=ce||G(z.kind,z);ge&&f(J,ne,ge)}return!0}function V(z){switch(z.parent&&z.parent.kind){case 286:if(z.parent.tagName===z)return 19;break;case 287:if(z.parent.tagName===z)return 20;break;case 285:if(z.parent.tagName===z)return 21;break;case 291:if(z.parent.name===z)return 22;break}}function G(z,ce){if(pf(z))return 3;if((z===30||z===32)&&ce&&D_e(ce.parent))return 10;if($W(z)){if(ce){const J=ce.parent;if(z===64&&(J.kind===260||J.kind===172||J.kind===169||J.kind===291)||J.kind===226||J.kind===224||J.kind===225||J.kind===227)return 5}return 10}else{if(z===9)return 4;if(z===10)return 25;if(z===11)return ce&&ce.parent.kind===291?24:6;if(z===14)return 6;if(p1(z))return 6;if(z===12)return 23;if(z===80){if(ce){switch(ce.parent.kind){case 263:return ce.parent.name===ce?11:void 0;case 168:return ce.parent.name===ce?15:void 0;case 264:return ce.parent.name===ce?13:void 0;case 266:return ce.parent.name===ce?12:void 0;case 267:return ce.parent.name===ce?14:void 0;case 169:return ce.parent.name===ce?Cb(ce)?3:17:void 0}if(p0(ce.parent))return 3}return 2}}}function Z(z){if(z&&aA(i,s,z.pos,z.getFullWidth())){H4e(e,z.kind);for(const ce of z.getChildren(t))M(ce)||Z(ce)}}}var X4e,Q4e=K({"src/services/classifier.ts"(){ci(),X4e=bre([80,11,9,10,14,110,46,47,22,24,20,112,97],e=>e,()=>!0)}}),Mj,d$e=K({"src/services/documentHighlights.ts"(){ci(),(e=>{function t(Q,X,se,pe,we){const fe=mf(se,pe);if(fe.parent&&(ug(fe.parent)&&fe.parent.tagName===fe||Rb(fe.parent))){const{openingElement:ie,closingElement:ye}=fe.parent.parent,Ne=[ie,ye].map(({tagName:Ue})=>r(Ue,se));return[{fileName:se.fileName,highlightSpans:Ne}]}return i(pe,fe,Q,X,we)||s(fe,se)}e.getDocumentHighlights=t;function r(Q,X){return{fileName:X.fileName,textSpan:tf(Q,X),kind:"none"}}function i(Q,X,se,pe,we){const fe=new Set(we.map(Ue=>Ue.fileName)),ie=Qo.getReferenceEntriesForNode(Q,X,se,we,pe,void 0,fe);if(!ie)return;const ye=M8(ie.map(Qo.toHighlightSpan),Ue=>Ue.fileName,Ue=>Ue.span),Ne=e_(se.useCaseSensitiveFileNames());return Vs(xi(ye.entries(),([Ue,Se])=>{if(!fe.has(Ue)){if(!se.redirectTargetsMap.has(hc(Ue,se.getCurrentDirectory(),Ne)))return;const Ee=se.getSourceFile(Ue);Ue=Cn(we,Le=>!!Le.redirectInfo&&Le.redirectInfo.redirectTarget===Ee).fileName,w.assert(fe.has(Ue))}return{fileName:Ue,highlightSpans:Se}}))}function s(Q,X){const se=o(Q,X);return se&&[{fileName:X.fileName,highlightSpans:se}]}function o(Q,X){switch(Q.kind){case 101:case 93:return Tx(Q.parent)?ne(Q.parent,X):void 0;case 107:return pe(Q.parent,rm,Z);case 111:return pe(Q.parent,wH,G);case 113:case 85:case 98:const fe=Q.kind===85?Q.parent.parent:Q.parent;return pe(fe,Cx,V);case 109:return pe(Q.parent,kw,M);case 84:case 90:return Pw(Q.parent)||R4(Q.parent)?pe(Q.parent.parent.parent,kw,M):void 0;case 83:case 88:return pe(Q.parent,mP,D);case 99:case 117:case 92:return pe(Q.parent,ie=>m1(ie,!0),N);case 137:return se($c,[137]);case 139:case 153:return se(d1,[139,153]);case 135:return pe(Q.parent,I1,z);case 134:return we(z(Q));case 127:return we(ce(Q));case 103:case 147:return;default:return dy(Q.kind)&&(g_(Q.parent)||Xc(Q.parent))?we(x(Q.kind,Q.parent)):void 0}function se(fe,ie){return pe(Q.parent,fe,ye=>{var Ne;return Oi((Ne=si(ye,Km))==null?void 0:Ne.symbol.declarations,Ue=>fe(Ue)?Cn(Ue.getChildren(X),Se=>Ai(ie,Se.kind)):void 0)})}function pe(fe,ie,ye){return ie(fe)?we(ye(fe,X)):void 0}function we(fe){return fe&&fe.map(ie=>r(ie,X))}}function c(Q){return wH(Q)?[Q]:Cx(Q)?zn(Q.catchClause?c(Q.catchClause):Q.tryBlock&&c(Q.tryBlock),Q.finallyBlock&&c(Q.finallyBlock)):oa(Q)?void 0:g(Q,c)}function u(Q){let X=Q;for(;X.parent;){const se=X.parent;if(hb(se)||se.kind===312)return se;if(Cx(se)&&se.tryBlock===X&&se.catchClause)return X;X=se}}function f(Q){return mP(Q)?[Q]:oa(Q)?void 0:g(Q,f)}function g(Q,X){const se=[];return Q.forEachChild(pe=>{const we=X(pe);we!==void 0&&se.push(...sk(we))}),se}function d(Q,X){const se=y(X);return!!se&&se===Q}function y(Q){return Vn(Q,X=>{switch(X.kind){case 255:if(Q.kind===251)return!1;case 248:case 249:case 250:case 247:case 246:return!Q.label||ve(X,Q.label.escapedText);default:return oa(X)&&"quit"}})}function x(Q,X){return Oi(T(X,Pk(Q)),se=>m3(se,Q))}function T(Q,X){const se=Q.parent;switch(se.kind){case 268:case 312:case 241:case 296:case 297:return X&64&&ql(Q)?[...Q.members,Q]:se.statements;case 176:case 174:case 262:return[...se.parameters,...fi(se.parent)?se.parent.members:[]];case 263:case 231:case 264:case 187:const pe=se.members;if(X&15){const we=Cn(se.members,$c);if(we)return[...pe,...we.parameters]}else if(X&64)return[...pe,se];return pe;case 210:return;default:w.assertNever(se,"Invalid container kind.")}}function C(Q,X,...se){return X&&Ai(se,X.kind)?(Q.push(X),!0):!1}function N(Q){const X=[];if(C(X,Q.getFirstToken(),99,117,92)&&Q.kind===246){const se=Q.getChildren();for(let pe=se.length-1;pe>=0&&!C(X,se[pe],117);pe--);}return dt(f(Q.statement),se=>{d(Q,se)&&C(X,se.getFirstToken(),83,88)}),X}function D(Q){const X=y(Q);if(X)switch(X.kind){case 248:case 249:case 250:case 246:case 247:return N(X);case 255:return M(X)}}function M(Q){const X=[];return C(X,Q.getFirstToken(),109),dt(Q.caseBlock.clauses,se=>{C(X,se.getFirstToken(),84,90),dt(f(se),pe=>{d(Q,pe)&&C(X,pe.getFirstToken(),83)})}),X}function V(Q,X){const se=[];if(C(se,Q.getFirstToken(),113),Q.catchClause&&C(se,Q.catchClause.getFirstToken(),85),Q.finallyBlock){const pe=wo(Q,98,X);C(se,pe,98)}return se}function G(Q,X){const se=u(Q);if(!se)return;const pe=[];return dt(c(se),we=>{pe.push(wo(we,111,X))}),hb(se)&&gb(se,we=>{pe.push(wo(we,107,X))}),pe}function Z(Q,X){const se=hp(Q);if(!se)return;const pe=[];return gb(pa(se.body,na),we=>{pe.push(wo(we,107,X))}),dt(c(se.body),we=>{pe.push(wo(we,111,X))}),pe}function z(Q){const X=hp(Q);if(!X)return;const se=[];return X.modifiers&&X.modifiers.forEach(pe=>{C(se,pe,134)}),Xs(X,pe=>{J(pe,we=>{I1(we)&&C(se,we.getFirstToken(),135)})}),se}function ce(Q){const X=hp(Q);if(!X)return;const se=[];return Xs(X,pe=>{J(pe,we=>{KL(we)&&C(se,we.getFirstToken(),127)})}),se}function J(Q,X){X(Q),!oa(Q)&&!fi(Q)&&!J_(Q)&&!dl(Q)&&!im(Q)&&!Gi(Q)&&Xs(Q,se=>J(se,X))}function ne(Q,X){const se=ge(Q,X),pe=[];for(let we=0;we=fe.end;Ne--)if(!Ym(X.text.charCodeAt(Ne))){ye=!1;break}if(ye){pe.push({fileName:X.fileName,textSpan:Il(fe.getStart(),ie.end),kind:"reference"}),we++;continue}}pe.push(r(se[we],X))}return pe}function ge(Q,X){const se=[];for(;Tx(Q.parent)&&Q.parent.elseStatement===Q;)Q=Q.parent;for(;;){const pe=Q.getChildren(X);C(se,pe[0],101);for(let we=pe.length-1;we>=0&&!C(se,pe[we],93);we--);if(!Q.elseStatement||!Tx(Q.elseStatement))break;Q=Q.elseStatement}return se}function ve(Q,X){return!!Vn(Q.parent,se=>Mb(se)?se.label.escapedText===X:"quit")}})(Mj||(Mj={}))}});function EI(e){return!!e.sourceFile}function cfe(e,t,r){return YQ(e,t,r)}function YQ(e,t="",r,i){const s=new Map,o=e_(!!e);function c(){const D=Vs(s.keys()).filter(M=>M&&M.charAt(0)==="_").map(M=>{const V=s.get(M),G=[];return V.forEach((Z,z)=>{EI(Z)?G.push({name:z,scriptKind:Z.sourceFile.scriptKind,refCount:Z.languageServiceRefCount}):Z.forEach((ce,J)=>G.push({name:z,scriptKind:J,refCount:ce.languageServiceRefCount}))}),G.sort((Z,z)=>z.refCount-Z.refCount),{bucket:M,sourceFiles:G}});return JSON.stringify(D,void 0,2)}function u(D){return typeof D.getCompilationSettings=="function"?D.getCompilationSettings():D}function f(D,M,V,G,Z,z){const ce=hc(D,t,o),J=ZQ(u(M));return g(D,ce,M,J,V,G,Z,z)}function g(D,M,V,G,Z,z,ce,J){return T(D,M,V,G,Z,z,!0,ce,J)}function d(D,M,V,G,Z,z){const ce=hc(D,t,o),J=ZQ(u(M));return y(D,ce,M,J,V,G,Z,z)}function y(D,M,V,G,Z,z,ce,J){return T(D,M,u(V),G,Z,z,!1,ce,J)}function x(D,M){const V=EI(D)?D:D.get(w.checkDefined(M,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return w.assert(M===void 0||!V||V.sourceFile.scriptKind===M,`Script kind should match provided ScriptKind:${M} and sourceFile.scriptKind: ${V==null?void 0:V.sourceFile.scriptKind}, !entry: ${!V}`),V}function T(D,M,V,G,Z,z,ce,J,ne){var ge,ve,Q,X;J=G9(D,J);const se=u(V),pe=V===se?void 0:V,we=J===6?100:go(se),fe=typeof ne=="object"?ne:{languageVersion:we,impliedNodeFormat:pe&&q7(M,(X=(Q=(ve=(ge=pe.getCompilerHost)==null?void 0:ge.call(pe))==null?void 0:ve.getModuleResolutionCache)==null?void 0:Q.call(ve))==null?void 0:X.getPackageJsonInfoCache(),pe,se),setExternalModuleIndicator:yN(se),jsDocParsingMode:r};fe.languageVersion=we,w.assertEqual(r,fe.jsDocParsingMode);const ie=s.size,ye=lfe(G,fe.impliedNodeFormat),Ne=Ks(s,ye,()=>new Map);if(cr){s.size>ie&&cr.instant(cr.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:se.configFilePath,key:ye});const Ae=!Wu(M)&&cu(s,(Le,Tt)=>Tt!==ye&&Le.has(M)&&Tt);Ae&&cr.instant(cr.Phase.Session,"documentRegistryBucketOverlap",{path:M,key1:Ae,key2:ye})}const Ue=Ne.get(M);let Se=Ue&&x(Ue,J);if(!Se&&i){const Ae=i.getDocument(ye,M);Ae&&(w.assert(ce),Se={sourceFile:Ae,languageServiceRefCount:0},Ee())}if(Se)Se.sourceFile.version!==z&&(Se.sourceFile=JY(Se.sourceFile,Z,z,Z.getChangeRange(Se.sourceFile.scriptSnapshot)),i&&i.setDocument(ye,M,Se.sourceFile)),ce&&Se.languageServiceRefCount++;else{const Ae=oB(D,Z,fe,z,!1,J);i&&i.setDocument(ye,M,Ae),Se={sourceFile:Ae,languageServiceRefCount:1},Ee()}return w.assert(Se.languageServiceRefCount!==0),Se.sourceFile;function Ee(){if(!Ue)Ne.set(M,Se);else if(EI(Ue)){const Ae=new Map;Ae.set(Ue.sourceFile.scriptKind,Ue),Ae.set(J,Se),Ne.set(M,Ae)}else Ue.set(J,Se)}}function C(D,M,V,G){const Z=hc(D,t,o),z=ZQ(M);return N(Z,z,V,G)}function N(D,M,V,G){const Z=w.checkDefined(s.get(lfe(M,G))),z=Z.get(D),ce=x(z,V);ce.languageServiceRefCount--,w.assert(ce.languageServiceRefCount>=0),ce.languageServiceRefCount===0&&(EI(z)?Z.delete(D):(z.delete(V),z.size===1&&Z.set(D,Js(z.values(),dc))))}return{acquireDocument:f,acquireDocumentWithKey:g,updateDocument:d,updateDocumentWithKey:y,releaseDocument:C,releaseDocumentWithKey:N,getKeyForCompilationSettings:ZQ,getDocumentRegistryBucketKeyWithMode:lfe,reportStats:c,getBuckets:()=>s}}function ZQ(e){return CG(e,CM)}function lfe(e,t){return t?`${e}|${t}`:e}var m$e=K({"src/services/documentRegistry.ts"(){ci()}});function ufe(e,t,r,i,s,o,c){const u=h4(i),f=e_(u),g=KQ(t,r,f,c),d=KQ(r,t,f,c);return gr.ChangeTracker.with({host:i,formatContext:s,preferences:o},y=>{h$e(e,y,g,t,r,i.getCurrentDirectory(),u),y$e(e,y,g,d,i,f)})}function KQ(e,t,r,i){const s=r(e);return c=>{const u=i&&i.tryGetSourcePosition({fileName:c,pos:0}),f=o(u?u.fileName:c);return u?f===void 0?void 0:g$e(u.fileName,f,c,r):f};function o(c){if(r(c)===s)return t;const u=Aq(c,s,r);return u===void 0?void 0:t+"/"+u}}function g$e(e,t,r,i){const s=Q8(e,t,i);return _fe(oi(r),s)}function h$e(e,t,r,i,s,o,c){const{configFile:u}=e.getCompilerOptions();if(!u)return;const f=oi(u.fileName),g=PP(u);if(!g)return;ffe(g,(T,C)=>{switch(C){case"files":case"include":case"exclude":{if(d(T)||C!=="include"||!B_(T.initializer))return;const D=Oi(T.initializer.elements,V=>Ba(V)?V.text:void 0);if(D.length===0)return;const M=H9(f,[],D,c,o);k1(w.checkDefined(M.includeFilePattern),c).test(i)&&!k1(w.checkDefined(M.includeFilePattern),c).test(s)&&t.insertNodeAfter(u,so(T.initializer.elements),L.createStringLiteral(x(s)));return}case"compilerOptions":ffe(T.initializer,(N,D)=>{const M=aG(D);w.assert((M==null?void 0:M.type)!=="listOrElement"),M&&(M.isFilePath||M.type==="list"&&M.element.isFilePath)?d(N):D==="paths"&&ffe(N.initializer,V=>{if(B_(V.initializer))for(const G of V.initializer.elements)y(G)})});return}});function d(T){const C=B_(T.initializer)?T.initializer.elements:[T.initializer];let N=!1;for(const D of C)N=y(D)||N;return N}function y(T){if(!Ba(T))return!1;const C=_fe(f,T.text),N=r(C);return N!==void 0?(t.replaceRangeWithText(u,Z4e(T,u),x(N)),!0):!1}function x(T){return Qd(f,T,!c)}}function y$e(e,t,r,i,s,o){const c=e.getSourceFiles();for(const u of c){const f=r(u.fileName),g=f??u.fileName,d=oi(g),y=i(u.fileName),x=y||u.fileName,T=oi(x),C=f!==void 0||y!==void 0;S$e(u,t,N=>{if(!pp(N))return;const D=_fe(T,N),M=r(D);return M===void 0?void 0:ob(Qd(d,M,o))},N=>{const D=e.getTypeChecker().getSymbolAtLocation(N);if(D!=null&&D.declarations&&D.declarations.some(V=>n_(V)))return;const M=y!==void 0?Y4e(N,Y4(N.text,x,e.getCompilerOptions(),s),r,c):b$e(D,N,u,e,s,r);return M!==void 0&&(M.updated||C&&pp(N.text))?qb.updateModuleSpecifier(e.getCompilerOptions(),u,g,M.newFileName,Jx(e,s),N.text):void 0})}}function v$e(e,t){return ka(Zr(e,t))}function _fe(e,t){return ob(v$e(e,t))}function b$e(e,t,r,i,s,o){if(e){const c=Cn(e.declarations,es).fileName,u=o(c);return u===void 0?{newFileName:c,updated:!1}:{newFileName:u,updated:!0}}else{const c=i.getModeForUsageLocation(r,t),u=s.resolveModuleNameLiterals||!s.resolveModuleNames?i.getResolvedModuleFromModuleSpecifier(t):s.getResolvedModuleWithFailedLookupLocationsFromCache&&s.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,r.fileName,c);return Y4e(t,u,o,i.getSourceFiles())}}function Y4e(e,t,r,i){if(!t)return;if(t.resolvedModule){const f=u(t.resolvedModule.resolvedFileName);if(f)return f}const s=dt(t.failedLookupLocations,o)||pp(e.text)&&dt(t.failedLookupLocations,c);if(s)return s;return t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1};function o(f){const g=r(f);return g&&Cn(i,d=>d.fileName===g)?c(f):void 0}function c(f){return Jc(f,"/package.json")?void 0:u(f)}function u(f){const g=r(f);return g&&{newFileName:g,updated:!0}}}function S$e(e,t,r,i){for(const s of e.referencedFiles||Ke){const o=r(s.fileName);o!==void 0&&o!==e.text.slice(s.pos,s.end)&&t.replaceRangeWithText(e,s,o)}for(const s of e.imports){const o=i(s);o!==void 0&&o!==s.text&&t.replaceRangeWithText(e,Z4e(s,e),o)}}function Z4e(e,t){return ed(e.getStart(t)+1,e.end-1)}function ffe(e,t){if(Va(e))for(const r of e.properties)Ml(r)&&Ba(r.name)&&t(r,r.name.text)}var x$e=K({"src/services/getEditsForFileRename.ts"(){ci()}});function yD(e,t){return{kind:e,isCaseSensitive:t}}function pfe(e){const t=new Map,r=e.trim().split(".").map(i=>E$e(i.trim()));if(r.length===1&&r[0].totalTextChunk.text==="")return{getMatchForLastSegmentOfPattern:()=>yD(2,!0),getFullMatch:()=>yD(2,!0),patternContainsDots:!1};if(!r.some(i=>!i.subWordTextChunks.length))return{getFullMatch:(i,s)=>T$e(i,s,r,t),getMatchForLastSegmentOfPattern:i=>dfe(i,so(r),t),patternContainsDots:r.length>1}}function T$e(e,t,r,i){if(!dfe(t,so(r),i)||r.length-1>e.length)return;let o;for(let c=r.length-2,u=e.length-1;c>=0;c-=1,u-=1)o=t3e(o,dfe(e[u],r[c],i));return o}function K4e(e,t){let r=t.get(e);return r||t.set(e,r=bfe(e)),r}function e3e(e,t,r){const i=P$e(e,t.textLowerCase);if(i===0)return yD(t.text.length===e.length?0:1,fs(e,t.text));if(t.isLowerCase){if(i===-1)return;const s=K4e(e,r);for(const o of s)if(mfe(e,o,t.text,!0))return yD(2,mfe(e,o,t.text,!1));if(t.text.length0)return yD(2,!0);if(t.characterSpans.length>0){const s=K4e(e,r),o=n3e(e,s,t,!1)?!0:n3e(e,s,t,!0)?!1:void 0;if(o!==void 0)return yD(3,o)}}}function dfe(e,t,r){if(eY(t.totalTextChunk.text,o=>o!==32&&o!==42)){const o=e3e(e,t.totalTextChunk,r);if(o)return o}const i=t.subWordTextChunks;let s;for(const o of i)s=t3e(s,e3e(e,o,r));return s}function t3e(e,t){return pU([e,t],k$e)}function k$e(e,t){return e===void 0?1:t===void 0?-1:mc(e.kind,t.kind)||s1(!e.isCaseSensitive,!t.isCaseSensitive)}function mfe(e,t,r,i,s={start:0,length:r.length}){return s.length<=t.length&&a3e(0,s.length,o=>C$e(r.charCodeAt(s.start+o),e.charCodeAt(t.start+o),i))}function C$e(e,t,r){return r?gfe(e)===gfe(t):e===t}function n3e(e,t,r,i){const s=r.characterSpans;let o=0,c=0;for(;;){if(c===s.length)return!0;if(o===t.length)return!1;let u=t[o],f=!1;for(;c=65&&e<=90)return!0;if(e<127||!cF(e,99))return!1;const t=String.fromCharCode(e);return t===t.toUpperCase()}function r3e(e){if(e>=97&&e<=122)return!0;if(e<127||!cF(e,99))return!1;const t=String.fromCharCode(e);return t===t.toLowerCase()}function P$e(e,t){const r=e.length-t.length;for(let i=0;i<=r;i++)if(eY(t,(s,o)=>gfe(e.charCodeAt(o+i))===s))return i;return-1}function gfe(e){return e>=65&&e<=90?97+(e-65):e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function hfe(e){return e>=48&&e<=57}function w$e(e){return b3(e)||r3e(e)||hfe(e)||e===95||e===36}function D$e(e){const t=[];let r=0,i=0;for(let s=0;s0&&(t.push(yfe(e.substr(r,i))),i=0)}return i>0&&t.push(yfe(e.substr(r,i))),t}function yfe(e){const t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:vfe(e)}}function vfe(e){return i3e(e,!1)}function bfe(e){return i3e(e,!0)}function i3e(e,t){const r=[];let i=0;for(let s=1;sSfe(i)&&i!==95,t,r)}function A$e(e,t,r){return t!==r&&t+1t(e.charCodeAt(s),s))}var Rj,I$e=K({"src/services/patternMatcher.ts"(){ci(),Rj=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(Rj||{})}});function o3e(e,t=!0,r=!1){const i={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},s=[];let o,c,u,f=0,g=!1;function d(){return c=u,u=S_.scan(),u===19?f++:u===20&&f--,u}function y(){const z=S_.getTokenValue(),ce=S_.getTokenStart();return{fileName:z,pos:ce,end:ce+z.length}}function x(){o||(o=[]),o.push({ref:y(),depth:f})}function T(){s.push(y()),C()}function C(){f===0&&(g=!0)}function N(){let z=S_.getToken();return z===138?(z=d(),z===144&&(z=d(),z===11&&x()),!0):!1}function D(){if(c===25)return!1;let z=S_.getToken();if(z===102){if(z=d(),z===21){if(z=d(),z===11||z===15)return T(),!0}else{if(z===11)return T(),!0;if(z===156&&S_.lookAhead(()=>{const J=S_.scan();return J!==161&&(J===42||J===19||J===80||pf(J))})&&(z=d()),z===80||pf(z))if(z=d(),z===161){if(z=d(),z===11)return T(),!0}else if(z===64){if(V(!0))return!0}else if(z===28)z=d();else return!0;if(z===19){for(z=d();z!==20&&z!==1;)z=d();z===20&&(z=d(),z===161&&(z=d(),z===11&&T()))}else z===42&&(z=d(),z===130&&(z=d(),(z===80||pf(z))&&(z=d(),z===161&&(z=d(),z===11&&T()))))}return!0}return!1}function M(){let z=S_.getToken();if(z===95){if(C(),z=d(),z===156&&S_.lookAhead(()=>{const J=S_.scan();return J===42||J===19})&&(z=d()),z===19){for(z=d();z!==20&&z!==1;)z=d();z===20&&(z=d(),z===161&&(z=d(),z===11&&T()))}else if(z===42)z=d(),z===161&&(z=d(),z===11&&T());else if(z===102&&(z=d(),z===156&&S_.lookAhead(()=>{const J=S_.scan();return J===80||pf(J)})&&(z=d()),(z===80||pf(z))&&(z=d(),z===64&&V(!0))))return!0;return!0}return!1}function V(z,ce=!1){let J=z?d():S_.getToken();return J===149?(J=d(),J===21&&(J=d(),(J===11||ce&&J===15)&&T()),!0):!1}function G(){let z=S_.getToken();if(z===80&&S_.getTokenValue()==="define"){if(z=d(),z!==21)return!0;if(z=d(),z===11||z===15)if(z=d(),z===28)z=d();else return!0;if(z!==23)return!0;for(z=d();z!==24&&z!==1;)(z===11||z===15)&&T(),z=d();return!0}return!1}function Z(){for(S_.setText(e),d();S_.getToken()!==1;){if(S_.getToken()===16){const z=[S_.getToken()];e:for(;Xe(z);){const ce=S_.scan();switch(ce){case 1:break e;case 102:D();break;case 16:z.push(ce);break;case 19:Xe(z)&&z.push(ce);break;case 20:Xe(z)&&(pc(z)===16?S_.reScanTemplateToken(!1)===18&&z.pop():z.pop());break}}d()}N()||D()||M()||r&&(V(!1,!0)||G())||d()}S_.setText(void 0)}if(t&&Z(),eG(i,e),tG(i,ao),g){if(o)for(const z of o)s.push(z.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:s,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:void 0}}else{let z;if(o)for(const ce of o)ce.depth===0?(z||(z=[]),z.push(ce.ref.fileName)):s.push(ce.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:s,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:z}}}var O$e=K({"src/services/preProcess.ts"(){ci()}});function xfe(e){const t=e_(e.useCaseSensitiveFileNames()),r=e.getCurrentDirectory(),i=new Map,s=new Map;return{tryGetSourcePosition:u,tryGetGeneratedPosition:f,toLineColumnOffset:x,clearCache:T};function o(C){return hc(C,r,t)}function c(C,N){const D=o(C),M=s.get(D);if(M)return M;let V;if(e.getDocumentPositionMapper)V=e.getDocumentPositionMapper(C,N);else if(e.readFile){const G=y(C);V=G&&tY({getSourceFileLike:y,getCanonicalFileName:t,log:Z=>e.log(Z)},C,$G(G.text,_0(G)),Z=>!e.fileExists||e.fileExists(Z)?e.readFile(Z):void 0)}return s.set(D,V||YM),V||YM}function u(C){if(!Wu(C.fileName)||!g(C.fileName))return;const D=c(C.fileName).getSourcePosition(C);return!D||D===C?void 0:u(D)||D}function f(C){if(Wu(C.fileName))return;const N=g(C.fileName);if(!N)return;const D=e.getProgram();if(D.isSourceOfProjectReferenceRedirect(N.fileName))return;const M=D.getCompilerOptions(),V=Vo(M),G=V?Y_(V)+".d.ts":v9(C.fileName,D.getCompilerOptions(),r,D.getCommonSourceDirectory(),t);if(G===void 0)return;const Z=c(G,C.fileName).getGeneratedPosition(C);return Z===C?void 0:Z}function g(C){const N=e.getProgram();if(!N)return;const D=o(C),M=N.getSourceFileByPath(D);return M&&M.resolvedPath===D?M:void 0}function d(C){const N=o(C),D=i.get(N);if(D!==void 0)return D||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(C)){i.set(N,!1);return}const M=e.readFile(C),V=M?F$e(M):!1;return i.set(N,V),V||void 0}function y(C){return e.getSourceFileLike?e.getSourceFileLike(C):g(C)||d(C)}function x(C,N){return y(C).getLineAndCharacterOfPosition(N)}function T(){i.clear(),s.clear()}}function tY(e,t,r,i){let s=dle(r);if(s){const u=l3e.exec(s);if(u){if(u[1]){const f=u[1];return c3e(e,dae(Bu,f),t)}s=void 0}}const o=[];s&&o.push(s),o.push(t+".map");const c=s&&Ss(s,oi(t));for(const u of o){const f=Ss(u,oi(t)),g=i(f,c);if(Ls(g))return c3e(e,g,f);if(g!==void 0)return g||void 0}}function c3e(e,t,r){const i=XG(t);if(!(!i||!i.sources||!i.file||!i.mappings)&&!(i.sourcesContent&&i.sourcesContent.some(Ls)))return hle(e,i,r)}function F$e(e,t){return{text:e,lineMap:t,getLineAndCharacterOfPosition(r){return L6(_0(this),r)}}}var l3e,L$e=K({"src/services/sourcemaps.ts"(){ci(),l3e=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+/=]+)$)?/}});function nY(e,t,r){var i;t.getSemanticDiagnostics(e,r);const s=[],o=t.getTypeChecker();!(e.impliedNodeFormat===1||Vl(e.fileName,[".cts",".cjs"]))&&e.commonJsModuleIndicator&&(F_e(t)||_Q(t.getCompilerOptions()))&&M$e(e)&&s.push(Rr(J$e(e.commonJsModuleIndicator),p.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));const u=L_(e);if(aY.clear(),f(e),hx(t.getCompilerOptions()))for(const g of e.imports){const d=NP(g),y=R$e(d);if(!y)continue;const x=(i=t.getResolvedModuleFromModuleSpecifier(g))==null?void 0:i.resolvedModule,T=x&&t.getSourceFile(x.resolvedFileName);T&&T.externalModuleIndicator&&T.externalModuleIndicator!==!0&&Qc(T.externalModuleIndicator)&&T.externalModuleIndicator.isExportEquals&&s.push(Rr(y,p.Import_may_be_converted_to_a_default_import))}return Mr(s,e.bindSuggestionDiagnostics),Mr(s,t.getSuggestionDiagnostics(e,r)),s.sort((g,d)=>g.start-d.start);function f(g){if(u)U$e(g,o)&&s.push(Rr(Ji(g.parent)?g.parent.name:g,p.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(Xc(g)&&g.parent===e&&g.declarationList.flags&2&&g.declarationList.declarations.length===1){const y=g.declarationList.declarations[0].initializer;y&&Q_(y,!0)&&s.push(Rr(y,p.require_call_may_be_converted_to_an_import))}const d=a_.getJSDocTypedefNodes(g);for(const y of d)s.push(Rr(y,p.JSDoc_typedef_may_be_converted_to_TypeScript_type));a_.parameterShouldGetTypeFromJSDoc(g)&&s.push(Rr(g.name||g,p.JSDoc_types_may_be_moved_to_TypeScript_types))}sY(g)&&j$e(g,o,s),g.forEachChild(f)}}function M$e(e){return e.statements.some(t=>{switch(t.kind){case 243:return t.declarationList.declarations.some(r=>!!r.initializer&&Q_(u3e(r.initializer),!0));case 244:{const{expression:r}=t;if(!mr(r))return Q_(r,!0);const i=rl(r);return i===1||i===2}default:return!1}})}function u3e(e){return Jr(e)?u3e(e.expression):e}function R$e(e){switch(e.kind){case 272:const{importClause:t,moduleSpecifier:r}=e;return t&&!t.name&&t.namedBindings&&t.namedBindings.kind===274&&Ba(r)?t.namedBindings.name:void 0;case 271:return e.name;default:return}}function j$e(e,t,r){B$e(e,t)&&!aY.has(d3e(e))&&r.push(Rr(!e.name&&Ji(e.parent)&&Je(e.parent.name)?e.parent.name:e,p.This_may_be_converted_to_an_async_function))}function B$e(e,t){return!LP(e)&&e.body&&na(e.body)&&z$e(e.body,t)&&rY(e,t)}function rY(e,t){const r=t.getSignatureFromDeclaration(e),i=r?t.getReturnTypeOfSignature(r):void 0;return!!i&&!!t.getPromisedTypeOfPromise(i)}function J$e(e){return mr(e)?e.left:e}function z$e(e,t){return!!gb(e,r=>jj(r,t))}function jj(e,t){return rm(e)&&!!e.expression&&iY(e.expression,t)}function iY(e,t){if(!_3e(e)||!f3e(e)||!e.arguments.every(i=>p3e(i,t)))return!1;let r=e.expression.expression;for(;_3e(r)||Jr(r);)if(ma(r)){if(!f3e(r)||!r.arguments.every(i=>p3e(i,t)))return!1;r=r.expression.expression}else r=r.expression;return!0}function _3e(e){return ma(e)&&(rI(e,"then")||rI(e,"catch")||rI(e,"finally"))}function f3e(e){const t=e.expression.name.text,r=t==="then"?2:t==="catch"||t==="finally"?1:0;return e.arguments.length>r?!1:e.arguments.lengthi.kind===106||Je(i)&&i.text==="undefined")}function p3e(e,t){switch(e.kind){case 262:case 218:if(lu(e)&1)return!1;case 219:aY.set(d3e(e),!0);case 106:return!0;case 80:case 211:{const i=t.getSymbolAtLocation(e);return i?t.isUndefinedSymbol(i)||Pe(Uu(i,t).declarations,s=>oa(s)||h1(s)&&!!s.initializer&&oa(s.initializer)):!1}default:return!1}}function d3e(e){return`${e.pos.toString()}:${e.end.toString()}`}function U$e(e,t){var r,i,s,o;if(Xo(e)){if(Ji(e.parent)&&((r=e.symbol.members)!=null&&r.size))return!0;const c=t.getSymbolOfExpando(e,!1);return!!(c&&((i=c.exports)!=null&&i.size||(s=c.members)!=null&&s.size))}return Wl(e)?!!((o=e.symbol.members)!=null&&o.size):!1}function sY(e){switch(e.kind){case 262:case 174:case 218:case 219:return!0;default:return!1}}var aY,V$e=K({"src/services/suggestionDiagnostics.ts"(){ci(),aY=new Map}});function Tfe(e,t){const r=[],i=t.compilerOptions?oY(t.compilerOptions,r):{},s=aB();for(const x in s)jo(s,x)&&i[x]===void 0&&(i[x]=s[x]);for(const x of bG)i.verbatimModuleSyntax&&g3e.has(x.name)||(i[x.name]=x.transpileOptionValue);i.suppressOutputPathCheck=!0,i.allowNonTsExtensions=!0;const o=Sy(i),c={getSourceFile:x=>x===ka(u)?f:void 0,writeFile:(x,T)=>{zc(x,".map")?(w.assertEqual(d,void 0,"Unexpected multiple source map outputs, file:",x),d=T):(w.assertEqual(g,void 0,"Unexpected multiple outputs, file:",x),g=T)},getDefaultLibFileName:()=>"lib.d.ts",useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:x=>x,getCurrentDirectory:()=>"",getNewLine:()=>o,fileExists:x=>x===u,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},u=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),f=l7(u,e,{languageVersion:go(i),impliedNodeFormat:q7(hc(u,"",c.getCanonicalFileName),void 0,c,i),setExternalModuleIndicator:yN(i),jsDocParsingMode:t.jsDocParsingMode??0});t.moduleName&&(f.moduleName=t.moduleName),t.renamedDependencies&&(f.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));let g,d;const y=vR([u],i,c);return t.reportDiagnostics&&(Mr(r,y.getSyntacticDiagnostics(f)),Mr(r,y.getOptionsDiagnostics())),y.emit(void 0,void 0,void 0,void 0,t.transformers),g===void 0?w.fail("Output generation failed"):{outputText:g,diagnostics:r,sourceMapText:d}}function m3e(e,t,r,i,s){const o=Tfe(e,{compilerOptions:t,fileName:r,reportDiagnostics:!!i,moduleName:s});return Mr(i,o.diagnostics),o.outputText}function oY(e,t){kfe=kfe||vr(Vh,r=>typeof r.type=="object"&&!cu(r.type,i=>typeof i!="number")),e=sQ(e);for(const r of kfe){if(!jo(e,r.name))continue;const i=e[r.name];Ls(i)?e[r.name]=yM(r,i,t):cu(r.type,s=>s===i)||t.push(mce(r))}return e}var g3e,kfe,W$e=K({"src/services/transpile.ts"(){ci(),g3e=new Set(["isolatedModules","preserveValueImports","importsNotUsedAsValues"])}});function h3e(e,t,r,i,s,o,c){const u=pfe(i);if(!u)return Ke;const f=[],g=e.length===1?e[0]:void 0;for(const d of e)r.throwIfCancellationRequested(),!(o&&d.isDeclarationFile)&&(y3e(d,!!c,g)||d.getNamedDeclarations().forEach((y,x)=>{q$e(u,x,y,t,d.fileName,!!c,g,f)}));return f.sort(X$e),(s===void 0?f:f.slice(0,s)).map(Q$e)}function y3e(e,t,r){return e!==r&&t&&(TI(e.path)||e.hasNoDefaultLib)}function q$e(e,t,r,i,s,o,c,u){const f=e.getMatchForLastSegmentOfPattern(t);if(f){for(const g of r)if(H$e(g,i,o,c))if(e.patternContainsDots){const d=e.getFullMatch($$e(g),t);d&&u.push({name:t,fileName:s,matchKind:d.kind,isCaseSensitive:d.isCaseSensitive,declaration:g})}else u.push({name:t,fileName:s,matchKind:f.kind,isCaseSensitive:f.isCaseSensitive,declaration:g})}}function H$e(e,t,r,i){var s;switch(e.kind){case 273:case 276:case 271:const o=t.getSymbolAtLocation(e.name),c=t.getAliasedSymbol(o);return o.escapedName!==c.escapedName&&!((s=c.declarations)!=null&&s.every(u=>y3e(u.getSourceFile(),r,i)));default:return!0}}function G$e(e,t){const r=Ms(e);return!!r&&(v3e(r,t)||r.kind===167&&Cfe(r.expression,t))}function Cfe(e,t){return v3e(e,t)||Jr(e)&&(t.push(e.name.text),!0)&&Cfe(e.expression,t)}function v3e(e,t){return ng(e)&&(t.push(Ad(e)),!0)}function $$e(e){const t=[],r=Ms(e);if(r&&r.kind===167&&!Cfe(r.expression,t))return Ke;t.shift();let i=Bx(e);for(;i;){if(!G$e(i,t))return Ke;i=Bx(i)}return t.reverse()}function X$e(e,t){return mc(e.matchKind,t.matchKind)||j8(e.name,t.name)}function Q$e(e){const t=e.declaration,r=Bx(t),i=r&&Ms(r);return{name:e.name,kind:Qb(t),kindModifiers:cD(t),matchKind:Rj[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:tf(t),containerName:i?i.text:"",containerKind:i?Qb(r):""}}var Y$e=K({"src/services/navigateTo.ts"(){ci()}}),Efe={};Ye(Efe,{getNavigateToItems:()=>h3e});var b3e=K({"src/services/_namespaces/ts.NavigateTo.ts"(){Y$e()}});function S3e(e,t){_Y=t,PI=e;try{return Kt(nXe(C3e(e)),rXe)}finally{T3e()}}function x3e(e,t){_Y=t,PI=e;try{return F3e(C3e(e))}finally{T3e()}}function T3e(){PI=void 0,_Y=void 0,wI=[],Oy=void 0,fY=[]}function Bj(e){return vD(e.getText(PI))}function cY(e){return e.node.kind}function k3e(e,t){e.children?e.children.push(t):e.children=[t]}function C3e(e){w.assert(!wI.length);const t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};Oy=t;for(const r of e.statements)hC(r);return h2(),w.assert(!Oy&&!wI.length),t}function Kb(e,t){k3e(Oy,Pfe(e,t))}function Pfe(e,t){return{node:e,name:t||(g_(e)||vt(e)?Ms(e):void 0),additionalNodes:void 0,parent:Oy,children:void 0,indent:Oy.indent+1}}function E3e(e){S3||(S3=new Map),S3.set(e,!0)}function P3e(e){for(let t=0;t0;i--){const s=r[i];eS(e,s)}return[r.length-1,r[0]]}function eS(e,t){const r=Pfe(e,t);k3e(Oy,r),wI.push(Oy),Lfe.push(S3),S3=void 0,Oy=r}function h2(){Oy.children&&(lY(Oy.children,Oy),Afe(Oy.children)),Oy=wI.pop(),S3=Lfe.pop()}function y2(e,t,r){eS(e,r),hC(t),h2()}function D3e(e){e.initializer&&sXe(e.initializer)?(eS(e),Xs(e.initializer,hC),h2()):y2(e,e.initializer)}function wfe(e){const t=Ms(e);if(t===void 0)return!1;if(co(t)){const r=t.expression;return il(r)||Hf(r)||Ip(r)}return!!t}function hC(e){if(_Y.throwIfCancellationRequested(),!(!e||fk(e)))switch(e.kind){case 176:const t=e;y2(t,t.body);for(const c of t.parameters)Uf(c,t)&&Kb(c);break;case 174:case 177:case 178:case 173:wfe(e)&&y2(e,e.body);break;case 172:wfe(e)&&D3e(e);break;case 171:wfe(e)&&Kb(e);break;case 273:const r=e;r.name&&Kb(r.name);const{namedBindings:i}=r;if(i)if(i.kind===274)Kb(i);else for(const c of i.elements)Kb(c);break;case 304:y2(e,e.name);break;case 305:const{expression:s}=e;Je(s)?Kb(e,s):Kb(e);break;case 208:case 303:case 260:{const c=e;ca(c.name)?hC(c.name):D3e(c);break}case 262:const o=e.name;o&&Je(o)&&E3e(o.text),y2(e,e.body);break;case 219:case 218:y2(e,e.body);break;case 266:eS(e);for(const c of e.members)iXe(c)||Kb(c);h2();break;case 263:case 231:case 264:eS(e);for(const c of e.members)hC(c);h2();break;case 267:y2(e,M3e(e).body);break;case 277:{const c=e.expression,u=Va(c)||ma(c)?c:ec(c)||Xo(c)?c.body:void 0;u?(eS(e),hC(u),h2()):Kb(e);break}case 281:case 271:case 181:case 179:case 180:case 265:Kb(e);break;case 213:case 226:{const c=rl(e);switch(c){case 1:case 2:y2(e,e.right);return;case 6:case 3:{const u=e,f=u.left,g=c===3?f.expression:f;let d=0,y;Je(g.expression)?(E3e(g.expression.text),y=g.expression):[d,y]=w3e(u,g.expression),c===6?Va(u.right)&&u.right.properties.length>0&&(eS(u,y),Xs(u.right,hC),h2()):Xo(u.right)||ec(u.right)?y2(e,u.right,y):(eS(u,y),y2(e,u.right,f.name),h2()),P3e(d);return}case 7:case 9:{const u=e,f=c===7?u.arguments[0]:u.arguments[0].expression,g=u.arguments[1],[d,y]=w3e(e,f);eS(e,y),eS(e,ut(L.createIdentifier(g.text),g)),hC(e.arguments[2]),h2(),h2(),P3e(d);return}case 5:{const u=e,f=u.left,g=f.expression;if(Je(g)&&g0(f)!=="prototype"&&S3&&S3.has(g.text)){Xo(u.right)||ec(u.right)?y2(e,u.right,g):vb(f)&&(eS(u,g),y2(u.left,u.right,qA(f)),h2());return}break}case 4:case 0:case 8:break;default:w.assertNever(c)}}default:dp(e)&&dt(e.jsDoc,c=>{dt(c.tags,u=>{Dd(u)&&Kb(u)})}),Xs(e,hC)}}function lY(e,t){const r=new Map;Ch(e,(i,s)=>{const o=i.name||Ms(i.node),c=o&&Bj(o);if(!c)return!0;const u=r.get(c);if(!u)return r.set(c,i),!0;if(u instanceof Array){for(const f of u)if(A3e(f,i,s,t))return!1;return u.push(i),!0}else{const f=u;return A3e(f,i,s,t)?!1:(r.set(c,[f,i]),!0)}})}function Z$e(e,t,r,i){function s(u){return Xo(u)||Wl(u)||Ji(u)}const o=mr(t.node)||ma(t.node)?rl(t.node):0,c=mr(e.node)||ma(e.node)?rl(e.node):0;if(bD[o]&&bD[c]||s(e.node)&&bD[o]||s(t.node)&&bD[c]||ql(e.node)&&Dfe(e.node)&&bD[o]||ql(t.node)&&bD[c]||ql(e.node)&&Dfe(e.node)&&s(t.node)||ql(t.node)&&s(e.node)&&Dfe(e.node)){let u=e.additionalNodes&&pc(e.additionalNodes)||e.node;if(!ql(e.node)&&!ql(t.node)||s(e.node)||s(t.node)){const g=s(e.node)?e.node:s(t.node)?t.node:void 0;if(g!==void 0){const d=ut(L.createConstructorDeclaration(void 0,[],void 0),g),y=Pfe(d);y.indent=e.indent+1,y.children=e.node===g?e.children:t.children,e.children=e.node===g?zn([y],t.children||[t]):zn(e.children||[{...e}],[y])}else(e.children||t.children)&&(e.children=zn(e.children||[{...e}],t.children||[t]),e.children&&(lY(e.children,e),Afe(e.children)));u=e.node=ut(L.createClassDeclaration(void 0,e.name||L.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=zn(e.children,t.children),e.children&&lY(e.children,e);const f=t.node;return i.children[r-1].node.end===u.end?ut(u,{pos:u.pos,end:f.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(ut(L.createClassDeclaration(void 0,e.name||L.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return o!==0}function A3e(e,t,r,i){return Z$e(e,t,r,i)?!0:K$e(e.node,t.node,i)?(eXe(e,t),!0):!1}function K$e(e,t,r){if(e.kind!==t.kind||e.parent!==t.parent&&!(N3e(e,r)&&N3e(t,r)))return!1;switch(e.kind){case 172:case 174:case 177:case 178:return da(e)===da(t);case 267:return I3e(e,t)&&Ofe(e)===Ofe(t);default:return!0}}function Dfe(e){return!!(e.flags&16)}function N3e(e,t){const r=lg(e.parent)?e.parent.parent:e.parent;return r===t.node||Ai(t.additionalNodes,r)}function I3e(e,t){return!e.body||!t.body?e.body===t.body:e.body.kind===t.body.kind&&(e.body.kind!==267||I3e(e.body,t.body))}function eXe(e,t){e.additionalNodes=e.additionalNodes||[],e.additionalNodes.push(t.node),t.additionalNodes&&e.additionalNodes.push(...t.additionalNodes),e.children=zn(e.children,t.children),e.children&&(lY(e.children,e),Afe(e.children))}function Afe(e){e.sort(tXe)}function tXe(e,t){return j8(O3e(e.node),O3e(t.node))||mc(cY(e),cY(t))}function O3e(e){if(e.kind===267)return L3e(e);const t=Ms(e);if(t&&Tl(t)){const r=ux(t);return r&&Hi(r)}switch(e.kind){case 218:case 219:case 231:return j3e(e);default:return}}function Nfe(e,t){if(e.kind===267)return vD(L3e(e));if(t){const r=Je(t)?t.text:uc(t)?`[${Bj(t.argumentExpression)}]`:Bj(t);if(r.length>0)return vD(r)}switch(e.kind){case 312:const r=e;return Cl(r)?`"${Mh(xl(Y_(ka(r.fileName))))}"`:"";case 277:return Qc(e)&&e.isExportEquals?"export=":"default";case 219:case 262:case 218:case 263:case 231:return x1(e)&2048?"default":j3e(e);case 176:return"constructor";case 180:return"new()";case 179:return"()";case 181:return"[]";default:return""}}function nXe(e){const t=[];function r(s){if(i(s)&&(t.push(s),s.children))for(const o of s.children)r(o)}return r(e),t;function i(s){if(s.children)return!0;switch(cY(s)){case 263:case 231:case 266:case 264:case 267:case 312:case 265:case 353:case 345:return!0;case 219:case 262:case 218:return o(s);default:return!1}function o(c){if(!c.node.body)return!1;switch(cY(c.parent)){case 268:case 312:case 174:case 176:return!0;default:return!1}}}}function F3e(e){return{text:Nfe(e.node,e.name),kind:Qb(e.node),kindModifiers:R3e(e.node),spans:Ife(e),nameSpan:e.name&&Ffe(e.name),childItems:Kt(e.children,F3e)}}function rXe(e){return{text:Nfe(e.node,e.name),kind:Qb(e.node),kindModifiers:R3e(e.node),spans:Ife(e),childItems:Kt(e.children,t)||fY,indent:e.indent,bolded:!1,grayed:!1};function t(r){return{text:Nfe(r.node,r.name),kind:Qb(r.node),kindModifiers:cD(r.node),spans:Ife(r),childItems:fY,indent:0,bolded:!1,grayed:!1}}}function Ife(e){const t=[Ffe(e.node)];if(e.additionalNodes)for(const r of e.additionalNodes)t.push(Ffe(r));return t}function L3e(e){return n_(e)?Ol(e.name):Ofe(e)}function Ofe(e){const t=[Ad(e.name)];for(;e.body&&e.body.kind===267;)e=e.body,t.push(Ad(e.name));return t.join(".")}function M3e(e){return e.body&&dl(e.body)?M3e(e.body):e}function iXe(e){return!e.name||e.name.kind===167}function Ffe(e){return e.kind===312?B1(e):tf(e,PI)}function R3e(e){return e.parent&&e.parent.kind===260&&(e=e.parent),cD(e)}function j3e(e){const{parent:t}=e;if(e.name&&kA(e.name)>0)return vD(Bo(e.name));if(Ji(t))return vD(Bo(t.name));if(mr(t)&&t.operatorToken.kind===64)return Bj(t.left).replace(J3e,"");if(Ml(t))return Bj(t.name);if(x1(e)&2048)return"default";if(fi(e))return"";if(ma(t)){let r=B3e(t.expression);if(r!==void 0){if(r=vD(r),r.length>uY)return`${r} callback`;const i=vD(Oi(t.arguments,s=>vo(s)||gk(s)?s.getText(PI):void 0).join(", "));return`${r}(${i}) callback`}}return""}function B3e(e){if(Je(e))return e.text;if(Jr(e)){const t=B3e(e.expression),r=e.name.text;return t===void 0?r:`${t}.${r}`}else return}function sXe(e){switch(e.kind){case 219:case 218:case 231:return!0;default:return!1}}function vD(e){return e=e.length>uY?e.substring(0,uY)+"...":e,e.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}var J3e,uY,_Y,PI,wI,Oy,Lfe,S3,fY,bD,aXe=K({"src/services/navigationBar.ts"(){ci(),J3e=/\s+/g,uY=150,wI=[],Lfe=[],fY=[],bD={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1}}}),Mfe={};Ye(Mfe,{getNavigationBarItems:()=>S3e,getNavigationTree:()=>x3e});var z3e=K({"src/services/_namespaces/ts.NavigationBar.ts"(){aXe()}});function Wh(e,t){pY.set(e,t)}function oXe(e,t){return Vs(sb(pY.values(),r=>{var i;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!((i=r.kinds)!=null&&i.some(s=>v2(s,e.kind)))?void 0:r.getAvailableActions(e,t)}))}function cXe(e,t,r,i){const s=pY.get(t);return s&&s.getEditsForAction(e,r,i)}var pY,U3e=K({"src/services/refactorProvider.ts"(){ci(),rh(),pY=new Map}});function V3e(e,t=!0){const{file:r,program:i}=e,s=gC(e),o=ps(r,s.start),c=o.parent&&x1(o.parent)&32&&t?o.parent:gI(o,r,s);if(!c||!es(c.parent)&&!(lg(c.parent)&&n_(c.parent.parent)))return{error:zs(p.Could_not_find_export_statement)};const u=i.getTypeChecker(),f=dXe(c.parent,u),g=x1(c)||(Qc(c)&&!c.isExportEquals?2080:0),d=!!(g&2048);if(!(g&32)||!d&&f.exports.has("default"))return{error:zs(p.This_file_already_has_a_default_export)};const y=x=>Je(x)&&u.getSymbolAtLocation(x)?void 0:{error:zs(p.Can_only_convert_named_export)};switch(c.kind){case 262:case 263:case 264:case 266:case 265:case 267:{const x=c;return x.name?y(x.name)||{exportNode:x,exportName:x.name,wasDefault:d,exportingModuleSymbol:f}:void 0}case 243:{const x=c;if(!(x.declarationList.flags&2)||x.declarationList.declarations.length!==1)return;const T=Ka(x.declarationList.declarations);return T.initializer?(w.assert(!d,"Can't have a default flag here"),y(T.name)||{exportNode:x,exportName:T.name,wasDefault:d,exportingModuleSymbol:f}):void 0}case 277:{const x=c;return x.isExportEquals?void 0:y(x.expression)||{exportNode:x,exportName:x.expression,wasDefault:d,exportingModuleSymbol:f}}default:return}}function lXe(e,t,r,i,s){uXe(e,r,i,t.getTypeChecker()),_Xe(t,r,i,s)}function uXe(e,{wasDefault:t,exportNode:r,exportName:i},s,o){if(t)if(Qc(r)&&!r.isExportEquals){const c=r.expression,u=W3e(c.text,c.text);s.replaceNode(e,r,L.createExportDeclaration(void 0,!1,L.createNamedExports([u])))}else s.delete(e,w.checkDefined(m3(r,90),"Should find a default keyword in modifier list"));else{const c=w.checkDefined(m3(r,95),"Should find an export keyword in modifier list");switch(r.kind){case 262:case 263:case 264:s.insertNodeAfter(e,c,L.createToken(90));break;case 243:const u=Ka(r.declarationList.declarations);if(!Qo.Core.isSymbolReferencedInFile(i,o,e)&&!u.type){s.replaceNode(e,r,L.createExportDefault(w.checkDefined(u.initializer,"Initializer was previously known to be present")));break}case 266:case 265:case 267:s.deleteModifier(e,c),s.insertNodeAfter(e,r,L.createExportDefault(L.createIdentifier(i.text)));break;default:w.fail(`Unexpected exportNode kind ${r.kind}`)}}}function _Xe(e,{wasDefault:t,exportName:r,exportingModuleSymbol:i},s,o){const c=e.getTypeChecker(),u=w.checkDefined(c.getSymbolAtLocation(r),"Export name should resolve to a symbol");Qo.Core.eachExportReference(e.getSourceFiles(),c,o,u,i,r.text,t,f=>{if(r===f)return;const g=f.getSourceFile();t?fXe(g,f,s,r.text):pXe(g,f,s)})}function fXe(e,t,r,i){const{parent:s}=t;switch(s.kind){case 211:r.replaceNode(e,t,L.createIdentifier(i));break;case 276:case 281:{const c=s;r.replaceNode(e,c,Rfe(i,c.name.text));break}case 273:{const c=s;w.assert(c.name===t,"Import clause name should match provided ref");const u=Rfe(i,t.text),{namedBindings:f}=c;if(!f)r.replaceNode(e,t,L.createNamedImports([u]));else if(f.kind===274){r.deleteRange(e,{pos:t.getStart(e),end:f.getStart(e)});const g=Ba(c.parent.moduleSpecifier)?pQ(c.parent.moduleSpecifier,e):1,d=Ny(void 0,[Rfe(i,t.text)],c.parent.moduleSpecifier,g);r.insertNodeAfter(e,c.parent,d)}else r.delete(e,t),r.insertNodeAtEndOfList(e,f.elements,u);break}case 205:const o=s;r.replaceNode(e,s,L.createImportTypeNode(o.argument,o.attributes,L.createIdentifier(i),o.typeArguments,o.isTypeOf));break;default:w.failBadSyntaxKind(s)}}function pXe(e,t,r){const i=t.parent;switch(i.kind){case 211:r.replaceNode(e,t,L.createIdentifier("default"));break;case 276:{const s=L.createIdentifier(i.name.text);i.parent.elements.length===1?r.replaceNode(e,i.parent,s):(r.delete(e,i),r.insertNodeBefore(e,i.parent,s));break}case 281:{r.replaceNode(e,i,W3e("default",i.name.text));break}default:w.assertNever(i,`Unexpected parent kind ${i.kind}`)}}function Rfe(e,t){return L.createImportSpecifier(!1,e===t?void 0:L.createIdentifier(e),L.createIdentifier(t))}function W3e(e,t){return L.createExportSpecifier(!1,e===t?void 0:L.createIdentifier(e),L.createIdentifier(t))}function dXe(e,t){if(es(e))return e.symbol;const r=e.parent.symbol;return r.valueDeclaration&&db(r.valueDeclaration)?t.getMergedSymbol(r):r}var dY,Jj,zj,mXe=K({"src/services/refactors/convertExport.ts"(){ci(),rh(),dY="Convert export",Jj={name:"Convert default export to named export",description:zs(p.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},zj={name:"Convert named export to default export",description:zs(p.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"},Wh(dY,{kinds:[Jj.kind,zj.kind],getAvailableActions:function(t){const r=V3e(t,t.triggerReason==="invoked");if(!r)return Ke;if(!E0(r)){const i=r.wasDefault?Jj:zj;return[{name:dY,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:dY,description:zs(p.Convert_default_export_to_named_export),actions:[{...Jj,notApplicableReason:r.error},{...zj,notApplicableReason:r.error}]}]:Ke},getEditsForAction:function(t,r){w.assert(r===Jj.name||r===zj.name,"Unexpected action name");const i=V3e(t);return w.assert(i&&!E0(i),"Expected applicable refactor info"),{edits:gr.ChangeTracker.with(t,o=>lXe(t.file,t.program,i,o,t.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}})}});function q3e(e,t=!0){const{file:r}=e,i=gC(e),s=ps(r,i.start),o=t?Vn(s,eu):gI(s,r,i);if(!o||!eu(o))return{error:"Selection is not an import declaration."};const c=i.start+i.length,u=Yb(o,o.parent,r);if(u&&c>u.getStart())return;const{importClause:f}=o;return f?f.namedBindings?f.namedBindings.kind===274?{convertTo:0,import:f.namedBindings}:H3e(e.program,f)?{convertTo:1,import:f.namedBindings}:{convertTo:2,import:f.namedBindings}:{error:zs(p.Could_not_find_namespace_import_or_named_imports)}:{error:zs(p.Could_not_find_import_clause)}}function H3e(e,t){return hx(e.getCompilerOptions())&&vXe(t.parent.moduleSpecifier,e.getTypeChecker())}function gXe(e,t,r,i){const s=t.getTypeChecker();i.convertTo===0?hXe(e,s,r,i.import,hx(t.getCompilerOptions())):$3e(e,t,r,i.import,i.convertTo===1)}function hXe(e,t,r,i,s){let o=!1;const c=[],u=new Map;Qo.Core.eachSymbolReferenceInFile(i.name,t,e,y=>{if(!Lie(y.parent))o=!0;else{const x=G3e(y.parent).text;t.resolveName(x,y,-1,!0)&&u.set(x,!0),w.assert(yXe(y.parent)===y,"Parent expression should match id"),c.push(y.parent)}});const f=new Map;for(const y of c){const x=G3e(y).text;let T=f.get(x);T===void 0&&f.set(x,T=u.has(x)?Ux(x,e):x),r.replaceNode(e,y,L.createIdentifier(T))}const g=[];f.forEach((y,x)=>{g.push(L.createImportSpecifier(!1,y===x?void 0:L.createIdentifier(x),L.createIdentifier(y)))});const d=i.parent.parent;o&&!s?r.insertNodeAfter(e,d,jfe(d,void 0,g)):r.replaceNode(e,d,jfe(d,o?L.createIdentifier(i.name.text):void 0,g))}function G3e(e){return Jr(e)?e.name:e.right}function yXe(e){return Jr(e)?e.expression:e.left}function $3e(e,t,r,i,s=H3e(t,i.parent)){const o=t.getTypeChecker(),c=i.parent.parent,{moduleSpecifier:u}=c,f=new Set;i.elements.forEach(C=>{const N=o.getSymbolAtLocation(C.name);N&&f.add(N)});const g=u&&Ba(u)?a_.moduleSpecifierToValidIdentifier(u.text,99):"module";function d(C){return!!Qo.Core.eachSymbolReferenceInFile(C.name,o,e,N=>{const D=o.resolveName(g,N,-1,!0);return D?f.has(D)?h_(N.parent):!0:!1})}const x=i.elements.some(d)?Ux(g,e):g,T=new Set;for(const C of i.elements){const N=(C.propertyName||C.name).text;Qo.Core.eachSymbolReferenceInFile(C.name,o,e,D=>{const M=L.createPropertyAccessExpression(L.createIdentifier(x),N);Af(D.parent)?r.replaceNode(e,D.parent,L.createPropertyAssignment(D.text,M)):h_(D.parent)?T.add(C):r.replaceNode(e,D,M)})}if(r.replaceNode(e,i,s?L.createIdentifier(x):L.createNamespaceImport(L.createIdentifier(x))),T.size){const C=Vs(T.values(),N=>L.createImportSpecifier(N.isTypeOnly,N.propertyName&&L.createIdentifier(N.propertyName.text),L.createIdentifier(N.name.text)));r.insertNodeAfter(e,i.parent.parent,jfe(c,void 0,C))}}function vXe(e,t){const r=t.resolveExternalModuleName(e);if(!r)return!1;const i=t.resolveExternalModuleSymbol(r);return r!==i}function jfe(e,t,r){return L.createImportDeclaration(void 0,L.createImportClause(!1,t,r&&r.length?L.createNamedImports(r):void 0),e.moduleSpecifier,void 0)}var mY,Uj,bXe=K({"src/services/refactors/convertImport.ts"(){ci(),rh(),mY="Convert import",Uj={0:{name:"Convert namespace import to named imports",description:zs(p.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:zs(p.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:zs(p.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}},Wh(mY,{kinds:ik(Uj).map(e=>e.kind),getAvailableActions:function(t){const r=q3e(t,t.triggerReason==="invoked");if(!r)return Ke;if(!E0(r)){const i=Uj[r.convertTo];return[{name:mY,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?ik(Uj).map(i=>({name:mY,description:i.description,actions:[{...i,notApplicableReason:r.error}]})):Ke},getEditsForAction:function(t,r){w.assert(Pe(ik(Uj),o=>o.name===r),"Unexpected action name");const i=q3e(t);return w.assert(i&&!E0(i),"Expected applicable refactor info"),{edits:gr.ChangeTracker.with(t,o=>gXe(t.file,t.program,o,i)),renameFilename:void 0,renameLocation:void 0}}})}});function X3e(e,t=!0){const{file:r,startPosition:i}=e,s=L_(r),o=aj(gC(e)),c=o.pos===o.end&&t,u=SXe(r,i,o,c);if(!u||!Gi(u))return{error:zs(p.Selection_is_not_a_valid_type_node)};const f=e.program.getTypeChecker(),g=EXe(u,s);if(g===void 0)return{error:zs(p.No_type_could_be_extracted_from_this_type_node)};const d=PXe(u,g);if(!Gi(d))return{error:zs(p.Selection_is_not_a_valid_type_node)};const y=[];(A1(d.parent)||Gk(d.parent))&&o.end>u.end&&Mr(y,d.parent.types.filter(N=>QR(N,r,o.pos,o.end)));const x=y.length>1?y:d,T=xXe(f,x,g,r);if(!T)return{error:zs(p.No_type_could_be_extracted_from_this_type_node)};const C=gY(f,x);return{isJS:s,selection:x,enclosingNode:g,typeParameters:T,typeElements:C}}function SXe(e,t,r,i){const s=[()=>ps(e,t),()=>p3(e,t,()=>!0)];for(const o of s){const c=o(),u=QR(c,e,r.pos,r.end),f=Vn(c,g=>g.parent&&Gi(g)&&!tS(r,g.parent,e)&&(i||u));if(f)return f}}function gY(e,t){if(t){if(Ps(t)){const r=[];for(const i of t){const s=gY(e,i);if(!s)return;Mr(r,s)}return r}if(Gk(t)){const r=[],i=new Map;for(const s of t.types){const o=gY(e,s);if(!o||!o.every(c=>c.name&&nm(i,dI(c.name))))return;Mr(r,o)}return r}else{if(bx(t))return gY(e,t.type);if(Xf(t))return t.members}}}function tS(e,t,r){return oI(e,za(r.text,t.pos),t.end)}function xXe(e,t,r,i){const s=[],o=sk(t),c={pos:o[0].pos,end:o[o.length-1].end};for(const f of o)if(u(f))return;return s;function u(f){if(id(f)){if(Je(f.typeName)){const g=f.typeName,d=e.resolveName(g.text,g,262144,!0);for(const y of(d==null?void 0:d.declarations)||Ke)if(Ic(y)&&y.getSourceFile()===i){if(y.name.escapedText===g.escapedText&&tS(y,c,i))return!0;if(tS(r,y,i)&&!tS(c,y,i)){Jf(s,y);break}}}}else if(vx(f)){const g=Vn(f,d=>$k(d)&&tS(d.extendsType,f,i));if(!g||!tS(c,g,i))return!0}else if(HN(f)||$N(f)){const g=Vn(f.parent,oa);if(g&&g.type&&tS(g.type,f,i)&&!tS(c,g,i))return!0}else if(qk(f)){if(Je(f.exprName)){const g=e.resolveName(f.exprName.text,f.exprName,111551,!1);if(g!=null&&g.valueDeclaration&&tS(r,g.valueDeclaration,i)&&!tS(c,g.valueDeclaration,i))return!0}else if(Cb(f.exprName.left)&&!tS(c,f.parent,i))return!0}return i&&Hk(f)&&Ao(i,f.pos).line===Ao(i,f.end).line&&pr(f,1),Xs(f,u)}}function TXe(e,t,r,i){const{enclosingNode:s,typeParameters:o}=i,{firstTypeNode:c,lastTypeNode:u,newTypeNode:f}=Bfe(i),g=L.createTypeAliasDeclaration(void 0,r,o.map(d=>L.updateTypeParameterDeclaration(d,d.modifiers,d.name,d.constraint,void 0)),f);e.insertNodeBefore(t,s,mH(g),!0),e.replaceNodeRange(t,c,u,L.createTypeReferenceNode(r,o.map(d=>L.createTypeReferenceNode(d.name,void 0))),{leadingTriviaOption:gr.LeadingTriviaOption.Exclude,trailingTriviaOption:gr.TrailingTriviaOption.ExcludeWhitespace})}function kXe(e,t,r,i){var s;const{enclosingNode:o,typeParameters:c,typeElements:u}=i,f=L.createInterfaceDeclaration(void 0,r,c,void 0,u);ut(f,(s=u[0])==null?void 0:s.parent),e.insertNodeBefore(t,o,mH(f),!0);const{firstTypeNode:g,lastTypeNode:d}=Bfe(i);e.replaceNodeRange(t,g,d,L.createTypeReferenceNode(r,c.map(y=>L.createTypeReferenceNode(y.name,void 0))),{leadingTriviaOption:gr.LeadingTriviaOption.Exclude,trailingTriviaOption:gr.TrailingTriviaOption.ExcludeWhitespace})}function CXe(e,t,r,i,s){var o;sk(s.selection).forEach(C=>{pr(C,7168)});const{enclosingNode:c,typeParameters:u}=s,{firstTypeNode:f,lastTypeNode:g,newTypeNode:d}=Bfe(s),y=L.createJSDocTypedefTag(L.createIdentifier("typedef"),L.createJSDocTypeExpression(d),L.createIdentifier(i)),x=[];dt(u,C=>{const N=J6(C),D=L.createTypeParameterDeclaration(void 0,C.name),M=L.createJSDocTemplateTag(L.createIdentifier("template"),N&&pa(N,Ub),[D]);x.push(M)});const T=L.createJSDocComment(void 0,L.createNodeArray(zn(x,[y])));if(Dm(c)){const C=c.getStart(r),N=Iy(t.host,(o=t.formatContext)==null?void 0:o.options);e.insertNodeAt(r,c.getStart(r),T,{suffix:N+N+r.text.slice(gj(r.text,C-1),C)})}else e.insertNodeBefore(r,c,T,!0);e.replaceNodeRange(r,f,g,L.createTypeReferenceNode(i,u.map(C=>L.createTypeReferenceNode(C.name,void 0))))}function Bfe(e){return Ps(e.selection)?{firstTypeNode:e.selection[0],lastTypeNode:e.selection[e.selection.length-1],newTypeNode:A1(e.selection[0].parent)?L.createUnionTypeNode(e.selection):L.createIntersectionTypeNode(e.selection)}:{firstTypeNode:e.selection,lastTypeNode:e.selection,newTypeNode:e.selection}}function EXe(e,t){return Vn(e,Xi)||(t?Vn(e,Dm):void 0)}function PXe(e,t){return Vn(e,r=>r===t?"quit":!!(A1(r.parent)||Gk(r.parent)))??e}var hY,Vj,Wj,qj,wXe=K({"src/services/refactors/extractType.ts"(){ci(),rh(),hY="Extract type",Vj={name:"Extract to type alias",description:zs(p.Extract_to_type_alias),kind:"refactor.extract.type"},Wj={name:"Extract to interface",description:zs(p.Extract_to_interface),kind:"refactor.extract.interface"},qj={name:"Extract to typedef",description:zs(p.Extract_to_typedef),kind:"refactor.extract.typedef"},Wh(hY,{kinds:[Vj.kind,Wj.kind,qj.kind],getAvailableActions:function(t){const r=X3e(t,t.triggerReason==="invoked");return r?E0(r)?t.preferences.provideRefactorNotApplicableReason?[{name:hY,description:zs(p.Extract_type),actions:[{...qj,notApplicableReason:r.error},{...Vj,notApplicableReason:r.error},{...Wj,notApplicableReason:r.error}]}]:Ke:[{name:hY,description:zs(p.Extract_type),actions:r.isJS?[qj]:gn([Vj],r.typeElements&&Wj)}]:Ke},getEditsForAction:function(t,r){const{file:i}=t,s=X3e(t);w.assert(s&&!E0(s),"Expected to find a range to extract");const o=Ux("NewType",i),c=gr.ChangeTracker.with(t,g=>{switch(r){case Vj.name:return w.assert(!s.isJS,"Invalid actionName/JS combo"),TXe(g,i,o,s);case qj.name:return w.assert(s.isJS,"Invalid actionName/JS combo"),CXe(g,t,i,o,s);case Wj.name:return w.assert(!s.isJS&&!!s.typeElements,"Invalid actionName/JS combo"),kXe(g,i,o,s);default:w.fail("Unexpected action name")}}),u=i.fileName,f=vI(c,u,o,!1);return{edits:c,renameFilename:u,renameLocation:f}}})}});function E0(e){return e.error!==void 0}function v2(e,t){return t?e.substr(0,t.length)===t:!0}var DXe=K({"src/services/refactors/helpers.ts"(){}});function Q3e(e,t,r,i){var s,o;const c=i.getTypeChecker(),u=mf(e,t),f=u.parent;if(Je(u)){if(gN(f)&&EP(f)&&Je(f.name)){if(((s=c.getMergedSymbol(f.symbol).declarations)==null?void 0:s.length)!==1)return{error:zs(p.Variables_with_multiple_declarations_cannot_be_inlined)};if(Y3e(f))return;const g=Z3e(f,c,e);return g&&{references:g,declaration:f,replacement:f.initializer}}if(r){let g=c.resolveName(u.text,u,111551,!1);if(g=g&&c.getMergedSymbol(g),((o=g==null?void 0:g.declarations)==null?void 0:o.length)!==1)return{error:zs(p.Variables_with_multiple_declarations_cannot_be_inlined)};const d=g.declarations[0];if(!gN(d)||!EP(d)||!Je(d.name)||Y3e(d))return;const y=Z3e(d,c,e);return y&&{references:y,declaration:d,replacement:d.initializer}}return{error:zs(p.Could_not_find_variable_to_inline)}}}function Y3e(e){const t=pa(e.parent.parent,Xc);return Pe(t.modifiers,Uk)}function Z3e(e,t,r){const i=[],s=Qo.Core.eachSymbolReferenceInFile(e.name,t,r,o=>{if(Qo.isWriteAccessForReference(o)&&!Af(o.parent)||h_(o.parent)||Qc(o.parent)||qk(o.parent)||sA(e,o.pos))return!0;i.push(o)});return i.length===0||s?void 0:i}function AXe(e,t){t=Sc(t);const{parent:r}=e;return vt(r)&&(jP(t){for(const y of c)d.replaceNode(r,y,AXe(y,f));d.delete(r,u)})}}})}});function IXe(e,t,r,i,s,o){const c=t.getTypeChecker(),u=$j(e,r.all,c),f=Qfe(e,t,s,r);i.createNewFile(e,f,OXe(e,u,i,r,t,s,f,o)),Jfe(t,i,e.fileName,f,yy(s))}function OXe(e,t,r,i,s,o,c,u){const f=s.getTypeChecker(),g=jO(e.statements,em);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&t.oldImportsNeededByTargetFile.size===0)return Hj(e,i.ranges,r),[...g,...i.all];const d=!BQ(c,s,o,!!e.commonJsModuleIndicator),y=Bp(e,u),x=Wfe(e,t.oldFileImportsFromTargetFile,c,s,o,d,y);x&&uD(r,e,x,!0,u),zfe(e,i.all,r,t.unusedImportsFromOldFile,f),Hj(e,i.ranges,r),Ufe(r,s,o,e,t.movedSymbols,c,y);const T=FXe(e,t.oldImportsNeededByTargetFile,t.targetFileImportsFromOldFile,r,f,s,o,d,y),C=qfe(e,i.all,t.oldFileImportsFromTargetFile,d);return T.length&&C.length?[...g,...T,4,...C]:[...g,...T,...C]}function FXe(e,t,r,i,s,o,c,u,f){const g=[];for(const T of e.statements)II(T,C=>{gn(g,OI(C,NI(C),N=>t.has(s.getSymbolAtLocation(N))))});let d;const y=[],x=dC();return r.forEach(T=>{if(T.declarations)for(const C of T.declarations){if(!Xj(C))continue;const N=$fe(C);if(!N)continue;const D=xY(C);x(D)&&Xfe(e,D,N,i,u),Kr(C,2048)?d=N:y.push(N.text)}}),gn(g,Gj(e,d,y,xl(e.fileName),o,c,u,f)),g}var AI,bY,SY,LXe=K({"src/services/refactors/moveToNewFile.ts"(){ci(),rh(),AI="Move to a new file",bY=zs(p.Move_to_a_new_file),SY={name:AI,description:bY,kind:"refactor.move.newFile"},Wh(AI,{kinds:[SY.kind],getAvailableActions:function(t){const r=FI(t);return t.preferences.allowTextChangesInNewFiles&&r?[{name:AI,description:bY,actions:[SY]}]:t.preferences.provideRefactorNotApplicableReason?[{name:AI,description:bY,actions:[{...SY,notApplicableReason:zs(p.Selection_is_not_a_valid_statement_or_statements)}]}]:Ke},getEditsForAction:function(t,r){w.assert(r===AI,"Wrong refactor invoked");const i=w.checkDefined(FI(t));return{edits:gr.ChangeTracker.with(t,o=>IXe(t.file,t.program,i,o,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}}})}});function K3e(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function MXe(e,t,r,i,s,o,c,u){const f=i.getTypeChecker();if(!c.fileExists(r))o.createNewFile(t,r,eEe(t,r,$j(t,s.all,f),o,s,i,c,u)),Jfe(i,o,t.fileName,r,yy(c));else{const g=w.checkDefined(i.getSourceFile(r)),d=a_.createImportAdder(g,e.program,e.preferences,e.host);eEe(t,g,$j(t,s.all,f,tQe(g,s.all,f)),o,s,i,c,u,d)}}function eEe(e,t,r,i,s,o,c,u,f){const g=o.getTypeChecker(),d=jO(e.statements,em);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&r.oldImportsNeededByTargetFile.size===0&&r.targetFileImportsFromOldFile.size===0&&typeof t=="string")return Hj(e,s.ranges,i),[...d,...s.all];const y=typeof t=="string"?t:t.fileName,x=!BQ(y,o,c,!!e.commonJsModuleIndicator),T=Bp(e,u),C=Wfe(e,r.oldFileImportsFromTargetFile,y,o,c,x,T);C&&uD(i,e,C,!0,u),zfe(e,s.all,i,r.unusedImportsFromOldFile,g),Hj(e,s.ranges,i),Ufe(i,o,c,e,r.movedSymbols,y,T);const N=RXe(e,y,r.oldImportsNeededByTargetFile,r.targetFileImportsFromOldFile,i,g,o,c,x,T,f),D=qfe(e,s.all,r.oldFileImportsFromTargetFile,x);return typeof t!="string"&&(t.statements.length>0?eQe(i,o,D,t,s):i.insertNodesAtEndOfFile(t,D,!1),N.length>0&&uD(i,t,N,!0,u)),f&&f.writeFixes(i,T),N.length&&D.length?[...d,...N,4,...D]:[...d,...N,...D]}function RXe(e,t,r,i,s,o,c,u,f,g,d){const y=[];if(d)r.forEach((D,M)=>{try{d.addImportFromExportedSymbol(Uu(M,o),D)}catch{for(const V of e.statements)II(V,G=>{gn(y,OI(G,L.createStringLiteral(NI(G).text),Z=>r.has(o.getSymbolAtLocation(Z))))})}});else{const D=c.getSourceFile(t);for(const M of e.statements)II(M,V=>{var G;const Z=NI(V),z=c.getCompilerOptions(),ce=c.getResolvedModuleFromModuleSpecifier(Z),J=(G=ce==null?void 0:ce.resolvedModule)==null?void 0:G.resolvedFileName;if(J&&D){const ne=JM(z,D,D.fileName,J,Jx(c,u));gn(y,OI(V,mC(ne,g),ge=>r.has(o.getSymbolAtLocation(ge))))}else gn(y,OI(V,L.createStringLiteral(NI(V).text),ne=>r.has(o.getSymbolAtLocation(ne))))})}const x=c.getSourceFile(t);let T;const C=[],N=dC();return i.forEach(D=>{if(D.declarations)for(const M of D.declarations){if(!Xj(M))continue;const V=$fe(M);if(!V)continue;const G=xY(M);N(G)&&Xfe(e,G,V,s,f),d&&o.isUnknownSymbol(D)?d.addImportFromExportedSymbol(Uu(D,o)):Kr(M,2048)?T=V:C.push(V.text)}}),x?gn(y,Gj(x,T,C,e.fileName,c,u,f,g)):gn(y,Gj(e,T,C,e.fileName,c,u,f,g))}function Jfe(e,t,r,i,s){const o=e.getCompilerOptions().configFile;if(!o)return;const c=ka(Zr(r,"..",i)),u=Q8(o.fileName,c,s),f=o.statements[0]&&si(o.statements[0].expression,Va),g=f&&Cn(f.properties,d=>Ml(d)&&Ba(d.name)&&d.name.text==="files");g&&B_(g.initializer)&&t.insertNodeInListAfter(o,so(g.initializer.elements),L.createStringLiteral(u),g.initializer.elements)}function Hj(e,t,r){for(const{first:i,afterLast:s}of t)r.deleteNodeRangeExcludingEnd(e,i,s)}function zfe(e,t,r,i,s){for(const o of e.statements)Ai(t,o)||II(o,c=>Hfe(e,c,r,u=>i.has(s.getSymbolAtLocation(u))))}function Ufe(e,t,r,i,s,o,c){const u=t.getTypeChecker();for(const f of t.getSourceFiles())if(f!==i)for(const g of f.statements)II(g,d=>{if(u.getSymbolAtLocation(NI(d))!==i.symbol)return;const y=D=>{const M=oo(D.parent)?pj(u,D.parent):Uu(u.getSymbolAtLocation(D),u);return!!M&&s.has(M)};Hfe(f,d,e,y);const x=l1(oi(i.path),o),T=JM(t.getCompilerOptions(),f,f.fileName,x,Jx(t,r)),C=OI(d,mC(T,c),y);C&&e.insertNodeAfter(f,g,C);const N=jXe(d);N&&BXe(e,f,u,s,T,N,d,c)})}function jXe(e){switch(e.kind){case 272:return e.importClause&&e.importClause.namedBindings&&e.importClause.namedBindings.kind===274?e.importClause.namedBindings.name:void 0;case 271:return e.name;case 260:return si(e.name,Je);default:return w.assertNever(e,`Unexpected node kind ${e.kind}`)}}function BXe(e,t,r,i,s,o,c,u){const f=a_.moduleSpecifierToValidIdentifier(s,99);let g=!1;const d=[];if(Qo.Core.eachSymbolReferenceInFile(o,r,t,y=>{Jr(y.parent)&&(g=g||!!r.resolveName(f,y,-1,!0),i.has(r.getSymbolAtLocation(y.parent.name))&&d.push(y))}),d.length){const y=g?Ux(f,t):f;for(const x of d)e.replaceNode(t,x,L.createIdentifier(y));e.insertNodeAfter(t,c,JXe(c,f,s,u))}}function JXe(e,t,r,i){const s=L.createIdentifier(t),o=mC(r,i);switch(e.kind){case 272:return L.createImportDeclaration(void 0,L.createImportClause(!1,void 0,L.createNamespaceImport(s)),o,void 0);case 271:return L.createImportEqualsDeclaration(void 0,!1,s,L.createExternalModuleReference(o));case 260:return L.createVariableDeclaration(s,void 0,void 0,Vfe(o));default:return w.assertNever(e,`Unexpected node kind ${e.kind}`)}}function Vfe(e){return L.createCallExpression(L.createIdentifier("require"),void 0,[e])}function NI(e){return e.kind===272?e.moduleSpecifier:e.kind===271?e.moduleReference.expression:e.initializer.arguments[0]}function II(e,t){if(eu(e))Ba(e.moduleSpecifier)&&t(e);else if(Tu(e))Kg(e.moduleReference)&&vo(e.moduleReference.expression)&&t(e);else if(Xc(e))for(const r of e.declarationList.declarations)r.initializer&&Q_(r.initializer,!0)&&t(r)}function Wfe(e,t,r,i,s,o,c){let u;const f=[];return t.forEach(g=>{g.escapedName==="default"?u=L.createIdentifier(uj(g)):f.push(g.name)}),Gj(e,u,f,r,i,s,o,c)}function Gj(e,t,r,i,s,o,c,u){const f=l1(oi(e.path),i),g=JM(s.getCompilerOptions(),e,e.fileName,f,Jx(s,o));if(c){const d=r.map(y=>L.createImportSpecifier(!1,void 0,L.createIdentifier(y)));return L_e(t,d,g,u)}else{w.assert(!t,"No default import should exist");const d=r.map(y=>L.createBindingElement(void 0,void 0,y));return d.length?tEe(L.createObjectBindingPattern(d),void 0,Vfe(mC(g,u))):void 0}}function tEe(e,t,r,i=2){return L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(e,void 0,t,r)],i))}function qfe(e,t,r,i){return Ys(t,s=>{if(rEe(s)&&!nEe(e,s,i)&&Kfe(s,o=>{var c;return r.has(w.checkDefined((c=si(o,Km))==null?void 0:c.symbol))})){const o=VXe(Sc(s),i);if(o)return o}return Sc(s)})}function nEe(e,t,r,i){var s;return r?!xu(t)&&Kr(t,32)||!!(i&&e.symbol&&((s=e.symbol.exports)!=null&&s.has(i.escapedText))):!!e.symbol&&!!e.symbol.exports&&Gfe(t).some(o=>e.symbol.exports.has(Nc(o)))}function Hfe(e,t,r,i){switch(t.kind){case 272:zXe(e,t,r,i);break;case 271:i(t.name)&&r.delete(e,t);break;case 260:UXe(e,t,r,i);break;default:w.assertNever(t,`Unexpected import decl kind ${t.kind}`)}}function zXe(e,t,r,i){if(!t.importClause)return;const{name:s,namedBindings:o}=t.importClause,c=!s||i(s),u=!o||(o.kind===274?i(o.name):o.elements.length!==0&&o.elements.every(f=>i(f.name)));if(c&&u)r.delete(e,t);else if(s&&c&&r.delete(e,s),o){if(u)r.replaceNode(e,t.importClause,L.updateImportClause(t.importClause,t.importClause.isTypeOnly,s,void 0));else if(o.kind===275)for(const f of o.elements)i(f.name)&&r.delete(e,f)}}function UXe(e,t,r,i){const{name:s}=t;switch(s.kind){case 80:i(s)&&(t.initializer&&Q_(t.initializer,!0)?r.delete(e,_u(t.parent)&&Xe(t.parent.declarations)===1?t.parent.parent:t):r.delete(e,s));break;case 207:break;case 206:if(s.elements.every(o=>Je(o.name)&&i(o.name)))r.delete(e,_u(t.parent)&&t.parent.declarations.length===1?t.parent.parent:t);else for(const o of s.elements)Je(o.name)&&i(o.name)&&r.delete(e,o.name);break}}function rEe(e){return w.assert(es(e.parent),"Node parent should be a SourceFile"),cEe(e)||Xc(e)}function VXe(e,t){return t?[WXe(e)]:qXe(e)}function WXe(e){const t=sm(e)?zn([L.createModifier(95)],lb(e)):void 0;switch(e.kind){case 262:return L.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 263:const r=Nx(e)?_1(e):void 0;return L.updateClassDeclaration(e,zn(r,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 243:return L.updateVariableStatement(e,t,e.declarationList);case 267:return L.updateModuleDeclaration(e,t,e.name,e.body);case 266:return L.updateEnumDeclaration(e,t,e.name,e.members);case 265:return L.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 264:return L.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 271:return L.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 244:return w.fail();default:return w.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function qXe(e){return[e,...Gfe(e).map(iEe)]}function iEe(e){return L.createExpressionStatement(L.createBinaryExpression(L.createPropertyAccessExpression(L.createIdentifier("exports"),L.createIdentifier(e)),64,L.createIdentifier(e)))}function Gfe(e){switch(e.kind){case 262:case 263:return[e.name.text];case 243:return Oi(e.declarationList.declarations,t=>Je(t.name)?t.name.text:void 0);case 267:case 266:case 265:case 264:case 271:return Ke;case 244:return w.fail("Can't export an ExpressionStatement");default:return w.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function OI(e,t,r){switch(e.kind){case 272:{const i=e.importClause;if(!i)return;const s=i.name&&r(i.name)?i.name:void 0,o=i.namedBindings&&HXe(i.namedBindings,r);return s||o?L.createImportDeclaration(void 0,L.createImportClause(i.isTypeOnly,s,o),Sc(t),void 0):void 0}case 271:return r(e.name)?e:void 0;case 260:{const i=GXe(e.name,r);return i?tEe(i,e.type,Vfe(t),e.parent.flags):void 0}default:return w.assertNever(e,`Unexpected import kind ${e.kind}`)}}function HXe(e,t){if(e.kind===274)return t(e.name)?e:void 0;{const r=e.elements.filter(i=>t(i.name));return r.length?L.createNamedImports(r):void 0}}function GXe(e,t){switch(e.kind){case 80:return t(e)?e:void 0;case 207:return e;case 206:{const r=e.elements.filter(i=>i.propertyName||!Je(i.name)||t(i.name));return r.length?L.createObjectBindingPattern(r):void 0}}}function $fe(e){return xu(e)?si(e.expression.left.name,Je):si(e.name,Je)}function xY(e){switch(e.kind){case 260:return e.parent.parent;case 208:return xY(pa(e.parent.parent,t=>Ji(t)||oo(t)));default:return e}}function Xfe(e,t,r,i,s){if(!nEe(e,t,s,r))if(s)xu(t)||i.insertExportModifier(e,t);else{const o=Gfe(t);o.length!==0&&i.insertNodesAfter(e,t,o.map(iEe))}}function Qfe(e,t,r,i){const s=t.getTypeChecker();if(i){const o=$j(e,i.all,s),c=oi(e.fileName),u=tw(e.fileName);return Zr(c,YXe(ZXe(o.oldFileImportsFromTargetFile,o.movedSymbols),u,c,r))+u}return""}function $Xe(e){const{file:t}=e,r=aj(gC(e)),{statements:i}=t;let s=Gs(i,g=>g.end>r.pos);if(s===-1)return;const o=i[s],c=lEe(t,o);c&&(s=c.start);let u=Gs(i,g=>g.end>=r.end,s);u!==-1&&r.end<=i[u].getStart()&&u--;const f=lEe(t,i[u]);return f&&(u=f.end),{toMove:i.slice(s,u===-1?i.length:u+1),afterLast:u===-1?void 0:i[u+1]}}function FI(e){const t=$Xe(e);if(t===void 0)return;const r=[],i=[],{toMove:s,afterLast:o}=t;return Dr(s,XXe,(c,u)=>{for(let f=c;f!!(t.transformFlags&2))}function XXe(e){return!QXe(e)&&!em(e)}function QXe(e){switch(e.kind){case 272:return!0;case 271:return!Kr(e,32);case 243:return e.declarationList.declarations.every(t=>!!t.initializer&&Q_(t.initializer,!0));default:return!1}}function $j(e,t,r,i=new Set){const s=new Set,o=new Map,c=new Set,u=d(Yfe(t));u&&o.set(u,!1);for(const y of t)Kfe(y,x=>{s.add(w.checkDefined(xu(x)?r.getSymbolAtLocation(x.expression.left):x.symbol,"Need a symbol here"))});const f=new Set;for(const y of t)Zfe(y,r,(x,T)=>{if(x.declarations){if(i.has(Uu(x,r))){f.add(x);return}for(const C of x.declarations)if(sEe(C)){const N=o.get(x);o.set(x,(N===void 0||N)&&T)}else Xj(C)&&KXe(C)===e&&!s.has(x)&&c.add(x)}});for(const y of o.keys())f.add(y);const g=new Set;for(const y of e.statements)Ai(t,y)||(u&&y.transformFlags&2&&f.delete(u),Zfe(y,r,x=>{s.has(x)&&g.add(x),f.delete(x)}));return{movedSymbols:s,targetFileImportsFromOldFile:c,oldFileImportsFromTargetFile:g,oldImportsNeededByTargetFile:o,unusedImportsFromOldFile:f};function d(y){if(y===void 0)return;const x=r.getJsxNamespace(y),T=r.resolveName(x,y,1920,!0);return T&&Pe(T.declarations,sEe)?T:void 0}}function YXe(e,t,r,i){let s=e;for(let o=1;;o++){const c=Zr(r,s+t);if(!i.fileExists(c))return s;s=`${e}.${o}`}}function ZXe(e,t){return Wg(e,uj)||Wg(t,uj)||"newFile"}function Zfe(e,t,r){e.forEachChild(function i(s){if(Je(s)&&!h0(s)){const o=t.getSymbolAtLocation(s);o&&r(o,r2(s))}else s.forEachChild(i)})}function Kfe(e,t){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return t(e);case 243:return li(e.declarationList.declarations,r=>oEe(r.name,t));case 244:{const{expression:r}=e;return mr(r)&&rl(r)===1?t(e):void 0}}}function sEe(e){switch(e.kind){case 271:case 276:case 273:case 274:return!0;case 260:return aEe(e);case 208:return Ji(e.parent.parent)&&aEe(e.parent.parent);default:return!1}}function aEe(e){return es(e.parent.parent.parent)&&!!e.initializer&&Q_(e.initializer,!0)}function Xj(e){return cEe(e)&&es(e.parent)||Ji(e)&&es(e.parent.parent.parent)}function KXe(e){return Ji(e)?e.parent.parent.parent:e.parent}function oEe(e,t){switch(e.kind){case 80:return t(pa(e.parent,r=>Ji(r)||oo(r)));case 207:case 206:return li(e.elements,r=>uu(r)?void 0:oEe(r.name,t));default:return w.assertNever(e,`Unexpected name kind ${e.kind}`)}}function cEe(e){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return!0;default:return!1}}function eQe(e,t,r,i,s){var o;const c=new Set,u=(o=i.symbol)==null?void 0:o.exports;if(u){const g=t.getTypeChecker(),d=new Map;for(const y of s.all)rEe(y)&&Kr(y,32)&&Kfe(y,x=>{var T;const C=Km(x)?(T=u.get(x.symbol.escapedName))==null?void 0:T.declarations:void 0,N=li(C,D=>ml(D)?D:h_(D)?si(D.parent.parent,ml):void 0);N&&N.moduleSpecifier&&d.set(N,(d.get(N)||new Set).add(x))});for(const[y,x]of Vs(d))if(y.exportClause&&sd(y.exportClause)&&Xe(y.exportClause.elements)){const T=y.exportClause.elements,C=vr(T,N=>Cn(Uu(N.symbol,g).declarations,D=>Xj(D)&&x.has(D))===void 0);if(Xe(C)===0){e.deleteNode(i,y),c.add(y);continue}Xe(C)ml(g)&&!!g.moduleSpecifier&&!c.has(g));f?e.insertNodesBefore(i,f,r,!0):e.insertNodesAfter(i,i.statements[i.statements.length-1],r)}function lEe(e,t){if(Ko(t)){const r=t.symbol.declarations;if(r===void 0||Xe(r)<=1||!Ai(r,t))return;const i=r[0],s=r[Xe(r)-1],o=Oi(r,f=>qn(f)===e&&Xi(f)?f:void 0),c=Gs(e.statements,f=>f.end>=s.end),u=Gs(e.statements,f=>f.end>=i.end);return{toMove:o,start:u,end:c}}}function tQe(e,t,r){const i=new Set;for(const s of e.imports){const o=NP(s);if(eu(o)&&o.importClause&&o.importClause.namedBindings&&x0(o.importClause.namedBindings))for(const c of o.importClause.namedBindings.elements){const u=r.getSymbolAtLocation(c.propertyName||c.name);u&&i.add(Uu(u,r))}if(a9(o.parent)&&Md(o.parent.name))for(const c of o.parent.name.elements){const u=r.getSymbolAtLocation(c.propertyName||c.name);u&&i.add(Uu(u,r))}}for(const s of t)Zfe(s,r,o=>{const c=Uu(o,r);c.valueDeclaration&&qn(c.valueDeclaration)===e&&i.add(c)});return i}var Qj,TY,kY,nQe=K({"src/services/refactors/moveToFile.ts"(){sle(),ci(),U3e(),Qj="Move to file",TY=zs(p.Move_to_file),kY={name:"Move to file",description:TY,kind:"refactor.move.file"},Wh(Qj,{kinds:[kY.kind],getAvailableActions:function(t,r){const i=FI(t);return r?t.preferences.allowTextChangesInNewFiles&&i?[{name:Qj,description:TY,actions:[kY]}]:t.preferences.provideRefactorNotApplicableReason?[{name:Qj,description:TY,actions:[{...kY,notApplicableReason:zs(p.Selection_is_not_a_valid_statement_or_statements)}]}]:Ke:Ke},getEditsForAction:function(t,r,i){w.assert(r===Qj,"Wrong refactor invoked");const s=w.checkDefined(FI(t)),{host:o,program:c}=t;w.assert(i,"No interactive refactor arguments available");const u=i.targetFile;return Pb(u)||Ik(u)?o.fileExists(u)&&c.getSourceFile(u)===void 0?K3e(zs(p.Cannot_move_statements_to_the_selected_file)):{edits:gr.ChangeTracker.with(t,g=>MXe(t,t.file,i.targetFile,t.program,s,g,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}:K3e(zs(p.Cannot_move_to_file_selected_file_is_invalid))}})}});function rQe(e){const{file:t,startPosition:r,program:i}=e;return _Ee(t,r,i)?[{name:CY,description:epe,actions:[tpe]}]:Ke}function iQe(e){const{file:t,startPosition:r,program:i}=e,s=_Ee(t,r,i);if(!s)return;const o=i.getTypeChecker(),c=s[s.length-1];let u=c;switch(c.kind){case 173:{u=L.updateMethodSignature(c,c.modifiers,c.name,c.questionToken,c.typeParameters,g(s),c.type);break}case 174:{u=L.updateMethodDeclaration(c,c.modifiers,c.asteriskToken,c.name,c.questionToken,c.typeParameters,g(s),c.type,c.body);break}case 179:{u=L.updateCallSignature(c,c.typeParameters,g(s),c.type);break}case 176:{u=L.updateConstructorDeclaration(c,c.modifiers,g(s),c.body);break}case 180:{u=L.updateConstructSignature(c,c.typeParameters,g(s),c.type);break}case 262:{u=L.updateFunctionDeclaration(c,c.modifiers,c.asteriskToken,c.name,c.typeParameters,g(s),c.type,c.body);break}default:return w.failBadSyntaxKind(c,"Unhandled signature kind in overload list conversion refactoring")}if(u===c)return;return{renameFilename:void 0,renameLocation:void 0,edits:gr.ChangeTracker.with(e,x=>{x.replaceNodeRange(t,s[0],s[s.length-1],u)})};function g(x){const T=x[x.length-1];return Ko(T)&&T.body&&(x=x.slice(0,x.length-1)),L.createNodeArray([L.createParameterDeclaration(void 0,L.createToken(26),"args",void 0,L.createUnionTypeNode(Kt(x,d)))])}function d(x){const T=Kt(x.parameters,y);return pr(L.createTupleTypeNode(T),Pe(T,C=>!!Xe(A4(C)))?0:1)}function y(x){w.assert(Je(x.name));const T=ut(L.createNamedTupleMember(x.dotDotDotToken,x.name,x.questionToken,x.type||L.createKeywordTypeNode(133)),x),C=x.symbol&&x.symbol.getDocumentationComment(o);if(C){const N=zI(C);N.length&&s2(T,[{text:`* +${N.split(` +`).map(D=>` * ${D}`).join(` +`)} + `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return T}}function uEe(e){switch(e.kind){case 173:case 174:case 179:case 176:case 180:case 262:return!0}return!1}function _Ee(e,t,r){const i=ps(e,t),s=Vn(i,uEe);if(!s||Ko(s)&&s.body&&sI(s.body,t))return;const o=r.getTypeChecker(),c=s.symbol;if(!c)return;const u=c.declarations;if(Xe(u)<=1||!Pn(u,x=>qn(x)===e)||!uEe(u[0]))return;const f=u[0].kind;if(!Pn(u,x=>x.kind===f))return;const g=u;if(Pe(g,x=>!!x.typeParameters||Pe(x.parameters,T=>!!T.modifiers||!Je(T.name))))return;const d=Oi(g,x=>o.getSignatureFromDeclaration(x));if(Xe(d)!==Xe(u))return;const y=o.getReturnTypeOfSignature(d[0]);if(Pn(d,x=>o.getReturnTypeOfSignature(x)===y))return g}var CY,epe,tpe,sQe=K({"src/services/refactors/convertOverloadListToSingleSignature.ts"(){ci(),rh(),CY="Convert overload list to single signature",epe=zs(p.Convert_overload_list_to_single_signature),tpe={name:CY,description:epe,kind:"refactor.rewrite.function.overloadList"},Wh(CY,{kinds:[tpe.kind],getEditsForAction:iQe,getAvailableActions:rQe})}});function aQe(e){const{file:t,startPosition:r,triggerReason:i}=e,s=fEe(t,r,i==="invoked");return s?E0(s)?e.preferences.provideRefactorNotApplicableReason?[{name:EY,description:npe,actions:[{...Yj,notApplicableReason:s.error},{...LI,notApplicableReason:s.error}]}]:Ke:[{name:EY,description:npe,actions:[s.addBraces?Yj:LI]}]:Ke}function oQe(e,t){const{file:r,startPosition:i}=e,s=fEe(r,i);w.assert(s&&!E0(s),"Expected applicable refactor info");const{expression:o,returnStatement:c,func:u}=s;let f;if(t===Yj.name){const d=L.createReturnStatement(o);f=L.createBlock([d],!0),y3(o,d,r,3,!0)}else if(t===LI.name&&c){const d=o||L.createVoidZero();f=hj(d)?L.createParenthesizedExpression(d):d,bI(c,f,r,3,!1),y3(c,f,r,3,!1),dD(c,f,r,3,!1)}else w.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:gr.ChangeTracker.with(e,d=>{d.replaceNode(r,u.body,f)})}}function fEe(e,t,r=!0,i){const s=ps(e,t),o=hp(s);if(!o)return{error:zs(p.Could_not_find_a_containing_arrow_function)};if(!ec(o))return{error:zs(p.Containing_function_is_not_an_arrow_function)};if(!(!jp(o,s)||jp(o.body,s)&&!r)){if(v2(Yj.kind,i)&&vt(o.body))return{func:o,addBraces:!0,expression:o.body};if(v2(LI.kind,i)&&na(o.body)&&o.body.statements.length===1){const c=Ka(o.body.statements);if(rm(c)){const u=c.expression&&Va(x4(c.expression,!1))?L.createParenthesizedExpression(c.expression):c.expression;return{func:o,addBraces:!1,expression:u,returnStatement:c}}}}}var EY,npe,Yj,LI,cQe=K({"src/services/refactors/addOrRemoveBracesToArrowFunction.ts"(){ci(),rh(),EY="Add or remove braces in an arrow function",npe=zs(p.Add_or_remove_braces_in_an_arrow_function),Yj={name:"Add braces to arrow function",description:zs(p.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},LI={name:"Remove braces from arrow function",description:zs(p.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"},Wh(EY,{kinds:[LI.kind],getEditsForAction:oQe,getAvailableActions:aQe})}}),lQe={},uQe=K({"src/services/_namespaces/ts.refactor.addOrRemoveBracesToArrowFunction.ts"(){sQe(),cQe()}});function _Qe(e){const{file:t,startPosition:r,program:i,kind:s}=e,o=dEe(t,r,i);if(!o)return Ke;const{selectedVariableDeclaration:c,func:u}=o,f=[],g=[];if(v2(RI.kind,s)){const d=c||ec(u)&&Ji(u.parent)?void 0:zs(p.Could_not_convert_to_named_function);d?g.push({...RI,notApplicableReason:d}):f.push(RI)}if(v2(MI.kind,s)){const d=!c&&ec(u)?void 0:zs(p.Could_not_convert_to_anonymous_function);d?g.push({...MI,notApplicableReason:d}):f.push(MI)}if(v2(jI.kind,s)){const d=Xo(u)?void 0:zs(p.Could_not_convert_to_arrow_function);d?g.push({...jI,notApplicableReason:d}):f.push(jI)}return[{name:rpe,description:hEe,actions:f.length===0&&e.preferences.provideRefactorNotApplicableReason?g:f}]}function fQe(e,t){const{file:r,startPosition:i,program:s}=e,o=dEe(r,i,s);if(!o)return;const{func:c}=o,u=[];switch(t){case MI.name:u.push(...gQe(e,c));break;case RI.name:const f=mQe(c);if(!f)return;u.push(...hQe(e,c,f));break;case jI.name:if(!Xo(c))return;u.push(...yQe(e,c));break;default:return w.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:u}}function pEe(e){let t=!1;return e.forEachChild(function r(i){if(f3(i)){t=!0;return}!fi(i)&&!Wl(i)&&!Xo(i)&&Xs(i,r)}),t}function dEe(e,t,r){const i=ps(e,t),s=r.getTypeChecker(),o=dQe(e,s,i.parent);if(o&&!pEe(o.body)&&!s.containsArgumentsReference(o))return{selectedVariableDeclaration:!0,func:o};const c=hp(i);if(c&&(Xo(c)||ec(c))&&!jp(c.body,i)&&!pEe(c.body)&&!s.containsArgumentsReference(c))return Xo(c)&&gEe(e,s,c)?void 0:{selectedVariableDeclaration:!1,func:c}}function pQe(e){return Ji(e)||_u(e)&&e.declarations.length===1}function dQe(e,t,r){if(!pQe(r))return;const s=(Ji(r)?r:Ka(r.declarations)).initializer;if(s&&(ec(s)||Xo(s)&&!gEe(e,t,s)))return s}function mEe(e){if(vt(e)){const t=L.createReturnStatement(e),r=e.getSourceFile();return ut(t,e),Zf(t),bI(e,t,r,void 0,!0),L.createBlock([t],!0)}else return e}function mQe(e){const t=e.parent;if(!Ji(t)||!EP(t))return;const r=t.parent,i=r.parent;if(!(!_u(r)||!Xc(i)||!Je(t.name)))return{variableDeclaration:t,variableDeclarationList:r,statement:i,name:t.name}}function gQe(e,t){const{file:r}=e,i=mEe(t.body),s=L.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,i);return gr.ChangeTracker.with(e,o=>o.replaceNode(r,t,s))}function hQe(e,t,r){const{file:i}=e,s=mEe(t.body),{variableDeclaration:o,variableDeclarationList:c,statement:u,name:f}=r;PQ(u);const g=Vv(o)&32|M_(t),d=L.createModifiersFromModifierFlags(g),y=L.createFunctionDeclaration(Xe(d)?d:void 0,t.asteriskToken,f,t.typeParameters,t.parameters,t.type,s);return c.declarations.length===1?gr.ChangeTracker.with(e,x=>x.replaceNode(i,u,y)):gr.ChangeTracker.with(e,x=>{x.delete(i,o),x.insertNodeAfter(i,u,y)})}function yQe(e,t){const{file:r}=e,s=t.body.statements[0];let o;vQe(t.body,s)?(o=s.expression,Zf(o),zx(s,o)):o=t.body;const c=L.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,L.createToken(39),o);return gr.ChangeTracker.with(e,u=>u.replaceNode(r,t,c))}function vQe(e,t){return e.statements.length===1&&rm(t)&&!!t.expression}function gEe(e,t,r){return!!r.name&&Qo.Core.isSymbolReferencedInFile(r.name,t,e)}var rpe,hEe,MI,RI,jI,bQe=K({"src/services/refactors/convertArrowFunctionOrFunctionExpression.ts"(){ci(),rh(),rpe="Convert arrow function or function expression",hEe=zs(p.Convert_arrow_function_or_function_expression),MI={name:"Convert to anonymous function",description:zs(p.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},RI={name:"Convert to named function",description:zs(p.Convert_to_named_function),kind:"refactor.rewrite.function.named"},jI={name:"Convert to arrow function",description:zs(p.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"},Wh(rpe,{kinds:[MI.kind,RI.kind,jI.kind],getEditsForAction:fQe,getAvailableActions:_Qe})}}),SQe={},xQe=K({"src/services/_namespaces/ts.refactor.convertArrowFunctionOrFunctionExpression.ts"(){bQe()}});function TQe(e){const{file:t,startPosition:r}=e;return L_(t)||!bEe(t,r,e.program.getTypeChecker())?Ke:[{name:Kj,description:ope,actions:[cpe]}]}function kQe(e,t){w.assert(t===Kj,"Unexpected action name");const{file:r,startPosition:i,program:s,cancellationToken:o,host:c}=e,u=bEe(r,i,s.getTypeChecker());if(!u||!o)return;const f=EQe(u,s,o);return f.valid?{renameFilename:void 0,renameLocation:void 0,edits:gr.ChangeTracker.with(e,d=>CQe(r,s,c,d,u,f))}:{edits:[]}}function CQe(e,t,r,i,s,o){const c=o.signature,u=Kt(kEe(s,t,r),d=>Sc(d));if(c){const d=Kt(kEe(c,t,r),y=>Sc(y));g(c,d)}g(s,u);const f=io(o.functionCalls,(d,y)=>mc(d.pos,y.pos));for(const d of f)if(d.arguments&&d.arguments.length){const y=Sc(MQe(s,d.arguments),!0);i.replaceNodeRange(qn(d),Ka(d.arguments),so(d.arguments),y,{leadingTriviaOption:gr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:gr.TrailingTriviaOption.Include})}function g(d,y){i.replaceNodeRangeWithNodes(e,Ka(d.parameters),so(d.parameters),y,{joiner:", ",indentation:0,leadingTriviaOption:gr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:gr.TrailingTriviaOption.Include})}}function EQe(e,t,r){const i=jQe(e),s=$c(e)?RQe(e):[],o=ks([...i,...s],ly),c=t.getTypeChecker(),u=Ys(o,y=>Qo.getReferenceEntriesForNode(-1,y,t,t.getSourceFiles(),r)),f=g(u);return Pn(f.declarations,y=>Ai(o,y))||(f.valid=!1),f;function g(y){const x={accessExpressions:[],typeUsages:[]},T={functionCalls:[],declarations:[],classReferences:x,valid:!0},C=Kt(i,d),N=Kt(s,d),D=$c(e),M=Kt(i,V=>ipe(V,c));for(const V of y){if(V.kind===Qo.EntryKind.Span){T.valid=!1;continue}if(Ai(M,d(V.node))){if(AQe(V.node.parent)){T.signature=V.node.parent;continue}const Z=vEe(V);if(Z){T.functionCalls.push(Z);continue}}const G=ipe(V.node,c);if(G&&Ai(M,G)){const Z=spe(V);if(Z){T.declarations.push(Z);continue}}if(Ai(C,d(V.node))||aD(V.node)){if(yEe(V))continue;const z=spe(V);if(z){T.declarations.push(z);continue}const ce=vEe(V);if(ce){T.functionCalls.push(ce);continue}}if(D&&Ai(N,d(V.node))){if(yEe(V))continue;const z=spe(V);if(z){T.declarations.push(z);continue}const ce=PQe(V);if(ce){x.accessExpressions.push(ce);continue}if(ql(e.parent)){const J=wQe(V);if(J){x.typeUsages.push(J);continue}}}T.valid=!1}return T}function d(y){const x=c.getSymbolAtLocation(y);return x&&CQ(x,c)}}function ipe(e,t){const r=UI(e);if(r){const i=t.getContextualTypeForObjectLiteralElement(r),s=i==null?void 0:i.getSymbol();if(s&&!(Uc(s)&6))return s}}function yEe(e){const t=e.node;if(Df(t.parent)||Yg(t.parent)||Tu(t.parent)||F1(t.parent)||h_(t.parent)||Qc(t.parent))return t}function spe(e){if(g_(e.node.parent))return e.node}function vEe(e){if(e.node.parent){const t=e.node,r=t.parent;switch(r.kind){case 213:case 214:const i=si(r,Zm);if(i&&i.expression===t)return i;break;case 211:const s=si(r,Jr);if(s&&s.parent&&s.name===t){const c=si(s.parent,Zm);if(c&&c.expression===s)return c}break;case 212:const o=si(r,uc);if(o&&o.parent&&o.argumentExpression===t){const c=si(o.parent,Zm);if(c&&c.expression===o)return c}break}}}function PQe(e){if(e.node.parent){const t=e.node,r=t.parent;switch(r.kind){case 211:const i=si(r,Jr);if(i&&i.expression===t)return i;break;case 212:const s=si(r,uc);if(s&&s.expression===t)return s;break}}}function wQe(e){const t=e.node;if(jx(t)===2||P9(t.parent))return t}function bEe(e,t,r){const i=p3(e,t),s=Cse(i);if(!DQe(i)&&s&&NQe(s,r)&&jp(s,i)&&!(s.body&&jp(s.body,i)))return s}function DQe(e){const t=Vn(e,W6);if(t){const r=Vn(t,i=>!W6(i));return!!r&&Ko(r)}return!1}function AQe(e){return Xg(e)&&(J_(e.parent)||Xf(e.parent))}function NQe(e,t){var r;if(!IQe(e.parameters,t))return!1;switch(e.kind){case 262:return SEe(e)&&Zj(e,t);case 174:if(Va(e.parent)){const i=ipe(e.name,t);return((r=i==null?void 0:i.declarations)==null?void 0:r.length)===1&&Zj(e,t)}return Zj(e,t);case 176:return ql(e.parent)?SEe(e.parent)&&Zj(e,t):xEe(e.parent.parent)&&Zj(e,t);case 218:case 219:return xEe(e.parent)}return!1}function Zj(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function SEe(e){return e.name?!0:!!m3(e,90)}function IQe(e,t){return FQe(e)>=CEe&&Pn(e,r=>OQe(r,t))}function OQe(e,t){if(Ah(e)){const r=t.getTypeAtLocation(e);if(!t.isArrayType(r)&&!t.isTupleType(r))return!1}return!e.modifiers&&Je(e.name)}function xEe(e){return Ji(e)&&Y6(e)&&Je(e.name)&&!e.type}function ape(e){return e.length>0&&f3(e[0].name)}function FQe(e){return ape(e)?e.length-1:e.length}function TEe(e){return ape(e)&&(e=L.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function LQe(e,t){return Je(t)&&Ad(t)===e?L.createShorthandPropertyAssignment(e):L.createPropertyAssignment(e,t)}function MQe(e,t){const r=TEe(e.parameters),i=Ah(so(r)),s=i?t.slice(0,r.length-1):t,o=Kt(s,(u,f)=>{const g=PY(r[f]),d=LQe(g,u);return Zf(d.name),Ml(d)&&Zf(d.initializer),zx(u,d),d});if(i&&t.length>=r.length){const u=t.slice(r.length-1),f=L.createPropertyAssignment(PY(so(r)),L.createArrayLiteralExpression(u));o.push(f)}return L.createObjectLiteralExpression(o,!1)}function kEe(e,t,r){const i=t.getTypeChecker(),s=TEe(e.parameters),o=Kt(s,d),c=L.createObjectBindingPattern(o),u=y(s);let f;Pn(s,C)&&(f=L.createObjectLiteralExpression());const g=L.createParameterDeclaration(void 0,void 0,c,void 0,u,f);if(ape(e.parameters)){const N=e.parameters[0],D=L.createParameterDeclaration(void 0,void 0,N.name,void 0,N.type);return Zf(D.name),zx(N.name,D.name),N.type&&(Zf(D.type),zx(N.type,D.type)),L.createNodeArray([D,g])}return L.createNodeArray([g]);function d(N){const D=L.createBindingElement(void 0,void 0,PY(N),Ah(N)&&C(N)?L.createArrayLiteralExpression():N.initializer);return Zf(D),N.initializer&&D.initializer&&zx(N.initializer,D.initializer),D}function y(N){const D=Kt(N,x);return og(L.createTypeLiteralNode(D),1)}function x(N){let D=N.type;!D&&(N.initializer||Ah(N))&&(D=T(N));const M=L.createPropertySignature(void 0,PY(N),C(N)?L.createToken(58):N.questionToken,D);return Zf(M),zx(N.name,M.name),N.type&&M.type&&zx(N.type,M.type),M}function T(N){const D=i.getTypeAtLocation(N);return gD(D,N,t,r)}function C(N){if(Ah(N)){const D=i.getTypeAtLocation(N);return!i.isTupleType(D)}return i.isOptionalParameter(N)}}function PY(e){return Ad(e.name)}function RQe(e){switch(e.parent.kind){case 263:const t=e.parent;return t.name?[t.name]:[w.checkDefined(m3(t,90),"Nameless class declaration should be a default export")];case 231:const i=e.parent,s=e.parent.parent,o=i.name;return o?[o,s.name]:[s.name]}}function jQe(e){switch(e.kind){case 262:return e.name?[e.name]:[w.checkDefined(m3(e,90),"Nameless function declaration should be a default export")];case 174:return[e.name];case 176:const r=w.checkDefined(wo(e,137,e.getSourceFile()),"Constructor declaration should have constructor keyword");return e.parent.kind===231?[e.parent.parent.name,r]:[r];case 219:return[e.parent.name];case 218:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return w.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}var Kj,CEe,ope,cpe,BQe=K({"src/services/refactors/convertParamsToDestructuredObject.ts"(){ci(),rh(),Kj="Convert parameters to destructured object",CEe=1,ope=zs(p.Convert_parameters_to_destructured_object),cpe={name:Kj,description:ope,kind:"refactor.rewrite.parameters.toDestructured"},Wh(Kj,{kinds:[cpe.kind],getEditsForAction:kQe,getAvailableActions:TQe})}}),JQe={},zQe=K({"src/services/_namespaces/ts.refactor.convertParamsToDestructuredObject.ts"(){BQe()}});function UQe(e){const{file:t,startPosition:r}=e,i=EEe(t,r),s=lpe(i),o=Ba(s),c={name:wY,description:DY,actions:[]};return o&&e.triggerReason!=="invoked"?Ke:Oh(s)&&(o||mr(s)&&upe(s).isValidConcatenation)?(c.actions.push(AY),[c]):e.preferences.provideRefactorNotApplicableReason?(c.actions.push({...AY,notApplicableReason:zs(p.Can_only_convert_string_concatenations_and_string_literals)}),[c]):Ke}function EEe(e,t){const r=ps(e,t),i=lpe(r);return!upe(i).isValidConcatenation&&df(i.parent)&&mr(i.parent.parent)?i.parent.parent:r}function VQe(e,t){const{file:r,startPosition:i}=e,s=EEe(r,i);switch(t){case DY:return{edits:WQe(e,s)};default:return w.fail("invalid action")}}function WQe(e,t){const r=lpe(t),i=e.file,s=GQe(upe(r),i),o=Jv(i.text,r.end);if(o){const c=o[o.length-1],u={pos:o[0].pos,end:c.end};return gr.ChangeTracker.with(e,f=>{f.deleteRange(i,u),f.replaceNode(i,r,s)})}else return gr.ChangeTracker.with(e,c=>c.replaceNode(i,r,s))}function qQe(e){return!(e.operatorToken.kind===64||e.operatorToken.kind===65)}function lpe(e){return Vn(e.parent,r=>{switch(r.kind){case 211:case 212:return!1;case 228:case 226:return!(mr(r.parent)&&qQe(r.parent));default:return"quit"}})||e}function upe(e){const t=c=>{if(!mr(c))return{nodes:[c],operators:[],validOperators:!0,hasString:Ba(c)||Jk(c)};const{nodes:u,operators:f,hasString:g,validOperators:d}=t(c.left);if(!(g||Ba(c.right)||ZL(c.right)))return{nodes:[c],operators:[],hasString:!1,validOperators:!0};const y=c.operatorToken.kind===40,x=d&&y;return u.push(c.right),f.push(c.operatorToken),{nodes:u,operators:f,hasString:!0,validOperators:x}},{nodes:r,operators:i,validOperators:s,hasString:o}=t(e);return{nodes:r,operators:i,isValidConcatenation:s&&o}}function HQe(e){return e.replace(/\\.|[$`]/g,t=>t[0]==="\\"?t:"\\"+t)}function PEe(e){const t=zk(e)||bH(e)?-2:-1;return Ol(e).slice(1,t)}function wEe(e,t){const r=[];let i="",s="";for(;e{DEe(G);const z=Z===x.templateSpans.length-1,ce=G.literal.text+(z?C:""),J=PEe(G.literal)+(z?N:"");return L.createTemplateSpan(G.expression,M&&z?L.createTemplateTail(ce,J):L.createTemplateMiddle(ce,J))});g.push(...V)}else{const V=M?L.createTemplateTail(C,N):L.createTemplateMiddle(C,N);s(D,V),g.push(L.createTemplateSpan(x,V))}}return L.createTemplateExpression(d,g)}function DEe(e){const t=e.getSourceFile();dD(e,e.expression,t,3,!1),bI(e.expression,e.expression,t,3,!1)}function $Qe(e){return df(e)&&(DEe(e),e=e.expression),e}var wY,DY,AY,AEe,NEe,XQe=K({"src/services/refactors/convertStringOrTemplateLiteral.ts"(){ci(),rh(),wY="Convert to template string",DY=zs(p.Convert_to_template_string),AY={name:wY,description:DY,kind:"refactor.rewrite.string"},Wh(wY,{kinds:[AY.kind],getEditsForAction:VQe,getAvailableActions:UQe}),AEe=(e,t)=>(r,i)=>{r(i,s)=>{for(;i.length>0;){const o=i.shift();dD(e[o],s,t,3,!1),r(o,s)}}}}),QQe={},YQe=K({"src/services/_namespaces/ts.refactor.convertStringOrTemplateLiteral.ts"(){XQe()}});function ZQe(e){const t=IEe(e,e.triggerReason==="invoked");return t?E0(t)?e.preferences.provideRefactorNotApplicableReason?[{name:eB,description:OY,actions:[{...FY,notApplicableReason:t.error}]}]:Ke:[{name:eB,description:OY,actions:[FY]}]:Ke}function KQe(e,t){const r=IEe(e);return w.assert(r&&!E0(r),"Expected applicable refactor info"),{edits:gr.ChangeTracker.with(e,s=>oYe(e.file,e.program.getTypeChecker(),s,r)),renameFilename:void 0,renameLocation:void 0}}function NY(e){return mr(e)||M4(e)}function eYe(e){return xu(e)||rm(e)||Xc(e)}function IY(e){return NY(e)||eYe(e)}function IEe(e,t=!0){const{file:r,program:i}=e,s=gC(e),o=s.length===0;if(o&&!t)return;const c=ps(r,s.start),u=tj(r,s.start+s.length),f=Il(c.pos,u&&u.end>=c.pos?u.getEnd():c.getEnd()),g=o?sYe(c):iYe(c,f),d=g&&IY(g)?aYe(g):void 0;if(!d)return{error:zs(p.Could_not_find_convertible_access_expression)};const y=i.getTypeChecker();return M4(d)?tYe(d,y):nYe(d)}function tYe(e,t){const r=e.condition,i=fpe(e.whenTrue);if(!i||t.isNullableType(t.getTypeAtLocation(i)))return{error:zs(p.Could_not_find_convertible_access_expression)};if((Jr(r)||Je(r))&&_pe(r,i.expression))return{finalExpression:i,occurrences:[r],expression:e};if(mr(r)){const s=OEe(i.expression,r);return s?{finalExpression:i,occurrences:s,expression:e}:{error:zs(p.Could_not_find_matching_access_expressions)}}}function nYe(e){if(e.operatorToken.kind!==56)return{error:zs(p.Can_only_convert_logical_AND_access_chains)};const t=fpe(e.right);if(!t)return{error:zs(p.Could_not_find_convertible_access_expression)};const r=OEe(t.expression,e.left);return r?{finalExpression:t,occurrences:r,expression:e}:{error:zs(p.Could_not_find_matching_access_expressions)}}function OEe(e,t){const r=[];for(;mr(t)&&t.operatorToken.kind===56;){const s=_pe(Eo(e),Eo(t.right));if(!s)break;r.push(s),e=s,t=t.left}const i=_pe(e,t);return i&&r.push(i),r.length>0?r:void 0}function _pe(e,t){if(!(!Je(t)&&!Jr(t)&&!uc(t)))return rYe(e,t)?t:void 0}function rYe(e,t){for(;(ma(e)||Jr(e)||uc(e))&&BI(e)!==BI(t);)e=e.expression;for(;Jr(e)&&Jr(t)||uc(e)&&uc(t);){if(BI(e)!==BI(t))return!1;e=e.expression,t=t.expression}return Je(e)&&Je(t)&&e.getText()===t.getText()}function BI(e){if(Je(e)||Ip(e))return e.getText();if(Jr(e))return BI(e.name);if(uc(e))return BI(e.argumentExpression)}function iYe(e,t){for(;e.parent;){if(IY(e)&&t.length!==0&&e.end>=t.start+t.length)return e;e=e.parent}}function sYe(e){for(;e.parent;){if(IY(e)&&!IY(e.parent))return e;e=e.parent}}function aYe(e){if(NY(e))return e;if(Xc(e)){const t=xk(e),r=t==null?void 0:t.initializer;return r&&NY(r)?r:void 0}return e.expression&&NY(e.expression)?e.expression:void 0}function fpe(e){if(e=Eo(e),mr(e))return fpe(e.left);if((Jr(e)||uc(e)||ma(e))&&!m_(e))return e}function FEe(e,t,r){if(Jr(t)||uc(t)||ma(t)){const i=FEe(e,t.expression,r),s=r.length>0?r[r.length-1]:void 0,o=(s==null?void 0:s.getText())===t.expression.getText();if(o&&r.pop(),ma(t))return o?L.createCallChain(i,L.createToken(29),t.typeArguments,t.arguments):L.createCallChain(i,t.questionDotToken,t.typeArguments,t.arguments);if(Jr(t))return o?L.createPropertyAccessChain(i,L.createToken(29),t.name):L.createPropertyAccessChain(i,t.questionDotToken,t.name);if(uc(t))return o?L.createElementAccessChain(i,L.createToken(29),t.argumentExpression):L.createElementAccessChain(i,t.questionDotToken,t.argumentExpression)}return t}function oYe(e,t,r,i,s){const{finalExpression:o,occurrences:c,expression:u}=i,f=c[c.length-1],g=FEe(t,o,c);g&&(Jr(g)||uc(g)||ma(g))&&(mr(u)?r.replaceNodeRange(e,f,o,g):M4(u)&&r.replaceNode(e,u,L.createBinaryExpression(g,L.createToken(61),u.whenFalse)))}var eB,OY,FY,cYe=K({"src/services/refactors/convertToOptionalChainExpression.ts"(){ci(),rh(),eB="Convert to optional chain expression",OY=zs(p.Convert_to_optional_chain_expression),FY={name:eB,description:OY,kind:"refactor.rewrite.expression.optionalChain"},Wh(eB,{kinds:[FY.kind],getEditsForAction:KQe,getAvailableActions:ZQe})}}),lYe={},uYe=K({"src/services/_namespaces/ts.refactor.convertToOptionalChainExpression.ts"(){cYe()}});function LEe(e){const t=e.kind,r=ppe(e.file,gC(e),e.triggerReason==="invoked"),i=r.targetRange;if(i===void 0){if(!r.errors||r.errors.length===0||!e.preferences.provideRefactorNotApplicableReason)return Ke;const C=[];return v2(k3.kind,t)&&C.push({name:x3,description:k3.description,actions:[{...k3,notApplicableReason:T(r.errors)}]}),v2(T3.kind,t)&&C.push({name:x3,description:T3.description,actions:[{...T3,notApplicableReason:T(r.errors)}]}),C}const s=gYe(i,e);if(s===void 0)return Ke;const o=[],c=new Map;let u;const f=[],g=new Map;let d,y=0;for(const{functionExtraction:C,constantExtraction:N}of s){if(v2(k3.kind,t)){const D=C.description;C.errors.length===0?c.has(D)||(c.set(D,!0),o.push({description:D,name:`function_scope_${y}`,kind:k3.kind})):u||(u={description:D,name:`function_scope_${y}`,notApplicableReason:T(C.errors),kind:k3.kind})}if(v2(T3.kind,t)){const D=N.description;N.errors.length===0?g.has(D)||(g.set(D,!0),f.push({description:D,name:`constant_scope_${y}`,kind:T3.kind})):d||(d={description:D,name:`constant_scope_${y}`,notApplicableReason:T(N.errors),kind:T3.kind})}y++}const x=[];return o.length?x.push({name:x3,description:zs(p.Extract_function),actions:o}):e.preferences.provideRefactorNotApplicableReason&&u&&x.push({name:x3,description:zs(p.Extract_function),actions:[u]}),f.length?x.push({name:x3,description:zs(p.Extract_constant),actions:f}):e.preferences.provideRefactorNotApplicableReason&&d&&x.push({name:x3,description:zs(p.Extract_constant),actions:[d]}),x.length?x:Ke;function T(C){let N=C[0].messageText;return typeof N!="string"&&(N=N.messageText),N}}function MEe(e,t){const i=ppe(e.file,gC(e)).targetRange,s=/^function_scope_(\d+)$/.exec(t);if(s){const c=+s[1];return w.assert(isFinite(c),"Expected to parse a finite number from the function scope index"),dYe(i,e,c)}const o=/^constant_scope_(\d+)$/.exec(t);if(o){const c=+o[1];return w.assert(isFinite(c),"Expected to parse a finite number from the constant scope index"),mYe(i,e,c)}w.fail("Unrecognized action name")}function ppe(e,t,r=!0){const{length:i}=t;if(i===0&&!r)return{errors:[bu(e,t.start,i,qu.cannotExtractEmpty)]};const s=i===0&&r,o=S_e(e,t.start),c=tj(e,pl(t)),u=o&&c&&r?_Ye(o,c,e):t,f=s?MYe(o):gI(o,e,u),g=s?f:gI(c,e,u);let d=0,y;if(!f||!g)return{errors:[bu(e,t.start,i,qu.cannotExtractRange)]};if(f.flags&16777216)return{errors:[bu(e,t.start,i,qu.cannotExtractJSDoc)]};if(f.parent!==g.parent)return{errors:[bu(e,t.start,i,qu.cannotExtractRange)]};if(f!==g){if(!jEe(f.parent))return{errors:[bu(e,t.start,i,qu.cannotExtractRange)]};const V=[];for(const G of f.parent.statements){if(G===f||V.length){const Z=M(G);if(Z)return{errors:Z};V.push(G)}if(G===g)break}return V.length?{targetRange:{range:V,facts:d,thisNode:y}}:{errors:[bu(e,t.start,i,qu.cannotExtractRange)]}}if(rm(f)&&!f.expression)return{errors:[bu(e,t.start,i,qu.cannotExtractRange)]};const x=C(f),T=N(x)||M(x);if(T)return{errors:T};return{targetRange:{range:fYe(x),facts:d,thisNode:y}};function C(V){if(rm(V)){if(V.expression)return V.expression}else if(Xc(V)||_u(V)){const G=Xc(V)?V.declarationList.declarations:V.declarations;let Z=0,z;for(const ce of G)ce.initializer&&(Z++,z=ce.initializer);if(Z===1)return z}else if(Ji(V)&&V.initializer)return V.initializer;return V}function N(V){if(Je(xu(V)?V.expression:V))return[Rr(V,qu.cannotExtractIdentifier)]}function D(V,G){let Z=V;for(;Z!==G;){if(Z.kind===172){da(Z)&&(d|=32);break}else if(Z.kind===169){hp(Z).kind===176&&(d|=32);break}else Z.kind===174&&da(Z)&&(d|=32);Z=Z.parent}}function M(V){let G;if((ge=>{ge[ge.None=0]="None",ge[ge.Break=1]="Break",ge[ge.Continue=2]="Continue",ge[ge.Return=4]="Return"})(G||(G={})),w.assert(V.pos<=V.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),w.assert(!Em(V.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!Xi(V)&&!(Oh(V)&&REe(V))&&!ype(V))return[Rr(V,qu.statementOrExpressionExpected)];if(V.flags&33554432)return[Rr(V,qu.cannotExtractAmbientBlock)];const Z=Du(V);Z&&D(V,Z);let z,ce=4,J;if(ne(V),d&8){const ge=_f(V,!1,!1);(ge.kind===262||ge.kind===174&&ge.parent.kind===210||ge.kind===218)&&(d|=16)}return z;function ne(ge){if(z)return!0;if(g_(ge)){const Q=ge.kind===260?ge.parent.parent:ge;if(Kr(Q,32))return(z||(z=[])).push(Rr(ge,qu.cannotExtractExportedEntity)),!0}switch(ge.kind){case 272:return(z||(z=[])).push(Rr(ge,qu.cannotExtractImport)),!0;case 277:return(z||(z=[])).push(Rr(ge,qu.cannotExtractExportedEntity)),!0;case 108:if(ge.parent.kind===213){const Q=Du(ge);if(Q===void 0||Q.pos=t.start+t.length)return(z||(z=[])).push(Rr(ge,qu.cannotExtractSuper)),!0}else d|=8,y=ge;break;case 219:Xs(ge,function Q(X){if(f3(X))d|=8,y=ge;else{if(fi(X)||oa(X)&&!ec(X))return!1;Xs(X,Q)}});case 263:case 262:es(ge.parent)&&ge.parent.externalModuleIndicator===void 0&&(z||(z=[])).push(Rr(ge,qu.functionWillNotBeVisibleInTheNewScope));case 231:case 218:case 174:case 176:case 177:case 178:return!1}const ve=ce;switch(ge.kind){case 245:ce&=-5;break;case 258:ce=0;break;case 241:ge.parent&&ge.parent.kind===258&&ge.parent.finallyBlock===ge&&(ce=4);break;case 297:case 296:ce|=1;break;default:m1(ge,!1)&&(ce|=3);break}switch(ge.kind){case 197:case 110:d|=8,y=ge;break;case 256:{const Q=ge.label;(J||(J=[])).push(Q.escapedText),Xs(ge,ne),J.pop();break}case 252:case 251:{const Q=ge.label;Q?Ai(J,Q.escapedText)||(z||(z=[])).push(Rr(ge,qu.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):ce&(ge.kind===252?1:2)||(z||(z=[])).push(Rr(ge,qu.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 223:d|=4;break;case 229:d|=2;break;case 253:ce&4?d|=1:(z||(z=[])).push(Rr(ge,qu.cannotExtractRangeContainingConditionalReturnStatement));break;default:Xs(ge,ne);break}ce=ve}}}function _Ye(e,t,r){const i=e.getStart(r);let s=t.getEnd();return r.text.charCodeAt(s)===59&&s++,{start:i,length:s-i}}function fYe(e){if(Xi(e))return[e];if(Oh(e))return xu(e.parent)?[e.parent]:e;if(ype(e))return e}function dpe(e){return ec(e)?sW(e.body):Ko(e)||es(e)||lg(e)||fi(e)}function pYe(e){let t=Fy(e.range)?Ka(e.range):e.range;if(e.facts&8&&!(e.facts&16)){const i=Du(t);if(i){const s=Vn(t,Ko);return s?[s,i]:[i]}}const r=[];for(;;)if(t=t.parent,t.kind===169&&(t=Vn(t,i=>Ko(i)).parent),dpe(t)&&(r.push(t),t.kind===312))return r}function dYe(e,t,r){const{scopes:i,readsAndWrites:{target:s,usagesPerScope:o,functionErrorsPerScope:c,exposedVariableDeclarations:u}}=mpe(e,t);return w.assert(!c[r].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),xYe(s,i[r],o[r],u,e,t)}function mYe(e,t,r){const{scopes:i,readsAndWrites:{target:s,usagesPerScope:o,constantErrorsPerScope:c,exposedVariableDeclarations:u}}=mpe(e,t);w.assert(!c[r].length,"The extraction went missing? How?"),w.assert(u.length===0,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested();const f=vt(s)?s:s.statements[0].expression;return TYe(f,i[r],o[r],e.facts,t)}function gYe(e,t){const{scopes:r,readsAndWrites:{functionErrorsPerScope:i,constantErrorsPerScope:s}}=mpe(e,t);return r.map((c,u)=>{const f=hYe(c),g=yYe(c),d=Ko(c)?vYe(c):fi(c)?bYe(c):SYe(c);let y,x;return d===1?(y=Bh(zs(p.Extract_to_0_in_1_scope),[f,"global"]),x=Bh(zs(p.Extract_to_0_in_1_scope),[g,"global"])):d===0?(y=Bh(zs(p.Extract_to_0_in_1_scope),[f,"module"]),x=Bh(zs(p.Extract_to_0_in_1_scope),[g,"module"])):(y=Bh(zs(p.Extract_to_0_in_1),[f,d]),x=Bh(zs(p.Extract_to_0_in_1),[g,d])),u===0&&!fi(c)&&(x=Bh(zs(p.Extract_to_0_in_enclosing_scope),[g])),{functionExtraction:{description:y,errors:i[u]},constantExtraction:{description:x,errors:s[u]}}})}function mpe(e,t){const{file:r}=t,i=pYe(e),s=FYe(e,r),o=LYe(e,i,s,r,t.program.getTypeChecker(),t.cancellationToken);return{scopes:i,readsAndWrites:o}}function hYe(e){return Ko(e)?"inner function":fi(e)?"method":"function"}function yYe(e){return fi(e)?"readonly field":"constant"}function vYe(e){switch(e.kind){case 176:return"constructor";case 218:case 262:return e.name?`function '${e.name.text}'`:Oj;case 219:return"arrow function";case 174:return`method '${e.name.getText()}'`;case 177:return`'get ${e.name.getText()}'`;case 178:return`'set ${e.name.getText()}'`;default:w.assertNever(e,`Unexpected scope kind ${e.kind}`)}}function bYe(e){return e.kind===263?e.name?`class '${e.name.text}'`:"anonymous class declaration":e.name?`class expression '${e.name.text}'`:"anonymous class expression"}function SYe(e){return e.kind===268?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}function xYe(e,t,{usages:r,typeParameterUsages:i,substitutions:s},o,c,u){const f=u.program.getTypeChecker(),g=go(u.program.getCompilerOptions()),d=a_.createImportAdder(u.file,u.program,u.preferences,u.host),y=t.getSourceFile(),x=Ux(fi(t)?"newMethod":"newFunction",y),T=lr(t),C=L.createIdentifier(x);let N;const D=[],M=[];let V;r.forEach((Ee,Ae)=>{let Le;if(!T){let xe=f.getTypeOfSymbolAtLocation(Ee.symbol,Ee.node);xe=f.getBaseTypeOfLiteralType(xe),Le=a_.typeToAutoImportableTypeNode(f,d,xe,t,g,1)}const Tt=L.createParameterDeclaration(void 0,void 0,Ae,void 0,Le);D.push(Tt),Ee.usage===2&&(V||(V=[])).push(Ee),M.push(L.createIdentifier(Ae))});const Z=Vs(i.values(),Ee=>({type:Ee,declaration:CYe(Ee,u.startPosition)})).sort(EYe),z=Z.length===0?void 0:Oi(Z,({declaration:Ee})=>Ee),ce=z!==void 0?z.map(Ee=>L.createTypeReferenceNode(Ee.name,void 0)):void 0;if(vt(e)&&!T){const Ee=f.getContextualType(e);N=f.typeToTypeNode(Ee,t,1)}const{body:J,returnValueProperty:ne}=wYe(e,o,V,s,!!(c.facts&1));Zf(J);let ge;const ve=!!(c.facts&16);if(fi(t)){const Ee=T?[]:[L.createModifier(123)];c.facts&32&&Ee.push(L.createModifier(126)),c.facts&4&&Ee.push(L.createModifier(134)),ge=L.createMethodDeclaration(Ee.length?Ee:void 0,c.facts&2?L.createToken(42):void 0,C,void 0,z,D,N,J)}else ve&&D.unshift(L.createParameterDeclaration(void 0,void 0,"this",void 0,f.typeToTypeNode(f.getTypeAtLocation(c.thisNode),t,1),void 0)),ge=L.createFunctionDeclaration(c.facts&4?[L.createToken(134)]:void 0,c.facts&2?L.createToken(42):void 0,C,z,D,N,J);const Q=gr.ChangeTracker.fromContext(u),X=(Fy(c.range)?so(c.range):c.range).end,se=NYe(X,t);se?Q.insertNodeBefore(u.file,se,ge,!0):Q.insertNodeAtEndOfScope(u.file,t,ge),d.writeFixes(Q);const pe=[],we=PYe(t,c,x);ve&&M.unshift(L.createIdentifier("this"));let fe=L.createCallExpression(ve?L.createPropertyAccessExpression(we,"call"):we,ce,M);if(c.facts&2&&(fe=L.createYieldExpression(L.createToken(42),fe)),c.facts&4&&(fe=L.createAwaitExpression(fe)),hpe(e)&&(fe=L.createJsxExpression(void 0,fe)),o.length&&!V)if(w.assert(!ne,"Expected no returnValueProperty"),w.assert(!(c.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),o.length===1){const Ee=o[0];pe.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(Sc(Ee.name),void 0,Sc(Ee.type),fe)],Ee.parent.flags)))}else{const Ee=[],Ae=[];let Le=o[0].parent.flags,Tt=!1;for(const ze of o){Ee.push(L.createBindingElement(void 0,void 0,Sc(ze.name)));const st=f.typeToTypeNode(f.getBaseTypeOfLiteralType(f.getTypeAtLocation(ze)),t,1);Ae.push(L.createPropertySignature(void 0,ze.symbol.name,void 0,st)),Tt=Tt||ze.type!==void 0,Le=Le&ze.parent.flags}const xe=Tt?L.createTypeLiteralNode(Ae):void 0;xe&&pr(xe,1),pe.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(L.createObjectBindingPattern(Ee),void 0,xe,fe)],Le)))}else if(o.length||V){if(o.length)for(const Ae of o){let Le=Ae.parent.flags;Le&2&&(Le=Le&-3|1),pe.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(Ae.symbol.name,void 0,Se(Ae.type))],Le)))}ne&&pe.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(ne,void 0,Se(N))],1)));const Ee=gpe(o,V);ne&&Ee.unshift(L.createShorthandPropertyAssignment(ne)),Ee.length===1?(w.assert(!ne,"Shouldn't have returnValueProperty here"),pe.push(L.createExpressionStatement(L.createAssignment(Ee[0].name,fe))),c.facts&1&&pe.push(L.createReturnStatement())):(pe.push(L.createExpressionStatement(L.createAssignment(L.createObjectLiteralExpression(Ee),fe))),ne&&pe.push(L.createReturnStatement(L.createIdentifier(ne))))}else c.facts&1?pe.push(L.createReturnStatement(fe)):Fy(c.range)?pe.push(L.createExpressionStatement(fe)):pe.push(fe);Fy(c.range)?Q.replaceNodeRangeWithNodes(u.file,Ka(c.range),so(c.range),pe):Q.replaceNodeWithNodes(u.file,c.range,pe);const ie=Q.getChanges(),Ne=(Fy(c.range)?Ka(c.range):c.range).getSourceFile().fileName,Ue=vI(ie,Ne,x,!1);return{renameFilename:Ne,renameLocation:Ue,edits:ie};function Se(Ee){if(Ee===void 0)return;const Ae=Sc(Ee);let Le=Ae;for(;bx(Le);)Le=Le.type;return A1(Le)&&Cn(Le.types,Tt=>Tt.kind===157)?Ae:L.createUnionTypeNode([Ae,L.createKeywordTypeNode(157)])}}function TYe(e,t,{substitutions:r},i,s){const o=s.program.getTypeChecker(),c=t.getSourceFile(),u=Jr(e)&&!fi(t)&&!o.resolveName(e.name.text,e,111551,!1)&&!Qi(e.name)&&!Wv(e.name)?e.name.text:Ux(fi(t)?"newProperty":"newLocal",c),f=lr(t);let g=f||!o.isContextSensitive(e)?void 0:o.typeToTypeNode(o.getContextualType(e),t,1),d=DYe(Eo(e),r);({variableType:g,initializer:d}=N(g,d)),Zf(d);const y=gr.ChangeTracker.fromContext(s);if(fi(t)){w.assert(!f,"Cannot extract to a JS class");const D=[];D.push(L.createModifier(123)),i&32&&D.push(L.createModifier(126)),D.push(L.createModifier(148));const M=L.createPropertyDeclaration(D,u,void 0,g,d);let V=L.createPropertyAccessExpression(i&32?L.createIdentifier(t.name.getText()):L.createThis(),L.createIdentifier(u));hpe(e)&&(V=L.createJsxExpression(void 0,V));const G=e.pos,Z=IYe(G,t);y.insertNodeBefore(s.file,Z,M,!0),y.replaceNode(s.file,e,V)}else{const D=L.createVariableDeclaration(u,void 0,g,d),M=kYe(e,t);if(M){y.insertNodeBefore(s.file,M,D);const V=L.createIdentifier(u);y.replaceNode(s.file,e,V)}else if(e.parent.kind===244&&t===Vn(e,dpe)){const V=L.createVariableStatement(void 0,L.createVariableDeclarationList([D],2));y.replaceNode(s.file,e.parent,V)}else{const V=L.createVariableStatement(void 0,L.createVariableDeclarationList([D],2)),G=OYe(e,t);if(G.pos===0?y.insertNodeAtTopOfFile(s.file,V,!1):y.insertNodeBefore(s.file,G,V,!1),e.parent.kind===244)y.delete(s.file,e.parent);else{let Z=L.createIdentifier(u);hpe(e)&&(Z=L.createJsxExpression(void 0,Z)),y.replaceNode(s.file,e,Z)}}}const x=y.getChanges(),T=e.getSourceFile().fileName,C=vI(x,T,u,!0);return{renameFilename:T,renameLocation:C,edits:x};function N(D,M){if(D===void 0)return{variableType:D,initializer:M};if(!Xo(M)&&!ec(M)||M.typeParameters)return{variableType:D,initializer:M};const V=o.getTypeAtLocation(e),G=Mg(o.getSignaturesOfType(V,0));if(!G)return{variableType:D,initializer:M};if(G.getTypeParameters())return{variableType:D,initializer:M};const Z=[];let z=!1;for(const ce of M.parameters)if(ce.type)Z.push(ce);else{const J=o.getTypeAtLocation(ce);J===o.getAnyType()&&(z=!0),Z.push(L.updateParameterDeclaration(ce,ce.modifiers,ce.dotDotDotToken,ce.name,ce.questionToken,ce.type||o.typeToTypeNode(J,t,1),ce.initializer))}if(z)return{variableType:D,initializer:M};if(D=void 0,ec(M))M=L.updateArrowFunction(M,sm(e)?lb(e):void 0,M.typeParameters,Z,M.type||o.typeToTypeNode(G.getReturnType(),t,1),M.equalsGreaterThanToken,M.body);else{if(G&&G.thisParameter){const ce=hu(Z);if(!ce||Je(ce.name)&&ce.name.escapedText!=="this"){const J=o.getTypeOfSymbolAtLocation(G.thisParameter,e);Z.splice(0,0,L.createParameterDeclaration(void 0,void 0,"this",void 0,o.typeToTypeNode(J,t,1)))}}M=L.updateFunctionExpression(M,sm(e)?lb(e):void 0,M.asteriskToken,M.name,M.typeParameters,Z,M.type||o.typeToTypeNode(G.getReturnType(),t,1),M.body)}return{variableType:D,initializer:M}}}function kYe(e,t){let r;for(;e!==void 0&&e!==t;){if(Ji(e)&&e.initializer===r&&_u(e.parent)&&e.parent.declarations.length>1)return e;r=e,e=e.parent}}function CYe(e,t){let r;const i=e.symbol;if(i&&i.declarations)for(const s of i.declarations)(r===void 0||s.pos0;if(na(e)&&!o&&i.size===0)return{body:L.createBlock(e.statements,!0),returnValueProperty:void 0};let c,u=!1;const f=L.createNodeArray(na(e)?e.statements.slice(0):[Xi(e)?e:L.createReturnStatement(Eo(e))]);if(o||i.size){const d=Wn(f,g,Xi).slice();if(o&&!s&&Xi(e)){const y=gpe(t,r);y.length===1?d.push(L.createReturnStatement(y[0].name)):d.push(L.createReturnStatement(L.createObjectLiteralExpression(y)))}return{body:L.createBlock(d,!0),returnValueProperty:c}}else return{body:L.createBlock(f,!0),returnValueProperty:void 0};function g(d){if(!u&&rm(d)&&o){const y=gpe(t,r);return d.expression&&(c||(c="__return"),y.unshift(L.createPropertyAssignment(c,tt(d.expression,g,vt)))),y.length===1?L.createReturnStatement(y[0].name):L.createReturnStatement(L.createObjectLiteralExpression(y))}else{const y=u;u=u||Ko(d)||fi(d);const x=i.get(ho(d).toString()),T=x?Sc(x):En(d,g,void 0);return u=y,T}}}function DYe(e,t){return t.size?r(e):e;function r(i){const s=t.get(ho(i).toString());return s?Sc(s):En(i,r,void 0)}}function AYe(e){if(Ko(e)){const t=e.body;if(na(t))return t.statements}else{if(lg(e)||es(e))return e.statements;if(fi(e))return e.members}return Ke}function NYe(e,t){return Cn(AYe(t),r=>r.pos>=e&&Ko(r)&&!$c(r))}function IYe(e,t){const r=t.members;w.assert(r.length>0,"Found no members");let i,s=!0;for(const o of r){if(o.pos>e)return i||r[0];if(s&&!Zs(o)){if(i!==void 0)return o;s=!1}i=o}return i===void 0?w.fail():i}function OYe(e,t){w.assert(!fi(t));let r;for(let i=e;i!==t;i=i.parent)dpe(i)&&(r=i);for(let i=(r||e).parent;;i=i.parent){if(jEe(i)){let s;for(const o of i.statements){if(o.pos>e.pos)break;s=o}return!s&&R4(i)?(w.assert(kw(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):w.checkDefined(s,"prevStatement failed to get set")}w.assert(i!==t,"Didn't encounter a block-like before encountering scope")}}function gpe(e,t){const r=Kt(e,s=>L.createShorthandPropertyAssignment(s.symbol.name)),i=Kt(t,s=>L.createShorthandPropertyAssignment(s.symbol.name));return r===void 0?i:i===void 0?r:r.concat(i)}function Fy(e){return Ps(e)}function FYe(e,t){return Fy(e.range)?{pos:Ka(e.range).getStart(t),end:so(e.range).getEnd()}:e.range}function LYe(e,t,r,i,s,o){const c=new Map,u=[],f=[],g=[],d=[],y=[],x=new Map,T=[];let C;const N=Fy(e.range)?e.range.length===1&&xu(e.range[0])?e.range[0].expression:void 0:e.range;let D;if(N===void 0){const se=e.range,pe=Ka(se).getStart(),we=so(se).end;D=bu(i,pe,we-pe,qu.expressionExpected)}else s.getTypeAtLocation(N).flags&147456&&(D=Rr(N,qu.uselessConstantType));for(const se of t){u.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),f.push(new Map),g.push([]);const pe=[];D&&pe.push(D),fi(se)&&lr(se)&&pe.push(Rr(se,qu.cannotExtractToJSClass)),ec(se)&&!na(se.body)&&pe.push(Rr(se,qu.cannotExtractToExpressionArrowFunction)),d.push(pe)}const M=new Map,V=Fy(e.range)?L.createBlock(e.range):e.range,G=Fy(e.range)?Ka(e.range):e.range,Z=z(G);if(J(V),Z&&!Fy(e.range)&&!_g(e.range)){const se=s.getContextualType(e.range);ce(se)}if(c.size>0){const se=new Map;let pe=0;for(let we=G;we!==void 0&&pe{u[pe].typeParameterUsages.set(ie,fe)}),pe++),kW(we))for(const fe of f1(we)){const ie=s.getTypeAtLocation(fe);c.has(ie.id.toString())&&se.set(ie.id.toString(),ie)}w.assert(pe===t.length,"Should have iterated all scopes")}if(y.length){const se=TW(t[0],t[0].parent)?t[0]:qg(t[0]);Xs(se,ve)}for(let se=0;se0&&(pe.usages.size>0||pe.typeParameterUsages.size>0)){const ie=Fy(e.range)?e.range[0]:e.range;d[se].push(Rr(ie,qu.cannotAccessVariablesFromNestedScopes))}e.facts&16&&fi(t[se])&&g[se].push(Rr(e.thisNode,qu.cannotExtractFunctionsContainingThisToMethod));let we=!1,fe;if(u[se].usages.forEach(ie=>{ie.usage===2&&(we=!0,ie.symbol.flags&106500&&ie.symbol.valueDeclaration&&qf(ie.symbol.valueDeclaration,8)&&(fe=ie.symbol.valueDeclaration))}),w.assert(Fy(e.range)||T.length===0,"No variable declarations expected if something was extracted"),we&&!Fy(e.range)){const ie=Rr(e.range,qu.cannotWriteInExpression);g[se].push(ie),d[se].push(ie)}else if(fe&&se>0){const ie=Rr(fe,qu.cannotExtractReadonlyPropertyInitializerOutsideConstructor);g[se].push(ie),d[se].push(ie)}else if(C){const ie=Rr(C,qu.cannotExtractExportedEntity);g[se].push(ie),d[se].push(ie)}}return{target:V,usagesPerScope:u,functionErrorsPerScope:g,constantErrorsPerScope:d,exposedVariableDeclarations:T};function z(se){return!!Vn(se,pe=>kW(pe)&&f1(pe).length!==0)}function ce(se){const pe=s.getSymbolWalker(()=>(o.throwIfCancellationRequested(),!0)),{visitedTypes:we}=pe.walkType(se);for(const fe of we)fe.isTypeParameter()&&c.set(fe.id.toString(),fe)}function J(se,pe=1){if(Z){const we=s.getTypeAtLocation(se);ce(we)}if(g_(se)&&se.symbol&&y.push(se),Kl(se))J(se.left,2),J(se.right);else if(Mie(se))J(se.operand,2);else if(Jr(se)||uc(se))Xs(se,J);else if(Je(se)){if(!se.parent||Z_(se.parent)&&se!==se.parent.left||Jr(se.parent)&&se!==se.parent.expression)return;ne(se,pe,Ih(se))}else Xs(se,J)}function ne(se,pe,we){const fe=ge(se,pe,we);if(fe)for(let ie=0;ie=pe)return ie;if(M.set(ie,pe),ye){for(const Se of u)Se.usages.get(se.text)&&Se.usages.set(se.text,{usage:pe,symbol:fe,node:se});return ie}const Ne=fe.getDeclarations(),Ue=Ne&&Cn(Ne,Se=>Se.getSourceFile()===i);if(Ue&&!oI(r,Ue.getStart(),Ue.end)){if(e.facts&2&&pe===2){const Se=Rr(se,qu.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(const Ee of g)Ee.push(Se);for(const Ee of d)Ee.push(Se)}for(let Se=0;Sefe.symbol===pe);if(we)if(Ji(we)){const fe=we.symbol.id.toString();x.has(fe)||(T.push(we),x.set(fe,!0))}else C=C||we}Xs(se,ve)}function Q(se){return se.parent&&Af(se.parent)&&se.parent.name===se?s.getShorthandAssignmentValueSymbol(se.parent):s.getSymbolAtLocation(se)}function X(se,pe,we){if(!se)return;const fe=se.getDeclarations();if(fe&&fe.some(ye=>ye.parent===pe))return L.createIdentifier(se.name);const ie=X(se.parent,pe,we);if(ie!==void 0)return we?L.createQualifiedName(ie,L.createIdentifier(se.name)):L.createPropertyAccessExpression(ie,se.name)}}function MYe(e){return Vn(e,t=>t.parent&&REe(t)&&!mr(t.parent))}function REe(e){const{parent:t}=e;switch(t.kind){case 306:return!1}switch(e.kind){case 11:return t.kind!==272&&t.kind!==276;case 230:case 206:case 208:return!1;case 80:return t.kind!==208&&t.kind!==276&&t.kind!==281}return!0}function jEe(e){switch(e.kind){case 241:case 312:case 268:case 296:return!0;default:return!1}}function hpe(e){return ype(e)||(Uh(e)||Ex(e)||jb(e))&&(Uh(e.parent)||jb(e.parent))}function ype(e){return Ba(e)&&e.parent&&_g(e.parent)}var x3,T3,k3,qu,vpe,RYe=K({"src/services/refactors/extractSymbol.ts"(){ci(),rh(),x3="Extract Symbol",T3={name:"Extract Constant",description:zs(p.Extract_constant),kind:"refactor.extract.constant"},k3={name:"Extract Function",description:zs(p.Extract_function),kind:"refactor.extract.function"},Wh(x3,{kinds:[T3.kind,k3.kind],getEditsForAction:MEe,getAvailableActions:LEe}),(e=>{function t(r){return{message:r,code:0,category:3,key:r}}e.cannotExtractRange=t("Cannot extract range."),e.cannotExtractImport=t("Cannot extract import statement."),e.cannotExtractSuper=t("Cannot extract super call."),e.cannotExtractJSDoc=t("Cannot extract JSDoc."),e.cannotExtractEmpty=t("Cannot extract empty range."),e.expressionExpected=t("expression expected."),e.uselessConstantType=t("No reason to extract constant of type."),e.statementOrExpressionExpected=t("Statement or expression expected."),e.cannotExtractRangeContainingConditionalBreakOrContinueStatements=t("Cannot extract range containing conditional break or continue statements."),e.cannotExtractRangeContainingConditionalReturnStatement=t("Cannot extract range containing conditional return statement."),e.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=t("Cannot extract range containing labeled break or continue with target outside of the range."),e.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=t("Cannot extract range containing writes to references located outside of the target range in generators."),e.typeWillNotBeVisibleInTheNewScope=t("Type will not visible in the new scope."),e.functionWillNotBeVisibleInTheNewScope=t("Function will not visible in the new scope."),e.cannotExtractIdentifier=t("Select more than a single identifier."),e.cannotExtractExportedEntity=t("Cannot extract exported declaration"),e.cannotWriteInExpression=t("Cannot write back side-effects when extracting an expression"),e.cannotExtractReadonlyPropertyInitializerOutsideConstructor=t("Cannot move initialization of read-only class property outside of the constructor"),e.cannotExtractAmbientBlock=t("Cannot extract code from ambient contexts"),e.cannotAccessVariablesFromNestedScopes=t("Cannot access variables from nested scopes"),e.cannotExtractToJSClass=t("Cannot extract constant to a class scope in JS"),e.cannotExtractToExpressionArrowFunction=t("Cannot extract constant to an arrow function without a block"),e.cannotExtractFunctionsContainingThisToMethod=t("Cannot extract functions containing this to method")})(qu||(qu={})),vpe=(e=>(e[e.None=0]="None",e[e.HasReturn=1]="HasReturn",e[e.IsGenerator=2]="IsGenerator",e[e.IsAsyncFunction=4]="IsAsyncFunction",e[e.UsesThis=8]="UsesThis",e[e.UsesThisInFunction=16]="UsesThisInFunction",e[e.InStaticRegion=32]="InStaticRegion",e))(vpe||{})}}),BEe={};Ye(BEe,{Messages:()=>qu,RangeFacts:()=>vpe,getRangeToExtract:()=>ppe,getRefactorActionsToExtractSymbol:()=>LEe,getRefactorEditsToExtractSymbol:()=>MEe});var jYe=K({"src/services/_namespaces/ts.refactor.extractSymbol.ts"(){RYe()}}),tB,LY,MY,BYe=K({"src/services/refactors/generateGetAccessorAndSetAccessor.ts"(){ci(),rh(),tB="Generate 'get' and 'set' accessors",LY=zs(p.Generate_get_and_set_accessors),MY={name:tB,description:LY,kind:"refactor.rewrite.property.generateAccessors"},Wh(tB,{kinds:[MY.kind],getEditsForAction:function(t,r){if(!t.endPosition)return;const i=a_.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition);w.assert(i&&!E0(i),"Expected applicable refactor info");const s=a_.generateAccessorFromProperty(t.file,t.program,t.startPosition,t.endPosition,t,r);if(!s)return;const o=t.file.fileName,c=i.renameAccessor?i.accessorName:i.fieldName,f=(Je(c)?0:-1)+vI(s,o,c.text,ws(i.declaration));return{renameFilename:o,renameLocation:f,edits:s}},getAvailableActions(e){if(!e.endPosition)return Ke;const t=a_.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,e.triggerReason==="invoked");return t?E0(t)?e.preferences.provideRefactorNotApplicableReason?[{name:tB,description:LY,actions:[{...MY,notApplicableReason:t.error}]}]:Ke:[{name:tB,description:LY,actions:[MY]}]:Ke}})}}),JYe={},zYe=K({"src/services/_namespaces/ts.refactor.generateGetAccessorAndSetAccessor.ts"(){BYe()}});function UYe(e){const t=JEe(e);if(t&&!E0(t))return{renameFilename:void 0,renameLocation:void 0,edits:gr.ChangeTracker.with(e,i=>WYe(e.file,i,t.declaration,t.returnTypeNode))}}function VYe(e){const t=JEe(e);return t?E0(t)?e.preferences.provideRefactorNotApplicableReason?[{name:nB,description:RY,actions:[{...rB,notApplicableReason:t.error}]}]:Ke:[{name:nB,description:RY,actions:[rB]}]:Ke}function WYe(e,t,r,i){const s=wo(r,22,e),o=ec(r)&&s===void 0,c=o?Ka(r.parameters):s;c&&(o&&(t.insertNodeBefore(e,c,L.createToken(21)),t.insertNodeAfter(e,c,L.createToken(22))),t.insertNodeAt(e,c.end,i,{prefix:": "}))}function JEe(e){if(lr(e.file)||!v2(rB.kind,e.kind))return;const t=mf(e.file,e.startPosition),r=Vn(t,c=>na(c)||c.parent&&ec(c.parent)&&(c.kind===39||c.parent.body===c)?"quit":qYe(c));if(!r||!r.body||r.type)return{error:zs(p.Return_type_must_be_inferred_from_a_function)};const i=e.program.getTypeChecker(),s=HYe(i,r);if(!s)return{error:zs(p.Could_not_determine_function_return_type)};const o=i.typeToTypeNode(s,r,1);if(o)return{declaration:r,returnTypeNode:o}}function qYe(e){switch(e.kind){case 262:case 218:case 219:case 174:return!0;default:return!1}}function HYe(e,t){if(e.isImplementationOfOverload(t)){const i=e.getTypeAtLocation(t).getCallSignatures();if(i.length>1)return e.getUnionType(Oi(i,s=>s.getReturnType()))}const r=e.getSignatureFromDeclaration(t);if(r)return e.getReturnTypeOfSignature(r)}var nB,RY,rB,GYe=K({"src/services/refactors/inferFunctionReturnType.ts"(){ci(),rh(),nB="Infer function return type",RY=zs(p.Infer_function_return_type),rB={name:nB,description:RY,kind:"refactor.rewrite.function.returnType"},Wh(nB,{kinds:[rB.kind],getEditsForAction:UYe,getAvailableActions:VYe})}}),$Ye={},XYe=K({"src/services/_namespaces/ts.refactor.inferFunctionReturnType.ts"(){GYe()}}),yC={};Ye(yC,{addExportToChanges:()=>Xfe,addExports:()=>qfe,addNewFileToTsconfig:()=>Jfe,addOrRemoveBracesToArrowFunction:()=>lQe,containsJsx:()=>Yfe,convertArrowFunctionOrFunctionExpression:()=>SQe,convertParamsToDestructuredObject:()=>JQe,convertStringOrTemplateLiteral:()=>QQe,convertToOptionalChainExpression:()=>lYe,createNewFileName:()=>Qfe,createOldFileImportsFromTargetFile:()=>Wfe,deleteMovedStatements:()=>Hj,deleteUnusedImports:()=>Hfe,deleteUnusedOldImports:()=>zfe,doChangeNamedToNamespaceOrDefault:()=>$3e,extractSymbol:()=>BEe,filterImport:()=>OI,forEachImportInStatement:()=>II,generateGetAccessorAndSetAccessor:()=>JYe,getApplicableRefactors:()=>oXe,getEditsForRefactor:()=>cXe,getStatementsToMove:()=>FI,getTopLevelDeclarationStatement:()=>xY,getUsageInfo:()=>$j,inferFunctionReturnType:()=>$Ye,isRefactorErrorInfo:()=>E0,isTopLevelDeclaration:()=>Xj,makeImportOrRequire:()=>Gj,moduleSpecifierFromImport:()=>NI,nameOfTopLevelDeclaration:()=>$fe,refactorKindBeginsWith:()=>v2,registerRefactor:()=>Wh,updateImportsInOtherFiles:()=>Ufe});var rh=K({"src/services/_namespaces/ts.refactor.ts"(){U3e(),mXe(),bXe(),wXe(),DXe(),NXe(),LXe(),nQe(),uQe(),xQe(),zQe(),YQe(),uYe(),jYe(),zYe(),XYe()}});function zEe(e,t,r,i){const s=bpe(e,t,r,i);w.assert(s.spans.length%3===0);const o=s.spans,c=[];for(let u=0;u{s.push(c.getStart(t),c.getWidth(t),(u+1<<8)+f)},i),s}function YYe(e,t,r,i,s){const o=e.getTypeChecker();let c=!1;function u(f){switch(f.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 219:s.throwIfCancellationRequested()}if(!f||!pF(r,f.pos,f.getFullWidth())||f.getFullWidth()===0)return;const g=c;if((Uh(f)||Ex(f))&&(c=!0),Ew(f)&&(c=!1),Je(f)&&!c&&!tZe(f)&&!ow(f.escapedText)){let d=o.getSymbolAtLocation(f);if(d){d.flags&2097152&&(d=o.getAliasedSymbol(d));let y=ZYe(d,jx(f));if(y!==void 0){let x=0;f.parent&&(oo(f.parent)||kpe.get(f.parent.kind)===y)&&f.parent.name===f&&(x=1),y===6&&VEe(f)&&(y=9),y=KYe(o,f,y);const T=d.valueDeclaration;if(T){const C=Vv(T),N=py(T);C&256&&(x|=2),C&1024&&(x|=4),y!==0&&y!==2&&(C&8||N&2||d.getFlags()&8)&&(x|=8),(y===7||y===10)&&eZe(T,t)&&(x|=32),e.isSourceFileDefaultLibrary(T.getSourceFile())&&(x|=16)}else d.declarations&&d.declarations.some(C=>e.isSourceFileDefaultLibrary(C.getSourceFile()))&&(x|=16);i(f,y,x)}}}Xs(f,u),c=g}u(t)}function ZYe(e,t){const r=e.getFlags();if(r&32)return 0;if(r&384)return 1;if(r&524288)return 5;if(r&64){if(t&2)return 2}else if(r&262144)return 4;let i=e.valueDeclaration||e.declarations&&e.declarations[0];return i&&oo(i)&&(i=UEe(i)),i&&kpe.get(i.kind)}function KYe(e,t,r){if(r===7||r===9||r===6){const i=e.getTypeAtLocation(t);if(i){const s=o=>o(i)||i.isUnion()&&i.types.some(o);if(r!==6&&s(o=>o.getConstructSignatures().length>0))return 0;if(s(o=>o.getCallSignatures().length>0)&&!s(o=>o.getProperties().length>0)||nZe(t))return r===9?11:10}}return r}function eZe(e,t){return oo(e)&&(e=UEe(e)),Ji(e)?(!es(e.parent.parent.parent)||Jb(e.parent))&&e.getSourceFile()===t:Wl(e)?!es(e.parent)&&e.getSourceFile()===t:!1}function UEe(e){for(;;)if(oo(e.parent.parent))e=e.parent.parent;else return e.parent.parent}function tZe(e){const t=e.parent;return t&&(Yg(t)||Df(t)||F1(t))}function nZe(e){for(;VEe(e);)e=e.parent;return ma(e.parent)&&e.parent.expression===e}function VEe(e){return Z_(e.parent)&&e.parent.right===e||Jr(e.parent)&&e.parent.name===e}var Spe,xpe,Tpe,kpe,WEe=K({"src/services/classifier2020.ts"(){ci(),Spe=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(Spe||{}),xpe=(e=>(e[e.class=0]="class",e[e.enum=1]="enum",e[e.interface=2]="interface",e[e.namespace=3]="namespace",e[e.typeParameter=4]="typeParameter",e[e.type=5]="type",e[e.parameter=6]="parameter",e[e.variable=7]="variable",e[e.enumMember=8]="enumMember",e[e.property=9]="property",e[e.function=10]="function",e[e.member=11]="member",e))(xpe||{}),Tpe=(e=>(e[e.declaration=0]="declaration",e[e.static=1]="static",e[e.async=2]="async",e[e.readonly=3]="readonly",e[e.defaultLibrary=4]="defaultLibrary",e[e.local=5]="local",e))(Tpe||{}),kpe=new Map([[260,7],[169,6],[172,9],[267,3],[266,1],[306,8],[263,0],[174,11],[262,10],[218,10],[173,11],[177,9],[178,9],[171,9],[264,2],[265,5],[168,4],[303,9],[304,9]])}});function qEe(e,t,r,i){const s=fA(e)?new UY(e,t,r):e===80?new WY(80,t,r):e===81?new qY(81,t,r):new wpe(e,t,r);return s.parent=i,s.flags=i.flags&101441536,s}function rZe(e,t){if(!fA(e.kind))return Ke;const r=[];if(DF(e))return e.forEachChild(c=>{r.push(c)}),r;S_.setText((t||e.getSourceFile()).text);let i=e.pos;const s=c=>{iB(r,i,c.pos,e),r.push(c),i=c.end},o=c=>{iB(r,i,c.pos,e),r.push(iZe(c,e)),i=c.end};return dt(e.jsDoc,s),i=e.pos,e.forEachChild(s,o),iB(r,i,e.end,e),S_.setText(void 0),r}function iB(e,t,r,i){for(S_.resetTokenState(t);tt.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function jY(e,t){if(!e)return Ke;let r=S2.getJsDocTagsFromDeclarations(e,t);if(t&&(r.length===0||e.some(HEe))){const i=new Set;for(const s of e){const o=GEe(t,s,c=>{var u;if(!i.has(c))return i.add(c),s.kind===177||s.kind===178?c.getContextualJsDocTags(s,t):((u=c.declarations)==null?void 0:u.length)===1?c.getJsDocTags():void 0});o&&(r=[...o,...r])}}return r}function sB(e,t){if(!e)return Ke;let r=S2.getJsDocCommentsFromDeclarations(e,t);if(t&&(r.length===0||e.some(HEe))){const i=new Set;for(const s of e){const o=GEe(t,s,c=>{if(!i.has(c))return i.add(c),s.kind===177||s.kind===178?c.getContextualDocumentationComment(s,t):c.getDocumentationComment(t)});o&&(r=r.length===0?o.slice():o.concat(h3(),r))}}return r}function GEe(e,t,r){var i;const s=((i=t.parent)==null?void 0:i.kind)===176?t.parent.parent:t.parent;if(!s)return;const o=Fl(t);return li(OP(s),c=>{const u=e.getTypeAtLocation(c),f=o&&u.symbol?e.getTypeOfSymbol(u.symbol):u,g=e.getPropertyOfType(f,t.symbol.name);return g?r(g):void 0})}function sZe(){return{getNodeConstructor:()=>UY,getTokenConstructor:()=>wpe,getIdentifierConstructor:()=>WY,getPrivateIdentifierConstructor:()=>qY,getSourceFileConstructor:()=>KEe,getSymbolConstructor:()=>QEe,getTypeConstructor:()=>YEe,getSignatureConstructor:()=>ZEe,getSourceMapSourceConstructor:()=>ePe}}function JI(e){let t=!0;for(const i in e)if(jo(e,i)&&!$Ee(i)){t=!1;break}if(t)return e;const r={};for(const i in e)if(jo(e,i)){const s=$Ee(i)?i:i.charAt(0).toLowerCase()+i.substr(1);r[s]=e[i]}return r}function $Ee(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function zI(e){return e?Kt(e,t=>t.text).join(""):""}function aB(){return{target:1,jsx:1}}function BY(){return a_.getSupportedErrorCodes()}function XEe(e,t,r){e.version=r,e.scriptSnapshot=t}function oB(e,t,r,i,s,o){const c=l7(e,d3(t),r,s,o);return XEe(c,t,i),c}function JY(e,t,r,i,s){if(i&&r!==e.version){let c;const u=i.span.start!==0?e.text.substr(0,i.span.start):"",f=pl(i.span)!==e.text.length?e.text.substr(pl(i.span)):"";if(i.newLength===0)c=u&&f?u+f:u||f;else{const d=t.getText(i.span.start,i.span.start+i.newLength);c=u&&f?u+d+f:u?u+d:d+f}const g=ZH(e,c,i,s);return XEe(g,t,r),g.nameTable=void 0,e!==g&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),g}const o={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator,jsDocParsingMode:e.jsDocParsingMode};return oB(e.fileName,t,o,r,!0,e.scriptKind)}function Cpe(e,t=cfe(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()),r){var i;let s;r===void 0?s=0:typeof r=="boolean"?s=r?2:0:s=r;const o=new tPe(e);let c,u,f=0;const g=e.getCancellationToken?new rPe(e.getCancellationToken()):nPe,d=e.getCurrentDirectory();wae((i=e.getLocalizedDiagnosticMessages)==null?void 0:i.bind(e));function y(I){e.log&&e.log(I)}const x=h4(e),T=e_(x),C=xfe({useCaseSensitiveFileNames:()=>x,getCurrentDirectory:()=>d,getProgram:V,fileExists:fa(e,e.fileExists),readFile:fa(e,e.readFile),getDocumentPositionMapper:fa(e,e.getDocumentPositionMapper),getSourceFileLike:fa(e,e.getSourceFileLike),log:y});function N(I){const me=c.getSourceFile(I);if(!me){const H=new Error(`Could not find source file: '${I}'.`);throw H.ProgramFiles=c.getSourceFiles().map(de=>de.fileName),H}return me}function D(){e.updateFromProject&&!e.updateFromProjectInProgress?e.updateFromProject():M()}function M(){var I,me,H;if(w.assert(s!==2),e.getProjectVersion){const Rs=e.getProjectVersion();if(Rs){if(u===Rs&&!((I=e.hasChangedAutomaticTypeDirectiveNames)!=null&&I.call(e)))return;u=Rs}}const de=e.getTypeRootsVersion?e.getTypeRootsVersion():0;f!==de&&(y("TypeRoots version has changed; provide new program"),c=void 0,f=de);const Be=e.getScriptFileNames().slice(),Ie=e.getCompilationSettings()||aB(),xt=e.hasInvalidatedResolutions||xm,Ft=fa(e,e.hasInvalidatedLibResolutions)||xm,tn=fa(e,e.hasChangedAutomaticTypeDirectiveNames),Sn=(me=e.getProjectReferences)==null?void 0:me.call(e);let Un,Gn={getSourceFile:Yo,getSourceFileByPath:hl,getCancellationToken:()=>g,getCanonicalFileName:T,useCaseSensitiveFileNames:()=>x,getNewLine:()=>Sy(Ie),getDefaultLibFileName:Rs=>e.getDefaultLibFileName(Rs),writeFile:ao,getCurrentDirectory:()=>d,fileExists:Rs=>e.fileExists(Rs),readFile:Rs=>e.readFile&&e.readFile(Rs),getSymlinkCache:fa(e,e.getSymlinkCache),realpath:fa(e,e.realpath),directoryExists:Rs=>km(Rs,e),getDirectories:Rs=>e.getDirectories?e.getDirectories(Rs):[],readDirectory:(Rs,bo,tc,Oc,Iu)=>(w.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(Rs,bo,tc,Oc,Iu)),onReleaseOldSourceFile:Dn,onReleaseParsedCommandLine:As,hasInvalidatedResolutions:xt,hasInvalidatedLibResolutions:Ft,hasChangedAutomaticTypeDirectiveNames:tn,trace:fa(e,e.trace),resolveModuleNames:fa(e,e.resolveModuleNames),getModuleResolutionCache:fa(e,e.getModuleResolutionCache),createHash:fa(e,e.createHash),resolveTypeReferenceDirectives:fa(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:fa(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:fa(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:fa(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:fa(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:Di,jsDocParsingMode:e.jsDocParsingMode};const Li=Gn.getSourceFile,{getSourceFileWithCache:wi}=U7(Gn,Rs=>hc(Rs,d,T),(...Rs)=>Li.call(Gn,...Rs));Gn.getSourceFile=wi,(H=e.setCompilerHost)==null||H.call(e,Gn);const sr={useCaseSensitiveFileNames:x,fileExists:Rs=>Gn.fileExists(Rs),readFile:Rs=>Gn.readFile(Rs),directoryExists:Rs=>Gn.directoryExists(Rs),getDirectories:Rs=>Gn.getDirectories(Rs),realpath:Gn.realpath,readDirectory:(...Rs)=>Gn.readDirectory(...Rs),trace:Gn.trace,getCurrentDirectory:Gn.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:ao},Wr=t.getKeyForCompilationSettings(Ie);let xs=new Set;if(j$(c,Be,Ie,(Rs,bo)=>e.getScriptVersion(bo),Rs=>Gn.fileExists(Rs),xt,Ft,tn,Di,Sn)){Gn=void 0,Un=void 0,xs=void 0;return}c=vR({rootNames:Be,options:Ie,host:Gn,oldProgram:c,projectReferences:Sn}),Gn=void 0,Un=void 0,xs=void 0,C.clearCache(),c.getTypeChecker();return;function Di(Rs){const bo=hc(Rs,d,T),tc=Un==null?void 0:Un.get(bo);if(tc!==void 0)return tc||void 0;const Oc=e.getParsedCommandLine?e.getParsedCommandLine(Rs):$r(Rs);return(Un||(Un=new Map)).set(bo,Oc||!1),Oc}function $r(Rs){const bo=Yo(Rs,100);if(bo)return bo.path=hc(Rs,d,T),bo.resolvedPath=bo.path,bo.originalFileName=bo.fileName,d7(bo,sr,Ss(oi(Rs),d),void 0,Ss(Rs,d))}function As(Rs,bo,tc){var Oc;e.getParsedCommandLine?(Oc=e.onReleaseParsedCommandLine)==null||Oc.call(e,Rs,bo,tc):bo&&Dn(bo.sourceFile,tc)}function Dn(Rs,bo){const tc=t.getKeyForCompilationSettings(bo);t.releaseDocumentWithKey(Rs.resolvedPath,tc,Rs.scriptKind,Rs.impliedNodeFormat)}function Yo(Rs,bo,tc,Oc){return hl(Rs,hc(Rs,d,T),bo,tc,Oc)}function hl(Rs,bo,tc,Oc,Iu){w.assert(Gn,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");const vs=e.getScriptSnapshot(Rs);if(!vs)return;const va=kQ(Rs,e),Ou=e.getScriptVersion(Rs);if(!Iu){const Lo=c&&c.getSourceFileByPath(bo);if(Lo){if(va===Lo.scriptKind||xs.has(Lo.resolvedPath))return t.updateDocumentWithKey(Rs,bo,e,Wr,vs,Ou,va,tc);t.releaseDocumentWithKey(Lo.resolvedPath,t.getKeyForCompilationSettings(c.getCompilerOptions()),Lo.scriptKind,Lo.impliedNodeFormat),xs.add(Lo.resolvedPath)}}return t.acquireDocumentWithKey(Rs,bo,e,Wr,vs,Ou,va,tc)}}function V(){if(s===2){w.assert(c===void 0);return}return D(),c}function G(){var I;return(I=e.getPackageJsonAutoImportProvider)==null?void 0:I.call(e)}function Z(I,me){const H=c.getTypeChecker(),de=Be();if(!de)return!1;for(const xt of I)for(const Ft of xt.references){const tn=Ie(Ft);if(w.assertIsDefined(tn),me.has(Ft)||Qo.isDeclarationOfSymbol(tn,de)){me.add(Ft),Ft.isDefinition=!0;const Sn=dj(Ft,C,fa(e,e.fileExists));Sn&&me.add(Sn)}else Ft.isDefinition=!1}return!0;function Be(){for(const xt of I)for(const Ft of xt.references){if(me.has(Ft)){const Sn=Ie(Ft);return w.assertIsDefined(Sn),H.getSymbolAtLocation(Sn)}const tn=dj(Ft,C,fa(e,e.fileExists));if(tn&&me.has(tn)){const Sn=Ie(tn);if(Sn)return H.getSymbolAtLocation(Sn)}}}function Ie(xt){const Ft=c.getSourceFile(xt.fileName);if(!Ft)return;const tn=mf(Ft,xt.textSpan.start);return Qo.Core.getAdjustedNode(tn,{use:Qo.FindReferencesUse.References})}}function z(){if(c){const I=t.getKeyForCompilationSettings(c.getCompilerOptions());dt(c.getSourceFiles(),me=>t.releaseDocumentWithKey(me.resolvedPath,I,me.scriptKind,me.impliedNodeFormat)),c=void 0}}function ce(){z(),e=void 0}function J(I){return D(),c.getSyntacticDiagnostics(N(I),g).slice()}function ne(I){D();const me=N(I),H=c.getSemanticDiagnostics(me,g);if(!rd(c.getCompilerOptions()))return H.slice();const de=c.getDeclarationDiagnostics(me,g);return[...H,...de]}function ge(I){return D(),nY(N(I),c,g)}function ve(){return D(),[...c.getOptionsDiagnostics(g),...c.getGlobalDiagnostics(g)]}function Q(I,me,H=cd,de){const Be={...H,includeCompletionsForModuleExports:H.includeCompletionsForModuleExports||H.includeExternalModuleExports,includeCompletionsWithInsertText:H.includeCompletionsWithInsertText||H.includeInsertTextCompletions};return D(),kC.getCompletionsAtPosition(e,c,y,N(I),me,Be,H.triggerCharacter,H.triggerKind,g,de&&nu.getFormatContext(de,e),H.includeSymbol)}function X(I,me,H,de,Be,Ie=cd,xt){return D(),kC.getCompletionEntryDetails(c,y,N(I),me,{name:H,source:Be,data:xt},e,de&&nu.getFormatContext(de,e),Ie,g)}function se(I,me,H,de,Be=cd){return D(),kC.getCompletionEntrySymbol(c,y,N(I),me,{name:H,source:de},e,Be)}function pe(I,me){D();const H=N(I),de=mf(H,me);if(de===H)return;const Be=c.getTypeChecker(),Ie=we(de),xt=lZe(Ie,Be);if(!xt||Be.isUnknownSymbol(xt)){const Gn=fe(H,Ie,me)?Be.getTypeAtLocation(Ie):void 0;return Gn&&{kind:"",kindModifiers:"",textSpan:tf(Ie,H),displayParts:Be.runWithCancellationToken(g,Li=>hI(Li,Gn,Bx(Ie))),documentation:Gn.symbol?Gn.symbol.getDocumentationComment(Be):void 0,tags:Gn.symbol?Gn.symbol.getJsDocTags(Be):void 0}}const{symbolKind:Ft,displayParts:tn,documentation:Sn,tags:Un}=Be.runWithCancellationToken(g,Gn=>Ly.getSymbolDisplayPartsDocumentationAndSymbolKind(Gn,xt,H,Bx(Ie),Ie));return{kind:Ft,kindModifiers:Ly.getSymbolModifiers(Be,xt),textSpan:tf(Ie,H),displayParts:tn,documentation:Sn,tags:Un}}function we(I){return Fb(I.parent)&&I.pos===I.parent.pos?I.parent.expression:O4(I.parent)&&I.pos===I.parent.pos||Z6(I.parent)&&I.parent.name===I||wm(I.parent)?I.parent:I}function fe(I,me,H){switch(me.kind){case 80:return!qX(me)&&!HX(me)&&!p0(me.parent);case 211:case 166:return!Dy(I,H);case 110:case 197:case 108:case 202:return!0;case 236:return Z6(me);default:return!1}}function ie(I,me,H,de){return D(),N3.getDefinitionAtPosition(c,N(I),me,H,de)}function ye(I,me){return D(),N3.getDefinitionAndBoundSpan(c,N(I),me)}function Ne(I,me){return D(),N3.getTypeDefinitionAtPosition(c.getTypeChecker(),N(I),me)}function Ue(I,me){return D(),Qo.getImplementationsAtPosition(c,g,c.getSourceFiles(),N(I),me)}function Se(I,me,H){const de=ka(I);w.assert(H.some(xt=>ka(xt)===de)),D();const Be=Oi(H,xt=>c.getSourceFile(xt)),Ie=N(I);return Mj.getDocumentHighlights(c,g,Ie,me,Be)}function Ee(I,me,H,de,Be){D();const Ie=N(I),xt=ej(mf(Ie,me));if(FB.nodeIsEligibleForRename(xt))if(Je(xt)&&(ug(xt.parent)||Rb(xt.parent))&&m4(xt.escapedText)){const{openingElement:Ft,closingElement:tn}=xt.parent.parent;return[Ft,tn].map(Sn=>{const Un=tf(Sn.tagName,Ie);return{fileName:Ie.fileName,textSpan:Un,...Qo.toContextSpan(Un,Ie,Sn.parent)}})}else{const Ft=Bp(Ie,Be??cd),tn=typeof Be=="boolean"?Be:Be==null?void 0:Be.providePrefixAndSuffixTextForRename;return Le(xt,me,{findInStrings:H,findInComments:de,providePrefixAndSuffixTextForRename:tn,use:Qo.FindReferencesUse.Rename},(Sn,Un,Gn)=>Qo.toRenameLocation(Sn,Un,Gn,tn||!1,Ft))}}function Ae(I,me){return D(),Le(mf(N(I),me),me,{use:Qo.FindReferencesUse.References},Qo.toReferenceEntry)}function Le(I,me,H,de){D();const Be=H&&H.use===Qo.FindReferencesUse.Rename?c.getSourceFiles().filter(Ie=>!c.isSourceFileDefaultLibrary(Ie)):c.getSourceFiles();return Qo.findReferenceOrRenameEntries(c,g,Be,I,me,H,de)}function Tt(I,me){return D(),Qo.findReferencedSymbols(c,g,c.getSourceFiles(),N(I),me)}function xe(I){return D(),Qo.Core.getReferencesForFileName(I,c,c.getSourceFiles()).map(Qo.toReferenceEntry)}function ze(I,me,H,de=!1,Be=!1){D();const Ie=H?[N(H)]:c.getSourceFiles();return h3e(Ie,c.getTypeChecker(),g,I,me,de,Be)}function st(I,me,H){D();const de=N(I),Be=e.getCustomTransformers&&e.getCustomTransformers();return hue(c,de,!!me,g,Be,H)}function zt(I,me,{triggerReason:H}=cd){D();const de=N(I);return r5.getSignatureHelpItems(c,de,me,H,g)}function yt(I){return o.getCurrentSourceFile(I)}function $e(I,me,H){const de=o.getCurrentSourceFile(I),Be=mf(de,me);if(Be===de)return;switch(Be.kind){case 211:case 166:case 11:case 97:case 112:case 106:case 108:case 110:case 197:case 80:break;default:return}let Ie=Be;for(;;)if(_3(Ie)||h_e(Ie))Ie=Ie.parent;else if($X(Ie))if(Ie.parent.parent.kind===267&&Ie.parent.parent.body===Ie.parent)Ie=Ie.parent.parent.name;else break;else break;return Il(Ie.getStart(),Be.getEnd())}function kt(I,me){const H=o.getCurrentSourceFile(I);return GY.spanInSourceFileAtLocation(H,me)}function nn(I){return S3e(o.getCurrentSourceFile(I),g)}function sn(I){return x3e(o.getCurrentSourceFile(I),g)}function In(I,me,H){return D(),(H||"original")==="2020"?zEe(c,g,N(I),me):afe(c.getTypeChecker(),g,N(I),c.getClassifiableNames(),me)}function Zn(I,me,H){return D(),(H||"original")==="original"?XQ(c.getTypeChecker(),g,N(I),c.getClassifiableNames(),me):bpe(c,g,N(I),me)}function hn(I,me){return ofe(g,o.getCurrentSourceFile(I),me)}function Zt(I,me){return QQ(g,o.getCurrentSourceFile(I),me)}function Yt(I){const me=o.getCurrentSourceFile(I);return VK.collectElements(me,g)}const yi=new Map(Object.entries({19:20,21:22,23:24,32:30}));yi.forEach((I,me)=>yi.set(I.toString(),Number(me)));function us(I,me){const H=o.getCurrentSourceFile(I),de=p3(H,me),Be=de.getStart(H)===me?yi.get(de.kind.toString()):void 0,Ie=Be&&wo(de.parent,Be,H);return Ie?[tf(de,H),tf(Ie,H)].sort((xt,Ft)=>xt.start-Ft.start):Ke}function zi(I,me,H){let de=cc();const Be=JI(H),Ie=o.getCurrentSourceFile(I);y("getIndentationAtPosition: getCurrentSourceFile: "+(cc()-de)),de=cc();const xt=nu.SmartIndenter.getIndentation(me,Ie,Be);return y("getIndentationAtPosition: computeIndentation : "+(cc()-de)),xt}function Os(I,me,H,de){const Be=o.getCurrentSourceFile(I);return nu.formatSelection(me,H,Be,nu.getFormatContext(JI(de),e))}function On(I,me){return nu.formatDocument(o.getCurrentSourceFile(I),nu.getFormatContext(JI(me),e))}function Fi(I,me,H,de){const Be=o.getCurrentSourceFile(I),Ie=nu.getFormatContext(JI(de),e);if(!Dy(Be,me))switch(H){case"{":return nu.formatOnOpeningCurly(me,Be,Ie);case"}":return nu.formatOnClosingCurly(me,Be,Ie);case";":return nu.formatOnSemicolon(me,Be,Ie);case` +`:return nu.formatOnEnter(me,Be,Ie)}return[]}function Er(I,me,H,de,Be,Ie=cd){D();const xt=N(I),Ft=Il(me,H),tn=nu.getFormatContext(Be,e);return Ys(ks(de,ly,mc),Sn=>(g.throwIfCancellationRequested(),a_.getFixes({errorCode:Sn,sourceFile:xt,span:Ft,program:c,host:e,cancellationToken:g,formatContext:tn,preferences:Ie})))}function cn(I,me,H,de=cd){D(),w.assert(I.type==="file");const Be=N(I.fileName),Ie=nu.getFormatContext(H,e);return a_.getAllFixes({fixId:me,sourceFile:Be,program:c,host:e,cancellationToken:g,formatContext:Ie,preferences:de})}function et(I,me,H=cd){D(),w.assert(I.type==="file");const de=N(I.fileName),Be=nu.getFormatContext(me,e),Ie=I.mode??(I.skipDestructiveCodeActions?"SortAndCombine":"All");return cm.organizeImports(de,Be,e,c,H,Ie)}function Jt(I,me,H,de=cd){return ufe(V(),I,me,e,nu.getFormatContext(H,e),de,C)}function wn(I,me){const H=typeof I=="string"?me:I;return Ps(H)?Promise.all(H.map(de=>ui(de))):ui(H)}function ui(I){const me=H=>hc(H,d,T);return w.assertEqual(I.type,"install package"),e.installPackage?e.installPackage({fileName:me(I.file),packageName:I.packageName}):Promise.reject("Host does not implement `installPackage`")}function vi(I,me,H,de){const Be=de?nu.getFormatContext(de,e).options:void 0;return S2.getDocCommentTemplateAtPosition(Iy(e,Be),o.getCurrentSourceFile(I),me,H)}function ts(I,me,H){if(H===60)return!1;const de=o.getCurrentSourceFile(I);if(pC(de,me))return!1;if(k_e(de,me))return H===123;if(eQ(de,me))return!1;switch(H){case 39:case 34:case 96:return!Dy(de,me)}return!0}function Ds(I,me){const H=o.getCurrentSourceFile(I),de=Hl(me,H);if(!de)return;const Be=de.kind===32&&ug(de.parent)?de.parent.parent:Bk(de)&&Uh(de.parent)?de.parent:void 0;if(Be&&ft(Be))return{newText:``};const Ie=de.kind===32&&Kk(de.parent)?de.parent.parent:Bk(de)&&jb(de.parent)?de.parent:void 0;if(Ie&&At(Ie))return{newText:""}}function Sa(I,me){const H=o.getCurrentSourceFile(I),de=Hl(me,H);if(!de||de.parent.kind===312)return;const Be="[a-zA-Z0-9:\\-\\._$]*";if(jb(de.parent.parent)){const Ie=de.parent.parent.openingFragment,xt=de.parent.parent.closingFragment;if(G6(Ie)||G6(xt))return;const Ft=Ie.getStart(H)+1,tn=xt.getStart(H)+2;return me!==Ft&&me!==tn?void 0:{ranges:[{start:Ft,length:0},{start:tn,length:0}],wordPattern:Be}}else{const Ie=Vn(de.parent,wi=>!!(ug(wi)||Rb(wi)));if(!Ie)return;w.assert(ug(Ie)||Rb(Ie),"tag should be opening or closing element");const xt=Ie.parent.openingElement,Ft=Ie.parent.closingElement,tn=xt.tagName.getStart(H),Sn=xt.tagName.end,Un=Ft.tagName.getStart(H),Gn=Ft.tagName.end;return tn===xt.getStart(H)||Un===Ft.getStart(H)||Sn===xt.getEnd()||Gn===Ft.getEnd()||!(tn<=me&&me<=Sn||Un<=me&&me<=Gn)||xt.tagName.getText(H)!==Ft.tagName.getText(H)?void 0:{ranges:[{start:tn,length:Sn-tn},{start:Un,length:Gn-Un}],wordPattern:Be}}}function Wa(I,me){return{lineStarts:I.getLineStarts(),firstLine:I.getLineAndCharacterOfPosition(me.pos).line,lastLine:I.getLineAndCharacterOfPosition(me.end).line}}function Tn(I,me,H){const de=o.getCurrentSourceFile(I),Be=[],{lineStarts:Ie,firstLine:xt,lastLine:Ft}=Wa(de,me);let tn=H||!1,Sn=Number.MAX_VALUE;const Un=new Map,Gn=new RegExp(/\S/),Li=rj(de,Ie[xt]),wi=Li?"{/*":"//";for(let sr=xt;sr<=Ft;sr++){const Wr=de.text.substring(Ie[sr],de.getLineEndOfPosition(Ie[sr])),xs=Gn.exec(Wr);xs&&(Sn=Math.min(Sn,xs.index),Un.set(sr.toString(),xs.index),Wr.substr(xs.index,wi.length)!==wi&&(tn=H===void 0||H))}for(let sr=xt;sr<=Ft;sr++){if(xt!==Ft&&Ie[sr]===me.end)continue;const Wr=Un.get(sr.toString());Wr!==void 0&&(Li?Be.push(...Ln(I,{pos:Ie[sr]+Sn,end:de.getLineEndOfPosition(Ie[sr])},tn,Li)):tn?Be.push({newText:wi,span:{length:0,start:Ie[sr]+Sn}}):de.text.substr(Ie[sr]+Wr,wi.length)===wi&&Be.push({newText:"",span:{length:wi.length,start:Ie[sr]+Wr}}))}return Be}function Ln(I,me,H,de){var Be;const Ie=o.getCurrentSourceFile(I),xt=[],{text:Ft}=Ie;let tn=!1,Sn=H||!1;const Un=[];let{pos:Gn}=me;const Li=de!==void 0?de:rj(Ie,Gn),wi=Li?"{/*":"/*",sr=Li?"*/}":"*/",Wr=Li?"\\{\\/\\*":"\\/\\*",xs=Li?"\\*\\/\\}":"\\*\\/";for(;Gn<=me.end;){const Mi=Ft.substr(Gn,wi.length)===wi?wi.length:0,Di=Dy(Ie,Gn+Mi);if(Di)Li&&(Di.pos--,Di.end++),Un.push(Di.pos),Di.kind===3&&Un.push(Di.end),tn=!0,Gn=Di.end+1;else{const $r=Ft.substring(Gn,me.end).search(`(${Wr})|(${xs})`);Sn=H!==void 0?H:Sn||!M_e(Ft,Gn,$r===-1?me.end:Gn+$r),Gn=$r===-1?me.end+1:Gn+$r+sr.length}}if(Sn||!tn){((Be=Dy(Ie,me.pos))==null?void 0:Be.kind)!==2&&$s(Un,me.pos,mc),$s(Un,me.end,mc);const Mi=Un[0];Ft.substr(Mi,wi.length)!==wi&&xt.push({newText:wi,span:{length:0,start:Mi}});for(let Di=1;Di0?Mi-sr.length:0,$r=Ft.substr(Di,sr.length)===sr?sr.length:0;xt.push({newText:"",span:{length:wi.length,start:Mi-$r}})}return xt}function Ve(I,me){const H=o.getCurrentSourceFile(I),{firstLine:de,lastLine:Be}=Wa(H,me);return de===Be&&me.pos!==me.end?Ln(I,me,!0):Tn(I,me,!0)}function pt(I,me){const H=o.getCurrentSourceFile(I),de=[],{pos:Be}=me;let{end:Ie}=me;Be===Ie&&(Ie+=rj(H,Be)?2:1);for(let xt=Be;xt<=Ie;xt++){const Ft=Dy(H,xt);if(Ft){switch(Ft.kind){case 2:de.push(...Tn(I,{end:Ft.end,pos:Ft.pos+1},!1));break;case 3:de.push(...Ln(I,{end:Ft.end,pos:Ft.pos+1},!1))}xt=Ft.end+1}}return de}function ft({openingElement:I,closingElement:me,parent:H}){return!u2(I.tagName,me.tagName)||Uh(H)&&u2(I.tagName,H.openingElement.tagName)&&ft(H)}function At({closingFragment:I,parent:me}){return!!(I.flags&262144)||jb(me)&&At(me)}function le(I,me,H){const de=o.getCurrentSourceFile(I),Be=nu.getRangeOfEnclosingComment(de,me);return Be&&(!H||Be.kind===3)?B1(Be):void 0}function Me(I,me){D();const H=N(I);g.throwIfCancellationRequested();const de=H.text,Be=[];if(me.length>0&&!tn(H.fileName)){const Sn=xt();let Un;for(;Un=Sn.exec(de);){g.throwIfCancellationRequested();const Gn=3;w.assert(Un.length===me.length+Gn);const Li=Un[1],wi=Un.index+Li.length;if(!Dy(H,wi))continue;let sr;for(let xs=0;xs"("+Ie(Di.text)+")").join("|")+")",sr=/(?:$|\*\/)/.source,Wr=/(?:.*?)/.source,xs="("+wi+Wr+")",Mi=Li+xs+sr;return new RegExp(Mi,"gim")}function Ft(Sn){return Sn>=97&&Sn<=122||Sn>=65&&Sn<=90||Sn>=48&&Sn<=57}function tn(Sn){return Sn.includes("/node_modules/")}}function _t(I,me,H){return D(),FB.getRenameInfo(c,N(I),me,H||{})}function U(I,me,H,de,Be,Ie){const[xt,Ft]=typeof me=="number"?[me,void 0]:[me.pos,me.end];return{file:I,startPosition:xt,endPosition:Ft,program:V(),host:e,formatContext:nu.getFormatContext(de,e),cancellationToken:g,preferences:H,triggerReason:Be,kind:Ie}}function it(I,me,H){return{file:I,program:V(),host:e,span:me,preferences:H,cancellationToken:g}}function Et(I,me){return HK.getSmartSelectionRange(me,o.getCurrentSourceFile(I))}function Ge(I,me,H=cd,de,Be,Ie){D();const xt=N(I);return yC.getApplicableRefactors(U(xt,me,H,cd,de,Be),Ie)}function mt(I,me,H=cd){D();const de=N(I),Be=w.checkDefined(c.getSourceFiles()),Ie=tw(I),xt=FI(U(de,me,H,cd)),Ft=Yfe(xt==null?void 0:xt.all),tn=Oi(Be,Sn=>{const Un=tw(Sn.fileName);return!(c!=null&&c.isSourceFileFromExternalLibrary(de))&&!(de===N(Sn.fileName)||Ie===".ts"&&Un===".d.ts"||Ie===".d.ts"&&fs(xl(Sn.fileName),"lib.")&&Un===".d.ts")&&(Ie===Un||(Ie===".tsx"&&Un===".ts"||Ie===".jsx"&&Un===".js")&&!Ft)?Sn.fileName:void 0});return{newFileName:Qfe(de,c,e,xt),files:tn}}function Ut(I,me,H,de,Be,Ie=cd,xt){D();const Ft=N(I);return yC.getEditsForRefactor(U(Ft,H,Ie,me),de,Be,xt)}function vn(I,me){return me===0?{line:0,character:0}:C.toLineColumnOffset(I,me)}function pn(I,me){D();const H=vC.resolveCallHierarchyDeclaration(c,mf(N(I),me));return H&&LQ(H,de=>vC.createCallHierarchyItem(c,de))}function mn(I,me){D();const H=N(I),de=MQ(vC.resolveCallHierarchyDeclaration(c,me===0?H:mf(H,me)));return de?vC.getIncomingCalls(c,de,g):[]}function q(I,me){D();const H=N(I),de=MQ(vC.resolveCallHierarchyDeclaration(c,me===0?H:mf(H,me)));return de?vC.getOutgoingCalls(c,de):[]}function Fe(I,me,H=cd){D();const de=N(I);return BK.provideInlayHints(it(de,me,H))}const Ot={dispose:ce,cleanupSemanticCache:z,getSyntacticDiagnostics:J,getSemanticDiagnostics:ne,getSuggestionDiagnostics:ge,getCompilerOptionsDiagnostics:ve,getSyntacticClassifications:hn,getSemanticClassifications:In,getEncodedSyntacticClassifications:Zt,getEncodedSemanticClassifications:Zn,getCompletionsAtPosition:Q,getCompletionEntryDetails:X,getCompletionEntrySymbol:se,getSignatureHelpItems:zt,getQuickInfoAtPosition:pe,getDefinitionAtPosition:ie,getDefinitionAndBoundSpan:ye,getImplementationAtPosition:Ue,getTypeDefinitionAtPosition:Ne,getReferencesAtPosition:Ae,findReferences:Tt,getFileReferences:xe,getDocumentHighlights:Se,getNameOrDottedNameSpan:$e,getBreakpointStatementAtPosition:kt,getNavigateToItems:ze,getRenameInfo:_t,getSmartSelectionRange:Et,findRenameLocations:Ee,getNavigationBarItems:nn,getNavigationTree:sn,getOutliningSpans:Yt,getTodoComments:Me,getBraceMatchingAtPosition:us,getIndentationAtPosition:zi,getFormattingEditsForRange:Os,getFormattingEditsForDocument:On,getFormattingEditsAfterKeystroke:Fi,getDocCommentTemplateAtPosition:vi,isValidBraceCompletionAtPosition:ts,getJsxClosingTagAtPosition:Ds,getLinkedEditingRangeAtPosition:Sa,getSpanOfEnclosingComment:le,getCodeFixesAtPosition:Er,getCombinedCodeFix:cn,applyCodeActionCommand:wn,organizeImports:et,getEditsForFileRename:Jt,getEmitOutput:st,getNonBoundSourceFile:yt,getProgram:V,getCurrentProgram:()=>c,getAutoImportProvider:G,updateIsDefinitionOfReferencedSymbols:Z,getApplicableRefactors:Ge,getEditsForRefactor:Ut,getMoveToRefactoringFileSuggestions:mt,toLineColumnOffset:vn,getSourceMapper:()=>C,clearSourceMapperCache:()=>C.clearCache(),prepareCallHierarchy:pn,provideCallHierarchyIncomingCalls:mn,provideCallHierarchyOutgoingCalls:q,toggleLineComment:Tn,toggleMultilineComment:Ln,commentSelection:Ve,uncommentSelection:pt,provideInlayHints:Fe,getSupportedCodeFixes:BY};switch(s){case 0:break;case 1:Dpe.forEach(I=>Ot[I]=()=>{throw new Error(`LanguageService Operation: ${I} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:iPe.forEach(I=>Ot[I]=()=>{throw new Error(`LanguageService Operation: ${I} not allowed in LanguageServiceMode.Syntactic`)});break;default:w.assertNever(s)}return Ot}function zY(e){return e.nameTable||aZe(e),e.nameTable}function aZe(e){const t=e.nameTable=new Map;e.forEachChild(function r(i){if(Je(i)&&!HX(i)&&i.escapedText||Ip(i)&&oZe(i)){const s=MP(i);t.set(s,t.get(s)===void 0?i.pos:-1)}else if(Qi(i)){const s=i.escapedText;t.set(s,t.get(s)===void 0?i.pos:-1)}if(Xs(i,r),dp(i))for(const s of i.jsDoc)Xs(s,r)})}function oZe(e){return h0(e)||e.parent.kind===283||uZe(e)||nN(e)}function UI(e){const t=cZe(e);return t&&(Va(t.parent)||Bb(t.parent))?t:void 0}function cZe(e){switch(e.kind){case 11:case 15:case 9:if(e.parent.kind===167)return oW(e.parent.parent)?e.parent.parent:void 0;case 80:return oW(e.parent)&&(e.parent.parent.kind===210||e.parent.parent.kind===292)&&e.parent.name===e?e.parent:void 0}}function lZe(e,t){const r=UI(e);if(r){const i=t.getContextualType(r.parent),s=i&&cB(r,t,i,!1);if(s&&s.length===1)return Ka(s)}return t.getSymbolAtLocation(e)}function cB(e,t,r,i){const s=dI(e.name);if(!s)return Ke;if(!r.isUnion()){const u=r.getProperty(s);return u?[u]:Ke}const o=Va(e.parent)||Bb(e.parent)?vr(r.types,u=>!t.isTypeInvalidDueToUnionDiscriminant(u,e.parent)):r.types,c=Oi(o,u=>u.getProperty(s));if(i&&(c.length===0||c.length===r.types.length)){const u=r.getProperty(s);if(u)return[u]}return!o.length&&!c.length?Oi(r.types,u=>u.getProperty(s)):ks(c,ly)}function uZe(e){return e&&e.parent&&e.parent.kind===212&&e.parent.argumentExpression===e}function Epe(e){if(Bu)return Zr(oi(ka(Bu.getExecutingFilePath())),iA(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}var Ppe,UY,VY,QEe,wpe,WY,qY,YEe,ZEe,KEe,ePe,tPe,nPe,rPe,HY,Dpe,iPe,_Ze=K({"src/services/services.ts"(){ci(),b3e(),z3e(),rh(),Q4e(),WEe(),Ppe="0.8",UY=class{constructor(e,t,r){this.pos=t,this.end=r,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}assertHasRealPosition(e){w.assert(!Em(this.pos)&&!Em(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return qn(this)}getStart(e,t){return this.assertHasRealPosition(),Xv(this,e,t)}getFullStart(){return this.assertHasRealPosition(),this.pos}getEnd(){return this.assertHasRealPosition(),this.end}getWidth(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)}getFullWidth(){return this.assertHasRealPosition(),this.end-this.pos}getLeadingTriviaWidth(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos}getFullText(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(e){return this.getChildren(e).length}getChildAt(e,t){return this.getChildren(t)[e]}getChildren(e){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=rZe(this,e))}getFirstToken(e){this.assertHasRealPosition();const t=this.getChildren(e);if(!t.length)return;const r=Cn(t,i=>i.kind<316||i.kind>357);return r.kind<166?r:r.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();const t=this.getChildren(e),r=pc(t);if(r)return r.kind<166?r:r.getLastToken(e)}forEachChild(e,t){return Xs(this,e,t)}},VY=class{constructor(e,t){this.pos=e,this.end=t,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}getSourceFile(){return qn(this)}getStart(e,t){return Xv(this,e,t)}getFullStart(){return this.pos}getEnd(){return this.end}getWidth(e){return this.getEnd()-this.getStart(e)}getFullWidth(){return this.end-this.pos}getLeadingTriviaWidth(e){return this.getStart(e)-this.pos}getFullText(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(){return this.getChildren().length}getChildAt(e){return this.getChildren()[e]}getChildren(){return this.kind===1&&this.jsDoc||Ke}getFirstToken(){}getLastToken(){}forEachChild(){}},QEe=class{constructor(e,t){this.id=0,this.mergeId=0,this.flags=e,this.escapedName=t}getFlags(){return this.flags}get name(){return Rc(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=Ke,!this.declarations&&Vg(this)&&this.links.target&&Vg(this.links.target)&&this.links.target.links.tupleLabelDeclaration){const t=this.links.target.links.tupleLabelDeclaration;this.documentationComment=sB([t],e)}else this.documentationComment=sB(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,t){if(e){if(g1(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=sB(vr(this.declarations,g1),t)),Xe(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(my(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=sB(vr(this.declarations,my),t)),Xe(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(t)}getJsDocTags(e){return this.tags===void 0&&(this.tags=jY(this.declarations,e)),this.tags}getContextualJsDocTags(e,t){if(e){if(g1(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=jY(vr(this.declarations,g1),t)),Xe(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(my(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=jY(vr(this.declarations,my),t)),Xe(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(t)}},wpe=class extends VY{constructor(e,t,r){super(t,r),this.kind=e}},WY=class extends VY{constructor(e,t,r){super(t,r),this.kind=80}get text(){return kr(this)}},WY.prototype.kind=80,qY=class extends VY{constructor(e,t,r){super(t,r),this.kind=81}get text(){return kr(this)}},qY.prototype.kind=81,YEe=class{constructor(e,t){this.checker=e,this.flags=t}getFlags(){return this.flags}getSymbol(){return this.symbol}getProperties(){return this.checker.getPropertiesOfType(this)}getProperty(e){return this.checker.getPropertyOfType(this,e)}getApparentProperties(){return this.checker.getAugmentedPropertiesOfType(this)}getCallSignatures(){return this.checker.getSignaturesOfType(this,0)}getConstructSignatures(){return this.checker.getSignaturesOfType(this,1)}getStringIndexType(){return this.checker.getIndexTypeOfType(this,0)}getNumberIndexType(){return this.checker.getIndexTypeOfType(this,1)}getBaseTypes(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0}isNullableType(){return this.checker.isNullableType(this)}getNonNullableType(){return this.checker.getNonNullableType(this)}getNonOptionalType(){return this.checker.getNonOptionalType(this)}getConstraint(){return this.checker.getBaseConstraintOfType(this)}getDefault(){return this.checker.getDefaultFromTypeParameter(this)}isUnion(){return!!(this.flags&1048576)}isIntersection(){return!!(this.flags&2097152)}isUnionOrIntersection(){return!!(this.flags&3145728)}isLiteral(){return!!(this.flags&2432)}isStringLiteral(){return!!(this.flags&128)}isNumberLiteral(){return!!(this.flags&256)}isTypeParameter(){return!!(this.flags&262144)}isClassOrInterface(){return!!(Br(this)&3)}isClass(){return!!(Br(this)&1)}isIndexType(){return!!(this.flags&4194304)}get typeArguments(){if(Br(this)&4)return this.checker.getTypeArguments(this)}},ZEe=class{constructor(e,t){this.checker=e,this.flags=t}getDeclaration(){return this.declaration}getTypeParameters(){return this.typeParameters}getParameters(){return this.parameters}getReturnType(){return this.checker.getReturnTypeOfSignature(this)}getTypeParameterAtPosition(e){const t=this.checker.getParameterType(this,e);if(t.isIndexType()&&cw(t.type)){const r=t.type.getConstraint();if(r)return this.checker.getIndexType(r)}return t}getDocumentationComment(){return this.documentationComment||(this.documentationComment=sB(ok(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=jY(ok(this.declaration),this.checker))}},KEe=class extends UY{constructor(e,t,r){super(e,t,r),this.kind=312}update(e,t){return ZH(this,e,t)}getLineAndCharacterOfPosition(e){return Ao(this,e)}getLineStarts(){return _0(this)}getPositionOfLineAndCharacter(e,t,r){return lF(_0(this),e,t,this.text,r)}getLineEndOfPosition(e){const{line:t}=this.getLineAndCharacterOfPosition(e),r=this.getLineStarts();let i;t+1>=r.length&&(i=this.getEnd()),i||(i=r[t+1]-1);const s=this.getFullText();return s[i]===` +`&&s[i-1]==="\r"?i-1:i}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){const e=Dp();return this.forEachChild(s),e;function t(o){const c=i(o);c&&e.add(c,o)}function r(o){let c=e.get(o);return c||e.set(o,c=[]),c}function i(o){const c=dF(o);return c&&(co(c)&&Jr(c.expression)?c.expression.name.text:Tl(c)?dI(c):void 0)}function s(o){switch(o.kind){case 262:case 218:case 174:case 173:const c=o,u=i(c);if(u){const d=r(u),y=pc(d);y&&c.parent===y.parent&&c.symbol===y.symbol?c.body&&!y.body&&(d[d.length-1]=c):d.push(c)}Xs(o,s);break;case 263:case 231:case 264:case 265:case 266:case 267:case 271:case 281:case 276:case 273:case 274:case 177:case 178:case 187:t(o),Xs(o,s);break;case 169:if(!Kr(o,31))break;case 260:case 208:{const d=o;if(ca(d.name)){Xs(d.name,s);break}d.initializer&&s(d.initializer)}case 306:case 172:case 171:t(o);break;case 278:const f=o;f.exportClause&&(sd(f.exportClause)?dt(f.exportClause.elements,s):s(f.exportClause.name));break;case 272:const g=o.importClause;g&&(g.name&&t(g.name),g.namedBindings&&(g.namedBindings.kind===274?t(g.namedBindings):dt(g.namedBindings.elements,s)));break;case 226:rl(o)!==0&&t(o);default:Xs(o,s)}}}},ePe=class{constructor(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}getLineAndCharacterOfPosition(e){return Ao(this,e)}},tPe=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,r,i,s,o,c,u,f;const g=this.host.getScriptSnapshot(e);if(!g)throw new Error("Could not find file: '"+e+"'.");const d=kQ(e,this.host),y=this.host.getScriptVersion(e);let x;if(this.currentFileName!==e){const T={languageVersion:99,impliedNodeFormat:q7(hc(e,this.host.getCurrentDirectory(),((i=(r=(t=this.host).getCompilerHost)==null?void 0:r.call(t))==null?void 0:i.getCanonicalFileName)||yy(this.host)),(f=(u=(c=(o=(s=this.host).getCompilerHost)==null?void 0:o.call(s))==null?void 0:c.getModuleResolutionCache)==null?void 0:u.call(c))==null?void 0:f.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:yN(this.host.getCompilationSettings()),jsDocParsingMode:0};x=oB(e,g,T,y,!0,d)}else if(this.currentFileVersion!==y){const T=g.getChangeRange(this.currentFileScriptSnapshot);x=JY(this.currentSourceFile,g,y,T)}return x&&(this.currentFileVersion=y,this.currentFileName=e,this.currentFileScriptSnapshot=g,this.currentSourceFile=x),this.currentSourceFile}},nPe={isCancellationRequested:xm,throwIfCancellationRequested:ao},rPe=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=cr)==null||e.instant(cr.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new I6}},HY=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){const e=cc();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=cr)==null||e.instant(cr.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new I6}},Dpe=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes"],iPe=[...Dpe,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],Eae(sZe())}});function sPe(e,t,r){const i=[];r=oY(r,i);const s=Ps(e)?e:[e],o=M7(void 0,void 0,L,r,s,t,!0);return o.diagnostics=zn(o.diagnostics,i),o}var fZe=K({"src/services/transform.ts"(){ci()}});function pZe(e,t){if(e.isDeclarationFile)return;let r=ps(e,t);const i=e.getLineAndCharacterOfPosition(t).line;if(e.getLineAndCharacterOfPosition(r.getStart(e)).line>i){const y=Hl(r.pos,e);if(!y||e.getLineAndCharacterOfPosition(y.getEnd()).line!==i)return;r=y}if(r.flags&33554432)return;return d(r);function s(y,x){const T=Nx(y)?Ro(y.modifiers,Vu):void 0,C=T?za(e.text,T.end):y.getStart(e);return Il(C,(x||y).getEnd())}function o(y,x){return s(y,Yb(x,x.parent,e))}function c(y,x){return y&&i===e.getLineAndCharacterOfPosition(y.getStart(e)).line?d(y):d(x)}function u(y,x,T){if(y){const C=y.indexOf(x);if(C>=0){let N=C,D=C+1;for(;N>0&&T(y[N-1]);)N--;for(;D0)return d(ye.declarations[0])}else return d(ie.initializer)}function z(ie){if(ie.initializer)return Z(ie);if(ie.condition)return s(ie.condition);if(ie.incrementor)return s(ie.incrementor)}function ce(ie){const ye=dt(ie.elements,Ne=>Ne.kind!==232?Ne:void 0);return ye?d(ye):ie.parent.kind===208?s(ie.parent):x(ie.parent)}function J(ie){w.assert(ie.kind!==207&&ie.kind!==206);const ye=ie.kind===209?ie.elements:ie.properties,Ne=dt(ye,Ue=>Ue.kind!==232?Ue:void 0);return Ne?d(Ne):s(ie.parent.kind===226?ie.parent:ie)}function ne(ie){switch(ie.parent.kind){case 266:const ye=ie.parent;return c(Hl(ie.pos,e,ie.parent),ye.members.length?ye.members[0]:ye.getLastToken(e));case 263:const Ne=ie.parent;return c(Hl(ie.pos,e,ie.parent),Ne.members.length?Ne.members[0]:Ne.getLastToken(e));case 269:return c(ie.parent.parent,ie.parent.clauses[0])}return d(ie.parent)}function ge(ie){switch(ie.parent.kind){case 268:if(C0(ie.parent.parent)!==1)return;case 266:case 263:return s(ie);case 241:if(hb(ie.parent))return s(ie);case 299:return d(pc(ie.parent.statements));case 269:const ye=ie.parent,Ne=pc(ye.clauses);return Ne?d(pc(Ne.statements)):void 0;case 206:const Ue=ie.parent;return d(pc(Ue.elements)||Ue);default:if(Ay(ie.parent)){const Se=ie.parent;return s(pc(Se.properties)||Se)}return d(ie.parent)}}function ve(ie){switch(ie.parent.kind){case 207:const ye=ie.parent;return s(pc(ye.elements)||ye);default:if(Ay(ie.parent)){const Ne=ie.parent;return s(pc(Ne.elements)||Ne)}return d(ie.parent)}}function Q(ie){return ie.parent.kind===246||ie.parent.kind===213||ie.parent.kind===214?f(ie):ie.parent.kind===217?g(ie):d(ie.parent)}function X(ie){switch(ie.parent.kind){case 218:case 262:case 219:case 174:case 173:case 177:case 178:case 176:case 247:case 246:case 248:case 250:case 213:case 214:case 217:return f(ie);default:return d(ie.parent)}}function se(ie){return oa(ie.parent)||ie.parent.kind===303||ie.parent.kind===169?f(ie):d(ie.parent)}function pe(ie){return ie.parent.kind===216?g(ie):d(ie.parent)}function we(ie){return ie.parent.kind===246?o(ie,ie.parent.expression):d(ie.parent)}function fe(ie){return ie.parent.kind===250?g(ie):d(ie.parent)}}}var dZe=K({"src/services/breakpoints.ts"(){ci()}}),GY={};Ye(GY,{spanInSourceFileAtLocation:()=>pZe});var mZe=K({"src/services/_namespaces/ts.BreakpointResolver.ts"(){dZe()}});function gZe(e){return(Xo(e)||Su(e))&&I_(e)}function aPe(e){return Zs(e)||Ji(e)}function VI(e){return(Xo(e)||ec(e)||Su(e))&&aPe(e.parent)&&e===e.parent.initializer&&Je(e.parent.name)&&(!!(py(e.parent)&2)||Zs(e.parent))}function oPe(e){return es(e)||dl(e)||Wl(e)||Xo(e)||ql(e)||Su(e)||Vc(e)||ul(e)||Xg(e)||Op(e)||$f(e)}function C3(e){return es(e)||dl(e)&&Je(e.name)||Wl(e)||ql(e)||Vc(e)||ul(e)||Xg(e)||Op(e)||$f(e)||gZe(e)||VI(e)}function cPe(e){return es(e)?e:I_(e)?e.name:VI(e)?e.parent.name:w.checkDefined(e.modifiers&&Cn(e.modifiers,lPe))}function lPe(e){return e.kind===90}function uPe(e,t){const r=cPe(t);return r&&e.getSymbolAtLocation(r)}function hZe(e,t){if(es(t))return{text:t.fileName,pos:0,end:0};if((Wl(t)||ql(t))&&!I_(t)){const s=t.modifiers&&Cn(t.modifiers,lPe);if(s)return{text:"default",pos:s.getStart(),end:s.getEnd()}}if(Vc(t)){const s=t.getSourceFile(),o=za(s.text,ag(t).pos),c=o+6,u=e.getTypeChecker(),f=u.getSymbolAtLocation(t.parent);return{text:`${f?`${u.symbolToString(f,t.parent)} `:""}static {}`,pos:o,end:c}}const r=VI(t)?t.parent.name:w.checkDefined(Ms(t),"Expected call hierarchy item to have a name");let i=Je(r)?kr(r):Ip(r)?r.text:co(r)&&Ip(r.expression)?r.expression.text:void 0;if(i===void 0){const s=e.getTypeChecker(),o=s.getSymbolAtLocation(r);o&&(i=s.symbolToString(o,t))}if(i===void 0){const s=j7();i=xP(o=>s.writeNode(4,t,t.getSourceFile(),o))}return{text:i,pos:r.getStart(),end:r.getEnd()}}function yZe(e){var t,r,i,s;if(VI(e))return Zs(e.parent)&&fi(e.parent.parent)?Su(e.parent.parent)?(t=mF(e.parent.parent))==null?void 0:t.getText():(r=e.parent.parent.name)==null?void 0:r.getText():lg(e.parent.parent.parent.parent)&&Je(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 177:case 178:case 174:return e.parent.kind===210?(i=mF(e.parent))==null?void 0:i.getText():(s=Ms(e.parent))==null?void 0:s.getText();case 262:case 263:case 267:if(lg(e.parent)&&Je(e.parent.parent.name))return e.parent.parent.name.getText()}}function _Pe(e,t){if(t.body)return t;if($c(t))return Rh(t.parent);if(Wl(t)||ul(t)){const r=uPe(e,t);return r&&r.valueDeclaration&&Ko(r.valueDeclaration)&&r.valueDeclaration.body?r.valueDeclaration:void 0}return t}function fPe(e,t){const r=uPe(e,t);let i;if(r&&r.declarations){const s=rs(r.declarations),o=Kt(r.declarations,f=>({file:f.getSourceFile().fileName,pos:f.pos}));s.sort((f,g)=>p_(o[f].file,o[g].file)||o[f].pos-o[g].pos);const c=Kt(s,f=>r.declarations[f]);let u;for(const f of c)C3(f)&&((!u||u.parent!==f.parent||u.end!==f.pos)&&(i=gn(i,f)),u=f)}return i}function $Y(e,t){return Vc(t)?t:Ko(t)?_Pe(e,t)??fPe(e,t)??t:fPe(e,t)??t}function pPe(e,t){const r=e.getTypeChecker();let i=!1;for(;;){if(C3(t))return $Y(r,t);if(oPe(t)){const s=Vn(t,C3);return s&&$Y(r,s)}if(h0(t)){if(C3(t.parent))return $Y(r,t.parent);if(oPe(t.parent)){const s=Vn(t.parent,C3);return s&&$Y(r,s)}return aPe(t.parent)&&t.parent.initializer&&VI(t.parent.initializer)?t.parent.initializer:void 0}if($c(t))return C3(t.parent)?t.parent:void 0;if(t.kind===126&&Vc(t.parent)){t=t.parent;continue}if(Ji(t)&&t.initializer&&VI(t.initializer))return t.initializer;if(!i){let s=r.getSymbolAtLocation(t);if(s&&(s.flags&2097152&&(s=r.getAliasedSymbol(s)),s.valueDeclaration)){i=!0,t=s.valueDeclaration;continue}}return}}function Ape(e,t){const r=t.getSourceFile(),i=hZe(e,t),s=yZe(t),o=Qb(t),c=cD(t),u=Il(za(r.text,t.getFullStart(),!1,!0),t.getEnd()),f=Il(i.pos,i.end);return{file:r.fileName,kind:o,kindModifiers:c,name:i.text,containerName:s,span:u,selectionSpan:f}}function vZe(e){return e!==void 0}function bZe(e){if(e.kind===Qo.EntryKind.Node){const{node:t}=e;if(UX(t,!0,!0)||p_e(t,!0,!0)||d_e(t,!0,!0)||m_e(t,!0,!0)||_3(t)||GX(t)){const r=t.getSourceFile();return{declaration:Vn(t,C3)||r,range:cQ(t,r)}}}}function dPe(e){return ho(e.declaration)}function SZe(e,t){return{from:e,fromSpans:t}}function xZe(e,t){return SZe(Ape(e,t[0].declaration),Kt(t,r=>B1(r.range)))}function TZe(e,t,r){if(es(t)||dl(t)||Vc(t))return[];const i=cPe(t),s=vr(Qo.findReferenceOrRenameEntries(e,r,e.getSourceFiles(),i,0,{use:Qo.FindReferencesUse.References},bZe),vZe);return s?KE(s,dPe,o=>xZe(e,o)):[]}function kZe(e,t){function r(s){const o=Lb(s)?s.tag:F_(s)?s.tagName:$o(s)||Vc(s)?s:s.expression,c=pPe(e,o);if(c){const u=cQ(o,s.getSourceFile());if(Ps(c))for(const f of c)t.push({declaration:f,range:u});else t.push({declaration:c,range:u})}}function i(s){if(s&&!(s.flags&33554432)){if(C3(s)){if(fi(s))for(const o of s.members)o.name&&co(o.name)&&i(o.name.expression);return}switch(s.kind){case 80:case 271:case 272:case 278:case 264:case 265:return;case 175:r(s);return;case 216:case 234:i(s.expression);return;case 260:case 169:i(s.name),i(s.initializer);return;case 213:r(s),i(s.expression),dt(s.arguments,i);return;case 214:r(s),i(s.expression),dt(s.arguments,i);return;case 215:r(s),i(s.tag),i(s.template);return;case 286:case 285:r(s),i(s.tagName),i(s.attributes);return;case 170:r(s),i(s.expression);return;case 211:case 212:r(s),Xs(s,i);break;case 238:i(s.expression);return}Ih(s)||Xs(s,i)}}return i}function CZe(e,t){dt(e.statements,t)}function EZe(e,t){!Kr(e,128)&&e.body&&lg(e.body)&&dt(e.body.statements,t)}function PZe(e,t,r){const i=_Pe(e,t);i&&(dt(i.parameters,r),r(i.body))}function wZe(e,t){t(e.body)}function DZe(e,t){dt(e.modifiers,t);const r=Sb(e);r&&t(r.expression);for(const i of e.members)sm(i)&&dt(i.modifiers,t),Zs(i)?t(i.initializer):$c(i)&&i.body?(dt(i.parameters,t),t(i.body)):Vc(i)&&t(i)}function AZe(e,t){const r=[],i=kZe(e,r);switch(t.kind){case 312:CZe(t,i);break;case 267:EZe(t,i);break;case 262:case 218:case 219:case 174:case 177:case 178:PZe(e.getTypeChecker(),t,i);break;case 263:case 231:DZe(t,i);break;case 175:wZe(t,i);break;default:w.assertNever(t)}return r}function NZe(e,t){return{to:e,fromSpans:t}}function IZe(e,t){return NZe(Ape(e,t[0].declaration),Kt(t,r=>B1(r.range)))}function OZe(e,t){return t.flags&33554432||Xg(t)?[]:KE(AZe(e,t),dPe,r=>IZe(e,r))}var FZe=K({"src/services/callHierarchy.ts"(){ci()}}),vC={};Ye(vC,{createCallHierarchyItem:()=>Ape,getIncomingCalls:()=>TZe,getOutgoingCalls:()=>OZe,resolveCallHierarchyDeclaration:()=>pPe});var LZe=K({"src/services/_namespaces/ts.CallHierarchy.ts"(){FZe()}}),mPe={};Ye(mPe,{TokenEncodingConsts:()=>Spe,TokenModifier:()=>Tpe,TokenType:()=>xpe,getEncodedSemanticClassifications:()=>bpe,getSemanticClassifications:()=>zEe});var MZe=K({"src/services/_namespaces/ts.classifier.v2020.ts"(){WEe()}}),Npe={};Ye(Npe,{v2020:()=>mPe});var RZe=K({"src/services/_namespaces/ts.classifier.ts"(){MZe()}});function Im(e,t,r){return Ope(e,Vx(r),t,void 0,void 0)}function ga(e,t,r,i,s,o){return Ope(e,Vx(r),t,i,Vx(s),o)}function Ipe(e,t,r,i,s,o){return Ope(e,Vx(r),t,i,s&&Vx(s),o)}function Ope(e,t,r,i,s,o){return{fixName:e,description:t,changes:r,fixId:i,fixAllDescription:s,commands:o?[o]:void 0}}function Oa(e){for(const t of e.errorCodes)Fpe=void 0,XY.add(String(t),e);if(e.fixIds)for(const t of e.fixIds)w.assert(!QY.has(t)),QY.set(t,e)}function jZe(){return Fpe??(Fpe=Vs(XY.keys()))}function BZe(e,t){const{errorCodes:r}=e;let i=0;for(const o of t)if(Ai(r,o.code)&&i++,i>1)break;const s=i<2;return({fixId:o,fixAllDescription:c,...u})=>s?u:{...u,fixId:o,fixAllDescription:c}}function JZe(e){const t=hPe(e),r=XY.get(String(e.errorCode));return Ys(r,i=>Kt(i.getCodeActions(e),BZe(i,t)))}function zZe(e){return QY.get(pa(e.fixId,Ls)).getAllCodeActions(e)}function E3(e,t){return{changes:e,commands:t}}function gPe(e,t){return{fileName:e,textChanges:t}}function No(e,t,r){const i=[],s=gr.ChangeTracker.with(e,o=>P3(e,t,c=>r(o,c,i)));return E3(s,i.length===0?void 0:i)}function P3(e,t,r){for(const i of hPe(e))Ai(t,i.code)&&r(i)}function hPe({program:e,sourceFile:t,cancellationToken:r}){return[...e.getSemanticDiagnostics(t,r),...e.getSyntacticDiagnostics(t,r),...nY(t,e,r)]}var XY,QY,Fpe,UZe=K({"src/services/codeFixProvider.ts"(){ci(),XY=Dp(),QY=new Map}});function yPe(e,t,r){const i=XN(r)?L.createAsExpression(r.expression,L.createKeywordTypeNode(159)):L.createTypeAssertion(L.createKeywordTypeNode(159),r.expression);e.replaceNode(t,r.expression,i)}function vPe(e,t){if(!lr(e))return Vn(ps(e,t),r=>XN(r)||Ioe(r))}var YY,Lpe,VZe=K({"src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts"(){ci(),La(),YY="addConvertToUnknownForNonOverlappingTypes",Lpe=[p.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code],Oa({errorCodes:Lpe,getCodeActions:function(t){const r=vPe(t.sourceFile,t.span.start);if(r===void 0)return;const i=gr.ChangeTracker.with(t,s=>yPe(s,t.sourceFile,r));return[ga(YY,i,p.Add_unknown_conversion_for_non_overlapping_types,YY,p.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[YY],getAllCodeActions:e=>No(e,Lpe,(t,r)=>{const i=vPe(r.file,r.start);i&&yPe(t,r.file,i)})})}}),WZe=K({"src/services/codefixes/addEmptyExportDeclaration.ts"(){ci(),La(),Oa({errorCodes:[p.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,p.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,p.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(t){const{sourceFile:r}=t,i=gr.ChangeTracker.with(t,s=>{const o=L.createExportDeclaration(void 0,!1,L.createNamedExports([]),void 0);s.insertNodeAtEndOfScope(r,r,o)});return[Im("addEmptyExportDeclaration",i,p.Add_export_to_make_this_file_into_a_module)]}})}});function bPe(e,t,r,i){const s=r(o=>qZe(o,e.sourceFile,t,i));return ga(ZY,s,p.Add_async_modifier_to_containing_function,ZY,p.Add_all_missing_async_modifiers)}function qZe(e,t,r,i){if(i&&i.has(ho(r)))return;i==null||i.add(ho(r));const s=L.replaceModifiers(Sc(r,!0),L.createNodeArray(L.createModifiersFromModifierFlags(x1(r)|1024)));e.replaceNode(t,r,s)}function SPe(e,t){if(!t)return;const r=ps(e,t.start);return Vn(r,s=>s.getStart(e)pl(t)?"quit":(ec(s)||ul(s)||Xo(s)||Wl(s))&&g3(t,tf(s,e)))}function HZe(e,t){return({start:r,length:i,relatedInformation:s,code:o})=>oy(r)&&oy(i)&&g3({start:r,length:i},e)&&o===t&&!!s&&Pe(s,c=>c.code===p.Did_you_mean_to_mark_this_function_as_async.code)}var ZY,Mpe,GZe=K({"src/services/codefixes/addMissingAsync.ts"(){ci(),La(),ZY="addMissingAsync",Mpe=[p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,p.Type_0_is_not_assignable_to_type_1.code,p.Type_0_is_not_comparable_to_type_1.code],Oa({fixIds:[ZY],errorCodes:Mpe,getCodeActions:function(t){const{sourceFile:r,errorCode:i,cancellationToken:s,program:o,span:c}=t,u=Cn(o.getTypeChecker().getDiagnostics(r,s),HZe(c,i)),f=u&&u.relatedInformation&&Cn(u.relatedInformation,y=>y.code===p.Did_you_mean_to_mark_this_function_as_async.code),g=SPe(r,f);return g?[bPe(t,g,y=>gr.ChangeTracker.with(t,y))]:void 0},getAllCodeActions:e=>{const{sourceFile:t}=e,r=new Set;return No(e,Mpe,(i,s)=>{const o=s.relatedInformation&&Cn(s.relatedInformation,f=>f.code===p.Did_you_mean_to_mark_this_function_as_async.code),c=SPe(t,o);return c?bPe(e,c,f=>(f(i),[]),r):void 0})}})}});function xPe(e,t,r,i,s){const o=FQ(e,r);return o&&$Ze(e,t,r,i,s)&&CPe(o)?o:void 0}function TPe(e,t,r,i,s,o){const{sourceFile:c,program:u,cancellationToken:f}=e,g=XZe(t,c,f,u,i);if(g){const d=s(y=>{dt(g.initializers,({expression:x})=>Rpe(y,r,c,i,x,o)),o&&g.needsSecondPassForFixAll&&Rpe(y,r,c,i,t,o)});return Im("addMissingAwaitToInitializer",d,g.initializers.length===1?[p.Add_await_to_initializer_for_0,g.initializers[0].declarationSymbol.name]:p.Add_await_to_initializers)}}function kPe(e,t,r,i,s,o){const c=s(u=>Rpe(u,r,e.sourceFile,i,t,o));return ga(KY,c,p.Add_await,KY,p.Fix_all_expressions_possibly_missing_await)}function $Ze(e,t,r,i,s){const c=s.getTypeChecker().getDiagnostics(e,i);return Pe(c,({start:u,length:f,relatedInformation:g,code:d})=>oy(u)&&oy(f)&&g3({start:u,length:f},r)&&d===t&&!!g&&Pe(g,y=>y.code===p.Did_you_forget_to_use_await.code))}function XZe(e,t,r,i,s){const o=QZe(e,s);if(!o)return;let c=o.isCompleteFix,u;for(const f of o.identifiers){const g=s.getSymbolAtLocation(f);if(!g)continue;const d=si(g.valueDeclaration,Ji),y=d&&si(d.name,Je),x=e2(d,243);if(!d||!x||d.type||!d.initializer||x.getSourceFile()!==t||Kr(x,32)||!y||!CPe(d.initializer)){c=!1;continue}const T=i.getSemanticDiagnostics(t,r);if(Qo.Core.eachSymbolReferenceInFile(y,s,t,N=>f!==N&&!YZe(N,T,t,s))){c=!1;continue}(u||(u=[])).push({expression:d.initializer,declarationSymbol:g})}return u&&{initializers:u,needsSecondPassForFixAll:!c}}function QZe(e,t){if(Jr(e.parent)&&Je(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(Je(e))return{identifiers:[e],isCompleteFix:!0};if(mr(e)){let r,i=!0;for(const s of[e.left,e.right]){const o=t.getTypeAtLocation(s);if(t.getPromisedTypeOfPromise(o)){if(!Je(s)){i=!1;continue}(r||(r=[])).push(s)}}return r&&{identifiers:r,isCompleteFix:i}}}function YZe(e,t,r,i){const s=Jr(e.parent)?e.parent.name:mr(e.parent)?e.parent:e,o=Cn(t,c=>c.start===s.getStart(r)&&c.start+c.length===s.getEnd());return o&&Ai(eZ,o.code)||i.getTypeAtLocation(s).flags&1}function CPe(e){return e.flags&65536||!!Vn(e,t=>t.parent&&ec(t.parent)&&t.parent.body===t||na(t)&&(t.parent.kind===262||t.parent.kind===218||t.parent.kind===219||t.parent.kind===174))}function Rpe(e,t,r,i,s,o){if(QN(s.parent)&&!s.parent.awaitModifier){const c=i.getTypeAtLocation(s),u=i.getAsyncIterableType();if(u&&i.isTypeAssignableTo(c,u)){const f=s.parent;e.replaceNode(r,f,L.updateForOfStatement(f,L.createToken(135),f.initializer,f.expression,f.statement));return}}if(mr(s))for(const c of[s.left,s.right]){if(o&&Je(c)){const g=i.getSymbolAtLocation(c);if(g&&o.has(Ia(g)))continue}const u=i.getTypeAtLocation(c),f=i.getPromisedTypeOfPromise(u)?L.createAwaitExpression(c):c;e.replaceNode(r,c,f)}else if(t===jpe&&Jr(s.parent)){if(o&&Je(s.parent.expression)){const c=i.getSymbolAtLocation(s.parent.expression);if(c&&o.has(Ia(c)))return}e.replaceNode(r,s.parent.expression,L.createParenthesizedExpression(L.createAwaitExpression(s.parent.expression))),EPe(e,s.parent.expression,r)}else if(Ai(Bpe,t)&&Zm(s.parent)){if(o&&Je(s)){const c=i.getSymbolAtLocation(s);if(c&&o.has(Ia(c)))return}e.replaceNode(r,s,L.createParenthesizedExpression(L.createAwaitExpression(s))),EPe(e,s,r)}else{if(o&&Ji(s.parent)&&Je(s.parent.name)){const c=i.getSymbolAtLocation(s.parent.name);if(c&&!Na(o,Ia(c)))return}e.replaceNode(r,s,L.createAwaitExpression(s))}}function EPe(e,t,r){const i=Hl(t.pos,r);i&&Sj(i.end,i.parent,r)&&e.insertText(r,t.getStart(r),";")}var KY,jpe,Bpe,eZ,ZZe=K({"src/services/codefixes/addMissingAwait.ts"(){ci(),La(),KY="addMissingAwait",jpe=p.Property_0_does_not_exist_on_type_1.code,Bpe=[p.This_expression_is_not_callable.code,p.This_expression_is_not_constructable.code],eZ=[p.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,p.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,p.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,p.Operator_0_cannot_be_applied_to_type_1.code,p.Operator_0_cannot_be_applied_to_types_1_and_2.code,p.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,p.This_condition_will_always_return_true_since_this_0_is_always_defined.code,p.Type_0_is_not_an_array_type.code,p.Type_0_is_not_an_array_type_or_a_string_type.code,p.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,p.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,p.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,p.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,p.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,jpe,...Bpe],Oa({fixIds:[KY],errorCodes:eZ,getCodeActions:function(t){const{sourceFile:r,errorCode:i,span:s,cancellationToken:o,program:c}=t,u=xPe(r,i,s,o,c);if(!u)return;const f=t.program.getTypeChecker(),g=d=>gr.ChangeTracker.with(t,d);return Zl([TPe(t,u,i,f,g),kPe(t,u,i,f,g)])},getAllCodeActions:e=>{const{sourceFile:t,program:r,cancellationToken:i}=e,s=e.program.getTypeChecker(),o=new Set;return No(e,eZ,(c,u)=>{const f=xPe(t,u.code,u,i,r);if(!f)return;const g=d=>(d(c),[]);return TPe(e,f,u.code,s,g,o)||kPe(e,f,u.code,s,g,o)})}})}});function PPe(e,t,r,i,s){const o=ps(t,r),c=Vn(o,g=>V6(g.parent)?g.parent.initializer===g:KZe(g)?!1:"quit");if(c)return tZ(e,c,t,s);const u=o.parent;if(mr(u)&&u.operatorToken.kind===64&&xu(u.parent))return tZ(e,o,t,s);if(B_(u)){const g=i.getTypeChecker();return Pn(u.elements,d=>eKe(d,g))?tZ(e,u,t,s):void 0}const f=Vn(o,g=>xu(g.parent)?!0:tKe(g)?!1:"quit");if(f){const g=i.getTypeChecker();return wPe(f,g)?tZ(e,f,t,s):void 0}}function tZ(e,t,r,i){(!i||Na(i,t))&&e.insertModifierBefore(r,87,t)}function KZe(e){switch(e.kind){case 80:case 209:case 210:case 303:case 304:return!0;default:return!1}}function eKe(e,t){const r=Je(e)?e:Kl(e,!0)&&Je(e.left)?e.left:void 0;return!!r&&!t.getSymbolAtLocation(r)}function tKe(e){switch(e.kind){case 80:case 226:case 28:return!0;default:return!1}}function wPe(e,t){return mr(e)?e.operatorToken.kind===28?Pn([e.left,e.right],r=>wPe(r,t)):e.operatorToken.kind===64&&Je(e.left)&&!t.getSymbolAtLocation(e.left):!1}var nZ,Jpe,nKe=K({"src/services/codefixes/addMissingConst.ts"(){ci(),La(),nZ="addMissingConst",Jpe=[p.Cannot_find_name_0.code,p.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code],Oa({errorCodes:Jpe,getCodeActions:function(t){const r=gr.ChangeTracker.with(t,i=>PPe(i,t.sourceFile,t.span.start,t.program));if(r.length>0)return[ga(nZ,r,p.Add_const_to_unresolved_variable,nZ,p.Add_const_to_all_unresolved_variables)]},fixIds:[nZ],getAllCodeActions:e=>{const t=new Set;return No(e,Jpe,(r,i)=>PPe(r,i.file,i.start,e.program,t))}})}});function DPe(e,t,r,i){const s=ps(t,r);if(!Je(s))return;const o=s.parent;o.kind===172&&(!i||Na(i,o))&&e.insertModifierBefore(t,138,o)}var rZ,zpe,rKe=K({"src/services/codefixes/addMissingDeclareProperty.ts"(){ci(),La(),rZ="addMissingDeclareProperty",zpe=[p.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code],Oa({errorCodes:zpe,getCodeActions:function(t){const r=gr.ChangeTracker.with(t,i=>DPe(i,t.sourceFile,t.span.start));if(r.length>0)return[ga(rZ,r,p.Prefix_with_declare,rZ,p.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[rZ],getAllCodeActions:e=>{const t=new Set;return No(e,zpe,(r,i)=>DPe(r,i.file,i.start,t))}})}});function APe(e,t,r){const i=ps(t,r),s=Vn(i,Vu);w.assert(!!s,"Expected position to be owned by a decorator.");const o=L.createCallExpression(s.expression,void 0,void 0);e.replaceNode(t,s.expression,o)}var iZ,Upe,iKe=K({"src/services/codefixes/addMissingInvocationForDecorator.ts"(){ci(),La(),iZ="addMissingInvocationForDecorator",Upe=[p._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code],Oa({errorCodes:Upe,getCodeActions:function(t){const r=gr.ChangeTracker.with(t,i=>APe(i,t.sourceFile,t.span.start));return[ga(iZ,r,p.Call_decorator_expression,iZ,p.Add_to_all_uncalled_decorators)]},fixIds:[iZ],getAllCodeActions:e=>No(e,Upe,(t,r)=>APe(t,r.file,r.start))})}});function NPe(e,t,r){const i=ps(t,r),s=i.parent;if(!ws(s))return w.fail("Tried to add a parameter name to a non-parameter: "+w.formatSyntaxKind(i.kind));const o=s.parent.parameters.indexOf(s);w.assert(!s.type,"Tried to add a parameter name to a parameter that already had one."),w.assert(o>-1,"Parameter not found in parent parameter list.");let c=s.name.getEnd(),u=L.createTypeReferenceNode(s.name,void 0),f=IPe(t,s);for(;f;)u=L.createArrayTypeNode(u),c=f.getEnd(),f=IPe(t,f);const g=L.createParameterDeclaration(s.modifiers,s.dotDotDotToken,"arg"+o,s.questionToken,s.dotDotDotToken&&!GN(u)?L.createArrayTypeNode(u):u,s.initializer);e.replaceRange(t,ed(s.getStart(t),c),g)}function IPe(e,t){const r=Yb(t.name,t.parent,e);if(r&&r.kind===23&&Ob(r.parent)&&ws(r.parent.parent))return r.parent.parent}var sZ,Vpe,sKe=K({"src/services/codefixes/addNameToNamelessParameter.ts"(){ci(),La(),sZ="addNameToNamelessParameter",Vpe=[p.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code],Oa({errorCodes:Vpe,getCodeActions:function(t){const r=gr.ChangeTracker.with(t,i=>NPe(i,t.sourceFile,t.span.start));return[ga(sZ,r,p.Add_parameter_name,sZ,p.Add_names_to_all_parameters_without_names)]},fixIds:[sZ],getAllCodeActions:e=>No(e,Vpe,(t,r)=>NPe(t,r.file,r.start))})}});function aKe(e,t,r){var i,s;const o=OPe(FQ(e,t),r);if(!o)return Ke;const{source:c,target:u}=o,f=oKe(c,u,r)?r.getTypeAtLocation(u.expression):r.getTypeAtLocation(u);return(s=(i=f.symbol)==null?void 0:i.declarations)!=null&&s.some(g=>qn(g).fileName.match(/\.d\.ts$/))?Ke:r.getExactOptionalProperties(f)}function oKe(e,t,r){return Jr(t)&&!!r.getExactOptionalProperties(r.getTypeAtLocation(t.expression)).length&&r.getTypeAtLocation(e)===r.getUndefinedType()}function OPe(e,t){var r;if(e){if(mr(e.parent)&&e.parent.operatorToken.kind===64)return{source:e.parent.right,target:e.parent.left};if(Ji(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(ma(e.parent)){const i=t.getSymbolAtLocation(e.parent.expression);if(!(i!=null&&i.valueDeclaration)||!dk(i.valueDeclaration.kind)||!vt(e))return;const s=e.parent.arguments.indexOf(e);if(s===-1)return;const o=i.valueDeclaration.parameters[s].name;if(Je(o))return{source:e,target:o}}else if(Ml(e.parent)&&Je(e.parent.name)||Af(e.parent)){const i=OPe(e.parent.parent,t);if(!i)return;const s=t.getPropertyOfType(t.getTypeAtLocation(i.target),e.parent.name.text),o=(r=s==null?void 0:s.declarations)==null?void 0:r[0];return o?{source:Ml(e.parent)?e.parent.initializer:e.parent.name,target:o}:void 0}}else return}function cKe(e,t){for(const r of t){const i=r.valueDeclaration;if(i&&(Gf(i)||Zs(i))&&i.type){const s=L.createUnionTypeNode([...i.type.kind===192?i.type.types:[i.type],L.createTypeReferenceNode("undefined")]);e.replaceNode(i.getSourceFile(),i.type,s)}}}var Wpe,FPe,lKe=K({"src/services/codefixes/addOptionalPropertyUndefined.ts"(){ci(),La(),Wpe="addOptionalPropertyUndefined",FPe=[p.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,p.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code],Oa({errorCodes:FPe,getCodeActions(e){const t=e.program.getTypeChecker(),r=aKe(e.sourceFile,e.span,t);if(!r.length)return;const i=gr.ChangeTracker.with(e,s=>cKe(s,r));return[Im(Wpe,i,p.Add_undefined_to_optional_property_type)]},fixIds:[Wpe]})}});function LPe(e,t){const r=ps(e,t);return si(ws(r.parent)?r.parent.parent:r.parent,MPe)}function MPe(e){return uKe(e)&&RPe(e)}function RPe(e){return Ko(e)?e.parameters.some(RPe)||!e.type&&!!lA(e):!e.type&&!!Hv(e)}function jPe(e,t,r){if(Ko(r)&&(lA(r)||r.parameters.some(i=>!!Hv(i)))){if(!r.typeParameters){const s=k9(r);s.length&&e.insertTypeParameters(t,r,s)}const i=ec(r)&&!wo(r,21,t);i&&e.insertNodeBefore(t,Ka(r.parameters),L.createToken(21));for(const s of r.parameters)if(!s.type){const o=Hv(s);o&&e.tryInsertTypeAnnotation(t,s,tt(o,nS,Gi))}if(i&&e.insertNodeAfter(t,so(r.parameters),L.createToken(22)),!r.type){const s=lA(r);s&&e.tryInsertTypeAnnotation(t,r,tt(s,nS,Gi))}}else{const i=w.checkDefined(Hv(r),"A JSDocType for this declaration should exist");w.assert(!r.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,r,tt(i,nS,Gi))}}function uKe(e){return Ko(e)||e.kind===260||e.kind===171||e.kind===172}function nS(e){switch(e.kind){case 319:case 320:return L.createTypeReferenceNode("any",Ke);case 323:return fKe(e);case 322:return nS(e.type);case 321:return pKe(e);case 325:return dKe(e);case 324:return mKe(e);case 183:return hKe(e);case 329:return _Ke(e);default:const t=En(e,nS,void 0);return pr(t,1),t}}function _Ke(e){const t=L.createTypeLiteralNode(Kt(e.jsDocPropertyTags,r=>L.createPropertySignature(void 0,Je(r.name)?r.name:r.name.right,kN(r)?L.createToken(58):void 0,r.typeExpression&&tt(r.typeExpression.type,nS,Gi)||L.createKeywordTypeNode(133))));return pr(t,1),t}function fKe(e){return L.createUnionTypeNode([tt(e.type,nS,Gi),L.createTypeReferenceNode("undefined",Ke)])}function pKe(e){return L.createUnionTypeNode([tt(e.type,nS,Gi),L.createTypeReferenceNode("null",Ke)])}function dKe(e){return L.createArrayTypeNode(tt(e.type,nS,Gi))}function mKe(e){return L.createFunctionTypeNode(Ke,e.parameters.map(gKe),e.type??L.createKeywordTypeNode(133))}function gKe(e){const t=e.parent.parameters.indexOf(e),r=e.type.kind===325&&t===e.parent.parameters.length-1,i=e.name||(r?"rest":"arg"+t),s=r?L.createToken(26):e.dotDotDotToken;return L.createParameterDeclaration(e.modifiers,s,i,e.questionToken,tt(e.type,nS,Gi),e.initializer)}function hKe(e){let t=e.typeName,r=e.typeArguments;if(Je(e.typeName)){if(s9(e))return yKe(e);let i=e.typeName.text;switch(e.typeName.text){case"String":case"Boolean":case"Object":case"Number":i=i.toLowerCase();break;case"array":case"date":case"promise":i=i[0].toUpperCase()+i.slice(1);break}t=L.createIdentifier(i),(i==="Array"||i==="Promise")&&!e.typeArguments?r=L.createNodeArray([L.createTypeReferenceNode("any",Ke)]):r=Wn(e.typeArguments,nS,Gi)}return L.createTypeReferenceNode(t,r)}function yKe(e){const t=L.createParameterDeclaration(void 0,void 0,e.typeArguments[0].kind===150?"n":"s",void 0,L.createTypeReferenceNode(e.typeArguments[0].kind===150?"number":"string",[]),void 0),r=L.createTypeLiteralNode([L.createIndexSignature(void 0,[t],e.typeArguments[1])]);return pr(r,1),r}var aZ,qpe,vKe=K({"src/services/codefixes/annotateWithTypeFromJSDoc.ts"(){ci(),La(),aZ="annotateWithTypeFromJSDoc",qpe=[p.JSDoc_types_may_be_moved_to_TypeScript_types.code],Oa({errorCodes:qpe,getCodeActions(e){const t=LPe(e.sourceFile,e.span.start);if(!t)return;const r=gr.ChangeTracker.with(e,i=>jPe(i,e.sourceFile,t));return[ga(aZ,r,p.Annotate_with_type_from_JSDoc,aZ,p.Annotate_everything_with_types_from_JSDoc)]},fixIds:[aZ],getAllCodeActions:e=>No(e,qpe,(t,r)=>{const i=LPe(r.file,r.start);i&&jPe(t,r.file,i)})})}});function BPe(e,t,r,i,s,o){const c=i.getSymbolAtLocation(ps(t,r));if(!c||!c.valueDeclaration||!(c.flags&19))return;const u=c.valueDeclaration;if(Wl(u)||Xo(u))e.replaceNode(t,u,d(u));else if(Ji(u)){const y=g(u);if(!y)return;const x=u.parent.parent;_u(u.parent)&&u.parent.declarations.length>1?(e.delete(t,u),e.insertNodeAfter(t,x,y)):e.replaceNode(t,x,y)}function f(y){const x=[];return y.exports&&y.exports.forEach(N=>{if(N.name==="prototype"&&N.declarations){const D=N.declarations[0];if(N.declarations.length===1&&Jr(D)&&mr(D.parent)&&D.parent.operatorToken.kind===64&&Va(D.parent.right)){const M=D.parent.right;C(M.symbol,void 0,x)}}else C(N,[L.createToken(126)],x)}),y.members&&y.members.forEach((N,D)=>{var M,V,G,Z;if(D==="constructor"&&N.valueDeclaration){const z=(Z=(G=(V=(M=y.exports)==null?void 0:M.get("prototype"))==null?void 0:V.declarations)==null?void 0:G[0])==null?void 0:Z.parent;z&&mr(z)&&Va(z.right)&&Pe(z.right.properties,cZ)||e.delete(t,N.valueDeclaration.parent);return}C(N,void 0,x)}),x;function T(N,D){return $o(N)?Jr(N)&&cZ(N)?!0:oa(D):Pn(N.properties,M=>!!(ul(M)||yF(M)||Ml(M)&&Xo(M.initializer)&&M.name||cZ(M)))}function C(N,D,M){if(!(N.flags&8192)&&!(N.flags&4096))return;const V=N.valueDeclaration,G=V.parent,Z=G.right;if(!T(V,Z)||Pe(M,ge=>{const ve=Ms(ge);return!!(ve&&Je(ve)&&kr(ve)===Rc(N))}))return;const z=G.parent&&G.parent.kind===244?G.parent:G;if(e.delete(t,z),!Z){M.push(L.createPropertyDeclaration(D,N.name,void 0,void 0,void 0));return}if($o(V)&&(Xo(Z)||ec(Z))){const ge=Bp(t,s),ve=bKe(V,o,ge);ve&&ce(M,Z,ve);return}else if(Va(Z)){dt(Z.properties,ge=>{(ul(ge)||yF(ge))&&M.push(ge),Ml(ge)&&Xo(ge.initializer)&&ce(M,ge.initializer,ge.name),cZ(ge)});return}else{if(L_(t)||!Jr(V))return;const ge=L.createPropertyDeclaration(D,V.name,void 0,void 0,Z);y3(G.parent,ge,t),M.push(ge);return}function ce(ge,ve,Q){return Xo(ve)?J(ge,ve,Q):ne(ge,ve,Q)}function J(ge,ve,Q){const X=zn(D,oZ(ve,134)),se=L.createMethodDeclaration(X,void 0,Q,void 0,void 0,ve.parameters,void 0,ve.body);y3(G,se,t),ge.push(se)}function ne(ge,ve,Q){const X=ve.body;let se;X.kind===241?se=X:se=L.createBlock([L.createReturnStatement(X)]);const pe=zn(D,oZ(ve,134)),we=L.createMethodDeclaration(pe,void 0,Q,void 0,void 0,ve.parameters,void 0,se);y3(G,we,t),ge.push(we)}}}function g(y){const x=y.initializer;if(!x||!Xo(x)||!Je(y.name))return;const T=f(y.symbol);x.body&&T.unshift(L.createConstructorDeclaration(void 0,x.parameters,x.body));const C=oZ(y.parent.parent,95);return L.createClassDeclaration(C,y.name,void 0,void 0,T)}function d(y){const x=f(c);y.body&&x.unshift(L.createConstructorDeclaration(void 0,y.parameters,y.body));const T=oZ(y,95);return L.createClassDeclaration(T,y.name,void 0,void 0,x)}}function oZ(e,t){return sm(e)?vr(e.modifiers,r=>r.kind===t):void 0}function cZ(e){return e.name?!!(Je(e.name)&&e.name.text==="constructor"):!1}function bKe(e,t,r){if(Jr(e))return e.name;const i=e.argumentExpression;if(Hf(i))return i;if(vo(i))return Np(i.text,go(t))?L.createIdentifier(i.text):Jk(i)?L.createStringLiteral(i.text,r===0):i}var lZ,Hpe,SKe=K({"src/services/codefixes/convertFunctionToEs6Class.ts"(){ci(),La(),lZ="convertFunctionToEs6Class",Hpe=[p.This_constructor_function_may_be_converted_to_a_class_declaration.code],Oa({errorCodes:Hpe,getCodeActions(e){const t=gr.ChangeTracker.with(e,r=>BPe(r,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()));return[ga(lZ,t,p.Convert_function_to_an_ES2015_class,lZ,p.Convert_all_constructor_functions_to_classes)]},fixIds:[lZ],getAllCodeActions:e=>No(e,Hpe,(t,r)=>BPe(t,r.file,r.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()))})}});function JPe(e,t,r,i){const s=ps(t,r);let o;if(Je(s)&&Ji(s.parent)&&s.parent.initializer&&Ko(s.parent.initializer)?o=s.parent.initializer:o=si(hp(ps(t,r)),sY),!o)return;const c=new Map,u=lr(o),f=TKe(o,i),g=kKe(o,i,c);if(!rY(g,i))return;const d=g.body&&na(g.body)?xKe(g.body,i):Ke,y={checker:i,synthNamesMap:c,setOfExpressionsToReturn:f,isInJSFile:u};if(!d.length)return;const x=za(t.text,ag(o).pos);e.insertModifierAt(t,x,134,{suffix:" "});for(const T of d)if(Xs(T,function C(N){if(ma(N)){const D=w3(N,N,y,!1);if(bC())return!0;e.replaceNodeWithNodes(t,T,D)}else if(!oa(N)&&(Xs(N,C),bC()))return!0}),bC())return}function xKe(e,t){const r=[];return gb(e,i=>{jj(i,t)&&r.push(i)}),r}function TKe(e,t){if(!e.body)return new Set;const r=new Set;return Xs(e.body,function i(s){WI(s,t,"then")?(r.add(ho(s)),dt(s.arguments,i)):WI(s,t,"catch")||WI(s,t,"finally")?(r.add(ho(s)),Xs(s,i)):UPe(s,t)?r.add(ho(s)):Xs(s,i)}),r}function WI(e,t,r){if(!ma(e))return!1;const s=rI(e,r)&&t.getTypeAtLocation(e);return!!(s&&t.getPromisedTypeOfPromise(s))}function zPe(e,t){return(Br(e)&4)!==0&&e.target===t}function uZ(e,t,r){if(e.expression.name.escapedText==="finally")return;const i=r.getTypeAtLocation(e.expression.expression);if(zPe(i,r.getPromiseType())||zPe(i,r.getPromiseLikeType()))if(e.expression.name.escapedText==="then"){if(t===uy(e.arguments,0))return uy(e.typeArguments,0);if(t===uy(e.arguments,1))return uy(e.typeArguments,1)}else return uy(e.typeArguments,0)}function UPe(e,t){return vt(e)?!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e)):!1}function kKe(e,t,r){const i=new Map,s=Dp();return Xs(e,function o(c){if(!Je(c)){Xs(c,o);return}const u=t.getSymbolAtLocation(c);if(u){const f=t.getTypeAtLocation(c),g=$Pe(f,t),d=Ia(u).toString();if(g&&!ws(c.parent)&&!Ko(c.parent)&&!r.has(d)){const y=hu(g.parameters),x=(y==null?void 0:y.valueDeclaration)&&ws(y.valueDeclaration)&&si(y.valueDeclaration.name,Je)||L.createUniqueName("result",16),T=VPe(x,s);r.set(d,T),s.add(x.text,u)}else if(c.parent&&(ws(c.parent)||Ji(c.parent)||oo(c.parent))){const y=c.text,x=s.get(y);if(x&&x.some(T=>T!==u)){const T=VPe(c,s);i.set(d,T.identifier),r.set(d,T),s.add(y,u)}else{const T=Sc(c);r.set(d,SD(T)),s.add(y,u)}}}}),yI(e,!0,o=>{if(oo(o)&&Je(o.name)&&Md(o.parent)){const c=t.getSymbolAtLocation(o.name),u=c&&i.get(String(Ia(c)));if(u&&u.text!==(o.name||o.propertyName).getText())return L.createBindingElement(o.dotDotDotToken,o.propertyName||o.name,u,o.initializer)}else if(Je(o)){const c=t.getSymbolAtLocation(o),u=c&&i.get(String(Ia(c)));if(u)return L.createIdentifier(u.text)}})}function VPe(e,t){const r=(t.get(e.text)||Ke).length,i=r===0?e:L.createIdentifier(e.text+"_"+r);return SD(i)}function bC(){return!uB}function b2(){return uB=!1,Ke}function w3(e,t,r,i,s){if(WI(t,r.checker,"then"))return PKe(t,uy(t.arguments,0),uy(t.arguments,1),r,i,s);if(WI(t,r.checker,"catch"))return HPe(t,uy(t.arguments,0),r,i,s);if(WI(t,r.checker,"finally"))return EKe(t,uy(t.arguments,0),r,i,s);if(Jr(t))return w3(e,t.expression,r,i,s);const o=r.checker.getTypeAtLocation(t);return o&&r.checker.getPromisedTypeOfPromise(o)?(w.assertNode(Gc(t).parent,Jr),wKe(e,t,r,i,s)):b2()}function _Z({checker:e},t){if(t.kind===106)return!0;if(Je(t)&&!vc(t)&&kr(t)==="undefined"){const r=e.getSymbolAtLocation(t);return!r||e.isUndefinedSymbol(r)}return!1}function CKe(e){const t=L.createUniqueName(e.identifier.text,16);return SD(t)}function WPe(e,t,r){let i;return r&&!HI(e,t)&&(qI(r)?(i=r,t.synthNamesMap.forEach((s,o)=>{if(s.identifier.text===r.identifier.text){const c=CKe(r);t.synthNamesMap.set(o,c)}})):i=SD(L.createUniqueName("result",16),r.types),Qpe(i)),i}function qPe(e,t,r,i,s){const o=[];let c;if(i&&!HI(e,t)){c=Sc(Qpe(i));const u=i.types,f=t.checker.getUnionType(u,2),g=t.isInJSFile?void 0:t.checker.typeToTypeNode(f,void 0,void 0),d=[L.createVariableDeclaration(c,void 0,g)],y=L.createVariableStatement(void 0,L.createVariableDeclarationList(d,1));o.push(y)}return o.push(r),s&&c&&NKe(s)&&o.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(Sc(ZPe(s)),void 0,void 0,c)],2))),o}function EKe(e,t,r,i,s){if(!t||_Z(r,t))return w3(e,e.expression.expression,r,i,s);const o=WPe(e,r,s),c=w3(e,e.expression.expression,r,!0,o);if(bC())return b2();const u=$pe(t,i,void 0,void 0,e,r);if(bC())return b2();const f=L.createBlock(c),g=L.createBlock(u),d=L.createTryStatement(f,void 0,g);return qPe(e,r,d,o,s)}function HPe(e,t,r,i,s){if(!t||_Z(r,t))return w3(e,e.expression.expression,r,i,s);const o=QPe(t,r),c=WPe(e,r,s),u=w3(e,e.expression.expression,r,!0,c);if(bC())return b2();const f=$pe(t,i,c,o,e,r);if(bC())return b2();const g=L.createBlock(u),d=L.createCatchClause(o&&Sc(lB(o)),L.createBlock(f)),y=L.createTryStatement(g,d,void 0);return qPe(e,r,y,c,s)}function PKe(e,t,r,i,s,o){if(!t||_Z(i,t))return HPe(e,r,i,s,o);if(r&&!_Z(i,r))return b2();const c=QPe(t,i),u=w3(e.expression.expression,e.expression.expression,i,!0,c);if(bC())return b2();const f=$pe(t,s,o,c,e,i);return bC()?b2():zn(u,f)}function wKe(e,t,r,i,s){if(HI(e,r)){let o=Sc(t);return i&&(o=L.createAwaitExpression(o)),[L.createReturnStatement(o)]}return fZ(s,L.createAwaitExpression(t),void 0)}function fZ(e,t,r){return!e||YPe(e)?[L.createExpressionStatement(t)]:qI(e)&&e.hasBeenDeclared?[L.createExpressionStatement(L.createAssignment(Sc(Xpe(e)),t))]:[L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(Sc(lB(e)),void 0,r,t)],2))]}function Gpe(e,t){if(t&&e){const r=L.createUniqueName("result",16);return[...fZ(SD(r),e,t),L.createReturnStatement(r)]}return[L.createReturnStatement(e)]}function $pe(e,t,r,i,s,o){var c;switch(e.kind){case 106:break;case 211:case 80:if(!i)break;const u=L.createCallExpression(Sc(e),void 0,qI(i)?[Xpe(i)]:[]);if(HI(s,o))return Gpe(u,uZ(s,e,o.checker));const f=o.checker.getTypeAtLocation(e),g=o.checker.getSignaturesOfType(f,0);if(!g.length)return b2();const d=g[0].getReturnType(),y=fZ(r,L.createAwaitExpression(u),uZ(s,e,o.checker));return r&&r.types.push(o.checker.getAwaitedType(d)||d),y;case 218:case 219:{const x=e.body,T=(c=$Pe(o.checker.getTypeAtLocation(e),o.checker))==null?void 0:c.getReturnType();if(na(x)){let C=[],N=!1;for(const D of x.statements)if(rm(D))if(N=!0,jj(D,o.checker))C=C.concat(XPe(o,D,t,r));else{const M=T&&D.expression?GPe(o.checker,T,D.expression):D.expression;C.push(...Gpe(M,uZ(s,e,o.checker)))}else{if(t&&gb(D,cy))return b2();C.push(D)}return HI(s,o)?C.map(D=>Sc(D)):DKe(C,r,o,N)}else{const C=iY(x,o.checker)?XPe(o,L.createReturnStatement(x),t,r):Ke;if(C.length>0)return C;if(T){const N=GPe(o.checker,T,x);if(HI(s,o))return Gpe(N,uZ(s,e,o.checker));{const D=fZ(r,N,void 0);return r&&r.types.push(o.checker.getAwaitedType(T)||T),D}}else return b2()}}default:return b2()}return Ke}function GPe(e,t,r){const i=Sc(r);return e.getPromisedTypeOfPromise(t)?L.createAwaitExpression(i):i}function $Pe(e,t){const r=t.getSignaturesOfType(e,0);return pc(r)}function DKe(e,t,r,i){const s=[];for(const o of e)if(rm(o)){if(o.expression){const c=UPe(o.expression,r.checker)?L.createAwaitExpression(o.expression):o.expression;t===void 0?s.push(L.createExpressionStatement(c)):qI(t)&&t.hasBeenDeclared?s.push(L.createExpressionStatement(L.createAssignment(Xpe(t),c))):s.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(lB(t),void 0,void 0,c)],2)))}}else s.push(Sc(o));return!i&&t!==void 0&&s.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(lB(t),void 0,void 0,L.createIdentifier("undefined"))],2))),s}function XPe(e,t,r,i){let s=[];return Xs(t,function o(c){if(ma(c)){const u=w3(c,c,e,r,i);if(s=s.concat(u),s.length>0)return}else oa(c)||Xs(c,o)}),s}function QPe(e,t){const r=[];let i;if(Ko(e)){if(e.parameters.length>0){const f=e.parameters[0].name;i=s(f)}}else Je(e)?i=o(e):Jr(e)&&Je(e.name)&&(i=o(e.name));if(!i||"identifier"in i&&i.identifier.text==="undefined")return;return i;function s(f){if(Je(f))return o(f);const g=Ys(f.elements,d=>uu(d)?[]:[s(d.name)]);return AKe(f,g)}function o(f){const g=u(f),d=c(g);return d&&t.synthNamesMap.get(Ia(d).toString())||SD(f,r)}function c(f){var g;return((g=si(f,Km))==null?void 0:g.symbol)??t.checker.getSymbolAtLocation(f)}function u(f){return f.original?f.original:f}}function YPe(e){return e?qI(e)?!e.identifier.text:Pn(e.elements,YPe):!0}function SD(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function AKe(e,t=Ke,r=[]){return{kind:1,bindingPattern:e,elements:t,types:r}}function Xpe(e){return e.hasBeenReferenced=!0,e.identifier}function lB(e){return qI(e)?Qpe(e):ZPe(e)}function ZPe(e){for(const t of e.elements)lB(t);return e.bindingPattern}function Qpe(e){return e.hasBeenDeclared=!0,e.identifier}function qI(e){return e.kind===0}function NKe(e){return e.kind===1}function HI(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(ho(e.original))}var pZ,Ype,uB,IKe=K({"src/services/codefixes/convertToAsyncFunction.ts"(){ci(),La(),pZ="convertToAsyncFunction",Ype=[p.This_may_be_converted_to_an_async_function.code],uB=!0,Oa({errorCodes:Ype,getCodeActions(e){uB=!0;const t=gr.ChangeTracker.with(e,r=>JPe(r,e.sourceFile,e.span.start,e.program.getTypeChecker()));return uB?[ga(pZ,t,p.Convert_to_async_function,pZ,p.Convert_all_to_async_functions)]:[]},fixIds:[pZ],getAllCodeActions:e=>No(e,Ype,(t,r)=>JPe(t,r.file,r.start,e.program.getTypeChecker()))})}});function OKe(e,t,r,i,s){var o;for(const c of e.imports){const u=(o=r.getResolvedModuleFromModuleSpecifier(c))==null?void 0:o.resolvedModule;if(!u||u.resolvedFileName!==t.fileName)continue;const f=NP(c);switch(f.kind){case 271:i.replaceNode(e,f,Ny(f.name,void 0,c,s));break;case 213:Q_(f,!1)&&i.replaceNode(e,f,L.createPropertyAccessExpression(Sc(f),"default"));break}}}function FKe(e,t,r,i,s){const o={original:GKe(e),additional:new Set},c=LKe(e,t,o);MKe(e,c,r);let u=!1,f;for(const g of vr(e.statements,Xc)){const d=ewe(e,g,r,t,o,i,s);d&&OF(d,f??(f=new Map))}for(const g of vr(e.statements,d=>!Xc(d))){const d=RKe(e,g,t,r,o,i,c,f,s);u=u||d}return f==null||f.forEach((g,d)=>{r.replaceNode(e,d,g)}),u}function LKe(e,t,r){const i=new Map;return KPe(e,s=>{const{text:o}=s.name;!i.has(o)&&(QW(s.name)||t.resolveName(o,s,111551,!0))&&i.set(o,dZ(`_${o}`,r))}),i}function MKe(e,t,r){KPe(e,(i,s)=>{if(s)return;const{text:o}=i.name;r.replaceNode(e,i,L.createIdentifier(t.get(o)||o))})}function KPe(e,t){e.forEachChild(function r(i){if(Jr(i)&&Wb(e,i.expression)&&Je(i.name)){const{parent:s}=i;t(i,mr(s)&&s.left===i&&s.operatorToken.kind===64)}i.forEachChild(r)})}function RKe(e,t,r,i,s,o,c,u,f){switch(t.kind){case 243:return ewe(e,t,i,r,s,o,f),!1;case 244:{const{expression:g}=t;switch(g.kind){case 213:return Q_(g,!0)&&i.replaceNode(e,t,Ny(void 0,void 0,g.arguments[0],f)),!1;case 226:{const{operatorToken:d}=g;return d.kind===64&&BKe(e,r,g,i,c,u)}}}default:return!1}}function ewe(e,t,r,i,s,o,c){const{declarationList:u}=t;let f=!1;const g=Kt(u.declarations,d=>{const{name:y,initializer:x}=d;if(x){if(Wb(e,x))return f=!0,xD([]);if(Q_(x,!0))return f=!0,qKe(y,x.arguments[0],i,s,o,c);if(Jr(x)&&Q_(x.expression,!0))return f=!0,jKe(y,x.name.text,x.expression.arguments[0],s,c)}return xD([L.createVariableStatement(void 0,L.createVariableDeclarationList([d],u.flags))])});if(f){r.replaceNodeWithNodes(e,t,Ys(g,y=>y.newImports));let d;return dt(g,y=>{y.useSitesToUnqualify&&OF(y.useSitesToUnqualify,d??(d=new Map))}),d}}function jKe(e,t,r,i,s){switch(e.kind){case 206:case 207:{const o=dZ(t,i);return xD([iwe(o,t,r,s),mZ(void 0,e,L.createIdentifier(o))])}case 80:return xD([iwe(e.text,t,r,s)]);default:return w.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}function BKe(e,t,r,i,s,o){const{left:c,right:u}=r;if(!Jr(c))return!1;if(Wb(e,c))if(Wb(e,u))i.delete(e,r.parent);else{const f=Va(u)?JKe(u,o):Q_(u,!0)?UKe(u.arguments[0],t):void 0;return f?(i.replaceNodeWithNodes(e,r.parent,f[0]),f[1]):(i.replaceRangeWithText(e,ed(c.getStart(e),u.pos),"export default"),!0)}else Wb(e,c.expression)&&zKe(e,r,i,s);return!1}function JKe(e,t){const r=nk(e.properties,i=>{switch(i.kind){case 177:case 178:case 304:case 305:return;case 303:return Je(i.name)?WKe(i.name.text,i.initializer,t):void 0;case 174:return Je(i.name)?rwe(i.name.text,[L.createToken(95)],i,t):void 0;default:w.assertNever(i,`Convert to ES6 got invalid prop kind ${i.kind}`)}});return r&&[r,!1]}function zKe(e,t,r,i){const{text:s}=t.left.name,o=i.get(s);if(o!==void 0){const c=[mZ(void 0,o,t.right),ede([L.createExportSpecifier(!1,o,s)])];r.replaceNodeWithNodes(e,t.parent,c)}else VKe(t,e,r)}function UKe(e,t){const r=e.text,i=t.getSymbolAtLocation(e),s=i?i.exports:BO;return s.has("export=")?[[Zpe(r)],!0]:s.has("default")?s.size>1?[[twe(r),Zpe(r)],!0]:[[Zpe(r)],!0]:[[twe(r)],!1]}function twe(e){return ede(void 0,e)}function Zpe(e){return ede([L.createExportSpecifier(!1,void 0,"default")],e)}function VKe({left:e,right:t,parent:r},i,s){const o=e.name.text;if((Xo(t)||ec(t)||Su(t))&&(!t.name||t.name.text===o)){s.replaceRange(i,{pos:e.getStart(i),end:t.getStart(i)},L.createToken(95),{suffix:" "}),t.name||s.insertName(i,t,o);const c=wo(r,27,i);c&&s.delete(i,c)}else s.replaceNodeRangeWithNodes(i,e.expression,wo(e,25,i),[L.createToken(95),L.createToken(87)],{joiner:" ",suffix:" "})}function WKe(e,t,r){const i=[L.createToken(95)];switch(t.kind){case 218:{const{name:o}=t;if(o&&o.text!==e)return s()}case 219:return rwe(e,i,t,r);case 231:return XKe(e,i,t,r);default:return s()}function s(){return mZ(i,L.createIdentifier(e),Kpe(t,r))}}function Kpe(e,t){if(!t||!Pe(Vs(t.keys()),i=>jp(e,i)))return e;return Ps(e)?EQ(e,!0,r):yI(e,!0,r);function r(i){if(i.kind===211){const s=t.get(i);return t.delete(i),s}}}function qKe(e,t,r,i,s,o){switch(e.kind){case 206:{const c=nk(e.elements,u=>u.dotDotDotToken||u.initializer||u.propertyName&&!Je(u.propertyName)||!Je(u.name)?void 0:swe(u.propertyName&&u.propertyName.text,u.name.text));if(c)return xD([Ny(void 0,c,t,o)])}case 207:{const c=dZ(pde(t.text,s),i);return xD([Ny(L.createIdentifier(c),void 0,t,o),mZ(void 0,Sc(e),L.createIdentifier(c))])}case 80:return HKe(e,t,r,i,o);default:return w.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}function HKe(e,t,r,i,s){const o=r.getSymbolAtLocation(e),c=new Map;let u=!1,f;for(const d of i.original.get(e.text)){if(r.getSymbolAtLocation(d)!==o||d===e)continue;const{parent:y}=d;if(Jr(y)){const{name:{text:x}}=y;if(x==="default"){u=!0;const T=d.getText();(f??(f=new Map)).set(y,L.createIdentifier(T))}else{w.assert(y.expression===d,"Didn't expect expression === use");let T=c.get(x);T===void 0&&(T=dZ(x,i),c.set(x,T)),(f??(f=new Map)).set(y,L.createIdentifier(T))}}else u=!0}const g=c.size===0?void 0:Vs(Nl(c.entries(),([d,y])=>L.createImportSpecifier(!1,d===y?void 0:L.createIdentifier(d),L.createIdentifier(y))));return g||(u=!0),xD([Ny(u?Sc(e):void 0,g,t,s)],f)}function dZ(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function GKe(e){const t=Dp();return nwe(e,r=>t.add(r.text,r)),t}function nwe(e,t){Je(e)&&$Ke(e)&&t(e),e.forEachChild(r=>nwe(r,t))}function $Ke(e){const{parent:t}=e;switch(t.kind){case 211:return t.name!==e;case 208:return t.propertyName!==e;case 276:return t.propertyName!==e;default:return!0}}function rwe(e,t,r,i){return L.createFunctionDeclaration(zn(t,Zb(r.modifiers)),Sc(r.asteriskToken),e,Zb(r.typeParameters),Zb(r.parameters),Sc(r.type),L.converters.convertToFunctionBlock(Kpe(r.body,i)))}function XKe(e,t,r,i){return L.createClassDeclaration(zn(t,Zb(r.modifiers)),e,Zb(r.typeParameters),Zb(r.heritageClauses),Kpe(r.members,i))}function iwe(e,t,r,i){return t==="default"?Ny(L.createIdentifier(e),void 0,r,i):Ny(void 0,[swe(t,e)],r,i)}function swe(e,t){return L.createImportSpecifier(!1,e!==void 0&&e!==t?L.createIdentifier(e):void 0,L.createIdentifier(t))}function mZ(e,t,r){return L.createVariableStatement(e,L.createVariableDeclarationList([L.createVariableDeclaration(t,void 0,void 0,r)],2))}function ede(e,t){return L.createExportDeclaration(void 0,!1,e&&L.createNamedExports(e),t===void 0?void 0:L.createStringLiteral(t))}function xD(e,t){return{newImports:e,useSitesToUnqualify:t}}var QKe=K({"src/services/codefixes/convertToEsModule.ts"(){ci(),La(),Oa({errorCodes:[p.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){const{sourceFile:t,program:r,preferences:i}=e,s=gr.ChangeTracker.with(e,o=>{if(FKe(t,r.getTypeChecker(),o,go(r.getCompilerOptions()),Bp(t,i)))for(const u of r.getSourceFiles())OKe(u,t,r,o,Bp(u,i))});return[Im("convertToEsModule",s,p.Convert_to_ES_module)]}})}});function awe(e,t){const r=Vn(ps(e,t),Z_);return w.assert(!!r,"Expected position to be owned by a qualified name."),Je(r.left)?r:void 0}function owe(e,t,r){const i=r.right.text,s=L.createIndexedAccessTypeNode(L.createTypeReferenceNode(r.left,void 0),L.createLiteralTypeNode(L.createStringLiteral(i)));e.replaceNode(t,r,s)}var gZ,tde,YKe=K({"src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts"(){ci(),La(),gZ="correctQualifiedNameToIndexedAccessType",tde=[p.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code],Oa({errorCodes:tde,getCodeActions(e){const t=awe(e.sourceFile,e.span.start);if(!t)return;const r=gr.ChangeTracker.with(e,s=>owe(s,e.sourceFile,t)),i=`${t.left.text}["${t.right.text}"]`;return[ga(gZ,r,[p.Rewrite_as_the_indexed_access_type_0,i],gZ,p.Rewrite_all_as_indexed_access_types)]},fixIds:[gZ],getAllCodeActions:e=>No(e,tde,(t,r)=>{const i=awe(r.file,r.start);i&&owe(t,r.file,i)})})}});function cwe(e,t){return si(ps(t,e.start).parent,h_)}function lwe(e,t,r){if(!t)return;const i=t.parent,s=i.parent,o=ZKe(t,r);if(o.length===i.elements.length)e.insertModifierBefore(r.sourceFile,156,i);else{const c=L.updateExportDeclaration(s,s.modifiers,!1,L.updateNamedExports(i,vr(i.elements,f=>!Ai(o,f))),s.moduleSpecifier,void 0),u=L.createExportDeclaration(void 0,!0,L.createNamedExports(o),s.moduleSpecifier,void 0);e.replaceNode(r.sourceFile,s,c,{leadingTriviaOption:gr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:gr.TrailingTriviaOption.Exclude}),e.insertNodeAfter(r.sourceFile,s,u)}}function ZKe(e,t){const r=e.parent;if(r.elements.length===1)return r.elements;const i=tfe(tf(r),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return vr(r.elements,s=>{var o;return s===e||((o=efe(s,i))==null?void 0:o.code)===hZ[0]})}var hZ,yZ,KKe=K({"src/services/codefixes/convertToTypeOnlyExport.ts"(){ci(),La(),hZ=[p.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],yZ="convertToTypeOnlyExport",Oa({errorCodes:hZ,getCodeActions:function(t){const r=gr.ChangeTracker.with(t,i=>lwe(i,cwe(t.span,t.sourceFile),t));if(r.length)return[ga(yZ,r,p.Convert_to_type_only_export,yZ,p.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[yZ],getAllCodeActions:function(t){const r=new Map;return No(t,hZ,(i,s)=>{const o=cwe(s,t.sourceFile);o&&nm(r,ho(o.parent.parent))&&lwe(i,o,t)})}})}});function uwe(e,t){const{parent:r}=ps(e,t);return Df(r)||eu(r)&&r.importClause?r:void 0}function _we(e,t,r){if(e.parent.parent.name)return!1;const i=e.parent.elements.filter(o=>!o.isTypeOnly);if(i.length===1)return!0;const s=r.getTypeChecker();for(const o of i)if(Qo.Core.eachSymbolReferenceInFile(o.name,s,t,u=>!r2(u)))return!1;return!0}function _B(e,t,r){var i;if(Df(r))e.replaceNode(t,r,L.updateImportSpecifier(r,!0,r.propertyName,r.name));else{const s=r.importClause;if(s.name&&s.namedBindings)e.replaceNodeWithNodes(t,r,[L.createImportDeclaration(Zb(r.modifiers,!0),L.createImportClause(!0,Sc(s.name,!0),void 0),Sc(r.moduleSpecifier,!0),Sc(r.attributes,!0)),L.createImportDeclaration(Zb(r.modifiers,!0),L.createImportClause(!0,void 0,Sc(s.namedBindings,!0)),Sc(r.moduleSpecifier,!0),Sc(r.attributes,!0))]);else{const o=((i=s.namedBindings)==null?void 0:i.kind)===275?L.updateNamedImports(s.namedBindings,Dc(s.namedBindings.elements,u=>L.updateImportSpecifier(u,!1,u.propertyName,u.name))):s.namedBindings,c=L.updateImportDeclaration(r,r.modifiers,L.updateImportClause(s,!0,s.name,o),r.moduleSpecifier,r.attributes);e.replaceNode(t,r,c)}}}var nde,fB,eet=K({"src/services/codefixes/convertToTypeOnlyImport.ts"(){ci(),La(),nde=[p.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code,p._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code,p._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],fB="convertToTypeOnlyImport",Oa({errorCodes:nde,getCodeActions:function(t){var r;const i=uwe(t.sourceFile,t.span.start);if(i){const s=gr.ChangeTracker.with(t,u=>_B(u,t.sourceFile,i)),o=i.kind===276&&_we(i,t.sourceFile,t.program)?gr.ChangeTracker.with(t,u=>_B(u,t.sourceFile,i.parent.parent.parent)):void 0,c=ga(fB,s,i.kind===276?[p.Use_type_0,((r=i.propertyName)==null?void 0:r.text)??i.name.text]:p.Use_import_type,fB,p.Fix_all_with_type_only_imports);return Pe(o)?[Im(fB,o,p.Use_import_type),c]:[c]}},fixIds:[fB],getAllCodeActions:function(t){const r=new Set;return No(t,nde,(i,s)=>{const o=uwe(s.file,s.start);(o==null?void 0:o.kind)===272&&!r.has(o)?(_B(i,s.file,o),r.add(o)):(o==null?void 0:o.kind)===276&&!r.has(o.parent.parent.parent)&&_we(o,s.file,t.program)?(_B(i,s.file,o.parent.parent.parent),r.add(o.parent.parent.parent)):(o==null?void 0:o.kind)===276&&_B(i,s.file,o)})}})}});function fwe(e,t,r,i,s=!1){if(!Dx(t))return;const o=net(t);if(!o)return;const c=t.parent,{leftSibling:u,rightSibling:f}=tet(t);let g=c.getStart(),d="";!u&&c.comment&&(g=pwe(c,c.getStart(),t.getStart()),d=`${i} */${i}`),u&&(s&&Dx(u)?(g=t.getStart(),d=""):(g=pwe(c,u.getStart(),t.getStart()),d=`${i} */${i}`));let y=c.getEnd(),x="";f&&(s&&Dx(f)?(y=f.getStart(),x=`${i}${i}`):(y=f.getStart(),x=`${i}/**${i} * `)),e.replaceRange(r,{pos:g,end:y},o,{prefix:d,suffix:x})}function tet(e){const t=e.parent,r=t.getChildCount()-1,i=t.getChildren().findIndex(c=>c.getStart()===e.getStart()&&c.getEnd()===e.getEnd()),s=i>0?t.getChildAt(i-1):void 0,o=i0;s--)if(!/[*/\s]/g.test(i.substring(s-1,s)))return t+s;return r}function net(e){var t;const{typeExpression:r}=e;if(!r)return;const i=(t=e.name)==null?void 0:t.getText();if(i){if(r.kind===329)return ret(i,r);if(r.kind===316)return iet(i,r)}}function ret(e,t){const r=dwe(t);if(Pe(r))return L.createInterfaceDeclaration(void 0,e,void 0,void 0,r)}function iet(e,t){const r=Sc(t.type);if(r)return L.createTypeAliasDeclaration(void 0,L.createIdentifier(e),void 0,r)}function dwe(e){const t=e.jsDocPropertyTags;return Pe(t)?Oi(t,i=>{var s;const o=set(i),c=(s=i.typeExpression)==null?void 0:s.type,u=i.isBracketed;let f;if(c&&wx(c)){const g=dwe(c);f=L.createTypeLiteralNode(g)}else c&&(f=Sc(c));if(f&&o){const g=u?L.createToken(58):void 0;return L.createPropertySignature(void 0,o,g,f)}}):void 0}function set(e){return e.name.kind===80?e.name.text:e.name.right.text}function aet(e){return dp(e)?Ys(e.jsDoc,t=>{var r;return(r=t.tags)==null?void 0:r.filter(i=>Dx(i))}):[]}var vZ,rde,oet=K({"src/services/codefixes/convertTypedefToType.ts"(){ci(),La(),vZ="convertTypedefToType",rde=[p.JSDoc_typedef_may_be_converted_to_TypeScript_type.code],Oa({fixIds:[vZ],errorCodes:rde,getCodeActions(e){const t=Iy(e.host,e.formatContext.options),r=ps(e.sourceFile,e.span.start);if(!r)return;const i=gr.ChangeTracker.with(e,s=>fwe(s,r,e.sourceFile,t));if(i.length>0)return[ga(vZ,i,p.Convert_typedef_to_TypeScript_type,vZ,p.Convert_all_typedef_to_TypeScript_types)]},getAllCodeActions:e=>No(e,rde,(t,r)=>{const i=Iy(e.host,e.formatContext.options),s=ps(r.file,r.start);s&&fwe(t,s,r.file,i,!0)})})}});function mwe(e,t){const r=ps(e,t);if(Je(r)){const i=pa(r.parent.parent,Gf),s=r.getText(e);return{container:pa(i.parent,Xf),typeNode:i.type,constraint:s,name:s==="K"?"P":"K"}}}function gwe(e,t,{container:r,typeNode:i,constraint:s,name:o}){e.replaceNode(t,r,L.createMappedTypeNode(void 0,L.createTypeParameterDeclaration(void 0,o,L.createTypeReferenceNode(s)),void 0,void 0,i,void 0))}var bZ,ide,cet=K({"src/services/codefixes/convertLiteralTypeToMappedType.ts"(){ci(),La(),bZ="convertLiteralTypeToMappedType",ide=[p._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code],Oa({errorCodes:ide,getCodeActions:function(t){const{sourceFile:r,span:i}=t,s=mwe(r,i.start);if(!s)return;const{name:o,constraint:c}=s,u=gr.ChangeTracker.with(t,f=>gwe(f,r,s));return[ga(bZ,u,[p.Convert_0_to_1_in_0,c,o],bZ,p.Convert_all_type_literals_to_mapped_type)]},fixIds:[bZ],getAllCodeActions:e=>No(e,ide,(t,r)=>{const i=mwe(r.file,r.start);i&&gwe(t,r.file,i)})})}});function hwe(e,t){return w.checkDefined(Du(ps(e,t)),"There should be a containing class")}function ywe(e){return!e.valueDeclaration||!(M_(e.valueDeclaration)&2)}function vwe(e,t,r,i,s,o){const c=e.program.getTypeChecker(),u=uet(i,c),f=c.getTypeAtLocation(t),d=c.getPropertiesOfType(f).filter(LO(ywe,D=>!u.has(D.escapedName))),y=c.getTypeAtLocation(i),x=Cn(i.members,D=>$c(D));y.getNumberIndexType()||C(f,1),y.getStringIndexType()||C(f,0);const T=SC(r,e.program,o,e.host);fme(i,d,r,e,o,T,D=>N(r,i,D)),T.writeFixes(s);function C(D,M){const V=c.getIndexInfoOfType(D,M);V&&N(r,i,c.indexInfoToIndexSignatureDeclaration(V,i,void 0,D3(e)))}function N(D,M,V){x?s.insertNodeAfter(D,x,V):s.insertMemberAtStart(D,M,V)}}function uet(e,t){const r=tg(e);if(!r)return ha();const i=t.getTypeAtLocation(r),s=t.getPropertiesOfType(i);return ha(s.filter(ywe))}var sde,SZ,_et=K({"src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts"(){ci(),La(),sde=[p.Class_0_incorrectly_implements_interface_1.code,p.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],SZ="fixClassIncorrectlyImplementsInterface",Oa({errorCodes:sde,getCodeActions(e){const{sourceFile:t,span:r}=e,i=hwe(t,r.start);return Oi(_4(i),s=>{const o=gr.ChangeTracker.with(e,c=>vwe(e,s,t,i,c,e.preferences));return o.length===0?void 0:ga(SZ,o,[p.Implement_interface_0,s.getText(t)],SZ,p.Implement_all_unimplemented_interfaces)})},fixIds:[SZ],getAllCodeActions(e){const t=new Map;return No(e,sde,(r,i)=>{const s=hwe(i.file,i.start);if(nm(t,ho(s)))for(const o of _4(s))vwe(e,o,i.file,s,r,e.preferences)})}})}});function SC(e,t,r,i,s){return bwe(e,t,!1,r,i,s)}function bwe(e,t,r,i,s,o){const c=t.getCompilerOptions(),u=[],f=[],g=new Map,d=new Map;return{addImportFromDiagnostic:y,addImportFromExportedSymbol:x,writeFixes:C,hasFixes:N};function y(D,M){const V=Ewe(M,D.code,D.start,r);!V||!V.length||T(Ka(V))}function x(D,M){const V=w.checkDefined(D.parent),G=Pj(D,go(c)),Z=t.getTypeChecker(),z=Z.getMergedSymbol(Uu(D,Z)),ce=Twe(e,z,G,V,!1,t,s,i,o),J=TZ(e,t),ne=Swe(e,w.checkDefined(ce),t,void 0,!!M,J,s,i);ne&&T({fix:ne,symbolName:G,errorIdentifierText:void 0})}function T(D){var M,V;const{fix:G,symbolName:Z}=D;switch(G.kind){case 0:u.push(G);break;case 1:f.push(G);break;case 2:{const{importClauseOrBindingPattern:ne,importKind:ge,addAsTypeOnly:ve}=G,Q=String(ho(ne));let X=g.get(Q);if(X||g.set(Q,X={importClauseOrBindingPattern:ne,defaultImport:void 0,namedImports:new Map}),ge===0){const se=X==null?void 0:X.namedImports.get(Z);X.namedImports.set(Z,z(se,ve))}else w.assert(X.defaultImport===void 0||X.defaultImport.name===Z,"(Add to Existing) Default import should be missing or match symbolName"),X.defaultImport={name:Z,addAsTypeOnly:z((M=X.defaultImport)==null?void 0:M.addAsTypeOnly,ve)};break}case 3:{const{moduleSpecifier:ne,importKind:ge,useRequire:ve,addAsTypeOnly:Q}=G,X=ce(ne,ge,ve,Q);switch(w.assert(X.useRequire===ve,"(Add new) Tried to add an `import` and a `require` for the same module"),ge){case 1:w.assert(X.defaultImport===void 0||X.defaultImport.name===Z,"(Add new) Default import should be missing or match symbolName"),X.defaultImport={name:Z,addAsTypeOnly:z((V=X.defaultImport)==null?void 0:V.addAsTypeOnly,Q)};break;case 0:const se=(X.namedImports||(X.namedImports=new Map)).get(Z);X.namedImports.set(Z,z(se,Q));break;case 3:case 2:w.assert(X.namespaceLikeImport===void 0||X.namespaceLikeImport.name===Z,"Namespacelike import shoudl be missing or match symbolName"),X.namespaceLikeImport={importKind:ge,name:Z,addAsTypeOnly:Q};break}break}case 4:break;default:w.assertNever(G,`fix wasn't never - got kind ${G.kind}`)}function z(ne,ge){return Math.max(ne??0,ge)}function ce(ne,ge,ve,Q){const X=J(ne,!0),se=J(ne,!1),pe=d.get(X),we=d.get(se),fe={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:ve};return ge===1&&Q===2?pe||(d.set(X,fe),fe):Q===1&&(pe||we)?pe||we:we||(d.set(se,fe),fe)}function J(ne,ge){return`${ge?1:0}|${ne}`}}function C(D,M){let V;e.imports.length===0&&M!==void 0?V=M:V=Bp(e,i);for(const Z of u)ude(D,e,Z);for(const Z of f)Owe(D,e,Z,V);g.forEach(({importClauseOrBindingPattern:Z,defaultImport:z,namedImports:ce})=>{Iwe(D,e,Z,z,Vs(ce.entries(),([J,ne])=>({addAsTypeOnly:ne,name:J})),i)});let G;d.forEach(({useRequire:Z,defaultImport:z,namedImports:ce,namespaceLikeImport:J},ne)=>{const ge=ne.slice(2),Q=(Z?Mwe:Lwe)(ge,V,z,ce&&Vs(ce.entries(),([X,se])=>({addAsTypeOnly:se,name:X})),J,c,i);G=Gd(G,Q)}),G&&uD(D,e,G,!0,i)}function N(){return u.length>0||f.length>0||g.size>0||d.size>0}}function fet(e,t,r,i){const s=hD(e,i,r),o=kwe(t.getTypeChecker(),e,t.getCompilerOptions());return{getModuleSpecifierForBestExportInfo:c};function c(u,f,g,d){const{fixes:y,computedWithoutCacheCount:x}=xZ(u,f,g,!1,t,e,r,i,o,d),T=Pwe(y,e,t,s,r);return T&&{...T,computedWithoutCacheCount:x}}}function pet(e,t,r,i,s,o,c,u,f,g,d,y){let x;r?(x=CI(i,c,u,d,y).get(i.path,r),w.assertIsDefined(x,"Some exportInfo should match the specified exportMapKey")):(x=NV(Nd(t.name))?[met(e,s,t,u,c)]:Twe(i,e,s,t,o,u,c,d,y),w.assertIsDefined(x,"Some exportInfo should match the specified symbol / moduleSymbol"));const T=TZ(i,u),C=r2(ps(i,g)),N=w.checkDefined(Swe(i,x,u,g,C,T,c,d));return{moduleSpecifier:N.moduleSpecifier,codeAction:xwe(lde({host:c,formatContext:f,preferences:d},i,s,N,!1,u,d))}}function det(e,t,r,i,s,o){const c=r.getCompilerOptions(),u=cU(cde(e,r.getTypeChecker(),t,c)),f=Awe(e,t,u,r),g=u!==t.text;return f&&xwe(lde({host:i,formatContext:s,preferences:o},e,u,f,g,r,o))}function Swe(e,t,r,i,s,o,c,u){const f=hD(e,u,c);return Pwe(xZ(t,i,s,o,r,e,c,u).fixes,e,r,f,c)}function xwe({description:e,changes:t,commands:r}){return{description:e,changes:t,commands:r}}function Twe(e,t,r,i,s,o,c,u,f){const g=Cwe(o,c);return CI(e,c,o,u,f).search(e.path,s,d=>d===r,d=>{if(Uu(d[0].symbol,g(d[0].isFromPackageJson))===t&&d.some(y=>y.moduleSymbol===i||y.symbol.parent===i))return d})}function met(e,t,r,i,s){var o,c;const u=i.getCompilerOptions(),f=d(i.getTypeChecker(),!1);if(f)return f;const g=(c=(o=s.getPackageJsonAutoImportProvider)==null?void 0:o.call(s))==null?void 0:c.getTypeChecker();return w.checkDefined(g&&d(g,!0),"Could not find symbol in specified module for code actions");function d(y,x){const T=Fj(r,y,u);if(T&&Uu(T.symbol,y)===e)return{symbol:T.symbol,moduleSymbol:r,moduleFileName:void 0,exportKind:T.exportKind,targetFlags:Uu(e,y).flags,isFromPackageJson:x};const C=y.tryGetMemberInModuleExportsAndProperties(t,r);if(C&&Uu(C,y)===e)return{symbol:C,moduleSymbol:r,moduleFileName:void 0,exportKind:0,targetFlags:Uu(e,y).flags,isFromPackageJson:x}}}function xZ(e,t,r,i,s,o,c,u,f=kwe(s.getTypeChecker(),o,s.getCompilerOptions()),g){const d=s.getTypeChecker(),y=Ys(e,f.getImportsForExportInfo),x=t!==void 0&&get(y,t),T=yet(y,r,d,s.getCompilerOptions());if(T)return{computedWithoutCacheCount:0,fixes:[...x?[x]:Ke,T]};const{fixes:C,computedWithoutCacheCount:N=0}=bet(e,y,s,o,t,r,i,c,u,g);return{computedWithoutCacheCount:N,fixes:[...x?[x]:Ke,...C]}}function get(e,t){return li(e,({declaration:r,importKind:i})=>{var s;if(i!==0)return;const o=het(r),c=o&&((s=s4(r))==null?void 0:s.text);if(c)return{kind:0,namespacePrefix:o,usagePosition:t,moduleSpecifier:c}})}function het(e){var t,r,i;switch(e.kind){case 260:return(t=si(e.name,Je))==null?void 0:t.text;case 271:return e.name.text;case 272:return(i=si((r=e.importClause)==null?void 0:r.namedBindings,F1))==null?void 0:i.name.text;default:return w.assertNever(e)}}function ade(e,t,r,i,s,o){return e?t&&o.importsNotUsedAsValues===2||Pq(o)&&(!(i&111551)||s.getTypeOnlyAliasDeclaration(r))?2:1:4}function yet(e,t,r,i){let s;for(const c of e){const u=o(c);if(!u)continue;const f=pA(u.importClauseOrBindingPattern);if(u.addAsTypeOnly!==4&&f||u.addAsTypeOnly===4&&!f)return u;s??(s=u)}return s;function o({declaration:c,importKind:u,symbol:f,targetFlags:g}){if(u===3||u===2||c.kind===271)return;if(c.kind===260)return(u===0||u===1)&&c.name.kind===206?{kind:2,importClauseOrBindingPattern:c.name,importKind:u,moduleSpecifier:c.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;const{importClause:d}=c;if(!d||!vo(c.moduleSpecifier))return;const{name:y,namedBindings:x}=d;if(d.isTypeOnly&&!(u===0&&x))return;const T=ade(t,!1,f,g,r,i);if(!(u===1&&(y||T===2&&x))&&!(u===0&&(x==null?void 0:x.kind)===274))return{kind:2,importClauseOrBindingPattern:d,importKind:u,moduleSpecifier:c.moduleSpecifier.text,addAsTypeOnly:T}}}function kwe(e,t,r){let i;for(const s of t.imports){const o=NP(s);if(a9(o.parent)){const c=e.resolveExternalModuleName(s);c&&(i||(i=Dp())).add(Ia(c),o.parent)}else if(o.kind===272||o.kind===271){const c=e.getSymbolAtLocation(s);c&&(i||(i=Dp())).add(Ia(c),o)}}return{getImportsForExportInfo:({moduleSymbol:s,exportKind:o,targetFlags:c,symbol:u})=>{if(!(c&111551)&&L_(t))return Ke;const f=i==null?void 0:i.get(Ia(s));if(!f)return Ke;const g=ode(t,o,r);return f.map(d=>({declaration:d,importKind:g,symbol:u,targetFlags:c}))}}}function TZ(e,t){if(!L_(e))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;const r=t.getCompilerOptions();if(r.configFile)return r_(r)<5;if(e.impliedNodeFormat===1)return!0;if(e.impliedNodeFormat===99)return!1;for(const i of t.getSourceFiles())if(!(i===e||!L_(i)||t.isSourceFileFromExternalLibrary(i))){if(i.commonJsModuleIndicator&&!i.externalModuleIndicator)return!0;if(i.externalModuleIndicator&&!i.commonJsModuleIndicator)return!1}return!0}function Cwe(e,t){return Bg(r=>r?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker())}function vet(e,t,r,i,s,o,c,u,f){const g=L_(t),d=e.getCompilerOptions(),y=Jx(e,c),x=Cwe(e,c),T=j_(d),C=lj(T),N=f?V=>({moduleSpecifiers:qb.tryGetModuleSpecifiersFromCache(V,t,y,u),computedWithoutCache:!1}):(V,G)=>qb.getModuleSpecifiersWithCacheInfo(V,G,d,t,y,u,void 0,!0);let D=0;const M=Ys(o,(V,G)=>{const Z=x(V.isFromPackageJson),{computedWithoutCache:z,moduleSpecifiers:ce}=N(V.moduleSymbol,Z),J=!!(V.targetFlags&111551),ne=ade(i,!0,V.symbol,V.targetFlags,Z,d);return D+=z?1:0,Oi(ce,ge=>{var ve;if(C&&p2(ge))return;if(!J&&g&&r!==void 0)return{kind:1,moduleSpecifier:ge,usagePosition:r,exportInfo:V,isReExport:G>0};const Q=ode(t,V.exportKind,d);let X;if(r!==void 0&&Q===3&&V.exportKind===0){const se=Z.resolveExternalModuleSymbol(V.moduleSymbol);let pe;se!==V.moduleSymbol&&(pe=(ve=Lj(se,Z,d))==null?void 0:ve.name),pe||(pe=fde(V.moduleSymbol,go(d),!1)),X={namespacePrefix:pe,usagePosition:r}}return{kind:3,moduleSpecifier:ge,importKind:Q,useRequire:s,addAsTypeOnly:ne,exportInfo:V,isReExport:G>0,qualification:X}})});return{computedWithoutCacheCount:D,fixes:M}}function bet(e,t,r,i,s,o,c,u,f,g){const d=li(t,y=>xet(y,o,c,r.getTypeChecker(),r.getCompilerOptions()));return d?{fixes:[d]}:vet(r,i,s,o,c,e,u,f,g)}function xet({declaration:e,importKind:t,symbol:r,targetFlags:i},s,o,c,u){var f;const g=(f=s4(e))==null?void 0:f.text;if(g){const d=o?4:ade(s,!0,r,i,c,u);return{kind:3,moduleSpecifier:g,importKind:t,addAsTypeOnly:d,useRequire:o}}}function Ewe(e,t,r,i){const s=ps(e.sourceFile,r);let o;if(t===p._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)o=Eet(e,s);else if(Je(s))if(t===p._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){const u=cU(cde(e.sourceFile,e.program.getTypeChecker(),s,e.program.getCompilerOptions())),f=Awe(e.sourceFile,s,u,e.program);return f&&[{fix:f,symbolName:u,errorIdentifierText:s.text}]}else o=Det(e,s,i);else return;const c=hD(e.sourceFile,e.preferences,e.host);return o&&Tet(o,e.sourceFile,e.program,c,e.host)}function Tet(e,t,r,i,s){const o=c=>hc(c,s.getCurrentDirectory(),yy(s));return i1(e,(c,u)=>s1(!!c.isJsxNamespaceFix,!!u.isJsxNamespaceFix)||mc(c.fix.kind,u.fix.kind)||wwe(c.fix,u.fix,t,r,i.allowsImportingSpecifier,o))}function Pwe(e,t,r,i,s){if(Pe(e))return e[0].kind===0||e[0].kind===2?e[0]:e.reduce((o,c)=>wwe(c,o,t,r,i.allowsImportingSpecifier,u=>hc(u,s.getCurrentDirectory(),yy(s)))===-1?c:o)}function wwe(e,t,r,i,s,o){return e.kind!==0&&t.kind!==0?s1(s(t.moduleSpecifier),s(e.moduleSpecifier))||Cet(e.moduleSpecifier,t.moduleSpecifier,r,i)||s1(Dwe(e,r,i.getCompilerOptions(),o),Dwe(t,r,i.getCompilerOptions(),o))||bN(e.moduleSpecifier,t.moduleSpecifier):0}function Dwe(e,t,r,i){var s;if(e.isReExport&&((s=e.exportInfo)!=null&&s.moduleFileName)&&ket(e.exportInfo.moduleFileName)){const o=i(oi(e.exportInfo.moduleFileName));return fs(t.path,o)}return!1}function ket(e){return xl(e,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function Cet(e,t,r,i){return fs(e,"node:")&&!fs(t,"node:")?Dj(r,i)?-1:1:fs(t,"node:")&&!fs(e,"node:")?Dj(r,i)?1:-1:0}function Eet({sourceFile:e,program:t,host:r,preferences:i},s){const o=t.getTypeChecker(),c=Pet(s,o);if(!c)return;const u=o.getAliasedSymbol(c),f=c.name,g=[{symbol:c,moduleSymbol:u,moduleFileName:void 0,exportKind:3,targetFlags:u.flags,isFromPackageJson:!1}],d=TZ(e,t);return xZ(g,void 0,!1,d,t,e,r,i).fixes.map(x=>{var T;return{fix:x,symbolName:f,errorIdentifierText:(T=si(s,Je))==null?void 0:T.text}})}function Pet(e,t){const r=Je(e)?t.getSymbolAtLocation(e):void 0;if(F9(r))return r;const{parent:i}=e;if(F_(i)&&i.tagName===e||Kk(i)){const s=t.resolveName(t.getJsxNamespace(i),F_(i)?e:i,111551,!1);if(F9(s))return s}}function ode(e,t,r,i){if(r.verbatimModuleSyntax&&(r_(r)===1||e.impliedNodeFormat===1))return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return Iet(e,r,!!i);case 3:return wet(e,r,!!i);default:return w.assertNever(t)}}function wet(e,t,r){if(hx(t))return 1;const i=r_(t);switch(i){case 2:case 1:case 3:return lr(e)&&(Cl(e)||r)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:case 200:return 2;case 100:case 199:return e.impliedNodeFormat===99?2:3;default:return w.assertNever(i,`Unexpected moduleKind ${i}`)}}function Det({sourceFile:e,program:t,cancellationToken:r,host:i,preferences:s},o,c){const u=t.getTypeChecker(),f=t.getCompilerOptions();return Ys(cde(e,u,o,f),g=>{if(g==="default")return;const d=r2(o),y=TZ(e,t),x=Net(g,n4(o),jx(o),r,e,t,c,i,s);return Vs(sb(x.values(),T=>xZ(T,o.getStart(e),d,y,t,e,i,s).fixes),T=>({fix:T,symbolName:g,errorIdentifierText:o.text,isJsxNamespaceFix:g!==o.text}))})}function Awe(e,t,r,i){const s=i.getTypeChecker(),o=s.resolveName(r,t,111551,!0);if(!o)return;const c=s.getTypeOnlyAliasDeclaration(o);if(!(!c||qn(c)!==e))return{kind:4,typeOnlyAliasDeclaration:c}}function cde(e,t,r,i){const s=r.parent;if((F_(s)||Rb(s))&&s.tagName===r&&jQ(i.jsx)){const o=t.getJsxNamespace(e);if(Aet(o,r,t))return!m4(r.text)&&!t.resolveName(r.text,r,111551,!1)?[r.text,o]:[o]}return[r.text]}function Aet(e,t,r){if(m4(t.text))return!0;const i=r.resolveName(e,t,111551,!0);return!i||Pe(i.declarations,$v)&&!(i.flags&111551)}function Net(e,t,r,i,s,o,c,u,f){var g;const d=Dp(),y=hD(s,f,u),x=(g=u.getModuleSpecifierCache)==null?void 0:g.call(u),T=Bg(N=>Jx(N?u.getPackageJsonAutoImportProvider():o,u));function C(N,D,M,V,G,Z){const z=T(Z);if(D&&qQ(G,s,D,f,y,z,x)||!D&&y.allowsImportingAmbientModule(N,z)){const ce=G.getTypeChecker();d.add(q_e(M,ce).toString(),{symbol:M,moduleSymbol:N,moduleFileName:D==null?void 0:D.fileName,exportKind:V,targetFlags:Uu(M,ce).flags,isFromPackageJson:Z})}}return HQ(o,u,f,c,(N,D,M,V)=>{const G=M.getTypeChecker();i.throwIfCancellationRequested();const Z=M.getCompilerOptions(),z=Fj(N,G,Z);z&&(z.name===e||fde(N,go(Z),t)===e)&&jwe(z.resolvedSymbol,r)&&C(N,D,z.symbol,z.exportKind,M,V);const ce=G.tryGetMemberInModuleExportsAndProperties(e,N);ce&&jwe(ce,r)&&C(N,D,ce,0,M,V)}),d}function Iet(e,t,r){const i=hx(t),s=lr(e);if(!s&&r_(t)>=5)return i?1:2;if(s)return Cl(e)||r?i?1:2:3;for(const o of e.statements)if(Tu(o)&&!nl(o.moduleReference))return 3;return i?1:3}function lde(e,t,r,i,s,o,c){let u;const f=gr.ChangeTracker.with(e,g=>{u=Oet(g,t,r,i,s,o,c)});return ga(dde,f,u,mde,p.Add_all_missing_imports)}function Oet(e,t,r,i,s,o,c){const u=Bp(t,c);switch(i.kind){case 0:return ude(e,t,i),[p.Change_0_to_1,r,`${i.namespacePrefix}.${r}`];case 1:return Owe(e,t,i,u),[p.Change_0_to_1,r,Fwe(i.moduleSpecifier,u)+r];case 2:{const{importClauseOrBindingPattern:f,importKind:g,addAsTypeOnly:d,moduleSpecifier:y}=i;Iwe(e,t,f,g===1?{name:r,addAsTypeOnly:d}:void 0,g===0?[{name:r,addAsTypeOnly:d}]:Ke,c);const x=Nd(y);return s?[p.Import_0_from_1,r,x]:[p.Update_import_from_0,x]}case 3:{const{importKind:f,moduleSpecifier:g,addAsTypeOnly:d,useRequire:y,qualification:x}=i,T=y?Mwe:Lwe,C=f===1?{name:r,addAsTypeOnly:d}:void 0,N=f===0?[{name:r,addAsTypeOnly:d}]:void 0,D=f===2||f===3?{importKind:f,name:(x==null?void 0:x.namespacePrefix)||r,addAsTypeOnly:d}:void 0;return uD(e,t,T(g,u,C,N,D,o.getCompilerOptions(),c),!0,c),x&&ude(e,t,x),s?[p.Import_0_from_1,r,g]:[p.Add_import_from_0,g]}case 4:{const{typeOnlyAliasDeclaration:f}=i,g=Fet(e,f,o,t,c);return g.kind===276?[p.Remove_type_from_import_of_0_from_1,r,Nwe(g.parent.parent)]:[p.Remove_type_from_import_declaration_from_0,Nwe(g)]}default:return w.assertNever(i,`Unexpected fix kind ${i.kind}`)}}function Nwe(e){var t,r;return e.kind===271?((r=si((t=si(e.moduleReference,Kg))==null?void 0:t.expression,vo))==null?void 0:r.text)||e.moduleReference.getText():pa(e.parent.moduleSpecifier,Ba).text}function Fet(e,t,r,i,s){const o=r.getCompilerOptions(),c=Pq(o);switch(t.kind){case 276:if(t.isTypeOnly){const f=cm.detectImportSpecifierSorting(t.parent.elements,s);if(t.parent.elements.length>1&&f){const g=L.updateImportSpecifier(t,!1,t.propertyName,t.name),d=cm.getOrganizeImportsComparer(s,f===2),y=cm.getImportSpecifierInsertionIndex(t.parent.elements,g,d,s);if(y!==t.parent.elements.indexOf(t))return e.delete(i,t),e.insertImportSpecifierAtIndex(i,g,t.parent,y),t}return e.deleteRange(i,{pos:Xv(t.getFirstToken()),end:Xv(t.propertyName??t.name)}),t}else return w.assert(t.parent.parent.isTypeOnly),u(t.parent.parent),t.parent.parent;case 273:return u(t),t;case 274:return u(t.parent),t.parent;case 271:return e.deleteRange(i,t.getChildAt(1)),t;default:w.failBadSyntaxKind(t)}function u(f){var g;if(e.delete(i,mQ(f,i)),!o.allowImportingTsExtensions){const d=s4(f.parent),y=d&&((g=r.getResolvedModuleFromModuleSpecifier(d))==null?void 0:g.resolvedModule);if(y!=null&&y.resolvedUsingTsExtension){const x=X8(d.text,oR(d.text,o));e.replaceNode(i,d,L.createStringLiteral(x))}}if(c){const d=si(f.namedBindings,x0);if(d&&d.elements.length>1){cm.detectImportSpecifierSorting(d.elements,s)&&t.kind===276&&d.elements.indexOf(t)!==0&&(e.delete(i,t),e.insertImportSpecifierAtIndex(i,t,d,0));for(const y of d.elements)y!==t&&!y.isTypeOnly&&e.insertModifierBefore(i,156,y)}}}}function Iwe(e,t,r,i,s,o){var c;if(r.kind===206){i&&g(r,i.name,"default");for(const d of s)g(r,d.name,void 0);return}const u=r.isTypeOnly&&Pe([i,...s],d=>(d==null?void 0:d.addAsTypeOnly)===4),f=r.namedBindings&&((c=si(r.namedBindings,x0))==null?void 0:c.elements);if(i&&(w.assert(!r.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(t,r.getStart(t),L.createIdentifier(i.name),{suffix:", "})),s.length){let d;if(typeof o.organizeImportsIgnoreCase=="boolean")d=o.organizeImportsIgnoreCase;else if(f){const C=cm.detectImportSpecifierSorting(f,o);C!==3&&(d=C===2)}d===void 0&&(d=cm.detectSorting(t,o)===2);const y=cm.getOrganizeImportsComparer(o,d),x=sy(s.map(C=>L.createImportSpecifier((!r.isTypeOnly||u)&&kZ(C,o),void 0,L.createIdentifier(C.name))),(C,N)=>cm.compareImportOrExportSpecifiers(C,N,y)),T=(f==null?void 0:f.length)&&cm.detectImportSpecifierSorting(f,o);if(T&&!(d&&T===1))for(const C of x){const N=u&&!C.isTypeOnly?0:cm.getImportSpecifierInsertionIndex(f,C,y,o);e.insertImportSpecifierAtIndex(t,C,r.namedBindings,N)}else if(f!=null&&f.length)for(const C of x)e.insertNodeInListAfter(t,so(f),C,f);else if(x.length){const C=L.createNamedImports(x);r.namedBindings?e.replaceNode(t,r.namedBindings,C):e.insertNodeAfter(t,w.checkDefined(r.name,"Import clause must have either named imports or a default import"),C)}}if(u&&(e.delete(t,mQ(r,t)),f))for(const d of f)e.insertModifierBefore(t,156,d);function g(d,y,x){const T=L.createBindingElement(void 0,x,y);d.elements.length?e.insertNodeInListAfter(t,so(d.elements),T):e.replaceNode(t,d,L.createObjectBindingPattern([T]))}}function ude(e,t,{namespacePrefix:r,usagePosition:i}){e.insertText(t,i,r+".")}function Owe(e,t,{moduleSpecifier:r,usagePosition:i},s){e.insertText(t,i,Fwe(r,s))}function Fwe(e,t){const r=dQ(t);return`import(${r}${e}${r}).`}function _de({addAsTypeOnly:e}){return e===2}function kZ(e,t){return _de(e)||!!t.preferTypeOnlyAutoImports&&e.addAsTypeOnly!==4}function Lwe(e,t,r,i,s,o,c){const u=mC(e,t);let f;if(r!==void 0||i!=null&&i.length){const g=(!r||_de(r))&&Pn(i,_de)||(o.verbatimModuleSyntax||c.preferTypeOnlyAutoImports)&&(r==null?void 0:r.addAsTypeOnly)!==4&&!Pe(i,d=>d.addAsTypeOnly===4);f=Gd(f,Ny(r&&L.createIdentifier(r.name),i==null?void 0:i.map(d=>L.createImportSpecifier(!g&&kZ(d,c),void 0,L.createIdentifier(d.name))),e,t,g))}if(s){const g=s.importKind===3?L.createImportEqualsDeclaration(void 0,kZ(s,c),L.createIdentifier(s.name),L.createExternalModuleReference(u)):L.createImportDeclaration(void 0,L.createImportClause(kZ(s,c),void 0,L.createNamespaceImport(L.createIdentifier(s.name))),u,void 0);f=Gd(f,g)}return w.checkDefined(f)}function Mwe(e,t,r,i,s){const o=mC(e,t);let c;if(r||i!=null&&i.length){const u=(i==null?void 0:i.map(({name:g})=>L.createBindingElement(void 0,void 0,g)))||[];r&&u.unshift(L.createBindingElement(void 0,"default",r.name));const f=Rwe(L.createObjectBindingPattern(u),o);c=Gd(c,f)}if(s){const u=Rwe(s.name,o);c=Gd(c,u)}return w.checkDefined(c)}function Rwe(e,t){return L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(typeof e=="string"?L.createIdentifier(e):e,void 0,void 0,L.createCallExpression(L.createIdentifier("require"),void 0,[t]))],2))}function jwe({declarations:e},t){return Pe(e,r=>!!(tI(r)&t))}function fde(e,t,r){return pde(Y_(Nd(e.name)),t,r)}function pde(e,t,r){const i=xl(P6(e,"/index"));let s="",o=!0;const c=i.charCodeAt(0);wh(c,t)?(s+=String.fromCharCode(c),r&&(s=s.toUpperCase())):o=!1;for(let u=1;ulde(e,i,f,u,f!==g,o,r))},fixIds:[mde],getAllCodeActions:e=>{const{sourceFile:t,program:r,preferences:i,host:s,cancellationToken:o}=e,c=bwe(t,r,!0,i,s,o);return P3(e,gde,u=>c.addImportFromDiagnostic(u,e)),E3(gr.ChangeTracker.with(e,c.writeFixes))}})}});function Bwe(e,t,r){const i=Cn(e.getSemanticDiagnostics(t),c=>c.start===r.start&&c.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;const s=Cn(i.relatedInformation,c=>c.code===p.This_type_parameter_might_need_an_extends_0_constraint.code);if(s===void 0||s.file===void 0||s.start===void 0||s.length===void 0)return;let o=vme(s.file,Ju(s.start,s.length));if(o!==void 0&&(Je(o)&&Ic(o.parent)&&(o=o.parent),Ic(o))){if(F4(o.parent))return;const c=ps(t,r.start),u=e.getTypeChecker();return{constraint:Ret(u,c)||Met(s.messageText),declaration:o,token:c}}}function Jwe(e,t,r,i,s,o){const{declaration:c,constraint:u}=o,f=t.getTypeChecker();if(Ls(u))e.insertText(s,c.name.end,` extends ${u}`);else{const g=go(t.getCompilerOptions()),d=D3({program:t,host:i}),y=SC(s,t,r,i),x=cK(f,y,u,void 0,g,void 0,d);x&&(e.replaceNode(s,c,L.updateTypeParameterDeclaration(c,void 0,c.name,x,c.default)),y.writeFixes(e))}}function Met(e){const[,t]=fg(e,` +`,0).match(/`extends (.*)`/)||[];return t}function Ret(e,t){return Gi(t.parent)?e.getTypeArgumentConstraint(t.parent):(vt(t)?e.getContextualType(t):void 0)||e.getTypeAtLocation(t)}var CZ,hde,jet=K({"src/services/codefixes/fixAddMissingConstraint.ts"(){ci(),La(),CZ="addMissingConstraint",hde=[p.Type_0_is_not_comparable_to_type_1.code,p.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,p.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,p.Type_0_is_not_assignable_to_type_1.code,p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,p.Property_0_is_incompatible_with_index_signature.code,p.Property_0_in_type_1_is_not_assignable_to_type_2.code,p.Type_0_does_not_satisfy_the_constraint_1.code],Oa({errorCodes:hde,getCodeActions(e){const{sourceFile:t,span:r,program:i,preferences:s,host:o}=e,c=Bwe(i,t,r);if(c===void 0)return;const u=gr.ChangeTracker.with(e,f=>Jwe(f,i,s,o,t,c));return[ga(CZ,u,p.Add_extends_constraint,CZ,p.Add_extends_constraint_to_all_type_parameters)]},fixIds:[CZ],getAllCodeActions:e=>{const{program:t,preferences:r,host:i}=e,s=new Map;return E3(gr.ChangeTracker.with(e,o=>{P3(e,hde,c=>{const u=Bwe(t,c.file,Ju(c.start,c.length));if(u&&nm(s,ho(u.declaration)))return Jwe(o,t,r,i,c.file,u)})}))}})}});function zwe(e,t,r,i){switch(r){case p.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case p.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case p.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case p.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case p.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return Bet(e,t.sourceFile,i);case p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case p.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return Jet(e,t.sourceFile,i);default:w.fail("Unexpected error code: "+r)}}function Bet(e,t,r){const i=Vwe(t,r);if(L_(t)){e.addJSDocTags(t,i,[L.createJSDocOverrideTag(L.createIdentifier("override"))]);return}const s=i.modifiers||Ke,o=Cn(s,Vk),c=Cn(s,Poe),u=Cn(s,y=>iQ(y.kind)),f=Ro(s,Vu),g=c?c.end:o?o.end:u?u.end:f?za(t.text,f.end):i.getStart(t),d=u||o||c?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,g,164,d)}function Jet(e,t,r){const i=Vwe(t,r);if(L_(t)){e.filterJSDocTags(t,i,MO(iM));return}const s=Cn(i.modifiers,woe);w.assertIsDefined(s),e.deleteModifier(t,s)}function Uwe(e){switch(e.kind){case 176:case 172:case 174:case 177:case 178:return!0;case 169:return Uf(e,e.parent);default:return!1}}function Vwe(e,t){const r=ps(e,t),i=Vn(r,s=>fi(s)?"quit":Uwe(s));return w.assert(i&&Uwe(i)),i}var yde,TD,GI,vde,bde,zet=K({"src/services/codefixes/fixOverrideModifier.ts"(){ci(),La(),yde="fixOverrideModifier",TD="fixAddOverrideModifier",GI="fixRemoveOverrideModifier",vde=[p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,p.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,p.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,p.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,p.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,p.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,p.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],bde={[p.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:p.Add_override_modifier,fixId:TD,fixAllDescriptions:p.Add_all_missing_override_modifiers},[p.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:p.Add_override_modifier,fixId:TD,fixAllDescriptions:p.Add_all_missing_override_modifiers},[p.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:p.Remove_override_modifier,fixId:GI,fixAllDescriptions:p.Remove_all_unnecessary_override_modifiers},[p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:p.Remove_override_modifier,fixId:GI,fixAllDescriptions:p.Remove_override_modifier},[p.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:p.Add_override_modifier,fixId:TD,fixAllDescriptions:p.Add_all_missing_override_modifiers},[p.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:p.Add_override_modifier,fixId:TD,fixAllDescriptions:p.Add_all_missing_override_modifiers},[p.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:p.Add_override_modifier,fixId:TD,fixAllDescriptions:p.Remove_all_unnecessary_override_modifiers},[p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:p.Remove_override_modifier,fixId:GI,fixAllDescriptions:p.Remove_all_unnecessary_override_modifiers},[p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:p.Remove_override_modifier,fixId:GI,fixAllDescriptions:p.Remove_all_unnecessary_override_modifiers}},Oa({errorCodes:vde,getCodeActions:function(t){const{errorCode:r,span:i}=t,s=bde[r];if(!s)return Ke;const{descriptions:o,fixId:c,fixAllDescriptions:u}=s,f=gr.ChangeTracker.with(t,g=>zwe(g,t,r,i.start));return[Ipe(yde,f,o,c,u)]},fixIds:[yde,TD,GI],getAllCodeActions:e=>No(e,vde,(t,r)=>{const{code:i,start:s}=r,o=bde[i];!o||o.fixId!==e.fixId||zwe(t,e,i,s)})})}});function Wwe(e,t,r,i){const s=Bp(t,i),o=L.createStringLiteral(r.name.text,s===0);e.replaceNode(t,r,vF(r)?L.createElementAccessChain(r.expression,r.questionDotToken,o):L.createElementAccessExpression(r.expression,o))}function qwe(e,t){return pa(ps(e,t).parent,Jr)}var EZ,Sde,Uet=K({"src/services/codefixes/fixNoPropertyAccessFromIndexSignature.ts"(){ci(),La(),EZ="fixNoPropertyAccessFromIndexSignature",Sde=[p.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code],Oa({errorCodes:Sde,fixIds:[EZ],getCodeActions(e){const{sourceFile:t,span:r,preferences:i}=e,s=qwe(t,r.start),o=gr.ChangeTracker.with(e,c=>Wwe(c,e.sourceFile,s,i));return[ga(EZ,o,[p.Use_element_access_for_0,s.name.text],EZ,p.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>No(e,Sde,(t,r)=>Wwe(t,r.file,qwe(r.file,r.start),e.preferences))})}});function Hwe(e,t,r,i){const s=ps(t,r);if(!f3(s))return;const o=_f(s,!1,!1);if(!(!Wl(o)&&!Xo(o))&&!es(_f(o,!1,!1))){const c=w.checkDefined(wo(o,100,t)),{name:u}=o,f=w.checkDefined(o.body);return Xo(o)?u&&Qo.Core.isSymbolReferencedInFile(u,i,t,f)?void 0:(e.delete(t,c),u&&e.delete(t,u),e.insertText(t,f.pos," =>"),[p.Convert_function_expression_0_to_arrow_function,u?u.text:Oj]):(e.replaceNode(t,c,L.createToken(87)),e.insertText(t,u.end," = "),e.insertText(t,f.pos," =>"),[p.Convert_function_declaration_0_to_arrow_function,u.text])}}var PZ,xde,Vet=K({"src/services/codefixes/fixImplicitThis.ts"(){ci(),La(),PZ="fixImplicitThis",xde=[p.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],Oa({errorCodes:xde,getCodeActions:function(t){const{sourceFile:r,program:i,span:s}=t;let o;const c=gr.ChangeTracker.with(t,u=>{o=Hwe(u,r,s.start,i.getTypeChecker())});return o?[ga(PZ,c,o,PZ,p.Fix_all_implicit_this_errors)]:Ke},fixIds:[PZ],getAllCodeActions:e=>No(e,xde,(t,r)=>{Hwe(t,r.file,r.start,e.program.getTypeChecker())})})}});function Gwe(e,t,r){var i,s;const o=ps(e,t);if(Je(o)){const c=Vn(o,eu);if(c===void 0)return;const u=Ba(c.moduleSpecifier)?c.moduleSpecifier:void 0;if(u===void 0)return;const f=(i=r.getResolvedModuleFromModuleSpecifier(u))==null?void 0:i.resolvedModule;if(f===void 0)return;const g=r.getSourceFile(f.resolvedFileName);if(g===void 0||v3(r,g))return;const d=g.symbol,y=(s=si(d.valueDeclaration,Ug))==null?void 0:s.locals;if(y===void 0)return;const x=y.get(o.escapedText);if(x===void 0)return;const T=qet(x);return T===void 0?void 0:{exportName:{node:o,isTypeOnly:P4(T)},node:T,moduleSourceFile:g,moduleSpecifier:u.text}}}function Wet(e,t,{exportName:r,node:i,moduleSourceFile:s}){const o=wZ(s,r.isTypeOnly);o?$we(e,t,s,o,[r]):TN(i)?e.insertExportModifier(s,i):Xwe(e,t,s,[r])}function Tde(e,t,r,i,s){Xe(i)&&(s?$we(e,t,r,s,i):Xwe(e,t,r,i))}function wZ(e,t){const r=i=>ml(i)&&(t&&i.isTypeOnly||!i.isTypeOnly);return Ro(e.statements,r)}function $we(e,t,r,i,s){const o=i.exportClause&&sd(i.exportClause)?i.exportClause.elements:L.createNodeArray([]),c=!i.isTypeOnly&&!!(Ld(t.getCompilerOptions())||Cn(o,u=>u.isTypeOnly));e.replaceNode(r,i,L.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,L.createNamedExports(L.createNodeArray([...o,...Qwe(s,c)],o.hasTrailingComma)),i.moduleSpecifier,i.attributes))}function Xwe(e,t,r,i){e.insertNodeAtEndOfScope(r,r,L.createExportDeclaration(void 0,!1,L.createNamedExports(Qwe(i,Ld(t.getCompilerOptions()))),void 0,void 0))}function Qwe(e,t){return L.createNodeArray(Kt(e,r=>L.createExportSpecifier(t&&r.isTypeOnly,void 0,r.node)))}function qet(e){if(e.valueDeclaration===void 0)return hu(e.declarations);const t=e.valueDeclaration,r=Ji(t)?si(t.parent.parent,Xc):void 0;return r&&Xe(r.declarationList.declarations)===1?r:t}var DZ,kde,Het=K({"src/services/codefixes/fixImportNonExportedMember.ts"(){ci(),La(),DZ="fixImportNonExportedMember",kde=[p.Module_0_declares_1_locally_but_it_is_not_exported.code],Oa({errorCodes:kde,fixIds:[DZ],getCodeActions(e){const{sourceFile:t,span:r,program:i}=e,s=Gwe(t,r.start,i);if(s===void 0)return;const o=gr.ChangeTracker.with(e,c=>Wet(c,i,s));return[ga(DZ,o,[p.Export_0_from_module_1,s.exportName.node.text,s.moduleSpecifier],DZ,p.Export_all_referenced_locals)]},getAllCodeActions(e){const{program:t}=e;return E3(gr.ChangeTracker.with(e,r=>{const i=new Map;P3(e,kde,s=>{const o=Gwe(s.file,s.start,t);if(o===void 0)return;const{exportName:c,node:u,moduleSourceFile:f}=o;if(wZ(f,c.isTypeOnly)===void 0&&TN(u))r.insertExportModifier(f,u);else{const g=i.get(f)||{typeOnlyExports:[],exports:[]};c.isTypeOnly?g.typeOnlyExports.push(c):g.exports.push(c),i.set(f,g)}}),i.forEach((s,o)=>{const c=wZ(o,!0);c&&c.isTypeOnly?(Tde(r,t,o,s.typeOnlyExports,c),Tde(r,t,o,s.exports,wZ(o,!1))):Tde(r,t,o,[...s.exports,...s.typeOnlyExports],c)})}))}})}});function Get(e,t){const r=ps(e,t);return Vn(r,i=>i.kind===202)}function $et(e,t,r){if(!r)return;let i=r.type,s=!1,o=!1;for(;i.kind===190||i.kind===191||i.kind===196;)i.kind===190?s=!0:i.kind===191&&(o=!0),i=i.type;const c=L.updateNamedTupleMember(r,r.dotDotDotToken||(o?L.createToken(26):void 0),r.name,r.questionToken||(s?L.createToken(58):void 0),i);c!==r&&e.replaceNode(t,r,c)}var AZ,Ywe,Xet=K({"src/services/codefixes/fixIncorrectNamedTupleSyntax.ts"(){ci(),La(),AZ="fixIncorrectNamedTupleSyntax",Ywe=[p.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,p.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],Oa({errorCodes:Ywe,getCodeActions:function(t){const{sourceFile:r,span:i}=t,s=Get(r,i.start),o=gr.ChangeTracker.with(t,c=>$et(c,r,s));return[ga(AZ,o,p.Move_labeled_tuple_element_modifiers_to_labels,AZ,p.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[AZ]})}});function Zwe(e,t,r,i){const s=ps(e,t),o=s.parent;if((i===p.No_overload_matches_this_call.code||i===p.Type_0_is_not_assignable_to_type_1.code)&&!_g(o))return;const c=r.program.getTypeChecker();let u;if(Jr(o)&&o.name===s){w.assert(Dh(s),"Expected an identifier for spelling (property access)");let f=c.getTypeAtLocation(o.expression);o.flags&64&&(f=c.getNonNullableType(f)),u=c.getSuggestedSymbolForNonexistentProperty(s,f)}else if(mr(o)&&o.operatorToken.kind===103&&o.left===s&&Qi(s)){const f=c.getTypeAtLocation(o.right);u=c.getSuggestedSymbolForNonexistentProperty(s,f)}else if(Z_(o)&&o.right===s){const f=c.getSymbolAtLocation(o.left);f&&f.flags&1536&&(u=c.getSuggestedSymbolForNonexistentModule(o.right,f))}else if(Df(o)&&o.name===s){w.assertNode(s,Je,"Expected an identifier for spelling (import)");const f=Vn(s,eu),g=Yet(r,f);g&&g.symbol&&(u=c.getSuggestedSymbolForNonexistentModule(s,g.symbol))}else if(_g(o)&&o.name===s){w.assertNode(s,Je,"Expected an identifier for JSX attribute");const f=Vn(s,F_),g=c.getContextualTypeForArgumentAtIndex(f,0);u=c.getSuggestedSymbolForNonexistentJSXAttribute(s,g)}else if(E9(o)&&vu(o)&&o.name===s){const f=Vn(s,fi),g=f?tg(f):void 0,d=g?c.getTypeAtLocation(g):void 0;d&&(u=c.getSuggestedSymbolForNonexistentClassMember(Ol(s),d))}else{const f=jx(s),g=Ol(s);w.assert(g!==void 0,"name should be defined"),u=c.getSuggestedSymbolForNonexistentSymbol(s,g,Qet(f))}return u===void 0?void 0:{node:s,suggestedSymbol:u}}function Kwe(e,t,r,i,s){const o=Rc(i);if(!Np(o,s)&&Jr(r.parent)){const c=i.valueDeclaration;c&&I_(c)&&Qi(c.name)?e.replaceNode(t,r,L.createIdentifier(o)):e.replaceNode(t,r.parent,L.createElementAccessExpression(r.parent.expression,L.createStringLiteral(o)))}else e.replaceNode(t,r,L.createIdentifier(o))}function Qet(e){let t=0;return e&4&&(t|=1920),e&2&&(t|=788968),e&1&&(t|=111551),t}function Yet(e,t){var r;if(!t||!vo(t.moduleSpecifier))return;const i=(r=e.program.getResolvedModuleFromModuleSpecifier(t.moduleSpecifier))==null?void 0:r.resolvedModule;if(i)return e.program.getSourceFile(i.resolvedFileName)}var Cde,Ede,Zet=K({"src/services/codefixes/fixSpelling.ts"(){ci(),La(),Cde="fixSpelling",Ede=[p.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,p.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,p.Cannot_find_name_0_Did_you_mean_1.code,p.Could_not_find_name_0_Did_you_mean_1.code,p.Cannot_find_namespace_0_Did_you_mean_1.code,p.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,p.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,p._0_has_no_exported_member_named_1_Did_you_mean_2.code,p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,p.No_overload_matches_this_call.code,p.Type_0_is_not_assignable_to_type_1.code],Oa({errorCodes:Ede,getCodeActions(e){const{sourceFile:t,errorCode:r}=e,i=Zwe(t,e.span.start,e,r);if(!i)return;const{node:s,suggestedSymbol:o}=i,c=go(e.host.getCompilationSettings()),u=gr.ChangeTracker.with(e,f=>Kwe(f,t,s,o,c));return[ga("spelling",u,[p.Change_spelling_to_0,Rc(o)],Cde,p.Fix_all_detected_spelling_errors)]},fixIds:[Cde],getAllCodeActions:e=>No(e,Ede,(t,r)=>{const i=Zwe(r.file,r.start,e,r.code),s=go(e.host.getCompilationSettings());i&&Kwe(t,e.sourceFile,i.node,i.suggestedSymbol,s)})})}});function eDe(e,t,r){const i=e.createSymbol(4,t.escapedText);i.links.type=e.getTypeAtLocation(r);const s=ha([i]);return e.createAnonymousType(void 0,s,[],[],[])}function Pde(e,t,r,i){if(!t.body||!na(t.body)||Xe(t.body.statements)!==1)return;const s=Ka(t.body.statements);if(xu(s)&&wde(e,t,e.getTypeAtLocation(s.expression),r,i))return{declaration:t,kind:0,expression:s.expression,statement:s,commentSource:s.expression};if(Mb(s)&&xu(s.statement)){const o=L.createObjectLiteralExpression([L.createPropertyAssignment(s.label,s.statement.expression)]),c=eDe(e,s.label,s.statement.expression);if(wde(e,t,c,r,i))return ec(t)?{declaration:t,kind:1,expression:o,statement:s,commentSource:s.statement.expression}:{declaration:t,kind:0,expression:o,statement:s,commentSource:s.statement.expression}}else if(na(s)&&Xe(s.statements)===1){const o=Ka(s.statements);if(Mb(o)&&xu(o.statement)){const c=L.createObjectLiteralExpression([L.createPropertyAssignment(o.label,o.statement.expression)]),u=eDe(e,o.label,o.statement.expression);if(wde(e,t,u,r,i))return{declaration:t,kind:0,expression:c,statement:s,commentSource:o}}}}function wde(e,t,r,i,s){if(s){const o=e.getSignatureFromDeclaration(t);if(o){Kr(t,1024)&&(r=e.createPromiseType(r));const c=e.createSignature(t,o.typeParameters,o.thisParameter,o.parameters,r,void 0,o.minArgumentCount,o.flags);r=e.createAnonymousType(void 0,ha(),[c],[],[])}else r=e.getAnyType()}return e.isTypeAssignableTo(r,i)}function tDe(e,t,r,i){const s=ps(t,r);if(!s.parent)return;const o=Vn(s.parent,Ko);switch(i){case p.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:return!o||!o.body||!o.type||!jp(o.type,s)?void 0:Pde(e,o,e.getTypeFromTypeNode(o.type),!1);case p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!o||!ma(o.parent)||!o.body)return;const c=o.parent.arguments.indexOf(o);if(c===-1)return;const u=e.getContextualTypeForArgumentAtIndex(o.parent,c);return u?Pde(e,o,u,!0):void 0;case p.Type_0_is_not_assignable_to_type_1.code:if(!h0(s)||!K6(s.parent)&&!_g(s.parent))return;const f=Ket(s.parent);return!f||!Ko(f)||!f.body?void 0:Pde(e,f,e.getTypeAtLocation(s.parent),!0)}}function Ket(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:return e.initializer;case 291:return e.initializer&&(Ew(e.initializer)?e.initializer.expression:void 0);case 304:case 171:case 306:case 355:case 348:return}}function nDe(e,t,r,i){Zf(r);const s=SI(t);e.replaceNode(t,i,L.createReturnStatement(r),{leadingTriviaOption:gr.LeadingTriviaOption.Exclude,trailingTriviaOption:gr.TrailingTriviaOption.Exclude,suffix:s?";":void 0})}function rDe(e,t,r,i,s,o){const c=hj(i)?L.createParenthesizedExpression(i):i;Zf(s),zx(s,c),e.replaceNode(t,r.body,c)}function iDe(e,t,r,i){e.replaceNode(t,r.body,L.createParenthesizedExpression(i))}function ett(e,t,r){const i=gr.ChangeTracker.with(e,s=>nDe(s,e.sourceFile,t,r));return ga(NZ,i,p.Add_a_return_statement,IZ,p.Add_all_missing_return_statement)}function ttt(e,t,r,i){const s=gr.ChangeTracker.with(e,o=>rDe(o,e.sourceFile,t,r,i));return ga(NZ,s,p.Remove_braces_from_arrow_function_body,OZ,p.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function ntt(e,t,r){const i=gr.ChangeTracker.with(e,s=>iDe(s,e.sourceFile,t,r));return ga(NZ,i,p.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,FZ,p.Wrap_all_object_literal_with_parentheses)}var NZ,IZ,OZ,FZ,Dde,rtt=K({"src/services/codefixes/returnValueCorrect.ts"(){ci(),La(),NZ="returnValueCorrect",IZ="fixAddReturnStatement",OZ="fixRemoveBracesFromArrowFunctionBody",FZ="fixWrapTheBlockWithParen",Dde=[p.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,p.Type_0_is_not_assignable_to_type_1.code,p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code],Oa({errorCodes:Dde,fixIds:[IZ,OZ,FZ],getCodeActions:function(t){const{program:r,sourceFile:i,span:{start:s},errorCode:o}=t,c=tDe(r.getTypeChecker(),i,s,o);if(c)return c.kind===0?gn([ett(t,c.expression,c.statement)],ec(c.declaration)?ttt(t,c.declaration,c.expression,c.commentSource):void 0):[ntt(t,c.declaration,c.expression)]},getAllCodeActions:e=>No(e,Dde,(t,r)=>{const i=tDe(e.program.getTypeChecker(),r.file,r.start,r.code);if(i)switch(e.fixId){case IZ:nDe(t,r.file,i.expression,i.statement);break;case OZ:if(!ec(i.declaration))return;rDe(t,r.file,i.declaration,i.expression,i.commentSource);break;case FZ:if(!ec(i.declaration))return;iDe(t,r.file,i.declaration,i.expression);break;default:w.fail(JSON.stringify(e.fixId))}})})}});function sDe(e,t,r,i,s){var o;const c=ps(e,t),u=c.parent;if(r===p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(c.kind===19&&Va(u)&&ma(u.parent)))return;const T=Gs(u.parent.arguments,M=>M===u);if(T<0)return;const C=i.getResolvedSignature(u.parent);if(!(C&&C.declaration&&C.parameters[T]))return;const N=C.parameters[T].valueDeclaration;if(!(N&&ws(N)&&Je(N.name)))return;const D=Vs(i.getUnmatchedProperties(i.getTypeAtLocation(u),i.getParameterType(C,T),!1,!1));return Xe(D)?{kind:3,token:N.name,identifier:N.name.text,properties:D,parentDeclaration:u}:void 0}if(c.kind===19&&Va(u)){const T=i.getContextualType(u)||i.getTypeAtLocation(u),C=Vs(i.getUnmatchedProperties(i.getTypeAtLocation(u),T,!1,!1));return Xe(C)?{kind:3,token:u,identifier:"",properties:C,parentDeclaration:u}:void 0}if(!Dh(c))return;if(Je(c)&&h1(u)&&u.initializer&&Va(u.initializer)){const T=i.getContextualType(c)||i.getTypeAtLocation(c),C=Vs(i.getUnmatchedProperties(i.getTypeAtLocation(u.initializer),T,!1,!1));return Xe(C)?{kind:3,token:c,identifier:c.text,properties:C,parentDeclaration:u.initializer}:void 0}if(Je(c)&&F_(c.parent)){const T=go(s.getCompilerOptions()),C=utt(i,T,c.parent);return Xe(C)?{kind:4,token:c,attributes:C,parentDeclaration:c.parent}:void 0}if(Je(c)){const T=(o=i.getContextualType(c))==null?void 0:o.getNonNullableType();if(T&&Br(T)&16){const C=hu(i.getSignaturesOfType(T,0));return C===void 0?void 0:{kind:5,token:c,signature:C,sourceFile:e,parentDeclaration:gDe(c)}}if(ma(u)&&u.expression===c)return{kind:2,token:c,call:u,sourceFile:e,modifierFlags:0,parentDeclaration:gDe(c)}}if(!Jr(u))return;const f=uQ(i.getTypeAtLocation(u.expression)),g=f.symbol;if(!g||!g.declarations)return;if(Je(c)&&ma(u.parent)){const T=Cn(g.declarations,dl),C=T==null?void 0:T.getSourceFile();if(T&&C&&!v3(s,C))return{kind:2,token:c,call:u.parent,sourceFile:e,modifierFlags:32,parentDeclaration:T};const N=Cn(g.declarations,es);if(e.commonJsModuleIndicator)return;if(N&&!v3(s,N))return{kind:2,token:c,call:u.parent,sourceFile:N,modifierFlags:32,parentDeclaration:N}}const d=Cn(g.declarations,fi);if(!d&&Qi(c))return;const y=d||Cn(g.declarations,T=>J_(T)||Xf(T));if(y&&!v3(s,y.getSourceFile())){const T=!Xf(y)&&(f.target||f)!==i.getDeclaredTypeOfSymbol(g);if(T&&(Qi(c)||J_(y)))return;const C=y.getSourceFile(),N=Xf(y)?0:(T?256:0)|(RQ(c.text)?2:0),D=L_(C),M=si(u.parent,ma);return{kind:0,token:c,call:M,modifierFlags:N,parentDeclaration:y,declSourceFile:C,isJSFile:D}}const x=Cn(g.declarations,a2);if(x&&!(f.flags&1056)&&!Qi(c)&&!v3(s,x.getSourceFile()))return{kind:1,token:c,parentDeclaration:x}}function itt(e,t){return t.isJSFile?ok(stt(e,t)):att(e,t)}function stt(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:s}){if(J_(t)||Xf(t))return;const o=gr.ChangeTracker.with(e,u=>aDe(u,r,t,s,!!(i&256)));if(o.length===0)return;const c=i&256?p.Initialize_static_property_0:Qi(s)?p.Declare_a_private_field_named_0:p.Initialize_property_0_in_the_constructor;return ga(z1,o,[c,s.text],z1,p.Add_all_missing_members)}function aDe(e,t,r,i,s){const o=i.text;if(s){if(r.kind===231)return;const c=r.name.getText(),u=oDe(L.createIdentifier(c),o);e.insertNodeAfter(t,r,u)}else if(Qi(i)){const c=L.createPropertyDeclaration(void 0,o,void 0,void 0,void 0),u=uDe(r);u?e.insertNodeAfter(t,u,c):e.insertMemberAtStart(t,r,c)}else{const c=Rh(r);if(!c)return;const u=oDe(L.createThis(),o);e.insertNodeAtConstructorEnd(t,c,u)}}function oDe(e,t){return L.createExpressionStatement(L.createAssignment(L.createPropertyAccessExpression(e,t),xC()))}function att(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:s}){const o=s.text,c=i&256,u=cDe(e.program.getTypeChecker(),t,s),f=d=>gr.ChangeTracker.with(e,y=>lDe(y,r,t,o,u,d)),g=[ga(z1,f(i&256),[c?p.Declare_static_property_0:p.Declare_property_0,o],z1,p.Add_all_missing_members)];return c||Qi(s)||(i&2&&g.unshift(Im(z1,f(2),[p.Declare_private_property_0,o])),g.push(ott(e,r,t,s.text,u))),g}function cDe(e,t,r){let i;if(r.parent.parent.kind===226){const s=r.parent.parent,o=r.parent===s.left?s.right:s.left,c=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(o)));i=e.typeToTypeNode(c,t,1)}else{const s=e.getContextualType(r.parent);i=s?e.typeToTypeNode(s,void 0,1):void 0}return i||L.createKeywordTypeNode(133)}function lDe(e,t,r,i,s,o){const c=o?L.createNodeArray(L.createModifiersFromModifierFlags(o)):void 0,u=fi(r)?L.createPropertyDeclaration(c,i,void 0,s,void 0):L.createPropertySignature(void 0,i,void 0,s),f=uDe(r);f?e.insertNodeAfter(t,f,u):e.insertMemberAtStart(t,r,u)}function uDe(e){let t;for(const r of e.members){if(!Zs(r))break;t=r}return t}function ott(e,t,r,i,s){const o=L.createKeywordTypeNode(154),c=L.createParameterDeclaration(void 0,void 0,"x",void 0,o,void 0),u=L.createIndexSignature(void 0,[c],s),f=gr.ChangeTracker.with(e,g=>g.insertMemberAtStart(t,r,u));return Im(z1,f,[p.Add_index_signature_for_property_0,i])}function ctt(e,t){const{parentDeclaration:r,declSourceFile:i,modifierFlags:s,token:o,call:c}=t;if(c===void 0)return;const u=o.text,f=d=>gr.ChangeTracker.with(e,y=>_De(e,y,c,o,d,r,i)),g=[ga(z1,f(s&256),[s&256?p.Declare_static_method_0:p.Declare_method_0,u],z1,p.Add_all_missing_members)];return s&2&&g.unshift(Im(z1,f(2),[p.Declare_private_method_0,u])),g}function _De(e,t,r,i,s,o,c){const u=SC(c,e.program,e.preferences,e.host),f=fi(o)?174:173,g=pme(f,e,u,r,i,s,o),d=_tt(o,r);d?t.insertNodeAfter(c,d,g):t.insertMemberAtStart(c,o,g),u.writeFixes(t)}function fDe(e,t,{token:r,parentDeclaration:i}){const s=Pe(i.members,f=>{const g=t.getTypeAtLocation(f);return!!(g&&g.flags&402653316)}),o=i.getSourceFile(),c=L.createEnumMember(r,s?L.createStringLiteral(r.text):void 0),u=pc(i.members);u?e.insertNodeInListAfter(o,u,c,i.members):e.insertMemberAtStart(o,i,c)}function pDe(e,t,r){const i=Bp(t.sourceFile,t.preferences),s=SC(t.sourceFile,t.program,t.preferences,t.host),o=r.kind===2?pme(262,t,s,r.call,kr(r.token),r.modifierFlags,r.parentDeclaration):oK(262,t,i,r.signature,SB(p.Function_not_implemented.message,i),r.token,void 0,void 0,void 0,s);o===void 0&&w.fail("fixMissingFunctionDeclaration codefix got unexpected error."),rm(r.parentDeclaration)?e.insertNodeBefore(r.sourceFile,r.parentDeclaration,o,!0):e.insertNodeAtEndOfScope(r.sourceFile,r.parentDeclaration,o),s.writeFixes(e)}function dDe(e,t,r){const i=SC(t.sourceFile,t.program,t.preferences,t.host),s=Bp(t.sourceFile,t.preferences),o=t.program.getTypeChecker(),c=r.parentDeclaration.attributes,u=Pe(c.properties,eC),f=Kt(r.attributes,y=>{const x=LZ(t,o,i,s,o.getTypeOfSymbol(y),r.parentDeclaration),T=L.createIdentifier(y.name),C=L.createJsxAttribute(T,L.createJsxExpression(void 0,x));return eo(T,C),C}),g=L.createJsxAttributes(u?[...f,...c.properties]:[...c.properties,...f]),d={prefix:c.pos===c.end?" ":void 0};e.replaceNode(t.sourceFile,c,g,d),i.writeFixes(e)}function mDe(e,t,r){const i=SC(t.sourceFile,t.program,t.preferences,t.host),s=Bp(t.sourceFile,t.preferences),o=go(t.program.getCompilerOptions()),c=t.program.getTypeChecker(),u=Kt(r.properties,g=>{const d=LZ(t,c,i,s,c.getTypeOfSymbol(g),r.parentDeclaration);return L.createPropertyAssignment(ftt(g,o,s,c),d)}),f={leadingTriviaOption:gr.LeadingTriviaOption.Exclude,trailingTriviaOption:gr.TrailingTriviaOption.Exclude,indentation:r.indentation};e.replaceNode(t.sourceFile,r.parentDeclaration,L.createObjectLiteralExpression([...r.parentDeclaration.properties,...u],!0),f),i.writeFixes(e)}function LZ(e,t,r,i,s,o){if(s.flags&3)return xC();if(s.flags&134217732)return L.createStringLiteral("",i===0);if(s.flags&8)return L.createNumericLiteral(0);if(s.flags&64)return L.createBigIntLiteral("0n");if(s.flags&16)return L.createFalse();if(s.flags&1056){const c=s.symbol.exports?wO(s.symbol.exports.values()):s.symbol,u=t.symbolToExpression(s.symbol.parent?s.symbol.parent:s.symbol,111551,void 0,64);return c===void 0||u===void 0?L.createNumericLiteral(0):L.createPropertyAccessExpression(u,t.symbolToString(c))}if(s.flags&256)return L.createNumericLiteral(s.value);if(s.flags&2048)return L.createBigIntLiteral(s.value);if(s.flags&128)return L.createStringLiteral(s.value,i===0);if(s.flags&512)return s===t.getFalseType()||s===t.getFalseType(!0)?L.createFalse():L.createTrue();if(s.flags&65536)return L.createNull();if(s.flags&1048576)return li(s.types,u=>LZ(e,t,r,i,u,o))??xC();if(t.isArrayLikeType(s))return L.createArrayLiteralExpression();if(ltt(s)){const c=Kt(t.getPropertiesOfType(s),u=>{const f=LZ(e,t,r,i,t.getTypeOfSymbol(u),o);return L.createPropertyAssignment(u.name,f)});return L.createObjectLiteralExpression(c,!0)}if(Br(s)&16){if(Cn(s.symbol.declarations||Ke,Tm(Qg,Xg,ul))===void 0)return xC();const u=t.getSignaturesOfType(s,0);return u===void 0?xC():oK(218,e,i,u[0],SB(p.Function_not_implemented.message,i),void 0,void 0,void 0,o,r)??xC()}if(Br(s)&1){const c=v0(s.symbol);if(c===void 0||Eb(c))return xC();const u=Rh(c);return u&&Xe(u.parameters)?xC():L.createNewExpression(L.createIdentifier(s.symbol.name),void 0,void 0)}return xC()}function xC(){return L.createIdentifier("undefined")}function ltt(e){return e.flags&524288&&(Br(e)&128||e.symbol&&si(Mg(e.symbol.declarations),Xf))}function utt(e,t,r){const i=e.getContextualType(r.attributes);if(i===void 0)return Ke;const s=i.getProperties();if(!Xe(s))return Ke;const o=new Set;for(const c of r.attributes.properties)if(_g(c)&&o.add(uw(c.name)),eC(c)){const u=e.getTypeAtLocation(c.expression);for(const f of u.getProperties())o.add(f.escapedName)}return vr(s,c=>Np(c.name,t,1)&&!(c.flags&16777216||Uc(c)&48||o.has(c.escapedName)))}function _tt(e,t){if(Xf(e))return;const r=Vn(t,i=>ul(i)||$c(i));return r&&r.parent===e?r:void 0}function ftt(e,t,r,i){if(Vg(e)){const s=i.symbolToNode(e,111551,void 0,1073741824);if(s&&co(s))return s}return eL(e.name,t,r===0,!1,!1)}function gDe(e){if(Vn(e,Ew)){const t=Vn(e.parent,rm);if(t)return t}return qn(e)}var z1,pB,dB,mB,Ade,ptt=K({"src/services/codefixes/fixAddMissingMember.ts"(){ci(),La(),z1="fixMissingMember",pB="fixMissingProperties",dB="fixMissingAttributes",mB="fixMissingFunctionDeclaration",Ade=[p.Property_0_does_not_exist_on_type_1.code,p.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,p.Property_0_is_missing_in_type_1_but_required_in_type_2.code,p.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,p.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,p.Cannot_find_name_0.code],Oa({errorCodes:Ade,getCodeActions(e){const t=e.program.getTypeChecker(),r=sDe(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(r){if(r.kind===3){const i=gr.ChangeTracker.with(e,s=>mDe(s,e,r));return[ga(pB,i,p.Add_missing_properties,pB,p.Add_all_missing_properties)]}if(r.kind===4){const i=gr.ChangeTracker.with(e,s=>dDe(s,e,r));return[ga(dB,i,p.Add_missing_attributes,dB,p.Add_all_missing_attributes)]}if(r.kind===2||r.kind===5){const i=gr.ChangeTracker.with(e,s=>pDe(s,e,r));return[ga(mB,i,[p.Add_missing_function_declaration_0,r.token.text],mB,p.Add_all_missing_function_declarations)]}if(r.kind===1){const i=gr.ChangeTracker.with(e,s=>fDe(s,e.program.getTypeChecker(),r));return[ga(z1,i,[p.Add_missing_enum_member_0,r.token.text],z1,p.Add_all_missing_members)]}return zn(ctt(e,r),itt(e,r))}},fixIds:[z1,mB,pB,dB],getAllCodeActions:e=>{const{program:t,fixId:r}=e,i=t.getTypeChecker(),s=new Map,o=new Map;return E3(gr.ChangeTracker.with(e,c=>{P3(e,Ade,u=>{const f=sDe(u.file,u.start,u.code,i,e.program);if(!(!f||!nm(s,ho(f.parentDeclaration)+"#"+(f.kind===3?f.identifier:f.token.text)))){if(r===mB&&(f.kind===2||f.kind===5))pDe(c,e,f);else if(r===pB&&f.kind===3)mDe(c,e,f);else if(r===dB&&f.kind===4)dDe(c,e,f);else if(f.kind===1&&fDe(c,i,f),f.kind===0){const{parentDeclaration:g,token:d}=f,y=Ks(o,g,()=>[]);y.some(x=>x.token.text===d.text)||y.push(f)}}}),o.forEach((u,f)=>{const g=Xf(f)?void 0:Sme(f,i);for(const d of u){if(g!=null&&g.some(M=>{const V=o.get(M);return!!V&&V.some(({token:G})=>G.text===d.token.text)}))continue;const{parentDeclaration:y,declSourceFile:x,modifierFlags:T,token:C,call:N,isJSFile:D}=d;if(N&&!Qi(C))_De(e,c,N,C,T&256,y,x);else if(D&&!J_(y)&&!Xf(y))aDe(c,x,y,C,!!(T&256));else{const M=cDe(i,y,C);lDe(c,x,y,C.text,M,T&256)}}})}))}})}});function hDe(e,t,r){const i=pa(dtt(t,r),ma),s=L.createNewExpression(i.expression,i.typeArguments,i.arguments);e.replaceNode(t,i,s)}function dtt(e,t){let r=ps(e,t.start);const i=pl(t);for(;r.endhDe(s,t,r));return[ga(MZ,i,p.Add_missing_new_operator_to_call,MZ,p.Add_missing_new_operator_to_all_calls)]},fixIds:[MZ],getAllCodeActions:e=>No(e,Nde,(t,r)=>hDe(t,e.sourceFile,r))})}});function yDe(e,t,r){const i=ps(e,r),s=Vn(i,ma);if(s===void 0||Xe(s.arguments)===0)return;const o=t.getTypeChecker(),c=o.getTypeAtLocation(s.expression),u=vr(c.symbol.declarations,vDe);if(u===void 0)return;const f=pc(u);if(f===void 0||f.body===void 0||v3(t,f.getSourceFile()))return;const g=gtt(f);if(g===void 0)return;const d=[],y=[],x=Xe(f.parameters),T=Xe(s.arguments);if(x>T)return;const C=[f,...ytt(f,u)];for(let N=0,D=0,M=0;N{Xe(s.parameters)?e.replaceNodeRangeWithNodes(t,Ka(s.parameters),so(s.parameters),bDe(s,i),{joiner:", ",indentation:0,leadingTriviaOption:gr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:gr.TrailingTriviaOption.Include}):dt(bDe(s,i),(o,c)=>{Xe(s.parameters)===0&&c===0?e.insertNodeAt(t,s.parameters.end,o):e.insertNodeAtEndOfList(t,s.parameters,o)})})}function vDe(e){switch(e.kind){case 262:case 218:case 174:case 219:return!0;default:return!1}}function bDe(e,t){const r=Kt(e.parameters,i=>L.createParameterDeclaration(i.modifiers,i.dotDotDotToken,i.name,i.questionToken,i.type,i.initializer));for(const{pos:i,declaration:s}of t){const o=i>0?r[i-1]:void 0;r.splice(i,0,L.updateParameterDeclaration(s,s.modifiers,s.dotDotDotToken,s.name,o&&o.questionToken?L.createToken(58):s.questionToken,s.type,s.initializer))}return r}function ytt(e,t){const r=[];for(const i of t)if(vtt(i)){if(Xe(i.parameters)===Xe(e.parameters)){r.push(i);continue}if(Xe(i.parameters)>Xe(e.parameters))return[]}return r}function vtt(e){return vDe(e)&&e.body===void 0}function SDe(e,t,r){return L.createParameterDeclaration(void 0,void 0,e,r,t,void 0)}function btt(e,t){return Xe(e)&&Pe(e,r=>tRZ(u,e.sourceFile,i,s)),[Xe(s)>1?p.Add_missing_parameters_to_0:p.Add_missing_parameter_to_0,r],gB,p.Add_all_missing_parameters)),Xe(o)&&gn(c,ga(hB,gr.ChangeTracker.with(e,u=>RZ(u,e.sourceFile,i,o)),[Xe(o)>1?p.Add_optional_parameters_to_0:p.Add_optional_parameter_to_0,r],hB,p.Add_all_optional_parameters)),c},getAllCodeActions:e=>No(e,Ide,(t,r)=>{const i=yDe(e.sourceFile,e.program,r.start);if(i){const{declarations:s,newParameters:o,newOptionalParameters:c}=i;e.fixId===gB&&RZ(t,e.sourceFile,s,o),e.fixId===hB&&RZ(t,e.sourceFile,s,c)}})})}});function xDe(e,t){return{type:"install package",file:e,packageName:t}}function TDe(e,t){const r=si(ps(e,t),Ba);if(!r)return;const i=r.text,{packageName:s}=P7(i);return yu(s)?void 0:s}function kDe(e,t,r){var i;return r===Ode?dg.nodeCoreModules.has(e)?"@types/node":void 0:(i=t.isKnownTypesPackageName)!=null&&i.call(t,e)?jM(e):void 0}var CDe,jZ,Ode,Fde,xtt=K({"src/services/codefixes/fixCannotFindModule.ts"(){ci(),La(),CDe="fixCannotFindModule",jZ="installTypesPackage",Ode=p.Cannot_find_module_0_or_its_corresponding_type_declarations.code,Fde=[Ode,p.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code],Oa({errorCodes:Fde,getCodeActions:function(t){const{host:r,sourceFile:i,span:{start:s}}=t,o=TDe(i,s);if(o===void 0)return;const c=kDe(o,r,t.errorCode);return c===void 0?[]:[ga(CDe,[],[p.Install_0,c],jZ,p.Install_all_missing_types_packages,xDe(i.fileName,c))]},fixIds:[jZ],getAllCodeActions:e=>No(e,Fde,(t,r,i)=>{const s=TDe(r.file,r.start);if(s!==void 0)switch(e.fixId){case jZ:{const o=kDe(s,e.host,r.code);o&&i.push(xDe(r.file.fileName,o));break}default:w.fail(`Bad fixId: ${e.fixId}`)}})})}});function EDe(e,t){const r=ps(e,t);return pa(r.parent,fi)}function PDe(e,t,r,i,s){const o=tg(e),c=r.program.getTypeChecker(),u=c.getTypeAtLocation(o),f=c.getPropertiesOfType(u).filter(Ttt),g=SC(t,r.program,s,r.host);fme(e,f,t,r,s,g,d=>i.insertMemberAtStart(t,e,d)),g.writeFixes(i)}function Ttt(e){const t=x1(Ka(e.getDeclarations()));return!(t&2)&&!!(t&64)}var Lde,BZ,ktt=K({"src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts"(){ci(),La(),Lde=[p.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1.code],BZ="fixClassDoesntImplementInheritedAbstractMember",Oa({errorCodes:Lde,getCodeActions:function(t){const{sourceFile:r,span:i}=t,s=gr.ChangeTracker.with(t,o=>PDe(EDe(r,i.start),r,t,o,t.preferences));return s.length===0?void 0:[ga(BZ,s,p.Implement_inherited_abstract_class,BZ,p.Implement_all_inherited_abstract_classes)]},fixIds:[BZ],getAllCodeActions:function(t){const r=new Map;return No(t,Lde,(i,s)=>{const o=EDe(s.file,s.start);nm(r,ho(o))&&PDe(o,t.sourceFile,t,i,t.preferences)})}})}});function wDe(e,t,r,i){e.insertNodeAtConstructorStart(t,r,i),e.delete(t,i)}function DDe(e,t){const r=ps(e,t);if(r.kind!==110)return;const i=hp(r),s=ADe(i.body);return s&&!s.expression.arguments.some(o=>Jr(o)&&o.expression===r)?{constructor:i,superCall:s}:void 0}function ADe(e){return xu(e)&&ix(e.expression)?e:oa(e)?void 0:Xs(e,ADe)}var JZ,Mde,Ctt=K({"src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts"(){ci(),La(),JZ="classSuperMustPrecedeThisAccess",Mde=[p.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],Oa({errorCodes:Mde,getCodeActions(e){const{sourceFile:t,span:r}=e,i=DDe(t,r.start);if(!i)return;const{constructor:s,superCall:o}=i,c=gr.ChangeTracker.with(e,u=>wDe(u,t,s,o));return[ga(JZ,c,p.Make_super_call_the_first_statement_in_the_constructor,JZ,p.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[JZ],getAllCodeActions(e){const{sourceFile:t}=e,r=new Map;return No(e,Mde,(i,s)=>{const o=DDe(s.file,s.start);if(!o)return;const{constructor:c,superCall:u}=o;nm(r,ho(c.parent))&&wDe(i,t,c,u)})}})}});function NDe(e,t){const r=ps(e,t);return w.assert($c(r.parent),"token should be at the constructor declaration"),r.parent}function IDe(e,t,r){const i=L.createExpressionStatement(L.createCallExpression(L.createSuper(),void 0,Ke));e.insertNodeAtConstructorStart(t,r,i)}var zZ,Rde,Ett=K({"src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts"(){ci(),La(),zZ="constructorForDerivedNeedSuperCall",Rde=[p.Constructors_for_derived_classes_must_contain_a_super_call.code],Oa({errorCodes:Rde,getCodeActions(e){const{sourceFile:t,span:r}=e,i=NDe(t,r.start),s=gr.ChangeTracker.with(e,o=>IDe(o,t,i));return[ga(zZ,s,p.Add_missing_super_call,zZ,p.Add_all_missing_super_calls)]},fixIds:[zZ],getAllCodeActions:e=>No(e,Rde,(t,r)=>IDe(t,e.sourceFile,NDe(r.file,r.start)))})}});function ODe(e,t){hme(e,t,"jsx",L.createStringLiteral("react"))}var jde,Bde,Ptt=K({"src/services/codefixes/fixEnableJsxFlag.ts"(){ci(),La(),jde="fixEnableJsxFlag",Bde=[p.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code],Oa({errorCodes:Bde,getCodeActions:function(t){const{configFile:r}=t.program.getCompilerOptions();if(r===void 0)return;const i=gr.ChangeTracker.with(t,s=>ODe(s,r));return[Im(jde,i,p.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[jde],getAllCodeActions:e=>No(e,Bde,t=>{const{configFile:r}=e.program.getCompilerOptions();r!==void 0&&ODe(t,r)})})}});function FDe(e,t,r){const i=Cn(e.getSemanticDiagnostics(t),c=>c.start===r.start&&c.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;const s=Cn(i.relatedInformation,c=>c.code===p.Did_you_mean_0.code);if(s===void 0||s.file===void 0||s.start===void 0||s.length===void 0)return;const o=vme(s.file,Ju(s.start,s.length));if(o!==void 0&&vt(o)&&mr(o.parent))return{suggestion:wtt(s.messageText),expression:o.parent,arg:o}}function LDe(e,t,r,i){const s=L.createCallExpression(L.createPropertyAccessExpression(L.createIdentifier("Number"),L.createIdentifier("isNaN")),void 0,[r]),o=i.operatorToken.kind;e.replaceNode(t,i,o===38||o===36?L.createPrefixUnaryExpression(54,s):s)}function wtt(e){const[,t]=fg(e,` +`,0).match(/'(.*)'/)||[];return t}var UZ,Jde,Dtt=K({"src/services/codefixes/fixNaNEquality.ts"(){ci(),La(),UZ="fixNaNEquality",Jde=[p.This_condition_will_always_return_0.code],Oa({errorCodes:Jde,getCodeActions(e){const{sourceFile:t,span:r,program:i}=e,s=FDe(i,t,r);if(s===void 0)return;const{suggestion:o,expression:c,arg:u}=s,f=gr.ChangeTracker.with(e,g=>LDe(g,t,u,c));return[ga(UZ,f,[p.Use_0,o],UZ,p.Use_Number_isNaN_in_all_conditions)]},fixIds:[UZ],getAllCodeActions:e=>No(e,Jde,(t,r)=>{const i=FDe(e.program,r.file,Ju(r.start,r.length));i&&LDe(t,r.file,i.arg,i.expression)})})}}),Att=K({"src/services/codefixes/fixModuleAndTargetOptions.ts"(){ci(),La(),Oa({errorCodes:[p.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,p.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,p.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(t){const r=t.program.getCompilerOptions(),{configFile:i}=r;if(i===void 0)return;const s=[],o=r_(r);if(o>=5&&o<99){const g=gr.ChangeTracker.with(t,d=>{hme(d,i,"module",L.createStringLiteral("esnext"))});s.push(Im("fixModuleOption",g,[p.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}const u=go(r);if(u<4||u>99){const g=gr.ChangeTracker.with(t,d=>{if(!PP(i))return;const x=[["target",L.createStringLiteral("es2017")]];o===1&&x.push(["module",L.createStringLiteral("commonjs")]),gme(d,i,x)});s.push(Im("fixTargetOption",g,[p.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return s.length?s:void 0}})}});function MDe(e,t,r){e.replaceNode(t,r,L.createPropertyAssignment(r.name,r.objectAssignmentInitializer))}function RDe(e,t){return pa(ps(e,t).parent,Af)}var VZ,zde,Ntt=K({"src/services/codefixes/fixPropertyAssignment.ts"(){ci(),La(),VZ="fixPropertyAssignment",zde=[p.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code],Oa({errorCodes:zde,fixIds:[VZ],getCodeActions(e){const{sourceFile:t,span:r}=e,i=RDe(t,r.start),s=gr.ChangeTracker.with(e,o=>MDe(o,e.sourceFile,i));return[ga(VZ,s,[p.Change_0_to_1,"=",":"],VZ,[p.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>No(e,zde,(t,r)=>MDe(t,r.file,RDe(r.file,r.start)))})}});function jDe(e,t){const r=ps(e,t),i=Du(r).heritageClauses,s=i[0].getFirstToken();return s.kind===96?{extendsToken:s,heritageClauses:i}:void 0}function BDe(e,t,r,i){if(e.replaceNode(t,r,L.createToken(119)),i.length===2&&i[0].token===96&&i[1].token===119){const s=i[1].getFirstToken(),o=s.getFullStart();e.replaceRange(t,{pos:o,end:o},L.createToken(28));const c=t.text;let u=s.end;for(;uBDe(c,t,i,s));return[ga(WZ,o,p.Change_extends_to_implements,WZ,p.Change_all_extended_interfaces_to_implements)]},fixIds:[WZ],getAllCodeActions:e=>No(e,Ude,(t,r)=>{const i=jDe(r.file,r.start);i&&BDe(t,r.file,i.extendsToken,i.heritageClauses)})})}});function JDe(e,t,r){const i=ps(e,t);if(Je(i)||Qi(i))return{node:i,className:r===Vde?Du(i).name.text:void 0}}function zDe(e,t,{node:r,className:i}){Zf(r),e.replaceNode(t,r,L.createPropertyAccessExpression(i?L.createIdentifier(i):L.createThis(),r))}var qZ,Vde,Wde,Ott=K({"src/services/codefixes/fixForgottenThisPropertyAccess.ts"(){ci(),La(),qZ="forgottenThisPropertyAccess",Vde=p.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,Wde=[p.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,p.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,Vde],Oa({errorCodes:Wde,getCodeActions(e){const{sourceFile:t}=e,r=JDe(t,e.span.start,e.errorCode);if(!r)return;const i=gr.ChangeTracker.with(e,s=>zDe(s,t,r));return[ga(qZ,i,[p.Add_0_to_unresolved_variable,r.className||"this"],qZ,p.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[qZ],getAllCodeActions:e=>No(e,Wde,(t,r)=>{const i=JDe(r.file,r.start,r.code);i&&zDe(t,e.sourceFile,i)})})}});function Ftt(e){return jo(Gde,e)}function qde(e,t,r,i,s){const o=r.getText()[i];if(!Ftt(o))return;const c=s?Gde[o]:`{${mD(r,t,o)}}`;e.replaceRangeWithText(r,{pos:i,end:i+1},c)}var HZ,yB,Hde,Gde,Ltt=K({"src/services/codefixes/fixInvalidJsxCharacters.ts"(){ci(),La(),HZ="fixInvalidJsxCharacters_expression",yB="fixInvalidJsxCharacters_htmlEntity",Hde=[p.Unexpected_token_Did_you_mean_or_gt.code,p.Unexpected_token_Did_you_mean_or_rbrace.code],Oa({errorCodes:Hde,fixIds:[HZ,yB],getCodeActions(e){const{sourceFile:t,preferences:r,span:i}=e,s=gr.ChangeTracker.with(e,c=>qde(c,r,t,i.start,!1)),o=gr.ChangeTracker.with(e,c=>qde(c,r,t,i.start,!0));return[ga(HZ,s,p.Wrap_invalid_character_in_an_expression_container,HZ,p.Wrap_all_invalid_characters_in_an_expression_container),ga(yB,o,p.Convert_invalid_character_to_its_html_entity_code,yB,p.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(e){return No(e,Hde,(t,r)=>qde(t,e.preferences,r.file,r.start,e.fixId===yB))}}),Gde={">":">","}":"}"}}});function Mtt(e,{name:t,jsDocHost:r,jsDocParameterTag:i}){const s=gr.ChangeTracker.with(e,o=>o.filterJSDocTags(e.sourceFile,r,c=>c!==i));return ga(vB,s,[p.Delete_unused_param_tag_0,t.getText(e.sourceFile)],vB,p.Delete_all_unused_param_tags)}function Rtt(e,{name:t,jsDocHost:r,signature:i,jsDocParameterTag:s}){if(!Xe(i.parameters))return;const o=e.sourceFile,c=Gv(i),u=new Set;for(const y of c)Am(y)&&Je(y.name)&&u.add(y.name.escapedText);const f=li(i.parameters,y=>Je(y.name)&&!u.has(y.name.escapedText)?y.name.getText(o):void 0);if(f===void 0)return;const g=L.updateJSDocParameterTag(s,s.tagName,L.createIdentifier(f),s.isBracketed,s.typeExpression,s.isNameFirst,s.comment),d=gr.ChangeTracker.with(e,y=>y.replaceJSDocComment(o,r,Kt(c,x=>x===s?g:x)));return Im($de,d,[p.Rename_param_tag_name_0_to_1,t.getText(o),f])}function UDe(e,t){const r=ps(e,t);if(r.parent&&Am(r.parent)&&Je(r.parent.name)){const i=r.parent,s=lx(i),o=Zv(i);if(s&&o)return{jsDocHost:s,signature:o,name:r.parent.name,jsDocParameterTag:i}}}var vB,$de,Xde,jtt=K({"src/services/codefixes/fixUnmatchedParameter.ts"(){ci(),La(),vB="deleteUnmatchedParameter",$de="renameUnmatchedParameter",Xde=[p.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code],Oa({fixIds:[vB,$de],errorCodes:Xde,getCodeActions:function(t){const{sourceFile:r,span:i}=t,s=[],o=UDe(r,i.start);if(o)return gn(s,Mtt(t,o)),gn(s,Rtt(t,o)),s},getAllCodeActions:function(t){const r=new Map;return E3(gr.ChangeTracker.with(t,i=>{P3(t,Xde,({file:s,start:o})=>{const c=UDe(s,o);c&&r.set(c.signature,gn(r.get(c.signature),c.jsDocParameterTag))}),r.forEach((s,o)=>{if(t.fixId===vB){const c=new Set(s);i.filterJSDocTags(o.getSourceFile(),o,u=>!c.has(u))}})}))}})}});function Btt(e,t,r){const i=si(ps(e,r),Je);if(!i||i.parent.kind!==183)return;const o=t.getTypeChecker().getSymbolAtLocation(i);return Cn((o==null?void 0:o.declarations)||Ke,Tm(Yg,Df,Tu))}function Jtt(e,t,r,i){if(r.kind===271){e.insertModifierBefore(t,156,r.name);return}const s=r.kind===273?r:r.parent.parent;if(s.name&&s.namedBindings)return;const o=i.getTypeChecker();_9(s,u=>{if(Uu(u.symbol,o).flags&111551)return!0})||e.insertModifierBefore(t,156,s)}function ztt(e,t,r,i){yC.doChangeNamedToNamespaceOrDefault(t,i,e,r.parent)}var GZ,VDe,Utt=K({"src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts"(){ci(),La(),GZ="fixUnreferenceableDecoratorMetadata",VDe=[p.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],Oa({errorCodes:VDe,getCodeActions:e=>{const t=Btt(e.sourceFile,e.program,e.span.start);if(!t)return;const r=gr.ChangeTracker.with(e,o=>t.kind===276&&ztt(o,e.sourceFile,t,e.program)),i=gr.ChangeTracker.with(e,o=>Jtt(o,e.sourceFile,t,e.program));let s;return r.length&&(s=gn(s,Im(GZ,r,p.Convert_named_imports_to_namespace_import))),i.length&&(s=gn(s,Im(GZ,i,p.Use_import_type))),s},fixIds:[GZ]})}});function WDe(e,t,r){e.replaceNode(t,r.parent,L.createKeywordTypeNode(159))}function $I(e,t){return ga(XI,e,t,QZ,p.Delete_all_unused_declarations)}function qDe(e,t,r){e.delete(t,w.checkDefined(pa(r.parent,CW).typeParameters,"The type parameter to delete should exist"))}function Qde(e){return e.kind===102||e.kind===80&&(e.parent.kind===276||e.parent.kind===273)}function HDe(e){return e.kind===102?si(e.parent,eu):void 0}function GDe(e,t){return _u(t.parent)&&Ka(t.parent.getChildren(e))===t}function $De(e,t,r){e.delete(t,r.parent.kind===243?r.parent:r)}function Vtt(e,t,r){dt(r.elements,i=>e.delete(t,i))}function Wtt(e,t,r,{parent:i}){if(Ji(i)&&i.initializer&&fb(i.initializer))if(_u(i.parent)&&Xe(i.parent.declarations)>1){const s=i.parent.parent,o=s.getStart(r),c=s.end;t.delete(r,i),t.insertNodeAt(r,c,i.initializer,{prefix:Iy(e.host,e.formatContext.options)+r.text.slice(gj(r.text,o-1),o),suffix:SI(r)?";":""})}else t.replaceNode(r,i.parent,i.initializer);else t.delete(r,i)}function XDe(e,t,r,i){t!==p.Property_0_is_declared_but_its_value_is_never_read.code&&(i.kind===140&&(i=pa(i.parent,vx).typeParameter.name),Je(i)&&qtt(i)&&(e.replaceNode(r,i,L.createIdentifier(`_${i.text}`)),ws(i.parent)&&B6(i.parent).forEach(s=>{Je(s.name)&&e.replaceNode(r,s.name,L.createIdentifier(`_${s.name.text}`))})))}function qtt(e){switch(e.parent.kind){case 169:case 168:return!0;case 260:switch(e.parent.parent.parent.kind){case 250:case 249:return!0}}return!1}function $Z(e,t,r,i,s,o,c,u){Htt(t,r,e,i,s,o,c,u),Je(t)&&Qo.Core.eachSymbolReferenceInFile(t,i,e,f=>{Jr(f.parent)&&f.parent.name===f&&(f=f.parent),!u&&Qtt(f)&&r.delete(e,f.parent.parent)})}function Htt(e,t,r,i,s,o,c,u){const{parent:f}=e;if(ws(f))Gtt(t,r,f,i,s,o,c,u);else if(!(u&&Je(e)&&Qo.Core.isSymbolReferencedInFile(e,i,r))){const g=Yg(f)?e:co(f)?f.parent:f;w.assert(g!==r,"should not delete whole source file"),t.delete(r,g)}}function Gtt(e,t,r,i,s,o,c,u=!1){if($tt(i,t,r,s,o,c,u))if(r.modifiers&&r.modifiers.length>0&&(!Je(r.name)||Qo.Core.isSymbolReferencedInFile(r.name,i,t)))for(const f of r.modifiers)Fa(f)&&e.deleteModifier(t,f);else!r.initializer&&QDe(r,i,s)&&e.delete(t,r)}function QDe(e,t,r){const i=e.parent.parameters.indexOf(e);return!Qo.Core.someSignatureUsage(e.parent,r,t,(s,o)=>!o||o.arguments.length>i)}function $tt(e,t,r,i,s,o,c){const{parent:u}=r;switch(u.kind){case 174:case 176:const f=u.parameters.indexOf(r),g=ul(u)?u.name:u,d=Qo.Core.getReferencedSymbolsForNode(u.pos,g,s,i,o);if(d){for(const y of d)for(const x of y.references)if(x.kind===Qo.EntryKind.Node){const T=vw(x.node)&&ma(x.node.parent)&&x.node.parent.arguments.length>f,C=Jr(x.node.parent)&&vw(x.node.parent.expression)&&ma(x.node.parent.parent)&&x.node.parent.parent.arguments.length>f,N=(ul(x.node.parent)||Xg(x.node.parent))&&x.node.parent!==r.parent&&x.node.parent.parameters.length>f;if(T||C||N)return!1}}return!0;case 262:return u.name&&Xtt(e,t,u.name)?YDe(u,r,c):!0;case 218:case 219:return YDe(u,r,c);case 178:return!1;case 177:return!0;default:return w.failBadSyntaxKind(u)}}function Xtt(e,t,r){return!!Qo.Core.eachSymbolReferenceInFile(r,e,t,i=>Je(i)&&ma(i.parent)&&i.parent.arguments.includes(i))}function YDe(e,t,r){const i=e.parameters,s=i.indexOf(t);return w.assert(s!==-1,"The parameter should already be in the list"),r?i.slice(s+1).every(o=>Je(o.name)&&!o.symbol.isReferenced):s===i.length-1}function Qtt(e){return(mr(e.parent)&&e.parent.left===e||(CH(e.parent)||O1(e.parent))&&e.parent.operand===e)&&xu(e.parent.parent)}var XI,XZ,QZ,bB,YZ,Yde,Ytt=K({"src/services/codefixes/fixUnusedIdentifier.ts"(){ci(),La(),XI="unusedIdentifier",XZ="unusedIdentifier_prefix",QZ="unusedIdentifier_delete",bB="unusedIdentifier_deleteImports",YZ="unusedIdentifier_infer",Yde=[p._0_is_declared_but_its_value_is_never_read.code,p._0_is_declared_but_never_used.code,p.Property_0_is_declared_but_its_value_is_never_read.code,p.All_imports_in_import_declaration_are_unused.code,p.All_destructured_elements_are_unused.code,p.All_variables_are_unused.code,p.All_type_parameters_are_unused.code],Oa({errorCodes:Yde,getCodeActions(e){const{errorCode:t,sourceFile:r,program:i,cancellationToken:s}=e,o=i.getTypeChecker(),c=i.getSourceFiles(),u=ps(r,e.span.start);if(Rd(u))return[$I(gr.ChangeTracker.with(e,y=>y.delete(r,u)),p.Remove_template_tag)];if(u.kind===30){const y=gr.ChangeTracker.with(e,x=>qDe(x,r,u));return[$I(y,p.Remove_type_parameters)]}const f=HDe(u);if(f){const y=gr.ChangeTracker.with(e,x=>x.delete(r,f));return[ga(XI,y,[p.Remove_import_from_0,Sae(f)],bB,p.Delete_all_unused_imports)]}else if(Qde(u)){const y=gr.ChangeTracker.with(e,x=>$Z(r,u,x,o,c,i,s,!1));if(y.length)return[ga(XI,y,[p.Remove_unused_declaration_for_Colon_0,u.getText(r)],bB,p.Delete_all_unused_imports)]}if(Md(u.parent)||Ob(u.parent)){if(ws(u.parent.parent)){const y=u.parent.elements,x=[y.length>1?p.Remove_unused_declarations_for_Colon_0:p.Remove_unused_declaration_for_Colon_0,Kt(y,T=>T.getText(r)).join(", ")];return[$I(gr.ChangeTracker.with(e,T=>Vtt(T,r,u.parent)),x)]}return[$I(gr.ChangeTracker.with(e,y=>Wtt(e,y,r,u.parent)),p.Remove_unused_destructuring_declaration)]}if(GDe(r,u))return[$I(gr.ChangeTracker.with(e,y=>$De(y,r,u.parent)),p.Remove_variable_statement)];const g=[];if(u.kind===140){const y=gr.ChangeTracker.with(e,T=>WDe(T,r,u)),x=pa(u.parent,vx).typeParameter.name.text;g.push(ga(XI,y,[p.Replace_infer_0_with_unknown,x],YZ,p.Replace_all_unused_infer_with_unknown))}else{const y=gr.ChangeTracker.with(e,x=>$Z(r,u,x,o,c,i,s,!1));if(y.length){const x=co(u.parent)?u.parent:u;g.push($I(y,[p.Remove_unused_declaration_for_Colon_0,x.getText(r)]))}}const d=gr.ChangeTracker.with(e,y=>XDe(y,t,r,u));return d.length&&g.push(ga(XI,d,[p.Prefix_0_with_an_underscore,u.getText(r)],XZ,p.Prefix_all_unused_declarations_with_where_possible)),g},fixIds:[XZ,QZ,bB,YZ],getAllCodeActions:e=>{const{sourceFile:t,program:r,cancellationToken:i}=e,s=r.getTypeChecker(),o=r.getSourceFiles();return No(e,Yde,(c,u)=>{const f=ps(t,u.start);switch(e.fixId){case XZ:XDe(c,u.code,t,f);break;case bB:{const g=HDe(f);g?c.delete(t,g):Qde(f)&&$Z(t,f,c,s,o,r,i,!0);break}case QZ:{if(f.kind===140||Qde(f))break;if(Rd(f))c.delete(t,f);else if(f.kind===30)qDe(c,t,f);else if(Md(f.parent)){if(f.parent.parent.initializer)break;(!ws(f.parent.parent)||QDe(f.parent.parent,s,o))&&c.delete(t,f.parent.parent)}else{if(Ob(f.parent.parent)&&f.parent.parent.parent.initializer)break;GDe(t,f)?$De(c,t,f.parent):$Z(t,f,c,s,o,r,i,!0)}break}case YZ:f.kind===140&&WDe(c,t,f);break;default:w.fail(JSON.stringify(e.fixId))}})}})}});function ZDe(e,t,r,i,s){const o=ps(t,r),c=Vn(o,Xi);if(c.getStart(t)!==o.getStart(t)){const f=JSON.stringify({statementKind:w.formatSyntaxKind(c.kind),tokenKind:w.formatSyntaxKind(o.kind),errorCode:s,start:r,length:i});w.fail("Token and statement should start at the same point. "+f)}const u=(na(c.parent)?c.parent:c).parent;if(!na(c.parent)||c===Ka(c.parent.statements))switch(u.kind){case 245:if(u.elseStatement){if(na(c.parent))break;e.replaceNode(t,c,L.createBlock(Ke));return}case 247:case 248:e.delete(t,u);return}if(na(c.parent)){const f=r+i,g=w.checkDefined(Ztt(Fq(c.parent.statements,c),d=>d.posZDe(i,e.sourceFile,e.span.start,e.span.length,e.errorCode));return[ga(ZZ,r,p.Remove_unreachable_code,ZZ,p.Remove_all_unreachable_code)]},fixIds:[ZZ],getAllCodeActions:e=>No(e,Zde,(t,r)=>ZDe(t,r.file,r.start,r.length,r.code))})}});function KDe(e,t,r){const i=ps(t,r),s=pa(i.parent,Mb),o=i.getStart(t),c=s.statement.getStart(t),u=td(o,c,t)?c:za(t.text,wo(s,59,t).end,!0);e.deleteRange(t,{pos:o,end:u})}var KZ,Kde,ent=K({"src/services/codefixes/fixUnusedLabel.ts"(){ci(),La(),KZ="fixUnusedLabel",Kde=[p.Unused_label.code],Oa({errorCodes:Kde,getCodeActions(e){const t=gr.ChangeTracker.with(e,r=>KDe(r,e.sourceFile,e.span.start));return[ga(KZ,t,p.Remove_unused_label,KZ,p.Remove_all_unused_labels)]},fixIds:[KZ],getAllCodeActions:e=>No(e,Kde,(t,r)=>KDe(t,r.file,r.start))})}});function e8e(e,t,r,i,s){e.replaceNode(t,r,s.typeToTypeNode(i,r,void 0))}function t8e(e,t,r){const i=Vn(ps(e,t),tnt),s=i&&i.type;return s&&{typeNode:s,type:nnt(r,s)}}function tnt(e){switch(e.kind){case 234:case 179:case 180:case 262:case 177:case 181:case 200:case 174:case 173:case 169:case 172:case 171:case 178:case 265:case 216:case 260:return!0;default:return!1}}function nnt(e,t){if(j4(t)){const r=e.getTypeFromTypeNode(t.type);return r===e.getNeverType()||r===e.getVoidType()?r:e.getUnionType(gn([r,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}var eme,eK,tme,rnt=K({"src/services/codefixes/fixJSDocTypes.ts"(){ci(),La(),eme="fixJSDocTypes_plain",eK="fixJSDocTypes_nullable",tme=[p.JSDoc_types_can_only_be_used_inside_documentation_comments.code,p._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,p._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code],Oa({errorCodes:tme,getCodeActions(e){const{sourceFile:t}=e,r=e.program.getTypeChecker(),i=t8e(t,e.span.start,r);if(!i)return;const{typeNode:s,type:o}=i,c=s.getText(t),u=[f(o,eme,p.Change_all_jsdoc_style_types_to_TypeScript)];return s.kind===321&&u.push(f(o,eK,p.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),u;function f(g,d,y){const x=gr.ChangeTracker.with(e,T=>e8e(T,t,s,g,r));return ga("jdocTypes",x,[p.Change_0_to_1,c,r.typeToString(g)],d,y)}},fixIds:[eme,eK],getAllCodeActions(e){const{fixId:t,program:r,sourceFile:i}=e,s=r.getTypeChecker();return No(e,tme,(o,c)=>{const u=t8e(c.file,c.start,s);if(!u)return;const{typeNode:f,type:g}=u,d=f.kind===321&&t===eK?s.getNullableType(g,32768):g;e8e(o,i,f,d,s)})}})}});function n8e(e,t,r){e.replaceNodeWithText(t,r,`${r.text}()`)}function r8e(e,t){const r=ps(e,t);if(Jr(r.parent)){let i=r.parent;for(;Jr(i.parent);)i=i.parent;return i.name}if(Je(r))return r}var tK,nme,int=K({"src/services/codefixes/fixMissingCallParentheses.ts"(){ci(),La(),tK="fixMissingCallParentheses",nme=[p.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code],Oa({errorCodes:nme,fixIds:[tK],getCodeActions(e){const{sourceFile:t,span:r}=e,i=r8e(t,r.start);if(!i)return;const s=gr.ChangeTracker.with(e,o=>n8e(o,e.sourceFile,i));return[ga(tK,s,p.Add_missing_call_parentheses,tK,p.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>No(e,nme,(t,r)=>{const i=r8e(r.file,r.start);i&&n8e(t,r.file,i)})})}});function snt(e){if(e.type)return e.type;if(Ji(e.parent)&&e.parent.type&&Qg(e.parent.type))return e.parent.type.type}function i8e(e,t){const r=ps(e,t),i=hp(r);if(!i)return;let s;switch(i.kind){case 174:s=i.name;break;case 262:case 218:s=wo(i,100,e);break;case 219:const o=i.typeParameters?30:21;s=wo(i,o,e)||Ka(i.parameters);break;default:return}return s&&{insertBefore:s,returnType:snt(i)}}function s8e(e,t,{insertBefore:r,returnType:i}){if(i){const s=RA(i);(!s||s.kind!==80||s.text!=="Promise")&&e.replaceNode(t,i,L.createTypeReferenceNode("Promise",L.createNodeArray([i])))}e.insertModifierBefore(t,134,r)}var nK,rme,ant=K({"src/services/codefixes/fixAwaitInSyncFunction.ts"(){ci(),La(),nK="fixAwaitInSyncFunction",rme=[p.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,p.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,p.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,p.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code],Oa({errorCodes:rme,getCodeActions(e){const{sourceFile:t,span:r}=e,i=i8e(t,r.start);if(!i)return;const s=gr.ChangeTracker.with(e,o=>s8e(o,t,i));return[ga(nK,s,p.Add_async_modifier_to_containing_function,nK,p.Add_all_missing_async_modifiers)]},fixIds:[nK],getAllCodeActions:function(t){const r=new Map;return No(t,rme,(i,s)=>{const o=i8e(s.file,s.start);!o||!nm(r,ho(o.insertBefore))||s8e(i,t.sourceFile,o)})}})}});function a8e(e,t,r,i,s){let o,c;if(i===p._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)o=t,c=t+r;else if(i===p._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){const u=s.program.getTypeChecker(),f=ps(e,t).parent;w.assert(d1(f),"error span of fixPropertyOverrideAccessor should only be on an accessor");const g=f.parent;w.assert(fi(g),"erroneous accessors should only be inside classes");const d=Mg(Sme(g,u));if(!d)return[];const y=Hi(X6(f.name)),x=u.getPropertyOfType(u.getTypeAtLocation(d),y);if(!x||!x.valueDeclaration)return[];o=x.valueDeclaration.pos,c=x.valueDeclaration.end,e=qn(x.valueDeclaration)}else w.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+i);return S8e(e,s.program,o,c,s,p.Generate_get_and_set_accessors.message)}var ime,rK,ont=K({"src/services/codefixes/fixPropertyOverrideAccessor.ts"(){ci(),La(),ime=[p._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,p._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],rK="fixPropertyOverrideAccessor",Oa({errorCodes:ime,getCodeActions(e){const t=a8e(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[ga(rK,t,p.Generate_get_and_set_accessors,rK,p.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[rK],getAllCodeActions:e=>No(e,ime,(t,r)=>{const i=a8e(r.file,r.start,r.length,r.code,e);if(i)for(const s of i)t.pushRaw(e.sourceFile,s)})})}});function cnt(e,t){switch(e){case p.Parameter_0_implicitly_has_an_1_type.code:case p.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return $f(hp(t))?p.Infer_type_of_0_from_usage:p.Infer_parameter_types_from_usage;case p.Rest_parameter_0_implicitly_has_an_any_type.code:case p.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return p.Infer_parameter_types_from_usage;case p.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return p.Infer_this_type_of_0_from_usage;default:return p.Infer_type_of_0_from_usage}}function lnt(e){switch(e){case p.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return p.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case p.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return p.Variable_0_implicitly_has_an_1_type.code;case p.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return p.Parameter_0_implicitly_has_an_1_type.code;case p.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return p.Rest_parameter_0_implicitly_has_an_any_type.code;case p.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return p.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case p._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return p._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case p.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return p.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case p.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return p.Member_0_implicitly_has_an_1_type.code}return e}function o8e(e,t,r,i,s,o,c,u,f){if(!yP(r.kind)&&r.kind!==80&&r.kind!==26&&r.kind!==110)return;const{parent:g}=r,d=SC(t,s,f,u);switch(i=lnt(i),i){case p.Member_0_implicitly_has_an_1_type.code:case p.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(Ji(g)&&c(g)||Zs(g)||Gf(g))return c8e(e,d,t,g,s,u,o),d.writeFixes(e),g;if(Jr(g)){const T=QI(g.name,s,o),C=gD(T,g,s,u);if(C){const N=L.createJSDocTypeTag(void 0,L.createJSDocTypeExpression(C),void 0);e.addJSDocTags(t,pa(g.parent.parent,xu),[N])}return d.writeFixes(e),g}return;case p.Variable_0_implicitly_has_an_1_type.code:{const T=s.getTypeChecker().getSymbolAtLocation(r);return T&&T.valueDeclaration&&Ji(T.valueDeclaration)&&c(T.valueDeclaration)?(c8e(e,d,qn(T.valueDeclaration),T.valueDeclaration,s,u,o),d.writeFixes(e),T.valueDeclaration):void 0}}const y=hp(r);if(y===void 0)return;let x;switch(i){case p.Parameter_0_implicitly_has_an_1_type.code:if($f(y)){l8e(e,d,t,y,s,u,o),x=y;break}case p.Rest_parameter_0_implicitly_has_an_any_type.code:if(c(y)){const T=pa(g,ws);unt(e,d,t,T,y,s,u,o),x=T}break;case p.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case p._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:Op(y)&&Je(y.name)&&(iK(e,d,t,y,QI(y.name,s,o),s,u),x=y);break;case p.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:$f(y)&&(l8e(e,d,t,y,s,u,o),x=y);break;case p.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:gr.isThisTypeAnnotatable(y)&&c(y)&&(_nt(e,t,y,s,u,o),x=y);break;default:return w.fail(String(i))}return d.writeFixes(e),x}function c8e(e,t,r,i,s,o,c){Je(i.name)&&iK(e,t,r,i,QI(i.name,s,c),s,o)}function unt(e,t,r,i,s,o,c,u){if(!Je(i.name))return;const f=dnt(s,r,o,u);if(w.assert(s.parameters.length===f.length,"Parameter count and inference count should match"),lr(s))u8e(e,r,f,o,c);else{const g=ec(s)&&!wo(s,21,r);g&&e.insertNodeBefore(r,Ka(s.parameters),L.createToken(21));for(const{declaration:d,type:y}of f)d&&!d.type&&!d.initializer&&iK(e,t,r,d,y,o,c);g&&e.insertNodeAfter(r,so(s.parameters),L.createToken(22))}}function _nt(e,t,r,i,s,o){const c=_8e(r,t,i,o);if(!c||!c.length)return;const u=ame(i,c,o).thisParameter(),f=gD(u,r,i,s);f&&(lr(r)?fnt(e,t,r,f):e.tryInsertThisTypeAnnotation(t,r,f))}function fnt(e,t,r,i){e.addJSDocTags(t,r,[L.createJSDocThisTag(void 0,L.createJSDocTypeExpression(i))])}function l8e(e,t,r,i,s,o,c){const u=hu(i.parameters);if(u&&Je(i.name)&&Je(u.name)){let f=QI(i.name,s,c);f===s.getTypeChecker().getAnyType()&&(f=QI(u.name,s,c)),lr(i)?u8e(e,r,[{declaration:u,type:f}],s,o):iK(e,t,r,u,f,s,o)}}function iK(e,t,r,i,s,o,c){const u=gD(s,i,o,c);if(u)if(lr(r)&&i.kind!==171){const f=Ji(i)?si(i.parent.parent,Xc):i;if(!f)return;const g=L.createJSDocTypeExpression(u),d=Op(i)?L.createJSDocReturnTag(void 0,g,void 0):L.createJSDocTypeTag(void 0,g,void 0);e.addJSDocTags(r,f,[d])}else pnt(u,i,r,e,t,go(o.getCompilerOptions()))||e.tryInsertTypeAnnotation(r,i,u)}function pnt(e,t,r,i,s,o){const c=TC(e,o);return c&&i.tryInsertTypeAnnotation(r,t,c.typeNode)?(dt(c.symbols,u=>s.addImportFromExportedSymbol(u,!0)),!0):!1}function u8e(e,t,r,i,s){const o=r.length&&r[0].declaration.parent;if(!o)return;const c=Oi(r,u=>{const f=u.declaration;if(f.initializer||Hv(f)||!Je(f.name))return;const g=u.type&&gD(u.type,f,i,s);if(g){const d=L.cloneNode(f.name);return pr(d,7168),{name:L.cloneNode(f.name),param:f,isOptional:!!u.isOptional,typeNode:g}}});if(c.length)if(ec(o)||Xo(o)){const u=ec(o)&&!wo(o,21,t);u&&e.insertNodeBefore(t,Ka(o.parameters),L.createToken(21)),dt(c,({typeNode:f,param:g})=>{const d=L.createJSDocTypeTag(void 0,L.createJSDocTypeExpression(f)),y=L.createJSDocComment(void 0,[d]);e.insertNodeAt(t,g.getStart(t),y,{suffix:" "})}),u&&e.insertNodeAfter(t,so(o.parameters),L.createToken(22))}else{const u=Kt(c,({name:f,typeNode:g,isOptional:d})=>L.createJSDocParameterTag(void 0,f,!!d,L.createJSDocTypeExpression(g),!1,void 0));e.addJSDocTags(t,o,u)}}function sme(e,t,r){return Oi(Qo.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),r),i=>i.kind!==Qo.EntryKind.Span?si(i.node,Je):void 0)}function QI(e,t,r){const i=sme(e,t,r);return ame(t,i,r).single()}function dnt(e,t,r,i){const s=_8e(e,t,r,i);return s&&ame(r,s,i).parameters(e)||e.parameters.map(o=>({declaration:o,type:Je(o.name)?QI(o.name,r,i):r.getTypeChecker().getAnyType()}))}function _8e(e,t,r,i){let s;switch(e.kind){case 176:s=wo(e,137,t);break;case 219:case 218:const o=e.parent;s=(Ji(o)||Zs(o))&&Je(o.name)?o.name:e.name;break;case 262:case 174:case 173:s=e.name;break}if(s)return sme(s,r,i)}function ame(e,t,r){const i=e.getTypeChecker(),s={string:()=>i.getStringType(),number:()=>i.getNumberType(),Array:Ee=>i.createArrayType(Ee),Promise:Ee=>i.createPromiseType(Ee)},o=[i.getStringType(),i.getNumberType(),i.createArrayType(i.getAnyType()),i.createPromiseType(i.getAnyType())];return{single:f,parameters:g,thisParameter:d};function c(){return{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}}function u(Ee){const Ae=new Map;for(const Tt of Ee)Tt.properties&&Tt.properties.forEach((xe,ze)=>{Ae.has(ze)||Ae.set(ze,[]),Ae.get(ze).push(xe)});const Le=new Map;return Ae.forEach((Tt,xe)=>{Le.set(xe,u(Tt))}),{isNumber:Ee.some(Tt=>Tt.isNumber),isString:Ee.some(Tt=>Tt.isString),isNumberOrString:Ee.some(Tt=>Tt.isNumberOrString),candidateTypes:Ys(Ee,Tt=>Tt.candidateTypes),properties:Le,calls:Ys(Ee,Tt=>Tt.calls),constructs:Ys(Ee,Tt=>Tt.constructs),numberIndex:dt(Ee,Tt=>Tt.numberIndex),stringIndex:dt(Ee,Tt=>Tt.stringIndex),candidateThisTypes:Ys(Ee,Tt=>Tt.candidateThisTypes),inferredTypes:void 0}}function f(){return ge(y(t))}function g(Ee){if(t.length===0||!Ee.parameters)return;const Ae=c();for(const Tt of t)r.throwIfCancellationRequested(),x(Tt,Ae);const Le=[...Ae.constructs||[],...Ae.calls||[]];return Ee.parameters.map((Tt,xe)=>{const ze=[],st=Ah(Tt);let zt=!1;for(const $e of Le)if($e.argumentTypes.length<=xe)zt=lr(Ee),ze.push(i.getUndefinedType());else if(st)for(let kt=xe;kt<$e.argumentTypes.length;kt++)ze.push(i.getBaseTypeOfLiteralType($e.argumentTypes[kt]));else ze.push(i.getBaseTypeOfLiteralType($e.argumentTypes[xe]));if(Je(Tt.name)){const $e=y(sme(Tt.name,e,r));ze.push(...st?Oi($e,i.getElementTypeOfArrayType):$e)}const yt=ge(ze);return{type:st?i.createArrayType(yt):yt,isOptional:zt&&!st,declaration:Tt}})}function d(){const Ee=c();for(const Ae of t)r.throwIfCancellationRequested(),x(Ae,Ee);return ge(Ee.candidateThisTypes||Ke)}function y(Ee){const Ae=c();for(const Le of Ee)r.throwIfCancellationRequested(),x(Le,Ae);return Q(Ae)}function x(Ee,Ae){for(;qP(Ee);)Ee=Ee.parent;switch(Ee.parent.kind){case 244:C(Ee,Ae);break;case 225:Ae.isNumber=!0;break;case 224:N(Ee.parent,Ae);break;case 226:D(Ee,Ee.parent,Ae);break;case 296:case 297:M(Ee.parent,Ae);break;case 213:case 214:Ee.parent.expression===Ee?V(Ee.parent,Ae):T(Ee,Ae);break;case 211:G(Ee.parent,Ae);break;case 212:Z(Ee.parent,Ee,Ae);break;case 303:case 304:z(Ee.parent,Ae);break;case 172:ce(Ee.parent,Ae);break;case 260:{const{name:Le,initializer:Tt}=Ee.parent;if(Ee===Le){Tt&&Ue(Ae,i.getTypeAtLocation(Tt));break}}default:return T(Ee,Ae)}}function T(Ee,Ae){Oh(Ee)&&Ue(Ae,i.getContextualType(Ee))}function C(Ee,Ae){Ue(Ae,ma(Ee)?i.getVoidType():i.getAnyType())}function N(Ee,Ae){switch(Ee.operator){case 46:case 47:case 41:case 55:Ae.isNumber=!0;break;case 40:Ae.isNumberOrString=!0;break}}function D(Ee,Ae,Le){switch(Ae.operatorToken.kind){case 43:case 42:case 44:case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 66:case 68:case 67:case 69:case 70:case 74:case 75:case 79:case 71:case 73:case 72:case 41:case 30:case 33:case 32:case 34:const Tt=i.getTypeAtLocation(Ae.left===Ee?Ae.right:Ae.left);Tt.flags&1056?Ue(Le,Tt):Le.isNumber=!0;break;case 65:case 40:const xe=i.getTypeAtLocation(Ae.left===Ee?Ae.right:Ae.left);xe.flags&1056?Ue(Le,xe):xe.flags&296?Le.isNumber=!0:xe.flags&402653316?Le.isString=!0:xe.flags&1||(Le.isNumberOrString=!0);break;case 64:case 35:case 37:case 38:case 36:case 77:case 78:case 76:Ue(Le,i.getTypeAtLocation(Ae.left===Ee?Ae.right:Ae.left));break;case 103:Ee===Ae.left&&(Le.isString=!0);break;case 57:case 61:Ee===Ae.left&&(Ee.parent.parent.kind===260||Kl(Ee.parent.parent,!0))&&Ue(Le,i.getTypeAtLocation(Ae.right));break}}function M(Ee,Ae){Ue(Ae,i.getTypeAtLocation(Ee.parent.parent.expression))}function V(Ee,Ae){const Le={argumentTypes:[],return_:c()};if(Ee.arguments)for(const Tt of Ee.arguments)Le.argumentTypes.push(i.getTypeAtLocation(Tt));x(Ee,Le.return_),Ee.kind===213?(Ae.calls||(Ae.calls=[])).push(Le):(Ae.constructs||(Ae.constructs=[])).push(Le)}function G(Ee,Ae){const Le=Nc(Ee.name.text);Ae.properties||(Ae.properties=new Map);const Tt=Ae.properties.get(Le)||c();x(Ee,Tt),Ae.properties.set(Le,Tt)}function Z(Ee,Ae,Le){if(Ae===Ee.argumentExpression){Le.isNumberOrString=!0;return}else{const Tt=i.getTypeAtLocation(Ee.argumentExpression),xe=c();x(Ee,xe),Tt.flags&296?Le.numberIndex=xe:Le.stringIndex=xe}}function z(Ee,Ae){const Le=Ji(Ee.parent.parent)?Ee.parent.parent:Ee.parent;Se(Ae,i.getTypeAtLocation(Le))}function ce(Ee,Ae){Se(Ae,i.getTypeAtLocation(Ee.parent))}function J(Ee,Ae){const Le=[];for(const Tt of Ee)for(const{high:xe,low:ze}of Ae)xe(Tt)&&(w.assert(!ze(Tt),"Priority can't have both low and high"),Le.push(ze));return Ee.filter(Tt=>Le.every(xe=>!xe(Tt)))}function ne(Ee){return ge(Q(Ee))}function ge(Ee){if(!Ee.length)return i.getAnyType();const Ae=i.getUnionType([i.getStringType(),i.getNumberType()]);let Tt=J(Ee,[{high:ze=>ze===i.getStringType()||ze===i.getNumberType(),low:ze=>ze===Ae},{high:ze=>!(ze.flags&16385),low:ze=>!!(ze.flags&16385)},{high:ze=>!(ze.flags&114689)&&!(Br(ze)&16),low:ze=>!!(Br(ze)&16)}]);const xe=Tt.filter(ze=>Br(ze)&16);return xe.length&&(Tt=Tt.filter(ze=>!(Br(ze)&16)),Tt.push(ve(xe))),i.getWidenedType(i.getUnionType(Tt.map(i.getBaseTypeOfLiteralType),2))}function ve(Ee){if(Ee.length===1)return Ee[0];const Ae=[],Le=[],Tt=[],xe=[];let ze=!1,st=!1;const zt=Dp();for(const kt of Ee){for(const In of i.getPropertiesOfType(kt))zt.add(In.escapedName,In.valueDeclaration?i.getTypeOfSymbolAtLocation(In,In.valueDeclaration):i.getAnyType());Ae.push(...i.getSignaturesOfType(kt,0)),Le.push(...i.getSignaturesOfType(kt,1));const nn=i.getIndexInfoOfType(kt,0);nn&&(Tt.push(nn.type),ze=ze||nn.isReadonly);const sn=i.getIndexInfoOfType(kt,1);sn&&(xe.push(sn.type),st=st||sn.isReadonly)}const yt=Xt(zt,(kt,nn)=>{const sn=nn.lengthi.getBaseTypeOfLiteralType(zt)),st=(Tt=Ee.calls)!=null&&Tt.length?X(Ee):void 0;return st&&ze?xe.push(i.getUnionType([st,...ze],2)):(st&&xe.push(st),Xe(ze)&&xe.push(...ze)),xe.push(...se(Ee)),xe}function X(Ee){const Ae=new Map;Ee.properties&&Ee.properties.forEach((ze,st)=>{const zt=i.createSymbol(4,st);zt.links.type=ne(ze),Ae.set(st,zt)});const Le=Ee.calls?[Ne(Ee.calls)]:[],Tt=Ee.constructs?[Ne(Ee.constructs)]:[],xe=Ee.stringIndex?[i.createIndexInfo(i.getStringType(),ne(Ee.stringIndex),!1)]:[];return i.createAnonymousType(void 0,Ae,Le,Tt,xe)}function se(Ee){if(!Ee.properties||!Ee.properties.size)return[];const Ae=o.filter(Le=>pe(Le,Ee));return 0we(Le,Ee)):[]}function pe(Ee,Ae){return Ae.properties?!cu(Ae.properties,(Le,Tt)=>{const xe=i.getTypeOfPropertyOfType(Ee,Tt);return xe?Le.calls?!i.getSignaturesOfType(xe,0).length||!i.isTypeAssignableTo(xe,ye(Le.calls)):!i.isTypeAssignableTo(xe,ne(Le)):!0}):!1}function we(Ee,Ae){if(!(Br(Ee)&4)||!Ae.properties)return Ee;const Le=Ee.target,Tt=Mg(Le.typeParameters);if(!Tt)return Ee;const xe=[];return Ae.properties.forEach((ze,st)=>{const zt=i.getTypeOfPropertyOfType(Le,st);w.assert(!!zt,"generic should have all the properties of its reference."),xe.push(...fe(zt,ne(ze),Tt))}),s[Ee.symbol.escapedName](ge(xe))}function fe(Ee,Ae,Le){if(Ee===Le)return[Ae];if(Ee.flags&3145728)return Ys(Ee.types,ze=>fe(ze,Ae,Le));if(Br(Ee)&4&&Br(Ae)&4){const ze=i.getTypeArguments(Ee),st=i.getTypeArguments(Ae),zt=[];if(ze&&st)for(let yt=0;ytxe.argumentTypes.length));for(let xe=0;xest.argumentTypes[xe]||i.getUndefinedType())),Ee.some(st=>st.argumentTypes[xe]===void 0)&&(ze.flags|=16777216),Ae.push(ze)}const Tt=ne(u(Ee.map(xe=>xe.return_)));return i.createSignature(void 0,void 0,void 0,Ae,Tt,void 0,Le,0)}function Ue(Ee,Ae){Ae&&!(Ae.flags&1)&&!(Ae.flags&131072)&&(Ee.candidateTypes||(Ee.candidateTypes=[])).push(Ae)}function Se(Ee,Ae){Ae&&!(Ae.flags&1)&&!(Ae.flags&131072)&&(Ee.candidateThisTypes||(Ee.candidateThisTypes=[])).push(Ae)}}var sK,ome,mnt=K({"src/services/codefixes/inferFromUsage.ts"(){ci(),La(),sK="inferFromUsage",ome=[p.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,p.Variable_0_implicitly_has_an_1_type.code,p.Parameter_0_implicitly_has_an_1_type.code,p.Rest_parameter_0_implicitly_has_an_any_type.code,p.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,p._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,p.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,p.Member_0_implicitly_has_an_1_type.code,p.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,p.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,p.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,p.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,p.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,p._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,p.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,p.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,p.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],Oa({errorCodes:ome,getCodeActions(e){const{sourceFile:t,program:r,span:{start:i},errorCode:s,cancellationToken:o,host:c,preferences:u}=e,f=ps(t,i);let g;const d=gr.ChangeTracker.with(e,x=>{g=o8e(x,t,f,s,r,o,cy,c,u)}),y=g&&Ms(g);return!y||d.length===0?void 0:[ga(sK,d,[cnt(s,f),Ol(y)],sK,p.Infer_all_types_from_usage)]},fixIds:[sK],getAllCodeActions(e){const{sourceFile:t,program:r,cancellationToken:i,host:s,preferences:o}=e,c=dC();return No(e,ome,(u,f)=>{o8e(u,t,ps(f.file,f.start),f.code,r,i,c,s,o)})}})}});function f8e(e,t,r){if(lr(e))return;const i=ps(e,r),s=Vn(i,Ko),o=s==null?void 0:s.type;if(!o)return;const c=t.getTypeFromTypeNode(o),u=t.getAwaitedType(c)||t.getVoidType(),f=t.typeToTypeNode(u,o,void 0);if(f)return{returnTypeNode:o,returnType:c,promisedTypeNode:f,promisedType:u}}function p8e(e,t,r,i){e.replaceNode(t,r,L.createTypeReferenceNode("Promise",[i]))}var aK,cme,gnt=K({"src/services/codefixes/fixReturnTypeInAsyncFunction.ts"(){ci(),La(),aK="fixReturnTypeInAsyncFunction",cme=[p.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code],Oa({errorCodes:cme,fixIds:[aK],getCodeActions:function(t){const{sourceFile:r,program:i,span:s}=t,o=i.getTypeChecker(),c=f8e(r,i.getTypeChecker(),s.start);if(!c)return;const{returnTypeNode:u,returnType:f,promisedTypeNode:g,promisedType:d}=c,y=gr.ChangeTracker.with(t,x=>p8e(x,r,u,g));return[ga(aK,y,[p.Replace_0_with_Promise_1,o.typeToString(f),o.typeToString(d)],aK,p.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>No(e,cme,(t,r)=>{const i=f8e(r.file,e.program.getTypeChecker(),r.start);i&&p8e(t,r.file,i.returnTypeNode,i.promisedTypeNode)})})}});function d8e(e,t,r,i){const{line:s}=Ao(t,r);(!i||Na(i,s))&&e.insertCommentBeforeLine(t,s,r," @ts-ignore")}var lme,ume,_me,hnt=K({"src/services/codefixes/disableJsDiagnostics.ts"(){ci(),La(),lme="disableJsDiagnostics",ume="disableJsDiagnostics",_me=Oi(Object.keys(p),e=>{const t=p[e];return t.category===1?t.code:void 0}),Oa({errorCodes:_me,getCodeActions:function(t){const{sourceFile:r,program:i,span:s,host:o,formatContext:c}=t;if(!lr(r)||!xN(r,i.getCompilerOptions()))return;const u=r.checkJsDirective?"":Iy(o,c.options),f=[Im(lme,[gPe(r.fileName,[_I(r.checkJsDirective?Il(r.checkJsDirective.pos,r.checkJsDirective.end):Ju(0,0),`// @ts-nocheck${u}`)])],p.Disable_checking_for_this_file)];return gr.isValidLocationToAddComment(r,s.start)&&f.unshift(ga(lme,gr.ChangeTracker.with(t,g=>d8e(g,r,s.start)),p.Ignore_this_error_message,ume,p.Add_ts_ignore_to_all_error_messages)),f},fixIds:[ume],getAllCodeActions:e=>{const t=new Set;return No(e,_me,(r,i)=>{gr.isValidLocationToAddComment(i.file,i.start)&&d8e(r,i.file,i.start,t)})}})}});function fme(e,t,r,i,s,o,c){const u=e.symbol.members;for(const f of t)u.has(f.escapedName)||m8e(f,e,r,i,s,o,c,void 0)}function D3(e){return{trackSymbol:()=>!1,moduleResolverHost:fQ(e.program,e.host)}}function m8e(e,t,r,i,s,o,c,u,f=3,g=!1){const d=e.getDeclarations(),y=hu(d),x=i.program.getTypeChecker(),T=go(i.program.getCompilerOptions()),C=(y==null?void 0:y.kind)??171,N=se(e,y),D=y?M_(y):0;let M=D&256;M|=D&1?1:D&4?4:0,y&&uf(y)&&(M|=512);const V=ne(),G=x.getWidenedType(x.getTypeOfSymbolAtLocation(e,t)),Z=!!(e.flags&16777216),z=!!(t.flags&33554432)||g,ce=Bp(r,s);switch(C){case 171:case 172:const pe=ce===0?268435456:void 0;let we=x.typeToTypeNode(G,t,pe,D3(i));if(o){const ie=TC(we,T);ie&&(we=ie.typeNode,A3(o,ie.symbols))}c(L.createPropertyDeclaration(V,y?ve(N):e.getName(),Z&&f&2?L.createToken(58):void 0,we,void 0));break;case 177:case 178:{w.assertIsDefined(d);let ie=x.typeToTypeNode(G,t,void 0,D3(i));const ye=dx(d,y),Ne=ye.secondAccessor?[ye.firstAccessor,ye.secondAccessor]:[ye.firstAccessor];if(o){const Ue=TC(ie,T);Ue&&(ie=Ue.typeNode,A3(o,Ue.symbols))}for(const Ue of Ne)if(Op(Ue))c(L.createGetAccessorDeclaration(V,ve(N),Ke,X(ie),Q(u,ce,z)));else{w.assertNode(Ue,$f,"The counterpart to a getter should be a setter");const Se=zP(Ue),Ee=Se&&Je(Se.name)?kr(Se.name):void 0;c(L.createSetAccessorDeclaration(V,ve(N),dme(1,[Ee],[X(ie)],1,!1),Q(u,ce,z)))}break}case 173:case 174:w.assertIsDefined(d);const fe=G.isUnion()?Ys(G.types,ie=>ie.getCallSignatures()):G.getCallSignatures();if(!Pe(fe))break;if(d.length===1){w.assert(fe.length===1,"One declaration implies one signature");const ie=fe[0];J(ce,ie,V,ve(N),Q(u,ce,z));break}for(const ie of fe)J(ce,ie,V,ve(N));if(!z)if(d.length>fe.length){const ie=x.getSignatureFromDeclaration(d[d.length-1]);J(ce,ie,V,ve(N),Q(u,ce))}else w.assert(d.length===fe.length,"Declarations and signatures should match count"),c(bnt(x,i,t,fe,ve(N),Z&&!!(f&1),V,ce,u));break}function J(pe,we,fe,ie,ye){const Ne=oK(174,i,pe,we,ye,ie,fe,Z&&!!(f&1),t,o);Ne&&c(Ne)}function ne(){let pe;return M&&(pe=Gd(pe,L.createModifiersFromModifierFlags(M))),ge()&&(pe=gn(pe,L.createToken(164))),pe&&L.createNodeArray(pe)}function ge(){return!!(i.program.getCompilerOptions().noImplicitOverride&&y&&Eb(y))}function ve(pe){return Je(pe)&&pe.escapedText==="constructor"?L.createComputedPropertyName(L.createStringLiteral(kr(pe),ce===0)):Sc(pe,!1)}function Q(pe,we,fe){return fe?void 0:Sc(pe,!1)||mme(we)}function X(pe){return Sc(pe,!1)}function se(pe,we){if(Uc(pe)&262144){const fe=pe.links.nameType;if(fe&&Od(fe))return L.createIdentifier(Hi(Fd(fe)))}return Sc(Ms(we),!1)}}function oK(e,t,r,i,s,o,c,u,f,g){const d=t.program,y=d.getTypeChecker(),x=go(d.getCompilerOptions()),T=lr(f),C=524545|(r===0?268435456:0),N=y.signatureToSignatureDeclaration(i,e,f,C,D3(t));if(!N)return;let D=T?void 0:N.typeParameters,M=N.parameters,V=T?void 0:N.type;if(g){if(D){const ce=Dc(D,J=>{let ne=J.constraint,ge=J.default;if(ne){const ve=TC(ne,x);ve&&(ne=ve.typeNode,A3(g,ve.symbols))}if(ge){const ve=TC(ge,x);ve&&(ge=ve.typeNode,A3(g,ve.symbols))}return L.updateTypeParameterDeclaration(J,J.modifiers,J.name,ne,ge)});D!==ce&&(D=ut(L.createNodeArray(ce,D.hasTrailingComma),D))}const z=Dc(M,ce=>{let J=T?void 0:ce.type;if(J){const ne=TC(J,x);ne&&(J=ne.typeNode,A3(g,ne.symbols))}return L.updateParameterDeclaration(ce,ce.modifiers,ce.dotDotDotToken,ce.name,T?void 0:ce.questionToken,J,ce.initializer)});if(M!==z&&(M=ut(L.createNodeArray(z,M.hasTrailingComma),M)),V){const ce=TC(V,x);ce&&(V=ce.typeNode,A3(g,ce.symbols))}}const G=u?L.createToken(58):void 0,Z=N.asteriskToken;if(Xo(N))return L.updateFunctionExpression(N,c,N.asteriskToken,si(o,Je),D,M,V,s??N.body);if(ec(N))return L.updateArrowFunction(N,c,D,M,V,N.equalsGreaterThanToken,s??N.body);if(ul(N))return L.updateMethodDeclaration(N,c,Z,o??L.createIdentifier(""),G,D,M,V,s);if(Wl(N))return L.updateFunctionDeclaration(N,c,N.asteriskToken,si(o,Je),D,M,V,s??N.body)}function pme(e,t,r,i,s,o,c){const u=Bp(t.sourceFile,t.preferences),f=go(t.program.getCompilerOptions()),g=D3(t),d=t.program.getTypeChecker(),y=lr(c),{typeArguments:x,arguments:T,parent:C}=i,N=y?void 0:d.getContextualType(i),D=Kt(T,ge=>Je(ge)?ge.text:Jr(ge)&&Je(ge.name)?ge.name.text:void 0),M=y?[]:Kt(T,ge=>d.getTypeAtLocation(ge)),{argumentTypeNodes:V,argumentTypeParameters:G}=y8e(d,r,M,c,f,1,g),Z=o?L.createNodeArray(L.createModifiersFromModifierFlags(o)):void 0,z=KL(C)?L.createToken(42):void 0,ce=y?void 0:ynt(d,G,x),J=dme(T.length,D,V,void 0,y),ne=y||N===void 0?void 0:d.typeToTypeNode(N,c,void 0,g);switch(e){case 174:return L.createMethodDeclaration(Z,z,s,void 0,ce,J,ne,mme(u));case 173:return L.createMethodSignature(Z,s,void 0,ce,J,ne===void 0?L.createKeywordTypeNode(159):ne);case 262:return w.assert(typeof s=="string"||Je(s),"Unexpected name"),L.createFunctionDeclaration(Z,z,s,ce,J,ne,SB(p.Function_not_implemented.message,u));default:w.fail("Unexpected kind")}}function ynt(e,t,r){const i=new Set(t.map(o=>o[0])),s=new Map(t);if(r){const o=r.filter(u=>!t.some(f=>{var g;return e.getTypeAtLocation(u)===((g=f[1])==null?void 0:g.argumentType)})),c=i.size+o.length;for(let u=0;i.size{var c;return L.createTypeParameterDeclaration(void 0,o,(c=s.get(o))==null?void 0:c.constraint)})}function g8e(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function cK(e,t,r,i,s,o,c){let u=e.typeToTypeNode(r,i,o,c);if(u&&zh(u)){const f=TC(u,s);f&&(A3(t,f.symbols),u=f.typeNode)}return Sc(u)}function h8e(e){return e.isUnionOrIntersection()?e.types.some(h8e):e.flags&262144}function y8e(e,t,r,i,s,o,c){const u=[],f=new Map;for(let g=0;g=i?L.createToken(58):void 0,s?void 0:(r==null?void 0:r[u])||L.createKeywordTypeNode(159),void 0);o.push(d)}return o}function bnt(e,t,r,i,s,o,c,u,f){let g=i[0],d=i[0].minArgumentCount,y=!1;for(const N of i)d=Math.min(N.minArgumentCount,d),v_(N)&&(y=!0),N.parameters.length>=g.parameters.length&&(!v_(N)||v_(g))&&(g=N);const x=g.parameters.length-(v_(g)?1:0),T=g.parameters.map(N=>N.name),C=dme(x,T,void 0,d,!1);if(y){const N=L.createParameterDeclaration(void 0,L.createToken(26),T[x]||"rest",x>=d?L.createToken(58):void 0,L.createArrayTypeNode(L.createKeywordTypeNode(159)),void 0);C.push(N)}return xnt(c,s,o,void 0,C,Snt(i,e,t,r),u,f)}function Snt(e,t,r,i){if(Xe(e)){const s=t.getUnionType(Kt(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(s,i,1,D3(r))}}function xnt(e,t,r,i,s,o,c,u){return L.createMethodDeclaration(e,void 0,t,r?L.createToken(58):void 0,i,s,o,u||mme(c))}function mme(e){return SB(p.Method_not_implemented.message,e)}function SB(e,t){return L.createBlock([L.createThrowStatement(L.createNewExpression(L.createIdentifier("Error"),void 0,[L.createStringLiteral(e,t===0)]))],!0)}function gme(e,t,r){const i=PP(t);if(!i)return;const s=yme(i,"compilerOptions");if(s===void 0){e.insertNodeAtObjectStart(t,i,lK("compilerOptions",L.createObjectLiteralExpression(r.map(([c,u])=>lK(c,u)),!0)));return}const o=s.initializer;if(Va(o))for(const[c,u]of r){const f=yme(o,c);f===void 0?e.insertNodeAtObjectStart(t,o,lK(c,u)):e.replaceNode(t,f.initializer,u)}}function hme(e,t,r,i){gme(e,t,[[r,i]])}function lK(e,t){return L.createPropertyAssignment(L.createStringLiteral(e),t)}function yme(e,t){return Cn(e.properties,r=>Ml(r)&&!!r.name&&Ba(r.name)&&r.name.text===t)}function TC(e,t){let r;const i=tt(e,s,Gi);if(r&&i)return{typeNode:i,symbols:r};function s(o){if(b1(o)&&o.qualifier){const c=yp(o.qualifier),u=Pj(c.symbol,t),f=u!==c.text?b8e(o.qualifier,L.createIdentifier(u)):o.qualifier;r=gn(r,c.symbol);const g=Wn(o.typeArguments,s,Gi);return L.createTypeReferenceNode(f,g)}return En(o,s,void 0)}}function b8e(e,t){return e.kind===80?t:L.createQualifiedName(b8e(e.left,t),e.right)}function A3(e,t){t.forEach(r=>e.addImportFromExportedSymbol(r,!0))}function vme(e,t){const r=pl(t);let i=ps(e,t.start);for(;i.end(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(bme||{})}});function S8e(e,t,r,i,s,o){const c=k8e(e,t,r,i);if(!c||yC.isRefactorErrorInfo(c))return;const u=gr.ChangeTracker.fromContext(s),{isStatic:f,isReadonly:g,fieldName:d,accessorName:y,originalName:x,type:T,container:C,declaration:N}=c;Zf(d),Zf(y),Zf(N),Zf(C);let D,M;if(fi(C)){const G=M_(N);if(L_(e)){const Z=L.createModifiersFromModifierFlags(G);D=Z,M=Z}else D=L.createModifiersFromModifierFlags(Ent(G)),M=L.createModifiersFromModifierFlags(Pnt(G));Nx(N)&&(M=zn(_1(N),M))}Int(u,e,N,T,d,M);const V=wnt(d,y,T,D,f,C);if(Zf(V),C8e(u,e,V,N,C),g){const G=Rh(C);G&&Ont(u,e,G,d.text,x)}else{const G=Dnt(d,y,T,D,f,C);Zf(G),C8e(u,e,G,N,C)}return u.getChanges()}function knt(e){return Je(e)||Ba(e)}function Cnt(e){return Uf(e,e.parent)||Zs(e)||Ml(e)}function x8e(e,t){return Je(t)?L.createIdentifier(e):L.createStringLiteral(e)}function T8e(e,t,r){const i=t?r.name:L.createThis();return Je(e)?L.createPropertyAccessExpression(i,e):L.createElementAccessExpression(i,L.createStringLiteralFromNode(e))}function Ent(e){return e&=-9,e&=-3,e&4||(e|=1),e}function Pnt(e){return e&=-2,e&=-5,e|=2,e}function k8e(e,t,r,i,s=!0){const o=ps(e,r),c=r===i&&s,u=Vn(o.parent,Cnt),f=271;if(!u||!(QR(u.name,e,r,i)||c))return{error:zs(p.Could_not_find_property_for_which_to_generate_accessor)};if(!knt(u.name))return{error:zs(p.Name_is_not_valid)};if((M_(u)&98303|f)!==f)return{error:zs(p.Can_only_convert_property_with_modifier)};const g=u.name.text,d=RQ(g),y=x8e(d?g:Ux(`_${g}`,e),u.name),x=x8e(d?Ux(g.substring(1),e):g,u.name);return{isStatic:Fl(u),isReadonly:UP(u),type:Fnt(u,t),container:u.kind===169?u.parent.parent:u.parent,originalName:u.name.text,declaration:u,fieldName:y,accessorName:x,renameAccessor:d}}function wnt(e,t,r,i,s,o){return L.createGetAccessorDeclaration(i,t,[],r,L.createBlock([L.createReturnStatement(T8e(e,s,o))],!0))}function Dnt(e,t,r,i,s,o){return L.createSetAccessorDeclaration(i,t,[L.createParameterDeclaration(void 0,void 0,L.createIdentifier("value"),void 0,r)],L.createBlock([L.createExpressionStatement(L.createAssignment(T8e(e,s,o),L.createIdentifier("value")))],!0))}function Ant(e,t,r,i,s,o){const c=L.updatePropertyDeclaration(r,o,s,r.questionToken||r.exclamationToken,i,r.initializer);e.replaceNode(t,r,c)}function Nnt(e,t,r,i){let s=L.updatePropertyAssignment(r,i,r.initializer);(s.modifiers||s.questionToken||s.exclamationToken)&&(s===r&&(s=L.cloneNode(s)),s.modifiers=void 0,s.questionToken=void 0,s.exclamationToken=void 0),e.replacePropertyAssignment(t,r,s)}function Int(e,t,r,i,s,o){Zs(r)?Ant(e,t,r,i,s,o):Ml(r)?Nnt(e,t,r,s):e.replaceNode(t,r,L.updateParameterDeclaration(r,o,r.dotDotDotToken,pa(s,Je),r.questionToken,r.type,r.initializer))}function C8e(e,t,r,i,s){Uf(i,i.parent)?e.insertMemberAtStart(t,s,r):Ml(i)?e.insertNodeAfterComma(t,i,r):e.insertNodeAfter(t,i,r)}function Ont(e,t,r,i,s){r.body&&r.body.forEachChild(function o(c){uc(c)&&c.expression.kind===110&&Ba(c.argumentExpression)&&c.argumentExpression.text===s&&wk(c)&&e.replaceNode(t,c.argumentExpression,L.createStringLiteral(i)),Jr(c)&&c.expression.kind===110&&c.name.text===s&&wk(c)&&e.replaceNode(t,c.name,L.createIdentifier(i)),!oa(c)&&!fi(c)&&c.forEachChild(o)})}function Fnt(e,t){const r=Qse(e);if(Zs(e)&&r&&e.questionToken){const i=t.getTypeChecker(),s=i.getTypeFromTypeNode(r);if(!i.isTypeAssignableTo(i.getUndefinedType(),s)){const o=A1(r)?r.types:[r];return L.createUnionTypeNode([...o,L.createKeywordTypeNode(157)])}}return r}function Sme(e,t){const r=[];for(;e;){const i=Sb(e),s=i&&t.getSymbolAtLocation(i.expression);if(!s)break;const o=s.flags&2097152?t.getAliasedSymbol(s):s,c=o.declarations&&Cn(o.declarations,fi);if(!c)break;r.push(c),e=c}return r}var Lnt=K({"src/services/codefixes/generateAccessors.ts"(){ci()}});function Mnt(e,t){const r=qn(t),i=o4(t),s=e.program.getCompilerOptions(),o=[];return o.push(E8e(e,r,t,Ny(i.name,void 0,t.moduleSpecifier,Bp(r,e.preferences)))),r_(s)===1&&o.push(E8e(e,r,t,L.createImportEqualsDeclaration(void 0,!1,i.name,L.createExternalModuleReference(t.moduleSpecifier)))),o}function E8e(e,t,r,i){const s=gr.ChangeTracker.with(e,o=>o.replaceNode(t,r,i));return Im(xme,s,[p.Replace_import_with_0,s[0].textChanges[0].newText])}function Rnt(e){const t=e.sourceFile,r=p.This_expression_is_not_callable.code===e.errorCode?213:214,i=Vn(ps(t,e.span.start),o=>o.kind===r);if(!i)return[];const s=i.expression;return P8e(e,s)}function jnt(e){const t=e.sourceFile,r=Vn(ps(t,e.span.start),i=>i.getStart()===e.span.start&&i.getEnd()===e.span.start+e.span.length);return r?P8e(e,r):[]}function P8e(e,t){const r=e.program.getTypeChecker().getTypeAtLocation(t);if(!(r.symbol&&Vg(r.symbol)&&r.symbol.links.originatingImport))return[];const i=[],s=r.symbol.links.originatingImport;if(gp(s)||Mr(i,Mnt(e,s)),vt(t)&&!(I_(t.parent)&&t.parent.name===t)){const o=e.sourceFile,c=gr.ChangeTracker.with(e,u=>u.replaceNode(o,t,L.createPropertyAccessExpression(t,"default"),{}));i.push(Im(xme,c,p.Use_synthetic_default_member))}return i}var xme,Bnt=K({"src/services/codefixes/fixInvalidImportSyntax.ts"(){ci(),La(),xme="invalidImportSyntax",Oa({errorCodes:[p.This_expression_is_not_callable.code,p.This_expression_is_not_constructable.code],getCodeActions:Rnt}),Oa({errorCodes:[p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,p.Type_0_does_not_satisfy_the_constraint_1.code,p.Type_0_is_not_assignable_to_type_1.code,p.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,p.Type_predicate_0_is_not_assignable_to_1.code,p.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,p._0_index_type_1_is_not_assignable_to_2_index_type_3.code,p.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,p.Property_0_in_type_1_is_not_assignable_to_type_2.code,p.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,p.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:jnt})}});function w8e(e,t){const r=ps(e,t);if(Je(r)&&Zs(r.parent)){const i=zu(r.parent);if(i)return{type:i,prop:r.parent,isJs:lr(r.parent)}}}function Jnt(e,t){if(t.isJs)return;const r=gr.ChangeTracker.with(e,i=>D8e(i,e.sourceFile,t.prop));return ga(uK,r,[p.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],_K,p.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function D8e(e,t,r){Zf(r);const i=L.updatePropertyDeclaration(r,r.modifiers,r.name,L.createToken(54),r.type,r.initializer);e.replaceNode(t,r,i)}function znt(e,t){const r=gr.ChangeTracker.with(e,i=>A8e(i,e.sourceFile,t));return ga(uK,r,[p.Add_undefined_type_to_property_0,t.prop.name.getText()],fK,p.Add_undefined_type_to_all_uninitialized_properties)}function A8e(e,t,r){const i=L.createKeywordTypeNode(157),s=A1(r.type)?r.type.types.concat(i):[r.type,i],o=L.createUnionTypeNode(s);r.isJs?e.addJSDocTags(t,r.prop,[L.createJSDocTypeTag(void 0,L.createJSDocTypeExpression(o))]):e.replaceNode(t,r.type,o)}function Unt(e,t){if(t.isJs)return;const r=e.program.getTypeChecker(),i=I8e(r,t.prop);if(!i)return;const s=gr.ChangeTracker.with(e,o=>N8e(o,e.sourceFile,t.prop,i));return ga(uK,s,[p.Add_initializer_to_property_0,t.prop.name.getText()],pK,p.Add_initializers_to_all_uninitialized_properties)}function N8e(e,t,r,i){Zf(r);const s=L.updatePropertyDeclaration(r,r.modifiers,r.name,r.questionToken,r.type,i);e.replaceNode(t,r,s)}function I8e(e,t){return O8e(e,e.getTypeFromTypeNode(t.type))}function O8e(e,t){if(t.flags&512)return t===e.getFalseType()||t===e.getFalseType(!0)?L.createFalse():L.createTrue();if(t.isStringLiteral())return L.createStringLiteral(t.value);if(t.isNumberLiteral())return L.createNumericLiteral(t.value);if(t.flags&2048)return L.createBigIntLiteral(t.value);if(t.isUnion())return li(t.types,r=>O8e(e,r));if(t.isClass()){const r=v0(t.symbol);if(!r||Kr(r,64))return;const i=Rh(r);return i&&i.parameters.length?void 0:L.createNewExpression(L.createIdentifier(t.symbol.name),void 0,void 0)}else if(e.isArrayLikeType(t))return L.createArrayLiteralExpression()}var uK,_K,fK,pK,Tme,Vnt=K({"src/services/codefixes/fixStrictClassInitialization.ts"(){ci(),La(),uK="strictClassInitialization",_K="addMissingPropertyDefiniteAssignmentAssertions",fK="addMissingPropertyUndefinedType",pK="addMissingPropertyInitializer",Tme=[p.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code],Oa({errorCodes:Tme,getCodeActions:function(t){const r=w8e(t.sourceFile,t.span.start);if(!r)return;const i=[];return gn(i,znt(t,r)),gn(i,Jnt(t,r)),gn(i,Unt(t,r)),i},fixIds:[_K,fK,pK],getAllCodeActions:e=>No(e,Tme,(t,r)=>{const i=w8e(r.file,r.start);if(i)switch(e.fixId){case _K:D8e(t,r.file,i.prop);break;case fK:A8e(t,r.file,i);break;case pK:const s=e.program.getTypeChecker(),o=I8e(s,i.prop);if(!o)return;N8e(t,r.file,i.prop,o);break;default:w.fail(JSON.stringify(e.fixId))}})})}});function F8e(e,t,r){const{allowSyntheticDefaults:i,defaultImportName:s,namedImports:o,statement:c,required:u}=r;e.replaceNode(t,c,s&&!i?L.createImportEqualsDeclaration(void 0,!1,s,L.createExternalModuleReference(u)):L.createImportDeclaration(void 0,L.createImportClause(!1,s,o),u,void 0))}function L8e(e,t,r){const{parent:i}=ps(e,r);Q_(i,!0)||w.failBadSyntaxKind(i);const s=pa(i.parent,Ji),o=si(s.name,Je),c=Md(s.name)?Wnt(s.name):void 0;if(o||c)return{allowSyntheticDefaults:hx(t.getCompilerOptions()),defaultImportName:o,namedImports:c,statement:pa(s.parent.parent,Xc),required:Ka(i.arguments)}}function Wnt(e){const t=[];for(const r of e.elements){if(!Je(r.name)||r.initializer)return;t.push(L.createImportSpecifier(!1,si(r.propertyName,Je),r.name))}if(t.length)return L.createNamedImports(t)}var dK,kme,qnt=K({"src/services/codefixes/requireInTs.ts"(){ci(),La(),dK="requireInTs",kme=[p.require_call_may_be_converted_to_an_import.code],Oa({errorCodes:kme,getCodeActions(e){const t=L8e(e.sourceFile,e.program,e.span.start);if(!t)return;const r=gr.ChangeTracker.with(e,i=>F8e(i,e.sourceFile,t));return[ga(dK,r,p.Convert_require_to_import,dK,p.Convert_all_require_to_import)]},fixIds:[dK],getAllCodeActions:e=>No(e,kme,(t,r)=>{const i=L8e(r.file,e.program,r.start);i&&F8e(t,e.sourceFile,i)})})}});function M8e(e,t){const r=ps(e,t);if(!Je(r))return;const{parent:i}=r;if(Tu(i)&&Kg(i.moduleReference))return{importNode:i,name:r,moduleSpecifier:i.moduleReference.expression};if(F1(i)){const s=i.parent.parent;return{importNode:s,name:r,moduleSpecifier:s.moduleSpecifier}}}function R8e(e,t,r,i){e.replaceNode(t,r.importNode,Ny(r.name,void 0,r.moduleSpecifier,Bp(t,i)))}var mK,Cme,Hnt=K({"src/services/codefixes/useDefaultImport.ts"(){ci(),La(),mK="useDefaultImport",Cme=[p.Import_may_be_converted_to_a_default_import.code],Oa({errorCodes:Cme,getCodeActions(e){const{sourceFile:t,span:{start:r}}=e,i=M8e(t,r);if(!i)return;const s=gr.ChangeTracker.with(e,o=>R8e(o,t,i,e.preferences));return[ga(mK,s,p.Convert_to_default_import,mK,p.Convert_all_to_default_imports)]},fixIds:[mK],getAllCodeActions:e=>No(e,Cme,(t,r)=>{const i=M8e(r.file,r.start);i&&R8e(t,r.file,i,e.preferences)})})}});function j8e(e,t,r){const i=si(ps(t,r.start),Hf);if(!i)return;const s=i.getText(t)+"n";e.replaceNode(t,i,L.createBigIntLiteral(s))}var gK,Eme,Gnt=K({"src/services/codefixes/useBigintLiteral.ts"(){ci(),La(),gK="useBigintLiteral",Eme=[p.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code],Oa({errorCodes:Eme,getCodeActions:function(t){const r=gr.ChangeTracker.with(t,i=>j8e(i,t.sourceFile,t.span));if(r.length>0)return[ga(gK,r,p.Convert_to_a_bigint_numeric_literal,gK,p.Convert_all_to_bigint_numeric_literals)]},fixIds:[gK],getAllCodeActions:e=>No(e,Eme,(t,r)=>j8e(t,r.file,r))})}});function B8e(e,t){const r=ps(e,t);return w.assert(r.kind===102,"This token should be an ImportKeyword"),w.assert(r.parent.kind===205,"Token parent should be an ImportType"),r.parent}function J8e(e,t,r){const i=L.updateImportTypeNode(r,r.argument,r.attributes,r.qualifier,r.typeArguments,!0);e.replaceNode(t,r,i)}var z8e,hK,Pme,$nt=K({"src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts"(){ci(),La(),z8e="fixAddModuleReferTypeMissingTypeof",hK=z8e,Pme=[p.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code],Oa({errorCodes:Pme,getCodeActions:function(t){const{sourceFile:r,span:i}=t,s=B8e(r,i.start),o=gr.ChangeTracker.with(t,c=>J8e(c,r,s));return[ga(hK,o,p.Add_missing_typeof,hK,p.Add_missing_typeof)]},fixIds:[hK],getAllCodeActions:e=>No(e,Pme,(t,r)=>J8e(t,e.sourceFile,B8e(r.file,r.start)))})}});function U8e(e,t){let s=ps(e,t).parent.parent;if(!(!mr(s)&&(s=s.parent,!mr(s)))&&nl(s.operatorToken))return s}function V8e(e,t,r){const i=Xnt(r);i&&e.replaceNode(t,r,L.createJsxFragment(L.createJsxOpeningFragment(),i,L.createJsxJsxClosingFragment()))}function Xnt(e){const t=[];let r=e;for(;;)if(mr(r)&&nl(r.operatorToken)&&r.operatorToken.kind===28){if(t.push(r.left),xA(r.right))return t.push(r.right),t;if(mr(r.right)){r=r.right;continue}else return}else return}var yK,wme,Qnt=K({"src/services/codefixes/wrapJsxInFragment.ts"(){ci(),La(),yK="wrapJsxInFragment",wme=[p.JSX_expressions_must_have_one_parent_element.code],Oa({errorCodes:wme,getCodeActions:function(t){const{sourceFile:r,span:i}=t,s=U8e(r,i.start);if(!s)return;const o=gr.ChangeTracker.with(t,c=>V8e(c,r,s));return[ga(yK,o,p.Wrap_in_JSX_fragment,yK,p.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[yK],getAllCodeActions:e=>No(e,wme,(t,r)=>{const i=U8e(e.sourceFile,r.start);i&&V8e(t,e.sourceFile,i)})})}});function W8e(e,t){const r=ps(e,t),i=si(r.parent.parent,Ib);if(!i)return;const s=J_(i.parent)?i.parent:si(i.parent.parent,im);if(s)return{indexSignature:i,container:s}}function Ynt(e,t){return L.createTypeAliasDeclaration(e.modifiers,e.name,e.typeParameters,t)}function q8e(e,t,{indexSignature:r,container:i}){const o=(J_(i)?i.members:i.type.members).filter(d=>!Ib(d)),c=Ka(r.parameters),u=L.createTypeParameterDeclaration(void 0,pa(c.name,Je),c.type),f=L.createMappedTypeNode(UP(r)?L.createModifier(148):void 0,u,void 0,r.questionToken,r.type,void 0),g=L.createIntersectionTypeNode([...OP(i),f,...o.length?[L.createTypeLiteralNode(o)]:Ke]);e.replaceNode(t,i,Ynt(i,g))}var vK,Dme,Znt=K({"src/services/codefixes/convertToMappedObjectType.ts"(){ci(),La(),vK="fixConvertToMappedObjectType",Dme=[p.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code],Oa({errorCodes:Dme,getCodeActions:function(t){const{sourceFile:r,span:i}=t,s=W8e(r,i.start);if(!s)return;const o=gr.ChangeTracker.with(t,u=>q8e(u,r,s)),c=kr(s.container.name);return[ga(vK,o,[p.Convert_0_to_mapped_object_type,c],vK,[p.Convert_0_to_mapped_object_type,c])]},fixIds:[vK],getAllCodeActions:e=>No(e,Dme,(t,r)=>{const i=W8e(r.file,r.start);i&&q8e(t,r.file,i)})})}}),Ame,H8e,Knt=K({"src/services/codefixes/removeAccidentalCallParentheses.ts"(){ci(),La(),Ame="removeAccidentalCallParentheses",H8e=[p.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],Oa({errorCodes:H8e,getCodeActions(e){const t=Vn(ps(e.sourceFile,e.span.start),ma);if(!t)return;const r=gr.ChangeTracker.with(e,i=>{i.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})});return[Im(Ame,r,p.Remove_parentheses)]},fixIds:[Ame]})}});function G8e(e,t,r){const i=si(ps(t,r.start),u=>u.kind===135),s=i&&si(i.parent,I1);if(!s)return;let o=s;if(df(s.parent)){const u=x4(s.expression,!1);if(Je(u)){const f=Hl(s.parent.pos,t);f&&f.kind!==105&&(o=s.parent)}}e.replaceNode(t,o,s.expression)}var bK,Nme,ert=K({"src/services/codefixes/removeUnnecessaryAwait.ts"(){ci(),La(),bK="removeUnnecessaryAwait",Nme=[p.await_has_no_effect_on_the_type_of_this_expression.code],Oa({errorCodes:Nme,getCodeActions:function(t){const r=gr.ChangeTracker.with(t,i=>G8e(i,t.sourceFile,t.span));if(r.length>0)return[ga(bK,r,p.Remove_unnecessary_await,bK,p.Remove_all_unnecessary_uses_of_await)]},fixIds:[bK],getAllCodeActions:e=>No(e,Nme,(t,r)=>G8e(t,r.file,r))})}});function $8e(e,t){return Vn(ps(e,t.start),eu)}function X8e(e,t,r){if(!t)return;const i=w.checkDefined(t.importClause);e.replaceNode(r.sourceFile,t,L.updateImportDeclaration(t,t.modifiers,L.updateImportClause(i,i.isTypeOnly,i.name,void 0),t.moduleSpecifier,t.attributes)),e.insertNodeAfter(r.sourceFile,t,L.createImportDeclaration(void 0,L.updateImportClause(i,i.isTypeOnly,void 0,i.namedBindings),t.moduleSpecifier,t.attributes))}var Ime,SK,trt=K({"src/services/codefixes/splitTypeOnlyImport.ts"(){ci(),La(),Ime=[p.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],SK="splitTypeOnlyImport",Oa({errorCodes:Ime,fixIds:[SK],getCodeActions:function(t){const r=gr.ChangeTracker.with(t,i=>X8e(i,$8e(t.sourceFile,t.span),t));if(r.length)return[ga(SK,r,p.Split_into_two_separate_import_declarations,SK,p.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>No(e,Ime,(t,r)=>{X8e(t,$8e(e.sourceFile,r),e)})})}});function Q8e(e,t,r){var i;const o=r.getTypeChecker().getSymbolAtLocation(ps(e,t));if(o===void 0)return;const c=si((i=o==null?void 0:o.valueDeclaration)==null?void 0:i.parent,_u);if(c===void 0)return;const u=wo(c,87,e);if(u!==void 0)return{symbol:o,token:u}}function Y8e(e,t,r){e.replaceNode(t,r,L.createToken(121))}var xK,Ome,nrt=K({"src/services/codefixes/convertConstToLet.ts"(){ci(),La(),xK="fixConvertConstToLet",Ome=[p.Cannot_assign_to_0_because_it_is_a_constant.code],Oa({errorCodes:Ome,getCodeActions:function(t){const{sourceFile:r,span:i,program:s}=t,o=Q8e(r,i.start,s);if(o===void 0)return;const c=gr.ChangeTracker.with(t,u=>Y8e(u,r,o.token));return[Ipe(xK,c,p.Convert_const_to_let,xK,p.Convert_all_const_to_let)]},getAllCodeActions:e=>{const{program:t}=e,r=new Map;return E3(gr.ChangeTracker.with(e,i=>{P3(e,Ome,s=>{const o=Q8e(s.file,s.start,t);if(o&&nm(r,Ia(o.symbol)))return Y8e(i,s.file,o.token)})}))},fixIds:[xK]})}});function Z8e(e,t,r){const i=ps(e,t);return i.kind===27&&i.parent&&(Va(i.parent)||B_(i.parent))?{node:i}:void 0}function K8e(e,t,{node:r}){const i=L.createToken(28);e.replaceNode(t,r,i)}var TK,eAe,Fme,rrt=K({"src/services/codefixes/fixExpectedComma.ts"(){ci(),La(),TK="fixExpectedComma",eAe=p._0_expected.code,Fme=[eAe],Oa({errorCodes:Fme,getCodeActions(e){const{sourceFile:t}=e,r=Z8e(t,e.span.start,e.errorCode);if(!r)return;const i=gr.ChangeTracker.with(e,s=>K8e(s,t,r));return[ga(TK,i,[p.Change_0_to_1,";",","],TK,[p.Change_0_to_1,";",","])]},fixIds:[TK],getAllCodeActions:e=>No(e,Fme,(t,r)=>{const i=Z8e(r.file,r.start,r.code);i&&K8e(t,e.sourceFile,i)})})}});function tAe(e,t,r,i,s){const o=ps(t,r.start);if(!Je(o)||!ma(o.parent)||o.parent.expression!==o||o.parent.arguments.length!==0)return;const c=i.getTypeChecker(),u=c.getSymbolAtLocation(o),f=u==null?void 0:u.valueDeclaration;if(!f||!ws(f)||!Fb(f.parent.parent)||s!=null&&s.has(f))return;s==null||s.add(f);const g=irt(f.parent.parent);if(Pe(g)){const d=g[0],y=!A1(d)&&!bx(d)&&bx(L.createUnionTypeNode([d,L.createKeywordTypeNode(116)]).types[0]);y&&e.insertText(t,d.pos,"("),e.insertText(t,d.end,y?") | void":" | void")}else{const d=c.getResolvedSignature(o.parent),y=d==null?void 0:d.parameters[0],x=y&&c.getTypeOfSymbolAtLocation(y,f.parent.parent);lr(f)?(!x||x.flags&3)&&(e.insertText(t,f.parent.parent.end,")"),e.insertText(t,za(t.text,f.parent.parent.pos),"/** @type {Promise} */(")):(!x||x.flags&2)&&e.insertText(t,f.parent.parent.expression.end,"")}}function irt(e){var t;if(lr(e)){if(df(e.parent)){const r=(t=qv(e.parent))==null?void 0:t.typeExpression.type;if(r&&id(r)&&Je(r.typeName)&&kr(r.typeName)==="Promise")return r.typeArguments}}else return e.typeArguments}var nAe,Lme,Mme,srt=K({"src/services/codefixes/fixAddVoidToPromise.ts"(){ci(),La(),nAe="addVoidToPromise",Lme="addVoidToPromise",Mme=[p.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,p.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code],Oa({errorCodes:Mme,fixIds:[Lme],getCodeActions(e){const t=gr.ChangeTracker.with(e,r=>tAe(r,e.sourceFile,e.span,e.program));if(t.length>0)return[ga(nAe,t,p.Add_void_to_Promise_resolved_without_a_value,Lme,p.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(e){return No(e,Mme,(t,r)=>tAe(t,r.file,r,e.program,new Set))}})}}),a_={};Ye(a_,{PreserveOptionalFlags:()=>bme,addNewNodeForMemberSymbol:()=>m8e,codeFixAll:()=>No,createCodeFixAction:()=>ga,createCodeFixActionMaybeFixAll:()=>Ipe,createCodeFixActionWithoutFixAll:()=>Im,createCombinedCodeActions:()=>E3,createFileTextChanges:()=>gPe,createImportAdder:()=>SC,createImportSpecifierResolver:()=>fet,createJsonPropertyAssignment:()=>lK,createMissingMemberNodes:()=>fme,createSignatureDeclarationFromCallExpression:()=>pme,createSignatureDeclarationFromSignature:()=>oK,createStubbedBody:()=>SB,eachDiagnostic:()=>P3,findAncestorMatchingSpan:()=>vme,findJsonProperty:()=>yme,generateAccessorFromProperty:()=>S8e,getAccessorConvertiblePropertyAtPosition:()=>k8e,getAllFixes:()=>zZe,getAllSupers:()=>Sme,getArgumentTypesAndTypeParameters:()=>y8e,getFixes:()=>JZe,getImportCompletionAction:()=>pet,getImportKind:()=>ode,getJSDocTypedefNodes:()=>aet,getNoopSymbolTrackerWithResolver:()=>D3,getPromoteTypeOnlyCompletionAction:()=>det,getSupportedErrorCodes:()=>jZe,importFixName:()=>dde,importSymbols:()=>A3,moduleSpecifierToValidIdentifier:()=>pde,moduleSymbolToValidIdentifier:()=>fde,parameterShouldGetTypeFromJSDoc:()=>MPe,registerCodeFix:()=>Oa,setJsonCompilerOptionValue:()=>hme,setJsonCompilerOptionValues:()=>gme,tryGetAutoImportableReferenceFromTypeNode:()=>TC,typeToAutoImportableTypeNode:()=>cK});var La=K({"src/services/_namespaces/ts.codefix.ts"(){UZe(),VZe(),WZe(),GZe(),ZZe(),nKe(),rKe(),iKe(),sKe(),lKe(),vKe(),SKe(),IKe(),QKe(),YKe(),KKe(),eet(),oet(),cet(),_et(),Let(),jet(),zet(),Uet(),Vet(),Het(),Xet(),Zet(),rtt(),ptt(),mtt(),Stt(),xtt(),ktt(),Ctt(),Ett(),Ptt(),Dtt(),Att(),Ntt(),Itt(),Ott(),Ltt(),jtt(),Utt(),Ytt(),Ktt(),ent(),rnt(),int(),ant(),ont(),mnt(),gnt(),hnt(),Tnt(),Lnt(),Bnt(),Vnt(),qnt(),Hnt(),Gnt(),$nt(),Qnt(),Znt(),Knt(),ert(),trt(),nrt(),rrt(),srt()}});function art(e){return!!(e.kind&1)}function ort(e){return!!(e.kind&2)}function xB(e){return!!(e&&e.kind&4)}function kD(e){return!!(e&&e.kind===32)}function crt(e){return xB(e)||kD(e)||Rme(e)}function lrt(e){return(xB(e)||kD(e))&&!!e.isFromPackageJson}function urt(e){return!!(e.kind&8)}function _rt(e){return!!(e.kind&16)}function rAe(e){return!!(e&&e.kind&64)}function iAe(e){return!!(e&&e.kind&128)}function frt(e){return!!(e&&e.kind&256)}function Rme(e){return!!(e&&e.kind&512)}function sAe(e,t,r,i,s,o,c,u,f){var g,d,y;const x=cc(),T=c||Nk(j_(i.getCompilerOptions()));let C=!1,N=0,D=0,M=0,V=0;const G=f({tryResolve:z,skippedAny:()=>C,resolvedAny:()=>D>0,resolvedBeyondLimit:()=>D>OK}),Z=V?` (${(M/V*100).toFixed(1)}% hit rate)`:"";return(g=t.log)==null||g.call(t,`${e}: resolved ${D} module specifiers, plus ${N} ambient and ${M} from cache${Z}`),(d=t.log)==null||d.call(t,`${e}: response is ${C?"incomplete":"complete"}`),(y=t.log)==null||y.call(t,`${e}: ${cc()-x}`),G;function z(ce,J){if(J){const Q=r.getModuleSpecifierForBestExportInfo(ce,s,u);return Q&&N++,Q||"failed"}const ne=T||o.allowIncompleteCompletions&&D{const C=Oi(f.entries,N=>{var D;if(!N.hasAction||!N.source||!N.data||aAe(N.data))return N;if(!NAe(N.name,d))return;const{origin:M}=w.checkDefined(yAe(N.name,N.data,i,s)),V=y.get(t.path,N.data.exportMapKey),G=V&&T.tryResolve(V,!yu(Nd(M.moduleSymbol.name)));if(G==="skipped")return N;if(!G||G==="failed"){(D=s.log)==null||D.call(s,`Unexpected failure resolving auto import for '${N.name}' from '${N.source}'`);return}const Z={...M,kind:32,moduleSpecifier:G.moduleSpecifier};return N.data=dAe(Z),N.source=Jme(Z),N.sourceDisplay=[Jp(Z.moduleSpecifier)],N});return T.skippedAny()||(f.isIncomplete=void 0),C});return f.entries=x,f.flags=(f.flags||0)|4,f.optionalReplacementSpan=uAe(g),f}function jme(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function oAe(e,t,r,i,s,o){const c=ps(e,t);if(!q6(c)&&!Dm(c))return[];const u=Dm(c)?c:c.parent;if(!Dm(u))return[];const f=u.parent;if(!oa(f))return[];const g=L_(e),d=s.includeCompletionsWithSnippetText||void 0,y=Bc(u.tags,x=>Am(x)&&x.getEnd()<=t);return Oi(f.parameters,x=>{if(!B6(x).length){if(Je(x.name)){const T={tabstop:1},C=x.name.text;let N=YI(C,x.initializer,x.dotDotDotToken,g,!1,!1,r,i,s),D=d?YI(C,x.initializer,x.dotDotDotToken,g,!1,!0,r,i,s,T):void 0;return o&&(N=N.slice(1),D&&(D=D.slice(1))),{name:N,kind:"parameter",sortText:o_.LocationPriority,insertText:d?D:void 0,isSnippet:d}}else if(x.parent.parameters.indexOf(x)===y){const T=`param${y}`,C=cAe(T,x.name,x.initializer,x.dotDotDotToken,g,!1,r,i,s),N=d?cAe(T,x.name,x.initializer,x.dotDotDotToken,g,!0,r,i,s):void 0;let D=C.join(Sy(i)+"* "),M=N==null?void 0:N.join(Sy(i)+"* ");return o&&(D=D.slice(1),M&&(M=M.slice(1))),{name:D,kind:"parameter",sortText:o_.LocationPriority,insertText:d?M:void 0,isSnippet:d}}}})}function cAe(e,t,r,i,s,o,c,u,f){if(!s)return[YI(e,r,i,s,!1,o,c,u,f,{tabstop:1})];return g(e,t,r,i,{tabstop:1});function g(y,x,T,C,N){if(Md(x)&&!C){const M={tabstop:N.tabstop},V=YI(y,T,C,s,!0,o,c,u,f,M);let G=[];for(const Z of x.elements){const z=d(y,Z,M);if(z)G.push(...z);else{G=void 0;break}}if(G)return N.tabstop=M.tabstop,[V,...G]}return[YI(y,T,C,s,!1,o,c,u,f,N)]}function d(y,x,T){if(!x.propertyName&&Je(x.name)||Je(x.name)){const C=x.propertyName?CP(x.propertyName):x.name.text;if(!C)return;const N=`${y}.${C}`;return[YI(N,x.initializer,x.dotDotDotToken,s,!1,o,c,u,f,T)]}else if(x.propertyName){const C=CP(x.propertyName);return C&&g(`${y}.${C}`,x.name,x.initializer,x.dotDotDotToken,T)}}}function YI(e,t,r,i,s,o,c,u,f,g){if(o&&w.assertIsDefined(g),t&&(e=mrt(e,t)),o&&(e=Ab(e)),i){let d="*";if(s)w.assert(!r,"Cannot annotate a rest parameter with type 'Object'."),d="Object";else{if(t){const T=c.getTypeAtLocation(t.parent);if(!(T.flags&16385)){const C=t.getSourceFile(),D=Bp(C,f)===0?268435456:0,M=c.typeToTypeNode(T,Vn(t,oa),D);if(M){const V=o?EK({removeComments:!0,module:u.module,target:u.target}):d2({removeComments:!0,module:u.module,target:u.target});pr(M,1),d=V.printNode(4,M,C)}}}o&&d==="*"&&(d=`\${${g.tabstop++}:${d}}`)}const y=!s&&r?"...":"",x=o?`\${${g.tabstop++}}`:"";return`@param {${y}${d}} ${e} ${x}`}else{const d=o?`\${${g.tabstop++}}`:"";return`@param ${e} ${d}`}}function mrt(e,t){const r=t.getText().trim();return r.includes(` +`)||r.length>80?`[${e}]`:`[${e}=${r}]`}function grt(e){return{name:ba(e),kind:"keyword",kindModifiers:"",sortText:o_.GlobalsOrKeywords}}function hrt(e,t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:e.slice()}}function lAe(e,t,r){return{kind:4,keywordCompletions:vAe(e,t),isNewIdentifierLocation:r}}function yrt(e){switch(e){case 156:return 8;default:w.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function uAe(e){return(e==null?void 0:e.kind)===80?tf(e):void 0}function vrt(e,t,r,i,s,o,c,u,f,g){const{symbols:d,contextToken:y,completionKind:x,isInSnippetScope:T,isNewIdentifierLocation:C,location:N,propertyAccessToConvert:D,keywordFilters:M,symbolToOriginInfoMap:V,recommendedCompletion:G,isJsxInitializer:Z,isTypeOnlyLocation:z,isJsxIdentifierExpected:ce,isRightOfOpenTag:J,isRightOfDotOrQuestionDot:ne,importStatementCompletion:ge,insideJsDocTagTypeExpression:ve,symbolToSortTextMap:Q,hasUnresolvedAutoImports:X}=o;let se=o.literals;const pe=r.getTypeChecker();if(hN(e.scriptKind)===1){const Ue=Srt(N,e);if(Ue)return Ue}const we=Vn(y,R4);if(we&&(Aoe(y)||bb(y,we.expression))){const Ue=Nj(pe,we.parent.clauses);se=se.filter(Se=>!Ue.hasValue(Se)),d.forEach((Se,Ee)=>{if(Se.valueDeclaration&&zb(Se.valueDeclaration)){const Ae=pe.getConstantValue(Se.valueDeclaration);Ae!==void 0&&Ue.hasValue(Ae)&&(V[Ee]={kind:256})}})}const fe=Fo(),ie=_Ae(e,i);if(ie&&!C&&(!d||d.length===0)&&M===0)return;const ye=zme(d,fe,void 0,y,N,f,e,t,r,go(i),s,x,c,i,u,z,D,ce,Z,ge,G,V,Q,ce,J,g);if(M!==0)for(const Ue of vAe(M,!ve&&L_(e)))(z&&lD(cb(Ue.name))||!z&&nit(Ue.name)||!ye.has(Ue.name))&&(ye.add(Ue.name),$s(fe,Ue,TB,!0));for(const Ue of Vrt(y,f))ye.has(Ue.name)||(ye.add(Ue.name),$s(fe,Ue,TB,!0));for(const Ue of se){const Se=Trt(e,c,Ue);ye.add(Se.name),$s(fe,Se,TB,!0)}ie||xrt(e,N.pos,ye,go(i),fe);let Ne;if(c.includeCompletionsWithInsertText&&y&&!J&&!ne&&(Ne=Vn(y,Cw))){const Ue=fAe(Ne,e,c,i,t,r,u);Ue&&fe.push(Ue.entry)}return{flags:o.flags,isGlobalCompletion:T,isIncomplete:c.allowIncompleteCompletions&&X?!0:void 0,isMemberCompletion:brt(x),isNewIdentifierLocation:C,optionalReplacementSpan:uAe(N),entries:fe}}function _Ae(e,t){return!L_(e)||!!xN(e,t)}function fAe(e,t,r,i,s,o,c){const u=e.clauses,f=o.getTypeChecker(),g=f.getTypeAtLocation(e.parent.expression);if(g&&g.isUnion()&&Pn(g.types,d=>d.isLiteral())){const d=Nj(f,u),y=go(i),x=Bp(t,r),T=a_.createImportAdder(t,o,r,s),C=[];for(const z of g.types)if(z.flags&1024){w.assert(z.symbol,"An enum member type should have a symbol"),w.assert(z.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");const ce=z.symbol.valueDeclaration&&f.getConstantValue(z.symbol.valueDeclaration);if(ce!==void 0){if(d.hasValue(ce))continue;d.addValue(ce)}const J=a_.typeToAutoImportableTypeNode(f,T,z,e,y);if(!J)return;const ne=kK(J,y,x);if(!ne)return;C.push(ne)}else if(!d.hasValue(z.value))switch(typeof z.value){case"object":C.push(z.value.negative?L.createPrefixUnaryExpression(41,L.createBigIntLiteral({negative:!1,base10Value:z.value.base10Value})):L.createBigIntLiteral(z.value));break;case"number":C.push(z.value<0?L.createPrefixUnaryExpression(41,L.createNumericLiteral(-z.value)):L.createNumericLiteral(z.value));break;case"string":C.push(L.createStringLiteral(z.value,x===0));break}if(C.length===0)return;const N=Kt(C,z=>L.createCaseClause(z,[])),D=Iy(s,c==null?void 0:c.options),M=EK({removeComments:!0,module:i.module,target:i.target,newLine:kI(D)}),V=c?z=>M.printAndFormatNode(4,z,t,c):z=>M.printNode(4,z,t),G=Kt(N,(z,ce)=>r.includeCompletionsWithSnippetText?`${V(z)}$${ce+1}`:`${V(z)}`).join(D);return{entry:{name:`${M.printNode(4,N[0],t)} ...`,kind:"",sortText:o_.GlobalsOrKeywords,insertText:G,hasAction:T.hasFixes()||void 0,source:"SwitchCases/",isSnippet:r.includeCompletionsWithSnippetText?!0:void 0},importAdder:T}}}function kK(e,t,r){switch(e.kind){case 183:const i=e.typeName;return CK(i,t,r);case 199:const s=kK(e.objectType,t,r),o=kK(e.indexType,t,r);return s&&o&&L.createElementAccessExpression(s,o);case 201:const c=e.literal;switch(c.kind){case 11:return L.createStringLiteral(c.text,r===0);case 9:return L.createNumericLiteral(c.text,c.numericLiteralFlags)}return;case 196:const u=kK(e.type,t,r);return u&&(Je(u)?u:L.createParenthesizedExpression(u));case 186:return CK(e.exprName,t,r);case 205:w.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function CK(e,t,r){if(Je(e))return e;const i=Hi(e.right.escapedText);return Bq(i,t)?L.createPropertyAccessExpression(CK(e.left,t,r),i):L.createElementAccessExpression(CK(e.left,t,r),L.createStringLiteral(i,r===0))}function brt(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function Srt(e,t){const r=Vn(e,i=>{switch(i.kind){case 287:return!0;case 44:case 32:case 80:case 211:return!1;default:return"quit"}});if(r){const i=!!wo(r,32,t),c=r.parent.openingElement.tagName.getText(t)+(i?"":">"),u=tf(r.tagName),f={name:c,kind:"class",kindModifiers:void 0,sortText:o_.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:u,entries:[f]}}}function xrt(e,t,r,i,s){zY(e).forEach((o,c)=>{if(o===t)return;const u=Hi(c);!r.has(u)&&Np(u,i)&&(r.add(u),$s(s,{name:u,kind:"warning",kindModifiers:"",sortText:o_.JavascriptIdentifiers,isFromUncheckedFile:!0},TB))})}function Bme(e,t,r){return typeof r=="object"?wb(r)+"n":Ls(r)?mD(e,t,r):JSON.stringify(r)}function Trt(e,t,r){return{name:Bme(e,t,r),kind:"string",kindModifiers:"",sortText:o_.LocationPriority}}function krt(e,t,r,i,s,o,c,u,f,g,d,y,x,T,C,N,D,M,V,G,Z,z,ce,J){var ne,ge;let ve,Q,X=aQ(r),se,pe,we=Jme(y),fe,ie,ye;const Ne=f.getTypeChecker(),Ue=y&&_rt(y),Se=y&&ort(y)||d;if(y&&art(y))ve=d?`this${Ue?"?.":""}[${mAe(c,V,g)}]`:`this${Ue?"?.":"."}${g}`;else if((Se||Ue)&&T){ve=Se?d?`[${mAe(c,V,g)}]`:`[${g}]`:g,(Ue||T.questionDotToken)&&(ve=`?.${ve}`);const Ae=wo(T,25,c)||wo(T,29,c);if(!Ae)return;const Le=fs(g,T.name.text)?T.name.end:Ae.end;X=Il(Ae.getStart(c),Le)}if(C&&(ve===void 0&&(ve=g),ve=`{${ve}}`,typeof C!="boolean"&&(X=tf(C,c))),y&&urt(y)&&T){ve===void 0&&(ve=g);const Ae=Hl(T.pos,c);let Le="";Ae&&Sj(Ae.end,Ae.parent,c)&&(Le=";"),Le+=`(await ${T.expression.getText()})`,ve=d?`${Le}${ve}`:`${Le}${Ue?"?.":"."}${ve}`;const xe=si(T.parent,I1)?T.parent:T.expression;X=Il(xe.getStart(c),T.end)}if(kD(y)&&(fe=[Jp(y.moduleSpecifier)],N&&({insertText:ve,replacementSpan:X}=Nrt(g,N,y,D,c,M,V),pe=V.includeCompletionsWithSnippetText?!0:void 0)),(y==null?void 0:y.kind)===64&&(ie=!0),G===0&&i&&((ne=Hl(i.pos,c,i))==null?void 0:ne.kind)!==28&&(ul(i.parent.parent)||Op(i.parent.parent)||$f(i.parent.parent)||Ey(i.parent)||((ge=Vn(i.parent,Ml))==null?void 0:ge.getLastToken(c))===i||Af(i.parent)&&Ao(c,i.getEnd()).line!==Ao(c,o).line)&&(we="ObjectLiteralMemberWithComma/",ie=!0),V.includeCompletionsWithClassMemberSnippets&&V.includeCompletionsWithInsertText&&G===3&&Crt(e,s,c)){let Ae;const Le=pAe(u,f,M,V,g,e,s,o,i,Z);if(Le)({insertText:ve,filterText:Q,isSnippet:pe,importAdder:Ae}=Le),Ae!=null&&Ae.hasFixes()&&(ie=!0,we="ClassMemberSnippet/");else return}if(y&&iAe(y)&&({insertText:ve,isSnippet:pe,labelDetails:ye}=y,V.useLabelDetailsInCompletionEntries||(g=g+ye.detail,ye=void 0),we="ObjectLiteralMethodSnippet/",t=o_.SortBelow(t)),z&&!ce&&V.includeCompletionsWithSnippetText&&V.jsxAttributeCompletionStyle&&V.jsxAttributeCompletionStyle!=="none"&&!(_g(s.parent)&&s.parent.initializer)){let Ae=V.jsxAttributeCompletionStyle==="braces";const Le=Ne.getTypeOfSymbolAtLocation(e,s);V.jsxAttributeCompletionStyle==="auto"&&!(Le.flags&528)&&!(Le.flags&1048576&&Cn(Le.types,Tt=>!!(Tt.flags&528)))&&(Le.flags&402653316||Le.flags&1048576&&Pn(Le.types,Tt=>!!(Tt.flags&402686084||A_e(Tt)))?(ve=`${Ab(g)}=${mD(c,V,"$1")}`,pe=!0):Ae=!0),Ae&&(ve=`${Ab(g)}={$1}`,pe=!0)}if(ve!==void 0&&!V.includeCompletionsWithInsertText)return;(xB(y)||kD(y))&&(se=dAe(y),ie=!N);const Ee=Vn(s,L9);if((Ee==null?void 0:Ee.kind)===275){const Ae=cb(g);Ee&&Ae&&(Ae===135||XW(Ae))&&(ve=`${g} as ${g}_`)}return{name:g,kind:Ly.getSymbolKind(Ne,e,s),kindModifiers:Ly.getSymbolModifiers(Ne,e),sortText:t,source:we,hasAction:ie?!0:void 0,isRecommended:Irt(e,x,Ne)||void 0,insertText:ve,filterText:Q,replacementSpan:X,sourceDisplay:fe,labelDetails:ye,isSnippet:pe,isPackageJsonImport:lrt(y)||void 0,isImportStatementCompletion:!!N||void 0,data:se,...J?{symbol:e}:void 0}}function Crt(e,t,r){return lr(t)?!1:!!(e.flags&106500)&&(fi(t)||t.parent&&t.parent.parent&&vu(t.parent)&&t===t.parent.name&&t.parent.getLastToken(r)===t.parent.name&&fi(t.parent.parent)||t.parent&&z4(t)&&fi(t.parent))}function pAe(e,t,r,i,s,o,c,u,f,g){const d=Vn(c,fi);if(!d)return;let y,x=s;const T=s,C=t.getTypeChecker(),N=c.getSourceFile(),D=EK({removeComments:!0,module:r.module,target:r.target,omitTrailingSemicolon:!1,newLine:kI(Iy(e,g==null?void 0:g.options))}),M=a_.createImportAdder(N,t,i,e);let V;if(i.includeCompletionsWithSnippetText){y=!0;const ge=L.createEmptyStatement();V=L.createBlock([ge],!0),dH(ge,{kind:0,order:0})}else V=L.createBlock([],!0);let G=0;const{modifiers:Z,range:z,decorators:ce}=Ert(f,N,u),J=Z&64&&d.modifierFlagsCache&64;let ne=[];if(a_.addNewNodeForMemberSymbol(o,d,N,{program:t,host:e},i,M,ge=>{let ve=0;J&&(ve|=64),vu(ge)&&C.getMemberOverrideModifierStatus(d,ge,o)===1&&(ve|=16),ne.length||(G=ge.modifierFlagsCache|ve),ge=L.replaceModifiers(ge,G),ne.push(ge)},V,a_.PreserveOptionalFlags.Property,!!J),ne.length){const ge=o.flags&8192;let ve=G|16|1;ge?ve|=1024:ve|=136;const Q=Z&ve;if(Z&~ve)return;if(G&4&&Q&1&&(G&=-5),Q!==0&&!(Q&1)&&(G&=-2),G|=Q,ne=ne.map(se=>L.replaceModifiers(se,G)),ce!=null&&ce.length){const se=ne[ne.length-1];Nx(se)&&(ne[ne.length-1]=L.replaceDecoratorsAndModifiers(se,ce.concat(lb(se)||[])))}const X=131073;g?x=D.printAndFormatSnippetList(X,L.createNodeArray(ne),N,g):x=D.printSnippetList(X,L.createNodeArray(ne),N)}return{insertText:x,filterText:T,isSnippet:y,importAdder:M,eraseRange:z}}function Ert(e,t,r){if(!e||Ao(t,r).line>Ao(t,e.getEnd()).line)return{modifiers:0};let i=0,s,o;const c={pos:r,end:r};if(Zs(e.parent)&&e.parent.modifiers&&(i|=sg(e.parent.modifiers)&98303,s=e.parent.modifiers.filter(Vu)||[],c.pos=Math.min(c.pos,e.parent.modifiers.pos)),o=Prt(e)){const u=Pk(o);i&u||(i|=u,c.pos=Math.min(c.pos,e.pos))}return{modifiers:i,decorators:s,range:c.pos!==r?c:void 0}}function Prt(e){if(Fa(e))return e.kind;if(Je(e)){const t=Wv(e);if(t&&dy(t))return t}}function wrt(e,t,r,i,s,o,c,u){const f=c.includeCompletionsWithSnippetText||void 0;let g=t;const d=r.getSourceFile(),y=Drt(e,r,d,i,s,c);if(!y)return;const x=EK({removeComments:!0,module:o.module,target:o.target,omitTrailingSemicolon:!1,newLine:kI(Iy(s,u==null?void 0:u.options))});u?g=x.printAndFormatSnippetList(80,L.createNodeArray([y],!0),d,u):g=x.printSnippetList(80,L.createNodeArray([y],!0),d);const T=d2({removeComments:!0,module:o.module,target:o.target,omitTrailingSemicolon:!0}),C=L.createMethodSignature(void 0,"",y.questionToken,y.typeParameters,y.parameters,y.type),N={detail:T.printNode(4,C,d)};return{isSnippet:f,insertText:g,labelDetails:N}}function Drt(e,t,r,i,s,o){const c=e.getDeclarations();if(!(c&&c.length))return;const u=i.getTypeChecker(),f=c[0],g=Sc(Ms(f),!1),d=u.getWidenedType(u.getTypeOfSymbolAtLocation(e,t)),x=33554432|(Bp(r,o)===0?268435456:0);switch(f.kind){case 171:case 172:case 173:case 174:{let T=d.flags&1048576&&d.types.length<10?u.getUnionType(d.types,2):d;if(T.flags&1048576){const V=vr(T.types,G=>u.getSignaturesOfType(G,0).length>0);if(V.length===1)T=V[0];else return}if(u.getSignaturesOfType(T,0).length!==1)return;const N=u.typeToTypeNode(T,t,x,a_.getNoopSymbolTrackerWithResolver({program:i,host:s}));if(!N||!Qg(N))return;let D;if(o.includeCompletionsWithSnippetText){const V=L.createEmptyStatement();D=L.createBlock([V],!0),dH(V,{kind:0,order:0})}else D=L.createBlock([],!0);const M=N.parameters.map(V=>L.createParameterDeclaration(void 0,V.dotDotDotToken,V.name,void 0,void 0,V.initializer));return L.createMethodDeclaration(void 0,void 0,g,void 0,void 0,M,void 0,D)}default:return}}function EK(e){let t;const r=gr.createWriter(Sy(e)),i=d2(e,r),s={...r,write:x=>o(x,()=>r.write(x)),nonEscapingWrite:r.write,writeLiteral:x=>o(x,()=>r.writeLiteral(x)),writeStringLiteral:x=>o(x,()=>r.writeStringLiteral(x)),writeSymbol:(x,T)=>o(x,()=>r.writeSymbol(x,T)),writeParameter:x=>o(x,()=>r.writeParameter(x)),writeComment:x=>o(x,()=>r.writeComment(x)),writeProperty:x=>o(x,()=>r.writeProperty(x))};return{printSnippetList:c,printAndFormatSnippetList:f,printNode:g,printAndFormatNode:y};function o(x,T){const C=Ab(x);if(C!==x){const N=r.getTextPos();T();const D=r.getTextPos();t=gn(t||(t=[]),{newText:C,span:{start:N,length:D-N}})}else T()}function c(x,T,C){const N=u(x,T,C);return t?gr.applyChanges(N,t):N}function u(x,T,C){return t=void 0,s.clear(),i.writeList(x,T,C,s),s.getText()}function f(x,T,C,N){const D={text:u(x,T,C),getLineAndCharacterOfPosition(Z){return Ao(this,Z)}},M=Aj(N,C),V=Ys(T,Z=>{const z=gr.assignPositionsToNode(Z);return nu.formatNodeGivenIndentation(z,D,C.languageVariant,0,0,{...N,options:M})}),G=t?sy(zn(V,t),(Z,z)=>IO(Z.span,z.span)):V;return gr.applyChanges(D.text,G)}function g(x,T,C){const N=d(x,T,C);return t?gr.applyChanges(N,t):N}function d(x,T,C){return t=void 0,s.clear(),i.writeNode(x,T,C,s),s.getText()}function y(x,T,C,N){const D={text:d(x,T,C),getLineAndCharacterOfPosition(z){return Ao(this,z)}},M=Aj(N,C),V=gr.assignPositionsToNode(T),G=nu.formatNodeGivenIndentation(V,D,C.languageVariant,0,0,{...N,options:M}),Z=t?sy(zn(G,t),(z,ce)=>IO(z.span,ce.span)):G;return gr.applyChanges(D.text,Z)}}function dAe(e){const t=e.fileName?void 0:Nd(e.moduleSymbol.name),r=e.isFromPackageJson?!0:void 0;return kD(e)?{exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,ambientModuleName:t,fileName:e.fileName,isPackageJsonImport:r}:{exportName:e.exportName,exportMapKey:e.exportMapKey,fileName:e.fileName,ambientModuleName:e.fileName?void 0:Nd(e.moduleSymbol.name),isPackageJsonImport:e.isFromPackageJson?!0:void 0}}function Art(e,t,r){const i=e.exportName==="default",s=!!e.isPackageJsonImport;return aAe(e)?{kind:32,exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:i,isFromPackageJson:s}:{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:i,isFromPackageJson:s}}function Nrt(e,t,r,i,s,o,c){const u=t.replacementSpan,f=Ab(mD(s,c,r.moduleSpecifier)),g=r.isDefaultExport?1:r.exportName==="export="?2:0,d=c.includeCompletionsWithSnippetText?"$1":"",y=a_.getImportKind(s,g,o,!0),x=t.couldBeTypeOnlyImportSpecifier,T=t.isTopLevelTypeOnly?` ${ba(156)} `:" ",C=x?`${ba(156)} `:"",N=i?";":"";switch(y){case 3:return{replacementSpan:u,insertText:`import${T}${Ab(e)}${d} = require(${f})${N}`};case 1:return{replacementSpan:u,insertText:`import${T}${Ab(e)}${d} from ${f}${N}`};case 2:return{replacementSpan:u,insertText:`import${T}* as ${Ab(e)} from ${f}${N}`};case 0:return{replacementSpan:u,insertText:`import${T}{ ${C}${Ab(e)}${d} } from ${f}${N}`}}}function mAe(e,t,r){return/^\d+$/.test(r)?r:mD(e,t,r)}function Irt(e,t,r){return e===t||!!(e.flags&1048576)&&r.getExportSymbolOfSymbol(e)===t}function Jme(e){if(xB(e))return Nd(e.moduleSymbol.name);if(kD(e))return e.moduleSpecifier;if((e==null?void 0:e.kind)===1)return"ThisProperty/";if((e==null?void 0:e.kind)===64)return"TypeOnlyAlias/"}function zme(e,t,r,i,s,o,c,u,f,g,d,y,x,T,C,N,D,M,V,G,Z,z,ce,J,ne,ge=!1){const ve=cc(),Q=Krt(i,s),X=SI(c),se=f.getTypeChecker(),pe=new Map;for(let ie=0;ieze.getSourceFile()===s.getSourceFile()));pe.set(Se,xe),$s(t,Tt,TB,!0)}return d("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(cc()-ve)),{has:ie=>pe.has(ie),add:ie=>pe.set(ie,!0)};function we(ie,ye){var Ne;let Ue=ie.flags;if(!es(s)){if(Qc(s.parent))return!0;if(si(Q,Ji)&&ie.valueDeclaration===Q)return!1;const Se=ie.valueDeclaration??((Ne=ie.declarations)==null?void 0:Ne[0]);if(Q&&Se&&(Ic(Q)&&Ic(Se)||ws(Q)&&ws(Se))){const Ae=Se.pos,Le=ws(Q)?Q.parent.parameters:vx(Q.parent)?void 0:Q.parent.typeParameters;if(Ae>=Q.pos&&Le&&AeBme(r,c,G)===s.name);return V!==void 0?{type:"literal",literal:V}:li(g,(G,Z)=>{const z=T[Z],ce=wK(G,go(u),z,x,f.isJsxIdentifierExpected);return ce&&ce.name===s.name&&(s.source==="ClassMemberSnippet/"&&G.flags&106500||s.source==="ObjectLiteralMethodSnippet/"&&G.flags&8196||Jme(z)===s.source||s.source==="ObjectLiteralMemberWithComma/")?{type:"symbol",symbol:G,location:y,origin:z,contextToken:C,previousToken:N,isJsxInitializer:D,isTypeOnlyLocation:M}:void 0})||{type:"none"}}function Lrt(e,t,r,i,s,o,c,u,f){const g=e.getTypeChecker(),d=e.getCompilerOptions(),{name:y,source:x,data:T}=s,{previousToken:C,contextToken:N}=PK(i,r);if(pC(r,i,C))return LK.getStringLiteralCompletionDetails(y,r,i,C,e,o,f,u);const D=gAe(e,t,r,i,s,o,u);switch(D.type){case"request":{const{request:M}=D;switch(M.kind){case 1:return S2.getJSDocTagNameCompletionDetails(y);case 2:return S2.getJSDocTagCompletionDetails(y);case 3:return S2.getJSDocParameterNameCompletionDetails(y);case 4:return Pe(M.keywordCompletions,V=>V.name===y)?Ume(y,"keyword",5):void 0;default:return w.assertNever(M)}}case"symbol":{const{symbol:M,location:V,contextToken:G,origin:Z,previousToken:z}=D,{codeActions:ce,sourceDisplay:J}=Mrt(y,V,G,Z,M,e,o,d,r,i,z,c,u,T,x,f),ne=Rme(Z)?Z.symbolName:M.name;return Vme(M,ne,g,r,V,f,ce,J)}case"literal":{const{literal:M}=D;return Ume(Bme(r,u,M),"string",typeof M=="string"?8:7)}case"cases":{const M=fAe(N.parent,r,u,e.getCompilerOptions(),o,e,void 0);if(M!=null&&M.importAdder.hasFixes()){const{entry:V,importAdder:G}=M,Z=gr.ChangeTracker.with({host:o,formatContext:c,preferences:u},G.writeFixes);return{name:V.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:Z,description:Vx([p.Includes_imports_of_types_referenced_by_0,y])}]}}return{name:y,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return Yme().some(M=>M.name===y)?Ume(y,"keyword",5):void 0;default:w.assertNever(D)}}function Ume(e,t,r){return kB(e,"",t,[Nf(e,r)])}function Vme(e,t,r,i,s,o,c,u){const{displayParts:f,documentation:g,symbolKind:d,tags:y}=r.runWithCancellationToken(o,x=>Ly.getSymbolDisplayPartsDocumentationAndSymbolKind(x,e,i,s,s,7));return kB(t,Ly.getSymbolModifiers(r,e),d,f,g,y,c,u)}function kB(e,t,r,i,s,o,c,u){return{name:e,kindModifiers:t,kind:r,displayParts:i,documentation:s,tags:o,codeActions:c,source:u,sourceDisplay:u}}function Mrt(e,t,r,i,s,o,c,u,f,g,d,y,x,T,C,N){if(T!=null&&T.moduleSpecifier&&d&&EAe(r||d,f).replacementSpan)return{codeActions:void 0,sourceDisplay:[Jp(T.moduleSpecifier)]};if(C==="ClassMemberSnippet/"){const{importAdder:ce,eraseRange:J}=pAe(c,o,u,x,e,s,t,g,r,y);if(ce||J)return{sourceDisplay:void 0,codeActions:[{changes:gr.ChangeTracker.with({host:c,formatContext:y,preferences:x},ge=>{ce&&ce.writeFixes(ge),J&&ge.deleteRange(f,J)}),description:Vx([p.Includes_imports_of_types_referenced_by_0,e])}]}}if(rAe(i)){const ce=a_.getPromoteTypeOnlyCompletionAction(f,i.declaration.name,o,c,y,x);return w.assertIsDefined(ce,"Expected to have a code action for promoting type-only alias"),{codeActions:[ce],sourceDisplay:void 0}}if(C==="ObjectLiteralMemberWithComma/"&&r){const ce=gr.ChangeTracker.with({host:c,formatContext:y,preferences:x},J=>J.insertText(f,r.end,","));if(ce)return{sourceDisplay:void 0,codeActions:[{changes:ce,description:Vx([p.Add_missing_comma_for_object_member_completion_0,e])}]}}if(!i||!(xB(i)||kD(i)))return{codeActions:void 0,sourceDisplay:void 0};const D=i.isFromPackageJson?c.getPackageJsonAutoImportProvider().getTypeChecker():o.getTypeChecker(),{moduleSymbol:M}=i,V=D.getMergedSymbol(Uu(s.exportSymbol||s,D)),G=(r==null?void 0:r.kind)===30&&F_(r.parent),{moduleSpecifier:Z,codeAction:z}=a_.getImportCompletionAction(V,M,T==null?void 0:T.exportMapKey,f,e,G,c,o,y,d&&Je(d)?d.getStart(f):g,x,N);return w.assert(!(T!=null&&T.moduleSpecifier)||Z===T.moduleSpecifier),{sourceDisplay:[Jp(Z)],codeActions:[z]}}function Rrt(e,t,r,i,s,o,c){const u=gAe(e,t,r,i,s,o,c);return u.type==="symbol"?u.symbol:void 0}function jrt(e,t,r){return li(t&&(t.isUnion()?t.types:[t]),i=>{const s=i&&i.symbol;return s&&s.flags&424&&!bae(s)?Wme(s,e,r):void 0})}function Brt(e,t,r,i){const{parent:s}=e;switch(e.kind){case 80:return yj(e,i);case 64:switch(s.kind){case 260:return i.getContextualType(s.initializer);case 226:return i.getTypeAtLocation(s.left);case 291:return i.getContextualTypeForJsxAttribute(s);default:return}case 105:return i.getContextualType(s);case 84:const o=si(s,R4);return o?DQ(o,i):void 0;case 19:return Ew(s)&&!Uh(s.parent)&&!jb(s.parent)?i.getContextualTypeForJsxAttribute(s.parent):void 0;default:const c=r5.getArgumentInfoForCompletions(e,t,r,i);return c?i.getContextualTypeForArgumentAtIndex(c.invocation,c.argumentIndex):vj(e.kind)&&mr(s)&&vj(s.operatorToken.kind)?i.getTypeAtLocation(s.left):i.getContextualType(e,4)||i.getContextualType(e)}}function Wme(e,t,r){const i=r.getAccessibleSymbolChain(e,t,-1,!1);return i?Ka(i):e.parent&&(Jrt(e.parent)?e:Wme(e.parent,t,r))}function Jrt(e){var t;return!!((t=e.declarations)!=null&&t.some(r=>r.kind===312))}function hAe(e,t,r,i,s,o,c,u,f,g){const d=e.getTypeChecker(),y=_Ae(r,i);let x=cc(),T=ps(r,s);t("getCompletionData: Get current token: "+(cc()-x)),x=cc();const C=Dy(r,s,T);t("getCompletionData: Is inside comment: "+(cc()-x));let N=!1,D=!1;if(C){if(P_e(r,s)){if(r.text.charCodeAt(s-1)===64)return{kind:1};{const Be=jd(s,r);if(!/[^*|\s(/)]/.test(r.text.substring(Be,s)))return{kind:2}}}const de=Wrt(T,s);if(de){if(de.tagName.pos<=s&&s<=de.tagName.end)return{kind:1};const Be=nn(de);if(Be&&(T=ps(r,s),(!T||!h0(T)&&(T.parent.kind!==355||T.parent.name!==T))&&(N=H(Be))),!N&&Am(de)&&(nl(de.name)||de.name.pos<=s&&s<=de.name.end))return{kind:3,tag:de}}if(!N){t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}x=cc();const M=!N&&L_(r),V=PK(s,r),G=V.previousToken;let Z=V.contextToken;t("getCompletionData: Get previous token: "+(cc()-x));let z=T,ce,J=!1,ne=!1,ge=!1,ve=!1,Q=!1,X=!1,se,pe=mf(r,s),we=0,fe=!1,ie=0;if(Z){const de=EAe(Z,r);if(de.keywordCompletion){if(de.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[grt(de.keywordCompletion)],isNewIdentifierLocation:de.isNewIdentifierLocation};we=yrt(de.keywordCompletion)}if(de.replacementSpan&&o.includeCompletionsForImportStatements&&o.includeCompletionsWithInsertText&&(ie|=2,se=de,fe=de.isNewIdentifierLocation),!de.replacementSpan&&ts(Z))return t("Returning an empty list because completion was requested in an invalid position."),we?lAe(we,M,Sa()):void 0;let Be=Z.parent;if(Z.kind===25||Z.kind===29)switch(J=Z.kind===25,ne=Z.kind===29,Be.kind){case 211:ce=Be,z=ce.expression;const Ie=S4(ce);if(nl(Ie)||(ma(z)||oa(z))&&z.end===Z.pos&&z.getChildCount(r)&&so(z.getChildren(r)).kind!==22)return;break;case 166:z=Be.left;break;case 267:z=Be.name;break;case 205:z=Be;break;case 236:z=Be.getFirstToken(r),w.assert(z.kind===102||z.kind===105);break;default:return}else if(!se){if(Be&&Be.kind===211&&(Z=Be,Be=Be.parent),T.parent===pe)switch(T.kind){case 32:(T.parent.kind===284||T.parent.kind===286)&&(pe=T);break;case 44:T.parent.kind===285&&(pe=T);break}switch(Be.kind){case 287:Z.kind===44&&(ve=!0,pe=Z);break;case 226:if(!CAe(Be))break;case 285:case 284:case 286:X=!0,Z.kind===30&&(ge=!0,pe=Z);break;case 294:case 293:(G.kind===20||G.kind===80&&G.parent.kind===291)&&(X=!0);break;case 291:if(Be.initializer===G&&G.endJx(de?u.getPackageJsonAutoImportProvider():e,u));if(J||ne)sn();else if(ge)Se=d.getJsxIntrinsicTagNamesAt(pe),w.assertEachIsDefined(Se,"getJsxIntrinsicTagNames() should all be defined"),Zt(),Ne=1,we=0;else if(ve){const de=Z.parent.parent.openingElement.tagName,Be=d.getSymbolAtLocation(de);Be&&(Se=[Be]),Ne=1,we=0}else if(!Zt())return we?lAe(we,M,fe):void 0;t("getCompletionData: Semantic work: "+(cc()-ye));const st=G&&Brt(G,s,r,d),yt=!si(G,vo)&&!X?Oi(st&&(st.isUnion()?st.types:[st]),de=>de.isLiteral()&&!(de.flags&1024)?de.value:void 0):[],$e=G&&st&&jrt(G,st,d);return{kind:0,symbols:Se,completionKind:Ne,isInSnippetScope:D,propertyAccessToConvert:ce,isNewIdentifierLocation:fe,location:pe,keywordFilters:we,literals:yt,symbolToOriginInfoMap:Ae,recommendedCompletion:$e,previousToken:G,contextToken:Z,isJsxInitializer:Q,insideJsDocTagTypeExpression:N,symbolToSortTextMap:Le,isTypeOnlyLocation:xe,isJsxIdentifierExpected:X,isRightOfOpenTag:ge,isRightOfDotOrQuestionDot:J||ne,importStatementCompletion:se,hasUnresolvedAutoImports:Ue,flags:ie};function kt(de){switch(de.kind){case 348:case 355:case 349:case 351:case 353:case 356:case 357:return!0;case 352:return!!de.constraint;default:return!1}}function nn(de){if(kt(de)){const Be=Rd(de)?de.constraint:de.typeExpression;return Be&&Be.kind===316?Be:void 0}if(tC(de)||aM(de))return de.class}function sn(){Ne=2;const de=b1(z),Be=de&&!z.isTypeOf||Ih(z.parent)||lI(Z,r,d),Ie=HR(z);if(Ef(z)||de||Jr(z)){const xt=dl(z.parent);xt&&(fe=!0);let Ft=d.getSymbolAtLocation(z);if(Ft&&(Ft=Uu(Ft,d),Ft.flags&1920)){const tn=d.getExportsOfModule(Ft);w.assertEachIsDefined(tn,"getExportsOfModule() should all be defined");const Sn=Li=>d.isValidPropertyAccess(de?z:z.parent,Li.name),Un=Li=>Hme(Li,d),Gn=xt?Li=>{var wi;return!!(Li.flags&1920)&&!((wi=Li.declarations)!=null&&wi.every(sr=>sr.parent===z.parent))}:Ie?Li=>Un(Li)||Sn(Li):Be||N?Un:Sn;for(const Li of tn)Gn(Li)&&Se.push(Li);if(!Be&&!N&&Ft.declarations&&Ft.declarations.some(Li=>Li.kind!==312&&Li.kind!==267&&Li.kind!==266)){let Li=d.getTypeOfSymbolAtLocation(Ft,z).getNonOptionalType(),wi=!1;if(Li.isNullableType()){const sr=J&&!ne&&o.includeAutomaticOptionalChainCompletions!==!1;(sr||ne)&&(Li=Li.getNonNullableType(),sr&&(wi=!0))}In(Li,!!(z.flags&65536),wi)}return}}if(!Be||px(z)){d.tryGetThisTypeAt(z,!1);let xt=d.getTypeAtLocation(z).getNonOptionalType();if(Be)In(xt.getNonNullableType(),!1,!1);else{let Ft=!1;if(xt.isNullableType()){const tn=J&&!ne&&o.includeAutomaticOptionalChainCompletions!==!1;(tn||ne)&&(xt=xt.getNonNullableType(),tn&&(Ft=!0))}In(xt,!!(z.flags&65536),Ft)}}}function In(de,Be,Ie){fe=!!de.getStringIndexType(),ne&&Pe(de.getCallSignatures())&&(fe=!0);const xt=z.kind===205?z:z.parent;if(y)for(const Ft of de.getApparentProperties())d.isValidPropertyAccessForCompletions(xt,de,Ft)&&Zn(Ft,!1,Ie);else Se.push(...vr(NK(de,d),Ft=>d.isValidPropertyAccessForCompletions(xt,de,Ft)));if(Be&&o.includeCompletionsWithInsertText){const Ft=d.getPromisedTypeOfPromise(de);if(Ft)for(const tn of Ft.getApparentProperties())d.isValidPropertyAccessForCompletions(xt,Ft,tn)&&Zn(tn,!0,Ie)}}function Zn(de,Be,Ie){var xt;const Ft=li(de.declarations,Gn=>si(Ms(Gn),co));if(Ft){const Gn=hn(Ft.expression),Li=Gn&&d.getSymbolAtLocation(Gn),wi=Li&&Wme(Li,Z,d),sr=wi&&Ia(wi);if(sr&&nm(Tt,sr)){const Wr=Se.length;Se.push(wi);const xs=wi.parent;if(!xs||!fI(xs)||d.tryGetMemberInModuleExportsAndProperties(wi.name,xs)!==wi)Ae[Wr]={kind:Un(2)};else{const Mi=yu(Nd(xs.name))?(xt=MF(xs))==null?void 0:xt.fileName:void 0,{moduleSpecifier:Di}=(Ee||(Ee=a_.createImportSpecifierResolver(r,e,u,o))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:Mi,isFromPackageJson:!1,moduleSymbol:xs,symbol:wi,targetFlags:Uu(wi,d).flags}],s,r2(pe))||{};if(Di){const $r={kind:Un(6),moduleSymbol:xs,isDefaultExport:!1,symbolName:wi.name,exportName:wi.name,fileName:Mi,moduleSpecifier:Di};Ae[Wr]=$r}}}else if(o.includeCompletionsWithInsertText){if(sr&&Tt.has(sr))return;Sn(de),tn(de),Se.push(de)}}else Sn(de),tn(de),Se.push(de);function tn(Gn){Qrt(Gn)&&(Le[Ia(Gn)]=o_.LocalDeclarationPriority)}function Sn(Gn){o.includeCompletionsWithInsertText&&(Be&&nm(Tt,Ia(Gn))?Ae[Se.length]={kind:Un(8)}:Ie&&(Ae[Se.length]={kind:16}))}function Un(Gn){return Ie?Gn|16:Gn}}function hn(de){return Je(de)?de:Jr(de)?hn(de.expression):void 0}function Zt(){return(Tn()||Ln()||us()||Ve()||pt()||ft()||Yt()||At()||yi()||(zi(),1))===1}function Yt(){return Me(Z)?(Ne=5,fe=!0,we=4,1):0}function yi(){const de=U(Z),Be=de&&d.getContextualType(de.attributes);if(!Be)return 0;const Ie=de&&d.getContextualType(de.attributes,4);return Se=zn(Se,me(AK(Be,Ie,de.attributes,d),de.attributes.properties)),q(),Ne=3,fe=!1,1}function us(){return se?(fe=!0,et(),1):0}function zi(){we=_t(Z)?5:1,Ne=1,fe=Sa(),G!==Z&&w.assert(!!G,"Expected 'contextToken' to be defined when different from 'previousToken'.");const de=G!==Z?G.getStart():s,Be=vi(Z,de,r)||r;D=On(Be);const Ie=(xe?0:111551)|788968|1920|2097152,xt=G&&!r2(G);Se=zn(Se,d.getSymbolsInScope(Be,Ie)),w.assertEachIsDefined(Se,"getSymbolsInScope() should all be defined");for(let Ft=0;FtSn.getSourceFile()===r)&&(Le[Ia(tn)]=o_.GlobalsOrKeywords),xt&&!(tn.flags&111551)){const Sn=tn.declarations&&Cn(tn.declarations,pA);if(Sn){const Un={kind:64,declaration:Sn};Ae[Ft]=Un}}}if(o.includeCompletionsWithInsertText&&Be.kind!==312){const Ft=d.tryGetThisTypeAt(Be,!1,fi(Be.parent)?Be:void 0);if(Ft&&!Xrt(Ft,r,d))for(const tn of NK(Ft,d))Ae[Se.length]={kind:1},Se.push(tn),Le[Ia(tn)]=o_.SuggestedClassMembers}et(),xe&&(we=Z&&KS(Z.parent)?6:7)}function Os(){return se?!0:o.includeCompletionsForModuleExports?r.externalModuleIndicator||r.commonJsModuleIndicator||_Q(e.getCompilerOptions())?!0:O_e(e):!1}function On(de){switch(de.kind){case 312:case 228:case 294:case 241:return!0;default:return Xi(de)}}function Fi(){return N||!!se&&$v(pe.parent)||!Er(Z)&&(lI(Z,r,d)||Ih(pe)||cn(Z))}function Er(de){return de&&(de.kind===114&&(de.parent.kind===186||L4(de.parent))||de.kind===131&&de.parent.kind===182)}function cn(de){if(de){const Be=de.parent.kind;switch(de.kind){case 59:return Be===172||Be===171||Be===169||Be===260||dk(Be);case 64:return Be===265||Be===168;case 130:return Be===234;case 30:return Be===183||Be===216;case 96:return Be===168;case 152:return Be===238}}return!1}function et(){var de,Be;if(!Os()||(w.assert(!(c!=null&&c.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),c&&!c.source))return;ie|=1;const xt=G===Z&&se?"":G&&Je(G)?G.text.toLowerCase():"",Ft=(de=u.getModuleSpecifierCache)==null?void 0:de.call(u),tn=CI(r,u,e,o,g),Sn=(Be=u.getPackageJsonAutoImportProvider)==null?void 0:Be.call(u),Un=c?void 0:hD(r,o,u);sAe("collectAutoImports",u,Ee||(Ee=a_.createImportSpecifierResolver(r,e,u,o)),e,s,o,!!se,r2(pe),Li=>{tn.search(r.path,ge,(wi,sr)=>{if(!Np(wi,go(u.getCompilationSettings()))||!c&&kk(wi)||!xe&&!se&&!(sr&111551)||xe&&!(sr&790504))return!1;const Wr=wi.charCodeAt(0);return ge&&(Wr<65||Wr>90)?!1:c?!0:NAe(wi,xt)},(wi,sr,Wr,xs)=>{if(c&&!Pe(wi,Yo=>c.source===Nd(Yo.moduleSymbol.name))||(wi=vr(wi,Gn),!wi.length))return;const Mi=Li.tryResolve(wi,Wr)||{};if(Mi==="failed")return;let Di=wi[0],$r;Mi!=="skipped"&&({exportInfo:Di=wi[0],moduleSpecifier:$r}=Mi);const As=Di.exportKind===1,Dn=As&&v4(Di.symbol)||Di.symbol;Jt(Dn,{kind:$r?32:4,moduleSpecifier:$r,symbolName:sr,exportMapKey:xs,exportName:Di.exportKind===2?"export=":Di.symbol.name,fileName:Di.moduleFileName,isDefaultExport:As,moduleSymbol:Di.moduleSymbol,isFromPackageJson:Di.isFromPackageJson})}),Ue=Li.skippedAny(),ie|=Li.resolvedAny()?8:0,ie|=Li.resolvedBeyondLimit()?16:0});function Gn(Li){const wi=si(Li.moduleSymbol.valueDeclaration,es);if(!wi){const sr=Nd(Li.moduleSymbol.name);return dg.nodeCoreModules.has(sr)&&fs(sr,"node:")!==Dj(r,e)?!1:Un?Un.allowsImportingAmbientModule(Li.moduleSymbol,ze(Li.isFromPackageJson)):!0}return qQ(Li.isFromPackageJson?Sn:e,r,wi,o,Un,ze(Li.isFromPackageJson),Ft)}}function Jt(de,Be){const Ie=Ia(de);Le[Ie]!==o_.GlobalsOrKeywords&&(Ae[Se.length]=Be,Le[Ie]=se?o_.LocationPriority:o_.AutoImportSuggestions,Se.push(de))}function wn(de,Be){lr(pe)||de.forEach(Ie=>{if(!ui(Ie))return;const xt=wK(Ie,go(i),void 0,0,!1);if(!xt)return;const{name:Ft}=xt,tn=wrt(Ie,Ft,Be,e,u,i,o,f);if(!tn)return;const Sn={kind:128,...tn};ie|=32,Ae[Se.length]=Sn,Se.push(Ie)})}function ui(de){return!!(de.flags&8196)}function vi(de,Be,Ie){let xt=de;for(;xt&&!YX(xt,Be,Ie);)xt=xt.parent;return xt}function ts(de){const Be=cc(),Ie=Wa(de)||Et(de)||Ut(de)||Ds(de)||qL(de);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(cc()-Be)),Ie}function Ds(de){if(de.kind===12)return!0;if(de.kind===32&&de.parent){if(pe===de.parent&&(pe.kind===286||pe.kind===285))return!1;if(de.parent.kind===286)return pe.parent.kind!==286;if(de.parent.kind===287||de.parent.kind===285)return!!de.parent.parent&&de.parent.parent.kind===284}return!1}function Sa(){if(Z){const de=Z.parent.kind,Be=DK(Z);switch(Be){case 28:return de===213||de===176||de===214||de===209||de===226||de===184||de===210;case 21:return de===213||de===176||de===214||de===217||de===196;case 23:return de===209||de===181||de===167;case 144:case 145:case 102:return!0;case 25:return de===267;case 19:return de===263||de===210;case 64:return de===260||de===226;case 16:return de===228;case 17:return de===239;case 134:return de===174||de===304;case 42:return de===174}if(CB(Be))return!0}return!1}function Wa(de){return(vH(de)||ZV(de))&&(aI(de,s)||s===de.end&&(!!de.isUnterminated||vH(de)))}function Tn(){const de=Grt(Z);if(!de)return 0;const Ie=(Gk(de.parent)?de.parent:void 0)||de,xt=kAe(Ie,d);if(!xt)return 0;const Ft=d.getTypeFromTypeNode(Ie),tn=NK(xt,d),Sn=NK(Ft,d),Un=new Set;return Sn.forEach(Gn=>Un.add(Gn.escapedName)),Se=zn(Se,vr(tn,Gn=>!Un.has(Gn.escapedName))),Ne=0,fe=!0,1}function Ln(){const de=Se.length,Be=zrt(Z,s,r);if(!Be)return 0;Ne=0;let Ie,xt;if(Be.kind===210){const Ft=Yrt(Be,d);if(Ft===void 0)return Be.flags&67108864?2:0;const tn=d.getContextualType(Be,4),Sn=(tn||Ft).getStringIndexType(),Un=(tn||Ft).getNumberIndexType();if(fe=!!Sn||!!Un,Ie=AK(Ft,tn,Be,d),xt=Be.properties,Ie.length===0&&!Un)return 0}else{w.assert(Be.kind===206),fe=!1;const Ft=rg(Be.parent);if(!K6(Ft))return w.fail("Root declaration is not variable-like.");let tn=h1(Ft)||!!zu(Ft)||Ft.parent.parent.kind===250;if(!tn&&Ft.kind===169&&(vt(Ft.parent)?tn=!!d.getContextualType(Ft.parent):(Ft.parent.kind===174||Ft.parent.kind===178)&&(tn=vt(Ft.parent.parent)&&!!d.getContextualType(Ft.parent.parent))),tn){const Sn=d.getTypeAtLocation(Be);if(!Sn)return 2;Ie=d.getPropertiesOfType(Sn).filter(Un=>d.isPropertyAccessible(Be,!1,!1,Sn,Un)),xt=Be.elements}}if(Ie&&Ie.length>0){const Ft=pn(Ie,w.checkDefined(xt));Se=zn(Se,Ft),q(),Be.kind===210&&o.includeCompletionsWithObjectLiteralMethodSnippets&&o.includeCompletionsWithInsertText&&(Ot(de),wn(Ft,Be))}return 1}function Ve(){if(!Z)return 0;const de=Z.kind===19||Z.kind===28?si(Z.parent,L9):cj(Z)?si(Z.parent.parent,L9):void 0;if(!de)return 0;cj(Z)||(we=8);const{moduleSpecifier:Be}=de.kind===275?de.parent.parent:de.parent;if(!Be)return fe=!0,de.kind===275?2:0;const Ie=d.getSymbolAtLocation(Be);if(!Ie)return fe=!0,2;Ne=3,fe=!1;const xt=d.getExportsAndPropertiesOfModule(Ie),Ft=new Set(de.elements.filter(Sn=>!H(Sn)).map(Sn=>(Sn.propertyName||Sn.name).escapedText)),tn=xt.filter(Sn=>Sn.escapedName!=="default"&&!Ft.has(Sn.escapedName));return Se=zn(Se,tn),tn.length||(we=0),1}function pt(){if(Z===void 0)return 0;const de=Z.kind===19||Z.kind===28?si(Z.parent,Yk):Z.kind===59?si(Z.parent.parent,Yk):void 0;if(de===void 0)return 0;const Be=new Set(de.elements.map(iL));return Se=vr(d.getTypeAtLocation(de).getApparentProperties(),Ie=>!Be.has(Ie.escapedName)),1}function ft(){var de;const Be=Z&&(Z.kind===19||Z.kind===28)?si(Z.parent,sd):void 0;if(!Be)return 0;const Ie=Vn(Be,Tm(es,dl));return Ne=5,fe=!1,(de=Ie.locals)==null||de.forEach((xt,Ft)=>{var tn,Sn;Se.push(xt),(Sn=(tn=Ie.symbol)==null?void 0:tn.exports)!=null&&Sn.has(Ft)&&(Le[Ia(xt)]=o_.OptionalMember)}),1}function At(){const de=Hrt(r,Z,pe,s);if(!de)return 0;if(Ne=3,fe=!0,we=Z.kind===42?0:fi(de)?2:3,!fi(de))return 1;const Be=Z.kind===27?Z.parent.parent:Z.parent;let Ie=vu(Be)?M_(Be):0;if(Z.kind===80&&!H(Z))switch(Z.getText()){case"private":Ie=Ie|2;break;case"static":Ie=Ie|256;break;case"override":Ie=Ie|16;break}if(Vc(Be)&&(Ie|=256),!(Ie&2)){const xt=fi(de)&&Ie&16?ok(tg(de)):OP(de),Ft=Ys(xt,tn=>{const Sn=d.getTypeAtLocation(tn);return Ie&256?(Sn==null?void 0:Sn.symbol)&&d.getPropertiesOfType(d.getTypeOfSymbolAtLocation(Sn.symbol,de)):Sn&&d.getPropertiesOfType(Sn)});Se=zn(Se,I(Ft,de.members,Ie)),dt(Se,(tn,Sn)=>{const Un=tn==null?void 0:tn.valueDeclaration;if(Un&&vu(Un)&&Un.name&&co(Un.name)){const Gn={kind:512,symbolName:d.symbolToString(tn)};Ae[Sn]=Gn}})}return 1}function le(de){return!!de.parent&&ws(de.parent)&&$c(de.parent.parent)&&(yP(de.kind)||h0(de))}function Me(de){if(de){const Be=de.parent;switch(de.kind){case 21:case 28:return $c(de.parent)?de.parent:void 0;default:if(le(de))return Be.parent}}}function _t(de){if(de){let Be;const Ie=Vn(de.parent,xt=>fi(xt)?"quit":Ko(xt)&&Be===xt.body?!0:(Be=xt,!1));return Ie&&Ie}}function U(de){if(de){const Be=de.parent;switch(de.kind){case 32:case 31:case 44:case 80:case 211:case 292:case 291:case 293:if(Be&&(Be.kind===285||Be.kind===286)){if(de.kind===32){const Ie=Hl(de.pos,r,void 0);if(!Be.typeArguments||Ie&&Ie.kind===44)break}return Be}else if(Be.kind===291)return Be.parent.parent;break;case 11:if(Be&&(Be.kind===291||Be.kind===293))return Be.parent.parent;break;case 20:if(Be&&Be.kind===294&&Be.parent&&Be.parent.kind===291)return Be.parent.parent.parent;if(Be&&Be.kind===293)return Be.parent.parent;break}}}function it(de,Be){return r.getLineEndOfPosition(de.getEnd())=de.pos;case 25:return Ie===207;case 59:return Ie===208;case 23:return Ie===207;case 21:return Ie===299||mt(Ie);case 19:return Ie===266;case 30:return Ie===263||Ie===231||Ie===264||Ie===265||dk(Ie);case 126:return Ie===172&&!fi(Be.parent);case 26:return Ie===169||!!Be.parent&&Be.parent.kind===207;case 125:case 123:case 124:return Ie===169&&!$c(Be.parent);case 130:return Ie===276||Ie===281||Ie===274;case 139:case 153:return!IK(de);case 80:{if(Ie===276&&de===Be.name&&de.text==="type"||Vn(de.parent,Ji)&&it(de,s))return!1;break}case 86:case 94:case 120:case 100:case 115:case 102:case 121:case 87:case 140:return!0;case 156:return Ie!==276;case 42:return oa(de.parent)&&!ul(de.parent)}if(CB(DK(de))&&IK(de)||le(de)&&(!Je(de)||yP(DK(de))||H(de)))return!1;switch(DK(de)){case 128:case 86:case 87:case 138:case 94:case 100:case 120:case 121:case 123:case 124:case 125:case 126:case 115:return!0;case 134:return Zs(de.parent)}if(Vn(de.parent,fi)&&de===G&&Ge(de,s))return!1;const Ft=e2(de.parent,172);if(Ft&&de!==G&&fi(G.parent.parent)&&s<=G.end){if(Ge(de,G.end))return!1;if(de.kind!==64&&(O7(Ft)||AF(Ft)))return!0}return h0(de)&&!Af(de.parent)&&!_g(de.parent)&&!((fi(de.parent)||J_(de.parent)||Ic(de.parent))&&(de!==G||s>G.end))}function Ge(de,Be){return de.kind!==64&&(de.kind===27||!td(de.end,Be,r))}function mt(de){return dk(de)&&de!==176}function Ut(de){if(de.kind===9){const Be=de.getFullText();return Be.charAt(Be.length-1)==="."}return!1}function vn(de){return de.parent.kind===261&&!lI(de,r,d)}function pn(de,Be){if(Be.length===0)return de;const Ie=new Set,xt=new Set;for(const tn of Be){if(tn.kind!==303&&tn.kind!==304&&tn.kind!==208&&tn.kind!==174&&tn.kind!==177&&tn.kind!==178&&tn.kind!==305||H(tn))continue;let Sn;if(Ey(tn))mn(tn,Ie);else if(oo(tn)&&tn.propertyName)tn.propertyName.kind===80&&(Sn=tn.propertyName.escapedText);else{const Un=Ms(tn);Sn=Un&&ng(Un)?MP(Un):void 0}Sn!==void 0&&xt.add(Sn)}const Ft=de.filter(tn=>!xt.has(tn.escapedName));return Fe(Ie,Ft),Ft}function mn(de,Be){const Ie=de.expression,xt=d.getSymbolAtLocation(Ie),Ft=xt&&d.getTypeOfSymbolAtLocation(xt,Ie),tn=Ft&&Ft.properties;tn&&tn.forEach(Sn=>{Be.add(Sn.name)})}function q(){Se.forEach(de=>{if(de.flags&16777216){const Be=Ia(de);Le[Be]=Le[Be]??o_.OptionalMember}})}function Fe(de,Be){if(de.size!==0)for(const Ie of Be)de.has(Ie.name)&&(Le[Ia(Ie)]=o_.MemberDeclaredBySpreadAssignment)}function Ot(de){for(let Be=de;Be!xt.has(Ft.escapedName)&&!!Ft.declarations&&!(nd(Ft)&2)&&!(Ft.valueDeclaration&&O_(Ft.valueDeclaration)))}function me(de,Be){const Ie=new Set,xt=new Set;for(const tn of Be)H(tn)||(tn.kind===291?Ie.add(uw(tn.name)):eC(tn)&&mn(tn,xt));const Ft=de.filter(tn=>!Ie.has(tn.escapedName));return Fe(xt,Ft),Ft}function H(de){return de.getStart(r)<=s&&s<=de.getEnd()}}function zrt(e,t,r){var i;if(e){const{parent:s}=e;switch(e.kind){case 19:case 28:if(Va(s)||Md(s))return s;break;case 42:return ul(s)?si(s.parent,Va):void 0;case 134:return si(s.parent,Va);case 80:if(e.text==="async"&&Af(e.parent))return e.parent.parent;{if(Va(e.parent.parent)&&(Ey(e.parent)||Af(e.parent)&&Ao(r,e.getEnd()).line!==Ao(r,t).line))return e.parent.parent;const c=Vn(s,Ml);if((c==null?void 0:c.getLastToken(r))===e&&Va(c.parent))return c.parent}break;default:if((i=s.parent)!=null&&i.parent&&(ul(s.parent)||Op(s.parent)||$f(s.parent))&&Va(s.parent.parent))return s.parent.parent;if(Ey(s)&&Va(s.parent))return s.parent;const o=Vn(s,Ml);if(e.kind!==59&&(o==null?void 0:o.getLastToken(r))===e&&Va(o.parent))return o.parent}}}function PK(e,t){const r=Hl(e,t);return r&&e<=r.end&&(Dh(r)||pf(r.kind))?{contextToken:Hl(r.getFullStart(),t,void 0),previousToken:r}:{contextToken:r,previousToken:r}}function yAe(e,t,r,i){const s=t.isPackageJsonImport?i.getPackageJsonAutoImportProvider():r,o=s.getTypeChecker(),c=t.ambientModuleName?o.tryFindAmbientModule(t.ambientModuleName):t.fileName?o.getMergedSymbol(w.checkDefined(s.getSourceFile(t.fileName)).symbol):void 0;if(!c)return;let u=t.exportName==="export="?o.resolveExternalModuleSymbol(c):o.tryGetMemberInModuleExportsAndProperties(t.exportName,c);return u?(u=t.exportName==="default"&&v4(u)||u,{symbol:u,origin:Art(t,e,c)}):void 0}function wK(e,t,r,i,s){if(frt(r))return;const o=crt(r)?r.symbolName:e.name;if(o===void 0||e.flags&1536&&JA(o.charCodeAt(0))||aN(e))return;const c={name:o,needsConvertPropertyAccess:!1};if(Np(o,t,s?1:0)||e.valueDeclaration&&O_(e.valueDeclaration))return c;switch(i){case 3:return Rme(r)?{name:r.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(o),needsConvertPropertyAccess:!1};case 2:case 1:return o.charCodeAt(0)===32?void 0:{name:o,needsConvertPropertyAccess:!0};case 5:case 4:return c;default:w.assertNever(i)}}function vAe(e,t){if(!t)return bAe(e);const r=e+8+1;return EB[r]||(EB[r]=bAe(e).filter(i=>!Urt(cb(i.name))))}function bAe(e){return EB[e]||(EB[e]=Yme().filter(t=>{const r=cb(t.name);switch(e){case 0:return!1;case 1:return xAe(r)||r===138||r===144||r===156||r===145||r===128||lD(r)&&r!==157;case 5:return xAe(r);case 2:return CB(r);case 3:return SAe(r);case 4:return yP(r);case 6:return lD(r)||r===87;case 7:return lD(r);case 8:return r===156;default:return w.assertNever(e)}}))}function Urt(e){switch(e){case 128:case 133:case 163:case 136:case 138:case 94:case 162:case 119:case 140:case 120:case 142:case 143:case 144:case 145:case 146:case 150:case 151:case 164:case 123:case 124:case 125:case 148:case 154:case 155:case 156:case 158:case 159:return!0;default:return!1}}function SAe(e){return e===148}function CB(e){switch(e){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return KV(e)}}function xAe(e){return e===134||e===135||e===160||e===130||e===152||e===156||!d9(e)&&!CB(e)}function DK(e){return Je(e)?Wv(e)??0:e.kind}function Vrt(e,t){const r=[];if(e){const i=e.getSourceFile(),s=e.parent,o=i.getLineAndCharacterOfPosition(e.end).line,c=i.getLineAndCharacterOfPosition(t).line;(eu(s)||ml(s)&&s.moduleSpecifier)&&e===s.moduleSpecifier&&o===c&&r.push({name:ba(132),kind:"keyword",kindModifiers:"",sortText:o_.GlobalsOrKeywords})}return r}function Wrt(e,t){return Vn(e,r=>q6(r)&&sI(r,t)?!0:Dm(r)?"quit":!1)}function AK(e,t,r,i){const s=t&&t!==e,o=s&&!(t.flags&3)?i.getUnionType([e,t]):e,c=qrt(o,r,i);return o.isClass()&&TAe(c)?[]:s?vr(c,u):c;function u(f){return Xe(f.declarations)?Pe(f.declarations,g=>g.parent!==r):!0}}function qrt(e,t,r){return e.isUnion()?r.getAllPossiblePropertiesOfTypes(vr(e.types,i=>!(i.flags&402784252||r.isArrayLikeType(i)||r.isTypeInvalidDueToUnionDiscriminant(i,t)||r.typeHasCallOrConstructSignatures(i)||i.isClass()&&TAe(i.getApparentProperties())))):e.getApparentProperties()}function TAe(e){return Pe(e,t=>!!(nd(t)&6))}function NK(e,t){return e.isUnion()?w.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):w.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function Hrt(e,t,r,i){switch(r.kind){case 358:return si(r.parent,Dk);case 1:const s=si(pc(pa(r.parent,es).statements),Dk);if(s&&!wo(s,20,e))return s;break;case 81:if(si(r.parent,Zs))return Vn(r,fi);break;case 80:{if(Wv(r)||Zs(r.parent)&&r.parent.initializer===r)return;if(IK(r))return Vn(r,Dk)}}if(t){if(r.kind===137||Je(t)&&Zs(t.parent)&&fi(r))return Vn(t,fi);switch(t.kind){case 64:return;case 27:case 20:return IK(r)&&r.parent.name===r?r.parent.parent:si(r,Dk);case 19:case 28:return si(t.parent,Dk);default:if(Dk(r)){if(Ao(e,t.getEnd()).line!==Ao(e,i).line)return r;const s=fi(t.parent.parent)?CB:SAe;return s(t.kind)||t.kind===42||Je(t)&&s(Wv(t)??0)?t.parent.parent:void 0}return}}}function Grt(e){if(!e)return;const t=e.parent;switch(e.kind){case 19:if(Xf(t))return t;break;case 27:case 28:case 80:if(t.kind===171&&Xf(t.parent))return t.parent;break}}function kAe(e,t){if(!e)return;if(Gi(e)&&NF(e.parent))return t.getTypeArgumentConstraint(e);const r=kAe(e.parent,t);if(r)switch(e.kind){case 171:return t.getTypeOfPropertyOfContextualType(r,e.symbol.escapedName);case 193:case 187:case 192:return r}}function IK(e){return e.parent&&TF(e.parent)&&Dk(e.parent.parent)}function $rt(e,t,r,i){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!r&&Q_e(r)&&i===r.getStart(e)+1;case"#":return!!r&&Qi(r)&&!!Du(r);case"<":return!!r&&r.kind===30&&(!mr(r.parent)||CAe(r.parent));case"/":return!!r&&(vo(r)?!!XA(r):r.kind===44&&Rb(r.parent));case" ":return!!r&&bw(r)&&r.parent.kind===312;default:return w.assertNever(t)}}function CAe({left:e}){return nl(e)}function Xrt(e,t,r){const i=r.resolveName("self",void 0,111551,!1);if(i&&r.getTypeOfSymbolAtLocation(i,t)===e)return!0;const s=r.resolveName("global",void 0,111551,!1);if(s&&r.getTypeOfSymbolAtLocation(s,t)===e)return!0;const o=r.resolveName("globalThis",void 0,111551,!1);return!!(o&&r.getTypeOfSymbolAtLocation(o,t)===e)}function Qrt(e){return!!(e.valueDeclaration&&M_(e.valueDeclaration)&256&&fi(e.valueDeclaration.parent))}function Yrt(e,t){const r=t.getContextualType(e);if(r)return r;const i=hy(e.parent);if(mr(i)&&i.operatorToken.kind===64&&e===i.left)return t.getTypeAtLocation(i);if(vt(i))return t.getContextualType(i)}function EAe(e,t){var r,i,s;let o,c=!1;const u=f();return{isKeywordOnlyCompletion:c,keywordCompletion:o,isNewIdentifierLocation:!!(u||o===156),isTopLevelTypeOnly:!!((i=(r=si(u,eu))==null?void 0:r.importClause)!=null&&i.isTypeOnly)||!!((s=si(u,Tu))!=null&&s.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!u&&wAe(u,e),replacementSpan:Zrt(u)};function f(){const g=e.parent;if(Tu(g)){const d=g.getLastToken(t);if(Je(e)&&d!==e){o=161,c=!0;return}return o=e.kind===156?void 0:156,qme(g.moduleReference)?g:void 0}if(wAe(g,e)&&DAe(g.parent))return g;if(x0(g)||F1(g)){if(!g.parent.isTypeOnly&&(e.kind===19||e.kind===102||e.kind===28)&&(o=156),DAe(g))if(e.kind===20||e.kind===80)c=!0,o=161;else return g.parent.parent;return}if(ml(g)&&e.kind===42||sd(g)&&e.kind===20){c=!0,o=161;return}if(bw(e)&&es(g))return o=156,e;if(bw(e)&&eu(g))return o=156,qme(g.moduleSpecifier)?g:void 0}}function Zrt(e){var t;if(!e)return;const r=Vn(e,Tm(eu,Tu))??e,i=r.getSourceFile();if(mx(r,i))return tf(r,i);w.assert(r.kind!==102&&r.kind!==276);const s=r.kind===272?PAe((t=r.importClause)==null?void 0:t.namedBindings)??r.moduleSpecifier:r.moduleReference,o={pos:r.getFirstToken().getStart(),end:s.pos};if(mx(o,i))return B1(o)}function PAe(e){var t;return Cn((t=si(e,x0))==null?void 0:t.elements,r=>{var i;return!r.propertyName&&kk(r.name.text)&&((i=Hl(r.name.pos,e.getSourceFile(),e))==null?void 0:i.kind)!==28})}function wAe(e,t){return Df(e)&&(e.isTypeOnly||t===e.name&&cj(t))}function DAe(e){if(!qme(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(x0(e)){const t=PAe(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function qme(e){var t;return nl(e)?!0:!((t=si(Kg(e)?e.expression:e,vo))!=null&&t.text)}function Krt(e,t){if(!e)return;const r=Vn(e,s=>hb(s)||AAe(s)||ca(s)?"quit":(ws(s)||Ic(s))&&!Ib(s.parent)),i=Vn(t,s=>hb(s)||AAe(s)||ca(s)?"quit":Ji(s));return r||i}function AAe(e){return e.parent&&ec(e.parent)&&(e.parent.body===e||e.kind===39)}function Hme(e,t,r=new Map){return i(e)||i(Uu(e.exportSymbol||e,t));function i(s){return!!(s.flags&788968)||t.isUnknownSymbol(s)||!!(s.flags&1536)&&nm(r,Ia(s))&&t.getExportsOfModule(s).some(o=>Hme(o,t,r))}}function eit(e,t){const r=Uu(e,t).declarations;return!!Xe(r)&&Pn(r,wj)}function NAe(e,t){if(t.length===0)return!0;let r=!1,i,s=0;const o=e.length;for(let c=0;c(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",e))($me||{}),Xme=(e=>(e[e.ThisType=1]="ThisType",e[e.SymbolMember=2]="SymbolMember",e[e.Export=4]="Export",e[e.Promise=8]="Promise",e[e.Nullable=16]="Nullable",e[e.ResolvedExport=32]="ResolvedExport",e[e.TypeOnlyAlias=64]="TypeOnlyAlias",e[e.ObjectLiteralMethod=128]="ObjectLiteralMethod",e[e.Ignore=256]="Ignore",e[e.ComputedPropertyName=512]="ComputedPropertyName",e[e.SymbolMemberNoExport=2]="SymbolMemberNoExport",e[e.SymbolMemberExport=6]="SymbolMemberExport",e))(Xme||{}),Qme=(e=>(e[e.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",e[e.Global=1]="Global",e[e.PropertyAccess=2]="PropertyAccess",e[e.MemberLike=3]="MemberLike",e[e.String=4]="String",e[e.None=5]="None",e))(Qme||{}),EB=[],Yme=X_(()=>{const e=[];for(let t=83;t<=165;t++)e.push({name:ba(t),kind:"keyword",kindModifiers:"",sortText:o_.GlobalsOrKeywords});return e})}});function Zme(){const e=new Map;function t(r){const i=e.get(r.name);(!i||rge[i.kind]({name:Mh(T.value,y),kindModifiers:"",kind:"string",sortText:o_.LocationPriority,replacementSpan:aQ(t)}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:d,entries:x}}default:return w.assertNever(e)}}function ait(e,t,r,i,s,o,c,u){if(!i||!vo(i))return;const f=FAe(t,i,r,s,o,u);return f&&oit(e,i,f,t,s.getTypeChecker(),c)}function oit(e,t,r,i,s,o){switch(r.kind){case 0:{const c=Cn(r.paths,u=>u.name===e);return c&&kB(e,OAe(c.extension),c.kind,[Jp(e)])}case 1:{const c=Cn(r.symbols,u=>u.name===e);return c&&Vme(c,c.name,s,i,t,o)}case 2:return Cn(r.types,c=>c.value===e)?kB(e,"","string",[Jp(e)]):void 0;default:return w.assertNever(r)}}function IAe(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(({name:s,kind:o,span:c,extension:u})=>({name:s,kind:o,kindModifiers:OAe(u),sortText:o_.LocationPriority,replacementSpan:c}))}}function OAe(e){switch(e){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return w.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return w.assertNever(e)}}function FAe(e,t,r,i,s,o){const c=i.getTypeChecker(),u=Kme(t.parent);switch(u.kind){case 201:{const T=Kme(u.parent);return T.kind===205?{kind:0,paths:RAe(e,t,i,s,o)}:f(T)}case 303:return Va(u.parent)&&u.name===t?uit(c,u.parent):g()||g(0);case 212:{const{expression:T,argumentExpression:C}=u;return t===Eo(C)?LAe(c.getTypeAtLocation(T)):void 0}case 213:case 214:case 291:if(!kit(t)&&!gp(u)){const T=r5.getArgumentInfoForCompletions(u.kind===291?u.parent:t,r,e,c);return T&&lit(T.invocation,t,T,c)||g(0)}case 272:case 278:case 283:return{kind:0,paths:RAe(e,t,i,s,o)};case 296:const d=Nj(c,u.parent.clauses),y=g();return y?{kind:2,types:y.types.filter(T=>!d.hasValue(T.value)),isNewIdentifier:!1}:void 0;default:return g()||g(0)}function f(d){switch(d.kind){case 233:case 183:{const T=Vn(u,C=>C.parent===d);return T?{kind:2,types:FK(c.getTypeArgumentConstraint(T)),isNewIdentifier:!1}:void 0}case 199:const{indexType:y,objectType:x}=d;return sI(y,r)?LAe(c.getTypeFromTypeNode(x)):void 0;case 192:{const T=f(Kme(d.parent));if(!T)return;const C=cit(d,u);return T.kind===1?{kind:1,symbols:T.symbols.filter(N=>!Ai(C,N.name)),hasIndexSignature:T.hasIndexSignature}:{kind:2,types:T.types.filter(N=>!Ai(C,N.value)),isNewIdentifier:!1}}default:return}}function g(d=4){const y=FK(yj(t,c,d));if(y.length)return{kind:2,types:y,isNewIdentifier:!1}}}function Kme(e){switch(e.kind){case 196:return eN(e);case 217:return hy(e);default:return e}}function cit(e,t){return Oi(e.types,r=>r!==t&&N1(r)&&Ba(r.literal)?r.literal.text:void 0)}function lit(e,t,r,i){let s=!1;const o=new Map,c=F_(e)?w.checkDefined(Vn(t.parent,_g)):t,u=i.getCandidateSignaturesForStringLiteralCompletions(e,c),f=Ys(u,g=>{if(!v_(g)&&r.argumentCount>g.parameters.length)return;let d=g.getTypeParameterAtPosition(r.argumentIndex);if(F_(e)){const y=i.getTypeOfPropertyOfType(d,EN(c.name));y&&(d=y)}return s=s||!!(d.flags&4),FK(d,o)});return Xe(f)?{kind:2,types:f,isNewIdentifier:s}:void 0}function LAe(e){return e&&{kind:1,symbols:vr(e.getApparentProperties(),t=>!(t.valueDeclaration&&O_(t.valueDeclaration))),hasIndexSignature:wQ(e)}}function uit(e,t){const r=e.getContextualType(t);if(!r)return;const i=e.getContextualType(t,4);return{kind:1,symbols:AK(r,i,t,e),hasIndexSignature:wQ(r)}}function FK(e,t=new Map){return e?(e=uQ(e),e.isUnion()?Ys(e.types,r=>FK(r,t)):e.isStringLiteral()&&!(e.flags&1024)&&nm(t,e.value)?[e]:Ke):Ke}function CD(e,t,r){return{name:e,kind:t,extension:r}}function ege(e){return CD(e,"directory",void 0)}function MAe(e,t,r){const i=xit(e,t),s=e.length===0?void 0:Ju(t,e.length);return r.map(({name:o,kind:c,extension:u})=>o.includes(yc)||o.includes(Y8)?{name:o,kind:c,extension:u,span:s}:{name:o,kind:c,extension:u,span:i})}function RAe(e,t,r,i,s){return MAe(t.text,t.getStart(e)+1,_it(e,t,r,i,s))}function _it(e,t,r,i,s){const o=t_(t.text),c=vo(t)?r.getModeForUsageLocation(e,t):void 0,u=e.path,f=oi(u),g=r.getCompilerOptions(),d=r.getTypeChecker(),y=tge(g,1,e,d,s,c);return Tit(o)||!g.baseUrl&&!g.paths&&(zf(o)||$re(o))?fit(o,f,g,i,u,y):git(o,f,c,g,i,y,d)}function tge(e,t,r,i,s,o){return{extensionsToSearch:P_(pit(e,i)),referenceKind:t,importingSourceFile:r,endingPreference:s==null?void 0:s.importModuleSpecifierEnding,resolutionMode:o}}function fit(e,t,r,i,s,o){return r.rootDirs?mit(r.rootDirs,e,t,o,r,i,s):Vs(ZI(e,t,o,i,!0,s).values())}function pit(e,t){const r=t?Oi(t.getAmbientModules(),o=>{const c=o.name.slice(1,-1);if(!(!c.startsWith("*.")||c.includes("/")))return c.slice(1)}):[],i=[...KP(e),r],s=j_(e);return lj(s)?vN(e,i):i}function dit(e,t,r,i){e=e.map(o=>ou(ka(zf(o)?o:Zr(t,o))));const s=li(e,o=>Xd(o,r,t,i)?r.substr(o.length):void 0);return ks([...e.map(o=>Zr(o,s)),r].map(o=>Bv(o)),WS,p_)}function mit(e,t,r,i,s,o,c){const u=s.project||o.getCurrentDirectory(),f=!(o.useCaseSensitiveFileNames&&o.useCaseSensitiveFileNames()),g=dit(e,u,r,f);return ks(Ys(g,d=>Vs(ZI(t,d,i,o,!0,c).values())),(d,y)=>d.name===y.name&&d.kind===y.kind&&d.extension===y.extension)}function ZI(e,t,r,i,s,o,c=Zme()){var u;e===void 0&&(e=""),e=t_(e),_y(e)||(e=oi(e)),e===""&&(e="."+yc),e=ou(e);const f=l1(t,e),g=_y(f)?f:oi(f);if(!s){const T=Z_e(g,i);if(T){const N=HP(T,i).typesVersions;if(typeof N=="object"){const D=(u=NM(N))==null?void 0:u.paths;if(D){const M=oi(T),V=f.slice(ou(M).length);if(BAe(c,V,M,r,i,D))return c}}}}const d=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!Tj(i,g))return c;const y=AQ(i,g,r.extensionsToSearch,void 0,["./*"]);if(y)for(let T of y){if(T=ka(T),o&&u0(T,o,t,d)===0)continue;const{name:C,extension:N}=jAe(xl(T),i.getCompilationSettings(),r,!1);c.add(CD(C,"script",N))}const x=xj(i,g);if(x)for(const T of x){const C=xl(ka(T));C!=="@types"&&c.add(ege(C))}return c}function jAe(e,t,r,i){const s=qb.tryGetRealFileNameForNonJsDeclarationFileName(e);if(s)return{name:s,extension:b0(s)};if(r.referenceKind===0)return{name:e,extension:b0(e)};let o=A7({importModuleSpecifierEnding:r.endingPreference},t,r.importingSourceFile).getAllowedEndingsInPreferredOrder(r.resolutionMode);if(i&&(o=o.filter(u=>u!==0&&u!==1)),o[0]===3){if(Vl(e,NN))return{name:e,extension:b0(e)};const u=qb.tryGetJSExtensionForFile(e,t);return u?{name:n2(e,u),extension:u}:{name:e,extension:b0(e)}}if(!i&&(o[0]===0||o[0]===1)&&Vl(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:Y_(e),extension:b0(e)};const c=qb.tryGetJSExtensionForFile(e,t);return c?{name:n2(e,c),extension:c}:{name:e,extension:b0(e)}}function BAe(e,t,r,i,s,o){const c=f=>o[f],u=(f,g)=>{const d=k4(f),y=k4(g),x=typeof d=="object"?d.prefix.length:f.length,T=typeof y=="object"?y.prefix.length:g.length;return mc(T,x)};return JAe(e,!1,t,r,i,s,Eh(o),c,u)}function JAe(e,t,r,i,s,o,c,u,f){let g=[],d;for(const y of c){if(y===".")continue;const x=y.replace(/^\.\//,""),T=u(y);if(T){const C=k4(x);if(!C)continue;const N=typeof C=="object"&&FO(C,r);N&&(d===void 0||f(y,d)===-1)&&(d=y,g=g.filter(M=>!M.matchedPattern)),(typeof C=="string"||d===void 0||f(y,d)!==1)&&g.push({matchedPattern:N,results:hit(x,T,r,i,s,t&&N,o).map(({name:M,kind:V,extension:G})=>CD(M,V,G))})}}return g.forEach(y=>y.results.forEach(x=>e.add(x))),d!==void 0}function git(e,t,r,i,s,o,c){const{baseUrl:u,paths:f}=i,g=Zme(),d=j_(i);if(u){const x=ka(Zr(s.getCurrentDirectory(),u));ZI(e,x,o,s,!1,void 0,g)}if(f){const x=S9(i,s);BAe(g,e,x,o,s,f)}const y=UAe(e);for(const x of vit(e,y,c))g.add(CD(x,"external module name",void 0));if(qAe(s,i,t,y,o,g),lj(d)){let x=!1;if(y===void 0)for(const T of Sit(s,t)){const C=CD(T,"external module name",void 0);g.has(C.name)||(x=!0,g.add(C))}if(!x){let T=C=>{const N=Zr(C,"node_modules");Tj(s,N)&&ZI(e,N,o,s,!1,void 0,g)};if(y&&lL(i)){const C=T;T=N=>{const D=au(e);D.shift();let M=D.shift();if(!M)return C(N);if(fs(M,"@")){const Z=D.shift();if(!Z)return C(N);M=Zr(M,Z)}const V=Zr(N,"node_modules",M),G=Zr(V,"package.json");if(xI(s,G)){const z=HP(G,s).exports;if(z){if(typeof z!="object"||z===null)return;const ce=Eh(z),J=D.join("/")+(D.length&&_y(e)?"/":""),ne=M1(i,r);JAe(g,!0,J,V,o,s,ce,ge=>ok(zAe(z[ge],ne)),FG);return}}return C(N)}}Yd(t,T)}}return Vs(g.values())}function zAe(e,t){if(typeof e=="string")return e;if(e&&typeof e=="object"&&!Ps(e)){for(const r in e)if(r==="default"||t.includes(r)||w7(t,r)){const i=e[r];return zAe(i,t)}}}function UAe(e){return nge(e)?_y(e)?e:oi(e):void 0}function hit(e,t,r,i,s,o,c){if(!Jc(e,"*"))return e.includes("*")?Ke:g(e,"script");const u=e.slice(0,e.length-1),f=hU(r,u);if(f===void 0)return e[e.length-2]==="/"?g(u,"directory"):Ys(t,y=>{var x;return(x=VAe("",i,y,s,o,c))==null?void 0:x.map(({name:T,...C})=>({name:u+T,...C}))});return Ys(t,d=>VAe(f,i,d,s,o,c));function g(d,y){return fs(d,r)?[{name:Bv(d),kind:y,extension:void 0}]:Ke}}function VAe(e,t,r,i,s,o){if(!o.readDirectory)return;const c=k4(r);if(c===void 0||Ls(c))return;const u=l1(c.prefix),f=_y(c.prefix)?u:oi(u),g=_y(c.prefix)?"":xl(u),d=nge(e),y=d?_y(e)?e:oi(e):void 0,x=d?Zr(f,g+y):f,T=ka(c.suffix),C=T&&b9("_"+T),N=C?[n2(T,C),T]:[T],D=ka(Zr(t,x)),M=d?D:ou(D)+g,V=T?N.map(ce=>"**/*"+ce):["./*"],G=Oi(AQ(o,D,i.extensionsToSearch,void 0,V),ce=>{const J=z(ce);if(J){if(nge(J))return ege(au(WAe(J))[1]);const{name:ne,extension:ge}=jAe(J,o.getCompilationSettings(),i,s);return CD(ne,"script",ge)}}),Z=T?Ke:Oi(xj(o,D),ce=>ce==="node_modules"?void 0:ege(ce));return[...G,...Z];function z(ce){return li(N,J=>{const ne=yit(ka(ce),M,J);return ne===void 0?void 0:WAe(ne)})}}function yit(e,t,r){return fs(e,t)&&Jc(e,r)?e.slice(t.length,e.length-r.length):void 0}function WAe(e){return e[0]===yc?e.slice(1):e}function vit(e,t,r){const s=r.getAmbientModules().map(o=>Nd(o.name)).filter(o=>fs(o,e)&&!o.includes("*"));if(t!==void 0){const o=ou(t);return s.map(c=>tP(c,o))}return s}function bit(e,t,r,i){const s=ps(e,t),o=Ph(e.text,s.pos),c=o&&Cn(o,C=>t>=C.pos&&t<=C.end);if(!c)return;const u=e.text.slice(c.pos,t),f=HAe.exec(u);if(!f)return;const[,g,d,y]=f,x=oi(e.path),T=d==="path"?ZI(y,x,tge(r,0,e),i,!0,e.path):d==="types"?qAe(i,r,x,UAe(y),tge(r,1,e)):w.fail();return MAe(y,c.pos+g.length,Vs(T.values()))}function qAe(e,t,r,i,s,o=Zme()){const c=new Map,u=kj(()=>Bw(t,e))||Ke;for(const g of u)f(g);for(const g of NQ(r,e)){const d=Zr(oi(g),"node_modules/@types");f(d)}return o;function f(g){if(Tj(e,g))for(const d of xj(e,g)){const y=D7(d);if(!(t.types&&!Ai(t.types,y)))if(i===void 0)c.has(y)||(o.add(CD(y,"external module name",void 0)),c.set(y,!0));else{const x=Zr(g,d),T=Aq(i,y,yy(e));T!==void 0&&ZI(T,x,s,e,!1,void 0,o)}}}}function Sit(e,t){if(!e.readFile||!e.fileExists)return Ke;const r=[];for(const i of NQ(t,e)){const s=HP(i,e);for(const o of GAe){const c=s[o];if(c)for(const u in c)jo(c,u)&&!fs(u,"@types/")&&r.push(u)}}return r}function xit(e,t){const r=Math.max(e.lastIndexOf(yc),e.lastIndexOf(Y8)),i=r!==-1?r+1:0,s=e.length-i;return s===0||Np(e.substr(i,s),99)?void 0:Ju(t+i,s)}function Tit(e){if(e&&e.length>=2&&e.charCodeAt(0)===46){const t=e.length>=3&&e.charCodeAt(1)===46?2:1,r=e.charCodeAt(t);return r===47||r===92}return!1}function nge(e){return e.includes(yc)}function kit(e){return ma(e.parent)&&hu(e.parent.arguments)===e&&Je(e.parent.expression)&&e.parent.expression.escapedText==="require"}var rge,HAe,GAe,Cit=K({"src/services/stringCompletions.ts"(){sle(),ci(),ige(),rge={directory:0,script:1,"external module name":2},HAe=/^(\/\/\/\s*ait,getStringLiteralCompletions:()=>iit});var Eit=K({"src/services/_namespaces/ts.Completions.StringCompletions.ts"(){Cit()}}),kC={};Ye(kC,{CompletionKind:()=>Qme,CompletionSource:()=>$me,SortText:()=>o_,StringCompletions:()=>LK,SymbolOriginInfoKind:()=>Xme,createCompletionDetails:()=>kB,createCompletionDetailsForSymbol:()=>Vme,getCompletionEntriesFromSymbols:()=>zme,getCompletionEntryDetails:()=>Lrt,getCompletionEntrySymbol:()=>Rrt,getCompletionsAtPosition:()=>prt,getPropertiesForObjectExpression:()=>AK,moduleSpecifierResolutionCacheAttemptLimit:()=>Gme,moduleSpecifierResolutionLimit:()=>OK});var ige=K({"src/services/_namespaces/ts.Completions.ts"(){rit(),Eit()}});function sge(e,t,r,i){const s=Ait(e,r,i);return(o,c,u)=>{const{directImports:f,indirectUsers:g}=Pit(e,t,s,c,r,i);return{indirectUsers:g,...wit(f,o,c.exportKind,r,u)}}}function Pit(e,t,r,{exportingModuleSymbol:i,exportKind:s},o,c){const u=dC(),f=dC(),g=[],d=!!i.globalExports,y=d?void 0:[];return T(i),{directImports:g,indirectUsers:x()};function x(){if(d)return e;if(i.declarations)for(const G of i.declarations)db(G)&&t.has(G.getSourceFile().fileName)&&M(G);return y.map(qn)}function T(G){const Z=V(G);if(Z){for(const z of Z)if(u(z))switch(c&&c.throwIfCancellationRequested(),z.kind){case 213:if(gp(z)){C(z);break}if(!d){const J=z.parent;if(s===2&&J.kind===260){const{name:ne}=J;if(ne.kind===80){g.push(ne);break}}}break;case 80:break;case 271:D(z,z.name,Kr(z,32),!1);break;case 272:g.push(z);const ce=z.importClause&&z.importClause.namedBindings;ce&&ce.kind===274?D(z,ce.name,!1,!0):!d&&bk(z)&&M(PB(z));break;case 278:z.exportClause?z.exportClause.kind===280?M(PB(z),!0):g.push(z):T(Lit(z,o));break;case 205:!d&&z.isTypeOf&&!z.qualifier&&N(z)&&M(z.getSourceFile(),!0),g.push(z);break;default:w.failBadSyntaxKind(z,"Unexpected import kind.")}}}function C(G){const Z=Vn(G,MK)||G.getSourceFile();M(Z,!!N(G,!0))}function N(G,Z=!1){return Vn(G,z=>Z&&MK(z)?"quit":sm(z)&&Pe(z.modifiers,Uk))}function D(G,Z,z,ce){if(s===2)ce||g.push(G);else if(!d){const J=PB(G);w.assert(J.kind===312||J.kind===267),z||Dit(J,Z,o)?M(J,!0):M(J)}}function M(G,Z=!1){if(w.assert(!d),!f(G)||(y.push(G),!Z))return;const ce=o.getMergedSymbol(G.symbol);if(!ce)return;w.assert(!!(ce.flags&1536));const J=V(ce);if(J)for(const ne of J)zh(ne)||M(PB(ne),!0)}function V(G){return r.get(Ia(G).toString())}}function wit(e,t,r,i,s){const o=[],c=[];function u(x,T){o.push([x,T])}if(e)for(const x of e)f(x);return{importSearches:o,singleReferences:c};function f(x){if(x.kind===271){oge(x)&&g(x.name);return}if(x.kind===80){g(x);return}if(x.kind===205){if(x.qualifier){const N=yp(x.qualifier);N.escapedText===Rc(t)&&c.push(N)}else r===2&&c.push(x.argument.literal);return}if(x.moduleSpecifier.kind!==11)return;if(x.kind===278){x.exportClause&&sd(x.exportClause)&&d(x.exportClause);return}const{name:T,namedBindings:C}=x.importClause||{name:void 0,namedBindings:void 0};if(C)switch(C.kind){case 274:g(C.name);break;case 275:(r===0||r===1)&&d(C);break;default:w.assertNever(C)}if(T&&(r===1||r===2)&&(!s||T.escapedText===_j(t))){const N=i.getSymbolAtLocation(T);u(T,N)}}function g(x){r===2&&(!s||y(x.escapedText))&&u(x,i.getSymbolAtLocation(x))}function d(x){if(x)for(const T of x.elements){const{name:C,propertyName:N}=T;if(y((N||C).escapedText))if(N)c.push(N),(!s||C.escapedText===t.escapedName)&&u(C,i.getSymbolAtLocation(C));else{const D=T.kind===281&&T.propertyName?i.getExportSpecifierLocalTargetSymbol(T):i.getSymbolAtLocation(C);u(C,D)}}}function y(x){return x===t.escapedName||r!==0&&x==="default"}}function Dit(e,t,r){const i=r.getSymbolAtLocation(t);return!!XAe(e,s=>{if(!ml(s))return;const{exportClause:o,moduleSpecifier:c}=s;return!c&&o&&sd(o)&&o.elements.some(u=>r.getExportSpecifierLocalTargetSymbol(u)===i)})}function $Ae(e,t,r){var i;const s=[],o=e.getTypeChecker();for(const c of t){const u=r.valueDeclaration;if((u==null?void 0:u.kind)===312){for(const f of c.referencedFiles)e.getSourceFileFromReference(c,f)===u&&s.push({kind:"reference",referencingFile:c,ref:f});for(const f of c.typeReferenceDirectives){const g=(i=e.getResolvedTypeReferenceDirectives().get(f.fileName,f.resolutionMode||c.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective;g!==void 0&&g.resolvedFileName===u.fileName&&s.push({kind:"reference",referencingFile:c,ref:f})}}QAe(c,(f,g)=>{o.getSymbolAtLocation(g)===r&&s.push(lc(f)?{kind:"implicit",literal:g,referencingFile:c}:{kind:"import",literal:g})})}return s}function Ait(e,t,r){const i=new Map;for(const s of e)r&&r.throwIfCancellationRequested(),QAe(s,(o,c)=>{const u=t.getSymbolAtLocation(c);if(u){const f=Ia(u).toString();let g=i.get(f);g||i.set(f,g=[]),g.push(o)}});return i}function XAe(e,t){return dt(e.kind===312?e.statements:e.body.statements,r=>t(r)||MK(r)&&dt(r.body&&r.body.statements,t))}function QAe(e,t){if(e.externalModuleIndicator||e.imports!==void 0)for(const r of e.imports)t(NP(r),r);else XAe(e,r=>{switch(r.kind){case 278:case 272:{const i=r;i.moduleSpecifier&&Ba(i.moduleSpecifier)&&t(i,i.moduleSpecifier);break}case 271:{const i=r;oge(i)&&t(i,i.moduleReference.expression);break}}})}function YAe(e,t,r,i){return i?s():s()||o();function s(){var f;const{parent:g}=e,d=g.parent;if(t.exportSymbol)return g.kind===211?(f=t.declarations)!=null&&f.some(T=>T===g)&&mr(d)?x(d,!1):void 0:c(t.exportSymbol,u(g));{const T=Iit(g,e);if(T&&Kr(T,32))return Tu(T)&&T.moduleReference===e?i?void 0:{kind:0,symbol:r.getSymbolAtLocation(T.name)}:c(t,u(T));if(Zg(g))return c(t,0);if(Qc(g))return y(g);if(Qc(d))return y(d);if(mr(g))return x(g,!0);if(mr(d))return x(d,!0);if(Dx(g)||IH(g))return c(t,0)}function y(T){if(!T.symbol.parent)return;const C=T.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:T.symbol.parent,exportKind:C}}}function x(T,C){let N;switch(rl(T)){case 1:N=0;break;case 2:N=2;break;default:return}const D=C?r.getSymbolAtLocation(Cq(pa(T.left,$o))):t;return D&&c(D,N)}}function o(){if(!Oit(e))return;let g=r.getImmediateAliasedSymbol(t);if(!g||(g=Fit(g,r),g.escapedName==="export="&&(g=Nit(g,r),g===void 0)))return;const d=_j(g);if(d===void 0||d==="default"||d===t.escapedName)return{kind:0,symbol:g}}function c(f,g){const d=age(f,g,r);return d&&{kind:1,symbol:f,exportInfo:d}}function u(f){return Kr(f,2048)?1:0}}function Nit(e,t){var r,i;if(e.flags&2097152)return t.getImmediateAliasedSymbol(e);const s=w.checkDefined(e.valueDeclaration);if(Qc(s))return(r=si(s.expression,Km))==null?void 0:r.symbol;if(mr(s))return(i=si(s.right,Km))==null?void 0:i.symbol;if(es(s))return s.symbol}function Iit(e,t){const r=Ji(e)?e:oo(e)?j6(e):void 0;return r?e.name!==t||Jb(r.parent)?void 0:Xc(r.parent.parent)?r.parent.parent:void 0:e}function Oit(e){const{parent:t}=e;switch(t.kind){case 271:return t.name===e&&oge(t);case 276:return!t.propertyName;case 273:case 274:return w.assert(t.name===e),!0;case 208:return lr(e)&&yb(t.parent.parent);default:return!1}}function age(e,t,r){const i=e.parent;if(!i)return;const s=r.getMergedSymbol(i);return fI(s)?{exportingModuleSymbol:s,exportKind:t}:void 0}function Fit(e,t){if(e.declarations)for(const r of e.declarations){if(h_(r)&&!r.propertyName&&!r.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(r)||e;if(Jr(r)&&Fh(r.expression)&&!Qi(r.name))return t.getSymbolAtLocation(r);if(Af(r)&&mr(r.parent.parent)&&rl(r.parent.parent)===2)return t.getExportSpecifierLocalTargetSymbol(r.name)}return e}function Lit(e,t){return t.getMergedSymbol(PB(e).symbol)}function PB(e){if(e.kind===213)return e.getSourceFile();const{parent:t}=e;return t.kind===312?t:(w.assert(t.kind===268),pa(t.parent,MK))}function MK(e){return e.kind===267&&e.name.kind===11}function oge(e){return e.moduleReference.kind===283&&e.moduleReference.expression.kind===11}var cge,lge,Mit=K({"src/services/importTracker.ts"(){ci(),cge=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(cge||{}),lge=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(lge||{})}});function qh(e,t=1){return{kind:t,node:e.name||e,context:Rit(e)}}function uge(e){return e&&e.kind===void 0}function Rit(e){if(g_(e))return Wx(e);if(e.parent){if(!g_(e.parent)&&!Qc(e.parent)){if(lr(e)){const r=mr(e.parent)?e.parent:$o(e.parent)&&mr(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(r&&rl(r)!==0)return Wx(r)}if(ug(e.parent)||Rb(e.parent))return e.parent.parent;if(Ex(e.parent)||Mb(e.parent)||mP(e.parent))return e.parent;if(vo(e)){const r=XA(e);if(r){const i=Vn(r,s=>g_(s)||Xi(s)||q6(s));return g_(i)?Wx(i):i}}const t=Vn(e,co);return t?Wx(t.parent):void 0}if(e.parent.name===e||$c(e.parent)||Qc(e.parent)||(pk(e.parent)||oo(e.parent))&&e.parent.propertyName===e||e.kind===90&&Kr(e.parent,2080))return Wx(e.parent)}}function Wx(e){if(e)switch(e.kind){case 260:return!_u(e.parent)||e.parent.declarations.length!==1?e:Xc(e.parent.parent)?e.parent.parent:V6(e.parent.parent)?Wx(e.parent.parent):e.parent;case 208:return Wx(e.parent.parent);case 276:return e.parent.parent.parent;case 281:case 274:return e.parent.parent;case 273:case 280:return e.parent;case 226:return xu(e.parent)?e.parent:e;case 250:case 249:return{start:e.initializer,end:e.expression};case 303:case 304:return Ay(e.parent)?Wx(Vn(e.parent,t=>mr(t)||V6(t))):e;case 255:return{start:Cn(e.getChildren(e.getSourceFile()),t=>t.kind===109),end:e.caseBlock};default:return e}}function _ge(e,t,r){if(!r)return;const i=uge(r)?DB(r.start,t,r.end):DB(r,t);return i.start!==e.start||i.length!==e.length?{contextSpan:i}:void 0}function jit(e,t,r,i,s){const o=mf(i,s),c={use:1},u=CC.getReferencedSymbolsForNode(s,o,e,r,t,c),f=e.getTypeChecker(),g=CC.getAdjustedNode(o,c),d=Bit(g)?f.getSymbolAtLocation(g):void 0;return!u||!u.length?void 0:Oi(u,({definition:y,references:x})=>y&&{definition:f.runWithCancellationToken(t,T=>Uit(y,T,o)),references:x.map(T=>Wit(T,d))})}function Bit(e){return e.kind===90||!!IP(e)||nN(e)||e.kind===137&&$c(e.parent)}function Jit(e,t,r,i,s){const o=mf(i,s);let c;const u=ZAe(e,t,r,o,s);if(o.parent.kind===211||o.parent.kind===208||o.parent.kind===212||o.kind===108)c=u&&[...u];else if(u){const g=R8(u),d=new Map;for(;!g.isEmpty();){const y=g.dequeue();if(!nm(d,ho(y.node)))continue;c=gn(c,y);const x=ZAe(e,t,r,y.node,y.node.pos);x&&g.enqueue(...x)}}const f=e.getTypeChecker();return Kt(c,g=>Hit(g,f))}function ZAe(e,t,r,i,s){if(i.kind===312)return;const o=e.getTypeChecker();if(i.parent.kind===304){const c=[];return CC.getReferenceEntriesForShorthandPropertyAssignment(i,o,u=>c.push(qh(u))),c}else if(i.kind===108||ff(i.parent)){const c=o.getSymbolAtLocation(i);return c.valueDeclaration&&[qh(c.valueDeclaration)]}else return KAe(s,i,e,r,t,{implementations:!0,use:1})}function zit(e,t,r,i,s,o,c){return Kt(eNe(CC.getReferencedSymbolsForNode(s,i,e,r,t,o)),u=>c(u,i,e.getTypeChecker()))}function KAe(e,t,r,i,s,o={},c=new Set(i.map(u=>u.fileName))){return eNe(CC.getReferencedSymbolsForNode(e,t,r,i,s,o,c))}function eNe(e){return e&&Ys(e,t=>t.references)}function Uit(e,t,r){const i=(()=>{switch(e.type){case 0:{const{symbol:d}=e,{displayParts:y,kind:x}=tNe(d,t,r),T=y.map(D=>D.text).join(""),C=d.declarations&&hu(d.declarations),N=C?Ms(C)||C:r;return{...wB(N),name:T,kind:x,displayParts:y,context:Wx(C)}}case 1:{const{node:d}=e;return{...wB(d),name:d.text,kind:"label",displayParts:[Nf(d.text,17)]}}case 2:{const{node:d}=e,y=ba(d.kind);return{...wB(d),name:y,kind:"keyword",displayParts:[{text:y,kind:"keyword"}]}}case 3:{const{node:d}=e,y=t.getSymbolAtLocation(d),x=y&&Ly.getSymbolDisplayPartsDocumentationAndSymbolKind(t,y,d.getSourceFile(),Bx(d),d).displayParts||[Jp("this")];return{...wB(d),name:"this",kind:"var",displayParts:x}}case 4:{const{node:d}=e;return{...wB(d),name:d.text,kind:"var",displayParts:[Nf(Ol(d),8)]}}case 5:return{textSpan:B1(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[Nf(`"${e.reference.fileName}"`,8)]};default:return w.assertNever(e)}})(),{sourceFile:s,textSpan:o,name:c,kind:u,displayParts:f,context:g}=i;return{containerKind:"",containerName:"",fileName:s.fileName,kind:u,name:c,textSpan:o,displayParts:f,..._ge(o,s,g)}}function wB(e){const t=e.getSourceFile();return{sourceFile:t,textSpan:DB(co(e)?e.expression:e,t)}}function tNe(e,t,r){const i=CC.getIntersectingMeaningFromDeclarations(r,e),s=e.declarations&&hu(e.declarations)||r,{displayParts:o,symbolKind:c}=Ly.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,s.getSourceFile(),s,s,i);return{displayParts:o,kind:c}}function Vit(e,t,r,i,s){return{...RK(e),...i&&qit(e,t,r,s)}}function Wit(e,t){const r=nNe(e);return t?{...r,isDefinition:e.kind!==0&&rNe(e.node,t)}:r}function nNe(e){const t=RK(e);if(e.kind===0)return{...t,isWriteAccess:!1};const{kind:r,node:i}=e;return{...t,isWriteAccess:pge(i),isInString:r===2?!0:void 0}}function RK(e){if(e.kind===0)return{textSpan:e.textSpan,fileName:e.fileName};{const t=e.node.getSourceFile(),r=DB(e.node,t);return{textSpan:r,fileName:t.fileName,..._ge(r,t,e.context)}}}function qit(e,t,r,i){if(e.kind!==0&&Je(t)){const{node:s,kind:o}=e,c=s.parent,u=t.text,f=Af(c);if(f||mI(c)&&c.name===s&&c.dotDotDotToken===void 0){const g={prefixText:u+": "},d={suffixText:": "+u};if(o===3)return g;if(o===4)return d;if(f){const y=c.parent;return Va(y)&&mr(y.parent)&&Fh(y.parent.left)?g:d}else return g}else if(Df(c)&&!c.propertyName){const g=h_(t.parent)?r.getExportSpecifierLocalTargetSymbol(t.parent):r.getSymbolAtLocation(t);return Ai(g.declarations,c)?{prefixText:u+" as "}:cd}else if(h_(c)&&!c.propertyName)return t===e.node||r.getSymbolAtLocation(t)===r.getSymbolAtLocation(e.node)?{prefixText:u+" as "}:{suffixText:" as "+u}}if(e.kind!==0&&Hf(e.node)&&$o(e.node.parent)){const s=dQ(i);return{prefixText:s,suffixText:s}}return cd}function Hit(e,t){const r=RK(e);if(e.kind!==0){const{node:i}=e;return{...r,...Git(i,t)}}else return{...r,kind:"",displayParts:[]}}function Git(e,t){const r=t.getSymbolAtLocation(g_(e)&&e.name?e.name:e);return r?tNe(r,t,e):e.kind===210?{kind:"interface",displayParts:[b_(21),Jp("object literal"),b_(22)]}:e.kind===231?{kind:"local class",displayParts:[b_(21),Jp("anonymous local class"),b_(22)]}:{kind:Qb(e),displayParts:[]}}function $it(e){const t=RK(e);if(e.kind===0)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};const r=pge(e.node),i={textSpan:t.textSpan,kind:r?"writtenReference":"reference",isInString:e.kind===2?!0:void 0,...t.contextSpan&&{contextSpan:t.contextSpan}};return{fileName:t.fileName,span:i}}function DB(e,t,r){let i=e.getStart(t),s=(r||e).getEnd();return vo(e)&&s-i>2&&(w.assert(r===void 0),i+=1,s-=1),(r==null?void 0:r.kind)===269&&(s=r.getFullStart()),Il(i,s)}function fge(e){return e.kind===0?e.textSpan:DB(e.node,e.node.getSourceFile())}function pge(e){const t=IP(e);return!!t&&Xit(t)||e.kind===90||wk(e)}function rNe(e,t){var r;if(!t)return!1;const i=IP(e)||(e.kind===90?e.parent:nN(e)||e.kind===137&&$c(e.parent)?e.parent.parent:void 0),s=i&&mr(i)?i.left:void 0;return!!(i&&((r=t.declarations)!=null&&r.some(o=>o===i||o===s)))}function Xit(e){if(e.flags&33554432)return!0;switch(e.kind){case 226:case 208:case 263:case 231:case 90:case 266:case 306:case 281:case 273:case 271:case 276:case 264:case 345:case 353:case 291:case 267:case 270:case 274:case 280:case 169:case 304:case 265:case 168:return!0;case 303:return!Ay(e.parent);case 262:case 218:case 176:case 174:case 177:case 178:return!!e.body;case 260:case 172:return!!e.initializer||Jb(e.parent);case 173:case 171:case 355:case 348:return!1;default:return w.failBadSyntaxKind(e)}}var dge,mge,gge,CC,Qit=K({"src/services/findAllReferences.ts"(){ci(),hge(),dge=(e=>(e[e.Symbol=0]="Symbol",e[e.Label=1]="Label",e[e.Keyword=2]="Keyword",e[e.This=3]="This",e[e.String=4]="String",e[e.TripleSlashReference=5]="TripleSlashReference",e))(dge||{}),mge=(e=>(e[e.Span=0]="Span",e[e.Node=1]="Node",e[e.StringLiteral=2]="StringLiteral",e[e.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",e[e.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",e))(mge||{}),gge=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(gge||{}),(e=>{function t(Ve,pt,ft,At,le,Me={},_t=new Set(At.map(U=>U.fileName))){var U,it;if(pt=r(pt,Me),es(pt)){const mn=N3.getReferenceAtPosition(pt,Ve,ft);if(!(mn!=null&&mn.file))return;const q=ft.getTypeChecker().getMergedSymbol(mn.file.symbol);if(q)return g(ft,q,!1,At,_t);const Fe=ft.getFileIncludeReasons();return Fe?[{definition:{type:5,reference:mn.reference,file:pt},references:s(mn.file,Fe,ft)||Ke}]:void 0}if(!Me.implementations){const mn=y(pt,At,le);if(mn)return mn}const Et=ft.getTypeChecker(),Ge=Et.getSymbolAtLocation($c(pt)&&pt.parent.name||pt);if(!Ge){if(!Me.implementations&&vo(pt)){if(fj(pt)){const mn=ft.getFileIncludeReasons(),q=(it=(U=ft.getResolvedModuleFromModuleSpecifier(pt))==null?void 0:U.resolvedModule)==null?void 0:it.resolvedFileName,Fe=q?ft.getSourceFile(q):void 0;if(Fe)return[{definition:{type:4,node:pt},references:s(Fe,mn,ft)||Ke}]}return Fi(pt,At,Et,le)}return}if(Ge.escapedName==="export=")return g(ft,Ge.parent,!1,At,_t);const mt=c(Ge,ft,At,le,Me,_t);if(mt&&!(Ge.flags&33554432))return mt;const Ut=o(pt,Ge,Et),vn=Ut&&c(Ut,ft,At,le,Me,_t),pn=x(Ge,pt,At,_t,Et,le,Me);return u(ft,mt,pn,vn)}e.getReferencedSymbolsForNode=t;function r(Ve,pt){return pt.use===1?Ve=KX(Ve):pt.use===2&&(Ve=ej(Ve)),Ve}e.getAdjustedNode=r;function i(Ve,pt,ft,At=new Set(ft.map(le=>le.fileName))){var le,Me;const _t=(le=pt.getSourceFile(Ve))==null?void 0:le.symbol;if(_t)return((Me=g(pt,_t,!1,ft,At)[0])==null?void 0:Me.references)||Ke;const U=pt.getFileIncludeReasons(),it=pt.getSourceFile(Ve);return it&&U&&s(it,U,pt)||Ke}e.getReferencesForFileName=i;function s(Ve,pt,ft){let At;const le=pt.get(Ve.path)||Ke;for(const Me of le)if(m2(Me)){const _t=ft.getSourceFileByPath(Me.file),U=tD(ft,Me);i3(U)&&(At=gn(At,{kind:0,fileName:_t.fileName,textSpan:B1(U)}))}return At}function o(Ve,pt,ft){if(Ve.parent&&YN(Ve.parent)){const At=ft.getAliasedSymbol(pt),le=ft.getMergedSymbol(At);if(At!==le)return le}}function c(Ve,pt,ft,At,le,Me){const _t=Ve.flags&1536&&Ve.declarations&&Cn(Ve.declarations,es);if(!_t)return;const U=Ve.exports.get("export="),it=g(pt,Ve,!!U,ft,Me);if(!U||!Me.has(_t.fileName))return it;const Et=pt.getTypeChecker();return Ve=Uu(U,Et),u(pt,it,x(Ve,void 0,ft,Me,Et,At,le))}function u(Ve,...pt){let ft;for(const At of pt)if(!(!At||!At.length)){if(!ft){ft=At;continue}for(const le of At){if(!le.definition||le.definition.type!==0){ft.push(le);continue}const Me=le.definition.symbol,_t=Gs(ft,it=>!!it.definition&&it.definition.type===0&&it.definition.symbol===Me);if(_t===-1){ft.push(le);continue}const U=ft[_t];ft[_t]={definition:U.definition,references:U.references.concat(le.references).sort((it,Et)=>{const Ge=f(Ve,it),mt=f(Ve,Et);if(Ge!==mt)return mc(Ge,mt);const Ut=fge(it),vn=fge(Et);return Ut.start!==vn.start?mc(Ut.start,vn.start):mc(Ut.length,vn.length)})}}}return ft}function f(Ve,pt){const ft=pt.kind===0?Ve.getSourceFile(pt.fileName):pt.node.getSourceFile();return Ve.getSourceFiles().indexOf(ft)}function g(Ve,pt,ft,At,le){w.assert(!!pt.valueDeclaration);const Me=Oi($Ae(Ve,At,pt),U=>{if(U.kind==="import"){const it=U.literal.parent;if(N1(it)){const Et=pa(it.parent,zh);if(ft&&!Et.qualifier)return}return qh(U.literal)}else if(U.kind==="implicit"){const it=U.literal.text!==E1&&Ow(U.referencingFile,Et=>Et.transformFlags&2?Uh(Et)||Ex(Et)||jb(Et)?Et:void 0:"skip")||U.referencingFile.statements[0]||U.referencingFile;return qh(it)}else return{kind:0,fileName:U.referencingFile.fileName,textSpan:B1(U.ref)}});if(pt.declarations)for(const U of pt.declarations)switch(U.kind){case 312:break;case 267:le.has(U.getSourceFile().fileName)&&Me.push(qh(U.name));break;default:w.assert(!!(pt.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}const _t=pt.exports.get("export=");if(_t!=null&&_t.declarations)for(const U of _t.declarations){const it=U.getSourceFile();if(le.has(it.fileName)){const Et=mr(U)&&Jr(U.left)?U.left.expression:Qc(U)?w.checkDefined(wo(U,95,it)):Ms(U)||U;Me.push(qh(Et))}}return Me.length?[{definition:{type:0,symbol:pt},references:Me}]:Ke}function d(Ve){return Ve.kind===148&&Sx(Ve.parent)&&Ve.parent.operator===148}function y(Ve,pt,ft){if(lD(Ve.kind))return Ve.kind===116&&Xk(Ve.parent)||Ve.kind===148&&!d(Ve)?void 0:Ne(pt,Ve.kind,ft,Ve.kind===148?d:void 0);if(Z6(Ve.parent)&&Ve.parent.name===Ve)return ye(pt,ft);if(Vk(Ve)&&Vc(Ve.parent))return[{definition:{type:2,node:Ve},references:[qh(Ve)]}];if(iI(Ve)){const At=$R(Ve.parent,Ve.text);return At&&fe(At.parent,At)}else if(WX(Ve))return fe(Ve.parent,Ve);if(f3(Ve))return On(Ve,pt,ft);if(Ve.kind===108)return zi(Ve)}function x(Ve,pt,ft,At,le,Me,_t){const U=pt&&N(Ve,pt,le,!Ln(_t))||Ve,it=pt?vi(pt,U):7,Et=[],Ge=new V(ft,At,pt?C(pt):0,le,Me,it,_t,Et),mt=!Ln(_t)||!U.declarations?void 0:Cn(U.declarations,h_);if(mt)Tt(mt.name,U,mt,Ge.createSearch(pt,Ve,void 0),Ge,!0,!0);else if(pt&&pt.kind===90&&U.escapedName==="default"&&U.parent)yt(pt,U,Ge),G(pt,U,{exportingModuleSymbol:U.parent,exportKind:1},Ge);else{const Ut=Ge.createSearch(pt,U,void 0,{allSearchSymbols:pt?cn(U,pt,le,_t.use===2,!!_t.providePrefixAndSuffixTextForRename,!!_t.implementations):[U]});T(U,Ge,Ut)}return Et}function T(Ve,pt,ft){const At=ge(Ve);if(At)Se(At,At.getSourceFile(),ft,pt,!(es(At)&&!Ai(pt.sourceFiles,At)));else for(const le of pt.sourceFiles)pt.cancellationToken.throwIfCancellationRequested(),J(le,ft,pt)}function C(Ve){switch(Ve.kind){case 176:case 137:return 1;case 80:if(fi(Ve.parent))return w.assert(Ve.parent.name===Ve),2;default:return 0}}function N(Ve,pt,ft,At){const{parent:le}=pt;return h_(le)&&At?xe(pt,Ve,le,ft):li(Ve.declarations,Me=>{if(!Me.parent){if(Ve.flags&33554432)return;w.fail(`Unexpected symbol at ${w.formatSyntaxKind(pt.kind)}: ${w.formatSymbol(Ve)}`)}return Xf(Me.parent)&&A1(Me.parent.parent)?ft.getPropertyOfType(ft.getTypeFromTypeNode(Me.parent.parent),Ve.name):void 0})}let D;(Ve=>{Ve[Ve.None=0]="None",Ve[Ve.Constructor=1]="Constructor",Ve[Ve.Class=2]="Class"})(D||(D={}));function M(Ve){if(!(Ve.flags&33555968))return;const pt=Ve.declarations&&Cn(Ve.declarations,ft=>!es(ft)&&!dl(ft));return pt&&pt.symbol}class V{constructor(pt,ft,At,le,Me,_t,U,it){this.sourceFiles=pt,this.sourceFilesSet=ft,this.specialSearchKind=At,this.checker=le,this.cancellationToken=Me,this.searchMeaning=_t,this.options=U,this.result=it,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=dC(),this.markSeenReExportRHS=dC(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(pt){return this.sourceFilesSet.has(pt.fileName)}getImportSearches(pt,ft){return this.importTracker||(this.importTracker=sge(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(pt,ft,this.options.use===2)}createSearch(pt,ft,At,le={}){const{text:Me=Nd(Rc(v4(ft)||M(ft)||ft)),allSearchSymbols:_t=[ft]}=le,U=Nc(Me),it=this.options.implementations&&pt?Tn(pt,ft,this.checker):void 0;return{symbol:ft,comingFrom:At,text:Me,escapedText:U,parents:it,allSearchSymbols:_t,includes:Et=>Ai(_t,Et)}}referenceAdder(pt){const ft=Ia(pt);let At=this.symbolIdToReferences[ft];return At||(At=this.symbolIdToReferences[ft]=[],this.result.push({definition:{type:0,symbol:pt},references:At})),(le,Me)=>At.push(qh(le,Me))}addStringOrCommentReference(pt,ft){this.result.push({definition:void 0,references:[{kind:0,fileName:pt,textSpan:ft}]})}markSearchedSymbols(pt,ft){const At=ho(pt),le=this.sourceFileToSeenSymbols[At]||(this.sourceFileToSeenSymbols[At]=new Set);let Me=!1;for(const _t of ft)Me=Na(le,Ia(_t))||Me;return Me}}function G(Ve,pt,ft,At){const{importSearches:le,singleReferences:Me,indirectUsers:_t}=At.getImportSearches(pt,ft);if(Me.length){const U=At.referenceAdder(pt);for(const it of Me)z(it,At)&&U(it)}for(const[U,it]of le)Ue(U.getSourceFile(),At.createSearch(U,it,1),At);if(_t.length){let U;switch(ft.exportKind){case 0:U=At.createSearch(Ve,pt,1);break;case 1:U=At.options.use===2?void 0:At.createSearch(Ve,pt,1,{text:"default"});break}if(U)for(const it of _t)J(it,U,At)}}function Z(Ve,pt,ft,At,le,Me,_t,U){const it=sge(Ve,new Set(Ve.map(Ut=>Ut.fileName)),pt,ft),{importSearches:Et,indirectUsers:Ge,singleReferences:mt}=it(At,{exportKind:_t?1:0,exportingModuleSymbol:le},!1);for(const[Ut]of Et)U(Ut);for(const Ut of mt)Je(Ut)&&zh(Ut.parent)&&U(Ut);for(const Ut of Ge)for(const vn of pe(Ut,_t?"default":Me)){const pn=pt.getSymbolAtLocation(vn),mn=Pe(pn==null?void 0:pn.declarations,q=>!!si(q,Qc));Je(vn)&&!pk(vn.parent)&&(pn===At||mn)&&U(vn)}}e.eachExportReference=Z;function z(Ve,pt){return Ee(Ve,pt)?pt.options.use!==2?!0:Je(Ve)?!(pk(Ve.parent)&&Ve.escapedText==="default"):!1:!1}function ce(Ve,pt){if(Ve.declarations)for(const ft of Ve.declarations){const At=ft.getSourceFile();Ue(At,pt.createSearch(ft,Ve,0),pt,pt.includesSourceFile(At))}}function J(Ve,pt,ft){zY(Ve).get(pt.escapedText)!==void 0&&Ue(Ve,pt,ft)}function ne(Ve,pt){return Ay(Ve.parent.parent)?pt.getPropertySymbolOfDestructuringAssignment(Ve):void 0}function ge(Ve){const{declarations:pt,flags:ft,parent:At,valueDeclaration:le}=Ve;if(le&&(le.kind===218||le.kind===231))return le;if(!pt)return;if(ft&8196){const U=Cn(pt,it=>qf(it,2)||O_(it));return U?e2(U,263):void 0}if(pt.some(mI))return;const Me=At&&!(Ve.flags&262144);if(Me&&!(fI(At)&&!At.globalExports))return;let _t;for(const U of pt){const it=Bx(U);if(_t&&_t!==it||!it||it.kind===312&&!mp(it))return;if(_t=it,Xo(_t)){let Et;for(;Et=UW(_t);)_t=Et}}return Me?_t.getSourceFile():_t}function ve(Ve,pt,ft,At=ft){return Q(Ve,pt,ft,()=>!0,At)||!1}e.isSymbolReferencedInFile=ve;function Q(Ve,pt,ft,At,le=ft){const Me=Uf(Ve.parent,Ve.parent.parent)?Ka(pt.getSymbolsOfParameterPropertyDeclaration(Ve.parent,Ve.text)):pt.getSymbolAtLocation(Ve);if(Me)for(const _t of pe(ft,Me.name,le)){if(!Je(_t)||_t===Ve||_t.escapedText!==Ve.escapedText)continue;const U=pt.getSymbolAtLocation(_t);if(U===Me||pt.getShorthandAssignmentValueSymbol(_t.parent)===Me||h_(_t.parent)&&xe(_t,U,_t.parent,pt)===Me){const it=At(_t);if(it)return it}}}e.eachSymbolReferenceInFile=Q;function X(Ve,pt){return vr(pe(pt,Ve),le=>!!IP(le)).reduce((le,Me)=>{const _t=At(Me);return!Pe(le.declarationNames)||_t===le.depth?(le.declarationNames.push(Me),le.depth=_t):_tGe===le)&&At(_t,it))return!0}return!1}e.someSignatureUsage=se;function pe(Ve,pt,ft=Ve){return Oi(we(Ve,pt,ft),At=>{const le=mf(Ve,At);return le===Ve?void 0:le})}function we(Ve,pt,ft=Ve){const At=[];if(!pt||!pt.length)return At;const le=Ve.text,Me=le.length,_t=pt.length;let U=le.indexOf(pt,ft.pos);for(;U>=0&&!(U>ft.end);){const it=U+_t;(U===0||!zv(le.charCodeAt(U-1),99))&&(it===Me||!zv(le.charCodeAt(it),99))&&At.push(U),U=le.indexOf(pt,U+_t+1)}return At}function fe(Ve,pt){const ft=Ve.getSourceFile(),At=pt.text,le=Oi(pe(ft,At,Ve),Me=>Me===pt||iI(Me)&&$R(Me,At)===pt?qh(Me):void 0);return[{definition:{type:1,node:pt},references:le}]}function ie(Ve,pt){switch(Ve.kind){case 81:if(o2(Ve.parent))return!0;case 80:return Ve.text.length===pt.length;case 15:case 11:{const ft=Ve;return(XR(ft)||$X(Ve)||y_e(Ve)||ma(Ve.parent)&&ox(Ve.parent)&&Ve.parent.arguments[1]===Ve)&&ft.text.length===pt.length}case 9:return XR(Ve)&&Ve.text.length===pt.length;case 90:return pt.length===7;default:return!1}}function ye(Ve,pt){const ft=Ys(Ve,At=>(pt.throwIfCancellationRequested(),Oi(pe(At,"meta",At),le=>{const Me=le.parent;if(Z6(Me))return qh(Me)})));return ft.length?[{definition:{type:2,node:ft[0].node},references:ft}]:void 0}function Ne(Ve,pt,ft,At){const le=Ys(Ve,Me=>(ft.throwIfCancellationRequested(),Oi(pe(Me,ba(pt),Me),_t=>{if(_t.kind===pt&&(!At||At(_t)))return qh(_t)})));return le.length?[{definition:{type:2,node:le[0].node},references:le}]:void 0}function Ue(Ve,pt,ft,At=!0){return ft.cancellationToken.throwIfCancellationRequested(),Se(Ve,Ve,pt,ft,At)}function Se(Ve,pt,ft,At,le){if(At.markSearchedSymbols(pt,ft.allSearchSymbols))for(const Me of we(pt,ft.text,Ve))Ae(pt,Me,ft,At,le)}function Ee(Ve,pt){return!!(jx(Ve)&pt.searchMeaning)}function Ae(Ve,pt,ft,At,le){const Me=mf(Ve,pt);if(!ie(Me,ft.text)){!At.options.implementations&&(At.options.findInStrings&&pC(Ve,pt)||At.options.findInComments&&I_e(Ve,pt))&&At.addStringOrCommentReference(Ve.fileName,Ju(pt,ft.text.length));return}if(!Ee(Me,At))return;let _t=At.checker.getSymbolAtLocation(Me);if(!_t)return;const U=Me.parent;if(Df(U)&&U.propertyName===Me)return;if(h_(U)){w.assert(Me.kind===80),Tt(Me,_t,U,ft,At,le);return}if(gP(U)&&U.isNameFirst&&U.typeExpression&&wx(U.typeExpression.type)&&U.typeExpression.type.jsDocPropertyTags&&Xe(U.typeExpression.type.jsDocPropertyTags)){Le(U.typeExpression.type.jsDocPropertyTags,Me,ft,At);return}const it=ui(ft,_t,Me,At);if(!it){zt(_t,ft,At);return}switch(At.specialSearchKind){case 0:le&&yt(Me,it,At);break;case 1:$e(Me,Ve,ft,At);break;case 2:kt(Me,ft,At);break;default:w.assertNever(At.specialSearchKind)}lr(Me)&&oo(Me.parent)&&yb(Me.parent.parent.parent)&&(_t=Me.parent.symbol,!_t)||st(Me,_t,ft,At)}function Le(Ve,pt,ft,At){const le=At.referenceAdder(ft.symbol);yt(pt,ft.symbol,At),dt(Ve,Me=>{Z_(Me.name)&&le(Me.name.left)})}function Tt(Ve,pt,ft,At,le,Me,_t){w.assert(!_t||!!le.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");const{parent:U,propertyName:it,name:Et}=ft,Ge=U.parent,mt=xe(Ve,pt,ft,le.checker);if(!_t&&!At.includes(mt))return;if(it?Ve===it?(Ge.moduleSpecifier||Ut(),Me&&le.options.use!==2&&le.markSeenReExportRHS(Et)&&yt(Et,w.checkDefined(ft.symbol),le)):le.markSeenReExportRHS(Ve)&&Ut():le.options.use===2&&Et.escapedText==="default"||Ut(),!Ln(le.options)||_t){const pn=Ve.escapedText==="default"||ft.name.escapedText==="default"?1:0,mn=w.checkDefined(ft.symbol),q=age(mn,pn,le.checker);q&&G(Ve,mn,q,le)}if(At.comingFrom!==1&&Ge.moduleSpecifier&&!it&&!Ln(le.options)){const vn=le.checker.getExportSpecifierLocalTargetSymbol(ft);vn&&ce(vn,le)}function Ut(){Me&&yt(Ve,mt,le)}}function xe(Ve,pt,ft,At){return ze(Ve,ft)&&At.getExportSpecifierLocalTargetSymbol(ft)||pt}function ze(Ve,pt){const{parent:ft,propertyName:At,name:le}=pt;return w.assert(At===Ve||le===Ve),At?At===Ve:!ft.parent.moduleSpecifier}function st(Ve,pt,ft,At){const le=YAe(Ve,pt,At.checker,ft.comingFrom===1);if(!le)return;const{symbol:Me}=le;le.kind===0?Ln(At.options)||ce(Me,At):G(Ve,Me,le.exportInfo,At)}function zt({flags:Ve,valueDeclaration:pt},ft,At){const le=At.checker.getShorthandAssignmentValueSymbol(pt),Me=pt&&Ms(pt);!(Ve&33554432)&&Me&&ft.includes(le)&&yt(Me,le,At)}function yt(Ve,pt,ft){const{kind:At,symbol:le}="kind"in pt?pt:{kind:void 0,symbol:pt};if(ft.options.use===2&&Ve.kind===90)return;const Me=ft.referenceAdder(le);ft.options.implementations?Zt(Ve,Me,ft):Me(Ve,At)}function $e(Ve,pt,ft,At){aD(Ve)&&yt(Ve,ft.symbol,At);const le=()=>At.referenceAdder(ft.symbol);if(fi(Ve.parent))w.assert(Ve.kind===90||Ve.parent.name===Ve),nn(ft.symbol,pt,le());else{const Me=Wa(Ve);Me&&(In(Me,le()),hn(Me,At))}}function kt(Ve,pt,ft){yt(Ve,pt.symbol,ft);const At=Ve.parent;if(ft.options.use===2||!fi(At))return;w.assert(At.name===Ve);const le=ft.referenceAdder(pt.symbol);for(const Me of At.members)mk(Me)&&da(Me)&&Me.body&&Me.body.forEachChild(function _t(U){U.kind===110?le(U):!oa(U)&&!fi(U)&&U.forEachChild(_t)})}function nn(Ve,pt,ft){const At=sn(Ve);if(At&&At.declarations)for(const le of At.declarations){const Me=wo(le,137,pt);w.assert(le.kind===176&&!!Me),ft(Me)}Ve.exports&&Ve.exports.forEach(le=>{const Me=le.valueDeclaration;if(Me&&Me.kind===174){const _t=Me.body;_t&&Sa(_t,110,U=>{aD(U)&&ft(U)})}})}function sn(Ve){return Ve.members&&Ve.members.get("__constructor")}function In(Ve,pt){const ft=sn(Ve.symbol);if(ft&&ft.declarations)for(const At of ft.declarations){w.assert(At.kind===176);const le=At.body;le&&Sa(le,108,Me=>{zX(Me)&&pt(Me)})}}function Zn(Ve){return!!sn(Ve.symbol)}function hn(Ve,pt){if(Zn(Ve))return;const ft=Ve.symbol,At=pt.createSearch(void 0,ft,void 0);T(ft,pt,At)}function Zt(Ve,pt,ft){if(h0(Ve)&&ts(Ve.parent)){pt(Ve);return}if(Ve.kind!==80)return;Ve.parent.kind===304&&Ds(Ve,ft.checker,pt);const At=Yt(Ve);if(At){pt(At);return}const le=Vn(Ve,U=>!Z_(U.parent)&&!Gi(U.parent)&&!ZS(U.parent)),Me=le.parent;if(AF(Me)&&Me.type===le&&ft.markSeenContainingTypeReference(Me))if(h1(Me))_t(Me.initializer);else if(oa(Me)&&Me.body){const U=Me.body;U.kind===241?gb(U,it=>{it.expression&&_t(it.expression)}):_t(U)}else KS(Me)&&_t(Me.expression);function _t(U){yi(U)&&pt(U)}}function Yt(Ve){return Je(Ve)||Jr(Ve)?Yt(Ve.parent):Cy(Ve)?si(Ve.parent.parent,Tm(fi,J_)):void 0}function yi(Ve){switch(Ve.kind){case 217:return yi(Ve.expression);case 219:case 218:case 210:case 231:case 209:return!0;default:return!1}}function us(Ve,pt,ft,At){if(Ve===pt)return!0;const le=Ia(Ve)+","+Ia(pt),Me=ft.get(le);if(Me!==void 0)return Me;ft.set(le,!1);const _t=!!Ve.declarations&&Ve.declarations.some(U=>OP(U).some(it=>{const Et=At.getTypeAtLocation(it);return!!Et&&!!Et.symbol&&us(Et.symbol,pt,ft,At)}));return ft.set(le,_t),_t}function zi(Ve){let pt=LA(Ve,!1);if(!pt)return;let ft=256;switch(pt.kind){case 172:case 171:case 174:case 173:case 176:case 177:case 178:ft&=x1(pt),pt=pt.parent;break;default:return}const At=pt.getSourceFile(),le=Oi(pe(At,"super",pt),Me=>{if(Me.kind!==108)return;const _t=LA(Me,!1);return _t&&da(_t)===!!ft&&_t.parent.symbol===pt.symbol?qh(Me):void 0});return[{definition:{type:0,symbol:pt.symbol},references:le}]}function Os(Ve){return Ve.kind===80&&Ve.parent.kind===169&&Ve.parent.name===Ve}function On(Ve,pt,ft){let At=_f(Ve,!1,!1),le=256;switch(At.kind){case 174:case 173:if(tm(At)){le&=x1(At),At=At.parent;break}case 172:case 171:case 176:case 177:case 178:le&=x1(At),At=At.parent;break;case 312:if(Cl(At)||Os(Ve))return;case 262:case 218:break;default:return}const Me=Ys(At.kind===312?pt:[At.getSourceFile()],U=>(ft.throwIfCancellationRequested(),pe(U,"this",es(At)?U:At).filter(it=>{if(!f3(it))return!1;const Et=_f(it,!1,!1);if(!Km(Et))return!1;switch(At.kind){case 218:case 262:return At.symbol===Et.symbol;case 174:case 173:return tm(At)&&At.symbol===Et.symbol;case 231:case 263:case 210:return Et.parent&&Km(Et.parent)&&At.symbol===Et.parent.symbol&&da(Et)===!!le;case 312:return Et.kind===312&&!Cl(Et)&&!Os(it)}}))).map(U=>qh(U));return[{definition:{type:3,node:li(Me,U=>ws(U.node.parent)?U.node:void 0)||Ve},references:Me}]}function Fi(Ve,pt,ft,At){const le=KR(Ve,ft),Me=Ys(pt,_t=>(At.throwIfCancellationRequested(),Oi(pe(_t,Ve.text),U=>{if(vo(U)&&U.text===Ve.text)if(le){const it=KR(U,ft);if(le!==ft.getStringType()&&(le===it||Er(U,ft)))return qh(U,2)}else return Jk(U)&&!mx(U,_t)?void 0:qh(U,2)})));return[{definition:{type:4,node:Ve},references:Me}]}function Er(Ve,pt){if(Gf(Ve.parent))return pt.getPropertyOfType(pt.getTypeAtLocation(Ve.parent.parent),Ve.text)}function cn(Ve,pt,ft,At,le,Me){const _t=[];return et(Ve,pt,ft,At,!(At&&le),(U,it,Et)=>{Et&&wn(Ve)!==wn(Et)&&(Et=void 0),_t.push(Et||it||U)},()=>!Me),_t}function et(Ve,pt,ft,At,le,Me,_t){const U=UI(pt);if(U){const pn=ft.getShorthandAssignmentValueSymbol(pt.parent);if(pn&&At)return Me(pn,void 0,void 0,3);const mn=ft.getContextualType(U.parent),q=mn&&li(cB(U,ft,mn,!0),me=>Ut(me,4));if(q)return q;const Fe=ne(pt,ft),Ot=Fe&&Me(Fe,void 0,void 0,4);if(Ot)return Ot;const I=pn&&Me(pn,void 0,void 0,3);if(I)return I}const it=o(pt,Ve,ft);if(it){const pn=Me(it,void 0,void 0,1);if(pn)return pn}const Et=Ut(Ve);if(Et)return Et;if(Ve.valueDeclaration&&Uf(Ve.valueDeclaration,Ve.valueDeclaration.parent)){const pn=ft.getSymbolsOfParameterPropertyDeclaration(pa(Ve.valueDeclaration,ws),Ve.name);return w.assert(pn.length===2&&!!(pn[0].flags&1)&&!!(pn[1].flags&4)),Ut(Ve.flags&1?pn[1]:pn[0])}const Ge=Cc(Ve,281);if(!At||Ge&&!Ge.propertyName){const pn=Ge&&ft.getExportSpecifierLocalTargetSymbol(Ge);if(pn){const mn=Me(pn,void 0,void 0,1);if(mn)return mn}}if(!At){let pn;return le?pn=mI(pt.parent)?pj(ft,pt.parent):void 0:pn=vn(Ve,ft),pn&&Ut(pn,4)}if(w.assert(At),le){const pn=vn(Ve,ft);return pn&&Ut(pn,4)}function Ut(pn,mn){return li(ft.getRootSymbols(pn),q=>Me(pn,q,void 0,mn)||(q.parent&&q.parent.flags&96&&_t(q)?Jt(q.parent,q.name,ft,Fe=>Me(pn,q,Fe,mn)):void 0))}function vn(pn,mn){const q=Cc(pn,208);if(q&&mI(q))return pj(mn,q)}}function Jt(Ve,pt,ft,At){const le=new Map;return Me(Ve);function Me(_t){if(!(!(_t.flags&96)||!nm(le,Ia(_t))))return li(_t.declarations,U=>li(OP(U),it=>{const Et=ft.getTypeAtLocation(it),Ge=Et&&Et.symbol&&ft.getPropertyOfType(Et,pt);return Et&&Ge&&(li(ft.getRootSymbols(Ge),At)||Me(Et.symbol))}))}}function wn(Ve){return Ve.valueDeclaration?!!(M_(Ve.valueDeclaration)&256):!1}function ui(Ve,pt,ft,At){const{checker:le}=At;return et(pt,ft,le,!1,At.options.use!==2||!!At.options.providePrefixAndSuffixTextForRename,(Me,_t,U,it)=>(U&&wn(pt)!==wn(U)&&(U=void 0),Ve.includes(U||_t||Me)?{symbol:_t&&!(Uc(Me)&6)?_t:Me,kind:it}:void 0),Me=>!(Ve.parents&&!Ve.parents.some(_t=>us(Me.parent,_t,At.inheritsFromCache,le))))}function vi(Ve,pt){let ft=jx(Ve);const{declarations:At}=pt;if(At){let le;do{le=ft;for(const Me of At){const _t=tI(Me);_t&ft&&(ft|=_t)}}while(ft!==le)}return ft}e.getIntersectingMeaningFromDeclarations=vi;function ts(Ve){return Ve.flags&33554432?!(J_(Ve)||im(Ve)):K6(Ve)?h1(Ve):Ko(Ve)?!!Ve.body:fi(Ve)||bA(Ve)}function Ds(Ve,pt,ft){const At=pt.getSymbolAtLocation(Ve),le=pt.getShorthandAssignmentValueSymbol(At.valueDeclaration);if(le)for(const Me of le.getDeclarations())tI(Me)&1&&ft(Me)}e.getReferenceEntriesForShorthandPropertyAssignment=Ds;function Sa(Ve,pt,ft){Xs(Ve,At=>{At.kind===pt&&ft(At),Sa(At,pt,ft)})}function Wa(Ve){return dq(GR(Ve).parent)}function Tn(Ve,pt,ft){const At=_3(Ve)?Ve.parent:void 0,le=At&&ft.getTypeAtLocation(At.expression),Me=Oi(le&&(le.isUnionOrIntersection()?le.types:le.symbol===pt.parent?void 0:[le]),_t=>_t.symbol&&_t.symbol.flags&96?_t.symbol:void 0);return Me.length===0?void 0:Me}function Ln(Ve){return Ve.use===2&&Ve.providePrefixAndSuffixTextForRename}})(CC||(CC={}))}}),Qo={};Ye(Qo,{Core:()=>CC,DefinitionKind:()=>dge,EntryKind:()=>mge,ExportKind:()=>cge,FindReferencesUse:()=>gge,ImportExport:()=>lge,createImportTracker:()=>sge,findModuleReferences:()=>$Ae,findReferenceOrRenameEntries:()=>zit,findReferencedSymbols:()=>jit,getContextNode:()=>Wx,getExportInfo:()=>age,getImplementationsAtPosition:()=>Jit,getImportOrExportSymbol:()=>YAe,getReferenceEntriesForNode:()=>KAe,getTextSpanOfEntry:()=>fge,isContextWithStartAndEndNode:()=>uge,isDeclarationOfSymbol:()=>rNe,isWriteAccessForReference:()=>pge,nodeEntry:()=>qh,toContextSpan:()=>_ge,toHighlightSpan:()=>$it,toReferenceEntry:()=>nNe,toRenameLocation:()=>Vit});var hge=K({"src/services/_namespaces/ts.FindAllReferences.ts"(){Mit(),Qit()}});function iNe(e,t,r,i,s){var o;const c=aNe(t,r,e),u=c&&[cst(c.reference.fileName,c.fileName,c.unverified)]||Ke;if(c!=null&&c.file)return u;const f=mf(t,r);if(f===t)return;const{parent:g}=f,d=e.getTypeChecker();if(f.kind===164||Je(f)&&iM(g)&&g.tagName===f)return Zit(d,f)||Ke;if(iI(f)){const D=$R(f.parent,f.text);return D?[yge(d,D,"label",f.text,void 0)]:void 0}switch(f.kind){case 107:const D=Vn(f.parent,V=>Vc(V)?"quit":Ko(V));return D?[AB(d,D)]:void 0;case 90:if(!Pw(f.parent))break;case 84:const M=Vn(f.parent,kw);if(M)return[ost(M,t)];break}if(f.kind===135){const D=Vn(f,V=>Ko(V));return D&&Pe(D.modifiers,V=>V.kind===134)?[AB(d,D)]:void 0}if(f.kind===127){const D=Vn(f,V=>Ko(V));return D&&D.asteriskToken?[AB(d,D)]:void 0}if(Vk(f)&&Vc(f.parent)){const D=f.parent.parent,{symbol:M,failedAliasResolution:V}=jK(D,d,s),G=vr(D.members,Vc),Z=M?d.symbolToString(M,D):"",z=f.getSourceFile();return Kt(G,ce=>{let{pos:J}=ag(ce);return J=za(z.text,J),yge(d,ce,"constructor","static {}",Z,!1,V,{start:J,length:6})})}let{symbol:y,failedAliasResolution:x}=jK(f,d,s),T=f;if(i&&x){const D=dt([f,...(y==null?void 0:y.declarations)||Ke],V=>Vn(V,lse)),M=D&&s4(D);M&&({symbol:y,failedAliasResolution:x}=jK(M,d,s),T=M)}if(!y&&fj(T)){const D=(o=e.getResolvedModuleFromModuleSpecifier(T))==null?void 0:o.resolvedModule;if(D)return[{name:T.text,fileName:D.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:Ju(0,0),failedAliasResolution:x,isAmbient:Wu(D.resolvedFileName),unverified:T!==f}]}if(!y)return zn(u,ist(f,d));if(i&&Pn(y.declarations,D=>D.getSourceFile().fileName===t.fileName))return;const C=ust(d,f);if(C&&!(F_(f.parent)&&_st(C))){const D=AB(d,C,x);if(d.getRootSymbols(y).some(M=>Yit(M,C)))return[D];{const M=ED(d,y,f,x,C)||Ke;return f.kind===108?[D,...M]:[...M,D]}}if(f.parent.kind===304){const D=d.getShorthandAssignmentValueSymbol(y.valueDeclaration),M=D!=null&&D.declarations?D.declarations.map(V=>e5(V,d,D,f,!1,x)):Ke;return zn(M,sNe(d,f))}if(Tl(f)&&oo(g)&&Md(g.parent)&&f===(g.propertyName||g.name)){const D=dI(f),M=d.getTypeAtLocation(g.parent);return D===void 0?Ke:Ys(M.isUnion()?M.types:[M],V=>{const G=V.getProperty(D);return G&&ED(d,G,f)})}const N=sNe(d,f);return zn(u,N.length?N:ED(d,y,f,x))}function Yit(e,t){var r;return e===t.symbol||e===t.symbol.parent||Kl(t.parent)||!fb(t.parent)&&e===((r=si(t.parent,Km))==null?void 0:r.symbol)}function sNe(e,t){const r=UI(t);if(r){const i=r&&e.getContextualType(r.parent);if(i)return Ys(cB(r,e,i,!1),s=>ED(e,s,t))}return Ke}function Zit(e,t){const r=Vn(t,vu);if(!(r&&r.name))return;const i=Vn(r,fi);if(!i)return;const s=tg(i);if(!s)return;const o=Eo(s.expression),c=Su(o)?o.symbol:e.getSymbolAtLocation(o);if(!c)return;const u=Hi(X6(r.name)),f=Fl(r)?e.getPropertyOfType(e.getTypeOfSymbol(c),u):e.getPropertyOfType(e.getDeclaredTypeOfSymbol(c),u);if(f)return ED(e,f,t)}function aNe(e,t,r){var i,s;const o=PD(e.referencedFiles,t);if(o){const f=r.getSourceFileFromReference(e,o);return f&&{reference:o,fileName:f.fileName,file:f,unverified:!1}}const c=PD(e.typeReferenceDirectives,t);if(c){const f=(i=r.getResolvedTypeReferenceDirectives().get(c.fileName,c.resolutionMode||e.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective,g=f&&r.getSourceFile(f.resolvedFileName);return g&&{reference:c,fileName:g.fileName,file:g,unverified:!1}}const u=PD(e.libReferenceDirectives,t);if(u){const f=r.getLibFileFromReference(u);return f&&{reference:u,fileName:f.fileName,file:f,unverified:!1}}if(e.imports.length||e.moduleAugmentations.length){const f=p3(e,t);let g;if(fj(f)&&yu(f.text)&&(g=r.getResolvedModuleFromModuleSpecifier(f))){const d=(s=g.resolvedModule)==null?void 0:s.resolvedFileName,y=d||l1(oi(e.fileName),f.text);return{file:r.getSourceFile(y),fileName:y,reference:{pos:f.getStart(),end:f.getEnd(),fileName:f.text},unverified:!d}}}}function Kit(e,t){const r=t.symbol.name;if(!bge.has(r))return!1;const i=e.resolveName(r,void 0,788968,!1);return!!i&&i===t.target.symbol}function oNe(e,t){if(!t.aliasSymbol)return!1;const r=t.aliasSymbol.name;if(!bge.has(r))return!1;const i=e.resolveName(r,void 0,788968,!1);return!!i&&i===t.aliasSymbol}function est(e,t,r,i){var s,o;if(Br(t)&4&&Kit(e,t))return KI(e.getTypeArguments(t)[0],e,r,i);if(oNe(e,t)&&t.aliasTypeArguments)return KI(t.aliasTypeArguments[0],e,r,i);if(Br(t)&32&&t.target&&oNe(e,t.target)){const c=(o=(s=t.aliasSymbol)==null?void 0:s.declarations)==null?void 0:o[0];if(c&&im(c)&&id(c.type)&&c.type.typeArguments)return KI(e.getTypeAtLocation(c.type.typeArguments[0]),e,r,i)}return[]}function tst(e,t,r){const i=mf(t,r);if(i===t)return;if(Z6(i.parent)&&i.parent.name===i)return KI(e.getTypeAtLocation(i.parent),e,i.parent,!1);const{symbol:s,failedAliasResolution:o}=jK(i,e,!1);if(!s)return;const c=e.getTypeOfSymbolAtLocation(s,i),u=nst(s,c,e),f=u&&KI(u,e,i,o),[g,d]=f&&f.length!==0?[u,f]:[c,KI(c,e,i,o)];return d.length?[...est(e,g,i,o),...d]:!(s.flags&111551)&&s.flags&788968?ED(e,Uu(s,e),i,o):void 0}function KI(e,t,r,i){return Ys(e.isUnion()&&!(e.flags&32)?e.types:[e],s=>s.symbol&&ED(t,s.symbol,r,i))}function nst(e,t,r){if(t.symbol===e||e.valueDeclaration&&t.symbol&&Ji(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){const i=t.getCallSignatures();if(i.length===1)return r.getReturnTypeOfSignature(Ka(i))}}function rst(e,t,r){const i=iNe(e,t,r);if(!i||i.length===0)return;const s=PD(t.referencedFiles,r)||PD(t.typeReferenceDirectives,r)||PD(t.libReferenceDirectives,r);if(s)return{definitions:i,textSpan:B1(s)};const o=mf(t,r),c=Ju(o.getStart(),o.getWidth());return{definitions:i,textSpan:c}}function ist(e,t){return Oi(t.getIndexInfosAtLocation(e),r=>r.declaration&&AB(t,r.declaration))}function jK(e,t,r){const i=t.getSymbolAtLocation(e);let s=!1;if(i!=null&&i.declarations&&i.flags&2097152&&!r&&sst(e,i.declarations[0])){const o=t.getAliasedSymbol(i);if(o.declarations)return{symbol:o};s=!0}return{symbol:i,failedAliasResolution:s}}function sst(e,t){return e.kind!==80?!1:e.parent===t?!0:t.kind!==274}function ast(e){if(!AP(e))return!1;const t=Vn(e,r=>Kl(r)?!0:AP(r)?!1:"quit");return!!t&&rl(t)===5}function ED(e,t,r,i,s){const o=vr(t.declarations,y=>y!==s),c=vr(o,y=>!ast(y)),u=Pe(c)?c:o;return f()||g()||Kt(u,y=>e5(y,e,t,r,!1,i));function f(){if(t.flags&32&&!(t.flags&19)&&(aD(r)||r.kind===137)){const y=Cn(o,fi)||w.fail("Expected declaration to have at least one class-like declaration");return d(y.members,!0)}}function g(){return UX(r)||XX(r)?d(o,!1):void 0}function d(y,x){if(!y)return;const T=y.filter(x?$c:oa),C=T.filter(N=>!!N.body);return T.length?C.length!==0?C.map(N=>e5(N,e,t,r)):[e5(so(T),e,t,r,!1,i)]:void 0}}function e5(e,t,r,i,s,o){const c=t.symbolToString(r),u=Ly.getSymbolKind(t,r,i),f=r.parent?t.symbolToString(r.parent,i):"";return yge(t,e,u,c,f,s,o)}function yge(e,t,r,i,s,o,c,u){const f=t.getSourceFile();if(!u){const g=Ms(t)||t;u=tf(g,f)}return{fileName:f.fileName,textSpan:u,kind:r,name:i,containerKind:void 0,containerName:s,...Qo.toContextSpan(u,f,Qo.getContextNode(t)),isLocal:!vge(e,t),isAmbient:!!(t.flags&33554432),unverified:o,failedAliasResolution:c}}function ost(e,t){const r=Qo.getContextNode(e),i=tf(uge(r)?r.start:r,t);return{fileName:t.fileName,textSpan:i,kind:"keyword",name:"switch",containerKind:void 0,containerName:"",...Qo.toContextSpan(i,t,r),isLocal:!0,isAmbient:!1,unverified:!1,failedAliasResolution:void 0}}function vge(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(h1(t.parent)&&t.parent.initializer===t)return vge(e,t.parent);switch(t.kind){case 172:case 177:case 178:case 174:if(qf(t,2))return!1;case 176:case 303:case 304:case 210:case 231:case 219:case 218:return vge(e,t.parent);default:return!1}}function AB(e,t,r){return e5(t,e,t.symbol,t,!1,r)}function PD(e,t){return Cn(e,r=>sA(r,t))}function cst(e,t,r){return{fileName:t,textSpan:Il(0,0),kind:"script",name:e,containerName:void 0,containerKind:void 0,unverified:r}}function lst(e){const t=Vn(e,i=>!_3(i)),r=t==null?void 0:t.parent;return r&&fb(r)&&e9(r)===t?r:void 0}function ust(e,t){const r=lst(t),i=r&&e.getResolvedSignature(r);return si(i&&i.declaration,s=>oa(s)&&!Qg(s))}function _st(e){switch(e.kind){case 176:case 185:case 180:return!0;default:return!1}}var bge,fst=K({"src/services/goToDefinition.ts"(){ci(),hge(),bge=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"])}}),N3={};Ye(N3,{createDefinitionInfo:()=>e5,findReferenceInPosition:()=>PD,getDefinitionAndBoundSpan:()=>rst,getDefinitionAtPosition:()=>iNe,getReferenceAtPosition:()=>aNe,getTypeDefinitionAtPosition:()=>tst});var pst=K({"src/services/_namespaces/ts.GoToDefinition.ts"(){fst()}});function dst(e){return e.includeInlayParameterNameHints==="literals"||e.includeInlayParameterNameHints==="all"}function mst(e){return e.includeInlayParameterNameHints==="literals"}function cNe(e){return e.interactiveInlayHints===!0}function gst(e){const{file:t,program:r,span:i,cancellationToken:s,preferences:o}=e,c=t.text,u=r.getCompilerOptions(),f=Bp(t,o),g=r.getTypeChecker(),d=[];return y(t),d;function y(fe){if(!(!fe||fe.getFullWidth()===0)){switch(fe.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 174:case 219:s.throwIfCancellationRequested()}if(pF(i,fe.pos,fe.getFullWidth())&&!(Gi(fe)&&!Cy(fe)))return o.includeInlayVariableTypeHints&&Ji(fe)||o.includeInlayPropertyDeclarationTypeHints&&Zs(fe)?V(fe):o.includeInlayEnumMemberValueHints&&zb(fe)?D(fe):dst(o)&&(ma(fe)||Fb(fe))?G(fe):(o.includeInlayFunctionParameterTypeHints&&Ko(fe)&&K9(fe)&&ge(fe),o.includeInlayFunctionLikeReturnTypeHints&&x(fe)&&J(fe)),Xs(fe,y)}}function x(fe){return ec(fe)||Xo(fe)||Wl(fe)||ul(fe)||Op(fe)}function T(fe,ie,ye,Ne){let Ue=`${Ne?"...":""}${fe}`,Se;cNe(o)?(Se=[we(Ue,ie),{text:":"}],Ue=""):Ue+=":",d.push({text:Ue,position:ye,kind:"Parameter",whitespaceAfter:!0,displayParts:Se})}function C(fe,ie){d.push({text:typeof fe=="string"?`: ${fe}`:"",displayParts:typeof fe=="string"?void 0:[{text:": "},...fe],position:ie,kind:"Type",whitespaceBefore:!0})}function N(fe,ie){d.push({text:`= ${fe}`,position:ie,kind:"Enum",whitespaceBefore:!0})}function D(fe){if(fe.initializer)return;const ie=g.getConstantValue(fe);ie!==void 0&&N(ie.toString(),fe.end)}function M(fe){return fe.symbol&&fe.symbol.flags&1536}function V(fe){if(!fe.initializer||ca(fe.name)||Ji(fe)&&!pe(fe)||zu(fe))return;const ye=g.getTypeAtLocation(fe);if(M(ye))return;const Ne=X(ye);if(Ne){const Ue=typeof Ne=="string"?Ne:Ne.map(Ee=>Ee.text).join("");if(o.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&jv(fe.name.getText(),Ue))return;C(Ne,fe.name.end)}}function G(fe){const ie=fe.arguments;if(!ie||!ie.length)return;const ye=[],Ne=g.getResolvedSignatureForSignatureHelp(fe,ye);if(!Ne||!ye.length)return;let Ue=0;for(const Se of ie){const Ee=Eo(Se);if(mst(o)&&!ce(Ee)){Ue++;continue}let Ae=0;if(Pm(Ee)){const Tt=g.getTypeAtLocation(Ee.expression);if(g.isTupleType(Tt)){const{elementFlags:xe,fixedLength:ze}=Tt.target;if(ze===0)continue;const st=Gs(xe,yt=>!(yt&1));(st<0?ze:st)>0&&(Ae=st<0?ze:st)}}const Le=g.getParameterIdentifierInfoAtPosition(Ne,Ue);if(Ue=Ue+(Ae||1),Le){const{parameter:Tt,parameterName:xe,isRestParameter:ze}=Le;if(!(o.includeInlayParameterNameHintsWhenArgumentMatchesName||!Z(Ee,xe))&&!ze)continue;const zt=Hi(xe);if(z(Ee,zt))continue;T(zt,Tt,Se.getStart(),ze)}}}function Z(fe,ie){return Je(fe)?fe.text===ie:Jr(fe)?fe.name.text===ie:!1}function z(fe,ie){if(!Np(ie,u.target,hN(t.scriptKind)))return!1;const ye=Ph(c,fe.pos);if(!(ye!=null&&ye.length))return!1;const Ne=lNe(ie);return Pe(ye,Ue=>Ne.test(c.substring(Ue.pos,Ue.end)))}function ce(fe){switch(fe.kind){case 224:{const ie=fe.operand;return _b(ie)||Je(ie)&&ow(ie.escapedText)}case 112:case 97:case 106:case 15:case 228:return!0;case 80:{const ie=fe.escapedText;return se(ie)||ow(ie)}}return _b(fe)}function J(fe){if(ec(fe)&&!wo(fe,21,t)||Id(fe)||!fe.body)return;const ye=g.getSignatureFromDeclaration(fe);if(!ye)return;const Ne=g.getReturnTypeOfSignature(ye);if(M(Ne))return;const Ue=X(Ne);Ue&&C(Ue,ne(fe))}function ne(fe){const ie=wo(fe,22,t);return ie?ie.end:fe.parameters.end}function ge(fe){const ie=g.getSignatureFromDeclaration(fe);if(ie)for(let ye=0;ye{const Ue=g.typeToTypeNode(fe,void 0,71286784);w.assertIsDefined(Ue,"should always get typenode"),ye.writeNode(4,Ue,t,Ne)})}function X(fe){if(!cNe(o))return Q(fe);const ye=g.typeToTypeNode(fe,void 0,71286784);w.assertIsDefined(ye,"should always get typenode");const Ne=[];return Ue(ye),Ne;function Ue(Le){var Tt,xe;if(!Le)return;const ze=ba(Le.kind);if(ze){Ne.push({text:ze});return}if(_b(Le)){Ne.push({text:Ae(Le)});return}switch(Le.kind){case 80:w.assertNode(Le,Je);const st=kr(Le),zt=Le.symbol&&Le.symbol.declarations&&Le.symbol.declarations.length&&Ms(Le.symbol.declarations[0]);zt?Ne.push(we(st,zt)):Ne.push({text:st});break;case 166:w.assertNode(Le,Z_),Ue(Le.left),Ne.push({text:"."}),Ue(Le.right);break;case 182:w.assertNode(Le,HN),Le.assertsModifier&&Ne.push({text:"asserts "}),Ue(Le.parameterName),Le.type&&(Ne.push({text:" is "}),Ue(Le.type));break;case 183:w.assertNode(Le,id),Ue(Le.typeName),Le.typeArguments&&(Ne.push({text:"<"}),Ee(Le.typeArguments,", "),Ne.push({text:">"}));break;case 168:w.assertNode(Le,Ic),Le.modifiers&&Ee(Le.modifiers," "),Ue(Le.name),Le.constraint&&(Ne.push({text:" extends "}),Ue(Le.constraint)),Le.default&&(Ne.push({text:" = "}),Ue(Le.default));break;case 169:w.assertNode(Le,ws),Le.modifiers&&Ee(Le.modifiers," "),Le.dotDotDotToken&&Ne.push({text:"..."}),Ue(Le.name),Le.questionToken&&Ne.push({text:"?"}),Le.type&&(Ne.push({text:": "}),Ue(Le.type));break;case 185:w.assertNode(Le,I4),Ne.push({text:"new "}),Se(Le),Ne.push({text:" => "}),Ue(Le.type);break;case 186:w.assertNode(Le,qk),Ne.push({text:"typeof "}),Ue(Le.exprName),Le.typeArguments&&(Ne.push({text:"<"}),Ee(Le.typeArguments,", "),Ne.push({text:">"}));break;case 187:w.assertNode(Le,Xf),Ne.push({text:"{"}),Le.members.length&&(Ne.push({text:" "}),Ee(Le.members,"; "),Ne.push({text:" "})),Ne.push({text:"}"});break;case 188:w.assertNode(Le,GN),Ue(Le.elementType),Ne.push({text:"[]"});break;case 189:w.assertNode(Le,Hk),Ne.push({text:"["}),Ee(Le.elements,", "),Ne.push({text:"]"});break;case 202:w.assertNode(Le,O4),Le.dotDotDotToken&&Ne.push({text:"..."}),Ue(Le.name),Le.questionToken&&Ne.push({text:"?"}),Ne.push({text:": "}),Ue(Le.type);break;case 190:w.assertNode(Le,QL),Ue(Le.type),Ne.push({text:"?"});break;case 191:w.assertNode(Le,YL),Ne.push({text:"..."}),Ue(Le.type);break;case 192:w.assertNode(Le,A1),Ee(Le.types," | ");break;case 193:w.assertNode(Le,Gk),Ee(Le.types," & ");break;case 194:w.assertNode(Le,$k),Ue(Le.checkType),Ne.push({text:" extends "}),Ue(Le.extendsType),Ne.push({text:" ? "}),Ue(Le.trueType),Ne.push({text:" : "}),Ue(Le.falseType);break;case 195:w.assertNode(Le,vx),Ne.push({text:"infer "}),Ue(Le.typeParameter);break;case 196:w.assertNode(Le,bx),Ne.push({text:"("}),Ue(Le.type),Ne.push({text:")"});break;case 198:w.assertNode(Le,Sx),Ne.push({text:`${ba(Le.operator)} `}),Ue(Le.type);break;case 199:w.assertNode(Le,xx),Ue(Le.objectType),Ne.push({text:"["}),Ue(Le.indexType),Ne.push({text:"]"});break;case 200:w.assertNode(Le,F4),Ne.push({text:"{ "}),Le.readonlyToken&&(Le.readonlyToken.kind===40?Ne.push({text:"+"}):Le.readonlyToken.kind===41&&Ne.push({text:"-"}),Ne.push({text:"readonly "})),Ne.push({text:"["}),Ue(Le.typeParameter),Le.nameType&&(Ne.push({text:" as "}),Ue(Le.nameType)),Ne.push({text:"]"}),Le.questionToken&&(Le.questionToken.kind===40?Ne.push({text:"+"}):Le.questionToken.kind===41&&Ne.push({text:"-"}),Ne.push({text:"?"})),Ne.push({text:": "}),Le.type&&Ue(Le.type),Ne.push({text:"; }"});break;case 201:w.assertNode(Le,N1),Ue(Le.literal);break;case 184:w.assertNode(Le,Qg),Se(Le),Ne.push({text:" => "}),Ue(Le.type);break;case 205:w.assertNode(Le,zh),Le.isTypeOf&&Ne.push({text:"typeof "}),Ne.push({text:"import("}),Ue(Le.argument),Le.assertions&&(Ne.push({text:", { assert: "}),Ee(Le.assertions.assertClause.elements,", "),Ne.push({text:" }"})),Ne.push({text:")"}),Le.qualifier&&(Ne.push({text:"."}),Ue(Le.qualifier)),Le.typeArguments&&(Ne.push({text:"<"}),Ee(Le.typeArguments,", "),Ne.push({text:">"}));break;case 171:w.assertNode(Le,Gf),(Tt=Le.modifiers)!=null&&Tt.length&&(Ee(Le.modifiers," "),Ne.push({text:" "})),Ue(Le.name),Le.questionToken&&Ne.push({text:"?"}),Le.type&&(Ne.push({text:": "}),Ue(Le.type));break;case 181:w.assertNode(Le,Ib),Ne.push({text:"["}),Ee(Le.parameters,", "),Ne.push({text:"]"}),Le.type&&(Ne.push({text:": "}),Ue(Le.type));break;case 173:w.assertNode(Le,Xg),(xe=Le.modifiers)!=null&&xe.length&&(Ee(Le.modifiers," "),Ne.push({text:" "})),Ue(Le.name),Le.questionToken&&Ne.push({text:"?"}),Se(Le),Le.type&&(Ne.push({text:": "}),Ue(Le.type));break;case 179:w.assertNode(Le,Wk),Se(Le),Le.type&&(Ne.push({text:": "}),Ue(Le.type));break;case 207:w.assertNode(Le,Ob),Ne.push({text:"["}),Ee(Le.elements,", "),Ne.push({text:"]"});break;case 206:w.assertNode(Le,Md),Ne.push({text:"{"}),Le.elements.length&&(Ne.push({text:" "}),Ee(Le.elements,", "),Ne.push({text:" "})),Ne.push({text:"}"});break;case 208:w.assertNode(Le,oo),Ue(Le.name);break;case 224:w.assertNode(Le,O1),Ne.push({text:ba(Le.operator)}),Ue(Le.operand);break;case 203:w.assertNode(Le,Noe),Ue(Le.head),Le.templateSpans.forEach(Ue);break;case 16:w.assertNode(Le,zk),Ne.push({text:Ae(Le)});break;case 204:w.assertNode(Le,kH),Ue(Le.type),Ue(Le.literal);break;case 17:w.assertNode(Le,bH),Ne.push({text:Ae(Le)});break;case 18:w.assertNode(Le,HL),Ne.push({text:Ae(Le)});break;case 197:w.assertNode(Le,$N),Ne.push({text:"this"});break;default:w.failBadSyntaxKind(Le)}}function Se(Le){Le.typeParameters&&(Ne.push({text:"<"}),Ee(Le.typeParameters,", "),Ne.push({text:">"})),Ne.push({text:"("}),Ee(Le.parameters,", "),Ne.push({text:")"})}function Ee(Le,Tt){Le.forEach((xe,ze)=>{ze>0&&Ne.push({text:Tt}),Ue(xe)})}function Ae(Le){switch(Le.kind){case 11:return f===0?`'${Mh(Le.text,39)}'`:`"${Mh(Le.text,34)}"`;case 16:case 17:case 18:{const Tt=Le.rawText??rq(Mh(Le.text,96));switch(Le.kind){case 16:return"`"+Tt+"${";case 17:return"}"+Tt+"${";case 18:return"}"+Tt+"`"}}}return Le.text}}function se(fe){return fe==="undefined"}function pe(fe){if((xb(fe)||Ji(fe)&&Y6(fe))&&fe.initializer){const ie=Eo(fe.initializer);return!(ce(ie)||Fb(ie)||Va(ie)||KS(ie))}return!0}function we(fe,ie){const ye=ie.getSourceFile();return{text:fe,span:tf(ie,ye),file:ye.fileName}}}var lNe,hst=K({"src/services/inlayHints.ts"(){ci(),lNe=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`)}}),BK={};Ye(BK,{provideInlayHints:()=>gst});var yst=K({"src/services/_namespaces/ts.InlayHints.ts"(){hst()}});function vst(e,t){const r=[];return yQ(e,i=>{for(const s of Sst(i)){const o=Dm(s)&&s.tags&&Cn(s.tags,u=>u.kind===334&&(u.tagName.escapedText==="inheritDoc"||u.tagName.escapedText==="inheritdoc"));if(s.comment===void 0&&!o||Dm(s)&&i.kind!==353&&i.kind!==345&&s.tags&&s.tags.some(u=>u.kind===353||u.kind===345)&&!s.tags.some(u=>u.kind===348||u.kind===349))continue;let c=s.comment?I3(s.comment,t):[];o&&o.comment&&(c=c.concat(I3(o.comment,t))),Ai(r,c,bst)||r.push(c)}}),P_(hs(r,[h3()]))}function bst(e,t){return su(e,t,(r,i)=>r.kind===i.kind&&r.text===i.text)}function Sst(e){switch(e.kind){case 348:case 355:return[e];case 345:case 353:return[e,e.parent];case 330:if(J4(e.parent))return[e.parent.parent];default:return zW(e)}}function xst(e,t){const r=[];return yQ(e,i=>{const s=Gv(i);if(!(s.some(o=>o.kind===353||o.kind===345)&&!s.some(o=>o.kind===348||o.kind===349)))for(const o of s)r.push({name:o.tagName.text,text:fNe(o,t)}),r.push(...uNe(_Ne(o),t))}),r}function uNe(e,t){return Ys(e,r=>zn([{name:r.tagName.text,text:fNe(r,t)}],uNe(_Ne(r),t)))}function _Ne(e){return gP(e)&&e.isNameFirst&&e.typeExpression&&wx(e.typeExpression.type)?e.typeExpression.type.jsDocPropertyTags:void 0}function I3(e,t){return typeof e=="string"?[Jp(e)]:Ys(e,r=>r.kind===328?[Jp(r.text)]:V_e(r,t))}function fNe(e,t){const{comment:r,kind:i}=e,s=Tst(i);switch(i){case 356:const u=e.typeExpression;return u?o(u):r===void 0?void 0:I3(r,t);case 336:return o(e.class);case 335:return o(e.class);case 352:const f=e,g=[];if(f.constraint&&g.push(Jp(f.constraint.getText())),Xe(f.typeParameters)){Xe(g)&&g.push(Yc());const y=f.typeParameters[f.typeParameters.length-1];dt(f.typeParameters,x=>{g.push(s(x.getText())),y!==x&&g.push(b_(28),Yc())})}return r&&g.push(Yc(),...I3(r,t)),g;case 351:case 357:return o(e.typeExpression);case 353:case 345:case 355:case 348:case 354:const{name:d}=e;return d?o(d):r===void 0?void 0:I3(r,t);default:return r===void 0?void 0:I3(r,t)}function o(u){return c(u.getText())}function c(u){return r?u.match(/^https?$/)?[Jp(u),...I3(r,t)]:[s(u),Yc(),...I3(r,t)]:[Jp(u)]}}function Tst(e){switch(e){case 348:return j_e;case 355:return B_e;case 352:return z_e;case 353:case 345:return J_e;default:return Jp}}function kst(){return dNe||(dNe=Kt(xge,e=>({name:e,kind:"keyword",kindModifiers:"",sortText:kC.SortText.LocationPriority})))}function Cst(){return mNe||(mNe=Kt(xge,e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:kC.SortText.LocationPriority})))}function pNe(e){return{name:e,kind:"",kindModifiers:"",displayParts:[Jp(e)],documentation:Ke,tags:void 0,codeActions:void 0}}function Est(e){if(!Je(e.name))return Ke;const t=e.name.text,r=e.parent,i=r.parent;return oa(i)?Oi(i.parameters,s=>{if(!Je(s.name))return;const o=s.name.text;if(!(r.tags.some(c=>c!==e&&Am(c)&&Je(c.name)&&c.name.escapedText===o)||t!==void 0&&!fs(o,t)))return{name:o,kind:"parameter",kindModifiers:"",sortText:kC.SortText.LocationPriority}}):[]}function Pst(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[Jp(e)],documentation:Ke,tags:void 0,codeActions:void 0}}function wst(e,t,r,i){const s=ps(t,r),o=Vn(s,Dm);if(o&&(o.comment!==void 0||Xe(o.tags)))return;const c=s.getStart(t);if(!o&&c0;if(N&&!V){const G=D+e+T+" * ",Z=c===r?e+T:"";return{newText:G+e+N+T+M+Z,caretOffset:G.length}}return{newText:D+M,caretOffset:3}}function Dst(e,t){const{text:r}=e,i=jd(t,e);let s=i;for(;s<=t&&Ym(r.charCodeAt(s));s++);return r.slice(i,s)}function Ast(e,t,r,i){return e.map(({name:s,dotDotDotToken:o},c)=>{const u=s.kind===80?s.text:"param"+c;return`${r} * @param ${t?o?"{...any} ":"{any} ":""}${u}${i}`}).join("")}function Nst(e,t){return`${e} * @returns${t}`}function Ist(e,t){return Zie(e,r=>Sge(r,t))}function Sge(e,t){switch(e.kind){case 262:case 218:case 174:case 176:case 173:case 219:const r=e;return{commentOwner:e,parameters:r.parameters,hasReturn:NB(r,t)};case 303:return Sge(e.initializer,t);case 263:case 264:case 266:case 306:case 265:return{commentOwner:e};case 171:{const s=e;return s.type&&Qg(s.type)?{commentOwner:e,parameters:s.type.parameters,hasReturn:NB(s.type,t)}:{commentOwner:e}}case 243:{const o=e.declarationList.declarations,c=o.length===1&&o[0].initializer?Ost(o[0].initializer):void 0;return c?{commentOwner:e,parameters:c.parameters,hasReturn:NB(c,t)}:{commentOwner:e}}case 312:return"quit";case 267:return e.parent.kind===267?void 0:{commentOwner:e};case 244:return Sge(e.expression,t);case 226:{const s=e;return rl(s)===0?"quit":oa(s.right)?{commentOwner:e,parameters:s.right.parameters,hasReturn:NB(s.right,t)}:{commentOwner:e}}case 172:const i=e.initializer;if(i&&(Xo(i)||ec(i)))return{commentOwner:e,parameters:i.parameters,hasReturn:NB(i,t)}}}function NB(e,t){return!!(t!=null&&t.generateReturnInDocTemplate)&&(Qg(e)||ec(e)&&vt(e.body)||Ko(e)&&e.body&&na(e.body)&&!!gb(e.body,r=>r))}function Ost(e){for(;e.kind===217;)e=e.expression;switch(e.kind){case 218:case 219:return e;case 231:return Cn(e.members,$c)}}var xge,dNe,mNe,gNe,Fst=K({"src/services/jsDoc.ts"(){ci(),xge=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","inheritdoc","inner","instance","interface","kind","lends","license","link","linkcode","linkplain","listens","member","memberof","method","mixes","module","name","namespace","overload","override","package","param","private","prop","property","protected","public","readonly","requires","returns","satisfies","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"],gNe=pNe}}),S2={};Ye(S2,{getDocCommentTemplateAtPosition:()=>wst,getJSDocParameterNameCompletionDetails:()=>Pst,getJSDocParameterNameCompletions:()=>Est,getJSDocTagCompletionDetails:()=>pNe,getJSDocTagCompletions:()=>Cst,getJSDocTagNameCompletionDetails:()=>gNe,getJSDocTagNameCompletions:()=>kst,getJsDocCommentsFromDeclarations:()=>vst,getJsDocTagsFromDeclarations:()=>xst});var Lst=K({"src/services/_namespaces/ts.JsDoc.ts"(){Fst()}});function Mst(e,t,r,i,s,o){const c=gr.ChangeTracker.fromContext({host:r,formatContext:t,preferences:s}),u=o==="SortAndCombine"||o==="All",f=u,g=o==="RemoveUnused"||o==="All",d=JK(e,e.statements.filter(eu)),y=Kst(s,u?()=>vNe(d,s)===2:void 0),x=C=>(g&&(C=jst(C,e,i)),f&&(C=hNe(C,y,e,s)),u&&(C=sy(C,(N,D)=>Pge(N,D,y))),C);d.forEach(C=>T(C,x)),o!=="RemoveUnused"&&eat(e).forEach(C=>T(C,N=>Tge(N,y,s)));for(const C of e.statements.filter(n_)){if(!C.body)continue;if(JK(e,C.body.statements.filter(eu)).forEach(D=>T(D,x)),o!=="RemoveUnused"){const D=C.body.statements.filter(ml);T(D,M=>Tge(M,y,s))}}return c.getChanges();function T(C,N){if(Xe(C)===0)return;pr(C[0],1024);const D=f?KE(C,G=>IB(G.moduleSpecifier)):[C],M=u?sy(D,(G,Z)=>Cge(G[0].moduleSpecifier,Z[0].moduleSpecifier,y)):D,V=Ys(M,G=>IB(G[0].moduleSpecifier)||G[0].moduleSpecifier===void 0?N(G):G);if(V.length===0)c.deleteNodes(e,C,{leadingTriviaOption:gr.LeadingTriviaOption.Exclude,trailingTriviaOption:gr.TrailingTriviaOption.Include},!0);else{const G={leadingTriviaOption:gr.LeadingTriviaOption.Exclude,trailingTriviaOption:gr.TrailingTriviaOption.Include,suffix:Iy(r,t.options)};c.replaceNodeWithNodes(e,C[0],V,G);const Z=c.nodeHasTrailingComment(e,C[0],G);c.deleteNodes(e,C.slice(1),{trailingTriviaOption:gr.TrailingTriviaOption.Include},Z)}}}function JK(e,t){const r=fy(e.languageVersion,!1,e.languageVariant),i=[];let s=0;for(const o of t)i[s]&&Rst(e,o,r)&&s++,i[s]||(i[s]=[]),i[s].push(o);return i}function Rst(e,t,r){const i=t.getFullStart(),s=t.getStart();r.setText(e.text,i,s-i);let o=0;for(;r.getTokenStart()=2))return!0;return!1}function jst(e,t,r){const i=r.getTypeChecker(),s=r.getCompilerOptions(),o=i.getJsxNamespace(t),c=i.getJsxFragmentFactory(t),u=!!(t.transformFlags&2),f=[];for(const d of e){const{importClause:y,moduleSpecifier:x}=d;if(!y){f.push(d);continue}let{name:T,namedBindings:C}=y;if(T&&!g(T)&&(T=void 0),C)if(F1(C))g(C.name)||(C=void 0);else{const N=C.elements.filter(D=>g(D.name));N.lengthBa(i)&&i.text===r)}function IB(e){return e!==void 0&&vo(e)?e.text:void 0}function Jst(e,t,r,i){const s=zK(t);return hNe(e,s,r,i)}function hNe(e,t,r,i){if(e.length===0)return e;const s=AO(e,c=>{if(c.attributes){let u=c.attributes.token+" ";for(const f of i1(c.attributes.elements,(g,d)=>p_(g.name.text,d.name.text)))u+=f.name.text+":",u+=vo(f.value)?`"${f.value.text}"`:f.value.getText()+" ";return u}return""}),o=[];for(const c in s){const u=s[c],{importWithoutClause:f,typeOnlyImports:g,regularImports:d}=zst(u);f&&o.push(f);for(const y of[d,g]){const x=y===g,{defaultImports:T,namespaceImports:C,namedImports:N}=y;if(!x&&T.length===1&&C.length===1&&N.length===0){const ne=T[0];o.push(t5(ne,ne.importClause.name,C[0].importClause.namedBindings));continue}const D=sy(C,(ne,ge)=>t(ne.importClause.namedBindings.name.text,ge.importClause.namedBindings.name.text));for(const ne of D)o.push(t5(ne,void 0,ne.importClause.namedBindings));const M=hu(T),V=hu(N),G=M??V;if(!G)continue;let Z;const z=[];if(T.length===1)Z=T[0].importClause.name;else for(const ne of T)z.push(L.createImportSpecifier(!1,L.createIdentifier("default"),ne.importClause.name));z.push(...Xst(N));const ce=L.createNodeArray(yNe(z,t,i),V==null?void 0:V.importClause.namedBindings.elements.hasTrailingComma),J=ce.length===0?Z?void 0:L.createNamedImports(Ke):V?L.updateNamedImports(V.importClause.namedBindings,ce):L.createNamedImports(ce);r&&J&&(V!=null&&V.importClause.namedBindings)&&!mx(V.importClause.namedBindings,r)&&pr(J,2),x&&Z&&J?(o.push(t5(G,Z,void 0)),o.push(t5(V??G,void 0,J))):o.push(t5(G,Z,J))}}return o}function zst(e){let t;const r={defaultImports:[],namespaceImports:[],namedImports:[]},i={defaultImports:[],namespaceImports:[],namedImports:[]};for(const s of e){if(s.importClause===void 0){t=t||s;continue}const o=s.importClause.isTypeOnly?r:i,{name:c,namedBindings:u}=s.importClause;c&&o.defaultImports.push(s),u&&(F1(u)?o.namespaceImports.push(s):o.namedImports.push(s))}return{importWithoutClause:t,typeOnlyImports:r,regularImports:i}}function Ust(e,t,r){const i=zK(t);return Tge(e,i,r)}function Tge(e,t,r){if(e.length===0)return e;const{exportWithoutClause:i,namedExports:s,typeOnlyExports:o}=u(e),c=[];i&&c.push(i);for(const f of[s,o]){if(f.length===0)continue;const g=[];g.push(...Ys(f,x=>x.exportClause&&sd(x.exportClause)?x.exportClause.elements:Ke));const d=yNe(g,t,r),y=f[0];c.push(L.updateExportDeclaration(y,y.modifiers,y.isTypeOnly,y.exportClause&&(sd(y.exportClause)?L.updateNamedExports(y.exportClause,d):L.updateNamespaceExport(y.exportClause,y.exportClause.name)),y.moduleSpecifier,y.attributes))}return c;function u(f){let g;const d=[],y=[];for(const x of f)x.exportClause===void 0?g=g||x:x.isTypeOnly?y.push(x):d.push(x);return{exportWithoutClause:g,namedExports:d,typeOnlyExports:y}}}function t5(e,t,r){return L.updateImportDeclaration(e,e.modifiers,L.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,r),e.moduleSpecifier,e.attributes)}function yNe(e,t,r){return sy(e,(i,s)=>kge(i,s,t,r))}function kge(e,t,r,i){switch(i==null?void 0:i.organizeImportsTypeOrder){case"first":return s1(t.isTypeOnly,e.isTypeOnly)||r(e.name.text,t.name.text);case"inline":return r(e.name.text,t.name.text);default:return s1(e.isTypeOnly,t.isTypeOnly)||r(e.name.text,t.name.text)}}function Vst(e,t,r){const i=zK(!!r);return Cge(e,t,i)}function Cge(e,t,r){const i=e===void 0?void 0:IB(e),s=t===void 0?void 0:IB(t);return s1(i===void 0,s===void 0)||s1(yu(i),yu(s))||r(i,s)}function Ege(e){var t;switch(e.kind){case 271:return(t=si(e.moduleReference,Kg))==null?void 0:t.expression;case 272:return e.moduleSpecifier;case 243:return e.declarationList.declarations[0].initializer.arguments[0]}}function Wst(e,t){return vNe(JK(e,e.statements.filter(eu)),t)}function vNe(e,t){const r=O3(t,!1),i=O3(t,!0);let s=3,o=!1;for(const c of e){if(c.length>1){const f=tl(c,g=>{var d;return((d=si(g.moduleSpecifier,Ba))==null?void 0:d.text)??""},r,i);if(f&&(s&=f,o=!0),!s)return s}const u=Cn(c,f=>{var g,d;return((d=si((g=f.importClause)==null?void 0:g.namedBindings,x0))==null?void 0:d.elements.length)>1});if(u){const f=wge(u.importClause.namedBindings.elements,t);if(f&&(s&=f,o=!0),!s)return s}if(s!==3)return s}return o?0:s}function qst(e,t){const r=O3(t,!1),i=O3(t,!0);return tl(e,s=>IB(Ege(s))||"",r,i)}function Hst(e,t,r){const i=ay(e,t,dc,(s,o)=>Pge(s,o,r));return i<0?~i:i}function Gst(e,t,r,i){const s=ay(e,t,dc,(o,c)=>kge(o,c,r,i));return s<0?~s:s}function Pge(e,t,r){return Cge(Ege(e),Ege(t),r)||$st(e,t)}function $st(e,t){return mc(bNe(e),bNe(t))}function bNe(e){var t;switch(e.kind){case 272:return e.importClause?e.importClause.isTypeOnly?1:((t=e.importClause.namedBindings)==null?void 0:t.kind)===274?2:e.importClause.name?3:4:0;case 271:return 5;case 243:return 6}}function Xst(e){return Ys(e,t=>Kt(Qst(t),r=>r.name&&r.propertyName&&r.name.escapedText===r.propertyName.escapedText?L.updateImportSpecifier(r,r.isTypeOnly,void 0,r.name):r))}function Qst(e){var t;return(t=e.importClause)!=null&&t.namedBindings&&x0(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}function zK(e){return e?Tre:p_}function Yst(e,t){const r=Zst(t),i=t.organizeImportsCaseFirst??!1,s=t.organizeImportsNumericCollation??!1,o=t.organizeImportsAccentCollation??!0,c=e?o?"accent":"base":o?"variant":"case";return new Intl.Collator(r,{usage:"sort",caseFirst:i||"false",sensitivity:c,numeric:s}).compare}function Zst(e){let t=e.organizeImportsLocale;t==="auto"&&(t=kre()),t===void 0&&(t="en");const r=Intl.Collator.supportedLocalesOf(t);return r.length?r[0]:"en"}function O3(e,t){return(e.organizeImportsCollation??"ordinal")==="unicode"?Yst(t,e):zK(t)}function Kst(e,t){const r=typeof e.organizeImportsIgnoreCase=="boolean"?e.organizeImportsIgnoreCase:(t==null?void 0:t())??!1;return O3(e,r)}function eat(e){const t=[],r=e.statements,i=Xe(r);let s=0,o=0;for(;sJK(e,c))}var SNe,wge,tat=K({"src/services/organizeImports.ts"(){ci(),SNe=class{has([e,t]){return this._lastPreferences!==t||!this._cache?!1:this._cache.has(e)}get([e,t]){if(!(this._lastPreferences!==t||!this._cache))return this._cache.get(e)}set([e,t],r){this._lastPreferences!==t&&(this._lastPreferences=t,this._cache=void 0),this._cache??(this._cache=new WeakMap),this._cache.set(e,r)}},wge=xre((e,t)=>{switch(t.organizeImportsTypeOrder){case"first":if(!Go(e,(s,o)=>s1(o.isTypeOnly,s.isTypeOnly)))return 0;break;case"inline":if(!Go(e,(s,o)=>E6(!0)(s.name.text,o.name.text)))return 0;break;default:if(!Go(e,(s,o)=>s1(s.isTypeOnly,o.isTypeOnly)))return 0;break}const r=O3(t,!1),i=O3(t,!0);if(t.organizeImportsTypeOrder!=="inline"){const{type:s,regular:o}=AO(e,f=>f.isTypeOnly?"type":"regular"),c=s!=null&&s.length?tl(s,f=>f.name.text,r,i):void 0,u=o!=null&&o.length?tl(o,f=>f.name.text??"",r,i):void 0;return c===void 0?u??0:u===void 0?c:c===0||u===0?0:u&c}return tl(e,s=>s.name.text,r,i)},new SNe)}}),cm={};Ye(cm,{coalesceExports:()=>Ust,coalesceImports:()=>Jst,compareImportOrExportSpecifiers:()=>kge,compareImportsOrRequireStatements:()=>Pge,compareModuleSpecifiers:()=>Vst,detectImportDeclarationSorting:()=>qst,detectImportSpecifierSorting:()=>wge,detectSorting:()=>Wst,getImportDeclarationInsertionIndex:()=>Hst,getImportSpecifierInsertionIndex:()=>Gst,getOrganizeImportsComparer:()=>O3,organizeImports:()=>Mst});var nat=K({"src/services/_namespaces/ts.OrganizeImports.ts"(){tat()}});function rat(e,t){const r=[];return iat(e,t,r),sat(e,r),r.sort((i,s)=>i.textSpan.start-s.textSpan.start)}function iat(e,t,r){let i=40,s=0;const o=[...e.statements,e.endOfFileToken],c=o.length;for(;s1&&i.push(OB(o,c,"comment"))}}function TNe(e,t,r,i){Bk(e)||Dge(e.pos,t,r,i)}function OB(e,t,r){return EC(Il(e,t),r)}function aat(e,t){switch(e.kind){case 241:if(oa(e.parent))return oat(e.parent,e,t);switch(e.parent.kind){case 246:case 249:case 250:case 248:case 245:case 247:case 254:case 299:return d(e.parent);case 258:const T=e.parent;if(T.tryBlock===e)return d(e.parent);if(T.finallyBlock===e){const C=wo(T,98,t);if(C)return d(C)}default:return EC(tf(e,t),"code")}case 268:return d(e.parent);case 263:case 231:case 264:case 266:case 269:case 187:case 206:return d(e);case 189:return d(e,!1,!Hk(e.parent),23);case 296:case 297:return y(e.statements);case 210:return g(e);case 209:return g(e,23);case 284:return o(e);case 288:return c(e);case 285:case 286:return u(e.attributes);case 228:case 15:return f(e);case 207:return d(e,!1,!oo(e.parent),23);case 219:return s(e);case 213:return i(e);case 217:return x(e);case 275:case 279:case 300:return r(e)}function r(T){if(!T.elements.length)return;const C=wo(T,19,t),N=wo(T,20,t);if(!(!C||!N||td(C.pos,N.pos,t)))return UK(C,N,T,t,!1,!1)}function i(T){if(!T.arguments.length)return;const C=wo(T,21,t),N=wo(T,22,t);if(!(!C||!N||td(C.pos,N.pos,t)))return UK(C,N,T,t,!1,!0)}function s(T){if(na(T.body)||df(T.body)||td(T.body.getFullStart(),T.body.getEnd(),t))return;const C=Il(T.body.getFullStart(),T.body.getEnd());return EC(C,"code",tf(T))}function o(T){const C=Il(T.openingElement.getStart(t),T.closingElement.getEnd()),N=T.openingElement.tagName.getText(t),D="<"+N+">...";return EC(C,"code",C,!1,D)}function c(T){const C=Il(T.openingFragment.getStart(t),T.closingFragment.getEnd());return EC(C,"code",C,!1,"<>...")}function u(T){if(T.properties.length!==0)return OB(T.getStart(t),T.getEnd(),"code")}function f(T){if(!(T.kind===15&&T.text.length===0))return OB(T.getStart(t),T.getEnd(),"code")}function g(T,C=19){return d(T,!1,!B_(T.parent)&&!ma(T.parent),C)}function d(T,C=!1,N=!0,D=19,M=D===19?20:24){const V=wo(e,D,t),G=wo(e,M,t);return V&&G&&UK(V,G,T,t,C,N)}function y(T){return T.length?EC(B1(T),"code"):void 0}function x(T){if(td(T.getStart(),T.getEnd(),t))return;const C=Il(T.getStart(),T.getEnd());return EC(C,"code",tf(T))}}function oat(e,t,r){const i=cat(e,t,r),s=wo(t,20,r);return i&&s&&UK(i,s,e,r,e.kind!==219)}function UK(e,t,r,i,s=!1,o=!0){const c=Il(o?e.getFullStart():e.getStart(i),t.getEnd());return EC(c,"code",tf(r,i),s)}function EC(e,t,r=e,i=!1,s="..."){return{textSpan:e,kind:t,hintSpan:r,bannerText:s,autoCollapse:i}}function cat(e,t,r){if(hae(e.parameters,r)){const i=wo(e,21,r);if(i)return i}return wo(t,19,r)}var kNe,lat=K({"src/services/outliningElementsCollector.ts"(){ci(),kNe=/^#(end)?region(?:\s+(.*))?(?:\r)?$/}}),VK={};Ye(VK,{collectElements:()=>rat});var uat=K({"src/services/_namespaces/ts.OutliningElementsCollector.ts"(){lat()}});function _at(e,t,r,i){const s=ej(mf(t,r));if(ENe(s)){const o=fat(s,e.getTypeChecker(),t,e,i);if(o)return o}return WK(p.You_cannot_rename_this_element)}function fat(e,t,r,i,s){const o=t.getSymbolAtLocation(e);if(!o){if(vo(e)){const x=KR(e,t);if(x&&(x.flags&128||x.flags&1048576&&Pn(x.types,T=>!!(T.flags&128))))return Age(e.text,e.text,"string","",e,r)}else if(qX(e)){const x=Ol(e);return Age(x,x,"label","",e,r)}return}const{declarations:c}=o;if(!c||c.length===0)return;if(c.some(x=>pat(i,x)))return WK(p.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(Je(e)&&e.escapedText==="default"&&o.parent&&o.parent.flags&1536)return;if(vo(e)&&XA(e))return s.allowRenameOfImportPath?mat(e,r,o):void 0;const u=dat(r,o,t,s);if(u)return WK(u);const f=Ly.getSymbolKind(t,o,e),g=W_e(e)||Ip(e)&&e.parent.kind===167?Nd(Ad(e)):void 0,d=g||t.symbolToString(o),y=g||t.getFullyQualifiedName(o);return Age(d,y,f,Ly.getSymbolModifiers(t,o),e,r)}function pat(e,t){const r=t.getSourceFile();return e.isSourceFileDefaultLibrary(r)&&zc(r.fileName,".d.ts")}function dat(e,t,r,i){if(!i.providePrefixAndSuffixTextForRename&&t.flags&2097152){const c=t.declarations&&Cn(t.declarations,u=>Df(u));c&&!c.propertyName&&(t=r.getAliasedSymbol(t))}const{declarations:s}=t;if(!s)return;const o=CNe(e.path);if(o===void 0)return Pe(s,c=>TI(c.getSourceFile().path))?p.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(const c of s){const u=CNe(c.getSourceFile().path);if(u){const f=Math.min(o.length,u.length);for(let g=0;g<=f;g++)if(p_(o[g],u[g])!==0)return p.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function CNe(e){const t=au(e),r=t.lastIndexOf("node_modules");if(r!==-1)return t.slice(0,r+2)}function mat(e,t,r){if(!yu(e.text))return WK(p.You_cannot_rename_a_module_via_a_global_import);const i=r.declarations&&Cn(r.declarations,es);if(!i)return;const s=Jc(e.text,"/index")||Jc(e.text,"/index.js")?void 0:Pre(Y_(i.fileName),"/index"),o=s===void 0?i.fileName:s,c=s===void 0?"module":"directory",u=e.text.lastIndexOf("/")+1,f=Ju(e.getStart(t)+1+u,e.text.length-u);return{canRename:!0,fileToRename:o,kind:c,displayName:o,fullDisplayName:e.text,kindModifiers:"",triggerSpan:f}}function Age(e,t,r,i,s,o){return{canRename:!0,fileToRename:void 0,kind:r,displayName:e,fullDisplayName:t,kindModifiers:i,triggerSpan:gat(s,o)}}function WK(e){return{canRename:!1,localizedErrorMessage:zs(e)}}function gat(e,t){let r=e.getStart(t),i=e.getWidth(t);return vo(e)&&(r+=1,i-=2),Ju(r,i)}function ENe(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return XR(e);default:return!1}}var hat=K({"src/services/rename.ts"(){ci()}}),FB={};Ye(FB,{getRenameInfo:()=>_at,nodeIsEligibleForRename:()=>ENe});var yat=K({"src/services/_namespaces/ts.Rename.ts"(){hat()}});function vat(e,t,r,i,s){const o=e.getTypeChecker(),c=tj(t,r);if(!c)return;const u=!!i&&i.kind==="characterTyped";if(u&&(pC(t,r,c)||Dy(t,r)))return;const f=!!i&&i.kind==="invoked",g=Mat(c,r,t,o,f);if(!g)return;s.throwIfCancellationRequested();const d=bat(g,o,t,c,u);return s.throwIfCancellationRequested(),d?o.runWithCancellationToken(s,y=>d.kind===0?FNe(d.candidates,d.resolvedSignature,g,t,y):jat(d.symbol,g,t,y)):L_(t)?xat(g,e,s):void 0}function bat({invocation:e,argumentCount:t},r,i,s,o){switch(e.kind){case 0:{if(o&&!Sat(s,e.node,i))return;const c=[],u=r.getResolvedSignatureForSignatureHelp(e.node,c,t);return c.length===0?void 0:{kind:0,candidates:c,resolvedSignature:u}}case 1:{const{called:c}=e;if(o&&!PNe(s,i,Je(c)?c.parent:c))return;const u=tQ(c,t,r);if(u.length!==0)return{kind:0,candidates:u,resolvedSignature:Ka(u)};const f=r.getSymbolAtLocation(c);return f&&{kind:1,symbol:f}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return w.assertNever(e)}}function Sat(e,t,r){if(!Zm(t))return!1;const i=t.getChildren(r);switch(e.kind){case 21:return Ai(i,e);case 28:{const s=ZR(e);return!!s&&Ai(i,s)}case 30:return PNe(e,r,t.expression);default:return!1}}function xat(e,t,r){if(e.invocation.kind===2)return;const i=INe(e.invocation),s=Jr(i)?i.name.text:void 0,o=t.getTypeChecker();return s===void 0?void 0:li(t.getSourceFiles(),c=>li(c.getNamedDeclarations().get(s),u=>{const f=u.symbol&&o.getTypeOfSymbolAtLocation(u.symbol,u),g=f&&f.getCallSignatures();if(g&&g.length)return o.runWithCancellationToken(r,d=>FNe(g,g[0],e,c,d,!0))}))}function PNe(e,t,r){const i=e.getFullStart();let s=e.parent;for(;s;){const o=Hl(i,t,s,!0);if(o)return jp(r,o);s=s.parent}return w.fail("Could not find preceding token")}function Tat(e,t,r,i){const s=DNe(e,t,r,i);return!s||s.isTypeParameterList||s.invocation.kind!==0?void 0:{invocation:s.invocation.node,argumentCount:s.argumentCount,argumentIndex:s.argumentIndex}}function wNe(e,t,r,i){const s=kat(e,r,i);if(!s)return;const{list:o,argumentIndex:c}=s,u=Iat(i,o);c!==0&&w.assertLessThan(c,u);const f=Fat(o,r);return{list:o,argumentIndex:c,argumentCount:u,argumentsSpan:f}}function kat(e,t,r){if(e.kind===30||e.kind===21)return{list:Rat(e.parent,e,t),argumentIndex:0};{const i=ZR(e);return i&&{list:i,argumentIndex:Nat(r,i,e)}}}function DNe(e,t,r,i){const{parent:s}=e;if(Zm(s)){const o=s,c=wNe(e,t,r,i);if(!c)return;const{list:u,argumentIndex:f,argumentCount:g,argumentsSpan:d}=c;return{isTypeParameterList:!!s.typeArguments&&s.typeArguments.pos===u.pos,invocation:{kind:0,node:o},argumentsSpan:d,argumentIndex:f,argumentCount:g}}else{if(Jk(e)&&Lb(s))return uI(e,t,r)?Ige(s,0,r):void 0;if(zk(e)&&s.parent.kind===215){const o=s,c=o.parent;w.assert(o.kind===228);const u=uI(e,t,r)?0:1;return Ige(c,u,r)}else if(Tw(s)&&Lb(s.parent.parent)){const o=s,c=s.parent.parent;if(HL(e)&&!uI(e,t,r))return;const u=o.parent.templateSpans.indexOf(o),f=Oat(u,e,t,r);return Ige(c,f,r)}else if(F_(s)){const o=s.attributes.pos,c=za(r.text,s.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:s},argumentsSpan:Ju(o,c-o),argumentIndex:0,argumentCount:1}}else{const o=nQ(e,r);if(o){const{called:c,nTypeArguments:u}=o,f={kind:1,called:c},g=Il(c.getStart(r),e.end);return{isTypeParameterList:!0,invocation:f,argumentsSpan:g,argumentIndex:u,argumentCount:u+1}}return}}}function Cat(e,t,r,i){return Eat(e,t,r,i)||DNe(e,t,r,i)}function ANe(e){return mr(e.parent)?ANe(e.parent):e}function Nge(e){return mr(e.left)?Nge(e.left)+1:2}function Eat(e,t,r,i){const s=Pat(e);if(s===void 0)return;const o=wat(s,r,t,i);if(o===void 0)return;const{contextualType:c,argumentIndex:u,argumentCount:f,argumentsSpan:g}=o,d=c.getNonNullableType(),y=d.symbol;if(y===void 0)return;const x=pc(d.getCallSignatures());return x===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:x,node:e,symbol:Dat(y)},argumentsSpan:g,argumentIndex:u,argumentCount:f}}function Pat(e){switch(e.kind){case 21:case 28:return e;default:return Vn(e.parent,t=>ws(t)?!0:oo(t)||Md(t)||Ob(t)?!1:"quit")}}function wat(e,t,r,i){const{parent:s}=e;switch(s.kind){case 217:case 174:case 218:case 219:const o=wNe(e,r,t,i);if(!o)return;const{argumentIndex:c,argumentCount:u,argumentsSpan:f}=o,g=ul(s)?i.getContextualTypeForObjectLiteralElement(s):i.getContextualType(s);return g&&{contextualType:g,argumentIndex:c,argumentCount:u,argumentsSpan:f};case 226:{const d=ANe(s),y=i.getContextualType(d),x=e.kind===21?0:Nge(s)-1,T=Nge(d);return y&&{contextualType:y,argumentIndex:x,argumentCount:T,argumentsSpan:tf(s)}}default:return}}function Dat(e){return e.name==="__type"&&li(e.declarations,t=>{var r;return Qg(t)?(r=si(t.parent,Km))==null?void 0:r.symbol:void 0})||e}function Aat(e,t){const r=t.getTypeAtLocation(e.expression);if(t.isTupleType(r)){const{elementFlags:i,fixedLength:s}=r.target;if(s===0)return 0;const o=Gs(i,c=>!(c&1));return o<0?s:o}return 0}function Nat(e,t,r){return NNe(e,t,r)}function Iat(e,t){return NNe(e,t,void 0)}function NNe(e,t,r){const i=t.getChildren();let s=0,o=!1;for(const c of i){if(r&&c===r)return!o&&c.kind===28&&s++,s;if(Pm(c)){s+=Aat(c,e),o=!0;continue}if(c.kind!==28){s++,o=!0;continue}if(o){o=!1;continue}s++}return r?s:i.length&&so(i).kind===28?s+1:s}function Oat(e,t,r,i){return w.assert(r>=t.getStart(),"Assumed 'position' could not occur before node."),wie(t)?uI(t,r,i)?0:e+2:e+1}function Ige(e,t,r){const i=Jk(e.template)?1:e.template.templateSpans.length+1;return t!==0&&w.assertLessThan(t,i),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:Lat(e,r),argumentIndex:t,argumentCount:i}}function Fat(e,t){const r=e.getFullStart(),i=za(t.text,e.getEnd(),!1);return Ju(r,i-r)}function Lat(e,t){const r=e.template,i=r.getStart();let s=r.getEnd();return r.kind===228&&so(r.templateSpans).literal.getFullWidth()===0&&(s=za(t.text,s,!1)),Ju(i,s-i)}function Mat(e,t,r,i,s){for(let o=e;!es(o)&&(s||!na(o));o=o.parent){w.assert(jp(o.parent,o),"Not a subspan",()=>`Child: ${w.formatSyntaxKind(o.kind)}, parent: ${w.formatSyntaxKind(o.parent.kind)}`);const c=Cat(o,t,r,i);if(c)return c}}function Rat(e,t,r){const i=e.getChildren(r),s=i.indexOf(t);return w.assert(s>=0&&i.length>s+1),i[s+1]}function INe(e){return e.kind===0?e9(e.node):e.called}function ONe(e){return e.kind===0?e.node:e.kind===1?e.called:e.node}function FNe(e,t,{isTypeParameterList:r,argumentCount:i,argumentsSpan:s,invocation:o,argumentIndex:c},u,f,g){var d;const y=ONe(o),x=o.kind===2?o.symbol:f.getSymbolAtLocation(INe(o))||g&&((d=t.declaration)==null?void 0:d.symbol),T=x?pD(f,x,g?u:void 0,void 0):Ke,C=Kt(e,G=>Jat(G,T,r,f,y,u));c!==0&&w.assertLessThan(c,i);let N=0,D=0;for(let G=0;G1)){let z=0;for(const ce of Z){if(ce.isVariadic||ce.parameters.length>=i){N=D+z;break}z++}}D+=Z.length}w.assert(N!==-1);const M={items:Yp(C,dc),applicableSpan:s,selectedItemIndex:N,argumentIndex:c,argumentCount:i},V=M.items[N];if(V.isVariadic){const G=Gs(V.parameters,Z=>!!Z.isRest);-1LNe(y,r,i,s,c)),f=e.getDocumentationComment(r),g=e.getJsDocTags(r);return{isVariadic:!1,prefixDisplayParts:[...o,b_(30)],suffixDisplayParts:[b_(32)],separatorDisplayParts:Oge,parameters:u,documentation:f,tags:g}}function Jat(e,t,r,i,s,o){const c=(r?Uat:Vat)(e,i,s,o);return Kt(c,({isVariadic:u,parameters:f,prefix:g,suffix:d})=>{const y=[...t,...g],x=[...d,...zat(e,s,i)],T=e.getDocumentationComment(i),C=e.getJsDocTags();return{isVariadic:u,prefixDisplayParts:y,suffixDisplayParts:x,separatorDisplayParts:Oge,parameters:f,documentation:T,tags:C}})}function zat(e,t,r){return J1(i=>{i.writePunctuation(":"),i.writeSpace(" ");const s=r.getTypePredicateOfSignature(e);s?r.writeTypePredicate(s,t,void 0,i):r.writeType(r.getReturnTypeOfSignature(e),t,void 0,i)})}function Uat(e,t,r,i){const s=(e.target||e).typeParameters,o=$b(),c=(s||Ke).map(f=>LNe(f,t,r,i,o)),u=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,r,n5)]:[];return t.getExpandedParameters(e).map(f=>{const g=L.createNodeArray([...u,...Kt(f,y=>t.symbolToParameterDeclaration(y,r,n5))]),d=J1(y=>{o.writeList(2576,g,i,y)});return{isVariadic:!1,parameters:c,prefix:[b_(30)],suffix:[b_(32),...d]}})}function Vat(e,t,r,i){const s=$b(),o=J1(f=>{if(e.typeParameters&&e.typeParameters.length){const g=L.createNodeArray(e.typeParameters.map(d=>t.typeParameterToDeclaration(d,r,n5)));s.writeList(53776,g,i,f)}}),c=t.getExpandedParameters(e),u=t.hasEffectiveRestParameter(e)?c.length===1?f=>!0:f=>{var g;return!!(f.length&&((g=si(f[f.length-1],Vg))==null?void 0:g.links.checkFlags)&32768)}:f=>!1;return c.map(f=>({isVariadic:u(f),parameters:f.map(g=>Wat(g,t,r,i,s)),prefix:[...o,b_(21)],suffix:[b_(22)]}))}function Wat(e,t,r,i,s){const o=J1(f=>{const g=t.symbolToParameterDeclaration(e,r,n5);s.writeNode(4,g,i,f)}),c=t.isOptionalParameter(e.valueDeclaration),u=Vg(e)&&!!(e.links.checkFlags&32768);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:o,isOptional:c,isRest:u}}function LNe(e,t,r,i,s){const o=J1(c=>{const u=t.typeParameterToDeclaration(e,r,n5);s.writeNode(4,u,i,c)});return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:o,isOptional:!1,isRest:!1}}var n5,Oge,qat=K({"src/services/signatureHelp.ts"(){ci(),n5=70246400,Oge=[b_(28),Yc()]}}),r5={};Ye(r5,{getArgumentInfoForCompletions:()=>Tat,getSignatureHelpItems:()=>vat});var Hat=K({"src/services/_namespaces/ts.SignatureHelp.ts"(){qat()}});function Gat(e,t){var r,i;let s={textSpan:Il(t.getFullStart(),t.getEnd())},o=t;e:for(;;){const f=Xat(o);if(!f.length)break;for(let g=0;ge)break e;const T=Mg(Jv(t.text,y.end));if(T&&T.kind===2&&u(T.pos,T.end),$at(t,e,y)){if(sW(y)&&Ko(o)&&!td(y.getStart(t),y.getEnd(),t)&&c(y.getStart(t),y.getEnd()),na(y)||Tw(y)||zk(y)||HL(y)||d&&zk(d)||_u(y)&&Xc(o)||z4(y)&&_u(o)||Ji(y)&&z4(o)&&f.length===1||Ub(y)||c2(y)||wx(y)){o=y;break}if(Tw(o)&&x&&xF(x)){const M=y.getFullStart()-2,V=x.getStart()+1;c(M,V)}const C=z4(y)&&Qat(d)&&Yat(x)&&!td(d.getStart(),x.getStart(),t);let N=C?d.getEnd():y.getStart();const D=C?x.getStart():Zat(t,y);if(dp(y)&&((r=y.jsDoc)!=null&&r.length)&&c(Ka(y.jsDoc).getStart(),D),z4(y)){const M=y.getChildren()[0];M&&dp(M)&&((i=M.jsDoc)!=null&&i.length)&&M.getStart()!==y.pos&&(N=Math.min(N,Ka(M.jsDoc).getStart()))}c(N,D),(Ba(y)||gk(y))&&c(N+1,D-1),o=y;break}if(g===f.length-1)break e}}return s;function c(f,g){if(f!==g){const d=Il(f,g);(!s||!g3(d,s.textSpan)&&aie(d,e))&&(s={textSpan:d,...s&&{parent:s}})}}function u(f,g){c(f,g);let d=f;for(;t.text.charCodeAt(d)===47;)d++;c(d,g)}}function $at(e,t,r){return w.assert(r.pos<=t),tu===e.readonlyToken||u.kind===148||u===e.questionToken||u.kind===58),c=i5(o,({kind:u})=>u===23||u===168||u===24);return[r,s5(qK(c,({kind:u})=>u===59)),s]}if(Gf(e)){const r=i5(e.getChildren(),c=>c===e.name||Ai(e.modifiers,c)),i=((t=r[0])==null?void 0:t.kind)===327?r[0]:void 0,s=i?r.slice(1):r,o=qK(s,({kind:c})=>c===59);return i?[i,s5(o)]:o}if(ws(e)){const r=i5(e.getChildren(),s=>s===e.dotDotDotToken||s===e.name),i=i5(r,s=>s===r[0]||s===e.questionToken);return qK(i,({kind:s})=>s===64)}return oo(e)?qK(e.getChildren(),({kind:r})=>r===64):e.getChildren()}function i5(e,t){const r=[];let i;for(const s of e)t(s)?(i=i||[],i.push(s)):(i&&(r.push(s5(i)),i=void 0),r.push(s));return i&&r.push(s5(i)),r}function qK(e,t,r=!0){if(e.length<2)return e;const i=Gs(e,t);if(i===-1)return e;const s=e.slice(0,i),o=e[i],c=so(e),u=r&&c.kind===27,f=e.slice(i+1,u?e.length-1:void 0),g=Zl([s.length?s5(s):void 0,o,f.length?s5(f):void 0]);return u?g.concat(c):g}function s5(e){return w.assertGreaterThanOrEqual(e.length,1),Gg(eh.createSyntaxList(e),e[0].pos,so(e).end)}function Qat(e){const t=e&&e.kind;return t===19||t===23||t===21||t===286}function Yat(e){const t=e&&e.kind;return t===20||t===24||t===22||t===287}function Zat(e,t){switch(t.kind){case 348:case 345:case 355:case 353:case 350:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}var MNe,Kat=K({"src/services/smartSelection.ts"(){ci(),MNe=Tm(eu,Tu)}}),HK={};Ye(HK,{getSmartSelectionRange:()=>Gat});var eot=K({"src/services/_namespaces/ts.SmartSelectionRange.ts"(){Kat()}});function RNe(e,t,r){const i=jNe(e,t,r);if(i!=="")return i;const s=b4(t);return s&32?Cc(t,231)?"local class":"class":s&384?"enum":s&524288?"type":s&64?"interface":s&262144?"type parameter":s&8?"enum member":s&2097152?"alias":s&1536?"module":i}function jNe(e,t,r){const i=e.getRootSymbols(t);if(i.length===1&&Ka(i).flags&8192&&e.getTypeOfSymbolAtLocation(t,r).getNonNullableType().getCallSignatures().length!==0)return"method";if(e.isUndefinedSymbol(t))return"var";if(e.isArgumentsSymbol(t))return"local var";if(r.kind===110&&vt(r)||Ck(r))return"parameter";const s=b4(t);if(s&3)return bQ(t)?"parameter":t.valueDeclaration&&Y6(t.valueDeclaration)?"const":t.valueDeclaration&&IA(t.valueDeclaration)?"using":t.valueDeclaration&&NA(t.valueDeclaration)?"await using":dt(t.declarations,WF)?"let":zNe(t)?"local var":"var";if(s&16)return zNe(t)?"local function":"function";if(s&32768)return"getter";if(s&65536)return"setter";if(s&8192)return"method";if(s&16384)return"constructor";if(s&131072)return"index";if(s&4){if(s&33554432&&t.links.checkFlags&6){const o=dt(e.getRootSymbols(t),c=>{if(c.getFlags()&98311)return"property"});return o||(e.getTypeOfSymbolAtLocation(t,r).getCallSignatures().length?"method":"property")}return"property"}return""}function BNe(e){if(e.declarations&&e.declarations.length){const[t,...r]=e.declarations,i=Xe(r)&&wj(t)&&Pe(r,o=>!wj(o))?65536:0,s=cD(t,i);if(s)return s.split(",")}return[]}function tot(e,t){if(!t)return"";const r=new Set(BNe(t));if(t.flags&2097152){const i=e.getAliasedSymbol(t);i!==t&&dt(BNe(i),s=>{r.add(s)})}return t.flags&16777216&&r.add("optional"),r.size>0?Vs(r.values()).join(","):""}function JNe(e,t,r,i,s,o,c,u){var f;const g=[];let d=[],y=[];const x=b4(t);let T=c&1?jNe(e,t,s):"",C=!1;const N=s.kind===110&&n9(s)||Ck(s);let D,M,V=!1;if(s.kind===110&&!N)return{displayParts:[Yf(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(T!==""||x&32||x&2097152){if(T==="getter"||T==="setter"){const pe=Cn(t.declarations,we=>we.name===s);if(pe)switch(pe.kind){case 177:T="getter";break;case 178:T="setter";break;case 172:T="accessor";break;default:w.assertNever(pe)}else T="property"}let X;if(o??(o=N?e.getTypeAtLocation(s):e.getTypeOfSymbolAtLocation(t,s)),s.parent&&s.parent.kind===211){const pe=s.parent.name;(pe===s||pe&&pe.getFullWidth()===0)&&(s=s.parent)}let se;if(Zm(s)?se=s:(zX(s)||aD(s)||s.parent&&(F_(s.parent)||Lb(s.parent))&&oa(t.valueDeclaration))&&(se=s.parent),se){X=e.getResolvedSignature(se);const pe=se.kind===214||ma(se)&&se.expression.kind===108,we=pe?o.getConstructSignatures():o.getCallSignatures();if(X&&!Ai(we,X.target)&&!Ai(we,X)&&(X=we.length?we[0]:void 0),X){switch(pe&&x&32?(T="constructor",ne(o.symbol,T)):x&2097152?(T="alias",ge(T),g.push(Yc()),pe&&(X.flags&4&&(g.push(Yf(128)),g.push(Yc())),g.push(Yf(105)),g.push(Yc())),J(t)):ne(t,T),T){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":g.push(b_(59)),g.push(Yc()),!(Br(o)&16)&&o.symbol&&(Mr(g,pD(e,o.symbol,i,void 0,5)),g.push(h3())),pe&&(X.flags&4&&(g.push(Yf(128)),g.push(Yc())),g.push(Yf(105)),g.push(Yc())),ve(X,we,262144);break;default:ve(X,we)}C=!0,V=we.length>1}}else if(XX(s)&&!(x&98304)||s.kind===137&&s.parent.kind===176){const pe=s.parent;if(t.declarations&&Cn(t.declarations,fe=>fe===(s.kind===137?pe.parent:pe))){const fe=pe.kind===176?o.getNonNullableType().getConstructSignatures():o.getNonNullableType().getCallSignatures();e.isImplementationOfOverload(pe)?X=fe[0]:X=e.getSignatureFromDeclaration(pe),pe.kind===176?(T="constructor",ne(o.symbol,T)):ne(pe.kind===179&&!(o.symbol.flags&2048||o.symbol.flags&4096)?o.symbol:t,T),X&&ve(X,fe),C=!0,V=fe.length>1}}}if(x&32&&!C&&!N&&(z(),Cc(t,231)?ge("local class"):g.push(Yf(86)),g.push(Yc()),J(t),Q(t,r)),x&64&&c&2&&(Z(),g.push(Yf(120)),g.push(Yc()),J(t),Q(t,r)),x&524288&&c&2&&(Z(),g.push(Yf(156)),g.push(Yc()),J(t),Q(t,r),g.push(Yc()),g.push(fD(64)),g.push(Yc()),Mr(g,hI(e,s.parent&&p0(s.parent)?e.getTypeAtLocation(s.parent):e.getDeclaredTypeOfSymbol(t),i,8388608))),x&384&&(Z(),Pe(t.declarations,X=>a2(X)&&mb(X))&&(g.push(Yf(87)),g.push(Yc())),g.push(Yf(94)),g.push(Yc()),J(t)),x&1536&&!N){Z();const X=Cc(t,267),se=X&&X.name&&X.name.kind===80;g.push(Yf(se?145:144)),g.push(Yc()),J(t)}if(x&262144&&c&2)if(Z(),g.push(b_(21)),g.push(Jp("type parameter")),g.push(b_(22)),g.push(Yc()),J(t),t.parent)ce(),J(t.parent,i),Q(t.parent,i);else{const X=Cc(t,168);if(X===void 0)return w.fail();const se=X.parent;if(se)if(oa(se)){ce();const pe=e.getSignatureFromDeclaration(se);se.kind===180?(g.push(Yf(105)),g.push(Yc())):se.kind!==179&&se.name&&J(se.symbol),Mr(g,TQ(e,pe,r,32))}else im(se)&&(ce(),g.push(Yf(156)),g.push(Yc()),J(se.symbol),Q(se.symbol,r))}if(x&8){T="enum member",ne(t,"enum member");const X=(f=t.declarations)==null?void 0:f[0];if((X==null?void 0:X.kind)===306){const se=e.getConstantValue(X);se!==void 0&&(g.push(Yc()),g.push(fD(64)),g.push(Yc()),g.push(Nf(sse(se),typeof se=="number"?7:8)))}}if(t.flags&2097152){if(Z(),!C||d.length===0&&y.length===0){const X=e.getAliasedSymbol(t);if(X!==t&&X.declarations&&X.declarations.length>0){const se=X.declarations[0],pe=Ms(se);if(pe&&!C){const we=JF(se)&&Kr(se,128),fe=t.name!=="default"&&!we,ie=JNe(e,X,qn(se),se,pe,o,c,fe?t:X);g.push(...ie.displayParts),g.push(h3()),D=ie.documentation,M=ie.tags}else D=X.getContextualDocumentationComment(se,e),M=X.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 270:g.push(Yf(95)),g.push(Yc()),g.push(Yf(145));break;case 277:g.push(Yf(95)),g.push(Yc()),g.push(Yf(t.declarations[0].isExportEquals?64:90));break;case 281:g.push(Yf(95));break;default:g.push(Yf(102))}g.push(Yc()),J(t),dt(t.declarations,X=>{if(X.kind===271){const se=X;if(Qv(se))g.push(Yc()),g.push(fD(64)),g.push(Yc()),g.push(Yf(149)),g.push(b_(21)),g.push(Nf(Ol(DP(se)),8)),g.push(b_(22));else{const pe=e.getSymbolAtLocation(se.moduleReference);pe&&(g.push(Yc()),g.push(fD(64)),g.push(Yc()),J(pe,i))}return!0}})}if(!C)if(T!==""){if(o){if(N?(Z(),g.push(Yf(110))):ne(t,T),T==="property"||T==="accessor"||T==="getter"||T==="setter"||T==="JSX attribute"||x&3||T==="local var"||T==="index"||T==="using"||T==="await using"||N){if(g.push(b_(59)),g.push(Yc()),o.symbol&&o.symbol.flags&262144&&T!=="index"){const X=J1(se=>{const pe=e.typeParameterToDeclaration(o,i,Fge);G().writeNode(4,pe,qn(Is(i)),se)});Mr(g,X)}else Mr(g,hI(e,o,i));if(Vg(t)&&t.links.target&&Vg(t.links.target)&&t.links.target.links.tupleLabelDeclaration){const X=t.links.target.links.tupleLabelDeclaration;w.assertNode(X.name,Je),g.push(Yc()),g.push(b_(21)),g.push(Jp(kr(X.name))),g.push(b_(22))}}else if(x&16||x&8192||x&16384||x&131072||x&98304||T==="method"){const X=o.getNonNullableType().getCallSignatures();X.length&&(ve(X[0],X),V=X.length>1)}}}else T=RNe(e,t,s);if(d.length===0&&!V&&(d=t.getContextualDocumentationComment(i,e)),d.length===0&&x&4&&t.parent&&t.declarations&&dt(t.parent.declarations,X=>X.kind===312))for(const X of t.declarations){if(!X.parent||X.parent.kind!==226)continue;const se=e.getSymbolAtLocation(X.parent.right);if(se&&(d=se.getDocumentationComment(e),y=se.getJsDocTags(e),d.length>0))break}if(d.length===0&&Je(s)&&t.valueDeclaration&&oo(t.valueDeclaration)){const X=t.valueDeclaration,se=X.parent,pe=X.propertyName||X.name;if(Je(pe)&&Md(se)){const we=Ad(pe),fe=e.getTypeAtLocation(se);d=li(fe.isUnion()?fe.types:[fe],ie=>{const ye=ie.getProperty(we);return ye?ye.getDocumentationComment(e):void 0})||Ke}}return y.length===0&&!V&&(y=t.getContextualJsDocTags(i,e)),d.length===0&&D&&(d=D),y.length===0&&M&&(y=M),{displayParts:g,documentation:d,symbolKind:T,tags:y.length===0?void 0:y};function G(){return $b()}function Z(){g.length&&g.push(h3()),z()}function z(){u&&(ge("alias"),g.push(Yc()))}function ce(){g.push(Yc()),g.push(Yf(103)),g.push(Yc())}function J(X,se){let pe;u&&X===t&&(X=u),T==="index"&&(pe=e.getIndexInfosOfIndexSymbol(X));let we=[];X.flags&131072&&pe?(X.parent&&(we=pD(e,X.parent)),we.push(b_(23)),pe.forEach((fe,ie)=>{we.push(...hI(e,fe.keyType)),ie!==pe.length-1&&(we.push(Yc()),we.push(b_(52)),we.push(Yc()))}),we.push(b_(24))):we=pD(e,X,se||r,void 0,7),Mr(g,we),t.flags&16777216&&g.push(b_(58))}function ne(X,se){Z(),se&&(ge(se),X&&!Pe(X.declarations,pe=>ec(pe)||(Xo(pe)||Su(pe))&&!pe.name)&&(g.push(Yc()),J(X)))}function ge(X){switch(X){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":g.push(SQ(X));return;default:g.push(b_(21)),g.push(SQ(X)),g.push(b_(22));return}}function ve(X,se,pe=0){Mr(g,TQ(e,X,i,pe|32)),se.length>1&&(g.push(Yc()),g.push(b_(21)),g.push(fD(40)),g.push(Nf((se.length-1).toString(),7)),g.push(Yc()),g.push(Jp(se.length===2?"overload":"overloads")),g.push(b_(22))),d=X.getDocumentationComment(e),y=X.getJsDocTags(),se.length>1&&d.length===0&&y.length===0&&(d=se[0].getDocumentationComment(e),y=se[0].getJsDocTags().filter(we=>we.name!=="deprecated"))}function Q(X,se){const pe=J1(we=>{const fe=e.symbolToTypeParameterDeclarations(X,se,Fge);G().writeList(53776,fe,qn(Is(se)),we)});Mr(g,pe)}}function not(e,t,r,i,s,o=jx(s),c){return JNe(e,t,r,i,s,void 0,o,c)}function zNe(e){return e.parent?!1:dt(e.declarations,t=>{if(t.kind===218)return!0;if(t.kind!==260&&t.kind!==262)return!1;for(let r=t.parent;!hb(r);r=r.parent)if(r.kind===312||r.kind===268)return!1;return!0})}var Fge,rot=K({"src/services/symbolDisplay.ts"(){ci(),Fge=70246400}}),Ly={};Ye(Ly,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>not,getSymbolKind:()=>RNe,getSymbolModifiers:()=>tot});var iot=K({"src/services/_namespaces/ts.SymbolDisplay.ts"(){rot()}});function UNe(e){const t=e.__pos;return w.assert(typeof t=="number"),t}function Lge(e,t){w.assert(typeof t=="number"),e.__pos=t}function VNe(e){const t=e.__end;return w.assert(typeof t=="number"),t}function Mge(e,t){w.assert(typeof t=="number"),e.__end=t}function WNe(e,t){return za(e,t,!1,!0)}function sot(e,t){let r=t;for(;r0?1:0;let x=v1(JP(e,g)+y,e);return x=WNe(e.text,x),v1(JP(e,x),e)}function Rge(e,t,r){const{end:i}=t,{trailingTriviaOption:s}=r;if(s===2){const o=Jv(e.text,i);if(o){const c=JP(e,t.end);for(const u of o){if(u.kind===2||JP(e,u.pos)>c)break;if(JP(e,u.end)>c)return za(e.text,u.end,!0,!0)}}}}function F3(e,t,r){var i;const{end:s}=t,{trailingTriviaOption:o}=r;if(o===0)return s;if(o===1){const f=zn(Jv(e.text,s),Ph(e.text,s)),g=(i=f==null?void 0:f[f.length-1])==null?void 0:i.end;return g||s}const c=Rge(e,t,r);if(c)return c;const u=za(e.text,s,!0);return u!==s&&(o===2||d_(e.text.charCodeAt(u-1)))?u:s}function GK(e,t){return!!t&&!!e.parent&&(t.kind===28||t.kind===27&&e.parent.kind===210)}function aot(e){return Xo(e)||Wl(e)}function oot(e){if(e.kind!==219)return e;const t=e.parent.kind===172?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}function cot(e,t){if(e.kind===t.kind)switch(e.kind){case 348:{const r=e,i=t;return Je(r.name)&&Je(i.name)&&r.name.escapedText===i.name.escapedText?L.createJSDocParameterTag(void 0,i.name,!1,i.typeExpression,i.isNameFirst,r.comment):void 0}case 349:return L.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 351:return L.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}function jge(e,t){return za(e.text,qx(e,t,{leadingTriviaOption:1}),!1,!0)}function lot(e,t,r,i){const s=jge(e,i);if(r===void 0||td(F3(e,t,{}),s,e))return s;const o=Hl(i.getStart(e),e);if(GK(t,o)){const c=Hl(t.getStart(e),e);if(GK(r,c)){const u=za(e.text,o.getEnd(),!0,!0);if(td(c.getStart(e),o.getStart(e),e))return d_(e.text.charCodeAt(u-1))?u-1:u;if(d_(e.text.charCodeAt(u)))return u}}return s}function uot(e,t){const r=wo(e,19,t),i=wo(e,20,t);return[r==null?void 0:r.end,i==null?void 0:i.end]}function $K(e){return Va(e)?e.properties:e.members}function Bge(e,t){for(let r=t.length-1;r>=0;r--){const{span:i,newText:s}=t[r];e=`${e.substring(0,i.start)}${s}${e.substring(pl(i))}`}return e}function _ot(e){return za(e,0)===e.length}function XK(e){const t=En(e,XK,$Ne,fot,XK),r=lc(t)?t:Object.create(t);return Gg(r,UNe(e),VNe(e)),r}function fot(e,t,r,i,s){const o=Wn(e,t,r,i,s);if(!o)return o;w.assert(e);const c=o===e?L.createNodeArray(o.slice(0)):o;return Gg(c,UNe(e),VNe(e)),c}function qNe(e){let t=0;const r=uN(e),i=ie=>{ie&&Lge(ie,t)},s=ie=>{ie&&Mge(ie,t)},o=ie=>{ie&&Lge(ie,t)},c=ie=>{ie&&Mge(ie,t)},u=ie=>{ie&&Lge(ie,t)},f=ie=>{ie&&Mge(ie,t)};function g(ie,ye){if(ye||!_ot(ie)){t=r.getTextPos();let Ne=0;for(;f0(ie.charCodeAt(ie.length-Ne-1));)Ne++;t-=Ne}}function d(ie){r.write(ie),g(ie,!1)}function y(ie){r.writeComment(ie)}function x(ie){r.writeKeyword(ie),g(ie,!1)}function T(ie){r.writeOperator(ie),g(ie,!1)}function C(ie){r.writePunctuation(ie),g(ie,!1)}function N(ie){r.writeTrailingSemicolon(ie),g(ie,!1)}function D(ie){r.writeParameter(ie),g(ie,!1)}function M(ie){r.writeProperty(ie),g(ie,!1)}function V(ie){r.writeSpace(ie),g(ie,!1)}function G(ie){r.writeStringLiteral(ie),g(ie,!1)}function Z(ie,ye){r.writeSymbol(ie,ye),g(ie,!1)}function z(ie){r.writeLine(ie)}function ce(){r.increaseIndent()}function J(){r.decreaseIndent()}function ne(){return r.getText()}function ge(ie){r.rawWrite(ie),g(ie,!1)}function ve(ie){r.writeLiteral(ie),g(ie,!0)}function Q(){return r.getTextPos()}function X(){return r.getLine()}function se(){return r.getColumn()}function pe(){return r.getIndent()}function we(){return r.isAtStartOfLine()}function fe(){r.clear(),t=0}return{onBeforeEmitNode:i,onAfterEmitNode:s,onBeforeEmitNodeArray:o,onAfterEmitNodeArray:c,onBeforeEmitToken:u,onAfterEmitToken:f,write:d,writeComment:y,writeKeyword:x,writeOperator:T,writePunctuation:C,writeTrailingSemicolon:N,writeParameter:D,writeProperty:M,writeSpace:V,writeStringLiteral:G,writeSymbol:Z,writeLine:z,increaseIndent:ce,decreaseIndent:J,getText:ne,rawWrite:ge,writeLiteral:ve,getTextPos:Q,getLine:X,getColumn:se,getIndent:pe,isAtStartOfLine:we,hasTrailingComment:()=>r.hasTrailingComment(),hasTrailingWhitespace:()=>r.hasTrailingWhitespace(),clear:fe}}function pot(e){let t;for(const g of e.statements)if(em(g))t=g;else break;let r=0;const i=e.text;if(t)return r=t.end,f(),r;const s=_F(i);s!==void 0&&(r=s.length,f());const o=Ph(i,r);if(!o)return r;let c,u;for(const g of o){if(g.kind===3){if(jF(i,g.pos)){c={range:g,pinnedOrTripleSlash:!0};continue}}else if(dW(i,g.pos,g.end)){c={range:g,pinnedOrTripleSlash:!0};continue}if(c){if(c.pinnedOrTripleSlash)break;const d=e.getLineAndCharacterOfPosition(g.pos).line,y=e.getLineAndCharacterOfPosition(c.range.end).line;if(d>=y+2)break}if(e.statements.length){u===void 0&&(u=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line);const d=e.getLineAndCharacterOfPosition(g.end).line;if(u(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(Jge||{}),zge=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(zge||{}),wD={leadingTriviaOption:0,trailingTriviaOption:0},GNe=class M2e{constructor(t,r){this.newLineCharacter=t,this.formatContext=r,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(t){return new M2e(Iy(t.host,t.formatContext.options),t.formatContext)}static with(t,r){const i=M2e.fromContext(t);return r(i),i.getChanges()}pushRaw(t,r){w.assertEqual(t.fileName,r.fileName);for(const i of r.textChanges)this.changes.push({kind:3,sourceFile:t,text:i.newText,range:aj(i.span)})}deleteRange(t,r){this.changes.push({kind:0,sourceFile:t,range:r})}delete(t,r){this.deletedNodes.push({sourceFile:t,node:r})}deleteNode(t,r,i={leadingTriviaOption:1}){this.deleteRange(t,a5(t,r,r,i))}deleteNodes(t,r,i={leadingTriviaOption:1},s){for(const o of r){const c=qx(t,o,i,s),u=F3(t,o,i);this.deleteRange(t,{pos:c,end:u}),s=!!Rge(t,o,i)}}deleteModifier(t,r){this.deleteRange(t,{pos:r.getStart(t),end:za(t.text,r.end,!0)})}deleteNodeRange(t,r,i,s={leadingTriviaOption:1}){const o=qx(t,r,s),c=F3(t,i,s);this.deleteRange(t,{pos:o,end:c})}deleteNodeRangeExcludingEnd(t,r,i,s={leadingTriviaOption:1}){const o=qx(t,r,s),c=i===void 0?t.text.length:qx(t,i,s);this.deleteRange(t,{pos:o,end:c})}replaceRange(t,r,i,s={}){this.changes.push({kind:1,sourceFile:t,range:r,options:s,node:i})}replaceNode(t,r,i,s=wD){this.replaceRange(t,a5(t,r,r,s),i,s)}replaceNodeRange(t,r,i,s,o=wD){this.replaceRange(t,a5(t,r,i,o),s,o)}replaceRangeWithNodes(t,r,i,s={}){this.changes.push({kind:2,sourceFile:t,range:r,options:s,nodes:i})}replaceNodeWithNodes(t,r,i,s=wD){this.replaceRangeWithNodes(t,a5(t,r,r,s),i,s)}replaceNodeWithText(t,r,i){this.replaceRangeWithText(t,a5(t,r,r,wD),i)}replaceNodeRangeWithNodes(t,r,i,s,o=wD){this.replaceRangeWithNodes(t,a5(t,r,i,o),s,o)}nodeHasTrailingComment(t,r,i=wD){return!!Rge(t,r,i)}nextCommaToken(t,r){const i=Yb(r,r.parent,t);return i&&i.kind===28?i:void 0}replacePropertyAssignment(t,r,i){const s=this.nextCommaToken(t,r)?"":","+this.newLineCharacter;this.replaceNode(t,r,i,{suffix:s})}insertNodeAt(t,r,i,s={}){this.replaceRange(t,ed(r),i,s)}insertNodesAt(t,r,i,s={}){this.replaceRangeWithNodes(t,ed(r),i,s)}insertNodeAtTopOfFile(t,r,i){this.insertAtTopOfFile(t,r,i)}insertNodesAtTopOfFile(t,r,i){this.insertAtTopOfFile(t,r,i)}insertAtTopOfFile(t,r,i){const s=pot(t),o={prefix:s===0?void 0:this.newLineCharacter,suffix:(d_(t.text.charCodeAt(s))?"":this.newLineCharacter)+(i?this.newLineCharacter:"")};Ps(r)?this.insertNodesAt(t,s,r,o):this.insertNodeAt(t,s,r,o)}insertNodesAtEndOfFile(t,r,i){this.insertAtEndOfFile(t,r,i)}insertAtEndOfFile(t,r,i){const s=t.end+1,o={prefix:this.newLineCharacter,suffix:this.newLineCharacter+(i?this.newLineCharacter:"")};this.insertNodesAt(t,s,r,o)}insertStatementsInNewFile(t,r,i){this.newFileChanges||(this.newFileChanges=Dp()),this.newFileChanges.add(t,{oldFile:i,statements:r})}insertFirstParameter(t,r,i){const s=hu(r);s?this.insertNodeBefore(t,s,i):this.insertNodeAt(t,r.pos,i)}insertNodeBefore(t,r,i,s=!1,o={}){this.insertNodeAt(t,qx(t,r,o),i,this.getOptionsForInsertNodeBefore(r,i,s))}insertNodesBefore(t,r,i,s=!1,o={}){this.insertNodesAt(t,qx(t,r,o),i,this.getOptionsForInsertNodeBefore(r,Ka(i),s))}insertModifierAt(t,r,i,s={}){this.insertNodeAt(t,r,L.createToken(i),s)}insertModifierBefore(t,r,i){return this.insertModifierAt(t,i.getStart(t),r,{suffix:" "})}insertCommentBeforeLine(t,r,i,s){const o=v1(r,t),c=H_e(t.text,o),u=HNe(t,c),f=p3(t,u?c:i),g=t.text.slice(o,c),d=`${u?"":this.newLineCharacter}//${s}${this.newLineCharacter}${g}`;this.insertText(t,f.getStart(t),d)}insertJsdocCommentBefore(t,r,i){const s=r.getStart(t);if(r.jsDoc)for(const u of r.jsDoc)this.deleteRange(t,{pos:jd(u.getStart(t),t),end:F3(t,u,{})});const o=gj(t.text,s-1),c=t.text.slice(o,s);this.insertNodeAt(t,s,i,{suffix:this.newLineCharacter+c})}createJSDocText(t,r){const i=Ys(r.jsDoc,o=>Ls(o.comment)?L.createJSDocText(o.comment):o.comment),s=Mg(r.jsDoc);return s&&td(s.pos,s.end,t)&&Xe(i)===0?void 0:L.createNodeArray(hs(i,L.createJSDocText(` +`)))}replaceJSDocComment(t,r,i){this.insertJsdocCommentBefore(t,oot(r),L.createJSDocComment(this.createJSDocText(t,r),L.createNodeArray(i)))}addJSDocTags(t,r,i){const s=Yp(r.jsDoc,c=>c.tags),o=i.filter(c=>!s.some((u,f)=>{const g=cot(u,c);return g&&(s[f]=g),!!g}));this.replaceJSDocComment(t,r,[...s,...o])}filterJSDocTags(t,r,i){this.replaceJSDocComment(t,r,vr(Yp(r.jsDoc,s=>s.tags),i))}replaceRangeWithText(t,r,i){this.changes.push({kind:3,sourceFile:t,range:r,text:i})}insertText(t,r,i){this.replaceRangeWithText(t,ed(r),i)}tryInsertTypeAnnotation(t,r,i){let s;if(oa(r)){if(s=wo(r,22,t),!s){if(!ec(r))return!1;s=Ka(r.parameters)}}else s=(r.kind===260?r.exclamationToken:r.questionToken)??r.name;return this.insertNodeAt(t,s.end,i,{prefix:": "}),!0}tryInsertThisTypeAnnotation(t,r,i){const s=wo(r,21,t).getStart(t)+1,o=r.parameters.length?", ":"";this.insertNodeAt(t,s,i,{prefix:"this: ",suffix:o})}insertTypeParameters(t,r,i){const s=(wo(r,21,t)||Ka(r.parameters)).getStart(t);this.insertNodesAt(t,s,i,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(t,r,i){return Xi(t)||vu(t)?{suffix:i?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:Ji(t)?{suffix:", "}:ws(t)?ws(r)?{suffix:", "}:{}:Ba(t)&&eu(t.parent)||x0(t)?{suffix:", "}:Df(t)?{suffix:","+(i?this.newLineCharacter:" ")}:w.failBadSyntaxKind(t)}insertNodeAtConstructorStart(t,r,i){const s=hu(r.body.statements);!s||!r.body.multiLine?this.replaceConstructorBody(t,r,[i,...r.body.statements]):this.insertNodeBefore(t,s,i)}insertNodeAtConstructorStartAfterSuperCall(t,r,i){const s=Cn(r.body.statements,o=>xu(o)&&ix(o.expression));!s||!r.body.multiLine?this.replaceConstructorBody(t,r,[...r.body.statements,i]):this.insertNodeAfter(t,s,i)}insertNodeAtConstructorEnd(t,r,i){const s=pc(r.body.statements);!s||!r.body.multiLine?this.replaceConstructorBody(t,r,[...r.body.statements,i]):this.insertNodeAfter(t,s,i)}replaceConstructorBody(t,r,i){this.replaceNode(t,r.body,L.createBlock(i,!0))}insertNodeAtEndOfScope(t,r,i){const s=qx(t,r.getLastToken(),{});this.insertNodeAt(t,s,i,{prefix:d_(t.text.charCodeAt(r.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(t,r,i){this.insertNodeAtStartWorker(t,r,i)}insertNodeAtObjectStart(t,r,i){this.insertNodeAtStartWorker(t,r,i)}insertNodeAtStartWorker(t,r,i){const s=this.guessIndentationFromExistingMembers(t,r)??this.computeIndentationForNewMember(t,r);this.insertNodeAt(t,$K(r).pos,i,this.getInsertNodeAtStartInsertOptions(t,r,s))}guessIndentationFromExistingMembers(t,r){let i,s=r;for(const o of $K(r)){if(I9(s,o,t))return;const c=o.getStart(t),u=nu.SmartIndenter.findFirstNonWhitespaceColumn(jd(c,t),c,t,this.formatContext.options);if(i===void 0)i=u;else if(u!==i)return;s=o}return i}computeIndentationForNewMember(t,r){const i=r.getStart(t);return nu.SmartIndenter.findFirstNonWhitespaceColumn(jd(i,t),i,t,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(t,r,i){const o=$K(r).length===0,c=nm(this.classesWithNodesInsertedAtStart,ho(r),{node:r,sourceFile:t}),u=Va(r)&&(!wd(t)||!o),f=Va(r)&&wd(t)&&o&&!c;return{indentation:i,prefix:(f?",":"")+this.newLineCharacter,suffix:u?",":J_(r)&&o?";":""}}insertNodeAfterComma(t,r,i){const s=this.insertNodeAfterWorker(t,this.nextCommaToken(t,r)||r,i);this.insertNodeAt(t,s,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAfter(t,r,i){const s=this.insertNodeAfterWorker(t,r,i);this.insertNodeAt(t,s,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAtEndOfList(t,r,i){this.insertNodeAt(t,r.end,i,{prefix:", "})}insertNodesAfter(t,r,i){const s=this.insertNodeAfterWorker(t,r,Ka(i));this.insertNodesAt(t,s,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAfterWorker(t,r,i){return dot(r,i)&&t.text.charCodeAt(r.end-1)!==59&&this.replaceRange(t,ed(r.end),L.createToken(27)),F3(t,r,{})}getInsertNodeAfterOptions(t,r){const i=this.getInsertNodeAfterOptionsWorker(r);return{...i,prefix:r.end===t.end&&Xi(r)?i.prefix?` +${i.prefix}`:` +`:i.prefix}}getInsertNodeAfterOptionsWorker(t){switch(t.kind){case 263:case 267:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 260:case 11:case 80:return{prefix:", "};case 303:return{suffix:","+this.newLineCharacter};case 95:return{prefix:" "};case 169:return{};default:return w.assert(Xi(t)||TF(t)),{suffix:this.newLineCharacter}}}insertName(t,r,i){if(w.assert(!r.name),r.kind===219){const s=wo(r,39,t),o=wo(r,21,t);o?(this.insertNodesAt(t,o.getStart(t),[L.createToken(100),L.createIdentifier(i)],{joiner:" "}),P0(this,t,s)):(this.insertText(t,Ka(r.parameters).getStart(t),`function ${i}(`),this.replaceRange(t,s,L.createToken(22))),r.body.kind!==241&&(this.insertNodesAt(t,r.body.getStart(t),[L.createToken(19),L.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(t,r.body.end,[L.createToken(27),L.createToken(20)],{joiner:" "}))}else{const s=wo(r,r.kind===218?100:86,t).end;this.insertNodeAt(t,s,L.createIdentifier(i),{prefix:" "})}}insertExportModifier(t,r){this.insertText(t,r.getStart(t),"export ")}insertImportSpecifierAtIndex(t,r,i,s){const o=i.elements[s-1];o?this.insertNodeInListAfter(t,o,r):this.insertNodeBefore(t,i.elements[0],r,!td(i.elements[0].getStart(),i.parent.parent.getStart(),t))}insertNodeInListAfter(t,r,i,s=nu.SmartIndenter.getContainingList(r,t)){if(!s){w.fail("node is not a list element");return}const o=$6(s,r);if(o<0)return;const c=r.getEnd();if(o!==s.length-1){const u=ps(t,r.end);if(u&&GK(r,u)){const f=s[o+1],g=WNe(t.text,f.getFullStart()),d=`${ba(u.kind)}${t.text.substring(u.end,g)}`;this.insertNodesAt(t,g,[i],{suffix:d})}}else{const u=r.getStart(t),f=jd(u,t);let g,d=!1;if(s.length===1)g=28;else{const y=Hl(r.pos,t);g=GK(r,y)?y.kind:28,d=jd(s[o-1].getStart(t),t)!==f}if((sot(t.text,r.end)||!td(s.pos,s.end,t))&&(d=!0),d){this.replaceRange(t,ed(c),L.createToken(g));const y=nu.SmartIndenter.findFirstNonWhitespaceColumn(f,u,t,this.formatContext.options);let x=za(t.text,c,!0,!1);for(;x!==c&&d_(t.text.charCodeAt(x-1));)x--;this.replaceRange(t,ed(x),i,{indentation:y,prefix:this.newLineCharacter})}else this.replaceRange(t,ed(c),i,{prefix:`${ba(g)} `})}}parenthesizeExpression(t,r){this.replaceRange(t,Lq(r),L.createParenthesizedExpression(r))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:t,sourceFile:r})=>{const[i,s]=uot(t,r);if(i!==void 0&&s!==void 0){const o=$K(t).length===0,c=td(i,s,r);o&&c&&i!==s-1&&this.deleteRange(r,ed(i,s-1)),c&&this.insertText(r,s-1,this.newLineCharacter)}})}finishDeleteDeclarations(){const t=new Set;for(const{sourceFile:r,node:i}of this.deletedNodes)this.deletedNodes.some(s=>s.sourceFile===r&&v_e(s.node,i))||(Ps(i)?this.deleteRange(r,Mq(r,i)):Uge.deleteDeclaration(this,t,r,i));t.forEach(r=>{const i=r.getSourceFile(),s=nu.SmartIndenter.getContainingList(r,i);if(r!==so(s))return;const o=lf(s,c=>!t.has(c),s.length-2);o!==-1&&this.deleteRange(i,{pos:s[o].end,end:jge(i,s[o+1])})})}getChanges(t){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();const r=QK.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,t);return this.newFileChanges&&this.newFileChanges.forEach((i,s)=>{r.push(QK.newFileChanges(s,i,this.newLineCharacter,this.formatContext))}),r}createNewFile(t,r,i){this.insertStatementsInNewFile(r,i,t)}},(e=>{function t(u,f,g,d){return Oi(KE(u,y=>y.sourceFile.path),y=>{const x=y[0].sourceFile,T=sy(y,(N,D)=>N.range.pos-D.range.pos||N.range.end-D.range.end);for(let N=0;N`${JSON.stringify(T[N].range)} and ${JSON.stringify(T[N+1].range)}`);const C=Oi(T,N=>{const D=B1(N.range),M=N.kind===1?qn(Gc(N.node))??N.sourceFile:N.kind===2?qn(Gc(N.nodes[0]))??N.sourceFile:N.sourceFile,V=s(N,M,x,f,g,d);if(!(D.length===V.length&&ife(M.text,V,D.start)))return _I(D,V)});return C.length>0?{fileName:x.fileName,textChanges:C}:void 0})}e.getTextChangesFromChanges=t;function r(u,f,g,d){const y=i($9(u),f,g,d);return{fileName:u,textChanges:[_I(Ju(0,0),y)],isNewFile:!0}}e.newFileChanges=r;function i(u,f,g,d){const y=Ys(f,C=>C.statements.map(N=>N===4?"":c(N,C.oldFile,g).text)).join(g),x=l7("any file name",y,{languageVersion:99,jsDocParsingMode:1},!0,u),T=nu.formatDocument(x,d);return Bge(y,T)+g}e.newFileChangesWorker=i;function s(u,f,g,d,y,x){var T;if(u.kind===0)return"";if(u.kind===3)return u.text;const{options:C={},range:{pos:N}}=u,D=G=>o(G,f,g,N,C,d,y,x),M=u.kind===2?u.nodes.map(G=>P6(D(G),d)).join(((T=u.options)==null?void 0:T.joiner)||d):D(u.node),V=C.indentation!==void 0||jd(N,f)===N?M:M.replace(/^\s+/,"");return(C.prefix||"")+V+(!C.suffix||Jc(V,C.suffix)?"":C.suffix)}function o(u,f,g,d,{indentation:y,prefix:x,delta:T},C,N,D){const{node:M,text:V}=c(u,f,C);D&&D(M,V);const G=Aj(N,f),Z=y!==void 0?y:nu.SmartIndenter.getIndentation(d,g,G,x===C||jd(d,f)===d);T===void 0&&(T=nu.SmartIndenter.shouldIndentChildNode(G,u)&&G.indentSize||0);const z={text:V,getLineAndCharacterOfPosition(J){return Ao(this,J)}},ce=nu.formatNodeGivenIndentation(M,z,f.languageVariant,Z,T,{...N,options:G});return Bge(V,ce)}function c(u,f,g){const d=qNe(g),y=kI(g);return d2({newLine:y,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},d).writeNode(4,u,f,d),{text:d.getText(),node:XK(u)}}e.getNonformattedText=c})(QK||(QK={})),$Ne={...Qw,factory:ON(Qw.factory.flags|1,Qw.factory.baseFactory)},(e=>{function t(o,c,u,f){switch(f.kind){case 169:{const T=f.parent;ec(T)&&T.parameters.length===1&&!wo(T,21,u)?o.replaceNodeWithText(u,f,"()"):o5(o,c,u,f);break}case 272:case 271:const g=u.imports.length&&f===Ka(u.imports).parent||f===Cn(u.statements,nx);P0(o,u,f,{leadingTriviaOption:g?0:dp(f)?2:3});break;case 208:const d=f.parent;d.kind===207&&f!==so(d.elements)?P0(o,u,f):o5(o,c,u,f);break;case 260:s(o,c,u,f);break;case 168:o5(o,c,u,f);break;case 276:const x=f.parent;x.elements.length===1?i(o,u,x):o5(o,c,u,f);break;case 274:i(o,u,f);break;case 27:P0(o,u,f,{trailingTriviaOption:0});break;case 100:P0(o,u,f,{leadingTriviaOption:0});break;case 263:case 262:P0(o,u,f,{leadingTriviaOption:dp(f)?2:3});break;default:f.parent?Yg(f.parent)&&f.parent.name===f?r(o,u,f.parent):ma(f.parent)&&Ai(f.parent.arguments,f)?o5(o,c,u,f):P0(o,u,f):P0(o,u,f)}}e.deleteDeclaration=t;function r(o,c,u){if(!u.namedBindings)P0(o,c,u.parent);else{const f=u.name.getStart(c),g=ps(c,u.name.end);if(g&&g.kind===28){const d=za(c.text,g.end,!1,!0);o.deleteRange(c,{pos:f,end:d})}else P0(o,c,u.name)}}function i(o,c,u){if(u.parent.name){const f=w.checkDefined(ps(c,u.pos-1));o.deleteRange(c,{pos:f.getStart(c),end:u.end})}else{const f=e2(u,272);P0(o,c,f)}}function s(o,c,u,f){const{parent:g}=f;if(g.kind===299){o.deleteNodeRange(u,wo(g,21,u),wo(g,22,u));return}if(g.declarations.length!==1){o5(o,c,u,f);return}const d=g.parent;switch(d.kind){case 250:case 249:o.replaceNode(u,f,L.createObjectLiteralExpression());break;case 248:P0(o,u,g);break;case 243:P0(o,u,d,{leadingTriviaOption:dp(d)?2:3});break;default:w.assertNever(d)}}})(Uge||(Uge={}))}}),gr={};Ye(gr,{ChangeTracker:()=>GNe,LeadingTriviaOption:()=>Jge,TrailingTriviaOption:()=>zge,applyChanges:()=>Bge,assignPositionsToNode:()=>XK,createWriter:()=>qNe,deleteNode:()=>P0,isThisTypeAnnotatable:()=>aot,isValidLocationToAddComment:()=>HNe});var got=K({"src/services/_namespaces/ts.textChanges.ts"(){mot()}}),Vge,Wge,hot=K({"src/services/formatting/formattingContext.ts"(){ci(),Vge=(e=>(e[e.FormatDocument=0]="FormatDocument",e[e.FormatSelection=1]="FormatSelection",e[e.FormatOnEnter=2]="FormatOnEnter",e[e.FormatOnSemicolon=3]="FormatOnSemicolon",e[e.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",e[e.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace",e))(Vge||{}),Wge=class{constructor(e,t,r){this.sourceFile=e,this.formattingRequestKind=t,this.options=r}updateContext(e,t,r,i,s){this.currentTokenSpan=w.checkDefined(e),this.currentTokenParent=w.checkDefined(t),this.nextTokenSpan=w.checkDefined(r),this.nextTokenParent=w.checkDefined(i),this.contextNode=w.checkDefined(s),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0}ContextNodeAllOnSameLine(){return this.contextNodeAllOnSameLine===void 0&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine}NextNodeAllOnSameLine(){return this.nextNodeAllOnSameLine===void 0&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine}TokensAreOnSameLine(){if(this.tokensAreOnSameLine===void 0){const e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine}ContextNodeBlockIsOnOneLine(){return this.contextNodeBlockIsOnOneLine===void 0&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine}NextNodeBlockIsOnOneLine(){return this.nextNodeBlockIsOnOneLine===void 0&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine}NodeIsOnOneLine(e){const t=this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line,r=this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line;return t===r}BlockIsOnOneLine(e){const t=wo(e,19,this.sourceFile),r=wo(e,20,this.sourceFile);if(t&&r){const i=this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line,s=this.sourceFile.getLineAndCharacterOfPosition(r.getStart(this.sourceFile)).line;return i===s}return!1}}}});function qge(e,t,r,i,s){const o=t===1?QNe:XNe;o.setText(e),o.resetTokenState(r);let c=!0,u,f,g,d,y;const x=s({advance:T,readTokenInfo:z,readEOFTokenRange:J,isOnToken:ne,isOnEOF:ge,getCurrentLeadingTrivia:()=>u,lastTrailingTriviaWasNewLine:()=>c,skipToEndOf:Q,skipToStartOf:X,getTokenFullStart:()=>(y==null?void 0:y.token.pos)??o.getTokenStart(),getStartPos:()=>(y==null?void 0:y.token.pos)??o.getTokenStart()});return y=void 0,o.setText(void 0),x;function T(){y=void 0,o.getTokenFullStart()!==r?c=!!f&&so(f).kind===4:o.scan(),u=void 0,f=void 0;let pe=o.getTokenFullStart();for(;pe(e[e.None=0]="None",e[e.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",e[e.StopProcessingTokenActions=2]="StopProcessingTokenActions",e[e.InsertSpace=4]="InsertSpace",e[e.InsertNewLine=8]="InsertNewLine",e[e.DeleteSpace=16]="DeleteSpace",e[e.DeleteToken=32]="DeleteToken",e[e.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",e[e.StopAction=3]="StopAction",e[e.ModifySpaceAction=28]="ModifySpaceAction",e[e.ModifyTokenAction=96]="ModifyTokenAction",e))(Hge||{}),Gge=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(Gge||{})}});function YNe(){const e=[];for(let ce=0;ce<=165;ce++)ce!==1&&e.push(ce);function t(...ce){return{tokens:e.filter(J=>!ce.some(ne=>ne===J)),isSpecific:!1}}const r={tokens:e,isSpecific:!1},i=DD([...e,3]),s=DD([...e,1]),o=KNe(83,165),c=KNe(30,79),u=[103,104,165,130,142,152],f=[46,47,55,54],g=[9,10,80,21,23,19,110,105],d=[80,21,110,105],y=[80,22,24,105],x=[80,21,110,105],T=[80,22,24,105],C=[2,3],N=[80,...Ij],D=i,M=DD([80,32,3,86,95,102]),V=DD([22,3,92,113,98,93,85]),G=[Qr("IgnoreBeforeComment",r,C,LB,1),Qr("IgnoreAfterLineComment",2,r,LB,1),Qr("NotSpaceBeforeColon",r,59,[Yi,MB,n7e],16),Qr("SpaceAfterColon",59,r,[Yi,MB,Mot],4),Qr("NoSpaceBeforeQuestionMark",r,58,[Yi,MB,n7e],16),Qr("SpaceAfterQuestionMarkInConditionalOperator",58,r,[Yi,Tot],4),Qr("NoSpaceAfterQuestionMark",58,r,[Yi,xot],16),Qr("NoSpaceBeforeDot",r,[25,29],[Yi,Xot],16),Qr("NoSpaceAfterDot",[25,29],r,[Yi],16),Qr("NoSpaceBetweenImportParenInImportType",102,21,[Yi,Fot],16),Qr("NoSpaceAfterUnaryPrefixOperator",f,g,[Yi,MB],16),Qr("NoSpaceAfterUnaryPreincrementOperator",46,d,[Yi],16),Qr("NoSpaceAfterUnaryPredecrementOperator",47,x,[Yi],16),Qr("NoSpaceBeforeUnaryPostincrementOperator",y,46,[Yi,y7e],16),Qr("NoSpaceBeforeUnaryPostdecrementOperator",T,47,[Yi,y7e],16),Qr("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[Yi,U1],4),Qr("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[Yi,U1],4),Qr("SpaceAfterAddWhenFollowedByPreincrement",40,46,[Yi,U1],4),Qr("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[Yi,U1],4),Qr("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[Yi,U1],4),Qr("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[Yi,U1],4),Qr("NoSpaceAfterCloseBrace",20,[28,27],[Yi],16),Qr("NewLineBeforeCloseBraceInBlockContext",i,20,[i7e],8),Qr("SpaceAfterCloseBrace",20,t(22),[Yi,Eot],4),Qr("SpaceBetweenCloseBraceAndElse",20,93,[Yi],4),Qr("SpaceBetweenCloseBraceAndWhile",20,117,[Yi],4),Qr("NoSpaceBetweenEmptyBraceBrackets",19,20,[Yi,u7e],16),Qr("SpaceAfterConditionalClosingParen",22,23,[RB],4),Qr("NoSpaceBetweenFunctionKeywordAndStar",100,42,[o7e],16),Qr("SpaceAfterStarInGeneratorDeclaration",42,80,[o7e],4),Qr("SpaceAfterFunctionInFuncDecl",100,r,[Hx],4),Qr("NewLineAfterOpenBraceInBlockContext",19,r,[i7e],8),Qr("SpaceAfterGetSetInMember",[139,153],80,[Hx],4),Qr("NoSpaceBetweenYieldKeywordAndStar",127,42,[Yi,h7e],16),Qr("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],r,[Yi,h7e],4),Qr("NoSpaceBetweenReturnAndSemicolon",107,27,[Yi],16),Qr("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],r,[Yi],4),Qr("SpaceAfterLetConstInVariableDeclaration",[121,87],r,[Yi,Bot],4),Qr("NoSpaceBeforeOpenParenInFuncCall",r,21,[Yi,Dot,Aot],16),Qr("SpaceBeforeBinaryKeywordOperator",r,u,[Yi,U1],4),Qr("SpaceAfterBinaryKeywordOperator",u,r,[Yi,U1],4),Qr("SpaceAfterVoidOperator",116,r,[Yi,Wot],4),Qr("SpaceBetweenAsyncAndOpenParen",134,21,[Oot,Yi],4),Qr("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[Yi],4),Qr("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[Yi],16),Qr("SpaceBeforeJsxAttribute",r,80,[Lot,Yi],4),Qr("SpaceBeforeSlashInJsxOpeningElement",r,44,[d7e,Yi],4),Qr("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[d7e,Yi],16),Qr("NoSpaceBeforeEqualInJsxAttribute",r,64,[f7e,Yi],16),Qr("NoSpaceAfterEqualInJsxAttribute",64,r,[f7e,Yi],16),Qr("NoSpaceBeforeJsxNamespaceColon",80,59,[p7e],16),Qr("NoSpaceAfterJsxNamespaceColon",59,80,[p7e],16),Qr("NoSpaceAfterModuleImport",[144,149],21,[Yi],16),Qr("SpaceAfterCertainTypeScriptKeywords",[128,129,86,138,90,94,95,96,139,119,102,120,144,145,123,125,124,148,153,126,156,161,143,140],r,[Yi],4),Qr("SpaceBeforeCertainTypeScriptKeywords",r,[96,119,161],[Yi],4),Qr("SpaceAfterModuleName",11,19,[Jot],4),Qr("SpaceBeforeArrow",r,39,[Yi],4),Qr("SpaceAfterArrow",39,r,[Yi],4),Qr("NoSpaceAfterEllipsis",26,80,[Yi],16),Qr("NoSpaceAfterOptionalParameters",58,[22,28],[Yi,MB],16),Qr("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[Yi,zot],16),Qr("NoSpaceBeforeOpenAngularBracket",N,30,[Yi,jB],16),Qr("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[Yi,jB],16),Qr("NoSpaceAfterOpenAngularBracket",30,r,[Yi,jB],16),Qr("NoSpaceBeforeCloseAngularBracket",r,32,[Yi,jB],16),Qr("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[Yi,jB,Cot,Vot],16),Qr("SpaceBeforeAt",[22,80],60,[Yi],4),Qr("NoSpaceAfterAt",60,r,[Yi],16),Qr("SpaceAfterDecorator",r,[128,80,95,90,86,126,125,123,124,139,153,23,42],[jot],4),Qr("NoSpaceBeforeNonNullAssertionOperator",r,54,[Yi,qot],16),Qr("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[Yi,Uot],16),Qr("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[Yi],4)],Z=[Qr("SpaceAfterConstructor",137,21,[zp("insertSpaceAfterConstructor"),Yi],4),Qr("NoSpaceAfterConstructor",137,21,[mg("insertSpaceAfterConstructor"),Yi],16),Qr("SpaceAfterComma",28,r,[zp("insertSpaceAfterCommaDelimiter"),Yi,ehe,Not,Iot],4),Qr("NoSpaceAfterComma",28,r,[mg("insertSpaceAfterCommaDelimiter"),Yi,ehe],16),Qr("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[zp("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),Hx],4),Qr("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[mg("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),Hx],16),Qr("SpaceAfterKeywordInControl",o,21,[zp("insertSpaceAfterKeywordsInControlFlowStatements"),RB],4),Qr("NoSpaceAfterKeywordInControl",o,21,[mg("insertSpaceAfterKeywordsInControlFlowStatements"),RB],16),Qr("SpaceAfterOpenParen",21,r,[zp("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Yi],4),Qr("SpaceBeforeCloseParen",r,22,[zp("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Yi],4),Qr("SpaceBetweenOpenParens",21,21,[zp("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Yi],4),Qr("NoSpaceBetweenParens",21,22,[Yi],16),Qr("NoSpaceAfterOpenParen",21,r,[mg("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Yi],16),Qr("NoSpaceBeforeCloseParen",r,22,[mg("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Yi],16),Qr("SpaceAfterOpenBracket",23,r,[zp("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Yi],4),Qr("SpaceBeforeCloseBracket",r,24,[zp("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Yi],4),Qr("NoSpaceBetweenBrackets",23,24,[Yi],16),Qr("NoSpaceAfterOpenBracket",23,r,[mg("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Yi],16),Qr("NoSpaceBeforeCloseBracket",r,24,[mg("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Yi],16),Qr("SpaceAfterOpenBrace",19,r,[t7e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),r7e],4),Qr("SpaceBeforeCloseBrace",r,20,[t7e("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),r7e],4),Qr("NoSpaceBetweenEmptyBraceBrackets",19,20,[Yi,u7e],16),Qr("NoSpaceAfterOpenBrace",19,r,[$ge("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Yi],16),Qr("NoSpaceBeforeCloseBrace",r,20,[$ge("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Yi],16),Qr("SpaceBetweenEmptyBraceBrackets",19,20,[zp("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),Qr("NoSpaceBetweenEmptyBraceBrackets",19,20,[$ge("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),Yi],16),Qr("SpaceAfterTemplateHeadAndMiddle",[16,17],r,[zp("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),_7e],4,1),Qr("SpaceBeforeTemplateMiddleAndTail",r,[17,18],[zp("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Yi],4),Qr("NoSpaceAfterTemplateHeadAndMiddle",[16,17],r,[mg("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),_7e],16,1),Qr("NoSpaceBeforeTemplateMiddleAndTail",r,[17,18],[mg("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Yi],16),Qr("SpaceAfterOpenBraceInJsxExpression",19,r,[zp("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Yi,ZK],4),Qr("SpaceBeforeCloseBraceInJsxExpression",r,20,[zp("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Yi,ZK],4),Qr("NoSpaceAfterOpenBraceInJsxExpression",19,r,[mg("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Yi,ZK],16),Qr("NoSpaceBeforeCloseBraceInJsxExpression",r,20,[mg("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Yi,ZK],16),Qr("SpaceAfterSemicolonInFor",27,r,[zp("insertSpaceAfterSemicolonInForStatements"),Yi,Qge],4),Qr("NoSpaceAfterSemicolonInFor",27,r,[mg("insertSpaceAfterSemicolonInForStatements"),Yi,Qge],16),Qr("SpaceBeforeBinaryOperator",r,c,[zp("insertSpaceBeforeAndAfterBinaryOperators"),Yi,U1],4),Qr("SpaceAfterBinaryOperator",c,r,[zp("insertSpaceBeforeAndAfterBinaryOperators"),Yi,U1],4),Qr("NoSpaceBeforeBinaryOperator",r,c,[mg("insertSpaceBeforeAndAfterBinaryOperators"),Yi,U1],16),Qr("NoSpaceAfterBinaryOperator",c,r,[mg("insertSpaceBeforeAndAfterBinaryOperators"),Yi,U1],16),Qr("SpaceBeforeOpenParenInFuncDecl",r,21,[zp("insertSpaceBeforeFunctionParenthesis"),Yi,Hx],4),Qr("NoSpaceBeforeOpenParenInFuncDecl",r,21,[mg("insertSpaceBeforeFunctionParenthesis"),Yi,Hx],16),Qr("NewLineBeforeOpenBraceInControl",V,19,[zp("placeOpenBraceOnNewLineForControlBlocks"),RB,Kge],8,1),Qr("NewLineBeforeOpenBraceInFunction",D,19,[zp("placeOpenBraceOnNewLineForFunctions"),Hx,Kge],8,1),Qr("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",M,19,[zp("placeOpenBraceOnNewLineForFunctions"),c7e,Kge],8,1),Qr("SpaceAfterTypeAssertion",32,r,[zp("insertSpaceAfterTypeAssertion"),Yi,nhe],4),Qr("NoSpaceAfterTypeAssertion",32,r,[mg("insertSpaceAfterTypeAssertion"),Yi,nhe],16),Qr("SpaceBeforeTypeAnnotation",r,[58,59],[zp("insertSpaceBeforeTypeAnnotation"),Yi,Yge],4),Qr("NoSpaceBeforeTypeAnnotation",r,[58,59],[mg("insertSpaceBeforeTypeAnnotation"),Yi,Yge],16),Qr("NoOptionalSemicolon",27,s,[e7e("semicolons","remove"),Got],32),Qr("OptionalSemicolon",r,s,[e7e("semicolons","insert"),$ot],64)],z=[Qr("NoSpaceBeforeSemicolon",r,27,[Yi],16),Qr("SpaceBeforeOpenBraceInControl",V,19,[Xge("placeOpenBraceOnNewLineForControlBlocks"),RB,the,Zge],4,1),Qr("SpaceBeforeOpenBraceInFunction",D,19,[Xge("placeOpenBraceOnNewLineForFunctions"),Hx,YK,the,Zge],4,1),Qr("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",M,19,[Xge("placeOpenBraceOnNewLineForFunctions"),c7e,the,Zge],4,1),Qr("NoSpaceBeforeComma",r,28,[Yi],16),Qr("NoSpaceBeforeOpenBracket",t(134,84),23,[Yi],16),Qr("NoSpaceAfterCloseBracket",24,r,[Yi,Rot],16),Qr("SpaceAfterSemicolon",27,r,[Yi],4),Qr("SpaceBetweenForAndAwaitKeyword",99,135,[Yi],4),Qr("SpaceBetweenStatements",[22,92,93,84],r,[Yi,ehe,bot],4),Qr("SpaceAfterTryCatchFinally",[113,85,98],19,[Yi],4)];return[...G,...Z,...z]}function Qr(e,t,r,i,s,o=0){return{leftTokenRange:ZNe(t),rightTokenRange:ZNe(r),rule:{debugName:e,context:i,action:s,flags:o}}}function DD(e){return{tokens:e,isSpecific:!0}}function ZNe(e){return typeof e=="number"?DD([e]):Ps(e)?DD(e):e}function KNe(e,t,r=[]){const i=[];for(let s=e;s<=t;s++)Ai(r,s)||i.push(s);return DD(i)}function e7e(e,t){return r=>r.options&&r.options[e]===t}function zp(e){return t=>t.options&&jo(t.options,e)&&!!t.options[e]}function $ge(e){return t=>t.options&&jo(t.options,e)&&!t.options[e]}function mg(e){return t=>!t.options||!jo(t.options,e)||!t.options[e]}function Xge(e){return t=>!t.options||!jo(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function t7e(e){return t=>!t.options||!jo(t.options,e)||!!t.options[e]}function Qge(e){return e.contextNode.kind===248}function bot(e){return!Qge(e)}function U1(e){switch(e.contextNode.kind){case 226:return e.contextNode.operatorToken.kind!==28;case 227:case 194:case 234:case 281:case 276:case 182:case 192:case 193:case 238:return!0;case 208:case 265:case 271:case 277:case 260:case 169:case 306:case 172:case 171:return e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 249:case 168:return e.currentTokenSpan.kind===103||e.nextTokenSpan.kind===103||e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 250:return e.currentTokenSpan.kind===165||e.nextTokenSpan.kind===165}return!1}function MB(e){return!U1(e)}function n7e(e){return!Yge(e)}function Yge(e){const t=e.contextNode.kind;return t===172||t===171||t===169||t===260||dk(t)}function Sot(e){return Zs(e.contextNode)&&e.contextNode.questionToken}function xot(e){return!Sot(e)}function Tot(e){return e.contextNode.kind===227||e.contextNode.kind===194}function Zge(e){return e.TokensAreOnSameLine()||YK(e)}function r7e(e){return e.contextNode.kind===206||e.contextNode.kind===200||kot(e)}function Kge(e){return YK(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function i7e(e){return s7e(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function kot(e){return s7e(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function s7e(e){return a7e(e.contextNode)}function YK(e){return a7e(e.nextTokenParent)}function a7e(e){if(l7e(e))return!0;switch(e.kind){case 241:case 269:case 210:case 268:return!0}return!1}function Hx(e){switch(e.contextNode.kind){case 262:case 174:case 173:case 177:case 178:case 179:case 218:case 176:case 219:case 264:return!0}return!1}function Cot(e){return!Hx(e)}function o7e(e){return e.contextNode.kind===262||e.contextNode.kind===218}function c7e(e){return l7e(e.contextNode)}function l7e(e){switch(e.kind){case 263:case 231:case 264:case 266:case 187:case 267:case 278:case 279:case 272:case 275:return!0}return!1}function Eot(e){switch(e.currentTokenParent.kind){case 263:case 267:case 266:case 299:case 268:case 255:return!0;case 241:{const t=e.currentTokenParent.parent;if(!t||t.kind!==219&&t.kind!==218)return!0}}return!1}function RB(e){switch(e.contextNode.kind){case 245:case 255:case 248:case 249:case 250:case 247:case 258:case 246:case 254:case 299:return!0;default:return!1}}function u7e(e){return e.contextNode.kind===210}function Pot(e){return e.contextNode.kind===213}function wot(e){return e.contextNode.kind===214}function Dot(e){return Pot(e)||wot(e)}function Aot(e){return e.currentTokenSpan.kind!==28}function Not(e){return e.nextTokenSpan.kind!==24}function Iot(e){return e.nextTokenSpan.kind!==22}function Oot(e){return e.contextNode.kind===219}function Fot(e){return e.contextNode.kind===205}function Yi(e){return e.TokensAreOnSameLine()&&e.contextNode.kind!==12}function _7e(e){return e.contextNode.kind!==12}function ehe(e){return e.contextNode.kind!==284&&e.contextNode.kind!==288}function ZK(e){return e.contextNode.kind===294||e.contextNode.kind===293}function Lot(e){return e.nextTokenParent.kind===291||e.nextTokenParent.kind===295&&e.nextTokenParent.parent.kind===291}function f7e(e){return e.contextNode.kind===291}function Mot(e){return e.nextTokenParent.kind!==295}function p7e(e){return e.nextTokenParent.kind===295}function d7e(e){return e.contextNode.kind===285}function Rot(e){return!Hx(e)&&!YK(e)}function jot(e){return e.TokensAreOnSameLine()&&Kp(e.contextNode)&&m7e(e.currentTokenParent)&&!m7e(e.nextTokenParent)}function m7e(e){for(;e&&vt(e);)e=e.parent;return e&&e.kind===170}function Bot(e){return e.currentTokenParent.kind===261&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function the(e){return e.formattingRequestKind!==2}function Jot(e){return e.contextNode.kind===267}function zot(e){return e.contextNode.kind===187}function Uot(e){return e.contextNode.kind===180}function g7e(e,t){if(e.kind!==30&&e.kind!==32)return!1;switch(t.kind){case 183:case 216:case 265:case 263:case 231:case 264:case 262:case 218:case 219:case 174:case 173:case 179:case 180:case 213:case 214:case 233:return!0;default:return!1}}function jB(e){return g7e(e.currentTokenSpan,e.currentTokenParent)||g7e(e.nextTokenSpan,e.nextTokenParent)}function nhe(e){return e.contextNode.kind===216}function Vot(e){return!nhe(e)}function Wot(e){return e.currentTokenSpan.kind===116&&e.currentTokenParent.kind===222}function h7e(e){return e.contextNode.kind===229&&e.contextNode.expression!==void 0}function qot(e){return e.contextNode.kind===235}function y7e(e){return!Hot(e)}function Hot(e){switch(e.contextNode.kind){case 245:case 248:case 249:case 250:case 246:case 247:return!0;default:return!1}}function Got(e){let t=e.nextTokenSpan.kind,r=e.nextTokenSpan.pos;if(f4(t)){const o=e.nextTokenParent===e.currentTokenParent?Yb(e.currentTokenParent,Vn(e.currentTokenParent,c=>!c.parent),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!o)return!0;t=o.kind,r=o.getStart(e.sourceFile)}const i=e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line,s=e.sourceFile.getLineAndCharacterOfPosition(r).line;return i===s?t===20||t===1:t===240||t===27?!1:e.contextNode.kind===264||e.contextNode.kind===265?!Gf(e.currentTokenParent)||!!e.currentTokenParent.type||t!==21:Zs(e.currentTokenParent)?!e.currentTokenParent.initializer:e.currentTokenParent.kind!==248&&e.currentTokenParent.kind!==242&&e.currentTokenParent.kind!==240&&t!==23&&t!==21&&t!==40&&t!==41&&t!==44&&t!==14&&t!==28&&t!==228&&t!==16&&t!==15&&t!==25}function $ot(e){return Sj(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function Xot(e){return!Jr(e.contextNode)||!Hf(e.contextNode.expression)||e.contextNode.expression.getText().includes(".")}var Qot=K({"src/services/formatting/rules.ts"(){ci(),u5()}});function Yot(e,t){return{options:e,getRules:Zot(),host:t}}function Zot(){return rhe===void 0&&(rhe=ect(YNe())),rhe}function Kot(e){let t=0;return e&1&&(t|=28),e&2&&(t|=96),e&28&&(t|=28),e&96&&(t|=96),t}function ect(e){const t=tct(e);return r=>{const i=t[v7e(r.currentTokenSpan.kind,r.nextTokenSpan.kind)];if(i){const s=[];let o=0;for(const c of i){const u=~Kot(o);c.action&u&&Pn(c.context,f=>f(r))&&(s.push(c),o|=c.action)}if(s.length)return s}}}function tct(e){const t=new Array(KK*KK),r=new Array(t.length);for(const i of e){const s=i.leftTokenRange.isSpecific&&i.rightTokenRange.isSpecific;for(const o of i.leftTokenRange.tokens)for(const c of i.rightTokenRange.tokens){const u=v7e(o,c);let f=t[u];f===void 0&&(f=t[u]=[]),nct(f,i.rule,s,r,u)}}return t}function v7e(e,t){return w.assert(e<=165&&t<=165,"Must compute formatting context from tokens"),e*KK+t}function nct(e,t,r,i,s){const o=t.action&3?r?0:AD.StopRulesAny:t.context!==LB?r?AD.ContextRulesSpecific:AD.ContextRulesAny:r?AD.NoContextRulesSpecific:AD.NoContextRulesAny,c=i[s]||0;e.splice(rct(c,o),0,t),i[s]=ict(c,o)}function rct(e,t){let r=0;for(let i=0;i<=t;i+=L3)r+=e&BB,e>>=L3;return r}function ict(e,t){const r=(e>>t&BB)+1;return w.assert((r&BB)===r,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(BB<(e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=L3*1]="StopRulesAny",e[e.ContextRulesSpecific=L3*2]="ContextRulesSpecific",e[e.ContextRulesAny=L3*3]="ContextRulesAny",e[e.NoContextRulesSpecific=L3*4]="NoContextRulesSpecific",e[e.NoContextRulesAny=L3*5]="NoContextRulesAny",e))(AD||{})}});function eee(e,t,r){const i={pos:e,end:t,kind:r};return w.isDebugging&&Object.defineProperty(i,"__debugKind",{get:()=>w.formatSyntaxKind(r)}),i}function act(e,t,r){const i=t.getLineAndCharacterOfPosition(e).line;if(i===0)return[];let s=EA(i,t);for(;Ym(t.text.charCodeAt(s));)s--;d_(t.text.charCodeAt(s))&&s--;const o={pos:v1(i-1,t),end:s+1};return JB(o,t,r,2)}function oct(e,t,r){const i=ihe(e,27,t);return b7e(she(i),t,r,3)}function cct(e,t,r){const i=ihe(e,19,t);if(!i)return[];const s=i.parent,o=she(s),c={pos:jd(o.getStart(t),t),end:e};return JB(c,t,r,4)}function lct(e,t,r){const i=ihe(e,20,t);return b7e(she(i),t,r,5)}function uct(e,t){const r={pos:0,end:e.text.length};return JB(r,e,t,0)}function _ct(e,t,r,i){const s={pos:jd(e,r),end:t};return JB(s,r,i,1)}function ihe(e,t,r){const i=Hl(e,r);return i&&i.kind===t&&e===i.getEnd()?i:void 0}function she(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!fct(t.parent,t);)t=t.parent;return t}function fct(e,t){switch(e.kind){case 263:case 264:return jp(e.members,t);case 267:const r=e.body;return!!r&&r.kind===268&&jp(r.statements,t);case 312:case 241:case 268:return jp(e.statements,t);case 299:return jp(e.block.statements,t)}return!1}function pct(e,t){return r(t);function r(i){const s=Xs(i,o=>QX(o.getStart(t),o.end,e)&&o);if(s){const o=r(s);if(o)return o}return i}}function dct(e,t){if(!e.length)return s;const r=e.filter(o=>oD(t,o.start,o.start+o.length)).sort((o,c)=>o.start-c.start);if(!r.length)return s;let i=0;return o=>{for(;;){if(i>=r.length)return!1;const c=r[i];if(o.end<=c.start)return!1;if(YR(o.pos,o.end,c.start,c.start+c.length))return!0;i++}};function s(){return!1}}function mct(e,t,r){const i=e.getStart(r);if(i===t.pos&&e.end===t.end)return i;const s=Hl(t.pos,r);return!s||s.end>=t.pos?e.pos:s.end}function gct(e,t,r){let i=-1,s;for(;e;){const o=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(i!==-1&&o!==i)break;if(gg.shouldIndentChildNode(t,e,s,r))return t.indentSize;i=o,s=e,e=e.parent}return 0}function hct(e,t,r,i,s,o){const c={pos:e.pos,end:e.end};return qge(t.text,r,c.pos,c.end,u=>S7e(c,e,i,s,u,o,1,f=>!1,t))}function b7e(e,t,r,i){if(!e)return[];const s={pos:jd(e.getStart(t),t),end:e.end};return JB(s,t,r,i)}function JB(e,t,r,i){const s=pct(e,t);return qge(t.text,t.languageVariant,mct(s,e,t),e.end,o=>S7e(e,s,gg.getIndentationForNode(s,e,t,r.options),gct(s,r.options,t),o,r,i,dct(t.parseDiagnostics,e),t))}function S7e(e,t,r,i,s,{options:o,getRules:c,host:u},f,g,d){var y;const x=new Wge(d,f,o);let T,C,N,D,M,V=-1;const G=[];if(s.advance(),s.isOnToken()){const xe=d.getLineAndCharacterOfPosition(t.getStart(d)).line;let ze=xe;Kp(t)&&(ze=d.getLineAndCharacterOfPosition(mW(t,d)).line),ge(t,t,xe,ze,r,i)}const Z=s.getCurrentLeadingTrivia();if(Z){const xe=gg.nodeWillIndentChild(o,t,void 0,d,!1)?r+o.indentSize:r;ve(Z,xe,!0,ze=>{X(ze,d.getLineAndCharacterOfPosition(ze.pos),t,t,void 0),pe(ze.pos,xe,!1)}),o.trimTrailingWhitespace!==!1&&Ue(Z)}if(C&&s.getTokenFullStart()>=e.end){const xe=s.isOnEOF()?s.readEOFTokenRange():s.isOnToken()?s.readTokenInfo(t).token:void 0;if(xe&&xe.pos===T){const ze=((y=Hl(xe.end,d,t))==null?void 0:y.parent)||N;se(xe,d.getLineAndCharacterOfPosition(xe.pos).line,ze,C,D,N,ze,void 0)}}return G;function z(xe,ze,st,zt,yt){if(oD(zt,xe,ze)||oI(zt,xe,ze)){if(yt!==-1)return yt}else{const $e=d.getLineAndCharacterOfPosition(xe).line,kt=jd(xe,d),nn=gg.findFirstNonWhitespaceColumn(kt,xe,d,o);if($e!==st||xe===nn){const sn=gg.getBaseIndentation(o);return sn>nn?sn:nn}}return-1}function ce(xe,ze,st,zt,yt,$e){const kt=gg.shouldIndentChildNode(o,xe)?o.indentSize:0;return $e===ze?{indentation:ze===M?V:yt.getIndentation(),delta:Math.min(o.indentSize,yt.getDelta(xe)+kt)}:st===-1?xe.kind===21&&ze===M?{indentation:V,delta:yt.getDelta(xe)}:gg.childStartsOnTheSameLineWithElseInIfStatement(zt,xe,ze,d)||gg.childIsUnindentedBranchOfConditionalExpression(zt,xe,ze,d)||gg.argumentStartsOnSameLineAsPreviousArgument(zt,xe,ze,d)?{indentation:yt.getIndentation(),delta:kt}:{indentation:yt.getIndentation()+yt.getDelta(xe),delta:kt}:{indentation:st,delta:kt}}function J(xe){if(sm(xe)){const ze=Cn(xe.modifiers,Fa,Gs(xe.modifiers,Vu));if(ze)return ze.kind}switch(xe.kind){case 263:return 86;case 264:return 120;case 262:return 100;case 266:return 266;case 177:return 139;case 178:return 153;case 174:if(xe.asteriskToken)return 42;case 172:case 169:const ze=Ms(xe);if(ze)return ze.kind}}function ne(xe,ze,st,zt){return{getIndentationForComment:(kt,nn,sn)=>{switch(kt){case 20:case 24:case 22:return st+$e(sn)}return nn!==-1?nn:st},getIndentationForToken:(kt,nn,sn,In)=>!In&&yt(kt,nn,sn)?st+$e(sn):st,getIndentation:()=>st,getDelta:$e,recomputeIndentation:(kt,nn)=>{gg.shouldIndentChildNode(o,nn,xe,d)&&(st+=kt?o.indentSize:-o.indentSize,zt=gg.shouldIndentChildNode(o,xe)?o.indentSize:0)}};function yt(kt,nn,sn){switch(nn){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(sn.kind){case 286:case 287:case 285:return!1}break;case 23:case 24:if(sn.kind!==200)return!1;break}return ze!==kt&&!(Kp(xe)&&nn===J(xe))}function $e(kt){return gg.nodeWillIndentChild(o,xe,kt,d,!0)?zt:0}}function ge(xe,ze,st,zt,yt,$e){if(!oD(e,xe.getStart(d),xe.getEnd()))return;const kt=ne(xe,st,yt,$e);let nn=ze;for(Xs(xe,hn=>{sn(hn,-1,xe,kt,st,zt,!1)},hn=>{In(hn,xe,st,kt)});s.isOnToken()&&s.getTokenFullStart()Math.min(xe.end,e.end))break;Zn(hn,xe,kt,xe)}function sn(hn,Zt,Yt,yi,us,zi,Os,On){if(w.assert(!lc(hn)),nl(hn)||nse(Yt,hn))return Zt;const Fi=hn.getStart(d),Er=d.getLineAndCharacterOfPosition(Fi).line;let cn=Er;Kp(hn)&&(cn=d.getLineAndCharacterOfPosition(mW(hn,d)).line);let et=-1;if(Os&&jp(e,Yt)&&(et=z(Fi,hn.end,us,e,Zt),et!==-1&&(Zt=et)),!oD(e,hn.pos,hn.end))return hn.ende.end)return Zt;if(ui.token.end>Fi){ui.token.pos>Fi&&s.skipToStartOf(hn);break}Zn(ui,xe,yi,xe)}if(!s.isOnToken()||s.getTokenFullStart()>=e.end)return Zt;if(fk(hn)){const ui=s.readTokenInfo(hn);if(hn.kind!==12)return w.assert(ui.token.end===hn.end,"Token end is child end"),Zn(ui,xe,yi,hn),Zt}const Jt=hn.kind===170?Er:zi,wn=ce(hn,Er,et,xe,yi,Jt);return ge(hn,nn,Er,cn,wn.indentation,wn.delta),nn=xe,On&&Yt.kind===209&&Zt===-1&&(Zt=wn.indentation),Zt}function In(hn,Zt,Yt,yi){w.assert(ub(hn)),w.assert(!lc(hn));const us=yct(Zt,hn);let zi=yi,Os=Yt;if(!oD(e,hn.pos,hn.end)){hn.endhn.pos)break;if(Er.token.kind===us){Os=d.getLineAndCharacterOfPosition(Er.token.pos).line,Zn(Er,Zt,yi,Zt);let cn;if(V!==-1)cn=V;else{const et=jd(Er.token.pos,d);cn=gg.findFirstNonWhitespaceColumn(et,Er.token.pos,d,o)}zi=ne(Zt,Yt,cn,o.indentSize)}else Zn(Er,Zt,yi,Zt)}let On=-1;for(let Er=0;Erpe(wn.pos,Jt,!1))}cn!==-1&&et&&(pe(hn.token.pos,cn,On===1),M=Er.line,V=cn)}s.advance(),nn=Zt}}function ve(xe,ze,st,zt){for(const yt of xe){const $e=jp(e,yt);switch(yt.kind){case 3:$e&&ie(yt,ze,!st),st=!1;break;case 2:st&&$e&&zt(yt),st=!1;break;case 4:st=!0;break}}return st}function Q(xe,ze,st,zt){for(const yt of xe)if(sj(yt.kind)&&jp(e,yt)){const $e=d.getLineAndCharacterOfPosition(yt.pos);X(yt,$e,ze,st,zt)}}function X(xe,ze,st,zt,yt){const $e=g(xe);let kt=0;if(!$e)if(C)kt=se(xe,ze.line,st,C,D,N,zt,yt);else{const nn=d.getLineAndCharacterOfPosition(e.pos);ye(nn.line,ze.line)}return C=xe,T=xe.end,N=st,D=ze.line,kt}function se(xe,ze,st,zt,yt,$e,kt,nn){x.updateContext(zt,$e,xe,st,kt);const sn=c(x);let In=x.options.trimTrailingWhitespace!==!1,Zn=0;return sn?bs(sn,hn=>{if(Zn=Tt(hn,zt,yt,xe,ze),nn)switch(Zn){case 2:st.getStart(d)===xe.pos&&nn.recomputeIndentation(!1,kt);break;case 1:st.getStart(d)===xe.pos&&nn.recomputeIndentation(!0,kt);break;default:w.assert(Zn===0)}In=In&&!(hn.action&16)&&hn.flags!==1}):In=In&&xe.kind!==1,ze!==yt&&In&&ye(yt,ze,zt),Zn}function pe(xe,ze,st){const zt=ahe(ze,o);if(st)Ae(xe,0,zt);else{const yt=d.getLineAndCharacterOfPosition(xe),$e=v1(yt.line,d);(ze!==we($e,yt.character)||fe(zt,$e))&&Ae($e,yt.character,zt)}}function we(xe,ze){let st=0;for(let zt=0;zt0){const zi=ahe(us,o);Ae(Yt,yi.character,zi)}else Ee(Yt,yi.character)}}function ye(xe,ze,st){for(let zt=xe;zt$e)continue;const kt=Ne(yt,$e);kt!==-1&&(w.assert(kt===yt||!Ym(d.text.charCodeAt(kt-1))),Ee(kt,$e+1-kt))}}function Ne(xe,ze){let st=ze;for(;st>=xe&&Ym(d.text.charCodeAt(st));)st--;return st!==ze?st+1:-1}function Ue(xe){let ze=C?C.end:e.pos;for(const st of xe)sj(st.kind)&&(zeaI(g,t)||t===g.end&&(g.kind===2||t===e.getFullWidth()))}function yct(e,t){switch(e.kind){case 176:case 262:case 218:case 174:case 173:case 219:case 179:case 180:case 184:case 185:case 177:case 178:if(e.typeParameters===t)return 30;if(e.parameters===t)return 21;break;case 213:case 214:if(e.typeArguments===t)return 30;if(e.arguments===t)return 21;break;case 263:case 231:case 264:case 265:if(e.typeParameters===t)return 30;break;case 183:case 215:case 186:case 233:case 205:if(e.typeArguments===t)return 30;break;case 187:return 19}return 0}function vct(e){switch(e){case 21:return 22;case 30:return 32;case 19:return 20}return 0}function ahe(e,t){if((!tee||tee.tabSize!==t.tabSize||tee.indentSize!==t.indentSize)&&(tee={tabSize:t.tabSize,indentSize:t.indentSize},c5=l5=void 0),t.convertTabsToSpaces){let i;const s=Math.floor(e/t.indentSize),o=e%t.indentSize;return l5||(l5=[]),l5[s]===void 0?(i=pI(" ",t.indentSize*s),l5[s]=i):i=l5[s],o?i+pI(" ",o):i}else{const i=Math.floor(e/t.tabSize),s=e-i*t.tabSize;let o;return c5||(c5=[]),c5[i]===void 0?c5[i]=o=pI(" ",i):o=c5[i],s?o+pI(" ",s):o}}var tee,c5,l5,bct=K({"src/services/formatting/formatting.ts"(){ci(),u5()}}),gg,Sct=K({"src/services/formatting/smartIndenter.ts"(){ci(),u5(),(e=>{let t;(ie=>{ie[ie.Unknown=-1]="Unknown"})(t||(t={}));function r(ie,ye,Ne,Ue=!1){if(ie>ye.text.length)return u(Ne);if(Ne.indentStyle===0)return 0;const Se=Hl(ie,ye,void 0,!0),Ee=x7e(ye,ie,Se||null);if(Ee&&Ee.kind===3)return i(ye,ie,Ne,Ee);if(!Se)return u(Ne);if(rQ(Se.kind)&&Se.getStart(ye)<=ie&&ie=0),Se<=Ee)return X(v1(Ee,ie),ye,ie,Ne);const Ae=v1(Se,ie),{column:Le,character:Tt}=Q(Ae,ye,ie,Ne);return Le===0?Le:ie.text.charCodeAt(Ae+Tt)===42?Le-1:Le}function s(ie,ye,Ne){let Ue=ye;for(;Ue>0;){const Ee=ie.text.charCodeAt(Ue);if(!f0(Ee))break;Ue--}const Se=jd(Ue,ie);return X(Se,Ue,ie,Ne)}function o(ie,ye,Ne,Ue,Se,Ee){let Ae,Le=Ne;for(;Le;){if(YX(Le,ye,ie)&&we(Ee,Le,Ae,ie,!0)){const xe=C(Le,ie),ze=T(Ne,Le,Ue,ie),st=ze!==0?Se&&ze===2?Ee.indentSize:0:Ue!==xe.line?Ee.indentSize:0;return f(Le,xe,void 0,st,ie,!0,Ee)}const Tt=ne(Le,ie,Ee,!0);if(Tt!==-1)return Tt;Ae=Le,Le=Le.parent}return u(Ee)}function c(ie,ye,Ne,Ue){const Se=Ne.getLineAndCharacterOfPosition(ie.getStart(Ne));return f(ie,Se,ye,0,Ne,!1,Ue)}e.getIndentationForNode=c;function u(ie){return ie.baseIndentSize||0}e.getBaseIndentation=u;function f(ie,ye,Ne,Ue,Se,Ee,Ae){var Le;let Tt=ie.parent;for(;Tt;){let xe=!0;if(Ne){const yt=ie.getStart(Se);xe=ytNe.end}const ze=g(Tt,ie,Se),st=ze.line===ye.line||D(Tt,ie,ye.line,Se);if(xe){const yt=(Le=G(ie,Se))==null?void 0:Le[0],$e=!!yt&&C(yt,Se).line>ze.line;let kt=ne(ie,Se,Ae,$e);if(kt!==-1||(kt=y(ie,Tt,ye,st,Se,Ae),kt!==-1))return kt+Ue}we(Ae,Tt,ie,Se,Ee)&&!st&&(Ue+=Ae.indentSize);const zt=N(Tt,ie,ye.line,Se);ie=Tt,Tt=ie.parent,ye=zt?Se.getLineAndCharacterOfPosition(ie.getStart(Se)):ze}return Ue+u(Ae)}function g(ie,ye,Ne){const Ue=G(ye,Ne),Se=Ue?Ue.pos:ie.getStart(Ne);return Ne.getLineAndCharacterOfPosition(Se)}function d(ie,ye,Ne){const Ue=b_e(ie);return Ue&&Ue.listItemIndex>0?ge(Ue.list.getChildren(),Ue.listItemIndex-1,ye,Ne):-1}function y(ie,ye,Ne,Ue,Se,Ee){return(g_(ie)||SA(ie))&&(ye.kind===312||!Ue)?ve(Ne,Se,Ee):-1}let x;(ie=>{ie[ie.Unknown=0]="Unknown",ie[ie.OpenBrace=1]="OpenBrace",ie[ie.CloseBrace=2]="CloseBrace"})(x||(x={}));function T(ie,ye,Ne,Ue){const Se=Yb(ie,ye,Ue);if(!Se)return 0;if(Se.kind===19)return 1;if(Se.kind===20){const Ee=C(Se,Ue).line;return Ne===Ee?2:0}return 0}function C(ie,ye){return ye.getLineAndCharacterOfPosition(ie.getStart(ye))}function N(ie,ye,Ne,Ue){if(!(ma(ie)&&Ai(ie.arguments,ye)))return!1;const Se=ie.expression.getEnd();return Ao(Ue,Se).line===Ne}e.isArgumentAndStartLineOverlapsExpressionBeingCalled=N;function D(ie,ye,Ne,Ue){if(ie.kind===245&&ie.elseStatement===ye){const Se=wo(ie,93,Ue);return w.assert(Se!==void 0),C(Se,Ue).line===Ne}return!1}e.childStartsOnTheSameLineWithElseInIfStatement=D;function M(ie,ye,Ne,Ue){if(M4(ie)&&(ye===ie.whenTrue||ye===ie.whenFalse)){const Se=Ao(Ue,ie.condition.end).line;if(ye===ie.whenTrue)return Ne===Se;{const Ee=C(ie.whenTrue,Ue).line,Ae=Ao(Ue,ie.whenTrue.end).line;return Se===Ee&&Ae===Ne}}return!1}e.childIsUnindentedBranchOfConditionalExpression=M;function V(ie,ye,Ne,Ue){if(Zm(ie)){if(!ie.arguments)return!1;const Se=Cn(ie.arguments,Tt=>Tt.pos===ye.pos);if(!Se)return!1;const Ee=ie.arguments.indexOf(Se);if(Ee===0)return!1;const Ae=ie.arguments[Ee-1],Le=Ao(Ue,Ae.getEnd()).line;if(Ne===Le)return!0}return!1}e.argumentStartsOnSameLineAsPreviousArgument=V;function G(ie,ye){return ie.parent&&z(ie.getStart(ye),ie.getEnd(),ie.parent,ye)}e.getContainingList=G;function Z(ie,ye,Ne){return ye&&z(ie,ie,ye,Ne)}function z(ie,ye,Ne,Ue){switch(Ne.kind){case 183:return Se(Ne.typeArguments);case 210:return Se(Ne.properties);case 209:return Se(Ne.elements);case 187:return Se(Ne.members);case 262:case 218:case 219:case 174:case 173:case 179:case 176:case 185:case 180:return Se(Ne.typeParameters)||Se(Ne.parameters);case 177:return Se(Ne.parameters);case 263:case 231:case 264:case 265:case 352:return Se(Ne.typeParameters);case 214:case 213:return Se(Ne.typeArguments)||Se(Ne.arguments);case 261:return Se(Ne.declarations);case 275:case 279:return Se(Ne.elements);case 206:case 207:return Se(Ne.elements)}function Se(Ee){return Ee&&oI(ce(Ne,Ee,Ue),ie,ye)?Ee:void 0}}function ce(ie,ye,Ne){const Ue=ie.getChildren(Ne);for(let Se=1;Se=0&&ye=0;Ae--){if(ie[Ae].kind===28)continue;if(Ne.getLineAndCharacterOfPosition(ie[Ae].end).line!==Ee.line)return ve(Ee,Ne,Ue);Ee=C(ie[Ae],Ne)}return-1}function ve(ie,ye,Ne){const Ue=ye.getPositionOfLineAndCharacter(ie.line,0);return X(Ue,Ue+ie.character,ye,Ne)}function Q(ie,ye,Ne,Ue){let Se=0,Ee=0;for(let Ae=ie;AeWge,FormattingRequestKind:()=>Vge,RuleAction:()=>Hge,RuleFlags:()=>Gge,SmartIndenter:()=>gg,anyContext:()=>LB,createTextRangeWithKind:()=>eee,formatDocument:()=>uct,formatNodeGivenIndentation:()=>hct,formatOnClosingCurly:()=>lct,formatOnEnter:()=>act,formatOnOpeningCurly:()=>cct,formatOnSemicolon:()=>oct,formatSelection:()=>_ct,getAllRules:()=>YNe,getFormatContext:()=>Yot,getFormattingScanner:()=>qge,getIndentationString:()=>ahe,getRangeOfEnclosingComment:()=>x7e});var u5=K({"src/services/_namespaces/ts.formatting.ts"(){hot(),yot(),vot(),Qot(),sct(),bct(),Sct()}}),ci=K({"src/services/_namespaces/ts.ts"(){ua(),K7(),wGe(),ZGe(),n$e(),Q4e(),d$e(),m$e(),x$e(),I$e(),O$e(),L$e(),V$e(),W$e(),_Ze(),fZe(),mZe(),LZe(),RZe(),La(),ige(),hge(),pst(),yst(),Lst(),b3e(),z3e(),nat(),uat(),rh(),yat(),Hat(),eot(),iot(),got(),u5()}});function xct(){return C7e??(C7e=new $d(wt))}function T7e(e,t,r,i,s){let o=t?"DeprecationError: ":"DeprecationWarning: ";return o+=`'${e}' `,o+=i?`has been deprecated since v${i}`:"is deprecated",o+=t?" and can no longer be used.":r?` and will no longer be usable after v${r}.`:".",o+=s?` ${Bh(s,[e])}`:"",o}function Tct(e,t,r,i){const s=T7e(e,!0,t,r,i);return()=>{throw new TypeError(s)}}function kct(e,t,r,i){let s=!1;return()=>{k7e&&!s&&(w.log.warn(T7e(e,!1,t,r,i)),s=!0)}}function Cct(e,t={}){const r=typeof t.typeScriptVersion=="string"?new $d(t.typeScriptVersion):t.typeScriptVersion??xct(),i=typeof t.errorAfter=="string"?new $d(t.errorAfter):t.errorAfter,s=typeof t.warnAfter=="string"?new $d(t.warnAfter):t.warnAfter,o=typeof t.since=="string"?new $d(t.since):t.since??s,c=t.error||i&&r.compareTo(i)>=0,u=!s||r.compareTo(s)>=0;return c?Tct(e,i,o,t.message):u?kct(e,i,o,t.message):ao}function Ect(e,t){return function(){return e(),t.apply(this,arguments)}}function ohe(e,t){const r=Cct((t==null?void 0:t.name)??w.getFunctionName(e),t);return Ect(r,e)}var k7e,C7e,E7e=K({"src/deprecatedCompat/deprecate.ts"(){ree(),k7e=!0}});function nee(e,t,r,i){if(Object.defineProperty(o,"name",{...Object.getOwnPropertyDescriptor(o,"name"),value:e}),i)for(const c of Object.keys(i)){const u=+c;!isNaN(u)&&jo(t,`${u}`)&&(t[u]=ohe(t[u],{...i[u],name:e}))}const s=Pct(t,r);return o;function o(...c){const u=s(c),f=u!==void 0?t[u]:void 0;if(typeof f=="function")return f(...c);throw new TypeError("Invalid arguments")}}function Pct(e,t){return r=>{for(let i=0;jo(e,`${i}`)&&jo(t,`${i}`);i++){const s=t[i];if(s(r))return i}}}function P7e(e){return{overload:t=>({bind:r=>({finish:()=>nee(e,t,r),deprecate:i=>({finish:()=>nee(e,t,r,i)})})})}}var wct=K({"src/deprecatedCompat/deprecations.ts"(){ree(),E7e()}}),Dct=K({"src/deprecatedCompat/5.0/identifierProperties.ts"(){ree(),E7e(),Cae(e=>{const t=e.getIdentifierConstructor();jo(t.prototype,"originalKeywordKind")||Object.defineProperty(t.prototype,"originalKeywordKind",{get:ohe(function(){return Wv(this)},{name:"originalKeywordKind",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use 'identifierToKeywordKind(identifier)' instead."})}),jo(t.prototype,"isInJSDocNamespace")||Object.defineProperty(t.prototype,"isInJSDocNamespace",{get:ohe(function(){return this.flags&4096?!0:void 0},{name:"isInJSDocNamespace",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use '.parent' or the surrounding context to determine this instead."})})})}}),ree=K({"src/deprecatedCompat/_namespaces/ts.ts"(){ua(),wct(),Dct()}}),Act=K({"src/typingsInstallerCore/_namespaces/ts.ts"(){ua(),K7(),lhe()}});function w7e(e,t,r,i){try{const s=Y4(t,Zr(e,"index.d.ts"),{moduleResolution:2},r);return s.resolvedModule&&s.resolvedModule.resolvedFileName}catch(s){i.isEnabled()&&i.writeLine(`Failed to resolve ${t} in folder '${e}': ${s.message}`);return}}function Nct(e,t,r,i){let s=!1;for(let o=r.length;o>0;){const c=D7e(e,t,r,o);o=c.remaining,s=i(c.command)||s}return s}function D7e(e,t,r,i){const s=r.length-i;let o,c=i;for(;o=`${e} install --ignore-scripts ${(c===r.length?r:r.slice(s,s+c)).join(" ")} --save-dev --user-agent="typesInstaller/${t}"`,!(o.length<8e3);)c=c-Math.floor(c/2);return{command:o,remaining:i-c}}function A7e(e){return`@types/${e}@ts${rt}`}var N7e,I7e,Ict=K({"src/typingsInstallerCore/typingsInstaller.ts"(){Act(),lhe(),N7e={isEnabled:()=>!1,writeLine:ao},I7e=class{constructor(e,t,r,i,s,o=N7e){this.installTypingHost=e,this.globalCachePath=t,this.safeListPath=r,this.typesMapLocation=i,this.throttleLimit=s,this.log=o,this.packageNameToTypingLocation=new Map,this.missingTypingsSet=new Set,this.knownCachesSet=new Set,this.projectWatchers=new Map,this.pendingRunRequests=[],this.installRunCount=1,this.inFlightRequestCount=0,this.latestDistTag="latest",this.log.isEnabled()&&this.log.writeLine(`Global cache location '${t}', safe file path '${r}', types map path ${i}`),this.processCacheLocation(this.globalCachePath)}handleRequest(e){switch(e.kind){case"discover":this.install(e);break;case"closeProject":this.closeProject(e);break;case"typesRegistry":{const t={};this.typesRegistry.forEach((i,s)=>{t[s]=i});const r={kind:JR,typesRegistry:t};this.sendResponse(r);break}case"installPackage":{this.installPackage(e);break}default:w.assertNever(e)}}closeProject(e){this.closeWatchers(e.projectName)}closeWatchers(e){if(this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}'`),!this.projectWatchers.get(e)){this.log.isEnabled()&&this.log.writeLine(`No watchers are registered for project '${e}'`);return}this.projectWatchers.delete(e),this.sendResponse({kind:sD,projectName:e,files:[]}),this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}' - done.`)}install(e){this.log.isEnabled()&&this.log.writeLine(`Got install request${g2(e)}`),e.cachePath&&(this.log.isEnabled()&&this.log.writeLine(`Request specifies cache path '${e.cachePath}', loading cached information...`),this.processCacheLocation(e.cachePath)),this.safeList===void 0&&this.initializeSafeList();const t=dg.discoverTypings(this.installTypingHost,this.log.isEnabled()?r=>this.log.writeLine(r):void 0,e.fileNames,e.projectRootPath,this.safeList,this.packageNameToTypingLocation,e.typeAcquisition,e.unresolvedImports,this.typesRegistry,e.compilerOptions);this.watchFiles(e.projectName,t.filesToWatch),t.newTypingNames.length?this.installTypings(e,e.cachePath||this.globalCachePath,t.cachedTypingPaths,t.newTypingNames):(this.sendResponse(this.createSetTypings(e,t.cachedTypingPaths)),this.log.isEnabled()&&this.log.writeLine("No new typings were requested as a result of typings discovery"))}installPackage(e){const{fileName:t,packageName:r,projectName:i,projectRootPath:s,id:o}=e,c=Yd(oi(t),u=>{if(this.installTypingHost.fileExists(Zr(u,"package.json")))return u})||s;if(c)this.installWorker(-1,[r],c,u=>{const f=u?`Package ${r} installed.`:`There was an error installing ${r}.`,g={kind:Z7,projectName:i,id:o,success:u,message:f};this.sendResponse(g)});else{const u={kind:Z7,projectName:i,id:o,success:!1,message:"Could not determine a project root path."};this.sendResponse(u)}}initializeSafeList(){if(this.typesMapLocation){const e=dg.loadTypesMap(this.installTypingHost,this.typesMapLocation);if(e){this.log.writeLine(`Loaded safelist from types map file '${this.typesMapLocation}'`),this.safeList=e;return}this.log.writeLine(`Failed to load safelist from types map file '${this.typesMapLocation}'`)}this.safeList=dg.loadSafeList(this.installTypingHost,this.safeListPath)}processCacheLocation(e){if(this.log.isEnabled()&&this.log.writeLine(`Processing cache location '${e}'`),this.knownCachesSet.has(e)){this.log.isEnabled()&&this.log.writeLine("Cache location was already processed...");return}const t=Zr(e,"package.json"),r=Zr(e,"package-lock.json");if(this.log.isEnabled()&&this.log.writeLine(`Trying to find '${t}'...`),this.installTypingHost.fileExists(t)&&this.installTypingHost.fileExists(r)){const i=JSON.parse(this.installTypingHost.readFile(t)),s=JSON.parse(this.installTypingHost.readFile(r));if(this.log.isEnabled()&&(this.log.writeLine(`Loaded content of '${t}':${g2(i)}`),this.log.writeLine(`Loaded content of '${r}':${g2(s)}`)),i.devDependencies&&s.dependencies)for(const o in i.devDependencies){if(!jo(s.dependencies,o))continue;const c=xl(o);if(!c)continue;const u=w7e(e,c,this.installTypingHost,this.log);if(!u){this.missingTypingsSet.add(c);continue}const f=this.packageNameToTypingLocation.get(c);if(f){if(f.typingLocation===u)continue;this.log.isEnabled()&&this.log.writeLine(`New typing for package ${c} from '${u}' conflicts with existing typing file '${f}'`)}this.log.isEnabled()&&this.log.writeLine(`Adding entry into typings cache: '${c}' => '${u}'`);const g=DO(s.dependencies,o),d=g&&g.version;if(!d)continue;const y={typingLocation:u,version:new $d(d)};this.packageNameToTypingLocation.set(c,y)}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${e}'`),this.knownCachesSet.add(e)}filterTypings(e){return Oi(e,t=>{const r=K4(t);if(this.missingTypingsSet.has(r)){this.log.isEnabled()&&this.log.writeLine(`'${t}':: '${r}' is in missingTypingsSet - skipping...`);return}const i=dg.validatePackageName(t);if(i!==dg.NameValidationResult.Ok){this.missingTypingsSet.add(r),this.log.isEnabled()&&this.log.writeLine(dg.renderPackageNameValidationFailure(i,t));return}if(!this.typesRegistry.has(r)){this.log.isEnabled()&&this.log.writeLine(`'${t}':: Entry for package '${r}' does not exist in local types registry - skipping...`);return}if(this.packageNameToTypingLocation.get(r)&&dg.isTypingUpToDate(this.packageNameToTypingLocation.get(r),this.typesRegistry.get(r))){this.log.isEnabled()&&this.log.writeLine(`'${t}':: '${r}' already has an up-to-date typing - skipping...`);return}return r})}ensurePackageDirectoryExists(e){const t=Zr(e,"package.json");this.log.isEnabled()&&this.log.writeLine(`Npm config file: ${t}`),this.installTypingHost.fileExists(t)||(this.log.isEnabled()&&this.log.writeLine(`Npm config file: '${t}' is missing, creating new one...`),this.ensureDirectoryExists(e,this.installTypingHost),this.installTypingHost.writeFile(t,'{ "private": true }'))}installTypings(e,t,r,i){this.log.isEnabled()&&this.log.writeLine(`Installing typings ${JSON.stringify(i)}`);const s=this.filterTypings(i);if(s.length===0){this.log.isEnabled()&&this.log.writeLine("All typings are known to be missing or invalid - no need to install more typings"),this.sendResponse(this.createSetTypings(e,r));return}this.ensurePackageDirectoryExists(t);const o=this.installRunCount;this.installRunCount++,this.sendResponse({kind:zR,eventId:o,typingsInstallerVersion:wt,projectName:e.projectName});const c=s.map(A7e);this.installTypingsAsync(o,c,t,u=>{try{if(!u){this.log.isEnabled()&&this.log.writeLine(`install request failed, marking packages as missing to prevent repeated requests: ${JSON.stringify(s)}`);for(const g of s)this.missingTypingsSet.add(g);return}this.log.isEnabled()&&this.log.writeLine(`Installed typings ${JSON.stringify(c)}`);const f=[];for(const g of s){const d=w7e(t,g,this.installTypingHost,this.log);if(!d){this.missingTypingsSet.add(g);continue}const y=this.typesRegistry.get(g),x=new $d(y[`ts${rt}`]||y[this.latestDistTag]),T={typingLocation:d,version:x};this.packageNameToTypingLocation.set(g,T),f.push(d)}this.log.isEnabled()&&this.log.writeLine(`Installed typing files ${JSON.stringify(f)}`),this.sendResponse(this.createSetTypings(e,r.concat(f)))}finally{const f={kind:UR,eventId:o,projectName:e.projectName,packagesToInstall:c,installSuccess:u,typingsInstallerVersion:wt};this.sendResponse(f)}})}ensureDirectoryExists(e,t){const r=oi(e);t.directoryExists(r)||this.ensureDirectoryExists(r,t),t.directoryExists(e)||t.createDirectory(e)}watchFiles(e,t){if(!t.length){this.closeWatchers(e);return}const r=this.projectWatchers.get(e),i=new Set(t);!r||Wg(i,s=>!r.has(s))||Wg(r,s=>!i.has(s))?(this.projectWatchers.set(e,i),this.sendResponse({kind:sD,projectName:e,files:t})):this.sendResponse({kind:sD,projectName:e,files:void 0})}createSetTypings(e,t){return{projectName:e.projectName,typeAcquisition:e.typeAcquisition,compilerOptions:e.compilerOptions,typings:t,unresolvedImports:e.unresolvedImports,kind:Q7}}installTypingsAsync(e,t,r,i){this.pendingRunRequests.unshift({requestId:e,packageNames:t,cwd:r,onRequestCompleted:i}),this.executeWithThrottling()}executeWithThrottling(){for(;this.inFlightRequestCount{this.inFlightRequestCount--,e.onRequestCompleted(t),this.executeWithThrottling()})}}}}}),che={};Ye(che,{TypingsInstaller:()=>I7e,getNpmCommandForInstallation:()=>D7e,installNpmPackages:()=>Nct,typingsName:()=>A7e});var Oct=K({"src/typingsInstallerCore/_namespaces/ts.server.typingsInstaller.ts"(){Ict()}}),lhe=K({"src/typingsInstallerCore/_namespaces/ts.server.ts"(){VR(),Oct()}}),Fct=K({"src/server/types.ts"(){}});function uhe(e,t,r,i){return{projectName:e.getProjectName(),fileNames:e.getFileNames(!0,!0).concat(e.getExcludedFiles()),compilerOptions:e.getCompilationSettings(),typeAcquisition:t,unresolvedImports:r,projectRootPath:e.getCurrentDirectory(),cachePath:i,kind:"discover"}}function Ec(e){return ka(e)}function _5(e,t,r){const i=zf(e)?e:Ss(e,t);return r(i)}function O7e(e){return e}function F7e(){const e=new Map;return{get(t){return e.get(t)},set(t,r){e.set(t,r)},contains(t){return e.has(t)},remove(t){e.delete(t)}}}function _he(e){return/dev\/null\/inferredProject\d+\*/.test(e)}function fhe(e){return`/dev/null/inferredProject${e}*`}function phe(e){return`/dev/null/autoImportProviderProject${e}*`}function dhe(e){return`/dev/null/auxiliaryProject${e}*`}function mhe(){return[]}var iee,Rl,see,My,Lct=K({"src/server/utilitiesPublic.ts"(){V1(),iee=(e=>(e[e.terse=0]="terse",e[e.normal=1]="normal",e[e.requestTime=2]="requestTime",e[e.verbose=3]="verbose",e))(iee||{}),Rl=mhe(),see=(e=>(e.Err="Err",e.Info="Info",e.Perf="Perf",e))(see||{}),(e=>{function t(){throw new Error("No Project.")}e.ThrowNoProject=t;function r(){throw new Error("The project's language service is disabled.")}e.ThrowProjectLanguageServiceDisabled=r;function i(s,o){throw new Error(`Project '${o.getProjectName()}' does not contain document '${s}'`)}e.ThrowProjectDoesNotContainDocument=i})(My||(My={}))}});function aee(e){const t=xl(e);return t==="tsconfig.json"||t==="jsconfig.json"?t:void 0}function L7e(e,t,r){if(!e||e.length===0)return;if(e[0]===t){e.splice(0,1);return}const i=ay(e,t,dc,r);i>=0&&e.splice(i,1)}var oee,cee,Mct=K({"src/server/utilities.ts"(){V1(),$x(),oee=class vJe{constructor(t,r){this.host=t,this.pendingTimeouts=new Map,this.logger=r.hasLevel(3)?r:void 0}schedule(t,r,i){const s=this.pendingTimeouts.get(t);s&&this.host.clearTimeout(s),this.pendingTimeouts.set(t,this.host.setTimeout(vJe.run,r,t,this,i)),this.logger&&this.logger.info(`Scheduled: ${t}${s?", Cancelled earlier one":""}`)}cancel(t){const r=this.pendingTimeouts.get(t);return r?(this.host.clearTimeout(r),this.pendingTimeouts.delete(t)):!1}static run(t,r,i){var s,o;(s=A_)==null||s.logStartScheduledOperation(t),r.pendingTimeouts.delete(t),r.logger&&r.logger.info(`Running: ${t}`),i(),(o=A_)==null||o.logStopScheduledOperation()}},cee=class bJe{constructor(t,r,i){this.host=t,this.delay=r,this.logger=i}scheduleCollect(){!this.host.gc||this.timerId!==void 0||(this.timerId=this.host.setTimeout(bJe.run,this.delay,this))}static run(t){var r,i;t.timerId=void 0,(r=A_)==null||r.logStartScheduledOperation("GC collect");const s=t.logger.hasLevel(2),o=s&&t.host.getMemoryUsage();if(t.host.gc(),s){const c=t.host.getMemoryUsage();t.logger.perftrc(`GC::before ${o}, after ${c}`)}(i=A_)==null||i.logStopScheduledOperation()}}}}),lee,ghe,hhe,yhe,vhe,bhe,She,xhe,The,khe,Che,Ehe,Phe,whe,Dhe=K({"src/server/protocol.ts"(){lee=(e=>(e.JsxClosingTag="jsxClosingTag",e.LinkedEditingRange="linkedEditingRange",e.Brace="brace",e.BraceFull="brace-full",e.BraceCompletion="braceCompletion",e.GetSpanOfEnclosingComment="getSpanOfEnclosingComment",e.Change="change",e.Close="close",e.Completions="completions",e.CompletionInfo="completionInfo",e.CompletionsFull="completions-full",e.CompletionDetails="completionEntryDetails",e.CompletionDetailsFull="completionEntryDetails-full",e.CompileOnSaveAffectedFileList="compileOnSaveAffectedFileList",e.CompileOnSaveEmitFile="compileOnSaveEmitFile",e.Configure="configure",e.Definition="definition",e.DefinitionFull="definition-full",e.DefinitionAndBoundSpan="definitionAndBoundSpan",e.DefinitionAndBoundSpanFull="definitionAndBoundSpan-full",e.Implementation="implementation",e.ImplementationFull="implementation-full",e.EmitOutput="emit-output",e.Exit="exit",e.FileReferences="fileReferences",e.FileReferencesFull="fileReferences-full",e.Format="format",e.Formatonkey="formatonkey",e.FormatFull="format-full",e.FormatonkeyFull="formatonkey-full",e.FormatRangeFull="formatRange-full",e.Geterr="geterr",e.GeterrForProject="geterrForProject",e.SemanticDiagnosticsSync="semanticDiagnosticsSync",e.SyntacticDiagnosticsSync="syntacticDiagnosticsSync",e.SuggestionDiagnosticsSync="suggestionDiagnosticsSync",e.NavBar="navbar",e.NavBarFull="navbar-full",e.Navto="navto",e.NavtoFull="navto-full",e.NavTree="navtree",e.NavTreeFull="navtree-full",e.DocumentHighlights="documentHighlights",e.DocumentHighlightsFull="documentHighlights-full",e.Open="open",e.Quickinfo="quickinfo",e.QuickinfoFull="quickinfo-full",e.References="references",e.ReferencesFull="references-full",e.Reload="reload",e.Rename="rename",e.RenameInfoFull="rename-full",e.RenameLocationsFull="renameLocations-full",e.Saveto="saveto",e.SignatureHelp="signatureHelp",e.SignatureHelpFull="signatureHelp-full",e.FindSourceDefinition="findSourceDefinition",e.Status="status",e.TypeDefinition="typeDefinition",e.ProjectInfo="projectInfo",e.ReloadProjects="reloadProjects",e.Unknown="unknown",e.OpenExternalProject="openExternalProject",e.OpenExternalProjects="openExternalProjects",e.CloseExternalProject="closeExternalProject",e.SynchronizeProjectList="synchronizeProjectList",e.ApplyChangedToOpenFiles="applyChangedToOpenFiles",e.UpdateOpen="updateOpen",e.EncodedSyntacticClassificationsFull="encodedSyntacticClassifications-full",e.EncodedSemanticClassificationsFull="encodedSemanticClassifications-full",e.Cleanup="cleanup",e.GetOutliningSpans="getOutliningSpans",e.GetOutliningSpansFull="outliningSpans",e.TodoComments="todoComments",e.Indentation="indentation",e.DocCommentTemplate="docCommentTemplate",e.CompilerOptionsDiagnosticsFull="compilerOptionsDiagnostics-full",e.NameOrDottedNameSpan="nameOrDottedNameSpan",e.BreakpointStatement="breakpointStatement",e.CompilerOptionsForInferredProjects="compilerOptionsForInferredProjects",e.GetCodeFixes="getCodeFixes",e.GetCodeFixesFull="getCodeFixes-full",e.GetCombinedCodeFix="getCombinedCodeFix",e.GetCombinedCodeFixFull="getCombinedCodeFix-full",e.ApplyCodeActionCommand="applyCodeActionCommand",e.GetSupportedCodeFixes="getSupportedCodeFixes",e.GetApplicableRefactors="getApplicableRefactors",e.GetEditsForRefactor="getEditsForRefactor",e.GetMoveToRefactoringFileSuggestions="getMoveToRefactoringFileSuggestions",e.GetEditsForRefactorFull="getEditsForRefactor-full",e.OrganizeImports="organizeImports",e.OrganizeImportsFull="organizeImports-full",e.GetEditsForFileRename="getEditsForFileRename",e.GetEditsForFileRenameFull="getEditsForFileRename-full",e.ConfigurePlugin="configurePlugin",e.SelectionRange="selectionRange",e.SelectionRangeFull="selectionRange-full",e.ToggleLineComment="toggleLineComment",e.ToggleLineCommentFull="toggleLineComment-full",e.ToggleMultilineComment="toggleMultilineComment",e.ToggleMultilineCommentFull="toggleMultilineComment-full",e.CommentSelection="commentSelection",e.CommentSelectionFull="commentSelection-full",e.UncommentSelection="uncommentSelection",e.UncommentSelectionFull="uncommentSelection-full",e.PrepareCallHierarchy="prepareCallHierarchy",e.ProvideCallHierarchyIncomingCalls="provideCallHierarchyIncomingCalls",e.ProvideCallHierarchyOutgoingCalls="provideCallHierarchyOutgoingCalls",e.ProvideInlayHints="provideInlayHints",e.WatchChange="watchChange",e))(lee||{}),ghe=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(ghe||{}),hhe=(e=>(e.FixedPollingInterval="FixedPollingInterval",e.PriorityPollingInterval="PriorityPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e.UseFsEvents="UseFsEvents",e.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",e))(hhe||{}),yhe=(e=>(e.UseFsEvents="UseFsEvents",e.FixedPollingInterval="FixedPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e))(yhe||{}),vhe=(e=>(e.FixedInterval="FixedInterval",e.PriorityInterval="PriorityInterval",e.DynamicPriority="DynamicPriority",e.FixedChunkSize="FixedChunkSize",e))(vhe||{}),bhe=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(bhe||{}),She=(e=>(e.None="None",e.Block="Block",e.Smart="Smart",e))(She||{}),xhe=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(xhe||{}),The=(e=>(e.None="None",e.Preserve="Preserve",e.ReactNative="ReactNative",e.React="React",e))(The||{}),khe=(e=>(e.None="None",e.CommonJS="CommonJS",e.AMD="AMD",e.UMD="UMD",e.System="System",e.ES6="ES6",e.ES2015="ES2015",e.ESNext="ESNext",e.Node16="Node16",e.NodeNext="NodeNext",e.Preserve="Preserve",e))(khe||{}),Che=(e=>(e.Classic="Classic",e.Node="Node",e.Node10="Node10",e.Node16="Node16",e.NodeNext="NodeNext",e.Bundler="Bundler",e))(Che||{}),Ehe=(e=>(e.Crlf="Crlf",e.Lf="Lf",e))(Ehe||{}),Phe=(e=>(e.ES3="ES3",e.ES5="ES5",e.ES6="ES6",e.ES2015="ES2015",e.ES2016="ES2016",e.ES2017="ES2017",e.ES2018="ES2018",e.ES2019="ES2019",e.ES2020="ES2020",e.ES2021="ES2021",e.ES2022="ES2022",e.ESNext="ESNext",e))(Phe||{}),whe=(e=>(e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral",e))(whe||{})}}),Ahe={};Ye(Ahe,{ClassificationType:()=>whe,CommandTypes:()=>lee,CompletionTriggerKind:()=>bhe,IndentStyle:()=>She,JsxEmit:()=>The,ModuleKind:()=>khe,ModuleResolutionKind:()=>Che,NewLineKind:()=>Ehe,OrganizeImportsMode:()=>ghe,PollingWatchKind:()=>vhe,ScriptTarget:()=>Phe,SemicolonPreference:()=>xhe,WatchDirectoryKind:()=>yhe,WatchFileKind:()=>hhe});var Rct=K({"src/server/_namespaces/ts.server.protocol.ts"(){Dhe()}});function f5(e){return e[0]==="^"||(e.includes("walkThroughSnippet:/")||e.includes("untitled:/"))&&xl(e)[0]==="^"||e.includes(":^")&&!e.includes(yc)}function M7e(e){return!e||d5(e)?My.ThrowNoProject():e}function jct(e){w.assert(typeof e=="number",`Expected position ${e} to be a number.`),w.assert(e>=0,"Expected position to be non-negative.")}function Bct(e){w.assert(typeof e.line=="number",`Expected line ${e.line} to be a number.`),w.assert(typeof e.offset=="number",`Expected offset ${e.offset} to be a number.`),w.assert(e.line>0,`Expected line to be non-${e.line===0?"zero":"negative"}`),w.assert(e.offset>0,`Expected offset to be non-${e.offset===0?"zero":"negative"}`)}var uee,_ee,Jct=K({"src/server/scriptInfo.ts"(){V1(),$x(),uee=class{constructor(e,t,r){this.host=e,this.info=t,this.isOpen=!1,this.ownFileText=!1,this.pendingReloadFromDisk=!1,this.version=r||0}getVersion(){return this.svc?`SVC-${this.version}-${this.svc.getSnapshotVersion()}`:`Text-${this.version}`}hasScriptVersionCache_TestOnly(){return this.svc!==void 0}resetSourceMapInfo(){this.info.sourceFileLike=void 0,this.info.closeSourceMapFileWatcher(),this.info.sourceMapFilePath=void 0,this.info.declarationInfoPath=void 0,this.info.sourceInfos=void 0,this.info.documentPositionMapper=void 0}useText(e){this.svc=void 0,this.text=e,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo(),this.version++}edit(e,t,r){this.switchToScriptVersionCache().edit(e,t-e,r),this.ownFileText=!1,this.text=void 0,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo()}reload(e){return w.assert(e!==void 0),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=d3(this.svc.getSnapshot())),this.text!==e?(this.useText(e),this.ownFileText=!1,!0):!1}reloadWithFileText(e){const{text:t,fileSize:r}=e||!this.info.isDynamicOrHasMixedContent()?this.getFileTextAndSize(e):{text:"",fileSize:void 0},i=this.reload(t);return this.fileSize=r,this.ownFileText=!e||e===this.info.fileName,i}scheduleReloadIfNeeded(){return!this.pendingReloadFromDisk&&!this.ownFileText?this.pendingReloadFromDisk=!0:!1}delayReloadFromFileIntoText(){this.pendingReloadFromDisk=!0}getTelemetryFileSize(){return this.fileSize?this.fileSize:this.text?this.text.length:this.svc?this.svc.getSnapshot().getLength():this.getSnapshot().getLength()}getSnapshot(){var e;return((e=this.tryUseScriptVersionCache())==null?void 0:e.getSnapshot())||(this.textSnapshot??(this.textSnapshot=qR.fromString(w.checkDefined(this.text))))}getAbsolutePositionAndLineText(e){const t=this.tryUseScriptVersionCache();if(t)return t.getAbsolutePositionAndLineText(e);const r=this.getLineMap();return e<=r.length?{absolutePosition:r[e-1],lineText:this.text.substring(r[e-1],r[e])}:{absolutePosition:this.text.length,lineText:void 0}}lineToTextSpan(e){const t=this.tryUseScriptVersionCache();if(t)return t.lineToTextSpan(e);const r=this.getLineMap(),i=r[e],s=e+1t===void 0?t=this.host.readFile(r)||"":t;if(!Ik(this.info.fileName)){const s=this.host.getFileSize?this.host.getFileSize(r):i().length;if(s>qB)return w.assert(!!this.info.containingProjects.length),this.info.containingProjects[0].projectService.logger.info(`Skipped loading contents of large file ${r} for info ${this.info.fileName}: fileSize: ${s}`),this.info.containingProjects[0].projectService.sendLargeFileReferencedEvent(r,s),{text:"",fileSize:s}}return{text:i()}}switchToScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&(this.svc=iJ.fromString(this.getOrLoadText()),this.textSnapshot=void 0,this.version++),this.svc}tryUseScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&this.getOrLoadText(),this.isOpen?(!this.svc&&!this.textSnapshot&&(this.svc=iJ.fromString(w.checkDefined(this.text)),this.textSnapshot=void 0),this.svc):this.svc}getOrLoadText(){return(this.text===void 0||this.pendingReloadFromDisk)&&(w.assert(!this.svc||this.pendingReloadFromDisk,"ScriptVersionCache should not be set when reloading from disk"),this.reloadWithFileText()),this.text}getLineMap(){return w.assert(!this.svc,"ScriptVersionCache should not be set"),this.lineMap||(this.lineMap=_k(w.checkDefined(this.text)))}getLineInfo(){const e=this.tryUseScriptVersionCache();if(e)return{getLineCount:()=>e.getLineCount(),getLineText:r=>e.getAbsolutePositionAndLineText(r+1).lineText};const t=this.getLineMap();return $G(this.text,t)}},_ee=class{constructor(e,t,r,i,s,o){this.host=e,this.fileName=t,this.scriptKind=r,this.hasMixedContent=i,this.path=s,this.containingProjects=[],this.isDynamic=f5(t),this.textStorage=new uee(e,this,o),(i||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=r||$9(t)}isDynamicOrHasMixedContent(){return this.hasMixedContent||this.isDynamic}isScriptOpen(){return this.textStorage.isOpen}open(e){this.textStorage.isOpen=!0,e!==void 0&&this.textStorage.reload(e)&&this.markContainingProjectsAsDirty()}close(e=!0){this.textStorage.isOpen=!1,e&&this.textStorage.scheduleReloadIfNeeded()&&this.markContainingProjectsAsDirty()}getSnapshot(){return this.textStorage.getSnapshot()}ensureRealPath(){if(this.realpath===void 0&&(this.realpath=this.path,this.host.realpath)){w.assert(!!this.containingProjects.length);const e=this.containingProjects[0],t=this.host.realpath(this.path);t&&(this.realpath=e.toPath(t),this.realpath!==this.path&&e.projectService.realpathToScriptInfos.add(this.realpath,this))}}getRealpathIfDifferent(){return this.realpath&&this.realpath!==this.path?this.realpath:void 0}isSymlink(){return this.realpath&&this.realpath!==this.path}getFormatCodeSettings(){return this.formatSettings}getPreferences(){return this.preferences}attachToProject(e){const t=!this.isAttached(e);return t&&(this.containingProjects.push(e),e.getCompilerOptions().preserveSymlinks||this.ensureRealPath(),e.onFileAddedOrRemoved(this.isSymlink())),t}isAttached(e){switch(this.containingProjects.length){case 0:return!1;case 1:return this.containingProjects[0]===e;case 2:return this.containingProjects[0]===e||this.containingProjects[1]===e;default:return Ai(this.containingProjects,e)}}detachFromProject(e){switch(this.containingProjects.length){case 0:return;case 1:this.containingProjects[0]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;case 2:this.containingProjects[0]===e?(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects[0]=this.containingProjects.pop()):this.containingProjects[1]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;default:w6(this.containingProjects,e)&&e.onFileAddedOrRemoved(this.isSymlink());break}}detachAllProjects(){for(const e of this.containingProjects){x2(e)&&e.getCachedDirectoryStructureHost().addOrDeleteFile(this.fileName,this.path,2);const t=e.getRootFilesMap().get(this.path);e.removeFile(this,!1,!1),e.onFileAddedOrRemoved(this.isSymlink()),t&&!M3(e)&&e.addMissingFileRoot(t.fileName)}Al(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return My.ThrowNoProject();case 1:return M7e(this.containingProjects[0]);default:let e,t,r,i,s;for(let o=0;o!e.isOrphan())}isContainedByBackgroundProject(){return Pe(this.containingProjects,d5)}lineToTextSpan(e){return this.textStorage.lineToTextSpan(e)}lineOffsetToPosition(e,t,r){return this.textStorage.lineOffsetToPosition(e,t,r)}positionToLineOffset(e){jct(e);const t=this.textStorage.positionToLineOffset(e);return Bct(t),t}isJavaScript(){return this.scriptKind===1||this.scriptKind===2}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!Ls(this.sourceMapFilePath)&&(ad(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}}}});function R7e(e,t){if(e===t||(e||Rl).length===0&&(t||Rl).length===0)return!0;const r=new Map;let i=0;for(const s of e)r.get(s)!==!0&&(r.set(s,!0),i++);for(const s of t){const o=r.get(s);if(o===void 0)return!1;o===!0&&(r.set(s,!1),i--)}return i===0}function zct(e,t){return e.enable!==t.enable||!R7e(e.include,t.include)||!R7e(e.exclude,t.exclude)}function Uct(e,t){return P1(e)!==P1(t)}function Vct(e,t){return e===t?!1:!Ac(e,t)}var zB,fee,Wct=K({"src/server/typingsCache.ts"(){V1(),$x(),zB={isKnownTypesPackageName:xm,installPackage:ta,enqueueInstallTypingsRequest:ao,attach:ao,onProjectClosed:ao,globalTypingsCacheLocation:void 0},fee=class{constructor(e){this.installer=e,this.perProjectCache=new Map}isKnownTypesPackageName(e){return this.installer.isKnownTypesPackageName(e)}installPackage(e){return this.installer.installPackage(e)}enqueueInstallTypingsForProject(e,t,r){const i=e.getTypeAcquisition();if(!i||!i.enable)return;const s=this.perProjectCache.get(e.getProjectName());(r||!s||zct(i,s.typeAcquisition)||Uct(e.getCompilationSettings(),s.compilerOptions)||Vct(t,s.unresolvedImports))&&(this.perProjectCache.set(e.getProjectName(),{compilerOptions:e.getCompilationSettings(),typeAcquisition:i,typings:s?s.typings:Rl,unresolvedImports:t,poisoned:!0}),this.installer.enqueueInstallTypingsRequest(e,i,t))}updateTypingsForProject(e,t,r,i,s){const o=i1(s);return this.perProjectCache.set(e,{compilerOptions:t,typeAcquisition:r,typings:o,unresolvedImports:i,poisoned:!1}),!r||!r.enable?Rl:o}onProjectClosed(e){this.perProjectCache.delete(e.getProjectName())&&this.installer.onProjectClosed(e)}}}});function p5(e,t=!1){const r={js:0,jsSize:0,jsx:0,jsxSize:0,ts:0,tsSize:0,tsx:0,tsxSize:0,dts:0,dtsSize:0,deferred:0,deferredSize:0};for(const i of e){const s=t?i.textStorage.getTelemetryFileSize():0;switch(i.scriptKind){case 1:r.js+=1,r.jsSize+=s;break;case 2:r.jsx+=1,r.jsxSize+=s;break;case 3:Wu(i.fileName)?(r.dts+=1,r.dtsSize+=s):(r.ts+=1,r.tsSize+=s);break;case 4:r.tsx+=1,r.tsxSize+=s;break;case 7:r.deferred+=1,r.deferredSize+=s;break}}return r}function qct(e){const t=p5(e.getScriptInfos());return t.js>0&&t.ts===0&&t.tsx===0}function Nhe(e){const t=p5(e.getRootScriptInfos());return t.ts===0&&t.tsx===0}function Ihe(e){const t=p5(e.getScriptInfos());return t.ts===0&&t.tsx===0}function Ohe(e){return!e.some(t=>zc(t,".ts")&&!Wu(t)||zc(t,".tsx"))}function Fhe(e){return e.generatedFilePath!==void 0}function Hct(e,t){var r,i;const s=e.getSourceFiles();(r=cr)==null||r.push(cr.Phase.Session,"getUnresolvedImports",{count:s.length});const o=e.getTypeChecker().getAmbientModules().map(u=>Nd(u.getName())),c=io(Ys(s,u=>Gct(e,u,o,t)));return(i=cr)==null||i.pop(),c}function Gct(e,t,r,i){return Ks(i,t.path,()=>{let s;return e.forEachResolvedModule(({resolvedModule:o},c)=>{(!o||!ew(o.extension))&&!yu(c)&&!r.some(u=>u===c)&&(s=gn(s,P7(c).packageName))},t),s||Rl})}function M3(e){return e.projectKind===0}function x2(e){return e.projectKind===1}function pee(e){return e.projectKind===2}function d5(e){return e.projectKind===3||e.projectKind===4}var ND,Gx,dee,mee,gee,hee,yee,UB,$ct=K({"src/server/project.ts"(){V1(),V1(),$x(),ND=(e=>(e[e.Inferred=0]="Inferred",e[e.Configured=1]="Configured",e[e.External=2]="External",e[e.AutoImportProvider=3]="AutoImportProvider",e[e.Auxiliary=4]="Auxiliary",e))(ND||{}),Gx=class SJe{constructor(t,r,i,s,o,c,u,f,g,d,y){switch(this.projectKind=r,this.projectService=i,this.documentRegistry=s,this.compilerOptions=u,this.compileOnSaveEnabled=f,this.watchOptions=g,this.rootFiles=[],this.rootFilesMap=new Map,this.plugins=[],this.cachedUnresolvedImportsPerFile=new Map,this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1,this.lastReportedVersion=0,this.projectProgramVersion=0,this.projectStateVersion=0,this.isInitialLoadPending=xm,this.dirty=!1,this.typingFiles=Rl,this.moduleSpecifierCache=Hhe(this),this.createHash=fa(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=dg.nonRelativeModuleNameForTypingCache,this.updateFromProjectInProgress=!1,this.projectName=t,this.directoryStructureHost=d,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(y),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new HY(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(o||P1(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions=aB(),this.compilerOptions.allowNonTsExtensions=!0,this.compilerOptions.allowJs=!0),i.serverMode){case 0:this.languageServiceEnabled=!0;break;case 1:this.languageServiceEnabled=!0,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;case 2:this.languageServiceEnabled=!1,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;default:w.assertNever(i.serverMode)}this.setInternalCompilerOptionsForEmittingJsFiles();const x=this.projectService.host;this.projectService.logger.loggingEnabled()?this.trace=T=>this.writeLog(T):x.trace&&(this.trace=T=>x.trace(T)),this.realpath=fa(x,x.realpath),this.resolutionCache=tX(this,this.currentDirectory,!0),this.languageService=Cpe(this,this.documentRegistry,this.projectService.serverMode),c&&this.disableLanguageService(c),this.markAsDirty(),d5(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getResolvedProjectReferenceToRedirect(t){}isNonTsProject(){return vp(this),Ihe(this)}isJsOnlyProject(){return vp(this),qct(this)}static resolveModule(t,r,i,s){return SJe.importServicePluginSync({name:t},[r],i,s).resolvedModule}static importServicePluginSync(t,r,i,s){w.assertIsDefined(i.require);let o,c;for(const u of r){const f=t_(i.resolvePath(Zr(u,"node_modules")));s(`Loading ${t.name} from ${u} (resolved to ${f})`);const g=i.require(f,t.name);if(!g.error){c=g.module;break}const d=g.error.stack||g.error.message||JSON.stringify(g.error);(o??(o=[])).push(`Failed to load module '${t.name}' from ${f}: ${d}`)}return{pluginConfigEntry:t,resolvedModule:c,errorLogs:o}}static async importServicePluginAsync(t,r,i,s){w.assertIsDefined(i.importPlugin);let o,c;for(const u of r){const f=Zr(u,"node_modules");s(`Dynamically importing ${t.name} from ${u} (resolved to ${f})`);let g;try{g=await i.importPlugin(f,t.name)}catch(y){g={module:void 0,error:y}}if(!g.error){c=g.module;break}const d=g.error.stack||g.error.message||JSON.stringify(g.error);(o??(o=[])).push(`Failed to dynamically import module '${t.name}' from ${f}: ${d}`)}return{pluginConfigEntry:t,resolvedModule:c,errorLogs:o}}isKnownTypesPackageName(t){return this.typingsCache.isKnownTypesPackageName(t)}installPackage(t){return this.typingsCache.installPackage({...t,projectName:this.projectName,projectRootPath:this.toPath(this.currentDirectory)})}getGlobalTypingsCacheLocation(){return this.getGlobalCache()}get typingsCache(){return this.projectService.typingsCache}getSymlinkCache(){return this.symlinks||(this.symlinks=Dq(this.getCurrentDirectory(),this.getCanonicalFileName)),this.program&&!this.symlinks.hasProcessedResolutions()&&this.symlinks.setSymlinksFromResolutions(this.program.forEachResolvedModule,this.program.forEachResolvedTypeReferenceDirective,this.program.getAutomaticTypeDirectiveResolutions()),this.symlinks}getCompilationSettings(){return this.compilerOptions}getCompilerOptions(){return this.getCompilationSettings()}getNewLine(){return this.projectService.host.newLine}getProjectVersion(){return this.projectStateVersion.toString()}getProjectReferences(){}getScriptFileNames(){if(!this.rootFiles)return Ke;let t;return this.rootFilesMap.forEach(r=>{(this.languageServiceEnabled||r.info&&r.info.isScriptOpen())&&(t||(t=[])).push(r.fileName)}),Mr(t,this.typingFiles)||Ke}getOrCreateScriptInfoAndAttachToProject(t){const r=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost);if(r){const i=this.rootFilesMap.get(r.path);i&&i.info!==r&&(this.rootFiles.push(r),i.info=r),r.attachToProject(this)}return r}getScriptKind(t){const r=this.projectService.getScriptInfoForPath(this.toPath(t));return r&&r.scriptKind}getScriptVersion(t){const r=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost);return r&&r.getLatestVersion()}getScriptSnapshot(t){const r=this.getOrCreateScriptInfoAndAttachToProject(t);if(r)return r.getSnapshot()}getCancellationToken(){return this.cancellationToken}getCurrentDirectory(){return this.currentDirectory}getDefaultLibFileName(){const t=oi(ka(this.projectService.getExecutingFilePath()));return Zr(t,iA(this.compilerOptions))}useCaseSensitiveFileNames(){return this.projectService.host.useCaseSensitiveFileNames}readDirectory(t,r,i,s,o){return this.directoryStructureHost.readDirectory(t,r,i,s,o)}readFile(t){return this.projectService.host.readFile(t)}writeFile(t,r){return this.projectService.host.writeFile(t,r)}fileExists(t){const r=this.toPath(t);return!this.isWatchedMissingFile(r)&&this.directoryStructureHost.fileExists(t)}resolveModuleNameLiterals(t,r,i,s,o,c){return this.resolutionCache.resolveModuleNameLiterals(t,r,i,s,o,c)}getModuleResolutionCache(){return this.resolutionCache.getModuleResolutionCache()}resolveTypeReferenceDirectiveReferences(t,r,i,s,o,c){return this.resolutionCache.resolveTypeReferenceDirectiveReferences(t,r,i,s,o,c)}resolveLibrary(t,r,i,s){return this.resolutionCache.resolveLibrary(t,r,i,s)}directoryExists(t){return this.directoryStructureHost.directoryExists(t)}getDirectories(t){return this.directoryStructureHost.getDirectories(t)}getCachedDirectoryStructureHost(){}toPath(t){return hc(t,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(t,r,i){return this.projectService.watchFactory.watchDirectory(t,r,i,this.projectService.getWatchOptions(this),tu.FailedLookupLocations,this)}watchAffectingFileLocation(t,r){return this.projectService.watchFactory.watchFile(t,r,2e3,this.projectService.getWatchOptions(this),tu.AffectingFileLocation,this)}clearInvalidateResolutionOfFailedLookupTimer(){return this.projectService.throttledOperations.cancel(`${this.getProjectName()}FailedLookupInvalidation`)}scheduleInvalidateResolutionsOfFailedLookupLocations(){this.projectService.throttledOperations.schedule(`${this.getProjectName()}FailedLookupInvalidation`,1e3,()=>{this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)})}invalidateResolutionsOfFailedLookupLocations(){this.clearInvalidateResolutionOfFailedLookupTimer()&&this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&(this.markAsDirty(),this.projectService.delayEnsureProjectForOpenFiles())}onInvalidatedResolution(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}watchTypeRootsDirectory(t,r,i){return this.projectService.watchFactory.watchDirectory(t,r,i,this.projectService.getWatchOptions(this),tu.TypeRoots,this)}hasChangedAutomaticTypeDirectiveNames(){return this.resolutionCache.hasChangedAutomaticTypeDirectiveNames()}onChangedAutomaticTypeDirectiveNames(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}getGlobalCache(){return this.getTypeAcquisition().enable?this.projectService.typingsInstaller.globalTypingsCacheLocation:void 0}fileIsOpen(t){return this.projectService.openFiles.has(t)}writeLog(t){this.projectService.logger.info(t)}log(t){this.writeLog(t)}error(t){this.projectService.logger.msg(t,"Err")}setInternalCompilerOptionsForEmittingJsFiles(){(this.projectKind===0||this.projectKind===2)&&(this.compilerOptions.noEmitForJsFiles=!0)}getGlobalProjectErrors(){return vr(this.projectErrors,t=>!t.file)||Rl}getAllProjectErrors(){return this.projectErrors||Rl}setProjectErrors(t){this.projectErrors=t}getLanguageService(t=!0){return t&&vp(this),this.languageService}getSourceMapper(){return this.getLanguageService().getSourceMapper()}clearSourceMapperCache(){this.languageService.clearSourceMapperCache()}getDocumentPositionMapper(t,r){return this.projectService.getDocumentPositionMapper(this,t,r)}getSourceFileLike(t){return this.projectService.getSourceFileLike(t,this)}shouldEmitFile(t){return t&&!t.isDynamicOrHasMixedContent()&&!this.program.isSourceOfProjectReferenceRedirect(t.path)}getCompileOnSaveAffectedFileList(t){return this.languageServiceEnabled?(vp(this),this.builderState=om.create(this.program,this.builderState,!0),Oi(om.getFilesAffectedBy(this.builderState,this.program,t.path,this.cancellationToken,this.projectService.host),r=>this.shouldEmitFile(this.projectService.getScriptInfoForPath(r.path))?r.fileName:void 0)):[]}emitFile(t,r){if(!this.languageServiceEnabled||!this.shouldEmitFile(t))return{emitSkipped:!0,diagnostics:Rl};const{emitSkipped:i,diagnostics:s,outputFiles:o}=this.getLanguageService().getEmitOutput(t.fileName);if(!i){for(const c of o){const u=Ss(c.name,this.currentDirectory);r(u,c.text,c.writeByteOrderMark)}if(this.builderState&&rd(this.compilerOptions)){const c=o.filter(u=>Wu(u.name));if(c.length===1){const u=this.program.getSourceFile(t.fileName),f=this.projectService.host.createHash?this.projectService.host.createHash(c[0].text):iP(c[0].text);om.updateSignatureOfFile(this.builderState,f,u.resolvedPath)}}}return{emitSkipped:i,diagnostics:s}}enableLanguageService(){this.languageServiceEnabled||this.projectService.serverMode===2||(this.languageServiceEnabled=!0,this.lastFileExceededProgramSize=void 0,this.projectService.onUpdateLanguageServiceStateForProject(this,!0))}cleanupProgram(){if(this.program){for(const t of this.program.getSourceFiles())this.detachScriptInfoIfNotRoot(t.fileName);this.program.forEachResolvedProjectReference(t=>this.detachScriptInfoFromProject(t.sourceFile.fileName)),this.program=void 0}}disableLanguageService(t){this.languageServiceEnabled&&(w.assert(this.projectService.serverMode!==2),this.languageService.cleanupSemanticCache(),this.languageServiceEnabled=!1,this.cleanupProgram(),this.lastFileExceededProgramSize=t,this.builderState=void 0,this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.resolutionCache.closeTypeRootsWatch(),this.clearGeneratedFileWatch(),this.projectService.verifyDocumentRegistry(),this.projectService.onUpdateLanguageServiceStateForProject(this,!1))}getProjectName(){return this.projectName}removeLocalTypingsFromTypeAcquisition(t){return!t||!t.include?t:{...t,include:this.removeExistingTypings(t.include)}}getExternalFiles(t){return i1(Ys(this.plugins,r=>{if(typeof r.module.getExternalFiles=="function")try{return r.module.getExternalFiles(this,t||0)}catch(i){this.projectService.logger.info(`A plugin threw an exception in getExternalFiles: ${i}`),i.stack&&this.projectService.logger.info(i.stack)}}))}getSourceFile(t){if(this.program)return this.program.getSourceFileByPath(t)}getSourceFileOrConfigFile(t){const r=this.program.getCompilerOptions();return t===r.configFilePath?r.configFile:this.getSourceFile(t)}close(){var t;this.projectService.typingsCache.onProjectClosed(this),this.closeWatchingTypingLocations(),this.cleanupProgram(),dt(this.externalFiles,r=>this.detachScriptInfoIfNotRoot(r));for(const r of this.rootFiles)r.detachFromProject(this);this.projectService.pendingEnsureProjectForOpenFiles=!0,this.rootFiles=void 0,this.rootFilesMap=void 0,this.externalFiles=void 0,this.program=void 0,this.builderState=void 0,this.resolutionCache.clear(),this.resolutionCache=void 0,this.cachedUnresolvedImportsPerFile=void 0,(t=this.packageJsonWatches)==null||t.forEach(r=>{r.projects.delete(this),r.close()}),this.packageJsonWatches=void 0,this.moduleSpecifierCache.clear(),this.moduleSpecifierCache=void 0,this.directoryStructureHost=void 0,this.exportMapCache=void 0,this.projectErrors=void 0,this.plugins.length=0,this.missingFilesMap&&(wf(this.missingFilesMap,Cm),this.missingFilesMap=void 0),this.clearGeneratedFileWatch(),this.clearInvalidateResolutionOfFailedLookupTimer(),this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.noDtsResolutionProject&&this.noDtsResolutionProject.close(),this.noDtsResolutionProject=void 0,this.languageService.dispose(),this.languageService=void 0}detachScriptInfoIfNotRoot(t){const r=this.projectService.getScriptInfo(t);r&&!this.isRoot(r)&&r.detachFromProject(this)}isClosed(){return this.rootFiles===void 0}hasRoots(){return this.rootFiles&&this.rootFiles.length>0}isOrphan(){return!1}getRootFiles(){return this.rootFiles&&this.rootFiles.map(t=>t.fileName)}getRootFilesMap(){return this.rootFilesMap}getRootScriptInfos(){return this.rootFiles}getScriptInfos(){return this.languageServiceEnabled?Kt(this.program.getSourceFiles(),t=>{const r=this.projectService.getScriptInfoForPath(t.resolvedPath);return w.assert(!!r,"getScriptInfo",()=>`scriptInfo for a file '${t.fileName}' Path: '${t.path}' / '${t.resolvedPath}' is missing.`),r}):this.rootFiles}getExcludedFiles(){return Rl}getFileNames(t,r){if(!this.program)return[];if(!this.languageServiceEnabled){let s=this.getRootFiles();if(this.compilerOptions){const o=Epe(this.compilerOptions);o&&(s||(s=[])).push(o)}return s}const i=[];for(const s of this.program.getSourceFiles())t&&this.program.isSourceFileFromExternalLibrary(s)||i.push(s.fileName);if(!r){const s=this.program.getCompilerOptions().configFile;if(s&&(i.push(s.fileName),s.extendedSourceFiles))for(const o of s.extendedSourceFiles)i.push(o)}return i}getFileNamesWithRedirectInfo(t){return this.getFileNames().map(r=>({fileName:r,isSourceOfProjectReferenceRedirect:t&&this.isSourceOfProjectReferenceRedirect(r)}))}hasConfigFile(t){if(this.program&&this.languageServiceEnabled){const r=this.program.getCompilerOptions().configFile;if(r){if(t===r.fileName)return!0;if(r.extendedSourceFiles){for(const i of r.extendedSourceFiles)if(t===i)return!0}}}return!1}containsScriptInfo(t){if(this.isRoot(t))return!0;if(!this.program)return!1;const r=this.program.getSourceFileByPath(t.path);return!!r&&r.resolvedPath===t.path}containsFile(t,r){const i=this.projectService.getScriptInfoForNormalizedPath(t);return i&&(i.isScriptOpen()||!r)?this.containsScriptInfo(i):!1}isRoot(t){var r;return this.rootFilesMap&&((r=this.rootFilesMap.get(t.path))==null?void 0:r.info)===t}addRoot(t,r){w.assert(!this.isRoot(t)),this.rootFiles.push(t),this.rootFilesMap.set(t.path,{fileName:r||t.fileName,info:t}),t.attachToProject(this),this.markAsDirty()}addMissingFileRoot(t){const r=this.projectService.toPath(t);this.rootFilesMap.set(r,{fileName:t}),this.markAsDirty()}removeFile(t,r,i){this.isRoot(t)&&this.removeRoot(t),r?this.resolutionCache.removeResolutionsOfFile(t.path):this.resolutionCache.invalidateResolutionOfFile(t.path),this.cachedUnresolvedImportsPerFile.delete(t.path),i&&t.detachFromProject(this),this.markAsDirty()}registerFileUpdate(t){(this.updatedFileNames||(this.updatedFileNames=new Set)).add(t)}markFileAsDirty(t){this.markAsDirty(),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.changedFilesForExportMapCache||(this.changedFilesForExportMapCache=new Set)).add(t)}markAsDirty(){this.dirty||(this.projectStateVersion++,this.dirty=!0)}onAutoImportProviderSettingsChanged(){var t;this.autoImportProviderHost===!1?this.autoImportProviderHost=void 0:(t=this.autoImportProviderHost)==null||t.markAsDirty()}onPackageJsonChange(){this.moduleSpecifierCache.clear(),this.autoImportProviderHost&&this.autoImportProviderHost.markAsDirty()}onFileAddedOrRemoved(t){this.hasAddedorRemovedFiles=!0,t&&(this.hasAddedOrRemovedSymlinks=!0)}onDiscoveredSymlink(){this.hasAddedOrRemovedSymlinks=!0}updateFromProject(){vp(this)}updateGraph(){var t,r,i,s,o;(t=cr)==null||t.push(cr.Phase.Session,"updateGraph",{name:this.projectName,kind:ND[this.projectKind]}),(r=A_)==null||r.logStartUpdateGraph(),this.resolutionCache.startRecordingFilesWithChangedResolutions();const c=this.updateGraphWorker(),u=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;const f=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||Rl;for(const d of f)this.cachedUnresolvedImportsPerFile.delete(d);this.languageServiceEnabled&&this.projectService.serverMode===0&&!this.isOrphan()?((c||f.length)&&(this.lastCachedUnresolvedImportsList=Hct(this.program,this.cachedUnresolvedImportsPerFile)),this.projectService.typingsCache.enqueueInstallTypingsForProject(this,this.lastCachedUnresolvedImportsList,u)):this.lastCachedUnresolvedImportsList=void 0;const g=this.projectProgramVersion===0&&c;return c&&this.projectProgramVersion++,u&&(this.autoImportProviderHost||(this.autoImportProviderHost=void 0),(i=this.autoImportProviderHost)==null||i.markAsDirty()),g&&this.getPackageJsonAutoImportProvider(),(s=A_)==null||s.logStopUpdateGraph(),(o=cr)==null||o.pop(),!c}updateTypingFiles(t){RO(t,this.typingFiles,E6(!this.useCaseSensitiveFileNames()),ao,r=>this.detachScriptInfoFromProject(r))&&(this.typingFiles=t,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&wf(this.typingWatchers,Cm),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:Y7})}watchTypingLocations(t){if(!t){this.typingWatchers.isInvoked=!1;return}if(!t.length){this.closeWatchingTypingLocations();return}const r=new Map(this.typingWatchers);this.typingWatchers||(this.typingWatchers=new Map),this.typingWatchers.isInvoked=!1;const i=(s,o)=>{const c=this.toPath(s);r.delete(c),this.typingWatchers.has(c)||this.typingWatchers.set(c,o==="FileWatcher"?this.projectService.watchFactory.watchFile(s,()=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):this.onTypingInstallerWatchInvoke(),2e3,this.projectService.getWatchOptions(this),tu.TypingInstallerLocationFile,this):this.projectService.watchFactory.watchDirectory(s,u=>{if(this.typingWatchers.isInvoked)return this.writeLog("TypingWatchers already invoked");if(!zc(u,".json"))return this.writeLog("Ignoring files that are not *.json");if(u0(u,Zr(this.projectService.typingsInstaller.globalTypingsCacheLocation,"package.json"),!this.useCaseSensitiveFileNames()))return this.writeLog("Ignoring package.json change at global typings location");this.onTypingInstallerWatchInvoke()},1,this.projectService.getWatchOptions(this),tu.TypingInstallerLocationDirectory,this))};for(const s of t){const o=xl(s);if(o==="package.json"||o==="bower.json"){i(s,"FileWatcher");continue}if(Xd(this.currentDirectory,s,this.currentDirectory,!this.useCaseSensitiveFileNames())){const c=s.indexOf(yc,this.currentDirectory.length+1);i(c!==-1?s.substr(0,c):s,"DirectoryWatcher");continue}if(Xd(this.projectService.typingsInstaller.globalTypingsCacheLocation,s,this.currentDirectory,!this.useCaseSensitiveFileNames())){i(this.projectService.typingsInstaller.globalTypingsCacheLocation,"DirectoryWatcher");continue}i(s,"DirectoryWatcher")}r.forEach((s,o)=>{s.close(),this.typingWatchers.delete(o)})}getCurrentProgram(){return this.program}removeExistingTypings(t){const r=IM(this.getCompilerOptions(),this.directoryStructureHost);return t.filter(i=>!r.includes(i))}updateGraphWorker(){var t,r;const i=this.languageService.getCurrentProgram();w.assert(i===this.program),w.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);const s=cc(),{hasInvalidatedResolutions:o,hasInvalidatedLibResolutions:c}=this.resolutionCache.createHasInvalidatedResolutions(xm,xm);this.hasInvalidatedResolutions=o,this.hasInvalidatedLibResolutions=c,this.resolutionCache.startCachingPerDirectoryResolution(),this.dirty=!1,this.updateFromProjectInProgress=!0,this.program=this.languageService.getProgram(),this.updateFromProjectInProgress=!1,(t=cr)==null||t.push(cr.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,i),(r=cr)==null||r.pop(),w.assert(i===void 0||this.program!==void 0);let u=!1;if(this.program&&(!i||this.program!==i&&this.program.structureIsReused!==2)){if(u=!0,i){for(const d of i.getSourceFiles()){const y=this.program.getSourceFileByPath(d.resolvedPath);(!y||d.resolvedPath===d.path&&y.resolvedPath!==d.path)&&this.detachScriptInfoFromProject(d.fileName,!!this.program.getSourceFileByPath(d.path),!0)}i.forEachResolvedProjectReference(d=>{this.program.getResolvedProjectReferenceByPath(d.sourceFile.path)||this.detachScriptInfoFromProject(d.sourceFile.fileName,void 0,!0)})}if(x$(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),(d,y)=>this.addMissingFileWatcher(d,y)),this.generatedFilesMap){const d=Vo(this.compilerOptions);Fhe(this.generatedFilesMap)?(!d||!this.isValidGeneratedFileWatcher(Y_(d)+".d.ts",this.generatedFilesMap))&&this.clearGeneratedFileWatch():d?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach((y,x)=>{const T=this.program.getSourceFileByPath(x);(!T||T.resolvedPath!==x||!this.isValidGeneratedFileWatcher(v9(T.fileName,this.compilerOptions,this.currentDirectory,this.program.getCommonSourceDirectory(),this.getCanonicalFileName),y))&&(ad(y),this.generatedFilesMap.delete(x))})}this.languageServiceEnabled&&this.projectService.serverMode===0&&this.resolutionCache.updateTypeRootsWatch()}this.projectService.verifyProgram(this),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.exportMapCache.releaseSymbols(),this.hasAddedorRemovedFiles||i&&!this.program.structureIsReused?this.exportMapCache.clear():this.changedFilesForExportMapCache&&i&&this.program&&Wg(this.changedFilesForExportMapCache,d=>{const y=i.getSourceFileByPath(d),x=this.program.getSourceFileByPath(d);return!y||!x?(this.exportMapCache.clear(),!0):this.exportMapCache.onFileChanged(y,x,!!this.getTypeAcquisition().enable)})),this.changedFilesForExportMapCache&&this.changedFilesForExportMapCache.clear(),(this.hasAddedOrRemovedSymlinks||this.program&&!this.program.structureIsReused&&this.getCompilerOptions().preserveSymlinks)&&(this.symlinks=void 0,this.moduleSpecifierCache.clear());const f=this.externalFiles||Rl;this.externalFiles=this.getExternalFiles(),RO(this.externalFiles,f,E6(!this.useCaseSensitiveFileNames()),d=>{const y=this.projectService.getOrCreateScriptInfoNotOpenedByClient(d,this.currentDirectory,this.directoryStructureHost);y==null||y.attachToProject(this)},d=>this.detachScriptInfoFromProject(d));const g=cc()-s;return this.sendPerformanceEvent("UpdateGraph",g),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} projectStateVersion: ${this.projectStateVersion} projectProgramVersion: ${this.projectProgramVersion} structureChanged: ${u}${this.program?` structureIsReused:: ${GO[this.program.structureIsReused]}`:""} Elapsed: ${g}ms`),this.projectService.logger.isTestLogger?this.program!==i?this.print(!0,this.hasAddedorRemovedFiles,!0):this.writeLog("Same program as before"):this.hasAddedorRemovedFiles?this.print(!0,!0,!1):this.program!==i&&this.writeLog("Different program with same set of files"),this.projectService.verifyDocumentRegistry(),u}sendPerformanceEvent(t,r){this.projectService.sendPerformanceEvent(t,r)}detachScriptInfoFromProject(t,r,i){const s=this.projectService.getScriptInfo(t);s&&(s.detachFromProject(this),r||this.resolutionCache.removeResolutionsOfFile(s.path,i))}addMissingFileWatcher(t,r){var i;if(x2(this)){const o=this.projectService.configFileExistenceInfoCache.get(t);if((i=o==null?void 0:o.config)!=null&&i.projects.has(this.canonicalConfigFilePath))return l3}const s=this.projectService.watchFactory.watchFile(Ss(r,this.currentDirectory),(o,c)=>{x2(this)&&this.getCachedDirectoryStructureHost().addOrDeleteFile(o,t,c),c===0&&this.missingFilesMap.has(t)&&(this.missingFilesMap.delete(t),s.close(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))},500,this.projectService.getWatchOptions(this),tu.MissingFile,this);return s}isWatchedMissingFile(t){return!!this.missingFilesMap&&this.missingFilesMap.has(t)}addGeneratedFileWatch(t,r){if(Vo(this.compilerOptions))this.generatedFilesMap||(this.generatedFilesMap=this.createGeneratedFileWatcher(t));else{const i=this.toPath(r);if(this.generatedFilesMap){if(Fhe(this.generatedFilesMap)){w.fail(`${this.projectName} Expected to not have --out watcher for generated file with options: ${JSON.stringify(this.compilerOptions)}`);return}if(this.generatedFilesMap.has(i))return}else this.generatedFilesMap=new Map;this.generatedFilesMap.set(i,this.createGeneratedFileWatcher(t))}}createGeneratedFileWatcher(t){return{generatedFilePath:this.toPath(t),watcher:this.projectService.watchFactory.watchFile(t,()=>{this.clearSourceMapperCache(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)},2e3,this.projectService.getWatchOptions(this),tu.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(t,r){return this.toPath(t)===r.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(Fhe(this.generatedFilesMap)?ad(this.generatedFilesMap):wf(this.generatedFilesMap,ad),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(t){const r=this.projectService.getScriptInfoForPath(this.toPath(t));return r&&!r.isAttached(this)?My.ThrowProjectDoesNotContainDocument(t,this):r}getScriptInfo(t){return this.projectService.getScriptInfo(t)}filesToString(t){return this.filesToStringWorker(t,!0,!1)}filesToStringWorker(t,r,i){if(this.isInitialLoadPending())return` Files (0) InitialLoadPending +`;if(!this.program)return` Files (0) NoProgram +`;const s=this.program.getSourceFiles();let o=` Files (${s.length}) +`;if(t){for(const c of s)o+=` ${c.fileName}${i?` ${c.version} ${JSON.stringify(c.text)}`:""} +`;r&&(o+=` + +`,iX(this.program,c=>o+=` ${c} +`))}return o}print(t,r,i){var s;this.writeLog(`Project '${this.projectName}' (${ND[this.projectKind]})`),this.writeLog(this.filesToStringWorker(t&&this.projectService.logger.hasLevel(3),r&&this.projectService.logger.hasLevel(3),i&&this.projectService.logger.hasLevel(3))),this.writeLog("-----------------------------------------------"),this.autoImportProviderHost&&this.autoImportProviderHost.print(!1,!1,!1),(s=this.noDtsResolutionProject)==null||s.print(!1,!1,!1)}setCompilerOptions(t){var r;if(t){t.allowNonTsExtensions=!0;const i=this.compilerOptions;this.compilerOptions=t,this.setInternalCompilerOptionsForEmittingJsFiles(),(r=this.noDtsResolutionProject)==null||r.setCompilerOptions(this.getCompilerOptionsForNoDtsResolutionProject()),IF(i,t)&&(this.cachedUnresolvedImportsPerFile.clear(),this.lastCachedUnresolvedImportsList=void 0,this.resolutionCache.onChangesAffectModuleResolution(),this.moduleSpecifierCache.clear()),this.markAsDirty()}}setWatchOptions(t){this.watchOptions=t}getWatchOptions(){return this.watchOptions}setTypeAcquisition(t){t&&(this.typeAcquisition=this.removeLocalTypingsFromTypeAcquisition(t))}getTypeAcquisition(){return this.typeAcquisition||{}}getChangesSinceVersion(t,r){var i,s;const o=r?f=>Vs(f.entries(),([g,d])=>({fileName:g,isSourceOfProjectReferenceRedirect:d})):f=>Vs(f.keys());this.isInitialLoadPending()||vp(this);const c={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:M3(this),options:this.getCompilationSettings(),languageServiceDisabled:!this.languageServiceEnabled,lastFileExceededProgramSize:this.lastFileExceededProgramSize},u=this.updatedFileNames;if(this.updatedFileNames=void 0,this.lastReportedFileNames&&t===this.lastReportedVersion){if(this.projectProgramVersion===this.lastReportedVersion&&!u)return{info:c,projectErrors:this.getGlobalProjectErrors()};const f=this.lastReportedFileNames,g=((i=this.externalFiles)==null?void 0:i.map(N=>({fileName:Ec(N),isSourceOfProjectReferenceRedirect:!1})))||Rl,d=ab(this.getFileNamesWithRedirectInfo(!!r).concat(g),N=>N.fileName,N=>N.isSourceOfProjectReferenceRedirect),y=new Map,x=new Map,T=u?Vs(u.keys()):[],C=[];return cu(d,(N,D)=>{f.has(D)?r&&N!==f.get(D)&&C.push({fileName:D,isSourceOfProjectReferenceRedirect:N}):y.set(D,N)}),cu(f,(N,D)=>{d.has(D)||x.set(D,N)}),this.lastReportedFileNames=d,this.lastReportedVersion=this.projectProgramVersion,{info:c,changes:{added:o(y),removed:o(x),updated:r?T.map(N=>({fileName:N,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(N)})):T,updatedRedirects:r?C:void 0},projectErrors:this.getGlobalProjectErrors()}}else{const f=this.getFileNamesWithRedirectInfo(!!r),g=((s=this.externalFiles)==null?void 0:s.map(y=>({fileName:Ec(y),isSourceOfProjectReferenceRedirect:!1})))||Rl,d=f.concat(g);return this.lastReportedFileNames=ab(d,y=>y.fileName,y=>y.isSourceOfProjectReferenceRedirect),this.lastReportedVersion=this.projectProgramVersion,{info:c,files:r?d:d.map(y=>y.fileName),projectErrors:this.getGlobalProjectErrors()}}}removeRoot(t){w6(this.rootFiles,t),this.rootFilesMap.delete(t.path)}isSourceOfProjectReferenceRedirect(t){return!!this.program&&this.program.isSourceOfProjectReferenceRedirect(t)}getGlobalPluginSearchPaths(){return[...this.projectService.pluginProbeLocations,Zr(this.projectService.getExecutingFilePath(),"../../..")]}enableGlobalPlugins(t){if(!this.projectService.globalPlugins.length)return;const r=this.projectService.host;if(!r.require&&!r.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}const i=this.getGlobalPluginSearchPaths();for(const s of this.projectService.globalPlugins)s&&(t.plugins&&t.plugins.some(o=>o.name===s)||(this.projectService.logger.info(`Loading global plugin ${s}`),this.enablePlugin({name:s,global:!0},i)))}enablePlugin(t,r){this.projectService.requestEnablePlugin(this,t,r)}enableProxy(t,r){try{if(typeof t!="function"){this.projectService.logger.info(`Skipped loading plugin ${r.name} because it did not expose a proper factory function`);return}const i={config:r,project:this,languageService:this.languageService,languageServiceHost:this,serverHost:this.projectService.host,session:this.projectService.session},s=t({typescript:sIe}),o=s.create(i);for(const c of Object.keys(this.languageService))c in o||(this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${c} in created LS. Patching.`),o[c]=this.languageService[c]);this.projectService.logger.info("Plugin validation succeeded"),this.languageService=o,this.plugins.push({name:r.name,module:s})}catch(i){this.projectService.logger.info(`Plugin activation failed: ${i}`)}}onPluginConfigurationChanged(t,r){this.plugins.filter(i=>i.name===t).forEach(i=>{i.module.onConfigurationChanged&&i.module.onConfigurationChanged(r)})}refreshDiagnostics(){this.projectService.sendProjectsUpdatedInBackgroundEvent()}getPackageJsonsVisibleToFile(t,r){return this.projectService.serverMode!==0?Rl:this.projectService.getPackageJsonsVisibleToFile(t,this,r)}getNearestAncestorDirectoryWithPackageJson(t){return this.projectService.getNearestAncestorDirectoryWithPackageJson(t)}getPackageJsonsForAutoImport(t){return this.getPackageJsonsVisibleToFile(Zr(this.currentDirectory,a3),t)}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=WQ(this))}clearCachedExportInfoMap(){var t;(t=this.exportMapCache)==null||t.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return this.projectService.includePackageJsonAutoImports()===0||!this.languageServiceEnabled||TI(this.currentDirectory)||!this.isDefaultProjectForOpenFiles()?0:this.projectService.includePackageJsonAutoImports()}getHostForAutoImportProvider(){var t,r;return this.program?{fileExists:this.program.fileExists,directoryExists:this.program.directoryExists,realpath:this.program.realpath||((t=this.projectService.host.realpath)==null?void 0:t.bind(this.projectService.host)),getCurrentDirectory:this.getCurrentDirectory.bind(this),readFile:this.projectService.host.readFile.bind(this.projectService.host),getDirectories:this.projectService.host.getDirectories.bind(this.projectService.host),trace:(r=this.projectService.host.trace)==null?void 0:r.bind(this.projectService.host),useCaseSensitiveFileNames:this.program.useCaseSensitiveFileNames(),readDirectory:this.projectService.host.readDirectory.bind(this.projectService.host)}:this.projectService.host}getPackageJsonAutoImportProvider(){var t,r,i;if(this.autoImportProviderHost===!1)return;if(this.projectService.serverMode!==0){this.autoImportProviderHost=!1;return}if(this.autoImportProviderHost){if(vp(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()){this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0;return}return this.autoImportProviderHost.getCurrentProgram()}const s=this.includePackageJsonAutoImports();if(s){(t=cr)==null||t.push(cr.Phase.Session,"getPackageJsonAutoImportProvider");const o=cc();if(this.autoImportProviderHost=hee.create(s,this,this.getHostForAutoImportProvider(),this.documentRegistry),this.autoImportProviderHost)return vp(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",cc()-o),(r=cr)==null||r.pop(),this.autoImportProviderHost.getCurrentProgram();(i=cr)==null||i.pop()}}isDefaultProjectForOpenFiles(){return!!cu(this.projectService.openFiles,(t,r)=>this.projectService.tryGetDefaultProjectForFile(Ec(r))===this)}watchNodeModulesForPackageJsonChanges(t){return this.projectService.watchPackageJsonsInNodeModules(t,this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(t){return w.assert(this.projectService.serverMode===0),this.noDtsResolutionProject||(this.noDtsResolutionProject=new mee(this.projectService,this.documentRegistry,this.getCompilerOptionsForNoDtsResolutionProject(),this.currentDirectory)),this.noDtsResolutionProject.rootFile!==t&&(this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this.noDtsResolutionProject,[t]),this.noDtsResolutionProject.rootFile=t),this.noDtsResolutionProject}getCompilerOptionsForNoDtsResolutionProject(){return{...this.getCompilerOptions(),noDtsResolution:!0,allowJs:!0,maxNodeModuleJsDepth:3,diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:Ke,lib:Ke,noLib:!0}}},dee=class extends Gx{constructor(e,t,r,i,s,o,c){super(e.newInferredProjectName(),0,e,t,void 0,void 0,r,!1,i,e.host,o),this._isJsInferredProject=!1,this.typeAcquisition=c,this.projectRootPath=s&&e.toCanonicalFileName(s),!s&&!e.useSingleInferredProject&&(this.canonicalCurrentDirectory=e.toCanonicalFileName(this.currentDirectory)),this.enableGlobalPlugins(this.getCompilerOptions())}toggleJsInferredProject(e){e!==this._isJsInferredProject&&(this._isJsInferredProject=e,this.setCompilerOptions())}setCompilerOptions(e){if(!e&&!this.getCompilationSettings())return;const t=sQ(e||this.getCompilationSettings());this._isJsInferredProject&&typeof t.maxNodeModuleJsDepth!="number"?t.maxNodeModuleJsDepth=2:this._isJsInferredProject||(t.maxNodeModuleJsDepth=void 0),t.allowJs=!0,super.setCompilerOptions(t)}addRoot(e){w.assert(e.isScriptOpen()),this.projectService.startWatchingConfigFilesForInferredProjectRoot(e),!this._isJsInferredProject&&e.isJavaScript()?this.toggleJsInferredProject(!0):this.isOrphan()&&this._isJsInferredProject&&!e.isJavaScript()&&this.toggleJsInferredProject(!1),super.addRoot(e)}removeRoot(e){this.projectService.stopWatchingConfigFilesForInferredProjectRoot(e),super.removeRoot(e),!this.isOrphan()&&this._isJsInferredProject&&e.isJavaScript()&&Pn(this.getRootScriptInfos(),t=>!t.isJavaScript())&&this.toggleJsInferredProject(!1)}isOrphan(){return!this.hasRoots()}isProjectWithSingleRoot(){return!this.projectRootPath&&!this.projectService.useSingleInferredProject||this.getRootScriptInfos().length===1}close(){dt(this.getRootScriptInfos(),e=>this.projectService.stopWatchingConfigFilesForInferredProjectRoot(e)),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:Nhe(this),include:Ke,exclude:Ke}}},mee=class extends Gx{constructor(e,t,r,i){super(e.newAuxiliaryProjectName(),4,e,t,!1,void 0,r,!1,void 0,e.host,i)}isOrphan(){return!0}scheduleInvalidateResolutionsOfFailedLookupLocations(){}},gee=class R2e extends Gx{constructor(t,r,i,s){super(t.projectService.newAutoImportProviderProjectName(),3,t.projectService,i,!1,void 0,s,!1,t.getWatchOptions(),t.projectService.host,t.currentDirectory),this.hostProject=t,this.rootFileNames=r,this.useSourceOfProjectReferenceRedirect=fa(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=fa(this.hostProject,this.hostProject.getParsedCommandLine)}static getRootFileNames(t,r,i,s){var o,c;if(!t)return Ke;const u=r.getCurrentProgram();if(!u)return Ke;const f=cc();let g,d;const y=Zr(r.currentDirectory,a3),x=r.getPackageJsonsForAutoImport(Zr(r.currentDirectory,y));for(const D of x)(o=D.dependencies)==null||o.forEach((M,V)=>C(V)),(c=D.peerDependencies)==null||c.forEach((M,V)=>C(V));let T=0;if(g){const D=r.getSymlinkCache();for(const M of Vs(g.keys())){if(t===2&&T>this.maxDependencies)return r.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),Ke;const V=kG(M,r.currentDirectory,s,i,u.getModuleResolutionCache());if(V){const Z=N(V,u,D);if(Z){d=zn(d,Z),T+=Z.length?1:0;continue}}if(!dt([r.currentDirectory,r.getGlobalTypingsCacheLocation()],Z=>{if(Z){const z=kG(`@types/${M}`,Z,s,i,u.getModuleResolutionCache());if(z){const ce=N(z,u,D);return d=zn(d,ce),T+=ce!=null&&ce.length?1:0,!0}}})&&V&&s.allowJs&&s.maxNodeModuleJsDepth){const Z=N(V,u,D,!0);d=zn(d,Z),T+=Z!=null&&Z.length?1:0}}}return d!=null&&d.length&&r.log(`AutoImportProviderProject: found ${d.length} root files in ${T} dependencies in ${cc()-f} ms`),d||Ke;function C(D){fs(D,"@types/")||(g||(g=new Set)).add(D)}function N(D,M,V,G){var Z;const z=NG(D,s,i,M.getModuleResolutionCache(),G);if(z){const ce=(Z=i.realpath)==null?void 0:Z.call(i,D.packageDirectory),J=ce?r.toPath(ce):void 0,ne=J&&J!==r.toPath(D.packageDirectory);return ne&&V.setSymlinkedDirectory(D.packageDirectory,{real:ou(ce),realPath:ou(J)}),Oi(z,ge=>{const ve=ne?ge.replace(D.packageDirectory,ce):ge;if(!M.getSourceFile(ve)&&!(ne&&M.getSourceFile(ge)))return ve})}}}static create(t,r,i,s){if(t===0)return;const o={...r.getCompilerOptions(),...this.compilerOptionsOverrides},c=this.getRootFileNames(t,r,i,o);if(c.length)return new R2e(r,c,s,o)}isEmpty(){return!Pe(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let t=this.rootFileNames;t||(t=R2e.getRootFileNames(this.hostProject.includePackageJsonAutoImports(),this.hostProject,this.hostProject.getHostForAutoImportProvider(),this.getCompilationSettings())),this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this,t),this.rootFileNames=t;const r=this.getCurrentProgram(),i=super.updateGraph();return r&&r!==this.getCurrentProgram()&&this.hostProject.clearCachedExportInfoMap(),i}scheduleInvalidateResolutionsOfFailedLookupLocations(){}hasRoots(){var t;return!!((t=this.rootFileNames)!=null&&t.length)}markAsDirty(){this.rootFileNames=void 0,super.markAsDirty()}getScriptFileNames(){return this.rootFileNames||Ke}getLanguageService(){throw new Error("AutoImportProviderProject language service should never be used. To get the program, use `project.getCurrentProgram()`.")}onAutoImportProviderSettingsChanged(){throw new Error("AutoImportProviderProject is an auto import provider; use `markAsDirty()` instead.")}onPackageJsonChange(){throw new Error("package.json changes should be notified on an AutoImportProvider's host project")}getHostForAutoImportProvider(){throw new Error("AutoImportProviderProject cannot provide its own host; use `hostProject.getModuleResolutionHostForAutomImportProvider()` instead.")}getProjectReferences(){return this.hostProject.getProjectReferences()}includePackageJsonAutoImports(){return 0}getSymlinkCache(){return this.hostProject.getSymlinkCache()}getModuleResolutionCache(){var t;return(t=this.hostProject.getCurrentProgram())==null?void 0:t.getModuleResolutionCache()}},gee.maxDependencies=10,gee.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:Ke,lib:Ke,noLib:!0},hee=gee,yee=class extends Gx{constructor(e,t,r,i,s){super(e,1,r,i,!1,void 0,{},!1,void 0,s,oi(e)),this.canonicalConfigFilePath=t,this.openFileWatchTriggered=new Map,this.canConfigFileJsonReportNoInputFiles=!1,this.externalProjectRefCount=0,this.isInitialLoadPending=cy,this.sendLoadingProjectFinish=!1}setCompilerHost(e){this.compilerHost=e}getCompilerHost(){return this.compilerHost}useSourceOfProjectReferenceRedirect(){return this.languageServiceEnabled}getParsedCommandLine(e){const t=ka(e),r=this.projectService.toCanonicalFileName(t);let i=this.projectService.configFileExistenceInfoCache.get(r);return i||this.projectService.configFileExistenceInfoCache.set(r,i={exists:this.projectService.host.fileExists(t)}),this.projectService.ensureParsedConfigUptoDate(t,r,i,this),this.languageServiceEnabled&&this.projectService.serverMode===0&&this.projectService.watchWildcards(t,i,this),i.exists?i.config.parsedCommandLine:void 0}onReleaseParsedCommandLine(e){this.releaseParsedConfig(this.projectService.toCanonicalFileName(ka(e)))}releaseParsedConfig(e){this.projectService.stopWatchingWildCards(e,this),this.projectService.releaseParsedConfig(e,this)}updateGraph(){const e=this.isInitialLoadPending();this.isInitialLoadPending=xm;const t=this.pendingUpdateLevel;this.pendingUpdateLevel=0;let r;switch(t){case 1:this.openFileWatchTriggered.clear(),r=this.projectService.reloadFileNamesOfConfiguredProject(this);break;case 2:this.openFileWatchTriggered.clear();const i=w.checkDefined(this.pendingUpdateReason);this.pendingUpdateReason=void 0,this.projectService.reloadConfiguredProject(this,i,e,!1),r=!0;break;default:r=super.updateGraph()}return this.compilerHost=void 0,this.projectService.sendProjectLoadingFinishEvent(this),this.projectService.sendProjectTelemetry(this),r}getCachedDirectoryStructureHost(){return this.directoryStructureHost}getConfigFilePath(){return this.getProjectName()}getProjectReferences(){return this.projectReferences}updateReferences(e){this.projectReferences=e,this.potentialProjectReferences=void 0}setPotentialProjectReference(e){w.assert(this.isInitialLoadPending()),(this.potentialProjectReferences||(this.potentialProjectReferences=new Set)).add(e)}getResolvedProjectReferenceToRedirect(e){const t=this.getCurrentProgram();return t&&t.getResolvedProjectReferenceToRedirect(e)}forEachResolvedProjectReference(e){var t;return(t=this.getCurrentProgram())==null?void 0:t.forEachResolvedProjectReference(e)}enablePluginsWithOptions(e){var t;if(this.plugins.length=0,!((t=e.plugins)!=null&&t.length)&&!this.projectService.globalPlugins.length)return;const r=this.projectService.host;if(!r.require&&!r.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}const i=this.getGlobalPluginSearchPaths();if(this.projectService.allowLocalPluginLoads){const s=oi(this.canonicalConfigFilePath);this.projectService.logger.info(`Local plugin loading enabled; adding ${s} to search paths`),i.unshift(s)}if(e.plugins)for(const s of e.plugins)this.enablePlugin(s,i);return this.enableGlobalPlugins(e)}getGlobalProjectErrors(){return vr(this.projectErrors,e=>!e.file)||Rl}getAllProjectErrors(){return this.projectErrors||Rl}setProjectErrors(e){this.projectErrors=e}close(){this.projectService.configFileExistenceInfoCache.forEach((e,t)=>this.releaseParsedConfig(t)),this.projectErrors=void 0,this.openFileWatchTriggered.clear(),this.compilerHost=void 0,super.close()}addExternalProjectReference(){this.externalProjectRefCount++}deleteExternalProjectReference(){this.externalProjectRefCount--}isSolution(){return this.getRootFilesMap().size===0&&!this.canConfigFileJsonReportNoInputFiles}getDefaultChildProjectFromProjectWithReferences(e){return j3(this,e.path,t=>PC(t,e)?t:void 0,0)}hasOpenRef(){var e;if(this.externalProjectRefCount)return!0;if(this.isClosed())return!1;const t=this.projectService.configFileExistenceInfoCache.get(this.canonicalConfigFilePath);return this.projectService.hasPendingProjectUpdate(this)?!!((e=t.openFilesImpactedByConfigFile)!=null&&e.size):!!t.openFilesImpactedByConfigFile&&cu(t.openFilesImpactedByConfigFile,(r,i)=>{const s=this.projectService.getScriptInfoForPath(i);return this.containsScriptInfo(s)||!!j3(this,s.path,o=>o.containsScriptInfo(s),0)})||!1}hasExternalProjectRef(){return!!this.externalProjectRefCount}getEffectiveTypeRoots(){return Bw(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(e){SM(e,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,this.canConfigFileJsonReportNoInputFiles)}},UB=class extends Gx{constructor(e,t,r,i,s,o,c,u){super(e,2,t,r,!0,s,i,o,u,t.host,oi(c||t_(e))),this.externalProjectName=e,this.compileOnSaveEnabled=o,this.excludedFiles=[],this.enableGlobalPlugins(this.getCompilerOptions())}updateGraph(){const e=super.updateGraph();return this.projectService.sendProjectTelemetry(this),e}getExcludedFiles(){return this.excludedFiles}}}});function j7e(e){const t=new Map;for(const r of e)if(typeof r.type=="object"){const i=r.type;i.forEach(s=>{w.assert(typeof s=="number")}),t.set(r.name,i)}return t}function R3(e){return Ls(e.indentStyle)&&(e.indentStyle=H7e.get(e.indentStyle.toLowerCase()),w.assert(e.indentStyle!==void 0)),e}function VB(e){return W7e.forEach((t,r)=>{const i=e[r];Ls(i)&&(e[r]=t.get(i.toLowerCase()))}),e}function m5(e,t){let r,i;return $4.forEach(s=>{const o=e[s.name];if(o===void 0)return;const c=q7e.get(s.name);(r||(r={}))[s.name]=c?Ls(o)?c.get(o.toLowerCase()):o:Ix(s,o,t||"",i||(i=[]))}),r&&{watchOptions:r,errors:i}}function Lhe(e){let t;return b7.forEach(r=>{const i=e[r.name];i!==void 0&&((t||(t={}))[r.name]=i)}),t}function vee(e){return Ls(e)?bee(e):e}function bee(e){switch(e){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function Mhe(e){const{lazyConfiguredProjectsFromExternalProject:t,...r}=e;return r}function B7e(e,t){for(const r of t)if(r.getProjectName()===e)return r}function See(e){return!!e.containingProjects}function J7e(e){return!!e.configFileInfo}function j3(e,t,r,i,s){var o;const c=(o=e.getCurrentProgram())==null?void 0:o.getResolvedProjectReferences();if(!c)return;let u;const f=t?e.getResolvedProjectReferenceToRedirect(t):void 0;if(f){const d=Ec(f.sourceFile.fileName),y=e.projectService.findConfiguredProjectByProjectName(d);if(y){const x=r(y);if(x)return x}else if(i!==0){u=new Map;const x=Rhe(c,e.getCompilerOptions(),(T,C)=>f===T?g(T,C):void 0,i,e.projectService,u);if(x)return x;u.clear()}}return Rhe(c,e.getCompilerOptions(),(d,y)=>f!==d?g(d,y):void 0,i,e.projectService,u);function g(d,y){const x=Ec(d.sourceFile.fileName),T=e.projectService.findConfiguredProjectByProjectName(x)||(y===0?void 0:y===1?e.projectService.createConfiguredProject(x):y===2?e.projectService.createAndLoadConfiguredProject(x,s):w.assertNever(y));return T&&r(T)}}function Rhe(e,t,r,i,s,o){const c=t.disableReferencedProjectLoad?0:i;return dt(e,u=>{if(!u)return;const f=Ec(u.sourceFile.fileName),g=s.toCanonicalFileName(f),d=o==null?void 0:o.get(g);if(d!==void 0&&d>=c)return;const y=r(u,c);return y||((o||(o=new Map)).set(g,c),u.references&&Rhe(u.references,u.commandLine.options,r,c,s,o))})}function z7e(e,t){return e.potentialProjectReferences&&Wg(e.potentialProjectReferences,t)}function Xct(e,t,r,i){return e.getCurrentProgram()?e.forEachResolvedProjectReference(t):e.isInitialLoadPending()?z7e(e,i):dt(e.getProjectReferences(),r)}function jhe(e,t,r){const i=r&&e.projectService.configuredProjects.get(r);return i&&t(i)}function U7e(e,t){return Xct(e,r=>jhe(e,t,r.sourceFile.path),r=>jhe(e,t,e.toPath(s3(r))),r=>jhe(e,t,r))}function Qct(e,t){return`${Ls(t)?`Config: ${t} `:t?`Project: ${t.getProjectName()} `:""}WatchType: ${e}`}function V7e(e){return!e.isScriptOpen()&&e.mTime!==void 0}function PC(e,t){return e.containsScriptInfo(t)&&!e.isSourceOfProjectReferenceRedirect(t.path)}function vp(e){return e.invalidateResolutionsOfFailedLookupLocations(),e.dirty&&e.updateGraph()}function Bhe(e){x2(e)&&(e.projectOptions=!0)}function Jhe(e){let t=1;return()=>e(t++)}function zhe(){return{idToCallbacks:new Map,pathToId:new Map}}function Yct(e,t){if(!t||!e.eventHandler||!e.session)return;const r=zhe(),i=zhe(),s=zhe();let o=1;return e.session.addProtocolHandler("watchChange",T=>(g(T.arguments),{responseRequired:!1})),{watchFile:c,watchDirectory:u,getCurrentDirectory:()=>e.host.getCurrentDirectory(),useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames};function c(T,C){return f(r,T,C,N=>({eventName:ZB,data:{id:N,path:T}}))}function u(T,C,N){return f(N?s:i,T,C,D=>({eventName:KB,data:{id:D,path:T,recursive:!!N,ignoreUpdate:T.endsWith("/node_modules")?void 0:!0}}))}function f({pathToId:T,idToCallbacks:C},N,D,M){const V=e.toPath(N);let G=T.get(V);G||T.set(V,G=o++);let Z=C.get(G);return Z||(C.set(G,Z=new Set),e.eventHandler(M(G))),Z.add(D),{close(){const z=C.get(G);z!=null&&z.delete(D)&&(z.size||(C.delete(G),T.delete(V),e.eventHandler({eventName:eJ,data:{id:G}})))}}}function g(T){Ps(T)?T.forEach(d):d(T)}function d({id:T,created:C,deleted:N,updated:D}){y(T,C,0),y(T,N,2),y(T,D,1)}function y(T,C,N){C!=null&&C.length&&(x(r,T,C,(D,M)=>D(M,N)),x(i,T,C,(D,M)=>D(M)),x(s,T,C,(D,M)=>D(M)))}function x(T,C,N,D){var M;(M=T.idToCallbacks.get(C))==null||M.forEach(V=>{N.forEach(G=>D(V,t_(G)))})}}function Zct(){let e;return{get(){return e},set(t){e=t},clear(){e=void 0}}}function Uhe(e){return e.kind!==void 0}function Vhe(e){e.print(!1,!1,!1)}var WB,qB,g5,HB,GB,$B,XB,QB,YB,xee,ZB,KB,eJ,Whe,W7e,q7e,H7e,Tee,tJ,nJ,kee,Cee,qhe,Eee,Kct=K({"src/server/editorServices.ts"(){V1(),$x(),Dhe(),WB=20*1024*1024,qB=4*1024*1024,g5="projectsUpdatedInBackground",HB="projectLoadingStart",GB="projectLoadingFinish",$B="largeFileReferenced",XB="configFileDiag",QB="projectLanguageServiceState",YB="projectInfo",xee="openFileInfo",ZB="createFileWatcher",KB="createDirectoryWatcher",eJ="closeFileWatcher",Whe="*ensureProjectForOpenFiles*",W7e=j7e(Vh),q7e=j7e($4),H7e=new Map(Object.entries({none:0,block:1,smart:2})),Tee={jquery:{match:/jquery(-[\d.]+)?(\.intellisense)?(\.min)?\.js$/i,types:["jquery"]},WinJS:{match:/^(.*\/winjs-[.\d]+)\/js\/base\.js$/i,exclude:[["^",1,"/.*"]],types:["winjs"]},Kendo:{match:/^(.*\/kendo(-ui)?)\/kendo\.all(\.min)?\.js$/i,exclude:[["^",1,"/.*"]],types:["kendo-ui"]},"Office Nuget":{match:/^(.*\/office\/1)\/excel-\d+\.debug\.js$/i,exclude:[["^",1,"/.*"]],types:["office"]},References:{match:/^(.*\/_references\.js)$/i,exclude:[["^",1,"$"]]}},tJ={getFileName:e=>e,getScriptKind:(e,t)=>{let r;if(t){const i=F6(e);i&&Pe(t,s=>s.extension===i?(r=s.scriptKind,!0):!1)}return r},hasMixedContent:(e,t)=>Pe(t,r=>r.isMixedContent&&zc(e,r.extension))},nJ={getFileName:e=>e.fileName,getScriptKind:e=>vee(e.scriptKind),hasMixedContent:e=>!!e.hasMixedContent},kee={close:ao},Cee=(e=>(e[e.Find=0]="Find",e[e.FindCreate=1]="FindCreate",e[e.FindCreateLoad=2]="FindCreateLoad",e))(Cee||{}),qhe=class j2e{constructor(t){this.filenameToScriptInfo=new Map,this.nodeModulesWatchers=new Map,this.filenameToScriptInfoVersion=new Map,this.allJsFilesForOpenFileTelemetry=new Map,this.externalProjectToConfiguredProjectMap=new Map,this.externalProjects=[],this.inferredProjects=[],this.configuredProjects=new Map,this.newInferredProjectName=Jhe(fhe),this.newAutoImportProviderProjectName=Jhe(phe),this.newAuxiliaryProjectName=Jhe(dhe),this.openFiles=new Map,this.configFileForOpenFiles=new Map,this.openFilesWithNonRootedDiskPath=new Map,this.compilerOptionsForInferredProjectsPerProjectRoot=new Map,this.watchOptionsForInferredProjectsPerProjectRoot=new Map,this.typeAcquisitionForInferredProjectsPerProjectRoot=new Map,this.projectToSizeMap=new Map,this.configFileExistenceInfoCache=new Map,this.safelist=Tee,this.legacySafelist=new Map,this.pendingProjectUpdates=new Map,this.pendingEnsureProjectForOpenFiles=!1,this.seenProjects=new Map,this.sharedExtendedConfigFileWatchers=new Map,this.extendedConfigCache=new Map,this.baseline=ao,this.verifyDocumentRegistry=ao,this.verifyProgram=ao,this.onProjectCreation=ao;var r;this.host=t.host,this.logger=t.logger,this.cancellationToken=t.cancellationToken,this.useSingleInferredProject=t.useSingleInferredProject,this.useInferredProjectPerProjectRoot=t.useInferredProjectPerProjectRoot,this.typingsInstaller=t.typingsInstaller||zB,this.throttleWaitMilliseconds=t.throttleWaitMilliseconds,this.eventHandler=t.eventHandler,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.globalPlugins=t.globalPlugins||Rl,this.pluginProbeLocations=t.pluginProbeLocations||Rl,this.allowLocalPluginLoads=!!t.allowLocalPluginLoads,this.typesMapLocation=t.typesMapLocation===void 0?Zr(oi(this.getExecutingFilePath()),"typesMap.json"):t.typesMapLocation,this.session=t.session,this.jsDocParsingMode=t.jsDocParsingMode,t.serverMode!==void 0?this.serverMode=t.serverMode:this.serverMode=0,this.host.realpath&&(this.realpathToScriptInfos=Dp()),this.currentDirectory=Ec(this.host.getCurrentDirectory()),this.toCanonicalFileName=e_(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?ou(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new oee(this.host,this.logger),this.typesMapLocation?this.loadTypesMap():this.logger.info("No types map provided; using the default"),this.typingsInstaller.attach(this),this.typingsCache=new fee(this.typingsInstaller),this.hostConfiguration={formatCodeOptions:WR(this.host.newLine),preferences:cd,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=YQ(this.host.useCaseSensitiveFileNames,this.currentDirectory,this.jsDocParsingMode,this);const i=this.logger.hasLevel(3)?2:this.logger.loggingEnabled()?1:0,s=i!==0?o=>this.logger.info(o):ao;this.packageJsonCache=Ghe(this),this.watchFactory=this.serverMode!==0?{watchFile:u3,watchDirectory:u3}:T$(Yct(this,t.canUseWatchEvents)||this.host,i,s,Qct),(r=t.incrementalVerifier)==null||r.call(t,this)}toPath(t){return hc(t,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(t){return Ss(t,this.host.getCurrentDirectory())}setDocument(t,r,i){const s=w.checkDefined(this.getScriptInfoForPath(r));s.cacheSourceFile={key:t,sourceFile:i}}getDocument(t,r){const i=this.getScriptInfoForPath(r);return i&&i.cacheSourceFile&&i.cacheSourceFile.key===t?i.cacheSourceFile.sourceFile:void 0}ensureInferredProjectsUpToDate_TestOnly(){this.ensureProjectStructuresUptoDate()}getCompilerOptionsForInferredProjects(){return this.compilerOptionsForInferredProjects}onUpdateLanguageServiceStateForProject(t,r){if(!this.eventHandler)return;const i={eventName:QB,data:{project:t,languageServiceEnabled:r}};this.eventHandler(i)}loadTypesMap(){try{const t=this.host.readFile(this.typesMapLocation);if(t===void 0){this.logger.info(`Provided types map file "${this.typesMapLocation}" doesn't exist`);return}const r=JSON.parse(t);for(const i of Object.keys(r.typesMap))r.typesMap[i].match=new RegExp(r.typesMap[i].match,"i");this.safelist=r.typesMap;for(const i in r.simpleMap)jo(r.simpleMap,i)&&this.legacySafelist.set(i,r.simpleMap[i].toLowerCase())}catch(t){this.logger.info(`Error loading types map: ${t}`),this.safelist=Tee,this.legacySafelist.clear()}}updateTypingsForProject(t){const r=this.findProject(t.projectName);if(r)switch(t.kind){case Q7:r.updateTypingFiles(this.typingsCache.updateTypingsForProject(t.projectName,t.compilerOptions,t.typeAcquisition,t.unresolvedImports,t.typings));return;case Y7:this.typingsCache.enqueueInstallTypingsForProject(r,r.lastCachedUnresolvedImportsList,!0);return}}watchTypingLocations(t){var r;(r=this.findProject(t.projectName))==null||r.watchTypingLocations(t.files)}delayEnsureProjectForOpenFiles(){this.openFiles.size&&(this.pendingEnsureProjectForOpenFiles=!0,this.throttledOperations.schedule(Whe,2500,()=>{this.pendingProjectUpdates.size!==0?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())}))}delayUpdateProjectGraph(t){if(t.markAsDirty(),d5(t))return;const r=t.getProjectName();this.pendingProjectUpdates.set(r,t),this.throttledOperations.schedule(r,250,()=>{this.pendingProjectUpdates.delete(r)&&vp(t)})}hasPendingProjectUpdate(t){return this.pendingProjectUpdates.has(t.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;const t={eventName:g5,data:{openFiles:Vs(this.openFiles.keys(),r=>this.getScriptInfoForPath(r).fileName)}};this.eventHandler(t)}sendLargeFileReferencedEvent(t,r){if(!this.eventHandler)return;const i={eventName:$B,data:{file:t,fileSize:r,maxFileSize:qB}};this.eventHandler(i)}sendProjectLoadingStartEvent(t,r){if(!this.eventHandler)return;t.sendLoadingProjectFinish=!0;const i={eventName:HB,data:{project:t,reason:r}};this.eventHandler(i)}sendProjectLoadingFinishEvent(t){if(!this.eventHandler||!t.sendLoadingProjectFinish)return;t.sendLoadingProjectFinish=!1;const r={eventName:GB,data:{project:t}};this.eventHandler(r)}sendPerformanceEvent(t,r){this.performanceEventHandler&&this.performanceEventHandler({kind:t,durationMs:r})}delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(t){this.delayUpdateProjectGraph(t),this.delayEnsureProjectForOpenFiles()}delayUpdateProjectGraphs(t,r){if(t.length){for(const i of t)r&&i.clearSourceMapperCache(),this.delayUpdateProjectGraph(i);this.delayEnsureProjectForOpenFiles()}}setCompilerOptionsForInferredProjects(t,r){w.assert(r===void 0||this.useInferredProjectPerProjectRoot,"Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled");const i=VB(t),s=m5(t,r),o=Lhe(t);i.allowNonTsExtensions=!0;const c=r&&this.toCanonicalFileName(r);c?(this.compilerOptionsForInferredProjectsPerProjectRoot.set(c,i),this.watchOptionsForInferredProjectsPerProjectRoot.set(c,s||!1),this.typeAcquisitionForInferredProjectsPerProjectRoot.set(c,o)):(this.compilerOptionsForInferredProjects=i,this.watchOptionsForInferredProjects=s,this.typeAcquisitionForInferredProjects=o);for(const u of this.inferredProjects)(c?u.projectRootPath===c:!u.projectRootPath||!this.compilerOptionsForInferredProjectsPerProjectRoot.has(u.projectRootPath))&&(u.setCompilerOptions(i),u.setTypeAcquisition(o),u.setWatchOptions(s==null?void 0:s.watchOptions),u.setProjectErrors(s==null?void 0:s.errors),u.compileOnSaveEnabled=i.compileOnSave,u.markAsDirty(),this.delayUpdateProjectGraph(u));this.delayEnsureProjectForOpenFiles()}findProject(t){if(t!==void 0)return _he(t)?B7e(t,this.inferredProjects):this.findExternalProjectByProjectName(t)||this.findConfiguredProjectByProjectName(Ec(t))}forEachProject(t){this.externalProjects.forEach(t),this.configuredProjects.forEach(t),this.inferredProjects.forEach(t)}forEachEnabledProject(t){this.forEachProject(r=>{!r.isOrphan()&&r.languageServiceEnabled&&t(r)})}getDefaultProjectForFile(t,r){return r?this.ensureDefaultProjectForFile(t):this.tryGetDefaultProjectForFile(t)}tryGetDefaultProjectForFile(t){const r=Ls(t)?this.getScriptInfoForNormalizedPath(t):t;return r&&!r.isOrphan()?r.getDefaultProject():void 0}ensureDefaultProjectForFile(t){return this.tryGetDefaultProjectForFile(t)||this.doEnsureDefaultProjectForFile(t)}doEnsureDefaultProjectForFile(t){this.ensureProjectStructuresUptoDate();const r=Ls(t)?this.getScriptInfoForNormalizedPath(t):t;return r?r.getDefaultProject():(this.logErrorForScriptInfoNotFound(Ls(t)?t:t.fileName),My.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(t){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(t)}ensureProjectStructuresUptoDate(){let t=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();const r=i=>{t=vp(i)||t};this.externalProjects.forEach(r),this.configuredProjects.forEach(r),this.inferredProjects.forEach(r),t&&this.ensureProjectForOpenFiles()}getFormatCodeOptions(t){const r=this.getScriptInfoForNormalizedPath(t);return r&&r.getFormatCodeSettings()||this.hostConfiguration.formatCodeOptions}getPreferences(t){const r=this.getScriptInfoForNormalizedPath(t);return{...this.hostConfiguration.preferences,...r&&r.getPreferences()}}getHostFormatCodeOptions(){return this.hostConfiguration.formatCodeOptions}getHostPreferences(){return this.hostConfiguration.preferences}onSourceFileChanged(t,r){r===2?this.handleDeletedFile(t):t.isScriptOpen()||(t.delayReloadNonMixedContentFile(),this.delayUpdateProjectGraphs(t.containingProjects,!1),this.handleSourceMapProjects(t))}handleSourceMapProjects(t){if(t.sourceMapFilePath)if(Ls(t.sourceMapFilePath)){const r=this.getScriptInfoForPath(t.sourceMapFilePath);this.delayUpdateSourceInfoProjects(r&&r.sourceInfos)}else this.delayUpdateSourceInfoProjects(t.sourceMapFilePath.sourceInfos);this.delayUpdateSourceInfoProjects(t.sourceInfos),t.declarationInfoPath&&this.delayUpdateProjectsOfScriptInfoPath(t.declarationInfoPath)}delayUpdateSourceInfoProjects(t){t&&t.forEach((r,i)=>this.delayUpdateProjectsOfScriptInfoPath(i))}delayUpdateProjectsOfScriptInfoPath(t){const r=this.getScriptInfoForPath(t);r&&this.delayUpdateProjectGraphs(r.containingProjects,!0)}handleDeletedFile(t){if(this.stopWatchingScriptInfo(t),!t.isScriptOpen()){this.deleteScriptInfo(t);const r=t.containingProjects.slice();if(t.detachAllProjects(),this.delayUpdateProjectGraphs(r,!1),this.handleSourceMapProjects(t),t.closeSourceMapFileWatcher(),t.declarationInfoPath){const i=this.getScriptInfoForPath(t.declarationInfoPath);i&&(i.sourceMapFilePath=void 0)}}}watchWildcardDirectory(t,r,i,s){let o=this.watchFactory.watchDirectory(t,u=>{const f=this.toPath(u),g=s.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(u,f);if(xl(f)==="package.json"&&!TI(f)&&(g&&g.fileExists||!g&&this.host.fileExists(u))){const y=this.getNormalizedAbsolutePath(u);this.logger.info(`Config: ${i} Detected new package.json: ${y}`),this.packageJsonCache.addOrUpdate(y,f),this.watchPackageJsonFile(y,f,c)}const d=this.findConfiguredProjectByProjectName(i);J7({watchedDirPath:this.toPath(t),fileOrDirectory:u,fileOrDirectoryPath:f,configFileName:i,extraFileExtensions:this.hostConfiguration.extraFileExtensions,currentDirectory:this.currentDirectory,options:s.parsedCommandLine.options,program:(d==null?void 0:d.getCurrentProgram())||s.parsedCommandLine.fileNames,useCaseSensitiveFileNames:this.host.useCaseSensitiveFileNames,writeLog:y=>this.logger.info(y),toPath:y=>this.toPath(y),getScriptKind:d?y=>d.getScriptKind(y):void 0})||(s.updateLevel!==2&&(s.updateLevel=1),s.projects.forEach((y,x)=>{if(!y)return;const T=this.getConfiguredProjectByCanonicalConfigFilePath(x);if(!T)return;const C=d===T?1:0;if(!(T.pendingUpdateLevel!==void 0&&T.pendingUpdateLevel>C))if(this.openFiles.has(f))if(w.checkDefined(this.getScriptInfoForPath(f)).isAttached(T)){const D=Math.max(C,T.openFileWatchTriggered.get(f)||0);T.openFileWatchTriggered.set(f,D)}else T.pendingUpdateLevel=C,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(T);else T.pendingUpdateLevel=C,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(T)}))},r,this.getWatchOptionsFromProjectWatchOptions(s.parsedCommandLine.watchOptions),tu.WildcardDirectory,i);const c={packageJsonWatches:void 0,close(){var u;o&&(o.close(),o=void 0,(u=c.packageJsonWatches)==null||u.forEach(f=>{f.projects.delete(c),f.close()}),c.packageJsonWatches=void 0)}};return c}delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,r){const i=this.configFileExistenceInfoCache.get(t);if(!(i!=null&&i.config))return!1;let s=!1;return i.config.updateLevel=2,i.config.projects.forEach((o,c)=>{const u=this.getConfiguredProjectByCanonicalConfigFilePath(c);if(u)if(s=!0,c===t){if(u.isInitialLoadPending())return;u.pendingUpdateLevel=2,u.pendingUpdateReason=r,this.delayUpdateProjectGraph(u)}else u.resolutionCache.removeResolutionsFromProjectReferenceRedirects(this.toPath(t)),this.delayUpdateProjectGraph(u)}),s}onConfigFileChanged(t,r){var i;const s=this.configFileExistenceInfoCache.get(t);if(r===2){s.exists=!1;const o=(i=s.config)!=null&&i.projects.has(t)?this.getConfiguredProjectByCanonicalConfigFilePath(t):void 0;o&&this.removeProject(o)}else s.exists=!0;this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,"Change in config file detected"),this.reloadConfiguredProjectForFiles(s.openFilesImpactedByConfigFile,!1,!0,r!==2?dc:cy,"Change in config file detected"),this.delayEnsureProjectForOpenFiles()}removeProject(t){switch(this.logger.info("`remove Project::"),t.print(!0,!0,!1),t.close(),w.shouldAssert(1)&&this.filenameToScriptInfo.forEach(r=>w.assert(!r.isAttached(t),"Found script Info still attached to project",()=>`${t.projectName}: ScriptInfos still attached: ${JSON.stringify(Vs(xi(this.filenameToScriptInfo.values(),i=>i.isAttached(t)?{fileName:i.fileName,projects:i.containingProjects.map(s=>s.projectName),hasMixedContent:i.hasMixedContent}:void 0)),void 0," ")}`)),this.pendingProjectUpdates.delete(t.getProjectName()),t.projectKind){case 2:ak(this.externalProjects,t),this.projectToSizeMap.delete(t.getProjectName());break;case 1:this.configuredProjects.delete(t.canonicalConfigFilePath),this.projectToSizeMap.delete(t.canonicalConfigFilePath);break;case 0:ak(this.inferredProjects,t);break}}assignOrphanScriptInfoToInferredProject(t,r){w.assert(t.isOrphan());const i=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(t,r)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(t.isDynamic?r||this.currentDirectory:oi(zf(t.fileName)?t.fileName:Ss(t.fileName,r?this.getNormalizedAbsolutePath(r):this.currentDirectory)));if(i.addRoot(t),t.containingProjects[0]!==i&&(w6(t.containingProjects,i),t.containingProjects.unshift(i)),i.updateGraph(),!this.useSingleInferredProject&&!i.projectRootPath)for(const s of this.inferredProjects){if(s===i||s.isOrphan())continue;const o=s.getRootScriptInfos();w.assert(o.length===1||!!s.projectRootPath),o.length===1&&dt(o[0].containingProjects,c=>c!==o[0].containingProjects[0]&&!c.isOrphan())&&s.removeFile(o[0],!0,!0)}return i}assignOrphanScriptInfosToInferredProject(){this.openFiles.forEach((t,r)=>{const i=this.getScriptInfoForPath(r);i.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(i,t)})}closeOpenFile(t,r){const i=t.isDynamic?!1:this.host.fileExists(t.fileName);t.close(i),this.stopWatchingConfigFilesForClosedScriptInfo(t);const s=this.toCanonicalFileName(t.fileName);this.openFilesWithNonRootedDiskPath.get(s)===t&&this.openFilesWithNonRootedDiskPath.delete(s);let o=!1;for(const c of t.containingProjects){if(x2(c)){t.hasMixedContent&&t.registerFileUpdate();const u=c.openFileWatchTriggered.get(t.path);u!==void 0&&(c.openFileWatchTriggered.delete(t.path),c.pendingUpdateLevel!==void 0&&c.pendingUpdateLevelthis.onConfigFileChanged(r,g),2e3,this.getWatchOptionsFromProjectWatchOptions((o=(s=c==null?void 0:c.config)==null?void 0:s.parsedCommandLine)==null?void 0:o.watchOptions),tu.ConfigFile,i));const u=c.config.projects;u.set(i.canonicalConfigFilePath,u.get(i.canonicalConfigFilePath)||!1)}configFileExistenceImpactsRootOfInferredProject(t){return t.openFilesImpactedByConfigFile&&cu(t.openFilesImpactedByConfigFile,dc)}releaseParsedConfig(t,r){var i,s,o;const c=this.configFileExistenceInfoCache.get(t);(i=c.config)!=null&&i.projects.delete(r.canonicalConfigFilePath)&&((s=c.config)!=null&&s.projects.size||(c.config=void 0,S$(t,this.sharedExtendedConfigFileWatchers),w.checkDefined(c.watcher),(o=c.openFilesImpactedByConfigFile)!=null&&o.size?this.configFileExistenceImpactsRootOfInferredProject(c)?PR(au(oi(t)))||(c.watcher.close(),c.watcher=kee):(c.watcher.close(),c.watcher=void 0):(c.watcher.close(),this.configFileExistenceInfoCache.delete(t))))}closeConfigFileWatcherOnReleaseOfOpenFile(t){t.watcher&&!t.config&&!this.configFileExistenceImpactsRootOfInferredProject(t)&&(t.watcher.close(),t.watcher=void 0)}stopWatchingConfigFilesForClosedScriptInfo(t){w.assert(!t.isScriptOpen()),this.forEachConfigFileLocation(t,r=>{var i,s,o;const c=this.configFileExistenceInfoCache.get(r);if(c){const u=(i=c.openFilesImpactedByConfigFile)==null?void 0:i.get(t.path);(s=c.openFilesImpactedByConfigFile)==null||s.delete(t.path),u&&this.closeConfigFileWatcherOnReleaseOfOpenFile(c),!((o=c.openFilesImpactedByConfigFile)!=null&&o.size)&&!c.config&&(w.assert(!c.watcher),this.configFileExistenceInfoCache.delete(r))}})}startWatchingConfigFilesForInferredProjectRoot(t){w.assert(t.isScriptOpen()),this.forEachConfigFileLocation(t,(r,i)=>{let s=this.configFileExistenceInfoCache.get(r);s||(s={exists:this.host.fileExists(i)},this.configFileExistenceInfoCache.set(r,s)),(s.openFilesImpactedByConfigFile||(s.openFilesImpactedByConfigFile=new Map)).set(t.path,!0),s.watcher||(s.watcher=PR(au(oi(r)))?this.watchFactory.watchFile(i,(o,c)=>this.onConfigFileChanged(r,c),2e3,this.hostConfiguration.watchOptions,tu.ConfigFileForInferredRoot):kee)})}stopWatchingConfigFilesForInferredProjectRoot(t){this.forEachConfigFileLocation(t,r=>{var i;const s=this.configFileExistenceInfoCache.get(r);(i=s==null?void 0:s.openFilesImpactedByConfigFile)!=null&&i.has(t.path)&&(w.assert(t.isScriptOpen()),s.openFilesImpactedByConfigFile.set(t.path,!1),this.closeConfigFileWatcherOnReleaseOfOpenFile(s))})}forEachConfigFileLocation(t,r){if(this.serverMode!==0)return;w.assert(!See(t)||this.openFiles.has(t.path));const i=this.openFiles.get(t.path);if(w.checkDefined(this.getScriptInfo(t.path)).isDynamic)return;let o=oi(t.fileName);const c=()=>Xd(i,o,this.currentDirectory,!this.host.useCaseSensitiveFileNames),u=!i||!c();let f=!J7e(t);do{if(f){const d=_5(o,this.currentDirectory,this.toCanonicalFileName),y=Zr(o,"tsconfig.json");let x=r(Zr(d,"tsconfig.json"),y);if(x)return y;const T=Zr(o,"jsconfig.json");if(x=r(Zr(d,"jsconfig.json"),T),x)return T;if(aF(d))break}const g=oi(o);if(g===o)break;o=g,f=!0}while(u||c())}findDefaultConfiguredProject(t){if(!t.isScriptOpen())return;const r=this.getConfigFileNameForFile(t),i=r&&this.findConfiguredProjectByProjectName(r);return i&&PC(i,t)?i:i==null?void 0:i.getDefaultChildProjectFromProjectWithReferences(t)}getConfigFileNameForFile(t){if(!J7e(t)){const i=this.configFileForOpenFiles.get(t.path);if(i!==void 0)return i||void 0}this.logger.info(`Search path: ${oi(t.fileName)}`);const r=this.forEachConfigFileLocation(t,(i,s)=>this.configFileExists(s,i,t));return r?this.logger.info(`For info: ${t.fileName} :: Config file name: ${r}`):this.logger.info(`For info: ${t.fileName} :: No config files found.`),See(t)&&this.configFileForOpenFiles.set(t.path,r||!1),r}printProjects(){this.logger.hasLevel(1)&&(this.logger.startGroup(),this.externalProjects.forEach(Vhe),this.configuredProjects.forEach(Vhe),this.inferredProjects.forEach(Vhe),this.logger.info("Open files: "),this.openFiles.forEach((t,r)=>{const i=this.getScriptInfoForPath(r);this.logger.info(` FileName: ${i.fileName} ProjectRootPath: ${t}`),this.logger.info(` Projects: ${i.containingProjects.map(s=>s.getProjectName())}`)}),this.logger.endGroup())}findConfiguredProjectByProjectName(t){const r=this.toCanonicalFileName(t);return this.getConfiguredProjectByCanonicalConfigFilePath(r)}getConfiguredProjectByCanonicalConfigFilePath(t){return this.configuredProjects.get(t)}findExternalProjectByProjectName(t){return B7e(t,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(t,r,i,s){if(r&&r.disableSizeLimit||!this.host.getFileSize)return;let o=WB;this.projectToSizeMap.set(t,0),this.projectToSizeMap.forEach(u=>o-=u||0);let c=0;for(const u of i){const f=s.getFileName(u);if(!Ik(f)&&(c+=this.host.getFileSize(f),c>WB||c>o)){const g=i.map(d=>s.getFileName(d)).filter(d=>!Ik(d)).map(d=>({name:d,size:this.host.getFileSize(d)})).sort((d,y)=>y.size-d.size).slice(0,5);return this.logger.info(`Non TS file size exceeded limit (${c}). Largest files: ${g.map(d=>`${d.name}:${d.size}`).join(", ")}`),f}}this.projectToSizeMap.set(t,c)}createExternalProject(t,r,i,s,o){const c=VB(i),u=m5(i,oi(t_(t))),f=new UB(t,this,this.documentRegistry,c,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t,c,r,nJ),i.compileOnSave===void 0?!0:i.compileOnSave,void 0,u==null?void 0:u.watchOptions);return f.setProjectErrors(u==null?void 0:u.errors),f.excludedFiles=o,this.addFilesToNonInferredProject(f,r,nJ,s),this.externalProjects.push(f),f}sendProjectTelemetry(t){if(this.seenProjects.has(t.projectName)){Bhe(t);return}if(this.seenProjects.set(t.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash){Bhe(t);return}const r=x2(t)?t.projectOptions:void 0;Bhe(t);const i={projectId:this.host.createSHA256Hash(t.projectName),fileStats:p5(t.getScriptInfos(),!0),compilerOptions:Cce(t.getCompilationSettings()),typeAcquisition:o(t.getTypeAcquisition()),extends:r&&r.configHasExtendsProperty,files:r&&r.configHasFilesProperty,include:r&&r.configHasIncludeProperty,exclude:r&&r.configHasExcludeProperty,compileOnSave:t.compileOnSaveEnabled,configFileName:s(),projectType:t instanceof UB?"external":"configured",languageServiceEnabled:t.languageServiceEnabled,version:wt};this.eventHandler({eventName:YB,data:i});function s(){return x2(t)&&aee(t.getConfigFilePath())||"other"}function o({enable:c,include:u,exclude:f}){return{enable:c,include:u!==void 0&&u.length!==0,exclude:f!==void 0&&f.length!==0}}}addFilesToNonInferredProject(t,r,i,s){this.updateNonInferredProjectFiles(t,r,i),t.setTypeAcquisition(s),t.markAsDirty()}createConfiguredProject(t){var r;(r=cr)==null||r.instant(cr.Phase.Session,"createConfiguredProject",{configFilePath:t}),this.logger.info(`Creating configuration project ${t}`);const i=this.toCanonicalFileName(t);let s=this.configFileExistenceInfoCache.get(i);s?s.exists=!0:this.configFileExistenceInfoCache.set(i,s={exists:!0}),s.config||(s.config={cachedDirectoryStructureHost:fR(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});const o=new yee(t,i,this,this.documentRegistry,s.config.cachedDirectoryStructureHost);return this.configuredProjects.set(i,o),this.createConfigFileWatcherForParsedConfig(t,i,o),o}createConfiguredProjectWithDelayLoad(t,r){const i=this.createConfiguredProject(t);return i.pendingUpdateLevel=2,i.pendingUpdateReason=r,i}createAndLoadConfiguredProject(t,r){const i=this.createConfiguredProject(t);return this.loadConfiguredProject(i,r),i}createLoadAndUpdateConfiguredProject(t,r){const i=this.createAndLoadConfiguredProject(t,r);return i.updateGraph(),i}loadConfiguredProject(t,r){var i,s;(i=cr)==null||i.push(cr.Phase.Session,"loadConfiguredProject",{configFilePath:t.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(t,r);const o=ka(t.getConfigFilePath()),c=this.ensureParsedConfigUptoDate(o,t.canonicalConfigFilePath,this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath),t),u=c.config.parsedCommandLine;w.assert(!!u.fileNames);const f=u.options;t.projectOptions||(t.projectOptions={configHasExtendsProperty:u.raw.extends!==void 0,configHasFilesProperty:u.raw.files!==void 0,configHasIncludeProperty:u.raw.include!==void 0,configHasExcludeProperty:u.raw.exclude!==void 0}),t.canConfigFileJsonReportNoInputFiles=Lw(u.raw),t.setProjectErrors(u.options.configFile.parseDiagnostics),t.updateReferences(u.projectReferences);const g=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.canonicalConfigFilePath,f,u.fileNames,tJ);g?(t.disableLanguageService(g),this.configFileExistenceInfoCache.forEach((y,x)=>this.stopWatchingWildCards(x,t))):(t.setCompilerOptions(f),t.setWatchOptions(u.watchOptions),t.enableLanguageService(),this.watchWildcards(o,c,t)),t.enablePluginsWithOptions(f);const d=u.fileNames.concat(t.getExternalFiles(2));this.updateRootAndOptionsOfNonInferredProject(t,d,tJ,f,u.typeAcquisition,u.compileOnSave,u.watchOptions),(s=cr)==null||s.pop()}ensureParsedConfigUptoDate(t,r,i,s){var o,c,u;if(i.config){if(!i.config.updateLevel)return i;if(i.config.updateLevel===1)return this.reloadFileNamesOfParsedConfig(t,i.config),i}const f=((o=i.config)==null?void 0:o.cachedDirectoryStructureHost)||fR(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),g=Fw(t,C=>this.host.readFile(C)),d=u7(t,Ls(g)?g:""),y=d.parseDiagnostics;Ls(g)||y.push(g);const x=d7(d,f,oi(t),{},t,[],this.hostConfiguration.extraFileExtensions,this.extendedConfigCache);x.errors.length&&y.push(...x.errors),this.logger.info(`Config: ${t} : ${JSON.stringify({rootNames:x.fileNames,options:x.options,watchOptions:x.watchOptions,projectReferences:x.projectReferences},void 0," ")}`);const T=(c=i.config)==null?void 0:c.parsedCommandLine;return i.config?(i.config.parsedCommandLine=x,i.config.watchedDirectoriesStale=!0,i.config.updateLevel=void 0):i.config={parsedCommandLine:x,cachedDirectoryStructureHost:f,projects:new Map},!T&&!Y9(this.getWatchOptionsFromProjectWatchOptions(void 0),this.getWatchOptionsFromProjectWatchOptions(x.watchOptions))&&((u=i.watcher)==null||u.close(),i.watcher=void 0),this.createConfigFileWatcherForParsedConfig(t,r,s),pR(r,x.options,this.sharedExtendedConfigFileWatchers,(C,N)=>this.watchFactory.watchFile(C,()=>{var D;dR(this.extendedConfigCache,N,V=>this.toPath(V));let M=!1;(D=this.sharedExtendedConfigFileWatchers.get(N))==null||D.projects.forEach(V=>{M=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(V,`Change in extended config file ${C} detected`)||M}),M&&this.delayEnsureProjectForOpenFiles()},2e3,this.hostConfiguration.watchOptions,tu.ExtendedConfigFile,t),C=>this.toPath(C)),i}watchWildcards(t,{exists:r,config:i},s){if(i.projects.set(s.canonicalConfigFilePath,!0),r){if(i.watchedDirectories&&!i.watchedDirectoriesStale)return;i.watchedDirectoriesStale=!1,B7(i.watchedDirectories||(i.watchedDirectories=new Map),i.parsedCommandLine.wildcardDirectories,(o,c)=>this.watchWildcardDirectory(o,c,t,i))}else{if(i.watchedDirectoriesStale=!1,!i.watchedDirectories)return;wf(i.watchedDirectories,ad),i.watchedDirectories=void 0}}stopWatchingWildCards(t,r){const i=this.configFileExistenceInfoCache.get(t);!i.config||!i.config.projects.get(r.canonicalConfigFilePath)||(i.config.projects.set(r.canonicalConfigFilePath,!1),!cu(i.config.projects,dc)&&(i.config.watchedDirectories&&(wf(i.config.watchedDirectories,ad),i.config.watchedDirectories=void 0),i.config.watchedDirectoriesStale=void 0))}updateNonInferredProjectFiles(t,r,i){const s=t.getRootFilesMap(),o=new Map;for(const c of r){const u=i.getFileName(c),f=Ec(u),g=f5(f);let d;if(!g&&!t.fileExists(u)){d=_5(f,this.currentDirectory,this.toCanonicalFileName);const y=s.get(d);y?(y.info&&(t.removeFile(y.info,!1,!0),y.info=void 0),y.fileName=f):s.set(d,{fileName:f})}else{const y=i.getScriptKind(c,this.hostConfiguration.extraFileExtensions),x=i.hasMixedContent(c,this.hostConfiguration.extraFileExtensions),T=w.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(f,t.currentDirectory,y,x,t.directoryStructureHost));d=T.path;const C=s.get(d);!C||C.info!==T?(t.addRoot(T,f),T.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(T)):C.fileName=f}o.set(d,!0)}s.size>o.size&&s.forEach((c,u)=>{o.has(u)||(c.info?t.removeFile(c.info,t.fileExists(c.info.fileName),!0):s.delete(u))})}updateRootAndOptionsOfNonInferredProject(t,r,i,s,o,c,u){t.setCompilerOptions(s),t.setWatchOptions(u),c!==void 0&&(t.compileOnSaveEnabled=c),this.addFilesToNonInferredProject(t,r,i,o)}reloadFileNamesOfConfiguredProject(t){const r=this.reloadFileNamesOfParsedConfig(t.getConfigFilePath(),this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath).config);return t.updateErrorOnNoInputFiles(r),this.updateNonInferredProjectFiles(t,r.concat(t.getExternalFiles(1)),tJ),t.markAsDirty(),t.updateGraph()}reloadFileNamesOfParsedConfig(t,r){if(r.updateLevel===void 0)return r.parsedCommandLine.fileNames;w.assert(r.updateLevel===1);const i=r.parsedCommandLine.options.configFile.configFileSpecs,s=Mw(i,oi(t),r.parsedCommandLine.options,r.cachedDirectoryStructureHost,this.hostConfiguration.extraFileExtensions);return r.parsedCommandLine={...r.parsedCommandLine,fileNames:s},s}setFileNamesOfAutpImportProviderOrAuxillaryProject(t,r){this.updateNonInferredProjectFiles(t,r,tJ)}reloadConfiguredProject(t,r,i,s){const o=t.getCachedDirectoryStructureHost();s&&this.clearSemanticCache(t),o.clearCache();const c=t.getConfigFilePath();this.logger.info(`${i?"Loading":"Reloading"} configured project ${c}`),this.loadConfiguredProject(t,r),t.updateGraph(),this.sendConfigFileDiagEvent(t,c)}clearSemanticCache(t){t.resolutionCache.clear(),t.getLanguageService(!1).cleanupSemanticCache(),t.cleanupProgram(),t.markAsDirty()}sendConfigFileDiagEvent(t,r){if(!this.eventHandler||this.suppressDiagnosticEvents)return;const i=t.getLanguageService().getCompilerOptionsDiagnostics();i.push(...t.getAllProjectErrors()),this.eventHandler({eventName:XB,data:{configFileName:t.getConfigFilePath(),diagnostics:i,triggerFile:r}})}getOrCreateInferredProjectForProjectRootPathIfEnabled(t,r){if(!this.useInferredProjectPerProjectRoot||t.isDynamic&&r===void 0)return;if(r){const s=this.toCanonicalFileName(r);for(const o of this.inferredProjects)if(o.projectRootPath===s)return o;return this.createInferredProject(r,!1,r)}let i;for(const s of this.inferredProjects)s.projectRootPath&&Xd(s.projectRootPath,t.path,this.host.getCurrentDirectory(),!this.host.useCaseSensitiveFileNames)&&(i&&i.projectRootPath.length>s.projectRootPath.length||(i=s));return i}getOrCreateSingleInferredProjectIfEnabled(){if(this.useSingleInferredProject)return this.inferredProjects.length>0&&this.inferredProjects[0].projectRootPath===void 0?this.inferredProjects[0]:this.createInferredProject("",!0)}getOrCreateSingleInferredWithoutProjectRoot(t){w.assert(!this.useSingleInferredProject);const r=this.toCanonicalFileName(this.getNormalizedAbsolutePath(t));for(const i of this.inferredProjects)if(!i.projectRootPath&&i.isOrphan()&&i.canonicalCurrentDirectory===r)return i;return this.createInferredProject(t)}createInferredProject(t,r,i){const s=i&&this.compilerOptionsForInferredProjectsPerProjectRoot.get(i)||this.compilerOptionsForInferredProjects;let o,c;i&&(o=this.watchOptionsForInferredProjectsPerProjectRoot.get(i),c=this.typeAcquisitionForInferredProjectsPerProjectRoot.get(i)),o===void 0&&(o=this.watchOptionsForInferredProjects),c===void 0&&(c=this.typeAcquisitionForInferredProjects),o=o||void 0;const u=new dee(this,this.documentRegistry,s,o==null?void 0:o.watchOptions,i,t,c);return u.setProjectErrors(o==null?void 0:o.errors),r?this.inferredProjects.unshift(u):this.inferredProjects.push(u),u}getOrCreateScriptInfoNotOpenedByClient(t,r,i){return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(Ec(t),r,void 0,void 0,i)}getScriptInfo(t){return this.getScriptInfoForNormalizedPath(Ec(t))}getScriptInfoOrConfig(t){const r=Ec(t),i=this.getScriptInfoForNormalizedPath(r);if(i)return i;const s=this.configuredProjects.get(this.toPath(t));return s&&s.getCompilerOptions().configFile}logErrorForScriptInfoNotFound(t){const r=Vs(this.filenameToScriptInfo.entries(),([i,s])=>({path:i,fileName:s.fileName}));this.logger.msg(`Could not find file ${JSON.stringify(t)}. +All files are: ${JSON.stringify(r)}`,"Err")}getSymlinkedProjects(t){let r;if(this.realpathToScriptInfos){const s=t.getRealpathIfDifferent();s&&dt(this.realpathToScriptInfos.get(s),i),dt(this.realpathToScriptInfos.get(t.path),i)}return r;function i(s){if(s!==t)for(const o of s.containingProjects)o.languageServiceEnabled&&!o.isOrphan()&&!o.getCompilerOptions().preserveSymlinks&&!t.isAttached(o)&&(r?cu(r,(c,u)=>u===s.path?!1:Ai(c,o))||r.add(s.path,o):(r=Dp(),r.add(s.path,o)))}}watchClosedScriptInfo(t){if(w.assert(!t.fileWatcher),!t.isDynamicOrHasMixedContent()&&(!this.globalCacheLocationDirectoryPath||!fs(t.path,this.globalCacheLocationDirectoryPath))){const r=t.fileName.indexOf("/node_modules/");!this.host.getModifiedTime||r===-1?t.fileWatcher=this.watchFactory.watchFile(t.fileName,(i,s)=>this.onSourceFileChanged(t,s),500,this.hostConfiguration.watchOptions,tu.ClosedScriptInfo):(t.mTime=this.getModifiedTime(t),t.fileWatcher=this.watchClosedScriptInfoInNodeModules(t.fileName.substring(0,r)))}}createNodeModulesWatcher(t,r){let i=this.watchFactory.watchDirectory(t,o=>{var c;const u=ER(this.toPath(o));if(!u)return;const f=xl(u);if((c=s.affectedModuleSpecifierCacheProjects)!=null&&c.size&&(f==="package.json"||f==="node_modules")&&s.affectedModuleSpecifierCacheProjects.forEach(g=>{var d;(d=g.getModuleSpecifierCache())==null||d.clear()}),s.refreshScriptInfoRefCount)if(r===u)this.refreshScriptInfosInDirectory(r);else{const g=this.getScriptInfoForPath(u);g?V7e(g)&&this.refreshScriptInfo(g):lk(u)||this.refreshScriptInfosInDirectory(u)}},1,this.hostConfiguration.watchOptions,tu.NodeModules);const s={refreshScriptInfoRefCount:0,affectedModuleSpecifierCacheProjects:void 0,close:()=>{var o;i&&!s.refreshScriptInfoRefCount&&!((o=s.affectedModuleSpecifierCacheProjects)!=null&&o.size)&&(i.close(),i=void 0,this.nodeModulesWatchers.delete(r))}};return this.nodeModulesWatchers.set(r,s),s}watchPackageJsonsInNodeModules(t,r){var i;const s=this.toPath(t),o=this.nodeModulesWatchers.get(s)||this.createNodeModulesWatcher(t,s);return w.assert(!((i=o.affectedModuleSpecifierCacheProjects)!=null&&i.has(r))),(o.affectedModuleSpecifierCacheProjects||(o.affectedModuleSpecifierCacheProjects=new Set)).add(r),{close:()=>{var c;(c=o.affectedModuleSpecifierCacheProjects)==null||c.delete(r),o.close()}}}watchClosedScriptInfoInNodeModules(t){const r=t+"/node_modules",i=this.toPath(r),s=this.nodeModulesWatchers.get(i)||this.createNodeModulesWatcher(r,i);return s.refreshScriptInfoRefCount++,{close:()=>{s.refreshScriptInfoRefCount--,s.close()}}}getModifiedTime(t){return(this.host.getModifiedTime(t.fileName)||fp).getTime()}refreshScriptInfo(t){const r=this.getModifiedTime(t);if(r!==t.mTime){const i=EV(t.mTime,r);t.mTime=r,this.onSourceFileChanged(t,i)}}refreshScriptInfosInDirectory(t){t=t+yc,this.filenameToScriptInfo.forEach(r=>{V7e(r)&&fs(r.path,t)&&this.refreshScriptInfo(r)})}stopWatchingScriptInfo(t){t.fileWatcher&&(t.fileWatcher.close(),t.fileWatcher=void 0)}getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(t,r,i,s,o){if(zf(t)||f5(t))return this.getOrCreateScriptInfoWorker(t,r,!1,void 0,i,s,o);const c=this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t));if(c)return c}getOrCreateScriptInfoOpenedByClientForNormalizedPath(t,r,i,s,o){return this.getOrCreateScriptInfoWorker(t,r,!0,i,s,o)}getOrCreateScriptInfoForNormalizedPath(t,r,i,s,o,c){return this.getOrCreateScriptInfoWorker(t,this.currentDirectory,r,i,s,o,c)}getOrCreateScriptInfoWorker(t,r,i,s,o,c,u){w.assert(s===void 0||i,"ScriptInfo needs to be opened by client to be able to set its user defined content");const f=_5(t,r,this.toCanonicalFileName);let g=this.getScriptInfoForPath(f);if(!g){const d=f5(t);if(w.assert(zf(t)||d||i,"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Vs(this.openFilesWithNonRootedDiskPath.keys())})} +Script info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`),w.assert(!zf(t)||this.currentDirectory===r||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(t)),"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Vs(this.openFilesWithNonRootedDiskPath.keys())})} +Open script files with non rooted disk path opened with current directory context cannot have same canonical names`),w.assert(!d||this.currentDirectory===r||this.useInferredProjectPerProjectRoot,"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Vs(this.openFilesWithNonRootedDiskPath.keys())})} +Dynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`),!i&&!d&&!(u||this.host).fileExists(t))return;g=new _ee(this.host,t,o,!!c,f,this.filenameToScriptInfoVersion.get(f)),this.filenameToScriptInfo.set(g.path,g),this.filenameToScriptInfoVersion.delete(g.path),i?!zf(t)&&(!d||this.currentDirectory!==r)&&this.openFilesWithNonRootedDiskPath.set(this.toCanonicalFileName(t),g):this.watchClosedScriptInfo(g)}return i&&(this.stopWatchingScriptInfo(g),g.open(s),c&&g.registerFileUpdate()),g}getScriptInfoForNormalizedPath(t){return!zf(t)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t))||this.getScriptInfoForPath(_5(t,this.currentDirectory,this.toCanonicalFileName))}getScriptInfoForPath(t){return this.filenameToScriptInfo.get(t)}getDocumentPositionMapper(t,r,i){const s=this.getOrCreateScriptInfoNotOpenedByClient(r,t.currentDirectory,this.host);if(!s){i&&t.addGeneratedFileWatch(r,i);return}if(s.getSnapshot(),Ls(s.sourceMapFilePath)){const d=this.getScriptInfoForPath(s.sourceMapFilePath);if(d&&(d.getSnapshot(),d.documentPositionMapper!==void 0))return d.sourceInfos=this.addSourceInfoToSourceMap(i,t,d.sourceInfos),d.documentPositionMapper?d.documentPositionMapper:void 0;s.sourceMapFilePath=void 0}else if(s.sourceMapFilePath){s.sourceMapFilePath.sourceInfos=this.addSourceInfoToSourceMap(i,t,s.sourceMapFilePath.sourceInfos);return}else if(s.sourceMapFilePath!==void 0)return;let o,c,u=(d,y)=>{const x=this.getOrCreateScriptInfoNotOpenedByClient(d,t.currentDirectory,this.host);if(!x){c=y;return}o=x;const T=x.getSnapshot();return x.documentPositionMapper!==void 0?x.documentPositionMapper:d3(T)};const f=t.projectName,g=tY({getCanonicalFileName:this.toCanonicalFileName,log:d=>this.logger.info(d),getSourceFileLike:d=>this.getSourceFileLike(d,f,s)},s.fileName,s.textStorage.getLineInfo(),u);return u=void 0,o?(s.sourceMapFilePath=o.path,o.declarationInfoPath=s.path,o.documentPositionMapper=g||!1,o.sourceInfos=this.addSourceInfoToSourceMap(i,t,o.sourceInfos)):c?s.sourceMapFilePath={watcher:this.addMissingSourceMapFile(t.currentDirectory===this.currentDirectory?c:Ss(c,t.currentDirectory),s.path),sourceInfos:this.addSourceInfoToSourceMap(i,t)}:s.sourceMapFilePath=!1,g}addSourceInfoToSourceMap(t,r,i){if(t){const s=this.getOrCreateScriptInfoNotOpenedByClient(t,r.currentDirectory,r.directoryStructureHost);(i||(i=new Set)).add(s.path)}return i}addMissingSourceMapFile(t,r){return this.watchFactory.watchFile(t,()=>{const s=this.getScriptInfoForPath(r);s&&s.sourceMapFilePath&&!Ls(s.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(s.containingProjects,!0),this.delayUpdateSourceInfoProjects(s.sourceMapFilePath.sourceInfos),s.closeSourceMapFileWatcher())},2e3,this.hostConfiguration.watchOptions,tu.MissingSourceMapFile)}getSourceFileLike(t,r,i){const s=r.projectName?r:this.findProject(r);if(s){const c=s.toPath(t),u=s.getSourceFile(c);if(u&&u.resolvedPath===c)return u}const o=this.getOrCreateScriptInfoNotOpenedByClient(t,(s||this).currentDirectory,s?s.directoryStructureHost:this.host);if(o){if(i&&Ls(i.sourceMapFilePath)&&o!==i){const c=this.getScriptInfoForPath(i.sourceMapFilePath);c&&(c.sourceInfos||(c.sourceInfos=new Set)).add(o.path)}return o.cacheSourceFile?o.cacheSourceFile.sourceFile:(o.sourceFileLike||(o.sourceFileLike={get text(){return w.fail("shouldnt need text"),""},getLineAndCharacterOfPosition:c=>{const u=o.positionToLineOffset(c);return{line:u.line-1,character:u.offset-1}},getPositionOfLineAndCharacter:(c,u,f)=>o.lineOffsetToPosition(c+1,u+1,f)}),o.sourceFileLike)}}setPerformanceEventHandler(t){this.performanceEventHandler=t}setHostConfiguration(t){var r;if(t.file){const i=this.getScriptInfoForNormalizedPath(Ec(t.file));i&&(i.setOptions(R3(t.formatOptions),t.preferences),this.logger.info(`Host configuration update for file ${t.file}`))}else{if(t.hostInfo!==void 0&&(this.hostConfiguration.hostInfo=t.hostInfo,this.logger.info(`Host information ${t.hostInfo}`)),t.formatOptions&&(this.hostConfiguration.formatCodeOptions={...this.hostConfiguration.formatCodeOptions,...R3(t.formatOptions)},this.logger.info("Format host information updated")),t.preferences){const{lazyConfiguredProjectsFromExternalProject:i,includePackageJsonAutoImports:s}=this.hostConfiguration.preferences;this.hostConfiguration.preferences={...this.hostConfiguration.preferences,...t.preferences},i&&!this.hostConfiguration.preferences.lazyConfiguredProjectsFromExternalProject&&this.externalProjectToConfiguredProjectMap.forEach(o=>o.forEach(c=>{!c.isClosed()&&c.hasExternalProjectRef()&&c.pendingUpdateLevel===2&&!this.pendingProjectUpdates.has(c.getProjectName())&&c.updateGraph()})),s!==t.preferences.includePackageJsonAutoImports&&this.forEachProject(o=>{o.onAutoImportProviderSettingsChanged()})}t.extraFileExtensions&&(this.hostConfiguration.extraFileExtensions=t.extraFileExtensions,this.reloadProjects(),this.logger.info("Host file extension mappings updated")),t.watchOptions&&(this.hostConfiguration.watchOptions=(r=m5(t.watchOptions))==null?void 0:r.watchOptions,this.logger.info(`Host watch options changed to ${JSON.stringify(this.hostConfiguration.watchOptions)}, it will be take effect for next watches.`))}}getWatchOptions(t){return this.getWatchOptionsFromProjectWatchOptions(t.getWatchOptions())}getWatchOptionsFromProjectWatchOptions(t){return t&&this.hostConfiguration.watchOptions?{...this.hostConfiguration.watchOptions,...t}:t||this.hostConfiguration.watchOptions}closeLog(){this.logger.close()}reloadProjects(){this.logger.info("reload projects."),this.filenameToScriptInfo.forEach(t=>{this.openFiles.has(t.path)||t.fileWatcher&&this.onSourceFileChanged(t,this.host.fileExists(t.fileName)?1:2)}),this.pendingProjectUpdates.forEach((t,r)=>{this.throttledOperations.cancel(r),this.pendingProjectUpdates.delete(r)}),this.throttledOperations.cancel(Whe),this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach(t=>{t.config&&(t.config.updateLevel=2)}),this.reloadConfiguredProjectForFiles(this.openFiles,!0,!1,cy,"User requested reload projects"),this.externalProjects.forEach(t=>{this.clearSemanticCache(t),t.updateGraph()}),this.inferredProjects.forEach(t=>this.clearSemanticCache(t)),this.ensureProjectForOpenFiles(),this.logger.info("After reloading projects.."),this.printProjects()}reloadConfiguredProjectForFiles(t,r,i,s,o){const c=new Map,u=f=>{c.has(f.canonicalConfigFilePath)||(c.set(f.canonicalConfigFilePath,!0),this.reloadConfiguredProject(f,o,!1,r))};t==null||t.forEach((f,g)=>{if(this.configFileForOpenFiles.delete(g),!s(f))return;const d=this.getScriptInfoForPath(g);w.assert(d.isScriptOpen());const y=this.getConfigFileNameForFile(d);if(y){const x=this.findConfiguredProjectByProjectName(y)||this.createConfiguredProject(y);c.has(x.canonicalConfigFilePath)||(c.set(x.canonicalConfigFilePath,!0),i?(x.pendingUpdateLevel=2,x.pendingUpdateReason=o,r&&this.clearSemanticCache(x),this.delayUpdateProjectGraph(x)):(this.reloadConfiguredProject(x,o,!1,r),PC(x,d)||j3(x,d.path,C=>(u(C),PC(C,d)),1)&&j3(x,void 0,u,0)))}})}removeRootOfInferredProjectIfNowPartOfOtherProject(t){w.assert(t.containingProjects.length>0);const r=t.containingProjects[0];!r.isOrphan()&&M3(r)&&r.isRoot(t)&&dt(t.containingProjects,i=>i!==r&&!i.isOrphan())&&r.removeFile(t,!0,!0)}ensureProjectForOpenFiles(){this.logger.info("Before ensureProjectForOpenFiles:"),this.printProjects(),this.openFiles.forEach((t,r)=>{const i=this.getScriptInfoForPath(r);i.isOrphan()?this.assignOrphanScriptInfoToInferredProject(i,t):this.removeRootOfInferredProjectIfNowPartOfOtherProject(i)}),this.pendingEnsureProjectForOpenFiles=!1,this.inferredProjects.forEach(vp),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(t,r,i,s){return this.openClientFileWithNormalizedPath(Ec(t),r,i,!1,s?Ec(s):void 0)}getOriginalLocationEnsuringConfiguredProject(t,r){const i=t.isSourceOfProjectReferenceRedirect(r.fileName),s=i?r:t.getSourceMapper().tryGetSourcePosition(r);if(!s)return;const{fileName:o}=s,c=this.getScriptInfo(o);if(!c&&!this.host.fileExists(o))return;const u={fileName:Ec(o),path:this.toPath(o)},f=this.getConfigFileNameForFile(u);if(!f)return;let g=this.findConfiguredProjectByProjectName(f);if(!g){if(t.getCompilerOptions().disableReferencedProjectLoad)return i?r:c!=null&&c.containingProjects.length?s:r;g=this.createAndLoadConfiguredProject(f,`Creating project for original file: ${u.fileName}${r!==s?" for location: "+r.fileName:""}`)}vp(g);const d=T=>{const C=this.getScriptInfo(o);return C&&PC(T,C)};if(g.isSolution()||!d(g)){if(g=j3(g,o,T=>(vp(T),d(T)?T:void 0),2,`Creating project referenced in solution ${g.projectName} to find possible configured project for original file: ${u.fileName}${r!==s?" for location: "+r.fileName:""}`),!g)return;if(g===t)return s}x(g);const y=this.getScriptInfo(o);if(!y||!y.containingProjects.length)return;return y.containingProjects.forEach(T=>{x2(T)&&x(T)}),s;function x(T){t.originalConfiguredProjects||(t.originalConfiguredProjects=new Set),t.originalConfiguredProjects.add(T.canonicalConfigFilePath)}}fileExists(t){return!!this.getScriptInfoForNormalizedPath(t)||this.host.fileExists(t)}findExternalProjectContainingOpenScriptInfo(t){return Cn(this.externalProjects,r=>(vp(r),r.containsScriptInfo(t)))}getOrCreateOpenScriptInfo(t,r,i,s,o){const c=this.getOrCreateScriptInfoOpenedByClientForNormalizedPath(t,o?this.getNormalizedAbsolutePath(o):this.currentDirectory,r,i,s);return this.openFiles.set(c.path,o),c}assignProjectToOpenedScriptInfo(t){let r,i,s=this.findExternalProjectContainingOpenScriptInfo(t),o,c,u=!1;return!s&&this.serverMode===0&&(r=this.getConfigFileNameForFile(t),r&&(s=this.findConfiguredProjectByProjectName(r),s?vp(s):(s=this.createLoadAndUpdateConfiguredProject(r,`Creating possible configured project for ${t.fileName} to open`),u=!0),c=s.containsScriptInfo(t)?s:void 0,o=s,PC(s,t)||j3(s,t.path,f=>{if(vp(f),Ps(o)?o.push(f):o=[s,f],PC(f,t))return c=f,f;!c&&f.containsScriptInfo(t)&&(c=f)},2,`Creating project referenced in solution ${s.projectName} to find possible configured project for ${t.fileName} to open`),c?(r=c.getConfigFilePath(),(c!==s||u)&&(i=c.getAllProjectErrors(),this.sendConfigFileDiagEvent(c,t.fileName))):r=void 0,this.createAncestorProjects(t,s))),t.containingProjects.forEach(vp),t.isOrphan()&&(Ps(o)?o.forEach(f=>this.sendConfigFileDiagEvent(f,t.fileName)):o&&this.sendConfigFileDiagEvent(o,t.fileName),w.assert(this.openFiles.has(t.path)),this.assignOrphanScriptInfoToInferredProject(t,this.openFiles.get(t.path))),w.assert(!t.isOrphan()),{configFileName:r,configFileErrors:i,retainProjects:o}}createAncestorProjects(t,r){if(t.isAttached(r))for(;;){if(!r.isInitialLoadPending()&&(!r.getCompilerOptions().composite||r.getCompilerOptions().disableSolutionSearching))return;const i=this.getConfigFileNameForFile({fileName:r.getConfigFilePath(),path:t.path,configFileInfo:!0});if(!i)return;const s=this.findConfiguredProjectByProjectName(i)||this.createConfiguredProjectWithDelayLoad(i,`Creating project possibly referencing default composite project ${r.getProjectName()} of open file ${t.fileName}`);s.isInitialLoadPending()&&s.setPotentialProjectReference(r.canonicalConfigFilePath),r=s}}loadAncestorProjectTree(t){t=t||Aa(this.configuredProjects,(i,s)=>s.isInitialLoadPending()?void 0:[i,!0]);const r=new Set;for(const i of Vs(this.configuredProjects.values()))z7e(i,s=>t.has(s))&&vp(i),this.ensureProjectChildren(i,t,r)}ensureProjectChildren(t,r,i){var s;if(!Na(i,t.canonicalConfigFilePath)||t.getCompilerOptions().disableReferencedProjectLoad)return;const o=(s=t.getCurrentProgram())==null?void 0:s.getResolvedProjectReferences();if(o)for(const c of o){if(!c)continue;const u=M$(c.references,d=>r.has(d.sourceFile.path)?d:void 0);if(!u)continue;const f=Ec(c.sourceFile.fileName),g=t.projectService.findConfiguredProjectByProjectName(f)||t.projectService.createAndLoadConfiguredProject(f,`Creating project referenced by : ${t.projectName} as it references project ${u.sourceFile.fileName}`);vp(g),this.ensureProjectChildren(g,r,i)}}cleanupAfterOpeningFile(t){this.removeOrphanConfiguredProjects(t);for(const r of this.inferredProjects.slice())r.isOrphan()&&this.removeProject(r);this.removeOrphanScriptInfos()}openClientFileWithNormalizedPath(t,r,i,s,o){const c=this.getOrCreateOpenScriptInfo(t,r,i,s,o),{retainProjects:u,...f}=this.assignProjectToOpenedScriptInfo(c);return this.cleanupAfterOpeningFile(u),this.telemetryOnOpenFile(c),this.printProjects(),f}removeOrphanConfiguredProjects(t){const r=new Map(this.configuredProjects),i=c=>{!c.isOrphan()&&c.originalConfiguredProjects&&c.originalConfiguredProjects.forEach((u,f)=>{const g=this.getConfiguredProjectByCanonicalConfigFilePath(f);return g&&o(g)})};t&&(Ps(t)?t.forEach(o):o(t)),this.inferredProjects.forEach(i),this.externalProjects.forEach(i),this.configuredProjects.forEach(c=>{c.hasOpenRef()?o(c):r.has(c.canonicalConfigFilePath)&&U7e(c,u=>s(u)&&o(c))}),r.forEach(c=>this.removeProject(c));function s(c){return c.hasOpenRef()||!r.has(c.canonicalConfigFilePath)}function o(c){r.delete(c.canonicalConfigFilePath)&&(i(c),U7e(c,o))}}removeOrphanScriptInfos(){const t=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach(r=>{if(!r.isScriptOpen()&&r.isOrphan()&&!r.isContainedByBackgroundProject()){if(!r.sourceMapFilePath)return;let i;if(Ls(r.sourceMapFilePath)){const s=this.getScriptInfoForPath(r.sourceMapFilePath);i=s&&s.sourceInfos}else i=r.sourceMapFilePath.sourceInfos;if(!i||!Wg(i,s=>{const o=this.getScriptInfoForPath(s);return!!o&&(o.isScriptOpen()||!o.isOrphan())}))return}if(t.delete(r.path),r.sourceMapFilePath){let i;if(Ls(r.sourceMapFilePath)){t.delete(r.sourceMapFilePath);const s=this.getScriptInfoForPath(r.sourceMapFilePath);i=s&&s.sourceInfos}else i=r.sourceMapFilePath.sourceInfos;i&&i.forEach((s,o)=>t.delete(o))}}),t.forEach(r=>{this.stopWatchingScriptInfo(r),this.deleteScriptInfo(r),r.closeSourceMapFileWatcher()})}telemetryOnOpenFile(t){if(this.serverMode!==0||!this.eventHandler||!t.isJavaScript()||!nm(this.allJsFilesForOpenFileTelemetry,t.path))return;const r=this.ensureDefaultProjectForFile(t);if(!r.languageServiceEnabled)return;const i=r.getSourceFile(t.path),s=!!i&&!!i.checkJsDirective;this.eventHandler({eventName:xee,data:{info:{checkJs:s}}})}closeClientFile(t,r){const i=this.getScriptInfoForNormalizedPath(Ec(t)),s=i?this.closeOpenFile(i,r):!1;return r||this.printProjects(),s}collectChanges(t,r,i,s){for(const o of r){const c=Cn(t,u=>u.projectName===o.getProjectName());s.push(o.getChangesSinceVersion(c&&c.version,i))}}synchronizeProjectList(t,r){const i=[];return this.collectChanges(t,this.externalProjects,r,i),this.collectChanges(t,this.configuredProjects.values(),r,i),this.collectChanges(t,this.inferredProjects,r,i),i}applyChangesInOpenFiles(t,r,i){let s,o=!1;if(t)for(const u of t){const f=this.getOrCreateOpenScriptInfo(Ec(u.fileName),u.content,vee(u.scriptKind),u.hasMixedContent,u.projectRootPath?Ec(u.projectRootPath):void 0);(s||(s=[])).push(f)}if(r)for(const u of r){const f=this.getScriptInfo(u.fileName);w.assert(!!f),this.applyChangesToFile(f,u.changes)}if(i)for(const u of i)o=this.closeClientFile(u,!0)||o;let c;s&&(c=Ys(s,u=>this.assignProjectToOpenedScriptInfo(u).retainProjects)),o&&this.assignOrphanScriptInfosToInferredProject(),s?(this.cleanupAfterOpeningFile(c),s.forEach(u=>this.telemetryOnOpenFile(u)),this.printProjects()):Xe(i)&&this.printProjects()}applyChangesToFile(t,r){for(const i of r)t.editContent(i.span.start,i.span.start+i.span.length,i.newText)}closeConfiguredProjectReferencedFromExternalProject(t){t==null||t.forEach(r=>{r.isClosed()||(r.deleteExternalProjectReference(),r.hasOpenRef()||this.removeProject(r))})}closeExternalProject(t,r){const i=Ec(t),s=this.externalProjectToConfiguredProjectMap.get(i);if(s)this.closeConfiguredProjectReferencedFromExternalProject(s),this.externalProjectToConfiguredProjectMap.delete(i);else{const o=this.findExternalProjectByProjectName(t);o&&this.removeProject(o)}r&&this.printProjects()}openExternalProjects(t){const r=ab(this.externalProjects,i=>i.getProjectName(),i=>!0);Wg(this.externalProjectToConfiguredProjectMap,i=>{r.set(i,!0)});for(const i of t)this.openExternalProject(i,!1),r.delete(i.projectFileName);Wg(r,i=>{this.closeExternalProject(i,!1)}),this.printProjects()}static escapeFilenameForRegex(t){return t.replace(this.filenameEscapeRegexp,"\\$&")}resetSafeList(){this.safelist=Tee}applySafeList(t){const r=t.typeAcquisition;w.assert(!!r,"proj.typeAcquisition should be set by now");const i=this.applySafeListWorker(t,t.rootFiles,r);return(i==null?void 0:i.excludedFiles)??[]}applySafeListWorker(t,r,i){if(i.enable===!1||i.disableFilenameBasedTypeAcquisition)return;const s=i.include||(i.include=[]),o=[],c=r.map(y=>t_(y.fileName));for(const y of Object.keys(this.safelist)){const x=this.safelist[y];for(const T of c)if(x.match.test(T)){if(this.logger.info(`Excluding files based on rule ${y} matching file '${T}'`),x.types)for(const C of x.types)s.includes(C)||s.push(C);if(x.exclude)for(const C of x.exclude){const N=T.replace(x.match,(...D)=>C.map(M=>typeof M=="number"?Ls(D[M])?j2e.escapeFilenameForRegex(D[M]):(this.logger.info(`Incorrect RegExp specification in safelist rule ${y} - not enough groups`),"\\*"):M).join(""));o.includes(N)||o.push(N)}else{const C=j2e.escapeFilenameForRegex(T);o.includes(C)||o.push(C)}}}const u=o.map(y=>new RegExp(y,"i"));let f,g;for(let y=0;yx.test(c[y])))d(y);else{if(i.enable){const x=xl(jg(c[y]));if(zc(x,"js")){const T=Y_(x),C=dU(T),N=this.legacySafelist.get(C);if(N!==void 0){this.logger.info(`Excluded '${c[y]}' because it matched ${C} from the legacy safelist`),d(y),s.includes(N)||s.push(N);continue}}}/^.+[.-]min\.js$/.test(c[y])?d(y):f==null||f.push(r[y])}return g?{rootFiles:f,excludedFiles:g}:void 0;function d(y){g||(w.assert(!f),f=r.slice(0,y),g=[]),g.push(c[y])}}openExternalProject(t,r){const i=this.findExternalProjectByProjectName(t.projectFileName),s=this.externalProjectToConfiguredProjectMap.get(t.projectFileName);let o,c=[];for(const u of t.rootFiles){const f=Ec(u.fileName);if(aee(f)){if(this.serverMode===0&&this.host.fileExists(f)){let g=this.findConfiguredProjectByProjectName(f);g||(g=this.getHostPreferences().lazyConfiguredProjectsFromExternalProject?this.createConfiguredProjectWithDelayLoad(f,`Creating configured project in external project: ${t.projectFileName}`):this.createLoadAndUpdateConfiguredProject(f,`Creating configured project in external project: ${t.projectFileName}`)),s!=null&&s.has(g)||g.addExternalProjectReference(),(o??(o=new Set)).add(g),s==null||s.delete(g)}}else c.push(u)}if(o)this.externalProjectToConfiguredProjectMap.set(t.projectFileName,o),i&&this.removeProject(i);else{this.externalProjectToConfiguredProjectMap.delete(t.projectFileName);const u=t.typeAcquisition||{};u.include=u.include||[],u.exclude=u.exclude||[],u.enable===void 0&&(u.enable=Ohe(c.map(d=>d.fileName)));const f=this.applySafeListWorker(t,c,u),g=(f==null?void 0:f.excludedFiles)??[];if(c=(f==null?void 0:f.rootFiles)??c,i){i.excludedFiles=g;const d=VB(t.options),y=m5(t.options,i.getCurrentDirectory()),x=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.projectFileName,d,c,nJ);x?i.disableLanguageService(x):i.enableLanguageService(),i.setProjectErrors(y==null?void 0:y.errors),this.updateRootAndOptionsOfNonInferredProject(i,c,nJ,d,u,t.options.compileOnSave,y==null?void 0:y.watchOptions),i.updateGraph()}else this.createExternalProject(t.projectFileName,c,t.options,u,g).updateGraph()}this.closeConfiguredProjectReferencedFromExternalProject(s),r&&this.printProjects()}hasDeferredExtension(){for(const t of this.hostConfiguration.extraFileExtensions)if(t.scriptKind===7)return!0;return!1}requestEnablePlugin(t,r,i){if(!this.host.importPlugin&&!this.host.require){this.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}if(this.logger.info(`Enabling plugin ${r.name} from candidate paths: ${i.join(",")}`),!r.name||P7(r.name).rest){this.logger.info(`Skipped loading plugin ${r.name||JSON.stringify(r)} because only package name is allowed plugin name`);return}if(this.host.importPlugin){const s=Gx.importServicePluginAsync(r,i,this.host,c=>this.logger.info(c));this.pendingPluginEnablements??(this.pendingPluginEnablements=new Map);let o=this.pendingPluginEnablements.get(t);o||this.pendingPluginEnablements.set(t,o=[]),o.push(s);return}this.endEnablePlugin(t,Gx.importServicePluginSync(r,i,this.host,s=>this.logger.info(s)))}endEnablePlugin(t,{pluginConfigEntry:r,resolvedModule:i,errorLogs:s}){var o;if(i){const c=(o=this.currentPluginConfigOverrides)==null?void 0:o.get(r.name);if(c){const u=r.name;r=c,r.name=u}t.enableProxy(i,r)}else dt(s,c=>this.logger.info(c)),this.logger.info(`Couldn't find ${r.name}`)}hasNewPluginEnablementRequests(){return!!this.pendingPluginEnablements}hasPendingPluginEnablements(){return!!this.currentPluginEnablementPromise}async waitForPendingPlugins(){for(;this.currentPluginEnablementPromise;)await this.currentPluginEnablementPromise}enableRequestedPlugins(){this.pendingPluginEnablements&&this.enableRequestedPluginsAsync()}async enableRequestedPluginsAsync(){if(this.currentPluginEnablementPromise&&await this.waitForPendingPlugins(),!this.pendingPluginEnablements)return;const t=Vs(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(t),await this.currentPluginEnablementPromise}async enableRequestedPluginsWorker(t){w.assert(this.currentPluginEnablementPromise===void 0),await Promise.all(Kt(t,([r,i])=>this.enableRequestedPluginsForProjectAsync(r,i))),this.currentPluginEnablementPromise=void 0,this.sendProjectsUpdatedInBackgroundEvent()}async enableRequestedPluginsForProjectAsync(t,r){const i=await Promise.all(r);if(!t.isClosed()){for(const s of i)this.endEnablePlugin(t,s);this.delayUpdateProjectGraph(t)}}configurePlugin(t){this.forEachEnabledProject(r=>r.onPluginConfigurationChanged(t.pluginName,t.configuration)),this.currentPluginConfigOverrides=this.currentPluginConfigOverrides||new Map,this.currentPluginConfigOverrides.set(t.pluginName,t.configuration)}getPackageJsonsVisibleToFile(t,r,i){const s=this.packageJsonCache,o=i&&this.toPath(i),c=[],u=f=>{switch(s.directoryHasPackageJson(f)){case 3:return s.searchDirectoryAndAncestors(f),u(f);case-1:const g=Zr(f,"package.json");this.watchPackageJsonFile(g,this.toPath(g),r);const d=s.getInDirectory(f);d&&c.push(d)}if(o&&o===f)return!0};return Yd(oi(t),u),c}getNearestAncestorDirectoryWithPackageJson(t){return Yd(t,r=>{switch(this.packageJsonCache.directoryHasPackageJson(r)){case-1:return r;case 0:return;case 3:return this.host.fileExists(Zr(r,"package.json"))?r:void 0}})}watchPackageJsonFile(t,r,i){w.assert(i!==void 0);let s=(this.packageJsonFilesMap??(this.packageJsonFilesMap=new Map)).get(r);if(!s){let o=this.watchFactory.watchFile(t,(c,u)=>{switch(u){case 0:return w.fail();case 1:this.packageJsonCache.addOrUpdate(c,r),this.onPackageJsonChange(s);break;case 2:this.packageJsonCache.delete(r),this.onPackageJsonChange(s),s.projects.clear(),s.close()}},250,this.hostConfiguration.watchOptions,tu.PackageJson);s={projects:new Set,close:()=>{var c;s.projects.size||!o||(o.close(),o=void 0,(c=this.packageJsonFilesMap)==null||c.delete(r),this.packageJsonCache.invalidate(r))}},this.packageJsonFilesMap.set(r,s)}s.projects.add(i),(i.packageJsonWatches??(i.packageJsonWatches=new Set)).add(s)}onPackageJsonChange(t){t.projects.forEach(r=>{var i;return(i=r.onPackageJsonChange)==null?void 0:i.call(r)})}includePackageJsonAutoImports(){switch(this.hostConfiguration.preferences.includePackageJsonAutoImports){case"on":return 1;case"off":return 0;default:return 2}}getIncompleteCompletionsCache(){return this.incompleteCompletionsCache||(this.incompleteCompletionsCache=Zct())}},qhe.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g,Eee=qhe}});function Hhe(e){let t,r,i;const s={get(f,g,d,y){if(!(!r||i!==c(f,d,y)))return r.get(g)},set(f,g,d,y,x,T){if(o(f,d,y).set(g,u(x,T,!1)),T){for(const C of x)if(C.isInNodeModules){const N=C.path.substring(0,C.path.indexOf(th)+th.length-1),D=e.toPath(N);t!=null&&t.has(D)||(t||(t=new Map)).set(D,e.watchNodeModulesForPackageJsonChanges(N))}}},setModulePaths(f,g,d,y,x){const T=o(f,d,y),C=T.get(g);C?C.modulePaths=x:T.set(g,u(x,void 0,void 0))},setBlockedByPackageJsonDependencies(f,g,d,y,x){const T=o(f,d,y),C=T.get(g);C?C.isBlockedByPackageJsonDependencies=x:T.set(g,u(void 0,void 0,x))},clear(){t==null||t.forEach(Cm),r==null||r.clear(),t==null||t.clear(),i=void 0},count(){return r?r.size:0}};return w.isDebugging&&Object.defineProperty(s,"__cache",{get:()=>r}),s;function o(f,g,d){const y=c(f,g,d);return r&&i!==y&&s.clear(),i=y,r||(r=new Map)}function c(f,g,d){return`${f},${g.importModuleSpecifierEnding},${g.importModuleSpecifierPreference},${d.overrideImportMode}`}function u(f,g,d){return{modulePaths:f,moduleSpecifiers:g,isBlockedByPackageJsonDependencies:d}}}var elt=K({"src/server/moduleSpecifierCache.ts"(){V1()}});function Ghe(e){const t=new Map,r=new Map;return{addOrUpdate:i,invalidate:s,delete:c=>{t.delete(c),r.set(oi(c),!0)},getInDirectory:c=>t.get(e.toPath(Zr(c,"package.json")))||void 0,directoryHasPackageJson:c=>o(e.toPath(c)),searchDirectoryAndAncestors:c=>{Yd(c,u=>{const f=e.toPath(u);if(o(f)!==3)return!0;const g=Zr(u,"package.json");xI(e,g)?i(g,Zr(f,"package.json")):r.set(f,!0)})}};function i(c,u){const f=w.checkDefined(IQ(c,e.host));t.set(u,f),r.delete(oi(u))}function s(c){t.delete(c),r.delete(oi(c))}function o(c){return t.has(Zr(c,"package.json"))?-1:r.has(c)?0:3}}var tlt=K({"src/server/packageJsonCache.ts"(){V1()}});function nlt(e){const t=e[0],r=e[1];return(1e9*t+r)/1e6}function G7e(e,t){if((M3(e)||pee(e))&&e.isJsOnlyProject()){const r=e.getScriptInfoForNormalizedPath(t);return r&&!r.isJavaScript()}return!1}function rlt(e){return rd(e)||!!e.emitDecoratorMetadata}function $7e(e,t,r){const i=t.getScriptInfoForNormalizedPath(e);return{start:i.positionToLineOffset(r.start),end:i.positionToLineOffset(r.start+r.length),text:fg(r.messageText,` +`),code:r.code,category:GS(r),reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated,source:r.source,relatedInformation:Kt(r.relatedInformation,Pee)}}function Pee(e){return e.file?{span:{start:h5(Ao(e.file,e.start)),end:h5(Ao(e.file,e.start+e.length)),file:e.file.fileName},message:fg(e.messageText,` +`),category:GS(e),code:e.code}:{message:fg(e.messageText,` +`),category:GS(e),code:e.code}}function h5(e){return{line:e.line+1,offset:e.character+1}}function y5(e,t){const r=e.file&&h5(Ao(e.file,e.start)),i=e.file&&h5(Ao(e.file,e.start+e.length)),s=fg(e.messageText,` +`),{code:o,source:c}=e,u=GS(e),f={start:r,end:i,text:s,code:o,category:u,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,source:c,relatedInformation:Kt(e.relatedInformation,Pee)};return t?{...f,fileName:e.file&&e.file.fileName}:f}function ilt(e,t){return e.every(r=>pl(r.span)i(o,e));return!Ps(r)&&r.symLinkedProjects&&r.symLinkedProjects.forEach((o,c)=>{const u=t(c);s.push(...Ys(o,f=>i(f,u)))}),ks(s,ly)}function wee(e){return fU(({textSpan:t})=>t.start+100003*t.length,hQ(e))}function alt(e,t,r,i,s,o,c){const u=X7e(e,t,r,!0,(d,y)=>d.getLanguageService().findRenameLocations(y.fileName,y.pos,i,s,o),(d,y)=>y(ID(d)));if(Ps(u))return u;const f=[],g=wee(c);return u.forEach((d,y)=>{for(const x of d)!g.has(x)&&!Dee(ID(x),y)&&(f.push(x),g.add(x))}),f}function olt(e,t,r){const i=e.getLanguageService().getDefinitionAtPosition(t.fileName,t.pos,!1,r),s=i&&hu(i);return s&&!s.isLocal?{fileName:s.fileName,pos:s.textSpan.start}:void 0}function clt(e,t,r,i,s){var o,c;const u=X7e(e,t,r,!1,(y,x)=>(s.info(`Finding references to ${x.fileName} position ${x.pos} in project ${y.getProjectName()}`),y.getLanguageService().findReferences(x.fileName,x.pos)),(y,x)=>{x(ID(y.definition));for(const T of y.references)x(ID(T))});if(Ps(u))return u;const f=u.get(t);if(((c=(o=f==null?void 0:f[0])==null?void 0:o.references[0])==null?void 0:c.isDefinition)===void 0)u.forEach(y=>{for(const x of y)for(const T of x.references)delete T.isDefinition});else{const y=wee(i);for(const T of f)for(const C of T.references)if(C.isDefinition){y.add(C);break}const x=new Set;for(;;){let T=!1;if(u.forEach((C,N)=>{if(x.has(N))return;N.getLanguageService().updateIsDefinitionOfReferencedSymbols(C,y)&&(x.add(N),T=!0)}),!T)break}u.forEach((T,C)=>{if(!x.has(C))for(const N of T)for(const D of N.references)D.isDefinition=!1})}const g=[],d=wee(i);return u.forEach((y,x)=>{for(const T of y){const C=Dee(ID(T.definition),x),N=C===void 0?T.definition:{...T.definition,textSpan:Ju(C.pos,T.definition.textSpan.length),fileName:C.fileName,contextSpan:_lt(T.definition,x)};let D=Cn(g,M=>gQ(M.definition,N,i));D||(D={definition:N,references:[]},g.push(D));for(const M of T.references)!d.has(M)&&!Dee(ID(M),x)&&(d.add(M),D.references.push(M))}}),g.filter(y=>y.references.length!==0)}function Qhe(e,t,r){for(const i of Ps(e)?e:e.projects)r(i,t);!Ps(e)&&e.symLinkedProjects&&e.symLinkedProjects.forEach((i,s)=>{for(const o of i)r(o,s)})}function X7e(e,t,r,i,s,o){const c=new Map,u=R8();u.enqueue({project:t,location:r}),Qhe(e,r.fileName,(N,D)=>{const M={fileName:D,pos:r.pos};u.enqueue({project:N,location:M})});const f=t.projectService,g=t.getCancellationToken(),d=olt(t,r,i),y=X_(()=>t.isSourceOfProjectReferenceRedirect(d.fileName)?d:t.getLanguageService().getSourceMapper().tryGetGeneratedPosition(d)),x=X_(()=>t.isSourceOfProjectReferenceRedirect(d.fileName)?d:t.getLanguageService().getSourceMapper().tryGetSourcePosition(d)),T=new Set;e:for(;!u.isEmpty();){for(;!u.isEmpty();){if(g.isCancellationRequested())break e;const{project:N,location:D}=u.dequeue();if(c.has(N)||Q7e(N,D)||(vp(N),!N.containsFile(Ec(D.fileName))))continue;const M=C(N,D);c.set(N,M??Rl),T.add(ult(N))}d&&(f.loadAncestorProjectTree(T),f.forEachEnabledProject(N=>{if(g.isCancellationRequested()||c.has(N))return;const D=llt(d,N,y,x);D&&u.enqueue({project:N,location:D})}))}if(c.size===1)return oU(c.values());return c;function C(N,D){const M=s(N,D);if(M){for(const V of M)o(V,G=>{const Z=f.getOriginalLocationEnsuringConfiguredProject(N,G);if(!Z)return;const z=f.getScriptInfo(Z.fileName);for(const J of z.containingProjects)!J.isOrphan()&&!c.has(J)&&u.enqueue({project:J,location:Z});const ce=f.getSymlinkedProjects(z);ce&&ce.forEach((J,ne)=>{for(const ge of J)!ge.isOrphan()&&!c.has(ge)&&u.enqueue({project:ge,location:{fileName:ne,pos:Z.pos}})})});return M}}}function llt(e,t,r,i){if(t.containsFile(Ec(e.fileName))&&!Q7e(t,e))return e;const s=r();if(s&&t.containsFile(Ec(s.fileName)))return s;const o=i();return o&&t.containsFile(Ec(o.fileName))?o:void 0}function Q7e(e,t){if(!t)return!1;const r=e.getLanguageService().getProgram();if(!r)return!1;const i=r.getSourceFile(t.fileName);return!!i&&i.resolvedPath!==i.path&&i.resolvedPath!==e.toPath(t.fileName)}function ult(e){return x2(e)?e.canonicalConfigFilePath:e.getProjectName()}function ID({fileName:e,textSpan:t}){return{fileName:e,pos:t.start}}function Dee(e,t){return _D(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function Y7e(e,t){return dj(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function _lt(e,t){return vQ(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function ih(e,t){return{start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(pl(e))}}function Yhe(e,t,r){const i=ih(e,r),s=t&&ih(t,r);return s?{...i,contextStart:s.start,contextEnd:s.end}:i}function flt(e,t){return{start:Z7e(t,e.span.start),end:Z7e(t,pl(e.span)),newText:e.newText}}function Z7e(e,t){return Uhe(e)?dlt(e.getLineAndCharacterOfPosition(t)):e.positionToLineOffset(t)}function plt(e,t){const r=e.ranges.map(i=>({start:t.positionToLineOffset(i.start),end:t.positionToLineOffset(i.start+i.length)}));return e.wordPattern?{ranges:r,wordPattern:e.wordPattern}:{ranges:r}}function dlt(e){return{line:e.line+1,offset:e.character+1}}function mlt(e){w.assert(e.textChanges.length===1);const t=Ka(e.textChanges);return w.assert(t.span.start===0&&t.span.length===0),{fileName:e.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:t.newText}]}}function Zhe(e,t,r,i){const s=glt(e,t,i),{line:o,character:c}=L6(_k(s),r);return{line:o+1,offset:c+1}}function glt(e,t,r){for(const{fileName:i,textChanges:s}of r)if(i===t)for(let o=s.length-1;o>=0;o--){const{newText:c,span:{start:u,length:f}}=s[o];e=e.slice(0,u)+c+e.slice(u+f)}return e}function K7e(e,{fileName:t,textSpan:r,contextSpan:i,isWriteAccess:s,isDefinition:o},{disableLineTextInReferences:c}){const u=w.checkDefined(e.getScriptInfo(t)),f=Yhe(r,i,u),g=c?void 0:hlt(u,f);return{file:t,...f,lineText:g,isWriteAccess:s,isDefinition:o}}function hlt(e,t){const r=e.lineToTextSpan(t.start.line-1);return e.getSnapshot().getText(r.start,pl(r)).replace(/\r|\n/g,"")}function ylt(e){return e===void 0||e&&typeof e=="object"&&typeof e.exportName=="string"&&(e.fileName===void 0||typeof e.fileName=="string")&&(e.ambientModuleName===void 0||typeof e.ambientModuleName=="string"&&(e.isPackageJsonImport===void 0||typeof e.isPackageJsonImport=="boolean"))}var Khe,e0e,eIe,t0e,tIe,n0e,vlt=K({"src/server/session.ts"(){V1(),$x(),Dhe(),Khe={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}},e0e=lee,eIe=class{constructor(e){this.operationHost=e}startNew(e){this.complete(),this.requestId=this.operationHost.getCurrentRequestId(),this.executeAction(e)}complete(){this.requestId!==void 0&&(this.operationHost.sendRequestCompletedEvent(this.requestId),this.requestId=void 0),this.setTimerHandle(void 0),this.setImmediateId(void 0)}immediate(e,t){const r=this.requestId;w.assert(r===this.operationHost.getCurrentRequestId(),"immediate: incorrect request id"),this.setImmediateId(this.operationHost.getServerHost().setImmediate(()=>{this.immediateId=void 0,this.operationHost.executeWithRequestId(r,()=>this.executeAction(t))},e))}delay(e,t,r){const i=this.requestId;w.assert(i===this.operationHost.getCurrentRequestId(),"delay: incorrect request id"),this.setTimerHandle(this.operationHost.getServerHost().setTimeout(()=>{this.timerHandle=void 0,this.operationHost.executeWithRequestId(i,()=>this.executeAction(r))},t,e))}executeAction(e){var t,r,i,s,o,c;let u=!1;try{this.operationHost.isCancellationRequested()?(u=!0,(t=cr)==null||t.instant(cr.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):((r=cr)==null||r.push(cr.Phase.Session,"stepAction",{seq:this.requestId}),e(this),(i=cr)==null||i.pop())}catch(f){(s=cr)==null||s.popAll(),u=!0,f instanceof I6?(o=cr)==null||o.instant(cr.Phase.Session,"stepCanceled",{seq:this.requestId}):((c=cr)==null||c.instant(cr.Phase.Session,"stepError",{seq:this.requestId,message:f.message}),this.operationHost.logError(f,`delayed processing of request ${this.requestId}`))}(u||!this.hasPendingWork())&&this.complete()}setTimerHandle(e){this.timerHandle!==void 0&&this.operationHost.getServerHost().clearTimeout(this.timerHandle),this.timerHandle=e}setImmediateId(e){this.immediateId!==void 0&&this.operationHost.getServerHost().clearImmediate(this.immediateId),this.immediateId=e}hasPendingWork(){return!!this.timerHandle||!!this.immediateId}},t0e=["openExternalProject","openExternalProjects","closeExternalProject","synchronizeProjectList","emit-output","compileOnSaveAffectedFileList","compileOnSaveEmitFile","compilerOptionsDiagnostics-full","encodedSemanticClassifications-full","semanticDiagnosticsSync","suggestionDiagnosticsSync","geterrForProject","reload","reloadProjects","getCodeFixes","getCodeFixes-full","getCombinedCodeFix","getCombinedCodeFix-full","applyCodeActionCommand","getSupportedCodeFixes","getApplicableRefactors","getMoveToRefactoringFileSuggestions","getEditsForRefactor","getEditsForRefactor-full","organizeImports","organizeImports-full","getEditsForFileRename","getEditsForFileRename-full","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls"],tIe=[...t0e,"definition","definition-full","definitionAndBoundSpan","definitionAndBoundSpan-full","typeDefinition","implementation","implementation-full","references","references-full","rename","renameLocations-full","rename-full","quickinfo","quickinfo-full","completionInfo","completions","completions-full","completionEntryDetails","completionEntryDetails-full","signatureHelp","signatureHelp-full","navto","navto-full","documentHighlights","documentHighlights-full"],n0e=class Vne{constructor(t){this.changeSeq=0,this.handlers=new Map(Object.entries({status:()=>{const o={version:wt};return this.requiredResponse(o)},openExternalProject:o=>(this.projectService.openExternalProject(o.arguments,!0),this.requiredResponse(!0)),openExternalProjects:o=>(this.projectService.openExternalProjects(o.arguments.projects),this.requiredResponse(!0)),closeExternalProject:o=>(this.projectService.closeExternalProject(o.arguments.projectFileName,!0),this.requiredResponse(!0)),synchronizeProjectList:o=>{const c=this.projectService.synchronizeProjectList(o.arguments.knownProjects,o.arguments.includeProjectReferenceRedirectInfo);if(!c.some(f=>f.projectErrors&&f.projectErrors.length!==0))return this.requiredResponse(c);const u=Kt(c,f=>!f.projectErrors||f.projectErrors.length===0?f:{info:f.info,changes:f.changes,files:f.files,projectErrors:this.convertToDiagnosticsWithLinePosition(f.projectErrors,void 0)});return this.requiredResponse(u)},updateOpen:o=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(o.arguments.openFiles&&Nl(o.arguments.openFiles,c=>({fileName:c.file,content:c.fileContent,scriptKind:c.scriptKindName,projectRootPath:c.projectRootPath})),o.arguments.changedFiles&&Nl(o.arguments.changedFiles,c=>({fileName:c.fileName,changes:xi(sU(c.textChanges),u=>{const f=w.checkDefined(this.projectService.getScriptInfo(c.fileName)),g=f.lineOffsetToPosition(u.start.line,u.start.offset),d=f.lineOffsetToPosition(u.end.line,u.end.offset);return g>=0?{span:{start:g,length:d-g},newText:u.newText}:void 0})})),o.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:o=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(o.arguments.openFiles,o.arguments.changedFiles&&Nl(o.arguments.changedFiles,c=>({fileName:c.fileName,changes:sU(c.changes)})),o.arguments.closedFiles),this.requiredResponse(!0)),exit:()=>(this.exit(),this.notRequired()),definition:o=>this.requiredResponse(this.getDefinition(o.arguments,!0)),"definition-full":o=>this.requiredResponse(this.getDefinition(o.arguments,!1)),definitionAndBoundSpan:o=>this.requiredResponse(this.getDefinitionAndBoundSpan(o.arguments,!0)),"definitionAndBoundSpan-full":o=>this.requiredResponse(this.getDefinitionAndBoundSpan(o.arguments,!1)),findSourceDefinition:o=>this.requiredResponse(this.findSourceDefinition(o.arguments)),"emit-output":o=>this.requiredResponse(this.getEmitOutput(o.arguments)),typeDefinition:o=>this.requiredResponse(this.getTypeDefinition(o.arguments)),implementation:o=>this.requiredResponse(this.getImplementation(o.arguments,!0)),"implementation-full":o=>this.requiredResponse(this.getImplementation(o.arguments,!1)),references:o=>this.requiredResponse(this.getReferences(o.arguments,!0)),"references-full":o=>this.requiredResponse(this.getReferences(o.arguments,!1)),rename:o=>this.requiredResponse(this.getRenameLocations(o.arguments,!0)),"renameLocations-full":o=>this.requiredResponse(this.getRenameLocations(o.arguments,!1)),"rename-full":o=>this.requiredResponse(this.getRenameInfo(o.arguments)),open:o=>(this.openClientFile(Ec(o.arguments.file),o.arguments.fileContent,bee(o.arguments.scriptKindName),o.arguments.projectRootPath?Ec(o.arguments.projectRootPath):void 0),this.notRequired()),quickinfo:o=>this.requiredResponse(this.getQuickInfoWorker(o.arguments,!0)),"quickinfo-full":o=>this.requiredResponse(this.getQuickInfoWorker(o.arguments,!1)),getOutliningSpans:o=>this.requiredResponse(this.getOutliningSpans(o.arguments,!0)),outliningSpans:o=>this.requiredResponse(this.getOutliningSpans(o.arguments,!1)),todoComments:o=>this.requiredResponse(this.getTodoComments(o.arguments)),indentation:o=>this.requiredResponse(this.getIndentation(o.arguments)),nameOrDottedNameSpan:o=>this.requiredResponse(this.getNameOrDottedNameSpan(o.arguments)),breakpointStatement:o=>this.requiredResponse(this.getBreakpointStatement(o.arguments)),braceCompletion:o=>this.requiredResponse(this.isValidBraceCompletion(o.arguments)),docCommentTemplate:o=>this.requiredResponse(this.getDocCommentTemplate(o.arguments)),getSpanOfEnclosingComment:o=>this.requiredResponse(this.getSpanOfEnclosingComment(o.arguments)),fileReferences:o=>this.requiredResponse(this.getFileReferences(o.arguments,!0)),"fileReferences-full":o=>this.requiredResponse(this.getFileReferences(o.arguments,!1)),format:o=>this.requiredResponse(this.getFormattingEditsForRange(o.arguments)),formatonkey:o=>this.requiredResponse(this.getFormattingEditsAfterKeystroke(o.arguments)),"format-full":o=>this.requiredResponse(this.getFormattingEditsForDocumentFull(o.arguments)),"formatonkey-full":o=>this.requiredResponse(this.getFormattingEditsAfterKeystrokeFull(o.arguments)),"formatRange-full":o=>this.requiredResponse(this.getFormattingEditsForRangeFull(o.arguments)),completionInfo:o=>this.requiredResponse(this.getCompletions(o.arguments,"completionInfo")),completions:o=>this.requiredResponse(this.getCompletions(o.arguments,"completions")),"completions-full":o=>this.requiredResponse(this.getCompletions(o.arguments,"completions-full")),completionEntryDetails:o=>this.requiredResponse(this.getCompletionEntryDetails(o.arguments,!1)),"completionEntryDetails-full":o=>this.requiredResponse(this.getCompletionEntryDetails(o.arguments,!0)),compileOnSaveAffectedFileList:o=>this.requiredResponse(this.getCompileOnSaveAffectedFileList(o.arguments)),compileOnSaveEmitFile:o=>this.requiredResponse(this.emitFile(o.arguments)),signatureHelp:o=>this.requiredResponse(this.getSignatureHelpItems(o.arguments,!0)),"signatureHelp-full":o=>this.requiredResponse(this.getSignatureHelpItems(o.arguments,!1)),"compilerOptionsDiagnostics-full":o=>this.requiredResponse(this.getCompilerOptionsDiagnostics(o.arguments)),"encodedSyntacticClassifications-full":o=>this.requiredResponse(this.getEncodedSyntacticClassifications(o.arguments)),"encodedSemanticClassifications-full":o=>this.requiredResponse(this.getEncodedSemanticClassifications(o.arguments)),cleanup:()=>(this.cleanup(),this.requiredResponse(!0)),semanticDiagnosticsSync:o=>this.requiredResponse(this.getSemanticDiagnosticsSync(o.arguments)),syntacticDiagnosticsSync:o=>this.requiredResponse(this.getSyntacticDiagnosticsSync(o.arguments)),suggestionDiagnosticsSync:o=>this.requiredResponse(this.getSuggestionDiagnosticsSync(o.arguments)),geterr:o=>(this.errorCheck.startNew(c=>this.getDiagnostics(c,o.arguments.delay,o.arguments.files)),this.notRequired()),geterrForProject:o=>(this.errorCheck.startNew(c=>this.getDiagnosticsForProject(c,o.arguments.delay,o.arguments.file)),this.notRequired()),change:o=>(this.change(o.arguments),this.notRequired()),configure:o=>(this.projectService.setHostConfiguration(o.arguments),this.doOutput(void 0,"configure",o.seq,!0),this.notRequired()),reload:o=>(this.reload(o.arguments,o.seq),this.requiredResponse({reloadFinished:!0})),saveto:o=>{const c=o.arguments;return this.saveToTmp(c.file,c.tmpfile),this.notRequired()},close:o=>{const c=o.arguments;return this.closeClientFile(c.file),this.notRequired()},navto:o=>this.requiredResponse(this.getNavigateToItems(o.arguments,!0)),"navto-full":o=>this.requiredResponse(this.getNavigateToItems(o.arguments,!1)),brace:o=>this.requiredResponse(this.getBraceMatching(o.arguments,!0)),"brace-full":o=>this.requiredResponse(this.getBraceMatching(o.arguments,!1)),navbar:o=>this.requiredResponse(this.getNavigationBarItems(o.arguments,!0)),"navbar-full":o=>this.requiredResponse(this.getNavigationBarItems(o.arguments,!1)),navtree:o=>this.requiredResponse(this.getNavigationTree(o.arguments,!0)),"navtree-full":o=>this.requiredResponse(this.getNavigationTree(o.arguments,!1)),documentHighlights:o=>this.requiredResponse(this.getDocumentHighlights(o.arguments,!0)),"documentHighlights-full":o=>this.requiredResponse(this.getDocumentHighlights(o.arguments,!1)),compilerOptionsForInferredProjects:o=>(this.setCompilerOptionsForInferredProjects(o.arguments),this.requiredResponse(!0)),projectInfo:o=>this.requiredResponse(this.getProjectInfo(o.arguments)),reloadProjects:()=>(this.projectService.reloadProjects(),this.notRequired()),jsxClosingTag:o=>this.requiredResponse(this.getJsxClosingTag(o.arguments)),linkedEditingRange:o=>this.requiredResponse(this.getLinkedEditingRange(o.arguments)),getCodeFixes:o=>this.requiredResponse(this.getCodeFixes(o.arguments,!0)),"getCodeFixes-full":o=>this.requiredResponse(this.getCodeFixes(o.arguments,!1)),getCombinedCodeFix:o=>this.requiredResponse(this.getCombinedCodeFix(o.arguments,!0)),"getCombinedCodeFix-full":o=>this.requiredResponse(this.getCombinedCodeFix(o.arguments,!1)),applyCodeActionCommand:o=>this.requiredResponse(this.applyCodeActionCommand(o.arguments)),getSupportedCodeFixes:o=>this.requiredResponse(this.getSupportedCodeFixes(o.arguments)),getApplicableRefactors:o=>this.requiredResponse(this.getApplicableRefactors(o.arguments)),getEditsForRefactor:o=>this.requiredResponse(this.getEditsForRefactor(o.arguments,!0)),getMoveToRefactoringFileSuggestions:o=>this.requiredResponse(this.getMoveToRefactoringFileSuggestions(o.arguments)),"getEditsForRefactor-full":o=>this.requiredResponse(this.getEditsForRefactor(o.arguments,!1)),organizeImports:o=>this.requiredResponse(this.organizeImports(o.arguments,!0)),"organizeImports-full":o=>this.requiredResponse(this.organizeImports(o.arguments,!1)),getEditsForFileRename:o=>this.requiredResponse(this.getEditsForFileRename(o.arguments,!0)),"getEditsForFileRename-full":o=>this.requiredResponse(this.getEditsForFileRename(o.arguments,!1)),configurePlugin:o=>(this.configurePlugin(o.arguments),this.doOutput(void 0,"configurePlugin",o.seq,!0),this.notRequired()),selectionRange:o=>this.requiredResponse(this.getSmartSelectionRange(o.arguments,!0)),"selectionRange-full":o=>this.requiredResponse(this.getSmartSelectionRange(o.arguments,!1)),prepareCallHierarchy:o=>this.requiredResponse(this.prepareCallHierarchy(o.arguments)),provideCallHierarchyIncomingCalls:o=>this.requiredResponse(this.provideCallHierarchyIncomingCalls(o.arguments)),provideCallHierarchyOutgoingCalls:o=>this.requiredResponse(this.provideCallHierarchyOutgoingCalls(o.arguments)),toggleLineComment:o=>this.requiredResponse(this.toggleLineComment(o.arguments,!0)),"toggleLineComment-full":o=>this.requiredResponse(this.toggleLineComment(o.arguments,!1)),toggleMultilineComment:o=>this.requiredResponse(this.toggleMultilineComment(o.arguments,!0)),"toggleMultilineComment-full":o=>this.requiredResponse(this.toggleMultilineComment(o.arguments,!1)),commentSelection:o=>this.requiredResponse(this.commentSelection(o.arguments,!0)),"commentSelection-full":o=>this.requiredResponse(this.commentSelection(o.arguments,!1)),uncommentSelection:o=>this.requiredResponse(this.uncommentSelection(o.arguments,!0)),"uncommentSelection-full":o=>this.requiredResponse(this.uncommentSelection(o.arguments,!1)),provideInlayHints:o=>this.requiredResponse(this.provideInlayHints(o.arguments))})),this.host=t.host,this.cancellationToken=t.cancellationToken,this.typingsInstaller=t.typingsInstaller||zB,this.byteLength=t.byteLength,this.hrtime=t.hrtime,this.logger=t.logger,this.canUseEvents=t.canUseEvents,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.noGetErrOnBackgroundUpdate=t.noGetErrOnBackgroundUpdate;const{throttleWaitMilliseconds:r}=t;this.eventHandler=this.canUseEvents?t.eventHandler||(o=>this.defaultEventHandler(o)):void 0;const i={executeWithRequestId:(o,c)=>this.executeWithRequestId(o,c),getCurrentRequestId:()=>this.currentRequestId,getServerHost:()=>this.host,logError:(o,c)=>this.logError(o,c),sendRequestCompletedEvent:o=>this.sendRequestCompletedEvent(o),isCancellationRequested:()=>this.cancellationToken.isCancellationRequested()};this.errorCheck=new eIe(i);const s={host:this.host,logger:this.logger,cancellationToken:this.cancellationToken,useSingleInferredProject:t.useSingleInferredProject,useInferredProjectPerProjectRoot:t.useInferredProjectPerProjectRoot,typingsInstaller:this.typingsInstaller,throttleWaitMilliseconds:r,eventHandler:this.eventHandler,suppressDiagnosticEvents:this.suppressDiagnosticEvents,globalPlugins:t.globalPlugins,pluginProbeLocations:t.pluginProbeLocations,allowLocalPluginLoads:t.allowLocalPluginLoads,typesMapLocation:t.typesMapLocation,serverMode:t.serverMode,session:this,canUseWatchEvents:t.canUseWatchEvents,incrementalVerifier:t.incrementalVerifier};switch(this.projectService=new Eee(s),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new cee(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:t0e.forEach(o=>this.handlers.set(o,c=>{throw new Error(`Request: ${c.command} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:tIe.forEach(o=>this.handlers.set(o,c=>{throw new Error(`Request: ${c.command} not allowed in LanguageServiceMode.Syntactic`)}));break;default:w.assertNever(this.projectService.serverMode)}}sendRequestCompletedEvent(t){this.event({request_seq:t},"requestCompleted")}addPerformanceData(t,r){this.performanceData||(this.performanceData={}),this.performanceData[t]=(this.performanceData[t]??0)+r}performanceEventHandler(t){switch(t.kind){case"UpdateGraph":this.addPerformanceData("updateGraphDurationMs",t.durationMs);break;case"CreatePackageJsonAutoImportProvider":this.addPerformanceData("createAutoImportProviderProgramDurationMs",t.durationMs);break}}defaultEventHandler(t){switch(t.eventName){case g5:this.projectsUpdatedInBackgroundEvent(t.data.openFiles);break;case HB:this.event({projectName:t.data.project.getProjectName(),reason:t.data.reason},t.eventName);break;case GB:this.event({projectName:t.data.project.getProjectName()},t.eventName);break;case $B:case ZB:case KB:case eJ:this.event(t.data,t.eventName);break;case XB:this.event({triggerFile:t.data.triggerFile,configFile:t.data.configFileName,diagnostics:Kt(t.data.diagnostics,r=>y5(r,!0))},t.eventName);break;case QB:{this.event({projectName:t.data.project.getProjectName(),languageServiceEnabled:t.data.languageServiceEnabled},t.eventName);break}case YB:{this.event({telemetryEventName:t.eventName,payload:t.data},"telemetry");break}}}projectsUpdatedInBackgroundEvent(t){this.projectService.logger.info(`got projects updated in background ${t}`),t.length&&(!this.suppressDiagnosticEvents&&!this.noGetErrOnBackgroundUpdate&&(this.projectService.logger.info(`Queueing diagnostics update for ${t}`),this.errorCheck.startNew(r=>this.updateErrorCheck(r,t,100,!0))),this.event({openFiles:t},g5))}logError(t,r){this.logErrorWorker(t,r)}logErrorWorker(t,r,i){let s="Exception on executing command "+r;if(t.message&&(s+=`: +`+iD(t.message),t.stack&&(s+=` +`+iD(t.stack))),this.logger.hasLevel(3)){if(i)try{const{file:o,project:c}=this.getFileAndProject(i),u=c.getScriptInfoForNormalizedPath(o);if(u){const f=d3(u.getSnapshot());s+=` + +File text of ${i.file}:${iD(f)} +`}}catch{}if(t.ProgramFiles){s+=` + +Program files: ${JSON.stringify(t.ProgramFiles)} +`,s+=` + +Projects:: +`;let o=0;const c=u=>{s+=` +Project '${u.projectName}' (${ND[u.projectKind]}) ${o} +`,s+=u.filesToString(!0),s+=` +----------------------------------------------- +`,o++};this.projectService.externalProjects.forEach(c),this.projectService.configuredProjects.forEach(c),this.projectService.inferredProjects.forEach(c)}}this.logger.msg(s,"Err")}send(t){if(t.type==="event"&&!this.canUseEvents){this.logger.hasLevel(3)&&this.logger.info(`Session does not support events: ignored event: ${g2(t)}`);return}this.writeMessage(t)}writeMessage(t){var r;const i=$he(t,this.logger,this.byteLength,this.host.newLine);(r=A_)==null||r.logEvent(`Response message size: ${i.length}`),this.host.write(i)}event(t,r){this.send(Xhe(r,t))}doOutput(t,r,i,s,o){const c={seq:0,type:"response",command:r,request_seq:i,success:s,performanceData:this.performanceData};if(s){let u;if(Ps(t))c.body=t,u=t.metadata,delete t.metadata;else if(typeof t=="object")if(t.metadata){const{metadata:f,...g}=t;c.body=g,u=f}else c.body=t;else c.body=t;u&&(c.metadata=u)}else w.assert(t===void 0);o&&(c.message=o),this.send(c)}semanticCheck(t,r){var i,s;(i=cr)==null||i.push(cr.Phase.Session,"semanticCheck",{file:t,configFilePath:r.canonicalConfigFilePath});const o=G7e(r,t)?Rl:r.getLanguageService().getSemanticDiagnostics(t).filter(c=>!!c.file);this.sendDiagnosticsEvent(t,r,o,"semanticDiag"),(s=cr)==null||s.pop()}syntacticCheck(t,r){var i,s;(i=cr)==null||i.push(cr.Phase.Session,"syntacticCheck",{file:t,configFilePath:r.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,r,r.getLanguageService().getSyntacticDiagnostics(t),"syntaxDiag"),(s=cr)==null||s.pop()}suggestionCheck(t,r){var i,s;(i=cr)==null||i.push(cr.Phase.Session,"suggestionCheck",{file:t,configFilePath:r.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,r,r.getLanguageService().getSuggestionDiagnostics(t),"suggestionDiag"),(s=cr)==null||s.pop()}sendDiagnosticsEvent(t,r,i,s){try{this.event({file:t,diagnostics:i.map(o=>$7e(t,r,o))},s)}catch(o){this.logError(o,s)}}updateErrorCheck(t,r,i,s=!0){w.assert(!this.suppressDiagnosticEvents);const o=this.changeSeq,c=Math.min(i,200);let u=0;const f=()=>{u++,r.length>u&&t.delay("checkOne",c,g)},g=()=>{if(this.changeSeq!==o)return;let d=r[u];if(Ls(d)&&(d=this.toPendingErrorCheck(d),!d)){f();return}const{fileName:y,project:x}=d;if(vp(x),!!x.containsFile(y,s)&&(this.syntacticCheck(y,x),this.changeSeq===o)){if(x.projectService.serverMode!==0){f();return}t.immediate("semanticCheck",()=>{if(this.semanticCheck(y,x),this.changeSeq===o){if(this.getPreferences(y).disableSuggestions){f();return}t.immediate("suggestionCheck",()=>{this.suggestionCheck(y,x),f()})}})}};r.length>u&&this.changeSeq===o&&t.delay("checkOne",i,g)}cleanProjects(t,r){if(r){this.logger.info(`cleaning ${t}`);for(const i of r)i.getLanguageService(!1).cleanupSemanticCache(),i.cleanupProgram()}}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",Vs(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t);return i.getEncodedSyntacticClassifications(r,t)}getEncodedSemanticClassifications(t){const{file:r,project:i}=this.getFileAndProject(t),s=t.format==="2020"?"2020":"original";return i.getLanguageService().getEncodedSemanticClassifications(r,t,s)}getProject(t){return t===void 0?void 0:this.projectService.findProject(t)}getConfigFileAndProject(t){const r=this.getProject(t.projectFileName),i=Ec(t.file);return{configFile:r&&r.hasConfigFile(i)?i:void 0,project:r}}getConfigFileDiagnostics(t,r,i){const s=r.getAllProjectErrors(),o=r.getLanguageService().getCompilerOptionsDiagnostics(),c=vr(zn(s,o),u=>!!u.file&&u.file.fileName===t);return i?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(c):Kt(c,u=>y5(u,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(t){return t.map(r=>({message:fg(r.messageText,this.host.newLine),start:r.start,length:r.length,category:GS(r),code:r.code,source:r.source,startLocation:r.file&&h5(Ao(r.file,r.start)),endLocation:r.file&&h5(Ao(r.file,r.start+r.length)),reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated,relatedInformation:Kt(r.relatedInformation,Pee)}))}getCompilerOptionsDiagnostics(t){const r=this.getProject(t.projectFileName);return this.convertToDiagnosticsWithLinePosition(vr(r.getLanguageService().getCompilerOptionsDiagnostics(),i=>!i.file),void 0)}convertToDiagnosticsWithLinePosition(t,r){return t.map(i=>({message:fg(i.messageText,this.host.newLine),start:i.start,length:i.length,category:GS(i),code:i.code,source:i.source,startLocation:r&&r.positionToLineOffset(i.start),endLocation:r&&r.positionToLineOffset(i.start+i.length),reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated,relatedInformation:Kt(i.relatedInformation,Pee)}))}getDiagnosticsWorker(t,r,i,s){const{project:o,file:c}=this.getFileAndProject(t);if(r&&G7e(o,c))return Rl;const u=o.getScriptInfoForNormalizedPath(c),f=i(o,c);return s?this.convertToDiagnosticsWithLinePosition(f,u):f.map(g=>$7e(c,o,g))}getDefinition(t,r){const{file:i,project:s}=this.getFileAndProject(t),o=this.getPositionInFile(t,i),c=this.mapDefinitionInfoLocations(s.getLanguageService().getDefinitionAtPosition(i,o)||Rl,s);return r?this.mapDefinitionInfo(c,s):c.map(Vne.mapToOriginalLocation)}mapDefinitionInfoLocations(t,r){return t.map(i=>{const s=Y7e(i,r);return s?{...s,containerKind:i.containerKind,containerName:i.containerName,kind:i.kind,name:i.name,failedAliasResolution:i.failedAliasResolution,...i.unverified&&{unverified:i.unverified}}:i})}getDefinitionAndBoundSpan(t,r){const{file:i,project:s}=this.getFileAndProject(t),o=this.getPositionInFile(t,i),c=w.checkDefined(s.getScriptInfo(i)),u=s.getLanguageService().getDefinitionAndBoundSpan(i,o);if(!u||!u.definitions)return{definitions:Rl,textSpan:void 0};const f=this.mapDefinitionInfoLocations(u.definitions,s),{textSpan:g}=u;return r?{definitions:this.mapDefinitionInfo(f,s),textSpan:ih(g,c)}:{definitions:f.map(Vne.mapToOriginalLocation),textSpan:g}}findSourceDefinition(t){var r;const{file:i,project:s}=this.getFileAndProject(t),o=this.getPositionInFile(t,i),c=s.getLanguageService().getDefinitionAtPosition(i,o);let u=this.mapDefinitionInfoLocations(c||Rl,s).slice();if(this.projectService.serverMode===0&&(!Pe(u,T=>Ec(T.fileName)!==i&&!T.isAmbient)||Pe(u,T=>!!T.failedAliasResolution))){const T=fU(M=>M.textSpan.start,hQ(this.host.useCaseSensitiveFileNames));u==null||u.forEach(M=>T.add(M));const C=s.getNoDtsResolutionProject(i),N=C.getLanguageService(),D=(r=N.getDefinitionAtPosition(i,o,!0,!1))==null?void 0:r.filter(M=>Ec(M.fileName)!==i);if(Pe(D))for(const M of D){if(M.unverified){const V=y(M,s.getLanguageService().getProgram(),N.getProgram());if(Pe(V)){for(const G of V)T.add(G);continue}}T.add(M)}else{const M=u.filter(V=>Ec(V.fileName)!==i&&V.isAmbient);for(const V of Pe(M)?M:d()){const G=g(V.fileName,i,C);if(!G)continue;const Z=this.projectService.getOrCreateScriptInfoNotOpenedByClient(G,C.currentDirectory,C.directoryStructureHost);if(!Z)continue;C.containsScriptInfo(Z)||(C.addRoot(Z),C.updateGraph());const z=N.getProgram(),ce=w.checkDefined(z.getSourceFile(G));for(const J of x(V.name,ce,z))T.add(J)}}u=Vs(T.values())}return u=u.filter(T=>!T.isAmbient&&!T.failedAliasResolution),this.mapDefinitionInfo(u,s);function g(T,C,N){var D,M,V;const G=tL(T);if(G&&T.lastIndexOf(th)===G.topLevelNodeModulesIndex){const Z=T.substring(0,G.packageRootIndex),z=(D=s.getModuleResolutionCache())==null?void 0:D.getPackageJsonInfoCache(),ce=s.getCompilationSettings(),J=E7(Ss(Z+"/package.json",s.getCurrentDirectory()),C7(z,s,ce));if(!J)return;const ne=NG(J,{moduleResolution:2},s,s.getModuleResolutionCache()),ge=T.substring(G.topLevelPackageNameIndex+1,G.packageRootIndex),ve=zw(D7(ge)),Q=s.toPath(T);if(ne&&Pe(ne,X=>s.toPath(X)===Q))return(M=N.resolutionCache.resolveSingleModuleNameWithoutWatching(ve,C).resolvedModule)==null?void 0:M.resolvedFileName;{const X=T.substring(G.packageRootIndex+1),se=`${ve}/${Y_(X)}`;return(V=N.resolutionCache.resolveSingleModuleNameWithoutWatching(se,C).resolvedModule)==null?void 0:V.resolvedFileName}}}function d(){const T=s.getLanguageService(),C=T.getProgram(),N=mf(C.getSourceFile(i),o);return(vo(N)||Je(N))&&$o(N.parent)&&Tae(N,D=>{var M;if(D===N)return;const V=(M=T.getDefinitionAtPosition(i,D.getStart(),!0,!1))==null?void 0:M.filter(G=>Ec(G.fileName)!==i&&G.isAmbient).map(G=>({fileName:G.fileName,name:Ad(N)}));if(Pe(V))return V})||Rl}function y(T,C,N){var D;const M=N.getSourceFile(T.fileName);if(!M)return;const V=mf(C.getSourceFile(i),o),G=C.getTypeChecker().getSymbolAtLocation(V),Z=G&&Cc(G,276);if(!Z)return;const z=((D=Z.propertyName)==null?void 0:D.text)||Z.name.text;return x(z,M,N)}function x(T,C,N){const D=Qo.Core.getTopMostDeclarationNamesInFile(T,C);return Oi(D,M=>{const V=N.getTypeChecker().getSymbolAtLocation(M),G=IP(M);if(V&&G)return N3.createDefinitionInfo(G,N.getTypeChecker(),V,G,!0)})}}getEmitOutput(t){const{file:r,project:i}=this.getFileAndProject(t);if(!i.shouldEmitFile(i.getScriptInfo(r)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};const s=i.getLanguageService().getEmitOutput(r);return t.richResponse?{...s,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(s.diagnostics):s.diagnostics.map(o=>y5(o,!0))}:s}mapJSDocTagInfo(t,r,i){return t?t.map(s=>{var o;return{...s,text:i?this.mapDisplayParts(s.text,r):(o=s.text)==null?void 0:o.map(c=>c.text).join("")}}):[]}mapDisplayParts(t,r){return t?t.map(i=>i.kind!=="linkName"?i:{...i,target:this.toFileSpan(i.target.fileName,i.target.textSpan,r)}):[]}mapSignatureHelpItems(t,r,i){return t.map(s=>({...s,documentation:this.mapDisplayParts(s.documentation,r),parameters:s.parameters.map(o=>({...o,documentation:this.mapDisplayParts(o.documentation,r)})),tags:this.mapJSDocTagInfo(s.tags,r,i)}))}mapDefinitionInfo(t,r){return t.map(i=>({...this.toFileSpanWithContext(i.fileName,i.textSpan,i.contextSpan,r),...i.unverified&&{unverified:i.unverified}}))}static mapToOriginalLocation(t){return t.originalFileName?(w.assert(t.originalTextSpan!==void 0,"originalTextSpan should be present if originalFileName is"),{...t,fileName:t.originalFileName,textSpan:t.originalTextSpan,targetFileName:t.fileName,targetTextSpan:t.textSpan,contextSpan:t.originalContextSpan,targetContextSpan:t.contextSpan}):t}toFileSpan(t,r,i){const s=i.getLanguageService(),o=s.toLineColumnOffset(t,r.start),c=s.toLineColumnOffset(t,pl(r));return{file:t,start:{line:o.line+1,offset:o.character+1},end:{line:c.line+1,offset:c.character+1}}}toFileSpanWithContext(t,r,i,s){const o=this.toFileSpan(t,r,s),c=i&&this.toFileSpan(t,i,s);return c?{...o,contextStart:c.start,contextEnd:c.end}:o}getTypeDefinition(t){const{file:r,project:i}=this.getFileAndProject(t),s=this.getPositionInFile(t,r),o=this.mapDefinitionInfoLocations(i.getLanguageService().getTypeDefinitionAtPosition(r,s)||Rl,i);return this.mapDefinitionInfo(o,i)}mapImplementationLocations(t,r){return t.map(i=>{const s=Y7e(i,r);return s?{...s,kind:i.kind,displayParts:i.displayParts}:i})}getImplementation(t,r){const{file:i,project:s}=this.getFileAndProject(t),o=this.getPositionInFile(t,i),c=this.mapImplementationLocations(s.getLanguageService().getImplementationAtPosition(i,o)||Rl,s);return r?c.map(({fileName:u,textSpan:f,contextSpan:g})=>this.toFileSpanWithContext(u,f,g,s)):c.map(Vne.mapToOriginalLocation)}getSyntacticDiagnosticsSync(t){const{configFile:r}=this.getConfigFileAndProject(t);return r?Rl:this.getDiagnosticsWorker(t,!1,(i,s)=>i.getLanguageService().getSyntacticDiagnostics(s),!!t.includeLinePosition)}getSemanticDiagnosticsSync(t){const{configFile:r,project:i}=this.getConfigFileAndProject(t);return r?this.getConfigFileDiagnostics(r,i,!!t.includeLinePosition):this.getDiagnosticsWorker(t,!0,(s,o)=>s.getLanguageService().getSemanticDiagnostics(o).filter(c=>!!c.file),!!t.includeLinePosition)}getSuggestionDiagnosticsSync(t){const{configFile:r}=this.getConfigFileAndProject(t);return r?Rl:this.getDiagnosticsWorker(t,!0,(i,s)=>i.getLanguageService().getSuggestionDiagnostics(s),!!t.includeLinePosition)}getJsxClosingTag(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,r),o=i.getJsxClosingTagAtPosition(r,s);return o===void 0?void 0:{newText:o.newText,caretOffset:0}}getLinkedEditingRange(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,r),o=i.getLinkedEditingRangeAtPosition(r,s),c=this.projectService.getScriptInfoForNormalizedPath(r);if(!(c===void 0||o===void 0))return plt(o,c)}getDocumentHighlights(t,r){const{file:i,project:s}=this.getFileAndProject(t),o=this.getPositionInFile(t,i),c=s.getLanguageService().getDocumentHighlights(i,o,t.filesToSearch);return c?r?c.map(({fileName:u,highlightSpans:f})=>{const g=s.getScriptInfo(u);return{file:u,highlightSpans:f.map(({textSpan:d,kind:y,contextSpan:x})=>({...Yhe(d,x,g),kind:y}))}}):c:Rl}provideInlayHints(t){const{file:r,project:i}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(r);return i.getLanguageService().provideInlayHints(r,t,this.getPreferences(r)).map(c=>{const{position:u,displayParts:f}=c;return{...c,position:s.positionToLineOffset(u),displayParts:f==null?void 0:f.map(({text:g,span:d,file:y})=>{if(d){w.assertIsDefined(y,"Target file should be defined together with its span.");const x=this.projectService.getScriptInfo(y);return{text:g,span:{start:x.positionToLineOffset(d.start),end:x.positionToLineOffset(d.start+d.length),file:y}}}else return{text:g}})}})}setCompilerOptionsForInferredProjects(t){this.projectService.setCompilerOptionsForInferredProjects(t.options,t.projectRootPath)}getProjectInfo(t){return this.getProjectInfoWorker(t.file,t.projectFileName,t.needFileNameList,!1)}getProjectInfoWorker(t,r,i,s){const{project:o}=this.getFileAndProjectWorker(t,r);return vp(o),{configFileName:o.getProjectName(),languageServiceDisabled:!o.languageServiceEnabled,fileNames:i?o.getFileNames(!1,s):void 0}}getRenameInfo(t){const{file:r,project:i}=this.getFileAndProject(t),s=this.getPositionInFile(t,r),o=this.getPreferences(r);return i.getLanguageService().getRenameInfo(r,s,o)}getProjects(t,r,i){let s,o;if(t.projectFileName){const c=this.getProject(t.projectFileName);c&&(s=[c])}else{const c=r?this.projectService.getScriptInfoEnsuringProjectsUptoDate(t.file):this.projectService.getScriptInfo(t.file);if(c)r||this.projectService.ensureDefaultProjectForFile(c);else return i?Rl:(this.projectService.logErrorForScriptInfoNotFound(t.file),My.ThrowNoProject());s=c.containingProjects,o=this.projectService.getSymlinkedProjects(c)}return s=vr(s,c=>c.languageServiceEnabled&&!c.isOrphan()),!i&&(!s||!s.length)&&!o?(this.projectService.logErrorForScriptInfoNotFound(t.file??t.projectFileName),My.ThrowNoProject()):o?{projects:s,symLinkedProjects:o}:s}getDefaultProject(t){if(t.projectFileName){const i=this.getProject(t.projectFileName);if(i)return i;if(!t.file)return My.ThrowNoProject()}return this.projectService.getScriptInfo(t.file).getDefaultProject()}getRenameLocations(t,r){const i=Ec(t.file),s=this.getPositionInFile(t,i),o=this.getProjects(t),c=this.getDefaultProject(t),u=this.getPreferences(i),f=this.mapRenameInfo(c.getLanguageService().getRenameInfo(i,s,u),w.checkDefined(this.projectService.getScriptInfo(i)));if(!f.canRename)return r?{info:f,locs:[]}:[];const g=alt(o,c,{fileName:t.file,pos:s},!!t.findInStrings,!!t.findInComments,u,this.host.useCaseSensitiveFileNames);return r?{info:f,locs:this.toSpanGroups(g)}:g}mapRenameInfo(t,r){if(t.canRename){const{canRename:i,fileToRename:s,displayName:o,fullDisplayName:c,kind:u,kindModifiers:f,triggerSpan:g}=t;return{canRename:i,fileToRename:s,displayName:o,fullDisplayName:c,kind:u,kindModifiers:f,triggerSpan:ih(g,r)}}else return t}toSpanGroups(t){const r=new Map;for(const{fileName:i,textSpan:s,contextSpan:o,originalContextSpan:c,originalTextSpan:u,originalFileName:f,...g}of t){let d=r.get(i);d||r.set(i,d={file:i,locs:[]});const y=w.checkDefined(this.projectService.getScriptInfo(i));d.locs.push({...Yhe(s,o,y),...g})}return Vs(r.values())}getReferences(t,r){const i=Ec(t.file),s=this.getProjects(t),o=this.getPositionInFile(t,i),c=clt(s,this.getDefaultProject(t),{fileName:t.file,pos:o},this.host.useCaseSensitiveFileNames,this.logger);if(!r)return c;const u=this.getPreferences(i),f=this.getDefaultProject(t),g=f.getScriptInfoForNormalizedPath(i),d=f.getLanguageService().getQuickInfoAtPosition(i,o),y=d?zI(d.displayParts):"",x=d&&d.textSpan,T=x?g.positionToLineOffset(x.start).offset:0,C=x?g.getSnapshot().getText(x.start,pl(x)):"";return{refs:Ys(c,D=>D.references.map(M=>K7e(this.projectService,M,u))),symbolName:C,symbolStartOffset:T,symbolDisplayString:y}}getFileReferences(t,r){const i=this.getProjects(t),s=t.file,o=this.getPreferences(Ec(s)),c=[],u=wee(this.host.useCaseSensitiveFileNames);return Qhe(i,void 0,g=>{if(g.getCancellationToken().isCancellationRequested())return;const d=g.getLanguageService().getFileReferences(s);if(d)for(const y of d)u.has(y)||(c.push(y),u.add(y))}),r?{refs:c.map(g=>K7e(this.projectService,g,o)),symbolName:`"${t.file}"`}:c}openClientFile(t,r,i,s){this.projectService.openClientFileWithNormalizedPath(t,r,i,!1,s)}getPosition(t,r){return t.position!==void 0?t.position:r.lineOffsetToPosition(t.line,t.offset)}getPositionInFile(t,r){const i=this.projectService.getScriptInfoForNormalizedPath(r);return this.getPosition(t,i)}getFileAndProject(t){return this.getFileAndProjectWorker(t.file,t.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(t){const{file:r,project:i}=this.getFileAndProject(t);return{file:r,languageService:i.getLanguageService(!1)}}getFileAndProjectWorker(t,r){const i=Ec(t),s=this.getProject(r)||this.projectService.ensureDefaultProjectForFile(i);return{file:i,project:s}}getOutliningSpans(t,r){const{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=s.getOutliningSpans(i);if(r){const c=this.projectService.getScriptInfoForNormalizedPath(i);return o.map(u=>({textSpan:ih(u.textSpan,c),hintSpan:ih(u.hintSpan,c),bannerText:u.bannerText,autoCollapse:u.autoCollapse,kind:u.kind}))}else return o}getTodoComments(t){const{file:r,project:i}=this.getFileAndProject(t);return i.getLanguageService().getTodoComments(r,t.descriptors)}getDocCommentTemplate(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,r);return i.getDocCommentTemplateAtPosition(r,s,this.getPreferences(r),this.getFormatOptions(r))}getSpanOfEnclosingComment(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=t.onlyMultiLine,o=this.getPositionInFile(t,r);return i.getSpanOfEnclosingComment(r,o,s)}getIndentation(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,r),o=t.options?R3(t.options):this.getFormatOptions(r),c=i.getIndentationAtPosition(r,s,o);return{position:s,indentation:c}}getBreakpointStatement(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,r);return i.getBreakpointStatementAtPosition(r,s)}getNameOrDottedNameSpan(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,r);return i.getNameOrDottedNameSpan(r,s,s)}isValidBraceCompletion(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,r);return i.isValidBraceCompletionAtPosition(r,s,t.openingBrace.charCodeAt(0))}getQuickInfoWorker(t,r){const{file:i,project:s}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=s.getLanguageService().getQuickInfoAtPosition(i,this.getPosition(t,o));if(!c)return;const u=!!this.getPreferences(i).displayPartsForJSDoc;if(r){const f=zI(c.displayParts);return{kind:c.kind,kindModifiers:c.kindModifiers,start:o.positionToLineOffset(c.textSpan.start),end:o.positionToLineOffset(pl(c.textSpan)),displayString:f,documentation:u?this.mapDisplayParts(c.documentation,s):zI(c.documentation),tags:this.mapJSDocTagInfo(c.tags,s,u)}}else return u?c:{...c,tags:this.mapJSDocTagInfo(c.tags,s,!1)}}getFormattingEditsForRange(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(r),o=s.lineOffsetToPosition(t.line,t.offset),c=s.lineOffsetToPosition(t.endLine,t.endOffset),u=i.getFormattingEditsForRange(r,o,c,this.getFormatOptions(r));if(u)return u.map(f=>this.convertTextChangeToCodeEdit(f,s))}getFormattingEditsForRangeFull(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=t.options?R3(t.options):this.getFormatOptions(r);return i.getFormattingEditsForRange(r,t.position,t.endPosition,s)}getFormattingEditsForDocumentFull(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=t.options?R3(t.options):this.getFormatOptions(r);return i.getFormattingEditsForDocument(r,s)}getFormattingEditsAfterKeystrokeFull(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=t.options?R3(t.options):this.getFormatOptions(r);return i.getFormattingEditsAfterKeystroke(r,t.position,t.key,s)}getFormattingEditsAfterKeystroke(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(r),o=s.lineOffsetToPosition(t.line,t.offset),c=this.getFormatOptions(r),u=i.getFormattingEditsAfterKeystroke(r,o,t.key,c);if(t.key===` +`&&(!u||u.length===0||ilt(u,o))){const{lineText:f,absolutePosition:g}=s.textStorage.getAbsolutePositionAndLineText(t.line);if(f&&f.search("\\S")<0){const d=i.getIndentationAtPosition(r,o,c);let y=0,x,T;for(x=0,T=f.length;x({start:s.positionToLineOffset(f.span.start),end:s.positionToLineOffset(pl(f.span)),newText:f.newText?f.newText:""}))}getCompletions(t,r){const{file:i,project:s}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getPosition(t,o),u=s.getLanguageService().getCompletionsAtPosition(i,c,{...Mhe(this.getPreferences(i)),triggerCharacter:t.triggerCharacter,triggerKind:t.triggerKind,includeExternalModuleExports:t.includeExternalModuleExports,includeInsertTextCompletions:t.includeInsertTextCompletions},s.projectService.getFormatCodeOptions(i));if(u===void 0)return;if(r==="completions-full")return u;const f=t.prefix||"",g=Oi(u.entries,y=>{if(u.isMemberCompletion||fs(y.name.toLowerCase(),f.toLowerCase())){const{name:x,kind:T,kindModifiers:C,sortText:N,insertText:D,filterText:M,replacementSpan:V,hasAction:G,source:Z,sourceDisplay:z,labelDetails:ce,isSnippet:J,isRecommended:ne,isPackageJsonImport:ge,isImportStatementCompletion:ve,data:Q}=y,X=V?ih(V,o):void 0;return{name:x,kind:T,kindModifiers:C,sortText:N,insertText:D,filterText:M,replacementSpan:X,isSnippet:J,hasAction:G||void 0,source:Z,sourceDisplay:z,labelDetails:ce,isRecommended:ne,isPackageJsonImport:ge,isImportStatementCompletion:ve,data:Q}}});return r==="completions"?(u.metadata&&(g.metadata=u.metadata),g):{...u,optionalReplacementSpan:u.optionalReplacementSpan&&ih(u.optionalReplacementSpan,o),entries:g}}getCompletionEntryDetails(t,r){const{file:i,project:s}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getPosition(t,o),u=s.projectService.getFormatCodeOptions(i),f=!!this.getPreferences(i).displayPartsForJSDoc,g=Oi(t.entryNames,d=>{const{name:y,source:x,data:T}=typeof d=="string"?{name:d,source:void 0,data:void 0}:d;return s.getLanguageService().getCompletionEntryDetails(i,c,y,u,x,this.getPreferences(i),T?pa(T,ylt):void 0)});return r?f?g:g.map(d=>({...d,tags:this.mapJSDocTagInfo(d.tags,s,!1)})):g.map(d=>({...d,codeActions:Kt(d.codeActions,y=>this.mapCodeAction(y)),documentation:this.mapDisplayParts(d.documentation,s),tags:this.mapJSDocTagInfo(d.tags,s,f)}))}getCompileOnSaveAffectedFileList(t){const r=this.getProjects(t,!0,!0),i=this.projectService.getScriptInfo(t.file);return i?slt(i,s=>this.projectService.getScriptInfoForPath(s),r,(s,o)=>{if(!s.compileOnSaveEnabled||!s.languageServiceEnabled||s.isOrphan())return;const c=s.getCompilationSettings();if(!(c.noEmit||Wu(o.fileName)&&!rlt(c)))return{projectFileName:s.getProjectName(),fileNames:s.getCompileOnSaveAffectedFileList(o),projectUsesOutFile:!!Vo(c)}}):Rl}emitFile(t){const{file:r,project:i}=this.getFileAndProject(t);if(i||My.ThrowNoProject(),!i.languageServiceEnabled)return t.richResponse?{emitSkipped:!0,diagnostics:[]}:!1;const s=i.getScriptInfo(r),{emitSkipped:o,diagnostics:c}=i.emitFile(s,(u,f,g)=>this.host.writeFile(u,f,g));return t.richResponse?{emitSkipped:o,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(c):c.map(u=>y5(u,!0))}:!o}getSignatureHelpItems(t,r){const{file:i,project:s}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getPosition(t,o),u=s.getLanguageService().getSignatureHelpItems(i,c,t),f=!!this.getPreferences(i).displayPartsForJSDoc;if(u&&r){const g=u.applicableSpan;return{...u,applicableSpan:{start:o.positionToLineOffset(g.start),end:o.positionToLineOffset(g.start+g.length)},items:this.mapSignatureHelpItems(u.items,s,f)}}else return f||!u?u:{...u,items:u.items.map(g=>({...g,tags:this.mapJSDocTagInfo(g.tags,s,!1)}))}}toPendingErrorCheck(t){const r=Ec(t),i=this.projectService.tryGetDefaultProjectForFile(r);return i&&{fileName:r,project:i}}getDiagnostics(t,r,i){this.suppressDiagnosticEvents||i.length>0&&this.updateErrorCheck(t,i,r)}change(t){const r=this.projectService.getScriptInfo(t.file);w.assert(!!r),r.textStorage.switchToScriptVersionCache();const i=r.lineOffsetToPosition(t.line,t.offset),s=r.lineOffsetToPosition(t.endLine,t.endOffset);i>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(r,wu({span:{start:i,length:s-i},newText:t.insertString})))}reload(t,r){const i=Ec(t.file),s=t.tmpfile===void 0?void 0:Ec(t.tmpfile),o=this.projectService.getScriptInfoForNormalizedPath(i);o&&(this.changeSeq++,o.reloadFromFile(s)&&this.doOutput(void 0,"reload",r,!0))}saveToTmp(t,r){const i=this.projectService.getScriptInfo(t);i&&i.saveTo(r)}closeClientFile(t){if(!t)return;const r=ka(t);this.projectService.closeClientFile(r)}mapLocationNavigationBarItems(t,r){return Kt(t,i=>({text:i.text,kind:i.kind,kindModifiers:i.kindModifiers,spans:i.spans.map(s=>ih(s,r)),childItems:this.mapLocationNavigationBarItems(i.childItems,r),indent:i.indent}))}getNavigationBarItems(t,r){const{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=s.getNavigationBarItems(i);return o?r?this.mapLocationNavigationBarItems(o,this.projectService.getScriptInfoForNormalizedPath(i)):o:void 0}toLocationNavigationTree(t,r){return{text:t.text,kind:t.kind,kindModifiers:t.kindModifiers,spans:t.spans.map(i=>ih(i,r)),nameSpan:t.nameSpan&&ih(t.nameSpan,r),childItems:Kt(t.childItems,i=>this.toLocationNavigationTree(i,r))}}getNavigationTree(t,r){const{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=s.getNavigationTree(i);return o?r?this.toLocationNavigationTree(o,this.projectService.getScriptInfoForNormalizedPath(i)):o:void 0}getNavigateToItems(t,r){const i=this.getFullNavigateToItems(t);return r?Ys(i,({project:s,navigateToItems:o})=>o.map(c=>{const u=s.getScriptInfo(c.fileName),f={name:c.name,kind:c.kind,kindModifiers:c.kindModifiers,isCaseSensitive:c.isCaseSensitive,matchKind:c.matchKind,file:c.fileName,start:u.positionToLineOffset(c.textSpan.start),end:u.positionToLineOffset(pl(c.textSpan))};return c.kindModifiers&&c.kindModifiers!==""&&(f.kindModifiers=c.kindModifiers),c.containerName&&c.containerName.length>0&&(f.containerName=c.containerName),c.containerKind&&c.containerKind.length>0&&(f.containerKind=c.containerKind),f})):Ys(i,({navigateToItems:s})=>s)}getFullNavigateToItems(t){const{currentFileOnly:r,searchValue:i,maxResultCount:s,projectFileName:o}=t;if(r){w.assertIsDefined(t.file);const{file:x,project:T}=this.getFileAndProject(t);return[{project:T,navigateToItems:T.getLanguageService().getNavigateToItems(i,s,x)}]}const c=this.getHostPreferences(),u=[],f=new Map;if(!t.file&&!o)this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(x=>g(x));else{const x=this.getProjects(t);Qhe(x,void 0,T=>g(T))}return u;function g(x){const T=x.getLanguageService().getNavigateToItems(i,s,void 0,x.isNonTsProject(),c.excludeLibrarySymbolsInNavTo),C=vr(T,N=>d(N)&&!Dee(ID(N),x));C.length&&u.push({project:x,navigateToItems:C})}function d(x){const T=x.name;if(!f.has(T))return f.set(T,[x]),!0;const C=f.get(T);for(const N of C)if(y(N,x))return!1;return C.push(x),!0}function y(x,T){return x===T?!0:!x||!T?!1:x.containerKind===T.containerKind&&x.containerName===T.containerName&&x.fileName===T.fileName&&x.isCaseSensitive===T.isCaseSensitive&&x.kind===T.kind&&x.kindModifiers===T.kindModifiers&&x.matchKind===T.matchKind&&x.name===T.name&&x.textSpan.start===T.textSpan.start&&x.textSpan.length===T.textSpan.length}}getSupportedCodeFixes(t){if(!t)return BY();if(t.file){const{file:i,project:s}=this.getFileAndProject(t);return s.getLanguageService().getSupportedCodeFixes(i)}const r=this.getProject(t.projectFileName);return r||My.ThrowNoProject(),r.getLanguageService().getSupportedCodeFixes()}isLocation(t){return t.line!==void 0}extractPositionOrRange(t,r){let i,s;return this.isLocation(t)?i=o(t):s=this.getRange(t,r),w.checkDefined(i===void 0?s:i);function o(c){return c.position!==void 0?c.position:r.lineOffsetToPosition(c.line,c.offset)}}getRange(t,r){const{startPosition:i,endPosition:s}=this.getStartAndEndPosition(t,r);return{pos:i,end:s}}getApplicableRefactors(t){const{file:r,project:i}=this.getFileAndProject(t),s=i.getScriptInfoForNormalizedPath(r);return i.getLanguageService().getApplicableRefactors(r,this.extractPositionOrRange(t,s),this.getPreferences(r),t.triggerReason,t.kind,t.includeInteractiveActions)}getEditsForRefactor(t,r){const{file:i,project:s}=this.getFileAndProject(t),o=s.getScriptInfoForNormalizedPath(i),c=s.getLanguageService().getEditsForRefactor(i,this.getFormatOptions(i),this.extractPositionOrRange(t,o),t.refactor,t.action,this.getPreferences(i),t.interactiveRefactorArguments);if(c===void 0)return{edits:[]};if(r){const{renameFilename:u,renameLocation:f,edits:g}=c;let d;if(u!==void 0&&f!==void 0){const y=s.getScriptInfoForNormalizedPath(Ec(u));d=Zhe(d3(y.getSnapshot()),u,f,g)}return{renameLocation:d,renameFilename:u,edits:this.mapTextChangesToCodeEdits(g),notApplicableReason:c.notApplicableReason}}return c}getMoveToRefactoringFileSuggestions(t){const{file:r,project:i}=this.getFileAndProject(t),s=i.getScriptInfoForNormalizedPath(r);return i.getLanguageService().getMoveToRefactoringFileSuggestions(r,this.extractPositionOrRange(t,s),this.getPreferences(r))}organizeImports(t,r){w.assert(t.scope.type==="file");const{file:i,project:s}=this.getFileAndProject(t.scope.args),o=s.getLanguageService().organizeImports({fileName:i,mode:t.mode??(t.skipDestructiveCodeActions?"SortAndCombine":void 0),type:"file"},this.getFormatOptions(i),this.getPreferences(i));return r?this.mapTextChangesToCodeEdits(o):o}getEditsForFileRename(t,r){const i=Ec(t.oldFilePath),s=Ec(t.newFilePath),o=this.getHostFormatOptions(),c=this.getHostPreferences(),u=new Set,f=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(g=>{const d=g.getLanguageService().getEditsForFileRename(i,s,o,c),y=[];for(const x of d)u.has(x.fileName)||(f.push(x),y.push(x.fileName));for(const x of y)u.add(x)}),r?f.map(g=>this.mapTextChangeToCodeEdit(g)):f}getCodeFixes(t,r){const{file:i,project:s}=this.getFileAndProject(t),o=s.getScriptInfoForNormalizedPath(i),{startPosition:c,endPosition:u}=this.getStartAndEndPosition(t,o);let f;try{f=s.getLanguageService().getCodeFixesAtPosition(i,c,u,t.errorCodes,this.getFormatOptions(i),this.getPreferences(i))}catch(g){const d=s.getLanguageService(),y=[...d.getSyntacticDiagnostics(i),...d.getSemanticDiagnostics(i),...d.getSuggestionDiagnostics(i)].map(T=>aA(c,u-c,T.start,T.length)&&T.code),x=t.errorCodes.find(T=>!y.includes(T));throw x!==void 0&&(g.message=`BADCLIENT: Bad error code, ${x} not found in range ${c}..${u} (found: ${y.join(", ")}); could have caused this error: +${g.message}`),g}return r?f.map(g=>this.mapCodeFixAction(g)):f}getCombinedCodeFix({scope:t,fixId:r},i){w.assert(t.type==="file");const{file:s,project:o}=this.getFileAndProject(t.args),c=o.getLanguageService().getCombinedCodeFix({type:"file",fileName:s},r,this.getFormatOptions(s),this.getPreferences(s));return i?{changes:this.mapTextChangesToCodeEdits(c.changes),commands:c.commands}:c}applyCodeActionCommand(t){const r=t.command;for(const i of sk(r)){const{file:s,project:o}=this.getFileAndProject(i);o.getLanguageService().applyCodeActionCommand(i,this.getFormatOptions(s)).then(c=>{},c=>{})}return{}}getStartAndEndPosition(t,r){let i,s;return t.startPosition!==void 0?i=t.startPosition:(i=r.lineOffsetToPosition(t.startLine,t.startOffset),t.startPosition=i),t.endPosition!==void 0?s=t.endPosition:(s=r.lineOffsetToPosition(t.endLine,t.endOffset),t.endPosition=s),{startPosition:i,endPosition:s}}mapCodeAction({description:t,changes:r,commands:i}){return{description:t,changes:this.mapTextChangesToCodeEdits(r),commands:i}}mapCodeFixAction({fixName:t,description:r,changes:i,commands:s,fixId:o,fixAllDescription:c}){return{fixName:t,description:r,changes:this.mapTextChangesToCodeEdits(i),commands:s,fixId:o,fixAllDescription:c}}mapTextChangesToCodeEdits(t){return t.map(r=>this.mapTextChangeToCodeEdit(r))}mapTextChangeToCodeEdit(t){const r=this.projectService.getScriptInfoOrConfig(t.fileName);return!!t.isNewFile==!!r&&(r||this.projectService.logErrorForScriptInfoNotFound(t.fileName),w.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!t.isNewFile,hasScriptInfo:!!r}))),r?{fileName:t.fileName,textChanges:t.textChanges.map(i=>flt(i,r))}:mlt(t)}convertTextChangeToCodeEdit(t,r){return{start:r.positionToLineOffset(t.span.start),end:r.positionToLineOffset(t.span.start+t.span.length),newText:t.newText?t.newText:""}}getBraceMatching(t,r){const{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getPosition(t,o),u=s.getBraceMatchingAtPosition(i,c);return u?r?u.map(f=>ih(f,o)):u:void 0}getDiagnosticsForProject(t,r,i){if(this.suppressDiagnosticEvents)return;const{fileNames:s,languageServiceDisabled:o}=this.getProjectInfoWorker(i,void 0,!0,!0);if(o)return;const c=s.filter(N=>!N.includes("lib.d.ts"));if(c.length===0)return;const u=[],f=[],g=[],d=[],y=Ec(i),x=this.projectService.ensureDefaultProjectForFile(y);for(const N of c)this.getCanonicalFileName(N)===this.getCanonicalFileName(i)?u.push(N):this.projectService.getScriptInfo(N).isScriptOpen()?f.push(N):Wu(N)?d.push(N):g.push(N);const C=[...u,...f,...g,...d].map(N=>({fileName:N,project:x}));this.updateErrorCheck(t,C,r,!1)}configurePlugin(t){this.projectService.configurePlugin(t)}getSmartSelectionRange(t,r){const{locations:i}=t,{file:s,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),c=w.checkDefined(this.projectService.getScriptInfo(s));return Kt(i,u=>{const f=this.getPosition(u,c),g=o.getSmartSelectionRange(s,f);return r?this.mapSelectionRange(g,c):g})}toggleLineComment(t,r){const{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfo(i),c=this.getRange(t,o),u=s.toggleLineComment(i,c);if(r){const f=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(g=>this.convertTextChangeToCodeEdit(g,f))}return u}toggleMultilineComment(t,r){const{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getRange(t,o),u=s.toggleMultilineComment(i,c);if(r){const f=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(g=>this.convertTextChangeToCodeEdit(g,f))}return u}commentSelection(t,r){const{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getRange(t,o),u=s.commentSelection(i,c);if(r){const f=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(g=>this.convertTextChangeToCodeEdit(g,f))}return u}uncommentSelection(t,r){const{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getRange(t,o),u=s.uncommentSelection(i,c);if(r){const f=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(g=>this.convertTextChangeToCodeEdit(g,f))}return u}mapSelectionRange(t,r){const i={textSpan:ih(t.textSpan,r)};return t.parent&&(i.parent=this.mapSelectionRange(t.parent,r)),i}getScriptInfoFromProjectService(t){const r=Ec(t),i=this.projectService.getScriptInfoForNormalizedPath(r);return i||(this.projectService.logErrorForScriptInfoNotFound(r),My.ThrowNoProject())}toProtocolCallHierarchyItem(t){const r=this.getScriptInfoFromProjectService(t.file);return{name:t.name,kind:t.kind,kindModifiers:t.kindModifiers,file:t.file,containerName:t.containerName,span:ih(t.span,r),selectionSpan:ih(t.selectionSpan,r)}}toProtocolCallHierarchyIncomingCall(t){const r=this.getScriptInfoFromProjectService(t.from.file);return{from:this.toProtocolCallHierarchyItem(t.from),fromSpans:t.fromSpans.map(i=>ih(i,r))}}toProtocolCallHierarchyOutgoingCall(t,r){return{to:this.toProtocolCallHierarchyItem(t.to),fromSpans:t.fromSpans.map(i=>ih(i,r))}}prepareCallHierarchy(t){const{file:r,project:i}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(r);if(s){const o=this.getPosition(t,s),c=i.getLanguageService().prepareCallHierarchy(r,o);return c&&LQ(c,u=>this.toProtocolCallHierarchyItem(u))}}provideCallHierarchyIncomingCalls(t){const{file:r,project:i}=this.getFileAndProject(t),s=this.getScriptInfoFromProjectService(r);return i.getLanguageService().provideCallHierarchyIncomingCalls(r,this.getPosition(t,s)).map(c=>this.toProtocolCallHierarchyIncomingCall(c))}provideCallHierarchyOutgoingCalls(t){const{file:r,project:i}=this.getFileAndProject(t),s=this.getScriptInfoFromProjectService(r);return i.getLanguageService().provideCallHierarchyOutgoingCalls(r,this.getPosition(t,s)).map(c=>this.toProtocolCallHierarchyOutgoingCall(c,s))}getCanonicalFileName(t){const r=this.host.useCaseSensitiveFileNames?t:jg(t);return ka(r)}exit(){}notRequired(){return{responseRequired:!1}}requiredResponse(t){return{response:t,responseRequired:!0}}addProtocolHandler(t,r){if(this.handlers.has(t))throw new Error(`Protocol handler already exists for command "${t}"`);this.handlers.set(t,r)}setCurrentRequest(t){w.assert(this.currentRequestId===void 0),this.currentRequestId=t,this.cancellationToken.setRequest(t)}resetCurrentRequest(t){w.assert(this.currentRequestId===t),this.currentRequestId=void 0,this.cancellationToken.resetRequest(t)}executeWithRequestId(t,r){try{return this.setCurrentRequest(t),r()}finally{this.resetCurrentRequest(t)}}executeCommand(t){const r=this.handlers.get(t.command);if(r){const i=this.executeWithRequestId(t.seq,()=>r(t));return this.projectService.enableRequestedPlugins(),i}else return this.logger.msg(`Unrecognized JSON command:${g2(t)}`,"Err"),this.doOutput(void 0,"unknown",t.seq,!1,`Unrecognized JSON command: ${t.command}`),{responseRequired:!1}}onMessage(t){var r,i,s,o,c,u,f,g,d,y,x;this.gcTimer.scheduleCollect(),this.performanceData=void 0;let T;this.logger.hasLevel(2)&&(T=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${iD(this.toStringMessage(t))}`));let C,N;try{C=this.parseMessage(t),N=C.arguments&&C.arguments.file?C.arguments:void 0,(r=cr)==null||r.instant(cr.Phase.Session,"request",{seq:C.seq,command:C.command}),(i=A_)==null||i.logStartCommand(""+C.command,this.toStringMessage(t).substring(0,100)),(s=cr)==null||s.push(cr.Phase.Session,"executeCommand",{seq:C.seq,command:C.command},!0);const{response:D,responseRequired:M}=this.executeCommand(C);if((o=cr)==null||o.pop(),this.logger.hasLevel(2)){const V=nlt(this.hrtime(T)).toFixed(4);M?this.logger.perftrc(`${C.seq}::${C.command}: elapsed time (in milliseconds) ${V}`):this.logger.perftrc(`${C.seq}::${C.command}: async elapsed time (in milliseconds) ${V}`)}(c=A_)==null||c.logStopCommand(""+C.command,"Success"),(u=cr)==null||u.instant(cr.Phase.Session,"response",{seq:C.seq,command:C.command,success:!!D}),D?this.doOutput(D,C.command,C.seq,!0):M&&this.doOutput(void 0,C.command,C.seq,!1,"No content available.")}catch(D){if((f=cr)==null||f.popAll(),D instanceof I6){(g=A_)==null||g.logStopCommand(""+(C&&C.command),"Canceled: "+D),(d=cr)==null||d.instant(cr.Phase.Session,"commandCanceled",{seq:C==null?void 0:C.seq,command:C==null?void 0:C.command}),this.doOutput({canceled:!0},C.command,C.seq,!0);return}this.logErrorWorker(D,this.toStringMessage(t),N),(y=A_)==null||y.logStopCommand(""+(C&&C.command),"Error: "+D),(x=cr)==null||x.instant(cr.Phase.Session,"commandError",{seq:C==null?void 0:C.seq,command:C==null?void 0:C.command,message:D.message}),this.doOutput(void 0,C?C.command:"unknown",C?C.seq:0,!1,"Error processing request. "+D.message+` +`+D.stack)}}parseMessage(t){return JSON.parse(t)}toStringMessage(t){return t}getFormatOptions(t){return this.projectService.getFormatCodeOptions(t)}getPreferences(t){return this.projectService.getPreferences(t)}getHostFormatOptions(){return this.projectService.getHostFormatCodeOptions()}getHostPreferences(){return this.projectService.getHostPreferences()}}}}),wC,Aee,nIe,rIe,rJ,iJ,r0e,OD,DC,v5,blt=K({"src/server/scriptVersionCache.ts"(){V1(),$x(),wC=4,Aee=(e=>(e[e.PreStart=0]="PreStart",e[e.Start=1]="Start",e[e.Entire=2]="Entire",e[e.Mid=3]="Mid",e[e.End=4]="End",e[e.PostEnd=5]="PostEnd",e))(Aee||{}),nIe=class{constructor(){this.goSubtree=!0,this.lineIndex=new OD,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new DC,this.startPath=[this.lineIndex.root],this.stack=[this.lineIndex.root]}get done(){return!1}insertLines(e,t){t&&(this.trailingText=""),e?e=this.initialText+e+this.trailingText:e=this.initialText+this.trailingText;const i=OD.linesFromText(e).lines;i.length>1&&i[i.length-1]===""&&i.pop();let s,o;for(let u=this.endBranch.length-1;u>=0;u--)this.endBranch[u].updateCounts(),this.endBranch[u].charCount()===0&&(o=this.endBranch[u],u>0?s=this.endBranch[u-1]:s=this.branchNode);o&&s.remove(o);const c=this.startPath[this.startPath.length-1];if(i.length>0)if(c.text=i[0],i.length>1){let u=new Array(i.length-1),f=c;for(let y=1;y=0;){const y=this.startPath[g];u=y.insertAt(f,u),g--,f=y}let d=u.length;for(;d>0;){const y=new DC;y.add(this.lineIndex.root),u=y.insertAt(this.lineIndex.root,u),d=u.length,this.lineIndex.root=y}this.lineIndex.root.updateCounts()}else for(let u=this.startPath.length-2;u>=0;u--)this.startPath[u].updateCounts();else{this.startPath[this.startPath.length-2].remove(c);for(let f=this.startPath.length-2;f>=0;f--)this.startPath[f].updateCounts()}return this.lineIndex}post(e,t,r){r===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(e,t,r,i,s){const o=this.stack[this.stack.length-1];this.state===2&&s===1&&(this.state=1,this.branchNode=o,this.lineCollectionAtBranch=r);let c;function u(f){return f.isLeaf()?new v5(""):new DC}switch(s){case 0:this.goSubtree=!1,this.state!==4&&o.add(r);break;case 1:this.state===4?this.goSubtree=!1:(c=u(r),o.add(c),this.startPath.push(c));break;case 2:this.state!==4?(c=u(r),o.add(c),this.startPath.push(c)):r.isLeaf()||(c=u(r),o.add(c),this.endBranch.push(c));break;case 3:this.goSubtree=!1;break;case 4:this.state!==4?this.goSubtree=!1:r.isLeaf()||(c=u(r),o.add(c),this.endBranch.push(c));break;case 5:this.goSubtree=!1,this.state!==1&&o.add(r);break}this.goSubtree&&this.stack.push(c)}leaf(e,t,r){this.state===1?this.initialText=r.text.substring(0,e):this.state===2?(this.initialText=r.text.substring(0,e),this.trailingText=r.text.substring(e+t)):this.trailingText=r.text.substring(e+t)}},rIe=class{constructor(e,t,r){this.pos=e,this.deleteLen=t,this.insertedText=r}getTextChangeRange(){return oA(Ju(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},rJ=class $T{constructor(){this.changes=[],this.versions=new Array($T.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(t){if(!(tthis.currentVersion))return t%$T.maxVersions}currentVersionToIndex(){return this.currentVersion%$T.maxVersions}edit(t,r,i){this.changes.push(new rIe(t,r,i)),(this.changes.length>$T.changeNumberThreshold||r>$T.changeLengthThreshold||i&&i.length>$T.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let t=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let r=t.index;for(const i of this.changes)r=r.edit(i.pos,i.deleteLen,i.insertedText);t=new r0e(this.currentVersion+1,this,r,this.changes),this.currentVersion=t.version,this.versions[this.currentVersionToIndex()]=t,this.changes=[],this.currentVersion-this.minVersion>=$T.maxVersions&&(this.minVersion=this.currentVersion-$T.maxVersions+1)}return t}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(t){return this._getSnapshot().index.lineNumberToInfo(t)}lineOffsetToPosition(t,r){return this._getSnapshot().index.absolutePositionOfStartOfLine(t)+(r-1)}positionToLineOffset(t){return this._getSnapshot().index.positionToLineOffset(t)}lineToTextSpan(t){const r=this._getSnapshot().index,{lineText:i,absolutePosition:s}=r.lineNumberToInfo(t+1),o=i!==void 0?i.length:r.absolutePositionOfStartOfLine(t+2)-s;return Ju(s,o)}getTextChangesBetweenVersions(t,r){if(t=this.minVersion){const i=[];for(let s=t+1;s<=r;s++){const o=this.versions[this.versionToIndex(s)];for(const c of o.changesSincePreviousVersion)i.push(c.getTextChangeRange())}return lie(i)}else return;else return TA}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(t){const r=new $T,i=new r0e(0,r,new OD);r.versions[r.currentVersion]=i;const s=OD.linesFromText(t);return i.index.load(s.lines),r}},rJ.changeNumberThreshold=8,rJ.changeLengthThreshold=256,rJ.maxVersions=8,iJ=rJ,r0e=class xJe{constructor(t,r,i,s=Rl){this.version=t,this.cache=r,this.index=i,this.changesSincePreviousVersion=s}getText(t,r){return this.index.getText(t,r-t)}getLength(){return this.index.getLength()}getChangeRange(t){if(t instanceof xJe&&this.cache===t.cache)return this.version<=t.version?TA:this.cache.getTextChangesBetweenVersions(t.version,this.version)}},OD=class B2e{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(t){return this.lineNumberToInfo(t).absolutePosition}positionToLineOffset(t){const{oneBasedLine:r,zeroBasedColumn:i}=this.root.charOffsetToLineInfo(1,t);return{line:r,offset:i+1}}positionToColumnAndLineText(t){return this.root.charOffsetToLineInfo(1,t)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(t){const r=this.getLineCount();if(t<=r){const{position:i,leaf:s}=this.root.lineNumberToInfo(t,0);return{absolutePosition:i,lineText:s&&s.text}}else return{absolutePosition:this.root.charCount(),lineText:void 0}}load(t){if(t.length>0){const r=[];for(let i=0;i0&&t{i=i.concat(c.text.substring(s,s+o))}}),i}getLength(){return this.root.charCount()}every(t,r,i){i||(i=this.root.charCount());const s={goSubtree:!0,done:!1,leaf(o,c,u){t(u,o,c)||(this.done=!0)}};return this.walk(r,i-r,s),!s.done}edit(t,r,i){if(this.root.charCount()===0)return w.assert(r===0),i!==void 0?(this.load(B2e.linesFromText(i).lines),this):void 0;{let s;if(this.checkEdits){const u=this.getText(0,this.root.charCount());s=u.slice(0,t)+i+u.slice(t+r)}const o=new nIe;let c=!1;if(t>=this.root.charCount()){t=this.root.charCount()-1;const u=this.getText(t,1);i?i=u+i:i=u,r=0,c=!0}else if(r>0){const u=t+r,{zeroBasedColumn:f,lineText:g}=this.positionToColumnAndLineText(u);f===0&&(r+=g.length,i=i?i+g:g)}if(this.root.walk(t,r,o),o.insertLines(i,c),this.checkEdits){const u=o.lineIndex.getText(0,o.lineIndex.getLength());w.assert(s===u,"buffer edit mismatch")}return o.lineIndex}}static buildTreeFromBottom(t){if(t.length0?i[s]=o:i.pop(),{lines:i,lineMap:r}}},DC=class J2e{constructor(t=[]){this.children=t,this.totalChars=0,this.totalLines=0,t.length&&this.updateCounts()}isLeaf(){return!1}updateCounts(){this.totalChars=0,this.totalLines=0;for(const t of this.children)this.totalChars+=t.charCount(),this.totalLines+=t.lineCount()}execWalk(t,r,i,s,o){return i.pre&&i.pre(t,r,this.children[s],this,o),i.goSubtree?(this.children[s].walk(t,r,i),i.post&&i.post(t,r,this.children[s],this,o)):i.goSubtree=!0,i.done}skipChild(t,r,i,s,o){s.pre&&!s.done&&(s.pre(t,r,this.children[i],this,o),s.goSubtree=!0)}walk(t,r,i){let s=0,o=this.children[s].charCount(),c=t;for(;c>=o;)this.skipChild(c,r,s,i,0),c-=o,s++,o=this.children[s].charCount();if(c+r<=o){if(this.execWalk(c,r,i,s,2))return}else{if(this.execWalk(c,o-c,i,s,1))return;let u=r-(o-c);for(s++,o=this.children[s].charCount();u>o;){if(this.execWalk(0,o,i,s,3))return;u-=o,s++,o=this.children[s].charCount()}if(u>0&&this.execWalk(0,u,i,s,4))return}if(i.pre){const u=this.children.length;if(sr)return o.isLeaf()?{oneBasedLine:t,zeroBasedColumn:r,lineText:o.text}:o.charOffsetToLineInfo(t,r);r-=o.charCount(),t+=o.lineCount()}const i=this.lineCount();if(i===0)return{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0};const s=w.checkDefined(this.lineNumberToInfo(i,0).leaf);return{oneBasedLine:i,zeroBasedColumn:s.charCount(),lineText:void 0}}lineNumberToInfo(t,r){for(const i of this.children){const s=i.lineCount();if(s>=t)return i.isLeaf()?{position:r,leaf:i}:i.lineNumberToInfo(t,r);t-=s,r+=i.charCount()}return{position:r,leaf:void 0}}splitAfter(t){let r;const i=this.children.length;t++;const s=t;if(t=0;x--)f[x].children.length===0&&f.pop()}c&&f.push(c),this.updateCounts();for(let d=0;d{(this.packageInstalledPromise??(this.packageInstalledPromise=new Map)).set(this.packageInstallId,{resolve:s,reject:o})});return this.installer.send(r),i}attach(t){this.projectService=t,this.installer=this.createInstallerProcess()}onProjectClosed(t){this.installer.send({projectName:t.getProjectName(),kind:"closeProject"})}enqueueInstallTypingsRequest(t,r,i){const s=uhe(t,r,i);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${g2(s)}`),this.activeRequestCount0?this.activeRequestCount--:w.fail("TIAdapter:: Received too many responses");!this.requestQueue.isEmpty();){const s=this.requestQueue.dequeue();if(this.requestMap.get(s.projectName)===s){this.requestMap.delete(s.projectName),this.scheduleRequest(s);break}this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Skipping defunct request for: ${s.projectName}`)}this.projectService.updateTypingsForProject(t),this.event(t,"setTypings");break}case sD:this.projectService.watchTypingLocations(t);break}}scheduleRequest(t){this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling request for: ${t.projectName}`),this.activeRequestCount++,this.host.setTimeout(()=>{this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Sending request:${g2(t)}`),this.installer.send(t)},TJe.requestDelayMillis,`${t.projectName}::${t.kind}`)}},i0e.requestDelayMillis=100,s0e=i0e}}),iIe={};Ye(iIe,{ActionInvalidate:()=>Y7,ActionPackageInstalled:()=>Z7,ActionSet:()=>Q7,ActionWatchTypingLocations:()=>sD,Arguments:()=>SX,AutoImportProviderProject:()=>hee,AuxiliaryProject:()=>mee,CharRangeSection:()=>Aee,CloseFileWatcherEvent:()=>eJ,CommandNames:()=>e0e,ConfigFileDiagEvent:()=>XB,ConfiguredProject:()=>yee,CreateDirectoryWatcherEvent:()=>KB,CreateFileWatcherEvent:()=>ZB,Errors:()=>My,EventBeginInstallTypes:()=>zR,EventEndInstallTypes:()=>UR,EventInitializationFailed:()=>bX,EventTypesRegistry:()=>JR,ExternalProject:()=>UB,GcTimer:()=>cee,InferredProject:()=>dee,LargeFileReferencedEvent:()=>$B,LineIndex:()=>OD,LineLeaf:()=>v5,LineNode:()=>DC,LogLevel:()=>iee,Msg:()=>see,OpenFileInfoTelemetryEvent:()=>xee,Project:()=>Gx,ProjectInfoTelemetryEvent:()=>YB,ProjectKind:()=>ND,ProjectLanguageServiceStateEvent:()=>QB,ProjectLoadingFinishEvent:()=>GB,ProjectLoadingStartEvent:()=>HB,ProjectReferenceProjectLoadKind:()=>Cee,ProjectService:()=>Eee,ProjectsUpdatedInBackgroundEvent:()=>g5,ScriptInfo:()=>_ee,ScriptVersionCache:()=>iJ,Session:()=>n0e,TextStorage:()=>uee,ThrottledOperations:()=>oee,TypingsCache:()=>fee,TypingsInstallerAdapter:()=>s0e,allFilesAreJsOrDts:()=>Ihe,allRootFilesAreJsOrDts:()=>Nhe,asNormalizedPath:()=>O7e,convertCompilerOptions:()=>VB,convertFormatOptions:()=>R3,convertScriptKindName:()=>bee,convertTypeAcquisition:()=>Lhe,convertUserPreferences:()=>Mhe,convertWatchOptions:()=>m5,countEachFileTypes:()=>p5,createInstallTypingsRequest:()=>uhe,createModuleSpecifierCache:()=>Hhe,createNormalizedPathMap:()=>F7e,createPackageJsonCache:()=>Ghe,createSortedArray:()=>mhe,emptyArray:()=>Rl,findArgument:()=>S4e,forEachResolvedProjectReferenceProject:()=>j3,formatDiagnosticToProtocol:()=>y5,formatMessage:()=>$he,getBaseConfigFileName:()=>aee,getLocationInNewDocument:()=>Zhe,hasArgument:()=>b4e,hasNoTypeScriptSource:()=>Ohe,indent:()=>iD,isBackgroundProject:()=>d5,isConfigFile:()=>Uhe,isConfiguredProject:()=>x2,isDynamicFileName:()=>f5,isExternalProject:()=>pee,isInferredProject:()=>M3,isInferredProjectName:()=>_he,makeAutoImportProviderProjectName:()=>phe,makeAuxiliaryProjectName:()=>dhe,makeInferredProjectName:()=>fhe,maxFileSize:()=>qB,maxProgramSizeForNonTsFiles:()=>WB,normalizedPathToPath:()=>_5,nowString:()=>x4e,nullCancellationToken:()=>Khe,nullTypingsInstaller:()=>zB,projectContainsInfoDirectly:()=>PC,protocol:()=>Ahe,removeSorted:()=>L7e,stringifyIndented:()=>g2,toEvent:()=>Xhe,toNormalizedPath:()=>Ec,tryConvertScriptKindName:()=>vee,typingsInstaller:()=>che,updateProjectIfDirty:()=>vp});var $x=K({"src/server/_namespaces/ts.server.ts"(){VR(),lhe(),Fct(),Lct(),Mct(),Rct(),Jct(),Wct(),$ct(),Kct(),elt(),tlt(),vlt(),blt(),Slt()}}),sIe={};Ye(sIe,{ANONYMOUS:()=>Oj,AccessFlags:()=>XU,AssertionLevel:()=>bU,AssignmentDeclarationKind:()=>iV,AssignmentKind:()=>Hq,Associativity:()=>$q,BreakpointResolver:()=>GY,BuilderFileEmit:()=>Y$,BuilderProgramKind:()=>Z$,BuilderState:()=>om,BundleFileSectionKind:()=>xV,CallHierarchy:()=>vC,CharacterCodes:()=>mV,CheckFlags:()=>WU,CheckMode:()=>qM,ClassificationType:()=>JX,ClassificationTypeNames:()=>BX,CommentDirectiveType:()=>DU,Comparison:()=>Lt,CompletionInfoFlags:()=>IX,CompletionTriggerKind:()=>PX,Completions:()=>kC,ContainerFlags:()=>JG,ContextFlags:()=>LU,Debug:()=>w,DiagnosticCategory:()=>V8,Diagnostics:()=>p,DocumentHighlights:()=>Mj,ElementFlags:()=>$U,EmitFlags:()=>tF,EmitHint:()=>vV,EmitOnly:()=>NU,EndOfLineState:()=>LX,EnumKind:()=>VU,ExitStatus:()=>IU,ExportKind:()=>$Q,Extension:()=>gV,ExternalEmitHelpers:()=>yV,FileIncludeKind:()=>HO,FilePreprocessingDiagnosticsKind:()=>AU,FileSystemEntryKind:()=>wV,FileWatcherEventKind:()=>PV,FindAllReferences:()=>Qo,FlattenLevel:()=>i$,FlowFlags:()=>U8,ForegroundColorEscapeSequences:()=>V$,FunctionFlags:()=>Gq,GeneratedIdentifierFlags:()=>qO,GetLiteralTextFlags:()=>Vq,GoToDefinition:()=>N3,HighlightSpanKind:()=>DX,IdentifierNameMap:()=>cC,IdentifierNameMultiMap:()=>r$,ImportKind:()=>GQ,ImportsNotUsedAsValues:()=>uV,IndentStyle:()=>AX,IndexFlags:()=>QU,IndexKind:()=>KU,InferenceFlags:()=>nV,InferencePriority:()=>tV,InlayHintKind:()=>wX,InlayHints:()=>BK,InternalEmitFlags:()=>hV,InternalSymbolName:()=>qU,InvalidatedProjectKind:()=>vX,JSDocParsingMode:()=>CV,JsDoc:()=>S2,JsTyping:()=>dg,JsxEmit:()=>lV,JsxFlags:()=>PU,JsxReferenceKind:()=>YU,LanguageServiceMode:()=>kX,LanguageVariant:()=>pV,LexicalEnvironmentFlags:()=>SV,ListFormat:()=>TV,LogLevel:()=>xU,MemberOverrideStatus:()=>OU,ModifierFlags:()=>VO,ModuleDetectionKind:()=>sV,ModuleInstanceState:()=>BG,ModuleKind:()=>rP,ModuleResolutionKind:()=>O6,ModuleSpecifierEnding:()=>rH,NavigateTo:()=>Efe,NavigationBar:()=>Mfe,NewLineKind:()=>_V,NodeBuilderFlags:()=>MU,NodeCheckFlags:()=>HU,NodeFactoryFlags:()=>_H,NodeFlags:()=>UO,NodeResolutionFeatures:()=>MG,ObjectFlags:()=>QO,OperationCanceledException:()=>I6,OperatorPrecedence:()=>Xq,OrganizeImports:()=>cm,OrganizeImportsMode:()=>EX,OuterExpressionKinds:()=>bV,OutliningElementsCollector:()=>VK,OutliningSpanKind:()=>OX,OutputFileType:()=>FX,PackageJsonAutoImportPreference:()=>TX,PackageJsonDependencyGroup:()=>xX,PatternMatchKind:()=>Rj,PollingInterval:()=>nF,PollingWatchKind:()=>cV,PragmaKindFlags:()=>kV,PrivateIdentifierKind:()=>yH,ProcessLevel:()=>c$,ProgramUpdateLevel:()=>k$,QuotePreference:()=>zQ,RelationComparisonResult:()=>WO,Rename:()=>FB,ScriptElementKind:()=>RX,ScriptElementKindModifier:()=>jX,ScriptKind:()=>ZO,ScriptSnapshot:()=>qR,ScriptTarget:()=>fV,SemanticClassificationFormat:()=>CX,SemanticMeaning:()=>JQ,SemicolonPreference:()=>NX,SignatureCheckMode:()=>HM,SignatureFlags:()=>YO,SignatureHelp:()=>r5,SignatureKind:()=>ZU,SmartSelectionRange:()=>HK,SnippetKind:()=>eF,SortKind:()=>vU,StructureIsReused:()=>GO,SymbolAccessibility:()=>BU,SymbolDisplay:()=>Ly,SymbolDisplayPartKind:()=>eI,SymbolFlags:()=>$O,SymbolFormatFlags:()=>jU,SyntaxKind:()=>zO,SyntheticSymbolKind:()=>JU,Ternary:()=>rV,ThrottledCancellationToken:()=>HY,TokenClass:()=>MX,TokenFlags:()=>wU,TransformFlags:()=>KO,TypeFacts:()=>WM,TypeFlags:()=>XO,TypeFormatFlags:()=>RU,TypeMapKind:()=>eV,TypePredicateKind:()=>zU,TypeReferenceSerializationKind:()=>UU,UnionReduction:()=>FU,UpToDateStatusType:()=>mX,VarianceFlags:()=>GU,Version:()=>$d,VersionRange:()=>B8,WatchDirectoryFlags:()=>dV,WatchDirectoryKind:()=>oV,WatchFileKind:()=>aV,WatchLogLevel:()=>C$,WatchType:()=>tu,accessPrivateIdentifier:()=>Tle,addDisposableResourceHelper:()=>VL,addEmitFlags:()=>og,addEmitHelper:()=>Rk,addEmitHelpers:()=>S0,addInternalEmitFlags:()=>Lk,addNodeFactoryPatcher:()=>Vxe,addObjectAllocatorPatcher:()=>Cae,addRange:()=>Mr,addRelatedInfo:()=>Ua,addSyntheticLeadingComment:()=>gw,addSyntheticTrailingComment:()=>gL,addToSeen:()=>nm,advancedAsyncSuperHelper:()=>UN,affectsDeclarationPathOptionDeclarations:()=>yG,affectsEmitOptionDeclarations:()=>hG,allKeysStartWithDot:()=>RM,altDirectorySeparator:()=>Y8,and:()=>LO,append:()=>gn,appendIfUnique:()=>w_,arrayFrom:()=>Vs,arrayIsEqualTo:()=>Ac,arrayIsHomogeneous:()=>qae,arrayIsSorted:()=>Go,arrayOf:()=>yre,arrayReverseIterator:()=>sU,arrayToMap:()=>ab,arrayToMultiMap:()=>M8,arrayToNumericMap:()=>bre,arraysEqual:()=>su,assertType:()=>Tbe,assign:()=>C6,assignHelper:()=>TL,asyncDelegator:()=>CL,asyncGeneratorHelper:()=>kL,asyncSuperHelper:()=>zN,asyncValues:()=>EL,attachFileToDiagnostics:()=>Ak,awaitHelper:()=>jk,awaiterHelper:()=>wL,base64decode:()=>dae,base64encode:()=>pae,binarySearch:()=>ay,binarySearchKey:()=>rk,bindSourceFile:()=>Zce,breakIntoCharacterSpans:()=>vfe,breakIntoWordSpans:()=>bfe,buildLinkParts:()=>V_e,buildOpts:()=>EM,buildOverload:()=>P7e,bundlerModuleNameResolver:()=>Uce,canBeConvertedToAsync:()=>sY,canHaveDecorators:()=>Nx,canHaveExportModifier:()=>TN,canHaveFlowNode:()=>YA,canHaveIllegalDecorators:()=>GH,canHaveIllegalModifiers:()=>nce,canHaveIllegalType:()=>yTe,canHaveIllegalTypeParameters:()=>tce,canHaveJSDoc:()=>ZA,canHaveLocals:()=>Ug,canHaveModifiers:()=>sm,canHaveSymbol:()=>Km,canJsonReportNoInputFiles:()=>Lw,canProduceDiagnostics:()=>aR,canUsePropertyAccess:()=>Bq,canWatchAffectingLocation:()=>Aue,canWatchAtTypes:()=>Due,canWatchDirectoryOrFile:()=>PR,cartesianProduct:()=>Are,cast:()=>pa,chainBundle:()=>am,chainDiagnosticMessages:()=>Hs,changeAnyExtension:()=>X8,changeCompilerHostLikeToUseCache:()=>U7,changeExtension:()=>n2,changeFullExtension:()=>Xre,changesAffectModuleResolution:()=>IF,changesAffectingProgramStructure:()=>Yie,childIsDecorated:()=>wP,classElementOrClassElementParameterIsDecorated:()=>IW,classHasClassThisAssignment:()=>s$,classHasDeclaredOrExplicitlyAssignedName:()=>a$,classHasExplicitlyAssignedName:()=>rR,classOrConstructorParameterIsDecorated:()=>gy,classPrivateFieldGetHelper:()=>JL,classPrivateFieldInHelper:()=>UL,classPrivateFieldSetHelper:()=>zL,classicNameResolver:()=>$ce,classifier:()=>Npe,cleanExtendedConfigCache:()=>dR,clear:()=>Al,clearMap:()=>wf,clearSharedExtendedConfigFileWatcher:()=>S$,climbPastPropertyAccess:()=>GR,climbPastPropertyOrElementAccess:()=>g_e,clone:()=>uU,cloneCompilerOptions:()=>sQ,closeFileWatcher:()=>Cm,closeFileWatcherOf:()=>ad,codefix:()=>a_,collapseTextChangeRangesAcrossMultipleVersions:()=>lie,collectExternalModuleInfo:()=>KG,combine:()=>Gd,combinePaths:()=>Zr,commentPragmas:()=>W8,commonOptionsWithBuild:()=>y7,commonPackageFolders:()=>Zq,compact:()=>Zl,compareBooleans:()=>s1,compareDataObjects:()=>xq,compareDiagnostics:()=>YP,compareDiagnosticsSkipRelatedInformation:()=>R9,compareEmitHelpers:()=>Soe,compareNumberOfDirectorySeparators:()=>bN,comparePaths:()=>u0,comparePathsCaseInsensitive:()=>Qbe,comparePathsCaseSensitive:()=>Xbe,comparePatternKeys:()=>FG,compareProperties:()=>Ere,compareStringsCaseInsensitive:()=>OO,compareStringsCaseInsensitiveEslintCompatible:()=>Tre,compareStringsCaseSensitive:()=>p_,compareStringsCaseSensitiveUI:()=>j8,compareTextSpans:()=>IO,compareValues:()=>mc,compileOnSaveCommandLineOption:()=>g7,compilerOptionsAffectDeclarationPath:()=>Lae,compilerOptionsAffectEmit:()=>Fae,compilerOptionsAffectSemanticDiagnostics:()=>Oae,compilerOptionsDidYouMeanDiagnostics:()=>S7,compilerOptionsIndicateEsModules:()=>_Q,compose:()=>Sbe,computeCommonSourceDirectoryOfFilenames:()=>cue,computeLineAndCharacterOfPosition:()=>L6,computeLineOfPosition:()=>oP,computeLineStarts:()=>_k,computePositionOfLineAndCharacter:()=>lF,computeSignature:()=>Rx,computeSignatureWithDiagnostics:()=>G$,computeSuggestionDiagnostics:()=>nY,computedOptions:()=>Ll,concatenate:()=>zn,concatenateDiagnosticMessageChains:()=>Dae,consumesNodeCoreModules:()=>Ej,contains:()=>Ai,containsIgnoredPath:()=>aw,containsObjectRestOrSpread:()=>o7,containsParseError:()=>G6,containsPath:()=>Xd,convertCompilerOptionsForTelemetry:()=>Cce,convertCompilerOptionsFromJson:()=>Ske,convertJsonOption:()=>Ix,convertToBase64:()=>fae,convertToJson:()=>p7,convertToObject:()=>bce,convertToOptionsWithAbsolutePaths:()=>_G,convertToRelativePath:()=>aP,convertToTSConfig:()=>oke,convertTypeAcquisitionFromJson:()=>xke,copyComments:()=>zx,copyEntries:()=>OF,copyLeadingComments:()=>y3,copyProperties:()=>_U,copyTrailingAsLeadingComments:()=>bI,copyTrailingComments:()=>dD,couldStartTrivia:()=>Kre,countWhere:()=>Bc,createAbstractBuilder:()=>w6e,createAccessorPropertyBackingField:()=>XH,createAccessorPropertyGetRedirector:()=>uce,createAccessorPropertySetRedirector:()=>_ce,createBaseNodeFactory:()=>soe,createBinaryExpressionTrampoline:()=>dM,createBindingHelper:()=>N4,createBuildInfo:()=>R7,createBuilderProgram:()=>$$,createBuilderProgramUsingProgramBuildInfo:()=>Pue,createBuilderStatusReporter:()=>Wue,createCacheWithRedirects:()=>EG,createCacheableExportInfoMap:()=>WQ,createCachedDirectoryStructureHost:()=>fR,createClassNamedEvaluationHelperBlock:()=>Dle,createClassThisAssignmentBlock:()=>Ple,createClassifier:()=>q4e,createCommentDirectivesMap:()=>rse,createCompilerDiagnostic:()=>ll,createCompilerDiagnosticForInvalidCustomType:()=>mce,createCompilerDiagnosticFromMessageChain:()=>M9,createCompilerHost:()=>lue,createCompilerHostFromProgramHost:()=>_X,createCompilerHostWorker:()=>w$,createDetachedDiagnostic:()=>T4,createDiagnosticCollection:()=>d4,createDiagnosticForFileFromMessageChain:()=>PW,createDiagnosticForNode:()=>Rr,createDiagnosticForNodeArray:()=>Q6,createDiagnosticForNodeArrayFromMessageChain:()=>AA,createDiagnosticForNodeFromMessageChain:()=>m0,createDiagnosticForNodeInSourceFile:()=>Pd,createDiagnosticForRange:()=>mse,createDiagnosticMessageChainFromDiagnostic:()=>dse,createDiagnosticReporter:()=>G7,createDocumentPositionMapper:()=>hle,createDocumentRegistry:()=>cfe,createDocumentRegistryInternal:()=>YQ,createEmitAndSemanticDiagnosticsBuilderProgram:()=>K$,createEmitHelperFactory:()=>boe,createEmptyExports:()=>KN,createExpressionForJsxElement:()=>$oe,createExpressionForJsxFragment:()=>Xoe,createExpressionForObjectLiteralElementLike:()=>Qoe,createExpressionForPropertyName:()=>zH,createExpressionFromEntityName:()=>e7,createExternalHelpersImportDeclarationIfNeeded:()=>WH,createFileDiagnostic:()=>bu,createFileDiagnosticFromMessageChain:()=>UF,createForOfBindingStatement:()=>JH,createGetCanonicalFileName:()=>e_,createGetSourceFile:()=>E$,createGetSymbolAccessibilityDiagnosticForNode:()=>Py,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Kle,createGetSymbolWalker:()=>Kce,createIncrementalCompilerHost:()=>pX,createIncrementalProgram:()=>Uue,createInputFiles:()=>qxe,createInputFilesWithFilePaths:()=>lH,createInputFilesWithFileTexts:()=>uH,createJsxFactoryExpression:()=>BH,createLanguageService:()=>Cpe,createLanguageServiceSourceFile:()=>oB,createMemberAccessForPropertyName:()=>Ax,createModeAwareCache:()=>aC,createModeAwareCacheKey:()=>Jw,createModuleNotFoundChain:()=>FF,createModuleResolutionCache:()=>Q4,createModuleResolutionLoader:()=>F$,createModuleResolutionLoaderUsingGlobalCache:()=>Fue,createModuleSpecifierResolutionHost:()=>Jx,createMultiMap:()=>Dp,createNodeConverters:()=>ooe,createNodeFactory:()=>ON,createOptionNameMap:()=>hM,createOverload:()=>nee,createPackageJsonImportFilter:()=>hD,createPackageJsonInfo:()=>IQ,createParenthesizerRules:()=>aoe,createPatternMatcher:()=>pfe,createPrependNodes:()=>z$,createPrinter:()=>d2,createPrinterWithDefaults:()=>v$,createPrinterWithRemoveComments:()=>$b,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>b$,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>j7,createProgram:()=>vR,createProgramHost:()=>fX,createPropertyNameNodeForIdentifierOrLiteral:()=>eL,createQueue:()=>R8,createRange:()=>ed,createRedirectedBuilderProgram:()=>Q$,createResolutionCache:()=>tX,createRuntimeTypeSerializer:()=>Fle,createScanner:()=>fy,createSemanticDiagnosticsBuilderProgram:()=>P6e,createSet:()=>fU,createSolutionBuilder:()=>W6e,createSolutionBuilderHost:()=>U6e,createSolutionBuilderWithWatch:()=>q6e,createSolutionBuilderWithWatchHost:()=>V6e,createSortedArray:()=>Fo,createSourceFile:()=>l7,createSourceMapGenerator:()=>ple,createSourceMapSource:()=>Hxe,createSuperAccessVariableStatement:()=>sR,createSymbolTable:()=>ha,createSymlinkCache:()=>Dq,createSystemWatchFunctions:()=>qre,createTextChange:()=>_I,createTextChangeFromStartLength:()=>oj,createTextChangeRange:()=>oA,createTextRangeFromNode:()=>cQ,createTextRangeFromSpan:()=>aj,createTextSpan:()=>Ju,createTextSpanFromBounds:()=>Il,createTextSpanFromNode:()=>tf,createTextSpanFromRange:()=>B1,createTextSpanFromStringLiteralLikeContent:()=>oQ,createTextWriter:()=>uN,createTokenRange:()=>vq,createTypeChecker:()=>ole,createTypeReferenceDirectiveResolutionCache:()=>FM,createTypeReferenceResolutionLoader:()=>gR,createUnparsedSourceFile:()=>cH,createWatchCompilerHost:()=>B6e,createWatchCompilerHostOfConfigFile:()=>Bue,createWatchCompilerHostOfFilesAndCompilerOptions:()=>Jue,createWatchFactory:()=>uX,createWatchHost:()=>lX,createWatchProgram:()=>J6e,createWatchStatusReporter:()=>Lue,createWriteFileMeasuringIO:()=>P$,declarationNameToString:()=>Bo,decodeMappings:()=>QG,decodedTextSpanIntersectsWith:()=>aA,decorateHelper:()=>yL,deduplicate:()=>ks,defaultIncludeSpec:()=>DM,defaultInitCompilerOptions:()=>PM,defaultMaximumTruncationLength:()=>PN,detectSortCaseSensitivity:()=>tl,diagnosticCategoryName:()=>GS,diagnosticToString:()=>Vx,directoryProbablyExists:()=>km,directorySeparator:()=>yc,displayPart:()=>Nf,displayPartsToString:()=>zI,disposeEmitNodes:()=>fH,disposeResourcesHelper:()=>WL,documentSpansEqual:()=>gQ,dumpTracingLegend:()=>Ure,elementAt:()=>uy,elideNodes:()=>lce,emitComments:()=>tae,emitDetachedComments:()=>nae,emitFiles:()=>lR,emitFilesAndReportErrors:()=>NR,emitFilesAndReportErrorsAndGetExitStatus:()=>jue,emitModuleKindIsNonNodeESM:()=>j9,emitNewLineBeforeLeadingCommentOfPosition:()=>eae,emitNewLineBeforeLeadingComments:()=>Zse,emitNewLineBeforeLeadingCommentsOfPosition:()=>Kse,emitSkippedWithNoDiagnostics:()=>kR,emitUsingBuildInfo:()=>iue,emptyArray:()=>Ke,emptyFileSystemEntries:()=>fL,emptyMap:()=>BO,emptyOptions:()=>cd,emptySet:()=>Ire,endsWith:()=>Jc,ensurePathIsNonModuleName:()=>ob,ensureScriptKind:()=>G9,ensureTrailingDirectorySeparator:()=>ou,entityNameToString:()=>Vf,enumerateInsertsAndDeletes:()=>RO,equalOwnProperties:()=>vre,equateStringsCaseInsensitive:()=>jv,equateStringsCaseSensitive:()=>WS,equateValues:()=>ly,esDecorateHelper:()=>SL,escapeJsxAttributeString:()=>sq,escapeLeadingUnderscores:()=>Nc,escapeNonAsciiString:()=>lN,escapeSnippetText:()=>Ab,escapeString:()=>Mh,escapeTemplateSubstitution:()=>rq,every:()=>Pn,expandPreOrPostfixIncrementOrDecrementExpression:()=>cM,explainFiles:()=>iX,explainIfFileIsRedirectAndImpliedFormat:()=>sX,exportAssignmentIsAlias:()=>u4,exportStarHelper:()=>BL,expressionResultIsUnused:()=>Gae,extend:()=>NO,extendsHelper:()=>DL,extensionFromPath:()=>tw,extensionIsTS:()=>Q9,extensionsNotSupportingExtensionlessResolution:()=>IN,externalHelpersModuleNameText:()=>E1,factory:()=>L,fileExtensionIs:()=>zc,fileExtensionIsOneOf:()=>Vl,fileIncludeReasonToDiagnostics:()=>cX,fileShouldUseJavaScriptRequire:()=>BQ,filter:()=>vr,filterMutate:()=>Ch,filterSemanticDiagnostics:()=>bR,find:()=>Cn,findAncestor:()=>Vn,findBestPatternMatch:()=>gU,findChildOfKind:()=>wo,findComputedPropertyNameCacheAssignment:()=>mM,findConfigFile:()=>oue,findContainingList:()=>ZR,findDiagnosticForNode:()=>efe,findFirstNonJsxWhitespaceToken:()=>S_e,findIndex:()=>Gs,findLast:()=>Ro,findLastIndex:()=>lf,findListItemInfo:()=>b_e,findMap:()=>Do,findModifier:()=>m3,findNextToken:()=>Yb,findPackageJson:()=>Z_e,findPackageJsons:()=>NQ,findPrecedingMatchingToken:()=>ij,findPrecedingToken:()=>Hl,findSuperStatementIndexPath:()=>eR,findTokenOnLeftOfPosition:()=>tj,findUseStrictPrologue:()=>VH,first:()=>Ka,firstDefined:()=>li,firstDefinedIterator:()=>Js,firstIterator:()=>oU,firstOrOnly:()=>MQ,firstOrUndefined:()=>hu,firstOrUndefinedIterator:()=>wO,fixupCompilerOptions:()=>oY,flatMap:()=>Ys,flatMapIterator:()=>sb,flatMapToMutable:()=>Yp,flatten:()=>P_,flattenCommaList:()=>fce,flattenDestructuringAssignment:()=>Fx,flattenDestructuringBinding:()=>Gb,flattenDiagnosticMessageText:()=>fg,forEach:()=>dt,forEachAncestor:()=>Zie,forEachAncestorDirectory:()=>Yd,forEachChild:()=>Xs,forEachChildRecursively:()=>Ow,forEachEmittedFile:()=>m$,forEachEnclosingBlockScopeContainer:()=>_se,forEachEntry:()=>cu,forEachExternalModuleToImportFrom:()=>HQ,forEachImportClauseDeclaration:()=>_9,forEachKey:()=>Wg,forEachLeadingCommentRange:()=>tA,forEachNameInAccessChainWalkingLeft:()=>Tae,forEachPropertyAssignment:()=>e4,forEachResolvedProjectReference:()=>M$,forEachReturnStatement:()=>gb,forEachRight:()=>bs,forEachTrailingCommentRange:()=>nA,forEachTsConfigPropArray:()=>FA,forEachUnique:()=>yQ,forEachYieldExpression:()=>hse,forSomeAncestorDirectory:()=>dxe,formatColorAndReset:()=>Xb,formatDiagnostic:()=>D$,formatDiagnostics:()=>c6e,formatDiagnosticsWithColorAndContext:()=>uue,formatGeneratedName:()=>l2,formatGeneratedNamePart:()=>q4,formatLocation:()=>A$,formatMessage:()=>Eq,formatStringFromArgs:()=>Bh,formatting:()=>nu,fullTripleSlashAMDReferencePathRegEx:()=>qq,fullTripleSlashReferencePathRegEx:()=>Wq,generateDjb2Hash:()=>iP,generateTSConfig:()=>fke,generatorHelper:()=>ML,getAdjustedReferenceLocation:()=>KX,getAdjustedRenameLocation:()=>ej,getAliasDeclarationFromName:()=>HW,getAllAccessorDeclarations:()=>dx,getAllDecoratorsOfClass:()=>t$,getAllDecoratorsOfClassElement:()=>nR,getAllJSDocTags:()=>hF,getAllJSDocTagsOfKind:()=>CSe,getAllKeys:()=>vbe,getAllProjectOutputs:()=>cR,getAllSuperTypeNodes:()=>OP,getAllUnscopedEmitHelpers:()=>hH,getAllowJSCompilerOption:()=>P1,getAllowSyntheticDefaultImports:()=>hx,getAncestor:()=>e2,getAnyExtensionFromPath:()=>F6,getAreDeclarationMapsEnabled:()=>DN,getAssignedExpandoInitializer:()=>vk,getAssignedName:()=>mF,getAssignedNameOfIdentifier:()=>Gw,getAssignmentDeclarationKind:()=>rl,getAssignmentDeclarationPropertyAccessKind:()=>HA,getAssignmentTargetKind:()=>Tk,getAutomaticTypeDirectiveNames:()=>IM,getBaseFileName:()=>xl,getBinaryOperatorPrecedence:()=>cN,getBuildInfo:()=>uR,getBuildInfoFileVersionMap:()=>X$,getBuildInfoText:()=>rue,getBuildOrderFromAnyBuildOrder:()=>MR,getBuilderCreationParameters:()=>CR,getBuilderFileEmit:()=>j1,getCheckFlags:()=>Uc,getClassExtendsHeritageElement:()=>Sb,getClassLikeDeclarationOfSymbol:()=>v0,getCombinedLocalAndExportSymbolFlags:()=>b4,getCombinedModifierFlags:()=>Vv,getCombinedNodeFlags:()=>py,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>JV,getCommentRange:()=>cg,getCommonSourceDirectory:()=>eD,getCommonSourceDirectoryOfConfig:()=>n3,getCompilerOptionValue:()=>J9,getCompilerOptionsDiffValue:()=>uke,getConditions:()=>M1,getConfigFileParsingDiagnostics:()=>Mx,getConstantValue:()=>poe,getContainerFlags:()=>jG,getContainerNode:()=>Bx,getContainingClass:()=>Du,getContainingClassExcludingClassDecorators:()=>YF,getContainingClassStaticBlock:()=>Ese,getContainingFunction:()=>hp,getContainingFunctionDeclaration:()=>Cse,getContainingFunctionOrClassStaticBlock:()=>QF,getContainingNodeArray:()=>$ae,getContainingObjectLiteralElement:()=>UI,getContextualTypeFromParent:()=>yj,getContextualTypeFromParentOrAncestorTypeNode:()=>KR,getCurrentTime:()=>X7,getDeclarationDiagnostics:()=>eue,getDeclarationEmitExtensionForPath:()=>b9,getDeclarationEmitOutputFilePath:()=>Gse,getDeclarationEmitOutputFilePathWorker:()=>v9,getDeclarationFileExtension:()=>KH,getDeclarationFromName:()=>IP,getDeclarationModifierFlagsFromSymbol:()=>nd,getDeclarationOfKind:()=>Cc,getDeclarationsOfKind:()=>Xie,getDeclaredExpandoInitializer:()=>UA,getDecorators:()=>_1,getDefaultCompilerOptions:()=>aB,getDefaultExportInfoWorker:()=>Lj,getDefaultFormatCodeSettings:()=>WR,getDefaultLibFileName:()=>iA,getDefaultLibFilePath:()=>Epe,getDefaultLikeExportInfo:()=>Fj,getDiagnosticText:()=>eke,getDiagnosticsWithinSpan:()=>tfe,getDirectoryPath:()=>oi,getDirectoryToWatchFailedLookupLocation:()=>eX,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>Iue,getDocumentPositionMapper:()=>tY,getDocumentSpansEqualityComparer:()=>hQ,getESModuleInterop:()=>$g,getEditsForFileRename:()=>ufe,getEffectiveBaseTypeNode:()=>tg,getEffectiveConstraintOfTypeParameter:()=>J6,getEffectiveContainerForJSDocTemplateTag:()=>f9,getEffectiveImplementsTypeNodes:()=>_4,getEffectiveInitializer:()=>zA,getEffectiveJSDocHost:()=>Kv,getEffectiveModifierFlags:()=>M_,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>aae,getEffectiveModifierFlagsNoCache:()=>oae,getEffectiveReturnTypeNode:()=>Id,getEffectiveSetAccessorTypeAnnotationNode:()=>Yse,getEffectiveTypeAnnotationNode:()=>zu,getEffectiveTypeParameterDeclarations:()=>f1,getEffectiveTypeRoots:()=>Bw,getElementOrPropertyAccessArgumentExpressionOrName:()=>u9,getElementOrPropertyAccessName:()=>g0,getElementsOfBindingOrAssignmentPattern:()=>W4,getEmitDeclarations:()=>rd,getEmitFlags:()=>Ya,getEmitHelpers:()=>hL,getEmitModuleDetectionKind:()=>Qq,getEmitModuleKind:()=>r_,getEmitModuleResolutionKind:()=>j_,getEmitScriptTarget:()=>go,getEmitStandardClassFields:()=>Iae,getEnclosingBlockScopeContainer:()=>qg,getEnclosingContainer:()=>EW,getEncodedSemanticClassifications:()=>XQ,getEncodedSyntacticClassifications:()=>QQ,getEndLinePosition:()=>EA,getEntityNameFromTypeNode:()=>RA,getEntrypointsFromPackageJsonInfo:()=>NG,getErrorCountForSummary:()=>DR,getErrorSpanForNode:()=>rx,getErrorSummaryText:()=>Mue,getEscapedTextOfIdentifierOrLiteral:()=>MP,getEscapedTextOfJsxAttributeName:()=>uw,getEscapedTextOfJsxNamespacedName:()=>Ok,getExpandoInitializer:()=>Yv,getExportAssignmentExpression:()=>GW,getExportInfoMap:()=>CI,getExportNeedsImportStarHelper:()=>yle,getExpressionAssociativity:()=>eq,getExpressionPrecedence:()=>jP,getExternalHelpersModuleName:()=>n7,getExternalModuleImportEqualsDeclarationExpression:()=>DP,getExternalModuleName:()=>a4,getExternalModuleNameFromDeclaration:()=>qse,getExternalModuleNameFromPath:()=>oq,getExternalModuleNameLiteral:()=>nC,getExternalModuleRequireArgument:()=>FW,getFallbackOptions:()=>z7,getFileEmitOutput:()=>hue,getFileMatcherPatterns:()=>H9,getFileNamesFromConfigSpecs:()=>Mw,getFileWatcherEventKind:()=>EV,getFilesInErrorForSummary:()=>AR,getFirstConstructorWithBody:()=>Rh,getFirstIdentifier:()=>yp,getFirstNonSpaceCharacterPosition:()=>H_e,getFirstProjectOutput:()=>y$,getFixableErrorSpanExpression:()=>FQ,getFormatCodeSettingsForWriting:()=>Aj,getFullWidth:()=>kA,getFunctionFlags:()=>lu,getHeritageClause:()=>iN,getHostSignatureFromJSDoc:()=>Zv,getIdentifierAutoGenerate:()=>Yxe,getIdentifierGeneratedImportReference:()=>voe,getIdentifierTypeArguments:()=>yx,getImmediatelyInvokedFunctionExpression:()=>sx,getImpliedNodeFormatForFile:()=>q7,getImpliedNodeFormatForFileWorker:()=>B$,getImportNeedsImportDefaultHelper:()=>ZG,getImportNeedsImportStarHelper:()=>ZM,getIndentSize:()=>g4,getIndentString:()=>h9,getInferredLibraryNameResolveFrom:()=>yR,getInitializedVariables:()=>$P,getInitializerOfBinaryExpression:()=>BW,getInitializerOfBindingOrAssignmentElement:()=>i7,getInterfaceBaseTypeNodes:()=>FP,getInternalEmitFlags:()=>Kd,getInvokedExpression:()=>e9,getIsolatedModules:()=>Ld,getJSDocAugmentsTag:()=>yie,getJSDocClassTag:()=>UV,getJSDocCommentRanges:()=>DW,getJSDocCommentsAndTags:()=>zW,getJSDocDeprecatedTag:()=>VV,getJSDocDeprecatedTagNoCache:()=>Cie,getJSDocEnumTag:()=>WV,getJSDocHost:()=>lx,getJSDocImplementsTags:()=>vie,getJSDocOverloadTags:()=>VW,getJSDocOverrideTagNoCache:()=>kie,getJSDocParameterTags:()=>B6,getJSDocParameterTagsNoCache:()=>die,getJSDocPrivateTag:()=>bSe,getJSDocPrivateTagNoCache:()=>Sie,getJSDocProtectedTag:()=>SSe,getJSDocProtectedTagNoCache:()=>xie,getJSDocPublicTag:()=>vSe,getJSDocPublicTagNoCache:()=>bie,getJSDocReadonlyTag:()=>xSe,getJSDocReadonlyTagNoCache:()=>Tie,getJSDocReturnTag:()=>Eie,getJSDocReturnType:()=>lA,getJSDocRoot:()=>l4,getJSDocSatisfiesExpressionType:()=>zq,getJSDocSatisfiesTag:()=>qV,getJSDocTags:()=>Gv,getJSDocTagsNoCache:()=>kSe,getJSDocTemplateTag:()=>TSe,getJSDocThisTag:()=>gF,getJSDocType:()=>Hv,getJSDocTypeAliasName:()=>HH,getJSDocTypeAssertionType:()=>uM,getJSDocTypeParameterDeclarations:()=>k9,getJSDocTypeParameterTags:()=>mie,getJSDocTypeParameterTagsNoCache:()=>gie,getJSDocTypeTag:()=>qv,getJSXImplicitImportBase:()=>U9,getJSXRuntimeImport:()=>V9,getJSXTransformEnabled:()=>z9,getKeyForCompilerOptions:()=>CG,getLanguageVariant:()=>hN,getLastChild:()=>Tq,getLeadingCommentRanges:()=>Ph,getLeadingCommentRangesOfNode:()=>wW,getLeftmostAccessExpression:()=>S4,getLeftmostExpression:()=>x4,getLibraryNameFromLibFileName:()=>R$,getLineAndCharacterOfPosition:()=>Ao,getLineInfo:()=>$G,getLineOfLocalPosition:()=>JP,getLineOfLocalPositionFromLineMap:()=>fx,getLineStartPositionForPosition:()=>jd,getLineStarts:()=>_0,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>vae,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>yae,getLinesBetweenPositions:()=>cP,getLinesBetweenRangeEndAndRangeStart:()=>bq,getLinesBetweenRangeEndPositions:()=>fxe,getLiteralText:()=>ise,getLocalNameForExternalImport:()=>V4,getLocalSymbolForExportDefault:()=>v4,getLocaleSpecificMessage:()=>zs,getLocaleTimeString:()=>$7,getMappedContextSpan:()=>vQ,getMappedDocumentSpan:()=>dj,getMappedLocation:()=>_D,getMatchedFileSpec:()=>aX,getMatchedIncludeSpec:()=>oX,getMeaningFromDeclaration:()=>tI,getMeaningFromLocation:()=>jx,getMembersOfDeclaration:()=>yse,getModeForFileReference:()=>V7,getModeForResolutionAtIndex:()=>_ue,getModeForUsageLocation:()=>I$,getModifiedTime:()=>ck,getModifiers:()=>lb,getModuleInstanceState:()=>C0,getModuleNameStringLiteralAt:()=>H7,getModuleSpecifierEndingPreference:()=>Bae,getModuleSpecifierResolverHost:()=>fQ,getNameForExportedSymbol:()=>Pj,getNameFromImportAttribute:()=>iL,getNameFromIndexInfo:()=>fse,getNameFromPropertyName:()=>dI,getNameOfAccessExpression:()=>Cq,getNameOfCompilerOptionValue:()=>uG,getNameOfDeclaration:()=>Ms,getNameOfExpando:()=>RW,getNameOfJSDocTypedef:()=>pie,getNameOrArgument:()=>qA,getNameTable:()=>zY,getNamesForExportedSymbol:()=>nfe,getNamespaceDeclarationNode:()=>o4,getNewLineCharacter:()=>Sy,getNewLineKind:()=>kI,getNewLineOrDefaultFromHost:()=>Iy,getNewTargetContainer:()=>wse,getNextJSDocCommentLocation:()=>UW,getNodeForGeneratedName:()=>a7,getNodeId:()=>ho,getNodeKind:()=>Qb,getNodeModifiers:()=>cD,getNodeModulePathParts:()=>tL,getNonAssignedNameOfDeclaration:()=>dF,getNonAssignmentOperatorForCompoundAssignment:()=>Ww,getNonAugmentationDeclaration:()=>bW,getNonDecoratorTokenPosOfNode:()=>mW,getNormalizedAbsolutePath:()=>Ss,getNormalizedAbsolutePathWithoutRoot:()=>IV,getNormalizedPathComponents:()=>$8,getObjectFlags:()=>Br,getOperator:()=>nq,getOperatorAssociativity:()=>tq,getOperatorPrecedence:()=>oN,getOptionFromName:()=>aG,getOptionsForLibraryResolution:()=>PG,getOptionsNameMap:()=>G4,getOrCreateEmitNode:()=>i_,getOrCreateExternalHelpersModuleNameIfNeeded:()=>ece,getOrUpdate:()=>Ks,getOriginalNode:()=>Gc,getOriginalNodeId:()=>s_,getOriginalSourceFile:()=>nxe,getOutputDeclarationFileName:()=>Kw,getOutputDeclarationFileNameWorker:()=>g$,getOutputExtension:()=>oR,getOutputFileNames:()=>a6e,getOutputJSFileNameWorker:()=>h$,getOutputPathsFor:()=>Zw,getOutputPathsForBundle:()=>Yw,getOwnEmitOutputFilePath:()=>Hse,getOwnKeys:()=>Eh,getOwnValues:()=>ik,getPackageJsonInfo:()=>Vb,getPackageJsonTypesVersionsPaths:()=>NM,getPackageJsonsVisibleToFile:()=>K_e,getPackageNameFromTypesPackageName:()=>zw,getPackageScopeForPath:()=>E7,getParameterSymbolFromJSDoc:()=>KA,getParameterTypeNode:()=>Txe,getParentNodeInSpan:()=>gI,getParseTreeNode:()=>Is,getParsedCommandLineOfConfigFile:()=>_7,getPathComponents:()=>au,getPathComponentsRelativeTo:()=>FV,getPathFromPathComponents:()=>c1,getPathUpdater:()=>KQ,getPathsBasePath:()=>S9,getPatternFromSpec:()=>Mae,getPendingEmitKind:()=>o3,getPositionOfLineAndCharacter:()=>K8,getPossibleGenericSignatures:()=>tQ,getPossibleOriginalInputExtensionForExtension:()=>$se,getPossibleTypeArgumentsInfo:()=>nQ,getPreEmitDiagnostics:()=>o6e,getPrecedingNonSpaceCharacterPosition:()=>gj,getPrivateIdentifier:()=>n$,getProperties:()=>e$,getProperty:()=>DO,getPropertyArrayElementValue:()=>kse,getPropertyAssignmentAliasLikeExpression:()=>zse,getPropertyNameForPropertyNameNode:()=>ux,getPropertyNameForUniqueESSymbol:()=>exe,getPropertyNameFromType:()=>Fd,getPropertyNameOfBindingOrAssignmentElement:()=>qH,getPropertySymbolFromBindingElement:()=>pj,getPropertySymbolsFromContextualType:()=>cB,getQuoteFromPreference:()=>dQ,getQuotePreference:()=>Bp,getRangesWhere:()=>Dr,getRefactorContextSpan:()=>gC,getReferencedFileLocation:()=>tD,getRegexFromPattern:()=>k1,getRegularExpressionForWildcard:()=>ZP,getRegularExpressionsForWildcards:()=>W9,getRelativePathFromDirectory:()=>Qd,getRelativePathFromFile:()=>Q8,getRelativePathToDirectoryOrUrl:()=>uk,getRenameLocation:()=>vI,getReplacementSpanForContextToken:()=>aQ,getResolutionDiagnostic:()=>U$,getResolutionModeOverride:()=>r3,getResolveJsonModule:()=>i2,getResolvePackageJsonExports:()=>lL,getResolvePackageJsonImports:()=>uL,getResolvedExternalModuleName:()=>y9,getRestIndicatorOfBindingOrAssignmentElement:()=>fM,getRestParameterElementType:()=>AW,getRightMostAssignedExpression:()=>VA,getRootDeclaration:()=>rg,getRootDirectoryOfResolutionCache:()=>Oue,getRootLength:()=>zg,getRootPathSplitLength:()=>I6e,getScriptKind:()=>kQ,getScriptKindFromFileName:()=>$9,getScriptTargetFeatures:()=>oL,getSelectedEffectiveModifierFlags:()=>Ek,getSelectedSyntacticModifierFlags:()=>iae,getSemanticClassifications:()=>afe,getSemanticJsxChildren:()=>p4,getSetAccessorTypeAnnotationNode:()=>Xse,getSetAccessorValueParameter:()=>zP,getSetExternalModuleIndicator:()=>yN,getShebang:()=>_F,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>JW,getSingleVariableOfVariableStatement:()=>xk,getSnapshotText:()=>d3,getSnippetElement:()=>pH,getSourceFileOfModule:()=>MF,getSourceFileOfNode:()=>qn,getSourceFilePathInNewDir:()=>x9,getSourceFilePathInNewDirWorker:()=>T9,getSourceFileVersionAsHashFromText:()=>IR,getSourceFilesToEmit:()=>cq,getSourceMapRange:()=>Ty,getSourceMapper:()=>xfe,getSourceTextOfNodeFromSourceFile:()=>pb,getSpanOfTokenAtPosition:()=>Hg,getSpellingSuggestion:()=>eP,getStartPositionOfLine:()=>v1,getStartPositionOfRange:()=>GP,getStartsOnNewLine:()=>mw,getStaticPropertiesAndClassStaticBlock:()=>tR,getStrictOptionValue:()=>R_,getStringComparer:()=>E6,getSubPatternFromSpec:()=>q9,getSuperCallFromStatement:()=>KM,getSuperContainer:()=>LA,getSupportedCodeFixes:()=>BY,getSupportedExtensions:()=>KP,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>vN,getSwitchedType:()=>DQ,getSymbolId:()=>Ia,getSymbolNameForPrivateIdentifier:()=>sN,getSymbolTarget:()=>CQ,getSyntacticClassifications:()=>ofe,getSyntacticModifierFlags:()=>x1,getSyntacticModifierFlagsNoCache:()=>fq,getSynthesizedDeepClone:()=>Sc,getSynthesizedDeepCloneWithReplacements:()=>yI,getSynthesizedDeepClones:()=>Zb,getSynthesizedDeepClonesWithReplacements:()=>EQ,getSyntheticLeadingComments:()=>A4,getSyntheticTrailingComments:()=>jN,getTargetLabel:()=>$R,getTargetOfBindingOrAssignmentElement:()=>L1,getTemporaryModuleResolutionState:()=>C7,getTextOfConstantValue:()=>sse,getTextOfIdentifierOrLiteral:()=>Ad,getTextOfJSDocComment:()=>_A,getTextOfJsxAttributeName:()=>EN,getTextOfJsxNamespacedName:()=>_w,getTextOfNode:()=>Ol,getTextOfNodeFromSourceText:()=>TP,getTextOfPropertyName:()=>X6,getThisContainer:()=>_f,getThisParameter:()=>Tb,getTokenAtPosition:()=>ps,getTokenPosOfNode:()=>Xv,getTokenSourceMapRange:()=>Xxe,getTouchingPropertyName:()=>mf,getTouchingToken:()=>p3,getTrailingCommentRanges:()=>Jv,getTrailingSemicolonDeferringWriter:()=>aq,getTransformFlagsSubtreeExclusions:()=>coe,getTransformers:()=>p$,getTsBuildInfoEmitOutputFilePath:()=>wy,getTsConfigObjectLiteralExpression:()=>PP,getTsConfigPropArrayElementValue:()=>XF,getTypeAnnotationNode:()=>Qse,getTypeArgumentOrTypeParameterList:()=>D_e,getTypeKeywordOfTypeOnlyImport:()=>mQ,getTypeNode:()=>hoe,getTypeNodeIfAccessible:()=>gD,getTypeParameterFromJsDoc:()=>Lse,getTypeParameterOwner:()=>dSe,getTypesPackageName:()=>jM,getUILocale:()=>kre,getUniqueName:()=>Ux,getUniqueSymbolId:()=>q_e,getUseDefineForClassFields:()=>dw,getWatchErrorSummaryDiagnosticMessage:()=>nX,getWatchFactory:()=>T$,group:()=>KE,groupBy:()=>AO,guessIndentation:()=>Gie,handleNoEmitOptions:()=>J$,hasAbstractModifier:()=>Eb,hasAccessorModifier:()=>ig,hasAmbientModifier:()=>_q,hasChangesInResolutions:()=>fW,hasChildOfKind:()=>cI,hasContextSensitiveParameters:()=>K9,hasDecorators:()=>Kp,hasDocComment:()=>P_e,hasDynamicName:()=>S1,hasEffectiveModifier:()=>qf,hasEffectiveModifiers:()=>C9,hasEffectiveReadonlyModifier:()=>UP,hasExtension:()=>lk,hasIndexSignature:()=>wQ,hasInitializer:()=>h1,hasInvalidEscape:()=>iq,hasJSDocNodes:()=>dp,hasJSDocParameterTags:()=>hie,hasJSFileExtension:()=>Pb,hasJsonModuleEmitEnabled:()=>B9,hasOnlyExpressionInitializer:()=>ex,hasOverrideModifier:()=>E9,hasPossibleExternalModuleReference:()=>use,hasProperty:()=>jo,hasPropertyAccessExpressionWithName:()=>rI,hasQuestionToken:()=>Sk,hasRecordedExternalHelpers:()=>Koe,hasResolutionModeOverride:()=>Kae,hasRestParameter:()=>cW,hasScopeMarker:()=>Bie,hasStaticModifier:()=>Fl,hasSyntacticModifier:()=>Kr,hasSyntacticModifiers:()=>rae,hasTSFileExtension:()=>Ik,hasTabstop:()=>Qae,hasTrailingDirectorySeparator:()=>_y,hasType:()=>AF,hasTypeArguments:()=>XSe,hasZeroOrOneAsteriskCharacter:()=>wq,helperString:()=>gH,hostGetCanonicalFileName:()=>yy,hostUsesCaseSensitiveFileNames:()=>h4,idText:()=>kr,identifierIsThisKeyword:()=>uq,identifierToKeywordKind:()=>Wv,identity:()=>dc,identitySourceMapConsumer:()=>YM,ignoreSourceNewlines:()=>mH,ignoredPaths:()=>G8,importDefaultHelper:()=>jL,importFromModuleSpecifier:()=>NP,importNameElisionDisabled:()=>Pq,importStarHelper:()=>JN,indexOfAnyCharCode:()=>Qa,indexOfNode:()=>$6,indicesOf:()=>rs,inferredTypesContainingFile:()=>a3,injectClassNamedEvaluationHelperBlockIfMissing:()=>iR,injectClassThisAssignmentIfMissing:()=>wle,insertImports:()=>uD,insertLeadingStatement:()=>dTe,insertSorted:()=>$s,insertStatementAfterCustomPrologue:()=>tx,insertStatementAfterStandardPrologue:()=>BSe,insertStatementsAfterCustomPrologue:()=>pW,insertStatementsAfterStandardPrologue:()=>Nh,intersperse:()=>hs,intrinsicTagNameToString:()=>Uq,introducesArgumentsExoticObject:()=>xse,inverseJsxOptionMap:()=>Rw,isAbstractConstructorSymbol:()=>bae,isAbstractModifier:()=>Poe,isAccessExpression:()=>$o,isAccessibilityModifier:()=>iQ,isAccessor:()=>d1,isAccessorModifier:()=>Doe,isAliasSymbolDeclaration:()=>YSe,isAliasableExpression:()=>rN,isAmbientModule:()=>n_,isAmbientPropertyDeclaration:()=>xW,isAnonymousFunctionDefinition:()=>RP,isAnyDirectorySeparator:()=>DV,isAnyImportOrBareOrAccessedRequire:()=>lse,isAnyImportOrReExport:()=>wA,isAnyImportSyntax:()=>nx,isAnySupportedFileExtension:()=>xxe,isApplicableVersionedTypesKey:()=>w7,isArgumentExpressionOfElementAccess:()=>GX,isArray:()=>Ps,isArrayBindingElement:()=>kF,isArrayBindingOrAssignmentElement:()=>yA,isArrayBindingOrAssignmentPattern:()=>nW,isArrayBindingPattern:()=>Ob,isArrayLiteralExpression:()=>B_,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>Ay,isArrayTypeNode:()=>GN,isArrowFunction:()=>ec,isAsExpression:()=>XN,isAssertClause:()=>Moe,isAssertEntry:()=>aTe,isAssertionExpression:()=>KS,isAssertsKeyword:()=>Coe,isAssignmentDeclaration:()=>AP,isAssignmentExpression:()=>Kl,isAssignmentOperator:()=>vy,isAssignmentPattern:()=>bP,isAssignmentTarget:()=>Lh,isAsteriskToken:()=>VN,isAsyncFunction:()=>LP,isAsyncModifier:()=>yw,isAutoAccessorPropertyDeclaration:()=>uf,isAwaitExpression:()=>I1,isAwaitKeyword:()=>TH,isBigIntLiteral:()=>qL,isBinaryExpression:()=>mr,isBinaryOperatorToken:()=>cce,isBindableObjectDefinePropertyCall:()=>ox,isBindableStaticAccessExpression:()=>vb,isBindableStaticElementAccessExpression:()=>l9,isBindableStaticNameExpression:()=>cx,isBindingElement:()=>oo,isBindingElementOfBareOrAccessedRequire:()=>Nse,isBindingName:()=>YS,isBindingOrAssignmentElement:()=>Oie,isBindingOrAssignmentPattern:()=>gA,isBindingPattern:()=>ca,isBlock:()=>na,isBlockOrCatchScoped:()=>gW,isBlockScope:()=>TW,isBlockScopedContainerTopLevel:()=>cse,isBooleanLiteral:()=>vP,isBreakOrContinueStatement:()=>mP,isBreakStatement:()=>rTe,isBuildInfoFile:()=>nue,isBuilderProgram:()=>Rue,isBundle:()=>AH,isBundleFileTextLike:()=>xae,isCallChain:()=>XS,isCallExpression:()=>ma,isCallExpressionTarget:()=>zX,isCallLikeExpression:()=>fb,isCallLikeOrFunctionLikeExpression:()=>rW,isCallOrNewExpression:()=>Zm,isCallOrNewExpressionTarget:()=>UX,isCallSignatureDeclaration:()=>Wk,isCallToHelper:()=>hw,isCaseBlock:()=>Cw,isCaseClause:()=>R4,isCaseKeyword:()=>Aoe,isCaseOrDefaultClause:()=>wF,isCatchClause:()=>Jb,isCatchClauseVariableDeclaration:()=>Xae,isCatchClauseVariableDeclarationOrBindingElement:()=>hW,isCheckJsEnabledForFile:()=>xN,isChildOfNodeWithKind:()=>zSe,isCircularBuildOrder:()=>_C,isClassDeclaration:()=>ql,isClassElement:()=>vu,isClassExpression:()=>Su,isClassInstanceProperty:()=>Nie,isClassLike:()=>fi,isClassMemberModifier:()=>KV,isClassNamedEvaluationHelperBlock:()=>uC,isClassOrTypeElement:()=>TF,isClassStaticBlockDeclaration:()=>Vc,isClassThisAssignmentBlock:()=>Hw,isCollapsedRange:()=>_xe,isColonToken:()=>Toe,isCommaExpression:()=>t7,isCommaListExpression:()=>xw,isCommaSequence:()=>Aw,isCommaToken:()=>xoe,isComment:()=>sj,isCommonJsExportPropertyAssignment:()=>GF,isCommonJsExportedExpression:()=>bse,isCompoundAssignment:()=>Vw,isComputedNonLiteralName:()=>DA,isComputedPropertyName:()=>co,isConciseBody:()=>EF,isConditionalExpression:()=>M4,isConditionalTypeNode:()=>$k,isConstTypeReference:()=>p0,isConstructSignatureDeclaration:()=>qN,isConstructorDeclaration:()=>$c,isConstructorTypeNode:()=>I4,isContextualKeyword:()=>d9,isContinueStatement:()=>nTe,isCustomPrologue:()=>OA,isDebuggerStatement:()=>iTe,isDeclaration:()=>g_,isDeclarationBindingElement:()=>mA,isDeclarationFileName:()=>Wu,isDeclarationName:()=>h0,isDeclarationNameOfEnumOrNamespace:()=>Sq,isDeclarationReadonly:()=>VF,isDeclarationStatement:()=>Vie,isDeclarationWithTypeParameterChildren:()=>CW,isDeclarationWithTypeParameters:()=>kW,isDecorator:()=>Vu,isDecoratorTarget:()=>d_e,isDefaultClause:()=>Pw,isDefaultImport:()=>bk,isDefaultModifier:()=>XL,isDefaultedExpandoInitializer:()=>Ise,isDeleteExpression:()=>Ooe,isDeleteTarget:()=>qW,isDeprecatedDeclaration:()=>wj,isDestructuringAssignment:()=>by,isDiagnosticWithLocation:()=>OQ,isDiskPathRoot:()=>AV,isDoStatement:()=>eTe,isDocumentRegistryEntry:()=>EI,isDotDotDotToken:()=>GL,isDottedName:()=>WP,isDynamicName:()=>g9,isESSymbolIdentifier:()=>txe,isEffectiveExternalModule:()=>yk,isEffectiveModuleDeclaration:()=>ose,isEffectiveStrictModeSourceFile:()=>SW,isElementAccessChain:()=>HV,isElementAccessExpression:()=>uc,isEmittedFileOfProgram:()=>aue,isEmptyArrayLiteral:()=>_ae,isEmptyBindingElement:()=>_ie,isEmptyBindingPattern:()=>uie,isEmptyObjectLiteral:()=>hq,isEmptyStatement:()=>PH,isEmptyStringLiteral:()=>OW,isEntityName:()=>Ef,isEntityNameExpression:()=>il,isEnumConst:()=>mb,isEnumDeclaration:()=>a2,isEnumMember:()=>zb,isEqualityOperatorKind:()=>vj,isEqualsGreaterThanToken:()=>koe,isExclamationToken:()=>WN,isExcludedFile:()=>xce,isExclusivelyTypeOnlyImportOrExport:()=>N$,isExpandoPropertyDeclaration:()=>rL,isExportAssignment:()=>Qc,isExportDeclaration:()=>ml,isExportModifier:()=>Uk,isExportName:()=>lM,isExportNamespaceAsDefaultDeclaration:()=>BF,isExportOrDefaultModifier:()=>s7,isExportSpecifier:()=>h_,isExportsIdentifier:()=>ax,isExportsOrModuleExportsOrAlias:()=>Wb,isExpression:()=>vt,isExpressionNode:()=>Oh,isExpressionOfExternalModuleImportEqualsDeclaration:()=>y_e,isExpressionOfOptionalChainRoot:()=>bF,isExpressionStatement:()=>xu,isExpressionWithTypeArguments:()=>Cy,isExpressionWithTypeArgumentsInClassExtendsClause:()=>P9,isExternalModule:()=>Cl,isExternalModuleAugmentation:()=>db,isExternalModuleImportEqualsDeclaration:()=>Qv,isExternalModuleIndicator:()=>vA,isExternalModuleNameRelative:()=>yu,isExternalModuleReference:()=>Kg,isExternalModuleSymbol:()=>fI,isExternalOrCommonJsModule:()=>mp,isFileLevelReservedGeneratedIdentifier:()=>dA,isFileLevelUniqueName:()=>RF,isFileProbablyExternalModule:()=>c7,isFirstDeclarationOfSymbolParameter:()=>bQ,isFixablePromiseHandler:()=>iY,isForInOrOfStatement:()=>V6,isForInStatement:()=>tM,isForInitializer:()=>Zp,isForOfStatement:()=>QN,isForStatement:()=>kx,isFunctionBlock:()=>hb,isFunctionBody:()=>sW,isFunctionDeclaration:()=>Wl,isFunctionExpression:()=>Xo,isFunctionExpressionOrArrowFunction:()=>Db,isFunctionLike:()=>oa,isFunctionLikeDeclaration:()=>Ko,isFunctionLikeKind:()=>dk,isFunctionLikeOrClassStaticBlockDeclaration:()=>U6,isFunctionOrConstructorTypeNode:()=>Iie,isFunctionOrModuleBlock:()=>eW,isFunctionSymbol:()=>Fse,isFunctionTypeNode:()=>Qg,isFutureReservedKeyword:()=>ZSe,isGeneratedIdentifier:()=>vc,isGeneratedPrivateIdentifier:()=>QS,isGetAccessor:()=>g1,isGetAccessorDeclaration:()=>Op,isGetOrSetAccessorDeclaration:()=>yF,isGlobalDeclaration:()=>J4e,isGlobalScopeAugmentation:()=>eg,isGrammarError:()=>nse,isHeritageClause:()=>Fp,isHoistedFunction:()=>qF,isHoistedVariableStatement:()=>HF,isIdentifier:()=>Je,isIdentifierANonContextualKeyword:()=>QW,isIdentifierName:()=>Jse,isIdentifierOrThisTypeNode:()=>ice,isIdentifierPart:()=>zv,isIdentifierStart:()=>wh,isIdentifierText:()=>Np,isIdentifierTypePredicate:()=>Tse,isIdentifierTypeReference:()=>Wae,isIfStatement:()=>Tx,isIgnoredFileFromWildCardWatching:()=>J7,isImplicitGlob:()=>Nq,isImportAttribute:()=>Roe,isImportAttributeName:()=>Aie,isImportAttributes:()=>Yk,isImportCall:()=>gp,isImportClause:()=>Yg,isImportDeclaration:()=>eu,isImportEqualsDeclaration:()=>Tu,isImportKeyword:()=>bw,isImportMeta:()=>Z6,isImportOrExportSpecifier:()=>pk,isImportOrExportSpecifierName:()=>W_e,isImportSpecifier:()=>Df,isImportTypeAssertionContainer:()=>sTe,isImportTypeNode:()=>zh,isImportableFile:()=>qQ,isInComment:()=>Dy,isInCompoundLikeAssignment:()=>WW,isInExpressionContext:()=>n9,isInJSDoc:()=>BA,isInJSFile:()=>lr,isInJSXText:()=>C_e,isInJsonFile:()=>i9,isInNonReferenceComment:()=>I_e,isInReferenceComment:()=>N_e,isInRightSideOfInternalImportEqualsDeclaration:()=>HR,isInString:()=>pC,isInTemplateString:()=>eQ,isInTopLevelContext:()=>ZF,isInTypeQuery:()=>px,isIncrementalCompilation:()=>pw,isIndexSignatureDeclaration:()=>Ib,isIndexedAccessTypeNode:()=>xx,isInferTypeNode:()=>vx,isInfinityOrNaNString:()=>ow,isInitializedProperty:()=>O7,isInitializedVariable:()=>gN,isInsideJsxElement:()=>rj,isInsideJsxElementOrAttribute:()=>k_e,isInsideNodeModules:()=>TI,isInsideTemplateLiteral:()=>uI,isInstanceOfExpression:()=>w9,isInstantiatedModule:()=>UG,isInterfaceDeclaration:()=>J_,isInternalDeclaration:()=>lW,isInternalModuleImportEqualsDeclaration:()=>r4,isInternalName:()=>UH,isIntersectionTypeNode:()=>Gk,isIntrinsicJsxName:()=>m4,isIterationStatement:()=>m1,isJSDoc:()=>Dm,isJSDocAllType:()=>Uoe,isJSDocAugmentsTag:()=>tC,isJSDocAuthorTag:()=>uTe,isJSDocCallbackTag:()=>IH,isJSDocClassTag:()=>Woe,isJSDocCommentContainingNode:()=>DF,isJSDocConstructSignature:()=>c4,isJSDocDeprecatedTag:()=>RH,isJSDocEnumTag:()=>ZN,isJSDocFunctionType:()=>B4,isJSDocImplementsTag:()=>aM,isJSDocIndexSignature:()=>s9,isJSDocLikeText:()=>YH,isJSDocLink:()=>Joe,isJSDocLinkCode:()=>zoe,isJSDocLinkLike:()=>hk,isJSDocLinkPlain:()=>cTe,isJSDocMemberName:()=>o2,isJSDocNameReference:()=>ww,isJSDocNamepathType:()=>lTe,isJSDocNamespaceBody:()=>OSe,isJSDocNode:()=>W6,isJSDocNonNullableType:()=>nM,isJSDocNullableType:()=>j4,isJSDocOptionalParameter:()=>CN,isJSDocOptionalType:()=>NH,isJSDocOverloadTag:()=>J4,isJSDocOverrideTag:()=>iM,isJSDocParameterTag:()=>Am,isJSDocPrivateTag:()=>FH,isJSDocPropertyLikeTag:()=>gP,isJSDocPropertyTag:()=>qoe,isJSDocProtectedTag:()=>LH,isJSDocPublicTag:()=>OH,isJSDocReadonlyTag:()=>MH,isJSDocReturnTag:()=>sM,isJSDocSatisfiesExpression:()=>Jq,isJSDocSatisfiesTag:()=>oM,isJSDocSeeTag:()=>_Te,isJSDocSignature:()=>c2,isJSDocTag:()=>q6,isJSDocTemplateTag:()=>Rd,isJSDocThisTag:()=>jH,isJSDocThrowsTag:()=>pTe,isJSDocTypeAlias:()=>Dd,isJSDocTypeAssertion:()=>U4,isJSDocTypeExpression:()=>Ub,isJSDocTypeLiteral:()=>wx,isJSDocTypeTag:()=>Dw,isJSDocTypedefTag:()=>Dx,isJSDocUnknownTag:()=>fTe,isJSDocUnknownType:()=>Voe,isJSDocVariadicType:()=>rM,isJSXTagName:()=>n4,isJsonEqual:()=>Y9,isJsonSourceFile:()=>wd,isJsxAttribute:()=>_g,isJsxAttributeLike:()=>PF,isJsxAttributeName:()=>Zae,isJsxAttributes:()=>Bb,isJsxChild:()=>xA,isJsxClosingElement:()=>Rb,isJsxClosingFragment:()=>joe,isJsxElement:()=>Uh,isJsxExpression:()=>Ew,isJsxFragment:()=>jb,isJsxNamespacedName:()=>wm,isJsxOpeningElement:()=>ug,isJsxOpeningFragment:()=>Kk,isJsxOpeningLikeElement:()=>F_,isJsxOpeningLikeElementTagName:()=>m_e,isJsxSelfClosingElement:()=>Ex,isJsxSpreadAttribute:()=>eC,isJsxTagNameExpression:()=>SP,isJsxText:()=>Bk,isJumpStatementTarget:()=>iI,isKeyword:()=>pf,isKeywordOrPunctuation:()=>p9,isKnownSymbol:()=>aN,isLabelName:()=>qX,isLabelOfLabeledStatement:()=>WX,isLabeledStatement:()=>Mb,isLateVisibilityPaintedStatement:()=>zF,isLeftHandSideExpression:()=>Pf,isLeftHandSideOfAssignment:()=>uxe,isLet:()=>WF,isLineBreak:()=>d_,isLiteralComputedPropertyDeclarationName:()=>nN,isLiteralExpression:()=>_b,isLiteralExpressionOfObject:()=>YV,isLiteralImportTypeNode:()=>b1,isLiteralKind:()=>hP,isLiteralLikeAccess:()=>c9,isLiteralLikeElementAccess:()=>WA,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>XR,isLiteralTypeLikeExpression:()=>vTe,isLiteralTypeLiteral:()=>Rie,isLiteralTypeNode:()=>N1,isLocalName:()=>T0,isLogicalOperator:()=>cae,isLogicalOrCoalescingAssignmentExpression:()=>pq,isLogicalOrCoalescingAssignmentOperator:()=>VP,isLogicalOrCoalescingBinaryExpression:()=>fN,isLogicalOrCoalescingBinaryOperator:()=>_N,isMappedTypeNode:()=>F4,isMemberName:()=>Dh,isMetaProperty:()=>Sw,isMethodDeclaration:()=>ul,isMethodOrAccessor:()=>mk,isMethodSignature:()=>Xg,isMinusToken:()=>xH,isMissingDeclaration:()=>oTe,isMissingPackageJsonInfo:()=>Bce,isModifier:()=>Fa,isModifierKind:()=>dy,isModifierLike:()=>bc,isModuleAugmentationExternal:()=>vW,isModuleBlock:()=>lg,isModuleBody:()=>Jie,isModuleDeclaration:()=>dl,isModuleExportsAccessExpression:()=>Fh,isModuleIdentifier:()=>jW,isModuleName:()=>oce,isModuleOrEnumDeclaration:()=>bA,isModuleReference:()=>qie,isModuleSpecifierLike:()=>fj,isModuleWithStringLiteralName:()=>JF,isNameOfFunctionDeclaration:()=>XX,isNameOfModuleDeclaration:()=>$X,isNamedClassElement:()=>wSe,isNamedDeclaration:()=>I_,isNamedEvaluation:()=>Wf,isNamedEvaluationSource:()=>YW,isNamedExportBindings:()=>$V,isNamedExports:()=>sd,isNamedImportBindings:()=>aW,isNamedImports:()=>x0,isNamedImportsOrExports:()=>L9,isNamedTupleMember:()=>O4,isNamespaceBody:()=>ISe,isNamespaceExport:()=>Zg,isNamespaceExportDeclaration:()=>YN,isNamespaceImport:()=>F1,isNamespaceReexportDeclaration:()=>Ase,isNewExpression:()=>Fb,isNewExpressionTarget:()=>aD,isNoSubstitutionTemplateLiteral:()=>Jk,isNode:()=>ESe,isNodeArray:()=>ub,isNodeArrayMultiLine:()=>hae,isNodeDescendantOf:()=>bb,isNodeKind:()=>fA,isNodeLikeSystem:()=>yU,isNodeModulesDirectory:()=>aF,isNodeWithPossibleHoistedDeclaration:()=>Rse,isNonContextualKeyword:()=>XW,isNonExportDefaultModifier:()=>STe,isNonGlobalAmbientModule:()=>yW,isNonGlobalDeclaration:()=>sfe,isNonNullAccess:()=>Yae,isNonNullChain:()=>SF,isNonNullExpression:()=>Qk,isNonStaticMethodOrAccessorWithPrivateName:()=>vle,isNotEmittedOrPartiallyEmittedNode:()=>NSe,isNotEmittedStatement:()=>DH,isNullishCoalesce:()=>GV,isNumber:()=>oy,isNumericLiteral:()=>Hf,isNumericLiteralName:()=>Jh,isObjectBindingElementWithoutPropertyName:()=>mI,isObjectBindingOrAssignmentElement:()=>hA,isObjectBindingOrAssignmentPattern:()=>tW,isObjectBindingPattern:()=>Md,isObjectLiteralElement:()=>oW,isObjectLiteralElementLike:()=>d0,isObjectLiteralExpression:()=>Va,isObjectLiteralMethod:()=>tm,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>$F,isObjectTypeDeclaration:()=>Dk,isOctalDigit:()=>uF,isOmittedExpression:()=>uu,isOptionalChain:()=>m_,isOptionalChainRoot:()=>pP,isOptionalDeclaration:()=>lw,isOptionalJSDocPropertyLikeTag:()=>kN,isOptionalTypeNode:()=>QL,isOuterExpression:()=>_M,isOutermostOptionalChain:()=>dP,isOverrideModifier:()=>woe,isPackageJsonInfo:()=>OM,isPackedArrayLiteral:()=>jq,isParameter:()=>ws,isParameterDeclaration:()=>xb,isParameterPropertyDeclaration:()=>Uf,isParameterPropertyModifier:()=>yP,isParenthesizedExpression:()=>df,isParenthesizedTypeNode:()=>bx,isParseTreeNode:()=>fP,isPartOfTypeNode:()=>Ih,isPartOfTypeQuery:()=>r9,isPartiallyEmittedExpression:()=>eM,isPatternMatch:()=>FO,isPinnedComment:()=>jF,isPlainJsFile:()=>CA,isPlusToken:()=>SH,isPossiblyTypeArgumentPosition:()=>lI,isPostfixUnaryExpression:()=>CH,isPrefixUnaryExpression:()=>O1,isPrivateIdentifier:()=>Qi,isPrivateIdentifierClassElementDeclaration:()=>O_,isPrivateIdentifierPropertyAccessExpression:()=>z6,isPrivateIdentifierSymbol:()=>Use,isProgramBundleEmitBuildInfo:()=>xue,isProgramUptoDate:()=>j$,isPrologueDirective:()=>em,isPropertyAccessChain:()=>vF,isPropertyAccessEntityNameExpression:()=>pN,isPropertyAccessExpression:()=>Jr,isPropertyAccessOrQualifiedName:()=>Lie,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>Fie,isPropertyAssignment:()=>Ml,isPropertyDeclaration:()=>Zs,isPropertyName:()=>Tl,isPropertyNameLiteral:()=>ng,isPropertySignature:()=>Gf,isProtoSetter:()=>Vse,isPrototypeAccess:()=>T1,isPrototypePropertyAssignment:()=>GA,isPunctuation:()=>$W,isPushOrUnshiftIdentifier:()=>ZW,isQualifiedName:()=>Z_,isQuestionDotToken:()=>$L,isQuestionOrExclamationToken:()=>rce,isQuestionOrPlusOrMinusToken:()=>ace,isQuestionToken:()=>D1,isRawSourceMap:()=>mle,isReadonlyKeyword:()=>Eoe,isReadonlyKeywordOrPlusOrMinusToken:()=>sce,isRecognizedTripleSlashComment:()=>dW,isReferenceFileLocation:()=>i3,isReferencedFile:()=>m2,isRegularExpressionLiteral:()=>vH,isRequireCall:()=>Q_,isRequireVariableStatement:()=>MW,isRestParameter:()=>Ah,isRestTypeNode:()=>YL,isReturnStatement:()=>rm,isReturnStatementWithFixablePromiseHandler:()=>jj,isRightSideOfAccessExpression:()=>gq,isRightSideOfInstanceofExpression:()=>uae,isRightSideOfPropertyAccess:()=>_3,isRightSideOfQualifiedName:()=>h_e,isRightSideOfQualifiedNameOrPropertyAccess:()=>qP,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>lae,isRootedDiskPath:()=>zf,isSameEntityName:()=>i4,isSatisfiesExpression:()=>EH,isScopeMarker:()=>jie,isSemicolonClassElement:()=>Foe,isSetAccessor:()=>my,isSetAccessorDeclaration:()=>$f,isShebangTrivia:()=>LV,isShiftOperatorOrHigher:()=>$H,isShorthandAmbientModuleSymbol:()=>kP,isShorthandPropertyAssignment:()=>Af,isSignedNumericLiteral:()=>m9,isSimpleCopiableExpression:()=>Hb,isSimpleInlineableExpression:()=>nh,isSimpleParameter:()=>kle,isSimpleParameterList:()=>F7,isSingleOrDoubleQuote:()=>JA,isSourceFile:()=>es,isSourceFileFromLibrary:()=>v3,isSourceFileJS:()=>L_,isSourceFileNotJS:()=>WSe,isSourceFileNotJson:()=>LW,isSourceMapping:()=>gle,isSpecialPropertyDeclaration:()=>Ose,isSpreadAssignment:()=>Ey,isSpreadElement:()=>Pm,isStatement:()=>Xi,isStatementButNotDeclaration:()=>SA,isStatementOrBlock:()=>Wie,isStatementWithLocals:()=>tse,isStatic:()=>da,isStaticModifier:()=>Vk,isString:()=>Ls,isStringAKeyword:()=>KSe,isStringANonContextualKeyword:()=>kk,isStringAndEmptyAnonymousObjectIntersection:()=>A_e,isStringDoubleQuoted:()=>o9,isStringLiteral:()=>Ba,isStringLiteralLike:()=>vo,isStringLiteralOrJsxExpression:()=>Hie,isStringLiteralOrTemplate:()=>Q_e,isStringOrNumericLiteralLike:()=>Ip,isStringOrRegularExpressionOrTemplateLiteral:()=>rQ,isStringTextContainingNode:()=>ZV,isSuperCall:()=>ix,isSuperKeyword:()=>vw,isSuperOrSuperProperty:()=>VSe,isSuperProperty:()=>ff,isSupportedSourceFileName:()=>Jae,isSwitchStatement:()=>kw,isSyntaxList:()=>z4,isSyntheticExpression:()=>Kxe,isSyntheticReference:()=>Zk,isTagName:()=>HX,isTaggedTemplateExpression:()=>Lb,isTaggedTemplateTag:()=>p_e,isTemplateExpression:()=>ZL,isTemplateHead:()=>zk,isTemplateLiteral:()=>gk,isTemplateLiteralKind:()=>p1,isTemplateLiteralToken:()=>wie,isTemplateLiteralTypeNode:()=>Noe,isTemplateLiteralTypeSpan:()=>kH,isTemplateMiddle:()=>bH,isTemplateMiddleOrTemplateTail:()=>xF,isTemplateSpan:()=>Tw,isTemplateTail:()=>HL,isTextWhiteSpaceLike:()=>M_e,isThis:()=>f3,isThisContainerOrFunctionBlock:()=>Pse,isThisIdentifier:()=>Cb,isThisInTypeQuery:()=>Ck,isThisInitializedDeclaration:()=>KF,isThisInitializedObjectBindingExpression:()=>Dse,isThisProperty:()=>MA,isThisTypeNode:()=>$N,isThisTypeParameter:()=>cw,isThisTypePredicate:()=>USe,isThrowStatement:()=>wH,isToken:()=>fk,isTokenKind:()=>QV,isTraceEnabled:()=>k0,isTransientSymbol:()=>Vg,isTrivia:()=>f4,isTryStatement:()=>Cx,isTupleTypeNode:()=>Hk,isTypeAlias:()=>QA,isTypeAliasDeclaration:()=>im,isTypeAssertionExpression:()=>Ioe,isTypeDeclaration:()=>P4,isTypeElement:()=>ZS,isTypeKeyword:()=>lD,isTypeKeywordToken:()=>lQ,isTypeKeywordTokenOrIdentifier:()=>cj,isTypeLiteralNode:()=>Xf,isTypeNode:()=>Gi,isTypeNodeKind:()=>kq,isTypeOfExpression:()=>L4,isTypeOnlyExportDeclaration:()=>Die,isTypeOnlyImportDeclaration:()=>pA,isTypeOnlyImportOrExportDeclaration:()=>$v,isTypeOperatorNode:()=>Sx,isTypeParameterDeclaration:()=>Ic,isTypePredicateNode:()=>HN,isTypeQueryNode:()=>qk,isTypeReferenceNode:()=>id,isTypeReferenceType:()=>NF,isTypeUsableAsPropertyName:()=>Od,isUMDExportSymbol:()=>F9,isUnaryExpression:()=>iW,isUnaryExpressionWithWrite:()=>Mie,isUnicodeIdentifierStart:()=>cF,isUnionTypeNode:()=>A1,isUnparsedNode:()=>XV,isUnparsedPrepend:()=>Boe,isUnparsedSource:()=>Px,isUnparsedTextLike:()=>Pie,isUrl:()=>$re,isValidBigIntString:()=>Z9,isValidESSymbolDeclaration:()=>Sse,isValidTypeOnlyAliasUseSite:()=>r2,isValueSignatureDeclaration:()=>jse,isVarAwaitUsing:()=>NA,isVarConst:()=>Y6,isVarUsing:()=>IA,isVariableDeclaration:()=>Ji,isVariableDeclarationInVariableStatement:()=>EP,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>yb,isVariableDeclarationInitializedToRequire:()=>a9,isVariableDeclarationList:()=>_u,isVariableLike:()=>K6,isVariableLikeOrAccessor:()=>vse,isVariableStatement:()=>Xc,isVoidExpression:()=>Xk,isWatchSet:()=>pxe,isWhileStatement:()=>tTe,isWhiteSpaceLike:()=>f0,isWhiteSpaceSingleLine:()=>Ym,isWithStatement:()=>Loe,isWriteAccess:()=>wk,isWriteOnlyAccess:()=>O9,isYieldExpression:()=>KL,jsxModeNeedsExplicitImport:()=>jQ,keywordPart:()=>Yf,last:()=>so,lastOrUndefined:()=>pc,length:()=>Xe,libMap:()=>TM,libs:()=>h7,lineBreakPart:()=>h3,linkNamePart:()=>U_e,linkPart:()=>xQ,linkTextPart:()=>mj,listFiles:()=>rX,loadModuleFromGlobalCache:()=>Xce,loadWithModeAwareCache:()=>W7,makeIdentifierFromModuleName:()=>ase,makeImport:()=>Ny,makeImportIfNecessary:()=>L_e,makeStringLiteral:()=>mC,mangleScopedPackageName:()=>K4,map:()=>Kt,mapAllOrFail:()=>nk,mapDefined:()=>Oi,mapDefinedEntries:()=>Aa,mapDefinedIterator:()=>xi,mapEntries:()=>Xt,mapIterator:()=>Nl,mapOneOrMany:()=>LQ,mapToDisplayParts:()=>J1,matchFiles:()=>Iq,matchPatternOrExact:()=>Oq,matchedText:()=>Dre,matchesExclude:()=>xM,maybeBind:()=>fa,maybeSetLocalizedDiagnosticMessages:()=>wae,memoize:()=>X_,memoizeCached:()=>xre,memoizeOne:()=>Bg,memoizeWeak:()=>bbe,metadataHelper:()=>vL,min:()=>pU,minAndMax:()=>Uae,missingFileModifiedTime:()=>fp,modifierToFlag:()=>Pk,modifiersToFlags:()=>sg,moduleOptionDeclaration:()=>dG,moduleResolutionIsEqualTo:()=>Kie,moduleResolutionNameAndModeGetter:()=>xR,moduleResolutionOptionDeclarations:()=>kM,moduleResolutionSupportsPackageJsonExportsAndImports:()=>Nk,moduleResolutionUsesNodeModules:()=>lj,moduleSpecifiers:()=>qb,moveEmitHelpers:()=>moe,moveRangeEnd:()=>N9,moveRangePastDecorators:()=>y0,moveRangePastModifiers:()=>ag,moveRangePos:()=>t2,moveSyntheticComments:()=>foe,mutateMap:()=>QP,mutateMapSkippingNewValues:()=>jh,needsParentheses:()=>hj,needsScopeMarker:()=>CF,newCaseClauseTracker:()=>Nj,newPrivateEnvironment:()=>xle,noEmitNotification:()=>L7,noEmitSubstitution:()=>Xw,noTransformers:()=>d$,noTruncationMaximumTruncationLength:()=>aL,nodeCanBeDecorated:()=>t9,nodeHasName:()=>cA,nodeIsDecorated:()=>t4,nodeIsMissing:()=>nl,nodeIsPresent:()=>Ed,nodeIsSynthesized:()=>lc,nodeModuleNameResolver:()=>Vce,nodeModulesPathPart:()=>th,nodeNextJsonConfigResolver:()=>Wce,nodeOrChildIsDecorated:()=>jA,nodeOverlapsWithStartEnd:()=>QR,nodePosToString:()=>LSe,nodeSeenTracker:()=>dC,nodeStartsNewLexicalEnvironment:()=>KW,nodeToDisplayParts:()=>F4e,noop:()=>ao,noopFileWatcher:()=>l3,normalizePath:()=>ka,normalizeSlashes:()=>t_,not:()=>MO,notImplemented:()=>ta,notImplementedResolver:()=>_R,nullNodeConverters:()=>aH,nullParenthesizerRules:()=>sH,nullTransformationContext:()=>Qw,objectAllocator:()=>Au,operatorPart:()=>fD,optionDeclarations:()=>Vh,optionMapToObject:()=>vM,optionsAffectingProgramStructure:()=>vG,optionsForBuild:()=>SG,optionsForWatch:()=>$4,optionsHaveChanges:()=>H6,optionsHaveModuleResolutionChanges:()=>Qie,or:()=>Tm,orderedRemoveItem:()=>w6,orderedRemoveItemAt:()=>a1,outFile:()=>Vo,packageIdToPackageName:()=>LF,packageIdToString:()=>y1,paramHelper:()=>bL,parameterIsThisKeyword:()=>kb,parameterNamePart:()=>j_e,parseBaseNodeFactory:()=>nG,parseBigInt:()=>Vae,parseBuildCommand:()=>KTe,parseCommandLine:()=>YTe,parseCommandLineWorker:()=>sG,parseConfigFileTextToJson:()=>oG,parseConfigFileWithSystem:()=>F6e,parseConfigHostFromCompilerHostLike:()=>SR,parseCustomTypeOption:()=>yM,parseIsolatedEntityName:()=>rC,parseIsolatedJSDocComment:()=>dce,parseJSDocTypeExpressionForTests:()=>jTe,parseJsonConfigFileContent:()=>pke,parseJsonSourceFileConfigFileContent:()=>d7,parseJsonText:()=>u7,parseListTypeOption:()=>gce,parseNodeFactory:()=>eh,parseNodeModuleFromPath:()=>k7,parsePackageName:()=>P7,parsePseudoBigInt:()=>rw,parseValidBigInt:()=>Rq,patchWriteFileEnsuringDirectory:()=>Hre,pathContainsNodeModules:()=>p2,pathIsAbsolute:()=>sP,pathIsBareSpecifier:()=>NV,pathIsRelative:()=>pp,patternText:()=>wre,perfLogger:()=>A_,performIncrementalCompilation:()=>j6e,performance:()=>Jre,plainJSErrors:()=>TR,positionBelongsToNode:()=>YX,positionIsASICandidate:()=>Sj,positionIsSynthesized:()=>Em,positionsAreOnSameLine:()=>td,preProcessFile:()=>o3e,probablyUsesSemicolons:()=>SI,processCommentPragmas:()=>eG,processPragmasIntoFields:()=>tG,processTaggedTemplateExpression:()=>o$,programContainsEsModules:()=>F_e,programContainsModules:()=>O_e,projectReferenceIsEqualTo:()=>_W,propKeyHelper:()=>OL,propertyNamePart:()=>B_e,pseudoBigIntToString:()=>wb,punctuationPart:()=>b_,pushIfUnique:()=>Jf,quote:()=>mD,quotePreferenceFromString:()=>pQ,rangeContainsPosition:()=>sI,rangeContainsPositionExclusive:()=>aI,rangeContainsRange:()=>jp,rangeContainsRangeExclusive:()=>v_e,rangeContainsStartEnd:()=>oI,rangeEndIsOnSameLineAsRangeStart:()=>mN,rangeEndPositionsAreOnSameLine:()=>mae,rangeEquals:()=>aU,rangeIsOnSingleLine:()=>mx,rangeOfNode:()=>Lq,rangeOfTypeParameters:()=>Mq,rangeOverlapsWithStartEnd:()=>oD,rangeStartIsOnSameLineAsRangeEnd:()=>gae,rangeStartPositionsAreOnSameLine:()=>I9,readBuilderProgram:()=>LR,readConfigFile:()=>f7,readHelper:()=>NL,readJson:()=>HP,readJsonConfigFile:()=>vce,readJsonOrUndefined:()=>yq,reduceEachLeadingCommentRange:()=>eie,reduceEachTrailingCommentRange:()=>tie,reduceLeft:()=>D_,reduceLeftIterator:()=>Yn,reducePathComponents:()=>$S,refactor:()=>yC,regExpEscape:()=>bxe,relativeComplement:()=>Fg,removeAllComments:()=>MN,removeEmitHelper:()=>Qxe,removeExtension:()=>SN,removeFileExtension:()=>Y_,removeIgnoredPath:()=>ER,removeMinAndVersionNumbers:()=>dU,removeOptionality:()=>E_e,removePrefix:()=>tP,removeSuffix:()=>P6,removeTrailingDirectorySeparator:()=>Bv,repeatString:()=>pI,replaceElement:()=>lU,replaceFirstStar:()=>Fk,resolutionExtensionIsTSOrJson:()=>ew,resolveConfigFileProjectName:()=>dX,resolveJSModule:()=>zce,resolveLibrary:()=>LM,resolveModuleName:()=>Y4,resolveModuleNameFromCache:()=>Qke,resolvePackageNameToPackageJson:()=>kG,resolvePath:()=>l1,resolveProjectReferencePath:()=>s3,resolveTripleslashReference:()=>mR,resolveTypeReferenceDirective:()=>Rce,resolvingEmptyArray:()=>sL,restHelper:()=>PL,returnFalse:()=>xm,returnNoopFileWatcher:()=>u3,returnTrue:()=>cy,returnUndefined:()=>Rv,returnsPromise:()=>rY,runInitializersHelper:()=>xL,sameFlatMap:()=>VS,sameMap:()=>Dc,sameMapping:()=>RCe,scanShebangTrivia:()=>MV,scanTokenAtPosition:()=>gse,scanner:()=>S_,screenStartingMessageCodes:()=>FR,semanticDiagnosticsOptionDeclarations:()=>gG,serializeCompilerOptions:()=>bM,server:()=>iIe,servicesVersion:()=>Ppe,setCommentRange:()=>kl,setConfigFileInOptions:()=>fG,setConstantValue:()=>doe,setEachParent:()=>E4,setEmitFlags:()=>pr,setFunctionNameHelper:()=>FL,setGetSourceFileAsHashVersioned:()=>OR,setIdentifierAutoGenerate:()=>BN,setIdentifierGeneratedImportReference:()=>yoe,setIdentifierTypeArguments:()=>ky,setInternalEmitFlags:()=>RN,setLocalizedDiagnosticMessages:()=>Pae,setModuleDefaultHelper:()=>RL,setNodeFlags:()=>Hae,setObjectAllocator:()=>Eae,setOriginalNode:()=>Ir,setParent:()=>eo,setParentRecursive:()=>C1,setPrivateIdentifier:()=>Ox,setSnippetElement:()=>dH,setSourceMapRange:()=>ja,setStackTraceLimit:()=>zbe,setStartsOnNewLine:()=>mL,setSyntheticLeadingComments:()=>s2,setSyntheticTrailingComments:()=>Mk,setSys:()=>Hbe,setSysLog:()=>Wre,setTextRange:()=>ut,setTextRangeEnd:()=>C4,setTextRangePos:()=>iw,setTextRangePosEnd:()=>Gg,setTextRangePosWidth:()=>sw,setTokenSourceMapRange:()=>_oe,setTypeNode:()=>goe,setUILocale:()=>Cre,setValueDeclaration:()=>$A,shouldAllowImportingTsExtension:()=>e3,shouldPreserveConstEnums:()=>Nb,shouldUseUriStyleNodeCoreModules:()=>Dj,showModuleSpecifier:()=>Sae,signatureHasLiteralTypes:()=>VG,signatureHasRestParameter:()=>v_,signatureToDisplayParts:()=>TQ,single:()=>cU,singleElementArray:()=>ok,singleIterator:()=>wu,singleOrMany:()=>Rg,singleOrUndefined:()=>Mg,skipAlias:()=>Uu,skipAssertions:()=>gTe,skipConstraint:()=>uQ,skipOuterExpressions:()=>gl,skipParentheses:()=>Eo,skipPartiallyEmittedExpressions:()=>Zd,skipTrivia:()=>za,skipTypeChecking:()=>nw,skipTypeParentheses:()=>tN,skipWhile:()=>Nre,sliceAfter:()=>Fq,some:()=>Pe,sort:()=>i1,sortAndDeduplicate:()=>io,sortAndDeduplicateDiagnostics:()=>R6,sourceFileAffectingCompilerOptions:()=>CM,sourceFileMayBeEmitted:()=>_x,sourceMapCommentRegExp:()=>XM,sourceMapCommentRegExpDontCareLineStart:()=>YG,spacePart:()=>Yc,spanMap:()=>$_,spreadArrayHelper:()=>IL,stableSort:()=>sy,startEndContainsRange:()=>QX,startEndOverlapsWithStartEnd:()=>YR,startOnNewLine:()=>y_,startTracing:()=>zre,startsWith:()=>fs,startsWithDirectory:()=>OV,startsWithUnderscore:()=>RQ,startsWithUseStrict:()=>Yoe,stringContainsAt:()=>ife,stringToToken:()=>cb,stripQuotes:()=>Nd,supportedDeclarationExtensions:()=>AN,supportedJSExtensions:()=>nH,supportedJSExtensionsFlat:()=>D4,supportedLocaleDirectories:()=>uW,supportedTSExtensions:()=>w4,supportedTSExtensionsFlat:()=>tH,supportedTSImplementationExtensions:()=>NN,suppressLeadingAndTrailingTrivia:()=>Zf,suppressLeadingTrivia:()=>PQ,suppressTrailingTrivia:()=>G_e,symbolEscapedNameNoDefault:()=>_j,symbolName:()=>Rc,symbolNameNoDefault:()=>uj,symbolPart:()=>R_e,symbolToDisplayParts:()=>pD,syntaxMayBeASICandidate:()=>VQ,syntaxRequiresTrailingSemicolonOrASI:()=>bj,sys:()=>Bu,sysLog:()=>q8,tagNamesAreEquivalent:()=>u2,takeWhile:()=>jO,targetOptionDeclaration:()=>v7,templateObjectHelper:()=>AL,testFormatSettings:()=>f_e,textChangeRangeIsUnchanged:()=>cie,textChangeRangeNewSpan:()=>_P,textChanges:()=>gr,textOrKeywordPart:()=>SQ,textPart:()=>Jp,textRangeContainsPositionInclusive:()=>sA,textSpanContainsPosition:()=>BV,textSpanContainsTextSpan:()=>iie,textSpanEnd:()=>pl,textSpanIntersection:()=>oie,textSpanIntersectsWith:()=>pF,textSpanIntersectsWithPosition:()=>aie,textSpanIntersectsWithTextSpan:()=>pSe,textSpanIsEmpty:()=>rie,textSpanOverlap:()=>sie,textSpanOverlapsWith:()=>fSe,textSpansEqual:()=>g3,textToKeywordObj:()=>rA,timestamp:()=>cc,toArray:()=>sk,toBuilderFileEmit:()=>Cue,toBuilderStateFileInfoForMultiEmit:()=>kue,toEditorSettings:()=>JI,toFileNameLowerCase:()=>jg,toLowerCase:()=>Sre,toPath:()=>hc,toProgramEmitPending:()=>Eue,tokenIsIdentifierOrKeyword:()=>N_,tokenIsIdentifierOrKeywordOrGreaterThan:()=>Zre,tokenToString:()=>ba,trace:()=>Cs,tracing:()=>cr,tracingEnabled:()=>z8,transform:()=>sPe,transformClassFields:()=>Ole,transformDeclarations:()=>f$,transformECMAScriptModule:()=>_$,transformES2015:()=>$le,transformES2016:()=>Gle,transformES2017:()=>Rle,transformES2018:()=>jle,transformES2019:()=>Ble,transformES2020:()=>Jle,transformES2021:()=>zle,transformES5:()=>Xle,transformESDecorators:()=>Mle,transformESNext:()=>Ule,transformGenerators:()=>Qle,transformJsx:()=>Hle,transformLegacyDecorators:()=>Lle,transformModule:()=>u$,transformNamedEvaluation:()=>Qf,transformNodeModule:()=>Zle,transformNodes:()=>M7,transformSystemModule:()=>Yle,transformTypeScript:()=>Ile,transpile:()=>m3e,transpileModule:()=>Tfe,transpileOptionValueCompilerOptions:()=>bG,tryAddToSet:()=>Na,tryAndIgnoreErrors:()=>kj,tryCast:()=>si,tryDirectoryExists:()=>Tj,tryExtractTSExtension:()=>D9,tryFileExists:()=>xI,tryGetClassExtendingExpressionWithTypeArguments:()=>dq,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>mq,tryGetDirectories:()=>xj,tryGetExtensionFromPath:()=>b0,tryGetImportFromModuleSpecifier:()=>XA,tryGetJSDocSatisfiesTypeNode:()=>nL,tryGetModuleNameFromFile:()=>r7,tryGetModuleSpecifierFromDeclaration:()=>s4,tryGetNativePerformanceHooks:()=>Rre,tryGetPropertyAccessOrIdentifierToString:()=>dN,tryGetPropertyNameOfBindingOrAssignmentElement:()=>pM,tryGetSourceMappingURL:()=>dle,tryGetTextOfPropertyName:()=>CP,tryIOAndConsumeErrors:()=>Cj,tryParseJson:()=>A9,tryParsePattern:()=>k4,tryParsePatterns:()=>X9,tryParseRawSourceMap:()=>XG,tryReadDirectory:()=>AQ,tryReadFile:()=>Fw,tryRemoveDirectoryPrefix:()=>Aq,tryRemoveExtension:()=>zae,tryRemovePrefix:()=>hU,tryRemoveSuffix:()=>Pre,typeAcquisitionDeclarations:()=>b7,typeAliasNamePart:()=>J_e,typeDirectiveIsEqualTo:()=>ese,typeKeywords:()=>Ij,typeParameterNamePart:()=>z_e,typeToDisplayParts:()=>hI,unchangedPollThresholds:()=>H8,unchangedTextChangeRange:()=>TA,unescapeLeadingUnderscores:()=>Hi,unmangleScopedPackageName:()=>D7,unorderedRemoveItem:()=>ak,unorderedRemoveItemAt:()=>mU,unreachableCodeIsError:()=>Aae,unusedLabelIsError:()=>Nae,unwrapInnermostStatementOfLabel:()=>NW,updateErrorForNoInputFiles:()=>SM,updateLanguageServiceSourceFile:()=>JY,updateMissingFilePathsWatch:()=>x$,updateResolutionField:()=>X4,updateSharedExtendedConfigFileWatcher:()=>pR,updateSourceFile:()=>ZH,updateWatchingWildcardDirectories:()=>B7,usesExtensionsOnImports:()=>jae,usingSingleLineStringWriter:()=>xP,utf16EncodeAsString:()=>M6,validateLocaleAndSetLanguage:()=>mSe,valuesHelper:()=>LL,version:()=>wt,versionMajorMinor:()=>rt,visitArray:()=>I7,visitCommaListElements:()=>$M,visitEachChild:()=>En,visitFunctionBody:()=>Rp,visitIterationBody:()=>K_,visitLexicalEnvironment:()=>GG,visitNode:()=>tt,visitNodes:()=>Wn,visitParameterList:()=>Wc,walkUpBindingElementsAndPatterns:()=>j6,walkUpLexicalEnvironments:()=>Sle,walkUpOuterExpressions:()=>Zoe,walkUpParenthesizedExpressions:()=>hy,walkUpParenthesizedTypes:()=>eN,walkUpParenthesizedTypesAndGetParentAndChild:()=>Bse,whitespaceOrMapCommentRegExp:()=>QM,writeCommentRange:()=>y4,writeFile:()=>BP,writeFileEnsuringDirectories:()=>lq,zipWith:()=>ii});var V1=K({"src/server/_namespaces/ts.ts"(){ua(),K7(),ci(),ree(),$x()}}),aIe={};Ye(aIe,{ActionInvalidate:()=>Y7,ActionPackageInstalled:()=>Z7,ActionSet:()=>Q7,ActionWatchTypingLocations:()=>sD,Arguments:()=>SX,AutoImportProviderProject:()=>hee,AuxiliaryProject:()=>mee,CharRangeSection:()=>Aee,CloseFileWatcherEvent:()=>eJ,CommandNames:()=>e0e,ConfigFileDiagEvent:()=>XB,ConfiguredProject:()=>yee,CreateDirectoryWatcherEvent:()=>KB,CreateFileWatcherEvent:()=>ZB,Errors:()=>My,EventBeginInstallTypes:()=>zR,EventEndInstallTypes:()=>UR,EventInitializationFailed:()=>bX,EventTypesRegistry:()=>JR,ExternalProject:()=>UB,GcTimer:()=>cee,InferredProject:()=>dee,LargeFileReferencedEvent:()=>$B,LineIndex:()=>OD,LineLeaf:()=>v5,LineNode:()=>DC,LogLevel:()=>iee,Msg:()=>see,OpenFileInfoTelemetryEvent:()=>xee,Project:()=>Gx,ProjectInfoTelemetryEvent:()=>YB,ProjectKind:()=>ND,ProjectLanguageServiceStateEvent:()=>QB,ProjectLoadingFinishEvent:()=>GB,ProjectLoadingStartEvent:()=>HB,ProjectReferenceProjectLoadKind:()=>Cee,ProjectService:()=>Eee,ProjectsUpdatedInBackgroundEvent:()=>g5,ScriptInfo:()=>_ee,ScriptVersionCache:()=>iJ,Session:()=>n0e,TextStorage:()=>uee,ThrottledOperations:()=>oee,TypingsCache:()=>fee,TypingsInstallerAdapter:()=>s0e,allFilesAreJsOrDts:()=>Ihe,allRootFilesAreJsOrDts:()=>Nhe,asNormalizedPath:()=>O7e,convertCompilerOptions:()=>VB,convertFormatOptions:()=>R3,convertScriptKindName:()=>bee,convertTypeAcquisition:()=>Lhe,convertUserPreferences:()=>Mhe,convertWatchOptions:()=>m5,countEachFileTypes:()=>p5,createInstallTypingsRequest:()=>uhe,createModuleSpecifierCache:()=>Hhe,createNormalizedPathMap:()=>F7e,createPackageJsonCache:()=>Ghe,createSortedArray:()=>mhe,emptyArray:()=>Rl,findArgument:()=>S4e,forEachResolvedProjectReferenceProject:()=>j3,formatDiagnosticToProtocol:()=>y5,formatMessage:()=>$he,getBaseConfigFileName:()=>aee,getLocationInNewDocument:()=>Zhe,hasArgument:()=>b4e,hasNoTypeScriptSource:()=>Ohe,indent:()=>iD,isBackgroundProject:()=>d5,isConfigFile:()=>Uhe,isConfiguredProject:()=>x2,isDynamicFileName:()=>f5,isExternalProject:()=>pee,isInferredProject:()=>M3,isInferredProjectName:()=>_he,makeAutoImportProviderProjectName:()=>phe,makeAuxiliaryProjectName:()=>dhe,makeInferredProjectName:()=>fhe,maxFileSize:()=>qB,maxProgramSizeForNonTsFiles:()=>WB,normalizedPathToPath:()=>_5,nowString:()=>x4e,nullCancellationToken:()=>Khe,nullTypingsInstaller:()=>zB,projectContainsInfoDirectly:()=>PC,protocol:()=>Ahe,removeSorted:()=>L7e,stringifyIndented:()=>g2,toEvent:()=>Xhe,toNormalizedPath:()=>Ec,tryConvertScriptKindName:()=>vee,typingsInstaller:()=>che,updateProjectIfDirty:()=>vp});var xlt=K({"src/typescript/_namespaces/ts.server.ts"(){VR(),$x()}}),oIe={};Ye(oIe,{ANONYMOUS:()=>Oj,AccessFlags:()=>XU,AssertionLevel:()=>bU,AssignmentDeclarationKind:()=>iV,AssignmentKind:()=>Hq,Associativity:()=>$q,BreakpointResolver:()=>GY,BuilderFileEmit:()=>Y$,BuilderProgramKind:()=>Z$,BuilderState:()=>om,BundleFileSectionKind:()=>xV,CallHierarchy:()=>vC,CharacterCodes:()=>mV,CheckFlags:()=>WU,CheckMode:()=>qM,ClassificationType:()=>JX,ClassificationTypeNames:()=>BX,CommentDirectiveType:()=>DU,Comparison:()=>Lt,CompletionInfoFlags:()=>IX,CompletionTriggerKind:()=>PX,Completions:()=>kC,ContainerFlags:()=>JG,ContextFlags:()=>LU,Debug:()=>w,DiagnosticCategory:()=>V8,Diagnostics:()=>p,DocumentHighlights:()=>Mj,ElementFlags:()=>$U,EmitFlags:()=>tF,EmitHint:()=>vV,EmitOnly:()=>NU,EndOfLineState:()=>LX,EnumKind:()=>VU,ExitStatus:()=>IU,ExportKind:()=>$Q,Extension:()=>gV,ExternalEmitHelpers:()=>yV,FileIncludeKind:()=>HO,FilePreprocessingDiagnosticsKind:()=>AU,FileSystemEntryKind:()=>wV,FileWatcherEventKind:()=>PV,FindAllReferences:()=>Qo,FlattenLevel:()=>i$,FlowFlags:()=>U8,ForegroundColorEscapeSequences:()=>V$,FunctionFlags:()=>Gq,GeneratedIdentifierFlags:()=>qO,GetLiteralTextFlags:()=>Vq,GoToDefinition:()=>N3,HighlightSpanKind:()=>DX,IdentifierNameMap:()=>cC,IdentifierNameMultiMap:()=>r$,ImportKind:()=>GQ,ImportsNotUsedAsValues:()=>uV,IndentStyle:()=>AX,IndexFlags:()=>QU,IndexKind:()=>KU,InferenceFlags:()=>nV,InferencePriority:()=>tV,InlayHintKind:()=>wX,InlayHints:()=>BK,InternalEmitFlags:()=>hV,InternalSymbolName:()=>qU,InvalidatedProjectKind:()=>vX,JSDocParsingMode:()=>CV,JsDoc:()=>S2,JsTyping:()=>dg,JsxEmit:()=>lV,JsxFlags:()=>PU,JsxReferenceKind:()=>YU,LanguageServiceMode:()=>kX,LanguageVariant:()=>pV,LexicalEnvironmentFlags:()=>SV,ListFormat:()=>TV,LogLevel:()=>xU,MemberOverrideStatus:()=>OU,ModifierFlags:()=>VO,ModuleDetectionKind:()=>sV,ModuleInstanceState:()=>BG,ModuleKind:()=>rP,ModuleResolutionKind:()=>O6,ModuleSpecifierEnding:()=>rH,NavigateTo:()=>Efe,NavigationBar:()=>Mfe,NewLineKind:()=>_V,NodeBuilderFlags:()=>MU,NodeCheckFlags:()=>HU,NodeFactoryFlags:()=>_H,NodeFlags:()=>UO,NodeResolutionFeatures:()=>MG,ObjectFlags:()=>QO,OperationCanceledException:()=>I6,OperatorPrecedence:()=>Xq,OrganizeImports:()=>cm,OrganizeImportsMode:()=>EX,OuterExpressionKinds:()=>bV,OutliningElementsCollector:()=>VK,OutliningSpanKind:()=>OX,OutputFileType:()=>FX,PackageJsonAutoImportPreference:()=>TX,PackageJsonDependencyGroup:()=>xX,PatternMatchKind:()=>Rj,PollingInterval:()=>nF,PollingWatchKind:()=>cV,PragmaKindFlags:()=>kV,PrivateIdentifierKind:()=>yH,ProcessLevel:()=>c$,ProgramUpdateLevel:()=>k$,QuotePreference:()=>zQ,RelationComparisonResult:()=>WO,Rename:()=>FB,ScriptElementKind:()=>RX,ScriptElementKindModifier:()=>jX,ScriptKind:()=>ZO,ScriptSnapshot:()=>qR,ScriptTarget:()=>fV,SemanticClassificationFormat:()=>CX,SemanticMeaning:()=>JQ,SemicolonPreference:()=>NX,SignatureCheckMode:()=>HM,SignatureFlags:()=>YO,SignatureHelp:()=>r5,SignatureKind:()=>ZU,SmartSelectionRange:()=>HK,SnippetKind:()=>eF,SortKind:()=>vU,StructureIsReused:()=>GO,SymbolAccessibility:()=>BU,SymbolDisplay:()=>Ly,SymbolDisplayPartKind:()=>eI,SymbolFlags:()=>$O,SymbolFormatFlags:()=>jU,SyntaxKind:()=>zO,SyntheticSymbolKind:()=>JU,Ternary:()=>rV,ThrottledCancellationToken:()=>HY,TokenClass:()=>MX,TokenFlags:()=>wU,TransformFlags:()=>KO,TypeFacts:()=>WM,TypeFlags:()=>XO,TypeFormatFlags:()=>RU,TypeMapKind:()=>eV,TypePredicateKind:()=>zU,TypeReferenceSerializationKind:()=>UU,UnionReduction:()=>FU,UpToDateStatusType:()=>mX,VarianceFlags:()=>GU,Version:()=>$d,VersionRange:()=>B8,WatchDirectoryFlags:()=>dV,WatchDirectoryKind:()=>oV,WatchFileKind:()=>aV,WatchLogLevel:()=>C$,WatchType:()=>tu,accessPrivateIdentifier:()=>Tle,addDisposableResourceHelper:()=>VL,addEmitFlags:()=>og,addEmitHelper:()=>Rk,addEmitHelpers:()=>S0,addInternalEmitFlags:()=>Lk,addNodeFactoryPatcher:()=>Vxe,addObjectAllocatorPatcher:()=>Cae,addRange:()=>Mr,addRelatedInfo:()=>Ua,addSyntheticLeadingComment:()=>gw,addSyntheticTrailingComment:()=>gL,addToSeen:()=>nm,advancedAsyncSuperHelper:()=>UN,affectsDeclarationPathOptionDeclarations:()=>yG,affectsEmitOptionDeclarations:()=>hG,allKeysStartWithDot:()=>RM,altDirectorySeparator:()=>Y8,and:()=>LO,append:()=>gn,appendIfUnique:()=>w_,arrayFrom:()=>Vs,arrayIsEqualTo:()=>Ac,arrayIsHomogeneous:()=>qae,arrayIsSorted:()=>Go,arrayOf:()=>yre,arrayReverseIterator:()=>sU,arrayToMap:()=>ab,arrayToMultiMap:()=>M8,arrayToNumericMap:()=>bre,arraysEqual:()=>su,assertType:()=>Tbe,assign:()=>C6,assignHelper:()=>TL,asyncDelegator:()=>CL,asyncGeneratorHelper:()=>kL,asyncSuperHelper:()=>zN,asyncValues:()=>EL,attachFileToDiagnostics:()=>Ak,awaitHelper:()=>jk,awaiterHelper:()=>wL,base64decode:()=>dae,base64encode:()=>pae,binarySearch:()=>ay,binarySearchKey:()=>rk,bindSourceFile:()=>Zce,breakIntoCharacterSpans:()=>vfe,breakIntoWordSpans:()=>bfe,buildLinkParts:()=>V_e,buildOpts:()=>EM,buildOverload:()=>P7e,bundlerModuleNameResolver:()=>Uce,canBeConvertedToAsync:()=>sY,canHaveDecorators:()=>Nx,canHaveExportModifier:()=>TN,canHaveFlowNode:()=>YA,canHaveIllegalDecorators:()=>GH,canHaveIllegalModifiers:()=>nce,canHaveIllegalType:()=>yTe,canHaveIllegalTypeParameters:()=>tce,canHaveJSDoc:()=>ZA,canHaveLocals:()=>Ug,canHaveModifiers:()=>sm,canHaveSymbol:()=>Km,canJsonReportNoInputFiles:()=>Lw,canProduceDiagnostics:()=>aR,canUsePropertyAccess:()=>Bq,canWatchAffectingLocation:()=>Aue,canWatchAtTypes:()=>Due,canWatchDirectoryOrFile:()=>PR,cartesianProduct:()=>Are,cast:()=>pa,chainBundle:()=>am,chainDiagnosticMessages:()=>Hs,changeAnyExtension:()=>X8,changeCompilerHostLikeToUseCache:()=>U7,changeExtension:()=>n2,changeFullExtension:()=>Xre,changesAffectModuleResolution:()=>IF,changesAffectingProgramStructure:()=>Yie,childIsDecorated:()=>wP,classElementOrClassElementParameterIsDecorated:()=>IW,classHasClassThisAssignment:()=>s$,classHasDeclaredOrExplicitlyAssignedName:()=>a$,classHasExplicitlyAssignedName:()=>rR,classOrConstructorParameterIsDecorated:()=>gy,classPrivateFieldGetHelper:()=>JL,classPrivateFieldInHelper:()=>UL,classPrivateFieldSetHelper:()=>zL,classicNameResolver:()=>$ce,classifier:()=>Npe,cleanExtendedConfigCache:()=>dR,clear:()=>Al,clearMap:()=>wf,clearSharedExtendedConfigFileWatcher:()=>S$,climbPastPropertyAccess:()=>GR,climbPastPropertyOrElementAccess:()=>g_e,clone:()=>uU,cloneCompilerOptions:()=>sQ,closeFileWatcher:()=>Cm,closeFileWatcherOf:()=>ad,codefix:()=>a_,collapseTextChangeRangesAcrossMultipleVersions:()=>lie,collectExternalModuleInfo:()=>KG,combine:()=>Gd,combinePaths:()=>Zr,commentPragmas:()=>W8,commonOptionsWithBuild:()=>y7,commonPackageFolders:()=>Zq,compact:()=>Zl,compareBooleans:()=>s1,compareDataObjects:()=>xq,compareDiagnostics:()=>YP,compareDiagnosticsSkipRelatedInformation:()=>R9,compareEmitHelpers:()=>Soe,compareNumberOfDirectorySeparators:()=>bN,comparePaths:()=>u0,comparePathsCaseInsensitive:()=>Qbe,comparePathsCaseSensitive:()=>Xbe,comparePatternKeys:()=>FG,compareProperties:()=>Ere,compareStringsCaseInsensitive:()=>OO,compareStringsCaseInsensitiveEslintCompatible:()=>Tre,compareStringsCaseSensitive:()=>p_,compareStringsCaseSensitiveUI:()=>j8,compareTextSpans:()=>IO,compareValues:()=>mc,compileOnSaveCommandLineOption:()=>g7,compilerOptionsAffectDeclarationPath:()=>Lae,compilerOptionsAffectEmit:()=>Fae,compilerOptionsAffectSemanticDiagnostics:()=>Oae,compilerOptionsDidYouMeanDiagnostics:()=>S7,compilerOptionsIndicateEsModules:()=>_Q,compose:()=>Sbe,computeCommonSourceDirectoryOfFilenames:()=>cue,computeLineAndCharacterOfPosition:()=>L6,computeLineOfPosition:()=>oP,computeLineStarts:()=>_k,computePositionOfLineAndCharacter:()=>lF,computeSignature:()=>Rx,computeSignatureWithDiagnostics:()=>G$,computeSuggestionDiagnostics:()=>nY,computedOptions:()=>Ll,concatenate:()=>zn,concatenateDiagnosticMessageChains:()=>Dae,consumesNodeCoreModules:()=>Ej,contains:()=>Ai,containsIgnoredPath:()=>aw,containsObjectRestOrSpread:()=>o7,containsParseError:()=>G6,containsPath:()=>Xd,convertCompilerOptionsForTelemetry:()=>Cce,convertCompilerOptionsFromJson:()=>Ske,convertJsonOption:()=>Ix,convertToBase64:()=>fae,convertToJson:()=>p7,convertToObject:()=>bce,convertToOptionsWithAbsolutePaths:()=>_G,convertToRelativePath:()=>aP,convertToTSConfig:()=>oke,convertTypeAcquisitionFromJson:()=>xke,copyComments:()=>zx,copyEntries:()=>OF,copyLeadingComments:()=>y3,copyProperties:()=>_U,copyTrailingAsLeadingComments:()=>bI,copyTrailingComments:()=>dD,couldStartTrivia:()=>Kre,countWhere:()=>Bc,createAbstractBuilder:()=>w6e,createAccessorPropertyBackingField:()=>XH,createAccessorPropertyGetRedirector:()=>uce,createAccessorPropertySetRedirector:()=>_ce,createBaseNodeFactory:()=>soe,createBinaryExpressionTrampoline:()=>dM,createBindingHelper:()=>N4,createBuildInfo:()=>R7,createBuilderProgram:()=>$$,createBuilderProgramUsingProgramBuildInfo:()=>Pue,createBuilderStatusReporter:()=>Wue,createCacheWithRedirects:()=>EG,createCacheableExportInfoMap:()=>WQ,createCachedDirectoryStructureHost:()=>fR,createClassNamedEvaluationHelperBlock:()=>Dle,createClassThisAssignmentBlock:()=>Ple,createClassifier:()=>q4e,createCommentDirectivesMap:()=>rse,createCompilerDiagnostic:()=>ll,createCompilerDiagnosticForInvalidCustomType:()=>mce,createCompilerDiagnosticFromMessageChain:()=>M9,createCompilerHost:()=>lue,createCompilerHostFromProgramHost:()=>_X,createCompilerHostWorker:()=>w$,createDetachedDiagnostic:()=>T4,createDiagnosticCollection:()=>d4,createDiagnosticForFileFromMessageChain:()=>PW,createDiagnosticForNode:()=>Rr,createDiagnosticForNodeArray:()=>Q6,createDiagnosticForNodeArrayFromMessageChain:()=>AA,createDiagnosticForNodeFromMessageChain:()=>m0,createDiagnosticForNodeInSourceFile:()=>Pd,createDiagnosticForRange:()=>mse,createDiagnosticMessageChainFromDiagnostic:()=>dse,createDiagnosticReporter:()=>G7,createDocumentPositionMapper:()=>hle,createDocumentRegistry:()=>cfe,createDocumentRegistryInternal:()=>YQ,createEmitAndSemanticDiagnosticsBuilderProgram:()=>K$,createEmitHelperFactory:()=>boe,createEmptyExports:()=>KN,createExpressionForJsxElement:()=>$oe,createExpressionForJsxFragment:()=>Xoe,createExpressionForObjectLiteralElementLike:()=>Qoe,createExpressionForPropertyName:()=>zH,createExpressionFromEntityName:()=>e7,createExternalHelpersImportDeclarationIfNeeded:()=>WH,createFileDiagnostic:()=>bu,createFileDiagnosticFromMessageChain:()=>UF,createForOfBindingStatement:()=>JH,createGetCanonicalFileName:()=>e_,createGetSourceFile:()=>E$,createGetSymbolAccessibilityDiagnosticForNode:()=>Py,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Kle,createGetSymbolWalker:()=>Kce,createIncrementalCompilerHost:()=>pX,createIncrementalProgram:()=>Uue,createInputFiles:()=>qxe,createInputFilesWithFilePaths:()=>lH,createInputFilesWithFileTexts:()=>uH,createJsxFactoryExpression:()=>BH,createLanguageService:()=>Cpe,createLanguageServiceSourceFile:()=>oB,createMemberAccessForPropertyName:()=>Ax,createModeAwareCache:()=>aC,createModeAwareCacheKey:()=>Jw,createModuleNotFoundChain:()=>FF,createModuleResolutionCache:()=>Q4,createModuleResolutionLoader:()=>F$,createModuleResolutionLoaderUsingGlobalCache:()=>Fue,createModuleSpecifierResolutionHost:()=>Jx,createMultiMap:()=>Dp,createNodeConverters:()=>ooe,createNodeFactory:()=>ON,createOptionNameMap:()=>hM,createOverload:()=>nee,createPackageJsonImportFilter:()=>hD,createPackageJsonInfo:()=>IQ,createParenthesizerRules:()=>aoe,createPatternMatcher:()=>pfe,createPrependNodes:()=>z$,createPrinter:()=>d2,createPrinterWithDefaults:()=>v$,createPrinterWithRemoveComments:()=>$b,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>b$,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>j7,createProgram:()=>vR,createProgramHost:()=>fX,createPropertyNameNodeForIdentifierOrLiteral:()=>eL,createQueue:()=>R8,createRange:()=>ed,createRedirectedBuilderProgram:()=>Q$,createResolutionCache:()=>tX,createRuntimeTypeSerializer:()=>Fle,createScanner:()=>fy,createSemanticDiagnosticsBuilderProgram:()=>P6e,createSet:()=>fU,createSolutionBuilder:()=>W6e,createSolutionBuilderHost:()=>U6e,createSolutionBuilderWithWatch:()=>q6e,createSolutionBuilderWithWatchHost:()=>V6e,createSortedArray:()=>Fo,createSourceFile:()=>l7,createSourceMapGenerator:()=>ple,createSourceMapSource:()=>Hxe,createSuperAccessVariableStatement:()=>sR,createSymbolTable:()=>ha,createSymlinkCache:()=>Dq,createSystemWatchFunctions:()=>qre,createTextChange:()=>_I,createTextChangeFromStartLength:()=>oj,createTextChangeRange:()=>oA,createTextRangeFromNode:()=>cQ,createTextRangeFromSpan:()=>aj,createTextSpan:()=>Ju,createTextSpanFromBounds:()=>Il,createTextSpanFromNode:()=>tf,createTextSpanFromRange:()=>B1,createTextSpanFromStringLiteralLikeContent:()=>oQ,createTextWriter:()=>uN,createTokenRange:()=>vq,createTypeChecker:()=>ole,createTypeReferenceDirectiveResolutionCache:()=>FM,createTypeReferenceResolutionLoader:()=>gR,createUnparsedSourceFile:()=>cH,createWatchCompilerHost:()=>B6e,createWatchCompilerHostOfConfigFile:()=>Bue,createWatchCompilerHostOfFilesAndCompilerOptions:()=>Jue,createWatchFactory:()=>uX,createWatchHost:()=>lX,createWatchProgram:()=>J6e,createWatchStatusReporter:()=>Lue,createWriteFileMeasuringIO:()=>P$,declarationNameToString:()=>Bo,decodeMappings:()=>QG,decodedTextSpanIntersectsWith:()=>aA,decorateHelper:()=>yL,deduplicate:()=>ks,defaultIncludeSpec:()=>DM,defaultInitCompilerOptions:()=>PM,defaultMaximumTruncationLength:()=>PN,detectSortCaseSensitivity:()=>tl,diagnosticCategoryName:()=>GS,diagnosticToString:()=>Vx,directoryProbablyExists:()=>km,directorySeparator:()=>yc,displayPart:()=>Nf,displayPartsToString:()=>zI,disposeEmitNodes:()=>fH,disposeResourcesHelper:()=>WL,documentSpansEqual:()=>gQ,dumpTracingLegend:()=>Ure,elementAt:()=>uy,elideNodes:()=>lce,emitComments:()=>tae,emitDetachedComments:()=>nae,emitFiles:()=>lR,emitFilesAndReportErrors:()=>NR,emitFilesAndReportErrorsAndGetExitStatus:()=>jue,emitModuleKindIsNonNodeESM:()=>j9,emitNewLineBeforeLeadingCommentOfPosition:()=>eae,emitNewLineBeforeLeadingComments:()=>Zse,emitNewLineBeforeLeadingCommentsOfPosition:()=>Kse,emitSkippedWithNoDiagnostics:()=>kR,emitUsingBuildInfo:()=>iue,emptyArray:()=>Ke,emptyFileSystemEntries:()=>fL,emptyMap:()=>BO,emptyOptions:()=>cd,emptySet:()=>Ire,endsWith:()=>Jc,ensurePathIsNonModuleName:()=>ob,ensureScriptKind:()=>G9,ensureTrailingDirectorySeparator:()=>ou,entityNameToString:()=>Vf,enumerateInsertsAndDeletes:()=>RO,equalOwnProperties:()=>vre,equateStringsCaseInsensitive:()=>jv,equateStringsCaseSensitive:()=>WS,equateValues:()=>ly,esDecorateHelper:()=>SL,escapeJsxAttributeString:()=>sq,escapeLeadingUnderscores:()=>Nc,escapeNonAsciiString:()=>lN,escapeSnippetText:()=>Ab,escapeString:()=>Mh,escapeTemplateSubstitution:()=>rq,every:()=>Pn,expandPreOrPostfixIncrementOrDecrementExpression:()=>cM,explainFiles:()=>iX,explainIfFileIsRedirectAndImpliedFormat:()=>sX,exportAssignmentIsAlias:()=>u4,exportStarHelper:()=>BL,expressionResultIsUnused:()=>Gae,extend:()=>NO,extendsHelper:()=>DL,extensionFromPath:()=>tw,extensionIsTS:()=>Q9,extensionsNotSupportingExtensionlessResolution:()=>IN,externalHelpersModuleNameText:()=>E1,factory:()=>L,fileExtensionIs:()=>zc,fileExtensionIsOneOf:()=>Vl,fileIncludeReasonToDiagnostics:()=>cX,fileShouldUseJavaScriptRequire:()=>BQ,filter:()=>vr,filterMutate:()=>Ch,filterSemanticDiagnostics:()=>bR,find:()=>Cn,findAncestor:()=>Vn,findBestPatternMatch:()=>gU,findChildOfKind:()=>wo,findComputedPropertyNameCacheAssignment:()=>mM,findConfigFile:()=>oue,findContainingList:()=>ZR,findDiagnosticForNode:()=>efe,findFirstNonJsxWhitespaceToken:()=>S_e,findIndex:()=>Gs,findLast:()=>Ro,findLastIndex:()=>lf,findListItemInfo:()=>b_e,findMap:()=>Do,findModifier:()=>m3,findNextToken:()=>Yb,findPackageJson:()=>Z_e,findPackageJsons:()=>NQ,findPrecedingMatchingToken:()=>ij,findPrecedingToken:()=>Hl,findSuperStatementIndexPath:()=>eR,findTokenOnLeftOfPosition:()=>tj,findUseStrictPrologue:()=>VH,first:()=>Ka,firstDefined:()=>li,firstDefinedIterator:()=>Js,firstIterator:()=>oU,firstOrOnly:()=>MQ,firstOrUndefined:()=>hu,firstOrUndefinedIterator:()=>wO,fixupCompilerOptions:()=>oY,flatMap:()=>Ys,flatMapIterator:()=>sb,flatMapToMutable:()=>Yp,flatten:()=>P_,flattenCommaList:()=>fce,flattenDestructuringAssignment:()=>Fx,flattenDestructuringBinding:()=>Gb,flattenDiagnosticMessageText:()=>fg,forEach:()=>dt,forEachAncestor:()=>Zie,forEachAncestorDirectory:()=>Yd,forEachChild:()=>Xs,forEachChildRecursively:()=>Ow,forEachEmittedFile:()=>m$,forEachEnclosingBlockScopeContainer:()=>_se,forEachEntry:()=>cu,forEachExternalModuleToImportFrom:()=>HQ,forEachImportClauseDeclaration:()=>_9,forEachKey:()=>Wg,forEachLeadingCommentRange:()=>tA,forEachNameInAccessChainWalkingLeft:()=>Tae,forEachPropertyAssignment:()=>e4,forEachResolvedProjectReference:()=>M$,forEachReturnStatement:()=>gb,forEachRight:()=>bs,forEachTrailingCommentRange:()=>nA,forEachTsConfigPropArray:()=>FA,forEachUnique:()=>yQ,forEachYieldExpression:()=>hse,forSomeAncestorDirectory:()=>dxe,formatColorAndReset:()=>Xb,formatDiagnostic:()=>D$,formatDiagnostics:()=>c6e,formatDiagnosticsWithColorAndContext:()=>uue,formatGeneratedName:()=>l2,formatGeneratedNamePart:()=>q4,formatLocation:()=>A$,formatMessage:()=>Eq,formatStringFromArgs:()=>Bh,formatting:()=>nu,fullTripleSlashAMDReferencePathRegEx:()=>qq,fullTripleSlashReferencePathRegEx:()=>Wq,generateDjb2Hash:()=>iP,generateTSConfig:()=>fke,generatorHelper:()=>ML,getAdjustedReferenceLocation:()=>KX,getAdjustedRenameLocation:()=>ej,getAliasDeclarationFromName:()=>HW,getAllAccessorDeclarations:()=>dx,getAllDecoratorsOfClass:()=>t$,getAllDecoratorsOfClassElement:()=>nR,getAllJSDocTags:()=>hF,getAllJSDocTagsOfKind:()=>CSe,getAllKeys:()=>vbe,getAllProjectOutputs:()=>cR,getAllSuperTypeNodes:()=>OP,getAllUnscopedEmitHelpers:()=>hH,getAllowJSCompilerOption:()=>P1,getAllowSyntheticDefaultImports:()=>hx,getAncestor:()=>e2,getAnyExtensionFromPath:()=>F6,getAreDeclarationMapsEnabled:()=>DN,getAssignedExpandoInitializer:()=>vk,getAssignedName:()=>mF,getAssignedNameOfIdentifier:()=>Gw,getAssignmentDeclarationKind:()=>rl,getAssignmentDeclarationPropertyAccessKind:()=>HA,getAssignmentTargetKind:()=>Tk,getAutomaticTypeDirectiveNames:()=>IM,getBaseFileName:()=>xl,getBinaryOperatorPrecedence:()=>cN,getBuildInfo:()=>uR,getBuildInfoFileVersionMap:()=>X$,getBuildInfoText:()=>rue,getBuildOrderFromAnyBuildOrder:()=>MR,getBuilderCreationParameters:()=>CR,getBuilderFileEmit:()=>j1,getCheckFlags:()=>Uc,getClassExtendsHeritageElement:()=>Sb,getClassLikeDeclarationOfSymbol:()=>v0,getCombinedLocalAndExportSymbolFlags:()=>b4,getCombinedModifierFlags:()=>Vv,getCombinedNodeFlags:()=>py,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>JV,getCommentRange:()=>cg,getCommonSourceDirectory:()=>eD,getCommonSourceDirectoryOfConfig:()=>n3,getCompilerOptionValue:()=>J9,getCompilerOptionsDiffValue:()=>uke,getConditions:()=>M1,getConfigFileParsingDiagnostics:()=>Mx,getConstantValue:()=>poe,getContainerFlags:()=>jG,getContainerNode:()=>Bx,getContainingClass:()=>Du,getContainingClassExcludingClassDecorators:()=>YF,getContainingClassStaticBlock:()=>Ese,getContainingFunction:()=>hp,getContainingFunctionDeclaration:()=>Cse,getContainingFunctionOrClassStaticBlock:()=>QF,getContainingNodeArray:()=>$ae,getContainingObjectLiteralElement:()=>UI,getContextualTypeFromParent:()=>yj,getContextualTypeFromParentOrAncestorTypeNode:()=>KR,getCurrentTime:()=>X7,getDeclarationDiagnostics:()=>eue,getDeclarationEmitExtensionForPath:()=>b9,getDeclarationEmitOutputFilePath:()=>Gse,getDeclarationEmitOutputFilePathWorker:()=>v9,getDeclarationFileExtension:()=>KH,getDeclarationFromName:()=>IP,getDeclarationModifierFlagsFromSymbol:()=>nd,getDeclarationOfKind:()=>Cc,getDeclarationsOfKind:()=>Xie,getDeclaredExpandoInitializer:()=>UA,getDecorators:()=>_1,getDefaultCompilerOptions:()=>aB,getDefaultExportInfoWorker:()=>Lj,getDefaultFormatCodeSettings:()=>WR,getDefaultLibFileName:()=>iA,getDefaultLibFilePath:()=>Epe,getDefaultLikeExportInfo:()=>Fj,getDiagnosticText:()=>eke,getDiagnosticsWithinSpan:()=>tfe,getDirectoryPath:()=>oi,getDirectoryToWatchFailedLookupLocation:()=>eX,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>Iue,getDocumentPositionMapper:()=>tY,getDocumentSpansEqualityComparer:()=>hQ,getESModuleInterop:()=>$g,getEditsForFileRename:()=>ufe,getEffectiveBaseTypeNode:()=>tg,getEffectiveConstraintOfTypeParameter:()=>J6,getEffectiveContainerForJSDocTemplateTag:()=>f9,getEffectiveImplementsTypeNodes:()=>_4,getEffectiveInitializer:()=>zA,getEffectiveJSDocHost:()=>Kv,getEffectiveModifierFlags:()=>M_,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>aae,getEffectiveModifierFlagsNoCache:()=>oae,getEffectiveReturnTypeNode:()=>Id,getEffectiveSetAccessorTypeAnnotationNode:()=>Yse,getEffectiveTypeAnnotationNode:()=>zu,getEffectiveTypeParameterDeclarations:()=>f1,getEffectiveTypeRoots:()=>Bw,getElementOrPropertyAccessArgumentExpressionOrName:()=>u9,getElementOrPropertyAccessName:()=>g0,getElementsOfBindingOrAssignmentPattern:()=>W4,getEmitDeclarations:()=>rd,getEmitFlags:()=>Ya,getEmitHelpers:()=>hL,getEmitModuleDetectionKind:()=>Qq,getEmitModuleKind:()=>r_,getEmitModuleResolutionKind:()=>j_,getEmitScriptTarget:()=>go,getEmitStandardClassFields:()=>Iae,getEnclosingBlockScopeContainer:()=>qg,getEnclosingContainer:()=>EW,getEncodedSemanticClassifications:()=>XQ,getEncodedSyntacticClassifications:()=>QQ,getEndLinePosition:()=>EA,getEntityNameFromTypeNode:()=>RA,getEntrypointsFromPackageJsonInfo:()=>NG,getErrorCountForSummary:()=>DR,getErrorSpanForNode:()=>rx,getErrorSummaryText:()=>Mue,getEscapedTextOfIdentifierOrLiteral:()=>MP,getEscapedTextOfJsxAttributeName:()=>uw,getEscapedTextOfJsxNamespacedName:()=>Ok,getExpandoInitializer:()=>Yv,getExportAssignmentExpression:()=>GW,getExportInfoMap:()=>CI,getExportNeedsImportStarHelper:()=>yle,getExpressionAssociativity:()=>eq,getExpressionPrecedence:()=>jP,getExternalHelpersModuleName:()=>n7,getExternalModuleImportEqualsDeclarationExpression:()=>DP,getExternalModuleName:()=>a4,getExternalModuleNameFromDeclaration:()=>qse,getExternalModuleNameFromPath:()=>oq,getExternalModuleNameLiteral:()=>nC,getExternalModuleRequireArgument:()=>FW,getFallbackOptions:()=>z7,getFileEmitOutput:()=>hue,getFileMatcherPatterns:()=>H9,getFileNamesFromConfigSpecs:()=>Mw,getFileWatcherEventKind:()=>EV,getFilesInErrorForSummary:()=>AR,getFirstConstructorWithBody:()=>Rh,getFirstIdentifier:()=>yp,getFirstNonSpaceCharacterPosition:()=>H_e,getFirstProjectOutput:()=>y$,getFixableErrorSpanExpression:()=>FQ,getFormatCodeSettingsForWriting:()=>Aj,getFullWidth:()=>kA,getFunctionFlags:()=>lu,getHeritageClause:()=>iN,getHostSignatureFromJSDoc:()=>Zv,getIdentifierAutoGenerate:()=>Yxe,getIdentifierGeneratedImportReference:()=>voe,getIdentifierTypeArguments:()=>yx,getImmediatelyInvokedFunctionExpression:()=>sx,getImpliedNodeFormatForFile:()=>q7,getImpliedNodeFormatForFileWorker:()=>B$,getImportNeedsImportDefaultHelper:()=>ZG,getImportNeedsImportStarHelper:()=>ZM,getIndentSize:()=>g4,getIndentString:()=>h9,getInferredLibraryNameResolveFrom:()=>yR,getInitializedVariables:()=>$P,getInitializerOfBinaryExpression:()=>BW,getInitializerOfBindingOrAssignmentElement:()=>i7,getInterfaceBaseTypeNodes:()=>FP,getInternalEmitFlags:()=>Kd,getInvokedExpression:()=>e9,getIsolatedModules:()=>Ld,getJSDocAugmentsTag:()=>yie,getJSDocClassTag:()=>UV,getJSDocCommentRanges:()=>DW,getJSDocCommentsAndTags:()=>zW,getJSDocDeprecatedTag:()=>VV,getJSDocDeprecatedTagNoCache:()=>Cie,getJSDocEnumTag:()=>WV,getJSDocHost:()=>lx,getJSDocImplementsTags:()=>vie,getJSDocOverloadTags:()=>VW,getJSDocOverrideTagNoCache:()=>kie,getJSDocParameterTags:()=>B6,getJSDocParameterTagsNoCache:()=>die,getJSDocPrivateTag:()=>bSe,getJSDocPrivateTagNoCache:()=>Sie,getJSDocProtectedTag:()=>SSe,getJSDocProtectedTagNoCache:()=>xie,getJSDocPublicTag:()=>vSe,getJSDocPublicTagNoCache:()=>bie,getJSDocReadonlyTag:()=>xSe,getJSDocReadonlyTagNoCache:()=>Tie,getJSDocReturnTag:()=>Eie,getJSDocReturnType:()=>lA,getJSDocRoot:()=>l4,getJSDocSatisfiesExpressionType:()=>zq,getJSDocSatisfiesTag:()=>qV,getJSDocTags:()=>Gv,getJSDocTagsNoCache:()=>kSe,getJSDocTemplateTag:()=>TSe,getJSDocThisTag:()=>gF,getJSDocType:()=>Hv,getJSDocTypeAliasName:()=>HH,getJSDocTypeAssertionType:()=>uM,getJSDocTypeParameterDeclarations:()=>k9,getJSDocTypeParameterTags:()=>mie,getJSDocTypeParameterTagsNoCache:()=>gie,getJSDocTypeTag:()=>qv,getJSXImplicitImportBase:()=>U9,getJSXRuntimeImport:()=>V9,getJSXTransformEnabled:()=>z9,getKeyForCompilerOptions:()=>CG,getLanguageVariant:()=>hN,getLastChild:()=>Tq,getLeadingCommentRanges:()=>Ph,getLeadingCommentRangesOfNode:()=>wW,getLeftmostAccessExpression:()=>S4,getLeftmostExpression:()=>x4,getLibraryNameFromLibFileName:()=>R$,getLineAndCharacterOfPosition:()=>Ao,getLineInfo:()=>$G,getLineOfLocalPosition:()=>JP,getLineOfLocalPositionFromLineMap:()=>fx,getLineStartPositionForPosition:()=>jd,getLineStarts:()=>_0,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>vae,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>yae,getLinesBetweenPositions:()=>cP,getLinesBetweenRangeEndAndRangeStart:()=>bq,getLinesBetweenRangeEndPositions:()=>fxe,getLiteralText:()=>ise,getLocalNameForExternalImport:()=>V4,getLocalSymbolForExportDefault:()=>v4,getLocaleSpecificMessage:()=>zs,getLocaleTimeString:()=>$7,getMappedContextSpan:()=>vQ,getMappedDocumentSpan:()=>dj,getMappedLocation:()=>_D,getMatchedFileSpec:()=>aX,getMatchedIncludeSpec:()=>oX,getMeaningFromDeclaration:()=>tI,getMeaningFromLocation:()=>jx,getMembersOfDeclaration:()=>yse,getModeForFileReference:()=>V7,getModeForResolutionAtIndex:()=>_ue,getModeForUsageLocation:()=>I$,getModifiedTime:()=>ck,getModifiers:()=>lb,getModuleInstanceState:()=>C0,getModuleNameStringLiteralAt:()=>H7,getModuleSpecifierEndingPreference:()=>Bae,getModuleSpecifierResolverHost:()=>fQ,getNameForExportedSymbol:()=>Pj,getNameFromImportAttribute:()=>iL,getNameFromIndexInfo:()=>fse,getNameFromPropertyName:()=>dI,getNameOfAccessExpression:()=>Cq,getNameOfCompilerOptionValue:()=>uG,getNameOfDeclaration:()=>Ms,getNameOfExpando:()=>RW,getNameOfJSDocTypedef:()=>pie,getNameOrArgument:()=>qA,getNameTable:()=>zY,getNamesForExportedSymbol:()=>nfe,getNamespaceDeclarationNode:()=>o4,getNewLineCharacter:()=>Sy,getNewLineKind:()=>kI,getNewLineOrDefaultFromHost:()=>Iy,getNewTargetContainer:()=>wse,getNextJSDocCommentLocation:()=>UW,getNodeForGeneratedName:()=>a7,getNodeId:()=>ho,getNodeKind:()=>Qb,getNodeModifiers:()=>cD,getNodeModulePathParts:()=>tL,getNonAssignedNameOfDeclaration:()=>dF,getNonAssignmentOperatorForCompoundAssignment:()=>Ww,getNonAugmentationDeclaration:()=>bW,getNonDecoratorTokenPosOfNode:()=>mW,getNormalizedAbsolutePath:()=>Ss,getNormalizedAbsolutePathWithoutRoot:()=>IV,getNormalizedPathComponents:()=>$8,getObjectFlags:()=>Br,getOperator:()=>nq,getOperatorAssociativity:()=>tq,getOperatorPrecedence:()=>oN,getOptionFromName:()=>aG,getOptionsForLibraryResolution:()=>PG,getOptionsNameMap:()=>G4,getOrCreateEmitNode:()=>i_,getOrCreateExternalHelpersModuleNameIfNeeded:()=>ece,getOrUpdate:()=>Ks,getOriginalNode:()=>Gc,getOriginalNodeId:()=>s_,getOriginalSourceFile:()=>nxe,getOutputDeclarationFileName:()=>Kw,getOutputDeclarationFileNameWorker:()=>g$,getOutputExtension:()=>oR,getOutputFileNames:()=>a6e,getOutputJSFileNameWorker:()=>h$,getOutputPathsFor:()=>Zw,getOutputPathsForBundle:()=>Yw,getOwnEmitOutputFilePath:()=>Hse,getOwnKeys:()=>Eh,getOwnValues:()=>ik,getPackageJsonInfo:()=>Vb,getPackageJsonTypesVersionsPaths:()=>NM,getPackageJsonsVisibleToFile:()=>K_e,getPackageNameFromTypesPackageName:()=>zw,getPackageScopeForPath:()=>E7,getParameterSymbolFromJSDoc:()=>KA,getParameterTypeNode:()=>Txe,getParentNodeInSpan:()=>gI,getParseTreeNode:()=>Is,getParsedCommandLineOfConfigFile:()=>_7,getPathComponents:()=>au,getPathComponentsRelativeTo:()=>FV,getPathFromPathComponents:()=>c1,getPathUpdater:()=>KQ,getPathsBasePath:()=>S9,getPatternFromSpec:()=>Mae,getPendingEmitKind:()=>o3,getPositionOfLineAndCharacter:()=>K8,getPossibleGenericSignatures:()=>tQ,getPossibleOriginalInputExtensionForExtension:()=>$se,getPossibleTypeArgumentsInfo:()=>nQ,getPreEmitDiagnostics:()=>o6e,getPrecedingNonSpaceCharacterPosition:()=>gj,getPrivateIdentifier:()=>n$,getProperties:()=>e$,getProperty:()=>DO,getPropertyArrayElementValue:()=>kse,getPropertyAssignmentAliasLikeExpression:()=>zse,getPropertyNameForPropertyNameNode:()=>ux,getPropertyNameForUniqueESSymbol:()=>exe,getPropertyNameFromType:()=>Fd,getPropertyNameOfBindingOrAssignmentElement:()=>qH,getPropertySymbolFromBindingElement:()=>pj,getPropertySymbolsFromContextualType:()=>cB,getQuoteFromPreference:()=>dQ,getQuotePreference:()=>Bp,getRangesWhere:()=>Dr,getRefactorContextSpan:()=>gC,getReferencedFileLocation:()=>tD,getRegexFromPattern:()=>k1,getRegularExpressionForWildcard:()=>ZP,getRegularExpressionsForWildcards:()=>W9,getRelativePathFromDirectory:()=>Qd,getRelativePathFromFile:()=>Q8,getRelativePathToDirectoryOrUrl:()=>uk,getRenameLocation:()=>vI,getReplacementSpanForContextToken:()=>aQ,getResolutionDiagnostic:()=>U$,getResolutionModeOverride:()=>r3,getResolveJsonModule:()=>i2,getResolvePackageJsonExports:()=>lL,getResolvePackageJsonImports:()=>uL,getResolvedExternalModuleName:()=>y9,getRestIndicatorOfBindingOrAssignmentElement:()=>fM,getRestParameterElementType:()=>AW,getRightMostAssignedExpression:()=>VA,getRootDeclaration:()=>rg,getRootDirectoryOfResolutionCache:()=>Oue,getRootLength:()=>zg,getRootPathSplitLength:()=>I6e,getScriptKind:()=>kQ,getScriptKindFromFileName:()=>$9,getScriptTargetFeatures:()=>oL,getSelectedEffectiveModifierFlags:()=>Ek,getSelectedSyntacticModifierFlags:()=>iae,getSemanticClassifications:()=>afe,getSemanticJsxChildren:()=>p4,getSetAccessorTypeAnnotationNode:()=>Xse,getSetAccessorValueParameter:()=>zP,getSetExternalModuleIndicator:()=>yN,getShebang:()=>_F,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>JW,getSingleVariableOfVariableStatement:()=>xk,getSnapshotText:()=>d3,getSnippetElement:()=>pH,getSourceFileOfModule:()=>MF,getSourceFileOfNode:()=>qn,getSourceFilePathInNewDir:()=>x9,getSourceFilePathInNewDirWorker:()=>T9,getSourceFileVersionAsHashFromText:()=>IR,getSourceFilesToEmit:()=>cq,getSourceMapRange:()=>Ty,getSourceMapper:()=>xfe,getSourceTextOfNodeFromSourceFile:()=>pb,getSpanOfTokenAtPosition:()=>Hg,getSpellingSuggestion:()=>eP,getStartPositionOfLine:()=>v1,getStartPositionOfRange:()=>GP,getStartsOnNewLine:()=>mw,getStaticPropertiesAndClassStaticBlock:()=>tR,getStrictOptionValue:()=>R_,getStringComparer:()=>E6,getSubPatternFromSpec:()=>q9,getSuperCallFromStatement:()=>KM,getSuperContainer:()=>LA,getSupportedCodeFixes:()=>BY,getSupportedExtensions:()=>KP,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>vN,getSwitchedType:()=>DQ,getSymbolId:()=>Ia,getSymbolNameForPrivateIdentifier:()=>sN,getSymbolTarget:()=>CQ,getSyntacticClassifications:()=>ofe,getSyntacticModifierFlags:()=>x1,getSyntacticModifierFlagsNoCache:()=>fq,getSynthesizedDeepClone:()=>Sc,getSynthesizedDeepCloneWithReplacements:()=>yI,getSynthesizedDeepClones:()=>Zb,getSynthesizedDeepClonesWithReplacements:()=>EQ,getSyntheticLeadingComments:()=>A4,getSyntheticTrailingComments:()=>jN,getTargetLabel:()=>$R,getTargetOfBindingOrAssignmentElement:()=>L1,getTemporaryModuleResolutionState:()=>C7,getTextOfConstantValue:()=>sse,getTextOfIdentifierOrLiteral:()=>Ad,getTextOfJSDocComment:()=>_A,getTextOfJsxAttributeName:()=>EN,getTextOfJsxNamespacedName:()=>_w,getTextOfNode:()=>Ol,getTextOfNodeFromSourceText:()=>TP,getTextOfPropertyName:()=>X6,getThisContainer:()=>_f,getThisParameter:()=>Tb,getTokenAtPosition:()=>ps,getTokenPosOfNode:()=>Xv,getTokenSourceMapRange:()=>Xxe,getTouchingPropertyName:()=>mf,getTouchingToken:()=>p3,getTrailingCommentRanges:()=>Jv,getTrailingSemicolonDeferringWriter:()=>aq,getTransformFlagsSubtreeExclusions:()=>coe,getTransformers:()=>p$,getTsBuildInfoEmitOutputFilePath:()=>wy,getTsConfigObjectLiteralExpression:()=>PP,getTsConfigPropArrayElementValue:()=>XF,getTypeAnnotationNode:()=>Qse,getTypeArgumentOrTypeParameterList:()=>D_e,getTypeKeywordOfTypeOnlyImport:()=>mQ,getTypeNode:()=>hoe,getTypeNodeIfAccessible:()=>gD,getTypeParameterFromJsDoc:()=>Lse,getTypeParameterOwner:()=>dSe,getTypesPackageName:()=>jM,getUILocale:()=>kre,getUniqueName:()=>Ux,getUniqueSymbolId:()=>q_e,getUseDefineForClassFields:()=>dw,getWatchErrorSummaryDiagnosticMessage:()=>nX,getWatchFactory:()=>T$,group:()=>KE,groupBy:()=>AO,guessIndentation:()=>Gie,handleNoEmitOptions:()=>J$,hasAbstractModifier:()=>Eb,hasAccessorModifier:()=>ig,hasAmbientModifier:()=>_q,hasChangesInResolutions:()=>fW,hasChildOfKind:()=>cI,hasContextSensitiveParameters:()=>K9,hasDecorators:()=>Kp,hasDocComment:()=>P_e,hasDynamicName:()=>S1,hasEffectiveModifier:()=>qf,hasEffectiveModifiers:()=>C9,hasEffectiveReadonlyModifier:()=>UP,hasExtension:()=>lk,hasIndexSignature:()=>wQ,hasInitializer:()=>h1,hasInvalidEscape:()=>iq,hasJSDocNodes:()=>dp,hasJSDocParameterTags:()=>hie,hasJSFileExtension:()=>Pb,hasJsonModuleEmitEnabled:()=>B9,hasOnlyExpressionInitializer:()=>ex,hasOverrideModifier:()=>E9,hasPossibleExternalModuleReference:()=>use,hasProperty:()=>jo,hasPropertyAccessExpressionWithName:()=>rI,hasQuestionToken:()=>Sk,hasRecordedExternalHelpers:()=>Koe,hasResolutionModeOverride:()=>Kae,hasRestParameter:()=>cW,hasScopeMarker:()=>Bie,hasStaticModifier:()=>Fl,hasSyntacticModifier:()=>Kr,hasSyntacticModifiers:()=>rae,hasTSFileExtension:()=>Ik,hasTabstop:()=>Qae,hasTrailingDirectorySeparator:()=>_y,hasType:()=>AF,hasTypeArguments:()=>XSe,hasZeroOrOneAsteriskCharacter:()=>wq,helperString:()=>gH,hostGetCanonicalFileName:()=>yy,hostUsesCaseSensitiveFileNames:()=>h4,idText:()=>kr,identifierIsThisKeyword:()=>uq,identifierToKeywordKind:()=>Wv,identity:()=>dc,identitySourceMapConsumer:()=>YM,ignoreSourceNewlines:()=>mH,ignoredPaths:()=>G8,importDefaultHelper:()=>jL,importFromModuleSpecifier:()=>NP,importNameElisionDisabled:()=>Pq,importStarHelper:()=>JN,indexOfAnyCharCode:()=>Qa,indexOfNode:()=>$6,indicesOf:()=>rs,inferredTypesContainingFile:()=>a3,injectClassNamedEvaluationHelperBlockIfMissing:()=>iR,injectClassThisAssignmentIfMissing:()=>wle,insertImports:()=>uD,insertLeadingStatement:()=>dTe,insertSorted:()=>$s,insertStatementAfterCustomPrologue:()=>tx,insertStatementAfterStandardPrologue:()=>BSe,insertStatementsAfterCustomPrologue:()=>pW,insertStatementsAfterStandardPrologue:()=>Nh,intersperse:()=>hs,intrinsicTagNameToString:()=>Uq,introducesArgumentsExoticObject:()=>xse,inverseJsxOptionMap:()=>Rw,isAbstractConstructorSymbol:()=>bae,isAbstractModifier:()=>Poe,isAccessExpression:()=>$o,isAccessibilityModifier:()=>iQ,isAccessor:()=>d1,isAccessorModifier:()=>Doe,isAliasSymbolDeclaration:()=>YSe,isAliasableExpression:()=>rN,isAmbientModule:()=>n_,isAmbientPropertyDeclaration:()=>xW,isAnonymousFunctionDefinition:()=>RP,isAnyDirectorySeparator:()=>DV,isAnyImportOrBareOrAccessedRequire:()=>lse,isAnyImportOrReExport:()=>wA,isAnyImportSyntax:()=>nx,isAnySupportedFileExtension:()=>xxe,isApplicableVersionedTypesKey:()=>w7,isArgumentExpressionOfElementAccess:()=>GX,isArray:()=>Ps,isArrayBindingElement:()=>kF,isArrayBindingOrAssignmentElement:()=>yA,isArrayBindingOrAssignmentPattern:()=>nW,isArrayBindingPattern:()=>Ob,isArrayLiteralExpression:()=>B_,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>Ay,isArrayTypeNode:()=>GN,isArrowFunction:()=>ec,isAsExpression:()=>XN,isAssertClause:()=>Moe,isAssertEntry:()=>aTe,isAssertionExpression:()=>KS,isAssertsKeyword:()=>Coe,isAssignmentDeclaration:()=>AP,isAssignmentExpression:()=>Kl,isAssignmentOperator:()=>vy,isAssignmentPattern:()=>bP,isAssignmentTarget:()=>Lh,isAsteriskToken:()=>VN,isAsyncFunction:()=>LP,isAsyncModifier:()=>yw,isAutoAccessorPropertyDeclaration:()=>uf,isAwaitExpression:()=>I1,isAwaitKeyword:()=>TH,isBigIntLiteral:()=>qL,isBinaryExpression:()=>mr,isBinaryOperatorToken:()=>cce,isBindableObjectDefinePropertyCall:()=>ox,isBindableStaticAccessExpression:()=>vb,isBindableStaticElementAccessExpression:()=>l9,isBindableStaticNameExpression:()=>cx,isBindingElement:()=>oo,isBindingElementOfBareOrAccessedRequire:()=>Nse,isBindingName:()=>YS,isBindingOrAssignmentElement:()=>Oie,isBindingOrAssignmentPattern:()=>gA,isBindingPattern:()=>ca,isBlock:()=>na,isBlockOrCatchScoped:()=>gW,isBlockScope:()=>TW,isBlockScopedContainerTopLevel:()=>cse,isBooleanLiteral:()=>vP,isBreakOrContinueStatement:()=>mP,isBreakStatement:()=>rTe,isBuildInfoFile:()=>nue,isBuilderProgram:()=>Rue,isBundle:()=>AH,isBundleFileTextLike:()=>xae,isCallChain:()=>XS,isCallExpression:()=>ma,isCallExpressionTarget:()=>zX,isCallLikeExpression:()=>fb,isCallLikeOrFunctionLikeExpression:()=>rW,isCallOrNewExpression:()=>Zm,isCallOrNewExpressionTarget:()=>UX,isCallSignatureDeclaration:()=>Wk,isCallToHelper:()=>hw,isCaseBlock:()=>Cw,isCaseClause:()=>R4,isCaseKeyword:()=>Aoe,isCaseOrDefaultClause:()=>wF,isCatchClause:()=>Jb,isCatchClauseVariableDeclaration:()=>Xae,isCatchClauseVariableDeclarationOrBindingElement:()=>hW,isCheckJsEnabledForFile:()=>xN,isChildOfNodeWithKind:()=>zSe,isCircularBuildOrder:()=>_C,isClassDeclaration:()=>ql,isClassElement:()=>vu,isClassExpression:()=>Su,isClassInstanceProperty:()=>Nie,isClassLike:()=>fi,isClassMemberModifier:()=>KV,isClassNamedEvaluationHelperBlock:()=>uC,isClassOrTypeElement:()=>TF,isClassStaticBlockDeclaration:()=>Vc,isClassThisAssignmentBlock:()=>Hw,isCollapsedRange:()=>_xe,isColonToken:()=>Toe,isCommaExpression:()=>t7,isCommaListExpression:()=>xw,isCommaSequence:()=>Aw,isCommaToken:()=>xoe,isComment:()=>sj,isCommonJsExportPropertyAssignment:()=>GF,isCommonJsExportedExpression:()=>bse,isCompoundAssignment:()=>Vw,isComputedNonLiteralName:()=>DA,isComputedPropertyName:()=>co,isConciseBody:()=>EF,isConditionalExpression:()=>M4,isConditionalTypeNode:()=>$k,isConstTypeReference:()=>p0,isConstructSignatureDeclaration:()=>qN,isConstructorDeclaration:()=>$c,isConstructorTypeNode:()=>I4,isContextualKeyword:()=>d9,isContinueStatement:()=>nTe,isCustomPrologue:()=>OA,isDebuggerStatement:()=>iTe,isDeclaration:()=>g_,isDeclarationBindingElement:()=>mA,isDeclarationFileName:()=>Wu,isDeclarationName:()=>h0,isDeclarationNameOfEnumOrNamespace:()=>Sq,isDeclarationReadonly:()=>VF,isDeclarationStatement:()=>Vie,isDeclarationWithTypeParameterChildren:()=>CW,isDeclarationWithTypeParameters:()=>kW,isDecorator:()=>Vu,isDecoratorTarget:()=>d_e,isDefaultClause:()=>Pw,isDefaultImport:()=>bk,isDefaultModifier:()=>XL,isDefaultedExpandoInitializer:()=>Ise,isDeleteExpression:()=>Ooe,isDeleteTarget:()=>qW,isDeprecatedDeclaration:()=>wj,isDestructuringAssignment:()=>by,isDiagnosticWithLocation:()=>OQ,isDiskPathRoot:()=>AV,isDoStatement:()=>eTe,isDocumentRegistryEntry:()=>EI,isDotDotDotToken:()=>GL,isDottedName:()=>WP,isDynamicName:()=>g9,isESSymbolIdentifier:()=>txe,isEffectiveExternalModule:()=>yk,isEffectiveModuleDeclaration:()=>ose,isEffectiveStrictModeSourceFile:()=>SW,isElementAccessChain:()=>HV,isElementAccessExpression:()=>uc,isEmittedFileOfProgram:()=>aue,isEmptyArrayLiteral:()=>_ae,isEmptyBindingElement:()=>_ie,isEmptyBindingPattern:()=>uie,isEmptyObjectLiteral:()=>hq,isEmptyStatement:()=>PH,isEmptyStringLiteral:()=>OW,isEntityName:()=>Ef,isEntityNameExpression:()=>il,isEnumConst:()=>mb,isEnumDeclaration:()=>a2,isEnumMember:()=>zb,isEqualityOperatorKind:()=>vj,isEqualsGreaterThanToken:()=>koe,isExclamationToken:()=>WN,isExcludedFile:()=>xce,isExclusivelyTypeOnlyImportOrExport:()=>N$,isExpandoPropertyDeclaration:()=>rL,isExportAssignment:()=>Qc,isExportDeclaration:()=>ml,isExportModifier:()=>Uk,isExportName:()=>lM,isExportNamespaceAsDefaultDeclaration:()=>BF,isExportOrDefaultModifier:()=>s7,isExportSpecifier:()=>h_,isExportsIdentifier:()=>ax,isExportsOrModuleExportsOrAlias:()=>Wb,isExpression:()=>vt,isExpressionNode:()=>Oh,isExpressionOfExternalModuleImportEqualsDeclaration:()=>y_e,isExpressionOfOptionalChainRoot:()=>bF,isExpressionStatement:()=>xu,isExpressionWithTypeArguments:()=>Cy,isExpressionWithTypeArgumentsInClassExtendsClause:()=>P9,isExternalModule:()=>Cl,isExternalModuleAugmentation:()=>db,isExternalModuleImportEqualsDeclaration:()=>Qv,isExternalModuleIndicator:()=>vA,isExternalModuleNameRelative:()=>yu,isExternalModuleReference:()=>Kg,isExternalModuleSymbol:()=>fI,isExternalOrCommonJsModule:()=>mp,isFileLevelReservedGeneratedIdentifier:()=>dA,isFileLevelUniqueName:()=>RF,isFileProbablyExternalModule:()=>c7,isFirstDeclarationOfSymbolParameter:()=>bQ,isFixablePromiseHandler:()=>iY,isForInOrOfStatement:()=>V6,isForInStatement:()=>tM,isForInitializer:()=>Zp,isForOfStatement:()=>QN,isForStatement:()=>kx,isFunctionBlock:()=>hb,isFunctionBody:()=>sW,isFunctionDeclaration:()=>Wl,isFunctionExpression:()=>Xo,isFunctionExpressionOrArrowFunction:()=>Db,isFunctionLike:()=>oa,isFunctionLikeDeclaration:()=>Ko,isFunctionLikeKind:()=>dk,isFunctionLikeOrClassStaticBlockDeclaration:()=>U6,isFunctionOrConstructorTypeNode:()=>Iie,isFunctionOrModuleBlock:()=>eW,isFunctionSymbol:()=>Fse,isFunctionTypeNode:()=>Qg,isFutureReservedKeyword:()=>ZSe,isGeneratedIdentifier:()=>vc,isGeneratedPrivateIdentifier:()=>QS,isGetAccessor:()=>g1,isGetAccessorDeclaration:()=>Op,isGetOrSetAccessorDeclaration:()=>yF,isGlobalDeclaration:()=>J4e,isGlobalScopeAugmentation:()=>eg,isGrammarError:()=>nse,isHeritageClause:()=>Fp,isHoistedFunction:()=>qF,isHoistedVariableStatement:()=>HF,isIdentifier:()=>Je,isIdentifierANonContextualKeyword:()=>QW,isIdentifierName:()=>Jse,isIdentifierOrThisTypeNode:()=>ice,isIdentifierPart:()=>zv,isIdentifierStart:()=>wh,isIdentifierText:()=>Np,isIdentifierTypePredicate:()=>Tse,isIdentifierTypeReference:()=>Wae,isIfStatement:()=>Tx,isIgnoredFileFromWildCardWatching:()=>J7,isImplicitGlob:()=>Nq,isImportAttribute:()=>Roe,isImportAttributeName:()=>Aie,isImportAttributes:()=>Yk,isImportCall:()=>gp,isImportClause:()=>Yg,isImportDeclaration:()=>eu,isImportEqualsDeclaration:()=>Tu,isImportKeyword:()=>bw,isImportMeta:()=>Z6,isImportOrExportSpecifier:()=>pk,isImportOrExportSpecifierName:()=>W_e,isImportSpecifier:()=>Df,isImportTypeAssertionContainer:()=>sTe,isImportTypeNode:()=>zh,isImportableFile:()=>qQ,isInComment:()=>Dy,isInCompoundLikeAssignment:()=>WW,isInExpressionContext:()=>n9,isInJSDoc:()=>BA,isInJSFile:()=>lr,isInJSXText:()=>C_e,isInJsonFile:()=>i9,isInNonReferenceComment:()=>I_e,isInReferenceComment:()=>N_e,isInRightSideOfInternalImportEqualsDeclaration:()=>HR,isInString:()=>pC,isInTemplateString:()=>eQ,isInTopLevelContext:()=>ZF,isInTypeQuery:()=>px,isIncrementalCompilation:()=>pw,isIndexSignatureDeclaration:()=>Ib,isIndexedAccessTypeNode:()=>xx,isInferTypeNode:()=>vx,isInfinityOrNaNString:()=>ow,isInitializedProperty:()=>O7,isInitializedVariable:()=>gN,isInsideJsxElement:()=>rj,isInsideJsxElementOrAttribute:()=>k_e,isInsideNodeModules:()=>TI,isInsideTemplateLiteral:()=>uI,isInstanceOfExpression:()=>w9,isInstantiatedModule:()=>UG,isInterfaceDeclaration:()=>J_,isInternalDeclaration:()=>lW,isInternalModuleImportEqualsDeclaration:()=>r4,isInternalName:()=>UH,isIntersectionTypeNode:()=>Gk,isIntrinsicJsxName:()=>m4,isIterationStatement:()=>m1,isJSDoc:()=>Dm,isJSDocAllType:()=>Uoe,isJSDocAugmentsTag:()=>tC,isJSDocAuthorTag:()=>uTe,isJSDocCallbackTag:()=>IH,isJSDocClassTag:()=>Woe,isJSDocCommentContainingNode:()=>DF,isJSDocConstructSignature:()=>c4,isJSDocDeprecatedTag:()=>RH,isJSDocEnumTag:()=>ZN,isJSDocFunctionType:()=>B4,isJSDocImplementsTag:()=>aM,isJSDocIndexSignature:()=>s9,isJSDocLikeText:()=>YH,isJSDocLink:()=>Joe,isJSDocLinkCode:()=>zoe,isJSDocLinkLike:()=>hk,isJSDocLinkPlain:()=>cTe,isJSDocMemberName:()=>o2,isJSDocNameReference:()=>ww,isJSDocNamepathType:()=>lTe,isJSDocNamespaceBody:()=>OSe,isJSDocNode:()=>W6,isJSDocNonNullableType:()=>nM,isJSDocNullableType:()=>j4,isJSDocOptionalParameter:()=>CN,isJSDocOptionalType:()=>NH,isJSDocOverloadTag:()=>J4,isJSDocOverrideTag:()=>iM,isJSDocParameterTag:()=>Am,isJSDocPrivateTag:()=>FH,isJSDocPropertyLikeTag:()=>gP,isJSDocPropertyTag:()=>qoe,isJSDocProtectedTag:()=>LH,isJSDocPublicTag:()=>OH,isJSDocReadonlyTag:()=>MH,isJSDocReturnTag:()=>sM,isJSDocSatisfiesExpression:()=>Jq,isJSDocSatisfiesTag:()=>oM,isJSDocSeeTag:()=>_Te,isJSDocSignature:()=>c2,isJSDocTag:()=>q6,isJSDocTemplateTag:()=>Rd,isJSDocThisTag:()=>jH,isJSDocThrowsTag:()=>pTe,isJSDocTypeAlias:()=>Dd,isJSDocTypeAssertion:()=>U4,isJSDocTypeExpression:()=>Ub,isJSDocTypeLiteral:()=>wx,isJSDocTypeTag:()=>Dw,isJSDocTypedefTag:()=>Dx,isJSDocUnknownTag:()=>fTe,isJSDocUnknownType:()=>Voe,isJSDocVariadicType:()=>rM,isJSXTagName:()=>n4,isJsonEqual:()=>Y9,isJsonSourceFile:()=>wd,isJsxAttribute:()=>_g,isJsxAttributeLike:()=>PF,isJsxAttributeName:()=>Zae,isJsxAttributes:()=>Bb,isJsxChild:()=>xA,isJsxClosingElement:()=>Rb,isJsxClosingFragment:()=>joe,isJsxElement:()=>Uh,isJsxExpression:()=>Ew,isJsxFragment:()=>jb,isJsxNamespacedName:()=>wm,isJsxOpeningElement:()=>ug,isJsxOpeningFragment:()=>Kk,isJsxOpeningLikeElement:()=>F_,isJsxOpeningLikeElementTagName:()=>m_e,isJsxSelfClosingElement:()=>Ex,isJsxSpreadAttribute:()=>eC,isJsxTagNameExpression:()=>SP,isJsxText:()=>Bk,isJumpStatementTarget:()=>iI,isKeyword:()=>pf,isKeywordOrPunctuation:()=>p9,isKnownSymbol:()=>aN,isLabelName:()=>qX,isLabelOfLabeledStatement:()=>WX,isLabeledStatement:()=>Mb,isLateVisibilityPaintedStatement:()=>zF,isLeftHandSideExpression:()=>Pf,isLeftHandSideOfAssignment:()=>uxe,isLet:()=>WF,isLineBreak:()=>d_,isLiteralComputedPropertyDeclarationName:()=>nN,isLiteralExpression:()=>_b,isLiteralExpressionOfObject:()=>YV,isLiteralImportTypeNode:()=>b1,isLiteralKind:()=>hP,isLiteralLikeAccess:()=>c9,isLiteralLikeElementAccess:()=>WA,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>XR,isLiteralTypeLikeExpression:()=>vTe,isLiteralTypeLiteral:()=>Rie,isLiteralTypeNode:()=>N1,isLocalName:()=>T0,isLogicalOperator:()=>cae,isLogicalOrCoalescingAssignmentExpression:()=>pq,isLogicalOrCoalescingAssignmentOperator:()=>VP,isLogicalOrCoalescingBinaryExpression:()=>fN,isLogicalOrCoalescingBinaryOperator:()=>_N,isMappedTypeNode:()=>F4,isMemberName:()=>Dh,isMetaProperty:()=>Sw,isMethodDeclaration:()=>ul,isMethodOrAccessor:()=>mk,isMethodSignature:()=>Xg,isMinusToken:()=>xH,isMissingDeclaration:()=>oTe,isMissingPackageJsonInfo:()=>Bce,isModifier:()=>Fa,isModifierKind:()=>dy,isModifierLike:()=>bc,isModuleAugmentationExternal:()=>vW,isModuleBlock:()=>lg,isModuleBody:()=>Jie,isModuleDeclaration:()=>dl,isModuleExportsAccessExpression:()=>Fh,isModuleIdentifier:()=>jW,isModuleName:()=>oce,isModuleOrEnumDeclaration:()=>bA,isModuleReference:()=>qie,isModuleSpecifierLike:()=>fj,isModuleWithStringLiteralName:()=>JF,isNameOfFunctionDeclaration:()=>XX,isNameOfModuleDeclaration:()=>$X,isNamedClassElement:()=>wSe,isNamedDeclaration:()=>I_,isNamedEvaluation:()=>Wf,isNamedEvaluationSource:()=>YW,isNamedExportBindings:()=>$V,isNamedExports:()=>sd,isNamedImportBindings:()=>aW,isNamedImports:()=>x0,isNamedImportsOrExports:()=>L9,isNamedTupleMember:()=>O4,isNamespaceBody:()=>ISe,isNamespaceExport:()=>Zg,isNamespaceExportDeclaration:()=>YN,isNamespaceImport:()=>F1,isNamespaceReexportDeclaration:()=>Ase,isNewExpression:()=>Fb,isNewExpressionTarget:()=>aD,isNoSubstitutionTemplateLiteral:()=>Jk,isNode:()=>ESe,isNodeArray:()=>ub,isNodeArrayMultiLine:()=>hae,isNodeDescendantOf:()=>bb,isNodeKind:()=>fA,isNodeLikeSystem:()=>yU,isNodeModulesDirectory:()=>aF,isNodeWithPossibleHoistedDeclaration:()=>Rse,isNonContextualKeyword:()=>XW,isNonExportDefaultModifier:()=>STe,isNonGlobalAmbientModule:()=>yW,isNonGlobalDeclaration:()=>sfe,isNonNullAccess:()=>Yae,isNonNullChain:()=>SF,isNonNullExpression:()=>Qk,isNonStaticMethodOrAccessorWithPrivateName:()=>vle,isNotEmittedOrPartiallyEmittedNode:()=>NSe,isNotEmittedStatement:()=>DH,isNullishCoalesce:()=>GV,isNumber:()=>oy,isNumericLiteral:()=>Hf,isNumericLiteralName:()=>Jh,isObjectBindingElementWithoutPropertyName:()=>mI,isObjectBindingOrAssignmentElement:()=>hA,isObjectBindingOrAssignmentPattern:()=>tW,isObjectBindingPattern:()=>Md,isObjectLiteralElement:()=>oW,isObjectLiteralElementLike:()=>d0,isObjectLiteralExpression:()=>Va,isObjectLiteralMethod:()=>tm,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>$F,isObjectTypeDeclaration:()=>Dk,isOctalDigit:()=>uF,isOmittedExpression:()=>uu,isOptionalChain:()=>m_,isOptionalChainRoot:()=>pP,isOptionalDeclaration:()=>lw,isOptionalJSDocPropertyLikeTag:()=>kN,isOptionalTypeNode:()=>QL,isOuterExpression:()=>_M,isOutermostOptionalChain:()=>dP,isOverrideModifier:()=>woe,isPackageJsonInfo:()=>OM,isPackedArrayLiteral:()=>jq,isParameter:()=>ws,isParameterDeclaration:()=>xb,isParameterPropertyDeclaration:()=>Uf,isParameterPropertyModifier:()=>yP,isParenthesizedExpression:()=>df,isParenthesizedTypeNode:()=>bx,isParseTreeNode:()=>fP,isPartOfTypeNode:()=>Ih,isPartOfTypeQuery:()=>r9,isPartiallyEmittedExpression:()=>eM,isPatternMatch:()=>FO,isPinnedComment:()=>jF,isPlainJsFile:()=>CA,isPlusToken:()=>SH,isPossiblyTypeArgumentPosition:()=>lI,isPostfixUnaryExpression:()=>CH,isPrefixUnaryExpression:()=>O1,isPrivateIdentifier:()=>Qi,isPrivateIdentifierClassElementDeclaration:()=>O_,isPrivateIdentifierPropertyAccessExpression:()=>z6,isPrivateIdentifierSymbol:()=>Use,isProgramBundleEmitBuildInfo:()=>xue,isProgramUptoDate:()=>j$,isPrologueDirective:()=>em,isPropertyAccessChain:()=>vF,isPropertyAccessEntityNameExpression:()=>pN,isPropertyAccessExpression:()=>Jr,isPropertyAccessOrQualifiedName:()=>Lie,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>Fie,isPropertyAssignment:()=>Ml,isPropertyDeclaration:()=>Zs,isPropertyName:()=>Tl,isPropertyNameLiteral:()=>ng,isPropertySignature:()=>Gf,isProtoSetter:()=>Vse,isPrototypeAccess:()=>T1,isPrototypePropertyAssignment:()=>GA,isPunctuation:()=>$W,isPushOrUnshiftIdentifier:()=>ZW,isQualifiedName:()=>Z_,isQuestionDotToken:()=>$L,isQuestionOrExclamationToken:()=>rce,isQuestionOrPlusOrMinusToken:()=>ace,isQuestionToken:()=>D1,isRawSourceMap:()=>mle,isReadonlyKeyword:()=>Eoe,isReadonlyKeywordOrPlusOrMinusToken:()=>sce,isRecognizedTripleSlashComment:()=>dW,isReferenceFileLocation:()=>i3,isReferencedFile:()=>m2,isRegularExpressionLiteral:()=>vH,isRequireCall:()=>Q_,isRequireVariableStatement:()=>MW,isRestParameter:()=>Ah,isRestTypeNode:()=>YL,isReturnStatement:()=>rm,isReturnStatementWithFixablePromiseHandler:()=>jj,isRightSideOfAccessExpression:()=>gq,isRightSideOfInstanceofExpression:()=>uae,isRightSideOfPropertyAccess:()=>_3,isRightSideOfQualifiedName:()=>h_e,isRightSideOfQualifiedNameOrPropertyAccess:()=>qP,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>lae,isRootedDiskPath:()=>zf,isSameEntityName:()=>i4,isSatisfiesExpression:()=>EH,isScopeMarker:()=>jie,isSemicolonClassElement:()=>Foe,isSetAccessor:()=>my,isSetAccessorDeclaration:()=>$f,isShebangTrivia:()=>LV,isShiftOperatorOrHigher:()=>$H,isShorthandAmbientModuleSymbol:()=>kP,isShorthandPropertyAssignment:()=>Af,isSignedNumericLiteral:()=>m9,isSimpleCopiableExpression:()=>Hb,isSimpleInlineableExpression:()=>nh,isSimpleParameter:()=>kle,isSimpleParameterList:()=>F7,isSingleOrDoubleQuote:()=>JA,isSourceFile:()=>es,isSourceFileFromLibrary:()=>v3,isSourceFileJS:()=>L_,isSourceFileNotJS:()=>WSe,isSourceFileNotJson:()=>LW,isSourceMapping:()=>gle,isSpecialPropertyDeclaration:()=>Ose,isSpreadAssignment:()=>Ey,isSpreadElement:()=>Pm,isStatement:()=>Xi,isStatementButNotDeclaration:()=>SA,isStatementOrBlock:()=>Wie,isStatementWithLocals:()=>tse,isStatic:()=>da,isStaticModifier:()=>Vk,isString:()=>Ls,isStringAKeyword:()=>KSe,isStringANonContextualKeyword:()=>kk,isStringAndEmptyAnonymousObjectIntersection:()=>A_e,isStringDoubleQuoted:()=>o9,isStringLiteral:()=>Ba,isStringLiteralLike:()=>vo,isStringLiteralOrJsxExpression:()=>Hie,isStringLiteralOrTemplate:()=>Q_e,isStringOrNumericLiteralLike:()=>Ip,isStringOrRegularExpressionOrTemplateLiteral:()=>rQ,isStringTextContainingNode:()=>ZV,isSuperCall:()=>ix,isSuperKeyword:()=>vw,isSuperOrSuperProperty:()=>VSe,isSuperProperty:()=>ff,isSupportedSourceFileName:()=>Jae,isSwitchStatement:()=>kw,isSyntaxList:()=>z4,isSyntheticExpression:()=>Kxe,isSyntheticReference:()=>Zk,isTagName:()=>HX,isTaggedTemplateExpression:()=>Lb,isTaggedTemplateTag:()=>p_e,isTemplateExpression:()=>ZL,isTemplateHead:()=>zk,isTemplateLiteral:()=>gk,isTemplateLiteralKind:()=>p1,isTemplateLiteralToken:()=>wie,isTemplateLiteralTypeNode:()=>Noe,isTemplateLiteralTypeSpan:()=>kH,isTemplateMiddle:()=>bH,isTemplateMiddleOrTemplateTail:()=>xF,isTemplateSpan:()=>Tw,isTemplateTail:()=>HL,isTextWhiteSpaceLike:()=>M_e,isThis:()=>f3,isThisContainerOrFunctionBlock:()=>Pse,isThisIdentifier:()=>Cb,isThisInTypeQuery:()=>Ck,isThisInitializedDeclaration:()=>KF,isThisInitializedObjectBindingExpression:()=>Dse,isThisProperty:()=>MA,isThisTypeNode:()=>$N,isThisTypeParameter:()=>cw,isThisTypePredicate:()=>USe,isThrowStatement:()=>wH,isToken:()=>fk,isTokenKind:()=>QV,isTraceEnabled:()=>k0,isTransientSymbol:()=>Vg,isTrivia:()=>f4,isTryStatement:()=>Cx,isTupleTypeNode:()=>Hk,isTypeAlias:()=>QA,isTypeAliasDeclaration:()=>im,isTypeAssertionExpression:()=>Ioe,isTypeDeclaration:()=>P4,isTypeElement:()=>ZS,isTypeKeyword:()=>lD,isTypeKeywordToken:()=>lQ,isTypeKeywordTokenOrIdentifier:()=>cj,isTypeLiteralNode:()=>Xf,isTypeNode:()=>Gi,isTypeNodeKind:()=>kq,isTypeOfExpression:()=>L4,isTypeOnlyExportDeclaration:()=>Die,isTypeOnlyImportDeclaration:()=>pA,isTypeOnlyImportOrExportDeclaration:()=>$v,isTypeOperatorNode:()=>Sx,isTypeParameterDeclaration:()=>Ic,isTypePredicateNode:()=>HN,isTypeQueryNode:()=>qk,isTypeReferenceNode:()=>id,isTypeReferenceType:()=>NF,isTypeUsableAsPropertyName:()=>Od,isUMDExportSymbol:()=>F9,isUnaryExpression:()=>iW,isUnaryExpressionWithWrite:()=>Mie,isUnicodeIdentifierStart:()=>cF,isUnionTypeNode:()=>A1,isUnparsedNode:()=>XV,isUnparsedPrepend:()=>Boe,isUnparsedSource:()=>Px,isUnparsedTextLike:()=>Pie,isUrl:()=>$re,isValidBigIntString:()=>Z9,isValidESSymbolDeclaration:()=>Sse,isValidTypeOnlyAliasUseSite:()=>r2,isValueSignatureDeclaration:()=>jse,isVarAwaitUsing:()=>NA,isVarConst:()=>Y6,isVarUsing:()=>IA,isVariableDeclaration:()=>Ji,isVariableDeclarationInVariableStatement:()=>EP,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>yb,isVariableDeclarationInitializedToRequire:()=>a9,isVariableDeclarationList:()=>_u,isVariableLike:()=>K6,isVariableLikeOrAccessor:()=>vse,isVariableStatement:()=>Xc,isVoidExpression:()=>Xk,isWatchSet:()=>pxe,isWhileStatement:()=>tTe,isWhiteSpaceLike:()=>f0,isWhiteSpaceSingleLine:()=>Ym,isWithStatement:()=>Loe,isWriteAccess:()=>wk,isWriteOnlyAccess:()=>O9,isYieldExpression:()=>KL,jsxModeNeedsExplicitImport:()=>jQ,keywordPart:()=>Yf,last:()=>so,lastOrUndefined:()=>pc,length:()=>Xe,libMap:()=>TM,libs:()=>h7,lineBreakPart:()=>h3,linkNamePart:()=>U_e,linkPart:()=>xQ,linkTextPart:()=>mj,listFiles:()=>rX,loadModuleFromGlobalCache:()=>Xce,loadWithModeAwareCache:()=>W7,makeIdentifierFromModuleName:()=>ase,makeImport:()=>Ny,makeImportIfNecessary:()=>L_e,makeStringLiteral:()=>mC,mangleScopedPackageName:()=>K4,map:()=>Kt,mapAllOrFail:()=>nk,mapDefined:()=>Oi,mapDefinedEntries:()=>Aa,mapDefinedIterator:()=>xi,mapEntries:()=>Xt,mapIterator:()=>Nl,mapOneOrMany:()=>LQ,mapToDisplayParts:()=>J1,matchFiles:()=>Iq,matchPatternOrExact:()=>Oq,matchedText:()=>Dre,matchesExclude:()=>xM,maybeBind:()=>fa,maybeSetLocalizedDiagnosticMessages:()=>wae,memoize:()=>X_,memoizeCached:()=>xre,memoizeOne:()=>Bg,memoizeWeak:()=>bbe,metadataHelper:()=>vL,min:()=>pU,minAndMax:()=>Uae,missingFileModifiedTime:()=>fp,modifierToFlag:()=>Pk,modifiersToFlags:()=>sg,moduleOptionDeclaration:()=>dG,moduleResolutionIsEqualTo:()=>Kie,moduleResolutionNameAndModeGetter:()=>xR,moduleResolutionOptionDeclarations:()=>kM,moduleResolutionSupportsPackageJsonExportsAndImports:()=>Nk,moduleResolutionUsesNodeModules:()=>lj,moduleSpecifiers:()=>qb,moveEmitHelpers:()=>moe,moveRangeEnd:()=>N9,moveRangePastDecorators:()=>y0,moveRangePastModifiers:()=>ag,moveRangePos:()=>t2,moveSyntheticComments:()=>foe,mutateMap:()=>QP,mutateMapSkippingNewValues:()=>jh,needsParentheses:()=>hj,needsScopeMarker:()=>CF,newCaseClauseTracker:()=>Nj,newPrivateEnvironment:()=>xle,noEmitNotification:()=>L7,noEmitSubstitution:()=>Xw,noTransformers:()=>d$,noTruncationMaximumTruncationLength:()=>aL,nodeCanBeDecorated:()=>t9,nodeHasName:()=>cA,nodeIsDecorated:()=>t4,nodeIsMissing:()=>nl,nodeIsPresent:()=>Ed,nodeIsSynthesized:()=>lc,nodeModuleNameResolver:()=>Vce,nodeModulesPathPart:()=>th,nodeNextJsonConfigResolver:()=>Wce,nodeOrChildIsDecorated:()=>jA,nodeOverlapsWithStartEnd:()=>QR,nodePosToString:()=>LSe,nodeSeenTracker:()=>dC,nodeStartsNewLexicalEnvironment:()=>KW,nodeToDisplayParts:()=>F4e,noop:()=>ao,noopFileWatcher:()=>l3,normalizePath:()=>ka,normalizeSlashes:()=>t_,not:()=>MO,notImplemented:()=>ta,notImplementedResolver:()=>_R,nullNodeConverters:()=>aH,nullParenthesizerRules:()=>sH,nullTransformationContext:()=>Qw,objectAllocator:()=>Au,operatorPart:()=>fD,optionDeclarations:()=>Vh,optionMapToObject:()=>vM,optionsAffectingProgramStructure:()=>vG,optionsForBuild:()=>SG,optionsForWatch:()=>$4,optionsHaveChanges:()=>H6,optionsHaveModuleResolutionChanges:()=>Qie,or:()=>Tm,orderedRemoveItem:()=>w6,orderedRemoveItemAt:()=>a1,outFile:()=>Vo,packageIdToPackageName:()=>LF,packageIdToString:()=>y1,paramHelper:()=>bL,parameterIsThisKeyword:()=>kb,parameterNamePart:()=>j_e,parseBaseNodeFactory:()=>nG,parseBigInt:()=>Vae,parseBuildCommand:()=>KTe,parseCommandLine:()=>YTe,parseCommandLineWorker:()=>sG,parseConfigFileTextToJson:()=>oG,parseConfigFileWithSystem:()=>F6e,parseConfigHostFromCompilerHostLike:()=>SR,parseCustomTypeOption:()=>yM,parseIsolatedEntityName:()=>rC,parseIsolatedJSDocComment:()=>dce,parseJSDocTypeExpressionForTests:()=>jTe,parseJsonConfigFileContent:()=>pke,parseJsonSourceFileConfigFileContent:()=>d7,parseJsonText:()=>u7,parseListTypeOption:()=>gce,parseNodeFactory:()=>eh,parseNodeModuleFromPath:()=>k7,parsePackageName:()=>P7,parsePseudoBigInt:()=>rw,parseValidBigInt:()=>Rq,patchWriteFileEnsuringDirectory:()=>Hre,pathContainsNodeModules:()=>p2,pathIsAbsolute:()=>sP,pathIsBareSpecifier:()=>NV,pathIsRelative:()=>pp,patternText:()=>wre,perfLogger:()=>A_,performIncrementalCompilation:()=>j6e,performance:()=>Jre,plainJSErrors:()=>TR,positionBelongsToNode:()=>YX,positionIsASICandidate:()=>Sj,positionIsSynthesized:()=>Em,positionsAreOnSameLine:()=>td,preProcessFile:()=>o3e,probablyUsesSemicolons:()=>SI,processCommentPragmas:()=>eG,processPragmasIntoFields:()=>tG,processTaggedTemplateExpression:()=>o$,programContainsEsModules:()=>F_e,programContainsModules:()=>O_e,projectReferenceIsEqualTo:()=>_W,propKeyHelper:()=>OL,propertyNamePart:()=>B_e,pseudoBigIntToString:()=>wb,punctuationPart:()=>b_,pushIfUnique:()=>Jf,quote:()=>mD,quotePreferenceFromString:()=>pQ,rangeContainsPosition:()=>sI,rangeContainsPositionExclusive:()=>aI,rangeContainsRange:()=>jp,rangeContainsRangeExclusive:()=>v_e,rangeContainsStartEnd:()=>oI,rangeEndIsOnSameLineAsRangeStart:()=>mN,rangeEndPositionsAreOnSameLine:()=>mae,rangeEquals:()=>aU,rangeIsOnSingleLine:()=>mx,rangeOfNode:()=>Lq,rangeOfTypeParameters:()=>Mq,rangeOverlapsWithStartEnd:()=>oD,rangeStartIsOnSameLineAsRangeEnd:()=>gae,rangeStartPositionsAreOnSameLine:()=>I9,readBuilderProgram:()=>LR,readConfigFile:()=>f7,readHelper:()=>NL,readJson:()=>HP,readJsonConfigFile:()=>vce,readJsonOrUndefined:()=>yq,reduceEachLeadingCommentRange:()=>eie,reduceEachTrailingCommentRange:()=>tie,reduceLeft:()=>D_,reduceLeftIterator:()=>Yn,reducePathComponents:()=>$S,refactor:()=>yC,regExpEscape:()=>bxe,relativeComplement:()=>Fg,removeAllComments:()=>MN,removeEmitHelper:()=>Qxe,removeExtension:()=>SN,removeFileExtension:()=>Y_,removeIgnoredPath:()=>ER,removeMinAndVersionNumbers:()=>dU,removeOptionality:()=>E_e,removePrefix:()=>tP,removeSuffix:()=>P6,removeTrailingDirectorySeparator:()=>Bv,repeatString:()=>pI,replaceElement:()=>lU,replaceFirstStar:()=>Fk,resolutionExtensionIsTSOrJson:()=>ew,resolveConfigFileProjectName:()=>dX,resolveJSModule:()=>zce,resolveLibrary:()=>LM,resolveModuleName:()=>Y4,resolveModuleNameFromCache:()=>Qke,resolvePackageNameToPackageJson:()=>kG,resolvePath:()=>l1,resolveProjectReferencePath:()=>s3,resolveTripleslashReference:()=>mR,resolveTypeReferenceDirective:()=>Rce,resolvingEmptyArray:()=>sL,restHelper:()=>PL,returnFalse:()=>xm,returnNoopFileWatcher:()=>u3,returnTrue:()=>cy,returnUndefined:()=>Rv,returnsPromise:()=>rY,runInitializersHelper:()=>xL,sameFlatMap:()=>VS,sameMap:()=>Dc,sameMapping:()=>RCe,scanShebangTrivia:()=>MV,scanTokenAtPosition:()=>gse,scanner:()=>S_,screenStartingMessageCodes:()=>FR,semanticDiagnosticsOptionDeclarations:()=>gG,serializeCompilerOptions:()=>bM,server:()=>aIe,servicesVersion:()=>Ppe,setCommentRange:()=>kl,setConfigFileInOptions:()=>fG,setConstantValue:()=>doe,setEachParent:()=>E4,setEmitFlags:()=>pr,setFunctionNameHelper:()=>FL,setGetSourceFileAsHashVersioned:()=>OR,setIdentifierAutoGenerate:()=>BN,setIdentifierGeneratedImportReference:()=>yoe,setIdentifierTypeArguments:()=>ky,setInternalEmitFlags:()=>RN,setLocalizedDiagnosticMessages:()=>Pae,setModuleDefaultHelper:()=>RL,setNodeFlags:()=>Hae,setObjectAllocator:()=>Eae,setOriginalNode:()=>Ir,setParent:()=>eo,setParentRecursive:()=>C1,setPrivateIdentifier:()=>Ox,setSnippetElement:()=>dH,setSourceMapRange:()=>ja,setStackTraceLimit:()=>zbe,setStartsOnNewLine:()=>mL,setSyntheticLeadingComments:()=>s2,setSyntheticTrailingComments:()=>Mk,setSys:()=>Hbe,setSysLog:()=>Wre,setTextRange:()=>ut,setTextRangeEnd:()=>C4,setTextRangePos:()=>iw,setTextRangePosEnd:()=>Gg,setTextRangePosWidth:()=>sw,setTokenSourceMapRange:()=>_oe,setTypeNode:()=>goe,setUILocale:()=>Cre,setValueDeclaration:()=>$A,shouldAllowImportingTsExtension:()=>e3,shouldPreserveConstEnums:()=>Nb,shouldUseUriStyleNodeCoreModules:()=>Dj,showModuleSpecifier:()=>Sae,signatureHasLiteralTypes:()=>VG,signatureHasRestParameter:()=>v_,signatureToDisplayParts:()=>TQ,single:()=>cU,singleElementArray:()=>ok,singleIterator:()=>wu,singleOrMany:()=>Rg,singleOrUndefined:()=>Mg,skipAlias:()=>Uu,skipAssertions:()=>gTe,skipConstraint:()=>uQ,skipOuterExpressions:()=>gl,skipParentheses:()=>Eo,skipPartiallyEmittedExpressions:()=>Zd,skipTrivia:()=>za,skipTypeChecking:()=>nw,skipTypeParentheses:()=>tN,skipWhile:()=>Nre,sliceAfter:()=>Fq,some:()=>Pe,sort:()=>i1,sortAndDeduplicate:()=>io,sortAndDeduplicateDiagnostics:()=>R6,sourceFileAffectingCompilerOptions:()=>CM,sourceFileMayBeEmitted:()=>_x,sourceMapCommentRegExp:()=>XM,sourceMapCommentRegExpDontCareLineStart:()=>YG,spacePart:()=>Yc,spanMap:()=>$_,spreadArrayHelper:()=>IL,stableSort:()=>sy,startEndContainsRange:()=>QX,startEndOverlapsWithStartEnd:()=>YR,startOnNewLine:()=>y_,startTracing:()=>zre,startsWith:()=>fs,startsWithDirectory:()=>OV,startsWithUnderscore:()=>RQ,startsWithUseStrict:()=>Yoe,stringContainsAt:()=>ife,stringToToken:()=>cb,stripQuotes:()=>Nd,supportedDeclarationExtensions:()=>AN,supportedJSExtensions:()=>nH,supportedJSExtensionsFlat:()=>D4,supportedLocaleDirectories:()=>uW,supportedTSExtensions:()=>w4,supportedTSExtensionsFlat:()=>tH,supportedTSImplementationExtensions:()=>NN,suppressLeadingAndTrailingTrivia:()=>Zf,suppressLeadingTrivia:()=>PQ,suppressTrailingTrivia:()=>G_e,symbolEscapedNameNoDefault:()=>_j,symbolName:()=>Rc,symbolNameNoDefault:()=>uj,symbolPart:()=>R_e,symbolToDisplayParts:()=>pD,syntaxMayBeASICandidate:()=>VQ,syntaxRequiresTrailingSemicolonOrASI:()=>bj,sys:()=>Bu,sysLog:()=>q8,tagNamesAreEquivalent:()=>u2,takeWhile:()=>jO,targetOptionDeclaration:()=>v7,templateObjectHelper:()=>AL,testFormatSettings:()=>f_e,textChangeRangeIsUnchanged:()=>cie,textChangeRangeNewSpan:()=>_P,textChanges:()=>gr,textOrKeywordPart:()=>SQ,textPart:()=>Jp,textRangeContainsPositionInclusive:()=>sA,textSpanContainsPosition:()=>BV,textSpanContainsTextSpan:()=>iie,textSpanEnd:()=>pl,textSpanIntersection:()=>oie,textSpanIntersectsWith:()=>pF,textSpanIntersectsWithPosition:()=>aie,textSpanIntersectsWithTextSpan:()=>pSe,textSpanIsEmpty:()=>rie,textSpanOverlap:()=>sie,textSpanOverlapsWith:()=>fSe,textSpansEqual:()=>g3,textToKeywordObj:()=>rA,timestamp:()=>cc,toArray:()=>sk,toBuilderFileEmit:()=>Cue,toBuilderStateFileInfoForMultiEmit:()=>kue,toEditorSettings:()=>JI,toFileNameLowerCase:()=>jg,toLowerCase:()=>Sre,toPath:()=>hc,toProgramEmitPending:()=>Eue,tokenIsIdentifierOrKeyword:()=>N_,tokenIsIdentifierOrKeywordOrGreaterThan:()=>Zre,tokenToString:()=>ba,trace:()=>Cs,tracing:()=>cr,tracingEnabled:()=>z8,transform:()=>sPe,transformClassFields:()=>Ole,transformDeclarations:()=>f$,transformECMAScriptModule:()=>_$,transformES2015:()=>$le,transformES2016:()=>Gle,transformES2017:()=>Rle,transformES2018:()=>jle,transformES2019:()=>Ble,transformES2020:()=>Jle,transformES2021:()=>zle,transformES5:()=>Xle,transformESDecorators:()=>Mle,transformESNext:()=>Ule,transformGenerators:()=>Qle,transformJsx:()=>Hle,transformLegacyDecorators:()=>Lle,transformModule:()=>u$,transformNamedEvaluation:()=>Qf,transformNodeModule:()=>Zle,transformNodes:()=>M7,transformSystemModule:()=>Yle,transformTypeScript:()=>Ile,transpile:()=>m3e,transpileModule:()=>Tfe,transpileOptionValueCompilerOptions:()=>bG,tryAddToSet:()=>Na,tryAndIgnoreErrors:()=>kj,tryCast:()=>si,tryDirectoryExists:()=>Tj,tryExtractTSExtension:()=>D9,tryFileExists:()=>xI,tryGetClassExtendingExpressionWithTypeArguments:()=>dq,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>mq,tryGetDirectories:()=>xj,tryGetExtensionFromPath:()=>b0,tryGetImportFromModuleSpecifier:()=>XA,tryGetJSDocSatisfiesTypeNode:()=>nL,tryGetModuleNameFromFile:()=>r7,tryGetModuleSpecifierFromDeclaration:()=>s4,tryGetNativePerformanceHooks:()=>Rre,tryGetPropertyAccessOrIdentifierToString:()=>dN,tryGetPropertyNameOfBindingOrAssignmentElement:()=>pM,tryGetSourceMappingURL:()=>dle,tryGetTextOfPropertyName:()=>CP,tryIOAndConsumeErrors:()=>Cj,tryParseJson:()=>A9,tryParsePattern:()=>k4,tryParsePatterns:()=>X9,tryParseRawSourceMap:()=>XG,tryReadDirectory:()=>AQ,tryReadFile:()=>Fw,tryRemoveDirectoryPrefix:()=>Aq,tryRemoveExtension:()=>zae,tryRemovePrefix:()=>hU,tryRemoveSuffix:()=>Pre,typeAcquisitionDeclarations:()=>b7,typeAliasNamePart:()=>J_e,typeDirectiveIsEqualTo:()=>ese,typeKeywords:()=>Ij,typeParameterNamePart:()=>z_e,typeToDisplayParts:()=>hI,unchangedPollThresholds:()=>H8,unchangedTextChangeRange:()=>TA,unescapeLeadingUnderscores:()=>Hi,unmangleScopedPackageName:()=>D7,unorderedRemoveItem:()=>ak,unorderedRemoveItemAt:()=>mU,unreachableCodeIsError:()=>Aae,unusedLabelIsError:()=>Nae,unwrapInnermostStatementOfLabel:()=>NW,updateErrorForNoInputFiles:()=>SM,updateLanguageServiceSourceFile:()=>JY,updateMissingFilePathsWatch:()=>x$,updateResolutionField:()=>X4,updateSharedExtendedConfigFileWatcher:()=>pR,updateSourceFile:()=>ZH,updateWatchingWildcardDirectories:()=>B7,usesExtensionsOnImports:()=>jae,usingSingleLineStringWriter:()=>xP,utf16EncodeAsString:()=>M6,validateLocaleAndSetLanguage:()=>mSe,valuesHelper:()=>LL,version:()=>wt,versionMajorMinor:()=>rt,visitArray:()=>I7,visitCommaListElements:()=>$M,visitEachChild:()=>En,visitFunctionBody:()=>Rp,visitIterationBody:()=>K_,visitLexicalEnvironment:()=>GG,visitNode:()=>tt,visitNodes:()=>Wn,visitParameterList:()=>Wc,walkUpBindingElementsAndPatterns:()=>j6,walkUpLexicalEnvironments:()=>Sle,walkUpOuterExpressions:()=>Zoe,walkUpParenthesizedExpressions:()=>hy,walkUpParenthesizedTypes:()=>eN,walkUpParenthesizedTypesAndGetParentAndChild:()=>Bse,whitespaceOrMapCommentRegExp:()=>QM,writeCommentRange:()=>y4,writeFile:()=>BP,writeFileEnsuringDirectories:()=>lq,zipWith:()=>ii});var cIe=K({"src/typescript/_namespaces/ts.ts"(){ua(),K7(),ci(),V1(),xlt()}}),Tlt=je({"src/typescript/typescript.ts"(e,t){cIe(),cIe(),typeof console<"u"&&(w.loggingHost={log(r,i){switch(r){case 1:return console.error(i);case 2:return console.warn(i);case 3:return console.log(i);case 4:return console.log(i)}}}),t.exports=oIe}});return Tlt()})();v.exports&&(v.exports=F)})(E6t);window.laochan={close(){window.saucer.call("close",[])},version(){return window.saucer.call("version",[])},minimize(){window.saucer.call("minimize",[])},mounted(){window.saucer.call("mounted",[])},shellExecute(v,E=""){window.saucer.call("shellExecute",[v,E])},async detectGameInstall(v){return await window.saucer.call("detectGameInstall",[v])},async detectGameInstall1(v){return JSON.parse(await window.saucer.call("detectGameInstall1",[v]))},async readFile(v){const E=await window.saucer.call("readFile",[v]);if(E!=="")return E},writeFile(v,E){return window.saucer.call("writeFile",[v,E])},async uuid(){return await window.saucer.call("uuid",[])},setGame(v){return window.saucer.call("setGame",[v])},setParam(v,E){return window.saucer.call("setParam",[v,E])},async getAsioDeviceList(){const v=await window.saucer.call("getAsioDeviceList",[]),E=!!v.length;return E||v.push("XONAR SOUND CARD(64)"),{devices:v,avaliable:E}},checkWasapiDevice(){return window.saucer.call("checkWasapiDeviceStatus",[])},queryDisplayModes(){return window.saucer.call("queryDisplayModes",[]).then(v=>v.map(E=>{const[F,$,ae]=JSON.parse(E);return{width:F,height:$,hz:ae}}))},selfPath:()=>window.saucer.call("selfPath",[]),num:()=>{},ctx:{gameInfos:Pp([{game_type:0,game_name:"",installed:!1,install_path:"",resource_path:"",game_module_path:"",settings_module_path:"",updater_module_path:"",game_module_version:"",game_module_target_version:""},{game_type:0,game_name:"",installed:!1,install_path:"",resource_path:"",game_module_path:"",settings_module_path:"",updater_module_path:"",game_module_version:"",game_module_target_version:""},{game_type:0,game_name:"",installed:!1,install_path:"",resource_path:"",game_module_path:"",settings_module_path:"",updater_module_path:"",game_module_version:"",game_module_target_version:""}])},alert:{__cb:void 0,show(v,E,F){this.__cb&&this.__cb(v,E,F)}}};(async()=>{for(let v=0;v<3;v++)window.laochan.ctx.gameInfos.value[v]=await window.laochan.detectGameInstall1(v);xd.loadConfig(),ol.loadConfig(),g6.loadConfig()})();const kJe=mSt(Yxt);kJe.use(k6t);kJe.mount("#app");export{nje as c,N6t as g}; diff --git a/src/client/resources/ui-dist/assets/index-vWtKjMKp.js b/src/client/resources/ui-dist/assets/index-vWtKjMKp.js deleted file mode 100644 index a085e2d..0000000 --- a/src/client/resources/ui-dist/assets/index-vWtKjMKp.js +++ /dev/null @@ -1,599 +0,0 @@ -var dc=Object.defineProperty;var hc=(e,t,n)=>t in e?dc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ht=(e,t,n)=>hc(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();/** -* @vue/shared v3.4.32 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function Wr(e,t){const n=new Set(e.split(","));return s=>n.has(s)}const ye={},gn=[],Ge=()=>{},pc=()=>!1,Os=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Gr=e=>e.startsWith("onUpdate:"),Ce=Object.assign,Kr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},mc=Object.prototype.hasOwnProperty,ne=(e,t)=>mc.call(e,t),W=Array.isArray,vn=e=>Ps(e)==="[object Map]",ia=e=>Ps(e)==="[object Set]",K=e=>typeof e=="function",we=e=>typeof e=="string",Vt=e=>typeof e=="symbol",he=e=>e!==null&&typeof e=="object",oa=e=>(he(e)||K(e))&&K(e.then)&&K(e.catch),aa=Object.prototype.toString,Ps=e=>aa.call(e),gc=e=>Ps(e).slice(8,-1),la=e=>Ps(e)==="[object Object]",Yr=e=>we(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Rn=Wr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Is=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},vc=/-(\w)/g,Qe=Is(e=>e.replace(vc,(t,n)=>n?n.toUpperCase():"")),yc=/\B([A-Z])/g,fn=Is(e=>e.replace(yc,"-$1").toLowerCase()),Ts=Is(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ks=Is(e=>e?`on${Ts(e)}`:""),zt=(e,t)=>!Object.is(e,t),Ys=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},_c=e=>{const t=parseFloat(e);return isNaN(t)?e:t},bc=e=>{const t=we(e)?Number(e):NaN;return isNaN(t)?e:t};let Ai;const fa=()=>Ai||(Ai=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ns(e){if(W(e)){const t={};for(let n=0;n{if(n){const s=n.split(xc);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Bn(e){let t="";if(we(e))t=e;else if(W(e))for(let n=0;n!!(e&&e.__v_isRef===!0),We=e=>we(e)?e:e==null?"":W(e)||he(e)&&(e.toString===aa||!K(e.toString))?da(e)?We(e.value):JSON.stringify(e,ha,2):String(e),ha=(e,t)=>da(t)?ha(e,t.value):vn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],i)=>(n[Xs(s,i)+" =>"]=r,n),{})}:ia(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Xs(n))}:Vt(t)?Xs(t):he(t)&&!W(t)&&!la(t)?String(t):t,Xs=(e,t="")=>{var n;return Vt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** -* @vue/reactivity v3.4.32 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let Je;class Oc{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Je,!t&&Je&&(this.index=(Je.scopes||(Je.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Je;try{return Je=this,t()}finally{Je=n}}}on(){Je=this}off(){Je=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Gt()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=$t,n=tn;try{return $t=!0,tn=this,this._runnings++,Oi(this),this.fn()}finally{Pi(this),this._runnings--,tn=n,$t=t}}stop(){this.active&&(Oi(this),Pi(this),this.onStop&&this.onStop(),this.active=!1)}}function Tc(e){return e.value}function Oi(e){e._trackId++,e._depsLength=0}function Pi(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},mr=new WeakMap,nn=Symbol(""),gr=Symbol("");function Me(e,t,n){if($t&&tn){let s=mr.get(e);s||mr.set(e,s=new Map);let r=s.get(n);r||s.set(n,r=ya(()=>s.delete(n))),ga(tn,r)}}function yt(e,t,n,s,r,i){const o=mr.get(e);if(!o)return;let a=[];if(t==="clear")a=[...o.values()];else if(n==="length"&&W(e)){const l=Number(s);o.forEach((c,f)=>{(f==="length"||!Vt(f)&&f>=l)&&a.push(c)})}else switch(n!==void 0&&a.push(o.get(n)),t){case"add":W(e)?Yr(n)&&a.push(o.get("length")):(a.push(o.get(nn)),vn(e)&&a.push(o.get(gr)));break;case"delete":W(e)||(a.push(o.get(nn)),vn(e)&&a.push(o.get(gr)));break;case"set":vn(e)&&a.push(o.get(nn));break}qr();for(const l of a)l&&va(l,4);Jr()}const Nc=Wr("__proto__,__v_isRef,__isVue"),_a=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Vt)),Ii=kc();function kc(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=se(this);for(let i=0,o=this.length;i{e[t]=function(...n){Wt(),qr();const s=se(this)[t].apply(this,n);return Jr(),Gt(),s}}),e}function Rc(e){Vt(e)||(e=String(e));const t=se(this);return Me(t,"has",e),t.hasOwnProperty(e)}class ba{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(r?i?Gc:Sa:i?Ea:xa).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const o=W(t);if(!r){if(o&&ne(Ii,n))return Reflect.get(Ii,n,s);if(n==="hasOwnProperty")return Rc}const a=Reflect.get(t,n,s);return(Vt(n)?_a.has(n):Nc(n))||(r||Me(t,"get",n),i)?a:Fe(a)?o&&Yr(n)?a:a.value:he(a)?r?Aa(a):Rs(a):a}}class wa extends ba{constructor(t=!1){super(!1,t)}set(t,n,s,r){let i=t[n];if(!this._isShallow){const l=an(i);if(!bn(s)&&!an(s)&&(i=se(i),s=se(s)),!W(t)&&Fe(i)&&!Fe(s))return l?!1:(i.value=s,!0)}const o=W(t)&&Yr(n)?Number(n)e,ks=e=>Reflect.getPrototypeOf(e);function ss(e,t,n=!1,s=!1){e=e.__v_raw;const r=se(e),i=se(t);n||(zt(t,i)&&Me(r,"get",t),Me(r,"get",i));const{has:o}=ks(r),a=s?Qr:n?ti:Un;if(o.call(r,t))return a(e.get(t));if(o.call(r,i))return a(e.get(i));e!==r&&e.get(t)}function rs(e,t=!1){const n=this.__v_raw,s=se(n),r=se(e);return t||(zt(e,r)&&Me(s,"has",e),Me(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function is(e,t=!1){return e=e.__v_raw,!t&&Me(se(e),"iterate",nn),Reflect.get(e,"size",e)}function Ti(e,t=!1){!t&&!bn(e)&&!an(e)&&(e=se(e));const n=se(this);return ks(n).has.call(n,e)||(n.add(e),yt(n,"add",e,e)),this}function Ni(e,t,n=!1){!n&&!bn(t)&&!an(t)&&(t=se(t));const s=se(this),{has:r,get:i}=ks(s);let o=r.call(s,e);o||(e=se(e),o=r.call(s,e));const a=i.call(s,e);return s.set(e,t),o?zt(t,a)&&yt(s,"set",e,t):yt(s,"add",e,t),this}function ki(e){const t=se(this),{has:n,get:s}=ks(t);let r=n.call(t,e);r||(e=se(e),r=n.call(t,e)),s&&s.call(t,e);const i=t.delete(e);return r&&yt(t,"delete",e,void 0),i}function Ri(){const e=se(this),t=e.size!==0,n=e.clear();return t&&yt(e,"clear",void 0,void 0),n}function os(e,t){return function(s,r){const i=this,o=i.__v_raw,a=se(o),l=t?Qr:e?ti:Un;return!e&&Me(a,"iterate",nn),o.forEach((c,f)=>s.call(r,l(c),l(f),i))}}function as(e,t,n){return function(...s){const r=this.__v_raw,i=se(r),o=vn(i),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,c=r[e](...s),f=n?Qr:t?ti:Un;return!t&&Me(i,"iterate",l?gr:nn),{next(){const{value:u,done:p}=c.next();return p?{value:u,done:p}:{value:a?[f(u[0]),f(u[1])]:f(u),done:p}},[Symbol.iterator](){return this}}}}function Ct(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Dc(){const e={get(i){return ss(this,i)},get size(){return is(this)},has:rs,add:Ti,set:Ni,delete:ki,clear:Ri,forEach:os(!1,!1)},t={get(i){return ss(this,i,!1,!0)},get size(){return is(this)},has:rs,add(i){return Ti.call(this,i,!0)},set(i,o){return Ni.call(this,i,o,!0)},delete:ki,clear:Ri,forEach:os(!1,!0)},n={get(i){return ss(this,i,!0)},get size(){return is(this,!0)},has(i){return rs.call(this,i,!0)},add:Ct("add"),set:Ct("set"),delete:Ct("delete"),clear:Ct("clear"),forEach:os(!0,!1)},s={get(i){return ss(this,i,!0,!0)},get size(){return is(this,!0)},has(i){return rs.call(this,i,!0)},add:Ct("add"),set:Ct("set"),delete:Ct("delete"),clear:Ct("clear"),forEach:os(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=as(i,!1,!1),n[i]=as(i,!0,!1),t[i]=as(i,!1,!0),s[i]=as(i,!0,!0)}),[e,n,t,s]}const[zc,jc,Hc,Bc]=Dc();function Zr(e,t){const n=t?e?Bc:Hc:e?jc:zc;return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(ne(n,r)&&r in s?n:s,r,i)}const Uc={get:Zr(!1,!1)},Vc={get:Zr(!1,!0)},Wc={get:Zr(!0,!1)};const xa=new WeakMap,Ea=new WeakMap,Sa=new WeakMap,Gc=new WeakMap;function Kc(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Yc(e){return e.__v_skip||!Object.isExtensible(e)?0:Kc(gc(e))}function Rs(e){return an(e)?e:ei(e,!1,Mc,Uc,xa)}function Ca(e){return ei(e,!1,$c,Vc,Ea)}function Aa(e){return ei(e,!0,Fc,Wc,Sa)}function ei(e,t,n,s,r){if(!he(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const o=Yc(e);if(o===0)return e;const a=new Proxy(e,o===2?s:n);return r.set(e,a),a}function Ln(e){return an(e)?Ln(e.__v_raw):!!(e&&e.__v_isReactive)}function an(e){return!!(e&&e.__v_isReadonly)}function bn(e){return!!(e&&e.__v_isShallow)}function Oa(e){return e?!!e.__v_raw:!1}function se(e){const t=e&&e.__v_raw;return t?se(t):e}function Xc(e){return Object.isExtensible(e)&&ca(e,"__v_skip",!0),e}const Un=e=>he(e)?Rs(e):e,ti=e=>he(e)?Aa(e):e;class Pa{constructor(t,n,s,r){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Xr(()=>t(this._value),()=>us(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=se(this);return(!t._cacheable||t.effect.dirty)&&zt(t._value,t._value=t.effect.run())&&us(t,4),Ia(t),t.effect._dirtyLevel>=2&&us(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function qc(e,t,n=!1){let s,r;const i=K(e);return i?(s=e,r=Ge):(s=e.get,r=e.set),new Pa(s,r,i||!r,n)}function Ia(e){var t;$t&&tn&&(e=se(e),ga(tn,(t=e.dep)!=null?t:e.dep=ya(()=>e.dep=void 0,e instanceof Pa?e:void 0)))}function us(e,t=4,n,s){e=se(e);const r=e.dep;r&&va(r,t)}function Fe(e){return!!(e&&e.__v_isRef===!0)}function pe(e){return Ta(e,!1)}function Jc(e){return Ta(e,!0)}function Ta(e,t){return Fe(e)?e:new Qc(e,t)}class Qc{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:se(t),this._value=n?t:Un(t)}get value(){return Ia(this),this._value}set value(t){const n=this.__v_isShallow||bn(t)||an(t);t=n?t:se(t),zt(t,this._rawValue)&&(this._rawValue,this._rawValue=t,this._value=n?t:Un(t),us(this,4))}}function E(e){return Fe(e)?e.value:e}const Zc={get:(e,t,n)=>E(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return Fe(r)&&!Fe(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Na(e){return Ln(e)?e:new Proxy(e,Zc)}/** -* @vue/runtime-core v3.4.32 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function Dt(e,t,n,s){try{return s?e(...s):e()}catch(r){Ls(r,t,n)}}function Ye(e,t,n,s){if(K(e)){const r=Dt(e,t,n,s);return r&&oa(r)&&r.catch(i=>{Ls(i,t,n)}),r}if(W(e)){const r=[];for(let i=0;i>>1,r=Pe[s],i=Wn(r);iat&&Pe.splice(t,1)}function sf(e){W(e)?yn.push(...e):(!Nt||!Nt.includes(e,e.allowRecurse?Jt+1:Jt))&&yn.push(e),La()}function Li(e,t,n=Vn?at+1:0){for(;nWn(n)-Wn(s));if(yn.length=0,Nt){Nt.push(...t);return}for(Nt=t,Jt=0;Jte.id==null?1/0:e.id,rf=(e,t)=>{const n=Wn(e)-Wn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Fa(e){vr=!1,Vn=!0,Pe.sort(rf);try{for(at=0;at{s._d&&Ki(-1);const i=_s(t);let o;try{o=e(...r)}finally{_s(i),s._d&&Ki(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function Kt(e,t,n,s){const r=e.dirs,i=t&&t.dirs;for(let o=0;o{e.isMounted=!0}),Ba(()=>{e.isUnmounting=!0}),e}const Ve=[Function,Array],$a={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ve,onEnter:Ve,onAfterEnter:Ve,onEnterCancelled:Ve,onBeforeLeave:Ve,onLeave:Ve,onAfterLeave:Ve,onLeaveCancelled:Ve,onBeforeAppear:Ve,onAppear:Ve,onAfterAppear:Ve,onAppearCancelled:Ve},Da=e=>{const t=e.subTree;return t.component?Da(t.component):t},af={name:"BaseTransition",props:$a,setup(e,{slots:t}){const n=iu(),s=of();return()=>{const r=t.default&&ja(t.default(),!0);if(!r||!r.length)return;let i=r[0];if(r.length>1){for(const p of r)if(p.type!==De){i=p;break}}const o=se(e),{mode:a}=o;if(s.isLeaving)return qs(i);const l=Mi(i);if(!l)return qs(i);let c=yr(l,o,s,n,p=>c=p);bs(l,c);const f=n.subTree,u=f&&Mi(f);if(u&&u.type!==De&&!Zt(l,u)&&Da(n).type!==De){const p=yr(u,o,s,n);if(bs(u,p),a==="out-in"&&l.type!==De)return s.isLeaving=!0,p.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},qs(i);a==="in-out"&&l.type!==De&&(p.delayLeave=(m,P,O)=>{const N=za(s,u);N[String(u.key)]=u,m[kt]=()=>{P(),m[kt]=void 0,delete c.delayedLeave},c.delayedLeave=O})}return i}}},lf=af;function za(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function yr(e,t,n,s,r){const{appear:i,mode:o,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:f,onEnterCancelled:u,onBeforeLeave:p,onLeave:m,onAfterLeave:P,onLeaveCancelled:O,onBeforeAppear:N,onAppear:v,onAfterAppear:_,onAppearCancelled:C}=t,I=String(e.key),D=za(n,e),M=(V,te)=>{V&&Ye(V,s,9,te)},Y=(V,te)=>{const ce=te[1];M(V,te),W(V)?V.every(j=>j.length<=1)&&ce():V.length<=1&&ce()},ge={mode:o,persisted:a,beforeEnter(V){let te=l;if(!n.isMounted)if(i)te=N||l;else return;V[kt]&&V[kt](!0);const ce=D[I];ce&&Zt(e,ce)&&ce.el[kt]&&ce.el[kt](),M(te,[V])},enter(V){let te=c,ce=f,j=u;if(!n.isMounted)if(i)te=v||c,ce=_||f,j=C||u;else return;let re=!1;const xe=V[ls]=Xe=>{re||(re=!0,Xe?M(j,[V]):M(ce,[V]),ge.delayedLeave&&ge.delayedLeave(),V[ls]=void 0)};te?Y(te,[V,xe]):xe()},leave(V,te){const ce=String(e.key);if(V[ls]&&V[ls](!0),n.isUnmounting)return te();M(p,[V]);let j=!1;const re=V[kt]=xe=>{j||(j=!0,te(),xe?M(O,[V]):M(P,[V]),V[kt]=void 0,D[ce]===e&&delete D[ce])};D[ce]=e,m?Y(m,[V,re]):re()},clone(V){const te=yr(V,t,n,s,r);return r&&r(te),te}};return ge}function qs(e){if(Fs(e))return e=jt(e),e.children=null,e}function Mi(e){if(!Fs(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&K(n.default))return n.default()}}function bs(e,t){e.shapeFlag&6&&e.component?bs(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ja(e,t=!1,n){let s=[],r=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader,Fs=e=>e.type.__isKeepAlive;function cf(e,t){Ha(e,"a",t)}function ff(e,t){Ha(e,"da",t)}function Ha(e,t,n=Oe){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if($s(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Fs(r.parent.vnode)&&uf(s,t,n,r),r=r.parent}}function uf(e,t,n,s){const r=$s(t,e,s,!0);Ua(()=>{Kr(s[t],r)},n)}function $s(e,t,n=Oe,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{Wt();const a=Zn(n),l=Ye(t,n,e,o);return a(),Gt(),l});return s?r.unshift(i):r.push(i),i}}const xt=e=>(t,n=Oe)=>{(!js||e==="sp")&&$s(e,(...s)=>t(...s),n)},df=xt("bm"),Cn=xt("m"),hf=xt("bu"),pf=xt("u"),Ba=xt("bum"),Ua=xt("um"),mf=xt("sp"),gf=xt("rtg"),vf=xt("rtc");function yf(e,t=Oe){$s("ec",e,t)}const Va="components";function _f(e,t){return Ga(Va,e,!0,t)||e}const Wa=Symbol.for("v-ndc");function bf(e){return we(e)?Ga(Va,e,!1)||e:e||Wa}function Ga(e,t,n=!0,s=!1){const r=Ke||Oe;if(r){const i=r.type;{const a=fu(i,!1);if(a&&(a===t||a===Qe(t)||a===Ts(Qe(t))))return i}const o=Fi(r[e]||i[e],t)||Fi(r.appContext[e],t);return!o&&s?i:o}}function Fi(e,t){return e&&(e[t]||e[Qe(t)]||e[Ts(Qe(t))])}function hs(e,t,n,s){let r;const i=n;if(W(e)||we(e)){r=new Array(e.length);for(let o=0,a=e.length;ot(o,a,void 0,i));else{const o=Object.keys(e);r=new Array(o.length);for(let a=0,l=o.length;ae?ul(e)?ci(e):_r(e.parent):null,Mn=Ce(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>_r(e.parent),$root:e=>_r(e.root),$emit:e=>e.emit,$options:e=>oi(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,si(e.update)}),$nextTick:e=>e.n||(e.n=Ra.bind(e.proxy)),$watch:e=>Uf.bind(e)}),Js=(e,t)=>e!==ye&&!e.__isScriptSetup&&ne(e,t),wf={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const m=o[t];if(m!==void 0)switch(m){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(Js(s,t))return o[t]=1,s[t];if(r!==ye&&ne(r,t))return o[t]=2,r[t];if((c=e.propsOptions[0])&&ne(c,t))return o[t]=3,i[t];if(n!==ye&&ne(n,t))return o[t]=4,n[t];br&&(o[t]=0)}}const f=Mn[t];let u,p;if(f)return t==="$attrs"&&Me(e.attrs,"get",""),f(e);if((u=a.__cssModules)&&(u=u[t]))return u;if(n!==ye&&ne(n,t))return o[t]=4,n[t];if(p=l.config.globalProperties,ne(p,t))return p[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return Js(r,t)?(r[t]=n,!0):s!==ye&&ne(s,t)?(s[t]=n,!0):ne(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:i}},o){let a;return!!n[o]||e!==ye&&ne(e,o)||Js(t,o)||(a=i[0])&&ne(a,o)||ne(s,o)||ne(Mn,o)||ne(r.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ne(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function $i(e){return W(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let br=!0;function xf(e){const t=oi(e),n=e.proxy,s=e.ctx;br=!1,t.beforeCreate&&Di(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:a,provide:l,inject:c,created:f,beforeMount:u,mounted:p,beforeUpdate:m,updated:P,activated:O,deactivated:N,beforeDestroy:v,beforeUnmount:_,destroyed:C,unmounted:I,render:D,renderTracked:M,renderTriggered:Y,errorCaptured:ge,serverPrefetch:V,expose:te,inheritAttrs:ce,components:j,directives:re,filters:xe}=t;if(c&&Ef(c,s,null),o)for(const fe in o){const ie=o[fe];K(ie)&&(s[fe]=ie.bind(n))}if(r){const fe=r.call(n,n);he(fe)&&(e.data=Rs(fe))}if(br=!0,i)for(const fe in i){const ie=i[fe],dt=K(ie)?ie.bind(n,n):K(ie.get)?ie.get.bind(n,n):Ge,St=!K(ie)&&K(ie.set)?ie.set.bind(n):Ge,st=Ae({get:dt,set:St});Object.defineProperty(s,fe,{enumerable:!0,configurable:!0,get:()=>st.value,set:Ne=>st.value=Ne})}if(a)for(const fe in a)Ka(a[fe],s,n,fe);if(l){const fe=K(l)?l.call(n):l;Reflect.ownKeys(fe).forEach(ie=>{ps(ie,fe[ie])})}f&&Di(f,e,"c");function be(fe,ie){W(ie)?ie.forEach(dt=>fe(dt.bind(n))):ie&&fe(ie.bind(n))}if(be(df,u),be(Cn,p),be(hf,m),be(pf,P),be(cf,O),be(ff,N),be(yf,ge),be(vf,M),be(gf,Y),be(Ba,_),be(Ua,I),be(mf,V),W(te))if(te.length){const fe=e.exposed||(e.exposed={});te.forEach(ie=>{Object.defineProperty(fe,ie,{get:()=>n[ie],set:dt=>n[ie]=dt})})}else e.exposed||(e.exposed={});D&&e.render===Ge&&(e.render=D),ce!=null&&(e.inheritAttrs=ce),j&&(e.components=j),re&&(e.directives=re)}function Ef(e,t,n=Ge){W(e)&&(e=wr(e));for(const s in e){const r=e[s];let i;he(r)?"default"in r?i=_t(r.from||s,r.default,!0):i=_t(r.from||s):i=_t(r),Fe(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[s]=i}}function Di(e,t,n){Ye(W(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ka(e,t,n,s){const r=s.includes(".")?al(n,s):()=>n[s];if(we(e)){const i=t[e];K(i)&&sn(r,i)}else if(K(e))sn(r,e.bind(n));else if(he(e))if(W(e))e.forEach(i=>Ka(i,t,n,s));else{const i=K(e.handler)?e.handler.bind(n):t[e.handler];K(i)&&sn(r,i,e)}}function oi(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,a=i.get(t);let l;return a?l=a:!r.length&&!n&&!s?l=t:(l={},r.length&&r.forEach(c=>ws(l,c,o,!0)),ws(l,t,o)),he(t)&&i.set(t,l),l}function ws(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&ws(e,i,n,!0),r&&r.forEach(o=>ws(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const a=Sf[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const Sf={data:zi,props:ji,emits:ji,methods:Tn,computed:Tn,beforeCreate:Ie,created:Ie,beforeMount:Ie,mounted:Ie,beforeUpdate:Ie,updated:Ie,beforeDestroy:Ie,beforeUnmount:Ie,destroyed:Ie,unmounted:Ie,activated:Ie,deactivated:Ie,errorCaptured:Ie,serverPrefetch:Ie,components:Tn,directives:Tn,watch:Af,provide:zi,inject:Cf};function zi(e,t){return t?e?function(){return Ce(K(e)?e.call(this,this):e,K(t)?t.call(this,this):t)}:t:e}function Cf(e,t){return Tn(wr(e),wr(t))}function wr(e){if(W(e)){const t={};for(let n=0;n1)return n&&K(t)?t.call(s&&s.proxy):t}}const Xa={},qa=()=>Object.create(Xa),Ja=e=>Object.getPrototypeOf(e)===Xa;function If(e,t,n,s=!1){const r={},i=qa();e.propsDefaults=Object.create(null),Qa(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);n?e.props=s?r:Ca(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function Tf(e,t,n,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,a=se(r),[l]=e.propsOptions;let c=!1;if((s||o>0)&&!(o&16)){if(o&8){const f=e.vnode.dynamicProps;for(let u=0;u{l=!0;const[p,m]=Za(u,t,!0);Ce(o,p),m&&a.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!i&&!l)return he(e)&&s.set(e,gn),gn;if(W(i))for(let f=0;f-1,m[1]=O<0||P-1||ne(m,"default"))&&a.push(u)}}}const c=[o,a];return he(e)&&s.set(e,c),c}function Hi(e){return e[0]!=="$"&&!Rn(e)}function Bi(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Ui(e,t){return Bi(e)===Bi(t)}function Vi(e,t){return W(t)?t.findIndex(n=>Ui(n,e)):K(t)&&Ui(t,e)?0:-1}const el=e=>e[0]==="_"||e==="$stable",ai=e=>W(e)?e.map(ot):[ot(e)],kf=(e,t,n)=>{if(t._n)return t;const s=Mt((...r)=>ai(t(...r)),n);return s._c=!1,s},tl=(e,t,n)=>{const s=e._ctx;for(const r in e){if(el(r))continue;const i=e[r];if(K(i))t[r]=kf(r,i,s);else if(i!=null){const o=ai(i);t[r]=()=>o}}},nl=(e,t)=>{const n=ai(t);e.slots.default=()=>n},sl=(e,t,n)=>{for(const s in t)(n||s!=="_")&&(e[s]=t[s])},Rf=(e,t,n)=>{const s=e.slots=qa();if(e.vnode.shapeFlag&32){const r=t._;r?(sl(s,t,n),n&&ca(s,"_",r,!0)):tl(t,s)}else t&&nl(e,t)},Lf=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,o=ye;if(s.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:sl(r,t,n):(i=!t.$stable,tl(t,r)),o=t}else t&&(nl(e,t),o={default:1});if(i)for(const a in r)!el(a)&&o[a]==null&&delete r[a]};function Er(e,t,n,s,r=!1){if(W(e)){e.forEach((p,m)=>Er(p,t&&(W(t)?t[m]:t),n,s,r));return}if(ds(s)&&!r)return;const i=s.shapeFlag&4?ci(s.component):s.el,o=r?null:i,{i:a,r:l}=e,c=t&&t.r,f=a.refs===ye?a.refs={}:a.refs,u=a.setupState;if(c!=null&&c!==l&&(we(c)?(f[c]=null,ne(u,c)&&(u[c]=null)):Fe(c)&&(c.value=null)),K(l))Dt(l,a,12,[o,f]);else{const p=we(l),m=Fe(l);if(p||m){const P=()=>{if(e.f){const O=p?ne(u,l)?u[l]:f[l]:l.value;r?W(O)&&Kr(O,i):W(O)?O.includes(i)||O.push(i):p?(f[l]=[i],ne(u,l)&&(u[l]=f[l])):(l.value=[i],e.k&&(f[e.k]=l.value))}else p?(f[l]=o,ne(u,l)&&(u[l]=o)):m&&(l.value=o,e.k&&(f[e.k]=o))};o?(P.id=-1,Re(P,n)):P()}}}const Mf=Symbol("_vte"),Ff=e=>e.__isTeleport,Re=Jf;function $f(e){return Df(e)}function Df(e,t){const n=fa();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:a,createComment:l,setText:c,setElementText:f,parentNode:u,nextSibling:p,setScopeId:m=Ge,insertStaticContent:P}=e,O=(d,h,g,x=null,b=null,A=null,R=void 0,T=null,k=!!h.dynamicChildren)=>{if(d===h)return;d&&!Zt(d,h)&&(x=w(d),Ne(d,b,A,!0),d=null),h.patchFlag===-2&&(k=!1,h.dynamicChildren=null);const{type:S,ref:$,shapeFlag:U}=h;switch(S){case zs:N(d,h,g,x);break;case De:v(d,h,g,x);break;case er:d==null&&_(h,g,x,R);break;case Se:j(d,h,g,x,b,A,R,T,k);break;default:U&1?D(d,h,g,x,b,A,R,T,k):U&6?re(d,h,g,x,b,A,R,T,k):(U&64||U&128)&&S.process(d,h,g,x,b,A,R,T,k,H)}$!=null&&b&&Er($,d&&d.ref,A,h||d,!h)},N=(d,h,g,x)=>{if(d==null)s(h.el=a(h.children),g,x);else{const b=h.el=d.el;h.children!==d.children&&c(b,h.children)}},v=(d,h,g,x)=>{d==null?s(h.el=l(h.children||""),g,x):h.el=d.el},_=(d,h,g,x)=>{[d.el,d.anchor]=P(d.children,h,g,x,d.el,d.anchor)},C=({el:d,anchor:h},g,x)=>{let b;for(;d&&d!==h;)b=p(d),s(d,g,x),d=b;s(h,g,x)},I=({el:d,anchor:h})=>{let g;for(;d&&d!==h;)g=p(d),r(d),d=g;r(h)},D=(d,h,g,x,b,A,R,T,k)=>{h.type==="svg"?R="svg":h.type==="math"&&(R="mathml"),d==null?M(h,g,x,b,A,R,T,k):V(d,h,b,A,R,T,k)},M=(d,h,g,x,b,A,R,T)=>{let k,S;const{props:$,shapeFlag:U,transition:B,dirs:G}=d;if(k=d.el=o(d.type,A,$&&$.is,$),U&8?f(k,d.children):U&16&&ge(d.children,k,null,x,b,Qs(d,A),R,T),G&&Kt(d,null,x,"created"),Y(k,d,d.scopeId,R,x),$){for(const ue in $)ue!=="value"&&!Rn(ue)&&i(k,ue,null,$[ue],A,x);"value"in $&&i(k,"value",null,$.value,A),(S=$.onVnodeBeforeMount)&&it(S,x,d)}G&&Kt(d,null,x,"beforeMount");const Q=zf(b,B);Q&&B.beforeEnter(k),s(k,h,g),((S=$&&$.onVnodeMounted)||Q||G)&&Re(()=>{S&&it(S,x,d),Q&&B.enter(k),G&&Kt(d,null,x,"mounted")},b)},Y=(d,h,g,x,b)=>{if(g&&m(d,g),x)for(let A=0;A{for(let S=k;S{const T=h.el=d.el;let{patchFlag:k,dynamicChildren:S,dirs:$}=h;k|=d.patchFlag&16;const U=d.props||ye,B=h.props||ye;let G;if(g&&Yt(g,!1),(G=B.onVnodeBeforeUpdate)&&it(G,g,h,d),$&&Kt(h,d,g,"beforeUpdate"),g&&Yt(g,!0),(U.innerHTML&&B.innerHTML==null||U.textContent&&B.textContent==null)&&f(T,""),S?te(d.dynamicChildren,S,T,g,x,Qs(h,b),A):R||ie(d,h,T,null,g,x,Qs(h,b),A,!1),k>0){if(k&16)ce(T,U,B,g,b);else if(k&2&&U.class!==B.class&&i(T,"class",null,B.class,b),k&4&&i(T,"style",U.style,B.style,b),k&8){const Q=h.dynamicProps;for(let ue=0;ue{G&&it(G,g,h,d),$&&Kt(h,d,g,"updated")},x)},te=(d,h,g,x,b,A,R)=>{for(let T=0;T{if(h!==g){if(h!==ye)for(const A in h)!Rn(A)&&!(A in g)&&i(d,A,h[A],null,b,x);for(const A in g){if(Rn(A))continue;const R=g[A],T=h[A];R!==T&&A!=="value"&&i(d,A,T,R,b,x)}"value"in g&&i(d,"value",h.value,g.value,b)}},j=(d,h,g,x,b,A,R,T,k)=>{const S=h.el=d?d.el:a(""),$=h.anchor=d?d.anchor:a("");let{patchFlag:U,dynamicChildren:B,slotScopeIds:G}=h;G&&(T=T?T.concat(G):G),d==null?(s(S,g,x),s($,g,x),ge(h.children||[],g,$,b,A,R,T,k)):U>0&&U&64&&B&&d.dynamicChildren?(te(d.dynamicChildren,B,g,b,A,R,T),(h.key!=null||b&&h===b.subTree)&&rl(d,h,!0)):ie(d,h,g,$,b,A,R,T,k)},re=(d,h,g,x,b,A,R,T,k)=>{h.slotScopeIds=T,d==null?h.shapeFlag&512?b.ctx.activate(h,g,x,R,k):xe(h,g,x,b,A,R,k):Xe(d,h,k)},xe=(d,h,g,x,b,A,R)=>{const T=d.component=ru(d,x,b);if(Fs(d)&&(T.ctx.renderer=H),ou(T,!1,R),T.asyncDep){if(b&&b.registerDep(T,be,R),!d.el){const k=T.subTree=X(De);v(null,k,h,g)}}else be(T,d,h,g,b,A,R)},Xe=(d,h,g)=>{const x=h.component=d.component;if(Yf(d,h,g))if(x.asyncDep&&!x.asyncResolved){fe(x,h,g);return}else x.next=h,nf(x.update),x.effect.dirty=!0,x.update();else h.el=d.el,x.vnode=h},be=(d,h,g,x,b,A,R)=>{const T=()=>{if(d.isMounted){let{next:$,bu:U,u:B,parent:G,vnode:Q}=d;{const hn=il(d);if(hn){$&&($.el=Q.el,fe(d,$,R)),hn.asyncDep.then(()=>{d.isUnmounted||T()});return}}let ue=$,oe;Yt(d,!1),$?($.el=Q.el,fe(d,$,R)):$=Q,U&&Ys(U),(oe=$.props&&$.props.onVnodeBeforeUpdate)&&it(oe,G,$,Q),Yt(d,!0);const Ee=Zs(d),qe=d.subTree;d.subTree=Ee,O(qe,Ee,u(qe.el),w(qe),d,b,A),$.el=Ee.el,ue===null&&Xf(d,Ee.el),B&&Re(B,b),(oe=$.props&&$.props.onVnodeUpdated)&&Re(()=>it(oe,G,$,Q),b)}else{let $;const{el:U,props:B}=h,{bm:G,m:Q,parent:ue}=d,oe=ds(h);if(Yt(d,!1),G&&Ys(G),!oe&&($=B&&B.onVnodeBeforeMount)&&it($,ue,h),Yt(d,!0),U&&ve){const Ee=()=>{d.subTree=Zs(d),ve(U,d.subTree,d,b,null)};oe?h.type.__asyncLoader().then(()=>!d.isUnmounted&&Ee()):Ee()}else{const Ee=d.subTree=Zs(d);O(null,Ee,g,x,d,b,A),h.el=Ee.el}if(Q&&Re(Q,b),!oe&&($=B&&B.onVnodeMounted)){const Ee=h;Re(()=>it($,ue,Ee),b)}(h.shapeFlag&256||ue&&ds(ue.vnode)&&ue.vnode.shapeFlag&256)&&d.a&&Re(d.a,b),d.isMounted=!0,h=g=x=null}},k=d.effect=new Xr(T,Ge,()=>si(S),d.scope),S=d.update=()=>{k.dirty&&k.run()};S.i=d,S.id=d.uid,Yt(d,!0),S()},fe=(d,h,g)=>{h.component=d;const x=d.vnode.props;d.vnode=h,d.next=null,Tf(d,h.props,x,g),Lf(d,h.children,g),Wt(),Li(d),Gt()},ie=(d,h,g,x,b,A,R,T,k=!1)=>{const S=d&&d.children,$=d?d.shapeFlag:0,U=h.children,{patchFlag:B,shapeFlag:G}=h;if(B>0){if(B&128){St(S,U,g,x,b,A,R,T,k);return}else if(B&256){dt(S,U,g,x,b,A,R,T,k);return}}G&8?($&16&&Ue(S,b,A),U!==S&&f(g,U)):$&16?G&16?St(S,U,g,x,b,A,R,T,k):Ue(S,b,A,!0):($&8&&f(g,""),G&16&&ge(U,g,x,b,A,R,T,k))},dt=(d,h,g,x,b,A,R,T,k)=>{d=d||gn,h=h||gn;const S=d.length,$=h.length,U=Math.min(S,$);let B;for(B=0;B$?Ue(d,b,A,!0,!1,U):ge(h,g,x,b,A,R,T,k,U)},St=(d,h,g,x,b,A,R,T,k)=>{let S=0;const $=h.length;let U=d.length-1,B=$-1;for(;S<=U&&S<=B;){const G=d[S],Q=h[S]=k?Rt(h[S]):ot(h[S]);if(Zt(G,Q))O(G,Q,g,null,b,A,R,T,k);else break;S++}for(;S<=U&&S<=B;){const G=d[U],Q=h[B]=k?Rt(h[B]):ot(h[B]);if(Zt(G,Q))O(G,Q,g,null,b,A,R,T,k);else break;U--,B--}if(S>U){if(S<=B){const G=B+1,Q=G<$?h[G].el:x;for(;S<=B;)O(null,h[S]=k?Rt(h[S]):ot(h[S]),g,Q,b,A,R,T,k),S++}}else if(S>B)for(;S<=U;)Ne(d[S],b,A,!0),S++;else{const G=S,Q=S,ue=new Map;for(S=Q;S<=B;S++){const $e=h[S]=k?Rt(h[S]):ot(h[S]);$e.key!=null&&ue.set($e.key,S)}let oe,Ee=0;const qe=B-Q+1;let hn=!1,Ei=0;const On=new Array(qe);for(S=0;S=qe){Ne($e,b,A,!0);continue}let rt;if($e.key!=null)rt=ue.get($e.key);else for(oe=Q;oe<=B;oe++)if(On[oe-Q]===0&&Zt($e,h[oe])){rt=oe;break}rt===void 0?Ne($e,b,A,!0):(On[rt-Q]=S+1,rt>=Ei?Ei=rt:hn=!0,O($e,h[rt],g,null,b,A,R,T,k),Ee++)}const Si=hn?jf(On):gn;for(oe=Si.length-1,S=qe-1;S>=0;S--){const $e=Q+S,rt=h[$e],Ci=$e+1<$?h[$e+1].el:x;On[S]===0?O(null,rt,g,Ci,b,A,R,T,k):hn&&(oe<0||S!==Si[oe]?st(rt,g,Ci,2):oe--)}}},st=(d,h,g,x,b=null)=>{const{el:A,type:R,transition:T,children:k,shapeFlag:S}=d;if(S&6){st(d.component.subTree,h,g,x);return}if(S&128){d.suspense.move(h,g,x);return}if(S&64){R.move(d,h,g,H);return}if(R===Se){s(A,h,g);for(let U=0;UT.enter(A),b);else{const{leave:U,delayLeave:B,afterLeave:G}=T,Q=()=>s(A,h,g),ue=()=>{U(A,()=>{Q(),G&&G()})};B?B(A,Q,ue):ue()}else s(A,h,g)},Ne=(d,h,g,x=!1,b=!1)=>{const{type:A,props:R,ref:T,children:k,dynamicChildren:S,shapeFlag:$,patchFlag:U,dirs:B,cacheIndex:G}=d;if(U===-2&&(b=!1),T!=null&&Er(T,null,g,d,!0),G!=null&&(h.renderCache[G]=void 0),$&256){h.ctx.deactivate(d);return}const Q=$&1&&B,ue=!ds(d);let oe;if(ue&&(oe=R&&R.onVnodeBeforeUnmount)&&it(oe,h,d),$&6)ns(d.component,g,x);else{if($&128){d.suspense.unmount(g,x);return}Q&&Kt(d,null,h,"beforeUnmount"),$&64?d.type.remove(d,h,g,H,x):S&&!S.hasOnce&&(A!==Se||U>0&&U&64)?Ue(S,h,g,!1,!0):(A===Se&&U&384||!b&&$&16)&&Ue(k,h,g),x&&un(d)}(ue&&(oe=R&&R.onVnodeUnmounted)||Q)&&Re(()=>{oe&&it(oe,h,d),Q&&Kt(d,null,h,"unmounted")},g)},un=d=>{const{type:h,el:g,anchor:x,transition:b}=d;if(h===Se){dn(g,x);return}if(h===er){I(d);return}const A=()=>{r(g),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(d.shapeFlag&1&&b&&!b.persisted){const{leave:R,delayLeave:T}=b,k=()=>R(g,A);T?T(d.el,A,k):k()}else A()},dn=(d,h)=>{let g;for(;d!==h;)g=p(d),r(d),d=g;r(h)},ns=(d,h,g)=>{const{bum:x,scope:b,update:A,subTree:R,um:T,m:k,a:S}=d;Wi(k),Wi(S),x&&Ys(x),b.stop(),A&&(A.active=!1,Ne(R,d,h,g)),T&&Re(T,h),Re(()=>{d.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&d.asyncDep&&!d.asyncResolved&&d.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve())},Ue=(d,h,g,x=!1,b=!1,A=0)=>{for(let R=A;R{if(d.shapeFlag&6)return w(d.component.subTree);if(d.shapeFlag&128)return d.suspense.next();const h=p(d.anchor||d.el),g=h&&h[Mf];return g?p(g):h};let F=!1;const L=(d,h,g)=>{d==null?h._vnode&&Ne(h._vnode,null,null,!0):O(h._vnode||null,d,h,null,null,null,g),F||(F=!0,Li(),Ma(),F=!1),h._vnode=d},H={p:O,um:Ne,m:st,r:un,mt:xe,mc:ge,pc:ie,pbc:te,n:w,o:e};let ae,ve;return{render:L,hydrate:ae,createApp:Pf(L,ae)}}function Qs({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Yt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function zf(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function rl(e,t,n=!1){const s=e.children,r=t.children;if(W(s)&&W(r))for(let i=0;i>1,e[n[a]]0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function il(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:il(t)}function Wi(e){if(e)for(let t=0;t_t(Hf),cs={};function sn(e,t,n){return ol(e,t,n)}function ol(e,t,{immediate:n,deep:s,flush:r,once:i,onTrack:o,onTrigger:a}=ye){if(t&&i){const M=t;t=(...Y)=>{M(...Y),D()}}const l=Oe,c=M=>s===!0?M:Qt(M,s===!1?1:void 0);let f,u=!1,p=!1;if(Fe(e)?(f=()=>e.value,u=bn(e)):Ln(e)?(f=()=>c(e),u=!0):W(e)?(p=!0,u=e.some(M=>Ln(M)||bn(M)),f=()=>e.map(M=>{if(Fe(M))return M.value;if(Ln(M))return c(M);if(K(M))return Dt(M,l,2)})):K(e)?t?f=()=>Dt(e,l,2):f=()=>(m&&m(),Ye(e,l,3,[P])):f=Ge,t&&s){const M=f;f=()=>Qt(M())}let m,P=M=>{m=C.onStop=()=>{Dt(M,l,4),m=C.onStop=void 0}},O;if(js)if(P=Ge,t?n&&Ye(t,l,3,[f(),p?[]:void 0,P]):f(),r==="sync"){const M=Bf();O=M.__watcherHandles||(M.__watcherHandles=[])}else return Ge;let N=p?new Array(e.length).fill(cs):cs;const v=()=>{if(!(!C.active||!C.dirty))if(t){const M=C.run();(s||u||(p?M.some((Y,ge)=>zt(Y,N[ge])):zt(M,N)))&&(m&&m(),Ye(t,l,3,[M,N===cs?void 0:p&&N[0]===cs?[]:N,P]),N=M)}else C.run()};v.allowRecurse=!!t;let _;r==="sync"?_=v:r==="post"?_=()=>Re(v,l&&l.suspense):(v.pre=!0,l&&(v.id=l.uid),_=()=>si(v));const C=new Xr(f,Ge,_),I=Ic(),D=()=>{C.stop(),I&&Kr(I.effects,C)};return t?n?v():N=C.run():r==="post"?Re(C.run.bind(C),l&&l.suspense):C.run(),O&&O.push(D),D}function Uf(e,t,n){const s=this.proxy,r=we(e)?e.includes(".")?al(s,e):()=>s[e]:e.bind(s,s);let i;K(t)?i=t:(i=t.handler,n=t);const o=Zn(this),a=ol(r,i.bind(s),n);return o(),a}function al(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r{Qt(s,t,n)});else if(la(e)){for(const s in e)Qt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Qt(e[s],t,n)}return e}const Vf=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Qe(t)}Modifiers`]||e[`${fn(t)}Modifiers`];function Wf(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||ye;let r=n;const i=t.startsWith("update:"),o=i&&Vf(s,t.slice(7));o&&(o.trim&&(r=n.map(f=>we(f)?f.trim():f)),o.number&&(r=n.map(_c)));let a,l=s[a=Ks(t)]||s[a=Ks(Qe(t))];!l&&i&&(l=s[a=Ks(fn(t))]),l&&Ye(l,e,6,r);const c=s[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Ye(c,e,6,r)}}function ll(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let o={},a=!1;if(!K(e)){const l=c=>{const f=ll(c,t,!0);f&&(a=!0,Ce(o,f))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(he(e)&&s.set(e,null),null):(W(i)?i.forEach(l=>o[l]=null):Ce(o,i),he(e)&&s.set(e,o),o)}function Ds(e,t){return!e||!Os(t)?!1:(t=t.slice(2).replace(/Once$/,""),ne(e,t[0].toLowerCase()+t.slice(1))||ne(e,fn(t))||ne(e,t))}function Zs(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[i],slots:o,attrs:a,emit:l,render:c,renderCache:f,props:u,data:p,setupState:m,ctx:P,inheritAttrs:O}=e,N=_s(e);let v,_;try{if(n.shapeFlag&4){const I=r||s,D=I;v=ot(c.call(D,I,f,u,m,p,P)),_=a}else{const I=t;v=ot(I.length>1?I(u,{attrs:a,slots:o,emit:l}):I(u,null)),_=t.props?a:Gf(a)}}catch(I){$n.length=0,Ls(I,e,1),v=X(De)}let C=v;if(_&&O!==!1){const I=Object.keys(_),{shapeFlag:D}=C;I.length&&D&7&&(i&&I.some(Gr)&&(_=Kf(_,i)),C=jt(C,_,!1,!0))}return n.dirs&&(C=jt(C,null,!1,!0),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&(C.transition=n.transition),v=C,_s(N),v}const Gf=e=>{let t;for(const n in e)(n==="class"||n==="style"||Os(n))&&((t||(t={}))[n]=e[n]);return t},Kf=(e,t)=>{const n={};for(const s in e)(!Gr(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Yf(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:a,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?Gi(s,o,c):!!o;if(l&8){const f=t.dynamicProps;for(let u=0;ue.__isSuspense;function Jf(e,t){t&&t.pendingBranch?W(e)?t.effects.push(...e):t.effects.push(e):sf(e)}const Se=Symbol.for("v-fgt"),zs=Symbol.for("v-txt"),De=Symbol.for("v-cmt"),er=Symbol.for("v-stc"),$n=[];let ze=null;function J(e=!1){$n.push(ze=e?null:[])}function Qf(){$n.pop(),ze=$n[$n.length-1]||null}let Gn=1;function Ki(e){Gn+=e,e<0&&ze&&(ze.hasOnce=!0)}function cl(e){return e.dynamicChildren=Gn>0?ze||gn:null,Qf(),Gn>0&&ze&&ze.push(e),e}function Z(e,t,n,s,r,i){return cl(y(e,t,n,s,r,i,!0))}function xs(e,t,n,s,r){return cl(X(e,t,n,s,r,!0))}function Sr(e){return e?e.__v_isVNode===!0:!1}function Zt(e,t){return e.type===t.type&&e.key===t.key}const fl=({key:e})=>e??null,ms=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?we(e)||Fe(e)||K(e)?{i:Ke,r:e,k:t,f:!!n}:e:null);function y(e,t=null,n=null,s=0,r=null,i=e===Se?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&fl(t),ref:t&&ms(t),scopeId:Ms,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Ke};return a?(li(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=we(n)?8:16),Gn>0&&!o&&ze&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&ze.push(l),l}const X=Zf;function Zf(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===Wa)&&(e=De),Sr(e)){const a=jt(e,t,!0);return n&&li(a,n),Gn>0&&!i&&ze&&(a.shapeFlag&6?ze[ze.indexOf(e)]=a:ze.push(a)),a.patchFlag=-2,a}if(uu(e)&&(e=e.__vccOpts),t){t=eu(t);let{class:a,style:l}=t;a&&!we(a)&&(t.class=Bn(a)),he(l)&&(Oa(l)&&!W(l)&&(l=Ce({},l)),t.style=Ns(l))}const o=we(e)?1:qf(e)?128:Ff(e)?64:he(e)?4:K(e)?2:0;return y(e,t,n,s,r,o,i,!0)}function eu(e){return e?Oa(e)||Ja(e)?Ce({},e):e:null}function jt(e,t,n=!1,s=!1){const{props:r,ref:i,patchFlag:o,children:a,transition:l}=e,c=t?tu(r||{},t):r,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&fl(c),ref:t&&t.ref?n&&i?W(i)?i.concat(ms(t)):[i,ms(t)]:ms(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Se?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&jt(e.ssContent),ssFallback:e.ssFallback&&jt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&s&&bs(f,l.clone(f)),f}function ee(e=" ",t=0){return X(zs,null,e,t)}function Le(e="",t=!1){return t?(J(),xs(De,null,e)):X(De,null,e)}function ot(e){return e==null||typeof e=="boolean"?X(De):W(e)?X(Se,null,e.slice()):typeof e=="object"?Rt(e):X(zs,null,String(e))}function Rt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:jt(e)}function li(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(W(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),li(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Ja(t)?t._ctx=Ke:r===3&&Ke&&(Ke.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else K(t)?(t={default:t,_ctx:Ke},n=32):(t=String(t),s&64?(n=16,t=[ee(t)]):n=8);e.children=t,e.shapeFlag|=n}function tu(...e){const t={};for(let n=0;nOe||Ke;let Es,Cr;{const e=fa(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};Es=t("__VUE_INSTANCE_SETTERS__",n=>Oe=n),Cr=t("__VUE_SSR_SETTERS__",n=>js=n)}const Zn=e=>{const t=Oe;return Es(e),e.scope.on(),()=>{e.scope.off(),Es(t)}},Yi=()=>{Oe&&Oe.scope.off(),Es(null)};function ul(e){return e.vnode.shapeFlag&4}let js=!1;function ou(e,t=!1,n=!1){t&&Cr(t);const{props:s,children:r}=e.vnode,i=ul(e);If(e,s,i,t),Rf(e,r,n);const o=i?au(e,t):void 0;return t&&Cr(!1),o}function au(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,wf);const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?cu(e):null,i=Zn(e);Wt();const o=Dt(s,e,0,[e.props,r]);if(Gt(),i(),oa(o)){if(o.then(Yi,Yi),t)return o.then(a=>{Xi(e,a,t)}).catch(a=>{Ls(a,e,0)});e.asyncDep=o}else Xi(e,o,t)}else dl(e,t)}function Xi(e,t,n){K(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:he(t)&&(e.setupState=Na(t)),dl(e,n)}let qi;function dl(e,t,n){const s=e.type;if(!e.render){if(!t&&qi&&!s.render){const r=s.template||oi(e).template;if(r){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:l}=s,c=Ce(Ce({isCustomElement:i,delimiters:a},o),l);s.render=qi(r,c)}}e.render=s.render||Ge}{const r=Zn(e);Wt();try{xf(e)}finally{Gt(),r()}}}const lu={get(e,t){return Me(e,"get",""),e[t]}};function cu(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,lu),slots:e.slots,emit:e.emit,expose:t}}function ci(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Na(Xc(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Mn)return Mn[n](e)},has(t,n){return n in t||n in Mn}})):e.proxy}function fu(e,t=!0){return K(e)?e.displayName||e.name:e.name||t&&e.__name}function uu(e){return K(e)&&"__vccOpts"in e}const Ae=(e,t)=>qc(e,t,js);function Hs(e,t,n){const s=arguments.length;return s===2?he(t)&&!W(t)?Sr(t)?X(e,null,[t]):X(e,t):X(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Sr(n)&&(n=[n]),X(e,t,n))}const du="3.4.32";/** -* @vue/runtime-dom v3.4.32 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/const hu="http://www.w3.org/2000/svg",pu="http://www.w3.org/1998/Math/MathML",gt=typeof document<"u"?document:null,Ji=gt&>.createElement("template"),mu={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?gt.createElementNS(hu,e):t==="mathml"?gt.createElementNS(pu,e):n?gt.createElement(e,{is:n}):gt.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>gt.createTextNode(e),createComment:e=>gt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>gt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{Ji.innerHTML=s==="svg"?`${e}`:s==="mathml"?`${e}`:e;const a=Ji.content;if(s==="svg"||s==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},At="transition",Pn="animation",Kn=Symbol("_vtc"),Yn=(e,{slots:t})=>Hs(lf,gu(e),t);Yn.displayName="Transition";const hl={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};Yn.props=Ce({},$a,hl);const Xt=(e,t=[])=>{W(e)?e.forEach(n=>n(...t)):e&&e(...t)},Qi=e=>e?W(e)?e.some(t=>t.length>1):e.length>1:!1;function gu(e){const t={};for(const j in e)j in hl||(t[j]=e[j]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:c=o,appearToClass:f=a,leaveFromClass:u=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,P=vu(r),O=P&&P[0],N=P&&P[1],{onBeforeEnter:v,onEnter:_,onEnterCancelled:C,onLeave:I,onLeaveCancelled:D,onBeforeAppear:M=v,onAppear:Y=_,onAppearCancelled:ge=C}=t,V=(j,re,xe)=>{qt(j,re?f:a),qt(j,re?c:o),xe&&xe()},te=(j,re)=>{j._isLeaving=!1,qt(j,u),qt(j,m),qt(j,p),re&&re()},ce=j=>(re,xe)=>{const Xe=j?Y:_,be=()=>V(re,j,xe);Xt(Xe,[re,be]),Zi(()=>{qt(re,j?l:i),Ot(re,j?f:a),Qi(Xe)||eo(re,s,O,be)})};return Ce(t,{onBeforeEnter(j){Xt(v,[j]),Ot(j,i),Ot(j,o)},onBeforeAppear(j){Xt(M,[j]),Ot(j,l),Ot(j,c)},onEnter:ce(!1),onAppear:ce(!0),onLeave(j,re){j._isLeaving=!0;const xe=()=>te(j,re);Ot(j,u),Ot(j,p),bu(),Zi(()=>{j._isLeaving&&(qt(j,u),Ot(j,m),Qi(I)||eo(j,s,N,xe))}),Xt(I,[j,xe])},onEnterCancelled(j){V(j,!1),Xt(C,[j])},onAppearCancelled(j){V(j,!0),Xt(ge,[j])},onLeaveCancelled(j){te(j),Xt(D,[j])}})}function vu(e){if(e==null)return null;if(he(e))return[tr(e.enter),tr(e.leave)];{const t=tr(e);return[t,t]}}function tr(e){return bc(e)}function Ot(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Kn]||(e[Kn]=new Set)).add(t)}function qt(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[Kn];n&&(n.delete(t),n.size||(e[Kn]=void 0))}function Zi(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let yu=0;function eo(e,t,n,s){const r=e._endId=++yu,i=()=>{r===e._endId&&s()};if(n)return setTimeout(i,n);const{type:o,timeout:a,propCount:l}=_u(e,t);if(!o)return s();const c=o+"end";let f=0;const u=()=>{e.removeEventListener(c,p),i()},p=m=>{m.target===e&&++f>=l&&u()};setTimeout(()=>{f(n[P]||"").split(", "),r=s(`${At}Delay`),i=s(`${At}Duration`),o=to(r,i),a=s(`${Pn}Delay`),l=s(`${Pn}Duration`),c=to(a,l);let f=null,u=0,p=0;t===At?o>0&&(f=At,u=o,p=i.length):t===Pn?c>0&&(f=Pn,u=c,p=l.length):(u=Math.max(o,c),f=u>0?o>c?At:Pn:null,p=f?f===At?i.length:l.length:0);const m=f===At&&/\b(transform|all)(,|$)/.test(s(`${At}Property`).toString());return{type:f,timeout:u,propCount:p,hasTransform:m}}function to(e,t){for(;e.lengthno(n)+no(e[s])))}function no(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function bu(){return document.body.offsetHeight}function wu(e,t,n){const s=e[Kn];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const so=Symbol("_vod"),xu=Symbol("_vsh"),Eu=Symbol(""),Su=/(^|;)\s*display\s*:/;function Cu(e,t,n){const s=e.style,r=we(n);let i=!1;if(n&&!r){if(t)if(we(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&gs(s,a,"")}else for(const o in t)n[o]==null&&gs(s,o,"");for(const o in n)o==="display"&&(i=!0),gs(s,o,n[o])}else if(r){if(t!==n){const o=s[Eu];o&&(n+=";"+o),s.cssText=n,i=Su.test(n)}}else t&&e.removeAttribute("style");so in e&&(e[so]=i?s.display:"",e[xu]&&(s.display="none"))}const ro=/\s*!important$/;function gs(e,t,n){if(W(n))n.forEach(s=>gs(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Au(e,t);ro.test(n)?e.setProperty(fn(s),n.replace(ro,""),"important"):e[s]=n}}const io=["Webkit","Moz","ms"],nr={};function Au(e,t){const n=nr[t];if(n)return n;let s=Qe(t);if(s!=="filter"&&s in e)return nr[t]=s;s=Ts(s);for(let r=0;rsr||(ku.then(()=>sr=0),sr=Date.now());function Lu(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Ye(Mu(s,n.value),t,5,[s])};return n.value=e,n.attached=Ru(),n}function Mu(e,t){if(W(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const fo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Fu=(e,t,n,s,r,i)=>{const o=r==="svg";t==="class"?wu(e,s,o):t==="style"?Cu(e,n,s):Os(t)?Gr(t)||Tu(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):$u(e,t,s,o))?(Ou(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ao(e,t,s,o,i,t!=="value")):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),ao(e,t,s,o))};function $u(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&fo(t)&&K(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return fo(t)&&we(n)?!1:t in e}const Du=Ce({patchProp:Fu},mu);let uo;function zu(){return uo||(uo=$f(Du))}const ju=(...e)=>{const t=zu().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Bu(s);if(!r)return;const i=t._component;!K(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.innerHTML="";const o=n(r,!1,Hu(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t};function Hu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Bu(e){return we(e)?document.querySelector(e):e}/*! - * vue-router v4.4.0 - * (c) 2024 Eduardo San Martin Morote - * @license MIT - */const pn=typeof document<"u";function Uu(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const le=Object.assign;function rr(e,t){const n={};for(const s in t){const r=t[s];n[s]=Ze(r)?r.map(e):e(r)}return n}const Dn=()=>{},Ze=Array.isArray,pl=/#/g,Vu=/&/g,Wu=/\//g,Gu=/=/g,Ku=/\?/g,ml=/\+/g,Yu=/%5B/g,Xu=/%5D/g,gl=/%5E/g,qu=/%60/g,vl=/%7B/g,Ju=/%7C/g,yl=/%7D/g,Qu=/%20/g;function fi(e){return encodeURI(""+e).replace(Ju,"|").replace(Yu,"[").replace(Xu,"]")}function Zu(e){return fi(e).replace(vl,"{").replace(yl,"}").replace(gl,"^")}function Ar(e){return fi(e).replace(ml,"%2B").replace(Qu,"+").replace(pl,"%23").replace(Vu,"%26").replace(qu,"`").replace(vl,"{").replace(yl,"}").replace(gl,"^")}function ed(e){return Ar(e).replace(Gu,"%3D")}function td(e){return fi(e).replace(pl,"%23").replace(Ku,"%3F")}function nd(e){return e==null?"":td(e).replace(Wu,"%2F")}function Xn(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const sd=/\/$/,rd=e=>e.replace(sd,"");function ir(e,t,n="/"){let s,r={},i="",o="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(s=t.slice(0,l),i=t.slice(l+1,a>-1?a:t.length),r=e(i)),a>-1&&(s=s||t.slice(0,a),o=t.slice(a,t.length)),s=ld(s??t,n),{fullPath:s+(i&&"?")+i+o,path:s,query:r,hash:Xn(o)}}function id(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function ho(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function od(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&wn(t.matched[s],n.matched[r])&&_l(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function wn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function _l(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!ad(e[n],t[n]))return!1;return!0}function ad(e,t){return Ze(e)?po(e,t):Ze(t)?po(t,e):e===t}function po(e,t){return Ze(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function ld(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let i=n.length-1,o,a;for(o=0;o1&&i--;else break;return n.slice(0,i).join("/")+"/"+s.slice(o).join("/")}const Pt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var qn;(function(e){e.pop="pop",e.push="push"})(qn||(qn={}));var zn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(zn||(zn={}));function cd(e){if(!e)if(pn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),rd(e)}const fd=/^[^#]+#/;function ud(e,t){return e.replace(fd,"#")+t}function dd(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const Bs=()=>({left:window.scrollX,top:window.scrollY});function hd(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=dd(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function mo(e,t){return(history.state?history.state.position-t:-1)+e}const Or=new Map;function pd(e,t){Or.set(e,t)}function md(e){const t=Or.get(e);return Or.delete(e),t}let gd=()=>location.protocol+"//"+location.host;function bl(e,t){const{pathname:n,search:s,hash:r}=t,i=e.indexOf("#");if(i>-1){let a=r.includes(e.slice(i))?e.slice(i).length:1,l=r.slice(a);return l[0]!=="/"&&(l="/"+l),ho(l,"")}return ho(n,e)+s+r}function vd(e,t,n,s){let r=[],i=[],o=null;const a=({state:p})=>{const m=bl(e,location),P=n.value,O=t.value;let N=0;if(p){if(n.value=m,t.value=p,o&&o===P){o=null;return}N=O?p.position-O.position:0}else s(m);r.forEach(v=>{v(n.value,P,{delta:N,type:qn.pop,direction:N?N>0?zn.forward:zn.back:zn.unknown})})};function l(){o=n.value}function c(p){r.push(p);const m=()=>{const P=r.indexOf(p);P>-1&&r.splice(P,1)};return i.push(m),m}function f(){const{history:p}=window;p.state&&p.replaceState(le({},p.state,{scroll:Bs()}),"")}function u(){for(const p of i)p();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",f,{passive:!0}),{pauseListeners:l,listen:c,destroy:u}}function go(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?Bs():null}}function yd(e){const{history:t,location:n}=window,s={value:bl(e,n)},r={value:t.state};r.value||i(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,c,f){const u=e.indexOf("#"),p=u>-1?(n.host&&document.querySelector("base")?e:e.slice(u))+l:gd()+e+l;try{t[f?"replaceState":"pushState"](c,"",p),r.value=c}catch(m){console.error(m),n[f?"replace":"assign"](p)}}function o(l,c){const f=le({},t.state,go(r.value.back,l,r.value.forward,!0),c,{position:r.value.position});i(l,f,!0),s.value=l}function a(l,c){const f=le({},r.value,t.state,{forward:l,scroll:Bs()});i(f.current,f,!0);const u=le({},go(s.value,l,null),{position:f.position+1},c);i(l,u,!1),s.value=l}return{location:s,state:r,push:a,replace:o}}function _d(e){e=cd(e);const t=yd(e),n=vd(e,t.state,t.location,t.replace);function s(i,o=!0){o||n.pauseListeners(),history.go(i)}const r=le({location:"",base:e,go:s,createHref:ud.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function bd(e){return typeof e=="string"||e&&typeof e=="object"}function wl(e){return typeof e=="string"||typeof e=="symbol"}const xl=Symbol("");var vo;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(vo||(vo={}));function xn(e,t){return le(new Error,{type:e,[xl]:!0},t)}function pt(e,t){return e instanceof Error&&xl in e&&(t==null||!!(e.type&t))}const yo="[^/]+?",wd={sensitive:!1,strict:!1,start:!0,end:!0},xd=/[.+*?^${}()[\]/\\]/g;function Ed(e,t){const n=le({},wd,t),s=[];let r=n.start?"^":"";const i=[];for(const c of e){const f=c.length?[]:[90];n.strict&&!c.length&&(r+="/");for(let u=0;ut.length?t.length===1&&t[0]===80?1:-1:0}function El(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const Cd={type:0,value:""},Ad=/[a-zA-Z0-9_]/;function Od(e){if(!e)return[[]];if(e==="/")return[[Cd]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${c}": ${m}`)}let n=0,s=n;const r=[];let i;function o(){i&&r.push(i),i=[]}let a=0,l,c="",f="";function u(){c&&(n===0?i.push({type:0,value:c}):n===1||n===2||n===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:f,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function p(){c+=l}for(;a{o(C)}:Dn}function o(u){if(wl(u)){const p=s.get(u);p&&(s.delete(u),n.splice(n.indexOf(p),1),p.children.forEach(o),p.alias.forEach(o))}else{const p=n.indexOf(u);p>-1&&(n.splice(p,1),u.record.name&&s.delete(u.record.name),u.children.forEach(o),u.alias.forEach(o))}}function a(){return n}function l(u){const p=Rd(u,n);n.splice(p,0,u),u.record.name&&!wo(u)&&s.set(u.record.name,u)}function c(u,p){let m,P={},O,N;if("name"in u&&u.name){if(m=s.get(u.name),!m)throw xn(1,{location:u});N=m.record.name,P=le(bo(p.params,m.keys.filter(C=>!C.optional).concat(m.parent?m.parent.keys.filter(C=>C.optional):[]).map(C=>C.name)),u.params&&bo(u.params,m.keys.map(C=>C.name))),O=m.stringify(P)}else if(u.path!=null)O=u.path,m=n.find(C=>C.re.test(O)),m&&(P=m.parse(O),N=m.record.name);else{if(m=p.name?s.get(p.name):n.find(C=>C.re.test(p.path)),!m)throw xn(1,{location:u,currentLocation:p});N=m.record.name,P=le({},p.params,u.params),O=m.stringify(P)}const v=[];let _=m;for(;_;)v.unshift(_.record),_=_.parent;return{name:N,path:O,params:P,matched:v,meta:kd(v)}}e.forEach(u=>i(u));function f(){n.length=0,s.clear()}return{addRoute:i,resolve:c,removeRoute:o,clearRoutes:f,getRoutes:a,getRecordMatcher:r}}function bo(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function Td(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Nd(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Nd(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function wo(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function kd(e){return e.reduce((t,n)=>le(t,n.meta),{})}function xo(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function Rd(e,t){let n=0,s=t.length;for(;n!==s;){const i=n+s>>1;El(e,t[i])<0?s=i:n=i+1}const r=Ld(e);return r&&(s=t.lastIndexOf(r,s-1)),s}function Ld(e){let t=e;for(;t=t.parent;)if(Sl(t)&&El(e,t)===0)return t}function Sl({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Md(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ri&&Ar(i)):[s&&Ar(s)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function Fd(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Ze(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const $d=Symbol(""),So=Symbol(""),ui=Symbol(""),Cl=Symbol(""),Pr=Symbol("");function In(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Lt(e,t,n,s,r,i=o=>o()){const o=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((a,l)=>{const c=p=>{p===!1?l(xn(4,{from:n,to:t})):p instanceof Error?l(p):bd(p)?l(xn(2,{from:t,to:p})):(o&&s.enterCallbacks[r]===o&&typeof p=="function"&&o.push(p),a())},f=i(()=>e.call(s&&s.instances[r],t,n,c));let u=Promise.resolve(f);e.length<3&&(u=u.then(c)),u.catch(p=>l(p))})}function or(e,t,n,s,r=i=>i()){const i=[];for(const o of e)for(const a in o.components){let l=o.components[a];if(!(t!=="beforeRouteEnter"&&!o.instances[a]))if(Dd(l)){const f=(l.__vccOpts||l)[t];f&&i.push(Lt(f,n,s,o,a,r))}else{let c=l();i.push(()=>c.then(f=>{if(!f)return Promise.reject(new Error(`Couldn't resolve component "${a}" at "${o.path}"`));const u=Uu(f)?f.default:f;o.components[a]=u;const m=(u.__vccOpts||u)[t];return m&&Lt(m,n,s,o,a,r)()}))}}return i}function Dd(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Co(e){const t=_t(ui),n=_t(Cl),s=Ae(()=>{const l=E(e.to);return t.resolve(l)}),r=Ae(()=>{const{matched:l}=s.value,{length:c}=l,f=l[c-1],u=n.matched;if(!f||!u.length)return-1;const p=u.findIndex(wn.bind(null,f));if(p>-1)return p;const m=Ao(l[c-2]);return c>1&&Ao(f)===m&&u[u.length-1].path!==m?u.findIndex(wn.bind(null,l[c-2])):p}),i=Ae(()=>r.value>-1&&Hd(n.params,s.value.params)),o=Ae(()=>r.value>-1&&r.value===n.matched.length-1&&_l(n.params,s.value.params));function a(l={}){return jd(l)?t[E(e.replace)?"replace":"push"](E(e.to)).catch(Dn):Promise.resolve()}return{route:s,href:Ae(()=>s.value.href),isActive:i,isExactActive:o,navigate:a}}const zd=et({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Co,setup(e,{slots:t}){const n=Rs(Co(e)),{options:s}=_t(ui),r=Ae(()=>({[Oo(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Oo(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:Hs("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},i)}}}),Ir=zd;function jd(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Hd(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!Ze(r)||r.length!==s.length||s.some((i,o)=>i!==r[o]))return!1}return!0}function Ao(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Oo=(e,t,n)=>e??t??n,Bd=et({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=_t(Pr),r=Ae(()=>e.route||s.value),i=_t(So,0),o=Ae(()=>{let c=E(i);const{matched:f}=r.value;let u;for(;(u=f[c])&&!u.components;)c++;return c}),a=Ae(()=>r.value.matched[o.value]);ps(So,Ae(()=>o.value+1)),ps($d,a),ps(Pr,r);const l=pe();return sn(()=>[l.value,a.value,e.name],([c,f,u],[p,m,P])=>{f&&(f.instances[u]=c,m&&m!==f&&c&&c===p&&(f.leaveGuards.size||(f.leaveGuards=m.leaveGuards),f.updateGuards.size||(f.updateGuards=m.updateGuards))),c&&f&&(!m||!wn(f,m)||!p)&&(f.enterCallbacks[u]||[]).forEach(O=>O(c))},{flush:"post"}),()=>{const c=r.value,f=e.name,u=a.value,p=u&&u.components[f];if(!p)return Po(n.default,{Component:p,route:c});const m=u.props[f],P=m?m===!0?c.params:typeof m=="function"?m(c):m:null,N=Hs(p,le({},P,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(u.instances[f]=null)},ref:l}));return Po(n.default,{Component:N,route:c})||N}}});function Po(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Al=Bd;function Ud(e){const t=Id(e.routes,e),n=e.parseQuery||Md,s=e.stringifyQuery||Eo,r=e.history,i=In(),o=In(),a=In(),l=Jc(Pt);let c=Pt;pn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=rr.bind(null,w=>""+w),u=rr.bind(null,nd),p=rr.bind(null,Xn);function m(w,F){let L,H;return wl(w)?(L=t.getRecordMatcher(w),H=F):H=w,t.addRoute(H,L)}function P(w){const F=t.getRecordMatcher(w);F&&t.removeRoute(F)}function O(){return t.getRoutes().map(w=>w.record)}function N(w){return!!t.getRecordMatcher(w)}function v(w,F){if(F=le({},F||l.value),typeof w=="string"){const h=ir(n,w,F.path),g=t.resolve({path:h.path},F),x=r.createHref(h.fullPath);return le(h,g,{params:p(g.params),hash:Xn(h.hash),redirectedFrom:void 0,href:x})}let L;if(w.path!=null)L=le({},w,{path:ir(n,w.path,F.path).path});else{const h=le({},w.params);for(const g in h)h[g]==null&&delete h[g];L=le({},w,{params:u(h)}),F.params=u(F.params)}const H=t.resolve(L,F),ae=w.hash||"";H.params=f(p(H.params));const ve=id(s,le({},w,{hash:Zu(ae),path:H.path})),d=r.createHref(ve);return le({fullPath:ve,hash:ae,query:s===Eo?Fd(w.query):w.query||{}},H,{redirectedFrom:void 0,href:d})}function _(w){return typeof w=="string"?ir(n,w,l.value.path):le({},w)}function C(w,F){if(c!==w)return xn(8,{from:F,to:w})}function I(w){return Y(w)}function D(w){return I(le(_(w),{replace:!0}))}function M(w){const F=w.matched[w.matched.length-1];if(F&&F.redirect){const{redirect:L}=F;let H=typeof L=="function"?L(w):L;return typeof H=="string"&&(H=H.includes("?")||H.includes("#")?H=_(H):{path:H},H.params={}),le({query:w.query,hash:w.hash,params:H.path!=null?{}:w.params},H)}}function Y(w,F){const L=c=v(w),H=l.value,ae=w.state,ve=w.force,d=w.replace===!0,h=M(L);if(h)return Y(le(_(h),{state:typeof h=="object"?le({},ae,h.state):ae,force:ve,replace:d}),F||L);const g=L;g.redirectedFrom=F;let x;return!ve&&od(s,H,L)&&(x=xn(16,{to:g,from:H}),st(H,H,!0,!1)),(x?Promise.resolve(x):te(g,H)).catch(b=>pt(b)?pt(b,2)?b:St(b):ie(b,g,H)).then(b=>{if(b){if(pt(b,2))return Y(le({replace:d},_(b.to),{state:typeof b.to=="object"?le({},ae,b.to.state):ae,force:ve}),F||g)}else b=j(g,H,!0,d,ae);return ce(g,H,b),b})}function ge(w,F){const L=C(w,F);return L?Promise.reject(L):Promise.resolve()}function V(w){const F=dn.values().next().value;return F&&typeof F.runWithContext=="function"?F.runWithContext(w):w()}function te(w,F){let L;const[H,ae,ve]=Vd(w,F);L=or(H.reverse(),"beforeRouteLeave",w,F);for(const h of H)h.leaveGuards.forEach(g=>{L.push(Lt(g,w,F))});const d=ge.bind(null,w,F);return L.push(d),Ue(L).then(()=>{L=[];for(const h of i.list())L.push(Lt(h,w,F));return L.push(d),Ue(L)}).then(()=>{L=or(ae,"beforeRouteUpdate",w,F);for(const h of ae)h.updateGuards.forEach(g=>{L.push(Lt(g,w,F))});return L.push(d),Ue(L)}).then(()=>{L=[];for(const h of ve)if(h.beforeEnter)if(Ze(h.beforeEnter))for(const g of h.beforeEnter)L.push(Lt(g,w,F));else L.push(Lt(h.beforeEnter,w,F));return L.push(d),Ue(L)}).then(()=>(w.matched.forEach(h=>h.enterCallbacks={}),L=or(ve,"beforeRouteEnter",w,F,V),L.push(d),Ue(L))).then(()=>{L=[];for(const h of o.list())L.push(Lt(h,w,F));return L.push(d),Ue(L)}).catch(h=>pt(h,8)?h:Promise.reject(h))}function ce(w,F,L){a.list().forEach(H=>V(()=>H(w,F,L)))}function j(w,F,L,H,ae){const ve=C(w,F);if(ve)return ve;const d=F===Pt,h=pn?history.state:{};L&&(H||d?r.replace(w.fullPath,le({scroll:d&&h&&h.scroll},ae)):r.push(w.fullPath,ae)),l.value=w,st(w,F,L,d),St()}let re;function xe(){re||(re=r.listen((w,F,L)=>{if(!ns.listening)return;const H=v(w),ae=M(H);if(ae){Y(le(ae,{replace:!0}),H).catch(Dn);return}c=H;const ve=l.value;pn&&pd(mo(ve.fullPath,L.delta),Bs()),te(H,ve).catch(d=>pt(d,12)?d:pt(d,2)?(Y(d.to,H).then(h=>{pt(h,20)&&!L.delta&&L.type===qn.pop&&r.go(-1,!1)}).catch(Dn),Promise.reject()):(L.delta&&r.go(-L.delta,!1),ie(d,H,ve))).then(d=>{d=d||j(H,ve,!1),d&&(L.delta&&!pt(d,8)?r.go(-L.delta,!1):L.type===qn.pop&&pt(d,20)&&r.go(-1,!1)),ce(H,ve,d)}).catch(Dn)}))}let Xe=In(),be=In(),fe;function ie(w,F,L){St(w);const H=be.list();return H.length?H.forEach(ae=>ae(w,F,L)):console.error(w),Promise.reject(w)}function dt(){return fe&&l.value!==Pt?Promise.resolve():new Promise((w,F)=>{Xe.add([w,F])})}function St(w){return fe||(fe=!w,xe(),Xe.list().forEach(([F,L])=>w?L(w):F()),Xe.reset()),w}function st(w,F,L,H){const{scrollBehavior:ae}=e;if(!pn||!ae)return Promise.resolve();const ve=!L&&md(mo(w.fullPath,0))||(H||!L)&&history.state&&history.state.scroll||null;return Ra().then(()=>ae(w,F,ve)).then(d=>d&&hd(d)).catch(d=>ie(d,w,F))}const Ne=w=>r.go(w);let un;const dn=new Set,ns={currentRoute:l,listening:!0,addRoute:m,removeRoute:P,clearRoutes:t.clearRoutes,hasRoute:N,getRoutes:O,resolve:v,options:e,push:I,replace:D,go:Ne,back:()=>Ne(-1),forward:()=>Ne(1),beforeEach:i.add,beforeResolve:o.add,afterEach:a.add,onError:be.add,isReady:dt,install(w){const F=this;w.component("RouterLink",Ir),w.component("RouterView",Al),w.config.globalProperties.$router=F,Object.defineProperty(w.config.globalProperties,"$route",{enumerable:!0,get:()=>E(l)}),pn&&!un&&l.value===Pt&&(un=!0,I(r.location).catch(ae=>{}));const L={};for(const ae in Pt)Object.defineProperty(L,ae,{get:()=>l.value[ae],enumerable:!0});w.provide(ui,F),w.provide(Cl,Ca(L)),w.provide(Pr,l);const H=w.unmount;dn.add(w),w.unmount=function(){dn.delete(w),dn.size<1&&(c=Pt,re&&re(),re=null,l.value=Pt,un=!1,fe=!1),H()}}};function Ue(w){return w.reduce((F,L)=>F.then(()=>V(L)),Promise.resolve())}return ns}function Vd(e,t){const n=[],s=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;own(c,a))?s.push(a):n.push(a));const l=e.matched[o];l&&(t.matched.find(c=>wn(c,l))||r.push(l))}return[n,s,r]}const ut=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},Wd={},Gd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",width:"14",height:"18",fill:"currentColor"},Kd=y("path",{d:"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"},null,-1),Yd=[Kd];function Xd(e,t){return J(),Z("svg",Gd,Yd)}const qd=ut(Wd,[["render",Xd]]),Jd={},Qd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:"14",height:"18",fill:"currentColor"},Zd=y("path",{d:"M495.9 166.6c3.2 8.7 .5 18.4-6.4 24.6l-43.3 39.4c1.1 8.3 1.7 16.8 1.7 25.4s-.6 17.1-1.7 25.4l43.3 39.4c6.9 6.2 9.6 15.9 6.4 24.6c-4.4 11.9-9.7 23.3-15.8 34.3l-4.7 8.1c-6.6 11-14 21.4-22.1 31.2c-5.9 7.2-15.7 9.6-24.5 6.8l-55.7-17.7c-13.4 10.3-28.2 18.9-44 25.4l-12.5 57.1c-2 9.1-9 16.3-18.2 17.8c-13.8 2.3-28 3.5-42.5 3.5s-28.7-1.2-42.5-3.5c-9.2-1.5-16.2-8.7-18.2-17.8l-12.5-57.1c-15.8-6.5-30.6-15.1-44-25.4L83.1 425.9c-8.8 2.8-18.6 .3-24.5-6.8c-8.1-9.8-15.5-20.2-22.1-31.2l-4.7-8.1c-6.1-11-11.4-22.4-15.8-34.3c-3.2-8.7-.5-18.4 6.4-24.6l43.3-39.4C64.6 273.1 64 264.6 64 256s.6-17.1 1.7-25.4L22.4 191.2c-6.9-6.2-9.6-15.9-6.4-24.6c4.4-11.9 9.7-23.3 15.8-34.3l4.7-8.1c6.6-11 14-21.4 22.1-31.2c5.9-7.2 15.7-9.6 24.5-6.8l55.7 17.7c13.4-10.3 28.2-18.9 44-25.4l12.5-57.1c2-9.1 9-16.3 18.2-17.8C227.3 1.2 241.5 0 256 0s28.7 1.2 42.5 3.5c9.2 1.5 16.2 8.7 18.2 17.8l12.5 57.1c15.8 6.5 30.6 15.1 44 25.4l55.7-17.7c8.8-2.8 18.6-.3 24.5 6.8c8.1 9.8 15.5 20.2 22.1 31.2l4.7 8.1c6.1 11 11.4 22.4 15.8 34.3zM256 336a80 80 0 1 0 0-160 80 80 0 1 0 0 160z"},null,-1),eh=[Zd];function th(e,t){return J(),Z("svg",Qd,eh)}const nh=ut(Jd,[["render",th]]),sh={},rh={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:"14",height:"18",fill:"currentColor"},ih=y("path",{d:"M32 416c-17.7 0-32 14.3-32 32s14.3 32 32 32l448 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 416z"},null,-1),oh=[ih];function ah(e,t){return J(),Z("svg",rh,oh)}const lh=ut(sh,[["render",ah]]),ch={},fh={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",width:"14",height:"18",fill:"currentColor"},uh=y("path",{d:"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"},null,-1),dh=[uh];function hh(e,t){return J(),Z("svg",fh,dh)}const ph=ut(ch,[["render",hh]]),mh={class:"title-bar"},gh={class:"nav-controls"},vh={class:"controls"},yh=et({__name:"TitleBar",props:{title:{}},setup(e){const t=pe();Cn(()=>{if(!t.value){console.error("titlebar element not found");return}t.value.addEventListener("mousedown",()=>window.saucer.start_drag()),setTimeout(()=>{window.saucer.call("mounted",[])},500)});function n(){window.saucer.call("close",[])}function s(){window.saucer.call("minimize",[])}return(r,i)=>(J(),Z("nav",null,[y("div",mh,[y("div",{class:"title",ref_key:"titleBar",ref:t},[y("span",null,We(r.title),1)],512),y("div",gh,[X(Yn,{name:"fade"},{default:Mt(()=>[r.$route.path!="/"?(J(),xs(E(Ir),{key:0,id:"home",to:"/"},{default:Mt(()=>[X(ph)]),_:1})):Le("",!0)]),_:1})]),y("div",vh,[X(Yn,{name:"fade"},{default:Mt(()=>[r.$route.path!="/settings"?(J(),xs(E(Ir),{key:0,id:"settings",to:"/settings"},{default:Mt(()=>[X(nh)]),_:1})):Le("",!0)]),_:1}),y("button",{id:"minimize",onClick:s},[X(lh)]),y("button",{id:"close",onClick:n},[X(qd)])])])]))}}),_h=ut(yh,[["__scopeId","data-v-7d164ba0"]]),bh=et({__name:"Alert",setup(e){const t=pe(""),n=pe(""),s=pe(void 0),r=[];let i;function o(a){s.value&&(clearTimeout(i),n.value=a.colour,t.value=a.msg,s.value.classList.remove("out"),s.value.classList.add("in"),i=setTimeout(()=>{s.value&&(s.value.classList.remove("in"),s.value.classList.add("out"),clearTimeout(i),setTimeout(()=>{i=void 0;const l=r.shift();l&&o(l)},250))},a.timeout))}return window.laochan.alert.__cb=(a,l,c)=>{i===void 0?o({msg:a,colour:l,timeout:c}):r.push({msg:a,colour:l,timeout:c})},(a,l)=>(J(),Z("div",{ref_key:"element",ref:s,class:"alert"},[y("div",{class:"content",style:Ns({"background-color":n.value})},We(t.value),5)],512))}}),wh=et({__name:"Version",setup(e){const t=pe("r0 - unknown branch");Cn(async()=>{t.value=await window.laochan.version()});function n(){window.laochan.num()}return(s,r)=>(J(),Z("div",{class:"version",onClick:r[0]||(r[0]=i=>n())},We(t.value),1))}}),xh=ut(wh,[["__scopeId","data-v-01ab4474"]]),Eh="modulepreload",Sh=function(e){return"/"+e},Io={},Ch=function(t,n,s){let r=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),o=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));r=Promise.all(n.map(a=>{if(a=Sh(a),a in Io)return;Io[a]=!0;const l=a.endsWith(".css"),c=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${c}`))return;const f=document.createElement("link");if(f.rel=l?"stylesheet":Eh,l||(f.as="script",f.crossOrigin=""),f.href=a,o&&f.setAttribute("nonce",o),document.head.appendChild(f),l)return new Promise((u,p)=>{f.addEventListener("load",u),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${a}`)))})}))}return r.then(()=>t()).catch(i=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i})};function Ah(e,{volume:t=1,playbackRate:n=1,soundEnabled:s=!0,interrupt:r=!1,autoplay:i=!1,onload:o,...a}={}){const l=pe(null),c=pe(!1),f=pe(null),u=pe(null);function p(){var v;typeof o=="function"&&o.call(this),f.value=(f.value||((v=u.value)==null?void 0:v.duration())||0)*1e3,i===!0&&(c.value=!0)}return Cn(async()=>{const v=await Ch(()=>import("./howler-CCqh-U3u.js").then(_=>_.h),[]);l.value=v.default.Howl,u.value=new l.value({src:E(e),volume:E(t),rate:E(n),onload:p,...a})}),sn(()=>[e],()=>{l.value&&l.value&&u&&u.value&&(u.value=new l.value({src:E(e),volume:E(t),rate:E(n),onload:p,...a}))}),sn(()=>[E(t),E(n)],()=>{u.value&&(u.value.volume(E(t)),u.value.rate(E(n)))}),{play:v=>{typeof v>"u"&&(v={}),!(!u.value||!s&&!v.forceSoundEnabled)&&(r&&u.value.stop(),v.playbackRate&&u.value.rate(v.playbackRate),u.value.play(v.id),u.value.once("end",()=>{u.value&&u.value&&!u.value.playing()&&(c.value=!1)}),c.value=!0)},sound:u,isPlaying:c,duration:f,pause:v=>{u.value&&(u.value.pause(typeof v=="number"?v:void 0),c.value=!1)},stop:v=>{u.value&&(u.value.stop(typeof v=="number"?v:void 0),c.value=!1)}}}const Oh="/assets/num-z0VsZKpR.mp3",Ph=e=>(ri("data-v-595a99de"),e=e(),ii(),e),Ih=Ph(()=>y("div",{class:"num"},null,-1)),Th=[Ih],Nh=et({__name:"Num",setup(e){const t=pe(void 0);let n;const{play:s}=Ah(Oh);return window.laochan.num=()=>{t.value&&(clearTimeout(n),t.value.classList.remove("anim"),t.value.classList.add("anim"),s(),n=setTimeout(()=>{t.value&&(t.value.classList.remove("anim"),clearTimeout(n),n=void 0)},1e3))},(r,i)=>(J(),Z("div",{ref_key:"element",ref:t,class:"num-bg"},Th,512))}}),kh=ut(Nh,[["__scopeId","data-v-595a99de"]]),Rh={class:"animated"},Lh=et({__name:"App",setup(e){return(t,n)=>(J(),Z(Se,null,[X(_h,{title:"Laochan Eacnet Launcher"}),y("div",Rh,[X(E(Al),null,{default:Mt(({Component:s})=>[X(Yn,{name:"blur-fade"},{default:Mt(()=>[(J(),xs(bf(s)))]),_:2},1024)]),_:1})]),X(bh),X(xh),X(kh)],64))}}),Mh=ut(Lh,[["__scopeId","data-v-6d8695ef"]]),Fh="/assets/gitadora-cQ1BqJ9U.webm";function To(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,s)}return n}function No(e){for(var t=1;tPl(No(No({},e),n)),t;function t(n,...s){const r=typeof n=="string"?[n]:n.raw,{escapeSpecialCharacters:i=Array.isArray(n)}=e;let o="";for(let c=0;cf[0]===" "||f[0]===" "?f.slice(c):f).join(` -`)}return o=o.trim(),i&&(o=o.replace(/\\n/g,` -`)),o}}class jh{constructor(){ht(this,"_config",pe(void 0));ht(this,"_dirty",!1)}get config(){return this._config}async resetToken(){this._config.value.token=await window.laochan.uuid(),this._dirty=!0}resetServerUrl(){this._config.value.serverUrl="http://laochan.ugreen.sbs/",this._dirty=!0}resetEnableConsole(){this._config.value.enableConsole=!1,this._dirty=!0}resetEnableSteamOverlay(){this._config.value.enableSteamOverlay=!0,this._dirty=!0}async saveConfig(){const t=JSON.stringify(this._config.value);await window.laochan.writeFile("laochan-config.json",t),this._dirty=!1}async loadConfig(){const t=await window.laochan.readFile("laochan-config.json");t&&(this._config.value=JSON.parse(t)),t||(this._config.value={}),this._config.value.token||await this.resetToken(),this._config.value.serverUrl||this.resetServerUrl(),!this._config.value.enableConsole===void 0&&this.resetEnableConsole(),!this._config.value.enableSteamOverlay===void 0&&this.resetEnableSteamOverlay(),this._dirty&&this.saveConfig()}async applyConfig(){this._config.value&&(await window.laochan.setParam("LAOCHAN_TOKEN",this._config.value.token),await window.laochan.setParam("LAOCHAN_SERVER_URL",this._config.value.serverUrl),await window.laochan.setParam("LAOCHAN_ENABLE_CONSOLE",JSON.stringify(+this._config.value.enableConsole)),await window.laochan.setParam("LAOCHAN_ENABLE_STEAM_OVERLAY",JSON.stringify(+this._config.value.enableSteamOverlay)))}async exportBatParams(){if(this._config.value)return Ol` - REM Laochan Launcher Params - SET LAOCHAN_TOKEN="${this._config.value.token}" - SET LAOCHAN_SERVER_URL="${this._config.value.serverUrl}" - SET LAOCHAN_ENABLE_CONSOLE=${+this._config.value.enableConsole} - SET LAOCHAN_ENABLE_STEAM_OVERLAY=${+this._config.value.enableSteamOverlay} - `}}const _e=new jh;var Il=(e=>(e[e.Fullscreen=0]="Fullscreen",e[e.BorderlessWindowed=1]="BorderlessWindowed",e[e.Windowed=1]="Windowed",e))(Il||{}),Tl=(e=>(e[e.Wasapi=0]="Wasapi",e[e.Asio=1]="Asio",e))(Tl||{});class Hh{constructor(){ht(this,"_config",pe(void 0));ht(this,"_dirty",!1)}get config(){return this._config}installed(){return!!window.laochan.ctx.gamePaths.value[0].length}get installPath(){if(!this.installed())return;const[t]=window.laochan.ctx.gamePaths.value[0];return t}get configPath(){const t=this.installPath;if(t)return t+"laochan-config.json"}async resetConfig(){const{devices:t}=await window.laochan.getAsioDeviceList();this._config.value={displayMode:1,resolution:{w:0,h:0},soundMode:0,asioDevice:t[0],useGsm:!0,language:1},this._dirty=!0}async saveConfig(){const t=this.configPath;if(!t)return;const n=JSON.stringify(this._config.value);await window.laochan.writeFile(t,n),this._dirty=!1}async loadConfig(){const t=this.configPath;if(!t)return;const n=await window.laochan.readFile(t);n&&(this._config.value=JSON.parse(n)),(!this._config.value||this._config.value.asioDevice==null||this._config.value.displayMode===void 0||this._config.value.resolution===void 0||this._config.value.soundMode===void 0||this._config.value.useGsm===void 0||this._config.value.language===void 0)&&(window.laochan.alert.show("IIDX 设置已被重置, 请前往额外设置重新设置","#B64040",2e3),await this.resetConfig()),this._dirty&&await this.saveConfig()}async applyConfig(){const t=this._config.value;t&&await Promise.all([window.laochan.setParam("IIDX_ASIO_DEVICE",t.asioDevice),window.laochan.setParam("IIDX_DISPLAY_MODE",JSON.stringify(t.displayMode)),window.laochan.setParam("IIDX_SOUND_MODE",JSON.stringify(t.soundMode)),window.laochan.setParam("IIDX_USE_GSM",JSON.stringify(+t.useGsm)),window.laochan.setParam("IIDX_LANGUAGE",JSON.stringify(+t.language)),window.laochan.setParam("IIDX_RESOLTION_W",JSON.stringify(t.resolution.w)),window.laochan.setParam("IIDX_RESOLTION_H",JSON.stringify(t.resolution.h))])}openCustomize(){window.laochan.shellExecute("http://laochan.ugreen.sbs/cp")}async start(){await this.loadConfig(),await window.laochan.setGame(0),await this.applyConfig(),await _e.applyConfig(),window.laochan.close()}async settings(){const t=this.installPath;t&&window.laochan.shellExecute(t+"\\launcher\\modules\\bm2dx_settings.exe")}async updater(){const t=this.installPath;t&&window.laochan.shellExecute(t+"\\launcher\\modules\\bm2dx_updater.exe")}async generateBat(){const t=this._config.value;if(!t)return"";const n=await window.laochan.selfPath(),s=Ol` - REM generated by Laochan Launcher - - ${await _e.exportBatParams()} - - REM IIDX Options - SET IIDX_ASIO_DEVICE="${t.asioDevice}" - SET IIDX_DISPLAY_MODE=${t.displayMode} - SET IIDX_SOUND_MODE=${t.soundMode} - SET IIDX_USE_GSM=${+t.useGsm} - SET IIDX_LANGUAGE=${+t.language} - SET IIDX_RESOLTION_W=${t.resolution.w} - SET IIDX_RESOLTION_H=${t.resolution.h} - - start "" "${n}" "-iidx" - `,i=await(await window.showSaveFilePicker({suggestedName:"laochan-iidx.bat",startIn:"desktop",types:[{description:"Batch File",accept:{"application/bat":[".bat",".cmd"]}}]})).createWritable();await i.write(s),await i.close()}}const q=new Hh;class Bh{constructor(){ht(this,"_config",pe(void 0));ht(this,"_dirty",!1)}get config(){return this._config}installed(){return!!window.laochan.ctx.gamePaths.value[1].length}get installPath(){if(!this.installed())return;const[t]=window.laochan.ctx.gamePaths.value[1];return t}get configPath(){const t=this.installPath;if(t)return t+"laochan-config.json"}async resetConfig(){this._config.value={},this._dirty=!0}async saveConfig(){const t=this.configPath;if(!t)return;const n=JSON.stringify(this._config.value);await window.laochan.writeFile(t,n),this._dirty=!1}async loadConfig(){const t=this.configPath;if(!t)return;const n=await window.laochan.readFile(t);n&&(this._config.value=JSON.parse(n)),this._config.value||await this.resetConfig(),this._dirty&&await this.saveConfig()}async applyConfig(){this._config.value}async start(){await this.loadConfig(),await window.laochan.setGame(1),await this.applyConfig(),await _e.applyConfig(),window.laochan.close()}async settings(){const t=this.installPath;t&&window.laochan.shellExecute(t+"\\launcher\\modules\\settings.exe")}async updater(){const t=this.installPath;t&&window.laochan.shellExecute(t+"\\launcher\\modules\\updater.exe","-t DUMMY")}}const mt=new Bh;class Uh{constructor(){ht(this,"_config",pe(void 0));ht(this,"_dirty",!1)}get config(){return this._config}installed(){return!!window.laochan.ctx.gamePaths.value[2].length}get installPath(){if(!this.installed())return;const[t]=window.laochan.ctx.gamePaths.value[2];return t}get configPath(){const t=this.installPath;if(t)return t+"laochan-config.json"}async resetConfig(){this._config.value={},this._dirty=!0}async saveConfig(){const t=this.configPath;if(!t)return;const n=JSON.stringify(this._config.value);await window.laochan.writeFile(t,n),this._dirty=!1}async loadConfig(){const t=this.configPath;if(!t)return;const n=await window.laochan.readFile(t);n&&(this._config.value=JSON.parse(n)),this._config.value||await this.resetConfig(),this._dirty&&await this.saveConfig()}async applyConfig(){this._config.value}async start(){await this.loadConfig(),await window.laochan.setGame(2),await this.applyConfig(),await _e.applyConfig(),window.laochan.close()}async settings(){const t=this.installPath;t&&window.laochan.shellExecute(t+"\\launcher\\modules\\settings.exe")}async updater(){const t=this.installPath;t&&window.laochan.shellExecute(t+"\\launcher\\modules\\updater.exe","-t DUMMY")}}const It=new Uh,tt=e=>(ri("data-v-1124f146"),e=e(),ii(),e),Vh=tt(()=>y("div",null,null,-1)),Wh={class:"game sdvx"},Gh=tt(()=>y("div",{class:"background"},null,-1)),Kh={class:"text"},Yh=tt(()=>y("br",null,null,-1)),Xh={key:0,class:"tip"},qh={key:0,class:"options"},Jh={class:"game iidx"},Qh=tt(()=>y("div",{class:"background"},null,-1)),Zh={class:"text"},ep=tt(()=>y("br",null,null,-1)),tp={key:0,class:"tip"},np={key:0,class:"options"},sp=tt(()=>y("div",{class:"gap"},null,-1)),rp={class:"game gitadora"},ip=tt(()=>y("div",{class:"background"},[y("video",{loop:"",autoplay:"",muted:"",src:Fh})],-1)),op={class:"text"},ap=tt(()=>y("br",null,null,-1)),lp=tt(()=>y("br",null,null,-1)),cp={key:0,class:"tip"},fp={key:1,class:"tip"},up=tt(()=>y("small",null,"请注意: 服务器暂不支持",-1)),dp=[up],hp={key:0,class:"options"},pp=tt(()=>y("div",null,null,-1)),mp=et({__name:"HomeView",setup(e){return(t,n)=>{const s=_f("RouterLink");return J(),Z("main",null,[Vh,y("div",Wh,[Gh,y("div",Kh,[ee(" SOUND VOLTEX"),Yh,ee(" EXCEED GEAR "),E(mt).installed()?Le("",!0):(J(),Z("div",Xh," 未安装 "))]),E(mt).installed()?(J(),Z("div",qh,[y("div",{class:"opt",onClick:n[0]||(n[0]=(...r)=>E(mt).start&&E(mt).start(...r))},"启动"),y("div",{class:"opt",onClick:n[1]||(n[1]=(...r)=>E(mt).settings&&E(mt).settings(...r))},"游戏设置"),y("div",{class:"opt",onClick:n[2]||(n[2]=(...r)=>E(mt).updater&&E(mt).updater(...r))},"更新器")])):Le("",!0)]),y("div",Jh,[Qh,y("div",Zh,[ee(" beatmania IIDX"),ep,ee(" INFINITAS "),E(q).installed()?Le("",!0):(J(),Z("div",tp," 未安装 "))]),E(q).installed()?(J(),Z("div",np,[y("div",{class:"opt",onClick:n[3]||(n[3]=(...r)=>E(q).start&&E(q).start(...r))},"启动"),X(s,{class:"opt",to:"/iidx/settings"},{default:Mt(()=>[ee("额外设置")]),_:1}),y("div",{class:"opt",onClick:n[4]||(n[4]=(...r)=>E(q).settings&&E(q).settings(...r))},"游戏设置"),y("div",{class:"opt",onClick:n[5]||(n[5]=(...r)=>E(q).updater&&E(q).updater(...r))},"更新器"),y("div",{class:"opt",onClick:n[6]||(n[6]=(...r)=>E(q).openCustomize&&E(q).openCustomize(...r))},"自定义选项"),sp,y("div",{class:"opt small",onClick:n[7]||(n[7]=(...r)=>E(q).generateBat&&E(q).generateBat(...r))},"生成快速启动 BAT")])):Le("",!0)]),y("div",rp,[ip,y("div",op,[ee(" GITADORA "),ap,lp,E(It).installed()?(J(),Z("div",fp,dp)):(J(),Z("div",cp," 未安装 "))]),E(It).installed()?(J(),Z("div",hp,[y("div",{class:"opt",onClick:n[8]||(n[8]=(...r)=>E(It).start&&E(It).start(...r))},"启动"),y("div",{class:"opt",onClick:n[9]||(n[9]=(...r)=>E(It).settings&&E(It).settings(...r))},"游戏设置"),y("div",{class:"opt",onClick:n[10]||(n[10]=(...r)=>E(It).updater&&E(It).updater(...r))},"更新器")])):Le("",!0)]),pp])}}}),gp=ut(mp,[["__scopeId","data-v-1124f146"]]),vp={prefix:"fas",iconName:"lightbulb",icon:[384,512,[128161],"f0eb","M272 384c9.6-31.9 29.5-59.1 49.2-86.2c0 0 0 0 0 0c5.2-7.1 10.4-14.2 15.4-21.4c19.8-28.5 31.4-63 31.4-100.3C368 78.8 289.2 0 192 0S16 78.8 16 176c0 37.3 11.6 71.9 31.4 100.3c5 7.2 10.2 14.3 15.4 21.4c0 0 0 0 0 0c19.8 27.1 39.7 54.4 49.2 86.2l160 0zM192 512c44.2 0 80-35.8 80-80l0-16-160 0 0 16c0 44.2 35.8 80 80 80zM112 176c0 8.8-7.2 16-16 16s-16-7.2-16-16c0-61.9 50.1-112 112-112c8.8 0 16 7.2 16 16s-7.2 16-16 16c-44.2 0-80 35.8-80 80z"]},yp={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M64 32C28.7 32 0 60.7 0 96l0 64c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 32zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm48 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zM64 288c-35.3 0-64 28.7-64 64l0 64c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 288zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm56 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},_p={prefix:"fas",iconName:"microchip",icon:[512,512,[],"f2db","M176 24c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 40c-35.3 0-64 28.7-64 64l-40 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l40 0 0 56-40 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l40 0 0 56-40 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l40 0c0 35.3 28.7 64 64 64l0 40c0 13.3 10.7 24 24 24s24-10.7 24-24l0-40 56 0 0 40c0 13.3 10.7 24 24 24s24-10.7 24-24l0-40 56 0 0 40c0 13.3 10.7 24 24 24s24-10.7 24-24l0-40c35.3 0 64-28.7 64-64l40 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-40 0 0-56 40 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-40 0 0-56 40 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-40 0c0-35.3-28.7-64-64-64l0-40c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 40-56 0 0-40c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 40-56 0 0-40zM160 128l192 0c17.7 0 32 14.3 32 32l0 192c0 17.7-14.3 32-32 32l-192 0c-17.7 0-32-14.3-32-32l0-192c0-17.7 14.3-32 32-32zm192 32l-192 0 0 192 192 0 0-192z"]},bp={prefix:"fas",iconName:"language",icon:[640,512,[],"f1ab","M0 128C0 92.7 28.7 64 64 64l192 0 48 0 16 0 256 0c35.3 0 64 28.7 64 64l0 256c0 35.3-28.7 64-64 64l-256 0-16 0-48 0L64 448c-35.3 0-64-28.7-64-64L0 128zm320 0l0 256 256 0 0-256-256 0zM178.3 175.9c-3.2-7.2-10.4-11.9-18.3-11.9s-15.1 4.7-18.3 11.9l-64 144c-4.5 10.1 .1 21.9 10.2 26.4s21.9-.1 26.4-10.2l8.9-20.1 73.6 0 8.9 20.1c4.5 10.1 16.3 14.6 26.4 10.2s14.6-16.3 10.2-26.4l-64-144zM160 233.2L179 276l-38 0 19-42.8zM448 164c11 0 20 9 20 20l0 4 44 0 16 0c11 0 20 9 20 20s-9 20-20 20l-2 0-1.6 4.5c-8.9 24.4-22.4 46.6-39.6 65.4c.9 .6 1.8 1.1 2.7 1.6l18.9 11.3c9.5 5.7 12.5 18 6.9 27.4s-18 12.5-27.4 6.9l-18.9-11.3c-4.5-2.7-8.8-5.5-13.1-8.5c-10.6 7.5-21.9 14-34 19.4l-3.6 1.6c-10.1 4.5-21.9-.1-26.4-10.2s.1-21.9 10.2-26.4l3.6-1.6c6.4-2.9 12.6-6.1 18.5-9.8l-12.2-12.2c-7.8-7.8-7.8-20.5 0-28.3s20.5-7.8 28.3 0l14.6 14.6 .5 .5c12.4-13.1 22.5-28.3 29.8-45L448 228l-72 0c-11 0-20-9-20-20s9-20 20-20l52 0 0-4c0-11 9-20 20-20z"]},wp={prefix:"fas",iconName:"volume-high",icon:[640,512,[128266,"volume-up"],"f028","M533.6 32.5C598.5 85.2 640 165.8 640 256s-41.5 170.7-106.4 223.5c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C557.5 398.2 592 331.2 592 256s-34.5-142.2-88.7-186.3c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zM473.1 107c43.2 35.2 70.9 88.9 70.9 149s-27.7 113.8-70.9 149c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C475.3 341.3 496 301.1 496 256s-20.7-85.3-53.2-111.8c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zm-60.5 74.5C434.1 199.1 448 225.9 448 256s-13.9 56.9-35.4 74.5c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C393.1 284.4 400 271 400 256s-6.9-28.4-17.7-37.3c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zM301.1 34.8C312.6 40 320 51.4 320 64l0 384c0 12.6-7.4 24-18.9 29.2s-25 3.1-34.4-5.3L131.8 352 64 352c-35.3 0-64-28.7-64-64l0-64c0-35.3 28.7-64 64-64l67.8 0L266.7 40.1c9.4-8.4 22.9-10.4 34.4-5.3z"]},xp={prefix:"fas",iconName:"terminal",icon:[576,512,[],"f120","M9.4 86.6C-3.1 74.1-3.1 53.9 9.4 41.4s32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L178.7 256 9.4 86.6zM256 416l288 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-288 0c-17.7 0-32-14.3-32-32s14.3-32 32-32z"]},Ep={prefix:"fas",iconName:"tape",icon:[576,512,[],"f4db","M380.8 416c41.5-40.7 67.2-97.3 67.2-160C448 132.3 347.7 32 224 32S0 132.3 0 256S100.3 480 224 480l320 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-163.2 0zM224 160a96 96 0 1 1 0 192 96 96 0 1 1 0-192zm64 96a64 64 0 1 0 -128 0 64 64 0 1 0 128 0z"]},Sp={prefix:"fas",iconName:"hard-drive",icon:[512,512,[128436,"hdd"],"f0a0","M0 96C0 60.7 28.7 32 64 32l384 0c35.3 0 64 28.7 64 64l0 184.4c-17-15.2-39.4-24.4-64-24.4L64 256c-24.6 0-47 9.2-64 24.4L0 96zM64 288l384 0c35.3 0 64 28.7 64 64l0 64c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64l0-64c0-35.3 28.7-64 64-64zM320 416a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm128-32a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},Cp=Sp,Ap={prefix:"fas",iconName:"id-card",icon:[576,512,[62147,"drivers-license"],"f2c2","M0 96l576 0c0-35.3-28.7-64-64-64L64 32C28.7 32 0 60.7 0 96zm0 32L0 416c0 35.3 28.7 64 64 64l448 0c35.3 0 64-28.7 64-64l0-288L0 128zM64 405.3c0-29.5 23.9-53.3 53.3-53.3l117.3 0c29.5 0 53.3 23.9 53.3 53.3c0 5.9-4.8 10.7-10.7 10.7L74.7 416c-5.9 0-10.7-4.8-10.7-10.7zM176 192a64 64 0 1 1 0 128 64 64 0 1 1 0-128zm176 16c0-8.8 7.2-16 16-16l128 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-128 0c-8.8 0-16-7.2-16-16zm0 64c0-8.8 7.2-16 16-16l128 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-128 0c-8.8 0-16-7.2-16-16zm0 64c0-8.8 7.2-16 16-16l128 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-128 0c-8.8 0-16-7.2-16-16z"]},Op={prefix:"fas",iconName:"compact-disc",icon:[512,512,[128191,128192,128440],"f51f","M0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm256 32a32 32 0 1 1 0-64 32 32 0 1 1 0 64zm-96-32a96 96 0 1 0 192 0 96 96 0 1 0 -192 0zM96 240c0-35 17.5-71.1 45.2-98.8S205 96 240 96c8.8 0 16-7.2 16-16s-7.2-16-16-16c-45.4 0-89.2 22.3-121.5 54.5S64 194.6 64 240c0 8.8 7.2 16 16 16s16-7.2 16-16z"]},Pp={prefix:"fas",iconName:"display",icon:[576,512,[],"e163","M64 0C28.7 0 0 28.7 0 64L0 352c0 35.3 28.7 64 64 64l176 0-10.7 32L160 448c-17.7 0-32 14.3-32 32s14.3 32 32 32l256 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-69.3 0L336 416l176 0c35.3 0 64-28.7 64-64l0-288c0-35.3-28.7-64-64-64L64 0zM512 64l0 288L64 352 64 64l448 0z"]},Ip={prefix:"fas",iconName:"up-right-and-down-left-from-center",icon:[512,512,["expand-alt"],"f424","M344 0L488 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39-87 87c-9.4 9.4-24.6 9.4-33.9 0l-32-32c-9.4-9.4-9.4-24.6 0-33.9l87-87L327 41c-6.9-6.9-8.9-17.2-5.2-26.2S334.3 0 344 0zM168 512L24 512c-13.3 0-24-10.7-24-24L0 344c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39 87-87c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8z"]},Tp={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480L40 480c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},ko=Tp,Ro=()=>{};let di={},Nl={},kl=null,Rl={mark:Ro,measure:Ro};try{typeof window<"u"&&(di=window),typeof document<"u"&&(Nl=document),typeof MutationObserver<"u"&&(kl=MutationObserver),typeof performance<"u"&&(Rl=performance)}catch{}const{userAgent:Lo=""}=di.navigator||{},Ht=di,de=Nl,Mo=kl,fs=Rl;Ht.document;const Et=!!de.documentElement&&!!de.head&&typeof de.addEventListener=="function"&&typeof de.createElement=="function",Ll=~Lo.indexOf("MSIE")||~Lo.indexOf("Trident/");var me="classic",Ml="duotone",je="sharp",He="sharp-duotone",Np=[me,Ml,je,He],kp={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds"}},Fo={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},Rp=["kit"],Lp=/fa(s|r|l|t|d|b|k|kd|ss|sr|sl|st|sds)?[\-\ ]/,Mp=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,Fp={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}},$p={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds"}},Dp={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds"}},zp={classic:["fas","far","fal","fat"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds"]},jp={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid"}},Hp={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds"}},Fl={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid"}},Bp=["solid","regular","light","thin","duotone","brands"],$l=[1,2,3,4,5,6,7,8,9,10],Up=$l.concat([11,12,13,14,15,16,17,18,19,20]),Nn={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Vp=[...Object.keys(zp),...Bp,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Nn.GROUP,Nn.SWAP_OPACITY,Nn.PRIMARY,Nn.SECONDARY].concat($l.map(e=>"".concat(e,"x"))).concat(Up.map(e=>"w-".concat(e))),Wp={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},Gp={kit:{"fa-kit":"fak"},"kit-duotone":{"fa-kit-duotone":"fakd"}},Kp={kit:{fak:"fa-kit"},"kit-duotone":{fakd:"fa-kit-duotone"}},$o={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}};const bt="___FONT_AWESOME___",Tr=16,Dl="fa",zl="svg-inline--fa",ln="data-fa-i2svg",Nr="data-fa-pseudo-element",Yp="data-fa-pseudo-element-pending",hi="data-prefix",pi="data-icon",Do="fontawesome-i2svg",Xp="async",qp=["HTML","HEAD","STYLE","SCRIPT"],jl=(()=>{try{return!0}catch{return!1}})(),Hl=[me,je,He];function es(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[me]}})}const Bl={...Fl};Bl[me]={...Fl[me],...Fo.kit,...Fo["kit-duotone"]};const rn=es(Bl),kr={...Hp};kr[me]={...kr[me],...$o.kit,...$o["kit-duotone"]};const Jn=es(kr),Rr={...jp};Rr[me]={...Rr[me],...Kp.kit};const on=es(Rr),Lr={...Dp};Lr[me]={...Lr[me],...Gp.kit};const Jp=es(Lr),Qp=Lp,Ul="fa-layers-text",Zp=Mp,em={...kp};es(em);const tm=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],ar=Nn,En=new Set;Object.keys(Jn[me]).map(En.add.bind(En));Object.keys(Jn[je]).map(En.add.bind(En));Object.keys(Jn[He]).map(En.add.bind(En));const nm=[...Rp,...Vp],jn=Ht.FontAwesomeConfig||{};function sm(e){var t=de.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function rm(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}de&&typeof de.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(t=>{let[n,s]=t;const r=rm(sm(n));r!=null&&(jn[s]=r)});const Vl={styleDefault:"solid",familyDefault:"classic",cssPrefix:Dl,replacementClass:zl,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};jn.familyPrefix&&(jn.cssPrefix=jn.familyPrefix);const Sn={...Vl,...jn};Sn.autoReplaceSvg||(Sn.observeMutations=!1);const z={};Object.keys(Vl).forEach(e=>{Object.defineProperty(z,e,{enumerable:!0,set:function(t){Sn[e]=t,Hn.forEach(n=>n(z))},get:function(){return Sn[e]}})});Object.defineProperty(z,"familyPrefix",{enumerable:!0,set:function(e){Sn.cssPrefix=e,Hn.forEach(t=>t(z))},get:function(){return Sn.cssPrefix}});Ht.FontAwesomeConfig=z;const Hn=[];function im(e){return Hn.push(e),()=>{Hn.splice(Hn.indexOf(e),1)}}const Tt=Tr,lt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function om(e){if(!e||!Et)return;const t=de.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=de.head.childNodes;let s=null;for(let r=n.length-1;r>-1;r--){const i=n[r],o=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(s=i)}return de.head.insertBefore(t,s),e}const am="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Qn(){let e=12,t="";for(;e-- >0;)t+=am[Math.random()*62|0];return t}function An(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function mi(e){return e.classList?An(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function Wl(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function lm(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(Wl(e[n]),'" '),"").trim()}function Us(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function gi(e){return e.size!==lt.size||e.x!==lt.x||e.y!==lt.y||e.rotate!==lt.rotate||e.flipX||e.flipY}function cm(e){let{transform:t,containerWidth:n,iconWidth:s}=e;const r={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(t.x*32,", ").concat(t.y*32,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(i," ").concat(o," ").concat(a)},c={transform:"translate(".concat(s/2*-1," -256)")};return{outer:r,inner:l,path:c}}function fm(e){let{transform:t,width:n=Tr,height:s=Tr,startCentered:r=!1}=e,i="";return r&&Ll?i+="translate(".concat(t.x/Tt-n/2,"em, ").concat(t.y/Tt-s/2,"em) "):r?i+="translate(calc(-50% + ".concat(t.x/Tt,"em), calc(-50% + ").concat(t.y/Tt,"em)) "):i+="translate(".concat(t.x/Tt,"em, ").concat(t.y/Tt,"em) "),i+="scale(".concat(t.size/Tt*(t.flipX?-1:1),", ").concat(t.size/Tt*(t.flipY?-1:1),") "),i+="rotate(".concat(t.rotate,"deg) "),i}var um=`:root, :host { - --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free"; - --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free"; - --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro"; - --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro"; - --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone"; - --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands"; - --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp"; - --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp"; - --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp"; - --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp"; - --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone"; -} - -svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { - overflow: visible; - box-sizing: content-box; -} - -.svg-inline--fa { - display: var(--fa-display, inline-block); - height: 1em; - overflow: visible; - vertical-align: -0.125em; -} -.svg-inline--fa.fa-2xs { - vertical-align: 0.1em; -} -.svg-inline--fa.fa-xs { - vertical-align: 0em; -} -.svg-inline--fa.fa-sm { - vertical-align: -0.0714285705em; -} -.svg-inline--fa.fa-lg { - vertical-align: -0.2em; -} -.svg-inline--fa.fa-xl { - vertical-align: -0.25em; -} -.svg-inline--fa.fa-2xl { - vertical-align: -0.3125em; -} -.svg-inline--fa.fa-pull-left { - margin-right: var(--fa-pull-margin, 0.3em); - width: auto; -} -.svg-inline--fa.fa-pull-right { - margin-left: var(--fa-pull-margin, 0.3em); - width: auto; -} -.svg-inline--fa.fa-li { - width: var(--fa-li-width, 2em); - top: 0.25em; -} -.svg-inline--fa.fa-fw { - width: var(--fa-fw-width, 1.25em); -} - -.fa-layers svg.svg-inline--fa { - bottom: 0; - left: 0; - margin: auto; - position: absolute; - right: 0; - top: 0; -} - -.fa-layers-counter, .fa-layers-text { - display: inline-block; - position: absolute; - text-align: center; -} - -.fa-layers { - display: inline-block; - height: 1em; - position: relative; - text-align: center; - vertical-align: -0.125em; - width: 1em; -} -.fa-layers svg.svg-inline--fa { - transform-origin: center center; -} - -.fa-layers-text { - left: 50%; - top: 50%; - transform: translate(-50%, -50%); - transform-origin: center center; -} - -.fa-layers-counter { - background-color: var(--fa-counter-background-color, #ff253a); - border-radius: var(--fa-counter-border-radius, 1em); - box-sizing: border-box; - color: var(--fa-inverse, #fff); - line-height: var(--fa-counter-line-height, 1); - max-width: var(--fa-counter-max-width, 5em); - min-width: var(--fa-counter-min-width, 1.5em); - overflow: hidden; - padding: var(--fa-counter-padding, 0.25em 0.5em); - right: var(--fa-right, 0); - text-overflow: ellipsis; - top: var(--fa-top, 0); - transform: scale(var(--fa-counter-scale, 0.25)); - transform-origin: top right; -} - -.fa-layers-bottom-right { - bottom: var(--fa-bottom, 0); - right: var(--fa-right, 0); - top: auto; - transform: scale(var(--fa-layers-scale, 0.25)); - transform-origin: bottom right; -} - -.fa-layers-bottom-left { - bottom: var(--fa-bottom, 0); - left: var(--fa-left, 0); - right: auto; - top: auto; - transform: scale(var(--fa-layers-scale, 0.25)); - transform-origin: bottom left; -} - -.fa-layers-top-right { - top: var(--fa-top, 0); - right: var(--fa-right, 0); - transform: scale(var(--fa-layers-scale, 0.25)); - transform-origin: top right; -} - -.fa-layers-top-left { - left: var(--fa-left, 0); - right: auto; - top: var(--fa-top, 0); - transform: scale(var(--fa-layers-scale, 0.25)); - transform-origin: top left; -} - -.fa-1x { - font-size: 1em; -} - -.fa-2x { - font-size: 2em; -} - -.fa-3x { - font-size: 3em; -} - -.fa-4x { - font-size: 4em; -} - -.fa-5x { - font-size: 5em; -} - -.fa-6x { - font-size: 6em; -} - -.fa-7x { - font-size: 7em; -} - -.fa-8x { - font-size: 8em; -} - -.fa-9x { - font-size: 9em; -} - -.fa-10x { - font-size: 10em; -} - -.fa-2xs { - font-size: 0.625em; - line-height: 0.1em; - vertical-align: 0.225em; -} - -.fa-xs { - font-size: 0.75em; - line-height: 0.0833333337em; - vertical-align: 0.125em; -} - -.fa-sm { - font-size: 0.875em; - line-height: 0.0714285718em; - vertical-align: 0.0535714295em; -} - -.fa-lg { - font-size: 1.25em; - line-height: 0.05em; - vertical-align: -0.075em; -} - -.fa-xl { - font-size: 1.5em; - line-height: 0.0416666682em; - vertical-align: -0.125em; -} - -.fa-2xl { - font-size: 2em; - line-height: 0.03125em; - vertical-align: -0.1875em; -} - -.fa-fw { - text-align: center; - width: 1.25em; -} - -.fa-ul { - list-style-type: none; - margin-left: var(--fa-li-margin, 2.5em); - padding-left: 0; -} -.fa-ul > li { - position: relative; -} - -.fa-li { - left: calc(-1 * var(--fa-li-width, 2em)); - position: absolute; - text-align: center; - width: var(--fa-li-width, 2em); - line-height: inherit; -} - -.fa-border { - border-color: var(--fa-border-color, #eee); - border-radius: var(--fa-border-radius, 0.1em); - border-style: var(--fa-border-style, solid); - border-width: var(--fa-border-width, 0.08em); - padding: var(--fa-border-padding, 0.2em 0.25em 0.15em); -} - -.fa-pull-left { - float: left; - margin-right: var(--fa-pull-margin, 0.3em); -} - -.fa-pull-right { - float: right; - margin-left: var(--fa-pull-margin, 0.3em); -} - -.fa-beat { - animation-name: fa-beat; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 1s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, ease-in-out); -} - -.fa-bounce { - animation-name: fa-bounce; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 1s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); -} - -.fa-fade { - animation-name: fa-fade; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 1s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); -} - -.fa-beat-fade { - animation-name: fa-beat-fade; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 1s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); -} - -.fa-flip { - animation-name: fa-flip; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 1s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, ease-in-out); -} - -.fa-shake { - animation-name: fa-shake; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 1s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, linear); -} - -.fa-spin { - animation-name: fa-spin; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 2s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, linear); -} - -.fa-spin-reverse { - --fa-animation-direction: reverse; -} - -.fa-pulse, -.fa-spin-pulse { - animation-name: fa-spin; - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 1s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, steps(8)); -} - -@media (prefers-reduced-motion: reduce) { - .fa-beat, -.fa-bounce, -.fa-fade, -.fa-beat-fade, -.fa-flip, -.fa-pulse, -.fa-shake, -.fa-spin, -.fa-spin-pulse { - animation-delay: -1ms; - animation-duration: 1ms; - animation-iteration-count: 1; - transition-delay: 0s; - transition-duration: 0s; - } -} -@keyframes fa-beat { - 0%, 90% { - transform: scale(1); - } - 45% { - transform: scale(var(--fa-beat-scale, 1.25)); - } -} -@keyframes fa-bounce { - 0% { - transform: scale(1, 1) translateY(0); - } - 10% { - transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); - } - 30% { - transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); - } - 50% { - transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); - } - 57% { - transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); - } - 64% { - transform: scale(1, 1) translateY(0); - } - 100% { - transform: scale(1, 1) translateY(0); - } -} -@keyframes fa-fade { - 50% { - opacity: var(--fa-fade-opacity, 0.4); - } -} -@keyframes fa-beat-fade { - 0%, 100% { - opacity: var(--fa-beat-fade-opacity, 0.4); - transform: scale(1); - } - 50% { - opacity: 1; - transform: scale(var(--fa-beat-fade-scale, 1.125)); - } -} -@keyframes fa-flip { - 50% { - transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); - } -} -@keyframes fa-shake { - 0% { - transform: rotate(-15deg); - } - 4% { - transform: rotate(15deg); - } - 8%, 24% { - transform: rotate(-18deg); - } - 12%, 28% { - transform: rotate(18deg); - } - 16% { - transform: rotate(-22deg); - } - 20% { - transform: rotate(22deg); - } - 32% { - transform: rotate(-12deg); - } - 36% { - transform: rotate(12deg); - } - 40%, 100% { - transform: rotate(0deg); - } -} -@keyframes fa-spin { - 0% { - transform: rotate(0deg); - } - 100% { - transform: rotate(360deg); - } -} -.fa-rotate-90 { - transform: rotate(90deg); -} - -.fa-rotate-180 { - transform: rotate(180deg); -} - -.fa-rotate-270 { - transform: rotate(270deg); -} - -.fa-flip-horizontal { - transform: scale(-1, 1); -} - -.fa-flip-vertical { - transform: scale(1, -1); -} - -.fa-flip-both, -.fa-flip-horizontal.fa-flip-vertical { - transform: scale(-1, -1); -} - -.fa-rotate-by { - transform: rotate(var(--fa-rotate-angle, 0)); -} - -.fa-stack { - display: inline-block; - vertical-align: middle; - height: 2em; - position: relative; - width: 2.5em; -} - -.fa-stack-1x, -.fa-stack-2x { - bottom: 0; - left: 0; - margin: auto; - position: absolute; - right: 0; - top: 0; - z-index: var(--fa-stack-z-index, auto); -} - -.svg-inline--fa.fa-stack-1x { - height: 1em; - width: 1.25em; -} -.svg-inline--fa.fa-stack-2x { - height: 2em; - width: 2.5em; -} - -.fa-inverse { - color: var(--fa-inverse, #fff); -} - -.sr-only, -.fa-sr-only { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - margin: -1px; - overflow: hidden; - clip: rect(0, 0, 0, 0); - white-space: nowrap; - border-width: 0; -} - -.sr-only-focusable:not(:focus), -.fa-sr-only-focusable:not(:focus) { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - margin: -1px; - overflow: hidden; - clip: rect(0, 0, 0, 0); - white-space: nowrap; - border-width: 0; -} - -.svg-inline--fa .fa-primary { - fill: var(--fa-primary-color, currentColor); - opacity: var(--fa-primary-opacity, 1); -} - -.svg-inline--fa .fa-secondary { - fill: var(--fa-secondary-color, currentColor); - opacity: var(--fa-secondary-opacity, 0.4); -} - -.svg-inline--fa.fa-swap-opacity .fa-primary { - opacity: var(--fa-secondary-opacity, 0.4); -} - -.svg-inline--fa.fa-swap-opacity .fa-secondary { - opacity: var(--fa-primary-opacity, 1); -} - -.svg-inline--fa mask .fa-primary, -.svg-inline--fa mask .fa-secondary { - fill: black; -} - -.fad.fa-inverse, -.fa-duotone.fa-inverse { - color: var(--fa-inverse, #fff); -}`;function Gl(){const e=Dl,t=zl,n=z.cssPrefix,s=z.replacementClass;let r=um;if(n!==e||s!==t){const i=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),a=new RegExp("\\.".concat(t),"g");r=r.replace(i,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(a,".".concat(s))}return r}let zo=!1;function lr(){z.autoAddCss&&!zo&&(om(Gl()),zo=!0)}var dm={mixout(){return{dom:{css:Gl,insertCss:lr}}},hooks(){return{beforeDOMElementCreation(){lr()},beforeI2svg(){lr()}}}};const wt=Ht||{};wt[bt]||(wt[bt]={});wt[bt].styles||(wt[bt].styles={});wt[bt].hooks||(wt[bt].hooks={});wt[bt].shims||(wt[bt].shims=[]);var ct=wt[bt];const Kl=[],Yl=function(){de.removeEventListener("DOMContentLoaded",Yl),Ss=1,Kl.map(e=>e())};let Ss=!1;Et&&(Ss=(de.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(de.readyState),Ss||de.addEventListener("DOMContentLoaded",Yl));function hm(e){Et&&(Ss?setTimeout(e,0):Kl.push(e))}function ts(e){const{tag:t,attributes:n={},children:s=[]}=e;return typeof e=="string"?Wl(e):"<".concat(t," ").concat(lm(n),">").concat(s.map(ts).join(""),"")}function jo(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var cr=function(t,n,s,r){var i=Object.keys(t),o=i.length,a=n,l,c,f;for(s===void 0?(l=1,f=t[i[0]]):(l=0,f=s);l=55296&&r<=56319&&n=55296&&s<=56319&&n>t+1&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?(s-55296)*1024+r-56320+65536:s}function Ho(e){return Object.keys(e).reduce((t,n)=>{const s=e[n];return!!s.icon?t[s.iconName]=s.icon:t[n]=s,t},{})}function Fr(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:s=!1}=n,r=Ho(t);typeof ct.hooks.addPack=="function"&&!s?ct.hooks.addPack(e,Ho(t)):ct.styles[e]={...ct.styles[e]||{},...r},e==="fas"&&Fr("fa",t)}const{styles:en,shims:gm}=ct,vm={[me]:Object.values(on[me]),[je]:Object.values(on[je]),[He]:Object.values(on[He])};let vi=null,Xl={},ql={},Jl={},Ql={},Zl={};const ym={[me]:Object.keys(rn[me]),[je]:Object.keys(rn[je]),[He]:Object.keys(rn[He])};function _m(e){return~nm.indexOf(e)}function bm(e,t){const n=t.split("-"),s=n[0],r=n.slice(1).join("-");return s===e&&r!==""&&!_m(r)?r:null}const ec=()=>{const e=s=>cr(en,(r,i,o)=>(r[o]=cr(i,s,{}),r),{});Xl=e((s,r,i)=>(r[3]&&(s[r[3]]=i),r[2]&&r[2].filter(a=>typeof a=="number").forEach(a=>{s[a.toString(16)]=i}),s)),ql=e((s,r,i)=>(s[i]=i,r[2]&&r[2].filter(a=>typeof a=="string").forEach(a=>{s[a]=i}),s)),Zl=e((s,r,i)=>{const o=r[2];return s[i]=i,o.forEach(a=>{s[a]=i}),s});const t="far"in en||z.autoFetchSvg,n=cr(gm,(s,r)=>{const i=r[0];let o=r[1];const a=r[2];return o==="far"&&!t&&(o="fas"),typeof i=="string"&&(s.names[i]={prefix:o,iconName:a}),typeof i=="number"&&(s.unicodes[i.toString(16)]={prefix:o,iconName:a}),s},{names:{},unicodes:{}});Jl=n.names,Ql=n.unicodes,vi=Vs(z.styleDefault,{family:z.familyDefault})};im(e=>{vi=Vs(e.styleDefault,{family:z.familyDefault})});ec();function yi(e,t){return(Xl[e]||{})[t]}function wm(e,t){return(ql[e]||{})[t]}function Ft(e,t){return(Zl[e]||{})[t]}function tc(e){return Jl[e]||{prefix:null,iconName:null}}function xm(e){const t=Ql[e],n=yi("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Bt(){return vi}const _i=()=>({prefix:null,iconName:null,rest:[]});function Vs(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=me}=t,s=rn[n][e],r=Jn[n][e]||Jn[n][s],i=e in ct.styles?e:null;return r||i||null}const Em={[me]:Object.keys(on[me]),[je]:Object.keys(on[je]),[He]:Object.keys(on[He])};function Ws(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t,s={[me]:"".concat(z.cssPrefix,"-").concat(me),[je]:"".concat(z.cssPrefix,"-").concat(je),[He]:"".concat(z.cssPrefix,"-").concat(He)};let r=null,i=me;const o=Np.filter(l=>l!==Ml);o.forEach(l=>{(e.includes(s[l])||e.some(c=>Em[l].includes(c)))&&(i=l)});const a=e.reduce((l,c)=>{const f=bm(z.cssPrefix,c);if(en[c]?(c=vm[i].includes(c)?Jp[i][c]:c,r=c,l.prefix=c):ym[i].indexOf(c)>-1?(r=c,l.prefix=Vs(c,{family:i})):f?l.iconName=f:c!==z.replacementClass&&!o.some(u=>c===s[u])&&l.rest.push(c),!n&&l.prefix&&l.iconName){const u=r==="fa"?tc(l.iconName):{},p=Ft(l.prefix,l.iconName);u.prefix&&(r=null),l.iconName=u.iconName||p||l.iconName,l.prefix=u.prefix||l.prefix,l.prefix==="far"&&!en.far&&en.fas&&!z.autoFetchSvg&&(l.prefix="fas")}return l},_i());return(e.includes("fa-brands")||e.includes("fab"))&&(a.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(a.prefix="fad"),!a.prefix&&i===je&&(en.fass||z.autoFetchSvg)&&(a.prefix="fass",a.iconName=Ft(a.prefix,a.iconName)||a.iconName),!a.prefix&&i===He&&(en.fasds||z.autoFetchSvg)&&(a.prefix="fasds",a.iconName=Ft(a.prefix,a.iconName)||a.iconName),(a.prefix==="fa"||r==="fa")&&(a.prefix=Bt()||"fas"),a}class Sm{constructor(){this.definitions={}}add(){for(var t=arguments.length,n=new Array(t),s=0;s{this.definitions[i]={...this.definitions[i]||{},...r[i]},Fr(i,r[i]);const o=on[me][i];o&&Fr(o,r[i]),ec()})}reset(){this.definitions={}}_pullDefinitions(t,n){const s=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(s).map(r=>{const{prefix:i,iconName:o,icon:a}=s[r],l=a[2];t[i]||(t[i]={}),l.length>0&&l.forEach(c=>{typeof c=="string"&&(t[i][c]=a)}),t[i][o]=a}),t}}let Bo=[],mn={};const _n={},Cm=Object.keys(_n);function Am(e,t){let{mixoutsTo:n}=t;return Bo=e,mn={},Object.keys(_n).forEach(s=>{Cm.indexOf(s)===-1&&delete _n[s]}),Bo.forEach(s=>{const r=s.mixout?s.mixout():{};if(Object.keys(r).forEach(i=>{typeof r[i]=="function"&&(n[i]=r[i]),typeof r[i]=="object"&&Object.keys(r[i]).forEach(o=>{n[i]||(n[i]={}),n[i][o]=r[i][o]})}),s.hooks){const i=s.hooks();Object.keys(i).forEach(o=>{mn[o]||(mn[o]=[]),mn[o].push(i[o])})}s.provides&&s.provides(_n)}),n}function $r(e,t){for(var n=arguments.length,s=new Array(n>2?n-2:0),r=2;r{t=o.apply(null,[t,...s])}),t}function cn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s{i.apply(null,n)})}function Ut(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return _n[e]?_n[e].apply(null,t):void 0}function Dr(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||Bt();if(t)return t=Ft(n,t)||t,jo(nc.definitions,n,t)||jo(ct.styles,n,t)}const nc=new Sm,Om=()=>{z.autoReplaceSvg=!1,z.observeMutations=!1,cn("noAuto")},Pm={i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Et?(cn("beforeI2svg",e),Ut("pseudoElements2svg",e),Ut("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;z.autoReplaceSvg===!1&&(z.autoReplaceSvg=!0),z.observeMutations=!0,hm(()=>{Tm({autoReplaceSvgRoot:t}),cn("watch",e)})}},Im={icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Ft(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],n=Vs(e[0]);return{prefix:n,iconName:Ft(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(z.cssPrefix,"-"))>-1||e.match(Qp))){const t=Ws(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||Bt(),iconName:Ft(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=Bt();return{prefix:t,iconName:Ft(t,e)||e}}}},Be={noAuto:Om,config:z,dom:Pm,parse:Im,library:nc,findIconDefinition:Dr,toHtml:ts},Tm=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=de}=e;(Object.keys(ct.styles).length>0||z.autoFetchSvg)&&Et&&z.autoReplaceSvg&&Be.dom.i2svg({node:t})};function Gs(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>ts(n))}}),Object.defineProperty(e,"node",{get:function(){if(!Et)return;const n=de.createElement("div");return n.innerHTML=e.html,n.children}}),e}function Nm(e){let{children:t,main:n,mask:s,attributes:r,styles:i,transform:o}=e;if(gi(o)&&n.found&&!s.found){const{width:a,height:l}=n,c={x:a/l/2,y:.5};r.style=Us({...i,"transform-origin":"".concat(c.x+o.x/16,"em ").concat(c.y+o.y/16,"em")})}return[{tag:"svg",attributes:r,children:t}]}function km(e){let{prefix:t,iconName:n,children:s,attributes:r,symbol:i}=e;const o=i===!0?"".concat(t,"-").concat(z.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:{...r,id:o},children:s}]}]}function bi(e){const{icons:{main:t,mask:n},prefix:s,iconName:r,transform:i,symbol:o,title:a,maskId:l,titleId:c,extra:f,watchable:u=!1}=e,{width:p,height:m}=n.found?n:t,P=s==="fak",O=[z.replacementClass,r?"".concat(z.cssPrefix,"-").concat(r):""].filter(D=>f.classes.indexOf(D)===-1).filter(D=>D!==""||!!D).concat(f.classes).join(" ");let N={children:[],attributes:{...f.attributes,"data-prefix":s,"data-icon":r,class:O,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(p," ").concat(m)}};const v=P&&!~f.classes.indexOf("fa-fw")?{width:"".concat(p/m*16*.0625,"em")}:{};u&&(N.attributes[ln]=""),a&&(N.children.push({tag:"title",attributes:{id:N.attributes["aria-labelledby"]||"title-".concat(c||Qn())},children:[a]}),delete N.attributes.title);const _={...N,prefix:s,iconName:r,main:t,mask:n,maskId:l,transform:i,symbol:o,styles:{...v,...f.styles}},{children:C,attributes:I}=n.found&&t.found?Ut("generateAbstractMask",_)||{children:[],attributes:{}}:Ut("generateAbstractIcon",_)||{children:[],attributes:{}};return _.children=C,_.attributes=I,o?km(_):Nm(_)}function Uo(e){const{content:t,width:n,height:s,transform:r,title:i,extra:o,watchable:a=!1}=e,l={...o.attributes,...i?{title:i}:{},class:o.classes.join(" ")};a&&(l[ln]="");const c={...o.styles};gi(r)&&(c.transform=fm({transform:r,startCentered:!0,width:n,height:s}),c["-webkit-transform"]=c.transform);const f=Us(c);f.length>0&&(l.style=f);const u=[];return u.push({tag:"span",attributes:l,children:[t]}),i&&u.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),u}function Rm(e){const{content:t,title:n,extra:s}=e,r={...s.attributes,...n?{title:n}:{},class:s.classes.join(" ")},i=Us(s.styles);i.length>0&&(r.style=i);const o=[];return o.push({tag:"span",attributes:r,children:[t]}),n&&o.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),o}const{styles:fr}=ct;function zr(e){const t=e[0],n=e[1],[s]=e.slice(4);let r=null;return Array.isArray(s)?r={tag:"g",attributes:{class:"".concat(z.cssPrefix,"-").concat(ar.GROUP)},children:[{tag:"path",attributes:{class:"".concat(z.cssPrefix,"-").concat(ar.SECONDARY),fill:"currentColor",d:s[0]}},{tag:"path",attributes:{class:"".concat(z.cssPrefix,"-").concat(ar.PRIMARY),fill:"currentColor",d:s[1]}}]}:r={tag:"path",attributes:{fill:"currentColor",d:s}},{found:!0,width:t,height:n,icon:r}}const Lm={found:!1,width:512,height:512};function Mm(e,t){!jl&&!z.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function jr(e,t){let n=t;return t==="fa"&&z.styleDefault!==null&&(t=Bt()),new Promise((s,r)=>{if(n==="fa"){const i=tc(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&fr[t]&&fr[t][e]){const i=fr[t][e];return s(zr(i))}Mm(e,t),s({...Lm,icon:z.showMissingIcons&&e?Ut("missingIconAbstract")||{}:{}})})}const Vo=()=>{},Hr=z.measurePerformance&&fs&&fs.mark&&fs.measure?fs:{mark:Vo,measure:Vo},kn='FA "6.6.0"',Fm=e=>(Hr.mark("".concat(kn," ").concat(e," begins")),()=>sc(e)),sc=e=>{Hr.mark("".concat(kn," ").concat(e," ends")),Hr.measure("".concat(kn," ").concat(e),"".concat(kn," ").concat(e," begins"),"".concat(kn," ").concat(e," ends"))};var wi={begin:Fm,end:sc};const vs=()=>{};function Wo(e){return typeof(e.getAttribute?e.getAttribute(ln):null)=="string"}function $m(e){const t=e.getAttribute?e.getAttribute(hi):null,n=e.getAttribute?e.getAttribute(pi):null;return t&&n}function Dm(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(z.replacementClass)}function zm(){return z.autoReplaceSvg===!0?ys.replace:ys[z.autoReplaceSvg]||ys.replace}function jm(e){return de.createElementNS("http://www.w3.org/2000/svg",e)}function Hm(e){return de.createElement(e)}function rc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?jm:Hm}=t;if(typeof e=="string")return de.createTextNode(e);const s=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(i){s.setAttribute(i,e.attributes[i])}),(e.children||[]).forEach(function(i){s.appendChild(rc(i,{ceFn:n}))}),s}function Bm(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const ys={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(rc(n),t)}),t.getAttribute(ln)===null&&z.keepOriginalSource){let n=de.createComment(Bm(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~mi(t).indexOf(z.replacementClass))return ys.replace(e);const s=new RegExp("".concat(z.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const i=n[0].attributes.class.split(" ").reduce((o,a)=>(a===z.replacementClass||a.match(s)?o.toSvg.push(a):o.toNode.push(a),o),{toNode:[],toSvg:[]});n[0].attributes.class=i.toSvg.join(" "),i.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",i.toNode.join(" "))}const r=n.map(i=>ts(i)).join(` -`);t.setAttribute(ln,""),t.innerHTML=r}};function Go(e){e()}function ic(e,t){const n=typeof t=="function"?t:vs;if(e.length===0)n();else{let s=Go;z.mutateApproach===Xp&&(s=Ht.requestAnimationFrame||Go),s(()=>{const r=zm(),i=wi.begin("mutate");e.map(r),i(),n()})}}let xi=!1;function oc(){xi=!0}function Br(){xi=!1}let Cs=null;function Ko(e){if(!Mo||!z.observeMutations)return;const{treeCallback:t=vs,nodeCallback:n=vs,pseudoElementsCallback:s=vs,observeMutationsRoot:r=de}=e;Cs=new Mo(i=>{if(xi)return;const o=Bt();An(i).forEach(a=>{if(a.type==="childList"&&a.addedNodes.length>0&&!Wo(a.addedNodes[0])&&(z.searchPseudoElements&&s(a.target),t(a.target)),a.type==="attributes"&&a.target.parentNode&&z.searchPseudoElements&&s(a.target.parentNode),a.type==="attributes"&&Wo(a.target)&&~tm.indexOf(a.attributeName))if(a.attributeName==="class"&&$m(a.target)){const{prefix:l,iconName:c}=Ws(mi(a.target));a.target.setAttribute(hi,l||o),c&&a.target.setAttribute(pi,c)}else Dm(a.target)&&n(a.target)})}),Et&&Cs.observe(r,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function Um(){Cs&&Cs.disconnect()}function Vm(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((s,r)=>{const i=r.split(":"),o=i[0],a=i.slice(1);return o&&a.length>0&&(s[o]=a.join(":").trim()),s},{})),n}function Wm(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),s=e.innerText!==void 0?e.innerText.trim():"";let r=Ws(mi(e));return r.prefix||(r.prefix=Bt()),t&&n&&(r.prefix=t,r.iconName=n),r.iconName&&r.prefix||(r.prefix&&s.length>0&&(r.iconName=wm(r.prefix,e.innerText)||yi(r.prefix,Mr(e.innerText))),!r.iconName&&z.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(r.iconName=e.firstChild.data)),r}function Gm(e){const t=An(e.attributes).reduce((r,i)=>(r.name!=="class"&&r.name!=="style"&&(r[i.name]=i.value),r),{}),n=e.getAttribute("title"),s=e.getAttribute("data-fa-title-id");return z.autoA11y&&(n?t["aria-labelledby"]="".concat(z.replacementClass,"-title-").concat(s||Qn()):(t["aria-hidden"]="true",t.focusable="false")),t}function Km(){return{iconName:null,title:null,titleId:null,prefix:null,transform:lt,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Yo(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:s,rest:r}=Wm(e),i=Gm(e),o=$r("parseNodeAttributes",{},e);let a=t.styleParser?Vm(e):[];return{iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:s,transform:lt,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:r,styles:a,attributes:i},...o}}const{styles:Ym}=ct;function ac(e){const t=z.autoReplaceSvg==="nest"?Yo(e,{styleParser:!1}):Yo(e);return~t.extra.classes.indexOf(Ul)?Ut("generateLayersText",e,t):Ut("generateSvgReplacementMutation",e,t)}let ft=new Set;Hl.map(e=>{ft.add("fa-".concat(e))});Object.keys(rn[me]).map(ft.add.bind(ft));Object.keys(rn[je]).map(ft.add.bind(ft));Object.keys(rn[He]).map(ft.add.bind(ft));ft=[...ft];function Xo(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Et)return Promise.resolve();const n=de.documentElement.classList,s=f=>n.add("".concat(Do,"-").concat(f)),r=f=>n.remove("".concat(Do,"-").concat(f)),i=z.autoFetchSvg?ft:Hl.map(f=>"fa-".concat(f)).concat(Object.keys(Ym));i.includes("fa")||i.push("fa");const o=[".".concat(Ul,":not([").concat(ln,"])")].concat(i.map(f=>".".concat(f,":not([").concat(ln,"])"))).join(", ");if(o.length===0)return Promise.resolve();let a=[];try{a=An(e.querySelectorAll(o))}catch{}if(a.length>0)s("pending"),r("complete");else return Promise.resolve();const l=wi.begin("onTree"),c=a.reduce((f,u)=>{try{const p=ac(u);p&&f.push(p)}catch(p){jl||p.name==="MissingIcon"&&console.error(p)}return f},[]);return new Promise((f,u)=>{Promise.all(c).then(p=>{ic(p,()=>{s("active"),s("complete"),r("pending"),typeof t=="function"&&t(),l(),f()})}).catch(p=>{l(),u(p)})})}function Xm(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;ac(e).then(n=>{n&&ic([n],t)})}function qm(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=(t||{}).icon?t:Dr(t||{});let{mask:r}=n;return r&&(r=(r||{}).icon?r:Dr(r||{})),e(s,{...n,mask:r})}}const Jm=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=lt,symbol:s=!1,mask:r=null,maskId:i=null,title:o=null,titleId:a=null,classes:l=[],attributes:c={},styles:f={}}=t;if(!e)return;const{prefix:u,iconName:p,icon:m}=e;return Gs({type:"icon",...e},()=>(cn("beforeDOMElementCreation",{iconDefinition:e,params:t}),z.autoA11y&&(o?c["aria-labelledby"]="".concat(z.replacementClass,"-title-").concat(a||Qn()):(c["aria-hidden"]="true",c.focusable="false")),bi({icons:{main:zr(m),mask:r?zr(r.icon):{found:!1,width:null,height:null,icon:{}}},prefix:u,iconName:p,transform:{...lt,...n},symbol:s,title:o,maskId:i,titleId:a,extra:{attributes:c,styles:f,classes:l}})))};var Qm={mixout(){return{icon:qm(Jm)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=Xo,e.nodeCallback=Xm,e}}},provides(e){e.i2svg=function(t){const{node:n=de,callback:s=()=>{}}=t;return Xo(n,s)},e.generateSvgReplacementMutation=function(t,n){const{iconName:s,title:r,titleId:i,prefix:o,transform:a,symbol:l,mask:c,maskId:f,extra:u}=n;return new Promise((p,m)=>{Promise.all([jr(s,o),c.iconName?jr(c.iconName,c.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(P=>{let[O,N]=P;p([t,bi({icons:{main:O,mask:N},prefix:o,iconName:s,transform:a,symbol:l,maskId:f,title:r,titleId:i,extra:u,watchable:!0})])}).catch(m)})},e.generateAbstractIcon=function(t){let{children:n,attributes:s,main:r,transform:i,styles:o}=t;const a=Us(o);a.length>0&&(s.style=a);let l;return gi(i)&&(l=Ut("generateAbstractTransformGrouping",{main:r,transform:i,containerWidth:r.width,iconWidth:r.width})),n.push(l||r.icon),{children:n,attributes:s}}}},Zm={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return Gs({type:"layer"},()=>{cn("beforeDOMElementCreation",{assembler:e,params:t});let s=[];return e(r=>{Array.isArray(r)?r.map(i=>{s=s.concat(i.abstract)}):s=s.concat(r.abstract)}),[{tag:"span",attributes:{class:["".concat(z.cssPrefix,"-layers"),...n].join(" ")},children:s}]})}}}},eg={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:n=null,classes:s=[],attributes:r={},styles:i={}}=t;return Gs({type:"counter",content:e},()=>(cn("beforeDOMElementCreation",{content:e,params:t}),Rm({content:e.toString(),title:n,extra:{attributes:r,styles:i,classes:["".concat(z.cssPrefix,"-layers-counter"),...s]}})))}}}},tg={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=lt,title:s=null,classes:r=[],attributes:i={},styles:o={}}=t;return Gs({type:"text",content:e},()=>(cn("beforeDOMElementCreation",{content:e,params:t}),Uo({content:e,transform:{...lt,...n},title:s,extra:{attributes:i,styles:o,classes:["".concat(z.cssPrefix,"-layers-text"),...r]}})))}}},provides(e){e.generateLayersText=function(t,n){const{title:s,transform:r,extra:i}=n;let o=null,a=null;if(Ll){const l=parseInt(getComputedStyle(t).fontSize,10),c=t.getBoundingClientRect();o=c.width/l,a=c.height/l}return z.autoA11y&&!s&&(i.attributes["aria-hidden"]="true"),Promise.resolve([t,Uo({content:t.innerHTML,width:o,height:a,transform:r,title:s,extra:i,watchable:!0})])}}};const ng=new RegExp('"',"ug"),qo=[1105920,1112319],Jo={FontAwesome:{normal:"fas",400:"fas"},...$p,...Fp,...Wp},Ur=Object.keys(Jo).reduce((e,t)=>(e[t.toLowerCase()]=Jo[t],e),{}),sg=Object.keys(Ur).reduce((e,t)=>{const n=Ur[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function rg(e){const t=e.replace(ng,""),n=mm(t,0),s=n>=qo[0]&&n<=qo[1],r=t.length===2?t[0]===t[1]:!1;return{value:Mr(r?t[0]:t),isSecondary:s||r}}function ig(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),s=parseInt(t),r=isNaN(s)?"normal":s;return(Ur[n]||{})[r]||sg[n]}function Qo(e,t){const n="".concat(Yp).concat(t.replace(":","-"));return new Promise((s,r)=>{if(e.getAttribute(n)!==null)return s();const o=An(e.children).filter(p=>p.getAttribute(Nr)===t)[0],a=Ht.getComputedStyle(e,t),l=a.getPropertyValue("font-family"),c=l.match(Zp),f=a.getPropertyValue("font-weight"),u=a.getPropertyValue("content");if(o&&!c)return e.removeChild(o),s();if(c&&u!=="none"&&u!==""){const p=a.getPropertyValue("content");let m=ig(l,f);const{value:P,isSecondary:O}=rg(p),N=c[0].startsWith("FontAwesome");let v=yi(m,P),_=v;if(N){const C=xm(P);C.iconName&&C.prefix&&(v=C.iconName,m=C.prefix)}if(v&&!O&&(!o||o.getAttribute(hi)!==m||o.getAttribute(pi)!==_)){e.setAttribute(n,_),o&&e.removeChild(o);const C=Km(),{extra:I}=C;I.attributes[Nr]=t,jr(v,m).then(D=>{const M=bi({...C,icons:{main:D,mask:_i()},prefix:m,iconName:_,extra:I,watchable:!0}),Y=de.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(Y,e.firstChild):e.appendChild(Y),Y.outerHTML=M.map(ge=>ts(ge)).join(` -`),e.removeAttribute(n),s()}).catch(r)}else s()}else s()})}function og(e){return Promise.all([Qo(e,"::before"),Qo(e,"::after")])}function ag(e){return e.parentNode!==document.head&&!~qp.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Nr)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Zo(e){if(Et)return new Promise((t,n)=>{const s=An(e.querySelectorAll("*")).filter(ag).map(og),r=wi.begin("searchPseudoElements");oc(),Promise.all(s).then(()=>{r(),Br(),t()}).catch(()=>{r(),Br(),n()})})}var lg={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=Zo,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=de}=t;z.searchPseudoElements&&Zo(n)}}};let ea=!1;var cg={mixout(){return{dom:{unwatch(){oc(),ea=!0}}}},hooks(){return{bootstrap(){Ko($r("mutationObserverCallbacks",{}))},noAuto(){Um()},watch(e){const{observeMutationsRoot:t}=e;ea?Br():Ko($r("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const ta=e=>{let t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce((n,s)=>{const r=s.toLowerCase().split("-"),i=r[0];let o=r.slice(1).join("-");if(i&&o==="h")return n.flipX=!0,n;if(i&&o==="v")return n.flipY=!0,n;if(o=parseFloat(o),isNaN(o))return n;switch(i){case"grow":n.size=n.size+o;break;case"shrink":n.size=n.size-o;break;case"left":n.x=n.x-o;break;case"right":n.x=n.x+o;break;case"up":n.y=n.y-o;break;case"down":n.y=n.y+o;break;case"rotate":n.rotate=n.rotate+o;break}return n},t)};var fg={mixout(){return{parse:{transform:e=>ta(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=ta(n)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:n,transform:s,containerWidth:r,iconWidth:i}=t;const o={transform:"translate(".concat(r/2," 256)")},a="translate(".concat(s.x*32,", ").concat(s.y*32,") "),l="scale(".concat(s.size/16*(s.flipX?-1:1),", ").concat(s.size/16*(s.flipY?-1:1),") "),c="rotate(".concat(s.rotate," 0 0)"),f={transform:"".concat(a," ").concat(l," ").concat(c)},u={transform:"translate(".concat(i/2*-1," -256)")},p={outer:o,inner:f,path:u};return{tag:"g",attributes:{...p.outer},children:[{tag:"g",attributes:{...p.inner},children:[{tag:n.icon.tag,children:n.icon.children,attributes:{...n.icon.attributes,...p.path}}]}]}}}};const ur={x:0,y:0,width:"100%",height:"100%"};function na(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function ug(e){return e.tag==="g"?e.children:[e]}var dg={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),s=n?Ws(n.split(" ").map(r=>r.trim())):_i();return s.prefix||(s.prefix=Bt()),e.mask=s,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(t){let{children:n,attributes:s,main:r,mask:i,maskId:o,transform:a}=t;const{width:l,icon:c}=r,{width:f,icon:u}=i,p=cm({transform:a,containerWidth:f,iconWidth:l}),m={tag:"rect",attributes:{...ur,fill:"white"}},P=c.children?{children:c.children.map(na)}:{},O={tag:"g",attributes:{...p.inner},children:[na({tag:c.tag,attributes:{...c.attributes,...p.path},...P})]},N={tag:"g",attributes:{...p.outer},children:[O]},v="mask-".concat(o||Qn()),_="clip-".concat(o||Qn()),C={tag:"mask",attributes:{...ur,id:v,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"},children:[m,N]},I={tag:"defs",children:[{tag:"clipPath",attributes:{id:_},children:ug(u)},C]};return n.push(I,{tag:"rect",attributes:{fill:"currentColor","clip-path":"url(#".concat(_,")"),mask:"url(#".concat(v,")"),...ur}}),{children:n,attributes:s}}}},hg={provides(e){let t=!1;Ht.matchMedia&&(t=Ht.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const n=[],s={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:{...s,d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}});const i={...r,attributeName:"opacity"},o={tag:"circle",attributes:{...s,cx:"256",cy:"364",r:"28"},children:[]};return t||o.children.push({tag:"animate",attributes:{...r,attributeName:"r",values:"28;14;28;28;14;28;"}},{tag:"animate",attributes:{...i,values:"1;0;1;1;0;1;"}}),n.push(o),n.push({tag:"path",attributes:{...s,opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"},children:t?[]:[{tag:"animate",attributes:{...i,values:"1;0;0;0;0;1;"}}]}),t||n.push({tag:"path",attributes:{...s,opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"},children:[{tag:"animate",attributes:{...i,values:"0;0;1;1;0;0;"}}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},pg={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),s=n===null?!1:n===""?!0:n;return e.symbol=s,e}}}},mg=[dm,Qm,Zm,eg,tg,lg,cg,fg,dg,hg,pg];Am(mg,{mixoutsTo:Be});Be.noAuto;Be.config;Be.library;Be.dom;const Vr=Be.parse;Be.findIconDefinition;Be.toHtml;const gg=Be.icon;Be.layer;Be.text;Be.counter;function sa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,s)}return n}function vt(e){for(var t=1;t=0)continue;n[s]=e[s]}return n}function bg(e,t){if(e==null)return{};var n=_g(e,t),s,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,s)&&(n[s]=e[s])}return n}var wg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},lc={exports:{}};(function(e){(function(t){var n=function(v,_,C){if(!c(_)||u(_)||p(_)||m(_)||l(_))return _;var I,D=0,M=0;if(f(_))for(I=[],M=_.length;D1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof e=="string")return e;var s=(e.children||[]).map(function(l){return cc(l)}),r=Object.keys(e.attributes||{}).reduce(function(l,c){var f=e.attributes[c];switch(c){case"class":l.class=Cg(f);break;case"style":l.style=Sg(f);break;default:l.attrs[c]=f}return l},{attrs:{},class:{},style:{}});n.class;var i=n.style,o=i===void 0?{}:i,a=bg(n,Eg);return Hs(e.tag,vt(vt(vt({},t),{},{class:r.class,style:vt(vt({},r.style),o)},r.attrs),a),s)}var fc=!1;try{fc=!0}catch{}function Ag(){if(!fc&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function dr(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?ke({},e,t):{}}function Og(e){var t,n=(t={"fa-spin":e.spin,"fa-pulse":e.pulse,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-li":e.listItem,"fa-inverse":e.inverse,"fa-flip":e.flip===!0,"fa-flip-horizontal":e.flip==="horizontal"||e.flip==="both","fa-flip-vertical":e.flip==="vertical"||e.flip==="both"},ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(t,"fa-".concat(e.size),e.size!==null),"fa-rotate-".concat(e.rotation),e.rotation!==null),"fa-pull-".concat(e.pull),e.pull!==null),"fa-swap-opacity",e.swapOpacity),"fa-bounce",e.bounce),"fa-shake",e.shake),"fa-beat",e.beat),"fa-fade",e.fade),"fa-beat-fade",e.beatFade),"fa-flash",e.flash),ke(ke(t,"fa-spin-pulse",e.spinPulse),"fa-spin-reverse",e.spinReverse));return Object.keys(n).map(function(s){return n[s]?s:null}).filter(function(s){return s})}function ra(e){if(e&&As(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Vr.icon)return Vr.icon(e);if(e===null)return null;if(As(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}var Te=et({name:"FontAwesomeIcon",props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(t){return[!0,!1,"horizontal","vertical","both"].indexOf(t)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},maskId:{type:String,default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(t){return["right","left"].indexOf(t)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(t){return[90,180,270].indexOf(Number.parseInt(t,10))>-1}},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(t){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(t)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},titleId:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beat:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1}},setup:function(t,n){var s=n.attrs,r=Ae(function(){return ra(t.icon)}),i=Ae(function(){return dr("classes",Og(t))}),o=Ae(function(){return dr("transform",typeof t.transform=="string"?Vr.transform(t.transform):t.transform)}),a=Ae(function(){return dr("mask",ra(t.mask))}),l=Ae(function(){return gg(r.value,vt(vt(vt(vt({},i.value),o.value),a.value),{},{symbol:t.symbol,title:t.title,titleId:t.titleId,maskId:t.maskId}))});sn(l,function(f){if(!f)return Ag("Could not find one or more icon(s)",r.value,a.value)},{immediate:!0});var c=Ae(function(){return l.value?cc(l.value.abstract[0],{},s):null});return function(){return c.value}}});const Pg={prefix:"fab",iconName:"steam",icon:[496,512,[],"f1b6","M496 256c0 137-111.2 248-248.4 248-113.8 0-209.6-76.3-239-180.4l95.2 39.3c6.4 32.1 34.9 56.4 68.9 56.4 39.2 0 71.9-32.4 70.2-73.5l84.5-60.2c52.1 1.3 95.8-40.9 95.8-93.5 0-51.6-42-93.5-93.7-93.5s-93.7 42-93.7 93.5v1.2L176.6 279c-15.5-.9-30.7 3.4-43.5 12.1L0 236.1C10.2 108.4 117.1 8 247.6 8 384.8 8 496 119 496 256zM155.7 384.3l-30.5-12.6a52.79 52.79 0 0 0 27.2 25.8c26.9 11.2 57.8-1.6 69-28.4 5.4-13 5.5-27.3.1-40.3-5.4-13-15.5-23.2-28.5-28.6-12.9-5.4-26.7-5.2-38.9-.6l31.5 13c19.8 8.2 29.2 30.9 20.9 50.7-8.3 19.9-31 29.2-50.8 21zm173.8-129.9c-34.4 0-62.4-28-62.4-62.3s28-62.3 62.4-62.3 62.4 28 62.4 62.3-27.9 62.3-62.4 62.3zm.1-15.6c25.9 0 46.9-21 46.9-46.8 0-25.9-21-46.8-46.9-46.8s-46.9 21-46.9 46.8c.1 25.8 21.1 46.8 46.9 46.8z"]},Ig={class:"page"},Tg={class:"container"},Ng={class:"item"},kg={class:"flex"},Rg=["value"],Lg={class:"item"},Mg={class:"flex"},Fg=["value"],$g={class:"item"},Dg={class:"flex justify-start align-center lh-100 py-1"},zg=["checked"],jg=y("label",{for:"use-console"},"启用调试控制台",-1),Hg={class:"item"},Bg={class:"flex justify-start align-center lh-100 py-1"},Ug=["checked"],Vg=y("label",{for:"use-steam-overlay"},"启用 Steam 游戏内覆盖",-1),Wg=y("div",null,null,-1),Gg=y("hr",null,null,-1),Kg={class:"item"},Yg={key:0},Xg=["onClick"],qg=["onClick"],Jg={key:1},Qg=y("h3",{class:"gray"},"未安装",-1),Zg=[Qg],e1=y("footer",null,[ee(" LAOCHAN EACNET IS A MOD, NOT AFFILIATED WITH KONAMI"),y("br"),ee(" WE DON'T SUPPORT PIRATED GAME"),y("br"),ee(" PLEASE SUBSCRIPT TO THE GAME COURSE ")],-1),t1=et({__name:"LauncherSettingView",setup(e){const t=["beatmania IIDX INFINITAS","SOUND VOLTEX EXCEED GEAR","GITADORA"];function n(u){return window.saucer.call("shellExecute",[u.replaceAll("\\","/")])}function s(){return window.laochan.ctx.gamePaths.value}function r(u){u.target.type="text"}function i(u){u.target.type="password"}function o(u){_e.config.value&&(_e.config.value.token=u.target.value)}function a(u){_e.config.value&&(_e.config.value.serverUrl=u.target.value)}function l(u){_e.config.value&&(_e.config.value.enableConsole=u.target.checked)}function c(u){_e.config.value&&(_e.config.value.enableSteamOverlay=u.target.checked)}async function f(){await _e.saveConfig(),window.laochan.alert.show("已保存启动器设置","#40B681",2e3)}return(u,p)=>{var m,P,O,N;return J(),Z("div",Ig,[y("div",Tg,[y("h2",null,[X(E(Te),{icon:E(Ep)},null,8,["icon"]),ee(" 佬缠网设置 ")]),y("div",Ng,[y("div",kg,[y("h3",null,[X(E(Te),{icon:E(Ap)},null,8,["icon"]),ee(" 登入令牌 ")]),y("div",null,[y("button",{class:"btn link",onClick:p[0]||(p[0]=(...v)=>E(_e).resetToken&&E(_e).resetToken(...v))},"重设为机器码")])]),y("input",{class:"text-input",type:"password",value:(m=E(_e).config.value)==null?void 0:m.token,onFocus:r,onBlur:i,onInput:o},null,40,Rg)]),y("div",Lg,[y("div",Mg,[y("h3",null,[X(E(Te),{icon:E(yp)},null,8,["icon"]),ee(" Bootstrap 地址 ")]),y("div",null,[y("button",{class:"btn link",onClick:p[1]||(p[1]=(...v)=>E(_e).resetServerUrl&&E(_e).resetServerUrl(...v))},"重设为默认地址")])]),y("input",{class:"text-input",type:"text",value:(P=E(_e).config.value)==null?void 0:P.serverUrl,onInput:a},null,40,Fg)]),y("div",$g,[y("h3",null,[X(E(Te),{icon:E(xp)},null,8,["icon"]),ee(" 调试控制台 ")]),y("div",Dg,[y("input",{id:"use-console",type:"checkbox",checked:(O=E(_e).config.value)==null?void 0:O.enableConsole,onChange:l},null,40,zg),jg]),y("small",null,[X(E(Te),{icon:E(ko)},null,8,["icon"]),ee("关闭调试控制台可能可以缓解性能问题")])]),y("div",Hg,[y("h3",null,[X(E(Te),{icon:E(Pg)},null,8,["icon"]),ee(" Steam 游戏内覆盖 ")]),y("div",Bg,[y("input",{id:"use-steam-overlay",type:"checkbox",checked:(N=E(_e).config.value)==null?void 0:N.enableSteamOverlay,onChange:c},null,40,Ug),Vg]),y("small",null,[X(E(Te),{icon:E(ko)},null,8,["icon"]),ee("关闭 Steam 游戏内覆盖可能可以缓解性能问题")])]),y("div",{class:"flex"},[Wg,y("button",{class:"btn primary",onClick:f},"保存设置")]),Gg,y("h2",null,[X(E(Te),{icon:E(Cp)},null,8,["icon"]),ee(" 游戏安装详情 ")]),(J(),Z(Se,null,hs(t,(v,_)=>y("div",Kg,[y("h2",null,We(v),1),s()[_].length?(J(),Z("div",Yg,[y("h3",null,[ee("安装路径: "),y("a",{class:"path link",onClick:C=>n(s()[_][0])},We(s()[_][0]),9,Xg)]),y("h3",null,[ee("资源路径: "),y("a",{class:"path link",onClick:C=>n(s()[_][1])},We(s()[_][1]),9,qg)])])):(J(),Z("div",Jg,Zg))])),64)),e1])])}}}),nt=e=>(ri("data-v-fbd54f6b"),e=e(),ii(),e),n1={class:"page"},s1={class:"container"},r1={class:"item"},i1=["value"],o1=nt(()=>y("option",{value:"0"},"WASAPI",-1)),a1=nt(()=>y("option",{value:"1"},"ASIO",-1)),l1=[o1,a1],c1={key:0},f1={key:1},u1=["value"],d1=["value"],h1={key:0},p1={class:"item"},m1=["value"],g1=nt(()=>y("option",{value:"0"},"独占全屏",-1)),v1=nt(()=>y("option",{value:"1"},"无边框窗口",-1)),y1=nt(()=>y("option",{value:"2"},"窗口化",-1)),_1=[g1,v1,y1],b1=["value"],w1=["value"],x1={key:0},E1={key:1},S1={class:"item"},C1=["value"],A1=nt(()=>y("option",{value:"0"},"日本語",-1)),O1=nt(()=>y("option",{value:"1"},"English",-1)),P1=nt(()=>y("option",{value:"2"},"한국어",-1)),I1=[A1,O1,P1],T1={class:"item"},N1={class:"flex justify-start align-center lh-100 py-1"},k1=["checked"],R1=nt(()=>y("label",{for:"use-gsm"},"加载 2DX-GSM 模块",-1)),L1=nt(()=>y("div",null,null,-1)),M1=nt(()=>y("div",{class:"background"},null,-1)),F1=et({__name:"IIDXSettingView",setup(e){const t=pe(-5),n=pe(!1),s=pe([]),r=pe([]),i=pe(!1),o=pe(!1),a=pe(!1),l=pe(0);Cn(async()=>{await q.loadConfig(),t.value=await window.laochan.checkWasapiDevice();const{devices:N,avaliable:v}=await window.laochan.getAsioDeviceList();s.value=N,n.value=v;const _=(await window.laochan.queryDisplayModes()).sort((I,D)=>I.hz-D.hz),C=[];for(const I of _){let D=C.find(Y=>Y.height==I.height&&Y.width==I.width);D||(D={height:I.height,width:I.width,good:!1,rates:[]},C.push(D)),I.hz>59&&D.rates.push(I.hz);const M=Math.abs(I.width/I.height-1.777777777777778)<.01;if(Math.abs(I.hz-119)<=1){o.value=!0,M&&(D.good=!0);continue}if(Math.abs(I.hz-59)<=1){i.value=!0,M&&(D.good=!0);continue}}r.value=C.map(I=>(I.rates.sort((D,M)=>M-D),I)).sort((I,D)=>I.good&&!D.good?-1:!I.good&&D.good?1:D.width*D.height-I.width*I.height),l.value=r.value.findIndex(I=>{var D,M;return I.width==((D=q.config.value)==null?void 0:D.resolution.w)&&I.height==((M=q.config.value)==null?void 0:M.resolution.h)}),l.value==-1&&(l.value=0)});function c(N){q.config.value&&(q.config.value.soundMode=parseInt(N.target.value))}function f(N){q.config.value&&(q.config.value.asioDevice=N.target.value)}function u(N){q.config.value&&(q.config.value.displayMode=parseInt(N.target.value))}function p(N){if(!q.config.value)return;l.value=parseInt(N.target.value);const v=r.value[l.value];q.config.value.resolution.w=v.width,q.config.value.resolution.h=v.height}function m(N){q.config.value&&(q.config.value.language=parseInt(N.target.value))}function P(N){q.config.value&&(q.config.value.useGsm=N.target.checked)}async function O(){await q.saveConfig(),window.laochan.alert.show("已保存 IIDX 设置","#40B681",2e3)}return(N,v)=>{var _,C,I,D,M,Y,ge;return J(),Z("div",n1,[y("div",s1,[y("h2",null,[X(E(Te),{icon:E(Op)},null,8,["icon"]),ee(" INFINITAS 额外设置 ")]),y("div",r1,[y("h3",null,[X(E(Te),{icon:E(wp)},null,8,["icon"]),ee(" 音频输出模式 ")]),y("select",{class:"text-input",value:(_=E(q).config.value)==null?void 0:_.soundMode,onChange:c},l1,40,i1),t.value==1?(J(),Z("div",c1,[ee("警告: 当前选择的音频设备不支持 44100 Hz 模式输出, 可能无法正常以 WASAPI 独占模式启动, 请前往"),y("a",{onClick:v[0]||(v[0]=(...V)=>E(q).settings&&E(q).settings(...V))},"游戏设置"),ee("关闭 WASAPI 独占模式或切换输出设备。")])):Le("",!0),t.value<0?(J(),Z("div",f1,"警告: WASAPI 测试失败 ("+We(t.value)+"), 游戏很有可能无法启动。",1)):Le("",!0)]),y("div",{class:Bn(["item optional",{show:((C=E(q).config.value)==null?void 0:C.soundMode)==E(Tl).Asio}])},[y("h3",null,[X(E(Te),{icon:E(_p)},null,8,["icon"]),ee(" ASIO 输出设备 ")]),y("select",{class:"text-input",value:(I=E(q).config.value)==null?void 0:I.asioDevice,onChange:f},[(J(!0),Z(Se,null,hs(s.value,V=>(J(),Z("option",{value:V},We(V),9,d1))),256))],40,u1),n.value?Le("",!0):(J(),Z("div",h1,"警告: 未检测到有效的 ASIO 输出设备, 游戏可能无法正常启动。"))],2),y("div",p1,[y("h3",null,[X(E(Te),{icon:E(Pp)},null,8,["icon"]),ee(" 显示模式 ")]),y("select",{class:"text-input",value:(D=E(q).config.value)==null?void 0:D.displayMode,onChange:u},_1,40,m1)]),y("div",{class:Bn(["item optional",{show:((M=E(q).config.value)==null?void 0:M.displayMode)!=E(Il).BorderlessWindowed}])},[y("h3",null,[X(E(Te),{icon:E(Ip)},null,8,["icon"]),ee(" 显示分辨率 ")]),y("select",{class:"text-input",value:l.value,onChange:p},[(J(!0),Z(Se,null,hs(r.value,(V,te)=>(J(),Z("option",{value:te},[V.good?Le("",!0):(J(),Z(Se,{key:0},[ee("(不推荐)")],64)),ee(" "+We(V.width)+"x"+We(V.height)+" ( ",1),(J(!0),Z(Se,null,hs(V.rates,(ce,j)=>(J(),Z(Se,null,[ee(We(ce)+" hz",1),j!==V.rates.length-1?(J(),Z(Se,{key:0},[ee(", ")],64)):Le("",!0)],64))),256)),ee(" ) ")],8,w1))),256))],40,b1),!o.value&&a.value?(J(),Z("div",x1,"警告: 显示器不支持 120 Hz 高刷模式, 请使用显卡驱动面板或者 CRU 添加 120 Hz 的刷新率模式, 否则游戏将不会以高刷新率模式启动。")):Le("",!0),!i.value&&!o.value&&!a.value?(J(),Z("div",E1,"警告: 显示器不支持游戏所需刷新率 (60Hz/120Hz), 游戏可能出现音画不同步现象或无法启动。")):Le("",!0)],2),y("div",S1,[y("h3",null,[X(E(Te),{icon:E(bp)},null,8,["icon"]),ee(" 游戏语言 ")]),y("select",{class:"text-input",value:(Y=E(q).config.value)==null?void 0:Y.language,onChange:m},I1,40,C1)]),y("div",T1,[y("h3",null,[X(E(Te),{icon:E(vp)},null,8,["icon"]),ee(" 2DX-GSM by aixxe ")]),y("div",N1,[y("input",{id:"use-gsm",type:"checkbox",checked:(ge=E(q).config.value)==null?void 0:ge.useGsm,onChange:P},null,40,k1),R1])]),y("div",{class:"flex"},[L1,y("button",{class:"btn primary",onClick:O},"保存设置")])]),M1])}}}),$1=ut(F1,[["__scopeId","data-v-fbd54f6b"]]),D1=Ud({history:_d("/"),routes:[{path:"/",name:"home",component:gp},{path:"/settings",name:"launcher_settings",component:t1},{path:"/iidx/settings",name:"iidx_settings",component:$1}]});window.laochan={close(){window.saucer.call("close",[])},version(){return window.saucer.call("version",[])},minimize(){window.saucer.call("minimize",[])},mounted(){window.saucer.call("mounted",[])},shellExecute(e,t=""){window.saucer.call("shellExecute",[e,t])},async detectGameInstall(e){return await window.saucer.call("detectGameInstall",[e])},async readFile(e){const t=await window.saucer.call("readFile",[e]);if(t!=="")return t},writeFile(e,t){return window.saucer.call("writeFile",[e,t])},async uuid(){return await window.saucer.call("uuid",[])},setGame(e){return window.saucer.call("setGame",[e])},setParam(e,t){return window.saucer.call("setParam",[e,t])},async getAsioDeviceList(){const e=await window.saucer.call("getAsioDeviceList",[]),t=!!e.length;return t||e.push("XONAR SOUND CARD(64)"),{devices:e,avaliable:t}},checkWasapiDevice(){return window.saucer.call("checkWasapiDeviceStatus",[])},queryDisplayModes(){return window.saucer.call("queryDisplayModes",[]).then(e=>e.map(t=>{const[n,s,r]=JSON.parse(t);return{width:n,height:s,hz:r}}))},selfPath:()=>window.saucer.call("selfPath",[]),num:()=>{},ctx:{gamePaths:pe([[],[],[]])},alert:{__cb:void 0,show(e,t,n){this.__cb&&this.__cb(e,t,n)}}};(async()=>{for(let e=0;e<3;e++)window.laochan.ctx.gamePaths.value[e]=await window.laochan.detectGameInstall(e);_e.loadConfig(),q.loadConfig(),mt.loadConfig()})();const uc=ju(Mh);uc.use(D1);uc.mount("#app"); diff --git a/src/client/resources/ui-dist/index.html b/src/client/resources/ui-dist/index.html index 562fb8a..5c9f5c0 100644 --- a/src/client/resources/ui-dist/index.html +++ b/src/client/resources/ui-dist/index.html @@ -5,8 +5,8 @@ Vite App - - + +
diff --git a/src/common/utils/nt.cpp b/src/common/utils/nt.cpp index 4c76927..29e3da6 100644 --- a/src/common/utils/nt.cpp +++ b/src/common/utils/nt.cpp @@ -176,6 +176,37 @@ namespace utils::nt return result; } + std::string library::get_version(const std::string& path) + { + DWORD handle; + + auto size = GetFileVersionInfoSizeA(path.data(), &handle); + + if (!size) return {}; + + auto buffer = memory::allocate(size); + + if (!GetFileVersionInfoA(path.data(), handle, size, buffer)) + { + memory::free(buffer); + return {}; + } + + LPVOID out_buffer; + UINT out_size; + + if (!VerQueryValueA(buffer, "\\StringFileInfo\\041104b0\\ProductVersion", &out_buffer, &out_size)) + { + memory::free(buffer); + return {}; + } + + auto result = std::string{ reinterpret_cast(out_buffer) }; + + memory::free(buffer); + return result; + } + void library::free() { if (this->is_valid()) diff --git a/src/common/utils/nt.hpp b/src/common/utils/nt.hpp index 6c07e3a..1727a71 100644 --- a/src/common/utils/nt.hpp +++ b/src/common/utils/nt.hpp @@ -24,6 +24,7 @@ namespace utils::nt static library load(const std::string& name); static library load(const std::filesystem::path& path); static library get_by_address(void* address); + static std::string get_version(const std::string& name); library(); explicit library(const std::string& name);