From df0f69496ebebc12f69f9996c833470a3236fddb Mon Sep 17 00:00:00 2001 From: Jimmy Lai Date: Thu, 5 Mar 2026 19:17:55 -0800 Subject: [PATCH 01/10] Migrate docs site to App Router on Next canary --- .eslintignore | 5 - .eslintrc | 37 - .../lint-markdown-code-blocks.test.js | 53 +- eslint-local-rules/rules/metadata.js | 14 +- eslint-local-rules/rules/react-compiler.js | 16 +- eslint.config.mjs | 74 + next-env.d.ts | 4 +- next.config.js | 68 +- package.json | 35 +- scripts/buildRscWorker.mjs | 56 + .../index.tsx => scripts/validateRss.js | 6 +- .../generateRss.js => src/app/404/page.tsx | 9 +- src/app/500/page.tsx | 12 + src/app/[[...markdownPath]]/page.tsx | 49 + src/app/api/__dev-refresh/route.ts | 19 + src/app/api/md/[...path]/route.ts | 27 + src/app/error.tsx | 19 + src/app/errors/[[...errorCode]]/page.tsx | 52 + src/app/layout.tsx | 161 + src/app/llms.txt/route.ts | 16 + src/app/not-found.tsx | 12 + src/app/rss.xml/route.ts | 16 + src/components/Analytics.tsx | 69 + src/components/DevContentRefresher.tsx | 42 + src/components/DocsFooter.tsx | 4 +- src/components/ErrorDecoderProvider.tsx | 26 + src/components/Layout/Page.tsx | 33 +- src/components/Layout/Sidebar/SidebarLink.tsx | 124 +- .../Layout/Sidebar/SidebarRouteTree.tsx | 18 +- .../Layout/SidebarNav/SidebarNav.tsx | 3 + src/components/Layout/Toc.tsx | 2 + src/components/Layout/TopNav/TopNav.tsx | 12 +- src/components/Layout/getRouteMeta.tsx | 11 +- src/components/MDX/Challenges/Challenges.tsx | 64 +- src/components/MDX/Challenges/Navigation.tsx | 35 +- src/components/MDX/CodeDiagram.tsx | 3 +- src/components/MDX/ErrorDecoder.tsx | 54 +- src/components/MDX/ExpandableExample.tsx | 34 +- src/components/MDX/InlineToc.tsx | 79 + src/components/MDX/LanguageList.tsx | 55 + src/components/MDX/Link.tsx | 5 +- src/components/MDX/MDXComponents.tsx | 152 +- src/components/MDX/PackageImport.tsx | 5 +- src/components/MDX/Sandpack/Console.tsx | 4 +- src/components/MDX/Sandpack/CustomPreset.tsx | 10 +- .../MDX/Sandpack/LoadingOverlay.tsx | 24 +- src/components/MDX/Sandpack/NavigationBar.tsx | 9 +- src/components/MDX/Sandpack/Preview.tsx | 1 - src/components/MDX/Sandpack/createFileMap.ts | 6 +- src/components/MDX/Sandpack/index.tsx | 8 +- src/components/MDX/Sandpack/runESLint.tsx | 40 +- .../Sandpack/sandpack-rsc/RscFileBridge.tsx | 6 +- .../Sandpack/sandpack-rsc/generatedSources.ts | 21 + src/components/MDX/Sandpack/templateRSC.ts | 48 +- src/components/MDX/TerminalBlock.tsx | 2 + src/components/MDX/getMDXName.ts | 23 + src/components/SafariScrollHandler.tsx | 21 + src/components/Search.tsx | 58 +- src/components/Seo.tsx | 218 +- src/components/StatusPage.tsx | 83 + src/components/Tag.tsx | 5 +- src/components/ThemeScript.tsx | 64 + src/components/UwuScript.tsx | 79 + src/hooks/useLocationHash.ts | 36 + src/hooks/usePendingRoute.ts | 48 - src/instrumentation.node.ts | 52 + src/instrumentation.ts | 17 + src/pages/404.js | 36 - src/pages/500.js | 38 - src/pages/[[...markdownPath]].js | 195 - src/pages/_app.tsx | 65 - src/pages/_document.tsx | 165 - src/pages/api/md/[...path].ts | 53 - src/pages/errors/[errorCode].tsx | 160 - src/utils/compileMDX.ts | 175 - src/utils/content.tsx | 415 ++ src/utils/generateMDX.tsx | 150 + src/{pages/llms.txt.tsx => utils/llms.ts} | 96 +- src/utils/mdx/MDXNamePlugin.ts | 79 + src/utils/mdx/MaxWidthWrapperPlugin.ts | 59 + src/utils/mdx/MetaAttributesPlugin.ts | 21 + src/utils/mdx/TOCExtractorPlugin.ts | 121 + src/utils/prepareMDX.js | 124 - src/utils/rss.js | 12 +- tsconfig.json | 5 +- yarn.lock | 3331 +++++++++-------- 86 files changed, 4345 insertions(+), 3428 deletions(-) delete mode 100644 .eslintignore delete mode 100644 .eslintrc create mode 100644 eslint.config.mjs rename src/pages/errors/index.tsx => scripts/validateRss.js (60%) rename scripts/generateRss.js => src/app/404/page.tsx (59%) create mode 100644 src/app/500/page.tsx create mode 100644 src/app/[[...markdownPath]]/page.tsx create mode 100644 src/app/api/__dev-refresh/route.ts create mode 100644 src/app/api/md/[...path]/route.ts create mode 100644 src/app/error.tsx create mode 100644 src/app/errors/[[...errorCode]]/page.tsx create mode 100644 src/app/layout.tsx create mode 100644 src/app/llms.txt/route.ts create mode 100644 src/app/not-found.tsx create mode 100644 src/app/rss.xml/route.ts create mode 100644 src/components/Analytics.tsx create mode 100644 src/components/DevContentRefresher.tsx create mode 100644 src/components/ErrorDecoderProvider.tsx create mode 100644 src/components/MDX/InlineToc.tsx create mode 100644 src/components/MDX/LanguageList.tsx create mode 100644 src/components/MDX/Sandpack/sandpack-rsc/generatedSources.ts create mode 100644 src/components/MDX/getMDXName.ts create mode 100644 src/components/SafariScrollHandler.tsx create mode 100644 src/components/StatusPage.tsx create mode 100644 src/components/ThemeScript.tsx create mode 100644 src/components/UwuScript.tsx create mode 100644 src/hooks/useLocationHash.ts delete mode 100644 src/hooks/usePendingRoute.ts create mode 100644 src/instrumentation.node.ts create mode 100644 src/instrumentation.ts delete mode 100644 src/pages/404.js delete mode 100644 src/pages/500.js delete mode 100644 src/pages/[[...markdownPath]].js delete mode 100644 src/pages/_app.tsx delete mode 100644 src/pages/_document.tsx delete mode 100644 src/pages/api/md/[...path].ts delete mode 100644 src/pages/errors/[errorCode].tsx delete mode 100644 src/utils/compileMDX.ts create mode 100644 src/utils/content.tsx create mode 100644 src/utils/generateMDX.tsx rename src/{pages/llms.txt.tsx => utils/llms.ts} (62%) create mode 100644 src/utils/mdx/MDXNamePlugin.ts create mode 100644 src/utils/mdx/MaxWidthWrapperPlugin.ts create mode 100644 src/utils/mdx/MetaAttributesPlugin.ts create mode 100644 src/utils/mdx/TOCExtractorPlugin.ts delete mode 100644 src/utils/prepareMDX.js diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index ae0737173e3..00000000000 --- a/.eslintignore +++ /dev/null @@ -1,5 +0,0 @@ -scripts -plugins -next.config.js -.claude/ -worker-bundle.dist.js \ No newline at end of file diff --git a/.eslintrc b/.eslintrc deleted file mode 100644 index 7bc6ab9333b..00000000000 --- a/.eslintrc +++ /dev/null @@ -1,37 +0,0 @@ -{ - "root": true, - "extends": "next/core-web-vitals", - "parser": "@typescript-eslint/parser", - "plugins": ["@typescript-eslint", "eslint-plugin-react-compiler", "local-rules"], - "rules": { - "no-unused-vars": "off", - "@typescript-eslint/no-unused-vars": ["error", {"varsIgnorePattern": "^_"}], - "react-hooks/exhaustive-deps": "error", - "react/no-unknown-property": ["error", {"ignore": ["meta"]}], - "react-compiler/react-compiler": "error", - "local-rules/lint-markdown-code-blocks": "error" - }, - "env": { - "node": true, - "commonjs": true, - "browser": true, - "es6": true - }, - "overrides": [ - { - "files": ["src/content/**/*.md"], - "parser": "./eslint-local-rules/parser", - "parserOptions": { - "sourceType": "module" - }, - "rules": { - "no-unused-vars": "off", - "@typescript-eslint/no-unused-vars": "off", - "react-hooks/exhaustive-deps": "off", - "react/no-unknown-property": "off", - "react-compiler/react-compiler": "off", - "local-rules/lint-markdown-code-blocks": "error" - } - } - ] -} diff --git a/eslint-local-rules/__tests__/lint-markdown-code-blocks.test.js b/eslint-local-rules/__tests__/lint-markdown-code-blocks.test.js index 250e0a1e58f..3444282dbe2 100644 --- a/eslint-local-rules/__tests__/lint-markdown-code-blocks.test.js +++ b/eslint-local-rules/__tests__/lint-markdown-code-blocks.test.js @@ -11,31 +11,30 @@ const path = require('path'); const {ESLint} = require('eslint'); const plugin = require('..'); -const FIXTURES_DIR = path.join( - __dirname, - 'fixtures', - 'src', - 'content' -); +const FIXTURES_DIR = path.join(__dirname, 'fixtures', 'src', 'content'); const PARSER_PATH = path.join(__dirname, '..', 'parser.js'); function createESLint({fix = false} = {}) { return new ESLint({ - useEslintrc: false, + overrideConfigFile: true, fix, - plugins: { - 'local-rules': plugin, - }, - overrideConfig: { - parser: PARSER_PATH, - plugins: ['local-rules'], - rules: { - 'local-rules/lint-markdown-code-blocks': 'error', + overrideConfig: [ + { + files: ['**/*.md'], + languageOptions: { + parser: require(PARSER_PATH), + parserOptions: { + sourceType: 'module', + }, + }, + plugins: { + 'local-rules': plugin, + }, + rules: { + 'local-rules/lint-markdown-code-blocks': 'error', + }, }, - parserOptions: { - sourceType: 'module', - }, - }, + ], }); } @@ -53,11 +52,7 @@ async function lintFixture(name, {fix = false} = {}) { async function run() { const basicResult = await lintFixture('basic-error.md'); - assert.strictEqual( - basicResult.messages.length, - 1, - 'expected one diagnostic' - ); + assert.strictEqual(basicResult.messages.length, 1, 'expected one diagnostic'); assert( basicResult.messages[0].message.includes('Calling setState during render'), 'expected message to mention setState during render' @@ -91,9 +86,7 @@ async function run() { fix: true, }); assert( - duplicateFixed.output.includes( - "{expectedErrors: {'react-compiler': [4]}}" - ), + duplicateFixed.output.includes("{expectedErrors: {'react-compiler': [4]}}"), 'expected duplicates to be rewritten to a single canonical block' ); assert( @@ -118,14 +111,12 @@ async function run() { fix: true, }); assert( - malformedFixed.output.includes( - "{expectedErrors: {'react-compiler': [4]}}" - ), + malformedFixed.output.includes("{expectedErrors: {'react-compiler': [4]}}"), 'expected malformed metadata to be replaced with canonical form' ); } -run().catch(error => { +run().catch((error) => { console.error(error); process.exitCode = 1; }); diff --git a/eslint-local-rules/rules/metadata.js b/eslint-local-rules/rules/metadata.js index fb58a37c290..233e36b1eac 100644 --- a/eslint-local-rules/rules/metadata.js +++ b/eslint-local-rules/rules/metadata.js @@ -84,7 +84,9 @@ function parseExpectedErrorsEntries(rawEntries) { if (parsed && typeof parsed === 'object') { for (const [key, value] of Object.entries(parsed)) { - entries[key] = normalizeEntryValues(Array.isArray(value) ? value.flat() : value); + entries[key] = normalizeEntryValues( + Array.isArray(value) ? value.flat() : value + ); } } @@ -92,7 +94,9 @@ function parseExpectedErrorsEntries(rawEntries) { } function parseExpectedErrorsToken(tokenText) { - const match = tokenText.match(/^\{\s*expectedErrors\s*:\s*(\{[\s\S]*\})\s*\}$/); + const match = tokenText.match( + /^\{\s*expectedErrors\s*:\s*(\{[\s\S]*\})\s*\}$/ + ); if (!match) { return null; } @@ -103,7 +107,7 @@ function parseExpectedErrorsToken(tokenText) { try { entries = parseExpectedErrorsEntries(entriesSource); - } catch (error) { + } catch { parseError = true; entries = {}; } @@ -203,7 +207,9 @@ function cloneMetadata(metadata) { } function findExpectedErrorsToken(metadata) { - return metadata.tokens.find((token) => token.type === 'expectedErrors') || null; + return ( + metadata.tokens.find((token) => token.type === 'expectedErrors') || null + ); } function getCompilerExpectedLines(metadata) { diff --git a/eslint-local-rules/rules/react-compiler.js b/eslint-local-rules/rules/react-compiler.js index 26d3878ee8e..c820487a3bf 100644 --- a/eslint-local-rules/rules/react-compiler.js +++ b/eslint-local-rules/rules/react-compiler.js @@ -82,7 +82,7 @@ function runReactCompiler(code, filename) { configFile: false, babelrc: false, }); - } catch (error) { + } catch { return {...result, diagnostics: []}; } @@ -98,17 +98,19 @@ function runReactCompiler(code, filename) { continue; } - const loc = typeof detail.primaryLocation === 'function' - ? detail.primaryLocation() - : null; + const loc = + typeof detail.primaryLocation === 'function' + ? detail.primaryLocation() + : null; if (loc == null || typeof loc === 'symbol') { continue; } - const message = typeof detail.printErrorMessage === 'function' - ? detail.printErrorMessage(result.sourceCode, {eslint: true}) - : detail.description || 'Unknown React Compiler error'; + const message = + typeof detail.printErrorMessage === 'function' + ? detail.printErrorMessage(result.sourceCode, {eslint: true}) + : detail.description || 'Unknown React Compiler error'; diagnostics.push({detail, loc, message}); } diff --git a/eslint.config.mjs b/eslint.config.mjs new file mode 100644 index 00000000000..09bd8c7e419 --- /dev/null +++ b/eslint.config.mjs @@ -0,0 +1,74 @@ +import tseslint from 'typescript-eslint'; +import reactHooks from 'eslint-plugin-react-hooks'; +import nextCoreWebVitals from 'eslint-config-next/core-web-vitals'; +import localRules from './eslint-local-rules/index.js'; +import mdxParser from './eslint-local-rules/parser.js'; + +const config = [ + { + ignores: [ + '.next/**', + 'node_modules/**', + 'coverage/**', + 'dist/**', + 'out/**', + 'scripts/**', + 'plugins/**', + '.claude/**', + 'worker-bundle.dist.js', + 'src/components/MDX/Sandpack/sandpack-rsc/generatedSources.ts', + 'src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/**', + 'next-env.d.ts', + 'next.config.js', + ], + }, + ...nextCoreWebVitals, + { + files: ['**/*.{js,jsx,ts,tsx}'], + languageOptions: { + parser: tseslint.parser, + parserOptions: { + ecmaVersion: 'latest', + sourceType: 'module', + ecmaFeatures: { + jsx: true, + }, + }, + }, + plugins: { + '@typescript-eslint': tseslint.plugin, + 'react-hooks': reactHooks, + 'local-rules': localRules, + }, + rules: { + 'no-unused-vars': 'off', + '@typescript-eslint/no-unused-vars': ['error', {varsIgnorePattern: '^_'}], + 'react-hooks/exhaustive-deps': 'error', + 'react/no-unknown-property': ['error', {ignore: ['meta']}], + 'local-rules/lint-markdown-code-blocks': 'error', + }, + }, + { + files: ['src/content/**/*.md'], + languageOptions: { + parser: mdxParser, + parserOptions: { + sourceType: 'module', + }, + }, + plugins: { + '@typescript-eslint': tseslint.plugin, + 'react-hooks': reactHooks, + 'local-rules': localRules, + }, + rules: { + 'no-unused-vars': 'off', + '@typescript-eslint/no-unused-vars': 'off', + 'react-hooks/exhaustive-deps': 'off', + 'react/no-unknown-property': 'off', + 'local-rules/lint-markdown-code-blocks': 'error', + }, + }, +]; + +export default config; diff --git a/next-env.d.ts b/next-env.d.ts index 52e831b4342..cdb6b7b848c 100644 --- a/next-env.d.ts +++ b/next-env.d.ts @@ -1,5 +1,7 @@ /// /// +/// +import './.next/dev/types/routes.d.ts'; // NOTE: This file should not be edited -// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information. +// see https://nextjs.org/docs/app/api-reference/config/typescript for more information. diff --git a/next.config.js b/next.config.js index f8ec196e131..eb98351dee1 100644 --- a/next.config.js +++ b/next.config.js @@ -15,9 +15,10 @@ const nextConfig = { pageExtensions: ['jsx', 'js', 'ts', 'tsx', 'mdx', 'md'], reactStrictMode: true, + reactCompiler: true, + cacheComponents: true, experimental: { scrollRestoration: true, - reactCompiler: true, }, async rewrites() { return { @@ -44,58 +45,23 @@ const nextConfig = { }; }, env: {}, - webpack: (config, {dev, isServer, ...options}) => { - if (process.env.ANALYZE) { - const {BundleAnalyzerPlugin} = require('webpack-bundle-analyzer'); - config.plugins.push( - new BundleAnalyzerPlugin({ - analyzerMode: 'static', - reportFilename: options.isServer - ? '../analyze/server.html' - : './analyze/client.html', - }) - ); - } + ...(process.env.ANALYZE + ? { + webpack: (config, {isServer}) => { + const {BundleAnalyzerPlugin} = require('webpack-bundle-analyzer'); + config.plugins.push( + new BundleAnalyzerPlugin({ + analyzerMode: 'static', + reportFilename: isServer + ? '../analyze/server.html' + : './analyze/client.html', + }) + ); - // Don't bundle the shim unnecessarily. - config.resolve.alias['use-sync-external-store/shim'] = 'react'; - - // ESLint depends on the CommonJS version of esquery, - // but Webpack loads the ESM version by default. This - // alias ensures the correct version is used. - // - // More info: - // https://github.com/reactjs/react.dev/pull/8115 - config.resolve.alias['esquery'] = 'esquery/dist/esquery.min.js'; - - const {IgnorePlugin, NormalModuleReplacementPlugin} = require('webpack'); - config.plugins.push( - new NormalModuleReplacementPlugin( - /^raf$/, - require.resolve('./src/utils/rafShim.js') - ), - new NormalModuleReplacementPlugin( - /^process$/, - require.resolve('./src/utils/processShim.js') - ), - new IgnorePlugin({ - checkResource(resource, context) { - if ( - /\/eslint\/lib\/rules$/.test(context) && - /\.\/[\w-]+(\.js)?$/.test(resource) - ) { - // Skips imports of built-in rules that ESLint - // tries to carry into the bundle by default. - // We only want the engine and the React rules. - return true; - } - return false; + return config; }, - }) - ); - - return config; - }, + } + : {}), }; module.exports = nextConfig; diff --git a/package.json b/package.json index 359f30d3e21..3908896827d 100644 --- a/package.json +++ b/package.json @@ -4,12 +4,12 @@ "private": true, "license": "CC", "scripts": { - "analyze": "ANALYZE=true next build", - "dev": "next-remote-watch ./src/content", + "analyze": "ANALYZE=true next build --webpack", + "dev": "node scripts/buildRscWorker.mjs && next dev", "prebuild:rsc": "node scripts/buildRscWorker.mjs", "build": "node scripts/buildRscWorker.mjs && next build && node --experimental-modules ./scripts/downloadFonts.mjs", - "lint": "next lint && eslint \"src/content/**/*.md\"", - "lint:fix": "next lint --fix && eslint \"src/content/**/*.md\" --fix", + "lint": "eslint .", + "lint:fix": "eslint . --fix", "format:source": "prettier --config .prettierrc --write \"{plugins,src}/**/*.{js,ts,jsx,tsx,css}\"", "nit:source": "prettier --config .prettierrc --list-different \"{plugins,src}/**/*.{js,ts,jsx,tsx,css}\"", "prettier": "yarn format:source", @@ -21,7 +21,7 @@ "start": "next start", "postinstall": "yarn --cwd eslint-local-rules install && is-ci || husky install .husky", "check-all": "npm-run-all prettier lint:fix tsc rss", - "rss": "node scripts/generateRss.js", + "rss": "node scripts/validateRss.js", "deadlinks": "node scripts/deadLinkChecker.js", "copyright": "node scripts/copyright.js", "test:eslint-local-rules": "yarn --cwd eslint-local-rules test" @@ -36,10 +36,8 @@ "classnames": "^2.2.6", "debounce": "^1.2.1", "github-slugger": "^1.3.0", - "next": "15.1.12", - "next-remote-watch": "^1.0.0", + "next": "canary", "parse-numeric-range": "^1.2.0", - "raw-loader": "^4.0.2", "react": "^19.0.0", "react-collapsed": "4.0.4", "react-dom": "^19.0.0", @@ -60,24 +58,21 @@ "@types/parse-numeric-range": "^0.0.1", "@types/react": "^19.0.0", "@types/react-dom": "^19.0.0", - "@typescript-eslint/eslint-plugin": "^5.36.2", - "@typescript-eslint/parser": "^5.36.2", "asyncro": "^3.0.0", "autoprefixer": "^10.4.2", - "babel-eslint": "10.x", "babel-plugin-react-compiler": "^1.0.0", "chalk": "4.1.2", + "chokidar": "^4.0.3", "esbuild": "^0.24.0", - "eslint": "7.x", - "eslint-config-next": "12.0.3", - "eslint-config-react-app": "^5.2.1", - "eslint-plugin-flowtype": "4.x", + "eslint": "^9.39.3", + "eslint-config-next": "canary", + "eslint-linter-browserify": "^10.0.2", "eslint-plugin-import": "2.x", "eslint-plugin-jsx-a11y": "6.x", "eslint-plugin-local-rules": "link:eslint-local-rules", "eslint-plugin-react": "7.x", - "eslint-plugin-react-compiler": "^19.0.0-beta-e552027-20250112", - "eslint-plugin-react-hooks": "^0.0.0-experimental-fabef7a6b-20221215", + "eslint-plugin-react-hooks": "^7.0.1", + "eslint-plugin-react-hooks-browser": "npm:eslint-plugin-react-hooks@5.2.0", "fs-extra": "^9.0.1", "globby": "^11.0.1", "gray-matter": "^4.0.2", @@ -104,11 +99,13 @@ "rss": "^1.2.2", "tailwindcss": "^3.4.1", "typescript": "^5.7.2", + "typescript-eslint": "^8.56.1", "unist-util-visit": "^2.0.3", - "webpack-bundle-analyzer": "^4.5.0" + "webpack-bundle-analyzer": "^4.5.0", + "ws": "^8.18.3" }, "engines": { - "node": ">=16.8.0" + "node": ">=20.9.0" }, "nextBundleAnalysis": { "budget": null, diff --git a/scripts/buildRscWorker.mjs b/scripts/buildRscWorker.mjs index b02cb8f432b..01f09a04607 100644 --- a/scripts/buildRscWorker.mjs +++ b/scripts/buildRscWorker.mjs @@ -16,6 +16,10 @@ const sandboxBase = path.resolve( root, 'src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src' ); +const generatedSourcesOutfile = path.resolve( + root, + 'src/components/MDX/Sandpack/sandpack-rsc/generatedSources.ts' +); // 1. Bundle the server Worker runtime (React server build + RSDW/server.browser + Sucrase → IIFE) // Minified because this runs inside a Web Worker (not parsed by Sandpack's Babel). @@ -42,3 +46,55 @@ const shimCode = fs.readFileSync(shimPath, 'utf8'); workerCode = shimCode + '\n' + workerCode; fs.writeFileSync(workerOutfile, workerCode); + +const rawSources = { + REACT_REFRESH_INIT_SOURCE: fs.readFileSync( + path.resolve(sandboxBase, '__react_refresh_init__.js'), + 'utf8' + ), + RSC_CLIENT_SOURCE: fs.readFileSync( + path.resolve(sandboxBase, 'rsc-client.js'), + 'utf8' + ), + RSDW_CLIENT_SOURCE: fs.readFileSync( + path.resolve( + root, + 'node_modules/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.production.js' + ), + 'utf8' + ), + WEBPACK_SHIM_SOURCE: shimCode, + WORKER_BUNDLE_MODULE_SOURCE: `export default ${JSON.stringify(workerCode)};`, +}; + +const reactRefreshRaw = fs.readFileSync( + path.resolve( + root, + 'node_modules/next/dist/compiled/react-refresh/cjs/react-refresh-runtime.development.js' + ), + 'utf8' +); + +rawSources.REACT_REFRESH_RUNTIME_SOURCE = reactRefreshRaw.replace( + /if \(process\.env\.NODE_ENV !== "production"\) \{/, + '{' +); + +const generatedSourceModule = `/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +// This file is generated by scripts/buildRscWorker.mjs. + +${Object.entries(rawSources) + .map( + ([name, source]) => + `export const ${name} = ${JSON.stringify(source)} as string;` + ) + .join('\n')} +`; + +fs.writeFileSync(generatedSourcesOutfile, generatedSourceModule); diff --git a/src/pages/errors/index.tsx b/scripts/validateRss.js similarity index 60% rename from src/pages/errors/index.tsx rename to scripts/validateRss.js index 0c154039cd7..4dfc8e62679 100644 --- a/src/pages/errors/index.tsx +++ b/scripts/validateRss.js @@ -5,6 +5,6 @@ * LICENSE file in the root directory of this source tree. */ -import ErrorDecoderPage from './[errorCode]'; -export default ErrorDecoderPage; -export {getStaticProps} from './[errorCode]'; +const {validateRssFeed} = require('../src/utils/rss'); + +validateRssFeed(); diff --git a/scripts/generateRss.js b/src/app/404/page.tsx similarity index 59% rename from scripts/generateRss.js rename to src/app/404/page.tsx index 3231b1d7350..ccba2a0f342 100644 --- a/scripts/generateRss.js +++ b/src/app/404/page.tsx @@ -5,9 +5,8 @@ * LICENSE file in the root directory of this source tree. */ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - */ -const {generateRssFeed} = require('../src/utils/rss'); +import {NotFoundPage} from 'components/StatusPage'; -generateRssFeed(); +export default function FourOhFourPage() { + return ; +} diff --git a/src/app/500/page.tsx b/src/app/500/page.tsx new file mode 100644 index 00000000000..61c4572fdc6 --- /dev/null +++ b/src/app/500/page.tsx @@ -0,0 +1,12 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +import {InternalErrorPage} from 'components/StatusPage'; + +export default function FiveHundredPage() { + return ; +} diff --git a/src/app/[[...markdownPath]]/page.tsx b/src/app/[[...markdownPath]]/page.tsx new file mode 100644 index 00000000000..f8dc0bdcf47 --- /dev/null +++ b/src/app/[[...markdownPath]]/page.tsx @@ -0,0 +1,49 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +import {Page} from 'components/Layout/Page'; +import {notFound} from 'next/navigation'; +import { + getDocsPageData, + getDocsStaticParams, + MissingMarkdownContentError, +} from 'utils/content'; + +export async function generateStaticParams() { + return getDocsStaticParams(); +} + +export default async function MarkdownPage({ + params, +}: { + params: Promise<{markdownPath?: string[]}>; +}) { + const {markdownPath} = await params; + let pageData; + + try { + pageData = await getDocsPageData(markdownPath); + } catch (error) { + if (error instanceof MissingMarkdownContentError) { + notFound(); + } + + throw error; + } + + return ( + + {pageData.content} + + ); +} diff --git a/src/app/api/__dev-refresh/route.ts b/src/app/api/__dev-refresh/route.ts new file mode 100644 index 00000000000..ff4e59d9ddc --- /dev/null +++ b/src/app/api/__dev-refresh/route.ts @@ -0,0 +1,19 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +import {NextResponse} from 'next/server'; +import {revalidateTag} from 'next/cache'; +import {DEV_CONTENT_CACHE_TAG} from 'utils/content'; + +export async function POST() { + if (process.env.NODE_ENV === 'production') { + return NextResponse.json({ok: false}, {status: 404}); + } + + revalidateTag(DEV_CONTENT_CACHE_TAG, 'max'); + return NextResponse.json({ok: true}); +} diff --git a/src/app/api/md/[...path]/route.ts b/src/app/api/md/[...path]/route.ts new file mode 100644 index 00000000000..3d890d102a9 --- /dev/null +++ b/src/app/api/md/[...path]/route.ts @@ -0,0 +1,27 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +import {getMarkdownApiContent} from 'utils/content'; + +export async function GET( + _request: Request, + {params}: {params: Promise<{path?: string[]}>} +) { + const {path} = await params; + const content = await getMarkdownApiContent(path); + + if (content == null) { + return new Response('Not found', {status: 404}); + } + + return new Response(content, { + headers: { + 'Cache-Control': 'public, max-age=3600', + 'Content-Type': 'text/plain; charset=utf-8', + }, + }); +} diff --git a/src/app/error.tsx b/src/app/error.tsx new file mode 100644 index 00000000000..3e0404090c7 --- /dev/null +++ b/src/app/error.tsx @@ -0,0 +1,19 @@ +'use client'; + +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +import {InternalErrorPage} from 'components/StatusPage'; + +export default function Error({ + reset, +}: { + error: Error & {digest?: string}; + reset: () => void; +}) { + return ; +} diff --git a/src/app/errors/[[...errorCode]]/page.tsx b/src/app/errors/[[...errorCode]]/page.tsx new file mode 100644 index 00000000000..7096adc2a0a --- /dev/null +++ b/src/app/errors/[[...errorCode]]/page.tsx @@ -0,0 +1,52 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +import sidebarLearn from 'sidebarLearn.json'; +import {notFound} from 'next/navigation'; +import {ErrorDecoderProvider} from 'components/ErrorDecoderProvider'; +import {Page} from 'components/Layout/Page'; +import {getErrorPageData, getErrorStaticParams} from 'utils/content'; + +export async function generateStaticParams() { + return getErrorStaticParams(); +} + +export default async function ErrorDecoderPage({ + params, +}: { + params: Promise<{errorCode?: string[]}>; +}) { + const {errorCode} = await params; + const pageData = await getErrorPageData(errorCode); + + if (pageData == null) { + notFound(); + } + + const pathname = + pageData.errorCode == null ? '/errors' : `/errors/${pageData.errorCode}`; + + return ( + + +
{pageData.content}
+
+
+ ); +} diff --git a/src/app/layout.tsx b/src/app/layout.tsx new file mode 100644 index 00000000000..d43cab52fa4 --- /dev/null +++ b/src/app/layout.tsx @@ -0,0 +1,161 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +import {Suspense} from 'react'; +import type {Metadata, Viewport} from 'next'; +import {Analytics} from 'components/Analytics'; +import {DevContentRefresher} from 'components/DevContentRefresher'; +import {SafariScrollHandler} from 'components/SafariScrollHandler'; +import {ThemeScript} from 'components/ThemeScript'; +import {UwuScript} from 'components/UwuScript'; +import {siteConfig} from 'siteConfig'; + +import '@docsearch/css'; +import '../styles/algolia.css'; +import '../styles/index.css'; +import '../styles/sandpack.css'; + +export const viewport: Viewport = { + themeColor: [ + {media: '(prefers-color-scheme: light)', color: '#23272f'}, + {media: '(prefers-color-scheme: dark)', color: '#23272f'}, + ], +}; + +export const metadata: Metadata = { + metadataBase: new URL('https://react.dev'), + description: + 'React is the library for web and native user interfaces. Build user interfaces out of individual pieces called components written in JavaScript.', + manifest: '/site.webmanifest', + openGraph: { + images: ['/images/og-default.png'], + siteName: 'React', + type: 'website', + }, + other: { + 'fb:app_id': '623268441017527', + 'msapplication-TileColor': '#2b5797', + }, + twitter: { + card: 'summary_large_image', + creator: '@reactjs', + images: ['/images/og-default.png'], + site: '@reactjs', + }, + verification: { + google: 'sIlAGs48RulR4DdP95YSWNKZIEtCqQmRjzn-Zq-CcD0', + }, + icons: { + apple: [ + {url: '/apple-touch-icon.png', sizes: '180x180', type: 'image/png'}, + ], + icon: [ + {url: '/favicon-16x16.png', sizes: '16x16', type: 'image/png'}, + {url: '/favicon-32x32.png', sizes: '32x32', type: 'image/png'}, + ], + other: [ + {rel: 'mask-icon', url: '/safari-pinned-tab.svg', color: '#404756'}, + ], + }, +}; + +function FontPreload() { + return ( + <> + + + + + + + + + + + + ); +} + +export default function RootLayout({children}: {children: React.ReactNode}) { + return ( + + + + + + + + + {process.env.NODE_ENV !== 'production' ? : null} + {children} + + + + + + ); +} diff --git a/src/app/llms.txt/route.ts b/src/app/llms.txt/route.ts new file mode 100644 index 00000000000..89293e595eb --- /dev/null +++ b/src/app/llms.txt/route.ts @@ -0,0 +1,16 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +import {generateLlmsText} from 'utils/llms'; + +export async function GET() { + return new Response(generateLlmsText(), { + headers: { + 'Content-Type': 'text/plain; charset=utf-8', + }, + }); +} diff --git a/src/app/not-found.tsx b/src/app/not-found.tsx new file mode 100644 index 00000000000..a280c490b53 --- /dev/null +++ b/src/app/not-found.tsx @@ -0,0 +1,12 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +import {NotFoundPage} from 'components/StatusPage'; + +export default function NotFound() { + return ; +} diff --git a/src/app/rss.xml/route.ts b/src/app/rss.xml/route.ts new file mode 100644 index 00000000000..b8a13c4cc22 --- /dev/null +++ b/src/app/rss.xml/route.ts @@ -0,0 +1,16 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +import {generateRssXml} from 'utils/rss'; + +export async function GET() { + return new Response(generateRssXml(), { + headers: { + 'Content-Type': 'application/rss+xml; charset=utf-8', + }, + }); +} diff --git a/src/components/Analytics.tsx b/src/components/Analytics.tsx new file mode 100644 index 00000000000..7a0ea4aed46 --- /dev/null +++ b/src/components/Analytics.tsx @@ -0,0 +1,69 @@ +'use client'; + +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +import {useEffect} from 'react'; +import {usePathname} from 'next/navigation'; +import Script from 'next/script'; + +declare global { + interface Window { + gtag?: (...args: any[]) => void; + } +} + +export function Analytics() { + const pathname = usePathname(); + + useEffect(() => { + const terminationEvent = 'onpagehide' in window ? 'pagehide' : 'unload'; + const handleTermination = () => { + window.gtag?.('event', 'timing', { + event: 'unload', + event_label: 'JS Dependencies', + }); + }; + + window.addEventListener(terminationEvent, handleTermination); + return () => { + window.removeEventListener(terminationEvent, handleTermination); + }; + }, []); + + useEffect(() => { + if (!pathname) { + return; + } + + window.gtag?.('event', 'pageview', { + event_label: pathname, + }); + }, [pathname]); + + if (!process.env.NEXT_PUBLIC_GA_TRACKING_ID) { + return null; + } + + return ( + <> + + + ); +} diff --git a/src/components/DevContentRefresher.tsx b/src/components/DevContentRefresher.tsx new file mode 100644 index 00000000000..c3deb69f343 --- /dev/null +++ b/src/components/DevContentRefresher.tsx @@ -0,0 +1,42 @@ +'use client'; + +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +import {useEffect, useRef} from 'react'; +import {useRouter} from 'next/navigation'; + +export function DevContentRefresher() { + const router = useRouter(); + const socketRef = useRef(null); + + useEffect(() => { + const protocol = window.location.protocol === 'https:' ? 'wss' : 'ws'; + socketRef.current = new WebSocket( + `${protocol}://${window.location.hostname}:3001` + ); + + socketRef.current.addEventListener('message', (event) => { + const message = JSON.parse(event.data); + if (message.event === 'refresh') { + void (async () => { + await fetch('/api/__dev-refresh', { + method: 'POST', + }); + router.refresh(); + })(); + } + }); + + return () => { + socketRef.current?.close(); + socketRef.current = null; + }; + }, [router]); + + return null; +} diff --git a/src/components/DocsFooter.tsx b/src/components/DocsFooter.tsx index 158a5497103..37f23973ed0 100644 --- a/src/components/DocsFooter.tsx +++ b/src/components/DocsFooter.tsx @@ -38,7 +38,7 @@ export const DocsPageFooter = memo( {prevRoute?.path ? ( ) : ( @@ -48,7 +48,7 @@ export const DocsPageFooter = memo( {nextRoute?.path ? ( ) : ( diff --git a/src/components/ErrorDecoderProvider.tsx b/src/components/ErrorDecoderProvider.tsx new file mode 100644 index 00000000000..c196c8d4748 --- /dev/null +++ b/src/components/ErrorDecoderProvider.tsx @@ -0,0 +1,26 @@ +'use client'; + +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +import {ErrorDecoderContext} from './ErrorDecoderContext'; + +export function ErrorDecoderProvider({ + children, + errorCode, + errorMessage, +}: { + children: React.ReactNode; + errorCode: string | null; + errorMessage: string | null; +}) { + return ( + + {children} + + ); +} diff --git a/src/components/Layout/Page.tsx b/src/components/Layout/Page.tsx index aa39fe5fc2b..b666a1b176e 100644 --- a/src/components/Layout/Page.tsx +++ b/src/components/Layout/Page.tsx @@ -1,3 +1,5 @@ +'use client'; + /** * Copyright (c) Meta Platforms, Inc. and affiliates. * @@ -11,7 +13,6 @@ import {Suspense} from 'react'; import * as React from 'react'; -import {useRouter} from 'next/router'; import {SidebarNav} from './SidebarNav'; import {Footer} from './Footer'; import {Toc} from './Toc'; @@ -27,7 +28,6 @@ import type {RouteItem} from 'components/Layout/getRouteMeta'; import {HomeContent} from './HomeContent'; import {TopNav} from './TopNav'; import cn from 'classnames'; -import Head from 'next/head'; import(/* webpackPrefetch: true */ '../MDX/CodeBlock/CodeBlock'); @@ -41,6 +41,7 @@ interface PageProps { version?: 'experimental' | 'canary'; description?: string; }; + pathname: string; section: 'learn' | 'reference' | 'community' | 'blog' | 'home' | 'unknown'; languages?: Languages | null; } @@ -50,11 +51,11 @@ export function Page({ toc, routeTree, meta, + pathname, section, languages = null, }: PageProps) { - const {asPath} = useRouter(); - const cleanedPath = asPath.split(/[\?\#]/)[0]; + const cleanedPath = pathname.split(/[\?\#]/)[0]; const {route, nextRoute, prevRoute, breadcrumbs, order} = getRouteMeta( cleanedPath, routeTree @@ -126,6 +127,7 @@ export function Page({ return ( <> {(isHomePage || isBlogIndex) && ( - - - + )} {/* */} @@ -169,7 +172,7 @@ export function Page({
+ key={cleanedPath}> {content}
- {showToc && toc.length > 0 && } + {showToc && toc.length > 0 && ( + + )}
diff --git a/src/components/Layout/Sidebar/SidebarLink.tsx b/src/components/Layout/Sidebar/SidebarLink.tsx index 9650e95fa8f..7bcddb8676a 100644 --- a/src/components/Layout/Sidebar/SidebarLink.tsx +++ b/src/components/Layout/Sidebar/SidebarLink.tsx @@ -1,3 +1,5 @@ +'use client'; + /** * Copyright (c) Meta Platforms, Inc. and affiliates. * @@ -9,15 +11,13 @@ * Copyright (c) Facebook, Inc. and its affiliates. */ -/* eslint-disable jsx-a11y/no-static-element-interactions */ -/* eslint-disable jsx-a11y/click-events-have-key-events */ import {useRef, useEffect} from 'react'; import * as React from 'react'; import cn from 'classnames'; import {IconNavArrow} from 'components/Icon/IconNavArrow'; import {IconCanary} from 'components/Icon/IconCanary'; import {IconExperimental} from 'components/Icon/IconExperimental'; -import Link from 'next/link'; +import Link, {useLinkStatus} from 'next/link'; interface SidebarLinkProps { href: string; @@ -28,43 +28,19 @@ interface SidebarLinkProps { icon?: React.ReactNode; isExpanded?: boolean; hideArrow?: boolean; - isPending: boolean; } -export function SidebarLink({ - href, - selected = false, +function SidebarLinkContent({ + hideArrow, + isExpanded, + pending, + selected, title, version, level, - isExpanded, - hideArrow, - isPending, -}: SidebarLinkProps) { - const ref = useRef(null); - - useEffect(() => { - if (selected && ref && ref.current) { - // @ts-ignore - if (typeof ref.current.scrollIntoViewIfNeeded === 'function') { - // @ts-ignore - ref.current.scrollIntoViewIfNeeded(); - } - } - }, [ref, selected]); - - let target = ''; - if (href.startsWith('https://')) { - target = '_blank'; - } +}: Omit & {pending: boolean}) { return ( - - {/* This here needs to be refactored ofc */} -
+ {title}{' '} {version === 'major' && ( )} -
- - {isExpanded != null && !hideArrow && ( + + {isExpanded != null && !hideArrow ? ( - )} + ) : null} + + ); +} + +function PendingSidebarLinkContent(props: Omit) { + const {pending} = useLinkStatus(); + return ; +} + +export function SidebarLink({ + href, + selected = false, + title, + version, + level, + isExpanded, + hideArrow, +}: SidebarLinkProps) { + const ref = useRef(null); + + useEffect(() => { + if (selected && ref && ref.current) { + // @ts-ignore + if (typeof ref.current.scrollIntoViewIfNeeded === 'function') { + // @ts-ignore + ref.current.scrollIntoViewIfNeeded(); + } + } + }, [ref, selected]); + + let target = ''; + if (href.startsWith('https://')) { + target = '_blank'; + } + + const contentProps = { + hideArrow, + isExpanded, + level, + selected, + title, + version, + }; + + if (target === '_blank') { + return ( + + + + ); + } + + return ( + + ); } diff --git a/src/components/Layout/Sidebar/SidebarRouteTree.tsx b/src/components/Layout/Sidebar/SidebarRouteTree.tsx index 863355bfdc8..b968e441227 100644 --- a/src/components/Layout/Sidebar/SidebarRouteTree.tsx +++ b/src/components/Layout/Sidebar/SidebarRouteTree.tsx @@ -1,3 +1,5 @@ +'use client'; + /** * Copyright (c) Meta Platforms, Inc. and affiliates. * @@ -12,16 +14,15 @@ import {useRef, useLayoutEffect, Fragment} from 'react'; import cn from 'classnames'; -import {useRouter} from 'next/router'; import {SidebarLink} from './SidebarLink'; import {useCollapse} from 'react-collapsed'; -import usePendingRoute from 'hooks/usePendingRoute'; import type {RouteItem} from 'components/Layout/getRouteMeta'; import {siteConfig} from 'siteConfig'; interface SidebarRouteTreeProps { isForceExpanded: boolean; breadcrumbs: RouteItem[]; + pathname: string; routeTree: RouteItem; level?: number; } @@ -45,7 +46,6 @@ function CollapseWrapper({ // Disable pointer events while animating. const isExpandedRef = useRef(isExpanded); if (typeof window !== 'undefined') { - // eslint-disable-next-line react-compiler/react-compiler // eslint-disable-next-line react-hooks/rules-of-hooks useLayoutEffect(() => { const wasExpanded = isExpandedRef.current; @@ -81,11 +81,11 @@ function CollapseWrapper({ export function SidebarRouteTree({ isForceExpanded, breadcrumbs, + pathname, routeTree, level = 0, }: SidebarRouteTreeProps) { - const slug = useRouter().asPath.split(/[\?\#]/)[0]; - const pendingRoute = usePendingRoute(); + const slug = pathname; const currentRoutes = routeTree.routes as RouteItem[]; return (
    @@ -112,6 +112,7 @@ export function SidebarRouteTree({ isForceExpanded={isForceExpanded} routeTree={{title, routes}} breadcrumbs={[]} + pathname={pathname} /> ); } else if (routes) { @@ -125,10 +126,9 @@ export function SidebarRouteTree({ @@ -148,11 +149,10 @@ export function SidebarRouteTree({ listItem = (
  • diff --git a/src/components/Layout/SidebarNav/SidebarNav.tsx b/src/components/Layout/SidebarNav/SidebarNav.tsx index 678d483c14b..97ebb175bbb 100644 --- a/src/components/Layout/SidebarNav/SidebarNav.tsx +++ b/src/components/Layout/SidebarNav/SidebarNav.tsx @@ -25,9 +25,11 @@ declare global { export default function SidebarNav({ routeTree, breadcrumbs, + pathname, }: { routeTree: RouteItem; breadcrumbs: RouteItem[]; + pathname: string; }) { // HACK. Fix up the data structures instead. if ((routeTree as any).routes.length === 1) { @@ -57,6 +59,7 @@ export default function SidebarNav({ diff --git a/src/components/Layout/Toc.tsx b/src/components/Layout/Toc.tsx index e2e2169fd53..535957bf731 100644 --- a/src/components/Layout/Toc.tsx +++ b/src/components/Layout/Toc.tsx @@ -1,3 +1,5 @@ +'use client'; + /** * Copyright (c) Meta Platforms, Inc. and affiliates. * diff --git a/src/components/Layout/TopNav/TopNav.tsx b/src/components/Layout/TopNav/TopNav.tsx index efc90ed2c76..8f6645299b7 100644 --- a/src/components/Layout/TopNav/TopNav.tsx +++ b/src/components/Layout/TopNav/TopNav.tsx @@ -1,3 +1,5 @@ +'use client'; + /** * Copyright (c) Meta Platforms, Inc. and affiliates. * @@ -21,7 +23,6 @@ import Image from 'next/image'; import * as React from 'react'; import cn from 'classnames'; import NextLink from 'next/link'; -import {useRouter} from 'next/router'; import {disableBodyScroll, enableBodyScroll} from 'body-scroll-lock'; import {IconClose} from 'components/Icon/IconClose'; @@ -156,10 +157,12 @@ function Kbd(props: {children?: React.ReactNode; wide?: boolean}) { } export default function TopNav({ + pathname, routeTree, breadcrumbs, section, }: { + pathname: string; routeTree: RouteItem; breadcrumbs: RouteItem[]; section: 'learn' | 'reference' | 'community' | 'blog' | 'home' | 'unknown'; @@ -168,7 +171,6 @@ export default function TopNav({ const [showSearch, setShowSearch] = useState(false); const [isScrolled, setIsScrolled] = useState(false); const scrollParentRef = useRef(null); - const {asPath} = useRouter(); // HACK. Fix up the data structures instead. if ((routeTree as any).routes.length === 1) { @@ -186,11 +188,6 @@ export default function TopNav({ } }, [isMenuOpen]); - // Close the overlay on any navigation. - useEffect(() => { - setIsMenuOpen(false); - }, [asPath]); - // Also close the overlay if the window gets resized past mobile layout. // (This is also important because we don't want to keep the body locked!) useEffect(() => { @@ -442,6 +439,7 @@ export default function TopNav({ key={isMenuOpen ? 'mobile-overlay' : 'desktop-or-hidden'} routeTree={routeTree} breadcrumbs={breadcrumbs} + pathname={pathname} isForceExpanded={isMenuOpen} /> diff --git a/src/components/Layout/getRouteMeta.tsx b/src/components/Layout/getRouteMeta.tsx index 5a85a3e21b5..2083a016c7d 100644 --- a/src/components/Layout/getRouteMeta.tsx +++ b/src/components/Layout/getRouteMeta.tsx @@ -16,18 +16,13 @@ * route object that is infinitely nestable. */ -export type RouteTag = - | 'foundation' - | 'intermediate' - | 'advanced' - | 'experimental' - | 'deprecated'; +export type RouteTag = string; export interface RouteItem { /** Page title (for the sidebar) */ - title: string; + title?: string; /** Optional version flag for heading */ - version?: 'canary' | 'major'; + version?: 'canary' | 'major' | 'experimental' | 'rc'; /** Optional page description for heading */ description?: string; /* Additional meta info for page tagging */ diff --git a/src/components/MDX/Challenges/Challenges.tsx b/src/components/MDX/Challenges/Challenges.tsx index 1b5dcfb1f06..557910ece8e 100644 --- a/src/components/MDX/Challenges/Challenges.tsx +++ b/src/components/MDX/Challenges/Challenges.tsx @@ -1,3 +1,5 @@ +'use client'; + /** * Copyright (c) Meta Platforms, Inc. and affiliates. * @@ -16,7 +18,8 @@ import {H2} from 'components/MDX/Heading'; import {H4} from 'components/MDX/Heading'; import {Challenge} from './Challenge'; import {Navigation} from './Navigation'; -import {useRouter} from 'next/router'; +import {useLocationHash} from 'hooks/useLocationHash'; +import {getMDXName} from 'components/MDX/getMDXName'; interface ChallengesProps { children: React.ReactElement[]; @@ -39,19 +42,20 @@ const parseChallengeContents = ( children: React.ReactElement[] ): ChallengeContents[] => { const contents: ChallengeContents[] = []; + const flattenedChildren = flattenChallengeChildren(children); - if (!children) { + if (!flattenedChildren.length) { return contents; } let challenge: Partial = {}; - let content: React.ReactElement[] = []; - Children.forEach(children, (child) => { - const {props, type} = child as React.ReactElement<{ + let content: React.ReactNode[] = []; + Children.forEach(flattenedChildren, (child) => { + const {props} = child as React.ReactElement<{ children?: string; id?: string; }>; - switch ((type as any).mdxName) { + switch (getMDXName(child)) { case 'Solution': { challenge.solution = child; challenge.content = content; @@ -79,6 +83,31 @@ const parseChallengeContents = ( return contents; }; +function flattenChallengeChildren( + children: React.ReactNode +): React.ReactNode[] { + const flattened: React.ReactNode[] = []; + + Children.forEach(children, (child) => { + if (!React.isValidElement(child)) { + flattened.push(child); + return; + } + + if (child.type === React.Fragment) { + const fragmentChild = child as React.ReactElement<{ + children?: React.ReactNode; + }>; + flattened.push(...flattenChallengeChildren(fragmentChild.props.children)); + return; + } + + flattened.push(child); + }); + + return flattened; +} + enum QueuedScroll { INIT = 'init', NEXT = 'next', @@ -95,19 +124,16 @@ export function Challenges({ const totalChallenges = challenges.length; const scrollAnchorRef = useRef(null); const queuedScrollRef = useRef(QueuedScroll.INIT); - const [activeIndex, setActiveIndex] = useState(0); + const [selectedIndex, setSelectedIndex] = useState(0); + const hash = useLocationHash(); + const hashIndex = challenges.findIndex((challenge) => challenge.id === hash); + const activeIndex = hashIndex === -1 ? selectedIndex : hashIndex; const currentChallenge = challenges[activeIndex]; - const {asPath} = useRouter(); useEffect(() => { if (queuedScrollRef.current === QueuedScroll.INIT) { - const initIndex = challenges.findIndex( - (challenge) => challenge.id === asPath.split('#')[1] - ); - if (initIndex === -1) { + if (hashIndex === -1) { queuedScrollRef.current = undefined; - } else if (initIndex !== activeIndex) { - setActiveIndex(initIndex); } } if (queuedScrollRef.current) { @@ -119,10 +145,14 @@ export function Challenges({ }); queuedScrollRef.current = undefined; } - }, [activeIndex, asPath, challenges]); + }, [activeIndex, challenges, hashIndex]); + + if (totalChallenges === 0 || currentChallenge == null) { + return <>{children}; + } const handleChallengeChange = (index: number) => { - setActiveIndex(index); + setSelectedIndex(index); }; const Heading = isRecipes ? H4 : H2; @@ -161,7 +191,7 @@ export function Challenges({ totalChallenges={totalChallenges} hasNextChallenge={activeIndex < totalChallenges - 1} handleClickNextChallenge={() => { - setActiveIndex((i) => i + 1); + setSelectedIndex((index) => index + 1); queuedScrollRef.current = QueuedScroll.NEXT; }} /> diff --git a/src/components/MDX/Challenges/Navigation.tsx b/src/components/MDX/Challenges/Navigation.tsx index 0511bd05adc..636ea9481a1 100644 --- a/src/components/MDX/Challenges/Navigation.tsx +++ b/src/components/MDX/Challenges/Navigation.tsx @@ -9,7 +9,7 @@ * Copyright (c) Facebook, Inc. and its affiliates. */ -import {useRef, useCallback, useEffect, createRef} from 'react'; +import {useRef, useEffect, createRef, useMemo} from 'react'; import cn from 'classnames'; import {IconChevron} from 'components/Icon/IconChevron'; import {ChallengeContents} from './Challenges'; @@ -27,8 +27,9 @@ export function Navigation({ isRecipes?: boolean; }) { const containerRef = useRef(null); - const challengesNavRef = useRef( - challenges.map(() => createRef()) + const challengesNavRefs = useMemo( + () => challenges.map(() => createRef()), + [challenges] ); const scrollPos = currentChallenge.order - 1; const canScrollLeft = scrollPos > 0; @@ -36,7 +37,7 @@ export function Navigation({ const handleScrollRight = () => { if (scrollPos < challenges.length - 1) { - const currentNavRef = challengesNavRef.current[scrollPos + 1].current; + const currentNavRef = challengesNavRefs[scrollPos + 1].current; if (!currentNavRef) { return; } @@ -49,7 +50,7 @@ export function Navigation({ const handleScrollLeft = () => { if (scrollPos > 0) { - const currentNavRef = challengesNavRef.current[scrollPos - 1].current; + const currentNavRef = challengesNavRefs[scrollPos - 1].current; if (!currentNavRef) { return; } @@ -61,29 +62,27 @@ export function Navigation({ }; const handleSelectNav = (index: number) => { - const currentNavRef = challengesNavRef.current[index].current; + const currentNavRef = challengesNavRefs[index].current; if (containerRef.current) { containerRef.current.scrollLeft = currentNavRef?.offsetLeft || 0; } handleChange(index); }; - const handleResize = useCallback(() => { - if (containerRef.current) { - const el = containerRef.current; - el.scrollLeft = - challengesNavRef.current[scrollPos].current?.offsetLeft || 0; - } - }, [containerRef, challengesNavRef, scrollPos]); - useEffect(() => { - handleResize(); - const debouncedHandleResize = debounce(handleResize, 200); + const scrollToCurrentChallenge = () => { + if (containerRef.current) { + const el = containerRef.current; + el.scrollLeft = challengesNavRefs[scrollPos].current?.offsetLeft || 0; + } + }; + scrollToCurrentChallenge(); + const debouncedHandleResize = debounce(scrollToCurrentChallenge, 200); window.addEventListener('resize', debouncedHandleResize); return () => { window.removeEventListener('resize', debouncedHandleResize); }; - }, [handleResize]); + }, [challengesNavRefs, scrollPos]); return (
    @@ -104,7 +103,7 @@ export function Navigation({ )} onClick={() => handleSelectNav(index)} key={`button-${id}`} - ref={challengesNavRef.current[index]}> + ref={challengesNavRefs[index]}> {order}. {name} ))} diff --git a/src/components/MDX/CodeDiagram.tsx b/src/components/MDX/CodeDiagram.tsx index ba18ae973f4..a5eb801fa8d 100644 --- a/src/components/MDX/CodeDiagram.tsx +++ b/src/components/MDX/CodeDiagram.tsx @@ -12,6 +12,7 @@ import {Children} from 'react'; import * as React from 'react'; import CodeBlock from './CodeBlock'; +import {getMDXName} from './getMDXName'; interface CodeDiagramProps { children: React.ReactNode; @@ -23,7 +24,7 @@ export function CodeDiagram({children, flip = false}: CodeDiagramProps) { return child.type === 'img'; }); const content = Children.toArray(children).map((child: any) => { - if (child.type?.mdxName === 'pre') { + if (getMDXName(child) === 'pre') { return ( { return args; } +function subscribeToLocationSearch(onStoreChange: () => void) { + if (typeof window === 'undefined') { + return () => {}; + } + + window.addEventListener('popstate', onStoreChange); + window.addEventListener('hashchange', onStoreChange); + + return () => { + window.removeEventListener('popstate', onStoreChange); + window.removeEventListener('hashchange', onStoreChange); + }; +} + +function getLocationSearch() { + return window.location.search; +} + +function getServerLocationSearch() { + return null; +} + export default function ErrorDecoder() { const {errorMessage, errorCode} = useErrorDecoderParams(); /** error messages that contain %s require reading location.search */ const hasParams = errorMessage?.includes('%s'); - const [message, setMessage] = useState(() => - errorMessage ? urlify(errorMessage) : null + const search = useSyncExternalStore( + subscribeToLocationSearch, + getLocationSearch, + getServerLocationSearch ); + const message = useMemo(() => { + if (errorMessage == null) { + return null; + } - const [isReady, setIsReady] = useState(errorMessage == null || !hasParams); + if (!hasParams) { + return urlify(errorMessage); + } - useEffect(() => { - if (errorMessage == null || !hasParams) { - return; + if (search == null) { + return null; } - const args = parseQueryString(window.location.search); + + const args = parseQueryString(search); let message = errorMessage; if (errorCode === '418') { // Hydration errors have a %s for the diff, but we don't add that to the args for security reasons. @@ -103,9 +135,9 @@ export default function ErrorDecoder() { } } - setMessage(urlify(replaceArgs(message, args, '[missing argument]'))); - setIsReady(true); - }, [errorCode, hasParams, errorMessage]); + return urlify(replaceArgs(message, args, '[missing argument]')); + }, [errorCode, errorMessage, hasParams, search]); + const isReady = errorMessage == null || !hasParams || search != null; return ( (shouldAutoExpand); + const hash = useLocationHash(); const [isExpanded, setIsExpanded] = useState(false); - - useEffect(() => { - if (queuedExpandRef.current) { - queuedExpandRef.current = false; - setIsExpanded(true); - } - }, []); + const autoExpanded = hash === id; return (
    { - setIsExpanded(e.currentTarget!.open); + if (!autoExpanded) { + setIsExpanded(e.currentTarget!.open); + } }} className={cn( 'my-12 rounded-2xl shadow-inner-border dark:shadow-inner-border-dark relative', @@ -106,9 +102,11 @@ function ExpandableExample({children, excerpt, type}: ExpandableExampleProps) { })} onClick={() => setIsExpanded((current) => !current)}> - + - {isExpanded ? 'Hide Details' : 'Show Details'} + {isExpanded || autoExpanded ? 'Hide Details' : 'Show Details'}
    [number]; +}; + +function UL(props: HTMLAttributes) { + return
      ; +} + +function LI(props: HTMLAttributes) { + return
    • ; +} + +function calculateNestedToc(toc: ContextType) { + const currentAncestors = new Map(); + const root: NestedTocRoot = { + children: [], + item: null, + }; + + for (let index = 1; index < toc.length; index++) { + const item = toc[index]; + const currentParent = currentAncestors.get(item.depth - 1) ?? root; + const node: NestedTocNode = { + children: [], + item, + }; + + currentParent.children.push(node); + currentAncestors.set(item.depth, node); + } + + return root; +} + +function InlineTocItems({items}: {items: NestedTocNode[]}) { + return ( +
        + {items.map((node) => ( +
      • + {node.item.text} + {node.children.length > 0 ? ( + + ) : null} +
      • + ))} +
      + ); +} + +export default function InlineToc() { + const toc = useContext(TocContext); + const nestedToc = useMemo(() => calculateNestedToc(toc), [toc]); + + if (nestedToc.children.length < 2) { + return null; + } + + return ; +} diff --git a/src/components/MDX/LanguageList.tsx b/src/components/MDX/LanguageList.tsx new file mode 100644 index 00000000000..85727875862 --- /dev/null +++ b/src/components/MDX/LanguageList.tsx @@ -0,0 +1,55 @@ +'use client'; + +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +import {useContext} from 'react'; +import type {HTMLAttributes} from 'react'; +import {finishedTranslations} from 'utils/finishedTranslations'; +import Link from './Link'; +import {LanguagesContext} from './LanguagesContext'; + +type TranslationProgress = 'complete' | 'in-progress'; + +function UL(props: HTMLAttributes) { + return
        ; +} + +function LI(props: HTMLAttributes) { + return
      • ; +} + +export default function LanguageList({ + progress, +}: { + progress: TranslationProgress; +}) { + const allLanguages = useContext(LanguagesContext) ?? []; + const languages = allLanguages + .filter(({code}) => + progress === 'complete' + ? code !== 'en' && finishedTranslations.includes(code) + : code !== 'en' && !finishedTranslations.includes(code) + ) + .sort((left, right) => left.enName.localeCompare(right.enName)); + + return ( +
          + {languages.map(({code, enName, name}) => ( +
        • + + {enName} ({name}) + {' '} + —{' '} + + Contribute + +
        • + ))} +
        + ); +} diff --git a/src/components/MDX/Link.tsx b/src/components/MDX/Link.tsx index 8a47c401f2e..9abba1ad0d2 100644 --- a/src/components/MDX/Link.tsx +++ b/src/components/MDX/Link.tsx @@ -14,6 +14,7 @@ import NextLink from 'next/link'; import cn from 'classnames'; import {ExternalLink} from 'components/ExternalLink'; +import {getMDXName} from './getMDXName'; function Link({ href, @@ -24,7 +25,7 @@ function Link({ const classes = 'inline text-link dark:text-link-dark border-b border-link border-opacity-0 hover:border-opacity-100 duration-100 ease-in transition leading-normal'; const modifiedChildren = Children.toArray(children).map((child: any) => { - if (child.type?.mdxName && child.type?.mdxName === 'inlineCode') { + if (getMDXName(child) === 'code') { return cloneElement(child, { isLink: true, }); @@ -33,7 +34,6 @@ function Link({ }); if (!href) { - // eslint-disable-next-line jsx-a11y/anchor-has-content return ; } return ( @@ -43,7 +43,6 @@ function Link({ {modifiedChildren} ) : href.startsWith('#') ? ( - // eslint-disable-next-line jsx-a11y/anchor-has-content {modifiedChildren} diff --git a/src/components/MDX/MDXComponents.tsx b/src/components/MDX/MDXComponents.tsx index 334e72f3482..751350d0aa7 100644 --- a/src/components/MDX/MDXComponents.tsx +++ b/src/components/MDX/MDXComponents.tsx @@ -9,8 +9,8 @@ * Copyright (c) Facebook, Inc. and its affiliates. */ -import {Children, useContext, useMemo} from 'react'; import * as React from 'react'; +import {Children} from 'react'; import cn from 'classnames'; import type {HTMLAttributes} from 'react'; @@ -36,12 +36,9 @@ import YouWillLearnCard from './YouWillLearnCard'; import {Challenges, Hint, Solution} from './Challenges'; import {IconNavArrow} from '../Icon/IconNavArrow'; import ButtonLink from 'components/ButtonLink'; -import {TocContext} from './TocContext'; -import type {Toc, TocItem} from './TocContext'; import {TeamMember} from './TeamMember'; -import {LanguagesContext} from './LanguagesContext'; -import {finishedTranslations} from 'utils/finishedTranslations'; - +import InlineToc from './InlineToc'; +import LanguageList from './LanguageList'; import ErrorDecoder from './ErrorDecoder'; import {IconCanary} from '../Icon/IconCanary'; import {IconExperimental} from 'components/Icon/IconExperimental'; @@ -291,12 +288,6 @@ function AuthorCredit({ ); } -const IllustrationContext = React.createContext<{ - isInBlock?: boolean; -}>({ - isInBlock: false, -}); - function Illustration({ caption, src, @@ -310,8 +301,6 @@ function Illustration({ author: string; authorLink: string; }) { - const {isInBlock} = React.useContext(IllustrationContext); - return (
        @@ -327,13 +316,11 @@ function Illustration({ ) : null}
        - {!isInBlock && } +
        ); } -const isInBlockTrue = {isInBlock: true}; - function IllustrationBlock({ sequential, author, @@ -366,107 +353,20 @@ function IllustrationBlock({ )); return ( - -
        - {sequential ? ( -
          - {images.map((x: any, i: number) => ( -
        1. - {x} -
        2. - ))} -
        - ) : ( -
        {images}
        - )} - -
        -
        - ); -} - -type NestedTocRoot = { - item: null; - children: Array; -}; - -type NestedTocNode = { - item: TocItem; - children: Array; -}; - -function calculateNestedToc(toc: Toc): NestedTocRoot { - const currentAncestors = new Map(); - const root: NestedTocRoot = { - item: null, - children: [], - }; - const startIndex = 1; // Skip "Overview" - for (let i = startIndex; i < toc.length; i++) { - const item = toc[i]; - const currentParent: NestedTocNode | NestedTocRoot = - currentAncestors.get(item.depth - 1) || root; - const node: NestedTocNode = { - item, - children: [], - }; - currentParent.children.push(node); - currentAncestors.set(item.depth, node); - } - return root; -} - -function InlineToc() { - const toc = useContext(TocContext); - const root = useMemo(() => calculateNestedToc(toc), [toc]); - if (root.children.length < 2) { - return null; - } - return ; -} - -function InlineTocItem({items}: {items: Array}) { - return ( -
          - {items.map((node) => ( -
        • - {node.item.text} - {node.children.length > 0 && } -
        • - ))} -
        - ); -} - -type TranslationProgress = 'complete' | 'in-progress'; - -function LanguageList({progress}: {progress: TranslationProgress}) { - const allLanguages = React.useContext(LanguagesContext) ?? []; - const languages = allLanguages - .filter( - ({code}) => - code !== 'en' && - (progress === 'complete' - ? finishedTranslations.includes(code) - : !finishedTranslations.includes(code)) - ) - .sort((a, b) => a.enName.localeCompare(b.enName)); - return ( -
          - {languages.map(({code, name, enName}) => { - return ( -
        • - - {enName} ({name}) - {' '} - —{' '} - - Contribute - -
        • - ); - })} -
        +
        + {sequential ? ( +
          + {images.map((x: any, i: number) => ( +
        1. + {x} +
        2. + ))} +
        + ) : ( +
        {images}
        + )} + +
        ); } @@ -490,6 +390,15 @@ function Image(props: any) { return {alt}; } +export const MDXComponentsToc = { + a: Link, + CanaryBadge, + code: InlineCode, + ExperimentalBadge, + NextMajorBadge, + RSCBadge, +}; + export const MDXComponents = { p: P, strong: Strong, @@ -564,10 +473,3 @@ export const MDXComponents = { YouTubeIframe, ErrorDecoder, }; - -for (let key in MDXComponents) { - if (MDXComponents.hasOwnProperty(key)) { - const MDXComponent: any = (MDXComponents as any)[key]; - MDXComponent.mdxName = key; - } -} diff --git a/src/components/MDX/PackageImport.tsx b/src/components/MDX/PackageImport.tsx index 222353ff577..0e62e9c3308 100644 --- a/src/components/MDX/PackageImport.tsx +++ b/src/components/MDX/PackageImport.tsx @@ -12,6 +12,7 @@ import {Children} from 'react'; import * as React from 'react'; import CodeBlock from './CodeBlock'; +import {getMDXName} from './getMDXName'; interface PackageImportProps { children: React.ReactNode; @@ -19,10 +20,10 @@ interface PackageImportProps { export function PackageImport({children}: PackageImportProps) { const terminal = Children.toArray(children).filter((child: any) => { - return child.type?.mdxName !== 'pre'; + return getMDXName(child) !== 'pre'; }); const code = Children.toArray(children).map((child: any, i: number) => { - if (child.type?.mdxName === 'pre') { + if (getMDXName(child) === 'pre') { return ( { } else { try { children = JSON.stringify(msg, null, 2); - } catch (error) { + } catch { try { children = Object.prototype.toString.call(msg); - } catch (err) { + } catch { children = '[' + typeof msg + ']'; } } diff --git a/src/components/MDX/Sandpack/CustomPreset.tsx b/src/components/MDX/Sandpack/CustomPreset.tsx index 3ff1beae620..7f48cad69ac 100644 --- a/src/components/MDX/Sandpack/CustomPreset.tsx +++ b/src/components/MDX/Sandpack/CustomPreset.tsx @@ -11,7 +11,6 @@ import {memo, useRef, useState} from 'react'; import {flushSync} from 'react-dom'; import { - useSandpack, useActiveCode, SandpackCodeEditor, SandpackLayout, @@ -32,15 +31,8 @@ export const CustomPreset = memo(function CustomPreset({ showOpenInCodeSandbox?: boolean; }) { const {lintErrors, lintExtensions} = useSandpackLint(); - const {sandpack} = useSandpack(); const {code} = useActiveCode(); - const {activeFile} = sandpack; - const lineCountRef = useRef<{[key: string]: number}>({}); - if (!lineCountRef.current[activeFile]) { - // eslint-disable-next-line react-compiler/react-compiler - lineCountRef.current[activeFile] = code.split('\n').length; - } - const lineCount = lineCountRef.current[activeFile]; + const lineCount = (code ?? '').split('\n').length; const isExpandable = lineCount > 16; return ( ('HIDDEN'); - if (state !== 'LOADING' && forceLoading) { - setState('LOADING'); - } - /** * Sandpack listener */ - const sandpackIdle = sandpack.status === 'idle'; useEffect(() => { const unsubscribe = listen((message) => { if (message.type === 'done') { setState((prev) => { - return prev === 'LOADING' ? 'PRE_FADING' : 'HIDDEN'; + return forceLoading || prev === 'LOADING' ? 'PRE_FADING' : 'HIDDEN'; }); } }, clientId); @@ -116,16 +110,18 @@ const useLoadingOverlayState = ( return () => { unsubscribe(); }; - }, [listen, clientId, sandpackIdle]); + }, [clientId, forceLoading, listen]); /** * Fading transient state */ useEffect(() => { - let fadeTimeout: ReturnType; + let fadeTimeout: ReturnType | undefined; if (state === 'PRE_FADING' && !dependenciesLoading) { - setState('FADING'); + fadeTimeout = setTimeout(() => { + setState('FADING'); + }, 0); } else if (state === 'FADING') { fadeTimeout = setTimeout( () => setState('HIDDEN'), @@ -134,7 +130,9 @@ const useLoadingOverlayState = ( } return () => { - clearTimeout(fadeTimeout); + if (fadeTimeout !== undefined) { + clearTimeout(fadeTimeout); + } }; }, [state, dependenciesLoading]); @@ -146,5 +144,5 @@ const useLoadingOverlayState = ( return 'HIDDEN'; } - return state; + return forceLoading ? 'LOADING' : state; }; diff --git a/src/components/MDX/Sandpack/NavigationBar.tsx b/src/components/MDX/Sandpack/NavigationBar.tsx index 042f4b93a0e..3431b17be04 100644 --- a/src/components/MDX/Sandpack/NavigationBar.tsx +++ b/src/components/MDX/Sandpack/NavigationBar.tsx @@ -62,6 +62,7 @@ export function NavigationBar({ // We don't know whether they'll fit or not until after hydration: const [showDropdown, setShowDropdown] = useState(true); const {activeFile, setActiveFile, visibleFiles, clients} = sandpack; + const currentFile = activeFile ?? visibleFiles[0] ?? providedFiles[0] ?? ''; const clientId = Object.keys(clients)[0]; const {refresh} = useSandpackNavigation(clientId); const isMultiFile = visibleFiles.length > 1; @@ -133,7 +134,7 @@ export function NavigationBar({ {/* prettier-ignore */}
        {/* @ts-ignore: the Listbox type from '@headlessui/react' is incompatible with JSX in React 19 */} - +
        - {getFileName(activeFile)} + {getFileName(currentFile)} {isMultiFile && ( {showOpenInCodeSandbox && } - {activeFile.endsWith('.tsx') && ( + {currentFile.endsWith('.tsx') && ( )}
        diff --git a/src/components/MDX/Sandpack/Preview.tsx b/src/components/MDX/Sandpack/Preview.tsx index ead9341b6e3..8f3e1dbab0a 100644 --- a/src/components/MDX/Sandpack/Preview.tsx +++ b/src/components/MDX/Sandpack/Preview.tsx @@ -9,7 +9,6 @@ * Copyright (c) Facebook, Inc. and its affiliates. */ -// eslint-disable-next-line react-compiler/react-compiler /* eslint-disable react-hooks/exhaustive-deps */ import {useRef, useState, useEffect, useMemo, useId} from 'react'; import {useSandpack, SandpackStack} from '@codesandbox/sandpack-react/unstyled'; diff --git a/src/components/MDX/Sandpack/createFileMap.ts b/src/components/MDX/Sandpack/createFileMap.ts index 049face93e6..2c57aaafd71 100644 --- a/src/components/MDX/Sandpack/createFileMap.ts +++ b/src/components/MDX/Sandpack/createFileMap.ts @@ -11,6 +11,7 @@ import type {SandpackFile} from '@codesandbox/sandpack-react/unstyled'; import type {PropsWithChildren, ReactElement, HTMLAttributes} from 'react'; +import {getMDXName} from '../getMDXName'; export const AppJSPath = `/src/App.js`; export const StylesCSSPath = `/src/styles.css`; @@ -79,10 +80,7 @@ function splitMeta(meta: string): string[] { export const createFileMap = (codeSnippets: any) => { return codeSnippets.reduce( (result: Record, codeSnippet: React.ReactElement) => { - if ( - (codeSnippet.type as any).mdxName !== 'pre' && - codeSnippet.type !== 'pre' - ) { + if (getMDXName(codeSnippet) !== 'pre') { return result; } const {props} = ( diff --git a/src/components/MDX/Sandpack/index.tsx b/src/components/MDX/Sandpack/index.tsx index a8b802cec75..bfc24bebcd9 100644 --- a/src/components/MDX/Sandpack/index.tsx +++ b/src/components/MDX/Sandpack/index.tsx @@ -1,3 +1,5 @@ +'use client'; + /** * Copyright (c) Meta Platforms, Inc. and affiliates. * @@ -64,9 +66,9 @@ export const SandpackClient = memo(function SandpackWrapper(props: any): any { ); let activeCode; if (!activeCodeSnippet.length) { - activeCode = codeSnippet[AppJSPath].code; + activeCode = codeSnippet[AppJSPath]?.code ?? ''; } else { - activeCode = codeSnippet[activeCodeSnippet[0]].code; + activeCode = codeSnippet[activeCodeSnippet[0]]?.code ?? ''; } return ( @@ -94,7 +96,7 @@ export const SandpackRSC = memo(function SandpackRSCWrapper(props: { if (!activeCodeSnippet.length) { activeCode = codeSnippet[AppJSPath]?.code ?? ''; } else { - activeCode = codeSnippet[activeCodeSnippet[0]].code; + activeCode = codeSnippet[activeCodeSnippet[0]]?.code ?? ''; } return ( diff --git a/src/components/MDX/Sandpack/runESLint.tsx b/src/components/MDX/Sandpack/runESLint.tsx index 667b22d7eb2..24989a0f8f9 100644 --- a/src/components/MDX/Sandpack/runESLint.tsx +++ b/src/components/MDX/Sandpack/runESLint.tsx @@ -7,7 +7,7 @@ // @ts-nocheck -import {Linter} from 'eslint/lib/linter/linter'; +import {Linter} from 'eslint-linter-browserify'; import type {Diagnostic} from '@codemirror/lint'; import type {Text} from '@codemirror/text'; @@ -21,29 +21,35 @@ const getCodeMirrorPosition = ( const linter = new Linter(); -const reactRules = require('eslint-plugin-react-hooks').rules; -linter.defineRules({ - 'react-hooks/rules-of-hooks': reactRules['rules-of-hooks'], - 'react-hooks/exhaustive-deps': reactRules['exhaustive-deps'], -}); +const reactHooksPlugin = require('eslint-plugin-react-hooks-browser'); -const options = { - parserOptions: { - ecmaVersion: 12, - sourceType: 'module', - ecmaFeatures: {jsx: true}, +const options = [ + { + files: ['**/*.{js,jsx,ts,tsx}'], + plugins: { + 'react-hooks': reactHooksPlugin, + }, + languageOptions: { + ecmaVersion: 2022, + sourceType: 'module', + parserOptions: { + ecmaFeatures: {jsx: true}, + }, + }, + rules: { + 'react-hooks/rules-of-hooks': 'error', + 'react-hooks/exhaustive-deps': 'error', + }, }, - rules: { - 'react-hooks/rules-of-hooks': 'error', - 'react-hooks/exhaustive-deps': 'error', - }, -}; +]; export const runESLint = ( doc: Text ): {errors: any[]; codeMirrorErrors: Diagnostic[]} => { const codeString = doc.toString(); - const errors = linter.verify(codeString, options) as any[]; + const errors = linter.verify(codeString, options, { + filename: 'SandpackEditor.jsx', + }) as any[]; const severity = { 1: 'warning', diff --git a/src/components/MDX/Sandpack/sandpack-rsc/RscFileBridge.tsx b/src/components/MDX/Sandpack/sandpack-rsc/RscFileBridge.tsx index cca545a40d0..ee52c88d94e 100644 --- a/src/components/MDX/Sandpack/sandpack-rsc/RscFileBridge.tsx +++ b/src/components/MDX/Sandpack/sandpack-rsc/RscFileBridge.tsx @@ -17,9 +17,9 @@ export function RscFileBridge() { const {sandpack, dispatch, listen} = useSandpack(); const filesRef = useRef(sandpack.files); - // TODO: fix this with useEffectEvent - // eslint-disable-next-line react-compiler/react-compiler - filesRef.current = sandpack.files; + useEffect(() => { + filesRef.current = sandpack.files; + }, [sandpack.files]); useEffect(() => { const unsubscribe = listen((msg: any) => { diff --git a/src/components/MDX/Sandpack/sandpack-rsc/generatedSources.ts b/src/components/MDX/Sandpack/sandpack-rsc/generatedSources.ts new file mode 100644 index 00000000000..859a74e1928 --- /dev/null +++ b/src/components/MDX/Sandpack/sandpack-rsc/generatedSources.ts @@ -0,0 +1,21 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +// This file is generated by scripts/buildRscWorker.mjs. + +export const REACT_REFRESH_INIT_SOURCE = + "// Must run before React loads. Creates __REACT_DEVTOOLS_GLOBAL_HOOK__ so\n// React's renderer injects into it, enabling react-refresh to work.\nif (typeof window !== 'undefined' && !window.__REACT_DEVTOOLS_GLOBAL_HOOK__) {\n var nextID = 0;\n window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = {\n renderers: new Map(),\n supportsFiber: true,\n inject: function (injected) {\n var id = nextID++;\n this.renderers.set(id, injected);\n return id;\n },\n onScheduleFiberRoot: function () {},\n onCommitFiberRoot: function () {},\n onCommitFiberUnmount: function () {},\n };\n}\n" as string; +export const RSC_CLIENT_SOURCE = + "// RSC Client Entry Point\n// Runs inside the Sandpack iframe. Orchestrates the RSC pipeline:\n// 1. Creates a Web Worker from pre-bundled server runtime\n// 2. Receives file updates from parent (RscFileBridge) via postMessage\n// 3. Sends all user files to Worker for directive detection + compilation\n// 4. Worker compiles with Sucrase + executes, sends back Flight chunks\n// 5. Renders the Flight stream result with React\n\n// Minimal webpack shim for RSDW compatibility.\n// Works in both browser (window) and worker (self) contexts via globalThis.\n\nimport * as React from 'react';\nimport * as ReactJSXRuntime from 'react/jsx-runtime';\nimport * as ReactJSXDevRuntime from 'react/jsx-dev-runtime';\nimport {useState, startTransition, use} from 'react';\nimport {jsx} from 'react/jsx-runtime';\nimport {createRoot} from 'react-dom/client';\n\nimport rscServerForWorker from './rsc-server.js';\n\nimport './__webpack_shim__';\nimport {\n createFromReadableStream,\n encodeReply,\n} from 'react-server-dom-webpack/client.browser';\n\nimport {\n injectIntoGlobalHook,\n register as refreshRegister,\n performReactRefresh,\n isLikelyComponentType,\n} from 'react-refresh/runtime';\n\n// Patch the DevTools hook to capture renderer helpers and track roots.\n// Must run after react-dom evaluates (injects renderer) but before createRoot().\ninjectIntoGlobalHook(window);\n\nexport function initClient() {\n // Create Worker from pre-bundled server runtime\n var blob = new Blob([rscServerForWorker], {type: 'application/javascript'});\n var workerUrl = URL.createObjectURL(blob);\n var worker = new Worker(workerUrl);\n\n // Render tracking\n var nextStreamId = 0;\n var chunkControllers = {};\n var setCurrentPromise;\n var firstRender = true;\n var workerReady = false;\n var pendingFiles = null;\n\n function Root({initialPromise}) {\n var _state = useState(initialPromise);\n setCurrentPromise = _state[1];\n return use(_state[0]);\n }\n\n // Set up React root\n var initialResolve;\n var initialPromise = new Promise(function (resolve) {\n initialResolve = resolve;\n });\n\n var rootEl = document.getElementById('root');\n if (!rootEl) throw new Error('#root element not found');\n var root = createRoot(rootEl, {\n onUncaughtError: function (error) {\n var msg =\n error && error.digest\n ? error.digest\n : error && error.message\n ? error.message\n : String(error);\n console.error(msg);\n showError(msg);\n },\n });\n startTransition(function () {\n root.render(jsx(Root, {initialPromise: initialPromise}));\n });\n\n // Error overlay — rendered inside the iframe via DOM so it doesn't\n // interfere with Sandpack's parent-frame message protocol.\n function showError(message) {\n var overlay = document.getElementById('rsc-error-overlay');\n if (!overlay) {\n overlay = document.createElement('div');\n overlay.id = 'rsc-error-overlay';\n overlay.style.cssText =\n 'background:#fff;border:2px solid #c00;border-radius:8px;padding:16px;margin:20px;font-family:sans-serif;';\n var heading = document.createElement('h2');\n heading.style.cssText = 'color:#c00;margin:0 0 8px;font-size:16px;';\n heading.textContent = 'Server Error';\n overlay.appendChild(heading);\n var pre = document.createElement('pre');\n pre.style.cssText =\n 'margin:0;white-space:pre-wrap;word-break:break-word;font-size:14px;color:#222;';\n overlay.appendChild(pre);\n rootEl.parentNode.insertBefore(overlay, rootEl);\n }\n overlay.lastChild.textContent = message;\n overlay.style.display = '';\n rootEl.style.display = 'none';\n }\n\n function clearError() {\n var overlay = document.getElementById('rsc-error-overlay');\n if (overlay) overlay.style.display = 'none';\n rootEl.style.display = '';\n }\n\n // Worker message handler\n worker.onmessage = function (e) {\n var msg = e.data;\n if (msg.type === 'ready') {\n workerReady = true;\n if (pendingFiles) {\n processFiles(pendingFiles);\n pendingFiles = null;\n }\n } else if (msg.type === 'deploy-result') {\n clearError();\n // Register compiled client modules in the webpack cache before rendering\n if (msg.result && msg.result.compiledClients) {\n registerClientModules(\n msg.result.compiledClients,\n msg.result.clientEntries || {}\n );\n }\n triggerRender();\n } else if (msg.type === 'rsc-chunk') {\n handleChunk(msg);\n } else if (msg.type === 'rsc-error') {\n showError(msg.error);\n }\n };\n\n function callServer(id, args) {\n return encodeReply(args).then(function (body) {\n nextStreamId++;\n var reqId = nextStreamId;\n\n var stream = new ReadableStream({\n start: function (controller) {\n chunkControllers[reqId] = controller;\n },\n });\n\n // FormData is not structured-cloneable for postMessage.\n // Serialize to an array of entries; the worker reconstructs it.\n var encodedArgs;\n if (typeof body === 'string') {\n encodedArgs = body;\n } else {\n var entries = [];\n body.forEach(function (value, key) {\n entries.push([key, value]);\n });\n encodedArgs = {__formData: entries};\n }\n\n worker.postMessage({\n type: 'callAction',\n requestId: reqId,\n actionId: id,\n encodedArgs: encodedArgs,\n });\n\n var response = createFromReadableStream(stream, {\n callServer: callServer,\n });\n\n // Update UI with re-rendered root\n startTransition(function () {\n updateUI(\n Promise.resolve(response).then(function (v) {\n return v.root;\n })\n );\n });\n\n // Return action's return value (for useActionState support)\n return Promise.resolve(response).then(function (v) {\n return v.returnValue;\n });\n });\n }\n\n function triggerRender() {\n // Close any in-flight streams from previous renders\n Object.keys(chunkControllers).forEach(function (id) {\n try {\n chunkControllers[id].close();\n } catch (e) {}\n delete chunkControllers[id];\n });\n\n nextStreamId++;\n var reqId = nextStreamId;\n\n var stream = new ReadableStream({\n start: function (controller) {\n chunkControllers[reqId] = controller;\n },\n });\n\n worker.postMessage({type: 'render', requestId: reqId});\n\n var promise = createFromReadableStream(stream, {\n callServer: callServer,\n });\n\n updateUI(promise);\n }\n\n function handleChunk(msg) {\n var ctrl = chunkControllers[msg.requestId];\n if (!ctrl) return;\n if (msg.done) {\n ctrl.close();\n delete chunkControllers[msg.requestId];\n } else {\n ctrl.enqueue(msg.chunk);\n }\n }\n\n function updateUI(promise) {\n if (firstRender) {\n firstRender = false;\n if (initialResolve) initialResolve(promise);\n } else {\n startTransition(function () {\n if (setCurrentPromise) setCurrentPromise(promise);\n });\n }\n }\n\n // File update handler — receives raw file contents from RscFileBridge\n window.addEventListener('message', function (e) {\n var msg = e.data;\n if (msg.type !== 'rsc-file-update') return;\n if (!workerReady) {\n pendingFiles = msg.files;\n return;\n }\n processFiles(msg.files);\n });\n\n function processFiles(files) {\n console.clear();\n var userFiles = {};\n Object.keys(files).forEach(function (filePath) {\n if (!filePath.match(/\\.(js|jsx|ts|tsx)$/)) return;\n if (filePath.indexOf('node_modules') !== -1) return;\n if (filePath === '/src/index.js') return;\n if (filePath === '/src/rsc-client.js') return;\n if (filePath === '/src/rsc-server.js') return;\n if (filePath === '/src/__webpack_shim__.js') return;\n if (filePath === '/src/__react_refresh_init__.js') return;\n userFiles[filePath] = files[filePath];\n });\n worker.postMessage({\n type: 'deploy',\n files: userFiles,\n });\n }\n\n // Resolve relative paths (e.g., './Button' from '/src/Counter.js' → '/src/Button')\n function resolvePath(from, to) {\n if (!to.startsWith('.')) return to;\n var parts = from.split('/');\n parts.pop();\n var toParts = to.split('/');\n for (var i = 0; i < toParts.length; i++) {\n if (toParts[i] === '.') continue;\n if (toParts[i] === '..') {\n parts.pop();\n continue;\n }\n parts.push(toParts[i]);\n }\n return parts.join('/');\n }\n\n // Evaluate compiled client modules and register them in the webpack cache\n // so RSDW client can resolve them via __webpack_require__.\n function registerClientModules(compiledClients, clientEntries) {\n // Clear stale client modules from previous deploys\n Object.keys(globalThis.__webpack_module_cache__).forEach(function (key) {\n delete globalThis.__webpack_module_cache__[key];\n });\n\n // Store all compiled code for lazy evaluation\n var allCompiled = compiledClients;\n\n function evaluateModule(moduleId) {\n if (globalThis.__webpack_module_cache__[moduleId]) {\n var cached = globalThis.__webpack_module_cache__[moduleId];\n return cached.exports !== undefined ? cached.exports : cached;\n }\n var code = allCompiled[moduleId];\n if (!code)\n throw new Error('Client require: module \"' + moduleId + '\" not found');\n\n var mod = {exports: {}};\n // Register before evaluating to handle circular deps\n var cacheEntry = {exports: mod.exports};\n globalThis.__webpack_module_cache__[moduleId] = cacheEntry;\n\n var clientRequire = function (id) {\n if (id === 'react') return React;\n if (id === 'react/jsx-runtime') return ReactJSXRuntime;\n if (id === 'react/jsx-dev-runtime') return ReactJSXDevRuntime;\n if (id.endsWith('.css')) return {};\n var resolvedId = id.startsWith('.') ? resolvePath(moduleId, id) : id;\n var candidates = [resolvedId];\n var exts = ['.js', '.jsx', '.ts', '.tsx'];\n for (var i = 0; i < exts.length; i++) {\n candidates.push(resolvedId + exts[i]);\n }\n for (var j = 0; j < candidates.length; j++) {\n if (\n allCompiled[candidates[j]] ||\n globalThis.__webpack_module_cache__[candidates[j]]\n ) {\n return evaluateModule(candidates[j]);\n }\n }\n throw new Error('Client require: module \"' + id + '\" not found');\n };\n\n try {\n new Function('module', 'exports', 'require', 'React', code)(\n mod,\n mod.exports,\n clientRequire,\n React\n );\n } catch (err) {\n console.error('Error executing client module ' + moduleId + ':', err);\n return mod.exports;\n }\n // Update the SAME cache entry's exports (don't replace the wrapper)\n cacheEntry.exports = mod.exports;\n return mod.exports;\n }\n\n // Eagerly evaluate 'use client' entry points; their imports resolve lazily\n Object.keys(clientEntries).forEach(function (moduleId) {\n evaluateModule(moduleId);\n });\n\n // Register all evaluated components with react-refresh for Fast Refresh.\n // This creates stable \"component families\" so React can preserve state\n // across re-evaluations when component identity changes.\n Object.keys(globalThis.__webpack_module_cache__).forEach(function (\n moduleId\n ) {\n var moduleExports = globalThis.__webpack_module_cache__[moduleId];\n var exports =\n moduleExports.exports !== undefined\n ? moduleExports.exports\n : moduleExports;\n if (exports && typeof exports === 'object') {\n for (var key in exports) {\n var exportValue = exports[key];\n if (isLikelyComponentType(exportValue)) {\n refreshRegister(exportValue, moduleId + ' %exports% ' + key);\n }\n }\n }\n if (typeof exports === 'function' && isLikelyComponentType(exports)) {\n refreshRegister(exports, moduleId + ' %exports% default');\n }\n });\n\n // Tell React about updated component families so it can\n // preserve state for components whose implementation changed.\n performReactRefresh();\n }\n}\n" as string; +export const RSDW_CLIENT_SOURCE = + '/**\n * @license React\n * react-server-dom-webpack-client.browser.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n"use strict";\nvar ReactDOM = require("react-dom"),\n decoderOptions = { stream: !0 },\n hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction resolveClientReference(bundlerConfig, metadata) {\n if (bundlerConfig) {\n var moduleExports = bundlerConfig[metadata[0]];\n if ((bundlerConfig = moduleExports && moduleExports[metadata[2]]))\n moduleExports = bundlerConfig.name;\n else {\n bundlerConfig = moduleExports && moduleExports["*"];\n if (!bundlerConfig)\n throw Error(\n \'Could not find the module "\' +\n metadata[0] +\n \'" in the React Server Consumer Manifest. This is probably a bug in the React Server Components bundler.\'\n );\n moduleExports = metadata[2];\n }\n return 4 === metadata.length\n ? [bundlerConfig.id, bundlerConfig.chunks, moduleExports, 1]\n : [bundlerConfig.id, bundlerConfig.chunks, moduleExports];\n }\n return metadata;\n}\nfunction resolveServerReference(bundlerConfig, id) {\n var name = "",\n resolvedModuleData = bundlerConfig[id];\n if (resolvedModuleData) name = resolvedModuleData.name;\n else {\n var idx = id.lastIndexOf("#");\n -1 !== idx &&\n ((name = id.slice(idx + 1)),\n (resolvedModuleData = bundlerConfig[id.slice(0, idx)]));\n if (!resolvedModuleData)\n throw Error(\n \'Could not find the module "\' +\n id +\n \'" in the React Server Manifest. This is probably a bug in the React Server Components bundler.\'\n );\n }\n return resolvedModuleData.async\n ? [resolvedModuleData.id, resolvedModuleData.chunks, name, 1]\n : [resolvedModuleData.id, resolvedModuleData.chunks, name];\n}\nvar chunkCache = new Map();\nfunction requireAsyncModule(id) {\n var promise = __webpack_require__(id);\n if ("function" !== typeof promise.then || "fulfilled" === promise.status)\n return null;\n promise.then(\n function (value) {\n promise.status = "fulfilled";\n promise.value = value;\n },\n function (reason) {\n promise.status = "rejected";\n promise.reason = reason;\n }\n );\n return promise;\n}\nfunction ignoreReject() {}\nfunction preloadModule(metadata) {\n for (var chunks = metadata[1], promises = [], i = 0; i < chunks.length; ) {\n var chunkId = chunks[i++],\n chunkFilename = chunks[i++],\n entry = chunkCache.get(chunkId);\n void 0 === entry\n ? (chunkMap.set(chunkId, chunkFilename),\n (chunkFilename = __webpack_chunk_load__(chunkId)),\n promises.push(chunkFilename),\n (entry = chunkCache.set.bind(chunkCache, chunkId, null)),\n chunkFilename.then(entry, ignoreReject),\n chunkCache.set(chunkId, chunkFilename))\n : null !== entry && promises.push(entry);\n }\n return 4 === metadata.length\n ? 0 === promises.length\n ? requireAsyncModule(metadata[0])\n : Promise.all(promises).then(function () {\n return requireAsyncModule(metadata[0]);\n })\n : 0 < promises.length\n ? Promise.all(promises)\n : null;\n}\nfunction requireModule(metadata) {\n var moduleExports = __webpack_require__(metadata[0]);\n if (4 === metadata.length && "function" === typeof moduleExports.then)\n if ("fulfilled" === moduleExports.status)\n moduleExports = moduleExports.value;\n else throw moduleExports.reason;\n if ("*" === metadata[2]) return moduleExports;\n if ("" === metadata[2])\n return moduleExports.__esModule ? moduleExports.default : moduleExports;\n if (hasOwnProperty.call(moduleExports, metadata[2]))\n return moduleExports[metadata[2]];\n}\nvar chunkMap = new Map(),\n webpackGetChunkFilename = __webpack_require__.u;\n__webpack_require__.u = function (chunkId) {\n var flightChunk = chunkMap.get(chunkId);\n return void 0 !== flightChunk\n ? flightChunk\n : webpackGetChunkFilename(chunkId);\n};\nvar ReactDOMSharedInternals =\n ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),\n REACT_LAZY_TYPE = Symbol.for("react.lazy"),\n MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nfunction getIteratorFn(maybeIterable) {\n if (null === maybeIterable || "object" !== typeof maybeIterable) return null;\n maybeIterable =\n (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||\n maybeIterable["@@iterator"];\n return "function" === typeof maybeIterable ? maybeIterable : null;\n}\nvar ASYNC_ITERATOR = Symbol.asyncIterator,\n isArrayImpl = Array.isArray,\n getPrototypeOf = Object.getPrototypeOf,\n ObjectPrototype = Object.prototype,\n knownServerReferences = new WeakMap();\nfunction serializeNumber(number) {\n return Number.isFinite(number)\n ? 0 === number && -Infinity === 1 / number\n ? "$-0"\n : number\n : Infinity === number\n ? "$Infinity"\n : -Infinity === number\n ? "$-Infinity"\n : "$NaN";\n}\nfunction processReply(\n root,\n formFieldPrefix,\n temporaryReferences,\n resolve,\n reject\n) {\n function serializeTypedArray(tag, typedArray) {\n typedArray = new Blob([\n new Uint8Array(\n typedArray.buffer,\n typedArray.byteOffset,\n typedArray.byteLength\n )\n ]);\n var blobId = nextPartId++;\n null === formData && (formData = new FormData());\n formData.append(formFieldPrefix + blobId, typedArray);\n return "$" + tag + blobId.toString(16);\n }\n function serializeBinaryReader(reader) {\n function progress(entry) {\n entry.done\n ? ((entry = nextPartId++),\n data.append(formFieldPrefix + entry, new Blob(buffer)),\n data.append(\n formFieldPrefix + streamId,\n \'"$o\' + entry.toString(16) + \'"\'\n ),\n data.append(formFieldPrefix + streamId, "C"),\n pendingParts--,\n 0 === pendingParts && resolve(data))\n : (buffer.push(entry.value),\n reader.read(new Uint8Array(1024)).then(progress, reject));\n }\n null === formData && (formData = new FormData());\n var data = formData;\n pendingParts++;\n var streamId = nextPartId++,\n buffer = [];\n reader.read(new Uint8Array(1024)).then(progress, reject);\n return "$r" + streamId.toString(16);\n }\n function serializeReader(reader) {\n function progress(entry) {\n if (entry.done)\n data.append(formFieldPrefix + streamId, "C"),\n pendingParts--,\n 0 === pendingParts && resolve(data);\n else\n try {\n var partJSON = JSON.stringify(entry.value, resolveToJSON);\n data.append(formFieldPrefix + streamId, partJSON);\n reader.read().then(progress, reject);\n } catch (x) {\n reject(x);\n }\n }\n null === formData && (formData = new FormData());\n var data = formData;\n pendingParts++;\n var streamId = nextPartId++;\n reader.read().then(progress, reject);\n return "$R" + streamId.toString(16);\n }\n function serializeReadableStream(stream) {\n try {\n var binaryReader = stream.getReader({ mode: "byob" });\n } catch (x) {\n return serializeReader(stream.getReader());\n }\n return serializeBinaryReader(binaryReader);\n }\n function serializeAsyncIterable(iterable, iterator) {\n function progress(entry) {\n if (entry.done) {\n if (void 0 === entry.value)\n data.append(formFieldPrefix + streamId, "C");\n else\n try {\n var partJSON = JSON.stringify(entry.value, resolveToJSON);\n data.append(formFieldPrefix + streamId, "C" + partJSON);\n } catch (x) {\n reject(x);\n return;\n }\n pendingParts--;\n 0 === pendingParts && resolve(data);\n } else\n try {\n var partJSON$21 = JSON.stringify(entry.value, resolveToJSON);\n data.append(formFieldPrefix + streamId, partJSON$21);\n iterator.next().then(progress, reject);\n } catch (x$22) {\n reject(x$22);\n }\n }\n null === formData && (formData = new FormData());\n var data = formData;\n pendingParts++;\n var streamId = nextPartId++;\n iterable = iterable === iterator;\n iterator.next().then(progress, reject);\n return "$" + (iterable ? "x" : "X") + streamId.toString(16);\n }\n function resolveToJSON(key, value) {\n if (null === value) return null;\n if ("object" === typeof value) {\n switch (value.$$typeof) {\n case REACT_ELEMENT_TYPE:\n if (void 0 !== temporaryReferences && -1 === key.indexOf(":")) {\n var parentReference = writtenObjects.get(this);\n if (void 0 !== parentReference)\n return (\n temporaryReferences.set(parentReference + ":" + key, value),\n "$T"\n );\n }\n throw Error(\n "React Element cannot be passed to Server Functions from the Client without a temporary reference set. Pass a TemporaryReferenceSet to the options."\n );\n case REACT_LAZY_TYPE:\n parentReference = value._payload;\n var init = value._init;\n null === formData && (formData = new FormData());\n pendingParts++;\n try {\n var resolvedModel = init(parentReference),\n lazyId = nextPartId++,\n partJSON = serializeModel(resolvedModel, lazyId);\n formData.append(formFieldPrefix + lazyId, partJSON);\n return "$" + lazyId.toString(16);\n } catch (x) {\n if (\n "object" === typeof x &&\n null !== x &&\n "function" === typeof x.then\n ) {\n pendingParts++;\n var lazyId$23 = nextPartId++;\n parentReference = function () {\n try {\n var partJSON$24 = serializeModel(value, lazyId$23),\n data$25 = formData;\n data$25.append(formFieldPrefix + lazyId$23, partJSON$24);\n pendingParts--;\n 0 === pendingParts && resolve(data$25);\n } catch (reason) {\n reject(reason);\n }\n };\n x.then(parentReference, parentReference);\n return "$" + lazyId$23.toString(16);\n }\n reject(x);\n return null;\n } finally {\n pendingParts--;\n }\n }\n parentReference = writtenObjects.get(value);\n if ("function" === typeof value.then) {\n if (void 0 !== parentReference)\n if (modelRoot === value) modelRoot = null;\n else return parentReference;\n null === formData && (formData = new FormData());\n pendingParts++;\n var promiseId = nextPartId++;\n key = "$@" + promiseId.toString(16);\n writtenObjects.set(value, key);\n value.then(function (partValue) {\n try {\n var previousReference = writtenObjects.get(partValue);\n var partJSON$27 =\n void 0 !== previousReference\n ? JSON.stringify(previousReference)\n : serializeModel(partValue, promiseId);\n partValue = formData;\n partValue.append(formFieldPrefix + promiseId, partJSON$27);\n pendingParts--;\n 0 === pendingParts && resolve(partValue);\n } catch (reason) {\n reject(reason);\n }\n }, reject);\n return key;\n }\n if (void 0 !== parentReference)\n if (modelRoot === value) modelRoot = null;\n else return parentReference;\n else\n -1 === key.indexOf(":") &&\n ((parentReference = writtenObjects.get(this)),\n void 0 !== parentReference &&\n ((key = parentReference + ":" + key),\n writtenObjects.set(value, key),\n void 0 !== temporaryReferences &&\n temporaryReferences.set(key, value)));\n if (isArrayImpl(value)) return value;\n if (value instanceof FormData) {\n null === formData && (formData = new FormData());\n var data$31 = formData;\n key = nextPartId++;\n var prefix = formFieldPrefix + key + "_";\n value.forEach(function (originalValue, originalKey) {\n data$31.append(prefix + originalKey, originalValue);\n });\n return "$K" + key.toString(16);\n }\n if (value instanceof Map)\n return (\n (key = nextPartId++),\n (parentReference = serializeModel(Array.from(value), key)),\n null === formData && (formData = new FormData()),\n formData.append(formFieldPrefix + key, parentReference),\n "$Q" + key.toString(16)\n );\n if (value instanceof Set)\n return (\n (key = nextPartId++),\n (parentReference = serializeModel(Array.from(value), key)),\n null === formData && (formData = new FormData()),\n formData.append(formFieldPrefix + key, parentReference),\n "$W" + key.toString(16)\n );\n if (value instanceof ArrayBuffer)\n return (\n (key = new Blob([value])),\n (parentReference = nextPartId++),\n null === formData && (formData = new FormData()),\n formData.append(formFieldPrefix + parentReference, key),\n "$A" + parentReference.toString(16)\n );\n if (value instanceof Int8Array) return serializeTypedArray("O", value);\n if (value instanceof Uint8Array) return serializeTypedArray("o", value);\n if (value instanceof Uint8ClampedArray)\n return serializeTypedArray("U", value);\n if (value instanceof Int16Array) return serializeTypedArray("S", value);\n if (value instanceof Uint16Array) return serializeTypedArray("s", value);\n if (value instanceof Int32Array) return serializeTypedArray("L", value);\n if (value instanceof Uint32Array) return serializeTypedArray("l", value);\n if (value instanceof Float32Array) return serializeTypedArray("G", value);\n if (value instanceof Float64Array) return serializeTypedArray("g", value);\n if (value instanceof BigInt64Array)\n return serializeTypedArray("M", value);\n if (value instanceof BigUint64Array)\n return serializeTypedArray("m", value);\n if (value instanceof DataView) return serializeTypedArray("V", value);\n if ("function" === typeof Blob && value instanceof Blob)\n return (\n null === formData && (formData = new FormData()),\n (key = nextPartId++),\n formData.append(formFieldPrefix + key, value),\n "$B" + key.toString(16)\n );\n if ((key = getIteratorFn(value)))\n return (\n (parentReference = key.call(value)),\n parentReference === value\n ? ((key = nextPartId++),\n (parentReference = serializeModel(\n Array.from(parentReference),\n key\n )),\n null === formData && (formData = new FormData()),\n formData.append(formFieldPrefix + key, parentReference),\n "$i" + key.toString(16))\n : Array.from(parentReference)\n );\n if (\n "function" === typeof ReadableStream &&\n value instanceof ReadableStream\n )\n return serializeReadableStream(value);\n key = value[ASYNC_ITERATOR];\n if ("function" === typeof key)\n return serializeAsyncIterable(value, key.call(value));\n key = getPrototypeOf(value);\n if (\n key !== ObjectPrototype &&\n (null === key || null !== getPrototypeOf(key))\n ) {\n if (void 0 === temporaryReferences)\n throw Error(\n "Only plain objects, and a few built-ins, can be passed to Server Functions. Classes or null prototypes are not supported."\n );\n return "$T";\n }\n return value;\n }\n if ("string" === typeof value) {\n if ("Z" === value[value.length - 1] && this[key] instanceof Date)\n return "$D" + value;\n key = "$" === value[0] ? "$" + value : value;\n return key;\n }\n if ("boolean" === typeof value) return value;\n if ("number" === typeof value) return serializeNumber(value);\n if ("undefined" === typeof value) return "$undefined";\n if ("function" === typeof value) {\n parentReference = knownServerReferences.get(value);\n if (void 0 !== parentReference) {\n key = writtenObjects.get(value);\n if (void 0 !== key) return key;\n key = JSON.stringify(\n { id: parentReference.id, bound: parentReference.bound },\n resolveToJSON\n );\n null === formData && (formData = new FormData());\n parentReference = nextPartId++;\n formData.set(formFieldPrefix + parentReference, key);\n key = "$h" + parentReference.toString(16);\n writtenObjects.set(value, key);\n return key;\n }\n if (\n void 0 !== temporaryReferences &&\n -1 === key.indexOf(":") &&\n ((parentReference = writtenObjects.get(this)),\n void 0 !== parentReference)\n )\n return (\n temporaryReferences.set(parentReference + ":" + key, value), "$T"\n );\n throw Error(\n "Client Functions cannot be passed directly to Server Functions. Only Functions passed from the Server can be passed back again."\n );\n }\n if ("symbol" === typeof value) {\n if (\n void 0 !== temporaryReferences &&\n -1 === key.indexOf(":") &&\n ((parentReference = writtenObjects.get(this)),\n void 0 !== parentReference)\n )\n return (\n temporaryReferences.set(parentReference + ":" + key, value), "$T"\n );\n throw Error(\n "Symbols cannot be passed to a Server Function without a temporary reference set. Pass a TemporaryReferenceSet to the options."\n );\n }\n if ("bigint" === typeof value) return "$n" + value.toString(10);\n throw Error(\n "Type " +\n typeof value +\n " is not supported as an argument to a Server Function."\n );\n }\n function serializeModel(model, id) {\n "object" === typeof model &&\n null !== model &&\n ((id = "$" + id.toString(16)),\n writtenObjects.set(model, id),\n void 0 !== temporaryReferences && temporaryReferences.set(id, model));\n modelRoot = model;\n return JSON.stringify(model, resolveToJSON);\n }\n var nextPartId = 1,\n pendingParts = 0,\n formData = null,\n writtenObjects = new WeakMap(),\n modelRoot = root,\n json = serializeModel(root, 0);\n null === formData\n ? resolve(json)\n : (formData.set(formFieldPrefix + "0", json),\n 0 === pendingParts && resolve(formData));\n return function () {\n 0 < pendingParts &&\n ((pendingParts = 0),\n null === formData ? resolve(json) : resolve(formData));\n };\n}\nfunction registerBoundServerReference(reference, id, bound) {\n knownServerReferences.has(reference) ||\n knownServerReferences.set(reference, {\n id: id,\n originalBind: reference.bind,\n bound: bound\n });\n}\nfunction createBoundServerReference(metaData, callServer) {\n function action() {\n var args = Array.prototype.slice.call(arguments);\n return bound\n ? "fulfilled" === bound.status\n ? callServer(id, bound.value.concat(args))\n : Promise.resolve(bound).then(function (boundArgs) {\n return callServer(id, boundArgs.concat(args));\n })\n : callServer(id, args);\n }\n var id = metaData.id,\n bound = metaData.bound;\n registerBoundServerReference(action, id, bound);\n return action;\n}\nfunction ReactPromise(status, value, reason) {\n this.status = status;\n this.value = value;\n this.reason = reason;\n}\nReactPromise.prototype = Object.create(Promise.prototype);\nReactPromise.prototype.then = function (resolve, reject) {\n switch (this.status) {\n case "resolved_model":\n initializeModelChunk(this);\n break;\n case "resolved_module":\n initializeModuleChunk(this);\n }\n switch (this.status) {\n case "fulfilled":\n "function" === typeof resolve && resolve(this.value);\n break;\n case "pending":\n case "blocked":\n "function" === typeof resolve &&\n (null === this.value && (this.value = []), this.value.push(resolve));\n "function" === typeof reject &&\n (null === this.reason && (this.reason = []), this.reason.push(reject));\n break;\n case "halted":\n break;\n default:\n "function" === typeof reject && reject(this.reason);\n }\n};\nfunction readChunk(chunk) {\n switch (chunk.status) {\n case "resolved_model":\n initializeModelChunk(chunk);\n break;\n case "resolved_module":\n initializeModuleChunk(chunk);\n }\n switch (chunk.status) {\n case "fulfilled":\n return chunk.value;\n case "pending":\n case "blocked":\n case "halted":\n throw chunk;\n default:\n throw chunk.reason;\n }\n}\nfunction wakeChunk(listeners, value, chunk) {\n for (var i = 0; i < listeners.length; i++) {\n var listener = listeners[i];\n "function" === typeof listener\n ? listener(value)\n : fulfillReference(listener, value, chunk);\n }\n}\nfunction rejectChunk(listeners, error) {\n for (var i = 0; i < listeners.length; i++) {\n var listener = listeners[i];\n "function" === typeof listener\n ? listener(error)\n : rejectReference(listener, error);\n }\n}\nfunction resolveBlockedCycle(resolvedChunk, reference) {\n var referencedChunk = reference.handler.chunk;\n if (null === referencedChunk) return null;\n if (referencedChunk === resolvedChunk) return reference.handler;\n reference = referencedChunk.value;\n if (null !== reference)\n for (\n referencedChunk = 0;\n referencedChunk < reference.length;\n referencedChunk++\n ) {\n var listener = reference[referencedChunk];\n if (\n "function" !== typeof listener &&\n ((listener = resolveBlockedCycle(resolvedChunk, listener)),\n null !== listener)\n )\n return listener;\n }\n return null;\n}\nfunction wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) {\n switch (chunk.status) {\n case "fulfilled":\n wakeChunk(resolveListeners, chunk.value, chunk);\n break;\n case "blocked":\n for (var i = 0; i < resolveListeners.length; i++) {\n var listener = resolveListeners[i];\n if ("function" !== typeof listener) {\n var cyclicHandler = resolveBlockedCycle(chunk, listener);\n if (null !== cyclicHandler)\n switch (\n (fulfillReference(listener, cyclicHandler.value, chunk),\n resolveListeners.splice(i, 1),\n i--,\n null !== rejectListeners &&\n ((listener = rejectListeners.indexOf(listener)),\n -1 !== listener && rejectListeners.splice(listener, 1)),\n chunk.status)\n ) {\n case "fulfilled":\n wakeChunk(resolveListeners, chunk.value, chunk);\n return;\n case "rejected":\n null !== rejectListeners &&\n rejectChunk(rejectListeners, chunk.reason);\n return;\n }\n }\n }\n case "pending":\n if (chunk.value)\n for (i = 0; i < resolveListeners.length; i++)\n chunk.value.push(resolveListeners[i]);\n else chunk.value = resolveListeners;\n if (chunk.reason) {\n if (rejectListeners)\n for (\n resolveListeners = 0;\n resolveListeners < rejectListeners.length;\n resolveListeners++\n )\n chunk.reason.push(rejectListeners[resolveListeners]);\n } else chunk.reason = rejectListeners;\n break;\n case "rejected":\n rejectListeners && rejectChunk(rejectListeners, chunk.reason);\n }\n}\nfunction triggerErrorOnChunk(response, chunk, error) {\n "pending" !== chunk.status && "blocked" !== chunk.status\n ? chunk.reason.error(error)\n : ((response = chunk.reason),\n (chunk.status = "rejected"),\n (chunk.reason = error),\n null !== response && rejectChunk(response, error));\n}\nfunction createResolvedIteratorResultChunk(response, value, done) {\n return new ReactPromise(\n "resolved_model",\n (done ? \'{"done":true,"value":\' : \'{"done":false,"value":\') + value + "}",\n response\n );\n}\nfunction resolveIteratorResultChunk(response, chunk, value, done) {\n resolveModelChunk(\n response,\n chunk,\n (done ? \'{"done":true,"value":\' : \'{"done":false,"value":\') + value + "}"\n );\n}\nfunction resolveModelChunk(response, chunk, value) {\n if ("pending" !== chunk.status) chunk.reason.enqueueModel(value);\n else {\n var resolveListeners = chunk.value,\n rejectListeners = chunk.reason;\n chunk.status = "resolved_model";\n chunk.value = value;\n chunk.reason = response;\n null !== resolveListeners &&\n (initializeModelChunk(chunk),\n wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners));\n }\n}\nfunction resolveModuleChunk(response, chunk, value) {\n if ("pending" === chunk.status || "blocked" === chunk.status) {\n response = chunk.value;\n var rejectListeners = chunk.reason;\n chunk.status = "resolved_module";\n chunk.value = value;\n chunk.reason = null;\n null !== response &&\n (initializeModuleChunk(chunk),\n wakeChunkIfInitialized(chunk, response, rejectListeners));\n }\n}\nvar initializingHandler = null;\nfunction initializeModelChunk(chunk) {\n var prevHandler = initializingHandler;\n initializingHandler = null;\n var resolvedModel = chunk.value,\n response = chunk.reason;\n chunk.status = "blocked";\n chunk.value = null;\n chunk.reason = null;\n try {\n var value = JSON.parse(resolvedModel, response._fromJSON),\n resolveListeners = chunk.value;\n if (null !== resolveListeners)\n for (\n chunk.value = null, chunk.reason = null, resolvedModel = 0;\n resolvedModel < resolveListeners.length;\n resolvedModel++\n ) {\n var listener = resolveListeners[resolvedModel];\n "function" === typeof listener\n ? listener(value)\n : fulfillReference(listener, value, chunk);\n }\n if (null !== initializingHandler) {\n if (initializingHandler.errored) throw initializingHandler.reason;\n if (0 < initializingHandler.deps) {\n initializingHandler.value = value;\n initializingHandler.chunk = chunk;\n return;\n }\n }\n chunk.status = "fulfilled";\n chunk.value = value;\n } catch (error) {\n (chunk.status = "rejected"), (chunk.reason = error);\n } finally {\n initializingHandler = prevHandler;\n }\n}\nfunction initializeModuleChunk(chunk) {\n try {\n var value = requireModule(chunk.value);\n chunk.status = "fulfilled";\n chunk.value = value;\n } catch (error) {\n (chunk.status = "rejected"), (chunk.reason = error);\n }\n}\nfunction reportGlobalError(weakResponse, error) {\n weakResponse._closed = !0;\n weakResponse._closedReason = error;\n weakResponse._chunks.forEach(function (chunk) {\n "pending" === chunk.status\n ? triggerErrorOnChunk(weakResponse, chunk, error)\n : "fulfilled" === chunk.status &&\n null !== chunk.reason &&\n chunk.reason.error(error);\n });\n}\nfunction createLazyChunkWrapper(chunk) {\n return { $$typeof: REACT_LAZY_TYPE, _payload: chunk, _init: readChunk };\n}\nfunction getChunk(response, id) {\n var chunks = response._chunks,\n chunk = chunks.get(id);\n chunk ||\n ((chunk = response._closed\n ? new ReactPromise("rejected", null, response._closedReason)\n : new ReactPromise("pending", null, null)),\n chunks.set(id, chunk));\n return chunk;\n}\nfunction fulfillReference(reference, value) {\n var response = reference.response,\n handler = reference.handler,\n parentObject = reference.parentObject,\n key = reference.key,\n map = reference.map,\n path = reference.path;\n try {\n for (var i = 1; i < path.length; i++) {\n for (\n ;\n "object" === typeof value &&\n null !== value &&\n value.$$typeof === REACT_LAZY_TYPE;\n\n ) {\n var referencedChunk = value._payload;\n if (referencedChunk === handler.chunk) value = handler.value;\n else {\n switch (referencedChunk.status) {\n case "resolved_model":\n initializeModelChunk(referencedChunk);\n break;\n case "resolved_module":\n initializeModuleChunk(referencedChunk);\n }\n switch (referencedChunk.status) {\n case "fulfilled":\n value = referencedChunk.value;\n continue;\n case "blocked":\n var cyclicHandler = resolveBlockedCycle(\n referencedChunk,\n reference\n );\n if (null !== cyclicHandler) {\n value = cyclicHandler.value;\n continue;\n }\n case "pending":\n path.splice(0, i - 1);\n null === referencedChunk.value\n ? (referencedChunk.value = [reference])\n : referencedChunk.value.push(reference);\n null === referencedChunk.reason\n ? (referencedChunk.reason = [reference])\n : referencedChunk.reason.push(reference);\n return;\n case "halted":\n return;\n default:\n rejectReference(reference, referencedChunk.reason);\n return;\n }\n }\n }\n var name = path[i];\n if (\n "object" === typeof value &&\n null !== value &&\n hasOwnProperty.call(value, name)\n )\n value = value[name];\n else throw Error("Invalid reference.");\n }\n for (\n ;\n "object" === typeof value &&\n null !== value &&\n value.$$typeof === REACT_LAZY_TYPE;\n\n ) {\n var referencedChunk$44 = value._payload;\n if (referencedChunk$44 === handler.chunk) value = handler.value;\n else {\n switch (referencedChunk$44.status) {\n case "resolved_model":\n initializeModelChunk(referencedChunk$44);\n break;\n case "resolved_module":\n initializeModuleChunk(referencedChunk$44);\n }\n switch (referencedChunk$44.status) {\n case "fulfilled":\n value = referencedChunk$44.value;\n continue;\n }\n break;\n }\n }\n var mappedValue = map(response, value, parentObject, key);\n "__proto__" !== key && (parentObject[key] = mappedValue);\n "" === key && null === handler.value && (handler.value = mappedValue);\n if (\n parentObject[0] === REACT_ELEMENT_TYPE &&\n "object" === typeof handler.value &&\n null !== handler.value &&\n handler.value.$$typeof === REACT_ELEMENT_TYPE\n ) {\n var element = handler.value;\n switch (key) {\n case "3":\n element.props = mappedValue;\n }\n }\n } catch (error) {\n rejectReference(reference, error);\n return;\n }\n handler.deps--;\n 0 === handler.deps &&\n ((reference = handler.chunk),\n null !== reference &&\n "blocked" === reference.status &&\n ((value = reference.value),\n (reference.status = "fulfilled"),\n (reference.value = handler.value),\n (reference.reason = handler.reason),\n null !== value && wakeChunk(value, handler.value, reference)));\n}\nfunction rejectReference(reference, error) {\n var handler = reference.handler;\n reference = reference.response;\n handler.errored ||\n ((handler.errored = !0),\n (handler.value = null),\n (handler.reason = error),\n (handler = handler.chunk),\n null !== handler &&\n "blocked" === handler.status &&\n triggerErrorOnChunk(reference, handler, error));\n}\nfunction waitForReference(\n referencedChunk,\n parentObject,\n key,\n response,\n map,\n path\n) {\n if (initializingHandler) {\n var handler = initializingHandler;\n handler.deps++;\n } else\n handler = initializingHandler = {\n parent: null,\n chunk: null,\n value: null,\n reason: null,\n deps: 1,\n errored: !1\n };\n parentObject = {\n response: response,\n handler: handler,\n parentObject: parentObject,\n key: key,\n map: map,\n path: path\n };\n null === referencedChunk.value\n ? (referencedChunk.value = [parentObject])\n : referencedChunk.value.push(parentObject);\n null === referencedChunk.reason\n ? (referencedChunk.reason = [parentObject])\n : referencedChunk.reason.push(parentObject);\n return null;\n}\nfunction loadServerReference(response, metaData, parentObject, key) {\n if (!response._serverReferenceConfig)\n return createBoundServerReference(metaData, response._callServer);\n var serverReference = resolveServerReference(\n response._serverReferenceConfig,\n metaData.id\n ),\n promise = preloadModule(serverReference);\n if (promise)\n metaData.bound && (promise = Promise.all([promise, metaData.bound]));\n else if (metaData.bound) promise = Promise.resolve(metaData.bound);\n else\n return (\n (promise = requireModule(serverReference)),\n registerBoundServerReference(promise, metaData.id, metaData.bound),\n promise\n );\n if (initializingHandler) {\n var handler = initializingHandler;\n handler.deps++;\n } else\n handler = initializingHandler = {\n parent: null,\n chunk: null,\n value: null,\n reason: null,\n deps: 1,\n errored: !1\n };\n promise.then(\n function () {\n var resolvedValue = requireModule(serverReference);\n if (metaData.bound) {\n var boundArgs = metaData.bound.value.slice(0);\n boundArgs.unshift(null);\n resolvedValue = resolvedValue.bind.apply(resolvedValue, boundArgs);\n }\n registerBoundServerReference(resolvedValue, metaData.id, metaData.bound);\n "__proto__" !== key && (parentObject[key] = resolvedValue);\n "" === key && null === handler.value && (handler.value = resolvedValue);\n if (\n parentObject[0] === REACT_ELEMENT_TYPE &&\n "object" === typeof handler.value &&\n null !== handler.value &&\n handler.value.$$typeof === REACT_ELEMENT_TYPE\n )\n switch (((boundArgs = handler.value), key)) {\n case "3":\n boundArgs.props = resolvedValue;\n }\n handler.deps--;\n 0 === handler.deps &&\n ((resolvedValue = handler.chunk),\n null !== resolvedValue &&\n "blocked" === resolvedValue.status &&\n ((boundArgs = resolvedValue.value),\n (resolvedValue.status = "fulfilled"),\n (resolvedValue.value = handler.value),\n (resolvedValue.reason = null),\n null !== boundArgs &&\n wakeChunk(boundArgs, handler.value, resolvedValue)));\n },\n function (error) {\n if (!handler.errored) {\n handler.errored = !0;\n handler.value = null;\n handler.reason = error;\n var chunk = handler.chunk;\n null !== chunk &&\n "blocked" === chunk.status &&\n triggerErrorOnChunk(response, chunk, error);\n }\n }\n );\n return null;\n}\nfunction getOutlinedModel(response, reference, parentObject, key, map) {\n reference = reference.split(":");\n var id = parseInt(reference[0], 16);\n id = getChunk(response, id);\n switch (id.status) {\n case "resolved_model":\n initializeModelChunk(id);\n break;\n case "resolved_module":\n initializeModuleChunk(id);\n }\n switch (id.status) {\n case "fulfilled":\n id = id.value;\n for (var i = 1; i < reference.length; i++) {\n for (\n ;\n "object" === typeof id &&\n null !== id &&\n id.$$typeof === REACT_LAZY_TYPE;\n\n ) {\n id = id._payload;\n switch (id.status) {\n case "resolved_model":\n initializeModelChunk(id);\n break;\n case "resolved_module":\n initializeModuleChunk(id);\n }\n switch (id.status) {\n case "fulfilled":\n id = id.value;\n break;\n case "blocked":\n case "pending":\n return waitForReference(\n id,\n parentObject,\n key,\n response,\n map,\n reference.slice(i - 1)\n );\n case "halted":\n return (\n initializingHandler\n ? ((response = initializingHandler), response.deps++)\n : (initializingHandler = {\n parent: null,\n chunk: null,\n value: null,\n reason: null,\n deps: 1,\n errored: !1\n }),\n null\n );\n default:\n return (\n initializingHandler\n ? ((initializingHandler.errored = !0),\n (initializingHandler.value = null),\n (initializingHandler.reason = id.reason))\n : (initializingHandler = {\n parent: null,\n chunk: null,\n value: null,\n reason: id.reason,\n deps: 0,\n errored: !0\n }),\n null\n );\n }\n }\n id = id[reference[i]];\n }\n for (\n ;\n "object" === typeof id &&\n null !== id &&\n id.$$typeof === REACT_LAZY_TYPE;\n\n ) {\n reference = id._payload;\n switch (reference.status) {\n case "resolved_model":\n initializeModelChunk(reference);\n break;\n case "resolved_module":\n initializeModuleChunk(reference);\n }\n switch (reference.status) {\n case "fulfilled":\n id = reference.value;\n continue;\n }\n break;\n }\n return map(response, id, parentObject, key);\n case "pending":\n case "blocked":\n return waitForReference(id, parentObject, key, response, map, reference);\n case "halted":\n return (\n initializingHandler\n ? ((response = initializingHandler), response.deps++)\n : (initializingHandler = {\n parent: null,\n chunk: null,\n value: null,\n reason: null,\n deps: 1,\n errored: !1\n }),\n null\n );\n default:\n return (\n initializingHandler\n ? ((initializingHandler.errored = !0),\n (initializingHandler.value = null),\n (initializingHandler.reason = id.reason))\n : (initializingHandler = {\n parent: null,\n chunk: null,\n value: null,\n reason: id.reason,\n deps: 0,\n errored: !0\n }),\n null\n );\n }\n}\nfunction createMap(response, model) {\n return new Map(model);\n}\nfunction createSet(response, model) {\n return new Set(model);\n}\nfunction createBlob(response, model) {\n return new Blob(model.slice(1), { type: model[0] });\n}\nfunction createFormData(response, model) {\n response = new FormData();\n for (var i = 0; i < model.length; i++)\n response.append(model[i][0], model[i][1]);\n return response;\n}\nfunction extractIterator(response, model) {\n return model[Symbol.iterator]();\n}\nfunction createModel(response, model) {\n return model;\n}\nfunction parseModelString(response, parentObject, key, value) {\n if ("$" === value[0]) {\n if ("$" === value)\n return (\n null !== initializingHandler &&\n "0" === key &&\n (initializingHandler = {\n parent: initializingHandler,\n chunk: null,\n value: null,\n reason: null,\n deps: 0,\n errored: !1\n }),\n REACT_ELEMENT_TYPE\n );\n switch (value[1]) {\n case "$":\n return value.slice(1);\n case "L":\n return (\n (parentObject = parseInt(value.slice(2), 16)),\n (response = getChunk(response, parentObject)),\n createLazyChunkWrapper(response)\n );\n case "@":\n return (\n (parentObject = parseInt(value.slice(2), 16)),\n getChunk(response, parentObject)\n );\n case "S":\n return Symbol.for(value.slice(2));\n case "h":\n return (\n (value = value.slice(2)),\n getOutlinedModel(\n response,\n value,\n parentObject,\n key,\n loadServerReference\n )\n );\n case "T":\n parentObject = "$" + value.slice(2);\n response = response._tempRefs;\n if (null == response)\n throw Error(\n "Missing a temporary reference set but the RSC response returned a temporary reference. Pass a temporaryReference option with the set that was used with the reply."\n );\n return response.get(parentObject);\n case "Q":\n return (\n (value = value.slice(2)),\n getOutlinedModel(response, value, parentObject, key, createMap)\n );\n case "W":\n return (\n (value = value.slice(2)),\n getOutlinedModel(response, value, parentObject, key, createSet)\n );\n case "B":\n return (\n (value = value.slice(2)),\n getOutlinedModel(response, value, parentObject, key, createBlob)\n );\n case "K":\n return (\n (value = value.slice(2)),\n getOutlinedModel(response, value, parentObject, key, createFormData)\n );\n case "Z":\n return resolveErrorProd();\n case "i":\n return (\n (value = value.slice(2)),\n getOutlinedModel(response, value, parentObject, key, extractIterator)\n );\n case "I":\n return Infinity;\n case "-":\n return "$-0" === value ? -0 : -Infinity;\n case "N":\n return NaN;\n case "u":\n return;\n case "D":\n return new Date(Date.parse(value.slice(2)));\n case "n":\n return BigInt(value.slice(2));\n default:\n return (\n (value = value.slice(1)),\n getOutlinedModel(response, value, parentObject, key, createModel)\n );\n }\n }\n return value;\n}\nfunction missingCall() {\n throw Error(\n \'Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.\'\n );\n}\nfunction ResponseInstance(\n bundlerConfig,\n serverReferenceConfig,\n moduleLoading,\n callServer,\n encodeFormAction,\n nonce,\n temporaryReferences\n) {\n var chunks = new Map();\n this._bundlerConfig = bundlerConfig;\n this._serverReferenceConfig = serverReferenceConfig;\n this._moduleLoading = moduleLoading;\n this._callServer = void 0 !== callServer ? callServer : missingCall;\n this._encodeFormAction = encodeFormAction;\n this._nonce = nonce;\n this._chunks = chunks;\n this._stringDecoder = new TextDecoder();\n this._fromJSON = null;\n this._closed = !1;\n this._closedReason = null;\n this._tempRefs = temporaryReferences;\n this._fromJSON = createFromJSONCallback(this);\n}\nfunction resolveBuffer(response, id, buffer) {\n response = response._chunks;\n var chunk = response.get(id);\n chunk && "pending" !== chunk.status\n ? chunk.reason.enqueueValue(buffer)\n : ((buffer = new ReactPromise("fulfilled", buffer, null)),\n response.set(id, buffer));\n}\nfunction resolveModule(response, id, model) {\n var chunks = response._chunks,\n chunk = chunks.get(id);\n model = JSON.parse(model, response._fromJSON);\n var clientReference = resolveClientReference(response._bundlerConfig, model);\n if ((model = preloadModule(clientReference))) {\n if (chunk) {\n var blockedChunk = chunk;\n blockedChunk.status = "blocked";\n } else\n (blockedChunk = new ReactPromise("blocked", null, null)),\n chunks.set(id, blockedChunk);\n model.then(\n function () {\n return resolveModuleChunk(response, blockedChunk, clientReference);\n },\n function (error) {\n return triggerErrorOnChunk(response, blockedChunk, error);\n }\n );\n } else\n chunk\n ? resolveModuleChunk(response, chunk, clientReference)\n : ((chunk = new ReactPromise("resolved_module", clientReference, null)),\n chunks.set(id, chunk));\n}\nfunction resolveStream(response, id, stream, controller) {\n response = response._chunks;\n var chunk = response.get(id);\n chunk\n ? "pending" === chunk.status &&\n ((id = chunk.value),\n (chunk.status = "fulfilled"),\n (chunk.value = stream),\n (chunk.reason = controller),\n null !== id && wakeChunk(id, chunk.value, chunk))\n : ((stream = new ReactPromise("fulfilled", stream, controller)),\n response.set(id, stream));\n}\nfunction startReadableStream(response, id, type) {\n var controller = null,\n closed = !1;\n type = new ReadableStream({\n type: type,\n start: function (c) {\n controller = c;\n }\n });\n var previousBlockedChunk = null;\n resolveStream(response, id, type, {\n enqueueValue: function (value) {\n null === previousBlockedChunk\n ? controller.enqueue(value)\n : previousBlockedChunk.then(function () {\n controller.enqueue(value);\n });\n },\n enqueueModel: function (json) {\n if (null === previousBlockedChunk) {\n var chunk = new ReactPromise("resolved_model", json, response);\n initializeModelChunk(chunk);\n "fulfilled" === chunk.status\n ? controller.enqueue(chunk.value)\n : (chunk.then(\n function (v) {\n return controller.enqueue(v);\n },\n function (e) {\n return controller.error(e);\n }\n ),\n (previousBlockedChunk = chunk));\n } else {\n chunk = previousBlockedChunk;\n var chunk$55 = new ReactPromise("pending", null, null);\n chunk$55.then(\n function (v) {\n return controller.enqueue(v);\n },\n function (e) {\n return controller.error(e);\n }\n );\n previousBlockedChunk = chunk$55;\n chunk.then(function () {\n previousBlockedChunk === chunk$55 && (previousBlockedChunk = null);\n resolveModelChunk(response, chunk$55, json);\n });\n }\n },\n close: function () {\n if (!closed)\n if (((closed = !0), null === previousBlockedChunk)) controller.close();\n else {\n var blockedChunk = previousBlockedChunk;\n previousBlockedChunk = null;\n blockedChunk.then(function () {\n return controller.close();\n });\n }\n },\n error: function (error) {\n if (!closed)\n if (((closed = !0), null === previousBlockedChunk))\n controller.error(error);\n else {\n var blockedChunk = previousBlockedChunk;\n previousBlockedChunk = null;\n blockedChunk.then(function () {\n return controller.error(error);\n });\n }\n }\n });\n}\nfunction asyncIterator() {\n return this;\n}\nfunction createIterator(next) {\n next = { next: next };\n next[ASYNC_ITERATOR] = asyncIterator;\n return next;\n}\nfunction startAsyncIterable(response, id, iterator) {\n var buffer = [],\n closed = !1,\n nextWriteIndex = 0,\n iterable = {};\n iterable[ASYNC_ITERATOR] = function () {\n var nextReadIndex = 0;\n return createIterator(function (arg) {\n if (void 0 !== arg)\n throw Error(\n "Values cannot be passed to next() of AsyncIterables passed to Client Components."\n );\n if (nextReadIndex === buffer.length) {\n if (closed)\n return new ReactPromise(\n "fulfilled",\n { done: !0, value: void 0 },\n null\n );\n buffer[nextReadIndex] = new ReactPromise("pending", null, null);\n }\n return buffer[nextReadIndex++];\n });\n };\n resolveStream(\n response,\n id,\n iterator ? iterable[ASYNC_ITERATOR]() : iterable,\n {\n enqueueValue: function (value) {\n if (nextWriteIndex === buffer.length)\n buffer[nextWriteIndex] = new ReactPromise(\n "fulfilled",\n { done: !1, value: value },\n null\n );\n else {\n var chunk = buffer[nextWriteIndex],\n resolveListeners = chunk.value,\n rejectListeners = chunk.reason;\n chunk.status = "fulfilled";\n chunk.value = { done: !1, value: value };\n chunk.reason = null;\n null !== resolveListeners &&\n wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners);\n }\n nextWriteIndex++;\n },\n enqueueModel: function (value) {\n nextWriteIndex === buffer.length\n ? (buffer[nextWriteIndex] = createResolvedIteratorResultChunk(\n response,\n value,\n !1\n ))\n : resolveIteratorResultChunk(\n response,\n buffer[nextWriteIndex],\n value,\n !1\n );\n nextWriteIndex++;\n },\n close: function (value) {\n if (!closed)\n for (\n closed = !0,\n nextWriteIndex === buffer.length\n ? (buffer[nextWriteIndex] = createResolvedIteratorResultChunk(\n response,\n value,\n !0\n ))\n : resolveIteratorResultChunk(\n response,\n buffer[nextWriteIndex],\n value,\n !0\n ),\n nextWriteIndex++;\n nextWriteIndex < buffer.length;\n\n )\n resolveIteratorResultChunk(\n response,\n buffer[nextWriteIndex++],\n \'"$undefined"\',\n !0\n );\n },\n error: function (error) {\n if (!closed)\n for (\n closed = !0,\n nextWriteIndex === buffer.length &&\n (buffer[nextWriteIndex] = new ReactPromise(\n "pending",\n null,\n null\n ));\n nextWriteIndex < buffer.length;\n\n )\n triggerErrorOnChunk(response, buffer[nextWriteIndex++], error);\n }\n }\n );\n}\nfunction resolveErrorProd() {\n var error = Error(\n "An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error."\n );\n error.stack = "Error: " + error.message;\n return error;\n}\nfunction mergeBuffer(buffer, lastChunk) {\n for (var l = buffer.length, byteLength = lastChunk.length, i = 0; i < l; i++)\n byteLength += buffer[i].byteLength;\n byteLength = new Uint8Array(byteLength);\n for (var i$56 = (i = 0); i$56 < l; i$56++) {\n var chunk = buffer[i$56];\n byteLength.set(chunk, i);\n i += chunk.byteLength;\n }\n byteLength.set(lastChunk, i);\n return byteLength;\n}\nfunction resolveTypedArray(\n response,\n id,\n buffer,\n lastChunk,\n constructor,\n bytesPerElement\n) {\n buffer =\n 0 === buffer.length && 0 === lastChunk.byteOffset % bytesPerElement\n ? lastChunk\n : mergeBuffer(buffer, lastChunk);\n constructor = new constructor(\n buffer.buffer,\n buffer.byteOffset,\n buffer.byteLength / bytesPerElement\n );\n resolveBuffer(response, id, constructor);\n}\nfunction processFullBinaryRow(response, streamState, id, tag, buffer, chunk) {\n switch (tag) {\n case 65:\n resolveBuffer(response, id, mergeBuffer(buffer, chunk).buffer);\n return;\n case 79:\n resolveTypedArray(response, id, buffer, chunk, Int8Array, 1);\n return;\n case 111:\n resolveBuffer(\n response,\n id,\n 0 === buffer.length ? chunk : mergeBuffer(buffer, chunk)\n );\n return;\n case 85:\n resolveTypedArray(response, id, buffer, chunk, Uint8ClampedArray, 1);\n return;\n case 83:\n resolveTypedArray(response, id, buffer, chunk, Int16Array, 2);\n return;\n case 115:\n resolveTypedArray(response, id, buffer, chunk, Uint16Array, 2);\n return;\n case 76:\n resolveTypedArray(response, id, buffer, chunk, Int32Array, 4);\n return;\n case 108:\n resolveTypedArray(response, id, buffer, chunk, Uint32Array, 4);\n return;\n case 71:\n resolveTypedArray(response, id, buffer, chunk, Float32Array, 4);\n return;\n case 103:\n resolveTypedArray(response, id, buffer, chunk, Float64Array, 8);\n return;\n case 77:\n resolveTypedArray(response, id, buffer, chunk, BigInt64Array, 8);\n return;\n case 109:\n resolveTypedArray(response, id, buffer, chunk, BigUint64Array, 8);\n return;\n case 86:\n resolveTypedArray(response, id, buffer, chunk, DataView, 1);\n return;\n }\n streamState = response._stringDecoder;\n for (var row = "", i = 0; i < buffer.length; i++)\n row += streamState.decode(buffer[i], decoderOptions);\n buffer = row += streamState.decode(chunk);\n switch (tag) {\n case 73:\n resolveModule(response, id, buffer);\n break;\n case 72:\n id = buffer[0];\n buffer = buffer.slice(1);\n response = JSON.parse(buffer, response._fromJSON);\n buffer = ReactDOMSharedInternals.d;\n switch (id) {\n case "D":\n buffer.D(response);\n break;\n case "C":\n "string" === typeof response\n ? buffer.C(response)\n : buffer.C(response[0], response[1]);\n break;\n case "L":\n id = response[0];\n tag = response[1];\n 3 === response.length\n ? buffer.L(id, tag, response[2])\n : buffer.L(id, tag);\n break;\n case "m":\n "string" === typeof response\n ? buffer.m(response)\n : buffer.m(response[0], response[1]);\n break;\n case "X":\n "string" === typeof response\n ? buffer.X(response)\n : buffer.X(response[0], response[1]);\n break;\n case "S":\n "string" === typeof response\n ? buffer.S(response)\n : buffer.S(\n response[0],\n 0 === response[1] ? void 0 : response[1],\n 3 === response.length ? response[2] : void 0\n );\n break;\n case "M":\n "string" === typeof response\n ? buffer.M(response)\n : buffer.M(response[0], response[1]);\n }\n break;\n case 69:\n tag = response._chunks;\n chunk = tag.get(id);\n buffer = JSON.parse(buffer);\n streamState = resolveErrorProd();\n streamState.digest = buffer.digest;\n chunk\n ? triggerErrorOnChunk(response, chunk, streamState)\n : ((response = new ReactPromise("rejected", null, streamState)),\n tag.set(id, response));\n break;\n case 84:\n response = response._chunks;\n (tag = response.get(id)) && "pending" !== tag.status\n ? tag.reason.enqueueValue(buffer)\n : ((buffer = new ReactPromise("fulfilled", buffer, null)),\n response.set(id, buffer));\n break;\n case 78:\n case 68:\n case 74:\n case 87:\n throw Error(\n "Failed to read a RSC payload created by a development version of React on the server while using a production version on the client. Always use matching versions on the server and the client."\n );\n case 82:\n startReadableStream(response, id, void 0);\n break;\n case 114:\n startReadableStream(response, id, "bytes");\n break;\n case 88:\n startAsyncIterable(response, id, !1);\n break;\n case 120:\n startAsyncIterable(response, id, !0);\n break;\n case 67:\n (id = response._chunks.get(id)) &&\n "fulfilled" === id.status &&\n id.reason.close("" === buffer ? \'"$undefined"\' : buffer);\n break;\n default:\n (tag = response._chunks),\n (chunk = tag.get(id))\n ? resolveModelChunk(response, chunk, buffer)\n : ((response = new ReactPromise("resolved_model", buffer, response)),\n tag.set(id, response));\n }\n}\nfunction createFromJSONCallback(response) {\n return function (key, value) {\n if ("__proto__" !== key) {\n if ("string" === typeof value)\n return parseModelString(response, this, key, value);\n if ("object" === typeof value && null !== value) {\n if (value[0] === REACT_ELEMENT_TYPE) {\n if (\n ((key = {\n $$typeof: REACT_ELEMENT_TYPE,\n type: value[1],\n key: value[2],\n ref: null,\n props: value[3]\n }),\n null !== initializingHandler)\n )\n if (\n ((value = initializingHandler),\n (initializingHandler = value.parent),\n value.errored)\n )\n (key = new ReactPromise("rejected", null, value.reason)),\n (key = createLazyChunkWrapper(key));\n else if (0 < value.deps) {\n var blockedChunk = new ReactPromise("blocked", null, null);\n value.value = key;\n value.chunk = blockedChunk;\n key = createLazyChunkWrapper(blockedChunk);\n }\n } else key = value;\n return key;\n }\n return value;\n }\n };\n}\nfunction close(weakResponse) {\n reportGlobalError(weakResponse, Error("Connection closed."));\n}\nfunction createResponseFromOptions(options) {\n return new ResponseInstance(\n null,\n null,\n null,\n options && options.callServer ? options.callServer : void 0,\n void 0,\n void 0,\n options && options.temporaryReferences\n ? options.temporaryReferences\n : void 0\n );\n}\nfunction startReadingFromStream(response, stream, onDone) {\n function progress(_ref2) {\n var value = _ref2.value;\n if (_ref2.done) return onDone();\n var i = 0,\n rowState = streamState._rowState;\n _ref2 = streamState._rowID;\n for (\n var rowTag = streamState._rowTag,\n rowLength = streamState._rowLength,\n buffer = streamState._buffer,\n chunkLength = value.length;\n i < chunkLength;\n\n ) {\n var lastIdx = -1;\n switch (rowState) {\n case 0:\n lastIdx = value[i++];\n 58 === lastIdx\n ? (rowState = 1)\n : (_ref2 =\n (_ref2 << 4) | (96 < lastIdx ? lastIdx - 87 : lastIdx - 48));\n continue;\n case 1:\n rowState = value[i];\n 84 === rowState ||\n 65 === rowState ||\n 79 === rowState ||\n 111 === rowState ||\n 85 === rowState ||\n 83 === rowState ||\n 115 === rowState ||\n 76 === rowState ||\n 108 === rowState ||\n 71 === rowState ||\n 103 === rowState ||\n 77 === rowState ||\n 109 === rowState ||\n 86 === rowState\n ? ((rowTag = rowState), (rowState = 2), i++)\n : (64 < rowState && 91 > rowState) ||\n 35 === rowState ||\n 114 === rowState ||\n 120 === rowState\n ? ((rowTag = rowState), (rowState = 3), i++)\n : ((rowTag = 0), (rowState = 3));\n continue;\n case 2:\n lastIdx = value[i++];\n 44 === lastIdx\n ? (rowState = 4)\n : (rowLength =\n (rowLength << 4) |\n (96 < lastIdx ? lastIdx - 87 : lastIdx - 48));\n continue;\n case 3:\n lastIdx = value.indexOf(10, i);\n break;\n case 4:\n (lastIdx = i + rowLength), lastIdx > value.length && (lastIdx = -1);\n }\n var offset = value.byteOffset + i;\n if (-1 < lastIdx)\n (rowLength = new Uint8Array(value.buffer, offset, lastIdx - i)),\n processFullBinaryRow(\n response,\n streamState,\n _ref2,\n rowTag,\n buffer,\n rowLength\n ),\n (i = lastIdx),\n 3 === rowState && i++,\n (rowLength = _ref2 = rowTag = rowState = 0),\n (buffer.length = 0);\n else {\n value = new Uint8Array(value.buffer, offset, value.byteLength - i);\n buffer.push(value);\n rowLength -= value.byteLength;\n break;\n }\n }\n streamState._rowState = rowState;\n streamState._rowID = _ref2;\n streamState._rowTag = rowTag;\n streamState._rowLength = rowLength;\n return reader.read().then(progress).catch(error);\n }\n function error(e) {\n reportGlobalError(response, e);\n }\n var streamState = {\n _rowState: 0,\n _rowID: 0,\n _rowTag: 0,\n _rowLength: 0,\n _buffer: []\n },\n reader = stream.getReader();\n reader.read().then(progress).catch(error);\n}\nexports.createFromFetch = function (promiseForResponse, options) {\n var response = createResponseFromOptions(options);\n promiseForResponse.then(\n function (r) {\n startReadingFromStream(response, r.body, close.bind(null, response));\n },\n function (e) {\n reportGlobalError(response, e);\n }\n );\n return getChunk(response, 0);\n};\nexports.createFromReadableStream = function (stream, options) {\n options = createResponseFromOptions(options);\n startReadingFromStream(options, stream, close.bind(null, options));\n return getChunk(options, 0);\n};\nexports.createServerReference = function (id, callServer) {\n function action() {\n var args = Array.prototype.slice.call(arguments);\n return callServer(id, args);\n }\n registerBoundServerReference(action, id, null);\n return action;\n};\nexports.createTemporaryReferenceSet = function () {\n return new Map();\n};\nexports.encodeReply = function (value, options) {\n return new Promise(function (resolve, reject) {\n var abort = processReply(\n value,\n "",\n options && options.temporaryReferences\n ? options.temporaryReferences\n : void 0,\n resolve,\n reject\n );\n if (options && options.signal) {\n var signal = options.signal;\n if (signal.aborted) abort(signal.reason);\n else {\n var listener = function () {\n abort(signal.reason);\n signal.removeEventListener("abort", listener);\n };\n signal.addEventListener("abort", listener);\n }\n }\n });\n};\nexports.registerServerReference = function (reference, id) {\n registerBoundServerReference(reference, id, null);\n return reference;\n};\n' as string; +export const WEBPACK_SHIM_SOURCE = + "// Minimal webpack shim for RSDW compatibility.\n// Works in both browser (window) and worker (self) contexts via globalThis.\n\nvar moduleCache = {};\n\nglobalThis.__webpack_module_cache__ = moduleCache;\n\nglobalThis.__webpack_require__ = function (moduleId) {\n var cached = moduleCache[moduleId];\n if (cached) return cached.exports !== undefined ? cached.exports : cached;\n throw new Error('Module \"' + moduleId + '\" not found in webpack shim cache');\n};\n\nglobalThis.__webpack_chunk_load__ = function () {\n return Promise.resolve();\n};\n\nglobalThis.__webpack_require__.u = function (chunkId) {\n return chunkId;\n};\n\nglobalThis.__webpack_get_script_filename__ = function (chunkId) {\n return chunkId;\n};\n" as string; +export const WORKER_BUNDLE_MODULE_SOURCE = + 'export default "// Minimal webpack shim for RSDW compatibility.\\n// Works in both browser (window) and worker (self) contexts via globalThis.\\n\\nvar moduleCache = {};\\n\\nglobalThis.__webpack_module_cache__ = moduleCache;\\n\\nglobalThis.__webpack_require__ = function (moduleId) {\\n var cached = moduleCache[moduleId];\\n if (cached) return cached.exports !== undefined ? cached.exports : cached;\\n throw new Error(\'Module \\"\' + moduleId + \'\\" not found in webpack shim cache\');\\n};\\n\\nglobalThis.__webpack_chunk_load__ = function () {\\n return Promise.resolve();\\n};\\n\\nglobalThis.__webpack_require__.u = function (chunkId) {\\n return chunkId;\\n};\\n\\nglobalThis.__webpack_get_script_filename__ = function (chunkId) {\\n return chunkId;\\n};\\n\\n\\"use strict\\";(()=>{var Z=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Wc=Z(ht=>{\\"use strict\\";var ei={H:null,A:null};function Yo(e){var t=\\"https://react.dev/errors/\\"+e;if(1{\\"use strict\\";Gc.exports=Wc()});var Xc=Z(Oi=>{\\"use strict\\";var Kf=Li(),Uf=Symbol.for(\\"react.transitional.element\\"),Hf=Symbol.for(\\"react.fragment\\");if(!Kf.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)throw Error(\'The \\"react\\" package in this environment is not configured correctly. The \\"react-server\\" condition must be enabled in any environment that runs React Server Components.\');function zc(e,t,s){var i=null;if(s!==void 0&&(i=\\"\\"+s),t.key!==void 0&&(i=\\"\\"+t.key),\\"key\\"in t){s={};for(var r in t)r!==\\"key\\"&&(s[r]=t[r])}else s=t;return t=s.ref,{$$typeof:Uf,type:e,key:i,ref:t!==void 0?t:null,props:s}}Oi.Fragment=Hf;Oi.jsx=zc;Oi.jsxDEV=void 0;Oi.jsxs=zc});var Jc=Z((n_,Yc)=>{\\"use strict\\";Yc.exports=Xc()});var Qc=Z(jn=>{\\"use strict\\";var Wf=Li();function ns(){}var Sn={d:{f:ns,r:function(){throw Error(\\"Invalid form element. requestFormReset must be passed a form that was rendered by React.\\")},D:ns,C:ns,L:ns,m:ns,X:ns,S:ns,M:ns},p:0,findDOMNode:null};if(!Wf.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)throw Error(\'The \\"react\\" package in this environment is not configured correctly. The \\"react-server\\" condition must be enabled in any environment that runs React Server Components.\');function br(e,t){if(e===\\"font\\")return\\"\\";if(typeof t==\\"string\\")return t===\\"use-credentials\\"?t:\\"\\"}jn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Sn;jn.preconnect=function(e,t){typeof e==\\"string\\"&&(t?(t=t.crossOrigin,t=typeof t==\\"string\\"?t===\\"use-credentials\\"?t:\\"\\":void 0):t=null,Sn.d.C(e,t))};jn.prefetchDNS=function(e){typeof e==\\"string\\"&&Sn.d.D(e)};jn.preinit=function(e,t){if(typeof e==\\"string\\"&&t&&typeof t.as==\\"string\\"){var s=t.as,i=br(s,t.crossOrigin),r=typeof t.integrity==\\"string\\"?t.integrity:void 0,a=typeof t.fetchPriority==\\"string\\"?t.fetchPriority:void 0;s===\\"style\\"?Sn.d.S(e,typeof t.precedence==\\"string\\"?t.precedence:void 0,{crossOrigin:i,integrity:r,fetchPriority:a}):s===\\"script\\"&&Sn.d.X(e,{crossOrigin:i,integrity:r,fetchPriority:a,nonce:typeof t.nonce==\\"string\\"?t.nonce:void 0})}};jn.preinitModule=function(e,t){if(typeof e==\\"string\\")if(typeof t==\\"object\\"&&t!==null){if(t.as==null||t.as===\\"script\\"){var s=br(t.as,t.crossOrigin);Sn.d.M(e,{crossOrigin:s,integrity:typeof t.integrity==\\"string\\"?t.integrity:void 0,nonce:typeof t.nonce==\\"string\\"?t.nonce:void 0})}}else t==null&&Sn.d.M(e)};jn.preload=function(e,t){if(typeof e==\\"string\\"&&typeof t==\\"object\\"&&t!==null&&typeof t.as==\\"string\\"){var s=t.as,i=br(s,t.crossOrigin);Sn.d.L(e,s,{crossOrigin:i,integrity:typeof t.integrity==\\"string\\"?t.integrity:void 0,nonce:typeof t.nonce==\\"string\\"?t.nonce:void 0,type:typeof t.type==\\"string\\"?t.type:void 0,fetchPriority:typeof t.fetchPriority==\\"string\\"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==\\"string\\"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==\\"string\\"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==\\"string\\"?t.imageSizes:void 0,media:typeof t.media==\\"string\\"?t.media:void 0})}};jn.preloadModule=function(e,t){if(typeof e==\\"string\\")if(t){var s=br(t.as,t.crossOrigin);Sn.d.m(e,{as:typeof t.as==\\"string\\"&&t.as!==\\"script\\"?t.as:void 0,crossOrigin:s,integrity:typeof t.integrity==\\"string\\"?t.integrity:void 0})}else Sn.d.m(e)};jn.version=\\"19.0.0\\"});var eu=Z((i_,Zc)=>{\\"use strict\\";Zc.exports=Qc()});var Zu=Z(En=>{\\"use strict\\";var Gf=eu(),zf=Li(),Tu=new MessageChannel,ku=[];Tu.port1.onmessage=function(){var e=ku.shift();e&&e()};function Bi(e){ku.push(e),Tu.port2.postMessage(null)}function Xf(e){setTimeout(function(){throw e})}var Yf=Promise,vu=typeof queueMicrotask==\\"function\\"?queueMicrotask:function(e){Yf.resolve(null).then(e).catch(Xf)},ln=null,cn=0;function Cr(e,t){if(t.byteLength!==0)if(2048=e.length?e:e.slice(0,10)+\\"...\\");case\\"object\\":return kn(e)?\\"[...]\\":e!==null&&e.$$typeof===sa?\\"client\\":(e=Nu(e),e===\\"Object\\"?\\"{...}\\":e);case\\"function\\":return e.$$typeof===sa?\\"client\\":(e=e.displayName||e.name)?\\"function \\"+e:\\"function\\";default:return String(e)}}function Er(e){if(typeof e==\\"string\\")return e;switch(e){case hd:return\\"Suspense\\";case fd:return\\"SuspenseList\\"}if(typeof e==\\"object\\")switch(e.$$typeof){case wu:return Er(e.render);case Su:return Er(e.type);case $i:var t=e._payload;e=e._init;try{return Er(e(t))}catch{}}return\\"\\"}var sa=Symbol.for(\\"react.client.reference\\");function _s(e,t){var s=Nu(e);if(s!==\\"Object\\"&&s!==\\"Array\\")return s;s=-1;var i=0;if(kn(e)){for(var r=\\"[\\",a=0;au.length&&40>r.length+u.length?r+u:r+\\"...\\"}r+=\\"]\\"}else if(e.$$typeof===In)r=\\"<\\"+Er(e.type)+\\"/>\\";else{if(e.$$typeof===sa)return\\"client\\";for(r=\\"{\\",a=Object.keys(e),u=0;uy.length&&40>r.length+y.length?r+y:r+\\"...\\"}r+=\\"}\\"}return t===void 0?r:-1\\"u\\")return\\"$undefined\\";if(typeof r==\\"function\\"){if(r.$$typeof===rs)return pu(e,s,i,r);if(r.$$typeof===Ar)return t=e.writtenServerReferences,i=t.get(r),i!==void 0?e=\\"$h\\"+i.toString(16):(i=r.$$bound,i=i===null?null:Promise.resolve(i),e=bs(e,{id:r.$$id,bound:i},0),t.set(r,e),e=\\"$h\\"+e.toString(16)),e;if(e.temporaryReferences!==void 0&&(e=e.temporaryReferences.get(r),e!==void 0))return\\"$T\\"+e;throw r.$$typeof===ca?Error(\\"Could not reference an opaque temporary reference. This is likely due to misconfiguring the temporaryReferences options on the server.\\"):/^on[A-Z]/.test(i)?Error(\\"Event handlers cannot be passed to Client Component props.\\"+_s(s,i)+`\\nIf you need interactivity, consider converting part of this to a Client Component.`):Error(\'Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with \\"use server\\". Or maybe you meant to call this function rather than return it.\'+_s(s,i))}if(typeof r==\\"symbol\\"){if(t=e.writtenSymbols,a=t.get(r),a!==void 0)return Ct(a);if(a=r.description,Symbol.for(a)!==r)throw Error(\\"Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for(\\"+(r.description+\\") cannot be found among global symbols.\\")+_s(s,i));return e.pendingChunks++,i=e.nextChunkId++,s=Lu(e,i,\\"$S\\"+a),e.completedImportChunks.push(s),t.set(r,i),Ct(i)}if(typeof r==\\"bigint\\")return\\"$n\\"+r.toString(10);throw Error(\\"Type \\"+typeof r+\\" is not supported in Client Component props.\\"+_s(s,i))}function Kn(e,t){var s=st;st=null;try{var i=e.onError,r=i(t)}finally{st=s}if(r!=null&&typeof r!=\\"string\\")throw Error(\'onError returned something with a type other than \\"string\\". onError should return a string and may return null or undefined but must not return anything else. It received something of type \\"\'+typeof r+\'\\" instead\');return r||\\"\\"}function Ki(e,t){var s=e.onFatalError;s(t),e.destination!==null?(e.status=14,xu(e.destination,t)):(e.status=13,e.fatalError=t),e.cacheController.abort(Error(\\"The render was aborted due to a fatal error.\\",{cause:t}))}function Rr(e,t,s){s={digest:s},t=t.toString(16)+\\":E\\"+Es(s)+`\\n`,t=pn(t),e.completedErrorChunks.push(t)}function Ou(e,t,s){t=t.toString(16)+\\":\\"+s+`\\n`,t=pn(t),e.completedRegularChunks.push(t)}function Kt(e,t,s,i,r){r?e.pendingDebugChunks++:e.pendingChunks++,r=new Uint8Array(i.buffer,i.byteOffset,i.byteLength),i=2048e.status&&e.cacheController.abort(Error(\\"This render completed successfully. All cacheSignals are now aborted to allow clean up of any unused resources.\\")),e.destination!==null&&(e.status=14,e.destination.close(),e.destination=null))}function Vu(e){e.flushScheduled=e.destination!==null,vu(function(){return ra(e)}),Bi(function(){e.status===10&&(e.status=11)})}function un(e){e.flushScheduled===!1&&e.pingedTasks.length===0&&e.destination!==null&&(e.flushScheduled=!0,Bi(function(){e.flushScheduled=!1,ai(e)}))}function Or(e){e.abortableTasks.size===0&&(e=e.onAllReady,e())}function ju(e,t){if(e.status===13)e.status=14,xu(t,e.fatalError);else if(e.status!==14&&e.destination===null){e.destination=t;try{ai(e)}catch(s){Kn(e,s,null),Ki(e,s)}}}function Id(e,t){try{t.forEach(function(i){return oi(i,e)});var s=e.onAllReady;s(),ai(e)}catch(i){Kn(e,i,null),Ki(e,i)}}function Ed(e,t,s){try{t.forEach(function(r){return fa(r,e,s)});var i=e.onAllReady;i(),ai(e)}catch(r){Kn(e,r,null),Ki(e,r)}}function si(e,t){if(!(11s._arraySizeLimit&&e.fork)throw Error(\\"Maximum array nesting exceeded. Large nested arrays can be dangerous. Try adding intermediate objects.\\")}var Ye=null;function Br(e){var t=Ye;Ye=null;var s=e.reason,i=s[Dr];s=s.id,s=s===-1?void 0:s.toString(16);var r=e.value;e.status=\\"blocked\\",e.value=null,e.reason=null;try{var a=JSON.parse(r);r={count:0,fork:!1};var u=oa(i,{\\"\\":a},\\"\\",a,s,r),d=e.value;if(d!==null)for(e.value=null,e.reason=null,a=0;a{\\"use strict\\";var Hn;Hn=Zu();Wn.renderToReadableStream=Hn.renderToReadableStream;Wn.decodeReply=Hn.decodeReply;Wn.decodeAction=Hn.decodeAction;Wn.decodeFormState=Hn.decodeFormState;Wn.registerServerReference=Hn.registerServerReference;Wn.registerClientReference=Hn.registerClientReference;Wn.createClientModuleProxy=Hn.createClientModuleProxy;Wn.createTemporaryReferenceSet=Hn.createTemporaryReferenceSet});var It=Z(ya=>{\\"use strict\\";Object.defineProperty(ya,\\"__esModule\\",{value:!0});var t1;(function(e){e[e.NONE=0]=\\"NONE\\";let s=1;e[e._abstract=s]=\\"_abstract\\";let i=s+1;e[e._accessor=i]=\\"_accessor\\";let r=i+1;e[e._as=r]=\\"_as\\";let a=r+1;e[e._assert=a]=\\"_assert\\";let u=a+1;e[e._asserts=u]=\\"_asserts\\";let d=u+1;e[e._async=d]=\\"_async\\";let y=d+1;e[e._await=y]=\\"_await\\";let g=y+1;e[e._checks=g]=\\"_checks\\";let L=g+1;e[e._constructor=L]=\\"_constructor\\";let p=L+1;e[e._declare=p]=\\"_declare\\";let h=p+1;e[e._enum=h]=\\"_enum\\";let T=h+1;e[e._exports=T]=\\"_exports\\";let x=T+1;e[e._from=x]=\\"_from\\";let w=x+1;e[e._get=w]=\\"_get\\";let S=w+1;e[e._global=S]=\\"_global\\";let A=S+1;e[e._implements=A]=\\"_implements\\";let U=A+1;e[e._infer=U]=\\"_infer\\";let M=U+1;e[e._interface=M]=\\"_interface\\";let c=M+1;e[e._is=c]=\\"_is\\";let R=c+1;e[e._keyof=R]=\\"_keyof\\";let W=R+1;e[e._mixins=W]=\\"_mixins\\";let X=W+1;e[e._module=X]=\\"_module\\";let ie=X+1;e[e._namespace=ie]=\\"_namespace\\";let pe=ie+1;e[e._of=pe]=\\"_of\\";let ae=pe+1;e[e._opaque=ae]=\\"_opaque\\";let He=ae+1;e[e._out=He]=\\"_out\\";let qe=He+1;e[e._override=qe]=\\"_override\\";let Bt=qe+1;e[e._private=Bt]=\\"_private\\";let mt=Bt+1;e[e._protected=mt]=\\"_protected\\";let kt=mt+1;e[e._proto=kt]=\\"_proto\\";let At=kt+1;e[e._public=At]=\\"_public\\";let tt=At+1;e[e._readonly=tt]=\\"_readonly\\";let nt=tt+1;e[e._require=nt]=\\"_require\\";let _t=nt+1;e[e._satisfies=_t]=\\"_satisfies\\";let ct=_t+1;e[e._set=ct]=\\"_set\\";let wt=ct+1;e[e._static=wt]=\\"_static\\";let $t=wt+1;e[e._symbol=$t]=\\"_symbol\\";let Pt=$t+1;e[e._type=Pt]=\\"_type\\";let qt=Pt+1;e[e._unique=qt]=\\"_unique\\";let Tn=qt+1;e[e._using=Tn]=\\"_using\\"})(t1||(ya.ContextualKeyword=t1={}))});var be=Z(jr=>{\\"use strict\\";Object.defineProperty(jr,\\"__esModule\\",{value:!0});var q;(function(e){e[e.PRECEDENCE_MASK=15]=\\"PRECEDENCE_MASK\\";let s=16;e[e.IS_KEYWORD=s]=\\"IS_KEYWORD\\";let i=32;e[e.IS_ASSIGN=i]=\\"IS_ASSIGN\\";let r=64;e[e.IS_RIGHT_ASSOCIATIVE=r]=\\"IS_RIGHT_ASSOCIATIVE\\";let a=128;e[e.IS_PREFIX=a]=\\"IS_PREFIX\\";let u=256;e[e.IS_POSTFIX=u]=\\"IS_POSTFIX\\";let d=512;e[e.IS_EXPRESSION_START=d]=\\"IS_EXPRESSION_START\\";let y=512;e[e.num=y]=\\"num\\";let g=1536;e[e.bigint=g]=\\"bigint\\";let L=2560;e[e.decimal=L]=\\"decimal\\";let p=3584;e[e.regexp=p]=\\"regexp\\";let h=4608;e[e.string=h]=\\"string\\";let T=5632;e[e.name=T]=\\"name\\";let x=6144;e[e.eof=x]=\\"eof\\";let w=7680;e[e.bracketL=w]=\\"bracketL\\";let S=8192;e[e.bracketR=S]=\\"bracketR\\";let A=9728;e[e.braceL=A]=\\"braceL\\";let U=10752;e[e.braceBarL=U]=\\"braceBarL\\";let M=11264;e[e.braceR=M]=\\"braceR\\";let c=12288;e[e.braceBarR=c]=\\"braceBarR\\";let R=13824;e[e.parenL=R]=\\"parenL\\";let W=14336;e[e.parenR=W]=\\"parenR\\";let X=15360;e[e.comma=X]=\\"comma\\";let ie=16384;e[e.semi=ie]=\\"semi\\";let pe=17408;e[e.colon=pe]=\\"colon\\";let ae=18432;e[e.doubleColon=ae]=\\"doubleColon\\";let He=19456;e[e.dot=He]=\\"dot\\";let qe=20480;e[e.question=qe]=\\"question\\";let Bt=21504;e[e.questionDot=Bt]=\\"questionDot\\";let mt=22528;e[e.arrow=mt]=\\"arrow\\";let kt=23552;e[e.template=kt]=\\"template\\";let At=24576;e[e.ellipsis=At]=\\"ellipsis\\";let tt=25600;e[e.backQuote=tt]=\\"backQuote\\";let nt=27136;e[e.dollarBraceL=nt]=\\"dollarBraceL\\";let _t=27648;e[e.at=_t]=\\"at\\";let ct=29184;e[e.hash=ct]=\\"hash\\";let wt=29728;e[e.eq=wt]=\\"eq\\";let $t=30752;e[e.assign=$t]=\\"assign\\";let Pt=32640;e[e.preIncDec=Pt]=\\"preIncDec\\";let qt=33664;e[e.postIncDec=qt]=\\"postIncDec\\";let Tn=34432;e[e.bang=Tn]=\\"bang\\";let V=35456;e[e.tilde=V]=\\"tilde\\";let G=35841;e[e.pipeline=G]=\\"pipeline\\";let J=36866;e[e.nullishCoalescing=J]=\\"nullishCoalescing\\";let re=37890;e[e.logicalOR=re]=\\"logicalOR\\";let ve=38915;e[e.logicalAND=ve]=\\"logicalAND\\";let he=39940;e[e.bitwiseOR=he]=\\"bitwiseOR\\";let Ie=40965;e[e.bitwiseXOR=Ie]=\\"bitwiseXOR\\";let Ee=41990;e[e.bitwiseAND=Ee]=\\"bitwiseAND\\";let Le=43015;e[e.equality=Le]=\\"equality\\";let Xe=44040;e[e.lessThan=Xe]=\\"lessThan\\";let We=45064;e[e.greaterThan=We]=\\"greaterThan\\";let Ke=46088;e[e.relationalOrEqual=Ke]=\\"relationalOrEqual\\";let ut=47113;e[e.bitShiftL=ut]=\\"bitShiftL\\";let pt=48137;e[e.bitShiftR=pt]=\\"bitShiftR\\";let bt=49802;e[e.plus=bt]=\\"plus\\";let yt=50826;e[e.minus=yt]=\\"minus\\";let vt=51723;e[e.modulo=vt]=\\"modulo\\";let bn=52235;e[e.star=bn]=\\"star\\";let Dn=53259;e[e.slash=Dn]=\\"slash\\";let Ge=54348;e[e.exponent=Ge]=\\"exponent\\";let St=55296;e[e.jsxName=St]=\\"jsxName\\";let ot=56320;e[e.jsxText=ot]=\\"jsxText\\";let zt=57344;e[e.jsxEmptyText=zt]=\\"jsxEmptyText\\";let Xt=58880;e[e.jsxTagStart=Xt]=\\"jsxTagStart\\";let te=59392;e[e.jsxTagEnd=te]=\\"jsxTagEnd\\";let Cn=60928;e[e.typeParameterStart=Cn]=\\"typeParameterStart\\";let Zn=61440;e[e.nonNullAssertion=Zn]=\\"nonNullAssertion\\";let _i=62480;e[e._break=_i]=\\"_break\\";let Mn=63504;e[e._case=Mn]=\\"_case\\";let xs=64528;e[e._catch=xs]=\\"_catch\\";let Ds=65552;e[e._continue=Ds]=\\"_continue\\";let bi=66576;e[e._debugger=bi]=\\"_debugger\\";let es=67600;e[e._default=es]=\\"_default\\";let Nt=68624;e[e._do=Nt]=\\"_do\\";let Rt=69648;e[e._else=Rt]=\\"_else\\";let Ue=70672;e[e._finally=Ue]=\\"_finally\\";let wn=71696;e[e._for=wn]=\\"_for\\";let de=73232;e[e._function=de]=\\"_function\\";let Ms=73744;e[e._if=Ms]=\\"_if\\";let gs=74768;e[e._return=gs]=\\"_return\\";let Ci=75792;e[e._switch=Ci]=\\"_switch\\";let ts=77456;e[e._throw=ts]=\\"_throw\\";let rn=77840;e[e._try=rn]=\\"_try\\";let wi=78864;e[e._var=wi]=\\"_var\\";let Fn=79888;e[e._let=Fn]=\\"_let\\";let Bn=80912;e[e._const=Bn]=\\"_const\\";let Fs=81936;e[e._while=Fs]=\\"_while\\";let Si=82960;e[e._with=Si]=\\"_with\\";let Bs=84496;e[e._new=Bs]=\\"_new\\";let Vs=85520;e[e._this=Vs]=\\"_this\\";let js=86544;e[e._super=js]=\\"_super\\";let $s=87568;e[e._class=$s]=\\"_class\\";let qs=88080;e[e._extends=qs]=\\"_extends\\";let Ii=89104;e[e._export=Ii]=\\"_export\\";let Ei=90640;e[e._import=Ei]=\\"_import\\";let Ai=91664;e[e._yield=Ai]=\\"_yield\\";let Pi=92688;e[e._null=Pi]=\\"_null\\";let Ks=93712;e[e._true=Ks]=\\"_true\\";let Us=94736;e[e._false=Us]=\\"_false\\";let Hs=95256;e[e._in=Hs]=\\"_in\\";let Ws=96280;e[e._instanceof=Ws]=\\"_instanceof\\";let Gs=97936;e[e._typeof=Gs]=\\"_typeof\\";let zs=98960;e[e._void=zs]=\\"_void\\";let jo=99984;e[e._delete=jo]=\\"_delete\\";let $o=100880;e[e._async=$o]=\\"_async\\";let mr=101904;e[e._get=mr]=\\"_get\\";let qo=102928;e[e._set=qo]=\\"_set\\";let Ni=103952;e[e._declare=Ni]=\\"_declare\\";let yr=104976;e[e._readonly=yr]=\\"_readonly\\";let Ko=106e3;e[e._abstract=Ko]=\\"_abstract\\";let le=107024;e[e._static=le]=\\"_static\\";let Xs=107536;e[e._public=Xs]=\\"_public\\";let on=108560;e[e._private=on]=\\"_private\\";let Uo=109584;e[e._protected=Uo]=\\"_protected\\";let Ho=110608;e[e._override=Ho]=\\"_override\\";let Tr=112144;e[e._as=Tr]=\\"_as\\";let Wo=113168;e[e._enum=Wo]=\\"_enum\\";let Go=114192;e[e._type=Go]=\\"_type\\";let kr=115216;e[e._implements=kr]=\\"_implements\\"})(q||(jr.TokenType=q={}));function Bd(e){switch(e){case q.num:return\\"num\\";case q.bigint:return\\"bigint\\";case q.decimal:return\\"decimal\\";case q.regexp:return\\"regexp\\";case q.string:return\\"string\\";case q.name:return\\"name\\";case q.eof:return\\"eof\\";case q.bracketL:return\\"[\\";case q.bracketR:return\\"]\\";case q.braceL:return\\"{\\";case q.braceBarL:return\\"{|\\";case q.braceR:return\\"}\\";case q.braceBarR:return\\"|}\\";case q.parenL:return\\"(\\";case q.parenR:return\\")\\";case q.comma:return\\",\\";case q.semi:return\\";\\";case q.colon:return\\":\\";case q.doubleColon:return\\"::\\";case q.dot:return\\".\\";case q.question:return\\"?\\";case q.questionDot:return\\"?.\\";case q.arrow:return\\"=>\\";case q.template:return\\"template\\";case q.ellipsis:return\\"...\\";case q.backQuote:return\\"`\\";case q.dollarBraceL:return\\"${\\";case q.at:return\\"@\\";case q.hash:return\\"#\\";case q.eq:return\\"=\\";case q.assign:return\\"_=\\";case q.preIncDec:return\\"++/--\\";case q.postIncDec:return\\"++/--\\";case q.bang:return\\"!\\";case q.tilde:return\\"~\\";case q.pipeline:return\\"|>\\";case q.nullishCoalescing:return\\"??\\";case q.logicalOR:return\\"||\\";case q.logicalAND:return\\"&&\\";case q.bitwiseOR:return\\"|\\";case q.bitwiseXOR:return\\"^\\";case q.bitwiseAND:return\\"&\\";case q.equality:return\\"==/!=\\";case q.lessThan:return\\"<\\";case q.greaterThan:return\\">\\";case q.relationalOrEqual:return\\"<=/>=\\";case q.bitShiftL:return\\"<<\\";case q.bitShiftR:return\\">>/>>>\\";case q.plus:return\\"+\\";case q.minus:return\\"-\\";case q.modulo:return\\"%\\";case q.star:return\\"*\\";case q.slash:return\\"/\\";case q.exponent:return\\"**\\";case q.jsxName:return\\"jsxName\\";case q.jsxText:return\\"jsxText\\";case q.jsxEmptyText:return\\"jsxEmptyText\\";case q.jsxTagStart:return\\"jsxTagStart\\";case q.jsxTagEnd:return\\"jsxTagEnd\\";case q.typeParameterStart:return\\"typeParameterStart\\";case q.nonNullAssertion:return\\"nonNullAssertion\\";case q._break:return\\"break\\";case q._case:return\\"case\\";case q._catch:return\\"catch\\";case q._continue:return\\"continue\\";case q._debugger:return\\"debugger\\";case q._default:return\\"default\\";case q._do:return\\"do\\";case q._else:return\\"else\\";case q._finally:return\\"finally\\";case q._for:return\\"for\\";case q._function:return\\"function\\";case q._if:return\\"if\\";case q._return:return\\"return\\";case q._switch:return\\"switch\\";case q._throw:return\\"throw\\";case q._try:return\\"try\\";case q._var:return\\"var\\";case q._let:return\\"let\\";case q._const:return\\"const\\";case q._while:return\\"while\\";case q._with:return\\"with\\";case q._new:return\\"new\\";case q._this:return\\"this\\";case q._super:return\\"super\\";case q._class:return\\"class\\";case q._extends:return\\"extends\\";case q._export:return\\"export\\";case q._import:return\\"import\\";case q._yield:return\\"yield\\";case q._null:return\\"null\\";case q._true:return\\"true\\";case q._false:return\\"false\\";case q._in:return\\"in\\";case q._instanceof:return\\"instanceof\\";case q._typeof:return\\"typeof\\";case q._void:return\\"void\\";case q._delete:return\\"delete\\";case q._async:return\\"async\\";case q._get:return\\"get\\";case q._set:return\\"set\\";case q._declare:return\\"declare\\";case q._readonly:return\\"readonly\\";case q._abstract:return\\"abstract\\";case q._static:return\\"static\\";case q._public:return\\"public\\";case q._private:return\\"private\\";case q._protected:return\\"protected\\";case q._override:return\\"override\\";case q._as:return\\"as\\";case q._enum:return\\"enum\\";case q._type:return\\"type\\";case q._implements:return\\"implements\\";default:return\\"\\"}}jr.formatTokenType=Bd});var qr=Z(Ui=>{\\"use strict\\";Object.defineProperty(Ui,\\"__esModule\\",{value:!0});var Vd=It(),jd=be(),Ta=class{constructor(t,s,i){this.startTokenIndex=t,this.endTokenIndex=s,this.isFunctionScope=i}};Ui.Scope=Ta;var $r=class{constructor(t,s,i,r,a,u,d,y,g,L,p,h,T){this.potentialArrowAt=t,this.noAnonFunctionType=s,this.inDisallowConditionalTypesContext=i,this.tokensLength=r,this.scopesLength=a,this.pos=u,this.type=d,this.contextualKeyword=y,this.start=g,this.end=L,this.isType=p,this.scopeDepth=h,this.error=T}};Ui.StateSnapshot=$r;var ka=class e{constructor(){e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),e.prototype.__init5.call(this),e.prototype.__init6.call(this),e.prototype.__init7.call(this),e.prototype.__init8.call(this),e.prototype.__init9.call(this),e.prototype.__init10.call(this),e.prototype.__init11.call(this),e.prototype.__init12.call(this),e.prototype.__init13.call(this)}__init(){this.potentialArrowAt=-1}__init2(){this.noAnonFunctionType=!1}__init3(){this.inDisallowConditionalTypesContext=!1}__init4(){this.tokens=[]}__init5(){this.scopes=[]}__init6(){this.pos=0}__init7(){this.type=jd.TokenType.eof}__init8(){this.contextualKeyword=Vd.ContextualKeyword.NONE}__init9(){this.start=0}__init10(){this.end=0}__init11(){this.isType=!1}__init12(){this.scopeDepth=0}__init13(){this.error=null}snapshot(){return new $r(this.potentialArrowAt,this.noAnonFunctionType,this.inDisallowConditionalTypesContext,this.tokens.length,this.scopes.length,this.pos,this.type,this.contextualKeyword,this.start,this.end,this.isType,this.scopeDepth,this.error)}restoreFromSnapshot(t){this.potentialArrowAt=t.potentialArrowAt,this.noAnonFunctionType=t.noAnonFunctionType,this.inDisallowConditionalTypesContext=t.inDisallowConditionalTypesContext,this.tokens.length=t.tokensLength,this.scopes.length=t.scopesLength,this.pos=t.pos,this.type=t.type,this.contextualKeyword=t.contextualKeyword,this.start=t.start,this.end=t.end,this.isType=t.isType,this.scopeDepth=t.scopeDepth,this.error=t.error}};Ui.default=ka});var Qt=Z(Kr=>{\\"use strict\\";Object.defineProperty(Kr,\\"__esModule\\",{value:!0});var as;(function(e){e[e.backSpace=8]=\\"backSpace\\";let s=10;e[e.lineFeed=s]=\\"lineFeed\\";let i=9;e[e.tab=i]=\\"tab\\";let r=13;e[e.carriageReturn=r]=\\"carriageReturn\\";let a=14;e[e.shiftOut=a]=\\"shiftOut\\";let u=32;e[e.space=u]=\\"space\\";let d=33;e[e.exclamationMark=d]=\\"exclamationMark\\";let y=34;e[e.quotationMark=y]=\\"quotationMark\\";let g=35;e[e.numberSign=g]=\\"numberSign\\";let L=36;e[e.dollarSign=L]=\\"dollarSign\\";let p=37;e[e.percentSign=p]=\\"percentSign\\";let h=38;e[e.ampersand=h]=\\"ampersand\\";let T=39;e[e.apostrophe=T]=\\"apostrophe\\";let x=40;e[e.leftParenthesis=x]=\\"leftParenthesis\\";let w=41;e[e.rightParenthesis=w]=\\"rightParenthesis\\";let S=42;e[e.asterisk=S]=\\"asterisk\\";let A=43;e[e.plusSign=A]=\\"plusSign\\";let U=44;e[e.comma=U]=\\"comma\\";let M=45;e[e.dash=M]=\\"dash\\";let c=46;e[e.dot=c]=\\"dot\\";let R=47;e[e.slash=R]=\\"slash\\";let W=48;e[e.digit0=W]=\\"digit0\\";let X=49;e[e.digit1=X]=\\"digit1\\";let ie=50;e[e.digit2=ie]=\\"digit2\\";let pe=51;e[e.digit3=pe]=\\"digit3\\";let ae=52;e[e.digit4=ae]=\\"digit4\\";let He=53;e[e.digit5=He]=\\"digit5\\";let qe=54;e[e.digit6=qe]=\\"digit6\\";let Bt=55;e[e.digit7=Bt]=\\"digit7\\";let mt=56;e[e.digit8=mt]=\\"digit8\\";let kt=57;e[e.digit9=kt]=\\"digit9\\";let At=58;e[e.colon=At]=\\"colon\\";let tt=59;e[e.semicolon=tt]=\\"semicolon\\";let nt=60;e[e.lessThan=nt]=\\"lessThan\\";let _t=61;e[e.equalsTo=_t]=\\"equalsTo\\";let ct=62;e[e.greaterThan=ct]=\\"greaterThan\\";let wt=63;e[e.questionMark=wt]=\\"questionMark\\";let $t=64;e[e.atSign=$t]=\\"atSign\\";let Pt=65;e[e.uppercaseA=Pt]=\\"uppercaseA\\";let qt=66;e[e.uppercaseB=qt]=\\"uppercaseB\\";let Tn=67;e[e.uppercaseC=Tn]=\\"uppercaseC\\";let V=68;e[e.uppercaseD=V]=\\"uppercaseD\\";let G=69;e[e.uppercaseE=G]=\\"uppercaseE\\";let J=70;e[e.uppercaseF=J]=\\"uppercaseF\\";let re=71;e[e.uppercaseG=re]=\\"uppercaseG\\";let ve=72;e[e.uppercaseH=ve]=\\"uppercaseH\\";let he=73;e[e.uppercaseI=he]=\\"uppercaseI\\";let Ie=74;e[e.uppercaseJ=Ie]=\\"uppercaseJ\\";let Ee=75;e[e.uppercaseK=Ee]=\\"uppercaseK\\";let Le=76;e[e.uppercaseL=Le]=\\"uppercaseL\\";let Xe=77;e[e.uppercaseM=Xe]=\\"uppercaseM\\";let We=78;e[e.uppercaseN=We]=\\"uppercaseN\\";let Ke=79;e[e.uppercaseO=Ke]=\\"uppercaseO\\";let ut=80;e[e.uppercaseP=ut]=\\"uppercaseP\\";let pt=81;e[e.uppercaseQ=pt]=\\"uppercaseQ\\";let bt=82;e[e.uppercaseR=bt]=\\"uppercaseR\\";let yt=83;e[e.uppercaseS=yt]=\\"uppercaseS\\";let vt=84;e[e.uppercaseT=vt]=\\"uppercaseT\\";let bn=85;e[e.uppercaseU=bn]=\\"uppercaseU\\";let Dn=86;e[e.uppercaseV=Dn]=\\"uppercaseV\\";let Ge=87;e[e.uppercaseW=Ge]=\\"uppercaseW\\";let St=88;e[e.uppercaseX=St]=\\"uppercaseX\\";let ot=89;e[e.uppercaseY=ot]=\\"uppercaseY\\";let zt=90;e[e.uppercaseZ=zt]=\\"uppercaseZ\\";let Xt=91;e[e.leftSquareBracket=Xt]=\\"leftSquareBracket\\";let te=92;e[e.backslash=te]=\\"backslash\\";let Cn=93;e[e.rightSquareBracket=Cn]=\\"rightSquareBracket\\";let Zn=94;e[e.caret=Zn]=\\"caret\\";let _i=95;e[e.underscore=_i]=\\"underscore\\";let Mn=96;e[e.graveAccent=Mn]=\\"graveAccent\\";let xs=97;e[e.lowercaseA=xs]=\\"lowercaseA\\";let Ds=98;e[e.lowercaseB=Ds]=\\"lowercaseB\\";let bi=99;e[e.lowercaseC=bi]=\\"lowercaseC\\";let es=100;e[e.lowercaseD=es]=\\"lowercaseD\\";let Nt=101;e[e.lowercaseE=Nt]=\\"lowercaseE\\";let Rt=102;e[e.lowercaseF=Rt]=\\"lowercaseF\\";let Ue=103;e[e.lowercaseG=Ue]=\\"lowercaseG\\";let wn=104;e[e.lowercaseH=wn]=\\"lowercaseH\\";let de=105;e[e.lowercaseI=de]=\\"lowercaseI\\";let Ms=106;e[e.lowercaseJ=Ms]=\\"lowercaseJ\\";let gs=107;e[e.lowercaseK=gs]=\\"lowercaseK\\";let Ci=108;e[e.lowercaseL=Ci]=\\"lowercaseL\\";let ts=109;e[e.lowercaseM=ts]=\\"lowercaseM\\";let rn=110;e[e.lowercaseN=rn]=\\"lowercaseN\\";let wi=111;e[e.lowercaseO=wi]=\\"lowercaseO\\";let Fn=112;e[e.lowercaseP=Fn]=\\"lowercaseP\\";let Bn=113;e[e.lowercaseQ=Bn]=\\"lowercaseQ\\";let Fs=114;e[e.lowercaseR=Fs]=\\"lowercaseR\\";let Si=115;e[e.lowercaseS=Si]=\\"lowercaseS\\";let Bs=116;e[e.lowercaseT=Bs]=\\"lowercaseT\\";let Vs=117;e[e.lowercaseU=Vs]=\\"lowercaseU\\";let js=118;e[e.lowercaseV=js]=\\"lowercaseV\\";let $s=119;e[e.lowercaseW=$s]=\\"lowercaseW\\";let qs=120;e[e.lowercaseX=qs]=\\"lowercaseX\\";let Ii=121;e[e.lowercaseY=Ii]=\\"lowercaseY\\";let Ei=122;e[e.lowercaseZ=Ei]=\\"lowercaseZ\\";let Ai=123;e[e.leftCurlyBrace=Ai]=\\"leftCurlyBrace\\";let Pi=124;e[e.verticalBar=Pi]=\\"verticalBar\\";let Ks=125;e[e.rightCurlyBrace=Ks]=\\"rightCurlyBrace\\";let Us=126;e[e.tilde=Us]=\\"tilde\\";let Hs=160;e[e.nonBreakingSpace=Hs]=\\"nonBreakingSpace\\";let Ws=5760;e[e.oghamSpaceMark=Ws]=\\"oghamSpaceMark\\";let Gs=8232;e[e.lineSeparator=Gs]=\\"lineSeparator\\";let zs=8233;e[e.paragraphSeparator=zs]=\\"paragraphSeparator\\"})(as||(Kr.charCodes=as={}));function $d(e){return e>=as.digit0&&e<=as.digit9||e>=as.lowercaseA&&e<=as.lowercaseF||e>=as.uppercaseA&&e<=as.uppercaseF}Kr.isDigit=$d});var Zt=Z(ft=>{\\"use strict\\";Object.defineProperty(ft,\\"__esModule\\",{value:!0});function qd(e){return e&&e.__esModule?e:{default:e}}var Kd=qr(),Ud=qd(Kd),Hd=Qt();ft.isJSXEnabled;ft.isTypeScriptEnabled;ft.isFlowEnabled;ft.state;ft.input;ft.nextContextId;function Wd(){return ft.nextContextId++}ft.getNextContextId=Wd;function Gd(e){if(\\"pos\\"in e){let t=n1(e.pos);e.message+=` (${t.line}:${t.column})`,e.loc=t}return e}ft.augmentError=Gd;var Ur=class{constructor(t,s){this.line=t,this.column=s}};ft.Loc=Ur;function n1(e){let t=1,s=1;for(let i=0;i{\\"use strict\\";Object.defineProperty(tn,\\"__esModule\\",{value:!0});var ls=xt(),As=be(),Hr=Qt(),en=Zt();function Xd(e){return en.state.contextualKeyword===e}tn.isContextual=Xd;function Yd(e){let t=ls.lookaheadTypeAndKeyword.call(void 0);return t.type===As.TokenType.name&&t.contextualKeyword===e}tn.isLookaheadContextual=Yd;function s1(e){return en.state.contextualKeyword===e&&ls.eat.call(void 0,As.TokenType.name)}tn.eatContextual=s1;function Jd(e){s1(e)||Wr()}tn.expectContextual=Jd;function i1(){return ls.match.call(void 0,As.TokenType.eof)||ls.match.call(void 0,As.TokenType.braceR)||r1()}tn.canInsertSemicolon=i1;function r1(){let e=en.state.tokens[en.state.tokens.length-1],t=e?e.end:0;for(let s=t;s{\\"use strict\\";Object.defineProperty(Ps,\\"__esModule\\",{value:!0});var va=Qt(),tm=[9,11,12,va.charCodes.space,va.charCodes.nonBreakingSpace,va.charCodes.oghamSpaceMark,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];Ps.WHITESPACE_CHARS=tm;var nm=/(?:\\\\s|\\\\/\\\\/.*|\\\\/\\\\*[^]*?\\\\*\\\\/)*/g;Ps.skipWhiteSpace=nm;var sm=new Uint8Array(65536);Ps.IS_WHITESPACE=sm;for(let e of Ps.WHITESPACE_CHARS)Ps.IS_WHITESPACE[e]=1});var li=Z(vn=>{\\"use strict\\";Object.defineProperty(vn,\\"__esModule\\",{value:!0});var a1=Qt(),im=xa();function rm(e){if(e<48)return e===36;if(e<58)return!0;if(e<65)return!1;if(e<91)return!0;if(e<97)return e===95;if(e<123)return!0;if(e<128)return!1;throw new Error(\\"Should not be called with non-ASCII char code.\\")}var om=new Uint8Array(65536);vn.IS_IDENTIFIER_CHAR=om;for(let e=0;e<128;e++)vn.IS_IDENTIFIER_CHAR[e]=rm(e)?1:0;for(let e=128;e<65536;e++)vn.IS_IDENTIFIER_CHAR[e]=1;for(let e of im.WHITESPACE_CHARS)vn.IS_IDENTIFIER_CHAR[e]=0;vn.IS_IDENTIFIER_CHAR[8232]=0;vn.IS_IDENTIFIER_CHAR[8233]=0;var am=vn.IS_IDENTIFIER_CHAR.slice();vn.IS_IDENTIFIER_START=am;for(let e=a1.charCodes.digit0;e<=a1.charCodes.digit9;e++)vn.IS_IDENTIFIER_START[e]=0});var l1=Z(ga=>{\\"use strict\\";Object.defineProperty(ga,\\"__esModule\\",{value:!0});var ge=It(),Ce=be(),lm=new Int32Array([-1,27,783,918,1755,2376,2862,3483,-1,3699,-1,4617,4752,4833,5130,5508,5940,-1,6480,6939,7749,8181,8451,8613,-1,8829,-1,-1,-1,54,243,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,432,-1,-1,-1,675,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,81,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,108,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,135,-1,-1,-1,-1,-1,-1,-1,-1,-1,162,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,189,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,216,-1,-1,-1,-1,-1,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<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8775,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8802,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(Ce.TokenType._with<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8856,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8883,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8910,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8937,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(Ce.TokenType._yield<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]);ga.READ_WORD_TREE=lm});var h1=Z(ba=>{\\"use strict\\";Object.defineProperty(ba,\\"__esModule\\",{value:!0});var xn=Zt(),us=Qt(),c1=li(),_a=xt(),u1=l1(),p1=be();function cm(){let e=0,t=0,s=xn.state.pos;for(;sus.charCodes.lowercaseZ));){let r=u1.READ_WORD_TREE[e+(t-us.charCodes.lowercaseA)+1];if(r===-1)break;e=r,s++}let i=u1.READ_WORD_TREE[e];if(i>-1&&!c1.IS_IDENTIFIER_CHAR[t]){xn.state.pos=s,i&1?_a.finishToken.call(void 0,i>>>1):_a.finishToken.call(void 0,p1.TokenType.name,i>>>1);return}for(;s{\\"use strict\\";Object.defineProperty(Be,\\"__esModule\\",{value:!0});function um(e){return e&&e.__esModule?e:{default:e}}var b=Zt(),ci=cs(),F=Qt(),d1=li(),wa=xa(),pm=It(),hm=h1(),fm=um(hm),ne=be(),it;(function(e){e[e.Access=0]=\\"Access\\";let s=1;e[e.ExportAccess=s]=\\"ExportAccess\\";let i=s+1;e[e.TopLevelDeclaration=i]=\\"TopLevelDeclaration\\";let r=i+1;e[e.FunctionScopedDeclaration=r]=\\"FunctionScopedDeclaration\\";let a=r+1;e[e.BlockScopedDeclaration=a]=\\"BlockScopedDeclaration\\";let u=a+1;e[e.ObjectShorthandTopLevelDeclaration=u]=\\"ObjectShorthandTopLevelDeclaration\\";let d=u+1;e[e.ObjectShorthandFunctionScopedDeclaration=d]=\\"ObjectShorthandFunctionScopedDeclaration\\";let y=d+1;e[e.ObjectShorthandBlockScopedDeclaration=y]=\\"ObjectShorthandBlockScopedDeclaration\\";let g=y+1;e[e.ObjectShorthand=g]=\\"ObjectShorthand\\";let L=g+1;e[e.ImportDeclaration=L]=\\"ImportDeclaration\\";let p=L+1;e[e.ObjectKey=p]=\\"ObjectKey\\";let h=p+1;e[e.ImportAccess=h]=\\"ImportAccess\\"})(it||(Be.IdentifierRole=it={}));var f1;(function(e){e[e.NoChildren=0]=\\"NoChildren\\";let s=1;e[e.OneChild=s]=\\"OneChild\\";let i=s+1;e[e.StaticChildren=i]=\\"StaticChildren\\";let r=i+1;e[e.KeyAfterPropSpread=r]=\\"KeyAfterPropSpread\\"})(f1||(Be.JSXRole=f1={}));function dm(e){let t=e.identifierRole;return t===it.TopLevelDeclaration||t===it.FunctionScopedDeclaration||t===it.BlockScopedDeclaration||t===it.ObjectShorthandTopLevelDeclaration||t===it.ObjectShorthandFunctionScopedDeclaration||t===it.ObjectShorthandBlockScopedDeclaration}Be.isDeclaration=dm;function mm(e){let t=e.identifierRole;return t===it.FunctionScopedDeclaration||t===it.BlockScopedDeclaration||t===it.ObjectShorthandFunctionScopedDeclaration||t===it.ObjectShorthandBlockScopedDeclaration}Be.isNonTopLevelDeclaration=mm;function ym(e){let t=e.identifierRole;return t===it.TopLevelDeclaration||t===it.ObjectShorthandTopLevelDeclaration||t===it.ImportDeclaration}Be.isTopLevelDeclaration=ym;function Tm(e){let t=e.identifierRole;return t===it.TopLevelDeclaration||t===it.BlockScopedDeclaration||t===it.ObjectShorthandTopLevelDeclaration||t===it.ObjectShorthandBlockScopedDeclaration}Be.isBlockScopedDeclaration=Tm;function km(e){let t=e.identifierRole;return t===it.FunctionScopedDeclaration||t===it.ObjectShorthandFunctionScopedDeclaration}Be.isFunctionScopedDeclaration=km;function vm(e){return e.identifierRole===it.ObjectShorthandTopLevelDeclaration||e.identifierRole===it.ObjectShorthandBlockScopedDeclaration||e.identifierRole===it.ObjectShorthandFunctionScopedDeclaration}Be.isObjectShorthandDeclaration=vm;var Hi=class{constructor(){this.type=b.state.type,this.contextualKeyword=b.state.contextualKeyword,this.start=b.state.start,this.end=b.state.end,this.scopeDepth=b.state.scopeDepth,this.isType=b.state.isType,this.identifierRole=null,this.jsxRole=null,this.shadowsGlobal=!1,this.isAsyncOperation=!1,this.contextId=null,this.rhsEndIndex=null,this.isExpression=!1,this.numNullishCoalesceStarts=0,this.numNullishCoalesceEnds=0,this.isOptionalChainStart=!1,this.isOptionalChainEnd=!1,this.subscriptStartIndex=null,this.nullishStartIndex=null}};Be.Token=Hi;function zr(){b.state.tokens.push(new Hi),k1()}Be.next=zr;function xm(){b.state.tokens.push(new Hi),b.state.start=b.state.pos,Km()}Be.nextTemplateToken=xm;function gm(){b.state.type===ne.TokenType.assign&&--b.state.pos,jm()}Be.retokenizeSlashAsRegex=gm;function _m(e){for(let s=b.state.tokens.length-e;s=b.input.length){let e=b.state.tokens;e.length>=2&&e[e.length-1].start>=b.input.length&&e[e.length-2].start>=b.input.length&&ci.unexpected.call(void 0,\\"Unexpectedly reached the end of input.\\"),Ve(ne.TokenType.eof);return}Em(b.input.charCodeAt(b.state.pos))}Be.nextToken=k1;function Em(e){d1.IS_IDENTIFIER_START[e]||e===F.charCodes.backslash||e===F.charCodes.atSign&&b.input.charCodeAt(b.state.pos+1)===F.charCodes.atSign?fm.default.call(void 0):_1(e)}function Am(){for(;b.input.charCodeAt(b.state.pos)!==F.charCodes.asterisk||b.input.charCodeAt(b.state.pos+1)!==F.charCodes.slash;)if(b.state.pos++,b.state.pos>b.input.length){ci.unexpected.call(void 0,\\"Unterminated comment\\",b.state.pos-2);return}b.state.pos+=2}function v1(e){let t=b.input.charCodeAt(b.state.pos+=e);if(b.state.pos=F.charCodes.digit0&&e<=F.charCodes.digit9){b1(!0);return}e===F.charCodes.dot&&b.input.charCodeAt(b.state.pos+2)===F.charCodes.dot?(b.state.pos+=3,Ve(ne.TokenType.ellipsis)):(++b.state.pos,Ve(ne.TokenType.dot))}function Nm(){b.input.charCodeAt(b.state.pos+1)===F.charCodes.equalsTo?Fe(ne.TokenType.assign,2):Fe(ne.TokenType.slash,1)}function Rm(e){let t=e===F.charCodes.asterisk?ne.TokenType.star:ne.TokenType.modulo,s=1,i=b.input.charCodeAt(b.state.pos+1);e===F.charCodes.asterisk&&i===F.charCodes.asterisk&&(s++,i=b.input.charCodeAt(b.state.pos+2),t=ne.TokenType.exponent),i===F.charCodes.equalsTo&&b.input.charCodeAt(b.state.pos+2)!==F.charCodes.greaterThan&&(s++,t=ne.TokenType.assign),Fe(t,s)}function Lm(e){let t=b.input.charCodeAt(b.state.pos+1);if(t===e){b.input.charCodeAt(b.state.pos+2)===F.charCodes.equalsTo?Fe(ne.TokenType.assign,3):Fe(e===F.charCodes.verticalBar?ne.TokenType.logicalOR:ne.TokenType.logicalAND,2);return}if(e===F.charCodes.verticalBar){if(t===F.charCodes.greaterThan){Fe(ne.TokenType.pipeline,2);return}else if(t===F.charCodes.rightCurlyBrace&&b.isFlowEnabled){Fe(ne.TokenType.braceBarR,2);return}}if(t===F.charCodes.equalsTo){Fe(ne.TokenType.assign,2);return}Fe(e===F.charCodes.verticalBar?ne.TokenType.bitwiseOR:ne.TokenType.bitwiseAND,1)}function Om(){b.input.charCodeAt(b.state.pos+1)===F.charCodes.equalsTo?Fe(ne.TokenType.assign,2):Fe(ne.TokenType.bitwiseXOR,1)}function Dm(e){let t=b.input.charCodeAt(b.state.pos+1);if(t===e){Fe(ne.TokenType.preIncDec,2);return}t===F.charCodes.equalsTo?Fe(ne.TokenType.assign,2):e===F.charCodes.plusSign?Fe(ne.TokenType.plus,1):Fe(ne.TokenType.minus,1)}function Mm(){let e=b.input.charCodeAt(b.state.pos+1);if(e===F.charCodes.lessThan){if(b.input.charCodeAt(b.state.pos+2)===F.charCodes.equalsTo){Fe(ne.TokenType.assign,3);return}b.state.isType?Fe(ne.TokenType.lessThan,1):Fe(ne.TokenType.bitShiftL,2);return}e===F.charCodes.equalsTo?Fe(ne.TokenType.relationalOrEqual,2):Fe(ne.TokenType.lessThan,1)}function g1(){if(b.state.isType){Fe(ne.TokenType.greaterThan,1);return}let e=b.input.charCodeAt(b.state.pos+1);if(e===F.charCodes.greaterThan){let t=b.input.charCodeAt(b.state.pos+2)===F.charCodes.greaterThan?3:2;if(b.input.charCodeAt(b.state.pos+t)===F.charCodes.equalsTo){Fe(ne.TokenType.assign,t+1);return}Fe(ne.TokenType.bitShiftR,t);return}e===F.charCodes.equalsTo?Fe(ne.TokenType.relationalOrEqual,2):Fe(ne.TokenType.greaterThan,1)}function Fm(){b.state.type===ne.TokenType.greaterThan&&(b.state.pos-=1,g1())}Be.rescan_gt=Fm;function Bm(e){let t=b.input.charCodeAt(b.state.pos+1);if(t===F.charCodes.equalsTo){Fe(ne.TokenType.equality,b.input.charCodeAt(b.state.pos+2)===F.charCodes.equalsTo?3:2);return}if(e===F.charCodes.equalsTo&&t===F.charCodes.greaterThan){b.state.pos+=2,Ve(ne.TokenType.arrow);return}Fe(e===F.charCodes.equalsTo?ne.TokenType.eq:ne.TokenType.bang,1)}function Vm(){let e=b.input.charCodeAt(b.state.pos+1),t=b.input.charCodeAt(b.state.pos+2);e===F.charCodes.questionMark&&!(b.isFlowEnabled&&b.state.isType)?t===F.charCodes.equalsTo?Fe(ne.TokenType.assign,3):Fe(ne.TokenType.nullishCoalescing,2):e===F.charCodes.dot&&!(t>=F.charCodes.digit0&&t<=F.charCodes.digit9)?(b.state.pos+=2,Ve(ne.TokenType.questionDot)):(++b.state.pos,Ve(ne.TokenType.question))}function _1(e){switch(e){case F.charCodes.numberSign:++b.state.pos,Ve(ne.TokenType.hash);return;case F.charCodes.dot:Pm();return;case F.charCodes.leftParenthesis:++b.state.pos,Ve(ne.TokenType.parenL);return;case F.charCodes.rightParenthesis:++b.state.pos,Ve(ne.TokenType.parenR);return;case F.charCodes.semicolon:++b.state.pos,Ve(ne.TokenType.semi);return;case F.charCodes.comma:++b.state.pos,Ve(ne.TokenType.comma);return;case F.charCodes.leftSquareBracket:++b.state.pos,Ve(ne.TokenType.bracketL);return;case F.charCodes.rightSquareBracket:++b.state.pos,Ve(ne.TokenType.bracketR);return;case F.charCodes.leftCurlyBrace:b.isFlowEnabled&&b.input.charCodeAt(b.state.pos+1)===F.charCodes.verticalBar?Fe(ne.TokenType.braceBarL,2):(++b.state.pos,Ve(ne.TokenType.braceL));return;case F.charCodes.rightCurlyBrace:++b.state.pos,Ve(ne.TokenType.braceR);return;case F.charCodes.colon:b.input.charCodeAt(b.state.pos+1)===F.charCodes.colon?Fe(ne.TokenType.doubleColon,2):(++b.state.pos,Ve(ne.TokenType.colon));return;case F.charCodes.questionMark:Vm();return;case F.charCodes.atSign:++b.state.pos,Ve(ne.TokenType.at);return;case F.charCodes.graveAccent:++b.state.pos,Ve(ne.TokenType.backQuote);return;case F.charCodes.digit0:{let t=b.input.charCodeAt(b.state.pos+1);if(t===F.charCodes.lowercaseX||t===F.charCodes.uppercaseX||t===F.charCodes.lowercaseO||t===F.charCodes.uppercaseO||t===F.charCodes.lowercaseB||t===F.charCodes.uppercaseB){$m();return}}case F.charCodes.digit1:case F.charCodes.digit2:case F.charCodes.digit3:case F.charCodes.digit4:case F.charCodes.digit5:case F.charCodes.digit6:case F.charCodes.digit7:case F.charCodes.digit8:case F.charCodes.digit9:b1(!1);return;case F.charCodes.quotationMark:case F.charCodes.apostrophe:qm(e);return;case F.charCodes.slash:Nm();return;case F.charCodes.percentSign:case F.charCodes.asterisk:Rm(e);return;case F.charCodes.verticalBar:case F.charCodes.ampersand:Lm(e);return;case F.charCodes.caret:Om();return;case F.charCodes.plusSign:case F.charCodes.dash:Dm(e);return;case F.charCodes.lessThan:Mm();return;case F.charCodes.greaterThan:g1();return;case F.charCodes.equalsTo:case F.charCodes.exclamationMark:Bm(e);return;case F.charCodes.tilde:Fe(ne.TokenType.tilde,1);return;default:break}ci.unexpected.call(void 0,`Unexpected character \'${String.fromCharCode(e)}\'`,b.state.pos)}Be.getTokenFromCode=_1;function Fe(e,t){b.state.pos+=t,Ve(e)}function jm(){let e=b.state.pos,t=!1,s=!1;for(;;){if(b.state.pos>=b.input.length){ci.unexpected.call(void 0,\\"Unterminated regular expression\\",e);return}let i=b.input.charCodeAt(b.state.pos);if(t)t=!1;else{if(i===F.charCodes.leftSquareBracket)s=!0;else if(i===F.charCodes.rightSquareBracket&&s)s=!1;else if(i===F.charCodes.slash&&!s)break;t=i===F.charCodes.backslash}++b.state.pos}++b.state.pos,C1(),Ve(ne.TokenType.regexp)}function Ca(){for(;;){let e=b.input.charCodeAt(b.state.pos);if(e>=F.charCodes.digit0&&e<=F.charCodes.digit9||e===F.charCodes.underscore)b.state.pos++;else break}}function $m(){for(b.state.pos+=2;;){let t=b.input.charCodeAt(b.state.pos);if(t>=F.charCodes.digit0&&t<=F.charCodes.digit9||t>=F.charCodes.lowercaseA&&t<=F.charCodes.lowercaseF||t>=F.charCodes.uppercaseA&&t<=F.charCodes.uppercaseF||t===F.charCodes.underscore)b.state.pos++;else break}b.input.charCodeAt(b.state.pos)===F.charCodes.lowercaseN?(++b.state.pos,Ve(ne.TokenType.bigint)):Ve(ne.TokenType.num)}function b1(e){let t=!1,s=!1;e||Ca();let i=b.input.charCodeAt(b.state.pos);if(i===F.charCodes.dot&&(++b.state.pos,Ca(),i=b.input.charCodeAt(b.state.pos)),(i===F.charCodes.uppercaseE||i===F.charCodes.lowercaseE)&&(i=b.input.charCodeAt(++b.state.pos),(i===F.charCodes.plusSign||i===F.charCodes.dash)&&++b.state.pos,Ca(),i=b.input.charCodeAt(b.state.pos)),i===F.charCodes.lowercaseN?(++b.state.pos,t=!0):i===F.charCodes.lowercaseM&&(++b.state.pos,s=!0),t){Ve(ne.TokenType.bigint);return}if(s){Ve(ne.TokenType.decimal);return}Ve(ne.TokenType.num)}function qm(e){for(b.state.pos++;;){if(b.state.pos>=b.input.length){ci.unexpected.call(void 0,\\"Unterminated string constant\\");return}let t=b.input.charCodeAt(b.state.pos);if(t===F.charCodes.backslash)b.state.pos++;else if(t===e)break;b.state.pos++}b.state.pos++,Ve(ne.TokenType.string)}function Km(){for(;;){if(b.state.pos>=b.input.length){ci.unexpected.call(void 0,\\"Unterminated template\\");return}let e=b.input.charCodeAt(b.state.pos);if(e===F.charCodes.graveAccent||e===F.charCodes.dollarSign&&b.input.charCodeAt(b.state.pos+1)===F.charCodes.leftCurlyBrace){if(b.state.pos===b.state.start&&Sa(ne.TokenType.template))if(e===F.charCodes.dollarSign){b.state.pos+=2,Ve(ne.TokenType.dollarBraceL);return}else{++b.state.pos,Ve(ne.TokenType.backQuote);return}Ve(ne.TokenType.template);return}e===F.charCodes.backslash&&b.state.pos++,b.state.pos++}}function C1(){for(;b.state.pos{\\"use strict\\";Object.defineProperty(Ia,\\"__esModule\\",{value:!0});var w1=be();function Um(e,t=e.currentIndex()){let s=t+1;if(Xr(e,s)){let i=e.identifierNameAtIndex(t);return{isType:!1,leftName:i,rightName:i,endIndex:s}}if(s++,Xr(e,s))return{isType:!0,leftName:null,rightName:null,endIndex:s};if(s++,Xr(e,s))return{isType:!1,leftName:e.identifierNameAtIndex(t),rightName:e.identifierNameAtIndex(t+2),endIndex:s};if(s++,Xr(e,s))return{isType:!0,leftName:null,rightName:null,endIndex:s};throw new Error(`Unexpected import/export specifier at ${t}`)}Ia.default=Um;function Xr(e,t){let s=e.tokens[t];return s.type===w1.TokenType.braceR||s.type===w1.TokenType.comma}});var S1=Z(Ea=>{\\"use strict\\";Object.defineProperty(Ea,\\"__esModule\\",{value:!0});Ea.default=new Map([[\\"quot\\",\'\\"\'],[\\"amp\\",\\"&\\"],[\\"apos\\",\\"\'\\"],[\\"lt\\",\\"<\\"],[\\"gt\\",\\">\\"],[\\"nbsp\\",\\"\\\\xA0\\"],[\\"iexcl\\",\\"\\\\xA1\\"],[\\"cent\\",\\"\\\\xA2\\"],[\\"pound\\",\\"\\\\xA3\\"],[\\"curren\\",\\"\\\\xA4\\"],[\\"yen\\",\\"\\\\xA5\\"],[\\"brvbar\\",\\"\\\\xA6\\"],[\\"sect\\",\\"\\\\xA7\\"],[\\"uml\\",\\"\\\\xA8\\"],[\\"copy\\",\\"\\\\xA9\\"],[\\"ordf\\",\\"\\\\xAA\\"],[\\"laquo\\",\\"\\\\xAB\\"],[\\"not\\",\\"\\\\xAC\\"],[\\"shy\\",\\"\\\\xAD\\"],[\\"reg\\",\\"\\\\xAE\\"],[\\"macr\\",\\"\\\\xAF\\"],[\\"deg\\",\\"\\\\xB0\\"],[\\"plusmn\\",\\"\\\\xB1\\"],[\\"sup2\\",\\"\\\\xB2\\"],[\\"sup3\\",\\"\\\\xB3\\"],[\\"acute\\",\\"\\\\xB4\\"],[\\"micro\\",\\"\\\\xB5\\"],[\\"para\\",\\"\\\\xB6\\"],[\\"middot\\",\\"\\\\xB7\\"],[\\"cedil\\",\\"\\\\xB8\\"],[\\"sup1\\",\\"\\\\xB9\\"],[\\"ordm\\",\\"\\\\xBA\\"],[\\"raquo\\",\\"\\\\xBB\\"],[\\"frac14\\",\\"\\\\xBC\\"],[\\"frac12\\",\\"\\\\xBD\\"],[\\"frac34\\",\\"\\\\xBE\\"],[\\"iquest\\",\\"\\\\xBF\\"],[\\"Agrave\\",\\"\\\\xC0\\"],[\\"Aacute\\",\\"\\\\xC1\\"],[\\"Acirc\\",\\"\\\\xC2\\"],[\\"Atilde\\",\\"\\\\xC3\\"],[\\"Auml\\",\\"\\\\xC4\\"],[\\"Aring\\",\\"\\\\xC5\\"],[\\"AElig\\",\\"\\\\xC6\\"],[\\"Ccedil\\",\\"\\\\xC7\\"],[\\"Egrave\\",\\"\\\\xC8\\"],[\\"Eacute\\",\\"\\\\xC9\\"],[\\"Ecirc\\",\\"\\\\xCA\\"],[\\"Euml\\",\\"\\\\xCB\\"],[\\"Igrave\\",\\"\\\\xCC\\"],[\\"Iacute\\",\\"\\\\xCD\\"],[\\"Icirc\\",\\"\\\\xCE\\"],[\\"Iuml\\",\\"\\\\xCF\\"],[\\"ETH\\",\\"\\\\xD0\\"],[\\"Ntilde\\",\\"\\\\xD1\\"],[\\"Ograve\\",\\"\\\\xD2\\"],[\\"Oacute\\",\\"\\\\xD3\\"],[\\"Ocirc\\",\\"\\\\xD4\\"],[\\"Otilde\\",\\"\\\\xD5\\"],[\\"Ouml\\",\\"\\\\xD6\\"],[\\"times\\",\\"\\\\xD7\\"],[\\"Oslash\\",\\"\\\\xD8\\"],[\\"Ugrave\\",\\"\\\\xD9\\"],[\\"Uacute\\",\\"\\\\xDA\\"],[\\"Ucirc\\",\\"\\\\xDB\\"],[\\"Uuml\\",\\"\\\\xDC\\"],[\\"Yacute\\",\\"\\\\xDD\\"],[\\"THORN\\",\\"\\\\xDE\\"],[\\"szlig\\",\\"\\\\xDF\\"],[\\"agrave\\",\\"\\\\xE0\\"],[\\"aacute\\",\\"\\\\xE1\\"],[\\"acirc\\",\\"\\\\xE2\\"],[\\"atilde\\",\\"\\\\xE3\\"],[\\"auml\\",\\"\\\\xE4\\"],[\\"aring\\",\\"\\\\xE5\\"],[\\"aelig\\",\\"\\\\xE6\\"],[\\"ccedil\\",\\"\\\\xE7\\"],[\\"egrave\\",\\"\\\\xE8\\"],[\\"eacute\\",\\"\\\\xE9\\"],[\\"ecirc\\",\\"\\\\xEA\\"],[\\"euml\\",\\"\\\\xEB\\"],[\\"igrave\\",\\"\\\\xEC\\"],[\\"iacute\\",\\"\\\\xED\\"],[\\"icirc\\",\\"\\\\xEE\\"],[\\"iuml\\",\\"\\\\xEF\\"],[\\"eth\\",\\"\\\\xF0\\"],[\\"ntilde\\",\\"\\\\xF1\\"],[\\"ograve\\",\\"\\\\xF2\\"],[\\"oacute\\",\\"\\\\xF3\\"],[\\"ocirc\\",\\"\\\\xF4\\"],[\\"otilde\\",\\"\\\\xF5\\"],[\\"ouml\\",\\"\\\\xF6\\"],[\\"divide\\",\\"\\\\xF7\\"],[\\"oslash\\",\\"\\\\xF8\\"],[\\"ugrave\\",\\"\\\\xF9\\"],[\\"uacute\\",\\"\\\\xFA\\"],[\\"ucirc\\",\\"\\\\xFB\\"],[\\"uuml\\",\\"\\\\xFC\\"],[\\"yacute\\",\\"\\\\xFD\\"],[\\"thorn\\",\\"\\\\xFE\\"],[\\"yuml\\",\\"\\\\xFF\\"],[\\"OElig\\",\\"\\\\u0152\\"],[\\"oelig\\",\\"\\\\u0153\\"],[\\"Scaron\\",\\"\\\\u0160\\"],[\\"scaron\\",\\"\\\\u0161\\"],[\\"Yuml\\",\\"\\\\u0178\\"],[\\"fnof\\",\\"\\\\u0192\\"],[\\"circ\\",\\"\\\\u02C6\\"],[\\"tilde\\",\\"\\\\u02DC\\"],[\\"Alpha\\",\\"\\\\u0391\\"],[\\"Beta\\",\\"\\\\u0392\\"],[\\"Gamma\\",\\"\\\\u0393\\"],[\\"Delta\\",\\"\\\\u0394\\"],[\\"Epsilon\\",\\"\\\\u0395\\"],[\\"Zeta\\",\\"\\\\u0396\\"],[\\"Eta\\",\\"\\\\u0397\\"],[\\"Theta\\",\\"\\\\u0398\\"],[\\"Iota\\",\\"\\\\u0399\\"],[\\"Kappa\\",\\"\\\\u039A\\"],[\\"Lambda\\",\\"\\\\u039B\\"],[\\"Mu\\",\\"\\\\u039C\\"],[\\"Nu\\",\\"\\\\u039D\\"],[\\"Xi\\",\\"\\\\u039E\\"],[\\"Omicron\\",\\"\\\\u039F\\"],[\\"Pi\\",\\"\\\\u03A0\\"],[\\"Rho\\",\\"\\\\u03A1\\"],[\\"Sigma\\",\\"\\\\u03A3\\"],[\\"Tau\\",\\"\\\\u03A4\\"],[\\"Upsilon\\",\\"\\\\u03A5\\"],[\\"Phi\\",\\"\\\\u03A6\\"],[\\"Chi\\",\\"\\\\u03A7\\"],[\\"Psi\\",\\"\\\\u03A8\\"],[\\"Omega\\",\\"\\\\u03A9\\"],[\\"alpha\\",\\"\\\\u03B1\\"],[\\"beta\\",\\"\\\\u03B2\\"],[\\"gamma\\",\\"\\\\u03B3\\"],[\\"delta\\",\\"\\\\u03B4\\"],[\\"epsilon\\",\\"\\\\u03B5\\"],[\\"zeta\\",\\"\\\\u03B6\\"],[\\"eta\\",\\"\\\\u03B7\\"],[\\"theta\\",\\"\\\\u03B8\\"],[\\"iota\\",\\"\\\\u03B9\\"],[\\"kappa\\",\\"\\\\u03BA\\"],[\\"lambda\\",\\"\\\\u03BB\\"],[\\"mu\\",\\"\\\\u03BC\\"],[\\"nu\\",\\"\\\\u03BD\\"],[\\"xi\\",\\"\\\\u03BE\\"],[\\"omicron\\",\\"\\\\u03BF\\"],[\\"pi\\",\\"\\\\u03C0\\"],[\\"rho\\",\\"\\\\u03C1\\"],[\\"sigmaf\\",\\"\\\\u03C2\\"],[\\"sigma\\",\\"\\\\u03C3\\"],[\\"tau\\",\\"\\\\u03C4\\"],[\\"upsilon\\",\\"\\\\u03C5\\"],[\\"phi\\",\\"\\\\u03C6\\"],[\\"chi\\",\\"\\\\u03C7\\"],[\\"psi\\",\\"\\\\u03C8\\"],[\\"omega\\",\\"\\\\u03C9\\"],[\\"thetasym\\",\\"\\\\u03D1\\"],[\\"upsih\\",\\"\\\\u03D2\\"],[\\"piv\\",\\"\\\\u03D6\\"],[\\"ensp\\",\\"\\\\u2002\\"],[\\"emsp\\",\\"\\\\u2003\\"],[\\"thinsp\\",\\"\\\\u2009\\"],[\\"zwnj\\",\\"\\\\u200C\\"],[\\"zwj\\",\\"\\\\u200D\\"],[\\"lrm\\",\\"\\\\u200E\\"],[\\"rlm\\",\\"\\\\u200F\\"],[\\"ndash\\",\\"\\\\u2013\\"],[\\"mdash\\",\\"\\\\u2014\\"],[\\"lsquo\\",\\"\\\\u2018\\"],[\\"rsquo\\",\\"\\\\u2019\\"],[\\"sbquo\\",\\"\\\\u201A\\"],[\\"ldquo\\",\\"\\\\u201C\\"],[\\"rdquo\\",\\"\\\\u201D\\"],[\\"bdquo\\",\\"\\\\u201E\\"],[\\"dagger\\",\\"\\\\u2020\\"],[\\"Dagger\\",\\"\\\\u2021\\"],[\\"bull\\",\\"\\\\u2022\\"],[\\"hellip\\",\\"\\\\u2026\\"],[\\"permil\\",\\"\\\\u2030\\"],[\\"prime\\",\\"\\\\u2032\\"],[\\"Prime\\",\\"\\\\u2033\\"],[\\"lsaquo\\",\\"\\\\u2039\\"],[\\"rsaquo\\",\\"\\\\u203A\\"],[\\"oline\\",\\"\\\\u203E\\"],[\\"frasl\\",\\"\\\\u2044\\"],[\\"euro\\",\\"\\\\u20AC\\"],[\\"image\\",\\"\\\\u2111\\"],[\\"weierp\\",\\"\\\\u2118\\"],[\\"real\\",\\"\\\\u211C\\"],[\\"trade\\",\\"\\\\u2122\\"],[\\"alefsym\\",\\"\\\\u2135\\"],[\\"larr\\",\\"\\\\u2190\\"],[\\"uarr\\",\\"\\\\u2191\\"],[\\"rarr\\",\\"\\\\u2192\\"],[\\"darr\\",\\"\\\\u2193\\"],[\\"harr\\",\\"\\\\u2194\\"],[\\"crarr\\",\\"\\\\u21B5\\"],[\\"lArr\\",\\"\\\\u21D0\\"],[\\"uArr\\",\\"\\\\u21D1\\"],[\\"rArr\\",\\"\\\\u21D2\\"],[\\"dArr\\",\\"\\\\u21D3\\"],[\\"hArr\\",\\"\\\\u21D4\\"],[\\"forall\\",\\"\\\\u2200\\"],[\\"part\\",\\"\\\\u2202\\"],[\\"exist\\",\\"\\\\u2203\\"],[\\"empty\\",\\"\\\\u2205\\"],[\\"nabla\\",\\"\\\\u2207\\"],[\\"isin\\",\\"\\\\u2208\\"],[\\"notin\\",\\"\\\\u2209\\"],[\\"ni\\",\\"\\\\u220B\\"],[\\"prod\\",\\"\\\\u220F\\"],[\\"sum\\",\\"\\\\u2211\\"],[\\"minus\\",\\"\\\\u2212\\"],[\\"lowast\\",\\"\\\\u2217\\"],[\\"radic\\",\\"\\\\u221A\\"],[\\"prop\\",\\"\\\\u221D\\"],[\\"infin\\",\\"\\\\u221E\\"],[\\"ang\\",\\"\\\\u2220\\"],[\\"and\\",\\"\\\\u2227\\"],[\\"or\\",\\"\\\\u2228\\"],[\\"cap\\",\\"\\\\u2229\\"],[\\"cup\\",\\"\\\\u222A\\"],[\\"int\\",\\"\\\\u222B\\"],[\\"there4\\",\\"\\\\u2234\\"],[\\"sim\\",\\"\\\\u223C\\"],[\\"cong\\",\\"\\\\u2245\\"],[\\"asymp\\",\\"\\\\u2248\\"],[\\"ne\\",\\"\\\\u2260\\"],[\\"equiv\\",\\"\\\\u2261\\"],[\\"le\\",\\"\\\\u2264\\"],[\\"ge\\",\\"\\\\u2265\\"],[\\"sub\\",\\"\\\\u2282\\"],[\\"sup\\",\\"\\\\u2283\\"],[\\"nsub\\",\\"\\\\u2284\\"],[\\"sube\\",\\"\\\\u2286\\"],[\\"supe\\",\\"\\\\u2287\\"],[\\"oplus\\",\\"\\\\u2295\\"],[\\"otimes\\",\\"\\\\u2297\\"],[\\"perp\\",\\"\\\\u22A5\\"],[\\"sdot\\",\\"\\\\u22C5\\"],[\\"lceil\\",\\"\\\\u2308\\"],[\\"rceil\\",\\"\\\\u2309\\"],[\\"lfloor\\",\\"\\\\u230A\\"],[\\"rfloor\\",\\"\\\\u230B\\"],[\\"lang\\",\\"\\\\u2329\\"],[\\"rang\\",\\"\\\\u232A\\"],[\\"loz\\",\\"\\\\u25CA\\"],[\\"spades\\",\\"\\\\u2660\\"],[\\"clubs\\",\\"\\\\u2663\\"],[\\"hearts\\",\\"\\\\u2665\\"],[\\"diams\\",\\"\\\\u2666\\"]])});var Pa=Z(Aa=>{\\"use strict\\";Object.defineProperty(Aa,\\"__esModule\\",{value:!0});function Hm(e){let[t,s]=I1(e.jsxPragma||\\"React.createElement\\"),[i,r]=I1(e.jsxFragmentPragma||\\"React.Fragment\\");return{base:t,suffix:s,fragmentBase:i,fragmentSuffix:r}}Aa.default=Hm;function I1(e){let t=e.indexOf(\\".\\");return t===-1&&(t=e.length),[e.slice(0,t),e.slice(t)]}});var hn=Z(Ra=>{\\"use strict\\";Object.defineProperty(Ra,\\"__esModule\\",{value:!0});var Na=class{getPrefixCode(){return\\"\\"}getHoistedCode(){return\\"\\"}getSuffixCode(){return\\"\\"}};Ra.default=Na});var Da=Z(Jr=>{\\"use strict\\";Object.defineProperty(Jr,\\"__esModule\\",{value:!0});function Oa(e){return e&&e.__esModule?e:{default:e}}var Wm=S1(),Gm=Oa(Wm),Yr=xt(),Re=be(),An=Qt(),zm=Pa(),Xm=Oa(zm),Ym=hn(),Jm=Oa(Ym),La=class e extends Jm.default{__init(){this.lastLineNumber=1}__init2(){this.lastIndex=0}__init3(){this.filenameVarName=null}__init4(){this.esmAutomaticImportNameResolutions={}}__init5(){this.cjsAutomaticModuleNameResolutions={}}constructor(t,s,i,r,a){super(),this.rootTransformer=t,this.tokens=s,this.importProcessor=i,this.nameManager=r,this.options=a,e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),e.prototype.__init5.call(this),this.jsxPragmaInfo=Xm.default.call(void 0,a),this.isAutomaticRuntime=a.jsxRuntime===\\"automatic\\",this.jsxImportSource=a.jsxImportSource||\\"react\\"}process(){return this.tokens.matches1(Re.TokenType.jsxTagStart)?(this.processJSXTag(),!0):!1}getPrefixCode(){let t=\\"\\";if(this.filenameVarName&&(t+=`const ${this.filenameVarName} = ${JSON.stringify(this.options.filePath||\\"\\")};`),this.isAutomaticRuntime)if(this.importProcessor)for(let[s,i]of Object.entries(this.cjsAutomaticModuleNameResolutions))t+=`var ${i} = require(\\"${s}\\");`;else{let{createElement:s,...i}=this.esmAutomaticImportNameResolutions;s&&(t+=`import {createElement as ${s}} from \\"${this.jsxImportSource}\\";`);let r=Object.entries(i).map(([a,u])=>`${a} as ${u}`).join(\\", \\");if(r){let a=this.jsxImportSource+(this.options.production?\\"/jsx-runtime\\":\\"/jsx-dev-runtime\\");t+=`import {${r}} from \\"${a}\\";`}}return t}processJSXTag(){let{jsxRole:t,start:s}=this.tokens.currentToken(),i=this.options.production?null:this.getElementLocationCode(s);this.isAutomaticRuntime&&t!==Yr.JSXRole.KeyAfterPropSpread?this.transformTagToJSXFunc(i,t):this.transformTagToCreateElement(i)}getElementLocationCode(t){return`lineNumber: ${this.getLineNumberForIndex(t)}`}getLineNumberForIndex(t){let s=this.tokens.code;for(;this.lastIndex or > at the end of the tag.\\");r&&this.tokens.appendCode(`, ${r}`)}for(this.options.production||(r===null&&this.tokens.appendCode(\\", void 0\\"),this.tokens.appendCode(`, ${i}, ${this.getDevSource(t)}, this`)),this.tokens.removeInitialToken();!this.tokens.matches1(Re.TokenType.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(\\")\\")}transformTagToCreateElement(t){if(this.tokens.replaceToken(this.getCreateElementInvocationCode()),this.tokens.matches1(Re.TokenType.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, null`),this.processChildren(!0);else if(this.processTagIntro(),this.processPropsObjectWithDevInfo(t),!this.tokens.matches2(Re.TokenType.slash,Re.TokenType.jsxTagEnd))if(this.tokens.matches1(Re.TokenType.jsxTagEnd))this.tokens.removeToken(),this.processChildren(!0);else throw new Error(\\"Expected either /> or > at the end of the tag.\\");for(this.tokens.removeInitialToken();!this.tokens.matches1(Re.TokenType.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(\\")\\")}getJSXFuncInvocationCode(t){return this.options.production?t?this.claimAutoImportedFuncInvocation(\\"jsxs\\",\\"/jsx-runtime\\"):this.claimAutoImportedFuncInvocation(\\"jsx\\",\\"/jsx-runtime\\"):this.claimAutoImportedFuncInvocation(\\"jsxDEV\\",\\"/jsx-dev-runtime\\")}getCreateElementInvocationCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedFuncInvocation(\\"createElement\\",\\"\\");{let{jsxPragmaInfo:t}=this;return`${this.importProcessor&&this.importProcessor.getIdentifierReplacement(t.base)||t.base}${t.suffix}(`}}getFragmentCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedName(\\"Fragment\\",this.options.production?\\"/jsx-runtime\\":\\"/jsx-dev-runtime\\");{let{jsxPragmaInfo:t}=this;return(this.importProcessor&&this.importProcessor.getIdentifierReplacement(t.fragmentBase)||t.fragmentBase)+t.fragmentSuffix}}claimAutoImportedFuncInvocation(t,s){let i=this.claimAutoImportedName(t,s);return this.importProcessor?`${i}.call(void 0, `:`${i}(`}claimAutoImportedName(t,s){if(this.importProcessor){let i=this.jsxImportSource+s;return this.cjsAutomaticModuleNameResolutions[i]||(this.cjsAutomaticModuleNameResolutions[i]=this.importProcessor.getFreeIdentifierForPath(i)),`${this.cjsAutomaticModuleNameResolutions[i]}.${t}`}else return this.esmAutomaticImportNameResolutions[t]||(this.esmAutomaticImportNameResolutions[t]=this.nameManager.claimFreeName(`_${t}`)),this.esmAutomaticImportNameResolutions[t]}processTagIntro(){let t=this.tokens.currentIndex()+1;for(;this.tokens.tokens[t].isType||!this.tokens.matches2AtIndex(t-1,Re.TokenType.jsxName,Re.TokenType.jsxName)&&!this.tokens.matches2AtIndex(t-1,Re.TokenType.greaterThan,Re.TokenType.jsxName)&&!this.tokens.matches1AtIndex(t,Re.TokenType.braceL)&&!this.tokens.matches1AtIndex(t,Re.TokenType.jsxTagEnd)&&!this.tokens.matches2AtIndex(t,Re.TokenType.slash,Re.TokenType.jsxTagEnd);)t++;if(t===this.tokens.currentIndex()+1){let s=this.tokens.identifierName();A1(s)&&this.tokens.replaceToken(`\'${s}\'`)}for(;this.tokens.currentIndex()=An.charCodes.lowercaseA&&t<=An.charCodes.lowercaseZ}Jr.startsWithLowerCase=A1;function Qm(e){let t=\\"\\",s=\\"\\",i=!1,r=!1;for(let a=0;a=An.charCodes.digit0&&e<=An.charCodes.digit9}function ty(e){return e>=An.charCodes.digit0&&e<=An.charCodes.digit9||e>=An.charCodes.lowercaseA&&e<=An.charCodes.lowercaseF||e>=An.charCodes.uppercaseA&&e<=An.charCodes.uppercaseF}});var Fa=Z(Ma=>{\\"use strict\\";Object.defineProperty(Ma,\\"__esModule\\",{value:!0});function ny(e){return e&&e.__esModule?e:{default:e}}var Qr=xt(),ui=be(),sy=Da(),iy=Pa(),ry=ny(iy);function oy(e,t){let s=ry.default.call(void 0,t),i=new Set;for(let r=0;r{\\"use strict\\";Object.defineProperty(Va,\\"__esModule\\",{value:!0});function ay(e){return e&&e.__esModule?e:{default:e}}var ly=xt(),Zr=It(),me=be(),cy=Wi(),uy=ay(cy),py=Fa(),Ba=class e{__init(){this.nonTypeIdentifiers=new Set}__init2(){this.importInfoByPath=new Map}__init3(){this.importsToReplace=new Map}__init4(){this.identifierReplacements=new Map}__init5(){this.exportBindingsByLocalName=new Map}constructor(t,s,i,r,a,u){this.nameManager=t,this.tokens=s,this.enableLegacyTypeScriptModuleInterop=i,this.options=r,this.isTypeScriptTransformEnabled=a,this.helperManager=u,e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),e.prototype.__init5.call(this)}preprocessTokens(){for(let t=0;t0||s.namedExports.length>0)continue;[...s.defaultNames,...s.wildcardNames,...s.namedImports.map(({localName:r})=>r)].every(r=>this.isTypeName(r))&&this.importsToReplace.set(t,\\"\\")}}isTypeName(t){return this.isTypeScriptTransformEnabled&&!this.nonTypeIdentifiers.has(t)}generateImportReplacements(){for(let[t,s]of this.importInfoByPath.entries()){let{defaultNames:i,wildcardNames:r,namedImports:a,namedExports:u,exportStarNames:d,hasStarExport:y}=s;if(i.length===0&&r.length===0&&a.length===0&&u.length===0&&d.length===0&&!y){this.importsToReplace.set(t,`require(\'${t}\');`);continue}let g=this.getFreeIdentifierForPath(t),L;this.enableLegacyTypeScriptModuleInterop?L=g:L=r.length>0?r[0]:this.getFreeIdentifierForPath(t);let p=`var ${g} = require(\'${t}\');`;if(r.length>0)for(let h of r){let T=this.enableLegacyTypeScriptModuleInterop?g:`${this.helperManager.getHelperName(\\"interopRequireWildcard\\")}(${g})`;p+=` var ${h} = ${T};`}else d.length>0&&L!==g?p+=` var ${L} = ${this.helperManager.getHelperName(\\"interopRequireWildcard\\")}(${g});`:i.length>0&&L!==g&&(p+=` var ${L} = ${this.helperManager.getHelperName(\\"interopRequireDefault\\")}(${g});`);for(let{importedName:h,localName:T}of u)p+=` ${this.helperManager.getHelperName(\\"createNamedExportFrom\\")}(${g}, \'${T}\', \'${h}\');`;for(let h of d)p+=` exports.${h} = ${L};`;y&&(p+=` ${this.helperManager.getHelperName(\\"createStarExport\\")}(${g});`),this.importsToReplace.set(t,p);for(let h of i)this.identifierReplacements.set(h,`${L}.default`);for(let{importedName:h,localName:T}of a)this.identifierReplacements.set(T,`${g}.${h}`)}}getFreeIdentifierForPath(t){let s=t.split(\\"/\\"),r=s[s.length-1].replace(/\\\\W/g,\\"\\");return this.nameManager.claimFreeName(`_${r}`)}preprocessImportAtIndex(t){let s=[],i=[],r=[];if(t++,(this.tokens.matchesContextualAtIndex(t,Zr.ContextualKeyword._type)||this.tokens.matches1AtIndex(t,me.TokenType._typeof))&&!this.tokens.matches1AtIndex(t+1,me.TokenType.comma)&&!this.tokens.matchesContextualAtIndex(t+1,Zr.ContextualKeyword._from)||this.tokens.matches1AtIndex(t,me.TokenType.parenL))return;if(this.tokens.matches1AtIndex(t,me.TokenType.name)&&(s.push(this.tokens.identifierNameAtIndex(t)),t++,this.tokens.matches1AtIndex(t,me.TokenType.comma)&&t++),this.tokens.matches1AtIndex(t,me.TokenType.star)&&(t+=2,i.push(this.tokens.identifierNameAtIndex(t)),t++),this.tokens.matches1AtIndex(t,me.TokenType.braceL)){let d=this.getNamedImports(t+1);t=d.newIndex;for(let y of d.namedImports)y.importedName===\\"default\\"?s.push(y.localName):r.push(y)}if(this.tokens.matchesContextualAtIndex(t,Zr.ContextualKeyword._from)&&t++,!this.tokens.matches1AtIndex(t,me.TokenType.string))throw new Error(\\"Expected string token at the end of import statement.\\");let a=this.tokens.stringValueAtIndex(t),u=this.getImportInfo(a);u.defaultNames.push(...s),u.wildcardNames.push(...i),u.namedImports.push(...r),s.length===0&&i.length===0&&r.length===0&&(u.hasBareImport=!0)}preprocessExportAtIndex(t){if(this.tokens.matches2AtIndex(t,me.TokenType._export,me.TokenType._var)||this.tokens.matches2AtIndex(t,me.TokenType._export,me.TokenType._let)||this.tokens.matches2AtIndex(t,me.TokenType._export,me.TokenType._const))this.preprocessVarExportAtIndex(t);else if(this.tokens.matches2AtIndex(t,me.TokenType._export,me.TokenType._function)||this.tokens.matches2AtIndex(t,me.TokenType._export,me.TokenType._class)){let s=this.tokens.identifierNameAtIndex(t+2);this.addExportBinding(s,s)}else if(this.tokens.matches3AtIndex(t,me.TokenType._export,me.TokenType.name,me.TokenType._function)){let s=this.tokens.identifierNameAtIndex(t+3);this.addExportBinding(s,s)}else this.tokens.matches2AtIndex(t,me.TokenType._export,me.TokenType.braceL)?this.preprocessNamedExportAtIndex(t):this.tokens.matches2AtIndex(t,me.TokenType._export,me.TokenType.star)&&this.preprocessExportStarAtIndex(t)}preprocessVarExportAtIndex(t){let s=0;for(let i=t+2;;i++)if(this.tokens.matches1AtIndex(i,me.TokenType.braceL)||this.tokens.matches1AtIndex(i,me.TokenType.dollarBraceL)||this.tokens.matches1AtIndex(i,me.TokenType.bracketL))s++;else if(this.tokens.matches1AtIndex(i,me.TokenType.braceR)||this.tokens.matches1AtIndex(i,me.TokenType.bracketR))s--;else{if(s===0&&!this.tokens.matches1AtIndex(i,me.TokenType.name))break;if(this.tokens.matches1AtIndex(1,me.TokenType.eq)){let r=this.tokens.currentToken().rhsEndIndex;if(r==null)throw new Error(\\"Expected = token with an end index.\\");i=r-1}else{let r=this.tokens.tokens[i];if(ly.isDeclaration.call(void 0,r)){let a=this.tokens.identifierNameAtIndex(i);this.identifierReplacements.set(a,`exports.${a}`)}}}}preprocessNamedExportAtIndex(t){t+=2;let{newIndex:s,namedImports:i}=this.getNamedImports(t);if(t=s,this.tokens.matchesContextualAtIndex(t,Zr.ContextualKeyword._from))t++;else{for(let{importedName:u,localName:d}of i)this.addExportBinding(u,d);return}if(!this.tokens.matches1AtIndex(t,me.TokenType.string))throw new Error(\\"Expected string token at the end of import statement.\\");let r=this.tokens.stringValueAtIndex(t);this.getImportInfo(r).namedExports.push(...i)}preprocessExportStarAtIndex(t){let s=null;if(this.tokens.matches3AtIndex(t,me.TokenType._export,me.TokenType.star,me.TokenType._as)?(t+=3,s=this.tokens.identifierNameAtIndex(t),t+=2):t+=3,!this.tokens.matches1AtIndex(t,me.TokenType.string))throw new Error(\\"Expected string token at the end of star export statement.\\");let i=this.tokens.stringValueAtIndex(t),r=this.getImportInfo(i);s!==null?r.exportStarNames.push(s):r.hasStarExport=!0}getNamedImports(t){let s=[];for(;;){if(this.tokens.matches1AtIndex(t,me.TokenType.braceR)){t++;break}let i=uy.default.call(void 0,this.tokens,t);if(t=i.endIndex,i.isType||s.push({importedName:i.leftName,localName:i.rightName}),this.tokens.matches2AtIndex(t,me.TokenType.comma,me.TokenType.braceR)){t+=2;break}else if(this.tokens.matches1AtIndex(t,me.TokenType.braceR)){t++;break}else if(this.tokens.matches1AtIndex(t,me.TokenType.comma))t++;else throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.tokens[t])}`)}return{newIndex:t,namedImports:s}}getImportInfo(t){let s=this.importInfoByPath.get(t);if(s)return s;let i={defaultNames:[],wildcardNames:[],namedImports:[],namedExports:[],hasBareImport:!1,exportStarNames:[],hasStarExport:!1};return this.importInfoByPath.set(t,i),i}addExportBinding(t,s){this.exportBindingsByLocalName.has(t)||this.exportBindingsByLocalName.set(t,[]),this.exportBindingsByLocalName.get(t).push(s)}claimImportCode(t){let s=this.importsToReplace.get(t);return this.importsToReplace.set(t,\\"\\"),s||\\"\\"}getIdentifierReplacement(t){return this.identifierReplacements.get(t)||null}resolveExportBinding(t){let s=this.exportBindingsByLocalName.get(t);return!s||s.length===0?null:s.map(i=>`exports.${i}`).join(\\" = \\")}getGlobalNames(){return new Set([...this.identifierReplacements.keys(),...this.exportBindingsByLocalName.keys()])}};Va.default=Ba});var L1=Z((eo,R1)=>{(function(e,t){typeof eo==\\"object\\"&&typeof R1<\\"u\\"?t(eo):typeof define==\\"function\\"&&define.amd?define([\\"exports\\"],t):(e=typeof globalThis<\\"u\\"?globalThis:e||self,t(e.setArray={}))})(eo,function(e){\\"use strict\\";e.get=void 0,e.put=void 0,e.pop=void 0;class t{constructor(){this._indexes={__proto__:null},this.array=[]}}e.get=(s,i)=>s._indexes[i],e.put=(s,i)=>{let r=e.get(s,i);if(r!==void 0)return r;let{array:a,_indexes:u}=s;return u[i]=a.push(i)-1},e.pop=s=>{let{array:i,_indexes:r}=s;if(i.length===0)return;let a=i.pop();r[a]=void 0},e.SetArray=t,Object.defineProperty(e,\\"__esModule\\",{value:!0})})});var ja=Z((to,O1)=>{(function(e,t){typeof to==\\"object\\"&&typeof O1<\\"u\\"?t(to):typeof define==\\"function\\"&&define.amd?define([\\"exports\\"],t):(e=typeof globalThis<\\"u\\"?globalThis:e||self,t(e.sourcemapCodec={}))})(to,function(e){\\"use strict\\";let i=\\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\\",r=new Uint8Array(64),a=new Uint8Array(128);for(let w=0;w>>=1,W&&(M=-2147483648|-M),A[U]+=M,S}function L(w,S,A){return S>=A?!1:w.charCodeAt(S)!==44}function p(w){w.sort(h)}function h(w,S){return w[0]-S[0]}function T(w){let S=new Int32Array(5),A=1024*16,U=A-36,M=new Uint8Array(A),c=M.subarray(0,U),R=0,W=\\"\\";for(let X=0;X0&&(R===A&&(W+=u.decode(M),R=0),M[R++]=59),ie.length!==0){S[0]=0;for(let pe=0;peU&&(W+=u.decode(c),M.copyWithin(0,U,R),R-=U),pe>0&&(M[R++]=44),R=x(M,R,S,ae,0),ae.length!==1&&(R=x(M,R,S,ae,1),R=x(M,R,S,ae,2),R=x(M,R,S,ae,3),ae.length!==4&&(R=x(M,R,S,ae,4)))}}}return W+u.decode(M.subarray(0,R))}function x(w,S,A,U,M){let c=U[M],R=c-A[M];A[M]=c,R=R<0?-R<<1|1:R<<1;do{let W=R&31;R>>>=5,R>0&&(W|=32),w[S++]=r[W]}while(R>0);return S}e.decode=d,e.encode=T,Object.defineProperty(e,\\"__esModule\\",{value:!0})})});var D1=Z(($a,qa)=>{(function(e,t){typeof $a==\\"object\\"&&typeof qa<\\"u\\"?qa.exports=t():typeof define==\\"function\\"&&define.amd?define(t):(e=typeof globalThis<\\"u\\"?globalThis:e||self,e.resolveURI=t())})($a,function(){\\"use strict\\";let e=/^[\\\\w+.-]+:\\\\/\\\\//,t=/^([\\\\w+.-]+:)\\\\/\\\\/([^@/#?]*@)?([^:/#?]*)(:\\\\d+)?(\\\\/[^#?]*)?(\\\\?[^#]*)?(#.*)?/,s=/^file:(?:\\\\/\\\\/((?![a-z]:)[^/#?]*)?)?(\\\\/?[^#?]*)(\\\\?[^#]*)?(#.*)?/i;var i;(function(A){A[A.Empty=1]=\\"Empty\\",A[A.Hash=2]=\\"Hash\\",A[A.Query=3]=\\"Query\\",A[A.RelativePath=4]=\\"RelativePath\\",A[A.AbsolutePath=5]=\\"AbsolutePath\\",A[A.SchemeRelative=6]=\\"SchemeRelative\\",A[A.Absolute=7]=\\"Absolute\\"})(i||(i={}));function r(A){return e.test(A)}function a(A){return A.startsWith(\\"//\\")}function u(A){return A.startsWith(\\"/\\")}function d(A){return A.startsWith(\\"file:\\")}function y(A){return/^[.?#]/.test(A)}function g(A){let U=t.exec(A);return p(U[1],U[2]||\\"\\",U[3],U[4]||\\"\\",U[5]||\\"/\\",U[6]||\\"\\",U[7]||\\"\\")}function L(A){let U=s.exec(A),M=U[2];return p(\\"file:\\",\\"\\",U[1]||\\"\\",\\"\\",u(M)?M:\\"/\\"+M,U[3]||\\"\\",U[4]||\\"\\")}function p(A,U,M,c,R,W,X){return{scheme:A,user:U,host:M,port:c,path:R,query:W,hash:X,type:i.Absolute}}function h(A){if(a(A)){let M=g(\\"http:\\"+A);return M.scheme=\\"\\",M.type=i.SchemeRelative,M}if(u(A)){let M=g(\\"http://foo.com\\"+A);return M.scheme=\\"\\",M.host=\\"\\",M.type=i.AbsolutePath,M}if(d(A))return L(A);if(r(A))return g(A);let U=g(\\"http://foo.com/\\"+A);return U.scheme=\\"\\",U.host=\\"\\",U.type=A?A.startsWith(\\"?\\")?i.Query:A.startsWith(\\"#\\")?i.Hash:i.RelativePath:i.Empty,U}function T(A){if(A.endsWith(\\"/..\\"))return A;let U=A.lastIndexOf(\\"/\\");return A.slice(0,U+1)}function x(A,U){w(U,U.type),A.path===\\"/\\"?A.path=U.path:A.path=T(U.path)+A.path}function w(A,U){let M=U<=i.RelativePath,c=A.path.split(\\"/\\"),R=1,W=0,X=!1;for(let pe=1;pec&&(c=X)}w(M,c);let R=M.query+M.hash;switch(c){case i.Hash:case i.Query:return R;case i.RelativePath:{let W=M.path.slice(1);return W?y(U||A)&&!y(W)?\\"./\\"+W+R:W+R:R||\\".\\"}case i.AbsolutePath:return M.path+R;default:return M.scheme+\\"//\\"+M.user+M.host+M.port+M.path+R}}return S})});var F1=Z((no,M1)=>{(function(e,t){typeof no==\\"object\\"&&typeof M1<\\"u\\"?t(no,ja(),D1()):typeof define==\\"function\\"&&define.amd?define([\\"exports\\",\\"@jridgewell/sourcemap-codec\\",\\"@jridgewell/resolve-uri\\"],t):(e=typeof globalThis<\\"u\\"?globalThis:e||self,t(e.traceMapping={},e.sourcemapCodec,e.resolveURI))})(no,function(e,t,s){\\"use strict\\";function i(V){return V&&typeof V==\\"object\\"&&\\"default\\"in V?V:{default:V}}var r=i(s);function a(V,G){return G&&!G.endsWith(\\"/\\")&&(G+=\\"/\\"),r.default(V,G)}function u(V){if(!V)return\\"\\";let G=V.lastIndexOf(\\"/\\");return V.slice(0,G+1)}let d=0,y=1,g=2,L=3,p=4,h=1,T=2;function x(V,G){let J=w(V,0);if(J===V.length)return V;G||(V=V.slice());for(let re=J;re>1),he=V[ve][d]-G;if(he===0)return M=!0,ve;he<0?J=ve+1:re=ve-1}return M=!1,J-1}function R(V,G,J){for(let re=J+1;re=0&&V[re][d]===G;J=re--);return J}function X(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function ie(V,G,J,re){let{lastKey:ve,lastNeedle:he,lastIndex:Ie}=J,Ee=0,Le=V.length-1;if(re===ve){if(G===he)return M=Ie!==-1&&V[Ie][d]===G,Ie;G>=he?Ee=Ie===-1?0:Ie:Le=Ie}return J.lastKey=re,J.lastNeedle=G,J.lastIndex=c(V,G,Ee,Le)}function pe(V,G){let J=G.map(He);for(let re=0;reG;re--)V[re]=V[re-1];V[G]=J}function He(){return{__proto__:null}}let qe=function(V,G){let J=typeof V==\\"string\\"?JSON.parse(V):V;if(!(\\"sections\\"in J))return new wt(J,G);let re=[],ve=[],he=[],Ie=[];Bt(J,G,re,ve,he,Ie,0,0,1/0,1/0);let Ee={version:3,file:J.file,names:Ie,sources:ve,sourcesContent:he,mappings:re};return e.presortedDecodedMap(Ee)};function Bt(V,G,J,re,ve,he,Ie,Ee,Le,Xe){let{sections:We}=V;for(let Ke=0;KeLe)return;let Dn=At(J,bn),Ge=vt===0?Ee:0,St=pt[vt];for(let ot=0;ot=Xe)return;if(zt.length===1){Dn.push([Xt]);continue}let te=Ke+zt[y],Cn=zt[g],Zn=zt[L];Dn.push(zt.length===4?[Xt,te,Cn,Zn]:[Xt,te,Cn,Zn,ut+zt[p]])}}}function kt(V,G){for(let J=0;Ja(pt||\\"\\",Ke));let{mappings:ut}=ve;typeof ut==\\"string\\"?(this._encoded=ut,this._decoded=void 0):(this._encoded=void 0,this._decoded=x(ut,re)),this._decodedMemo=X(),this._bySources=void 0,this._bySourceMemos=void 0}}e.encodedMappings=V=>{var G;return(G=V._encoded)!==null&&G!==void 0?G:V._encoded=t.encode(V._decoded)},e.decodedMappings=V=>V._decoded||(V._decoded=t.decode(V._encoded)),e.traceSegment=(V,G,J)=>{let re=e.decodedMappings(V);return G>=re.length?null:Tn(re[G],V._decodedMemo,G,J,ct)},e.originalPositionFor=(V,{line:G,column:J,bias:re})=>{if(G--,G<0)throw new Error(tt);if(J<0)throw new Error(nt);let ve=e.decodedMappings(V);if(G>=ve.length)return Pt(null,null,null,null);let he=Tn(ve[G],V._decodedMemo,G,J,re||ct);if(he==null||he.length==1)return Pt(null,null,null,null);let{names:Ie,resolvedSources:Ee}=V;return Pt(Ee[he[y]],he[g]+1,he[L],he.length===5?Ie[he[p]]:null)},e.generatedPositionFor=(V,{source:G,line:J,column:re,bias:ve})=>{if(J--,J<0)throw new Error(tt);if(re<0)throw new Error(nt);let{sources:he,resolvedSources:Ie}=V,Ee=he.indexOf(G);if(Ee===-1&&(Ee=Ie.indexOf(G)),Ee===-1)return qt(null,null);let Le=V._bySources||(V._bySources=pe(e.decodedMappings(V),V._bySourceMemos=he.map(X))),Xe=V._bySourceMemos,We=Le[Ee][J];if(We==null)return qt(null,null);let Ke=Tn(We,Xe[Ee],J,re,ve||ct);return Ke==null?qt(null,null):qt(Ke[h]+1,Ke[T])},e.eachMapping=(V,G)=>{let J=e.decodedMappings(V),{names:re,resolvedSources:ve}=V;for(let he=0;he{let{sources:J,resolvedSources:re,sourcesContent:ve}=V;if(ve==null)return null;let he=J.indexOf(G);return he===-1&&(he=re.indexOf(G)),he===-1?null:ve[he]},e.presortedDecodedMap=(V,G)=>{let J=new wt($t(V,[]),G);return J._decoded=V.mappings,J},e.decodedMap=V=>$t(V,e.decodedMappings(V)),e.encodedMap=V=>$t(V,e.encodedMappings(V));function $t(V,G){return{version:V.version,file:V.file,names:V.names,sourceRoot:V.sourceRoot,sources:V.sources,sourcesContent:V.sourcesContent,mappings:G}}function Pt(V,G,J,re){return{source:V,line:G,column:J,name:re}}function qt(V,G){return{line:V,column:G}}function Tn(V,G,J,re,ve){let he=ie(V,re,G,J);return M?he=(ve===_t?R:W)(V,re,he):ve===_t&&he++,he===-1||he===V.length?null:V[he]}e.AnyMap=qe,e.GREATEST_LOWER_BOUND=ct,e.LEAST_UPPER_BOUND=_t,e.TraceMap=wt,Object.defineProperty(e,\\"__esModule\\",{value:!0})})});var V1=Z((so,B1)=>{(function(e,t){typeof so==\\"object\\"&&typeof B1<\\"u\\"?t(so,L1(),ja(),F1()):typeof define==\\"function\\"&&define.amd?define([\\"exports\\",\\"@jridgewell/set-array\\",\\"@jridgewell/sourcemap-codec\\",\\"@jridgewell/trace-mapping\\"],t):(e=typeof globalThis<\\"u\\"?globalThis:e||self,t(e.genMapping={},e.setArray,e.sourcemapCodec,e.traceMapping))})(so,function(e,t,s,i){\\"use strict\\";e.addSegment=void 0,e.addMapping=void 0,e.maybeAddSegment=void 0,e.maybeAddMapping=void 0,e.setSourceContent=void 0,e.toDecodedMap=void 0,e.toEncodedMap=void 0,e.fromMap=void 0,e.allMappings=void 0;let L;class p{constructor({file:R,sourceRoot:W}={}){this._names=new t.SetArray,this._sources=new t.SetArray,this._sourcesContent=[],this._mappings=[],this.file=R,this.sourceRoot=W}}e.addSegment=(c,R,W,X,ie,pe,ae,He)=>L(!1,c,R,W,X,ie,pe,ae,He),e.maybeAddSegment=(c,R,W,X,ie,pe,ae,He)=>L(!0,c,R,W,X,ie,pe,ae,He),e.addMapping=(c,R)=>M(!1,c,R),e.maybeAddMapping=(c,R)=>M(!0,c,R),e.setSourceContent=(c,R,W)=>{let{_sources:X,_sourcesContent:ie}=c;ie[t.put(X,R)]=W},e.toDecodedMap=c=>{let{file:R,sourceRoot:W,_mappings:X,_sources:ie,_sourcesContent:pe,_names:ae}=c;return w(X),{version:3,file:R||void 0,names:ae.array,sourceRoot:W||void 0,sources:ie.array,sourcesContent:pe,mappings:X}},e.toEncodedMap=c=>{let R=e.toDecodedMap(c);return Object.assign(Object.assign({},R),{mappings:s.encode(R.mappings)})},e.allMappings=c=>{let R=[],{_mappings:W,_sources:X,_names:ie}=c;for(let pe=0;pe{let R=new i.TraceMap(c),W=new p({file:R.file,sourceRoot:R.sourceRoot});return S(W._names,R.names),S(W._sources,R.sources),W._sourcesContent=R.sourcesContent||R.sources.map(()=>null),W._mappings=i.decodedMappings(R),W},L=(c,R,W,X,ie,pe,ae,He,qe)=>{let{_mappings:Bt,_sources:mt,_sourcesContent:kt,_names:At}=R,tt=h(Bt,W),nt=T(tt,X);if(!ie)return c&&A(tt,nt)?void 0:x(tt,nt,[X]);let _t=t.put(mt,ie),ct=He?t.put(At,He):-1;if(_t===kt.length&&(kt[_t]=qe??null),!(c&&U(tt,nt,_t,pe,ae,ct)))return x(tt,nt,He?[X,_t,pe,ae,ct]:[X,_t,pe,ae])};function h(c,R){for(let W=c.length;W<=R;W++)c[W]=[];return c[R]}function T(c,R){let W=c.length;for(let X=W-1;X>=0;W=X--){let ie=c[X];if(R>=ie[0])break}return W}function x(c,R,W){for(let X=c.length;X>R;X--)c[X]=c[X-1];c[R]=W}function w(c){let{length:R}=c,W=R;for(let X=W-1;X>=0&&!(c[X].length>0);W=X,X--);W{\\"use strict\\";Object.defineProperty(Ka,\\"__esModule\\",{value:!0});var Gi=V1(),j1=Qt();function hy({code:e,mappings:t},s,i,r,a){let u=fy(r,a),d=new Gi.GenMapping({file:i.compiledFilename}),y=0,g=t[0];for(;g===void 0&&y{\\"use strict\\";Object.defineProperty(Ha,\\"__esModule\\",{value:!0});var dy={require:`\\n import {createRequire as CREATE_REQUIRE_NAME} from \\"module\\";\\n const require = CREATE_REQUIRE_NAME(import.meta.url);\\n `,interopRequireWildcard:`\\n function interopRequireWildcard(obj) {\\n if (obj && obj.__esModule) {\\n return obj;\\n } else {\\n var newObj = {};\\n if (obj != null) {\\n for (var key in obj) {\\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\\n newObj[key] = obj[key];\\n }\\n }\\n }\\n newObj.default = obj;\\n return newObj;\\n }\\n }\\n `,interopRequireDefault:`\\n function interopRequireDefault(obj) {\\n return obj && obj.__esModule ? obj : { default: obj };\\n }\\n `,createNamedExportFrom:`\\n function createNamedExportFrom(obj, localName, importedName) {\\n Object.defineProperty(exports, localName, {enumerable: true, configurable: true, get: () => obj[importedName]});\\n }\\n `,createStarExport:`\\n function createStarExport(obj) {\\n Object.keys(obj)\\n .filter((key) => key !== \\"default\\" && key !== \\"__esModule\\")\\n .forEach((key) => {\\n if (exports.hasOwnProperty(key)) {\\n return;\\n }\\n Object.defineProperty(exports, key, {enumerable: true, configurable: true, get: () => obj[key]});\\n });\\n }\\n `,nullishCoalesce:`\\n function nullishCoalesce(lhs, rhsFn) {\\n if (lhs != null) {\\n return lhs;\\n } else {\\n return rhsFn();\\n }\\n }\\n `,asyncNullishCoalesce:`\\n async function asyncNullishCoalesce(lhs, rhsFn) {\\n if (lhs != null) {\\n return lhs;\\n } else {\\n return await rhsFn();\\n }\\n }\\n `,optionalChain:`\\n function optionalChain(ops) {\\n let lastAccessLHS = undefined;\\n let value = ops[0];\\n let i = 1;\\n while (i < ops.length) {\\n const op = ops[i];\\n const fn = ops[i + 1];\\n i += 2;\\n if ((op === \'optionalAccess\' || op === \'optionalCall\') && value == null) {\\n return undefined;\\n }\\n if (op === \'access\' || op === \'optionalAccess\') {\\n lastAccessLHS = value;\\n value = fn(value);\\n } else if (op === \'call\' || op === \'optionalCall\') {\\n value = fn((...args) => value.call(lastAccessLHS, ...args));\\n lastAccessLHS = undefined;\\n }\\n }\\n return value;\\n }\\n `,asyncOptionalChain:`\\n async function asyncOptionalChain(ops) {\\n let lastAccessLHS = undefined;\\n let value = ops[0];\\n let i = 1;\\n while (i < ops.length) {\\n const op = ops[i];\\n const fn = ops[i + 1];\\n i += 2;\\n if ((op === \'optionalAccess\' || op === \'optionalCall\') && value == null) {\\n return undefined;\\n }\\n if (op === \'access\' || op === \'optionalAccess\') {\\n lastAccessLHS = value;\\n value = await fn(value);\\n } else if (op === \'call\' || op === \'optionalCall\') {\\n value = await fn((...args) => value.call(lastAccessLHS, ...args));\\n lastAccessLHS = undefined;\\n }\\n }\\n return value;\\n }\\n `,optionalChainDelete:`\\n function optionalChainDelete(ops) {\\n const result = OPTIONAL_CHAIN_NAME(ops);\\n return result == null ? true : result;\\n }\\n `,asyncOptionalChainDelete:`\\n async function asyncOptionalChainDelete(ops) {\\n const result = await ASYNC_OPTIONAL_CHAIN_NAME(ops);\\n return result == null ? true : result;\\n }\\n `},Ua=class e{__init(){this.helperNames={}}__init2(){this.createRequireName=null}constructor(t){this.nameManager=t,e.prototype.__init.call(this),e.prototype.__init2.call(this)}getHelperName(t){let s=this.helperNames[t];return s||(s=this.nameManager.claimFreeName(`_${t}`),this.helperNames[t]=s,s)}emitHelpers(){let t=\\"\\";this.helperNames.optionalChainDelete&&this.getHelperName(\\"optionalChain\\"),this.helperNames.asyncOptionalChainDelete&&this.getHelperName(\\"asyncOptionalChain\\");for(let[s,i]of Object.entries(dy)){let r=this.helperNames[s],a=i;s===\\"optionalChainDelete\\"?a=a.replace(\\"OPTIONAL_CHAIN_NAME\\",this.helperNames.optionalChain):s===\\"asyncOptionalChainDelete\\"?a=a.replace(\\"ASYNC_OPTIONAL_CHAIN_NAME\\",this.helperNames.asyncOptionalChain):s===\\"require\\"&&(this.createRequireName===null&&(this.createRequireName=this.nameManager.claimFreeName(\\"_createRequire\\")),a=a.replace(/CREATE_REQUIRE_NAME/g,this.createRequireName)),r&&(t+=\\" \\",t+=a.replace(s,r).replace(/\\\\s+/g,\\" \\").trim())}return t}};Ha.HelperManager=Ua});var H1=Z(ro=>{\\"use strict\\";Object.defineProperty(ro,\\"__esModule\\",{value:!0});var Wa=xt(),io=be();function my(e,t,s){U1(e,s)&&yy(e,t,s)}ro.default=my;function U1(e,t){for(let s of e.tokens)if(s.type===io.TokenType.name&&Wa.isNonTopLevelDeclaration.call(void 0,s)&&t.has(e.identifierNameForToken(s)))return!0;return!1}ro.hasShadowedGlobals=U1;function yy(e,t,s){let i=[],r=t.length-1;for(let a=e.tokens.length-1;;a--){for(;i.length>0&&i[i.length-1].startTokenIndex===a+1;)i.pop();for(;r>=0&&t[r].endTokenIndex===a+1;)i.push(t[r]),r--;if(a<0)break;let u=e.tokens[a],d=e.identifierNameForToken(u);if(i.length>1&&u.type===io.TokenType.name&&s.has(d)){if(Wa.isBlockScopedDeclaration.call(void 0,u))K1(i[i.length-1],e,d);else if(Wa.isFunctionScopedDeclaration.call(void 0,u)){let y=i.length-1;for(;y>0&&!i[y].isFunctionScope;)y--;if(y<0)throw new Error(\\"Did not find parent function scope.\\");K1(i[y],e,d)}}}if(i.length>0)throw new Error(\\"Expected empty scope stack after processing file.\\")}function K1(e,t,s){for(let i=e.startTokenIndex;i{\\"use strict\\";Object.defineProperty(Ga,\\"__esModule\\",{value:!0});var Ty=be();function ky(e,t){let s=[];for(let i of t)i.type===Ty.TokenType.name&&s.push(e.slice(i.start,i.end));return s}Ga.default=ky});var G1=Z(Xa=>{\\"use strict\\";Object.defineProperty(Xa,\\"__esModule\\",{value:!0});function vy(e){return e&&e.__esModule?e:{default:e}}var xy=W1(),gy=vy(xy),za=class e{__init(){this.usedNames=new Set}constructor(t,s){e.prototype.__init.call(this),this.usedNames=new Set(gy.default.call(void 0,t,s))}claimFreeName(t){let s=this.findFreeName(t);return this.usedNames.add(s),s}findFreeName(t){if(!this.usedNames.has(t))return t;let s=2;for(;this.usedNames.has(t+String(s));)s++;return t+String(s)}};Xa.default=za});var oo=Z(Pn=>{\\"use strict\\";var _y=Pn&&Pn.__extends||function(){var e=function(t,s){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)r.hasOwnProperty(a)&&(i[a]=r[a])},e(t,s)};return function(t,s){e(t,s);function i(){this.constructor=t}t.prototype=s===null?Object.create(s):(i.prototype=s.prototype,new i)}}();Object.defineProperty(Pn,\\"__esModule\\",{value:!0});Pn.DetailContext=Pn.NoopContext=Pn.VError=void 0;var z1=function(e){_y(t,e);function t(s,i){var r=e.call(this,i)||this;return r.path=s,Object.setPrototypeOf(r,t.prototype),r}return t}(Error);Pn.VError=z1;var by=function(){function e(){}return e.prototype.fail=function(t,s,i){return!1},e.prototype.unionResolver=function(){return this},e.prototype.createContext=function(){return this},e.prototype.resolveUnion=function(t){},e}();Pn.NoopContext=by;var X1=function(){function e(){this._propNames=[\\"\\"],this._messages=[null],this._score=0}return e.prototype.fail=function(t,s,i){return this._propNames.push(t),this._messages.push(s),this._score+=i,!1},e.prototype.unionResolver=function(){return new Cy},e.prototype.resolveUnion=function(t){for(var s,i,r=t,a=null,u=0,d=r.contexts;u=a._score)&&(a=y)}a&&a._score>0&&((s=this._propNames).push.apply(s,a._propNames),(i=this._messages).push.apply(i,a._messages))},e.prototype.getError=function(t){for(var s=[],i=this._propNames.length-1;i>=0;i--){var r=this._propNames[i];t+=typeof r==\\"number\\"?\\"[\\"+r+\\"]\\":r?\\".\\"+r:\\"\\";var a=this._messages[i];a&&s.push(t+\\" \\"+a)}return new z1(t,s.join(\\"; \\"))},e.prototype.getErrorDetail=function(t){for(var s=[],i=this._propNames.length-1;i>=0;i--){var r=this._propNames[i];t+=typeof r==\\"number\\"?\\"[\\"+r+\\"]\\":r?\\".\\"+r:\\"\\";var a=this._messages[i];a&&s.push({path:t,message:a})}for(var u=null,i=s.length-1;i>=0;i--)u&&(s[i].nested=[u]),u=s[i];return u},e}();Pn.DetailContext=X1;var Cy=function(){function e(){this.contexts=[]}return e.prototype.createContext=function(){var t=new X1;return this.contexts.push(t),t},e}()});var sl=Z(ce=>{\\"use strict\\";var nn=ce&&ce.__extends||function(){var e=function(t,s){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)r.hasOwnProperty(a)&&(i[a]=r[a])},e(t,s)};return function(t,s){e(t,s);function i(){this.constructor=t}t.prototype=s===null?Object.create(s):(i.prototype=s.prototype,new i)}}();Object.defineProperty(ce,\\"__esModule\\",{value:!0});ce.basicTypes=ce.BasicType=ce.TParamList=ce.TParam=ce.param=ce.TFunc=ce.func=ce.TProp=ce.TOptional=ce.opt=ce.TIface=ce.iface=ce.TEnumLiteral=ce.enumlit=ce.TEnumType=ce.enumtype=ce.TIntersection=ce.intersection=ce.TUnion=ce.union=ce.TTuple=ce.tuple=ce.TArray=ce.array=ce.TLiteral=ce.lit=ce.TName=ce.name=ce.TType=void 0;var Q1=oo(),Ht=function(){function e(){}return e}();ce.TType=Ht;function ps(e){return typeof e==\\"string\\"?Z1(e):e}function Qa(e,t){var s=e[t];if(!s)throw new Error(\\"Unknown type \\"+t);return s}function Z1(e){return new Za(e)}ce.name=Z1;var Za=function(e){nn(t,e);function t(s){var i=e.call(this)||this;return i.name=s,i._failMsg=\\"is not a \\"+s,i}return t.prototype.getChecker=function(s,i,r){var a=this,u=Qa(s,this.name),d=u.getChecker(s,i,r);return u instanceof Dt||u instanceof t?d:function(y,g){return d(y,g)?!0:g.fail(null,a._failMsg,0)}},t}(Ht);ce.TName=Za;function wy(e){return new el(e)}ce.lit=wy;var el=function(e){nn(t,e);function t(s){var i=e.call(this)||this;return i.value=s,i.name=JSON.stringify(s),i._failMsg=\\"is not \\"+i.name,i}return t.prototype.getChecker=function(s,i){var r=this;return function(a,u){return a===r.value?!0:u.fail(null,r._failMsg,-1)}},t}(Ht);ce.TLiteral=el;function Sy(e){return new ep(ps(e))}ce.array=Sy;var ep=function(e){nn(t,e);function t(s){var i=e.call(this)||this;return i.ttype=s,i}return t.prototype.getChecker=function(s,i){var r=this.ttype.getChecker(s,i);return function(a,u){if(!Array.isArray(a))return u.fail(null,\\"is not an array\\",0);for(var d=0;d0&&r.push(a+\\" more\\"),i._failMsg=\\"is none of \\"+r.join(\\", \\")):i._failMsg=\\"is none of \\"+a+\\" types\\",i}return t.prototype.getChecker=function(s,i){var r=this,a=this.ttypes.map(function(u){return u.getChecker(s,i)});return function(u,d){for(var y=d.unionResolver(),g=0;g{\\"use strict\\";var jy=we&&we.__spreadArrays||function(){for(var e=0,t=0,s=arguments.length;t{\\"use strict\\";Object.defineProperty(Gn,\\"__esModule\\",{value:!0});function Ky(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t.default=e,t}var Uy=il(),Qe=Ky(Uy),Hy=Qe.union(Qe.lit(\\"jsx\\"),Qe.lit(\\"typescript\\"),Qe.lit(\\"flow\\"),Qe.lit(\\"imports\\"),Qe.lit(\\"react-hot-loader\\"),Qe.lit(\\"jest\\"));Gn.Transform=Hy;var Wy=Qe.iface([],{compiledFilename:\\"string\\"});Gn.SourceMapOptions=Wy;var Gy=Qe.iface([],{transforms:Qe.array(\\"Transform\\"),disableESTransforms:Qe.opt(\\"boolean\\"),jsxRuntime:Qe.opt(Qe.union(Qe.lit(\\"classic\\"),Qe.lit(\\"automatic\\"),Qe.lit(\\"preserve\\"))),production:Qe.opt(\\"boolean\\"),jsxImportSource:Qe.opt(\\"string\\"),jsxPragma:Qe.opt(\\"string\\"),jsxFragmentPragma:Qe.opt(\\"string\\"),preserveDynamicImport:Qe.opt(\\"boolean\\"),injectCreateRequireForImportRequire:Qe.opt(\\"boolean\\"),enableLegacyTypeScriptModuleInterop:Qe.opt(\\"boolean\\"),enableLegacyBabel5ModuleInterop:Qe.opt(\\"boolean\\"),sourceMapOptions:Qe.opt(\\"SourceMapOptions\\"),filePath:Qe.opt(\\"string\\")});Gn.Options=Gy;var zy={Transform:Gn.Transform,SourceMapOptions:Gn.SourceMapOptions,Options:Gn.Options};Gn.default=zy});var pp=Z(rl=>{\\"use strict\\";Object.defineProperty(rl,\\"__esModule\\",{value:!0});function Xy(e){return e&&e.__esModule?e:{default:e}}var Yy=il(),Jy=up(),Qy=Xy(Jy),{Options:Zy}=Yy.createCheckers.call(void 0,Qy.default);function eT(e){Zy.strictCheck(e)}rl.validateOptions=eT});var lo=Z(Nn=>{\\"use strict\\";Object.defineProperty(Nn,\\"__esModule\\",{value:!0});var tT=Ji(),hp=hi(),Mt=xt(),Xi=It(),fn=be(),gt=Zt(),Yi=Ns(),ol=cs();function nT(){Mt.next.call(void 0),Yi.parseMaybeAssign.call(void 0,!1)}Nn.parseSpread=nT;function fp(e){Mt.next.call(void 0),ll(e)}Nn.parseRest=fp;function dp(e){Yi.parseIdentifier.call(void 0),mp(e)}Nn.parseBindingIdentifier=dp;function sT(){Yi.parseIdentifier.call(void 0),gt.state.tokens[gt.state.tokens.length-1].identifierRole=Mt.IdentifierRole.ImportDeclaration}Nn.parseImportedIdentifier=sT;function mp(e){let t;gt.state.scopeDepth===0?t=Mt.IdentifierRole.TopLevelDeclaration:e?t=Mt.IdentifierRole.BlockScopedDeclaration:t=Mt.IdentifierRole.FunctionScopedDeclaration,gt.state.tokens[gt.state.tokens.length-1].identifierRole=t}Nn.markPriorBindingIdentifier=mp;function ll(e){switch(gt.state.type){case fn.TokenType._this:{let t=Mt.pushTypeContext.call(void 0,0);Mt.next.call(void 0),Mt.popTypeContext.call(void 0,t);return}case fn.TokenType._yield:case fn.TokenType.name:{gt.state.type=fn.TokenType.name,dp(e);return}case fn.TokenType.bracketL:{Mt.next.call(void 0),yp(fn.TokenType.bracketR,e,!0);return}case fn.TokenType.braceL:Yi.parseObj.call(void 0,!0,e);return;default:ol.unexpected.call(void 0)}}Nn.parseBindingAtom=ll;function yp(e,t,s=!1,i=!1,r=0){let a=!0,u=!1,d=gt.state.tokens.length;for(;!Mt.eat.call(void 0,e)&&!gt.state.error;)if(a?a=!1:(ol.expect.call(void 0,fn.TokenType.comma),gt.state.tokens[gt.state.tokens.length-1].contextId=r,!u&>.state.tokens[d].isType&&(gt.state.tokens[gt.state.tokens.length-1].isType=!0,u=!0)),!(s&&Mt.match.call(void 0,fn.TokenType.comma))){if(Mt.eat.call(void 0,e))break;if(Mt.match.call(void 0,fn.TokenType.ellipsis)){fp(t),Tp(),Mt.eat.call(void 0,fn.TokenType.comma),ol.expect.call(void 0,e);break}else iT(i,t)}}Nn.parseBindingList=yp;function iT(e,t){e&&hp.tsParseModifiers.call(void 0,[Xi.ContextualKeyword._public,Xi.ContextualKeyword._protected,Xi.ContextualKeyword._private,Xi.ContextualKeyword._readonly,Xi.ContextualKeyword._override]),al(t),Tp(),al(t,!0)}function Tp(){gt.isFlowEnabled?tT.flowParseAssignableListItemTypes.call(void 0):gt.isTypeScriptEnabled&&hp.tsParseAssignableListItemTypes.call(void 0)}function al(e,t=!1){if(t||ll(e),!Mt.eat.call(void 0,fn.TokenType.eq))return;let s=gt.state.tokens.length-1;Yi.parseMaybeAssign.call(void 0),gt.state.tokens[s].rhsEndIndex=gt.state.tokens.length}Nn.parseMaybeDefault=al});var hi=Z(Oe=>{\\"use strict\\";Object.defineProperty(Oe,\\"__esModule\\",{value:!0});var v=xt(),oe=It(),k=be(),I=Zt(),_e=Ns(),di=lo(),Rn=nr(),H=cs(),rT=vl();function ul(){return v.match.call(void 0,k.TokenType.name)}function oT(){return v.match.call(void 0,k.TokenType.name)||!!(I.state.type&k.TokenType.IS_KEYWORD)||v.match.call(void 0,k.TokenType.string)||v.match.call(void 0,k.TokenType.num)||v.match.call(void 0,k.TokenType.bigint)||v.match.call(void 0,k.TokenType.decimal)}function _p(){let e=I.state.snapshot();return v.next.call(void 0),(v.match.call(void 0,k.TokenType.bracketL)||v.match.call(void 0,k.TokenType.braceL)||v.match.call(void 0,k.TokenType.star)||v.match.call(void 0,k.TokenType.ellipsis)||v.match.call(void 0,k.TokenType.hash)||oT())&&!H.hasPrecedingLineBreak.call(void 0)?!0:(I.state.restoreFromSnapshot(e),!1)}function bp(e){for(;dl(e)!==null;);}Oe.tsParseModifiers=bp;function dl(e){if(!v.match.call(void 0,k.TokenType.name))return null;let t=I.state.contextualKeyword;if(e.indexOf(t)!==-1&&_p()){switch(t){case oe.ContextualKeyword._readonly:I.state.tokens[I.state.tokens.length-1].type=k.TokenType._readonly;break;case oe.ContextualKeyword._abstract:I.state.tokens[I.state.tokens.length-1].type=k.TokenType._abstract;break;case oe.ContextualKeyword._static:I.state.tokens[I.state.tokens.length-1].type=k.TokenType._static;break;case oe.ContextualKeyword._public:I.state.tokens[I.state.tokens.length-1].type=k.TokenType._public;break;case oe.ContextualKeyword._private:I.state.tokens[I.state.tokens.length-1].type=k.TokenType._private;break;case oe.ContextualKeyword._protected:I.state.tokens[I.state.tokens.length-1].type=k.TokenType._protected;break;case oe.ContextualKeyword._override:I.state.tokens[I.state.tokens.length-1].type=k.TokenType._override;break;case oe.ContextualKeyword._declare:I.state.tokens[I.state.tokens.length-1].type=k.TokenType._declare;break;default:break}return t}return null}Oe.tsParseModifier=dl;function Zi(){for(_e.parseIdentifier.call(void 0);v.eat.call(void 0,k.TokenType.dot);)_e.parseIdentifier.call(void 0)}function aT(){Zi(),!H.hasPrecedingLineBreak.call(void 0)&&v.match.call(void 0,k.TokenType.lessThan)&&yi()}function lT(){v.next.call(void 0),tr()}function cT(){v.next.call(void 0)}function uT(){H.expect.call(void 0,k.TokenType._typeof),v.match.call(void 0,k.TokenType._import)?Cp():Zi(),!H.hasPrecedingLineBreak.call(void 0)&&v.match.call(void 0,k.TokenType.lessThan)&&yi()}function Cp(){H.expect.call(void 0,k.TokenType._import),H.expect.call(void 0,k.TokenType.parenL),H.expect.call(void 0,k.TokenType.string),H.expect.call(void 0,k.TokenType.parenR),v.eat.call(void 0,k.TokenType.dot)&&Zi(),v.match.call(void 0,k.TokenType.lessThan)&&yi()}function pT(){v.eat.call(void 0,k.TokenType._const);let e=v.eat.call(void 0,k.TokenType._in),t=H.eatContextual.call(void 0,oe.ContextualKeyword._out);v.eat.call(void 0,k.TokenType._const),(e||t)&&!v.match.call(void 0,k.TokenType.name)?I.state.tokens[I.state.tokens.length-1].type=k.TokenType.name:_e.parseIdentifier.call(void 0),v.eat.call(void 0,k.TokenType._extends)&&rt(),v.eat.call(void 0,k.TokenType.eq)&&rt()}function mi(){v.match.call(void 0,k.TokenType.lessThan)&&uo()}Oe.tsTryParseTypeParameters=mi;function uo(){let e=v.pushTypeContext.call(void 0,0);for(v.match.call(void 0,k.TokenType.lessThan)||v.match.call(void 0,k.TokenType.typeParameterStart)?v.next.call(void 0):H.unexpected.call(void 0);!v.eat.call(void 0,k.TokenType.greaterThan)&&!I.state.error;)pT(),v.eat.call(void 0,k.TokenType.comma);v.popTypeContext.call(void 0,e)}function ml(e){let t=e===k.TokenType.arrow;mi(),H.expect.call(void 0,k.TokenType.parenL),I.state.scopeDepth++,hT(!1),I.state.scopeDepth--,(t||v.match.call(void 0,e))&&Qi(e)}function hT(e){di.parseBindingList.call(void 0,k.TokenType.parenR,e)}function co(){v.eat.call(void 0,k.TokenType.comma)||H.semicolon.call(void 0)}function kp(){ml(k.TokenType.colon),co()}function fT(){let e=I.state.snapshot();v.next.call(void 0);let t=v.eat.call(void 0,k.TokenType.name)&&v.match.call(void 0,k.TokenType.colon);return I.state.restoreFromSnapshot(e),t}function wp(){if(!(v.match.call(void 0,k.TokenType.bracketL)&&fT()))return!1;let e=v.pushTypeContext.call(void 0,0);return H.expect.call(void 0,k.TokenType.bracketL),_e.parseIdentifier.call(void 0),tr(),H.expect.call(void 0,k.TokenType.bracketR),er(),co(),v.popTypeContext.call(void 0,e),!0}function vp(e){v.eat.call(void 0,k.TokenType.question),!e&&(v.match.call(void 0,k.TokenType.parenL)||v.match.call(void 0,k.TokenType.lessThan))?(ml(k.TokenType.colon),co()):(er(),co())}function dT(){if(v.match.call(void 0,k.TokenType.parenL)||v.match.call(void 0,k.TokenType.lessThan)){kp();return}if(v.match.call(void 0,k.TokenType._new)){v.next.call(void 0),v.match.call(void 0,k.TokenType.parenL)||v.match.call(void 0,k.TokenType.lessThan)?kp():vp(!1);return}let e=!!dl([oe.ContextualKeyword._readonly]);wp()||((H.isContextual.call(void 0,oe.ContextualKeyword._get)||H.isContextual.call(void 0,oe.ContextualKeyword._set))&&_p(),_e.parsePropertyName.call(void 0,-1),vp(e))}function mT(){Sp()}function Sp(){for(H.expect.call(void 0,k.TokenType.braceL);!v.eat.call(void 0,k.TokenType.braceR)&&!I.state.error;)dT()}function yT(){let e=I.state.snapshot(),t=TT();return I.state.restoreFromSnapshot(e),t}function TT(){return v.next.call(void 0),v.eat.call(void 0,k.TokenType.plus)||v.eat.call(void 0,k.TokenType.minus)?H.isContextual.call(void 0,oe.ContextualKeyword._readonly):(H.isContextual.call(void 0,oe.ContextualKeyword._readonly)&&v.next.call(void 0),!v.match.call(void 0,k.TokenType.bracketL)||(v.next.call(void 0),!ul())?!1:(v.next.call(void 0),v.match.call(void 0,k.TokenType._in)))}function kT(){_e.parseIdentifier.call(void 0),H.expect.call(void 0,k.TokenType._in),rt()}function vT(){H.expect.call(void 0,k.TokenType.braceL),v.match.call(void 0,k.TokenType.plus)||v.match.call(void 0,k.TokenType.minus)?(v.next.call(void 0),H.expectContextual.call(void 0,oe.ContextualKeyword._readonly)):H.eatContextual.call(void 0,oe.ContextualKeyword._readonly),H.expect.call(void 0,k.TokenType.bracketL),kT(),H.eatContextual.call(void 0,oe.ContextualKeyword._as)&&rt(),H.expect.call(void 0,k.TokenType.bracketR),v.match.call(void 0,k.TokenType.plus)||v.match.call(void 0,k.TokenType.minus)?(v.next.call(void 0),H.expect.call(void 0,k.TokenType.question)):v.eat.call(void 0,k.TokenType.question),LT(),H.semicolon.call(void 0),H.expect.call(void 0,k.TokenType.braceR)}function xT(){for(H.expect.call(void 0,k.TokenType.bracketL);!v.eat.call(void 0,k.TokenType.bracketR)&&!I.state.error;)gT(),v.eat.call(void 0,k.TokenType.comma)}function gT(){v.eat.call(void 0,k.TokenType.ellipsis)?rt():(rt(),v.eat.call(void 0,k.TokenType.question)),v.eat.call(void 0,k.TokenType.colon)&&rt()}function _T(){H.expect.call(void 0,k.TokenType.parenL),rt(),H.expect.call(void 0,k.TokenType.parenR)}function bT(){for(v.nextTemplateToken.call(void 0),v.nextTemplateToken.call(void 0);!v.match.call(void 0,k.TokenType.backQuote)&&!I.state.error;)H.expect.call(void 0,k.TokenType.dollarBraceL),rt(),v.nextTemplateToken.call(void 0),v.nextTemplateToken.call(void 0);v.next.call(void 0)}var hs;(function(e){e[e.TSFunctionType=0]=\\"TSFunctionType\\";let s=1;e[e.TSConstructorType=s]=\\"TSConstructorType\\";let i=s+1;e[e.TSAbstractConstructorType=i]=\\"TSAbstractConstructorType\\"})(hs||(hs={}));function cl(e){e===hs.TSAbstractConstructorType&&H.expectContextual.call(void 0,oe.ContextualKeyword._abstract),(e===hs.TSConstructorType||e===hs.TSAbstractConstructorType)&&H.expect.call(void 0,k.TokenType._new);let t=I.state.inDisallowConditionalTypesContext;I.state.inDisallowConditionalTypesContext=!1,ml(k.TokenType.arrow),I.state.inDisallowConditionalTypesContext=t}function CT(){switch(I.state.type){case k.TokenType.name:aT();return;case k.TokenType._void:case k.TokenType._null:v.next.call(void 0);return;case k.TokenType.string:case k.TokenType.num:case k.TokenType.bigint:case k.TokenType.decimal:case k.TokenType._true:case k.TokenType._false:_e.parseLiteral.call(void 0);return;case k.TokenType.minus:v.next.call(void 0),_e.parseLiteral.call(void 0);return;case k.TokenType._this:{cT(),H.isContextual.call(void 0,oe.ContextualKeyword._is)&&!H.hasPrecedingLineBreak.call(void 0)&&lT();return}case k.TokenType._typeof:uT();return;case k.TokenType._import:Cp();return;case k.TokenType.braceL:yT()?vT():mT();return;case k.TokenType.bracketL:xT();return;case k.TokenType.parenL:_T();return;case k.TokenType.backQuote:bT();return;default:if(I.state.type&k.TokenType.IS_KEYWORD){v.next.call(void 0),I.state.tokens[I.state.tokens.length-1].type=k.TokenType.name;return}break}H.unexpected.call(void 0)}function wT(){for(CT();!H.hasPrecedingLineBreak.call(void 0)&&v.eat.call(void 0,k.TokenType.bracketL);)v.eat.call(void 0,k.TokenType.bracketR)||(rt(),H.expect.call(void 0,k.TokenType.bracketR))}function ST(){if(H.expectContextual.call(void 0,oe.ContextualKeyword._infer),_e.parseIdentifier.call(void 0),v.match.call(void 0,k.TokenType._extends)){let e=I.state.snapshot();H.expect.call(void 0,k.TokenType._extends);let t=I.state.inDisallowConditionalTypesContext;I.state.inDisallowConditionalTypesContext=!0,rt(),I.state.inDisallowConditionalTypesContext=t,(I.state.error||!I.state.inDisallowConditionalTypesContext&&v.match.call(void 0,k.TokenType.question))&&I.state.restoreFromSnapshot(e)}}function pl(){if(H.isContextual.call(void 0,oe.ContextualKeyword._keyof)||H.isContextual.call(void 0,oe.ContextualKeyword._unique)||H.isContextual.call(void 0,oe.ContextualKeyword._readonly))v.next.call(void 0),pl();else if(H.isContextual.call(void 0,oe.ContextualKeyword._infer))ST();else{let e=I.state.inDisallowConditionalTypesContext;I.state.inDisallowConditionalTypesContext=!1,wT(),I.state.inDisallowConditionalTypesContext=e}}function xp(){if(v.eat.call(void 0,k.TokenType.bitwiseAND),pl(),v.match.call(void 0,k.TokenType.bitwiseAND))for(;v.eat.call(void 0,k.TokenType.bitwiseAND);)pl()}function IT(){if(v.eat.call(void 0,k.TokenType.bitwiseOR),xp(),v.match.call(void 0,k.TokenType.bitwiseOR))for(;v.eat.call(void 0,k.TokenType.bitwiseOR);)xp()}function ET(){return v.match.call(void 0,k.TokenType.lessThan)?!0:v.match.call(void 0,k.TokenType.parenL)&&PT()}function AT(){if(v.match.call(void 0,k.TokenType.name)||v.match.call(void 0,k.TokenType._this))return v.next.call(void 0),!0;if(v.match.call(void 0,k.TokenType.braceL)||v.match.call(void 0,k.TokenType.bracketL)){let e=1;for(v.next.call(void 0);e>0&&!I.state.error;)v.match.call(void 0,k.TokenType.braceL)||v.match.call(void 0,k.TokenType.bracketL)?e++:(v.match.call(void 0,k.TokenType.braceR)||v.match.call(void 0,k.TokenType.bracketR))&&e--,v.next.call(void 0);return!0}return!1}function PT(){let e=I.state.snapshot(),t=NT();return I.state.restoreFromSnapshot(e),t}function NT(){return v.next.call(void 0),!!(v.match.call(void 0,k.TokenType.parenR)||v.match.call(void 0,k.TokenType.ellipsis)||AT()&&(v.match.call(void 0,k.TokenType.colon)||v.match.call(void 0,k.TokenType.comma)||v.match.call(void 0,k.TokenType.question)||v.match.call(void 0,k.TokenType.eq)||v.match.call(void 0,k.TokenType.parenR)&&(v.next.call(void 0),v.match.call(void 0,k.TokenType.arrow))))}function Qi(e){let t=v.pushTypeContext.call(void 0,0);H.expect.call(void 0,e),OT()||rt(),v.popTypeContext.call(void 0,t)}function RT(){v.match.call(void 0,k.TokenType.colon)&&Qi(k.TokenType.colon)}function er(){v.match.call(void 0,k.TokenType.colon)&&tr()}Oe.tsTryParseTypeAnnotation=er;function LT(){v.eat.call(void 0,k.TokenType.colon)&&rt()}function OT(){let e=I.state.snapshot();return H.isContextual.call(void 0,oe.ContextualKeyword._asserts)?(v.next.call(void 0),H.eatContextual.call(void 0,oe.ContextualKeyword._is)?(rt(),!0):ul()||v.match.call(void 0,k.TokenType._this)?(v.next.call(void 0),H.eatContextual.call(void 0,oe.ContextualKeyword._is)&&rt(),!0):(I.state.restoreFromSnapshot(e),!1)):ul()||v.match.call(void 0,k.TokenType._this)?(v.next.call(void 0),H.isContextual.call(void 0,oe.ContextualKeyword._is)&&!H.hasPrecedingLineBreak.call(void 0)?(v.next.call(void 0),rt(),!0):(I.state.restoreFromSnapshot(e),!1)):!1}function tr(){let e=v.pushTypeContext.call(void 0,0);H.expect.call(void 0,k.TokenType.colon),rt(),v.popTypeContext.call(void 0,e)}Oe.tsParseTypeAnnotation=tr;function rt(){if(hl(),I.state.inDisallowConditionalTypesContext||H.hasPrecedingLineBreak.call(void 0)||!v.eat.call(void 0,k.TokenType._extends))return;let e=I.state.inDisallowConditionalTypesContext;I.state.inDisallowConditionalTypesContext=!0,hl(),I.state.inDisallowConditionalTypesContext=e,H.expect.call(void 0,k.TokenType.question),rt(),H.expect.call(void 0,k.TokenType.colon),rt()}Oe.tsParseType=rt;function DT(){return H.isContextual.call(void 0,oe.ContextualKeyword._abstract)&&v.lookaheadType.call(void 0)===k.TokenType._new}function hl(){if(ET()){cl(hs.TSFunctionType);return}if(v.match.call(void 0,k.TokenType._new)){cl(hs.TSConstructorType);return}else if(DT()){cl(hs.TSAbstractConstructorType);return}IT()}Oe.tsParseNonConditionalType=hl;function MT(){let e=v.pushTypeContext.call(void 0,1);rt(),H.expect.call(void 0,k.TokenType.greaterThan),v.popTypeContext.call(void 0,e),_e.parseMaybeUnary.call(void 0)}Oe.tsParseTypeAssertion=MT;function FT(){if(v.eat.call(void 0,k.TokenType.jsxTagStart)){I.state.tokens[I.state.tokens.length-1].type=k.TokenType.typeParameterStart;let e=v.pushTypeContext.call(void 0,1);for(;!v.match.call(void 0,k.TokenType.greaterThan)&&!I.state.error;)rt(),v.eat.call(void 0,k.TokenType.comma);rT.nextJSXTagToken.call(void 0),v.popTypeContext.call(void 0,e)}}Oe.tsTryParseJSXTypeArgument=FT;function Ip(){for(;!v.match.call(void 0,k.TokenType.braceL)&&!I.state.error;)BT(),v.eat.call(void 0,k.TokenType.comma)}function BT(){Zi(),v.match.call(void 0,k.TokenType.lessThan)&&yi()}function VT(){di.parseBindingIdentifier.call(void 0,!1),mi(),v.eat.call(void 0,k.TokenType._extends)&&Ip(),Sp()}function jT(){di.parseBindingIdentifier.call(void 0,!1),mi(),H.expect.call(void 0,k.TokenType.eq),rt(),H.semicolon.call(void 0)}function $T(){if(v.match.call(void 0,k.TokenType.string)?_e.parseLiteral.call(void 0):_e.parseIdentifier.call(void 0),v.eat.call(void 0,k.TokenType.eq)){let e=I.state.tokens.length-1;_e.parseMaybeAssign.call(void 0),I.state.tokens[e].rhsEndIndex=I.state.tokens.length}}function yl(){for(di.parseBindingIdentifier.call(void 0,!1),H.expect.call(void 0,k.TokenType.braceL);!v.eat.call(void 0,k.TokenType.braceR)&&!I.state.error;)$T(),v.eat.call(void 0,k.TokenType.comma)}function Tl(){H.expect.call(void 0,k.TokenType.braceL),Rn.parseBlockBody.call(void 0,k.TokenType.braceR)}function fl(){di.parseBindingIdentifier.call(void 0,!1),v.eat.call(void 0,k.TokenType.dot)?fl():Tl()}function Ep(){H.isContextual.call(void 0,oe.ContextualKeyword._global)?_e.parseIdentifier.call(void 0):v.match.call(void 0,k.TokenType.string)?_e.parseExprAtom.call(void 0):H.unexpected.call(void 0),v.match.call(void 0,k.TokenType.braceL)?Tl():H.semicolon.call(void 0)}function Ap(){di.parseImportedIdentifier.call(void 0),H.expect.call(void 0,k.TokenType.eq),KT(),H.semicolon.call(void 0)}Oe.tsParseImportEqualsDeclaration=Ap;function qT(){return H.isContextual.call(void 0,oe.ContextualKeyword._require)&&v.lookaheadType.call(void 0)===k.TokenType.parenL}function KT(){qT()?UT():Zi()}function UT(){H.expectContextual.call(void 0,oe.ContextualKeyword._require),H.expect.call(void 0,k.TokenType.parenL),v.match.call(void 0,k.TokenType.string)||H.unexpected.call(void 0),_e.parseLiteral.call(void 0),H.expect.call(void 0,k.TokenType.parenR)}function HT(){if(H.isLineTerminator.call(void 0))return!1;switch(I.state.type){case k.TokenType._function:{let e=v.pushTypeContext.call(void 0,1);v.next.call(void 0);let t=I.state.start;return Rn.parseFunction.call(void 0,t,!0),v.popTypeContext.call(void 0,e),!0}case k.TokenType._class:{let e=v.pushTypeContext.call(void 0,1);return Rn.parseClass.call(void 0,!0,!1),v.popTypeContext.call(void 0,e),!0}case k.TokenType._const:if(v.match.call(void 0,k.TokenType._const)&&H.isLookaheadContextual.call(void 0,oe.ContextualKeyword._enum)){let e=v.pushTypeContext.call(void 0,1);return H.expect.call(void 0,k.TokenType._const),H.expectContextual.call(void 0,oe.ContextualKeyword._enum),I.state.tokens[I.state.tokens.length-1].type=k.TokenType._enum,yl(),v.popTypeContext.call(void 0,e),!0}case k.TokenType._var:case k.TokenType._let:{let e=v.pushTypeContext.call(void 0,1);return Rn.parseVarStatement.call(void 0,I.state.type!==k.TokenType._var),v.popTypeContext.call(void 0,e),!0}case k.TokenType.name:{let e=v.pushTypeContext.call(void 0,1),t=I.state.contextualKeyword,s=!1;return t===oe.ContextualKeyword._global?(Ep(),s=!0):s=po(t,!0),v.popTypeContext.call(void 0,e),s}default:return!1}}function gp(){return po(I.state.contextualKeyword,!0)}function WT(e){switch(e){case oe.ContextualKeyword._declare:{let t=I.state.tokens.length-1;if(HT())return I.state.tokens[t].type=k.TokenType._declare,!0;break}case oe.ContextualKeyword._global:if(v.match.call(void 0,k.TokenType.braceL))return Tl(),!0;break;default:return po(e,!1)}return!1}function po(e,t){switch(e){case oe.ContextualKeyword._abstract:if(fi(t)&&v.match.call(void 0,k.TokenType._class))return I.state.tokens[I.state.tokens.length-1].type=k.TokenType._abstract,Rn.parseClass.call(void 0,!0,!1),!0;break;case oe.ContextualKeyword._enum:if(fi(t)&&v.match.call(void 0,k.TokenType.name))return I.state.tokens[I.state.tokens.length-1].type=k.TokenType._enum,yl(),!0;break;case oe.ContextualKeyword._interface:if(fi(t)&&v.match.call(void 0,k.TokenType.name)){let s=v.pushTypeContext.call(void 0,t?2:1);return VT(),v.popTypeContext.call(void 0,s),!0}break;case oe.ContextualKeyword._module:if(fi(t)){if(v.match.call(void 0,k.TokenType.string)){let s=v.pushTypeContext.call(void 0,t?2:1);return Ep(),v.popTypeContext.call(void 0,s),!0}else if(v.match.call(void 0,k.TokenType.name)){let s=v.pushTypeContext.call(void 0,t?2:1);return fl(),v.popTypeContext.call(void 0,s),!0}}break;case oe.ContextualKeyword._namespace:if(fi(t)&&v.match.call(void 0,k.TokenType.name)){let s=v.pushTypeContext.call(void 0,t?2:1);return fl(),v.popTypeContext.call(void 0,s),!0}break;case oe.ContextualKeyword._type:if(fi(t)&&v.match.call(void 0,k.TokenType.name)){let s=v.pushTypeContext.call(void 0,t?2:1);return jT(),v.popTypeContext.call(void 0,s),!0}break;default:break}return!1}function fi(e){return e?(v.next.call(void 0),!0):!H.isLineTerminator.call(void 0)}function GT(){let e=I.state.snapshot();return uo(),Rn.parseFunctionParams.call(void 0),RT(),H.expect.call(void 0,k.TokenType.arrow),I.state.error?(I.state.restoreFromSnapshot(e),!1):(_e.parseFunctionBody.call(void 0,!0),!0)}function kl(){I.state.type===k.TokenType.bitShiftL&&(I.state.pos-=1,v.finishToken.call(void 0,k.TokenType.lessThan)),yi()}function yi(){let e=v.pushTypeContext.call(void 0,0);for(H.expect.call(void 0,k.TokenType.lessThan);!v.eat.call(void 0,k.TokenType.greaterThan)&&!I.state.error;)rt(),v.eat.call(void 0,k.TokenType.comma);v.popTypeContext.call(void 0,e)}function zT(){if(v.match.call(void 0,k.TokenType.name))switch(I.state.contextualKeyword){case oe.ContextualKeyword._abstract:case oe.ContextualKeyword._declare:case oe.ContextualKeyword._enum:case oe.ContextualKeyword._interface:case oe.ContextualKeyword._module:case oe.ContextualKeyword._namespace:case oe.ContextualKeyword._type:return!0;default:break}return!1}Oe.tsIsDeclarationStart=zT;function XT(e,t){if(v.match.call(void 0,k.TokenType.colon)&&Qi(k.TokenType.colon),!v.match.call(void 0,k.TokenType.braceL)&&H.isLineTerminator.call(void 0)){let s=I.state.tokens.length-1;for(;s>=0&&(I.state.tokens[s].start>=e||I.state.tokens[s].type===k.TokenType._default||I.state.tokens[s].type===k.TokenType._export);)I.state.tokens[s].isType=!0,s--;return}_e.parseFunctionBody.call(void 0,!1,t)}Oe.tsParseFunctionBodyAndFinish=XT;function YT(e,t,s){if(!H.hasPrecedingLineBreak.call(void 0)&&v.eat.call(void 0,k.TokenType.bang)){I.state.tokens[I.state.tokens.length-1].type=k.TokenType.nonNullAssertion;return}if(v.match.call(void 0,k.TokenType.lessThan)||v.match.call(void 0,k.TokenType.bitShiftL)){let i=I.state.snapshot();if(!t&&_e.atPossibleAsync.call(void 0)&>())return;if(kl(),!t&&v.eat.call(void 0,k.TokenType.parenL)?(I.state.tokens[I.state.tokens.length-1].subscriptStartIndex=e,_e.parseCallExpressionArguments.call(void 0)):v.match.call(void 0,k.TokenType.backQuote)?_e.parseTemplate.call(void 0):(I.state.type===k.TokenType.greaterThan||I.state.type!==k.TokenType.parenL&&I.state.type&k.TokenType.IS_EXPRESSION_START&&!H.hasPrecedingLineBreak.call(void 0))&&H.unexpected.call(void 0),I.state.error)I.state.restoreFromSnapshot(i);else return}else!t&&v.match.call(void 0,k.TokenType.questionDot)&&v.lookaheadType.call(void 0)===k.TokenType.lessThan&&(v.next.call(void 0),I.state.tokens[e].isOptionalChainStart=!0,I.state.tokens[I.state.tokens.length-1].subscriptStartIndex=e,yi(),H.expect.call(void 0,k.TokenType.parenL),_e.parseCallExpressionArguments.call(void 0));_e.baseParseSubscript.call(void 0,e,t,s)}Oe.tsParseSubscript=YT;function JT(){if(v.eat.call(void 0,k.TokenType._import))return H.isContextual.call(void 0,oe.ContextualKeyword._type)&&v.lookaheadType.call(void 0)!==k.TokenType.eq&&H.expectContextual.call(void 0,oe.ContextualKeyword._type),Ap(),!0;if(v.eat.call(void 0,k.TokenType.eq))return _e.parseExpression.call(void 0),H.semicolon.call(void 0),!0;if(H.eatContextual.call(void 0,oe.ContextualKeyword._as))return H.expectContextual.call(void 0,oe.ContextualKeyword._namespace),_e.parseIdentifier.call(void 0),H.semicolon.call(void 0),!0;if(H.isContextual.call(void 0,oe.ContextualKeyword._type)){let e=v.lookaheadType.call(void 0);(e===k.TokenType.braceL||e===k.TokenType.star)&&v.next.call(void 0)}return!1}Oe.tsTryParseExport=JT;function QT(){if(_e.parseIdentifier.call(void 0),v.match.call(void 0,k.TokenType.comma)||v.match.call(void 0,k.TokenType.braceR)){I.state.tokens[I.state.tokens.length-1].identifierRole=v.IdentifierRole.ImportDeclaration;return}if(_e.parseIdentifier.call(void 0),v.match.call(void 0,k.TokenType.comma)||v.match.call(void 0,k.TokenType.braceR)){I.state.tokens[I.state.tokens.length-1].identifierRole=v.IdentifierRole.ImportDeclaration,I.state.tokens[I.state.tokens.length-2].isType=!0,I.state.tokens[I.state.tokens.length-1].isType=!0;return}if(_e.parseIdentifier.call(void 0),v.match.call(void 0,k.TokenType.comma)||v.match.call(void 0,k.TokenType.braceR)){I.state.tokens[I.state.tokens.length-3].identifierRole=v.IdentifierRole.ImportAccess,I.state.tokens[I.state.tokens.length-1].identifierRole=v.IdentifierRole.ImportDeclaration;return}_e.parseIdentifier.call(void 0),I.state.tokens[I.state.tokens.length-3].identifierRole=v.IdentifierRole.ImportAccess,I.state.tokens[I.state.tokens.length-1].identifierRole=v.IdentifierRole.ImportDeclaration,I.state.tokens[I.state.tokens.length-4].isType=!0,I.state.tokens[I.state.tokens.length-3].isType=!0,I.state.tokens[I.state.tokens.length-2].isType=!0,I.state.tokens[I.state.tokens.length-1].isType=!0}Oe.tsParseImportSpecifier=QT;function ZT(){if(_e.parseIdentifier.call(void 0),v.match.call(void 0,k.TokenType.comma)||v.match.call(void 0,k.TokenType.braceR)){I.state.tokens[I.state.tokens.length-1].identifierRole=v.IdentifierRole.ExportAccess;return}if(_e.parseIdentifier.call(void 0),v.match.call(void 0,k.TokenType.comma)||v.match.call(void 0,k.TokenType.braceR)){I.state.tokens[I.state.tokens.length-1].identifierRole=v.IdentifierRole.ExportAccess,I.state.tokens[I.state.tokens.length-2].isType=!0,I.state.tokens[I.state.tokens.length-1].isType=!0;return}if(_e.parseIdentifier.call(void 0),v.match.call(void 0,k.TokenType.comma)||v.match.call(void 0,k.TokenType.braceR)){I.state.tokens[I.state.tokens.length-3].identifierRole=v.IdentifierRole.ExportAccess;return}_e.parseIdentifier.call(void 0),I.state.tokens[I.state.tokens.length-3].identifierRole=v.IdentifierRole.ExportAccess,I.state.tokens[I.state.tokens.length-4].isType=!0,I.state.tokens[I.state.tokens.length-3].isType=!0,I.state.tokens[I.state.tokens.length-2].isType=!0,I.state.tokens[I.state.tokens.length-1].isType=!0}Oe.tsParseExportSpecifier=ZT;function ek(){if(H.isContextual.call(void 0,oe.ContextualKeyword._abstract)&&v.lookaheadType.call(void 0)===k.TokenType._class)return I.state.type=k.TokenType._abstract,v.next.call(void 0),Rn.parseClass.call(void 0,!0,!0),!0;if(H.isContextual.call(void 0,oe.ContextualKeyword._interface)){let e=v.pushTypeContext.call(void 0,2);return po(oe.ContextualKeyword._interface,!0),v.popTypeContext.call(void 0,e),!0}return!1}Oe.tsTryParseExportDefaultExpression=ek;function tk(){if(I.state.type===k.TokenType._const){let e=v.lookaheadTypeAndKeyword.call(void 0);if(e.type===k.TokenType.name&&e.contextualKeyword===oe.ContextualKeyword._enum)return H.expect.call(void 0,k.TokenType._const),H.expectContextual.call(void 0,oe.ContextualKeyword._enum),I.state.tokens[I.state.tokens.length-1].type=k.TokenType._enum,yl(),!0}return!1}Oe.tsTryParseStatementContent=tk;function nk(e){let t=I.state.tokens.length;bp([oe.ContextualKeyword._abstract,oe.ContextualKeyword._readonly,oe.ContextualKeyword._declare,oe.ContextualKeyword._static,oe.ContextualKeyword._override]);let s=I.state.tokens.length;if(wp()){let r=e?t-1:t;for(let a=r;a{\\"use strict\\";Object.defineProperty(fo,\\"__esModule\\",{value:!0});var Se=xt(),Me=be(),fe=Zt(),ho=Ns(),fs=cs(),at=Qt(),Rp=li(),dk=hi();function mk(){let e=!1,t=!1;for(;;){if(fe.state.pos>=fe.input.length){fs.unexpected.call(void 0,\\"Unterminated JSX contents\\");return}let s=fe.input.charCodeAt(fe.state.pos);if(s===at.charCodes.lessThan||s===at.charCodes.leftCurlyBrace){if(fe.state.pos===fe.state.start){if(s===at.charCodes.lessThan){fe.state.pos++,Se.finishToken.call(void 0,Me.TokenType.jsxTagStart);return}Se.getTokenFromCode.call(void 0,s);return}e&&!t?Se.finishToken.call(void 0,Me.TokenType.jsxEmptyText):Se.finishToken.call(void 0,Me.TokenType.jsxText);return}s===at.charCodes.lineFeed?e=!0:s!==at.charCodes.space&&s!==at.charCodes.carriageReturn&&s!==at.charCodes.tab&&(t=!0),fe.state.pos++}}function yk(e){for(fe.state.pos++;;){if(fe.state.pos>=fe.input.length){fs.unexpected.call(void 0,\\"Unterminated string constant\\");return}if(fe.input.charCodeAt(fe.state.pos)===e){fe.state.pos++;break}fe.state.pos++}Se.finishToken.call(void 0,Me.TokenType.string)}function Tk(){let e;do{if(fe.state.pos>fe.input.length){fs.unexpected.call(void 0,\\"Unexpectedly reached the end of input.\\");return}e=fe.input.charCodeAt(++fe.state.pos)}while(Rp.IS_IDENTIFIER_CHAR[e]||e===at.charCodes.dash);Se.finishToken.call(void 0,Me.TokenType.jsxName)}function xl(){dn()}function Lp(e){if(xl(),!Se.eat.call(void 0,Me.TokenType.colon)){fe.state.tokens[fe.state.tokens.length-1].identifierRole=e;return}xl()}function Op(){let e=fe.state.tokens.length;Lp(Se.IdentifierRole.Access);let t=!1;for(;Se.match.call(void 0,Me.TokenType.dot);)t=!0,dn(),xl();if(!t){let s=fe.state.tokens[e],i=fe.input.charCodeAt(s.start);i>=at.charCodes.lowercaseA&&i<=at.charCodes.lowercaseZ&&(s.identifierRole=null)}}function kk(){switch(fe.state.type){case Me.TokenType.braceL:Se.next.call(void 0),ho.parseExpression.call(void 0),dn();return;case Me.TokenType.jsxTagStart:Mp(),dn();return;case Me.TokenType.string:dn();return;default:fs.unexpected.call(void 0,\\"JSX value should be either an expression or a quoted JSX text\\")}}function vk(){fs.expect.call(void 0,Me.TokenType.ellipsis),ho.parseExpression.call(void 0)}function xk(e){if(Se.match.call(void 0,Me.TokenType.jsxTagEnd))return!1;Op(),fe.isTypeScriptEnabled&&dk.tsTryParseJSXTypeArgument.call(void 0);let t=!1;for(;!Se.match.call(void 0,Me.TokenType.slash)&&!Se.match.call(void 0,Me.TokenType.jsxTagEnd)&&!fe.state.error;){if(Se.eat.call(void 0,Me.TokenType.braceL)){t=!0,fs.expect.call(void 0,Me.TokenType.ellipsis),ho.parseMaybeAssign.call(void 0),dn();continue}t&&fe.state.end-fe.state.start===3&&fe.input.charCodeAt(fe.state.start)===at.charCodes.lowercaseK&&fe.input.charCodeAt(fe.state.start+1)===at.charCodes.lowercaseE&&fe.input.charCodeAt(fe.state.start+2)===at.charCodes.lowercaseY&&(fe.state.tokens[e].jsxRole=Se.JSXRole.KeyAfterPropSpread),Lp(Se.IdentifierRole.ObjectKey),Se.match.call(void 0,Me.TokenType.eq)&&(dn(),kk())}let s=Se.match.call(void 0,Me.TokenType.slash);return s&&dn(),s}function gk(){Se.match.call(void 0,Me.TokenType.jsxTagEnd)||Op()}function Dp(){let e=fe.state.tokens.length-1;fe.state.tokens[e].jsxRole=Se.JSXRole.NoChildren;let t=0;if(!xk(e))for(Ti();;)switch(fe.state.type){case Me.TokenType.jsxTagStart:if(dn(),Se.match.call(void 0,Me.TokenType.slash)){dn(),gk(),fe.state.tokens[e].jsxRole!==Se.JSXRole.KeyAfterPropSpread&&(t===1?fe.state.tokens[e].jsxRole=Se.JSXRole.OneChild:t>1&&(fe.state.tokens[e].jsxRole=Se.JSXRole.StaticChildren));return}t++,Dp(),Ti();break;case Me.TokenType.jsxText:t++,Ti();break;case Me.TokenType.jsxEmptyText:Ti();break;case Me.TokenType.braceL:Se.next.call(void 0),Se.match.call(void 0,Me.TokenType.ellipsis)?(vk(),Ti(),t+=2):(Se.match.call(void 0,Me.TokenType.braceR)||(t++,ho.parseExpression.call(void 0)),Ti());break;default:fs.unexpected.call(void 0);return}}function Mp(){dn(),Dp()}fo.jsxParseElement=Mp;function dn(){fe.state.tokens.push(new Se.Token),Se.skipSpace.call(void 0),fe.state.start=fe.state.pos;let e=fe.input.charCodeAt(fe.state.pos);if(Rp.IS_IDENTIFIER_START[e])Tk();else if(e===at.charCodes.quotationMark||e===at.charCodes.apostrophe)yk(e);else switch(++fe.state.pos,e){case at.charCodes.greaterThan:Se.finishToken.call(void 0,Me.TokenType.jsxTagEnd);break;case at.charCodes.lessThan:Se.finishToken.call(void 0,Me.TokenType.jsxTagStart);break;case at.charCodes.slash:Se.finishToken.call(void 0,Me.TokenType.slash);break;case at.charCodes.equalsTo:Se.finishToken.call(void 0,Me.TokenType.eq);break;case at.charCodes.leftCurlyBrace:Se.finishToken.call(void 0,Me.TokenType.braceL);break;case at.charCodes.dot:Se.finishToken.call(void 0,Me.TokenType.dot);break;case at.charCodes.colon:Se.finishToken.call(void 0,Me.TokenType.colon);break;default:fs.unexpected.call(void 0)}}fo.nextJSXTagToken=dn;function Ti(){fe.state.tokens.push(new Se.Token),fe.state.start=fe.state.pos,mk()}});var Bp=Z(yo=>{\\"use strict\\";Object.defineProperty(yo,\\"__esModule\\",{value:!0});var mo=xt(),ki=be(),Fp=Zt(),_k=Ns(),bk=Ji(),Ck=hi();function wk(e){if(mo.match.call(void 0,ki.TokenType.question)){let t=mo.lookaheadType.call(void 0);if(t===ki.TokenType.colon||t===ki.TokenType.comma||t===ki.TokenType.parenR)return}_k.baseParseConditional.call(void 0,e)}yo.typedParseConditional=wk;function Sk(){mo.eatTypeToken.call(void 0,ki.TokenType.question),mo.match.call(void 0,ki.TokenType.colon)&&(Fp.isTypeScriptEnabled?Ck.tsParseTypeAnnotation.call(void 0):Fp.isFlowEnabled&&bk.flowParseTypeAnnotation.call(void 0))}yo.typedParseParenItem=Sk});var Ns=Z(et=>{\\"use strict\\";Object.defineProperty(et,\\"__esModule\\",{value:!0});var Yn=Ji(),Ik=vl(),Vp=Bp(),ms=hi(),K=xt(),zn=It(),jp=qr(),B=be(),$p=Qt(),Ek=li(),j=Zt(),ds=lo(),gn=nr(),Pe=cs(),vo=class{constructor(t){this.stop=t}};et.StopState=vo;function sr(e=!1){if(mn(e),K.match.call(void 0,B.TokenType.comma))for(;K.eat.call(void 0,B.TokenType.comma);)mn(e)}et.parseExpression=sr;function mn(e=!1,t=!1){return j.isTypeScriptEnabled?ms.tsParseMaybeAssign.call(void 0,e,t):j.isFlowEnabled?Yn.flowParseMaybeAssign.call(void 0,e,t):qp(e,t)}et.parseMaybeAssign=mn;function qp(e,t){if(K.match.call(void 0,B.TokenType._yield))return Hk(),!1;(K.match.call(void 0,B.TokenType.parenL)||K.match.call(void 0,B.TokenType.name)||K.match.call(void 0,B.TokenType._yield))&&(j.state.potentialArrowAt=j.state.start);let s=Ak(e);return t&&wl(),j.state.type&B.TokenType.IS_ASSIGN?(K.next.call(void 0),mn(e),!1):s}et.baseParseMaybeAssign=qp;function Ak(e){return Nk(e)?!0:(Pk(e),!1)}function Pk(e){j.isTypeScriptEnabled||j.isFlowEnabled?Vp.typedParseConditional.call(void 0,e):Kp(e)}function Kp(e){K.eat.call(void 0,B.TokenType.question)&&(mn(),Pe.expect.call(void 0,B.TokenType.colon),mn(e))}et.baseParseConditional=Kp;function Nk(e){let t=j.state.tokens.length;return rr()?!0:(To(t,-1,e),!1)}function To(e,t,s){if(j.isTypeScriptEnabled&&(B.TokenType._in&B.TokenType.PRECEDENCE_MASK)>t&&!Pe.hasPrecedingLineBreak.call(void 0)&&(Pe.eatContextual.call(void 0,zn.ContextualKeyword._as)||Pe.eatContextual.call(void 0,zn.ContextualKeyword._satisfies))){let r=K.pushTypeContext.call(void 0,1);ms.tsParseType.call(void 0),K.popTypeContext.call(void 0,r),K.rescan_gt.call(void 0),To(e,t,s);return}let i=j.state.type&B.TokenType.PRECEDENCE_MASK;if(i>0&&(!s||!K.match.call(void 0,B.TokenType._in))&&i>t){let r=j.state.type;K.next.call(void 0),r===B.TokenType.nullishCoalescing&&(j.state.tokens[j.state.tokens.length-1].nullishStartIndex=e);let a=j.state.tokens.length;rr(),To(a,r&B.TokenType.IS_RIGHT_ASSOCIATIVE?i-1:i,s),r===B.TokenType.nullishCoalescing&&(j.state.tokens[e].numNullishCoalesceStarts++,j.state.tokens[j.state.tokens.length-1].numNullishCoalesceEnds++),To(e,t,s)}}function rr(){if(j.isTypeScriptEnabled&&!j.isJSXEnabled&&K.eat.call(void 0,B.TokenType.lessThan))return ms.tsParseTypeAssertion.call(void 0),!1;if(Pe.isContextual.call(void 0,zn.ContextualKeyword._module)&&K.lookaheadCharCode.call(void 0)===$p.charCodes.leftCurlyBrace&&!Pe.hasFollowingLineBreak.call(void 0))return Wk(),!1;if(j.state.type&B.TokenType.IS_PREFIX)return K.next.call(void 0),rr(),!1;if(Up())return!0;for(;j.state.type&B.TokenType.IS_POSTFIX&&!Pe.canInsertSemicolon.call(void 0);)j.state.type===B.TokenType.preIncDec&&(j.state.type=B.TokenType.postIncDec),K.next.call(void 0);return!1}et.parseMaybeUnary=rr;function Up(){let e=j.state.tokens.length;return _o()?!0:(bl(e),j.state.tokens.length>e&&j.state.tokens[e].isOptionalChainStart&&(j.state.tokens[j.state.tokens.length-1].isOptionalChainEnd=!0),!1)}et.parseExprSubscripts=Up;function bl(e,t=!1){j.isFlowEnabled?Yn.flowParseSubscripts.call(void 0,e,t):Hp(e,t)}function Hp(e,t=!1){let s=new vo(!1);do Rk(e,t,s);while(!s.stop&&!j.state.error)}et.baseParseSubscripts=Hp;function Rk(e,t,s){j.isTypeScriptEnabled?ms.tsParseSubscript.call(void 0,e,t,s):j.isFlowEnabled?Yn.flowParseSubscript.call(void 0,e,t,s):Wp(e,t,s)}function Wp(e,t,s){if(!t&&K.eat.call(void 0,B.TokenType.doubleColon))Cl(),s.stop=!0,bl(e,t);else if(K.match.call(void 0,B.TokenType.questionDot)){if(j.state.tokens[e].isOptionalChainStart=!0,t&&K.lookaheadType.call(void 0)===B.TokenType.parenL){s.stop=!0;return}K.next.call(void 0),j.state.tokens[j.state.tokens.length-1].subscriptStartIndex=e,K.eat.call(void 0,B.TokenType.bracketL)?(sr(),Pe.expect.call(void 0,B.TokenType.bracketR)):K.eat.call(void 0,B.TokenType.parenL)?ko():xo()}else if(K.eat.call(void 0,B.TokenType.dot))j.state.tokens[j.state.tokens.length-1].subscriptStartIndex=e,xo();else if(K.eat.call(void 0,B.TokenType.bracketL))j.state.tokens[j.state.tokens.length-1].subscriptStartIndex=e,sr(),Pe.expect.call(void 0,B.TokenType.bracketR);else if(!t&&K.match.call(void 0,B.TokenType.parenL))if(Gp()){let i=j.state.snapshot(),r=j.state.tokens.length;K.next.call(void 0),j.state.tokens[j.state.tokens.length-1].subscriptStartIndex=e;let a=j.getNextContextId.call(void 0);j.state.tokens[j.state.tokens.length-1].contextId=a,ko(),j.state.tokens[j.state.tokens.length-1].contextId=a,Lk()&&(j.state.restoreFromSnapshot(i),s.stop=!0,j.state.scopeDepth++,gn.parseFunctionParams.call(void 0),Ok(r))}else{K.next.call(void 0),j.state.tokens[j.state.tokens.length-1].subscriptStartIndex=e;let i=j.getNextContextId.call(void 0);j.state.tokens[j.state.tokens.length-1].contextId=i,ko(),j.state.tokens[j.state.tokens.length-1].contextId=i}else K.match.call(void 0,B.TokenType.backQuote)?Sl():s.stop=!0}et.baseParseSubscript=Wp;function Gp(){return j.state.tokens[j.state.tokens.length-1].contextualKeyword===zn.ContextualKeyword._async&&!Pe.canInsertSemicolon.call(void 0)}et.atPossibleAsync=Gp;function ko(){let e=!0;for(;!K.eat.call(void 0,B.TokenType.parenR)&&!j.state.error;){if(e)e=!1;else if(Pe.expect.call(void 0,B.TokenType.comma),K.eat.call(void 0,B.TokenType.parenR))break;Zp(!1)}}et.parseCallExpressionArguments=ko;function Lk(){return K.match.call(void 0,B.TokenType.colon)||K.match.call(void 0,B.TokenType.arrow)}function Ok(e){j.isTypeScriptEnabled?ms.tsStartParseAsyncArrowFromCallExpression.call(void 0):j.isFlowEnabled&&Yn.flowStartParseAsyncArrowFromCallExpression.call(void 0),Pe.expect.call(void 0,B.TokenType.arrow),ir(e)}function Cl(){let e=j.state.tokens.length;_o(),bl(e,!0)}function _o(){if(K.eat.call(void 0,B.TokenType.modulo))return Xn(),!1;if(K.match.call(void 0,B.TokenType.jsxText)||K.match.call(void 0,B.TokenType.jsxEmptyText))return zp(),!1;if(K.match.call(void 0,B.TokenType.lessThan)&&j.isJSXEnabled)return j.state.type=B.TokenType.jsxTagStart,Ik.jsxParseElement.call(void 0),K.next.call(void 0),!1;let e=j.state.potentialArrowAt===j.state.start;switch(j.state.type){case B.TokenType.slash:case B.TokenType.assign:K.retokenizeSlashAsRegex.call(void 0);case B.TokenType._super:case B.TokenType._this:case B.TokenType.regexp:case B.TokenType.num:case B.TokenType.bigint:case B.TokenType.decimal:case B.TokenType.string:case B.TokenType._null:case B.TokenType._true:case B.TokenType._false:return K.next.call(void 0),!1;case B.TokenType._import:return K.next.call(void 0),K.match.call(void 0,B.TokenType.dot)&&(j.state.tokens[j.state.tokens.length-1].type=B.TokenType.name,K.next.call(void 0),Xn()),!1;case B.TokenType.name:{let t=j.state.tokens.length,s=j.state.start,i=j.state.contextualKeyword;return Xn(),i===zn.ContextualKeyword._await?(Uk(),!1):i===zn.ContextualKeyword._async&&K.match.call(void 0,B.TokenType._function)&&!Pe.canInsertSemicolon.call(void 0)?(K.next.call(void 0),gn.parseFunction.call(void 0,s,!1),!1):e&&i===zn.ContextualKeyword._async&&!Pe.canInsertSemicolon.call(void 0)&&K.match.call(void 0,B.TokenType.name)?(j.state.scopeDepth++,ds.parseBindingIdentifier.call(void 0,!1),Pe.expect.call(void 0,B.TokenType.arrow),ir(t),!0):K.match.call(void 0,B.TokenType._do)&&!Pe.canInsertSemicolon.call(void 0)?(K.next.call(void 0),gn.parseBlock.call(void 0),!1):e&&!Pe.canInsertSemicolon.call(void 0)&&K.match.call(void 0,B.TokenType.arrow)?(j.state.scopeDepth++,ds.markPriorBindingIdentifier.call(void 0,!1),Pe.expect.call(void 0,B.TokenType.arrow),ir(t),!0):(j.state.tokens[j.state.tokens.length-1].identifierRole=K.IdentifierRole.Access,!1)}case B.TokenType._do:return K.next.call(void 0),gn.parseBlock.call(void 0),!1;case B.TokenType.parenL:return Xp(e);case B.TokenType.bracketL:return K.next.call(void 0),Qp(B.TokenType.bracketR,!0),!1;case B.TokenType.braceL:return Yp(!1,!1),!1;case B.TokenType._function:return Dk(),!1;case B.TokenType.at:gn.parseDecorators.call(void 0);case B.TokenType._class:return gn.parseClass.call(void 0,!1),!1;case B.TokenType._new:return Bk(),!1;case B.TokenType.backQuote:return Sl(),!1;case B.TokenType.doubleColon:return K.next.call(void 0),Cl(),!1;case B.TokenType.hash:{let t=K.lookaheadCharCode.call(void 0);return Ek.IS_IDENTIFIER_START[t]||t===$p.charCodes.backslash?xo():K.next.call(void 0),!1}default:return Pe.unexpected.call(void 0),!1}}et.parseExprAtom=_o;function xo(){K.eat.call(void 0,B.TokenType.hash),Xn()}function Dk(){let e=j.state.start;Xn(),K.eat.call(void 0,B.TokenType.dot)&&Xn(),gn.parseFunction.call(void 0,e,!1)}function zp(){K.next.call(void 0)}et.parseLiteral=zp;function Mk(){Pe.expect.call(void 0,B.TokenType.parenL),sr(),Pe.expect.call(void 0,B.TokenType.parenR)}et.parseParenExpression=Mk;function Xp(e){let t=j.state.snapshot(),s=j.state.tokens.length;Pe.expect.call(void 0,B.TokenType.parenL);let i=!0;for(;!K.match.call(void 0,B.TokenType.parenR)&&!j.state.error;){if(i)i=!1;else if(Pe.expect.call(void 0,B.TokenType.comma),K.match.call(void 0,B.TokenType.parenR))break;if(K.match.call(void 0,B.TokenType.ellipsis)){ds.parseRest.call(void 0,!1),wl();break}else mn(!1,!0)}return Pe.expect.call(void 0,B.TokenType.parenR),e&&Fk()&&gl()?(j.state.restoreFromSnapshot(t),j.state.scopeDepth++,gn.parseFunctionParams.call(void 0),gl(),ir(s),j.state.error?(j.state.restoreFromSnapshot(t),Xp(!1),!1):!0):!1}function Fk(){return K.match.call(void 0,B.TokenType.colon)||!Pe.canInsertSemicolon.call(void 0)}function gl(){return j.isTypeScriptEnabled?ms.tsParseArrow.call(void 0):j.isFlowEnabled?Yn.flowParseArrow.call(void 0):K.eat.call(void 0,B.TokenType.arrow)}et.parseArrow=gl;function wl(){(j.isTypeScriptEnabled||j.isFlowEnabled)&&Vp.typedParseParenItem.call(void 0)}function Bk(){if(Pe.expect.call(void 0,B.TokenType._new),K.eat.call(void 0,B.TokenType.dot)){Xn();return}Vk(),j.isFlowEnabled&&Yn.flowStartParseNewArguments.call(void 0),K.eat.call(void 0,B.TokenType.parenL)&&Qp(B.TokenType.parenR)}function Vk(){Cl(),K.eat.call(void 0,B.TokenType.questionDot)}function Sl(){for(K.nextTemplateToken.call(void 0),K.nextTemplateToken.call(void 0);!K.match.call(void 0,B.TokenType.backQuote)&&!j.state.error;)Pe.expect.call(void 0,B.TokenType.dollarBraceL),sr(),K.nextTemplateToken.call(void 0),K.nextTemplateToken.call(void 0);K.next.call(void 0)}et.parseTemplate=Sl;function Yp(e,t){let s=j.getNextContextId.call(void 0),i=!0;for(K.next.call(void 0),j.state.tokens[j.state.tokens.length-1].contextId=s;!K.eat.call(void 0,B.TokenType.braceR)&&!j.state.error;){if(i)i=!1;else if(Pe.expect.call(void 0,B.TokenType.comma),K.eat.call(void 0,B.TokenType.braceR))break;let r=!1;if(K.match.call(void 0,B.TokenType.ellipsis)){let a=j.state.tokens.length;if(ds.parseSpread.call(void 0),e&&(j.state.tokens.length===a+2&&ds.markPriorBindingIdentifier.call(void 0,t),K.eat.call(void 0,B.TokenType.braceR)))break;continue}e||(r=K.eat.call(void 0,B.TokenType.star)),!e&&Pe.isContextual.call(void 0,zn.ContextualKeyword._async)?(r&&Pe.unexpected.call(void 0),Xn(),K.match.call(void 0,B.TokenType.colon)||K.match.call(void 0,B.TokenType.parenL)||K.match.call(void 0,B.TokenType.braceR)||K.match.call(void 0,B.TokenType.eq)||K.match.call(void 0,B.TokenType.comma)||(K.match.call(void 0,B.TokenType.star)&&(K.next.call(void 0),r=!0),go(s))):go(s),Kk(e,t,s)}j.state.tokens[j.state.tokens.length-1].contextId=s}et.parseObj=Yp;function jk(e){return!e&&(K.match.call(void 0,B.TokenType.string)||K.match.call(void 0,B.TokenType.num)||K.match.call(void 0,B.TokenType.bracketL)||K.match.call(void 0,B.TokenType.name)||!!(j.state.type&B.TokenType.IS_KEYWORD))}function $k(e,t){let s=j.state.start;return K.match.call(void 0,B.TokenType.parenL)?(e&&Pe.unexpected.call(void 0),_l(s,!1),!0):jk(e)?(go(t),_l(s,!1),!0):!1}function qk(e,t){if(K.eat.call(void 0,B.TokenType.colon)){e?ds.parseMaybeDefault.call(void 0,t):mn(!1);return}let s;e?j.state.scopeDepth===0?s=K.IdentifierRole.ObjectShorthandTopLevelDeclaration:t?s=K.IdentifierRole.ObjectShorthandBlockScopedDeclaration:s=K.IdentifierRole.ObjectShorthandFunctionScopedDeclaration:s=K.IdentifierRole.ObjectShorthand,j.state.tokens[j.state.tokens.length-1].identifierRole=s,ds.parseMaybeDefault.call(void 0,t,!0)}function Kk(e,t,s){j.isTypeScriptEnabled?ms.tsStartParseObjPropValue.call(void 0):j.isFlowEnabled&&Yn.flowStartParseObjPropValue.call(void 0),$k(e,s)||qk(e,t)}function go(e){j.isFlowEnabled&&Yn.flowParseVariance.call(void 0),K.eat.call(void 0,B.TokenType.bracketL)?(j.state.tokens[j.state.tokens.length-1].contextId=e,mn(),Pe.expect.call(void 0,B.TokenType.bracketR),j.state.tokens[j.state.tokens.length-1].contextId=e):(K.match.call(void 0,B.TokenType.num)||K.match.call(void 0,B.TokenType.string)||K.match.call(void 0,B.TokenType.bigint)||K.match.call(void 0,B.TokenType.decimal)?_o():xo(),j.state.tokens[j.state.tokens.length-1].identifierRole=K.IdentifierRole.ObjectKey,j.state.tokens[j.state.tokens.length-1].contextId=e)}et.parsePropertyName=go;function _l(e,t){let s=j.getNextContextId.call(void 0);j.state.scopeDepth++;let i=j.state.tokens.length,r=t;gn.parseFunctionParams.call(void 0,r,s),Jp(e,s);let a=j.state.tokens.length;j.state.scopes.push(new jp.Scope(i,a,!0)),j.state.scopeDepth--}et.parseMethod=_l;function ir(e){Il(!0);let t=j.state.tokens.length;j.state.scopes.push(new jp.Scope(e,t,!0)),j.state.scopeDepth--}et.parseArrowExpression=ir;function Jp(e,t=0){j.isTypeScriptEnabled?ms.tsParseFunctionBodyAndFinish.call(void 0,e,t):j.isFlowEnabled?Yn.flowParseFunctionBodyAndFinish.call(void 0,t):Il(!1,t)}et.parseFunctionBodyAndFinish=Jp;function Il(e,t=0){e&&!K.match.call(void 0,B.TokenType.braceL)?mn():gn.parseBlock.call(void 0,!0,t)}et.parseFunctionBody=Il;function Qp(e,t=!1){let s=!0;for(;!K.eat.call(void 0,e)&&!j.state.error;){if(s)s=!1;else if(Pe.expect.call(void 0,B.TokenType.comma),K.eat.call(void 0,e))break;Zp(t)}}function Zp(e){e&&K.match.call(void 0,B.TokenType.comma)||(K.match.call(void 0,B.TokenType.ellipsis)?(ds.parseSpread.call(void 0),wl()):K.match.call(void 0,B.TokenType.question)?K.next.call(void 0):mn(!1,!0))}function Xn(){K.next.call(void 0),j.state.tokens[j.state.tokens.length-1].type=B.TokenType.name}et.parseIdentifier=Xn;function Uk(){rr()}function Hk(){K.next.call(void 0),!K.match.call(void 0,B.TokenType.semi)&&!Pe.canInsertSemicolon.call(void 0)&&(K.eat.call(void 0,B.TokenType.star),mn())}function Wk(){Pe.expectContextual.call(void 0,zn.ContextualKeyword._module),Pe.expect.call(void 0,B.TokenType.braceL),gn.parseBlockBody.call(void 0,B.TokenType.braceR)}});var Ji=Z(Je=>{\\"use strict\\";Object.defineProperty(Je,\\"__esModule\\",{value:!0});var C=xt(),ye=It(),_=be(),ue=Zt(),je=Ns(),ys=nr(),z=cs();function Gk(e){return(e.type===_.TokenType.name||!!(e.type&_.TokenType.IS_KEYWORD))&&e.contextualKeyword!==ye.ContextualKeyword._from}function Ln(e){let t=C.pushTypeContext.call(void 0,0);z.expect.call(void 0,e||_.TokenType.colon),Wt(),C.popTypeContext.call(void 0,t)}function eh(){z.expect.call(void 0,_.TokenType.modulo),z.expectContextual.call(void 0,ye.ContextualKeyword._checks),C.eat.call(void 0,_.TokenType.parenL)&&(je.parseExpression.call(void 0),z.expect.call(void 0,_.TokenType.parenR))}function Pl(){let e=C.pushTypeContext.call(void 0,0);z.expect.call(void 0,_.TokenType.colon),C.match.call(void 0,_.TokenType.modulo)?eh():(Wt(),C.match.call(void 0,_.TokenType.modulo)&&eh()),C.popTypeContext.call(void 0,e)}function zk(){C.next.call(void 0),Nl(!0)}function Xk(){C.next.call(void 0),je.parseIdentifier.call(void 0),C.match.call(void 0,_.TokenType.lessThan)&&On(),z.expect.call(void 0,_.TokenType.parenL),Al(),z.expect.call(void 0,_.TokenType.parenR),Pl(),z.semicolon.call(void 0)}function El(){C.match.call(void 0,_.TokenType._class)?zk():C.match.call(void 0,_.TokenType._function)?Xk():C.match.call(void 0,_.TokenType._var)?Yk():z.eatContextual.call(void 0,ye.ContextualKeyword._module)?C.eat.call(void 0,_.TokenType.dot)?Zk():Jk():z.isContextual.call(void 0,ye.ContextualKeyword._type)?e0():z.isContextual.call(void 0,ye.ContextualKeyword._opaque)?t0():z.isContextual.call(void 0,ye.ContextualKeyword._interface)?n0():C.match.call(void 0,_.TokenType._export)?Qk():z.unexpected.call(void 0)}function Yk(){C.next.call(void 0),oh(),z.semicolon.call(void 0)}function Jk(){for(C.match.call(void 0,_.TokenType.string)?je.parseExprAtom.call(void 0):je.parseIdentifier.call(void 0),z.expect.call(void 0,_.TokenType.braceL);!C.match.call(void 0,_.TokenType.braceR)&&!ue.state.error;)C.match.call(void 0,_.TokenType._import)?(C.next.call(void 0),ys.parseImport.call(void 0)):z.unexpected.call(void 0);z.expect.call(void 0,_.TokenType.braceR)}function Qk(){z.expect.call(void 0,_.TokenType._export),C.eat.call(void 0,_.TokenType._default)?C.match.call(void 0,_.TokenType._function)||C.match.call(void 0,_.TokenType._class)?El():(Wt(),z.semicolon.call(void 0)):C.match.call(void 0,_.TokenType._var)||C.match.call(void 0,_.TokenType._function)||C.match.call(void 0,_.TokenType._class)||z.isContextual.call(void 0,ye.ContextualKeyword._opaque)?El():C.match.call(void 0,_.TokenType.star)||C.match.call(void 0,_.TokenType.braceL)||z.isContextual.call(void 0,ye.ContextualKeyword._interface)||z.isContextual.call(void 0,ye.ContextualKeyword._type)||z.isContextual.call(void 0,ye.ContextualKeyword._opaque)?ys.parseExport.call(void 0):z.unexpected.call(void 0)}function Zk(){z.expectContextual.call(void 0,ye.ContextualKeyword._exports),vi(),z.semicolon.call(void 0)}function e0(){C.next.call(void 0),Ll()}function t0(){C.next.call(void 0),Ol(!0)}function n0(){C.next.call(void 0),Nl()}function Nl(e=!1){if(So(),C.match.call(void 0,_.TokenType.lessThan)&&On(),C.eat.call(void 0,_.TokenType._extends))do bo();while(!e&&C.eat.call(void 0,_.TokenType.comma));if(z.isContextual.call(void 0,ye.ContextualKeyword._mixins)){C.next.call(void 0);do bo();while(C.eat.call(void 0,_.TokenType.comma))}if(z.isContextual.call(void 0,ye.ContextualKeyword._implements)){C.next.call(void 0);do bo();while(C.eat.call(void 0,_.TokenType.comma))}Co(e,!1,e)}function bo(){sh(!1),C.match.call(void 0,_.TokenType.lessThan)&&Rs()}function Rl(){Nl()}function So(){je.parseIdentifier.call(void 0)}function Ll(){So(),C.match.call(void 0,_.TokenType.lessThan)&&On(),Ln(_.TokenType.eq),z.semicolon.call(void 0)}function Ol(e){z.expectContextual.call(void 0,ye.ContextualKeyword._type),So(),C.match.call(void 0,_.TokenType.lessThan)&&On(),C.match.call(void 0,_.TokenType.colon)&&Ln(_.TokenType.colon),e||Ln(_.TokenType.eq),z.semicolon.call(void 0)}function s0(){Fl(),oh(),C.eat.call(void 0,_.TokenType.eq)&&Wt()}function On(){let e=C.pushTypeContext.call(void 0,0);C.match.call(void 0,_.TokenType.lessThan)||C.match.call(void 0,_.TokenType.typeParameterStart)?C.next.call(void 0):z.unexpected.call(void 0);do s0(),C.match.call(void 0,_.TokenType.greaterThan)||z.expect.call(void 0,_.TokenType.comma);while(!C.match.call(void 0,_.TokenType.greaterThan)&&!ue.state.error);z.expect.call(void 0,_.TokenType.greaterThan),C.popTypeContext.call(void 0,e)}Je.flowParseTypeParameterDeclaration=On;function Rs(){let e=C.pushTypeContext.call(void 0,0);for(z.expect.call(void 0,_.TokenType.lessThan);!C.match.call(void 0,_.TokenType.greaterThan)&&!ue.state.error;)Wt(),C.match.call(void 0,_.TokenType.greaterThan)||z.expect.call(void 0,_.TokenType.comma);z.expect.call(void 0,_.TokenType.greaterThan),C.popTypeContext.call(void 0,e)}function i0(){if(z.expectContextual.call(void 0,ye.ContextualKeyword._interface),C.eat.call(void 0,_.TokenType._extends))do bo();while(C.eat.call(void 0,_.TokenType.comma));Co(!1,!1,!1)}function Dl(){C.match.call(void 0,_.TokenType.num)||C.match.call(void 0,_.TokenType.string)?je.parseExprAtom.call(void 0):je.parseIdentifier.call(void 0)}function r0(){C.lookaheadType.call(void 0)===_.TokenType.colon?(Dl(),Ln()):Wt(),z.expect.call(void 0,_.TokenType.bracketR),Ln()}function o0(){Dl(),z.expect.call(void 0,_.TokenType.bracketR),z.expect.call(void 0,_.TokenType.bracketR),C.match.call(void 0,_.TokenType.lessThan)||C.match.call(void 0,_.TokenType.parenL)?Ml():(C.eat.call(void 0,_.TokenType.question),Ln())}function Ml(){for(C.match.call(void 0,_.TokenType.lessThan)&&On(),z.expect.call(void 0,_.TokenType.parenL);!C.match.call(void 0,_.TokenType.parenR)&&!C.match.call(void 0,_.TokenType.ellipsis)&&!ue.state.error;)wo(),C.match.call(void 0,_.TokenType.parenR)||z.expect.call(void 0,_.TokenType.comma);C.eat.call(void 0,_.TokenType.ellipsis)&&wo(),z.expect.call(void 0,_.TokenType.parenR),Ln()}function a0(){Ml()}function Co(e,t,s){let i;for(t&&C.match.call(void 0,_.TokenType.braceBarL)?(z.expect.call(void 0,_.TokenType.braceBarL),i=_.TokenType.braceBarR):(z.expect.call(void 0,_.TokenType.braceL),i=_.TokenType.braceR);!C.match.call(void 0,i)&&!ue.state.error;){if(s&&z.isContextual.call(void 0,ye.ContextualKeyword._proto)){let r=C.lookaheadType.call(void 0);r!==_.TokenType.colon&&r!==_.TokenType.question&&(C.next.call(void 0),e=!1)}if(e&&z.isContextual.call(void 0,ye.ContextualKeyword._static)){let r=C.lookaheadType.call(void 0);r!==_.TokenType.colon&&r!==_.TokenType.question&&C.next.call(void 0)}if(Fl(),C.eat.call(void 0,_.TokenType.bracketL))C.eat.call(void 0,_.TokenType.bracketL)?o0():r0();else if(C.match.call(void 0,_.TokenType.parenL)||C.match.call(void 0,_.TokenType.lessThan))a0();else{if(z.isContextual.call(void 0,ye.ContextualKeyword._get)||z.isContextual.call(void 0,ye.ContextualKeyword._set)){let r=C.lookaheadType.call(void 0);(r===_.TokenType.name||r===_.TokenType.string||r===_.TokenType.num)&&C.next.call(void 0)}l0()}c0()}z.expect.call(void 0,i)}function l0(){if(C.match.call(void 0,_.TokenType.ellipsis)){if(z.expect.call(void 0,_.TokenType.ellipsis),C.eat.call(void 0,_.TokenType.comma)||C.eat.call(void 0,_.TokenType.semi),C.match.call(void 0,_.TokenType.braceR))return;Wt()}else Dl(),C.match.call(void 0,_.TokenType.lessThan)||C.match.call(void 0,_.TokenType.parenL)?Ml():(C.eat.call(void 0,_.TokenType.question),Ln())}function c0(){!C.eat.call(void 0,_.TokenType.semi)&&!C.eat.call(void 0,_.TokenType.comma)&&!C.match.call(void 0,_.TokenType.braceR)&&!C.match.call(void 0,_.TokenType.braceBarR)&&z.unexpected.call(void 0)}function sh(e){for(e||je.parseIdentifier.call(void 0);C.eat.call(void 0,_.TokenType.dot);)je.parseIdentifier.call(void 0)}function u0(){sh(!0),C.match.call(void 0,_.TokenType.lessThan)&&Rs()}function p0(){z.expect.call(void 0,_.TokenType._typeof),ih()}function h0(){for(z.expect.call(void 0,_.TokenType.bracketL);ue.state.pos{\\"use strict\\";Object.defineProperty(Tt,\\"__esModule\\",{value:!0});var $0=Ul(),Ft=Ji(),dt=hi(),$=xt(),ke=It(),Ts=qr(),D=be(),lh=Qt(),P=Zt(),De=Ns(),ks=lo(),ee=cs();function q0(){if(ql(D.TokenType.eof),P.state.scopes.push(new Ts.Scope(0,P.state.tokens.length,!0)),P.state.scopeDepth!==0)throw new Error(`Invalid scope depth at end of file: ${P.state.scopeDepth}`);return new $0.File(P.state.tokens,P.state.scopes)}Tt.parseTopLevel=q0;function _n(e){P.isFlowEnabled&&Ft.flowTryParseStatement.call(void 0)||($.match.call(void 0,D.TokenType.at)&&$l(),K0(e))}Tt.parseStatement=_n;function K0(e){if(P.isTypeScriptEnabled&&dt.tsTryParseStatementContent.call(void 0))return;let t=P.state.type;switch(t){case D.TokenType._break:case D.TokenType._continue:H0();return;case D.TokenType._debugger:W0();return;case D.TokenType._do:G0();return;case D.TokenType._for:z0();return;case D.TokenType._function:if($.lookaheadType.call(void 0)===D.TokenType.dot)break;e||ee.unexpected.call(void 0),J0();return;case D.TokenType._class:e||ee.unexpected.call(void 0),Io(!0);return;case D.TokenType._if:Q0();return;case D.TokenType._return:Z0();return;case D.TokenType._switch:ev();return;case D.TokenType._throw:tv();return;case D.TokenType._try:sv();return;case D.TokenType._let:case D.TokenType._const:e||ee.unexpected.call(void 0);case D.TokenType._var:Vl(t!==D.TokenType._var);return;case D.TokenType._while:iv();return;case D.TokenType.braceL:gi();return;case D.TokenType.semi:rv();return;case D.TokenType._export:case D.TokenType._import:{let r=$.lookaheadType.call(void 0);if(r===D.TokenType.parenL||r===D.TokenType.dot)break;$.next.call(void 0),t===D.TokenType._import?xh():Th();return}case D.TokenType.name:if(P.state.contextualKeyword===ke.ContextualKeyword._async){let r=P.state.start,a=P.state.snapshot();if($.next.call(void 0),$.match.call(void 0,D.TokenType._function)&&!ee.canInsertSemicolon.call(void 0)){ee.expect.call(void 0,D.TokenType._function),lr(r,!0);return}else P.state.restoreFromSnapshot(a)}else if(P.state.contextualKeyword===ke.ContextualKeyword._using&&!ee.hasFollowingLineBreak.call(void 0)&&$.lookaheadType.call(void 0)===D.TokenType.name){Vl(!0);return}default:break}let s=P.state.tokens.length;De.parseExpression.call(void 0);let i=null;if(P.state.tokens.length===s+1){let r=P.state.tokens[P.state.tokens.length-1];r.type===D.TokenType.name&&(i=r.contextualKeyword)}if(i==null){ee.semicolon.call(void 0);return}$.eat.call(void 0,D.TokenType.colon)?ov():av(i)}function $l(){for(;$.match.call(void 0,D.TokenType.at);)ph()}Tt.parseDecorators=$l;function ph(){if($.next.call(void 0),$.eat.call(void 0,D.TokenType.parenL))De.parseExpression.call(void 0),ee.expect.call(void 0,D.TokenType.parenR);else{for(De.parseIdentifier.call(void 0);$.eat.call(void 0,D.TokenType.dot);)De.parseIdentifier.call(void 0);U0()}}function U0(){P.isTypeScriptEnabled?dt.tsParseMaybeDecoratorArguments.call(void 0):hh()}function hh(){$.eat.call(void 0,D.TokenType.parenL)&&De.parseCallExpressionArguments.call(void 0)}Tt.baseParseMaybeDecoratorArguments=hh;function H0(){$.next.call(void 0),ee.isLineTerminator.call(void 0)||(De.parseIdentifier.call(void 0),ee.semicolon.call(void 0))}function W0(){$.next.call(void 0),ee.semicolon.call(void 0)}function G0(){$.next.call(void 0),_n(!1),ee.expect.call(void 0,D.TokenType._while),De.parseParenExpression.call(void 0),$.eat.call(void 0,D.TokenType.semi)}function z0(){P.state.scopeDepth++;let e=P.state.tokens.length;Y0();let t=P.state.tokens.length;P.state.scopes.push(new Ts.Scope(e,t,!1)),P.state.scopeDepth--}function X0(){return!(!ee.isContextual.call(void 0,ke.ContextualKeyword._using)||ee.isLookaheadContextual.call(void 0,ke.ContextualKeyword._of))}function Y0(){$.next.call(void 0);let e=!1;if(ee.isContextual.call(void 0,ke.ContextualKeyword._await)&&(e=!0,$.next.call(void 0)),ee.expect.call(void 0,D.TokenType.parenL),$.match.call(void 0,D.TokenType.semi)){e&&ee.unexpected.call(void 0),Bl();return}if($.match.call(void 0,D.TokenType._var)||$.match.call(void 0,D.TokenType._let)||$.match.call(void 0,D.TokenType._const)||X0()){if($.next.call(void 0),fh(!0,P.state.type!==D.TokenType._var),$.match.call(void 0,D.TokenType._in)||ee.isContextual.call(void 0,ke.ContextualKeyword._of)){ch(e);return}Bl();return}if(De.parseExpression.call(void 0,!0),$.match.call(void 0,D.TokenType._in)||ee.isContextual.call(void 0,ke.ContextualKeyword._of)){ch(e);return}e&&ee.unexpected.call(void 0),Bl()}function J0(){let e=P.state.start;$.next.call(void 0),lr(e,!0)}function Q0(){$.next.call(void 0),De.parseParenExpression.call(void 0),_n(!1),$.eat.call(void 0,D.TokenType._else)&&_n(!1)}function Z0(){$.next.call(void 0),ee.isLineTerminator.call(void 0)||(De.parseExpression.call(void 0),ee.semicolon.call(void 0))}function ev(){$.next.call(void 0),De.parseParenExpression.call(void 0),P.state.scopeDepth++;let e=P.state.tokens.length;for(ee.expect.call(void 0,D.TokenType.braceL);!$.match.call(void 0,D.TokenType.braceR)&&!P.state.error;)if($.match.call(void 0,D.TokenType._case)||$.match.call(void 0,D.TokenType._default)){let s=$.match.call(void 0,D.TokenType._case);$.next.call(void 0),s&&De.parseExpression.call(void 0),ee.expect.call(void 0,D.TokenType.colon)}else _n(!0);$.next.call(void 0);let t=P.state.tokens.length;P.state.scopes.push(new Ts.Scope(e,t,!1)),P.state.scopeDepth--}function tv(){$.next.call(void 0),De.parseExpression.call(void 0),ee.semicolon.call(void 0)}function nv(){ks.parseBindingAtom.call(void 0,!0),P.isTypeScriptEnabled&&dt.tsTryParseTypeAnnotation.call(void 0)}function sv(){if($.next.call(void 0),gi(),$.match.call(void 0,D.TokenType._catch)){$.next.call(void 0);let e=null;if($.match.call(void 0,D.TokenType.parenL)&&(P.state.scopeDepth++,e=P.state.tokens.length,ee.expect.call(void 0,D.TokenType.parenL),nv(),ee.expect.call(void 0,D.TokenType.parenR)),gi(),e!=null){let t=P.state.tokens.length;P.state.scopes.push(new Ts.Scope(e,t,!1)),P.state.scopeDepth--}}$.eat.call(void 0,D.TokenType._finally)&&gi()}function Vl(e){$.next.call(void 0),fh(!1,e),ee.semicolon.call(void 0)}Tt.parseVarStatement=Vl;function iv(){$.next.call(void 0),De.parseParenExpression.call(void 0),_n(!1)}function rv(){$.next.call(void 0)}function ov(){_n(!0)}function av(e){P.isTypeScriptEnabled?dt.tsParseIdentifierStatement.call(void 0,e):P.isFlowEnabled?Ft.flowParseIdentifierStatement.call(void 0,e):ee.semicolon.call(void 0)}function gi(e=!1,t=0){let s=P.state.tokens.length;P.state.scopeDepth++,ee.expect.call(void 0,D.TokenType.braceL),t&&(P.state.tokens[P.state.tokens.length-1].contextId=t),ql(D.TokenType.braceR),t&&(P.state.tokens[P.state.tokens.length-1].contextId=t);let i=P.state.tokens.length;P.state.scopes.push(new Ts.Scope(s,i,e)),P.state.scopeDepth--}Tt.parseBlock=gi;function ql(e){for(;!$.eat.call(void 0,e)&&!P.state.error;)_n(!0)}Tt.parseBlockBody=ql;function Bl(){ee.expect.call(void 0,D.TokenType.semi),$.match.call(void 0,D.TokenType.semi)||De.parseExpression.call(void 0),ee.expect.call(void 0,D.TokenType.semi),$.match.call(void 0,D.TokenType.parenR)||De.parseExpression.call(void 0),ee.expect.call(void 0,D.TokenType.parenR),_n(!1)}function ch(e){e?ee.eatContextual.call(void 0,ke.ContextualKeyword._of):$.next.call(void 0),De.parseExpression.call(void 0),ee.expect.call(void 0,D.TokenType.parenR),_n(!1)}function fh(e,t){for(;;){if(lv(t),$.eat.call(void 0,D.TokenType.eq)){let s=P.state.tokens.length-1;De.parseMaybeAssign.call(void 0,e),P.state.tokens[s].rhsEndIndex=P.state.tokens.length}if(!$.eat.call(void 0,D.TokenType.comma))break}}function lv(e){ks.parseBindingAtom.call(void 0,e),P.isTypeScriptEnabled?dt.tsAfterParseVarHead.call(void 0):P.isFlowEnabled&&Ft.flowAfterParseVarHead.call(void 0)}function lr(e,t,s=!1){$.match.call(void 0,D.TokenType.star)&&$.next.call(void 0),t&&!s&&!$.match.call(void 0,D.TokenType.name)&&!$.match.call(void 0,D.TokenType._yield)&&ee.unexpected.call(void 0);let i=null;$.match.call(void 0,D.TokenType.name)&&(t||(i=P.state.tokens.length,P.state.scopeDepth++),ks.parseBindingIdentifier.call(void 0,!1));let r=P.state.tokens.length;P.state.scopeDepth++,dh(),De.parseFunctionBodyAndFinish.call(void 0,e);let a=P.state.tokens.length;P.state.scopes.push(new Ts.Scope(r,a,!0)),P.state.scopeDepth--,i!==null&&(P.state.scopes.push(new Ts.Scope(i,a,!0)),P.state.scopeDepth--)}Tt.parseFunction=lr;function dh(e=!1,t=0){P.isTypeScriptEnabled?dt.tsStartParseFunctionParams.call(void 0):P.isFlowEnabled&&Ft.flowStartParseFunctionParams.call(void 0),ee.expect.call(void 0,D.TokenType.parenL),t&&(P.state.tokens[P.state.tokens.length-1].contextId=t),ks.parseBindingList.call(void 0,D.TokenType.parenR,!1,!1,e,t),t&&(P.state.tokens[P.state.tokens.length-1].contextId=t)}Tt.parseFunctionParams=dh;function Io(e,t=!1){let s=P.getNextContextId.call(void 0);$.next.call(void 0),P.state.tokens[P.state.tokens.length-1].contextId=s,P.state.tokens[P.state.tokens.length-1].isExpression=!e;let i=null;e||(i=P.state.tokens.length,P.state.scopeDepth++),hv(e,t),fv();let r=P.state.tokens.length;if(cv(s),!P.state.error&&(P.state.tokens[r].contextId=s,P.state.tokens[P.state.tokens.length-1].contextId=s,i!==null)){let a=P.state.tokens.length;P.state.scopes.push(new Ts.Scope(i,a,!1)),P.state.scopeDepth--}}Tt.parseClass=Io;function mh(){return $.match.call(void 0,D.TokenType.eq)||$.match.call(void 0,D.TokenType.semi)||$.match.call(void 0,D.TokenType.braceR)||$.match.call(void 0,D.TokenType.bang)||$.match.call(void 0,D.TokenType.colon)}function yh(){return $.match.call(void 0,D.TokenType.parenL)||$.match.call(void 0,D.TokenType.lessThan)}function cv(e){for(ee.expect.call(void 0,D.TokenType.braceL);!$.eat.call(void 0,D.TokenType.braceR)&&!P.state.error;){if($.eat.call(void 0,D.TokenType.semi))continue;if($.match.call(void 0,D.TokenType.at)){ph();continue}let t=P.state.start;uv(t,e)}}function uv(e,t){P.isTypeScriptEnabled&&dt.tsParseModifiers.call(void 0,[ke.ContextualKeyword._declare,ke.ContextualKeyword._public,ke.ContextualKeyword._protected,ke.ContextualKeyword._private,ke.ContextualKeyword._override]);let s=!1;if($.match.call(void 0,D.TokenType.name)&&P.state.contextualKeyword===ke.ContextualKeyword._static){if(De.parseIdentifier.call(void 0),yh()){or(e,!1);return}else if(mh()){ar();return}if(P.state.tokens[P.state.tokens.length-1].type=D.TokenType._static,s=!0,$.match.call(void 0,D.TokenType.braceL)){P.state.tokens[P.state.tokens.length-1].contextId=t,gi();return}}pv(e,s,t)}function pv(e,t,s){if(P.isTypeScriptEnabled&&dt.tsTryParseClassMemberWithIsStatic.call(void 0,t))return;if($.eat.call(void 0,D.TokenType.star)){xi(s),or(e,!1);return}xi(s);let i=!1,r=P.state.tokens[P.state.tokens.length-1];r.contextualKeyword===ke.ContextualKeyword._constructor&&(i=!0),jl(),yh()?or(e,i):mh()?ar():r.contextualKeyword===ke.ContextualKeyword._async&&!ee.isLineTerminator.call(void 0)?(P.state.tokens[P.state.tokens.length-1].type=D.TokenType._async,$.match.call(void 0,D.TokenType.star)&&$.next.call(void 0),xi(s),jl(),or(e,!1)):(r.contextualKeyword===ke.ContextualKeyword._get||r.contextualKeyword===ke.ContextualKeyword._set)&&!(ee.isLineTerminator.call(void 0)&&$.match.call(void 0,D.TokenType.star))?(r.contextualKeyword===ke.ContextualKeyword._get?P.state.tokens[P.state.tokens.length-1].type=D.TokenType._get:P.state.tokens[P.state.tokens.length-1].type=D.TokenType._set,xi(s),or(e,!1)):r.contextualKeyword===ke.ContextualKeyword._accessor&&!ee.isLineTerminator.call(void 0)?(xi(s),ar()):ee.isLineTerminator.call(void 0)?ar():ee.unexpected.call(void 0)}function or(e,t){P.isTypeScriptEnabled?dt.tsTryParseTypeParameters.call(void 0):P.isFlowEnabled&&$.match.call(void 0,D.TokenType.lessThan)&&Ft.flowParseTypeParameterDeclaration.call(void 0),De.parseMethod.call(void 0,e,t)}function xi(e){De.parsePropertyName.call(void 0,e)}Tt.parseClassPropertyName=xi;function jl(){if(P.isTypeScriptEnabled){let e=$.pushTypeContext.call(void 0,0);$.eat.call(void 0,D.TokenType.question),$.popTypeContext.call(void 0,e)}}Tt.parsePostMemberNameModifiers=jl;function ar(){if(P.isTypeScriptEnabled?($.eatTypeToken.call(void 0,D.TokenType.bang),dt.tsTryParseTypeAnnotation.call(void 0)):P.isFlowEnabled&&$.match.call(void 0,D.TokenType.colon)&&Ft.flowParseTypeAnnotation.call(void 0),$.match.call(void 0,D.TokenType.eq)){let e=P.state.tokens.length;$.next.call(void 0),De.parseMaybeAssign.call(void 0),P.state.tokens[e].rhsEndIndex=P.state.tokens.length}ee.semicolon.call(void 0)}Tt.parseClassProperty=ar;function hv(e,t=!1){P.isTypeScriptEnabled&&(!e||t)&&ee.isContextual.call(void 0,ke.ContextualKeyword._implements)||($.match.call(void 0,D.TokenType.name)&&ks.parseBindingIdentifier.call(void 0,!0),P.isTypeScriptEnabled?dt.tsTryParseTypeParameters.call(void 0):P.isFlowEnabled&&$.match.call(void 0,D.TokenType.lessThan)&&Ft.flowParseTypeParameterDeclaration.call(void 0))}function fv(){let e=!1;$.eat.call(void 0,D.TokenType._extends)?(De.parseExprSubscripts.call(void 0),e=!0):e=!1,P.isTypeScriptEnabled?dt.tsAfterParseClassSuper.call(void 0,e):P.isFlowEnabled&&Ft.flowAfterParseClassSuper.call(void 0,e)}function Th(){let e=P.state.tokens.length-1;P.isTypeScriptEnabled&&dt.tsTryParseExport.call(void 0)||(Tv()?kv():yv()?(De.parseIdentifier.call(void 0),$.match.call(void 0,D.TokenType.comma)&&$.lookaheadType.call(void 0)===D.TokenType.star?(ee.expect.call(void 0,D.TokenType.comma),ee.expect.call(void 0,D.TokenType.star),ee.expectContextual.call(void 0,ke.ContextualKeyword._as),De.parseIdentifier.call(void 0)):kh(),cr()):$.eat.call(void 0,D.TokenType._default)?dv():xv()?mv():(Kl(),cr()),P.state.tokens[e].rhsEndIndex=P.state.tokens.length)}Tt.parseExport=Th;function dv(){if(P.isTypeScriptEnabled&&dt.tsTryParseExportDefaultExpression.call(void 0)||P.isFlowEnabled&&Ft.flowTryParseExportDefaultExpression.call(void 0))return;let e=P.state.start;$.eat.call(void 0,D.TokenType._function)?lr(e,!0,!0):ee.isContextual.call(void 0,ke.ContextualKeyword._async)&&$.lookaheadType.call(void 0)===D.TokenType._function?(ee.eatContextual.call(void 0,ke.ContextualKeyword._async),$.eat.call(void 0,D.TokenType._function),lr(e,!0,!0)):$.match.call(void 0,D.TokenType._class)?Io(!0,!0):$.match.call(void 0,D.TokenType.at)?($l(),Io(!0,!0)):(De.parseMaybeAssign.call(void 0),ee.semicolon.call(void 0))}function mv(){P.isTypeScriptEnabled?dt.tsParseExportDeclaration.call(void 0):P.isFlowEnabled?Ft.flowParseExportDeclaration.call(void 0):_n(!0)}function yv(){if(P.isTypeScriptEnabled&&dt.tsIsDeclarationStart.call(void 0))return!1;if(P.isFlowEnabled&&Ft.flowShouldDisallowExportDefaultSpecifier.call(void 0))return!1;if($.match.call(void 0,D.TokenType.name))return P.state.contextualKeyword!==ke.ContextualKeyword._async;if(!$.match.call(void 0,D.TokenType._default))return!1;let e=$.nextTokenStart.call(void 0),t=$.lookaheadTypeAndKeyword.call(void 0),s=t.type===D.TokenType.name&&t.contextualKeyword===ke.ContextualKeyword._from;if(t.type===D.TokenType.comma)return!0;if(s){let i=P.input.charCodeAt($.nextTokenStartSince.call(void 0,e+4));return i===lh.charCodes.quotationMark||i===lh.charCodes.apostrophe}return!1}function kh(){$.eat.call(void 0,D.TokenType.comma)&&Kl()}function cr(){ee.eatContextual.call(void 0,ke.ContextualKeyword._from)&&(De.parseExprAtom.call(void 0),gh()),ee.semicolon.call(void 0)}Tt.parseExportFrom=cr;function Tv(){return P.isFlowEnabled?Ft.flowShouldParseExportStar.call(void 0):$.match.call(void 0,D.TokenType.star)}function kv(){P.isFlowEnabled?Ft.flowParseExportStar.call(void 0):vh()}function vh(){ee.expect.call(void 0,D.TokenType.star),ee.isContextual.call(void 0,ke.ContextualKeyword._as)?vv():cr()}Tt.baseParseExportStar=vh;function vv(){$.next.call(void 0),P.state.tokens[P.state.tokens.length-1].type=D.TokenType._as,De.parseIdentifier.call(void 0),kh(),cr()}function xv(){return P.isTypeScriptEnabled&&dt.tsIsDeclarationStart.call(void 0)||P.isFlowEnabled&&Ft.flowShouldParseExportDeclaration.call(void 0)||P.state.type===D.TokenType._var||P.state.type===D.TokenType._const||P.state.type===D.TokenType._let||P.state.type===D.TokenType._function||P.state.type===D.TokenType._class||ee.isContextual.call(void 0,ke.ContextualKeyword._async)||$.match.call(void 0,D.TokenType.at)}function Kl(){let e=!0;for(ee.expect.call(void 0,D.TokenType.braceL);!$.eat.call(void 0,D.TokenType.braceR)&&!P.state.error;){if(e)e=!1;else if(ee.expect.call(void 0,D.TokenType.comma),$.eat.call(void 0,D.TokenType.braceR))break;gv()}}Tt.parseExportSpecifiers=Kl;function gv(){if(P.isTypeScriptEnabled){dt.tsParseExportSpecifier.call(void 0);return}De.parseIdentifier.call(void 0),P.state.tokens[P.state.tokens.length-1].identifierRole=$.IdentifierRole.ExportAccess,ee.eatContextual.call(void 0,ke.ContextualKeyword._as)&&De.parseIdentifier.call(void 0)}function _v(){let e=P.state.snapshot();return ee.expectContextual.call(void 0,ke.ContextualKeyword._module),ee.eatContextual.call(void 0,ke.ContextualKeyword._from)?ee.isContextual.call(void 0,ke.ContextualKeyword._from)?(P.state.restoreFromSnapshot(e),!0):(P.state.restoreFromSnapshot(e),!1):$.match.call(void 0,D.TokenType.comma)?(P.state.restoreFromSnapshot(e),!1):(P.state.restoreFromSnapshot(e),!0)}function bv(){ee.isContextual.call(void 0,ke.ContextualKeyword._module)&&_v()&&$.next.call(void 0)}function xh(){if(P.isTypeScriptEnabled&&$.match.call(void 0,D.TokenType.name)&&$.lookaheadType.call(void 0)===D.TokenType.eq){dt.tsParseImportEqualsDeclaration.call(void 0);return}if(P.isTypeScriptEnabled&&ee.isContextual.call(void 0,ke.ContextualKeyword._type)){let e=$.lookaheadTypeAndKeyword.call(void 0);if(e.type===D.TokenType.name&&e.contextualKeyword!==ke.ContextualKeyword._from){if(ee.expectContextual.call(void 0,ke.ContextualKeyword._type),$.lookaheadType.call(void 0)===D.TokenType.eq){dt.tsParseImportEqualsDeclaration.call(void 0);return}}else(e.type===D.TokenType.star||e.type===D.TokenType.braceL)&&ee.expectContextual.call(void 0,ke.ContextualKeyword._type)}$.match.call(void 0,D.TokenType.string)||(bv(),wv(),ee.expectContextual.call(void 0,ke.ContextualKeyword._from)),De.parseExprAtom.call(void 0),gh(),ee.semicolon.call(void 0)}Tt.parseImport=xh;function Cv(){return $.match.call(void 0,D.TokenType.name)}function uh(){ks.parseImportedIdentifier.call(void 0)}function wv(){P.isFlowEnabled&&Ft.flowStartParseImportSpecifiers.call(void 0);let e=!0;if(!(Cv()&&(uh(),!$.eat.call(void 0,D.TokenType.comma)))){if($.match.call(void 0,D.TokenType.star)){$.next.call(void 0),ee.expectContextual.call(void 0,ke.ContextualKeyword._as),uh();return}for(ee.expect.call(void 0,D.TokenType.braceL);!$.eat.call(void 0,D.TokenType.braceR)&&!P.state.error;){if(e)e=!1;else if($.eat.call(void 0,D.TokenType.colon)&&ee.unexpected.call(void 0,\\"ES2015 named imports do not destructure. Use another statement for destructuring after the import.\\"),ee.expect.call(void 0,D.TokenType.comma),$.eat.call(void 0,D.TokenType.braceR))break;Sv()}}}function Sv(){if(P.isTypeScriptEnabled){dt.tsParseImportSpecifier.call(void 0);return}if(P.isFlowEnabled){Ft.flowParseImportSpecifier.call(void 0);return}ks.parseImportedIdentifier.call(void 0),ee.isContextual.call(void 0,ke.ContextualKeyword._as)&&(P.state.tokens[P.state.tokens.length-1].identifierRole=$.IdentifierRole.ImportAccess,$.next.call(void 0),ks.parseImportedIdentifier.call(void 0))}function gh(){ee.isContextual.call(void 0,ke.ContextualKeyword._assert)&&!ee.hasPrecedingLineBreak.call(void 0)&&($.next.call(void 0),De.parseObj.call(void 0,!1,!1))}});var Ch=Z(Wl=>{\\"use strict\\";Object.defineProperty(Wl,\\"__esModule\\",{value:!0});var _h=xt(),bh=Qt(),Hl=Zt(),Iv=nr();function Ev(){return Hl.state.pos===0&&Hl.input.charCodeAt(0)===bh.charCodes.numberSign&&Hl.input.charCodeAt(1)===bh.charCodes.exclamationMark&&_h.skipLineComment.call(void 0,2),_h.nextToken.call(void 0),Iv.parseTopLevel.call(void 0)}Wl.parseFile=Ev});var Ul=Z(Ao=>{\\"use strict\\";Object.defineProperty(Ao,\\"__esModule\\",{value:!0});var Eo=Zt(),Av=Ch(),Gl=class{constructor(t,s){this.tokens=t,this.scopes=s}};Ao.File=Gl;function Pv(e,t,s,i){if(i&&s)throw new Error(\\"Cannot combine flow and typescript plugins.\\");Eo.initParser.call(void 0,e,t,s,i);let r=Av.parseFile.call(void 0);if(Eo.state.error)throw Eo.augmentError.call(void 0,Eo.state.error);return r}Ao.parse=Pv});var wh=Z(zl=>{\\"use strict\\";Object.defineProperty(zl,\\"__esModule\\",{value:!0});var Nv=It();function Rv(e){let t=e.currentIndex(),s=0,i=e.currentToken();do{let r=e.tokens[t];if(r.isOptionalChainStart&&s++,r.isOptionalChainEnd&&s--,s+=r.numNullishCoalesceStarts,s-=r.numNullishCoalesceEnds,r.contextualKeyword===Nv.ContextualKeyword._await&&r.identifierRole==null&&r.scopeDepth===i.scopeDepth)return!0;t+=1}while(s>0&&t{\\"use strict\\";Object.defineProperty(Yl,\\"__esModule\\",{value:!0});function Lv(e){return e&&e.__esModule?e:{default:e}}var Po=be(),Ov=wh(),Dv=Lv(Ov),Xl=class e{__init(){this.resultCode=\\"\\"}__init2(){this.resultMappings=new Array(this.tokens.length)}__init3(){this.tokenIndex=0}constructor(t,s,i,r,a){this.code=t,this.tokens=s,this.isFlowEnabled=i,this.disableESTransforms=r,this.helperManager=a,e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this)}snapshot(){return{resultCode:this.resultCode,tokenIndex:this.tokenIndex}}restoreToSnapshot(t){this.resultCode=t.resultCode,this.tokenIndex=t.tokenIndex}dangerouslyGetAndRemoveCodeSinceSnapshot(t){let s=this.resultCode.slice(t.resultCode.length);return this.resultCode=t.resultCode,s}reset(){this.resultCode=\\"\\",this.resultMappings=new Array(this.tokens.length),this.tokenIndex=0}matchesContextualAtIndex(t,s){return this.matches1AtIndex(t,Po.TokenType.name)&&this.tokens[t].contextualKeyword===s}identifierNameAtIndex(t){return this.identifierNameForToken(this.tokens[t])}identifierNameAtRelativeIndex(t){return this.identifierNameForToken(this.tokenAtRelativeIndex(t))}identifierName(){return this.identifierNameForToken(this.currentToken())}identifierNameForToken(t){return this.code.slice(t.start,t.end)}rawCodeForToken(t){return this.code.slice(t.start,t.end)}stringValueAtIndex(t){return this.stringValueForToken(this.tokens[t])}stringValue(){return this.stringValueForToken(this.currentToken())}stringValueForToken(t){return this.code.slice(t.start+1,t.end-1)}matches1AtIndex(t,s){return this.tokens[t].type===s}matches2AtIndex(t,s,i){return this.tokens[t].type===s&&this.tokens[t+1].type===i}matches3AtIndex(t,s,i,r){return this.tokens[t].type===s&&this.tokens[t+1].type===i&&this.tokens[t+2].type===r}matches1(t){return this.tokens[this.tokenIndex].type===t}matches2(t,s){return this.tokens[this.tokenIndex].type===t&&this.tokens[this.tokenIndex+1].type===s}matches3(t,s,i){return this.tokens[this.tokenIndex].type===t&&this.tokens[this.tokenIndex+1].type===s&&this.tokens[this.tokenIndex+2].type===i}matches4(t,s,i,r){return this.tokens[this.tokenIndex].type===t&&this.tokens[this.tokenIndex+1].type===s&&this.tokens[this.tokenIndex+2].type===i&&this.tokens[this.tokenIndex+3].type===r}matches5(t,s,i,r,a){return this.tokens[this.tokenIndex].type===t&&this.tokens[this.tokenIndex+1].type===s&&this.tokens[this.tokenIndex+2].type===i&&this.tokens[this.tokenIndex+3].type===r&&this.tokens[this.tokenIndex+4].type===a}matchesContextual(t){return this.matchesContextualAtIndex(this.tokenIndex,t)}matchesContextIdAndLabel(t,s){return this.matches1(t)&&this.currentToken().contextId===s}previousWhitespaceAndComments(){let t=this.code.slice(this.tokenIndex>0?this.tokens[this.tokenIndex-1].end:0,this.tokenIndex0&&this.tokenAtRelativeIndex(-1).type===Po.TokenType._delete?t.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName(\\"asyncOptionalChainDelete\\"):this.resultCode+=this.helperManager.getHelperName(\\"optionalChainDelete\\"):t.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName(\\"asyncOptionalChain\\"):this.resultCode+=this.helperManager.getHelperName(\\"optionalChain\\"),this.resultCode+=\\"([\\")}}appendTokenSuffix(){let t=this.currentToken();if(t.isOptionalChainEnd&&!this.disableESTransforms&&(this.resultCode+=\\"])\\"),t.numNullishCoalesceEnds&&!this.disableESTransforms)for(let s=0;s{\\"use strict\\";Object.defineProperty(Ql,\\"__esModule\\",{value:!0});var Ih=It(),Ne=be();function Mv(e,t,s,i){let r=t.snapshot(),a=Fv(t),u=[],d=[],y=[],g=null,L=[],p=[],h=t.currentToken().contextId;if(h==null)throw new Error(\\"Expected non-null class context ID on class open-brace.\\");for(t.nextToken();!t.matchesContextIdAndLabel(Ne.TokenType.braceR,h);)if(t.matchesContextual(Ih.ContextualKeyword._constructor)&&!t.currentToken().isType)({constructorInitializerStatements:u,constructorInsertPos:g}=Eh(t));else if(t.matches1(Ne.TokenType.semi))i||p.push({start:t.currentIndex(),end:t.currentIndex()+1}),t.nextToken();else if(t.currentToken().isType)t.nextToken();else{let T=t.currentIndex(),x=!1,w=!1,S=!1;for(;No(t.currentToken());)t.matches1(Ne.TokenType._static)&&(x=!0),t.matches1(Ne.TokenType.hash)&&(w=!0),(t.matches1(Ne.TokenType._declare)||t.matches1(Ne.TokenType._abstract))&&(S=!0),t.nextToken();if(x&&t.matches1(Ne.TokenType.braceL)){Jl(t,h);continue}if(w){Jl(t,h);continue}if(t.matchesContextual(Ih.ContextualKeyword._constructor)&&!t.currentToken().isType){({constructorInitializerStatements:u,constructorInsertPos:g}=Eh(t));continue}let A=t.currentIndex();if(Bv(t),t.matches1(Ne.TokenType.lessThan)||t.matches1(Ne.TokenType.parenL)){Jl(t,h);continue}for(;t.currentToken().isType;)t.nextToken();if(t.matches1(Ne.TokenType.eq)){let U=t.currentIndex(),M=t.currentToken().rhsEndIndex;if(M==null)throw new Error(\\"Expected rhsEndIndex on class field assignment.\\");for(t.nextToken();t.currentIndex(){\\"use strict\\";Object.defineProperty(Zl,\\"__esModule\\",{value:!0});var Ph=be();function Vv(e){if(e.removeInitialToken(),e.removeToken(),e.removeToken(),e.removeToken(),e.matches1(Ph.TokenType.parenL))e.removeToken(),e.removeToken(),e.removeToken();else for(;e.matches1(Ph.TokenType.dot);)e.removeToken(),e.removeToken()}Zl.default=Vv});var tc=Z(Ro=>{\\"use strict\\";Object.defineProperty(Ro,\\"__esModule\\",{value:!0});var jv=xt(),$v=be(),qv={typeDeclarations:new Set,valueDeclarations:new Set};Ro.EMPTY_DECLARATION_INFO=qv;function Kv(e){let t=new Set,s=new Set;for(let i=0;i{\\"use strict\\";Object.defineProperty(nc,\\"__esModule\\",{value:!0});var Uv=It(),Nh=be();function Hv(e){e.matches2(Nh.TokenType.name,Nh.TokenType.braceL)&&e.matchesContextual(Uv.ContextualKeyword._assert)&&(e.removeToken(),e.removeToken(),e.removeBalancedCode(),e.removeToken())}nc.removeMaybeImportAssertion=Hv});var rc=Z(ic=>{\\"use strict\\";Object.defineProperty(ic,\\"__esModule\\",{value:!0});var Rh=be();function Wv(e,t,s){if(!e)return!1;let i=t.currentToken();if(i.rhsEndIndex==null)throw new Error(\\"Expected non-null rhsEndIndex on export token.\\");let r=i.rhsEndIndex-t.currentIndex();if(r!==3&&!(r===4&&t.matches1AtIndex(i.rhsEndIndex-1,Rh.TokenType.semi)))return!1;let a=t.tokenAtRelativeIndex(2);if(a.type!==Rh.TokenType.name)return!1;let u=t.identifierNameForToken(a);return s.typeDeclarations.has(u)&&!s.valueDeclarations.has(u)}ic.default=Wv});var Oh=Z(ac=>{\\"use strict\\";Object.defineProperty(ac,\\"__esModule\\",{value:!0});function ur(e){return e&&e.__esModule?e:{default:e}}var Lo=xt(),Ls=It(),N=be(),Gv=ec(),zv=ur(Gv),Lh=tc(),Xv=ur(Lh),Yv=Wi(),Jv=ur(Yv),Oo=sc(),Qv=rc(),Zv=ur(Qv),ex=hn(),tx=ur(ex),oc=class e extends tx.default{__init(){this.hadExport=!1}__init2(){this.hadNamedExport=!1}__init3(){this.hadDefaultExport=!1}constructor(t,s,i,r,a,u,d,y,g,L){super(),this.rootTransformer=t,this.tokens=s,this.importProcessor=i,this.nameManager=r,this.helperManager=a,this.reactHotLoaderTransformer=u,this.enableLegacyBabel5ModuleInterop=d,this.enableLegacyTypeScriptModuleInterop=y,this.isTypeScriptTransformEnabled=g,this.preserveDynamicImport=L,e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),this.declarationInfo=g?Xv.default.call(void 0,s):Lh.EMPTY_DECLARATION_INFO}getPrefixCode(){let t=\\"\\";return this.hadExport&&(t+=\'Object.defineProperty(exports, \\"__esModule\\", {value: true});\'),t}getSuffixCode(){return this.enableLegacyBabel5ModuleInterop&&this.hadDefaultExport&&!this.hadNamedExport?`\\nmodule.exports = exports.default;\\n`:\\"\\"}process(){return this.tokens.matches3(N.TokenType._import,N.TokenType.name,N.TokenType.eq)?this.processImportEquals():this.tokens.matches1(N.TokenType._import)?(this.processImport(),!0):this.tokens.matches2(N.TokenType._export,N.TokenType.eq)?(this.tokens.replaceToken(\\"module.exports\\"),!0):this.tokens.matches1(N.TokenType._export)&&!this.tokens.currentToken().isType?(this.hadExport=!0,this.processExport()):this.tokens.matches2(N.TokenType.name,N.TokenType.postIncDec)&&this.processPostIncDec()?!0:this.tokens.matches1(N.TokenType.name)||this.tokens.matches1(N.TokenType.jsxName)?this.processIdentifier():this.tokens.matches1(N.TokenType.eq)?this.processAssignment():this.tokens.matches1(N.TokenType.assign)?this.processComplexAssignment():this.tokens.matches1(N.TokenType.preIncDec)?this.processPreIncDec():!1}processImportEquals(){let t=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.importProcessor.isTypeName(t)?zv.default.call(void 0,this.tokens):this.tokens.replaceToken(\\"const\\"),!0}processImport(){if(this.tokens.matches2(N.TokenType._import,N.TokenType.parenL)){if(this.preserveDynamicImport){this.tokens.copyToken();return}let s=this.enableLegacyTypeScriptModuleInterop?\\"\\":`${this.helperManager.getHelperName(\\"interopRequireWildcard\\")}(`;this.tokens.replaceToken(`Promise.resolve().then(() => ${s}require`);let i=this.tokens.currentToken().contextId;if(i==null)throw new Error(\\"Expected context ID on dynamic import invocation.\\");for(this.tokens.copyToken();!this.tokens.matchesContextIdAndLabel(N.TokenType.parenR,i);)this.rootTransformer.processToken();this.tokens.replaceToken(s?\\")))\\":\\"))\\");return}if(this.removeImportAndDetectIfType())this.tokens.removeToken();else{let s=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(s)),this.tokens.appendCode(this.importProcessor.claimImportCode(s))}Oo.removeMaybeImportAssertion.call(void 0,this.tokens),this.tokens.matches1(N.TokenType.semi)&&this.tokens.removeToken()}removeImportAndDetectIfType(){if(this.tokens.removeInitialToken(),this.tokens.matchesContextual(Ls.ContextualKeyword._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,N.TokenType.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,Ls.ContextualKeyword._from))return this.removeRemainingImport(),!0;if(this.tokens.matches1(N.TokenType.name)||this.tokens.matches1(N.TokenType.star))return this.removeRemainingImport(),!1;if(this.tokens.matches1(N.TokenType.string))return!1;let t=!1;for(;!this.tokens.matches1(N.TokenType.string);)(!t&&this.tokens.matches1(N.TokenType.braceL)||this.tokens.matches1(N.TokenType.comma))&&(this.tokens.removeToken(),(this.tokens.matches2(N.TokenType.name,N.TokenType.comma)||this.tokens.matches2(N.TokenType.name,N.TokenType.braceR)||this.tokens.matches4(N.TokenType.name,N.TokenType.name,N.TokenType.name,N.TokenType.comma)||this.tokens.matches4(N.TokenType.name,N.TokenType.name,N.TokenType.name,N.TokenType.braceR))&&(t=!0)),this.tokens.removeToken();return!t}removeRemainingImport(){for(;!this.tokens.matches1(N.TokenType.string);)this.tokens.removeToken()}processIdentifier(){let t=this.tokens.currentToken();if(t.shadowsGlobal)return!1;if(t.identifierRole===Lo.IdentifierRole.ObjectShorthand)return this.processObjectShorthand();if(t.identifierRole!==Lo.IdentifierRole.Access)return!1;let s=this.importProcessor.getIdentifierReplacement(this.tokens.identifierNameForToken(t));if(!s)return!1;let i=this.tokens.currentIndex()+1;for(;i=2&&this.tokens.matches1AtIndex(t-2,N.TokenType.dot)||t>=2&&[N.TokenType._var,N.TokenType._let,N.TokenType._const].includes(this.tokens.tokens[t-2].type))return!1;let i=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(s));return i?(this.tokens.copyToken(),this.tokens.appendCode(` ${i} =`),!0):!1}processComplexAssignment(){let t=this.tokens.currentIndex(),s=this.tokens.tokens[t-1];if(s.type!==N.TokenType.name||s.shadowsGlobal||t>=2&&this.tokens.matches1AtIndex(t-2,N.TokenType.dot))return!1;let i=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(s));return i?(this.tokens.appendCode(` = ${i}`),this.tokens.copyToken(),!0):!1}processPreIncDec(){let t=this.tokens.currentIndex(),s=this.tokens.tokens[t+1];if(s.type!==N.TokenType.name||s.shadowsGlobal||t+2=1&&this.tokens.matches1AtIndex(t-1,N.TokenType.dot))return!1;let r=this.tokens.identifierNameForToken(s),a=this.importProcessor.resolveExportBinding(r);if(!a)return!1;let u=this.tokens.rawCodeForToken(i),d=this.importProcessor.getIdentifierReplacement(r)||r;if(u===\\"++\\")this.tokens.replaceToken(`(${d} = ${a} = ${d} + 1, ${d} - 1)`);else if(u===\\"--\\")this.tokens.replaceToken(`(${d} = ${a} = ${d} - 1, ${d} + 1)`);else throw new Error(`Unexpected operator: ${u}`);return this.tokens.removeToken(),!0}processExportDefault(){if(this.tokens.matches4(N.TokenType._export,N.TokenType._default,N.TokenType._function,N.TokenType.name)||this.tokens.matches5(N.TokenType._export,N.TokenType._default,N.TokenType.name,N.TokenType._function,N.TokenType.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,Ls.ContextualKeyword._async)){this.tokens.removeInitialToken(),this.tokens.removeToken();let t=this.processNamedFunction();this.tokens.appendCode(` exports.default = ${t};`)}else if(this.tokens.matches4(N.TokenType._export,N.TokenType._default,N.TokenType._class,N.TokenType.name)||this.tokens.matches5(N.TokenType._export,N.TokenType._default,N.TokenType._abstract,N.TokenType._class,N.TokenType.name)||this.tokens.matches3(N.TokenType._export,N.TokenType._default,N.TokenType.at)){this.tokens.removeInitialToken(),this.tokens.removeToken(),this.copyDecorators(),this.tokens.matches1(N.TokenType._abstract)&&this.tokens.removeToken();let t=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.default = ${t};`)}else if(Zv.default.call(void 0,this.isTypeScriptTransformEnabled,this.tokens,this.declarationInfo))this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken();else if(this.reactHotLoaderTransformer){let t=this.nameManager.claimFreeName(\\"_default\\");this.tokens.replaceToken(`let ${t}; exports.`),this.tokens.copyToken(),this.tokens.appendCode(` = ${t} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(t)}else this.tokens.replaceToken(\\"exports.\\"),this.tokens.copyToken(),this.tokens.appendCode(\\" =\\")}copyDecorators(){for(;this.tokens.matches1(N.TokenType.at);)if(this.tokens.copyToken(),this.tokens.matches1(N.TokenType.parenL))this.tokens.copyExpectedToken(N.TokenType.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(N.TokenType.parenR);else{for(this.tokens.copyExpectedToken(N.TokenType.name);this.tokens.matches1(N.TokenType.dot);)this.tokens.copyExpectedToken(N.TokenType.dot),this.tokens.copyExpectedToken(N.TokenType.name);this.tokens.matches1(N.TokenType.parenL)&&(this.tokens.copyExpectedToken(N.TokenType.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(N.TokenType.parenR))}}processExportVar(){this.isSimpleExportVar()?this.processSimpleExportVar():this.processComplexExportVar()}isSimpleExportVar(){let t=this.tokens.currentIndex();if(t++,t++,!this.tokens.matches1AtIndex(t,N.TokenType.name))return!1;for(t++;t{\\"use strict\\";Object.defineProperty(cc,\\"__esModule\\",{value:!0});function pr(e){return e&&e.__esModule?e:{default:e}}var Jn=It(),se=be(),nx=ec(),sx=pr(nx),Fh=tc(),ix=pr(Fh),rx=Wi(),Dh=pr(rx),ox=Fa(),Mh=sc(),ax=rc(),lx=pr(ax),cx=hn(),ux=pr(cx),lc=class extends ux.default{constructor(t,s,i,r,a,u){super(),this.tokens=t,this.nameManager=s,this.helperManager=i,this.reactHotLoaderTransformer=r,this.isTypeScriptTransformEnabled=a,this.nonTypeIdentifiers=a?ox.getNonTypeIdentifiers.call(void 0,t,u):new Set,this.declarationInfo=a?ix.default.call(void 0,t):Fh.EMPTY_DECLARATION_INFO,this.injectCreateRequireForImportRequire=!!u.injectCreateRequireForImportRequire}process(){if(this.tokens.matches3(se.TokenType._import,se.TokenType.name,se.TokenType.eq))return this.processImportEquals();if(this.tokens.matches4(se.TokenType._import,se.TokenType.name,se.TokenType.name,se.TokenType.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,Jn.ContextualKeyword._type)){this.tokens.removeInitialToken();for(let t=0;t<7;t++)this.tokens.removeToken();return!0}if(this.tokens.matches2(se.TokenType._export,se.TokenType.eq))return this.tokens.replaceToken(\\"module.exports\\"),!0;if(this.tokens.matches5(se.TokenType._export,se.TokenType._import,se.TokenType.name,se.TokenType.name,se.TokenType.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,Jn.ContextualKeyword._type)){this.tokens.removeInitialToken();for(let t=0;t<8;t++)this.tokens.removeToken();return!0}if(this.tokens.matches1(se.TokenType._import))return this.processImport();if(this.tokens.matches2(se.TokenType._export,se.TokenType._default))return this.processExportDefault();if(this.tokens.matches2(se.TokenType._export,se.TokenType.braceL))return this.processNamedExports();if(this.tokens.matches2(se.TokenType._export,se.TokenType.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,Jn.ContextualKeyword._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(se.TokenType.braceL)){for(;!this.tokens.matches1(se.TokenType.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(se.TokenType._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(Jn.ContextualKeyword._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,se.TokenType.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),Mh.removeMaybeImportAssertion.call(void 0,this.tokens)),!0}return!1}processImportEquals(){let t=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.isTypeName(t)?sx.default.call(void 0,this.tokens):this.injectCreateRequireForImportRequire?(this.tokens.replaceToken(\\"const\\"),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.replaceToken(this.helperManager.getHelperName(\\"require\\"))):this.tokens.replaceToken(\\"const\\"),!0}processImport(){if(this.tokens.matches2(se.TokenType._import,se.TokenType.parenL))return!1;let t=this.tokens.snapshot();if(this.removeImportTypeBindings()){for(this.tokens.restoreToSnapshot(t);!this.tokens.matches1(se.TokenType.string);)this.tokens.removeToken();this.tokens.removeToken(),Mh.removeMaybeImportAssertion.call(void 0,this.tokens),this.tokens.matches1(se.TokenType.semi)&&this.tokens.removeToken()}return!0}removeImportTypeBindings(){if(this.tokens.copyExpectedToken(se.TokenType._import),this.tokens.matchesContextual(Jn.ContextualKeyword._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,se.TokenType.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,Jn.ContextualKeyword._from))return!0;if(this.tokens.matches1(se.TokenType.string))return this.tokens.copyToken(),!1;this.tokens.matchesContextual(Jn.ContextualKeyword._module)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,Jn.ContextualKeyword._from)&&this.tokens.copyToken();let t=!1,s=!1;if(this.tokens.matches1(se.TokenType.name)&&(this.isTypeName(this.tokens.identifierName())?(this.tokens.removeToken(),this.tokens.matches1(se.TokenType.comma)&&this.tokens.removeToken()):(t=!0,this.tokens.copyToken(),this.tokens.matches1(se.TokenType.comma)&&(s=!0,this.tokens.removeToken()))),this.tokens.matches1(se.TokenType.star))this.isTypeName(this.tokens.identifierNameAtRelativeIndex(2))?(this.tokens.removeToken(),this.tokens.removeToken(),this.tokens.removeToken()):(s&&this.tokens.appendCode(\\",\\"),t=!0,this.tokens.copyExpectedToken(se.TokenType.star),this.tokens.copyExpectedToken(se.TokenType.name),this.tokens.copyExpectedToken(se.TokenType.name));else if(this.tokens.matches1(se.TokenType.braceL)){for(s&&this.tokens.appendCode(\\",\\"),this.tokens.copyToken();!this.tokens.matches1(se.TokenType.braceR);){let i=Dh.default.call(void 0,this.tokens);if(i.isType||this.isTypeName(i.rightName)){for(;this.tokens.currentIndex(){\\"use strict\\";Object.defineProperty(pc,\\"__esModule\\",{value:!0});function px(e){return e&&e.__esModule?e:{default:e}}var Vh=It(),sn=be(),hx=hn(),fx=px(hx),uc=class extends fx.default{constructor(t,s,i){super(),this.rootTransformer=t,this.tokens=s,this.isImportsTransformEnabled=i}process(){return this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange()?!0:this.tokens.matches1(sn.TokenType._enum)?(this.processEnum(),!0):this.tokens.matches2(sn.TokenType._export,sn.TokenType._enum)?(this.processNamedExportEnum(),!0):this.tokens.matches3(sn.TokenType._export,sn.TokenType._default,sn.TokenType._enum)?(this.processDefaultExportEnum(),!0):!1}processNamedExportEnum(){if(this.isImportsTransformEnabled){this.tokens.removeInitialToken();let t=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.tokens.appendCode(` exports.${t} = ${t};`)}else this.tokens.copyToken(),this.processEnum()}processDefaultExportEnum(){this.tokens.removeInitialToken(),this.tokens.removeToken();let t=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.isImportsTransformEnabled?this.tokens.appendCode(` exports.default = ${t};`):this.tokens.appendCode(` export default ${t};`)}processEnum(){this.tokens.replaceToken(\\"const\\"),this.tokens.copyExpectedToken(sn.TokenType.name);let t=!1;this.tokens.matchesContextual(Vh.ContextualKeyword._of)&&(this.tokens.removeToken(),t=this.tokens.matchesContextual(Vh.ContextualKeyword._symbol),this.tokens.removeToken());let s=this.tokens.matches3(sn.TokenType.braceL,sn.TokenType.name,sn.TokenType.eq);this.tokens.appendCode(\' = require(\\"flow-enums-runtime\\")\');let i=!t&&!s;for(this.tokens.replaceTokenTrimmingLeftWhitespace(i?\\".Mirrored([\\":\\"({\\");!this.tokens.matches1(sn.TokenType.braceR);){if(this.tokens.matches1(sn.TokenType.ellipsis)){this.tokens.removeToken();break}this.processEnumElement(t,s),this.tokens.matches1(sn.TokenType.comma)&&this.tokens.copyToken()}this.tokens.replaceToken(i?\\"]);\\":\\"});\\")}processEnumElement(t,s){if(t){let i=this.tokens.identifierName();this.tokens.copyToken(),this.tokens.appendCode(`: Symbol(\\"${i}\\")`)}else s?(this.tokens.copyToken(),this.tokens.replaceTokenTrimmingLeftWhitespace(\\":\\"),this.tokens.copyToken()):this.tokens.replaceToken(`\\"${this.tokens.identifierName()}\\"`)}};pc.default=uc});var $h=Z(fc=>{\\"use strict\\";Object.defineProperty(fc,\\"__esModule\\",{value:!0});function dx(e){return e&&e.__esModule?e:{default:e}}function mx(e){let t,s=e[0],i=1;for(;is.call(t,...u)),t=void 0)}return s}var Qn=be(),yx=hn(),Tx=dx(yx),Do=\\"jest\\",kx=[\\"mock\\",\\"unmock\\",\\"enableAutomock\\",\\"disableAutomock\\"],hc=class e extends Tx.default{__init(){this.hoistedFunctionNames=[]}constructor(t,s,i,r){super(),this.rootTransformer=t,this.tokens=s,this.nameManager=i,this.importProcessor=r,e.prototype.__init.call(this)}process(){return this.tokens.currentToken().scopeDepth===0&&this.tokens.matches4(Qn.TokenType.name,Qn.TokenType.dot,Qn.TokenType.name,Qn.TokenType.parenL)&&this.tokens.identifierName()===Do?mx([this,\\"access\\",t=>t.importProcessor,\\"optionalAccess\\",t=>t.getGlobalNames,\\"call\\",t=>t(),\\"optionalAccess\\",t=>t.has,\\"call\\",t=>t(Do)])?!1:this.extractHoistedCalls():!1}getHoistedCode(){return this.hoistedFunctionNames.length>0?this.hoistedFunctionNames.map(t=>`${t}();`).join(\\"\\"):\\"\\"}extractHoistedCalls(){this.tokens.removeToken();let t=!1;for(;this.tokens.matches3(Qn.TokenType.dot,Qn.TokenType.name,Qn.TokenType.parenL);){let s=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);if(kx.includes(s)){let r=this.nameManager.claimFreeName(\\"__jestHoist\\");this.hoistedFunctionNames.push(r),this.tokens.replaceToken(`function ${r}(){${Do}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(Qn.TokenType.parenR),this.tokens.appendCode(\\";}\\"),t=!1}else t?this.tokens.copyToken():this.tokens.replaceToken(`${Do}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(Qn.TokenType.parenR),t=!0}return!0}};fc.default=hc});var qh=Z(mc=>{\\"use strict\\";Object.defineProperty(mc,\\"__esModule\\",{value:!0});function vx(e){return e&&e.__esModule?e:{default:e}}var xx=be(),gx=hn(),_x=vx(gx),dc=class extends _x.default{constructor(t){super(),this.tokens=t}process(){if(this.tokens.matches1(xx.TokenType.num)){let t=this.tokens.currentTokenCode();if(t.includes(\\"_\\"))return this.tokens.replaceToken(t.replace(/_/g,\\"\\")),!0}return!1}};mc.default=dc});var Uh=Z(Tc=>{\\"use strict\\";Object.defineProperty(Tc,\\"__esModule\\",{value:!0});function bx(e){return e&&e.__esModule?e:{default:e}}var Kh=be(),Cx=hn(),wx=bx(Cx),yc=class extends wx.default{constructor(t,s){super(),this.tokens=t,this.nameManager=s}process(){return this.tokens.matches2(Kh.TokenType._catch,Kh.TokenType.braceL)?(this.tokens.copyToken(),this.tokens.appendCode(` (${this.nameManager.claimFreeName(\\"e\\")})`),!0):!1}};Tc.default=yc});var Hh=Z(vc=>{\\"use strict\\";Object.defineProperty(vc,\\"__esModule\\",{value:!0});function Sx(e){return e&&e.__esModule?e:{default:e}}var jt=be(),Ix=hn(),Ex=Sx(Ix),kc=class extends Ex.default{constructor(t,s){super(),this.tokens=t,this.nameManager=s}process(){if(this.tokens.matches1(jt.TokenType.nullishCoalescing)){let i=this.tokens.currentToken();return this.tokens.tokens[i.nullishStartIndex].isAsyncOperation?this.tokens.replaceTokenTrimmingLeftWhitespace(\\", async () => (\\"):this.tokens.replaceTokenTrimmingLeftWhitespace(\\", () => (\\"),!0}if(this.tokens.matches1(jt.TokenType._delete)&&this.tokens.tokenAtRelativeIndex(1).isOptionalChainStart)return this.tokens.removeInitialToken(),!0;let s=this.tokens.currentToken().subscriptStartIndex;if(s!=null&&this.tokens.tokens[s].isOptionalChainStart&&this.tokens.tokenAtRelativeIndex(-1).type!==jt.TokenType._super){let i=this.nameManager.claimFreeName(\\"_\\"),r;if(s>0&&this.tokens.matches1AtIndex(s-1,jt.TokenType._delete)&&this.isLastSubscriptInChain()?r=`${i} => delete ${i}`:r=`${i} => ${i}`,this.tokens.tokens[s].isAsyncOperation&&(r=`async ${r}`),this.tokens.matches2(jt.TokenType.questionDot,jt.TokenType.parenL)||this.tokens.matches2(jt.TokenType.questionDot,jt.TokenType.lessThan))this.justSkippedSuper()&&this.tokens.appendCode(\\".bind(this)\\"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, \'optionalCall\', ${r}`);else if(this.tokens.matches2(jt.TokenType.questionDot,jt.TokenType.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, \'optionalAccess\', ${r}`);else if(this.tokens.matches1(jt.TokenType.questionDot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, \'optionalAccess\', ${r}.`);else if(this.tokens.matches1(jt.TokenType.dot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, \'access\', ${r}.`);else if(this.tokens.matches1(jt.TokenType.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, \'access\', ${r}[`);else if(this.tokens.matches1(jt.TokenType.parenL))this.justSkippedSuper()&&this.tokens.appendCode(\\".bind(this)\\"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, \'call\', ${r}(`);else throw new Error(\\"Unexpected subscript operator in optional chain.\\");return!0}return!1}isLastSubscriptInChain(){let t=0;for(let s=this.tokens.currentIndex()+1;;s++){if(s>=this.tokens.tokens.length)throw new Error(\\"Reached the end of the code while finding the end of the access chain.\\");if(this.tokens.tokens[s].isOptionalChainStart?t++:this.tokens.tokens[s].isOptionalChainEnd&&t--,t<0)return!0;if(t===0&&this.tokens.tokens[s].subscriptStartIndex!=null)return!1}}justSkippedSuper(){let t=0,s=this.tokens.currentIndex()-1;for(;;){if(s<0)throw new Error(\\"Reached the start of the code while finding the start of the access chain.\\");if(this.tokens.tokens[s].isOptionalChainStart?t--:this.tokens.tokens[s].isOptionalChainEnd&&t++,t<0)return!1;if(t===0&&this.tokens.tokens[s].subscriptStartIndex!=null)return this.tokens.tokens[s-1].type===jt.TokenType._super;s--}}};vc.default=kc});var Gh=Z(gc=>{\\"use strict\\";Object.defineProperty(gc,\\"__esModule\\",{value:!0});function Ax(e){return e&&e.__esModule?e:{default:e}}var Wh=xt(),Et=be(),Px=hn(),Nx=Ax(Px),xc=class extends Nx.default{constructor(t,s,i,r){super(),this.rootTransformer=t,this.tokens=s,this.importProcessor=i,this.options=r}process(){let t=this.tokens.currentIndex();if(this.tokens.identifierName()===\\"createReactClass\\"){let s=this.importProcessor&&this.importProcessor.getIdentifierReplacement(\\"createReactClass\\");return s?this.tokens.replaceToken(`(0, ${s})`):this.tokens.copyToken(),this.tryProcessCreateClassCall(t),!0}if(this.tokens.matches3(Et.TokenType.name,Et.TokenType.dot,Et.TokenType.name)&&this.tokens.identifierName()===\\"React\\"&&this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+2)===\\"createClass\\"){let s=this.importProcessor&&this.importProcessor.getIdentifierReplacement(\\"React\\")||\\"React\\";return s?(this.tokens.replaceToken(s),this.tokens.copyToken(),this.tokens.copyToken()):(this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.copyToken()),this.tryProcessCreateClassCall(t),!0}return!1}tryProcessCreateClassCall(t){let s=this.findDisplayName(t);s&&this.classNeedsDisplayName()&&(this.tokens.copyExpectedToken(Et.TokenType.parenL),this.tokens.copyExpectedToken(Et.TokenType.braceL),this.tokens.appendCode(`displayName: \'${s}\',`),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(Et.TokenType.braceR),this.tokens.copyExpectedToken(Et.TokenType.parenR))}findDisplayName(t){return t<2?null:this.tokens.matches2AtIndex(t-2,Et.TokenType.name,Et.TokenType.eq)?this.tokens.identifierNameAtIndex(t-2):t>=2&&this.tokens.tokens[t-2].identifierRole===Wh.IdentifierRole.ObjectKey?this.tokens.identifierNameAtIndex(t-2):this.tokens.matches2AtIndex(t-2,Et.TokenType._export,Et.TokenType._default)?this.getDisplayNameFromFilename():null}getDisplayNameFromFilename(){let s=(this.options.filePath||\\"unknown\\").split(\\"/\\"),i=s[s.length-1],r=i.lastIndexOf(\\".\\"),a=r===-1?i:i.slice(0,r);return a===\\"index\\"&&s[s.length-2]?s[s.length-2]:a}classNeedsDisplayName(){let t=this.tokens.currentIndex();if(!this.tokens.matches2(Et.TokenType.parenL,Et.TokenType.braceL))return!1;let s=t+1,i=this.tokens.tokens[s].contextId;if(i==null)throw new Error(\\"Expected non-null context ID on object open-brace.\\");for(;t{\\"use strict\\";Object.defineProperty(bc,\\"__esModule\\",{value:!0});function Rx(e){return e&&e.__esModule?e:{default:e}}var zh=xt(),Lx=hn(),Ox=Rx(Lx),_c=class e extends Ox.default{__init(){this.extractedDefaultExportName=null}constructor(t,s){super(),this.tokens=t,this.filePath=s,e.prototype.__init.call(this)}setExtractedDefaultExportName(t){this.extractedDefaultExportName=t}getPrefixCode(){return`\\n (function () {\\n var enterModule = require(\'react-hot-loader\').enterModule;\\n enterModule && enterModule(module);\\n })();`.replace(/\\\\s+/g,\\" \\").trim()}getSuffixCode(){let t=new Set;for(let i of this.tokens.tokens)!i.isType&&zh.isTopLevelDeclaration.call(void 0,i)&&i.identifierRole!==zh.IdentifierRole.ImportDeclaration&&t.add(this.tokens.identifierNameForToken(i));let s=Array.from(t).map(i=>({variableName:i,uniqueLocalName:i}));return this.extractedDefaultExportName&&s.push({variableName:this.extractedDefaultExportName,uniqueLocalName:\\"default\\"}),`\\n;(function () {\\n var reactHotLoader = require(\'react-hot-loader\').default;\\n var leaveModule = require(\'react-hot-loader\').leaveModule;\\n if (!reactHotLoader) {\\n return;\\n }\\n${s.map(({variableName:i,uniqueLocalName:r})=>` reactHotLoader.register(${i}, \\"${r}\\", ${JSON.stringify(this.filePath||\\"\\")});`).join(`\\n`)}\\n leaveModule(module);\\n})();`}process(){return!1}};bc.default=_c});var Jh=Z(Cc=>{\\"use strict\\";Object.defineProperty(Cc,\\"__esModule\\",{value:!0});var Yh=li(),Dx=new Set([\\"break\\",\\"case\\",\\"catch\\",\\"class\\",\\"const\\",\\"continue\\",\\"debugger\\",\\"default\\",\\"delete\\",\\"do\\",\\"else\\",\\"export\\",\\"extends\\",\\"finally\\",\\"for\\",\\"function\\",\\"if\\",\\"import\\",\\"in\\",\\"instanceof\\",\\"new\\",\\"return\\",\\"super\\",\\"switch\\",\\"this\\",\\"throw\\",\\"try\\",\\"typeof\\",\\"var\\",\\"void\\",\\"while\\",\\"with\\",\\"yield\\",\\"enum\\",\\"implements\\",\\"interface\\",\\"let\\",\\"package\\",\\"private\\",\\"protected\\",\\"public\\",\\"static\\",\\"await\\",\\"false\\",\\"null\\",\\"true\\"]);function Mx(e){if(e.length===0||!Yh.IS_IDENTIFIER_START[e.charCodeAt(0)])return!1;for(let t=1;t{\\"use strict\\";Object.defineProperty(Sc,\\"__esModule\\",{value:!0});function Zh(e){return e&&e.__esModule?e:{default:e}}var $e=be(),Fx=Jh(),Qh=Zh(Fx),Bx=hn(),Vx=Zh(Bx),wc=class extends Vx.default{constructor(t,s,i){super(),this.rootTransformer=t,this.tokens=s,this.isImportsTransformEnabled=i}process(){return this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange()?!0:this.tokens.matches1($e.TokenType._public)||this.tokens.matches1($e.TokenType._protected)||this.tokens.matches1($e.TokenType._private)||this.tokens.matches1($e.TokenType._abstract)||this.tokens.matches1($e.TokenType._readonly)||this.tokens.matches1($e.TokenType._override)||this.tokens.matches1($e.TokenType.nonNullAssertion)?(this.tokens.removeInitialToken(),!0):this.tokens.matches1($e.TokenType._enum)||this.tokens.matches2($e.TokenType._const,$e.TokenType._enum)?(this.processEnum(),!0):this.tokens.matches2($e.TokenType._export,$e.TokenType._enum)||this.tokens.matches3($e.TokenType._export,$e.TokenType._const,$e.TokenType._enum)?(this.processEnum(!0),!0):!1}processEnum(t=!1){for(this.tokens.removeInitialToken();this.tokens.matches1($e.TokenType._const)||this.tokens.matches1($e.TokenType._enum);)this.tokens.removeToken();let s=this.tokens.identifierName();this.tokens.removeToken(),t&&!this.isImportsTransformEnabled&&this.tokens.appendCode(\\"export \\"),this.tokens.appendCode(`var ${s}; (function (${s})`),this.tokens.copyExpectedToken($e.TokenType.braceL),this.processEnumBody(s),this.tokens.copyExpectedToken($e.TokenType.braceR),t&&this.isImportsTransformEnabled?this.tokens.appendCode(`)(${s} || (exports.${s} = ${s} = {}));`):this.tokens.appendCode(`)(${s} || (${s} = {}));`)}processEnumBody(t){let s=null;for(;!this.tokens.matches1($e.TokenType.braceR);){let{nameStringCode:i,variableName:r}=this.extractEnumKeyInfo(this.tokens.currentToken());this.tokens.removeInitialToken(),this.tokens.matches3($e.TokenType.eq,$e.TokenType.string,$e.TokenType.comma)||this.tokens.matches3($e.TokenType.eq,$e.TokenType.string,$e.TokenType.braceR)?this.processStringLiteralEnumMember(t,i,r):this.tokens.matches1($e.TokenType.eq)?this.processExplicitValueEnumMember(t,i,r):this.processImplicitValueEnumMember(t,i,r,s),this.tokens.matches1($e.TokenType.comma)&&this.tokens.removeToken(),r!=null?s=r:s=`${t}[${i}]`}}extractEnumKeyInfo(t){if(t.type===$e.TokenType.name){let s=this.tokens.identifierNameForToken(t);return{nameStringCode:`\\"${s}\\"`,variableName:Qh.default.call(void 0,s)?s:null}}else if(t.type===$e.TokenType.string){let s=this.tokens.stringValueForToken(t);return{nameStringCode:this.tokens.code.slice(t.start,t.end),variableName:Qh.default.call(void 0,s)?s:null}}else throw new Error(\\"Expected name or string at beginning of enum element.\\")}processStringLiteralEnumMember(t,s,i){i!=null?(this.tokens.appendCode(`const ${i}`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(`; ${t}[${s}] = ${i};`)):(this.tokens.appendCode(`${t}[${s}]`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(\\";\\"))}processExplicitValueEnumMember(t,s,i){let r=this.tokens.currentToken().rhsEndIndex;if(r==null)throw new Error(\\"Expected rhsEndIndex on enum assign.\\");if(i!=null){for(this.tokens.appendCode(`const ${i}`),this.tokens.copyToken();this.tokens.currentIndex(){\\"use strict\\";Object.defineProperty(Ec,\\"__esModule\\",{value:!0});function yn(e){return e&&e.__esModule?e:{default:e}}var jx=It(),lt=be(),$x=Ah(),qx=yn($x),Kx=Oh(),Ux=yn(Kx),Hx=Bh(),Wx=yn(Hx),Gx=jh(),zx=yn(Gx),Xx=$h(),Yx=yn(Xx),Jx=Da(),Qx=yn(Jx),Zx=qh(),eg=yn(Zx),tg=Uh(),ng=yn(tg),sg=Hh(),ig=yn(sg),rg=Gh(),og=yn(rg),ag=Xh(),lg=yn(ag),cg=ef(),ug=yn(cg),Ic=class e{__init(){this.transformers=[]}__init2(){this.generatedVariables=[]}constructor(t,s,i,r){e.prototype.__init.call(this),e.prototype.__init2.call(this),this.nameManager=t.nameManager,this.helperManager=t.helperManager;let{tokenProcessor:a,importProcessor:u}=t;this.tokens=a,this.isImportsTransformEnabled=s.includes(\\"imports\\"),this.isReactHotLoaderTransformEnabled=s.includes(\\"react-hot-loader\\"),this.disableESTransforms=!!r.disableESTransforms,r.disableESTransforms||(this.transformers.push(new ig.default(a,this.nameManager)),this.transformers.push(new eg.default(a)),this.transformers.push(new ng.default(a,this.nameManager))),s.includes(\\"jsx\\")&&(r.jsxRuntime!==\\"preserve\\"&&this.transformers.push(new Qx.default(this,a,u,this.nameManager,r)),this.transformers.push(new og.default(this,a,u,r)));let d=null;if(s.includes(\\"react-hot-loader\\")){if(!r.filePath)throw new Error(\\"filePath is required when using the react-hot-loader transform.\\");d=new lg.default(a,r.filePath),this.transformers.push(d)}if(s.includes(\\"imports\\")){if(u===null)throw new Error(\\"Expected non-null importProcessor with imports transform enabled.\\");this.transformers.push(new Ux.default(this,a,u,this.nameManager,this.helperManager,d,i,!!r.enableLegacyTypeScriptModuleInterop,s.includes(\\"typescript\\"),!!r.preserveDynamicImport))}else this.transformers.push(new Wx.default(a,this.nameManager,this.helperManager,d,s.includes(\\"typescript\\"),r));s.includes(\\"flow\\")&&this.transformers.push(new zx.default(this,a,s.includes(\\"imports\\"))),s.includes(\\"typescript\\")&&this.transformers.push(new ug.default(this,a,s.includes(\\"imports\\"))),s.includes(\\"jest\\")&&this.transformers.push(new Yx.default(this,a,this.nameManager,u))}transform(){this.tokens.reset(),this.processBalancedCode();let s=this.isImportsTransformEnabled?\'\\"use strict\\";\':\\"\\";for(let u of this.transformers)s+=u.getPrefixCode();s+=this.helperManager.emitHelpers(),s+=this.generatedVariables.map(u=>` var ${u};`).join(\\"\\");for(let u of this.transformers)s+=u.getHoistedCode();let i=\\"\\";for(let u of this.transformers)i+=u.getSuffixCode();let r=this.tokens.finish(),{code:a}=r;if(a.startsWith(\\"#!\\")){let u=a.indexOf(`\\n`);return u===-1&&(u=a.length,a+=`\\n`),{code:a.slice(0,u+1)+s+a.slice(u+1)+i,mappings:this.shiftMappings(r.mappings,s.length)}}else return{code:s+a+i,mappings:this.shiftMappings(r.mappings,s.length)}}processBalancedCode(){let t=0,s=0;for(;!this.tokens.isAtEnd();){if(this.tokens.matches1(lt.TokenType.braceL)||this.tokens.matches1(lt.TokenType.dollarBraceL))t++;else if(this.tokens.matches1(lt.TokenType.braceR)){if(t===0)return;t--}if(this.tokens.matches1(lt.TokenType.parenL))s++;else if(this.tokens.matches1(lt.TokenType.parenR)){if(s===0)return;s--}this.processToken()}}processToken(){if(this.tokens.matches1(lt.TokenType._class)){this.processClass();return}for(let t of this.transformers)if(t.process())return;this.tokens.copyToken()}processNamedClass(){if(!this.tokens.matches2(lt.TokenType._class,lt.TokenType.name))throw new Error(\\"Expected identifier for exported class name.\\");let t=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.processClass(),t}processClass(){let t=qx.default.call(void 0,this,this.tokens,this.nameManager,this.disableESTransforms),s=(t.headerInfo.isExpression||!t.headerInfo.className)&&t.staticInitializerNames.length+t.instanceInitializerNames.length>0,i=t.headerInfo.className;s&&(i=this.nameManager.claimFreeName(\\"_class\\"),this.generatedVariables.push(i),this.tokens.appendCode(` (${i} =`));let a=this.tokens.currentToken().contextId;if(a==null)throw new Error(\\"Expected class to have a context ID.\\");for(this.tokens.copyExpectedToken(lt.TokenType._class);!this.tokens.matchesContextIdAndLabel(lt.TokenType.braceL,a);)this.processToken();this.processClassBody(t,i);let u=t.staticInitializerNames.map(d=>`${i}.${d}()`);s?this.tokens.appendCode(`, ${u.map(d=>`${d}, `).join(\\"\\")}${i})`):t.staticInitializerNames.length>0&&this.tokens.appendCode(` ${u.map(d=>`${d};`).join(\\" \\")}`)}processClassBody(t,s){let{headerInfo:i,constructorInsertPos:r,constructorInitializerStatements:a,fields:u,instanceInitializerNames:d,rangesToRemove:y}=t,g=0,L=0,p=this.tokens.currentToken().contextId;if(p==null)throw new Error(\\"Expected non-null context ID on class.\\");this.tokens.copyExpectedToken(lt.TokenType.braceL),this.isReactHotLoaderTransformEnabled&&this.tokens.appendCode(\\"__reactstandin__regenerateByEval(key, code) {this[key] = eval(code);}\\");let h=a.length+d.length>0;if(r===null&&h){let T=this.makeConstructorInitCode(a,d,s);if(i.hasSuperclass){let x=this.nameManager.claimFreeName(\\"args\\");this.tokens.appendCode(`constructor(...${x}) { super(...${x}); ${T}; }`)}else this.tokens.appendCode(`constructor() { ${T}; }`)}for(;!this.tokens.matchesContextIdAndLabel(lt.TokenType.braceR,p);)if(g=y[L].start){for(this.tokens.currentIndex()`${i}.prototype.${r}.call(this)`)].join(\\";\\")}processPossibleArrowParamEnd(){if(this.tokens.matches2(lt.TokenType.parenR,lt.TokenType.colon)&&this.tokens.tokenAtRelativeIndex(1).isType){let t=this.tokens.currentIndex()+1;for(;this.tokens.tokens[t].isType;)t++;if(this.tokens.matches1AtIndex(t,lt.TokenType.arrow)){for(this.tokens.removeInitialToken();this.tokens.currentIndex()\\"),!0}}return!1}processPossibleAsyncArrowWithTypeParams(){if(!this.tokens.matchesContextual(jx.ContextualKeyword._async)&&!this.tokens.matches1(lt.TokenType._async))return!1;let t=this.tokens.tokenAtRelativeIndex(1);if(t.type!==lt.TokenType.lessThan||!t.isType)return!1;let s=this.tokens.currentIndex()+1;for(;this.tokens.tokens[s].isType;)s++;if(this.tokens.matches1AtIndex(s,lt.TokenType.parenL)){for(this.tokens.replaceToken(\\"async (\\"),this.tokens.removeInitialToken();this.tokens.currentIndex(){\\"use strict\\";hr.__esModule=!0;hr.LinesAndColumns=void 0;var Mo=`\\n`,nf=\\"\\\\r\\",sf=function(){function e(t){this.string=t;for(var s=[0],i=0;ithis.string.length)return null;for(var s=0,i=this.offsets;i[s+1]<=t;)s++;var r=t-i[s];return{line:s,column:r}},e.prototype.indexForLocation=function(t){var s=t.line,i=t.column;return s<0||s>=this.offsets.length||i<0||i>this.lengthOfLine(s)?null:this.offsets[s]+i},e.prototype.lengthOfLine=function(t){var s=this.offsets[t],i=t===this.offsets.length-1?this.string.length:this.offsets[t+1];return i-s},e}();hr.LinesAndColumns=sf;hr.default=sf});var of=Z(Ac=>{\\"use strict\\";Object.defineProperty(Ac,\\"__esModule\\",{value:!0});function pg(e){return e&&e.__esModule?e:{default:e}}var hg=rf(),fg=pg(hg),dg=be();function mg(e,t){if(t.length===0)return\\"\\";let s=Object.keys(t[0]).filter(h=>h!==\\"type\\"&&h!==\\"value\\"&&h!==\\"start\\"&&h!==\\"end\\"&&h!==\\"loc\\"),i=Object.keys(t[0].type).filter(h=>h!==\\"label\\"&&h!==\\"keyword\\"),r=[\\"Location\\",\\"Label\\",\\"Raw\\",...s,...i],a=new fg.default(e),u=[r,...t.map(y)],d=r.map(()=>0);for(let h of u)for(let T=0;Th.map((T,x)=>T.padEnd(d[x])).join(\\" \\")).join(`\\n`);function y(h){let T=e.slice(h.start,h.end);return[L(h.start,h.end),dg.formatTokenType.call(void 0,h.type),yg(String(T),14),...s.map(x=>g(h[x],x)),...i.map(x=>g(h.type[x],x))]}function g(h,T){return h===!0?T:h===!1||h===null?\\"\\":String(h)}function L(h,T){return`${p(h)}-${p(T)}`}function p(h){let T=a.locationForIndex(h);return T?`${T.line+1}:${T.column+1}`:\\"Unknown\\"}}Ac.default=mg;function yg(e,t){return e.length>t?`${e.slice(0,t-3)}...`:e}});var af=Z(Pc=>{\\"use strict\\";Object.defineProperty(Pc,\\"__esModule\\",{value:!0});function Tg(e){return e&&e.__esModule?e:{default:e}}var Gt=be(),kg=Wi(),vg=Tg(kg);function xg(e){let t=new Set;for(let s=0;s{\\"use strict\\";Object.defineProperty(fr,\\"__esModule\\",{value:!0});function vs(e){return e&&e.__esModule?e:{default:e}}var bg=N1(),Cg=vs(bg),wg=$1(),Sg=vs(wg),Ig=q1(),Eg=H1(),lf=vs(Eg),Ag=G1(),Pg=vs(Ag),Ng=pp(),Rg=Ul(),Lg=Sh(),Og=vs(Lg),Dg=tf(),Mg=vs(Dg),Fg=of(),Bg=vs(Fg),Vg=af(),jg=vs(Vg);function $g(){return\\"3.32.0\\"}fr.getVersion=$g;function qg(e,t){Ng.validateOptions.call(void 0,t);try{let s=cf(e,t),r=new Mg.default(s,t.transforms,!!t.enableLegacyBabel5ModuleInterop,t).transform(),a={code:r.code};if(t.sourceMapOptions){if(!t.filePath)throw new Error(\\"filePath must be specified when generating a source map.\\");a={...a,sourceMap:Sg.default.call(void 0,r,t.filePath,t.sourceMapOptions,e,s.tokenProcessor.tokens)}}return a}catch(s){throw t.filePath&&(s.message=`Error transforming ${t.filePath}: ${s.message}`),s}}fr.transform=qg;function Kg(e,t){let s=cf(e,t).tokenProcessor.tokens;return Bg.default.call(void 0,e,s)}fr.getFormattedTokens=Kg;function cf(e,t){let s=t.transforms.includes(\\"jsx\\"),i=t.transforms.includes(\\"typescript\\"),r=t.transforms.includes(\\"flow\\"),a=t.disableESTransforms===!0,u=Rg.parse.call(void 0,e,s,i,r),d=u.tokens,y=u.scopes,g=new Pg.default(e,d),L=new Ig.HelperManager(g),p=new Og.default(e,d,r,a,L),h=!!t.enableLegacyTypeScriptModuleInterop,T=null;return t.transforms.includes(\\"imports\\")?(T=new Cg.default(g,p,h,t,t.transforms.includes(\\"typescript\\"),L),T.preprocessTokens(),lf.default.call(void 0,p,y,T.getGlobalNames()),t.transforms.includes(\\"typescript\\")&&T.pruneTypeOnlyImports()):t.transforms.includes(\\"typescript\\")&&lf.default.call(void 0,p,y,jg.default.call(void 0,p)),{tokenProcessor:p,scopes:y,nameManager:g,importProcessor:T,helperManager:L}}});var hf=Z((Fo,pf)=>{(function(e,t){typeof Fo==\\"object\\"&&typeof pf<\\"u\\"?t(Fo):typeof define==\\"function\\"&&define.amd?define([\\"exports\\"],t):(e=typeof globalThis<\\"u\\"?globalThis:e||self,t(e.acorn={}))})(Fo,function(e){\\"use strict\\";var t=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],s=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],i=\\"\\\\u200C\\\\u200D\\\\xB7\\\\u0300-\\\\u036F\\\\u0387\\\\u0483-\\\\u0487\\\\u0591-\\\\u05BD\\\\u05BF\\\\u05C1\\\\u05C2\\\\u05C4\\\\u05C5\\\\u05C7\\\\u0610-\\\\u061A\\\\u064B-\\\\u0669\\\\u0670\\\\u06D6-\\\\u06DC\\\\u06DF-\\\\u06E4\\\\u06E7\\\\u06E8\\\\u06EA-\\\\u06ED\\\\u06F0-\\\\u06F9\\\\u0711\\\\u0730-\\\\u074A\\\\u07A6-\\\\u07B0\\\\u07C0-\\\\u07C9\\\\u07EB-\\\\u07F3\\\\u07FD\\\\u0816-\\\\u0819\\\\u081B-\\\\u0823\\\\u0825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\\\\u0CF3\\\\u0D00-\\\\u0D03\\\\u0D3B\\\\u0D3C\\\\u0D3E-\\\\u0D44\\\\u0D46-\\\\u0D48\\\\u0D4A-\\\\u0D4D\\\\u0D57\\\\u0D62\\\\u0D63\\\\u0D66-\\\\u0D6F\\\\u0D81-\\\\u0D83\\\\u0DCA\\\\u0DCF-\\\\u0DD4\\\\u0DD6\\\\u0DD8-\\\\u0DDF\\\\u0DE6-\\\\u0DEF\\\\u0DF2\\\\u0DF3\\\\u0E31\\\\u0E34-\\\\u0E3A\\\\u0E47-\\\\u0E4E\\\\u0E50-\\\\u0E59\\\\u0EB1\\\\u0EB4-\\\\u0EBC\\\\u0EC8-\\\\u0ECE\\\\u0ED0-\\\\u0ED9\\\\u0F18\\\\u0F19\\\\u0F20-\\\\u0F29\\\\u0F35\\\\u0F37\\\\u0F39\\\\u0F3E\\\\u0F3F\\\\u0F71-\\\\u0F84\\\\u0F86\\\\u0F87\\\\u0F8D-\\\\u0F97\\\\u0F99-\\\\u0FBC\\\\u0FC6\\\\u102B-\\\\u103E\\\\u1040-\\\\u1049\\\\u1056-\\\\u1059\\\\u105E-\\\\u1060\\\\u1062-\\\\u1064\\\\u1067-\\\\u106D\\\\u1071-\\\\u1074\\\\u1082-\\\\u108D\\\\u108F-\\\\u109D\\\\u135D-\\\\u135F\\\\u1369-\\\\u1371\\\\u1712-\\\\u1715\\\\u1732-\\\\u1734\\\\u1752\\\\u1753\\\\u1772\\\\u1773\\\\u17B4-\\\\u17D3\\\\u17DD\\\\u17E0-\\\\u17E9\\\\u180B-\\\\u180D\\\\u180F-\\\\u1819\\\\u18A9\\\\u1920-\\\\u192B\\\\u1930-\\\\u193B\\\\u1946-\\\\u194F\\\\u19D0-\\\\u19DA\\\\u1A17-\\\\u1A1B\\\\u1A55-\\\\u1A5E\\\\u1A60-\\\\u1A7C\\\\u1A7F-\\\\u1A89\\\\u1A90-\\\\u1A99\\\\u1AB0-\\\\u1ABD\\\\u1ABF-\\\\u1ACE\\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E0F\\\\uFE20-\\\\uFE2F\\\\uFE33\\\\uFE34\\\\uFE4D-\\\\uFE4F\\\\uFF10-\\\\uFF19\\\\uFF3F\\\\uFF65\\",r=\\"\\\\xAA\\\\xB5\\\\xBA\\\\xC0-\\\\xD6\\\\xD8-\\\\xF6\\\\xF8-\\\\u02C1\\\\u02C6-\\\\u02D1\\\\u02E0-\\\\u02E4\\\\u02EC\\\\u02EE\\\\u0370-\\\\u0374\\\\u0376\\\\u0377\\\\u037A-\\\\u037D\\\\u037F\\\\u0386\\\\u0388-\\\\u038A\\\\u038C\\\\u038E-\\\\u03A1\\\\u03A3-\\\\u03F5\\\\u03F7-\\\\u0481\\\\u048A-\\\\u052F\\\\u0531-\\\\u0556\\\\u0559\\\\u0560-\\\\u0588\\\\u05D0-\\\\u05EA\\\\u05EF-\\\\u05F2\\\\u0620-\\\\u064A\\\\u066E\\\\u066F\\\\u0671-\\\\u06D3\\\\u06D5\\\\u06E5\\\\u06E6\\\\u06EE\\\\u06EF\\\\u06FA-\\\\u06FC\\\\u06FF\\\\u0710\\\\u0712-\\\\u072F\\\\u074D-\\\\u07A5\\\\u07B1\\\\u07CA-\\\\u07EA\\\\u07F4\\\\u07F5\\\\u07FA\\\\u0800-\\\\u0815\\\\u081A\\\\u0824\\\\u0828\\\\u0840-\\\\u0858\\\\u0860-\\\\u086A\\\\u0870-\\\\u0887\\\\u0889-\\\\u088E\\\\u08A0-\\\\u08C9\\\\u0904-\\\\u0939\\\\u093D\\\\u0950\\\\u0958-\\\\u0961\\\\u0971-\\\\u0980\\\\u0985-\\\\u098C\\\\u098F\\\\u0990\\\\u0993-\\\\u09A8\\\\u09AA-\\\\u09B0\\\\u09B2\\\\u09B6-\\\\u09B9\\\\u09BD\\\\u09CE\\\\u09DC\\\\u09DD\\\\u09DF-\\\\u09E1\\\\u09F0\\\\u09F1\\\\u09FC\\\\u0A05-\\\\u0A0A\\\\u0A0F\\\\u0A10\\\\u0A13-\\\\u0A28\\\\u0A2A-\\\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B1\\\\u0DB3-\\\\u0DBB\\\\u0DBD\\\\u0DC0-\\\\u0DC6\\\\u0E01-\\\\u0E30\\\\u0E32\\\\u0E33\\\\u0E40-\\\\u0E46\\\\u0E81\\\\u0E82\\\\u0E84\\\\u0E86-\\\\u0E8A\\\\u0E8C-\\\\u0EA3\\\\u0EA5\\\\u0EA7-\\\\u0EB0\\\\u0EB2\\\\u0EB3\\\\u0EBD\\\\u0EC0-\\\\u0EC4\\\\u0EC6\\\\u0EDC-\\\\u0EDF\\\\u0F00\\\\u0F40-\\\\u0F47\\\\u0F49-\\\\u0F6C\\\\u0F88-\\\\u0F8C\\\\u1000-\\\\u102A\\\\u103F\\\\u1050-\\\\u1055\\\\u105A-\\\\u105D\\\\u1061\\\\u1065\\\\u1066\\\\u106E-\\\\u1070\\\\u1075-\\\\u1081\\\\u108E\\\\u10A0-\\\\u10C5\\\\u10C7\\\\u10CD\\\\u10D0-\\\\u10FA\\\\u10FC-\\\\u1248\\\\u124A-\\\\u124D\\\\u1250-\\\\u1256\\\\u1258\\\\u125A-\\\\u125D\\\\u1260-\\\\u1288\\\\u128A-\\\\u128D\\\\u1290-\\\\u12B0\\\\u12B2-\\\\u12B5\\\\u12B8-\\\\u12BE\\\\u12C0\\\\u12C2-\\\\u12C5\\\\u12C8-\\\\u12D6\\\\u12D8-\\\\u1310\\\\u1312-\\\\u1315\\\\u1318-\\\\u135A\\\\u1380-\\\\u138F\\\\u13A0-\\\\u13F5\\\\u13F8-\\\\u13FD\\\\u1401-\\\\u166C\\\\u166F-\\\\u167F\\\\u1681-\\\\u169A\\\\u16A0-\\\\u16EA\\\\u16EE-\\\\u16F8\\\\u1700-\\\\u1711\\\\u171F-\\\\u1731\\\\u1740-\\\\u1751\\\\u1760-\\\\u176C\\\\u176E-\\\\u1770\\\\u1780-\\\\u17B3\\\\u17D7\\\\u17DC\\\\u1820-\\\\u1878\\\\u1880-\\\\u18A8\\\\u18AA\\\\u18B0-\\\\u18F5\\\\u1900-\\\\u191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u2DA8-\\\\u2DAE\\\\u2DB0-\\\\u2DB6\\\\u2DB8-\\\\u2DBE\\\\u2DC0-\\\\u2DC6\\\\u2DC8-\\\\u2DCE\\\\u2DD0-\\\\u2DD6\\\\u2DD8-\\\\u2DDE\\\\u3005-\\\\u3007\\\\u3021-\\\\u3029\\\\u3031-\\\\u3035\\\\u3038-\\\\u303C\\\\u3041-\\\\u3096\\\\u309B-\\\\u309F\\\\u30A1-\\\\u30FA\\\\u30FC-\\\\u30FF\\\\u3105-\\\\u312F\\\\u3131-\\\\u318E\\\\u31A0-\\\\u31BF\\\\u31F0-\\\\u31FF\\\\u3400-\\\\u4DBF\\\\u4E00-\\\\uA48C\\\\uA4D0-\\\\uA4FD\\\\uA500-\\\\uA60C\\\\uA610-\\\\uA61F\\\\uA62A\\\\uA62B\\\\uA640-\\\\uA66E\\\\uA67F-\\\\uA69D\\\\uA6A0-\\\\uA6EF\\\\uA717-\\\\uA71F\\\\uA722-\\\\uA788\\\\uA78B-\\\\uA7CD\\\\uA7D0\\\\uA7D1\\\\uA7D3\\\\uA7D5-\\\\uA7DC\\\\uA7F2-\\\\uA801\\\\uA803-\\\\uA805\\\\uA807-\\\\uA80A\\\\uA80C-\\\\uA822\\\\uA840-\\\\uA873\\\\uA882-\\\\uA8B3\\\\uA8F2-\\\\uA8F7\\\\uA8FB\\\\uA8FD\\\\uA8FE\\\\uA90A-\\\\uA925\\\\uA930-\\\\uA946\\\\uA960-\\\\uA97C\\\\uA984-\\\\uA9B2\\\\uA9CF\\\\uA9E0-\\\\uA9E4\\\\uA9E6-\\\\uA9EF\\\\uA9FA-\\\\uA9FE\\\\uAA00-\\\\uAA28\\\\uAA40-\\\\uAA42\\\\uAA44-\\\\uAA4B\\\\uAA60-\\\\uAA76\\\\uAA7A\\\\uAA7E-\\\\uAAAF\\\\uAAB1\\\\uAAB5\\\\uAAB6\\\\uAAB9-\\\\uAABD\\\\uAAC0\\\\uAAC2\\\\uAADB-\\\\uAADD\\\\uAAE0-\\\\uAAEA\\\\uAAF2-\\\\uAAF4\\\\uAB01-\\\\uAB06\\\\uAB09-\\\\uAB0E\\\\uAB11-\\\\uAB16\\\\uAB20-\\\\uAB26\\\\uAB28-\\\\uAB2E\\\\uAB30-\\\\uAB5A\\\\uAB5C-\\\\uAB69\\\\uAB70-\\\\uABE2\\\\uAC00-\\\\uD7A3\\\\uD7B0-\\\\uD7C6\\\\uD7CB-\\\\uD7FB\\\\uF900-\\\\uFA6D\\\\uFA70-\\\\uFAD9\\\\uFB00-\\\\uFB06\\\\uFB13-\\\\uFB17\\\\uFB1D\\\\uFB1F-\\\\uFB28\\\\uFB2A-\\\\uFB36\\\\uFB38-\\\\uFB3C\\\\uFB3E\\\\uFB40\\\\uFB41\\\\uFB43\\\\uFB44\\\\uFB46-\\\\uFBB1\\\\uFBD3-\\\\uFD3D\\\\uFD50-\\\\uFD8F\\\\uFD92-\\\\uFDC7\\\\uFDF0-\\\\uFDFB\\\\uFE70-\\\\uFE74\\\\uFE76-\\\\uFEFC\\\\uFF21-\\\\uFF3A\\\\uFF41-\\\\uFF5A\\\\uFF66-\\\\uFFBE\\\\uFFC2-\\\\uFFC7\\\\uFFCA-\\\\uFFCF\\\\uFFD2-\\\\uFFD7\\\\uFFDA-\\\\uFFDC\\",a={3:\\"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile\\",5:\\"class enum extends super const export import\\",6:\\"enum\\",strict:\\"implements interface let package private protected public static yield\\",strictBind:\\"eval arguments\\"},u=\\"break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this\\",d={5:u,\\"5module\\":u+\\" export import\\",6:u+\\" const class extends export import super\\"},y=/^in(stanceof)?$/,g=new RegExp(\\"[\\"+r+\\"]\\"),L=new RegExp(\\"[\\"+r+i+\\"]\\");function p(n,o){for(var l=65536,f=0;fn)return!1;if(l+=o[f+1],l>=n)return!0}return!1}function h(n,o){return n<65?n===36:n<91?!0:n<97?n===95:n<123?!0:n<=65535?n>=170&&g.test(String.fromCharCode(n)):o===!1?!1:p(n,s)}function T(n,o){return n<48?n===36:n<58?!0:n<65?!1:n<91?!0:n<97?n===95:n<123?!0:n<=65535?n>=170&&L.test(String.fromCharCode(n)):o===!1?!1:p(n,s)||p(n,t)}var x=function(o,l){l===void 0&&(l={}),this.label=o,this.keyword=l.keyword,this.beforeExpr=!!l.beforeExpr,this.startsExpr=!!l.startsExpr,this.isLoop=!!l.isLoop,this.isAssign=!!l.isAssign,this.prefix=!!l.prefix,this.postfix=!!l.postfix,this.binop=l.binop||null,this.updateContext=null};function w(n,o){return new x(n,{beforeExpr:!0,binop:o})}var S={beforeExpr:!0},A={startsExpr:!0},U={};function M(n,o){return o===void 0&&(o={}),o.keyword=n,U[n]=new x(n,o)}var c={num:new x(\\"num\\",A),regexp:new x(\\"regexp\\",A),string:new x(\\"string\\",A),name:new x(\\"name\\",A),privateId:new x(\\"privateId\\",A),eof:new x(\\"eof\\"),bracketL:new x(\\"[\\",{beforeExpr:!0,startsExpr:!0}),bracketR:new x(\\"]\\"),braceL:new x(\\"{\\",{beforeExpr:!0,startsExpr:!0}),braceR:new x(\\"}\\"),parenL:new x(\\"(\\",{beforeExpr:!0,startsExpr:!0}),parenR:new x(\\")\\"),comma:new x(\\",\\",S),semi:new x(\\";\\",S),colon:new x(\\":\\",S),dot:new x(\\".\\"),question:new x(\\"?\\",S),questionDot:new x(\\"?.\\"),arrow:new x(\\"=>\\",S),template:new x(\\"template\\"),invalidTemplate:new x(\\"invalidTemplate\\"),ellipsis:new x(\\"...\\",S),backQuote:new x(\\"`\\",A),dollarBraceL:new x(\\"${\\",{beforeExpr:!0,startsExpr:!0}),eq:new x(\\"=\\",{beforeExpr:!0,isAssign:!0}),assign:new x(\\"_=\\",{beforeExpr:!0,isAssign:!0}),incDec:new x(\\"++/--\\",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new x(\\"!/~\\",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:w(\\"||\\",1),logicalAND:w(\\"&&\\",2),bitwiseOR:w(\\"|\\",3),bitwiseXOR:w(\\"^\\",4),bitwiseAND:w(\\"&\\",5),equality:w(\\"==/!=/===/!==\\",6),relational:w(\\"/<=/>=\\",7),bitShift:w(\\"<>/>>>\\",8),plusMin:new x(\\"+/-\\",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:w(\\"%\\",10),star:w(\\"*\\",10),slash:w(\\"/\\",10),starstar:new x(\\"**\\",{beforeExpr:!0}),coalesce:w(\\"??\\",1),_break:M(\\"break\\"),_case:M(\\"case\\",S),_catch:M(\\"catch\\"),_continue:M(\\"continue\\"),_debugger:M(\\"debugger\\"),_default:M(\\"default\\",S),_do:M(\\"do\\",{isLoop:!0,beforeExpr:!0}),_else:M(\\"else\\",S),_finally:M(\\"finally\\"),_for:M(\\"for\\",{isLoop:!0}),_function:M(\\"function\\",A),_if:M(\\"if\\"),_return:M(\\"return\\",S),_switch:M(\\"switch\\"),_throw:M(\\"throw\\",S),_try:M(\\"try\\"),_var:M(\\"var\\"),_const:M(\\"const\\"),_while:M(\\"while\\",{isLoop:!0}),_with:M(\\"with\\"),_new:M(\\"new\\",{beforeExpr:!0,startsExpr:!0}),_this:M(\\"this\\",A),_super:M(\\"super\\",A),_class:M(\\"class\\",A),_extends:M(\\"extends\\",S),_export:M(\\"export\\"),_import:M(\\"import\\",A),_null:M(\\"null\\",A),_true:M(\\"true\\",A),_false:M(\\"false\\",A),_in:M(\\"in\\",{beforeExpr:!0,binop:7}),_instanceof:M(\\"instanceof\\",{beforeExpr:!0,binop:7}),_typeof:M(\\"typeof\\",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:M(\\"void\\",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:M(\\"delete\\",{beforeExpr:!0,prefix:!0,startsExpr:!0})},R=/\\\\r\\\\n?|\\\\n|\\\\u2028|\\\\u2029/,W=new RegExp(R.source,\\"g\\");function X(n){return n===10||n===13||n===8232||n===8233}function ie(n,o,l){l===void 0&&(l=n.length);for(var f=o;f>10)+55296,(n&1023)+56320))}var _t=/(?:[\\\\uD800-\\\\uDBFF](?![\\\\uDC00-\\\\uDFFF])|(?:[^\\\\uD800-\\\\uDBFF]|^)[\\\\uDC00-\\\\uDFFF])/,ct=function(o,l){this.line=o,this.column=l};ct.prototype.offset=function(o){return new ct(this.line,this.column+o)};var wt=function(o,l,f){this.start=l,this.end=f,o.sourceFile!==null&&(this.source=o.sourceFile)};function $t(n,o){for(var l=1,f=0;;){var m=ie(n,f,o);if(m<0)return new ct(l,o-f);++l,f=m}}var Pt={ecmaVersion:null,sourceType:\\"script\\",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},qt=!1;function Tn(n){var o={};for(var l in Pt)o[l]=n&&mt(n,l)?n[l]:Pt[l];if(o.ecmaVersion===\\"latest\\"?o.ecmaVersion=1e8:o.ecmaVersion==null?(!qt&&typeof console==\\"object\\"&&console.warn&&(qt=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.\\nDefaulting to 2020, but this will stop working in the future.`)),o.ecmaVersion=11):o.ecmaVersion>=2015&&(o.ecmaVersion-=2009),o.allowReserved==null&&(o.allowReserved=o.ecmaVersion<5),(!n||n.allowHashBang==null)&&(o.allowHashBang=o.ecmaVersion>=14),kt(o.onToken)){var f=o.onToken;o.onToken=function(m){return f.push(m)}}return kt(o.onComment)&&(o.onComment=V(o,o.onComment)),o}function V(n,o){return function(l,f,m,E,O,Y){var Q={type:l?\\"Block\\":\\"Line\\",value:f,start:m,end:E};n.locations&&(Q.loc=new wt(this,O,Y)),n.ranges&&(Q.range=[m,E]),o.push(Q)}}var G=1,J=2,re=4,ve=8,he=16,Ie=32,Ee=64,Le=128,Xe=256,We=512,Ke=G|J|Xe;function ut(n,o){return J|(n?re:0)|(o?ve:0)}var pt=0,bt=1,yt=2,vt=3,bn=4,Dn=5,Ge=function(o,l,f){this.options=o=Tn(o),this.sourceFile=o.sourceFile,this.keywords=tt(d[o.ecmaVersion>=6?6:o.sourceType===\\"module\\"?\\"5module\\":5]);var m=\\"\\";o.allowReserved!==!0&&(m=a[o.ecmaVersion>=6?6:o.ecmaVersion===5?5:3],o.sourceType===\\"module\\"&&(m+=\\" await\\")),this.reservedWords=tt(m);var E=(m?m+\\" \\":\\"\\")+a.strict;this.reservedWordsStrict=tt(E),this.reservedWordsStrictBind=tt(E+\\" \\"+a.strictBind),this.input=String(l),this.containsEsc=!1,f?(this.pos=f,this.lineStart=this.input.lastIndexOf(`\\n`,f-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(R).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=c.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=o.sourceType===\\"module\\",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&o.allowHashBang&&this.input.slice(0,2)===\\"#!\\"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(G),this.regexpState=null,this.privateNameStack=[]},St={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};Ge.prototype.parse=function(){var o=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(o)},St.inFunction.get=function(){return(this.currentVarScope().flags&J)>0},St.inGenerator.get=function(){return(this.currentVarScope().flags&ve)>0},St.inAsync.get=function(){return(this.currentVarScope().flags&re)>0},St.canAwait.get=function(){for(var n=this.scopeStack.length-1;n>=0;n--){var o=this.scopeStack[n],l=o.flags;if(l&(Xe|We))return!1;if(l&J)return(l&re)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},St.allowSuper.get=function(){var n=this.currentThisScope(),o=n.flags;return(o&Ee)>0||this.options.allowSuperOutsideMethod},St.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Le)>0},St.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},St.allowNewDotTarget.get=function(){for(var n=this.scopeStack.length-1;n>=0;n--){var o=this.scopeStack[n],l=o.flags;if(l&(Xe|We)||l&J&&!(l&he))return!0}return!1},St.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Xe)>0},Ge.extend=function(){for(var o=[],l=arguments.length;l--;)o[l]=arguments[l];for(var f=this,m=0;m=,?^&]/.test(m)||m===\\"!\\"&&this.input.charAt(f+1)===\\"=\\")}n+=o[0].length,ae.lastIndex=n,n+=ae.exec(this.input)[0].length,this.input[n]===\\";\\"&&n++}},ot.eat=function(n){return this.type===n?(this.next(),!0):!1},ot.isContextual=function(n){return this.type===c.name&&this.value===n&&!this.containsEsc},ot.eatContextual=function(n){return this.isContextual(n)?(this.next(),!0):!1},ot.expectContextual=function(n){this.eatContextual(n)||this.unexpected()},ot.canInsertSemicolon=function(){return this.type===c.eof||this.type===c.braceR||R.test(this.input.slice(this.lastTokEnd,this.start))},ot.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},ot.semicolon=function(){!this.eat(c.semi)&&!this.insertSemicolon()&&this.unexpected()},ot.afterTrailingComma=function(n,o){if(this.type===n)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),o||this.next(),!0},ot.expect=function(n){this.eat(n)||this.unexpected()},ot.unexpected=function(n){this.raise(n??this.start,\\"Unexpected token\\")};var Xt=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};ot.checkPatternErrors=function(n,o){if(n){n.trailingComma>-1&&this.raiseRecoverable(n.trailingComma,\\"Comma is not permitted after the rest element\\");var l=o?n.parenthesizedAssign:n.parenthesizedBind;l>-1&&this.raiseRecoverable(l,o?\\"Assigning to rvalue\\":\\"Parenthesized pattern\\")}},ot.checkExpressionErrors=function(n,o){if(!n)return!1;var l=n.shorthandAssign,f=n.doubleProto;if(!o)return l>=0||f>=0;l>=0&&this.raise(l,\\"Shorthand property assignments are valid only in destructuring patterns\\"),f>=0&&this.raiseRecoverable(f,\\"Redefinition of __proto__ property\\")},ot.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos55295&&f<56320)return!0;if(h(f,!0)){for(var m=l+1;T(f=this.input.charCodeAt(m),!0);)++m;if(f===92||f>55295&&f<56320)return!0;var E=this.input.slice(l,m);if(!y.test(E))return!0}return!1},te.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual(\\"async\\"))return!1;ae.lastIndex=this.pos;var n=ae.exec(this.input),o=this.pos+n[0].length,l;return!R.test(this.input.slice(this.pos,o))&&this.input.slice(o,o+8)===\\"function\\"&&(o+8===this.input.length||!(T(l=this.input.charCodeAt(o+8))||l>55295&&l<56320))},te.isUsingKeyword=function(n,o){if(this.options.ecmaVersion<17||!this.isContextual(n?\\"await\\":\\"using\\"))return!1;ae.lastIndex=this.pos;var l=ae.exec(this.input),f=this.pos+l[0].length;if(R.test(this.input.slice(this.pos,f)))return!1;if(n){var m=f+5,E;if(this.input.slice(f,m)!==\\"using\\"||m===this.input.length||T(E=this.input.charCodeAt(m))||E>55295&&E<56320)return!1;ae.lastIndex=m;var O=ae.exec(this.input);if(O&&R.test(this.input.slice(m,m+O[0].length)))return!1}if(o){var Y=f+2,Q;if(this.input.slice(f,Y)===\\"of\\"&&(Y===this.input.length||!T(Q=this.input.charCodeAt(Y))&&!(Q>55295&&Q<56320)))return!1}var Te=this.input.charCodeAt(f);return h(Te,!0)||Te===92},te.isAwaitUsing=function(n){return this.isUsingKeyword(!0,n)},te.isUsing=function(n){return this.isUsingKeyword(!1,n)},te.parseStatement=function(n,o,l){var f=this.type,m=this.startNode(),E;switch(this.isLet(n)&&(f=c._var,E=\\"let\\"),f){case c._break:case c._continue:return this.parseBreakContinueStatement(m,f.keyword);case c._debugger:return this.parseDebuggerStatement(m);case c._do:return this.parseDoStatement(m);case c._for:return this.parseForStatement(m);case c._function:return n&&(this.strict||n!==\\"if\\"&&n!==\\"label\\")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(m,!1,!n);case c._class:return n&&this.unexpected(),this.parseClass(m,!0);case c._if:return this.parseIfStatement(m);case c._return:return this.parseReturnStatement(m);case c._switch:return this.parseSwitchStatement(m);case c._throw:return this.parseThrowStatement(m);case c._try:return this.parseTryStatement(m);case c._const:case c._var:return E=E||this.value,n&&E!==\\"var\\"&&this.unexpected(),this.parseVarStatement(m,E);case c._while:return this.parseWhileStatement(m);case c._with:return this.parseWithStatement(m);case c.braceL:return this.parseBlock(!0,m);case c.semi:return this.parseEmptyStatement(m);case c._export:case c._import:if(this.options.ecmaVersion>10&&f===c._import){ae.lastIndex=this.pos;var O=ae.exec(this.input),Y=this.pos+O[0].length,Q=this.input.charCodeAt(Y);if(Q===40||Q===46)return this.parseExpressionStatement(m,this.parseExpression())}return this.options.allowImportExportEverywhere||(o||this.raise(this.start,\\"\'import\' and \'export\' may only appear at the top level\\"),this.inModule||this.raise(this.start,\\"\'import\' and \'export\' may appear only with \'sourceType: module\'\\")),f===c._import?this.parseImport(m):this.parseExport(m,l);default:if(this.isAsyncFunction())return n&&this.unexpected(),this.next(),this.parseFunctionStatement(m,!0,!n);var Te=this.isAwaitUsing(!1)?\\"await using\\":this.isUsing(!1)?\\"using\\":null;if(Te)return o&&this.options.sourceType===\\"script\\"&&this.raise(this.start,\\"Using declaration cannot appear in the top level when source type is `script`\\"),Te===\\"await using\\"&&(this.canAwait||this.raise(this.start,\\"Await using cannot appear outside of async function\\"),this.next()),this.next(),this.parseVar(m,!1,Te),this.semicolon(),this.finishNode(m,\\"VariableDeclaration\\");var xe=this.value,Ze=this.parseExpression();return f===c.name&&Ze.type===\\"Identifier\\"&&this.eat(c.colon)?this.parseLabeledStatement(m,xe,Ze,n):this.parseExpressionStatement(m,Ze)}},te.parseBreakContinueStatement=function(n,o){var l=o===\\"break\\";this.next(),this.eat(c.semi)||this.insertSemicolon()?n.label=null:this.type!==c.name?this.unexpected():(n.label=this.parseIdent(),this.semicolon());for(var f=0;f=6?this.eat(c.semi):this.semicolon(),this.finishNode(n,\\"DoWhileStatement\\")},te.parseForStatement=function(n){this.next();var o=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual(\\"await\\")?this.lastTokStart:-1;if(this.labels.push(Cn),this.enterScope(0),this.expect(c.parenL),this.type===c.semi)return o>-1&&this.unexpected(o),this.parseFor(n,null);var l=this.isLet();if(this.type===c._var||this.type===c._const||l){var f=this.startNode(),m=l?\\"let\\":this.value;return this.next(),this.parseVar(f,!0,m),this.finishNode(f,\\"VariableDeclaration\\"),this.parseForAfterInit(n,f,o)}var E=this.isContextual(\\"let\\"),O=!1,Y=this.isUsing(!0)?\\"using\\":this.isAwaitUsing(!0)?\\"await using\\":null;if(Y){var Q=this.startNode();return this.next(),Y===\\"await using\\"&&this.next(),this.parseVar(Q,!0,Y),this.finishNode(Q,\\"VariableDeclaration\\"),this.parseForAfterInit(n,Q,o)}var Te=this.containsEsc,xe=new Xt,Ze=this.start,Lt=o>-1?this.parseExprSubscripts(xe,\\"await\\"):this.parseExpression(!0,xe);return this.type===c._in||(O=this.options.ecmaVersion>=6&&this.isContextual(\\"of\\"))?(o>-1?(this.type===c._in&&this.unexpected(o),n.await=!0):O&&this.options.ecmaVersion>=8&&(Lt.start===Ze&&!Te&&Lt.type===\\"Identifier\\"&&Lt.name===\\"async\\"?this.unexpected():this.options.ecmaVersion>=9&&(n.await=!1)),E&&O&&this.raise(Lt.start,\\"The left-hand side of a for-of loop may not start with \'let\'.\\"),this.toAssignable(Lt,!1,xe),this.checkLValPattern(Lt),this.parseForIn(n,Lt)):(this.checkExpressionErrors(xe,!0),o>-1&&this.unexpected(o),this.parseFor(n,Lt))},te.parseForAfterInit=function(n,o,l){return(this.type===c._in||this.options.ecmaVersion>=6&&this.isContextual(\\"of\\"))&&o.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===c._in?l>-1&&this.unexpected(l):n.await=l>-1),this.parseForIn(n,o)):(l>-1&&this.unexpected(l),this.parseFor(n,o))},te.parseFunctionStatement=function(n,o,l){return this.next(),this.parseFunction(n,Mn|(l?0:xs),!1,o)},te.parseIfStatement=function(n){return this.next(),n.test=this.parseParenExpression(),n.consequent=this.parseStatement(\\"if\\"),n.alternate=this.eat(c._else)?this.parseStatement(\\"if\\"):null,this.finishNode(n,\\"IfStatement\\")},te.parseReturnStatement=function(n){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,\\"\'return\' outside of function\\"),this.next(),this.eat(c.semi)||this.insertSemicolon()?n.argument=null:(n.argument=this.parseExpression(),this.semicolon()),this.finishNode(n,\\"ReturnStatement\\")},te.parseSwitchStatement=function(n){this.next(),n.discriminant=this.parseParenExpression(),n.cases=[],this.expect(c.braceL),this.labels.push(Zn),this.enterScope(0);for(var o,l=!1;this.type!==c.braceR;)if(this.type===c._case||this.type===c._default){var f=this.type===c._case;o&&this.finishNode(o,\\"SwitchCase\\"),n.cases.push(o=this.startNode()),o.consequent=[],this.next(),f?o.test=this.parseExpression():(l&&this.raiseRecoverable(this.lastTokStart,\\"Multiple default clauses\\"),l=!0,o.test=null),this.expect(c.colon)}else o||this.unexpected(),o.consequent.push(this.parseStatement(null));return this.exitScope(),o&&this.finishNode(o,\\"SwitchCase\\"),this.next(),this.labels.pop(),this.finishNode(n,\\"SwitchStatement\\")},te.parseThrowStatement=function(n){return this.next(),R.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,\\"Illegal newline after throw\\"),n.argument=this.parseExpression(),this.semicolon(),this.finishNode(n,\\"ThrowStatement\\")};var _i=[];te.parseCatchClauseParam=function(){var n=this.parseBindingAtom(),o=n.type===\\"Identifier\\";return this.enterScope(o?Ie:0),this.checkLValPattern(n,o?bn:yt),this.expect(c.parenR),n},te.parseTryStatement=function(n){if(this.next(),n.block=this.parseBlock(),n.handler=null,this.type===c._catch){var o=this.startNode();this.next(),this.eat(c.parenL)?o.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),o.param=null,this.enterScope(0)),o.body=this.parseBlock(!1),this.exitScope(),n.handler=this.finishNode(o,\\"CatchClause\\")}return n.finalizer=this.eat(c._finally)?this.parseBlock():null,!n.handler&&!n.finalizer&&this.raise(n.start,\\"Missing catch or finally clause\\"),this.finishNode(n,\\"TryStatement\\")},te.parseVarStatement=function(n,o,l){return this.next(),this.parseVar(n,!1,o,l),this.semicolon(),this.finishNode(n,\\"VariableDeclaration\\")},te.parseWhileStatement=function(n){return this.next(),n.test=this.parseParenExpression(),this.labels.push(Cn),n.body=this.parseStatement(\\"while\\"),this.labels.pop(),this.finishNode(n,\\"WhileStatement\\")},te.parseWithStatement=function(n){return this.strict&&this.raise(this.start,\\"\'with\' in strict mode\\"),this.next(),n.object=this.parseParenExpression(),n.body=this.parseStatement(\\"with\\"),this.finishNode(n,\\"WithStatement\\")},te.parseEmptyStatement=function(n){return this.next(),this.finishNode(n,\\"EmptyStatement\\")},te.parseLabeledStatement=function(n,o,l,f){for(var m=0,E=this.labels;m=0;Q--){var Te=this.labels[Q];if(Te.statementStart===n.start)Te.statementStart=this.start,Te.kind=Y;else break}return this.labels.push({name:o,kind:Y,statementStart:this.start}),n.body=this.parseStatement(f?f.indexOf(\\"label\\")===-1?f+\\"label\\":f:\\"label\\"),this.labels.pop(),n.label=l,this.finishNode(n,\\"LabeledStatement\\")},te.parseExpressionStatement=function(n,o){return n.expression=o,this.semicolon(),this.finishNode(n,\\"ExpressionStatement\\")},te.parseBlock=function(n,o,l){for(n===void 0&&(n=!0),o===void 0&&(o=this.startNode()),o.body=[],this.expect(c.braceL),n&&this.enterScope(0);this.type!==c.braceR;){var f=this.parseStatement(null);o.body.push(f)}return l&&(this.strict=!1),this.next(),n&&this.exitScope(),this.finishNode(o,\\"BlockStatement\\")},te.parseFor=function(n,o){return n.init=o,this.expect(c.semi),n.test=this.type===c.semi?null:this.parseExpression(),this.expect(c.semi),n.update=this.type===c.parenR?null:this.parseExpression(),this.expect(c.parenR),n.body=this.parseStatement(\\"for\\"),this.exitScope(),this.labels.pop(),this.finishNode(n,\\"ForStatement\\")},te.parseForIn=function(n,o){var l=this.type===c._in;return this.next(),o.type===\\"VariableDeclaration\\"&&o.declarations[0].init!=null&&(!l||this.options.ecmaVersion<8||this.strict||o.kind!==\\"var\\"||o.declarations[0].id.type!==\\"Identifier\\")&&this.raise(o.start,(l?\\"for-in\\":\\"for-of\\")+\\" loop variable declaration may not have an initializer\\"),n.left=o,n.right=l?this.parseExpression():this.parseMaybeAssign(),this.expect(c.parenR),n.body=this.parseStatement(\\"for\\"),this.exitScope(),this.labels.pop(),this.finishNode(n,l?\\"ForInStatement\\":\\"ForOfStatement\\")},te.parseVar=function(n,o,l,f){for(n.declarations=[],n.kind=l;;){var m=this.startNode();if(this.parseVarId(m,l),this.eat(c.eq)?m.init=this.parseMaybeAssign(o):!f&&l===\\"const\\"&&!(this.type===c._in||this.options.ecmaVersion>=6&&this.isContextual(\\"of\\"))?this.unexpected():!f&&(l===\\"using\\"||l===\\"await using\\")&&this.options.ecmaVersion>=17&&this.type!==c._in&&!this.isContextual(\\"of\\")?this.raise(this.lastTokEnd,\\"Missing initializer in \\"+l+\\" declaration\\"):!f&&m.id.type!==\\"Identifier\\"&&!(o&&(this.type===c._in||this.isContextual(\\"of\\")))?this.raise(this.lastTokEnd,\\"Complex binding patterns require an initialization value\\"):m.init=null,n.declarations.push(this.finishNode(m,\\"VariableDeclarator\\")),!this.eat(c.comma))break}return n},te.parseVarId=function(n,o){n.id=o===\\"using\\"||o===\\"await using\\"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(n.id,o===\\"var\\"?bt:yt,!1)};var Mn=1,xs=2,Ds=4;te.parseFunction=function(n,o,l,f,m){this.initFunction(n),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!f)&&(this.type===c.star&&o&xs&&this.unexpected(),n.generator=this.eat(c.star)),this.options.ecmaVersion>=8&&(n.async=!!f),o&Mn&&(n.id=o&Ds&&this.type!==c.name?null:this.parseIdent(),n.id&&!(o&xs)&&this.checkLValSimple(n.id,this.strict||n.generator||n.async?this.treatFunctionsAsVar?bt:yt:vt));var E=this.yieldPos,O=this.awaitPos,Y=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ut(n.async,n.generator)),o&Mn||(n.id=this.type===c.name?this.parseIdent():null),this.parseFunctionParams(n),this.parseFunctionBody(n,l,!1,m),this.yieldPos=E,this.awaitPos=O,this.awaitIdentPos=Y,this.finishNode(n,o&Mn?\\"FunctionDeclaration\\":\\"FunctionExpression\\")},te.parseFunctionParams=function(n){this.expect(c.parenL),n.params=this.parseBindingList(c.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},te.parseClass=function(n,o){this.next();var l=this.strict;this.strict=!0,this.parseClassId(n,o),this.parseClassSuper(n);var f=this.enterClassBody(),m=this.startNode(),E=!1;for(m.body=[],this.expect(c.braceL);this.type!==c.braceR;){var O=this.parseClassElement(n.superClass!==null);O&&(m.body.push(O),O.type===\\"MethodDefinition\\"&&O.kind===\\"constructor\\"?(E&&this.raiseRecoverable(O.start,\\"Duplicate constructor in the same class\\"),E=!0):O.key&&O.key.type===\\"PrivateIdentifier\\"&&bi(f,O)&&this.raiseRecoverable(O.key.start,\\"Identifier \'#\\"+O.key.name+\\"\' has already been declared\\"))}return this.strict=l,this.next(),n.body=this.finishNode(m,\\"ClassBody\\"),this.exitClassBody(),this.finishNode(n,o?\\"ClassDeclaration\\":\\"ClassExpression\\")},te.parseClassElement=function(n){if(this.eat(c.semi))return null;var o=this.options.ecmaVersion,l=this.startNode(),f=\\"\\",m=!1,E=!1,O=\\"method\\",Y=!1;if(this.eatContextual(\\"static\\")){if(o>=13&&this.eat(c.braceL))return this.parseClassStaticBlock(l),l;this.isClassElementNameStart()||this.type===c.star?Y=!0:f=\\"static\\"}if(l.static=Y,!f&&o>=8&&this.eatContextual(\\"async\\")&&((this.isClassElementNameStart()||this.type===c.star)&&!this.canInsertSemicolon()?E=!0:f=\\"async\\"),!f&&(o>=9||!E)&&this.eat(c.star)&&(m=!0),!f&&!E&&!m){var Q=this.value;(this.eatContextual(\\"get\\")||this.eatContextual(\\"set\\"))&&(this.isClassElementNameStart()?O=Q:f=Q)}if(f?(l.computed=!1,l.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),l.key.name=f,this.finishNode(l.key,\\"Identifier\\")):this.parseClassElementName(l),o<13||this.type===c.parenL||O!==\\"method\\"||m||E){var Te=!l.static&&es(l,\\"constructor\\"),xe=Te&&n;Te&&O!==\\"method\\"&&this.raise(l.key.start,\\"Constructor can\'t have get/set modifier\\"),l.kind=Te?\\"constructor\\":O,this.parseClassMethod(l,m,E,xe)}else this.parseClassField(l);return l},te.isClassElementNameStart=function(){return this.type===c.name||this.type===c.privateId||this.type===c.num||this.type===c.string||this.type===c.bracketL||this.type.keyword},te.parseClassElementName=function(n){this.type===c.privateId?(this.value===\\"constructor\\"&&this.raise(this.start,\\"Classes can\'t have an element named \'#constructor\'\\"),n.computed=!1,n.key=this.parsePrivateIdent()):this.parsePropertyName(n)},te.parseClassMethod=function(n,o,l,f){var m=n.key;n.kind===\\"constructor\\"?(o&&this.raise(m.start,\\"Constructor can\'t be a generator\\"),l&&this.raise(m.start,\\"Constructor can\'t be an async method\\")):n.static&&es(n,\\"prototype\\")&&this.raise(m.start,\\"Classes may not have a static property named prototype\\");var E=n.value=this.parseMethod(o,l,f);return n.kind===\\"get\\"&&E.params.length!==0&&this.raiseRecoverable(E.start,\\"getter should have no params\\"),n.kind===\\"set\\"&&E.params.length!==1&&this.raiseRecoverable(E.start,\\"setter should have exactly one param\\"),n.kind===\\"set\\"&&E.params[0].type===\\"RestElement\\"&&this.raiseRecoverable(E.params[0].start,\\"Setter cannot use rest params\\"),this.finishNode(n,\\"MethodDefinition\\")},te.parseClassField=function(n){return es(n,\\"constructor\\")?this.raise(n.key.start,\\"Classes can\'t have a field named \'constructor\'\\"):n.static&&es(n,\\"prototype\\")&&this.raise(n.key.start,\\"Classes can\'t have a static field named \'prototype\'\\"),this.eat(c.eq)?(this.enterScope(We|Ee),n.value=this.parseMaybeAssign(),this.exitScope()):n.value=null,this.semicolon(),this.finishNode(n,\\"PropertyDefinition\\")},te.parseClassStaticBlock=function(n){n.body=[];var o=this.labels;for(this.labels=[],this.enterScope(Xe|Ee);this.type!==c.braceR;){var l=this.parseStatement(null);n.body.push(l)}return this.next(),this.exitScope(),this.labels=o,this.finishNode(n,\\"StaticBlock\\")},te.parseClassId=function(n,o){this.type===c.name?(n.id=this.parseIdent(),o&&this.checkLValSimple(n.id,yt,!1)):(o===!0&&this.unexpected(),n.id=null)},te.parseClassSuper=function(n){n.superClass=this.eat(c._extends)?this.parseExprSubscripts(null,!1):null},te.enterClassBody=function(){var n={declared:Object.create(null),used:[]};return this.privateNameStack.push(n),n.declared},te.exitClassBody=function(){var n=this.privateNameStack.pop(),o=n.declared,l=n.used;if(this.options.checkPrivateFields)for(var f=this.privateNameStack.length,m=f===0?null:this.privateNameStack[f-1],E=0;E=11&&(this.eatContextual(\\"as\\")?(n.exported=this.parseModuleExportName(),this.checkExport(o,n.exported,this.lastTokStart)):n.exported=null),this.expectContextual(\\"from\\"),this.type!==c.string&&this.unexpected(),n.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(n.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(n,\\"ExportAllDeclaration\\")},te.parseExport=function(n,o){if(this.next(),this.eat(c.star))return this.parseExportAllDeclaration(n,o);if(this.eat(c._default))return this.checkExport(o,\\"default\\",this.lastTokStart),n.declaration=this.parseExportDefaultDeclaration(),this.finishNode(n,\\"ExportDefaultDeclaration\\");if(this.shouldParseExportStatement())n.declaration=this.parseExportDeclaration(n),n.declaration.type===\\"VariableDeclaration\\"?this.checkVariableExport(o,n.declaration.declarations):this.checkExport(o,n.declaration.id,n.declaration.id.start),n.specifiers=[],n.source=null,this.options.ecmaVersion>=16&&(n.attributes=[]);else{if(n.declaration=null,n.specifiers=this.parseExportSpecifiers(o),this.eatContextual(\\"from\\"))this.type!==c.string&&this.unexpected(),n.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(n.attributes=this.parseWithClause());else{for(var l=0,f=n.specifiers;l=16&&(n.attributes=[])}this.semicolon()}return this.finishNode(n,\\"ExportNamedDeclaration\\")},te.parseExportDeclaration=function(n){return this.parseStatement(null)},te.parseExportDefaultDeclaration=function(){var n;if(this.type===c._function||(n=this.isAsyncFunction())){var o=this.startNode();return this.next(),n&&this.next(),this.parseFunction(o,Mn|Ds,!1,n)}else if(this.type===c._class){var l=this.startNode();return this.parseClass(l,\\"nullableID\\")}else{var f=this.parseMaybeAssign();return this.semicolon(),f}},te.checkExport=function(n,o,l){n&&(typeof o!=\\"string\\"&&(o=o.type===\\"Identifier\\"?o.name:o.value),mt(n,o)&&this.raiseRecoverable(l,\\"Duplicate export \'\\"+o+\\"\'\\"),n[o]=!0)},te.checkPatternExport=function(n,o){var l=o.type;if(l===\\"Identifier\\")this.checkExport(n,o,o.start);else if(l===\\"ObjectPattern\\")for(var f=0,m=o.properties;f=16&&(n.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(n,\\"ImportDeclaration\\")},te.parseImportSpecifier=function(){var n=this.startNode();return n.imported=this.parseModuleExportName(),this.eatContextual(\\"as\\")?n.local=this.parseIdent():(this.checkUnreserved(n.imported),n.local=n.imported),this.checkLValSimple(n.local,yt),this.finishNode(n,\\"ImportSpecifier\\")},te.parseImportDefaultSpecifier=function(){var n=this.startNode();return n.local=this.parseIdent(),this.checkLValSimple(n.local,yt),this.finishNode(n,\\"ImportDefaultSpecifier\\")},te.parseImportNamespaceSpecifier=function(){var n=this.startNode();return this.next(),this.expectContextual(\\"as\\"),n.local=this.parseIdent(),this.checkLValSimple(n.local,yt),this.finishNode(n,\\"ImportNamespaceSpecifier\\")},te.parseImportSpecifiers=function(){var n=[],o=!0;if(this.type===c.name&&(n.push(this.parseImportDefaultSpecifier()),!this.eat(c.comma)))return n;if(this.type===c.star)return n.push(this.parseImportNamespaceSpecifier()),n;for(this.expect(c.braceL);!this.eat(c.braceR);){if(o)o=!1;else if(this.expect(c.comma),this.afterTrailingComma(c.braceR))break;n.push(this.parseImportSpecifier())}return n},te.parseWithClause=function(){var n=[];if(!this.eat(c._with))return n;this.expect(c.braceL);for(var o={},l=!0;!this.eat(c.braceR);){if(l)l=!1;else if(this.expect(c.comma),this.afterTrailingComma(c.braceR))break;var f=this.parseImportAttribute(),m=f.key.type===\\"Identifier\\"?f.key.name:f.key.value;mt(o,m)&&this.raiseRecoverable(f.key.start,\\"Duplicate attribute key \'\\"+m+\\"\'\\"),o[m]=!0,n.push(f)}return n},te.parseImportAttribute=function(){var n=this.startNode();return n.key=this.type===c.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!==\\"never\\"),this.expect(c.colon),this.type!==c.string&&this.unexpected(),n.value=this.parseExprAtom(),this.finishNode(n,\\"ImportAttribute\\")},te.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===c.string){var n=this.parseLiteral(this.value);return _t.test(n.value)&&this.raise(n.start,\\"An export name cannot include a lone surrogate.\\"),n}return this.parseIdent(!0)},te.adaptDirectivePrologue=function(n){for(var o=0;o=5&&n.type===\\"ExpressionStatement\\"&&n.expression.type===\\"Literal\\"&&typeof n.expression.value==\\"string\\"&&(this.input[n.start]===\'\\"\'||this.input[n.start]===\\"\'\\")};var Nt=Ge.prototype;Nt.toAssignable=function(n,o,l){if(this.options.ecmaVersion>=6&&n)switch(n.type){case\\"Identifier\\":this.inAsync&&n.name===\\"await\\"&&this.raise(n.start,\\"Cannot use \'await\' as identifier inside an async function\\");break;case\\"ObjectPattern\\":case\\"ArrayPattern\\":case\\"AssignmentPattern\\":case\\"RestElement\\":break;case\\"ObjectExpression\\":n.type=\\"ObjectPattern\\",l&&this.checkPatternErrors(l,!0);for(var f=0,m=n.properties;f=6)switch(this.type){case c.bracketL:var n=this.startNode();return this.next(),n.elements=this.parseBindingList(c.bracketR,!0,!0),this.finishNode(n,\\"ArrayPattern\\");case c.braceL:return this.parseObj(!0)}return this.parseIdent()},Nt.parseBindingList=function(n,o,l,f){for(var m=[],E=!0;!this.eat(n);)if(E?E=!1:this.expect(c.comma),o&&this.type===c.comma)m.push(null);else{if(l&&this.afterTrailingComma(n))break;if(this.type===c.ellipsis){var O=this.parseRestBinding();this.parseBindingListItem(O),m.push(O),this.type===c.comma&&this.raiseRecoverable(this.start,\\"Comma is not permitted after the rest element\\"),this.expect(n);break}else m.push(this.parseAssignableListItem(f))}return m},Nt.parseAssignableListItem=function(n){var o=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(o),o},Nt.parseBindingListItem=function(n){return n},Nt.parseMaybeDefault=function(n,o,l){if(l=l||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(c.eq))return l;var f=this.startNodeAt(n,o);return f.left=l,f.right=this.parseMaybeAssign(),this.finishNode(f,\\"AssignmentPattern\\")},Nt.checkLValSimple=function(n,o,l){o===void 0&&(o=pt);var f=o!==pt;switch(n.type){case\\"Identifier\\":this.strict&&this.reservedWordsStrictBind.test(n.name)&&this.raiseRecoverable(n.start,(f?\\"Binding \\":\\"Assigning to \\")+n.name+\\" in strict mode\\"),f&&(o===yt&&n.name===\\"let\\"&&this.raiseRecoverable(n.start,\\"let is disallowed as a lexically bound name\\"),l&&(mt(l,n.name)&&this.raiseRecoverable(n.start,\\"Argument name clash\\"),l[n.name]=!0),o!==Dn&&this.declareName(n.name,o,n.start));break;case\\"ChainExpression\\":this.raiseRecoverable(n.start,\\"Optional chaining cannot appear in left-hand side\\");break;case\\"MemberExpression\\":f&&this.raiseRecoverable(n.start,\\"Binding member expression\\");break;case\\"ParenthesizedExpression\\":return f&&this.raiseRecoverable(n.start,\\"Binding parenthesized expression\\"),this.checkLValSimple(n.expression,o,l);default:this.raise(n.start,(f?\\"Binding\\":\\"Assigning to\\")+\\" rvalue\\")}},Nt.checkLValPattern=function(n,o,l){switch(o===void 0&&(o=pt),n.type){case\\"ObjectPattern\\":for(var f=0,m=n.properties;f=1;n--){var o=this.context[n];if(o.token===\\"function\\")return o.generator}return!1},wn.updateContext=function(n){var o,l=this.type;l.keyword&&n===c.dot?this.exprAllowed=!1:(o=l.updateContext)?o.call(this,n):this.exprAllowed=l.beforeExpr},wn.overrideContext=function(n){this.curContext()!==n&&(this.context[this.context.length-1]=n)},c.parenR.updateContext=c.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var n=this.context.pop();n===Ue.b_stat&&this.curContext().token===\\"function\\"&&(n=this.context.pop()),this.exprAllowed=!n.isExpr},c.braceL.updateContext=function(n){this.context.push(this.braceIsBlock(n)?Ue.b_stat:Ue.b_expr),this.exprAllowed=!0},c.dollarBraceL.updateContext=function(){this.context.push(Ue.b_tmpl),this.exprAllowed=!0},c.parenL.updateContext=function(n){var o=n===c._if||n===c._for||n===c._with||n===c._while;this.context.push(o?Ue.p_stat:Ue.p_expr),this.exprAllowed=!0},c.incDec.updateContext=function(){},c._function.updateContext=c._class.updateContext=function(n){n.beforeExpr&&n!==c._else&&!(n===c.semi&&this.curContext()!==Ue.p_stat)&&!(n===c._return&&R.test(this.input.slice(this.lastTokEnd,this.start)))&&!((n===c.colon||n===c.braceL)&&this.curContext()===Ue.b_stat)?this.context.push(Ue.f_expr):this.context.push(Ue.f_stat),this.exprAllowed=!1},c.colon.updateContext=function(){this.curContext().token===\\"function\\"&&this.context.pop(),this.exprAllowed=!0},c.backQuote.updateContext=function(){this.curContext()===Ue.q_tmpl?this.context.pop():this.context.push(Ue.q_tmpl),this.exprAllowed=!1},c.star.updateContext=function(n){if(n===c._function){var o=this.context.length-1;this.context[o]===Ue.f_expr?this.context[o]=Ue.f_expr_gen:this.context[o]=Ue.f_gen}this.exprAllowed=!0},c.name.updateContext=function(n){var o=!1;this.options.ecmaVersion>=6&&n!==c.dot&&(this.value===\\"of\\"&&!this.exprAllowed||this.value===\\"yield\\"&&this.inGeneratorContext())&&(o=!0),this.exprAllowed=o};var de=Ge.prototype;de.checkPropClash=function(n,o,l){if(!(this.options.ecmaVersion>=9&&n.type===\\"SpreadElement\\")&&!(this.options.ecmaVersion>=6&&(n.computed||n.method||n.shorthand))){var f=n.key,m;switch(f.type){case\\"Identifier\\":m=f.name;break;case\\"Literal\\":m=String(f.value);break;default:return}var E=n.kind;if(this.options.ecmaVersion>=6){m===\\"__proto__\\"&&E===\\"init\\"&&(o.proto&&(l?l.doubleProto<0&&(l.doubleProto=f.start):this.raiseRecoverable(f.start,\\"Redefinition of __proto__ property\\")),o.proto=!0);return}m=\\"$\\"+m;var O=o[m];if(O){var Y;E===\\"init\\"?Y=this.strict&&O.init||O.get||O.set:Y=O.init||O[E],Y&&this.raiseRecoverable(f.start,\\"Redefinition of property\\")}else O=o[m]={init:!1,get:!1,set:!1};O[E]=!0}},de.parseExpression=function(n,o){var l=this.start,f=this.startLoc,m=this.parseMaybeAssign(n,o);if(this.type===c.comma){var E=this.startNodeAt(l,f);for(E.expressions=[m];this.eat(c.comma);)E.expressions.push(this.parseMaybeAssign(n,o));return this.finishNode(E,\\"SequenceExpression\\")}return m},de.parseMaybeAssign=function(n,o,l){if(this.isContextual(\\"yield\\")){if(this.inGenerator)return this.parseYield(n);this.exprAllowed=!1}var f=!1,m=-1,E=-1,O=-1;o?(m=o.parenthesizedAssign,E=o.trailingComma,O=o.doubleProto,o.parenthesizedAssign=o.trailingComma=-1):(o=new Xt,f=!0);var Y=this.start,Q=this.startLoc;(this.type===c.parenL||this.type===c.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=n===\\"await\\");var Te=this.parseMaybeConditional(n,o);if(l&&(Te=l.call(this,Te,Y,Q)),this.type.isAssign){var xe=this.startNodeAt(Y,Q);return xe.operator=this.value,this.type===c.eq&&(Te=this.toAssignable(Te,!1,o)),f||(o.parenthesizedAssign=o.trailingComma=o.doubleProto=-1),o.shorthandAssign>=Te.start&&(o.shorthandAssign=-1),this.type===c.eq?this.checkLValPattern(Te):this.checkLValSimple(Te),xe.left=Te,this.next(),xe.right=this.parseMaybeAssign(n),O>-1&&(o.doubleProto=O),this.finishNode(xe,\\"AssignmentExpression\\")}else f&&this.checkExpressionErrors(o,!0);return m>-1&&(o.parenthesizedAssign=m),E>-1&&(o.trailingComma=E),Te},de.parseMaybeConditional=function(n,o){var l=this.start,f=this.startLoc,m=this.parseExprOps(n,o);if(this.checkExpressionErrors(o))return m;if(this.eat(c.question)){var E=this.startNodeAt(l,f);return E.test=m,E.consequent=this.parseMaybeAssign(),this.expect(c.colon),E.alternate=this.parseMaybeAssign(n),this.finishNode(E,\\"ConditionalExpression\\")}return m},de.parseExprOps=function(n,o){var l=this.start,f=this.startLoc,m=this.parseMaybeUnary(o,!1,!1,n);return this.checkExpressionErrors(o)||m.start===l&&m.type===\\"ArrowFunctionExpression\\"?m:this.parseExprOp(m,l,f,-1,n)},de.parseExprOp=function(n,o,l,f,m){var E=this.type.binop;if(E!=null&&(!m||this.type!==c._in)&&E>f){var O=this.type===c.logicalOR||this.type===c.logicalAND,Y=this.type===c.coalesce;Y&&(E=c.logicalAND.binop);var Q=this.value;this.next();var Te=this.start,xe=this.startLoc,Ze=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,m),Te,xe,E,m),Lt=this.buildBinary(o,l,n,Ze,Q,O||Y);return(O&&this.type===c.coalesce||Y&&(this.type===c.logicalOR||this.type===c.logicalAND))&&this.raiseRecoverable(this.start,\\"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses\\"),this.parseExprOp(Lt,o,l,f,m)}return n},de.buildBinary=function(n,o,l,f,m,E){f.type===\\"PrivateIdentifier\\"&&this.raise(f.start,\\"Private identifier can only be left side of binary expression\\");var O=this.startNodeAt(n,o);return O.left=l,O.operator=m,O.right=f,this.finishNode(O,E?\\"LogicalExpression\\":\\"BinaryExpression\\")},de.parseMaybeUnary=function(n,o,l,f){var m=this.start,E=this.startLoc,O;if(this.isContextual(\\"await\\")&&this.canAwait)O=this.parseAwait(f),o=!0;else if(this.type.prefix){var Y=this.startNode(),Q=this.type===c.incDec;Y.operator=this.value,Y.prefix=!0,this.next(),Y.argument=this.parseMaybeUnary(null,!0,Q,f),this.checkExpressionErrors(n,!0),Q?this.checkLValSimple(Y.argument):this.strict&&Y.operator===\\"delete\\"&&Ms(Y.argument)?this.raiseRecoverable(Y.start,\\"Deleting local variable in strict mode\\"):Y.operator===\\"delete\\"&&gs(Y.argument)?this.raiseRecoverable(Y.start,\\"Private fields can not be deleted\\"):o=!0,O=this.finishNode(Y,Q?\\"UpdateExpression\\":\\"UnaryExpression\\")}else if(!o&&this.type===c.privateId)(f||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),O=this.parsePrivateIdent(),this.type!==c._in&&this.unexpected();else{if(O=this.parseExprSubscripts(n,f),this.checkExpressionErrors(n))return O;for(;this.type.postfix&&!this.canInsertSemicolon();){var Te=this.startNodeAt(m,E);Te.operator=this.value,Te.prefix=!1,Te.argument=O,this.checkLValSimple(O),this.next(),O=this.finishNode(Te,\\"UpdateExpression\\")}}if(!l&&this.eat(c.starstar))if(o)this.unexpected(this.lastTokStart);else return this.buildBinary(m,E,O,this.parseMaybeUnary(null,!1,!1,f),\\"**\\",!1);else return O};function Ms(n){return n.type===\\"Identifier\\"||n.type===\\"ParenthesizedExpression\\"&&Ms(n.expression)}function gs(n){return n.type===\\"MemberExpression\\"&&n.property.type===\\"PrivateIdentifier\\"||n.type===\\"ChainExpression\\"&&gs(n.expression)||n.type===\\"ParenthesizedExpression\\"&&gs(n.expression)}de.parseExprSubscripts=function(n,o){var l=this.start,f=this.startLoc,m=this.parseExprAtom(n,o);if(m.type===\\"ArrowFunctionExpression\\"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==\\")\\")return m;var E=this.parseSubscripts(m,l,f,!1,o);return n&&E.type===\\"MemberExpression\\"&&(n.parenthesizedAssign>=E.start&&(n.parenthesizedAssign=-1),n.parenthesizedBind>=E.start&&(n.parenthesizedBind=-1),n.trailingComma>=E.start&&(n.trailingComma=-1)),E},de.parseSubscripts=function(n,o,l,f,m){for(var E=this.options.ecmaVersion>=8&&n.type===\\"Identifier\\"&&n.name===\\"async\\"&&this.lastTokEnd===n.end&&!this.canInsertSemicolon()&&n.end-n.start===5&&this.potentialArrowAt===n.start,O=!1;;){var Y=this.parseSubscript(n,o,l,f,E,O,m);if(Y.optional&&(O=!0),Y===n||Y.type===\\"ArrowFunctionExpression\\"){if(O){var Q=this.startNodeAt(o,l);Q.expression=Y,Y=this.finishNode(Q,\\"ChainExpression\\")}return Y}n=Y}},de.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(c.arrow)},de.parseSubscriptAsyncArrow=function(n,o,l,f){return this.parseArrowExpression(this.startNodeAt(n,o),l,!0,f)},de.parseSubscript=function(n,o,l,f,m,E,O){var Y=this.options.ecmaVersion>=11,Q=Y&&this.eat(c.questionDot);f&&Q&&this.raise(this.lastTokStart,\\"Optional chaining cannot appear in the callee of new expressions\\");var Te=this.eat(c.bracketL);if(Te||Q&&this.type!==c.parenL&&this.type!==c.backQuote||this.eat(c.dot)){var xe=this.startNodeAt(o,l);xe.object=n,Te?(xe.property=this.parseExpression(),this.expect(c.bracketR)):this.type===c.privateId&&n.type!==\\"Super\\"?xe.property=this.parsePrivateIdent():xe.property=this.parseIdent(this.options.allowReserved!==\\"never\\"),xe.computed=!!Te,Y&&(xe.optional=Q),n=this.finishNode(xe,\\"MemberExpression\\")}else if(!f&&this.eat(c.parenL)){var Ze=new Xt,Lt=this.yieldPos,Ri=this.awaitPos,Ys=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var gr=this.parseExprList(c.parenR,this.options.ecmaVersion>=8,!1,Ze);if(m&&!Q&&this.shouldParseAsyncArrow())return this.checkPatternErrors(Ze,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,\\"Cannot use \'await\' as identifier inside an async function\\"),this.yieldPos=Lt,this.awaitPos=Ri,this.awaitIdentPos=Ys,this.parseSubscriptAsyncArrow(o,l,gr,O);this.checkExpressionErrors(Ze,!0),this.yieldPos=Lt||this.yieldPos,this.awaitPos=Ri||this.awaitPos,this.awaitIdentPos=Ys||this.awaitIdentPos;var Js=this.startNodeAt(o,l);Js.callee=n,Js.arguments=gr,Y&&(Js.optional=Q),n=this.finishNode(Js,\\"CallExpression\\")}else if(this.type===c.backQuote){(Q||E)&&this.raise(this.start,\\"Optional chaining cannot appear in the tag of tagged template expressions\\");var Qs=this.startNodeAt(o,l);Qs.tag=n,Qs.quasi=this.parseTemplate({isTagged:!0}),n=this.finishNode(Qs,\\"TaggedTemplateExpression\\")}return n},de.parseExprAtom=function(n,o,l){this.type===c.slash&&this.readRegexp();var f,m=this.potentialArrowAt===this.start;switch(this.type){case c._super:return this.allowSuper||this.raise(this.start,\\"\'super\' keyword outside a method\\"),f=this.startNode(),this.next(),this.type===c.parenL&&!this.allowDirectSuper&&this.raise(f.start,\\"super() call outside constructor of a subclass\\"),this.type!==c.dot&&this.type!==c.bracketL&&this.type!==c.parenL&&this.unexpected(),this.finishNode(f,\\"Super\\");case c._this:return f=this.startNode(),this.next(),this.finishNode(f,\\"ThisExpression\\");case c.name:var E=this.start,O=this.startLoc,Y=this.containsEsc,Q=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!Y&&Q.name===\\"async\\"&&!this.canInsertSemicolon()&&this.eat(c._function))return this.overrideContext(Ue.f_expr),this.parseFunction(this.startNodeAt(E,O),0,!1,!0,o);if(m&&!this.canInsertSemicolon()){if(this.eat(c.arrow))return this.parseArrowExpression(this.startNodeAt(E,O),[Q],!1,o);if(this.options.ecmaVersion>=8&&Q.name===\\"async\\"&&this.type===c.name&&!Y&&(!this.potentialArrowInForAwait||this.value!==\\"of\\"||this.containsEsc))return Q=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(c.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(E,O),[Q],!0,o)}return Q;case c.regexp:var Te=this.value;return f=this.parseLiteral(Te.value),f.regex={pattern:Te.pattern,flags:Te.flags},f;case c.num:case c.string:return this.parseLiteral(this.value);case c._null:case c._true:case c._false:return f=this.startNode(),f.value=this.type===c._null?null:this.type===c._true,f.raw=this.type.keyword,this.next(),this.finishNode(f,\\"Literal\\");case c.parenL:var xe=this.start,Ze=this.parseParenAndDistinguishExpression(m,o);return n&&(n.parenthesizedAssign<0&&!this.isSimpleAssignTarget(Ze)&&(n.parenthesizedAssign=xe),n.parenthesizedBind<0&&(n.parenthesizedBind=xe)),Ze;case c.bracketL:return f=this.startNode(),this.next(),f.elements=this.parseExprList(c.bracketR,!0,!0,n),this.finishNode(f,\\"ArrayExpression\\");case c.braceL:return this.overrideContext(Ue.b_expr),this.parseObj(!1,n);case c._function:return f=this.startNode(),this.next(),this.parseFunction(f,0);case c._class:return this.parseClass(this.startNode(),!1);case c._new:return this.parseNew();case c.backQuote:return this.parseTemplate();case c._import:return this.options.ecmaVersion>=11?this.parseExprImport(l):this.unexpected();default:return this.parseExprAtomDefault()}},de.parseExprAtomDefault=function(){this.unexpected()},de.parseExprImport=function(n){var o=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,\\"Escape sequence in keyword import\\"),this.next(),this.type===c.parenL&&!n)return this.parseDynamicImport(o);if(this.type===c.dot){var l=this.startNodeAt(o.start,o.loc&&o.loc.start);return l.name=\\"import\\",o.meta=this.finishNode(l,\\"Identifier\\"),this.parseImportMeta(o)}else this.unexpected()},de.parseDynamicImport=function(n){if(this.next(),n.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(c.parenR)?n.options=null:(this.expect(c.comma),this.afterTrailingComma(c.parenR)?n.options=null:(n.options=this.parseMaybeAssign(),this.eat(c.parenR)||(this.expect(c.comma),this.afterTrailingComma(c.parenR)||this.unexpected())));else if(!this.eat(c.parenR)){var o=this.start;this.eat(c.comma)&&this.eat(c.parenR)?this.raiseRecoverable(o,\\"Trailing comma is not allowed in import()\\"):this.unexpected(o)}return this.finishNode(n,\\"ImportExpression\\")},de.parseImportMeta=function(n){this.next();var o=this.containsEsc;return n.property=this.parseIdent(!0),n.property.name!==\\"meta\\"&&this.raiseRecoverable(n.property.start,\\"The only valid meta property for import is \'import.meta\'\\"),o&&this.raiseRecoverable(n.start,\\"\'import.meta\' must not contain escaped characters\\"),this.options.sourceType!==\\"module\\"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(n.start,\\"Cannot use \'import.meta\' outside a module\\"),this.finishNode(n,\\"MetaProperty\\")},de.parseLiteral=function(n){var o=this.startNode();return o.value=n,o.raw=this.input.slice(this.start,this.end),o.raw.charCodeAt(o.raw.length-1)===110&&(o.bigint=o.value!=null?o.value.toString():o.raw.slice(0,-1).replace(/_/g,\\"\\")),this.next(),this.finishNode(o,\\"Literal\\")},de.parseParenExpression=function(){this.expect(c.parenL);var n=this.parseExpression();return this.expect(c.parenR),n},de.shouldParseArrow=function(n){return!this.canInsertSemicolon()},de.parseParenAndDistinguishExpression=function(n,o){var l=this.start,f=this.startLoc,m,E=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var O=this.start,Y=this.startLoc,Q=[],Te=!0,xe=!1,Ze=new Xt,Lt=this.yieldPos,Ri=this.awaitPos,Ys;for(this.yieldPos=0,this.awaitPos=0;this.type!==c.parenR;)if(Te?Te=!1:this.expect(c.comma),E&&this.afterTrailingComma(c.parenR,!0)){xe=!0;break}else if(this.type===c.ellipsis){Ys=this.start,Q.push(this.parseParenItem(this.parseRestBinding())),this.type===c.comma&&this.raiseRecoverable(this.start,\\"Comma is not permitted after the rest element\\");break}else Q.push(this.parseMaybeAssign(!1,Ze,this.parseParenItem));var gr=this.lastTokEnd,Js=this.lastTokEndLoc;if(this.expect(c.parenR),n&&this.shouldParseArrow(Q)&&this.eat(c.arrow))return this.checkPatternErrors(Ze,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=Lt,this.awaitPos=Ri,this.parseParenArrowList(l,f,Q,o);(!Q.length||xe)&&this.unexpected(this.lastTokStart),Ys&&this.unexpected(Ys),this.checkExpressionErrors(Ze,!0),this.yieldPos=Lt||this.yieldPos,this.awaitPos=Ri||this.awaitPos,Q.length>1?(m=this.startNodeAt(O,Y),m.expressions=Q,this.finishNodeAt(m,\\"SequenceExpression\\",gr,Js)):m=Q[0]}else m=this.parseParenExpression();if(this.options.preserveParens){var Qs=this.startNodeAt(l,f);return Qs.expression=m,this.finishNode(Qs,\\"ParenthesizedExpression\\")}else return m},de.parseParenItem=function(n){return n},de.parseParenArrowList=function(n,o,l,f){return this.parseArrowExpression(this.startNodeAt(n,o),l,!1,f)};var Ci=[];de.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,\\"Escape sequence in keyword new\\");var n=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===c.dot){var o=this.startNodeAt(n.start,n.loc&&n.loc.start);o.name=\\"new\\",n.meta=this.finishNode(o,\\"Identifier\\"),this.next();var l=this.containsEsc;return n.property=this.parseIdent(!0),n.property.name!==\\"target\\"&&this.raiseRecoverable(n.property.start,\\"The only valid meta property for new is \'new.target\'\\"),l&&this.raiseRecoverable(n.start,\\"\'new.target\' must not contain escaped characters\\"),this.allowNewDotTarget||this.raiseRecoverable(n.start,\\"\'new.target\' can only be used in functions and class static block\\"),this.finishNode(n,\\"MetaProperty\\")}var f=this.start,m=this.startLoc;return n.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),f,m,!0,!1),this.eat(c.parenL)?n.arguments=this.parseExprList(c.parenR,this.options.ecmaVersion>=8,!1):n.arguments=Ci,this.finishNode(n,\\"NewExpression\\")},de.parseTemplateElement=function(n){var o=n.isTagged,l=this.startNode();return this.type===c.invalidTemplate?(o||this.raiseRecoverable(this.start,\\"Bad escape sequence in untagged template literal\\"),l.value={raw:this.value.replace(/\\\\r\\\\n?/g,`\\n`),cooked:null}):l.value={raw:this.input.slice(this.start,this.end).replace(/\\\\r\\\\n?/g,`\\n`),cooked:this.value},this.next(),l.tail=this.type===c.backQuote,this.finishNode(l,\\"TemplateElement\\")},de.parseTemplate=function(n){n===void 0&&(n={});var o=n.isTagged;o===void 0&&(o=!1);var l=this.startNode();this.next(),l.expressions=[];var f=this.parseTemplateElement({isTagged:o});for(l.quasis=[f];!f.tail;)this.type===c.eof&&this.raise(this.pos,\\"Unterminated template literal\\"),this.expect(c.dollarBraceL),l.expressions.push(this.parseExpression()),this.expect(c.braceR),l.quasis.push(f=this.parseTemplateElement({isTagged:o}));return this.next(),this.finishNode(l,\\"TemplateLiteral\\")},de.isAsyncProp=function(n){return!n.computed&&n.key.type===\\"Identifier\\"&&n.key.name===\\"async\\"&&(this.type===c.name||this.type===c.num||this.type===c.string||this.type===c.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===c.star)&&!R.test(this.input.slice(this.lastTokEnd,this.start))},de.parseObj=function(n,o){var l=this.startNode(),f=!0,m={};for(l.properties=[],this.next();!this.eat(c.braceR);){if(f)f=!1;else if(this.expect(c.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(c.braceR))break;var E=this.parseProperty(n,o);n||this.checkPropClash(E,m,o),l.properties.push(E)}return this.finishNode(l,n?\\"ObjectPattern\\":\\"ObjectExpression\\")},de.parseProperty=function(n,o){var l=this.startNode(),f,m,E,O;if(this.options.ecmaVersion>=9&&this.eat(c.ellipsis))return n?(l.argument=this.parseIdent(!1),this.type===c.comma&&this.raiseRecoverable(this.start,\\"Comma is not permitted after the rest element\\"),this.finishNode(l,\\"RestElement\\")):(l.argument=this.parseMaybeAssign(!1,o),this.type===c.comma&&o&&o.trailingComma<0&&(o.trailingComma=this.start),this.finishNode(l,\\"SpreadElement\\"));this.options.ecmaVersion>=6&&(l.method=!1,l.shorthand=!1,(n||o)&&(E=this.start,O=this.startLoc),n||(f=this.eat(c.star)));var Y=this.containsEsc;return this.parsePropertyName(l),!n&&!Y&&this.options.ecmaVersion>=8&&!f&&this.isAsyncProp(l)?(m=!0,f=this.options.ecmaVersion>=9&&this.eat(c.star),this.parsePropertyName(l)):m=!1,this.parsePropertyValue(l,n,f,m,E,O,o,Y),this.finishNode(l,\\"Property\\")},de.parseGetterSetter=function(n){var o=n.key.name;this.parsePropertyName(n),n.value=this.parseMethod(!1),n.kind=o;var l=n.kind===\\"get\\"?0:1;if(n.value.params.length!==l){var f=n.value.start;n.kind===\\"get\\"?this.raiseRecoverable(f,\\"getter should have no params\\"):this.raiseRecoverable(f,\\"setter should have exactly one param\\")}else n.kind===\\"set\\"&&n.value.params[0].type===\\"RestElement\\"&&this.raiseRecoverable(n.value.params[0].start,\\"Setter cannot use rest params\\")},de.parsePropertyValue=function(n,o,l,f,m,E,O,Y){(l||f)&&this.type===c.colon&&this.unexpected(),this.eat(c.colon)?(n.value=o?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,O),n.kind=\\"init\\"):this.options.ecmaVersion>=6&&this.type===c.parenL?(o&&this.unexpected(),n.method=!0,n.value=this.parseMethod(l,f),n.kind=\\"init\\"):!o&&!Y&&this.options.ecmaVersion>=5&&!n.computed&&n.key.type===\\"Identifier\\"&&(n.key.name===\\"get\\"||n.key.name===\\"set\\")&&this.type!==c.comma&&this.type!==c.braceR&&this.type!==c.eq?((l||f)&&this.unexpected(),this.parseGetterSetter(n)):this.options.ecmaVersion>=6&&!n.computed&&n.key.type===\\"Identifier\\"?((l||f)&&this.unexpected(),this.checkUnreserved(n.key),n.key.name===\\"await\\"&&!this.awaitIdentPos&&(this.awaitIdentPos=m),o?n.value=this.parseMaybeDefault(m,E,this.copyNode(n.key)):this.type===c.eq&&O?(O.shorthandAssign<0&&(O.shorthandAssign=this.start),n.value=this.parseMaybeDefault(m,E,this.copyNode(n.key))):n.value=this.copyNode(n.key),n.kind=\\"init\\",n.shorthand=!0):this.unexpected()},de.parsePropertyName=function(n){if(this.options.ecmaVersion>=6){if(this.eat(c.bracketL))return n.computed=!0,n.key=this.parseMaybeAssign(),this.expect(c.bracketR),n.key;n.computed=!1}return n.key=this.type===c.num||this.type===c.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!==\\"never\\")},de.initFunction=function(n){n.id=null,this.options.ecmaVersion>=6&&(n.generator=n.expression=!1),this.options.ecmaVersion>=8&&(n.async=!1)},de.parseMethod=function(n,o,l){var f=this.startNode(),m=this.yieldPos,E=this.awaitPos,O=this.awaitIdentPos;return this.initFunction(f),this.options.ecmaVersion>=6&&(f.generator=n),this.options.ecmaVersion>=8&&(f.async=!!o),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ut(o,f.generator)|Ee|(l?Le:0)),this.expect(c.parenL),f.params=this.parseBindingList(c.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(f,!1,!0,!1),this.yieldPos=m,this.awaitPos=E,this.awaitIdentPos=O,this.finishNode(f,\\"FunctionExpression\\")},de.parseArrowExpression=function(n,o,l,f){var m=this.yieldPos,E=this.awaitPos,O=this.awaitIdentPos;return this.enterScope(ut(l,!1)|he),this.initFunction(n),this.options.ecmaVersion>=8&&(n.async=!!l),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,n.params=this.toAssignableList(o,!0),this.parseFunctionBody(n,!0,!1,f),this.yieldPos=m,this.awaitPos=E,this.awaitIdentPos=O,this.finishNode(n,\\"ArrowFunctionExpression\\")},de.parseFunctionBody=function(n,o,l,f){var m=o&&this.type!==c.braceL,E=this.strict,O=!1;if(m)n.body=this.parseMaybeAssign(f),n.expression=!0,this.checkParams(n,!1);else{var Y=this.options.ecmaVersion>=7&&!this.isSimpleParamList(n.params);(!E||Y)&&(O=this.strictDirective(this.end),O&&Y&&this.raiseRecoverable(n.start,\\"Illegal \'use strict\' directive in function with non-simple parameter list\\"));var Q=this.labels;this.labels=[],O&&(this.strict=!0),this.checkParams(n,!E&&!O&&!o&&!l&&this.isSimpleParamList(n.params)),this.strict&&n.id&&this.checkLValSimple(n.id,Dn),n.body=this.parseBlock(!1,void 0,O&&!E),n.expression=!1,this.adaptDirectivePrologue(n.body.body),this.labels=Q}this.exitScope()},de.isSimpleParamList=function(n){for(var o=0,l=n;o-1||m.functions.indexOf(n)>-1||m.var.indexOf(n)>-1,m.lexical.push(n),this.inModule&&m.flags&G&&delete this.undefinedExports[n]}else if(o===bn){var E=this.currentScope();E.lexical.push(n)}else if(o===vt){var O=this.currentScope();this.treatFunctionsAsVar?f=O.lexical.indexOf(n)>-1:f=O.lexical.indexOf(n)>-1||O.var.indexOf(n)>-1,O.functions.push(n)}else for(var Y=this.scopeStack.length-1;Y>=0;--Y){var Q=this.scopeStack[Y];if(Q.lexical.indexOf(n)>-1&&!(Q.flags&Ie&&Q.lexical[0]===n)||!this.treatFunctionsAsVarInScope(Q)&&Q.functions.indexOf(n)>-1){f=!0;break}if(Q.var.push(n),this.inModule&&Q.flags&G&&delete this.undefinedExports[n],Q.flags&Ke)break}f&&this.raiseRecoverable(l,\\"Identifier \'\\"+n+\\"\' has already been declared\\")},rn.checkLocalExport=function(n){this.scopeStack[0].lexical.indexOf(n.name)===-1&&this.scopeStack[0].var.indexOf(n.name)===-1&&(this.undefinedExports[n.name]=n)},rn.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},rn.currentVarScope=function(){for(var n=this.scopeStack.length-1;;n--){var o=this.scopeStack[n];if(o.flags&(Ke|We|Xe))return o}},rn.currentThisScope=function(){for(var n=this.scopeStack.length-1;;n--){var o=this.scopeStack[n];if(o.flags&(Ke|We|Xe)&&!(o.flags&he))return o}};var Fn=function(o,l,f){this.type=\\"\\",this.start=l,this.end=0,o.options.locations&&(this.loc=new wt(o,f)),o.options.directSourceFile&&(this.sourceFile=o.options.directSourceFile),o.options.ranges&&(this.range=[l,0])},Bn=Ge.prototype;Bn.startNode=function(){return new Fn(this,this.start,this.startLoc)},Bn.startNodeAt=function(n,o){return new Fn(this,n,o)};function Fs(n,o,l,f){return n.type=o,n.end=l,this.options.locations&&(n.loc.end=f),this.options.ranges&&(n.range[1]=l),n}Bn.finishNode=function(n,o){return Fs.call(this,n,o,this.lastTokEnd,this.lastTokEndLoc)},Bn.finishNodeAt=function(n,o,l,f){return Fs.call(this,n,o,l,f)},Bn.copyNode=function(n){var o=new Fn(this,n.start,this.startLoc);for(var l in n)o[l]=n[l];return o};var Si=\\"Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz\\",Bs=\\"ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS\\",Vs=Bs+\\" Extended_Pictographic\\",js=Vs,$s=js+\\" EBase EComp EMod EPres ExtPict\\",qs=$s,Ii=qs,Ei={9:Bs,10:Vs,11:js,12:$s,13:qs,14:Ii},Ai=\\"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji\\",Pi={9:\\"\\",10:\\"\\",11:\\"\\",12:\\"\\",13:\\"\\",14:Ai},Ks=\\"Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu\\",Us=\\"Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb\\",Hs=Us+\\" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd\\",Ws=Hs+\\" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho\\",Gs=Ws+\\" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi\\",zs=Gs+\\" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith\\",jo=zs+\\" \\"+Si,$o={9:Us,10:Hs,11:Ws,12:Gs,13:zs,14:jo},mr={};function qo(n){var o=mr[n]={binary:tt(Ei[n]+\\" \\"+Ks),binaryOfStrings:tt(Pi[n]),nonBinary:{General_Category:tt(Ks),Script:tt($o[n])}};o.nonBinary.Script_Extensions=o.nonBinary.Script,o.nonBinary.gc=o.nonBinary.General_Category,o.nonBinary.sc=o.nonBinary.Script,o.nonBinary.scx=o.nonBinary.Script_Extensions}for(var Ni=0,yr=[9,10,11,12,13,14];Ni=6?\\"uy\\":\\"\\")+(o.options.ecmaVersion>=9?\\"s\\":\\"\\")+(o.options.ecmaVersion>=13?\\"d\\":\\"\\")+(o.options.ecmaVersion>=15?\\"v\\":\\"\\"),this.unicodeProperties=mr[o.options.ecmaVersion>=14?14:o.options.ecmaVersion],this.source=\\"\\",this.flags=\\"\\",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue=\\"\\",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};on.prototype.reset=function(o,l,f){var m=f.indexOf(\\"v\\")!==-1,E=f.indexOf(\\"u\\")!==-1;this.start=o|0,this.source=l+\\"\\",this.flags=f,m&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=E&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=E&&this.parser.options.ecmaVersion>=9)},on.prototype.raise=function(o){this.parser.raiseRecoverable(this.start,\\"Invalid regular expression: /\\"+this.source+\\"/: \\"+o)},on.prototype.at=function(o,l){l===void 0&&(l=!1);var f=this.source,m=f.length;if(o>=m)return-1;var E=f.charCodeAt(o);if(!(l||this.switchU)||E<=55295||E>=57344||o+1>=m)return E;var O=f.charCodeAt(o+1);return O>=56320&&O<=57343?(E<<10)+O-56613888:E},on.prototype.nextIndex=function(o,l){l===void 0&&(l=!1);var f=this.source,m=f.length;if(o>=m)return m;var E=f.charCodeAt(o),O;return!(l||this.switchU)||E<=55295||E>=57344||o+1>=m||(O=f.charCodeAt(o+1))<56320||O>57343?o+1:o+2},on.prototype.current=function(o){return o===void 0&&(o=!1),this.at(this.pos,o)},on.prototype.lookahead=function(o){return o===void 0&&(o=!1),this.at(this.nextIndex(this.pos,o),o)},on.prototype.advance=function(o){o===void 0&&(o=!1),this.pos=this.nextIndex(this.pos,o)},on.prototype.eat=function(o,l){return l===void 0&&(l=!1),this.current(l)===o?(this.advance(l),!0):!1},on.prototype.eatChars=function(o,l){l===void 0&&(l=!1);for(var f=this.pos,m=0,E=o;m-1&&this.raise(n.start,\\"Duplicate regular expression flag\\"),O===\\"u\\"&&(f=!0),O===\\"v\\"&&(m=!0)}this.options.ecmaVersion>=15&&f&&m&&this.raise(n.start,\\"Invalid regular expression flag\\")};function Uo(n){for(var o in n)return!0;return!1}le.validateRegExpPattern=function(n){this.regexp_pattern(n),!n.switchN&&this.options.ecmaVersion>=9&&Uo(n.groupNames)&&(n.switchN=!0,this.regexp_pattern(n))},le.regexp_pattern=function(n){n.pos=0,n.lastIntValue=0,n.lastStringValue=\\"\\",n.lastAssertionIsQuantifiable=!1,n.numCapturingParens=0,n.maxBackReference=0,n.groupNames=Object.create(null),n.backReferenceNames.length=0,n.branchID=null,this.regexp_disjunction(n),n.pos!==n.source.length&&(n.eat(41)&&n.raise(\\"Unmatched \')\'\\"),(n.eat(93)||n.eat(125))&&n.raise(\\"Lone quantifier brackets\\")),n.maxBackReference>n.numCapturingParens&&n.raise(\\"Invalid escape\\");for(var o=0,l=n.backReferenceNames;o=16;for(o&&(n.branchID=new Xs(n.branchID,null)),this.regexp_alternative(n);n.eat(124);)o&&(n.branchID=n.branchID.sibling()),this.regexp_alternative(n);o&&(n.branchID=n.branchID.parent),this.regexp_eatQuantifier(n,!0)&&n.raise(\\"Nothing to repeat\\"),n.eat(123)&&n.raise(\\"Lone quantifier brackets\\")},le.regexp_alternative=function(n){for(;n.pos=9&&(l=n.eat(60)),n.eat(61)||n.eat(33))return this.regexp_disjunction(n),n.eat(41)||n.raise(\\"Unterminated group\\"),n.lastAssertionIsQuantifiable=!l,!0}return n.pos=o,!1},le.regexp_eatQuantifier=function(n,o){return o===void 0&&(o=!1),this.regexp_eatQuantifierPrefix(n,o)?(n.eat(63),!0):!1},le.regexp_eatQuantifierPrefix=function(n,o){return n.eat(42)||n.eat(43)||n.eat(63)||this.regexp_eatBracedQuantifier(n,o)},le.regexp_eatBracedQuantifier=function(n,o){var l=n.pos;if(n.eat(123)){var f=0,m=-1;if(this.regexp_eatDecimalDigits(n)&&(f=n.lastIntValue,n.eat(44)&&this.regexp_eatDecimalDigits(n)&&(m=n.lastIntValue),n.eat(125)))return m!==-1&&m=16){var l=this.regexp_eatModifiers(n),f=n.eat(45);if(l||f){for(var m=0;m-1&&n.raise(\\"Duplicate regular expression modifiers\\")}if(f){var O=this.regexp_eatModifiers(n);!l&&!O&&n.current()===58&&n.raise(\\"Invalid regular expression modifiers\\");for(var Y=0;Y-1||l.indexOf(Q)>-1)&&n.raise(\\"Duplicate regular expression modifiers\\")}}}}if(n.eat(58)){if(this.regexp_disjunction(n),n.eat(41))return!0;n.raise(\\"Unterminated group\\")}}n.pos=o}return!1},le.regexp_eatCapturingGroup=function(n){if(n.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(n):n.current()===63&&n.raise(\\"Invalid group\\"),this.regexp_disjunction(n),n.eat(41))return n.numCapturingParens+=1,!0;n.raise(\\"Unterminated group\\")}return!1},le.regexp_eatModifiers=function(n){for(var o=\\"\\",l=0;(l=n.current())!==-1&&Ho(l);)o+=nt(l),n.advance();return o};function Ho(n){return n===105||n===109||n===115}le.regexp_eatExtendedAtom=function(n){return n.eat(46)||this.regexp_eatReverseSolidusAtomEscape(n)||this.regexp_eatCharacterClass(n)||this.regexp_eatUncapturingGroup(n)||this.regexp_eatCapturingGroup(n)||this.regexp_eatInvalidBracedQuantifier(n)||this.regexp_eatExtendedPatternCharacter(n)},le.regexp_eatInvalidBracedQuantifier=function(n){return this.regexp_eatBracedQuantifier(n,!0)&&n.raise(\\"Nothing to repeat\\"),!1},le.regexp_eatSyntaxCharacter=function(n){var o=n.current();return Tr(o)?(n.lastIntValue=o,n.advance(),!0):!1};function Tr(n){return n===36||n>=40&&n<=43||n===46||n===63||n>=91&&n<=94||n>=123&&n<=125}le.regexp_eatPatternCharacters=function(n){for(var o=n.pos,l=0;(l=n.current())!==-1&&!Tr(l);)n.advance();return n.pos!==o},le.regexp_eatExtendedPatternCharacter=function(n){var o=n.current();return o!==-1&&o!==36&&!(o>=40&&o<=43)&&o!==46&&o!==63&&o!==91&&o!==94&&o!==124?(n.advance(),!0):!1},le.regexp_groupSpecifier=function(n){if(n.eat(63)){this.regexp_eatGroupName(n)||n.raise(\\"Invalid group\\");var o=this.options.ecmaVersion>=16,l=n.groupNames[n.lastStringValue];if(l)if(o)for(var f=0,m=l;f=11,f=n.current(l);return n.advance(l),f===92&&this.regexp_eatRegExpUnicodeEscapeSequence(n,l)&&(f=n.lastIntValue),Wo(f)?(n.lastIntValue=f,!0):(n.pos=o,!1)};function Wo(n){return h(n,!0)||n===36||n===95}le.regexp_eatRegExpIdentifierPart=function(n){var o=n.pos,l=this.options.ecmaVersion>=11,f=n.current(l);return n.advance(l),f===92&&this.regexp_eatRegExpUnicodeEscapeSequence(n,l)&&(f=n.lastIntValue),Go(f)?(n.lastIntValue=f,!0):(n.pos=o,!1)};function Go(n){return T(n,!0)||n===36||n===95||n===8204||n===8205}le.regexp_eatAtomEscape=function(n){return this.regexp_eatBackReference(n)||this.regexp_eatCharacterClassEscape(n)||this.regexp_eatCharacterEscape(n)||n.switchN&&this.regexp_eatKGroupName(n)?!0:(n.switchU&&(n.current()===99&&n.raise(\\"Invalid unicode escape\\"),n.raise(\\"Invalid escape\\")),!1)},le.regexp_eatBackReference=function(n){var o=n.pos;if(this.regexp_eatDecimalEscape(n)){var l=n.lastIntValue;if(n.switchU)return l>n.maxBackReference&&(n.maxBackReference=l),!0;if(l<=n.numCapturingParens)return!0;n.pos=o}return!1},le.regexp_eatKGroupName=function(n){if(n.eat(107)){if(this.regexp_eatGroupName(n))return n.backReferenceNames.push(n.lastStringValue),!0;n.raise(\\"Invalid named reference\\")}return!1},le.regexp_eatCharacterEscape=function(n){return this.regexp_eatControlEscape(n)||this.regexp_eatCControlLetter(n)||this.regexp_eatZero(n)||this.regexp_eatHexEscapeSequence(n)||this.regexp_eatRegExpUnicodeEscapeSequence(n,!1)||!n.switchU&&this.regexp_eatLegacyOctalEscapeSequence(n)||this.regexp_eatIdentityEscape(n)},le.regexp_eatCControlLetter=function(n){var o=n.pos;if(n.eat(99)){if(this.regexp_eatControlLetter(n))return!0;n.pos=o}return!1},le.regexp_eatZero=function(n){return n.current()===48&&!vr(n.lookahead())?(n.lastIntValue=0,n.advance(),!0):!1},le.regexp_eatControlEscape=function(n){var o=n.current();return o===116?(n.lastIntValue=9,n.advance(),!0):o===110?(n.lastIntValue=10,n.advance(),!0):o===118?(n.lastIntValue=11,n.advance(),!0):o===102?(n.lastIntValue=12,n.advance(),!0):o===114?(n.lastIntValue=13,n.advance(),!0):!1},le.regexp_eatControlLetter=function(n){var o=n.current();return kr(o)?(n.lastIntValue=o%32,n.advance(),!0):!1};function kr(n){return n>=65&&n<=90||n>=97&&n<=122}le.regexp_eatRegExpUnicodeEscapeSequence=function(n,o){o===void 0&&(o=!1);var l=n.pos,f=o||n.switchU;if(n.eat(117)){if(this.regexp_eatFixedHexDigits(n,4)){var m=n.lastIntValue;if(f&&m>=55296&&m<=56319){var E=n.pos;if(n.eat(92)&&n.eat(117)&&this.regexp_eatFixedHexDigits(n,4)){var O=n.lastIntValue;if(O>=56320&&O<=57343)return n.lastIntValue=(m-55296)*1024+(O-56320)+65536,!0}n.pos=E,n.lastIntValue=m}return!0}if(f&&n.eat(123)&&this.regexp_eatHexDigits(n)&&n.eat(125)&&vf(n.lastIntValue))return!0;f&&n.raise(\\"Invalid unicode escape\\"),n.pos=l}return!1};function vf(n){return n>=0&&n<=1114111}le.regexp_eatIdentityEscape=function(n){if(n.switchU)return this.regexp_eatSyntaxCharacter(n)?!0:n.eat(47)?(n.lastIntValue=47,!0):!1;var o=n.current();return o!==99&&(!n.switchN||o!==107)?(n.lastIntValue=o,n.advance(),!0):!1},le.regexp_eatDecimalEscape=function(n){n.lastIntValue=0;var o=n.current();if(o>=49&&o<=57){do n.lastIntValue=10*n.lastIntValue+(o-48),n.advance();while((o=n.current())>=48&&o<=57);return!0}return!1};var Rc=0,Vn=1,an=2;le.regexp_eatCharacterClassEscape=function(n){var o=n.current();if(xf(o))return n.lastIntValue=-1,n.advance(),Vn;var l=!1;if(n.switchU&&this.options.ecmaVersion>=9&&((l=o===80)||o===112)){n.lastIntValue=-1,n.advance();var f;if(n.eat(123)&&(f=this.regexp_eatUnicodePropertyValueExpression(n))&&n.eat(125))return l&&f===an&&n.raise(\\"Invalid property name\\"),f;n.raise(\\"Invalid property name\\")}return Rc};function xf(n){return n===100||n===68||n===115||n===83||n===119||n===87}le.regexp_eatUnicodePropertyValueExpression=function(n){var o=n.pos;if(this.regexp_eatUnicodePropertyName(n)&&n.eat(61)){var l=n.lastStringValue;if(this.regexp_eatUnicodePropertyValue(n)){var f=n.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(n,l,f),Vn}}if(n.pos=o,this.regexp_eatLoneUnicodePropertyNameOrValue(n)){var m=n.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(n,m)}return Rc},le.regexp_validateUnicodePropertyNameAndValue=function(n,o,l){mt(n.unicodeProperties.nonBinary,o)||n.raise(\\"Invalid property name\\"),n.unicodeProperties.nonBinary[o].test(l)||n.raise(\\"Invalid property value\\")},le.regexp_validateUnicodePropertyNameOrValue=function(n,o){if(n.unicodeProperties.binary.test(o))return Vn;if(n.switchV&&n.unicodeProperties.binaryOfStrings.test(o))return an;n.raise(\\"Invalid property name\\")},le.regexp_eatUnicodePropertyName=function(n){var o=0;for(n.lastStringValue=\\"\\";Lc(o=n.current());)n.lastStringValue+=nt(o),n.advance();return n.lastStringValue!==\\"\\"};function Lc(n){return kr(n)||n===95}le.regexp_eatUnicodePropertyValue=function(n){var o=0;for(n.lastStringValue=\\"\\";gf(o=n.current());)n.lastStringValue+=nt(o),n.advance();return n.lastStringValue!==\\"\\"};function gf(n){return Lc(n)||vr(n)}le.regexp_eatLoneUnicodePropertyNameOrValue=function(n){return this.regexp_eatUnicodePropertyValue(n)},le.regexp_eatCharacterClass=function(n){if(n.eat(91)){var o=n.eat(94),l=this.regexp_classContents(n);return n.eat(93)||n.raise(\\"Unterminated character class\\"),o&&l===an&&n.raise(\\"Negated character class may contain strings\\"),!0}return!1},le.regexp_classContents=function(n){return n.current()===93?Vn:n.switchV?this.regexp_classSetExpression(n):(this.regexp_nonEmptyClassRanges(n),Vn)},le.regexp_nonEmptyClassRanges=function(n){for(;this.regexp_eatClassAtom(n);){var o=n.lastIntValue;if(n.eat(45)&&this.regexp_eatClassAtom(n)){var l=n.lastIntValue;n.switchU&&(o===-1||l===-1)&&n.raise(\\"Invalid character class\\"),o!==-1&&l!==-1&&o>l&&n.raise(\\"Range out of order in character class\\")}}},le.regexp_eatClassAtom=function(n){var o=n.pos;if(n.eat(92)){if(this.regexp_eatClassEscape(n))return!0;if(n.switchU){var l=n.current();(l===99||Mc(l))&&n.raise(\\"Invalid class escape\\"),n.raise(\\"Invalid escape\\")}n.pos=o}var f=n.current();return f!==93?(n.lastIntValue=f,n.advance(),!0):!1},le.regexp_eatClassEscape=function(n){var o=n.pos;if(n.eat(98))return n.lastIntValue=8,!0;if(n.switchU&&n.eat(45))return n.lastIntValue=45,!0;if(!n.switchU&&n.eat(99)){if(this.regexp_eatClassControlLetter(n))return!0;n.pos=o}return this.regexp_eatCharacterClassEscape(n)||this.regexp_eatCharacterEscape(n)},le.regexp_classSetExpression=function(n){var o=Vn,l;if(!this.regexp_eatClassSetRange(n))if(l=this.regexp_eatClassSetOperand(n)){l===an&&(o=an);for(var f=n.pos;n.eatChars([38,38]);){if(n.current()!==38&&(l=this.regexp_eatClassSetOperand(n))){l!==an&&(o=Vn);continue}n.raise(\\"Invalid character in character class\\")}if(f!==n.pos)return o;for(;n.eatChars([45,45]);)this.regexp_eatClassSetOperand(n)||n.raise(\\"Invalid character in character class\\");if(f!==n.pos)return o}else n.raise(\\"Invalid character in character class\\");for(;;)if(!this.regexp_eatClassSetRange(n)){if(l=this.regexp_eatClassSetOperand(n),!l)return o;l===an&&(o=an)}},le.regexp_eatClassSetRange=function(n){var o=n.pos;if(this.regexp_eatClassSetCharacter(n)){var l=n.lastIntValue;if(n.eat(45)&&this.regexp_eatClassSetCharacter(n)){var f=n.lastIntValue;return l!==-1&&f!==-1&&l>f&&n.raise(\\"Range out of order in character class\\"),!0}n.pos=o}return!1},le.regexp_eatClassSetOperand=function(n){return this.regexp_eatClassSetCharacter(n)?Vn:this.regexp_eatClassStringDisjunction(n)||this.regexp_eatNestedClass(n)},le.regexp_eatNestedClass=function(n){var o=n.pos;if(n.eat(91)){var l=n.eat(94),f=this.regexp_classContents(n);if(n.eat(93))return l&&f===an&&n.raise(\\"Negated character class may contain strings\\"),f;n.pos=o}if(n.eat(92)){var m=this.regexp_eatCharacterClassEscape(n);if(m)return m;n.pos=o}return null},le.regexp_eatClassStringDisjunction=function(n){var o=n.pos;if(n.eatChars([92,113])){if(n.eat(123)){var l=this.regexp_classStringDisjunctionContents(n);if(n.eat(125))return l}else n.raise(\\"Invalid escape\\");n.pos=o}return null},le.regexp_classStringDisjunctionContents=function(n){for(var o=this.regexp_classString(n);n.eat(124);)this.regexp_classString(n)===an&&(o=an);return o},le.regexp_classString=function(n){for(var o=0;this.regexp_eatClassSetCharacter(n);)o++;return o===1?Vn:an},le.regexp_eatClassSetCharacter=function(n){var o=n.pos;if(n.eat(92))return this.regexp_eatCharacterEscape(n)||this.regexp_eatClassSetReservedPunctuator(n)?!0:n.eat(98)?(n.lastIntValue=8,!0):(n.pos=o,!1);var l=n.current();return l<0||l===n.lookahead()&&_f(l)||bf(l)?!1:(n.advance(),n.lastIntValue=l,!0)};function _f(n){return n===33||n>=35&&n<=38||n>=42&&n<=44||n===46||n>=58&&n<=64||n===94||n===96||n===126}function bf(n){return n===40||n===41||n===45||n===47||n>=91&&n<=93||n>=123&&n<=125}le.regexp_eatClassSetReservedPunctuator=function(n){var o=n.current();return Cf(o)?(n.lastIntValue=o,n.advance(),!0):!1};function Cf(n){return n===33||n===35||n===37||n===38||n===44||n===45||n>=58&&n<=62||n===64||n===96||n===126}le.regexp_eatClassControlLetter=function(n){var o=n.current();return vr(o)||o===95?(n.lastIntValue=o%32,n.advance(),!0):!1},le.regexp_eatHexEscapeSequence=function(n){var o=n.pos;if(n.eat(120)){if(this.regexp_eatFixedHexDigits(n,2))return!0;n.switchU&&n.raise(\\"Invalid escape\\"),n.pos=o}return!1},le.regexp_eatDecimalDigits=function(n){var o=n.pos,l=0;for(n.lastIntValue=0;vr(l=n.current());)n.lastIntValue=10*n.lastIntValue+(l-48),n.advance();return n.pos!==o};function vr(n){return n>=48&&n<=57}le.regexp_eatHexDigits=function(n){var o=n.pos,l=0;for(n.lastIntValue=0;Oc(l=n.current());)n.lastIntValue=16*n.lastIntValue+Dc(l),n.advance();return n.pos!==o};function Oc(n){return n>=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102}function Dc(n){return n>=65&&n<=70?10+(n-65):n>=97&&n<=102?10+(n-97):n-48}le.regexp_eatLegacyOctalEscapeSequence=function(n){if(this.regexp_eatOctalDigit(n)){var o=n.lastIntValue;if(this.regexp_eatOctalDigit(n)){var l=n.lastIntValue;o<=3&&this.regexp_eatOctalDigit(n)?n.lastIntValue=o*64+l*8+n.lastIntValue:n.lastIntValue=o*8+l}else n.lastIntValue=o;return!0}return!1},le.regexp_eatOctalDigit=function(n){var o=n.current();return Mc(o)?(n.lastIntValue=o-48,n.advance(),!0):(n.lastIntValue=0,!1)};function Mc(n){return n>=48&&n<=55}le.regexp_eatFixedHexDigits=function(n,o){var l=n.pos;n.lastIntValue=0;for(var f=0;f=this.input.length)return this.finishToken(c.eof);if(n.override)return n.override(this);this.readToken(this.fullCharCodeAtPos())},Ae.readToken=function(n){return h(n,this.options.ecmaVersion>=6)||n===92?this.readWord():this.getTokenFromCode(n)},Ae.fullCharCodeAtPos=function(){var n=this.input.charCodeAt(this.pos);if(n<=55295||n>=56320)return n;var o=this.input.charCodeAt(this.pos+1);return o<=56319||o>=57344?n:(n<<10)+o-56613888},Ae.skipBlockComment=function(){var n=this.options.onComment&&this.curPosition(),o=this.pos,l=this.input.indexOf(\\"*/\\",this.pos+=2);if(l===-1&&this.raise(this.pos-2,\\"Unterminated comment\\"),this.pos=l+2,this.options.locations)for(var f=void 0,m=o;(f=ie(this.input,m,this.pos))>-1;)++this.curLine,m=this.lineStart=f;this.options.onComment&&this.options.onComment(!0,this.input.slice(o+2,l),o,this.pos,n,this.curPosition())},Ae.skipLineComment=function(n){for(var o=this.pos,l=this.options.onComment&&this.curPosition(),f=this.input.charCodeAt(this.pos+=n);this.pos8&&n<14||n>=5760&&pe.test(String.fromCharCode(n)))++this.pos;else break e}}},Ae.finishToken=function(n,o){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var l=this.type;this.type=n,this.value=o,this.updateContext(l)},Ae.readToken_dot=function(){var n=this.input.charCodeAt(this.pos+1);if(n>=48&&n<=57)return this.readNumber(!0);var o=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&n===46&&o===46?(this.pos+=3,this.finishToken(c.ellipsis)):(++this.pos,this.finishToken(c.dot))},Ae.readToken_slash=function(){var n=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):n===61?this.finishOp(c.assign,2):this.finishOp(c.slash,1)},Ae.readToken_mult_modulo_exp=function(n){var o=this.input.charCodeAt(this.pos+1),l=1,f=n===42?c.star:c.modulo;return this.options.ecmaVersion>=7&&n===42&&o===42&&(++l,f=c.starstar,o=this.input.charCodeAt(this.pos+2)),o===61?this.finishOp(c.assign,l+1):this.finishOp(f,l)},Ae.readToken_pipe_amp=function(n){var o=this.input.charCodeAt(this.pos+1);if(o===n){if(this.options.ecmaVersion>=12){var l=this.input.charCodeAt(this.pos+2);if(l===61)return this.finishOp(c.assign,3)}return this.finishOp(n===124?c.logicalOR:c.logicalAND,2)}return o===61?this.finishOp(c.assign,2):this.finishOp(n===124?c.bitwiseOR:c.bitwiseAND,1)},Ae.readToken_caret=function(){var n=this.input.charCodeAt(this.pos+1);return n===61?this.finishOp(c.assign,2):this.finishOp(c.bitwiseXOR,1)},Ae.readToken_plus_min=function(n){var o=this.input.charCodeAt(this.pos+1);return o===n?o===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||R.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(c.incDec,2):o===61?this.finishOp(c.assign,2):this.finishOp(c.plusMin,1)},Ae.readToken_lt_gt=function(n){var o=this.input.charCodeAt(this.pos+1),l=1;return o===n?(l=n===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+l)===61?this.finishOp(c.assign,l+1):this.finishOp(c.bitShift,l)):o===33&&n===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(o===61&&(l=2),this.finishOp(c.relational,l))},Ae.readToken_eq_excl=function(n){var o=this.input.charCodeAt(this.pos+1);return o===61?this.finishOp(c.equality,this.input.charCodeAt(this.pos+2)===61?3:2):n===61&&o===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(c.arrow)):this.finishOp(n===61?c.eq:c.prefix,1)},Ae.readToken_question=function(){var n=this.options.ecmaVersion;if(n>=11){var o=this.input.charCodeAt(this.pos+1);if(o===46){var l=this.input.charCodeAt(this.pos+2);if(l<48||l>57)return this.finishOp(c.questionDot,2)}if(o===63){if(n>=12){var f=this.input.charCodeAt(this.pos+2);if(f===61)return this.finishOp(c.assign,3)}return this.finishOp(c.coalesce,2)}}return this.finishOp(c.question,1)},Ae.readToken_numberSign=function(){var n=this.options.ecmaVersion,o=35;if(n>=13&&(++this.pos,o=this.fullCharCodeAtPos(),h(o,!0)||o===92))return this.finishToken(c.privateId,this.readWord1());this.raise(this.pos,\\"Unexpected character \'\\"+nt(o)+\\"\'\\")},Ae.getTokenFromCode=function(n){switch(n){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(c.parenL);case 41:return++this.pos,this.finishToken(c.parenR);case 59:return++this.pos,this.finishToken(c.semi);case 44:return++this.pos,this.finishToken(c.comma);case 91:return++this.pos,this.finishToken(c.bracketL);case 93:return++this.pos,this.finishToken(c.bracketR);case 123:return++this.pos,this.finishToken(c.braceL);case 125:return++this.pos,this.finishToken(c.braceR);case 58:return++this.pos,this.finishToken(c.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(c.backQuote);case 48:var o=this.input.charCodeAt(this.pos+1);if(o===120||o===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(o===111||o===79)return this.readRadixNumber(8);if(o===98||o===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(n);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(n);case 124:case 38:return this.readToken_pipe_amp(n);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(n);case 60:case 62:return this.readToken_lt_gt(n);case 61:case 33:return this.readToken_eq_excl(n);case 63:return this.readToken_question();case 126:return this.finishOp(c.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,\\"Unexpected character \'\\"+nt(n)+\\"\'\\")},Ae.finishOp=function(n,o){var l=this.input.slice(this.pos,this.pos+o);return this.pos+=o,this.finishToken(n,l)},Ae.readRegexp=function(){for(var n,o,l=this.pos;;){this.pos>=this.input.length&&this.raise(l,\\"Unterminated regular expression\\");var f=this.input.charAt(this.pos);if(R.test(f)&&this.raise(l,\\"Unterminated regular expression\\"),n)n=!1;else{if(f===\\"[\\")o=!0;else if(f===\\"]\\"&&o)o=!1;else if(f===\\"/\\"&&!o)break;n=f===\\"\\\\\\\\\\"}++this.pos}var m=this.input.slice(l,this.pos);++this.pos;var E=this.pos,O=this.readWord1();this.containsEsc&&this.unexpected(E);var Y=this.regexpState||(this.regexpState=new on(this));Y.reset(l,m,O),this.validateRegExpFlags(Y),this.validateRegExpPattern(Y);var Q=null;try{Q=new RegExp(m,O)}catch{}return this.finishToken(c.regexp,{pattern:m,flags:O,value:Q})},Ae.readInt=function(n,o,l){for(var f=this.options.ecmaVersion>=12&&o===void 0,m=l&&this.input.charCodeAt(this.pos)===48,E=this.pos,O=0,Y=0,Q=0,Te=o??1/0;Q=97?Ze=xe-97+10:xe>=65?Ze=xe-65+10:xe>=48&&xe<=57?Ze=xe-48:Ze=1/0,Ze>=n)break;Y=xe,O=O*n+Ze}return f&&Y===95&&this.raiseRecoverable(this.pos-1,\\"Numeric separator is not allowed at the last of digits\\"),this.pos===E||o!=null&&this.pos-E!==o?null:O};function wf(n,o){return o?parseInt(n,8):parseFloat(n.replace(/_/g,\\"\\"))}function Fc(n){return typeof BigInt!=\\"function\\"?null:BigInt(n.replace(/_/g,\\"\\"))}Ae.readRadixNumber=function(n){var o=this.pos;this.pos+=2;var l=this.readInt(n);return l==null&&this.raise(this.start+2,\\"Expected number in radix \\"+n),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(l=Fc(this.input.slice(o,this.pos)),++this.pos):h(this.fullCharCodeAtPos())&&this.raise(this.pos,\\"Identifier directly after number\\"),this.finishToken(c.num,l)},Ae.readNumber=function(n){var o=this.pos;!n&&this.readInt(10,void 0,!0)===null&&this.raise(o,\\"Invalid number\\");var l=this.pos-o>=2&&this.input.charCodeAt(o)===48;l&&this.strict&&this.raise(o,\\"Invalid number\\");var f=this.input.charCodeAt(this.pos);if(!l&&!n&&this.options.ecmaVersion>=11&&f===110){var m=Fc(this.input.slice(o,this.pos));return++this.pos,h(this.fullCharCodeAtPos())&&this.raise(this.pos,\\"Identifier directly after number\\"),this.finishToken(c.num,m)}l&&/[89]/.test(this.input.slice(o,this.pos))&&(l=!1),f===46&&!l&&(++this.pos,this.readInt(10),f=this.input.charCodeAt(this.pos)),(f===69||f===101)&&!l&&(f=this.input.charCodeAt(++this.pos),(f===43||f===45)&&++this.pos,this.readInt(10)===null&&this.raise(o,\\"Invalid number\\")),h(this.fullCharCodeAtPos())&&this.raise(this.pos,\\"Identifier directly after number\\");var E=wf(this.input.slice(o,this.pos),l);return this.finishToken(c.num,E)},Ae.readCodePoint=function(){var n=this.input.charCodeAt(this.pos),o;if(n===123){this.options.ecmaVersion<6&&this.unexpected();var l=++this.pos;o=this.readHexChar(this.input.indexOf(\\"}\\",this.pos)-this.pos),++this.pos,o>1114111&&this.invalidStringToken(l,\\"Code point out of bounds\\")}else o=this.readHexChar(4);return o},Ae.readString=function(n){for(var o=\\"\\",l=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,\\"Unterminated string constant\\");var f=this.input.charCodeAt(this.pos);if(f===n)break;f===92?(o+=this.input.slice(l,this.pos),o+=this.readEscapedChar(!1),l=this.pos):f===8232||f===8233?(this.options.ecmaVersion<10&&this.raise(this.start,\\"Unterminated string constant\\"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(X(f)&&this.raise(this.start,\\"Unterminated string constant\\"),++this.pos)}return o+=this.input.slice(l,this.pos++),this.finishToken(c.string,o)};var Bc={};Ae.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(n){if(n===Bc)this.readInvalidTemplateToken();else throw n}this.inTemplateElement=!1},Ae.invalidStringToken=function(n,o){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Bc;this.raise(n,o)},Ae.readTmplToken=function(){for(var n=\\"\\",o=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,\\"Unterminated template\\");var l=this.input.charCodeAt(this.pos);if(l===96||l===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===c.template||this.type===c.invalidTemplate)?l===36?(this.pos+=2,this.finishToken(c.dollarBraceL)):(++this.pos,this.finishToken(c.backQuote)):(n+=this.input.slice(o,this.pos),this.finishToken(c.template,n));if(l===92)n+=this.input.slice(o,this.pos),n+=this.readEscapedChar(!0),o=this.pos;else if(X(l)){switch(n+=this.input.slice(o,this.pos),++this.pos,l){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:n+=`\\n`;break;default:n+=String.fromCharCode(l);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),o=this.pos}else++this.pos}},Ae.readInvalidTemplateToken=function(){for(;this.pos=48&&o<=55){var f=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],m=parseInt(f,8);return m>255&&(f=f.slice(0,-1),m=parseInt(f,8)),this.pos+=f.length-1,o=this.input.charCodeAt(this.pos),(f!==\\"0\\"||o===56||o===57)&&(this.strict||n)&&this.invalidStringToken(this.pos-1-f.length,n?\\"Octal literal in template string\\":\\"Octal literal in strict mode\\"),String.fromCharCode(m)}return X(o)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),\\"\\"):String.fromCharCode(o)}},Ae.readHexChar=function(n){var o=this.pos,l=this.readInt(16,n);return l===null&&this.invalidStringToken(o,\\"Bad character escape sequence\\"),l},Ae.readWord1=function(){this.containsEsc=!1;for(var n=\\"\\",o=!0,l=this.pos,f=this.options.ecmaVersion>=6;this.pos{(function(e,t){typeof Bo==\\"object\\"&&typeof ff<\\"u\\"?t(Bo,hf()):typeof define==\\"function\\"&&define.amd?define([\\"exports\\",\\"acorn\\"],t):(e=typeof globalThis<\\"u\\"?globalThis:e||self,t((e.acorn=e.acorn||{},e.acorn.loose={}),e.acorn))})(Bo,function(e,t){\\"use strict\\";var s=\\"\\\\u2716\\";function i(p){return p.name===s}function r(){}var a=function(h,T){if(T===void 0&&(T={}),this.toks=this.constructor.BaseParser.tokenizer(h,T),this.options=this.toks.options,this.input=this.toks.input,this.tok=this.last={type:t.tokTypes.eof,start:0,end:0},this.tok.validateRegExpFlags=r,this.tok.validateRegExpPattern=r,this.options.locations){var x=this.toks.curPosition();this.tok.loc=new t.SourceLocation(this.toks,x,x)}this.ahead=[],this.context=[],this.curIndent=0,this.curLineStart=0,this.nextLineStart=this.lineEnd(this.curLineStart)+1,this.inAsync=!1,this.inGenerator=!1,this.inFunction=!1};a.prototype.startNode=function(){return new t.Node(this.toks,this.tok.start,this.options.locations?this.tok.loc.start:null)},a.prototype.storeCurrentPos=function(){return this.options.locations?[this.tok.start,this.tok.loc.start]:this.tok.start},a.prototype.startNodeAt=function(h){return this.options.locations?new t.Node(this.toks,h[0],h[1]):new t.Node(this.toks,h)},a.prototype.finishNode=function(h,T){return h.type=T,h.end=this.last.end,this.options.locations&&(h.loc.end=this.last.loc.end),this.options.ranges&&(h.range[1]=this.last.end),h},a.prototype.dummyNode=function(h){var T=this.startNode();return T.type=h,T.end=T.start,this.options.locations&&(T.loc.end=T.loc.start),this.options.ranges&&(T.range[1]=T.start),this.last={type:t.tokTypes.name,start:T.start,end:T.start,loc:T.loc},T},a.prototype.dummyIdent=function(){var h=this.dummyNode(\\"Identifier\\");return h.name=s,h},a.prototype.dummyString=function(){var h=this.dummyNode(\\"Literal\\");return h.value=h.raw=s,h},a.prototype.eat=function(h){return this.tok.type===h?(this.next(),!0):!1},a.prototype.isContextual=function(h){return this.tok.type===t.tokTypes.name&&this.tok.value===h},a.prototype.eatContextual=function(h){return this.tok.value===h&&this.eat(t.tokTypes.name)},a.prototype.canInsertSemicolon=function(){return this.tok.type===t.tokTypes.eof||this.tok.type===t.tokTypes.braceR||t.lineBreak.test(this.input.slice(this.last.end,this.tok.start))},a.prototype.semicolon=function(){return this.eat(t.tokTypes.semi)},a.prototype.expect=function(h){if(this.eat(h))return!0;for(var T=1;T<=2;T++)if(this.lookAhead(T).type===h){for(var x=0;x=this.input.length||this.indentationAfter(this.nextLineStart)=this.curLineStart;--h){var T=this.input.charCodeAt(h);if(T!==9&&T!==32)return!1}return!0},a.prototype.extend=function(h,T){this[h]=T(this[h])},a.prototype.parse=function(){return this.next(),this.parseTopLevel()},a.extend=function(){for(var h=[],T=arguments.length;T--;)h[T]=arguments[T];for(var x=this,w=0;w8||p===32||p===160||t.isNewLine(p)}u.next=function(){if(this.last=this.tok,this.ahead.length?this.tok=this.ahead.shift():this.tok=this.readToken(),this.tok.start>=this.nextLineStart){for(;this.tok.start>=this.nextLineStart;)this.curLineStart=this.nextLineStart,this.nextLineStart=this.lineEnd(this.curLineStart)+1;this.curIndent=this.indentationAfter(this.curLineStart)}},u.readToken=function(){for(;;)try{return this.toks.next(),this.toks.type===t.tokTypes.dot&&this.input.substr(this.toks.end,1)===\\".\\"&&this.options.ecmaVersion>=6&&(this.toks.end++,this.toks.type=t.tokTypes.ellipsis),new t.Token(this.toks)}catch(S){if(!(S instanceof SyntaxError))throw S;var p=S.message,h=S.raisedAt,T=!0;if(/unterminated/i.test(p))if(h=this.lineEnd(S.pos+1),/string/.test(p))T={start:S.pos,end:h,type:t.tokTypes.string,value:this.input.slice(S.pos+1,h)};else if(/regular expr/i.test(p)){var x=this.input.slice(S.pos,h);try{x=new RegExp(x)}catch{}T={start:S.pos,end:h,type:t.tokTypes.regexp,value:x}}else/template/.test(p)?T={start:S.pos,end:h,type:t.tokTypes.template,value:this.input.slice(S.pos,h)}:T=!1;else if(/invalid (unicode|regexp|number)|expecting unicode|octal literal|is reserved|directly after number|expected number in radix|numeric separator/i.test(p))for(;h]/.test(h)||/[enwfd]/.test(h)&&/\\\\b(case|else|return|throw|new|in|(instance|type)?of|delete|void)$/.test(this.input.slice(p-10,p)),this.options.locations){this.toks.curLine=1,this.toks.lineStart=t.lineBreakG.lastIndex=0;for(var T;(T=t.lineBreakG.exec(this.input))&&T.indexthis.ahead.length;)this.ahead.push(this.readToken());return this.ahead[p-1]};var y=a.prototype;y.parseTopLevel=function(){var p=this.startNodeAt(this.options.locations?[0,t.getLineInfo(this.input,0)]:0);for(p.body=[];this.tok.type!==t.tokTypes.eof;)p.body.push(this.parseStatement());return this.toks.adaptDirectivePrologue(p.body),this.last=this.tok,p.sourceType=this.options.sourceType===\\"commonjs\\"?\\"script\\":this.options.sourceType,this.finishNode(p,\\"Program\\")},y.parseStatement=function(){var p=this.tok.type,h=this.startNode(),T;switch(this.toks.isLet()&&(p=t.tokTypes._var,T=\\"let\\"),p){case t.tokTypes._break:case t.tokTypes._continue:this.next();var x=p===t.tokTypes._break;return this.semicolon()||this.canInsertSemicolon()?h.label=null:(h.label=this.tok.type===t.tokTypes.name?this.parseIdent():null,this.semicolon()),this.finishNode(h,x?\\"BreakStatement\\":\\"ContinueStatement\\");case t.tokTypes._debugger:return this.next(),this.semicolon(),this.finishNode(h,\\"DebuggerStatement\\");case t.tokTypes._do:return this.next(),h.body=this.parseStatement(),h.test=this.eat(t.tokTypes._while)?this.parseParenExpression():this.dummyIdent(),this.semicolon(),this.finishNode(h,\\"DoWhileStatement\\");case t.tokTypes._for:this.next();var w=this.options.ecmaVersion>=9&&this.eatContextual(\\"await\\");if(this.pushCx(),this.expect(t.tokTypes.parenL),this.tok.type===t.tokTypes.semi)return this.parseFor(h,null);var S=this.toks.isLet(),A=this.toks.isAwaitUsing(!0),U=!A&&this.toks.isUsing(!0);if(S||this.tok.type===t.tokTypes._var||this.tok.type===t.tokTypes._const||U||A){var M=S?\\"let\\":U?\\"using\\":A?\\"await using\\":this.tok.value,c=this.startNode();return U||A?(A&&this.next(),this.parseVar(c,!0,M)):c=this.parseVar(c,!0,M),c.declarations.length===1&&(this.tok.type===t.tokTypes._in||this.isContextual(\\"of\\"))?(this.options.ecmaVersion>=9&&this.tok.type!==t.tokTypes._in&&(h.await=w),this.parseForIn(h,c)):this.parseFor(h,c)}var R=this.parseExpression(!0);return this.tok.type===t.tokTypes._in||this.isContextual(\\"of\\")?(this.options.ecmaVersion>=9&&this.tok.type!==t.tokTypes._in&&(h.await=w),this.parseForIn(h,this.toAssignable(R))):this.parseFor(h,R);case t.tokTypes._function:return this.next(),this.parseFunction(h,!0);case t.tokTypes._if:return this.next(),h.test=this.parseParenExpression(),h.consequent=this.parseStatement(),h.alternate=this.eat(t.tokTypes._else)?this.parseStatement():null,this.finishNode(h,\\"IfStatement\\");case t.tokTypes._return:return this.next(),this.eat(t.tokTypes.semi)||this.canInsertSemicolon()?h.argument=null:(h.argument=this.parseExpression(),this.semicolon()),this.finishNode(h,\\"ReturnStatement\\");case t.tokTypes._switch:var W=this.curIndent,X=this.curLineStart;this.next(),h.discriminant=this.parseParenExpression(),h.cases=[],this.pushCx(),this.expect(t.tokTypes.braceL);for(var ie;!this.closes(t.tokTypes.braceR,W,X,!0);)if(this.tok.type===t.tokTypes._case||this.tok.type===t.tokTypes._default){var pe=this.tok.type===t.tokTypes._case;ie&&this.finishNode(ie,\\"SwitchCase\\"),h.cases.push(ie=this.startNode()),ie.consequent=[],this.next(),pe?ie.test=this.parseExpression():ie.test=null,this.expect(t.tokTypes.colon)}else ie||(h.cases.push(ie=this.startNode()),ie.consequent=[],ie.test=null),ie.consequent.push(this.parseStatement());return ie&&this.finishNode(ie,\\"SwitchCase\\"),this.popCx(),this.eat(t.tokTypes.braceR),this.finishNode(h,\\"SwitchStatement\\");case t.tokTypes._throw:return this.next(),h.argument=this.parseExpression(),this.semicolon(),this.finishNode(h,\\"ThrowStatement\\");case t.tokTypes._try:if(this.next(),h.block=this.parseBlock(),h.handler=null,this.tok.type===t.tokTypes._catch){var ae=this.startNode();this.next(),this.eat(t.tokTypes.parenL)?(ae.param=this.toAssignable(this.parseExprAtom(),!0),this.expect(t.tokTypes.parenR)):ae.param=null,ae.body=this.parseBlock(),h.handler=this.finishNode(ae,\\"CatchClause\\")}return h.finalizer=this.eat(t.tokTypes._finally)?this.parseBlock():null,!h.handler&&!h.finalizer?h.block:this.finishNode(h,\\"TryStatement\\");case t.tokTypes._var:case t.tokTypes._const:return this.parseVar(h,!1,T||this.tok.value);case t.tokTypes._while:return this.next(),h.test=this.parseParenExpression(),h.body=this.parseStatement(),this.finishNode(h,\\"WhileStatement\\");case t.tokTypes._with:return this.next(),h.object=this.parseParenExpression(),h.body=this.parseStatement(),this.finishNode(h,\\"WithStatement\\");case t.tokTypes.braceL:return this.parseBlock();case t.tokTypes.semi:return this.next(),this.finishNode(h,\\"EmptyStatement\\");case t.tokTypes._class:return this.parseClass(!0);case t.tokTypes._import:if(this.options.ecmaVersion>10){var He=this.lookAhead(1).type;if(He===t.tokTypes.parenL||He===t.tokTypes.dot)return h.expression=this.parseExpression(),this.semicolon(),this.finishNode(h,\\"ExpressionStatement\\")}return this.parseImport();case t.tokTypes._export:return this.parseExport();default:if(this.toks.isAsyncFunction())return this.next(),this.next(),this.parseFunction(h,!0,!0);if(this.toks.isUsing(!1))return this.parseVar(h,!1,\\"using\\");if(this.toks.isAwaitUsing(!1))return this.next(),this.parseVar(h,!1,\\"await using\\");var qe=this.parseExpression();return i(qe)?(this.next(),this.tok.type===t.tokTypes.eof?this.finishNode(h,\\"EmptyStatement\\"):this.parseStatement()):p===t.tokTypes.name&&qe.type===\\"Identifier\\"&&this.eat(t.tokTypes.colon)?(h.body=this.parseStatement(),h.label=qe,this.finishNode(h,\\"LabeledStatement\\")):(h.expression=qe,this.semicolon(),this.finishNode(h,\\"ExpressionStatement\\"))}},y.parseBlock=function(){var p=this.startNode();this.pushCx(),this.expect(t.tokTypes.braceL);var h=this.curIndent,T=this.curLineStart;for(p.body=[];!this.closes(t.tokTypes.braceR,h,T,!0);)p.body.push(this.parseStatement());return this.popCx(),this.eat(t.tokTypes.braceR),this.finishNode(p,\\"BlockStatement\\")},y.parseFor=function(p,h){return p.init=h,p.test=p.update=null,this.eat(t.tokTypes.semi)&&this.tok.type!==t.tokTypes.semi&&(p.test=this.parseExpression()),this.eat(t.tokTypes.semi)&&this.tok.type!==t.tokTypes.parenR&&(p.update=this.parseExpression()),this.popCx(),this.expect(t.tokTypes.parenR),p.body=this.parseStatement(),this.finishNode(p,\\"ForStatement\\")},y.parseForIn=function(p,h){var T=this.tok.type===t.tokTypes._in?\\"ForInStatement\\":\\"ForOfStatement\\";return this.next(),p.left=h,p.right=this.parseExpression(),this.popCx(),this.expect(t.tokTypes.parenR),p.body=this.parseStatement(),this.finishNode(p,T)},y.parseVar=function(p,h,T){p.kind=T,this.next(),p.declarations=[];do{var x=this.startNode();x.id=this.options.ecmaVersion>=6?this.toAssignable(this.parseExprAtom(),!0):this.parseIdent(),x.init=this.eat(t.tokTypes.eq)?this.parseMaybeAssign(h):null,p.declarations.push(this.finishNode(x,\\"VariableDeclarator\\"))}while(this.eat(t.tokTypes.comma));if(!p.declarations.length){var w=this.startNode();w.id=this.dummyIdent(),p.declarations.push(this.finishNode(w,\\"VariableDeclarator\\"))}return h||this.semicolon(),this.finishNode(p,\\"VariableDeclaration\\")},y.parseClass=function(p){var h=this.startNode();this.next(),this.tok.type===t.tokTypes.name?h.id=this.parseIdent():p===!0?h.id=this.dummyIdent():h.id=null,h.superClass=this.eat(t.tokTypes._extends)?this.parseExpression():null,h.body=this.startNode(),h.body.body=[],this.pushCx();var T=this.curIndent+1,x=this.curLineStart;for(this.eat(t.tokTypes.braceL),this.curIndent+1=13&&this.eat(t.tokTypes.braceL))return this.parseClassStaticBlock(S),S;this.isClassElementNameStart()||this.toks.type===t.tokTypes.star?R=!0:A=\\"static\\"}if(S.static=R,!A&&h>=8&&this.eatContextual(\\"async\\")&&((this.isClassElementNameStart()||this.toks.type===t.tokTypes.star)&&!this.canInsertSemicolon()?M=!0:A=\\"async\\"),!A){U=this.eat(t.tokTypes.star);var W=this.toks.value;(this.eatContextual(\\"get\\")||this.eatContextual(\\"set\\"))&&(this.isClassElementNameStart()?c=W:A=W)}if(A)S.computed=!1,S.key=this.startNodeAt(T?[this.toks.lastTokStart,this.toks.lastTokStartLoc]:this.toks.lastTokStart),S.key.name=A,this.finishNode(S.key,\\"Identifier\\");else if(this.parseClassElementName(S),i(S.key))return i(this.parseMaybeAssign())&&this.next(),this.eat(t.tokTypes.comma),null;if(h<13||this.toks.type===t.tokTypes.parenL||c!==\\"method\\"||U||M){var X=!S.computed&&!S.static&&!U&&!M&&c===\\"method\\"&&(S.key.type===\\"Identifier\\"&&S.key.name===\\"constructor\\"||S.key.type===\\"Literal\\"&&S.key.value===\\"constructor\\");S.kind=X?\\"constructor\\":c,S.value=this.parseMethod(U,M),this.finishNode(S,\\"MethodDefinition\\")}else{if(this.eat(t.tokTypes.eq))if(this.curLineStart!==w&&this.curIndent<=x&&this.tokenStartsLine())S.value=null;else{var ie=this.inAsync,pe=this.inGenerator;this.inAsync=!1,this.inGenerator=!1,S.value=this.parseMaybeAssign(),this.inAsync=ie,this.inGenerator=pe}else S.value=null;this.semicolon(),this.finishNode(S,\\"PropertyDefinition\\")}return S},y.parseClassStaticBlock=function(p){var h=this.curIndent,T=this.curLineStart;for(p.body=[],this.pushCx();!this.closes(t.tokTypes.braceR,h,T,!0);)p.body.push(this.parseStatement());return this.popCx(),this.eat(t.tokTypes.braceR),this.finishNode(p,\\"StaticBlock\\")},y.isClassElementNameStart=function(){return this.toks.isClassElementNameStart()},y.parseClassElementName=function(p){this.toks.type===t.tokTypes.privateId?(p.computed=!1,p.key=this.parsePrivateIdent()):this.parsePropertyName(p)},y.parseFunction=function(p,h,T){var x=this.inAsync,w=this.inGenerator,S=this.inFunction;return this.initFunction(p),this.options.ecmaVersion>=6&&(p.generator=this.eat(t.tokTypes.star)),this.options.ecmaVersion>=8&&(p.async=!!T),this.tok.type===t.tokTypes.name?p.id=this.parseIdent():h===!0&&(p.id=this.dummyIdent()),this.inAsync=p.async,this.inGenerator=p.generator,this.inFunction=!0,p.params=this.parseFunctionParams(),p.body=this.parseBlock(),this.toks.adaptDirectivePrologue(p.body.body),this.inAsync=x,this.inGenerator=w,this.inFunction=S,this.finishNode(p,h?\\"FunctionDeclaration\\":\\"FunctionExpression\\")},y.parseExport=function(){var p=this.startNode();if(this.next(),this.eat(t.tokTypes.star))return this.options.ecmaVersion>=11&&(this.eatContextual(\\"as\\")?p.exported=this.parseExprAtom():p.exported=null),p.source=this.eatContextual(\\"from\\")?this.parseExprAtom():this.dummyString(),this.options.ecmaVersion>=16&&(p.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(p,\\"ExportAllDeclaration\\");if(this.eat(t.tokTypes._default)){var h;if(this.tok.type===t.tokTypes._function||(h=this.toks.isAsyncFunction())){var T=this.startNode();this.next(),h&&this.next(),p.declaration=this.parseFunction(T,\\"nullableID\\",h)}else this.tok.type===t.tokTypes._class?p.declaration=this.parseClass(\\"nullableID\\"):(p.declaration=this.parseMaybeAssign(),this.semicolon());return this.finishNode(p,\\"ExportDefaultDeclaration\\")}return this.tok.type.keyword||this.toks.isLet()||this.toks.isAsyncFunction()?(p.declaration=this.parseStatement(),p.specifiers=[],p.source=null):(p.declaration=null,p.specifiers=this.parseExportSpecifierList(),p.source=this.eatContextual(\\"from\\")?this.parseExprAtom():null,this.options.ecmaVersion>=16&&(p.attributes=this.parseWithClause()),this.semicolon()),this.finishNode(p,\\"ExportNamedDeclaration\\")},y.parseImport=function(){var p=this.startNode();if(this.next(),this.tok.type===t.tokTypes.string)p.specifiers=[],p.source=this.parseExprAtom();else{var h;this.tok.type===t.tokTypes.name&&this.tok.value!==\\"from\\"&&(h=this.startNode(),h.local=this.parseIdent(),this.finishNode(h,\\"ImportDefaultSpecifier\\"),this.eat(t.tokTypes.comma)),p.specifiers=this.parseImportSpecifiers(),p.source=this.eatContextual(\\"from\\")&&this.tok.type===t.tokTypes.string?this.parseExprAtom():this.dummyString(),h&&p.specifiers.unshift(h)}return this.options.ecmaVersion>=16&&(p.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(p,\\"ImportDeclaration\\")},y.parseImportSpecifiers=function(){var p=[];if(this.tok.type===t.tokTypes.star){var h=this.startNode();this.next(),h.local=this.eatContextual(\\"as\\")?this.parseIdent():this.dummyIdent(),p.push(this.finishNode(h,\\"ImportNamespaceSpecifier\\"))}else{var T=this.curIndent,x=this.curLineStart,w=this.nextLineStart;for(this.pushCx(),this.eat(t.tokTypes.braceL),this.curLineStart>w&&(w=this.curLineStart);!this.closes(t.tokTypes.braceR,T+(this.curLineStart<=w?1:0),x);){var S=this.startNode();if(this.eat(t.tokTypes.star))S.local=this.eatContextual(\\"as\\")?this.parseModuleExportName():this.dummyIdent(),this.finishNode(S,\\"ImportNamespaceSpecifier\\");else{if(this.isContextual(\\"from\\")||(S.imported=this.parseModuleExportName(),i(S.imported)))break;S.local=this.eatContextual(\\"as\\")?this.parseModuleExportName():S.imported,this.finishNode(S,\\"ImportSpecifier\\")}p.push(S),this.eat(t.tokTypes.comma)}this.eat(t.tokTypes.braceR),this.popCx()}return p},y.parseWithClause=function(){var p=[];if(!this.eat(t.tokTypes._with))return p;var h=this.curIndent,T=this.curLineStart,x=this.nextLineStart;for(this.pushCx(),this.eat(t.tokTypes.braceL),this.curLineStart>x&&(x=this.curLineStart);!this.closes(t.tokTypes.braceR,h+(this.curLineStart<=x?1:0),T);){var w=this.startNode();if(w.key=this.tok.type===t.tokTypes.string?this.parseExprAtom():this.parseIdent(),this.eat(t.tokTypes.colon))this.tok.type===t.tokTypes.string?w.value=this.parseExprAtom():w.value=this.dummyString();else{if(i(w.key))break;if(this.tok.type===t.tokTypes.string)w.value=this.parseExprAtom();else break}p.push(this.finishNode(w,\\"ImportAttribute\\")),this.eat(t.tokTypes.comma)}return this.eat(t.tokTypes.braceR),this.popCx(),p},y.parseExportSpecifierList=function(){var p=[],h=this.curIndent,T=this.curLineStart,x=this.nextLineStart;for(this.pushCx(),this.eat(t.tokTypes.braceL),this.curLineStart>x&&(x=this.curLineStart);!this.closes(t.tokTypes.braceR,h+(this.curLineStart<=x?1:0),T)&&!this.isContextual(\\"from\\");){var w=this.startNode();if(w.local=this.parseModuleExportName(),i(w.local))break;w.exported=this.eatContextual(\\"as\\")?this.parseModuleExportName():w.local,this.finishNode(w,\\"ExportSpecifier\\"),p.push(w),this.eat(t.tokTypes.comma)}return this.eat(t.tokTypes.braceR),this.popCx(),p},y.parseModuleExportName=function(){return this.options.ecmaVersion>=13&&this.tok.type===t.tokTypes.string?this.parseExprAtom():this.parseIdent()};var g=a.prototype;g.checkLVal=function(p){if(!p)return p;switch(p.type){case\\"Identifier\\":case\\"MemberExpression\\":return p;case\\"ParenthesizedExpression\\":return p.expression=this.checkLVal(p.expression),p;default:return this.dummyIdent()}},g.parseExpression=function(p){var h=this.storeCurrentPos(),T=this.parseMaybeAssign(p);if(this.tok.type===t.tokTypes.comma){var x=this.startNodeAt(h);for(x.expressions=[T];this.eat(t.tokTypes.comma);)x.expressions.push(this.parseMaybeAssign(p));return this.finishNode(x,\\"SequenceExpression\\")}return T},g.parseParenExpression=function(){this.pushCx(),this.expect(t.tokTypes.parenL);var p=this.parseExpression();return this.popCx(),this.expect(t.tokTypes.parenR),p},g.parseMaybeAssign=function(p){if(this.inGenerator&&this.toks.isContextual(\\"yield\\")){var h=this.startNode();return this.next(),this.semicolon()||this.canInsertSemicolon()||this.tok.type!==t.tokTypes.star&&!this.tok.type.startsExpr?(h.delegate=!1,h.argument=null):(h.delegate=this.eat(t.tokTypes.star),h.argument=this.parseMaybeAssign()),this.finishNode(h,\\"YieldExpression\\")}var T=this.storeCurrentPos(),x=this.parseMaybeConditional(p);if(this.tok.type.isAssign){var w=this.startNodeAt(T);return w.operator=this.tok.value,w.left=this.tok.type===t.tokTypes.eq?this.toAssignable(x):this.checkLVal(x),this.next(),w.right=this.parseMaybeAssign(p),this.finishNode(w,\\"AssignmentExpression\\")}return x},g.parseMaybeConditional=function(p){var h=this.storeCurrentPos(),T=this.parseExprOps(p);if(this.eat(t.tokTypes.question)){var x=this.startNodeAt(h);return x.test=T,x.consequent=this.parseMaybeAssign(),x.alternate=this.expect(t.tokTypes.colon)?this.parseMaybeAssign(p):this.dummyIdent(),this.finishNode(x,\\"ConditionalExpression\\")}return T},g.parseExprOps=function(p){var h=this.storeCurrentPos(),T=this.curIndent,x=this.curLineStart;return this.parseExprOp(this.parseMaybeUnary(!1),h,-1,p,T,x)},g.parseExprOp=function(p,h,T,x,w,S){if(this.curLineStart!==S&&this.curIndentT){var U=this.startNodeAt(h);if(U.left=p,U.operator=this.tok.value,this.next(),this.curLineStart!==S&&this.curIndent=8&&this.toks.isContextual(\\"await\\")&&(this.inAsync||this.toks.inModule&&this.options.ecmaVersion>=13||!this.inFunction&&this.options.allowAwaitOutsideFunction))T=this.parseAwait(),p=!0;else if(this.tok.type.prefix){var x=this.startNode(),w=this.tok.type===t.tokTypes.incDec;w||(p=!0),x.operator=this.tok.value,x.prefix=!0,this.next(),x.argument=this.parseMaybeUnary(!0),w&&(x.argument=this.checkLVal(x.argument)),T=this.finishNode(x,w?\\"UpdateExpression\\":\\"UnaryExpression\\")}else if(this.tok.type===t.tokTypes.ellipsis){var S=this.startNode();this.next(),S.argument=this.parseMaybeUnary(p),T=this.finishNode(S,\\"SpreadElement\\")}else if(!p&&this.tok.type===t.tokTypes.privateId)T=this.parsePrivateIdent();else for(T=this.parseExprSubscripts();this.tok.type.postfix&&!this.canInsertSemicolon();){var A=this.startNodeAt(h);A.operator=this.tok.value,A.prefix=!1,A.argument=this.checkLVal(T),this.next(),T=this.finishNode(A,\\"UpdateExpression\\")}if(!p&&this.eat(t.tokTypes.starstar)){var U=this.startNodeAt(h);return U.operator=\\"**\\",U.left=T,U.right=this.parseMaybeUnary(!1),this.finishNode(U,\\"BinaryExpression\\")}return T},g.parseExprSubscripts=function(){var p=this.storeCurrentPos();return this.parseSubscripts(this.parseExprAtom(),p,!1,this.curIndent,this.curLineStart)},g.parseSubscripts=function(p,h,T,x,w){for(var S=this.options.ecmaVersion>=11,A=!1;;){if(this.curLineStart!==w&&this.curIndent<=x&&this.tokenStartsLine())if(this.tok.type===t.tokTypes.dot&&this.curIndent===x)--x;else break;var U=p.type===\\"Identifier\\"&&p.name===\\"async\\"&&!this.canInsertSemicolon(),M=S&&this.eat(t.tokTypes.questionDot);if(M&&(A=!0),M&&this.tok.type!==t.tokTypes.parenL&&this.tok.type!==t.tokTypes.bracketL&&this.tok.type!==t.tokTypes.backQuote||this.eat(t.tokTypes.dot)){var c=this.startNodeAt(h);c.object=p,this.curLineStart!==w&&this.curIndent<=x&&this.tokenStartsLine()?c.property=this.dummyIdent():c.property=this.parsePropertyAccessor()||this.dummyIdent(),c.computed=!1,S&&(c.optional=M),p=this.finishNode(c,\\"MemberExpression\\")}else if(this.tok.type===t.tokTypes.bracketL){this.pushCx(),this.next();var R=this.startNodeAt(h);R.object=p,R.property=this.parseExpression(),R.computed=!0,S&&(R.optional=M),this.popCx(),this.expect(t.tokTypes.bracketR),p=this.finishNode(R,\\"MemberExpression\\")}else if(!T&&this.tok.type===t.tokTypes.parenL){var W=this.parseExprList(t.tokTypes.parenR);if(U&&this.eat(t.tokTypes.arrow))return this.parseArrowExpression(this.startNodeAt(h),W,!0);var X=this.startNodeAt(h);X.callee=p,X.arguments=W,S&&(X.optional=M),p=this.finishNode(X,\\"CallExpression\\")}else if(this.tok.type===t.tokTypes.backQuote){var ie=this.startNodeAt(h);ie.tag=p,ie.quasi=this.parseTemplate(),p=this.finishNode(ie,\\"TaggedTemplateExpression\\")}else break}if(A){var pe=this.startNodeAt(h);pe.expression=p,p=this.finishNode(pe,\\"ChainExpression\\")}return p},g.parseExprAtom=function(){var p;switch(this.tok.type){case t.tokTypes._this:case t.tokTypes._super:var h=this.tok.type===t.tokTypes._this?\\"ThisExpression\\":\\"Super\\";return p=this.startNode(),this.next(),this.finishNode(p,h);case t.tokTypes.name:var T=this.storeCurrentPos(),x=this.parseIdent(),w=!1;if(x.name===\\"async\\"&&!this.canInsertSemicolon()){if(this.eat(t.tokTypes._function))return this.toks.overrideContext(t.tokContexts.f_expr),this.parseFunction(this.startNodeAt(T),!1,!0);this.tok.type===t.tokTypes.name&&(x=this.parseIdent(),w=!0)}return this.eat(t.tokTypes.arrow)?this.parseArrowExpression(this.startNodeAt(T),[x],w):x;case t.tokTypes.regexp:p=this.startNode();var S=this.tok.value;return p.regex={pattern:S.pattern,flags:S.flags},p.value=S.value,p.raw=this.input.slice(this.tok.start,this.tok.end),this.next(),this.finishNode(p,\\"Literal\\");case t.tokTypes.num:case t.tokTypes.string:return p=this.startNode(),p.value=this.tok.value,p.raw=this.input.slice(this.tok.start,this.tok.end),this.tok.type===t.tokTypes.num&&p.raw.charCodeAt(p.raw.length-1)===110&&(p.bigint=p.value!=null?p.value.toString():p.raw.slice(0,-1).replace(/_/g,\\"\\")),this.next(),this.finishNode(p,\\"Literal\\");case t.tokTypes._null:case t.tokTypes._true:case t.tokTypes._false:return p=this.startNode(),p.value=this.tok.type===t.tokTypes._null?null:this.tok.type===t.tokTypes._true,p.raw=this.tok.type.keyword,this.next(),this.finishNode(p,\\"Literal\\");case t.tokTypes.parenL:var A=this.storeCurrentPos();this.next();var U=this.parseExpression();if(this.expect(t.tokTypes.parenR),this.eat(t.tokTypes.arrow)){var M=U.expressions||[U];return M.length&&i(M[M.length-1])&&M.pop(),this.parseArrowExpression(this.startNodeAt(A),M)}if(this.options.preserveParens){var c=this.startNodeAt(A);c.expression=U,U=this.finishNode(c,\\"ParenthesizedExpression\\")}return U;case t.tokTypes.bracketL:return p=this.startNode(),p.elements=this.parseExprList(t.tokTypes.bracketR,!0),this.finishNode(p,\\"ArrayExpression\\");case t.tokTypes.braceL:return this.toks.overrideContext(t.tokContexts.b_expr),this.parseObj();case t.tokTypes._class:return this.parseClass(!1);case t.tokTypes._function:return p=this.startNode(),this.next(),this.parseFunction(p,!1);case t.tokTypes._new:return this.parseNew();case t.tokTypes.backQuote:return this.parseTemplate();case t.tokTypes._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.dummyIdent();default:return this.dummyIdent()}},g.parseExprImport=function(){var p=this.startNode(),h=this.parseIdent(!0);switch(this.tok.type){case t.tokTypes.parenL:return this.parseDynamicImport(p);case t.tokTypes.dot:return p.meta=h,this.parseImportMeta(p);default:return p.name=\\"import\\",this.finishNode(p,\\"Identifier\\")}},g.parseDynamicImport=function(p){var h=this.parseExprList(t.tokTypes.parenR);return p.source=h[0]||this.dummyString(),p.options=h[1]||null,this.finishNode(p,\\"ImportExpression\\")},g.parseImportMeta=function(p){return this.next(),p.property=this.parseIdent(!0),this.finishNode(p,\\"MetaProperty\\")},g.parseNew=function(){var p=this.startNode(),h=this.curIndent,T=this.curLineStart,x=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(t.tokTypes.dot))return p.meta=x,p.property=this.parseIdent(!0),this.finishNode(p,\\"MetaProperty\\");var w=this.storeCurrentPos();return p.callee=this.parseSubscripts(this.parseExprAtom(),w,!0,h,T),this.tok.type===t.tokTypes.parenL?p.arguments=this.parseExprList(t.tokTypes.parenR):p.arguments=[],this.finishNode(p,\\"NewExpression\\")},g.parseTemplateElement=function(){var p=this.startNode();return this.tok.type===t.tokTypes.invalidTemplate?p.value={raw:this.tok.value,cooked:null}:p.value={raw:this.input.slice(this.tok.start,this.tok.end).replace(/\\\\r\\\\n?/g,`\\n`),cooked:this.tok.value},this.next(),p.tail=this.tok.type===t.tokTypes.backQuote,this.finishNode(p,\\"TemplateElement\\")},g.parseTemplate=function(){var p=this.startNode();this.next(),p.expressions=[];var h=this.parseTemplateElement();for(p.quasis=[h];!h.tail;)this.next(),p.expressions.push(this.parseExpression()),this.expect(t.tokTypes.braceR)?h=this.parseTemplateElement():(h=this.startNode(),h.value={cooked:\\"\\",raw:\\"\\"},h.tail=!0,this.finishNode(h,\\"TemplateElement\\")),p.quasis.push(h);return this.expect(t.tokTypes.backQuote),this.finishNode(p,\\"TemplateLiteral\\")},g.parseObj=function(){var p=this.startNode();p.properties=[],this.pushCx();var h=this.curIndent+1,T=this.curLineStart;for(this.eat(t.tokTypes.braceL),this.curIndent+1=9&&this.eat(t.tokTypes.ellipsis)){x.argument=this.parseMaybeAssign(),p.properties.push(this.finishNode(x,\\"SpreadElement\\")),this.eat(t.tokTypes.comma);continue}if(this.options.ecmaVersion>=6&&(A=this.storeCurrentPos(),x.method=!1,x.shorthand=!1,w=this.eat(t.tokTypes.star)),this.parsePropertyName(x),this.toks.isAsyncProp(x)?(S=!0,w=this.options.ecmaVersion>=9&&this.eat(t.tokTypes.star),this.parsePropertyName(x)):S=!1,i(x.key)){i(this.parseMaybeAssign())&&this.next(),this.eat(t.tokTypes.comma);continue}if(this.eat(t.tokTypes.colon))x.kind=\\"init\\",x.value=this.parseMaybeAssign();else if(this.options.ecmaVersion>=6&&(this.tok.type===t.tokTypes.parenL||this.tok.type===t.tokTypes.braceL))x.kind=\\"init\\",x.method=!0,x.value=this.parseMethod(w,S);else if(this.options.ecmaVersion>=5&&x.key.type===\\"Identifier\\"&&!x.computed&&(x.key.name===\\"get\\"||x.key.name===\\"set\\")&&this.tok.type!==t.tokTypes.comma&&this.tok.type!==t.tokTypes.braceR&&this.tok.type!==t.tokTypes.eq)x.kind=x.key.name,this.parsePropertyName(x),x.value=this.parseMethod(!1);else{if(x.kind=\\"init\\",this.options.ecmaVersion>=6)if(this.eat(t.tokTypes.eq)){var U=this.startNodeAt(A);U.operator=\\"=\\",U.left=x.key,U.right=this.parseMaybeAssign(),x.value=this.finishNode(U,\\"AssignmentExpression\\")}else x.value=x.key;else x.value=this.dummyIdent();x.shorthand=!0}p.properties.push(this.finishNode(x,\\"Property\\")),this.eat(t.tokTypes.comma)}return this.popCx(),this.eat(t.tokTypes.braceR)||(this.last.end=this.tok.start,this.options.locations&&(this.last.loc.end=this.tok.loc.start)),this.finishNode(p,\\"ObjectExpression\\")},g.parsePropertyName=function(p){if(this.options.ecmaVersion>=6)if(this.eat(t.tokTypes.bracketL)){p.computed=!0,p.key=this.parseExpression(),this.expect(t.tokTypes.bracketR);return}else p.computed=!1;var h=this.tok.type===t.tokTypes.num||this.tok.type===t.tokTypes.string?this.parseExprAtom():this.parseIdent();p.key=h||this.dummyIdent()},g.parsePropertyAccessor=function(){if(this.tok.type===t.tokTypes.name||this.tok.type.keyword)return this.parseIdent();if(this.tok.type===t.tokTypes.privateId)return this.parsePrivateIdent()},g.parseIdent=function(){var p=this.tok.type===t.tokTypes.name?this.tok.value:this.tok.type.keyword;if(!p)return this.dummyIdent();this.tok.type.keyword&&(this.toks.type=t.tokTypes.name);var h=this.startNode();return this.next(),h.name=p,this.finishNode(h,\\"Identifier\\")},g.parsePrivateIdent=function(){var p=this.startNode();return p.name=this.tok.value,this.next(),this.finishNode(p,\\"PrivateIdentifier\\")},g.initFunction=function(p){p.id=null,p.params=[],this.options.ecmaVersion>=6&&(p.generator=!1,p.expression=!1),this.options.ecmaVersion>=8&&(p.async=!1)},g.toAssignable=function(p,h){if(!(!p||p.type===\\"Identifier\\"||p.type===\\"MemberExpression\\"&&!h))if(p.type===\\"ParenthesizedExpression\\")this.toAssignable(p.expression,h);else{if(this.options.ecmaVersion<6)return this.dummyIdent();if(p.type===\\"ObjectExpression\\"){p.type=\\"ObjectPattern\\";for(var T=0,x=p.properties;T=6&&(T.generator=!!p),this.options.ecmaVersion>=8&&(T.async=!!h),this.inAsync=T.async,this.inGenerator=T.generator,this.inFunction=!0,T.params=this.parseFunctionParams(),T.body=this.parseBlock(),this.toks.adaptDirectivePrologue(T.body.body),this.inAsync=x,this.inGenerator=w,this.inFunction=S,this.finishNode(T,\\"FunctionExpression\\")},g.parseArrowExpression=function(p,h,T){var x=this.inAsync,w=this.inGenerator,S=this.inFunction;return this.initFunction(p),this.options.ecmaVersion>=8&&(p.async=!!T),this.inAsync=p.async,this.inGenerator=!1,this.inFunction=!0,p.params=this.toAssignableList(h,!0),p.expression=this.tok.type!==t.tokTypes.braceL,p.expression?p.body=this.parseMaybeAssign():(p.body=this.parseBlock(),this.toks.adaptDirectivePrologue(p.body.body)),this.inAsync=x,this.inGenerator=w,this.inFunction=S,this.finishNode(p,\\"ArrowFunctionExpression\\")},g.parseExprList=function(p,h){this.pushCx();var T=this.curIndent,x=this.curLineStart,w=[];for(this.next();!this.closes(p,T+1,x);){if(this.eat(t.tokTypes.comma)){w.push(h?null:this.dummyIdent());continue}var S=this.parseMaybeAssign();if(i(S)){if(this.closes(p,T,x))break;this.next()}else w.push(S);this.eat(t.tokTypes.comma)}return this.popCx(),this.eat(p)||(this.last.end=this.tok.start,this.options.locations&&(this.last.loc.end=this.tok.loc.start)),w},g.parseAwait=function(){var p=this.startNode();return this.next(),p.argument=this.parseMaybeUnary(),this.finishNode(p,\\"AwaitExpression\\")},t.defaultOptions.tabSize=4;function L(p,h){return a.parse(p,h)}e.LooseParser=a,e.isDummy=i,e.parse=L})});var Vo=Li(),Ug=Jc(),dr=e1(),Hg=uf(),Tf=df(),Os=null;function kf(){return new Proxy({},{get:function(e,t){if(t in e)return e[t];var s=String(t).split(\\"#\\"),i=s[0],r=s[1]||\\"default\\",a={id:i,chunks:[i],name:r,async:!0};return e[t]=a,a}})}var Nc={};function mf(e,t,s){var i=dr.registerServerReference(e,t,s),r=t+\\"#\\"+s;return Nc[r]=e,i}function Wg(e){if(e.indexOf(\\"use client\\")===-1&&e.indexOf(\\"use server\\")===-1)return null;try{var t=Tf.parse(e,{ecmaVersion:\\"2024\\",sourceType:\\"source\\"}).body}catch{return null}for(var s=0;s0&&T.body&&T.body.type===\\"BlockStatement\\")for(var S=T.body.body,A=0;A 2 && arguments[2] !== undefined ? arguments[2] : false;\n var getCustomHooks = arguments.length > 3 ? arguments[3] : undefined;\n\n {\n if (!allSignaturesByType.has(type)) {\n allSignaturesByType.set(type, {\n forceReset: forceReset,\n ownKey: key,\n fullKey: null,\n getCustomHooks: getCustomHooks || function () {\n return [];\n }\n });\n } // Visit inner types because we might not have signed them.\n\n\n if (typeof type === 'object' && type !== null) {\n switch (getProperty(type, '$$typeof')) {\n case REACT_FORWARD_REF_TYPE:\n setSignature(type.render, key, forceReset, getCustomHooks);\n break;\n\n case REACT_MEMO_TYPE:\n setSignature(type.type, key, forceReset, getCustomHooks);\n break;\n }\n }\n }\n} // This is lazily called during first render for a type.\n// It captures Hook list at that time so inline requires don't break comparisons.\n\nfunction collectCustomHooksForSignature(type) {\n {\n var signature = allSignaturesByType.get(type);\n\n if (signature !== undefined) {\n computeFullKey(signature);\n }\n }\n}\nfunction getFamilyByID(id) {\n {\n return allFamiliesByID.get(id);\n }\n}\nfunction getFamilyByType(type) {\n {\n return allFamiliesByType.get(type);\n }\n}\nfunction findAffectedHostInstances(families) {\n {\n var affectedInstances = new Set();\n mountedRoots.forEach(function (root) {\n var helpers = helpersByRoot.get(root);\n\n if (helpers === undefined) {\n throw new Error('Could not find helpers for a root. This is a bug in React Refresh.');\n }\n\n var instancesForRoot = helpers.findHostInstancesForRefresh(root, families);\n instancesForRoot.forEach(function (inst) {\n affectedInstances.add(inst);\n });\n });\n return affectedInstances;\n }\n}\nfunction injectIntoGlobalHook(globalObject) {\n {\n // For React Native, the global hook will be set up by require('react-devtools-core').\n // That code will run before us. So we need to monkeypatch functions on existing hook.\n // For React Web, the global hook will be set up by the extension.\n // This will also run before us.\n var hook = globalObject.__REACT_DEVTOOLS_GLOBAL_HOOK__;\n\n if (hook === undefined) {\n // However, if there is no DevTools extension, we'll need to set up the global hook ourselves.\n // Note that in this case it's important that renderer code runs *after* this method call.\n // Otherwise, the renderer will think that there is no global hook, and won't do the injection.\n var nextID = 0;\n globalObject.__REACT_DEVTOOLS_GLOBAL_HOOK__ = hook = {\n renderers: new Map(),\n supportsFiber: true,\n inject: function (injected) {\n return nextID++;\n },\n onScheduleFiberRoot: function (id, root, children) {},\n onCommitFiberRoot: function (id, root, maybePriorityLevel, didError) {},\n onCommitFiberUnmount: function () {}\n };\n }\n\n if (hook.isDisabled) {\n // This isn't a real property on the hook, but it can be set to opt out\n // of DevTools integration and associated warnings and logs.\n // Using console['warn'] to evade Babel and ESLint\n console['warn']('Something has shimmed the React DevTools global hook (__REACT_DEVTOOLS_GLOBAL_HOOK__). ' + 'Fast Refresh is not compatible with this shim and will be disabled.');\n return;\n } // Here, we just want to get a reference to scheduleRefresh.\n\n\n var oldInject = hook.inject;\n\n hook.inject = function (injected) {\n var id = oldInject.apply(this, arguments);\n\n if (typeof injected.scheduleRefresh === 'function' && typeof injected.setRefreshHandler === 'function') {\n // This version supports React Refresh.\n helpersByRendererID.set(id, injected);\n }\n\n return id;\n }; // Do the same for any already injected roots.\n // This is useful if ReactDOM has already been initialized.\n // https://github.com/facebook/react/issues/17626\n\n\n hook.renderers.forEach(function (injected, id) {\n if (typeof injected.scheduleRefresh === 'function' && typeof injected.setRefreshHandler === 'function') {\n // This version supports React Refresh.\n helpersByRendererID.set(id, injected);\n }\n }); // We also want to track currently mounted roots.\n\n var oldOnCommitFiberRoot = hook.onCommitFiberRoot;\n\n var oldOnScheduleFiberRoot = hook.onScheduleFiberRoot || function () {};\n\n hook.onScheduleFiberRoot = function (id, root, children) {\n if (!isPerformingRefresh) {\n // If it was intentionally scheduled, don't attempt to restore.\n // This includes intentionally scheduled unmounts.\n failedRoots.delete(root);\n\n if (rootElements !== null) {\n rootElements.set(root, children);\n }\n }\n\n return oldOnScheduleFiberRoot.apply(this, arguments);\n };\n\n hook.onCommitFiberRoot = function (id, root, maybePriorityLevel, didError) {\n var helpers = helpersByRendererID.get(id);\n\n if (helpers !== undefined) {\n helpersByRoot.set(root, helpers);\n var current = root.current;\n var alternate = current.alternate; // We need to determine whether this root has just (un)mounted.\n // This logic is copy-pasted from similar logic in the DevTools backend.\n // If this breaks with some refactoring, you'll want to update DevTools too.\n\n if (alternate !== null) {\n var wasMounted = alternate.memoizedState != null && alternate.memoizedState.element != null && mountedRoots.has(root);\n var isMounted = current.memoizedState != null && current.memoizedState.element != null;\n\n if (!wasMounted && isMounted) {\n // Mount a new root.\n mountedRoots.add(root);\n failedRoots.delete(root);\n } else if (wasMounted && isMounted) ; else if (wasMounted && !isMounted) {\n // Unmount an existing root.\n mountedRoots.delete(root);\n\n if (didError) {\n // We'll remount it on future edits.\n failedRoots.add(root);\n } else {\n helpersByRoot.delete(root);\n }\n } else if (!wasMounted && !isMounted) {\n if (didError) {\n // We'll remount it on future edits.\n failedRoots.add(root);\n }\n }\n } else {\n // Mount a new root.\n mountedRoots.add(root);\n }\n } // Always call the decorated DevTools hook.\n\n\n return oldOnCommitFiberRoot.apply(this, arguments);\n };\n }\n}\nfunction hasUnrecoverableErrors() {\n // TODO: delete this after removing dependency in RN.\n return false;\n} // Exposed for testing.\n\nfunction _getMountedRootCount() {\n {\n return mountedRoots.size;\n }\n} // This is a wrapper over more primitive functions for setting signature.\n// Signatures let us decide whether the Hook order has changed on refresh.\n//\n// This function is intended to be used as a transform target, e.g.:\n// var _s = createSignatureFunctionForTransform()\n//\n// function Hello() {\n// const [foo, setFoo] = useState(0);\n// const value = useCustomHook();\n// _s(); /* Call without arguments triggers collecting the custom Hook list.\n// * This doesn't happen during the module evaluation because we\n// * don't want to change the module order with inline requires.\n// * Next calls are noops. */\n// return

        Hi

        ;\n// }\n//\n// /* Call with arguments attaches the signature to the type: */\n// _s(\n// Hello,\n// 'useState{[foo, setFoo]}(0)',\n// () => [useCustomHook], /* Lazy to avoid triggering inline requires */\n// );\n\nfunction createSignatureFunctionForTransform() {\n {\n var savedType;\n var hasCustomHooks;\n var didCollectHooks = false;\n return function (type, key, forceReset, getCustomHooks) {\n if (typeof key === 'string') {\n // We're in the initial phase that associates signatures\n // with the functions. Note this may be called multiple times\n // in HOC chains like _s(hoc1(_s(hoc2(_s(actualFunction))))).\n if (!savedType) {\n // We're in the innermost call, so this is the actual type.\n savedType = type;\n hasCustomHooks = typeof getCustomHooks === 'function';\n } // Set the signature for all types (even wrappers!) in case\n // they have no signatures of their own. This is to prevent\n // problems like https://github.com/facebook/react/issues/20417.\n\n\n if (type != null && (typeof type === 'function' || typeof type === 'object')) {\n setSignature(type, key, forceReset, getCustomHooks);\n }\n\n return type;\n } else {\n // We're in the _s() call without arguments, which means\n // this is the time to collect custom Hook signatures.\n // Only do this once. This path is hot and runs *inside* every render!\n if (!didCollectHooks && hasCustomHooks) {\n didCollectHooks = true;\n collectCustomHooksForSignature(savedType);\n }\n }\n };\n }\n}\nfunction isLikelyComponentType(type) {\n {\n switch (typeof type) {\n case 'function':\n {\n // First, deal with classes.\n if (type.prototype != null) {\n if (type.prototype.isReactComponent) {\n // React class.\n return true;\n }\n\n var ownNames = Object.getOwnPropertyNames(type.prototype);\n\n if (ownNames.length > 1 || ownNames[0] !== 'constructor') {\n // This looks like a class.\n return false;\n } // eslint-disable-next-line no-proto\n\n\n if (type.prototype.__proto__ !== Object.prototype) {\n // It has a superclass.\n return false;\n } // Pass through.\n // This looks like a regular function with empty prototype.\n\n } // For plain functions and arrows, use name as a heuristic.\n\n\n var name = type.name || type.displayName;\n return typeof name === 'string' && /^[A-Z]/.test(name);\n }\n\n case 'object':\n {\n if (type != null) {\n switch (getProperty(type, '$$typeof')) {\n case REACT_FORWARD_REF_TYPE:\n case REACT_MEMO_TYPE:\n // Definitely React components.\n return true;\n\n default:\n return false;\n }\n }\n\n return false;\n }\n\n default:\n {\n return false;\n }\n }\n }\n}\n\nexports._getMountedRootCount = _getMountedRootCount;\nexports.collectCustomHooksForSignature = collectCustomHooksForSignature;\nexports.createSignatureFunctionForTransform = createSignatureFunctionForTransform;\nexports.findAffectedHostInstances = findAffectedHostInstances;\nexports.getFamilyByID = getFamilyByID;\nexports.getFamilyByType = getFamilyByType;\nexports.hasUnrecoverableErrors = hasUnrecoverableErrors;\nexports.injectIntoGlobalHook = injectIntoGlobalHook;\nexports.isLikelyComponentType = isLikelyComponentType;\nexports.performReactRefresh = performReactRefresh;\nexports.register = register;\nexports.setSignature = setSignature;\n })();\n}\n" as string; diff --git a/src/components/MDX/Sandpack/templateRSC.ts b/src/components/MDX/Sandpack/templateRSC.ts index efc4c940cfc..0917546926d 100644 --- a/src/components/MDX/Sandpack/templateRSC.ts +++ b/src/components/MDX/Sandpack/templateRSC.ts @@ -6,6 +6,14 @@ */ import type {SandpackFiles} from '@codesandbox/sandpack-react/unstyled'; +import { + REACT_REFRESH_INIT_SOURCE, + REACT_REFRESH_RUNTIME_SOURCE, + RSC_CLIENT_SOURCE, + RSDW_CLIENT_SOURCE, + WEBPACK_SHIM_SOURCE, + WORKER_BUNDLE_MODULE_SOURCE, +} from './sandpack-rsc/generatedSources'; function hideFiles(files: SandpackFiles): SandpackFiles { return Object.fromEntries( @@ -16,34 +24,6 @@ function hideFiles(files: SandpackFiles): SandpackFiles { ); } -// --- Load RSC infrastructure files as raw strings via raw-loader --- -const RSC_SOURCE_FILES = { - 'webpack-shim': - require('!raw-loader?esModule=false!./sandpack-rsc/sandbox-code/src/webpack-shim.js') as string, - 'rsc-client': - require('!raw-loader?esModule=false!./sandpack-rsc/sandbox-code/src/rsc-client.js') as string, - 'react-refresh-init': - require('!raw-loader?esModule=false!./sandpack-rsc/sandbox-code/src/__react_refresh_init__.js') as string, - 'worker-bundle': `export default ${JSON.stringify( - require('!raw-loader?esModule=false!./sandpack-rsc/sandbox-code/src/worker-bundle.dist.js') as string - )};`, - 'rsdw-client': - require('!raw-loader?esModule=false!../../../../node_modules/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.production.js') as string, -}; - -// Load react-refresh runtime and strip the process.env.NODE_ENV guard -// so it works in Sandpack's bundler which may not replace process.env. -const reactRefreshRaw = - require('!raw-loader?esModule=false!../../../../node_modules/next/dist/compiled/react-refresh/cjs/react-refresh-runtime.development.js') as string; - -// Wrap as a CJS module that Sandpack can require. -// Strip the `if (process.env.NODE_ENV !== "production")` guard so the -// runtime always executes inside the sandbox. -const reactRefreshModule = reactRefreshRaw.replace( - /if \(process\.env\.NODE_ENV !== "production"\) \{/, - '{' -); - // Entry point that bootstraps the RSC client pipeline. // __react_refresh_init__ must be imported BEFORE rsc-client so the // DevTools hook stub exists before React's renderer loads. @@ -72,19 +52,19 @@ export const templateRSC: SandpackFiles = { ...hideFiles({ '/public/index.html': indexHTML, '/src/index.js': indexEntry, - '/src/__react_refresh_init__.js': RSC_SOURCE_FILES['react-refresh-init'], - '/src/rsc-client.js': RSC_SOURCE_FILES['rsc-client'], - '/src/rsc-server.js': RSC_SOURCE_FILES['worker-bundle'], - '/src/__webpack_shim__.js': RSC_SOURCE_FILES['webpack-shim'], + '/src/__react_refresh_init__.js': REACT_REFRESH_INIT_SOURCE, + '/src/rsc-client.js': RSC_CLIENT_SOURCE, + '/src/rsc-server.js': WORKER_BUNDLE_MODULE_SOURCE, + '/src/__webpack_shim__.js': WEBPACK_SHIM_SOURCE, // RSDW client as a Sandpack local dependency (bypasses Babel bundler) '/node_modules/react-server-dom-webpack/package.json': '{"name":"react-server-dom-webpack","main":"index.js"}', '/node_modules/react-server-dom-webpack/client.browser.js': - RSC_SOURCE_FILES['rsdw-client'], + RSDW_CLIENT_SOURCE, // react-refresh runtime as a Sandpack local dependency '/node_modules/react-refresh/package.json': '{"name":"react-refresh","main":"runtime.js"}', - '/node_modules/react-refresh/runtime.js': reactRefreshModule, + '/node_modules/react-refresh/runtime.js': REACT_REFRESH_RUNTIME_SOURCE, '/package.json': JSON.stringify( { name: 'react.dev', diff --git a/src/components/MDX/TerminalBlock.tsx b/src/components/MDX/TerminalBlock.tsx index 0fd0160d665..66a34727d9c 100644 --- a/src/components/MDX/TerminalBlock.tsx +++ b/src/components/MDX/TerminalBlock.tsx @@ -1,3 +1,5 @@ +'use client'; + /** * Copyright (c) Meta Platforms, Inc. and affiliates. * diff --git a/src/components/MDX/getMDXName.ts b/src/components/MDX/getMDXName.ts new file mode 100644 index 00000000000..3525310db28 --- /dev/null +++ b/src/components/MDX/getMDXName.ts @@ -0,0 +1,23 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +import {isValidElement} from 'react'; +import type {ReactNode} from 'react'; + +export function getMDXName(node: ReactNode) { + if (!isValidElement(node)) { + return null; + } + + const props = node.props as Record | null; + const mdxName = props?.['data-mdx-name']; + if (typeof mdxName === 'string') { + return mdxName; + } + + return typeof node.type === 'string' ? node.type : null; +} diff --git a/src/components/SafariScrollHandler.tsx b/src/components/SafariScrollHandler.tsx new file mode 100644 index 00000000000..d8fb20a6675 --- /dev/null +++ b/src/components/SafariScrollHandler.tsx @@ -0,0 +1,21 @@ +'use client'; + +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +import {useEffect} from 'react'; + +export function SafariScrollHandler() { + useEffect(() => { + const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent); + if (isSafari) { + history.scrollRestoration = 'auto'; + } + }, []); + + return null; +} diff --git a/src/components/Search.tsx b/src/components/Search.tsx index 24b066d70f4..081ac4f590b 100644 --- a/src/components/Search.tsx +++ b/src/components/Search.tsx @@ -1,3 +1,5 @@ +'use client'; + /** * Copyright (c) Meta Platforms, Inc. and affiliates. * @@ -9,12 +11,11 @@ * Copyright (c) Facebook, Inc. and its affiliates. */ -import Head from 'next/head'; import Link from 'next/link'; -import Router from 'next/router'; -import {lazy, useEffect} from 'react'; +import {lazy, Suspense, useEffect} from 'react'; import * as React from 'react'; import {createPortal} from 'react-dom'; +import {useRouter} from 'next/navigation'; import {siteConfig} from 'siteConfig'; import type {ComponentType, PropsWithChildren} from 'react'; import type {DocSearchModalProps} from '@docsearch/react/modal'; @@ -117,37 +118,36 @@ export function Search({ ], }, }: SearchProps) { + const router = useRouter(); useDocSearchKeyboardEvents({isOpen, onOpen, onClose}); return ( <> - - - {isOpen && createPortal( - { - return items.map((item) => { - const url = new URL(item.url); - return { - ...item, - url: item.url.replace(url.origin, '').replace('#__next', ''), - }; - }); - }} - hitComponent={Hit} - />, + + { + return items.map((item) => { + const url = new URL(item.url); + return { + ...item, + url: item.url + .replace(url.origin, '') + .replace('#__next', ''), + }; + }); + }} + hitComponent={Hit} + /> + , document.body )} diff --git a/src/components/Seo.tsx b/src/components/Seo.tsx index 90604102023..e76d041ce1e 100644 --- a/src/components/Seo.tsx +++ b/src/components/Seo.tsx @@ -10,12 +10,11 @@ */ import * as React from 'react'; -import Head from 'next/head'; -import {withRouter, Router} from 'next/router'; import {siteConfig} from '../siteConfig'; import {finishedTranslations} from 'utils/finishedTranslations'; export interface SeoProps { + pathname: string; title: string; titleForTitleTag: undefined | string; description?: string; @@ -34,166 +33,61 @@ function getDomain(languageCode: string): string { return subdomain + 'react.dev'; } -export const Seo = withRouter( - ({ - title, - titleForTitleTag, - image = '/images/og-default.png', - router, - children, - isHomePage, - searchOrder, - }: SeoProps & {router: Router}) => { - const siteDomain = getDomain(siteConfig.languageCode); - const canonicalUrl = `https://${siteDomain}${ - router.asPath.split(/[\?\#]/)[0] - }`; - // Allow setting a different title for Google results - const pageTitle = - (titleForTitleTag ?? title) + (isHomePage ? '' : ' – React'); - // Twitter's meta parser is not very good. - const twitterTitle = pageTitle.replace(/[<>]/g, ''); - let description = isHomePage - ? 'React is the library for web and native user interfaces. Build user interfaces out of individual pieces called components written in JavaScript. React is designed to let you seamlessly combine components written by independent people, teams, and organizations.' - : 'The library for web and native user interfaces'; - return ( - - - {title != null && {pageTitle}} - {isHomePage && ( - // Let Google figure out a good description for each page. - - )} - +export function Seo({ + pathname, + title, + titleForTitleTag, + image = '/images/og-default.png', + children, + isHomePage, + searchOrder, +}: SeoProps) { + const siteDomain = getDomain(siteConfig.languageCode); + const canonicalUrl = `https://${siteDomain}${pathname}`; + const pageTitle = + (titleForTitleTag ?? title) + (isHomePage ? '' : ' – React'); + const twitterTitle = pageTitle.replace(/[<>]/g, ''); + const pageDescription = isHomePage + ? 'React is the library for web and native user interfaces. Build user interfaces out of individual pieces called components written in JavaScript. React is designed to let you seamlessly combine components written by independent people, teams, and organizations.' + : 'The library for web and native user interfaces'; + + return ( + <> + {title != null ? {pageTitle} : null} + {isHomePage ? ( + + ) : null} + + + {finishedTranslations.map((languageCode) => ( - {finishedTranslations.map((languageCode) => ( - - ))} - - - - {title != null && ( - - )} - {description != null && ( - - )} - - - - - {title != null && ( - - )} - {description != null && ( - - )} - - - {searchOrder != null && ( - - )} - - - - - - - - - - {children} - - ); - } -); + ))} + + + {title != null ? : null} + + + + + + {title != null ? ( + + ) : null} + + + {searchOrder != null ? ( + + ) : null} + {children} + + ); +} diff --git a/src/components/StatusPage.tsx b/src/components/StatusPage.tsx new file mode 100644 index 00000000000..f418928b2ac --- /dev/null +++ b/src/components/StatusPage.tsx @@ -0,0 +1,83 @@ +'use client'; + +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +import {Page} from 'components/Layout/Page'; +import sidebarLearn from 'sidebarLearn.json'; +import Intro from 'components/MDX/Intro'; +import Link from 'components/MDX/Link'; + +function MaxWidth({children}: {children: React.ReactNode}) { + return
        {children}
        ; +} + +function P(props: React.HTMLAttributes) { + return

        ; +} + +export function NotFoundPage() { + return ( + + + +

        This page doesn’t exist.

        +

        + If this is a mistake{', '} + + let us know + + {', '} + and we will try to fix it! +

        + + + + ); +} + +export function InternalErrorPage({ + onRetry, +}: { + onRetry?: (() => void) | undefined; +}) { + return ( + + + +

        Something went very wrong.

        +

        Sorry about that.

        +

        + If you’d like, please{' '} + + report a bug. + +

        + {onRetry ? ( +

        + +

        + ) : null} +
        +
        +
        + ); +} diff --git a/src/components/Tag.tsx b/src/components/Tag.tsx index 9a69d179c37..97c64dcca43 100644 --- a/src/components/Tag.tsx +++ b/src/components/Tag.tsx @@ -42,7 +42,10 @@ interface TagProps { } function Tag({text, variant, className}: TagProps) { - const {name, classes} = variantMap[variant]; + const {name, classes} = variantMap[variant as keyof typeof variantMap] ?? { + name: variant, + classes: 'bg-gray-40 text-white', + }; return ( void; + __theme: string; + } +} + +function themeScript() { + function setTheme(newTheme: string) { + window.__theme = newTheme; + if (newTheme === 'dark') { + document.documentElement.classList.add('dark'); + } else if (newTheme === 'light') { + document.documentElement.classList.remove('dark'); + } + } + + let preferredTheme: string | null = null; + try { + preferredTheme = localStorage.getItem('theme'); + } catch {} + + window.__setPreferredTheme = function (newTheme: string) { + preferredTheme = newTheme; + setTheme(newTheme); + try { + localStorage.setItem('theme', newTheme); + } catch {} + }; + + let initialTheme = preferredTheme; + const darkQuery = window.matchMedia('(prefers-color-scheme: dark)'); + + if (!initialTheme) { + initialTheme = darkQuery.matches ? 'dark' : 'light'; + } + setTheme(initialTheme); + + darkQuery.addEventListener('change', function (event) { + if (!preferredTheme) { + setTheme(event.matches ? 'dark' : 'light'); + } + }); + + document.documentElement.classList.add( + window.navigator.platform.includes('Mac') ? 'platform-mac' : 'platform-win' + ); +} + +export function ThemeScript() { + return ( +